Is it possible to get and set the WDT count value?
Posted: Fri Mar 30, 2012 7:30 am
I was wondering how to get and set the WDT count as I get and set the timer0 count with the get_timer0() and set_timer0([number to be setted]) functions. I'm not asking to set the pre-scaler nor the time that lasts until it resets. I'm having a problem that when I make the PIC sleep and it receives an interruption it's reseting the WDT and the sleep which should last for example for one minute its lasting longer because the WDT was reseted by the interruption.
Thank you very much.
rsegecin
Joined: 23 Aug 2011 Posts: 12
It's not possible
Posted: Fri Mar 30, 2012 8:40 am
• If the interrupt occurs during or after the execution of a SLEEP instruction, the device will immediately wake-up from Sleep. The SLEEP
instruction will be completely executed before the wake-up. Therefore, the WDT and WDT prescaler and postscaler (if enabled) will be cleared, the TO bit will be set and the PD bit will be cleared.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum