Service manual

5
Now, we can convert binary to HEX very easily
:-
8 4 2 1
0 0 0 0 = 0
0 0
0 1 = 1
0
0 1 0 = 2
0 0 1 1 = 3
0 1 0
0 = 4
0 1 0 1 = 5
0 1
1 0 = 6
0 1 1 1 = 7
1 0 0 0 = 8
1 0
0 1 = 9
1 0 1 0 = A
1 0 1
1 = B
1 1 0 0 = C
1
1 0 1 = D
1 1
1 0 = E
1 1 1 1 = F
You seldom need to consider decimal numbers at all. Usually you can go directly from
binary to hex.
Get used to splitting the binary number into groups of four, with the Least Significant Bit
(LSB) on the right hand side. If you split it up, then - it doesn't matter how big it is - you
can always convert each group into hex and achieve the complete answer. Consider the
following 11 Bit number
:-
1024 512 256
128 64 32 16 8 4 2 1
0 1 0
0
0 1
1
1 0 1
1
can be written as
8 4 2 1 8 4 2 1 8 4 2 1
0 1 0
0
0 1
1
1 0 1
1
= 2
+ 2 +1 + 8 + 2 +1
= 2 3 B
= 23B HEX
Since this was an 11 Bit number it could not be divided exactly into groups of four but, as
you see, it didn't matter. We ignore any bits missing at the
left hand side, as if they were
zero.