CN114123779A - Load driving circuit, MCU and self-adaptive compensation circuit - Google Patents

Load driving circuit, MCU and self-adaptive compensation circuit Download PDF

Info

Publication number
CN114123779A
CN114123779A CN202111411318.5A CN202111411318A CN114123779A CN 114123779 A CN114123779 A CN 114123779A CN 202111411318 A CN202111411318 A CN 202111411318A CN 114123779 A CN114123779 A CN 114123779A
Authority
CN
China
Prior art keywords
signal
compensation
load
circuit
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111411318.5A
Other languages
Chinese (zh)
Other versions
CN114123779B (en
Inventor
李桂萍
何雪峰
王雄伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apex Microelectronics Co Ltd
Zhuhai Geehy Semiconductor Co Ltd
Original Assignee
Apex Microelectronics Co Ltd
Zhuhai Geehy Semiconductor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apex Microelectronics Co Ltd, Zhuhai Geehy Semiconductor Co Ltd filed Critical Apex Microelectronics Co Ltd
Priority to CN202111411318.5A priority Critical patent/CN114123779B/en
Publication of CN114123779A publication Critical patent/CN114123779A/en
Application granted granted Critical
Publication of CN114123779B publication Critical patent/CN114123779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05FSYSTEMS FOR REGULATING ELECTRIC OR MAGNETIC VARIABLES
    • G05F1/00Automatic systems in which deviations of an electric quantity from one or more predetermined values are detected at the output of the system and fed back to a device within the system to restore the detected quantity to its predetermined value or values, i.e. retroactive systems
    • G05F1/10Regulating voltage or current
    • G05F1/46Regulating voltage or current wherein the variable actually regulated by the final control device is dc
    • G05F1/56Regulating voltage or current wherein the variable actually regulated by the final control device is dc using semiconductor devices in series with the load as final control devices
    • G05F1/561Voltage to current converters

Abstract

The application provides a load drive circuit, MCU and self-adaptation compensating circuit, among this compensating circuit, detection module can detect the power supply branch road of target circuit, thereby comparison module can carry out signal comparison according to the first signal that detects and judges whether the operating signal of target circuit reaches the default that the chip corresponds when normally working, and send corresponding control signal to compensation module according to the comparison result, thereby, compensation module can confirm corresponding compensation strategy according to control signal. The compensation circuit can adaptively compensate the target circuit, so that the chip can normally work under different conditions.

Description

Load driving circuit, MCU and self-adaptive compensation circuit
Technical Field
The application relates to the technical field of circuits, in particular to a power supply signal compensation circuit and a consumable chip.
Background
For some chips, such as micro control unit (mcu), digital Signal processing unit (dsp), micro processor unit (mpu), system on chip (soc) for consumable parts, or battery Management system (bms), the operating voltage or operating current of the chip in the actual application process may also vary due to differences in chip processes or combinations of components.
A chip is usually provided with a specific driving current range or a specific driving voltage range, and when a current in a circuit in which the chip operates does not reach the specific current range corresponding to the chip, or a voltage in the circuit in which the chip operates does not reach the specific voltage range corresponding to the chip, the chip may be unable to operate.
In addition, for some circuits, if the working current is too high, the current may be burnt out.
Disclosure of Invention
The application provides a power supply signal compensation circuit and consumptive material chip for solve the problem that prior art exists.
In a first aspect, the present application provides a supply signal compensation circuit, connected to a supply branch of a target circuit, for performing detection and adaptive compensation on a supply signal of the target circuit, including: the device comprises a detection module, a comparison module and a compensation module;
the detection module is connected to a power supply branch driving the target circuit to work and the comparison module, and is used for detecting a first signal of the power supply branch of the target circuit and sending the first signal to the comparison module;
the comparison module is used for receiving the first signal and acquiring a second signal, wherein the second signal is used for assisting in determining whether the first signal of the power supply branch reaches a preset value; and comparing the first signal with the second signal to obtain a comparison result, and sending a corresponding control signal to the compensation module according to the comparison result,
the compensation module is used for determining a compensation strategy of the target circuit according to the control signal.
In some embodiments, the compensation strategy comprises: and when the first signal is determined not to reach a preset value, compensating the target circuit so as to enable the working signal input to the target circuit to reach the preset value.
In some embodiments, the compensation strategy comprises: and when the first signal is determined not to reach the preset value, compensating the target circuit so as to enable the working signal flowing out of the target circuit to reach the preset value.
In some embodiments, the detection module is connected to a power supply VCC to which the target circuit is connected.
In some embodiments, the compensation module comprises a switching tube; when the switching tube is in an on state, the compensation module performs current compensation on the target circuit.
In some embodiments, the compensation module comprises a switching tube; when the switch tube is in an on state, the compensation module is used for performing voltage compensation on the target circuit.
In some embodiments, the first signal and the second signal are both voltage signals, and the comparison module includes a voltage comparator.
In some embodiments, the first signal and the second signal are both current signals, and the comparison module comprises a current comparator.
In some embodiments, the detection module includes a first resistor and a second resistor having a resistance value greater than a resistance value of the first resistor;
one end of the first resistor is connected with a power supply, and the other end of the first resistor is connected with the target circuit;
one end of the second resistor is connected to a path between the first resistor and the power supply, and the other end of the second resistor is grounded;
the other end of the second resistor is also connected with a first input end of a voltage comparator, and the first signal comprises a first voltage signal corresponding to the second resistor;
a second input end of the voltage comparator is connected with the other end of the first resistor, and the second signal comprises a second voltage signal corresponding to the first resistor;
the voltage comparator is used for comparing the first voltage signal with the second voltage signal to obtain a comparison result, and outputting a control signal for controlling the switching tube to be switched on or switched off to the control end of the switching tube according to the comparison result;
the input end of the switch tube is connected with the other end of the first resistor, the output end of the switch tube is grounded, when the switch tube enters a conducting state, the other end of the first resistor is grounded, and the switch tube carries out current compensation on the target circuit, so that the compensated working current of the target circuit reaches a preset current value.
In some embodiments, the compensation module further comprises a third resistor; the detection module comprises a first resistor and a second resistor, and the resistance value of the second resistor is greater than that of the first resistor;
one end of the first resistor is connected with a power supply, and the other end of the first resistor is connected with the target circuit;
one end of the second resistor is connected to a path between the first resistor and the power supply, and the other end of the second resistor is grounded;
the other end of the second resistor is also connected with a first input end of a voltage comparator, and the first signal comprises a first voltage signal corresponding to the second resistor;
a second input end of the voltage comparator is connected with the other end of the first resistor, and the second signal comprises a second voltage signal corresponding to the first resistor;
the voltage comparator is used for comparing the first voltage signal with the second voltage signal to obtain a comparison result, and outputting a control signal for controlling the switching tube to be switched on or switched off to the control end of the switching tube according to the comparison result;
the input end of the switching tube is connected with the other end of the first resistor through the third resistor, or the output end of the switching tube is grounded through the third resistor; when the switching tube enters a conducting state, the other end of the first resistor is grounded through the third resistor, and the switching tube and the third resistor perform voltage compensation on the target circuit, so that the compensated working voltage of the target circuit reaches a preset voltage value.
In some embodiments, the detection module comprises a sixth resistance;
the target circuit is connected with a power supply, one end of the sixth resistor is connected to a path between the power supply and the target circuit, and the other end of the sixth resistor is grounded;
a first input end of the voltage comparator is connected with one end of the sixth resistor, the first signal comprises a third voltage signal corresponding to the sixth resistor, a second input end of the voltage comparator is connected with a reference voltage source, and the second signal comprises a reference voltage signal provided by the reference voltage source;
the voltage comparator is used for comparing the third voltage signal with the reference voltage signal to obtain a comparison result, and outputting a control signal for controlling the switching tube to be switched on or switched off to the control end of the switching tube according to the comparison result;
the input end of the switching tube is connected to a path between the power supply and the target circuit, and the output end of the switching tube is grounded; when the switch tube enters a conducting state, the power supply is grounded through the switch tube; and the switching tube carries out current compensation on the target circuit so that the compensated working current of the target circuit reaches a preset current value.
In some embodiments, the detection module comprises a sixth resistance; the compensation module further comprises a seventh resistor;
the target circuit is connected with a power supply, one end of the sixth resistor is connected to a path between the power supply and the target circuit, and the other end of the sixth resistor is grounded;
a first input end of the voltage comparator is connected with one end of the sixth resistor, the first signal comprises a third voltage signal corresponding to the sixth resistor, a second input end of the voltage comparator is connected with a reference voltage source, and the second signal comprises a reference voltage signal provided by the reference voltage source;
the voltage comparator is used for comparing the third voltage signal with the reference voltage signal to obtain a comparison result, and outputting a control signal for controlling the switching tube to be switched on or switched off to the control end of the switching tube according to the comparison result;
the input end of the switching tube is connected to a path between the power supply and the target circuit through the seventh resistor, or the output end of the switching tube is grounded through the seventh resistor; when the switch tube enters a conducting state, the power supply is grounded through the switch tube and the seventh resistor; the switching tube and the seventh resistor compensate the voltage of the target circuit, so that the compensated working voltage of the target circuit reaches a preset voltage value.
In some embodiments, the detection module comprises a first resistor and a second resistor, the resistance value of the second resistor is greater than the resistance value of the first resistor, and the comparison module further comprises an eighth resistor;
one end of the first resistor is connected with a power supply, and the other end of the first resistor is connected with the target circuit;
one end of the second resistor is connected to a path between the first resistor and the power supply, and the other end of the second resistor is grounded;
the other end of the second resistor is also connected with a first input end of a current comparator, and the first signal comprises a first current signal corresponding to the second resistor;
a second input end of the current comparator is connected with the other end of the first resistor through the eighth resistor, and the second signal comprises a second current signal corresponding to the first resistor; or, the second input terminal of the current comparator is connected to a reference voltage source via the eighth resistor, and the second signal includes a reference current signal provided by the reference voltage source;
the current comparator is used for comparing the first current signal with the second current signal or the reference current signal to obtain a comparison result, and outputting a control signal for controlling the switching tube to be switched on or switched off to the control end of the switching tube according to the comparison result;
the input end of the switch tube is connected with the other end of the first resistor, the output end of the switch tube is grounded, when the switch tube enters a conducting state, the other end of the first resistor is grounded, and the switch tube carries out current compensation on the target circuit, so that the compensated working current of the target circuit reaches a preset current value.
In some embodiments, the compensation module further comprises a third resistor; the detection module comprises a first resistor and a second resistor, the resistance value of the second resistor is greater than that of the first resistor, and the comparison module further comprises an eighth resistor;
one end of the first resistor is connected with a power supply, and the other end of the first resistor is connected with the target circuit;
one end of the second resistor is connected to a path between the first resistor and the power supply, and the other end of the second resistor is grounded;
the other end of the second resistor is also connected with a first input end of a current comparator, and the first signal comprises a first current signal corresponding to the second resistor;
a second input end of the current comparator is connected with the other end of the first resistor through the eighth resistor, and the second signal comprises a second current signal corresponding to the first resistor; or, the second input terminal of the current comparator is connected to a reference voltage source via the eighth resistor, and the second signal includes a reference current signal provided by the reference voltage source;
the current comparator is used for comparing the first current signal with the second current signal or the reference current signal to obtain a comparison result, and outputting a control signal for controlling the switching tube to be switched on or switched off to the control end of the switching tube according to the comparison result;
the input end of the switching tube is connected with the other end of the first resistor through the third resistor, or the output end of the switching tube is grounded through the third resistor;
when the switching tube enters a conducting state, the other end of the first resistor is grounded through the third resistor, and the switching tube and the third resistor perform voltage compensation on the target circuit, so that the compensated working voltage of the target circuit reaches a preset voltage value.
In some embodiments, the detection module comprises a sixth resistor, and the comparison module further comprises an eighth resistor;
the target circuit is connected with a power supply, one end of the sixth resistor is connected to a path between the power supply and the target circuit, and the other end of the sixth resistor is grounded;
a first input end of the current comparator is connected with one end of the sixth resistor, the first signal comprises a third current signal corresponding to the sixth resistor, a second input end of the current comparator is connected with a reference voltage source through the eighth resistor, and the second signal comprises a reference current signal provided by the reference voltage source;
the current comparator is used for comparing the third current signal with the reference current signal to obtain a comparison result, and outputting a control signal for controlling the switching tube to be switched on or switched off to the control end of the switching tube according to the comparison result;
the input end of the switch tube is connected to a path between the power supply and the target circuit, the output end of the switch tube is grounded, and when the switch tube enters a conducting state, the power supply is grounded through the switch tube; and the switching tube carries out current compensation on the target circuit so that the compensated working current of the target circuit reaches a preset current value.
In some embodiments, the detection module comprises a sixth resistor, and the comparison module further comprises an eighth resistor; the compensation module further comprises a seventh resistor;
the target circuit is connected with a power supply, one end of the sixth resistor is connected to a path between the power supply and the target circuit, and the other end of the sixth resistor is grounded;
a first input end of the current comparator is connected with one end of the sixth resistor, the first signal comprises a third current signal corresponding to the sixth resistor, a second input end of the current comparator is connected with a reference voltage source through the eighth resistor, and the second signal comprises a reference current signal provided by the reference voltage source;
the current comparator is used for comparing the third current signal with the reference current signal to obtain a comparison result, and outputting a control signal for controlling the switching tube to be switched on or switched off to the control end of the switching tube according to the comparison result;
the input end of the switching tube is connected to a path between the power supply and the target circuit through the seventh resistor, or the output end of the switching tube is grounded through the seventh resistor;
when the switch tube enters a conducting state, the power supply is grounded through the switch tube and the seventh resistor; the switching tube and the seventh resistor compensate the voltage of the target circuit, so that the compensated working voltage of the target circuit reaches a preset voltage value.
In a second aspect, the present application provides a consumable chip including the above power supply signal compensation circuit.
The application provides a power supply signal compensation circuit (hereinafter referred to as compensation circuit) and consumptive material chip, among this compensation circuit, detection module can detect the power supply branch road of target circuit, thereby comparison module can carry out signal comparison according to the first signal that detects and judge whether the operating signal of target circuit reaches the default that the chip corresponds when normally working, and send corresponding control signal to compensation module according to the comparison result, thereby, compensation module can confirm corresponding compensation strategy according to control signal. When the working signal of the target circuit reaches a preset value, the chip can normally work, and compensation is not needed at the moment; and when the working signal of the target circuit does not reach the preset value, the chip cannot work normally, and at the moment, the target circuit needs to be compensated, so that the working signal of the target circuit reaches the preset value, and the chip can work normally. The compensation circuit can adaptively compensate the target circuit, so that the chip can normally work under different conditions.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of a compensation circuit according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a specific circuit of a compensation circuit according to a third embodiment of the present application;
fig. 3 is a schematic diagram of a specific circuit of a compensation circuit according to a fourth embodiment of the present disclosure;
fig. 4 is a schematic diagram of a specific circuit of a compensation circuit according to a fifth embodiment of the present disclosure;
fig. 5 is a schematic diagram of a specific circuit of a compensation circuit according to a sixth embodiment of the present application;
fig. 6 is a schematic diagram of a specific circuit of a compensation circuit according to a seventh embodiment of the present disclosure;
fig. 7 is a schematic diagram of a specific circuit of a compensation circuit according to an eighth embodiment of the present application;
fig. 8 is a schematic diagram of a specific circuit of a compensation circuit according to a tenth embodiment of the present application;
fig. 9 is a schematic diagram of a specific circuit of a compensation circuit according to an eleventh embodiment of the present application;
fig. 10 is a schematic diagram of a specific circuit of a compensation circuit according to a twelfth embodiment of the present application;
fig. 11 is a schematic diagram of a specific circuit of a compensation circuit according to a thirteenth embodiment of the present application;
fig. 12 is a schematic diagram of a specific circuit of a compensation circuit according to a fourteenth embodiment of the present application;
fig. 13 is a schematic diagram of a specific circuit of a compensation circuit according to a fifteenth embodiment of the present application;
FIG. 14 is a schematic diagram of an integrated circuit according to a sixteenth embodiment of the present application;
fig. 15 is a schematic diagram of a compensation circuit for performing overcurrent protection according to an eighteenth embodiment of the present application;
fig. 16 is a schematic diagram of a compensation circuit for performing overcurrent protection according to an embodiment twenty of the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the embodiments of the present application, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
For some chips, in the actual application process, the operating voltage or the operating current may differ due to differences in chip processes or component combinations. A chip is usually configured with a specific driving current/voltage range, which may cause the chip to fail when the current/voltage in the circuit does not reach the specific current/voltage range corresponding to the chip.
For example, for a certain chip, the specific working current is set to be 10mA, and when the current of the circuit where the chip is located is equal to or slightly greater than 10mA, the chip can work normally; when the current of the circuit is less than 10mA, the chip can not work normally.
The present application provides a compensation circuit and an integrated circuit, which aim to solve the above technical problems in the prior art.
The main conception of the scheme of the application is as follows: the application provides a compensation circuit, which can detect a target circuit where a chip is located, and judge whether the current/voltage of the target circuit reaches a corresponding preset current/voltage value when the chip normally works according to a working signal obtained by detection, wherein when the current/voltage of the target circuit reaches the preset current/voltage value, the chip can normally work, and compensation is not needed at the moment; and when the current/voltage of the target circuit does not reach the preset current/voltage value, the chip cannot normally work, and the compensation circuit compensates the target circuit at the moment so that the current/voltage of the target circuit reaches the preset current/voltage value, and the chip can normally work. According to the scheme, the target circuit can be compensated in a self-adaptive manner, so that the chip can work normally under different conditions.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example one
The embodiment of the application provides a power supply signal compensation circuit, which is connected to a power supply branch of a target circuit and used for detecting and adaptively compensating a power supply signal of the target circuit.
Fig. 1 is a schematic diagram of a compensation circuit according to an embodiment of the present application, and as shown in fig. 1, the compensation circuit includes: a detection module 10, a comparison module 20 and a compensation module 30;
the detection module 10 is connected to a power supply branch driving a target circuit to operate and the comparison module 20, and is configured to detect a first signal (i.e., a working signal) of the power supply branch of the target circuit and send the working signal to the comparison module 20;
the operating signal may specifically be an operating voltage signal or an operating current signal, and the target circuit may be various chips or integrated circuits, such as any one of a micro control unit MCU, a digital signal processing unit DSP, a microprocessor unit MPU, a system on chip SOC for consumable, or a power management system BMS. The target circuit may be a circuit including a chip, for example, a circuit including any one of a micro control unit MCU, a digital signal processing unit DSP, a micro processing unit MPU, a system on chip SOC for consumable parts, or a power management system BMS.
The detection module 10 is connected to the target circuit to detect and obtain an operating signal of the target circuit during operation, and send the operating signal to the comparison module 20 for comparison processing to determine whether compensation is needed.
The comparison module 20 is configured to obtain a working signal and a second signal (i.e., an auxiliary signal), compare the working signal with the auxiliary signal to obtain a comparison result, and send a corresponding control signal to the compensation module 30 according to the comparison result, where the auxiliary signal is used to assist in determining whether the working signal of the target circuit reaches a preset value;
the comparison result obtained by the comparison module 20 according to the working signal and the auxiliary signal may be used to represent a magnitude relationship between the working signal and the auxiliary signal, where the magnitude relationship may be used to represent whether the working signal of the target circuit reaches a preset value, so as to determine whether compensation is required, and after the comparison result is obtained by the comparison module 20, the comparison module sends a corresponding control signal to the compensation module 30 according to the comparison result, so as to determine a current compensation strategy.
The compensation module 30 is used for determining a current compensation strategy of the target circuit according to the control signal. Specifically, when the control signal represents that compensation is required, the compensation module 30 executes corresponding compensation processing to make the compensated working signal reach a preset value; otherwise, the compensation module 30 does not perform the compensation process.
It can be understood that the compensation module may compensate the target circuit by using a working current or a working voltage, and the specific compensation mode may be selected according to actual situations, which is not limited in this application.
In the compensation circuit provided in this embodiment, the detection module may detect the target circuit, and the comparison module may perform signal comparison according to the detected working signal to determine whether the working signal of the target circuit reaches a preset value corresponding to the normal operation of the chip, and send a corresponding control signal to the compensation module according to the comparison result, so that the compensation module may determine a corresponding compensation strategy according to the control signal. When the working signal of the target circuit reaches a preset value, the chip can normally work, and compensation is not needed at the moment; and when the working signal of the target circuit does not reach the preset value, the chip cannot work normally, and at the moment, the target circuit needs to be compensated, so that the working signal of the target circuit reaches the preset value, and the chip can work normally. The compensation circuit of the first embodiment can adaptively compensate the target circuit, thereby ensuring that the chip can normally work under different conditions.
Example two
In the second embodiment of the present application, the compensation circuit may compensate the target circuit by means of voltage detection.
The detection module may specifically detect a working voltage of the target circuit, that is, a working signal detected by the detection module includes a working voltage signal, and an auxiliary signal adopted by the comparison module when performing comparison includes an auxiliary voltage signal; the control signal sent by the comparison module to the compensation module is used for representing whether the working voltage of the target circuit reaches a preset voltage value or not; the compensation module is specifically used for compensating the target circuit when the working voltage of the control signal representation target circuit does not reach the preset voltage value.
Specifically, the comparison module 20 includes a Voltage Comparator (VC), and the compensation module 30 includes a switch tube; the voltage comparator can compare the working voltage signal with the auxiliary voltage signal in magnitude to obtain a comparison result. The switching tube may be a Metal-Oxide-Semiconductor Field-Effect Transistor (MOS Transistor) or a triode.
The first input end of the voltage comparator is used for obtaining a working voltage signal, the second input end of the voltage comparator is used for obtaining an auxiliary voltage signal, and the output end of the voltage comparator is connected with the control end of the switch tube, so that after the voltage comparator compares the working voltage signal with the auxiliary voltage signal in size to obtain a comparison result, the voltage comparator outputs a control signal corresponding to the comparison result to the control end of the switch tube through the output end.
Optionally, when the switching tube is an MOS tube, the control end of the switching tube is specifically corresponding to a gate of the MOS tube; when the switch tube is a triode, the control end of the switch tube is specifically corresponding to the base electrode of the triode.
The specific principle of the voltage comparator outputting the control signal to the switching tube is explained by taking the switching tube as an MOS tube as an example.
The switch tube body can adopt an N-type MOS tube; when the working voltage signal is smaller than the auxiliary voltage signal, the voltage comparator outputs a first control signal to the switching tube, and the first control signal is used for controlling the switching tube to enter a conducting state; when the working voltage signal is greater than or equal to the auxiliary voltage signal, the voltage comparator outputs a second control signal to the switching tube, and the second control signal is used for controlling the switching tube to enter a closed state; based on the operating characteristics of the N-type MOS transistor, the first control signal may specifically be a high level signal, and the second control signal may specifically be a low level signal.
In addition, the switch tube can also be a P-type MOS tube; when the working voltage signal is smaller than the auxiliary voltage signal, the voltage comparator outputs a third control signal to the switching tube, and the third control signal is used for controlling the switching tube to enter a conducting state; when the working voltage signal is greater than or equal to the auxiliary voltage signal, the voltage comparator outputs a fourth control signal to the switching tube, and the fourth control signal is used for controlling the switching tube to enter a closed state; based on the operating characteristics of the P-type MOS transistor, the third control signal may be a low level signal, and the fourth control signal may be a high level signal.
When the control signal output by the voltage comparator is to control the switching tube to be conducted (namely, the first control signal or the third control signal), the switching tube enters a conducting state, and the switching tube compensates the target circuit.
In the second embodiment, the comparison module can compare the working voltage signal and the auxiliary voltage signal of the target circuit by the voltage comparator to obtain a comparison result, and send a corresponding control signal to the compensation module according to the comparison result to control whether the switch tube in the compensation module compensates, so that the target circuit can be compensated adaptively, and the target circuit can be guaranteed to work normally under different conditions.
EXAMPLE III
Based on the second embodiment, in the third embodiment of the present application, a specific configuration of the compensation circuit is explained when the compensation circuit compensates the target circuit by means of voltage detection.
Fig. 2 is a schematic diagram of a specific circuit of a compensation circuit provided in the third embodiment of the present application, and as shown in fig. 2, the compensation circuit may be a VCC adaptive compensation circuit, and specifically adopts the operating principle of voltage detection + current compensation.
Referring to fig. 2, the detection module 10 includes a first resistor R1 and a second resistor R2, and the first resistor R1 is used to prevent the current input to the target circuit from being too large to damage the target circuit, thereby protecting the target circuit. Based on the principle of parallel shunt, the second resistor R2 is used for shunt to detect the current input to the target circuit.
The resistance value of the second resistor R2 is greater than that of the first resistor R1; r2 can be set to be far larger than R1, and the current divided by the second resistor R2 is far smaller than that of the first resistor R1, so that the working current needing to be compensated is detected through the smaller current, the influence of the divided current on the working current is smaller, and the compensation precision can be improved.
Referring to fig. 2, one end of a first resistor R1 is connected to a power supply VCC, and the other end of the first resistor R1 is connected to a target circuit; one end of the second resistor R2 is connected to a path between the first resistor R1 and the power supply VCC, and the other end of the second resistor R2 is grounded; the other end of the second resistor R2 is further connected to a first input terminal (-pole input terminal or negative pin) of a voltage comparator VC, the working voltage signal Va includes a first voltage signal V1 corresponding to the second resistor R2, and the comparator is configured to compare the first voltage signal V1 with an auxiliary voltage signal Vb to obtain a comparison result; the input end of the switch tube is connected with the other end of the first resistor R1, and the output end of the switch tube is grounded.
When the switching tube is an MOS tube, the input end of the switching tube is specifically corresponding to the source electrode of the MOS tube, and the output end of the switching tube is specifically corresponding to the drain electrode of the MOS tube; when the switching tube is a triode, the base is connected with the output of the comparator to receive the comparison result, specifically, when the switching tube is an NPN triode, the input end of the switching tube specifically corresponds to the collector of the triode, and the output end of the switching tube specifically corresponds to the emitter of the triode, and when the switching tube is a PNP triode, the opposite is true.
For the circuit structure shown in fig. 2, when the switching tube enters the conducting state, the other end of the first resistor R1 is grounded, and the switching tube performs current compensation on the target circuit, so that the compensated operating current of the target circuit reaches the preset current value.
Alternatively, for the structure of fig. 2, a second input terminal (+ input terminal or referred to as positive pin) of the voltage comparator may be connected to the other terminal of the first resistor R1, and at this time, the auxiliary voltage signal includes a second voltage signal (i.e., VCC1 in fig. 2) corresponding to the first resistor R1.
To illustrate the example that the preset current value corresponding to the normal operation of the target circuit is 10mA, assuming that the current I1 consumed by VCC in fig. 2 is 10mA, R1 is 10 Ω, R2 is 10K Ω, and I2 is 10uA, the first voltage signal V1 corresponding to R2 is Va-VCC-10 uA and 10K Ω is VCC-100 mV.
If the current I3 consumed by the target circuit is greater than 10mA, the actual operating voltage VCC1 of the target circuit is greater than VCC-100mV, that is, the first voltage signal is greater than the actual operating voltage of the target circuit, that is, the operating voltage signal is greater than the auxiliary voltage signal, and therefore, the control signal output by the voltage comparator to the switching tube is used to control the switching tube to enter the off state (that is, the second control signal or the fourth control signal), that is, the switching tube does not generate the pull-down current I4.
In addition, if the current I3 consumed by the target circuit is less than 10mA, the actual operating voltage VCC1 of the target circuit is greater than VCC-100mV, that is, the first voltage signal is smaller than the actual operating voltage of the target circuit, that is, the operating voltage signal is smaller than the auxiliary voltage signal, and therefore, the control signal output by the voltage comparator to the switching tube is used to control the switching tube to enter a conducting state (that is, the first control signal or the third control signal), so that the other end of the first resistor R1 is grounded, thereby generating the pull-down current I4, I1 is I3+ I4, that is, it is equivalent to adding an additional pull-down current I4 to ensure that the current consumed by VCC can be compensated to 10mA, so that the target circuit can normally operate.
Optionally, the second input terminal of the comparator may also be connected to a reference voltage source, the auxiliary voltage signal includes a reference voltage signal provided by the reference voltage source, the reference voltage signal may be, for example, Vref equal to 100mV, and thus, the comparator may also compare Va with Vref to obtain a corresponding comparison result. For the specific process of comparison, reference may be made to the foregoing contents, which are not described herein again.
It can be understood that different chips correspond to different specific currents, specific values of the physical parameters listed in this embodiment are merely exemplary and do not limit the scheme of the present application, and the specific values of the physical parameters may be distinguished according to different chip models, and the setting of parameters such as resistance values in corresponding circuits may be adaptively adjusted.
In this embodiment, based on the circuit structure shown in fig. 2, the compensation circuit can adaptively perform current compensation on the target circuit, thereby ensuring that the target circuit can normally operate under different conditions. In addition, the circuit is simple in structural design and small in actual measurement delay, so that compensation response is more timely.
It can be understood that the circuit structure shown in fig. 2 can be applied to a specific scenario where the input current input to the target circuit needs to satisfy a preset current value.
Example four
Based on the third embodiment, in the fourth embodiment of the present application, the compensation circuit may also adopt the operating principle of voltage detection + voltage compensation.
Fig. 3 is a schematic diagram of a specific circuit of a compensation circuit according to a fourth embodiment of the present disclosure, and as shown in fig. 3, the difference between fig. 3 and fig. 2 is that the compensation module 30 further includes a third resistor R3.
The input end of the switching tube is connected with the other end of the first resistor through a third resistor, or the output end of the switching tube is grounded through the third resistor; when the switching tube enters a conducting state, the other end of the first resistor is grounded through the third resistor, so that the switching tube and the third resistor compensate the voltage of the target circuit, the compensated working voltage of the target circuit reaches a preset voltage value, and the target circuit can normally work.
EXAMPLE five
Based on the second embodiment, in the fifth embodiment of the present application, another compensation circuit is provided, which may be a GND (ground) adaptive compensation circuit, and specifically adopts the operating principle of voltage detection + current compensation.
Fig. 4 is a schematic diagram of a specific circuit of a compensation circuit according to a fifth embodiment of the present application, and as shown in fig. 4, the detection module 10 includes a fourth resistor R4; the target circuit is connected with a power supply VCC, one end of a fourth resistor R4 is connected with the grounding end of the target circuit, and the other end of the fourth resistor R4 is grounded; a first input end of the voltage comparator VC is connected to a path between the fourth resistor R4 and the target circuit, the working voltage signal Va includes a ground voltage signal VSS1 corresponding to a ground terminal, a second input end of the voltage comparator is connected to a reference voltage source, and the auxiliary voltage signal Vb includes a reference voltage signal Vref provided by the reference voltage source;
the voltage comparator is used for comparing the grounding voltage signal VSS1 with the reference voltage signal Vref to obtain a comparison result; the input end of the switch tube is connected with the power supply, and the output end of the switch tube is connected to a path between the fourth resistor and the target circuit.
For the circuit structure shown in fig. 4, when the switching tube enters the conducting state, the power supply is grounded via the switching tube and the fourth resistor; the switching tube carries out current compensation on the target circuit so that the compensated working current of the target circuit reaches a preset current value.
Specifically, the preset current value corresponding to the normal operation of the target circuit is also explained as 10mA, and it is assumed that R4 is 10 Ω and Vref is 100mV in fig. 4.
If the current I3 consumed by the target circuit is greater than 10mA, the ground voltage signal VSS1> Vref of the target circuit is 100mV, i.e., the operating voltage signal Va is greater than the auxiliary voltage signal Vb, and therefore, the control signal output by the voltage comparator to the switch tube is used to control the switch tube to enter the off state (i.e., the second control signal or the fourth control signal), i.e., the switch tube does not generate the pull-down current I4.
In addition, if the current I3 consumed by the target circuit is less than 10mA, the ground voltage signal VSS1< Vref is 100mV, that is, the operating voltage signal Va is smaller than the auxiliary voltage signal Vb, therefore, the control signal output by the voltage comparator to the switching tube is used to control the switching tube to enter a conducting state (i.e., the first control signal or the third control signal), so that the power supply is grounded via the switching tube and the fourth resistor R4, thereby generating the pull-down current I4, I1 is I3+ I4, that is, it is equivalent to adding an additional pull-down current I4 to ensure that the current consumed by VCC can be compensated to 10 mA.
In this embodiment, based on the circuit structure shown in fig. 4, the compensation circuit can adaptively perform current compensation on the target circuit, thereby ensuring that the target circuit can normally operate under different conditions. In addition, the circuit is simple in structural design and small in actual measurement delay, so that compensation response is more timely.
It can be understood that the circuit structure shown in fig. 4 can be applied to a specific scenario where the output current passing through the target circuit needs to satisfy a preset current value.
EXAMPLE six
Based on the fifth embodiment, in the sixth embodiment of the present application, the compensation circuit may also adopt the operating principle of voltage detection + voltage compensation.
Fig. 5 is a schematic diagram of a specific circuit of a compensation circuit according to a sixth embodiment of the present application, and as shown in fig. 5, fig. 5 differs from fig. 4 in that the compensation module 30 further includes a fifth resistor R5;
the input end of the switching tube is connected with the power supply through a fifth resistor R5, or the output end of the switching tube is connected to a path between the fourth resistor and the target circuit through the fifth resistor;
when the switching tube enters a conducting state, the power supply is grounded through the switching tube, the fifth resistor and the fourth resistor; therefore, the switching tube and the fifth resistor compensate the voltage of the target circuit, so that the compensated working voltage of the target circuit reaches a preset voltage value, and the target circuit can work normally.
EXAMPLE seven
Based on the second embodiment, in the seventh embodiment of the present application, another compensation circuit is provided, which may be another VCC adaptive compensation circuit, and specifically adopts the operating principle of voltage detection + current compensation.
Fig. 6 is a schematic diagram of a specific circuit of a compensation circuit according to a seventh embodiment of the present application, and as shown in fig. 6, the detection module 10 includes a sixth resistor R6; the target circuit is connected with a power supply VCC, one end of a sixth resistor R6 is connected to a path between the power supply and the target circuit, and the other end of the sixth resistor R6 is grounded; a first input end of the voltage comparator VC is connected to one end of the sixth resistor R6, the working voltage signal Va includes a third voltage signal V3 corresponding to the sixth resistor R6, a second input end of the voltage comparator VC is connected to a reference voltage source, and the auxiliary voltage signal Vb includes a reference voltage signal Vref provided by the reference voltage source;
the voltage comparator is used for comparing the third voltage signal V3 with the reference voltage signal Vref to obtain a comparison result; the input end of the switch tube is connected to a path between the power supply and the target circuit, and the output end of the switch tube is grounded.
For the circuit configuration shown in fig. 6, when the switching tube enters the conducting state, the power supply is grounded via the switching tube; the switching tube carries out current compensation on the target circuit so that the compensated working current of the target circuit reaches a preset current value.
Specifically, the preset current value corresponding to the normal operation of the target circuit is also explained as 10mA, and it is assumed that R6 is 10K Ω and Vref is 100mV in fig. 6. In addition, in fig. 6, I1 ═ 10mA, I2 is designed to be a value much smaller than I1, for example, I2 ═ I1/x, x > 200. Therefore, the working current needing to be compensated is detected through the smaller current, the influence of shunting on the working current is smaller, and the compensation precision can be improved. For example, assuming that x is 1000, I2, I1, 1000, 0.01mA, 10uA, V3, I2, R6, 10K Ω, 0.01mA, 100 mV.
If I1>10mA, I2>10uA, V3>100mV, i.e. V3> Vref, i.e. the operating voltage signal is greater than the auxiliary voltage signal, therefore, the control signal outputted by the voltage comparator to the switch tube is used to control the switch tube to enter the off state (i.e. the second control signal or the fourth control signal), i.e. the switch tube does not generate the pull-down current I4.
In addition, if I1<10mA, I2<10uA, V3<100mV, i.e., V3< Vref, i.e., the operating voltage signal is smaller than the auxiliary voltage signal, so that the control signal output by the voltage comparator to the switching tube is used to control the switching tube to enter a conducting state (i.e., the first control signal or the third control signal), so that the power supply is grounded via the switching tube, thereby generating a pull-down current I4, I1 ═ I3+ I4, i.e., it is equivalent to adding an additional pull-down current I4 to ensure that the current consumed by VCC can be compensated to 10mA, so that the target circuit can operate normally.
In this embodiment, based on the circuit structure shown in fig. 6, the compensation circuit can adaptively compensate the target circuit, thereby ensuring that the target circuit can normally operate under different conditions. In addition, the circuit is simple in structural design and small in actual measurement delay, so that compensation response is more timely.
Example eight
Based on the seventh embodiment, in the eighth embodiment of the present application, the compensation circuit may also adopt the operating principle of voltage detection + voltage compensation.
Fig. 7 is a schematic diagram of a specific circuit of a compensation circuit according to an eighth embodiment of the present application, and as shown in fig. 7, fig. 7 differs from fig. 6 in that the compensation module 30 further includes a seventh resistor R7;
the input end of the switching tube is connected to a path between the power supply and the target circuit through a seventh resistor R7, or the output end of the switching tube is grounded through the seventh resistor;
when the switching tube enters a conducting state, the power supply is grounded through the switching tube and the seventh resistor; therefore, the switching tube and the seventh resistor compensate the voltage of the target circuit, so that the compensated working voltage of the target circuit reaches a preset voltage value, and the target circuit can work normally.
Example nine
In an embodiment nine of the present application, the compensation circuit may compensate the target circuit by means of current detection. The ninth embodiment is different from the second embodiment in that the type of the operation signal for detecting the target circuit is different.
The working signal detected by the detection module comprises a working current signal, and the auxiliary signal adopted by the comparison module in comparison comprises an auxiliary current signal; the control signal sent by the comparison module to the compensation module is used for representing whether the working current of the target circuit reaches a preset current value or not; the compensation module is specifically used for compensating the target circuit when the working current of the control signal representation target circuit does not reach the preset current value.
Specifically, the comparison module 20 includes a Current Comparator (CC), and the compensation module includes a switching tube; the first input end of the current comparator is used for acquiring a working current signal, the second input end of the current comparator is used for acquiring an auxiliary current signal, and the output end of the current comparator is connected with the control end of the switching tube; the current comparator is used for comparing the working current signal with the auxiliary current signal and outputting a corresponding control signal to the control end of the switching tube according to the comparison result.
Optionally, the switching tube includes an N-type MOS tube; when the working current signal is smaller than the auxiliary current signal, the current comparator outputs a first control signal to the switching tube, and the first control signal is used for controlling the switching tube to enter a conducting state; when the working current signal is greater than or equal to the auxiliary current signal, the current comparator outputs a second control signal to the switching tube, and the second control signal is used for controlling the switching tube to enter a closed state; when the switching tube is in a conducting state, the switching tube compensates the target circuit.
Optionally, the switching tube includes a P-type MOS tube; when the working current signal is smaller than the auxiliary current signal, the current comparator outputs a third control signal to the switching tube, and the third control signal is used for controlling the switching tube to enter a conducting state; when the working current signal is greater than or equal to the auxiliary current signal, the current comparator outputs a fourth control signal to the switching tube, and the fourth control signal is used for controlling the switching tube to enter a closed state; when the switching tube is in a conducting state, the switching tube compensates the target circuit.
It can be understood that, compared with the ninth embodiment and the second embodiment, except for the type of the working signal, the working principle of other circuit elements may specifically refer to the contents of the second embodiment, and will not be described herein again.
Example ten
Based on the ninth embodiment, in the tenth embodiment of the present application, a specific configuration of the compensation circuit is explained in the case where the compensation circuit compensates the target circuit by means of current detection.
Fig. 8 is a schematic diagram of a specific circuit of a compensation circuit provided in this embodiment, and as shown in fig. 8, the compensation circuit may be a VCC adaptive compensation circuit, and specifically adopts the working principle of current detection + current compensation.
The detection module comprises a first resistor and a second resistor, the resistance value of the second resistor is larger than that of the first resistor, and the comparison module further comprises an eighth resistor R8.
One end of the first resistor is connected with the power supply, and the other end of the first resistor is connected with the target circuit; one end of the second resistor is connected to a path between the first resistor and the power supply, and the other end of the second resistor is grounded; the other end of the second resistor is further connected with a first input end of the current comparator, and the working current signal Ia comprises a first current signal corresponding to the second resistor. A second input end of the current comparator is connected with the other end of the first resistor through an eighth resistor, and the auxiliary current signal Ib comprises a second current signal corresponding to the first resistor; or, the second input terminal of the current comparator is connected to the reference voltage source via an eighth resistor, and the auxiliary current signal includes a reference current signal provided by the reference voltage source; the current comparator is used for comparing the first current signal with the second current signal or the reference current signal to obtain a comparison result; the input end of the switch tube is connected with the other end of the first resistor, and the output end of the switch tube is grounded.
For the circuit structure shown in fig. 8, when the switching tube enters the conducting state, the other end of the first resistor is grounded, and the switching tube performs current compensation on the target circuit, so that the compensated working current of the target circuit reaches the preset current value.
It can be understood that, in comparison with the third embodiment, except for the type of the working signal and the comparator, the working principle of other circuit elements may specifically refer to the content in the third embodiment, and will not be described herein again.
EXAMPLE eleven
Based on the tenth embodiment, in the eleventh embodiment of the present application, the compensation circuit may also adopt the operating principle of current detection + voltage compensation.
Fig. 9 is a schematic diagram of a specific circuit of a compensation circuit according to an eleventh embodiment of the present application, and as shown in fig. 9, the difference between fig. 9 and fig. 8 is that the compensation module 30 further includes a third resistor R3.
The input end of the switching tube is connected with the other end of the first resistor through a third resistor, or the output end of the switching tube is grounded through the third resistor; when the switching tube enters a conducting state, the other end of the first resistor is grounded through the third resistor, so that the switching tube and the third resistor compensate the voltage of the target circuit, the compensated working voltage of the target circuit reaches a preset voltage value, and the target circuit can normally work.
Example twelve
Based on the ninth embodiment, in the twelfth embodiment of the present application, another compensation circuit is provided, which may be a GND (ground) adaptive compensation circuit, and specifically adopts the operating principle of current detection + current compensation.
Fig. 10 is a schematic diagram of a specific circuit of a compensation circuit according to a twelfth embodiment of the present disclosure, as shown in fig. 10, the detection module includes a fourth resistor, and the comparison module further includes an eighth resistor R8;
the target circuit is connected with the power supply, one end of the fourth resistor is connected with the grounding end of the target circuit, and the other end of the fourth resistor is grounded; a first input end of the current comparator is connected to a path between the fourth resistor and the target circuit, the working current signal Ia comprises a ground current signal corresponding to a ground terminal, a second input end of the current comparator is connected with a reference voltage source through an eighth resistor, and the auxiliary current signal Ib comprises a reference current signal provided by the reference voltage source; the current comparator is used for comparing the grounding current signal with a reference current signal to obtain a comparison result; the input end of the switch tube is connected with the power supply, and the output end of the switch tube is connected to a path between the fourth resistor and the target circuit.
For the circuit structure shown in fig. 10, when the switching tube enters the conducting state, the power supply is grounded via the switching tube and the fourth resistor; the switching tube carries out current compensation on the target circuit so that the compensated working current of the target circuit reaches a preset current value.
It can be understood that, in the twelfth embodiment, compared with the fifth embodiment, except for the type of the working signal and the type of the comparator, the working principle of other circuit elements may specifically refer to the content in the fifth embodiment, and will not be described herein again.
EXAMPLE thirteen
Based on the twelfth embodiment, in the thirteenth embodiment of the present application, the compensation circuit may also adopt the operating principle of current detection + voltage compensation.
Fig. 11 is a schematic diagram of a specific circuit of a compensation circuit according to a thirteenth embodiment of the present application, and as shown in fig. 11, fig. 11 differs from fig. 10 in that the compensation module further includes a fifth resistor R5;
the input end of the switching tube is connected with a power supply through a fifth resistor, or the output end of the switching tube is connected to a path between the fourth resistor and the target circuit through the fifth resistor; when the switching tube enters a conducting state, the power supply is grounded through the switching tube, the fifth resistor and the fourth resistor; the switching tube and the fifth resistor compensate the voltage of the target circuit, so that the compensated working voltage of the target circuit reaches a preset voltage value.
Example fourteen
Based on the ninth embodiment, in the fourteenth embodiment of the present application, another compensation circuit is provided, and the compensation circuit may be another VCC adaptive compensation circuit, and specifically adopts the operating principle of current detection + current compensation.
Fig. 12 is a schematic diagram of a specific circuit of a compensation circuit according to a fourteenth embodiment of the present application, and as shown in fig. 12, the detection module includes a sixth resistor R6, and the comparison module further includes an eighth resistor R8;
the target circuit is connected with the power supply, one end of the sixth resistor is connected to a path between the power supply and the target circuit, and the other end of the sixth resistor is grounded; a first input end of the current comparator is connected with one end of the sixth resistor, the working current signal Ia comprises a third current signal corresponding to the sixth resistor, a second input end of the current comparator is connected with a reference voltage source through an eighth resistor, and the auxiliary current signal Ib comprises a reference current signal provided by the reference voltage source; the current comparator is used for comparing the third current signal with the reference current signal to obtain a comparison result; the input end of the switch tube is connected to a path between the power supply and the target circuit, and the output end of the switch tube is grounded.
For the circuit configuration shown in fig. 12, when the switching tube enters the conducting state, the power supply is grounded via the switching tube; the switching tube carries out current compensation on the target circuit so that the compensated working current of the target circuit reaches a preset current value.
It can be understood that, in the fourteenth embodiment, compared with the seventh embodiment, except for the type of the working signal and the comparator, the working principle of other circuit elements may specifically refer to the content in the seventh embodiment, and will not be described herein again.
Example fifteen
Based on the fourteenth embodiment, in the fifteenth embodiment of the present application, the compensation circuit may also adopt the operating principle of current detection + voltage compensation.
Fig. 13 is a schematic diagram of a specific circuit of a compensation circuit according to a fifteenth embodiment of the present application, as shown in fig. 13, the difference between fig. 13 and fig. 12 is that the compensation module further includes a seventh resistor R7;
the input end of the switching tube is connected to a path between the power supply and the target circuit through a seventh resistor, or the output end of the switching tube is grounded through the seventh resistor; when the switching tube enters a conducting state, the power supply is grounded through the switching tube and the seventh resistor; the switching tube and the seventh resistor compensate the voltage of the target circuit, so that the compensated working voltage of the target circuit reaches a preset voltage value.
Example sixteen
Based on the above embodiments, in a sixteenth embodiment of the present application, an integrated circuit is provided.
Fig. 14 is a schematic diagram of an integrated circuit according to a sixteenth embodiment of the present application, and as shown in fig. 14, the integrated circuit includes the compensation circuit and the target circuit according to the foregoing embodiments, and the compensation circuit is connected to the target circuit and is configured to perform current compensation or voltage compensation on the target circuit by using a current detection or voltage detection method.
Optionally, the integrated circuit includes any one of a micro control unit MCU, a digital signal processing unit DSP, a microprocessor unit MPU, a system on chip SOC for consumables, or a power management system BMS; the target circuit includes a PWM (Pulse Width Modulation) control circuit.
Example seventeen
In the seventeenth embodiment of the present application, when the target circuit includes a PWM control circuit, in the automatic phase-changing process of PWM, sudden change of PWM may cause drastic change of current and further cause shaking of rotation of the motor, and in order to enable smooth operation of the motor in the phase-changing process, in the phase-changing process of the motor, current compensation may be performed through a compensation circuit. The PWM can control the current compensation module to perform phase commutation compensation after phase commutation, and the fluctuation of current is filtered. In order to compensate voltage drop in the phase change process, directly setting PWM output to be an effective level immediately after phase change, detecting current after phase change until the current after phase change recovers to a current value before phase change, and then recovering PWM to a PWM value before phase change.
EXAMPLE eighteen
In the seventeenth embodiment of the present application, the compensation circuit may also be applied to overcurrent protection of the PWM control circuit.
Specifically, a compensation circuit is taken as an example of a VCC adaptive compensation circuit in the third embodiment to explain, fig. 15 is a schematic diagram of a compensation circuit for performing overcurrent protection in the eighteenth embodiment of the present application, as shown in fig. 15, a difference between fig. 15 and fig. 2 is that VCC is VCC in PWM when applied to a PWM control circuit, in addition, a first input terminal and a second input terminal of a voltage comparator are in inverse phase, that is, an operating voltage signal is connected to the second input terminal, and an auxiliary voltage signal is connected to the first input terminal, so that when an operating current of a target circuit is large, a current is shared by a compensation module 30, thereby performing an overcurrent protection function on the target circuit.
Example nineteen
In nineteenth embodiment of the present application, the compensation circuit can also be used as a load driving circuit.
In the load driving circuit, for the driving port with the set power supply voltage and power supply current, the difference of specific working current can be caused due to errors of different load manufacturing processes and precision, so that the load driving circuit can be arranged at the driving interface for power supply leakage compensation in order to avoid the overheating risk of the load when the driving current is higher and influence the service life of components.
Specifically, the load driving circuit includes a detection module, a comparison module and a compensation module, where the detection module includes a power supply module, which may also be referred to as a load power supply module, and a sensing module, where a driving interface VCC is connected to the load power supply module, the load power supply module is connected to a load, the driving interface provides a driving electrical signal of the load, the driving electrical signal is transmitted to the load through the load power supply module, and the driving load operates, where the driving interface VCC corresponds to a VCC in the VCC adaptive compensation circuit, the load corresponds to a target circuit in the compensation circuit, and connection and operation of the other modules refer to embodiments 1 to 4, 7, 10, 11, and 14 (VCC sensing is performed corresponding to the embodiment).
For a preferable mode, refer to example 3, which is not described herein again. Through the electric signal detection of the driving port, the driving current of the appropriate load and the components can be set in a self-adaptive manner, the load and the components can be protected to work normally, and the overcurrent risk is avoided.
The load driving circuit can be applied to an IO interface of the MCU, wherein the IO interface comprises IO _ VCC and IO _ GND, the IO _ VCC is used for providing driving voltage, and the IO _ GND is used for providing reference grounding voltage. Specifically, load drive circuit for drive load, in MCU's IO interface, the IO interface of having set for supply voltage and supply current is used for driving load, because the error of different load manufacturing process and precision can lead to the specific operating current of load to have the difference, consequently, for avoiding making the load have overheated risk when drive current is higher, influence the life of components and parts, can the IO interface set up the load drive circuit who drives power supply bleeder circuit, and is concrete, load drive circuit includes: the detection module, comparison module and compensation module, wherein, the detection module includes the power module, also can be called load power module, and sensing module, IO _ VCC of IO interface links to each other with load power module, load power module links to each other with the load, the IO interface provides the drive electrical signal of load, the drive electrical signal transmits the load through load power module, the drive load work, compensation module and IO _ GND link to each other, IO _ VCC corresponds to the VCC in the above-mentioned VCC self-adaptation compensation circuit, the load corresponds to the target circuit in the above-mentioned compensation circuit, the connection and the work of other modules, refer to embodiments 1-4, 7, 10, 11, 14 (corresponding to the embodiment for VCC sensing).
For a preferable mode, refer to example 3, which is not described herein again. Through the electric signal detection of the IO interface of the MCU, the driving current of the proper load and the components can be set in a self-adaptive manner, the load and the components can be protected to work normally, and the overcurrent risk is avoided.
For example, the load externally connected to the MCU may be, for example, the MCU drives the buzzer, and if the power supply voltage provided by the MCU is 5V and the start voltage of the MCU driving the buzzer is 3.3V, the resistor in the compensation module 30 in the compensation circuit needs to share 1.7V.
Example twenty
In embodiment twenty of the present application, the compensation circuit may also be used as a power supply protection circuit, and reference may be made to fig. 16.
Specifically, in the process of charging the load, because the voltage and the current of the power supply are fixed and the rated currents of different loads are inconsistent, the load may face the risk of burning due to overcurrent, and the current is discharged by arranging the power supply protection circuit to be connected with the power supply and the load, so as to protect the load.
Specifically, the power protection circuit includes: the detection module comprises a power supply module 101 and a sensing module 102, a power supply terminal VCC of a power supply is connected with the power supply module, the power supply module is connected with a load input, the power supply module receives an electric signal for charging a load, the power supply terminal VCC corresponds to VCC in the VCC self-adaptive compensation circuit, the load corresponds to a target circuit in the compensation circuit, and the connection and the work of the other modules are specific, referring to embodiments 1-4, 7, 10, 11, and 14 (VCC sensing is used for corresponding embodiments). In a preferred manner, reference is made to example 3. Through the detection of the electric signal of the power supply end VCC of the power supply, the proper load charging current can be set in a self-adaptive manner, the load can be protected to work normally, and the overcurrent risk is avoided. The power protection circuit may also be used as protection for a battery pack in a power management system, wherein the power management system is electrically connected to the battery pack.
Specifically, in the process of charging the battery pack, if the lithium battery is charged, because the voltage and the current of a power supply are fixed, and due to the use frequency, the deterioration of materials and the like of different lithium batteries, the rated current may be inconsistent, the battery pack may face the risk of burning due to overcurrent, and the leakage current or the voltage division is realized by arranging the power supply protection circuit to be connected with the charging circuit and the battery pack so as to protect the battery pack.
Specifically, the power protection circuit includes: the detection module comprises a power supply module, which can also be called a charging circuit, and a sensing module, wherein a power supply terminal VCC of a power supply is connected with the charging circuit, the charging circuit is connected with the input of the battery pack, and the charging circuit receives an electric signal for charging the battery pack, wherein the power supply terminal VCC corresponds to VCC in the VCC self-adaptive compensation circuit, the battery pack corresponds to a target circuit in the compensation circuit, and the connection and operation of the rest of modules are specific, referring to embodiments 1-4, 7, 10, 11, and 14 (VCC sensing corresponding to the embodiments). In a preferred manner, reference is made to example 3. Through the detection of the electric signal of the power supply end VCC of the power supply, the charging power supply of the appropriate battery pack can be set in a self-adaptive manner, the protection load can work normally, and the risk of overcurrent or overvoltage is avoided.
Example twenty one
In twenty one of the embodiments of the present application, the compensation circuit can also be used as a protection circuit of the consumable chip.
Specifically, consumptive material chip detachably installs in the ink horn, and ink horn detachably installs in the printer, and printer supply terminal VCC and printer benchmark earthing terminal GND are connected to the consumptive material chip, because the voltage and the electric current that the printer provided are fixed, and the consumptive material chip by the printer power supply probably faces the risk that overflows and burn out, through protection circuit bleeder current to protection consumptive material chip can normally work, thereby avoids burning out or influence life.
The embodiment designs a protection circuit of a consumable chip, which comprises a detection module, a comparison module and a compensation module, wherein a power supply terminal VCC of a printer is connected with the detection module, the detection module is also connected with the input of the consumable chip, a reference ground GND of the printer is connected with the compensation module, the power supply module receives a signal for driving the consumable chip to drive the consumable chip to work,
the power supply terminal VCC of the printer corresponds to VCC in the VCC adaptive compensation circuit, the consumable chip corresponds to a target circuit in the VCC adaptive compensation circuit, and the connection and operation of the rest of the modules are specific, refer to embodiments 3, 7, 10, and 14, and in a preferred mode, refer to embodiment 3.
Therefore, through detection of a voltage signal of the VCC power supply end, current compensation can be carried out on the consumable chip in a self-adaptive mode, and therefore the target circuit can work normally under different conditions. In addition, the circuit is simple in structural design and small in actual measurement delay, so that compensation response is more timely.
Or, the reference voltage GND of the printer is electrically connected with the interface of the consumable chip, the reference voltage GND of the printer corresponds to the GND in the GND adaptive compensation circuit, the consumable chip corresponds to the target circuit in the compensation circuit, and the connection and operation of the rest modules are specific, refer to embodiments 5 and 12, and in a preferred mode, refer to embodiment 5.
Therefore, through detection of the GND end electric signal, current compensation can be carried out on the consumable chip in a self-adaptive mode, and therefore the target circuit can work normally under different conditions. In addition, the circuit is simple in structural design and small in actual measurement delay, so that compensation response is more timely.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A load driving circuit for driving a load, the load driving circuit comprising: the device comprises a detection module, a comparison module and a compensation module;
the detection module comprises a power supply module, a drive interface VCC is connected with the power supply module, the power supply module is also connected with the load, the drive interface VCC is used for providing a drive electric signal of the load, and the drive electric signal is transmitted to the load through the power supply module so as to drive the load to work;
the detection module is also connected with the comparison module and is used for detecting a first signal of a power supply branch of the load and sending the first signal to the comparison module;
the comparison module is used for receiving the first signal and acquiring a second signal, wherein the second signal is used for assisting in determining whether the first signal of the power supply branch reaches a preset value; and comparing the first signal with the second signal to obtain a comparison result, and sending a corresponding control signal to the compensation module according to the comparison result,
the compensation module is used for determining a driving strategy of the load according to the control signal.
2. The load driving circuit of claim 1, wherein the driving strategy comprises: when it is determined that the first signal does not reach a preset value, compensating the load so that the electric signal input to the load increases to the preset value.
3. The load driving circuit of claim 1, wherein the driving strategy comprises: and when the first signal is determined to exceed a preset value, performing current leakage compensation or voltage division compensation so that the electric signal input to the load reaches the preset value.
4. The load driving circuit according to claim 1, wherein the compensation module comprises a switching tube; when the switch tube is in an on state, the compensation module performs current compensation or voltage compensation on the load.
5. The load driving circuit according to claim 1, wherein the first signal and the second signal are both voltage signals, and the comparing module comprises a voltage comparator.
6. The load driving circuit according to claim 1, wherein the first signal and the second signal are both current signals, and the comparing module comprises a current comparator.
7. The load driving circuit according to claim 4, wherein the switching transistor comprises an N-type MOS transistor or a P-type MOS transistor.
8. An MCU comprising an IO interface and a load driving circuit according to any one of claims 1 to 7;
the IO interface comprises an IO _ VCC interface used for providing a driving electric signal and an IO _ GND interface used for providing a reference grounding voltage;
the IO _ VCC interface is connected with one end of a power supply module in the load driving circuit, the other end of the power supply module is connected with a load, and a driving electric signal provided by the IO _ VCC interface is transmitted to the load through the power supply module to drive the load to work;
and the IO _ GND interface is connected with a compensation module in the load driving circuit.
9. The MCU of claim 8, wherein the load comprises a buzzer;
the compensation module is used for performing voltage compensation on the buzzer.
10. The MCU of claim 8, wherein the load driving circuit is further configured to perform electrical signal detection on the IO interface to perform over-current protection or over-voltage protection on the load.
11. An adaptive compensation circuit of a PWM control circuit, comprising the load driving circuit according to claim 1;
the PWM control circuit is characterized in that VCC of the PWM control circuit is connected with a power supply module in the load driving circuit;
the comparison module in the load driving circuit comprises a voltage comparator;
and a compensation module in the load driving circuit is used for carrying out current compensation on the PWM control circuit so as to carry out overcurrent protection on the load.
CN202111411318.5A 2021-08-23 2021-08-23 Load driving circuit, MCU and self-adaptive compensation circuit Active CN114123779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111411318.5A CN114123779B (en) 2021-08-23 2021-08-23 Load driving circuit, MCU and self-adaptive compensation circuit

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110966254.9A CN113687682A (en) 2021-08-23 2021-08-23 Power supply signal compensation circuit and consumable chip
CN202111411318.5A CN114123779B (en) 2021-08-23 2021-08-23 Load driving circuit, MCU and self-adaptive compensation circuit

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202110966254.9A Division CN113687682A (en) 2021-08-23 2021-08-23 Power supply signal compensation circuit and consumable chip

Publications (2)

Publication Number Publication Date
CN114123779A true CN114123779A (en) 2022-03-01
CN114123779B CN114123779B (en) 2024-04-16

Family

ID=78581323

Family Applications (4)

Application Number Title Priority Date Filing Date
CN202111410989.XA Active CN114123778B (en) 2021-08-23 2021-08-23 Self-adaptive compensation circuit, protection circuit and integrated circuit
CN202110966254.9A Pending CN113687682A (en) 2021-08-23 2021-08-23 Power supply signal compensation circuit and consumable chip
CN202111411305.8A Pending CN114115413A (en) 2021-08-23 2021-08-23 Power supply protection circuit and power supply management system
CN202111411318.5A Active CN114123779B (en) 2021-08-23 2021-08-23 Load driving circuit, MCU and self-adaptive compensation circuit

Family Applications Before (3)

Application Number Title Priority Date Filing Date
CN202111410989.XA Active CN114123778B (en) 2021-08-23 2021-08-23 Self-adaptive compensation circuit, protection circuit and integrated circuit
CN202110966254.9A Pending CN113687682A (en) 2021-08-23 2021-08-23 Power supply signal compensation circuit and consumable chip
CN202111411305.8A Pending CN114115413A (en) 2021-08-23 2021-08-23 Power supply protection circuit and power supply management system

Country Status (1)

Country Link
CN (4) CN114123778B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114123778A (en) * 2021-08-23 2022-03-01 珠海极海半导体有限公司 Self-adaptive compensation circuit, protection circuit and integrated circuit

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115331613A (en) * 2022-08-15 2022-11-11 惠科股份有限公司 Driving circuit, driving method and display device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090027024A1 (en) * 2007-07-23 2009-01-29 Intersil Americas Inc. Load current compensation in synchronous power converters
KR20150140430A (en) * 2014-06-05 2015-12-16 서울시립대학교 산학협력단 Current sensing circuit and driver uising the same
CN111050448A (en) * 2019-12-27 2020-04-21 上海晶丰明源半导体股份有限公司 Ripple removing circuit, ripple removing chip and electronic product
CN111929594A (en) * 2020-09-23 2020-11-13 深圳英集芯科技有限公司 Current detection chip, battery and electronic equipment
CN111984051A (en) * 2019-05-22 2020-11-24 群光电能科技股份有限公司 Voltage compensation circuit and voltage compensation method

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4851203B2 (en) * 2006-02-24 2012-01-11 ルネサスエレクトロニクス株式会社 Power supply selection detection circuit and power supply control method
CN100525002C (en) * 2007-06-14 2009-08-05 思源电气股份有限公司 Continuouslly-adjusting arc-eliminating coil for compensatting current between large range
CN102360234B (en) * 2011-06-21 2013-12-11 成都芯源系统有限公司 Current control circuit and current control method
CN102545631A (en) * 2012-01-09 2012-07-04 绍兴光大芯业微电子有限公司 Constant current control device for switching power supply
CN202840946U (en) * 2012-09-14 2013-03-27 成都芯源系统有限公司 Switch voltage stabilizing circuit and voltage feedback circuit thereof
JP6454169B2 (en) * 2015-02-04 2019-01-16 エイブリック株式会社 Voltage regulator
TWI566069B (en) * 2015-06-08 2017-01-11 宏碁股份有限公司 Power supply apparatus with cable voltage drop compensation
CN105552868B (en) * 2016-01-29 2019-03-08 中国电子科技集团公司第二十三研究所 Current foldback circuit and its control method based on constant current-supplying mode
CN109460104B (en) * 2018-12-03 2020-11-06 惠科股份有限公司 Voltage regulating circuit, voltage regulating device and display device
CN209419216U (en) * 2019-02-15 2019-09-20 广州视源电子科技股份有限公司 Overvoltage crowbar, backlight circuit, backlight module and display equipment
CN212751771U (en) * 2020-05-25 2021-03-19 深圳市锐明技术股份有限公司 Protection circuit, power supply system of hard disk device and vehicle-mounted device
CN111650986B (en) * 2020-06-19 2022-03-18 深圳朗田亩半导体科技有限公司 No load capacitance LDO circuit
CN114123778B (en) * 2021-08-23 2024-01-19 珠海极海半导体有限公司 Self-adaptive compensation circuit, protection circuit and integrated circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090027024A1 (en) * 2007-07-23 2009-01-29 Intersil Americas Inc. Load current compensation in synchronous power converters
KR20150140430A (en) * 2014-06-05 2015-12-16 서울시립대학교 산학협력단 Current sensing circuit and driver uising the same
CN111984051A (en) * 2019-05-22 2020-11-24 群光电能科技股份有限公司 Voltage compensation circuit and voltage compensation method
CN111050448A (en) * 2019-12-27 2020-04-21 上海晶丰明源半导体股份有限公司 Ripple removing circuit, ripple removing chip and electronic product
CN111929594A (en) * 2020-09-23 2020-11-13 深圳英集芯科技有限公司 Current detection chip, battery and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114123778A (en) * 2021-08-23 2022-03-01 珠海极海半导体有限公司 Self-adaptive compensation circuit, protection circuit and integrated circuit
CN114123778B (en) * 2021-08-23 2024-01-19 珠海极海半导体有限公司 Self-adaptive compensation circuit, protection circuit and integrated circuit

Also Published As

Publication number Publication date
CN114115413A (en) 2022-03-01
CN114123778B (en) 2024-01-19
CN113687682A (en) 2021-11-23
CN114123779B (en) 2024-04-16
CN114123778A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US7262605B2 (en) Power supply apparatus
JP5486822B2 (en) Battery system
KR101035065B1 (en) Battery pack with charge control function
CN114123778B (en) Self-adaptive compensation circuit, protection circuit and integrated circuit
US11719756B2 (en) Battery monitoring system and semiconductor device
US6642694B2 (en) Overcharge protection circuit capable of preventing damage to a charge control switch on flowing an excessive current
US20080211459A1 (en) Battery management system and driving method thereof
JP2009131124A (en) Charging circuit for secondary battery
JP6639999B2 (en) Charging device
EP3116129B1 (en) Preventive apparatus
EP3675303A1 (en) Power source protection apparatus and terminal using same
JPH0620348B2 (en) Method and apparatus for sensing a short circuit in a motor control circuit
US20080185997A1 (en) Charged control device and battery pack employing it
US5179494A (en) Excess voltage protection apparatus for an electric vehicle
JPH08336281A (en) Residual voltage protector for electric circuit
JP2010220377A (en) Electric storage device
KR20150054275A (en) Battery Charging Apparatus and Battery Charging Method
JP4025580B2 (en) Charging device and control method of charging device
KR20170024818A (en) Apparatus for diagnosing state of control line
US20240100956A1 (en) Control unit circuit for a motor vehicle, motor vehicle and operating mathod for the control unit circuit
US7372234B2 (en) Charge control device and battery pack employing it
KR20210104458A (en) Battery apparatus and current sensor diagnosis method
JP3780993B2 (en) Abnormality detection device for battery pack
CN219838443U (en) Driving circuit, driving equipment and electric equipment
JP2006170889A (en) Offset compensating system of electrical potential difference sensor for vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 519000 room 105-68710, No.6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province (centralized office area)

Applicant after: Zhuhai Jihai Semiconductor Co.,Ltd.

Applicant after: Jihai Microelectronics Co.,Ltd.

Address before: 519000 room 105-68710, No.6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province (centralized office area)

Applicant before: Zhuhai Jihai Semiconductor Co.,Ltd.

Applicant before: APEX MICROELECTRONICS Co.,Ltd.

GR01 Patent grant