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

正文內容

八路搶答器單片機畢業(yè)設計論文-資料下載頁

2025-06-28 09:41本頁面
  

【正文】 P0=table_char[char_3]。 delay(1)。 P2=0xbf。//1011 1111 P0=0xff。 delay(1)。 P2=0xdf。//1101 1111 P0=table_char[char_2]。 delay(1)。 P2=0xdf。//1101 1111 P0=0xff。 delay(1)。 P2=0xef。//1110 1111 P0=table_char[char_1]。 delay(1)。 P2=0xef。//1110 1111 P0=0xff。 delay(1)。 } else { P2=0x7f。//0111 1111 P0=0xff。 delay(1)。 P2=0xbf。// P0=0xff。 delay(1)。 P2=0xdf。// P0=0xff。 delay(1)。 P2=0xef。// P0=0xff。 delay(1)。 }}void display_set(uchar char_1,uchar time,uchar char_2)//時間設置的閃動顯示{ shan_count++。 if(shan_count==120) shan_count=0。 if(shan_count0amp。amp。shan_count40) { P2=0x7f。//0111 1111最后一位數(shù)碼管亮 P0=table[char_2]。//顯示一個符號 delay(1)。 P2=0x7f。//0111 1111 P0=0xff。//消余輝 delay(1)。 P2=0xbf。//1011 1111 P0=table[time%10]。//時間的個位 delay(1)。 P2=0xbf。//1011 1111 P0=0xff。//消余輝 delay(1)。 P2=0xdf。//1101 1111 P0=table[time/10]。//時間的十位 delay(1)。 P2=0xdf。//1101 1111 P0=0xff。//消余輝 delay(1)。 P2=0xef。// 1110 1111 P0=table[char_1]。//顯示一個符號 delay(1)。 P2=0xef。//1110 1111 P0=0xff。//消余輝 delay(1)。 } else { P2=0x7f。//0111 1111 P0=table[char_2]。 delay(1)。 P2=0xbf。// P0=0xff。 delay(1)。 P2=0xdf。// P0=0xff。 delay(1)。 P2=0xef。// P0=table[char_1]。 delay(1)。 }}void display_score(uchar xs_num)//分數(shù)查詢顯示函數(shù){ P2=0x7f。//0111 1111最后一位數(shù)碼管亮 P0=table[(table_score[xs_num]%10)]。//分數(shù)的個位 delay(1)。 P2=0x7f。//0111 1111 P0=0xff。//消余輝 delay(1)。 P2=0xbf。//1011 1111 P0=table[(table_score[xs_num]/10)]。//分數(shù)的十位 delay(1)。 P2=0xbf。//1011 1111 P0=0xff。//消余輝 delay(1)。 P2=0xdf。//1101 1111 P0=table_char[15]。//間隔符號 delay(1)。 P2=0xdf。//1101 1111 P0=0xff。//消余輝 delay(1)。 P2=0xef。// 1110 1111 P0=table[xs_num]。//選手編號 delay(1)。 P2=0xef。//1110 1111 P0=0xff。//消余輝 delay(1)。}void beep() //有源蜂鳴器函數(shù){ fmq=0。 delay(80)。 fmq=1。}void beep_last()//最后一聲特殊聲調{ fmq=0。 delay(300)。 fmq=1。}void LED(){ led=0。 delay(150)。 led=1。}void T0_time() interrupt 1//定時器0中斷函數(shù)_回答時間{ TH0=(6553650000)/256。//50ms TL0=(6553650000)%256。//馬上重裝初值,以免有誤差 if(count_0==20) { count_0=0。 HuiDa_time。 if(HuiDa_time=5) { if(HuiDa_time==0) { beep_last()。//最后一聲特殊警告 } beep()。 } } count_0++。 }void T1_time() interrupt 3//定時器1中斷函數(shù)_搶答時間{ TH1=(6553650000)/256。//50us TL1=(6553650000)%256。//馬上重裝初值,這樣在后面調用beep()函數(shù)時就不會影響定時器的準確計時了 if(count_1==20) { count_1=0。 QiangDa_time。 if(QiangDa_time=5) { if(QiangDa_time==0) { beep_last()。//最后一聲警告 } else beep()。 } } count_1++。 }void EX0_set_QiangDa_time() interrupt 0 //外中斷0,設置搶答時間{ delay(10)。//消抖一下 if(Key_set_Q==0) { beep()。 while(1) { display_set(12,QiangDa_time_temp,13)。//調用時間設置閃動顯示函數(shù),效果為 [時間] if(Key_Start==0)//時間+1鍵 { delay(10)。 if(Key_Start==0) { QiangDa_time_temp++。 if(QiangDa_time_temp==100) { QiangDa_time_temp=1。 } } } while(!Key_Start)。//等待按鍵釋放 if(Key_Stop==0)//時間1鍵 { delay(10)。 if(Key_Stop==0) { QiangDa_time_temp。 if(QiangDa_time_temp==0) { QiangDa_time_temp=99。 } } } while(!Key_Stop)。//等待按鍵釋放 if(Key_Restart==0) { if(Key_Restart==0) { beep()。 break。 } } } }}void EX1_set_HuiDa_time() interrupt 2 //外中斷1,設置回答時間{ delay(10)。//消抖一下 if(Key_set_H==0) { beep()。 while(1) { display_set(12,HuiDa_time_temp,13)。//調用時間設置閃動顯示函數(shù),效果為 [時間] if(Key_Start==0)//時間+1鍵 { delay(10)。 if(Key_Start==0) { HuiDa_time_temp++。 if(HuiDa_time_temp==100) { HuiDa_time_temp=1。 } } } while(!Key_Start)。//等待按鍵釋放 if(Key_Stop==0)//時間1鍵 { delay(10)。 if(Key_Stop==0) { HuiDa_time_temp。 if(HuiDa_time_temp==0) { HuiDa_time_temp=99。 } } } while(!Key_Stop)。//等待按鍵釋放 if(Key_Restart==0) { if(Key_Restart==0) { beep()。 break。 } } } }}14
點擊復制文檔內容
黨政相關相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1