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

正文內(nèi)容

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

2025-07-03 18:17本頁面

【導(dǎo)讀】搶答器作為一種工具,已廣泛應(yīng)用于各種智力和知識(shí)競賽場合。使用頻率較低,且有的要么制作復(fù)雜,要么可靠性低。作為一個(gè)單位,如果專門。本設(shè)計(jì)是以八路搶答為基本理念??紤]到依需設(shè)定限時(shí)回答的功能,利用。時(shí)使數(shù)碼管能夠正確地顯示時(shí)間。用開關(guān)做鍵盤輸出,蜂鳴器發(fā)生提示。發(fā)項(xiàng)目已由簡單到復(fù)雜,由小型系統(tǒng)到大型綜合系統(tǒng)。探、鐵路交通運(yùn)輸以及樓宇自動(dòng)化等,甚至目前的許多家電中都有單片機(jī)的應(yīng)用。舉足輕重的角色。在單片機(jī)家族的眾多成員中,52系列單片機(jī)以其優(yōu)越的性能、成熟的技術(shù)、高可靠性和高性價(jià)比,成為國內(nèi)單片機(jī)應(yīng)用領(lǐng)域內(nèi)的主流。各種知識(shí)競賽、文娛活動(dòng)的廣泛開展,使搶答器成了必不可少的電子設(shè)備,最小同時(shí)提供8名選手比賽,分別有8個(gè)按鈕。時(shí)間并保持到主持人清楚為止。該方案的特點(diǎn)是中小規(guī)模集成電路應(yīng)。并且制作過程工序比較煩瑣,使用不太方便。

  

【正文】 oid display_char(uchar char_1,uchar char_2,uchar char_3,uchar char_4 )//閃動(dòng)!顯示字符的函數(shù) { shan_count++。 if(shan_count==150) shan_count=0。 if(shan_count0amp。amp。shan_count50) { P2=0x7f。//0111 1111 P0=table_char[char_4]。 delay(1)。 P2=0x7f。//0111 1111 P0=0xff。 delay(1)。 P2=0xbf。//1011 1111 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。 30 delay(1)。 P2=0xef。// P0=0xff。 delay(1)。 } } void display_set(uchar char_1,uchar time,uchar char_2)//時(shí)間設(shè)置的閃動(dòng)顯示 { shan_count++。 if(shan_count==120) shan_count=0。 if(shan_count0amp。amp。shan_count40) { P2=0x7f。//0111 1111 最后一位數(shù)碼管亮 P0=table[char_2]。// 顯示一個(gè)符號(hào) delay(1)。 P2=0x7f。//0111 1111 P0=0xff。//消余輝 delay(1)。 P2=0xbf。//1011 1111 P0=table[time%10]。//時(shí)間的個(gè)位 delay(1)。 P2=0xbf。//1011 1111 P0=0xff。//消余輝 delay(1)。 P2=0xdf。//1101 1111 P0=table[time/10]。//時(shí)間的十位 delay(1)。 P2=0xdf。//1101 1111 P0=0xff。//消余輝 delay(1)。 P2=0xef。// 1110 1111 P0=table[char_1]。// 顯示一個(gè)符號(hào) delay(1)。 P2=0xef。//1110 1111 P0=0xff。//消余輝 delay(1)。 } else { P2=0x7f。//0111 1111 P0=table[char_2]。 delay(1)。 P2=0xbf。// 31 P0=0xff。 delay(1)。 P2=0xdf。// P0=0xff。 delay(1)。 P2=0xef。// P0=table[char_1]。 delay(1)。 } } void display_score(uchar xs_num)//分?jǐn)?shù)查詢顯示函數(shù) { P2=0x7f。//0111 1111 最后一位數(shù)碼管亮 P0=table[(table_score[xs_num]%10)]。//分?jǐn)?shù)的個(gè)位 delay(1)。 P2=0x7f。//0111 1111 P0=0xff。//消余輝 delay(1)。 P2=0xbf。//1011 1111 P0=table[(table_score[xs_num]/10)]。//分?jǐn)?shù)的十位 delay(1)。 P2=0xbf。//1011 1111 P0=0xff。//消余輝 delay(1)。 P2=0xdf。//1101 1111 P0=table_char[15]。//間隔符號(hào) delay(1)。 P2=0xdf。//1101 1111 P0=0xff。//消余輝 delay(1)。 P2=0xef。// 1110 1111 P0=table[xs_num]。// 選手編號(hào) delay(1)。 P2=0xef。//1110 1111 P0=0xff。//消余輝 delay(1)。 } void beep() //有源蜂鳴器函數(shù) { fmq=0。 delay(80)。 fmq=1。 } void beep_last()//最后一聲特殊聲調(diào) 32 { fmq=0。 delay(300)。 fmq=1。 } void LED() { led=0。 delay(150)。 led=1。 } void T0_time() interrupt 1//定時(shí)器 0 中斷函數(shù) _回答時(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//定時(shí)器 1 中斷函數(shù) _搶答時(shí)間 { TH1=(6553650000)/256。//50us TL1=(6553650000)%256。//馬上重裝初值,這樣在后面調(diào)用 beep()函數(shù)時(shí)就不會(huì)影響定時(shí)器的準(zhǔn)確計(jì)時(shí)了 if(count_1==20) { count_1=0。 QiangDa_time。 if(QiangDa_time=5) { if(QiangDa_time==0) { beep_last()。// 最后一聲警告 } else beep()。 } } 33 count_1++。 } void EX0_set_QiangDa_time() interrupt 0 //外中斷 0,設(shè)置搶答時(shí)間 { delay(10)。//消抖一下 if(Key_set_Q==0) { beep()。 while(1) { display_set(12,QiangDa_time_temp,13)。//調(diào)用 時(shí)間設(shè)置閃動(dòng)顯示函數(shù),效果為 [時(shí)間 ] if(Key_Start==0)// 時(shí)間 +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)//時(shí)間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) { 34 beep()。 break。 } } } } } void EX1_set_HuiDa_time() interrupt 2 //外中斷 1,設(shè)置回答時(shí)間 { delay(10)。//消抖一下 if(Key_set_H==0) { beep()。 while(1) { display_set(12,HuiDa_time_temp,13)。//調(diào)用時(shí)間設(shè)置閃動(dòng)顯示函數(shù),效果為 [時(shí)間 ] if(Key_Start==0)// 時(shí)間 +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)//時(shí)間1鍵 { delay(10)。 if(Key_Stop==0) { HuiDa_time_temp。 if(HuiDa_time_temp==0) { HuiDa_time_temp=99。 } } } while(!Key_Stop)。//等待按鍵釋放 35 if(Key_Restart==0) { if(Key_Restart==0) { beep()。 break。 } } } } }
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1