13-20
DSP56367
MOTOROLA
Timer/ Event Counter
Timer Modes of Operation
13.4.2.4
Measurement Capture (Mode 6)
In this mode, the timer counts the number of clocks that elapse between starting the timer and
receiving an external signal.
Set the TE bit to clear the counter and enable the timer. The value the timer is to count is
loaded into the TLR. When the first timer clock signal is received, the counter is loaded with
the TLR value. The timer clock signal can be taken from either the DSP56367 clock divided
by two (CLK/2) or from the prescaler clock output. Each subsequent clock signal increments
the counter.
At the first appropriate transition of the external clock detected on the TIO0 signal, the TCF
bit in the TCSR is set and, if the TCIE bit is set, a compare interrupt is generated. The counter
halts. The contents of the counter are loaded into the TCR. The value of the TCR represents
the delay between the setting of the TE bit and the detection of the first clock edge signal on
the TIO0 signal.
If the INV bit is set, a high-to-low transition signals the end of the timing period. If INV is
cleared, a low-to-high transition signals the end of the timing period.
If the counter overflows, the TOF bit is set, and if TOIE is set, an overflow interrupt is
generated.
The counter contents can be read at any time by reading the TCR.
Bit Settings
Mode Characteristics
TC3
TC2
TC1
TC0
Mode
Name
Kind
TIO0
Clock
0
1
1
0
6
Capture
Measurement
Input
Internal
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: ......