Impedance detection circuit, electronic device and discharge control method
By designing an impedance detection circuit in a mobile phone, dynamically detecting the path impedance between the battery and the load circuit, and adjusting the maximum current output value of the battery according to the detection results, the problem of the battery output voltage drop when the mobile phone runs up, and improving the battery discharge rate and equipment stability.
Patent Information
- Application Number
- CN202510194879.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-21
- Publication Date
- 2025-05-23
AI Technical Summary
In the prior art, when the mobile phone runs up, the battery output voltage will drop, resulting in an increase in the path impedance, affecting the stable operation of the mobile phone and the battery discharge rate.
An impedance detection circuit is designed, including a voltage comparison unit, a current sampling unit and a divider, and the path impedance between the battery and the load circuit is dynamically detected, and the maximum current output value of the battery is adjusted according to the detection results to optimize the performance of the load.
Dynamic detection of the impedance of the battery power supply path is realized, the battery discharge rate is improved and the equipment is maintained stable operation, and the power down caused by voltage drop is avoided.
Smart Images

Figure CN120028603A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of battery technology, and specifically relates to an impedance detection circuit, an electronic device and a discharge control method. Background Art
[0002] The battery-powered equivalent circuit in a mobile phone can be Figure 1 As shown, is the constant voltage source inside the battery, is the external load resistance, r is the internal resistance of the battery, is the equivalent impedance of the wire between the load and the battery. Battery internal resistance r and wire equivalent impedance Component path impedance . Wire equivalent impedance It is usually a fixed value, but the battery internal resistance r will change with the temperature and battery voltage. Therefore, the path impedance It will also vary with temperature and battery voltage.
[0003] When the load of the mobile phone increases, the load resistance decreases, the battery output current I will increase, and the battery output voltage to the load There will be a drop. The path impedance With load voltage The change in impedance is proportional to The larger the load voltage, the The greater the drop, the greater the drop, even causing power failure and shutdown, affecting the stable operation of the mobile phone, and also causing the battery discharge rate to be lower. Therefore, detecting the impedance of the battery-powered path is crucial to maintaining the stable operation of the mobile phone. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an impedance detection circuit, an electronic device and a discharge control method, which can solve the problems of unstable equipment operation and low battery discharge rate in the related art.
[0005] In a first aspect, an embodiment of the present application provides an impedance detection circuit, which is arranged between a battery and a load circuit, and the impedance detection circuit includes: A voltage comparison unit, comprising a plurality of comparators, wherein a reference voltage is input to a first input terminal of the comparator, a second input terminal of the comparator is connected to the battery, and the reference voltages of the plurality of comparators are different; A current sampling unit, comprising a sampling resistor and an amplifier, wherein two ends of the sampling resistor are respectively connected to the battery and the load circuit, and the current sampling unit is connected to the output end of the voltage comparison unit; A divider, wherein a first input terminal of the divider is connected to an output terminal of the voltage comparison unit, and a second input terminal of the divider is connected to an output terminal of the current sampling unit; When the output voltage of the battery changes, the voltage comparison unit outputs a sampling signal and a battery voltage fluctuation amplitude, the current sampling unit samples and amplifies according to the sampling signal and outputs a sampling voltage fluctuation amplitude, and the divider outputs a path impedance between the battery and the load circuit according to the battery voltage fluctuation amplitude and the sampling voltage fluctuation amplitude. In a second aspect, an embodiment of the present application provides an electronic device, comprising a battery, a power consumption module and an impedance detection circuit as described in the first aspect above, wherein the impedance detection circuit is arranged between the battery and the power consumption module.
[0006] In a third aspect, an embodiment of the present application provides a discharge control method, which is applied to an electronic device, wherein the electronic device includes a battery, a power consumption module, and an impedance detection circuit as described in the first aspect above, and the method includes: Obtaining the battery voltage fluctuation amplitude through the voltage comparison unit and outputting a sampling signal; The current sampling unit performs sampling based on the sampling signal and then calculates and obtains a sampling voltage fluctuation amplitude; The path impedance between the battery and the load circuit is calculated by the divider based on the battery voltage fluctuation amplitude and the sampled voltage fluctuation amplitude; Determining the maximum current output by the battery according to the path impedance; An adjustment parameter is selected for a target load, and a performance of the target load is improved based on the maximum current value and the adjustment parameter.
[0007] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the discharge control method described in the third aspect are implemented.
[0008] In a fifth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the discharge control method as described in the third aspect.
[0009] In the embodiment of the present application, the voltage comparison unit outputs a sampling signal and a battery voltage fluctuation amplitude when the output voltage of the battery changes, the current sampling unit samples and amplifies the sampling signal and outputs the sampling voltage fluctuation amplitude, and the divider outputs the path impedance between the battery and the load circuit according to the battery voltage fluctuation amplitude and the sampling voltage fluctuation amplitude. This enables dynamic detection of the battery power supply path impedance, helps to improve the battery discharge rate and maintain stable operation of the equipment. Moreover, the detection of the path impedance is completed by an analog circuit, which has the advantage of high response speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a schematic diagram of a battery-powered equivalent circuit in the related art; Figure 2 This is a schematic diagram of an impedance detection circuit structure provided in an embodiment of the present application; Figure 3 is a schematic diagram of another impedance detection circuit structure provided in an embodiment of the present application; Figure 4 is a schematic diagram of the relationship between current and voltage when the load increases provided in an embodiment of the present application; Figure 5 It is a flow chart of a discharge control method provided in an embodiment of the present application; Figure 6 is a schematic diagram of a flow chart of path impedance measurement provided in an embodiment of the present application; Figure 7 is a schematic diagram of a flow chart of controlling load power consumption provided by an embodiment of the present application; Figure 8 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application; Fig. 9 It is a schematic diagram of a PMIC application scenario provided in an embodiment of the present application; Fig.10 It is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0011] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0012] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0013] In order to better understand the technical solution provided by this application, some concepts and / or terms involved in this application are first explained.
[0014] like Figure 1 As shown, in the battery-powered equivalent circuit, is the constant voltage source inside the battery, is the external load resistance, is the voltage on the load, r is the internal resistance of the battery, The equivalent impedance of the wire between the load and the battery, the impedance of the battery-powered path It can be expressed as follows: ; (1) Among them, the equivalent impedance of the wire It is usually a fixed value, but the battery internal resistance r will change with the temperature and battery voltage. Therefore, the path impedance It will also vary with temperature and battery voltage.
[0015] In addition, the path impedance The relationship between the change in voltage and current on the load is as follows: ; (2) in, is the voltage change on the load, is the change in current on the load.
[0016] From the formula, we can see that the voltage change is and path impedance The greater the path impedance, the greater the voltage drop. When the load of the device increases, the voltage on the load There may also be a drop, and even a power failure and shutdown may affect the stable operation of the device, and cause the battery discharge rate to decrease. In view of this, the embodiment of the present application provides an impedance detection circuit, an electronic device, and a discharge control method to maintain the stable operation of the device and improve the battery discharge rate by detecting the impedance of the battery-powered path.
[0017] The impedance detection circuit, electronic device and discharge control method provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0018] Figure 2 FIG. 1 shows a schematic diagram of an impedance detection circuit structure provided by an embodiment of the present application. Figure 2 The impedance detection circuit 20 is arranged between the battery and the load circuit, and may include: a voltage comparison unit 21, a current sampling unit 22 and a divider 23.
[0019] The voltage comparison unit 21 includes a plurality of comparators, a reference voltage is input to a first input terminal of the comparator, a second input terminal of the comparator is connected to a battery, and the reference voltages of the plurality of comparators are different. The current sampling unit 22 includes a sampling resistor and an amplifier. Two ends of the sampling resistor are connected to the battery and the load circuit respectively. The current sampling unit is connected to the output end of the voltage comparison unit.
[0020] The divider 23 has a first input terminal connected to the output terminal of the voltage comparison unit, and a second input terminal connected to the output terminal of the current sampling unit.
[0021] Among them, when the output voltage of the battery changes, the voltage comparison unit 21 outputs a sampling signal and the battery voltage fluctuation amplitude, the current sampling unit 22 samples and amplifies according to the sampling signal and outputs the sampling voltage fluctuation amplitude, and the divider 23 outputs the path impedance between the battery and the load circuit according to the battery voltage fluctuation amplitude and the sampling voltage fluctuation amplitude.
[0022] In an embodiment of the present application, any one of the above-mentioned multiple comparators is used to determine that the output voltage of the battery has changed when the output level changes, determine the current output voltage of the battery based on the reference voltage of the comparator, calculate the battery voltage fluctuation amplitude based on the current output voltage and the output voltage of the battery when the battery output voltage changed last time, and output a sampling signal and the battery voltage fluctuation amplitude.
[0023] The current sampling unit 22 is used to receive the sampling signal output by the voltage comparison unit 21, sample the voltage across the sampling resistor and obtain the current sampling voltage after amplification by the amplifier, calculate the sampling voltage fluctuation amplitude according to the current sampling voltage and the previous sampling voltage, and output the sampling voltage fluctuation amplitude. The difference between the current sampling voltage and the previous sampling voltage can be calculated, and the difference is output as the sampling voltage fluctuation amplitude.
[0024] The divider 23 is used to receive the battery voltage fluctuation amplitude output by the voltage comparison unit 21 and the sampled voltage fluctuation amplitude output by the current sampling unit 22, calculate the path impedance between the battery and the load circuit based on the battery voltage fluctuation amplitude, the sampled voltage fluctuation amplitude and a first coefficient, and output the path impedance. The first coefficient is determined by the parameters of the current sampling unit 22 and the parameters of the divider 23.
[0025] The divider 23 can perform a division operation on the battery voltage fluctuation amplitude and the sampled voltage fluctuation amplitude based on the parameters of the divider, and calculate the path impedance between the battery and the load circuit according to the division operation result and the first coefficient.
[0026] In the embodiment of the present application, the reference voltages of the above-mentioned multiple comparators may correspond to a first voltage range and a second voltage range, and the highest value of the first voltage range is the lowest value of the second voltage range.
[0027] For example, the first voltage range is 3.4V to 3.8V, and the second voltage range is 3.8V to 4.3V. The highest value of the first voltage range, 3.8V, is the lowest value of the second voltage range. In other words, the first voltage range and the second voltage range are connected in order from low to high voltage.
[0028] The first voltage range includes a plurality of reference voltages whose voltage intervals are all of the first value, wherein each reference voltage corresponds to a comparator, that is, each reference voltage is input to the first input terminal of the corresponding comparator.
[0029] The second voltage range includes a plurality of reference voltages whose voltage intervals are all second values, wherein each reference voltage corresponds to a comparator, that is, each reference voltage is input to the first input terminal of the corresponding comparator.
[0030] In the embodiment of the present application, the reference voltages corresponding to the first voltage range and the reference voltages corresponding to the second voltage range together constitute a plurality of preset reference voltages. The comparators in the voltage comparison unit 21 correspond to the preset reference voltages one by one, that is, the number of comparators is equal to the number of preset reference voltages.
[0031] For example, the first voltage range includes M reference voltages corresponding to M comparators, the second voltage range includes N reference voltages corresponding to N comparators, and the voltage comparison unit 21 includes M+N comparators corresponding to M+N reference voltages.
[0032] In the embodiment of the present application, since the internal resistance of the battery is small at high voltage, the output voltage drop is not obvious. Therefore, the first value can be set higher than the second value, and the voltage interval between the reference voltages is smaller in a higher voltage range, so that the voltage change within the voltage range can be detected with higher accuracy.
[0033] For example, the first value may be set to 0.2V, and the second value may be set to 0.02V; or, the first value may be set to 0.15V, and the second value may be set to 0.05V, etc., without specific limitation.
[0034] Figure 3 FIG. 2 shows another schematic diagram of an impedance detection circuit structure provided by an embodiment of the present application. Figure 3 As shown, the voltage comparison unit includes multiple comparators, the first input terminal of each comparator inputs a preset reference voltage, the second input terminal is connected to the battery, and the voltage of the second input terminal is the voltage power output by the battery. The voltage ranges corresponding to the above multiple comparators include: a first voltage range of 3.4V~3.8V, and a second voltage range of 3.8V~4.3V. The first voltage range is set to one level every 0.2V, including three reference voltages of 3.4V, 3.6V and 3.8V. The second voltage range is set to one level every 0.02V, including 3.82V, 3.84V, ..., 4.26V, 4.28V and 4.3V.
[0035] Figure 4 The following is a schematic diagram showing the relationship between current and voltage when the load increases as provided in the embodiment of the present application. Figure 4 As shown in the figure, a mobile phone is used as an example. When the operating load of the mobile phone increases, R L decreases, the battery output current I will increase, and the battery output voltage to the load There will be a drop. If the load voltage drops too much, it may trigger the UVLO (Under Voltage Lock Out) of the PMIC in the device, and even cause power failure and shutdown, affecting the stable operation of the mobile phone. The voltage curve in the figure also shows the preset reference voltage. It can be seen that in the process of the battery output voltage dropping, it first experiences the second voltage range. In the process of dropping from 4.3V to 3.8V, a corresponding comparator will be triggered every 0.02V. Then it will experience the first voltage range. In the process of dropping from 3.8V to 3.4V, a corresponding comparator will be triggered every 0.2V. In this way, the current battery output voltage can be determined.
[0036] In the embodiment of the present application, each of the above-mentioned multiple comparators can be used for: The current output voltage of the battery is compared with the reference voltage input by the comparator. If the current output voltage is less than or equal to the reference voltage (that is, the voltage drops below the reference voltage), a high level is output; if the current output voltage is greater than the reference voltage (that is, the voltage rises above the reference voltage), a low level is output.
[0037] by Figure 3For example, when it is detected that a comparator is triggered, that is, when the level of the comparator output changes, the battery output voltage changes, and a sampling signal is sent to the current sampling unit 22 to notify it to perform voltage sampling. Among them, the change in the level of the comparator output can be a change from a high level to a low level, or a change from a low level to a high level. Moreover, the triggered comparator can determine the current output voltage of the battery based on the reference voltage, and calculate the difference between the current output voltage and the output voltage of the battery when the battery output voltage changed last time (the comparator was triggered). This difference is the battery voltage fluctuation amplitude. , and output the battery voltage fluctuation amplitude to the divider 23. In addition, after receiving the sampling signal, the current sampling unit 22 will The voltage at both ends is sampled and amplified by the amplifier to obtain the current sampled voltage. , and calculate the current sampling voltage The difference between the last sampled voltage and the sampling voltage is the fluctuation amplitude of the sampling voltage. , and then sample the voltage fluctuation amplitude Output to divider 23.
[0038] In the embodiment of the present application, the divider 23 can be used for: The battery voltage fluctuation amplitude output by the receiving voltage comparison unit 21 and the sampling voltage fluctuation amplitude output by the current sampling unit 22 are divided by the battery voltage fluctuation amplitude and the sampling voltage fluctuation amplitude based on the parameters of the divider 23, the result of the division operation is divided by the first coefficient to obtain the path impedance between the battery and the load circuit, and the path impedance is output.
[0039] In one implementation, the divider 23 includes a first resistor, a second resistor and a multiplier, one end of the first resistor is connected to the output end of the voltage comparison unit, one end of the second resistor is connected in series with the first resistor, the other end of the second resistor is connected to the output end of the multiplier, one input end of the multiplier is connected to the output end of the current sampling unit, and the other input end of the multiplier is used as the output end of the divider. Accordingly, the above first coefficient can be determined by the following formula: ; (3) in, is the first coefficient, is the gain of the amplifier in the current sampling unit 22, is the sampling resistor in the current sampling unit 22, is the first resistor, is the second resistor, is the gain of the multiplier.
[0040] In the embodiment of the present application, the formula of the first coefficient can be derived according to the following steps: First, in the current sampling unit 22, according to the sampling voltage fluctuation amplitude The current change can be calculated as follows: ; (4) in, is the current change, is the sampling voltage fluctuation amplitude, is the gain of the amplifier, is the sampling resistor.
[0041] Secondly, the battery voltage fluctuation range And the sampling voltage fluctuation amplitude After being input to the divider 23, the division operation is performed to obtain the following result: ; (5) in, is the result of the division operation, is the first resistor in the divider 23, is the second resistor in the divider 23, is the gain of the multiplier in divider 23.
[0042] Furthermore, the above formula (2) can be evolved as follows: ; (6) Finally, combining the above formulas (5) and (6), we can get: ; (7) Therefore, it can be concluded that the result of the division operation is n times the path impedance, that is, the conclusion of the above formula (3) can be obtained. Furthermore, the path impedance between the battery and the load circuit can be obtained by dividing the result of the division operation by n (the first coefficient): .
[0043] The impedance detection circuit provided in the embodiment of the present application outputs a sampling signal and a battery voltage fluctuation amplitude through a voltage comparison unit when the output voltage of the battery changes, samples and amplifies the sampling signal and outputs the sampling voltage fluctuation amplitude through a current sampling unit, and outputs the path impedance between the battery and the load circuit according to the battery voltage fluctuation amplitude and the sampling voltage fluctuation amplitude through a divider, thereby realizing dynamic detection of the impedance of the battery power supply path, helping to improve the battery discharge rate and maintain stable operation of the equipment. Moreover, the detection of the path impedance is completed by an analog circuit, which has the advantage of high response speed.
[0044] Figure 5FIG. 2 shows a flow chart of a discharge control method provided by an embodiment of the present application. Figure 5 As shown, the method is applied to an electronic device, which includes a battery, a power consumption module and an impedance detection circuit provided by any of the above embodiments. The method includes the following steps.
[0045] S502: Obtain the battery voltage fluctuation amplitude through the voltage comparison unit and output a sampling signal.
[0046] S504: The current sampling unit performs sampling based on the sampling signal and calculates and obtains a sampling voltage fluctuation amplitude.
[0047] S506: Calculate the path impedance between the battery and the load circuit based on the battery voltage fluctuation amplitude and the sampled voltage fluctuation amplitude through a divider.
[0048] S508: Determine the maximum current output by the battery according to the path impedance.
[0049] In the embodiment of the present application, the above step S508 may include the following steps: The preset minimum voltage of the battery output is obtained, the difference between the internal voltage of the battery and the minimum voltage is calculated, and the maximum current of the battery output is obtained by dividing the difference by the path impedance.
[0050] In one implementation, the preset minimum value of the voltage output by the battery may be an undervoltage protection value of the battery.
[0051] In the embodiment of the present application, the preset minimum voltage value of the battery output is the undervoltage protection value, which can be expressed as follows: ; (8) in, is the minimum voltage output by the battery, Is the undervoltage protection value, undervoltage protection value It can be set as needed, such as 2.4V or 2.5V, etc. The specific value is not limited. Correspondingly, the minimum voltage output by the battery The undervoltage protection value is 2.4V.
[0052] In another implementation, the preset minimum value of the voltage output by the battery may be the product of the second coefficient and the internal voltage of the battery, wherein the second coefficient is the minimum value of the optimal working efficiency of the battery.
[0053] In the embodiment of the present application, the optimal working efficiency of the battery can be expressed by the following formula: ; (9) in, For the working efficiency of the battery, is the current output voltage of the battery (i.e. the current trigger reference voltage of the voltage comparison unit), is the internal voltage of the battery, The minimum value of battery efficiency. It can be set as needed, such as 96%, 97% or 98%, etc. The specific value is not limited. Correspondingly, the second coefficient is the minimum value of the battery working efficiency. If it is 97%, the minimum value of the battery output voltage is .
[0054] In the embodiment of the present application, the internal voltage of the battery It can be determined by the following formula: ; (10) in, is the internal voltage of the battery, is the current output voltage of the battery, is the current sampling voltage, is the sampling resistor in the current sampling unit, is the gain of the amplifier in the current sampling unit, is the path impedance.
[0055] Accordingly, the maximum current output by the battery can be calculated using the following formula: ; (11) in, is the maximum current output by the battery, is the internal voltage of the battery, is the minimum voltage output by the battery, is the path impedance.
[0056] S510: Selecting adjustment parameters for the target load, and improving the performance of the target load based on the maximum current value and the adjustment parameters.
[0057] In the embodiment of the present application, the above step S510 may specifically include: Calculate the current of the target load after the performance is improved according to the adjustment parameters; The current of the target load and the current of other loads are summed to obtain the total current; When the total current is less than or equal to the maximum current, the performance of the target load is improved according to the adjustment parameters.
[0058] Among them, improving performance may include multiple aspects, for example, increasing the operating frequency of the CPU, increasing the brightness and refresh rate of the screen display, etc., without specific limitation.
[0059] In the embodiment of the present application, the electronic device generally includes multiple loads, that is, multiple devices. There is a functional relationship between the operating parameters of each device and the device current. The power consumption model of each device can be shown in Table 1: Table 1
[0060] The current of each device is related to its corresponding parameters. For example, the current of the CPU is related to various frequencies, the current of the screen is related to brightness, screen area, refresh rate and grayscale value, and the current of multimedia is related to volume and number of speakers, etc., which will not be explained in detail here.
[0061] In the embodiment of the present application, the sum of the currents of all loads in the electronic device can be expressed as follows: ; (12) in, is the sum of the currents of all loads, is the CPU current, is the screen current, Current for multimedia.
[0062] In the embodiment of the present application, the above-mentioned target load can be any load among all the loads of the device, such as a CPU or a screen, etc., without specific limitation.
[0063] See also Figure 6 In the embodiment of the present application, the following process can be used to measure the path impedance of the battery, that is, the above steps S502 to S506 can specifically include: Whenever the comparator in the voltage comparison unit is triggered to switch state, the battery voltage fluctuation amplitude is obtained by subtracting the current trigger reference voltage from the previous trigger reference voltage. , update and save the new voltage. Send the sampling instruction to the current sampling unit, the current sampling unit samples the sampling resistor, and uses the current sampling voltage to make a difference with the previous sampling voltage to obtain the sampling voltage fluctuation amplitude. , and then update and save the new adopted voltage. Finally, the divider calculates the path impedance based on the above data and outputs it.
[0064] In the embodiment of the present application, after the current of the target load and the current of other loads are summed to obtain the total current, the following steps may also be included: When the total current is greater than the maximum current, determine the current gear current corresponding to the adjustment parameter among the multiple gear currents preset for the target load, and select the target gear current in descending order after the current gear current until the sum of the target gear current and the currents of other loads is less than or equal to the maximum current; obtain the adjustment parameter corresponding to the target gear current, and improve the performance of the target load according to the obtained adjustment parameter.
[0065] In the embodiment of the present application, for each load in the device, multiple gear currents can be preset to select a suitable gear current to determine the corresponding adjustment parameters. Among them, the gear currents of each load in the device can be shown in Table 2: Table 2
[0066] in, is the highest gear current, The lowest gear current is the current at which each load has multiple gear currents ranging from the highest gear current to the lowest gear current.
[0067] See also Figure 7 In the embodiment of the present application, the process of controlling the load power consumption based on the acquired path impedance may be as follows: Set the minimum voltage output by the battery, calculate the internal voltage of the battery, and calculate the maximum current output by the battery. Set the gear current of the device according to the device (load) power consumption model. To adjust the parameters of a device to improve performance, determine whether the current of the device after parameter adjustment + the current current of other devices is ≤ Imax. If so, perform the device parameter adjustment. Otherwise, select the current that can make the total current of all devices less than Imax among all gear currents of the device. max The highest gear current is set, and the device is adjusted according to the parameters corresponding to the gear current to improve performance.
[0068] The above method provided in the embodiment of the present application obtains the battery voltage fluctuation amplitude and outputs a sampling signal through a voltage comparison unit, calculates the sampling voltage fluctuation amplitude after sampling based on the sampling signal through a current sampling unit, calculates the path impedance between the battery and the load circuit based on the battery voltage fluctuation amplitude and the sampling voltage fluctuation amplitude through a divider, determines the maximum current output by the battery according to the path impedance, selects adjustment parameters for the target load, improves the performance of the target load based on the above current maximum value and adjustment parameters, realizes improving the load performance based on the path impedance, and ensures that the total load current is within the maximum current output of the battery, can avoid power-off and shutdown due to voltage drop, maintain stable operation of the equipment, and improve the battery discharge rate.
[0069] Figure 8 FIG. 1 shows a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 The electronic device 80 may include: the impedance detection circuit 20 provided in the above embodiment, a battery 30 and a power consumption module 40 , and the impedance detection circuit 20 is arranged between the battery 30 and the power consumption module 40 .
[0070] The power consumption module 40 is used to determine the maximum current output by the battery according to the path impedance detected by the impedance detection circuit 20, select adjustment parameters for the target load, and improve the performance of the target load based on the maximum current and the adjustment parameters.
[0071] In one embodiment, the power consumption module 40 is specifically used to determine the maximum current output by the battery based on the path impedance detected by the impedance detection circuit 20, select adjustment parameters for the target load whose performance is to be improved, calculate the current of the target load after the performance is improved based on the adjustment parameters, sum the current of the target load and the current of other loads to obtain a total current, and when the total current is less than or equal to the maximum current, improve the performance of the target load according to the adjustment parameters.
[0072] The function of the impedance detection circuit 20 in the electronic device 80 is the same as that described in the above embodiment. Please refer to the contents of the above embodiment for details, which will not be repeated here.
[0073] The power consumption module 40 can execute the discharge control method provided in the above embodiment. The specific process is described in the method embodiment and will not be repeated here.
[0074] In the embodiment of the present application, the impedance detection circuit 20 can be applied to PMIC (Power Management Integrated Circuits, power management unit). Fig. 9 A schematic diagram of a PMIC application scenario provided by an embodiment of the present application is shown. Fig. 9 As shown, the battery output voltage After the PMIC detects the impedance of the path, it provides power to various devices, including but not limited to: SOC (System on Chip), screen, camera, etc.
[0075] The electronic device provided in the embodiment of the present application can not only realize the dynamic detection of the impedance of the battery power supply path, which is helpful to improve the battery discharge rate and maintain the stable operation of the device, but also the detection of the path impedance is completed by the analog circuit, which has the advantage of high response speed. In addition, based on the path impedance detected by the impedance detection circuit, the performance of the load is controlled, and on the basis of improving the load performance, the total load current is guaranteed to be within the maximum current output by the battery, which can avoid power failure and shutdown due to voltage drop, maintain stable operation of the device, and improve the battery discharge rate.
[0076] See also Fig.10 , is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application. Fig.10As shown, an embodiment of the present application further provides an electronic device 1000, including a processor 1001 and a memory 1002, wherein the memory 1002 stores a program or instruction that can be executed on the processor 1001, and when the program or instruction is executed by the processor 1001, each step of the above-mentioned discharge control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0077] It should be noted that the electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.
[0078] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned discharge control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0079] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0080] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned discharge control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0081] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0082] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned discharge control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0083] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0084] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0085] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An impedance detection circuit, characterized in that: Arranged between the battery and the load circuit, the impedance detection circuit comprises: A voltage comparison unit, comprising a plurality of comparators, wherein a reference voltage is input to a first input terminal of the comparator, a second input terminal of the comparator is connected to the battery, and the reference voltages of the plurality of comparators are different; A current sampling unit, comprising a sampling resistor and an amplifier, wherein two ends of the sampling resistor are respectively connected to the battery and the load circuit, and the current sampling unit is connected to the output end of the voltage comparison unit; A divider, wherein a first input terminal of the divider is connected to an output terminal of the voltage comparison unit, and a second input terminal of the divider is connected to an output terminal of the current sampling unit; When the output voltage of the battery changes, the voltage comparison unit outputs a sampling signal and a battery voltage fluctuation amplitude, the current sampling unit samples and amplifies according to the sampling signal and outputs a sampling voltage fluctuation amplitude, and the divider outputs a path impedance between the battery and the load circuit according to the battery voltage fluctuation amplitude and the sampling voltage fluctuation amplitude.
2. The impedance detection circuit according to claim 1, characterized in that: The comparator is used to determine that the output voltage of the battery has changed when the output level changes, determine the current output voltage of the battery according to the reference voltage of the comparator, calculate the battery voltage fluctuation amplitude according to the current output voltage and the output voltage of the battery when the battery output voltage last changed, and output a sampling signal and the battery voltage fluctuation amplitude; The current sampling unit is used to receive the sampling signal output by the voltage comparison unit, sample the voltage across the sampling resistor and obtain the current sampling voltage after amplification by the amplifier, calculate the sampling voltage fluctuation amplitude according to the current sampling voltage and the previous sampling voltage, and output the sampling voltage fluctuation amplitude; The divider is used to receive the battery voltage fluctuation amplitude output by the voltage comparison unit and the sampled voltage fluctuation amplitude output by the current sampling unit, calculate the path impedance between the battery and the load circuit based on the battery voltage fluctuation amplitude, the sampled voltage fluctuation amplitude and a first coefficient, and output the path impedance, wherein the first coefficient is determined by the parameters of the current sampling unit and the parameters of the divider.
3. The impedance detection circuit according to claim 1, characterized in that: The reference voltages of the plurality of comparators correspond to a first voltage range and a second voltage range, and the highest value of the first voltage range is the lowest value of the second voltage range; The first voltage range includes a plurality of reference voltages whose voltage intervals are all of a first value, wherein each reference voltage corresponds to a comparator; The second voltage range includes a plurality of reference voltages whose voltage intervals are all second values, wherein each reference voltage corresponds to a comparator; Wherein, the first value is higher than the second value.
4. The impedance detection circuit according to claim 1, characterized in that: Each of the plurality of comparators is configured to: The current output voltage of the battery is compared with the reference voltage input by the comparator. If the current output voltage is less than or equal to the reference voltage, a high level is output; if the current output voltage is greater than the reference voltage, a low level is output.
5. The impedance detection circuit according to claim 2, characterized in that: The divider is used to receive the battery voltage fluctuation amplitude output by the voltage comparison unit and the sampled voltage fluctuation amplitude output by the current sampling unit, perform a division operation on the battery voltage fluctuation amplitude and the sampled voltage fluctuation amplitude based on the parameters of the divider, divide the result of the division operation by the first coefficient to obtain the path impedance between the battery and the load circuit, and output the path impedance.
6. The impedance detection circuit according to claim 2 or 5, characterized in that: The divider includes a first resistor, a second resistor and a multiplier, one end of the first resistor is connected to the output end of the voltage comparison unit, one end of the second resistor is connected in series with the first resistor, the other end of the second resistor is connected to the output end of the multiplier, one input end of the multiplier is connected to the output end of the current sampling unit, and the other input end of the multiplier serves as the output end of the divider; The first coefficient is determined by the following formula: ; in, is the first coefficient, is the gain of the amplifier in the current sampling unit, is the sampling resistor in the current sampling unit, is the first resistor, is the second resistor, is the gain of the multiplier.
7. An electronic device, characterized in that: include: A battery, a power consumption module and an impedance detection circuit as claimed in any one of claims 1 to 6, wherein the impedance detection circuit is arranged between the battery and the power consumption module.
8. A discharge control method, applied to electronic equipment, characterized in that: The electronic device comprises a battery, a power consumption module and an impedance detection circuit as claimed in any one of claims 1 to 6, and the method comprises: Obtaining the battery voltage fluctuation amplitude through the voltage comparison unit and outputting a sampling signal; The current sampling unit performs sampling based on the sampling signal and then calculates and obtains a sampling voltage fluctuation amplitude; The path impedance between the battery and the load circuit is calculated by the divider based on the battery voltage fluctuation amplitude and the sampled voltage fluctuation amplitude; Determining the maximum current output by the battery according to the path impedance; An adjustment parameter is selected for a target load, and a performance of the target load is improved based on the maximum current value and the adjustment parameter.
9. The method according to claim 8, characterized in that The improving the performance of the target load based on the maximum current value and the adjustment parameter includes: Calculating the current of the target load after the performance is improved according to the adjustment parameter; Summing the current of the target load and the current of other loads to obtain a total current; When the total current is less than or equal to the maximum current value, the performance of the target load is improved according to the adjustment parameter.
10. The method according to claim 9, characterized in that Also includes: When the total current is greater than the maximum current value, determining a current gear current corresponding to the adjustment parameter from a plurality of preset gear currents; In descending order of gears, the target gear current is selected in sequence after the current gear current until the sum of the target gear current and the current of other loads is less than or equal to the maximum current; An adjustment parameter corresponding to the target gear current is obtained, and the performance of the target load is improved according to the obtained adjustment parameter.
11. The method according to claim 8, characterized in that The step of determining the maximum current output by the battery according to the path impedance includes: Get the preset minimum voltage of the battery output; Calculating a difference between the internal voltage of the battery and the minimum voltage; The maximum current output by the battery is obtained by dividing the difference by the path impedance.
12. The method according to claim 11, characterized in that The minimum voltage output by the battery is the undervoltage protection value of the battery; or, The minimum value of the voltage output by the battery is the product of a second coefficient and the internal voltage of the battery, and the second coefficient is the minimum value of the optimal working efficiency of the battery.
13. The method according to any one of claims 8 to 12, characterized in that: The internal voltage of the battery is determined by the following formula: ; in, is the internal voltage of the battery, is the current output voltage of the battery, is the current sampling voltage, is the sampling resistor in the current sampling unit, is the gain of the amplifier in the current sampling unit, is the path impedance.
Citation Information
Cited By
Backup battery detection method and device, electronic equipment and readable storage medium
CN120870937A