Skip to main content
rpoon
Associate II
October 14, 2019
Question

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

  • October 14, 2019
  • 0 replies
  • 549 views

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 topic has been closed for replies.