[RTD600 IP] S32K3X4EVB-T172 GPIO Wake-up

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

[RTD600 IP] S32K3X4EVB-T172 GPIO Wake-up

[RTD600 IP] S32K3X4EVB-T172 GPIO Wake-up

This example project will show user how to use and configure the basic functionalities of WKPU + SIUL2 (GPIO).

 ------------------------------------------------------------------------------
* Test HW: S32K3X4EVB-T172 (SCH-53148 REV B2)
* MCU: S32K344
* IDE: S32DS v3.5 & S32DS v3.6.x
* SDK release: RTD 6.0.0
* Debugger: PE Micro
* Target: internal_FLASH
 ------------------------------------------------------------------------------

This example routine configures the WKPU unit for a GPIO interrupt wake-up. This is the simplest WKPU example. Pin PTB19 (WKPU42) is configured for wake-up. 

The routine waits for SW5 to be pressed, then turns off the green LED, and enters Wkpu_EnterStandby() function which:

  1. Switches core clock to FIRC.
  2. Initializes the WKPU instance.
  3. Configures WKPU42 (PTB19).
  4. Enters standby (or fast standby).

After pressing SW6, MCU wakes up, resets and polls for SW5 to be pressed again.

This example is provided as is with no guarantees and no support.

Attachments
No ratings
Version history
Last update:
Wednesday
Updated by: