38
7641 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
PRELIMINARY
Notice: This is not a final specification.
change.
Some parametric limits are subject to
Fig. 31 DMACx (x = 0, 1) block diagram
DMAC
The 7641 group is equipped with 2 channels of DMAC (direct
memory access controller) which enable high speed data transfer
from a memory to a memory without use of the CPU.
The DMAC initiates the data transfer with an interrupt factor speci-
fied by the DMAC channel x (x = 0, 1) hardware transfer request
source bit (DxCEN), or with a software trigger.
The DxTMS [DMA Channel x (x = 0, 1) Transfer Mode Selection
Bit] selects one of two transfer modes; cycle steal mode or burst
transfer mode. In the cycle steal mode, the DMAC transfers one
byte of data for each request. In the burst transfer mode, the
DMAC transfers the number of bytes data specified by the transfer
count register for each request. The count register is a 16-bit
counter; the maximum number of data is 65,536 bytes per one re-
quest.
Figure 31 shows the DMA control block diagram and Figure 32
shows the structure of DMAC related registers.
[DMAC Index and Status Register] DMAIS
The DMAC Index and Status Register consists of various control
bits for the DMAC and its status flags.
The DMA Channel Index Bit (DCI) selects which channel ( 0 or 1)
will be accessed, since the mode registers, source registers, des-
tination registers and transfer count register of both DMAC
channels share the same SFR addresses, respectively.
[DMAC Channel x (x = 0, 1) Mode Registers 1, 2] DMAxM1,
DMAxM2
The 16 bits of DMAC Channel x Mode Registers 1 and 2 control
each operation of DMAC channels 0 and 1.
When the DMAC Channel x (x = 0, 1) Write Bit (DxDWC) is “0”,
data is simultaneously written into each latch and register of the
Source Registers, Destination Register, and Transfer Count Reg-
isters. When this bit is “1”, data is written only into their latches.
When data is read from each register, it must be read from the
higher bytes first, then the lower bytes. When writing data, write to
the lower bytes first, then the higher bytes.
I
U
S
S
O
E
E
E
E
n
t
A
e
i
g
B
P
P
P
P
e
R
r
i
n
E
0
,
(
e
(
e
(
e
1
O
r
r
T
l
a
u
1
I
l
:
n
n
n
U
p
/
O
t
:
r
e
c
e
I
N
i
v
T
0
,
e
,
U
T
A
i
m
R
e
T
r
1
Y
t
,
r
a
C
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b
l
e
f
l
a
g
(
I
f
l
a
g
)
T
e
m
p
o
r
a
r
y
r
e
g
i
s
t
e
r
I
n
d
e
x
s
t
a
t
u
s
r
e
g
i
s
t
e
r
D
x
U
F
D
x
D
A
U
E
M
r
e
o
g
d
i
s
e
t
e
1
r
D
x
T
M
S
D
T
S
C
Mode 2
register
Ch
a
s
n
o
n
u
e
r
l
c
X
e
l
t
a
r
a
t
c
n
h
s
f
e
r
Channel X transfer
destination latch
15
Channel X transfer count latch
D
x
D
W
C
D
x
D
W
C
D
x
D
W
C
Data bus
D
a
t
a
b
u
s
D
D
x
x
U
S
F
F
I
1
5
0
0
1
5
0