i am using s32k312/311 for my applications and wanted to use RTI as periodic wakeup source whenever application go in to sleep mode. And RTI must start only when there no active sources for wakeup present like any button/switch.
Can i configure RTI or do we have other solution for it in same controller.
Thanks.
Hi@aryandis
"And RTI must start only when there no active sources for wakeup present like any button/switch."
In my opinion, this sentence is contradictory.
The wakeup source of S32K3 can be RTI, or some external GPIO ports, such as the buttons you mentioned.
You can enable these as wakeup sources at the same time, but according to your idea, the logic of enabling RTI through buttons is not correct.
1. If these buttons are not used as wakeup sources, then they cannot be used to enable RTI during STANDBY MODE.
2. If these buttons are used as wakeup sources, then there is no need to start RTI because the MCU has already been woken up.
let me correct this.
Idea of application is to have two wakeup sources one is Active wakeup like button/switch and passive wakeup with RTI periodic wakeup.
There will be two case in my application.
1- If switch is pressed then application will be in awaken up always no need to check RTI timer elapsed.
2- Once application go in to sleep (if switch is not pressed) then this RTI will be used as periodic timer interval wakeup interrupt to wakeup the ECU at every fix time interval and will go in sleep once time elapsed.
Do you have RTI configured application based on RTD 3.0.0?
Thanks
Hi@aryandis
This is feasible. After waking up, you can determine what the wakeup source is and decide to execute your application based on the wakeup source.
I don't have a sample program based on RTD 3.0.0 for your reference.
Have query regarding configuration for RTI.
1- Is WAKEUP module (With ICU in case of HLD or without ICU in case of IP ) is itself capable for generating wakeup cyclic interrupt?
2- along with Wakeup and POWER module , Do i need PIT module for triggering RTI as well?
Hi@aryandis
This answer explains your first question.
https://community.nxp.com/t5/S32K/S32K3-Standby-mode/m-p/1459573
In fact, S32K3xx has only two power modes, RUN mode and STANDBY mode.. For your question, you can reduce power consumption in RUN by reducing the clock frequency or turning off unused peripherals, this way you can define your own power consumption modes.
But only the Standby mode has the lowest power consumption。