Table 13-2. General-Purpose Timers Signals (128TQFP) (continued)
Description
Buffer Type
Pin Type
Pin Mux / Pin
Assignment
Pin Number
Pin Name
16/32-Bit Timer 4 Capture/Compare/PWM 0.
TTL
I/O
PM4 (3)
PB0 (3)
PD6 (3)
74
95
127
T4CCP0
16/32-Bit Timer 4 Capture/Compare/PWM 1.
TTL
I/O
PM5 (3)
PB1 (3)
PD7 (3)
73
96
128
T4CCP1
16/32-Bit Timer 5 Capture/Compare/PWM 0.
TTL
I/O
PM6 (3)
PB2 (3)
72
91
T5CCP0
16/32-Bit Timer 5 Capture/Compare/PWM 1.
TTL
I/O
PM7 (3)
PB3 (3)
71
92
T5CCP1
13.3
Functional Description
The main components of each GPTM block are two free-running up/down counters (referred to as
Timer A and Timer B), two prescaler registers, two match registers, two prescaler match registers,
two shadow registers, and two load/initialization registers and their associated control functions.
The exact functionality of each GPTM is controlled by software and configured through the register
interface. Timer A and Timer B can be used individually, in which case they have a 16-bit counting
range for the 16/32-bit GPTM blocks. In addition, Timer A and Timer B can be concatenated to
provide a 32-bit counting range for the 16/32-bit GPTM blocks. Note that the prescaler can only be
used when the timers are used individually.
The available modes for each GPTM block are shown in Table 13-3 on page 958. Note that when
counting down in one-shot or periodic modes, the prescaler acts as a true prescaler and contains
the least-significant bits of the count. When counting up in one-shot or periodic modes, the prescaler
acts as a timer extension and holds the most-significant bits of the count. In input edge count, input
edge time and PWM mode, the prescaler always acts as a timer extension, regardless of the count
direction.
Table 13-3. General-Purpose Timer Capabilities
Prescaler Size
a
Counter Size
Count Direction
Timer Use
Mode
8-bit
16-bit
Up or Down
Individual
One-shot
-
32-bit
Up or Down
Concatenated
8-bit
16-bit
Up or Down
Individual
Periodic
-
32-bit
Up or Down
Concatenated
-
32-bit
Up
Concatenated
RTC
8-bit
16-bit
Up or Down
Individual
Edge Count
8-bit
16-bit
Up or Down
Individual
Edge Time
8-bit
16-bit
Down
Individual
PWM
a. The prescaler is only available when the timers are used individually
Software configures the GPTM using the
GPTM Configuration (GPTMCFG)
register (see page 976),
the
GPTM Timer A Mode (GPTMTAMR)
register (see page 977), and the
GPTM Timer B Mode
(GPTMTBMR)
register (see page 982). When in one of the concatenated modes, Timer A and Timer
B can only operate in one mode. However, when configured in an individual mode, Timer A and
Timer B can be independently configured in any combination of the individual modes.
June 18, 2014
958
Texas Instruments-Production Data
General-Purpose Timers