All:
I am working with the F28335, and trying to use the low power modes - I can only use mode 0 of the IDLE mode, and also wanted to use the Flash low-power mode. To do that, I have added the following code:
#pragma CODE_SECTION(FlashSleep, "ramfuncs");
STATIC void FlashSleep(void)
{
// Put the Flash to sleep
FlashRegs.FPWR.bit.PWR = FLASH_SLEEP;
EALLOW;
if (SysCtrlRegs.PLLSTS.bit.MCLKSTS != 1) // Only enter Idle mode when PLL is not in limp mode.
{
SysCtrlRegs.LPMCR0.bit.LPM = 0x0000; // LPM mode = Idle
}
EDIS;
asm(" IDLE"); // Device waits in IDLE until XINT1 interrupts
}
However, I am not seeing an appreciable difference yet - can anyone spot something wrong with the above code snippet?