- Defines the programmable prescaler value for the watchdog This select's the time-out period (period until the down-counter underflows) among 1024, 4096, 8192, or 16384 cycles, with taking the count clock specified by #define IWDG_CLOCK as one cycle. The combination of the settings of the IWDG_PRESCALER and IWDG_CLOCK determines the time (in cycles of the LOCO) for the counter to underflow after being refreshed.
- Defines the programmable prescaler value for the watchdog This select's the time-out period (period until the down-counter underflows) among 1024, 4096, 8192, or 16384 cycles, with taking the count clock specified by #define IWDG_CLOCK as one cycle. The combination of the settings of the IWDG_PRESCALER and IWDG_CLOCK determines the time (in cycles of the LOCO) for the counter to underflow after being refreshed.
@details- Refer below table for the values of the minimum & maximum timeout periods in case OCOCLK = 125Khz
| | | | Prescaler | Max Timeout |
| Value | |
| 0 | 15.9ms |
| ----------— | ------------— |
| 1 | 31.9ms |
| ----------— | ------------— |
| 2 | 63.7ms |
| ----------— | ------------— |
| 3 | 127ms |
| ----------— | ------------— |
- Parameters
-
| - | 0 / 1 / 2 / 3 Please refer the table in the Details section |
#define IWDG_PRESCALER 0 //Watchdog timeout is 1024 cycles #define IWDG_PRESCALER 1 //Watchdog timeout is 4096 cycles #define IWDG_PRESCALER 2 //Watchdog timeout is 8192 cycles #define IWDG_PRESCALER 3 //Watchdog timeout is 16384 cycles