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

正文內(nèi)容

單片機溫度巡檢儀設計-資料下載頁

2024-12-06 09:09本頁面

【導讀】要·····································································································1. 述···························································································2. 況······················································································2. 出···················································································2. 容···································································計·················································&#

  

【正文】 if ab 2650 g 1 return g 冷端補償及顯示數(shù)據(jù)轉(zhuǎn)換 void Code_Data_TR void unsigned int abc unsigned char ef a War_Temperature50 b AD590_Temperature3 c ab2650 以 300 度為基準進行測量 e c50 算出有幾度 Display[0] Display_Num[Test_Point10] Display[1] Display_Num[Test_Point10] Display[2] Display_Num[e1003] Display[3] Display_Num[ e100 10] Display[4] Display_Num[ e100 10]寫相應的溫度顯示到顯示端口 4. 4 整體程序 綜上所述該檢測儀器的整體流程圖 4- 6 所示 圖 4- 6 系統(tǒng)程序框圖 整體程序為 基于 KEIL C 的在 87S51 上的 C 語言程序 foc 11059MH 每個時鐘周期約為 1us 包含的頭文件 include include include include 定義全局變量 unsigned char Display[5] 相應的 5 個數(shù)碼管顯示的數(shù)據(jù) unsigned char Reg_Temperature 定義讀溫感電阻的溫度數(shù)據(jù) unsigned char War_Temperature 定義讀熱電偶的溫度數(shù)據(jù) unsigned char AD590_Temperature 定義讀 AD590 測的溫度數(shù)據(jù) unsigned char Test_Point 測量的溫度的點的寄存器 unsigned char Display_Point 0 unsigned char code Display_Num[10] 0x3f0x060x5b0x4f0x660x6d0x7d0x070x7f0x6f 顯示轉(zhuǎn)換即 09 的 LED 碼 bit flage 0 溫度大于 200 度標志置位 定義外部管腳 define LED_Display P0 P0 口送 LED 數(shù)據(jù) define ADC0809_Data P1 P1 口讀 ADC 的數(shù)據(jù) sbit Key_Up P36 分別定義 2 個按鍵 sbit Key_Down P37 sbit CD4051_A0 P30 sbit CD4051_A1 P31 sbit CD4051_A2 P32 sbit CD4051_S P33 sbit ADC0809_OE P34 sbit ADC0809_A P26 sbit ADC0809_B P27 sbit ADC0809_EOC sbit ADC0809_Start P25 延時函數(shù) void Delay unsigned int t foc 11059MH 每個 Delay 1 約 10us while t t 初始化程序 void Initial void EA 0 TCON 0x40 TMOD 0x3O TH1 0x90 TL1 0x90 TR1 1 EA 1 熱電阻溫度讀取 void Reg_Read void unsigned char a 0xf8 a aTest_Point P3 P3a 選擇測量點 CD4051_S 0 ADC0809_A 0 ADC0809_B 0 ADC0809_Start 1 while ADC0809_EOC 1 ADC0809_OE 1 Reg_Temperature ADC0809_Data ADC0809_Start 0 ADC0809_OE 0 CD4051_S 1 熱電偶溫度的讀取 void War_Read void unsigned char a 0xf8 a aTest_Point P3 P3a 選擇測量點 CD4051_S 0 ADC0809_A 0 ADC0809_B 1 測量熱電偶 ADC0809_Start 1 while ADC0809_EOC 1 ADC0809_OE 1 War_Temperature ADC0809_Data ADC0809_Start 0 ADC0809_OE 0 CD4051_S 1 對 AD590 溫度讀取 void AD590_Read void unsigned char a 0xf8 a aTest_Point P3 P3a 選擇測量點 CD4051_S 0 ADC0809_A 1 ADC0809_B 1 測量 AD590 ADC0809_Start 1 while ADC0809_EOC 1 ADC0809_OE 1 AD590_Temperature ADC0809_Data ADC0809_Start 0 ADC0809_OE 0 CD4051_S 1 冷端補償及顯示數(shù)據(jù)轉(zhuǎn)換 void Code_Data_TR void unsigned int abc unsigned char ef a War_Temperature50 b AD590_Temperature3 c ab2450 以 300 度為基準進行測量 e c50 算出有幾度 Display[0] Display_Num[Test_Point10] Display[1] Display_Num[Test_Point10] Display[2] Display_Num[e1003] Display[3] Display_Num[ e100 10] Display[4] Display_Num[ e100 10] 寫相應的溫度顯示到顯示端口 熱電阻的溫度數(shù)據(jù)變換 void Reg_Data_TR void 測 量范圍在 50 到 305 度 unsigned char e e Reg_Temperature50 Display[0] Display_Num[Test_Point10] Display[1] Display_Num[Test_Point10] Display[2] Display_Num[e100] Display[3] Display_Num[ e100 10] Display[4] Display_Num[ e100 10] 顯示子程序 void Display void interrupt 3 利用定時器 1 的 8 位自動重裝來動態(tài)顯示 Display_Point Display_Point1 if Display_Point 4 Display_Point 0 P2 P2Display_Point P0 Display[Display_Point] 主程序 void main void unsigned char ij Initial while 1 for i 0i 16i Test_Point i for j 0j 1000j 10 秒顯示時間 if Key_Up 0 Test_Point break if Key_Down 0 Test_Point break Delay 1000 延時 10ms if Test_Point 15 Test_Point 0 if Test_Point 7 Test_Point Test_Point0x08 War_Read 讀熱電偶的數(shù)值 AD590_Read 讀 AD590 的數(shù)值 Code_Data_TR 進行冷端補償并進行顯示的寄存器的寫入 Test_Point Test_Point0x08 else Reg_Read Reg_Data_TR 5 總結 4 路溫度巡檢儀具有以下特點 1 多路溫度巡檢儀采用高性能單片機位核心整個系統(tǒng)技術成熟實用性強 2 溫度傳感器采用傳感器和熱電偶結合的方式測溫范圍寬 1采用 LED1.《傳感器與傳感器技術》 何道清 著 2.《檢測與轉(zhuǎn)換技術》 常鍵生 石要武 常瑞 著 3.《計算機測控系統(tǒng)與研究》 李正軍 著 4.《單片微型計算機》 李 勛 林廣艷 盧景山 著 5.《微型計算機原理與接口技術》 吳秀清 周菏琴 著 6.《微型計算機控制技術》 于海生 著 7《穩(wěn)定電源電路設計手冊》 曲學基 王增福 曲敬鎧 著 8《電路》 邱關源 著 9《過程控制工程》 邵裕森 戴先中 著 10《電力電子技術模擬部分》
點擊復制文檔內(nèi)容
研究報告相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1