---------------------------------- HD68450, HD68450Y Operands and Addressing Three factors enter into how the actual data is handled: port size, operand size and address sequencing. SIZE Operand Size 00 Byte 01 Word 10 Long word II (undefined, reserved) Port Size The OCR is used to program the device port size. DPS Device Port Size o 8 bit port I 16 bit port The operand size is the number of bits of data to be trans- ferred to honor a single request. Multiple bus cycles may be required to transfer the operand through the device port. A byte operand consists of 8 bits of data, a word operand consists of 16 bits of data, a long word operand consists of 32 bits of data.
The transfer counter counts the number of operands transferred. Table 2 indicates the combinations supported by the DMAC about the peripheral devices with different port size and operand sizes in the single and dual addressing mode. In the single addressing mode, port size and operand size must be the same. In the dual addressing mode, byte operand cannot be used when the port size is sixteen and the REQG bit is 10 or II. The port size is the number of bits of data which the device can transfer in a single bus cycle. During a DMAC bus cycle, a 16-bit port transfers 16 bits of data on Do - D. 5 , while an 8-bit port transfers 8 bits of data, either on Do - D7 or on D8 - D. 5.
The memory is always assumed to have a port size of 16. Operand Size OCR is used to program the operand size. Table 2 Operation Combinations Addressing Device Type Port Operand . REQG bits Word Long Word of OCR Dual 68000,6800 8 Dual 68000,6800 16 Dual 68000,6800 16 Single with ACKor 8 ACK& READ? 16 o ; enable X ; disable Byte 0 0 X 0 0 00,01,10,11 0 0 00,01 0 0 10, 11 X X 00,01,10,11 0 X 00, 01, 10, 11 0 X (3) Address Sequencing The sequence of addresses generated depends upon the port size, operand size, whether the addresses are to count up, down or not change and whether the transfer is executed in the single addressing mode or the dual addressing mode.
The memory address count method and the peripheral device address count method is programmed using the Memory address count (MAC) bit and the Device address count (DAC) bit in the Sequence Control Register (SCR). ing is shown in Table 3. If the operand size is byte, the memory address increment is one (I). If the operand size is word, the memory address increment is two (2). If the memory address register does not count. the memory address is unchanged after the transfer. If the memory address counts up. the increment is added to the memory address; if the memory address counts down, the increment is subtracted from the memory address.
The memory address is changed after the operand is transferred. (i) Single addressing mode In the single addressing mode, memory address sequenc- Table 3 Single Address Sequencing Port Size Operand Size Memory Address Increment + (increment) = (unchanged) - (decrement) 16 Word +2 ° B Byte +1 ° -1 -2 ~HITACHI 31