TC1784
General Purpose Timer Array (GPTA
®
v5)
User´s Manual
21-70
V1.1, 2011-05
GPTA
®
v5, V1.14
Operating Mode Selection
The operating mode of an LTC – Free-Running Timer, Reset Timer, Capture, or
Compare Mode – is defined by bit field LTCCTRk.MOD.
Free-Running Timer Mode
The content of the Local Timer Cell Register LTCXRk is initialized by a software write
operation. LTCXRk is incremented by the selected LTCkIN input signal. Level or Edge
Sensitive Mode can be selected for LTCkIN (see
). In Level Sensitive Mode
prescaler clock from the CDC (LTCPRE) can be used to reduce the timer frequency.
Every change of the Local Timer Cell Register LTCXRk (increment, reset, or write
access) is indicated by output signal TO = 1. When the timer reaches its overflow value
(FFFF
H
),
•
the LTCk service request flag is set,
•
the service request output SQTk is activated if control register bit LTCCTRk.REN = 1,
•
the LTCk output line LTCkOUT can be altered (set, reset, toggle, unchanged),
•
the LTCkOUT output line can be altered (set, reset, toggle, unchanged), depending
on bit field LTCCTRk.OCM,
•
an action request, generated by an LTCk internal event or received on the M1I/M0I
input lines, is transferred via the M1O/M0O output lines to the LTC with higher order
number (LTCk+1).
The event output line EO is also activated (set to high) by a software reset when writing
FFFF
H
to register LTCXRk.
Reset Timer Mode
An LTC that is configured in Reset Timer Mode provides the same functionality as in
Free-Running Timer Mode, but is extended by two additional features:
•
The Local Timer Cell Register LTCXRk can be reset to FFFF
H
via the EI line, which
can be activated by an event that occurred in the adjacent LTC with higher order
number.
•
If bit LTCCTRk.CUD is set to 1, the EI line reset event also toggles the logic state of
the SO output line before it clears register bit LTCCTRk.CUD automatically. By
accessing register bit LTCCTRk.SLO, the state of the timer’s output line SO can be
read or explicitly written.
Capture Mode
In Capture Mode, the LTCkIN input signal is used for capture function. Level or edge
Sensitive Modes can be selected (see
). On a capture event, the LTCk:
•
copies the state of the local input data bus (YI) to the LTCXRk register (LTC00 always
copies 0000
H
),
•
sets the LTCk service request flag,
Summary of Contents for TC1784
Page 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Page 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Page 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...