基于MCS-51单片机的简易计算器的设计与实现毕业设计论文 下载本文

内容发布更新时间 : 2024/9/20 4:29:24星期一 下面是文章的全部内容请认真阅读。

江苏农牧科技职业学院毕业论文(设计)

基于MCS-51单片机的简易计算器的设计与实现

【摘要】当今社会,随着人们物质生活的不断提高,电子产品已经走进了家家户户,无论是生活或学习,还是娱乐和消遣几乎样样都离不开电子产品,大型复杂的计算能力是人脑所不能胜任的,而且比较容易出错。计算器作为一种快速通用的计算工具方便了用户的使用,可是它还在发展之中,以后必将出现功能更加强大的计算器,所以本次设计是基于51单片机来设计的计算器,实现基本功能加减乘除,采用LCD显示结果数据。 【关键词】MCS-51;MM74C922;Protues;矩阵键盘;计算器

Design and implementation of a simple calculator based on

MCS-51 single chip microcomputer矚慫润厲钐瘗睞枥庑赖。 【Abstract】Nowadays, with the continuous improvement of people's living, electronic products have already walked into each and every family, whether life or learning, or entertainment and recreation almost everything cannot do without the electronic products, computing capability of large and complex is the human brain are not competent, and relatively easy to go wrong. The calculator as a fast general-purpose computing tools are easy to use, but it is still in development, later will appear a calculator function more powerful, so this design is to design based on 51 single chip computer, the realization of the basic functions of add, subtract, multiply and divide, uses LCD to display the results of data.聞創沟燴鐺險爱氇谴净。 【Keywords】MCS-51;MM74C922;Protues;Matrix keyboard ;calculator残骛楼諍锩瀨濟溆塹籟。

I

江苏农牧科技职业学院毕业论文(设计)

目 录

第一章 绪论 ........................................... 1 1.1 设计背景 ........................................ 1 1.2 设计内容 ........................................ 1 1.3 设计意义 ........................................ 1 第二章 设计方案及技术基础 .............................. 1 2.1 设计方案 ........................................ 1 2.2 方案论证及设计 .................................. 1 2.3 MCS-51单片机及开发环境介绍 ...................... 2 2.3.1 MCS-51系列单片简介 ......................... 2 2.3.2 MM74C922芯片 ............................... 3 第三章 硬件设计 ........................................ 4 3.1 硬件电路设计 .................................... 4 3.1.1 电路设计原理 ............................... 4 3.1.2 硬件电路设计 ............................... 5 3.2 时钟电路 ........................................ 5 3.3 复位电路 ........................................ 6 3.4 输入模块:键盘接口电路 .......................... 6 第四章 软件设计 ........................................ 8 4.1 主程序设计 ...................................... 8 4.2 外部中断0处理程序 .............................. 8 4.2.1 键值转化为键盘上按键值程序 ................. 9 4.2.2 算术运算程序 .............................. 10 4.3 LCD显示程序 .................................... 10 第五章 开发体会 ....................................... 13 5.1 Keil软件调试 ................................... 13 5.2 Protues软件仿真 ................................ 14 第六章 总结 ........................................... 15 参考文献 .............................................. 16

II

江苏农牧科技职业学院毕业论文(设计)

致 谢 .............................................. 17 附 录 .............................................. 18

III