1、 本 科 毕 业本 科 毕 业 设 计设 计 (20201 12 2 届)届) 题题 目目 自适应型交通信号灯控制系统的设计 学学 院院 专专 业业 班班 级级 学学 号号 学生姓名学生姓名 指导教师指导教师 完成日期完成日期 摘 要 本毕业设计主要研制自适应型交通信号控制系统,本系统可以根据实时的道 路车辆滞留量来对下一次的放行时间进行控制,从而实现交通灯的智能控制。 本系统设计以 AT89S52 单片机为路口控制核心、LED 作为显示、驱动电路与部 分模拟器件构成的一种电子产品。 AT89S52 单片机为控制核心, 能实时的进行控制; 由于 LED 有高节能、安全性高 、寿命长 、快速响应
2、、运行成本低等优点,所以 用作显示很合理;驱动电路用于对 LED 的驱动;此系统可以长时间稳定的运行, 可用于各种十字路口,进行自动的交通控制,由于留有其它接口,可以很方便的 进行升级扩展。 89C51 单片机的程序, 使用 keil 编译器进行设计和调试完成, 其主要功能是作 为中央控制器。 系统成功实现了定时模式以及自适应模式,还留有升级接口,可根据实际应 用对其进行升级扩展,对于现实应用有实际意义。 关键词:单片机,交通信号,自适应,智能控制 ABSTRACT This graduation Design is mainly development of adaptive traffic
3、 signal control system, the system can be based on real-time road vehicles retention of control to the next release time in order to achieve intelligent control of traffic lights. The system is designed to microcontroller AT89S52 junctions to the core, the LED as a display drive circuit part of the
4、simulator consisting of an electronic product. AT89S52 MCU is very reasonable for the control of the core real-time control; LED has high energy, high safety, long life, fast response, low operating costs, so used as an indicator; The drive circuit for the LED driver; This system can be a long run,
5、can be used for a variety of crossroads, automatic traffic control, leaving other interfaces, you can easily upgrade and expansion. The program of 89C51 MCU is designed in keil and debugged using keil compiler. its main function is as a central controller. The successful implementation of the timing
6、 mode and adaptive mode, also left to upgrade the interface upgrade and expansion, according to the practical application of its practical significance for reality applications. Key words:MCU,Traffic signals,self-adaption, automatic control 目 录 1 引言 . 1 2 概述 . 2 2.1 自适应型交通信号灯控制系统 . 2 2.2 本设计方案思路 . 2 2.3 单片机概述 2 . 2 2.4 8255 可编程并行接口芯片概况: 7 2.4 74HC573 概况 8 3 总体设计 . 10 3.1 定时模式下原理 . 10 3.2 自适应模式下原理 . 11 3.3 其他说明 . 12 4 硬件设计 . 13 4.1 主控制器部分设计 . 13 4.2 扩展并行 IO 口设计. 16 图