单片机课程设计报告(简易计算器)
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
简易计算器
摘要:计算器是人们的日常生活中是最常见的电子产品之一,它应用极广、发展迅猛,并且不断出现着拥有更加强大功能的计算器。为了解和研究计算器,本次课设设计制作了一个简易计算器,能够在十四位的计算范围内进行“+”、“-”、“*”、“/”的基本运算,能进行负数以及小数点后两位的精确结果显示。该计算器以AT89C51单片机芯片作为核心。采用LCD1602工业字符液晶进行显示。完成的计算器经过检验能够完整的实现预设功能,各种细节完善,具有很高的使用价值。
关键词:单片机;简易计算器;AT89C51;LCD1602
Simple Calculator
Abstract:Calculator is People's Daily life is one of the most common electronic products, used very wide, developing rapidly, and constantly appear more powerful function with have calculators. In order to understand and study calculator, this class set design made a simple calculator, can the calculation in within 14 "+" and "-" and "*", "/" the basic computing, can carry out negative and two decimal places accurate results are shown. This calculator with AT89C51 chips as the core. Using liquid LCD1602 industrial characters displayed. Complete calculator after inspection can complete realization, various details preset functions to perfect, have high use value.
Keywords:MCU; Simple calculator;AT89C51;LCD1602
目录
中文摘要............................................................1英文摘要............................................................2单片机课程设计......................................................4 1 课程设计任务.....................................................4
1.1 主要功能设计................................................4
1.2 任务目的....................................................4
2 整体设计方案......................................................4
2.1 方案论证....................................................4
2.2 系统框图....................................................5
3 硬件电路的设计...................................................6
3.1 计算机Protel总图............................................6
3.2 显示电路设计方案............................................9
3.3 键盘设计方案................................................9
3.4 复位电路设计...............................................10
3.5 晶振电路设计...............................................10
4 控制软件设计....................................................11
4.1 程序时序总图...............................................11
4.2 液晶显示软件设计...........................................12
4.3 键盘输入软件设计...........................................13
4.4 计算函数设置...............................................15
5 系统调试........................................................18
5.1 硬件调试...................................................18
5.2 软件调试...................................................18参考文献...........................................................20个人小结...........................................................21附录...............................................................24附录1..........................................................24附录2..........................................................25