文件名称:cx
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [WORD]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- c*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
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