8位四则运算计算器设计报告

单片机应用课程设计报告

设计题目 姓 名 学 号 年 级 专 业 指导教师 考核成绩

8位四则运算计算器

胡成、柏壮壮、王庆安、杜威、孙润 Z11414107、Z11414039

Z11414075、Z11414101、Z11414105

2014级 自动化 张道信、张德祥

电气工程与自动化学院

2017 年 6 月 28 日

第 1 页 共 19 页

8位四则运算计数器

8位四则运算计数器

摘要

随着时代的发展,单片机在生活中应用越来越广泛。而生活中,用到计算的场合十分之多,有时候计算较复杂时,人工计算远远不及计算器的快速性、准确性。因此计算器的出现大大便捷了人类生活。本文介绍用STC89C52RC单片机来设计简单四则运算计算器。

关键词:STC89C52RC、硬件电路、软件程序

8 Bit Arithmetics Calculating

Abstract

With the development of the era, MCU becomes more and more general in life. And calculation applies to many occasions in life, sometimes calculate by self can not be comparable to calculating in complex occasions, especially in the aspect of rapidity and accuracy. So, the appearance of calculating has convenient people’s lives. This writings introduces how to design simple arithmetics calculating with STC89C52RC MCU.

Keywords: MCU、Hardware circuit、Software program

第 2 页 共 19 页

8位四则运算计数器

目录

摘要................................................................................................................................ 2 第1章 单片机的基本概述.......................................................................................... 4

1.1 基本概述 .......................................................................................................................... 4

第2章 单片机应用课程设计的目的和意义.............................................................. 5

2.1 设计的目的和意义 .......................................................................................................... 5

第3章 系统的硬件电路设计...................................................................................... 6

3.1 系统的整体设计框架 ....................................................................................................... 6 3.2 系统的硬件设计模块 ..................................................................................................... 6

3.2.1 晶振电路 ............................................................................................................... 6 3.2.2 复位电路 ............................................................................................................... 7 3.2.3 矩阵键盘电路 ....................................................................................................... 7 3.2.4 蜂鸣器电路 ........................................................................................................... 8 3.2.5 LCD显示电路 ...................................................................................................... 8

第4章 系统的软件设计.............................................................................................. 9

4.1 矩阵键盘扫描程序 ............................................................................................................ 9 4.2 LCD程序 ....................................................................................................................... 11

第5章 功能分析........................................................................................................ 14

5.1 功能分析 .......................................................................................................................... 14

第6章 个人心得体会................................................................................................ 15

6.1 胡成的心得体会 .............................................................................................................. 15 6.2 柏壮壮的心得体会 .......................................................................................................... 15 6.3 王庆安的心得体会 .......................................................................................................... 15 6.4 杜威的心得体会 .............................................................................................................. 15 6.5 孙润的心得体会 .............................................................................................................. 15

参考文献...................................................................................................................... 16 附录一 硬件电路图.................................................................................................... 17 附录二 系统硬件电路照片........................................................................................ 18

第 3 页 共 19 页

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4