【单选题】#include "reg51.h" void main() { //字形码 unsigned char data mtable[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x27,0x7f,0x6f}; //位选 unsigned char data mwei[]={0x07, 0x0b, 0x0d, 0x0e}; //待显示的数字 unsigned char ...
【简答题】要求同本次任务,按下4*4矩阵键盘中任意一个按钮,数码管显示按钮相应的数字(0~F),要求务必使用列扫描法实现。 程序: #include code unsigned char tc[]= {0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90 ,0x88,0x83,0xc6,0xa1,0x86,0x8e}; main() { char i; whi...