CN114094665B - Power supply circuit and electronic equipment - Google Patents

Power supply circuit and electronic equipment Download PDF

Info

Publication number
CN114094665B
CN114094665B CN202111395472.8A CN202111395472A CN114094665B CN 114094665 B CN114094665 B CN 114094665B CN 202111395472 A CN202111395472 A CN 202111395472A CN 114094665 B CN114094665 B CN 114094665B
Authority
CN
China
Prior art keywords
power supply
control module
module
power
switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111395472.8A
Other languages
Chinese (zh)
Other versions
CN114094665A (en
Inventor
罗勇进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Yaohuo Microelectronics Co Ltd
Original Assignee
Shanghai Yaohuo Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yaohuo Microelectronics Co Ltd filed Critical Shanghai Yaohuo Microelectronics Co Ltd
Priority to CN202111395472.8A priority Critical patent/CN114094665B/en
Publication of CN114094665A publication Critical patent/CN114094665A/en
Application granted granted Critical
Publication of CN114094665B publication Critical patent/CN114094665B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0063Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0092Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring current only
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention provides a power supply circuit and an electronic device, comprising: the device comprises a control module, a first detection module, a target switch, a battery and a charge-discharge switch; the first detection module is connected with the power input pin and the control module; the first detection module is used for: when the input voltage of the power input pin changes beyond a first threshold value, a first signal is fed back to the control module; the target switch is connected between the power input pin and a load; the control module is also connected with the load; the control module is used for: and responding to the first signal to control the target switch to be turned on, and turning off the charge-discharge switch to enter a power consumption current test mode and feeding back a test instruction to the load, wherein the test instruction characterizes that the power consumption current of the load is suitable for being tested currently.

Description

Power supply circuit and electronic equipment
Technical Field
The present invention relates to the field of power supply, and in particular, to a power supply circuit and an electronic device.
Background
At present, there are many portable electronic devices powered by batteries, such as mobile phones, smart watches, smart bracelets, smart glasses, wireless bluetooth headsets, etc., in which the batteries are not detachable, and various faults of the electronic devices inevitably occur during the assembly and use process to cause additional electric leakage, so that the electronic devices need to be tested for power consumption current.
In the related art, an external power source may be used to supply power to a system load of an electronic device instead of a battery in order to test the power consumption current of the system load. After the external power supply is connected with the electronic equipment, the external power supply can send logic signals to a processing circuit in the system load, so that at least one or more signal paths are required to be established between the external power supply and the system load, and one or more signal pins are required to be used correspondingly.
It can be seen that there is a need in the art to add the use of at least one signaling pin to inform the system load into a mode suitable for achieving current drain testing. Further, too many pins are occupied, and the electronic device cannot be applied to the electronic device with limited pins and space.
Disclosure of Invention
The invention provides a power supply circuit and electronic equipment, which are used for solving the problem of occupying too many pins.
According to a first aspect of the present invention, there is provided a power supply circuit comprising: the device comprises a control module, a first detection module, a target switch, a battery and a charge-discharge switch;
the first detection module is connected with the power input pin and the control module;
the first detection module is used for:
when the input voltage of the power input pin changes beyond a first threshold value, a first signal is fed back to the control module;
the target switch is connected between the power input pin and the load, the first end of the charge-discharge switch is directly or indirectly connected to the power input end and the load, and the second end of the charge-discharge switch is connected with the battery;
the control module is configured to control the on-off of the target switch and the charge-discharge switch; the control module is also connected with the load;
the control module is used for:
and responding to the first signal to control the target switch to be turned on, and turning off the charge-discharge switch to enter a power consumption current test mode and feeding back a test instruction to the load, wherein the test instruction characterizes that the power consumption current of the load is suitable for being tested currently.
Optionally, the control module is further configured to:
and when the power consumption current test mode is in, disabling the first detection module.
Optionally, the first detection module includes a first voltage dividing resistor, a second voltage dividing resistor and a first comparator;
the first input end of the first comparator is connected to the power input pin through the first voltage dividing resistor and grounded through the second voltage dividing resistor, the second input end of the first comparator is connected to a first reference voltage corresponding to the first threshold value, and the output end of the first comparator is connected with the control module.
Optionally, the first detection module further comprises a detection control switch;
the detection control switch is connected between the first voltage dividing resistor and the power input pin, and the control end of the detection control switch is connected with the control module;
the control module is further configured to:
and when the power consumption current test mode is adopted, the detection control switch is controlled to be turned off.
Optionally, the power supply circuit further comprises a second detection module;
the second detection module is connected with the power input pin and the control module;
the second detection module is used for:
feeding back a second signal to the control module when the input voltage is below a second threshold; the second threshold is less than the first threshold;
the control module is further configured to:
while in the current consumption test mode, exiting the current consumption test mode in response to the second signal.
Optionally, the second detection module includes a second comparator;
a first input end of the second comparator is connected to the power supply input pin; and a second input end of the second comparator is connected with a second reference voltage corresponding to the second threshold value, and an output end of the second comparator is connected with the control module.
Optionally, the power supply circuit further includes a power supply delivery module, a first end of the power supply delivery module is connected to the power input pin, a second end of the power supply delivery module is connected to the load, and the power supply delivery module is further connected to the battery through the charge-discharge switch; the control module is also connected with the power supply conveying module;
the control module is further configured to:
and when the power consumption current test mode is in, the power supply and transmission module is forbidden to transmit the electric energy of the first end to the second end.
Optionally, the power supply delivery module includes: a buck unit connected between the power input pin and the load, and/or: and a power path switch connected between the power input pin and the load.
Optionally, the first threshold is higher than or equal to an upper limit of a normal operating voltage range of the load.
According to a second aspect of the present invention there is provided an electronic device comprising the power supply circuit of the first aspect and alternatives thereof.
In the power supply circuit and the electronic equipment provided by the invention, the external power supply input pin can be reused, and whether the external power supply is connected or not is actively detected through the change of the input voltage, and under the condition of the external power supply connection, the control module can timely switch on the target switch and switch off the charge-discharge switch, so that the circuit connected with the load can be suitable for executing the power consumption current test, and meanwhile, the load can be timely indicated, so that the load can be informed of the current power consumption current test. In the working process, the load only needs to establish a communication line with the control module, and the communication line is not required to be established externally, so that pins can be effectively saved, and the requirements of electronic equipment which cannot be applied to the pins and has limited space are met.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a schematic diagram of a power supply circuit according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a power supply circuit according to an embodiment of the invention;
fig. 3 is a circuit schematic of a power supply circuit according to an embodiment of the invention.
Reference numerals illustrate:
11-a control module;
12-a first detection module;
13-a target switch;
14-a charge-discharge switch;
15-loading;
16-a second detection module;
17-a power supply delivery module;
bat-cell;
r1 is a first voltage dividing resistor;
r2-a second voltage dividing resistor;
SW 1-target switch;
l1-low dropout linear voltage regulator;
SW 2-charge-discharge switch;
SW 3-detection control switch.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present specification, it should be understood that the directions or positional relationships indicated by the terms "upper", "lower surface", "upper surface", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of description and simplification of description, and do not indicate or imply that the apparatus or element to be referred to must have a specific direction, be configured and operated in a specific direction, and thus should not be construed as limiting the present invention.
In the description of the present specification, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature.
In the description of the present invention, the meaning of "plurality" means a plurality, for example, two, three, four, etc., unless explicitly specified otherwise.
In the description of the present invention, unless explicitly stated and limited otherwise, the term "coupled" and the like should be construed broadly, and may be, for example, fixedly coupled, detachably coupled, or integrally formed; may be mechanically connected, may be electrically connected or may communicate with each other; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
The technical scheme of the invention is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Referring to fig. 1, an embodiment of the present invention provides a power supply circuit, including: a control module 11, a first detection module 12, a target switch 13, a battery Bat and a charge-discharge switch 14.
The first detection module 12 is connected to a power input pin (i.e., VIN pin) and the control module 11; the connection may be direct connection or indirect connection.
The first detection module 12 is configured to:
and when the input voltage of the power supply input pin changes beyond a first threshold value, feeding back a first signal to the control module.
The first threshold may be a value that can indicate whether an external power source has been connected to the external power source; correspondingly, a change beyond the first threshold refers to a change from a voltage less than the first threshold to a change beyond the first threshold. The first detection module 12 may change the signal sent to the control module 11 to the first signal when the change occurs;
in some examples, the first detection module 12 may not feedback the first signal to the control module 11 (e.g. feedback other signals or not feedback any signal) after the change occurs, and in other examples, the first detection module 12 may continue to feedback the first signal to the control module 11 when the input voltage is greater than the first threshold after the change occurs.
The input voltage is understood to be the voltage that is applied via the power input pin (i.e., VIN pin), which is greater than a first threshold when the external power is applied, and which is less than the first threshold when the external power is not applied.
The target switch 13 is connected between the power input pin (i.e., VIN pin) and the load 15, and further, through the on-off variation of the target switch 13, the transmission between the power input pin and the load 15 can be realized. The target switch 13 may be any device or combination of devices capable of being controlled to realize on-off change, for example, may be realized by using a triode, a field effect transistor, etc., or may be realized by any switching circuit. In the example shown in fig. 3, the target switch 13 is the target switch SW1, which may be a low-power switching circuit.
The first end of the charge-discharge switch 14 is directly or indirectly connected to the power input end (i.e., VIN pin) and the load 15, the second end of the charge-discharge switch 14 is connected to the battery Bat, the charge-discharge switch 14 may be specifically connected to the positive electrode of the battery Bat, and when the charge-discharge switch 14 is turned on and the channel between the charge-discharge switch 14 and the power input end is turned on, the battery Bat may be charged by the electric energy delivered from the power input pin, and when the charge-discharge switch 14 is turned on, the electric energy of the battery Bat may also be delivered to the load 15. The objective charge-discharge switch 14 may be any device or combination of devices capable of being controlled to realize on-off change, for example, a triode, a field effect transistor, etc. In the example of the implementation of fig. 3, the charge-discharge switch 14, i.e., the charge-discharge switch SW2, may be implemented using a field effect transistor.
Wherein, the battery Bat can be any device or combination of devices capable of realizing charge and discharge. The number of the batteries Bat may be one or a plurality.
The control module 11 is configured to control on-off of the target switch 13 and the charge-discharge switch 14; in one example, the control module 11 may be connected to the control end of the target switch 13 and the control end of the charge/discharge switch 14, in other examples, the control module 11 may also be connected to the target switch 13 (or the charge/discharge switch 14) through other switching devices, and further, by controlling the on/off of the corresponding switching devices, the pull-up and pull-down of the target switch 13 (or the charge/discharge switch 14) may be implemented, so as to control the on/off of the target switch 13 (or the charge/discharge switch 14), and further, how to implement the control function may not depart from the scope of the embodiments of the present invention.
The control module 11 is also connected to the load 15; in particular, it may be directly or indirectly connected to a data processing unit in the load 15, which may be understood as a circuit unit capable of carrying out a test of the current consumption of the load, and/or: the circuit unit capable of assisting the current consumption test (for example, the data processing unit can adjust the load 15 to a corresponding designated state when the current consumption test is required, where the designated state may be any one of a normal operating state, a low power consumption state, a standby state, a shutdown state, etc.), so as to test the current consumption under the corresponding designated state, and any processing manner of the load 15 suitable for the current consumption test in the art does not depart from the scope of the embodiment of the present invention.
In the embodiment of the present invention, the control module 11 is configured to:
the target switch is controlled to be turned on in response to the first signal, and the charge-discharge switch is turned off to enter a power consumption current test mode and feed back a test instruction to the load;
the test indication characterizes the current consumption of the load currently being tested, and may be fed back digitally or in an analog manner. In one example, the load 15 may enter the specified state in response to a test indication, and the process may be implemented under the control of the data processing unit of the load 15.
The control module 11 may be any device or combination of devices that can be controlled.
The power consumption current test mode of the control module can be understood as: in this mode, the target switch is on and the charge-discharge switch is off, so that the load 15 is adapted to achieve a current consumption test in the case of being supplied with power. It can be seen that entering this current consumption test mode is a necessary condition for performing the current consumption test, and may not be a sufficient condition, namely: the control module may enter, be in, a current drain test mode, whether or not the load 15 does perform the current drain test.
In addition, in the power consumption current test mode, the control module can also realize other control based on the connected device, whether other control is realized or not, and what control is implemented, without departing from the scope of the embodiment of the invention.
Therefore, in the above scheme, under the condition of multiplexing the external power supply input pin, whether an external power supply is connected or not is actively detected through the change of the input voltage, and under the condition of connecting the external power supply, the control module can timely switch on the target switch and switch off the charge-discharge switch, so that a circuit connected with a load can be suitable for executing the power consumption current test, and meanwhile, the load can be timely indicated to learn that the power consumption current test can be executed currently. In the working process, the load only needs to establish a communication line with the control module, and the communication line is not required to be established externally, so that pins can be effectively saved, and the requirements of electronic equipment which cannot be applied to the pins and has limited space are met.
In one embodiment, the control module 11 is further configured to:
when the power consumption current test mode is in, the first detection module is forbidden;
for example, disabling the first detection module may be achieved by on-off control of the corresponding components in the first detection module 12 (e.g., control of the detection control switch SW3 in fig. 3) to avoid the corresponding devices in the first detection module (e.g., the first comparator shown in fig. 3) from acquiring the input voltage;
for another example, disabling the first detection module may be accomplished by enabling (and disabling) control of the corresponding components in the first detection module 12, power control (e.g., controlling whether the first comparator is powered, enabled, etc.);
in addition, the above examples may be alternatively or simultaneously implemented;
in some examples, the connection end connected with the first detection module in the control module can not respond to the signal output by the first detection module;
in the above modes, the disabling of the first detection module is ensured in the power consumption current test mode, and then the first detection module can not participate in the work after the first signal feedback is completed, so that the power consumption is effectively reduced.
For an embodiment of the first detection module, referring to fig. 3, the first detection module 12 includes a first voltage dividing resistor R1, a second voltage dividing resistor R2, and a first comparator C1;
the first input end of the first comparator C1 is connected to the power input pin (i.e., VIN pin) through the first voltage dividing resistor R1, and is grounded through the second voltage dividing resistor R2, the second input end of the first comparator C1 is connected to the first reference voltage Ref 1 corresponding to the first threshold, and the output end of the first comparator C1 is connected to the control module 11.
The first input end of the first comparator C1 may be, for example, an in-phase input end, but not excluding the case of being an inverting input end, if the first input end is an in-phase input end, the second input end is an inverting input end, and if the first input end is an inverting input end, the second input end is an in-phase input end. Correspondingly, the corresponding level only needs to be designed as the first signal in the control module.
In one example, not shown, the first voltage dividing resistor R1 may be directly connected to the VIN pin. In the embodiment shown in fig. 3, the first detection module 12 further includes a detection control switch SW3;
the detection control switch SW3 is connected between the first voltage dividing resistor R1 and the power input pin (i.e. VIN pin), and a control end of the detection control switch SW3 is connected with the control module 11; the detection control switch SW3 may be any device or combination of devices capable of being controlled to realize on-off change, for example, an analog switch.
The control module 11 is further configured to:
and when the power consumption current test mode is adopted, the detection control switch is controlled to be turned off.
Furthermore, under the condition that the detection control switch is turned off, the power consumption generated when the first detection module works can be effectively reduced.
In an embodiment not shown, the input voltage is directly input to the first comparator without using a voltage dividing resistor.
In one embodiment, referring to fig. 2, the power supply circuit further includes a power supply delivery module 17, a first end of the power supply delivery module 17 is connected to the power input pin (i.e. VIN pin), a second end of the power supply delivery module 17 is connected to the load 15, and is further connected to the battery Bat through the charge-discharge switch 14; the control module 11 is also connected to the power supply delivery module 17.
The control module 11 is further configured to:
and when the power consumption current test mode is in, the power supply and transmission module is forbidden to transmit the electric energy of the first end to the second end. It is also understood that the power delivery module is disconnected.
The power supply and transmission module can at least realize: the electric energy transmitted from the VIN pin is transmitted to the second end of the power supply and transmission module, for example, the electric energy can be further transmitted to the load 15, or can be transmitted to the battery Bat to be charged when the charge/discharge switch 14 is turned on. On the basis, the power supply and transmission module can further realize voltage reduction conversion, so that the charging voltage of the battery Bat and the power supply voltage of a load can meet the requirement.
Thus, the power supply delivery module 17 includes: a buck unit connected between the power input pin and the load, and/or: and a power path switch connected between the power input pin and the load.
In the example shown in fig. 3, the step-down unit may be implemented by a low dropout linear regulator L1, or by a switching step-down converter (i.e., a switching step-down charging circuit).
Further, in the case where the power feeding module 17 has been employed, the target switch can be regarded as a low-power-consumption switch which is additionally provided, so that extremely low power consumption can be maintained at the time of the test. The low power consumption switch has low power consumption, and at least meets the following conditions: in the case of a certain input voltage, the power consumption of the target switch when turned on is lower than that of the power supply delivery module 17.
In one embodiment, referring to fig. 2, the power supply circuit further includes a second detection module 16; the second detection module 16 is connected to the power input pin (i.e., VIN pin) and the control module 11;
the second detection module 16 is configured to:
feeding back a second signal to the control module when the input voltage is below a second threshold;
the control module 11 is further configured to:
while in the current consumption test mode, exiting the current consumption test mode in response to the second signal.
The second threshold is less than the first threshold; the second threshold may refer to a voltage value that can indicate whether the external power source has been disconnected (e.g., pulled out). The first threshold and the second threshold may be arbitrarily configured according to requirements, without departing from the scope of the embodiment of the present invention.
Wherein exiting the current consumption test mode can be understood as: as long as at least one control result of the additional current consumption test mode is no longer implemented, it is understood that the current consumption test mode is exited, for example, the specific implementation of exiting the current consumption test mode may include at least one of the following: controlling the charge-discharge switch 14 to be turned on; the control test switch 13 is turned off, but is not limited thereto.
In the scheme, the exit of the power consumption current test mode can be realized in time, and the influence on other normal work of a load, a control module and the like is avoided.
For further example, referring to fig. 3, the second detection module 16 includes a second comparator C2;
a first input end of the second comparator C2 is connected to the power supply input pin; the second input end of the second comparator C2 is connected to a second reference voltage Ref 2 corresponding to the second threshold, and the output end of the second comparator C2 is connected to the control module 11.
The first input end of the second comparator C2 may be, for example, an inverting input end, and is not excluded from being an in-phase input end, if the first input end is an in-phase input end, the second input end is an inverting input end, and if the first input end is an inverting input end, the second input end is an in-phase input end. Correspondingly, the corresponding level only needs to be designed as the above-mentioned second signal in the control module.
In other embodiments, not shown, the first input terminal of the second comparator C2 may be connected to the power input terminal through a voltage dividing resistor, and the specific implementation thereof may be understood by referring to the first comparator C1.
In addition, the first comparator C1 may have a higher precision than the second comparator C2, and further, the first comparator C1 may employ an accurate comparison circuit with relatively high power consumption, and the second comparator C2 may employ a coarse comparison circuit with relatively low power consumption. Therefore, the requirements of detection comparison, detection precision and low power consumption of the circuit are effectively considered.
One implementation of the specific circuitry of the present invention will be described in detail below in conjunction with fig. 3.
When the voltage of the battery Bat is normal and the power consumption current test is not performed on the loaded system, the first comparator C1 (for example, an accurate comparison circuit) is in an effective state, and the detection control switch SW3 is also in a conducting state, so that the power consumption current test of the system is waited to be judged at any time;
at this time, when the voltage (voltage relative to the ground GND) of the VIN pin is connected, the input voltage of the VIN pin is divided by the first voltage dividing resistor R1 and the second voltage dividing resistor R2 (note: the on-resistance of the detection control switch SW3 is small and the resistance value of the first voltage dividing resistor R1 is negligible), and then compared with the first reference voltage Ref 1, if the input voltage of the VIN pin is higher than a certain value, such as 5.5V (but not too high, the too high voltage is intercepted by the overvoltage protection device that may occur, which is why an accurate comparison circuit is needed, not described here), then: the accurate comparison circuit outputs a high level, namely, the control module is informed to enter a power consumption current test mode of an external power supply for replacing a battery to supply power to a system of the load, at the moment, the load 15 can also know a specified state of the power consumption current test through signal interaction with the control module, and the system of the load can be shut down or stand by according to preset settings or keep the working state unchanged so as to test the current under the corresponding working state by matching with the external power supply.
The specific description is as follows: the first voltage dividing resistor R1 and the second voltage dividing resistor R2 of the circuit can adopt resistors with higher precision, and the first reference voltage Ref 1 is also a reference voltage with higher precision.
By setting the values of the first voltage dividing resistor R1, the second voltage dividing resistor R2 and the first reference voltage Ref 1, the input voltage of the VIN pin can be output to be at a logic low level when the electronic product is in the normal required external power supply voltage range (for example, vin=5.0v +/-0.25V), and the electronic device is in a normal working mode after the external power supply is plugged in, for example, a normal working mode such as a power supply or charging mode under the control of the control module. When the input voltage of VIN is greater than the normal operating voltage range of the external power supply, for example, when the input voltage of VIN is equal to 5.5V, the first comparator C1 outputs a logic high level, so that the control module starts the electronic product to enter a mode in which the external power supply replaces the battery to supply power to the system to test the power consumption current of the system (can be understood as a test mode, when the external power supply needs to enter a mode in which the external power supply replaces the battery to supply power to the system to test the power consumption current of the system, the control module 11 turns on the low-power-consumption switch (i.e., the target switch SW 1), disables the low-dropout linear voltage regulator L1 and controls the charge-discharge switch SW2 to disconnect the power supply of the battery Bat to the load (i.e., the VSYS end of the load), and also turns off the detection control switch SW3 and disables the accurate comparison circuit (i.e., the first comparator C1), wherein after the electronic product is judged to enter the power consumption current test mode, the accurate comparison circuit (i.e., the first comparator C1) and turns off the detection control switch SW3 to greatly reduce the power consumption current of the electronic product, and the rough comparison circuit (i.e., the second comparator C2) is in an operating state, when the external power consumption voltage of the external power supply exits from the external power supply, for example, the voltage of the input voltage of the VIN 2 is known as the reference voltage of the input voltage of the VIN 2 is about higher than the voltage of the test voltage of the input voltage of the VIN.
In summary, in the above scheme, the voltage of the VIN pin is multiplexed to a specific voltage slightly exceeding the normal operating voltage (for example, at this time, 5.5V < VIN < 5.6V), so that the electronic product is in a mode that an external power source replaces a battery to supply power to the system to test the power consumption current of the system, and in this mode, the power consumption current of the low-power switch (i.e., the target switch SW 1) and the low-power rough comparator circuit (i.e., the second comparator C2) is very small, and the control module can also be very low, so that the total power consumption of the control module can be controlled to be less than about 1 uA. Therefore, in the working process, the power consumption current of the load of the electronic product system is tested by using the auxiliary control circuit without adding an extra control pin and with extremely low power consumption current so as to judge whether the system has a fault state or not.
Under the above working process, at least the following positive effects can be achieved:
1. based on the practical application requirement, the invention multiplexes VIN pin to access a special voltage slightly exceeding the normal working voltage (for example, VIN is less than 5.5V and less than 5.6V), namely: when the voltage is higher than the first threshold, the low-power-consumption switch (namely the target switch SW 1) is turned on to enable the voltage to be transmitted in, so that the electronic product can be in a mode that an external power supply replaces a battery to supply power to the system so as to test the power consumption current of the system, and the voltage value is a judging mark for entering the current test mode and is also used for testing the current. Thereby saving pins of the interface.
2. A low-power switch (i.e. the target switch SW 1) is added in parallel with the low-dropout linear regulator L1, and the purpose is that: the auxiliary control circuit can be kept extremely low in power consumption (by turning off the low dropout linear regulator and only turning on the low power consumption switch) during current test.
3. Two comparison circuits (namely a first comparator C1 adopting a fine comparison circuit and a second comparator C2 adopting a coarse comparison circuit) and a detection control switch SW3 are added, the accurate comparison circuit for comparing power consumption is disabled after entering a current test mode so as to save power, the detection control switch SW3 is turned off, namely the electric leakage of a VIN pin to the ground through a first voltage dividing resistor R1 and a second voltage dividing resistor R2 can be omitted, and then the coarse comparison circuit with extremely low power consumption (namely the second comparator C2) is used for judging that the current test mode is exited.
In view of this, it should be noted that, in some schemes, the control module and the low dropout linear regulator used in the power supply circuit are not designed with low power consumption, and at present, the scheme is basically implemented as a charging chip with power path management, and the charging chip is not considered to test the application scenario of the power consumption current of the rear end under the condition of extremely low power consumption (extremely low self power consumption current) at the beginning of the design, for example, in order to meet the parameter performance of the low dropout linear regulator, the self static power consumption of the low dropout linear regulator often has several uA to tens of uA unequal. Therefore, errors can be large when the system shutdown power consumption current of some common electronic products is tested, for example, the normal shutdown power consumption of many wireless Bluetooth headsets can be only a few uA, and the specific scheme of the invention introduces various alternatives to realize the reduction of the power consumption.
The embodiment of the invention also provides electronic equipment, which comprises the power supply circuit.
The electronic device may, for example, be any one of (and not limited to): cell-phone, intelligent wrist-watch, intelligent bracelet, intelligent glasses, wireless bluetooth headset etc..
In the description of the present specification, the descriptions of the terms "one embodiment," "an embodiment," "a particular implementation," "an example," and the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (8)

1. A power supply circuit, comprising: the device comprises a control module, a first detection module, a target switch, a battery and a charge-discharge switch;
the first detection module is connected with the power input pin and the control module;
the first detection module is used for:
when the input voltage of the power input pin changes beyond a first threshold value, a first signal is fed back to the control module;
the target switch is connected between the power input pin and the load, the first end of the charge-discharge switch is directly or indirectly connected to the power input end and the load, and the second end of the charge-discharge switch is connected with the battery;
the control module is configured to control the on-off of the target switch and the charge-discharge switch; the control module is also connected with the load;
the control module is used for:
controlling the target switch to be turned on in response to the first signal, and turning off the charge-discharge switch to enter a power consumption current test mode and feeding back a test instruction to the load, wherein the test instruction characterizes that the power consumption current of the load is suitable for being tested currently;
the power supply device further comprises a power supply conveying module, wherein a first end of the power supply conveying module is connected with the power supply input pin, a second end of the power supply conveying module is connected with the load, and the power supply conveying module is connected with the battery through the charge-discharge switch; the control module is also connected with the power supply conveying module;
the control module is further configured to:
when the power consumption current test mode is in, the power supply and transmission module is forbidden to transmit the electric energy of the first end to the second end;
the power supply delivery module includes: a buck unit connected between the power input pin and the load, and/or: and a power path switch connected between the power input pin and the load.
2. The power supply circuit of claim 1, wherein the power supply circuit comprises a power supply circuit,
the control module is further configured to:
and when the power consumption current test mode is in, disabling the first detection module.
3. The power supply circuit of claim 1, wherein the first detection module comprises a first voltage dividing resistor, a second voltage dividing resistor, and a first comparator;
the first input end of the first comparator is connected to the power input pin through the first voltage dividing resistor and grounded through the second voltage dividing resistor, the second input end of the first comparator is connected to a first reference voltage corresponding to the first threshold value, and the output end of the first comparator is connected with the control module.
4. The power supply circuit of claim 3, wherein the first detection module further comprises a detection control switch;
the detection control switch is connected between the first voltage dividing resistor and the power input pin, and the control end of the detection control switch is connected with the control module;
the control module is further configured to:
and when the power consumption current test mode is adopted, the detection control switch is controlled to be turned off.
5. The power supply circuit of any one of claims 1 to 4, further comprising a second detection module;
the second detection module is connected with the power input pin and the control module;
the second detection module is used for:
feeding back a second signal to the control module when the input voltage is below a second threshold; the second threshold is less than the first threshold;
the control module is further configured to:
while in the current consumption test mode, exiting the current consumption test mode in response to the second signal.
6. The power supply circuit of claim 5, wherein the second detection module comprises a second comparator;
a first input end of the second comparator is connected to the power supply input pin; and a second input end of the second comparator is connected with a second reference voltage corresponding to the second threshold value, and an output end of the second comparator is connected with the control module.
7. The power supply circuit according to any one of claims 1 to 4, wherein the first threshold value is higher than or equal to an upper limit value of a normal operation voltage range of the load.
8. An electronic device comprising the power supply circuit of any one of claims 1 to 7.
CN202111395472.8A 2021-11-23 2021-11-23 Power supply circuit and electronic equipment Active CN114094665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111395472.8A CN114094665B (en) 2021-11-23 2021-11-23 Power supply circuit and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111395472.8A CN114094665B (en) 2021-11-23 2021-11-23 Power supply circuit and electronic equipment

Publications (2)

Publication Number Publication Date
CN114094665A CN114094665A (en) 2022-02-25
CN114094665B true CN114094665B (en) 2023-05-09

Family

ID=80303252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111395472.8A Active CN114094665B (en) 2021-11-23 2021-11-23 Power supply circuit and electronic equipment

Country Status (1)

Country Link
CN (1) CN114094665B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114465332B (en) * 2022-04-14 2022-07-22 珠海智融科技股份有限公司 Power supply switching system and method for wired charging and wireless charging

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012194183A (en) * 2012-05-25 2012-10-11 Fujitsu Ltd Semiconductor device
US9397685B1 (en) * 2015-07-23 2016-07-19 Texas Instruments Incorporated Sensor with low power model based feature extractor
CN106443252A (en) * 2016-09-20 2017-02-22 无锡力芯微电子股份有限公司 Test circuit for power supply detection of mobile device system and mobile device system
CN107884619A (en) * 2017-11-02 2018-04-06 广东欧珀移动通信有限公司 Load power consumption test system and method, mobile terminal
CN107942125A (en) * 2018-01-03 2018-04-20 硕诺科技(深圳)有限公司 In-built electrical pool electronic product uses electrical test circuit and its control method
CN208636408U (en) * 2018-06-15 2019-03-22 Oppo广东移动通信有限公司 Test circuit and test macro
WO2021171769A1 (en) * 2020-02-25 2021-09-02 ローム株式会社 Dc/dc converter control circuit and power supply circuit
CN214375036U (en) * 2020-11-18 2021-10-08 深圳市万普拉斯科技有限公司 Mobile device test system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4308855B2 (en) * 2007-01-17 2009-08-05 セイコーエプソン株式会社 Power reception control device, power reception device, and electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012194183A (en) * 2012-05-25 2012-10-11 Fujitsu Ltd Semiconductor device
US9397685B1 (en) * 2015-07-23 2016-07-19 Texas Instruments Incorporated Sensor with low power model based feature extractor
CN106443252A (en) * 2016-09-20 2017-02-22 无锡力芯微电子股份有限公司 Test circuit for power supply detection of mobile device system and mobile device system
CN107884619A (en) * 2017-11-02 2018-04-06 广东欧珀移动通信有限公司 Load power consumption test system and method, mobile terminal
CN107942125A (en) * 2018-01-03 2018-04-20 硕诺科技(深圳)有限公司 In-built electrical pool electronic product uses electrical test circuit and its control method
CN208636408U (en) * 2018-06-15 2019-03-22 Oppo广东移动通信有限公司 Test circuit and test macro
WO2021171769A1 (en) * 2020-02-25 2021-09-02 ローム株式会社 Dc/dc converter control circuit and power supply circuit
CN214375036U (en) * 2020-11-18 2021-10-08 深圳市万普拉斯科技有限公司 Mobile device test system

Also Published As

Publication number Publication date
CN114094665A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
JP6596447B2 (en) Power feeding device and control circuit thereof, power receiving device and control circuit thereof, electronic device and charging adapter using the same, and abnormality detection method
US6507173B1 (en) Single chip power management unit apparatus and method
EP2528186B1 (en) Management device for charging circuit and wireless terminal
US8159187B2 (en) Charging circuit for secondary battery
KR101102731B1 (en) Battery charging and discharging apparatus and method
JP2018121516A (en) Controlling power delivery to battery
CN105429279A (en) Power supply system and power supply method for electric equipment
CN114094665B (en) Power supply circuit and electronic equipment
CN108011415B (en) Power management unit chip integrated with battery protection
JP4221665B2 (en) Mobile terminal device
CN101931255A (en) Charging management circuit
US10658850B2 (en) Battery module and battery system having the same
CN113852147B (en) Power supply device of display screen and electronic equipment
JP7424392B2 (en) Battery packs and electrical equipment systems
CN114172218B (en) Electronic equipment, charging device, control method and communication system
US9166436B2 (en) Portable electronic apparatus and charging apparatus
CN112531832A (en) Charging path management circuit and device
CN111463853A (en) Power supply circuit and robot apparatus
CN110597375A (en) External equipment power supply device
CN220914981U (en) Charging circuit, power supply device and vehicle of nickel-hydrogen battery pack
CN218633430U (en) Mobile terminal
CN216872869U (en) Charging and discharging control circuit of standby battery and vehicle-mounted unit
EP4231486A1 (en) Current consumption control device and battery management device comprising same
CN215733590U (en) Charge and discharge control device, semiconductor chip, battery management system and electric equipment
JPH07334257A (en) Battery pack

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant