RL78/G1P
CHAPTER 13 DMA CONTROLLER
R01UH0895EJ0100 Rev.1.00
560
Nov 29, 2019
Figure 13-7. Example of Setting for CSI Consecutive Transmission
Note
The DST0 flag is automatically cleared to 0 when a DMA transfer is completed.
Writing the DEN0 flag is enabled only when DST0 = 0. To terminate a DMA transfer without waiting for
occurrence of the interrupt of DMA0 (INTDMA0), set the DST0 bit to 0 and then the DEN0 bit to 0 (for details,
see
13.5.5 Forced termination by software
).
The fist trigger for consecutive transmission is not started by the interrupt of CSI. In this example, it start by a software
trigger.
CSI transmission of the second time and onward is automatically executed.
A DMA interrupt (INTDMA0) occurs when the last transmit data has been written to the data register.
Setting for CSI transfer
DEN0 = 1
DSA0 = 10H
DRA0 = FB00H
DBC0 = 0100H
DMC0 = 46H
DEN0 = 0
DST0 = 1
STG0 = 1
Start
DMA is started.
INTCSI00 occurs.
RETI
End
User program
processing
Occurrence of
INTDMA0
DST0 = 0
Note
DMA0 transfer
CSI
transmission
Hardware operation