TC1784
General Purpose Timer Array (GPTA
®
v5)
User´s Manual
21-77
V1.1, 2011-05
GPTA
®
v5, V1.14
Cell Enabling
After reset all LTCs are disabled. An LTC may be enabled by resetting LTCCTRk.
(Enable-Of-Action) to 0 in Capture Mode or Compare Mode using a standard write
assembler operation
1)
. Because bit
is hardware protected, intrinsic read-modify-
write assembler operations
2)
only enable the LTC in Capture Mode or Compare Mode if
bit
is modified from 1 to 0. If switching to Timer Mode, the LTC cell is enabled. In
Timer Mode every write operation to bit 0…7 of LTCCTRk will enable the LTC.
Cell Deactivation
By programming an LTC to Capture Mode with no edge selected
(LTCCTRk.ILM = LTCCTRk.FED = LTCCTRk.RED = 0), an enabled cell becomes
inactive and performs no action, but continues passing action commands via the
communication link from M1I/M0I to M1O/M0O. Output EO is inactive.
Alternatively, the LTC can be deactivated by setting it into Compare Mode with no active
select line level (LTCCTRk.SOL = LTCCTRk.SOH = 0) but the communication link
remains active. In this mode configuration, EI will be passed to EO.
Cell Enabling on Event
An LTC can be enabled in Capture Mode or Compare Mode by an event in an LTC with
lower index number. For this purpose, the local event function of an LTC must be
temporary disabled by setting LTCCTRk.EOA (Enable-Of-Action) to 1. Because bit EOA
is hardware protected, intrinsic read-modify-write assembler operations
only disables
the LTC if bit EOA is modified from 0 to 1. Both operations will clear LTCCTRk.CEN and
now a local event cannot affect the LTC. When a preceding LTC generates and
communicates an event (or OIA) via the communication link M1O/M0O, at least one of
the M1I/M0I input lines changes its state to 1. This condition clears bit LTCCTRk.EOA of
the disabled LTC via the OR gate as shown in
. Now LTCCTRk.CEN is set
and the LTC is enabled for local events.
It is also possible to enable the following LTC via the communication link for local events.
For this purpose, the bit LTCCTRk.EOA of this cell must be set, too. If bit
LTCCTRk.OCM2 of the preceding cell is 1, the enable action will take place at the same
time as in the preceding cell. Otherwise, the LTC will be enabled later on a
capture/compare event in the preceding LTC, provided LTCCTRk.OCM0 or
LTCCTRk.OCM1 of this cell is different from 0.
In this way, several LTCs can be enabled at the same time or one after the other.
Normally, the LTCs will be used in One Shot Mode, and a service request will be
1) Standard TriCore
®
write operations: ST.A, ST.B, ST.D, ST.DA, ST.DD, ST.HST.Q, ST.W
Standard PCP write operations: ST.F, ST.IF,BCOPY, COPY
2) Intrinsic TriCore
®
read-modify-write Operations: LDMST, ST.T, SWAP
Intrinsic PCP read-modify-write Operations: SET.F, XCH.F, CLR.F
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 ...