17 16-BIT PWM TIMERS (T16B)
S1C31D50/D51 TECHNICAL MANUAL
Seiko Epson Corporation
17-31
(Rev. 2.00)
T16B_nCCCTLm.
TOUTMD[2:0]
bits
TOUT generation mode and operations
T16B_nCCCTLm.
TOUTMT bit
Count mode
Output
signal
Change in the signal
0x4
Toggle mode
0
All count modes
TOUTnm
The signal is inverted by the MATCH signal.
1
All count modes
TOUTnm
The signal is inverted by the MATCHm or MATCHm+1 sig-
nal.
TOUTnm+1 The signal is inverted by the MATCHm+1 or MATCHm sig-
nal.
0x3
Set/reset mode
0
Up count mode
Up/down count mode
TOUTnm
The signal becomes active by the MATCH signal and it
becomes inactive by the MAX signal.
Down count mode
TOUTnm
The signal becomes active by the MATCH signal and it
becomes inactive by the ZERO signal.
1
All count modes
TOUTnm
The signal becomes active by the MATCHm signal and it
becomes inactive by the MATCHm+1 signal.
TOUTnm+1 The signal becomes active by the MATCHm+1 signal and
it becomes inactive by the MATCHm signal.
0x2
Toggle/reset mode
0
Up count mode
Up/down count mode
TOUTnm
The signal is inverted by the MATCH signal and it be-
comes inactive by the MAX signal.
Down count mode
TOUTnm
The signal is inverted by the MATCH signal and it be-
comes inactive by the ZERO signal.
1
All count modes
TOUTnm
The signal is inverted by the MATCHm signal and it be-
comes inactive by the MATCHm+1 signal.
TOUTnm+1 The signal is inverted by the MATCHm+1 signal and it be-
comes inactive by the MATCHm signal.
0x1
Set mode
0
All count modes
TOUTnm
The signal becomes active by the MATCH signal.
1
All count modes
TOUTnm
The signal becomes active by the MATCHm or
MATCHm+1 signal.
TOUTnm+1 The signal becomes active by the MATCHm+1 or
MATCHm signal.
0x0
Software control mode
*
All count modes
TOUTnm
The signal becomes active by setting the T16B_
nCCCTLm.TOUTO bit to 1 and it becomes inactive by
setting to 0.
Bit 1
TOUTINV
This bit selects the TOUT
nm
signal polarity.
1 (R/W): Inverted (active low)
0 (R/W): Normal (active high)
The T16B_
n
CCCTL
m
.TOUTINV bit is control bit for comparator mode and is ineffective in capture
mode.
Bit 0
CCMD
This bit selects the operating mode of the comparator/capture circuit
m
.
1 (R/W): Capture mode (T16B_
n
CCR
m
register = capture register)
0 (R/W): Comparator mode (T16B_
n
CCR
m
register = compare data register)
T16B Ch.
n
Compare/Capture
m
Data Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
T16B_nCCRm
15–0 CC[15:0]
0x0000
H0
R/W –
Bits 15–0 CC[15:0]
In comparator mode, this register is configured as the compare data register and used to set the com-
parison value to be compared with the counter value.
In capture mode, this register is configured as the capture register and the counter value captured by
the capture trigger signal is loaded.