EXAMPLE NAME: XMC4700_UART

HISTORY:
V1.0.0 initial version 

OVERVIEW: 
XMC4700/XMC4800 UART demo based on XMC Lib.

REQUIREMENTS:
1) "XMC4700 Relax Kit" or 
   "XMC4700 Relax Lite Kit" or 
   "XMC4700 Relax Kit for 5V Shields" or 
   "XMC4800 Relax EtherCAT Kit" 
2) Micro USB Cable 
3) Windows PC/Laptop installed with DAVE v4 (Version 4.1.4 or higher)

DESCRIPTION:
This UART example is based on the easy to use XMC Lib and initializes the UART with 19200baud, 
8 data bits, 1 stop bit, no parity.
After initialization of DAVE, the string "Infineon" is sent.
After 10 bytes are received in polling mode, the 10 bytes are returned to the sender.
Please be aware, on your Relax Kit hardware the ports Tx(P1.5)/Rx(P1.4) of XMC4700/4800 are connected 
to the USB debug interface which bridges the UART lines to a VCOM USB device available to the 
outside world on USB plug X101. 

Source structure:
1)main.c         configuration and initialization of modules
                 transmit/receive on UART
				 
XMC Lib components used:
1)XMC_USIC_*     Purpose: General configuration and control of the USIC module 
                 - select input source
                 - FIFO control
2)XMC_UART_*     Purpose: Specific configuration and control of the UART driver operating on the USIC-module 
                 - start driver
                 - set baudrate, start-bit, stop-bit, parity
                 - receive/transmit of data
3)XMC_GPIO_*     Input/Output configuration of the Rx(P1.4)/Tx(P1.5) pins  

BUILD:
Please note, the project has to be rebuild after importing because the build result folder 
has been deleted to reduce the size.
1) Import the project
2) Build and flash the application to the device using USB X101 connection

SETUP:
1) Connect Micro USB cable to Relax Kit USB plug X101 and to a PC/laptop.
2) Check inside the "Computer Management/Device manager" on your PC/Laptop on which
   COM port the "JLink CDC UART Port" appears.
3) Open a terminal (e.g. putty) select the COM port observed inside step 2 and configure
   the serial/UART connection with these parameters: 
     Speed [baud]:     19200
     Data bits:        8
     Stop bit:         1 Stop Bit
     Parity selection: No Parity

HOW TO TEST:
1) After reset
   OBSERVATION: The word "Infineon" appears inside your terminal. 
2) Enter 10 characters to your terminal
   OBSERVATION: After 10 characters have been entered, the 10 characters will appear inside terminal.
