智能抢答器C程序.docx

  1. 1、本文档共14页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
智能抢答器C程序

#includereg51.h#includemath.h#includeintrins.h#define uchar unsigned char#define uint unsigned intSbit rs =p0^7;Sbit e =p0^6;Sbit FM =p0^5;Sbit Load =p0^0;Sbit Din =p0^1;Sbit Clk =p0^2;Sbit SuoCun =p3^3;Sbit Start_Key =p3^4;Sbit Start_Key1 =p3^5;Sbit Start_Key2 =p3^6;Sbit Start_Key 3=p3^7;Sbit Reset_Start =p0^4;Sbit QC_Key =p0^3;Char code First0[ ] = {“”};Char code First1[ ] = {“ Name: Responder ”};Char code First2[ ] = {“ wenyisan ”};Char code First3[ ] = {“ Start Respond! ”};Char code First4[ ] = {“ Start Answer ”};Char code First5[ ] = {“ Responder end! ”};Char code First6[ ] = {“ Number: ”};Char code First7[ ] = {“ Answer Right ”};Char code First8[ ] = {“ Answer Wrong ”};Char code First9[ ] = {“ Add 1 Score ”};Char code First10[ ] = {“ Minus 1 Score ”};Char code First11[ ] = {“ Nobody Respond ”};Char code First12[ ] = {“ Next Question ”};Char code First13[ ] = {“ New Question ”};Char code First14[ ] = {“ Wait Start ”};Char code First15[ ] = {“ No Answer ”};Char code First16[ ] = {“ Continue Respond ”};Char code First17[ ] = {“ Respond Fouls ”};Char code First18[ ] = {“ Respond invalid ”};Uchar key1=0,key2=0,key3=0,key4=0,key5=0,key6=0;Uchar key7=0,key8=0,s1=0,s2=0,s3=0,s4=0,s5=0,s6=0,s7=0,s8=0;Uchar Flag_FG,Flag1=0,Flag2=0Xs,Baj;Char Hao;Char Num[ ] = {‘0’,’1’,’2’,’3’,’4’,’5’,’6’,’7’,’8’,’9’};Int code Num1[ ] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};Int code Num2[ ] = {0xbf,0x86,0xdb,oxcf,oxe6,0xed, ,0xfd,0x87,0xff,0xef};Void 1cd_init();Void write(char x);Void 1cd_enable();Void write1cd(char *pt);Void Display_char(void);Void delay(uint t);Void write_7221(long int x);Void Init7221(void);Void DaoJiShi_5s(void);Void DaoJiShi_10(void);Void Int_Ext0(void);Void Check_key(void);Void SMG_DISP(void);Void BaoJing(void);Void main(){ FM=0; Int_Ext0(); Init7221(); 1cd_init(); Display_char();While (1) { SMG_DISP(); Check_Key();If(Start_Key==0){ Flag_FG=1; DaoJiShi_5s(); Flag_FG=0;

文档评论(0)

ctuorn0371 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档