- 1
- 0
- 约 15页
- 2017-09-22 发布于江苏
- 举报
摘要:
在电路设计中我们时常会用到电压表,过去大部分电压表还是模拟的,虽然精度较高但模拟电压表用指针式,里面是磁电或电磁式结构,所以较慢基于tmel51单片机开发平台和自动控制原理的基础上实现的一种数字电压表系统。该系统采用tmel89C52单片机作为控制核心,以为数据采样系统,实现被测电压的数据采样;使用系列比较器检测输入电压的范围,并通过继电器阵列实现了输入量程的自动转换;
Abstract:
In circuit design, we often use voltage meter,Over the past most of the voltage meter or a simulation,Although high precision analog voltage used in the table, but with the pointer, which is a magnetic or electromagnetic structure,so the slow response.To meet the many areas of high-speed signal has been widely used digital voltmeter.The design is based on Atmel51 microcontroller development platform and automatic control based on the principle of a digital voltage meter system.The system uses Atmel89C52 microcontroller as the control core, ADC0809 for the sampled data system, data sampling to achieve the measured voltage;Series compared with the range of detected voltage, and relay array to achieve through the automatic conversion of the input range; using common cathode LED display the measured voltage.
Key words: Single Chip Micyoco、Voltage detection、Analog Digital Conversion
目 录
摘 要 1
第一章 引 言 3
第二章 开发平台Keil 4
2.1 系统概述 4
2.2 整体架构 5
第三章 硬件设计思想和原理图 6
3.1 系统总体设计框图 6
3.2 单片机系统 7
3.3 AD转换电路 8
3.4 信号调理模块 9
第四章 软件设计与流程 10
4.1 程序流图 10
4.2 功能介绍 10
第五章 软件仿真及测试数据 11
5.1 仿真结果 11
参考文献 12
附 录 13
第一章 引 言
电子电压表主要用于测量各种高、低频信号电压,它是电子测量中使用最广泛的仪器之一。根据测量结果的显示方式及测量原理不同,电压测量仪器可分为两大类:模拟式电压表(AVM)和数字式电压表(DVM)。模拟式电压表是指针式的,多用磁电式电流表作为指示器,并在表盘上刻以电压刻度。数字式电压表首先将模拟量经模数(A/D)转换器变成数字量,然后用电子计数器计数,并以十进制数字显示被测电压值。
众所周知,模拟电压表精度较高,曾经有很广阔的市场,现在依然有不少工程师依然在使用模拟电压表。的确模拟电压表在显示测量值方面精度校准,然而却也存在问题。模拟电压表用指针式,里面是磁电或电磁式结构,所以较慢tmel89C52单片机作为控制核心,以为数据采样系统,实现被测电压的数据采样;使用系列比较器检测输入电压的范围,
3.2 单片机系统
单片机最小系统包括复位电路,晶振电路,电源电路,仿真时需搭建复位电路和晶振电路。
晶振电路:
单片机最小系统如下所示,其中P1口用于驱动数码管,P0口用于接收ADC0809转换的数据。P2口用于控制ADC0809。
单片机最小系统:
3.3 AD转换电路
利用ADC0809作为AD数据采样器件, ADC0809是CMOS单片型逐次逼近式A/D转换器它由8路模拟开关、地址锁存与译码器、比较器、8位开关树型D/A转换器、逐次逼近。A
原创力文档

文档评论(0)