文件名称:led
介绍说明--下载内容均来自于网络,请自行研究使用
定时器控制LED灯由单片机内部定时器1,按方式1工作,即作为16位定时器使用每0.05秒钟T1溢出中断一次。P1口的P1.0-P1.7分别接八个发光二极管。编写程序模拟时序控制装置。开机后第一秒钟L1,L3亮,第二秒钟L2,L4亮,第三秒钟L5,L7亮,第四秒钟L6,L8亮,第五秒钟L1,L3,L5,L7亮,第六秒钟L2,L4,L6,L8亮,第七秒钟八个LED灯全亮,第八秒钟全灭,以后又从头开始,L1,L3亮,然后L2,L4亮……一直循环下去。
-LED lights a timer control, work by the way by the MCU internal timer, that is, as 16 T1 timer overflow interrupt every 0.05 seconds once. P1 port P1.0-P1.7 respectively, then eight light-emitting diodes. Programming analog timing control device. First second after power L1, L3 on, the second second L2, L4 light, the third second L5, L7 light, the fourth second L6, L8 bright, the fifth second L1, L3, L5, L7 light Sixth seconds L2, L4, L6, L8 bright, seventh second eight LED lights all bright, all off the eighth seconds after start again from scratch, L1, L3 bright, then L2, L4 been bright ...... the cycle continues.
-LED lights a timer control, work by the way by the MCU internal timer, that is, as 16 T1 timer overflow interrupt every 0.05 seconds once. P1 port P1.0-P1.7 respectively, then eight light-emitting diodes. Programming analog timing control device. First second after power L1, L3 on, the second second L2, L4 light, the third second L5, L7 light, the fourth second L6, L8 bright, the fifth second L1, L3, L5, L7 light Sixth seconds L2, L4, L6, L8 bright, seventh second eight LED lights all bright, all off the eighth seconds after start again from scratch, L1, L3 bright, then L2, L4 been bright ...... the cycle continues.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
led.asm