Fujitsu FR81S User Manual
CHAPTER 8: DMA CONTROLLER (DMAC)
6. DMA Usage Examples
FUJITSU SEMICONDUCTOR LIMITED
CHAPTER : DMA CONTROLLER (DMAC)
FUJITSU SEMICONDUCTOR CONFIDENTIAL
45
6. DMA Usage Examples
DMA usage examples are shown.
The following gives an example of memcpy instruction in every 64-byte data using the DMA. This is the
simplest DMA transfer example.
Figure 6-1 memcpy Example Using the DMA (ch.3 is used)
Configure DMA
・
Configure DMA transfer settings from software. (DCCR3)
Burst transfer; Transfer size: Word; Block size: 16 times
・
Configure the DMA transfer source address. (DSAR3)
・
Configure the DMA transfer destination address. (DSAR3)
・
Configure the number of transfers. (DTCR3)
Number of transfers: Amount of data to transfer (in bytes)/64
・
Permit and issue DMA request from software.
(DMACR, DCCR3)
Wait for DMA
to finish
・
The progress can be checked by reading the DSAR3, DDAR3, DTCR3
registers.
・
Transfer complete can be checked by reading the DCSR3 register.
Issue interrupt
request
(DDAR3)
MB91520 Series
MN705-00010-1v0-E
344