13 16-BiT PWM TiMeRS (T16a2)
13-16
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
T16a Comparator/Capture Ch.
x
Control Registers (T16a_CCCTl
x
)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
T16a
Comparator/
Capture Ch.
x
Control Register
(T16a_CCCTl
x
)
0x5404
0x5424
(16 bits)
D15–14 CaPBTRG
[1:0]
Capture B trigger select
CAPBTRG[1:0] Trigger edge
0x0 R/W
0x3
0x2
0x1
0x0
↑
and
↓
↓
↑
None
D13–12 TOuTBMD
[1:0]
TOUT B mode select
TOUTBMD[1:0]
Mode
0x0 R/W
0x3
0x2
0x1
0x0
cmp B:
↑
or
↓
cmp A:
↑
or
↓
cmp A:
↑
, B:
↓
Off
D11–10 –
reserved
–
–
–
0 when being read.
D9
TOuTBinV TOUT B invert
1 Invert
0 Normal
0
R/W
D8
CCBMD
T16A_CCB register mode select
1 Capture
0 Comparator
0
R/W
D7–6 CaPaTRG
[1:0]
Capture A trigger select
CAPATRG[1:0] Trigger edge
0x0 R/W
0x3
0x2
0x1
0x0
↑
and
↓
↓
↑
None
D5–4 TOuTaMD
[1:0]
TOUT A mode select
TOUTAMD[1:0]
Mode
0x0 R/W
0x3
0x2
0x1
0x0
cmp B:
↑
or
↓
cmp A:
↑
or
↓
cmp A:
↑
, B:
↓
Off
D3–2 –
reserved
–
–
–
0 when being read.
D1
TOuTainV TOUT A invert
1 Invert
0 Normal
0
R/W
D0
CCaMD
T16A_CCA register mode select
1 Capture
0 Comparator
0
R/W
D[15:14] CaPBTRG[1:0]: Capture B Trigger Select Bits
Selects the trigger edge(s) of the external signal (CAPB
x
) at which the counter value is captured in the
capture B register.
8.5 Capture B Trigger Edge Selection
Table 13.
CaPBTRG[1:0]
Trigger edge
0x3
Falling edge and rising edge
0x2
Falling edge
0x1
Rising edge
0x0
Not triggered
(Default: 0x0)
CAPBTRG[1:0] are control bits for capture mode and are ineffective in comparator mode.
D[13:12] TOuTBMD[1:0]: TOuT B Mode Select Bits
Configures how the TOUT B signal waveform (TOUTB
x
output) is changed by the compare A and
compare B signals. These bits are also used to turn the TOUT B output On and Off.
8.6 TOUT B Generation Mode
Table 13.
TOuTBMD[1:0]
When compare a occurs When compare B occurs
0x3
No change
Toggle
0x2
Toggle
No change
0x1
Rise
Fall
0x0
Disable output
(Default: 0x0)
TOUTBMD[1:0] are control bits for comparator mode and are ineffective in capture mode.
D[11:10] Reserved
D9
TOuTBinV: TOuT B invert Bit
Selects the TOUT B signal (TOUTB
x
output) polarity.
1 (R/W): Inverted (active Low)
0 (R/W): Normal (active High) (default)
Writing 1 to TOUTBINV generates an active Low signal (Off level = High) for the TOUT B output.
When TOUTBINV is 0, an active High signal (Off level = Low) is generated.
TOUTBINV is a control bit for comparator mode and is ineffective in capture mode.