文件名称:jiaotongdeng
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本交通灯以AT89S51单片机为核心,通过编程可实现使8位发光二极管按照交通灯的模式工作;通过识别按键,可以改变红灯、黄灯等待时间和工作模式;时间的产生通过定时器0计时方式1来实现,确保计时精确。本系统直接模拟直通的十字路*通灯,初始设定为绿灯亮15s,然后黄灯亮5s,之后开始转换车道。在红灯等待的时间内,通过数码管显示等待时间。到黄灯时,黄灯会闪烁发光给人以提醒要转换车道。当车流量发生变化需要调整时间时,可以通过3个按键中的2个按键加减计时,同时改变后的时间会通过4位发光二极管以二进制模式显示出来。当有紧急状况时,可通过第3个按键选择紧急模式,此时车道上都亮红灯、数码管显示0.本系统可以应用在一些需要交通灯的模型展示上,以及适合小孩子的交通玩具上。-The traffic lights to AT89S51 microcontroller as the core, can be programmed to achieve the eight light-emitting diode in accordance with the mode of traffic lights by identifying the key, you can change the red, yellow waiting time and work patterns time production time through the timer 0 Mode 1 is implemented to ensure accurate timing. Direct simulation of the system through the intersection traffic lights, the initial set to green light 15s, then yellow light 5s, then start the conversion Drive. At a red light waiting time, waiting time by digital display. To yellow, the yellow light will flash to remind people to be converted Drive. Changes need to be adjusted when the traffic time, you can key in 3 keys plus or minus 2 months time, while changing the time after the 4-digit LED display in binary mode. When there is an emergency situation, through the first three buttons select the emergency mode, then the driveway are red, LED display 0. The system can be applied to the model th
(系统自动生成,下载前可以参看下载内容)
下载文件列表
jiaotongdeng\123.c
............\321.c
jiaotongdeng
............\321.c
jiaotongdeng