Texas Instruments Development Kit for TM4C129x,Tiva™ ARM® Cortex™ -M4 Microcontroller DK-TM4C129X DK-TM4C129X Datenbogen

Produktcode
DK-TM4C129X
Seite von 2182
edge time and PWM mode, the prescaler always acts as a timer extension, regardless of the count
direction.
Table 16-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 1124),
the GPTM Timer A Mode (GPTMTAMR) register (see page 1125), and the GPTM Timer B Mode
(GPTMTBMR) 
register (see page 1129). 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.
16.3.1
GPTM Reset Conditions
After reset has been applied to the GPTM module, the module is in an inactive state, and all control
registers are cleared and in their default states. Counters Timer A and Timer B are initialized to all
1s, along with their corresponding registers:
■ Load Registers:
– GPTM Timer A Interval Load (GPTMTAILR) register (see page 1151)
– GPTM Timer B Interval Load (GPTMTBILR) register (see page 1152)
■ Shadow Registers:
– GPTM Timer A Value (GPTMTAV) register (see page 1161)
– GPTM Timer B Value (GPTMTBV) register (see page 1162)
The following prescale counters are initialized to all 0s:
■ GPTM Timer A Prescale (GPTMTAPR) register (see page 1155)
■ GPTM Timer B Prescale (GPTMTBPR) register (see page 1156)
■ GPTM Timer A Prescale Snapshot (GPTMTAPS) register (see page 1164)
■ GPTM Timer B Prescale Snapshot (GPTMTBPS) register (see page 1165)
16.3.2
Timer Clock Source
The general purpose timer has the capability of being clocked by either the system clock or an
alternate clock source. By setting the
ALTCLK
bit in the GPTM Clock Configuration (GPTMCC)
December 13, 2013
1106
Texas Instruments-Advance Information
General-Purpose Timers