摘要本文较为全面、系统地叙述了以MCS-51系列单片机为控制核心的防盗与恒温功能的实现。以及驱动芯片、三极管、汇编语言程序设计、输入\输出技术的原理与应用。在恒温系统中,采用的是多点温度采集,不同位置的温度通过相应的数字温度传感器采集后传送给控制核心——单片机。再经过单片机对传送来的各个温度值进行与我们设置的温度作比较来控制对应电机的工作。对于我们想要得要的温度值是通过我们手动来实现的,即通过按键的来执行增减的功能。在防盗系统中,采用热释电红外传感器方法,即通过目标与背景的温差来探测目标的,从而对控制核心——单片机来产生中断。实现报警的功能。关键字:单片机AT89C51红外对管DS18B20IAbstractThispaperismorecomprehensivesystematicallydescribestheMCS-51microcontrollertocontrolthecoretemperatureandsecuretyfunctions.Andthedriverchip,transistor,assemblylanguageprogramming,input\outputtechnologyandapplicationoftheprinciple.Inthethermostatsystem,themulti-pointtemperatureiscollecting,Differentlocationsthroughthetemperaturecorrespondingdigitaltemperaturesensorswerecollectedtransmittedtothecontrolcenter--MCUAfterMCUrighttotransmitallthevaluesoftemperatureandthetemperaturewesetupforcomparisontothecorrespondingmotorcontrolwork.Wewanttobeinthetemperaturevaluethroughourmanualtoachieve,andthatisthroughtheimplementationofkeychangesinthefunction.Intheanti-theftsystem,usingtheinfrared,Throughinfrareddradiationtothetransistortocontrolitson-ornotachieved,Soastocontrolthecore–MCUtogenerateinterrupt,implementationalarmfunction.Keyword:AT89C51InfrareddiodeDS18B20II目录第1章概述...................................................................................................11.1课题背景...................................................................................................11.2恒温控制系统与防盗系统发展的概况...1第2章方案的论证...................................................................................22.1设计任务及基本要求...........................................................22.2方案及原理...........................................................................................32.2.1对于恒温控制的设计方案...............................32.3.1对于防盗控制系统设计方案.......................4第3章主要元件器件的介绍...................................................63.1数字温度传感器DS18B20...............................................................63.1.1DS18B20的特性...............................................................................63.1.2外形和内部结构...............................................................73.1.3工作原理.......................................................................................83.2驱动芯片74LS244.......................................................................................83.3单片机AT89C51...............................................................................................93.3.1基本结构.......................................................................................93.3.2单片机外观与引脚.......................................................93.3.3控制信号或与其他电源复用的引脚103.3.4存储器结构...............................................................................123.3.5单片机最小项系统电路.......................................123.4热释电红外传感器的结构原理.......................143.4.1PIR的原理特性.......................................................................163.5液晶显示电路(LCD12864)....