User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 245
UG585 (v1.11) September 27, 2016
Chapter 8: Timers
8.5.3 Functional Description
Each prescaler module can be independently programmed to use the PS internal bus clock (CPU_1x),
or an external clock from the MIO or the PL. For an external clock, SLCR registers determine the exact
pinout through the MIO or from the PL. The selected clock is then divided down from /2 to /65536,
before being applied to the counter.
The counter module can count up or count down, and can be configured to count for a given
interval. It also compares three match registers to the counter value, and generate an interrupt if one
matches.
The interrupt module combines interrupts of various types: counter interval, counter matches,
counter overflow, event timer overflow. Each type can be individually enabled.
Modes of Operation
Each counter module can be independently programmed to operate in either of the following two
modes:
Interval mode: The counter increments or decrements continuously between 0 and the value of the
Interval register, with the direction of counting determined by the DEC bit of the Counter Control
register. An interval interrupt is generated when the counter passes through zero. The corresponding
match interrupt is generated when the counter value equals one of the Match registers.
X-Ref Target - Figure 8-3
Figure 8-3: Triple Counter Timer Block Diagram
UG585_c8_08_120913
EMIO
Interface
Pre-scaler
TTC 0
16-bit
Counter
Event Timer
MIO
EMIO
CPU_1x
Interrupt
Timer/Clock 0
Wave-Out
Interrupt (GIC)
TTC_0: IRQ ID # 42
TTC_1: IRQ ID # 69
Pre-scaler
16-bit
Counter
Event Timer
Clock-In (EMIO)
Interrupt
Timer/Clock 1
Wave-Out (EMIO)
Pre-scaler
16-bit
Counter
Event Timer
Interrupt
Timer/Clock 2
TTC 1
MIO
EMIO
Wave-Out (EMIO)
Clock-In
Clock-In (EMIO)
APB
Status and Control Registers
Interrupt (GIC)
TTC_0: IRQ ID # 43
TTC_1: IRQ ID # 70
Interrupt (GIC)
TTC_0: IRQ ID # 44
TTC_1: IRQ ID # 71
slcr.MIO_PIN_xx.
slcr.MIO_PIN_xx