Introduction
1485
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
64-Bit Timer Plus
External Timer Pin GPIO Mode
The external timer pins (TM64P_IN12 and TM64P_OUT12) can be individually configured to function as
general-purpose input/output (GPIO) pins. In GPIO mode, the pins are able to detect and drive arbitrary
data. The pins are also able to source external interrupt events. Some timer instantiations may not have
external pins, see your device-specific data manual for pin information.
The GPIO interrupt and GPIO enable register (GPINTGPEN) enables the GPIO mode and associated
interrupts. The GPIO data and GPIO direction register (GPDATGPDIR) determines if GPIO-enabled pins
are used as input or output pins; and it is the means by which data is read-from or written-to the GPIO
pins.
Normal timer counting modes cannot be used when the GPIO mode is enabled -- TIM12RS in the timer
global control register (TGCR) cannot be brought out of reset when either GPENO12 or GPENI12 in
GPINTGPEN is asserted.
30.1.11 Interrupt/DMA Event Generation Control and Status
When the PLUSEN bit in the timer global control register (TGCR) is set, the timer supports additional
features for control and status of interrupt and DMA event generation. Interrupt/DMA events are generated
when the count value in the timer counter registers reaches the value specified in the timer period
registers and interrupt/DMA events are also generated when the Event Capture Mode is enabled and an
external event occurs.
To generate events in the case when the value in the timer counter registers equals the value specified in
the timer period registers, set the period compare interrupt enable bit (PRDINTEN
n
) in the interrupt control
and status register (INTCTLSTAT). The event status for this case is reflected in the period compare
interrupt status bit (PRDINTSTAT
n
), which is also in INTCTLSTAT. The PRDINTSTAT
n
bit is cleared by
writing a 1 to the bit.
Similarly, to generate events in Event Capture Mode, set the event interrupt enable bit (EVTINTEN
n
) in
INTCTLSTAT. The event status for this case is reflected in the external interrupt status bit
(EVTINTSTAT
n
) in INTCTLSTAT. The EVTINTSTAT
n
bit is cleared by writing a 1 to the bit.
30.1.12 Power Management
The general-purpose timers can be placed in reduced power modes to conserve power during periods of
low activity. The power management of the peripheral is controlled by the processor Power and Sleep
Controller (PSC). The PSC acts as a master controller for power management for all of the peripherals on
the device. For detailed information on power management procedures using the PSC, see the
Power and
Sleep Controller (PSC)
chapter.
30.1.13 Emulation Considerations
Each timer has an emulation management register (EMUMGT). As shown in
, the FREE and
SOFT bits of EMUMGT determine how the timer responds to an emulation suspend event. An emulation
suspend event corresponds to any type of emulator access to the CPU, such as a hardware or software
breakpoint or a probe point.
Note that during emulation, the timer count values will increment once every timer peripheral clock (not
CPU clock). So when single-steeping though code, the timer values will not update on every CPU clock
cycle.
The timer can respond to emulation events from the CPU based on the configuration of the Emulation
Suspend Source Register (SUSPSRC) in the System Configuration Module. See the
System Configuration
(SYSCFG) Module
chapter for information on SUSPSRC and how it is configured.