Hardware requirements

  • Micro USB cable

  • LPCXpresso51U68 board

  • Personal Computer

Board settings

Please connect pins as below shows: Master board Slave board J1-13(U5_RXD) —– J1-11(U5_TXD) J1-11(U5_TXD) —– J1-13(U5_RXD) J1-9 (U5_SCLK) —– J1-9 (U5_SCLK) J1-7(GND) —– J1-7 (GND) Note that, please start slave board first.

Prepare the Demo

  1. Connect a micro USB cable between the host PC and the LPC-Link USB port (J6) on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, the log would be seen on the terminal like:

This is USART synchronous transfer master example.
Master will send data to slave firstly, and then receive data from slave.
Please connect the pins as below shows:
   Master Board          Slave Board
   USART_TX      -------   USART_RX
   USART_RX      -------   USART_TX
   USART_SCLK    -------   USART_SCLK
   GND           -------   GND
Transfer Complete. The data received from slave are:

 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F

Data transfer matched!