CoX Peripheral Interface V2.1
API Reference
UART

Universal Asynchronous Receivers/Transmitters (UART) Peripheral Driver. More...

Collaboration diagram for UART:

Modules

 xUART
 

CoX UART Peripheral Interface.


 xUART Config and Example
 

CoX UART Config and Config and Example.



Detailed Description

Universal Asynchronous Receivers/Transmitters (UART) Peripheral Driver.

The Universal Asynchronous Receiver/Transmitter (UART) performs a serial-to-parallel conversion on data received from the peripheral, and a parallel-to-serial conversion on data transmitted from the CPU.

The UART controller also supports LIN master mode, IrDA SIR, Flow Control, and Modem.


Contents


1. UART Physical Block

NUC1xx_UART_block.png


2. UART Functional Description


2.1 UART Data Transmission

2.1.1 UART Data Transmit and Receive

The transmit logic performs parallel-to-serial conversion on the data read from the transmit FIFO. The control logic outputs the serial bit stream beginning with a start bit and followed by the data bits (LSB first), parity bit, and the stop bits according to the programmed configuration in the control registers.

2.1.2 UART FIFO

The UART0 has two 64-entry FIFOs; UART1 and UART2 have two 16-entry FIFOs.

2.1.3 UART DMA

UART0/UART1 can be served by the DMA controller.


2.2 UART Serial IR

The UART supports IrDA SIR(Serial Infrared) Transmit Encoder and Receive Decoder, and IrDA mode is selected by setting the IrDA_EN bit in UA_FUN_SEL register.


2.3 UART Modem Support

Support hardware auto flow control/flow control funciton(CTS, RTS) and programmable RTS flow control trigger level(UART0 and UART1 support).


2.4 UART LIN Support

Support LIN function mode.


2.5 UART RS-485 Support(Low Density only)

Support RS-485 function mode.


2.6 UART Interrupt

The UART can generate interrupts when the following conditions are observed:


3. UART Applications


Note:
Here describes the common functions of the UART Peripheral. The CoX Peripheral Interface is based on the functions above.