User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 242
UG585 (v1.11) September 27, 2016
Chapter 8: Timers
The Status register shows whether the 24-bit counter reaches zero. Regardless of the WDEN bit in the
Zero Mode register, the 24-bit counter always keeps counting down to zero if it is not zero and the
selected clock source is present. Once it reaches zero, the WDZ bit of the Status register is set and
remains set until the 24-bit counter is restarted.
The prescaler block divides down the selected clock input. The CLKSEL signal is sampled at every
rising clock edge.
The internal 24-bit counter counts down to zero and stays at zero until it is restarted. While the
counter is at zero, the zero output signal is High.
Interrupt to PS Interrupt Controller
The pulse length from the SWDT (four CPU_1x clock cycles) is sufficient for the interrupt controller to
capture the interrupt using rising-edge sensitivity.
Reset
The watchdog reset is sent to the PS reset subsystem to cause a non-POR reset, see section
26.3 Reset Effects. The reset output to the MIO pin or EMIOWDTRSTO is active High.
TIP: To generate a signal pulse for the PS_POR_B and other board resets, route the EMIOWDTRSTO
signal from the SWDT through the PL and to a pin that can be externally latched to generate a valid
reset pulse. Alternatively, use an external watchdog timer device that is managed by PS software via a
GPIO output pin. The PS_POR_B reset pulse width requirements are defined in the data sheet.
8.4.4 Register Overview
A register overview of the SWDT is provided in Table 8-3.
Table 8-3: System Watchdog Timer Register Overview
Function Name Overview
Clock select slcr.WDT_CLK_SEL Selects between the CPU_1x and external clock source (MIO/EMIO).
MIO routing slcr.MIO_PIN_xx
Routes the SWDT clock input through the MIO multiplexer or EMIO if
no MIO routing.
Reset reason slcr.REBOOT_STATUS The [SWDT_RST] bit gets set when the SWDT generates a system reset.
Zero mode swdt.MODE
Enable SWDT, enable interrupt and reset outputs on timeout, set
output pulse lengths.
Reload values swdt.CONTROL Set the reload values for prescaler and 24-bit counter on timeout.
Restart swdt.RESTART Cause the prescaler and the 24-bit counter to reload and restart.
Status swdt.STATUS Indicates watchdog reaching zero.