Operation Of Dmac (Repeated Transfer Mode) - Renesas M30245 Series User Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M30245 Series:
Table of Contents

Advertisement

M30245 Group

2.10.3 Operation of DMAC (repeated transfer mode)

In repeat transfer mode, choose functions from the items shown in Table 2.10.2. Operations of the circled
items are described below. Figure 2.10.7 shows an example of operation and Figure 2.10.8 shows the
set-up procedure.
Table 2.10.2. Choosed functions
Item
Transfer space
Unit of transfer
(1) When software trigger is selected, setting software DMA request bit to "1" generates a DMA
Operation
transfer request signal.
(2) If DMAC is active, data transfer starts, and the contents of the address indicated by the DMAi
forward-direction address pointer are transferred to the address indicated by the DMAi desti-
nation pointer. When data transfer starts directly after DMAC becomes active, the value of
the DMAi transfer counter reload register is reloaded to the DMAi transfer counter, and the
value of the DMAi source pointer is reloaded by the DMAi forward-direction address pointer.
Each time a DMA transfer request signal is generated, 2 byte of data is transferred. The
DMAi transfer counter is down counted, and the DMAi forward-direction address pointer is up
counted.
(3) Though DMAi transfer counter is underflowed, DMA enable bit is still "1". The DMA interrupt
request bit changes to "1" simultaneously.
(4) After DMAi transfer counter is underflowed, when the next DMA request is generated, DMA
transfer is repeated from (1).
(1) Request signal for a DMA transfer occurs
BCLK
Address bus
CPU use
RD signal
WR signal
Data bus
CPU use
Write signal to
software DMAi
request bit
DMAi
request bit
DMA transfer
Indeterminate
counter
DMAi
interrupt
request bit
"1"
DMAi
enable bit
• In the case in which the number of transfer times is set to 2.
Figure 2.10.7. Example of operation of repeated transfer mode
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Fixed address from an arbitrary 1 M bytes space
O
Arbitrary 1 M bytes space from a fixed address
Fixed address from fixed address
8 bits
16 bits
O
(2) Data transfer begins
Destination
Dummy cycle
Source
Dummy cycle
Destination
Source
01
16
Cleared to "0" when interrupt request is accepted, or cleared by software
page 247 of 354
Set-up
(3) Underflow
Destination
Dummy cycle
CPU use
Source
Destination
CPU use
Source
00
16
Destination
CPU use
Source
Dummy cycle
Destination
CPU use
Source
01
16
FF
16
2. DMAC
Dummy cycle
CPU use
Dummy cycle
CPU use
00
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM20c series

Table of Contents