Quote Originally Posted by PicLearner View Post
For example using 16bit timer with a prescaler 1:1 it would interrupt approximately 30 times per second and using prescaler 1:2 it should interrupt approximately 60 times. Is it correct?
Nope...

Scaler = Divider, prescaler = predivider, postscaler = postdivider

I was just reading thread about instruction execution time by Darrel Taylor and after testing I can easily calculate what it takes to do ADC, CCP, etc. Probably I can even make a simple software clock and add to the clock execution time to compensate missing nanoseconds/milliseconds. I think interrupt clock is much easier and faster to write but what would you recommend interrupt or software clock?
Must've missed my suggestion to search for PIC Multi-Calc...
If you're using interrupts, you don't have to count the ADC, the CCP, any of that. The interrupt will INTERRUPT every xxx microseconds (or instruction cycles, whatever) and run the interrupt subroutine. Look in the PBP manual under ON INTERRUPT, or if you're feeling froggy, search here for Instant Interrupts.
And think about this...do you really need an exact 1 second interrupt? I'd just concentrate on getting it all working first, then add in some interrupt routines.