目录
1.绪论................................................................................................................................................1
1.1 设计背景.............................................................................................................................1
1.2 设计要求.............................................................................................................................2
1.2.1 硬件设计................................................................................................................2
1.2.2 软件设计.................................................................................................................2
1.2.3 功能要求.................................................................................................................2
1.3 设计意义............................................................................................................................2
2.单片机选择方案............................................................................................................................2
2.1 电源选择方案.....................................................................................................................2
2.2 选择界面方案.....................................................................................................................2
3.硬件设计........................................................................................................................................3
3.1 硬件功能设计.....................................................................................................................3
3.2 主要器件介绍....................................................................................................................3
3.2.1 单片机 STC89C52RC...............................................................................................3
3.2.2 LED 数码管.............................................................................................................6
3.3 复位电路............................................................................................................................6
3.4 晶振电路.............................................................................................................................7
4.软件设计........................................................................................................................................7
4.1 软件功能模块....................................................................................................................7
4.2 系统工作流程设计............................................................................................................7
4.2.1 交通灯工作模式.....................................................................................................7
4.2.2 系统流程图.............................................................................................................8
5. 测试、数据及结果分析..............................................................................................................8
5.1 状态灯显示测试................................................................................................................8
5.3 整体电路测试....................................................................................................................8
设计心得体会....................................................................................................................................9
【参考文献】:..................................................................................................................................9
附录..................................................................................................................................................10
附录一......................................................................................................................................10
附录二......................................................................................................................................10
附录三......................................................................................................................................10
附录四......................................................................................................................................10