Triple Timer Modes; Timer Gpio (Mode 0) - Motorola DSP56303 User Manual

24-bit digital signal processor
Table of Contents

Advertisement

Operating Modes
9.3.1

Triple Timer Modes

For all triple timer modes, the following points are true:
n
The TCSR[TE] bit is set to clear the counter and enable the timer. Clearing TCSR[TE]
disables the timer.
n
The value to which the timer is to count is loaded into the TCPR. (This is true for all
modes except the measurement modes (modes 4 through 6).
n
The counter is loaded with the TLR value on the first clock.
n
If the counter overflows, TCSR[TOF] is set, and if TCSR[TOIE] is set, an overflow
interrupt is generated.
n
You can read the counter contents at any time from the Timer Count Register (TCR).

9.3.1.1 Timer GPIO (Mode 0)

Bit Settings
TC3
TC2
TC1
0
0
0
In Mode 0, the timer generates an internal interrupt when a counter value is reached, if the
timer compare interrupt is enabled (see Figure 9-3 and Figure 9-4). When the counter equals
the TCPR value, TCSR[TCF] is set and a compare interrupt is generated if the TCSR[TCIE]
bit is set. If the TCSR[TRM] bit is set, the counter is reloaded with the TLR value at the next
timer clock and the count is resumed. If TCSR[TRM] is cleared, the counter continues to
increment on each timer clock signal. This process repeats until the timer is disabled.
9-6
TC0
Mode
0
0
DSP56303 User's Manual
Mode Characteristics
Name
Function
GPIO
Timer
TIO
Clock
GPIO
Internal

Advertisement

Table of Contents
loading

Table of Contents