Quiz3F05sol - EE319K Fall 2005 Solution to Quiz 3 Solution...

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

View Full Document Right Arrow Icon
EE319K Fall 2005 Solution to Quiz 3 Jonathan W. Valvano Solution A (5) Question 1. const (5) Question 2. static (5) Question 3. $1234 (5) Question 4. $3800 SP-> data -2,x RegX-> oldX 0,x Ret 2,x in 4,x (5) Question 5. xxx = -2 (5) Question 6. yyy = 4 (5) Question 7. 5V/1024 = 5mV (5) Question 8. minimally intrusive (5) Question 9. stabilization (5) Question 10. Stop,Run (5) Question 11. staa PTT (5) Question 12. ldaa 0,x (5) Question 13. ldx 1,x (5) Question 14. (5-1.5-0.5)/0.002 = 1500 (10) Question 15. ADC_In movb #$84,ATDCTL5 loop ldaa ATDSTAT0 bpl loop ldx ATDDR0 rts (10) Question 16. ;SP-> ret 0,s ; ptr 2,s ptr set 2 SCI_Out ldx ptr,s loop ldaa 1,x+ ;data beq done ;null? wait ldab SCISR1 ;tdre bpl wait staa SCIDRL bra loop done rts (10) Question 17. SWIhan movw TCNT,3,sp ;place return value on stack rti org $FFF6 fdb SWIhan Jonathan Valvano Solution B (5) Question 1. volatile (5) Question 2. static (5) Question 3. $ABCD (5) Question 4. $3900 SP-> data -1,x RegX-> oldX 0,x Ret 2,x in 4,x (5) Question 5. yyy = 4 (5) Question 6. xxx = -1 (5) Question 7. 2.5V/256 = 10mV (5) Question 8. monitor (5) Question 9. intrusive (5) Question 10. 10 (5) Question 11. staa PTT (5) Question 12.
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern