# Patent

## Title
Electronic bordering system

## Abstract

This application is related to U.S. Provisional Patent Application Ser. No. 60/128,675 (Atty. Docket No. 016998-001300), filed Apr. 9, 1999, entitled "LOW PIN COUNT DC-MOTOR INTEGRATED DRIVE CIRCUIT," the disclosure of which is hereby incorporated by reference in its entirety.

## Background
The present invention relates generally to the operation of small, low-cost DC motors, and more particularly to sensing and switching circuits needed to sequentially power the coils of the motor in synchronism with the movement of the rotor.

Small, low-cost dc motors are used in a large number of low-power and battery operated equipment. For example, such DC motors are often used as motors for continuous operation fans. In such applications the reliability and safety of the equipment is dependent upon the performance and reliability of the fan motor. Such motors are therefore key to the continuous availability of the equipment. An example is a fan in a personal computer. A fan in the body of the computer carries out an essential function by cooling the main processor unit, thereby protecting it from damage caused by overheating. The costs of personal computers have been subject to considerable price erosion, and a low-cost, but highly reliable, fan drive circuit is an essential part of such equipment.

DC motor drives typically contain a magnetic sensitive device for detecting the position of a permanent magnet rotor of the motor, and switching circuitry to switch the voltage from coil to coil to maintain the rotation. However, additional circuit components must usually be present to reduce the radio frequency interference, RFI, generated by the switching process so as to protect the switching and measuring circuits from transients and interference. Further, additional circuitry must be present to supply a suitable voltage power supply to the measurement circuitry and to protect against a reversal of the power supply feed and additional Electro-static discharges, ESD, associated with static build up and handling hazards.

According to the invention, a DC motor drive circuit includes a switching circuit that drives the coils of a small permanent magnet DC motor. The drive circuit is preferably implemented in an integrated circuit device, such as a silicon CMOS device. Integrated into the same integrated circuit device is a magnetic sensor arranged to detect the position of the permanent magnet as it passes a defined point, or points, in its revolution, and control circuitry to derive the timing waveforms for driving the coils. The integrated power devices that drive the coils are also arranged to limit the rise and fall times of the applied voltages and currents so as to reduce or eliminate the generation of unwanted RFI.

Additional circuitry is also integrated into the same integrated circuit device to derive the necessary power to operate the magnetic sensor, the control circuitry and the switching circuitry from the connections between the switching circuitry and the coils so as to remove the need for a separate power supply connection. Deriving the power necessary to operate the electronic circuitry in this manner has the additional benefit that the inherent inductance and capacitance of the coils and motor acts both as a natural suppression for ESD transients and also as a current limitation device in the event of inadvertent power supply reversal or transient surge in the power supply which would normally cause destructive damage. The output drivers are also preferably protected by zener diodes to add surge and transient protection. The integrated circuit design takes advantage of these inherent benefits and includes circuit elements designed to ensure that expected ESD transients and reverse and over voltage transient power supply connections can be survived without damage to the device or deterioration in its performance.

In one embodiment of the invention, the magnetic detection element includes a Hall effect device, and two coils that are used to drive the motor. In this embodiment, the complete switching and control circuit needs only three connections and can be mounted in an industry standard, low-cost three-pin package.

Reference to the remaining portions of the specification, including the drawings and claims, will realize other features and advantages of the present invention. Further features and advantages of the present invention, as well as the structure and operation of various embodiments of the present invention, are described in detail below with respect to the accompanying drawings. In the drawings, like reference numbers indicate identical or functionally similar elements.

FIG. 1 shows a circuit including a position sensing device, power transistors for driving the coils of a motor, and additional components for reducing RFI and protecting the circuit against ESD and reverse power supply;

FIG. 2 shows a circuit arrangement including a Hall Effect device with integrated power transistors as both the sensing and switching circuitry;

FIG. 3 shows a circuit arrangement including all the external components integrated into a single CMOS device according to an embodiment of the present invention;

FIG. 4 is a block diagram illustrating the circuit elements and the connections between the electronic three-pin package, the motor coils and the power supply feed according to an embodiment of the present invention; and

FIG. 5 illustrates waveforms for the coil drives and also the derived internal supply voltage for the circuitry according to an embodiment of the present invention.

FIG. 4 shows a schematic arrangement of the functional elements of the integrated circuit 100 according to an embodiment of the present invention. The DC motor is represented by first and second coils 151 and 152, which are driven by first and second low-power transistors 115 and 116, respectively. Low-power transistors 115 and 116 are driven alternately on and off in anti-phase so as to keep the permanent magnet rotor of the DC motor turning. The switching of low-power transistors 115 and 116 is controlled by control logic circuit 103. Control circuit 103 can be implemented in a number of ways dependant upon the characteristics of the motor, the drive transistors 115 and 116 and the environment. In one embodiment, the drive transistors need only to be the inverse of one another. In this embodiment, control circuit 103 includes an inverter. In an alternate embodiment, control circuit 103 includes a bistable latch circuit wherein such drive transistors 115 and 116 are connected to two points within the circuit which are always in different states such that one drive transistor is off when the other is on. Additional circuitry may be included, for example to ensure that the two drive transistors 115 and 116 can never both be in the on state simultaneously. In one embodiment, a zener diode is included between the drain and gate of each transistor 115 and 116 to add surge and transient protection. In preferred aspects, the transistors are N-channel MOS transistors.

The switching of coils 151 and 152 is synchronized with the rotor by means of a magnetic sensing device. In a preferred embodiment, the magnetic sensing device comprises a Hall plate 101 and an associated Hall amplifier 102 as shown in FIG. 4. Hall plate 101 and Hall amplifier 102 are arranged in a well known configuration such that the output of amplifier 102 is switched between two defined states by the action of an imposed magnetic field. When the magnetic field exceeds a first threshold value, Hall amplifier 102 creates an output in a first state. When the magnetic field falls below the first threshold, Hall amplifier 102 continues in the first state. When the magnetic field reverses and then exceeds a second threshold value in this reversed direction, Hall amplifier 102 switches and creates a second output state. Hall amplifier 102 continues in the second state until the magnetic field reverses again to the first direction and also again exceeds the first threshold. The action of Hall plate 101 and amplifier 102 is that of a latch which is set to a first state by a sufficient field in the first direction and reset to a second state by a sufficient field in the reverse direction. Such reversing fields are present in DC motors when the permanent magnet rotor rotates. Careful mounting of the integrated circuit in close proximity to the motor and in a correct arrangement relative to the positions of the coils enables the circuit to time the switching of the coils so as to reverse the magnetic field of the coils and maintain the rotary movement of the DC motor.

The output of Hall amplifier 102, being a signal in one of two states dependant upon the excursions of the magnetic field, is passed from Hall amplifier 102 to control circuit 103. Control circuit 103 determines the correct phasing of the signals passed to the output transistors 115 and 116 so as to maintain the rotation of the motor. In one embodiment, as discussed above, control circuit 103 includes anti-crossover circuitry to prevent both drivers (e.g., transistors 115 and 116) from being on simultaneously. Control circuit 103 generates timing signals that drive switches 105 and 106, which connect or disconnect output pins 120 and 130, respectively, to voltage regulator 110. As shown, voltage regulator 110 is preferably integrated with integrated circuit 100, however, it may be connected to integrated circuit 100 as a separate device. Switches 105 and 106 are controlled by control circuit 103 so as to only connect an output pin to voltage regulator 110 when the voltage on the pin is high, which occurs when the respective output transistor is switched off Voltage regulator 110 supplies a stabilized voltage to the integrated circuitry comprising Hall plate 101, Hall amplifier 102 and control circuit 103. It follows that for continuity of voltage supply from voltage regulator 110 to the integrated circuitry, the timing of the switching of the output transistors, 115 and 116, and the switches, 105 and 106, needs to be in a proper relationship, such as shown in FIG. 5, which illustrates waveforms for coil drives 151 and 152 and also the derived internal supply voltage for the circuitry according to an embodiment of the present invention.

When the voltages on output pins 120 and 130 are such that neither is high, the voltage on voltage regulator 110 will be low. When, however, the timing is re-aligned so that at least one of output pins 120 and 130 is always high, the voltage on voltage regulator 110 will be constant.

Preferred connections can be seen in FIG. 3 and FIG. 4. The negative, or ground, supply 170 is connected directly to integrated circuit 100 via pin 140, and serves as the negative or ground supply for the electronics on integrated circuit 100. Ground supply 170 carries the currents from coils 151 and 152 of the motor. Output pins 120 and 130 are connected to motor coils 151 and 152, respectively, so that the motor rotation is maintained by the switching of the coils in response to the changes in magnetic field. The positive voltage supply 160 is connected to the common point of the two drive coils 151 and 152.

It will be appreciated that integrated circuit 100 is preferably mounted in close proximity to the motor so that the magnetic sensor can detect the magnetic field generated by the rotor. In one embodiment, the mounting arrangement is such that the connections between the pins 120 and 130 and the coils 151 and 152 are non-accessible to external contact. Such an arrangement eliminates damage due to ESD on the output transistors 115 and 116 by making casual contact impossible.

It will be further appreciated that if supply voltage 160 exceeds the normal operating voltage due to transients, the inductance and capacitance associated with coils 151 and 152 will be such as to dissipate, partially or entirely, the energy in the transients before they reach integrated circuit 100. This effect reduces or eliminates the voltage survival requirements on integrated circuit 100. If voltage supply 160 is reversed in polarity relative to the ground 170, the maximum reverse current that can flow in integrated circuit 100 is limited by the impedance of coils 151 and 152 to a value close to the normal operating current when the polarity is correct. This limited reverse current is handled by the output transistors 115 and 116 without damage.

While the invention has been described by way of example there are other features that are well known to those skilled in the art that can also be included in the circuitry as additional features without changing the invention. By way of illustration and example, additional functionality can be implemented in control circuit 103 to vary the ratio of on and off states of the power transistors such as to control the speed of the fan. Such control can be responsive to one or more of several possible signals. In one embodiment, one such signals includes an additional signal communicated to control circuit 103 from an additional connection to the chip. In another embodiment, one such signal includes a signal from an on or off chip temperature sensor such as to arrange an increase in fan speed when the temperature increases (or a decrease in fan speed, or shut off, when the T decreases). In yet another embodiment, one such signal includes a signal from a comparitor circuit which compares the actual motor speed derived from the switching signals or the hall effect device signals with an on- or off-chip preprogrammed reference signal or an externally applied reference signal.

By way of further illustration the signals present within the integrated circuit can be used to determine a `tachometer` or `speed` signal representing the motor speed for transmission to an external circuit. For example, this additionally derived signal can be in the form of an analogue representation of speed, a digital pulse train representing speed, or a digitally coded signal more suitable for processing by a microprocessor. This signal can be transmitted from the integrated circuit 100 by any suitable means including additional connections or by any well know method of current modulation of the supply current during periods of time when both transistors 115 and 116 are in the off state. Such a speed signal has the additional benefit of enabling external circuitry to determine not just the motor speed but also whether the motor has failed. Such failure determination can also be implemented in the circuitry of circuit 100 and signaled by suitable means including by an additional correction to the chip.

While the invention has been described by way of example and in terms of the specific embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.

## Claims

1. A single-chip integrated controller for controlling a DC motor having a permanent magnet rotor driven by a pair of coils, the integrated controller comprising: magnet of the DC motor; output terminal of each power transistor is coupled to one of the motor coils; the power transistors to switch on and off based on the output of the magnetic sensing device; sensing device and the control circuit; and and coupling the voltage regulator to the output terminals; power transistor on and off so as to rotate the rotor, and wherein the control circuit controls the switching circuit to connect and disconnect a voltage at each output terminal with the voltage regulator such that the voltage regulator supplies a stabilized voltage to the magnetic sensing device and the control circuit.

2. The controller of claim 1, wherein the integrated controller is implemented in package having only three pins, wherein two of the pins comprise the output terminals of the power transistors and wherein the third pin is for connecting the controller to ground.

3. The controller of claim 1, wherein the magnetic sensing device includes a Hall plate and a Hall amplifier.

4. The controller of claim 1, wherein the switching circuit includes a first circuit coupling the output terminal of the first power transistor with the voltage regulator and the control circuit, and a second circuit coupling the output terminal of the second power transistor with the voltage regulator and the control circuit.

5. The controller of claim 1, further including a terminal connecting to ground an input terminal of each power transistor, wherein each coil couples the output terminal of its respective power transistor to a positive supply voltage.

6. The controller of claim 1, wherein the control circuit controls the switching circuit to connect each of the output terminals to the voltage regulator when the voltage at the respective output terminal is high.

7. The controller of claim 6, wherein the control circuit controls the switching circuit to switch the power transistors on and off such that the voltage at the respective output terminal of at least one of the power transistors is always high.

8. The controller of claim 1, wherein the controller is mounted on the motor such that the connections between the output terminals and the coils are inaccessible to external contact.

9. An integrated controller system for controlling a DC motor having a permanent magnet rotor driven by a pair of coils; the integrated controller system comprising: magnet of the DC motor; the motor coils such that the motor rotates, wherein an output terminal of each power transistor is coupled to one of the motor coils; controlling the driving means based on the output of the magnetic sensing means; sensing means and the control means; and coupling the voltage regulator to the output terminals of the power transistors; transistor on and off so as to rotate the rotor, and wherein the control means controls the switching means to connect and disconnect a voltage at each output terminal with the voltage regulator such that the voltage regulator supplies a stabilized voltage to the magnetic sensing means and the control means.

10. The system of claim 9, wherein the system is integrated on a single chip.

11. The system of claim 10, wherein the single chip is a CMOS chip.

12. The system of claim 9, wherein the sensing means includes a Hall plate and a Hall amplifier.

13. The system of claim 9, wherein the switching means includes a first circuit coupling the output terminal of the first power transistor with the voltage regulator and the control means, and a second circuit coupling the output terminal of the second power transistor with the voltage regulator and the control means.

14. The system of claim 9, further including a terminal connecting to ground an input terminal of each power transistor, wherein each coil couples the output terminal of its respective power transistor to a positive supply voltage.

15. The system of claim 9, wherein the control means controls the switching means to connect each of the output terminals to the voltage regulator when the voltage at the respective output terminal is high.

16. The system of claim 15, wherein the control means further controls the switching means to switch the power transistors on and off such that the voltage at the respective output terminal of at least one of the power transistors is always high.

17. The system of claim 10, wherein the chip is mounted on the motor such that the connections between the output terminals and the coils are inaccessible to external contact.

18. In a single-chip integrated controller having a magnetic sensor, a voltage regulator for supplying power to the magnetic sensor and a pair of power transistors for driving a pair of coils of a permanent magnet rotor of a DC motor, wherein the pair of coils are connected to a voltage supply and wherein each coil is connected to an output terminal of one of the pair of power transistors, a method of driving the motor comprising the steps of: relative position of the rotor magnet so as to rotate the rotor magnet, wherein when one of the transistors is switched off, the voltage at its respective output terminal is high; and that the voltage regulator is connected to one of the output terminals when the voltage at that output terminal is high and such that the voltage regulator supplies a stabilized voltage to the magnetic sensor.

19. The method of claim 18, wherein the integrated controller is implemented in package having only three pins, wherein two of the pins comprise the output terminals of the power transistors, the method further comprising the step of connecting the third pin to ground.

20. The method of claim 18, wherein the single-chip integrated controller includes a control circuit that controls the switching of the power transistors based on the relative position of the rotor magnet, and wherein the voltage regulator also supplies a stabilized voltage to the control circuit.