文件名称:asm
介绍说明--下载内容均来自于网络,请自行研究使用
由80C51内部定时器1按方式1工作,即作为16位定时器使用,每0.1秒钟T1溢出中断一次。P1口的P1.0~P1.7分别接发光二极管的L1~L8。要求编写程序模拟一循环彩灯。彩灯变化花样可自行设计。要求给出的变化花样为:①L1、L2、…L8依依点亮;②L1、L2、…L8依依熄灭;③L1、L2、…L8交差亮8次。④L1、L2、…L8全亮、全灭8次。各时间间隔为0.3秒。让发光二极管按以上规律循环显示下去。-By the 80C51 Timer 1 by way of an internal work, that is, as 16-bit timer, T1 overflow interrupt every 0.1 seconds once. P1 port P1.0 ~ P1.7 respectively, then the light-emitting diodes L1 ~ L8. Requested by the program to simulate one cycle of lights. Lights change pattern can design their own. Required to give change in pattern is: ① L1, L2, ... L8 reluctant to light ② L1, L2, ... L8 reluctant to go out ③ L1, L2, ... L8 cross off 8 times. ④ L1, L2, ... L8 all bright, all off 8 times. The time interval of 0.3 seconds. Let light-emitting diode display according to the above rule cycle continues.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
asm.doc