The UART-LIN supports the following
features:
- Programmable baud rate generator
allowing speeds up to 4Mbps
- Separate 8 × 8 transmit (TX) and
8 × 8 receive (RX) first-in first-out (FIFO) buffers to reduce CPU interrupt
service loading
- Programmable FIFO length, including 1-byte deep operation providing conventional
double-buffered interface
- FIFO trigger levels of ¼, ½, ¾.
- Standard asynchronous communication bits for start, stop, and parity
- Line-break generation and detection
- Fully programmable serial interface characteristics:
- 5, 6, 7, or 8 data bits
- Even, odd, stick, or no parity bit generation and detection
- 1 or 2 stop-bit generation
- FIFO, RX FIFO RX time-out, modem status, and error conditions
- Standard FIFO-level and end-of-transmission interrupts
- Efficient transfers using direct
memory access controller (Host DMA):
- Separate channels for
transmit and receive.
- Receive single request
asserted when data is in the FIFO; burst request asserted at programmed
FIFO level.
- Transmit single request
is asserted when there is space in the FIFO; burst request is asserted
at programmed FIFO level.
- Programmable hardware flow control
- Support for standard IrDA and low power IrDA modes.
- Provision to combine both TX and RX FIFOs in transmit mode.
- LIN protocol and features for data transmission and reception.
- In case of transmit operation,
support generation of break or break and synch fields.
- Generation of break field with 13
bits (zeros) followed by delimiter and sync field.
- In case of receive operation,
detection of break field and is able to automatically update baud rate based on
sync field (only LIN mode).
- TXBRK control bit is used for
generation of wake up signal on LIN bus.
- The control bits for break (TXBRK) and break/synch transmission (TXBRKSYNC) in
LIN mode are automatically reset after transmission of break and break/synch
fields respectively.
- Configuration bits to generate delimiter bit times of 1, 2, 3 and 4 (DELIMx).
- Configuration bit to enable automatic baud rate detection (ABDEN).
- Detect break field when 11 or more zeros are received.
- Generate break flag (LINBRK) when break field is successfully received.
- The break flag will be cleared by hardware when the data register is read.
- Generate break time out error flag (LINBTOE) when break field length exceeds 22
bit times.
- Generate synch time out error flag (LINSTOE) when length of synch field exceeds
measurable time.
- When dormant mode is disabled, break and synch data are loaded to RX FIFO and
associated interrupt flags shall be set as in normal UART operation.
- When dormant mode is enabled, break and synch data are not be loaded to RX FIFO
and RX FIFO shall be updated with actual data (PID) only after successful
reception of break/synch fields.
- When automatic baud rate detection is enabled, the minimum baud rate to be
supported is 50 baud and maximum baud rate to be supported is 3M baud. LIN
communication speed: 1kbps to 20kbps.
- Support proper reception of data while break or break/synch fields are
transmitted (master role).
- Support transmission of data while receiving break/synch fields but transmission
baud rate can change potentially due to automatic baud rate adjustment (slave
role).
- UART is configured by software with 8 bit data, LSB first, no parity and 1 stop
bit for operation in LIN mode.