Content originally posted in LPCWare by patel24gic on Wed Mar 19 21:56:16 MST 2014
Hi every body
I am tring to use Deep Sleep mode for LPC1227 controler to reduce current consumption , i did it as describbe in UM10441
but current consumtion is still 10 ma.
see code :
void DeepSleep(void)
{
/*
* Save for when we wakeup
*/
LPC_SYSCON->PDAWAKECFG = LPC_SYSCON->PDRUNCFG;
/*
* BOD and WD Osc. disabled
*/
LPC_SYSCON->PDSLEEPCFG = 0x0000FFFF;
/*
* Deep Sleep Mode
*/
SCB->SCR |= 0x04;
/*
* set up the Power Management Unit
*
* Deep power down mode is DISABLED i.e. Deep Sleep will be entered
*/
LPC_PMU->PCON &= ~(1 << 1);
/* And so to sleep zzzzzzzzzzzz */
__WFI();
}
and also find my circuit if required ,I removed all of the component from ckt except battery ckt, & tact switch wit pull-up registers
but still controller is consummin 10 ma current.
please help me.