17-24
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
17.5.
Interrupt
Each T16B channel has a function to generate the interrupt shown in Table 17.5.1.
Table 17.5.1 T16B Interrupt Function
Interrupt
Interrupt flag
Set condition
Clear
condition
Capture
overwrite
T16B_
n
INTF.CAPOW
m
IF
When the T16B_
n
INTF.CMPCAP
m
IF bit =1 and the T16B_
n
CCR
m
register is overwritten with new captured data
in capture mode
Writing 1
Compare/
capture
T16B_
n
INTF.CMPCAP
m
IF
When the counter value becomes equal to the compare
buffer value in comparator mode
When the counter value is loaded to the T16B_nCCRm
register by a capture trigger input in capture mode
Writing 1
Counter
MAX
T16B_
n
INTF.CNTMAXIF
When the counter reaches the MAX value
Writing 1
Counter
zero
T16B_
n
INTF.CNTZEROIF
When the counter reaches 0x0000
Writing 1
T16B provides interrupt enable bits corresponding to each interrupt flag. An interrupt request is sent
to the CPU core only when the interrupt flag, of which interrupt has been enabled by the interrupt
enable bit, is set. For
more information on interrupt control, refer to the “Interrupt” chapte
r.
17.6.
DMA Transfer Requests
The T16B has a function to generate DMA transfer requests from the causes shown in Table 17.6.1.
Table 17.6.1 DMA Transfer Request Causes of T16B
Cause to
request
DMA transfer
DMA transfer request
flag
Set condition
Clear
condition
Compare/
capture
Compare/capture flag
(T16B_
n
INTF.CMPCAP
m
IF)
When the counter value becomes equal to the
com- pare bu
ff
er value in comparator mode
When the counter value is loaded to the
T16B_
n
CCR
m
register by a capture trigger input in
capture mode
When the
DMA
transfer
request is
accepted
Counter
MAX/ zero
Counter MAX flag
(T16B_
n
INTF.CNTMAXIF)
Counter zero flag
(T16B_
n
INTF.CNTZEROIF)
When the counter reaches the MAX value in up or
up/ down count mode
When the counter reaches 0x0000 in down
count mode
When the
DMA
transfer
request is
accepted
The T16B provides DMA transfer request enable bits corresponding to each DMA transfer request
flag shown above for the number of DMA channels. A DMA transfer request is sent to the pertinent
channel of the DMA controller only when the DMA transfer request flag, of which DMA transfer has
been enabled by the DMA transfer request enable bit, is set. The DMA transfer request flag also serves
as an interrupt flag, therefore, both the DMA transfer request and the interrupt cannot be enabled at
the same time. After a DMA transfer has completed, disable the DMA transfer to prevent unintended
DMA transfer requests from being issued. For more information on the DMA control, refer to the
“DMA Controller” chapte
r.
Summary of Contents for S1C31D50
Page 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Page 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Page 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Page 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...