TC1784
General Purpose Timer Array (GPTA
®
v5)
User´s Manual
21-61
V1.1, 2011-05
GPTA
®
v5, V1.14
Cell Enabling
After reset all GTCs are disabled. A GTC may be enabled by resetting GTCTRk.
(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 GTC if bit
is modified from 1 to 0.
Cell Deactivation
By programming a GTC to Capture Mode with no edge selected
(GTCCTRk.FED = GTCCTRk.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.
Cell Enabling on Event
A GTC can be enabled by an event in a GTC with lower index number. For this purpose,
the local event function of an GTC must be temporary disabled by setting
GTCCTRk.EOA (Enable-Of-Action) to 1. Because bit EOA is hardware protected,
intrinsic read-modify-write assembler operations
only disable the GTC if bit EOA is
modified from 0 to 1. Both operations will clear GTCCTRk.CEN and now a local event
cannot affect the GTC. When a preceding GTC generates and communicates an event
(or OIA) via its communication link M1O/M0O, at least one of the M1I/ M0I input lines
changes its state to 1. This condition clears bit GTCCTRk.EOA of the disabled GTC via
the OR gate as shown in
. Now GTCCTRk.CEN is set and the cell is
enabled for local events.
It is also possible to enable the following GTC via the communication link for local events.
For this purpose, the GTCCTRk.EOA bit of the following GTC must be set, too. If bit
GTCCTRk.OCM2 of the preceding GTC is 1, the enable action will take place at the
same time as in the preceding GTC. Otherwise, the GTC will be enabled later on a
capture/compare event in the preceding GTC, provided OCM0 or OCM1 of this GTC is
different from 0.
In this way, several GTCs can be enabled at the same time or one after the other.
Normally, the cells will be used in One Shot Mode, and an interrupt will be generated
after the last event to evaluate the data and to prepare the next enable sequence.
A disabled GTC (GTCCTRk.CEN = 0) behaves as an inactive cell.
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 ...