cancel
Showing results for 
Search instead for 
Did you mean: 

SPC560D030 - sleep/power down modes

ssk
Associate II
Posted on February 05, 2015 at 13:43

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-down
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee
Posted on February 24, 2015 at 17:31

Hello Mike ,

1- The best power saving is clearly in STANDBY mode.

As the reference manual ,

the standby mode should be 13 and the reset mode should be 0

(Cf Below)

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

Erwan

View solution in original post

6 REPLIES 6
Erwan YVIN
ST Employee
Posted on February 05, 2015 at 17:00

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_MC

if
(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
ssk
Associate II
Posted on February 09, 2015 at 06:54

Thanks Erwan for the information. I will try as per.

Thanks.

Mike.

ssk
Associate II
Posted on February 11, 2015 at 09:01

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.
ssk
Associate II
Posted on February 24, 2015 at 12:06

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.
Erwan YVIN
ST Employee
Posted on February 24, 2015 at 17:31

Hello Mike ,

1- The best power saving is clearly in STANDBY mode.

As the reference manual ,

the standby mode should be 13 and the reset mode should be 0

(Cf Below)

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

Erwan

ssk
Associate II
Posted on February 25, 2015 at 14:59

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.