ENHANCED PARALLEL PORT

Abstract: An enhanced parallel port interface increases the bandwidth of a standard parallel port connector while at the same time maintaining backward compatibility with a standard parallel port interface. In order to increase the data transfer rate, the software overhead is substantially reduced by hardware generated signals. As such, the desirability of using a parallel port bus expansion is greatly increased.

Description: ENHANCED PARALLEL PORT BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to computer systems and more particularly to an enhanced parallel port (EPP) interface which allows for increased performance and band¬ width of a standard parallel port connector while at the same time maintaining compatibility with the existing parallel port interface which includes hardware that enables the software overhead for data transfers to be substantially reduced thus increasing the system perform¬ ance to enable it to be utilized for bus expansion. 2. Description of the Prior Art IBM type PC/AT compatible personal computers are provided with a relatively limited number of input/output (I/O) expansion slots to accommodate various I/O devices including additional memory storage devices, tape backup systems, network interface circuits and the like. In order to support a trend of an ever increasing need for expansion capabilities for additional I/O devices, based upon, for example, increased consumer demand for various I/O devices, such as CD-ROMS, various solutions are known. For example, additional I/O devices can be connected to existing expan¬ sion slots within personal computers. If existing expan- sion slots are unavailable, expansion buses are known for providing additional sets of I/O slots. Both IBM type PC/AT compatible and non-compatible (e.g., PCMCIO) expan¬ sion buses are known. With such an arrangement, the addition of the I/O devices, whether supported by existing expansion slots or. additional expansion slots created by an expansion bus is relatively cumbersome and generally requires the services of a computer technician which adds to the overall cost of adding an I/O device. In order to avoid such problems, standard parallel ports have been known to be used for expansion capabilities. Although standard parallel ports are undoubtedly the simplest and most cost-effective solu- tion, there are other problems associated with using a parallel port in such an application. More particularly, parallel ports are known to be a relatively slow interface. In particular, parallel ports were developed in the past primarily to support printers whose maximum block transfer rate is about 500 kilobits/sec - assuming no data com¬ pression. The block transfer rate is limited by the soft¬ ware overhead required to support data transfers to such devices. For example, 4 to 6 instructions are typically required for transferring data. In particular, a typical transfer may be as follows: 1) write data to data port, 2) assert a strobe signal, 3) check the busy input, 4) if the busy signal is active go to step 3, 5) if the busy signal is inactive clear the strobe, 6) go to step 1 if the block is not transferred. The problem of relatively slow data transfer through a standard parallel port is not solved by the ever increasing clock speeds of newer IBM type PC/AT compatible computers. In such applications, the number of machine clock cycles per instruction merely increases, thus main¬ taining generally the same transfer rate. SUMMARY OF THE INVENTION It is an object of the present invention to solve various known problems associated with personal computers. It is another object of the present invention to provide an interface for additional I/O devices that is relatively convenient and does not require the services of a computer technician. It is yet another object of the present invention to decrease the software overhead required to support data transfers through a standard parallel port connector. It is yet a further object of the present inven- tion to increase the data transfer rate through a standard parallel port connector. It is yet a further object of the present inven¬ tion to provide a special purpose interface for a parallel port connector which maintains compatibility with an exist- ing parallel port interface. BRIEF DESCRIPTION OF THE DRAWING These and other objects of the present invention will be readily understood with reference to the following specification and accompanying drawing, wherein: FIG. 1 is a pin-out drawing of a multi-function parallel port connector in accordance with the present invention with alternate pin functions shown in paren¬ thesis; FIG. 2 is a simplified schematic diagram of the address decoding logic and the configuration registers which form a portion of the enhanced parallel port (EPP) interface in accordance with the present invention; and FIG. 3 is a schematic diagram of the EPP inter¬ face in accordance with the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT The present invention relates to an enhanced parallel port (EPP) hardware interface which enables the software overhead for block data transfers through a stand¬ ard parallel port connector to be significantly reduced. As such, the data transfer rate is significantly increased which improves the desirability of a parallel port for bus expansion to support additional I/O devices. In particu¬ lar, the EPP interface in accordance with the present invention allows for bus expansion rather quickly and inexpensively with the need for a computer technician by allowing various I/O devices and bus expansion devices to be connected directly to a parallel port connector thus obviating the need to access existing expansion slots within the computer housing. For example, due to the increased bandwidth, the EPP interface allows personal computers including portable personal computers to be rather quickly and easily connected to a local area network (LAN) by way of a standard parallel port connector. In addition, due to backward compatibility with standard parallel port interfaces, the EPP interface allows connectors which support multiple I/O, such as a small system computer interface (SSCI) , to be connected to a standard parallel port connector. EPP EXTERNAL ARCHITECTURE The EPP interface in accordance with the present invention is adapted to be used with a standard 25 pin, D type connector 20 as shown in FIG. 1. The EPP interface circuitry in accordance with the present invention, illus¬ trated in FIGS. 2 and 3, is connected to the connector 20 to support two modes of operation; a normal mode and an EPP mode. In a normal mode of operation, the parallel port connector 20 operates as a standard parallel port interface with the exception that certain pins are driven by CMOS drivers instead of open-drain drivers as will be discussed below. However, these CMOS driven pins are adapted to be used for bi-directional data transfer during a normal mode of operation. The pin functions during a normal mode of opera¬ tion are standard as defined in Table 1 below. Table 1 Pin Signal Number Name Description 1 -STROBE Strobe bit. This active low pulse indicates that the computer is transmitting parallel data. It is used to time the data being sent to the peripheral device. 2-9 PPD0- Data bits 0 through 7. These PPD7 signals are the system buffered and latch data bits. 10 -ACK Acknowledge. This active low signal indicates that the peri¬ pheral device has received the data. It can be used for hard¬ ware handshaking. 11 BUSY Busy. This signal indicates that the peripheral device is busy and not ready to receive data. Can be used for hardware handshaking. 12 PE Paper End (out) . This signal indicates a peripheral fault. It is used by a printer to indicate that it is out of paper. 13 SLCT Select. This signal informs the peripheral that it has been selected. 14 -AFDXT Auto Feed. This active low signal requests a paper feed by the peripheral. 15 -ERROR Printer Fault. This active low signal indicates that an error condition exists in the peri¬ pheral. 16 ■ INIT Initialize. This active low signal is used to initialize the peripheral. 17 -SLCTIN Select In. This active low signal is used by the peripheral device to indicate that it has been selected. 18-25 GND Ground. In an EPP mode of operation, certain of the pin functions are redefined as identified in Table 2. The corresponding standard parallel port signal functions are shown in parenthesis. Pin Signal Number Name Description 17 ASTRB# Address Strobe. During EPP cycles, (SLCTIN#) this active low output signal indicates that the index port, x7BH, is being accessed. Used to latch data on a write or to enable drivers during a read. When EPP mode is enabled, this output is driven by a CMOS driver. During a normal mode of operation, this is the "Line Printer Select In" output signal. DSTRB# Data Strobe. During EPP cycles, (AFDXT#) this active low output signal indicates that one of the data ports, x7CH - x7FH, is being accessed. Used to latch data on a write or enable drivers during a read. When EPP mode is enabled, this output is driven by a CMOS drive. During a normal mode of operation, this is the "Line Printer Auto Line Feed" output signal. INTR# Interrupt. This active low input (ACK#) signal is used by the peripheral device to generate interrupts. A low on this signal, with the interrupts enabled, will cause the interrupt request signal to the Programmable Interrupt Controller to go active. No added functionality was added to this signal to support EPP mode, the name was changed to more accurately describe this signal's function. During a normal mode of operation, this is the "Line Printer Acknowledge" input signal. WAIT# Wait. During EPP cycles, this (BUSY) active low input signal is used to hold the CPU while data is being gathered. WAIT# active will result in the IOCHRDY signal being pulled inactive if either the ASTRB# or DSTRBf signals are active. WAIT# should not be held active for more than 12us. During a normal mode of opera¬ tion, this is the "Line Printer Busy" input signal. WRITE# Write. This active low output (STROBEf) signal indicates that the cycle being conducted across the port is a write to the EPP device. During a normal mode of opera¬ tion, this is the "Line Printer Strobe" output signal. (ERRORf) The function of this signal is not changed in EPP mode. During a normal mode of operation, this is the "Line Printer Error" input signal. GND System Ground. 16 (INIT#) The function of this signal is not changed in EPP mode. During a normal mode of operation, this is the "Line Printer Initialize" output signal. 2-9 PDATA Parallel Port Data. 8-bit data (7,0) path used to transfer data. In EPP mode, this is a bidirectional data bus. When WRITE# is active (low) , these signals are out¬ puts. In PS/2 mode, the direc¬ tion is controlled by the Parallel Port Control Register bit 5. During a normal mode of operation, these signals are outputs only. 12 (PE) The function of this signal is not changed in EPP mode. During a normal mode of operation, this is the "Line Printer Paper Empty" input signal. 13 (SLCT#) The function of this signal is not changed in EPP mode. During a normal mode of operation, this is the 'Line Printer Selected" input signal. Table 2 In addition to the connector 20, the external architecture of the EPP interface may also include addi¬ tional circuitry as illustrated in FIG. 2. However, such circuitry may also be included on-chip with the circuitry illustrated in FIG. 3 to be discussed below. As shown, the external architecture includes one or more configuration registers 22 and address decoding circuitry 24 that are connected to an AT type system bus 26. The system bus signals which interface with the con¬ figuration register 22 and the address decoding circuitry 24 is illustrated in Table 3 below. Signal Description ADDR(9-0) Active High Address Bus: System address bus used to decode the I/O space. DATA(7-0) Active High Data Bus: System data bus used to transfer data to and from the port. -IOR Active Low I/O Read: System strobe used to indicate data being read from I/O location. -IOW Active Low I/O Write: System strobe used to indicate data being written to an I/O location. Active High Address Enable: System status signal used to indicate that a DMA or Refresh device has control of the bus. I/O Address decodes should be ignored. Active High I/O Channel Ready: System control line used by a peripheral device that it is ready to send or receive data. If the peripheral device pulls this line low or inactive extra system wait states will be added. Active High Interrupt: System interrupt line causes processor to jump to interrupt service routine. IRQ7 is used when decoding for LPT1 and IRQ5 is used when decoding LPT2. Table 3 The configuration register 22 is used to enable an EPP mode enable bit, EPP-EN, which may be controlled by the basic input output system (BIOS) software. Various other bits are available from the configuration register 22 for use with the address decode logic 24 and control of the EPP interface illustrated in FIG. 3. In particular, the bits LPTIEN and LPT2EN are used to indicate whether the parallel port has been configured as either LPT1 as LPT2 in order to enable the appropriate interrupt IRQ7 or IRQ5. These bits LPTIEN and LPT2EN are also used for generating the appropriate address decode signals as will be discussed below. The configuration bit EXTPP is used to represent a normal mode of operation, which may be controlled by the BIOS software in a similar manner as the EPP-EN configura¬ tion bit. As mentioned above, the configuration register 22 interfaces with the system bus 26 as illustrated in FIG. 2. In particular, the system data bus XD(7:0) is applied to the configuration register 22. In addition, in order to enable the CPU (not shown) to read and write to the con- figuration register 22, the system read and write control signals -IOR and -IOW, are also applied thereto. The address decode circuitry 24 is used for address decoding during both a normal and EPP mode of oper¬ ation. More specifically, as will be discussed in more detail below, the standard parallel port interface includes a data register 28, a control register 30 and a status register 32. The address mapping of these registers 28, 30 and 32 for a configuration of the parallel port as either LPT1 or LPT2 is illustrated in Table 4 below. I/O Address Register Description LPT1 LPT2 378H,37CH 278H,27CH Data Register 379H,37DH 279H,27DH Status Register 37AH,37EH 27AH,27EH Control Register 378H,37FH 27BH,27FH unused address Table 4 During an EPP mode of operation, the parallel port addresses between x7BH and x7FH are used for the EPP interface as shown in Table 5 below. However, as shown in Tables 4 and 5, the addresses x78H, x79H and x7AH for the standard parallel port registers 28, 30 and 32 remain un¬ changed during an EPP mode of operation. I/O Address Register Description L LPT2 As mentioned above, the address decode circuitry 24 interfaces with the configuration register 22 as well as the system bus 26. In particular, the port number enable signals LPTIEN and LPT2EN as well as the EPP mode enable signal EPP-EN from the configuration register 22 is applied to the address decode circuitry 24. The system data bus XD(7:0) as well as a system bus control signal AEN are also applied to the address decoding circuitry 24. The signal AEN indicates that the system bus 26 is busy with other tasks and is thus used to disable the address decoding circuitry during such conditions. The address decode circuitry 24 thus generates various address decode signals which are used to select various registers as will be discussed below when the CPU writes to the addresses listed in Table 5 during both a normal mode of operation and an EPP mode of operation. The logic equations for the address decode circuitry 24 are provided in Appendix 1. In particular, the address decode signals, -CSDAT, -CSPCTRL and -CSPSTAT are decode signals for the data register 28, the control register 30 and the status register 32, respectively. These signals, -CSDAT, -CSPCTRL and -CSPSTAT, are active low whenever the CPU writes to addresses x78H, x79H or x7AH, respectively, as indicated in Table 5. The address decode signals CSEPPA and CSEPPD are used during an EPP mode of operation. These signals, CSEPPA and CSEPPD are active high whenever the CPU writes to x7BH to x7FH as illustrated in Table 5. These signals CSEPPA and CSEPPD are ORed by way of an OR gate 34 and inverted by an inverter 36 to generate a signal, -CSEPP. The signal -CSEPP is active low for addresses between x7BH and x7FH during an EPP mode of operation. The address decode signals CSEPPA and CSEPPD are also used to generate address and data strobe signals, EPP-AS and EPP-DS, respectively, used during an EPP mode of operation. In particular, the system read and write control signals -IOR and -IOW, respectively, are applied to inverting inputs of a NOR gate 38 whose output is inverted by an inverter 40. The output of the inverter 40, which indicates either an I/O read or write, is ANDed with the address decode signal CSEPPA by way of an AND gate 42 to generate an EPP address strobe signal EPP-AS. In a similar manner the output of the inverter 40 is ANDed with the address decode signal CSEPPD by way of an AND gate 44 to generate an EPP data strobe signal EPP-DS. Since the strobe signals are hardware generated, the software overhead for data transfer through the parallel port connector 20 during an EPP mode of operation can be reduced to a single instruction (e.g., REP OUTS DX, DW0RD[S1]). The address decode signals are also used to generate an EPP write signal EPPWR. In particular, the system write signal -IOW is applied to a inverting input of a buffer and ANDed by way of an AND gate 48 with the output of the OR gate 34 to generate the EPP write signal EPPWR. The external architecture of the EPP interface in accordance with the present invention may also include circuitry for controlling the cycles of the CPU as well as circuitry for enabling interrupts. In particular, parallel port interrupt enable and interrupt signals PPIEN and PPIRQ, available from the control register 30 and the status register 32 (FIG. 3) , are used to generate the interrupts IRQ5 or IRQ7 depending on whether the parallel port is configured as LPT1 or LPT2. More particularly, the interrupt request signal PPIRQ is applied to tristate devices 50 and 52 to generate the interrupts IRQ5 and IRQ7, respectively, which, in turn, are applied to the system bus 26. The tristate devices 50 and 52 are under the control of AND gates 54 and 56, respectively. The signal LPT2EN from the configuration register 22 is ANDed with the inter¬ rupt enable signal PP-IEN by way of the AND gate 54 to enable the tristate device 50, which, in turn, generates the IRQ5 interrupt. In a similar manner, the signal LPTIEN, available from the configuration register 22, is ANDed with the interrupt enable signal PP-IEN by way of the AND gate 56 to enable the tristate device 52, which, in turn, generates the IRQ5 interrupt. Another important aspect of the invention relates to the ability to program the speed of the data transfer rate through the parallel port connector 20. This is accom¬ plished by way of an EPP ready signal EPPRDY which can be used to pull the bus channel ready signal IOCHRDY signal low to extend bus cycles during an EPP mode of operation. The EPP ready signal EPPRDY is a timing signal, available at an output of the status register 32. This signal EPP-RDY is inverted by way of an inverter 58 and ANDed by way of an AND gate 60 with the output of the OR gate 34 and the output of the buffer 40 which enables the transfer rate to be controlled both during read and write operations during an EPP mode of operation. The output of the AND gate 60 controls a tristate device 62, whose input is tied low. The output of the tristate device 62 is used to pull the I/O channel ready signal low IOCHRDY on the system bus 26. In order to clear the control register 30 as will be discussed below, the external architecture of the EPP interface may also include an inverter 64. The inverter 64 is used to generate an active low system reset signal -RESET which is applied to the control register 30. INTERNAL ARCHITECTURE The internal architecture of the EPP interface logic in accordance with the present invention is illus¬ trated in FIG. 3. The internal architecture includes a standard parallel port latch 28, a control register 30 and a status register 32 as well as an EPP write buffer 66 and an EPP read buffer 68. The EPP interface logic is connected to the 25 pin D connector 20 to enable data transfer through the connector 20 in both a normal mode of operation and an EPP mode of operation. In particular, the parallel port data bus PPD(7:0) , available at the output of the standard parallel port write latch 38 and the EPP write buffer 66, are applied to pins 2-9 of the connector 20 to enable the CPU to write to the parallel port connector 20 both during a normal mode of operation and an EPP mode of operation. Pins 18-25 of the connector 20 are connected together and are tied to ground. As mentioned above, certain of the standard parallel port signals are redefined during an EPP mode of operation. In particular, these control signals are the -STROBE, -AFDXT, -INIT and -SLCTIN signals, available at pins l, 14, 16 and 17, respectively. In order to enable the CPU to read these signals, these control signals -STROBE, -AFDXT, -INIT and -SLCTIN are buffered by a plurality of I/O buffers 70, 72, 74 and 76. Each I/O buffer 70, 72, 74, 76 includes a tristate device 78, a buffer 80 and a pull-up resistor 82. The I/O buffers 70, 72, 74 and 76 enable these signals to be read back by the CPU by way of the status register 32. As mentioned above, the I/O buffers 70, 72, 74 and 76 are also used for interfacing with the connector 20. Thus, buffered output signals -BOSTRB, -BIOAFDT, -BOINIT and -BOSLTI, developed by the control logic, as will be discussed below, are applied to the tristate devices 78 in the I/O buffers 70, 72, 74 and 76, respectively, which, in turn, are connected to pins 1 , 14, 16 and 17 by way of the pull-up resistors 82. The tristate devices 78 in each of the I/O buffers 70, 72, 74 and 76 are under the control of operate enable signals, STRBOE, AFDTOE, INITOE and SLTIOE. The internal buffer 80 of each of the I/O buffers 86 is connected to the output of the tristate device 78. This enables the buffered output signals, -BOSTRB, -BOAFDT, -BOINIT and -BOSLTI to be read back at the status register 32 as buffered input signals; -BISTRB, -BIAFDT and -BISLTI. More particularly, the buffered input signals -BISTRB, -BIAFDT and -BISLTI are applied directly to pins 1A0, 1A1 and 1A3 of the status register 32. The buffered input signal -BIINIT is applied to pin 1A2 of the status register 32 by way of an inverter 116. It should be noted that when an EPP mode is enabled, normally open collector outputs from the signals; -STROBE, -AFDXT, -INIT and -SLCTIN are driven with 12ma CMOS drivers. Although such CMOS drivers are not compat- ible with a standard parallel port interface, such drivers are necessary to decrease the rise time on the automatic strobes to allow for faster cycle times. During a normal mode of operation, these four interface signals may be used for bi-directional data transfer. However, when the EPP mode is enabled, peripheral devices should not be used to drive these signals since the signals are driven by the EPP interface. Thus, peripheral devices that attempt to drive these signals during an EPP mode of operation may cause damage to the EPP interface or the peripheral and thus should be avoided. The handshake status signals; -PPACK, PE and SLCT, available at pins 10, 12 and 13 of the connector 20, are applied to the status register 32 by way of the inver¬ ters 86, 88 and 90, respectively. The handshake status signal, BUSY, is applied to the status register 32 by way of a buffer 92. As such, the handshake status signals can be read by the CPU. The interrupt request signal PPIRQ, as discussed above, is used to generate the IRQ5 and IRQ7 interrupts. This signal PPIRQ is available at the output of an inverter 94 whose input is tied to the RPACK signal, available at the output of the inverter 90. The interrupt enable signal, PPIEN, discussed above, is available at a Q4 output terminal of the control register 30. The interrupt enable signal PPIEN is also adapted to be read by the CPU by way of a tristate device 96. More particularly, the interrupt enable signal PPIEN is applied to the input of the tristate device 96 whose output is applied to the XD4 line of the system data bus. The tristate device 96 is under the control of a NAND gate 98 whose output is tied to a control input of the tristate device 96 by way of an inverter 100. An I/O read signal -IOR along with a control register decode signal -CSPCTRL are applied to inverting inputs of the NAND gate 98 to enable the tristate device 96 whenever the CPU initiates a read of the control register 30. The parallel port error signal, -ERROR, available at pin 15 of the connector 20, may be read by the CPU in a similar manner. More particularly, the -ERROR signal is applied to a tristate device 102 by way of a buffer 104. The output of the tristate device 102, in turn, is applied to the XD3 line of the system data bus. The tristate device 102 is under the control of a NAND gate 106 by way of an inverter 108. The system I/O read signal -IOR and the address decode signal -CSPSTAT are applied to inverting inputs of the NAND gate 106 to enable the tristate device when the CPU initiates a read of the status register 32. The control register 30 is normally used for standard parallel ports. The system data bus XD(6:0) is connected to the D0-D6 inputs of the control register 30 to enable the CPU to write to it during a normal mode of operation. The control register output signals Q0-Q3 are used to generate the standard parallel port control signals; -STROBE, -AFDXT, -INIT and -SLCTIN during a normal mode of operation. Thus, during a normal mode of opera- tion, these signals -STROBE, -AFDXT, -INIT and -SLCTIN are software driven and account for the software overhead dis¬ cussed above. However, during an EPP mode of operation, the address and data strobe signals EPP-AS and EPPDS, as well are the EPP write signal EPP-WR are hardware driven as discussed in connection with the external EPP architecture. Thus, by utilizing such hardware driven signals, the soft¬ ware overhead can be significantly reduced from about 4-6 instructions to 1 instruction as discussed above. Accord¬ ingly, the bandwidth of the parallel port can be signifi- cantly increased. In order to redefine that signals -STROBE, -AFDXT, -INIT and -SLCTIN in an EPP mode of operation, the Q0, Ql and Q3 output signals of the control register 30 are ORed with the EPP-WR; EPP-DS and EPP-AS signals by way of a plurality of OR gates 110, 112 and 114, respectively. The Q2 output from the control register 30 is applied to an inverter 116. During a normal mode of operation, the EPP mode control signals are low. Thus, during such a condi¬ tion, the OR gates 110, 112 and 114 are under the control register 30 as is the inverter 116 to generate the standard parallel port control signals. However, during an EPP mode of operation, the control register 30 is reset by the system reset signal -RESET. In this situation, the OR gates 110, 112 and 114 are under the control of the hard¬ ware generated EPP strobe and write signals, EPPDX, EPPAS and EPPWR in order to redefine the pin functions as defined in Table 2. The EPP mode signals include a write signal EPPWR, a data strobe signal EPPDS and an address strobe signal EPPAS and an interrupt signal INTR. As mentioned above, the interrupt signal INTR functions the same as the ACK signal used during a normal mode of operation. As mentioned above, both the normal and EPP mode signals are applied to the OR gates 110, 112 and 114. Thus, the outputs of the OR gates 110, 112 and 114 along with the output of the inverter 114 are ORed with an EPP enable signal EPP-EN by way of the OR gates 118, 120, 122 and 124. The outputs of the OR gates 118, 120, 122 and 124 are used to generate the operate enable signals; STRBOE, AFDTOE, INITOE and SLTIOE, which are applied to the tristate devices 78 within the I/O buffers 70, 72, 74 and 76. During a normal mode of operation the EPP enable signal EPPEN is low. Thus, during such a condition, the OR gates 118, 120, 122 and 124 are under the control of the OR gates 110, 112 and 114 and the inverter 116 to enable the normal mode pin functions to be selected by the CPU by way of the control register 30 as defined in Table 1. The outputs of the OR gates 110, 112 and 114 as well as the inverter 116 are applied to inputs of AND gates 126, 128, 130 and 132 by way of inverters 134, 136, 138 and 140 along with an EPP enable signal EPP-EN. The outputs of the AND gates 126, 128, 130 and 132 are used to generate the buffered output signals -BOSTRB, -BOAFPT, -BOINIT and -BOSLTI, which are applied to the tristate devices 78 in each of the I/O buffers 70, 72, 74 and 76. The output of these tristate devices 78 are then applied to pins 1, 14, 16 and 17 of the parallel port connector 20. During a normal mode of operation, the AND gates 126, 128, 130 and 132 are disabled since the EPP-EN signal is low during such a condition. However, once in the EPP mode, the AND gates 126, 128, 130 and 132 are under the control of the OR gates 110, 112 and 114 and the inverter 116. As mentioned above, the control register 30 is a six bit register. The system data bus XD0-XD5 is applied to the D0-D5 inputs of the control register to enable the CPU to write to it. Data can be written to the control register under the control of a NAND gate 142. A system write signal -IOW as well as a control register decode signal -CSPCTRL are applied to inverting inputs of the NAND gate 142 whose output is applied to a clock CLK input of the control register 30 to enable the control register 30 any time the CPU writes to the control register address as listed in Tables 4 and 5 above. The control register 30 is reset by way of a system reset signal -RESET which is applied to a clear input CLR of control register 30. As mentioned above, the control register 30 is reset during an EPP mode of operation. The status register 32 is an eight bit register. The system data bus XD(7:0) is applied to the 1A0-1A3 and the 2A0-2A3 inputs of the status register 32. The output pins 1Y0-1Y3 outputs are read by the CPU as control signals under the control of the NAND gate 98 whose output is applied to an ENA input of the status register 32. The 2Y0-2Y3 outputs are read by the CPU as status signals under the control of the NAND gate 106 whose output is applied to an ENB output of the status register 32. The standard parallel port write latch 28 is an eight bit edge triggered latch. As mentioned above, the parallel port data bus PPD(7:0) is applied to the Q0-Q7 outputs. The system data bus XD(7:0) is applied to the D0-D7 inputs of the write latch 28 to enable the CPU to write to it. Data is written to the write latch 28 under the control of a NAND gate 144 whose output is applied to a clock input of the write latch 28. The system read control signal -IOW and the chip select signal -CSPDAT are applied to inverting inputs of the NAND gate 144. Thus, the output of the NAND gate 144 will be active when both the -IOW and -CSPDAT signals are active. Data is latched by the write latch 144 when the output from the NAND gate 144 goes from a low or active state to a high or inactive state. The output control of the write latch 28 is under the control of a NAND gate 146. In particular, the output of the write latch 28 is enabled whenever the NAND gate 146 goes low. The NAND gate 146 is under the control of an- other NAND gate 148 and a flip-flop 150. Thus, in order to enable the output control of the write latch 28, both outputs of the NAND gate 148 and the flip-flop 150 must be high. The flip-flop 150 is used to enable the standard write latch 28 in an EPP mode of operation when the stand¬ ard data port is accessed. When the EPP mode is disabled, the EPP-EN signal will be inactive, which deasserts a PRESET pin of the flip-flop 150 forcing the Q output of the flip-flop 150 high. During an EPP mode of operation, the EPP-EN signal is asserted. During such a condition, a write to the standard parallel data port will cause the Q output to go high. The Q output of the flip-flop 150 will go high in response to its clock CLK input transitioning from a low to high. The clock CLK input of the flip-flop 150 is driven by the NAND gate 144 discussed above. The Q output of the flip-flop 150 is cleared by the output of a NOR gate 152 going low. The output of the NOR gate 152 will go low when the chip select signal -CSEPP signal is asserted and either the -IOR or -IOW signals are asserted. The other input to the NAND gate 146 is from the NAND gate 148, whose output will go high when the EXTPP input is low or the Q5 output of the control register 30 is low. The read buffer 66 is an eight bit latch used for transferring data from the parallel port connector 20 during both standard parallel port and EPP read cycles. The output enable for the read buffer 66 is under the control of a NAND gate 154, which is active low. A system I/O read control signal -IOR is applied to an inverting input of the NAND gate 154. The output of a NOR gate 156 is applied to another inverting input of the NOR gate 156. The chip select signals -CSEPP and -CSPDAT are applied to inverting inputs of the NOR gate 156. Thus, since the output enable for the read buffer 66 is active low, the output will be enabled whenever the I/O read signal -IOR is active and either of the chip select signals -CSEPP or -CSPDAT are active to enable the read buffer 66 during both normal and EPP read cycles. The chip select signal -CSEPP is active during an EPP mode of operation whenever the CPU addresses 37BH-37FH (LPT1) or 27BH-27FH (LPT2) . The chip select signal -CSPDAT is the standard parallel data for chip select. This signal -CSPDAT will go active whenever the CPU asserts the address 378H (LPT1) or 278H (LPT2). The write buffer 68 is an eight bit transparent latch used to buf er data from the CPU to the parallel port connector 20 during EPP write cycles. Data is transferred to the write buffer 68 under the control of a NAND gate 158 by way of an inverter 160; whose output is applied to the clock input CLK of the write latch 68. An I/O write signal -IOW and the chip select signal -CSEPP are applied to the inverting inputs of the NAND gate 158 to cause the NAND gate 158 to go active when the signals -IOW and -CSEPP are both active, indicating a write to the EPP port. The output enable control of the write latch 68 is under the control of a NAND gate 162, which is active low. A Q output from the flip-flop 150 is applied to one input of the NAND gate 162 along with an output from a NOR gate 164. Two signals are applied to inverting inputs of the NOR gate 164. One signal is from the output of the NAND gate 154. The other signal is from an output of a NAND gate 166. An output signal from the NOR gate 164 is applied to one inverting input of the NAND gate 166 forming a latch. An output from a NOR gate 168 is applied to an¬ other inverting input of the NAND gate 166. The address strobe signal -ASTRB and the data strobe signals -DSTRB, available at the status register 32, are applied to invert¬ ing inputs of the NOR gate 108. In operation, the output control of the latch 68 is driven by the NAND gate 162. The output of the NAND gate 162 will go active when the Q output of the flip-flop 150 is high and the output of the NOR gate 164 is high. The Q output of the flip-flop 150 operates in the same manner as the Q output discussed above, except it is the reverse polarity. During an EPP write cycle, the signals -CSEPP and -IOW are asserted causing the Q output of the flip-flop 150 to go high. Before the EPP write cycle begins, both the BIAFDT and BISLTI signals will be high forcing the output of the NOR gate 168 to be high, which, in turn, causes the output of the NAND gate 166 to be high. Since the -IOR signal will be deasserted during write cycles, the output of the NOR gate 164 will be high in order to enable the write latch 68. During an EPP read cycle, the -IOR and -CSEPP signals will be asserted causing the output of the NOR gate 164 to go low, which, in turn, causes the output of the write latch 68 to be tristated, allowing a peripheral to drive the parallel port data bus PPD(7:0) . Also, during an EPP read cycle, one of the EPP strobe signals -DSTRB or -ASTRB will be asserted after some gate delay. This causes the BIAFDT and BISLTI signals to be asserted. The output of the NOR gate 164 will thus be held low by the output of the NAND gate 166 until the BIAFDT or BISLTI signals are deasserted, which occurs after a short gate delay after the strobe signals -DSTRB and -ASTRB are deasserted. The -DSTRB and -ASTRB strobe signals are deasserted following a short gate delay after the -IOR signal is deasserted by the CPU. While the invention has been described with reference to details of the embodiments shown in the draw¬ ings and described herein, these details are not intended to limit the scope of the invention as described in the appended claims. Appendix 1 ADDRESS DECODE LOGIC EQUATIONS The following shows the equations for the outputs of the address decode circuitry 24, illustrated on FIG. 1 of the drawing. Signal Equation -cspdat !aen & (lptlen & (xa == 378H) # lpt2en & (xa == 278H)) ; -cspctrl laen & (lptlen & (xa == 37AH) # lpt2en & (xa == 27AH) ) ; cseppa iaen & (lptlen & (xa == 379H) # lpt2en & (xa ■== 279H)) ; cseppd iaen & (lptlen & (xa == 37CH-37FH) # lpt2en & (xa == 27CH-27FH) )

Claims: CLAIMS 1. A control system for a computer system which includes a central processing unit (CPU) , a system bus and a standard parallel port connector, interconnected to the system bus, the control system, comprising: means for providing a first predetermined group of signals during a first predetermined mode of operation for controlling the transfer of data between said system bus and said parallel port connector, said first predeter¬ mined group of signals including first predetermined strobe signals wherein said first predetermined strobe signals are software generated; means for providing a second predetermined group of signals during a second predetermined mode of operation for controlling the transfer of data between said system bus and said parallel port connector, said second predeter¬ mined group of signals including second predetermined strobe signals, wherein said second predetermined strobe signals are hardware generated; and means for controlling the mode of operation. 2. A control system for a computer system which includes a central processing unit (CPU) , a system bus and a standard parallel port connector interconnected to said system bus, the control system, comprising: means for controlling the transfer of data between said parallel port connector and said system bus at a first predetermined transfer rate; and means for varying said predetermined transfer rate. 3. A control system for a computer system which includes a central processing unit (CPU) , a system bus and a standard parallel port connector interconnected to the system bus, the control system comprising: means for transferring data between said system bus and said parallel port connector; and means for varying the rate at which data is transferred between said system bus and said parallel port connector. 4. A control system as recited in claim 3, wherein said transferring means includes means for generating predetermined signals. 5. A control system as recited in claim 4, wherein said predetermined signals include an address strobe signal and a data strobe signal. 6. A control system as recited in claim 5, wherein said address strobe signal is hardware generated during certain predetermined conditions. 7. A control system as recited in claim 5, wherein said address strobe signal is software generated during certain predetermined conditions. 8. A control system as recited in claim 5, wherein said data strobe signal is hardware generated during certain predetermined conditions. 9. A control system as recited in claim 5, wherein said data strobe signal is software generated during certain predetermined conditions. 10. A control system for a computer system which includes a central processing unit (CPU) , means for storing instructions for execution by the CPU, a system bus connected between the CPU and a parallel port connector, the control system comprising: means for transferring data between said system bus and said parallel port connector, said transferring means being responsive to a predetermined number of pre¬ determined instructions; and means for reducing said predetermined number of said predetermined instructions. 11. A process for transferring data at different transfer rates in a computer system including a central processing unit (CPU) , a system bus and a standard parallel port connector interconnected to said system bus, the process comprising the steps of: (a) selecting between a first mode of operation for transferring data at a predetermined data transfer rate and a second mode of operation for transferring data at a second predetermined data transfer rate; and (b) generating a set of control signals for transferring data according to the selected mode of opera¬ tion.

Inventors: BUXTON CLARK L, KOHTZ ROBERT A, BUXTON, CLARK, L., KOHTZ, ROBERT, A.
Applicants: ZENITH DATA SYSTEMS CORP, ZENITH DATA SYSTEMS CORPORATION
Application year: 1993
Main classification: G06F13
IPC codes: G06F3, G06F13, H04L29