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

I MC68230LS-MC68230L 10 The following paragraphs introduce concepts that are generally applicable to the PI/T ports independent of the chosen mode and submode. For this reason, no particular port or handshake pins are mentioned; the notation H1 (H3) Indicates that. depending on the chosen mode and sub- mode, the statement given may be true for either the H1 or H3 handshake pin. PORT GENERAL INFORMATION AND CONVENTIONS of H1(H3l. H1(H3) IS edge-sensitive, and may assume any duty-cycle as long as both high and low minimum times are observed.

The PIIT contains a Port Status Register whose H1S(H3S1 status bit is set anytime any input data is present in the double-buffered latches that has not· been read by the bus master. The action of H2(H4) is programmable; it may indicate whether there is room for more data in the PI/T latches or it may serve other purposes. The following options are available, depending on the mode. Unidirectional vs Bidirectional - Figure 10 shows the con- figuration of Ports A and B and each of the handshake pins In each port mode and submode. In Modes 0 and 1, a data direction register IS associated with each of the ports.

These registers contain one bit for each port pin to determine whether that pin IS an Input or an output. Modes 0 and 1 are, thus, called unidirectional modes because each pin assumes a constant direction, changeable only by a reset condition or a programming change. These modes allow double-buffered data transfers in one direction. ThiS direction, determined by the mode and submode definition, IS known as the primary direction. Data transfers in the primary direction are con- trolled by the handshake pinS. Data transfers not in the primary direction are generally unrelated, and single or un- buffered data paths eXIst. 1.

H2(H4) may be an edge-sensitive input that is in- dependent of H1IH3) and the transfer of port data. On the asserted edge of H2(H41, the H2S(H4S1 status bit is set. It is cleared by the direct method (refer to Direct Method of Resetting Statusl, the RESET pin being asserted, or when the H12 Enable (H34 Enablel bit of the Port General Control Register is O. 2. H2(H4) may be a general purpose output pin that is always negated. The H2S(H4S) status bit is always O. 3. H2( H41 may be a general purpose output pin that IS always asserted. The H2S(H4SI status bit is always o 4. H2(H4) may be an output pin in the interlocked input handshake protocol.

It is asserted when the port in- put latches are ready to accept new data. It is negated asynchronously following the asserted edge of the H1 (H3) input. As soon as the input latches become ready, H2(H4) is again asserted. When the input double-buffered latches are full, H2(H4) re- mains negated until data is removed. Thus, anytime the H2(H4) output is asserted, new input data may be entered by asserting H1(H3l. At other times tran- Sitions on H1IH3) are ignored. The H2S(H4S) status bit IS always 0 When H12 Enable (H34 Enablel IS 0, H2( H41 is held negated 5. H2(H4) may be an output pin In the pulsed input handshake protocol.

It is asserted exactly as in the interlocked input protocol, but never remains asserted longer than 4 clock cycles. TYPically, a four clock cycle pulse is generated. But in the case that a subsequent H 1 (H3) asserted edge occurs before ter- mination of the pulse, H2(H4) is negated asyn- chronously. Thus, anytime after the leading edge of the H2(H41 pulse, new data may be entered In the PI/T double-buffered input latches. The H2S(H4S1 status bit IS always 0 When H1 2 Enable I H34 Enablel is 0, H2( H41 IS held negated. A sample timing diagram IS shown In Figure 11 The H2(H41 Interlocked and pulsed Input handshake protocols are shown. The DMAREQ pin is also shown assuming It IS enabled.

All handshake pin sense bits are assumed to be 0 (refer to Port General Control Register), thus, the pinS are In the low state when asserted. Due to the great Similarity be- tween modes, thiS timing diagram IS applicable to all double- buffered Input transfers. In Modes 2 and 3 there is no concept of primary direction as in Modes 0 and 1. Except for Port A in Mode 2 (Bit 1/01, the data direction registers have no effect. These modes are bidirectional, In that the direction of each transfer (always 8 or 16 bitS, double-buffered) is determined dynamically by the state of the handshake pins.

Thus, for example, data may be transferred out of the ports, followed very shortly by a transfer into the same port pins. Transfers to and from the ports are Independent and may occur In any sequence. Since the Instantaneous direction is always determined by the ex- ternal system, a small amount of arbitration logic may be re- qUired Control of Double-Buffered Data Paths - Ge!lcrally speaking, tne PI/T is a double-buffered device. In the primary direction, double-buffering allows orderly transfers bv uSing the handshake pins in any of several programmable p otocols.

(When Bit 1/0 IS used, double-buffering is not available and the handshake pins are used as outputs or status I Interrupt inputs.) Use of double-buffering IS most beneficial In situations where a peripheral device and the computer system are capable of transferring data at roughly the same speed. Double-buffering allows the fetch operation of the data transmitter to be overlapped with the store operation of the data receiver. Thus, throughput measured in bytes or words- per-second may be greatly enhanced. if there IS a large mismatch in transfer capability between the computer and the peripheral, little or no benefit is obtained In these cases there IS no penalty in using double-buffering.

Double-Buffered Input Transfers - In all modes, the PIIT supports double-buffered input transfers. Data that meets the port setup and hold times IS latched on the asserted edge ® MOTOROLA Semiconductor Products Inc. 13