资源描述:
《基于protues抢答器仿真》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、基于protues的抢答器电路仿真一个基于protues的抢答器电路仿真,共四路抢答选择,四路LED灯分别显示获得抢答权的选手,12864显示选手分数,由主持人宣布并通过按键控制开始抢答及加减分,清零分数等操作。操作:上电后显示欢迎界面,第一次按开始键就绪,第二次按开始键开始抢答,取得抢答权的选手相应LED灯会亮,回答结束后,计分后灯灭。由调试时间紧张,程序有点混乱,只可参考!可共同商讨优化QQ:.仿真电路:上电后,显示欢迎界面:38主持人第一次按开始键,就绪。各小组初始分数均为零,最低分数也为零,最高分数为一百分。主持人按开始键,A抢答答
2、题权,A指示灯亮。38A回答正确,主持人按加分键,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,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