【正文】
oduction have bee increasingly demanding on the temperature, accurate temperature measurement beco mes critical. This system is a solution designed for wiring difficulties, wasting resources,taking up the space and poor maneuverability of harsh environment industrial site , wide range and hitech agricultural field. Based on the above mentioned problems is proposed, which is based on wireless solutions of SoC design of wireless temperature gathering system. This system USES low power consumption, high performance microprocessor and single bus digital temperature measurement device DS18B20 constitute temperature measuring system through wireless transceiver, and finally in PC plete configuration, display and alarm function. Used in the design of the microcontroller STC89C52RC and MCS51 MCU core has the same pin. But STC_ISP through STC89C52RC can burn to download data munication transceiver chip is an industrial grade NRF24L01 hardware link layer protocol built lowcost wireless transceiver operating in the GHz band global open ISM. In addition, the temperature sensor DS18B20 to bus line digital mode transmission, greatly improves the power system. Key words: SoC, STC89C52RC, NRF24L01, Temperature sensor DS18B20,Wireless 目 錄 第一章 緒 論 ...........................................................................................1 概述 .................................................................................................1 系統(tǒng)設(shè)計任務(wù)分析 ............................................................................2 第二章 總體方案設(shè)計與 選擇的論證 .........................................................3 單片機最小系統(tǒng) ...............................................................................3 單片機的說明 ............................................................................3 單片機的應(yīng)用 ............................................................................3 單片機的結(jié)構(gòu)特點 ....................................................................4 單片機引腳配置 ........................................................................4 無線收發(fā)模塊介紹 ............................................................................8 概述 ............................................................................8 引腳功能及描述 .......................................................................9 工作模式 ................................................................................. 10 工作原理 ................................................................................. 10 配置字 .................................................................................... 12 應(yīng)用原理框圖 ........................................................... 13 數(shù)碼管溫度顯示和運行指示燈電路 ................................................ 14 數(shù)碼管的基本結(jié)構(gòu) ............................................................. 14 數(shù)碼管動態(tài)顯示的工作原理 .................................................... 15 運行指示燈說明 ...................................................................... 16 溫度采集電路 ................................................................................. 16 DS18B20 概述 .......................................................................... 16 DS18B20 的管腳配置和內(nèi)部結(jié)構(gòu) ............................................. 17 單總線介紹 ............................................................................. 19 的工作原理 ................................................................. 19 聲報警電路設(shè)計 ............................................................................. 24 無線溫度采集軟件界面( MFC) ..................................................... 24 第三章 軟件設(shè)計報告 ........................................................................... 29 單片機軟件設(shè)計 ............................................................................. 29 發(fā)送部分軟件設(shè)計 .................................................................. 29 溫度傳感 DS18B20............................................................... 29 LED 數(shù)碼管顯示 ................................................................... 34 無線模塊 NRF24L01( 發(fā)送 ) ............................................... 35 接收部分軟件設(shè)計 .................................................................. 35 無線模塊 NRF24L01(接收) ............................................... 35 LED 數(shù)碼管顯示 ................................................................... 35 串口通信 ............................................................................. 36 無線溫度采集軟件設(shè)計 ........................................................... 38 串口設(shè)置 ............................................................................. 38 溫度上下限設(shè)置 .................................................................. 41 曲線顯示 ............................................................................. 42 流程圖設(shè)計 .................................................................................... 45 發(fā)送部分流程圖 ..................................................................... 45 接收部分流程圖 ..................................................................... 46 MFC 程序流程圖 .................................................................... 47 操作說明(附圖) .......................................................................... 47 第四章 總結(jié)與展望 .............................................................................. 52 致 謝 ...................................................................................................... 54 參考文獻 ................................................................................................. 55 附 錄 ...................................................................................................... 56 1 第一章 緒 論 隨著社會的進步和生產(chǎn)的需要,利用無線通信進行溫度數(shù)據(jù)采集的方式應(yīng)用已經(jīng)滲透到生活各個方面。 在這次的設(shè)計中采 用的 單片機 STC89C52RC 的內(nèi)核和 MCS51 系列單片機一樣,引腳也相同 。 A Dissertation Submitted to Nanjing Institute of Technology For the Academic Degree of Bachelor of Science By