以下是网学网为您推荐的电子数电单片机-基于单片机的交通信号灯控制电路设计,希望本篇文章对您学习有所帮助。
论文编号:JD835 论文字数:7204,页数:30
基于单片机的交通信号灯控制电路设计
摘要:交通信号灯是城市交通有序、安全、快速运行的重要保障,而保障交通信号灯正常工作就成了保障交通有序、安全、快速运行的关键。为此,采用MCS-51系列单片机AT89C51为中心器件来设计交通灯控制电路,配以七段共阴极数码管显示时间的显示模块,交通灯显示模块,调时模块,晶振电路,复位电路以及控制电路,实现根据实际车流量通过8051芯片的P3口设置红、绿灯燃亮时间以及双位数码管显示倒计时,三种颜色灯交替点亮以及紧急情况下的中断处理功能。本系统性价比高,实用性强,操作简单,功能全面。
关键词:单片机;交通灯;控制电路
Traffic signal control based on single-chip circuit design
Abstract: Traffic lights in urban traffic in an orderly, safe and an important guarantee for fast running, and the protection of traffic lights to protect the normal work of the traffic has become orderly, safe, fast running key. To this end, the use of MCS-51 series AT89C51 single-chip device designed as the central traffic light control circuit, with a total of cathode seventh time the digital display module, the traffic light display module, transfer module, crystal oscillator circuit, reset circuit and control circuit 8051 in accordance with the actual traffic flow through the port P3 chip set red, green and double-time to kindle a digital countdown display,The turn of the three colors of lights and emergency lighting in case of interruption of processing. The system cost-effective, practical, simple, full-featured.
Key words: Single-chip;traffic light;control circuit
目录
摘要 I
Abstract I
1 引言 1
2 单片机概述 1
2.1 MCS-51单片机内部结构 1
2.2 8051单片机的引脚说明 3
3 系统整体方案 4
3.1 硬件电路设计 4
3.1.1 单片机选取 4
3.1.2 显示模块 5
3.1.3 晶振与复位电路 7
3.1.4 系统原理图 7
3.2 软件设计 8
3.2.1 交通信号灯工作流程 8
3.2.2 系统分块设计 8
3.2.3 程序流程图 9
4 仿真结果 10
5 结论 14
参考文献 15
谢 辞 16
附录:源程序代码 17