HD68450,HD68450Y-------------------------------------------------------------------- (ii) Dual addressing mode In the dual addressing mode, the operand size need not match the port size. Thus the transfer of an operand may require several DMA bus cycles. Each DMA bus cycle, between memory and DMAC and between DMAC and the device, is called the operand part and transfers a portion or all of the operand. The addresses of the operand parts are in a linear increasing sequence. The step between the addresses of the operand is two. The size of the operand parts is the minimum of the port size and the operand size. The number of the operand part is the operand size divided by the port size.
In the dual addressing mode, memory is regarded as a device whose port size is l6-bi ts. If the port size is 16 bits, the operand size is byte. and the request generation method is auto request or auto request at a limited rate, the DMAC packs consecutive transfers. This means that word transfers are made from the associated address with an address increment of two (2). If the initial source ad- dress location contains a single byte, the first transfer is a byte transfer to the internal DMAC holding register, and subsequent transfers from the source are word transfers.
If the initial destination location contains a single byte, the first transfer is a byte transfer from the internal DMAC holding register, and any remaining byte remains in the holding register. Likewise, if either the final source or destination location contains a single byte, only a byte transfer is done. Packing is not performed if the address does not count; each byte is transferred by a separate access to the same location. The dual address sequenc- ing is shown in Table 4.
Table 4 Dual Address Sequencing Port Size Operand Size Part Size Operand Part Address Increment Address + - - 8 Byte Byte A +2 0 -2 8 Word Byte A, A+2 +4 0 -4 8 Long Byte A, A+2, A+4, A+6 +8 0 -8 16 Byte Pack A 16 Word Word A 16 Long Word A,A+2 +P 0 -P +2 0 -2 +4 0 -4 P = 1 if packing is not done = 2 if packing is done Pack = byte if packing is not done word if packing is done An Example of a Dual Address Transfer This section contains an example of a dual address transfer using Table 4 of Dual-Address Sequencing. The table is repro- duced here as Table 5. The transfer 'mode of this example is the following: 1. Device Port size = 8 bits 2. Operand size = Long Word (32 bits) 3.
Memory to Device Transfer 4. Source (Memory) Counts up, Destination (Device) Counts In this mode, a data transfer from the source (memory) is done according to the 6th row of Table 5, since the port size of the memory is always 16 bits. A data t~ansfer to the destina- tion (device) is done according to the 3rd row of Table 5. Table 6 shows the data transfer sequence. The memory map of this example is shown in Table 7. The operand consists of BYTE A through BYTE 0 in memory of Table 7. Prior to the transfer, MAR and DAR are set to 00000012 and 00000 i 08 respectively. The operand is trans- ferred to the 8 bit port device according to the order of transfer number in Table 6. Down 5.
Memory Transfer Counter = 2 Table 5 Dual-Address Sequencing (Table 4) Operand Address Increment Row No. Port Size Operand Size Part Size Operand Part Addresses + = - 1 8 BYTE BYTE A +2 0 -2 2 8 WORD BYTE A,A+2 +4 0 -4 @ 8 LONG BYTE A, A+2, A+4, A+6 +8 0 -8 *4 *3 *5 *7 *8 * 10 4 16 BYTE PACK (BYTE or WORD)"" A +P 0 -P 5 16 WORD WORD A +2 0 -2 ® 16 LONG WORD A,A+2 +4 0 -4 *2 *1 *6 *9 " Numbers in Table 5 correspond to ones in Table 6 and 7. "" Refer to Address Sequencing on Operand Part Size and PACK. 32 ~HITACHI