資源描述:
《基于protues搶答器仿真》由會員上傳分享,免費在線閱讀,更多相關內容在行業(yè)資料-天天文庫。
1、基于protues的搶答器電路仿真一個基于protues的搶答器電路仿真,共四路搶答選擇,四路LED燈分別顯示獲得搶答權的選手,12864顯示選手分數,由主持人宣布并通過按鍵控制開始搶答及加減分,清零分數等操作。操作:上電后顯示歡迎界面,第一次按開始鍵就緒,第二次按開始鍵開始搶答,取得搶答權的選手相應LED燈會亮,回答結束后,計分后燈滅。由調試時間緊張,程序有點混亂,只可參考!可共同商討優(yōu)化QQ:371954805.仿真電路:上電后,顯示歡迎界面:38主持人第一次按開始鍵,就緒。各小組初始分數均為零,最低分數也為零,最高分數為一百分。主持人按開始鍵,A搶答答題權,A指示燈亮。38A回答正確
2、,主持人按加分鍵,A選手(第一組)得十分(A回答錯誤,主持人可按減分鍵減十分,為0分時不減)。主持人讀完題目后,可按開始鍵開始下一題搶答,也可按清零鍵結束此輪。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,0x20,0x20,0x10,0x0F,0x00,//00x00,0xE0,0x10,0
3、x08,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,0x00,//00x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0
4、x20,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,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//0(145)0x00,0xE0,0x10,0
5、x08,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,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//0(193)0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,
6、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,0x10,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,0
7、x88,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,0x0F,0x00,38//0(289)0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,