How to connect the wakeup sources with Wakeup Unit (WKPU) for S32K3xx

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

How to connect the wakeup sources with Wakeup Unit (WKPU) for S32K3xx

Jump to solution
1,869 Views
OliverTian
NXP Employee
NXP Employee

Hi,

    How to connect the wakeup sources with Wakeup Unit (WKPU) for S32K3xx. 

    I think RM should be improved to add one mapping table. 

 Regards

Oliver

0 Kudos
1 Solution
1,868 Views
OliverTian
NXP Employee
NXP Employee

   For S32K3, there are five wakeup sources, as 0~4.

  • Wakeup Source 0 : SWT_0 timeout, RTC-API API wakeup
  • Wakeup Source 1 : RTC-API RTC timeout
  • Wakeup Source 2 : Round robin wakeup interrupt (trigger mode interrupt) from any of CMP_0, CMP_1 or CMP_2
  • Wakeup Source 3 : RTI wakeup
  • Wakeup Source 4 - Wakeup Source 63 : External pin wakeup sources, WKPU[0] - WKPU[59]

 

   So, if you use EB to configure IcuWkpu in Icu, you need take care.

   For example, if the wakeup source is CMP_x, the number within Wkpu Channel should be 2;

                        If the wakeup source is external pin PTC20, you can get the WKPU[43] from "S32K3xx_IOMUX.xlsx" in RM's attachment. BUT the number within Wkpu Channel should be 47  (43+4).

 

Notes:

   In EB Tresos

OliverTian_0-1631071425000.png

   In S32K3xx_IOMUX.xlsx 

OliverTian_1-1631071425033.png

Hope this will be helpful.

Cheers!

Oliver

View solution in original post

0 Kudos
1 Reply
1,869 Views
OliverTian
NXP Employee
NXP Employee

   For S32K3, there are five wakeup sources, as 0~4.

  • Wakeup Source 0 : SWT_0 timeout, RTC-API API wakeup
  • Wakeup Source 1 : RTC-API RTC timeout
  • Wakeup Source 2 : Round robin wakeup interrupt (trigger mode interrupt) from any of CMP_0, CMP_1 or CMP_2
  • Wakeup Source 3 : RTI wakeup
  • Wakeup Source 4 - Wakeup Source 63 : External pin wakeup sources, WKPU[0] - WKPU[59]

 

   So, if you use EB to configure IcuWkpu in Icu, you need take care.

   For example, if the wakeup source is CMP_x, the number within Wkpu Channel should be 2;

                        If the wakeup source is external pin PTC20, you can get the WKPU[43] from "S32K3xx_IOMUX.xlsx" in RM's attachment. BUT the number within Wkpu Channel should be 47  (43+4).

 

Notes:

   In EB Tresos

OliverTian_0-1631071425000.png

   In S32K3xx_IOMUX.xlsx 

OliverTian_1-1631071425033.png

Hope this will be helpful.

Cheers!

Oliver

0 Kudos