摘要脉搏心率测量仪在我们的日常生活中已经得到了非常广泛的应用。为了提高脉搏心率测量仪的简便性和精确度,本课题设计了一种基于52单片机的脉搏心率测量仪。系统以STC89C52单片机为核心,以红外反射式传感器ST188为检测原件,并利用单片机系统内部定时器来计算时间,由红外反射式传感器ST188感应产生脉冲,单片机通过对脉冲累加得到脉搏心率跳动次数,时间由定时器定时而得。系统运行中能显示脉搏心率次数和时间,系统停止运行时,能够显示总的脉搏心率次数和时间。经测试,系统工作正常,达到设计要求。关键词:脉搏心率测量仪;STC89C52单片机;红外反射式传感器IAbstractPulsemeterinourdailylifehavegottheveryextensiveapplication.Inordertoimprovethesimplicityandaccuracyoftheapparatususedtomeasurethepulse,thistopichasdesignedapulsemeasuringinstrumentbasedon52microcontroller.SystemwithSTC89C52single-chipmicrocomputerasthecore,withoriginalST188infraredreflectiontypesensorforthedetection,andusethesinglechipmicrocomputersysteminternaltimertomeasuretime,pulsegeneratedbythereflectingtypeofinfraredsensorST188induction,microcontrollerpulseisobtainedbythepulseaccumulationnumber,timebythetimertiming.Systemcandisplaythepulsefrequencyandtime,thesystemstopsrunning,candisplaythetotalpulsefrequencyandtime.Afterthetest,thesystemworkswell,tomeetthedesignrequirements.Keywords:Thepulsemeasuringinstrument;STC89C52single-chipmicrocomputer;TheinfraredreflectiontypesensorII目录摘要...............................................................IAbstract...........................................................II第1章概述.........................................................11.1选题的背景和意义............................................11.2脉搏心率测量仪的发展与应用..................................2第2章脉搏心率测量仪系统结构.......................................42.1光电脉搏心率测量仪的结构....................................42.2工作原理.....................................................52.3光电脉搏心率测量仪的特点.....................................5第3章硬件系统.....................................................73.1控制器......................................................73.1.1STC89C52简介..........................................73.1.2STC89C52的特点........................................73.1.3STC89C52的结构........................................83.2脉搏心率信号采集............................................103.2.1光电传感器的原理......................................113.2.2光电传感器的结构......................................113.2.3光电传感器检测原理....................................123.2.4信号采集电路..........................................123.3信号放大....................................................133.3.1放大器的介绍..........................................133.3.2放大电路..............................................143.4波形整形电路...............................................153.5单片机处理电路..............................................173.6显示电路...................................................173.6.1LCD1602的综述........................................193.6.2LCD1602的结构........................................193.6.3LCD1602指令集........................................193.6.4脉搏心率测量仪电路原理图..............................21第4章软件系统....................................................244.1主程序流程:...............................................244.2定时器中断程序流程:............