基于51单片机的简易计算器

..

课程设计(论文)说明书

题 目:基于单片机简易计算器的设计 院 (系): 专 业: 学生姓名: 学 号: 指导教师:

职 称:

2011年 12月 18日

摘 要

此文档部分内容来源于网络,如有侵权请告知删除!

..

简易计算器是一种非常广泛日常工具,对现代社会越来越流行。它可以进行一些简易的计算。本系统提供详细的时、分、秒、年、月、日的时间信息,同时还可进行简易的计算信息,还具有时间校准等功能。该电路采用AT89S52单片机作为核心,功耗小,能在3V的低压工作,电压可选用3~5V电压供电。本系统硬件部分由AT89S52单片机、LCD1602液晶屏、键盘、指示灯系统等部分构成。软件部分在keil环境下用C51语言编写,包括时间设置、时间显示、简易计算显示等。

关键字:AT89S52;液晶屏LCD1602;键盘

Abstract

Simple calculator is a very broad everyday tool for modern society is more and more popular. It can carry on some simple calculation. This system provides detailed, minutes and seconds, year, month, day time information, and at the same time but also for simple calculation information, but also has time calibration etc. Function. This circuit AT89S52 SCM as the core, power consumption is small, can be in 3 V of low-pressure work, voltage can choose 3 ~ 5 V voltage power supply. This system hardware part AT89S52 SCM by LCD1602 LCD screen, keyboard, indicator system, part. Software in under the environment of keil with C51 language, including time set, time display, simple calculation shows, etc. In the programming process found on existing knowledge to finish writing task difficult, the teachers and students of help to finish the program part of the code.

Keyword:AT89S52;AT89S52 devices; LCD1602 LCD screen; keyboard

目 录

摘要…………………………………………………………………………………………..1

此文档部分内容来源于网络,如有侵权请告知删除!

..

引言………………………………………………………………………………… ……….3 1 单片机及其应用……………………………………………………………………...3

1.1单片机介绍………………………………………………………………………………3 1.2单片机的应用……………………………………………………………………………4 1.3 AT89S52单片机…………………………………………………………………………4

2 液晶屏LCD1602原理及应用…………………………………………………….... 7

2.1液晶屏LCD1602介绍及工作原理…………………....……………… …………………..7 2.2 液晶屏LCD1602的功能及应用…………………………………………………………7

3 设计思路、仿真及调试……………………………………………………………...12

3.1设计方法…………………………………………………………………………………12 3.2硬件设计……………………………………………………………………. ………….12 3.2.1按键调整电路…………………………………………………………………………12 3.2.2复位电路……………………………………………………………………….....13 3.2.3 液晶屏LCD1602显示电路…...…………………………………………………13 3.2.4 LED指示电路…………………………………………………………………….13 3.2.5 4*4键盘的设计……………………………………………………………….....14 3.2.6 简易计算器的总电路............................................14 3.3软件设计……………………………………………………………… ……………………15 3.4软件仿真…………………………………………………………………………………15 3.5硬件调试……………………………………………………………………..…………..16

4 结束语…………………………………………………….. …………………………..17 谢辞…………………………………………………………..……………………………...18 参考文献………………………………………………………..………………………….19 附件……………………………………………………………………….…………………20

引言

此文档部分内容来源于网络,如有侵权请告知删除!

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