文件名称:led
介绍说明--下载内容来自于网络,使用问题请自行百度
8个发光二极管D1~D8分别接在单片机P1.0-P1.7端口上,一个开关接在P3.0上。
要求输出端口输出“0”时,发光二极管亮。
开关闭合时,开始按P0.0+P0.7、P0.1+P0.6、P0.2+P0.5、P0.3+P0.4的顺序依次点亮LED,再按P0.3+P0.4、P0.2+P0.5、P0.1+P0.6、P0.0+P0.7的顺序点亮LED,重复循环。开关断开时,立刻停止点亮指示灯。
开关断开时,立刻停止点亮指示灯。
-Eight light-emitting diodes D1 ~ D8 are respectively connected to the microcontroller P1.0-P1.7 port, a switch connected to the P3.0. Requirements output port " 0" , the LED lights. The switch is closed, began to press P0.0+P0.7, P0.1+P0.6, P0.2+P0.5, P0.3+P0.4 order were lit LED, then P0.3+P0.4, P0.2+P0.5, P0.1+P0.6, P0.0+P0.7 order lit LED, repeat the cycle. When the switch is turned off, immediately stop the indicator lights. When the switch is turned off, immediately stop the indicator lights.
要求输出端口输出“0”时,发光二极管亮。
开关闭合时,开始按P0.0+P0.7、P0.1+P0.6、P0.2+P0.5、P0.3+P0.4的顺序依次点亮LED,再按P0.3+P0.4、P0.2+P0.5、P0.1+P0.6、P0.0+P0.7的顺序点亮LED,重复循环。开关断开时,立刻停止点亮指示灯。
开关断开时,立刻停止点亮指示灯。
-Eight light-emitting diodes D1 ~ D8 are respectively connected to the microcontroller P1.0-P1.7 port, a switch connected to the P3.0. Requirements output port " 0" , the LED lights. The switch is closed, began to press P0.0+P0.7, P0.1+P0.6, P0.2+P0.5, P0.3+P0.4 order were lit LED, then P0.3+P0.4, P0.2+P0.5, P0.1+P0.6, P0.0+P0.7 order lit LED, repeat the cycle. When the switch is turned off, immediately stop the indicator lights. When the switch is turned off, immediately stop the indicator lights.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
led/
led/Last Loaded led.DBK
led/led
led/led.c
led/led.dsn
led/led.hex
led/led.lnp
led/led.LST
led/led.M51
led/led.OBJ
led/led.plg
led/led.PWI
led/led.uvopt
led/led.uvproj
led/led.__i
led/led_uvopt.bak
led/led_uvproj.bak
led/STARTUP.A51
led/STARTUP.LST
led/STARTUP.OBJ
led/Last Loaded led.DBK
led/led
led/led.c
led/led.dsn
led/led.hex
led/led.lnp
led/led.LST
led/led.M51
led/led.OBJ
led/led.plg
led/led.PWI
led/led.uvopt
led/led.uvproj
led/led.__i
led/led_uvopt.bak
led/led_uvproj.bak
led/STARTUP.A51
led/STARTUP.LST
led/STARTUP.OBJ
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.