20.4.1 Initialization

Normal Mode

Before the WDT is enabled in Normal mode, it must be configured by following these steps:
  1. Select the time-out period by writing the Time-Out Period bit field in the Configuration register (CONFIG.PER).
  2. Enable the WDT by writing the Enable bit in the Control A register (CTRLA.ENABLE).

Window Mode

Before the WDT is enabled in Window mode, it must be configured by following these steps:
  1. Select the time-out period by writing the Time-Out Period bit field in the Configuration register (CONFIG.PER).
  2. Select the closed window period by writing the Window Mode Time-Out Period bit field in the Configuration register (CONFIG.WINDOW).
  3. Enable the Window mode by writing a ‘1’ to the Window Enable bit in the Control A register (CTRLA.WEN).
  4. Enable the WDT by writing the Enable bit in the Control A register (CTRLA.ENABLE).