15 16-BIT PWM TIMER (T16A5)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
15-13
T16A5 Ch.
x
Comparator/Capture Control Registers (T16A_CCCTL
x
)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
T16A5 Ch.
x
Comparator/
Capture Control
Register
(T16A_CCCTL
x
)
0x301184
0x301194
(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 (T16A_ATMB_
x
input) at which the counter value is
captured in the capture B register.
8.5 Capture B Trigger Edge Selection
Table 15.
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 (T16A_ATMB_
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 15.
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 (T16A_ATMB_
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.