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

HD68450,HD68450Y----------------------------------------------------------------------- • Device/DMAC Communication Communication between peripheral devices and the DMAC is accomodated by five signal lines. Each channel has REQ, ACK and PCl, and the last two lines the DONE and DTC lines, are shared among the four channels. (1) Request (REQ) The peripheral devices assert REQ to request data transfers. See the "Requests" section for details.

(2) Acknowledge (ACK) This line is used to implicitly address the device which is transferring the data (This device is not selected by address lines.) It is also asserted when the content of DAR is out- putted during memory-to-memory transfer except for the auto- request mode at a limited rate or at the maximum rate. (3) Peripheral Control Line (PCl) The function of this line is quite flexible and is determined by the OCR (Device Control Register). The DTYP bits of the OCR define what type of device is on the channel. If the DTYP bits are programmed to be a HMCS6800 device, the PCl definition is ignored and the PCl line is an Enable clock (E clock) input.

If the DTYP bits are pro- grammed to be a device with READY, the PCl definition as ignored and the PCl line is a ready input. PCl As a Status Input The PCl line may be programmed as a status input. The status level of this line can be determined by the PCS bit in the CSR. regardless of the PCl function determined by the DCR. device of the last data block. In the continue mode, DONE is asserted for each data block. It is asserted and negated in coin- cident with the ACK line for the last data transfer to the peripheral device.

It is also outputted in coincident with the ACK line of the last bus cycle, in which the address is outputted from the DAR, in the memory-to-memory transfer (dual addressing mode) that uses the ACK line. The DMAC also monitors the state of the DONE line during the DMA bus cycle. If the device asserts DONE during ACK active, the DMAC will terminate the operation after the transfer of the current operand. If DONE is asserted on the first byte of 2 byte operation or the first word of long word operation, the DMAC does not terminate the operation before the whole ope- rand transfer is completed.

If DONE is asserted, then the DMAC terminates the operation by clearing ·the ACT bit of the CSR, and setting the COC and NDT bits of the CSR. If both the DMAC and the device assert DONE, the device termination is not recognized, but the channel operation docs terminate. DONE is outputted again for the retry exceptions bus cycles. (5) Data Transfer Complete (DTC) DTC is an active low signal which is asserted when the actual data transfer is accomplished. It is also asserted in the bus cycle which read a chain information from memory in the Chaining mode. However, if exceptions arc generated and the DMA bus cycle terminates, DTC is not asserted.

DTC is asserted one half clock before lDS and UDS arc negated, and negated one half clock after lDS and UDS are negated. If a negative transition occurs and remains stable for a mini- mum of two clocks. the PCT bit of the CSR is set. This PCT bit is cleared by resetting the DMAC or the writing "I" to the PCT bit. PCl As an Interrupt The PCl line may be programmed to generate an interrupt on a negative transition. This enables an interrupt which is re- quested if the PCT bit of the CSR is set. When using this func- tion. it is necessary to reset the PCT bit in the CSR before the PCL bit in the DCR is set to interrupt, in order to avoid assertion of IRQ line at this time.

PCl As a Starting Pulse The PCl line may be programmed to output a starting pulse. This active low starting pulse is outputted when a channel is activated. and is "low" for a period of four clock cycles. PCl As an Abort Input Requests Requests may be externally generated by circuitry in the peripheral device, or internally generated by the auto-request mechanism. The REQG bits of the OCR determine these modes. The DMAC also supports an operation in which the DMAC auto-requests the first transfer and then wait for the peripheral device to request the following transfers. (1) Auto-request Transfers The auto-request mechanism provides generation of requests within the DMAC.

These requests can be generated at either of two rates: maximum-rate and limited-rate. In the former case, the channel always has a request pending. The limited rate auto-request functions by monitoring the bus utilization. TIlC PCl line may be programmed to be a negative transition above input which terminates an operation by setting the ex- ternal abort error in CER. It is necessary to reset the PCT bit in the CSR before activating the channel (Setting the ACT bit of CCR) so that the channel operation is not immediately aborted.

PCl As an Enable Clock (E Clock) Input If the DTYP bits are programmed to be a HMCS6800 device, the PCl definition is ignored and the PCl line is an Enable Clock input. The Enable clock downtime must be as long as five clock cycles, and must be high for a minimum of three DMAC clock cycles, but need not be synchronous with the DMAC's clock. PCl As a READY Input If the DTYP bits are programmed to be a device with READY, the PCl definition is ignored and the PCl line is a READY input. The READY is an active low input. (4) DONE (DONE) This line is an active low Input/Output signal with an open drain.

It is asserted when the memory transfer count is ex- limited-rate Auto-request Previous Sample Interval Current Sample Interval TIME -> Next Sample Interval LRAR I Interval Figure 14 DMAC Sample Intervals In the limited-rate auto-request the DMAC devide"s time into equal length sample intervals by counting clock cycles. The end of one sample interval makes the beginning of the next. During a sample interval, the DMAC monitors by means of BGACK pin the system bus activity of the DMAC and other bus master devices. At the end of the sample interval, decision is made whether or not to perform the channel's data transfer during the next sample interval.

Namely, based on the activity of the DMAC or other bus master devices during the current sample interval, the DMAC allows limited-rate auto-requests for some initial portion of the next sample interval. The length of the sample interval, and the portion of the sample interval during which limited-rate auto-requests can be hausted in a single block transfer. In the chaining operation, DONE is asserted only at the last transfer to the peripheral 18 HITACHI