14 16-BIT PWM TIMERS (T16B)
14-2
Seiko Epson Corporation
S1C17M12/M13 TECHNICAL MANUAL
(Rev. 1.2)
To interrupt
controller
Counter block Ch.0
Comparator/capture block Ch.0
Comparator/capture block Ch.
n
Comparator/capture circuits 0 & 1
Counter
TC[15:0]
MAX counter data
register
MC[15:0]
CNTMD[1:0]
ONEST
RUN
PRESET
CLK_T16B0
CLK_T16Bn
To interrupt
controller
T16B
Counter block Ch.
n
Capture
circuit 1
Capture
circuit 0
Compare
buffer 0
Compare
buffer 1
Compare/Capture 0
data register
CC[15:0]
Compare/Capture 1
data register
CC[15:0]
Comparator
circuit 0
Comparator
circuit 1
TOUT01
CAP00
CLKDIV[3:0]
MODEN
MAXBSY
CBUFMD[2:0]
CCMD
CAPIS[1:0]
CAPTRG[1:0]
SCS
CAPIS[1:0]
CAPTRG[1:0]
CAPI0
SCS
CBUFMD[2:0]
CCMD
DBRUN
CLKSRC[2:0]
Clock
generator
CAP01
EXCL00
EXCL01
EXCLn0
EXCLn1
Inter
nal data
bu
s
TOUT control
circuit 1
TOUT00
TOUT control
circuit 0
TOUTMT
TOUTO
TOUTMD[2:0]
TOUTINV
TOUTMT
TOUTO
TOUTMD[2:0]
TOUTINV
Interrupt
control circuit
CAPOWmIE
CMPCAPmIE
:
CAPOW0IE
CMPCAP0IE
CNTMAXIE
CNTZEROIE
CAPI1
CAPOWmIF
CMPCAPmIF
:
CAPOW0IF
CMPCAP0IF
CNTMAXIF
CNTZEROIF
UP_DOWN
BSY
. .
.
. .
.
MATCH signal
MATCH signal
ZERO/MAX signal
CAP02/03
TOUT02/03
CAP04/05
TOUT04/05
CAPn0/1
TOUTn0/1
CAPn2/3
TOUTn2/3
CAPn4/5
TOUTn4/5
Figure 14.1.1 T16B Configuration
14.2 Input/Output Pins
Table 14.2.1 lists the T16B pins.
Table 14.2.1 List of T16B Pins
Pin name
I/O
*
Initial status
*
Function
EXCLnm
I
I (Hi-Z)
External clock input
TOUTnm/CAPnm
O or I
O (L)
TOUT signal output (in comparator mode) or
capture trigger signal input (in capture mode)
*
Indicates the status when the pin is configured for T16B.
If the port is shared with the T16B pin and other functions, the T16B input/output function must be assigned to the
port before activating T16B. For more information, refer to the “I/O Ports” chapter.