文件名称:AVR128_PWM_LED
介绍说明--下载内容来自于网络,使用问题请自行百度
定时器PWM实险LED亮暗显示(非常好的学习PWM的小例子,内附详细说明,单片机为AVR128)。
原理简介:
1、让定时器工作由PWM模式,并调节输出占空比。
2、通过占空比的动态变化,实现LED亮暗变化。
3、LED为非线性器件,占空比均为人为设置。
4、占空比调节通过采样两路电位器实现。-PWM timer display real risk-LED light and dark. Principle: 1, so that the work of the PWM mode timer, and adjust the output duty cycle. 2, through the dynamic changes the duty cycle to achieve LED light and dark change. 3, LED is nonlinear device, the duty cycle are artificially set. 4, the duty ratio adjusted by sampling two Potentiometer.
原理简介:
1、让定时器工作由PWM模式,并调节输出占空比。
2、通过占空比的动态变化,实现LED亮暗变化。
3、LED为非线性器件,占空比均为人为设置。
4、占空比调节通过采样两路电位器实现。-PWM timer display real risk-LED light and dark. Principle: 1, so that the work of the PWM mode timer, and adjust the output duty cycle. 2, through the dynamic changes the duty cycle to achieve LED light and dark change. 3, LED is nonlinear device, the duty cycle are artificially set. 4, the duty ratio adjusted by sampling two Potentiometer.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
delay.c
main.c
adc.c
main.c
adc.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.