Disclosure of Invention
The present disclosure provides an improved charge-discharge circuit, a charge-discharge control method, and an electronic device.
One aspect of the present disclosure provides a charge and discharge circuit for an electronic device, the charge and discharge circuit comprising:
a charging chip;
the first battery cell is connected between the charging chip and the grounding end through a first circuit;
The second battery cell is connected between the charging chip and the grounding end through a second circuit connected with the first circuit in parallel;
the first switch circuit is connected in the first circuit;
a second switch circuit connected to the second circuit, and
The control module is connected with the first switch circuit and the second switch circuit and is configured to detect first electric quantity of the first battery core and second electric quantity of the second battery core in a charging mode, control the first switch circuit to conduct or disconnect the first battery core and the charging chip based on the first electric quantity, and control the second switch circuit to conduct or disconnect the second battery core and the charging chip based on the second electric quantity.
Optionally, the control module is specifically configured to determine that the first electric quantity is smaller than a first full charge of the first battery cell, control the first switch circuit to conduct the first battery cell and the charging chip, or determine that the first electric quantity is equal to the first full charge of the first battery cell, control the first switch circuit to disconnect the first battery cell and the charging chip, and/or
And determining that the second electric quantity is smaller than a second full charge quantity of the second battery core, controlling the second switch circuit to conduct the second battery core and the charging chip, or determining that the second electric quantity is equal to the second full charge quantity of the second battery core, and controlling the second switch circuit to disconnect the second battery core and the charging chip.
Optionally, the charge-discharge circuit further comprises a discharge connection terminal connected between the charge chip and the first switch circuit and between the charge chip and the second switch circuit, and the control module is further configured to:
determining that the first electric quantity is equal to a first full charge of the first battery cell, and determining that the second electric quantity is equal to a second full charge of the second battery cell, controlling the first switch circuit to conduct the first battery cell and the discharge connection end, and controlling the second switch circuit to conduct the second battery cell and the discharge connection end, or
The control module is further configured to control the first switching circuit to turn on the first cell and the discharge connection terminal and control the second switching circuit to turn on the second cell and the discharge connection terminal in response to the charging chip stopping charging.
Optionally, the control module comprises a controller, and a first coulometer and a second coulometer which are connected with the controller, wherein the first coulometer is used for detecting the first electric quantity of the first electric core, the second coulometer is used for detecting the second electric quantity of the second electric core, the controller is configured to control the first switching circuit to conduct or disconnect the first electric core and the charging chip based on the first electric quantity in a charging mode, and control the second switching circuit to conduct or disconnect the second electric core and the charging chip based on the second electric quantity.
Optionally, the first switching circuit comprises a first switching element, a second switching element, a third switching element and a fourth switching element;
the first switch piece and the second switch piece are connected to the first circuit between the charging chip and the first battery cell, the control end of the first switch piece and the control end of the second switch piece are connected with the first end of the third switch piece, the second end of the third switch piece is grounded, the control end of the third switch piece is connected with the first end of the fourth switch piece, the second end of the fourth switch piece is grounded, and the control end of the fourth switch piece is connected with the controller.
Optionally, the first switch circuit and the second switch circuit have the same structure, and/or the electronic device comprises a main board, wherein the first switch circuit and the second switch circuit are both arranged on the main board.
Optionally, the first switch circuit includes a first driving unit, a first protection chip and a first switch unit, where a control end of the first driving unit is connected to the controller, a driving end of the first driving unit is connected to the first protection chip, the first protection chip is connected to a control end of the first switch unit, and the first switch unit is connected to the first line;
the controller is specifically configured to control the first driving unit to output a driving signal to the first protection chip based on the first electric quantity, so that the first protection chip drives the first switching unit to turn on or off the first battery cell and the charging chip based on the driving signal.
Optionally, the first driving unit comprises a ninth switch element and a tenth switch element, wherein the control end of the ninth switch element is connected with the controller, the first end of the ninth switch element is connected with the control end of the tenth switch element, the second end of the ninth switch element is grounded, the first end of the tenth switch element is connected to the first circuit between the charging chip and the first battery cell, the second end of the tenth switch element is connected with the first protection chip, and/or
The first switch unit comprises an eleventh switch piece and a twelfth switch piece which are connected in series with the first circuit, and the control end of the eleventh switch piece and the control end of the twelfth switch piece are connected with the first protection chip.
Optionally, the first switch circuit and the second switch circuit have the same structure, and/or the electronic device comprises a main board and a first battery protection board, wherein the first driving unit is arranged on the main board, and the first protection chip and the first switch unit are arranged on the first battery protection board.
Optionally, the first electricity meter is further connected with the first switch circuit, the second electricity meter is further connected with the second switch circuit, and the controller is specifically configured to control the first electricity meter to drive the first switch circuit to conduct or disconnect the first battery cell and the charging chip based on the first electricity quantity, and control the second electricity meter to drive the second switch circuit to conduct or disconnect the second battery cell and the charging chip based on the second electricity quantity in a charging mode.
Optionally, the control module comprises a first fuel gauge and a second fuel gauge, wherein the first fuel gauge is connected with the first switch circuit and is configured to detect the first electric quantity of the first electric core in the charging mode and control the first switch circuit to be connected or disconnected with the charging chip based on the first electric quantity;
the second electricity meter is connected with the second switch circuit and is configured to detect second electricity quantity of the second battery core in the charging mode, and control the second switch circuit to be connected or disconnected with the charging chip based on the second electricity quantity.
Optionally, the first switching circuit comprises a seventeenth switching element and an eighteenth switching element connected in series with the first line, and the first fuel gauge is connected with the control end of the seventeenth switching element and the control end of the eighteenth switching element.
Optionally, the control module further comprises a first current sampling resistor connected between the first switch circuit and the first electric core, the first fuel gauge is connected with two ends of the first current sampling resistor, and the first fuel gauge is further configured to detect the direction of current in the first current sampling resistor and control the seventeenth switch element and the eighteenth switch element to be turned on or off based on the direction of the current.
Optionally, the first switch circuit and the second switch circuit have the same structure, and/or the electronic device comprises a first battery protection board, and the first switch circuit is arranged on the first battery protection board.
Another aspect of the present disclosure provides a charge and discharge control method applied to a charge and discharge circuit including a charge chip, a first cell connected between the charge chip and a ground terminal through a first line, a second cell connected between the charge chip and the ground terminal through a second line connected in parallel with the first line, a first switch circuit connected in the first line, and a second switch circuit connected in the second line, the method including:
Detecting a first electric quantity of the first electric core and a second electric quantity of the second electric core in a charging mode;
controlling the first switch circuit to be connected or disconnected with the first battery cell and the charging chip based on the first electric quantity;
And controlling the second switch circuit to be connected or disconnected with the second battery cell and the charging chip based on the second electric quantity.
Optionally, the controlling the first switch circuit to turn on or off the first battery cell and the charging chip based on the first electric quantity includes:
Determining that the first electric quantity is smaller than a first full charge quantity of the first battery core, controlling the first switch circuit to conduct the first battery core and the charging chip, or determining that the first electric quantity is equal to the first full charge quantity of the first battery core, controlling the first switch circuit to disconnect the first battery core and the charging chip, and/or,
The controlling the second switch circuit to turn on or off the second battery cell and the charging chip based on the second electric quantity includes:
and determining that the second electric quantity is smaller than a second full charge quantity of the second battery core, controlling the second switch circuit to conduct the second battery core and the charging chip, or determining that the second electric quantity is equal to the second full charge quantity of the second battery core, and controlling the second switch circuit to disconnect the second battery core and the charging chip.
Optionally, the charging and discharging circuit further comprises a discharging connection terminal connected between the charging chip and the first switching circuit and between the charging chip and the second switching circuit, and the method further comprises:
Determining that the first electrical quantity is equal to a first full charge of the first battery cell, and determining that the second electrical quantity is equal to a second full charge of the second battery cell;
and controlling the first switch circuit to conduct the first battery cell and the discharge connection end, and controlling the second switch circuit to conduct the second battery cell and the discharge connection end.
Optionally, the method further comprises:
and responding to the charging chip to stop charging, controlling the first switch circuit to conduct the first battery cell and the discharging connection end, and controlling the second switch circuit to conduct the second battery cell and the discharging connection end.
Another aspect of the present disclosure provides an electronic device including any one of the charge-discharge circuits mentioned above.
Optionally, the electronic device includes a first folding portion and a second folding portion, the first electric core of the charge-discharge circuit is disposed on the first folding portion, and the second electric core of the charge-discharge circuit is disposed on the second folding portion.
The technical scheme provided by the disclosure has at least the following beneficial effects:
Based on the fact that the first battery cell is connected between the charging chip and the grounding end in parallel through the first circuit and the second battery cell is connected between the charging chip and the grounding end through the second circuit, specifications of the first battery cell and the second battery cell are not limited, and the application range of the charging and discharging circuit is widened. Based on the first switch circuit is connected in the first circuit, the second switch circuit is connected in the second circuit, the first switch circuit is controlled to be connected or disconnected with the first battery cell and the charging chip respectively based on the first electric quantity through the control module, and the second switch circuit is controlled to be connected or disconnected with the second battery cell and the charging chip based on the second electric quantity, so that one of the first battery cell and the second battery cell is flexibly, controllably and safely charged, the first battery cell and the second battery cell are charged in parallel, or the first battery cell and the second battery cell are disconnected with the charging chip, the overcharge and the undercharge are avoided, and the quick charging can be realized. In addition, the charge-discharge circuit has a simple structure and is suitable for electronic equipment comprising at least two folding parts.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. Unless defined otherwise, technical or scientific terms used in this disclosure should be given the ordinary meaning as understood by one of ordinary skill in the art to which this disclosure belongs. The terms "first," "second," and the like in the description and in the claims, are not used for any order, quantity, or importance, but are used for distinguishing between different elements. Likewise, the terms "a" or "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one. Unless otherwise indicated, the terms "comprises," "comprising," and the like are intended to cover the presence of elements or articles recited as being "comprising" or "including," and equivalents thereof, without excluding other elements or articles. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
Fig. 1 is a block diagram illustrating a charge and discharge circuit for an electronic device according to an exemplary embodiment of the present disclosure, the charge and discharge circuit including a charge chip 110, a first battery cell 120, a second battery cell 130, a first switch circuit 140, a second switch circuit 150, and a control module 160.
The charging chip 110 is connected to the charging interface 101 of the electronic device, and the charging voltage and the charging current output to the first battery cell 120 and the second battery cell 130 are adjusted by the charging chip 110 to charge the first battery cell 120 and the second battery cell 130. Illustratively, the number of charging chips 110 is one. Illustratively, the number of the charging chips 110 is plural, and a plurality of the charging chips 110 may be connected in parallel.
The first battery cell 120 is connected between the charging chip 110 and the ground GND through the first line 102. The second battery cell 130 is connected between the charging chip 110 and the ground GND through a second line 103 connected in parallel with the first line 102. Since the first and second cells 120 and 130 are connected in parallel, the first and second cells 120 and 130 may be the same or different, which makes the first and second cells 120 and 130 unrestricted.
The first switch circuit 140 is connected to the first circuit 102. The second switch circuit 150 is connected to the second line 103.
The control module 160 is connected to the first switch circuit 140 and the second switch circuit 150, and the control module 160 is configured to detect the first power of the first battery cell 120 and the second power of the second battery cell 130 in the charging mode. The first switching circuit 140 is controlled to turn on or off the first battery cell 120 and the charging chip 110 based on the first electric quantity, and the second switching circuit 150 is controlled to turn on or off the second battery cell 130 and the charging chip 110 based on the second electric quantity. The control module 160 may detect the first power of the first battery cell 120 and the second power of the second battery cell 130 in real time to determine whether the first battery cell 120 and the second battery cell 130 are full.
In some embodiments, the control module 160 is specifically configured to determine that the first amount of power is less than a first full charge of the first battery cell 120, control the first switch circuit 140 to turn on the first battery cell 120 and the charging chip 110, or determine that the first amount of power is equal to the first full charge of the first battery cell 120, control the first switch circuit 140 to turn off the first battery cell 120 and the charging chip 110, and/or
The second electric quantity is determined to be smaller than the second full charge of the second battery cell 130, and the second switch circuit 150 is controlled to conduct the second battery cell 130 and the charging chip 110, or the second electric quantity is determined to be equal to the second full charge of the second battery cell 130, and the second switch circuit 150 is controlled to disconnect the second battery cell 130 and the charging chip 110.
The "first full charge amount" related to the present disclosure refers to an amount of electricity corresponding to when the first battery cell 120 is fully charged, and the "second full charge amount" refers to an amount of electricity corresponding to when the second battery cell 130 is fully charged. If the first electric quantity is smaller than the first full charge quantity, the first battery cell 120 is not fully charged, and if the first electric quantity is equal to the first full charge quantity, the first battery cell 120 is fully charged. If the second electric quantity is smaller than the second full charge quantity, the second battery cell 130 is not fully charged, and if the second electric quantity is equal to the second full charge quantity, the second battery cell 130 is fully charged.
When one of the first and second battery cells 120 and 130 is not fully charged and the other is fully charged, the fully charged battery cells and the charging chip 110 are disconnected through the first or second switching circuits 140 and 150, and the non-fully charged battery cells and the charging chip 110 are turned on through the first or second switching circuits 140 and 150. Taking the example that the first battery cell 120 is fully charged and the second battery cell 130 is not fully charged, the control module 160 controls the first switch circuit 140 to disconnect the first battery cell 120 from the charging chip 110, and controls the second switch circuit 150 to connect the second battery cell 130 to the charging chip 110. When both the first battery cell 120 and the second battery cell 130 are fully charged, the control module 160 controls the first switch circuit 140 to disconnect the first battery cell 120 and the charging chip 110, and controls the second switch circuit 150 to disconnect the second battery cell 130 and the charging chip 110, so as to avoid the overcharge problem. When both the first battery cell 120 and the second battery cell 130 are not fully charged, the control module 160 controls the first switch circuit 140 to conduct the first battery cell 120 and the charging chip 110, and controls the second switch circuit 150 to conduct the second battery cell 130 and the charging chip 110, so that the charging chip 110 charges the first battery cell 120 and the second battery cell 130 in parallel.
Based on the above, the charge-discharge circuit provided in the embodiment of the disclosure is based on that the first battery cell 120 is connected in parallel between the charge chip 110 and the ground terminal GND through the first line 102 and the second battery cell 130 through the second line 103, which makes the specifications of the first battery cell 120 and the second battery cell 130 not limited, and expands the application range of the charge-discharge circuit. Based on the first switch circuit 140 being connected to the first circuit 102, the second switch circuit 150 being connected to the second circuit 103, the control module 160 controls the first switch circuit 140 to turn on or off the first battery cell 120 and the charging chip 110 based on the first electric quantity, and controls the second switch circuit 150 to turn on or off the second battery cell 130 and the charging chip 110 based on the second electric quantity, respectively, so as to flexibly, controllably and safely realize a mode of charging one of the first battery cell 120 and the second battery cell 130, charging the first battery cell 120 and the second battery cell 130 in parallel, or disconnecting both the first battery cell 120 and the second battery cell 130 from the charging chip 110, thereby avoiding overcharge and undercharge problems, and realizing rapid charging. In addition, the charge-discharge circuit has a simple structure and is suitable for electronic equipment comprising at least two folding parts.
In some embodiments, with continued reference to fig. 1, the charge-discharge circuit further includes a discharge connection 170 connected between the charge chip 110 and the first switch circuit 140 and between the charge chip 110 and the second switch circuit 150. The control module 160 is further configured to determine that the first amount of power is equal to a first full charge of the first battery cell 120 and that the second amount of power is equal to a second full charge of the second battery cell 130, control the first switch circuit 140 to turn on the first battery cell 120 and the discharge connection 170, and control the second switch circuit 150 to turn on the second battery cell 130 and the discharge connection 170. In other words, when the first and second cells 120 and 130 are fully charged, the first and second cells 120 and 170 are connected, and the second cell 130 and 170 are connected, so that the first and second cells 120 and 130 are discharged in parallel through the discharge connection 170. The discharging connection end 170 is connected with a system module of the electronic device, and the first battery cell 120 and the second battery cell 130 supply power to the system module through the discharging connection end 170. It should be noted that, when the first battery cell 120 and the second battery cell 130 are fully charged, the control module 160 controls the first switch circuit 140 to disconnect the first battery cell 120 and the charging chip 110, and controls the second switch circuit 150 to disconnect the second battery cell 130 and the charging chip 110, and the control module 160 controls the charging chip 110 to stop outputting the electric energy to the first battery cell 120 and the second battery cell 130. Thus, when the first and second switching circuits 140 and 150 are turned on, the first cell 120 can discharge to the discharge connection terminal 170, and the second cell 130 can discharge to the discharge connection terminal 170.
In some embodiments, the control module 160 is further configured to control the first switching circuit 140 to turn on the first cell 120 and the discharge connection 170 and control the second switching circuit 150 to turn on the second cell 130 and the discharge connection 170 in response to the charging chip 110 stopping charging. For example, when the charger is pulled out from the charging interface 101 to stop charging the charging chip 110, the first battery cell 120 and the second battery cell 130 are discharged in parallel through the discharging connection terminal 170.
Fig. 2 is a circuit diagram illustrating a charge and discharge circuit according to an exemplary embodiment of the present disclosure, fig. 3 is a circuit diagram illustrating a charge and discharge circuit according to an exemplary embodiment of the present disclosure, and fig. 4 is a circuit diagram illustrating a charge and discharge circuit according to an exemplary embodiment of the present disclosure. In order to more clearly understand the charge-discharge circuit provided by the embodiments of the present disclosure, two types of embodiments are given below in conjunction with fig. 2 to 4:
First, as a first class of embodiments, referring to fig. 2 or 3, the control module 160 includes a controller (not shown), and a first electricity meter 161 and a second electricity meter 162 connected to the controller, the first electricity meter 161 is used for detecting a first electricity quantity of the first battery cell 120, the second electricity meter 162 is used for detecting a second electricity quantity of the second battery cell 130, and the controller is configured to control the first switch circuit 140 to turn on or off the first battery cell 120 and the charging chip 110 based on the first electricity quantity and to control the second switch circuit 150 to turn on or off the second battery cell 130 and the charging chip 110 based on the second electricity quantity in the charging mode. Illustratively, the first electricity meter 161 sends the detected first electricity amount to the controller in real time, and the second electricity meter 162 sends the detected second electricity amount to the controller in real time. Wherein the controller may be a CPU (Central Processing Unit ).
The following describes the working principle of the first type of charge-discharge circuit with reference to three circuit structures:
(1) In a first embodiment, referring to fig. 2, the first switching circuit 140 includes a first switching element Q1, a second switching element Q2, a third switching element Q3, and a fourth switching element Q4, the first switching element Q1 and the second switching element Q2 are connected to a first line 102 between the charging chip 110 and the first battery cell 120, a control terminal of the first switching element Q1 and a control terminal of the second switching element Q2 are connected to a first terminal of the third switching element Q3, a second terminal of the third switching element Q3 is grounded, a control terminal of the third switching element Q3 is connected to a first terminal of the fourth switching element Q4, a second terminal of the fourth switching element Q4 is grounded, and a control terminal of the fourth switching element Q4 is connected to a controller. The GPIO1 terminal of the controller is connected to the control terminal of the fourth switching element Q4 to control the fourth switching element Q4 to be turned on or off, and the fourth switching element Q4 is turned on or off to cause the third switching element Q3 to be turned on or off, and further cause the first switching element Q1 and the second switching element Q2 to be turned on or off, so that the first switching circuit 140 turns on or off the first battery cell 120 and the charging chip 110.
In some embodiments, the first switching circuit 140 further includes a first resistor R1, a second resistor R2, a third resistor R3, and a fourth resistor R4. One end of the first resistor R1 is connected between the charging chip 110 and the first switching element Q1, and the other end of the first resistor R1 is connected between the first end of the third switching element Q3 and the control end of the first switching element Q1. One end of the second resistor R2 is connected between the charging chip 110 and the first switching element Q1, and the other end of the second resistor R2 is connected between the first end of the fourth switching element Q4 and the control end of the third switching element Q3. One end of the third resistor R3 is connected between the first end of the third switching element Q3 and the control end of the second switching element Q2, and the other end of the third resistor R3 is connected between the second switching element Q2 and the first battery cell 120. One end of the fourth resistor R4 is connected between the first end of the fourth switching element Q4 and the control end of the third switching element Q3, and the other end is connected between the second switching element Q2 and the first cell 120. Through setting up first resistance R1, second resistance R2, third resistance R3 and fourth resistance R4, play the bleeder effect, guarantee that there is the pressure drop between the control end and the link of first switch piece Q1, second switch piece Q2, third switch piece Q3 and fourth switch piece Q4, make four switch pieces can normally work.
In some embodiments, the first, second, third, and fourth switching elements Q1, Q2, Q3, and Q4 are power switching transistors. The power switch tube is easy to obtain and control. The first switching element Q1 and the second switching element Q2 are P-type power switching tubes, and the third switching element Q3 and the fourth switching element Q4 are N-type power switching tubes. Illustratively, when the GPIO1 terminal of the controller pulls up the level of the control terminal of the fourth switching element Q4, the fourth switching element Q4 is turned on, and since the second connection terminal of the fourth switching element Q4 is grounded, this grounds the control terminal of the third switching element Q3, pulls down the control terminal of the third switching element Q3, and the third switching element Q3 is turned off. The control terminal of the first switching element Q1 is connected to the charging chip 110 via a first resistor R1, i.e. the control terminal of the first switching element Q1 is pulled high by the charging chip 110, which turns off the first switching element Q1. Similarly, the potential of the control terminal of the second switching element Q2 and the potential of the control terminal of the first switching element Q1 are equal, that is, the control terminal of the second switching element Q2 is pulled high, which turns off the second switching element Q2. In this way, the first switching circuit 140 is caused to disconnect the charging chip 110 and the first battery cell 120. Illustratively, when the GPIO1 terminal of the control module 160 pulls down the level of the control terminal of the fourth switching element Q4, the fourth switching element Q4 is turned off, which makes the control terminal of the third switching element Q3 high, the third switching element Q3 is turned on, and thus the control terminals of the first switching element Q1 and the second switching element Q2 are grounded, and the first switching element Q1 and the second switching element Q2 are turned on, so that the first switching circuit 140 turns on the charging chip 110 and the first battery cell 120.
Further, exemplarily, with continued reference to fig. 2, the first switching element Q1 and the second switching element Q2 are the same power switching tube and are connected in opposite directions. Illustratively, the first switching element Q1 includes a first parasitic diode (not shown) and the second switching element Q2 includes a second parasitic diode (not shown), the first and second parasitic diodes being connected in opposite directions. In this way, when both the first and second switching elements Q1 and Q2 are turned off, the first and second parasitic diodes cooperate to ensure that the first battery cell 120 and the charging chip 110 are turned off.
In some embodiments, with continued reference to fig. 2, the first switching circuit 140 and the second switching circuit 150 are identical in structure. Illustratively, the second switching circuit 150 includes a fifth switching element Q5, a sixth switching element Q6, a seventh switching element Q7, an eighth switching element Q8, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, and an eighth resistor R8, and the second switching circuit 150 is described with reference to the first switching circuit 140, and will not be described in detail herein. In some embodiments, with continued reference to fig. 2, the electronic device includes a motherboard 180, and the first switch circuit 140 and the second switch circuit 150 are both disposed on the motherboard 180. The controller and charging chip 110 may also be provided on the motherboard 180. The electronic device further includes a first battery protection plate 190 connected to the first battery cell 120, and a second battery protection plate 200 connected to the second battery cell 130. The first electricity meter 161 is provided to the first battery protection plate 190, and the second electricity meter 162 is provided to the second battery protection plate 200.
(2) In a second embodiment, referring to fig. 3, the first switch circuit 140 includes a first driving unit 141, a first protection chip 142 and a first switch unit 143, a control end of the first driving unit 141 is connected to the controller, a driving end of the first driving unit 141 is connected to the first protection chip 142, the first protection chip 142 is connected to a control end of the first switch unit 143, and the first switch unit 143 is connected to the first circuit 102. The controller is specifically configured to control the first driving unit 141 to output a driving signal to the first protection chip 142 based on the first power amount, so that the first protection chip 142 drives the first switching unit 143 to turn on or off the first battery cell 120 and the charging chip 110 based on the driving signal.
In some embodiments, with continued reference to fig. 3, the first driving unit 141 includes a ninth switching element Q9 and a tenth switching element Q10, a control terminal of the ninth switching element Q9 is connected to the controller, a first terminal of the ninth switching element Q9 is connected to a control terminal of the tenth switching element Q10, a second terminal of the ninth switching element Q9 is grounded, a first terminal of the tenth switching element Q10 is connected to the first line 102 between the charging chip 110 and the first battery cell 120, and a second terminal of the tenth switching element Q10 is connected to the first protection chip 142. In this way, the controller may control the ninth switching element Q9 to be turned on or off through the GPIO3 terminal based on the first power, thereby causing the tenth switching element Q10 to be turned on or off, which may cause the level of the second terminal of the tenth switching element Q10 to be reacted to the CTL1 terminal of the first protection chip 142, and the first protection chip 142 drives whether the first switching unit 143 turns on the first battery cell 120 and the charging chip 110 based on the high level or low level driving signal received by the CTL1 terminal.
Illustratively, the ninth switching element Q9 and the tenth switching element Q10 are power switching transistors. Illustratively, the ninth switching element Q9 is an N-type power switching tube, and the tenth switching element Q10 is a P-type power switching tube. When the controller pulls up the level of the control terminal of the ninth switching element Q9 through the GPIO3 terminal, the ninth switching element Q9 is turned on, and the control terminal of the tenth switching element Q10 is grounded, which pulls down the control terminal of the tenth switching element Q10, so that the tenth switching element Q10 is turned on, and the CTL1 terminal of the first protection chip 142 receives the high-level driving signal output from the second terminal of the tenth switching element Q10. When the controller pulls down the level of the control terminal of the ninth switching element Q9 through the GPIO3 terminal, the ninth switching element Q9 is turned off, the level of the control terminal of the tenth switching element Q10 is pulled up, the tenth switching element Q10 is turned off, and the CTL1 terminal of the first protection chip 142 receives the low-level driving signal outputted from the second terminal of the tenth switching element Q10.
In some embodiments, with continued reference to fig. 3, the first switching unit 143 includes an eleventh switching element Q11 and a twelfth switching element Q12 connected in series to the first line 102, and a control terminal of the eleventh switching element Q11 and a control terminal of the twelfth switching element Q12 are connected to the first protection chip 142. Thus, the eleventh and twelfth switching elements Q11 and Q12 are driven on or off by the first protection chip 142. Illustratively, the eleventh switching element Q11 and the twelfth switching element Q12 are power switching transistors. Illustratively, the eleventh and twelfth switching elements Q11 and Q12 are N-type power switching tubes, the eleventh switching element Q11 may include a third parasitic diode, the twelfth switching element Q12 may include a fourth parasitic diode, and the eleventh and twelfth switching elements Q11 and Q12 are reversely connected. The twelfth switching element Q12 may be normally turned on. During the charging process, the first protection chip 142 may drive the eleventh switching element Q11 to be turned on. When the charging chip 110 fully charges the first battery cell 120, the first protection chip 142 may drive the eleventh switching element Q11 to be turned off to disconnect the first battery cell 120 and the charging chip 110. At the time of discharging, the first protection chip 142 may drive the eleventh switching element Q11 to be turned on.
In some embodiments, with continued reference to fig. 3, the first switching circuit 140 and the second switching circuit 150 are identical in structure. The second switching circuit 150 may include a second driving unit 151, a second protection chip 152, and a second switching unit 153. The second driving unit 151 may include a thirteenth switching element Q13 and a fourteenth switching element Q14, and the second driving unit 153 may include a fifteenth switching element Q15 and a sixteenth switching element Q16. The structure of the second switch circuit 150 is the same as that of the first switch circuit 140, and will not be described in detail here. In some embodiments, with continued reference to fig. 3, the electronic device includes a main board 180 and a first battery protection board 190, the first driving unit 141 is disposed on the main board 180, and the first protection chip 142 and the first switching unit 143 are disposed on the first battery protection board 190. The electronic device may further include a second battery protection board 200, the second driving unit 151 is provided to the main board 180, and the second protection chip 152 and the second switching unit 153 are provided to the second battery protection board 200.
(3) In a third embodiment, referring to FIG. 4, the first electricity meter 161 is further connected to the first switching circuit 140, the second electricity meter 162 is further connected to the second switching circuit 150, and the controller is specifically configured to control the first electricity meter 161 to drive the first battery cell 120 and the charging chip 110 on or off based on the first amount of electricity and control the second electricity meter 162 to drive the second switching circuit 150 to drive the second battery cell 130 and the charging chip 110 on or off based on the second amount of electricity in the charging mode. The structure of the first switch circuit 140 and the second switch circuit 150 is described in detail below with respect to fig. 4.
Second, as a second class of embodiments, referring to FIG. 4, the control module 160 includes a first fuel gauge 161 and a second fuel gauge 162, the first fuel gauge 161 being connected to the first switching circuit 140, the first fuel gauge 161 being configured to detect a first amount of power of the first battery cell 120 in the charging mode, and to control the first switching circuit 140 to turn on or off the first battery cell 120 and the charging chip 110 based on the first amount of power. The second electricity meter 162 is connected to the second switching circuit 150, and the second electricity meter 162 is configured to detect a second amount of electricity of the second battery cell 130 in the charging mode and to control the second switching circuit 150 to turn on or off the second battery cell 130 and the charging chip 110 based on the second amount of electricity. That is, in this embodiment, the first switching circuit 140 is directly controlled to be turned on or off by the first electricity meter 161, and the second switching circuit 150 is directly controlled to be turned on or off by the second electricity meter 162, not controlled by the controller.
In some embodiments, with continued reference to FIG. 4, the first switching circuit 140 includes a seventeenth switching element Q17 and an eighteenth switching element Q18 connected in series with the first line 102, and the first fuel gauge 161 is connected to a control terminal of the seventeenth switching element Q17 and a control terminal of the eighteenth switching element Q18. The first electricity meter 161 may control the seventeenth and eighteenth switching elements Q17 and Q18 to be turned on based on the first electricity amount to turn on the charging chip 110 or the discharging connection terminal 170 and the first battery cell 120. The first electricity meter 161 may control the seventeenth switching element Q17 to be turned off and the eighteenth switching element Q18 to be turned on based on the first electricity amount to disconnect the charging chip 110 and the first battery cell 120. The eighteenth switching element Q18 may be a discharge switching tube, and may be kept in a normally-on state at all times, and the eighteenth switching element Q18 may be controlled to be turned off by the first fuel gauge 161 when the discharge is excessive.
Illustratively, the seventeenth and eighteenth switching elements Q17 and Q18 are power switching transistors. Illustratively, the seventeenth switching element Q17 and the eighteenth switching element Q18 are each N-type power switching transistors. The seventeenth switching element Q17 includes a fifth parasitic diode (not shown), the eighteenth switching element Q18 includes a sixth parasitic diode (not shown), and the fifth parasitic diode and the sixth parasitic diode are reversely connected.
In some embodiments, with continued reference to FIG. 4, the control module 160 further includes a first current sampling resistor R13, the first current sampling resistor R13 being connected between the first switching circuit 140 and the first cell 120, a first fuel gauge 161 being connected across the first current sampling resistor R13, the first fuel gauge 161 being further configured to detect a direction of current in the first current sampling resistor R13 and to control the seventeenth switching element Q17 and the eighteenth switching element Q18 to be turned on or off based on the direction of current. Illustratively, when the first battery cell 120 is fully charged, the first fuel gauge 161 controls the seventeenth switching element Q17 to be turned off, the eighteenth switching element Q18 to be turned on, and the current of the first battery cell 120 may flow through the first current sampling resistor R13, the eighteenth switching element Q18, and the fifth parasitic diode of the seventeenth switching element Q17, so that the first fuel gauge 161 may detect the direction of the current in the first current sampling resistor R13, and when the first battery cell 120 is discharged based on the direction of the current, control the seventeenth switching element Q17 to be turned on to discharge the first battery cell 120 to the discharge connection terminal 170 through the seventeenth switching element Q17 and the eighteenth switching element Q18. In addition, the first electricity meter 161 may determine the charging and discharging states of the first battery cell 120 based on the detected direction of the current in the first current sampling resistor R3, so as to control the on-off of the seventeenth and eighteenth switching elements Q17 and Q18, so as to implement the functions of over-current protection, over-voltage protection, under-voltage protection, and the like.
In some embodiments, with continued reference to fig. 4, the first switching circuit 140 and the second switching circuit 150 are identical in structure. The second switching circuit 150 includes a nineteenth switching element Q19 and a twentieth switching element Q20, and reference is specifically made to the description of the first switching circuit 140, which is not described in detail herein. In some embodiments, with continued reference to fig. 4, the electronic device includes a first battery protection plate 190, and the first switch circuit 140 and the first fuel gauge 161 may be provided on the first battery protection plate 190. The electronic device may further include a second battery protection plate 200, and the second switch circuit 150 and the second fuel gauge 162 may be provided to the second battery protection plate 200. That is, the charge and discharge of the first battery cell 120 are controlled by the first switch circuit 140 and the first electricity meter 161 built in the first battery protection plate 190, and the charge and discharge of the second battery cell 130 are controlled by the second switch circuit 150 and the second electricity meter 162 built in the second battery protection plate 200.
In summary, the charge-discharge circuit provided in the embodiments of the present disclosure, based on the first switch circuit 140 and the second switch circuit 150 with the above-mentioned several different structures, in the charge mode, the control module 160 controls the first switch circuit 140 to turn on or off the first battery cell 120 and the charge chip 110 based on the first electric quantity of the first battery cell 120, and controls the second switch circuit 150 to turn on or off the second battery cell 130 and the charge chip 110 based on the second electric quantity of the second battery cell 130, which charges at least one of the first battery cell 120 and the second battery cell 130, or turns off the first battery cell 120 and the second battery cell 130 from the charge chip 110. When the first battery cell 120 and the second battery cell 130 are full or the charger is pulled out, the first switch circuit 140 is controlled to conduct the first battery cell 120 and the discharge connection terminal 170, and the second switch circuit 150 is controlled to conduct the second battery cell 130 and the discharge connection terminal 170, so that the first battery cell 120 and the second battery cell 130 are discharged in parallel. The charge-discharge circuit can flexibly, controllably and safely realize charge-discharge and can also realize quick charge. In addition, the charge-discharge circuits are simple in structure and suitable for electronic equipment comprising at least two folding parts.
Fig. 5 is a flowchart illustrating a charge and discharge control method according to an exemplary embodiment of the present disclosure. Some embodiments of the present disclosure provide a charge and discharge control method applied to a charge and discharge circuit, where the charge and discharge circuit includes a charge chip, a first battery cell connected between the charge chip and a ground terminal through a first line, a second battery cell connected between the charge chip and the ground terminal through a second line connected in parallel with the first line, a first switch circuit connected in the first line, and a second switch circuit connected in the second line. Referring to fig. 5, the charge and discharge control method includes:
Step 51, in the charging mode, detecting a first electrical quantity of the first electrical core and a second electrical quantity of the second electrical core.
For example, the first power of the first battery cell may be detected in real time by the first power meter and transmitted to the controller in real time. For example, the second power of the second cell may be detected in real time by the second power meter and sent to the controller in real time.
Step 52, controlling the first switch circuit to turn on or off the first battery cell and the charging chip based on the first electric quantity.
The controller controls the first switch circuit to turn on or off the first battery cell and the charging chip based on the first electric quantity. The controller controls the first driving unit to drive the first protection chip based on the first electric quantity to enable the first switch circuit to conduct or disconnect the first battery cell and the charging chip. The first electricity meter controls the first switch circuit to turn on or off the first battery cell and the charging chip based on the first electricity amount.
And step 53, controlling the second switch circuit to turn on or off the second battery cell and the charging chip based on the second electric quantity.
The controller controls the second switching circuit to turn on or off the second battery cell and the charging chip based on the second electric quantity. The controller controls the second driving unit to drive the second protection chip based on the second electric quantity to enable the second switch circuit to conduct or disconnect the second battery cell and the charging chip. The second electricity meter controls the second switching circuit to turn on or off the second battery cell and the charging chip based on the second electricity amount.
In some embodiments, step 52 includes determining that the first electrical quantity is less than a first full charge of the first battery cell, controlling the first switching circuit to turn on the first battery cell and the charging chip, or determining that the first electrical quantity is equal to the first full charge of the first battery cell, controlling the first switching circuit to turn off the first battery cell and the charging chip;
And/or step 53 includes determining that the second electric quantity is smaller than a second full charge of the second battery cell, controlling the second switch circuit to turn on the second battery cell and the charging chip, or determining that the second electric quantity is equal to the second full charge of the second battery cell, and controlling the second switch circuit to turn off the second battery cell and the charging chip.
Based on the above, the charging modes include four types, namely, the first charging mode is that the first battery core is not fully charged, the first switch circuit is controlled to conduct the first battery core and the charging chip, the second battery core is fully charged, and the second switch circuit is controlled to disconnect the second battery core and the charging chip. The second charging mode is that the first battery cell is fully charged, the first switch circuit is controlled to disconnect the first battery cell and the charging chip, the second battery cell is not fully charged, and the second switch circuit is controlled to conduct the second battery cell and the charging chip. And in the third charging mode, the first battery cell and the second battery cell are not fully charged, the first switch circuit is controlled to conduct the first battery cell and the charging chip, and the second switch circuit is controlled to conduct the second battery cell and the charging chip. And in the fourth charging mode, when the first battery cell and the second battery cell are fully charged, the first switch circuit is controlled to conduct the first battery cell and the charging chip, and the second switch circuit is controlled to conduct the second battery cell and the charging chip.
In some embodiments, the charge-discharge circuit further comprises a discharge connection terminal connected between the charge chip and the first switch circuit and between the charge chip and the second switch circuit, and the charge-discharge control method provided by some embodiments of the present disclosure further comprises:
determining that the first electric quantity is equal to a first full charge of the first battery cell, and determining that the second electric quantity is equal to a second full charge of the second battery cell;
the first switch circuit is controlled to conduct the first battery core and the discharging connecting end, and the second switch circuit is controlled to conduct the second battery core and the discharging connecting end. In this way, the first battery cell and the second battery cell are enabled to discharge in parallel to the discharge connection end.
In some embodiments, the charge and discharge control method provided in some embodiments of the present disclosure further includes:
And responding to the charging stop of the charging chip, controlling the first switching circuit to conduct the first battery cell and the discharging connecting end, and controlling the second switching circuit to conduct the second battery cell and the discharging connecting end. For example, when the charger is pulled out, the charging chip stops outputting the electric energy to the first battery cell and the second battery cell, so that the first battery cell and the second battery cell are discharged in parallel to the discharge connection terminal.
The charge and discharge control method provided by the embodiment of the disclosure detects the first electric quantity of the first battery cell and the second electric quantity of the second battery cell in a charge mode, and controls the first switch circuit to be connected or disconnected with the first battery cell and the charge chip based on the first electric quantity so as to control whether the charge chip charges the first battery cell. And controlling the second switch circuit to switch on or switch off the second battery cell and the charging chip based on the second electric quantity so as to control whether the charging chip charges the second battery cell. Therefore, the modes of flexibly, controllably and safely realizing the charging of one of the first battery cell and the second battery cell, the parallel charging of the first battery cell and the second battery cell or the disconnection of the first battery cell and the second battery cell and the charging chip are realized, the overcharge and the undercharge are avoided, and the rapid charging can be realized.
For method embodiments, reference is made to the description of device embodiments for the relevant points, since they essentially correspond to the device embodiments. The method embodiment and the apparatus embodiment are complementary, and are not described herein.
Fig. 6 is a schematic diagram illustrating a structure of an electronic device according to an exemplary embodiment of the present disclosure. Some embodiments of the present disclosure provide an electronic device 600 that includes any of the charge-discharge circuits mentioned above.
In some embodiments, the electronic device 600 includes a first folded portion 610 and a second folded portion 620, the first battery cell 120 of the charge-discharge circuit is disposed at the first folded portion 610, and the second battery cell 130 of the charge-discharge circuit is disposed at the second folded portion 620. In this way, the first battery cell 120 is caused to supply power to the first folded portion 610, and the second battery cell 130 is caused to supply power to the second folded portion 620. Illustratively, the first fold 610 and the second fold 620 are each a folding screen.
Fig. 7 is a block diagram of an electronic device according to an exemplary embodiment of the disclosure. For example, the electronic device 700 may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, an exercise device, a personal digital assistant, etc., that includes a transmit coil, a first magnetic sensor, and a second magnetic sensor in a device that adjusts the audio parameters of the headset.
Referring to FIG. 7, an electronic device 700 can include one or more of a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally operates overall with the electronic device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions. Further, the processing component 702 can include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 706 provides power to the various components of the electronic device 700. Power supply components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 700.
The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the target object. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a target object. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 further includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the electronic device 700. For example, the sensor assembly 714 may detect an on/off state of the electronic device 700, a relative positioning of the components, such as a display and keypad of the electronic device 700, a change in position of the electronic device 700 or one of the components, the sensor assembly 714 may also detect the presence or absence of a target object in contact with the electronic device 700, an orientation or acceleration/deceleration of the electronic device 700, and a change in temperature of the electronic device 700.
The communication component 716 is configured to facilitate communication between the electronic device 700 and other devices, either wired or wireless. The electronic device 700 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 700 can be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), control modules, micro-control modules, microprocessors, or other electronic components.
In an exemplary embodiment, there is also provided a computer-readable storage medium having stored thereon a program which, when executed by the processor 720, implements any one of the charge-discharge control methods as mentioned above. The readable storage medium may be, among other things, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
The various embodiments of the present disclosure described above may be complementary to one another without conflict.
The foregoing description of the preferred embodiments of the present disclosure is not intended to limit the disclosure, but rather to cover all modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present disclosure.