lpc 1769 deep power down

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lpc 1769 deep power down

1,101 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gudushen on Thu Jul 28 07:19:21 MST 2011
I'm trying to enter deep power down mode for lpc 1769.
But its not working.
This is what I do:

        #define BF_SCR_SLEEPDEEP (1<<2)

        SCB->SCR |= BF_SCR_SLEEPDEEP;

LPC_SC->PCON |= 0x3;

led_on(0); //turns off an led

SysTick->CTRL = 0;
__WFI();

PLL0STAT still connected, current still very high.

Any help would be appreciated
0 Kudos
Reply
3 Replies

1,008 Views
lpcware
NXP Employee
NXP Employee
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]&#12288;[/FONT][/LEFT]
[/LEFT]
0 Kudos
Reply

1,008 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kendwyer on Thu Jul 28 16:47:24 MST 2011
Also refer to the Power modes AN for the product:
http://ics.nxp.com/support/documents/microcontrollers/zip/an10915.zip
0 Kudos
Reply

1,008 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Thu Jul 28 08:34:04 MST 2011
This code included in a new LPCXpresso project is working without problem:

LPC_SC->PCON |= 0x3;
SCB->SCR = (1<<2);
__WFI();
0 Kudos
Reply