Binary Numbers and Hexadecimal Notes
Binary Numbers and Hexadecimal Notes
Chapter 1-Binary
systems and
hexadecimal
SECTION 1
THEORY OF COMPUTER SCIENCE
128 64 32 16 8 4 2 1
1
128 64 32 16 8 4 2 1
1 0
128 64 32 16 8 4 2 1
1 0 0
128 64 32 16 8 4 2 1
1 0 0 1 0 1 0 0
2048+512+256+32+8+4+1=2861
8 4 2 1
1 0 1 0 1 1 0 0
(10101100)2=(AC)16
0 1 1 1 1 0 0 0
(01111000)2=(78)16
1110 1001
Put the groups together
(E9)16= (11101001)2 to form the binary
number
Example 2: 90010
900/162 =900/256=3 900-162*3=900-768=132 (remainder)
132/161= 8 132-16*8=4 (remainder)
4/160=4 4-160*4=0 (remainder)
Thus 90010= 384 16
8 1
128 64 32 16 8 4 2 1
0 1 0 1 0 0 0 1
8 4 2 1 8 4 2 1
5 1
Example 2:
FA8 16 = F(15) x 16² + A(10) x 16¹ + 8 x 16°
= 3840+ 160+ 8= 400810
A 8
8 4 2 1 8 4 2 1
1 0 1 0 1 0 0 0
128 64 32 16 8 4 2 1
Memory
location
Figure 1
Time sample 1 2 3 4 5 6 7 8 9 10 11 12
Table 1
Sound value 9 13 9 3.5 4 9 1.5 9 8 5 8 5.5
If we record the sound value at each time sample we would have the values
in Table 1