Content originally posted in LPCWare by daniel.widyanto on Tue Nov 13 22:31:09 MST 2012
Hi Miha,
The WFI is ARM instruction to enter power saving mode. Once the MCU execute WFI, the PC (program counter) will stop at that point, until wake up source asserted (Timer, UART, GPIO etc). There are few power saving mode that you can choose (sleep, deep sleep, deep power down), and each has their own wake-up source to choose.
So, yes, in term of energy consumption, it's less when WFI() is executed in main loop.