Files
PY32_Support/Firmware/Projects/PY32F002B-STK/Example/IWDG/IWDG_RESET
2025-02-28 12:32:54 +03:00
..
2025-02-28 12:32:54 +03:00
2025-02-28 12:32:54 +03:00
2025-02-28 12:32:54 +03:00
2025-02-28 12:32:54 +03:00
2025-02-28 12:32:54 +03:00

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
================================================================================
                                样例使用说明
                             Sample Description
================================================================================
功能描述:
此样例演示了IWDG看门狗功能配置看门狗重载计数值计数1s后复位然后通过调整每次
喂狗的时间main函数while循环中代码可以观察到如果每次喂狗时间小于1s钟程序
能一直正常运行LED灯闪烁如果喂狗时间超过1s钟程序会一直复位LED灯熄灭。

Function descriptions:
This example demonstrates the IWDG watchdog function, configuring the watchdog 
overload count value, resetting after counting for 1 second, and then adjusting 
each time The feeding time of the dog (code in the main function while loop)
can be observed that if the feeding time is less than 1 second each time, the 
program Can continue to operate normally (LED flashing), if the dog feeding 
time exceeds 1 second, the program will continue to reset (LED light off).
================================================================================
测试环境:
测试用板PY32F002B_STK
MDK版本 5.28
IAR版本 9.20

Test environment:
Test board: PY32F002B_STK
MDK Version: 5.28
IAR Version: 9.20
================================================================================
使用步骤:
1. 编译下载程序到MCU并运行
2. 可观察到LED能正常亮起
3. 修改程序main函数while循环中注释代码配置喂狗时间为1.1s
4. 重新编译下载程序到MCU并运行
5. 可观察到LED不能正常亮起

Example execution steps:
1. Compile and download the program to MCU and run it;
2. It can be observed that the LED can light up normally;
3. Modify the program (comment the code in the main function while loop) and 
configure the dog feeding time to be 1.1 seconds;
4. Recompile and download the program to MCU and run it;
5. It can be observed that the LED cannot light up normally;
================================================================================
注意事项:

Notes:
================================================================================