freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于單片機(jī)的多點(diǎn)溫度測(cè)試系統(tǒng)_畢業(yè)設(shè)計(jì)論文(完整版)

  

【正文】 data disdata2[5]。 //溫度值 uchar tflag,tflag1,tflag2,tflag3。 RW=0。 P0=dat。 //寫一個(gè)字符后地址指針加 1 wr_(0x01)。 } /******************二號(hào)初始化 ***********************/ init_play1() //2 號(hào)初始化顯示 { lcd_init()。 DQ = 1。 for (i=8。 } void ds1820wr(uchar wdata) //寫數(shù)據(jù) { uchar i=0。 wdata=1。 //讀取溫度 30 a=ds1820rd()。 } tvalue=tvalue*()。 //正溫 度不顯示符號(hào) else flagdat=0x2d。 wr_dat(disdata[1])。 } void ds1820rst1() //ds1820 復(fù)位 { uchar x=0。 uchar dat1 = 0。 } return(dat1)。 DQ1 = 1。 //跳過讀序列號(hào) ds1820wr1(0xbe)。 tflag1=1。 //小數(shù)位 if(tflag1==0) flagdat1=0x20。 //顯示百位 wr_(0x80+0x0C)。 //顯示小數(shù)位 } /*******************三號(hào) DS18B20 程序 **************************/ void delay_18B202(unsigned int i) //延時(shí) 1 微秒 { while(i)。 } uchar ds1820rd2() //讀數(shù)據(jù) { uchar i=0。 delay_18B202(10)。 delay_18B202(10)。 ds1820wr2(0xcc)。 else { tvalue2=~tvalue2+1。 //個(gè)位數(shù) disdata2[3]=tvalue2%10+0x30。 wr_dat(disdata2[0])。 wr_dat(disdata2[3])。 //拉高 delay_18B203(40)。 //給脈沖信號(hào) if(DQ3) dat3|=0x80。0x01。 //啟動(dòng)溫度轉(zhuǎn)換 ds1820rst3()。 if(tvalue30x07ff) tflag3=0。 //十位數(shù) disdata3[2]=tvalue3%100/10+0x30。 //小數(shù)位 if(tflag3==0) flagdat3=0x20。 tflag3=1。 //跳過讀序列號(hào) ds1820wr3(0xbe)。 DQ3 = 1。 } return(dat3)。 uchar dat3 = 0。 } void ds1820rst3() //ds1820 復(fù)位 { uchar x=0。 wr_dat(disdata2[1])。 //正溫度不顯示符號(hào) else flagdat2=0x2d。 } tvalue2=tvalue2*()。 //讀取溫度 a2=ds1820rd2()。 wdata2=1。 } 34 void ds1820wr2(uchar wdata2) //寫數(shù)據(jù) { uchar i=0。 for (i=8。 DQ2 = 1。 //顯示十位 wr_(0x80+0x0D)。 //負(fù)溫度顯示負(fù)號(hào) : if(disdata1[0]==0x30) { disdata1[0]=0x20。 //溫度值擴(kuò)大 10 倍,精確到 1 位小數(shù) return(tvalue1)。 b1=ds1820rd1()。 } } read_temp1() //2 號(hào)讀取溫度值并轉(zhuǎn)換 { uchar a1,b1。 for (i=8。i0。 //DQ 復(fù)位 delay_18B20(4)。 wr_dat(disdata[2])。 //如果百位為 0,不顯示 if(disdata[1]==0x30) disdata[1]=0x20。 } /**********************1 號(hào)溫度值顯示 **********************/ void ds1820disp() { uchar flagdat。 tvalue=b。 ds1820rst()。 i0。i) { DQ = 0。 //延時(shí) DQ = 0。 } /******************三號(hào)初始化 ***********************/ init_play2() //3 號(hào)初始化顯示 { lcd_init()。\039。 EN=1。 delay1ms(5)。 for(i=0。 uchar data disdata4[4]。 27 sbit key4=P3^7。 //三號(hào) ds18b20 報(bào)警顯示接口 sbit D4=P2^4。 在這里還要特別感謝徐同學(xué)的細(xì)心幫助,在購(gòu)買焊接器件的過程中,由于對(duì)各器件在實(shí)際運(yùn)用中的特性不是太了解,在徐同學(xué)的幫助下才能將器件購(gòu)買齊全。 [2] 韓志軍 《單片機(jī)系統(tǒng)設(shè)計(jì)與應(yīng)用實(shí)例》,北京:機(jī)械工業(yè)出版社, 20xx 年,第二版,第 231~ 244 頁(yè)。 本系統(tǒng)先在 PROTEUS 軟件中會(huì)只好硬件原理圖,在電器連接性檢 查無誤的情況下,與第三方軟件 Keilc 連接調(diào)試,用 Keil’s uVision 開發(fā)源代碼,并進(jìn)行編輯,生成可執(zhí)行文件( .HEX)后,選中單片機(jī) AT899C52,左鍵點(diǎn)擊 AT89C52,在出現(xiàn)的對(duì)話框里點(diǎn)擊 Program File 按鈕,找到剛才編譯得到 23 的 HEX 文件,然后點(diǎn)擊“ OK”按鈕進(jìn)行模擬。每個(gè)讀時(shí)隙由主機(jī)發(fā)起,至少拉低總線 1μs。再執(zhí)行完以上四步以后,單片機(jī)判斷溫度符號(hào),送入 LCD 液晶屏顯示。 圖 36 聲光報(bào)警電路 16 工作方案簡(jiǎn)介 軟件程序是一個(gè) 單片機(jī)系統(tǒng)正常工作的核心,單片機(jī)根據(jù)程序來執(zhí)行相關(guān)指令,使系統(tǒng)實(shí)現(xiàn)所有的預(yù)定功能。DS18B20 的接口電路如圖 33所示。單片機(jī)的復(fù)位是通過復(fù)位電路實(shí)現(xiàn)的,在實(shí)際 12 應(yīng)用中,復(fù)位操作有兩種方式形式:一是上電復(fù)位,二是按鍵復(fù)位。要配合地址設(shè)置命令。 F:為 0 時(shí)顯示 5 7 點(diǎn)陣,為1 時(shí)顯示 5 10 點(diǎn)陣。 C:光標(biāo)的開與 關(guān),為 1 表示有光標(biāo),為 0 表示無光標(biāo)。光標(biāo)回到主屏幕左上角,地址計(jì)數(shù)器設(shè)置為 0。 液晶顯示( LCD)是單片機(jī)應(yīng)用系統(tǒng)的一種常用人機(jī)接口形式,其優(yōu)點(diǎn)是顯示質(zhì)量高、數(shù)字式接口、體積小、重量輕、功耗低。 ℃。 告警搜索命令 0ECH 執(zhí)行后,只有溫度超過設(shè)定值上限或下限時(shí)單片機(jī)作出反應(yīng)。 第二部 執(zhí)行 DS18B20 的“ ROM 操作命令”,并在其后跟隨需要交換的數(shù)據(jù)。 圖 22 AT89C52 引腳圖 溫度傳感器的選擇 目前市場(chǎng)上溫度傳感器的種類繁多,以普通傳感器建立檢測(cè)系統(tǒng)時(shí),首先要建立傳感器輸出信號(hào)與被 測(cè)物理量之間關(guān)系的數(shù)學(xué)模型,并在此基礎(chǔ)上,設(shè)計(jì)出傳感器接口電路,對(duì)傳感器的輸出信號(hào)進(jìn)行 A/D 轉(zhuǎn)換和補(bǔ)償。系統(tǒng)運(yùn)用主從分布式思想,實(shí)現(xiàn)溫度的遠(yuǎn)程控制 , 構(gòu)成多點(diǎn)溫度檢測(cè)系統(tǒng)。 設(shè)計(jì)任務(wù) 分為硬件設(shè)計(jì)和軟件設(shè)計(jì)兩方面任務(wù)。所以 基于單片機(jī)的多點(diǎn)溫度測(cè)試系統(tǒng) 被廣泛用于工農(nóng)業(yè)的控制過程中,既提高了產(chǎn)品的功能和質(zhì)量,體統(tǒng)的抗干擾能力得到大幅提升,又降低了成本,同時(shí)也簡(jiǎn)化了設(shè)計(jì),對(duì)提高控制效率,節(jié)約資源起到了重要作用。以單片機(jī)為核心,運(yùn)用溫度傳感器可完成對(duì)溫度采集,并進(jìn)行相應(yīng)的處理。 關(guān)鍵詞 單片機(jī),溫度傳感器,多點(diǎn)溫度檢測(cè) ABSTRACT The practical application of largescale development of the integrated circuit chip control circuit has a tremendous role in promoting. MCU with a small size, light weight, inexpensive, lowpower, control and puting speed, has a wider use in the monitoring and control systems, intelligent instruments, mechanical and electrical integration products, intelligent interface. With the single chip processor as the core, the application of temperature sensor for temperature acquisition can be pleted, and carry on corresponding processing. This system, using four slices of DS18B20, sent the temperature measured by the temperature sensor DS18B20 to AT89C52 singlechip puter, through the MCU processing, the temperature is sent to the display unit to display. The system uses the MCU to set upper and lower temperature, to measure and control the point temperature and alarm. At the same time, use the main distributed thought to achieve remote control of the temperature, and to constitute a multipoint temperature detection system. Key Words: MCU, Slice, Multipoint temperature detection 目 錄 ............................................................................................................................................ 1 課題背景 ............................................................................................................................ 1 國(guó)內(nèi)外發(fā)展現(xiàn)狀 ................................................................................................................. 1 本設(shè)計(jì)的內(nèi)容及任務(wù) .......................................................................................................... 2 設(shè)計(jì)內(nèi)容 .................................................................................................................. 2 設(shè)計(jì)任務(wù) .................................................................................................................. 2 計(jì) ...................................................
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1