数字电压表课程设计

2019-03-16 20:49

《单片机技术》课程设计说明书

数字电压表

院 、 部: 电气与信息工程学院 学生姓名: 指导教师: xx 职称 副教授 专 业: 通信工程 班 级:

完成时间: 2013年12月

摘 要

随着电子科学技术的发展,电子测量成为广大电子工作者必须掌握的手段,对测量的精度和功能的要求也越来越高,而电压的测量甚为突出。传统的指针式电压表功能单一、精度低,不能满足数字化时代的需求,而采用单片机的数字电压表,由于精度高、抗干扰能力强,可扩展性强、集成方便,还可与PC进行实时通信数字电压表是采用数字化测量技术。

该设计主要由四个模块组成:A/D转换模块,数据处理模块、显示模块及独立键盘模块。A/D转换主要由芯片ADC0809来完成,它负责把采集到的模拟量转换为相应的数字量在传送到数据处理模块。数据处理则由芯片AT89C52来完成,它控制着ADC0809芯片工作,还负责把ADC0809传送来的数字量经过一定的数据处理,产生相应的显示码送到显示模块进行显示。

本设计通过A/D转换模块,数据处理模块及显示模块,实现了对模拟电压的转换,并通过软件实现了在数码管上显示。虽然有一点误差,但基本实现了技术指标中的要求。

关键词:数字电压表;模数转换;AT89S52;ADC0809

2

ABSTRACT

With the development of electronic technology, electronic measurement electronics workers must become the master of the method, the measurement accuracy and functional requirements are increasingly high, while the voltage measurement is very prominent. function pointer voltmeter traditional single, low accuracy, can not meet the demand of digital era, and the use of singlechip digital voltage meter, because of high accuracy, strong anti-interference ability, expansibility, convenient integration with pc, can communicate in real time digital voltage meter is used in digital measurement technology.

The design consists of three main modules: a/d conversion module, data processing module and display module. a/d conversion is mainly completed by the adc0809, it is responsible to collect the analog conversion to digital quantity corresponding to the transmitted to the data processing module. data processing is mainly completed by the at89c52 chip, it controls the adc0809 chip, is also responsible for the digital adc0809 transmission after data processing, the generated code to display the display module to display the corresponding.

This design through the a/d conversion, data processing module and display module, realizes the conversion of the analog voltage, and realized by software in the digital tube display. although there is a little bit error, but the basic realization of the technical index requirements.

Key words: digital voltage;a/d conversion;at89s52;adc0809

3

目 录

1 总体设计......................................................... 6 1.1 设计目的 ........................................................................................................................... 6 1.2 功能要求 ........................................................................................................................... 6 1.3 系统设计 ........................................................................................................................... 6 1.4 设计思路 ........................................................................................................................... 6 1.5 设计方案 ........................................................................................................................... 6 1.6 总体设计框图 ................................................................................................................. 7 2 硬件电路设计..................................................... 8 2.1 核心元器件介绍............................................................................................................. 8 2.2 其它部分电路介绍 ...................................................................................................... 11 2.3 电路原理图、CAD电路原理图、PCB图、元件布局图 ................................. 12 2.4 元件清单 ......................................................................................................................... 12 3 软件设计........................................................ 13 3.1 ADC0809模块 ................................................................................................................ 13 3.2 单片机模块 .................................................................................................................... 13 3.3 按键模块 ......................................................................................................................... 13 3.4 显示模块 ......................................................................................................................... 13 3.5 程序流程图 .................................................................................................................... 13 3.6 程序清单 ......................................................................................................................... 16 3.7 程序说明 ......................................................................................................................... 16 4 调试仿真及结论.................................................. 17 4.1 仿真结果 ......................................................................................................................... 17 4.2 设计体会 ......................................................................................................................... 18 4.3 教学建议 ......................................................................................................................... 18 结束语............................................................. 19 致 谢............................................................. 20 参考文献........................................................... 21 附 录............................................................. 21 附录A 原理图 ........................................................................................................................ 22

4

附录B PCB ............................................................................................................................... 22 附录C CAD图 ......................................................................................................................... 25 附录D 元器件布局图 ......................................................................................................... 26 附录E 元件清单 ................................................................................................................... 27 附录F 程序清单 ................................................................................................................... 28

5


数字电压表课程设计.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:中英合作商务交流2002-2010试题

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: