1、八段数码管的编码(2011-10-07 16:48:30) 标签: it分类: 常用芯片引脚说明 汇编语言:共阳极:DB 03H,9FH,25H,0DH,99H,49H,41H,1FH,01H,09H,11H,0C1H,63H,85H,61H,71HDB 0C0H,0F9H,0A4H,0B0H,99H,92H,82H,0F8H,80H,90H,88H,83H,0C6H,0A1H,86H,8EH共阴极:DB 0FCH,60H,0DAH,0F2H,66H,0B6H,0BEH,0E0H,0FEH,0F6H,0EEH,3EH,9CH,7AH,9EH,8EHDB 3FH,06H,5BH,4FH,66H,
2、6DH,7DH,07H,7FH,6FH,77H,7CH,39H,5EH,79H,71HC 语言中可以如下定义数组:共阳极数码管(由 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,0x8
3、e共阴极数码管(由 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共阳数码管:显示 a b c d e f g h a-h h-a0 0 0 0 0 0 0 1 1 03 C0
4、1 1 0 0 1 1 1 1 1 9F F92 0 0 1 0 0 1 0 1 25 A43 0 0 0 0 1 1 0 1 0D B04 1 0 0 1 1 0 0 1 99 995 0 1 0 0 1 0 0 1 49 926 0 1 0 0 0 0 0 1 41 827 0 0 0 1 1 1 1 1 1F F88 0 0 0 0 0 0 0 1 01 809 0 0 0 0 1 0 0 1 09 90A 0 0 0 1 0 0 0 1 11 88B 1 1 0 0 0 0 0 1 C1 83C 0 1 1 0 0 0 1 1 63 C6D 1 0 0 0 0 1 0 1 85 A1E
5、 0 1 1 0 0 0 0 1 61 86F 0 1 1 1 0 0 0 1 71 8E共阴数码管:显示 a b c d e f g h a-h h-a0 1 1 1 1 1 1 0 0 FC 3F1 0 1 1 0 0 0 0 0 60 062 1 1 0 1 1 0 1 0 DA 5B3 1 1 1 1 0 0 1 0 F2 4F4 0 1 1 0 0 1 1 0 66 665 1 0 1 1 0 1 1 0 B6 6D6 1 0 1 1 1 1 1 0 BE 7D7 1 1 1 0 0 0 0 0 E0 078 1 1 1 1 1 1 1 0 FE 7F9 1 1 1 1 0 1 1 0 F6 6FA 1 1 1 0 1 1 1 0 EE 77B 0 0 1 1 1 1 1 0 3E 7CC 1 0 0 1 1 1 0 0 9C 39D 0 1 1 1 1 0 1 0 7A 5EE 1 0 0 1 1 1 1 0 9E 79F 1 0 0 0 1 1 1 0 8E 71