
RM0453 Rev 2
977/1454
RM0453
Independent watchdog (IWDG)
983
30.3.3 Hardware
watchdog
If the “Hardware watchdog” feature is enabled through the device option bits, the watchdog
is automatically enabled at power-on, and generates a reset unless the
is written by the software before the counter reaches end of count or if the
downcounter is reloaded inside the window.
30.3.4 Low-power
freeze
Depending on the IWDG_STOP and IWDG_STBY options configuration, the IWDG can
continue counting or not during the Stop mode and the Standby mode, respectively. If the
IWDG is kept running during Stop or Standby modes, it can wake up the device from this
mode. Refer to
User and read protection option bytes
for more details.
30.3.5 Register
access
protection
IWDG prescaler register (IWDG_PR)
,
IWDG reload register (IWDG_RLR)
and
IWDG window register (IWDG_WINR)
is protected. To modify them, the user must first
write the code 0x0000 5555 in the
. A write access to this
register with a different value breaks the sequence and register access is protected again.
This is the case of the reload operation (writing 0x0000 AAAA).
A status register is available to indicate that an update of the prescaler or of the
downcounter reload value or of the window value is ongoing.
30.3.6 Debug
mode
When the CPU1 enters Debug mode (core halted), the IWDG counter either continues to
work normally or stops, depending on the configuration of the corresponding bit in
DBGMCU freeze register.