User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 601
UG585 (v1.11) September 27, 2016
Chapter 19: UART Controller
CPU_1x Clock
Refer to section 25.2 CPU Clock, for general clock programming information. The CPU_1x clock runs
asynchronous to the UART reference clock.
Reference Clock
The generation of the reference clock in the PS clock subsystem is controlled by the
slcr.UART_CLK_CTRL register. This register can select the PLL that the clock is derived from and sets
the divider frequency. This register also controls the clock enables for each UART controller. The
generation of the UART reference clock is described in section 25.6.3 SDIO, SMC, SPI, Quad-SPI and
UART Clocks.
Operating Restrictions
Note: The clock operating restrictions are described in section 19.1.3 Notices.
Example: Configure Reference Clock
The clock can be based on any of the PLLs in the PS clock subsystem. In this example, the I/O PLL is
used with a 1,000 MHz clock and the clock divisor is 0x14 to generate a 50 MHz clock for the UART
controllers.
1. Program the UART Reference clock. Write 0x0000_1401 to the slcr.UART_CLK_CTRL register.
a. Clock divisor, slcr.UART_CLK_CTRL[DIVISOR] = 0x14.
b. Select the IO PLL, slcr.UART_CLK_CTRL[SRCSEL] = 0.
c. Enable the UART 0 Reference clock, slcr.UART_CLK_CTRL [CLKACT0] = 1.
d. Disable UART 1 Reference clock, slcr.UART_CLK_CTRL [CLKACT1] bit = 0.
19.4.2 Resets
The controller reset bits are generated by the PS, see Chapter 26, Reset System.
Example: Controller Reset
Option 1. Assert Controller Reset: Set both slcr.UART_RST_CTRL[UARTx_REF_RST,
UARTx_CPU1X_RST]
bits = 1.
Option 2. De-assert Controller Reset: Clear both slcr.UART_RST_CTRL[UARTx_REF_RST,
UARTx_CPU1X_RST] bits = 0.