Background of the Invention
The present invention relates, in general, to phase currents, and more particularly, to sensing and reconstructing phase currents.
Motors are used in industrial applications such as fans, pumps, conveyor belts, electric vehicles, etc. Two important aspects in controlling these motors are sensing and reconstructing the phase currents. Sensing and reconstructing the phase currents are important in applications such as alternating current (AC) induction motors, brushless direct current (DC) motors, and uninterruptable power supplies (UPS). Two reasons for sensing and reconstructing the phase currents are controlling the operation of the motor and protecting the power switches that are part of a bridge network from over-current damages.
Because the phase currents have a low frequency in many applications, transformers cannot be used in a sensing and reconstruction circuit. A common approach uses a single sensing resistor to sense the direct current (DC). However, the DC sensing approach does not effectively protect the power switches in the circuit from a peak over-current. Furthermore, the DC sensing approach does not provide enough information, e.g., the power factor, for the microcontroller to control the motor operation properly. Two other approaches for sensing and reconstructing the phase currents include using Hall effect sensors and using a sensing resistor to sense each phase and using an isolation amplifier to amplify a voltage signal across the sensing resistor. However, these approaches are very expensive.
Accordingly, it would be advantageous to have a circuit and a method for sensing and reconstructing the phase current of, for example, a motor that protects the power switches in each phase bridge from over-currents and provides sufficient information for the microcontroller to properly control the motor. It is also desirable for the circuit to be inexpensive, simple, and sufficiently small to be easily integrated into a power module .
Brief Description of the Drawings
FIG. 1 is block diagram of a phase current reconstruction circuit in accordance with an embodiment of the present invention;
FIG. 2 is a block diagram of a portion of the circuit of FIG. 1 for sensing and reconstructing the phase current; and
FIG. 3 is schematic diagram of the portion of the circuit of FIG. 2 for sensing and reconstructing the phase current.
Detailed Description of the Drawings
FIG. 1 is a block diagram of a phase current reconstruction circuit 10 in accordance wlth an embodiment of the present invention. By way of example, phase current reconstruction circuit 10 is a motor controller for a three-phase alternating current motor. Phase current reconstruction circuit 10 includes phase bridges 12A, 12B, and 12C, sensing resistors 18A, 18B, and 18C, phase current reconstruction elements 22A, 22B, and 22C, a microcontroller 26, and gate drive circuits 24A, 24B, 24C, 28A, 28B, and 28C.
Phase bridge 12A includes an upper leg and a lower leg. The upper leg includes an insulated gate bipolar transistor (IGBT) 14A and a diode 15A, and the lower leg includes an IGBT 16A and a diode 17A. An anode of diode 15A is connected to an emitter electrode of IGBT 14A. A cathode of diode 15A is connected to a collector electrode of IGBT 14A. The collector electrode of IGBT 14A is connected to a node 30 for receiving an upper supply voltage, V.sub.DC. An anode of diode 17A is connected to an emitter electrode of IGBT 16A. A cathode of diode 17A is connected to a collector electrode of IGBT 16A. The collector electrode of IGBT 16A is connected to the emitter electrode of IGBT 14A and to a node 11A for providing a phase output of phase bridge 12A. The emitter electrode of IGBT 16A is connected to a node 21A, which is coupled through sensing resistor 18A to a node 20 for receiving a lower supply voltage, e.g., a ground voltage level.
A first sensing input and a second sensing input of phase current reconstruction element 22A are connected across sensing resistor 18A. A control input 31A of phase current reconstruction element 22A is coupled for receiving a control signal from a corresponding lower output of microcontroller 26. An output 33A of phase current reconstruction element 22A is coupled for providing an analog signal to a corresponding input of microcontroller 26. A control output 35A of phase current reconstruction element 22A is coupled to a gate electrode of IGBT 16A via gate drive circuit 24A. An input of gate drive circuit 28A is connected to a corresponding upper output of microcontroller 26 and an output of gate drive circuit 28A is connected to a gate electrode of IGBT 14A.
Phase bridge 12B includes IGBTs 14B and 16B and diodes 15B and 17B, and is structurally similar to phase bridge 12A. Phase bridge 12B is coupled to a node 21B, sensing resistor 18B, a node 11B, phase current reconstruction element 22B, gate drive circuits 24B and 28B, and the corresponding input and outputs of microcontroller 26 in the same way that phase bridge 12A is coupled to node 21A, sensing resistor 18A, node 11A, phase current reconstruction element 22A, gate drive circuits 24A and 28A, and the corresponding input and outputs of microcontroller 26.
Likewise, phase bridge 12C includes IGBTs 14C and 16C and diodes 15C and 17C, and is structurally similar to phase bridge 12A. Phase bridge 12C is coupled to a node 21C, sensing resistor 18C, a node 11C, phase current reconstruction element 22C, gate drive circuits 24C and 28C, and the corresponding input and outputs of microcontroller 26 in the same way that phase bridge 12A is coupled to node 21A, sensing resistor 18A, node 11A, phase current reconstruction element 22A, gate drive circuits 24A and 28A, and the corresponding input and outputs of microcontroller 26.
It should be understood that the IGBTs in phase bridges 12A, 12B, and 12C function as power switches and, therefore, are not limited to being IGBTs in the present invention. Any power switch having a control electrode and two current conducting electrodes can replace the IGBTs in phase bridges 12A, 12B, and 12C. For example, the IGBTs in phase bridges 12A, 12B, and 12C may be replaced with power field effect transistors, bipolar transistors, or the like.
It should also be understood that the present invention is not limited to the three-phase current reconstruction circuit as shown in FIG. 1. A phase current reconstruction circuit of any number of phases can be built by including the corresponding number of phase bridges like phase bridge 12A, sensing resistors like sensing resistor 18A, phase current reconstruction elements like phase current reconstruction element 22A, and gate drive circuits like gate drive circuits 24A and 28A in the phase current reconstruction circuit and adjusting the inputs and outputs of microcontroller 26 accordingly.
In operation, phase current reconstruction elements 22A, 22B, and 22C sense the currents in the lower legs of phase bridges 12A, 12B, and 12C, respectively, by sensing the voltages across the corresponding sensing resistors 18A, 18B, and 18C. Then, phase current reconstruction elements 22A, 22B, and 22C reconstruct the phase currents from the currents sensed in the lower legs of phase bridges 12A, 12B, and 12C. The reconstructed phase currents provide microcontroller 26 with enough information to calculate parameters such as current vector and power factor. Microcontroller 26 drive circuits the upper legs of phase bridges 12A, 12B, and 12C through gate drive circuits 28A, 28B, and 28C, respectively. Phase current reconstruction elements 22A, 22B, and 22C transmit pulse width modulation signals from microcontroller 26 to gate drive circuits 24A, 24B, and 24C, respectively, to drive the lower legs of corresponding phase bridges 12A, 12B, and 12C. If an over-current is sensed in the lower leg of a phase bridge 12A, 12B, or 12C, the corresponding phase current reconstruction element 22A, 22B, or 22C terminates the transmission of the pulse width modulation signal to a corresponding gate drive circuit 24A, 24B, or 24C, thereby switching off the corresponding IGBT 16A, 16B, or 16C of phase bridge 12A, 12B, or 12C, respectively.
FIG. 2 is a block diagram of a portion of phase current reconstruction circuit 10 shown in FIG. 1. It should be understood that the same reference numerals are used in the figures to denote the same elements. Therefore, node 21 represents node 21A, 21B, or 21C and is connected to the lower leg of the corresponding phase bridge 12A, 12B, or 12C as shown in FIG. 1. Sensing resistor 18 represents sensing resistor 18A, 18B, or 18C as shown in FIG. 1. Likewise, phase current reconstruction element 22 represents phase current reconstruction element 22A, 22B, or 22C in phase current reconstruction circuit 10 of FIG. 1. Phase current reconstruction element 22 includes an amplifier 32, a sample and hold circuit 34, and an over-current protection element 37. Two inputs of amplifier 32 serve as the sensing inputs of phase current reconstruction element 22 and are connected across sensing resistor 18. An output of amplifier 32 is connected to an input of sample and hold circuit 34. A control input of sample and hold circuit 34 is coupled to control input 31 of phase current reconstruction element 22. An output of sample and hold circuit 34 serves as output 33 of phase current reconstruction element 22. Over-current protection element 37 includes an over-current comparator 36 and an over-current latch 38. An input of over-current comparator 36 is coupled to the output of amplifier 32. An output of over-current comparator 36 is coupled to a first input of over-current latch 38. A second input of over-current latch 38 is coupled to control input 31 of phase current reconstruction element 22. An output of over-current latch 38 is coupled to control output 35 of phase current reconstruction element 22.
In operation, amplifier 32 senses a current in sensing resistor 18 by measuring a voltage across sensing resistor 18. Amplifier 32 then amplifies the measured voltage. The current in sensing resistor 18 is equal to the phase current when the transistor in the lower leg of the corresponding phase bridge is on. When the transistor in the lower leg is off, the current flows through the transistor or the diode in the upper leg of the corresponding phase bridge. Thus, the time dependence of the current in sensing resistor 18 is a chopped sine wave. Sample and hold circuit 34 reconstructs the phase current from the chopped sine wave sensed from the current in sensing resistor 18 and amplified by amplifier 32. Over-current comparator 36 compares the voltage output of amplifier 32 with a predetermined reference voltage level to detect the over-current in sensing resistor 18. If an overcurrent is detected, over-current comparator 36 sends a signal to over-current latch 38, which in turn interrupts the transmission of the pulse width modulation signal from microcontroller 26, through control input 31 and control output 35 of phase current reconstruction element 22, to the corresponding gate drive circuit, thereby switching off the transistor in the lower leg of the corresponding phase bridge.
FIG. 3 is schematic diagram of the portion of the circuit shown in FIG. 2 for sensing and reconstructing the phase current. Amplifier 32 includes an operational amplifier 49 and resistors 42, 44, 46, and 48. A first electrode of resistor 42 serves as the first sensing input of phase current reconstruction element 22 and is connected to the first electrode of sensing resistor 18. A first electrode of resistor 44 serves as the second sensing input of phase current reconstruction element 22 and is connected to the second electrode of sensing resistor 18. A second electrode of resistor 42 and a second electrode of resistor 44 are connected to a non-inverting input and an inverting input, respectively, of operational amplifier 49. The non-inverting input of operational amplifier 49 is coupled through resistor 46 to a node 40 for receiving a reference voltage, V.sub.REF1, of, for example, 2.5 volts (V). The inverting input of operational amplifier 49 is coupled to an output of operational amplifier 49 via resistor 48. The output of operational amplifier 49 serves as the output of amplifier 32. When the resistance of resistor 44 is equal to that of resistor 42 and the resistance of resistor 48 is equal to that of resistor 46, amplifier 32 is configured as a differential amplifier having a voltage gain equal to the ratio of the resistance of resistor 46 to that of resistor 42. When the current in sensing resistor 18 is zero, the voltage at the output of amplifier 32 is equal to the reference voltage V.sub.REF1 at node 40. When a non-zero current flows through sensing resistor 18 from node 21 to node 20, the voltage at the output of amplifier 32 is above the reference voltage V.sub.REF1 at node 40 by an amount equal to the voltage across sensing resistor 18 multiplied by the voltage gain of amplifier 32. It should be understood that amplifier 32 is not limited to being configured as a differential amplifier as shown in FIG. 3. Suitable configurations for amplifier 32 include a non-inverting amplifier, an inverting amplifier, a single-ended amplifier, or the like.
Sample and hold circuit 34 includes an analog switch 52, a capacitor 54, an operational amplifier 55, and a low pass filter 58. A first electrode of analog switch 52 serves as the input of sample and hold circuit 34 and is connected to the output of amplifier 32. A second electrode of analog switch 52 is connected to a first electrode of capacitor 54. A second electrode of capacitor 54 is connected to node 20. A non-inverting input of operational amplifier 55 is connected to the first electrode of capacitor 54. An inverting input of operational amplifier 55 is connected to an output of operational amplifier 55. Operational amplifier 55 has a voltage gain of one and, therefore, serves as a buffer between the first electrode of capacitor 54 and filter 58. Filter 58 includes a resistor 57 and a capacitor 59. A first electrode of resistor 57 is connected to the output of operational amplifier 55. A second electrode of resistor 57 is connected to a first electrode of capacitor 59, forming output 33 of phase current reconstruction element 22. A second electrode of capacitor 59 is connected to node 20.
Sample and hold circuit 34 further includes a delay circuit, which comprises an inverter 62, a field effect transistor (FET) 64, a resistor 66, a capacitor 68, and a Schmitt trigger 69. An input of inverter 62 is coupled to control input 31 of phase current reconstruction element 22 and an output of inverter 62 is connected to a gate electrode of FET 64. A source electrode of FET 64 is connected to node 20. A drain electrode of FET 64 is coupled through resistor 66 to a node 60 for receiving a reference voltage, V.sub.REF2, of, for example, 5 V. The drain electrode of FET 64 is also coupled to node 20 via capacitor 68. An input of Schmitt trigger 69 is connected to the drain electrode of FET 64 and an output of Schmitt trigger 69 is connected to a control electrode of analog switch 52. It should be understood that FET 64 functions as a switch and, therefore, is not limited to being a metal oxide semiconductor field effect transistor in the present invention. Any switch having a control electrode and two current conducting electrodes can replace FET 64. For example, FET 64 may be replaced by an insulated gate bipolar transistor, a bipolar transistor, or the like.
Over-current comparator 36 includes a capacitor 74, a comparator 79, and resistors 72, 76, and 78. A first electrode of resistor 72 serves as the input of over-current comparator 36 and is connected to the output of amplifier 32. A second electrode of resistor 72 is connected to a first electrode of capacitor 74 and to a non-inverting input of comparator 79. A second electrode of capacitor 74 is connected to node 20. A first electrode of resistor 76 is connected to a node 70 for receiving a reference voltage, V.sub.REF3, of, for example, 5 V. A second electrode of resistor 76 is connected to a first electrode of resistor 78 and to an inverting input of comparator 79. A second electrode of resistor 78 is connected to node 20. An output of comparator 79 serves as the output of over-current comparator 36.
Over-current latch 38 includes a storage element 82 and a logic gate 84. In the embodiment show in FIG. 3, storage element 82 is a flip-flop and logic gate 84 is an AND gate. A set input (S) of flip-flop 82 serves as the first input of over-current latch 38 and is connected to the output of over-current comparator 36. An active low reset input (R) serves as the second input of over-current latch 38 and is connected to control input 31 of phase current reconstruction element 22. An inverting output (Q) of flip-flop 82 is connected to a first input of logic AND gate 84. A second input of logic AND gate 84 is connected to the active low reset input (R) of flip-flop 82. An output of logic AND gate 84 serves as control output 35 of phase current reconstruction element 22.
In operation, amplifier 32 senses a current in sensing resistor 18 by measuring a voltage across sensing resistor 18. The measured voltage across sensing resistor 18 is amplified by operational amplifier 49 and shifted to a voltage level equal to the reference voltage V.sub.REF1. Therefore, when the current in sensing resistor 18 is zero, the voltage at the output of amplifier 32 is equal to the reference voltage V.sub.REF1, and when a non-zero current flows through sensing resistor 18 from node 21 to node 20, the voltage at the output of amplifier 32 is above the reference voltage V.sub.REF1 by an amount equal to the voltage across sensing resistor 18 multiplied by the voltage gain of amplifier 32. The current in sensing resistor 18 is equal to the phase current when the transistor in the lower leg of the corresponding phase bridge is on. When the transistor in the lower leg is off, the current flows through the transistor or the diode in the upper leg of the corresponding phase bridge. Thus, the time dependence of the current in sensing resistor 18 is a chopped sine wave, thereby resulting in the voltage at the output of amplifier 32 and the first electrode of analog switch 52 being a chopped sine wave.
Sample and hold circuit 34 reconstructs the phase current from the chopped sine wave voltage signal at the first electrode of analog switch 52.
When the pulse width modulation signal at control input 31 switches from a low voltage level to a high voltage level, inverter 62 switches off FET 64, thereby interrupting a current path from node 60 through resistor 66 and FET 64 to node 20. The voltage across nodes 60 and 20 generates a current through resistor 66. The current through resistor 66 charges capacitor 68 and the voltage across capacitor 68 starts to increase. After a time interval determined by the resistance of resistor 66 and the capacitance of capacitor 68, the voltage across capacitor 68 reaches a triggering voltage of Schmitt trigger 69, resulting in a high voltage level appearing at the output of Schmitt trigger 69. The high voltage level at the output of Schmitt trigger 69 switches on analog switch 52 and sample and hold circuit 34 enters a sampling mode. Because the pulse width modulation signal at control input 31 of phase current reconstruction element 22 also controls the transistor in the lower leg of the corresponding phase bridge, the current in sensing resistor 18 is equal to the phase current in the lower leg of the corresponding phase bridge when analog switch 52 is switched on by Schmitt trigger 69. Through analog switch 52, the voltage at the output of amplifier 32 charges capacitor 54 and is transmitted to the output of operational amplifier 55.
When the pulse width modulation signal at control input 31 switches from a high voltage level to a low voltage level, inverter 62 switches on FET 64, thereby establishing a discharging path for capacitor 68. The voltage across capacitor 68 is now equal to the voltage across the drain and source electrodes of FET 64, which is in a conductive state. The low voltage across capacitor 68 results in a low voltage level appearing at the output of Schmitt trigger 69, thereby switching off analog switch 52. Because the pulse width modulation signal at control input 31 of phase current reconstruction element 22 also controls the transistor in the lower leg of the corresponding phase bridge, the current in sensing resistor 18 is zero when analog switch 52 is switched off by Schmitt trigger 69. Sample and hold circuit 34 is now in a holding mode. Capacitor 54 maintains the voltage level at the input of operational amplifier 55, thereby maintaining the voltage level at the output of operational amplifier 55.
As described supra, the voltage level at the output of operational amplifier 55 is proportional to the current in sensing resistor 18 when analog switch 52 is on and remains constant when analog switch 52 is off. Thus, the voltage at the output of operational amplifier 55 is proportional to a reconstructed phase current with distortion in the sine wave when the transistor in the lower leg of the corresponding phase bridge is off. The reconstructed sine wave is transmitted to output 33 of phase current reconstruction element 22 via low pass filter 58 to reduce the distortion in the reconstructed sine wave.
Over-current comparator 36 detects an over-current condition in the lower leg of the corresponding phase bridge. The voltage at the output of amplifier 32 is transmitted to the non-inverting input of comparator 79 via a low pass filter formed by resistor 72 and capacitor 74. The voltage at the inverting input of comparator 79 is derived from the reference voltage V.sub.REF3 at node 70 through a voltage divider formed by resistors 76 and 78. If the voltage at the non-inverting input of comparator 79 is lower than the voltage at the inverting input of comparator 79, a logic low voltage level appears at the output of comparator 79, indicating that no over-current in the lower leg of the corresponding phase bridge is detected. If the voltage at the non-inverting input of comparator 79 is higher than the voltage at the inverting input of comparator 79, a logic high voltage level appears at the output of comparator 79, indicating that an over-current in the lower leg of the corresponding phase bridge is detected. The voltage level at the output of comparator 79 is transmitted to the set input (S) of flip-flop 82 of over-current latch 38.
If no over-current is detected, the voltage at the set input (S) of flip-flop 82 is at a logic low voltage level. When the pulse width modulation signal at the active low reset input (R) of flip-flop 82 is at a logic low voltage level, a logic high voltage level appears at the inverting output (Q) of flip-flop 82 and the first input of logic AND gate 84. When the pulse width modulation signal at the active low reset input (R) of flip-flop 82 switches to a logic high voltage level, the voltage at the inverting output (Q) of flip-flop 82 and the first input of logic AND gate 84 remains at the logic high voltage level. Thus, the voltage level at the output of logic AND gate 84 is determined by the voltage level at the second input of logic AND gate 84. The pulse width modulation signal at control input 31 of phase current reconstruction element 22 is transmitted through logic AND gate 84 and control output 35 of phase current reconstruction element 22 to the lower gate drive circuit of the corresponding phase bridge.
If an over-current is detected, the voltage at the set input (S) of flip-flop 82 is at a logic high voltage level. Because the over-current condition in the lower leg of a phase bridge occurs only while the transistor in the lower leg of the corresponding phase bridge is switched on by a high voltage level of the pulse width modulation signal, the logic high voltage level at the set input (S) of flip-flop 82 occurs only when the pulse width modulation signal at the active low reset input (R) of flip-flop 82 is at a logic high voltage level. Flip-flop 82, having both the set input (S) and the active low reset input (R) at the logic high voltage level, generates a logic low voltage level at its inverting output (Q) and the first input of logic AND gate 84, resulting in a logic low voltage level appearing at the output of logic AND gate 84. The logic low voltage level at the output of logic AND gate 84 is transmitted to the lower gate drive circuit of the corresponding phase bridge, which then switches off the transistor in the lower leg of the corresponding phase bridge. When the transistor in the lower leg of the corresponding phase bridge is switched off, the over-current condition disappears, resulting in a logic low voltage level appearing at the set input (S) of flip-flip 82. However, the voltage at the inverting output (Q) of flip-flop 82 and the output of logic AND gate 84 remains at the logic low voltage level until flip-flop 82 is reset by a low voltage level of the pulse width modulation signal at the active low reset input (R) of flip-flip 82. Therefore, if an over-current condition is detected in the lower leg of a phase bridge during a cycle of the phase modulation signal, the transistor in the lower leg of the corresponding phase bridge is latched in the non-conductive state for the remaining part of the corresponding cycle of the pulse width modulation signal.
By now it should be appreciated that a circuit and a method for sensing and reconstructing the phase current have been provided. In accordance with the present invention, a sensing resistor and a phase current reconstruction element are used to sense and reconstruct the phase current in each phase. Therefore, the present invention provides information (e.g., current magnitude, voltage vector, power factor) for the proper operation of the motor and protects the power switch in the lower leg of the phase bridge from over-current. Furthermore, the circuit in accordance with the present invention is inexpensive, simple, and sufficiently small to be easily integrated into a power module.