1. 设计思路 .............................................................................................................................................1
2.1 电源提供方案................................................................................................................................1
2.2 显示界面方案................................................................................................................................2
2.3 输入方案:....................................................................................................................................2
3 单片机交通控制系统总体设计 ...........................................................................................................2
3.1 单片机交通控制系统的通行方案设计 ........................................................................................2
3.2 单片机交通控制系统的功能要求................................................................................................3
3.3 单片机交通控制系统的基本构成及原理 ....................................................................................4
4 智能交通灯控制系统的硬件设计 ........................................................................................................4
4.1 AT89C51 单片机简介 ....................................................................................................................4
4.1.1 AT89C51
单片机的主要特性
..................................................................................................5
4.1.2
主要引脚功能
.........................................................................................................................5
4.2 交通灯中的中断处理流程.............................................................................................................7
4.3 系统硬件总电路构成及原理.........................................................................................................8
4.3.1
系统硬件电路构成
..................................................................................................................8
4.3.2
系统工作原理
..........................................................................................................................8
4.4 其它硬件介绍及连接 .....................................................................................................................9
4.4.1 八段 LED 数码管 ........................................................................................................................9
5 系统软件程序的设计 .........................................................................................................................11
5.1 程序主体设计流程.......................................................................................................................11
5.2 理论基础知识..............................................................................................................................12
5.2.1
定时器原理
............................................................................................................................12
5.2.2
软件延时原理
........................................................................................................................13
5.2.3 中断原理....................................................................................................................................13
5.3 子程序模块设计 ...........................................................................................................................13
5.3.1
状态灯显示及判断
................................................................................................................13
5.3.2 LED
倒计时显示
................................................................................................................14
5.3.3
紧停及调整时间中断子程序
.............................................................................................14
5.3.4 红绿灯时间调整程序
.........................................................................................................15
5.4 系统软件调试 .............................................................................................................................17
5.4.1 TKS
仿真器
............................................................................................................................17
5.4.2 集成开发环境 KEIL
............................................................................................................17
参考文献……………………………………………………………………………………………..17
设计心得体会………………………………………………………………………………………...18
附录……………………………………………………………………………………………………19