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

正文內(nèi)容

基于單片機(jī)的單總線多點(diǎn)的溫度控制論文(參考版)

2025-06-22 12:52本頁面
  

【正文】 count=0。 count++。 }}void timer0() interrupt 1 using 1{ TH0=0x3c。} break。} else {hot=0。} else if(tempset_temp){hot=1。} case 1:{ if(tempset_temp){cold=1。cold=0。 //顯示當(dāng)前溫度 show_set()。 ad0809()。 ET0=1。 TL0=0xb0。 TMOD=0x01。 cold=0。 LCD_set_position(0x40)。 //初始化液晶 LCD_set_position(0x00)。 datap()。 //輸出允許 getdata=P0。 //start正脈沖和ale上升沿 while(EOC==0)。 ST=1。}}//ad采樣,出口參數(shù)=getdatavoid ad0809(){ P3=channel。} else{temp=(b[0]1)*10+b[1]。 //第一小數(shù)位 if(b[0]1){temp=10b[1]。 b[0]=value/10000。return。} if(enter==0){LCD_write_instruction(0x0c)。}} if(set==0){dely(100)。039。if(st_g0)st_g=9。}} if(sub==0){dely(100)。039。if(st_g9)st_g=0。 if(add==0){dely(100)。return。}//按set鍵,轉(zhuǎn)下一位設(shè)置 if(enter==0){LCD_write_instruction(0x0c)。}} if(set==0){dely(100)。039。if(st_s1)st_s=3。}} if(sub==0){dely(100)。039。if(st_s3)st_s=1。 if(add==0){dely(100)。 while(1) { if(set==1) while(1) { LCD_write_instruction(0x0f)。 st_s=set_temp/10。i++) { LCD_printc(b[i])。 for(i=4。039。039。 } }}//顯示設(shè)置溫度,入口參數(shù)=set_temp;出口參數(shù)=溫度的顯示碼b[i]void show_set() { unsigned char i。j4。 LCD_set_position(0x0a)。 } } else //負(fù)溫度 { LCD_set_position(0x09)。j4。 LCD_set_position(0x0a)。 if(n==1)//正溫度 { LCD_set_position(0x09)。 b[3]=temp%10+39。 b[2]=temp/10+39。i++)。 for(i=0。//ad數(shù)據(jù)轉(zhuǎn)換值(電壓)int temp,set_temp=28。unsigned int getdata,flag,count。//放現(xiàn)場溫度和設(shè)置溫度顯示碼 unsigned char channel=0xbc。sbit hot=P2^4。sbit enter=P2^7。sbit sub=P2^5。 sbit E
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1