ANSFB - E C E 4 1 7 5 B F in a l 5-5-1 0 E I GH T PR O B L...

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

View Full Document Right Arrow Icon
ECE 4175B Final 5-5-10 1 of 3 High 107 EIGHT PROBLEMS Upper quarter 88 Open book, open notes Median 78 Lower quarter 68 Low 53 1. Assume that you have set up the “extended input capture” mode described on the back of the review sheet for this final exam using the CCP1/Timer1 combination plus a RAM variable, TMR1X to capture a 24-bit [10%] time stamp when a rising edge occurs on the CCP1 input pin. When this edge occurs, assume that once the high-priority interrupt service routine has been called, both the TMR1IF flag and the CCP1IF flag are set. a. W hat does this indicate? An input edge occurred at about the same time that Timer1 rolled over from FFFF to 0000. b. Under what circumstances does the time stamp consist of the content of TMR1X:CCPR1H:CCPR1L as they are at the moment that the high-priority interrupt service routine is entered with both flags set? Explain your answer. If the time captured was before Timer1 rolled over (tested by the most-significant bit of CCPR1H = 1). c. On the other hand, under what circumstances does the time stamp not consist of the content of TMR1X:CCPR1H:CCPR1L as they are at the moment that the high-priority interrupt service routine is entered with both flags set? Explain your answer. If the time captured was when Timer1 = 0000 or later (tested by MSb of CCPR1H = 0). 2. For their design project, one team used the output from a two-axis accelerometer to control the pixel-by- pixel movement of an “etch-a-sketch” display on the 24x2 character LCD. One axis of the output [15%] controlled vertical movement of the sketch, turning on a pixel either above or below the last pixel (for up to sixteen vertical pixel positions). The other axis output controlled horizontal movement, adding to the figure by turning on the next pixel to the left or right. They used an Nx2 block of character positions to contain their otherwise arbitrary display of turned on pixels. a. How big a block of Nx2 character positions of their LCD could they define for this use? N = 4 so Nx2 = 8 since there are just eight user-defined characters available b. To implement this display, they employed the LCD’s user-defined character capability with a table stored in RAM to hold the characters. How many bytes of RAM were required for this table?
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.
  • Spring '08
  • PEATMAN
  • Trigraph, user-d efined character, service ro utine, high-prio rity, cursor-position control character, interrupt service ro

{[ 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