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

正文內(nèi)容

基于單片機(jī)的溫度報(bào)警系統(tǒng)proteus仿真-文庫(kù)吧資料

2025-06-06 12:00本頁(yè)面
  

【正文】 39。Write_LCD_Data(0x00)。i++) Write_LCD_Data(Current_Temp_Display_Buffer[i])。for(i=0。i++) Write_LCD_Data( Temp_Disp_Title[i])。for(i=0。_39。_39。 39。_39。 39。 39。amp。 39。039。039。039。.39。039。Display_Digit[1]=CurrentT%10。//將整數(shù)部分分解為三位待顯示數(shù)字Display_Digit[3]=CurrentT/100。//高低溫報(bào)警標(biāo)志設(shè)置(與定義為char類型的Alarm_Temp_HL比較,這樣可區(qū)分正負(fù)比較)HI_Alarm=Signed_Current_Temp=Alarm_Temp_HL[0]?1:0。0x07)4)。//獲取溫度整數(shù)部分(無符號(hào))CurrentT=((Temp_Value[0]amp。 //設(shè)負(fù)數(shù)標(biāo)識(shí)}//查表得到溫度小數(shù)部分Display_Digit[0]=df_Table[Temp_Value[0]amp。 if(Temp_Value[0]==0x00) Temp_Value[1]++。0xF8)==0xF8){ Temp_Value[1]=~Temp_Value[1]。 //負(fù)數(shù)標(biāo)識(shí) char Signed_Current_Temp。 uchar t=150。 //跳過序列號(hào) WriteOneByte(0x48)。 //12位精度 Init_DS18B20()。 //寫TH WriteOneByte(Alarm_Temp_HL[1])。 //跳過序列號(hào) WriteOneByte(0x4E)。 }}//...............................................//設(shè)置DS18B20溫度報(bào)警值//...............................................void Set_Alarm_Temp_Value(){ Init_DS18B20()。 //報(bào)警溫度TH Alarm_Temp_HL[1]=ReadOneByte()。 //溫度低8位 Temp_Value[1]=ReadOneByte()。 //跳過序列號(hào) WriteOneByte(0xBE)。 //啟動(dòng)溫度轉(zhuǎn)換 Init_DS18B20()。 else { WriteOneByte(0xCC)。dat=1。Delay(5)。DQ=datamp。i8。}//...............................................//寫一字節(jié)//...............................................void WriteOneByte(uchar dat){ uchar i。DQ=1。 if(DQ) dat |=0x80。_nop_()。dat=1。i8。_nop_()。 //初始化成功時(shí)返回0}//...............................................//讀一節(jié)//...............................................uchar ReadOneByte(){ uchar i,dat=0。 DQ=1。 status=DQ。 DQ=1。 DQ=0。 DQ=1。 //寫入溫度符號(hào)}//............................................//延時(shí)//........................................................void Delay(uint num){ while(num)。i8。 Write_LCD_Command(0x40)。 //顯示開,關(guān)光標(biāo)DelayXus(1)。 //字符進(jìn)入模式:屏幕不動(dòng),字符后移DelayXus(1)。 //清屏DelayXus(1)。DelayXus(1)。}//設(shè)置液晶顯示位置void Set_LCD_POS(uchar pos){ Write_LCD_Command(pos |0x80)。 DelayXus(1)。P0=dat。RW=0。0x80)==0x80)。 EN=0。 EN=1
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1