EasyManuals Logo

STMicroelectronics STM32F05 series User Manual

STMicroelectronics STM32F05 series
742 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #463 background imageLoading...
Page #463 background image
RM0091 System window watchdog (WWDG)
Doc ID 018940 Rev 1 463/742
case, the corresponding interrupt service routine (ISR) should reload the WWDG counter to
avoid the WWDG reset, then trigger the required actions.
The EWI interrupt is cleared by writing '0' to the EWIF bit in the WWDG_SR register.
Note: When the EWI interrupt cannot be served, e.g. due to a system lock in a higher priority task,
the WWDG reset will eventually be generated.
22.4 How to program the watchdog timeout
You can use the formula in Figure 194 to calculate the WWDG timeout.
Warning: When writing to the WWDG_CR register, always write 1 in the
T6 bit to avoid generating an immediate reset.
Figure 194. Window watchdog timing diagram
The formula to calculate the timeout value is given by:
where:
t
WWDG
: WWDG timeout
t
PCLK
: APB1 clock period measured in ms
Refer to the datasheet for the minimum and maximum values of the T
WWDG.
ai17101b
W[6:0]
T[6:0] CNT downcounter
Refresh not allowed
0x3F
Refresh allowed
Time
T6 bit
RESET
t
WWDG
t
PCLK1
4096× 2
WDGTB
×
t 5:0[]1+()×= ms()

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the STMicroelectronics STM32F05 series and is the answer not in the manual?

STMicroelectronics STM32F05 series Specifications

General IconGeneral
BrandSTMicroelectronics
ModelSTM32F05 series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals