Renesas RL78/G1P Hardware User Manual page 573

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

Advertisement

RL78/G1P
13.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)
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 2
DWAITn
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 IFCn2 to IFCn0 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 and DWAIT1 bits to 1).
Remark
n: DMA channel number (n = 0, 1)
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Figure 13-4. Format of DMA Mode Control Register n (DMCn) (1/2)
After reset: 00H
<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 13 DMA CONTROLLER
R/W
<4>
3
DWAITn
0
DMA transfer start software trigger
Selection of DMA transfer direction
Pending of DMA transfer
2
1
IFCn2
IFCn1
0
IFCn0
554

Advertisement

Table of Contents
loading

Table of Contents