51单片机C语言程序注释标注(写全)答:include <reg51.h> //调用头文件reg51.hvoid main() //主函数{unsigned char // 无符号字符型tab[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e};//定义一个数组 LED数码管译码用的码表while(1) //主循环{P2=P2|0x07; // P2口...
用C语言编程,使51单片机数码管从0显示到60答:unsigned char code table[] = {0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f, 0x77, 0x7c, 0x39, 0x5e, 0x79, 0x71};/ 功 能:延时,若干毫秒 参 数:毫秒数 返回值:无 / void DelayMs(unsigned int i)//一个延时函数,这个函数在11.0592M晶振下的...