17-31
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
not exist are read-only bits and are always fixed at 0.
To prevent generating unnecessary interrupts, the corresponding interrupt flag should be
cleared before enabling interrupts.
T16B Ch.
n
Comparator/Capture
m
Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
T16B_
n
CCCTL
m
15
SCS
0
H0
R/W
–
14
–
12
CBUFMD[2:0]
0x0
H0
R/W
11
–
10
CAPIS[1:0]
0x0
H0
R/W
9
–
8
CAPTRG[1:0]
0x0
H0
R/W
7
–
0
–
R
6
TOUTMT
0
H0
R/W
5
TOUTO
0
H0
R/W
4
–
2
TOUTMD[2:0]
0x0
H0
R/W
1
TOUTINV
0
H0
R/W
0
CCMD
0
H0
R/W
Bit 15
SCS
This bit selects either synchronous capture mode or asynchronous capture mode.
1 (R/W): Synchronous capture mode
0 (R/W): Asynchronous capture mode
For more information, refer to
“Comparator/Capture
Block Operations - Synchronous
capture mode/ asynchronous capture mode.
”
The T16B_
n
CCCTL
m
.SCS bit is control bit for
capture mode and is in- effective in comparator mode.
Bits 14
–
12 CBUFMD[2:0]
These bits select the timing to load the comparison value written in the T16B_
n
CCR
m
register to the compare buffer. The T16B_
n
CCCTL
m
.CBUFMD[2:0] bits are control bits for
comparator mode and are ineffective in capture mode.
Table 17.7.3 Timings to Load Comparison Value to Compare Buffer
T16B_
n
CCCTL
m
.
CBUFMD[2:0] bits
Count mode
Comparison Value load timing
0x7
–
0x5
Reserved
0x4
Up mode
When the counter becomes equal to the comparison value set previously
Also the counter is reset to 0x0000 simultaneously.
Down mode
When the counter becomes equal to the comparison value set previously
Also the counter is reset to the MAX value simultaneously.
Up/down mode
When the counter becomes equal to the comparison value set previously
Also the counter is reset to 0x0000 simultaneously.
0x3
Up mode
When the counter reverts to 0x0000
Down mode
When the counter reverts to the MAX value
Up/down mode
When the counter becomes equal to the comparison value set previously
or when the counter reverts to 0x0000
0x2
Up mode
When the counter becomes equal to the comparison value set previously
Down mode
Up/down mode
0x1
Up mode
When the counter reaches the MAX value
Down mode
When the counter reaches 0x0000
Up/down mode
When the counter reaches 0x0000 or the MAX value
0x0
Up mode
At the CLK_T16B
n
rising edge after writing to the T16B_
n
CCR
m
register
Down mode
Up/down mode
Bits 11
–
10 CAPIS[1:0]
These bits select the trigger signal for capturing (see Table 17.7.4). The
T16B_
n
CCCTL
m
.CAPIS[1:0] bits are control bits for capture mode and are ineffective in
comparator mode.
Summary of Contents for S1C31D50
Page 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Page 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Page 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Page 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...