beautypg.com

Ee table 5), Figure 3, Figure 3. in this mode, the t – Rainbow Electronics AT89C51RC User Manual

Page 10: At89c51rc

background image

AT89C51RC

10

Figure 3. Timer 2 Auto Reload Mode (DCEN = 0)

OSC

EXF2

TF2

T2EX PIN

T2 PIN

TR2

EXEN2

C/T2 = 0

C/T2 = 1

CONTR OL

RELO AD

CONTROL

TRANSITION

DETECTOR

TIMER 2

INTERRUPT

12

RCAP2L

RCAP2H

TH2

TL2

OVERFLOW

Table 5. T2MOD—Timer 2 Mode Control Register

T2MOD Address = 0C9H

Reset Value = XXXX XX00B

Not Bit Addressable

T2OE

DCEN

Bit

7

6

5

4

3

2

1

0

Symbol Function

Not implemented, reserved for future

T2OE

Timer 2 Output Enable bit

DCEN

When set, this bit allows Timer 2 to be configured as an up/down counter