![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Example description
The WKT example demonstrates using the Wake-up timer to wake-up the MCU from low power states.
When PIO0_6 pin is set to LOW level, the tests will be executed. The application will demonstrate the following 4 sequential low power states:
MCU_SLEEP,
MCU_DEEP_SLEEP,
MCU_POWER_DOWN,
MCU_DEEP_POWER_DOWN
The Red LED on the board will be toggling before the MCU enters low power state & after it wakes up from the low power state.
Special connection requirements
There are no special connection requirements for this example.
Build procedures:
LPC8xx example quickstart for IAR EWARM
LPC8xx example quickstart for Keil uVision4
LPC8xx example quickstart for Code Red Xpresso
Supported boards and board setup:
NXP Xpresso LPC812 board
Submitting LPCOpen issues:
Community support for LPCOpen
Macros | |
| #define | TICKRATE_HZ (10)/* 10 tick per second */ |
| #define | WAKEUP_COUNT_5s (5 * 10000) /* 5 seconds (using 10Khz clock) */ |
Functions | |
| void | WKT_IRQHandler (void) |
| Handle interrupt from Wake-up timer. | |
| int | main (void) |
| main routine for wake-up timer example | |
| #define WAKEUP_COUNT_5s (5 * 10000) /* 5 seconds (using 10Khz clock) */ |
| int main | ( | void | ) |