To enable and initialize the UART,
perform the following steps:
- Disable the UART by clearing the
UARTEN bit in the UARTCTL register.
- Write the integer portion of the
BRD to the UARTIBRD register.
- Write the fractional portion of
the BRD to the UARTFBRD register.
- Write the desired serial
parameters to the UARTLCRH register.
- Optionally, configure the μDMA channel (see the Micro Direct Memory
Access (µDMA) chapter and enable the DMA options
in the UARTDMACTL register.
- Enable the UART by setting the
UARTEN bit in the UARTCTL register.