資源描述:
《基于protues搶答器仿真》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、基于protues的搶答器電路仿真一個(gè)基于protues的搶答器電路仿真,共四路搶答選擇,四路LED燈分別顯示獲得搶答權(quán)的選手,12864顯示選手分?jǐn)?shù),由主持人宣布并通過(guò)按鍵控制開(kāi)始搶答及加減分,清零分?jǐn)?shù)等操作。操作:上電后顯示歡迎界面,第一次按開(kāi)始鍵就緒,第二次按開(kāi)始鍵開(kāi)始搶答,取得搶答權(quán)的選手相應(yīng)LED燈會(huì)亮,回答結(jié)束后,計(jì)分后燈滅。由調(diào)試時(shí)間緊張,程序有點(diǎn)混亂,只可參考!可共同商討優(yōu)化QQ:.仿真電路:上電后,顯示歡迎界面:38主持人第一次按開(kāi)始鍵,就緒。各小組初始分?jǐn)?shù)均為零,最低分?jǐn)?shù)也為零,最高分?jǐn)?shù)為一百分。主持人按開(kāi)始鍵,A搶答答
2、題權(quán),A指示燈亮。38A回答正確,主持人按加分鍵,A選手(第一組)得十分(A回答錯(cuò)誤,主持人可按減分鍵減十分,為0分時(shí)不減)。主持人讀完題目后,可按開(kāi)始鍵開(kāi)始下一題搶答,也可按清零鍵結(jié)束此輪。38附程序:3838constcharcodehzk[]={//0(0)0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//00x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x2
3、0,0x20,0x10,0x0F,0x00,//00x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//0(49)0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//10x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x0
4、0,//00x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//0(97)380x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//20x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00,//00x00,0xE0,0x1
5、0,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//0(145)0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//30x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00,//00x00,0xE0,0x10,0x08,0x08,0x10,0x
6、E0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//0(193)0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//40x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00,//00x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0
7、x10,0x20,0x20,0x10,0x0F,0x00,//0(241)0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//50x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00,//00x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,
8、0x0F,0x00,38//0(289)0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10