Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Introduction

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.
Source path for the driver:
 

Driver Sources

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. 

Driver NamePath in VitisPath in Github
uartps<Vitis Install Directory>/data/embedded/XilinxProcessorIPLib/drivers/uartpshttps://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/uartps


Info

Note: To view the sources for a particular release, use the rel-version tag in github.  For example, for the 2020.1 release, the proper version of the code is https://github.com/Xilinx/embeddedsw/tree/

master

xilinx-v2020.1/XilinxProcessorIPLib/drivers/uartps


Driver

The driver source code is organized into different folders.

Below diagram

  The table below shows the uartps driver source organization

uartps


Directory
Description
|

doc

-- Doc -

Provides the API and data structure details

|
- Examples - Reference application to

data

Driver .tcl and .mdd file

examples

Example applications that show how to use the driver

APIs and calling sequence
|
- Source -

features

src

Driver source files


Driver Implementation

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. 

Controller

Features

Supported:

Programmable baud rate generator
64-byte receive and transmit FIFOs
Programmable protocol:
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
Interrupts generation
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

Standalone Driver Supported Features

The uartps Standalone driver support the below things.
Programmable baud rate generator
64-byte receive and transmit FIFOs
Parity, framing and overrun error detection
Line-break generation and detection
Interrupts generation
RxD and TxD modes: Normal/echo and diagnostic loopbacks using the mode switch
Known issues

Known Issues and Limitations

NoneTest cases

Example Applications

Refer below pah for testing different examples for each feature of the IP.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. 



2017.4
Summary:
  • xuartps: Fix the Buffer Overflow issue in the Receive path.
Commits:
  • ebf447c xuartps: Fix the Buffer Overflow issue in the Receive path.

2018.1

  • None

2018.2

  • None

2018.3

Summary:

  • uartps: Resolves MISRA-C:2012 compliance mandatory violations.

Commits:

  • 04cf58b uartps: Resolves MISRA-C:2012 compliance mandatory violations.

2019.1

  • None

2019.2

  • None

2020.1

2020.2

None
Test name

ChangeLog

2016.3
Summary:
  • uartps: Modified the transmission break bit set logic.
Commits:
  • e4285c4 uartps: Modified the transmission break bit set logic.
2016.4
  • None
2017.1
Summary:
  • xuartps: Fixed compilation warnings
  • uartps: sync UART_CLK_FREQ_HZ parameter with xparameters.h file uart frequency parameter macro
  • uartps : Fixed compilation warnings
  • uartps : Added xil_printf statement in examples
  • uartps: Added readme.txt file to generate doxygen for examples
Commits:
  • 64da84b xuartps : Fixed compilation warnings
  • 74c9d16 uartps: sync UART_CLK_FREQ_HZ parameter with xparameters.h file uart frequency parameter macro
  • 9f97f45 uartps: Fixed compilation warnings
  • e11fddf uartps : Added xil_printf statement in examples
  • d586063 uartps: Added readme.txt file to generate doxygen for examples
2017.2
  • None
2017.3
Summary:
  • Updated the source files to updated addtogroup version numbers
Commits:
  • 04cf58b Updated the source files to updated addtogroup version numbers
Example SourceDescription
Uart Interrupt examplexuartps_intr_example.cThis example does basic read and write test with interrupts.
Uart polled examplexuartps_polled_example.cThis example does basic read and write test using polling.
Uart hello world examplexuartps_hello_world_example.cThis example prints a string.

Example Application Usage

Uart Interrupt example

This example does basic read and write test with interrupts.

Expected Output


Code Block
Successfully ran UART Interrupt Example Test

Uart polled example


This example does basic read and write test using polling.
Expected Output


Code Block
Successfully ran UART Polled Mode Example Test

Uart hello world example


This example prints a string.
Expected Output


Code Block
HelloWorld
Successfully ran Uartps hello world Example

Example Design Architecture

NA


2020.2

2020.1

2019.2

None

2019.1

None

2018.3