Hysteresis voltage comparator and motor driving chip

By introducing a high-voltage hysteresis module into the hysteresis voltage comparator, the problem that the low-voltage output comparator cannot meet the voltage withstand of the high-voltage MOS tube is solved, and the hysteresis voltage comparison of the high-voltage tube is realized, protecting the chip and completing specific functions.

CN119010856APending Publication Date: 2024-11-22TOLL MICROELECTRONIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411104184.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing low-voltage output comparators cannot meet the pressure withstand requirements of high-voltage MOS tubes, limiting the possibility of using low-voltage hysteresis structures.

Method used

A hysteresis voltage comparator is designed, including a bias module, a high-voltage input module, a low-voltage output module and a high-voltage hysteresis module. It is connected to the high-voltage input module through a high-voltage hysteresis module to provide a hysteresis voltage, and converts the low-voltage differential current through a low-voltage output module. It is a low-voltage differential voltage signal, which meets the voltage withstand requirements of high-voltage tubes.

Benefits of technology

It realizes the use of a low-voltage hysteresis structure while meeting the pressure resistance requirements of high-voltage tubes, providing appropriate hysteresis voltage comparison functions, protecting the chip and completing specific functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119010856A_ABST
    Figure CN119010856A_ABST
Patent Text Reader

Abstract

The invention provides a hysteresis voltage comparator and a motor driving chip. The hysteresis voltage comparator comprises a bias module, a high-voltage input module, a low-voltage output module and a high-voltage hysteresis module, the bias module is connected with the high-voltage input module and the high-voltage hysteresis module and used for providing bias voltage for the high-voltage input module and the high-voltage hysteresis module. The high-voltage input module is respectively connected with the high-voltage power supply pin and the low-voltage output module and is used for receiving a high-voltage power supply input by the high-voltage power supply pin and outputting low-voltage differential current to the low-voltage output module; the low-voltage output module is used for converting the low-voltage differential current into a low-voltage differential voltage signal and outputting the low-voltage differential voltage signal; the high-voltage hysteresis module is connected with the high-voltage input module and used for providing hysteresis voltage for the high-voltage input module. By additionally arranging the high-voltage hysteresis module, the comparator can meet the voltage-withstanding requirement of a high-voltage tube, and a low-voltage hysteresis structure can also be used.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of low-voltage output comparators, and more specifically, to a hysteresis voltage comparator and a motor drive chip. Background Art

[0002] Traditional high-voltage comparators are characterized by a very high input impedance (greater than 100 MΩ) and are commonly used for voltage detection at high-voltage ports, especially for voltage checks at weakly driven high-voltage ports. Since such ports do not allow resistor voltage division, the port SET and FB are high-voltage weakly driven ports where voltage cannot be detected by resistor voltage division and must be detected by a high-voltage comparator. Once the port voltage is detected to be too high, a high level is output to turn off or brake the drive module to protect the chip or complete a specific function.

[0003] A high-voltage input and low-voltage output voltage comparator without hysteresis, such as Figure 1 shown, Figure 1 is the voltage comparator circuit in the background art embodiment, which consists of a bias circuit, a high-voltage input circuit, and a low-voltage output circuit. The bias circuit provides a bias voltage for the circuit; the high-voltage input circuit is used to input positive and negative input signals, and the range of the input signals is 1V to VPPH; the low-voltage output circuit is used to output the comparison result, and the range of the output signal is 0 to VPPL. If VIP > VIN, then the output signal is VPPL; if VIP < VIN, then the output signal is 0V. The MOS transistors used in the bias circuit and the high-voltage input circuit are all high-voltage MOS transistors, and those used in the low-voltage circuit are all low-voltage MOS transistors.

[0004] Since high-voltage MOS transistors generally have a high breakdown voltage in VDS, but the breakdown voltage of VGS does not exceed 6V, many low-voltage hysteresis structures cannot be used. Therefore, a voltage comparator that can not only meet the breakdown voltage requirements of high-voltage transistors but also use low-voltage hysteresis structures is needed. Summary of the Invention

[0005] The purpose of this application is to provide a hysteresis voltage comparator and a motor drive chip that can meet the breakdown voltage requirements of high-voltage transistors and generate hysteresis.

[0006] The embodiments of this application are implemented as follows:

[0007] On the one hand, an embodiment of this application provides a hysteresis voltage comparator, including: a bias module, a high-voltage input module, a low-voltage output module, and a high-voltage hysteresis module;

[0008] The bias module is respectively connected to the high-voltage input module and the high-voltage hysteresis module, and is used to provide a bias voltage for the high-voltage input module and the high-voltage hysteresis module;

[0009] The high voltage input module is connected to the high voltage power supply pin and the low voltage output module respectively, and is used to receive the high voltage power supply input by the high voltage power supply pin and output the low voltage differential current to the low voltage output module;

[0010] The low voltage output module is used to convert the low voltage differential current into a low voltage differential voltage signal and output it;

[0011] The high-voltage hysteresis module is connected to the high-voltage input module and is used for providing a hysteresis voltage to the high-voltage input module.

[0012] Optionally, the high voltage input module includes: a direct current generating module, a differential current generating module, a load jump isolation circuit and a low voltage current conversion circuit;

[0013] One end of the DC current generating module is connected to the high voltage power supply pin to generate a DC current;

[0014] One end of the differential current generating module is connected to the voltage signal input end to generate a differential current;

[0015] The load jump isolation module is connected to the DC current generation module and is used to isolate the load jump;

[0016] The low-voltage current conversion module is connected to the low-voltage voltage conversion module and is used to convert the differential input current signal generated by the differential current generation module from the high-voltage domain to the low-voltage domain.

[0017] Optionally, the high voltage hysteresis module includes a first differential pair and a second differential pair;

[0018] The first differential pair includes a fifth NMOS transistor, a sixth NMOS transistor, a seventh NMOS transistor and a ninth NMOS transistor;

[0019] The gate of the fifth NMOS tube is connected to the positive voltage input terminal, the drain is connected to the differential current generating module, and the source of the fifth NMOS tube and the source of the sixth NMOS tube are respectively connected to the drain of the seventh NMOS tube;

[0020] The gate of the sixth NMOS tube is connected to the negative voltage input terminal, and the drain of the sixth NMOS tube is connected to the differential current generating module;

[0021] The gate of the seventh NMOS tube is connected to the first feedback pin, and the source is connected to the drain of the ninth NMOS tube;

[0022] The gate of the ninth NMOS tube is connected to the current input terminal, and the source is grounded;

[0023] The second differential pair includes a third NMOS transistor, a fourth NMOS transistor, an eighth NMOS transistor and a tenth NMOS transistor;

[0024] The gate of the third NMOS tube is connected to the negative voltage input terminal, the drain is connected to the differential current generating module, and the source of the third NMOS tube and the source of the fourth NMOS tube are respectively connected to the drain of the eighth NMOS tube;

[0025] The gate of the fourth NMOS tube is connected to the positive voltage input terminal, and the drain of the fourth NMOS tube is connected to the differential current generating module;

[0026] The gate of the eighth NMOS tube is connected to the second feedback pin, and the source is connected to the drain of the tenth NMOS tube;

[0027] The gate of the tenth NMOS tube is connected to the current input terminal, and the source is grounded.

[0028] Optionally, the bias module includes a seventh PMOS tube, a first resistor, a sixteenth NMOS tube and a seventeenth NMOS tube;

[0029] The drain and gate of the seventh PMOS tube are connected to the direct current generating module for generating a first bias voltage, and the source is connected to the high voltage input terminal;

[0030] One end of the first resistor is connected to the drain of the fifth PMOS tube, and the other end is connected to the load jump isolation circuit, so as to generate a second bias voltage;

[0031] The drain of the sixteenth NMOS tube is connected to the current input terminal, the source of the sixteenth NMOS tube is grounded, the drain of the seventeenth NMOS tube is connected to the first resistor, the source of the seventeenth NMOS tube is grounded, the gate of the seventeenth NMOS tube and the gate of the sixteenth NMOS tube are commonly connected to the current input terminal, and the sixteenth NMOS tube and the seventeenth NMOS tube are used to provide a third bias voltage for the high-voltage hysteresis module and the differential current generating module.

[0032] Optionally, the low-voltage current conversion circuit includes a twelfth NMOS tube, a thirteenth NMOS tube, a fourteenth NMOS tube and a fifteenth NMOS tube;

[0033] The drain of the twelfth NMOS tube is connected to the low voltage conversion module, the gate is connected to the gate of the thirteenth NMOS tube, and the source is grounded;

[0034] The drain of the thirteenth NMOS tube is connected to the load jump isolation module, the gate is connected to the drain of the thirteenth NMOS tube, and the source is grounded;

[0035] The drain of the fourteenth NMOS tube is connected to the load jump isolation module, the gate is connected to the drain of the fourteenth NMOS tube, and the source is grounded;

[0036] The source of the fifteenth NMOS tube is connected to the low voltage conversion module, the gate is connected to the gate of the fourteenth NMOS tube, and the source is grounded.

[0037] Optionally, the DC current generating module includes a first PMOS tube and a second PMOS tube;

[0038] The source of the first PMOS tube and the second PMOS tube are connected to the high voltage power supply pin, the gate of the seventh PMOS tube is connected to the source, the drain of the first PMOS tube is connected to the source of the third PMOS tube, and the drain of the second PMOS tube is connected to the source of the fourth PMOS tube;

[0039] The load jump isolation module includes a third PMOS tube and a fourth PMOS tube, the gate of the third PMOS tube and the gate of the fourth PMOS tube are commonly connected to one end of the first resistor, the drain of the third PMOS tube is connected to the drain of the thirteenth NMOS tube, and the drain of the fourth PMOS tube is connected to the drain of the fourteenth PMOS tube.

[0040] Optionally, the differential current generating module includes a first NMOS transistor, a second NMOS transistor and an eleventh NMOS transistor;

[0041] The gate of the first NMOS tube is connected to the negative voltage input terminal, the drain is connected to the drain of the second PMOS tube, the source of the first NMOS tube and the drain of the second NMOS tube are respectively connected to the drain of the eleventh NMOS tube, and the drain of the first NMOS tube is connected to the source of the second PMOS tube;

[0042] The gate of the second NMOS tube is connected to the positive voltage input terminal, and the drain of the second NMOS tube is connected to the drain of the first PMOS tube;

[0043] The gate of the eleventh NMOS tube is connected to the current input terminal, and the source is grounded.

[0044] Optionally, the low voltage output module includes a low voltage voltage conversion module and an inverter;

[0045] The low voltage voltage conversion module includes a fifth PMOS tube and a sixth PMOS tube, the sources of the fifth PMOS tube and the sixth PMOS tube are respectively connected to the low voltage power supply pin, the gate of the fifth PMOS tube is respectively connected to the drain and the gate of the sixth PMOS tube; the drain of the sixth PMOS tube is connected to the inverter, and is used to convert the low voltage differential current into a low voltage differential voltage signal;

[0046] The drain of the fifth PMOS tube is also connected to the drain of the twelfth NMOS tube, and the drain of the sixth PMOS tube is also connected to the drain of the fifteenth NMOS tube;

[0047] The inverter includes a first inverter, a second inverter and a third inverter. The first inverter and the second inverter are connected to a first feedback pin, the second inverter and the third inverter are connected to a second feedback pin, and the third inverter is connected to an output terminal.

[0048] Optionally, the first differential pair further includes a second resistor, and two ends of the second resistor are respectively connected to the drains of the fifth NMOS transistor and the sixth NMOS transistor;

[0049] The second differential pair further includes a third resistor, and two ends of the third resistor are respectively connected to the source of the third NMOS transistor and the fourth NMOS transistor;

[0050] The differential current generating module also includes a fourth resistor and a fifth resistor, one end of the fourth resistor is connected to the source of the first NMOS tube, the other end of the fourth resistor is connected to the drain of the eleventh NMOS tube and the fifth resistor, and the other end of the fifth resistor is connected to the source of the second NMOS tube.

[0051] On the other hand, an embodiment of the present application provides a motor driver chip, including: a port overvoltage detection module, the port overvoltage detection module includes a plurality of hysteresis voltage comparators of any one of the above items; and also includes a high-voltage port and a driving module, the hysteresis voltage comparator is used to detect the voltage of the high-voltage port and output a signal to the driving module for controlling the driving module.

[0052] The beneficial effects of the embodiments of the present application include:

[0053] A hysteresis voltage comparator and a motor driver chip provided in the embodiments of the present application can enable the comparator to meet the voltage resistance requirements of the high-voltage tube by additionally setting a high-voltage hysteresis module, and can also use a low-voltage hysteresis structure. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0055] Figure 1 It is a structural schematic diagram of a voltage comparator in the background technology;

[0056] Figure 2 This is a schematic diagram of the structure of a hysteresis voltage comparator in an embodiment of the present application;

[0057] Figure 3 A schematic diagram of the change of hysteresis voltage in the hysteresis voltage comparator in the embodiment of the present application;

[0058] Figure 4 It is a schematic structural diagram of another hysteresis voltage comparator in the embodiments of the present application;

[0059] Figure 5 It is a schematic structural diagram of a motor drive chip on the other hand in the embodiments of the present application. Detailed implementation manners

[0060] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some but not all of the embodiments of the present application. Components of the embodiments of the present application usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations.

[0061] Therefore, the detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but merely represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts fall within the scope of protection of the present application.

[0062] It should be noted that like reference numerals and letters denote like items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.

[0063] In the description of the present application, it should be noted that the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0064] As Figure 1 shown, Figure 1 It is a schematic structural diagram of a voltage comparator in the background art. In the figure, it is a voltage comparator with high-voltage input and low-voltage output, which is composed of a bias circuit, a high-voltage input circuit, and a low-voltage output circuit. The bias circuit provides a bias voltage for the circuit; the high-voltage input circuit is used to input positive and negative input signals, and the range of the input signals is 1V to VPPH; the low-voltage output circuit is used to output the comparison result, and the range of the output signal is 0 to VPPL. If VIP > VIN, then the output signal is VPPL; if VIP < VIN, then the output signal is 0V. Among them, the MOS transistors used in the bias circuit and the high-voltage input circuit are all high-voltage MOS transistors, and the low-voltage circuit uses all low-voltage MOS transistors.

[0065] In the high-voltage circuit, the main differential pair consists of MN1, MN2 and MN11. MN1 and MN2 are of the same size and are used to convert the differential input voltage into a differential input current. PMOS tubes MP1 to 4 form a common source and common gate current mirror. MP1 and MP2 are of the same size, and MP3 and MP4 are of the same size. MP1 and MP2 are current mirror tubes used to provide a suitable DC working current. MP3 and MP4 are common source and common gate tubes used to isolate load jumps and increase gain. NMOS tubes NM12 to 15 form two groups of current mirrors with the same size, which are used to convert differential input current signals from the high voltage domain to the low voltage domain.

[0066] In the low voltage circuit, PMOS tubes MP5 and MP6 form a current mirror with the same size, which is used to convert the low voltage domain differential input current signal into a low voltage domain differential output voltage signal. Inverter 1 is a Schmitt inverter, which is used to prevent noise from affecting the output result.

[0067] In the voltage comparator of the background technology, the high-voltage MOS tube generally has a VDS withstanding high voltage, and a VGS withstanding voltage not exceeding 6V, so many low-voltage hysteresis structures cannot be used.

[0068] According to one aspect of an embodiment of the present application, a hysteresis voltage comparator is provided, including: a bias module, a high-voltage input module, a low-voltage output module and a high-voltage hysteresis module; the bias module is respectively connected to the high-voltage input module and the high-voltage hysteresis module, and is used to provide a bias voltage for the high-voltage input module and the high-voltage hysteresis module; the high-voltage input module is respectively connected to the high-voltage power supply pin and the low-voltage output module, and is used to receive the high-voltage power supply input by the high-voltage power supply pin, and output a low-voltage differential current to the low-voltage output module; the low-voltage output module is used to convert the low-voltage differential current into a low-voltage differential voltage signal and output it; the high-voltage hysteresis module is connected to the high-voltage input module, and is used to provide a hysteresis voltage to the high-voltage input module.

[0069] In an embodiment of the present application, a bias module, a high-voltage input module, a low-voltage input module and a high-voltage hysteresis module are provided; through the bias module, a bias voltage can be provided for the power tube in each module, and through the high-voltage input module, the received high-voltage input voltage can be converted into a low-voltage differential current output, and then based on the low-voltage output module, the low-voltage differential current is converted into a low-voltage differential voltage signal and used as a low-voltage output; in addition, a high-voltage hysteresis module is also provided, and the high-voltage hysteresis module is composed of a differential pair, based on which, the voltage resistance requirements of the high-voltage tube can be met, and hysteresis that meets the requirements of the comparator can be generated.

[0070] Optionally, the high-voltage input module includes: a DC current generating module, a differential current generating module, a load jump isolation circuit and a low-voltage current conversion circuit; one end of the DC current generating module is connected to the high-voltage power supply pin for generating DC current; one end of the differential current generating module is connected to the voltage signal input end for generating a differential current based on the differential voltage signal input from the voltage signal input end; the load jump isolation module is connected to the DC current generating module for isolating load jumps; the low-voltage current conversion module is connected to the low-voltage voltage conversion module for converting the differential input current signal generated by the differential current generating module from the high-voltage domain to the low-voltage domain.

[0071] In this embodiment, the high-voltage input module is used to process the high-voltage input signal input by the high-voltage input end, and convert the high-voltage input signal into a low-voltage differential current signal, wherein the DC current generating module is used to generate a DC current to provide a suitable DC operating point for the circuit, and the differential current generating module can convert the differential voltage signal input by the high-voltage input end into a differential current signal, the differential voltage signal is a high-voltage signal, therefore, the differential current signal is also a high-voltage signal at this time; and, the load jump isolation module is used to isolate the load jump and improve the gain, and also includes a low-voltage current conversion module, which is connected to the low-voltage voltage conversion module, and is used to convert the differential input current signal from the high-voltage domain to the low-voltage domain, that is, to convert it into a low-voltage differential current signal.

[0072] Optionally, the high-voltage hysteresis module includes a first differential pair and a second differential pair; the first differential pair includes a fifth NMOS tube, a sixth NMOS tube, a seventh NMOS tube and a ninth NMOS tube; the gate of the fifth NMOS tube is connected to the positive voltage input terminal, the drain is connected to the differential current generating module, the source of the fifth NMOS tube and the source of the sixth NMOS tube are respectively connected to the drain of the seventh NMOS tube; the gate of the sixth NMOS tube is connected to the negative voltage input terminal, and the drain of the sixth NMOS tube is connected to the differential current generating module; the gate of the seventh NMOS tube is connected to the first feedback pin, and the source is connected to the drain of the ninth NMOS tube; the gate of the ninth NMOS tube is connected to the negative voltage input terminal, and the drain of the sixth NMOS tube is connected to the differential current generating module; The current input terminal is connected, and the source is grounded; the second differential pair includes a third NMOS tube, a fourth NMOS tube, an eighth NMOS tube and a tenth NMOS tube; the gate of the third NMOS tube is connected to the negative voltage input terminal, the drain is connected to the differential current generating module, the source of the third NMOS tube and the source of the fourth NMOS tube are respectively connected to the drain of the eighth NMOS tube; the gate of the fourth NMOS tube is connected to the positive voltage input terminal, and the drain of the fourth NMOS tube is connected to the differential current generating module; the gate of the eighth NMOS tube is connected to the second feedback pin, and the source is connected to the drain of the tenth NMOS tube; the gate of the tenth NMOS tube is connected to the current input terminal, and the source is grounded.

[0073] like Figure 2 As shown, Figure 2 Schematic diagram of the structure of the hysteresis voltage comparator in the embodiment of the present application. In the figure, the first NMOS tube corresponds to NM1, the second NMOS tube corresponds to NM2, and the first PMOS tube is PM1. The same applies to other devices.

[0074] In this embodiment, a first differential pair and a second differential pair are included, wherein the first group is composed of MN5, MN6, MN7, and MN9, and the second group is composed of MN3, MN4, MN8, and MN10. MN7 is consistent with MN9 in size, and MN8 is consistent with MN10 in size. Based on the first differential pair and the second differential pair, corresponding hysteresis can be generated according to the requirements of the comparator.

[0075] Optionally, the drain and gate of the seventh PMOS tube are connected to a direct current generating module to generate a first bias voltage, and the source is connected to a high voltage input terminal; one end of the first resistor is connected to the drain of the fifth PMOS tube, and the other end is connected to a load jump isolation circuit to generate a second bias voltage; the drain of the sixteenth NMOS tube is connected to the current input terminal, the source of the sixteenth NMOS tube is grounded, the drain of the seventeenth NMOS tube is connected to the first resistor, the source of the seventeenth NMOS tube is grounded, the gate of the seventeenth NMOS tube and the gate of the sixteenth NMOS tube are connected to the current input terminal together, and the sixteenth NMOS tube and the seventeenth NMOS tube are used to provide a third bias voltage for the high voltage hysteresis module and the differential current generating module.

[0076] In this embodiment, R1 represents a first resistor, MP7 is used to generate a first bias voltage for a DC current generating module, and the first resistor is used to generate a second bias voltage for a load jump isolation circuit; MN16 and MN17 are used to generate a third bias voltage to provide to a high voltage hysteresis module and a differential current generating module;

[0077] Optionally, the low-voltage current conversion circuit includes a twelfth NMOS tube, a thirteenth NMOS tube, a fourteenth NMOS tube and a fifteenth NMOS tube; the drain of the twelfth NMOS tube is connected to the low-voltage voltage conversion module, the gate is connected to the gate of the thirteenth NMOS tube, and the source is grounded; the drain of the thirteenth NMOS tube is connected to the load jump isolation module, the gate is connected to the drain of the thirteenth NMOS tube, and the source is grounded; the drain of the fourteenth NMOS tube is connected to the load jump isolation module, the gate is connected to the drain of the fourteenth NMOS tube, and the source is grounded; the source of the fifteenth NMOS tube is connected to the low-voltage voltage conversion module, the gate is connected to the gate of the fourteenth NMOS tube, and the source is grounded.

[0078] In some of the embodiments, NM12~NM15 respectively form two sets of current mirrors with NM12 and NM13 and NM14 and NM15, and have the same size. Based on these two sets of current mirrors, the input current signal output by the load jump isolation module can be converted from the high voltage domain to the low voltage domain.

[0079] Optionally, the DC current generating module includes a first PMOS tube and a second PMOS tube; the sources of the first PMOS tube and the second PMOS tube are connected to the high-voltage power supply pin, the gate is connected to the gate and source of the seventh PMOS tube, the drain of the first PMOS tube is connected to the source of the third PMOS tube, and the drain of the second PMOS tube is connected to the source of the fourth PMOS tube; the load jump isolation module includes a third PMOS tube and a fourth PMOS tube, the gate of the third PMOS tube and the gate of the fourth PMOS tube are commonly connected to one end of the first resistor, the drain of the third PMOS tube is connected to the drain of the thirteenth NMOS tube, and the drain of the fourth PMOS tube is connected to the drain of the fourteenth PMOS tube.

[0080] In this embodiment, PM1 and PM2 are current mirror tubes, which can provide DC working current for circuit operation based on the bias current and the high-voltage power supply output by the high-voltage power supply pin through the current mirror; PM3 and PM4 in the load jump isolation module are common source and common gate tubes, which are used to isolate the load jump in the DC working current and can improve the gain of the DC working current.

[0081] Optionally, the gate of the first NMOS tube is connected to the negative voltage input terminal, the drain is connected to the drain of the second PMOS tube, the source of the first NMOS tube and the drain of the second NMOS tube are respectively connected to the drain of the eleventh NMOS tube, and the drain of the first NMOS tube is connected to the source of the second PMOS tube; the gate of the second NMOS tube is connected to the positive voltage input terminal, and the drain of the second NMOS tube is connected to the drain of the first PMOS tube; the gate of the eleventh NMOS tube is connected to the current input terminal, and the source is grounded.

[0082] In some embodiments, the differential current generating module, that is, the main differential pair, is composed of M1, MN2 and MN11, wherein the size threshold of MN1 and MN2 is used to convert the differential input voltage inputted from the voltage input terminal into the differential input current, and the gate length L of MN9-11, M14 and M15 is consistent, and the ratio of the gate width W is: W9:W 10 :W 11 :W 14 :W 15 =1:1:A:1:1. The gate lengths L of MN1-6 are consistent, and the ratio of the gate widths W is: W1:W2:W3:W4:W5:W6=1:1:1:B:1:B. A and B are generally integers greater than 1.

[0083] Assuming that the VIN voltage, that is, the differential voltage signal input at the voltage signal input terminal is fixed, when VIP starts to rise from a voltage much smaller than VIN, FB1 is 0V and FB2 is VPPL, so the first differential pair is activated and the second differential pair is closed. At this time, the first differential pair and the main differential pair can be combined according to the transconductance formula of the MOS tube:

[0084]

[0085] in is a process-related parameter. Then the combined differential pair can be regarded as a bias current of I BIAS , the ratio of the size of the VIN end to the VIP end is:

[0086] of differential pairs.

[0087] As the VIP port voltage rises, when VIP=VIN, due to W VIN >W VIP , so the transconductance of the VIN port is larger than that of the VIP port, so the output does not change.

[0088] As VIP increases further, when the equilibrium state is reached, that is, the VIP port transconductance is equal to the VIN port transconductance, the following is satisfied:

[0089]

[0090] So we can get:

[0091]

[0092] Where V ON_VIN ,V ON_VIP represents the overdrive voltage of the two input ports, g m_VIN ,g m_VIP represents the transconductance of the two input ports. Then, the forward hysteresis voltage is:

[0093]

[0094] according to so Similarly, when VIP starts to drop from a voltage much larger than VIN, FB1 is VPPL and FB2 is 0V, so the first differential pair is turned off and the second differential pair is activated. After similar analysis, it can be concluded that:

[0095] The negative hysteresis voltage is:

[0096]

[0097] The hysteresis curve is Figure 3 As shown, Figure 3 Schematic diagram of hysteresis voltage variation in the hysteresis voltage comparator in the embodiment of the present application, based on Figure 3 , it can be seen that the total hysteresis voltage is:

[0098]

[0099] Based on this, it can be predicted that the total hysteresis voltage increases with the increase of the proportional coefficient B, decreases with the increase of the proportional coefficient A, and increases with the increase of the bias current. And it can be ensured that the hysteresis voltage comparator generates a hysteresis voltage that can meet the requirements.

[0100] Optionally, the low-voltage voltage conversion module includes a fifth PMOS tube and a sixth PMOS tube, the sources of the fifth PMOS tube and the sixth PMOS tube are respectively connected to the low-voltage power supply pin, and the gate of the fifth PMOS tube is respectively connected to the drain and the gate of the sixth PMOS tube; the drain of the sixth PMOS tube is connected to an inverter for converting the low-voltage differential current into a low-voltage differential voltage signal; the drain of the fifth PMOS tube is also connected to the drain of the twelfth NMOS tube, and the drain of the sixth PMOS tube is also connected to the drain of the fifteenth NMOS tube; the inverter includes a first inverter, a second inverter and a third inverter, the first inverter and the second inverter are connected to the first feedback pin, the second inverter and the third inverter are connected to the second feedback pin, and the third inverter is connected to the output end.

[0101] In this embodiment, PMOS transistors MP5 and MP6 form a current mirror with the same size, which is used to convert the low-voltage domain differential input current signal into a low-voltage domain differential output voltage signal. The inverter is a Schmitt inverter, which is used to prevent noise from affecting the output result.

[0102] Optionally, the first differential pair also includes a second resistor, and both ends of the second resistor are respectively connected to the drains of the fifth NMOS tube and the sixth NMOS tube; the second differential pair also includes a third resistor, and both ends of the third resistor are respectively connected to the sources of the third NMOS tube and the fourth NMOS tube; the differential current generating module also includes a fourth resistor and a fifth resistor, one end of the fourth resistor is connected to the source of the first NMOS tube, the other end of the fourth resistor is connected to the drain of the eleventh NMOS tube and the fifth resistor, and the other end of the fifth resistor is connected to the source of the second NMOS tube.

[0103] In the above embodiment, in order to keep the comparator stable and output without spikes, the proportional coefficient A>1 is generally required. If you want to get a larger hysteresis interval, you need a very large coefficient B, or even it cannot be achieved. To solve this problem, you can use Figure 4 The hysteresis voltage comparator shown in Figure 4 As shown, Figure 4FIG. 1 is a schematic diagram of the structure of another hysteresis voltage comparator in an embodiment of the present application. Figure 4 In the figure, R2 to R5 represent the second to fifth resistors respectively. The source terminals of MN1, MN2, MN3 and MN5 are connected with resistors. Generally, R2 = R3 = R4 = R5 = RS. Assuming that there is no source resistor, the transconductance of the MOS tube is g m , then after adding the source resistance, the total equivalent transconductance is:

[0104] In general, g m R S >1, so this will attenuate MN1, MN2, MN3 and MN5

[0105] Equivalent transconductance can be equivalent to increasing the proportional coefficient B. For example, 1+g m R S =10, the equivalent transconductance of MN1, MN2, MN3 and MN5 is This is equivalent to increasing the proportional coefficient B to 10B, and the hysteresis interval changes from:

[0106] becomes

[0107]

[0108] , greatly increasing the hysteresis interval.

[0109] On the other hand, an embodiment of the present application provides a motor driver chip, including: a port overvoltage detection module, the port overvoltage detection module includes a plurality of hysteresis voltage comparators of any one of the above items; and also includes a high-voltage port and a driving module, the hysteresis voltage comparator is used to detect the voltage of the high-voltage port and output a signal to the driving module for controlling the driving module.

[0110] like Figure 5 As shown, Figure 5 FIG. 1 is a schematic diagram of the structure of a motor driver chip according to another embodiment of the present application. Figure 5 In the embodiment, the port voltage detection module includes a hysteresis voltage comparator for detecting the SET high-voltage weak-drive port signal, and a hysteresis voltage comparator for detecting the FB high-voltage weak-drive port signal. When it is detected that the port voltage is too high, a high level is output to the drive module. The drive module will be shut down or braked based on the high level to protect the motor drive chip or complete specific functions.

[0111] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0112] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0113] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0115] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0116] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: RandomAccess Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0117] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0118] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A hysteresis voltage comparator, characterized in that: include: Bias module, high voltage input module, low voltage output module and high voltage hysteresis module; The bias module is connected to the high-voltage input module and the high-voltage hysteresis module respectively, and is used to provide a bias voltage for the high-voltage input module and the high-voltage hysteresis module; The high voltage input module is connected to the high voltage power supply pin and the low voltage output module respectively, and is used to receive the high voltage power supply input by the high voltage power supply pin, and output a low voltage differential current to the low voltage output module; The low voltage output module is used to convert the low voltage differential current into a low voltage differential voltage signal and output it; The high-voltage hysteresis module is connected to the high-voltage input module and is used to provide a hysteresis voltage to the high-voltage input module.

2. The hysteresis voltage comparator according to claim 1, wherein: The high voltage input module includes: a direct current generating module, a differential current generating module, a load jump isolation circuit and a low voltage current conversion circuit; One end of the DC current generating module is connected to the high voltage power supply pin for generating a DC current; One end of the differential current generating module is connected to the voltage signal input end, and is used to generate a differential current; The load jump isolation module is connected to the DC current generating module and is used to isolate load jump; The low-voltage current conversion module is connected to the low-voltage voltage conversion module and is used to convert the differential input current signal generated by the differential current generation module from the high-voltage domain to the low-voltage domain.

3. The hysteresis voltage comparator according to claim 2, characterized in that: The high voltage hysteresis module includes a first differential pair and a second differential pair; The first differential pair includes a fifth NMOS transistor, a sixth NMOS transistor, a seventh NMOS transistor and a ninth NMOS transistor; The gate of the fifth NMOS tube is connected to the positive voltage input terminal, the drain is connected to the differential current generating module, and the source of the fifth NMOS tube and the source of the sixth NMOS tube are respectively connected to the drain of the seventh NMOS tube; The gate of the sixth NMOS tube is connected to the negative voltage input terminal, and the drain of the sixth NMOS tube is connected to the differential current generating module; The gate of the seventh NMOS tube is connected to the first feedback pin, and the source is connected to the drain of the ninth NMOS tube; The gate of the ninth NMOS tube is connected to the current input terminal, and the source is grounded; The second differential pair includes a third NMOS transistor, a fourth NMOS transistor, an eighth NMOS transistor and a tenth NMOS transistor; The gate of the third NMOS tube is connected to the negative voltage input terminal, the drain is connected to the differential current generating module, and the source of the third NMOS tube and the source of the fourth NMOS tube are respectively connected to the drain of the eighth NMOS tube; The gate of the fourth NMOS tube is connected to the voltage positive input terminal, and the drain of the fourth NMOS tube is connected to the differential current generating module; The gate of the eighth NMOS tube is connected to the second feedback pin, and the source is connected to the drain of the tenth NMOS tube; The gate of the tenth NMOS tube is connected to the current input terminal, and the source is grounded.

4. The hysteresis voltage comparator according to claim 2, wherein: The bias module includes a seventh PMOS tube, a first resistor, a sixteenth NMOS tube and a seventeenth NMOS tube; The drain and gate of the seventh PMOS tube are connected to the DC current generating module to generate a first bias voltage, and the source is connected to the high voltage input terminal; One end of the first resistor is connected to the drain of the fifth PMOS tube, and the other end is connected to the load jump isolation circuit, for generating a second bias voltage; The drain of the sixteenth NMOS tube is connected to the current input end, the source of the sixteenth NMOS tube is grounded, the drain of the seventeenth NMOS tube is connected to the first resistor, the source of the seventeenth NMOS tube is grounded, the gate of the seventeenth NMOS tube and the gate of the sixteenth NMOS tube are commonly connected to the current input end, and the sixteenth NMOS tube and the seventeenth NMOS tube are used to provide a third bias voltage for the high-voltage hysteresis module and the differential current generating module.

5. The hysteresis voltage comparator according to claim 2, wherein: The low-voltage current conversion circuit includes a twelfth NMOS tube, a thirteenth NMOS tube, a fourteenth NMOS tube and a fifteenth NMOS tube; The drain of the twelfth NMOS tube is connected to the low voltage conversion module, the gate is connected to the gate of the thirteenth NMOS tube, and the source is grounded; The drain of the thirteenth NMOS tube is connected to the load jump isolation module, the gate is connected to the drain of the thirteenth NMOS tube, and the source is grounded; The drain of the fourteenth NMOS tube is connected to the load jump isolation module, the gate is connected to the drain of the fourteenth NMOS tube, and the source is grounded; The source of the fifteenth NMOS tube is connected to the low voltage conversion module, the gate is connected to the gate of the fourteenth NMOS tube, and the source is grounded.

6. The hysteresis voltage comparator according to claim 5, characterized in that: The DC current generating module comprises a first PMOS tube and a second PMOS tube; The source of the first PMOS tube and the second PMOS tube is connected to the high voltage power supply pin, the gate is connected to the gate and source of the seventh PMOS tube, the drain of the first PMOS tube is connected to the source of the third PMOS tube, and the drain of the second PMOS tube is connected to the source of the fourth PMOS tube; The load jump isolation module includes a third PMOS tube and a fourth PMOS tube, the gate of the third PMOS tube and the gate of the fourth PMOS tube are commonly connected to one end of the first resistor, the drain of the third PMOS tube is connected to the drain of the thirteenth NMOS tube, and the drain of the fourth PMOS tube is connected to the drain of the fourteenth PMOS tube.

7. The hysteresis voltage comparator according to claim 6, wherein: The differential current generating module includes a first NMOS tube, a second NMOS tube and an eleventh NMOS tube; The gate of the first NMOS tube is connected to the negative voltage input terminal, the drain is connected to the drain of the second PMOS tube, the source of the first NMOS tube and the drain of the second NMOS tube are respectively connected to the drain of the eleventh NMOS tube, and the drain of the first NMOS tube is connected to the source of the second PMOS tube; The gate of the second NMOS tube is connected to the voltage positive input terminal, and the drain of the second NMOS tube is connected to the drain of the first PMOS tube; The gate of the eleventh NMOS tube is connected to the current input terminal, and the source is grounded.

8. The hysteresis voltage comparator according to claim 5, characterized in that: The low voltage output module includes a low voltage voltage conversion module and an inverter; The low voltage voltage conversion module includes a fifth PMOS tube and a sixth PMOS tube, the sources of the fifth PMOS tube and the sixth PMOS tube are respectively connected to the low voltage power supply pin, and the gate of the fifth PMOS tube is respectively connected to the drain and the gate of the sixth PMOS tube; the drain of the sixth PMOS tube is connected to the inverter, and is used to convert the low voltage differential current into a low voltage differential voltage signal; The drain of the fifth PMOS tube is also connected to the drain of the twelfth NMOS tube, and the drain of the sixth PMOS tube is also connected to the drain of the fifteenth NMOS tube; The inverter includes a first inverter, a second inverter and a third inverter, the first inverter and the second inverter are connected to the first feedback pin, the second inverter and the third inverter are connected to the second feedback pin, and the third inverter is connected to the output end.

9. The hysteresis voltage comparator according to claim 3, characterized in that: The first differential pair further includes a second resistor, and two ends of the second resistor are respectively connected to the drains of the fifth NMOS transistor and the sixth NMOS transistor; The second differential pair further includes a third resistor, and two ends of the third resistor are respectively connected to the source electrodes of the third NMOS transistor and the fourth NMOS transistor; The differential current generating module also includes a fourth resistor and a fifth resistor, one end of the fourth resistor is connected to the source of the first NMOS tube, the other end of the fourth resistor is connected to the drain of the eleventh NMOS tube and the fifth resistor, and the other end of the fifth resistor is connected to the source of the second NMOS tube.

10. A motor drive chip, comprising a hysteresis voltage comparator as described in any one of claims 1 to 9, and also comprising a high-voltage port and a drive module, wherein the hysteresis voltage comparator is used to detect the voltage of the high-voltage port and output a signal to the drive module for controlling the drive module.