hw6_solution

hw6_solution - ECEN 248 Fall 2011 Homework 6 Solutions...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECEN 248 Fall 2011 1 Homework 6 Solutions 6.1. (20 points) Convert the following numbers to binary: 57, 121, 0.2, 0.35, 12.4. For the fractional part, you need to compute to 8 binary digits. 1) 57 = 32 + 16 + 8 + 1 = (111001) b 2) 121 = 64 + 32 + 16 + 8 + 1 = (1111001) b 3) 0.2 * 2 = 0 .4 fractional part MSB: 0 0.4 * 2 = 0 .8 0 0.8 * 2 = 1 .6 1 0.6 * 2 = 1 .2 1 0.2 * 2 = 0 .4 0 0.4 * 2 = 0 .8 0 0.8 * 2 = 1 .6 1 0.6 * 2 = 1 .2 1 Thus 0.2 = (0.00110011) b 4) 0.35 * 2 = 0 .7 fractional part MSB: 0 0.7 * 2 = 1 .4 1 0.4 * 2 = 0 .8 0 0.8 * 2 = 1 .6 1 0.6 * 2 = 1 .2 1 0.2 * 2 = 0 .4 0 0.4 * 2 = 0 .8 0 0.8 * 2 = 1 .6 1 Thus 0.35 = (0.01011001) b 5) Integer part: 12 = 8 + 4 = (1100) b 0.4 * 2 = 0.8 fractional part MSB: 0 0.8 * 2 = 1.6 1 0.6 * 2 = 1.2 1 0.2 * 2 = 0.4 0 0.4 * 2 = 0.8 0 0.8 * 2 = 1.6 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ECEN 248 Fall 2011 2 0.6 * 2 = 1.2 1 0.2 * 2 = 0.4 0 Thus 12.4 = (1100.01100110) b 6.2 (10 points) Write the 5 numbers in 6.1 in hexidecimal.
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/10/2011 for the course ECEN 248 taught by Professor Lu during the Spring '08 term at Texas A&M.

Page1 / 2

hw6_solution - ECEN 248 Fall 2011 Homework 6 Solutions...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online