毕业论文设计_基于档磨片机的科学计算器设计.doc
文本预览下载声明
基于单片机的科学计算器设计
摘要
在现代科技迅猛发展的当今,计算器依然是人们日常生活中不可或缺的电子产品之一。计算器始终在不断发展及完善之中,功能必将更加强大。基于这样的理念,本设计采用AT89C51单片机作为主控芯片,使用C语言为系统进行编程,采用4*4矩阵键盘作为输入模块,输出模块采用LCD1602液晶显示,从而实现基于单片机的基本功能。
本设计重点说明以下几个方面内容:
基于单片机的计算器所具备哪些基本功能,对矩阵键盘输入原理及液晶显示原理进行简单的阐述。
介绍系统的整体设计理念,展示系统设计的流程框图,并对功能模块的划分,及所选用的元器件性能参数进行详细说明。
对系统的每个功能模块的软硬件设计,进行详细说明。
关键词 单片机,AT89C52,LCD1602液晶,矩阵键盘,C语言
ABSTRACT
In the rapid development of modern science and technology today, the calculator is still one of the electronic products is an integral part of peoples daily life. The calculator always among the continuous development and improvement, the function will certainly be more powerful. Based on this concept, the design uses AT89C51 microcontroller as the master chip, using the C programming language for the system, with 4 * 4 matrix keyboard as an input module, output module LCD1602 LCD display, in order to achieve the basic functions of the MCU.This design of principle and LCD matrix keyboard input.2.describes the systems overall design concept, showing the flow diagram of the system design, the and function module framing, and optional Component performance parameters described in detail.3.of each functional module of the system in detail.Key words microcontroller AT89C52,LCD1602 LCD,matrix keyboard,C language
目 录
摘要 I
ABSTRACT II
1 绪论 1
1.1课题的研究背景及意义 1
1.2本课题研究的主要内容 2
2 设计任务及方案 3
2.1设计任务 3
2.2设计方案 3
3 系统硬件设计 4
3.1单片机最小硬件系统 4
3.1.1主控芯片AT89C52单片机简介 4
3.1.2复位电路 9
3.1.3时钟电路 10
3.2键盘接口电路 10
3.3液晶显示电路 11
4 系统软件设计 15
4.1键盘扫描部分程序设计 15
4.2运算部分程序设计 15
4.3显示部分程序设计 16
4.4主函数程序设计 17
5仿真和调试 19
5.1 keil系统概述 19
5.2 Keil使用步骤 19
5.3proteus 7.1 介绍 20
5.4 Proteus 对于本设计的仿真步骤 20
5.5仿真结果 21
6 结论 22
参考文献 23
附录A: 源程序 24
附录B:系统总图 34
致 谢 35
1 绪论
1.1课题的研究背景及意义
计算器一般由运算器,存储器,控制器,键盘,显示器,电源和一些外围设备及电子配件组成。低档的计算器的运算器,控制器由数字逻辑电路实现简单的串行运算。其随机存储器只有一到二个单元,供累加存储用。高档计算器由只读存储器和微处理器一同实现各种复杂的运算程序。且有较多的随机存储单元用来存放输入程序和数据。键盘是计算器的输入部件,采用接触式或传感式。显示器是计算器的输出部件,有发光二极管显示器或液晶显示器等。除显示计算结果外,还常有溢出指示、错误指示等显示。计算器电源采用电池或者交流转换器池。为节省电能,计算器都采用CMOS工艺制作
显示全部