Hardware requirements
Mini/micro USB cable
LPCXpresso802 board
Personal Computer
Board settings
Please connect the USART1_CLK pin to USART2_CLK pin directly. No need to connect other pins. The data pins are shared.
Master - USART1 Slave - USART1
Pin Name Board Location Pin Name Board Location
TXD CN3 pin 21 RXD CN3 pin 19
RXD CN3 pin 19 TXD CN3 pin 21
SCK CN3 pin 22 SCK CN3 pin 22
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 the output of the hello world demo in the terminal window:
Usart synchronous transfer example.
Master USART will send data to slave on one board.
All data matched, data transfer success!