ST2202A
12. TIMER/EVENT COUNTER
12.1 Prescaler
12.1.1 Function Description
TheꢀST2202ꢀhasꢀthreeꢀtimers,ꢀBaseꢀtimer,ꢀTimerꢀ0ꢀandꢀTimerꢀ1,ꢀ
andꢀtwoꢀprescalersꢀPRESꢀandꢀPREW.ꢀThereꢀareꢀtwoꢀclockꢀ
sources,ꢀSYSCKꢀandꢀINTX,ꢀforꢀPRESꢀandꢀoneꢀclockꢀsource,ꢀ
ꢀ
CLK32,ꢀforꢀPREW.ꢀReferꢀtoꢀFIGUREꢀ12ꢁ1ꢀ
TABLE 12-1 Summary of Timer Registers
Address Name
R/W
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Default
$020 BTEN
$021 BTR
R/Wꢀ
R/Wꢀ
Rꢀ
ꢁꢀ
ꢁꢀ
ꢁꢀ
ꢁꢀ
ꢁꢀ
ꢁꢀ
BTEN[4]ꢀ BTEN[3]ꢀ BTEN[2]ꢀ BTEN[1]ꢀ BTEN[0]ꢀ ꢁꢀꢁꢀꢁ0ꢀ0000ꢀ
BTR[4]ꢀ BTR[3]ꢀ BTR[2]ꢀ BTR[1]ꢀ BTR[0]ꢀ ꢁꢀꢁꢀꢁ0ꢀ0000ꢀ
PRS[7]ꢀ PRS[6]ꢀ PRS[5]ꢀ PRS[4]ꢀ PRS[3]ꢀ PRS[2]ꢀ PRS[1]ꢀ PRS[0]ꢀ 0000ꢀ0000ꢀ
SRESꢀ SENAꢀ SENTꢀ
$023 PRS
Wꢀ
ꢁꢀ
ꢁꢀ
ꢁꢀ
ꢁꢀ
ꢁꢀ
ꢁꢀ
000ꢀꢁꢀꢁꢀꢁꢀꢁꢀꢁꢀ
$024 T0M
$025 T0C
$026 T1M
$027 T1C
R/Wꢀ
R/Wꢀ
R/Wꢀ
R/Wꢀ
Rꢀ
Wꢀ
R/Wꢀ
R/Wꢀ
ꢁꢀ ꢁꢀ T0M[5]ꢀ T0M[4]ꢀ
T0M[2]ꢀ T0M[1]ꢀ T0M[0]ꢀ ꢀ ꢁꢀꢁ00ꢀ ꢀ ꢁ000ꢀ
T0C[7]ꢀ T0C[6]ꢀ T0C[5]ꢀ T0C[4]ꢀ T0C[3]ꢀ T0C[2]ꢀ T0C[1]ꢀ T0C[0]ꢀ 0000ꢀ0000ꢀ
ꢁꢀ ꢁꢀ ꢁꢀ T1M[4]ꢀ T1M[3]ꢀ T1M[2]ꢀ T1M[1]ꢀ T1M[0]ꢀ ꢀ ꢁꢀꢁꢀꢁ0ꢀ0000ꢀ
T1C[7]ꢀ T1C[6]ꢀ T1C[5]ꢀ T1C[4]ꢀ T1C[3]ꢀ T1C[2]ꢀ T1C[1]ꢀ T1C[0]ꢀ 0000ꢀ0000ꢀ
XSELꢀ
XSELꢀ
ꢁꢀ
OSTPꢀ
OSTPꢀ
XSTPꢀ
XSTPꢀ
IRBTꢀ
IEBTꢀ
WSKPꢀ WAITꢀ IRRENꢀ HIGHꢀ
WSKPꢀ WAITꢀ IRRENꢀ LVDENꢀ 0000ꢀ0000ꢀ
0000ꢀ0001ꢀ
$030 SYS
ꢁꢀ
$03C IREQ
$03E IENA
ꢁꢀ
ꢁꢀ
IRPTꢀ
IEPTꢀ
IRT1ꢀ
IET1ꢀ
IRT0ꢀ
IET0ꢀ
IRDACꢀ
IEDACꢀ
IRXꢀ
IEXꢀ
ꢀ ꢁꢀꢁ00ꢀ0000ꢀ
ꢀ ꢁꢀꢁ00ꢀ0000ꢀ
ꢁꢀ
ꢀ
ꢀ
ꢀ
ꢀ
FIGURE 12-1 Structure Of Two Prescalers
ꢀ
ꢀ
ꢀ
Verꢀ2.5ꢀ
25
/75
ꢀ
9/16/2008ꢀ