求51单片机8路抢答器程序,请各位大侠帮帮忙,急……答://这是六路抢答器,八路的话就是相应位显示,而不是不显示,ox00为清屏功能,如下 include<reg51.h> include<intrins.h> define uint unsigned int define uchar unsigned char uchar code table[16] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x...
AT89C51单片机8路抢答器的代码怎么写,急用,求解答答:include<reg51.h>#define uchar unsigned charuchar table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f};sbit rstkey=P2^2;sbit speaker=P2^0;void delay(uchar a){uchar i,j;for(i=0;i<a;i++)for(j=0;j<120;j++);}main(){uchar i,key;P2=0xff;while(1){i=0;...
求51单片机的控制的八路抢答器的程序答:JB P1.0,NEXT;去抖动,如果"开始键"按下就向下执行,否者跳到非法抢答查询 ACALL BARK;按键发声 MOV A,R1 MOV R6,A;送R1->R6,因为R1中保存了抢答时间 SETB OK;抢答标志位,用于COUNT只程序中判断是否查询抢答 MOV R3,#0AH;抢答只显示计时,灭号数 AJMP COUNT;进入倒计时程序,"查询有效抢答的...