求51单片机矩阵4*4键盘程序,P0口接一个数码管,P3口接矩阵键盘,C语言的...答:include<reg51.h> unsigned char keyval,keynum=0;unsigned char distab[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e,0xff};void t1isr() interrupt 3 { unsigned char sccode,recode;TH0=(65536-10000)/256;TL0=(65536-10000)%256;...