Renesas F-ZTAT H8 Series Hardware Manual page 244

Hide thumbs Also See for F-ZTAT H8 Series:
Table of Contents

Advertisement

Section 8 DMA Controller
Figure 8.7 shows a sample setup procedure for repeat mode.
Repeat mode
Set source and
destination addresses
Set transfer count
Read DTCR
Set DTCR
Repeat mode
Figure 8.7 Repeat Mode Setup Procedure (Example)
Rev. 3.00 Mar 21, 2006 page 216 of 814
REJ09B0302-0300
1. Set the source and destination addresses
in MAR and IOAR. The transfer direction
is determined automatically from the
activation source.
1
2. Set the transfer count in both ETCRH
and ETCRL.
3. Read DTCR while the DTE bit is cleared
to 0.
2
4. Set the DTCR bits as follows.
• Select the DMAC activation source
with bits DTS2 to DTS0.
• Clear the DTIE bit to 0 and set the
3
RPE bit to 1 to select repeat mode.
• Select MAR increment or decrement
with the DTID bit.
• Select byte size or word size with the
DTSZ bit.
4
• Set the DTE bit to 1 to enable the
transfer.

Advertisement

Table of Contents
loading

Table of Contents