16 16-BIT PWM TIMERS (T16A3)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
16-15
(Rev. 1.0)
6.5 Capture A Trigger Edge Selection
Table 16.
T16A
n
CCCTL.CAPATRG[1:0] bits
Trigger edge
0x3
Falling edge and rising edge
0x2
Falling edge
0x1
Rising edge
0x0
Not triggered
The T16A
n
CCCTL.CAPATRG[1:0] bits are control bits for capture mode and are ineffective in com-
parator mode.
Bits 5–4
TOuTaMD[1:0]
These bits configure how the TOUTA signal waveform (TOUTA
n
output) is changed by the compare
A and compare B signals. These bits are also used to turn the TOUTA output on and off.
6.6 TOUTA Signal Generation Mode
Table 16.
T16A
n
CCCTL.
TOUTAMD[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.TOUTAMD[1:0] bits are control bits for comparator mode and are ineffective in
capture mode.
Bits 3–2
Reserved
Bit 1
TOuTainV
This bit selects the TOUTA signal (TOUTA
n
output) polarity.
1 (R/W): Inverted (active low)
0 (R/W): Normal (active high)
The T16A
n
CCCTL.TOUTAINV bit is a control bit for comparator mode and are ineffective in capture
mode.
Bit 0
CCaMD
This bit selects the T16A
n
CCA register operating mode.
1 (R/W): Capture mode (T16A
n
CCA register = capture A register)
0 (R/W): Comparator mode (T16A
n
CCA register = compare A register)
T16a3 Comparator/Capture Ch.
n
a Data Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
T16A
n
CCA
15–0 CCA[15:0]
0x0000
H0
R/W –
Bits 15–0 CCa[15:0]
In comparator mode (T16A
n
CCCTL.CCAMD bit = 0), this register is configured as the compare A
register and used to set compare A data that is compared with the counter value.
In capture mode (T16A
n
CCCTL.CCAMD bit = 1), this register is configured as the capture A register
and the counter value captured by the external trigger signal (CAPA
n
) is loaded.
Note: When writing data to the T16A
n
CCA register successively, data should be written at intervals of
one or more T16A3 count clock cycles.
T16a3 Comparator/Capture Ch.
n
B Data Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
T16A
n
CCB
15–0 CCB[15:0]
0x0000
H0
R/W –
Bits 15–0 CCB[15:0]
In comparator mode (T16A
n
CCCTL.CCBMD bit = 0), this register is configured as the compare B
register and used to set compare B data that is compared with the counter value.