文件名称:CS18-2
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- j_l***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
定时中断。采用定时器T0,定时50ms,每次定时溢出引起中断,在中断程序中对计数器累加。每一秒LED亮0.2s,熄0.8s。
特色:低功耗。程序中技巧在于将1s分成cnt记20次,0.2秒占20 ,即中断的前4次都点亮,后16次都熄灭。-Interrupted from time to time. The use of timer T0, from time to time 50ms, each caused by overflow from time to time interrupted, interrupted proceedings in the accumulation of the counter. Seconds of each LED light 0.2s, out 0.8s. Features: low power consumption. Skills program is to 1s into cnt mind 20 times, 0.2 seconds 20 , that is, before the interruption of light 4 times, 16 times out after.
特色:低功耗。程序中技巧在于将1s分成cnt记20次,0.2秒占20 ,即中断的前4次都点亮,后16次都熄灭。-Interrupted from time to time. The use of timer T0, from time to time 50ms, each caused by overflow from time to time interrupted, interrupted proceedings in the accumulation of the counter. Seconds of each LED light 0.2s, out 0.8s. Features: low power consumption. Skills program is to 1s into cnt mind 20 times, 0.2 seconds 20 , that is, before the interruption of light 4 times, 16 times out after.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
CS18-2.C