Internal Watchdog Wdg_SetTriggerCondition(TIME_OUT) calculation S32K342

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Internal Watchdog Wdg_SetTriggerCondition(TIME_OUT) calculation S32K342

1,521 次查看
irshad_2503
Contributor I

Hi

I am using demo project for S32K342 internal watchdog. watchdog timeout is configured as 20ms.

In source file trigger condition is being set at 4048ms(0xFD0). If this timeout value changes the watchdog timeout value then I should get a reset at every 4seconds. if this is not the case could you please explain how TIME_OUT is calculated and what it means.

Wdg_43_Instance0_SetTriggerCondition(TIME_OUT);/*TIME_OUT = 0xFD0*/

Thanks,
Irshad

0 项奖励
回复
1 回复

1,479 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @irshad_2503 

The function Wdg_43_Instance0_SetTriggerCondition(TIME_OUT) sets the trigger condition for the watchdog timer. The parameter TIME_OUT is the value that the watchdog timer counts down from. When the watchdog timer reaches zero, a reset is triggered.

In your case, TIME_OUT is set to 0xFD0, 4048 in decimal. This value is not in milliseconds but in watchdog timer ticks. The actual time it takes for the watchdog timer to count down from TIME_OUT to zero depends on the clock frequency of the watchdog timer.

 

B.R.

VaneB

0 项奖励
回复