User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 585
UG585 (v1.11) September 27, 2016
Chapter 19: UART Controller
19.2 Functional Description
19.2.1 Block Diagram
The block diagram for the UART module is shown in Figure 19-2
19.2.2 Control Logic
The control logic contains the Control register and the Mode register, which are used to select the
various operating modes of the UART.
The Control register enables, disables, and issues soft resets to the receiver and transmitter modules.
In addition, it restarts the receiver timeout period, and controls the transmitter break logic.
Receive line break detection must be implemented in Software. It will be indicated by a Frame Error
followed by one or more zero bytes in the RxFIFO.
The Mode register selects the clock used by the baud rate generator. It also selects the bit length,
parity bit and stop bit to be used by transmitted and received data. In addition, it selects the mode
of operation of the UART, switching between normal UART mode, automatic echo, local loopback, or
remote loopback, as required.
19.2.3 Baud Rate Generator
The baud rate generator furnishes the bit period clock, or baud rate clock, for both the receiver and
the transmitter. The baud rate clock is implemented by distributing the base clock uart_clk and a
single cycle clock enable to achieve the effect of clocking at the appropriate frequency division. The
effective logic for the baud rate generation is shown in Figure 19-3.
X-Ref Target - Figure 19-2
Figure 19-2: UART Block Diagram
Interrupt
Controller (GIC)
TxFIFO
Transmitter
MIO/EMIO
Mode
Switch
UG585_c19_02_020613
Baud Rate
Generator
PS AXI
Interconnect
APB
Slave
Interface
Control and
Status Registers
RxFIFO
Interrupts
Receiver
EMIO
UART TxD
UART RxD
CTS, RTS, DSR, DCD, RI, DTR
UART Ref Clock
Optional
Divide by 8