文件名称:light-water
介绍说明--下载内容来自于网络,使用问题请自行百度
(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
发光二极管闪烁/
发光二极管闪烁/2.2 流水灯(定时查询).C
发光二极管闪烁/2.3 流水灯(定时中断1).C
发光二极管闪烁/2.4 流水灯(定时中断2).C
发光二极管闪烁/
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.