文件名称:led
-
所属分类:
- 标签属性:
- 上传时间:2014-03-30
-
文件大小:563byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
定时器控制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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.