Example MPC5748G Low power modes S32DS_2017.R1

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

Example MPC5748G Low power modes S32DS_2017.R1

Example MPC5748G Low power modes S32DS_2017.R1

********************************************************************************
* Detailed Description:
* Application performs basic initialization, setup PLL to maximum allowed
* frequency
*
* User can choose, which low power mode should be entered. There is LPU_MODE
* macro defined, which allows to choose STOP, STANDBY or LPU_RUN mode.
*
* If LPU_RUN mode is selected, user can use macro LPU_STOP_SLEEP_STANDBY,
* which allows to choose LPU_STOP, LPU_SLEEP or LPU_STANDBY mode.
*
* Ther is also RTC initialized, which wakeup microcontroller using WKPU after
* 5 seconds from some of the LPU is entered. RTC uses FIRC as a source clock,
* so FIRC must be enabled in all low power modes.
*
*
* Modified files: mem.ld, sections.ld, startup.s, added file z2_restart.s
*
*
* ------------------------------------------------------------------------------
* Test HW:         MPC5748G-324DS, MPC574xG Motherboard
* MCU:             PPC5748GMMN6A 0N78S
* Fsys:            PLL0 160MHz
* Debugger:        Lauterbach Trace32
*                  PeMicro USB-ML-PPCNEXUS
* Target:          internal_FLASH (debug mode, release mode)
* EVB connection:  USER LED1 to A1
*                    USER LED2 to A2
*
*
*
********************************************************************************

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1121746%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5748G%20Low%20power%20modes%20S32DS_2017.R1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1121746%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20Application%20performs%20basic%20initialization%2C%20setup%20PLL%20to%20maximum%20allowed%3CBR%20%2F%3E*%20frequency%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20User%20can%20choose%2C%20which%20low%20power%20mode%20should%20be%20entered.%20There%20is%20LPU_MODE%3CBR%20%2F%3E*%20macro%20defined%2C%20which%20allows%20to%20choose%20STOP%2C%20STANDBY%20or%20LPU_RUN%20mode.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20If%20LPU_RUN%20mode%20is%20selected%2C%20user%20can%20use%20macro%20LPU_STOP_SLEEP_STANDBY%2C%3CBR%20%2F%3E*%20which%20allows%20to%20choose%20LPU_STOP%2C%20LPU_SLEEP%20or%20LPU_STANDBY%20mode.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Ther%20is%20also%20RTC%20initialized%2C%20which%20wakeup%20microcontroller%20using%20WKPU%20after%3CBR%20%2F%3E*%205%20seconds%20from%20some%20of%20the%20LPU%20is%20entered.%20RTC%20uses%20FIRC%20as%20a%20source%20clock%2C%3CBR%20%2F%3E*%20so%20FIRC%20must%20be%20enabled%20in%20all%20low%20power%20modes.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Modified%20files%3A%20mem.ld%2C%20sections.ld%2C%20startup.s%2C%20added%20file%20z2_restart.s%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20MPC5748G-324DS%2C%20MPC574xG%20Motherboard%3CBR%20%2F%3E*%20MCU%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PPC5748GMMN6A%200N78S%3CBR%20%2F%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PLL0%20160MHz%3CBR%20%2F%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3CBR%20%2F%3E*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PeMicro%20USB-ML-PPCNEXUS%3CBR%20%2F%3E*%20Target%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20internal_FLASH%20(debug%20mode%2C%20release%20mode)%3CBR%20%2F%3E*%20EVB%20connection%3A%26nbsp%3B%20USER%20LED1%20to%20A1%3CBR%20%2F%3E*%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20USER%20LED2%20to%20A2%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1121746%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20Application%20performs%20basic%20initialization%2C%20setup%20PLL%20to%20maximum%20allowed%3CBR%20%2F%3E*%20frequency%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20User%20can%20choose%2C%20which%20low%20power%20mode%20should%20be%20entered.%20There%20is%20LPU_MODE%3CBR%20%2F%3E*%20macro%20defined%2C%20which%20allows%20to%20choose%20STOP%2C%20STANDBY%20or%20LPU_RUN%20mode.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20If%20LPU_RUN%20mode%20is%20selected%2C%20user%20can%20use%20macro%20LPU_STOP_SLEEP_STANDBY%2C%3CBR%20%2F%3E*%20which%20allows%20to%20choose%20LPU_STOP%2C%20LPU_SLEEP%20or%20LPU_STANDBY%20mode.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Ther%20is%20also%20RTC%20initialized%2C%20which%20wakeup%20microcontroller%20using%20WKPU%20after%3CBR%20%2F%3E*%205%20seconds%20from%20some%20of%20the%20LPU%20is%20entered.%20RTC%20uses%20FIRC%20as%20a%20source%20clock%2C%3CBR%20%2F%3E*%20so%20FIRC%20must%20be%20enabled%20in%20all%20low%20power%20modes.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Modified%20files%3A%20mem.ld%2C%20sections.ld%2C%20startup.s%2C%20added%20file%20z2_restart.s%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20MPC5748G-324DS%2C%20MPC574xG%20Motherboard%3CBR%20%2F%3E*%20MCU%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PPC5748GMMN6A%200N78S%3CBR%20%2F%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PLL0%20160MHz%3CBR%20%2F%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3CBR%20%2F%3E*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PeMicro%20USB-ML-PPCNEXUS%3CBR%20%2F%3E*%20Target%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20internal_FLASH%20(debug%20mode%2C%20release%20mode)%3CBR%20%2F%3E*%20EVB%20connection%3A%26nbsp%3B%20USER%20LED1%20to%20A1%3CBR%20%2F%3E*%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20USER%20LED2%20to%20A2%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-TEASER%3E
No ratings
Version history
Last update:
‎06-24-2019 06:28 AM
Updated by: