How to use internal watchdog as a periodic counter in VLPS mode of S32k116

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

How to use internal watchdog as a periodic counter in VLPS mode of S32k116

573 Views
JunchanKwon
Contributor I

Dear all,

I would like to use the internal watch as a periodic counter in VLPS mode.

 

The development condition is as followed:

- IDE: S32DS3.4 with SDK 4.0.2

- MCU: S32K116

- communication : LIN slave

For power consumption, VLPS mode is need. 

However, MCU should receive heart beat signal from LIN master via LIN RXD to verify communication line is still connected.

(As you know, heart beat signal is a periodic and helps the MCU to decide communication line status by getting it or not within that period)

 

So I think there are 2 interrupt needed , 

1) one is for wake-up by heart beat 

2) the other is for periodically wake-up to check heart beat is arrived or not

To implement those under VLPS mode, I use the LPTMR as pulse counter for 1), and would like to use the watchdog as periodic wake-up counter for 2).

 

However  I can't find a good example to use internal watchdog as a periodic counter in VLPS mode. (including IDE examples)

 

Please help me to solve this.

Thank you.

0 Kudos
Reply
1 Reply

550 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @JunchanKwon,

Unfortunately, there is no such example.

But there are these two SDK examples:

  • wdog_interrupt_s32k116
  • power_mode_switch_s32k116

There should be no problem putting them together.

 

Let me know if you have any specific issue with the configuration.

 

BR, Daniel

0 Kudos
Reply