13-10
DSP56367
MOTOROLA
Timer/ Event Counter
Timer/Event Counter Programming Model
The INV bit is cleared by the hardware RESET signal or the software RESET instruction.
Note:
The INV bit affects both the timer and GPIO modes of operation. To ensure
correct operation, this bit should be changed only when one or both of the
following conditions is true:
•
The timer has been disabled by clearing the TE bit in the TCSR.
•
The timer is in GPIO mode.
The INV bit does not affect the polarity of the prescaler source when TIO0 is used as input to
the prescaler.
13.3.4.6
TCSR Timer Reload Mode (TRM) Bit 9
The TRM bit controls the counter preload operation.
In timer (0–3) and watchdog (9–10) modes, the counter is preloaded with the TLR value after
the TE bit is set and the first internal or external clock signal is received. If the TRM bit is set,
the counter is reloaded each time after it reaches the value contained by the TCR. In PWM
mode (7), the counter is reloaded each time counter overflow occurs. In measurement (4–5)
modes, if the TRM and the TE bits are set, the counter is preloaded with the TLR value on
each appropriate edge of the input signal.
If the TRM bit is cleared, the counter operates as a free-running counter and is incremented on
each incoming event. The TRM bit is cleared by the hardware RESET signal or the software
RESET instruction.
13.3.4.7
TCSR Direction (DIR) Bit 11
The DIR bit determines the behavior of the TIO0 signal when it is used as a GPIO pin. When
the DIR bit is set, the TIO0 signal is an output; when the DIR bit is cleared, the TIO0 signal is
6
Event is captured on the
rising edge of the signal
from the TIO0 signal
Event is captured on the
falling edge of the signal
from the TIO0 signal
—
—
7
—
—
Pulse generated by the
timer has positive polarity
Pulse generated by the timer
has negative polarity
9
—
—
Pulse generated by the
timer has positive polarity
Pulse generated by the timer
has negative polarity
10
—
—
Pulse generated by the
timer has positive polarity
Pulse generated by the timer
has negative polarity
Table 13-4 Inverse Bit
Mode
TIO0 Programmed as Input
TIO0 Programmed as Output
INV = 0
INV = 1
INV = 0
INV = 1
Summary of Contents for DSP56367
Page 16: ...xvi MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Page 22: ...xxii MOTOROLA List of Figures Figure Number Title Page Number ...
Page 26: ...xxvi MOTOROLA List of Tables Table Number Title Page Number ...
Page 148: ...4 6 DSP56367 MOTOROLA Design Considerations PLL Performance Issues ...
Page 248: ...9 30 DSP56367 MOTOROLA Serial Host Interface SHI Programming Considerations ...
Page 306: ...10 58 DSP56367 MOTOROLA Enhanced Serial Audio Interface ESAI ESAI Initialization Examples ...
Page 389: ...Bootstrap ROM Contents MOTOROLA DSP56367 A 15 end ...
Page 390: ...A 16 DSP56367 MOTOROLA Bootstrap ROM Contents ...
Page 432: ...C 8 DSP56367 MOTOROLA JTAG BSDL ...
Page 484: ...D 52 DSP56367 MOTOROLA Programmer s Reference ...
Page 490: ...E 6 DSP56367 MOTOROLA Power Consumption Benchmark ...
Page 516: ...F 26 DSP56367 MOTOROLA IBIS Model ...
Page 522: ...Index 6 MOTOROLA Index ...
Page 523: ......