Datasheet

Table Of Contents
Section 7 DMA Controller (DMAC)
REJ09B0140-0900 Rev. 9.00 Page 179 of 846
Sep 16, 2010
H8S/2215 Group
In repeat mode, ETCRL functions as the transfer counter, and ETCRH is used to hold the number
of transfers. ETCRL is decremented by 1 each time a transfer is executed, and when its value
reaches H'00, it is loaded with the value in ETCRH. At the same time, the value set in MAR is
restored in accordance with the values of the DTSZ and DTID bits in DMACR. The MAR
restoration operation is as shown below.
MAR = MAR – (–1)
DTID
· 2
DTSZ
· ETCRH
The same value should be set in ETCRH and ETCRL.
In repeat mode, operation continues until the DTE bit is cleared. To end the transfer operation,
therefore, you should clear the DTE bit to 0. A transfer end interrupt request is not sent to the CPU
or DTC. By setting the DTE bit to 1 again after it has been cleared, the operation can be restarted
from the transfer after that terminated when the DTE bit was cleared. Figure 7.7 illustrates
operation in repeat mode.
Address T
Address B
Transfer
IOAR
1 byte or word transfer performed in
rewponse to 1 transfer request
Note:
Address
Address
Where:
T = L
B = L + (–1)
DTID
· (2
DTSZ
· (N–1))
L = Value set in MAR
N = Value set in ETCR
Figure 7.7 Operation in Repeat Mode