SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
The Watchdog Timer (WDT) is used to regain control when the system has failed due to a software error or due to the failure of an external device to respond in the expected way specifically during standby. This WDT generates a reset when a time-out value is reached. Writing to CKMD.WDTCNT starts the counter, which starts counting down from the written value on every LFCLK. The WDT relies on a working LFCLK. The WDT will stop working if LFCLK is lost. In the case of a LFCLK loss, the device can be reset by the LF loss detection feature. See Section 6.7.2 for additional details.
If the CKMD.WDTCNT register is written with a new value while the WDT counter is counting, then the counter is loaded with the new value and continues counting. If CKMD.WDTTEST[0] STALLEN is set, the counter can stall when the microcontroller asserts the CPU Halt flag during debug.
To prevent the WDT configuration from being inadvertently altered by software, the write access to the watchdog registers is automatically locked by writing the CKMD.WDTLOCK register to any value. To unlock the WDT, write the CKMD.WDTLOCK register to the value 0x1ACCE551.
The WDT can be configured using the following sequence: