【正文】
基于單片機的脈搏測量儀設計 目 錄 摘要 .............................................................................................................................. I Abstract ....................................................................................................................... II 引言 ..............................................................................................................................1 第一章 概述 ..............................................................................................................2 選題的背景和意義 ........................................................................................... 2 脈搏測量儀的發(fā)展與應用 ............................................................................... 3 第二章 總體方案的論證與設計 .........................................................................5 主控模塊的選型和論證 .................................................................................... 5 顯示模塊的選型和論證 .................................................................................... 5 傳感器的選型和論證 ........................................................................................ 5 系統(tǒng)整體設計概述 ............................................................................................ 6 第三章 系統(tǒng)硬件電路設計 ..................................................................................7 主控模塊 ............................................................................................................ 7 STC89C52 單片機主要特性 .......................................................................... 7 STC89C52 單片機的中斷系統(tǒng) .................................................................... 11 單片機最小系統(tǒng)設計 ................................................................................... 11 LCD 液晶顯示器簡介 ..................................................................................... 12 液晶原理介紹 ............................................................................................... 12 液晶模塊簡介 ............................................................................................... 12 液晶顯示部分與 STC89C52 的接口 ........................................................... 13 信號采集電路設計 .......................................................................................... 14 傳感器簡介 ................................................................................................... 14 濾波 電路 ....................................................................................................... 15 放大 整形電路 ............................................................................................... 15 第四章 系統(tǒng)軟件設計 ........................................................................................ 16 系統(tǒng)軟件總體設計 .......................................................................................... 16 程序設計原理 .................................................................................................. 17 第五章 系統(tǒng)調試 .................................................................................................. 19 軟件調試 .......................................................................................................... 19 硬件調試 .......................................................................................................... 19 調試結果 .......................................................................................................... 20 誤差分析 .......................................................................................................... 20 結論 ........................................................................................................................... 22 致謝 ........................................................................................................................... 23 參考文獻 .................................................................................................................. 24 附錄 ........................................................................................................................... 25 I 基于單片機的脈搏測量儀設計 摘要 : 脈搏測量 儀在我們的日常生活中已經得到了非常廣泛的應用 ,通過觀測脈搏信號,可以對人體的健康進行檢查,通常被用于保健中心和醫(yī)院。為了提高脈搏測量儀的簡便性和精確度,本課題設計了一種基于 51 單片機的脈搏測量儀。系統(tǒng)以 STC89C52 單片機為核心,以光電傳感器利用單片機系統(tǒng)內部定時器來計算時間,由光電傳感器感應產生信號,單片機通過對信號累加得到脈搏跳動次數,時間由定時器定時而得。系統(tǒng)運行中可以通過觀察指示燈閃爍,若均勻閃爍說明測量值準確。系統(tǒng)停止運行時,能夠顯示總的脈搏次數和時間。經測試,系統(tǒng)工作正常,達到設計要求。 本設 計利用紅外光電傳感器產生脈沖信號,經過放大整形后,輸入單片機內進行相應的控制,從而測量出一分鐘內的脈搏跳動次數,快捷方便。系統(tǒng)可以供用戶測量當時的脈搏次數,同時還可以設定上限次數和下限次數,當測量的范圍超過設定的范圍則驅動蜂鳴器報警提醒,除此外用戶還可以設定每天鬧鐘提醒測量,時間可以自行設定,結果最終可以把采集到的脈搏信號顯示在 LCD1602 上。 關鍵詞: STC89C52;脈搏測量儀; LCD 顯示器;光電傳感器 II Design of pulse measuring instrument based on single chip Abstract: Pulse measurement apparatus has been widely used in our daily life. In order to improve the measurement apparatus is simple and accuracy, this paper designs a pulse measuring instrument based on 51 single chip microputer. System to STC89C52 microcontroller as the core, with photoelectric sensor, and calculates the internal timer SCM system, the signal from the photoelectric sensor, microcontroller based on the accumulated pulse beat frequency signal, by the time the timer. In the running of the system can be observed through the indicator lights out, if even flicker that accurate measuring value. The system stops running, can display the total pulse number and time. After testing, the system works normally, meet the design requirements. The design of the infrared photoelectric sensor generates a pulse signal, after plastic surgery to enlarge, the input of SCM within the corresponding control, which measured within a m