Renesas RL78/G1P Hardware User Manual page 579

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
Figure 13-7. Example of Setting for CSI Consecutive Transmission
Setting for CSI transfer
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.
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Start
DEN0 = 1
DSA0 = 10H
DRA0 = FB00H
DBC0 = 0100H
DMC0 = 46H
DST0 = 1
DMA is started.
STG0 = 1
INTCSI00 occurs.
User program
processing
Occurrence of
INTDMA0
DST0 = 0
DEN0 = 0
RETI
End
DMA0 transfer
CSI
transmission
Note
CHAPTER 13 DMA CONTROLLER
Hardware operation
560

Advertisement

Table of Contents
loading

Table of Contents