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 RTDMA channel (see the Real-Time
Direct Memory Access (RTDMA) chapter and enable the RTDMA options in the UARTDMACTL
register.
- Enable the UART by setting the
UARTEN bit in the UARTCTL register.