/* Set Window value to 126; WWDG counter should be refreshed only when the counter
is below 126 (and greater than 1) otherwise a reset will be generated */
WWDG_SetWindowValue(126);
/*
Enable WWDG and set counter value to 126, WWDG timeout = ~455 us * 1 = 455 us
In this case the refresh window is: ~455 us * (127-126) = 455 us < refresh window < ~455us * 64 = 2.912ms
*/
WWDG_Enable(127); while (1) {
窗口看门狗不能一个劲的喂。
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
参考手册图184
详情回复
发表于 2016-9-18 14:48
窗口看门狗不能一个劲的喂。
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
参考手册图184