大家好
如果我在ZStack中启用WDT_IN_PM1, 我如何给狗喂食?以及 我可以配置喂食狗占空比?多长时间
巴西!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好,
使用 WDTIMX可以获得最大的锈蚀时间。 是否仅在应用程序运行后才使用监视程序计时器? 在这种情况下,您需要在刷新计时器的应用程序中实施计时器:
//在app_event_loop中
IF (Events & SampleApp_WD_refresh_EVT)
{
WatchDogEnable( WDTIMX );
OSAL_START_TIMEREx (YourApp_TaskID,SampleApp_WD_REFRESH_EVT,1000);
返回(事件^ SampleApp_End_device_Return_EVT);
}
然后,只需在App_Init()结束时使用 osal_set_event( YourApp_TaskID, SampleApp_WD_refresh_EVT )触发事件。 WatchDogEnable()在 使用 WDTIMX运行32 kHz时,将为您提供一个相当于时钟周期×3.2768万 (~1)的时间,因此,计时器将在看门狗到期之前刷新它。
我希望这能有所帮助。
此致,