Configuration of VLPS using processor expert

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

Configuration of VLPS using processor expert

2,007 次查看
pranavshinde
Contributor II

Hello ,

I am using S32K144 controller for my product development. To configure the peripherals, I am using a processor expert tool in S32 design studio.

With above mentioned setup, I want to implement features listed below,

1. I want to enter in VLPS mode after certain condition is met in application.

2. Wake up from VLPS mode and enter in normal mode after a rising edge on GPIO or after RTC alarm is triggered.

I have configured the VLPS mode in processor expert but I am not able to find the settings to wake up from VLPS mode based on above mentioned conditions.

Please let me know where can I configure the wake up interrupt sources in processor expert.

With regards,

Pranav

标记 (1)
0 项奖励
回复
7 回复数

1,892 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Pranav,

Please have a look at the power_mode_switch_s32k144 SDK example.

It shows how to put the MCU in VLPS and it utilizes a PORTC interrupt as a wake-up source.

Regarding RTC, there is an SDK RTC example as well (RTC_alarm_s32k144).

The RTC module is fully-functional in VLPS and the RTC alarm interrupt is a wake-up source provided the selected RTC functional clock is enabled in VLPS.

Regards,

Daniel

0 项奖励
回复

1,892 次查看
pranavshinde
Contributor II

Thanks Daniel,

Is their any way which can tell us which interrupt caused the wake up?

0 项奖励
回复

1,892 次查看
danielmartynek
NXP TechSupport
NXP TechSupport
0 项奖励
回复

1,892 次查看
pranavshinde
Contributor II

Okay,

And from where the program execution will resume after waking up?

I read in the application note that, ISR which caused the wake up will executefirst.

But, once the ISR execution is complete, will the program counter start from the beginning or from the next instruction to be executed before going to sleep?

0 项奖励
回复

1,892 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

The program execution stops at the WFI (wait for interrupt) instruction and once there is no pending interrupt, it continues with the next instruction after the WFI instruction.

BR, Daniel

0 项奖励
回复

1,892 次查看
pranavshinde
Contributor II

Ok.

I am able to enter in the VLPS mode but neither the RTC interrupt nor the port interrupt is able to wake up the controller.

For RTC, I am using LPO_1KHz clock. Is this correct configuration?

0 项奖励
回复

1,892 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello pranavshinde,

The SDK example (power_mode_switch_s32k144) uses a port interrupt as a wake up source. 

Does it mean the example does not work?

Yes, LPO_1kHz is functional in VLPS and it can be used for RTC.

pastedImage_2.png

You can refer to this non-SDK example as well:

https://community.nxp.com/docs/DOC-341788 

BR, Daniel

0 项奖励
回复