1980359_en-US

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

1980359_en-US

1980359_en-US

Can we use S32K3x4 and S32K3x8 External Wake up inputs as Interrupt inputs?

Hello,

On the S32K3x4 and 3x8 devices, can the pads that are configured as external WKPU inputs act as interrupt inputs when the device is awake or active? If yes, do they also share the same interrupt channels as the EIRQ[0-31] input channels?

Thanks

Sai

Re: Can we use S32K3x4 and S32K3x8 External Wake up inputs as Interrupt inputs?Appreciate the clarification. I am accepting this response as a solution. Will reach out if further questions arise.

Thanks
Re: Can we use S32K3x4 and S32K3x8 External Wake up inputs as Interrupt inputs?

Hi@spalukuru

Here, PTD29 can be configured as WKPU[52], but can I use this to also generate interrupt? (enable IRER)(IREQ->IRER, my mistake in last reply)

Yes. Just need to enable both the IRER(Interrupt Request Enable Register) in WKPU module and ISER(Interrupt Set Enable Register) in NVIC module.

Re: Can we use S32K3x4 and S32K3x8 External Wake up inputs as Interrupt inputs?Re: Can we use S32K3x4 and S32K3x8 External Wake up inputs as Interrupt inputs?Thanks for the explanation with the example. In the same context, could you please help me understand what the case will be for this another example scenario -

Here, PTD29 can be configured as WKPU[52], but can I use this to also generate interrupt? (enable IREQ)
Re: Can we use S32K3x4 and S32K3x8 External Wake up inputs as Interrupt inputs?

Hi@spalukuru

Senlent_1-1730425821262.png

The wakeup sources go to (red) and Interrupt controller(blue) separately. Thus, a wakeup event is able to occur without the enablement of NVIC module. A wakeup event is also capable to generate an interrupt event.


For example:PTD20

If PTD20 is configured as EIRQ[25] first, and WKPU is enabled before entering sleep mode, then its wakeup will not affect EIRQ.
Secondly, you can also configure PTD20 as WKPU port only. If IRER bit is enabled, it will also generate an NVIC interrupt.

Senlent_2-1730427710129.png



Re: Can we use S32K3x4 and S32K3x8 External Wake up inputs as Interrupt inputs?

Hello,

Thank you for the quick response. I understand there are 60 external pin wake up sources (WKPU[0]-WKPU[59]). If I want any of these external wake sources to act as an interrupt when the system is awake, does it take over or bother any of the 32 external interrupt channels (EIRQ[0:31]) that are - for example - already assigned to other sources?


Thanks
spalukuru

Re: Can we use S32K3x4 and S32K3x8 External Wake up inputs as Interrupt inputs?

Hi@spalukuru

I thank the answer is yes, you can take a look at the below two diagram and the route is all to Interrupt Controller.

So i thank for a pin used as external WKPU,if you enable IRER, it should be work as normal

GPIO way.

Senlent_3-1729752512107.png

Senlent_2-1729752444801.png


Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 03:51 PM
Updated by: