Power supply circuit, power supply method, terminal equipment and storage medium
By designing a power supply circuit for reverse boost and voltage conversion in the terminal equipment, the problem of insufficient power supply of OTG equipment is solved, high-power power supply and fast charging are achieved, and charging efficiency is significantly improved.
Patent Information
- Application Number
- CN202311016977.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-11
- Publication Date
- 2025-02-18
AI Technical Summary
The existing terminal equipment has limited power when powered by OTG equipment, which cannot meet the charging needs of high-power equipment, and cannot establish a fast charging connection with OTG equipment.
A power supply circuit is designed, including input and output interface, voltage conversion circuit, charge pump circuit and processing unit, which is reverse boosted through the charge pump circuit, and the voltage conversion circuit is used to adjust the power supply voltage to output a high-power OTG power supply voltage. , and at the same time, interact with OTG devices through the fast charging protocol to achieve fast charging.
It significantly improves the reverse power supply power of terminal devices, shortens the charging time of OTG devices, and improves the charging efficiency of OTG devices.
Smart Images

Figure CN119482787A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a power supply circuit, a power supply method, a terminal device and a storage medium. Background Art
[0002] OTG (On The Go) is a technology published by the USB standardization organization and mainly used for data exchange between different devices. A device with OTG function is an OTG device. An OTG device can be used as a master device or a slave device.
[0003] In the related technology, when a terminal device with OTG function detects that other OTG devices are connected, the OTG device can be powered by an internal power supply module. However, the terminal device can generally only provide a discharge power of no more than 10 watts for the OTG device. Due to the limited discharge power, the discharge application scenarios of the terminal device are limited. Summary of the invention
[0004] In order to achieve high-power discharge of terminal equipment and establish reverse fast charging between the terminal equipment and the OTG device, the embodiments of the present disclosure provide a power supply circuit, a power supply method, a terminal equipment and a storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a power supply circuit, which is applied to a terminal device, and the power supply circuit includes an input and output interface, a voltage conversion circuit, a charge pump circuit, and a processing unit;
[0006] The input and output interface is used to connect to external devices;
[0007] The output end of the voltage conversion circuit is connected to the input-output interface, the input end of the voltage conversion circuit is connected to the first end of the charge pump circuit, and the second end of the charge pump circuit is connected to the battery of the terminal device;
[0008] The processing unit is configured to: when it is detected that the input / output interface is plugged into an OTG device, control the charge pump circuit and the voltage conversion circuit to supply power to the OTG device.
[0009] In some embodiments, the power supply circuit of the present disclosure further includes a charging branch and a power management circuit, the charging branch includes an on-off switch, one end of the on-off switch is connected to the input-output interface, and the other end is connected to the power management circuit and the first end of the charge pump circuit, and the on-off switch is used to control the on-off of the charging branch;
[0010] The processing unit is configured to: when it is detected that the input / output interface is plugged into an OTG device, control the on / off switch to be turned off.
[0011] In some embodiments, the control end of the on-off switch is connected to the control pin of the charge pump circuit;
[0012] The processing unit is configured to: when it is detected that the input / output interface is plugged into an OTG device, control the working mode of the charge pump circuit to switch to a reverse boost mode, and control the on / off switch to be disconnected through a control pin of the charge pump circuit.
[0013] In some embodiments, the on-off switch includes a first transistor and a second transistor connected in series, and current directions of parasitic diodes of the first transistor and the second transistor are opposite.
[0014] In some embodiments, the power management circuit includes a first power supply end, a second power supply end and a protocol communication end, the first power supply end is connected to the other end of the on-off switch, the second power supply end is connected to the battery, and the protocol communication end is used to perform fast charging protocol communication with the OTG device through the input and output interface.
[0015] In some embodiments, the processing unit is configured to: when the terminal device supplies power to the OTG device, send fast charging gear information to the OTG device through the protocol communication end of the power management circuit, and receive fast charging application information returned by the OTG device, and configure the voltage conversion circuit according to the fast charging application information so that the voltage conversion circuit provides the OTG device with corresponding voltage and current.
[0016] In some embodiments, an overvoltage protection circuit is also included. The overvoltage protection circuit is arranged between the voltage conversion circuit and the input-output interface, and the overvoltage protection circuit is configured to disconnect the power supply of the voltage conversion circuit when the output voltage of the voltage conversion circuit is greater than a preset value.
[0017] In some embodiments, the input-output interface includes a USB Type C interface.
[0018] In a second aspect, an embodiment of the present disclosure provides a power supply method, which is applied to a terminal device, and the method includes:
[0019] When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the charge pump circuit of the terminal device outputs the power supply to the back-end voltage conversion circuit;
[0020] The power supply is configured by the voltage conversion circuit to supply power to the OTG device.
[0021] In some implementations, when it is detected that the input / output interface of the terminal device is plugged into an OTG device, outputting the power supply to the back-end voltage conversion circuit through the charge pump circuit of the terminal device includes:
[0022] When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the working mode of the charge pump circuit is controlled to switch to the reverse boost mode;
[0023] The power supply provided by the battery of the terminal device is boosted by the charge pump circuit and then output to the voltage conversion circuit.
[0024] In some implementations, configuring the power supply through the voltage conversion circuit to supply power to the OTG device includes:
[0025] When powering the OTG device, fast charging gear information is sent to the OTG device through a power management circuit;
[0026] The power management circuit receives fast charging application information sent by the OTG device, where the fast charging application information is charging information determined by the OTG device according to the fast charging gear information;
[0027] The voltage conversion circuit is configured according to the fast charging application information so that the voltage conversion circuit provides corresponding voltage and current for the OTG device.
[0028] In some embodiments, the power supply method of the present disclosure further includes:
[0029] When it is detected that the input / output interface of the terminal device is plugged into an OTG device, the charging branch of the terminal device is controlled to be disconnected.
[0030] In a third aspect, an embodiment of the present disclosure provides a terminal device, comprising a power supply circuit according to any embodiment of the first aspect.
[0031] In a fourth aspect, an embodiment of the present disclosure provides a terminal device, including a power supply module, wherein the power supply module is configured to:
[0032] When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the charge pump circuit of the terminal device outputs the power supply to the back-end voltage conversion circuit;
[0033] The power supply is configured by the voltage conversion circuit to supply power to the OTG device.
[0034] In a fifth aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in any embodiment of the second aspect.
[0035] The power supply circuit of the embodiment of the present disclosure includes an input-output interface, a voltage conversion circuit, a charge pump circuit and a processing unit, the output end of the voltage conversion circuit is connected to the input-output interface, the input end of the voltage conversion circuit is connected to the first end of the charge pump circuit, the second end of the charge pump circuit is connected to the battery, and the processing unit is configured to control the charge pump circuit and the voltage conversion circuit to power the OTG device when it is detected that the input-output interface is inserted into the OTG device. In the embodiment of the present disclosure, when the terminal device supplies power to the OTG device, the charge pump circuit is used for reverse boosting, and then the OTG power supply voltage is adjusted by the voltage conversion circuit, so that a high-power OTG power supply voltage can be output, and fast charging can be established by interacting with the fast charging protocol of the OTG device. Compared with the traditional OTG power supply solution, the reverse power supply power of the terminal device is greatly improved, and the charging time of the OTG device is shortened. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0037] Figure 1 It is a schematic diagram of a power supply circuit of a terminal device in the related technology.
[0038] Figure 2 is a structural diagram of a power supply circuit in some embodiments of the present disclosure.
[0039] Figure 2a It is a schematic diagram of the principle of the power supply circuit in some embodiments of the present disclosure.
[0040] Figure 2b It is a schematic diagram of the principle of the power supply circuit in some embodiments of the present disclosure.
[0041] Figure 3 is a structural diagram of a power supply circuit in some embodiments of the present disclosure.
[0042] Figure 4 is a structural diagram of a power supply circuit in some embodiments of the present disclosure.
[0043] Figure 5 is a flow chart of a power supply method according to some embodiments of the present disclosure.
[0044] Figure 6 is a flow chart of a power supply method according to some embodiments of the present disclosure.
[0045] Figure 7 is a flow chart of a power supply method according to some embodiments of the present disclosure.
[0046] Figure 8 It is a structural block diagram of a terminal device in some implementation modes of the present disclosure. DETAILED DESCRIPTION
[0047] The technical solution of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described implementation is a part of the implementation of the present disclosure, rather than all the implementations. Based on the implementation in the present disclosure, all other implementations obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different implementations of the present disclosure described below can be combined with each other as long as they do not conflict with each other.
[0048] OTG (On The Go) is a technology published by the USB standardization organization and mainly used for data exchange between different devices. A device with OTG function is an OTG device. An OTG device can be used as a master device or a slave device.
[0049] Common OTG devices include, for example, USB flash drives, Type C earphones, and mobile phone dongle accessories. When a terminal device with OTG function detects that other OTG devices are connected, it can power the OTG devices through the internal power supply module. For example, after the user inserts the USB flash drive into the charging port of the mobile phone, the mobile phone can detect that an OTG device is connected, and then power the USB flash drive through the charging port.
[0050] In the related art, the OTG power supply of the terminal device is generally provided by the PMIC (Power Management Integrated Circuit) of the terminal device. The common working voltage of the OTG device is 5V, and the battery of the terminal device is generally 3.7V to 4.3V. The PMIC of the terminal device boosts the battery voltage to 5V and then outputs it. The process of the terminal device supplying power to the OTG device is the process of the terminal device discharging.
[0051] With the development of battery technology, the battery energy density and battery capacity of terminal devices are getting higher and higher. For example, for some tablet computers, the battery capacity has exceeded 10,000 mAh, which is equivalent to the storage capacity of a mobile power bank.
[0052] In some scenarios, users expect to use a device with sufficient power to temporarily charge a device with insufficient power. For example, in an outdoor emergency, if the user's mobile phone runs out of power but the tablet has sufficient power, if the mobile phone can be connected to the tablet as an OTG device (Sink) that needs power, the tablet can be used as a power source (Source) to charge the mobile phone.
[0053] However, from the above, it can be seen that the OTG power supply voltage of existing terminal devices is only 5V, and can only provide a discharge power of no more than 10W at most. It is impossible to establish high-power fast charging with OTG devices, so the efficiency of using terminal devices to charge other OTG devices with higher power consumption is very low.
[0054] Based on the defects of the above-mentioned related technologies, the embodiments of the present disclosure provide a power supply circuit, a power supply method, a terminal device and a storage medium, aiming to achieve high-power discharge of the terminal device, establish reverse fast charging between the terminal device and the OTG device, and improve the charging efficiency of the OTG device.
[0055] To facilitate understanding of the embodiments of the present disclosure, Figure 1 The power supply circuit structure of the terminal device in the related art is shown below. Figure 1 The circuit diagram illustrates the charging and discharging principle of conventional terminal equipment.
[0056] like Figure 1 As shown, the power supply circuit of the terminal device includes a Type C interface, a PMIC and a charge pump, and the PMIC and the charge pump are generally integrated chips.
[0057] When the terminal device is charging, the Type C interface is connected to the charger. At this time, the charger acts as the power source (Source) and the terminal device acts as the power consumption device (Sink). The current flow direction at this time can be referred to Figure 1 The dotted arrow direction in the figure means that after the power supply passes through the Type C interface and the Switch, one branch passes through the PMIC to power the system, and the other branch passes through the charge pump to step down the voltage and charge the battery.
[0058] During the charging process, the PMIC can perform a fast charging protocol handshake with the charger through the CC line. If the handshake is successful, the fast charging of the corresponding protocol can be achieved through the charge pump. The fast charging protocol may include, for example, PD (Power Delivery) fast charging protocol, QC (Quick Charge) fast charging protocol or other private fast charging protocols, etc., which is not limited in the present disclosure.
[0059] When an OTG device is inserted into the Type C port, the terminal device detects that the inserted device is an OTG device (such as a USB flash drive, headphones, etc.), so the terminal device needs to act as a power source (Source) and the OTG device as a power consumption device (Sink). The current flow direction at this time can be referred to Figure 1 The dotted arrow direction in the figure indicates that the battery voltage (3.7V to 4.3V) of the terminal device is boosted (5V) by the boost circuit in the PMIC and then powers the OTG device through the Switch and the Type C interface.
[0060] Due to the hardware limitation of PMIC itself, the OTG discharge power that terminal equipment can provide generally does not exceed 10W. For low-power OTG devices such as USB flash drives and headphones, the discharge power of terminal equipment is sufficient to meet their normal work. However, for high-power mobile phones, tablets and other devices, the OTG discharge power of terminal equipment cannot meet their charging requirements, so the terminal equipment cannot charge them, or can only establish very low-power charging, with poor charging speed and effect.
[0061] Based on this, an embodiment of the present disclosure provides a power supply circuit, which changes the traditional solution of using PMIC for discharge. Instead, on the basis of using a charge pump circuit for reverse boost discharge, a voltage conversion circuit is added to power the OTG device, thereby increasing the discharge power of the terminal device, and can interact with the OTG device for fast charging protocol to achieve fast charging of the OTG device.
[0062] Figure 2 The schematic diagram of the power supply circuit in some embodiments of the present disclosure is shown below. Figure 2 The structure and principle of the power supply circuit disclosed in the present invention are described.
[0063] like Figure 2 As shown, in some embodiments, the power supply circuit of the example of the present disclosure includes an input-output interface, a voltage conversion circuit, a charge pump circuit, and a processing unit.
[0064] The input / output interface (IO interface) refers to the power interface of the terminal device. Since the terminal device itself has the OTG function, the power interface can be used not only as a charging interface but also as a discharging interface. The input / output interface is used to connect external devices. When the terminal device is used as a power source (Source), the external device can be, for example, an OTG device; when the terminal device is used as a power consumption device (Sink), the external device can be, for example, a charger.
[0065] In the embodiments of the present disclosure, the input and output interface may be an interface of any form, such as a USB (Universal Serial Bus) interface, a Micro USB interface, a USB Type C interface, etc., and the present disclosure does not impose any limitation on this.
[0066] The charge pump circuit is a switched capacitor voltage converter. The charge pump has a high electrical efficiency and is therefore widely used in fast charging circuits of terminal devices as a high-power fast charging circuit. The charge pump circuit in the terminal device is usually a step-down circuit, and its operating modes include 2:1, 4:1, etc. For example, when the charge pump circuit works in 2:1 mode, its input voltage is 8V, and the output voltage will be 4V.
[0067] A voltage conversion circuit is a power supply circuit with adjustable input and output voltages, such as a Buck boost circuit, which can adjust the values of input voltage and output voltage according to configuration instructions.
[0068] A processing unit refers to a processor having one or more processing cores, which can perform single-thread or multi-thread operations, and is used to parse instructions to perform operations such as acquiring data, performing logical operations, and issuing operation processing results. In the embodiments of the present disclosure, the processing unit may include a processor of a terminal device, such as a CPU (Central Processing Unit) or a SoC (System on Chip) of the terminal device; it may also include a power management circuit, or include both a processor and a power management circuit, and the present disclosure does not limit this.
[0069] In the embodiments of the present disclosure, the power supply circuit may further include a power management circuit. The power management circuit refers to a power management chip of a terminal device, which is used to manage the power function of the terminal device and realize functions such as charging and OTG discharging of the terminal device. In some embodiments, the power management circuit may be a PMIC.
[0070] In the embodiments of the present disclosure, the charge pump circuit, the voltage conversion circuit and the power management circuit can be implemented in the form of integrated circuits. For example, the charge pump circuit can be a charge pump chip, the voltage conversion circuit can be a Buck boost chip, and the power management circuit can be a PMIC chip.
[0071] exist Figure 2 In the example, the power supply circuit includes two branches, namely a charging branch for charging a battery of a terminal device, and a discharging branch for supplying power to an OTG device.
[0072] For the charging branch, the input and output interfaces are respectively connected to the first power supply terminal VIN1 of the power management circuit and the first terminal VIN2 of the charge pump circuit through an on-off switch, the second terminal VOUT1 of the charge pump circuit and the second power supply terminal VBAT of the power management circuit are connected to the battery of the terminal device, and at the same time, the load terminal VPH of the power management circuit is connected to the system load.
[0073] When the input and output interfaces of the terminal device are connected to the charger, the terminal device acts as a power-consuming device (Sink), that is, the charger charges the terminal device. The direction of the charging current at this time can be as follows: Figure 2a Shown by the thick solid line.
[0074] like Figure 2a As shown, after the charging power passes through the on-off switch, one path passes through the first power supply terminal VIN1 of the power management circuit to power the power management circuit, and flows out through the load terminal VPH to power the system load. The other path flows into the first terminal VIN2 of the charge pump circuit. After the charge pump circuit steps down the input voltage, it flows out through the second terminal VOUT1 to charge the battery.
[0075] And at the beginning of charging, the protocol communication terminal CC of the power management circuit interacts with the charger through the fast charging protocol. After the fast charging protocol handshake is successful, the power management circuit applies to the charger for the corresponding voltage and current, thereby achieving high-power fast charging.
[0076] Regarding the above-mentioned charging process of the terminal device, those skilled in the art can undoubtedly understand and fully implement it based on the above disclosure, and this disclosure will not elaborate on it.
[0077] For the discharge branch, the output terminal VOUT2 of the voltage conversion circuit is connected to the input-output interface, and the input terminal VIN3 of the voltage conversion circuit is connected to the first terminal VIN2 of the charge pump circuit.
[0078] When the input and output interface of the terminal device is connected to the OTG device, the terminal device acts as a power source (Source) and the OTG device acts as a power consumption device (Sink). At this time, the discharge current direction can be as follows: Figure 2b Shown by the thick solid line.
[0079] like Figure 2bAs shown, the power supply current of the battery of the terminal device flows into the second end VOUT1 of the charge pump circuit. At this time, the charge pump circuit operates in a reverse boost mode, thereby increasing the power supply voltage output by the battery. For example, when the charge pump circuit operates in a 2:1 buck mode, its reverse mode is a 1:2 boost mode, so that the 3.7V~4.3V power supply voltage output by the battery is increased to about 8V after passing through the charge pump circuit, and reaches the input end VIN3 of the voltage conversion circuit through the first end VIN2 of the charge pump circuit. The voltage conversion circuit is powered on, and then the voltage / current of the power supply current is adjusted according to the required output voltage / current, and the adjusted power supply current is transmitted to the input-output interface through the output end VOUT2, thereby charging the OTG device at the opposite end.
[0080] It is worth noting that in the power supply circuit of the embodiment of the present invention, when powering the OTG device, the power management circuit is no longer used for power supply. This is because the discharge power that the power management circuit can output is relatively small, and a charge pump circuit is used for reverse boosting. The charge pump circuit itself is a transformer circuit suitable for high-power charging. Therefore, by using the charge pump circuit for reverse boosting, the battery output voltage can be increased to a higher level with very little loss, and then the voltage conversion circuit is used to accurately control the OTG power supply voltage based on the configuration parameters, so that a high-power OTG power supply voltage can be output.
[0081] In addition, in the embodiments of the present disclosure, when the terminal device is charging the OTG device, the power management circuit can also interact with the OTG device through the protocol communication terminal CC to perform fast charging protocol, and upon receiving the fast charging application information from the OTG device, match the relevant charging parameters through the voltage conversion circuit, thereby providing the OTG device with the required charging voltage / current, and establishing fast charging between the terminal device and the OTG device.
[0082] For example, in an example scenario, a tablet computer is used as the terminal device, and a smart phone is used as the OTG device. By using the power supply circuit of the embodiment of the present disclosure, the tablet computer as a power source can provide more than 30W of charging power for the smart phone. Compared with the traditional OTG power supply solution, the reverse power supply power of the terminal device is greatly improved, and the charging time of the OTG device is shortened.
[0083] See also Figure 2 As shown, in some embodiments, an on-off switch is provided on the charging branch of the power supply circuit, and the on-off switch is used to control the on-off of the charging branch, so the on-off switch can be any form of switch.
[0084] In some embodiments, the on-off switch may be a transistor switch, which may be, for example, a MOS (Metal-Oxide-Semiconductor Field-Effect Transistor) switch, a triode switch, etc., and the present disclosure does not limit this. A transistor switch is a switching device that is driven to control on and off. For example, in one example, see Figure 4 As shown, the control end of the on-off switch can be connected to the control pin OVP of the charge pump circuit, so that the control pin OVP of the charge pump circuit outputs a control signal to control the on-off of the on-off switch.
[0085] In some embodiments, the on-off switch includes a first transistor and a second transistor connected in series. The first transistor and the second transistor may be MOS transistors. That is, in the embodiment of the present disclosure, two MOS transistors connected in series are used as the on-off switch.
[0086] See also Figure 3 As shown, the on-off switch includes a first MOS transistor 610 and a second MOS transistor 620. It can be understood that the MOS transistor includes a parasitic diode. In order to prevent the parasitic diode of a single MOS transistor from leaking in the off state, in this embodiment, a parasitic diode 611 of the first MOS transistor 610 is provided, and the current direction is opposite to that of the parasitic diode 621 of the second MOS transistor 620. Since the currents of the two parasitic diodes pass in opposite directions, a cut-off effect can be formed in either direction, thereby effectively preventing leakage of a single MOS transistor.
[0087] In the related art, a MOS tube includes three poles, namely, a gate G, a source S, and a drain D. The basic working principle of the MOS tube is: by applying a control level to the gate G, the source S and the drain D are turned on or off. MOS tubes can be divided into NMOS and PMOS, and can be divided into enhancement type and depletion type according to different control levels. In the embodiments of the present disclosure, there is no restriction on the type of MOS tube, and the present disclosure can be implemented. Those skilled in the art can implement hardware selection and logic control according to specific needs, and the present disclosure will not elaborate on this.
[0088] like Figure 3 As shown, in the embodiment of the present disclosure, the source S of the first MOS tube 610 is connected to the input-output interface, the drain D of the first MOS tube 610 is connected to the drain D of the second MOS tube 620, and the source S of the second MOS tube is connected to the first end VIN2 of the charge pump circuit. The gate G of the MOS tube is used as a control end, connected to the control pin OVP of the charge pump circuit, so that the on-off of the MOS tube can be controlled according to the control signal output by the control pin OVP of the charge pump circuit.
[0089] For example, in one example, the first MOS tube 610 and the second MOS tube 620 are NMOS, and when a high level is applied to the control end of the NMOS tube, the NMOS tube can be turned on, and when a low level is applied to the control end of the NMOS tube, the NMOS tube can be turned off. In another example, the first MOS tube 610 and the second MOS tube 620 are PMOS, and when a low level is applied to the control end of the PMOS tube, the PMOS tube can be turned on, and when a high level is applied to the control end of the PMOS tube, the PMOS tube can be turned off. Those skilled in the art can understand this, and the present disclosure will not repeat it.
[0090] In the disclosed embodiments, the processing unit of the terminal device is configured to: when it is detected that the input / output interface is plugged into the OTG device, control the on / off switch to be disconnected. For example, in some embodiments, when it is detected that the input / output interface is plugged into the OTG device, the processing unit can control the working mode of the charge pump circuit to switch from the original forward buck mode to the reverse boost mode, and at the same time send control information to the control end of the on / off switch through the control pin OVP of the charge pump circuit to control the on / off switch to be disconnected.
[0091] It can be understood that when the input and output interface of the terminal device is inserted into the OTG device, the terminal device needs to act as a power source (Source) to power the OTG device. Therefore, the processing unit can control the on-off switch to be disconnected to prevent the power output from the first end VIN2 of the charge pump circuit from flowing to the input and output interface through the on-off switch.
[0092] At the same time, the processing unit can also control the first power supply terminal VIN1 of the power management circuit to prohibit power input, so as to prevent the power output from the first terminal VIN2 of the charge pump circuit from flowing back into the power management circuit, thereby mistakenly identifying the discharge state of the terminal device as the charging state.
[0093] In some implementations, when the terminal device supplies power to the OTG device, the terminal device can also interact with the OTG device through the power management circuit to perform a fast charging protocol, thereby establishing fast charging between the terminal device and the OTG device. This process will be described below in conjunction with the power supply method and will not be described in detail here.
[0094] In some embodiments, the power supply circuit also includes an overvoltage protection circuit, such as Figure 4 As shown, the overvoltage protection voltage is set between the voltage conversion circuit and the input and output interface.
[0095] The overvoltage protection circuit is a protection circuit provided to prevent the power supply from inputting too high a voltage to sensitive devices. In the embodiment of the present disclosure, the overvoltage protection circuit can be pre-configured with a preset voltage value. If the voltage output by the voltage conversion circuit is greater than the preset value, in order to reduce the risk of damage to the OTG device caused by excessive output voltage, the overvoltage protection circuit needs to disconnect the output voltage of the voltage conversion circuit and stop powering the OTG device.
[0096] From the above, it can be seen that in the embodiment of the present disclosure, when the terminal device supplies power to the OTG device, the charge pump circuit is used to perform reverse boosting, and then the OTG power supply voltage is adjusted using the voltage conversion circuit, so that a high-power OTG power supply voltage can be output, and fast charging can be established by interacting with the fast charging protocol of the OTG device. Compared with the traditional OTG power supply solution, the reverse power supply power of the terminal device is greatly improved, and the charging time of the OTG device is shortened.
[0097] On the basis of the above-mentioned power supply circuit, an embodiment of the present disclosure provides a power supply method, which can be applied to the above-mentioned terminal device and executed by a processing unit of the terminal device.
[0098] like Figure 5 As shown, in some embodiments, the power supply method of the present disclosure example includes:
[0099] S510: When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the charge pump circuit of the terminal device outputs the power supply to the back-end voltage conversion circuit.
[0100] Combination Figures 2 to 4 The power supply circuit shown, when the OTG device is inserted into the input and output interface of the terminal device, the terminal device can detect the OTG device. For example, in one example, the terminal device can determine whether the inserted device is an OTG device or a charger based on the detection level of the input and output interface. Those skilled in the art can understand this and will not be elaborated in this disclosure.
[0101] like Figure 6 As shown, in some embodiments, the power supply method of the present disclosure example, the process of outputting the power supply to the voltage conversion circuit through the charge pump circuit of the terminal device, includes:
[0102] S511 , when it is detected that the input / output interface of the terminal device is plugged into the OTG device, the working mode of the charge pump circuit is controlled to switch to the reverse boost mode.
[0103] Reference Figure 4 As shown, when the terminal device detects that the input and output interface is plugged into the OTG device, the working mode of the charge pump circuit can be controlled to switch from the forward buck mode to the reverse boost mode.
[0104] In some embodiments, the terminal device can control the control pin OVP of the charge pump circuit to output control information to the control end of the on-off switch, and at the same time control the on-off switch to be disconnected, thereby preventing the power supply output by the charge pump circuit from directly entering the input-output interface through the on-off switch.
[0105] In some embodiments, the terminal device can also control the first power supply terminal VIN1 of the power management circuit to prohibit power input to prevent the power output from the first terminal VIN2 of the charge pump circuit from flowing back into the power management circuit, thereby mistakenly identifying the discharge state of the terminal device as the charging state.
[0106] S512: After the power supply provided by the battery of the terminal device is boosted by the charge pump circuit, the power supply is output to the voltage conversion circuit.
[0107] In the present disclosure, refer to Figure 2b As shown, the battery of the terminal device outputs the power supply to the charge pump circuit, and the charge pump circuit operates in the reverse boost mode, so that the charge pump circuit boosts the power supply output by the battery and outputs it to the voltage conversion circuit. For example, in one example, when the charge pump circuit operates in the 1:2 reverse boost mode, the voltage of the power supply provided by the battery is 4V, so the voltage of the power supply output to the voltage conversion circuit after passing through the charge pump circuit will be increased to 8V.
[0108] S520: Power the OTG device after configuring the power supply through the voltage conversion circuit.
[0109] In the disclosed embodiments, in the initial stage of the terminal device supplying power to the OTG device, the voltage conversion circuit can supply power to the OTG device based on preset configuration parameters. The preset configuration parameters refer to the pre-set initial parameters for supplying power to the OTG device, which may include initial voltage, initial current, etc.
[0110] For example, in one example, the preset configuration parameters include an initial voltage of 5V and an initial current of 2A. Therefore, in the initial stage of the terminal device supplying power to the OTG device, the voltage conversion circuit can regulate the power supply output by the charge pump circuit to provide the OTG device with a power supply of 5V2A to charge the OTG device.
[0111] After the terminal device and the OTG device establish a charging connection, the two can interact with each other through the fast charging protocol to establish a fast charging connection. Figure 7 Provide explanation.
[0112] like Figure 7 As shown, in some embodiments, the power supply method of the present disclosure example provides a process of powering an OTG device, including:
[0113] S521. When powering the OTG device, fast charging gear information is sent to the OTG device through the power management circuit.
[0114] S522. The power management circuit receives fast charge application information sent by the OTG device.
[0115] S523. Configure a voltage conversion circuit according to the fast charge application information, so that the voltage conversion circuit provides corresponding voltage and current for the OTG device.
[0116] It can be understood that after the terminal device establishes a charging connection with the OTG device, the terminal device can interact with the OTG device via the power management circuit to perform a fast charging protocol.
[0117] Combination Figure 2 As shown, the power management circuit can send fast charging gear information to the OTG device through the protocol communication terminal CC. The fast charging gear information is the Source_Capabilities information, which is used to record the fast charging gear supported by the terminal device. The fast charging gear can be expressed by current and voltage, such as 5V2A, 10V2A, 15V4A, etc.
[0118] It can be understood that the terminal device may include multiple fast charging gears, so that the terminal device can send all fast charging gears supported by itself to the OTG device through the power management circuit, that is, the fast charging gear information Source_Capabilities includes multiple fast charging gears.
[0119] In some embodiments, for a private fast charging protocol, the fast charging gear information sent by the terminal device can also be encrypted based on a private encryption algorithm, so that the fast charging gear information needs to be decrypted on the OTG device side. If the OTG device can correctly decrypt the fast charging gear information, it means that the OTG device can establish a fast charging connection with the terminal device. If the OTG device cannot decrypt the fast charging gear information, it means that the OTG device cannot establish a fast charging connection with the terminal device, so that the terminal device can only provide basic power charging for the OTG device, such as providing a basic charging mode of 5V2A.
[0120] After receiving the fast charging gear information Source_Capabilities, the OTG device can obtain the fast charging gear included in the terminal device by parsing the information, so that the OTG device can select the fast charging gear corresponding to the maximum charging power that it also supports, and generate fast charging application information, that is, the fast charging application information records the voltage and current information requested by the OTG device to the terminal device.
[0121] The OTG device sends the fast charging application information to the terminal device, and the terminal device receives the fast charging application information through the power management circuit. The terminal device parses the fast charging application information to obtain the carried voltage and current, so as to control the voltage conversion circuit to output the corresponding voltage and current, thereby realizing high-power fast charging of the OTG device.
[0122] From the above, it can be seen that in the embodiment of the present disclosure, when the terminal device supplies power to the OTG device, the charge pump circuit is used to perform reverse boosting, and then the OTG power supply voltage is adjusted using the voltage conversion circuit, so that a high-power OTG power supply voltage can be output, and fast charging can be established by interacting with the fast charging protocol of the OTG device. Compared with the traditional OTG power supply solution, the reverse power supply power of the terminal device is greatly improved, and the charging time of the OTG device is shortened.
[0123] In some embodiments, the present disclosure provides a terminal device, the terminal device includes a power supply module, and the power supply module is configured to:
[0124] When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the charge pump circuit of the terminal device outputs the power supply to the back-end voltage conversion circuit;
[0125] The power supply is configured by the voltage conversion circuit to supply power to the OTG device.
[0126] In some embodiments, the present disclosure provides a terminal device, which includes the power supply circuit of any of the aforementioned embodiments.
[0127] In some embodiments, the terminal device of the present disclosure may be any type of device with an OTG function, such as a smart phone, a tablet computer, a laptop computer, a wearable device, etc., and the present disclosure is not limited to this.
[0128] In some embodiments, the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the power supply method of any of the aforementioned embodiments.
[0129] Figure 8 The terminal device structure in some embodiments of the present disclosure is shown in FIG. Figure 8 The terminal devices of some embodiments of the present disclosure are described.
[0130] Reference Figure 8The terminal device 1800 may include one or more of the following components: a processing component 1802 , a memory 1804 , a power component 1806 , a multimedia component 1808 , an audio component 1810 , an input / output (I / O) interface 1812 , a sensor component 1816 , and a communication component 1818 .
[0131] The processing component 1802 generally controls the overall operation of the terminal device 1800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1802 may include one or more processors 1820 to execute instructions. In addition, the processing component 1802 may include one or more modules to facilitate the interaction between the processing component 1802 and other components. For example, the processing component 1802 may include a multimedia module to facilitate the interaction between the multimedia component 1808 and the processing component 1802. For another example, the processing component 1802 can read executable instructions from a memory to implement terminal device related functions.
[0132] The memory 1804 is configured to store various types of data to support operations on the terminal device 1800. Examples of such data include instructions for any application or method operating on the terminal device 1800, contact data, phone book data, messages, pictures, videos, etc. The memory 1804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0133] The power supply component 1806 provides power to various components of the terminal device 1800. The power supply component 1806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal device 1800.
[0134] The multimedia component 1808 includes a display screen that provides an output interface between the terminal device 1800 and the user. In some embodiments, the multimedia component 1808 includes a front camera and / or a rear camera. When the terminal device 1800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0135] The audio component 1810 is configured to output and / or input audio signals. For example, the audio component 1810 includes a microphone (MIC), and when the terminal device 1800 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1804 or sent via the communication component 1818. In some embodiments, the audio component 1810 also includes a speaker for outputting audio signals.
[0136] I / O interface 1812 provides an interface between processing component 1802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0137] The sensor assembly 1816 includes one or more sensors for providing various aspects of status assessment for the terminal device 1800. For example, the sensor assembly 1816 can detect the open / closed state of the terminal device 1800, the relative positioning of the components, such as the display and keypad of the terminal device 1800, and the sensor assembly 1816 can also detect the position change of the terminal device 1800 or a component of the terminal device 1800, the presence or absence of contact between the user and the terminal device 1800, the orientation or acceleration / deceleration of the terminal device 1800, and the temperature change of the terminal device 1800. The sensor assembly 1816 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1816 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1816 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0138] The communication component 1818 is configured to facilitate wired or wireless communication between the terminal device 1800 and other devices. The terminal device 1800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G, 5G or 6G, or a combination thereof. In an exemplary embodiment, the communication component 1818 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1818 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0139] In an exemplary embodiment, the terminal device 1800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0140] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the embodiments. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.
Claims
1. A power supply circuit, characterized in that: Applied to terminal equipment, the power supply circuit includes an input and output interface, a voltage conversion circuit, a charge pump circuit and a processing unit; The input and output interface is used to connect external devices; The output end of the voltage conversion circuit is connected to the input-output interface, the input end of the voltage conversion circuit is connected to the first end of the charge pump circuit, and the second end of the charge pump circuit is connected to the battery of the terminal device; The processing unit is configured to: when it is detected that the input / output interface is plugged into an OTG device, control the charge pump circuit and the voltage conversion circuit to supply power to the OTG device.
2. The power supply circuit according to claim 1, characterized in that: It also includes a charging branch and a power management circuit, wherein the charging branch includes an on-off switch, one end of the on-off switch is connected to the input-output interface, and the other end is connected to the power management circuit and the first end of the charge pump circuit, and the on-off switch is used to control the on-off of the charging branch; The processing unit is configured to: when it is detected that the input / output interface is plugged into an OTG device, control the on / off switch to be turned off.
3. The power supply circuit according to claim 2, characterized in that: The control end of the on-off switch is connected to the control pin of the charge pump circuit; The processing unit is configured to: when it is detected that the input / output interface is plugged into an OTG device, control the working mode of the charge pump circuit to switch to a reverse boost mode, and control the on / off switch to be disconnected through a control pin of the charge pump circuit.
4. The power supply circuit according to claim 2, characterized in that: The on-off switch includes a first transistor and a second transistor connected in series, and current directions of parasitic diodes of the first transistor and the second transistor are opposite.
5. The power supply circuit according to claim 2, characterized in that: The power management circuit includes a first power supply end, a second power supply end and a protocol communication end, the first power supply end is connected to the other end of the on-off switch, the second power supply end is connected to the battery, and the protocol communication end is used to perform fast charging protocol communication with the OTG device through the input and output interface.
6. The power supply circuit according to claim 5, characterized in that: The processing unit is configured to: when the terminal device supplies power to the OTG device, send fast charging gear information to the OTG device through the protocol communication end of the power management circuit, receive fast charging application information returned by the OTG device, and configure the voltage conversion circuit according to the fast charging application information so that the voltage conversion circuit provides the OTG device with corresponding voltage and current.
7. The power supply circuit according to claim 1, characterized in that: It also includes an overvoltage protection circuit, which is arranged between the voltage conversion circuit and the input-output interface, and the overvoltage protection circuit is configured to disconnect the power supply of the voltage conversion circuit when the output voltage of the voltage conversion circuit is greater than a preset value.
8. The power supply circuit according to claim 1, characterized in that: The input and output interface includes a USB Type C interface.
9. A power supply method, characterized in that: Applied to a terminal device, the method comprises: When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the charge pump circuit of the terminal device outputs the power supply to the back-end voltage conversion circuit; The power supply is configured by the voltage conversion circuit to supply power to the OTG device.
10. The power supply method according to claim 9, characterized in that: When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the charge pump circuit of the terminal device outputs the power supply to the back-end voltage conversion circuit, including: When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the working mode of the charge pump circuit is controlled to switch to the reverse boost mode; The power supply provided by the battery of the terminal device is boosted by the charge pump circuit and then output to the voltage conversion circuit.
11. The power supply method according to claim 9, characterized in that: The step of configuring the power supply through the voltage conversion circuit to supply power to the OTG device includes: When powering the OTG device, fast charging gear information is sent to the OTG device through a power management circuit; The power management circuit receives fast charging application information sent by the OTG device, where the fast charging application information is charging information determined by the OTG device according to the fast charging gear information; The voltage conversion circuit is configured according to the fast charging application information so that the voltage conversion circuit provides corresponding voltage and current for the OTG device.
12. The power supply method according to claim 9, characterized in that: Also includes: When it is detected that the input / output interface of the terminal device is plugged into an OTG device, the charging branch of the terminal device is controlled to be disconnected.
13. A terminal device, characterized in that: The invention comprises a power supply circuit according to any one of claims 1 to 8.
14. A terminal device, characterized in that: The invention comprises a power supply module, wherein the power supply module is configured as follows: When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the charge pump circuit of the terminal device outputs the power supply to the back-end voltage conversion circuit; The power supply is configured by the voltage conversion circuit to supply power to the OTG device.
15. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 9 to 12.