SST89V564RD-33-I-PJ SST [Silicon Storage Technology, Inc], SST89V564RD-33-I-PJ Datasheet - Page 41

no-image

SST89V564RD-33-I-PJ

Manufacturer Part Number
SST89V564RD-33-I-PJ
Description
FlashFlex51 MCU
Manufacturer
SST [Silicon Storage Technology, Inc]
Datasheet
FlashFlex51 MCU
SST89E564RD / SST89V564RD / SST89E554RC / SST89V554RC
5.0 TIMERS/COUNTERS
5.1 Timers
The device has three 16-bit registers that can be used as
either timers or event counters. The three timers/counters
are denoted Timer 0 (T0), Timer 1 (T1), and Timer 2 (T2).
Each is designated a pair of 8-bit registers in the SFRs.
The pair consists of a most significant (high) byte and least
significant (low) byte. The respective registers are TL0,
TH0, TL1, TH1, TL2, and TH2.
5.2 Timer Set-up
Refer to Table 3-10 for TMOD, TCON, and T2CON regis-
ters regarding timers T0, T1, and T2. The following tables
provide TMOD values to be used to set up Timers T0, T1,
and T2.
Except for the baud rate generator mode, the values given
for T2CON do not include the setting of the TR2 bit. There-
fore, bit TR2 must be set separately to turn the timer on.
TABLE
©2003 Silicon Storage Technology, Inc.
Used as
Timer
Used as
Counter
1. The Timer is turned ON/OFF by setting/clearing
2. The Timer is turned ON/OFF by the 1 to 0 transition
bit TR0 in the software.
on INT0# (P3.2) when TR0 = 1 (hardware control).
Mode
5-1: T
0
1
2
3
0
1
2
3
IMER
8-bit Auto-Reload
8-bit Auto-Reload
Two 8-bit Timers
Two 8-bit Timers
13-bit Timer
16-bit Timer
13-bit Timer
16-bit Timer
Function
/C
OUNTER
0
Control
Internal
00H
01H
02H
03H
04H
05H
06H
07H
TMOD
1
External
Control
T5-1.0 1207
0AH
0BH
0CH
0DH
0EH
08H
09H
0FH
2
41
TABLE
TABLE
Used as
Timer
Used as
Counter
Used as
Timer
Used as
Counter
1. The Timer is turned ON/OFF by setting/clearing bit
2. The Timer is turned ON/OFF by the 1 to 0 transition
1. Capture/Reload occurs only on timer/counter overflow.
2. Capture/Reload occurs on timer/counter overflow and a 1
TR1 in the software.
on INT1# (P3.3) when TR1 = 1 (hardware control).
to 0 transition on T2EX (P1.1) pin except when Timer 2 is
used in the baud rate generating mode.
Mode
5-2: T
5-3: T
receive and transmit
Baud rate generator
0
1
2
3
0
1
2
3
16-bit Auto-Reload
16-bit Auto-Reload
same baud rate
16-bit Capture
16-bit Capture
Transmit only
Receive only
IMER
IMER
8-bit Auto-Reload
8-bit Auto-Reload
Mode
Does not run
Not available
13-bit Timer
16-bit Timer
13-bit Timer
16-bit Timer
Function
/C
/C
OUNTER
OUNTER
1
2
Control
Internal
Control
00H
01H
34H
24H
14H
02H
03H
Internal
S71207-04-000
00H
10H
20H
30H
40H
50H
60H
-
T2CON
1
TMOD
1
Data Sheet
External
Control
External
Control
0AH
0BH
08H
09H
36H
26H
16H
T5-3.0 1207
T5-2.0 1207
C0H
D0H
A0H
B0H
E0H
80H
90H
-
12/03
2
2

Related parts for SST89V564RD-33-I-PJ