SLAU847F October 2022 – March 2026 MSPM0L1105 , MSPM0L1106 , MSPM0L1116 , MSPM0L1117 , MSPM0L1227 , MSPM0L1227-Q1 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2116 , MSPM0L2117 , MSPM0L2227 , MSPM0L2227-Q1 , MSPM0L2228 , MSPM0L2228-Q1
The UART has two FIFOs – one for receiving (RXDATA), and one for transmitting (TXDATA). Each FIFO has a depth of 4 entries. Reading RXDATA returns a 12-bit value consisting of 8 data bits and 4 error flags. Writing to TXDATA places 8-bit data bytes into the transmit FIFO.
Both FIFOs are disabled and act as 1-byte-deep holding registers upon leaving reset. The FIFOs are enabled by setting the FEN bit in UARTx.CTL0. FIFO status can be monitored through the UARTx.STAT register and interrupt events.
Hardware monitors empty, full and overrun conditions
The UARTx.STAT register contains empty and full flags (TXFE, TXFF, RXFE, and RXFF bits). The CPU_INT.RIS register shows overrun status of the receive FIFO through the OVRERR bit. There is no indicator for a transmit FIFO overrun. Writes are lost if data overruns the transmit FIFO. The empty and full flags are set according to the status of the 1-byte-deep holding registers if the FIFOs are disabled. The oldest data is overwritten with the new received data when receiving more data than the FIFO can capture.
The FIFOs generate interrupts at trigger points controlled through the UARTx.IFLS register. Both FIFOs can be individually configured to trigger interrupts at different points. Available configurations for the transmit FIFO are ¾, ½, ¼, and empty. Available configurations for the receive FIFO are ¼, ½, ¾, and full.
For example:If the 3/4 option is selected for the receive FIFO, the UART generates a receive interrupt after 3 data bytes are received.
Both FIFOs are configured to trigger an interrupt at the 1/2 mark directly following a reset. The FIFO integrity is indeterminate under the following conditions: