资讯详情

基于51单片机的计算器设计(含电路图,程序)

计算器设计(包括电路图、程序)(主题申报表、任务书、开题报告、中期检查表、外文翻译、论文11200字、程序、答辩)PPT)

摘 要

计算器一般是指能够进行数学操作的电子计算器手持机,具有结构简单、功能弱的集成电路芯片,但由于使用方便、操作简单、价格低廉,广泛应用于商业交易,也是必要的办公用品。

近年来,随着科学技术的飞速发展,单片机的应用不断深化,传统控制检测技术也在不断更新。在实时检测和自动控制的单片机应用系统中,单片机常被用作核心部件,但单片机知识不够,应根据具体的硬件结构和软硬件进行改进。因此,单片机的应用越来越贴近生活,用单片机实现一些电子设计变得容易。计算器是人们日常生活中常见的电子产品之一。然而,它仍在发展中,未来将会有一个功能更强大的计算器。基于这一概念,本设计是由单片机设计的计算器。该设计系统为 AT89S52 为单片机, P1 口作为输入端,外接 4X4 的键盘。通过键盘扫描来对输入数的控制,在 P0 口、P2 端口连接驱动电路以确保 LCD 正常工作。计算器具有加、减、乘、除等功能。

关键词:计算器;单片机;LCD;矩阵键盘

[毕业设计网 https://Doc163.com]

Abstract

Calculator generally refers to the electronic calculator, and the term is introduced to China by the Japanese. The calculator with the IC chip, simple structure, and weak function is able to perform mathematical operations on handheld machine. But it is easy using, simple operation and low price. So it is widely used in commercial transactions, and is also an essential office supplies.

With the rapid development of science and technology in recent years, the application of SCM is the deepening and promote the traditional controlling detection technologies that are increasingly updated. In real-time detection and automatic control of microcomputer application system, the microcontroller is often used as a core component to use, but only the knowledge of the microcontroller is not enough, and should be based on the specific hardware architecture, hardware and software combination to make it perfect. So the application of SCM is more and more close to life, so using of single chip to achieve some electronic designs also become easy. In the people daily life the calculator is one of the common electronic products. But it is still in development, it will become more powerful calculator in the future. According to such idea, the design is that SCM design calculator. The design system is based on AT89S52 microcontroller, P0 port as input, external 4X4 keyboard. In P1, P2mouth is connected with the drive circuit to ensure the normal work of LED. The calculator will complete add, subtract, multiply, divide and other function.

[毕业设计论文网 https://www.doc163.com]

Keywords: calculator, MCU, LCD, Matrix keyboard

计算器电路设计的总体设计框图如图3-1所示,控制器采用单片机STC89C52,显示采用LCD1602液晶屏,矩阵键盘和蜂鸣器用于信息输入。

1602采用标准的16脚接口,其中:

第1脚:GND为电源地

第2脚:VCC接5V电源正极

第3脚:V0是液晶显示器对比度调整端,正电源对比度最弱,接地电源对比度最高(对比度过高) 产生鬼影,使用时可通过10K调整对比度的电位器)。

第4脚:RS为寄存器选择,高电平1时选择数据寄存器、低电平0时选择指令寄存器。

第5脚:RW读写信号线,高电平(1),低电平(0)。

第6脚:E(或EN)端为使能(enable)高电平(1)时读取信息,负跳变时执行指令。

第7~14脚:D0~D7是8位双向数据端。15~16脚:空脚或背灯

源。15脚背光正极,16脚背光负极。

如图3-3所示,与单片机连接:

特性:

3.3V或5V工作电压,对比度可调,包括复位电路,提供清屏、字符闪烁、光标闪烁、显示位移等各种控制命令。DDRAM内建有192个5X7点阵字符发生器CGROM8个可由用户自定义的5X7字符发生器CGRAM微功耗、体积小、体积小,显示内容丰富,超薄轻巧,常用于袖珍仪表和低功耗应用系统。 [毕业设计论文网 Doc163.com]

[毕业设计网 https://Doc163.com]

ba10be2cb709a4aefa9350a46843da89.png

[毕业设计论文网 www.doc163.com]

目 录

第1章 概述 1

1.单片机发展现状 1

1.2计算器系统现状 2

1.选题的意义及现状 2

1.本文主要研究内容 2

第2章 总体方案及设计 3

2.1设计目的 3

2.2设计任务 3

2.3方案构思 3

2.4方案比较和选择 4

2.5系统总体模块图 4

2.6本章小结 4

第3章 系统的硬件设计和实现 5

3.1 系统总体设计框图 5

3.2.单片机主控模块的设计 5

3.3 LCD1602显示模块的设计 5

3.4 矩阵键盘模块设计 7 [毕业设计网 https://Doc163.com]

3.5 本章小结 9

第4章 软件设计 10

4.1显示程序设计 10

4.二键扫程序设计 10

4.3清零程序设计 10

4.4声开关程序设计 13

4.5总体设计 14

4.6 本章小结 15

第5章 系统模拟和原理图 16

5.1 Proteus仿真 16

5.2 本章小结 18

第6章 系统调试 19

6.硬件常见故障1 19

6.2软件调试 19

结论 21

致 谢 22

参考文献&nbp;  23

附录    24

程序    24 [毕业设计论文网 https://www.doc163.com]

标签: an5095集成电路

锐单商城拥有海量元器件数据手册IC替代型号,打造 电子元器件IC百科大全!

锐单商城 - 一站式电子元器件采购平台