Hitachi SH7751 Hardware Manual page 933

Superh risc engine
Table of Contents

Advertisement

DMA Transfer End: The following describes the status on termination of a DMA transfer.

Normal termination
DMA transfer ends after the set number of bytes has been transferred. In the case of normal
termination, the DMA end status bit (DMAST) of the PCIDCR and the DMA transfer start
control bit (DMASTART) are cleared, and the DMA transfer termination interrupt status bit
(DMAIS) is set.
If the DMA transfer interrupt mask bit (DMAIM) is set to 1, the DMA transfer termination
interrupt is issued.
Note that the DMAIS bit is set even if the DMAIM bit is set to 0. The DMAIS bit is
maintained until it is cleared. Therefore, the DMAIS bit must be cleared before starting the
next DMA transfer.

Abnormal termination
The DMA transfer may terminate abnormally if an error on the PCI bus is detected during data
transfer or the DMA transfer is forcibly terminated.

Error in data transfer
When an error occurs during DMA transfer, the DMA transfer is forcibly terminated on the
channel in which the error occurred. There is no effect on data transfers on other channels.

Forced termination of DMA transfer
When the PCIDCR and DMASTOP bits for a channel are set, data transfer on that channel
is forcibly terminated. However, when the DMASTOP bit is set, do not write 1 to the
DMASTRT bit. Also, in control bits other than the DMASTOP bit, write the value at the
time of transfer started.
In the case of an abnormal termination, the DMA termination status bit (DMAST) in the
PCIDCR is set when the cause of that abnormal termination (error detection or forced
termination of DMA transfer) occurs. After the data transfer terminates, the DMA transfer start
control bit (DMASTART) is cleared and the DMA transfer termination interrupt status bit
(DMAIS) is set.
If the DMA transfer interrupt mask bit (DMAIM) is set to 1, the DMA transfer termination
interrupt is issued.
In the event of an abnormal termination, the transferred data is not guaranteed.
Figure 22.6 shows an example of DMA transfer flowchart.
Rev. 3.0, 04/02, page 894 of 1064

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7751r

Table of Contents