摘要
针对实现交通灯系统双模式控制的目的。采用以C编写程序,设计电路的软件部分和以89C52单片机为核心,连同红外接收模块、交通灯显示模块和其它元器件,设计电路的硬件部分的软硬件相结合的方法。即软件部分:在KEIL环境中编写并验证C程序。硬件部分:通过单片机控制交通灯和数码管的显示,同时可利用按键或红外遥控切换交通灯系统运行模式,即普通模式和上下班高峰模式。此系统可保证在平时,车辆与行人有较长时间穿过马路。通过切换运行模式,此系统又可有效防止上下班时交通堵塞和车辆、人员滞留。比起普通交通灯控制系统,此系统提高了交通控制的效率,保证交通有序进行。
With the aim of dual-mode control of Traffic light system, design the software portion of the circuit through the C program and devise the hardware portion by means of the 89C52 microcontroller as the core, accompany with infrared receiver module, traffic light display module and other components. Adopt the method of combining hardware and software. The software part: write and verify the C program in the environment of KEIL. The hardware part: control the display of traffic lights and digital tubes through the microcontroller. Switch the operation mode of traffic light through the use of button or infrared remote control. That is normal mode and rush hour mode. This system ensures that vehicles and pedestrians have enough time to cross the street in general. By switching the operating mode, this system can be effective in avoiding the traffic congestion and vehicles stranded in rush hour. Compare with ordinary traffic light control system, the system improves the efficiency of traffic control and guarantee the orderly traffic.
出处
《软件》
2011年第8期33-37,共5页
Software