目 录
1 引言............................................................................................................................1
2 总体设计思路............................................................................................................1
2.1 方案设计与选取..............................................................................................1
2.1.1 总体流程图............................................................................................1
2.1.2 方案选择................................................................................................1
2.2 总体电路图......................................................................................................2
3 硬件电路结构模块....................................................................................................4
3.1 单片机的选取..................................................................................................4
3.1.1 STC89C52 引脚功能说明......................................................................4
3.1.2 振荡电路................................................................................................5
3.1.3 复位电路................................................................................................5
3.2 AD 转换电路模块 ............................................................................................6
3.2.1 ADC0809 引脚功能...............................................................................6
3.2.2 ADC0809 主要特性...............................................................................7
3.2.3 ADC0809 工作过程...............................................................................7
3.2.4 ADC0809 与单片机接口电路...............................................................8
3.2.5 ADC0809 与 PC 机连接 ........................................................................9
3.3 传感器的选取................................................................................................10
4 软件程序设计..........................................................................................................13
4.1 脉搏计数模块的设计....................................................................................13
4.1.1 脉搏计数程序方案的选取..................................................................13
4.1.2 脉搏计数代码设计..............................................................................14
4.2 LED 数码管显示模块设计 ............................................................................15
4.2.1 显示模块的选取..................................................................................15
4.2.2 LED 数码管与单片机的接口电路 ......................................................16
4.2.3 LED 数码管驱动程序的设计 ..............................................................17
4.3 AD 转换模块的设计 ......................................................................................18
4.4 串口发送程序设计........................................................................................19
4.5 上位机程序及界面设计................................................................................20
4.5.1 上位机程序的设计..............................................................................20
4.5.2 上位机界面的设计..............................................................................21
4.6 扩展血压计功能............................................................................................22
5 软硬件调试..............................................................................................................23