MCBSTM32EXL Keil, MCBSTM32EXL Datasheet - Page 405

no-image

MCBSTM32EXL

Manufacturer Part Number
MCBSTM32EXL
Description
BOARD EVALUATION FOR STM32F103ZE
Manufacturer
Keil
Datasheets

Specifications of MCBSTM32EXL

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
RM0008
Note:
Figure 159. Watchdog block diagram
The application program must write in the WWDG_CR register at regular intervals during
normal operation to prevent an MCU reset. This operation must occur only when the counter
value is lower than the window register value. The value to be stored in the WWDG_CR
register must be between 0xFF and 0xC0:
The T6 bit can be used to generate a software reset (the WDGA bit is set and the T6 bit is
cleared).
Enabling the watchdog:
The watchdog is always disabled after a reset. It is enabled by setting the WDGA bit in
the WWDG_CR register, then it cannot be disabled again except by a reset.
Controlling the downcounter:
This downcounter is free-running: It counts down even if the watchdog is disabled.
When the watchdog is enabled, the T6 bit must be set to prevent generating an
immediate reset.
The T[5:0] bits contain the number of increments which represents the time delay
before the watchdog produces a reset. The timing varies between a minimum and a
maximum value due to the unknown status of the prescaler when writing to the
WWDG_CR register (see
The Configuration register (WWDG_CFR) contains the high limit of the window: To
prevent a reset, the downcounter must be reloaded when its value is lower than the
window register value and greater than 0x3F.
watchdog process.
Another way to reload the counter is to use the early wakeup interrupt (EWI). This
interrupt is enabled by setting the EWI bit in the WWDG_CFR register. When the
downcounter reaches the value 40h, this interrupt is generated and the corresponding
interrupt service routine (ISR) can be used to reload the counter to prevent WWDG
reset.
This interrupt is cleared by writing '0' to the EWIF bit in the WWDG_SR register.
RESET
PCLK1
(from RCC clock controller)
Write WWDG_CR
T6:0 > W6:0
comparator
= 1 when
Doc ID 13902 Rev 9
Figure
Watchdog configuration register (WWDG_CFR)
WDGA
-
160).
CMP
W6
T6
Watchdog control register (WWDG_CR)
W5
T5
Figure 160
6-bit downcounter (CNT)
W4
WDG prescaler
T4
(WDGTB)
W3
T3
describes the window
Window watchdog (WWDG)
W2
T2
W1
T1
W0
T0
405/995

Related parts for MCBSTM32EXL