Other Parts Discussed in Thread: CC2538
Hello Team Zigbee,
According to the CC2538 Users Guide (swru319), once the Watchdog has been enabled, it cannot be disabled (see snip below). Is this really the case?
"14.1 Watchdog Timer
The WDT is disabled after a system reset. To start the WDT in watchdog mode, set the EN bit in the
SMWDTHROSC_WDCTL register to 1, and the MODE bit in the SMWDTHROSC_WDCTL register to 0.
The watchdog timer counter then starts incrementing from 0. When the timer is enabled in watchdog
mode, it is not possible to disable the timer. Therefore, setting the EN bit in the SMWDTHROSC_WDCTL
register to 0 has no effect if the WDT is already operating in watchdog mode."
One thing that is not clear to me is whether (or not), the watchdog could possibly be switched to an “interval” mode to prevent resetting the device.. thereby "~disabling" the watchdog.
The Users Guide states "14.1 Watchdog Timer- The WDT is disabled after a system reset. To start the WDT in watchdog mode, set the EN bit in the SMWDTHROSC_WDCTL register to 1, and the MODE bit in the SMWDTHROSC_WDCTL register to 0."..
But it seems that there is no "MODE" bit defined in the SMWDTHROSC_WDCTL register.. just bits called "RESERVED, CLEAR, EN & INT". Can this ~hidden MODE bit be used to put the watchdog into an interval (and not watchdog) timing mode?
Thanks, Merril
14.1 Watchdog Timer
The WDT is disabled after a system reset. To start the WDT in watchdog mode, set the EN bit in the
SMWDTHROSC_WDCTL register to 1, and the MODE bit in the SMWDTHROSC_WDCTL register to 0.
But seems that there is no MODE bit defined in this register..(See register snip bleow)