Professional Documents
Culture Documents
Digital 2
Digital 2
Double complement
1 bit: 0…1 : 20
4 bit: 0…17 : 23 22 21 20
8 bit: 0…255 : 27 26 25 24 23 22 21 20
16 bit: 0…(216-1) : 215 … 21 20
32 bit: 0…(232-1) : 231 … 21 20
64 bit: 0…(264-1) : 263 … 21 20
Binary numbers
Ex: 0101.1
=0x23+1x22+0x21+1x20+
1x2-1
=0+4+0+1+0.5
=5.5
Hexadecimal numbers: 0 : 0
1 : 1
2 : 2
3 : 3
4 : 4
5 : 5
6 : 6
7 : 7
8 : 8
9 : 9
Ex: 1A.3 A : 10
B : 11
=1x161+10x160+3x16-1 C : 12
D : 13
=16+10+0.0625 E : 14
F :15
=26.0625
Digital Electronics and MicroContr. YTU-ELM 18
HOMEWORK
(12.25)10 = (?)2
(420.12)10 = (?)16
Signed numbers:
if MSB (Most significant bit) is;
0: positive
1: negative