test1_sum08_sol - ECE 3724 Test #1 Summer 2008 Reese -...

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

View Full Document Right Arrow Icon
-- there 6 pages (3 pages front/back) You may NOT use a calculator. You may use only the provided reference materials. For problems in part II, assume initial memory contents as shown below at the start of EACH instruction. Explain what register/memory location is modified, and give the FINAL HEX value of the modified register/memory location, and the final status of the C, Z flags. Part I: (16 pts) a. Give the machine code in HEX for the instruction mov W5,0x8A 0x880455 b. After power-up, what memory location contains the first executed instruction for the PIC24 microcontroller? Location zero (0x000000), which contains a ‘goto 0x200’ which is the start of the user program. c. How many instruction cycles does it take to execute the following instructions on the PIC24? With a 40 MHz clock, how long does it take to execute the following instructions? (give the answer in nanoseconds ). For reference, 1 MHz has a period = 1 us = 1000 ns. mov 0x800, WREG add 0x802 goto THERE 1 + 1 + 2 = 4 instruction cycles. Each cycle is 50 nanoseconds, so 4 x 50 = 200 ns d. What memory on the PIC24 microcontroller is non-volatile and what does it contain? Program memory, contains instructions.
Background image of page 1

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

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

This document was uploaded on 09/15/2009.

Page1 / 6

test1_sum08_sol - ECE 3724 Test #1 Summer 2008 Reese -...

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

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