piclist-bounces@mit.edu wrote: > Hi, > > On Wed, May 11, 2005 at 04:26:30PM -0400, peiserma@ridgid.com wrote: >> piclist-bounces@mit.edu wrote: >>> TO should be "1" after power-up, CLRWDT or Sleep. >> >> yes. But it should also be '0' after WDT. At least according >> to the datasheet. Hence my confusion. > > Your not confused. On WDT timeout /TO will equal 0. that's what I thought. I'm just not seeing it in the simulator. > When I see something like this happen in MPLAB I just close and > restart the program. I've had to do this plenty of times with MPLAB > 6.x when, for instance, "movlw 0xf4" would be executed and the watch > window would show a completely different value for W. What version of > MPLAB are you using? I'm using version 7.10. I did some experimenting with the simulator this morning and found the /TO bit is '1' following a WDT if: -the device goes to sleep OR -WDT timer expires and simulator is set to 'break on WDT' /TO is correctly '0' if the WDT expires without going to sleep and the simulator is set to 'reset on WDT' This seems to be a simulator issue. Has anyone else observed this? -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist