13 DMA CONTROLLER (DMAC)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
13-7
4.1 DMAC
Table 13.
Trigger Source
Channel
Control bits
Setting
Trigger source
Channel priority
Ch.7
TRG_SEL7[1:0]
0x3
A/D converter (ADC10) conversion completion
Low
0x2
Reserved
↑
0x1
USIL transmit buffer empty
0x0
Hardware trigger disabled (software trigger only)
Ch.6
TRG_SEL6[1:0]
0x3
USB interrupt
0x2
Reserved
0x1
USIL receive buffer full
0x0
Hardware trigger disabled (software trigger only)
Ch.5
TRG_SEL5[1:0]
0x3
16-bit PWM timer (T16A5) Ch.
x
compare/capture A
*
0x2
FSIO Ch.1 transmit buffer empty
0x1
Reserved
0x0
Hardware trigger disabled (software trigger only)
Ch.4
TRG_SEL4[1:0]
0x3
16-bit PWM timer (T16A5) Ch.
x
compare/capture B
*
0x2
FSIO Ch.1 receive buffer full
0x1
Reserved
0x0
Hardware trigger disabled (software trigger only)
Ch.3
TRG_SEL3[1:0]
0x3
16-bit PWM timer (T16A5) Ch.
x
compare/capture A
*
0x2
FSIO Ch.0 transmit buffer empty
0x1
USI transmit buffer empty
0x0
Hardware trigger disabled (software trigger only)
Ch.2
TRG_SEL2[1:0]
0x3
16-bit PWM timer (T16A5) Ch.
x
compare/capture B
*
0x2
FSIO Ch.0 receive buffer full
0x1
USI receive buffer full
0x0
Hardware trigger disabled (software trigger only)
Ch.1
TRG_SEL1[1:0]
0x3
USB interrupt
0x2
Port input interrupt 0–3
0x1
I
2
S R channel FIFO empty
0x0
Hardware trigger disabled (software trigger only)
Ch.0
TRG_SEL0[1:0]
0x3
A/D converter (ADC10) conversion completion
0x2
16-bit audio PWM timer (T16P) buffer empty
0x1
I
2
S L channel FIFO empty
↓
0x0
Hardware trigger disabled (software trigger only)
High
*
Set the T16A5 channel for invoking the DMAC using DMASEL[1:0]/T16A_CTL
x
register.
(Default: 0x0)
At initial reset, TRG_SEL
x
[1:0] in all channels are set to 0x0 (hardware trigger disabled). Note that software
triggers are enabled regardless of the trigger source selected.
These trigger sources (causes of interrupt) are used in common for interrupt requests and DMAC invocation re-
quests. When interrupts due to the cause used for a trigger is enabled and the interrupt level is set to 1 or more,
an interrupt is also generated simultaneously with the trigger for the DMAC. When an interrupt vector and han-
dler routine are located in IRAM, interrupt handling can be executed even during a DMA transfer. An instruc-
tion for accessing the transfer source/destination is not executed until the DMA transfer is completed. When
only invoking the DMAC and not using an interrupt, set the interrupt enable bit to 0 (interrupt disabled).
DMA request generated during a DMA transfer
A low-priority DMA request generated during a DMA transfer is not accepted until the transfer currently being
executed is completed (until the unit data transfer is completed in the single transfer mode or until the transfer
counter reaches 0 in the successive transfer mode).
A DMA request for another high-priority channel that is generated during successive transfers in a channel is
accepted after the transfer of the current data unit is completed. The current DMA transfer is suspended at that
point, and is resumed after that high-priority DMA transfer generated later is completed.
DMA request when the channel is disabled to transfer
Triggers are disabled for a channel with the CHEN bit (D3/1st word) set to 0 (DMA transfer disabled).
TRG
x
for the channel will not be set.