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

正文內(nèi)容

水溫自動(dòng)控制系統(tǒng)-資料下載頁(yè)

2024-07-16 14:58本頁(yè)面
  

【正文】 m=15。 else if(dushu1==0x70) set_num=16。 } } P0_3=1。 delay(900)。 return set_num。}void PIDInit (struct PID *pp) //PID結(jié)構(gòu)體空間分配{ memset ( pp,0,sizeof(struct PID))。}unsigned int PIDCalc( struct PID *pp, unsigned int NextPoint ) //PID計(jì)算部分{unsigned int dError,Error。Error = ppSetPoint NextPoint。 // 偏差ppSumError += Error。 // 積分dError = ppLastError ppPrevError。 // 當(dāng)前微分ppPrevError = ppLastError。ppLastError = Error。return (ppProportion * Error // 比例項(xiàng)+ ppIntegral * ppSumError // 積分項(xiàng)+ ppDerivative * dError)。 // 微分項(xiàng)}pare_temper() //溫度比較處理程序{ unsigned char i。 if(set_tempertemper) { if(set_tempertemper1) { high_time=100。 low_time=0。 } else { for(i=0。i10。i++) { Read_Temperature()。 rin = s。 // Read Input rout = PIDCalc ( amp。spid,rin )。 // Perform PID Interation } if (high_time=100) high_time=(unsigned char)(rout/800)。 else high_time=100。 low_time= (100high_time)。 } } else if(set_temper=temper) { if(temperset_temper0) { high_time=0。 low_time=100。 } else { for(i=0。i10。i++) { Read_Temperature()。 rin = s。 // Read Input rout = PIDCalc ( amp。spid,rin )。 // Perform PID Interation } if (high_time100) high_time=(unsigned char)(rout/10000)。 else high_time=0。 low_time= (100high_time)。 } }}void set_temp(void) interrupt 0//中斷程序,用于設(shè)定溫度{ uchar ss,k=0,ddr16=0x8a。 //變量k用于設(shè)定溫度的的個(gè)位、十位切換,ddr16為1602屏幕上顯示位置的設(shè)定 wc51r(ddr16+k)。 wc51r(0x0e)。 while(1) { ss=scan_key()。 if(ss!=0) { if(ss10) { wc51r(ddr16+k)。 set_c[k]=ss+0x30。 wc51ddr(set_c[k])。 wc51r(ddr16+k)。 } else if(ss==10) { wc51r(ddr16+k)。 set_c[k]=0x30。 wc51ddr(set_c[k])。 wc51r(ddr16+k)。 } else if(ss==11) { k=!k。 wc51r(ddr16+k)。 } else if(ss==12) break。 } } wc51r(0x0c)。 set_temper=(set_c[0]0x30)*10+set_c[1]0x30。}void serve_T0() interrupt 1 //T0中斷服務(wù)子程序,用于控制電平的翻轉(zhuǎn) { if(++count=(high_time)) output=0。 else if(count=100) { output=1。 } else count=0。 TH0 = 0x3C。 TL0 = 0x0B0。 }void main(void) //主函數(shù){ unsigned char a,b,flag_2=1,count1=0。 IE=0。 IP=0x01。 TH0 = 0x3C。 TL0 = 0x0B0。 TR0=1。 EA=1。 ET0=1。 EX0=1。 high_time=50。 low_time=50。 PIDInit ( amp。spid )。 // Initialize Structure = 10。 // Set PID Coefficients = 8。 =6。 = 100。 // Set PID Setpoint display()。 while(1) { Read_Temperature()。 b=temper。 if(flag_2==1) a=b。 if((abs(ab))5) temper=a。 else temper=b。 a=temper。 flag_2=0。 if(++count130) { display2()。 count1=0。 } pare_temper()。 }}整體圖控制部分加熱部分 33 / 33
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1