Battery charging method and chip circuit
By judging whether the battery voltage reaches the full state when the battery is charging, and restarting constant current charging when it is not full, the problem of falsely high voltage and misjudgment of fullness when the battery is charging is solved, ensuring that the battery is fully charged, and improving charging precision and accuracy. .
Patent Information
- Application Number
- CN202311599295.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-11-28
AI Technical Summary
When the battery is being charged, internal parasitic resistance causes the battery voltage to be falsely high, misjudging the battery to be fully charged, but actually the battery is not fully charged. This problem cannot be effectively solved by existing technology.
When the battery charging current is less than the preset current, charging is interrupted, and the battery voltage is judged according to the preset frequency to determine whether the battery voltage reaches the full voltage. When the full voltage is not reached, constant current charging is restarted until the battery is fully charged.
It effectively eliminates the problem of false high voltage caused by parasitic resistance during battery charging, ensures that the battery is fully charged, and improves charging precision and accuracy.
Smart Images

Figure CN117543774B
Abstract
Description
Technical Field
[0001] The present application relates to the field of circuit control technology, and in particular to a battery charging method and a chip circuit. Background Art
[0002] In the related art, the battery charging process usually includes constant current charging in the early stage of charging and constant voltage charging in the late stage of charging, and the charging current under constant voltage charging gradually decreases. The circuit of the battery charging chip usually detects the battery voltage at the same time during the charging process, compares the battery voltage with the full charge voltage, and considers the battery to be fully charged when the battery voltage reaches the full charge voltage, and ends the battery charging process.
[0003] However, there is usually parasitic resistance inside the rechargeable battery. When the charging current is present, the detected battery voltage is higher than when not charging, and the charger determines that it has reached the fully charged state. This results in the problem that the power is cut off when the battery voltage reaches the fully charged state, and the battery is not actually fully charged.
[0004] In the related art, due to the existence of parasitic resistance inside the battery, when the battery is charging, the power is cut off when the battery voltage reaches a fully charged state, and the battery is not actually fully charged. No effective solution has been proposed yet. Summary of the invention
[0005] A battery charging method and a chip circuit provided by an embodiment of the present invention at least solve the problem in the related art that, due to the existence of parasitic resistance inside the battery, the power is cut off when the battery voltage reaches a fully charged state during battery charging, and the battery is not actually fully charged.
[0006] An embodiment of the present invention provides a battery charging method, comprising: when a charging current of a battery is less than a preset current, interrupting the charging of the battery, and judging whether the battery voltage has reached a full charge voltage according to a first preset frequency; when the battery voltage has not reached the full charge voltage, restarting the charging of the battery, and continuing to charge the battery by constant current charging; when the battery voltage has reached the full charge voltage, ending the charging of the battery.
[0007] As an optional embodiment, when the charging current of the battery is less than the preset current, the charging of the battery is interrupted, and it is determined whether the battery voltage has reached the full charge voltage according to the first preset frequency, including: after the battery enters constant voltage charging, the charging current is detected according to the second preset frequency, and the charging current is compared with the preset current, wherein, in the constant voltage charging mode, the voltage remains unchanged and the charging current decreases with time; when the charging current is less than the preset current, the charging of the battery is interrupted, and it is determined whether the battery voltage has reached the full charge voltage according to the first preset frequency; when the charging current is not less than the preset current, the charging current continues to be detected according to the second preset frequency, and the battery is continuously charged by constant voltage charging.
[0008] As an optional embodiment, when the charging current is less than the preset current, the charging of the battery is interrupted, and before determining whether the battery voltage reaches the full charge voltage according to the first preset frequency, the method further includes: receiving a detection / charging duty clock signal, wherein the detection / charging duty clock signal includes a plurality of cycles, each cycle including a first time period for detecting the charging current, and a second time period for performing constant current charging after restarting charging, and the cycle is used to determine the first preset frequency.
[0009] As an optional embodiment, when the charging current is less than the preset current, the charging of the battery is interrupted, and whether the battery voltage reaches the full charge voltage is determined according to a first preset frequency, including: when the charging current is less than the preset current, entering the cycle; in the first time period of the cycle, interrupting the charging of the battery, detecting the battery voltage, and determining whether the battery voltage reaches the full charge voltage.
[0010] As an optional embodiment, when the battery voltage has not reached the full charge voltage, the charging of the battery is restarted, and the battery is continued to be charged by constant current charging, including: when the battery voltage has not reached the full charge voltage, the battery voltage is replaced with a reference voltage lower than the full charge voltage; in the second time period of the cycle, the battery is charged for a preset time by constant current pulse charging, wherein the preset time is the time corresponding to the second time period; after entering the next cycle, the reference voltage is reset to the battery voltage.
[0011] As an optional embodiment, when the charging current of the battery constant voltage charging is less than the preset current, before judging whether the battery voltage has reached the full charge voltage, the method further includes: after the battery starts to charge, charging by trickle charging and / or constant current charging, and judging whether the battery voltage has reached the preset voltage according to a third preset frequency; when the battery voltage has reached the preset voltage, charging by constant voltage charging.
[0012] An embodiment of the present invention provides a battery charging chip circuit, comprising: a current comparator, a first logic gate, a first AND gate, a second AND gate, a voltage comparator, and a second logic gate; the current comparator is used to compare the charging current of the battery with the size of a preset current; the input end of the first logic gate is connected to the output end of the current comparator, and is used to output a high level when the charging current of the battery is less than the preset current; the output end of the first logic gate is connected to an input end of the first AND gate; the other input end of the first AND gate is connected to a detection / charging duty clock, and is used to control the interruption of the charging of the battery according to the first preset frequency of the detection / charging duty clock signal when the charging current of the battery constant voltage charging is less than the preset current, and to judge whether the battery whether the voltage reaches the full charge voltage; one input end of the second AND gate is connected to the detection / charging duty clock through a NOT gate, and the other input end is connected to the output end of the first logic gate, and is used for restarting the charging of the battery according to the cycle of the detection / charging duty clock signal when the battery voltage does not reach the full charge voltage, and continuing to charge the battery by constant current charging; the input ends of the voltage comparator are respectively connected to the battery voltage and the full charge voltage, and are used for outputting a high level when the battery voltage reaches the full charge voltage; the input end of the second logic gate is connected to the output end of the voltage comparator, and the output end of the second logic gate is used for indicating the end of charging the battery when the battery voltage reaches the full charge voltage.
[0013] As an optional embodiment, the output end of the first AND gate is connected to the gate of the charging transistor through a shutoff device.
[0014] As an optional embodiment, the detection / charging duty clock is connected to the output end of the first logic gate, and is used to start the detection / charging duty clock when the first logic gate outputs a high level.
[0015] As an optional embodiment, it also includes a constant voltage charging operational amplifier, which is connected to the battery through a double-open circuit, and the constant voltage charging operational amplifier is used to control the charging voltage of the constant voltage charging; the double-open circuit includes a first switch circuit between the constant voltage charging operational amplifier and the battery, and a second switch circuit between the constant voltage charging operational amplifier and the reference voltage; at the output end of the second AND gate, it indicates to restart the charging of the battery, and when the battery continues to be charged by constant current charging, the first switch circuit is disconnected and the second switch circuit is connected.
[0016] The battery charging method of the embodiment of the present invention enters the final charging stage when it detects that the charging current is less than the preset current. After interrupting the battery charging, it determines whether the battery voltage has reached the full charge voltage, and then determines whether the battery is fully charged. If the battery is not fully charged, the charging is restarted, and the battery is continuously charged in a constant current charging manner until the battery is fully charged. This eliminates the problem that the voltage is artificially high during charging due to the presence of parasitic resistance, which affects the judgment of whether the battery is fully charged. This solves the problem in the related art that due to the presence of parasitic resistance inside the battery, the power is cut off when the battery voltage reaches the full charge state during battery charging, and the battery is not actually fully charged.
[0017] The details of one or more embodiments of the invention are set forth in the following drawings and description so that other features, objects, and advantages of the invention are more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other embodiments can be obtained based on these drawings without creative work.
[0019] Figure 1 It is a schematic diagram of a battery charging chip circuit of the related art.
[0020] Figure 2 The figure is a flow chart of a battery charging method according to an embodiment of the present invention.
[0021] Figure 3 Schematic diagram of charging logic according to an embodiment of the present invention.
[0022] Figure 4 Schematic diagram of a charging chip circuit according to an embodiment of the present invention.
[0023] Figure 5 Schematic diagram of a detection / charging duty clock signal according to an embodiment of the present invention.
[0024] Figure 6 Schematic diagram of the structure of the electronic device of this embodiment. DETAILED DESCRIPTION
[0025] Embodiments of the present embodiment will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present embodiment are shown in the accompanying drawings, it should be understood that the present embodiment can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein, which are instead provided for a more thorough and complete understanding of the present embodiment. It should be understood that the drawings and embodiments of the present embodiment are only for exemplary purposes and are not intended to limit the scope of protection of the present embodiment.
[0026] The battery charging chip in the related art detects the battery voltage during the charging process, compares the battery voltage with the full charge voltage, and considers the battery to be fully charged when the battery voltage reaches the full charge voltage, thus ending the battery charging process. In some cases, whether the battery voltage reaches the full charge voltage can be reflected by the charging current, such as Figure 1 As shown, Figure 1 It is a schematic diagram of a battery charging chip circuit of the related art. In a charging cycle, the constant voltage charging current decreases as the battery voltage increases. The current comparator C2 can be used to compare the charging current with the preset current to determine whether the battery voltage has reached the full charge voltage.
[0027] In this case, the battery is still in the process of charging while judging the charging current and battery voltage, and the existence of its parasitic resistance will still affect the judgment result, resulting in the battery being interrupted before it actually reaches the full charge voltage. As a result, the battery cannot be fully charged, which affects the use of the battery on the one hand, and on the other hand, it will also affect the battery life if it continues for a long time.
[0028] To avoid this situation, the present embodiment provides a battery charging method, which enters the final charging stage when it is detected that the charging current is less than a preset current, and after interrupting the battery charging, determines whether the battery voltage has reached the full charge voltage, and then determines whether the battery is fully charged. If the battery is not fully charged, the charging is restarted, and the battery is continuously charged in a constant current charging manner until the battery is fully charged, thereby eliminating the problem that the voltage is artificially high during charging due to the presence of parasitic resistance, which affects the judgment of whether the battery is fully charged, and thus solves the problem in the related technology that the battery voltage is cut off when it reaches the full charge state during battery charging due to the presence of parasitic resistance inside the battery, and the battery is not actually fully charged.
[0029] Figure 2 is a flow chart of a battery charging method according to an embodiment of the present invention. Figure 2 As shown, an embodiment of the present invention provides a battery charging method, comprising the following steps:
[0030] Step S201, when the charging current of the battery is less than a preset current, interrupting the charging of the battery, and determining whether the battery voltage reaches a full charge voltage according to a first preset frequency;
[0031] Step S202, when the battery voltage has not reached the fully charged voltage, restart the charging of the battery and continue to charge the battery by constant current charging;
[0032] Step S203, when the battery voltage reaches the fully charged voltage, the charging of the battery is terminated.
[0033] The execution subject of the above steps may be a charging chip of the battery, and specifically, the actions of the steps may be implemented by different circuit elements inside the charging chip alone or in combination.
[0034] The charging current of the above-mentioned battery can be detected by a current detection device, or it can be drawn from a circuit in a charging chip that controls the charging current of the battery, for example, Figure 1 The PROG pin in the battery can be used to set the battery charging current and monitor the charging current. Connect a resistor R between this pin and ground. PROG The battery charging current can be set. The current comparator C2 can be connected to the battery charging current by connecting to the PROG pin. Compared with the use of current acquisition equipment, this method does not require a separate current acquisition device, saving costs and chip circuit layout space.
[0035] The current comparator C2 can compare the size of the charging current with the preset current, and output different levels according to the difference between the charging current and the preset current, so as to determine the situation that the charging current of the battery is less than the preset current. When the charging current of the battery is less than the preset current, it means that the charging process of the battery has entered the final stage of charging, and it is necessary to judge whether it is fully charged, and then the charging of the battery is interrupted, and it is judged whether the battery voltage reaches the full charge voltage according to the first preset frequency.
[0036] It should be noted that the interruption of battery charging should not be later than the judgment of whether the battery voltage has reached the full charge voltage, it can be earlier than the judgment of whether the battery voltage has reached the full charge voltage, or it can be done at the same time. After the battery is powered off, there is no charging current, and the parasitic resistance inside the battery will not generate voltage. At this time, the measured battery voltage is the real voltage of the battery, and there will be no false high situation.
[0037] Based on the comparison between the real battery voltage and the full charge voltage, when the battery voltage reaches the full charge voltage, the charging of the battery is terminated, so that the battery can be fully charged and the charging effect is improved.
[0038] Whether the battery voltage reaches the full charge voltage can be realized by the voltage comparator 1, and different levels are output according to the difference between the battery voltage and the full charge voltage, so as to determine whether the battery voltage reaches the full charge voltage. When the battery voltage reaches the full charge voltage, it means that the battery is fully charged, and the charging of the battery is terminated. When the battery voltage does not reach the full charge voltage, it means that the battery is still not fully charged, and the charging of the battery needs to be restarted, and the battery is continuously charged, and it is determined whether the battery voltage reaches the full charge voltage according to the first preset frequency until the battery is fully charged.
[0039] After restarting charging, since the constant voltage charging has entered the final stage and the current is very small, continuing to use constant voltage charging will result in a longer time for the battery to be fully charged. Therefore, the battery can be continued to be charged by constant current charging until the next charging interruption to determine whether the battery voltage has reached the full charge voltage, and the charging can be terminated after determining that the battery is fully charged.
[0040] As an optional embodiment, when the charging current of the battery is less than the preset current, the charging of the battery is interrupted, and it is determined whether the battery voltage has reached the full charge voltage according to the first preset frequency, including: after the battery enters constant voltage charging, the charging current is detected according to the second preset frequency, and the charging current is compared with the preset current, wherein, in the constant voltage charging mode, the voltage remains unchanged and the charging current decreases with time; when the charging current is less than the preset current, the charging of the battery is interrupted, and it is determined whether the battery voltage has reached the full charge voltage according to the first preset frequency; when the charging current is not less than the preset current, the charging current continues to be detected according to the second preset frequency, and the battery is continuously charged by constant voltage charging.
[0041] The battery charging process usually includes constant current charging in the early stage of charging and constant voltage charging in the final stage of charging. In the constant voltage charging mode, as the battery voltage increases, its charging current gradually decreases. In theory, after the battery voltage reaches the full charge voltage, the charging current will drop to zero, but the actual situation often does not reach the theory, and the charging current will only approach zero infinitely, but will not disappear.
[0042] Therefore, a preset current can be set. When the charging current is less than the preset current, it is considered that the battery voltage is close to the full charge voltage and the charging is at the end. It is necessary to determine whether the actual battery voltage has reached the full charge voltage. The judgment of whether the battery is fully charged does not need to be made in the early and middle stages of charging. This is to save the computing resources of the chip. The judgment is only made at the end of charging, which is more targeted, improves the utilization of chip resources, and avoids the waste of computing resources.
[0043] It should be noted that the preset current here is different from the preset current used in the related art to determine whether the battery charging is complete, and is usually larger than the preset current used in the related art to determine whether the battery charging is complete, to ensure the timeliness of determining whether the actual battery voltage has reached the full charge voltage.
[0044] Of course, in some cases, it can also be equal to the preset current for judging the end of battery charging in the related art, for example Figure 1 The preset current of the charging chip in the constant voltage mode can be the charging current I chg The preset current of this embodiment may also be the charging current I starting from the constant voltage mode. chg This method can improve the accuracy of battery charging, enable the battery to be fully charged, and eliminate the false high voltage caused by the parasitic resistance of the battery in the related art.
[0045] When the charging current is less than the preset current, it means that the expected charging end has been reached, and the battery charging can be interrupted, and the battery voltage is judged to be fully charged according to the first preset frequency. When the charging current is not less than the preset current, it means that the constant voltage charging mode has been entered, but the battery voltage is still some distance away from the fully charged voltage, and the charging current can continue to be detected according to the second preset frequency, and the battery can be continuously charged by constant voltage charging.
[0046] As an optional embodiment, when the charging current is less than a preset current, the charging of the battery is interrupted, and it is determined whether the battery voltage has reached the full charge voltage according to a first preset frequency, including: when the charging current is less than the preset current, entering the cycle of the detection / charging duty clock signal; in the first time period of the cycle, the charging of the battery is interrupted, the battery voltage is detected, and it is determined whether the battery voltage has reached the full charge voltage.
[0047] Thus, by using a detection / charging duty clock signal, the interruption of charging and the judgment of the battery voltage are controlled at the same time, thereby improving the efficiency of judging whether the battery voltage has reached the full charge voltage, without the need to individually control the interruption of charging before judging the battery voltage each time.
[0048] As an optional embodiment, when the charging current is less than a preset current, the charging of the battery is interrupted, and before determining whether the battery voltage reaches the full charge voltage according to a first preset frequency, the method also includes: receiving a detection / charging duty clock signal, wherein the detection / charging duty clock signal includes a plurality of cycles, each cycle including a first time period for detecting the charging current, and a second time period for performing constant current charging after restarting charging, and the cycle is used to determine the first preset frequency.
[0049] That is, when the charging current is less than the preset current, before entering the cycle of the detection / charging duty clock signal, it is necessary to receive the detection / charging duty clock signal to provide a basis for the first preset frequency for subsequent charging interruption and battery voltage judgment.
[0050] As an optional embodiment, when the battery voltage has not reached the full charge voltage, the charging of the battery is restarted, and the battery is continued to be charged by constant current charging, including: when the battery voltage has not reached the full charge voltage, the battery voltage is replaced with a reference voltage lower than the full charge voltage; in the second time period of the cycle, the battery is charged for a preset time by constant current pulse charging, wherein the preset time is the time corresponding to the second time period; after entering the next cycle, the reference voltage is reset to the battery voltage.
[0051] While the battery is being charged by constant current charging, other circuits of the chip are also working, including the voltage comparator. Thus, during constant current charging, once the falsely high battery voltage reaches the full charge voltage, the battery charging will still be mistakenly triggered to end. This is not what this embodiment intends to achieve.
[0052] To this end, the voltage comparator can be turned off while the battery continues to be charged, or a lower reference voltage can be given to the voltage comparator so that the constant current charging can be completed and enter the next charging interruption cycle to determine whether the battery voltage has reached the full charge voltage.
[0053] If the battery voltage reaches the full charge voltage in the next cycle, it means that the battery is fully charged. If it does not reach the full charge voltage, charging continues. That is, only when charging is interrupted can the battery be judged whether it is fully charged, ensuring the accuracy and reliability of judging whether the battery is fully charged.
[0054] As an optional embodiment, when the charging current of the battery constant voltage charging is less than the preset current, before judging whether the battery voltage has reached the full charge voltage, the method also includes: after the battery starts to charge, charging by trickle charging and constant current charging in sequence, and judging whether the battery voltage has reached the preset voltage according to a third preset frequency; when the battery voltage has reached the preset voltage, charging by constant voltage charging.
[0055] The battery charging process includes non-constant voltage charging at the beginning of charging and constant voltage charging at the end of charging. Non-constant voltage charging includes constant current charging and / or trickle charging. Trickle charging is used in the initial stage. Trickle charging is used to perform restorative charging on over-discharged batteries. After the battery voltage reaches the trickle voltage that trickle charging wants to charge, the charging mode can be changed, including constant voltage charging and / or constant current charging.
[0056] Usually, when the battery voltage rises above the trickle charge threshold, the charging current is increased for constant current charging, so that the battery voltage rises quickly. The advantage is that the voltage rises quickly, but when the battery voltage is close to the full charge voltage, constant current charging is difficult to control and can easily directly break down the battery. Therefore, before the battery voltage reaches the full charge voltage, a constant voltage charging mode is set. When the battery voltage does not reach the full charge voltage but reaches the constant voltage charging threshold, constant voltage charging can be entered. As the battery voltage increases, the charging current of the constant voltage charging will decrease, so that the battery voltage slowly reaches the full charge voltage, thereby improving the safety of charging.
[0057] Figure 3 Schematic diagram of the charging logic of an embodiment of the present invention. Figure 3 As shown, it includes the judgment of trickle charging and constant voltage charging. After entering the constant voltage charging mode, the battery voltage will slowly approach the full charge voltage. At this time, the charging current is detected to enter the interrupt charging to judge whether the battery voltage has reached the full charge voltage, thereby improving the accuracy of battery charging.
[0058] Figure 1 The battery charging chip circuit comprises: a voltage input terminal VCC, a current output terminal BAT, a current control terminal PROG, a comparison circuit, and a control circuit; the voltage input terminal VCC is connected to the current output terminal through a charging transistor, and is used to connect to a battery through the current output terminal BAT to charge the battery; the current output terminal BAT is connected to the charging transistor and the constant voltage control circuit, and is used to provide a charging current for the battery; the current control terminal PROG is connected to the constant current control circuit and the current comparison circuit, and is used to set, control and detect the charging current of the current output terminal BAT; the control circuit comprises a constant voltage charging operational amplifier VA and a constant current charging operational amplifier CA, the constant voltage charging operational amplifier VA is connected to the battery, and is used to control constant voltage charging, so that the constant voltage charging voltage is equal to the size of the set voltage, wherein the set voltage is jointly determined by REF, R1, and R2, the constant current charging operational amplifier CA is connected to the current control terminal PROG, and is used to control constant current charging, so that the constant current charging current is equal to the size of the current set by PROG; the current comparator C2 compares the size of the charging current with the preset current, and ends the charging when the charging current is less than the preset current.
[0059] Based on this, an embodiment of the present invention provides a battery charging chip circuit, such as Figure 4 As shown, Figure 4Schematic diagram of a charging chip circuit of an embodiment of the present invention. The battery charging chip circuit includes: a current comparator C2, a first logic gate, a first AND gate T1, a second AND gate T2, a voltage comparator I, and a second logic gate; the current comparator C2 is used to compare the charging current of the battery with the preset current; the input end of the first logic gate is connected to the output end of the current comparator C2, and is used to output a high level when the charging current of the battery is less than the preset current; the output end of the first logic gate is connected to an input end of the first AND gate T1; the other input end of the first AND gate T1 is connected to the detection / charging duty clock, and is used to control the interruption of the battery charging according to the first preset frequency of the detection / charging duty clock signal when the charging current of the battery constant voltage charging is less than the preset current. The first logic gate is connected to the detection / charging duty clock through a NOT gate, and the other input end is connected to the output end of the first logic gate, and is used for restarting the charging of the battery according to the cycle of the detection / charging duty clock signal when the battery voltage does not reach the full charge voltage, and continuing to charge the battery by constant current charging; the input end of the voltage comparator I is respectively connected to the battery voltage and the full charge voltage, and is used for outputting a high level when the battery voltage reaches the full charge voltage; the input end of the second logic gate is connected to the output end of the voltage comparator I, and the output end of the second logic gate is used for indicating the end of charging the battery when the battery voltage reaches the full charge voltage.
[0060] The specific process is as follows: the current comparator C2 compares the charging current of the battery with the preset current. When the charging current is less than the preset current, it outputs a high level and notifies the setting SET input terminal S of the first logic gate. When the charging current of the battery is less than the preset current, the first logic gate outputs a high level. The reset input terminal R of the first logic gate receives the start charging POR (power on reset) signal at the beginning of each charging, and resets the output of the first logic gate to a low level. It should be noted that the second logic gate also has a similar working mode.
[0061] After the output end of the first logic gate outputs a high level, it enters the battery voltage judgment mode CCP at the end of charging, and inputs the high level to an input end of the first AND gate T1. The other input end of the first AND gate T1 is connected to the detection / charging duty clock. The output of the first AND gate T1 will change according to the first preset frequency of the high and low levels of the detection / charging duty clock signal.
[0062] When it is necessary to shut down charging and judge the battery voltage, the detection / charging duty clock signal is at a high level, the output of the first AND gate T1 is at a high level, the charging is shut down, and the voltage comparator I is started to work to judge the size of the battery voltage and the full charge voltage.
[0063] Thus, when the charging current of the battery constant voltage charging is less than the preset current, the battery charging is interrupted and it is judged whether the battery voltage reaches the full charge voltage. When the battery is fully charged, a high level is output to the set SET input terminal of the second logic gate, and the output terminal of the second logic gate outputs a high level to the indicator light, so that the indicator light turns off and the charging is terminated.
[0064] When it is necessary to restart charging to continue constant current charging of the battery, the detection / charging duty clock signal is at a low level, the output of the first AND gate T1 is at a low level, and the charging is not controlled to be shut down, and the second AND gate T2 controls the constant current charging of the battery.
[0065] One input end of the second AND gate T2 is connected to the detection / charging duty clock through the NOT gate, and the other input end is connected to the output end of the first logic gate. When it is necessary to restart charging to continue constant current charging of the battery, the detection / charging duty clock signal is at a low level, and after being processed by the NOT gate, it is at a high level. The output of the second AND gate T2 is at a high level, which is connected to the constant current control circuit, and controls the constant current charging of the battery.
[0066] Thereby, according to the cycle of the detection / charging duty clock signal, when the battery voltage has not reached the fully charged voltage, the charging of the battery is restarted, and the battery is continuously charged by constant current charging.
[0067] As an optional embodiment, the output end of the first AND gate T1 is connected to the gate of the charging transistor through a shutoff device, thereby shutting off the battery charging through the first AND gate T1.
[0068] As an optional embodiment, the detection / charging duty clock is connected to the output end of the first logic gate, and is used to start the detection / charging duty clock when the first logic gate outputs a high level.
[0069] As an optional embodiment, it also includes a constant voltage charging operational amplifier VA, which is connected to the battery through a double-open circuit, and the constant voltage charging operational amplifier VA is used to control the charging voltage of the constant voltage charging; the double-open circuit includes a first switch circuit between the constant voltage charging operational amplifier VA and the battery, and a second switch circuit between the constant voltage charging operational amplifier VA and the reference voltage; at the output end of the second AND gate T2, it indicates to restart the charging of the battery, and when the battery continues to be charged by constant current charging, the first switch circuit is disconnected and the second switch circuit is connected.
[0070] When the charging is not at the end, the T2 signal is at a low level, connecting the first switch circuit to realize the normal collection of the battery voltage. After entering the end of charging, the charging is turned off, and the first switch circuit and the second switch circuit are both disconnected. In the case of constant current charging after restarting charging, T2 is at a high level, connecting the second switch circuit, and giving the reference voltage to the circuit to avoid the false high battery voltage during the charging process, which may trigger the end of charging by mistake.
[0071] Figure 5 Schematic diagram of the detection / charging duty clock signal of an embodiment of the present invention, such as Figure 5 As shown, the detection / charging duty clock signal CCP-CLK includes multiple cycles, each cycle includes a first time period of high level and a second time period of low level. In the first time period, charging is turned off and it is determined whether the battery voltage reaches the full charge voltage. In the second time period, constant current pulse charging is performed. It should be noted that after the battery voltage reaches the full charge voltage, charging is directly terminated and no subsequent charging is required.
[0072] An embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory in communication with the at least one processor. The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the electronic device executes the method of the embodiment of the present invention.
[0073] An embodiment of the present invention further provides a non-transitory machine-readable medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method of the embodiment of the present invention.
[0074] An embodiment of the present invention further provides a computer program product, including a computer program, wherein the computer program, when executed by a processor of a computer, is used to enable the computer to execute the method of the embodiment of the present invention.
[0075] Figure 6 is a schematic diagram of the structure of the electronic device of this embodiment, referring to Figure 6, a block diagram of an electronic device that can be used as a server or client of an embodiment of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. Electronic devices are intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0076] like Figure 6 As shown, the electronic device includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0077] Multiple components in the electronic device are connected to the I / O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 can be any type of device that can input information to the electronic device, and the input unit 606 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device. The output unit 607 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 608 can include but is not limited to a disk, an optical disk. The communication unit 609 allows the electronic device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0078] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a CPU, a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above. For example, in some embodiments, the method embodiments of the present invention may be implemented as a computer program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on an electronic device via a ROM 602 and / or a communication unit 609. In some embodiments, the computing unit 601 may be configured to perform the above-described method in any other appropriate manner (e.g., by means of firmware).
[0079] The computer programs for implementing the methods of the embodiments of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0080] In the context of an embodiment of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable signal medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0081] It should be noted that the term "including" and its variations used in the embodiments of the present invention are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The modifications of "one" and "multiple" mentioned in the embodiments of the present invention are illustrative rather than restrictive. Those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "one or more".
[0082] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0083] The various steps described in the method implementation methods provided in the embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method implementation methods may include additional steps and / or omit the steps shown. The scope of protection of the present invention is not limited in this respect.
[0084] The term "embodiment" in this specification refers to specific features, structures or characteristics described in conjunction with the embodiment that can be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. The various embodiments in this specification are described in a related manner, and the same or similar parts between the various embodiments refer to each other. In particular, for the device, equipment, and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment.
[0085] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the attached claims.
Claims
1. A battery charging chip circuit, characterized in that: include: A current comparator, a first logic gate, a first AND gate, a second AND gate, a voltage comparator, and a second logic gate; The current comparator is used to compare the charging current of the battery with the preset current; The input end of the first logic gate is connected to the output end of the current comparator, and is used to output a high level when the charging current of the battery is less than the preset current; the output end of the first logic gate is connected to an input end of the first AND gate; Another input end of the first AND gate is connected to the detection / charging duty clock, and is used to control interruption of charging of the battery and determine whether the battery voltage reaches the full charge voltage when the charging current of the battery constant voltage charging is less than the preset current according to the first preset frequency of the detection / charging duty clock signal; One input end of the second AND gate is connected to the detection / charging duty clock through a NOT gate, and the other input end is connected to the output end of the first logic gate, and is used to restart the charging of the battery according to the cycle of the detection / charging duty clock signal when the battery voltage does not reach the full charge voltage, and continue to charge the battery by constant current charging; The input end of the voltage comparator is connected to the battery voltage and the full charge voltage respectively, and is used to output a high level when the battery voltage reaches the full charge voltage; The input end of the second logic gate is connected to the output end of the voltage comparator, and the output end of the second logic gate is used to indicate to end charging of the battery when the battery voltage reaches the full charge voltage; It also includes a constant voltage charging operational amplifier, which is connected to the battery through a double open circuit, and is used to control the charging voltage of the constant voltage charging; The double-open circuit includes a first switch circuit connecting the constant-voltage charging operational amplifier to the battery, and a second switch circuit connecting the constant-voltage charging operational amplifier to a reference voltage lower than the full-charge voltage. When the charging of the battery is restarted, the pin of the constant-voltage charging operational amplifier connected to the first switch circuit is switched to the second switch circuit connected to the reference voltage lower than the full-charge voltage. At the output end of the second AND gate, it is indicated to restart the charging of the battery. When the battery continues to be charged by constant current charging, the first switch circuit is disconnected and the second switch circuit is connected.
2. The battery charging chip circuit according to claim 1, characterized in that: The output end of the first AND gate is connected to the gate of the charging transistor through a turn-off device.
3. The battery charging chip circuit according to claim 2, characterized in that: The detection / charging duty clock is connected to the output end of the first logic gate, and is used to start the detection / charging duty clock when the first logic gate outputs a high level.
4. A battery charging method, characterized in that: A battery charging chip circuit as claimed in any one of claims 1 to 3, comprising: When the charging current of the battery is less than the preset current, interrupting the charging of the battery, and judging whether the battery voltage reaches the full charge voltage according to the first preset frequency; When the battery voltage has not reached the fully charged voltage, restarting the charging of the battery, and continuing to charge the battery by constant current charging; When the battery voltage reaches the full charge voltage, charging of the battery is terminated.
5. The method according to claim 4, characterized in that When the charging current of the battery is less than a preset current, interrupting the charging of the battery, and judging whether the battery voltage reaches a full charge voltage according to a first preset frequency, comprises: After the battery enters constant voltage charging, the charging current is detected according to a second preset frequency, and the charging current is compared with the preset current, wherein in the constant voltage charging mode, the voltage remains unchanged and the charging current decreases over time; When the charging current is less than the preset current, interrupting the charging of the battery, and judging whether the battery voltage reaches the full charge voltage according to the first preset frequency; When the charging current is not less than the preset current, the charging current continues to be detected according to the second preset frequency, and the battery is continuously charged by constant voltage charging.
6. The method according to claim 5, characterized in that When the charging current is less than the preset current, the charging of the battery is interrupted, and before determining whether the battery voltage reaches the full charge voltage according to the first preset frequency, the method further includes: A detection / charging duty clock signal is received, wherein the detection / charging duty clock signal includes a plurality of cycles, each cycle includes a first time period for detecting the charging current, and a second time period for performing constant current charging after restarting charging, and the cycle is used to determine the first preset frequency.
7. The method according to claim 6, characterized in that When the charging current is less than the preset current, interrupting the charging of the battery, and judging whether the battery voltage reaches the full charge voltage according to a first preset frequency, comprises: When the charging current is less than the preset current, entering the cycle; In a first time period of the cycle, charging of the battery is interrupted, the battery voltage is detected, and it is determined whether the battery voltage reaches the fully charged voltage.
8. The method according to claim 7, characterized in that When the battery voltage does not reach the fully charged voltage, restarting the charging of the battery and continuing to charge the battery by constant current charging includes: When the battery voltage does not reach the fully charged voltage, the pin connected to the first switch circuit is replaced with a pin connected to the second switch circuit; In a second time period of the cycle, charging the battery for a preset time by constant current pulse charging, wherein the preset time is the time corresponding to the second time period; After entering the next cycle, the reference voltage is reset to the battery voltage.
9. The method according to any one of claims 4 to 8, characterized in that When the charging current of the battery constant voltage charging is less than the preset current, before determining whether the battery voltage reaches the full charge voltage, the method further includes: After the battery starts to be charged, charging is performed successively by trickle charging and / or constant current charging, and judging whether the battery voltage reaches a preset voltage according to a third preset frequency; When the battery voltage reaches a preset voltage, charging is performed by constant voltage charging.
