- Category:
- SCM
- Tags:
-
[C/C++]
[源码]
- File Size:
- 3kb
- Update:
- 2015-07-08
- Downloads:
- 0 Times
- Uploaded by:
- 诗意
Description: (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.
To Search:
File list (Check if you may need any files):
发光二极管闪烁\2.1 打码开关.C
..............\2.2 流水灯(定时查询).C
..............\2.3 流水灯(定时中断1).C
..............\2.4 流水灯(定时中断2).C
发光二极管闪烁