目 录
目 录........................................................................................................................1
摘 要........................................................................................................................3
关 键 词..................................................................................................................3
Abstract...................................................................................................................3
Keywords................................................................................................................4
1、引言...................................................................................................................5
2、设计方案论证...................................................................................................5
2.1 主控芯片选择方案................................................................................................................................5
2.2 电源模块选择方案................................................................................................................................5
2.3 显示模块选择方案................................................................................................................................5
2.4 数码管显示模块选择方案....................................................................................................................6
2.5 键盘接口模块选择方案........................................................................................................................6
3、简介...................................................................................................................6
3.1 调试软件 keil 简介................................................................................................................................6
3.2 硬件仿真 Proteus 简介..........................................................................................................................7
4、课题描述与分析...............................................................................................7
4.1 系统需求描述与分析............................................................................................................................7
4.2 系统工作流程........................................................................................................................................8
5、课题设计...........................................................................................................9
5.1 总体设计................................................................................................................................................9
5.2 硬件设计..............................................................................................................................................10
5.2.1 单片机最小系统.......................................................................................................................10
5.2.2 电源模块电路模块...................................................................................................................11
5.2.3 时钟和复位电路模块...............................................................................................................11
5.2.4 数码管显示电路模块...............................................................................................................12
5.2.5 LED 灯显示模块......................................................................................................................13
5.2.6 键盘接口电路模块...................................................................................................................14
5.2.7 串行通信接口电路...................................................................................................................14
5.3 软件设计..............................................................................................................................................15
5.3.1 整体流程图...............................................................................................................................15
5.3.2 主程序模块...............................................................................................................................16
5.3.3 数码管显示模块.......................................................................................................................16
5.3.4 键盘扫描程序模块...................................................................................................................17
5.3.5 闪烁显示程序模块...................................................................................................................18
5.3.6 按键处理程序模块...................................................................................................................19