4 UART Configuration

4.1 Builder: Add UART Driver

  1. Application Builder: Click 'Add Component', Uart, (MCC default configuration)
  2. Filter on 'Uart' then click the
    icon, to add the UART Driver.

4.2 UART Driver PLIB Dependency Selection

Once a UART Driver is added, a UART PLIB (Peripheral Library) will be selected as a dependency.

Click the UART (None) component block in MCC Builder to bring the UART Driver to focus.
Tip: Use Curiosity Nano Schematics, to help to find Curiosity Nano Platform references.
The example image below:
  1. The Serial/CDC port for the AVR128DB48 Curiosity Nano is connected to UART3.
  2. The Serial/CDC port for the PIC18F57Q43 Curiosity Nano is connected to UART 1, 3 or 5.
  3. The Serial/CDC port for the dsPIC33CK64MC105 Curiosity Nano is not specified, i.e., any UART PLIB can be selected.

So, in some cases different UART PLIBs can be used for certain PIC MCUs due to Peripheral Pin Select (PPS). In this case, the specific pins used for UART Tx and UART Rx play a significant role.