User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 590
UG585 (v1.11) September 27, 2016
Chapter 19: UART Controller
If no start bit or reset timeout occurs for 1,023 bit periods, a timeout occurs. The Receiver timeout
error bit [TIMEOUT] will be set in the interrupt status register, and the [RSTTO] bit in the Control
register should be written with a 1 to restart the timeout counter, which loads the newly
programmed timeout value.
The upper 8 bits of the counter are reloaded from the value in the [RTO] bit field and the lower 2 bits
are initialized to zero. The counter is clocked by the UART bit clock. As an example, if [RTO] = 0xFF,
then the timeout period is 1,023 bit clocks (256 x 4 minus 1). If 0 is written into the [RTO] bit, the
timeout mechanism is disabled.
When the decrementing counter reaches 0, the receiver timeout occurs and the controller sets the
timeout interrupt status bit uart.Chnl_int_sts_reg0 [TIMEOUT] = 1. If the interrupt is enabled
(uart.Intrpt_mask_reg0 [TIMEOUT] = 1), then the IRQ signal to the PS interrupt controller is asserted.
Whenever the timeout interrupt occurs, it is cleared with a write back of 1 to the Chnl_int_sts_reg0
[TIMEOUT] bit. Software must set uart.Control_reg0 [RSTTO] = 1 to generate further receive timeout
interrupts.
19.2.8 I/O Mode Switch
The mode switch controls the routing of the RxD and TxD signals within the controller as shown in
Figure 19-7. The loopback using the mode switch occurs regardless of the MIO-EMIO routing of the
UARTx TxD/RxD I/O signals. There are four operating modes as shown in Figure 19-7. The mode is
controlled by the uart.mode_reg0 [CHMODE] register bit field: normal, automatic echo, local
loopback and remote loopback.