includereg51h>unsignedcharcodeseg7[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}数码管码表unsi
includereg52h>defineucharunsignedchardefineuintunsignedintunsignedcharcodesmg_du[]={0x3f,0x06,0x5
接法为:Px.0~Px.7-a~hunsignedcharcodedistab[16]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,//共阴数码管段选码表,无小数
#includemsp430x14x.h>#includeled.hunsignedcharseg[]={0x3f,0x06,0x5b,0x4f,/*0123*/0x66,0x6d,0x7d,0
电路图:程序代码如下:#includereg51.h>charled_a[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07};charled_b[]={0x3
程序如下:includereg52h>unsignedcharcodetable1[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x
includeavrioh>defineucharunsignedchardefineuintunsignedintuchardisplay[]={0x3f,0x06,0x5b,0x4f,0x6