tut-ch5-timer0-Solutions.pdf - 300044 Microcontrollers PLCs(Microcontrollers Solutions to Tutorial Questions \u2013 week 13 Review Problems Chapter 5 1

tut-ch5-timer0-Solutions.pdf - 300044 Microcontrollers...

This preview shows page 1 - 2 out of 2 pages.

1 300044 Microcontrollers & PLCs ( Microcontrollers ) Solutions to Tutorial Questions – week 13 Review Problems - Chapter 5 1. Given a 5 MHz F OSC and a prescaler rate of 1:2, what is the maximum interval in microseconds between two rollovers of Timer0? Solution : The delay formula to be used is cnt clk delay v T p T 0 where clk T 0 is the period of the clock signal for Timer0, delay T is the required delay, cnt v is the number of clock pulses to be counted, and p is the prescaler value. 256 cnt v and 256 , 128 , 64 , 32 , 16 , 8 , 4 , 2 , 1 p . s s MHz T clk 8 . 0 2 . 0 4 5 / 4 0 . Note that 2 p . One can only choose the maximum value 256 cnt v . Thus the interrupt interval is s T v T clk cnt clk 6 . 409 256 2 2 0 0 . 2. Given a 5 MHZ F OSC , it is desired to generate a periodic interrupt as close as possible to 1 ms using Timer0. Determine the prescaler rate and initial count value as well as the actual interrupt period obtained.
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Three '19

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

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors