Content originally posted in LPCWare by NXP_Europe on Sat Jul 30 10:23:52 MST 2011
Hello gudushen,
3 lines are enough to put the controller in [B]Deep Power-down[/B].
[FONT=Courier New]// set SLEEPDEEP in SCR[/FONT]
[FONT=Courier New]SCB->SCR |= 0x04;[/FONT]
[FONT=Courier New]// PCON register[/FONT]
[FONT=Courier New]LPC_SC->PCON = 0x03;[/FONT]
[FONT=Courier New]// Wait for interrupt[/FONT]
[FONT=Courier New]__WFI();[/FONT]
[FONT=Courier New](...)[/FONT]
[FONT=Courier New]to wakeup from Deep Power-down see UM10360[/FONT]
Quote:
[LEFT][FONT=Courier New][SIZE=2]Wake-up from Deep power-down mode will occur when an external reset signal is applied, or the RTC interrupt is enabled and an RTC interrupt is generated. [/SIZE][/FONT][/LEFT]
[LEFT][LEFT][FONT=Courier New] [/FONT][/LEFT]
[/LEFT]