LPC5411x Wakeup example
=======================

Example description
-------------------
This example is used to measure wakeup time of the chip from the different low power
modes. Different low power modes are: sleep, deep sleep, and
deep power down. Note that to measure wakeup time for deep power down mode a
system reset is required - the example will determine that this type of wakeup
occurred to properly handle the next wakeup event.

Sleep modes can be selected by changing the PDOWNMODE define.  For this example,
the possible modes are POWER_SLEEP, POWER_DEEP_SLEEP, and
POWER_DEEP_POWER_DOWN.

This example focuses mainly on pin interrupt wakeup method to measure wakeup times 
but this example also implements RTC and uTICK wakeup methods. 

SPECIAL NOTES:
In sleep mode, all clocks are left enabled. The example tends to mostly use 
FRO as the main clock. The sleep mode example averages approximately 1.59 uS 
for VDD = 3.3v.

In deep sleep mode, the main clock (and other clocks) are disabled 
additional clocks are powered down over deep sleep
mode, use the WAKE button for wakeup. When using J5 (target) to power
the chip, the example uses approximately 17.66 uS for VDD = 3.3v.

In deep power down mode, All system clocks are disabled. Device wakeup
can occur by asserting the reset pin; RTC and BOD also can be used for
wakeup from this mode. The deep power down mode averages approximately 
1.02 mS for VDD = 3.3v.

Wakeup measurement notes
-----------------------
1) Wakeup measurement was taken useng P0_24 which triggers at the lowering edge 
of the signal and P0_2 GPIO pin for a wakeup signal when P0_24 goes low and 
measured time between lower edge of P0_24 and rising edge of P0_2.
2) Wakeup measurements above are for the processor only. The rest of the board was
powered by the standard board power supplies.

Special connection requirements
-------------------------------
1) FTDI serial connector at P3.
2) Oscilloscope Trigger pin to P0_24 at J4 I2C_SDA pin.
3) Oscillo scope second pin to P0_2 at J9 pin 1.

Build procedures:
-----------------
Visit the at 'LPCOpen quickstart guides' [http://www.lpcware.com/content/project/lpcopen-platform-nxp-lpc-microcontrollers/lpcopen-v200-quickstart-guides]
to get started building LPCOpen projects.
