An H-bridge high and low side current detection circuit used in a driver chip
By introducing a negative feedback loop operation amplifier and high-voltage resistant transistor in the H-bridge current detection circuit, the low-voltage wide swing cascorder current mirror can achieve accurate reduction and replication of the induced current, and the wide swing in the existing current detection circuit is solved. The complex problems of output and bias voltage regulation improve detection accuracy and circuit safety, and are suitable for driver chips.
Patent Information
- Application Number
- CN202411256233.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-09-09
AI Technical Summary
The existing H-bridge current detection circuit is difficult to achieve wide swing output, the current mirror bias voltage regulation is complex, and there are problems such as high power consumption and low working efficiency.
A H-bridge high and low-side current detection circuit applied in the driver chip is designed, and the operational amplifier and high-voltage resistant transistor with a negative feedback loop are used to achieve accurate reduction and replication of the induced current through a low-voltage wide swing cascorder current mirror. The bias voltage design is simplified, circuit power consumption is reduced and detection accuracy is improved.
It realizes the wide swing output of the current mirror, improves the accuracy of current detection, simplifies the bias voltage design, enhances the safety and reliability of the circuit, reduces power consumption, and is suitable for driving chips.
Smart Images

Figure CN118759243B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of analog integrated circuits, and in particular relates to an H-bridge high- and low-side current detection circuit used in a driver chip. Background Art
[0002] As a key module of the stepper drive motor chip, the H-bridge high and low side current detection circuit is used to monitor and manage the induced current of the winding at all times to improve the safety and reliability of the equipment. Accurately detecting the current passing through the H-bridge load can accurately control the torque and setting position of the motor. The H-bridge circuit is mainly composed of a high-side MOS tube and a low-side MOS tube. By controlling the switching state of the MOS tube, the induced current in different directions of the high and low sides is generated. The induced current passing through the winding is relatively high, resulting in high power consumption, complex circuit structure, and low working efficiency in the traditional detection circuit. In order to solve the above problems and improve the performance of the detection circuit, it is necessary to design an H-bridge high and low side current detection circuit used in the driver chip.
[0003] In the prior art, current detection is divided into two methods: insertion resistance detection and MOS tube on-resistance detection. For example: Yan Yuqing disclosed a current detection circuit implemented by inserting a resistor in his patent application "A Motor Start-Stop Control System" (application number CN202321955113.8, publication number CN220342228U, publication date 2024.01.12). In this current detection circuit, the low-side driving ground terminal of the H-bridge is connected to the insertion resistor to form a current detection circuit, and is connected to the CURA / D pin in the microcontroller to realize the normal operation of the system. However, if the insertion resistor is too large, the current detection circuit will have problems such as high power consumption and low working efficiency; Pei Si Xu et al. published a paper "On-chip Current Sensing Techniquefor H-bridge Driver System" (DOI: 10.1109 / PIERS55526.2022.9792899) introduced a detection current circuit realized by the on-resistance of a MOS tube. The detection current circuit measures the voltage difference between the source and drain of the PMOS tube through the on-resistance of the PMOS tube working in the deep linear region, and obtains the current flowing through the PMOS tube. However, the on-resistance of the MOS tube is affected by various external factors such as temperature and electron mobility, and its current detection accuracy is low. In order to achieve a smaller insertion loss resistance and higher current detection accuracy, Liu Weifeng et al. disclosed a circuit for H-bridge two-terminal current detection in their patent document "An H-bridge current detection circuit" (application number CN202211615821.7, publication number CN115792359A, publication date 2023.03.14), which uses an operational amplifier to clamp the voltages at both ends of the positive input terminal and the reverse input terminal, replicates the sampling current through a common source and common gate current mirror, and outputs the detection voltage through an amplifier. The circuit has a simple structure, a small insertion loss resistance, and a high current detection accuracy.
[0004] However, the common-source and common-gate current mirror in the H-bridge current detection circuit proposed above is difficult to achieve wide swing output, and the current mirror bias voltage adjustment is relatively complicated. Summary of the invention
[0005] In order to solve the above problems existing in the prior art, the present invention provides an H-bridge high and low side current detection circuit applied to a driver chip. The technical problem to be solved by the present invention is achieved by the following technical solutions:
[0006] An embodiment of the present invention provides an H-bridge high-side and low-side current detection circuit applied to a driver chip, and the H-bridge high-side and low-side current detection circuit includes:
[0007] The H-bridge circuit includes a transistor MN1 and a transistor MN2 respectively controlled by a high-side bias voltage, and a transistor MN3 and a transistor MN4 respectively controlled by a low-side bias voltage; when the transistor MN1 and the transistor MN4 work at the same time, a first induction current is generated, and when the transistor MN2 and the transistor MN3 work at the same time, a second induction current is generated;
[0008] Two H-bridge high-side current detection circuits are connected to transistor MN1 and transistor MN2 respectively; each H-bridge high-side current detection circuit includes: a high-side bias circuit, used to reduce the induced current by a first reduction factor to generate a first reduced induced current, use a first operational amplifier with a negative feedback loop and a first high-voltage resistant transistor to output the first reduced induced current, and generate a high-side bias voltage according to the first reduced induced current through a first resistor; a high-side current scaling circuit, used to reduce the induced current by a second reduction factor to generate a second reduced induced current, and use a second operational amplifier with a negative feedback loop and a second high-voltage resistant transistor to output the second reduced induced current; a high-side low-voltage wide-swing common-source common-gate current mirror circuit, used to copy the second reduced induced current under the high-side bias voltage to generate a high-side detection current with a wide swing; wherein the induced current includes the first induced current or the second induced current;
[0009] Two H-bridge low-side current detection circuits are connected to transistor MN3 and transistor MN4 respectively; each H-bridge low-side current detection circuit includes: a low-side bias circuit, used to scale the induced current by a third scaling factor to generate a third scaled induced current, use a third operational amplifier with a negative feedback loop and a third high-voltage resistant transistor to output the third scaled induced current, and generate a low-side bias voltage according to the third scaled induced current through a second resistor; a low-side current scaling circuit, used to scale the induced current by a fourth scaling factor to generate a fourth scaled induced current, and use a fourth operational amplifier with a negative feedback loop and a fourth high-voltage resistant transistor to output the fourth scaled induced current; a low-side low-voltage wide-swing common-source common-gate current mirror circuit, used to replicate the fourth scaled induced current to generate a low-side detection current with a wide swing under the low-side bias voltage;
[0010] Two high-side and low-side current detection output circuits are respectively connected to an H-bridge high-side current detection circuit and an H-bridge low-side current detection circuit; each high-side and low-side current detection output circuit is used to convert the high-side detection current or the low-side detection current into a detection voltage and output it.
[0011] Beneficial effects of the present invention:
[0012] The H-bridge high-side and low-side current detection circuits applied to the driver chip proposed by the present invention are designed to solve the problems that the existing H-bridge current detection circuits are difficult to realize wide-swing output and the current mirror bias voltage adjustment is relatively complicated. The H-bridge high-side current detection circuit and the H-bridge low-side current detection circuit are redesigned: in the H-bridge high-side current detection circuit and the H-bridge low-side current detection circuit, the voltage equalization characteristic of the positive input terminal and the negative input terminal of the operational amplifier with a negative feedback loop is utilized to accurately reduce the induced current flowing through the H-bridge and apply it to the low-voltage wide-swing common-source and common-gate current mirror. Due to the use of the low-voltage wide-swing common-source and common-gate current mirror, the wide-swing output of the current mirror is realized, and the single-side current detection circuit is improved. The output swing of the end detection voltage is increased, thereby improving the current detection accuracy; a bias voltage is generated by a resistor according to the accurately reduced induced current. Compared with the method of directly generating the bias voltage through a MOS tube, this method of generating the bias voltage through a resistor has a simple circuit structure design, and the static operating point of the circuit is adjusted by adjusting the resistance value, so that the difficulty of providing a stable bias voltage for the low-voltage wide-swing common-source common-gate current mirror is greatly reduced; in the current detection process, a high-voltage resistant transistor is introduced, which can effectively prevent the problem that the low-voltage wide-swing common-source common-gate current mirror circuit cannot work normally when the H-bridge circuit provides an excessively high induced current, thereby improving the safety and reliability of the circuit. In general, the H-bridge high and low-side current detection circuit proposed in the present invention reduces the circuit power consumption and improves the circuit working efficiency, while ensuring that the circuit detects the normal function of the H-bridge bidirectional current, realizes the wide-swing output of the current mirror, simplifies the design structure of the bias voltage, and the circuit can be better applied to the driver chip.
[0013] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a structural schematic diagram of an H-bridge high and low side current detection circuit applied to a driver chip provided by an embodiment of the present invention;
[0015] Figure 2 is a specific circuit diagram of an H-bridge high and low side current detection circuit applied to a driver chip provided by an embodiment of the present invention;
[0016] Figure 3 It is a schematic diagram of an H-bridge high-side current detection simulation curve provided by an embodiment of the present invention;
[0017] Figure 4 It is a schematic diagram of an H-bridge low-side current detection simulation curve provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0018] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.
[0019] See also Figure 1 The embodiment of the present invention provides an H-bridge high-side and low-side current detection circuit applied to a driver chip, and the H-bridge high-side and low-side current detection circuit includes:
[0020] The H-bridge circuit includes a transistor MN1 and a transistor MN2 respectively controlled by a high-side bias voltage, and a transistor MN3 and a transistor MN4 respectively controlled by a low-side bias voltage; when the transistor MN1 and the transistor MN4 work at the same time, a first induction current is generated, and when the transistor MN2 and the transistor MN3 work at the same time, a second induction current is generated;
[0021] Two H-bridge high-side current detection circuits are connected to transistor MN1 and transistor MN2 respectively; each H-bridge high-side current detection circuit includes: a high-side bias circuit, used to reduce the induced current by a first reduction factor to generate a first reduced induced current, use a first operational amplifier with a negative feedback loop and a first high-voltage resistant transistor to output the first reduced induced current, and generate a high-side bias voltage according to the first reduced induced current through a first resistor; a high-side current scaling circuit, used to reduce the induced current by a second reduction factor to generate a second reduced induced current, and use a second operational amplifier with a negative feedback loop and a second high-voltage resistant transistor to output the second reduced induced current; a high-side low-voltage wide-swing common-source common-gate current mirror circuit, used to copy the second reduced induced current under a high-side bias voltage to generate a high-side detection current with a wide swing; wherein the induced current includes the first induced current or the second induced current;
[0022] Two H-bridge low-side current detection circuits are connected to transistor MN3 and transistor MN4 respectively; each H-bridge low-side current detection circuit includes: a low-side bias circuit, used to scale the induced current by a third scaling factor to generate a third scaled induced current, use a third operational amplifier with a negative feedback loop and a third high-voltage resistant transistor to output the third scaled induced current, and generate a low-side bias voltage according to the third scaled induced current through a second resistor; a low-side current scaling circuit, used to scale the induced current by a fourth scaling factor to generate a fourth scaled induced current, and use a fourth operational amplifier with a negative feedback loop and a fourth high-voltage resistant transistor to output the fourth scaled induced current; a low-side low-voltage wide-swing common-source common-gate current mirror circuit, used to replicate the fourth scaled induced current to generate a low-side detection current with a wide swing under a low-side bias voltage;
[0023] The two high-side and low-side current detection output circuits are respectively connected to an H-bridge high-side current detection circuit and an H-bridge low-side current detection circuit; each high-side and low-side current detection output circuit is used to convert the high-side detection current or the low-side detection current into a detection voltage and output it.
[0024] Next, see Figure 2, each part of the H-bridge high and low side current detection circuit is introduced in detail.
[0025] The H-bridge circuit in the embodiment of the present invention is as follows Figure 2 As shown, in addition to transistors MN1 to MN4, an inductor L is also included; wherein the gate of transistor MN1 is connected to the input end of the first high-side bias voltage HS1 and the first H-bridge high-side current detection circuit, the source of transistor MN1 is connected to one end of the inductor L, the drain of transistor MN3, the first H-bridge high-side current detection circuit and the first H-bridge low-side current detection circuit, the drain of transistor MN1 and the drain of transistor MN2 are both connected to the power supply VDD, the gate of transistor MN2 is connected to the input end of the second high-side bias voltage HS2 and the second H-bridge high-side current detection circuit, the source of transistor MN2 is connected to the other end of the inductor L, the drain of transistor MN4, the second H-bridge high-side current detection circuit and a second H-bridge low-side current detection circuit, the gate of the transistor MN3 is connected to the input end of the first low-side bias voltage LS1 and the first H-bridge low-side current detection circuit, the source of the transistor MN3 and the source of the transistor MN4 are both grounded GND, and the gate of the transistor MN4 is connected to the input end of the second low-side bias voltage LS2 and the second H-bridge low-side current detection circuit; wherein, the connection mode of the transistor MN1 to the first H-bridge high-side current detection circuit is the same as the connection mode of the transistor MN2 to the second H-bridge high-side current detection circuit; the connection mode of the transistor MN3 to the first H-bridge low-side current detection circuit is the same as the connection mode of the transistor MN4 to the second H-bridge low-side current detection circuit.
[0026] The H-bridge circuit of the embodiment of the present invention is composed of transistors MN1 to MN4. The H-bridge circuit is one of the existing H-bridge structures, but is not limited to Figure 2 The H-bridge circuit shown in the figure can also be an H-bridge circuit composed of CMOS transistors. According to the characteristics of the H-bridge circuit: when the transistor MN1 and the transistor MN4 work at the same time, a first induction current is generated. I 1, at this time, transistor MN2 and transistor MN3 are not working, that is, transistor MN1 on the left side performs high-side current detection through the H-bridge high-side current detection circuit connected thereto, and transistor MN4 on the right side performs low-side current detection through the H-bridge low-side current detection circuit connected thereto; when transistor MN2 and transistor MN3 work at the same time, a second induced current is generated I 2. At this time, transistor MN1 and transistor MN4 are not working, that is, transistor MN3 located on the left side performs low-side current detection through the H-bridge low-side current detection circuit connected thereto, and transistor MN2 located on the right side performs high-side current detection through the H-bridge high-side current detection circuit connected thereto.
[0027] When the H-bridge circuit of the embodiment of the present invention is working, the high-side bias voltage is greater than the low-side bias voltage. For example, when the transistor MN1 and the transistor MN4 are working at the same time, the high-side bias voltage HS1 of the transistor MN1 is greater than 20V, and the low-side bias voltage LS2 of the transistor MN4 is less than 7V. Similarly, when the transistor MN2 and the transistor MN3 are working at the same time, the high-side bias voltage HS2 of the transistor MN2 is greater than 20V, and the low-side bias voltage LS1 of the transistor MN3 is less than 7V.
[0028] When the H-bridge circuit is working normally, the first inductive current flows through the inductor L. I 1 or the second induction current I The magnitude of 2 can reach A (ampere) level, so all MOS tubes need to be driven to work in the switching state, that is, transistor MN1, transistor MN2, transistor MN3 and transistor MN4 all work in the linear region, and the on and off states of the MOS tubes are controlled by the high-side bias voltages HS1 and HS2, and the low-side bias voltages LS1 and LS2 respectively.
[0029] Furthermore, in order to achieve wide swing output and simple current mirror bias voltage adjustment, while also considering the reliability issues in the detection process, the embodiment of the present invention innovatively designs two H-bridge high-side current detection circuits with the same circuit structure and two H-bridge low-side current detection circuits with the same circuit structure. Each H-bridge high-side current detection circuit includes a high-side bias circuit, a high-side current scaling circuit, and a high-side low-voltage wide swing common source and common gate current mirror circuit, wherein the first H-bridge high-side current detection circuit is connected to transistor MN1 to detect a first induced current flowing through transistor MN1. I 1. The second H-bridge high-side current detection circuit is connected to transistor MN2 to detect the second inductive current flowing through transistor MN2. I 2; Each H-bridge low-side current detection circuit includes a low-side bias circuit, a low-side current scaling circuit and a low-side low-voltage wide-swing common-source common-gate current mirror circuit, wherein the first H-bridge low-side current detection circuit is connected to the transistor MN3 to detect the second induction current flowing through the transistor MN3 I 2. The second H-bridge low-side current detection circuit is connected to transistor MN4 to detect the first inductive current flowing through transistor MN4. I 1.
[0030] Take the H-bridge high-side current detection circuit connected to transistor MN1 as an example, specifically:
[0031] The high-side bias circuit in the H-bridge high-side current detection circuit of the embodiment of the present invention is as follows: Figure 2 As shown, it includes a transistor MN5, a transistor MN6, an operational amplifier A1 and a resistor R1; wherein,
[0032] The gate of transistor MN5 is connected to the gate of transistor MN1, the drain of transistor MN5 is connected to the power supply VDD, the source of transistor MN5 is connected to the drain of transistor MN6 and the non-inverting input terminal of operational amplifier A1, the gate of transistor MN6 is connected to the output terminal of operational amplifier A1, the source of transistor MN6 is connected to one end of resistor R1 and the high-side low-voltage wide-swing common-source common-gate current mirror circuit, the other end of resistor R1 is grounded GND, and the inverting input terminal of operational amplifier A1 is connected to the source of transistor MN1; wherein operational amplifier A1 is a first operational amplifier with a negative feedback loop, transistor MN6 is a first high-voltage resistant transistor, and resistor R1 is a first resistor. In the embodiment of the present invention, the width-to-length ratio of transistor MN1 to transistor MN5 is a first reduction multiple, for example, the width-to-length ratio of transistor MN1 is times the width-to-length ratio of transistor MN5. K 1 times to increase the first inductive current flowing through transistor MN1 I 1 Zoom out K 1 times to generate a first reduced inductive current, that is, the first reduced inductive current flowing through the transistor MN5 is Operational amplifier A1 and transistor MN6 form a negative feedback loop, so that the source voltage of transistor MN1 is equal to the source voltage of transistor MN5 and the drain voltage of transistor MN6, and the first reduced induction current is converted into the bias voltage of the high-side low-voltage wide-swing common-source common-gate current mirror through resistor R1, that is, the high-side bias voltage.
[0033] It can be seen that in the embodiment of the present invention, the high-side bias circuit provides a bias voltage for the high-side low-voltage wide-swing common-source common-gate current mirror circuit. The advantages of this design are: first, the transistor MN6 is a high-voltage resistant transistor, which can effectively prevent the H-bridge circuit from providing an excessively high first induction current. I 1, which causes the high-side low-voltage wide-swing common-source common-gate current mirror circuit to fail to work properly; secondly, the introduced resistor R1 can provide a stable bias voltage for the high-side low-voltage wide-swing common-source common-gate current mirror circuit, avoiding the first induction current in the H-bridge circuit I 1 When the voltage changes greatly, it is impossible to provide a stable bias voltage for the high-side low-voltage wide-swing common-source and common-gate current mirror circuit directly through the MOS tube.
[0034] Furthermore, the high-side current scaling circuit in the H-bridge high-side current detection circuit of the embodiment of the present invention is as follows: Figure 2 As shown, it includes transistor MN7, transistor MN8, and operational amplifier A2; wherein,
[0035] The gate of transistor MN7 is connected to the gate of transistor MN1, the drain of transistor MN7 is connected to the power supply VDD, the source of transistor MN7 is connected to the drain of transistor MN8 and the non-inverting input terminal of operational amplifier A2, the gate of transistor MN8 is connected to the output terminal of operational amplifier A2, the source of transistor MN8 is connected to the high-side low-voltage wide-swing common-source common-gate current mirror circuit, and the inverting input terminal of operational amplifier A2 is connected to the source of transistor MN1; wherein operational amplifier A2 is a second operational amplifier with a negative feedback loop, and transistor MN8 is a second high-voltage resistant transistor. In the embodiment of the present invention, the width-to-length ratio of transistor MN1 to transistor MN7 is a second reduction multiple, for example, the width-to-length ratio of transistor MN1 is times the width-to-length ratio of transistor MN7. K 2 times to increase the first inductive current flowing through transistor MN1 I 1 Zoom out K 2 times to generate a second reduced inductive current, that is, the second reduced inductive current flowing through the transistor MN7 is For the convenience of design, the embodiment of the present invention makes The operational amplifier A2 and the transistor MN8 form a negative feedback loop, so that the source voltage of the transistor MN1 is equal to the source voltage of the transistor MN7 and the drain voltage of the transistor MN8, and the second reduced inductive current is output through the transistor MN8.
[0036] It can be seen that in the embodiment of the present invention, the high-side current scaling circuit provides the high-side low-voltage wide-swing common-source common-gate current mirror circuit with the induction current that needs to be copied, that is, the second reduced induction current. Since the transistor MN8 is a high-voltage resistant transistor, it can further effectively prevent the H-bridge circuit from providing an excessively high first induction current. I 1, resulting in the problem that the high-side low-voltage wide-swing common-source common-gate current mirror circuit cannot work properly.
[0037] Furthermore, the high-side low-voltage wide-swing common-source and common-gate current mirror circuit in the H-bridge high-side current detection circuit of the embodiment of the present invention is as follows Figure 2 As shown, it includes transistors MN9 to MN 12 ;in,
[0038] The gate of transistor MN9 is connected to the gate of transistor MN 11 The gate of transistor MN9 is connected to the high-side bias circuit, and the drain of transistor MN 10 The gate of transistor MN 12 The gate of transistor MN9 is connected to the high-side current scaling circuit, and the source of transistor MN9 is connected to transistor MN 10 The drain connection of transistor MN 10 The source of transistor MN 12 The source of transistor MN is grounded GND. 11 The source of transistor MN 12The drain connection of transistor MN 11 The drain of the transistor MN9 and the transistor MN1 are connected to the first high-low-side current detection output circuit. 11 The width-to-length ratio of transistor MN is the same. 10 and transistor MN 12 The width-to-length ratio is the same, and transistors MN9 to MN 12 Form an NMOS type low voltage wide swing common source common gate current mirror, and transistor MN9 ~ transistor MN 12 All operate in the saturation region, thus achieving a wide swing output on the high side.
[0039] Take the H-bridge low-side current detection circuit connected to transistor MN3 as an example, specifically:
[0040] The low-side bias circuit in the H-bridge low-side current detection circuit of the embodiment of the present invention is as follows: Figure 2 As shown, including transistor MN 13 、Transistor MN 14 , operational amplifier A3 and resistor R2; where,
[0041] Transistor MN 13 The gate of transistor MN is connected to the gate of transistor MN3. 13 The source of transistor MN is grounded to GND. 13 The drain of transistor MN 14 The source of the transistor MN is connected to the inverting input terminal of the operational amplifier A3. 14 The gate of transistor MN is connected to the output terminal of operational amplifier A3. 14 The drain of the transistor MN3 is connected to one end of the resistor R2 and the low-side low-voltage wide-swing common-source common-gate current mirror circuit, the other end of the resistor R2 is connected to the power supply VDD, and the positive input end of the operational amplifier A3 is connected to the drain of the transistor MN3; wherein the operational amplifier A3 is a third operational amplifier with a negative feedback loop, and the transistor MN 14 is a third high voltage resistant transistor, and resistor R2 is a second resistor. 13 The aspect ratio of the transistor MN3 is a third reduction factor, for example, the aspect ratio of the transistor MN3 is 13 The aspect ratio K 3 times to increase the second inductive current flowing through transistor MN3 I 2. Zoom out K 3 times to produce a third reduced inductive current, that is, flowing through transistor MN 13 The third reduced induced current is ; Operational amplifier A3 and transistor MN 14 A negative feedback loop is formed, so that the drain of transistor MN3 and transistor MN 13The drain of transistor MN 14 The source voltage of is equal to that of the first transistor, and the third reduced induced current is converted into the bias voltage of the low-side low-voltage wide-swing common-source common-gate current mirror, that is, the low-side bias voltage, through the resistor R2.
[0042] It can be seen that in the embodiment of the present invention, the low-side bias circuit provides a bias voltage for the low-side low-voltage wide-swing common-source common-gate current mirror circuit. The advantages of this design are: first, the transistor MN 14 As a high voltage resistant transistor, it can effectively prevent the H-bridge circuit from providing an excessively high second inductive current. I 2, the high-side low-voltage wide-swing cascode current mirror circuit cannot work properly; secondly, the introduced resistor R2 can provide a stable bias voltage for the low-side low-voltage wide-swing cascode current mirror circuit, avoiding the second induction current in the H-bridge circuit I 2 When the voltage changes greatly, it is impossible to provide a stable bias voltage for the high-side low-voltage wide-swing common-source and common-gate current mirror circuit directly through the MOS tube.
[0043] Furthermore, the low-side current scaling circuit in the H-bridge low-side current detection circuit of the embodiment of the present invention is as follows: Figure 2 As shown, including transistor MN 15 、Transistor MN 16 , operational amplifier A4; wherein,
[0044] Transistor MN 15 The gate of transistor MN is connected to the gate of transistor MN3. 15 The source of transistor MN is grounded to GND. 15 The drain of transistor MN 16 The source of the transistor MN is connected to the inverting input terminal of the operational amplifier A4. 16 The gate of transistor MN is connected to the output terminal of operational amplifier A4. 16 The drain of the transistor MN3 is connected to the low-side low-voltage wide-swing common-source common-gate current mirror circuit, and the non-inverting input terminal of the operational amplifier A4 is connected to the drain of the transistor MN3; wherein the operational amplifier A4 is a fourth operational amplifier with a negative feedback loop, and the transistor MN 16 The transistor MN3 and the transistor MN in the embodiment of the present invention are 15 The aspect ratio of the transistor MN3 is a fourth reduction factor, for example, the aspect ratio of the transistor MN3 is 15 The aspect ratio K 4 times to increase the second inductive current flowing through transistor MN3 I 2. Zoom out K 4 times to produce a fourth reduced inductive current, that is, flowing through transistor MN 15 The fourth reduced induced current is For the convenience of design, the embodiment of the present invention makes ; Operational amplifier A4 and transistor MN 16 A negative feedback loop is formed, so that the drain of transistor MN3 and transistor MN 15 The drain of transistor MN 16 The source voltage of transistor MN is equal to 16 The output fourth reduces the induction current.
[0045] It can be seen that in the embodiment of the present invention, the low-side current scaling circuit provides the low-side low-voltage wide swing common source and common gate current mirror circuit with the induction current to be copied, that is, the fourth reduced induction current. 16 As a high voltage resistant transistor, it can further effectively prevent the H-bridge circuit from providing an excessively high second inductive current. I 2, the low-side low-voltage wide-swing common-source common-gate current mirror circuit cannot work properly.
[0046] Furthermore, the low-side low-voltage wide-swing common-source common-gate current mirror circuit in the H-bridge low-side current detection circuit of the embodiment of the present invention is as follows Figure 2 As shown, it includes transistors MP1 to MP4; wherein,
[0047] The gate of transistor MP1 is connected to the gate of transistor MP3, the drain of transistor MP2, and the low-side current scaling circuit, the source of transistor MP1 and the source of transistor MP3 are both connected to the power supply VDD, the drain of transistor MP1 is connected to the source of transistor MP2, the gate of transistor MP2 is connected to the gate of transistor MP4 and the low-side bias circuit, the drain of transistor MP3 is connected to the source of transistor MP4, and the drain of transistor MP4 is connected to the first high-low-side current detection output circuit. In the embodiment of the present invention, transistor MP1 and transistor MP3 have the same width-to-length ratio, and transistor MP2 and transistor MP4 have the same width-to-length ratio. A PMOS type low-voltage wide-swing common-source and common-gate current mirror is formed by transistors MP1 to MP4, and transistors MP1 to MP4 all work in the saturation region, thereby realizing a wide-swing output on the low side.
[0048] Furthermore, in the embodiment of the present invention, the two high-side and low-side current detection output circuits have the same structure; the first high-side and low-side current detection output circuit is connected to the first H-bridge high-side current detection circuit and the first H-bridge low-side current detection circuit, and the second high-side and low-side current detection output circuit is connected to the second H-bridge high-side current detection circuit and the second H-bridge low-side current detection circuit; the first high-side and low-side current detection output circuit is as follows Figure 2 As shown, it includes an operational amplifier A5 and a resistor R3; wherein,
[0049] The non-inverting input terminal of the operational amplifier A5 is connected to the input terminal of the reference voltage, the inverting input terminal of the operational amplifier A5 is connected to one end of the resistor R3, the first H-bridge high-side current detection circuit and the first H-bridge low-side current detection circuit, the output terminal of the operational amplifier A5 is connected to the other end of the resistor R3, and the output terminal of the operational amplifier A5 serves as the output terminal of the first high-low-side current detection output circuit. The embodiment of the present invention realizes the conversion of the high-side detection current output by the H-bridge high-side current detection circuit or the low-side detection current output by the H-bridge high-side current detection circuit into a detection voltage, realizes the single-end voltage output of the double-end current detection, and the output voltage is connected to the post-stage module, avoiding the high power consumption and safety problems caused by the large current.
[0050] The working principle of the H-bridge high and low side current detection circuit mentioned in the example of the present invention is as follows:
[0051] In the H-bridge circuit, transistors MN1 to MN4 are controlled to be on and off by high-side bias voltages HS1 and HS2, and low-side bias voltages LS1 and LS2, respectively; transistors MN1 and MN4 are turned on, and transistors MN2 and MN3 are turned off, and there is an on-current, i.e., the first inductive current. I 1 flows through transistor MN1; transistor MN1 and transistor MN4 are turned off, transistor MN2 and transistor MN3 are turned on, and there is an on-current, i.e., the second inductive current I 2 flows through transistor MN3; the first inductive current I 1 and the second induction current I 2 in opposite directions.
[0052] The H-bridge high-side current detection module and the H-bridge low-side current detection module both have a specific structure composed of an operational amplifier and a MOS tube with negative feedback characteristics. According to the "virtual short and virtual break" principle of the negative feedback operational amplifier, the source voltages of transistors MN5, MN7 and MN1 are equal, and the gates and drains of transistors MN5, MN7 and MN1 are also connected to the same potential respectively. Therefore, the first shrinking current flowing through transistor MN5 provides an accurate high-side bias voltage for the NMOS type high-side low-voltage wide-swing common-source and common-gate current mirror through resistor R1, and transistor MN 11 The current flowing through transistor MN7 is equal to the current of transistor MN7, then the second reduced inductive current flowing through transistor MN7 is the current that the NMOS type high-side low-voltage wide-swing common-source common-gate current mirror needs to copy; similarly, the current flowing through transistor MN 13 The third reduced inductive current provides an accurate low-side bias voltage for the PMOS type low-side low-voltage wide-swing common-source common-gate current mirror through resistor R2. The current of transistor MP4 is consistent with that of transistor MN. 15 The current flowing through transistor MN is equal 15The fourth reduced inductive current is the current that the PMOS type low-side low-voltage wide-swing common-source common-gate current mirror needs to copy.
[0053] The high-side and low-side current detection output circuit is a classic structure of a transimpedance amplifier. According to the "virtual short and virtual break" principle of the operational amplifier, the detection voltage formula for the output of the two high-side and low-side current detection output circuits on the left and right sides can be expressed as:
[0054] ;
[0055] in, Represents the detection voltage output by the high and low side current detection output circuit, represents the reference voltage, I 1,2 The first induced current I 1 or the second induction current I 2, K 1,3 Indicates the first reduction factor K 1 or the third reduction factor K 3. When transistor MN1 and transistor MN4 work at the same time, the detection voltage output of the left high and low side current detection output circuit is , the detection voltage output by the high and low side current detection output circuit on the right is Similarly, when transistor MN2 and transistor MN3 work at the same time, the detection voltage output of the left high and low side current detection output circuit is , the detection voltage output by the high and low side current detection output circuit on the right is As for how to further utilize the output detection voltage after the two high and low side current detection output circuits on the left and right sides output the detection voltage, reference may be made to the prior art and will not be repeated here.
[0056] In the example of the present invention, the outputs of the NMOS type low voltage wide swing cascode current mirror and the PMOS type low voltage wide swing cascode current mirror share the same branch, and the output current flows in opposite directions, thereby realizing the single-ended output of the H-bridge high and low side current double-end detection voltage.
[0057] The effects of the H-bridge high and low side current detection circuit proposed in the present invention are further described below in combination with simulation experiments.
[0058] 1. Simulation Experiment Conditions
[0059] The simulation experiment element of the embodiment of the present invention adopts DB_hitek process, and the simulation circuit proposed by the present invention is built based on the Cadence IC617 simulation experiment platform.
[0060] The embodiment of the present invention uses the Spectre simulation tool to simulate the circuit of the present invention, with the voltage of the given power supply VDD being 24V, the operating temperature being 27° C., and the reference voltage VREF being 20V.
[0061] 2. Simulation content and result analysis
[0062] Simulation 1, under the above simulation experimental conditions, using the Spectre simulation tool, set the second high-side bias voltage HS2 and the first low-side bias voltage LS1 to 0 at the input end of the transistor MN2 and the transistor MN3, the second low-side bias voltage LS2 to 6.5V, set the scanning range of the first high-side bias voltage HS1 to [29, 31]V, and the step to 0.1V, then the transistor MN1 and the transistor MN3 in the circuit proposed by the present invention are 11 The simulation results are as follows: Figure 3 As shown, Figure 3 The horizontal axis represents the first high-side bias voltage HS1 in V, and the vertical axis represents the transistor MN1 and the transistor MN 11 The ratio of the current flowing through. Figure 3 It can be seen that the current ratio is 360.2, and the fluctuation does not exceed 0.1, and the ratio of the width to length ratio of transistor MN1 to transistor MN7 is 381.68, and the detection accuracy reaches 94.37%.
[0063] Simulation 2, under the above simulation experimental conditions, using the Spectre simulation tool, at the input end of the transistor MN1 and the transistor MN4, the first high-side bias voltage HS1 and the second low-side bias voltage LS2 are set to 0, the second high-side bias voltage HS2 is 31V, and the scanning range of the first low-side bias voltage LS1 is set to [4.5, 6.5]V, and the step is 0.1V. Then, the ratio of the current flowing through the transistor MN3 and the transistor MP4 of the present invention is simulated. The simulation results are as follows: Figure 4 As shown, Figure 4 The horizontal axis represents the first low-side bias voltage LS1, in V, and the vertical axis represents the ratio of the current flowing through transistor MN3 and transistor MP4. Figure 4 It can be seen that the current ratio is 361.3, and the fluctuation does not exceed 0.5, while transistor MN3 and transistor MN 15 The width-to-length ratio is 381.68, and the detection accuracy reaches 94.66%.
[0064] The above theoretical analysis and simulation results show that the H-bridge high and low side current detection circuit proposed in the present invention achieves the goal of double-end current detection and single-end voltage output while ensuring detection accuracy and low power consumption.
[0065] In summary, the H-bridge high-side and low-side current detection circuits applied to the driver chip proposed in the embodiments of the present invention are designed to address the problems that the existing H-bridge current detection circuits are difficult to achieve wide-swing output and the current mirror bias voltage adjustment is relatively complicated. The H-bridge high-side current detection circuit and the H-bridge low-side current detection circuit are redesigned: in the H-bridge high-side current detection circuit and the H-bridge low-side current detection circuit, the voltage equalization characteristic of the positive input terminal and the negative input terminal of the operational amplifier with a negative feedback loop is utilized to accurately reduce the induced current flowing through the H-bridge and apply it to the low-voltage wide-swing common-source and common-gate current mirror. Due to the use of the low-voltage wide-swing common-source and common-gate current mirror, the wide-swing output of the current mirror is achieved. The output swing of the single-ended detection voltage is improved, thereby improving the current detection accuracy; the bias voltage is generated by a resistor according to the precisely reduced induced current. Compared with the method of directly generating the bias voltage through a MOS tube, this method of generating the bias voltage through a resistor has a simple circuit structure design, and the static operating point of the circuit is adjusted by adjusting the resistance value, so that the difficulty of providing a stable bias voltage for the low-voltage wide-swing common-source common-gate current mirror is greatly reduced; in the current detection process, a high-voltage resistant transistor is introduced, which can effectively prevent the problem that the low-voltage wide-swing common-source common-gate current mirror circuit cannot work normally when the H-bridge circuit provides an excessively high induced current, thereby improving the safety and reliability of the circuit. In general, the H-bridge high and low-side current detection circuit proposed in the embodiment of the present invention reduces the circuit power consumption and improves the circuit working efficiency, while ensuring that the circuit detects the normal function of the H-bridge bidirectional current, realizes the wide-swing output of the current mirror, simplifies the design structure of the bias voltage, and the circuit can be better applied to the driver chip.
[0066] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0067] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the specification and its drawings. In the specification, the word "comprising" does not exclude other components or steps, and "a" or "one" does not exclude multiple situations. Certain measures are recorded in different embodiments, but this does not mean that these measures cannot be combined to produce good results.
[0068] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. An H-bridge high and low side current detection circuit used in a driver chip, characterized in that: The H-bridge high and low side current detection circuit comprises: The H-bridge circuit includes a transistor MN1 and a transistor MN2 respectively controlled by a high-side bias voltage, and a transistor MN3 and a transistor MN4 respectively controlled by a low-side bias voltage; when the transistor MN1 and the transistor MN4 work at the same time, a first induction current is generated, and when the transistor MN2 and the transistor MN3 work at the same time, a second induction current is generated; Two H-bridge high-side current detection circuits are connected to transistor MN1 and transistor MN2 respectively; each H-bridge high-side current detection circuit includes: a high-side bias circuit, used to reduce the induced current by a first reduction factor to generate a first reduced induced current, use a first operational amplifier with a negative feedback loop and a first high-voltage resistant transistor to output the first reduced induced current, and generate a high-side bias voltage according to the first reduced induced current through a first resistor; a high-side current scaling circuit, used to reduce the induced current by a second reduction factor to generate a second reduced induced current, and use a second operational amplifier with a negative feedback loop and a second high-voltage resistant transistor to output the second reduced induced current; a high-side low-voltage wide-swing common-source common-gate current mirror circuit, used to copy the second reduced induced current under the high-side bias voltage to generate a high-side detection current with a wide swing; wherein the induced current includes the first induced current or the second induced current; Two H-bridge low-side current detection circuits are connected to transistor MN3 and transistor MN4 respectively; each H-bridge low-side current detection circuit includes: a low-side bias circuit, used to scale the induced current by a third scaling factor to generate a third scaled induced current, use a third operational amplifier with a negative feedback loop and a third high-voltage resistant transistor to output the third scaled induced current, and generate a low-side bias voltage according to the third scaled induced current through a second resistor; a low-side current scaling circuit, used to scale the induced current by a fourth scaling factor to generate a fourth scaled induced current, and use a fourth operational amplifier with a negative feedback loop and a fourth high-voltage resistant transistor to output the fourth scaled induced current; a low-side low-voltage wide-swing common-source common-gate current mirror circuit, used to replicate the fourth scaled induced current to generate a low-side detection current with a wide swing under the low-side bias voltage; Two high-side and low-side current detection output circuits are respectively connected to an H-bridge high-side current detection circuit and an H-bridge low-side current detection circuit; each high-side and low-side current detection output circuit is used to convert the high-side detection current or the low-side detection current into a detection voltage and output it.
2. The H-bridge high and low side current detection circuit used in a driver chip according to claim 1, characterized in that: The H-bridge circuit also includes an inductor L; wherein, The gate of transistor MN1 is connected to the input end of the first high-side bias voltage and the first H-bridge high-side current detection circuit, the source of transistor MN1 is connected to one end of the inductor L, the drain of transistor MN3, the first H-bridge high-side current detection circuit and the first H-bridge low-side current detection circuit, the drain of transistor MN1 and the drain of transistor MN2 are both connected to the power supply VDD, the gate of transistor MN2 is connected to the input end of the second high-side bias voltage and the second H-bridge high-side current detection circuit, the source of transistor MN2 is connected to the other end of the inductor L, the drain of transistor MN4, the second H-bridge high-side current detection circuit and the second H-bridge low-side current detection circuit. The gate of transistor MN3 is connected to the input end of the first low-side bias voltage and the first H-bridge low-side current detection circuit, the source of transistor MN3 and the source of transistor MN4 are both grounded GND, and the gate of transistor MN4 is connected to the input end of the second low-side bias voltage and the second H-bridge low-side current detection circuit; wherein, the connection mode of transistor MN1 to the first H-bridge high-side current detection circuit is the same as the connection mode of transistor MN2 to the second H-bridge high-side current detection circuit; the connection mode of transistor MN3 to the first H-bridge low-side current detection circuit is the same as the connection mode of transistor MN4 to the second H-bridge low-side current detection circuit.
3. The H-bridge high and low side current detection circuit used in a driver chip according to claim 2, characterized in that: The high-side bias circuit includes a transistor MN5, a transistor MN6, an operational amplifier A1 and a resistor R1; wherein, The gate of transistor MN5 is connected to the gate of transistor MN1, the drain of transistor MN5 is connected to the power supply VDD, the source of transistor MN5 is connected to the drain of transistor MN6 and the non-inverting input terminal of operational amplifier A1, the gate of transistor MN6 is connected to the output terminal of operational amplifier A1, the source of transistor MN6 is connected to one end of resistor R1 and the high-side low-voltage wide-swing common-source and common-gate current mirror circuit, the other end of resistor R1 is grounded GND, and the inverting input terminal of operational amplifier A1 is connected to the source of transistor MN1; wherein, operational amplifier A1 is a first operational amplifier with a negative feedback loop, transistor MN6 is a first high-voltage resistant transistor, and resistor R1 is a first resistor.
4. The H-bridge high and low side current detection circuit used in a driver chip according to claim 2, characterized in that: The high-side current scaling circuit includes a transistor MN7, a transistor MN8, and an operational amplifier A2; wherein, The gate of transistor MN7 is connected to the gate of transistor MN1, the drain of transistor MN7 is connected to the power supply VDD, the source of transistor MN7 is connected to the drain of transistor MN8 and the non-inverting input terminal of operational amplifier A2, the gate of transistor MN8 is connected to the output terminal of operational amplifier A2, the source of transistor MN8 is connected to the high-side low-voltage wide-swing common-source and common-gate current mirror circuit, and the inverting input terminal of operational amplifier A2 is connected to the source of transistor MN1; wherein, operational amplifier A2 is a second operational amplifier with a negative feedback loop, and transistor MN8 is a second high-voltage-resistant transistor.
5. The H-bridge high and low side current detection circuit used in a driver chip according to claim 2, characterized in that: The high-side low-voltage wide-swing common-source common-gate current mirror circuit includes transistors MN9 to MN 12 ;in, The gate of transistor MN9 is connected to the gate of transistor MN 11 The gate of transistor MN9 is connected to the high-side bias circuit, and the drain of transistor MN9 is connected to transistor MN 10 The gate of transistor MN 12 The gate of transistor MN9 is connected to the high-side current scaling circuit, and the source of transistor MN9 is connected to transistor MN 10 The drain connection of transistor MN 10 The source of transistor MN 12 The source of transistor MN is grounded GND. 11 The source of transistor MN 12 The drain connection of transistor MN 11 The drain of is connected to the first high-side low-side current sensing output circuit.
6. The H-bridge high and low side current detection circuit used in a driver chip according to claim 2, characterized in that: The low-side bias circuit includes a transistor MN 13 、Transistor MN 14 , operational amplifier A3 and resistor R2; where, Transistor MN 13 The gate of transistor MN is connected to the gate of transistor MN3. 13 The source of transistor MN is grounded to GND. 13 The drain of transistor MN 14 The source of the transistor MN is connected to the inverting input terminal of the operational amplifier A3. 14 The gate of transistor MN is connected to the output terminal of operational amplifier A3. 14 The drain of the transistor MN3 is connected to one end of the resistor R2 and the low-side low-voltage wide-swing common-source common-gate current mirror circuit, the other end of the resistor R2 is connected to the power supply VDD, and the positive input end of the operational amplifier A3 is connected to the drain of the transistor MN3; wherein the operational amplifier A3 is a third operational amplifier with a negative feedback loop, and the transistor MN 14 is a third high-voltage-resistant transistor, and resistor R2 is a second resistor.
7. The H-bridge high and low side current detection circuit used in a driver chip according to claim 2, characterized in that: The low-side current scaling circuit includes a transistor MN 15 、Transistor MN 16 , operational amplifier A4; wherein, Transistor MN 15 The gate of transistor MN is connected to the gate of transistor MN3. 15 The source of transistor MN is grounded to GND. 15 The drain of transistor MN 16 The source of the transistor MN is connected to the inverting input terminal of the operational amplifier A4. 16 The gate of transistor MN is connected to the output terminal of operational amplifier A4. 16 The drain of the transistor MN3 is connected to the low-side low-voltage wide-swing common-source common-gate current mirror circuit, and the non-inverting input terminal of the operational amplifier A4 is connected to the drain of the transistor MN3; wherein the operational amplifier A4 is a fourth operational amplifier with a negative feedback loop, and the transistor MN 16 It is the fourth high voltage resistant transistor.
8. The H-bridge high and low side current detection circuit used in a driver chip according to claim 2, characterized in that: The low-side low-voltage wide-swing common-source common-gate current mirror circuit includes transistors MP1 to MP4; wherein, The gate of transistor MP1 is connected to the gate of transistor MP3, the drain of transistor MP2, and the low-side current scaling circuit, the source of transistor MP1 and the source of transistor MP3 are both connected to the power supply VDD, the drain of transistor MP1 is connected to the source of transistor MP2, the gate of transistor MP2 is connected to the gate of transistor MP4 and the low-side bias circuit, the drain of transistor MP3 is connected to the source of transistor MP4, and the drain of transistor MP4 is connected to the first high-low side current detection output circuit.
9. The H-bridge high and low side current detection circuit used in a driver chip according to claim 2, characterized in that: The two high-side and low-side current detection output circuits have the same structure; the first high-side and low-side current detection output circuit is connected to the first H-bridge high-side current detection circuit and the first H-bridge low-side current detection circuit, and the second high-side and low-side current detection output circuit is connected to the second H-bridge high-side current detection circuit and the second H-bridge low-side current detection circuit; the first high-side and low-side current detection output circuit includes an operational amplifier A5 and a resistor R3; wherein, The non-inverting input terminal of the operational amplifier A5 is connected to the input terminal of the reference voltage, the inverting input terminal of the operational amplifier A5 is connected to one end of the resistor R3, the first H-bridge high-side current detection circuit and the first H-bridge low-side current detection circuit, the output terminal of the operational amplifier A5 is connected to the other end of the resistor R3, and the output terminal of the operational amplifier A5 serves as the output terminal of the first high- and low-side current detection output circuit.
