Interface insertion detection circuit and electronic equipment

By designing an interface insertion detection circuit, using the sixth resistor and the second electronic switch tube to convert the insertion detection signal, the energy loss problem caused by real-time AD sampling in the standby state of the MCU in the prior art is solved, and the load insertion is detected in the sleep mode is realized, reducing standby power consumption and improving standby time.

CN222774652UActive Publication Date: 2025-04-18HUIZHOU FACTORY JECKSON ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421751187.4
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2025-04-18
Estimated Expiration
2034-07-23

AI Technical Summary

Technical Problem

In standby state, existing electronic products have increased energy loss due to the change in voltage generated by the load insertion of the MCU in real-time AD sampling interface, and the standby power consumption cannot be effectively reduced.

Method used

An interface insertion detection circuit is designed, including an interface module, a detection circuit and a control module. The insertion detection signal is converted into a high and low level conversion through the sixth resistor and the second electronic switch tube. The control module judges the load insertion by detecting the high and low level conversion in the sleep mode, reducing the loss of the MCU.

Benefits of technology

It realizes that the control module can still detect external load insertion after entering sleep mode, reducing standby power consumption and improving standby time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222774652U_ABST
    Figure CN222774652U_ABST
Patent Text Reader

Abstract

The utility model provides an interface detection circuit and an electronic device, the interface detection circuit comprises an interface module, a detection circuit and a control module, the detection circuit comprises a sixth resistor and a second electronic switch tube, a first input end of the interface module is used for connecting a direct current power supply, and a second input end of the interface module is used for connecting a second electronic switch tube. The second input end of the interface module is connected with the first end of the sixth resistor, and the second end of the sixth resistor is grounded; the control end of the second electronic switching tube is connected with the first end of the sixth resistor, an insertion detection signal is converted into high and low level conversion through the detection circuit, and a direct-current power supply is used for supplying power to the detection circuit and the control module, so that the control module can still detect the high and low level conversion after entering a sleep mode; therefore, when the sleep mode is entered to reduce the standby power consumption, whether the external load is inserted or not can be detected through interruption, the loss of the control module is reduced, and the standby time is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to a detection circuit, in particular to an interface insertion detection circuit and an electronic device. Background Art

[0002] With the continuous development of battery technology, various electronic products containing batteries have appeared on the market, and their compatible chargers are also various. Among them, the charging interface of many electronic products or chargers is USB (Universal Serial Bus). The battery power in these electronic products containing batteries is always limited. In order to work continuously for as long as possible, the battery power consumption in standby mode must be as small as possible. In order to reduce standby power consumption, the USB output of the electronic product is required to be turned off in standby mode, and the USB output switch is turned on to charge the load after the load is inserted.

[0003] The interface insertion detection function of mainstream electronic products on the market currently mainly detects the insertion of interface load by sampling the voltage change caused by the insertion of interface load through the AD (Analog-to-Digital Converter) port of MCU (Microcontroller Unit). However, this detection method requires the MCU to be in normal working mode in order to sample the voltage change caused by the insertion of interface load in real time, and also requires that the interface always has output voltage, which increases energy loss.

[0004] Therefore, a new interface insertion detection circuit is urgently needed, which can wake up the MCU after detecting that the interface is inserted into a load, thereby reducing power consumption. Utility Model Content

[0005] Based on this, it is necessary to provide an interface insertion detection circuit and an electronic device to address the above technical problems.

[0006] An interface insertion detection circuit comprises: an interface module, a detection circuit and a control module;

[0007] The detection circuit includes a sixth resistor and a second electronic switch tube;

[0008] The first input end of the interface module is used to connect to a DC power supply, the second input end of the interface module is connected to the first end of the sixth resistor, and the second end of the sixth resistor is used to be grounded;

[0009] The control end of the second electronic switch tube is connected to the first end of the sixth resistor, the first end of the second electronic switch tube is used to be connected to a DC power supply, and the second end of the second electronic switch tube is used to be grounded;

[0010] The detection end of the control module is connected to the first end of the second electronic switch tube;

[0011] The control end of the control module is used to connect to the switch end of the power module, and the first input end of the interface module is also used to connect to the power output end of the power module;

[0012] The power input terminal of the control module is used to connect to the DC power supply.

[0013] In one of the embodiments, a diode is further included, wherein the anode of the diode is used to connect to the DC power supply, and the cathode of the diode is connected to the first input terminal of the interface module.

[0014] In one embodiment, a first resistor is further included, wherein a first end of the first resistor is used to connect to the DC power supply, and a second end of the first resistor is connected to the anode of the diode.

[0015] In one embodiment, it also includes a first electronic switch tube, the enable output end of the control module is connected to the control end of the first electronic switch tube, the first end of the first electronic switch tube is connected to the second input end of the interface module, and the second end of the first electronic switch tube is used for grounding.

[0016] In one embodiment, a second resistor is further included, the enable output terminal of the control module is connected to the first end of the second resistor, and the second end of the second resistor is connected to the control end of the first electronic switch tube.

[0017] In one embodiment, a third resistor is further included, the second end of the second resistor is connected to the first end of the third resistor, and the second end of the third resistor is grounded.

[0018] In one embodiment, the detection circuit further includes a fifth resistor, a first end of the fifth resistor is connected to the second input end of the interface module, and a second end of the fifth resistor is connected to the first end of the sixth resistor.

[0019] In one embodiment, the detection circuit further includes a fourth resistor, a first end of the fourth resistor is used to connect to the DC power supply, and a second end of the fourth resistor is connected to a first end of the second electronic switch tube.

[0020] In one embodiment, a second capacitor is further included, wherein a first end of the second capacitor is connected to a power input end of the control module, and a second end of the second capacitor is grounded.

[0021] An electronic device comprises the interface insertion detection circuit described in any one of the above embodiments.

[0022] The above-mentioned interface is inserted into the detection circuit and the electronic device, and the insertion detection signal is converted into a high-low level conversion through the detection circuit, and a DC power supply is used to power the detection circuit and the control module, so that the control module can still detect the high-low level conversion after entering the sleep mode, thereby reducing the standby power consumption when entering the sleep mode, and can also detect whether the external load is inserted through interruption, thereby reducing the loss of the control module and improving the standby time. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A circuit diagram of an interface insertion detection circuit in one embodiment;

[0024] Figure 2 The figure is a schematic diagram of a principle of an interface insertion detection circuit in one embodiment. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0026] Embodiment 1

[0027] In this embodiment, Figure 1 As shown, an interface insertion detection circuit is provided, comprising: an interface module, a detection circuit and a control module MCU;

[0028] The detection circuit includes a sixth resistor R6 and a second electronic switch tube Q2;

[0029] The first input terminal V+ of the interface module is used to connect to the DC power supply VDD, the second input terminal V- of the interface module is connected to the first end of the sixth resistor R6, and the second end of the sixth resistor R6 is used to ground;

[0030] The control end of the second electronic switch tube Q2 is connected to the first end of the sixth resistor R6, the first end of the second electronic switch tube Q2 is used to be connected to the DC power supply VDD, and the second end of the second electronic switch tube Q2 is used to be grounded;

[0031] The detection end of the control module MCU is connected to the first end of the second electronic switch tube Q2;

[0032] The control end of the control module MCU is used to connect to the switch end of the power module, and the first input end V+ of the interface module is also used to connect to the power output end of the power module;

[0033] The power input terminal of the control module MCU is used to connect to the DC power supply VDD.

[0034] Specifically, the detection circuit includes a sixth resistor R6 and a second electronic switch tube Q2. When the interface module is not inserted into a load, the first input terminal V+ and the second input terminal of the interface module are in a non-conducting state, the DC power supply VDD and the sixth resistor R6 do not form a path, and the control end of the second electronic switch tube Q2 is connected to the first end of the sixth resistor R6. When the voltage of the first end of the sixth resistor R6 is almost zero, and there is no voltage difference between the two ends of the sixth resistor R6 in the detection circuit, the second electronic switch tube Q2 does not meet the conduction condition and remains in the off state. The detection end of the control module MCU detects that the first end of the second electronic switch tube Q2 is a high-level signal, and the switch end of the power module remains closed; and the detection end of the control module MCU is connected to the first end of the second electronic switch tube Q2, and the first end of the second electronic switch tube Q2 is used to be connected to the DC power supply VDD. Therefore, the second electronic switch tube Q2 does not meet the conduction condition, so the detection end of the control module MCU detects a high-level signal.

[0035] When the interface is inserted into the load, the first input terminal and the second input terminal of the interface module are connected, that is, the DC power supply VDD and the sixth resistor R6 form a path, the sixth resistor R6 plays a role of a voltage divider in the entire circuit, and the second end of the sixth resistor R6 is grounded. Therefore, when the interface is inserted into the load, the first input terminal and the second input terminal of the interface module are connected, and the DC power supply VDD generates a current that passes through the first input terminal of the interface module, the internal circuit of the load, the second input terminal of the interface module, the first end of the sixth resistor R6, and the second end of the sixth resistor R6, and then is grounded; thereby, a voltage difference is generated at both ends of the sixth resistor R6, and the second electronic switch tube The control end of Q2 is connected to the first end of the sixth resistor R6. When the voltage difference reaches a preset value, the control end of the second electronic switch tube Q2 controls the first end of the second electronic switch tube Q2 to be connected with the second end of the second electronic switch tube Q2, that is, the DC power supply VDD forms a path with the second electronic switch tube Q2. Therefore, the high level of the first end of the second electronic switch tube Q2 is converted to a low level, that is, after the second electronic switch tube Q2 is turned on, the low-resistance path from the first end to the second end of the second electronic switch tube Q2 pulls the high level down to a low level. The detection end of the control module MCU captures this signal change and uses it as a signal for detecting load insertion.

[0036] The control module MCU is in sleep mode, the DC power supply VDD provides power to the control module MCU and the detection circuit, the power module is in a closed state, and the control module MCU receives a signal through the detection end that the first end of the second electronic switch tube Q2 is converted from a high level to a low level, thereby judging that a load is inserted at the interface. The control module MCU is configured with an interrupt detection function for the detection end. When the detection end detects that the level of the first end of the second electronic switch tube Q2 changes from a high level to a low level, the control module MCU immediately recognizes this change and triggers an interrupt. The interrupt is an immediate response at the hardware level, which can quickly wake up the control module MCU, that is, the control The module MCU switches from sleep mode to normal working mode, and the control module MCU outputs a control signal to the control interface of the power module through the control end. The signal is usually an on / off control command or a high-level signal. The control end of the control module MCU is used to connect to the switch end of the power module, and the first input end V+ of the interface module is also used to connect to the power output end of the power module. After the power module receives the signal from the control module MCU, the power module activates its internal switching element (such as a semiconductor field effect transistor or a relay), so that the electric energy is output from the power output end of the power module through the first input end V+ of the interface module, thereby supplying power to the load.

[0037] In this embodiment, the insertion detection signal is converted into a high-low level conversion through the detection circuit, and the DC power supply VDD is used to power the detection circuit and the control module MCU, so that the control module MCU can still detect the high-low level conversion after entering the sleep mode, thereby reducing the standby power consumption when entering the sleep mode, and can also detect whether the external load is inserted through an interrupt, thereby reducing the loss of the control module MCU and improving the standby time.

[0038] In order to prevent the power module from reversely injecting current into the DC power supply VDD and causing damage to other components, in one embodiment, Figure 1As shown, it also includes a diode D1, the anode of the diode D1 is used to connect the DC power supply VDD, and the cathode of the diode D1 is connected to the first input terminal V+ of the interface module. In this embodiment, since the first input terminal V+ of the interface module is also used to connect the power output terminal of the power module, in order to prevent the power module from reversely injecting current into the DC power supply VDD to cause damage to other components, the diode D1 is added. When the power module has a voltage higher than the DC power supply VDD due to some reason (such as sudden load change, external circuit failure or power supply fluctuation), if there is no protection measure, this abnormal voltage may be reversely injected into the DC power supply VDD, causing damage to the control module MCU and other sensitive components that rely on the DC power supply VDD for power supply; in normal working state, the power module provides power to the load according to the circuit design. At this time, the anode of the diode D1 is used to connect the DC power supply VDD, and the cathode of the diode D1 is connected to the first input terminal V+ of the interface module. Since the diode D1 can only be unidirectionally conducted, it can well prevent the power module from reversely injecting current into the DC power supply VDD to cause damage to other components.

[0039] In one embodiment, Figure 1 As shown, it also includes a first resistor R1, the first end of the first resistor R1 is used to connect the DC power supply VDD, and the second end of the first resistor R1 is connected to the anode of the diode D1. In this embodiment, the first resistor R1 is a pull-up resistor, one end of the first resistor R1 is connected to the DC power supply VDD, and the other end is connected to the anode of the diode D1. Its main function is to limit the current flowing through the diode D1, prevent excessive instantaneous current shock, and provide a stable voltage when the circuit starts; in addition to providing a pull-up function, the first resistor R1 can also limit the current when the circuit starts or there is a transient current shock, protecting the diode D1 and subsequent circuit components from damage caused by excessive current shock.

[0040] In one embodiment, Figure 1 As shown, it also includes a first electronic switch tube Q1, the enable output end of the control module MCU is connected to the control end of the first electronic switch tube Q1, the first end of the first electronic switch tube Q1 is connected to the second input end V- of the interface module, and the second end of the first electronic switch tube Q1 is used for grounding.

[0041] In this implementation, under normal circumstances, the first electronic switch tube Q1 is turned off, the enable output terminal of the control module MCU is connected to the control terminal of the first electronic switch tube Q1, the enable output terminal of the control module MCU does not output an enable signal (or a high-level signal), and there is no conduction path between the second input terminal V- of the interface module and the ground, which is equivalent to a circuit disconnection. When the detection circuit detects that an external load is inserted, the detection terminal of the control module MCU detects that the level of the first end of the second electronic switch tube Q2 is converted from a high level to a low level, triggering an interrupt, waking up the control module MCU, exiting the sleep mode, and turning on the switch of the power module to output electrical energy to the outside. At the same time, the control module MCU outputs a high-level signal to the control terminal of the first electronic switch tube Q1 through the enable output terminal, and the first electronic switch tube Q1 is turned on. At this time, the power module provides electrical energy to the external load through the interface module.

[0042] In order to protect the control terminal of the first electronic switch tube Q1, in one embodiment, as Figure 1 As shown, a second resistor R2 is also included, the enable output terminal of the control module MCU is connected to the first end of the second resistor R2, and the second end of the second resistor R2 is connected to the control end of the first electronic switch tube Q1. In this embodiment, the output voltage of the control module MCU does not completely match the driving voltage of the control end of the first electronic switch tube Q1, and the second resistor R2 plays a voltage dividing role to help adjust the actual voltage reaching the control end of the first electronic switch tube Q1 to a suitable level, ensuring that the first electronic switch tube Q1 can be stably turned on or off.

[0043] In one embodiment, Figure 1 As shown, a third resistor R3 is also included, the second end of the second resistor R2 is connected to the first end of the third resistor R3, and the second end of the third resistor R3 is grounded. In this embodiment, the output voltage of the control module MCU does not completely match the driving voltage of the control end of the first electronic switch tube Q1, and the third resistor R3 plays a voltage dividing role to help adjust the actual voltage reaching the control end of the first electronic switch tube Q1 to a suitable level, ensuring that the first electronic switch tube Q1 can be stably turned on or off.

[0044] In one embodiment, Figure 1As shown, the detection circuit also includes a fifth resistor R5, a first end of the fifth resistor R5 is connected to the second input terminal V- of the interface module, and a second end of the fifth resistor R5 is connected to the first end of the sixth resistor R6. In this embodiment, the first end of the fifth resistor R5 is connected to the second input terminal V- of the interface module, and the second end is connected to the first end of the sixth resistor R6. The fifth resistor R5 and the sixth resistor R6 together form a voltage divider circuit, and the voltage divider circuit formed by the fifth resistor R5 and the sixth resistor R6 is a secondary voltage divider of the power supply voltage, which helps to protect the subsequent circuit (especially the sixth resistor R6) from excessive voltage, especially when the voltage at the second input terminal of the interface module is unstable or exceeds the expected range.

[0045] In order to keep the level of the first end of the second electronic switch tube Q2 at a high level, in one embodiment, Figure 1 As shown, the detection circuit further includes a fourth resistor R4, a first end of the fourth resistor R4 is used to connect to the DC power supply VDD, and a second end of the fourth resistor R4 is connected to a first end of the second electronic switch tube Q2.

[0046] In this embodiment, the fourth resistor R4 is a pull-up resistor, and the first end of the fourth resistor R4 is used to connect to the DC power supply VDD. The second end of the fourth resistor R4 is connected to the first end of the second electronic switch tube Q2. When the second electronic switch tube Q2 is not turned on, in order to keep the level of the first end of the second electronic switch tube Q2 at a high level, the fourth resistor R4 is added.

[0047] In one embodiment, Figure 1 As shown, a second capacitor C2 is also included, wherein a first end of the second capacitor C2 is connected to a power input end of the control module MCU, and a second end of the second capacitor C2 is used for grounding. In this embodiment, the second capacitor C2 is a decoupling capacitor, and the second capacitor C2 is usually placed very close to the power pin of the control module MCU, in order to provide a local energy storage unit for the control module MCU. When the internal current demand of the control module MCU changes rapidly, the second capacitor C2 can quickly provide or absorb additional current, reduce interference with the voltage, and affect the performance of the control module MCU.

[0048] In one implementation, an electronic device includes the interface insertion detection circuit described in any one of the above embodiments.

[0049] In one implementation, Figure 2 As shown, the specific working principle of the interface insertion detection circuit is as follows:

[0050] When the interface module is not inserted into the load, the first input terminal V+ and the second input terminal of the interface module are in a non-conducting state, the DC power supply VDD and the sixth resistor R6 do not form a path, the voltage at the first end of the sixth resistor R6 is almost zero, and there is no voltage difference between the two ends of the sixth resistor R6 in the measuring circuit. The second electronic switch tube Q2 does not meet the conduction condition and remains in the cut-off state. The detection end of the control module MCU detects that the first end of the second electronic switch tube Q2 is a high-level signal, and the switch end of the power module remains closed. The control module MCU is in sleep mode, the DC power supply VDD provides power to the control module MCU and the detection circuit, the power module is in a closed state, and the control module MCU receives a signal through the detection end that the first end of the second electronic switch tube Q2 is converted from a high level to a low level, thereby judging that a load is inserted at the interface. The control module MCU is configured with an interrupt detection function for the detection end. When the detection end detects that the level of the first end of the second electronic switch tube Q2 changes from a high level to a low level, the control module MCU immediately recognizes this change and triggers an interrupt. The interrupt is an immediate response at the hardware level, which can quickly wake up the control module MCU, that is, the control module MCU changes from sleep mode to normal working mode, and the control module MCU outputs a control signal to the control interface of the power module through the control end; after the power module receives the signal from the control module MCU, the power module activates its internal switching element (such as a semiconductor field effect transistor or a relay), so that electric energy is output from the power output end of the power module through the first input end V+ of the interface module, thereby powering the load.

[0051] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0052] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the utility model patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. An interface insertion detection circuit, characterized in that: include: Interface module, detection circuit and control module; The detection circuit includes a sixth resistor and a second electronic switch tube; The first input end of the interface module is used to connect to a DC power supply, the second input end of the interface module is connected to the first end of the sixth resistor, and the second end of the sixth resistor is used to be grounded; The control end of the second electronic switch tube is connected to the first end of the sixth resistor, the first end of the second electronic switch tube is used to be connected to a DC power supply, and the second end of the second electronic switch tube is used to be grounded; The detection end of the control module is connected to the first end of the second electronic switch tube; The control end of the control module is used to connect to the switch end of the power module, and the first input end of the interface module is also used to connect to the power output end of the power module; The power input terminal of the control module is used to connect to the DC power supply.

2. The interface insertion detection circuit according to claim 1, characterized in that: It also includes a diode, wherein the anode of the diode is used to connect to the DC power supply, and the cathode of the diode is connected to the first input terminal of the interface module.

3. The interface insertion detection circuit according to claim 2, characterized in that: It also includes a first resistor, wherein a first end of the first resistor is used to connect to the DC power supply, and a second end of the first resistor is connected to the anode of the diode.

4. The interface insertion detection circuit according to claim 1, characterized in that: It also includes a first electronic switch tube, the enable output end of the control module is connected to the control end of the first electronic switch tube, the first end of the first electronic switch tube is connected to the second input end of the interface module, and the second end of the first electronic switch tube is used for grounding.

5. The interface insertion detection circuit according to claim 4, characterized in that: A second resistor is also included, the enable output end of the control module is connected to the first end of the second resistor, and the second end of the second resistor is connected to the control end of the first electronic switch tube.

6. The interface insertion detection circuit according to claim 5, characterized in that: A third resistor is also included, the second end of the second resistor is connected to the first end of the third resistor, and the second end of the third resistor is grounded.

7. The interface insertion detection circuit according to claim 1, characterized in that: The detection circuit further includes a fifth resistor, a first end of the fifth resistor is connected to the second input end of the interface module, and a second end of the fifth resistor is connected to the first end of the sixth resistor.

8. The interface insertion detection circuit according to claim 1, characterized in that: The detection circuit also includes a fourth resistor, a first end of the fourth resistor is used to connect to the DC power supply, and a second end of the fourth resistor is connected to the first end of the second electronic switch tube.

9. The interface insertion detection circuit according to claim 1, characterized in that: It also includes a second capacitor, a first end of the second capacitor is connected to the power input end of the control module, and a second end of the second capacitor is used for grounding.

10. An electronic device, characterized in that: include: The interface insertion detection circuit as claimed in any one of claims 1 to 9.