Information Manual
DSP1611/17/18/27/28/29 DIGITAL SIGNAL PROCESSOR
April 1998
Lucent Technologies Inc.
DRAFT COPY
12-1
12 Timer
The timer is an internal counter controlled by instructions that write to two control registers. The output of the timer
is an interrupt to the core processor. The timer can be configured to count down once and interrupt or to interrupt
regularly at a programmed interval. With a DSP instruction cycle of 20 ns, the interrupt interval can be set from
40 ns to over 85 seconds.
12.1 Hardware View
5-4210
Figure 12-1. Timer Block Diagram
is a block diagram of the timer. The interface to the DSP core is through the internal data bus (IDB)
and through the interrupt (TIMEOUT). There are four main blocks in the timer (the timer control register timerc, the
prescaler, the 16-bit down-counter, and the period register). The timer control register (timerc) is an 8-bit register
written over the IDB. Bits 0—3 are the prescale number (N) that divides the CKO clock by 2
N + 1
before it goes to
the timer0. Bit 4 (T0EN) enables the CKO to the prescaler. Bit 5 (RELOAD) selects the one-time or the repeated
operation. Bit 6 (DISABLE) powers down the timer for reduced power in sleep mode. Bit 4 in the powerc register
(TIMERDIS) performs the same function, i.e., powering down the timer. Bit 7 can be read and written, but it has no
effect. Bits 8—15 are not implemented in the register but should be written with zeros to make the code compatible
with future device versions. The prescaler divides the CKO frequency by the number 2
N + 1
where N is a binary
number from 0 to 15. The timer, addressed as timer0, is a 16-bit down-counter that can be loaded from program
memory over the IDB bus. It then counts down to zero at the clock rate provided by the prescaler. Upon reaching
zero, the TIME interrupt is issued to the DSP core. The timer will then either wait in a quiescent state for another
command or will automatically repeat the last interrupting period corresponding to RELOAD (bit 5 in timerc). The
timer0 register can also be read over the IDB bus at any time transferring the current state of the counter. The
period register stores the beginning count for the repeat mode and is loaded by a write to timer0.
timerc
N
TIMEOUT
TCLK
IDB
2 to 65536
INTERRUPT
4
0
3
T0EN
4
RELOAD
5
DISABLE
RESERVED
6
7
8
PRESCALE
16
PERIOD
REGISTER
INITIAL
COUNT
CKO
CONTROL
PRESCALE
COUNTER
timer0
16-bit
DIV. BY 2
N + 1
Содержание DSP1611
Страница 18: ...Chapter 1 Introduction...
Страница 27: ...Chapter 2 Hardware Architecture...
Страница 52: ...Chapter 3 Software Architecture...
Страница 116: ...Chapter 4 Instruction Set...
Страница 154: ...Chapter 5 Core Architecture...
Страница 176: ...Chapter 6 External Memory Interface...
Страница 208: ...Chapter 7 Serial I O...
Страница 237: ...Chapter 8 Parallel I O DSP1617 Only...
Страница 261: ...Chapter 9 Parallel Host Interface PHIF DSP1611 18 27 28 29 Only...
Страница 275: ...Chapter 10 Bit I O Unit...
Страница 284: ...Chapter 11 JTAG Test Access Port...
Страница 306: ...Chapter 12 Timer...
Страница 313: ...Chapter 13 Bit Manipulation Unit...
Страница 325: ...Chapter 14 Error Correction Coprocessor DSP1618 28 Only...
Страница 350: ...Chapter 15 Interface Guide...
Страница 367: ...Appendix A Instruction Encoding...
Страница 379: ...Appendix B Instruction Set Summary...
Страница 381: ...aD extractz aS IM16 B 52 aD insert aS arM B 53 aD insert aS IM16 B 54 aD aS aaT B 55...
Страница 437: ...Index...