原创 数码管编码

2009-4-6 14:18 4561 4 4 分类: MCU/ 嵌入式

共阳数码管 a b c d e f g h a-h h-a
0                 0 0 0 0 0 0 1 1 03 C0
1                 1 0 0 1 1 1 1 1 9F F9
2                 0 0 1 0 0 1 0 1 25 A4
3                 0 0 0 0 1 1 0 1 0D B0
4                 1 0 0 1 1 0 0 1 99 99
5                 0 1 0 0 1 0 0 1 49 92
6                 0 1 0 0 0 0 0 1 41 82
7                 0 0 0 1 1 1 1 1 1F F8
8                 0 0 0 0 0 0 0 1 01 80
9                 0 0 0 0 1 0 0 1 09 90
A                 0 0 0 1 0 0 0 1 11 88
B                 1 1 0 0 0 0 0 1 C1 83
C                 0 1 1 0 0 0 1 1 63 C6
D                 1 0 0 0 0 1 0 1 85 A1
E                 0 1 1 0 0 0 0 1 61 86
F                 0 1 1 1 0 0 0 1 71 8E


共阴数码管 a b c d e f g h a-h h-a
0                 1 1 1 1 1 1 0 0 FC 3F
1                 0 1 1 0 0 0 0 0 60 06
2                 1 1 0 1 1 0 1 0 DA 5B
3                 1 1 1 1 0 0 1 0 F2 4F
4                 0 1 1 0 0 1 1 0 66 66
5                 1 0 1 1 0 1 1 0 B6 6D
6                 1 0 1 1 1 1 1 0 BE 7D
7                 1 1 1 0 0 0 0 0 E0 07
8                 1 1 1 1 1 1 1 0 FE 7F
9                 1 1 1 1 0 1 1 0 F6 6F
A                 1 1 1 0 1 1 1 0 EE 77
B                 0 0 1 1 1 1 1 0 3E 7C
C                 1 0 0 1 1 1 0 0 9C 39
D                 0 1 1 1 1 0 1 0 7A 5E
E                 1 0 0 1 1 1 1 0 9E 79
F                 1 0 0 0 1 1 1 0 8E 71


汇编语言:


DB 03H,9FH,25H,0DH,99H,49H,41H,1FH,01H,09H,11H,0C1H,63H,85H,61H,71H    
DB 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,8EH
DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH,77H,7CH,39H,5EH,79H,71H


C语言:


0x03,0x9f,0x25,0x0d,0x99,0x49,0x41,0x1f,0x01,0x09,0x11,0xc1,0x63,0x85,0x61,0x71
0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e
0xfc,0x60,0xda,0xf2,0x66,0xb6,0xbe,0xe0,0xfe,0xf6,0xee,0x3e,0x9c,0x7a,0x9e,0x8e
0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71

PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
EE直播间
更多
我要评论
0
4
关闭 站长推荐上一条 /3 下一条