15 16-BIT PWM TIMER (T16A5)
15-6
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
Capture mode
PRUN
PRESET
T16A_ATMA_
x
T16A_ATMB_
x
Count clock
T16A_TC
x
T16A_CCA
x
T16A_CCB
x
2
0
1
2
3
4
5
6
7
8
9
10
11
12
13
5
10
(when CAPATRG[1:0] = 0x1, CAPBTRG[1:0] = 0x3)
Reset
Capture A
interrupt
Capture B
interrupt
Capture B
interrupt
(and capture B overwrite
interrupt if CAPBIF = 1)
5.4.2 Operation Timing in Capture Mode
Figure 15.
Timer Output Control
15.6
T16A5 in comparator mode can generate two TOUT signals using the compare A and compare B signals and can
output them to external devices. Figure 15.6.1 shows the TOUT output circuit.
TOUT A
output
control
Compare A signal
Compare B signal
TOUTAMD[1:0]
TOUTAINV
T16A_ATMA_
x
pin
TOUT B
output
control
Compare A signal
Compare B signal
TOUTBMD[1:0]
TOUTBINV
T16A_ATMB_
x
pin
Comparator/capture block
6.1 TOUT Output Circuit
Figure 15.
T16A5 includes two TOUT output circuits and their signal generation and output can be controlled individually. Al-
though 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 signals.
Note: The compare A and compare B signals can be generated from the counter value of another chan-
nel by setting T16SEL[1:0]/T16A_CTL
x
register.
TOUT output pins
The TOUT A signal is output from the T16A_ATMA_
x
pin and TOUT B signal is output from the T16A_
ATMB_
x
pin. The T16A_ATMA_
x
and T16A_ATMB_
x
pins are shared with the capture trigger inputs. They
are configured for output when the system A or B is set to comparator mode.
TOUT generation mode
TOUTAMD[1:0]/T16A_CCCTL
x
register (for system A) or TOUTBMD[1:0]/T16A_CCCTL
x
register (for sys-
tem B) is used to set how the TOUT signal is changed by the compare A and compare B signals.