文件名称:PWM_LED_brightness
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [WORD]
- 上传时间:
- 2012-11-26
- 文件大小:
- 4kb
- 下载次数:
- 0次
- 提 供 者:
- 王**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
PWM 控制 LED 灯渐亮渐灭程序,利用定时器控制产生占空比可变的 PWM波
按K1,PWM值增加,则占空比减小,LED 灯渐暗。 按K2,PWM值减小,则占空比增加,LED 灯渐亮。 当PWM值增加到最大值或减小到最小值时,蜂鸣器将报警
资源:p0口,8路指示灯。p1.4,p1.5亮度控制按键(端口按键)p3.7小喇叭报警
-PWM control of LED lights getting brighter gradually eliminate programs, using the timer control with variable duty cycle PWM wave generated by K1, PWM value is increased, then the duty cycle decreases, LED lights dimming. According to K2, PWM value is reduced, then the duty cycle increases, LED lights gradually brighter. When the PWM value is increased to maximum or reduced to the minimum, the buzzer will alarm Resources: p0 mouth, 8-way light. p1.4, p1.5 brightness control buttons (port keys) p3.7 Trumpet Alarm
按K1,PWM值增加,则占空比减小,LED 灯渐暗。 按K2,PWM值减小,则占空比增加,LED 灯渐亮。 当PWM值增加到最大值或减小到最小值时,蜂鸣器将报警
资源:p0口,8路指示灯。p1.4,p1.5亮度控制按键(端口按键)p3.7小喇叭报警
-PWM control of LED lights getting brighter gradually eliminate programs, using the timer control with variable duty cycle PWM wave generated by K1, PWM value is increased, then the duty cycle decreases, LED lights dimming. According to K2, PWM value is reduced, then the duty cycle increases, LED lights gradually brighter. When the PWM value is increased to maximum or reduced to the minimum, the buzzer will alarm Resources: p0 mouth, 8-way light. p1.4, p1.5 brightness control buttons (port keys) p3.7 Trumpet Alarm
(系统自动生成,下载前可以参看下载内容)
下载文件列表
PWM 控制 LED 灯渐亮渐灭程序.doc