16 16-BIT PWM TIMERS (T16A3)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
16-9
(Rev. 1.0)
TOUT Output Control
16.4.4
The comparator/capture block set in comparator mode can generate TOUT signals using the compare A and com-
pare B signals and can output it to outside the IC. Figure 16.4.4.1 shows the TOUT output circuit (one channel).
TOUTA
output
control
Compare A signal
Compare B signal
T16A
n
CCCTL.TOUTAMD[1:0]
T16A
n
CCCTL.TOUTAINV
TOUTA
n
TOUTB
output
control
Compare A signal
Compare B signal
T16A
n
CCCTL.TOUTBMD[1:0]
T16A
n
CCCTL.TOUTBINV
TOUTB
n
Comparator/capture block Ch.
n
4.4.1 TOUT Output Circuit
Figure 16.
Each timer channel includes two TOUT output circuits and their signal generation and output can be controlled in-
dividually. Although the output circuit and register names use letters ‘A’ and ‘B’ to distinguish two systems, it does
not mean that they correspond to compare A and B.
TOUT generation mode
The T16A
n
CCCTL.TOUTAMD[1:0] bits (for system A) or the T16A
n
CCCTL.TOUTBMD[1:0] bits (for system
B) are used to set how the TOUT signal waveform is changed by the compare A and compare B signals. These
bits are also used to turn the TOUT outputs on and off.
TOUT signal polarity
The TOUT signal polarity can be set using the T16A
n
CCCTL.TOUTAINV bit (for system A) or the
T16A
n
CCCTL.TOUTBINV bit (for system B).
Figure 16.4.4.2 shows the TOUT output waveform.
CLK_T16A
n
T16A
n
CTL.PRESET
T16A
n
CTL.PRUN
Counter value
Compare A signal
Compare B signal
TOUT(A) output
T16A
n
CCCTL register
TOUTAINV
0
1
0
1
0
1
0
1
TOUTAMD[1:0]
0x0
0x0
0x1
0x1
0x2
0x2
0x3
0x3
1 2 3 4 5 0
0
1 2 3 4 5 0 1 2 3 4 5 0 1
(When T16A
n
CCA.CCA[15:0] = 3, T16A
n
CCB.CCB[15:0] = 5)
4.4.2 TOUT Output Waveform
Figure 16.