TIMERS
10-6
10.1.1.5
Bits 4, 5 - Timer Input Clock Select (TMRx.csel1:0)
User software programs the TMRx.csel bits to select the Timer Clock (TCLOCK) frequency. See
Table 10-3
. As shown in
Figure 10-1
, the bus clock is an input to the timer clock unit. These bits
allow the application to specify whether TCLOCK runs at or slower than the bus clock frequency.
The processor clears these bits upon hardware or software reset (TCLOCK = Bus Clock).
10.1.2
Timer Count Register (TCR0, TCR1)
The Timer Count Register (TCRx) is a 32-bit register that contains the timer’s current count. The
register value decrements with each timer clock tick. When this register value decrements to zero
(terminal count), a timer interrupt is generated. When TMRx.reload is not set for the timer, the
status bit in the timer mode register (TMRx.tc) is set and remains set until the TMRx register is
accessed.
Figure 10-3
shows the timer count register.
Figure 10-3. Timer Count Register (TCR0, TCR1)
The valid programmable range is from 1H to FFFF FFFFH. (Avoid programming TCRx to 0 as it
has varying results as described in
section 10.5, “UNCOMMON TCRX AND TRRX
CONDITIONS” (pg. 10-12)
.)
User software can read or write TCRx whether the timer is running or stopped. Bit 3 of TMRx
determines user read/write control (see
section 10.1.1.4
). The TCRx value is undefined after
hardware or software reset.
Table 10-3. Timer Input Clock (TCLOCK) Frequency Selection
Bit 5
TMRx.csel1
Bit 4
TMRx.csel0
Timer Clock (TCLOCK)
0
0
Timer Clock = Bus Clock
0
1
Timer Clock = Bus Clock / 2
1
0
Timer Clock = Bus Clock / 4
1
1
Timer Clock = Bus Clock / 8
28
24
20
4
0
16
12
8
Timer Count Register (TCR0, TCR1)
Timer Count Value - TCRx.d31:0
D31:0
Содержание i960 Jx
Страница 1: ...Release Date December 1997 Order Number 272483 002 i960 Jx Microprocessor Developer s Manual ...
Страница 24: ......
Страница 25: ...1 INTRODUCTION ...
Страница 26: ......
Страница 35: ...2 DATA TYPES AND MEMORY ADDRESSING MODES ...
Страница 36: ......
Страница 46: ......
Страница 47: ...3 PROGRAMMING ENVIRONMENT ...
Страница 48: ......
Страница 73: ...4 CACHE AND ON CHIP DATA RAM ...
Страница 74: ......
Страница 85: ...5 INSTRUCTION SET OVERVIEW ...
Страница 86: ......
Страница 111: ...6 INSTRUCTION SET REFERENCE ...
Страница 112: ......
Страница 195: ...INSTRUCTION SET REFERENCE 6 83 6 Opcode mov 5CCH REG movl 5DCH REG movt 5ECH REG movq 5FCH REG See Also LOAD STORE lda ...
Страница 233: ...7 PROCEDURE CALLS ...
Страница 234: ......
Страница 256: ......
Страница 257: ...8 FAULTS ...
Страница 258: ......
Страница 291: ...9 TRACING AND DEBUGGING ...
Страница 292: ......
Страница 309: ...10 TIMERS ...
Страница 310: ......
Страница 324: ......
Страница 325: ...11 INTERRUPTS ...
Страница 326: ......
Страница 369: ...12 INITIALIZATION AND SYSTEM REQUIREMENTS ...
Страница 370: ......
Страница 412: ......
Страница 413: ...13 MEMORY CONFIGURATION ...
Страница 414: ......
Страница 429: ...14 EXTERNAL BUS ...
Страница 430: ......
Страница 468: ......
Страница 469: ...15 TEST FEATURES ...
Страница 470: ......
Страница 493: ...A CONSIDERATIONS FOR WRITING PORTABLE CODE ...
Страница 494: ......
Страница 502: ......
Страница 503: ...B OPCODES AND EXECUTION TIMES ...
Страница 504: ......
Страница 515: ...C MACHINE LEVEL INSTRUCTION FORMATS ...
Страница 516: ......
Страница 523: ...D REGISTER AND DATA STRUCTURES ...
Страница 524: ......
Страница 550: ......
Страница 551: ...GLOSSARY ...
Страница 552: ......
Страница 561: ...INDEX ...
Страница 562: ......
Страница 578: ......