手动扩展外部中断INT0、INT1,当INT0 产生中断时,使LED8 亮、灭闪烁4 次;当INT1 产生中断时,使LED 由右向左轮流显示,一次亮两个,循环 4 次。先按 KK1-,观察实验现象,然后按 KK2-,观察实验现象。 硬件连线:P1口接发光二极管D0~D7,INT0~KK1,INT1~KK2 -Manually extend the external interrupt INT0, INT1, when INT0 interrupt generated when so LED8 bright, blinking out 4 times when INT1 generated interruption, so that LED display from right to left alternately, a two-liang, the cycle 4 times. Press KK1-, observed experimental phenomena, and then press KK2-, observed experimental phenomena. Hardware connection: P1 I take light-emitting diodes D0 ~ D7, INT0 ~ KK1, INT1 ~ KK2
2022-11-09 19:34:30 19KB 手动扩展外部中断INT0
1