cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the SPC560B evk board in standby mode and current measurement.

rpoon
Associate II

Hello,

I have used following line of code for making the spc560b mcu board in standbu mode but the current drawn by the mcu is still 90mamp, for standby mode it should be in micro amp.

Kindly help me out with the issue.

uint32_t n =69;

uint32_t pctl = SPC5_ME_PCTL_RUN(2)|| SPC5_ME_PCTL_LP(1);

ME.PCTL[n].R = pctl;

ME.IS.R = 5;

uint8_t flag_ret = 0;

ME.STANDBY0.B.PDO = 0;

ME.STANDBY0.B.MVRON = 0;

ME.STANDBY0.B.DFLAON = 1;

ME.STANDBY0.B.CFLAON = 1;

// ME.STANDBY0.B.SSCLKON =

ME.STANDBY0.B.PLLON = 0;

ME.STANDBY0.B.OSCON = 0;

ME.STANDBY0.B.RCON = 0; //

ME.STANDBY0.B.SYSCLK = 0XF; //system clock disabled

// LOW POWER PERIPHERAL CONFIGURATION

//ME.LPPC[0].B.STANDBY0 = 0; //Peripheral is frozen with clock gated

//ME.MER.B.STANDBY0 = 1; //enabling the mode

ME.MCTL.R = SPC5_ME_MCTL_MODE(SPC5_ME_LP_PC_STANDBY ) | SPC5_ME_MCTL_KEY ;

ME.MCTL.R = SPC5_ME_MCTL_MODE(SPC5_ME_LP_PC_STANDBY ) | SPC5_ME_MCTL_KEY_INV;

while(ME.GS.B.MTRANS != 0)

Best Regards

Rewatee

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
0 REPLIES 0