Example S32K324 STANDBY wake up using GPIO Switch DS3.5 RTD300

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

Example S32K324 STANDBY wake up using GPIO Switch DS3.5 RTD300

Example S32K324 STANDBY wake up using GPIO Switch DS3.5 RTD300

*******************************************************************************

 The purpose of this demo application is to present a usage of the
 POWER & WKUP IP Driver for the S32K3xx MCU.

In current example :--
SW-5 = PTB-26  -----> PRESS to enter the STANDBY mode.
SW-6 = PTB-19 = WKUP[38] --> PRESS to exit the STANDBY mode.

The example uses PIT-0 timer, to generate the periodic interrupt.

 ------------------------------------------------------------------------------
* Test HW: S32K3X4EVB-T172
* MCU: S32K324
* Compiler: S32DS3.5
* SDK release: RTD 3.0.0
* Debugger: PE micro
* Target: internal_FLASH
********************************************************************************

Push Buttons :---

Dinesh_Guleria_4-1719231631866.png

 

 

Dinesh_Guleria_3-1719231563667.png


Wake-up source, SW-6 GPIO:--

Dinesh_Guleria_5-1719231808719.png

 

 



********* If you use external BJT on your board to generate 1.5 volts *******************

Dinesh_Guleria_1-1719231351206.png
 

I tested on Our T172 EVB, with NPN external Ballast transistor is selected to supply the V15_MCU domain. I am able to wake up from standby mode.

If we select 2-3 in J31 then NPN external Ballast transistor is selected to supply the V15_MCU domain & wakeup is ok on T172 EVB

You have to make following settings in code :--

Dinesh_Guleria_2-1719231402148.png

 

Dinesh_Guleria_0-1719231338249.png

 

 

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1892849%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20S32K324%20STANDBY%20wake%20up%20using%20GPIO%20Switch%20DS3.5%20RTD300%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1892849%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CP%3E%3CSPAN%3E*******************************************************************************%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3BThe%20purpose%20of%20this%20demo%20application%20is%20to%20present%20a%20usage%20of%20the%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3BPOWER%20%26amp%3B%20WKUP%20IP%20Driver%20for%20the%20S32K3xx%20MCU.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3EIn%20current%20example%20%3A--%3CBR%20%2F%3ESW-5%20%3D%20PTB-26%26nbsp%3B%20-----%26gt%3B%20PRESS%20to%20enter%20the%20STANDBY%20mode.%3CBR%20%2F%3ESW-6%20%3D%20PTB-19%20%3D%26nbsp%3BWKUP%5B38%5D%20--%26gt%3B%26nbsp%3BPRESS%20to%20exit%20the%20STANDBY%20mode.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EThe%20example%20uses%20PIT-0%20timer%2C%20to%20generate%20the%20periodic%20interrupt.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B------------------------------------------------------------------------------%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E*%20Test%20HW%3A%20S32K3X4EVB-T172%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E*%20MCU%3A%20S32K324%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E*%20Compiler%3A%20S32DS3.5%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E*%20SDK%20release%3A%20RTD%203.0.0%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E*%20Debugger%3A%20PE%20micro%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E*%20Target%3A%20internal_FLASH%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E********************************************************************************%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3EPush%20Buttons%20%3A---%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dinesh_Guleria_4-1719231631866.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Dinesh_Guleria_4-1719231631866.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F285417i4C6A4A937E31955A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Dinesh_Guleria_4-1719231631866.png%22%20alt%3D%22Dinesh_Guleria_4-1719231631866.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dinesh_Guleria_3-1719231563667.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Dinesh_Guleria_3-1719231563667.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F285416iDFE16F6FC6B702BC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Dinesh_Guleria_3-1719231563667.png%22%20alt%3D%22Dinesh_Guleria_3-1719231563667.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3EWake-up%20source%2C%20SW-6%20GPIO%3A--%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dinesh_Guleria_5-1719231808719.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Dinesh_Guleria_5-1719231808719.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F285418i8077BDEC6C107214%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Dinesh_Guleria_5-1719231808719.png%22%20alt%3D%22Dinesh_Guleria_5-1719231808719.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3E*********%20If%20you%20use%20external%20BJT%20on%20your%20board%20to%20generate%201.5%20volts%20*******************%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dinesh_Guleria_1-1719231351206.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Dinesh_Guleria_1-1719231351206.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F285414i3863F497FCF41B04%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Dinesh_Guleria_1-1719231351206.png%22%20alt%3D%22Dinesh_Guleria_1-1719231351206.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CDIV%20class%3D%22lia-message-template-content-zone%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lia-message-template-content-zone%22%3E%0A%3CP%3EI%20tested%20on%20Our%20T172%20EVB%2C%20with%20NPN%20external%20Ballast%20transistor%20is%20selected%20to%20supply%20the%20V15_MCU%20domain.%20I%20am%20able%20to%20wake%20up%20from%20standby%20mode.%3C%2FP%3E%0A%3CP%3EIf%20we%20%3CSPAN%3Eselect%20%3CSTRONG%3E2-3%20in%20J31%3C%2FSTRONG%3E%20then%20NPN%20external%20Ballast%20transistor%20is%20selected%20to%20supply%20the%20V15_MCU%20domain%20%26amp%3B%20wakeup%20is%20ok%20on%20T172%20EVB%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EYou%20have%20to%20make%20following%20settings%20in%20code%20%3A--%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lia-message-template-content-zone%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dinesh_Guleria_2-1719231402148.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Dinesh_Guleria_2-1719231402148.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F285415i14D96DC2A6E1EC09%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Dinesh_Guleria_2-1719231402148.png%22%20alt%3D%22Dinesh_Guleria_2-1719231402148.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dinesh_Guleria_0-1719231338249.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Dinesh_Guleria_0-1719231338249.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F285413i57CB9A94EBCA9B33%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Dinesh_Guleria_0-1719231338249.png%22%20alt%3D%22Dinesh_Guleria_0-1719231338249.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎06-24-2024 05:27 AM
Updated by: