SN8P2200 Series
USB 1.1 Low-Speed 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 91
Version 1.7
8.5.2 TnM MODE REGISTER
0ABH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
T1M
T1ENB T1RATE2
T1RATE1
T1RATE0
-
-
T1G1
T1G0
Read/Write R/W
R/W
R/W R/W -
- R/W R/W
After
reset
0 0 0 0 - - 0 0
0ADH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
T2M
T2ENB T2RATE2
T2RATE1
T2RATE0
-
-
T2G1
T2G0
Read/Write R/W
R/W
R/W R/W -
- R/W R/W
After
reset
0 0 0 0 - - 0 0
Bit 7
TnENB:
Tn counter control bit.
0 = Disable Tn timer capture.
1 = Enable Tn timer capture.
Bit [6:4]
TnRATE[2:0]:
Tn timer internal clock select bits.
000 = fcpu/256.
001 = fcpu/128.
…
110 = fcpu/4.
111 = fcpu/2.
Bit [1:0]
TnG1,0:
Tn timer capture trigger selection.
00 = Falling edge trigger for period measurement.
01 = Rising edge trigger for period measurement.
10 = Rising edge start and falling stop for positive pulse width measurement.
11 = Falling edge start and rising stop for negative pulse width measurement.
8.5.3 Tn COUNTING REGISTER
Tn counting register is an 8-bit register and increase one by one when Tn timer active.
0ACH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
T1C
T1C7 T1C6 T1C5 T1C4 T1C3 T1C2 T1C1 T1C0
Read/Write R/W
R/W
R/W R/W R/W R/W R/W R/W
After
reset
0 0 0 0 0 0 0 0
0AEH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
T2C
T2C7 T2C6 T2C5 T2C4 T2C3 T2C2 T2C1 T2C0
Read/Write R/W
R/W
R/W R/W R/W R/W R/W R/W
After
reset
0 0 0 0 0 0 0 0