2 Instructions
2-356
CP1E CPU Unit Instructions Reference Manual(W483)
7-segment Data
The following table shows the data conversions from a hexadecimal digit (4 bits) to 7-segment code (8
bits).
Original data Converted code (segments)
Display Original data
Digit Bits – g f e d c b a Hex
0 000000111111 3F
1 000100000110 06
2 001001011011 5B
3 001101001111 4F
4 010001100110 66
5 010101101101 6D
6 011001111101 7D
7 011100100111 27
8 100001111111 7F
9 100101101111 6F
A 101001110111 77
B 101101111100 7C
C 110000111001 39
D 110101011110 5E
E 111001111001 79
F 111101110001 71
1
1
1
1
1
1
1
0
g
c
d
e
bf
a
a
b
c
d
e
f
g
LSB
MSB