EE319K_EXAM1_B_SOL_2010_FALL

EE319K_EXAM1_B_SOL_2010_FALL - EE319K Fall 2010 Exam 1B...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
EE319K Fall 2010 Exam 1B Solution Page 1 Jonathan W. Valvano October 1, 2010 10:00am-10:50am (5) Question 1. The format is 8-bit signed. What is the hexadecimal representation of the value -60? First way using basis. -128 needed -60+128 = 68, 64 needed 68-64 = 4, 4 needed. Binary is 11000200, which is $C4. Second way, first calculate +60 = 32+16+8+4, which in binary is 00111100. Next complement 11000011, then add one 11000100 = $C4. (5) Question 2. Which of the following techniques can be used to handle the problem of overflow? E) Implement ceiling and floor. G) Use promotion. (5) Question 3. Consider the following two instructions ldab #250 subb #-2 To determine the overflow (V) bit, first convert both to signed -128 to +127 ldab #-6 subb #-2 -6 – (-2) is -4, so V=0 To determine the carry (C) bit, first convert both to unsigned 0 to +255 ldab #250 subb #254 250-254 is -4, so C=1 (10) Question 4. For the circuit, see Figure 2.17 (b). The desired operating point is 2.6V at 10 mA. Ω
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/03/2010 for the course EE 319K taught by Professor Bard during the Spring '08 term at University of Texas at Austin.

Ask a homework question - tutors are online