RL78/G1P
CHAPTER 13 DMA CONTROLLER
R01UH0895EJ0100 Rev.1.00
568
Nov 29, 2019
13.6 Cautions on Using DMA Controller
(1) Priority of DMA
During DMA transfer, a request from the other DMA channel is held pending even if generated. The pending
DMA transfer is started after the ongoing DMA transfer is completed. If two or more DMA requests are generated
at the same time, however, their priority are DMA channel 0 > DMA channel 1.
If a DMA request and an interrupt request are generated at the same time, the DMA transfer takes precedence,
and then interrupt servicing is executed.
(2) DMA response time
The response time of DMA transfer is as follows.
Table 13-3. Response Time of DMA Transfer
Minimum Time
Maximum Time
Response time
3 clocks
10 clocks
Note
Note
The maximum time necessary to execute an instruction from internal RAM is 16 clock cycles.
Cautions 1. The above response time does not include the two clock cycles required for a DMA
transfer.
2. When executing a DMA pending instruction (see 13.6 (4)), the maximum response
time is extended by the execution time of that instruction to be held pending.
3. Do not specify successive transfer triggers for a channel within a period equal to the
maximum response time plus one clock cycle, because they might be ignored.
Remark
1 clock: 1/f
CLK
(f
CLK
: CPU clock)
(3) Operation in standby mode
The DMA controller operates as follows in the standby mode.
Table 13-4. DMA Operation in Standby Mode
Status DMA
Operation
HALT mode
Normal operation
STOP mode
Stops operation.
If DMA transfer and STOP instruction execution contend, DMA transfer may be
damaged. Therefore, stop DMA before executing the STOP instruction.