C8051F340/1/2/3/4/5/6/7

When T2SPLIT = ‘1’, the Timer 2 registers (TMR2H and TMR2L) act as two 8-bit counters. Each counter counts up independently and overflows from 0xFF to 0x00. Each time a capture event is received, the con- tents of the Timer 2 registers are latched into the Timer 2 Reload registers (TMR2RLH and TMR2RLL). A Timer 2 interrupt is generated if enabled.

 

 

TMR2CN

 

T

T

T

T

T

T

T

T

 

F

F

F

2

2

R

2

2

 

2

2

2

C

S

2

C

X

 

H

L

L

E

P

 

S

C

 

 

 

E

 

L

 

S

L

 

 

 

N

 

I

 

 

K

 

 

 

 

 

T

 

 

 

SYSCLK / 12

 

 

 

 

 

 

0

External Clock / 8

 

 

1

CKCON

 

 

 

 

T T T T T T S S

 

 

 

 

3 3 2 2 1 0 C C

 

 

 

 

M M M M M M A A

TMR2RLH

Capture

Enable

Interrupt

H L H L

1 0

 

 

 

0

 

 

 

 

 

 

TCLK

TMR2H

To SMBus

 

 

 

TR2

 

 

1

 

 

 

 

 

 

 

 

 

SYSCLK

 

TMR2RLL

Capture

 

 

 

 

 

 

 

1

 

 

To ADC,

 

 

 

TCLK

TMR2L

 

 

 

SMBus

 

 

 

 

 

 

 

0

 

 

 

 

 

 

USB Start-of-Frame (SOF)

0

 

 

 

Low-Frequency Oscillator

1

 

 

 

Falling Edge

 

 

 

 

 

 

T2CSS

Figure 21.7. Timer 2 Capture Mode (T2SPLIT = ‘1’)

254

Rev. 0.5

Page 254
Image 254
Silicon Laboratories C8051F345, C8051F347, C8051F346, C8051F341, C8051F343, C8051F340 Timer 2 Capture Mode T2SPLIT = ‘1’