62II硬件总电路图63III实物图64附录V(程序清单)66
f华北水利水电大学毕业设计(论文)
摘要
随着时代的进步,用指针式万用表测量小幅度直流电压已经显得有些不太方便。因为指针式的测量不够精确,随着长时间的使用可能会造成欧姆调零以及机械调零的磨损,这都会对数据的测量造成很多困难,而采用数字式电压表来测量就可以避免这种情况的发生,而且操作更加方便。下面本文将介绍一种由数字电路以及单片机构成的数字电压表的设计方法。
本设计运用STC89C52和ADC0809进行AD转换根据数据采集的工作原理设计简易数字电压表将模拟电压量直接转换成数字量,用LCD液晶屏来显示。其基本原理是,模拟电压量经过AD转换芯片转换成数字量,送入单片机进行处理。最后输出的数据在经过线路驱动器送入液晶屏显示电压大小。最后介绍了程序流程,并用KEIL和PROTUES联机调试进行仿真。调试完成之后进行硬件焊接,测试并进行改进。最后完成测量的电压值。该数字电压表测量电压类型是直流测量范围是05V。
电路包括数据采集电路的单片机最小化设计、单片机钟电路、复位电路、AD转换电路、测量电压输入电路等。单片机采用STC89C52芯片、AD转换采用ADC0809芯片。
关键字:STC89C52单片机;ADC0809;AD转换;LCD显示;数据处理。
Abstract
Withtheprogressofthetimesthemeasureme
tofsmallamplitudeDC
I
f华北水利水电大学毕业设计(论文)
voltagewithaPoi
termultimeterhasabitlessco
ve
ie
tBecausethepoi
teris
otprecisee
oughtomeasure,withprolo
gedusemayresulti
azeroohmsa
dthewearofthemecha
icalzerothiswillbethemeasureme
tofdatacausedma
ydifficultiesMeasuri
gwithaPoi
termultimeteryouca
avoidthisfromhappe
i
ga
dtheoperatio
ismoreco
ve
ie
tThefollowi
garticledescribesthedesig
ofadigitalcircuitsa
dMCUsdigitalvoltmeter
Theuseofdesig
STC89C52a
dADC0809ADco
verteraccordi
gtotheworki
gpri
cipleofthedataacquisitio
desig
simpledigitalvoltmetera
alogvoltagei
todigitalLCDscree
todisplayThebasicpri
cipleisthattheamou
tofa
alogvoltageADco
verterchiptoco
vertdigitali
tothemicroco
trollerforprocessi
gThefi
aloutputdatai
thesizeofthevoltageafterali
edrivei
totheLCDdisplayFi
allytheprogramflowsimulatio
withKEILa
dPROTUESofo
li
edebuggi
gAfterthecompletio
ofthedebuggi
ghardwareweldi
gtesta
dimproveFi
alizethemeasuredvoltagevalueThedigitr