Description: 信号发生器
关键词:ATmega16、LCD12864、ICC AVR、AVR Studio、Proteus、AD5310、UA741、SPI
用ATmega16单片机控制AD5310产生正弦波、方波、锯齿波、三角波信号。通过按键可以切换信号类型、改变信号幅度和频率。
-Signal generator
Keywords: ATmega16, LCD12864 ICC AVR, AVR Studio Proteus, AD5310, UA741, SPI,
ATmega16 microcontroller control AD5310 generates a sine wave, square wave, sawtooth, triangle wave signal. Signal type can be switched through the button to change the signal amplitude and frequency. Platform: |
Size: 1149952 |
Author:李振威 |
Hits:
Description: 自己工作需要,需输出可调脉宽、频率的PWM波,网上找的资料都是介绍AVR快速PWM的,没有使用AVR相頻修正实现PWM控制的。就自己查资料,仿真、做板子。自己做了一个,调试通过了,如果需实际使用,部分参数需稍加修正。
功能:AVR ATmega16 相頻修正PWM波实现
涉及模块:7Seg(7段数码管驱动)
键盘扫描(包括长按和短按,稍加修改可实现多键检测)
定时器0,2的定时使用
定时器1的相頻修正PWM输出
PWM频率范围:0.1-99.9Hz,占空比:0.1-99.9可调
ATmega16 工作频率:内部RC 8MHz
仿真工具:Proteus
编译工具:WinAVR-Own work needs, the need adjustable output pulse width, frequency PWM wave, are introduced Internet to find information fast PWM AVR, AVR without using phase and frequency correct PWM control to achieve. Check the information on their own, simulation, do the board. Own one, debugging, and if need practical use, some parameters need a little correction.
Function: AVR ATmega16 phase and frequency correct PWM wave realization
Involves modules: 7Seg (7 segment LED driver)
Keyboard scanning (including long press and short press, slightly modified to achieve multi-key detection)
Timer timing using 0,2
Timer phase and frequency correct PWM outputs 1
PWM Frequency range :0.1-99 .9 Hz, Pulse Width: 0.1-99.9
ATmega16 Operating frequency: I Platform: |
Size: 34816 |
Author:xiaoye |
Hits: