24 STC12C5Axx
Technical Summary
0
1
T0 or T1 pin
(sampled)
TL
x
[4:0] TH
x
[7:0]
TF
x
Interrupt
TR
x
0
1
GATE
/INT
x
C//T
OSC/12
0
1
AUXR.
x
OSC
TL
x
[7:0] TH
x
[7:0]
TF
x
Interrupt
0
1
T0 or T1 pin
(sampled)
TR
x
0
1
GATE
/INT
x
C//T
OSC/12
0
1
AUXR.
x
OSC
Mode 0
The timer register is configured as a 13-bit register. As the count rolls over from all 1s to all 0s,
it sets the timer interrupt flag
TFx
. The counted input is enabled to the timer when
TRx
= 1
and either GATE=0 or INTx = 1. Mode 0 operation is the same for Timer0 and Timer1.
Mode 1
Mode1 is the same as Mode0, except that the timer register is being run with all 16 bits.
Mode 2
Mode 2 configures the timer register as an 8-bit counter (TL
x
) with automatic reload. Overflow
from TL
x
does not only set TF
x
, but also reloads TL
x
with the content of TH
x
, which is
determined by user’s program. The reload leaves TH
x
unchanged. Mode 2 operation is the
same for Timer0 and Timer1.
TLx [7:0]
THx [7:0]
Reload
TF
x
Interrupt
0
1
T0 or T1 pin
(sampled)
TR
x
0
1
GATE
/INT
x
C//T
OSC/12
0
1
AUXR.
x
OSC
http://www.DataSheet4U.net/
datasheet pdf - http://www.DataSheet4U.net/