FORCE Computers SYS68K/ISCSI-1 — SYS68K/ISCSI-1 User's Manual

HD68450, HD68450Y ---------------------------------- counts the number of transfer words in one block, and is de- creased by one for every operand transfer. The BTC is used to count the number of data blocks in the Array Chaining Mode. BTC is also used to set the number of operands to tr·ansfer for the next data block in the Continue Mode. • Read/Write of the DMAC Registers by MPU The MPU reads and writes the DMAC internal registers and controls the DMA transfer. Figure II indicates the timing dia- gram when the MPU reads the contents of the DMAC register. The MPU outputs AI -A 23 , FC o -FC 2 , AS, R/W, UDS, and lDS, and accesses the DMAC internal register.

The specif.ic internal register is selected by AI-A7, lDS and UDS. The CS and lACK Interrupt Vector Registers (NIV, EIV) Each channel has a Normal Interrupt Vector register and an Error Interrupt Vector register. When an interrupt acknowledge cycle occurs, an interrupt vector is outputted from one of those registers. If the error bit (CSR) is set for the channel with interrupt pending, then con- FC o-FC 2 . The DMAC outputs data on the data bus, together with DDlR, DB EN and DTACK. The DDIR and DBEN contlUl the bidirectional buffer on the bus and the DT ACK indicates that the data has been sent or received by the DMAC. Read Cycle is eighteen ClKs. Figure 12 shows the MPU write cycle.

Write cycle is fifteen ClKs. lines are generated by the external circuit with As-A23 and tent of EIV is outputted, otherwise content of NIV is out- putted. Note the following points. (I) The clock reference shown in this figure is the DMAC input clock. (2) The DDIR and the DBEN are three-stated at the beginning which detects CS and the ending of the cycle. (3) During the MPU read cycle, the DT ACK is asserted after the data is valid on the system bus. (4) During the MPU write cycle, the DDIR line will be driven low to direct the data buffers toward to DMAC before the buffers are enabled. (5) During the MPU write cycle, the DMAC will latch the data before asserting DT ACK.

Then it will negate DBEN and DDIR in the proper order. (6) After the MPU cycle and the lDS and the UDS are negated by the MPU, the DMAC will put DBEN, DDIR and the address data lines to a high impedance state. (7) DTACK will once go "High" and then to a high impedance state after negating lDS and UDS. • OPERATION DESCRIPTION A DMAC channel operation proceeds in three principal phases. During the initialization phase, the MPU sets the channel control registers, supply the initial address and the number of transfer words, and starts the channel. During the transfer phase, the DMAC accepts requests for data operand transfers, ~nd provides addressing and bus controls for the transfers.

The termination phase occurs after the operation is completed. This section describes DMAC operations. A description of the MPU/DMAC communication is given first. Next, the transfer phase is covered. including how the DMAC recognizes requests and how the DMAC arranges for data transfer. Following this, the initialization phase is described. The termination phase is covered. introducing chaining, error signaling, and bus excep- tions. A description of the channel priority scheme rounds out the section. ClK n.n.su---- 1 2 3 4 5 6 27 28 29 30 31 32 33 34 35 36 AS ~ ________ m \\\ ~ ~~«---- CS ~. __ _____ ---IlIln \\\ RW UDS ~ _________ _ lDS ~.

_________ .I.II DDIR ---...r--.- -·-------L __ .....J __ ---J~. u--'""~M~ ___ __1Jr---' ------ ~l[« ===»>----- DBEN As/Do-A23/D15 XDo-XD15 (External system data bus) «( DTACK Figure 11 MPU Read from DMAC - Word 16 ~HITACHI