16 16-BIT PWM TIMERS (T16A3)
16-14
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
T16a3 Comparator/Capture Ch.
n
Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
T16A
n
CCCTL
15–14 CAPBTRG[1:0]
0x0
H0
R/W –
13–12 TOUTBMD[1:0]
0x0
H0
R/W
11–10 –
0x0
–
R
9
TOUTBINV
0
H0
R/W
8
CCBMD
0
H0
R/W
7–6 CAPATRG[1:0]
0x0
H0
R/W
5–4 TOUTAMD[1:0]
0x0
H0
R/W
3–2 –
0x0
–
R
1
TOUTAINV
0
H0
R/W
0
CCAMD
0
H0
R/W
Bits 15–14 CaPBTRG[1:0]
These bits select the trigger edge(s) of the external signal (CAPB
n
) at which the counter value is cap-
tured in the T16A
n
CCB register.
6.3 Capture B Trigger Edge Selection
Table 16.
T16A
n
CCCTL.CAPBTRG[1:0] bits
Trigger edge
0x3
Falling edge and rising edge
0x2
Falling edge
0x1
Rising edge
0x0
Not triggered
The T16A
n
CCCTL.CAPBTRG[1:0] bits are control bits for capture mode and are ineffective in com-
parator mode.
Bits 13–12 TOuTBMD[1:0]
These bits configure how the TOUTB signal waveform (TOUTB
n
output) is changed by the compare
A and compare B signals. These bits are also used to turn the TOUTB output on and off.
6.4 TOUTB Signal Generation Mode
Table 16.
T16A
n
CCCTL.
TOUTBMD[1:0] bits
When compare A occurs When compare B occurs
0x3
No change
Toggle
0x2
Toggle
No change
0x1
Rise
Fall
0x0
Disable output
The T16A
n
CCCTL.TOUTBMD[1:0] bits are control bits for comparator mode and are ineffective in
capture mode.
Bits 11–10 Reserved
Bit 9
TOuTBinV
This bit selects the TOUTB signal (TOUTB
n
output) polarity.
1 (R/W): Inverted (active low)
0 (R/W): Normal (active high)
The T16A
n
CCCTL.TOUTBINV bit is a control bit for comparator mode and are ineffective in capture
mode.
Bit 8
CCBMD
This bit selects the T16A
n
CCB register operating mode.
1 (R/W): Capture mode (T16A
n
CCB register = capture B register)
0 (R/W): Comparator mode (T16A
n
CCB register = compare B register)
Bits 7–6
CaPaTRG[1:0]
These bits select the trigger edge(s) of the external signal (CAPA
n
) at which the counter value is cap-
tured in the T16A
n
CCA register.