目录
1 概述 ...............................................................................................................................................3
1.1 单片机的结构 ................................................................................................................3
1.2 单片机的产生和发展 ..................................................................................................3
1.3 单片机的应用领域 .......................................................................................................4
2 系统总体方案及硬件设计......................................................................................................6
2.1 系统总体方案 ...............................................................................................................6
2.2 单片机选择.....................................................................................................................6
2.3 时钟电路模块 ................................................................................................................7
2.4 复位电路模块 ................................................................................................................8
2.5 交通灯连灭控制电路模块 .........................................................................................8
2.6 时间显示模块 ................................................................................................................9
2.7 键盘扫描控制模块 .....................................................................................................10
2.8 时间调时模块 ..............................................................................................................11
3 软件设计....................................................................................................................................13
3.1 主程序............................................................................................................................13
3.2 中断服务程序 ..............................................................................................................15
3.3 显示子程序...................................................................................................................16
3.4 其他程序段...................................................................................................................16
4 PROTEUS 仿真...........................................................................................................................17
4.1 交通灯转换状态..........................................................................................................17
4.2 调时状态 .......................................................................................................................18
5 课程设计体会...........................................................................................................................19
参考文献 .......................................................................................................................................19
附 1:程序原代码 ......................................................................................................................20
附 2:系统原理图 ......................................................................................................................30