Internal Watchdog Wdg_SetTriggerCondition(TIME_OUT) calculation S32K342

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Internal Watchdog Wdg_SetTriggerCondition(TIME_OUT) calculation S32K342

2,087 Views
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 Kudos
Reply
1 Reply

2,045 Views
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 Kudos
Reply