基于单片机的数字电压表的设计 下载本文

内容发布更新时间 : 2024/5/22 9:27:01星期一 下面是文章的全部内容请认真阅读。

JIANGXINORMALUNIVERSITY

《单片机原理与应用》期末设计

题目: 数字电压表的设计 Title: Design of Digital Voltmeter

院系名称: 学生姓名: 学生学号: 专 业: 指导老师: 完成时间:

声 明

本人郑重声明:

所呈交的《单片机原理与应用》期末设计(论文)是本人在指导教师指导下进行的研究工作及取得的研究成果。其中除加以标注和致谢的地方,以及法律规定允许的之外,不包含其他人已经发表或撰写完成并以某种方式公开过的研究成果,也不包含为获得其他教育机构的学位或证书而作的材料。其他同志对本研究所做的任何贡献均已在文中作了明确的说明并表示谢意。

本《单片机原理与应用》期末设计(论文)成果是本人在江西师范大学读书期间在指导教师指导下取得的,成果归江西师范大学所有。

特此声明。

声明人(《单片机原理与应用》期末设计(论文)作者)

学号:

声明人(《单片机原理与应用》期末设计(论文)作者)

签名:

签名日期: 2016年 12月 19日

摘 要

本系统以 STC89C51单片机作为系统的核心,单片计算机即单片微型计算机。(Single-Chip Microcomputer),是集CPU ,RAM ,ROM 定时,计数和多种接口于一体的微控制器。它体积小,成本低,功能强,广泛应用于智能产业和工业自动化上。近年来随着计算机在社会领域的渗透, 单片机的应用正在不断地走向深入,同时带动传统控制检测日新月益更新。在实时检测和自动控制的单片机应用系统中,单片机往往是作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构,以及针对具体应用对象特点的软件结合,以作完善。而51系列单片机是各单片机中最为典型和最有代表性的一种。这次毕业设计通过对它的学习,应用,从而达到学习、设计、开发软、硬的能力。

简易电压表是利用模拟量转换成数字量经单片机处理并反映在显示器上,它可以分析5V的电压,并能用该电压表可测出该电路的电流和电阻值。

本文介绍了电压表的使用和开发环境,仿真系统和开发使用的MCS-51系列的单片机芯片。在第二章论述了总体设计过程,确定了技术指标及器件的选择第四章着重描述了系统硬件电路设计、硬件设计框图及所使用的各种芯片功能与特性。

关键词: 电压表、 单片机技术、A/D转换

I

Abstract

With the infiltration in the social field of the computer in recent years, the application of the one-chip computer is moving towards deepening constantly, drive tradition is it measure crescent benefit to upgrade day to control at the same time. In measuring in real time and automatically controlled one-chip computer application system, the one-chip computer often uses as a key part, only one-chip computer respect knowledge is not enough, should also follow the structure of the concrete hardware , and direct against and use the software of target's characteristic to combine concretly, in order to do perfectly.

The pressure system of much passways of simulation utilizes the pressure sensor to gather the pressure at present and reflect by display, it can analyse excessive Cheng of the pressure , sends out and reports to the police. It can be according to inputting the amount of money of calculating out the object with accurate unit price to adopt the principle of the electronic scale.

This text has introduced the research meaning of this system and development environment used in the introduction at first, artificial system of the big good fortune and developing the one-chip computer chip of MCS-51 series used. Have described the overall design process in chapter two, have confirmed chapter three of choice of technical indicator and device has described emphatically that designs the block diagram and various kinds of chip functions and characteristics used in circuit design of the systematic hardware , hardware, have analyzed the design course of the software especially in chapter four.

Keywords: Electric voltage form, technology of the one-chip computer , A/D change

II

目 录

摘 要 ............................................................ I ABSTRACT ......................................................... II 1 引言 ............................................................ 1 2 设计要求 ........................................................ 1 3 核心芯片简介 .................................................... 1 3.2 AT89S52简介 ................................................. 2 3.3 方案设计 .................................................... 2 4 设计原理 ........................................................ 3 4.1 硬件电路设计 ................................................. 3 4.2 单片机AT89S52外围电路设计 ................................... 3 4.3:ADC0832部分电路图 .......................................... 5 4.4 显示设计 .................................................... 5 4.5电源设计 ..................................................... 6 5. 设计总电路图 ................................................... 6 6 结论 ............................................................ 7 附录一:源程序 .................................................... 7

III