English
Language : 

HD6417727BP160CV Datasheet, PDF (488/1098 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family/ SH7700 Series
Section 14 Direct Memory Access Controller (DMAC)
Conditions for Individual-Channel Ending: When one of the following conditions is satisfied,
transfer in the corresponding channel ends.
When the value in the DMA transfer count register (DMATCR) is 0
When the DE bit in CHCR is cleared to 0.
• When DMATCR is 0: When the DMATCR value reaches 0, the DMA transfer in the
corresponding channel ends and the transfer end flag bit (TE) in CHCR is set. If the IE
(interrupt enable) bit is set at this time, a DMAC interrupt (DEI) is requested to the CPU. The
conditions described in (a) to (d) above are not applied for this transfer ending.
• When DE in CHCR is 0: When the DE bit in CHCR is cleared, the DMA transfer in the
corresponding channel stops. The conditions described in (a) to (d) above are not applied for
this transfer ending.
Conditions for All-Channel Ending: When one of the following conditions is satisfied, transfer
in all channels end simultaneously.
When the NMIF (NMI flag) bit in DMAOR is set to 1
When the DME bit in DMAOR is cleared to 0.
• When the NMIF bit in DMAOR is set to 1: When an NMI interrupt occurs, the NMIF bit in
DMAOR is set to 1 and all channels stop their transfers according to the conditions in (a) to (d)
described above, and pass the bus right to another bus master. Consequently, even if the NMI
bit is set to 1 during transfer, the SAR, DAR, DMATCR are updated. Then the TE bit is not
set. To resume the transfer after the NMI interrupt exception handling, clear the NMIF bit to 0.
At this time, for the channels that should not be restarted, clear the corresponding DE bit in
CHCR.
• When DME is cleared to 0 in DMAOR: Clearing the DME bit to 0 in the DMAOR forcibly
aborts the transfers on all channels. Then the TE bit is not set. All channels abort their transfers
according to the conditions (a) to (d) described in section 14.3.7, DMAC Transfer Ending, in
the same way as that at the generation of an address error by the DMAC or NMI interrupt
generation. In this case, the values in SAR, DAR, and DMATCR are also updated.
Rev.6.00 Mar. 27, 2009 Page 430 of 1036
REJ09B0254-0600