Charge-discharge control device

By using voltage conversion circuits and switch state switching in the charge/discharge control device, the problem of low-voltage batteries being unable to provide power is solved, enabling power supply to the system at low voltage and compatibility with multiple operating modes, thereby improving the battery life of electronic devices and the user experience.

CN115336159BActive Publication Date: 2026-07-21HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2021-03-10
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

In existing technologies, low-voltage batteries cannot power electronic devices when the voltage is below a threshold, resulting in reduced battery life, and existing solutions are highly complex.

Method used

It adopts a charge and discharge control device, which includes a voltage conversion circuit and multiple switches. Voltage conversion is achieved by controlling the state switching of the switches. It is compatible with multiple working modes and ensures that the low-voltage battery can power the system when the voltage is low.

Benefits of technology

It can power the system at low voltage and is compatible with multiple operating modes, simplifying the voltage conversion process and improving the battery life and user experience of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115336159B_ABST
    Figure CN115336159B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a charging and discharging control device. The charging and discharging control device comprises a first interface for coupling an external device, a second interface for coupling a load circuit and a third interface for coupling a battery, a voltage conversion circuit, a first switch, a second switch and a third switch, the voltage conversion circuit is coupled between the third switch and the third interface, the first switch is coupled between the second interface and a first end of the voltage conversion circuit; the second switch is coupled between the second interface and a second end of the voltage conversion circuit, the second end of the voltage conversion circuit is coupled to the third interface; the third switch is coupled between the first interface and the first end of the voltage conversion circuit, and the voltage conversion circuit is used for converting the voltage of the first interface or the voltage of the third interface. The embodiment of the present application can supply power to the system when the low-voltage battery is at low voltage, can be compatible with different working modes, and is simple to implement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic technology, and in particular to a charge and discharge control device. Background Technology

[0002] Currently, electronic devices such as mobile phones, wireless headphones, and tablets have become commonplace in people's daily lives. However, as electronic devices become increasingly functional, the demands on their battery life are also rising.

[0003] Low-voltage batteries (such as silicon anode batteries) are widely used to power electronic devices due to their superior battery life. For example, silicon anode batteries can still power electronic devices even at voltages below 3.5V. One existing power supply solution is... Figure 1 As shown, the low-voltage battery is connected to the system's power supply interface VSYS via a voltage converter, such as a buck / boost circuit, and a switching transistor. However, when the battery voltage is below a threshold (e.g., 3.5V), the system's supply voltage is insufficient, causing the low-voltage battery to fail to power the electronic device, reducing its battery life and impacting the user experience. While some existing solutions utilize low-voltage batteries, they require additional boost converters, resulting in high implementation complexity. Summary of the Invention

[0004] The embodiments of this application provide a charge and discharge control device. Using the embodiments of this application, the system can be powered when the low-voltage battery is at a low voltage, and it is compatible with different working modes and is simple to implement.

[0005] In a first aspect, embodiments of this application provide a charge / discharge control device, including a first interface for coupling to an external device, a second interface for coupling to a load circuit, and a third interface for coupling to a battery. The charge / discharge control device further includes a voltage conversion circuit, a first switch, a second switch, and a third switch. The first switch is coupled between the second interface and a first terminal of the voltage conversion circuit; the second switch is coupled between the second interface and a second terminal of the voltage conversion circuit; the second terminal of the voltage conversion circuit is coupled to the third interface; and the third switch is coupled between the first interface and the first terminal of the voltage conversion circuit. The voltage conversion circuit is used to convert the voltage of the first interface or the voltage of the third interface. Using embodiments of this application, power can be supplied to the system when the low-voltage battery is at a low voltage, and it is compatible with multiple different operating modes, making implementation simple.

[0006] In one possible design, the voltage conversion circuit includes an inductor, with a first terminal of the inductor coupled to a first terminal of the voltage conversion circuit and a second terminal of the inductor coupled to a second terminal of the voltage conversion circuit. Based on this design, embodiments of this application can be compatible with various operating modes and are simple to implement.

[0007] In one possible design, the voltage conversion circuit further includes a fifth switch; the first terminal of the fifth switch is coupled to a constant voltage terminal, and the second terminal of the fifth switch is coupled to the first terminal of the voltage conversion circuit. Based on this design, embodiments of this application can supply power to the system when the low-voltage battery is at a low voltage, and can operate in buck mode, making implementation simple.

[0008] In one possible design, the voltage conversion circuit further includes a fifth switch; the first terminal of the fifth switch is coupled to a constant voltage terminal, and the second terminal of the fifth switch is coupled to a second terminal of the voltage conversion circuit. Based on this design, embodiments of this application can power the system when the low-voltage battery is at a low voltage, and can operate in boost mode.

[0009] In one possible design, the voltage conversion circuit includes a sixth switch; a first terminal of the sixth switch is coupled to a second terminal of the voltage conversion circuit, and a second terminal of the sixth switch is coupled to a second terminal of the inductor and a second terminal of the fifth switch. Based on this design, embodiments of this application can power the system when the low-voltage battery is at a low voltage and can operate in boost mode.

[0010] In one possible design, the voltage conversion circuit further includes a sixth switch; a first terminal of the sixth switch is coupled to a constant voltage terminal, and a second terminal of the sixth switch is coupled to a second terminal of the voltage conversion circuit. Based on this design, embodiments of this application can power the system when the low-voltage battery is at a low voltage, and can operate in buck-boost mode.

[0011] In one possible design, the voltage conversion circuit further includes a seventh switch; the first terminal of the seventh switch is coupled to the second terminal of the voltage conversion circuit, and the second terminal of the seventh switch is coupled to the second terminal of the inductor and the second terminal of the sixth switch. Based on this design, embodiments of this application can power the system when the low-voltage battery is at a low voltage and can operate in buck-boost mode.

[0012] In one possible design, the voltage conversion circuit includes a fourth switch, a fifth switch, a sixth switch, and a capacitor; the fourth switch is coupled between a first terminal and a second terminal of the voltage conversion circuit; the first terminal of the capacitor is coupled to the first terminal of the voltage conversion circuit; the second terminal of the capacitor is coupled to the second terminal of the fifth switch; the first terminal of the fifth switch is coupled to the second terminal of the voltage conversion circuit; the first terminal of the sixth switch is coupled to the second terminal of the fifth switch; and the second terminal of the sixth switch is coupled to a constant voltage terminal.

[0013] In one possible design, the charge / discharge control device further includes a control circuit coupled to the first interface, used to detect the first detected connection state; the control circuit is further used to: control the first switch to be in an off state and control the second switch to be in a closed or dynamically switched state when a power adapter is connected to the first interface; control the first switch to be in an open state and control the second switch to be in a closed state when the first interface is not connected to a power adapter and the operating voltage of the load and the voltage of the battery are the same; control the first switch to be in a dynamically switched state and control the second switch to be in an open state when the first interface is not connected to a power adapter and the operating voltage of the load and the voltage of the battery are different. Based on this design, embodiments of this application can control the state of the first switch or the second switch to supply power to the system when the low-voltage battery is at a low voltage, compatible with multiple different operating modes, and simple to implement.

[0014] Optionally, the constant voltage terminal mentioned above can be a ground terminal.

[0015] Secondly, embodiments of this application provide an electronic device including the aforementioned charge / discharge control device. Optionally, the electronic device further includes a load circuit. Optionally, the electronic device further includes a battery.

[0016] Thirdly, embodiments of this application provide a charging and discharging control method, including the process executed by the aforementioned control circuit.

[0017] The charging and discharging control device provided in this application embodiment couples a first interface to a first terminal of a voltage conversion circuit, a third interface to a second terminal of the voltage conversion circuit, a first switch between the first terminal of the voltage conversion circuit and the second interface, and a second switch between the second interface and the second terminal of the voltage conversion circuit. By controlling the operating state of the switches, the charging and discharging function of the battery can be controlled accordingly. Therefore, using this embodiment, power can be supplied to the system when the low-voltage battery is at a low voltage, and it is compatible with multiple different operating modes, offering a simple implementation. Attached Figure Description

[0018] Figure 1This is a schematic diagram of a charging and discharging scheme for an electronic device in the prior art.

[0019] Figure 2 This is a schematic diagram of an electronic device according to an embodiment of this application.

[0020] Figure 3 This is a schematic diagram of the charge / discharge control device according to an embodiment of this application.

[0021] Figure 4 yes Figure 3 A schematic diagram of a specific structure of a charge / discharge control device.

[0022] Figure 5 This is another schematic diagram of the charge / discharge control device according to an embodiment of this application.

[0023] Figure 6 This is a circuit diagram of the charge / discharge control device according to an embodiment of this application.

[0024] Figure 7 yes Figure 5 Working mode diagram of the charging and discharging control device.

[0025] Figure 8 yes Figure 5 The diagram shows the working mode of the charge and discharge control device.

[0026] Figure 9 yes Figure 5 The diagram shows the working mode of the charge and discharge control device.

[0027] Figure 10 This is a circuit diagram of another embodiment of the charge / discharge control device of this application.

[0028] Figure 11 This is a circuit diagram of another embodiment of the charge / discharge control device of this application.

[0029] Figure 12 This is a circuit diagram of another embodiment of the charge / discharge control device of this application.

[0030] Figure 13 This is a circuit diagram of another embodiment of the charge / discharge control device of this application.

[0031] Figure 14 This is a flowchart of the charging and discharging control method according to an embodiment of this application.

[0032] Explanation of main component symbols

[0033] electronic devices 100 Charge and discharge control device 10 voltage converter 11 Vbus interface 12 Vbat interface 13 VsysH interface 15 control circuit 16 VsysL interface 17 VsysHL interface 18 Voltage conversion circuit 19 Battery 20 Load circuit 30 External devices 40 Inductor L1 switch Q1-Q7

[0034] The following detailed description of the embodiments will further illustrate this application in conjunction with the above-described drawings. Detailed Implementation

[0035] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.

[0036] In the embodiments of this application, terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or order. For example, "first application" and "second application" are used to distinguish different applications, not to describe a specific order of applications. Features specified as "first" or "second" may explicitly or implicitly include one or more of those features.

[0037] In the description of the embodiments in this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design options. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0038] Embodiments of this application provide a charge / discharge control device and electronic device that can supply power to the system when the low-voltage battery is at a low voltage, and is compatible with different operating modes, with simple implementation. Please refer to... Figure 2 This is a schematic diagram of the structure of an electronic device 100 provided in one embodiment of this application. The electronic device 100 in this embodiment may include a charge / discharge control device 10, a battery 20, and a load circuit 30.

[0039] In one possible application scenario, if the charge / discharge control device 10 is coupled to an external device 40, the external device 40 can also charge the electronic device 100, such as a power adapter. In this case, the battery 20 can receive the charging current from the power adapter, and the charge / discharge control device 10 can convert the charging voltage of the power adapter and use the converted voltage to power the load circuit 30. In another possible application scenario, if the charge / discharge control device 10 is not coupled to a power adapter, the battery 20 can be used to power the load circuit 30. It is understood that the electronic device 100 can be a mobile phone, wireless headset, tablet computer, or other electronic products; this application does not limit this.

[0040] Please see Figure 3 The charging and discharging control device 10 provided in the embodiments of this application will be illustrated below with reference to the accompanying drawings and actual application scenarios. Figure 3The diagram shown is a schematic diagram of the circuit structure of a charge / discharge control device 10 provided in one embodiment of this application. In this embodiment, the charge / discharge control device 10 may include a voltage converter 11, switches Q1 and Q2, a Vbus interface 12, a Vbat interface 13, electrical nodes Vsys and VsysH interfaces 15, and a control circuit 16. The voltage converter 11 in this embodiment may include a switch Q3 and a voltage conversion circuit 19.

[0041] Understandably, in one possible embodiment, the Vbus interface 12 can be used to couple to an external device 40, the Vbat interface 13 can be used to couple to the battery 20, and the VsysH interface 15 can be used to couple to the load circuit 30 in the electronic device 100. The voltage converter 11 is coupled between the Vbus interface 12 and the Vbat interface 13 to convert the voltage of the Vbus interface 12 or the voltage of the Vbat interface 13. Specifically, the voltage conversion circuit 19 can be coupled between the switch Q3 and the Vbat interface 13, and the voltage conversion circuit 19 can be used to convert the voltage of the Vbus interface 12 or the voltage of the Vbat interface 13.

[0042] The voltage conversion circuit 19 is coupled to electrical node Vsys1 between the first terminal of switch Q1 and the first terminal of switch Q3. The second terminal of switch Q1 is coupled to the VsysH interface 15, and the third terminal of switch Q1 is coupled to the control circuit 16. The third terminal is a control terminal. The first terminal of switch Q2 is coupled to electrical node Vsys2 between the Vbat interface 13 and the voltage conversion circuit 19. The second terminal of switch Q2 is coupled to the VsysH interface 15, and the third terminal of switch Q2 is coupled to the control circuit 16. The third terminal is a control terminal. The first terminal of switch Q3 is coupled to the voltage conversion circuit 19. The second terminal of switch Q3 is coupled to the Vbus interface 12, and the third terminal of switch Q3 is coupled to the control circuit 16. The third terminal is a control terminal. In this embodiment, the control circuit 16 can be used to control the operating states of switches Q1, Q2, and Q3. It is understood that in some embodiments, the electrical node Vsys1 can serve as the first terminal of the voltage conversion circuit 19, and the electrical node Vsys2 can serve as the second terminal of the voltage conversion circuit 19.

[0043] Please see Figure 4 , Figure 4 for Figure 3 A schematic diagram of a specific structure of a charge / discharge control device. (See diagram below.) Figure 4As shown, in this embodiment, the voltage converter 11 further includes switches Q5, Q6, and Q7, and capacitor C1. Wherein, Figure 3 The voltage conversion circuit 19 mentioned above includes the switch Q6, the switch Q7 and the capacitor C1.

[0044] The first terminal of switch Q5 is coupled to electrical node Vsys1 between the first terminals of switch Q3 and switch Q1. The second terminal of switch Q5 is coupled to electrical node Vsys2. The third terminal of switch Q5 is coupled to control circuit 16, which is a control terminal and can be used to control the operating state of switch Q5. The first terminal of switch Q6 is coupled to the second terminal of switch Q5. The second terminal of switch Q6 is coupled to the first terminal of Q7. The third terminal of switch Q6 is coupled to control circuit 16, which is a control terminal and can be used to control the operating state of switch Q6. The first terminal of switch Q7 is coupled to the second terminal of switch Q6, which is also the second terminal of capacitor C1. The second terminal of switch Q7 is coupled to ground. The third terminal of switch Q7 is coupled to control circuit 16, which is a control terminal and can be used to control the operating state of switch Q7. The first terminal of capacitor C1 is coupled to electrical node Vsys1, which is also the first terminal of switch Q5. The second terminal of capacitor C1 is coupled to the first terminal of switch Q7, which is also the second terminal of switch Q6. The control circuit 16 can be coupled to the third terminals of switches Q1-Q3 and Q5-Q7, thereby controlling the operating state of switches Q1-Q3 and Q5-Q7.

[0045] In some possible designs, switches Q1-Q3 and Q5-Q7 can all be field-effect transistors (FETs). In other possible designs, switches Q1-Q3 and Q5-Q7 can also be other types of electronic switches. This application does not limit this. In one possible application scenario, taking a mobile phone as an example, the charging and discharging control device 10 in this application embodiment will be illustrated.

[0046] For example, when the power adapter is electrically connected to the Vbus interface 12, the control circuit 16 outputs a signal to the third terminal of switch Q1 to control switch Q1 to be in the off state. The control circuit 16 also outputs a signal to the third terminal of switch Q2 to control switch Q2 to be in the always-on state. The control circuit 16 also outputs signals to the third terminals of switches Q3, Q5, Q6, and Q7. The duty cycle of switches Q3 and Q6 is 0.5, and the duty cycle of switches Q5 and Q7 is opposite to that of switch Q3, also 0.5. This causes the voltage converter 11 to enter the 2:1 switched capacitor (SC) step-down operating mode.

[0047] It is understood that the transmission gain functions of the Vbus interface 12, Vbat interface 13, and VsysHL interface 18 can satisfy the following formula:

[0048] V bat =V sysHL =0.5×V bus (1)

[0049] In the above formula (1), V bat The voltage value of the Vbat interface 13, V sysHL The voltage value for VsysHL interface 18, V bus The voltage value of the Vbus interface 12.

[0050] For example, when the power adapter is not electrically connected to the Vbus interface 12, the control circuit 16 will also output a signal to the third terminal of switch Q2 to control the second switch Q2 to be in the off state. The control circuit 16 will also output a signal to the third terminal of switch Q3 to control the second switch Q3 to be in the off state. The control circuit 16 outputs signals to the third terminals of switch Q1 and the third terminals of switches Q5, Q6, and Q7 to control switches Q1, Q5, Q6, and Q7 to be in a dynamic switching state. In this embodiment, the duty cycle of switch Q1 can be set to 0.5, the duty cycle of switch Q6 can be in phase with that of switch Q1, and the duty cycles of switches Q5 and Q7 can be out of phase with that of switch Q1, also set to 0.5.

[0051] Therefore, the transmission gain functions of the Vbat interface 13 and the VsysHL interface 18 can satisfy the following formula:

[0052] V sysHL =2×V bat (2)

[0053] In formula (2) above, V bat The voltage value of the Vbat interface 13, V sysHL This refers to the voltage value of the VsysHL interface 18.

[0054] Please see Figure 5 , Figure 5 This is a schematic diagram of another embodiment of the charge / discharge control device 10 provided in this application. Figure 5 As shown, in this embodiment, the voltage converter may further include a switch Q4. The first terminal of switch Q4 is coupled to the Vbat interface 13, the second terminal of switch Q4 is coupled to the electrical node Vsys2, and the third terminal of switch Q4 is coupled to the control circuit 16. The third terminal is a control terminal, and the control circuit 16 can be used to control the operating state of switch Q4. Switch Q4 is used to enable the output of the Vbat interface 13.

[0055] Please see Figure 6 , Figure 6 This is a schematic diagram of another embodiment of the charge / discharge control device 10 provided in this application. In this embodiment, the voltage conversion circuit 19 may include an inductor L1 and a switch Q5. The first end of the inductor L1 is coupled to the electrical node Vsys1 between the first end of the switch Q3 and the first end of the switch Q1, that is, coupled to the Vbus interface 12 through the switch Q3. The second end of the inductor L1 is coupled to the electrical node Vsys2, that is, coupled to the Vbat interface 13 through the switch Q4.

[0056] It is understood that the first end of the inductor L1 is the end furthest from the Vbat interface 13. The first end of the switch Q5 is grounded, the second end of the switch Q5 is coupled to the first end of the inductor L1 and the electrical node Vsys1, and the third end of the switch Q5 is coupled to the control circuit 16, where the third end is the control terminal. It is understood that in this embodiment or subsequent embodiments, the grounding can be replaced by coupling to a constant voltage, for example, the first end of the switch Q5 is coupled to a relatively low constant voltage, so that the switch Q5 can act as a channel for discharging current.

[0057] The first terminal of switch Q1 can be coupled to the first terminal of inductor L1 via electrical node Vsys1. The second terminal of switch Q1 can be coupled to VsysH interface 15. The third terminal of switch Q1 can be coupled to control circuit 16, and the third terminal is a control terminal. The first terminal of switch Q2 can be coupled to the second terminal of inductor L1 via electrical node Vsys2. The second terminal of switch Q2 can be coupled to VsysH interface 15. The third terminal of switch Q2 can be coupled to control circuit 16, and the third terminal is a control terminal.

[0058] The first terminal of the switch Q3 can be coupled to the first terminal of the inductor L1 through the electrical node Vsys1, the second terminal of the switch Q3 is coupled to the Vbus interface 12, and the third terminal of the switch Q3 is coupled to the control circuit 16, the third terminal being the control terminal.

[0059] The first end of the switch Q4 can be coupled to the Vbat interface 13, the second end of the switch Q4 can be coupled to the electrical node Vsys2, and the third end of the switch Q4 can be coupled to the control circuit 16, wherein the third end is the control terminal.

[0060] The control circuit 16 can be coupled to the third terminal of the switches Q1-Q5, thereby the control circuit 16 can be used to control the working state of the switches Q1-Q5.

[0061] In some possible designs, the control circuit 16 is also used to couple to the Vbus interface 12 and to detect the connection status of the Vbus interface 12. For example, whether the Vbus interface 12 is electrically connected to a power adapter, etc. In some possible designs, the switches Q1-Q5 can all be field-effect transistors. In other possible designs, the switches Q1-Q5 can also be other types of electronic switches. This application does not limit this. In one possible application scenario, taking the electronic device 100 as a mobile phone as an example, the charging and discharging control device 10 in the embodiment of this application will be illustrated by example. Figure 7 In the application scenario shown, the external device 40 is a power adapter for charging the mobile phone. For example, the power adapter can output a charging voltage of 5V or 9V to the mobile phone, at which time the mobile phone can work in a constant voltage charging state.

[0062] For example, when the power adapter is electrically connected to the Vbus interface 12, the control circuit 16 outputs a signal to the third terminal of switch Q1 to control switch Q1 to be in the off state. The control circuit 16 also outputs signals to the third terminals of switches Q2 and Q4 to control switches Q2 and Q4 to be in the continuously conducting state. The control circuit 16 also outputs signals to the third terminals of switches Q3 and Q5, wherein the duty cycle of switch Q3 is D1, and the duty cycle of switch Q5 is opposite to that of switch Q3, thereby causing the voltage converter 11 to enter the Buck buck operating mode.

[0063] It is understood that the transmission gain functions of the Vbus interface 12, Vbat interface 13, and VsysH interface 15 can satisfy the following formula:

[0064] V bat =V sysH =D1×V bus (3)

[0065] In the above formula (3), V bat The voltage value of the Vbat interface 13, V sysH The voltage value of interface 15 of VsysH, V bus D1 is the voltage value of the Vbus interface 12, and D1 is the duty cycle of the switch Q3.

[0066] Understandable. Figure 7 The voltage path (1) shown can be V bus To V bat / V sysH Path, i.e., V bus As the input voltage, V bat and V sysH As the output voltage, V bat To charge the battery 20, V sysH Power is supplied to load circuit 30, i.e., V bat and V sysH The range of the output voltage can be (0, V) bus This allows the voltage converter 11 to perform step-down conversion within a preset range.

[0067] In one possible application scenario, if the Vbus interface 12 is not connected to a power adapter, and the voltage required by the load circuit 30 is higher or lower than the battery voltage, i.e., the load operating voltage and the battery voltage are different, the mobile phone battery 20 can provide different voltages for the Vbus interface 12 and the VsysH interface 15.

[0068] For example, such as Figure 8 In the illustrated application scenario, the control circuit 16 will also output a signal to the third terminal of switch Q2 to control the second switch Q2 to be in the off state. The control circuit 16 will also output signals to the third terminals of switch Q1 and switch Q4 to control switch Q1 to be in a dynamic switching state, and switch Q4 to be in a continuously conducting state. The control circuit 16 will also output signals to switches Q3 and Q5, wherein the duty cycle of switch Q5 is D1, and the sum of the duty cycles of switches Q3 and Q1 is inversely phase to the duty cycle of switch Q5. In this embodiment, the duty cycle of switch Q3 can be set to D2, then the duty cycle of switch Q1 is 1-D1-D2.

[0069] Therefore, the transmission gain functions of the Vbus interface 12, Vbat interface 13, and VsysH interface 15 can satisfy the following formula:

[0070] V bat =D2×V bus +(1-D1-D2)(4)

[0071] In formula (4) above, 0 <D1+D2<1。

[0072] Understandable. Figure 8 The voltage path (2) shown in the figure can be V bat To V bus / V sysH Path, i.e., V bat As the input voltage, V bus and V sysH As the output voltage, the V output by the battery 20 bat Power is supplied to the external device 40 and the load circuit 30, i.e., V bus and V sysH The range of the output voltage can be (V) bat (+∞), thus enabling the voltage converter 11 to perform boost conversion within a preset range. External device 40 is now a device being reverse-charged, no longer a power adapter for charging. When switch Q1 is completely off, i.e., 1-D1-D2=0, V bus =V bat / 1-D1, when the switch Q3 is completely off, i.e., D2 = 0, V sysH =V bat / 1-D1 are all Boost converter circuit structures.

[0073] In one possible application scenario, if the Vbus interface 12 is not connected to a power adapter and the voltage required by the load circuit 30 is the battery voltage, that is, when the load operating voltage and the battery voltage are the same, the mobile phone can use voltage path (3) to power the system and external load.

[0074] Specifically, such as Figure 9 In the illustrated application scenario, the control circuit 16 outputs signals to the third terminals of switches Q1, Q3, and Q5 to control switch Q1 to be in an off state, and switches Q3 and Q5 to be in a dynamic switching state. The control circuit 16 also outputs signals to the third terminals of switches Q2 and Q4 to control switches Q2 and Q4 to be in a continuously conducting state. Similarly, in this embodiment, the duty cycle of switch Q5 can be set to D1, then the duty cycle of switch Q3 is 1-D1.

[0075] Therefore, the transmission gain functions of the Vbat interface 13, Vbus interface 12, and VsysH interface 15 can satisfy the following formula:

[0076] V sysH =V bat

[0077] V bus =V bat / 1-D1(5)

[0078] As can be seen from the above formula (5), the Vbat interface 13 of the battery 20 can directly discharge the VsysH interface 15; the Vbat interface 13 of the battery 20 discharges the Vbus interface 12 after being boosted by the voltage converter 11. It can be understood that... Figure 9 The voltage path (3) shown can be another V bat To V bus / V sysH Path, i.e., V bat As the input voltage, V bus and V sysH As the output voltage, the V output by the battery 20 bat It directly supplies power to the load circuit 30 and then boosts the voltage to supply power to the external device 40.

[0079] It is understandable that in a possible application scenario, when the Vbus interface 12 is not connected to any device and the voltage required by the load circuit 30 is higher than the battery voltage, this embodiment of the application can adopt the above-mentioned voltage path (2) and corresponding control strategy, so that the charging and discharging control device 10 can work in the traditional Boost working mode. The control circuit 16 can control the switch as follows: the switch Q3 is in the off state, that is, D2 = 0, at this time V sysH =V bat / 1-D1, to power the VsysH interface 15 after boosting.

[0080] It's understandable that in another possible application scenario, when the phone's battery voltage is at the critical mode switching point, i.e., at V... sysH When the voltage drop exceeds a certain threshold, the voltage path (3) is activated, and the voltage drops to V. sysH After the voltage is restored, voltage path (3) is shut off promptly, and then voltage path (2) is used to power the load circuit of the mobile phone to ensure V sysH Stable output voltage.

[0081] In one possible application scenario, taking the electronic device 100 as an earphone case as an example, the charging and discharging control device 10 in this application embodiment will be further illustrated.

[0082] In the above application scenario, the Vbat interface 13 can be coupled to the headphone case battery, and the VsysH interface 15 can be coupled to two headphones.

[0083] For example, if both earphones are placed in the earphone case and the power adapter is electrically connected to the Vbus interface 12, the power adapter can output a 5V or 9V charging voltage to charge the earphone case and the two earphones. The control circuit 16 outputs a signal to the third terminal of switch Q1 to control switch Q1 to be in the off state. The control circuit 16 also outputs signals to the third terminals of switches Q2 and Q4, where the duty cycle of switch Q4 is D2, and the duty cycle of switch Q2 is opposite to that of switch Q4. The control circuit 16 also outputs signals to the third terminals of switches Q3 and Q5, where the duty cycle of switch Q3 is D1, and the duty cycle of switch Q5 is opposite to that of switch Q3.

[0084] It is understood that the transmission gain functions of the Vbus interface 12, Vbat interface 13, and VsysH interface 15 can satisfy the following formula:

[0085] D1×V bus =D2×V bat +(1-D2)×V sysH (5)

[0086] It can be understood that the voltage path (4) in the above formula (5) can be V bus To V bat / V sysH Path, i.e., V bus As the input voltage, V bat and V sysH As the output voltage, V bat To charge the battery 20, V sysH Power is supplied to load circuit 30, i.e., V bat and V sysH The range of the output voltage can be (0, V) bus This allows the voltage converter 11 to perform step-down conversion within a preset range, thereby meeting the different voltage requirements of the headphones and headphone case.

[0087] In another application scenario, if the earphones are not placed in the earphone case and the power adapter is electrically connected to the Vbus interface 12, the power adapter can output a charging voltage of 5V or 9V to charge the earphone case.

[0088] For example, the control circuit 16 also outputs signals to the third terminals of switch Q3 and switch Q5, wherein the duty cycle of switch Q3 is D1, and the duty cycle of switch Q5 is opposite to that of switch Q3. The control circuit 16 outputs signals to the third terminal of switch Q1 to control switch Q1 to be in the off state. The control circuit 16 also outputs signals to the third terminals of switch Q2 and switch Q4, wherein the duty cycle of switch Q4 is D2, and the duty cycle of switch Q2 is opposite to that of switch Q4. When switch Q2 is completely off, i.e., 1-D2=0, V... bat =D1×V bus That is, the V bat It can charge the earphone case.

[0089] In another application scenario, if the power adapter is not electrically connected to the Vbus interface 12, the headphone case battery charges the headphones. When the voltage of the headphone case battery can meet the operating voltage requirements of the headphones, this embodiment of the application can employ... Figure 8 The voltage path (3) shown in the diagram uses a pass-through mode and a special control strategy to power the headphones. That is, the control circuit 16 controls the switches Q3 and Q5 to be completely turned off.

[0090] When the voltage of the headphone case battery is too low to meet the operating voltage requirements of the headphones, the embodiments of this application can adopt the following... Figure 8 The voltage path (2) shown and the special operating mode of the corresponding control strategy are for headphone power supply, that is, the control circuit 16 controls the switch Q3 to be completely turned off, that is, D2 = 0, at this time V sysH =V bat / 1-D1, which is the traditional Boost converter mode for powering headphones.

[0091] It is understandable that in another possible application scenario, when the battery voltage of the headphone case is at the mode switching point, the embodiments of this application can be implemented at V... sysH When the voltage drop exceeds a certain threshold, the voltage path (3) is activated, and at V sysH After the voltage is restored, voltage path (3) is shut off promptly, and then voltage path (2) is used to power the headphones. Therefore, V can be guaranteed. sysH Stable output voltage.

[0092] Therefore, by adopting the technical solution of this application, in the application scenarios of headphone products, the headphone's requirements for different input voltages under different charging and discharging application scenarios can be met, thereby improving the user experience.

[0093] Please see Figure 10 , Figure 10A circuit diagram illustrating another embodiment of the charge / discharge control device 10 provided in this application is shown. Figure 6 The embodiment of the charge / discharge control device 10 shown in the figure differs in that, as Figure 10 As shown, in this embodiment, the second terminal of the inductor L1 is coupled to the electrical node Vsys2. The first terminal of the switch Q5 is grounded, and the second terminal of the switch Q5 is coupled to the second terminal of the inductor L1. The second terminal of the switch Q5 can also be coupled to the second terminal of the switch Q4 through the electrical node Vsys2. The third terminal of the switch Q5 is coupled to the control circuit 16, and the third terminal is a control terminal. The first terminal of the switch Q4 is coupled to the Vbat interface 13, and the third terminal of the switch Q4 can be coupled to the control circuit 16. The third terminal of the switch Q4 is a control terminal. The first terminal of the inductor L1 is coupled to the electrical node Vsys1 between the first terminal of the switch Q1 and the first terminal of the switch Q3. The second terminal of the switch Q3 is coupled to the Vbus interface 12. The first terminal of the switch Q2 is coupled to the electrical node Vsys2. The second terminals of the switches Q1 and Q2 are both coupled to the VsysL interface 17. The third terminals of the switches Q1, Q2, and Q3 are all coupled to the control circuit 16. The third terminal is the control terminal.

[0094] In this embodiment, switch Q1 is located to the left of inductor L1, and switch Q2 is located at the output position of electrical node Vsys2.

[0095] Taking a mobile phone as an example, the charging and discharging control device 10 in this embodiment will be illustrated based on a scenario of a mobile phone connected in series with a battery. The external device 40 is a power adapter to charge the mobile phone. For example, the power adapter can output a 5V charging voltage to the mobile phone, at which time the mobile phone can operate in a constant voltage charging state.

[0096] For example, when the power adapter is electrically connected to the Vbus interface 12, the control circuit 16 outputs a signal to the third terminal of switch Q1 to control switch Q1 to be in the off state. The control circuit 16 also outputs signals to the third terminals of switches Q2, Q4, and Q5 to control the duty cycle of switch Q5 to be D1. The sum of the duty cycles of switches Q4 and Q2 is inversely phase to the duty cycle of switch Q5. The control circuit 16 outputs a signal to the third terminal of switch Q3 to control switch Q3 to always be in the on state. In this embodiment, the duty cycle of switch Q4 is D2, therefore the duty cycle of switch Q2 is 1-D1-D2.

[0097] It is understood that the transmission gain functions of the Vbus interface 12, Vbat interface 13, and VsysL interface 17 can satisfy the following formula:

[0098] V bus =D2×V bat +(1-D1-D2)×V sysL (7)

[0099] Among them, 0 <D1+D2<1。

[0100] It can be understood that in the above formula (7), V bat The voltage value of the Vbat interface 13, V sysL The voltage value of interface 17 of VsysL, V bus The voltage value of the Vbus interface 12.

[0101] It can be understood that the voltage path (5) in the above formula (7) can be V bus To V bat / V sysL Path, i.e., V bus As the input voltage, V bat and V sysL As the output voltage, V bat To charge the battery 20, V sysL Power is supplied to the load circuit 30, i.e., the V bat and V sysL The range of the output voltage can be (V) bus (+∞), thereby enabling the voltage converter 11 to perform boost conversion within a preset range.

[0102] It can be understood that, in a special mode, the control circuit 16 controls the switch Q2 to be completely turned off, i.e., 1-D1-D2=0, and controls the switch Q1 to be turned on, thus achieving V. sysL =V bus This allows the battery 20 and the load circuit 30 to be charged simultaneously.

[0103] In one possible application scenario, when the Vbus interface 12 is connected to a load, i.e., during battery discharge, the mobile phone battery 20 can supply power to both the Vbus interface 12 and the VsysL interface 17. For example, the control circuit 16 can control the switches accordingly: switch Q2 is always off, and switch Q4 is in a dynamic switching state. The duty cycle of switch Q4 is D1, the duty cycle of switch Q5 is the opposite of that of switch Q4, the duty cycle of switch Q3 is D2, and the duty cycle of switch Q1 is the opposite of that of switch Q3.

[0104] Therefore, the transmission gain functions of the Vbus interface 12, Vbat interface 13, and VsysL interface 17 can satisfy the following formula:

[0105] D1×V bat =D2×V bus +(1-D2)×V sysL (8)

[0106] It can be understood that the voltage path (6) in the above formula (8) can be V bat To V bus / V sysL The path, when Vbus is not connected to a device, i.e., V bat As the input voltage, V sysL As the output voltage, the V output by the battery 20 bat Power is supplied to the load circuit 30, i.e., V sysL The range of the output voltage can be (0, V) bat This allows the voltage converter 11 to perform step-down conversion within a preset range.

[0107] In one possible application scenario, when the Vbus interface 12 is connected to a load, i.e., when the battery is discharging and the mobile phone is operating in a plug-and-play (OTG) scenario, this embodiment of the application can use voltage path (6) to power the load circuit 30 and the external device 40. The external device 40 is no longer a power adapter but a device that is reverse-charged.

[0108] When the switch Q1 is completely turned off, i.e., 1-D2=0, then V bus =D1×V bat When switch Q3 is completely off, i.e., D2 = 0, V sysL =D1×V bat Both can be Buck step-down circuit structures, and the battery 20 can provide different voltages to the Vbus interface 12 and the VsysL interface 17 respectively. Therefore, by adopting the technical solution of this application, in the application scenario of series batteries, multi-functional boost and buck conversion can be achieved, which can meet the needs of different application scenarios and improve the user experience.

[0109] Please see Figure 11 , Figure 11 A circuit diagram illustrating another embodiment of the charge / discharge control device 10 provided in this application is shown. Figure 10 The embodiment of the charge / discharge control device 10 shown in the figure differs in that, as Figure 11As shown, the voltage conversion circuit 19 may further include a switch Q6. In this embodiment, the voltage conversion circuit 19 may include an inductor L1, a switch Q5, and a switch Q6. The first terminal of the switch Q6 is coupled to the electrical node Vsys2, the second terminal of the switch Q6 is coupled to the second terminal of the switch Q5 and the second terminal of the inductor L1, and the third terminal of the switch Q6 is coupled to the control circuit 16, where the third terminal is the control terminal. The first terminal of the inductor L1 is coupled to the electrical node Vsys1 between the first terminal of the switch Q1 and the first terminal of the switch Q3. In this embodiment, the switch Q6 is coupled to the Vbat interface 13 through the switch Q4. In one possible design, the switch Q6 can be used to prevent the electrical node Vsys2 from grounding when the switch Q5 is turned on.

[0110] Please see Figure 12 , Figure 12 A circuit diagram illustrating another embodiment of the charge / discharge control device 10 provided in this application is shown. Figure 6 The embodiment of the charge / discharge control device 10 shown in the figure differs in that, as Figure 12 As shown, in this embodiment, the voltage conversion circuit 19 may further include a switch Q6. The first terminal of the switch Q5 is grounded, the second terminal of the switch Q5 is coupled to the first terminal of the inductor L1, and the third terminal of the switch Q5 is coupled to the control circuit 16. The first terminal of the switch Q6 is grounded, the second terminal of the switch Q6 is coupled between the second terminal of the inductor L1 and the electrical node Vsys2, and the third terminal of the switch Q6 is coupled to the control circuit 16; the third terminal is the control terminal. The first terminal of switch Q1 is coupled to the first terminal of inductor L1, the first terminal of switch Q2 is coupled to electrical node Vsys2, the first terminal of inductor L1 can be coupled to electrical node Vsys1 between the first terminal of switch Q1 and the first terminal of switch Q3, the second terminal of switch Q3 is coupled to Vbus interface 12, the second terminals of switch Q1 and switch Q2 are both coupled to VsysHL interface 18, and the third terminals of switch Q1, switch Q2 and switch Q3 are all coupled to the control circuit 16. In this embodiment, switch Q1 is located to the left of inductor L1, and switch Q2 is located at the output position of electrical node Vsys2. Optionally, in addition to grounding, the first terminals of switches Q5 and Q6 can be coupled to a relatively low constant voltage, so that switches Q5 and Q6 can act as channels for discharging current.

[0111] Please see Figure 13 , Figure 13 A circuit diagram illustrating another embodiment of the charge / discharge control device 10 provided in this application is shown. Figure 12The embodiment of the charge / discharge control device 10 shown in the figure differs in that, as Figure 13 As shown, the voltage conversion circuit 19 may further include a switch Q7. In this embodiment, the voltage conversion circuit 19 may include an inductor L1, a switch Q5, a switch Q6, and a switch Q7. The first terminal of the switch Q7 is coupled to the second terminal of the inductor L1 and the second terminal of the switch Q6. The second terminal of the switch Q7 is coupled to the electrical node Vsys2. The third terminal of the switch Q7 is coupled to the control circuit 16, and the third terminal is a control terminal. The first terminals of the switches Q5 and Q6 are both grounded. The third terminals of the switches Q5 and Q6 are both coupled to the control circuit 16. The second terminal of the switch Q5 can be coupled to the first terminal of the inductor L1 and the first terminal of the switch Q1 through the electrical node Vsys1. The second terminal of the switch Q6 is coupled to the second terminal of the inductor L1 and the first terminal of the switch Q7.

[0112] Taking a mobile phone as an example of the electronic device 100, the charging and discharging control device 10 in this embodiment will be described using an example based on a mobile phone charging and discharging scenario. In one possible scenario, the power adapter can output a charging voltage of 5V or 9V to the mobile phone, at which time the mobile phone can operate in a constant voltage charging state. For example, when V sysHL <V bus And V bat >V bus Or V sysHL >V bus And V bat <V bus At this time, the control circuit 16 can control the switches as follows: the duty cycle of switches Q3 and Q6 is D1, the duty cycle of switches Q5 and Q7 is opposite to the duty cycle of switch Q3, switch Q1 is always in the off state, the sum of the duty cycles of switches Q4 and Q2 is in phase with the duty cycle of switch Q5, and the duty cycle of switch Q4 is set to D2, then the duty cycle of switch Q2 is 1-D1-D2.

[0113] It is understood that the transmission gain functions of the Vbus interface 12, Vbat interface 13, and VsysHL interface 18 can satisfy the following formula:

[0114] D1×V bus =D2×V bat +(1-D1-D2)×V sysHL (9)

[0115] It can be understood that in the above formula (9), V bat The voltage value of the Vbat interface 13, VsysHL The voltage value for VsysHL interface 18, V bus This is the voltage value of the Vbus interface 12. In the voltage path (7) of the above formula (9), that is, V bus As the input voltage, V bat and V sysHL As the output voltage, the V bat and V sysHL The output voltage can be in the range of (0, +∞), thus enabling the voltage converter 11 to perform buck-boost conversion within a preset range.

[0116] As can be seen from the above formula (9), when the switch Q2 is completely off, that is, 1-D1-D2=0, V bat =D1×V bus / 1-D1. When the switch Q4 is completely off, i.e., D2 = 0, V sysHL =D1×V bus / 1-D1 are all BuckBoost buck-boost circuit structures. The V sysHL It can achieve full-range voltage regulation to power the load circuit.

[0117] Furthermore, when V sysHL <V bus And V bat <V bus When V is in this case, the embodiment of this application can adopt the voltage path (4) buck control strategy. sysHL >V bus And V bat >V bus In this case, the embodiment of this application may adopt the boost control strategy of voltage path (5).

[0118] In one possible application scenario, when the Vbus interface 12 is connected to a load, i.e., during battery discharge, the phone's battery 20 can supply power to the VsysHL interface 18. For example, when V... sysHL <V bat And V bus >V bat Or V sysHL >V bat And V bus <V batWhen the switch is turned on, the control circuit 16 can control the switches accordingly. Specifically, the duty cycle of the switches Q5 and Q7 is D1, the duty cycle of the switch Q6 is opposite to that of the switch Q5, the switch Q2 is always off, the switch Q4 is always on, the sum of the duty cycles of the switches Q3 and Q1 is in phase with the duty cycle of the switch Q6, and the duty cycle of the switch Q3 is set to D2. Then the duty cycle of the switch Q1 is 1-D1-D2.

[0119] Therefore, the transmission gain functions of the Vbus interface 12, Vbat interface 13, and VsysHL interface 18 can satisfy the following formula:

[0120] D1×V bat =D2×V bus +(1-D1-D2)×V sysHL (10)

[0121] It can be understood that the voltage path (8) in the above formula (10) can be V bat To V bus / V sysHL Path, i.e., V bat As the input voltage, V bus and V sysHL As the output voltage, i.e., V bus and V sysHL The output voltage can be in the range of (0, +∞), thus enabling the voltage converter 11 to perform buck-boost conversion within a preset range.

[0122] As can be seen from the above formula (10), when the switch Q1 is completely off, i.e. 1-D1-D2=0, then V bus =D1×V bat / 1-D1. When the switch Q3 is completely off, i.e., D2 = 0, V sysHL =D1×V bat / 1-D1 are all buck-boost circuit structures. V sysHL It can achieve full-range voltage regulation to power the load circuit.

[0123] Furthermore, when V sysHL <V bat And V bus <V bat When V is in this case, the embodiment of this application can adopt a step-down control strategy of voltage path (6). sysHL >V bat And V bus >V bat In this case, the embodiment of this application may adopt the boost control strategy of voltage path (2).

[0124] In one possible application scenario, when the Vbus interface 12 is connected to a load, i.e., when the battery is discharging and the mobile phone is operating in an OTG scenario, this embodiment of the application can adopt a voltage path (8), and according to V bat With V bus V sysHL The size selection corresponds to the control strategy, which supplies power to the load circuit 30 and the external device 40.

[0125] In one possible application scenario, when the Vbus interface 12 is connected to a load, and the voltage of the battery 20 meets the voltage requirements of the VsysHL interface 18, the load circuit 30 can also be powered through the voltage path (3).

[0126] Therefore, the embodiments of this application can solve the problem that low-voltage batteries such as silicon anode batteries cannot directly power the system under low voltage, which can improve the battery life of electronic devices. In addition, the technical solution of this application has a simple structure and high system integration, which can improve the user experience.

[0127] Please see Figure 14 The flowchart shown is a process flow diagram of the charge / discharge control method of this application. The process flow diagram of the charge / discharge control method includes the following steps:

[0128] Step S141: Detect whether the first interface is connected to a power adapter. In this embodiment, the first interface can be a Vbus interface 12. The Vbus interface 12 is coupled to a voltage conversion circuit 19 via a switch Q3. That is, the voltage conversion circuit 19 can be coupled to the electrical node Vsys1 between the first terminal of switch Q3 and the first terminal of switch Q1. The second terminal of switch Q3 is coupled to the Vbus interface 12. The third terminal of switch Q3 is coupled to a control circuit, and the third terminal of switch Q3 is a control terminal. The second terminal of switch Q1 is coupled to a VsysH interface 15, and the third terminal of switch Q1 is coupled to a control circuit 16, and the third terminal of switch Q1 is a control terminal. The voltage conversion circuit 19 is coupled to a Vbat interface 13 via an electrical node Vsys2. The voltage conversion circuit 19 is also coupled to the first terminal of switch Q2 via an electrical node Vsys2. The second terminal of switch Q2 is coupled to the VsysH interface 15, and the third terminal of switch Q2 is coupled to the control circuit 16, and the third terminal of switch Q2 is a control terminal.

[0129] In some possible designs, the VsysH interface 15 can be used to couple the load circuit 30, and the Vbat interface 13 can be used to couple the battery 20. In one possible embodiment, the voltage conversion circuit 19 can also be coupled to the second terminal of switch Q4 via the electrical node Vsys2. The first terminal of switch Q4 can be coupled to the Vbat interface 13, and the third terminal of switch Q4 can be coupled to the control circuit 16, with the third terminal of switch Q4 serving as the control terminal. In some possible designs, the voltage conversion circuit 19 can be used to convert the voltage of the Vbus interface 12 or the voltage of the Vbat interface 13. The control circuit 16 can be used to control the operating state of switches Q1-Q4. In some possible designs, the voltage conversion circuit 19 may include an inductor L1 and a switch Q5. Specifically, the first terminal of inductor L1 can be coupled to electrical node Vsys1, the second terminal of inductor L1 can be coupled to the second terminal of switch Q4 through electrical node Vsys2, the first terminal of switch Q5 is grounded, the second terminal of switch Q5 is coupled to electrical node Vsys1, and the third terminal of switch Q5 can be coupled to control circuit 16. Thus, control circuit 16 can control the operating state of switches Q1-Q5. In some possible designs, switches Q1-Q5 can all be field-effect transistors. In other possible designs, switches Q1-Q5 can also be other types of electronic switches. This application does not limit this.

[0130] Step S142: If the first interface is connected to a power adapter, control the first switch to be in the off state, and control the second switch to be in the closed or dynamic switch state. In this embodiment, if the Vbus interface is connected to a power adapter, the control circuit 16 can output a signal to the third terminal of Q1 to control Q1 to be in the off state. The control circuit 16 also outputs a signal to the third terminal of Q2 to control Q2 to be in the closed or dynamic switch state. Thus, the charging voltage input by the power adapter can be converted by the voltage converter 11 and output to the VsysH interface 15 and Vbat interface 13. For example, the charging voltage input by the power adapter can be boosted by the voltage converter 11 and output to the VsysH interface 15 and Vbat interface 13 to power the battery 20 and the load circuit 30.

[0131] Step S143: If the first interface is not connected to a power adapter, and the operating voltage of the load circuit is different from the battery voltage, control the first switch to be in a dynamic switching state, and control the second switch to be in an off state. In this embodiment, if the voltage of the battery 20 cannot meet the operating voltage of the load circuit 30 and the load, for example, if the voltage of the battery 20 is less than 3.5V, the control circuit 16 can control switch Q1 to be in a dynamic switching state and control switch Q2 to be in an off state. At this time, the voltage output by the battery 20 can be converted by the voltage converter 11 to power the Vbus interface 12 and the VsysH interface 15. For example, the voltage output by the battery 20 can be boosted by the voltage converter 11 to power the Vbus interface 12 and the VsysH interface 15.

[0132] Step S144: If the first interface is not connected to a power adapter, and the operating voltage of the load circuit is the same as the battery voltage, control the first switch to be in the off state and control the second switch to be in the closed state. In this embodiment, if the voltage of the battery 20 can meet the operating requirements of the load circuit 30, for example, if the voltage of the battery 20 is greater than 3.5V, then the control circuit 16 can control the switch Q1 to be in the off state and control the switch Q2 to be in the on state. At this time, the voltage output by the battery 20 can directly power the Vbus interface 12 and the VsysH interface 15. Therefore, the embodiment of this application can power the system when the low-voltage battery is at a low voltage, and can be compatible with different operating modes, making it simple to implement.

[0133] Those skilled in the art should recognize that the above embodiments are only used to illustrate this application and are not intended to limit this application. Any appropriate changes and modifications made to the above embodiments within the essential spirit and scope of this application shall fall within the scope of protection claimed in this application.

Claims

1. A charging and discharging control device, comprising a first interface for coupling to an external device, a second interface for coupling to a load circuit, and a third interface for coupling to a battery, characterized in that, The charging and discharging control device also includes a voltage conversion circuit, a first switch, a second switch, and a third switch; The first switch is coupled between the second interface and the first terminal of the voltage conversion circuit; The second switch is coupled between the second interface and the second terminal of the voltage conversion circuit, and the second terminal of the voltage conversion circuit is directly connected to the third interface; The two ends of the third switch are directly connected to the first interface and the first end of the voltage conversion circuit, respectively. The voltage conversion circuit is used to convert the voltage of the first interface or the voltage of the third interface; The charging and discharging control device further includes a fourth switch, and the voltage conversion circuit further includes a fifth switch. The fourth switch is coupled between the third interface and the second terminal of the voltage conversion circuit. The first terminal of the fifth switch is coupled to a constant voltage terminal, and the second terminal of the fifth switch is coupled to the second terminal of the voltage conversion circuit. The charging and discharging control device further includes a control circuit, which is used to: control the second switch to be in the off state when the first interface is connected to a load, and control the first switch, the third switch, the fourth switch and the fifth switch to be in a dynamic switching state; wherein the duty cycle of the fifth switch is opposite to the duty cycle of the fourth switch, and the duty cycle of the first switch is opposite to the duty cycle of the third switch.

2. The charging and discharging control device as described in claim 1, characterized in that, The voltage conversion circuit includes an inductor, with a first end of the inductor coupled to a first end of the voltage conversion circuit and a second end of the inductor coupled to a second end of the voltage conversion circuit.

3. The charging and discharging control device as described in claim 2, characterized in that, The voltage conversion circuit includes a sixth switch, the first terminal of which is coupled to the second terminal of the voltage conversion circuit, and the second terminal of which is coupled to the second terminal of the inductor and the second terminal of the fifth switch.

4. The charging and discharging control device as described in claim 2, characterized in that, The voltage conversion circuit further includes a sixth switch, the first end of which is coupled to a constant voltage terminal, and the second end of which is coupled to a second terminal of the voltage conversion circuit.

5. The charging and discharging control device as described in claim 4, characterized in that, The voltage conversion circuit further includes a seventh switch, the first end of which is coupled to the second end of the voltage conversion circuit, and the second end of which is coupled to the second end of the inductor and the second end of the sixth switch.

6. The charge / discharge control device according to any one of claims 1-5, characterized in that, The control circuit is coupled to the first interface and is used to detect the connection status of the first interface; the control circuit is also used for: When the power adapter is connected to the first interface, the first switch is controlled to be in the off state, and the second switch is controlled to be in the closed or dynamic switch state. When the first interface is not connected to a power adapter and the operating voltage of the load is the same as the voltage of the battery, the first switch is controlled to be in the open state and the second switch is controlled to be in the closed state. When the first interface is not connected to a power adapter and the operating voltage of the load is different from the voltage of the battery, the first switch is controlled to be in a dynamic switching state, and the second switch is controlled to be in an open state.