【正文】
種被動式調(diào)制型溫度敏感器,也稱熱探測型傳感器。 9 圖 4 1602 字符液晶 1602 引腳介紹 表 2 1602 字符液晶引腳說明 編號 符號 引腳說明 編號 符號 引腳說明 1 GND 電源地 2 VCC 電源正極 3 VO 液晶顯示對比度調(diào)節(jié)端 4 RS 數(shù)據(jù) /命令選擇端 5 R/W 讀寫選擇 6 E 使能信號 7 D0 數(shù)據(jù)口 8 D1 數(shù)據(jù)口 9 D2 數(shù)據(jù)口 10 D3 數(shù)據(jù)口 11 D4 數(shù)據(jù)口 12 D5 數(shù)據(jù)口 13 D6 數(shù)據(jù)口 14 D7 數(shù)據(jù)口 15 BLA 背光電源正 16 BLK 背光電源負 各個引腳具體功能說明: 第 1 腳: GND 為地電 源。數(shù)據(jù)在時鐘( SCLK)的上升沿串行輸入,前 8 位指定訪問地址,命令 字裝入移位寄存器后,在之后的時鐘周期,讀操作時輸出數(shù)據(jù),寫操作時輸出數(shù)據(jù)。 表 1 STC89C52 主要功能 主要功能特性 兼容 MCS51指令系統(tǒng) 8K可反復擦寫 Flash ROM 32個雙向 I/O口 256x8bit內(nèi)部 RAM 3個 16位可編程定時 /計數(shù)器中斷 時鐘頻率 024MHz 2個串行中斷 可編程 UART串行通道 2個外部中斷源 共 6個中斷源 2個讀寫中斷口線 3級加密位 低功耗空閑和掉電模式 軟件設置睡眠和喚醒功能 STC89C52 引腳介紹 ① 主電源引腳( 2 根) VCC(Pin40):電源輸入,接+ 5V 電源 GND(Pin20):接地線 ②外接晶振引腳( 2 根) XTAL1(Pin19):片內(nèi)振蕩電路的輸入端 XTAL2(Pin20):片內(nèi)振蕩電路的輸出端 ③控制引腳( 4 根) RST/VPP(Pin9):復位引腳,引腳上出現(xiàn) 2個機器周期的高電平將使單片機復位。采用此方案可以減少芯片的使用,節(jié)省成本,但是,考慮到這樣實現(xiàn)的時間誤差較大。考慮到成本因素,決定選用 STC89C52。 鬧鐘通常用于早晨喚床,以免因為貪睡賴床誤了上班上課的時間,目前大眾使用的鬧鐘,鈴聲響起時,只要伸手隨意按下開關(guān),鬧鈴就會停下來,這種隨意性 助長了“再睡一會”的賴床心理,人們往往遲到誤點之后才會后悔不已,但是又很難靠自己改變賴床的不良習慣,為工作學習帶來許多不良影響。兩者的結(jié)合可廣泛運用于生產(chǎn)設備,家用電器,辦公配置,公共設施等領(lǐng)域,以新的理念打造新的應用,實現(xiàn)更多意想不到的功能,在智能儀表中的應用,機電一體化中的應用,在不定時控制中的應用,在人類生 活中的應用, 在 許 多的領(lǐng)域應用前 2 景看好。 關(guān)鍵詞: STC89C52, 1602 液晶顯示屏,熱釋電紅外傳感器, DS1302時鐘芯片 Based on single chip microputer infrared alarm device design and implementation Abstract: With the improvement of life rhythm, the transaction will be a variety of perspectives, people more and more inseparable from electronic products regularly remind function, and the most typical is the alarm clock wake up in the morning and many people depend on the bed and sleep up bad habits, and affected to work or school, this article in view of this part design a crowd has forced intelligent sensing alarm clock wake up function. Microcontroller is applicable to mechanical and electrical integration of intelligent product, control function is strong, the pyroelectric crystal as an ideal detector, infrared laser is widely applied to various kinds of automation control device, this design is based on intelligent forced wake up way, prevent the lazy bed design concept, STC89C52 singlechip control as the core, based on DS1302 clock chip, 1602 LCD screen, button circuit, pyroelectric infrared sensor module, periodic shading device. In addition to the basic alarm clock function, can set up and display year, month, day, hours, minutes, seconds, weeks, and main function of intelligent infrared induction to set a time, and can detect the bed whether exist within a certain range of the human body, has the drive alarms and delay detection, no delay induced detection. Design feature is that alarm clock concept innovation, pyroelectric infrared sensor and low sensitivity to static human body induction of problem solving. Keywords: STC89C52, 1602 LCD, Pyroelectric infrared sensor, DS1302 clock chip 目 錄 1 緒 論 .............................................................................................................................. 1 .............................................................................. 1 ................................................................................................... 1 熱釋電紅外傳感器的應用 ................................................................................ 1 單片機與熱釋電紅外傳感器的結(jié)合 ............................................................................. 1 2 設計要求與方案論證 .......................................................................................................... 3 .................................................................................................................... 3 ............................................................................................ 3 .......................................................................... 3 ................................................................................. 3 .............................................................................. 4 ............................................................................................... 4 3 主要元件介紹 ..................................................................................................................... 5 STC89C52 .................................................................................................................... 5 STC89C52主要功能及 PDIP封裝 ........................................................................ 5 STC89C52引腳介紹 ........................................................................................... 5 DS1302時鐘芯片介紹 .................................................................................................. 6 DS1302概述 ..................................................................................................... 6 DS1302引腳介紹 .............................................................................................. 7 DS1302時鐘芯片工作原理 ................................................................................ 7 DS1302 內(nèi)部結(jié)構(gòu)圖 .......................................................................................... 8 1602字符液晶介紹 .................................................................................................... 8 1602液晶概述 ................................................................................................. 8 1602引腳介紹 ................................................................................................. 9 1602字符液晶使用基本操作時序 ....................................................................10 熱釋電紅外傳感器介紹 .............................................................................................10 器結(jié)構(gòu) ....................................................................................10 BISS0001紅外傳感器信號處理芯片 ....