Timer/ Event Counter
Timer Modes of Operation
MOTOROLA
DSP56367
13-23
Note:
In this mode, internal logic preserves the TIO0 value and direction for an
additional 2.5 internal clock cycles after the DSP56367 hardware RESET signal is
asserted. This ensures that a valid RESET signal is generated when the TIO0
signal is used to reset the DSP56367.
13.4.4.2
Watchdog Toggle (Mode 10)
In this mode, the timer generates an interrupt at a preset rate. Timer 0 also toggles the output
on TIO0.
Set the TE bit to clear the counter and enable the timer. The value the timer is to count is
loaded into the TPCR. The counter is loaded with the TLR value on the first timer clock
received from either the DSP56367 internal clock divided by two (CLK/2) or the prescaler
clock output. Each subsequent timer clock increments the counter. The TIO0 signal is set to
the value of the INV bit.
When the counter equals the value in the TCPR, the TCF bit in the TCSR is set, and a
compare interrupt is generated if the TCIE bit is also set. If the TRM bit is set, the counter is
loaded with the TLR value on the next timer clock and the count is resumed. If the TRM bit is
cleared, the counter continues to be incremented on each subsequent timer clock
When counter overflow has occurred, the polarity of the TIO0 output pin is inverted, the TOF
bit in the TCSR is set, and an overflow interrupt is generated if the TOIE bit is also set. The
TIO0 polarity is determined by the INV bit.
The counter is reloaded whenever the TLR is written with a new value while the TE bit is set.
This process is repeated until the timer is disabled by clearing the TE bit. The counter contents
can be read at any time by reading the TCR register.
Note:
In this mode, internal logic preserves the TIO0 value and direction for an
additional 2.5 internal clock cycles after the DSP56367 hardware RESET signal is
asserted. This ensures that a valid RESET signal is generated when the TIO0
signal is used to reset the DSP56367.
Bit Settings
Mode Characteristics
TC3
TC2
TC1
TC0
Mode
NAME
Kind
TIO0
Clock
1
0
1
0
10
Toggle
Watchdog
Output
Internal
Содержание DSP56367
Страница 16: ...xvi MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Страница 22: ...xxii MOTOROLA List of Figures Figure Number Title Page Number ...
Страница 26: ...xxvi MOTOROLA List of Tables Table Number Title Page Number ...
Страница 148: ...4 6 DSP56367 MOTOROLA Design Considerations PLL Performance Issues ...
Страница 248: ...9 30 DSP56367 MOTOROLA Serial Host Interface SHI Programming Considerations ...
Страница 306: ...10 58 DSP56367 MOTOROLA Enhanced Serial Audio Interface ESAI ESAI Initialization Examples ...
Страница 389: ...Bootstrap ROM Contents MOTOROLA DSP56367 A 15 end ...
Страница 390: ...A 16 DSP56367 MOTOROLA Bootstrap ROM Contents ...
Страница 432: ...C 8 DSP56367 MOTOROLA JTAG BSDL ...
Страница 484: ...D 52 DSP56367 MOTOROLA Programmer s Reference ...
Страница 490: ...E 6 DSP56367 MOTOROLA Power Consumption Benchmark ...
Страница 516: ...F 26 DSP56367 MOTOROLA IBIS Model ...
Страница 522: ...Index 6 MOTOROLA Index ...
Страница 523: ......