st2064b Sitronix Technology Corporation, st2064b Datasheet - Page 23

no-image

st2064b

Manufacturer Part Number
st2064b
Description
8 Bit Microcontroller With 64k Bytes Rom
Manufacturer
Sitronix Technology Corporation
Datasheet
12.3 Timer 0
12.3.1 Function Description
Ver. 3.0
The Timer0 is an 8-bit up counter. It can be used as a timer or
an event counter. T0C($25) is a real time read/write counter.
When an overflow from $FF to $00, a timer interrupt request
IRT0 will
12.3.2 Timer0 Clock Source Control
Several clock sources can be chosen from for Timer0. It’ s very
important that Timer0 can keep counting as long as SYSCK
Address Name
$025
Bit 7-0:
PRES
T0C
T0M[2~0]
T0C[7-0] : Timer0 up counter register
TCLK/65536
TCLK/32768
R/W
R/W
TCLK/2048
TCLK/8192
TCLK/256
TCLK/32
TCLK/8
TCLK/2
T0M[4] : Control automatic reload operation
T0M[5] : Control Timer 0 enable/disable
SENA : Prescaler enable bit
T0C[7]
T 0 M [2 ]
Bit 7
IN0
IN1
IN2
IN3
IN4
IN5
IN6
IN7
0
0
0
0
1
1
1
1
MUX 8-1
0 : No auto reload
1 : Auto reload
0 : Disable counting
1 : Enable counting
0 : TCLK stop
1 : TCLK counting
T0C[6]
SEL
T 0M [1 ]
Bit 6
0
0
1
1
0
0
1
1
TABLE 12-4 Clock Sources Of Timer0
FIGURE 12-3 Timer0 Structure
TABLE 12-5 Timer0 Register (T0C)
OUT
T0C[5]
Bit 5
T 0 M [0 ]
0
1
0
1
0
1
0
1
SYSCK
23/57
T0C[4]
Bit 4
be generated. Timer0 will stop counting when system clock
stops. Please refer to FIGURE 12-3.
stays active. Refer to TABLE 12-4.
D Flip-Flop
D
T 0 T i m e r C lo c k S o u rce
CK
T C L K /6 5 5 3 6
T C L K /3 2 7 6 8
T C L K /8 1 9 2
T C L K /2 0 4 8
T C L K /2 5 6
T C L K /3 2
T C L K /8
T C L K /2
T0C[3]
Bit 3
T0M[4]
T0M[5]
Q
T0C[2]
Bit 2
8 Bit - UP Counter
CLOCK
Enable
Reload
Auto
T0C[1]
Bit 1
OUT
T0C[0]
Bit 0
IRT0
0000 0000
Default
ST2064B
5/8/09

Related parts for st2064b