Circuit and method for controlling battery charging and discharging, and electronic product
By designing fast charging protocol circuits, main control circuits, step-up and buck management circuits in electronic products, efficient charging and convenient replacement of detachable batteries is achieved, and the low charging efficiency and replacement of lithium batteries in the prior art are solved. Inconvenient problem.
Patent Information
- Application Number
- CN202111679557.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2041-12-31
AI Technical Summary
Among existing electronic products, lithium batteries have low charging efficiency and inconvenient replacement, which requires professionals to carry out, affecting the user experience.
A circuit including fast charging protocol circuit, main control circuit, step-up and buck management circuit and voltage supply circuit is designed. Through the connection relationship between these circuits, the matching charging of the detachable battery is realized, and the charging efficiency and accuracy are improved. , and allow users to replace the battery by themselves.
It improves the charging efficiency and accuracy of the battery, simplifies the battery replacement process, and improves the user experience, so that users can replace the battery without professionals.
Smart Images

Figure CN114448032B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of charging and discharging, and in particular to a circuit and method for controlling battery charging and discharging, and an electronic product. Background Art
[0002] With the rapid development of electronic technology and people's pursuit of quality of life and work efficiency, more and more electronic products are favored by people.
[0003] In practical applications, most electronic products currently have lithium batteries designed inside them and are charged by conventional charging methods. However, practice has found that when existing batteries need to be replaced, professionals are required, and it takes a long time to charge the batteries by conventional methods. Therefore, it is necessary to propose a new battery charging solution to improve battery charging efficiency and portability of battery replacement. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a circuit for controlling the charging and discharging of a battery, which can improve the charging efficiency of the battery and the portability of battery replacement.
[0005] In order to solve the above technical problems, the first aspect of the present invention discloses a circuit for controlling battery charging and discharging, wherein the circuit for controlling battery charging and discharging includes a fast charging protocol circuit, a main control circuit, a buck-boost management circuit and a voltage providing circuit;
[0006] Among them, the first end of the fast charging protocol circuit is electrically connected to the first end of the main control circuit, the voltage output end of the fast charging protocol circuit is electrically connected to the first end of the voltage providing circuit, and the third end of the fast charging protocol circuit is used to electrically connect to the power adapter; the voltage input end of the main control circuit is electrically connected to the voltage input end of the voltage providing circuit, and the third end of the main control circuit is electrically connected to the first end of the buck-boost management circuit; the second end of the buck-boost management circuit is used to electrically connect to the power adapter, and the third end of the buck-boost management circuit and the third end of the voltage providing circuit are both used to electrically connect to the battery;
[0007] The fast charge protocol circuit is used for, when there is an input voltage in the power adapter, converting the input voltage into a first voltage for the buck-boost management circuit and the voltage supply circuit to operate, and providing the first voltage to the buck-boost management circuit and the voltage supply circuit;
[0008] The voltage supply circuit is used to step down the voltage output by the battery to a second voltage at which the main control circuit operates, and to supply the second voltage to the main control circuit;
[0009] The main control circuit is used to send a control level to the fast charging protocol circuit;
[0010] The fast charging protocol circuit is further used to determine the charging power of the power adapter according to the control level, and send a charging protocol corresponding to the charging power to the power adapter to communicate and handshake with the host computer of the power adapter, so that the power adapter provides the buck-boost management circuit with a charging power that matches the charging voltage;
[0011] The buck-boost management circuit is used to send the charging mode of the battery to the main control circuit;
[0012] The main control circuit is also used to control the buck-boost management circuit to charge the battery according to the charging power according to the charging mode. The number of the batteries is greater than 1, and all the batteries correspond to the electronic products. The number of the buck-boost management circuits is equal to the number of the batteries, and each battery corresponds to one buck-boost management circuit.
[0013] As an optional implementation, in the first aspect of the present invention, the buck-boost management circuit is further used to convert the current from the branch where the power adapter is located into a third voltage, and output the third voltage to the main control circuit;
[0014] The main control circuit is also used to determine the installation status of the circuit according to the third voltage, and according to the installation status, determine the control level to be sent to the fast charging protocol circuit, and trigger the execution of the operation of sending the control level to the fast charging protocol circuit.
[0015] As an optional implementation, in the first aspect of the present invention, the main control circuit is further configured to output a conduction voltage to the voltage providing circuit when an external trigger event is detected, so as to trigger the voltage providing circuit to be turned on;
[0016] The voltage providing circuit is further used to obtain the voltage output by the battery, step down the obtained voltage, and output the stepped-down voltage to the main control circuit;
[0017] The main control circuit is further used to detect the duration of the external trigger event, and when the duration is greater than or equal to a preset duration, output an enable signal to the voltage providing circuit;
[0018] The voltage providing circuit is further used to latch the working state of the battery according to the enable signal.
[0019] As an optional implementation, in the first aspect of the present invention, the fast charging protocol circuit includes a fast charging protocol chip U1, a power selection module and a current detection resistor RS1; wherein the power selection module includes a first power selection module and a second power selection module; wherein the first power selection module includes a first power configuration resistor R12 and a first switching device Q3A; the second power selection module includes a second power configuration resistor (R15) and a second switching device Q3B;
[0020] Among them, one end of the first power configuration resistor (R12) is electrically connected to the first end of the first switching device Q3A, and the second end of the first switching device Q3A is electrically connected to the first signal enable terminal PWRSEL1 of the main control circuit; one end of the second power configuration resistor R15 is electrically connected to the first end of the second switching device Q3B, and the second end of the second switching device Q3B is electrically connected to the second signal enable terminal PWRSEL2 of the main control circuit; the other end of the first power configuration resistor R12 and the other end of the second power configuration resistor R15 are both electrically connected to the configuration terminal AD1 of the fast charging protocol chip U1; the third end of the first switching device Q3A and the third end of the second switching device Q3B are both used for grounding.
[0021] As an optional implementation, in the first aspect of the present invention, the number of the batteries is greater than or equal to 1, and all the batteries correspond to the same electronic product;
[0022] When the number of the batteries is greater than 1, the voltage supply circuit includes a plurality of sub-voltage supply circuits, and the buck-boost management circuit includes a plurality of sub-buck-boost management circuits, and the number of all the sub-voltage supply circuits and the number of all the sub-buck-boost management circuits are equal to the number of the batteries;
[0023] Each of the sub-voltage supply circuits includes a sub-voltage acquisition circuit and a sub-voltage step-down circuit, wherein the first end of each of the sub-voltage acquisition circuits is electrically connected to the input end of its corresponding sub-voltage step-down circuit, and the second end of each of the sub-voltage acquisition circuits is electrically connected to the voltage output end of the fast charge protocol circuit; the third end of each of the sub-voltage acquisition circuits is used to electrically connect to the battery; the output end of each of the sub-voltage step-down circuits is electrically connected to the voltage input end of the main control circuit;
[0024] Each of the sub-voltage acquisition circuits is used to obtain the output voltage of the battery and transmit it to its corresponding sub-step-down circuit;
[0025] Each of the sub-step-down circuits is used to step down the output voltage of the battery and supply the stepped-down output voltage to the main control circuit.
[0026] As an optional implementation, in the first aspect of the present invention, each of the sub-voltage acquisition circuits includes a third switch device, a fourth switch device, a first diode, a first drive resistor and a second drive resistor;
[0027] Wherein, the first end of the third switch device included in each of the sub-voltage acquisition circuits and one end of the first drive resistor corresponding thereto are electrically connected to the first end of the fourth switch device corresponding thereto; the second end of the third switch device included in each of the sub-voltage acquisition circuits is electrically connected to the input end of the corresponding sub-step-down circuit; the second end of the fourth switch device included in each of the sub-voltage acquisition circuits is electrically connected to one end of the second drive resistor corresponding thereto; the other end of the second drive resistor included in each of the sub-voltage acquisition circuits is electrically connected to the cathode of the corresponding first diode;
[0028] The positive electrode of the first diode included in each of the sub-voltage acquisition circuits is electrically connected to the voltage output end of the fast charging protocol circuit; the third end of the third switching device included in each of the sub-voltage acquisition circuits and the other end of the corresponding first driving resistor are used to electrically connect to the battery; the third end of the fourth switching device included in each of the sub-voltage acquisition circuits is used for grounding.
[0029] As an optional implementation, in the first aspect of the present invention, the third switch device included in each of the sub-voltage acquisition circuits includes a PMOS tube, wherein the first end of the third switch included in each of the sub-voltage acquisition circuits is a gate, the second end of the third switch included in each of the sub-voltage acquisition circuits is a drain, and the third end of the third switch included in each of the sub-voltage acquisition circuits is a source;
[0030] The fourth switch device included in each of the sub-voltage acquisition circuits includes an NMOS tube, wherein the first end of the fourth switch device included in each of the sub-voltage acquisition circuits is a drain, the second end of the fourth switch device included in each of the sub-voltage acquisition circuits is a gate, and the third end of the fourth switch device included in each of the sub-voltage acquisition circuits is a source.
[0031] As an optional implementation, in the first aspect of the present invention, each of the sub-boost and buck-boost management circuits includes a sampling resistor and a boost and buck management chip;
[0032] Among them, one end of the sampling resistor included in each of the sub-buck-boost management circuits is electrically connected to the first current input terminal CSN of the corresponding buck-boost management chip; the other end of the sampling resistor included in each of the sub-buck-boost management circuits is electrically connected to the second current input terminal CSP of the corresponding buck-boost management chip and is used to electrically connect to the power adapter; the voltage output terminal CSD of each of the buck-boost management chips is electrically connected to the voltage detection terminal ADC of the main control circuit.
[0033] As an optional implementation, in the first aspect of the present invention, the voltage generated by the fast charge protocol circuit is supplied to all the sub-boost and buck management circuits;
[0034] Each of the sub-boost and buck-boost management circuits is further used to convert the current from the branch where the power adapter is located into a voltage, and output the voltage to the main control circuit, and the third voltage includes the voltages corresponding to all the sub-boost and buck-boost management circuits;
[0035] The main control circuit determines the installation status of the circuit according to the third voltage, and determines the control level sent to the fast charging protocol circuit according to the installation status, specifically including:
[0036] The main control circuit receives the voltage transmitted by all the sub-buck-boost management circuits, and compares the voltage corresponding to each sub-buck-boost management circuit with a preset voltage to obtain a comparison result;
[0037] When the comparison result is used to indicate that the number of the sub-buck-buck management circuits whose voltage is greater than the preset voltage among all the sub-buck-buck management circuits is equal to 1, the first signal enable terminal PWRSEL1 is controlled to be high and the second enable terminal PWRSEL2 is controlled to be low; when the comparison result is used to indicate that the number of the sub-buck-buck management circuits whose voltage is greater than the preset voltage among all the sub-buck-buck management circuits is greater than or equal to 2, the first signal enable terminal PWRSEL1 is controlled to be a pulse level and the second enable terminal PWRSEL2 is controlled to be high; when the comparison result is used to indicate that all the sub-buck-buck management circuits control the first signal enable terminal PWRSEL1 to be low and the second enable terminal PWRSEL2 to be low;
[0038] The control level includes the level of the first signal enable terminal PWRSEL1 and the level of the second enable terminal PWRSEL2.
[0039] As an optional implementation, in the first aspect of the present invention, each of the sub-voltage acquisition circuits further includes a second diode and a third diode;
[0040] Wherein, the cathode of the second diode included in each of the sub-voltage acquisition circuits is electrically connected to the other end of the corresponding second driving resistor, and the anode of the second diode included in each of the sub-voltage acquisition circuits is electrically connected to the enable terminal SWEN of the main control circuit;
[0041] The cathode of the third diode included in each sub-voltage acquisition circuit is electrically connected to the event trigger terminal SW of the main control circuit, and the anode of the third diode included in each sub-voltage acquisition circuit is electrically connected to one end of its corresponding first driving resistor.
[0042] As an optional implementation, in the first aspect of the present invention, the fast charging protocol circuit is further used to send a first signal and a second signal to the main control circuit during the battery charging process;
[0043] The main control circuit is further used to determine the state of the battery according to the first signal and the second signal; wherein, when the first signal is a high-level signal and the second signal is a high-level signal, the corresponding state of the battery is a charging complete state or an uninstalled state; when the first signal is a pulse signal and the second signal is a low-level signal, the corresponding state of the battery is a charging state; when the first signal is a low-level signal and the second signal is a low-level signal, the corresponding state of the battery is a power adapter not connected state;
[0044] The buck-boost management circuit is further used to send data corresponding to the battery to the main control circuit during the battery charging process, wherein the data corresponding to the battery includes clock data and status data;
[0045] The main control circuit is further used to determine the charging information of the battery according to the data corresponding to the battery, and the charging information of the battery includes one or more of the charging voltage of the battery, the charging current of the battery, the charging power of the battery and the charging time of the battery.
[0046] A second aspect of the present invention discloses a method for controlling battery charging and discharging, the circuit for controlling battery charging and discharging, and the circuit for controlling battery charging and discharging includes a fast charging protocol circuit, a main control circuit, a buck-boost management circuit and a voltage supply circuit, wherein a first end of the fast charging protocol circuit is electrically connected to a first end of the main control circuit, a voltage output end of the fast charging protocol circuit is electrically connected to a first end of the voltage supply circuit, and a third end of the fast charging protocol circuit is used to electrically connect to a power adapter; a voltage input end of the main control circuit is electrically connected to a voltage input end of the voltage supply circuit, and a third end of the main control circuit is electrically connected to a first end of the buck-boost management circuit; a second end of the buck-boost management circuit is used to electrically connect to the power adapter, and a third end of the buck-boost management circuit and a third end of the voltage supply circuit are both used to electrically connect to a battery; and the method includes:
[0047] When the power adapter has an input voltage, the fast charge protocol circuit converts the input voltage into a first voltage for the buck-boost management circuit and the voltage supply circuit to operate, and provides the first voltage to the buck-boost management circuit and the voltage supply circuit;
[0048] The voltage supply circuit steps down the voltage output by the battery to a second voltage at which the main control circuit operates, and supplies the second voltage to the main control circuit;
[0049] The main control circuit sends a control level to the fast charging protocol circuit;
[0050] The fast charging protocol circuit determines the charging power of the power adapter according to the control level, and sends a charging protocol corresponding to the charging power to the power adapter to communicate and handshake with the host computer of the power adapter, so that the power adapter provides the buck-boost management circuit with a charging power that matches the charging voltage;
[0051] The buck-boost management circuit sends the charging mode of the battery to the main control circuit;
[0052] The main control circuit controls the buck-boost management circuit to charge the battery according to the charging power according to the charging mode. The number of the batteries is greater than 1, and all the batteries correspond to the electronic product. The number of the buck-boost management circuits is equal to the number of the batteries, and each battery corresponds to one buck-boost management circuit.
[0053] As an optional implementation, in the second aspect of the present invention, after the main control circuit sends the control level to the fast charging protocol circuit, the method further includes:
[0054] The buck-boost management circuit converts the current of the branch where the power adapter is located into a third voltage, and outputs the third voltage to the main control circuit;
[0055] The main control circuit determines the installation status of the circuit based on the third voltage, and determines the control level to be sent to the fast charging protocol circuit based on the installation status, and triggers the operation of sending the control level to the fast charging protocol circuit.
[0056] As an optional implementation, in the second aspect of the present invention, the method further includes:
[0057] When an external trigger event is detected, the main control circuit outputs a conduction voltage to the voltage supply circuit to trigger the voltage supply circuit to conduct;
[0058] The voltage providing circuit obtains the voltage output by the battery, steps down the obtained voltage, and outputs the stepped-down voltage to the main control circuit;
[0059] The main control circuit detects the duration of the external trigger event, and when the duration is greater than or equal to a preset duration, outputs an enable signal to the voltage providing circuit;
[0060] The voltage providing circuit latches the working state of the battery according to the enable signal.
[0061] The third aspect of the present invention discloses an electronic product, the electronic product comprises a housing and other components, the electronic product comprises the circuit for controlling battery charging and discharging as described in any one of the first aspects, and the housing is used to place the circuit for controlling battery charging and discharging as described in any one of the first aspects.
[0062] The implementation of the present invention has the following beneficial effects:
[0063] In the present invention, a circuit for controlling battery charging and discharging is provided, and the circuit for controlling battery charging and discharging includes a fast charging protocol circuit, a main control circuit, a buck-boost management circuit and a voltage supply circuit; wherein, the first end of the fast charging protocol circuit is electrically connected to the first end of the main control circuit, the voltage output end of the fast charging protocol circuit is electrically connected to the first end of the voltage supply circuit, and the third end of the fast charging protocol circuit is used to electrically connect to a power adapter; the voltage input end of the main control circuit is electrically connected to the voltage input end of the voltage supply circuit, and the third end of the main control circuit is electrically connected to the first end of the buck-boost management circuit; the second end of the buck-boost management circuit is used to electrically connect to the power adapter, and the third end of the buck-boost management circuit and the third end of the voltage supply circuit are both used to electrically connect to the battery; the fast charging protocol circuit is used to, when there is an input voltage in the power adapter, convert the input voltage into a first voltage for supplying the buck-boost management circuit and the voltage supply circuit to work, and provide the first voltage Supply buck-boost management circuit and voltage supply circuit; voltage supply circuit, used to step down the voltage output by the battery to the second voltage of the main control circuit, and provide the second voltage to the main control circuit; main control circuit, used to send control level to fast charge protocol circuit; fast charge protocol circuit, also used to determine the charging power of the power adapter according to the control level, and send the charging protocol corresponding to the charging power to the power adapter, so as to communicate and handshake with the host computer of the power adapter, so that the power adapter provides the charging power matching the charging voltage to the buck-boost management circuit; buck-boost management circuit, used to send the charging mode of the battery to the main control circuit; main control circuit, also used to control the buck-boost management circuit to charge the battery according to the charging power according to the charging mode, the number of batteries is greater than 1, all batteries correspond to electronic products, the number of buck-boost management circuits is equal to the number of batteries, and each battery corresponds to a buck-boost management circuit. It can be seen that the present invention, by setting up a fast charging protocol circuit, a main control circuit, a buck-boost management circuit, a voltage providing circuit and constructing a connection relationship between the circuits, can independently charge multiple detachable batteries in a charging method that matches the batteries, thereby improving the charging efficiency and accuracy of the batteries. When the battery needs to be replaced, the user can replace the battery by himself without the need for a professional, thereby improving the convenience of battery replacement and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0065] Figure 1 It is a structural schematic diagram of a circuit for controlling battery charging and discharging disclosed in an embodiment of the present invention;
[0066] Figure 2 It is a structural schematic diagram of a fast charging protocol circuit disclosed in an embodiment of the present invention;
[0067] Figure 3 It is a structural schematic diagram of a sub-voltage providing circuit disclosed in an embodiment of the present invention;
[0068] Figure 4 is a structural schematic diagram of another seed voltage providing circuit disclosed in an embodiment of the present invention;
[0069] Figure 5 A structural schematic diagram of a two-stage step-down circuit is disclosed;
[0070] Figure 6 It is a structural schematic diagram of a sub-boost and buck management circuit disclosed in an embodiment of the present invention;
[0071] Figure 7 is a structural schematic diagram of another seed buck-boost management circuit disclosed in an embodiment of the present invention;
[0072] Figure 8 is a structural schematic diagram of a main control circuit disclosed in an embodiment of the present invention;
[0073] Fig. 9 It is a flow chart of a method for controlling battery charging and discharging disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0074] For better understanding and implementation, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0075] It should be noted that, unless otherwise clearly specified and limited, the term "electrical connection" in the specification and claims of the present invention and the above-mentioned drawings should be understood in a broad sense. For example, it can be a fixed electrical connection, a detachable electrical connection, or an integral electrical connection; it can be a mechanical electrical connection, an electrical electrical connection, or can communicate with each other; it can be directly connected, or indirectly connected through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. In addition, the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. The terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0076] The present invention discloses a circuit and method for controlling battery charging and discharging, and an electronic product. By setting a fast charging protocol circuit, a main control circuit, a buck-boost management circuit, a voltage providing circuit, and constructing a connection relationship between each circuit, a detachable battery is charged in a charging method that matches the battery, which can improve the charging efficiency and accuracy of the battery, and when the battery needs to be replaced, the user can replace the battery by himself without the need for a professional, thereby improving the convenience of battery replacement and improving the user experience. The circuit and method for controlling battery charging and discharging, and the electronic product described in the present invention are described in detail below.
[0077] Embodiment 1
[0078] See also Figure 1 , Figure 1 This is a schematic diagram of a circuit for controlling battery charging and discharging disclosed in an embodiment of the present invention. The circuit can be applied to any electronic product that needs to be charged and discharged, wherein the electronic product includes a lighting device (such as lighting equipment, etc.) or a mobile device (such as a notebook, a mobile phone, etc.), and the present invention does not limit this. Figure 1 As shown, the circuit for controlling battery charging and discharging includes a fast charging protocol circuit, a main control circuit, a buck-boost management circuit and a voltage providing circuit;
[0079] Among them, the first end of the fast charging protocol circuit is electrically connected to the first end of the main control circuit, the voltage output end of the fast charging protocol circuit is electrically connected to the first end of the voltage supply circuit, and the third end of the fast charging protocol circuit is used to electrically connect to the power adapter; the voltage input end of the main control circuit is electrically connected to the voltage input end of the voltage supply circuit, and the third end of the main control circuit is electrically connected to the first end of the buck-boost management circuit; the second end of the buck-boost management circuit is used to electrically connect to the power adapter, and the third end of the buck-boost management circuit and the third end of the voltage supply circuit are both used to electrically connect to the battery; the fast charging protocol circuit is used to convert the input voltage into a first voltage for supplying the buck-boost management circuit and the voltage supply circuit when there is an input voltage in the power adapter, and provide the first voltage to the buck-boost management circuit and the voltage supply circuit; the voltage supply circuit is used to convert the voltage output by the battery The voltage is stepped down to the second voltage at which the main control circuit works, and the second voltage is provided to the main control circuit; the main control circuit is used to send a control level to the fast charge protocol circuit; the fast charge protocol circuit is also used to determine the charging power of the power adapter according to the control level, and send a charging protocol corresponding to the charging power to the power adapter to communicate and shake hands with the host computer of the power adapter, so that the power adapter provides the charging power that matches the charging voltage to the buck-boost management circuit; the buck-boost management circuit is used to send the charging mode of the battery to the main control circuit; the main control circuit is also used to control the buck-boost management circuit to charge the battery according to the charging power according to the charging mode, the number of batteries is greater than 1, and all batteries correspond to electronic products, the number of buck-boost management circuits is equal to the number of batteries, and each battery corresponds to a buck-boost management circuit. Among them, the charging mode includes one of the trickle mode, constant current mode, constant voltage mode, etc.
[0080] In the embodiment of the present invention, the battery is installed on the electronic product, and the battery can be removed from the electronic product. Further, the number of batteries that can be carried by the electronic product is greater than or equal to 1. The power adapter is loaded on the type-cJ1 interface.
[0081] It can be seen that the implementation Figure 1 The described circuit for controlling battery charging and discharging charges a removable battery in a charging method that matches the battery by setting up a fast charging protocol circuit, a main control circuit, a buck-boost management circuit, a voltage providing circuit, and constructing a connection relationship between the circuits. This can improve the charging efficiency and accuracy of the battery, and when the battery needs to be replaced, the user can replace the battery by themselves without the need for a professional, thereby improving the convenience of battery replacement and improving the user experience.
[0082] In the embodiment of the present invention, optionally, Figure 2 As shown, Figure 2 is a structural diagram of a fast charging protocol circuit disclosed in an embodiment of the present invention, such as Figure 2As shown, the fast charging protocol circuit includes a fast charging protocol chip U1, a power selection module and a current detection resistor RS1; wherein the power selection module includes a first power selection module and a second power selection module; wherein the first power selection module includes a first power configuration resistor R12 and a first switch device Q3A; the second power selection module includes a second power configuration resistor R15 and a second switch device Q3B;
[0083] Among them, one end of the first power configuration resistor R12 is electrically connected to the first end of the first switch device Q3A, and the second end of the first switch device Q3A is electrically connected to the first signal enable terminal PWRSEL1 of the main control circuit; one end of the second power configuration resistor R15 is electrically connected to the first end of the second switch device Q3B, and the second end of the second switch device Q3B is electrically connected to the second signal enable terminal PWRSEL2 of the main control circuit; the other end of the first power configuration resistor R12 and the other end of the second power configuration resistor R15 are both electrically connected to the configuration terminal AD1 of the fast charging protocol chip U1; the third end of the first switch device Q3A and the third end of the second switch device Q3B are both used for grounding;
[0084] In the embodiment of the present invention, optionally, the first switch device Q3A includes but is not limited to any device or component that can play an equivalent switch control role, such as an NMOS tube. Wherein, when the first switch device Q3A is an NMOS tube, the first end of the first switch device Q3A is a drain, the second end of the first switch device Q3A is a gate, and the third end of the first switch device Q3A is a source. The second switch device Q3B includes but is not limited to any device or component that can play an equivalent switch control role, such as an NMOS tube. Wherein, when the second switch device Q3B is an NMOS tube, the first end of the second switch device Q3B is a drain, the second end of the second switch device Q3B is a gate, and the third end of the second switch device Q3B is a source. This is conducive to selecting a suitable second switch device Q3B according to the actual situation of the components, thereby improving the applicability of the circuit. This is conducive to selecting a suitable first switch device Q3A and a second switch device Q3B according to the actual situation of the components, thereby improving the applicability of the circuit.
[0085] In an optional embodiment, the buck-boost management circuit is further used to convert the current from the branch where the power adapter is located into a third voltage, and output the third voltage to the main control circuit;
[0086] The main control circuit is also used to determine the installation status of the circuit according to the third voltage, and according to the installation status, determine the control level sent to the fast charging protocol circuit, and trigger the execution of the above-mentioned operation of sending the control level to the fast charging protocol circuit.
[0087] It can be seen that this optional embodiment can improve the accuracy and efficiency of determining the control level by converting the current of the branch where the power adapter is located into voltage and comparing it with the preset voltage, which is beneficial to improving the accuracy and reliability of charging power configuration by the fast charging protocol circuit, and further improving the charging accuracy and efficiency of the battery.
[0088] In another optional embodiment, the main control circuit is further used to output a turn-on voltage to the voltage providing circuit when an external trigger event is detected, so as to trigger the voltage providing circuit to turn on;
[0089] The voltage supply circuit is also used to obtain the voltage output by the battery, step down the obtained voltage, and output the stepped-down voltage to the main control circuit;
[0090] The main control circuit is also used to detect the duration of the external trigger event, and when the duration is greater than or equal to a preset duration, output an enable signal to the voltage providing circuit;
[0091] The voltage supply circuit is also used to latch the working state of the battery according to the enable signal.
[0092] It can be seen that this optional embodiment is beneficial to improving the accuracy and reliability of executing the working state operation of latching the battery by detecting the continuous triggering duration of the triggering event and comparing it with the preset duration, and independently discharging the battery, which is beneficial to the working accuracy, efficiency and stability of the battery.
[0093] In another optional embodiment, the number of the above-mentioned batteries is greater than or equal to 1, and all batteries correspond to the same electronic product; and when the number of batteries is greater than 1, the voltage supply circuit includes a plurality of sub-voltage supply circuits, and the buck-boost management circuit includes a plurality of sub-buck-boost management circuits, and the number of all sub-voltage supply circuits and the number of all sub-buck-boost management circuits are equal to the number of batteries;
[0094] Each sub-voltage supply circuit includes a sub-voltage acquisition circuit and a sub-voltage step-down circuit, wherein the first end of each sub-voltage acquisition circuit is electrically connected to the input end of its corresponding sub-voltage step-down circuit, and the second end of each sub-voltage acquisition circuit is electrically connected to the voltage output end of the fast charging protocol circuit; the third end of each sub-voltage acquisition circuit is used to electrically connect to the battery; the output end of each sub-voltage step-down circuit is electrically connected to the voltage input end of the main control circuit;
[0095] Each sub-voltage acquisition circuit is used to obtain the output voltage of the battery and transmit it to its corresponding sub-step-down circuit; each sub-step-down circuit is used to reduce the output voltage of the battery and supply the reduced output voltage to the main control circuit.
[0096] In this optional embodiment, optionally, each sub-voltage acquisition circuit includes a third switch device, a fourth switch device, a first diode, a first drive resistor and a second drive resistor;
[0097] Wherein, the first end of the third switch device included in each sub-voltage acquisition circuit and one end of the first driving resistor corresponding thereto are electrically connected to the first end of the fourth switch device corresponding thereto; the second end of the third switch device included in each sub-voltage acquisition circuit is electrically connected to the input end of the corresponding sub-step-down circuit; the second end of the fourth switch device included in each sub-voltage acquisition circuit is electrically connected to one end of the second driving resistor corresponding thereto; the other end of the second driving resistor included in each sub-voltage acquisition circuit is electrically connected to the cathode of the corresponding first diode;
[0098] The positive electrode of the first diode included in each sub-voltage acquisition circuit is electrically connected to the voltage output end of the fast charging protocol circuit; the third end of the third switching device included in each sub-voltage acquisition circuit and the other end of the corresponding first driving resistor are both used to electrically connect to the battery; the third end of the fourth switching device included in each sub-voltage acquisition circuit is used for grounding.
[0099] In this optional embodiment, optionally, the third switch device included in each sub-voltage acquisition circuit includes a PMOS tube, wherein the first end of the third switch included in each sub-voltage acquisition circuit is a gate, the second end of the third switch included in each sub-voltage acquisition circuit is a drain, and the third end of the third switch included in each sub-voltage acquisition circuit is a source;
[0100] The fourth switch device included in each sub-voltage acquisition circuit includes an NMOS tube, wherein the first end of the fourth switch device included in each sub-voltage acquisition circuit is a drain, the second end of the fourth switch device included in each sub-voltage acquisition circuit is a gate, and the third end of the fourth switch device included in each sub-voltage acquisition circuit is a source.
[0101] In this optional embodiment, each sub-voltage acquisition circuit further includes a second diode and a third diode;
[0102] Among them, the cathode of the second diode included in each sub-voltage acquisition circuit is electrically connected to the other end of the corresponding second driving resistor, and the anode of the second diode included in each sub-voltage acquisition circuit is electrically connected to the enable terminal SWEN of the main control circuit; the cathode of the third diode included in each sub-voltage acquisition circuit is electrically connected to the event trigger terminal SW of the main control circuit, and the anode of the third diode included in each sub-voltage acquisition circuit is electrically connected to one end of the corresponding first driving resistor.
[0103] In this optional embodiment, the sub-buck circuit may include a buck chip and other electronic components, such as a capacitor, and the sub-buck circuit may be a circuit that obtains the required voltage through a single-stage buck (such as SGM2203-3.3), or a circuit that obtains the required voltage through a two-stage buck. It should be noted that when the sub-buck circuit is a circuit that obtains the required voltage through a two-stage buck, the secondary buck circuit is a circuit shared by all batteries.
[0104] Take two sub-voltage collection circuits and sub-voltage step-down circuits as examples for illustration. Figure 3 and Figure 4 As shown, Figure 3 and Figure 4 A schematic diagram of a sub-voltage providing circuit disclosed in an embodiment of the present invention is shown in FIG. Figure 3 As shown, the sub-voltage acquisition circuit includes a third switch device Q4B, a fourth switch device Q4A, a first diode D4, a first drive resistor R34, a second drive resistor R36, a second diode D3, and a third diode D2. Figure 4 The connection relationship between electronic components and Figure 3 The same as in, no further description is given here. Figure 5 Disclosed is a structural schematic diagram of a two-stage buck circuit, wherein the two-stage buck circuit is a common end of a one-stage buck circuit.
[0105] In this optional embodiment, each sub-buck-buck management circuit includes a sampling resistor and a buck-buck management chip; wherein, one end of the sampling resistor included in each sub-buck-buck management circuit is electrically connected to the first current input terminal CSN of its corresponding buck-buck management chip; the other end of the sampling resistor included in each sub-buck-buck management circuit is electrically connected to the second current input terminal CSP of its corresponding buck-buck management chip and is used to electrically connect to a power adapter; the voltage output terminal CSD of each buck-buck management chip is electrically connected to the voltage detection terminal ADC of the main control circuit.
[0106] Take two sub-boost and buck management circuits as an example. Figure 6 and Figure 7 As shown, Figure 6 and Figure 7 Schematic diagram of a sub-boost and buck management circuit disclosed in an embodiment of the present invention. Figure 6 As shown, the sub-boost-boost management circuit includes a sampling resistor R22 and a boost-boost management chip U3SC8905. Figure 7 The connection relationship between electronic components and Figure 6 The same as in, no further description is given here.
[0107] In yet another optional embodiment, the voltage generated by the fast charge protocol circuit is supplied to all sub-buck-boost management circuits;
[0108] Each sub-boost / buck management circuit is further used to convert the current from the branch where the power adapter is located into a voltage, and output the voltage to the main control circuit, and the third voltage includes the voltages corresponding to all the sub-boost / buck management circuits;
[0109] The main control circuit determines the installation status of the circuit according to the third voltage, and determines the control level sent to the fast charging protocol circuit according to the installation status, specifically including:
[0110] The main control circuit receives the voltage transmitted by all the sub-buck-boost management circuits, and compares the voltage corresponding to each sub-buck-boost management circuit with the preset voltage to obtain a comparison result;
[0111] When the comparison result is used to indicate that the number of sub-buck-buck management circuits whose voltage is greater than the preset voltage among all sub-buck-buck management circuits is equal to 1, the first signal enable terminal PWRSEL1 is controlled to be high and the second enable terminal PWRSEL2 is controlled to be low; when the comparison result is used to indicate that the number of sub-buck-buck management circuits whose voltage is greater than the preset voltage among all sub-buck-buck management circuits is greater than or equal to 2, the first signal enable terminal PWRSEL1 is controlled to be a pulse level and the second enable terminal PWRSEL2 is controlled to be high; when the comparison result is used to indicate that all sub-buck-buck management circuits control their first signal enable terminal PWRSEL1 to be low and the second enable terminal PWRSEL2 to be low;
[0112] The control level includes the level of the first signal enable terminal PWRSEL1 and the level of the second enable terminal PWRSEL2.
[0113] For the schematic diagram of the main control circuit, please refer to Figure 8 , Figure 8 The present invention is a schematic diagram of the structure of a main control circuit disclosed in an embodiment of the present invention.
[0114] In yet another optional embodiment, the fast charge protocol circuit is further configured to send the first signal and the second signal to the main control circuit during the battery charging process;
[0115] The main control circuit is further used to determine the state of the battery according to the first signal and the second signal; wherein, when the first signal is a high-level signal and the second signal is a high-level signal, the corresponding state of the battery is a charging complete state or an uninstalled state; when the first signal is a pulse signal and the second signal is a low-level signal, the corresponding state of the battery is a charging state; when the first signal is a low-level signal and the second signal is a low-level signal, the corresponding state of the battery is a power adapter not connected state;
[0116] The buck-boost management circuit is also used to send data corresponding to the battery to the main control circuit during the battery charging process, and the data corresponding to the battery includes clock data and status data;
[0117] The main control circuit is also used to determine the battery charging information according to the data corresponding to the battery. The battery charging information includes one or more of the battery charging voltage, the battery charging current, the battery charging power and the battery charging time.
[0118] It can be seen that this optional embodiment helps to improve the accuracy of the battery charging status and reduce the occurrence of overcharging or undercharging to the required power by detecting the battery charging status during the battery charging process.
[0119] The following electronic products can carry two batteries (lithium batteries), the main control chip of the main control circuit is a single chip microcomputer and combined with Figure 1-Figure 7 The working principle of the circuit used to control battery charging and discharging is explained, wherein the principle is as follows:
[0120] When the battery is installed and needs to be charged, the power adapter connects to the power through the TYPE-C interface, and supplies the VBUS voltage to the fast charging protocol chip SC2021 through the TYPE-C interface. The fast charging protocol chip SC2021 starts working after being powered on, and generates its own VDD voltage to Q4B, Q4A MOS NCE2003 and Q5B, Q5A MOS NCE2003 respectively. At this time, if MOS NCE2003 is turned on, the buck chip SGM2205-5.0 of the same unit is powered, generating a 5V voltage to supply the buck chip SGM2033-3.3 (it should be noted that if the Q4B, Q4A MOS NCE2003 connected to the two groups of batteries are turned on and Q5B, Q5A MOS When NCE2003 is turned on, two sets of 5V voltages are generated and short-circuited, and then supplied to the step-down chip SGM2033-3.3), generating a 3.3V voltage, which is supplied to the single-chip computer STM32L476RET6. After the single-chip computer is powered on, it works. The single-chip computer obtains the signal CSO1 and the signal CSO2 from the two sets of step-up and step-down management chips SC8905, and compares the signal CSO1 voltage and the signal CSO2 voltage with the preset voltage respectively. If the signal CSO1 voltage and the signal CSO2 voltage are both greater than the preset voltage, it means that the current flowing through the corresponding sampling resistors (R22, R23) in the two sets of step-up and step-down management chips SC8905 is greater than the current threshold. At this time, the single-chip computer STM32L476RET6 determines that both sets of batteries are installed, controls its first signal enable terminal PWRSEL1 to be low and its second enable terminal PW RSEL2 is at a high level, so that the fast charging protocol chip SC2021 is grounded through the second power configuration resistor R15 and the MOS tube Q3B, and the charging power of the power adapter is determined (such as the maximum support of 30W), and the charging protocol corresponding to the charging power is sent to the power adapter through the data line DP / DM / CC1 / CC2 to communicate and shake hands with the host computer of the power adapter, so that the power adapter provides the charging power matching the charging voltage for the buck-boost management circuit, such as the maximum support of 12V, which is loaded on two sets of buck-boost management chips SC8905. The buck-boost management chip SC8905 works and sends the battery charging mode (such as trickle charging mode, constant current charging mode, etc.) to the single-chip microcomputer. The single-chip microcomputer then controls the corresponding buck-boost management circuit according to their respective charging modes to charge the batteries of the same unit according to the charging voltage;If one of the voltages of the signal CSO1 and the signal CSO2 is greater than the preset voltage, it means that the current flowing through the corresponding sampling resistor (R22 or R23) of one of the two groups of buck-boost management chips SC8905 is greater than the current threshold. At this time, the microcontroller STM32L476RET6 determines that a group of batteries are installed, controls its first signal enable terminal PWRSEL1 to be high and its second enable terminal PWRSEL2 to be low, so that the fast charging protocol chip SC2021 is grounded through the first power configuration resistor R12 and the MOS tube Q3A, and determines the charging power of the power adapter (such as the maximum support of 18W), and transmits it through the data line DP / DM / CC1 / CC2 sends the charging protocol corresponding to the charging power to the power adapter to communicate and shake hands with the upper computer of the power adapter, so that the power adapter provides the buck-boost management circuit with the charging power matching the charging voltage, such as the maximum support of 12V, which is loaded on the working buck-boost management chip SC8905. The buck-boost management chip SC8905 works and sends the battery charging mode (such as trickle charging mode, constant current charging mode, etc.) to the microcontroller. The microcontroller then controls the corresponding buck-boost management chip SC8905 according to the charging mode to charge the batteries of the same unit according to the charging voltage; if the signal CSO1 voltage and the signal CSO2 voltage are both less than the preset voltage, then the table It shows that the current flowing through the corresponding sampling resistors (R22, R23) of the two groups of buck-boost management chips SC8905 is less than the current threshold. At this time, the microcontroller STM32L476RET6 controls its first signal enable terminal PWRSEL1 to be low and its second enable terminal PWRSEL2 to be low, so that the first power configuration resistor R12 and the second power configuration resistor R15 of the fast charging protocol chip SC2021 are suspended, the default configuration, and will not communicate with the host computer of the power adapter through the data line DP / DM / CC1 / CC2. The power adapter configures the output voltage to the default value of 5V; Among them, during the battery charging process, the fast charging protocol chip SC2021 sends a signal to the microcontroller. A first signal STAT1 and a second signal STAT2; the single chip computer determines the state of the battery according to the first signal and the second signal; wherein, when the first signal is a high level signal and the second signal is a high level signal, the corresponding state of the battery is a charging complete state or an uninstalled state; when the first signal is a pulse signal and the second signal is a low level signal, the corresponding state of the battery is a charging state; when the first signal is a low level signal and the second signal is a low level signal, the corresponding state of the battery is a power adapter not connected state. During the battery charging process, the buck-boost management chip SC8905 sends the data corresponding to the battery to the single chip computer through I2C, and the data corresponding to the battery includes clock data and status data;The single chip microcomputer determines the battery charging information according to the data corresponding to the battery. The battery charging information includes the battery charging voltage, battery charging, etc., and controls the buck-boost management chip SC8905 to charge the battery.
[0121] After the battery is installed, if there is no power input to the TYPE-C interface, when the power button KEY is pressed, if MOS NCE2003 is turned on, the buck chip SGM2205-5.0 of the same unit is powered, generating a 5V voltage to supply the buck chip SGM2033-3.3, generating a 3.3V voltage to supply the microcontroller STM32L476RET6, and the microcontroller works after power is obtained to detect whether the duration of the button being pressed is greater than or equal to the set duration (such as 3s). If so, the microcontroller STM32L476RET6 sends an enable signal SWEN as a high level, latches the working status of MOS NCE2003 (Q4B, Q4A MOS NCE2003, or, Q5B, Q5A MOS NCE2003), and the single lithium battery is powered on successfully; if the Q4B, Q4A MOS NCE2003 connected to the two battery groups are turned on and Q5B, Q5AMOS When NCE2003 is turned on, two groups of 5V voltages are generated and short-circuited, and then supplied to the step-down chip SGM2033-3.3 to generate 3.3V voltage, which is supplied to the microcontroller STM32L476RET6. After the microcontroller is powered on, it works to detect whether the time the button is pressed is greater than or equal to the set time (such as 3s). If so, the microcontroller STM32L476RET6 sends an enable signal SWEN as a high level, latches the working status of the two groups of MOS NCE2003 (Q4B, Q4A MOS NCE2003 and Q5B, Q5A MOS NCE2003), and the two groups of lithium batteries are successfully powered on.
[0122] Embodiment 2
[0123] See also Fig. 9 As shown, Fig. 9 As shown, Fig. 9It is a flow chart of a method for controlling battery charging and discharging disclosed in an embodiment of the present invention. The method is applied in a circuit for controlling battery charging and discharging, wherein the circuit for controlling battery charging and discharging includes: a fast charging protocol circuit, a main control circuit, a buck-boost management circuit and a voltage supply circuit; wherein the first end of the fast charging protocol circuit is electrically connected to the first end of the main control circuit, the voltage output end of the fast charging protocol circuit is electrically connected to the first end of the voltage supply circuit, and the third end of the fast charging protocol circuit is used to electrically connect to a power adapter; the voltage input end of the main control circuit is electrically connected to the voltage input end of the voltage supply circuit, and the third end of the main control circuit is electrically connected to the first end of the buck-boost management circuit; the second end of the buck-boost management circuit is used to electrically connect to a power adapter, and the third end of the buck-boost management circuit and the third end of the voltage supply circuit are both used to electrically connect to the battery. And, as Figure 8 As shown, the method for controlling battery charging and discharging includes the following steps:
[0124] 101. When there is an input voltage in the power adapter, the fast charging protocol circuit converts the input voltage into a first voltage for the buck-boost management circuit and the voltage supply circuit to operate, and provides the first voltage to the buck-boost management circuit and the voltage supply circuit.
[0125] 102. A voltage supply circuit, which steps down the voltage output by the battery to a second voltage for the main control circuit to operate, and supplies the second voltage to the main control circuit.
[0126] 103. The main control circuit sends a control level to the fast charging protocol circuit.
[0127] 104. The fast charging protocol circuit determines the charging power of the power adapter according to the control level, and sends a charging protocol corresponding to the charging power to the power adapter to communicate and handshake with the host computer of the power adapter, so that the power adapter provides the charging power matching the charging voltage to the buck-boost management circuit.
[0128] 105. The buck-boost management circuit sends the battery charging mode to the main control circuit.
[0129] 106. The main control circuit controls the buck-boost management circuit to charge the battery according to the charging power according to the charging mode.
[0130] In an embodiment of the present invention, optionally, the number of batteries is greater than 1, all batteries correspond to electronic products, the number of buck-boost management circuits is equal to the number of batteries, and each battery corresponds to a buck-boost management circuit.
[0131] It can be seen that the implementation Fig. 9The described method for controlling battery charging and discharging charges a removable battery in a charging method that matches the battery by setting a fast charging protocol circuit, a main control circuit, a buck-boost management circuit, a voltage providing circuit, and constructing a connection relationship between the circuits. This can improve the charging efficiency and accuracy of the battery, and when the battery needs to be replaced, the user can replace the battery by themselves without the need for a professional, thereby improving the convenience of battery replacement and improving the user experience.
[0132] In an optional embodiment, the method for controlling battery charging and discharging comprises the following steps:
[0133] The buck-boost management circuit converts the current from the branch where the power adapter is located into a third voltage, and outputs the third voltage to the main control circuit;
[0134] The main control circuit determines the installation status of the circuit according to the third voltage, and determines the control level sent to the fast charging protocol circuit according to the installation status, and triggers the execution of the above-mentioned operation of sending the control level to the fast charging protocol circuit.
[0135] It can be seen that this optional embodiment can improve the accuracy and efficiency of determining the control level by converting the current of the branch where the power adapter is located into voltage and comparing it with the preset voltage, which is beneficial to improving the accuracy and reliability of charging power configuration by the fast charging protocol circuit, and further improving the charging accuracy and efficiency of the battery.
[0136] In another optional embodiment, the method for controlling battery charging and discharging comprises the following steps:
[0137] The main control circuit, when detecting an external trigger event, outputs a conduction voltage to the voltage providing circuit to turn on the trigger voltage providing circuit;
[0138] A voltage supply circuit obtains the voltage output by the battery, steps down the obtained voltage, and outputs the stepped-down voltage to the main control circuit;
[0139] The main control circuit detects the duration of the external trigger event, and when the duration is greater than or equal to a preset duration, outputs an enable signal to the voltage providing circuit;
[0140] The voltage providing circuit latches the working state of the battery according to the enable signal.
[0141] It can be seen that this optional embodiment is beneficial to improving the accuracy and reliability of executing the operation of latching the working state of the battery by detecting the continuous triggering duration of the triggering event and comparing it with the preset duration, which is beneficial to the working accuracy of the battery.
[0142] In yet another optional embodiment, the method for controlling battery charging and discharging comprises the following steps:
[0143] A fast charging protocol circuit, which sends a first signal and a second signal to a main control circuit during battery charging;
[0144] The main control circuit determines the state of the battery according to the first signal and the second signal; wherein, when the first signal is a high-level signal and the second signal is a high-level signal, the corresponding state of the battery is a charging complete state or an uninstalled state; when the first signal is a pulse signal and the second signal is a low-level signal, the corresponding state of the battery is a charging state; when the first signal is a low-level signal and the second signal is a low-level signal, the corresponding state of the battery is a power adapter not connected state;
[0145] The buck-boost management circuit sends data corresponding to the battery to the main control circuit during the battery charging process, and the data corresponding to the battery includes clock data and status data;
[0146] The main control circuit determines the charging information of the battery according to the data corresponding to the battery. The charging information of the battery includes one or more of the charging voltage of the battery, the charging current of the battery, the charging amount of the battery and the charging time of the battery.
[0147] It can be seen that this optional embodiment helps to improve the accuracy of the battery charging status and reduce the occurrence of overcharging or undercharging to the required power by detecting the battery charging status during the battery charging process.
[0148] Embodiment 3
[0149] An electronic product disclosed in an embodiment of the present invention includes any product that needs to be charged and discharged, such as a lighting device (such as a lighting device, etc.) or a mobile device (such as a notebook, a mobile phone, etc.), and the electronic product includes a circuit for controlling battery charging and discharging as described in Example 1. Furthermore, the electronic product also includes a housing or other components for packaging the circuit for controlling battery charging and discharging. It should be noted that for a detailed description of the circuit for controlling battery charging and discharging, please refer to the specific description of the relevant content in Example 1, which will not be repeated in this embodiment.
[0150] It can be seen that this electronic product can charge the removable battery in a charging method that matches the battery by setting up the fast charging protocol circuit, the main control circuit, the buck-boost management circuit, the voltage supply circuit and constructing a connection relationship between the circuits, thereby improving the battery charging efficiency and accuracy. When the battery needs to be replaced, the user can replace the battery by themselves without the need for a professional, thereby improving the convenience of battery replacement and improving the user experience.
[0151] The above is a detailed introduction to a circuit and an electronic product for controlling battery charging and discharging disclosed in an embodiment of the present invention. Specific embodiments are used in this article to illustrate the principles and implementation methods of the present invention, but the above preferred embodiments are not used to limit the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a person skilled in the art, according to the idea of the present invention, without departing from the spirit and scope of the present invention, there will be changes in the specific implementation methods and application scopes. Therefore, the scope of protection of the present invention shall be based on the scope defined in the claims.
Claims
1. A circuit for controlling battery charging and discharging, characterized in that: The circuit for controlling battery charging and discharging includes a fast charging protocol circuit, a main control circuit, a buck-boost management circuit and a voltage supply circuit; Among them, the first end of the fast charging protocol circuit is electrically connected to the first end of the main control circuit, the voltage output end of the fast charging protocol circuit is electrically connected to the first end of the voltage providing circuit, and the third end of the fast charging protocol circuit is used to electrically connect to the power adapter; the voltage input end of the main control circuit is electrically connected to the voltage input end of the voltage providing circuit, and the third end of the main control circuit is electrically connected to the first end of the buck-boost management circuit; the second end of the buck-boost management circuit is used to electrically connect to the power adapter, and the third end of the buck-boost management circuit and the third end of the voltage providing circuit are both used to electrically connect to the battery; The fast charge protocol circuit is used for, when there is an input voltage in the power adapter, converting the input voltage into a first voltage for the buck-boost management circuit and the voltage supply circuit to operate, and providing the first voltage to the buck-boost management circuit and the voltage supply circuit; The voltage supply circuit is used to step down the voltage output by the battery to a second voltage at which the main control circuit operates, and to supply the second voltage to the main control circuit; The main control circuit is used to send a control level to the fast charging protocol circuit; The fast charging protocol circuit is further used to determine the charging power of the power adapter according to the control level, and send a charging protocol corresponding to the charging power to the power adapter to communicate and handshake with the host computer of the power adapter, so that the power adapter provides the buck-boost management circuit with a charging power that matches the charging voltage; The buck-boost management circuit is used to send the charging mode of the battery to the main control circuit; The main control circuit is further used to control the buck-boost management circuit to charge the battery according to the charging power according to the charging mode, the number of the batteries is greater than 1, all the batteries are installed in the electronic product, the number of the buck-boost management circuits is equal to the number of the batteries, and each battery corresponds to one buck-boost management circuit; The buck-boost management circuit is further used to convert the current from the branch where the power adapter is located into a third voltage, and output the third voltage to the main control circuit; The main control circuit is also used to determine the installation status of the circuit according to the third voltage, and according to the installation status, determine the control level to be sent to the fast charging protocol circuit, and trigger the execution of the operation of sending the control level to the fast charging protocol circuit.
2. The circuit for controlling battery charging and discharging according to claim 1, characterized in that: The main control circuit is further configured to output a conduction voltage to the voltage providing circuit when an external trigger event is detected, so as to trigger the voltage providing circuit to conduct; The voltage providing circuit is further used to obtain the voltage output by the battery, step down the obtained voltage, and output the stepped-down voltage to the main control circuit; The main control circuit is further used to detect the duration of the external trigger event, and when the duration is greater than or equal to a preset duration, output an enable signal to the voltage providing circuit; The voltage providing circuit is further used to latch the working state of the battery according to the enable signal.
3. The circuit for controlling battery charging and discharging according to claim 1 or 2, characterized in that: The fast charging protocol circuit includes a fast charging protocol chip (U1), a power selection module and a current detection resistor (RS1); wherein the power selection module includes a first power selection module and a second power selection module; wherein the first power selection module includes a first power configuration resistor (R12) and a first switch device (Q3A); and the second power selection module includes a second power configuration resistor (R15) and a second switch device (Q3B); Among them, one end of the first power configuration resistor (R12) is electrically connected to the first end of the first switch device (Q3A), and the second end of the first switch device (Q3A) is electrically connected to the first signal enable end (PWRSEL1) of the main control circuit; one end of the second power configuration resistor (R15) is electrically connected to the first end of the second switch device (Q3B), and the second end of the second switch device (Q3B) is electrically connected to the second signal enable end (PWRSEL2) of the main control circuit; the other end of the first power configuration resistor (R12) and the other end of the second power configuration resistor (R15) are both electrically connected to the configuration end (AD1) of the fast charging protocol chip U1; the third end of the first switch device (Q3A) and the third end of the second switch device (Q3B) are both used for grounding.
4. The circuit for controlling battery charging and discharging according to claim 1 or 2, characterized in that: When the number of the batteries is greater than 1, the voltage supply circuit includes a plurality of sub-voltage supply circuits, and the buck-boost management circuit includes a plurality of sub-buck-boost management circuits, and the number of all the sub-voltage supply circuits and the number of all the sub-buck-boost management circuits are equal to the number of the batteries; Each of the sub-voltage supply circuits includes a sub-voltage acquisition circuit and a sub-voltage step-down circuit, wherein the first end of each of the sub-voltage acquisition circuits is electrically connected to the input end of its corresponding sub-voltage step-down circuit, and the second end of each of the sub-voltage acquisition circuits is electrically connected to the voltage output end of the fast charge protocol circuit; the third end of each of the sub-voltage acquisition circuits is used to electrically connect to the battery; the output end of each of the sub-voltage step-down circuits is electrically connected to the voltage input end of the main control circuit; Each of the sub-voltage acquisition circuits is used to obtain the output voltage of the battery and transmit it to its corresponding sub-step-down circuit; Each of the sub-step-down circuits is used to step down the output voltage of the battery and supply the stepped-down output voltage to the main control circuit.
5. The circuit for controlling battery charging and discharging according to claim 4, characterized in that: Each of the sub-voltage acquisition circuits includes a third switch device, a fourth switch device, a first diode, a first drive resistor and a second drive resistor; Wherein, the first end of the third switch device included in each of the sub-voltage acquisition circuits and one end of the first drive resistor corresponding thereto are electrically connected to the first end of the fourth switch device corresponding thereto; the second end of the third switch device included in each of the sub-voltage acquisition circuits is electrically connected to the input end of the corresponding sub-step-down circuit; the second end of the fourth switch device included in each of the sub-voltage acquisition circuits is electrically connected to one end of the second drive resistor corresponding thereto; the other end of the second drive resistor included in each of the sub-voltage acquisition circuits is electrically connected to the cathode of the corresponding first diode; The positive electrode of the first diode included in each of the sub-voltage acquisition circuits is electrically connected to the voltage output end of the fast charging protocol circuit; the third end of the third switching device included in each of the sub-voltage acquisition circuits and the other end of the corresponding first driving resistor are used to electrically connect to the battery; the third end of the fourth switching device included in each of the sub-voltage acquisition circuits is used for grounding.
6. The circuit for controlling battery charging and discharging according to claim 5, characterized in that: The third switch device included in each of the sub-voltage acquisition circuits includes a PMOS tube, wherein the first end of the third switch included in each of the sub-voltage acquisition circuits is a gate, the second end of the third switch included in each of the sub-voltage acquisition circuits is a drain, and the third end of the third switch included in each of the sub-voltage acquisition circuits is a source; The fourth switch device included in each of the sub-voltage acquisition circuits includes an NMOS tube, wherein the first end of the fourth switch device included in each of the sub-voltage acquisition circuits is a drain, the second end of the fourth switch device included in each of the sub-voltage acquisition circuits is a gate, and the third end of the fourth switch device included in each of the sub-voltage acquisition circuits is a source.
7. The circuit for controlling battery charging and discharging according to claim 4, characterized in that: Each of the sub-boost and buck-boost management circuits includes a sampling resistor and a boost and buck management chip; Among them, one end of the sampling resistor included in each of the sub-buck-boost management circuits is electrically connected to the first current input terminal (CSN) of the corresponding buck-boost management chip; the other end of the sampling resistor included in each of the sub-buck-boost management circuits is electrically connected to the second current input terminal (CSP) of the corresponding buck-boost management chip and is used to electrically connect to the power adapter; the voltage output terminal (CSD) of each of the buck-boost management chips is electrically connected to the voltage detection terminal (ADC) of the main control circuit.
8. The circuit for controlling battery charging and discharging according to claim 4, characterized in that: The voltage generated by the fast charge protocol circuit is supplied to all the sub-boost and buck management circuits; Each of the sub-boost and buck-boost management circuits is further used to convert the current from the branch where the power adapter is located into a voltage, and output the voltage to the main control circuit, and the third voltage includes the voltages corresponding to all the sub-boost and buck-boost management circuits; The main control circuit determines the installation status of the circuit according to the third voltage, and determines the control level sent to the fast charging protocol circuit according to the installation status, specifically including: The main control circuit receives the voltage transmitted by all the sub-buck-boost management circuits, and compares the voltage corresponding to each sub-buck-boost management circuit with a preset voltage to obtain a comparison result; When the comparison result is used to indicate that the number of the sub-buck-boost management circuits whose voltage is greater than the preset voltage among all the sub-buck-boost management circuits is equal to 1, the first signal enable terminal (PWRSEL1) thereof is controlled to be a high level and the second enable terminal (PWRSEL2) thereof is controlled to be a low level; when the comparison result is used to indicate that the number of the sub-buck-boost management circuits whose voltage is greater than the preset voltage among all the sub-buck-boost management circuits is greater than or equal to 2, the first signal enable terminal (PWRSEL1) thereof is controlled to be a pulse level and the second enable terminal (PWRSEL2) thereof is controlled to be a high level; when the comparison result is used to indicate that all the sub-buck-boost management circuits are controlled to be a low level and the second enable terminal (PWRSEL2) thereof is controlled to be a low level; The control level includes a level of the first signal enable terminal (PWRSEL1) and a level of the second enable terminal (PWRSEL2).
9. The circuit for controlling battery charging and discharging according to claim 5, characterized in that: Each of the sub-voltage acquisition circuits also includes a second diode and a third diode; Wherein, the cathode of the second diode included in each of the sub-voltage acquisition circuits is electrically connected to the other end of the corresponding second driving resistor, and the anode of the second diode included in each of the sub-voltage acquisition circuits is electrically connected to the enable terminal (SWEN) of the main control circuit; The cathode of the third diode included in each sub-voltage acquisition circuit is electrically connected to the event trigger terminal (SW) of the main control circuit, and the anode of the third diode included in each sub-voltage acquisition circuit is electrically connected to one end of its corresponding first drive resistor.
10. The circuit for controlling battery charging and discharging according to any one of claims 1-2 and 5-9, characterized in that: The fast charging protocol circuit is further used to send a first signal and a second signal to the main control circuit during the battery charging process; The main control circuit is further used to determine the state of the battery according to the first signal and the second signal; wherein, when the first signal is a high-level signal and the second signal is a high-level signal, the corresponding state of the battery is a charging complete state or an uninstalled state; when the first signal is a pulse signal and the second signal is a low-level signal, the corresponding state of the battery is a charging state; when the first signal is a low-level signal and the second signal is a low-level signal, the corresponding state of the battery is a power adapter not connected state; The buck-boost management circuit is further used to send data corresponding to the battery to the main control circuit during the battery charging process, wherein the data corresponding to the battery includes clock data and status data; The main control circuit is further used to determine the charging information of the battery according to the data corresponding to the battery, and the charging information of the battery includes one or more of the charging voltage of the battery, the charging current of the battery, the charging power of the battery and the charging time of the battery.
11. A method for controlling battery charging and discharging, characterized in that: The method is applied to a circuit for controlling battery charging and discharging, and the circuit for controlling battery charging and discharging includes a fast charging protocol circuit, a main control circuit, a buck-boost management circuit and a voltage supply circuit, wherein a first end of the fast charging protocol circuit is electrically connected to a first end of the main control circuit, a voltage output end of the fast charging protocol circuit is electrically connected to a first end of the voltage supply circuit, and a third end of the fast charging protocol circuit is used to electrically connect to a power adapter; a voltage input end of the main control circuit is electrically connected to a voltage input end of the voltage supply circuit, and a third end of the main control circuit is electrically connected to a first end of the buck-boost management circuit; a second end of the buck-boost management circuit is used to electrically connect to the power adapter, and a third end of the buck-boost management circuit and a third end of the voltage supply circuit are both used to electrically connect to a battery; and the method includes: When the power adapter has an input voltage, the fast charge protocol circuit converts the input voltage into a first voltage for the buck-boost management circuit and the voltage supply circuit to operate, and provides the first voltage to the buck-boost management circuit and the voltage supply circuit; The voltage supply circuit steps down the voltage output by the battery to a second voltage at which the main control circuit operates, and supplies the second voltage to the main control circuit; The main control circuit sends a control level to the fast charging protocol circuit; The fast charging protocol circuit determines the charging power of the power adapter according to the control level, and sends a charging protocol corresponding to the charging power to the power adapter to communicate and shake hands with the host computer of the power adapter, so that the power adapter provides the buck-boost management circuit with a charging power that matches the charging voltage; The buck-boost management circuit sends the charging mode of the battery to the main control circuit; The main control circuit controls the buck-boost management circuit to charge the battery according to the charging power according to the charging mode, the number of the batteries is greater than 1, all the batteries are installed in the electronic product, the number of the buck-boost management circuits is equal to the number of the batteries, and each battery corresponds to one buck-boost management circuit; The method further comprises: The buck-boost management circuit converts the current of the branch where the power adapter is located into a third voltage, and outputs the third voltage to the main control circuit; The main control circuit determines the installation status of the circuit based on the third voltage, and determines the control level to be sent to the fast charging protocol circuit based on the installation status, and triggers the operation of sending the control level to the fast charging protocol circuit.
12. The method for controlling battery charging and discharging according to claim 11, characterized in that: The method further comprises: When an external trigger event is detected, the main control circuit outputs a conduction voltage to the voltage supply circuit to trigger the voltage supply circuit to conduct; The voltage providing circuit obtains the voltage output by the battery, steps down the obtained voltage, and outputs the stepped-down voltage to the main control circuit; The main control circuit detects the duration of the external trigger event, and when the duration is greater than or equal to a preset duration, outputs an enable signal to the voltage providing circuit; The voltage providing circuit latches the working state of the battery according to the enable signal.
Citation Information
Patent Citations
Portable power supply
CN106712220A
Quick charging method based on double lithium batteries and electronic device charging module
CN106786894A
Charging system, electronic equipment and charging control method thereof
CN112787374A
Fast charging input circuit, mobile terminal, wearable device, body fat scale and electronic cigarette
CN209963778U
Portable display with intelligent fast charging function
CN212751848U
