Internal Watchdog Wdg_SetTriggerCondition(TIME_OUT) calculation S32K342

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Internal Watchdog Wdg_SetTriggerCondition(TIME_OUT) calculation S32K342

1,520件の閲覧回数
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,478件の閲覧回数
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 件の賞賛
返信