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.The above have been tested on an 18F4431 (actual hardware) and it does work.Code:TMR0CON = %10000111
/Henrik.
Bookmarks