User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 595
UG585 (v1.11) September 27, 2016
Chapter 19: UART Controller
In automatic flow control mode the request to send output is asserted and de-asserted based on the
current fill level of the receiver FIFO, which results in the far-end transmitter pausing transmission
and preventing an overflow of the UART receiver FIFO. The FDEL field in the Flow Delay register
(Flow_delay_reg0) is used to setup a trigger level on the Receiver FIFO which causes the de-assertion
of the request to send. It remains Low until the FIFO level has dropped to below four less than FDEL.
Additionally in automatic flow control mode, the UART only transmits while the clear to send input
is asserted. When the clear to send is de-asserted, the UART pauses transmission at the next
character boundary.
If flow control is selected as automatic, then Flow Delay register must be programmed in order to
have a control on the inflow of data, which is done by de-asserting RTS signal. The value corresponds
to the RxFIFO level at which RTS signal will be de-asserted. It will be re-asserted when the RxFIFO
level drops to four below the value programmed in the Flow Delay register.
The uart.Channel_sts_reg0 [FDELT] register bit is used to monitor the RxFIFO level in comparison with
the flow delay trigger level. The [FDELT] bit is set whenever the RxFIFO level is greater than or equal
to trigger the level programmed in the Flow Delay register.
The trigger level programmed in the Flow Delay register has no dependency on the Rx Trigger Level
register. This is to only control the inflow of data using the RTS modem signal.
The CPU will be interrupted by receive data only on receipt of an Rx Trigger interrupt. Data is
retrieved based on the trigger level programmed in the Rx Trigger Level register.
Programmable Parameters
The UART flow control signals, DTR and RTS are generated by the UART controller.
The RTS flow control signal is used to signal for Rx (ready to send signal to the attached
terminal).
The DTR flow control signal indicates the status of the UART controller (data terminal ready).
The DTR and RTS can be controlled manually by software or automatically by the controller.
In automatic mode, the modem control unit asserts and de-asserts the RTS and DTR signals.
In manual mode, software controls the RTS and DTR signals using uart.Modem_ctrl_reg0.
uart.Modem_ctrl_reg0:
[DTR]: Data Terminal Ready output signal
[RTS]: Request to Send output signal
[FCM]: Select Automatic or Manual flow control.
uart.Modem_sts_reg0:
[DCTS]: Delta Clear To Send (input) status
[DDSR]: Delta Data Set Ready (input) status
[TERI]: Trailing-edge Ring Indicator (input) status
[DDCD]: Delta Data Carrier Detect (input) status