English
Language : 

Z80 Datasheet, PDF (112/330 Pages) Zilog, Inc. – Z80 CPU PERIPHERALS
< %27 2GTKRJGTCNU
7UGT /CPWCN

Source and Destination
Bit 2 indicates the source port and, by implication, the destination port, if
the operation is a sequential transfer. When bit 2 is 0, Port B is the source;
when bit 2 is 1, Port A is the source. Search-only operations have only a
source port. If the operation is a simultaneous transfer or transfer/search
(where the class is set to search-only), external hard wiring determines the
destination port.
The direction of transfer should only be changed from its current setting
after the DMA is disabled by writing some other control byte to it.
Therefore, the WR0 byte should not be the first byte written to the DMA if
changing the direction of transfer.
Port A Starting Address
If Port A is used for either source or destination, its starting address must be
programmed. Set bits 3 and 4 in the base register byte to 1 so that the next
two bytes written to the DMA are recognized as the low and high bytes,
respectively, of the Port A starting address. This address is interpreted in the
context of the entries in WR1 bits 3 through 5, which differentiate the
address as either memory or I/O, fixed or variable, and, if variable, incre-
menting or decrementing. If Port A is to be a fixed address destination port,
see the section following entitled “Fixed-Address Destination Ports.”
UM008101-0601
Direct Memory Access