Mikrokontrollerid ja robootika homework 1
So 123.45610 = 443.2125
d) BCD
1 2 3 . 4 5 6
0001 0010 0011 0100 0101 0110
2. Extend the following unsigned 8-bit binary numbers to their 16-bit equivalents and convert
the result to hexadecimal.
a) 011010112
16-bit equivalent is 0000 0000 0110 10112
Result in hexadecimal = 006B16 = 6B16
b) 101101012
16-bit equivalent is 0000 0000 1011 01012
Result in hexadecimal = 00B516 = B516
3. Extend the following signed two’s complement 8-bit binary numbers to their 16-bit
equivalents and convert the result to hexadecimal.
a) 011010112
16-bit equivalent is 0000 0000 0110 10112
Result in hexadecimal = 006B16
b) 101101012
16-bit equivalent is 1111 1111 1011 01012
Result in hexadecimal = FFB516
Logic and arithmetic
4