1、 I 自动选档数字电压表的设计自动选档数字电压表的设计 摘摘 要要 数字电压表自诞生以来被广泛应用于工控,教学及社会生产中,需要测量电压电 流值的各种场所。 本文研究基于单片机的自动选档数字电压表的设计,本设计的数字式电压表,具 有可自动选档,实用性高,测量精准等特点。通过对现有的各种方案分析,采用以单 片机为中央处理器,接收到电信号后,利用芯片及设计电路完成 A/D 转换功能,通过 对电信号的转换由 LCD 显示结果,完成测量过程。本文给出了具体的硬件设计电路和 软件结构,文中给出了系统硬件线路的设计要点和电路结构以及软件的设计要点。 本文设计的数字电压表,其硬件电路所用元件较少、成本低、调
2、节简单;软件程 序采用 C 语言编写,可读性强。经过理论研究、原理设计和整机调试,实验结果表明, 本设计达到了可自动选档,测量精准等初步要求。 关键词关键词: 数字电压表 单片机 LCD A/D 转换 1 II The design of a Digital Voltmeter of function of Automatic selected stalls Abstract Digital Voltmeter since its created that has been widely used in a variety of palce,such as industrial, teachi
3、ng and social production where is that voltage and current values measured. This article is about the design of a Digital Voltmeter of function of Automatic selected stalls,the microcontroller-based Digital Voltmeter of the function that is Automatic selected stalls,high availablity and precise meas
4、urement. Analysis on the various programs,put the Microcontroller as the central processor received electrical signal , A/D conversion function achieved by using the chip and circuit design, when the transformed electrical signal displayed by the LCD ,the measurement process is completed.In this pap
5、er, a detailed description of the design of the system hardware circuit design and structure, as well as the design of software ,all of about that is given. The digital voltage meter designed in this paper, have less components in the hardware part, lower cost and easier testing; software used C pro
6、gramming language which is strong readability. After theoretical research, principle design and debugging, the experimental results suppose it is feasible of choosing this program . Key words: Digital Voltmeter Microcontoller LCD A/D conversion III 目目 录录 前 言 1 第 1 章 整体设计 . 4 第 1.1 节 设计指标 . 4 第 1.2 节 设计方案的论证 4 第 1.3 节 系统总体设计 6 第 1.4 节 小结 . 7 第 2 章 系统的硬件结构 8 第 2.1 节 硬件系统的设计原则 8 第 2.2 节 单片机及外围电路设计 9 第 3 章 软件程序设计 . 27 第 3.1 节 软件设计要求 . 27 第 3.2 节 程序