Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top