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

正文內(nèi)容

基于pic單片機(jī)的實(shí)時溫度控制系統(tǒng)-資料下載頁

2025-06-18 15:57本頁面
  

【正文】 qianfen=(wd%100)/10。 //千分位 wanfen=wd%10。 //萬分位 NOP()。}}// 溫度值各位轉(zhuǎn)換成段碼//*********************************************************void timetoseg(uch fh_temp,uch bai_temp,uch shi_temp,uch ge_temp,uch sf_temp,uch bf_temp,uch qf_temp,uch wf_temp){ display_data[0] = ledcode[wf_temp]。 display_data[1] = ledcode[qf_temp]。 display_data[2] = ledcode[bf_temp]。 display_data[3] = ledcode[sf_temp]。 display_data[4] = ledcode1[ge_temp]。 display_data[5] = ledcode[shi_temp]。 display_data[6] = ledcode[bai_temp]。 display_data[7] = ledcode[fh_temp]。}//*********************************************************// 定時中斷初始化(OPTION_REG)//*********************************************************void tmint(void){T0CS=0。 //時鐘源為內(nèi)部指令周期 PSA=0。 //分頻器分配給TMR0 // PS2=0。 //TMR0的分頻比為1:16 PS1=1。PS0=1。//GIE=1。 //允許總中斷 T0IE=1。 //允許定時器0溢出中斷T0IF=0。 //清楚定時器0中斷標(biāo)志TMR0=0X06。 //預(yù)置初值 T=(2566)x16=4000uS}//*********************************************************void interrupt dealtime() //中斷入口,該中斷完成數(shù)碼管的動態(tài)掃描{ //每中斷一次的時間為4毫秒 T0IF=0。 TMR0=0X06。 PORTD = 0x00。 //先關(guān)閉顯示 if(intcount==0) { PORTD = display_data[0]。 PORTE=0x00。 intcount+=1。 } else if(intcount==1) { PORTD = display_data[1]。 PORTE=0x01。 intcount+=1。 } else if(intcount==2) { PORTD = display_data[2]。 PORTE=0x02。 intcount+=1。 } else if(intcount==3) { PORTD = display_data[3]。 PORTE=0x03。 intcount+=1。 } else if(intcount==4) { PORTD = display_data[4]。 PORTE=0x04。 intcount+=1。 } else if(intcount==5) { PORTD = display_data[5]。 PORTE=0x05。 intcount+=1。 } else if(intcount==6) { PORTD = display_data[6]。 PORTE=0x06。 intcount+=1。 } else if(intcount==7) { PORTD = display_data[7]。 PORTE=0x07。 intcount = 0。 } }仿
點(diǎn)擊復(fù)制文檔內(nèi)容
語文相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1