EE319K_EXAM3_A_2004

EE319K_EXAM3_A_2004 - EE319K Fall 2004 Quiz 3A Page 1 First...

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

View Full Document Right Arrow Icon
EE319K Fall 2004 Quiz 3A Page 1 Jonathan W. Valvano November 19, 2004 11:00am-11:50am First:________________ Middle Initial: _____ Last:____________________ This is a closed book exam. You must put your answers on this piece of paper only. You have 50 minutes, so allocate your time accordingly. Please read the entire quiz before starting. (5) Question 1. Digital value (5) Question 2. Baud rate in bits/sec (25) Question 3. Show subroutine (5) Question 4. Show the code (5) Question 5. List variables A,B,C,D,E,F,G (5) Question 6. List variables A,B,C,D,E,F,G
Background image of page 1

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

View Full Document Right Arrow Icon
EE319K Fall 2004 Quiz 3A Page 2 Jonathan W. Valvano November 19, 2004 11:00am-11:50am (5) Question 7. Give value of xxx (5) Question 8. Give value of xxx (5) Question 9. Specify A, B, C, D, E (5) Question 10. Give the output sequence (5) Question 11. Give instruction for yyy (5) Question 12. Give value of zzz (5) Question 13. Specify A, B, C, D, E (5) Question 14. Give R 1 in ohms (5) Question 15. Specify A, B, C, D, E
Background image of page 2
EE319K Fall 2004 Quiz 3A Page 3 Jonathan W. Valvano November 19, 2004 11:00am-11:50am (5) Question 1. An analog voltage of 1.25 V is placed on the ADC input pin. What digital value results from the 10-bit unsigned right-justified ADC conversion? (5) Question 2. A serial port is configured to run with a bandwidth of 1000 bytes/sec. The protocol is 8-bit data, 1 stop, and no parity. What is the baud rate of this port in bits/sec? (15) Question 3. The SCISR1 register contains the TDRE and RDRF flags The SCIDRL register serial input/output data. Write a subroutine that inputs a CR-terminated string from the keyboard. For each character, it waits for new input using busy-wait (gadfly) synchronization. The subroutine uses call by reference parameter passing with RegY. When CR is typed, save the CR in the string and return. You don’t need to write the initialization ritual. CR equ 13 ; return SCISR1 equ $00CC ; SCI Status Register 1 SCIDRL equ $00CF ; SCI Data Register Low (5) Question 4. Write assembly code that allocates a 16-bit signed local variable with an initial value of 50? Consider the following C program. static short A=4; const short B=5; volatile short C=6; void function(const short D, short E){ static short F=7; short G=8; } (5) Question 5. List all the variables in the above C program are stored in ROM?
Background image of page 3

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

View Full Document Right Arrow Icon
EE319K Fall 2004 Quiz 3A Page 4 Jonathan W. Valvano November 19, 2004 11:00am-11:50am (5) Question 6. List all the variables in the above C program are local (stored temporarily on the stack or in a register)? (5) Question 7. Consider the following assembly subroutine that creates a local variable called buff of size 25 bytes. buff set xxx ; binding sub1 pshx ; save register X leas -25,s ; allocate buff ;****body of the subroutine staa buff,s ; store into buff[0] ;****end of body leas 25,s ; deallocate buff pulx ; restore register X rts ; return What value should you use in the xxx position to implement the proper binding of this local variable? (5) Question 8.
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 9

EE319K_EXAM3_A_2004 - EE319K Fall 2004 Quiz 3A Page 1 First...

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

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