University of Zululand
Embedded Systems 1
Digital Section: Homework 1
Wakerly Problems
1. Perform the following number conversions
(a) 11010112 = ?16
(b) 1740038 = ?2
(c) F3A516 = ?2
(d) 110110012 = ?8
(e) 101111.01112 = ?8
(f) 15C.3816 = ?2
2. Convert the following hexadecimal numbers into binary and octal
(a) 1023
(b) ABCD
(c) C350
(d) 9E36.7A
3. Convert the following numbers into decimal
(a) 11010112
(b) 67.278
(c) F3A516
(d) 15C.3816
4. Add the following numbers showing all carries
(a) 1101012 + 110012
(b) F35B16 + 27E616
5. Perform the following 8-bit signed 2’s complement operations, indicating if an overflow occurs
(a) 12110 – 11010
(b) 110101002 + 101010112
Additional Problems
6. Using excess-3 encode the following decimal numbers
(a) 1896
(b) 9872
7. Look up and write the 7-bit ASCII code for the following characters
(a) A
(b) ?
(c) 3
(d) e
8. Another useful serial line code is called Manchester or diphase code. A feature of the Manchester
code is it provides at least one transition per bit which makes it easy to recover the clock at the
receiver. A 0 is encoded as a 0-to-1 transition in the middle of the bit period and a 1 is encoded as a
1-to-0 transition. Encode the data bit stream 11100010101100 by drawing the encoded waveform
using firstly NRZ encoding, then Manchester coding. Use any convenient bit period Tb. List any
disadvantage for each case.