17 16-BIT PWM TIMERS (T16B)
17-30
Seiko Epson Corporation
S1C31D50/D51 TECHNICAL MANUAL
(Rev. 2.00)
Table 17.7.4 Trigger Signal/Edge for Capturing Counter Value
T16B_nCCCTLm.
CAPTRG[1:0] bits
(Trigger edge)
Trigger condition
T16B_nCCCTLm.CAPIS[1:0] bits (Trigger signal)
0x0 (External trigger signal)
0x2 (Software trigger signal = L) 0x3 (Software trigger signal = H)
0x3 (
↑
&
↓
)
Rising or falling edge of the CAPnm pin input
signal
Altering the T16B_nCCCTLm.CAPIS[1:0] bits from 0x2 to 0x3, or
from 0x3 to 0x2
0x2 (
↓
)
Falling edge of the CAPnm pin input signal
Altering the T16B_nCCCTLm.CAPIS[1:0] bits from 0x3 to 0x2
0x1 (
↑
)
Rising edge of the CAPnm pin input signal
Altering the T16B_nCCCTLm.CAPIS[1:0] bits from 0x2 to 0x3
0x0
Not triggered (disable capture function)
Bit 7
Reserved
Bit 6
TOUTMT
This bit selects whether the comparator MATCH signal of another system is used for generating the
TOUT
nm
signal or not.
1 (R/W): Generate TOUT using two comparator MATCH signals of the comparator circuit pair (0
and 1, 2 and 3, 4 and 5)
0 (R/W): Generate TOUT using one comparator MATCH signal of comparator
m
and the counter
MAX or ZERO signals
The T16B_
n
CCCTL
m
.TOUTMT bit is control bit for comparator mode and is ineffective in capture
mode.
Bit 5
TOUTO
This bit sets the TOUT
nm
signal output level when software control mode (T16B_
n
CCCTL
m
.TOUT-
MD[2:0] = 0x0) is selected for the TOUT
nm
output.
1 (R/W): High level output
0 (R/W): Low level output
The T16B_
n
CCCTL
m
.TOUTO bit is control bit for comparator mode and is ineffective in capture
mode.
Bits 4–2
TOUTMD[2:0]
These bits configure how the TOUT
nm
signal waveform is changed by the comparator MATCH and
counter MAX/ZERO signals.
The T16B_
n
CCCTL
m
.TOUTMD[2:0] bits are control bits for comparator mode and are ineffective in
capture mode.
Table 17.7.5 TOUT Generation Mode
T16B_nCCCTLm.
TOUTMD[2:0]
bits
TOUT generation mode and operations
T16B_nCCCTLm.
TOUTMT bit
Count mode
Output
signal
Change in the signal
0x7
Reset/set mode
0
Up count mode
Up/down count mode
TOUTnm
The signal becomes inactive by the MATCH signal and it
becomes active by the MAX signal.
Down count mode
TOUTnm
The signal becomes inactive by the MATCH signal and it
becomes active by the ZERO signal.
1
All count modes
TOUTnm
The signal becomes inactive by the MATCHm signal and it
becomes active by the MATCHm+1 signal.
TOUTnm+1 The signal becomes inactive by the MATCHm+1 signal
and it becomes active by the MATCHm signal.
0x6
Toggle/set mode
0
Up count mode
Up/down count mode
TOUTnm
The signal is inverted by the MATCH signal and it be-
comes active by the MAX signal.
Down count mode
TOUTnm
The signal is inverted by the MATCH signal and it be-
comes active by the ZERO signal.
1
All count modes
TOUTnm
The signal is inverted by the MATCHm signal and it be-
comes active by the MATCHm+1 signal.
TOUTnm+1 The signal is inverted by the MATCHm+1 signal and it be-
comes active by the MATCHm signal.
0x5
Reset mode
0
All count modes
TOUTnm
The signal becomes inactive by the MATCH signal.
1
All count modes
TOUTnm
The signal becomes inactive by the MATCHm or
MATCHm+1 signal.
TOUTnm+1 The signal becomes inactive by the MATCHm+1 or
MATCHm signal.