2015-02-05 04:43 AM
Hello members,
1. Has anyone tried implementing sleep/power down modes with SPC560Dxx series MCU? I tried going through reference manual (CD00259063.pdf) but hardly any information is available. Any app note or document reference?2. Has anyone tried with any of the SPC560 series MCU? Any app note or document reference?Thanks.Mike #sleep/power-downSolved! Go to Solution.
2015-02-24 08:31 AM
typedef
enum{
SPC5_RUNMODE_RESET = 0, SPC5_RUNMODE_TEST = 1, SPC5_RUNMODE_SAFE = 2, SPC5_RUNMODE_DRUN = 3, SPC5_RUNMODE_RUN0 = 4, SPC5_RUNMODE_RUN1 = 5, SPC5_RUNMODE_RUN2 = 6, SPC5_RUNMODE_RUN3 = 7, SPC5_RUNMODE_HALT0 = 8, SPC5_RUNMODE_STOP0 = 10 SPC5_RUNMODE_STANDBY = 13; } spc5_runmode_t; a change request in our HAL is maybe required. 2- if you go out from STANDBY mode, I recommend you to use WKUP unit. (Chapter 12) IRQ #46,#47,#48,# Best Regards Erwan2015-02-05 08:00 AM
Hello Mike ,
You can use use the STOP MODE or STANDBY MODE Chapter8.4.2 Modes Details This mode is fully configurable byME_STOP_MC / ME_STANDBY_MCif
(halSPCSetRunMode(SPC5_RUNMODE_DRUN) == OSAL_FAILED) {
SPC5_CLOCK_FAILURE_HOOK();
}
/* Peripherals run and low power modes initialization.*/
by RUN_PC & RUN_LP
(cf spc_clock_init())
and you should configure your correctME_PCTL0...
Best regards
Erwan
2015-02-08 09:54 PM
Thanks Erwan for the information. I will try as per.
Thanks.Mike.2015-02-11 12:01 AM
1. I am trying to implement sleep/standby mode. The HAL header file has enum defines for all the modes except Reset and Standby. I understand for Reset but it is not clear for Standby. What is the reason for not having the define for Standby mode? Any specific care is required for Standby?
2. How to come out of these modes? Per my understanding, use the function 'halSPCSetRunMode' to initiate required mode. Please clarify.Thanks.
Mike.2015-02-24 03:06 AM
Has anyone tried to implement the 'Standby' mode on SPC560?
1. I am trying to implement sleep/standby mode. The HAL header file has enum defines for all the modes except Reset and Standby. I understand for Reset but it is not clear for Standby. What is the reason for not having the define for Standby mode? Any specific care is required for Standby?2. How to come out of these modes? Per my understanding, use the function 'halSPCSetRunMode' to initiate required mode. Please clarify.Thanks.
Mike.2015-02-24 08:31 AM
typedef
enum{
SPC5_RUNMODE_RESET = 0, SPC5_RUNMODE_TEST = 1, SPC5_RUNMODE_SAFE = 2, SPC5_RUNMODE_DRUN = 3, SPC5_RUNMODE_RUN0 = 4, SPC5_RUNMODE_RUN1 = 5, SPC5_RUNMODE_RUN2 = 6, SPC5_RUNMODE_RUN3 = 7, SPC5_RUNMODE_HALT0 = 8, SPC5_RUNMODE_STOP0 = 10 SPC5_RUNMODE_STANDBY = 13; } spc5_runmode_t; a change request in our HAL is maybe required. 2- if you go out from STANDBY mode, I recommend you to use WKUP unit. (Chapter 12) IRQ #46,#47,#48,# Best Regards Erwan2015-02-25 05:59 AM
Thanks Erwan for the clarifications. I look forward for the next SPC5Studio release.
Meanwhile, I shall try standby mode as per the below information.Thanks.Mike.