This page gives an overview of uartps driver which is available as part of the Xilinx Vivado and SDK distribution.
The UART controller is a full-duplex asynchronous receiver and transmitter that supports a
wide range of programmable baud rates and I/O signal formats. The controller can
accommodate automatic parity generation and multi-master detection mode.
The UART operations are controlled by the configuration and mode registers. The state of
the FIFOs, modem signals, and other controller functions are read using the status, interrupt
status, and modem status registers.
For more details, please refer zynqmp TRM
which includes link s to the official documentation and resource utilization.
The source code for the driver is included with the Vitis Unified Software Platform installation, as well as being available in the Xilinx Github repository.
The driver source code is organized into different folders. The table below shows the uartps driver source organization.
Provides the API and data structure details
Driver .tcl and .mdd file
Example applications that show how to use the driver features
Driver source files
For a full list of features supported by this IP, please refer zynqmp TRM which includes link s to the official documentation and resource utilization.
Programmable baud rate generator
64-byte receive and transmit FIFOs
6, 7, or 8 data bits
1, 1.5, or 2 stop bits
Odd, even, space, mark, or no parity
Parity, framing and overrun error detection
Line-break generation and detection
RxD and TxD modes: Normal/echo and diagnostic loopbacks using the mode switch
The following features are supported in the uartps Standalone driver.
Loop UART 0 with UART 1 option
Modem control signals: CTS, RTS, DSR, DTR, RI and DCD are available only on the EMIO interface
Known Issues and LimitationsNone
Example ApplicationsRefer to the driver examples directory for various example applications that exercise the different features of the driver. Each application is linked in the table below. The following sections describe the usage and expected output of the various applications. These example applications can be imported into the Vitis IDE from the Board Support Package settings tab.
Example Application Usage
Uart Interrupt example
This example does basic read and write test with interrupts.
Successfully ran UART Interrupt Example Test
Uart polled example
This example does basic read and write test using polling.
Successfully ran UART Polled Mode Example Test
Uart hello world example
This example prints a string.
Successfully ran Uartps hello world Example
Example Design Architecture