hw01_sol

# hw01_sol - LSU EE 2720-2 Homework 1 Solution Due: 21...

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

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: LSU EE 2720-2 Homework 1 Solution Due: 21 September 2011 Solution updated 27 September 2011, 15:30:45 CDT Problem 1: Perform each of the conversions below. Convert 812 10 to Hexadecimal, Binary, and Octal the smart way. The smart way is to convert it to hexadecimal first. From there it is a simple matter to convert the hex to binary and then the binary to octal. Solution 812 10 = 32 c 16 = 11 0010 1100 2 = 1454 8 . Convert 812 16 to decimal. Solution 812 16 = 2066 10 . Convert 812 10 to BCD, Excess-3, and 2421 encoding. Solution BCD: 812 10 = 0x812 = 1000 0001 0010 . Excess-3: 812 10 = 0xb45 = 1011 0100 0101 . In 2421 encoding: 812 10 = 0xe12 = 1110 0001 0010 . Convert- 812 10 to 12-bit: signed magnitude, 2’s complement, and 1’s complement represen- tations. Solution: Signed-magnitude 812 10 = 1011 0010 1100 , 2’s complement 812 10 = 1100 1101 0100 , 1’s complement 812 10 = 1100 1101 0011 . Convert the 8-bit quantity 1010 0101 to decimal assuming it is: binary unsigned, 2’s comple- ment signed, 1’s complement signed, and BCD unsigned. If the quantity 1010 0101 is not a valid number in any of these representation, then use “not valid” as your answer instead of the decimal number....
View Full Document

## This note was uploaded on 11/23/2011 for the course EE 2270 taught by Professor Staff during the Fall '09 term at LSU.

### Page1 / 3

hw01_sol - LSU EE 2720-2 Homework 1 Solution Due: 21...

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

View Full Document
Ask a homework question - tutors are online