Professional Documents
Culture Documents
Digital Electronics EX1
Digital Electronics EX1
digital electronic
Experimental work N° 1 :
Name& surname:
AY : 2016/2017 Page 1
meritocracy
base in Matlab.
objective
AY : 2016/2017 Page 2
Exercises
DECODING:
In Exercises 1-4, use hand calculations (and a calculator) to change each of the
* If m=2 : bin2dec( N )
1. (3565)7
2. (2102)3
3. (11111111)2
4. (111011011)2
(3565)7 = (3565)7 =
(2102)3 = (2102)3 =
(11111111)2 = (11111111)2 =
(111011011)2 = (111011011)2 =
AY : 2016/2017 Page 3
CODING:
In Exercises 5-8, use the tabular technique to change each of the given base ten
integers to base two. Check your results with Matlab s dec2bin command.
* If m=2 : dec2bin(N)
5. (127)10 = ( ? )2 = ( ? )16 .
6. (67)10 = ( ? )2 = ( ? )16 .
7. (255)10 = ( ? )2 = ( ? )16 .
8. (256)10 = ( ? )2 = ( ? )16 .
127 127
67 67
255 255
256 256
AY : 2016/2017 Page 4
TRANSCODING:
In Exercises 9-12, use hand calculations to place each of the given binary
(N)2=(?)10 se :bin2dec( N )
9. (11110101)2
10. (1110011101011001)2
11. (11111101101010010101111110101100)2
12. (11101101101010010101111110111100)2
In Exercises 13-16, Use the tabular method demonstrated in course to place each of the given
base ten integers into binary format. Then place your result in hexidecimal format. Check
13. 143
14. 509
15. 1007
16. 12315
AY : 2016/2017 Page 5