Overview
========
The uart synchronous transfer master example shows how to use usart driver in synchronous way:

In this example, one USART is configured as master node and another is configured as slave node.
Master will send data to slave firstly, and then receive data from slave, slave board will send back
the received data.

Toolchain supported
===================
- IAR embedded Workbench  8.32.3
- Keil MDK  5.27
- MCUXpresso  11.0.0
- GCC ARM Embedded  8.2.1

Hardware requirements
=====================
- Micro USB cable
- LPCXpresso54102 board
- Personal Computer

Board settings
==============
Please connect pins as below shows:
    Master board            Slave board
	J2-18(U1_RXD)  -----    J2-20(U1_TXD)
	J2-20(U1_TXD)  -----    J2-18(U1_RXD)
	J2-5 (U1_SCLK) -----    J2-5 (U1_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 PC host and the CMSIS DAP USB port (J6) on the board
2.  Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
    - 115200 baud rate
    - 8 data bits
    - No parity
    - One stop bit
    - No flow control
3.  Download the program to the target board.
4.  Reset the SoC and run the project.

Running the demo
================
When the demo runs successfully, the log would be seen on the CMSIS DAP 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!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Customization options
=====================

