The Universal Asynchronous Receiver/Transmitter (UART) API provides a set of functions for using the Tiva UART modules. Functions are provided to configure and control the UART modules, to send and receive data, and to manage interrupts for the UART modules.
The Tiva UART performs the functions of parallel-to-serial and serial-to-parallel conversions. It is very similar in functionality to a 16C550 UART, but is not register-compatible.
Some of the features of the Tiva UART are:
- A 16x12 bit receive FIFO and a 16x8 bit transmit FIFO.
- Programmable baud rate generator.
- Automatic generation and stripping of start, stop, and parity bits.
- Line break generation and detection.
- Programmable serial interface
- 5, 6, 7, or 8 data bits
- even, odd, stick, or no parity bit generation and detection
- 1 or 2 stop bit generation
- baud rate generation, from DC to processor clock/16
- Modem control/flow control
- IrDA serial-IR (SIR) encoder/decoder.
- uDMA interface
- 9-bit operation
The tm4clib UART API provides functionality for accessing the UART hardware of the Tiva C. Please see the individual UART modules for more details. To use the UART, the uart.h header needs to be included:
Enabling and configuring the UART
UART transmission and reception
Sending and receiving data through the UART
UART Interrupt control
Configuring interrupts from the UART
UART DMA control
Enabling Direct Memory Access transfers for the UART
UART FIFO control
Enabling and controlling UART FIFO