Introduction - If you have any usage issues, please Google them yourself
(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.