Timer Load Register (Tlr); Timer Compare Register (Tcpr) - Freescale Semiconductor DSP56311 User Manual

24-bit digital signal processor (dsp)
Hide thumbs Also See for DSP56311:
Table of Contents

Advertisement

Triple Timer Module
Mode
INV = 0
6
Event is captured on the rising
edge of the signal from the TIO
signal.
7
9
10

9.4.5 Timer Load Register (TLR)

The TLR is a 24-bit write-only register. In all modes, the counter is preloaded with the TLR value
after the TCSR[TE] bit is set and a first event occurs.
In timer modes, if the TCSR[TRM] bit is set, the counter is reloaded each time after it
reaches the value contained by the timer compare register and the new event occurs.
In measurement modes, if TCSR[TRM] and TCSR[TE] are set, the counter is reloaded
with the value in the TLR on each appropriate edge of the input signal.
In PWM modes, if TCSR[TRM] is set, the counter is reloaded each time after it overflows
and the new event occurs.
In watchdog modes, if TCSR[TRM] is set, the counter is reloaded each time after it
reaches the value contained by the timer compare register and the new event occurs. In
this mode, the counter is also reloaded whenever the TLR is written with a new value
while TCSR[TE] is set.
In all modes, if TCSR[TRM] is cleared (TRM = 0), the counter operates as a free-running
counter.

9.4.6 Timer Compare Register (TCPR)

The TCPR is a 24-bit read/write register that contains the value to be compared to the counter
value. These two values are compared every timer clock after TCSR[TE] is set. When the values
match, the timer compare flag bit is set and an interrupt is generated if interrupts are enabled (that
is, the timer compare interrupt enable bit in the TCSR is set). The TCPR is ignored in
measurement modes.
9-28
Table 9-4. Inverter (INV) Bit Operation (Continued)
TIO Programmed as Input
INV = 1
Event is captured on the
falling edge of the signal
from the TIO signal.
DSP56311 User's Manual, Rev. 2
INV = 0
Pulse generated by
the timer has positive
polarity.
Pulse generated by
the timer has positive
polarity.
Pulse generated by
the timer has positive
polarity.
TIO Programmed as Output
INV = 1
Pulse generated by the
timer has negative
polarity.
Pulse generated by the
timer has negative
polarity.
Pulse generated by the
timer has negative
polarity.
Freescale Semiconductor

Advertisement

Table of Contents
loading

Table of Contents