文件名称:light-water
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2015-07-08
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- 诗*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
(1)电路:P0接8个发光二极管LED,P1接8个开关.程序:将开关的状态反映到发光二极管上。
(2)电路:P0接8个LED发光二极管D1~D8,P2接8个开关K1~K8。
程序:采用定时查询方式,使8个管轮流点亮;开关K1的状态改变轮流点亮的顺序。
每个管亮100ms,设晶振为6MHz。(计数时钟周期2us)
(3)电路:P0接8个LED发光二极管D1~D8,P2接8个开关K1~K8。
程序:采用定时中断方式,使8个管轮流点亮。
(4)电路:P0接8个LED发光二极管D1~D8,P2接8个开关K1~K8。
程序:采用定时查询方式,使8个管轮流点亮。
-(1) Circuit: P0 received eight light-emitting diodes LED, P1 connected to eight switches program: the state of the switch reflected on light-emitting diodes.
(2) Circuit: P0 received eight LED light-emitting diodes D1 ~ D8, P2 then eight switches K1 ~ K8.
Program: The polling mode, so that eight tubes turns light the state of switch K1 changes in order of rotation lit.
Each tube light 100ms, set the crystal is 6MHz. (Count clock cycle 2us)
(3) Circuit: P0 received eight LED light-emitting diodes D1 ~ D8, P2 then eight switches K1 ~ K8.
Program: The timer interrupt, so eight tubes turns lights.
(4) Circuit: P0 received eight LED light-emitting diodes D1 ~ D8, P2 then eight switches K1 ~ K8.
Program: The polling mode, so that eight tubes turns lights.
(2)电路:P0接8个LED发光二极管D1~D8,P2接8个开关K1~K8。
程序:采用定时查询方式,使8个管轮流点亮;开关K1的状态改变轮流点亮的顺序。
每个管亮100ms,设晶振为6MHz。(计数时钟周期2us)
(3)电路:P0接8个LED发光二极管D1~D8,P2接8个开关K1~K8。
程序:采用定时中断方式,使8个管轮流点亮。
(4)电路:P0接8个LED发光二极管D1~D8,P2接8个开关K1~K8。
程序:采用定时查询方式,使8个管轮流点亮。
-(1) Circuit: P0 received eight light-emitting diodes LED, P1 connected to eight switches program: the state of the switch reflected on light-emitting diodes.
(2) Circuit: P0 received eight LED light-emitting diodes D1 ~ D8, P2 then eight switches K1 ~ K8.
Program: The polling mode, so that eight tubes turns light the state of switch K1 changes in order of rotation lit.
Each tube light 100ms, set the crystal is 6MHz. (Count clock cycle 2us)
(3) Circuit: P0 received eight LED light-emitting diodes D1 ~ D8, P2 then eight switches K1 ~ K8.
Program: The timer interrupt, so eight tubes turns lights.
(4) Circuit: P0 received eight LED light-emitting diodes D1 ~ D8, P2 then eight switches K1 ~ K8.
Program: The polling mode, so that eight tubes turns lights.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
发光二极管闪烁\2.1 打码开关.C
..............\2.2 流水灯(定时查询).C
..............\2.3 流水灯(定时中断1).C
..............\2.4 流水灯(定时中断2).C
发光二极管闪烁