基于单片机的饮水机温度控制系统
摘要
随着计算机在社会领域的渗透单片机的应用正在不断地深入,同时带动传统控制检测日新月益更新。在实时检测和自动控制的单片机应用系统中,单片机往往是作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构,以及具体应用对象特点的软件结合,以作完善。
本论文从硬件和软件两方面来讲述单片机的温度控制系统,主要以AT89C51单片机为核心,温度信号AD590温度传感器采集,并以数字信号的方式传送给单片机,并通过两位数码管LED显示器显示实时温度的一种数字温度。在软件方面,采用汇编语言来进行程序设计,汇编语言指令的执行速度快,节省存储空间。为了便于为了便于扩展和更改,软件的设计采用模块化结构,使程序设计的逻辑关系更加简洁明了,使硬件在软件的控制下协调运作。
系统的过程:首先通过设置按键设定恒温运行时的温度值,并且用数码管显示这个温度值,然后,温度传感器AD590从周围环境的不同位置采集温度,再通过模数转换器,最后,通过单片机AT89C51获取采集的温度值,进一步控制报警装置和控制装置。
关键词:温度传感器模数转换器单片机控制装置报警系统
1
fAbstract
Alo
gwiththecomputeri
thesocialsectorpe
etratio
a
dMCUapplicatio
isco
ti
uouslythorougha
dpushthetraditio
alco
troltesto
the
ewbe
eficialupdateI
realtimedetectio
a
dautomaticco
trolofthemicrocomputerapplicatio
systemtheMCUisofte
asacorecompo
e
ttouseo
lyMCUaspectsk
owledgeis
ote
oughshouldaccordi
gtothespecifichardwarestructurea
dthespecificapplicatio
ofthecharacteristicsoftheobjectsoftwarecombi
atio
tobeperfect
Fromtwoaspectsofhardwarea
dsoftwaretotellofthesi
glechipmicrocomputertemperatureco
trolsystemmai
lyAT89C51asthecoretemperaturesig
alchipAD590collectio
bythetemperaturea
dthewaytodigitalsig
altra
sfertothesi
glechipmicrocomputera
dthroughthefourLEDdisplayshowsrealtimedigitaltubetemperatureofadigitaltemperatureI
softwaretheassemblyla
guageforprogramdesig
assemblyla
guagei
structio
executio
speedsavestoragespaceI
ordertofacilitatetheexpa
sio
a
dcha
gethesoftwaredesig
usi
gmodularstructuremaketheprogramdesig
logicalrelatio
shipmoreco
cisea
dclearmakethehardwarei
thesoftwareu
dertheco
troloftheharmo
iousoperatio
Thesystemprocessfirstbysetti
gupbutto
setthetemperatureco
sta
ttemperatureoperatio
a
dwithadigitalpipedisplaythetemperaturea
dthe
fromthesurrou
di
ge
viro
me
ttemperaturese
sorAD590differe
tpositio
softhecollectio
temperatureagai
throughtheadcfi
allythror