【正文】
ind a bright star in the constellation Aquila as well as the star Vega, which are identified as Niulang and Zhinu. The two stars shine on opposite sides of the Milky Way. Customs In bygone days, Qixi was not only a special day for lovers, but also for girls. It is also known as the Begging for Skills Festival or Daughters39。s largest virgin forest, and known for its spring and ecological environment, Arxan is marveled at by many tourists as the purest land on earth. You cannot miss out the Autumn of Arxan. It is definitely the best with brightlycolored scenery full of emotions. Autumn in the northern part of the country es earlier than the South. A September rain followed by the footprints of Autumn brings more colors to the once emerald green mountain and blooming grassland. Shutterbugs flock to see for themselves the marvel of splendid colors around the mountains and waters, many of whom have travel a long distance and even camp here only to capture a moment of the nature wonder. The silver birch turns golden, while the larch is still proudly green. You will find yourself drowned in the intoxicating red of the wild fruits as well as the glamour of flowers in full blown. And your heart will be lingering on the woods as it39。 } } 23 為你提供優(yōu)秀的畢業(yè)論文參考資料,請(qǐng)您刪除以下內(nèi)容, O(∩_∩)O 謝謝?。。?2 Many people have the same mixed feelings when planning a trip during Golden Week. With heaps of time, the sevenday Chinese 為你提供優(yōu)秀的畢業(yè)論文設(shè)計(jì)參考資料,請(qǐng)您刪除一下內(nèi)容, O(∩_∩)O謝謝?。?! National Day holiday could be the best occasion to enjoy a destination. However, it can also be the easiest way to ruin how you feel about a place and you may bee more fatigued after the holiday, due to battling the large crowds. During peak season, a dream about a place can turn to nightmare without careful planning, especially if you travel with children and older people. As most Chinese people will take the holiday to visit domestic tourist destinations, crowds and busy traffic are inevitable at most places. Also to be expected are increasing transport and acmodation prices, with the possibility that there will be no rooms available. It is also mon that you39。 } led = 1。 if(TX_DS) //當(dāng)前 STATUS 狀態(tài) 發(fā)送中斷應(yīng)使 bit5 = 1 { SPI_RW_Reg(WRITE_REG + STATUS,sta)。 delay_1ms(100)。 Transmit(Tx_Buf)。 //讀溫度 Tx_Buf[0] = temperature % 256。 //讀溫度 delay_1ms(650)。 TX_Mode()。 // 無(wú)線模塊 IO 口初始化 22 SCK=0。 //轉(zhuǎn)換到溫度值 小數(shù) return value。 //把溫度的高位左移 8 位 value |= low。 //讀溫度高字節(jié) EA = 1。 low = read_18b20()。 //跳過(guò) 64 位 ROM write_18b20(0xbe)。 //500us init_18b20()。 //跳過(guò) 64 位 ROM write_18b20(0x44)。 //在讀取溫度的時(shí)候如果中斷的太頻繁了,就應(yīng)該把中斷給關(guān)了,否則會(huì)影響到 18b20 的時(shí)序 init_18b20()。 //返回?cái)?shù)據(jù) } /*************讀取溫度的值 讀出來(lái)的是小數(shù) ***************/ uint read_temp() { uint value。 delay_uint(5)。 //讀數(shù)據(jù)是低位開始 dq = 1。i++) { dq = 0。 for(i=0。 //釋放總線 dat = 1。 //向 18b20 總線寫數(shù)據(jù)了 delay_uint(5)。 //把總線拿低寫時(shí)間隙開始 dq = dat amp。i8。 //把總線拿高 釋放總線 } /*************寫 18b20 內(nèi)的數(shù)據(jù) ***************/ void write_18b20(uchar dat) { uchar i。 //讀取 18b20 初始化信號(hào) delay_uint(20)。 //把總線拿高 等待 delay_uint(10)。 //給復(fù)位脈沖 delay_uint(80)。 //把總線拿高 delay_uint(1)。 } /***********************18b20 初始化函數(shù) *****************************/ void init_18b20() { bit q。j++)。i++) for(j=0。 for(i=0。 //溫度變量 sbit led = P2^7。 16 參考文獻(xiàn) [1] 孫育才 .MCS51 系 列單片微型計(jì)算機(jī)及其應(yīng)用 .南京:東 南大學(xué)出版社 2022 [2] 何利民 .單片機(jī)原理及接口技術(shù) .北京:北京航空航天大學(xué)出版社 2022 [3] 彭為 ,黃科 .單片機(jī)典型系統(tǒng)設(shè)計(jì) .北京:電子工業(yè)出版社 2022 [4] 時(shí)志云 ,蓋建平 ,王代華 ,張志杰 .新型高速無(wú)線射頻器件 nRF24L01 及其應(yīng)用 . 國(guó)外電子元器件 2022 [5] 孟憲玲 .淺析數(shù)字溫度傳感器 DS18B20 的應(yīng)用 .中國(guó)科技信息 .2022 年 03 期 [6] 北京教育科學(xué)研究院 .無(wú)線電技術(shù)基礎(chǔ) .北京 : 人民郵電出版社 2022 [7] 許昌鈴 .LED 顯示屏系統(tǒng)原理及工程技術(shù) .北京 : 電子科技大 學(xué)出版社 2022 [8] 清源科技 .Ptotel 99 SE 電路原理圖與 PCB 設(shè)計(jì)及仿真 .北京:機(jī)械工業(yè)出版社 2022 [9] 程德福 ,王君 ,凌振寶 ,王言章 .傳感器原理及應(yīng)用 .北京:機(jī)械工業(yè)出版社 2022 [10] 郭天祥 .新概念 51 單片機(jī) C 語(yǔ)言教程 .北京:電子工業(yè)出版社 2022 [11] 張宏建 .自動(dòng)檢測(cè)技術(shù)與裝置 (第二版 ).北京 : 化學(xué)工業(yè)出版社 2022 附錄一 原理圖 17 圖 1 發(fā)射端電路圖 18 圖 2 接收端電路圖 19 附錄二 部分系統(tǒng)程序源 代碼 include //調(diào)用單片機(jī)頭文件 define uchar unsigned char //無(wú)符號(hào)字符型 宏定義 變量范圍 0~255 define uint unsigned int //無(wú)符號(hào)整型 宏定義 變量范圍 0~65535 include sbit dq = P2^6。在本次設(shè)計(jì)中,給我了不少寶貴的建議,引導(dǎo)我如何去做。對(duì)于將來(lái)在工作與學(xué)習(xí)中應(yīng)用單片機(jī)有較大的幫助。在本次研究 中,程序通過(guò)不斷的檢查、修改,對(duì)實(shí)際動(dòng)手編寫有深切的感悟。同時(shí),對(duì)于單片機(jī)的結(jié)構(gòu)和原理有更深層的掌握。 通過(guò)本次研究,加深了解傳感器 DS18B20 的結(jié)構(gòu)特征及其工作原理。因?yàn)椴捎脝纹瑱C(jī)技術(shù)作為主導(dǎo)的智能化得管理,可實(shí)現(xiàn)對(duì)溫度的動(dòng)態(tài)得監(jiān)控,運(yùn)行既穩(wěn)定可靠,又靈敏度高,具有非常重要的市場(chǎng)應(yīng)用價(jià)值。 圖 51 接收端接收到數(shù)據(jù)并顯示在 LCD1602 上 當(dāng)人工設(shè)置溫度范圍為 10℃至 25℃時(shí),當(dāng)前溫度超過(guò)所設(shè)上下值,蜂鳴器報(bào)警同時(shí) 指示燈閃爍,如圖 52 所示。并且接收端接收 數(shù)據(jù)時(shí)信號(hào)指示燈亦閃爍。溫度采集端采集溫度并發(fā)送至接收端,由LCD1602 顯示當(dāng)前溫度。最后將顯示、收發(fā)、溫度檢測(cè)程序整合,檢測(cè)系統(tǒng)是否能將發(fā)送端的溫度值測(cè)量出來(lái)發(fā)送到接收端在數(shù)碼管上顯示出來(lái)。測(cè)試 DS18B20 部分硬件及軟件部分是否好使。首先先將接收端 STC89C52 單片機(jī)燒入 1602 顯示程序,檢驗(yàn) 1602 液晶顯示有沒有問(wèn)題。 開始 初始化 置底 CE 配置 CONFIG 為發(fā)射模式 寫入發(fā)送地 址 寫入接收地址 寫入發(fā)送數(shù)局 數(shù)據(jù)通道 0 允許 設(shè)置工作頻率 設(shè)置數(shù)據(jù)傳輸率與功率 CE 置高 延 時(shí) CE 置底 清狀態(tài)寄存器 開始 初始化 CE 置底 配置 CONFIG為接收模式 寫入接收地址 打開接收通道 設(shè)置工作頻率 設(shè)置接收數(shù)據(jù)寬度 寫入發(fā) 射功率與數(shù) 據(jù)傳輸率 CE 置高 判斷接收中斷 讀接收數(shù)據(jù) 是 否 14 圖 45 無(wú)線接收軟件流程圖 顯示模塊軟件設(shè)計(jì) LCD1602 顯示程序,首先進(jìn)行 1602 的初始化,然后就是執(zhí)行寫命令和寫數(shù)據(jù)這兩個(gè)子函數(shù),實(shí)現(xiàn)溫度數(shù)據(jù)的實(shí)時(shí)顯示和按鍵操作的動(dòng)態(tài)顯示。再將延遲進(jìn)入接收狀態(tài)來(lái)等待數(shù)據(jù)到來(lái)。再把發(fā)送端待發(fā)射數(shù)據(jù)的目標(biāo)地址 TX— ADDR 與數(shù)據(jù) TX— PLD 寫入 nRF24L01 緩沖區(qū),延時(shí)后發(fā)射數(shù)據(jù),其流程圖如圖 44 所示。在通過(guò) SPI 總線配置射頻芯片讓其進(jìn)入正確的工作模式。如此反復(fù),完成所有操作,其流程圖如圖 43 所示。 溫度監(jiān)測(cè)模塊軟件 溫度監(jiān)測(cè)模塊軟件設(shè)計(jì) DS18B20 的測(cè)溫的原理嚴(yán)格 的遵守單總線協(xié)議,用來(lái)確保通信數(shù)據(jù)的準(zhǔn)確性,單片機(jī)可以通過(guò)時(shí)序?qū)懭肱c讀出 DS18B20 中的一些數(shù)據(jù),其中包含初始化、讀 l、讀 0,寫 寫 0 等操作 [11]。 開始 初始化 判斷接收中 斷 從 RX_FIF0 buffer 讀數(shù)據(jù) 轉(zhuǎn)換為十進(jìn) 制 數(shù)碼管顯示 12 圖 42 接 收部分總體流程圖 子程序設(shè)計(jì) 單片機(jī)對(duì) NRF24L01 無(wú)線模塊以及 DS18B20 進(jìn)行初始化之后,從 DS18B20 讀取溫度數(shù)據(jù)。 11 開始 初始化 從 DS18B20 讀溫度 轉(zhuǎn)換溫度為十 進(jìn)制 延時(shí) 將溫度寫入發(fā)射數(shù)組 發(fā)射數(shù)據(jù)