Bidirectional charging and discharging same-port circuit

By utilizing a charging and discharging device detection circuit module and an MCU control circuit module in the bidirectional charging and discharging port circuit, the detection process of existing bidirectional charging and discharging technology is simplified, and low-cost Type-C bidirectional charging and discharging function is realized.

CN223785759UActive Publication Date: 2026-01-09SHENZHEN TIANYOU TECHNOLOGY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422623320.4
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2026-01-09
Estimated Expiration
2034-10-30

AI Technical Summary

Technical Problem

Existing bidirectional charging and discharging technologies are costly to implement and cannot achieve bidirectional charging and discharging of Type-C without using a PD protocol chip.

Method used

A bidirectional charging and discharging port circuit is adopted, including a charging and discharging interface, a charging and discharging device detection circuit module, an MCU, a charging circuit module, and a discharging circuit module. The charging and discharging status is determined by detecting the device voltage status, and the corresponding circuit module is controlled by the MCU to charge or discharge, which simplifies the PD protocol detection method.

Benefits of technology

It achieves low-cost, flexible bidirectional charging and discharging capabilities, simplifies the testing process, and reduces equipment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223785759U_ABST
    Figure CN223785759U_ABST
Patent Text Reader

Abstract

The utility model relates to the field of circuits, in particular to a bidirectional charging and discharging same-port circuit. Comprising a charging and discharging interface, a charging and discharging equipment detection circuit module used for detecting the charging and discharging state of external equipment, an MCU used for generating a control signal based on the charging state, a charging circuit module used for charging a battery, and a discharging circuit module used for discharging the battery. The charging and discharging device detection circuit module is used for detecting the voltage of the device inserted into the charging and discharging interface so as to judge the charging and discharging state of the device, and the MCU selectively enables one of the charging circuit module and the discharging circuit module according to the charging and discharging state so as to trigger the corresponding charging / discharging function. According to the invention, the simple charging and discharging equipment detection mode is adopted to judge the type of the inserted equipment, the adopted PD and other complex protocol detection modes are further simplified, and the charging and discharging circuit can select the advantages of low cost, flexible mode and the like according to own requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of circuits, specifically a bidirectional charging and discharging port circuit. Background Technology

[0002] Currently, devices such as power banks and portable chargers that support Type-C bidirectional input / output use PD protocol chips. Without PD protocol chips, Type-C is generally only used for unidirectional charging. Therefore, the implementation cost of existing bidirectional charging and discharging technologies is relatively high. Utility Model Content

[0003] In view of this, the purpose of this utility model is to provide a bidirectional charging and discharging port circuit to solve the problem of high implementation cost of existing bidirectional charging and discharging technology.

[0004] To achieve the above objectives, the present invention adopts the following technical solution:

[0005] This utility model discloses a bidirectional charging and discharging port circuit, including a charging and discharging interface for connecting to an external device, a charging and discharging device detection circuit module for detecting the charging and discharging state of the external device, an MCU for generating a first control signal based on the charging state and a second control signal based on the discharging state, a battery for charging or discharging, a charging circuit module for charging the battery based on the first control signal, and a discharging circuit module for discharging the battery based on the second control signal.

[0006] The detection terminal of the charging / discharging interface is connected to the input terminal of the charging / discharging device detection circuit module, the output terminal of the charging / discharging device detection circuit module is connected to the MCU, the MCU is also connected to the charging circuit module and the discharging circuit module, and the battery is connected to the charging circuit module and the discharging circuit module.

[0007] In one embodiment of this application, a power supply switch module is further included for supplying power to the charging and discharging device detection circuit module based on the switching control signal of the MCU; the power supply switch module is connected to the MCU and the charging and discharging device detection circuit module.

[0008] In one embodiment of this application, the charging and discharging interface includes an interface driver, and the charging and discharging device detection circuit module includes a first voltage divider resistor, a second voltage divider resistor, and an RC filter;

[0009] In this configuration, one end of the first voltage divider resistor, one end of the second voltage divider resistor, and the input terminal of the RC filter are all connected to the configuration channel pin of the interface driver. The other end of the first voltage divider resistor is connected to the power supply switch module, the other end of the second voltage divider resistor is grounded, and the output terminal of the RC filter is connected to the MCU.

[0010] In one embodiment of this application, the power supply switch module includes a first MOS transistor, the source of the first MOS transistor is connected to an external power supply, the gate of the first MOS transistor is connected to the MCU, and the drain of the first MOS transistor is connected to the charging and discharging device detection circuit module.

[0011] A current-limiting resistor is also provided between the source and gate of the first MOS transistor.

[0012] In one embodiment of this application, the charging circuit module includes a first switch control circuit, a boost circuit, and a boost drive circuit;

[0013] The input terminal of the boost circuit is connected to the power pin of the interface driver through the first switch control circuit. The control terminal of the first switch control circuit is connected to the MCU. The boost drive circuit is connected to the boost circuit and the MCU. The boost drive circuit is used to discharge the boost circuit to protect the MCU when the boost circuit fails. The output terminal of the boost circuit is connected to the positive terminal of the battery after a diode is connected in series.

[0014] In one embodiment of this application, the first switch control circuit includes a second MOSFET and a third MOSFET;

[0015] The gate of the second MOSFET is connected to the MCU after being connected in series with a protection resistor. The source of the second MOSFET is grounded. The drain of the second MOSFET is connected to the gate of the third MOSFET. The source of the third MOSFET is connected to the power supply pin of the interface driver as an input terminal. The drain of the third MOSFET is connected to one end of the inductor as an output terminal.

[0016] A current-limiting resistor is provided between the source and gate of the second MOS transistor, and between the source and gate of the second MOS transistor.

[0017] In one embodiment of this application, the boost circuit includes multiple parallel-connected filter capacitors, inductors, and a fourth MOSFET, and the boost drive circuit includes a first transistor and a protection resistor;

[0018] One end of the plurality of parallel filter capacitors is grounded, and the other end of the plurality of parallel filter capacitors is connected to the drain of the third MOS transistor and one end of the inductor. The base of the first transistor is connected to the MCU after being connected in series with a protection resistor. The collector of the first transistor is grounded, and the emitter of the first transistor is connected to the gate of the fourth MOS transistor. The source of the fourth MOS transistor is grounded, and the drain of the fourth MOS transistor is connected between the other end of the inductor and the diode.

[0019] In one embodiment of this application, the discharge circuit module includes a discharge management chip and a second switch control circuit;

[0020] The input terminal of the discharge management chip is connected to the positive terminal of the battery through the second switch control circuit, and the output terminal of the discharge management chip is connected to the power supply pin of the interface driver through a power MOSFET; the control terminal of the second switch control circuit is connected to the MCU.

[0021] In one embodiment of this application, the second switch control circuit includes a second transistor and a fifth MOSFET. The base of the second transistor is connected to the MCU after being connected in series with a protection resistor. The emitter of the second transistor is grounded. The collector of the second transistor is connected to the gate of the fifth MOSFET after being connected in series with a resistor. The drain of the fifth MOSFET is connected to the input terminal of the discharge management chip. The source of the fifth MOSFET is connected to the positive terminal of the battery.

[0022] A current-limiting resistor is provided between the source and gate of the fifth MOS transistor.

[0023] In one embodiment of this application, the RC filter includes a filter resistor and a filter capacitor. One end of the filter resistor is connected as an input terminal to the configuration channel pin of the interface driver, and the other end of the filter resistor is connected as an output terminal to the MCU and one end of the filter capacitor, respectively. The other end of the filter capacitor is grounded.

[0024] The beneficial effects of this utility model are as follows: This utility model provides a bidirectional charging / discharging port circuit, including a charging / discharging interface for connecting external devices, a charging / discharging device detection circuit module for detecting the charging / discharging state of the external device, an MCU for generating a first control signal based on the charging state and a second control signal based on the discharging state, a battery for charging or discharging, a charging circuit module for charging the battery based on the first control signal, and a discharging circuit module for discharging the battery based on the second control signal. This application utilizes the charging / discharging device detection circuit module to check the voltage of the device inserted into the charging / discharging interface, thereby determining the charging / discharging state of the device. The MCU selectively enables either the charging circuit module or the discharging circuit module based on the charging / discharging state, thereby triggering the corresponding charging / discharging function. This application employs this simple charging / discharging device detection method to determine the type of inserted device, further simplifying the use of complex protocol detection methods such as PD. Furthermore, the charging / discharging circuit can be customized according to specific needs, offering advantages such as low cost and flexibility. Attached Figure Description

[0025] The present invention will be further described below with reference to the accompanying drawings and embodiments:

[0026] Figure 1 This is a schematic diagram of the overall structure of a bidirectional charging and discharging port circuit according to the present invention.

[0027] Figure 2 This is a circuit diagram of the charging / discharging interface and the charging / discharging device detection circuit module of this utility model.

[0028] Figure 3 This is a circuit diagram of the power supply switch module of this utility model;

[0029] Figure 4 This is a circuit diagram of the charging circuit module of this utility model;

[0030] Figure 5 This is a circuit diagram of the discharge circuit module of this utility model;

[0031] Figure 6 This is a circuit diagram of the MCU of this utility model. Detailed Implementation

[0032] The following specific examples illustrate the implementation of this utility model. Those skilled in the art can easily understand other advantages and effects of this utility model from the content disclosed in this specification. This utility model can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this utility model. It should be noted that, unless otherwise specified, the following embodiments and features can be combined with each other.

[0033] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the layers related to the present invention and are not drawn according to the actual number, shape and size of the layers in the actual implementation. In the actual implementation, the form, number and proportion of each layer can be arbitrarily changed, and the layer layout may also be more complex.

[0034] Numerous details are explored in the following description to provide a more thorough explanation of embodiments of the present invention; however, it will be apparent to those skilled in the art that embodiments of the present invention may be practiced without these specific details.

[0035] like Figures 1-6 As shown, a bidirectional charging and discharging port circuit in this application includes a charging and discharging interface for connecting to an external device, a charging and discharging device detection circuit module for detecting the charging and discharging state of the external device, an MCU for generating a first control signal based on the charging state and a second control signal based on the discharging state, a battery for charging or discharging, a charging circuit module for charging the battery based on the first control signal, and a discharging circuit module for discharging the battery based on the second control signal.

[0036] The detection terminal of the charging / discharging interface is connected to the input terminal of the charging / discharging equipment detection circuit module, the output terminal of the charging / discharging equipment detection circuit module is connected to the MCU, the MCU is also connected to the charging circuit module and the discharging circuit module, and the battery is connected to the charging circuit module and the discharging circuit module.

[0037] This application utilizes a charging / discharging device detection circuit module to check the voltage of a device inserted into the charging / discharging interface, thereby determining the device's charging / discharging status. The MCU then selectively enables either the charging or discharging circuit module based on this status, triggering the corresponding charging / discharging function. This application employs a simple charging / discharging device detection method to determine the type of inserted device, further simplifying complex protocol detection methods such as PD. Furthermore, the charging / discharging circuit can be customized to meet specific needs, offering advantages such as low cost and flexibility.

[0038] The bidirectional charge / discharge circuit of this application also includes a power supply switch module for supplying power to the charge / discharge device detection circuit module based on the MCU's switch control signal; the power supply switch module is connected to the MCU and the charge / discharge device detection circuit module.

[0039] Specifically, the charging and discharging interface includes an interface driver. This application uses a Type-C interface driver. The charging and discharging device detection circuit module includes a first voltage divider resistor R4, a second voltage divider resistor R9, and an RC filter.

[0040] One end of the first voltage divider resistor R4, one end of the second voltage divider resistor R9, and one end of the RC filter are all connected to the configuration channel pin CC of the interface driver. The other end of the first voltage divider resistor R4 is connected to the power supply switch module (CC TYPEC-CC_VDD). The other end of the second voltage divider resistor R9 is grounded. The other end of the RC filter is connected to the PA6 pin of the MCU through the line CC_ADC.

[0041] A filter capacitor C88 is provided between the other end of the RC filter and the MCU. One end of the filter capacitor C88 is connected between the other end of the RC filter and the MCU, and the other end of the filter capacitor C88 is grounded.

[0042] The RC filter includes a filter resistor R166 and a filter capacitor C88. One end of the filter resistor R166 is connected as an input terminal to the configuration channel pin CC of the interface driver. The other end of the filter resistor R166 is connected as an output terminal to the MCU and one end of the filter capacitor C88. The other end of the filter capacitor C88 is grounded.

[0043] The power supply switch module includes a first MOSFET Q5, the source of which is connected to an external power supply VDD, the gate of which is connected to an MCU (TYPEC_CCEN), and the drain of which is connected to a charge / discharge device detection circuit module; a current-limiting resistor R157 is also provided between the source and gate of the first MOSFET Q5.

[0044] The MCU controls the on / off state of the first MOSFET Q5 by outputting high and low levels, thereby controlling whether the external power supply VDD supplies power to the charging and discharging device detection circuit module. The charging and discharging device detection circuit module works when powered on.

[0045] Specifically, the MCU first applies a voltage to the CC pin of the interface driver. When an external device is inserted, the voltage at the CC pin of the device changes because there is voltage or resistance at the CC pin. The MCU then detects whether the inserted TYPEC device is a charging or discharging device based on the range of voltage change.

[0046] In one embodiment of this application, the charging circuit module includes a first switch control circuit, a boost circuit, and a boost drive circuit;

[0047] The input terminal of the boost circuit is connected to the power supply pin of the interface driver through the first switch control circuit. The control terminal of the first switch control circuit is connected to the MCU. The boost drive circuit is connected to the boost circuit and the MCU. The boost drive circuit is used to discharge the boost circuit to protect the MCU when the boost circuit fails.

[0048] The output of the boost circuit is connected in series with a diode and then connected to the positive terminal BAT+ of the battery.

[0049] The input terminal VIN of the first switch control circuit is connected to the power supply pin VBUS of the interface driver, and the control terminal Charge EN of the first switch control circuit is connected to the MCU.

[0050] Specifically, the first switch control circuit includes a second MOSFET Q35 and a third MOSFET Q2;

[0051] The gate of the second MOSFET Q35 is connected to the MCU after being connected in series with the protection resistor R152. The source of the second MOSFET Q35 is grounded. The drain of the second MOSFET Q35 is connected to the gate of the third MOSFET Q2. The source of the third MOSFET Q2 is connected as the input terminal to the power supply pin VBUS of the interface driver. The drain of the third MOSFET Q2 is connected as the output terminal to one end of the inductor L1.

[0052] A current-limiting resistor is provided between the source and gate of the second MOSFET Q35, and between the source and gate of the second MOSFET Q35, namely R153 and R151 respectively.

[0053] In this application, the MCU outputs an enable signal to control the closing of the second MOSFET Q35, which in turn controls the closing of the third MOSFET Q2. The second MOSFET Q35 is used to isolate the MCU and the main circuit, which can effectively protect the MCU.

[0054] In one embodiment of this application, the boost circuit includes multiple parallel filter capacitors (C2, C3, and C4), an inductor L1, and a fourth MOSFET Q. The boost drive circuit includes a first transistor Q4 and a protection resistor R1. One end of the multiple parallel filter capacitors (C2, C3, and C4) is grounded, and the other end of the multiple parallel filter capacitors (C2, C3, and C4) is connected to the drain of the third MOSFET Q2 and one end of the inductor L1. The base of the first transistor Q4 is connected to the MCU after being connected in series with the protection resistor R1. The collector of the first transistor Q4 is grounded, the emitter of the first transistor Q4 is connected to the gate of the fourth MOSFET Q, the source of the fourth MOSFET Q is grounded, and the drain of the fourth MOSFET Q is connected between the other end of the inductor L1 and the diode D1.

[0055] In this application, the boost circuit boosts the input voltage to a suitable voltage to charge the battery. During this process, if the fourth MOSFET Q fails, it will block the high voltage drop from the main line, potentially damaging the MCU. Therefore, when the fourth MOSFET Q is turned off, the first transistor Q4 can quickly discharge to protect the MCU.

[0056] In one embodiment of this application, the discharge circuit module includes a discharge management chip U9 and a second switch control circuit;

[0057] The input terminal VIN of the discharge management chip U9 is connected to the positive terminal BAT+ of the battery through the second switch control circuit, and the output terminal VOUT of the discharge management chip U9 is connected to the power supply pin VBUS of the interface driver through the power MOSFET Q12; the control terminal of the second switch control circuit is connected to the MCU.

[0058] Meanwhile, the control terminal of the power MOSFET Q12 is connected to the output terminal VOUT of the discharge management chip U9. In other words, when the output terminal VOUT of the discharge management chip U9 outputs a signal, the power MOSFET Q12 is automatically turned on to achieve precise current control and voltage regulation.

[0059] The MCU controls the switching state of the second switch control circuit by outputting an enable signal, thereby controlling whether the discharge management chip U9 is working.

[0060] Specifically, the second switch control circuit includes a second transistor Q16 and a fifth MOSFET Q11. The base of the second transistor Q16 is connected to the MCU via a protection resistor R43 and then to the OUTTYPE EN line. The emitter of the second transistor Q16 is grounded. The collector of the second transistor Q16 is connected to the gate of the fifth MOSFET Q11 via a resistor R30. The drain of the fifth MOSFET Q11 is connected to the input terminal VIN of the discharge management chip U9. The source of the fifth MOSFET Q11 is connected to the positive terminal BAT+ of the battery.

[0061] A current-limiting resistor R24 ​​is provided between the source and gate of the fifth MOSFET Q11.

[0062] The peripheral circuit of the discharge management chip U9 in this application adopts the corresponding typical circuit, and the specific result is shown in the figure, which will not be described in detail here.

[0063] In the above embodiments, although the present invention has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. The embodiments of the present invention are intended to cover all such substitutions, modifications, and variations falling within the broad scope of the appended claims.

[0064] The above embodiments are merely illustrative of the principles and effects of this utility model and are not intended to limit the scope of this utility model. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of this utility model. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in this utility model should still be covered by the claims of this utility model.

Claims

1. A bidirectional charging and discharging port circuit, characterized in that, It includes a charging and discharging interface for connecting external devices, a charging and discharging device detection circuit module for detecting the charging and discharging state of external devices, an MCU for generating a first control signal based on the charging state and a second control signal based on the discharging state, a battery for charging or discharging, a charging circuit module for charging the battery based on the first control signal, and a discharging circuit module for discharging the battery based on the second control signal. The detection terminal of the charging / discharging interface is connected to the input terminal of the charging / discharging device detection circuit module, the output terminal of the charging / discharging device detection circuit module is connected to the MCU, the MCU is also connected to the charging circuit module and the discharging circuit module, and the battery is connected to the charging circuit module and the discharging circuit module.

2. The bidirectional charging and discharging port circuit according to claim 1, characterized in that, It also includes a power supply switch module for supplying power to the charging and discharging device detection circuit module based on the switching control signal of the MCU; the power supply switch module is connected to the MCU and the charging and discharging device detection circuit module.

3. The bidirectional charging and discharging port circuit according to claim 2, characterized in that, The charging and discharging interface includes an interface driver, and the charging and discharging device detection circuit module includes a first voltage divider resistor, a second voltage divider resistor, and an RC filter. In this configuration, one end of the first voltage divider resistor, one end of the second voltage divider resistor, and the input terminal of the RC filter are all connected to the configuration channel pin of the interface driver. The other end of the first voltage divider resistor is connected to the power supply switch module, the other end of the second voltage divider resistor is grounded, and the output terminal of the RC filter is connected to the MCU.

4. The bidirectional charging and discharging port circuit according to claim 2, characterized in that, The power supply switch module includes a first MOSFET, the source of which is connected to an external power supply, the gate of which is connected to the MCU, and the drain of which is connected to the charging and discharging device detection circuit module. A current-limiting resistor is also provided between the source and gate of the first MOS transistor.

5. A bidirectional charging and discharging port circuit according to claim 3, characterized in that, The charging circuit module includes a first switch control circuit, a boost circuit, and a boost drive circuit. The input terminal of the boost circuit is connected to the power pin of the interface driver through the first switch control circuit. The control terminal of the first switch control circuit is connected to the MCU. The boost drive circuit is connected to the boost circuit and the MCU. The boost drive circuit is used to discharge the boost circuit to protect the MCU when the boost circuit fails. The output terminal of the boost circuit is connected to the positive terminal of the battery after a diode is connected in series.

6. The bidirectional charging and discharging port circuit according to claim 5, characterized in that, The first switch control circuit includes a second MOSFET and a third MOSFET; The gate of the second MOSFET is connected to the MCU after being connected in series with a protection resistor. The source of the second MOSFET is grounded. The drain of the second MOSFET is connected to the gate of the third MOSFET. The source of the third MOSFET is connected to the power supply pin of the interface driver as an input terminal. The drain of the third MOSFET is connected to one end of an inductor as an output terminal. A current-limiting resistor is provided between the source and gate of the second MOS transistor, and between the source and gate of the second MOS transistor.

7. A bidirectional charging and discharging port circuit according to claim 6, characterized in that, The boost circuit includes multiple parallel-connected filter capacitors, inductors, and a fourth MOSFET; the boost drive circuit includes a first transistor and a protection resistor. One end of the plurality of parallel filter capacitors is grounded, and the other end of the plurality of parallel filter capacitors is connected to the drain of the third MOS transistor and one end of the inductor. The base of the first transistor is connected to the MCU after being connected in series with a protection resistor. The collector of the first transistor is grounded, and the emitter of the first transistor is connected to the gate of the fourth MOS transistor. The source of the fourth MOS transistor is grounded, and the drain of the fourth MOS transistor is connected between the other end of the inductor and the diode.

8. A bidirectional charging and discharging port circuit according to claim 3, characterized in that, The discharge circuit module includes a discharge management chip and a second switch control circuit. The input terminal of the discharge management chip is connected to the positive terminal of the battery through the second switch control circuit, and the output terminal of the discharge management chip is connected to the power supply pin of the interface driver through a power MOSFET; the control terminal of the second switch control circuit is connected to the MCU.

9. A bidirectional charging and discharging port circuit according to claim 8, characterized in that, The second switch control circuit includes a second transistor and a fifth MOSFET. The base of the second transistor is connected to the MCU after being connected in series with a protection resistor. The emitter of the second transistor is grounded. The collector of the second transistor is connected to the gate of the fifth MOSFET after being connected in series with a resistor. The drain of the fifth MOSFET is connected to the input terminal of the discharge management chip. The source of the fifth MOSFET is connected to the positive terminal of the battery. A current-limiting resistor is provided between the source and gate of the fifth MOS transistor.

10. A bidirectional charging and discharging port circuit according to claim 3, characterized in that, The RC filter includes a filter resistor and a filter capacitor. One end of the filter resistor is connected as an input terminal to the configuration channel pin of the interface driver, and the other end of the filter resistor is connected as an output terminal to the MCU and one end of the filter capacitor. The other end of the filter capacitor is grounded.