Registers
1494
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
64-Bit Timer Plus
Table 30-17. Timer Control Register (TCR) Field Descriptions (continued)
Bit
Field
Value
Description
9
TIEN12
Timer input gate enable bit. Allows timer input pin TM64P_IN12 to gate the internal timer clock
source (CLKSRC = 0). Timer starts counting when TM64P_IN12 transitions from low to high.
Timer stops counting when TM64P_IN12 transitions from high to low.
0
Timer clock is not gated by TM64P_IN12.
1
Timer clock is gated by TM64P_IN12.
8
CLKSRC12
CLKSRC determines the selected clock source for the timer.
0
Internal clock
1
External clock on TM64P_IN12
7-6
ENAMODE12
0-3h
Enabling mode: determines the enabling modes fo the timer.
0
The timer is disabled (not counting) and maintains current value.
1h
The timer is enabled one time. The timer stops after the counter reaches the period.
2h
The timer is enabled continuously, TIM
n
increments until the timer counter matches the period,
resets the timer counter to 0 on the cycle after matching and continues.
3h
The timer is enabled continuously with period reload, TIM
n
increments until the timer counter
matches the period, resets the timer counter to 0 on the cycle after matching, reloads the period
register with the values in the reload registers (REL
n
), and continues counting.
5-4
PWID12
0-3h
Pulse width - Determines the pulse width on the TSTAT12 bit (and the TM64P_OUT12 pin)
when the clock/pulse mode is set to pulse.
0
TSTAT12 stays active for one timer clock cycle when the timer counter reaches the period.
1h
TSTAT12 stays active for two timer clock cycles when the timer counter reaches the period.
2h
TSTAT12 stays active for three timer clock cycles when the timer counter reaches the period.
3h
TSTAT12 stays active for four timer clock cycles when the timer counter reaches the period.
3
CP12
Clock/Pulse bit - Determines whether the TM64P_OUT12 output event should behave as a 50%
duty-cycle clock or a signal pulse.
0
Pulse Mode. TM64P_OUT12 goes active after the timer counter reaches the period. The pulse
width is determined by PWID12.
1
Clock Mode. TM64P_OUT12 will behave as a 50% duty cycle signal. It toggles high-to-low or
low-to-high when the timer counter reaches zero.
2
INVINP12
Invert TM64P_IN12. Only affects operation if CLKSRC = 1.
0
Uninverted TM64P_IN12 signal drives timer.
1
Inverted TM64P_IN12 signal drives timer.
1
INVOUTP12
Invert TM64P_OUT12.
0
TM64P_OUT12 signal is not inverted.
1
TM64P_OUT12 signal is inverted.
0
TSTAT12
Timer status. Drives the value of timer output TM64P_OUT12 when it is configured to function
as timer output.
0
TM64P_OUT12 signal is not asserted.
1
TM64P_OUT12 signal is asserted.