1 What is the UART Example Component?

The Libraries, Drivers, and Hardware peripherals that make up MCC Melody are collectively referred to as components. The Example Components are a new type of MCC Melody component that provide users configuration instructions to follow in setting up Melody components to implement common use case applications. The Example Components also generates the application code for the user to paste into main.c and run the use case.

The UART Example Component provides instructions and example code to configure and run the following use cases for the UART Driver:
  • Using printf to send a message
  • Writing a string
  • Sending commands in UART to control LEDs
  • Echoing back characters sent

For example use case applications that require receiving data, sample error-handling code for common UART errors like Framing Errors and Buffer Overflows may be optionally generated by the UART Example Component.