基于单片机的数字电压表2.doc

  1. 1、本文档共38页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
摘 要 单片机是一种集成电路芯片,采用超大规模技术把具有数据处理能力(如算术运算,逻辑运算、数据传送、中断处理)的微处理器(CPU)。单片机可单独地完成现代工业控制所要求的智能化控制功能,这是单片机最大的特征。单片机控制系统能够取代以前利用复杂电子线路或数字电路构成的控制系统,可以软件控制来实现,并能够实现智能化。 本文介绍一种以89S52单片机为主要控制器件,采用常见的ADC0809作为A/D转换器的一种电压测量电路。主要包括硬件电路设计和软件程序设计。硬件电路主要包括数据采集模块,数据处理模块(单片机系统)和输出显示模块。在数据采集模块中,主要是在对电压信号采样前,用运算放大器LM324进行电压放大和电阻进行衰减,后采用ADC0809进行转换,将转换得到的信号送入单片机中,利用74HC4051实现多档自动换挡及测量。在数据处理模块(单片机系统)中,通过89S52单片机将A/D转换后得到的信号进行处理。显示模块中,采用LCD液晶模块1602显示。在软件设计方面,主要包括初始化程序,中断程序,AD转换程序,档位选择程序和显示程序等几个子程序模块。 系统可实现测量直流电压范围0-20V,可实现20V档,2V档,200MV档间自动换档,使用LCD液晶显示测量的电压值。 关键字:电压测量;自动换档;ADC0809;1602液晶模块 ABSTRACT SCM is a kind of integrated circuit chip, using VLSI technology have data processing capabilities (such as arithmetic, logic operation, data transmission, interrupt processing) microprocessor (CPU).SCM can be done alone by the request of modern industrial control intelligent control function,,this is the biggest feature of SCM .Single chip microcomputer control system to replace the use of complex electronic circuits or digital circuit control system, software control can be achieved, and to achieve intelligent. This paper introduces a 89S52 microcontroller as the main control device, adopts the common ADC0809 as A/D converter, a voltage measuring circuit .Mainly includes the design of hardware circuit and software program design. The hardware electric circuit mainly comprises a data acquisition module, data processing module (SCM system) and the output display module .In the data acquisition module, mostly in the voltage signal before sampling, with operational amplifier voltage amplification, after using ADC0809 conversion, will convert the received signal into the microcontroller, using 74HC4051 to realize automatic measurement .In a data processing module (SCM system), through the 89S52 single-chip A/D converted signals are processed .The display module, using LCD liquid crystal display module 1602.In software design, including initialization, interrupt, AD conversion process, gear selectio

您可能关注的文档

文档评论(0)

a13355589 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档