七段数码管英文字符和数字显示对应二进制数与十六进制数,属作者原创。其中英文字母的W和M,S和Z等等,作者参考众多资料,做了适当调整,以便能够望文知意。
希望能够帮助大家。
作者原创,严禁转载。学习用途,拒绝商用。
七段数码管英文字符和数字显示对应二进制数与十六进制数
注:数码管的a、b、c、d、e、f、g、dp段脚分别对应接到单片机P口的0、1、2、3、4、5、6、7管脚。另外,dp段不显示。
共阴极数码管:
A = 0011 0111 = 0x37
B = 0111 1100 = 0x7C
C = 0011 1001 = 0x39
D = 0101 1110 = 0x5E
E = 0111 1001 = 0x79
F = 0111 0001 = 0x71
G = 0011 1101 = 0x3D
H = 0111 0110 = 0x76
I = 0001 0000 = 0x10
J = 0000 1110 = 0x0E
K = 0111 1010 = 0x7A
L = 0011 1000 = 0x38
M = 0101 0101 = 0x55
N = 0101 0100 = 0x54
O = 0101 1100 = 0x5C
P = 0111 0011 = 0x73
Q = 0110 0111 = 0x67
R = 0101 0000 = 0x50
S = 0110 0101 = 0x65
T = 0111 1000 = 0x78
U = 0011 1110 = 0x3E
V = 0001 1100 = 0x1C
W = 0110 1010 = 0x6A
X = 0110 0100 = 0x64
Y = 0110 1110 = 0x6E
Z = 0101 1010 = 0x5A
1 = 0000 0110 = 0x06
2 = 0101 1011 = 0x5B
3 = 0100 1111 = 0x4F
4 = 0110 0110 = 0x66
5 = 0110 1101 = 0x6D
6 = 0111 1101 = 0x7D
7 = 0010 0111 = 0x27
8 = 0111 1111 = 0x7F
9 = 0110 1111 = 0x6F
0 = 0011 1111 = 0x3F
灭= 0000 0000 = 0x00
- = 0100 0000 = 0x40
共阳极数码管:
A = 1000 1000 = 0x88
B = 1000 0011 = 0x83
C = 1100 0110 = 0xC6
D = 1010 0001 = 0xA1
E = 1000 0110 = 0x86
F = 1000 1110 = 0x8E
G = 1100 0010 = 0xC2
H = 1000 1001 = 0x89
I = 1110 1111 = 0xEF
J = 1111 0001 = 0xF1
K = 1000 0101 = 0x85
L = 1100 0111 = 0xC7
M = 1010 1010 = 0xAA
N = 1010 1011 = 0xAB
O = 1010 0011 = 0xA3
P = 1000 1100 = 0x8C
Q = 1001 1000 = 0x98
R = 1010 1111 = 0xAF
S = 1001 1010 = 0x9A
T = 1000 0111 = 0x87
U = 1100 0001 = 0xC1
V = 1110 0011 = 0xE3
W = 1001 0101 = 0x95
X = 1001 1011 = 0x9B
Y = 1001 0001 = 0x91
Z = 1010 0101 = 0xA5
1 = 1111 1001 = 0xF9
2 = 1010 0100 = 0xA4
3 = 1011 0000 = 0xB0
4 = 1001 1001 = 0x99
5 = 1001 0010 = 0x92
6 = 1000 0010 = 0x82
7 = 1101 1000 = 0xD8
8 = 1000 0000 = 0x80
9 = 1001 0000 = 0x90
0 = 1100 0000 = 0xC0
灭= 1111 1111 = 0xFF
- = 1011 1111 = 0xBF
编码完毕
全部资料51hei下载地址:
七段数码管英文字符和数字显示对应二进制数与十六进制数.zip
(163.92 KB, 下载次数: 17)
|