Figure 7.10 Example Of Normal Mode Setting Procedure - Hitachi H8S/2215 Series Hardware Manual

Hitachi single-chip microcomputer
Table of Contents

Advertisement

Figure 7.10 shows an example of the setting procedure for normal mode.
Normal mode
Set DMABCRH
Set transfer source
and transfer destination
addresses
Set number of transfers
Set DMACR
Read DMABCRL
Set DMABCRL
Normal mode

Figure 7.10 Example of Normal Mode Setting Procedure

Rev. 3.0, 10/02, page 174 of 686
[1] Set each bit in DMABCRH.
setting
[2] Set the transfer source address in MARA, and the
[1]
[3] Set the number of transfers in ETCRA.
[4] Set each bit in DMACRA and DMACRB.
[2]
[3]
[4]
[5] Read the DTE = 0 and DTME = 0 in DMABCRL.
[6] Set each bit in DMABCRL.
[5]
[6]
· Set the FAE bit to 1 to select full address mode.
· Specify enabling or disabling of internal interrupt
clearing with the DTA bit.
transfer destination address in MARB.
· Set the transfer data size with the DTSZ bit.
· Specify whether MARA is to be incremented,
decremented, or fixed, with the SAID and SAIDE
bits.
· Clear the BLKE bit to 0 to select normal mode.
· Specify whether MARB is to be incremented,
decremented, or fixed, with the DAID and DAIDE
bits.
· Select the activation source with bits DTF3 to
DTF0.
· Specify enabling or desabling of transfer end
interrupts with the DTIE bit.
· Set both the DTME bit and the DTE bit to 1 to
enable transfer.

Advertisement

Table of Contents
loading

Table of Contents