entering sleep

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

entering sleep

639 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mayotte1 on Wed Mar 24 16:48:20 MST 2010
In one of the examples (autoisp) for the lpc1343 its says:

/* Go to sleep to save power between SYSTICK interrupts */
    __WFI();

what is WFI?  Can I use this single statement to save power or must I dig out a more complex solution or preset something?
Please and thank you.
0 Kudos
Reply
1 Reply

617 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Luis Digital on Wed Mar 24 17:07:39 MST 2010
__WFI(); is a function in C, and define an instruction that has the same name in assembler (WFI: Wait For Interrupt).

In the datasheet has more information.

There is an elaborate example "pmc" in "LPC11xx_SampleSoftware.101".
0 Kudos
Reply