At 08:33 PM 6/23/2004, adastra wrote: >This is inside an ISR and is intended to set a flag and clear a register >after counting down a number of TMR0 overflows. I see 2 possible problems: you don't appear to clear the TMR0 interrupt flag (T0IF), and you end the routine with instead of . dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 20 years of Engineering Innovation (1984 - 2004) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu