EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 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 #578 background imageLoading...
Page #578 background image
Window watchdog (WWDG)
UM1581
578/584
DocID023800 Rev 1
24.2.2 How to use this driver
1. Enable WWDG clock using RCC_APB1PeriphClockCmd(RCC_APB1Periph_WWDG,
ENABLE) function.
2. Configure the WWDG prescaler using WWDG_SetPrescaler() function.
3. Configure the WWDG refresh window using WWDG_SetWindowValue() function.
4. Set the WWDG counter value and start it using WWDG_Enable() function. When the
WWDG is enabled the counter value should be configured to a value greater than
0x40 to prevent generating an immediate reset.
5. Optionally you can enable the Early wakeup interrupt which is generated when the
counter reach 0x40. Once enabled this interrupt cannot be disabled except by a
system reset.
6. Then the application program must refresh the WWDG counter at regular intervals
during normal operation to prevent an MCU reset, using WWDG_SetCounter()
function. This operation must occur only when the counter value is lower than the
refresh window value, programmed using WWDG_SetWindowValue().
24.2.3 Prescaler, Refresh window and Counter configuration functions
ï‚· WWDG_DeInit()
ï‚· WWDG_SetPrescaler()
ï‚· WWDG_SetWindowValue()
ï‚· WWDG_EnableIT()
ï‚· WWDG_SetCounter()
24.2.4 WWDG activation function
ï‚· WWDG_Enable()
24.2.5 Interrupts and flags management functions
ï‚· WWDG_GetFlagStatus()
ï‚· WWDG_ClearFlag()
24.2.6 Prescaler, Refresh window and Counter configuration functions
24.2.6.1 WWDG_DeInit
Function Name
void WWDG_DeInit ( void )
Function Description
Deinitializes the WWDG peripheral registers to their default reset
values.
Parameters
ï‚· None.
Return values
ï‚· None.
Notes
ï‚· None.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals