Example description
This example demonstrates the power states supported by PMC. The example demonstrates steps to go to low power states & wake up from the states.
UART needs to be setup prior to running the example as the example takes input from the UART console.
Special connection requirements
- Hitex LPC1850EVA-A4-2 and LPC4350EVA-A4-2 boards
Connect a Serial cable (Straight cable) to the board's X1 (UART0) port and connect the other end to the host PC
Open TeraTerm, select the COM port corresponding to the Serial Port to which the board is connected, select 115200 as the baud rate, 1 stop bit, no parity and no flow control
- Keil MCB1857 and MCB4357 boards
Connect a Serial cable (Straight cable) to the board�s P11 (UART0/3) port and connect the other end to the host PC
Open TeraTerm, select the COM port corresponding to the Serial Port to which the board is connected, select 115200 as the baud rate, 1 stop bit, no parity and no flow control
Build procedures:
LPC18xx/43xx example quickstart for Keil uVision4
LPC18xx/43xx example quickstart for IAR EWARM
LPC18xx/43xx example quickstart for Code Red Xpresso
Supported boards and board setup:
Hitex 1850 evaluation boards
Hitex 4350 evaluation boards
Keil 1857 evaluation boards
Keil 4357 evaluation boards
NGX 1830 Xplorer boards
NGX 4330 Xplorer boards
Submitting LPCOpen issues:
Community support for LPCOpen
| void EVRT_IRQHandler |
( |
void |
| ) |
|
Event router interrupt handler.
- Returns
- Nothing
Definition at line 445 of file app_pmc_states.c.
Main entry point.
Main program body.
- Returns
- Nothing
Definition at line 466 of file app_pmc_states.c.
| static void PMC_Get_Wakeup_option |
( |
uint8_t * |
Wakeup_rtc | ) |
|
|
static |
| static void PMC_Post_Wakeup |
( |
uint8_t |
buffer | ) |
|
|
static |
| static void PMC_Pre_SleepPowerDown |
( |
void |
| ) |
|
|
static |
Set IRC as source clock fo all the output clocks & power down before going to 'Deep Sleep'/'Power Down'/'Deep Power Down' modes
Definition at line 178 of file app_pmc_states.c.
| static void PMC_PwrState_Handler |
( |
uint8_t |
buffer, |
|
|
uint8_t |
Wake_RTC |
|
) |
| |
|
static |
Initial value:=
"\r\n==========================================================================\r\n"
"NXP Semiconductors LPC18xx/43xx MCU Power Management Controller example \r\n"
"=============================================================================\r\n"
"Select the power state test to be executed \r\n"
" - Sleep state & Wake up test : Press '1' to select \r\n"
" - Deep Sleep state & Wake up test : Press '2' to select \r\n"
" - Power down state & Wake up test : Press '3' to select \r\n"
" - Deep power down state & Wake up test : Press '4' to select \r\n"
" - Exit the demo : Press 'X' or 'x' to select \r\n"
"=============================================================================\r\n"
Definition at line 90 of file app_pmc_states.c.
Initial value:= "\r\nSelect the Wake up signal \r\n"
" - WAKEUP0 pin : Press 'W' or 'w' to select \r\n"
" - RTC Alarm : Press 'R' or 'r' to select \r\n"
Definition at line 101 of file app_pmc_states.c.
| char menu2[] = "PMC demo example terimnated \r\n" |
|
static |
| char menu3[] = "\r\nPress 'C' or 'c' to start demo...\r\n" |
|
static |