Renesas RL78 Series User Manual page 664

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

Advertisement

RL78/G1D
17.2.3 DMA byte count register n (DBCn)
This is a 10-bit register that is used to set the number of times DMA channel n executes transfer. Be sure to set the
number of times of transfer to this DBCn register before executing DMA transfer (up to 1024 times).
Each time DMA transfer has been executed, this register is automatically decremented. By reading this DBCn register
during DMA transfer, the remaining number of times of transfer can be learned.
The DBCn register can be read or written in 8-bit or 16-bit units. However, it cannot be written during DMA transfer.
Reset signal generation clears this register to 0000H.
Address: FFFB6H, FFFB7H (DBC0), FFFB8H, FFFB9H (DBC1)
F0206H, F0207H (DBC2), F0208H, F0209H (DBC3)
15
DBCn
0
(n = 0 to 3)
DBCn[9:0] Number of Times of Transfer
000H
001H
002H
003H
3FEH
3FFH
Cautions 1. Be sure to clear bits 15 to 10 to "0".
2. If the general-purpose register is specified or the internal RAM space is exceeded as a
result of continuous transfer, the general-purpose register or SFR space are written or read,
resulting in loss of data in these spaces. Be sure to set the number of times of transfer that
is within the internal RAM space.
Remark
n: DMA channel number (n = 0 to 3)
R01UH0515EJ0120 Rev.1.20
Dec 16, 2016
Figure 17-3. Format of DMA Byte Count Register n (DBCn)
DBC0H: FFFB7H
DBC1H: FFFB9H
DBC2H: F0207H
DBC3H: F0209H
14
13
12
11
10
0
0
0
0
0
(When DBCn is Written)
1024
1
2
3
1022
1023
CHAPTER 17 DMA CONTROLLER
After reset: 0000H
9
8
7
6
5
Remaining Number of Times of Transfer
(When DBCn is Read)
Completion of transfer or waiting for 1024 times of DMA transfer
Waiting for remaining one time of DMA transfer
Waiting for remaining two times of DMA transfer
Waiting for remaining three times of DMA transfer
Waiting for remaining 1022 times of DMA transfer
Waiting for remaining 1023 times of DMA transfer
R/W
DBC0L: FFFB6H
DBC1L: FFFB8H
DBC2L: F0206H
DBC3L: F0208H
4
3
2
1
0
643

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rl78/g1dR5f11aggR5f11aghR5f11agj

Table of Contents