P1.7~P1.0接发光二极管L8~L1,要求利用单片机内部定时器1,按方式1工作,每0.01秒T1溢出中断一次。要求编写程序模拟时序控制装置。开机第1秒钟L1...
代码说明:
P1.7~P1.0接发光二极管L8~L1,要求利用单片机内部定时器1,按方式1工作,每0.01秒T1溢出中断一次。要求编写程序模拟时序控制装置。开机第1秒钟L1、L3亮,第2秒钟L2、L4亮,第3秒钟L5、L7亮,第4秒钟L6、L8亮,第5秒钟L1、L3、L5、L7亮,第6秒钟L2、L4、L6、L8亮,第7秒钟8个发光二极管全亮,……一直循环下去。fosc=11.0592MHz-P1.7- P1.0 then LED L1 to L8, by using a timer internal microcontroller, a work by the way, every 0.01 seconds T1 interrupted an overflow. Simulation prepared timing control device. Boot 1 seconds L1, L3- liang, two seconds L2- L4, L5 three seconds, L7- liang, 4 seconds L6, L8-liang, 5 seconds L1, L2, L5, L7- liang, 6 seconds L2, L4, L6, L8- , 7 seconds 8-LED whole ... has been the cycle continues. 11.0592MHz fosc =
下载说明:请别用迅雷下载,失败请重下,重下不扣分!