13 DMA CONTROLLER (DMAC)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
13-15
DMAC End-of-Transfer Flag Register (DMAC_END_FLG)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
DMAC End-of-
Transfer Flag
Register
(DMAC_END_
FLG)
0x302114
(32 bits)
D31–8 –
reserved
–
–
–
0 when being read.
D7
ENDF7
Ch.7 end-of-transfer flag
1 Finished
0 Not finished
0
R/W Reset by writing 1.
D6
ENDF6
Ch.6 end-of-transfer flag
1 Finished
0 Not finished
0
R/W
D5
ENDF5
Ch.5 end-of-transfer flag
1 Finished
0 Not finished
0
R/W
D4
ENDF4
Ch.4 end-of-transfer flag
1 Finished
0 Not finished
0
R/W
D3
ENDF3
Ch.3 end-of-transfer flag
1 Finished
0 Not finished
0
R/W
D2
ENDF2
Ch.2 end-of-transfer flag
1 Finished
0 Not finished
0
R/W
D1
ENDF1
Ch.1 end-of-transfer flag
1 Finished
0 Not finished
0
R/W
D0
ENDF0
Ch.0 end-of-transfer flag
1 Finished
0 Not finished
0
R/W
D[31:8] Reserved
D[7:0]
ENDF
x
: Ch.
x
End-of-Transfer Flag Bit
Indicates the channel that has finished transfers.
1 (R):
Finished
0 (R):
Not finished (default)
1 (W):
Flag is reset
0 (W):
Ignored
If the transfer counter in DMA transfer reaches 0, the DMAC sets ENDF
x
indicating that transfers are
finished. At the same time, an interrupt request is output to the ITC if DMAIE
x
/DMAC_IE is set to 1
(interrupt enabled).
Read this register in the DMAC interrupt handler routine and check which channel has finished trans-
fers. Also, in preparation for next interrupts, write 1 to ENDF
x
for resetting it.
In a channel with DMAIE
x
is set to 0 (interrupt disabled), an interrupt is not generated even if ENDF
x
is set.
DMAC Running Status Register (DMAC_RUN_STAT)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
DMAC Running
Status Register
(DMAC_RUN_
STAT)
0x302118
(32 bits)
D31–8 –
reserved
–
–
–
0 when being read.
D7
RUN7
Ch.7 running status
1 Running
0 Idle/paused
0
R
D6
RUN6
Ch.6 running status
1 Running
0 Idle/paused
0
R
D5
RUN5
Ch.5 running status
1 Running
0 Idle/paused
0
R
D4
RUN4
Ch.4 running status
1 Running
0 Idle/paused
0
R
D3
RUN3
Ch.3 running status
1 Running
0 Idle/paused
0
R
D2
RUN2
Ch.2 running status
1 Running
0 Idle/paused
0
R
D1
RUN1
Ch.1 running status
1 Running
0 Idle/paused
0
R
D0
RUN0
Ch.0 running status
1 Running
0 Idle/paused
0
R
D[31:8] Reserved
D[7:0]
RUN
x
: Ch.
x
Running Status Bit
Indicates whether the channel is performing a DMA transfer or not.
1 (R):
Performing a DMA transfer
0 (R):
Idle/paused (default)
RUN
x
is set to 1 when DMAC Ch.
x
starts a DMA transfer and reset to 0 upon completion of the trans-
fer operation. Also this bit reverts to 0 when the transfer is suspended due to a high-priority DMA re-
quest.
When modifying control information after a data transfer or forced termination, check this bit to ensure
that the transfer operation is actually completed.