Hardware requirements
Micro USB cable
LPCXpresso54628 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the host PC and the LPC-Link USB port (J8) on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows in the terminal window:
Power Manager Demo for LPC device.
The "user key" is: SW5
Select an option
1. Sleep mode
2. Deep Sleep mode
3. Deep power down mode
/* Type in '1' into UART terminal */
Entering Sleep [Press the user key to wakeup] ...
/* Press the user key on board */
Pin event occurs
Wakeup.
Select an option
1. Sleep mode
2. Deep Sleep mode
3. Deep power down mode
/* Type in '2' into UART terminal */
Entering Deep Sleep [Press the user key to wakeup] ...
/* Press the user key on board */
Pin event occurs
Wakeup.
Select an option
1. Sleep mode
2. Deep Sleep mode
3. Deep power down mode
/* Type in '3' into UART terminal */
Entering Deep Powerdown [Reset to wakeup] ...
Press any key to confirm to enter the deep sleep mode and wakeup the device by reset.
/* Type in any key into UART terminal */
/* Press the reset key on board. */
Power Manager Demo for LPC device.
The "user key" is: SW5
Select an option
1. Sleep mode
2. Deep Sleep mode
3. Deep power down mode