Number Systems: ENGR 17 (Ekim) Digital Notes #1
Number Systems: ENGR 17 (Ekim) Digital Notes #1
Number Systems: ENGR 17 (Ekim) Digital Notes #1
Number Systems
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
87 86 85 84 83 82 81 80
1
ENGR 17 [ekim] Digital Notes #1
An easy way to convert an eight digit binary number to a two digit hexadecimal number is to treat the 8
digit binary as two hexadecimal numbers consisting of 4 binary numbers. See table below:
Binary Hex
0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
1000 8
1001 9
1010 A
1011 B
1100 C
1101 D
1110 E
1111 F
.
So, the 8 digit binary number
0011 1011 ⇒ 3B
2
ENGR 17 [ekim] Digital Notes #1
52/2 rem = 0 = a0
26/2 rem = 0 = a1
13/2 rem = 1 = a2
6/2 rem = 0 = a3
3/2 rem = 1 = a4
1/2 rem = 1 = a5
Binary Arithmetic
0+0=0
0+1=1
1+0=1
1 + 1 = 0 and carry 1 to the next column
0−0=0
0 − 1 = 1 and borrow 1 from the next column
1−0=1
1−1=0
0×0=0
0×1=0
1×0=0
1×1=1