16 16-BIT PWM TIMERS (T16A3)
16-2
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
Capture
circuit
Comparator
circuit
Compare B
buffer
Compare A
buffer
Comparator
circuit
TOUT
control circuit
Interrupt
control circuit
To interrupt
controller
Compare B/Capture B register
CCB[15:0]
Compare A/Capture A register
CCA[15:0]
Counter
block Ch.0
Comparator/capture
block Ch.0
Counter
T16ATC[15:0]
PRUN
HCM
TRMD
PRESET
MULTIMD
Compare A
signal
CLK_T16A0
CLK_T16A
n
Compare B
signal
To interrupt
controller
T16A3
Counter
block Ch.
n
Comparator/capture
block Ch.
n
CBUFEN
CBUFEN
CAPBOWIF
CAPAOWIF
CAPBIF
CAPAIF
CMPBIF
CMPAIF
CAPBOWIE
CAPAOWIE
CAPBIE
CAPAIE
CMPBIE
CMPAIE
TOUTBMD[1:0]
TOUTBINV
TOUTAMD[1:0]
TOUTAINV
CAPBTRG[1:0]
CAPATRG[1:0]
CCABCNT[1:0]
CCBMD
CCAMD
TOUTA0
TOUTB0
CAPA0
CAPB0
CLKDIV[3:0]
MODEN
DBRUN
CLKSRC[1:0]
TOUTA
n
TOUTB
n
CAPA
n
CAPB
n
Clock
generator
EXCL
x
EXCL
y
Inter
nal data
bu
s
. .
.
. .
.
. .
.
. .
.
1.1 T16A3 Configuration
Figure 16.
Input/Output Pins
16.2
Table 16.2.1 lists the T16A3 pins.
2.1 List of T16A3 Pins
Table 16.
Pin name
I/O
*
Initial status
*
Function
EXCL
m
I
I (Hi-Z)
External clock input
TOUTA
n
/CAPA
n
,
TOUTB
n
/CAPB
n
O or I
O (Low)
TOUTA/B signal output (in comparator mode) or
capture A/B trigger signal input (in capture mode)
*
Indicates the status when the pin is configured for T16A3.
If the port is shared with the T16A3 pin and other functions, the T16A3 input/output function must be assigned to
the port before activating T16A3. For more information, refer to the “I/O Ports” chapter.
Clock Settings
16.3
T16A3 Operating Clock
16.3.1
When using T16A3 Ch.
n
, the T16A3 Ch.
n
operating clock CLK_T16A
n
must be supplied to T16A3 Ch.
n
from the
clock generator. The CLK_T16A
n
supply should be controlled as in the procedure shown below.
1. Enable the clock source in the clock generator if it is stopped (refer to “Clock Generator” in the “Power Supply,
Reset, and Clocks” chapter).
When an external clock is used, select the EXCL
m
pin function (refer to the “I/O Ports” chapter).
2. Set the following T16A
n
CLK register bits:
- T16A
n
CLK.CLKSRC[1:0] bits (Clock source selection)
- T16A
n
CLK.CLKDIV[3:0] bits (Clock division ratio selection = Clock frequency setting)