Direct Memory Access - NEC PD17062 Datasheet

Mos integrated circuit 4-bit single-chip microcontroller containing pll frequency synthesizer and image display controller
Table of Contents

Advertisement

20.2 DIRECT MEMORY ACCESS

The direct memory access (DMA) function transfers memory contents directly to peripheral equipment,
without using the CPU.
In the PD17062, the DMA mode is used to run the IDC.
The instruction cycle of the PD17062 is 2 s, but its apparent instruction cycle becomes 12 s during the
DMA mode. This does not mean that the actual instruction cycle becomes 12 s, but means that data transfer
for the IDC takes 10 s (5 instruction cycles) and execution of an instruction takes one instruction cycle as usual.
During DMA mode, instructions are executed at every five instruction cycles.
For the above reason, execution of one instruction takes 12 s apparently when the IDC is being used. In
a program in which a problem may occur if 12 s and 2 s instruction cycles are mixed, the IDC must be kept
at a stop and the DMA mode can be specified only for critical sections of the program. In this case, during
five instruction cycles for IDC data transfer, only the clock operates, and the PD17062 does nothing.
During the DMA mode, the ROM address for five instructions out of the six is not pointed to by the program
counter. Instead, it is pointed to by the CROM address pointer, and the RAM address is pointed to by the VRAM
address pointer.
The DMA mode is controlled using the IDCDMAEN flag.
The IDCDMAEN flag is mapped at the register file. It is a one-bit flag that can be both read- and write-
accessed. When this flag is set, a DMA request is accepted to begin the DMA mode in preference to any other
interrupt request. When the IDCDMAEN flag is reset, no DMA request is accepted. If it is reset during the
DMA mode, the DMA mode is terminated upon completion of the instruction that resets the flag.
b
b
b
3
2
1
0
0
IDCDMAEN
Table 20-1 IDCDMAEN Flag
b
0
0
(RF 00H)
0
Does not use the DMA mode (instruction cycle: 2 s)
0
Uses the DMA mode (instruction cycle: 12 s).
PD17062
243

Advertisement

Table of Contents
loading

Table of Contents