目 录
序言 .............................................................1
1. 方案论证 ......................................................1
1.1 芯片 .................................................................1
1.1.1 方案一 .........................................................................................................................................1
1.1.2 方案优点 .....................................................................................................................................2
1.2 输入模块 .............................................................2
1.2.1 方案一 .........................................................................................................................................2
1.2.2 方案的优点 .................................................................................................................................2
1.3 显示模块 .............................................................2
1.3.1 方案一 .........................................................................................................................................2
1.3.2 方案的应用 .................................................................................................................................3
2. 计算器硬件设计 ................................................3
2.1 系统组成及硬件框图 ...................................................3
2.2 元器件简介 ...........................................................3
2.2.1 STC89C52 特点 ...........................................................................................................................3
2.2.2 LCD1602 液晶显示屏 .................................................................................................................8
3. 计算器设计原理分析 ...........................................11
3.1 设计方案一 ..........................................................11
3.2 计算器硬件方案及硬件资源分配 ........................................11
3.2.1 硬件资源分配 ...........................................................................................................................11
3.2.2 系统的硬件设计 .......................................................................................................................11
3.2.3 键盘电路的设计 .......................................................................................................................12
3.2.4 显示电路的结构 .......................................................................................................................13
4. 计算器软件设计 ...............................................14
4.1 计算器的软件规划 ....................................................14
4.2 主模块的程序设计 ....................................................14
4.3 显示模块的程序设计 ..................................................15
4.4 键盘模块的程序设计 ..................................................17
结 论 ...........................................................19
参考文献 ........................................................20
附录一 电路原理图 ...............................................21
附录二 软件程序 .................................................21