Download Print this page

Motorola DSP56602 User Manual page 8

Triple timer module

Advertisement

Triple Timer Module
Triple Timer Module Programming Model
9.4.2
Timer Prescaler Count Register (TPCR)
The Timer Prescaler Count Register (TPCR) is a 16-bit read-only register that reflects the
current value in the prescaler counter. The register bits are described in the following
paragraphs.
9.4.2.1
Prescaler Counter Value (PC[13:0])—Bits 0–13
The Prescaler Counter Value (PC[13:0]) bits contain the current value in the prescaler
counter.
9.4.2.2
Reserved Bits—Bits 14–15
These reserved bits are read as 0.
9.4.3
Timer Count Register (TCR)
The Timer Count Register (TCR) is a 16-bit read-only register. In Timer and Watchdog
modes, the counter contents can be read at any time by reading the TCR. In
Measurement modes, the TCR is loaded with the current value of the counter on the
appropriate edge of the input signal and its value can be read to determine the width,
period, or delay of the leading edge of the input signal (incoming on the TIO pin).
9.4.4
Timer Load Register (TLR)
The Timer Load Register (TLR) is a 16-bit write-only register. In all modes, the counter is
preloaded with the TLR value after the Timer Enable (TE) bit in the TCSR is set and a
first event occurs.
In Timer modes, if the Timer Reload Mode (TRM) bit is set, the counter is reloaded each
time after it has reached the value contained by the Timer Compare Register (TCR) and
the new event occurs. In Measurement modes, if the TRM bit is set, the counter is
reloaded with the TLR value on each appropriate edge of the input signal, after the
Timer Enable (TE) bit is set. In Pulse Width Modulation (PWM) modes, if the TRM bit is
set, the counter is reloaded each time after it has overflowed and the new event occurs.
In Watchdog modes, if the TRM bit is set, the counter is reloaded each time after it has
reached 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 the TE bit is set. In all modes, if the TRM bit is cleared, the counter operates as free
running counter.
9-8
Freescale Semiconductor, Inc.
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
DSP56602 User's Manual
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA

Advertisement

loading