Michael J. Ghormley wrote: > So, if I understand this correctly, I would write: > > ; load W first so that prescaler takes effect ASAP > MOVLW 0x005 ; the value for a 1:32 prescaler for the WDT > CLRWDT ; resets the WDT and clears the prescaler > IORW OPTION,F ; reset the prescaler bits to 1:32 I'm not sure what you are considering here. If you are going to fiddle with the WDT, you do a CLRWDT before you fiddle with it, to make sure it wasn't about to time out. It's already a counter, so you have many instruction times, even at 32kHz clock, to perform the "fiddle". It does make sense however, to clear it again just afterward, especially if you have just switched the prescaler over from the counter to the watchdog, as it may be just about to overflow. -- Cheers, Paul B.