Timer Compare Register (Tcpr); Timer Count Register (Tcr) - Motorola DSP56303 User Manual

24-bit digital signal processor
Table of Contents

Advertisement

Triple Timer Module Programming Model
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.4.7

Timer Count Register (TCR)

The TCR is a 24-bit read-only register. In timer and watchdog modes, the contents of the
counter can be read at any time from the TCR register. 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. When the timer is in measurement mode, the
9-34
TIO
DSP56303 User's Manual
signal is used for the input signal.

Advertisement

Table of Contents
loading

Table of Contents