going to sleep

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

going to sleep

734 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mayotte1 on Fri Apr 09 10:04:56 MST 2010
My project is working so well now that I need to have it start sleeping. I don't really find much info on the _WFI that is used in the blinky example. The comments in the blinky code say it is going to sleep to save power but the discussions on the forum seem to indicate I need to do more than just issue a _WFI. I do see on the scope where the project is waiting but cannot really tell if any reduced power is in play.  Any comment would be appreciated. Thanks in advance.
0 Kudos
Reply
1 Reply

720 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by igorsk on Fri Apr 09 15:28:04 MST 2010
WFI stands for "Wait for interrupt". It makes CPU stop executing and go to sleep until it gets an interrupt. Which sleep mode is entered depends on the power configuration. See "Power control" in your chip's user manual.
0 Kudos
Reply