Charging and discharging control circuit, charging and discharging control system and charging and discharging control method

By using a power converter and a modulation circuit in the charge and discharge control circuit to adjust the discharge current of the battery according to the input voltage and current feedback signal, the problem of undervoltage protection of the charger in the discharge mode in the existing technology is solved, and the battery's performance is improved. lifespan and charger efficiency.

CN118763752APending Publication Date: 2024-10-11JOULWATT TECH INC LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410350610.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing charging management solutions can only manage power supply through input current in discharge mode. As a result, chargers with insufficient load capacity are prone to activate under-voltage protection when the load is large, reducing the efficiency of the charger and increasing battery power consumption. Shortened battery life.

Method used

Using a charge and discharge control circuit, the power converter is in buck mode in charging mode and in boost mode in discharge mode. Combined with the PWM modulation circuit, discharge current control circuit and comparison circuit, the control voltage is adjusted according to the input voltage and current feedback signals. signal and the duty cycle of the PWM signal to adjust the battery discharge current.

Benefits of technology

Under-voltage protection is effectively avoided in discharge mode, ensuring normal power supply for chargers with insufficient load capacity, improving charger efficiency and extending battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118763752A_ABST
    Figure CN118763752A_ABST
Patent Text Reader

Abstract

The invention discloses a charging and discharging control circuit, system and method. The charging and discharging control system comprises a power converter, a charger, a load and a battery. The charge and discharge control circuit comprises: a discharge current control circuit for adjusting the magnitude of a control voltage signal based on the output thereof in a discharge mode; the first comparison circuit enables the discharge current control circuit to adjust the size of the control voltage signal according to the input voltage feedback signal when the input voltage feedback signal is smaller than a first voltage threshold value; when the input voltage feedback signal is larger than a third voltage threshold value, the discharge current control circuit adjusts the size of the control voltage signal according to the input current feedback signal, and the PWM modulation circuit generates a PWM signal according to the control voltage signal to adjust the duty ratio of the PWM signal so as to adjust the discharge current of the battery. According to the invention, the input voltage loop is further added on the basis of the input current loop, so that chargers with different loading capacities and overload capacities can work normally in a discharging mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of charging and power supply, and more specifically, to a charging and discharging control circuit, a charging and discharging control system, and a charging and discharging control method. Background Art

[0002] At present, most electronic devices, such as smart terminals (mobile phones, tablets, etc.), need to use adapters (or chargers) to charge. When using a charger, on the one hand, the charger charges the built-in rechargeable battery in the electronic device, and on the other hand, it supplies power to the electronic device (load) to maintain normal operation of the load. One typical application is the energy management of notebook charging and discharging. When the notebook is working, the system load is complex and diverse, and there are many types of chargers. In order to extend the life of the battery, it is necessary to ensure the maximum utilization of the charger's energy under various working conditions. Therefore, the charge and discharge management system (or charge and discharge control system) has been widely used.

[0003] Figure 1 The figure shows the connection relationship between the charge and discharge control system, the charger, the load and the battery. Figure 1 As shown, the charger, load and battery are all connected to the charge and discharge control system. The charge and discharge control system can control the charger to supply power to the load and battery at the same time under different load conditions, or to supply power to the load and battery separately, or to supply power to the load at the same time by the charger and the battery, etc., to establish an energy transmission path between the charger, the load and the battery. However, most of the charging management solutions currently on the market can use both input voltage and input current for power management in battery charging mode. But for the discharge mode, only input current can be used for power management. When using input current for power management, the power distribution in the discharge mode is managed through the input current loop, which places high requirements on the charger. For chargers with insufficient load capacity, when the load is large, the input voltage is low, and it is easy to start undervoltage protection, causing the charger to stop supplying power to the load, resulting in excessive use of battery discharge to power the load, resulting in reduced efficiency of the charger, and also increasing the power consumption of the battery and reducing the service life. Summary of the invention

[0004] In view of this, an object of the present disclosure is to provide a charge and discharge control circuit and a charge and discharge control system to solve the problems in the prior art.

[0005] According to one aspect of the present invention, a charge and discharge control circuit is provided, which is applied to a charge and discharge control system, wherein the charge and discharge control system includes a power converter, a charger, a load and a battery; the charge and discharge control circuit controls the power converter to be in a buck mode in a charge mode so that the charger charges the battery, and controls the power converter to be in a boost mode in a discharge mode so that the battery discharges to the load, wherein the charge and discharge control circuit includes:

[0006] A PWM modulation circuit, used for generating a PWM signal, wherein the PWM signal is used for driving the power converter;

[0007] a discharge current control circuit, forming a path with the PWM modulation circuit in a discharge mode, and generating a control voltage signal at a first input terminal of the PWM modulation circuit based on an output of the discharge current control circuit;

[0008] a first comparison circuit, wherein the first comparison circuit is a hysteresis comparison circuit, and compares the input voltage feedback signal with a first voltage threshold or with a third voltage threshold; the first voltage threshold is less than the second voltage threshold, the second voltage threshold represents a preset input voltage threshold, and the third voltage threshold is greater than the second voltage threshold;

[0009] In the discharge mode, when the input voltage feedback signal is less than the first voltage threshold, the discharge current control circuit adjusts the magnitude of the control voltage signal according to the input voltage feedback signal; when the input voltage feedback signal is greater than the third voltage threshold, the discharge current control circuit adjusts the magnitude of the control voltage signal according to the input current feedback signal;

[0010] The PWM modulation circuit adjusts the duty cycle of the PWM signal according to the control voltage signal so that the discharge current of the battery changes in a desired direction.

[0011] Optionally, the first voltage threshold is 85%-95% of the second voltage threshold, and the third voltage threshold is 105%-115% of the second voltage threshold.

[0012] Optionally, the discharge current control circuit includes:

[0013] a first discharge control branch, in a discharge mode, when the input voltage feedback signal is less than the first voltage threshold, the first comparison circuit forms a path between the first discharge control branch and the PWM modulation circuit, the first discharge control branch generates a first control signal according to the input voltage feedback signal and the second voltage threshold; the discharge current control circuit adjusts the magnitude of the control voltage signal according to the magnitude of the first control signal;

[0014] The second discharge control branch, in the discharge mode, when the input voltage feedback signal is greater than the third voltage threshold, the first comparison circuit forms a path between the second discharge control branch and the PWM modulation circuit, and the second discharge control branch generates a second control signal according to the input current feedback signal and the first current characterization threshold; the discharge current control circuit adjusts the size of the control voltage signal according to the size of the second control signal; the first current characterization threshold represents a preset input current threshold.

[0015] Optionally, in the discharge mode, when the input voltage feedback signal is less than the first voltage threshold, the duty cycle of the PWM signal generated by the PWM modulation circuit is increased based on the first control signal to increase the discharge current;

[0016] In the discharge mode, when the input voltage feedback signal is greater than the third voltage threshold and the input current feedback signal is greater than the first current characterization threshold, the duty cycle of the PWM signal generated by the PWM modulation circuit is increased based on the second control signal to increase the discharge current.

[0017] Optionally, the discharge current control circuit further includes:

[0018] A third discharge control branch forms a path with the PWM modulation circuit in a discharge mode, and the third discharge control branch generates a third control signal according to the battery discharge current feedback signal and the discharge reference current characterization threshold value;

[0019] Wherein, in the discharge mode, when the input voltage feedback signal is less than the first voltage threshold, the discharge current control circuit adjusts the magnitude of the control voltage signal according to the magnitudes of the first control signal and the third control signal;

[0020] In the discharge mode, when the input voltage feedback signal is greater than the third voltage threshold, the discharge current control circuit adjusts the magnitude of the control voltage signal according to the magnitudes of the second control signal and the third control signal.

[0021] Optionally, when the battery discharge current feedback signal is greater than a discharge reference current characterization threshold, the discharge current control circuit preferentially reduces the duty cycle of the PWM signal generated by the PWM modulation circuit based on the third control signal to reduce the discharge current.

[0022] Optionally, the first discharge control branch includes a first operational amplifier, a first compensation network, a first diode and a first switch connected in sequence, the first input terminal and the second input terminal of the first operational amplifier receive the input voltage feedback signal and the second voltage threshold respectively, the output terminal is connected to the first compensation network and the cathode of the first diode, and the first switch is connected to the branch between the anode of the first diode and the PWM modulation circuit; the voltage generated at the output terminal of the first operational amplifier is the first control signal;

[0023] The second discharge control branch comprises a second operational amplifier, a second compensation network, a second diode and a second switch connected in sequence, the first input terminal and the second input terminal of the second operational amplifier respectively receive the first current characterization threshold and the input current feedback signal, the output terminal is connected to the second compensation network and the cathode of the second diode, and the second switch is connected to the branch between the anode of the second diode and the PWM modulation circuit; the voltage generated at the output terminal of the second operational amplifier is the second control signal;

[0024] The third discharge control branch comprises a third operational amplifier, a third compensation network and a third diode connected in sequence, wherein the first input terminal and the second input terminal of the third operational amplifier receive the battery discharge current feedback signal and the discharge reference current characterization threshold value respectively, and the output terminal is connected to the third compensation network and the cathode of the third diode, and the voltage generated at the output terminal of the third operational amplifier is the third control signal;

[0025] In the discharge mode, when the input voltage feedback signal is less than the first voltage threshold, the first switch is turned on, and a path is formed between the anode of the first diode and the anode of the third diode and the PWM modulation circuit; when the input voltage feedback signal is greater than the third voltage threshold, the second switch is turned on, and a path is formed between the anode of the second diode and the anode of the third diode and the PWM modulation circuit.

[0026] Optionally, the first operational amplifier, the second operational amplifier and the third operational amplifier are all transconductance operational amplifiers;

[0027] The charge and discharge control circuit further includes a pull-up current source, and the pull-up current source is connected to the first input terminal of the PWM modulation circuit.

[0028] Optionally, the charge and discharge control circuit further includes:

[0029] A charging current control circuit, which forms a path with the PWM modulation circuit in a charging mode and adjusts the magnitude of the control voltage signal based on the output of the charging current control circuit;

[0030] Among them, the charging current control circuit adjusts the size of the control voltage signal according to the input current feedback signal, the input voltage feedback signal, the battery voltage feedback signal and the battery charging current feedback signal, so that the PWM modulation circuit adjusts the duty cycle of the PWM signal so that the size of the charging current of the battery changes in the expected direction.

[0031] Optionally, the charge and discharge control circuit further includes:

[0032] A third switch connected between the discharge current control circuit and the PWM modulation circuit;

[0033] a fourth switch connected between the charging current control circuit and the PWM modulation circuit;

[0034] In the discharge mode, the third switch is in the on state and the fourth switch is in the open state; in the charge mode, the fourth switch is in the on state and the third switch is in the open state.

[0035] Optionally, the charge and discharge control circuit further includes:

[0036] a second comparison circuit, wherein the second comparison circuit comprises a first hysteresis comparator and a second hysteresis comparator, wherein the first hysteresis comparator compares the input voltage feedback signal with a first voltage threshold or a third voltage threshold; and the second hysteresis comparator compares the input current feedback signal with a second current characterization threshold or a third current characterization threshold, and controls the on and off of the third switch and the fourth switch according to the comparison results of the first hysteresis comparator and the second hysteresis comparator.

[0037] Wherein, the third switch is turned on when any one of the input voltage feedback signal is less than the first voltage threshold and the input current feedback signal is greater than the second current characterization threshold is satisfied; the fourth switch is turned on when the input voltage feedback signal is greater than the third voltage threshold and the input current feedback signal is less than the third current characterization threshold;

[0038] The second current characterization threshold is greater than the first current characterization threshold, the third current characterization threshold is less than the first current characterization threshold, and the first current characterization threshold characterizes a preset input current threshold.

[0039] Optionally, the second current characterization threshold is 105%-115% of the first current characterization threshold, and the third current characterization value is 80%-95% of the first current characterization value.

[0040] Optionally, the charging current control circuit includes:

[0041] A first charging control branch forms a path with the PWM modulation circuit in a charging mode, and generates a fourth control signal according to the battery voltage feedback signal and the battery reference voltage threshold;

[0042] A second charging control branch forms a path with the PWM modulation circuit in a charging mode, and generates a fifth control signal according to the battery charging current feedback signal and the charging reference current characterization threshold value;

[0043] A third charging control branch, in a charging mode, forms a path with the PWM modulation circuit, and generates a sixth control signal according to the input current feedback signal and the first current characterization threshold, wherein the first current characterization threshold represents a preset input current threshold;

[0044] The fourth charging control branch forms a path with the PWM modulation circuit in the charging mode, and generates a seventh control signal according to the input voltage feedback signal and the second voltage threshold.

[0045] Among them, in the charging mode, the charging current control circuit adjusts the size of the control voltage signal according to the size of the fourth control signal to the seventh control signal, so that the PWM modulation circuit adjusts the duty cycle of the PWM signal so that the size of the battery charging current changes in the expected direction.

[0046] Optionally, the first charging control branch includes a fourth operational amplifier, a fourth compensation network and a fourth diode, the first input terminal and the second input terminal of the fourth operational amplifier receive the battery voltage feedback signal and the battery reference voltage threshold respectively, the output terminal is connected to the fourth compensation network and the cathode of the fourth diode, and the voltage generated at the output terminal of the fourth operational amplifier is the fourth control signal;

[0047] The second charging control branch comprises a fifth operational amplifier, a fifth compensation network and a fifth diode, wherein a first input terminal and a second input terminal of the fifth operational amplifier receive the battery charging current feedback signal and the charging reference current characterization threshold value respectively, and an output terminal is connected to the fifth compensation network and the cathode of the fifth diode, and a voltage generated at the output terminal of the fifth operational amplifier is the fifth control signal;

[0048] The third charging control branch comprises a sixth operational amplifier, a sixth compensation network and a sixth diode, wherein the first input terminal and the second input terminal of the sixth operational amplifier receive the input current feedback signal and the first current characterization threshold value respectively, and the output terminal is connected to the sixth compensation network and the cathode of the sixth diode, and the voltage generated at the output terminal of the sixth operational amplifier is the sixth control signal;

[0049] The fourth charging control branch comprises a seventh operational amplifier, a seventh compensation network and a seventh diode, wherein the first input terminal and the second input terminal of the seventh operational amplifier receive the second voltage threshold and the input voltage feedback signal respectively, and the output terminal is connected to the seventh compensation network and the cathode of the seventh diode, and the voltage generated at the output terminal of the seventh operational amplifier is the seventh control signal;

[0050] In the charging mode, anodes of the fourth diode to the seventh diode all form a path with the PWM modulation circuit.

[0051] Optionally, the fourth operational amplifier to the seventh operational amplifier are all transconductance operational amplifiers;

[0052] The charge and discharge control circuit further includes a pull-up current source, and the pull-up current source is connected to the first input terminal of the PWM modulation circuit.

[0053] Optionally, the PWM modulation circuit includes:

[0054] an eighth operational amplifier, wherein the first input terminal and the second input terminal of the eighth operational amplifier receive the control voltage signal and the inductor current sampling signal respectively, and the output terminal generates an error amplification signal;

[0055] A ramp generating circuit generates a periodic ramp signal;

[0056] A comparator, wherein the first input terminal and the second input terminal of the comparator receive the error amplified signal and the ramp signal respectively, and the output terminal outputs the PWM signal.

[0057] The present invention also provides a charge and discharge control system, comprising a charger, a load and a battery, including:

[0058] The charge and discharge control circuit as described above; and

[0059] A power converter is connected to the charge and discharge control circuit, the power converter includes a first transistor, a second transistor and an inductor, the charge and discharge control circuit generates a first drive signal and a second drive signal according to the PWM signal, and controls the working state of the first transistor and the second transistor respectively.

[0060] The charge and discharge control circuit controls the power converter to be in a buck mode in a charging mode so that the charger charges the battery, and controls the power converter to be in a boost mode in a discharging mode so that the battery discharges to the load.

[0061] The present invention also provides a charge and discharge control method, which is applicable to a charge and discharge control circuit. The charge and discharge control circuit is applied to a charge and discharge control system. The charge and discharge control system includes a power converter, a charger, a load and a battery. In a charge mode, the charge and discharge control circuit controls the power converter to be in a buck mode so that the charger charges the battery, and in a discharge mode, controls the power converter to be in a boost mode so that the battery discharges to the load. The charge and discharge control method includes:

[0062] In the discharge mode, a hysteresis comparison circuit is used to determine whether the feedback signal of the input voltage is less than a first voltage threshold;

[0063] When the feedback signal of the input voltage is less than the first voltage threshold, adjusting the magnitude of the control voltage signal according to the input voltage feedback signal;

[0064] Determining whether the feedback signal of the input voltage is greater than a third voltage threshold by the hysteresis comparison circuit;

[0065] When the input voltage feedback signal is greater than the third voltage threshold, adjusting the magnitude of the control voltage signal according to the input current feedback signal;

[0066] generating a signal for determining a duty cycle of a PWM signal according to the control voltage signal, wherein the PWM signal is used to drive the power converter;

[0067] Among them, the duty cycle of the PWM signal is adjusted by adjusting the size of the control voltage signal so that the size of the discharge current of the battery changes in the expected direction; the second voltage threshold is a preset input voltage threshold, the first voltage threshold is less than the second voltage threshold, and the third voltage threshold is greater than the second voltage threshold.

[0068] The beneficial effects of this application are as follows:

[0069] In summary, according to the charge and discharge control circuit, charge and discharge control system and charge and discharge control method disclosed in the present invention, in the battery discharge mode where the charger and the battery supply power to the load at the same time, when the input voltage feedback signal is less than the first voltage threshold, the discharge current control circuit adjusts the size of the control voltage signal according to the size of the input voltage feedback signal, and then the PWM modulation circuit adjusts the duty cycle of the output PWM signal according to the control voltage signal, and controls the working state of the power converter to adjust the size of the discharge current of the battery. Thus, when the input voltage drops in the discharge mode so that the input voltage feedback signal is less than the first voltage threshold, the voltage loop controlled by the input voltage can be used to adjust the discharge current of the battery, so as to avoid the charger from turning on the undervoltage protection, so that the charger with insufficient load capacity can supply power to the load normally in the discharge mode. In the discharge mode, when the input voltage feedback signal is greater than the third voltage threshold, the discharge current control circuit adjusts the size of the control voltage signal according to the size of the input current feedback signal, and then the PWM modulation circuit adjusts the duty cycle of the output PWM signal according to the control voltage signal, and controls the working state of the power converter to adjust the size of the discharge current of the battery. The present invention can not only adjust the discharge current of the battery according to the voltage loop controlled by the input voltage, but also adjust the discharge current of the battery according to the current loop controlled by the input current, thereby ensuring that chargers with different load capacities and overload capacities can work normally in the discharge mode.

[0070] Furthermore, the control voltage signal, the duty cycle of the PWM signal and the discharge current are correlated. In the discharge mode, for the input voltage loop, when the input voltage feedback signal drops to less than the second voltage threshold, or for the input current loop, when the input current feedback signal is greater than the first current characterization threshold, the discharge current control circuit can adjust the size of the control voltage signal by adjusting the corresponding control signal it generates, so that the duty cycle of the PWM signal output by the PWM modulation circuit increases, thereby increasing the discharge current of the battery, providing more energy from the battery to the load, reducing the power supply pressure of the charger, and ensuring the stability of the power supply state of the charger. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 A schematic diagram showing the connection relationship between the charge and discharge control system and the charger, load and battery;

[0072] Figure 2 A schematic circuit diagram of a charge and discharge control system according to an embodiment of the present invention is shown;

[0073] Figure 3 A schematic circuit block diagram of a charge and discharge control circuit according to an embodiment of the present invention is shown;

[0074] Figure 4A schematic circuit diagram of a power driving circuit in a charge and discharge control circuit according to an embodiment of the present invention is shown;

[0075] Figure 5 Show Figure 4 A schematic circuit diagram of a PWM modulation circuit in a power drive circuit;

[0076] Figure 6a-6f A schematic diagram showing the operation of a charge and discharge control system under different operating conditions according to an embodiment of the present invention is shown;

[0077] Figure 7 A schematic diagram showing the relationship between the power supply capacity and load size of a charger connected to a charge and discharge control system according to an embodiment of the present invention;

[0078] Figure 8-Figure 9 Schematic working waveform diagrams of a charge and discharge control system according to an embodiment of the present invention supplying power to a load under different load conditions are respectively shown. DETAILED DESCRIPTION

[0079] The preferred embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings, but the present disclosure is not limited to these embodiments. The present disclosure covers any substitution, modification, equivalent method and scheme made within the spirit and scope of the present disclosure.

[0080] In order to make the public have a thorough understanding of the present disclosure, specific details are described in detail in the following preferred embodiments of the present disclosure, but those skilled in the art can fully understand the present disclosure without the description of these details.

[0081] The present disclosure is described in more detail in the following paragraphs by way of example with reference to the accompanying drawings. It should be noted that the accompanying drawings are all in a relatively simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present disclosure.

[0082] Figure 2 A schematic circuit diagram of a charge and discharge control system according to an embodiment of the present invention is shown.

[0083] The present embodiment provides a charge and discharge control system 100 that can adjust the discharge current of a battery based on an input voltage feedback signal and an input current feedback signal in a battery discharge mode. The charge and discharge management system 100 adopts an HPB (Hybrid Power Boost) architecture and can adaptively adjust the power supply scheme for chargers with different load capacities.

[0084] like Figure 2As shown, the charge and discharge control system 100 of this embodiment is connected between the charger, the load and the battery, and the charge and discharge control system 100 includes a charge and discharge control circuit 200 and peripheral circuits, and the peripheral circuits include a power converter 110, a switch circuit 120, a power supply selection circuit 130, a third transistor Q3, a resistor and a capacitor, etc. The working state of the power converter 110 is controlled by the charge and discharge control circuit 200. The charge and discharge control circuit 200 is, for example, a packaged chip, including a plurality of pins, for example, including a power supply pin VCC, sampling pins ACP and ACN, a source pin ACSRC and a gate drive pin ACDRV, a gate drive pin BATDRV and a source pin BATSRC, a bootstrap drive pin BTST, an upper tube drive pin HIDRV and a lower tube drive pin LODRV, a phase pin PHASE, a ground pin GND, and sampling pins SRP and SRN. Power is supplied to the chip via the VCC pin; the first sampling resistor R1 connected between the charger and the load is sampled via the sampling pins ACP and ACN to obtain input voltage feedback signals and input current feedback signals, etc.; the upper switch tube and the lower switch tube of the power converter 110 are driven respectively via the upper tube drive pin HIDRV and the lower tube drive pin LODRV; the second sampling resistor R2 is sampled via the sampling pins SRP and SRN to obtain battery voltage feedback signals, battery charging current feedback signals, battery discharging current feedback signals, etc.

[0085] The power converter 110 includes a first transistor Q1, a second transistor Q2 and an inductor L. The first transistor Q1 and the second transistor Q2 are connected in series between the intermediate node between the charger and the load and the reference ground. The intermediate node of the first transistor Q1 and the second transistor Q2 is connected to the first end of the inductor L and is connected to the PHASE pin. The first transistor Q1 and the second transistor Q2 are respectively an upper switch tube and a lower switch tube, and the control ends are respectively connected to the upper tube drive pin HIDRV and the lower tube drive pin LODRV. A bootstrap capacitor C1 is also connected between the bootstrap drive pin BTST and the phase pin PHASE. The second end of the inductor L is connected to the positive electrode of the battery through the second sampling resistor R2 and is grounded through the capacitor C2. The charge and discharge control circuit 200 generates a first drive signal DRV1 and a second drive signal DRV2 according to the internal PWM signal, and controls the working states of the first transistor Q1 and the second transistor Q2 respectively. Specifically, the charge and discharge control circuit 200 can control the power converter 110 to be in the step-down mode as a step-down converter (BUCK) in the battery charging mode, so that the charger charges the battery through the BUCK; and control the power converter 110 to be in the step-up mode as a step-up converter (BOOST) in the battery discharging mode, so that the battery discharges to the load through the BOOST.

[0086] Further, the third transistor Q3 of the charge and discharge control system 100 is connected between the battery and the load, and is connected to the charge and discharge control circuit 200. The charge and discharge control circuit 200 controls the third transistor Q3 to turn on when the load is disconnected from the charger, so that the battery supplies power to the load via the third transistor Q3. The common node of the third transistor Q3, the charger and the load is grounded through the capacitor C3. The switch circuit 120 is connected between the charger and the load, and is connected to the charge and discharge control circuit 200. The charge and discharge control circuit 200 controls the charger to supply power to the load and / or the battery when the switch circuit 120 is turned on. The switch circuit 120 is connected between the charger and the first end of the first sampling resistor R1, and includes a fourth transistor Q4 and a fifth transistor Q5 connected in series, and the gates of both are connected to the ACDRV pin, so as to be turned on or off at the same time. The source of the fourth transistor Q4 and the source of the fifth transistor Q5 are both connected to the ACSRC pin. The power supply selection circuit 130 includes a first power supply branch between the charger and the charge and discharge control circuit 200 and a second power supply branch between the battery and the charge and discharge control circuit 200. The charge and discharge control circuit 200 selects the one with a higher voltage between the first power supply branch and the second power supply branch as the power supply branch. The first power supply branch includes a diode D01 and a resistor R3 connected between the charger and the VCC pin, and the second power supply branch includes a diode D02 and a resistor R3 connected between the battery and the VCC pin. That is, the cathodes of the diodes D01 and D02 are connected to each other and connected to the first end of the resistor R3, and the second end of the resistor R3 is grounded through the capacitor C6. The end of the first power supply branch connected to the charger is also grounded through the resistor R4 and the capacitor C7, while the end of the second power supply branch connected to the battery is grounded through the capacitor C2. The charge and discharge control circuit 200 selects the one with a higher voltage between the charger and the battery as the power supply source, and supplies power to the internal part via the VCC pin.

[0087] Figure 3 Shows Figure 2 The internal circuit block diagram of the charge and discharge control circuit 200 has a plurality of pins. Figure 3 As shown, the charge and discharge control circuit 200 specifically includes a power drive circuit 300, a first sampling circuit 210 and a second sampling circuit 220. The first sampling circuit 210 is connected to the first sampling resistor R1, and the input voltage feedback signal VIN-FB and the input current feedback signal IIN-FB are obtained by sampling; the second sampling circuit 220 is connected to the second sampling resistor R2, and the battery voltage feedback signal VBAT-FB, the battery charging current feedback signal ICH-FB and the battery discharging current feedback signal IDC-FB are obtained by sampling. Among them, Figure 3 The content related to the core concept of the present invention is only illustrated, and other control circuits can refer to the prior art; the feedback signal described in the present invention can be a voltage signal or a current signal, which can be specifically set according to the actual application situation.

[0088] The power driving circuit 300 is used to drive the power converter 110, and includes: a first comparison circuit 320, a second comparison circuit 310, a discharge current control circuit 330, a charging current control circuit 340, a PWM modulation circuit 350 and a driving circuit 360. The first sampling circuit 210 provides an input voltage feedback signal VIN-FB and an input current feedback signal IIN-FB to the second comparison circuit 310, the discharge current control circuit 330 and the charging current control circuit 340 connected thereto, and provides an input voltage feedback signal VIN-FB to the first comparison circuit 320 connected thereto. The second sampling circuit 220 provides a battery discharge current feedback signal IDC-FB to the discharge current control circuit 330 connected thereto, and provides a battery voltage feedback signal VBAT-FB and a battery charging current feedback signal ICH-FB to the charging current control circuit 340 connected thereto. The PWM modulation circuit 350 is used to generate a PWM signal. The driving circuit 360 is connected to the PWM modulation circuit 350, receives the PWM signal to generate the first driving signal DRV1 and the second driving signal DRV2, which are provided to the first transistor Q1 and the second transistor Q2 respectively. The first comparison circuit 320 is a hysteresis comparator, and its two input terminals receive the input voltage feedback signal VIN-FB, the first voltage threshold V1 or the third voltage threshold V3 respectively, and outputs the switch control signals K1 and K2 according to the comparison result to control the working state of the discharge current control circuit 330 connected thereto. As one of the embodiments of the present invention, the switch control signal K2 is the inverted signal of the switch control signal K1. Among them, the second voltage threshold V2 represents the preset input voltage threshold, the third voltage threshold V3 is greater than the second voltage threshold V2, and the second voltage threshold V2 is greater than the first voltage threshold V1; the third voltage threshold V3 is, for example, 105%-115% of the second voltage threshold V2, and the first voltage threshold V1 is, for example, 85%-95% of the second voltage threshold V2; the first voltage threshold V1 is preferably 95% of the second voltage threshold V2, and the third voltage threshold V3 is preferably 105% of the second voltage threshold V2.

[0089] exist Figure 3In the embodiment, the third switch S3 is connected between the discharge current control circuit 330 and the PWM modulation circuit 350, and the fourth switch S4 is connected between the charge current control circuit 340 and the PWM modulation circuit 350. The third switch S3 and the fourth switch S4 can be transistors, triodes, logic gates, etc. In the discharge mode, the third switch S3 is turned on and the fourth switch S4 is turned on; in the charge mode, the fourth switch S4 is turned on and the third switch S3 is turned on. The second comparison circuit 310 compares the input voltage feedback signal VIN-FB with the first voltage threshold V1 or the third voltage threshold V3, and compares the input current feedback signal IIN-FB with the second current characterization threshold V-I2 or the third current characterization threshold V-I3, and controls the conduction and disconnection of the third switch S3 and the fourth switch S4 according to the comparison result. Specifically, the second comparison circuit 310 turns on the third switch when any one of the conditions that the input voltage feedback signal VIN-FB is less than the first voltage threshold V1 and the input current feedback signal IIN-FB is greater than the second current characterization threshold V-I2 is satisfied; and turns on the fourth switch when the input voltage feedback signal VIN-FB is greater than the third voltage threshold V3 and the input current feedback signal IIN-FB is less than the third current characterization threshold V-I3. Wherein, the second current characterization threshold V-I2 is greater than the first current characterization threshold V-I1, the first current characterization threshold V-I1 is greater than the third current characterization threshold V-I3, the first current characterization value V-I1 represents the preset input current threshold, the third current characterization threshold V-I3 is, for example, 80%-95% of the first current characterization threshold V-I1, and the second current characterization threshold V-I2 is, for example, 105%-115% of the first current characterization threshold V-I1. The second current characterization value V-I2 is preferably 110% of the first current characterization value V-I1, and the third current characterization value V-I3 is preferably 90% of the first current characterization threshold V-I1.

[0090] Then, in one embodiment, when the input voltage feedback signal VIN-FB is less than 95% of the preset input voltage threshold voltage, or when the input current feedback signal IIN-FB is greater than 110% of the preset input current threshold voltage, or when both conditions are met, the battery is in the discharge mode, and the battery and the charger simultaneously supply power to the load. At this time, the switch control signal K3 output by the second comparison circuit 310 closes the third switch S3, so that the discharge current control circuit 330 is connected to the PWM modulation circuit 350, and the output of the discharge current control circuit 330 is connected to the first input terminal (corresponding to the PWM modulation circuit 350) of the PWM modulation circuit 350. Figure 3The PWM modulation circuit 350 adjusts the duty cycle of the PWM signal according to the control voltage signal Vb to adjust the discharge current of the battery. Similarly, when the input voltage feedback signal VIN-FB is greater than 105% of the preset input voltage threshold and the input current feedback signal IIN-FB is less than 90% of the preset input current threshold, the battery is in charging mode, that is, the charger supplies power to the battery and the load. At this time, the switch control signal K4 output by the second comparison circuit 310 closes the fourth switch S4, so that the charging current control circuit 340 is connected to the PWM modulation circuit 350, and the size of the control voltage signal Vb is adjusted based on the output of the charging current control circuit 340; wherein the charging current control circuit 340 adjusts the size of the control voltage signal according to the input current feedback signal IIN-FB, the input voltage feedback signal VIN-FB, the battery voltage feedback signal VBAT-FB and the battery charging current feedback signal ICH-FB, so that the PWM modulation circuit 350 adjusts the duty cycle of the PWM signal to adjust the size of the charging current of the battery.

[0091] Furthermore, the discharge current control circuit 330 includes a first discharge control branch and a second discharge control branch. In the discharge mode, when the input voltage feedback signal VIN-FB is less than the first voltage threshold V1, the first comparison circuit 320 forms a path between the first discharge control branch and the PWM modulation circuit, and the first discharge control branch generates a first control signal (which can be regarded as an input voltage loop control loop) according to the size of the input voltage feedback signal VIN-FB and the second voltage threshold V2; at this time, the discharge current control circuit adjusts the size of the control voltage signal Vb according to the size of the first control signal; when the input voltage feedback signal VIN-FB is greater than the third voltage threshold V3, the first comparison circuit 320 forms a path between the second discharge control branch and the PWM modulation circuit, and the second discharge control branch generates a second control signal (which can be regarded as an input current loop control loop) according to the size of the input current feedback signal IIN-FB and the first current characterization threshold V-I1; the discharge current control circuit adjusts the size of the control voltage signal Vb according to the size of the second control signal.

[0092] Furthermore, in the discharge mode, when the input voltage feedback signal is less than the first voltage threshold, the duty cycle of the PWM signal generated by the PWM modulation circuit is increased based on the first control signal to increase the discharge current and gradually restore the input voltage to stability; in the discharge mode, when the input voltage feedback signal is greater than the third voltage threshold and the input current feedback signal is greater than the first current characterization threshold, the duty cycle of the PWM signal generated by the PWM modulation circuit is increased based on the second control signal to increase the discharge current and gradually restore the input current to stability.

[0093] Therefore, in the discharge mode, when the load capacity of the charger is insufficient and the input voltage drops to a certain level less than the preset input voltage, the input voltage loop control loop is opened to adjust the discharge current of the battery so that the input voltage gradually recovers and stabilizes. Thus, the charger can work normally when the load capacity is insufficient, and continue to supply power to the load. The charger and the battery jointly supply power to the load, reducing the power supply pressure of the battery and improving the adaptability of the charge and discharge control circuit 200 and the charger. When the input voltage drops little but the input current increases to a certain level exceeding the preset input current in a short time, the input current loop control loop can also be entered to adjust the discharge current of the battery so that the input current gradually recovers and stabilizes, so that the charger and the battery jointly supply power to the load, avoiding excessive current burning the circuit. By setting the discharge current control circuit of this embodiment, the input voltage loop control in the discharge mode is further added on the basis of the input current loop control loop in the discharge mode, and the two can be switched, thereby ensuring that chargers with different load capacities and overload capacities work normally in the discharge mode.

[0094] In a further embodiment, the discharge current control circuit 330 may also be provided with a third discharge control branch, and a third control signal is generated according to the size of the battery discharge current feedback signal IDC-FB and the discharge reference current characterization threshold value IDC-R. In the discharge mode, when the input voltage feedback signal is less than the first voltage threshold, the discharge current control circuit adjusts the size of the control voltage signal according to the size of the first control signal and the third control signal (which can be based on the maximum or minimum value of the two, which can be specifically set according to the actual application, and the following embodiment is described by taking the minimum value as an example); when the input voltage feedback signal is greater than the third voltage threshold, the discharge current control circuit adjusts the size of the control voltage signal according to the size of the second control signal and the third control signal (which can be based on the maximum or minimum value of the two, which can be specifically set according to the actual application, and the following embodiment is also described by taking the minimum value as an example). In the present invention, when the battery discharge current feedback signal IDC-FB is greater than the discharge reference current characterization threshold value IDC-R, the duty cycle of the PWM signal generated by the PWM modulation circuit is preferentially reduced based on the third control signal to reduce the discharge current, so as to avoid the battery discharge current from being too large to damage the circuit, and to protect the battery and the load.

[0095] Further, the charging current control circuit 340 includes first to fourth charging control branches. In the charging mode, the first to fourth charging control branches and the PWM modulation circuit 350 form a path, that is, the first to fourth charging control branches can be considered to be connected in parallel. Among them, the first charging control branch generates a fourth control signal according to the size of the battery voltage feedback signal VBAT-FB and the battery reference voltage threshold VBAT-R; the second charging control branch generates a fifth control signal according to the size of the battery charging current feedback signal ICH-FB and the charging reference current characterization threshold ICH-R; the third charging control branch generates a sixth control signal according to the size of the input current feedback signal IIN-FB and the first current characterization threshold V-I1; the fourth charging control branch generates a seventh control signal according to the size of the input voltage feedback signal VIN-FB and the second voltage threshold V2. In the charging mode, the charging current control circuit 340 adjusts the size of the control voltage signal Vb according to the size of the fourth control signal to the seventh control signal (which can be based on its maximum value or minimum value, which can be specifically changed according to the actual application, and the minimum value is used as an example in the following embodiment) to adjust the charging current of the battery.

[0096] Among them, the charging current control circuit 340 is mainly used to reduce the duty cycle of the PWM signal generated by the PWM modulation circuit through the corresponding control signal when the input current feedback signal IIN-FB exceeds the first current characterization threshold V-I1, or the input voltage feedback signal VIN-FB is less than the second voltage threshold V2, or the battery charging current feedback signal ICH-FB is greater than the charging reference current characterization threshold ICH-R, or the battery voltage feedback signal VBAT-FB exceeds the battery reference voltage threshold VBAT-R, or any one or more of the four conditions are met, so as to protect the circuit with the battery charging current.

[0097] Therefore, the charge and discharge control circuit of this embodiment can not only use the input current loop control loop to control the discharge current in the discharge mode, but also use the input voltage loop control loop to control the discharge current. In the charging mode, the current loop control loop or the voltage loop control loop can also be used to adjust the charging current, so that the charger can supply power to the load under various working conditions and work stably, thereby improving the compatibility of the charger and the charge and discharge control circuit. In addition, the working mode of the charger can be adaptively adjusted, so that all types of chargers with different load capacities can be used to supply power to the load, and the energy of the charger can be used as much as possible to further extend the service life of the battery.

[0098] Figure 4 Given Figure 3 A specific circuit implementation method of the power driving circuit 300 in the charge and discharge control circuit 200 is shown, but the present invention is certainly not limited thereto. Figure 4As shown, in the power driving circuit 300, the discharge current control circuit 330 includes a first discharge control branch 331 and a second discharge control branch 332, the first discharge control branch 331 includes a first switch S1, and the second discharge control branch 332 includes a second switch S2. The first discharge control branch 331 and the second discharge control branch 332 are both connected to the PWM modulation circuit 350 via the third switch S3. When the circuit is in the battery discharge mode, the third switch S3 is closed. At this time, when the first switch S1 is closed, the first discharge control branch 331 is connected to the PWM modulation circuit 350; when the second switch S2 is closed, the second discharge control branch 332 is connected to the PWM modulation circuit 350. The first comparison circuit 320, for example, includes a hysteresis comparator COM0, the first input terminal of the hysteresis comparator COM0 receives the first voltage threshold V1 or the third voltage threshold V3, the second input terminal receives the input voltage feedback signal VIN-FB, and the output terminal is connected to the first switch S1 and the second switch S2, and provides a switch control signal K1 and a switch control signal K2 respectively. In this embodiment, the first input terminal and the second input terminal can be a positive input terminal and a negative input terminal respectively, and the switch control signal K2 is an inverted signal of K1. When the input voltage feedback signal VIN-FB is less than the first voltage threshold V1, the hysteresis comparator COM0 outputs a valid switch control signal K1 to control the first switch S1 to close. When the input voltage feedback signal VIN-FB is greater than the third voltage threshold V3, the hysteresis comparator COM0 outputs a valid switch control signal K2 to control the second switch S2 to close.

[0099] Further, in one embodiment, the first discharge control branch 331 includes a first operational amplifier U1, a first compensation network, a first diode D1 and a first switch S1 connected in sequence, the first input terminal and the second input terminal of the first operational amplifier U1 respectively receive the input voltage feedback signal and the second voltage threshold, and the output terminal is connected to the first compensation network and the cathode of the first diode D1; wherein the voltage generated at the output terminal of the first operational amplifier U1 is the first control signal. The second discharge control branch 332 includes a second operational amplifier U2, a second compensation network, a second diode D2 and a second switch S2 connected in sequence, the first input terminal and the second input terminal of the second operational amplifier respectively receive the first current characterization threshold and the input current feedback signal, and the output terminal is connected to the second compensation network and the cathode of the second diode; the voltage generated at the output terminal of the second operational amplifier is the second control signal. Further, the third discharge control branch 333 includes a third operational amplifier U3, a third compensation network and a third diode D3 connected in sequence, the first input terminal and the second input terminal of the third operational amplifier respectively receive the battery discharge current feedback signal and the discharge reference current characterization threshold, the output terminal is connected to the third compensation network and the cathode of the third diode, and the voltage generated at the output terminal of the third operational amplifier is the third control signal. In this embodiment, the first input terminals are all positive input terminals, and the second input terminals are all negative input terminals.

[0100] Specifically, based on the connection mode of the diode in the discharge current control circuit 330, it can be known that in the discharge mode, when the first switch S1 is closed, the magnitude of the control voltage signal is determined according to the minimum of the first control signal and the third control signal; similarly, when the second switch S2 is closed, the magnitude of the control voltage signal is determined according to the minimum of the second control signal and the third control signal. Further, as one of the embodiments of the present invention, the first to third operational amplifiers are all transconductance operational amplifiers, that is, the output signals of the first to third operational amplifiers are current signals, and the current direction is as follows: Figure 4 As shown in the direction of the arrow in the figure, the current signal is equivalent to the pull-down current signal acting on the compensation network. The magnitude of the pull-down current signal depends on the magnitudes of the two input terminals of the operational amplifier. In this embodiment, when the signal at the positive input terminal of the operational amplifier is larger than the signal at the negative input terminal, the value of the pull-down electric signal is also larger. Figure 4As shown in , a pull-up current source A1 is also provided, and the current generated by the pull-up current source A1 is Ib0 (which can be a fixed value). The larger the value of the pull-down current signal, the smaller the voltage (corresponding to the corresponding control signal) generated by the corresponding operational amplifier at its output terminal. In the discharge mode, for example, when the first switch is closed, if the first control signal is less than the third control signal, a control voltage signal Vb is generated based on the value of the first control signal, that is, at this time, the branch where the first diode D1 is located is turned on, and the branch where the third diode D3 is located is not turned on. Figure 4 The current Ib1 shown in is the current signal generated by the first operational amplifier U1 based on the signal at its input terminal. Similarly, when the second switch is closed, the control voltage signal Vb is also generated based on the control signal with the minimum value, and the branch where the control signal with the minimum value is located is turned on. For the discharge current control circuit 330, under normal circumstances, the third discharge control circuit 333 will only work when the battery discharge current feedback signal is greater than the discharge reference current characterization threshold. In other cases, the size of the control voltage signal Vb is determined by the first or second discharge control branch. For example, when the first switch S1 is closed, when the input voltage feedback signal is less than the second voltage threshold, the first control signal increases, thereby increasing the control voltage signal Vb, so that the duty cycle of the PWM signal generated by the PWM modulation circuit increases, so as to increase the discharge current and stabilize the input voltage. When the second switch S2 is closed, when the input current feedback signal is greater than the first current characterization threshold, the second control signal increases, thereby increasing the control voltage signal Vb, so that the duty cycle of the PWM signal generated by the PWM modulation circuit increases, so as to increase the discharge current and stabilize the input current.

[0101] Further, Figure 4In the embodiment, the second comparison circuit 310 includes a first hysteresis comparator COM1, a second hysteresis comparator COM2, an AND gate U10 and an OR gate U9. The first input terminal of the first hysteresis comparator COM1 receives the first voltage threshold V1 or the third voltage threshold V3, the second input terminal receives the input voltage feedback signal VIN-FB, and the output terminal outputs switch control signals K5 and K6, and the switch control signal K6 is the inverted signal of K5. Here, because the hysteresis comparator COM0 has the same function as the first hysteresis comparator COM1, only one hysteresis comparator can be set. For example, the K1 and K2 signals output by COM0 can be multiplexed into K5 and K6 as the input signal of the OR gate U9, that is, one hysteresis comparator can be omitted. The first input terminal of the second hysteresis comparator COM2 receives the input current feedback signal IIN-FB, the second input terminal receives the second current characterization threshold V-I2 or the third current characterization threshold V-I3, and the output terminal outputs switch control signals K7 and K8, and the switch control signal K8 is the inverted signal of K7. The input end of the OR gate U9 receives the switch control signals K5 and K7 respectively, and the output end of the OR gate U9 is connected to the third switch S3, and the switch control signal K3 is output. The input end of the AND gate U10 receives the switch control signals K6 and K8 respectively, and the output end of the AND gate U10 is connected to the fourth switch S4, and the switch control signal K4 is output. In this embodiment, the first input end and the second input end are respectively a positive input end and a reverse input end. The second comparison circuit 310 closes the third switch S3 when any one of the input voltage feedback signal VIN-FB is less than the first voltage threshold V1 and the input current feedback signal IIN-FB is greater than the second current characterization threshold V-I2 is satisfied; the fourth switch S4 is closed when the input voltage feedback signal VIN-FB is greater than the third voltage threshold V3 and the input current feedback signal IIN-FB is less than the third current characterization threshold V-I3.

[0102] Further, the charging current control circuit 340 of the present embodiment includes a first charging control branch 341, a second charging control branch 342, a third charging control branch 343 and a fourth charging control branch 344. The first to fourth charging control branches are all connected to the PWM modulation circuit 350 through a fourth switch. Specifically, the first charging control branch 341 includes a fourth operational amplifier U4, a fourth compensation network and a fourth diode D4. The first input terminal and the second input terminal of the fourth operational amplifier U4 receive the battery voltage feedback signal VBAT-FB and the battery reference voltage threshold VBAT-R respectively. The output terminal is connected to the compensation network and the cathode of the fourth diode D4. The anode of the fourth diode D4 is connected to the PWM modulation circuit 350 through the fourth switch S4. The voltage generated at the output terminal of the fourth operational amplifier is the fourth control signal. The second charging control branch 342 includes a fifth operational amplifier U5, a fifth compensation network and a fifth diode D5. The first input terminal and the second input terminal of the fifth operational amplifier U5 receive the battery charging current feedback signal ICH-FB and the charging reference current characterization threshold value ICH-R respectively. The output terminal is connected to the fifth compensation network and the cathode of the fifth diode D5. The anode of the fifth diode D5 is connected to the PWM modulation circuit 350 through the fourth switch S4. The voltage generated at the output terminal of the fifth operational amplifier is the fifth control signal. The third charging control branch 343 includes a sixth operational amplifier U6, a sixth compensation network and a sixth diode D6. The first input terminal and the second input terminal of the sixth operational amplifier U6 receive the input current feedback signal IIN-FB and the first current characterization threshold value V-I1 respectively. The output terminal is connected to the sixth compensation network and the cathode of the sixth diode D6. The anode of the sixth diode D6 is connected to the PWM modulation circuit 350 through the fourth switch S4. The voltage generated at the output terminal of the sixth operational amplifier is the sixth control signal. The fourth charging control branch 344 includes a seventh operational amplifier U7, a seventh compensation network and a seventh diode D7. The first input terminal and the second input terminal of the seventh operational amplifier U7 receive the second voltage threshold V2 and the input voltage feedback signal VIN-FB respectively. The output terminal is connected to the seventh compensation network and the cathode of the seventh diode D2. The anode of the seventh diode D2 is connected to the PWM modulation circuit 350 through the fourth switch S4. The voltage generated at the output terminal of the seventh operational amplifier is the seventh control signal.

[0103] exist Figure 4In the embodiment, the operational amplifiers U4-U7 can also be transconductance operational amplifiers, which are the same as the operational amplifiers U1-U3. When the signal at the positive input terminal of the operational amplifier is larger than the signal at the negative input terminal, the value of the pull-down electric signal is also larger; the larger the value of the pull-down current signal, the smaller the voltage (corresponding to the corresponding control signal) generated by the corresponding operational amplifier at its output terminal. Similarly, based on the connection mode of the diodes D4-D7, the branch where the minimum value of the fourth to seventh control signals is located is turned on, and the control voltage signal Vb is generated based on the minimum value; when the control voltage signal Vb decreases, the duty cycle of the PWM signal generated by the PWM modulation circuit is reduced to reduce the charging current. For example, in the charging mode, when the signals at the positive input terminals of the operational amplifiers of the fourth to sixth charging control branches are all smaller than the signals at the reverse input terminals, and the input voltage feedback signal VIN-FB of the seventh charging control branch is smaller than the second voltage threshold V2 (i.e., the signal at the positive input terminal is greater than the signal at the reverse input terminal), the seventh control signal output by the operational amplifier U7 decreases, thereby reducing the control voltage signal Vb, and thereby reducing the duty cycle of the PWM signal to reduce the charging current. Figure 4 The current Ib2 shown in FIG. 1 is the current signal generated by the operational amplifier of the branch where the minimum value is located.

[0104] Furthermore, the above-mentioned compensation networks are all filter networks composed of a resistor R and a capacitor C, and each compensation network is, for example, connected between the output terminal of the operational amplifier and the ground terminal. Each compensation network may, for example, include a capacitor C and a resistor R connected in series, and another capacitor C connected in parallel across the capacitor C and the resistor R. Of course, the compensation network may also have other implementation forms, which are not limited here.

[0105] From the above description, it can be seen that for any charger, the corresponding feedback signal is obtained by sampling the input current and input voltage, and then according to the feedback signal and the corresponding threshold value set, the current loop control loop or voltage loop control loop of the charge and discharge control circuit is controlled to work in different modes, thereby adjusting the charge and discharge current. This allows chargers with different load capacities to provide stable power supply to the load, improves the adaptability of the charge and discharge control circuit and the charger, and allows different chargers to be used with the load to expand the usage scenarios.

[0106] like Figure 4 As shown, the PWM modulation circuit 350 also receives the inductor current sampling signal V-IL. The PWM modulation circuit 350 generates a PWM signal according to the control voltage signal Vb and the inductor current sampling signal V-IL of the power converter 110, wherein the inductor current sampling signal V-IL is generated via a second sampling circuit.

[0107] Figure 5 Show Figure 4A schematic circuit diagram of a PWM modulation circuit in a power drive circuit. Figure 5 As shown, the PWM modulation circuit 350 of this embodiment includes an eighth operational amplifier U8, an eighth compensation network, a ramp generating circuit 351 and a comparator COM3. The first input terminal and the second input terminal of the eighth operational amplifier U8 receive the control voltage signal Vb and the inductor current sampling signal V-IL respectively, and the output terminal generates an error amplification signal Vcomp. The eighth operational amplifier U8 is also a transconductance amplifier, and the compensation network is the same as described above. The current output by the transconductance amplifier U8 (when the signal at the positive input terminal of U8 is larger relative to the signal at the negative input terminal, the current output by U8 is larger, where the current direction is Figure 5 The voltage signal is generated by the compensation network (in the direction indicated by the arrow in the middle), and the error amplified signal Vcomp is obtained. The ramp generating circuit 351 is used to generate a periodic ramp signal Vramp. The first input terminal and the second input terminal of the comparator COM3 receive the error amplified signal Vcomp and the ramp signal Vramp respectively, and the output terminal outputs a PWM signal. In this embodiment, the first input terminal and the second input terminal are respectively the positive input terminal and the reverse input terminal. The driving circuit 360 generates driving signals DRV1 and DRV2 for the first transistor Q1 and the second transistor Q2 according to the PWM signal. Of course, the PWM modulation circuit 350 of the present invention only illustrates one embodiment here, and there may be other circuit implementation forms, for example, it can be implemented by using a control architecture such as a peak current or a valley current, as long as the duty cycle of the PWM signal can be adjusted to the expected increase or decrease according to the control voltage signal Vb.

[0108] It should be noted that Figure 4 The specific circuit diagram of each circuit module shown in is only one embodiment of the present invention, and other modified structures can also be used to implement it. For example, U1-U7 can use ordinary operational amplifiers (corresponding to the configuration of the circuit connected thereto). As long as it can generate a corresponding control signal according to the corresponding input signal and then generate a corresponding control voltage signal Vb, so that the duty cycle of the PWM signal generated by the PWM modulation circuit can be realized according to the expected change. In addition, the operational amplifier can also be reused, that is, less than 7 operational amplifiers can be set. For example, one of the operational amplifiers in the discharge mode can be reused with one of the operational amplifiers in the charging state.

[0109] The charge and discharge control system and charge and discharge control circuit of the embodiment of the present invention can utilize the energy of the charger as much as possible to further extend the service life of the battery, thereby adapting to various types of chargers with different load capacities. For chargers with strong load capacity, in the charging mode, when the input current increases to exceed the corresponding current threshold, the charging current will be reduced. When the load increases further, the charging current of the battery will drop to zero, and then the battery will enter a reverse discharge state. For chargers with weaker load capacity, in the charging mode, when the input voltage drops below the corresponding voltage threshold, the charging current will be reduced. When the load increases further, the charging current will drop to zero, and then the battery will enter a reverse discharge state, thereby preventing the charger from being pulled down. The following is combined with Figure 6a-6f Specifically analyze several working states of the charger and battery.

[0110] Figure 6a-6f A schematic diagram showing the operation of a charge and discharge control system under different operating states according to an embodiment of the present invention is shown.

[0111] State 1: The charger has sufficient power supply capacity, the battery is fully charged, and the current required by the load is much lower than the preset current threshold. The input current provided by the charger can match the current required by the load. Figure 6a As shown, the charge and discharge control system controls the power converter 110 to be in a non-operating state, and only the charger supplies power to the load.

[0112] State 2: The charger has sufficient power supply capacity, the battery is not fully charged, the current required by the load is much lower than the preset current threshold, and the input current provided by the charger can match the current required by the load and battery charging. Figure 6b As shown, the charge and discharge control system controls the working state of the power converter 110 by controlling the charging current (the second charging control branch 342), the charger supplies power to the load and charges the battery at the same time, and the battery maintains constant current charging.

[0113] State 3, the charger is removed. Figure 6c As shown, the charge and discharge control system controls the power converter 110 to be in a non-operating state, and by turning on the third transistor Q3, the battery is discharged through the third transistor Q3, and the battery alone supplies power to the load.

[0114] State 4: The charger's power supply capacity is insufficient, but sufficient to support the load, and the input current is much lower than the preset current threshold, so the charger supplies power to the load and charges the battery at the same time. When the load gradually increases, the input voltage gradually decreases. When the input voltage feedback signal decreases to less than the second voltage threshold, the voltage loop control loop in the charging mode is turned on to reduce the charging current. Figure 6d As shown, the charger gives priority to supplying power to the load and charges the battery at the same time, and reduces the charging current as the load increases.

[0115] State 5: The charger has sufficient power supply capacity and can provide the required current for both the load and the battery. However, the preset current threshold is small, which is less than the current required by the system load plus the preset charging current for charging the battery. At this time, the charger supplies power to the load and charges the battery at the same time. However, due to the input current limiting, when the load gradually increases and the input current exceeds the preset current threshold, the current loop control loop in the charging mode is turned on to reduce the charging current. At this time, if Figure 6d As shown, the charger gives priority to supplying power to the load and charges the battery at the same time, and reduces the charging current as the load increases.

[0116] State 6: The charger has sufficient power supply capacity to supply power to the load and charge the battery, but the preset current threshold is set to a small value, which is less than the current required by the load. At this time, the charger supplies power to the load alone, but as the load continues to increase, the input current exceeds the current threshold to a certain extent. At this time, the input voltage is still high, thereby triggering the current loop control loop in the discharge mode, the battery discharges, and the discharge current increases as the load increases. Figure 6e As shown, the charger and the battery supply power to the load at the same time, and the current loop control loop works in the discharge mode.

[0117] State 7: The charger's power supply capacity is insufficient to support the current required by the load, but the preset current threshold is greater than the current required by the load. At this time, the charger supplies all power to the load. As the load increases, the input current cannot increase and the input voltage decreases. When the input voltage drops to a certain level below the preset voltage threshold, the voltage loop control loop in the discharge mode is turned on and the battery discharges. And the discharge current increases as the load increases. Figure 6e As shown, the charger and the battery supply power to the load at the same time, and the voltage loop control loop works in the discharge mode.

[0118] When the voltage loop control loop in the discharge mode of the charge and discharge control system of the embodiment of the present invention is not used, when the charger's power supply capacity is insufficient and the input voltage feedback signal drops to the first voltage threshold, undervoltage protection may be triggered, and the charger cannot continue to supply power to the load. However, when the charge and discharge control system of the embodiment of the present invention is used, the voltage loop control loop can be entered in the discharge mode to increase the discharge current of the battery, so that the battery provides more power to the load, and the input voltage of the charger slowly stabilizes to a normal value, ensuring that the charger can continue to supply power to the load.

[0119] In addition, the charging mode and the discharging mode can also be switched with each other. For example, in state 5, as the load increases, the input current increases, and the charging current of the battery decreases. When the load continues to increase and the input current feedback signal increases to exceed the second current characterization threshold, the discharge mode is entered, and the discharge current increases as the load increases, so that it can be switched from state 5 to state 6. After the switch, the input current gradually stabilizes, and the battery provides more electrical energy to the load. When in state 4, the input voltage decreases as the load increases, thereby reducing the charging current. However, when the load continues to increase and the input voltage feedback signal decreases by the first voltage threshold, the discharge mode is entered. At this time, if the load increases again, the discharge current of the battery will increase, thereby switching from state 4 to state 7. Through the above examples, the charge and discharge control system of the present invention analyzes the relationship between the input current and input voltage and the load, so that the working state of the charger and the battery can be adaptively switched in different states under the charging mode and the discharging mode.

[0120] In state 8, the charger has short-term overload capability, that is, the input current can increase in a short period of time, thus triggering state 6 during the overload process. However, after a short-term overload, the charger's load capacity is insufficient, and the input voltage is reduced due to input current limiting. At this time, the charge and discharge control system operates in the voltage loop control loop in the discharge mode, entering state 7, and the battery will further discharge. Figure 6f As shown, the charger and the battery supply power to the load at the same time, and the discharge current of the battery increases, providing more power to the load.

[0121] The charge and discharge control system of the embodiment of the present invention adds a voltage loop control loop in the discharge mode on the basis of the current loop control loop in the discharge mode, which can ensure that chargers with different load capacities and overload capacities can work normally in the discharge mode. Furthermore, the charge and discharge control system can also automatically realize adaptive switching of different working states (state 1 to state 8) according to the changes in input voltage and input current, and realize reasonable power distribution.

[0122] Figure 7 FIG. 1 is a schematic diagram showing the relationship between the power supply capacity and load size of a charger connected to a charge and discharge control system according to an embodiment of the present invention. Figure 7 As shown in the figure, the maximum supply voltage of the charger is 20V, and the output capacity of the charger is set by setting the line resistance Rline. When Rline is set to 500mR, the output characteristics of the charger are shown as the straight line with black dots in the figure. Taking the line resistance Rline set to 500mR and the battery voltage of 10V as an example, the supply voltage of the charger decreases linearly with the increase of the load current ILoad. When the load current ILoad is 10A, the supply voltage of the charger is about 15V.

[0123] Figure 8-Figure 9Schematic working waveform diagrams of a charge and discharge control system according to an embodiment of the present invention supplying power to a load under different load states are respectively shown. Figure 8-Figure 9 The waveforms of input voltage VIN (corresponding to VIN-FB), input current IIN (corresponding to IIN-FB), battery voltage Vbat (corresponding to VBAT-FB), battery current IBAT (corresponding to ICH-FB or IDC-FB) and load current ISYS over time are shown in FIG. The battery voltage Vbat is basically maintained at about 10V. Figure 8-Figure 9 In the figure, ICH-FB corresponds to the battery charging current, and ICH-R corresponds to the 100% battery charging reference current; VBAT-FB corresponds to the battery voltage, and VBAT-R corresponds to the 100% battery reference voltage; IN-FB corresponds to the input current, and V-I1 corresponds to the 100% preset input current; VIN-FB corresponds to the input voltage, and V2 corresponds to the 100% preset input voltage; IDC-FB corresponds to the battery discharging current, and IDC-R corresponds to the 100% battery discharging reference current; that is, for Figure 8-Figure 9 In the example, the feedback signal of the corresponding parameter is the parameter itself. The waveform of the battery current IBAT represents the battery charging and discharging current. When the battery current IBAT is greater than zero, it represents the charging current and the circuit is in charging mode. When it is less than zero, it represents the discharging current and the circuit is in discharging mode. When the waveform of the effective state of the discharge mode is high, it means that it is in discharge mode, and when it is low, it means that it is in charging mode. When the waveform of the discharge current loop is high and low, it means that the current loop control loop is valid and invalid respectively. When the waveform of the discharge voltage loop is high and low, it means that the voltage loop control loop is valid and invalid respectively.

[0124] like Figure 8 As shown, the line resistance Rline is set to 500mR, the battery charging reference current is 3A, the preset input current is 8A, the preset input voltage is 18.5V, and the battery discharge reference current is 12A. Figure 8 In the figure, the time period t0-t1 is the soft start stage T0, and the time period t1-t2 is the charging stage T1. In the charging stage T1, the battery current IBAT is greater than zero, the input current IIN is less than the preset input current (8A), the input voltage VIN is greater than the preset input voltage (18.5V), the current loop and the voltage loop are not triggered, and the charger is in state 2, supplying power to the load and charging the battery at the same time.

[0125] At time t2, the input voltage VIN drops below the preset input voltage (18.5V), triggering the voltage loop in the charging state. The time period t2-t3 is the charging stage T2, the battery current IBAT is greater than zero, and it works in state 4. In this stage, as the load current ISYS increases, the input current IIN increases, the charging current decreases, and the input voltage VIN decreases.

[0126] At time t3, the input voltage VIN decreases to less than 95% of the preset input voltage, thus triggering the voltage loop control loop in the discharge state. The waveform corresponding to the discharge mode effective state and the discharge voltage loop begins to be high level, the waveform corresponding to the discharge current loop always maintains a low level, and the battery current IBAT is less than zero. In the t3-t4 time period, which is the discharge stage T3, the battery current IBAT is always less than zero. The discharge stage T3 corresponds to state 7, the input voltage VIN gradually stabilizes at about 18.5V, and the load current ISYS is maintained at about 6A. Before time t4, the load current ISYS gradually returns to zero. In the t4-t5 time period, the load current ISYS is 0, which is in the non-working stage T4. The charger and battery stop supplying power to the load, and the waveform corresponding to the discharge mode effective state and the discharge voltage loop begins to be low level.

[0127] At time t5 , the input voltage VIN is greater than the preset input voltage (18.5V), the battery current IBAT begins to be greater than zero, and is in the charging stage again. After time t5 , it is the charging stage T5 , which is in state 2 .

[0128] like Fig. 9 As shown, Figure 8 The difference between the two conditions is that the preset input current is 3A. Fig. 9 In the figure, the time period t0-t1 is the soft start stage T0, and the time period t1-t2 is the charging stage T1. In the charging stage T1, the charging current is greater than zero, the input current IIN is less than the preset input current, the input voltage VIN is greater than the preset input voltage, the current loop and the voltage loop are not triggered, and the charger is in state 2, supplying power to the load and charging the battery at the same time.

[0129] At time t2, the input voltage VIN is less than the preset input voltage (18.5V), triggering the voltage loop in the charging state. In addition, the input current IIN exceeds the preset input current (3A), triggering the current loop in the charging state. The time period t2-t3 is the charging stage T2, the battery current IBAT is greater than zero, and it works in state 4 or state 5. In this stage, as the load current ISYS increases, the input current IIN increases, and the battery current IBAT decreases.

[0130] At t3, the input current IIN exceeds 110% of the preset input current, triggering the current loop control loop in the discharge state. The waveform corresponding to the discharge mode effective state and the discharge current loop begins to be high level. The t3-t4 time period is the discharge stage T3, and the battery current IBAT changes to less than zero. The discharge stage T3 corresponds to state 6, so that the input current IIN gradually stabilizes at about 3A.

[0131] At time t4, the load current ISYS increases, a short-term overload phenomenon occurs, the input current IIN increases instantaneously, the input voltage VIN decreases instantaneously, and the output voltage VIN is less than 95% of the preset input voltage, triggering the input voltage loop in the discharge state. During the t4-t5 time period, the circuit is in a short-term overload state and gradually recovers, and is in state 8. During this time period, the discharge current loop switches to the discharge voltage loop, the discharge current loop waveform becomes a low level, and the discharge voltage loop waveform becomes a high level. After the short-term overload ends, the input voltage VIN gradually recovers to 18.5V, and the input current IIN recovers to about 3A.

[0132] From time t5, the input voltage VIN is greater than 105% of the preset input voltage, the discharge mode is exited, and the charging mode is entered, and the charging stage is returned. After time t5, it is the charging stage T5, which is in state 2.

[0133] from Figure 8-Figure 9 It can be seen that the charge and discharge control system of the embodiment of the present invention can adaptively switch the working state, and adaptively switch between different states of the charging mode and the discharging mode.

[0134] The present invention also provides a charge and discharge control method, which is applicable to the above Figure 2-Figure 9 The charge and discharge control circuit 200 and the charge and discharge control system 100 shown. The charge and discharge control system 100 includes a power converter, a charger, a load and a battery. The charge and discharge control circuit 200 controls the power converter to be in a buck mode in the charge mode so that the charger charges the battery, and controls the power converter to be in a boost mode in the discharge mode so that the battery discharges the load. The charge and discharge control method of this embodiment mainly includes: in the discharge mode, the hysteresis comparison circuit is used to determine whether the feedback signal of the input voltage is less than the first voltage threshold; when the feedback signal of the input voltage is less than the first voltage threshold, the magnitude of the control voltage signal is adjusted according to the input voltage feedback signal. The hysteresis comparison circuit is used to determine whether the feedback signal of the input voltage is greater than the third voltage threshold; when the input voltage feedback signal is greater than the third voltage threshold, the magnitude of the control voltage signal is controlled according to the input current feedback signal. A signal for determining the duty cycle of the PWM signal is generated according to the control voltage signal, and the PWM signal is used to drive the power converter. The duty cycle of the PWM signal is adjusted by adjusting the magnitude of the control voltage signal so that the magnitude of the discharge current of the battery changes in the expected direction; wherein, the second voltage threshold is a preset input voltage threshold, the first voltage threshold is less than the second voltage threshold, and the third voltage threshold is greater than the second voltage threshold.

[0135] Further, the first voltage threshold is, for example, 95% of the preset input voltage threshold, and the third voltage threshold is, for example, 105% of the preset input voltage threshold. The steps of this method correspond to the above-mentioned charge and discharge control system and circuit, and will not be described in detail.

[0136] In summary, according to the charge and discharge control circuit, charge and discharge control system and charge and discharge control method disclosed in the present invention, in the battery discharge mode where the charger and the battery supply power to the load at the same time, when the input voltage feedback signal is less than the first voltage threshold, the discharge current control circuit adjusts the size of the control voltage signal according to the size of the input voltage feedback signal, and then the PWM modulation circuit adjusts the duty cycle of the output PWM signal according to the control voltage signal, and controls the working state of the power converter to adjust the size of the discharge current of the battery. Thus, when the input voltage drops in the discharge mode so that the input voltage feedback signal is less than the first voltage threshold, the voltage loop controlled by the input voltage can be used to adjust the discharge current of the battery, so as to avoid the charger from turning on the undervoltage protection, so that the charger with insufficient load capacity can supply power to the load normally in the discharge mode. In the discharge mode, when the input voltage feedback signal is greater than the third voltage threshold, the discharge current control circuit adjusts the size of the control voltage signal according to the size of the input current feedback signal, and then the PWM modulation circuit adjusts the duty cycle of the output PWM signal according to the control voltage signal, and controls the working state of the power converter to adjust the size of the discharge current of the battery. The present invention can not only adjust the discharge current of the battery according to the voltage loop controlled by the input voltage, but also adjust the discharge current of the battery according to the current loop controlled by the input current, thereby ensuring that chargers with different load capacities and overload capacities can work normally in the discharge mode.

[0137] Furthermore, the control voltage signal, the duty cycle of the PWM signal and the discharge current are correlated. In the discharge mode, for the input voltage loop, when the input voltage feedback signal drops to less than the second voltage threshold, or for the input current loop, when the input current feedback signal is greater than the first current characterization threshold, the discharge current control circuit can adjust the size of the control voltage signal by adjusting the corresponding control signal it generates, so that the duty cycle of the PWM signal output by the PWM modulation circuit increases, thereby increasing the discharge current of the battery, providing more energy from the battery to the load, reducing the power supply pressure of the charger, and ensuring the stability of the power supply state of the charger.

[0138] The above-described implementation methods do not constitute a limitation on the protection scope of the technical solution. Any modification, equivalent replacement and improvement made within the spirit and principle of the above-described implementation methods shall be included in the protection scope of the technical solution.

Claims

1. A charge and discharge control circuit, applied to a charge and discharge control system, the charge and discharge control system comprising a power converter, a charger, a load and a battery; the charge and discharge control circuit controls the power converter to be in a buck mode in a charge mode so that the charger charges the battery, and controls the power converter to be in a boost mode in a discharge mode so that the battery discharges to the load, wherein: The charge and discharge control circuit comprises: A PWM modulation circuit, used for generating a PWM signal, wherein the PWM signal is used for driving the power converter; a discharge current control circuit, forming a path with the PWM modulation circuit in a discharge mode, and generating a control voltage signal at a first input terminal of the PWM modulation circuit based on an output of the discharge current control circuit; a first comparison circuit, wherein the first comparison circuit is a hysteresis comparison circuit, and compares the input voltage feedback signal with a first voltage threshold or with a third voltage threshold; the first voltage threshold is less than the second voltage threshold, the second voltage threshold represents a preset input voltage threshold, and the third voltage threshold is greater than the second voltage threshold; In the discharge mode, when the input voltage feedback signal is less than the first voltage threshold, the discharge current control circuit adjusts the magnitude of the control voltage signal according to the input voltage feedback signal; when the input voltage feedback signal is greater than the third voltage threshold, the discharge current control circuit adjusts the magnitude of the control voltage signal according to the input current feedback signal; The PWM modulation circuit adjusts the duty cycle of the PWM signal according to the control voltage signal so that the discharge current of the battery changes in a desired direction.

2. The charge and discharge control circuit according to claim 1, wherein: The first voltage threshold is 85%-95% of the second voltage threshold, and the third voltage threshold is 105%-115% of the second voltage threshold.

3. The charge and discharge control circuit according to claim 1, wherein: The discharge current control circuit comprises: a first discharge control branch, in a discharge mode, when the input voltage feedback signal is less than the first voltage threshold, the first comparison circuit forms a path between the first discharge control branch and the PWM modulation circuit, the first discharge control branch generates a first control signal according to the input voltage feedback signal and the second voltage threshold; the discharge current control circuit adjusts the magnitude of the control voltage signal according to the magnitude of the first control signal; The second discharge control branch, in the discharge mode, when the input voltage feedback signal is greater than the third voltage threshold, the first comparison circuit forms a path between the second discharge control branch and the PWM modulation circuit, and the second discharge control branch generates a second control signal according to the input current feedback signal and the first current characterization threshold; the discharge current control circuit adjusts the size of the control voltage signal according to the size of the second control signal; the first current characterization threshold represents a preset input current threshold.

4. The charge and discharge control circuit according to claim 3, wherein: In the discharge mode, when the input voltage feedback signal is less than the first voltage threshold, the duty cycle of the PWM signal generated by the PWM modulation circuit is increased based on the first control signal to increase the discharge current; In the discharge mode, when the input voltage feedback signal is greater than the third voltage threshold and the input current feedback signal is greater than the first current characterization threshold, the duty cycle of the PWM signal generated by the PWM modulation circuit is increased based on the second control signal to increase the discharge current.

5. The charge and discharge control circuit according to claim 3, wherein: The discharge current control circuit further includes: A third discharge control branch forms a path with the PWM modulation circuit in a discharge mode, and the third discharge control branch generates a third control signal according to the battery discharge current feedback signal and the discharge reference current characterization threshold value; Wherein, in the discharge mode, when the input voltage feedback signal is less than the first voltage threshold, the discharge current control circuit adjusts the magnitude of the control voltage signal according to the magnitudes of the first control signal and the third control signal; In the discharge mode, when the input voltage feedback signal is greater than the third voltage threshold, the discharge current control circuit adjusts the magnitude of the control voltage signal according to the magnitudes of the second control signal and the third control signal.

6. The charge and discharge control circuit according to claim 5, wherein: When the battery discharge current feedback signal is greater than a discharge reference current characterization threshold, the discharge current control circuit preferentially reduces the duty cycle of the PWM signal generated by the PWM modulation circuit based on the third control signal to reduce the discharge current.

7. The charge and discharge control circuit according to claim 6, wherein: The first discharge control branch comprises a first operational amplifier, a first compensation network, a first diode and a first switch connected in sequence, wherein the first input terminal and the second input terminal of the first operational amplifier receive the input voltage feedback signal and the second voltage threshold respectively, the output terminal is connected to the first compensation network and the cathode of the first diode, and the first switch is connected to the branch between the anode of the first diode and the PWM modulation circuit; the voltage generated at the output terminal of the first operational amplifier is the first control signal; The second discharge control branch comprises a second operational amplifier, a second compensation network, a second diode and a second switch connected in sequence, the first input terminal and the second input terminal of the second operational amplifier respectively receive the first current characterization threshold and the input current feedback signal, the output terminal is connected to the second compensation network and the cathode of the second diode, and the second switch is connected to the branch between the anode of the second diode and the PWM modulation circuit; the voltage generated at the output terminal of the second operational amplifier is the second control signal; The third discharge control branch comprises a third operational amplifier, a third compensation network and a third diode connected in sequence, wherein the first input terminal and the second input terminal of the third operational amplifier receive the battery discharge current feedback signal and the discharge reference current characterization threshold value respectively, and the output terminal is connected to the third compensation network and the cathode of the third diode, and the voltage generated at the output terminal of the third operational amplifier is the third control signal; In the discharge mode, when the input voltage feedback signal is less than the first voltage threshold, the first switch is turned on, and a path is formed between the anode of the first diode and the anode of the third diode and the PWM modulation circuit; when the input voltage feedback signal is greater than the third voltage threshold, the second switch is turned on, and a path is formed between the anode of the second diode and the anode of the third diode and the PWM modulation circuit.

8. The charge and discharge control circuit according to claim 7, wherein: The first operational amplifier, the second operational amplifier and the third operational amplifier are all transconductance operational amplifiers; The charge and discharge control circuit further includes a pull-up current source, and the pull-up current source is connected to the first input terminal of the PWM modulation circuit.

9. The charge and discharge control circuit according to claim 1, wherein: The charge and discharge control circuit further includes: A charging current control circuit, which forms a path with the PWM modulation circuit in a charging mode and adjusts the magnitude of the control voltage signal based on the output of the charging current control circuit; Among them, the charging current control circuit adjusts the size of the control voltage signal according to the input current feedback signal, the input voltage feedback signal, the battery voltage feedback signal and the battery charging current feedback signal, so that the PWM modulation circuit adjusts the duty cycle of the PWM signal so that the size of the charging current of the battery changes in the expected direction.

10. The charge and discharge control circuit according to claim 9, wherein: The charge and discharge control circuit further includes: A third switch connected between the discharge current control circuit and the PWM modulation circuit; a fourth switch connected between the charging current control circuit and the PWM modulation circuit; In the discharge mode, the third switch is in the on state and the fourth switch is in the open state; in the charge mode, the fourth switch is in the on state and the third switch is in the open state.

11. The charge and discharge control circuit according to claim 10, wherein: The charge and discharge control circuit further includes: a second comparison circuit, wherein the second comparison circuit comprises a first hysteresis comparator and a second hysteresis comparator, wherein the first hysteresis comparator compares the input voltage feedback signal with a first voltage threshold or a third voltage threshold; and the second hysteresis comparator compares the input current feedback signal with a second current characterization threshold or a third current characterization threshold, and controls the on and off of the third switch and the fourth switch according to the comparison results of the first hysteresis comparator and the second hysteresis comparator. Wherein, when any one of the input voltage feedback signal is less than the first voltage threshold and the input current feedback signal is greater than the second current characterization threshold is satisfied, the third switch is turned on; when the input voltage feedback signal is greater than the third voltage threshold and the input current feedback signal is less than the third current characterization threshold, the fourth switch is turned on; The second current characterization threshold is greater than the first current characterization threshold, the third current characterization threshold is less than the first current characterization threshold, and the first current characterization threshold characterizes a preset input current threshold.

12. The charge and discharge control circuit according to claim 11, wherein: The second current characterization threshold is 105%-115% of the first current characterization threshold, and the third current characterization value is 80%-95% of the first current characterization value.

13. The charge and discharge control circuit according to claim 9, wherein: The charging current control circuit comprises: A first charging control branch forms a path with the PWM modulation circuit in a charging mode, and generates a fourth control signal according to the battery voltage feedback signal and the battery reference voltage threshold; A second charging control branch forms a path with the PWM modulation circuit in a charging mode, and generates a fifth control signal according to the battery charging current feedback signal and the charging reference current characterization threshold value; A third charging control branch, in a charging mode, forms a path with the PWM modulation circuit, and generates a sixth control signal according to the input current feedback signal and the first current characterization threshold, wherein the first current characterization threshold represents a preset input current threshold; The fourth charging control branch forms a path with the PWM modulation circuit in the charging mode, and generates a seventh control signal according to the input voltage feedback signal and the second voltage threshold. Among them, in the charging mode, the charging current control circuit adjusts the size of the control voltage signal according to the size of the fourth control signal to the seventh control signal, so that the PWM modulation circuit adjusts the duty cycle of the PWM signal so that the size of the battery charging current changes in the expected direction.

14. The charge and discharge control circuit according to claim 13, wherein: The first charging control branch comprises a fourth operational amplifier, a fourth compensation network and a fourth diode, wherein the first input terminal and the second input terminal of the fourth operational amplifier receive the battery voltage feedback signal and the battery reference voltage threshold respectively, and the output terminal is connected to the fourth compensation network and the cathode of the fourth diode, and the voltage generated at the output terminal of the fourth operational amplifier is the fourth control signal; The second charging control branch comprises a fifth operational amplifier, a fifth compensation network and a fifth diode, wherein a first input terminal and a second input terminal of the fifth operational amplifier receive the battery charging current feedback signal and the charging reference current characterization threshold value respectively, and an output terminal is connected to the fifth compensation network and the cathode of the fifth diode, and a voltage generated at the output terminal of the fifth operational amplifier is the fifth control signal; The third charging control branch comprises a sixth operational amplifier, a sixth compensation network and a sixth diode, wherein the first input terminal and the second input terminal of the sixth operational amplifier receive the input current feedback signal and the first current characterization threshold value respectively, and the output terminal is connected to the sixth compensation network and the cathode of the sixth diode, and the voltage generated at the output terminal of the sixth operational amplifier is the sixth control signal; The fourth charging control branch comprises a seventh operational amplifier, a seventh compensation network and a seventh diode, wherein the first input terminal and the second input terminal of the seventh operational amplifier receive the second voltage threshold and the input voltage feedback signal respectively, and the output terminal is connected to the seventh compensation network and the cathode of the seventh diode, and the voltage generated at the output terminal of the seventh operational amplifier is the seventh control signal; In the charging mode, anodes of the fourth diode to the seventh diode all form a path with the PWM modulation circuit.

15. The charge and discharge control circuit according to claim 14, wherein: The fourth operational amplifier to the seventh operational amplifier are all transconductance operational amplifiers; The charge and discharge control circuit further includes a pull-up current source, and the pull-up current source is connected to the first input terminal of the PWM modulation circuit.

16. The charge and discharge control circuit according to any one of claims 1 to 15, wherein: The PWM modulation circuit comprises: an eighth operational amplifier, wherein the first input terminal and the second input terminal of the eighth operational amplifier receive the control voltage signal and the inductor current sampling signal respectively, and the output terminal generates an error amplification signal; A ramp generating circuit generates a periodic ramp signal; A comparator, wherein the first input terminal and the second input terminal of the comparator receive the error amplified signal and the ramp signal respectively, and the output terminal outputs the PWM signal.

17. A charge and discharge control system, comprising a charger, a load and a battery, comprising: The charge and discharge control circuit according to any one of claims 1 to 16; as well as A power converter is connected to the charge and discharge control circuit, the power converter includes a first transistor, a second transistor and an inductor, the charge and discharge control circuit generates a first drive signal and a second drive signal according to the PWM signal, and controls the working state of the first transistor and the second transistor respectively. The charge and discharge control circuit controls the power converter to be in a buck mode in a charging mode so that the charger charges the battery, and controls the power converter to be in a boost mode in a discharging mode so that the battery discharges to the load.

18. A charge and discharge control method, applicable to a charge and discharge control circuit, wherein the charge and discharge control circuit is applied to a charge and discharge control system, wherein the charge and discharge control system comprises a power converter, a charger, a load and a battery, wherein the charge and discharge control circuit controls the power converter to be in a buck mode in a charge mode so that the charger charges the battery, and controls the power converter to be in a boost mode in a discharge mode so that the battery discharges to the load, wherein: The charge and discharge control method comprises: In the discharge mode, a hysteresis comparison circuit is used to determine whether the feedback signal of the input voltage is less than a first voltage threshold; When the feedback signal of the input voltage is less than the first voltage threshold, adjusting the magnitude of the control voltage signal according to the input voltage feedback signal; Determining whether the feedback signal of the input voltage is greater than a third voltage threshold by the hysteresis comparison circuit; When the input voltage feedback signal is greater than the third voltage threshold, adjusting the magnitude of the control voltage signal according to the input current feedback signal; generating a signal for determining a duty cycle of a PWM signal according to the control voltage signal, wherein the PWM signal is used to drive the power converter; Among them, the duty cycle of the PWM signal is adjusted by adjusting the size of the control voltage signal so that the size of the discharge current of the battery changes in the expected direction; the second voltage threshold is a preset input voltage threshold, the first voltage threshold is less than the second voltage threshold, and the third voltage threshold is greater than the second voltage threshold.

Citation Information

Cited By

  • Power supply system controlled by double current loops and capacity checking method thereof

    CN119382278A

  • Dual current loop controlled power supply system and its core capacity method

    CN119382278B

  • High-reliability control circuit and method for charging and discharging high-speed switching of DCDC power supply

    CN121461560A