5 timer capture registers (tcr1–tcr4), 6 timer counters (tcn1–tcn4), 7 timer event registers (ter1–ter4) – Motorola MPC8260 User Manual

Page 522: Timer capture registers (tcr1ðtcr4) -8, Timer counters (tcn1ðtcn4) -8, Timer event registers (ter1ðter4) -8, Timer counter registers (tcn1ðtcn4) -8, 5 timer capture registers (tcr1ðtcr4), 6 timer counters (tcn1ðtcn4), 7 timer event registers (ter1ðter4)

Advertising
background image

17-8

MPC8260 PowerQUICC II UserÕs Manual

MOTOROLA

Part IV. Communications Processor Module

17.2.5 Timer Capture Registers (TCR1ÐTCR4)

Each timer capture register (TCR1ÐTCR4), shown in Figure 17-7, is used to latch the value
of the counter according to TMRx[CE].

17.2.6 Timer Counters (TCN1ÐTCN4)

Each timer counter register (TCN1ÐTCN4), shown in Figure 17-8, is an up-counter. A read
cycle to TCNx yields the current value of the timer but does not affect the counting
operation. A write cycle to TCNx sets the register to the written value, thus causing its
corresponding prescaler, TMRx[PS], to be reset.

Note that the counter registers may not be updated correctly if a write is made while the
timer is not running. Use TRRx to deÞne the preferred count value.

17.2.7 Timer Event Registers (TER1ÐTER4)

Each timer event register (TERx), shown in Figure 17-9, reports events recognized by the
timers. When an output reference event is recognized, the timer sets TERx[REF] regardless
of the corresponding TMRx[ORI]. The capture event is set only if it is enabled by
TMRx[CE]. TER1ÐTER4 can be read at any time.

Writing ones clears event bits; writing zeros has no effect. Both event bits must be cleared
before the timer negates the interrupt.

Bit

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

Field

Latched counter value

Reset

0x0000

R/W

R/W

Addr

0x10D98 (TCR1), 0x10D9A (TCR2), 0x10DA8 (TCR3), 0x10DAA (TCR4)

Figure 17-7. Timer Capture Registers (TCR1ÐTCR4)

Bit

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

Field

Up counter

Reset

0x0000

R/W

R/W

Addr

0x10D9C (TCN1), 0x10D9E (TCN2), 0x10DAC (TCN3), 0x10DAE (TCN4)

Figure 17-8. Timer Counter Registers (TCN1ÐTCN4)

Bits

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

Field

Ñ

REF

CAP

Reset

0x0000

Addr

0x10DB0 (TER1); 0x10DB2 (TER2); 0x10DB4 (TER3); 0x10DB6 (TER4)

Figure 17-9. Timer Event Registers (TER1ÐTER4)

Advertising