EE319K_EXAM1_A_SOL_2010_FALL

EE319K_EXAM1_A_SOL_2010_FALL - EE319K Fall 2010 Exam 1A...

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

EE319K Fall 2010 Exam 1A 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 -50? First way using basis. -128 needed -50+128 = 78, 64 needed 78-64 = 14, 8 needed 14-8 = 6, 4 needed 6-4=2, 2 needed. Binary is 11001110, which is \$CE. Second way, first calculate +50 = 32+16+2, which in binary is 00110010. Next complement 11001101, then add one 11001110 = \$CE. (5) Question 2. Which of the following techniques can be used to handle the problem of overflow? D) Implement ceiling and floor. F) Use promotion. (5) Question 3. Consider the following two instructions ldab #-2 subb #250 To determine the overflow (V) bit, first convert both to signed -128 to +127 ldab #-2 subb #-6 -2 – (-6) is +4, so V=0 To determine the carry (C) bit, first convert both to unsigned 0 to +255 ldab #254 subb #250 254-250 is 4, so C=0 (10) Question 4. For the circuit, see Figure 2.17 (b). The desired operating point is 2.5V at 20 mA.
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.

Ask a homework question - tutors are online