Brent Brown wrote: > Consider the method... > > Initialise once only in mainline code: > watchcat = 0xAA > > During ISR: > if watchcat = 0xAA > watchcat = !watchcat (invert the value) > > At end of mainline code: > if watchcat = 0x55 > watchcat = !watchcat > reset watchdog This is rather a convoluted way of saying the interrupt routine sets a flag and the foreground code kicks the dog based on the flag. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist