cancel
Showing results for 
Search instead for 
Did you mean: 

Strange current Increase for STR912FAW44

tybl
Associate II
Posted on May 20, 2008 at 11:12

Strange current Increase for STR912FAW44

1 REPLY 1
tybl
Associate II
Posted on May 17, 2011 at 09:53

hi,

I use a STR912FAW44 evisions G +IAR 4.40

The colck=25Mhz+32768hz.

My Product need change the clock Automatically for the lower power.

The code and The actual current is :

-------------------------------

int main()

{

#ifdef DEBUG

debug();

#endif

SCU_MCLKSourceConfig(SCU_MCLK_RTC);

Delay(50); //current=3.3mA

SCU_MCLKSourceConfig(SCU_MCLK_OSC);

FMI_Config(FMI_READ_WAIT_STATE_2,FMI_WRITE_WAIT_STATE_0, FMI_PWD_DISABLE,

FMI_LVD_DISABLE,FMI_FREQ_HIGH);

SCU_PLLFactorsConfig(192,25,2);

SCU_PLLCmd(ENABLE);

SCU_MCLKSourceConfig(SCU_MCLK_PLL);

Delay(80000); //current=160mA

SCU_PLLCmd(DISABLE);

SCU_MCLKSourceConfig(SCU_MCLK_OSC);

FMI_Config(FMI_READ_WAIT_STATE_1, FMI_WRITE_WAIT_STATE_0, FMI_PWD_DISABLE,

FMI_LVD_DISABLE, FMI_FREQ_LOW);

Delay(30000); //current=52mA

SCU_MCLKSourceConfig(SCU_MCLK_RTC);

Delay(50); //current=9.7mA?????????? where are from......

SCU_MCLKSourceConfig(SCU_MCLK_OSC);

while(1)

{

}

}

----------------------------------

Has anybody faced this problem?

Any suggestions would be really helpful.

Regards,

tybl.