PIC- Creating a particular frequency from the internal oscillator

Status
Not open for further replies.
10 ms TMR0

500ms TMR1

50ms TMR2

The problem is these timers are in the interrupt service routine and do not run regularly
 
So you don't think you could derive a 10-msec, a 50-msec, a 500-msec, or a 1-second interval, when needed, from a single timer generating a 10-msec interrupt?
 
Last edited:
Hi,

That's what i would think too. Try to consolidate your timers and see if you can generate all the times you need. If all of the timers are in the INT service routine then maybe you can consolidate those timers into one timer and then that will free up a timer to use for the 1 second 'constant' timer.
It's going to take a little code rewriting of course.
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…