{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Quiz3F03 - EE319K Fall 2003 Quiz 3 Page 1 First Middle...

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

View Full Document Right Arrow Icon
EE319K Fall 2003 Quiz 3 Page 1 Jonathan W. Valvano November 21, 2003 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. Number of decimal digits (5) Question 2. Decimal value (2) Part 3a. Specify RegB (2) Part 3b. Specify 0 or 1 (1) Part 3c. Specify 0 or 1 (5) Question 4. Choose A-E (5) Question 5. Show the machine code (5) Question 6. Show assembly (5) Question 7. Simplified memory cycles (you may or may not need all 5 entries) R/W Addr Data
Image of page 1

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

View Full Document Right Arrow Icon
EE319K Fall 2003 Quiz 3 Page 2 Jonathan W. Valvano November 21, 2003 11:00am-11:50am (5) Question 8. Choose A-G (5) Question 9. Give value of number (5) Question 10. Effective address (5) Question 11. Give op code (5) Question 12. Number of bytes/sec (5) Question13. Choose A, B, C or D. (5) Question 14. Matrix equation (5) Question 15. ADC conversion (5) Question 16. LED equation (5) Question 17. List all registers (5) Question 18. Choose A-E (5) Question 19a) Choose A-F (5) Question 19b) Choose A-F
Image of page 2
EE319K Fall 2003 Quiz 3 Page 3 Jonathan W. Valvano November 21, 2003 11:00am-11:50am (5) Question 1. The measurement system range is 0 to 1999. How many decimal digits is it? (5) Question 2. What is the unsigned decimal equivalent of the 8-bit hexadecimal $A5? (5) Question 3. Consider the result of executing the following two 6812 assembly instructions. ldab #100 addb #200 (2) Part a) What is the value in Register B after these two instructions are executed? Give your answer in unsigned decimal (0 to 255). (2) Part b) What will be the value of the carry (C) bit? (1) Part c) What will be the value of the overflow (V) bit? (5) Question 4. Which instruction reads the 16-bit TCNT register? A ldaa TCNT B. ldab TCNT C. std TCNT D. read TCNT E. ldy TCNT (5) Question 5. Show the machine code for the following the instruction ldy 2,sp+ (5) Question 6. Write friendly assembly code that makes PORTT bit 6 an output. You may assume the following two definitions. PORTT equ $00AE DDRT equ $00AF (5) Question 7. Give the simplified memory cycles produced when the following one instruction is executed. Assume the PC contains $F000, Register Y contains $0900, each memory location from $0000 to $0BFF contains a value equal to the least significant byte of its address. I.e., $0000 contains $00, $0001 contains $01, etc. Just show R/W=Read or Write, Address, and Data for each cycle. $F000 DD00 ldy 0 (5) Question 8. What is the effect of executing these two instructions? pshd pulx Choose one of the following: A) “ Read from unimplemented I/O port B) “ Read from uninitialized RAM address C) “ Read from unprogrammed ROM address D) “ Assembly syntax error E) Value of Reg D is copied to Reg X F) Value of Reg X is copied to Reg D G) Values of Reg D and Reg X are exchanged
Image of page 3

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

View Full Document Right Arrow Icon
EE319K Fall 2003 Quiz 3 Page 4 Jonathan W. Valvano November 21, 2003 11:00am-11:50am (5) Question 9. A signed 16-bit binary fixed point number system has a resolution of 1/4.
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 ]}

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