文件名称:cx
介绍说明--下载内容来自于网络,使用问题请自行百度
51单片机的外部中断1引脚接开关K1,外部中断引脚0接开关K0,P1.0~P1.7分别接八个发光二极管,开机后只有一个发光二极管从左到右每隔0.5秒循环移动点亮。
当K1电平产生电平跳变时,二极管的循环移动发光被停止,取而代之的是黄色二极管5秒间的闪烁,闪烁频率为0.5秒,5秒钟过后,八个发光二极管恢复到原来的循环发光状态。
当K0电平为低电平时,无论是二极管处于循环移动发光状态,还是处于黄色二极管的5秒间闪烁状态,都应被强制中止,取而代之的是红色二极管以0.25秒间隔持续闪烁,当K0电平升为高电平时,发光二极管恢复到原来的状态。
-51 MCU external interrupt 1 pin tap-K1, external interrupt pin 0 tap-K0, P1.0 ~ P1.7 respectively, then eight light-emitting diode, the boot after only a light-emitting diodes every 0.5 seconds left to right circular Move lit.
When the K1 level generated level transition, the cycle of mobile light-emitting diode has been stopped, replaced by a yellow LED 5 seconds between the flash, flicker frequency of 0.5 seconds, five seconds later, eight light-emitting diode back to the original loop light-emitting state.
When K0 level is low, whether it is light-emitting diode in a cycle of moving the state, or in the yellow diode 5 seconds between the flash state, should be forced to suspend and replace it with a red diode to 0.25 seconds intervals continued to blink, when K0 electric was promoted to high level when the light-emitting diodes to restore to its original state.
当K1电平产生电平跳变时,二极管的循环移动发光被停止,取而代之的是黄色二极管5秒间的闪烁,闪烁频率为0.5秒,5秒钟过后,八个发光二极管恢复到原来的循环发光状态。
当K0电平为低电平时,无论是二极管处于循环移动发光状态,还是处于黄色二极管的5秒间闪烁状态,都应被强制中止,取而代之的是红色二极管以0.25秒间隔持续闪烁,当K0电平升为高电平时,发光二极管恢复到原来的状态。
-51 MCU external interrupt 1 pin tap-K1, external interrupt pin 0 tap-K0, P1.0 ~ P1.7 respectively, then eight light-emitting diode, the boot after only a light-emitting diodes every 0.5 seconds left to right circular Move lit.
When the K1 level generated level transition, the cycle of mobile light-emitting diode has been stopped, replaced by a yellow LED 5 seconds between the flash, flicker frequency of 0.5 seconds, five seconds later, eight light-emitting diode back to the original loop light-emitting state.
When K0 level is low, whether it is light-emitting diode in a cycle of moving the state, or in the yellow diode 5 seconds between the flash state, should be forced to suspend and replace it with a red diode to 0.25 seconds intervals continued to blink, when K0 electric was promoted to high level when the light-emitting diodes to restore to its original state.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ORG 0000H.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.