AnsweredAssumed Answered

how can I decrease  the consumption in ModeStop?

Question asked by Nefi Armelim on Nov 10, 2016
Latest reply on Nov 16, 2016 by TomE

I am using the processor expert in my project and I aplly this code with MCF51EM256:

 

while(1){

 

TEMPO_STOP2 = 5;

.

.

.

My code

.

.

.

//#_RTC_###########################################################//

RELOGIO_GetTime(&Time_RTC);
RELOGIO_GetDate(&Date_RTC);

HOR_ATUAL = Time_RTC.Hour;
MIN_ATUAL = Time_RTC.Min;
SEG_ATUAL = Time_RTC.Sec;
ANO_ATUAL = Date_RTC.Year;
MES_ATUAL = Date_RTC.Month;
DIA_ATUAL = Date_RTC.Day;

 

MIN_ATUAL = MIN_ATUAL + TEMPO_STOP2;

if(MIN_ATUAL >= 60){
MIN_ATUAL = MIN_ATUAL - 60;
HOR_ATUAL = HOR_ATUAL + 1;
if(HOR_ATUAL >= 24)
HOR_ATUAL = HOR_ATUAL - 24;
}

 

RELOGIO_SetAlarm(HOR_ATUAL,MIN_ATUAL,SEG_ATUAL);

LED_BATERIA_ClrVal();
LED_TRANSMISSAO_ClrVal();
ON_OFF_REG_ClrVal();
ON_OFF_IST_ClrVal();
UART_RADIO_Disable();
I2C1_Disable();
BATERIA_Disable();
ON_SLEEP_RADIO_ClrVal();
TEMPO_Disable();
MicroControlador_DisableInt();

MicroControlador_SetStopMode();

 

MicroControlador_EnableInt();
TEMPO_Enable();
ON_OFF_REG_SetVal();
UART_RADIO_Enable();
ON_OFF_IST_SetVal();
I2C1_Enable();
BATERIA_Enable();
ON_SLEEP_RADIO_SetVal();

 

//###########################################################//

}

 

I already configured:

 

Stop instruction enable = yes
Partial Power down mode = Enabled
Internal clock in stop mode = Disabled
External clock in stop mode = Disabled

 

But my current in MCF51EM is about 1mA...

When I hope about 0,5uA as say the datasheet.

 

"...Stop2 mode supply current 0,576uA in Table 11. Supply Current Characteristics..."

 

What can I do to have this consumption?

 

BEST REGARDS

Outcomes