hello,
I have unsuccesfully try to use the standby mode of the processor.
I switched off the Flash pump and the flash supply and assert CLK as explain in SPNA107 but it still get a power consumption of 5 mA in standby mode. The only periphral running is the RTI, PLL is disable. the part is running at 4 MHz
This is the kind of code I am using.
GCR |= FLCONFIG; // Must be in flash config mode
FMMAC1 = PSLEEP_MAX; // pump sleep to standby time
FMMAC2 = BANK0_ENA + PMPPWR_SLEEP + PSTDBY_MAX; // Pump power sleep bank0
FMBAC1 = BNKPWR_SLEEP+ BSTDBY_MAX + 0xff00; // Bank power sleep 256 cycles
// before flash shut down
FMBAC2 = PIPELINE_MODE + BSLEEP_MAX; // 1 wait states
FMMAC2 = BANK1_ENA + PMPPWR_SLEEP + PSTDBY_MAX; // Pump power sleep bank1
FMBAC1 = BNKPWR_SLEEP+ BSTDBY_MAX + 0xff00; // Bank power sleep 256 cycles
// before flash shut down
FMBAC2 = PIPELINE_MODE + BSLEEP_MAX; // 1 wait states
FMREGOPT = ENPIPE; // ENABLE PIPELINE MODE
CLKCNTL = PPWNOVR + LPM_STANDBY; // standby mode
dummy=CLKCNTL; // Dummy access
Is there something that I missing ? at room temperature in standby mode, I was expecting a current of less than 2 mA not 5 mA.