文件名称:led
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2016-12-12
- 文件大小:
- 69kb
- 下载次数:
- 0次
- 提 供 者:
- 黄k***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
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
...\Last Loaded led.DBK
...\led
...\led.c
...\led.dsn
...\led.hex
...\led.lnp
...\led.LST
...\led.M51
...\led.OBJ
...\led.plg
...\led.PWI
...\led.uvopt
...\led.uvproj
...\led.__i
...\led_uvopt.bak
...\led_uvproj.bak
...\STARTUP.A51
...\STARTUP.LST
...\STARTUP.OBJ