| Electronic Components Datasheet Search |
|
UM0097 Datasheet(PDF) 97 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0097 Datasheet(HTML) 97 Page - STMicroelectronics |
|
97 / 229 page ![]() UM0097 Peripheral firmware overview 97/229 WDG_CntRefresh Example: This example illustrates how to refresh the watchdog counter. { ... WDG_CntRefresh (); ... } WDG_PrescalerConfig Example: This example illustrates how to set the prescaler value. { ... WDG_PrescalerConfig (0x62); ... } Function Name WDG_CntRefresh Function Prototype void WDG_CntRefresh (void); Behavior Description This routine is used to refresh the counter to prevent a reset being generated by the Watchdog. It writes 0xA55A then 0x5AA5 in the key register. Input Parameter None Output Parameter None Return Value None Required preconditions None Called Functions None Function Name WDG_PrescalerConfig Function Prototype void WDG_PrescalerConfig (u8 Prescaler); Behavior Description This routine is used to set the the counter prescaler value. The clock to Timer Counter is divided by (Prescaler + 1) Input Parameter Prescaler: specifies the prescaler value (8 bit). Output Parameter None Return Value None Required preconditions None Called Functions None |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |