Abstract:
A differential transceiver transmission line integrity detector detects both open and short circuits in the transmission lines. The two transmission lines are terminated at both ends by selected impedances. A driver coupled to each of the transmission lines drives the lines with data signals. Signal levels on the lines are detected and compared with expected levels to generate line integrity indications. Both open and short conditions are detected and indicated by the line integrity indications.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to the detection of signal transmission line integrity on differential signal transmission lines. 
     2. Prior art 
     Detection of open circuit and short circuit conditions on differential signal transmission lines has been done by obtaining manual access to the lines and imposing a signal on the lines to check conduction. It has been very difficult to reliably predict faults caused by opens and shorts based on data transmission monitoring as in U.S. Pat. No. 4,178,582 to Richman and U.S. Pat. No. 3,288,929 to Hutchinson. In a differential signal transmission bus, if one of the two transmission lines which are driven by a balanced current source driver and terminated by resistors to DC ground, is operational, at least half of the data signal transmitted is still received. 
     Such faults seriously degrade the performance of the differential signal transmission lines because they produce intermittent data errors which are hard to trace. The data errors require time to correct, either by error correction code, or retransmission due to parity checks. 
     Further, more costly alternatives to detect transmission line faults involve automatic superposition of special signals on the lines. A tool has also been used to detect shorts by plugging it into transceivers on the line in various orientations. This tool resulted in different lines being driven and sensed to detect shorts in the lines. This process has proven cumbersome and time consuming. These alternatives add to the cost, and potentially degrade performance. 
     SUMMARY OF THE INVENTION 
     A differential transceiver transmission line integrity detector detects both open and short circuits in the transmission lines. The two transmission lines are terminated at both ends by selected impedances. A driving means is coupled to the transmission lines for driving the lines with data signals. A detection means is also coupled to the transmission lines and detects the signal level on the lines and compares the signal with an expected level to generate a line integrity indication. 
     When one of the two lines in the differential signal transmission bus is in an open circuit condition, one of two parallel terminating resistors is effectively removed from that line. This doubles the impedance from the line to ground, and thus doubles the voltage across the remaining resistor during data transmission. The doubling of the voltage results from the terminating resistors sinking or sourcing a fixed amount of current during data transmission. The doubled voltage is detected by a comparing means on each signal line, which compares the line voltage to a predetermined value and signals an open condition when the line voltage exceeds the predetermined value. 
     Short circuit conditions ar detected on the differential signal transmission bus by individually driving the lines with selected data signals and simultaneously receiving all signals associated with the bus. By comparing the received signals with expected signals, it is determined which of several short circuit conditions exists. 
     Line integrity detection is performed without superposition of special signals on the lines, and with higher reliability than monitoring error rates of transmitted signals. Open circuit detection is performed in a diagnostic mode using actual data level transmissions. Open and short circuit detection is performed without operator intervention or physical monitoring of the transmission lines. 
     Detection of shorts and opens on the differential bus has been a difficult problem that has not been solved in previous systems without service repairperson assistance. Shorts and opens on the bus only reduce the noise tolerance of the bus, resulting in a series of difficult-to-detect intermittent faults caused by random noise. Such faults can seriously degrade bus performance. Through the use of this invention, the cause of such faults can be determined without assistance. Isolation of such faults is also simplified as the fault is characterized as a short or an open, not just as a series of intermittent faults. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a schematic diagram of a differential bus signal pair of transmission lines. 
     FIG. 2 is a block logic diagram of a transceiver for driving the pair of transmission lines and detecting degraded signal conductive properties in accordance with the invention. 
     FIG. 3 is a further embodiment of a block logic diagram of a transceiver for driving the pair of transmission lines and detecting open line conditions in accordance with the invention. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     A schematic diagram of a differential bus signal pair of transmission lines is indicated generally at 10 in FIG. 1. An odd line 12 and an even line 14 are coupled to a common potential, preferably ground, at each end through termination impedances 16, 18, 20 and 22. Each line is biased by voltages indicated at 24 and 26. Voltage 24 is preferably -5 Volts and is coupled through a biasing impedance 28 to odd line 12. Voltage 26 preferably has a +5 Volt value and is coupled to even line 14 through a biasing impedance 30. Since the biasing impedances are much larger than the termination impedances 16 through 22, odd line 12 has a potential slightly negative with respect to common and even line 14 has a potential slightly positive with respect to common. The slight biasing assures adequate noise margins such that no signal is detected as a result of noise. 
     A logic diagram of a transceiver in a differential bus for driving one of three pairs of lines comprising the bus is shown in FIG. 2. Multiple transceivers connect to the lines 12 and 14 in FIG. 1 at different points along the lines. Each transceiver comprises a first driver 30 for driving odd line 12 with predetermined current representative of data to be transmitted. Similarly, a second driver 32 drives even line 14 with predetermined current. A high input impedance receiver 33 is coupled to lines 12 and 14 to receive data from said lines. The transceiver has two modes of operation, normal mode and diagnostic mode. In normal mode, the transceiver acts as a standard balanced differential transceiver, with equal and opposite amounts of current driven out of the drivers, depending upon its logic level. 
     In the preferred embodiment, a first comparator 34 has inputs coupled to odd line 12 and to a reference voltage of -0.55 volts indicated at 38. A second comparator 36 has inputs coupled to even line 14 and to a reference voltage of +0.55 voIts indicated at 40. The first and second comparators 34 and 36 detect when the voltage on either line exceeds a predetermined level defined by the respective reference voltages. Exceeding the level is taken to mean that the absolute value of the level increases. These levels maintain the comparator outputs inactive during normal operating conditions. If an open occurs on a line, the voltage on that line roughly doubles due to the effective removal of one of the two parallel termination impedances. 
     The normal voltage of a line which is driven in the direction of its biasing is approximately -0.3 volts for odd line 12 and +0.3 volts for even line 14. When either of the parallel terminating impedances is removed from a line by a break in the line, the impedance presented to the constant current driver associated with the line is doubled. This causes the voltage on the line to double to -0.6 volts or +0.6 volts when the line is allowed to settle so that reflections of the voltage at the break do not affect the line voltage. Driving each line of the bus in the direction of its biasing allows the current from the biasing impedances and the drivers to add, increasing the voltage level seen at the comparators. It also widens the window between the maximum worst case normal voltage and the minimum worst case open line voltage when all tolerances (power supplies, resistors, drive currents, cable resistances. . .) are taken into account. The voltages referred to are merely indicative of one embodiment of the invention. Other voltage levels may be used without departing from the spirit of the invention. If a break in the line occurs between a transceiver and the biasing voltage, the comparators 34 and 36 will still detect the open line, but may not have quite as wide a window. 
     When comparator 34 or 36 detects the doubled voltage, the voltage exceeds the reference and the comparator output becomes active. The comparator outputs are coupled to an OR gate 41, as are the comparator outputs for other lines on the differential bus. The comparator outputs are OR&#39;ed together to cause a signal on a line 42 (Open Sel) to switch, indicating that there is a break in the line. 
     Driver 30 is coupled to an enable circuit 44, and driver 32 is coupled to an enable circuit 46. Enable circuits 44 and 46 have inputs, lines 48 and 50 which transmit signals labeled Group Inhibit and Dr (driver) Inhibit N respectively. These signals are at a high level for the drivers to drive the lines and thus transmit data. Data is received by the transceiver for transmission from a line 52 (labeled Data N) which is for example coupled to a computer system 53, microprocessor, disk drive controller or the like. Data is first latched from line 52 by a latch 54. Transmission by the drivers 30 and 32 is initiated by a Dr/Rec (driver/receiver) signal provided to latch 54 on a line 56. When Dr/Rec is low, latch 54 is transparent and Data N is passed through to the drivers 30 and 32. The data is latched by a positive transition of Dr/Rec and when Dr/Rec is high, Data N on line 52 becomes the transceiver output. 
     The drivers may or may not be enabled when the Dr/Rec is high, depending upon the levels of Group Inhibit and Dr Inhibit N. If the drivers are enabled, the transceiver is in wrap-back mode. This mode is usetul for dynamic intermittent fault analysis. Since it allows a transceiver to both drive and receive simultaneously, the system 53 driving the bus can check its drivers for intermittent faults. This information can be used in determining the cause of such faults which can seriously degrade bus performance. 
     Shorts detection takes place in diagnostic mode. A Norm/Diag (normal/diagnostic) signal on a line 60 is set to indicate in which mode the bus is to be operating. When at a high state, the Norm/Diag signal disables the Open/Line Sel indication through Gates 62 and 64, thus disabling the opens detection circuitry. The drivers are now separately controllable, and the Open/Line Sel signal is used to select either of the two line drivers 30 and 32 through gates 66, 68, and 70 and enable circuits 44 and 46. The receiver 33 is permitted by the Dr/Rec signal through a gate 71 to provide data from lines 12 and 14 on line 52. 
     To detect shorts, data is latched by a positive transition of the Dr/Rec line and the drivers and receivers are enabled by system 53 in the same manner as normal mode. To check the bus for shorts, the following procedure is used. The transceiver is placed in diagnostic mode and each line is individually enabled. During this time the line is alternately sourced and sunk to a steady state by its driver. After the line has settled during each source and sink, all receivers on the bus are checked for abnormal switching by system 53 which places all the transceivers in receive mode. 
     A shorts detection table indicating detection actions initiated by the system 53 is presented below as Table 1: 
     
                       TABLE 1______________________________________SHORTS DETECTION               DETECTION   ABNORMALSHORT  SHORT TYPE   ACTION      RESULT______________________________________line to  even line    sink even line                           rcvr does notground to ground                switch  odd line     source odd line                           rcvr does not  to ground                switchline to  odd line to  sink or source                           rcvr does notline,  even line    either line switchsame pair  even line to sink or source                           rcvr does not  odd line     either line switchline 1 to  odd line 1 to               source odd  rcvr 2 switchesline 2,  odd line 2   line 1different  odd line 1 to               sink odd    rcvr 2 switchespairs  even line 2  line 1  even line 1  source even rcvr 2 switches  to odd line 2               line 1  even line 1  sink even line 1                           rcvr 2 switches  to even line 2______________________________________ 
    
     If a line has been shorted to ground, the receiver 33 will not switch when the line is driven in the opposite direction on its biasing. If odd line 12 is shorted to ground, the receiver 33 will not switch when current is sourced through the shorted line. By individually sinking and sourcing each line, all shorts on the bus can be detected. 
     If both lines of a signal pair are shorted together, then the reciever will not switch, or will oscillate. If a line of one signal pair has been shorted to a line of another signal pair, the receiver of one shorted line will switch when the other shorted line is driven in the correct direction (eg, if two negatively biased lines are shorted together, the receivers of both signal pairs will switch when current is sourced through either of the two lines). 
     In a diagnostic mode, which occurs following a number of errors in trying to send data, or on power on, additional current is sourced or sunk at each driver by logically adding additional driving circuitry. The additional current causes switching when two odd or two even lines are shorted across signal pairs. The biasing of the lines is strengthened in this case because the biasing resistors are placed in parallel, doubling the biasing current. A single current source or sink is unable to overcome this increased biasing. Switching on an additional current source or sink at each driver also increases the noise margin in the line shorted to ground case. 
     A function table is given in Table 2 below for the circuit of FIG. 2, wherein &#34;x&#34; corresponds to &#34;do not care&#34;, &#34;output&#34; corresponds to a line being enabled as output, &#34;diff data (rec)&#34; corresponds to a line being enabled as output from a differential receiver and &#34;inactve&#34; corresponds to a driver neither sourcing nor sinking current. 
     
                                           TABLE 2__________________________________________________________________________-Gr   -Dr -Dr/     -norm/          Open/        Odd Diff                               Even DiffInh   Inh +Rec     +Diag          Line Sel               Data N  Data N  Data N__________________________________________________________________________low   x  low low  output               x       inactive                               inactivelow   x  high     low  output               diff Data (rec)                       inactive                               inactivehigh   low low low  output               x       inactive                               inactivehigh   low high     low  output               diff data (rec)                       inactive                               inactivehigh   high low low  output               low     sink    sourcehigh   high low low  output               high    source  sinkhigh   high high     low  output               diff data (rec)                       drv lated state                               drv lated statelow   x  low high x    x       inactive                               inactivelow   x  high     high x    diff data (rec)                       inactive                               inactivehigh   low low high x    x       inactive                               inactivehigh   low high     high x    diff data (rec)                       inactive                               inactivehigh   high low high low  low     sink    inactivehigh   high low high low  high    source  inactivehigh   high low high high low     inactive                               sourcehigh   high low high high high    inactive                               sinkhigh   high high     high low  diff data (rec)                       drv lated state                               inactivehigh   high high     high high diff data (rec)                       inactive                               drv lated state__________________________________________________________________________ 
    
     Detection of shorts and opens on the differential bus has been a difficult problem that has not been solved in previous systems without service repariperson assistance. Shorts and opens on the bus only reduce the noise tolerance of the bus, resulting in a series of difficult-to-detect intermittent faults caused by random noise. Such faults can seriously degrade bus performance. Through the use of this invention, the cause of such faults can be determined without assistance. Isolation of such faults is also simplified as the fault is characterized as a short or an open, not just as a series of intermittent faults. 
     A further preferred embodiment of an opens detection circuit is indicated in block diagram form in FIG. 3. Data is input and output from the circuit on a line 70 labeled Data I/0. To transmit data, the data is buffered in a buffer 72, latched by a data latch 74 and driven on lines 12 and 14 (as in FIG. 1) by a balanced driver 76. A Drvr Inh (driver inhibit) signal on a line 78 is supplied to an inhibit buffer 80, as is a Grp Inh (group inhibit) signal on line 82. The Inhibit buffer 80 acts to combine the Grp Inh and Drvr Inh signals to control whether driver 76 is permitted to drive the lines 12 and 14. While Grp Inh is asserted (low), the entire module comprising two differential transceivers is disabled. While Drvr Inh is asserted (low), driver 76 is disabled. 
     The Grp Inh signal on line 82 is also supplied along with a Rcv Inh (receiver inhibit) signal on a line 84 to a Dr/Rcv Buffer 86. Rcv Inh, when low, disables receiver 88 and allows data present at Data I/0 to be passed through latch 74 to the driver 76. When Rcv Inh transitions to high, the input level present at the Data I/0 line is latched into the module. The output of receiver 88 is then placed on line 70 for reception by a further system similarly coupled thereto and not shown. 
     Lines 12 and 14 are also coupled to comparators indicated as Open Line Detector 90. The detector 90 compares the voltages on lines 12 and 14 to references Vf and -Vf. As described above with respect to opens detection in FIG. 2, if the line voltages exceed its corresponding reference, the open line detector 90 provides a Line Open signal on a line 92. 
     While the present invention has been described with reference to preferred embodiments, it will be recognized by those skilled in the art that changes to the embodiments may be made to the detection circuitry to arrive at equivalent detection circuits. For example, voltage levels on the transmission lines could be digitized prior to comparison to digitized reference levels.