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

正文內(nèi)容

word版可編輯-單片機串行通信課程設(shè)計報告精心整理doc-資料下載頁

2025-07-15 11:45本頁面
  

【正文】 Temp_Display_Buffer[6] = 39。39。 } Set_LCD_POS(0x00)。 for(i=0。i16。i++) { Write_LCD_Data(Temp_Disp_Title[i])。 } Set_LCD_POS(0x40)。 for(i=0。i16。i++) { Write_LCD_Data(Current_Temp_Display_Buffer[i])。 } Set_LCD_POS(0x4d)。 Write_LCD_Data(0x00)。 Set_LCD_POS(0x4e)。 Write_LCD_Data(39。C39。)。}//延時void DelaysMS(uint ms) { uchar i。 while(ms)for(i=0。i120。i++)。 }void Read_Temperature(){ if(Init_DS18B20()==1) DS18B20_IS_OK=0。 else { WriteOneByte(0xcc)。 WriteOneByte(0x44)。 Init_DS18B20()。 WriteOneByte(0xcc)。 WriteOneByte(0xbe)。 Temp_Value[0] = ReadOneByte()。 Temp_Value[1] = ReadOneByte()。 DS18B20_IS_OK=1。 } }//主程序void main(){ SCON=0x50。//串口模式一 ,允許接收 TMOD=0x20。//T1工作模式2 PCON=0X00。//波特率不倍增 TH1=0xfd。 TL1=0xfd。 TI=RI=0。 TR1=1。 IE=0x90。//允許串口中斷 LCD_Initialise()。 Read_Temperature()。 while(1) { if (RI) //RI接受中斷標志 RI=0。 //清除RI接受中斷標志 b=SBUF。 //SUBF接受/發(fā)送緩沖器 Display_Temperature(b)。 } }B機程序 includedefine uchar unsigned chardefine uint unsigned int include define delayNOP() {_nop_()。_nop_()。_nop_()。_nop_()。}uchar CurrentT = 0。uchar Temp_Value[]={0x00,0x00}。uchar Display_Digit[]={0,0,0,0}。bit DS18B20_IS_OK = 1。sbit DQ = P3^4。 //延時 void Delay(uint x){ while(x)。}void DelaysMS(uint ms) { uchar i。 while(ms)for(i=0。i120。i++)。 } void DelayXus(uint x){ uchar i。 while(x) { for(i=0。i200。i++)。 }}uchar Init_DS18B20(){ uchar status。 DQ = 1。 Delay(8)。 DQ = 0。 Delay(90)。 DQ = 1。 Delay(8)。 DQ = 1。 return status。}uchar ReadOneByte(){ uchar i,dat=0。 DQ = 1。 _nop_()。 for(i=0。i8。i++) { DQ = 0。 dat = 1。 DQ = 1。 _nop_()。 _nop_()。 if(DQ) dat |= 0X80。 Delay(30)。 DQ = 1。 } return dat。}void WriteOneByte(uchar dat){ uchar i。 for(i=0。i8。i++) { DQ = 0。 DQ = datamp。 0x01。 Delay(5)。 DQ = 1。 dat = 1。 }}Read_Temperature(){ if(Init_DS18B20()==1) DS18B20_IS_OK=0。 else { WriteOneByte(0xcc)。 WriteOneByte(0x44)。 Init_DS18B20()。 WriteOneByte(0xcc)。 WriteOneByte(0xbe)。 Temp_Value[0] = ReadOneByte()。 Temp_Value[1] = ReadOneByte()。 DS18B20_IS_OK=1。 } }//主程序void main(){SCON=0x50。//串口模式一 ,允許接收 TMOD=0x20。//T1工作模式2 TH1=0xfd。// 波特率9600 TL1=0xfd。 PCON=0X00。//波特率不倍增 RI=TI=0。 TR1=1。 IE=0x90。 while(1) { Read_Temperature()。 if(DS18B20_IS_OK) { SBUF=Read_Temperature()。 } while(TI==0)。 TI=0。 }}五、參考文獻智能電源和高級數(shù)字信號控制器的設(shè)計 ,Bryan Kris,電子設(shè)計應用,20081001基于AVR單片機的多功能電源設(shè)計 ,李雪莉, 張巖,現(xiàn)代電子技術(shù),20090901一種箱式分區(qū)所及其電力智能電源監(jiān)控裝置的研制 ,寧建斌,電力自動化設(shè)備,20040925基于80C196KC單片機的智能型開關(guān)電源研制 ,吳愛萍。 汪木蘭,低壓電器20060335基于Cygnal 單片機的智能電源管理系統(tǒng)的設(shè)計, 張健,《微計算機信息( 嵌入式與SOC)2006 年第22 卷第42 期Modicon Modbus Protocol Reference Inc,1996 27
點擊復制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1