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

正文內(nèi)容

課程設(shè)計(jì)-基于單片機(jī)的數(shù)字溫度計(jì)課程設(shè)計(jì)(編輯修改稿)

2025-02-13 04:53 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 *****/Disp_alarm(uchar baojing){ P2=0xc6。 //顯示C P1=0xf7。 Delay(200)。 P2=LEDData[baojing%10]。 //顯示十位 P1=0xfb。 Delay(200)。 P2=LEDData[baojing/10]。 //顯示百位 P1=0xfd。 Delay(200)。 if(set_st==1)P2=0x89。 else if(set_st==2)P2=0xc7。 //上限H、下限L標(biāo)示 P1=0xfe。 Delay(200)。 P1=0xff。}/*****報(bào)警子程序*****/void Alarm(){ if(x=10){beep_st=~beep_st。x=0。} if((m=shangxianamp。amp。beep_st==1)||(mxiaxianamp。amp。beep_st==1))BEEP=0。 else BEEP=1。}/*****主函數(shù)*****/void main(void){ uint z。 InitTimer()。 //初始化定時(shí)器 EA=1。 //全局中斷開關(guān) TR0=1。 ET0=1。 //開啟定時(shí)器0 IT0=1。 IT1=1。 check_wendu()。 check_wendu()。 for(z=0。z300。z++) { Disp_init()。 } while(1) { if(SET==0) { Delay(2000)。 do{}while(SET==0)。 set_st++。x=0。shanshuo_st=1。 if(set_st2)set_st=0。 } if(set_st==0) { EX0=0。 //關(guān)閉外部中斷0 EX1=0。 //關(guān)閉外部中斷1 check_wendu()。 Disp_Temperature()。 Alarm()。 //報(bào)警檢測(cè) } else if(set_st==1) { BEEP=1。 //關(guān)閉蜂鳴器 EX0=1。 //開啟外部中斷0 EX1=1。 //開啟外部中斷1 if(x=10){shanshuo_st=~shanshuo_st。x=0。} if(shanshuo_st) {Disp_alarm(shangxian)。} } else if(set_st==2) { BEEP=1。 //關(guān)閉蜂鳴器 EX0=1。 //開啟外部中斷0 EX1=1。 //開啟外部中斷1 if(x=10){shanshuo_st=~shanshuo_st。x=0。} if(shanshuo_st) {Disp_alarm(xiaxian)。} } }}/*****END*****/:include define DQ P3_6 //定義DS18B20總線I/O/*****延時(shí)子程序*****/void Delay_DS18B20(int num){ while(num) 。}/*****初始化DS18B20*****/void Init_DS18B20(void){ unsigned char x=0。 DQ = 1。 //DQ復(fù)位 Delay_DS18B20(8)。 //稍做延時(shí) DQ = 0。 //單片機(jī)將DQ拉低 Delay_DS18B20(80)。 //精確延時(shí),大于480us DQ = 1。 //拉高總線 Delay_DS18B20(14)。 x = DQ。 //稍做延時(shí)后,如果x=0則初始化成功,x=1則初始化失敗 Delay_DS18B20(20)。}/*****讀一個(gè)字節(jié)*****/unsigned char ReadOneChar(void){ unsigned char i=0。 unsigned char dat = 0。 for (i=8。i0。i) { DQ = 0。 // 給脈沖信號(hào) dat=1。 DQ = 1。 // 給脈沖信號(hào) if(DQ) dat|=0x80。 Delay_DS18B20(4)。 } return(dat)。}/*****寫一個(gè)字節(jié)*****/void WriteOneChar(unsigned char dat){ unsigned char i=0。 for (i=8。 i0。 i) { DQ = 0。 DQ = datamp。0x01。 Delay_DS18B20(5)。 DQ = 1。 dat=1。 }}/*****讀取溫度*****/int ReadTemperature(void){ unsigned char a=0。 unsigned char b=0。 int t=0。 float tt=0。 Init_DS18B20()。 WriteOneChar(0xCC)。 //跳過讀序號(hào)列號(hào)的操作 WriteOneChar(0x44)。 //啟動(dòng)溫度轉(zhuǎn)換 Init_DS18B20()。 WriteOneChar(0xCC)。 //跳過讀序號(hào)列號(hào)的操作 WriteOneChar(0xBE)。 //讀取溫度寄存器 a=ReadOneChar()。 //讀低8位 b=ReadOneChar()。 //讀高8位 t=b。 t=8。 t=t|a。 tt=t*。 t= tt*10+。 //放大10倍輸出并四舍五入 return(t)。}/*****END*****/附錄二 元件清單及PCB圖 數(shù)字溫度計(jì)電路元器件清單元器件名稱參數(shù)數(shù)量元器件名稱參數(shù)數(shù)量單片機(jī)89C521數(shù)碼管1晶體振蕩器12MHz1蜂鳴器1電容3溫度傳感器DS18B201電阻19 PCB圖g an employment tribunal claimEmployment tribunals sort out disagreements between employers and employees.You may need to make a claim to an employment tribunal if: you don39。t agree with the disciplinary action your employer has taken against you your employer dismisses you and you think that you have been dismissed unfairly.For more information about dismissal and unfair dismissal, seeDismissal.You can make a claim to an employment tribunal, even if you haven39。tappealedagainst the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal.Remember tha
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1