wkt_example#
Overview#
The WKT project is a simple demonstration program of the SDK WKT driver. It sets up the WKT hardware block to trigger a periodic interrupt after loading a counter value and counting down to 0. When the WKT interrupt is triggered a message printed on the UART terminal and the LED is toggled on the board.
Depending on the clock source, the WKT can be used for waking up the part from any low power mode or for general-purpose timing.
Supported Boards#
LPC845BREAKOUT
Hardware requirements
Micro USB cable
LPC845 Breakout board
Personal Computer
Board settings
No special settings are required.
Prepare the demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board.
Open a serial terminal with the following settings:
9600 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 example output of the WKT driver demo in the terminal window:
WKT interrupt example
Self-wake-up timer interrupt is occurred !
Self-wake-up timer interrupt is occurred !
Self-wake-up timer interrupt is occurred !
LPCXpresso802
Hardware requirements
Micro USB cable
LPCXpresso54018 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:
9600 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Running the demo
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
The following lines are printed to the serial terminal when the demo program is executed.
WKT interrupt example
Self-wake-up timer interrupt is occurred ! Self-wake-up timer interrupt is occurred ! Self-wake-up timer interrupt is occurred ! Self-wake-up timer interrupt is occurred ! Self-wake-up timer interrupt is occurred !
And the LD21&&LE22 will start to shine.
LPCXpresso804
Hardware requirements
Mini/micro USB cable
LPCXpresso804 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board
Open a serial terminal with the following settings:
9600 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 example output of the WKT driver demo in the terminal window:
WKT interrupt example
Self-wake-up timer interrupt is occurred !
Self-wake-up timer interrupt is occurred !
Self-wake-up timer interrupt is occurred !
Users can see that LED is blinking.
LPCXpresso824MAX
Hardware requirements
Mini/micro USB cable
LPCXpresso845MAX board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board
Open a serial terminal with the following settings:
9600 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 example output of the WKT driver demo in the terminal window:
WKT interrupt example
Self-wake-up timer interrupt is occurred !
Self-wake-up timer interrupt is occurred !
Self-wake-up timer interrupt is occurred !
LPCXpresso845MAX
Hardware requirements
Mini/micro USB cable
LPCXpresso845MAX board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board
Open a serial terminal with the following settings:
9600 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 example output of the WKT driver demo in the terminal window:
WKT interrupt example
Self-wake-up timer interrupt is occurred !
Self-wake-up timer interrupt is occurred !
Self-wake-up timer interrupt is occurred !
LPCXpresso860MAX
Hardware requirements
Micro USB cable
LPCXpresso860MAX board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board
Open a serial terminal with the following settings:
9600 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 example output of the WKT driver demo in the terminal window:
WKT interrupt example
Self-wake-up timer interrupt is occurred !
Self-wake-up timer interrupt is occurred !
Self-wake-up timer interrupt is occurred !
Users can see that LED is blinking.