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

正文內(nèi)容

溫控系統(tǒng)所有專業(yè)-文庫(kù)吧

2025-04-16 21:42 本頁(yè)面


【正文】 上時(shí),停止加溫;當(dāng)溫度高于設(shè)定上限溫度時(shí),系統(tǒng)自動(dòng)啟動(dòng)風(fēng)扇降溫,使溫度下降,同時(shí)紅燈亮。當(dāng)溫度下降到上限溫度以下時(shí),停止降溫。溫度在上下限溫度之間時(shí),執(zhí)行機(jī)構(gòu)不執(zhí)行。三個(gè)數(shù)碼管即時(shí)顯示溫度,精確到小數(shù)點(diǎn)一位。 2 單片機(jī)人機(jī)接口系統(tǒng)的軟件設(shè)計(jì) 軟件設(shè)計(jì)主要包括鍵盤掃描程序 、四位數(shù)碼管動(dòng)態(tài)顯示程序、任意浮點(diǎn)數(shù)顯示程序、輸入?yún)?shù)合成、計(jì)時(shí)器程序以及串口通訊程序等。 2 include define uchar unsigned char define uint unsigned int sbit DS=P2^2。 //define interface sbit dula=P2^6。 sbit wela=P2^7。 sbit li=P3^1。 sbit wai=P3^0。 sbit hot=P3^2。 sbit up=P3^4。 sbit down=P3^5。 unsigned char code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d, 0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}。 unsigned char code table1[]={0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd, 0x87,0xff,0xef}。 溫度測(cè)控系統(tǒng)的設(shè)計(jì) 溫度控制系統(tǒng)的設(shè)計(jì) 智能測(cè)控系統(tǒng)的設(shè)計(jì) 風(fēng)扇控制電路設(shè)計(jì) 溫度傳感器程序設(shè)計(jì) 數(shù)據(jù)處理程序設(shè)計(jì) 扇控制器程序設(shè)計(jì) 數(shù)碼管顯示程序設(shè)計(jì) 鍵盤操作程序設(shè)計(jì) 制冷片控制電路設(shè)計(jì) 制冷片控制程序設(shè)計(jì) 3 uint temp。 // variable of temperature uint aa=0,bb=0,cc,dd,ee。 void delay(uint count) //delay { uint i。 while(count) { i=200。 while(i0) i。 count。 } } void dsreset(void) //send reset and initialization mand { uint i。 DS=0。 i=103。 while(i0)i。 DS=1。 i=4。 while(i0)i。 } bit tmpreadbit(void) //read a bit { uint i。 bit dat。 DS=0。i++。 //i++ for delay DS=1。i++。i++。 dat=DS。 i=8。while(i0)i。 return (dat)。 } uchar tmpread(void) //read a byte date { uchar i,j,dat。 dat=0。 for(i=1。i=8。i++) { j=tmpreadbit()。 dat=(j7)|(dat1)。 //讀出的數(shù)據(jù)最低位在最前面,這樣剛好一個(gè)字節(jié)在 DAT 里 } return(dat)。 } 4 void tmpwritebyte(uchar dat) //write a byte to ds18b20 { uint i。 uchar j。 bit testb。 for(j=1。j=8。j++) { testb=datamp。0x01。 dat=dat1。 if(testb) //write 1 { DS=0。 i++。i++。 DS=1。 i=8。while(i0)i。 } else { DS=0。 //write 0 i=8。while(i0)i。 DS=1。 i++。i++。 } } } void tmpchange(void) //DS18B20 begin change { dsreset()。 delay(1)。 tmpwritebyte(0xcc)。 // address all drivers on bus tmpwritebyte(0x44)。 // initiates a single temperature conversion } uint tmp() //get the temperature { float tt。 uchar a,b。 dsreset()。 delay(1)。 tmpwritebyte(0xcc)。 tmpwritebyte(0xbe)。 a=tmpread()。 b=tmpread()。 temp=b。 temp=8。 //two byte pose a int variable temp=temp|a。 5 tt=temp*。 temp=tt*10+。 return temp。 } void readrom() //read the serial { uchar sn1,sn2。 dsreset()。 delay(1)。 tmpwritebyte(0x33)。 sn1=tmpread()。 sn2=tmpread()。 } void delay10ms() //delay { uchar a,b。 for(a=10。a0。a) for(b=60。b0。b)。 } void display(uint temp) //顯示程序 { uchar A1,A2,A2t,A3,ser。 ser=temp/10。 SBUF=ser。 A1=temp/100。 A2t=temp%100。 A2=A2t/10。 A3=A2t%10。 dula=0。 P0=table[A1]。 //顯示百位 dula=1。 dula=0。 wela=0。 P0=0x7e。 wela=1。 wela=0。 delay(1)。 dula=0。 P0=table1[A2]。 //顯示十位 dula=1。 dula=0。 6
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1