14 16-BIT PWM TIMERS (T16B)
14-30
Seiko Epson Corporation
S1C17M12/M13 TECHNICAL MANUAL
(Rev. 1.2)
T16BnCCCTLm.
TOUTMD[2:0]
bits
TOUT generation mode and operations
T16BnCCCTLm.
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 signal.
TOUTnm+1 The signal is inverted by the MATCHm+1 or MATCHm signal.
0x3
Set/reset mode
0
Up count mode
Up/down count mode
TOUTnm
The signal becomes active by the MATCH signal and it be-
comes inactive by the MAX signal.
Down count mode
TOUTnm
The signal becomes active by the MATCH signal and it be-
comes 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 becomes
inactive by the MAX signal.
Down count mode
TOUTnm
The signal is inverted by the MATCH signal and it becomes
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 T16BnCCCTLm.
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
T16BnCCRm
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.