Example Purpose
This example shows how to use the Windowed Watchdog (WWDG) of the AT32F4xx family.
Supported models:
AT32F4xx full series
1 Quick Use Instructions
1.1 Hardware Resources
AT-START-F403A V1.0 Experimental Board
1.2 Software Resources
This demo takes AT32F403A as an example, and the BSP version is AT32F4xx_StdPeriph_Lib_V1.1.8.
After the demo is reset, the program will configure and enable WWDG, and then continuously feed the dog in the main loop to prevent WWDG from resetting. However, by pressing the key (USER_KEY), the program will enter an infinite loop and cannot feed the dog, which will cause the watchdog to reset. When the watchdog is reset, LED4 will light up.
1.3 Example usage
1) After reset, the program will configure WWDG and feed the dog at regular intervals;
2) Pressing USER_KEY at any time will cause the program to enter an infinite loop and fail to feed the dog;
3) After WWDG reset occurs, the program will restart and LED4 will light up. 9:28 2021/3/28
The sample code source code is as follows
SC00015_AT32F4xx_窗口看门狗的使用.zip
(1.12 MB, downloads: 17)
|