ECE-567-06

ECE-567-06 - Week 6 Week Quiz 2 Solutions . (3 points) iven...

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

View Full Document Right Arrow Icon
Week 6 Week 6
Background image of page 1

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

View Full DocumentRight Arrow Icon
SU 2005 ECE 567 Microprocessor Labs 2 5- 1. (3 points) Given EVB E-Clock frequency = 2 MHz: a.Calculate the timing delay for the following subroutine for n = 13, from the start of the subroutine (DELAY) until execution is returned to the calling program. You must justify your answer. Calculate the range of timing delay (min and max) possible for the same set of instructions Min when n = 1 Max when n = 65535 = 2 16 -1 Delay = 9us Delay = 327.679ms Quiz 2 Solutions Quiz 2 Solutions us MHz Delay Cycles n Cycles period Clock E Delay n n Cycles 69 138 2 1 138 13 * 10 8 13 * _ 10 8 5 ) 3 2 2 3 ( 3 = = = + = = - = + = + + + + + =
Background image of page 2
SU 2005 ECE 567 Microprocessor Labs 3 5- Quiz 2 Solutions Quiz 2 Solutions 2. (2 points) What are the contents of the memory map from $0100 - $0104 and the content of register A after execution of the following set of instructions: ORG $150 $0150 = $92 FCB $92 $0151 = $0B FCB $0B $0152 = $00 FCB $00 $0153 = $64 FCB $64 $0154 = $0E FCB $E A = $64 FCB $42 LDX #$150 INX LDAA $2, X
Background image of page 3

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

View Full DocumentRight Arrow Icon
SU 2005 ECE 567 Microprocessor Labs 4 5- Quiz 2 Solutions Quiz 2 Solutions 3 (2 points) The input to my pre-scalar is 7 MHz . The pre-scalar has been set to divide by 8 . Value of my output compare register (TOC2) is $700. At that instant, the value of my free running timing counter register (TCNT) is 0. How much time will elapse before TCNT equals TOC2 (TCNT=TOC2=$700)? Elapsed time = 8.2ms ms kHz ed EClockScal Delay kHz MHz escale EClock ed EClockScal MHz MHz Xtal EClock MHz Xtal 2 . 8 1792 75 . 218 1 700 $ 1 75 . 218 8 75 . 1 Pr 75 . 1 4 7 4 7 = = = = = = = = = =
Background image of page 4
SU 2005 ECE 567 Microprocessor Labs 5 5- Quiz 2 Solutions Quiz 2 Solutions 4 (3 points) a. Write a small program (hint: only one instruction) to mask off bits 0, 1, and 2 of
Background image of page 5

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

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

Page1 / 26

ECE-567-06 - Week 6 Week Quiz 2 Solutions . (3 points) iven...

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

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