Charging control method, apparatus, circuit and electronic device

By monitoring battery level and display drive performance, and controlling the charging and power supply status of the external power source, the problem of screen flickering due to voltage ripple is solved, and the risk of screen flickering is reduced when the load is low and the battery is fully charged.

CN115864589BActive Publication Date: 2026-02-10VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211645953.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2026-02-10
Estimated Expiration
2042-12-19

AI Technical Summary

Technical Problem

When electronic devices are connected to an external power source, the display screen may flicker due to voltage ripple, affecting the user experience.

Method used

By monitoring battery level and display drive performance, the charging and power supply status of the external power source can be controlled to prevent the display from entering diode operating mode and reduce system voltage fluctuations.

Benefits of technology

It effectively reduces the risk of screen flickering and ensures normal power supply even when the battery is fully charged and the load is low.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115864589B_ABST
    Figure CN115864589B_ABST
Patent Text Reader

Abstract

The application discloses a charging control method, device, circuit and electronic equipment. The method comprises the following steps: obtaining a first value reflecting the battery capacity of the electronic equipment; obtaining a second value reflecting the driving performance of the display screen of the electronic equipment; in the case that the electronic equipment is connected to an external power supply, the first value meets one of the set first condition and second condition, and the second value meets the set third condition, shutting down the charging circuit of the external power supply for the battery charging, wherein the first condition comprises that the first value is greater than the set first upper limit value in the battery charging stage, the second condition comprises that the first value is greater than or equal to the set first lower limit value in the battery discharging stage, and the third condition comprises that the second value is greater than the set second lower limit value and less than the set second upper limit value. The method can reduce the risk of screen flashing of the display screen when the electronic equipment is connected to the external power supply.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of charging technology, specifically relating to a charging control method, device, circuit, and electronic equipment for preventing screen flickering. Background Technology

[0002] Mobile phones and other electronic devices are equipped with batteries to power their loads. When the battery is low, users can connect the device to an external power source to charge the battery, ensuring continuous operation. In many scenarios, users may still use their devices for activities like playing games, watching videos, or listening to music while charging. In these cases, the external power source not only charges the battery but also provides system voltage to power the device's loads, thus meeting the user's needs for using the device while the battery is charging.

[0003] When the battery is fully charged, the electronic device disconnects the external power source from the battery to protect it from overcharging damage. However, it continues to supply system voltage through the external power source to power loads such as the display until the user disconnects the device from the external power source. In other words, after the battery is fully charged, the electronic device switches from charging the battery and powering the load through the external power source to powering the load solely through the external power source. In this situation, the display may exhibit ripple, leading to screen flickering and affecting user experience. Summary of the Invention

[0004] The purpose of this application is to provide a charging control method, device, circuit, and electronic device for preventing screen flickering, which can solve the screen flickering problem that occurs when the electronic device is connected to an external power source.

[0005] In a first aspect, embodiments of this application provide a charging control method, including:

[0006] Obtain a first value reflecting the battery level of the electronic device;

[0007] Obtain a second value reflecting the driving performance of the display screen of the electronic device;

[0008] When the electronic device is connected to an external power source, the first value satisfies one of the set first and second conditions, and the second value satisfies the set third condition, the charging circuit for charging the battery by the external power source is turned off.

[0009] The first condition includes the first value being greater than a set first upper limit value during the battery charging phase; the second condition includes the first value being greater than or equal to a set first lower limit value during the battery discharging phase; and the third condition includes the second value being greater than a set second lower limit value and less than a set second upper limit value.

[0010] Secondly, embodiments of this application provide a charging control device, the charging control device comprising:

[0011] The first data processing module is used to obtain a first value reflecting the battery power of the electronic device;

[0012] The second data processing module is used to acquire a second value reflecting the driving performance of the display screen of the electronic device; and,

[0013] A logic judgment module is used to shut off the charging circuit for charging the battery when the electronic device is connected to an external power source, the first value satisfies one of a set first condition and a second condition, and the second value satisfies a set third condition.

[0014] The first condition includes the first value being greater than a set first upper limit value during the battery charging phase; the second condition includes the first value being greater than or equal to a set first lower limit value during the battery discharging phase; and the third condition includes the second value being greater than a set second lower limit value and less than a set second upper limit value.

[0015] Thirdly, embodiments of this application provide a circuit applied to an electronic device, the electronic device including a battery, a charging interface of the battery and a display screen, the circuit including a processing circuit, a charging circuit, a first power supply circuit, a second power supply circuit and a display driving circuit of the display screen, the charging circuit being electrically connected between the charging interface and the battery, the first power supply circuit being electrically connected between the charging interface and the display driving circuit of the display screen, the second power supply circuit being electrically connected between the battery and the display driving circuit, in which the charging circuit is in a turned-off state, the first power supply circuit is in a turned-off state, and the second power supply circuit is in a turned-on state;

[0016] When the charging interface is connected to an external power source, the processing circuit shuts off the charging circuit in response to the electronic device meeting set conditions. The set conditions include: a first value reflecting the battery charge meeting one of a set first condition and a set second condition, and a second value reflecting the driving performance of the display screen meeting a set third condition. The first condition includes the first value being greater than a set first upper limit during the battery charging phase, the second condition includes the first value being greater than or equal to a set first lower limit during the battery discharging phase, and the third condition includes the second value being greater than a set second lower limit and less than a set second upper limit.

[0017] Fourthly, embodiments of this application provide an electronic device, which includes a charging control device as described in the second aspect or a circuit as described in the third aspect.

[0018] Fifthly, embodiments of this application provide another electronic device, the electronic device including a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the charging control method as described in the first aspect.

[0019] In this embodiment, when the electronic device is connected to an external power source, it monitors the battery level and the display's driving performance by acquiring a first value reflecting the battery's charge level and a second value reflecting the display's driving performance. Based on the first and second values, it determines whether the use of the external power source is likely to cause screen flicker. If screen flicker is likely, the charging circuit for charging the battery from the external power source is shut off, switching from supplying system voltage to the display and other loads via the battery. This reduces the risk of screen flicker by lowering the system voltage. This embodiment, through a charging control scheme that cycles between allowed and disabled output by the external power source, allowing the battery to alternately charge and discharge when the electronic device is connected to an external power source, solves the screen flicker problem that may occur when the battery is fully charged and a small load is powered by the external power source, thus reducing the risk of screen flicker. Attached Figure Description

[0020] Figure 1 This is a schematic diagram of the circuit structure for an external power source to charge the battery and supply power to the load.

[0021] Figure 2 This is a schematic diagram of a circuit structure where a battery supplies power to a load;

[0022] Figure 3 This is a schematic diagram of the display driver circuit of the display screen;

[0023] Figure 4 This is a schematic diagram of the voltage conversion circuit in the display driver circuit of the display screen;

[0024] Figure 5 This is a schematic flowchart of a charging control method provided in an embodiment of this application;

[0025] Figure 6 This is a schematic diagram illustrating the signal changes in the relationship between the first value, the second value, and the enable signal provided in the embodiments of this application;

[0026] Figure 7 This is a schematic diagram of the charging control device provided in the embodiments of this application;

[0027] Figure 8 This is a schematic diagram of the circuit structure of the charging control device provided in the embodiments of this application;

[0028] Figure 9 This is a schematic diagram illustrating the working principle of a hysteresis comparator circuit.

[0029] Figure 10 This is a schematic diagram of a circuit applied to an electronic device according to an embodiment of this application;

[0030] Figure 11 This is a schematic diagram of another circuit structure applied to an electronic device according to an embodiment of this application;

[0031] Figure 12 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0032] Figure 13 This is a schematic diagram of the hardware structure of another electronic device provided in an embodiment of this application. Detailed Implementation

[0033] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0034] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0035] This disclosure relates to a charging control scheme for charging electronic devices via an external power source. The inventors discovered that when an electronic device is connected to an external power source and the battery is fully charged, if the display screen is on but the load is low (i.e., the drive current of the display screen is low), for example, if the user lowers the display brightness at this time, the display screen of the electronic device may exhibit ripple, leading to screen flickering. To solve the screen flickering problem, the inventors conducted an in-depth analysis of a charging management circuit and a display driving circuit for an electronic device. This electronic device 100 can be a mobile phone, tablet computer, laptop computer, wearable device, etc., and is not limited thereto.

[0036] like Figure 1 As shown, in one example, electronic device 100 may include a charging management circuit 110, a battery 120, a display screen 130, a display driver circuit 1050 for the display screen 130, other loads 150, a USB charging interface 160, etc. Other loads 150 refer to electrical loads other than the display screen 130, such as processors, speakers, cameras, microphones, etc. The display screen 130 is an organic light-emitting diode (OLED) based display. The first terminal 1121 of the charging management circuit 110 is connected to the charging interface 160 to access an external power source. The battery 120 is connected to the second terminal 1122 of the charging management circuit 110, and the third terminal 1123 of the charging management circuit 110 is connected to the load. The third terminal 1123 is connected to the display screen 130 through the display driver circuit 1050. The charging management circuit 110 and the display driver circuit 1050 of electronic device 100 can be integrated circuits, such as IC chips, or circuits composed of discrete components; no limitation is made here.

[0037] When the electronic device 100 is connected to the external power supply 200 through the charging interface 160, the external power supply 200 provides the charging voltage VBUS to the electronic device 100 through the charging interface 160. One branch of the external power supply 200 charges the battery 120 through the second terminal 1122, and the other branch outputs the system voltage VSYS through the third terminal 1123 to power the load, including the display screen 130.

[0038] like Figure 1 As shown, the charging management circuit 110 includes a second switch Qbat, a first switch Qc, and a voltage conversion circuit 111, etc. The voltage conversion circuit 111 is a DC-DC converter, and the first switch Qc and the second switch Qbat can be MOSFETs. When the battery 120 is fully charged, the charging management circuit 110 will turn off the internal second switch Qbat. At this time, the external power supply 200 will stop charging the battery 120 to protect the battery 120 from damage due to overcharging, but will continue to provide the system voltage VSYS through another branch, thereby powering the display screen 130 through the display driver circuit 1050.

[0039] Figure 3 yes Figure 1 and Figure 2 The circuit structure diagram of the display driver circuit 1050 is shown below. Figure 4 yes Figure 3 A schematic diagram of the voltage conversion circuit 1051 in the display driver circuit 1050. (See attached diagram.) Figure 3 and Figure 4 As shown, when the display driver circuit 1050 is working, it converts the input voltage Vin into three voltage signals AVDD, ELVDD, and ELVSS and outputs them to the display screen 130. The display driver circuit 1050, through... Figure 4The voltage conversion circuit 1051 shown outputs a voltage signal ELVDD. The input voltage Vin is also the system voltage VSYS. The voltage conversion circuit 1051 includes a first MOSFET Q1, and a diode D1 is connected between the source and drain of the first MOSFET Q1. When the battery is fully charged, since the second switch Qbat is open, it is equivalent to the third terminal 1023 of the charging management circuit 110 not being connected to the battery 120. At this time, the external power supply 200 will switch from charging the battery and powering the load to powering only the load. If the user uses the electronic device 100 and the load current is small, this switch will cause the load current to change drastically. The overshoot generated by this transient response will cause the voltage change of the system voltage VSYS to fluctuate greatly. Thus, for the display driver circuit 1050, the excessively high input voltage Vin will cause it to work in diode mode to meet the duty cycle requirements. That is, the drive current will be output through the diode D1 of the display driver circuit 1050 instead of through the first MOSFET Q1. This will cause the ripple of the voltage signal ELVDD output by the display driver circuit 1050 to the display screen 130 to increase and jitter. When the voltage signal ELVDD jitters, it will directly affect the gate-source voltage Vgs of the second MOSFET Q2 of the display screen 130, and thus affect the current of the light-emitting diode D2, making it easy for the user to observe screen flickering. In other words, when the electronic device 100 is connected to the external power supply 200, if the battery 120 is fully charged and the driving current of the display screen 130 is small, the display driving circuit 1050 will operate in diode mode. This will cause the ripple of the voltage signal ELVDD output by the display driving circuit 1050 to the display screen 130 to increase, thereby increasing the probability of screen flickering. This is the main cause of screen flickering.

[0040] Furthermore, the inventors also discovered that, such as Figure 2 As shown, when the electronic device 100 is not connected to the external power supply 200, the first terminal 1021 of the charging management circuit 110 has no charging voltage VBUS. The battery 120 provides the system voltage VSYS through the second switch Qbat of the charging management circuit 110 to power the load. At this time, the system voltage VSYS = Vbat - VQbat, where Vbat is the battery voltage and VQbat is the source-drain voltage of the second switch Qbat. The system voltage VSYS provided by the battery 120 is used as the input voltage of the display driving circuit 1050. At this time, the system voltage VSYS is low and stable. Regardless of the driving current state of the display screen 130, the display screen 130 is not prone to screen flickering.

[0041] Based on the discovered causes of screen flickering, the inventors proposed a charging control scheme that, when connected to an external power source and the battery level and driving performance are likely to cause screen flickering, the external power source 200 is prohibited from outputting, so that the battery 120 powers the display 130. Only when the battery level and driving performance are unlikely to cause screen flickering is the external power source 200 allowed to output, so that the display 130 is powered by the external power source 200. This allows the charging circuit of the battery 120 to cycle between allowing and prohibiting the output of the external power source 200, thereby reducing the risk of screen flickering.

[0042] Based on the above inventive concept, this application provides a charging control method for preventing screen flickering. This charging control method can be implemented by a charging control device installed in the electronic device 100. This charging control device can be implemented by a program or instructions executed by the processor of the electronic device 100, i.e., implemented by software, or implemented by hardware circuitry, or implemented by a combination of software and hardware circuitry. No limitation is made here. Figure 5 As shown, the charging control method may include the following steps 510-530:

[0043] Step 510: Obtain the first value reflecting the battery power.

[0044] As described above, when the electronic device is connected to an external power source, the display screen 130 is prone to screen flickering when the battery is fully charged and the driving current is small. Therefore, this embodiment monitors the battery level and obtains a first value reflecting the battery level in step 510.

[0045] In this embodiment, the first value can be any value that reflects the battery charge level.

[0046] For example, the first value could be the first voltage value across the battery 120. Since the voltage across the battery 120 increases with the increase of battery power, the first voltage value across the battery 120 has a mapping relationship with the battery power; that is, the first voltage value can reflect the battery power. Correspondingly, obtaining the first value reflecting the battery power of the electronic device in step 510 can include: obtaining the first voltage value across the battery as the first value.

[0047] For example, the first value could also be the remaining battery power provided by the fuel gauge installed in the electronic device 100. Correspondingly, obtaining the first value reflecting the battery power of the electronic device in step 510 could include: obtaining the remaining battery power as the first value. Here, since the electronic device 100 itself needs to obtain the remaining battery power through the fuel gauge to display the remaining battery power, when the first value is the remaining battery power, it is not necessary to add corresponding hardware to obtain the first value. This reduces the modifications made to the hardware structure of the electronic device to implement the method of this embodiment and lowers costs.

[0048] Step 520: Obtain a second value reflecting the driving performance of the display screen.

[0049] As described above, when the electronic device is connected to an external power source, the display screen 130 is prone to flickering when the battery is fully charged and the driving current is small. Therefore, this embodiment also monitors the driving performance of the display screen and obtains a second value reflecting the driving performance in step 520.

[0050] In this embodiment, the second value can be any value that reflects the driving performance of the display screen.

[0051] In this embodiment, the driving performance is determined by the driving current of the display screen (the driving current is...). Figure 1 The output current of the display driver circuit 1050 is determined by the value of the second value, which can also be understood as a value reflecting the driving current of the display screen.

[0052] For example, it can be like Figure 1 The input current value of the display driving circuit 1050 of the display screen 130 shown is used as the second value. Correspondingly, obtaining the second value reflecting the driving performance of the display screen of the electronic device in step 520 may include: obtaining the input current value of the display driving circuit of the display screen as the second value; wherein the input current value can reflect the driving performance of the display screen.

[0053] The input current value of the display driver circuit 1050 can be used as follows: Figure 11 The second voltage value across the sampling resistor 170 is shown, where, see... Figure 11The sampling resistor 170 can be connected between the system power supply VSYS and the display driver circuit 1050. That is, the sampling resistor 170, the display driver circuit 1050 and the display screen 130 are connected in series. Therefore, the current flowing through the sampling resistor 170 is the input current value of the display driver circuit 1050, and the input current value has a mapping relationship with the driving current of the display screen 130. Here, the input current value of the display driver circuit 1050 can be represented by the second voltage value across the sampling resistor 170. That is, the input current value of the display driver circuit can be used as the second value.

[0054] For example, the brightness value of the display screen can also be used as the second value. Since the higher the driving current, the higher the brightness of the display screen, there is a mapping relationship between the driving current and the display screen brightness. This brightness value can reflect the driving performance of the display, that is, it can reflect the driving current of the display screen. Correspondingly, obtaining the second value reflecting the driving current of the display screen of the electronic device in step 520 can include: obtaining the brightness value of the display screen as the second value; wherein, the brightness value can reflect the driving performance of the display screen.

[0055] Here, since the display screen can output brightness value information through the MIPI interface, when the second value is a brightness value, it is not necessary to add corresponding hardware to obtain the second value. For example, it is not necessary to add the sampling resistor 170 mentioned above. This reduces the modifications made to the hardware structure of the electronic device to implement the method of this embodiment and lowers the cost.

[0056] For example, the output current value of the display drive circuit can also be used directly as the second value, etc., without limitation.

[0057] Step 530: When the electronic device is connected to an external power source, the first value satisfies one of the set first and second conditions, and the second value satisfies the set third condition, the charging circuit for charging the battery by the external power source is turned off.

[0058] In this embodiment, as described above, the electronic device 100 in such a way Figure 1 When connected to an external power supply 200 as shown, the display screen 130 may exhibit screen flickering. Figure 2 When the display screen 130 is powered by the battery 120 without being connected to the external power source 200, it is less likely to flicker. Therefore, the charging control method of this embodiment can be implemented only when the electronic device 100 is connected to the external power source 200, and not when the electronic device 100 is not connected to the external power source 200.

[0059] In this embodiment, the first condition, the second condition, and the third condition are set according to the control requirements for preventing screen flickering. The first condition includes a first value that is greater than a set first upper limit value Bmax during the battery charging stage. The second condition includes the first value that is greater than or equal to a set first lower limit value Bmin during the battery discharging stage. The third condition includes a second value that is greater than a set second lower limit value and less than a set second upper limit value.

[0060] During the battery charging phase, the electronic device is connected to an external power source, which charges the battery and powers the display screen, but the battery does not power the display screen. During the battery discharging phase, the electronic device is connected to an external power source, but the external power source does not charge the battery or power the display screen, and the battery powers the display screen. In other words, during the battery discharging phase, although the electronic device 100 is connected to the external power source 200, the external power source cannot charge the battery 120 or power the load through the charging management circuit 110. At this time, the charging management circuit 110 switches from external power source 200 powering the load to battery 120 powering the load. The operating state of the charging management circuit 110 at this time is equivalent to... Figure 2 The state shown is where the load is powered by battery 120.

[0061] In some examples, when the electronic device is connected to an external power source, the battery charging phase and the battery discharging phase can be determined based on the change of a first value over time. Specifically, if the first value increases over time, that is, if the first value at the current sampling time is greater than the first value at the previous sampling time, it indicates that the battery 120 is in the charging phase, while if the first value decreases over time, the battery 120 is in the discharging phase.

[0062] In other examples, when the electronic device is connected to an external power source, the battery charging and discharging phases can also be determined based on whether the charging control device outputs a first enable signal or a second enable signal to the charging management circuit 110. The first enable signal is a signal instructing the charging management circuit 110 to shut off the charging circuit that allows the external power source 200 to charge the battery 120. Upon receiving the first enable signal, the charging management circuit 110 shuts off the charging circuit, for example, by shutting off... Figure 1 The first switch Qc, as shown, prevents the external power supply 200 from charging the battery 120, and also prevents the external power supply 200 from supplying power to the load, including the display screen 130, thus entering the battery discharge stage described above; the second enable signal is a signal that instructs the charging management circuit 110 to turn on the charging circuit. Upon receiving the second enable signal, the charging management circuit 110 turns on the charging circuit, for example, by turning on... Figure 1The first switch Qc shown allows the external power supply 200 to charge the battery 120 and supply power to the load, including the display screen 130, at which point the battery charging phase begins. Therefore, when the charging control device outputs a first enable signal, it corresponds to the battery discharging phase, and when it outputs a second enable signal, it corresponds to the battery charging phase.

[0063] In this embodiment, the second value satisfies the third condition, and the first value satisfies one of the first and second conditions, which means that the battery power and driving current meet the dual conditions that the display screen is prone to flickering. At this time, the charging circuit that charges the battery with the external power supply is turned off, and the battery discharge stage is entered. For example, the charging circuit is turned off by outputting the first enable signal to the charging management circuit 110, and the power supply of the display screen from the external power supply is switched to the battery power supply, thereby reducing the system voltage VSYS, so as to prevent the display driving circuit 1050 from entering the diode working mode, thereby preventing the display screen from flickering.

[0064] As described above, the display screen is prone to flickering when the battery is nearly fully charged and the driving current is low. However, it is less likely to flicker when either the battery charge or the driving current does not meet either condition. The battery being nearly fully charged corresponds to the first and second conditions, and the driving current being low corresponds to the third condition. Therefore, if the first value does not meet the first and second conditions, or if the second value does not meet the third condition, the charging control device can activate the charging circuit for charging the battery with an external power source, thus entering the battery charging stage. For example, the charging control device can activate the charging circuit by outputting a second enable signal to the charging management circuit 110.

[0065] When the electronic device 100 is connected to the external power supply 200, the default setting allows the external power supply 200 to charge the battery 120 and supply power to the load including the display screen 130 through the charging management circuit 110. In other words, when the electronic device 100 is connected to the external power supply 200, the charging control device can be set to output a second enable signal to the charging management circuit 110 by default.

[0066] The first enable signal and the second enable signal can be opposite signals. For example, the first enable signal is a high-level signal and the second enable signal is a low-level signal, or the first enable signal is a low-level signal and the second enable signal is a high-level signal. The specific settings can be configured according to the enable requirements of the charging management circuit 110.

[0067] In some examples, such as Figure 6 As shown, the first enable signal is a high-level signal, and the second enable signal is a low-level signal. Figure 6As shown, when the second value satisfies the third condition (i.e., the second value is greater than the second lower limit and less than the second upper limit), and when the first value satisfies one of the first and second conditions (i.e., the first value is greater than the first upper limit Bmax during the battery charging phase (first value rising phase) and greater than or equal to the first lower limit Bmin during the battery discharging phase (first value falling phase), the charging control device outputs a high-level first enable signal to the charging management circuit 110 to trigger the charging management circuit 110 to shut off the charging circuit that uses external power to charge the battery. After shutting off the charging circuit, the battery discharging phase begins. During the battery discharging phase, the first value reflecting the battery charge level gradually decreases until it falls below the lower limit Bmin and no longer satisfies the first and second conditions. If the second value does not satisfy the third condition, or if the first value does not satisfy the first and second conditions, the charging control device outputs a low-level second enable signal to the charging management circuit 110 to trigger the charging management circuit 110 to turn on the charging circuit. After turning on the charging circuit, the battery charging phase begins. During the battery charging phase, the first value reflecting the battery's charge level will gradually increase until it meets either the first or second condition. If the second value then meets the third condition, the charging control device will again output the first enable signal to the charging management circuit to shut off the external power supply for charging the battery, and this cycle repeats. Figure 6 As shown, during the period when the second value meets the third condition, the battery 120 will alternately charge and discharge to reduce the probability of screen flickering.

[0068] In this embodiment, the first upper limit value Bmax and the first lower limit value Bmin are thresholds preset according to charging control requirements.

[0069] Since the display screen 130 may only flicker when the battery 120 is fully charged or nearly fully charged, the first upper limit value Bmax can be set based on the value of the first value when the battery is nearly fully charged. For example, if the first value is the first voltage value at both ends of the battery, then the first upper limit value Bmax can be set based on the voltage value of the battery 120 when it is nearly fully charged. Or, for example, if the first value is the remaining battery capacity, then the first upper limit value Bmax can be set to A% of the battery's full charge capacity, where A can be greater than or equal to 80 and less than 100.

[0070] In this embodiment, if the battery level and drive current may cause screen flickering, and the first value exceeds the first upper limit, the charging management circuit 110 will disable the external power supply 200 to prevent screen flickering on the display 130. At this time, the battery 120 supplies power to the display 130, and the battery 120 is in a discharging state, causing the battery level to decrease. When the battery level drops to a certain level, regardless of the drive current, the display 130 is less likely to flicker. At this point, the external power supply 200 can be restored to charge the battery 120 to replenish its power. Therefore, the first lower limit value Bmin determines the level at which the battery level drops after the battery 120 supplies power to the display 130 before the external power supply 200 resumes charging the battery 120. Thus, the first lower limit value Bmin can be set by considering the safe voltage to avoid screen flickering and the frequency of battery 120 switching between charging and discharging.

[0071] In this embodiment, the second upper limit and the second lower limit are thresholds preset according to charging control requirements. The second upper limit can be set based on the value at which the driving current easily causes screen flickering, and the second lower limit can be set based on the minimum value of the second value when the screen is on. When the minimum value is 0, the second lower limit can be set to 0. That is, when the second value is less than or equal to the second lower limit, it means the screen is off, and charging control according to the method of this embodiment is not required. For example, the second value is as follows: Figure 10 The second voltage value across the sampling resistor 170 shown can be used to set the second upper limit value based on the upper limit value of the voltage across the sampling resistor 170 when the driving current easily causes screen flickering. For example, if the second value is the brightness value of the display screen, the second upper limit value can be set based on the upper limit value of brightness when the driving current easily causes screen flickering.

[0072] Each of the steps 510 to 530 above can be implemented by software running programs or instructions by the processor, or by hardware circuitry, as needed. In other words, the charging control method of this embodiment can be implemented by software, hardware circuitry, or a combination of software and hardware circuitry.

[0073] According to steps 510 to 530 above, the charging control method of this embodiment can, when the electronic device 100 is connected to an external power source 200, determine whether the use of the external power source 200 by the electronic device 100 is likely to cause screen flicker by monitoring the battery power and the driving performance of the display screen. If screen flicker is likely to occur, the charging circuit of the external power source charging the battery 120 is turned off, so that the system voltage provided by the battery 120 can be used to power the display screen 130, thereby reducing the system voltage and reducing the risk of screen flicker in the display screen 130.

[0074] Furthermore, when screen flickering is unlikely, the charging circuit for charging battery 120 can be activated by external power supply 200 to continue charging battery 120 and powering the display, thus replenishing battery power. In this way, when electronic device 100 is connected to external power supply 200 for charging, and the user's use of electronic device 200 results in a relatively low load on the display, this charging control scheme, which cycles between allowed and disabled output by external power supply 200, thereby alternating charging and discharging of battery 120, effectively avoids situations where the battery is nearly fully charged and the driving current is low, which could easily cause screen flickering. This solves the screen flickering problem that may occur when the battery is fully charged and a small load is applied by external power supply, reducing the risk of screen flickering.

[0075] Furthermore, the method in this embodiment only operates when the display screen is prone to flickering, i.e., when the probability of flickering is high, and will not affect the overall battery life of the electronic device. After the electronic device is turned off, the method stops working, and the battery can be fully charged in a short time, without affecting battery life.

[0076] In some embodiments, after obtaining a first value reflecting the battery level of the electronic device in step 510, the method may further include the following steps: during the battery charging phase, comparing the first value with a first upper limit value, and during the battery discharging phase, comparing the first value with a first lower limit value to obtain a first comparison result, and determining whether the first value satisfies one of the first condition and the second condition based on the first comparison result, so as to execute step 530. In these embodiments, this comparison step may be implemented by processor execution instructions or programs, which helps to reduce hardware setup.

[0077] In some embodiments, after obtaining the second value reflecting the driving current of the display screen of the electronic device in step 520 above, the method may further include the following steps: comparing the second value with a second upper limit value and a second lower limit value respectively to obtain a second comparison result, and determining whether the second value satisfies a third condition based on the second comparison result, so as to execute step 530. In these embodiments, the comparison step may be implemented by processor execution instructions or programs, which helps to reduce hardware setup.

[0078] In some embodiments, after obtaining a first value reflecting the battery power of the electronic device in step 510, the method may further include the following steps: by, for example, Figure 8The hysteresis comparator circuit 710a shown compares a first value with a first upper limit value during the battery charging phase and compares the first value with a first lower limit value during the battery discharging phase. When the hysteresis comparator circuit 710a outputs a first signal, the first value satisfies one of a first condition and a second condition. In these embodiments, when the hysteresis comparator circuit 710a outputs a fourth signal with a level opposite to the first signal, it determines that the first value does not satisfy the first and second conditions. In these embodiments, this comparison step is implemented by the hysteresis comparator circuit itself, which helps to improve processing speed.

[0079] In some embodiments, after obtaining a second value reflecting the driving performance of the display screen of the electronic device in step 520, the method may further include the following steps: by, for example, Figure 8 The first voltage comparison circuit 721a shown compares the second value with the second upper limit value, and, for example, through... Figure 8 The second voltage comparison circuit 722a shown compares the second value with a second lower limit value. The second value satisfies the third condition when the first voltage comparison circuit 721a outputs a second signal and the second voltage comparison circuit 722a outputs a third signal. In these embodiments, the second value does not satisfy the third condition when the first voltage comparison circuit 721a outputs a fifth signal with a level opposite to the second signal, or when the second voltage comparison circuit 722a outputs a sixth signal with a level opposite to the third signal. In these embodiments, this comparison step is implemented by the hardware circuitry of the first and second voltage comparison circuits, which helps to improve processing speed.

[0080] Based on the above embodiments of the charging control method, this disclosure also provides an embodiment of a charging control device. Figure 7 This is a schematic diagram of the charging control device 700.

[0081] like Figure 7 As shown, the charging control device 700 includes a first data processing module 710, a second data processing module 720, and a logic judgment module 730.

[0082] The first data processing module 710 is used to obtain a first value reflecting the battery level of the electronic device.

[0083] The second data processing module 720 is used to acquire a second value reflecting the driving current of the display screen of the electronic device.

[0084] The logic judgment module 730 is used to shut off the external power supply to charge the battery when the electronic device is connected to an external power source, the first value satisfies one of the first and second conditions above, and the second value satisfies the third condition above.

[0085] Each of the first data processing module 710, the second data processing module 720, and the logic judgment module 730 can be implemented by a processor running a program or instructions, or by a hardware circuit.

[0086] In some embodiments, the first data processing module 710 may also be used to, after obtaining a first value reflecting the battery power of the electronic device, compare the first value with a first upper limit value during the battery charging phase and compare the first value with a first lower limit value during the battery discharging phase to obtain a first comparison result, and output the first comparison result to the logic judgment module 730 so that the logic judgment module 730 can determine whether the first value satisfies one of the first condition and the second condition based on the first comparison result.

[0087] In some embodiments, after acquiring a second value reflecting the driving current of the display screen of the electronic device, the second data processing module 720 may further compare the second value with a second upper limit value and a second lower limit value respectively to obtain a second comparison result, and output the second comparison result to the logic judgment module 730 so that the logic judgment module 730 can determine whether the second value satisfies the third condition based on the second comparison result.

[0088] In some embodiments, the first data processing module 710 can be a hysteresis comparison circuit, which compares the first value with a first upper limit value during the battery charging phase and with a first lower limit value during the battery discharging phase. The first output signal of the hysteresis comparison circuit is output to the logic judgment module 730, so that the logic judgment module 730 can determine whether the first value satisfies one of the first and second conditions based on the first output signal. This first output signal corresponds to the first comparison result in the above embodiments.

[0089] In some embodiments, the second data processing module 720 may include a first voltage comparison circuit and a second voltage comparison circuit. After acquiring a second value reflecting the driving current of the display screen of the electronic device, the second data processing module 720 compares the second value with a second upper limit value through the first voltage comparison circuit and compares the second value with a second lower limit value through the second voltage comparison circuit. The second output signal of the first voltage comparison circuit and the third output signal of the second voltage comparison circuit are output to the logic judgment module 730, so that the logic judgment module 730 can determine whether the second value satisfies a third condition based on the second and third output signals. The second and third output signals correspond to the second comparison result in the above embodiments.

[0090] exist Figure 7In the illustrated embodiment, the charging control device 700, when the electronic device 100 is connected to an external power source 200, can monitor the battery level and the driving performance of the display screen to determine whether the use of the external power source 200 by the electronic device 100 is likely to cause screen flickering. If screen flickering is likely, the charging circuit for charging the battery 120 by the external power source is shut off, so that the system voltage provided by the battery 120 can power the display screen 130, thereby reducing the system voltage and lowering the risk of screen flickering on the display screen 130. This charging control device 700 can be implemented by a processor running a program or instructions, or by hardware circuitry; no limitation is made here.

[0091] Figure 8 A schematic diagram of the structure of a charging control device 700a based on a hardware circuit is shown.

[0092] exist Figure 8 In the illustrated embodiment, the first value can be the first voltage value Uin1 across the battery 120. The first data processing module 710 is... Figure 8 The hysteresis comparator circuit 710a in the middle. Figure 8 In one embodiment, the charging control device 700a further includes a first reference voltage source 810 to provide a first reference voltage value Ur1.

[0093] like Figure 8As shown, the hysteresis comparator circuit 710a includes an operational amplifier U1, a first resistor R1, a second resistor R2, and a third resistor R3. The hysteresis comparator circuit 710a has a first input terminal, a second input terminal, and an output terminal. The first input terminal of the hysteresis comparator circuit 710a serves as an input terminal of the charging control device 700a and is connected to the positive terminal of the battery 120 to obtain a first voltage value Uin1 across the battery terminals. The negative terminal of the battery is grounded; that is, the voltage value at the first input terminal of the hysteresis comparator circuit 710a is this first voltage value Uin1. The first resistor R1 is connected between the first input terminal of the hysteresis comparator circuit 710a and the non-inverting input terminal of the operational amplifier U1. The second resistor R2 is connected between the inverting input terminal of the operational amplifier U1 and the second input terminal of the hysteresis comparator circuit 710a. This second input terminal is connected to a first reference voltage source 810; that is, the voltage value at the second input terminal of the hysteresis comparator circuit 710a is the first reference voltage value Ur1 output by the first reference voltage source 810. The third resistor R3 is connected between the non-inverting input of operational amplifier U1 and the output of hysteresis comparator circuit 710a, where the output of hysteresis comparator circuit 710a is also the output of operational amplifier U1. When the signal Uout1 output by hysteresis comparator circuit 710a is the first signal, it indicates that the first value satisfies one of the first and second conditions. When the signal Uout1 output by hysteresis comparator circuit 710a is a fourth signal with a level opposite to the first signal, it indicates that the first value does not satisfy the first and second conditions.

[0094] exist Figure 8 In the illustrated embodiment, the voltage value of the first reference voltage source 810, i.e., the first reference voltage value Ur1, is set according to the aforementioned first upper limit value Bmax and first lower limit value Bmin. The working principle of the hysteresis comparator circuit 710a is as follows: Figure 9 As shown, the hysteresis comparator circuit 710a can compare a first value with a first upper limit value during the battery charging phase and compare a first value with a first lower limit value during the battery discharging phase. For example, during the battery charging phase, when the first value is greater than the first upper limit value Bmax, and during the battery discharging phase, when the first value is greater than or equal to the lower limit value Bmin, the hysteresis comparator circuit 710a outputs a high-level first signal V, Uout1. OH The first value satisfies either the first condition or the second condition. During the battery charging phase, when the first value is less than or equal to the upper limit value Bmax, and during the battery discharging phase, when the first value is less than the lower limit value Bmin, the hysteresis comparator circuit 710a outputs a low-level fourth signal Uout1, V. OLThis corresponds to the first value not satisfying the first and second conditions. In other words, if the hysteresis comparator circuit 710a outputs a high-level first signal V, Uout1, when the first value satisfies either the first or second condition. OH However, if the first and second conditions are not met, the output signal Uout1 is the low-level fourth signal V. OL ,therefore, Figure 7 The logic judgment module 730 can determine whether the first and second conditions are met based on whether the output of the hysteresis comparator circuit 710a is the first signal or the fourth signal, and then perform a logic judgment.

[0095] exist Figure 8 In one embodiment, the charging control device 700a further includes a second reference voltage source 820 and a third reference voltage source 830, to provide a second reference voltage value Ur2 through the second reference voltage source 820 and a third reference voltage value Ur3 through the third reference voltage source 830.

[0096] exist Figure 8 In the embodiments, the second value can be Figure 11 The second voltage value Uin2 across the sampling resistor 170 is shown in the image. Figure 10 The sampling resistor 170 is a resistor used to sample the input current value of the display driver circuit by converting the input current value into a voltage value. In this embodiment, Figure 7The second data processing module 720 is a voltage comparison circuit 720a, which may include a first voltage comparison circuit 721a and a second voltage comparison circuit 722a. The first input terminal (e.g., an inverting input terminal) of the first voltage comparison circuit 721a and the first input terminal (e.g., a non-inverting input terminal) of the second voltage comparison circuit 722a serve as another input terminal of the charging control device 700a, inputting a second voltage value Uin2. That is, the voltage value at the first input terminal of the first voltage comparison circuit 721a and the first input terminal of the second voltage comparison circuit 722a is the second voltage value. Here, the first input terminal of the first voltage comparison circuit 721a and the first input terminal of the second voltage comparison circuit 722a can, for example, be connected to the output terminal of a subtraction circuit, and the two input terminals of this subtraction circuit are respectively connected to the two ends of the sampling circuit 170, wherein the voltage value at the output terminal of the subtraction circuit is the second voltage value. The second input terminal (e.g., non-inverting input terminal) of the first voltage comparator circuit 721a is connected to the second reference voltage source 820, that is, the voltage value at the second input terminal of the first voltage comparator circuit 721a is the second reference voltage value Ur2. The second input terminal (e.g., inverting input terminal) of the second voltage comparator circuit 722a is connected to the third reference voltage source 830, that is, the voltage value at the second input terminal of the second voltage comparator circuit 722a is the third reference voltage value Ur3. The signal Uout2-1 output by the first voltage comparator circuit 721a and the signal Uout2-2 output by the second voltage comparator circuit 722a reflect whether the second value satisfies the third condition. When the signal Uout2-1 output by the first voltage comparison circuit 721a is the second signal and the signal Uout2-2 output by the second voltage comparison circuit 722a is the third signal, the second value satisfies the third condition; however, when the signal Uout2-1 output by the first voltage comparison circuit 721a is the fifth signal with the opposite level to the second signal, or when the signal Uout2-2 output by the second voltage comparison circuit 722a is the sixth signal with the opposite level to the third signal, the second value does not satisfy the third condition.

[0097] In this embodiment, the voltage value of the second reference voltage source 820, i.e., the second reference voltage value Ur2, is set according to the second upper limit value. Figure 8 In the example, the second reference voltage value Ur2 is equal to the second upper limit value. Thus, when the second value (second voltage value) is less than the second upper limit value, the signal Uout2-1 output by the first voltage comparator circuit 721a is a high-level signal; conversely, when the second value is less than the second upper limit value, the signal Uout2-1 output by the first voltage comparator circuit 721a is a low-level signal. That is, in... Figure 8 In the example, the second signal is a high-level signal and the fifth signal is a low-level signal.

[0098] In this embodiment, the voltage value of the third reference voltage source 830, i.e., the third reference voltage value Ur3, is set according to the second lower limit value. Figure 8 In the example, the third reference voltage value Ur3 is equal to the second lower limit value. When the second lower limit value is 0, the third reference voltage source 830 is grounded. Thus, when the second value (second voltage value) is greater than the second lower limit value, the signal Uout2-2 output by the second voltage comparator circuit 722a is a high-level signal; conversely, when the second voltage comparator circuit 722a outputs a low-level signal, that is, in... Figure 8 In the example, the third signal is a high-level signal and the sixth signal is a low-level signal.

[0099] Figure 7 The logic judgment module 730 can determine whether the second value meets the third condition based on whether the signal Uout2-1 output by the first voltage comparison circuit 721a is the second signal or the fifth signal, and whether the signal Uout2-2 output by the second voltage comparison circuit 722a is the third signal or the sixth signal, and then perform a logic judgment.

[0100] exist Figure 8 In the embodiments, Figure 7 The logic judgment module 730 can be a logic circuit 730a. This logic circuit 730a may include one or more logic gates depending on the design requirements, and no limitation is made here. The composition of the logic circuit 730a can be determined based on the logical operation relationship between the level of the signals output by the hysteresis comparator circuit 710a, the first voltage comparator circuit 721a, and the second voltage comparator circuit 722a, and the level of the enable signal Eout. This is a basic skill that those skilled in the art should possess, and will not be elaborated further here.

[0101] like Figure 8 As shown, the input terminal of the logic circuit 730a receives the signal Uout1 output by the hysteresis comparator circuit 710a, the signal Uout2-1 output by the first voltage comparator circuit 721a, and the signal Uout2-2 output by the second voltage comparator circuit 722a. The output terminal of the logic circuit 730a serves as the output terminal of the charging control device 700a, and outputs the first enable signal and the second enable signal in a time-division manner. That is, the enable signal Eout of the charging control device 700a is either the first enable signal or the second enable signal in a time-division manner.

[0102] In some examples, the first, second, and third signals are all high-level signals, the first enable signal is high-level, and the second enable signal is low-level. For this type of logical operation, the logic circuit 730a can simply select a logic AND gate with three inputs. Thus, the logic circuit 730a can output a high-level first enable signal when the first value satisfies one of the first and second conditions, and the second value satisfies the third condition; and output a low-level second enable signal when the first value does not satisfy the first and second conditions, or the second value does not satisfy the third condition.

[0103] In another embodiment, the logic circuit may first perform an AND operation on the signal Uout2-1 output by the first voltage comparison circuit 721a and the signal Uout2-2 output by the second voltage comparison circuit 722a through the first logic AND gate to obtain the first operation result, and then perform an AND operation on the first operation result and the signal output by the hysteresis comparison circuit 710a through the second logic AND gate. No limitation is made here.

[0104] In another embodiment, it is also possible to... Figure 8 The hysteresis comparator circuit 710a, voltage comparator circuit 720a, and logic circuit 730a shown are combined with software design to obtain... Figure 7 The charging control device 700 in the middle implements each step of the above-mentioned charging control method and can achieve the same technical effect. To avoid repetition, it will not be described in detail here.

[0105] In some embodiments, a circuit is also provided, which is applied to an electronic device, such as... Figure 10 As shown, the electronic device 100 includes a battery 120, a battery charging interface 160, and a display screen 130. In these embodiments, the circuitry includes a processing circuit 1010, a charging circuit 1020, a first power supply circuit 1030, a second power supply circuit 1040, and a display driver circuit 1050 for the display screen.

[0106] like Figure 10 As shown, the charging circuit 1020 is electrically connected between the charging interface 160 and the battery 120. Thus, after the electronic device is connected to an external power source through the charging interface 160, the external power source can charge the battery 120 through the charging circuit.

[0107] like Figure 10 As shown, the first power supply circuit 1030 is electrically connected between the charging interface 160 and the display driving circuit 1050. In this way, after the electronic device is connected to an external power source through the charging interface 160, the external power source can supply power to the display driving circuit 1050 through the first power supply circuit, thereby driving the display screen to work.

[0108] like Figure 10 As shown, the second power supply circuit 1040 is electrically connected between the battery 120 and the display driving circuit 1050, which allows the battery 120 to supply power to the display driving circuit 1050 through the second power supply circuit, thereby driving the display screen to work.

[0109] In these embodiments, when the charging circuit 1020 is in the off state, the first power supply circuit 1030 is also in the off state, while the second power supply circuit 1040 is in the on state. When the charging circuit 1020 is in the on state, the first power supply circuit 1030 is also in the on state, while the second power supply circuit 1040 is in the off state. This state can be achieved by setting corresponding switches on the charging circuit 1020, the first power supply circuit 1030, and the second power supply circuit 1040.

[0110] In these embodiments, when the charging interface is connected to an external power source, the processing circuit 1010 shuts off the charging circuit 1020 in response to the electronic device meeting set conditions. These set conditions include: a first value reflecting the battery charge meeting one of the first and second conditions described above, and a second value reflecting the drive current of the displayed screen meeting the third condition described above.

[0111] exist Figure 10 In the illustrated embodiment, when the electronic device 100 is connected to an external power source 200, the circuit can monitor the battery level and the driving performance of the display screen to determine whether the use of the external power source 200 by the electronic device 100 is likely to cause screen flickering. If screen flickering is likely to occur, the circuit will turn off the charging circuit 1020 that charges the battery 120 by the external power source, so that the display screen 130 is powered by the second power supply circuit 1040, thereby reducing the input voltage of the display driving circuit and reducing the risk of screen flickering on the display screen 130.

[0112] In some embodiments, such as Figure 10 and Figure 11As shown, the charging circuit 1020 may include a first switch Qc, a voltage conversion circuit 111, and a second switch Qbat. The first switch Qc is electrically connected between the charging interface 160 and the input terminal of the voltage conversion circuit 111, and the second switch Qbat is electrically connected between the output terminal of the voltage conversion circuit 111 and the battery 120. The first power supply circuit 1030 includes the aforementioned first switch Qc and voltage conversion circuit 111. The first power supply circuit 1030 converts the voltage of the external power supply and provides it to the display driving circuit 1050. The second power supply circuit 1040 includes the second switch Qbat and provides battery voltage to the display driving circuit 1050. When the charging interface 160 is connected to an external power source, the processing circuit 1010, in response to the electronic device 100 meeting the set conditions, turns off the charging circuit 1020 by turning off the first switch Qc. At this time, the first power supply circuit 1030 is also turned off. In these embodiments, the charging circuit 1020 shares some components with the first power supply circuit 1030 and the second power supply circuit 1040, which helps to reduce hardware devices and save costs.

[0113] In some embodiments, such as Figure 10 and Figure 11 As shown, the first value is the first voltage value across the battery terminals, and the processing circuit 1010 includes, as shown in the figure... Figure 8 The hysteresis comparator circuit 710a shown is used by the processing circuit 1010 to determine whether a first value satisfies one of the first and second conditions. The voltage value at the first input terminal of the hysteresis comparator circuit 710a is the first voltage value across the battery terminals, meaning the first input terminal of the hysteresis comparator circuit 710a can be connected to the positive terminal of the battery 120, while the negative terminal of the battery 120 is grounded. The voltage value at the second input terminal of the hysteresis comparator circuit is the first reference voltage value, meaning the second input terminal of the hysteresis comparator circuit is connected to the aforementioned first reference voltage source. This first reference voltage value is a voltage value set according to a first upper limit value and a first lower limit value.

[0114] In some embodiments, the second power supply circuit 1040 includes a sampling resistor 170, and the first power supply circuit 1030 also includes the sampling resistor 170. That is, the sampling resistor 170 is located in the first power supply circuit 1030 and the second power supply circuit 1040, and is used to sample the input current value of the display driving circuit 1040. The second value is the second voltage value across the sampling resistor, and the second voltage value can represent the input current value.

[0115] In some embodiments, the processing circuit 1010 includes, for example: Figure 8The first voltage comparison circuit 721a and the second voltage comparison circuit 722a shown are used by the processing circuit 1010 to determine whether a second value satisfies a third condition. Specifically, the voltage values ​​at the first input terminals of the first voltage comparison circuit 721a and the second voltage comparison circuit 722a are the second voltage values ​​across a sampling resistor. The sampling resistor can be connected to the first input terminals of both circuits via a subtraction circuit, as described above, and will not be repeated here. The voltage value at the second input terminal of the first voltage comparison circuit is a second reference voltage value corresponding to the second upper limit value, and correspondingly, the second input terminal of the first voltage comparison circuit is connected to the aforementioned second reference voltage source. The voltage value at the second input terminal of the second voltage comparison circuit is a third reference voltage value corresponding to the second lower limit value, and correspondingly, the second input terminal of the second voltage comparison circuit is connected to the aforementioned third reference voltage source.

[0116] In some embodiments, the processing circuit 1010 includes logic circuitry that determines whether the electronic device meets the set condition. The logic circuitry includes at least one logic gate, such as an AND gate.

[0117] In some embodiments, the processing circuit 1010 includes, as follows: Figure 8 The hysteresis comparator circuit 710a, the first voltage comparator circuit 721a, the second voltage comparator circuit 722a, and the logic circuit 730a shown are all input to the logic circuit 730a. When the electronic device meets the set conditions, the logic circuit 730a outputs a first enable signal to turn off the charging circuit; when the electronic device does not meet the set conditions, it outputs a second enable signal to turn on the charging circuit. In other words, in these embodiments, the processing circuit 1010 can employ... Figure 8 The circuit structure of the charging control device 700a shown is illustrated.

[0118] In some embodiments, such as Figure 10 and Figure 11 As shown, the circuit may further include a third power supply circuit 1060, which is electrically connected between the charging interface 160 and the power input terminal of the processing circuit 1010. The processing circuit 1010 is powered by the external power supply 200 through the third power supply circuit 1060. Thus, the processing circuit 1010 only operates when the electronic device 100 is connected to the external power supply 200, and does not operate when the electronic device 100 is not connected to the external power supply 200, and therefore does not consume battery power. Thus, even with the addition of the processing circuit 1010, the battery life of the electronic device 100 will not be affected.

[0119] Figure 12 An electronic device 1000 according to some embodiments is shown. The electronic device 1000 may include a processor 1001 and a memory 1002. The memory 1002 stores programs or instructions that can run on the processor 1001. When the programs or instructions are executed by the processor 1001, they implement the various steps of the charging control method as described above and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0120] The processor 1001 can be an application processor for an electronic device. Additionally, the first value can be the remaining battery power provided by the fuel gauge, and the second value can be the brightness value of the display screen. In this way, the electronic device can implement the various steps of the aforementioned charging control method without adding any hardware or making any hardware modifications.

[0121] Figure 13 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0122] The electronic device 1200 includes, but is not limited to, components such as: radio frequency unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensor 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 1209, and processor 1210.

[0123] Those skilled in the art will understand that the electronic device 1200 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1210 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 12 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0124] The processor 1210 is configured to acquire a first value reflecting the battery power of the electronic device; acquire a second value reflecting the driving performance of the display screen of the electronic device; and, when the electronic device is connected to an external power source, the first value satisfies one of a set first condition and a set second condition, and the second value satisfies a set third condition, shut off the charging circuit for charging the battery by the external power source.

[0125] In this way, when the electronic device 1200 is connected to an external power source for charging, and the user's use of the electronic device 1200 causes the display screen to be overloaded, the external power source will cycle between allowed output and prohibited output, thereby causing the battery to charge and discharge alternately. This can effectively avoid the situation where the battery is close to full charge and the driving current is too large, which can easily cause the display screen to flicker. This solves the problem of display screen flickering that may be caused by the external power source carrying a large load when the battery is fully charged, and reduces the risk of display screen flickering.

[0126] It should be understood that, in this embodiment, the input unit 1204 may include a graphics processing unit (GPU) 12041 and a microphone 12042. The GPU 12041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1206 may include a display panel 12061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc., and this display panel is also the aforementioned display screen. The user input unit 1207 includes a touch panel 12071 and at least one of other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 may include a touch detection device and a touch controller. Other input devices 21072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0127] The memory 1209 can be used to store software programs and various data. The memory 1209 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1209 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1209 in this embodiment includes, but is not limited to, these and any other suitable types of memory.

[0128] Processor 1210 may include one or more processing units; optionally, processor 1210 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1210.

[0129] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the control method embodiments of the above-described electronic device and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0130] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0131] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described charging control method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0132] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0133] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the control method embodiment of the electronic device described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0134] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0135] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0136] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A circuit applied to an electronic device (100), the electronic device (100) comprising a battery (120), a charging interface (160) for the battery, and a display screen (130), characterized in that, The circuit includes a processing circuit (1010), a charging circuit (1020), a first power supply circuit (1030), a second power supply circuit (1040), and a display driving circuit (1050) for the display screen (130). The charging circuit (1020) is electrically connected between the charging interface (160) and the battery (120). The first power supply circuit (1030) is electrically connected between the charging interface (160) and the display driving circuit (1050). The second power supply circuit (1040) is electrically connected between the battery (120) and the display driving circuit (1050). When the charging circuit (1020) is in the off state, the first power supply circuit (1030) is in the off state, and the second power supply circuit (1040) is in the on state. When the charging interface (160) is connected to an external power source (200), the processing circuit (1010) shuts off the charging circuit (1020) in response to the electronic device (100) meeting a set condition. The set conditions include: a first value reflecting the battery power meeting one of a first condition and a second condition, and a second value reflecting the driving performance of the display screen meeting a third condition. The first condition includes the first value being greater than a set first upper limit value during the battery charging phase, the second condition includes the first value being greater than or equal to a set first lower limit value during the battery discharging phase, and the third condition includes the second value being greater than a set second lower limit value and less than a set second upper limit value.

2. The circuit according to claim 1, characterized in that, The charging circuit (1020) includes a first switch (Qc), a voltage conversion circuit (111), and a second switch (Qbat). The first switch (Qc) is electrically connected between the charging interface (160) and the input terminal of the voltage conversion circuit (111), and the second switch (Qbat) is electrically connected between the output terminal of the voltage conversion circuit (111) and the battery (120). The first power supply circuit (1030) includes the first switch (Qc) and the voltage conversion circuit (111). The second power supply circuit (1040) includes the second switch (Qbat); When the charging interface is connected to an external power source, the processing circuit shuts off the charging circuit by turning off the second switch in response to the electronic device meeting a set condition.

3. The circuit according to claim 1, characterized in that, The first value is the first voltage value across the battery terminals. The processing circuit includes a hysteresis comparator circuit (710a). The processing circuit determines whether the first value satisfies one of the first condition and the second condition through the hysteresis comparator circuit (710a). The voltage value at the first input terminal of the hysteresis comparator circuit (710a) is the first voltage value (Uin1), and the voltage value at the second input terminal of the hysteresis comparator circuit (710a) is a first reference voltage value (Ur1). The first reference voltage value is a voltage value set according to the first upper limit value and the first lower limit value.

4. The circuit according to claim 1, characterized in that, The second power supply circuit (1040) includes a sampling resistor (170), the first power supply circuit (1030) includes the sampling resistor (170), and the second value is the second voltage value across the sampling resistor (170); The processing circuit includes a first voltage comparison circuit (721a) and a second voltage comparison circuit (722a). The processing circuit determines whether the second value satisfies the third condition through the first voltage comparison circuit (721a) and the second voltage comparison circuit (722a). The voltage value at the first input terminal of the first voltage comparison circuit (721a) and the voltage value at the first input terminal of the second voltage comparison circuit (722a) are the second voltage value (Uin2). The voltage value at the second input terminal of the first voltage comparison circuit (721a) is the second reference voltage value (Ur2) corresponding to the second upper limit value. The voltage value at the second input terminal of the second voltage comparison circuit (722a) is the third reference voltage value (Ur3) corresponding to the second lower limit value.

5. The circuit according to claim 1, characterized in that, The processing circuit includes a logic circuit (730a), which determines whether the electronic device meets the set conditions.

6. The circuit according to any one of claims 1 to 5, characterized in that, The circuit also includes a third power supply circuit (1060), which is electrically connected between the charging interface (160) and the power supply input terminal of the processing circuit (1010), and the processing circuit is powered by the external power source through the third power supply circuit.

7. An electronic device, characterized in that, The circuit includes any one of claims 1 to 6.

8. A charging control method, applied to the electronic device as described in claim 7, characterized in that, include: Obtain a first value reflecting the battery level of the electronic device; Obtain a second value reflecting the driving performance of the display screen of the electronic device; When the electronic device is connected to an external power source, the first value satisfies one of the set first and second conditions, and the second value satisfies the set third condition, the charging circuit for charging the battery by the external power source is turned off. The first condition includes the first value being greater than a set first upper limit value during the battery charging phase; the second condition includes the first value being greater than or equal to a set first lower limit value during the battery discharging phase; and the third condition includes the second value being greater than a set second lower limit value and less than a set second upper limit value.

9. The method according to claim 8, characterized in that, The step of obtaining a first value reflecting the battery level of the electronic device includes: The first voltage value across the battery is obtained as the first numerical value; The acquisition of the second value reflecting the driving performance of the display screen of the electronic device includes: The input current value of the display driver circuit of the display screen is obtained as the second value; or, The step of obtaining a first value reflecting the battery level of the electronic device includes: The remaining charge of the battery is obtained as the first value; The acquisition of the second value reflecting the driving performance of the display screen of the electronic device includes: The brightness value of the display screen is obtained as the second value.

10. The method according to claim 8, characterized in that, After obtaining the first value reflecting the battery level of the electronic device, the method further includes: During the battery charging phase, the first value is compared with the first upper limit value, and during the battery discharging phase, the first value is compared with the first lower limit value to obtain a first comparison result, and it is determined whether the first value satisfies one of the first condition and the second condition based on the first comparison result; After obtaining the second value reflecting the driving performance of the display screen of the electronic device, the method further includes: The second value is compared with the second upper limit value and the second lower limit value respectively to obtain a second comparison result, and it is determined whether the second value satisfies the third condition based on the second comparison result.

11. The method according to claim 8, characterized in that, After obtaining the first value reflecting the battery level of the electronic device, the method further includes: The first value is compared with the first upper limit value during the battery charging phase and with the first lower limit value during the battery discharging phase using a hysteresis comparator circuit. When the hysteresis comparator circuit outputs a first signal, the first value satisfies one of the first condition and the second condition.

12. The method according to claim 8 or 11, characterized in that, After obtaining the second value reflecting the driving performance of the display screen of the electronic device, the method further includes: The second value is compared with the second upper limit value by the first voltage comparison circuit, and the second value is compared with the second lower limit value by the second voltage comparison circuit, wherein the second value satisfies the third condition when the first voltage comparison circuit outputs a second signal and the second voltage comparison circuit outputs a third signal.

13. A charging control device, applied to the electronic device as described in claim 7, characterized in that, include: The first data processing module is used to obtain a first value reflecting the battery power of the electronic device; The second data processing module is used to acquire a second value reflecting the driving performance of the display screen of the electronic device; and, A logic judgment module is used to shut off the charging circuit for charging the battery when the electronic device is connected to an external power source, the first value satisfies one of a set first condition and a second condition, and the second value satisfies a set third condition. The first condition includes the first value being greater than a set first upper limit value during the battery charging phase; the second condition includes the first value being greater than or equal to a set first lower limit value during the battery discharging phase; and the third condition includes the second value being greater than a set second lower limit value and less than a set second upper limit value.

Citation Information

Patent Citations

  • Switching circuit, switching method and display equipment

    CN112885301A

  • Charging control method and device, electronic equipment and computer readable storage medium

    CN115441526A