USB interface charging and discharging circuit protection method

By introducing control module, charging module and discharge module into the USB interface design, combining surge electrostatic protection circuit and overvoltage protection circuit, the protection failure problem caused by inconsistent voltage of multiple chargers is solved, ensuring the safety of the charging and discharge process , prevent the charging chip from being damaged.

CN119010283APending Publication Date: 2024-11-22SHENZHEN HUBSAN TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411147876.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

When facing multiple inconsistent chargers, existing USB interface designs are prone to failure of protection due to voltage mismatch or excessive surge voltage, which may damage the internal charging chip.

Method used

A USB interface charge and discharge protection circuit is designed, including a control module, a charging module and a discharge module. The charging and discharge mode is controlled through the MCU chip and peripheral circuit, and the surge electrostatic protection circuit, MOS tube control circuit and Voltage protection circuit, combined with resistors, capacitors and reference voltage stabilization sources, ensures that the circuit operates effectively under different voltage conditions.

Benefits of technology

It effectively prevents voltage mismatch and surge voltage problems caused by the use of non-original chargers, ensures the safety of the charging and discharging process, prevents damage to the charging chip, and achieves protection of overvoltage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119010283A_ABST
    Figure CN119010283A_ABST
Patent Text Reader

Abstract

The invention provides a USB interface charging and discharging circuit protection and method, the USB interface charging and discharging circuit protection comprises a control module, a charging module and a discharging module, the control module is composed of an MCU chip and a peripheral circuit, the control module is connected to an ID pin of a USB interface, and the control module is connected with the charging module and the discharging module. The control module uses the same signal CHGEN to control the circuit to be in a charging mode or a discharging mode; according to the invention, an overvoltage protection function can be realized, charging and discharging disorder of a system is avoided, surge resistance, static resistance and overvoltage protection of the USB charging and discharging interface are realized, and the situation that a consumer may cause voltage mismatching when using a non-original charger is effectively prevented. And protection failure caused by overhigh surge voltage is prevented, so that an internal charging chip is prevented from being burnt.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technology, and in particular to a USB interface charging and discharging circuit protection and method. Background Art

[0002] Terminal devices with built-in lithium batteries will have a charging and discharging interface. Conventional designs will add large capacitors, TVS tubes, buffer circuits, high-voltage chips, etc. to increase surge and static protection performance. This method is effective most of the time; however, as there are more and more consumer electronic devices now, each electronic device will come with a different charger, and these chargers are uneven and have inconsistent voltage standards. If consumers use non-original chargers, it may cause voltage mismatches, or the generated surge voltage is too high, resulting in protection failure, causing the internal charging chip to burn. Therefore, we have made improvements to this and proposed a USB interface charging and discharging circuit protection and method. Summary of the invention

[0003] The purpose of the present invention is to solve the problems in the existing background technology. In order to achieve the above invention purpose, the present invention provides the following technical solutions: a USB interface charge and discharge protection circuit, including a control module, a charging module and a discharging module, the control module is composed of an MCU chip and a peripheral circuit, the control module is connected to the ID pin of the USB interface, and the control module is connected to the charging module and the discharging module; the control module uses the same signal CHG_EN to control the circuit to be in a charging mode or a discharging mode; the charging mode is a low level of CHG_EN, and the discharging mode is a high level, and the input part of the charging module is connected to the output end of the discharging module.

[0004] As a preferred technical solution of the present invention, the charging module includes a surge electrostatic protection circuit, a MOS tube control circuit and an overvoltage protection circuit.

[0005] As a preferred technical solution of the present invention, the surge electrostatic protection circuit is composed of C1 and D1. When a short-term spike voltage input from the outside enters, the spike voltage will be absorbed by the capacitor C1 and the TVS diode D1.

[0006] As a preferred technical solution of the present invention, the MOS tube control circuit is composed of Q1, Q2, and R5. When Q2 is turned on, Q1 is turned on; when Q2 is turned off, R5 makes the gate and source voltages of Q1 the same, so that Q1 is turned off.

[0007] As a preferred technical solution of the present invention, the overvoltage protection circuit is composed of a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R6, a capacitor C2, and a reference voltage source U1; the resistor R1 and the resistor R2 are connected in series, and their series voltage division is connected to the REF pin of U1, the REF pin is the first pin of U1, and the resistor R1 and the resistor R2 set the maximum allowable charging voltage; the resistor R3 is connected to the second pin of U1, and it supplies power to U1 and also outputs a signal; the resistor R4 and the resistor R6 are connected in series, and the voltage of the second pin of U1 is divided to control the conduction and cutoff of the transistor Q2, thereby controlling the conduction and cutoff of the MOS tube Q1.

[0008] As a preferred technical solution of the present invention, the capacitor C2 performs charging slow start. At the moment of VUSB voltage, C2 will keep the base of Q2 at a low level for time T0. Q2 will turn on after a delay of T0, thereby controlling Q1 to also turn on after a delay of T0.

[0009] As a preferred technical solution of the present invention, the discharge module is composed of MOS tube Q4, MOS tube Q5, triode Q6, resistor R8, resistor R9, resistor R10, resistor R11 and capacitor C4; MOS tube Q4 and MOS tube Q5 are connected back to back, resistor R11 is a PPTC resistor, and resistor R9, resistor R10, C4 and Q6 constitute a delay drive circuit of MOS tube Q4 and MOS tube Q5.

[0010] As a preferred technical solution of the present invention, transistor Q2, transistor Q3, and transistor Q6 can be replaced by MOS tubes; the USB interface can also be replaced by other types of charging interfaces.

[0011] A protection method for a USB interface charging and discharging circuit comprises the following steps:

[0012] S1, the control module is powered on;

[0013] S1a, the USB interface is plugged into the charging cable, the USB_ID signal is high, and the control module determines that it is in the charging state at this time; the control module outputs the control signal CHG_EN as a low level to the charging and discharging modules, at this time the charging module is in the working state, the discharging module is in the prohibited working state, and the system is in the charging state for charging;

[0014] S1b, insert an OTG peripheral into the USB interface, the OTG peripheral includes a mobile phone, and the USB_ID signal is at a low level at this time, then the control module determines that it is in a discharge state at this time; the control module outputs a control signal CHG_EN at a high level to the charging and discharging modules, at this time the charging module is in a disabled working state, and the discharging module is in a working state; at this time the system is in an external discharge state, charging the peripherals including the mobile phone;

[0015] S2, control module is not powered on;

[0016] S2a, the USB interface is plugged into the charging cable, and the USB_ID signal is high level; because the control module is not working, CHG_EN remains low level, so the charging module works and the discharging module is prohibited from working; the system is in the charging state and the control module will be activated;

[0017] S2b, the USB interface is plugged into an OTG peripheral including a mobile phone, and the USB_ID signal is at a low level; since the control module is not working, the discharge module is prohibited from working, and the control module cannot be activated, and the circuit is in a shutdown state.

[0018] As a preferred technical solution of the present invention, in the charging mode state, the CHG_EN signal is pulled low, Q6 is turned off, and thereby Q4 and Q5 are turned off; the discharge function is prohibited, and the voltage on VUSB will not enter VCC5V; the control module recognizes that the circuit is in the discharge mode and pulls up the CHG_EN signal; at this time, Q3 in the charging module will be turned on instantly, thereby turning off Q2, and Q1 is also turned off, and the charging circuit is immediately closed; R10 and C4 in the discharge circuit allow CHE_EN to be pulled high, and Q6 will be turned on after a waiting time T1, so that the MOS tubes Q4 and Q5 are turned on at the same time, and the circuit enters the discharge mode.

[0019] Compared with the prior art, the present invention has the following beneficial effects: In the scheme of the present invention:

[0020] The overvoltage protection circuit is composed of resistors R1, R2, R3, R4, R6, capacitor C2, and reference voltage source U1. Resistors R1 and R2 are connected in series, and their series voltage division is connected to the REF pin of U1 (the first pin of U1). R1 ​​and R2 can set the highest allowed charging voltage. Resistor R3 is connected to the second pin of U1, which supplies power to U1 and outputs the signal at the same time. Resistors R4 and R6 are connected in series, which can divide the voltage of the second pin of U1 to control the conduction and cutoff of transistor Q2, and then control the conduction and cutoff of MOS tube Q1. Capacitor C2 can realize the charging slow start function, that is, when the VUSB voltage is effective, C2 will keep the base of Q2 at a low level for time T0, so that Q2 will be turned on after a delay of T0, thereby controlling Q1 to be turned on after a delay of T0. This can prevent the situation where Q1 is turned on instantaneously due to the delay of U1 itself.

[0021] When the charging voltage VUSB is within the set range, the voltage on the U1 REF pin is also within the normal range. At this time, the output voltage on the second pin of U1 is relatively high and after the voltage is divided by resistors R4 and R6, Q2 is turned on, and then the MOS tube Q1 is turned on, and the system can be charged. When the charging voltage VUSB is higher than the preset range, the voltage on the U1 REF pin will also be high. At this time, the output voltage on the second pin of U1 will be low and after the voltage is divided by resistors R4 and R6, it is not enough to turn on Q2, and then the MOS tube Q1 is also cut off, and the system is prohibited from charging. Therefore, the overvoltage protection function is realized;

[0022] The discharge module is composed of MOS tubes Q4, Q5, triode Q6, resistors R8, R9, R10, R11 and capacitor C4. Q4 and Q5 are connected back to back to prevent the system from entering the charging mode uncontrollably after startup. R11 is a PPTC resistor that can limit the discharge current. R9, R10, C4 and Q6 form the delay drive circuit of MOS tubes Q4 and Q5.

[0023] When the system is in charging mode, the CHG_EN signal is pulled low, so Q6 is turned off, and thus Q4 and Q5 are turned off. The discharge function is disabled, and the voltage on VUSB will not enter VCC5V.

[0024] When the control module recognizes that the system is in discharge mode, it will pull up the CHG_EN signal. At this time, Q3 in the charging module will be turned on instantly, thereby turning off Q2, Q1, and the charging circuit will be immediately closed. In the discharge circuit, R10 and C4 pull CHE_EN high, and then Q6 will be turned on after waiting time T1, so that MOS tubes Q4 and Q5 are turned on at the same time, and the system enters discharge mode.

[0025] In addition, adjusting the parameters of R10 and C4 can adjust the time T1 to ensure that the charging MOS tube Q1 is completely turned off before the system enters the discharge mode, avoiding system charging and discharging confusion, and realizing the anti-surge, static electricity and overvoltage protection of the USB charging and discharging interface, effectively preventing consumers from using non-original chargers that may cause voltage mismatch, and preventing the generated surge voltage from being too high, resulting in protection failure, thereby preventing the internal charging chip from burning. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of the structure provided by the present invention;

[0027] Figure 2 A schematic diagram of a charging circuit provided by the present invention;

[0028] Figure 3 A schematic diagram of a control module circuit provided by the present invention;

[0029] Figure 4 This is a schematic diagram of the discharge current direction provided by the present invention. DETAILED DESCRIPTION

[0030] To make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them.

[0031] Therefore, the following detailed description of the embodiments of the present invention is not intended to limit the scope of the claimed invention, but merely represents some embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. It should be noted that the embodiments of the present invention and the features and technical solutions in the embodiments can be combined with each other without conflict. It should be noted that similar numbers and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.

[0032] Example 1: Please refer to Figure 1-Figure 4 A USB interface charge and discharge protection circuit includes a control module, a charging module and a discharging module. The control module is composed of an MCU chip and a peripheral circuit. The control module is connected to the ID pin of the USB interface. The control module is connected to the charging module and the discharging module. The control module uses the same signal CHG_EN to control the circuit to be in a charging mode or a discharging mode. The charging mode is a low level of CHG_EN, and the discharging mode is a high level. The input part of the charging module is connected to the output end of the discharging module.

[0033] The charging module includes a surge electrostatic protection circuit, a MOS tube control circuit and an overvoltage protection circuit.

[0034] The surge electrostatic protection circuit is composed of C1 and D1. When a short-term spike voltage is input from the outside, it will be absorbed by capacitor C1 and TVS diode D1. The MOS tube control circuit is composed of Q1, Q2, and R5. When Q2 is turned on, Q1 is turned on; when Q2 is turned off, R5 makes the gate and source voltages of Q1 the same, making Q1 turned off.

[0035] The overvoltage protection circuit is composed of resistors R1, R2, R3, R4, R6, capacitor C2, and reference voltage source U1; resistors R1 and R2 are connected in series, and their series voltage division is connected to the REF pin of U1. The REF pin is the first pin of U1. Resistors R1 and R2 set the highest allowable charging voltage; resistor R3 is connected to the second pin of U1, and it supplies power to U1 and also outputs signals; resistors R4 and R6 are connected in series, and after dividing the voltage of the second pin of U1, they control the conduction and cutoff of the transistor Q2, and then control the conduction and cutoff of the MOS tube Q1.

[0036] Capacitor C2 is charged for slow start. At the moment of VUSB voltage, C2 will keep the base of Q2 at a low level for time T0. Q2 will be turned on after a delay of T0, thereby controlling Q1 to be turned on after a delay of T0.

[0037] The discharge module is composed of MOS tube Q4, MOS tube Q5, triode Q6, resistor R8, resistor R9, resistor R10, resistor R11 and capacitor C4; MOS tube Q4 and MOS tube Q5 are connected back to back, resistor R11 is a PPTC resistor, and resistor R9, resistor R10, C4 and Q6 constitute a delay drive circuit of MOS tube Q4 and MOS tube Q5.

[0038] Transistor Q2, transistor Q3, and transistor Q6 can be replaced by MOS tubes; the USB interface can also be replaced by other types of charging interfaces.

[0039] A protection method for a USB interface charging and discharging circuit comprises the following steps:

[0040] S1, the control module is powered on;

[0041] S1a, the USB interface is plugged into the charging cable, the USB_ID signal is high, and the control module determines that it is in the charging state at this time; the control module outputs the control signal CHG_EN as a low level to the charging and discharging modules, at this time the charging module is in the working state, the discharging module is in the prohibited working state, and the system is in the charging state for charging;

[0042] S1b, the USB interface is plugged into an OTG peripheral, including a mobile phone. At this time, the USB_ID signal is at a low level, and the control module determines that it is in a discharge state; the control module outputs a control signal CHG_EN at a high level to the charging and discharging modules. At this time, the charging module is in a disabled working state, and the discharging module is in a working state; at this time, the system is in an external discharge state, charging peripherals including mobile phones;

[0043] S2, control module is not powered on;

[0044] S2a, the USB interface is plugged into the charging cable, and the USB_ID signal is high level; because the control module is not working, CHG_EN remains low level, so the charging module works and the discharging module is prohibited from working; the system is in the charging state and the control module will be activated;

[0045] S2b, the USB interface is plugged into an OTG peripheral including a mobile phone, and the USB_ID signal is at a low level; since the control module is not working, the discharge module is prohibited from working, and the control module cannot be activated, and the circuit is in a shutdown state.

[0046] In the charging mode, the CHG_EN signal is pulled low, Q6 is turned off, and thus Q4 and Q5 are turned off; the discharge function is disabled, and the voltage on VUSB will not enter VCC5V; the control module recognizes that the circuit is in the discharge mode and pulls up the CHG_EN signal; at this time, Q3 in the charging module will be turned on instantly, thereby turning off Q2, and Q1 is also turned off, and the charging circuit is immediately closed; R10 and C4 in the discharge circuit pull CHE_EN high, and then Q6 will be turned on after waiting time T1, so that MOS tubes Q4 and Q5 are turned on at the same time, and the circuit enters the discharge mode.

[0047] The control module is connected to the ID pin of the USB interface. The control module connects the charging module and the discharging module. That is, the control module uses the same signal CHG_EN to control whether the system is in charging or discharging mode (CHG_EN low level is charging mode, high level is discharging mode). The output of the charging module is connected to the input of the discharging module, and the input of the charging module is connected to the output of the discharging module. Figure 1 .

[0048] The system works as follows:

[0049] When the control module is turned on: If the USB interface is plugged into the charging cable, the USB_ID signal is high, and the control module determines that it is in the charging state. The control module outputs the control signal CHG_EN as a low level to the charging and discharging modules. At this time, the charging module is in the working state, and the discharging module is in the prohibited working state. At this time, the system is in the charging state.

[0050] If the USB interface is plugged into an OTG peripheral (including a mobile phone), the USB_ID signal is at a low level, and the control module determines that it is in a discharge state. The control module outputs a control signal CHG_EN at a high level to the charging and discharging modules. At this time, the charging module is in a disabled working state, and the discharging module is in a working state. At this time, the system is in an external discharge state and can charge peripherals (including mobile phones).

[0051] When the control module is not turned on: If the USB interface is plugged into the charging cable, the USB_ID signal is high. Since the control module is not working, CHG_EN remains low, so the charging module works and the discharging module is prohibited from working. The system is in charging state and the control module will be activated.

[0052] If the USB interface is plugged into an OTG peripheral (including a mobile phone), the USB_ID signal is at a low level. Since the control module is not working, the discharge module is prohibited from working, and the control module cannot be activated, so the system will be in a shutdown state.

[0053] The specific circuit working principle is as follows:

[0054] Control module: The control module consists of an MCU chip and peripheral circuits, and is mainly responsible for processing input and output signals. Working principle of charging module: The charging module includes a surge electrostatic protection circuit, a MOS tube control circuit, and an overvoltage protection circuit (such as Figure 2 ).

[0055] C1 and D1 form a surge electrostatic protection circuit. When a short-term spike voltage from external input enters, the spike voltage will be absorbed by capacitor C1 and TVS diode D1. The MOS tube control circuit consists of Q1, Q2, and R5. When Q2 is turned on, Q1 is turned on; when Q2 is turned off, R5 makes the gate and source voltages of Q1 the same, thus turning off Q1.

[0056] Resistors R1, R2, R3, R4, R6, capacitor C2, and reference voltage regulator U1 together form an overvoltage protection circuit. Resistors R1 and R2 are connected in series, and their series voltage divider is connected to the REF pin of U1 (the first pin of U1). R1 ​​and R2 can set the highest allowed charging voltage. Resistor R3 is connected to the second pin of U1, which supplies power to U1 and also outputs the signal. Resistors R4 and R6 are connected in series, which can control the conduction and cutoff of transistor Q2 after voltage divider of the second pin of U1, and then control the conduction and cutoff of MOS tube Q1. Capacitor C2 can realize the charging slow start function, that is, when the VUSB voltage is effective, C2 will keep the base of Q2 at a low level for time T0, so that Q2 will be turned on after delaying T0, thereby controlling Q1 to also be turned on after delaying T0, which can prevent the situation where Q1 is turned on instantaneously due to the delay of U1 itself.

[0057] When the charging voltage VUSB is within the set range, the voltage on the U1 REF pin is also within the normal range. At this time, the output voltage on the second pin of U1 is relatively high and after the voltage is divided by resistors R4 and R6, Q2 is turned on, and then the MOS tube Q1 is turned on, and the system can be charged. When the charging voltage VUSB is higher than the preset range, the voltage on the U1 REF pin will also be high. At this time, the output voltage on the second pin of U1 will be low and after the voltage is divided by resistors R4 and R6, it is not enough to turn on Q2, and then the MOS tube Q1 is also cut off, and the system is prohibited from charging. Therefore, the overvoltage protection function is realized.

[0058] Working principle of discharge module: The discharge module is composed of MOS tube Q4, MOS tube Q5, triode Q6, resistor R8, resistor R9, resistor R10, resistor R11 and capacitor C4. Q4 and MOS tube Q5 are connected back to back to prevent the system from entering the charging mode uncontrolled after startup. Resistor R11 is a PPTC resistor that can limit the discharge current. Resistor R9, resistor R10, C4, and Q6 constitute the delay drive circuit of MOS tube Q4 and MOS tube Q5. When the system is in charging mode, the CHG_EN signal is pulled low, so Q6 is turned off, and thus Q4 and MOS tube Q5 are turned off. The discharge function is disabled, and the voltage on VUSB will not enter VCC5V.

[0059] When the control module recognizes that the system is in discharge mode, it will pull up the CHG_EN signal. At this time, Q3 in the charging module will be turned on instantly, thereby turning off Q2, Q1, and the charging circuit will be immediately closed. Resistors R10 and C4 in the discharge circuit pull CHE_EN high and wait for time T1 before Q6 turns on, so that MOS tubes Q4 and MOS tubes Q5 are turned on at the same time, and the system enters the discharge mode. In addition, adjusting the parameters of resistors R10 and C4 can adjust the time T1 to ensure that the charging MOS tube Q1 is completely turned off before the system enters the discharge mode to avoid confusion in system charging and discharging.

[0060] The above embodiments are only used to illustrate the present invention and are not intended to limit the technical solutions described in the present invention. Although the present invention has been described in detail with reference to the above embodiments, the present invention is not limited to the above specific implementation methods. Therefore, any modification or equivalent replacement of the present invention; and all technical solutions and improvements thereof that do not depart from the spirit and scope of the invention are included in the scope of the claims of the present invention.

Claims

1. A USB interface charge and discharge protection circuit, characterized in that: It includes a control module, a charging module and a discharging module, wherein the control module is composed of an MCU chip and a peripheral circuit, the control module is connected to the ID pin of the USB interface, and the control module is connected to the charging module and the discharging module; The control module uses the same signal CHG_EN to control the circuit to be in charging mode or discharging mode; the charging mode is CHG_EN low level, the discharging mode is high level, and the input part of the charging module is connected to the output end of the discharging module.

2. A USB interface charge and discharge protection circuit according to claim 1, characterized in that: The charging module includes a surge electrostatic protection circuit, a MOS tube control circuit and an overvoltage protection circuit.

3. A USB interface charge and discharge protection circuit according to claim 2, characterized in that: The surge electrostatic protection circuit is composed of C1 and D1. When a short-term spike voltage input from the outside enters, the spike voltage will be absorbed by the capacitor C1 and the TVS diode D1.

4. A USB interface charge and discharge protection circuit according to claim 2, characterized in that: The MOS tube control circuit is composed of Q1, Q2, and R5. When Q2 is turned on, Q1 is turned on; when Q2 is turned off, R5 makes the gate and source voltages of Q1 the same, so that Q1 is turned off.

5. A USB interface charge and discharge protection circuit according to claim 2, characterized in that: The overvoltage protection circuit is composed of a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R6, a capacitor C2, and a reference voltage source U1; the resistor R1 and the resistor R2 are connected in series, and their series voltage is connected to the REF pin of U1, the REF pin is the first pin of U1, and the resistor R1 and the resistor R2 set the highest allowable charging voltage; the resistor R3 is connected to the second pin of U1, and it supplies power to U1 and also outputs a signal; the resistor R4 and the resistor R6 are connected in series, and after dividing the voltage of the second pin of U1, they control the conduction and cutoff of the transistor Q2, and then control the conduction and cutoff of the MOS tube Q1.

6. A USB interface charge and discharge protection circuit according to claim 5, characterized in that: The capacitor C2 performs charging slow start. At the moment of VUSB voltage, C2 will keep the base of Q2 at a low level for time T0. Q2 will be turned on after a delay of T0, thereby controlling Q1 to be turned on after a delay of T0.

7. A USB interface charge and discharge protection circuit according to claim 6, characterized in that: The discharge module is composed of MOS tube Q4, MOS tube Q5, triode Q6, resistor R8, resistor R9, resistor R10, resistor R11 and capacitor C4; MOS tube Q4 and MOS tube Q5 are connected back to back, resistor R11 is a PPTC resistor, and resistor R9, resistor R10, C4 and Q6 constitute a delay driving circuit of MOS tube Q4 and MOS tube Q5.

8. A USB interface charge and discharge protection circuit according to claim 7, characterized in that: Transistor Q2, transistor Q3, and transistor Q6 can be replaced by MOS tubes; the USB interface can also be replaced by other types of charging interfaces.

9. A method for protecting a USB interface charging and discharging circuit, characterized in that: The following steps are involved: S1, the control module is powered on; S1a, the USB interface is plugged into the charging cable, the USB_ID signal is high, and the control module determines that it is in the charging state at this time; the control module outputs the control signal CHG_EN as a low level to the charging and discharging modules, at this time the charging module is in the working state, the discharging module is in the prohibited working state, and the system is in the charging state for charging; S1b, insert an OTG peripheral into the USB interface, the OTG peripheral includes a mobile phone, and the USB_ID signal is at a low level at this time, then the control module determines that it is in a discharge state at this time; the control module outputs a control signal CHG_EN at a high level to the charging and discharging modules, at this time the charging module is in a disabled working state, and the discharging module is in a working state; at this time the system is in an external discharge state, charging the peripherals including the mobile phone; S2, control module is not powered on; S2a, the USB interface is plugged into the charging cable, and the USB_ID signal is high level; because the control module is not working, CHG_EN remains low level, so the charging module works and the discharging module is prohibited from working; the system is in the charging state and the control module will be activated; S2b, the USB interface is plugged into an OTG peripheral including a mobile phone, and the USB_ID signal is at a low level; since the control module is not working, the discharge module is prohibited from working, and the control module cannot be activated, and the circuit is in a shutdown state.

10. A USB interface charging and discharging circuit protection method according to claim 8, characterized in that: In the charging mode state, the CHG_EN signal is pulled low, Q6 is turned off, and thus Q4 and Q5 are turned off; the discharge function is prohibited, and the voltage on VUSB will not enter VCC5V; the control module recognizes that the circuit is in the discharge mode and pulls up the CHG_EN signal; at this time, Q3 in the charging module will be turned on instantly, thereby turning off Q2, and Q1 is also turned off, and the charging circuit is immediately closed; R10 and C4 in the discharge circuit make CHE_EN pulled high, and then Q6 will be turned on after waiting time T1, so that MOS tubes Q4 and Q5 are turned on at the same time, and the circuit enters the discharge mode.

Citation Information

Cited By

  • Charging and discharging protection circuit of slow voltage dividing switch and lithium battery pack

    CN119401614A