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

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

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

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

540件の閲覧回数
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 件の賞賛
返信