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

正文內(nèi)容

基于at89c51單片機(jī)的智能風(fēng)扇控制系統(tǒng)設(shè)計(jì)-資料下載頁(yè)

2025-01-18 14:32本頁(yè)面
  

【正文】 [M].電子工業(yè)出版社,2022.[13] 單片機(jī)原理及應(yīng)用[M]. 北京:北京航空航天大學(xué)出版社, 2022.[14][M]. 西安:西安電子科技大學(xué)出版社, 2022.[15] 單片機(jī)典型模塊設(shè)計(jì)與應(yīng)用[M]. 北京:人民郵電出版社, 2022.[16][M]. 北京:機(jī)械工業(yè)出版社, 2022.[17]黃保瑞,賈之豪,邵婷婷.基于 AT89C51 單片機(jī)的溫度測(cè)控系統(tǒng)設(shè)計(jì)[J] .現(xiàn)代電子技術(shù),2022.[18]呂勝杰,霍淑艷.基于 DS1820 的單總線多點(diǎn)測(cè)溫技術(shù)[J] .現(xiàn)代電子技術(shù),2022.[19] Analog —20mv Sheet[J].1996[20] Programmable Resolution 1Wire Digital Thermometer. DALLAS [J]. 2022黃 河 科 技 學(xué) 院 畢 業(yè) 論 文 第 28 頁(yè) 附錄include include //包含_nop_()函數(shù)定義的頭文件include include define uchar unsigned chardefine uint unsigned intuchar code xiaoshu[]={0xc0,0xc0,0xf9,0xf9,0xa4,0xb0,0xb0,0x99,0x92,0x92,0x82,0xf8,0xf8,0x80,0x80,0x90}。//小數(shù)部分編碼uchar code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e}。 //數(shù)碼管顯示字符//端口的定義sbit DQ=P2^5。sbit L1=P2^0。sbit L2=P2^1。sbit L3=P2^2。sbit L4=P2^3。sbit L5=P2^4。uchar time_DS18B20。 //設(shè)置全局變量,專門用于嚴(yán)格延時(shí)uchar TL。 //儲(chǔ)存暫存器的溫度低位 uchar TH。 //儲(chǔ)存暫存器的溫度高位uint flag。uchar temp,temp1。黃 河 科 技 學(xué) 院 畢 業(yè) 論 文 第 29 頁(yè) uchar shi,ge,dot,xiao。/*延時(shí)函數(shù) */void delay(unsigned char ms){unsigned char i。while(ms){for(i = 0。 i i++){_nop_()。_nop_()。_nop_()。_nop_()。}}}/*DS18B20 的初始化*/bit Init_DS18B20(void){ bit flag_DS18B20。 //儲(chǔ)存 DS18B20 是否存在的標(biāo)志,flag=0 ,表示存在;flag=1,表示不存在 DQ = 1。 //先將數(shù)據(jù)線拉高 for(time_DS18B20=0。time_DS18B202。time_DS18B20++) 。//略微延時(shí)約 6微秒 DQ = 0。 //再將數(shù)據(jù)線從高拉低,要求保持 480~960us for(time_DS18B20=0。time_DS18B20200。time_DS18B20++)。 //略微延時(shí)約 600 微秒以向 DS18B20 發(fā)出一持續(xù) 480~960us 的低電平復(fù)位脈沖黃 河 科 技 學(xué) 院 畢 業(yè) 論 文 第 30 頁(yè) DQ = 1。 //釋放數(shù)據(jù)線(將數(shù)據(jù)線拉高) for(time_DS18B20=0。time_DS18B2010。time_DS18B20++)。//延時(shí)約30us(釋放總線后需等待 15~60us 讓 DS18B20 輸出存在脈沖) flag_DS18B20=DQ。 //讓單片機(jī)檢測(cè)是否輸出了存在脈沖(DQ=0 表示存在) for(time_DS18B20=0。time_DS18B20200。time_DS18B20++)。 //延時(shí)足夠長(zhǎng)時(shí)間,等待存在脈沖輸出完畢 return (flag_DS18B20)。 //返回檢測(cè)成功標(biāo)志} /*讀一個(gè)字節(jié)的程序 */unsigned char ReadOneChar( ) {unsigned char i=0。unsigned char dat。 //儲(chǔ)存讀出的一個(gè)字節(jié)數(shù)據(jù)for (i=0。i8。i++) { DQ =1。 // 先將數(shù)據(jù)線拉高 _nop_()。 //等待一個(gè)機(jī)器周期 DQ = 0。 //單片機(jī)從 DS18B20 讀書據(jù)時(shí) ,將數(shù)據(jù)線從高拉低即啟動(dòng)讀時(shí)序 dat=1。 _nop_()。 //等待一個(gè)機(jī)器周期 DQ = 1。 //將數(shù)據(jù)線人為拉高,為單片機(jī)檢測(cè) DS18B20 的輸出電平作準(zhǔn)備 for(time_DS18B20=0。time_DS18B203。time_DS18B20++)。 //延時(shí)約 6us,使主機(jī)在 15us 內(nèi)采樣 if(DQ==1) dat|=0x80。 //如果讀到的數(shù)據(jù)是 1,則將 1 存入 datelse黃 河 科 技 學(xué) 院 畢 業(yè) 論 文 第 31 頁(yè) dat|=0x00。//如果讀到的數(shù)據(jù)是 0,則將 0 存入 dat 將單片機(jī)檢測(cè)到的電平信號(hào) DQ 存入 r[i] for(time_DS18B20=0。time_DS18B208。time_DS18B20++)。//延時(shí) 3us,兩個(gè)讀時(shí)序之間必須有大于 1us 的恢復(fù)期 } return(dat)。 //返回讀出的十進(jìn)制數(shù)據(jù)}/*寫一個(gè)字節(jié)的程序 */WriteOneChar(unsigned char dat){unsigned char i=0。for (i=0。 i8。 i++) { DQ =1。 // 先將數(shù)據(jù)線拉高 _nop_()。 //等待一個(gè)機(jī)器周期 DQ=0。 //將數(shù)據(jù)線從高拉低時(shí)即啟動(dòng)寫時(shí)序 DQ=datamp。0x01。 //利用與運(yùn)算取出要寫的某位二進(jìn)制數(shù)據(jù),并將其送到數(shù)據(jù)線上等待 DS18B20 采樣 for(time_DS18B20=0。time_DS18B2010。time_DS18B20++)。//延時(shí)約30us, DS18B20 在拉低后的約 15~60us 期間從數(shù)據(jù)線上采樣 DQ=1。 //釋放數(shù)據(jù)線 for(time_DS18B20=0。time_DS18B201。time_DS18B20++) 。//延時(shí) 3us,兩個(gè)寫時(shí)序間至少需要 1us 的恢復(fù)期 dat=1。 //將 dat 中的各二進(jìn)制位數(shù)據(jù)右移 1 位 } for(time_DS18B20=0。time_DS18B204。time_DS18B20++) 。 //稍作延時(shí),給硬件一點(diǎn)反應(yīng)時(shí)間}/*讀溫度子函數(shù)*/黃 河 科 技 學(xué) 院 畢 業(yè) 論 文 第 32 頁(yè) void ReadyReadTemp(void){ Init_DS18B20()。 //將 DS18B20 初始化WriteOneChar(0xCC)。 // 跳過(guò)讀序號(hào)列號(hào)的操作WriteOneChar(0x44)。 // 啟動(dòng)溫度轉(zhuǎn)換 for(time_DS18B20=0。time_DS18B20100。time_DS18B20++)。 //溫度轉(zhuǎn)換需要一點(diǎn)時(shí)間Init_DS18B20()。 //將 DS18B20 初始化WriteOneChar(0xCC)。 //跳過(guò)讀序號(hào)列號(hào)的操作WriteOneChar(0xBE)。 //讀取溫度寄存器,前兩個(gè)分別是溫度的低位和高位TL=ReadOneChar()。 //先讀的是溫度值低位TH=ReadOneChar()。 //接著讀的是溫度值高位}void dispose(){if(TH=8) { TH=~TH。 //當(dāng)溫度為負(fù)數(shù)時(shí)求負(fù)數(shù)的補(bǔ)碼 TL=~TL。 TL=TL+1。 flag=1。 //當(dāng)溫度為負(fù)值時(shí)標(biāo)志置 1 if(TL==0) TH+=1。 }temp1=TLamp。0X0f。 //保存小數(shù)部分的值temp=(((TH4)amp。0x70)|(TL4))。 //將高 8 位的低 3 位和低 8 位的高 4位合并構(gòu)成溫度的整數(shù)部分shi=temp%100/10。 //取出十位黃 河 科 技 學(xué) 院 畢 業(yè) 論 文 第 33 頁(yè) ge=temp%10。 //取出個(gè)位xiao=temp1*10。}/*溫度、檔位以及警告信息顯示 */void dis(){L1=1。L2=0。L3=0。L4=0。L5=0。P1=table[shi]。 //十位delay(3)。P0=0XFF。L1=0。L2=1。L3=0。L4=0。L5=0。dot=table[ge]amp。0x7f。P1=dot。 //個(gè)位delay(3)。P0=0XFF。L1=0。L2=0。L3=1。L4=0。L5=0。黃 河 科 技 學(xué) 院 畢 業(yè) 論 文 第 34 頁(yè) P1=xiaoshu[temp1]。 //小數(shù)delay(3)。P0=0XFF。L1=0。L2=0。L3=0。L4=1。L5=0。if(temp30){P1=0xc6。 //警告 C}if(temp35amp。amp。temp29){P1=0x86。 //警告 E}if(temp34){P1=0x8e。 //警告 F}delay(3)。P0=0XFF。L1=0。L2=0。L3=0。L4=0。L5=1。if(temp30)黃 河 科 技 學(xué) 院 畢 業(yè) 論 文 第 35 頁(yè) {P1=table[1]。 //檔位}if(temp35amp。amp。temp29){P1=table[2]。 //檔位}if(temp34){P1=table[3]。 //檔位}delay(3)。P0=0XFF。}uint mm=1。void main(){while(1){ReadyReadTemp()。dispose()。dis()。//P2=0xff。//P1=0xb0。 //0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e}黃 河 科 技 學(xué) 院 畢 業(yè) 論 文 第 36 頁(yè) }g an employment tribunal claimEmployment tribunals sort out disagreements between employers and employees.You may need to make a claim to an employment tribunal if:? you don39。t agree with the disciplinary action your employer has taken against you? your employer dismisses you and you think that you have been dismissed unfairly.For more information about dismissal and unfair dismissal, see Dismissal.You can make a cl
點(diǎn)擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1