Connecting decision makers to a dynamic network of information, people and ideas, Bloomberg quickly and accurately delivers business and financial information, news and insight around the world ...
047A B297 172 cpl P1.7 ; Blinking LED ...
发布者:创意火花来源: eefocus关键字:51单片机 闪烁灯 发光二极管手机看文章 扫描二维码 简介:51单片机闪烁灯制作:在单片机P1.0端口上接一个发光二极管L1,使L1在不停地一亮一灭形成闪烁灯状态,一亮一灭的时间间隔为0.2秒。 把“单片机系统”区域中的P1.0 ...
以下先给出程序(后面括号中的数字是为了便于讲解而写的,实际不用输入):;主程序: LOOP: SETB P1.0 ;(1)熄灭灯 LCALL DELAY ;(2)延时一段时间 CLR P1.0 ;(3)点亮灯 LCALL DELAY ;(4)延时一段时间 AJMP LOOP ;(5)跳转到第一句LOOP处 ;以下子程序 DELAY: MOV R7,#250 ;(6) D1: MOV R6,#250 ...