15 16-BIT PWM TIMER (T16A5)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
15-15
T16A5 Ch.
x
Comparator/Capture A Data Registers (T16A_CCA
x
)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
T16A5 Ch.
x
Comparator/
Capture A Data
Register
(T16A_CCA
x
)
0x301186
0x301196
(16 bits)
D15–0 CCA[15:0] Compare/capture A data
CCA15 = MSB
CCA0 = LSB
0x0 to 0xffff
0x0 R/W
D[15:0] CCA[15:0]: Compare/Capture A Data Bits
In comparator mode (CCAMD/ T16A_CCCTL
x
register = 0)
Sets a compare A data, which will be compared with the counter value, through this register.
When CBUFEN/T16A_CTL
x
register is set to 0, accessing to this register directly read/write from/to
the compare A register.
When CBUFEN is set to 1, writing to this register loads the data to the compare A buffer. Compare data
is always read from this register. The buffer contents are loaded into the compare A register when the
counter is reset by the compare B signal.
The data set is compared with the counter data. When the counter reaches the comparison value set,
the compare A signal is asserted and a cause of compare A interrupt occurs. Furthermore, the TOUT
output waveform changes when TOUTAMD[1:0]/T16A_CCCTL
x
register or TOUTBMD[1:0]/T16A_
CCCTL
x
register is set to 0x2 or 0x1. These processes do not affect the counter data and the count up
operation.
In capture mode (CCAMD = 1)
When the counter value is captured at the external trigger signal (T16A_ATMA_
x
input) edge selected
using CAPATRG[1:0]/T16A_CCCTL
x
register, the captured value is loaded to this register. At the
same time a capture A interrupt can be generated, thus the captured counter value can be read out in the
interrupt handler.
T16A5 Ch.
x
Comparator/Capture B Data Registers (T16A_CCB
x
)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
T16A5 Ch.
x
Comparator/
Capture B Data
Register
(T16A_CCB
x
)
0x301188
0x301198
(16 bits)
D15–0 CCB[15:0] Compare/capture B data
CCB15 = MSB
CCB0 = LSB
0x0 to 0xffff
0x0 R/W
D[15:0] CCB[15:0]: Compare/Capture B Data Bits
In comparator mode (CCBMD/ T16A_CCCTL
x
register = 0)
Sets a compare B data, which will be compared with the counter value, through this register.
When CBUFEN/T16A_CTL
x
register is set to 0, accessing to this register directly read/write from/to
the compare B register.
When CBUFEN is set to 1, writing to this register loads the data to the compare B buffer. Compare data
is always read from this register. The buffer contents are loaded into the compare B register when the
counter is reset by the compare B signal.
The data set is compared with the counter data. When the counter reaches the comparison value set,
the compare B signal is asserted and a cause of compare B interrupt occurs. The counter is reset to 0.
Furthermore, the TOUT output waveform changes when TOUTAMD[1:0]/T16A_CCCTL
x
register or
TOUTBMD[1:0]/T16A_CCCTL
x
register is set to 0x3 or 0x1.
In capture mode (CCBMD = 1)
When the counter value is captured at the external trigger signal (T16A_ATMB_
x
input) edge selected
using CAPBTRG[1:0]/T16A_CCCTL
x
register, the captured value is loaded to this register. At the
same time a capture B interrupt can be generated, thus the captured counter value can be read out in the
interrupt handler.