摘要这个红外声控报警系统是由中央控制器、红外传感器、声控传感器、报警器及键盘部分组成。控制器采用单片机AT89C52,红外传感部分采用红外发射接收一体化的光电传感器TCRT5000,声控传感部分采用驻极体话筒,扬声器和发光二极管作为报警设备。单片机通过红外传感部分和声控传感部分的传来的信号的变化来判断是否有外来者,如有则通过扬声器或者发给二极管来报警;红外传感器是通过发射管发射红外线到接收管,两个元件之间通过红外线进行连接,当有物体挡在中间时,便把电平的变化传给单片机;同理,声控传感器是把声音信号转换为电信号然后传送给单片机;键盘是用来设置报警触发的条件。关键词:单片机;汇编语言;红外传感器;声控传感器;AT89C52IIIAbstractTheinfraredvoicealarmsystemiscomposedofacentralcontroller,infraredsensors,voice-activatedsensors,alarmdevicesandkeyboardparts.ControllerusingmicrocontrollerAT89C52,infraredsensingpartoftheintegrationofinfraredtransmittingandreceivingelectro-opticalsensorsTCRT5000,voice-activatedsensorpartoftheuseofelectretmicrophone,speakersandlight-emittingdiodesasthealarmequipment.Microcontrollerthroughtheinfraredsensorpartandthevoice-activatedsensorpartofthecomingchangesinthesignaltodeterminewhetherthereareoutsiders,ifsentthroughthespeakersorthediodetothepolice;infraredsensors,infraredemissionthroughthelaunchtubetothereceivingtube,twobetweenelementsofaconnectingviainfrared,whenthereareobjectsstandintheIIImiddle,theythenpassonthechangesinlevelmicrocontroller;Similarly,voice-activatedsensorisconvertedintoelectricalsignalsintoacousticsignalsandthentransmittedtothemicrocontroller;keyboardisusedtosetthealarmtriggerconditions.Keywords:microcontroller;assemblylanguage;infraredsensor;voice-activatedsensor;AT89C52IV目录摘要..........................................................................................IAbstract.......................................................................................II引言.........................................................................................11设计任务..................................................................................22方案论证与比较.......................................................................22系统硬件电路设计..................................................................32.1复位电路..........................................................................32.2晶振电路..........................................................................32.3液晶显示电路设计..........................................................41基本操作时序:............................................................5V2状态字说明....................................................................53RAM地址映射图..........................................................64指令说明........................................................................65初始化过程(复位过程)............................................72.4温度传感器设计..............................................................91DS18B20功能结构.......................................................92DS18B20内部结构.....................................................112.5存储电路........................................................................142.6时钟模块的设计............................................................161引脚功能及结构..........................................................162DS1302的控制字节.................................................