1、 摘摘 要要 本系统以 89S52 单片机作为中心,通过使用单片机来实现系统 最核心的计算脉搏功能,在信号的前端处理上,使用光电式传感器采 集人体脉搏信号,然后经过放大、施密特触发器整形、定时等一系列 操作,将脉搏信号转换为同频率的脉冲信号输入到单片机内,并利用 单片机对其进行定时。 定时的方法是利用单片机的定时器,计算一次 心跳的时间,然后由该周期计算出频率,继而就可以求出一分钟的脉 搏数。按照理论来说,只要有一次心跳信号就可以。但是要考虑到计 算的精确性,可以设定为测量五次心跳信号在进行滤波, 然后再求脉 搏,就可以使结果,比较精确。结果将最终送至 LED 显示器来进行显 示。 关键词关键
2、词: :人体脉搏信号,单片机,光电传感器 Abstract This system takes the 89S52 single chip as the center, through the use of single chip to achieve the system is the core of the calculation function in the signal pulse, front-end processing, the use of photoelectric sensor pulse signal of human body, and then after ampl
3、ification, shaping, Schmidt trigger timing and a series of operations, the pulse signals are converted to the same frequency pulse signal input to the microprocessor using single chip microcomputer, and the timing. Timing method is the use of single-chip timer, the calculation of a heartbeat time, a
4、nd then by the cycle to calculate the frequency, and then you can find the one minute pulse number. According to the theory, as long as there is a heartbeat signal can. But considering the computational precision, can be set to measure five heartbeat signal in the filter, and then for the pulse, can
5、 make the result more accurate. The results will eventually sent to a LED display to display. Key words: pulse signal of human body microcontroller photoelectric sensor 目目 录录 摘 要 Abstract 目 录 第 1 章 绪 论 . 1 1.1 脉搏测量仪的前景 1 1.2 脉搏测量仪的发展趋势:. 2 第 2 章 总体设计方案 . 3 2.1 光敏式脉搏测量仪的系统结构 . 3 2.1.1 测试仪的结构 3 2.1.2
6、光电脉搏测试仪的特点 . 4 2.2 设计方案 5 2.3 仪表功能 5 2.4 人体脉搏测量仪的设计思想与过程 . 6 2.3.1 设计步骤. 6 2.4.2 硬件电路设计 . 6 2.4.3 软件程序设计 . 6 2.4.4 性能指标. 6 第 3 章 硬件的设计 . 7 3.1 器件的选择 7 3.1.1 单片机选择. 7 3.1.2 键盘显示芯片选择 . 7 3.1.3 晶振的选择 . 7 3.2 主机单元设计 8 3.3 人机接口单元设计 . 10 3.4 信号采集及处理 . 12 第 4 章 软件设计 13 4.1 主程序设计 . 13 4.1.1 变量和常量说明 13 4.1.2 程序流程图 14 4.2 中断程序设计 . 14 4.3 键处理模块设计 . 15 4.4 数据处理 . 17 4.4.1 数据计算 17 4.4.2 数据处理 17 第 5 章 运行与调试 . 19 5.1 硬件调试 19 5.1.1 硬件调试的方法 19 5.1.2 硬件调试的故障与解决方法 . 19 5.2 软件调试 . 19 5.2.1 主程序调试 19 5.2.2 键盘显示器