Renesas RL78 Series User Manual page 666

16-bit single-chip microcontrollers
Hide thumbs Also See for RL78 Series:
Table of Contents

Advertisement

RL78/G1D
17.3.1 DMA mode control register n (DMCn)
The DMCn register is a register that is used to set a transfer mode of DMA channel n. It is used to select a transfer
direction, data size, setting of pending, and start source. Bit 7 (STGn) is a software trigger that starts DMA.
Rewriting bits 6, 5, and 3 to 0 of the DMCn register is prohibited during operation (when DSTn = 1).
The DMCn register can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Address: FFFBAH (DMC0), FFFBBH (DMC1), F020AH (DMC2), F020BH (DMC3)
Symbol
<7>
DMCn
STGn
Note 1
STGn
0
1
DMA transfer is performed once by writing 1 to the STGn bit when DMA operation is enabled (DENn = 1).
When this bit is read, 0 is always read.
DRSn
0
1
DSn
0
1
Note
DWAITn
2
0
1
DMA transfer that has been held pending can be started by clearing the value of the DWAITn bit to 0.
It takes 2 clocks to actually hold DMA transfer pending when the value of the DWAITn bit is set to 1.
Notes 1. The software trigger (STGn) can be used regardless of the IFCn0 to IFCn3 bits values.
2. When DMA transfer is held pending while using two or more DMA channels, be sure to hold the DMA
transfer pending for all channels (by setting the DWAIT0, DWAIT1, DWAIT2, and DWAIT3 bits to 1).
Remark
n: DMA channel number (n = 0 to 3)
R01UH0515EJ0120 Rev.1.20
Dec 16, 2016
Figure 17-4. Format of DMA Mode Control Register n (DMCn) (1/3)
<6>
<5>
DRSn
DSn
No trigger operation
DMA transfer is started when DMA operation is enabled (DENn = 1).
SFR to internal RAM
Internal RAM to SFR
Specification of transfer data size for DMA transfer
8 bits
16 bits
Executes DMA transfer upon DMA start request (not held pending).
Holds DMA start request pending if any.
CHAPTER 17 DMA CONTROLLER
After reset: 00H
<4>
3
DWAITn
IFCn3
DMA transfer start software trigger
Selection of DMA transfer direction
Pending of DMA transfer
R/W
2
1
IFCn2
IFCn1
0
IFCn0
645

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rl78/g1dR5f11aggR5f11aghR5f11agj

Table of Contents