CN109950939B - Charger state detection circuit, device circuit, and charger state detection method - Google Patents

Charger state detection circuit, device circuit, and charger state detection method Download PDF

Info

Publication number
CN109950939B
CN109950939B CN201711383934.8A CN201711383934A CN109950939B CN 109950939 B CN109950939 B CN 109950939B CN 201711383934 A CN201711383934 A CN 201711383934A CN 109950939 B CN109950939 B CN 109950939B
Authority
CN
China
Prior art keywords
electronic switch
charger
circuit
voltage
output
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
CN201711383934.8A
Other languages
Chinese (zh)
Other versions
CN109950939A (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.)
Actions Technology Co Ltd
Original Assignee
Actions Technology 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 Actions Technology Co Ltd filed Critical Actions Technology Co Ltd
Priority to CN201711383934.8A priority Critical patent/CN109950939B/en
Publication of CN109950939A publication Critical patent/CN109950939A/en
Application granted granted Critical
Publication of CN109950939B publication Critical patent/CN109950939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application discloses a charger state detection circuit, a device circuit and a charger state detection method. The application provides a charger state detection circuitry includes: the device comprises a current source circuit, an electronic switch control circuit and a voltage detection circuit; the input end of the current source circuit is connected with an equipment charger interface through the electronic switch, and the output end of the current source circuit is grounded; the input end of the electronic switch control circuit is connected with the output end of the voltage detection circuit, the output end of the electronic switch control circuit is connected with the electronic switch, and the electronic switch control circuit is used for outputting a control signal to the electronic switch according to the output of the voltage detection circuit; the voltage detection circuit is used for detecting the voltage of the equipment charger interface.

Description

Charger state detection circuit, device circuit, and charger state detection method
Technical Field
The invention relates to the technical field of power supplies, in particular to a charger state detection circuit, a device circuit and a charger state detection method.
Background
Handheld multimedia devices typically have a charger interface to which a charger may be connected to charge the handheld multimedia device. According to the change of the charger state of the handheld multimedia device, corresponding operations may need to be triggered, for example, when the charger is connected to the charger interface, a charger insertion prompt needs to be performed and a screen needs to be lightened.
In order to detect the state change of the charger quickly, one current practice is to connect a resistor in parallel to the ground at the charger end, as shown in fig. 1, so as to increase the discharge current and speed up the detection of the state of the charger. For example, when the charger voltage is 5V, the charger is considered to be pulled out only when the voltage detection circuit detects that the voltage of the charger interface is lower than 4V or the voltage reduction reaches 1V, if the capacitor capacitance is 100uF, the resistance value of the resistor is 50k ohm (corresponding to 100uA of current), the power consumption current of the system power consumption circuit in the low power consumption mode is 10uA, the power consumption of the charging circuit and the voltage detection circuit are both nA level, and can be ignored, according to the basic electrical formula
Figure BDA0001516181490000011
The time period from the removal of the charger to the detection of the reduction of the charger interface voltage reaching 1V by the voltage detection circuit is
Figure BDA0001516181490000012
However, since a resistor with a resistance of 50k ohms is introduced at the charger end, an extra current consumption of 100uA is caused, that is, a power consumption 10 times that of a "system power consumption circuit" is caused, and the standby power consumption of the device per unit time of 1s is about Q ═ i ═ t ═ 10uA +100uA ═ 1s ═ 110 uAs.
If it is desired to shorten the detection period of the state change of the charger, the resistance of the resistor needs to be smaller, and the corresponding extra consumed current is larger, so that the power consumption is larger, and the purpose of low power consumption standby may not be achieved.
Disclosure of Invention
The embodiment of the application provides a charger state detection circuit, a device circuit and a charger state detection method.
In a first aspect, a charger status detection circuit is provided, including: the device comprises a current source circuit, an electronic switch control circuit and a voltage detection circuit;
the input end of the current source circuit is connected with an equipment charger interface through the electronic switch, and the output end of the current source circuit is grounded;
the input end of the electronic switch control circuit is connected with the output end of the voltage detection circuit, the output end of the electronic switch control circuit is connected with the electronic switch, and the electronic switch control circuit is used for outputting a control signal to the electronic switch according to the output of the voltage detection circuit;
the voltage detection circuit is used for detecting the voltage of the equipment charger interface.
Optionally, the electronic switch control circuit is specifically configured to: after judging that the equipment charger interface is connected with a charger according to the output of the voltage detection circuit, outputting a control signal to the electronic switch according to a set detection period; the electronic switch is switched on by a first control signal output by the electronic switch control circuit in the first time period, and the electronic switch is switched off by a second control signal output by the electronic switch control circuit in the second time period.
Optionally, the electronic switch control circuit is specifically configured to: after the device charger interface is judged to be connected to a charger according to the output of the voltage detection circuit, and after the detection period is started, a first control signal is output to control the electronic switch to be in a closed state, and whether the voltage reduction amount of the voltage of the device charger interface in a first time period is larger than or equal to a first voltage threshold value or not is judged according to the output of the voltage detection circuit within the first time period when the electronic switch is in the closed state; wherein the first time length is less than the time length required for detecting that the charger is pulled out from the equipment charger interface;
if so, after the first time period, when the voltage reduction amount of the equipment charger interface is judged to be larger than or equal to a second voltage threshold value according to the output of the voltage detection circuit, determining that the charger is pulled out of the equipment charger interface, and outputting a second control signal to control the electronic switch to be in a disconnected state and keep the electronic switch in the disconnected state until the equipment charger interface is judged to be connected into the charger according to the output of the voltage detection circuit; otherwise, outputting the second control signal to control the electronic switch to be in a disconnected state, and entering a next detection period after the current detection period is finished; wherein the second voltage threshold is greater than the first voltage threshold.
Optionally, the electronic switch control circuit is further configured to:
after the detection period is started, judging that the voltage reduction of the device charger interface in the first time length is greater than or equal to a first voltage threshold, but not judging that the voltage reduction of the device charger interface in a second time length after the first time length is greater than or equal to a second voltage threshold according to the output of the voltage detection circuit, and outputting a second control signal to control the electronic switch to be in a disconnected state and enter the next detection period after the current detection period is finished; and the sum of the second time length and the first time length is more than or equal to the time length required for detecting that the charger is pulled out from the equipment charger interface, but is less than the time length of one detection period.
Optionally, the current source circuit comprises: a current source or a resistor.
In a second aspect, an equipment circuit is provided, where the equipment circuit includes the charger state detection circuit of any one of the above first aspects, and the equipment charger interface is further connected with a system power consumption circuit and a charging circuit.
In a third aspect, a charger state detection method is provided, which is applied to a charger state detection circuit comprising a current source circuit, an electronic switch control circuit and a voltage detection circuit, wherein an input end of the current source circuit is connected with an equipment charger interface through the electronic switch, an output end of the current source circuit is grounded, an input end of the electronic switch control circuit is connected with an output end of the voltage detection circuit, and an output end of the electronic switch control circuit is connected with the electronic switch;
The method comprises the following steps:
the electronic switch control circuit judges whether the equipment charger interface is connected with a charger or not according to the output of the voltage detection circuit;
if yes, outputting a control signal to the electronic switch according to a set detection period; the electronic switch is switched on by a first control signal output by the electronic switch control circuit in the first time period, and the electronic switch is switched off by a second control signal output by the electronic switch control circuit in the second time period.
Optionally, the outputting a control signal to the electronic switch according to a set detection period includes:
after a detection period is started, the electronic switch control circuit outputs a first control signal to control the electronic switch to be in a closed state and judge whether the voltage reduction amount of the voltage of the equipment charger interface in a first time period when the electronic switch is in the closed state is larger than or equal to a first voltage threshold value or not according to the output of the voltage detection circuit; wherein the first time length is less than the time length required for detecting that the charger is pulled out from the equipment charger interface;
If so, after the first duration, when the voltage reduction of the equipment charger interface is judged to be greater than or equal to a second voltage threshold according to the output of the voltage detection circuit, the charger is determined to be pulled out of the equipment charger interface, the second control signal is output to control the electronic switch to be in a disconnected state and keep the electronic switch in the disconnected state, and the equipment charger interface is judged to be connected into the charger according to the output of the voltage detection circuit; otherwise, outputting the second control signal to control the electronic switch to be in a disconnected state, and entering a next detection period after the current detection period is finished; wherein the second voltage threshold is greater than the first voltage threshold.
Optionally, the method further comprises:
after the detection period is started, judging that the voltage reduction of the device charger interface in the first time length is greater than or equal to a first voltage threshold, but not judging that the voltage reduction of the device charger interface in a second time length after the first time length is greater than or equal to a second voltage threshold according to the output of the voltage detection circuit, and outputting a second control signal to control the electronic switch to be in a disconnected state and enter the next detection period after the current detection period is finished; and the sum of the second time length and the first time length is more than or equal to the time length required for detecting that the charger is pulled out from the equipment charger interface, but is less than the time length of one detection period.
In the above embodiment of the present application, a current source circuit, an electronic switch, and an electronic switch control circuit are introduced, an input terminal of the current source circuit is connected to an equipment charger interface through the electronic switch, and an output terminal thereof is grounded; the input end of the electronic switch control circuit is connected with the output end of the voltage detection circuit, and the output end of the electronic switch control circuit is connected with the electronic switch, so that the electronic switch control circuit outputs a control signal to the electronic switch according to the output of the voltage detection circuit. Because the current source circuit passes through electronic switch and equipment charger interface connection, and electronic switch receives electronic switch control circuit's control to carry out closure or disconnection, can make current source circuit not always with the equipment interface connection that charges like this to compare with always with equipment charger interface connection, can reduce extra current consumption, and then reduce the consumption. On the other hand, the introduction of the current source circuit can reduce the time length of the detection of the state of the device charging interface compared with the absence of the current source circuit.
Drawings
FIG. 1 is a schematic diagram of a circuit related to a charger in the prior art;
fig. 2A and fig. 2B are schematic diagrams of a charger status detection circuit according to an embodiment of the present disclosure, respectively;
Fig. 3 is a schematic diagram of a charger state detection process according to an embodiment of the present application.
Detailed Description
The electronic switch and the electronic switch control circuit are introduced into the charger state detection circuit to control the current source circuit to discharge the charger, so that the charger current is prevented from being continuously consumed in a low power consumption mode, and the purpose of reducing power consumption is achieved.
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2A, a charger state detection circuit 20 according to an embodiment of the present application is provided. The circuit configuration shown in the figure is a logical configuration of a circuit, and a component connection structure inside the circuit is not shown in the figure.
As shown, the charger state detection circuit includes: a current source circuit 21, an electronic switch 22, an electronic switch control circuit 23, and a voltage detection circuit 24.
The input of the current source circuit 21 is connected to the device charger interface 25 via the electronic switch 22, and the output of the current source circuit 21 is grounded.
The input end of the electronic switch control circuit 23 is connected with the output end of the voltage detection circuit 24, the output end of the electronic switch control circuit 23 is connected with the electronic switch 22, and the electronic switch control circuit 23 is used for outputting a control signal to the electronic switch 22 according to the output of the voltage detection circuit 24.
The voltage detection circuit 24 is used to detect the voltage of the device charger interface 25.
In the above-described charger state detection circuit 20, the device charger interface 25 may be connected to the system power consumption circuit 30 and to the charging circuit 40. The structure of the off-chip circuitry connected to the device charger interface 25 may be as shown.
In the charger state detection circuit 20 described above, the current source circuit 21 may be a current source or a resistor.
In the above-mentioned charger state detection circuit 20, the electronic switch 22 may be a transistor or the like, and the transistor includes a field effect transistor. The field effect transistor can be a PMOS field effect transistor or an NMOS field effect transistor.
The charger state detection circuit 20 shown in fig. 2A may be a component of an integrated circuit inside the device, and only the logical connection relationship of the circuits is shown in the figure.
In the charger state detection circuit 20, the electronic switch control circuit 23 may output a control signal to the electronic switch 22 according to a set detection period to control the on/off of the electronic switch 22.
Optionally, as shown in fig. 2B, the charger status detecting circuit 20 may further include a clock period circuit 25 for generating a clock signal, such as a pulse signal, according to a detection period length, which is one clock period length. Electronic switch control circuit 23 is connected to clock cycle circuit 25 to obtain the clock signal generated by clock cycle circuit 25.
Specifically, the electronic switch control circuit 23 may start a detection process in which a control signal is output to the electronic switch 22 in a set detection period after determining that the device charger interface 25 is connected to the charger based on the output of the voltage detection circuit 24. The length of the detection period can be flexibly configured according to human experience. For example, it may be set to 1s or less, for example, 500 ms. The length of one detection period is longer than the time required to detect the removal of the charger from the device charger interface 25, for example, in the case where 50ms is required to detect the removal of the charger from the device charger interface 25, the length of one detection period may be set to 500 ms. One detection cycle may include a first period during which the electronic switch 22 is closed by a first control signal output by the electronic switch control circuit 23 and a second period; in the second period, the electronic switch 22 is turned off by the second control signal output from the electronic switch control circuit 23.
Fig. 3 shows a process of detecting the charger state by the above-described charger state detection circuit 20. As shown, the process may include:
s301: after a detection period is started, the electronic switch control circuit 23 outputs a first control signal, and the electronic switch 22 is closed according to the first control signal, so that the current source circuit 21 is connected to the device charger interface 25. When the current source circuit 21 is connected to the device charger interface 25, the voltage of the device charger interface is pulled down.
S302: during the first time period when the electronic switch 22 is in the closed state, the electronic switch control circuit 23 determines whether the voltage decrease amount of the voltage of the device charger interface 25 during the first time period is greater than or equal to the first voltage threshold according to the output of the voltage detection circuit 24, if so, the process proceeds to S303, otherwise, the process proceeds to S304.
Wherein the first time period may be preset. The first time period may be a shorter time period less than the time period required to detect the removal of the charger from the device charger interface 25. For example, in the case where 50ms is required to detect the removal of the charger from the device charger interface 25, the first period of time may be set to 5 ms.
In the embodiment of the present application, a first voltage threshold and a second voltage threshold may be preset, where the first voltage threshold is smaller than the second voltage threshold. If the electronic switch control circuit 23 determines, according to the output of the voltage detection circuit 24, that the voltage decrease of the device charger interface 25 is equal to or greater than the first voltage threshold value within the first time period, it may be considered that there is a possibility that the charger is pulled out from the device charger interface 25, the electronic switch 22 is continuously maintained in the closed state, and thereafter, if the electronic switch control circuit 23 determines, according to the output of the voltage detection circuit 24, that the voltage decrease of the device charger interface 25 is equal to or greater than the second voltage threshold value, it may be considered that the charger is pulled out from the device charger interface 25.
S303: in the case of maintaining the closed state of the electronic switch, the electronic switch control circuit 23 determines that the charger is pulled out from the device charger interface 25 when determining that the voltage reduction amount of the device charger interface 25 is equal to or greater than the second voltage threshold value according to the output of the voltage detection circuit 24, and outputs a second control signal so that the electronic switch 22 disconnects the connection between the current source circuit 21 and the device charger interface 25 according to the second control signal, and maintains the electronic switch in the disconnected state until determining that the device charger interface 25 is connected to the charger according to the output of the voltage detection circuit.
In this step, after the current source circuit 21 is disconnected from the device charger interface 25, the current source circuit 21 does not consume any extra current, i.e., does not bring extra power consumption.
S304: the electronic switch control circuit 23 outputs a second control signal and enters the next detection period after the current detection period is finished.
In the above-described flow, if it is detected in S302 that the voltage decrease amount of the device charger interface 25 in the first time period is equal to or greater than the first voltage threshold, then normally, such a detection result is caused by the charger being pulled out from the device charger interface 25, and therefore, in S303, it may be detected that the voltage decrease amount of the device charger interface 25 in the certain time period is equal to or greater than the second voltage threshold.
In practical applications, it is also possible that the voltage decrease of the device charger interface 25 in the first time period is detected to be greater than or equal to the first voltage threshold in S302 due to other reasons, and the voltage decrease of the device charger interface 25 in S303 is not detected to be greater than or equal to the second voltage threshold (for example, the charger is not actually pulled out from the device charger interface 25, but the voltage decrease greater than the first voltage threshold is detected in the first time period due to the mains voltage fluctuation and the like). In view of this situation, in the embodiment of the present application, if in S303, the electronic switch control circuit 23 does not detect that the voltage decrease amount of the device charger interface 25 is greater than or equal to the second voltage threshold in the second time period after the first time period according to the output of the voltage detection circuit 24, the electronic switch 22 is controlled to be in the off state, and the state is maintained until the next detection period is entered after the end of the current detection period. And the sum of the first time length and the second time length is more than or equal to the time length required for detecting that the charger is pulled out from the equipment charger interface, but is less than the length of one detection period. Alternatively, the second duration may be set to be equal to or slightly longer than the duration required to detect the charger being unplugged from the device charger interface, such as 60ms in the above example.
The above embodiments of the present application incorporate a current source circuit as well as an electronic switch and an electronic switch control circuit. The input end of the electronic switch control circuit is connected with the output end of the voltage detection circuit, and the output end of the electronic switch control circuit is connected with the electronic switch, so that the electronic switch control circuit outputs a control signal to the electronic switch according to the output of the voltage detection circuit. Because the current source circuit passes through electronic switch and the interface connection that charges of equipment, and electronic switch receives electronic switch control circuit's control to carry out the closure or disconnection, can make current source circuit not always be connected with the interface connection that charges of equipment like this to compare with always charging the interface connection with equipment, can reduce extra current consumption, and then reduce the consumption. On the other hand, the introduction of the current source circuit can reduce the time length of the detection of the state of the device charging interface compared with the absence of the current source circuit.
Based on the charger state detection circuit, whether the charger is pulled out can be detected in a short time by selecting appropriate component parameters and/or detection period related parameters, the power consumption of equipment can be low, and the low-power-consumption working state can be really kept under the condition that the charger is charged.
The following describes an embodiment of the present application with a specific example.
In this example, the charger voltage is 5V, the capacitor capacitance in the off-chip circuit is 100uF, the current source circuit 21 is a resistor with a resistance equal to 2.5K ohms (corresponding to a current of 2 mA), the detection period is 500ms, the first duration is 5ms, the first voltage threshold is 0.2V, and the second voltage threshold is 1V. In the low power consumption standby mode, the power consumption of the system power consumption circuit 30 of the device is 10 uA.
At time t0, when the voltage detection circuit 24 detects that the voltage of the device charger interface 25 is greater than 4.75V, it is determined that a charger is plugged into the device charger interface 25. The electronic switch control circuit 23 outputs a high level according to the output of the voltage detection circuit 24, and the electronic switch 22 is turned on (in this example, the electronic switch 22 is in an on state at the high level and in an off state at the low level), so that the resistor 21 is connected to the device charger interface 25.
Thereafter, within 5ms (i.e., within the first period), the electronic switch control circuit 23 keeps outputting the high level, and the electronic switch 22 keeps the on state. During this period, the electronic switch control circuit 23 determines whether or not the amount of voltage reduction of the device charger interface 25 is equal to or greater than 0.2V (i.e., the first voltage threshold) based on the output of the voltage detection circuit 24. In this example, the charger is not unplugged from the device charger interface 25, and thus the electronic switch control circuit 23 does not detect that the voltage reduction of the device charger interface 25 is greater than or equal to 0.2V during this time period.
After a lapse of 5ms (i.e., the first duration), the electronic switch control circuit 23 outputs a low level and remains for 455ms, within which 455ms the electronic switch 22 is turned off so that the resistor 21 is disconnected from the device charger interface 25 port.
After 455ms above, the next sensing period is started, and in the new sensing period, the electronic switch control circuit 23 outputs high and remains at 5 ms. Within this 5ms, the electronic switch 22 is turned on so that the resistor 21 is connected to the device charger interface 25, and the electronic switch control circuit 23 determines, based on the output of the voltage detection circuit 24, that the voltage decrease of the device charger interface 25 is greater than 0.2V (the charger is pulled out from the device charger interface within 455ms of the previous cycle or within the first 5ms of the present cycle), then the electronic switch control circuit 23 continues to keep outputting the high level until, based on the output of the voltage detection circuit 24, it is determined that the voltage decrease of the device charger interface 25 is greater than 1V, it is determined that the charger is pulled out, and at this time, the low level is output to turn off the electronic switch 22, thereby disconnecting the resistor 21 from the device charger interface 25.
In this example, based on the underlying electrical formula
Figure BDA0001516181490000101
The length of time from when the charger is pulled out to when the voltage detection circuit detects that the reduction amount of the voltage of the charging interface reaches 1V is about:
Figure BDA0001516181490000102
Within 1s of the device charger interface 25 plugged with a charger, in the low power mode, the device power consumption is about:
Q=[10uA*500ms+2mA*5ms]*2=30uAs
compared with the prior art, the detection speed can be improved and the power consumption of the device can be reduced by adopting the embodiment of the application.
An embodiment of the present application further provides a device circuit, which may be as shown in fig. 2A or 2B, where the device circuit may include: the charger state detection circuit 20, the system power consumption circuit 30 and the charging circuit 40 are connected to the device charger interface 25, and the system power consumption circuit 30 and the charging circuit 40 are connected to the device charger interface 25.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (7)

1. A charger state detection circuit, comprising: the device comprises a current source circuit, an electronic switch control circuit and a voltage detection circuit;
the input end of the current source circuit is connected with an equipment charger interface through the electronic switch, and the output end of the current source circuit is grounded;
The input end of the electronic switch control circuit is connected with the output end of the voltage detection circuit, the output end of the electronic switch control circuit is connected with the electronic switch, and the electronic switch control circuit is used for outputting a control signal to the electronic switch according to the output of the voltage detection circuit;
the voltage detection circuit is used for detecting the voltage of the equipment charger interface;
wherein, the electronic switch control circuit is specifically configured to:
after the device charger interface is judged to be connected with a charger according to the output of the voltage detection circuit, starting a detection period, and outputting a first control signal after the detection period is started so as to control the electronic switch to be in a closed state, and judging whether the voltage reduction of the device charger interface in the first time period is greater than or equal to a first voltage threshold value or not according to the output of the voltage detection circuit within the first time period when the electronic switch is in the closed state; wherein the first time length is less than the time length required for detecting that the charger is pulled out from the equipment charger interface;
if so, after the first duration, when the voltage reduction of the equipment charger interface is judged to be greater than or equal to a second voltage threshold according to the output of the voltage detection circuit, the charger is determined to be pulled out of the equipment charger interface, a second control signal is output to control the electronic switch to be in a disconnected state, and the electronic switch is kept in the disconnected state until the equipment charger interface is judged to be connected into the charger according to the output of the voltage detection circuit; otherwise, outputting the second control signal to control the electronic switch to be in a disconnected state, and entering a next detection period after the current detection period is finished; wherein the second voltage threshold is greater than the first voltage threshold.
2. The charger state detection circuit of claim 1, wherein the electronic switch control circuit is specifically configured to:
after judging that the equipment charger interface is connected with a charger according to the output of the voltage detection circuit, outputting a control signal to the electronic switch according to a set detection period; the electronic switch is switched on by a first control signal output by the electronic switch control circuit in the first time period, and the electronic switch is switched off by a second control signal output by the electronic switch control circuit in the second time period.
3. The charger state detection circuit of claim 1, wherein the electronic switch control circuit is further configured to:
after the detection period is started, judging that the voltage reduction of the device charger interface in the first time length is greater than or equal to a first voltage threshold, but not judging that the voltage reduction of the device charger interface in a second time length after the first time length is greater than or equal to a second voltage threshold according to the output of the voltage detection circuit, and outputting a second control signal to control the electronic switch to be in a disconnected state and enter the next detection period after the current detection period is finished; and the sum of the second time length and the first time length is more than or equal to the time length required for detecting that the charger is pulled out from the equipment charger interface, but is less than the time length of one detection period.
4. The charger state detection circuit of claim 1, wherein the current source circuit comprises: a current source or a resistor.
5. An appliance circuit comprising a charger status detection circuit as claimed in any one of claims 1 to 4, the appliance charger interface further having connected thereto a system power consuming circuit and/or a charging circuit.
6. The charger state detection method is characterized by being applied to a charger state detection circuit comprising a current source circuit, an electronic switch control circuit and a voltage detection circuit, wherein the input end of the current source circuit is connected with an equipment charger interface through the electronic switch, the output end of the current source circuit is grounded, the input end of the electronic switch control circuit is connected with the output end of the voltage detection circuit, and the output end of the electronic switch control circuit is connected with the electronic switch;
the method comprises the following steps:
the electronic switch control circuit judges whether the equipment charger interface is connected with a charger or not according to the output of the voltage detection circuit;
if yes, outputting a control signal to the electronic switch according to a set detection period; wherein, a detection cycle comprises a first time period and a second time period, the electronic switch is closed by a first control signal output by the electronic switch control circuit in the first time period, and the electronic switch is opened by a second control signal output by the electronic switch control circuit in the second time period;
Wherein, the outputting the control signal to the electronic switch according to the set detection period comprises:
after the device charger interface is judged to be connected with a charger according to the output of the voltage detection circuit, starting a detection period, and after the detection period is started, the electronic switch control circuit outputs a first control signal to control the electronic switch to be in a closed state, and within a first time period when the electronic switch is in the closed state, judging whether the voltage reduction amount of the device charger interface within the first time period is greater than or equal to a first voltage threshold value according to the output of the voltage detection circuit; wherein the first time length is less than the time length required for detecting that the charger is pulled out from the equipment charger interface;
if so, after the first duration, when the voltage reduction of the equipment charger interface is judged to be greater than or equal to a second voltage threshold according to the output of the voltage detection circuit, the charger is determined to be pulled out of the equipment charger interface, the second control signal is output to control the electronic switch to be in a disconnected state, and the electronic switch is kept in the disconnected state until the equipment charger interface is judged to be connected into the charger according to the output of the voltage detection circuit; otherwise, outputting the second control signal to control the electronic switch to be in a disconnected state, and entering a next detection period after the current detection period is finished; wherein the second voltage threshold is greater than the first voltage threshold.
7. The method of claim 6, wherein the method further comprises:
after the detection period is started, judging that the voltage reduction of the device charger interface in the first time length is greater than or equal to a first voltage threshold, but not judging that the voltage reduction of the device charger interface in a second time length after the first time length is greater than or equal to a second voltage threshold according to the output of the voltage detection circuit, and outputting a second control signal to control the electronic switch to be in a disconnected state and enter the next detection period after the current detection period is finished; and the sum of the second time length and the first time length is more than or equal to the time length required for detecting that the charger is pulled out from the equipment charger interface, but is less than the time length of one detection period.
CN201711383934.8A 2017-12-20 2017-12-20 Charger state detection circuit, device circuit, and charger state detection method Active CN109950939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711383934.8A CN109950939B (en) 2017-12-20 2017-12-20 Charger state detection circuit, device circuit, and charger state detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711383934.8A CN109950939B (en) 2017-12-20 2017-12-20 Charger state detection circuit, device circuit, and charger state detection method

Publications (2)

Publication Number Publication Date
CN109950939A CN109950939A (en) 2019-06-28
CN109950939B true CN109950939B (en) 2021-09-24

Family

ID=67004998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711383934.8A Active CN109950939B (en) 2017-12-20 2017-12-20 Charger state detection circuit, device circuit, and charger state detection method

Country Status (1)

Country Link
CN (1) CN109950939B (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1148912A (en) * 1995-02-16 1997-04-30 菲利浦电子有限公司 Device for converting a resistance value into a control signal which depends on the resistance value, and electrical apparatus comprising such device
CN1327289A (en) * 2000-06-01 2001-12-19 索尼公司 Power supply equipment and method
CN1630130A (en) * 2003-12-17 2005-06-22 三洋电机株式会社 Battery pack
CN1783640A (en) * 2004-11-22 2006-06-07 因温特奥股份公司 Integrity testing of isolation means in an uninterruptible power supply
CN101281216A (en) * 2008-05-28 2008-10-08 北京中星微电子有限公司 Voltage measuring circuit using scan mode
CN101383627A (en) * 2007-09-04 2009-03-11 大唐移动通信设备有限公司 Device and method for terminal charger charging, USB charging and data communication
CN101860066A (en) * 2009-04-03 2010-10-13 索尼公司 Battery pack and charging method
CN101983469A (en) * 2008-04-02 2011-03-02 无穷动力解决方案股份有限公司 Passive over/under voltage control and protection for energy storage devices associated with energy harvesting
CN102118057A (en) * 2010-01-05 2011-07-06 台达电子工业股份有限公司 DC UPS circuit with integrated charge-discharge circuit
CN102195324A (en) * 2011-05-18 2011-09-21 张兴发 Battery protection chip, circuit and method
CN102695997A (en) * 2010-01-05 2012-09-26 3M创新有限公司 Method, apparatus, and system for supplying pulsed current to a load
CN102809708A (en) * 2011-06-03 2012-12-05 株式会社杰士汤浅国际 Cell monitoring device, disconnection detection program and disconnection detection method of electricity storage module
CN103095929A (en) * 2013-02-16 2013-05-08 惠州Tcl移动通信有限公司 Method and system capable of preventing terminal from restarting repeatedly and mobile terminal using the same
CN104076184A (en) * 2013-03-29 2014-10-01 株式会社京滨 Voltage detection apparatus
CN104360191A (en) * 2014-11-14 2015-02-18 惠州Tcl移动通信有限公司 Device and method for detecting plug-in and pull-out of charger
CN104535851A (en) * 2014-12-12 2015-04-22 惠州Tcl移动通信有限公司 Rapid detecting method and system for judging pullout state of mobile terminal charger
CN205304340U (en) * 2015-03-26 2016-06-08 上海长园维安电子线路保护有限公司 Power management module with automatic identification USB equipment
CN105988086A (en) * 2015-03-19 2016-10-05 精工半导体有限公司 Battery remaining power predicting device and battery pack
CN106329620A (en) * 2016-08-31 2017-01-11 珠海智融科技有限公司 High-voltage rapid charging circuit structure through multiplexing of single-power-supply multi-port output
CN106602649A (en) * 2016-12-20 2017-04-26 东莞钜威动力技术有限公司 Disconnection detection circuit and disconnection detection method of battery management system
CN206559066U (en) * 2016-12-28 2017-10-13 深圳市心能科技有限公司 A kind of intelligent power-down circuit of charger

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0797893B2 (en) * 1987-01-20 1995-10-18 富士通株式会社 Peak voltage detection circuit in charging device
JPH09163617A (en) * 1995-12-01 1997-06-20 Oki Electric Ind Co Ltd Charger for portable electronic apparatus
TW200624826A (en) * 2004-10-29 2006-07-16 Koninkl Philips Electronics Nv System for diagnosing impedances having accurate current source and accurate voltage level-shift
CN101282045B (en) * 2008-04-28 2010-08-11 炬力集成电路设计有限公司 Battery charging apparatus as well as control method thereof
CN101841239B (en) * 2010-04-12 2012-07-04 无锡中星微电子有限公司 Boost DC/DC converter and logic control circuit thereof
CN105790341B (en) * 2014-12-22 2018-03-06 炬芯(珠海)科技有限公司 A kind of method and circuit for detecting battery

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1148912A (en) * 1995-02-16 1997-04-30 菲利浦电子有限公司 Device for converting a resistance value into a control signal which depends on the resistance value, and electrical apparatus comprising such device
CN1327289A (en) * 2000-06-01 2001-12-19 索尼公司 Power supply equipment and method
CN1630130A (en) * 2003-12-17 2005-06-22 三洋电机株式会社 Battery pack
CN1783640A (en) * 2004-11-22 2006-06-07 因温特奥股份公司 Integrity testing of isolation means in an uninterruptible power supply
CN101383627A (en) * 2007-09-04 2009-03-11 大唐移动通信设备有限公司 Device and method for terminal charger charging, USB charging and data communication
CN101983469A (en) * 2008-04-02 2011-03-02 无穷动力解决方案股份有限公司 Passive over/under voltage control and protection for energy storage devices associated with energy harvesting
CN101281216A (en) * 2008-05-28 2008-10-08 北京中星微电子有限公司 Voltage measuring circuit using scan mode
CN101860066A (en) * 2009-04-03 2010-10-13 索尼公司 Battery pack and charging method
CN102695997A (en) * 2010-01-05 2012-09-26 3M创新有限公司 Method, apparatus, and system for supplying pulsed current to a load
CN102118057A (en) * 2010-01-05 2011-07-06 台达电子工业股份有限公司 DC UPS circuit with integrated charge-discharge circuit
CN102195324A (en) * 2011-05-18 2011-09-21 张兴发 Battery protection chip, circuit and method
CN102809708A (en) * 2011-06-03 2012-12-05 株式会社杰士汤浅国际 Cell monitoring device, disconnection detection program and disconnection detection method of electricity storage module
CN103095929A (en) * 2013-02-16 2013-05-08 惠州Tcl移动通信有限公司 Method and system capable of preventing terminal from restarting repeatedly and mobile terminal using the same
CN104076184A (en) * 2013-03-29 2014-10-01 株式会社京滨 Voltage detection apparatus
CN104360191A (en) * 2014-11-14 2015-02-18 惠州Tcl移动通信有限公司 Device and method for detecting plug-in and pull-out of charger
CN104535851A (en) * 2014-12-12 2015-04-22 惠州Tcl移动通信有限公司 Rapid detecting method and system for judging pullout state of mobile terminal charger
CN105988086A (en) * 2015-03-19 2016-10-05 精工半导体有限公司 Battery remaining power predicting device and battery pack
CN205304340U (en) * 2015-03-26 2016-06-08 上海长园维安电子线路保护有限公司 Power management module with automatic identification USB equipment
CN106329620A (en) * 2016-08-31 2017-01-11 珠海智融科技有限公司 High-voltage rapid charging circuit structure through multiplexing of single-power-supply multi-port output
CN106602649A (en) * 2016-12-20 2017-04-26 东莞钜威动力技术有限公司 Disconnection detection circuit and disconnection detection method of battery management system
CN206559066U (en) * 2016-12-28 2017-10-13 深圳市心能科技有限公司 A kind of intelligent power-down circuit of charger

Also Published As

Publication number Publication date
CN109950939A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
KR102313334B1 (en) Devices and methods for facilitating usb charger detection
US9859737B2 (en) Method and apparatus for performing system power management in electronic device equipped with battery
US9142982B2 (en) Method and apparatus for performing charging port detection control
US8237414B1 (en) Multi-mode charger device
CN110912224B (en) Charging device and charging device control method
CN114094649B (en) Data line integrated with capacitive load access identification device and identification method and system
CN103064489A (en) Method for selecting internal circuit according to conditions of universal serial bus (USB) interface and terminal
US20130054983A1 (en) Methods of and Apparatus for Controlling Power Drawn by an Appliance through a USB Port
CN104335437A (en) Electronic device power protection circuitry
US20190204896A1 (en) Electronic device that receives power from power supply apparatus and method thereof
CN109950939B (en) Charger state detection circuit, device circuit, and charger state detection method
CN112713629A (en) Charging method and device and electronic equipment
CN101110523A (en) Control method for implementing constant-current charging of battery
JP3734797B2 (en) How to control the charge and discharge phases of a backup capacitor
CN212063521U (en) Load access recognition device and charging device
JP6412420B2 (en) Electronic device, control method and program
JP2014102693A (en) Portable terminal apparatus and power supply method
CN109980760B (en) Electronic device for receiving power from power supply apparatus and method thereof
US20080001574A1 (en) Battery charging controller and portable electronic device
CN106200707B (en) The temprature control method and device of a kind of electronic equipment
CN114336534B (en) Uncontrolled power supply short-circuit protection device, method, equipment, system and medium
CN104767241B (en) A kind for the treatment of method and apparatus of terminal charger
CN104617631A (en) Insert inspection circuit based on RTC (Real Time Communication)
TWI664785B (en) Protection circuit applied to electronic device and associated protection method
CN106532848B (en) Charger detection opportunity acquisition control method and system based on mobile terminal

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
CB02 Change of applicant information

Address after: 519085 High-tech Zone, Tangjiawan Town, Zhuhai City, Guangdong Province

Applicant after: ACTIONS TECHNOLOGY Co.,Ltd.

Address before: 519085 High-tech Zone, Tangjiawan Town, Zhuhai City, Guangdong Province

Applicant before: ACTIONS (ZHUHAI) TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant