- Select clock input source using the slcr.WDT_CLK_SEL[SEL] bit:
Ensure that the SWDT is disabled (swdt.MODE[WDEN] =
0) and the clock input source to be selected is running before proceeding with this step. Changing the clock input source when the SWDT is enabled results in unpredictable behavior. Changing the clock input source to a non-running clock results in APB access hang. - Set the timeout period (Counter Control register):
The swdt.CONTROL[CKEY] field must be
0x248to be able to write this register. - Enable the counter; enable output pulses; set up output pulse lengths (Zero Mode
register):
The swdt.MODE[ZKEY] field must be
0xABCto be able to write this register. Ensure that IRQLN meets the specified minimum values. - To run the SWDT with a different setting, disable the timer first (swdt.MODE[ZKEY] bit). Then repeat steps 1, 2, and 3.