基于单片机的电子脉搏血压计的设计摘要人们在日常生活或是医学上常常是通过测量脉搏跳动的力度和频率来检测身体的健康状况,而普通的方法是用手按在人腕部的动脉上,根据脉搏的跳动进行计数,这样不仅测量时间长而且精度不高,为了节省测量时间,一般不采用长时间测量,而是几秒钟之内测出脉搏数。本文介绍一种基于STC89C52单片机的电子脉搏计,通过测量腕部动脉的压力,把压力转变为电信号,送入单片机,可以在3秒钟之内精确测量出每分钟脉搏数,测量结果用三位LED数码管显示,并且脉搏波形通过串口送入PC机,实时显示脉搏波形。脉搏计是最常用的医疗检查设备之一,实时准确的脉搏测量在日常生活、患者监控、临床治疗及体育运动等方面都有着广泛的应用。脉搏测量包括瞬时脉搏测量和平均脉搏测量。瞬时脉搏可以反映心率的快慢,同时能反映心率是否匀齐;平均脉搏测量虽然只能反映心率的快慢,但记录方便。本文设计的电子脉搏计可以把这两个参数在测量时都记录下来并且显示,瞬时测量结果通过PC机实时显示,平均脉搏测量结果通过LED七段数码管显示。关键词:STC89C52单片机脉搏串口BasedonSCMelectronicpulseplandesignAbstractPeopleindailylifeormedicineisoftenmeasuredbythepulsefrequencyandstrengthtodetectthehealthstatusofbodybyhand,andordinarypeoplebythearteriesinthewrist,accordingtoapulsecount,thusnotonlybeatmeasuringtimelongandaccuracyisnothigh,inordertosavethemeasuringtime,generallydoesnotusethelongtimemeasurement,butafewsecondspulsecount.MeasuredThispaperintroducesaSTC89C52MCUbasedontheelectronicpulseplan,bymeasuringthepressure,thewristarterypressureintoelectricalsignals,intoasingle-chipmicrocomputer,canaccuratemeasurementinthreesecondsperminute,apulsewithmeasurementresultsnumberthreeLEDdigitaldisplay,andpulsetubethroughaserialportintoPCS,real-timedisplaypulsewaveform.Pulsemeterisoneofthemostcommonlyusedinthemedicalexaminationdevice,real-timeaccuratemeasurementofthepulseofdailylife,patientmonitoring,clinicaltreatmentandotheraspectsofsportshaveawiderangeofapplications.Pulsemeasurementsincludetransientpulsemeasurementandtheaveragepulsemeasurement.Instantaneousheartratemayreflectthespeedofthepulse,whileheartratecanreflectwhethertheuniformhomogeneous;averageheartrate,pulsemeasurementcanonlyreflectthespeedthough,buttherecordofconvenience.Thisdesignofelec-tronicpulsemetertomeasurethesetwoparametersarerecordedanddisplayedthetime,instantaneousmeasurementsinrealtimethroughthePC,showsthattheaveragepulsemeasurementsbysevensegmentLEDdigitaldisplay.Keywords:STC89C52;microcontroller;pulse;theserialinterface目录1引言............................................................................................................................12总体设计思路............................................................................................................22.1方案设计与选取..............................................................................................22.1.1总体流程图............................................................................................22.1.2方案选择................................................................................................22.2总体电路图......................................................................................................33硬件电路结构模块....................................................................................................53.1单片机的选取..................................................................................................53.1.1STC89C52引脚功能说明......................................................................53.1.2振荡电路................................................................................................63.1.3复位电路................................................................................................63.2AD转换电路模块............................................................................................73.2.1ADC0809引脚功能...............................................................................73.2.2ADC0809主要特性...............................................................................83.2.3ADC0809工作过程...............................................................................83.2.4ADC0809与单片机接口电路...............................................................93.2.5ADC0809与PC机连接......................................................................103.3传感器的选取................................................................................................114软件程序设计..........................................................................................................144.1脉搏计数模块的设计....................................................................................144.1.1脉搏计数程序方案的选取..................................................................144.1.2脉搏计数代码设计..............................................................................154.2LED数码管显示模块设计............................................................................164.2.1显示模块的选取..................................................................................164.2.2LED数码管与单片机的接口电路......................................................174.2.3LED数码管驱动程序的设计..............................................................184.3AD转换模块的设计......................................................................................194.4串口发送程序设计........................................................................................204.5上位机程序及界面设计................................................................................214.5.1上位机程序的设计..............................................................................214.5.2上位机界面的设计..............................................................................224.6扩展血压