This application claims priority under 35 USC .sctn. 119(e)(1) of provisional application number 60/004,708 filed Oct. 3, 1995.
Technical Field of the Invention
This invention is related in general to the field of integrated circuits. More particularly, the invention is related to apparatus for detecting open circuit in a hard disk drive.
Background of the Invention
In a hard disk drive for a computer memory system, it is important to detect certain fault conditions that disrupt system operations. For example, when write data are driven off-chip to the external write magnetic head coils, there is the possibility that breakage may occur at the point the coil wires are connected to the integrated circuit, in the wires, or in the coil. The breakage causes an open circuit condition that renders the system inoperable, since the data cannot be accurately written onto the hard disk. Therefore, it is important to be able to detect this condition so that the computer system and the user may be alerted.
Conventional circuits and methods for detecting the open circuit condition attempt to integrate the area under the write data waveform and compares the result to a predetermined threshold value. When an open circuit condition exists, the integrated area of the write data waveform departs substantially from the predetermined threshold value to indicate a fault. However, this method suffers from a number of problems. At high data writing frequencies, the write data waveforms become much narrower, so that the area integration process may be difficult. The resulting comparisons with the threshold value may be inconclusive and the open circuit condition not detected. Furthermore, if the external write coil value has been changed, the corresponding area under the write data waveform is also changed, thus requiring the comparison threshold value to be modified accordingly. Changes in circuit parameters caused by temperature variations can also similarly affect the comparison process and produce inaccurate results.
Summary of the Invention
Accordingly, there is a need for a hard disk drive open circuit detection circuit and method therefor that operate successfully even with high disk writing frequency, and is not adversely affected by changing external coil values and temperature variations.
In accordance with the present invention, an open circuit detection circuit and method are provided which eliminates or substantially reduces the disadvantages associated with prior circuits and methods.
In one aspect of the invention, the open condition detection circuit detects breakage in an external write magnetic coil in a hard disk drive. The hard disk drive includes a magnetic coil which receives write head signals H.sub.X and H.sub.Y generated by a write driver in response to receiving write data D.sub.X and D.sub.Y. The circuit includes a comparator coupled to the write driver for comparing both write head signals H.sub.X and H.sub.Y with a predetermined reference voltage level and generating first and second differential comparison output signals. A first latch is coupled to the comparator and uses the write data D.sub.X and D.sub.Y as clock signals for latching the first differential comparison output signal just prior to a predetermined polarity change in the write head signal H.sub.X. A second latch is also coupled to the comparator and is clocked by the write data D.sub.X and D.sub.Y for latching the second differential comparison output signal just prior to a predetermined polarity change in the write head signal H.sub.Y. A multiplexer coupled to the first and second latches alternatively selects an output from one of the first and second latches in response to the write data D.sub.X and D.sub.Y. The multiplexer generates an output indicative of an open circuit condition in the external write magnetic coil.
In another aspect of the invention, a method for detecting an open circuit condition in an external write magnetic coil of a hard disk drive is disclosed. The hard disk drive has a write driver per channel which receives write data D.sub.X and D.sub.Y and generates write head signals H.sub.X and H.sub.Y supplied to the coil. The write head signals H.sub.X and H.sub.Y are first compared with a predetermined reference voltage level and a first and second comparison output are generated in response to the comparisons. A logic state of the first comparison output is captured just prior to a predetermined polarity change in the H.sub.X write head signal, and a logic state of the second comparison output is also just captured just prior to a predetermined polarity change in the H.sub.Y write head signal. An output signal is then generated from the captured logic states of the first and second comparison outputs indicative of an open circuit condition.
A technical advantage of the current open circuit detection circuit and method is the ability to accurately detect the faulty condition with high write frequency. External write magnetic coil value changes do not require adjustments in the circuit or the algorithm. Temperature variations also do not adversely affect the detection of the open circuit condition.
Brief Description of the Drawings
For a better understanding of the present invention, reference may be made to the accompanying drawings, in which:
FIG. 1 is a simplified block diagram of the apparatus for detecting open circuit in a hard disk write driver constructed according to the teachings of the present invention;
FIG. 2 is a timing diagram of signals relevant to the discussion of operations of the apparatus;
FIG. 3 is a simplified block diagram of an open detecting latch circuit and comparator circuit;
FIG. 4 is a schematic diagram of an embodiment of the open detecting latch circuit constructed in accordance with the teachings of the present invention;
FIG. 5 is another simplified block diagram of the apparatus for detecting open circuit in a hard disk write driver; and
FIG. 6 is a schematic diagram of another embodiment of the open detecting latch circuit constructed in accordance with the teachings of the present invention.
Detailed Description of the Invention
The preferred embodiments of the present invention are illustrated in FIGS. 1-6, like reference numerals being used to refer to like and corresponding parts of the various drawings.
Referring to FIG. 1, apparatus 10 for detecting open circuit in a hard disk write driver is shown. Write data, D.sub.X and D.sub.Y, are provided to multiple channels of write drivers (two are shown) 12 and 14. Write drivers 12 and 14 generates write head signals, H.sub.X and H.sub.Y, which correspond to D.sub.X and D.sub.Y, respectively, and indicate which signal is high (or logic "1") and which signal is low (or logic "0"). FIG. 2 shows an exemplary timing diagram of the signals. The write driver output signals, H.sub.X and H.sub.Y, are provided off-chip to magnetic head coils 16 and 18, which generate electromagnetic fields to write the data to a hard disk 20.
An open circuit may be caused by three conditions:
1) damage to the soldering points 22 and 23 that wires 22-25 are connected to the integrated circuit the write drivers 12 and 14 reside on;
2) breakage in wires 22-25 leading to coils 16 and 18; and
3) damage or breakage in coils 16 and 18.
To detect an open circuit, a comparator circuit 26 and 28 is provided per channel, which compares write driver output signals, H.sub.X and H.sub.Y, to a predetermined reference voltage level, V.sub.REF. Comparator circuits 26 and 28 generate outputs labeled A, B, C, and D in response to the comparison, which are provided to an open detection circuit 30. Open detection circuit 30 then generates an output signal indicative of whether an open circuit condition has been detected.
Referring to FIG. 3, additional details of comparator circuit 26 and open detection circuit 30 are shown. Open detection circuit 30 includes a first latch 40 which receives write data D.sub.X as a clock signal for receiving and latching data A and B from comparator circuits 26 and 28 of all the channels (only one shown). Open detection circuit 30 further includes a second latch 42 which uses write data D.sub.Y as a clock signal to receive and latch data C and D produced by comparator circuits 26 and 28 of all the channels. The outputs, O.sub.X and O.sub.Y, from latches 40 and 42 are then provided to the input of a multiplexer (MUX) 44, which selects one of the latch outputs O.sub.X and O.sub.Y as the open circuit condition detection output.
Comparator circuit 26 for a channel compares the write head signals H.sub.X and H.sub.Y to a reference voltage level, V.sub.REF. Comparator circuit 26 includes a first differential pair 46 receiving differential inputs H.sub.X and V.sub.REF, and a second differential pair 48 receiving differential inputs H.sub.X and V.sub.REF. Differential pairs 46 and 48 are constructed from matched transistors whose emitters are joined together and biased by constant current sources I 50 and 52, respectively. The collectors of the transistors in differential pairs 46 and 48 provide signals A, B, C, and D. Signals A, B, C, and D are provided to latch X 40 and latch Y 42 of open detector circuit 30.
Referring to FIG. 4, open detector circuit 30 is shown in more detail. Open detector circuit 30 includes a first stage conversion circuit 60 for converting write data D.sub.X and D.sub.Y from full swing CMOS (complementary metal oxide semiconductor) voltage levels to ECL (emitter-coupled logic) levels. Open detector circuit 30 is shown in ECL to take advantage of its speed. However, other logic circuit families may also be used if speed is not a primary consideration. Conversion circuit 60 includes a first transistor 62 receiving write data D.sub.X at its base, and a second transistor 64 receiving write data D.sub.Y at its base. The emitter of transistor 62 is coupled to two diode-connected transistors 66 and 68 coupled in series. The emitter of transistor 64 is also coupled to two diode-connected transistors 70 and 72 coupled in series. Two diodes 74 and 76 are then coupled in parallel across the emitters of transistors 68 and 72, where the p-junction of diode 74 is coupled to transistor 68 and the p-junction of diode 76 is coupled to transistor 72. Two constant current sources 78 and 80 of equal magnitude, I, are coupled to diode-connected transistors 68 and 72, respectively. Two ECL level clock signals, X and Y, are thus generated from CMOS level write data D.sub.X and D.sub.Y, which are provided to latches 40 and 42 for latching differential signals A, B, C, and D.
The collectors of the transistors in differential pair 44 of comparator circuit 26 are each coupled to a resistor 82 and 84, respectively, and to V.sub.CC. Latch 40 includes a differential pair 92 receiving signals A and B as differential input, and having resistors 96 and 98 coupled to each of the collectors of the transistors in differential pair 92. The emitters of differential pair 92 are coupled to the collector of a transistor 104, which is further coupled to a current source 108 and to ground. The base of transistor 104 receives the clock signal Y from conversion circuit 60. Latch 40 includes a second differential pair 94 with its collectors also coupled to resistors 96 and 98. The emitters of differential pair 94 are coupled to the collector of a transistor 106, which is also coupled to current source 108. The base of transistor 106 receives the X clock signal from conversion circuit 60 for latching A and B signals.
Latch 40 further includes transistors 100 and 102 receiving the differential output from differential pair 92. The base of transistors 100 and 102 are coupled to the collectors of the transistors in differential pair 92. The emitters of transistors 100 and 102 are coupled to the bases of the transistors in differential pair 94, and to ground through constant current sources 110 and 112, respectively. The emitters of transistors 100 and 102 provide differential output signals designated as O.sub.X, which are provided to multiplexer 54.
Signals C and D are generated on the collectors of transistor differential pair 50 in comparator circuit 26, which are coupled through resistors 114 and 116 to V.sub.CC and provided to latch 42 as differential input. Differential output signals, O.sub.Y, are generated. Because latch 42 may be constructed in substantially the same manner as latch 40, details of latch 42 are not shown to promote clarity and simplicity in the drawing figure. Note that clock signals X and Y are switched for latch 42. It may be noted that although latches 40 an 42 are shown in specific detail herein, other implementations therefor are also contemplated.
Differential outputs O.sub.X and O.sub.Y are generated from latches 40 and 42, respectively, and provided to multiplexer 54. Multiplexer 54 includes a first and second differential pairs 120 and 124, which receive O.sub.X and O.sub.Y, respectively. The emitters of the transistors in differential pair 120 are coupled to the collector of a transistor 126, which is differentially coupled to another transistor 127, which is coupled to differential pair 124. A constant current source 128 coupled to ground is coupled to the emitters of transistors 126 and 127. Multiplexer 54 provides one of O.sub.X and O.sub.Y as the output depending on clock signals X and Y.
The timing diagram shown in FIG. 2 illustrates the operations of circuit 10. Write data D.sub.X and D.sub.Y are logical opposites of one another, where one is high and the other low, and vice versa. D.sub.X and D.sub.Y are converted to ECL levels by conversion circuit 60 into clock signals X and Y to be used to clock the latch and multiplexer circuits 40, 42, and 54. Write drivers 12 and 14 then generate signals H.sub.X and H.sub.Y from the write data, exemplary waveforms of which are shown in FIG. 2. Comparator circuit 26 compares signals H.sub.X and H.sub.Y with a reference voltage or compare level and generates differential output signals, signals A, B, C, and D. The reference voltage may be chosen to be a little higher than the saturation voltage of the comparator circuit 26, which is between one and four volts. As a result, a wide margin of comparison is possible, making temperature effects insignificant. Signals A and B are latched by latch 40, and signals C and D are latched by latch 42, with X and Y serving as clock signals. In other words, the write driver data H.sub.X and H.sub.Y are latched just before their predetermined polarity change by using, essentially, the rising edges of D.sub.X and D.sub.Y as latch clocks. It may be seen from the timing diagram in FIG. 2, that during normal operation, the latch output signals, O.sub.X and O.sub.Y, are always high or at logic level "one," and the circuit output from multiplexer 54 is always high. However, if an open circuit condition exists, the H.sub.X and H.sub.Y waveforms become disrupted, and the signals O.sub.X, O.sub.Y, and output become low or logic "zero."
Referring to both FIGS. 5 and 6, an alternate embodiment of open detection and comparator circuit 140 is shown. In comparator circuit 144 and 146, the differential output from differential pairs 44 and 50 are tied together to form one set of differential output signals, A and B. Differential signals A and B are then provided to both latches 150 and 154, which are constructed basically the same as latches 40 and 42. The differences are that the resistor value of resistor 152 coupled to receive signal A is divided by half to reduce the magnitude of the voltage at the base of one of the transistors in differential pair 92 caused by sinking twice the current by current sources 46 and 52. Resistors 114 and 116 present in FIG. 4 are also eliminated. The exemplary embodiment as shown in FIGS. 5 and 6 has the advantage of less number of connections for each channel, which is more substantial where there are multiple channels.
Although the present invention and its advantages have been described in detail, it should be understood that various changes, substitutions and alterations can be made therein without departing from the spirit and scope of the invention as defined by the appended claims.