Timer/Event Counter
Timer Architecture
MOTOROLA
DSP56305 User’s Manual
9-17
9.3.4
Timer Load Register (TLR)
The Timer Load Register (TLR) is a twenty-four bit write-only register. In all modes, the
counter is preloaded with the TLR value after the TE bit (TCSR Bit 0) is set and a first
event occurs.
If the TRM bit is set:
• In Timer modes(0-3), the counter is reloaded each time after it has reached the
value contained by the Timer Compare Register and the new event occurs.
• In Measurement modes (4-5), if the TE bit is also set, the counter is reloaded with
the TLR value on each appropriate edge of the input signal.
• In the PWM mode (7) the counter is reloaded each time after it has overflowed
and the new event occurs.
• In Watchdog (9-10) modes, the counter is reloaded each time after it has reached
the value contained in the Timer Compare Register (TCPR) and the new event
occurs. In these modes, the counter is also reloaded whenever the TLR is written
with a new value while the TE bit is set.
If the TRM bit is cleared, in all modes the counter operates as a free-running counter.
9.3.5
Timer Compare Register (TCPR)
The Timer Compare Register (TCPR) is a twenty-four bit read/write register that
contains the value to be compared with the counter value. These two values are
compared every timer clock after the TE bit (TCSR Bit 0) is set. When the values match,
the Timer Compare Flag (TCF) bit (TCSR Bit 21) is set and an interrupt is generated if
interrupts are enabled (i.e., the Timer Compare Interrupt Enable (TCIE) bit (TCSR Bit 2)
is set). The TCPR is ignored in Measurement modes.
9.3.6
Timer Count Register (TCR)
The Timer Count Register (TCR) is a twenty-four bit read-only register. In Timer and
Watchdog modes, the counter’s contents can be read at any time by reading the TCR. 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 modes, the TIO signal is used for the input signal.
Summary of Contents for DSP56305
Page 34: ...xxxii DSP56305 User s Manual MOTOROLA ...
Page 40: ...xxxvi DSP56305 User s Manual MOTOROLA ...
Page 41: ...MOTOROLA DSP56305 User s Manual 1 1 SECTION 1 DSP56305 OVERVIEW ...
Page 58: ...1 18 DSP56305 User s Manual MOTOROLA DSP56305 Overview DSP56305 Architecture Overview ...
Page 59: ...MOTOROLA DSP56305 User s Manual 2 1 SECTION 2 SIGNAL CONNECTION DESCRIPTIONS ...
Page 98: ...2 40 DSP56305 User s Manual MOTOROLA Signal Connection Descriptions JTAG OnCE Interface ...
Page 99: ...MOTOROLA DSP56305 User s Manual 3 1 SECTION 3 MEMORY CONFIGURATION ...
Page 119: ...MOTOROLA DSP56305 User s Manual 4 1 SECTION 4 CORE CONFIGURATION ...
Page 144: ...4 26 DSP56305 User s Manual MOTOROLA Core Configuration JTAG Boundary Scan Register BSR ...
Page 145: ...MOTOROLA DSP56305 User s Manual 5 1 SECTION 5 GENERAL PURPOSE I O ...
Page 149: ...HOST INTERFACE HI32 MOTOROLA DSP56305 User s Manual 6 1 SECTION 6 HOST INTERFACE HI32 ...
Page 150: ...6 2 DSP56305 User s Manual MOTOROLA HOST INTERFACE HI32 ...
Page 259: ...MOTOROLA DSP56305 User s Manual 7 1 SECTION 7 ENHANCED SYNCHRONOUS SERIAL INTERFACE ESSI ...
Page 315: ...MOTOROLA DSP56305 User s Manual 8 1 SECTION 8 SERIAL COMMUNICATION INTERFACE SCI ...
Page 347: ...MOTOROLA DSP56305 User s Manual 9 1 SECTION 9 TIMER EVENT COUNTER ...
Page 376: ...9 30 DSP56305 User s Manual MOTOROLA Timer Event Counter Timer Modes of Operation ...
Page 377: ...MOTOROLA DSP56305 User s Manual 10 1 SECTION 10 ON CHIP EMULATION MODULE ...
Page 411: ...MOTOROLA DSP56305 User s Manual 11 1 SECTION 11 JTAG PORT ...
Page 430: ...11 20 DSP56305 User s Manual MOTOROLA JTAG Port DSP56305 Boundary Scan Register ...
Page 431: ...Filter Co Processor MOTOROLA DSP56305 User s Manual 12 1 SECTION 12 FILTER CO PROCESSOR ...
Page 471: ...VITERBI CO PROCESSOR MOTOROLA DSP56305 User s Manual 13 1 SECTION 13 VITERBI CO PROCESSOR ...
Page 522: ...13 52 DSP56305 User s Manual MOTOROLA VITERBI CO PROCESSOR References ...
Page 554: ...14 32 DSP56305 User s Manual MOTOROLA CYCLIC CODE CO PROCESSOR Configuration Examples ...
Page 555: ...MOTOROLA DSP56305 User s Manual A 1 APPENDIX A BOOTSTRAP CODE ...
Page 568: ...A 14 DSP56305 User s Manual MOTOROLA Bootstrap Code ...
Page 569: ...Equates MOTOROLA DSP56305 User s Manual B 1 APPENDIX B EQUATES ...
Page 589: ...MOTOROLA DSP56305 User s Manual C 1 APPENDIX C JTAG BSDL ...
Page 590: ...C 2 DSP56305 User s Manual MOTOROLA JTAG BSDL ...
Page 600: ...C 12 DSP56305 User s Manual MOTOROLA JTAG BSDL ...
Page 601: ...MOTOROLA DSP56305 User s Manual D 1 APPENDIX D PROGRAMMING REFERENCE ...
Page 602: ...D 2 DSP56305 User s Manual MOTOROLA PROGRAMMING REFERENCE ...
Page 661: ...Y MOTOROLA DSP56305 User s Manual Index 11 ...
Page 662: ...Y Index 12 DSP56305 User s Manual MOTOROLA ...