Quiz3F06 - EE319K Fall 2006 Quiz 3A Page 1 First:_ Middle...

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

View Full Document Right Arrow Icon
EE319K Fall 2006 Quiz 3A Page 1 Jonathan W. Valvano December 1, 2006 10:00am-10: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. (5) Question 2. (5) Question 3. (5) Question 4. (5) Question 5. (5) Question 6. (5) Question 7. (5) Question 8. (5) Question 9. (10) Question 10. Pulse bset PTT,#1 ; send pulse on PT0 bclr PTT,#1 rts
Background image of page 1

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

View Full DocumentRight Arrow Icon
EE319K Fall 2006 Quiz 3A Page 2 Jonathan W. Valvano December 1, 2006 10:00am-10:50am (15) Question 11. Convert (5) Question 12. (15) Question 13. calc ;short calc(void){ ;short sum,n; ;n = 100; ;sum = 0; ;do{ sum = sum+n; ;} while(--n); ;return(sum);}
Background image of page 2
EE319K Fall 2006 Quiz 3A Page 3 Jonathan W. Valvano December 1, 2006 10:00am-10:50am This Fifo queue can hold up to eight 8-bit data values, and the picture shows it currently is holding three values (shaded). (5) Question 1. What value is returned if we were to call Fifo_Get at this point? (5) Question 2. Next, assume we call Fifo_Put . What will be the new PutPt after we call Fifo_Put ? Questions 3 and 4 involve the following assembly program involving a stack frame. main lds #$4000 ldaa #100 psha ; pass 8-bit in parameter on stack jsr sub2 leas 1,s ; balance stack here bra here data set xxx ; binding of 8-bit local variable in set yyy ; binding of 8-bit input parameter sub2 pshx ; save register X des ; allocate 8-bit local variable called data tsx ; RegX stack frame ;****body of the subroutine ldab in ,x ; get a copy of in parameter stab data ,x ; store into local variable data ;****end of body ins ; deallocate data pulx ; restore register X rts ; return (5) Question 3. What value should you use in the xxx position to implement the binding of the local variable, data ? (5) Question 4. What value should you use in the yyy position to implement the binding of the parameter, in ? (5) Question 5. Specify the resistor value for R 1 , assuming LED current I d is 1 mA, the LED voltage V d is 2.5 V, and the gate output voltage V OL is 0.5V. (5) Question 6. Which three events cause an interrupt to occur? Specify three letters in any order. A) The software disarms the interrupt (e.g., RTIE=0) B) The I bit in the CCR is set C) The I bit in the CCR is clear D) The software arms the interrupt (e.g., RTIE=1) E) The software acknowledges the interrupt, clearing the flag (e.g., RTIF=0) F) The software sets the flag bit (e.g., RTIF=1) G) The hardware sets the flag bit (e.g., RTIF=1) H) The hardware acknowledges the interrupt, clearing the flag (e.g., RTIF=0) $3900 $3901 $3902 $3903 $3904 $3905 $3906 $3907 Address Contents $00 $01 $02 $12 $56 $78 $34 $66 GetPt PutPt
Background image of page 3

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

View Full DocumentRight Arrow Icon
EE319K Fall 2006 Quiz 3A Page 4 Jonathan W. Valvano December 1, 2006 10:00am-10:50am (5) Question 7. Consider a 10-bit ADC with a range of -10 to +10V. What is the approximate resolution of this ADC? Give units.
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.

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

Page1 / 8

Quiz3F06 - EE319K Fall 2006 Quiz 3A Page 1 First:_ Middle...

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