汇编语言:
共阳极:
DB03H,9FH,25H,0DH,99H,49H,41H,1FH,01H,09H,11H,0C1H,63H,85H,61H,71H
DB0C0H,0F9H,0A4H,0B0H,99H,92H,82H,0F8H,80H,90H,88H,83H,0C6H,0A1H,86H,8EH
共阴极:
DB0FCH,60H,0DAH,0F2H,66H,0B6H,0BEH,0E0H,0FEH,0F6H,0EEH,3EH,9CH,7AH,9EH,8EH
DB3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH,77H,7CH,39H,5EH,79H,71H
C语言中可以如下定义数组:
共阳极数码管(由a到h的二进制码):
unsigned char number[]=
{
0x03,0x9f,0x25,0x0d,
0x99,0x49,0x41,0x1f,
0x01,0x09,0x11,0xc1,
0x63,0x85,0x61,0x71
}
共阳极数码管(由h到a的二进制码):
unsigned char number[]=
{
0xc0,0xf9,0xa4,0xb0,
0x99,0x92,0x82,0xf8,
0x80,0x90,0x88,0x83,
0xc6,0xa1,0x86,0x8e
}
共阴极数码管(由a到h的二进制码):
unsigned char number[]=
{
0xfc,0x60,0xda,0xf2,
0x66,0xb6,0xbe,0xe0,
0xfe,0xf6,0xee,0x3e,
0x9c,0x7a,0x9e,0x8e
}
共阴极数码管(由h到a的二进制码):
unsigned char number[]=
{
0x3f,0x06,0x5b,0x4f,
0x66,0x6d,0x7d,0x07,
0x7f,0x6f,0x77,0x7c,
0x39,0x5e,0x79,0x71
}
共阳数码管:
显示ab c d e f g h a-h h-a
00 0 0 0 0 0 1 1 03 C0
11 0 0 1 1 1 1 1 9F F9
20 0 1 0 0 1 0 1 25 A4
30 0 0 0 1 1 0 1 0D B0
41 0 0 1 1 0 0 1 99 99
50 1 0 0 1 0 0 1 49 92
60 1 0 0 0 0 0 1 41 82
70 0 0 1 1 1 1 1 1F F8
800 0 0 0 0 0 1 01 80
90 0 0 0 1 0 0 1 09 90
A0 0 0 1 0 0 0 1 11 88
B1 1 0 0 0 0 0 1 C1 83
C0 1 1 0 0 0 1 1 63 C6
D1 0 0 0 0 1 0 1 85 A1
E0 1 1 0 0 0 0 1 61 86
F01 1 1 0 0 0 1 71 8E
共阴数码管:
显示a b c d e f g h a-h h-a
01 1 1 1 1 1 0 0 FC 3F
10 1 1 0 0 0 0 0 60 06
21 1 0 1 1 0 1 0 DA 5B
31 1 1 1 0 0 1 0 F2 4F
40 1 1 0 0 1 1 0 66 66
51 0 1 1 0 1 1 0 B6 6D
61 0 1 1 1 1 1 0 BE 7D
71 1 1 0 0 0 0 0 E0 07
81 1 1 1 1 1 1 0 FE 7F
91 1 1 1 0 1 1 0 F6 6F
A1 1 1 0 1 1 1 0 EE 77
B00 1 1 1 1 1 0 3E 7C
C1 0 0 1 1 1 0 0 9C 39
D01 1 1 1 0 1 0 7A 5E
E1 0 0 1 1 1 1 0 9E 79
F10 0 0 1 1 1 0 8E 71