![Seiko Epson S1C17153 Скачать руководство пользователя страница 86](http://html1.mh-extra.com/html/seiko-epson/s1c17153/s1c17153_technical-manual_1235939086.webp)
11 16-BiT PWM TiMeR (T16a2)
S1C17153 TeChniCal Manual
Seiko epson Corporation
11-7
(Rev. 1.0)
Counter Operation and interrupt Timing Charts
11.5.4
Comparator mode
PRUN
PRESET
T16A_CCA
x
T16A_CCB
x
Count clock
T16A_TC
x
Reset
Compare A
interrupt
Reset and
compare B
interrupt
Compare A
interrupt
Reset and
compare B
interrupt
0
1
2
3
4
5
0
1
2
3
4
5
0
1
0x2
0x5
5.4.1 Operation Timing in Comparator Mode
Figure 11.
Capture mode
PRUN
PRESET
CAP(A)
CAP(B)
Count clock
T16A_TC
x
T16A_CCA
x
T16A_CCB
x
(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)
0
1
2
3
4
5
6
7
8
9
10
11
12
13
3
6
11
5.4.2 Operation Timing in Capture Mode
Figure 11.
Timer Output Control
11.6
The timer that has been set in comparator mode can generate TOUT signals using the compare A and compare B
signals and can output it to external devices. T16A2 provides two TOUT outputs, thus the T16A2 module can out-
put up to four TOUT signals. Figure 11.6.1 shows the TOUT output circuit.
TOUT A
output
control
Compare A signal
Compare B signal
TOUTAMD[1:0]
TOUTAINV
TOUTA
x
TOUT B
output
control
Compare A signal
Compare B signal
TOUTBMD[1:0]
TOUTBINV
TOUTB
x
Comparator/capture block Ch.
x
6.1 TOUT Output Circuit
Figure 11.
T16A2 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.