欢迎来到天天文库
浏览记录
ID:11816427
大小:895.00 KB
页数:36页
时间:2018-07-14
《基于单片机的直流数字电压表(设计)本科学位论文.doc》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、河北大学工商学院2012届本科生毕业论文(设计)河北大学工商学院装订线本科生毕业论文(设计)题目:基于单片机的直流数字电压表学部信息科学与工程学部学科门类工学专业电气工程及其自动化学号2008480358姓名牛传贝指导教师李梅2012年5月21日河北大学工商学院2012届本科生毕业论文(设计)基于单片机的直流数字电压表摘 要本文介绍一种基于AT89C51单片机为主要控制器件,采用ADC0809高精度、逐次逼近式A/D转换器的8路直流式数字电压表。主要包括硬件电路设计和软件设计两部分。硬件电路主要由四个模
2、块组成:通路选择模块、A/D转换模块、数据处理模块以及显示模块。通路选择模块主要由按键选择电路组成,负责8路模拟通道的选择。A/D转换模块采用ADC0809完成,负责把采集到的模拟量转换为相应的数字量再传送到数据处理模块。数据处理模块则由AT89C51完成,其对ADC0809传送来的数字量进行一定的数据处理,产生相应的显示码送到显示模块进行显示,并负责控制ADC0809和读取按键的工作。输出显示模块采用4位一体的7段LED数码管,负责将所选通道数以及该通道电压值显示在数码管上。软件设计部分主要包括主程序以
3、及初始化程序,按键读取程序,中断程序,显示程序等几个子程序模块。通过按键的选择,该数字电压表可以测量8路模拟电压值,在多点巡回检测和过程控制、运动控制中应用十分广泛。关键词:单片机;数字电压表;A/D转换;ADC0809河北大学工商学院2012届本科生毕业论文(设计)DesignofDCDigitalVoltmeterBasedonSingle-chipMicrocontrollerAbstractThispaperintroducesakindofnewmethodaboutDCdigitalvoltm
4、eterwhichtakestheMicroControllerUnitAT89C51astheprimarycontrolcomponentandusesthehigh-precision,successiveapproximationA/DconverterADC0809.Itmainlyincludedhardwarecircuitdesignandsoftwaredesign.Thehardwarecircuitismainlycomposedbyfourmodules:pathselection
5、module,A/Dconversionmodule,dataprocessingmoduleanddisplaymodule.Channelselectionmodulecomposedofakeyselectioncircuit,whichisusedfortheselectionof8analogchannels.A/DconversionmoduleusesADC0809tofinish.Itputstheanalogconversionforthedigitalquantity,andthent
6、heresultistransmittedtothedataprocessingmodule.ThedataprocessingmoduleiscompletedbytheAT89C51.Ononehand,theADC0809sendsthedigitalquantitytocertaindataprocessingtoproduceacorrespondingdisplaycodeswhicharesenttothedisplaymodulefortheshowofvoltage.Ontheother
7、handtheAT89C51isresponsibleforthecontrolofADC0809andreadingthekey.OutputdisplaymoduleiscomposedofaLEDdigitaltube,whichisusedfordisplayingtheselectedchannelandthevoltagevalueofthischannel.Whilethesoftwaresystemconsistsofmainprocedure,initializationprocedur
8、e,keyreadingprogram,interruptprogram,displayprogramandsubroutinemodule.Thisdigitalvoltmetercanmeasurethevoltagevalueof8waysbythechoiceofakey.Itiswidelyusedinthemulti-circuitdetectionandprocesscontrol,motioncontrol.K
此文档下载收益归作者所有