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

正文內(nèi)容

基于單片機的單總線多點的溫度控制論文(文件)

2025-07-07 12:52 上一頁面

下一頁面
 

【正文】 參考文獻:[1] 閆玉德 俞虹,MCS51單片機原理與應(yīng)用,機械工業(yè)出版社,2008年[2] 周鳴爭 錢峰,微機原理與接口技術(shù),電子科技大學(xué)出版社,2006年 附錄1//*******************LCD模塊//*******************LCD模塊define LCD_DATA P1 //LCD的數(shù)據(jù)口sbit LCD_BUSY=LCD_DATA^7。 //LCD使能信號void LCD_check_busy(void) //檢測LCD狀態(tài){ while(1) { LCD_EN=0。 LCD_EN=1。 LCD_RS=0。 LCD_EN=0。 LCD_DATA=LCD_instruction。 LCD_RS=1。 LCD_EN=0。}void LCD_prints(unsigned char *lcd_string) //輸出一個字符串到LCD{ unsigned char i=0。//D7~D5=001:FUNCTION SET:8bit,2line,5*10dot LCD_write_instruction(0x0c)。sbit ST=P3^0。sbit sub=P2^5。sbit hot=P2^4。unsigned int getdata,flag,count。 for(i=0。 b[2]=temp/10+39。 if(n==1)//正溫度 { LCD_set_position(0x09)。j4。 LCD_set_position(0x0a)。 } }}//顯示設(shè)置溫度,入口參數(shù)=set_temp;出口參數(shù)=溫度的顯示碼b[i]void show_set() { unsigned char i。039。i++) { LCD_printc(b[i])。 while(1) { if(set==1) while(1) { LCD_write_instruction(0x0f)。if(st_s3)st_s=1。}} if(sub==0){dely(100)。039。}//按set鍵,轉(zhuǎn)下一位設(shè)置 if(enter==0){LCD_write_instruction(0x0c)。 if(add==0){dely(100)。039。if(st_g0)st_g=9。}} if(set==0){dely(100)。return。 //第一小數(shù)位 if(b[0]1){temp=10b[1]。}}//ad采樣,出口參數(shù)=getdatavoid ad0809(){ P3=channel。 //start正脈沖和ale上升沿 while(EOC==0)。 datap()。 LCD_set_position(0x40)。 TMOD=0x01。 ET0=1。 //顯示當前溫度 show_set()。} case 1:{ if(tempset_temp){cold=1。} else {hot=0。 }}void timer0() interrupt 1 using 1{ TH0=0x3c。count=0。 count++。} break。} else if(tempset_temp){hot=1。cold=0。 ad0809()。
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1