Quote Originally Posted by HenrikOlsson View Post
Hi,
Bit 3 of TMR0CON needs to be 0 in order to assign the prescaler to TMR0 - I got that backwards in my previous post, you had it correct in your original code.
Code:
TMR0CON = %10000111
The above have been tested on an 18F4431 (actual hardware) and it does work.

/Henrik.
Hi H,

Thanks very much for re-checking. I spend many hours chasing small errors like that. In fact, I couldn't get TMR0 to work because I removed the TIME = 1 with INTCON.TMR0IF = 1, and as the TMR0 is count down not up, this was also backwards. TMR0 is now working.

Thanks, C.