[go: up one dir, main page]

CN111404232A - A fast charging switching circuit and method based on dual-interface plugging detection - Google Patents

A fast charging switching circuit and method based on dual-interface plugging detection Download PDF

Info

Publication number
CN111404232A
CN111404232A CN202010312122.XA CN202010312122A CN111404232A CN 111404232 A CN111404232 A CN 111404232A CN 202010312122 A CN202010312122 A CN 202010312122A CN 111404232 A CN111404232 A CN 111404232A
Authority
CN
China
Prior art keywords
interface
usb type
circuit
state
switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010312122.XA
Other languages
Chinese (zh)
Inventor
陈伟
丁淼
王嘉懿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Injoinic Technology Co Ltd
Original Assignee
Shenzhen Injoinic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Injoinic Technology Co Ltd filed Critical Shenzhen Injoinic Technology Co Ltd
Priority to CN202010312122.XA priority Critical patent/CN111404232A/en
Publication of CN111404232A publication Critical patent/CN111404232A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

本发明公开一种基于双接口拔插检测的快充切换电路及方法,该电路包括电源端、整流变压电路、控制系统、USB Type‑A接口、USB Type‑C接口,整流变压电路与USB Type‑A接口、USB Type‑C接口之间连接有滤波消磁电路,USB Type‑A接口、USB Type‑C接口处连接有开关单元,控制系统连接至整流变压电路与USB Type‑A接口、USB Type‑C接口之间,控制系统包括快充控制单元以及插拔检测单元。本发明的方法应用于上述的电路。本发明可以节约电路设计成本,扩大可检测设备范围,情景切换更加高效省时,更加满足快充需求。

Figure 202010312122

The invention discloses a fast charging switching circuit and method based on dual-interface plug-in detection. The circuit includes a power supply terminal, a rectifier and transformer circuit, a control system, a USB Type-A interface, a USB Type-C interface, a rectifier and transformer circuit and A filter and degaussing circuit is connected between the USB Type‑A interface and the USB Type‑C interface, a switch unit is connected to the USB Type‑A interface and the USB Type‑C interface, and the control system is connected to the rectifier and transformer circuit and the USB Type‑A interface , between the USB Type-C interfaces, the control system includes a fast charge control unit and a plug-in detection unit. The method of the present invention is applied to the circuit described above. The invention can save the cost of circuit design, expand the range of detectable equipment, more efficient and time-saving in scene switching, and better meet the demand of fast charging.

Figure 202010312122

Description

一种基于双接口拔插检测的快充切换电路及方法A fast charging switching circuit and method based on dual-interface plugging detection

【技术领域】【Technical field】

本发明涉及快充充电技术领域,具体的,涉及一种基于双接口拔插检测的快充切换电路及应用于该电路的快充切换方法。The invention relates to the technical field of fast charging, in particular to a fast charging switching circuit based on dual-interface plugging detection and a fast charging switching method applied to the circuit.

【背景技术】【Background technique】

近年来,随着快充技术的发展,越来越多的USB接口形式应运而生,TYPE-C作为最新的接口形式技术,功能强大,使用方便。在目前电子设备越来越多的情况下,有时需要对多个电子设备进行充电,为了更好的兼顾不同的USB接口形式,市场上已有许多双口充电方案。但是现有的方案某些检测不够灵活,动作逻辑不能顺应实际情景,效率较低。而效率较高的反而内部电路复杂,导致所需硬件电路制作成本较高。In recent years, with the development of fast charging technology, more and more USB interface forms have emerged. As the latest interface form technology, TYPE-C is powerful and easy to use. In the current situation of more and more electronic devices, it is sometimes necessary to charge multiple electronic devices. In order to better take into account different USB interface forms, there are many dual-port charging solutions on the market. However, some detections of the existing solutions are not flexible enough, the action logic cannot adapt to the actual situation, and the efficiency is low. On the other hand, the more efficient ones have complex internal circuits, resulting in higher manufacturing costs for the required hardware circuits.

现有技术一的技术方案中,A、C口不独立,当双口NMOS都打开时候仅支持5V充电,重新唤醒快充需要进行插拔,不够灵活根据对应情景进行切换。In the technical solution of the prior art, the A and C ports are not independent, and only 5V charging is supported when the dual-port NMOS is turned on. Re-awakening the fast charging requires plugging and unplugging, which is not flexible enough to switch according to the corresponding situation.

现有技术二的技术方案中,A、C口独立,双口分开工作,当双口插入时A、C口都可以进行快充,但是制作成本较高。In the technical solution of the prior art 2, ports A and C are independent, and the two ports work separately. When the two ports are inserted, both ports A and C can perform fast charging, but the manufacturing cost is relatively high.

因此,对于某些小电流设备,如果插入时对应NMOS关闭,插入不容易检测;在双口NMOS都打开的情况下,只能进行5V充电,不能灵活对负载进行检测;成本较高,所占空间较大。Therefore, for some low-current devices, if the corresponding NMOS is turned off during insertion, it is not easy to detect the insertion; in the case where the dual-port NMOS is turned on, only 5V charging can be performed, and the load cannot be detected flexibly; the cost is high and the space is occupied larger.

【发明内容】[Content of the invention]

本发明的主要目的是提供一种可以节约电路设计成本、扩大可检测设备范围、情景切换更加高效省时,更加满足快充需求的基于双接口拔插检测的快充切换电路。The main purpose of the present invention is to provide a fast charging switching circuit based on dual-interface plug detection, which can save circuit design costs, expand the range of detectable devices, make scene switching more efficient and time-saving, and better meet the needs of fast charging.

本发明的另一目的是提供一种可以节约电路设计成本、扩大可检测设备范围、情景切换更加高效省时,更加满足快充需求的基于双接口拔插检测的快充切换电路的快充切换方法。Another object of the present invention is to provide a fast charging switching circuit based on dual-interface unplug detection and fast charging switching, which can save circuit design costs, expand the range of detectable devices, make scene switching more efficient and time-saving, and better meet the needs of fast charging. method.

为了实现上述的主要目的,本发明提供的一种基于双接口拔插检测的快充切换电路包括电源端、整流变压电路、控制系统、USB Type-A接口、USB Type-C接口,所述电源端输入电源电压至所述整流变压电路,所述整流变压电路与所述USB Type-A接口、USB Type-C接口之间连接有滤波消磁电路,所述USB Type-A接口、USB Type-C接口处连接有开关单元,所述控制系统连接至所述整流变压电路与所述USB Type-A接口、USB Type-C接口之间;所述控制系统包括快充控制单元以及插拔检测单元,所述插拔检测单元分别检测所述USBType-A接口、USB Type-C接口的设备插拔信号,所述快充控制单元根据检测到的设备插拔信号产生开关控制信号,所述快充控制单元根据所述开关控制信号向所述开关电路发送开关信号以导通/关闭所述电源端至所述USB Type-A接口、USB Type-C接口的充电路径。In order to achieve the above main purpose, the present invention provides a fast charging switching circuit based on dual-interface plug-in detection, which includes a power supply terminal, a rectifier and transformer circuit, a control system, a USB Type-A interface, and a USB Type-C interface. The power supply terminal inputs the power supply voltage to the rectifier and transformer circuit, and a filter and degaussing circuit is connected between the rectifier and transformer circuit and the USB Type-A interface and the USB Type-C interface. A switch unit is connected to the Type-C interface, and the control system is connected between the rectifier and transformer circuit and the USB Type-A interface and the USB Type-C interface; the control system includes a fast charging control unit and a plug-in A pull-out detection unit, the plug-in detection unit detects the device plug-in signal of the USB Type-A interface and the USB Type-C interface respectively, and the fast charge control unit generates a switch control signal according to the detected device plug-in signal, so The fast charging control unit sends a switch signal to the switch circuit according to the switch control signal to turn on/off the charging path from the power supply terminal to the USB Type-A interface and the USB Type-C interface.

进一步的方案是,所述快充控制单元包括第一快充控制电路以及第二快充控制电路,所述插拔检测单元包括第一插拔检测电路以及第二插拔检测电路,所述开关单元包括第一开关电路以及第二开关电路,所述第一插拔检测电路检测所述USB Type-A接口的设备插拔信号,所述第一快充控制电路根据检测到的所述USB Type-A接口的设备插拔信号产生第一开关控制信号,所述第一快充控制电路根据所述第一开关控制信号向所述第一开关电路发送开关信号以导通/关闭所述电源端至所述USB Type-A接口的充电路径;所述第二插拔检测电路检测所述USB Type-C接口的设备插拔信号,所述第二快充控制电路根据检测到的所述USB Type-C接口的设备插拔信号产生第二开关控制信号,所述第二快充控制电路根据所述第二开关控制信号向所述第二开关电路发送开关信号以导通/关闭所述电源端至所述USB Type-C接口的充电路径。A further solution is that the fast charging control unit includes a first fast charging control circuit and a second fast charging control circuit, the plugging detection unit includes a first plugging detection circuit and a second plugging detection circuit, and the switch The unit includes a first switch circuit and a second switch circuit, the first plug detection circuit detects the device plug signal of the USB Type-A interface, and the first fast charge control circuit is based on the detected USB Type The device plug-in signal of the -A interface generates a first switch control signal, and the first fast charge control circuit sends a switch signal to the first switch circuit according to the first switch control signal to turn on/off the power terminal The charging path to the USB Type-A interface; the second plug-in detection circuit detects the device plug-in signal of the USB Type-C interface, and the second fast charge control circuit is based on the detected USB Type-C interface. The device plug-in signal of the -C interface generates a second switch control signal, and the second fast charge control circuit sends a switch signal to the second switch circuit according to the second switch control signal to turn on/off the power terminal A charging path to the USB Type-C interface.

更进一步的方案是,所述第一开关电路、所述第二开关电路均为MOS管开关电路。In a further solution, the first switch circuit and the second switch circuit are both MOS transistor switch circuits.

更进一步的方案是,所述第一快充控制电路包括所述第一快充控制电路包括第一快充协议控制电路、第一MTK快充控制单元、第一DCP协议电路、第一端口控制电路,所述第一快充协议控制电路、第一MTK快充控制单元、第一DCP协议电路的使能端分别通过所述第一端口控制电路与所述第一插拔检测电路电连接。A further solution is that the first fast charge control circuit includes the first fast charge control circuit includes a first fast charge protocol control circuit, a first MTK fast charge control unit, a first DCP protocol circuit, and a first port control circuit. circuit, wherein the enabling terminals of the first fast charging protocol control circuit, the first MTK fast charging control unit, and the first DCP protocol circuit are respectively electrically connected to the first plugging detection circuit through the first port control circuit.

更进一步的方案是,所述第二快充控制电路包括第二快充协议控制电路、第二MTK快充控制单元、第二DCP协议电路、第二端口控制电路、PD控制电路,所述第二快充协议控制电路、第二MTK快充控制单元、第二DCP协议电路、PD控制电路的使能端分别通过所述第二端口控制电路与所述第二插拔检测电路电连接。A further solution is that the second fast charge control circuit includes a second fast charge protocol control circuit, a second MTK fast charge control unit, a second DCP protocol circuit, a second port control circuit, and a PD control circuit, and the first The enabling terminals of the second fast charging protocol control circuit, the second MTK fast charging control unit, the second DCP protocol circuit, and the PD control circuit are respectively electrically connected to the second plugging detection circuit through the second port control circuit.

由此可见,本发明采用USB Type-A接口常开,USB Type-C接口在建立CC连接时,也保持常开状态;在普通充电状态下,可以保持两个接口的开关地电路处于常开状态,有利于检测小电流设备的插入,提高了应用的广泛性;两个接口分别支持多种快充协议,有极好的协议兼容性;在两个接口MOS管开关电路都打开时,在一方接口为轻载时,另一方接口仍可恢复快充;可以节约电路设计成本,成本较低;可以扩大可检测设备范围;情景切换更加高效省时,尽可能满足快充需求。It can be seen that the present invention uses the USB Type-A interface to be normally open, and the USB Type-C interface also maintains the normally open state when the CC connection is established; in the normal charging state, the switch ground circuits of the two interfaces can be kept normally open status, which is conducive to detecting the insertion of low-current devices and improves the versatility of applications; the two interfaces respectively support a variety of fast charging protocols and have excellent protocol compatibility; when both interface MOS tube switch circuits are turned on, When one interface is lightly loaded, the other interface can still resume fast charging; circuit design costs can be saved, and the cost is lower; the range of detectable devices can be expanded; context switching is more efficient and time-saving, and can meet the fast charging needs as much as possible.

所以,本发明相比较传统方案检测设备能力更加灵敏,两个接口在条件允许下都尽量常开,可以对小电流设备进行更加准确的检测,并且对于一些充电情景可以做到更有效省时的完成状态的切换。Therefore, compared with the traditional solution, the present invention has a more sensitive detection device capability, and both interfaces are kept open as far as possible, so that low-current devices can be detected more accurately, and for some charging scenarios, it can be more effective and time-saving. Complete the state switch.

为了实现上述的另一目的,本发明还提供的一种基于双接口拔插检测的快充切换电路的快充切换方法,应用于一种基于双接口拔插检测的快充切换电路,该方法包括在确定系统处于上电状态后,实时检测两个接口的带载状态和充电模式是否发生变化,若发生变化,则判断两个接口的MOS管开关电路当前状态是否处于开启状态,若两个接口的MOS管开关电路均处于开启状态,则判断USB Type-A接口当前状态是否为重载状态,在确定USBType-A接口当前状态为重载状态后,判断USB Type-C接口当前状态是否为重载状态,若两个接口当前状态均为重载状态,则关闭快充使能,对两个接口进行模拟USB插拔,并进入普通充电状态;如确定USB Type-A接口当前状态不是重载状态,则判断两个接口当前状态是否为轻载状态,如不是,则可确定USB Type-C接口为重载状态,则判断是否开启快充使能,如不是,则关闭USB Type-C接口的MOS管开关电路,并控制开启快充使能,对USB Type-C接口进行模拟USB插拔,对其MOS管开关电路执行关开操作以促使USB Type-C接口重新申请快充,其中,在USB Type-C接口进入快充状态时,USB Type-A接口保持常开状态。In order to achieve the above-mentioned other object, the present invention also provides a fast charging switching method based on dual-interface plugging detection and fast charging switching circuit, which is applied to a fast charging switching circuit based on dual-interface plugging detection. Including, after it is determined that the system is in the power-on state, real-time detection of whether the loading state and charging mode of the two interfaces have changed. The MOS transistor switch circuits of the interface are all in the open state, then it is judged whether the current state of the USB Type-A interface is the overload state. After determining that the current state of the USB Type-A interface is the overload state, it is judged whether the current state of the USB Type-C interface is In the overloaded state, if the current state of the two interfaces is in the overloaded state, turn off the fast charging enable, simulate USB plugging and unplugging of the two interfaces, and enter the normal charging state; if it is determined that the current state of the USB Type-A interface is not overloaded If not, it can be determined that the USB Type-C interface is in a heavy load state, and then it is judged whether to enable fast charging, and if not, turn off USB Type-C The MOS tube switch circuit of the interface is controlled to enable fast charging, simulate USB plugging and unplugging of the USB Type-C interface, and perform the opening and closing operation of the MOS tube switch circuit to prompt the USB Type-C interface to re-apply for fast charging. , when the USB Type-C interface enters the fast charging state, the USB Type-A interface remains normally open.

进一步的方案是,在确定USB Type-A接口当前状态为重载状态后,判断USB Type-C接口当前状态是否为重载状态,若USB Type-C接口当前状态不是重载状态,则判断两个接口当前状态是否为轻载状态,如不是,则判断是否开启快充使能,如不是,则关闭USB Type-A接口的MOS管开关电路,并控制开启快充使能,对USB Type-A接口进行模拟USB插拔,对其MOS管开关电路执行关开操作以促使USB Type-A接口重新申请快充,在USB Type-A接口进入快充状态时,若USB Type-C接口没有建立CC连接,则关闭USB Type-C接口。A further solution is to determine whether the current state of the USB Type-C interface is an overloaded state after determining that the current state of the USB Type-A interface is an overloaded state. Whether the current state of each interface is in the light-load state, if not, then judge whether to enable fast charging; The A interface is simulated by USB plugging and unplugging, and the MOS tube switch circuit is turned on and off to prompt the USB Type-A interface to re-apply for fast charging. When the USB Type-A interface enters the fast charging state, if the USB Type-C interface is not established CC connection, then close the USB Type-C interface.

更进一步的方案是,在确定USB Type-C接口为重载状态后,若已经开启了快充使能,则判断USB Type-C接口是否进入快充,如是,则USB Type-C接口进入快充状态;在确定USB Type-A接口当前状态为重载状态后,若已经开启了快充使能,则判断USB Type-A接口是否进入快充,如是,则USB Type-A接口进入快充状态。A further solution is that after determining that the USB Type-C interface is in an overloaded state, if the fast charge enablement has been turned on, it is determined whether the USB Type-C interface enters the fast charge mode. If so, the USB Type-C interface enters the fast charge mode. Charging status; after confirming that the current status of the USB Type-A interface is overloaded, if the fast charging has been enabled, it is determined whether the USB Type-A interface enters the fast charging state. If so, the USB Type-A interface enters the fast charging state. state.

更进一步的方案是,在判断两个接口的MOS管开关电路当前状态是否处于开启状态时,若只是单个USB Type-A接口或USB Type-C接口的MOS管开关电路处于开启状态,则判断单个USB Type-A接口或USB Type-C接口是否处于轻载状态,如是,则打开已经关闭的接口,使两个接口均处于开启状态。A further solution is that when judging whether the current state of the MOS tube switch circuit of the two interfaces is in the open state, if only the MOS tube switch circuit of a single USB Type-A interface or USB Type-C interface is in the open state, then it is judged that a single Whether the USB Type-A interface or the USB Type-C interface is in a light load state, if so, open the closed interface so that both interfaces are open.

更进一步的方案是,若两个接口都为轻载状态,并且在两个接口均处于开启状态的情况下,判断USB Type-C接口是否建立CC连接,如不是,则关闭USB Type-C接口;如确定USB Type-C接口建立CC连接,则保持当前状态,即两个接口均保持开启状态。A further solution is to determine whether the USB Type-C interface has established a CC connection if both interfaces are in a light-load state and both interfaces are in an open state, and if not, close the USB Type-C interface. ; If it is determined that the USB Type-C interface establishes a CC connection, the current state is maintained, that is, both interfaces remain open.

由此可见,本发明的方法增加了对应口的常开功能,可以更加精确的对各种设备不同情景进行插拔判断;MOS开关电路的打开关闭条件使得设备在普充和快充切换之间更加灵活;AC任意单口支持多种快充协议,双口插入都为重载时自动识别降低为5V充电,可以限制功率,以保证安全;当一方接口进入轻载时,处于重载的接口可恢复快充,在条件允许下都保持两个接口MOS开关电路常开,以保证可识别不同特性设备插入判断。It can be seen that the method of the present invention increases the normally open function of the corresponding port, and can more accurately judge the plugging and unplugging of various devices in different scenarios; the open and close conditions of the MOS switch circuit enable the device to switch between normal charging and fast charging. More flexible; any single port of the AC supports a variety of fast charging protocols, and the dual-port plug-in is automatically recognized and reduced to 5V charging when it is overloaded, which can limit the power to ensure safety; when one interface enters a light load, the interface under heavy load can be used. To restore fast charging, keep the two interface MOS switch circuits normally open under conditions to ensure that devices with different characteristics can be identified and inserted.

所以,本发明相比较传统方案检测设备能力更加灵敏,两个接口在条件允许下都尽量常开,可以对小电流设备进行更加准确的检测,并且对于一些充电情景可以做到更有效省时的完成状态的切换。Therefore, compared with the traditional solution, the present invention has a more sensitive detection device capability, and both interfaces are kept open as far as possible, so that low-current devices can be detected more accurately, and for some charging scenarios, it can be more effective and time-saving. Complete the state switch.

【附图说明】【Description of drawings】

图1是本发明一种基于双接口拔插检测的快充切换电路实施例的原理图。FIG. 1 is a schematic diagram of an embodiment of a fast charging switching circuit based on dual-interface plug-in detection according to the present invention.

图2是本发明一种基于双接口拔插检测的快充切换电路实施例中第一快充控制电路的电路原理图。FIG. 2 is a circuit schematic diagram of a first fast-charging control circuit in an embodiment of a fast-charging switching circuit based on dual-interface unplugging detection according to the present invention.

图3是本发明一种基于双接口拔插检测的快充切换电路实施例中第二快充控制电路的电路原理图。3 is a circuit schematic diagram of a second fast charging control circuit in an embodiment of a fast charging switching circuit based on dual-interface plugging detection according to the present invention.

图4是本发明一种基于双接口拔插检测的快充切换电路实施例中USB Type-A接口、第一开关电路、第一插拔检测电路的电路原理图。4 is a circuit schematic diagram of a USB Type-A interface, a first switch circuit, and a first plug detection circuit in an embodiment of a fast charge switching circuit based on dual-interface plug-in detection according to the present invention.

图5是本发明一种基于双接口拔插检测的快充切换电路实施例中USB Type-C接口、第二开关电路的电路原理图。FIG. 5 is a circuit schematic diagram of a USB Type-C interface and a second switch circuit in an embodiment of a fast charging switching circuit based on dual-interface unplugging detection according to the present invention.

图6是本发明一种基于双接口拔插检测的快充切换电路实施例中第一插拔检测电路、第二插拔检测电路的电路原理图。FIG. 6 is a circuit schematic diagram of a first plugging detection circuit and a second plugging detection circuit in an embodiment of a fast charging switching circuit based on dual-interface plugging detection according to the present invention.

图7是本发明一种基于双接口拔插检测的快充切换电路实施例中第一开关电路的电路原理图。FIG. 7 is a circuit schematic diagram of a first switch circuit in an embodiment of a fast charge switching circuit based on dual-interface plug-in detection according to the present invention.

图8是本发明一种基于双接口拔插检测的快充切换电路实施例中电流检测电路的电路原理图。FIG. 8 is a circuit schematic diagram of a current detection circuit in an embodiment of a fast charging switching circuit based on dual-interface plug-in detection according to the present invention.

图9是本发明一种基于双接口拔插检测的快充切换电路的快充切换方法实施例的工作流程框图。FIG. 9 is a block diagram of a work flow of an embodiment of a fast charging switching method of a fast charging switching circuit based on dual-interface plugging and unplugging detection according to an embodiment of the present invention.

【具体实施方式】【Detailed ways】

为了使发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限用于本发明。In order to make the objectives, technical solutions and advantages of the invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not limited to the present invention.

一种基于双接口拔插检测的快充切换电路实施例:An embodiment of a fast charging switching circuit based on dual-interface plugging detection:

参加图1,本发明的一种基于双接口拔插检测的快充切换电路包括电源端100、整流变压电路10、控制系统20、USB Type-A接口1、USB Type-C接口2,电源端100输入电源电压至整流变压电路10,整流变压电路10与USB Type-A接口1、USB Type-C接口2之间连接有滤波消磁电路30,USB Type-A接口1、USB Type-C接口2处连接有开关单元,控制系统20连接至整流变压电路10与USB Type-A接口1、USB Type-C接口2之间。Referring to FIG. 1 , a fast charging switching circuit based on dual-interface plug-in detection of the present invention includes a power supply terminal 100, a rectifier and transformer circuit 10, a control system 20, a USB Type-A interface 1, a USB Type-C interface 2, and a power supply. The terminal 100 inputs the power supply voltage to the rectifier and transformer circuit 10. A filter and degaussing circuit 30 is connected between the rectifier and transformer circuit 10 and the USB Type-A interface 1 and the USB Type-C interface 2. The USB Type-A interface 1 and the USB Type- A switch unit is connected to the C interface 2 , and the control system 20 is connected between the rectifier and transformer circuit 10 and the USB Type-A interface 1 and the USB Type-C interface 2 .

在本实施例中,控制系统20包括快充控制单元40以及插拔检测单元50,插拔检测单元50分别检测USB Type-A接口1、USB Type-C接口2的设备插拔信号,快充控制单元40根据检测到的设备插拔信号产生开关控制信号,快充控制单元40根据开关控制信号向开关电路发送开关信号以导通/关闭电源端100至USB Type-A接口1、USB Type-C接口2的充电路径。可见,控制系统20主要分为快充控制和插拔检测部分:插入检测部分根据实际不同芯片有所不同。USB Type-A接口1可分为DCP插入检测和外部中断插入检测,USB Type-C接口2则遵循Type-C连接与断开规则进行插入检测判断。In this embodiment, the control system 20 includes a fast charging control unit 40 and a plug-in detection unit 50. The plug-in detection unit 50 detects the device plug-in signals of the USB Type-A interface 1 and the USB Type-C interface 2 respectively. The control unit 40 generates a switch control signal according to the detected device plug-in signal, and the fast charge control unit 40 sends a switch signal to the switch circuit according to the switch control signal to turn on/off the power terminal 100 to the USB Type-A interface 1, USB Type- The charging path of C interface 2. It can be seen that the control system 20 is mainly divided into fast charging control and plugging detection parts: the plugging detection part is different according to the actual chips. USB Type-A interface 1 can be divided into DCP insertion detection and external interrupt insertion detection, while USB Type-C interface 2 follows the Type-C connection and disconnection rules for insertion detection and judgment.

在本实施例中,整流变压电路10可以是常规任意的整流变压电路,滤波消磁电路30任意对应滤波消磁电路30,也可以是滤波电路与消磁电路的整合。本实施例的电源端输入可以是适配器或车充电源等作为电源经过整流变压电路10变压、整流后输送给滤波消磁电路30进行滤波、消磁,最终成为稳定的直流电源。In this embodiment, the rectifier and transformer circuit 10 may be any conventional rectifier and transformer circuit, and the filter degaussing circuit 30 corresponds to any filter and degaussing circuit 30, or may be an integration of the filter circuit and the degaussing circuit. The input of the power supply terminal in this embodiment can be an adapter or a car charging source.

在本实施例中,快充控制单元40包括第一快充控制电路41以及第二快充控制电路42,插拔检测单元50包括第一插拔检测电路以及第二插拔检测电路,开关单元包括第一开关电路61以及第二开关电路62,第一插拔检测电路检测USB Type-A接口1的设备插拔信号,第一快充控制电路41根据检测到的USB Type-A接口1的设备插拔信号产生第一开关控制信号,第一快充控制电路41根据第一开关控制信号向第一开关电路61发送开关信号以导通/关闭电源端100至USB Type-A接口1的充电路径;第二插拔检测电路检测USB Type-C接口2的设备插拔信号,第二快充控制电路42根据检测到的USB Type-C接口2的设备插拔信号产生第二开关控制信号,第二快充控制电路42根据第二开关控制信号向第二开关电路62发送开关信号以导通/关闭电源端100至USB Type-C接口2的充电路径。In this embodiment, the fast charging control unit 40 includes a first fast charging control circuit 41 and a second fast charging control circuit 42 , the plugging detection unit 50 includes a first plugging detection circuit and a second plugging detection circuit, and a switch unit Including a first switch circuit 61 and a second switch circuit 62, the first plug detection circuit detects the device plug signal of the USB Type-A interface 1, and the first fast charge control circuit 41 according to the detected USB Type-A interface 1. The device plug-in signal generates a first switch control signal, and the first fast charge control circuit 41 sends a switch signal to the first switch circuit 61 according to the first switch control signal to turn on/off the charging of the power supply terminal 100 to the USB Type-A interface 1 Path; the second plug detection circuit detects the device plug signal of the USB Type-C interface 2, and the second fast charge control circuit 42 generates a second switch control signal according to the detected device plug signal of the USB Type-C interface 2, The second fast charge control circuit 42 sends a switch signal to the second switch circuit 62 according to the second switch control signal to turn on/off the charging path from the power terminal 100 to the USB Type-C interface 2 .

参见图2,第一快充控制电路41包括第一快充协议控制电路411、第一MTK快充控制单元412、第一DCP协议电路413、第一端口控制电路414,第一快充协议控制电路411、第一MTK快充控制单元412、第一DCP协议电路413的使能端分别通过第一端口控制电路414与第一插拔检测电路电连接。具体的,第一DCP协议电路413主要针对BC1.2和APPLE;第一快充协议控制电路411主要针对QC2.0/QC3.0/AFC/FCP/SCP/SFCP等使用DP,DM进行通讯的快充;第一MTK快充控制电路412主要针对使用电流通过VBUS通讯的MTK协议。Referring to FIG. 2, the first fast charging control circuit 41 includes a first fast charging protocol control circuit 411, a first MTK fast charging control unit 412, a first DCP protocol circuit 413, a first port control circuit 414, and a first fast charging protocol control circuit 414. The circuit 411 , the first MTK fast charge control unit 412 , and the enable end of the first DCP protocol circuit 413 are respectively electrically connected to the first plug detection circuit through the first port control circuit 414 . Specifically, the first DCP protocol circuit 413 is mainly for BC1.2 and APPLE; the first fast charging protocol control circuit 411 is mainly for QC2.0/QC3.0/AFC/FCP/SCP/SFCP etc. which use DP and DM for communication Fast charging; the first MTK fast charging control circuit 412 is mainly for the MTK protocol that uses current to communicate through VBUS.

参见图3,第二快充控制电路42包括第二快充协议控制电路421、第二MTK快充控制单元422、第二DCP协议电路423、第二端口控制电路423、PD控制电路425,第二快充协议控制电路421、第二MTK快充控制单元422、第二DCP协议电路423、PD控制电路425的使能端分别通过第二端口控制电路423与第二插拔检测电路电连接。具体的,第二DCP协议电路423主要针对BC1.2和APPLE;第二快充协议控制电路421主要针对QC2.0/QC3.0/AFC/FCP/SCP/SFCP等使用DP,DM进行通讯的快充;第二MTK快充控制电路422主要针对使用电流通过VBUS通讯的MTK协议;PD控制电路425运行在终端和充电器上,使用CC/进行通讯的协议,为PD协议,包括PD2.0/3.0。Referring to FIG. 3 , the second fast charge control circuit 42 includes a second fast charge protocol control circuit 421 , a second MTK fast charge control unit 422 , a second DCP protocol circuit 423 , a second port control circuit 423 , and a PD control circuit 425 . The enabling terminals of the second fast charging protocol control circuit 421 , the second MTK fast charging control unit 422 , the second DCP protocol circuit 423 , and the PD control circuit 425 are respectively electrically connected to the second plugging detection circuit through the second port control circuit 423 . Specifically, the second DCP protocol circuit 423 is mainly for BC1.2 and APPLE; the second fast charging protocol control circuit 421 is mainly for QC2.0/QC3.0/AFC/FCP/SCP/SFCP etc. which use DP and DM for communication Fast charging; the second MTK fast charging control circuit 422 is mainly for the MTK protocol that uses current to communicate through VBUS; the PD control circuit 425 runs on the terminal and the charger, and uses the CC/ communication protocol, which is the PD protocol, including PD2.0 /3.0.

参见图4至图8,开关单元还包括电流检测电路,USB Type-A接口1的接地端连接有第一采样电阻R1,USB Type-C接口2的接地端连接有第二采样电阻R2,电流检测电路分别检测第一采样电阻R1、第二采样电阻R2的压差信号,在本实施例中,采用运放的方式作电流检测,可以使电流检测更准确,其中,电流检测电路分为电源端100电流检测电路204和地端拔电流检测电路205(采用差分运算电路)。4 to 8, the switch unit further includes a current detection circuit, the ground terminal of the USB Type-A interface 1 is connected with a first sampling resistor R1, the ground terminal of the USB Type-C interface 2 is connected with a second sampling resistor R2, and the current The detection circuit detects the voltage difference signals of the first sampling resistor R1 and the second sampling resistor R2 respectively. In this embodiment, the current detection is performed by means of an operational amplifier, which can make the current detection more accurate. The current detection circuit is divided into a power supply Terminal 100 current detection circuit 204 and ground terminal pull current detection circuit 205 (using differential operation circuit).

其中,第一插拔检测电路以及第二插拔检测电路均包括电源端100拔插检测电路201和地端拔插检测电路202。其中,参见图6,电源端100拔插检测电路201包括电阻R3、二极管D1,电阻R3的一端接电源端100VCC,电阻R3的另一端接二极管D1的正极,二极管D1的负极接VOUT;地端拔插检测电路202包括电阻R4、电阻R5、MOS管Q1,MOS管Q1的源极与电阻R5的一端连接,电阻R4的两端连接在MOS管Q1的漏极和电阻R5的另一端之间。The first plug detection circuit and the second plug detection circuit include a plug detection circuit 201 of the power supply terminal 100 and a plug detection circuit 202 of the ground terminal. 6 , the plug-in detection circuit 201 of the power terminal 100 includes a resistor R3 and a diode D1. One end of the resistor R3 is connected to the power terminal 100VCC, the other end of the resistor R3 is connected to the anode of the diode D1, and the cathode of the diode D1 is connected to VOUT; the ground terminal The plug-in detection circuit 202 includes a resistor R4, a resistor R5, and a MOS transistor Q1. The source of the MOS transistor Q1 is connected to one end of the resistor R5, and the two ends of the resistor R4 are connected between the drain of the MOS transistor Q1 and the other end of the resistor R5. .

参见图7,第一开关电路61、第二开关电路62均为MOS管开关电路,由MOS管作为开关元件,同样是工作在截止或导通两种状态。Referring to FIG. 7 , the first switch circuit 61 and the second switch circuit 62 are both MOS transistor switch circuits, and the MOS transistor is used as a switch element, and also works in two states of off or on.

由此可见,本发明采用USB Type-A接口1常开,USB Type-C接口2在建立CC连接时,也保持常开状态;在普通充电状态下,可以保持两个接口的开关地电路处于常开状态,有利于检测小电流设备的插入,提高了应用的广泛性;两个接口分别支持多种快充协议,有极好的协议兼容性;在两个接口MOS管开关电路都打开时,在一方接口为轻载时,另一方接口仍可恢复快充;可以节约电路设计成本,成本较低;可以扩大可检测设备范围;情景切换更加高效省时,尽可能满足快充需求。It can be seen that the present invention adopts the USB Type-A interface 1 to be normally open, and the USB Type-C interface 2 also maintains the normally open state when the CC connection is established; in the normal charging state, the switch ground circuits of the two interfaces can be kept in The normally open state is conducive to detecting the insertion of low-current devices and improves the versatility of applications; the two interfaces respectively support a variety of fast charging protocols, and have excellent protocol compatibility; when both interface MOS tube switch circuits are turned on , when one interface is lightly loaded, the other interface can still resume fast charging; circuit design costs can be saved, and the cost is lower; the range of detectable devices can be expanded; context switching is more efficient and time-saving, and can meet the needs of fast charging as much as possible.

所以,本发明相比较传统方案检测设备能力更加灵敏,两个接口在条件允许下都尽量常开,可以对小电流设备进行更加准确的检测,并且对于一些充电情景可以做到更有效省时的完成状态的切换。Therefore, compared with the traditional solution, the present invention has a more sensitive detection device capability, and both interfaces are kept open as far as possible, so that low-current devices can be detected more accurately, and for some charging scenarios, it can be more effective and time-saving. Complete the state switch.

一种基于双接口拔插检测的快充切换电路的快充切换方法实施例:An embodiment of a fast charging switching method based on a fast charging switching circuit based on dual-interface unplugging detection:

一种基于双接口拔插检测的快充切换电路的快充切换方法,应用于上述的快充切换电路。该方法包括在确定系统处于上电状态后,实时检测两个接口的带载状态和充电模式是否发生变化,若发生变化,则判断两个接口的MOS管开关电路当前状态是否处于开启状态,若两个接口的MOS管开关电路均处于开启状态,则判断USB Type-A接口1当前状态是否为重载状态,在确定USB Type-A接口1当前状态为重载状态后,判断USB Type-C接口2当前状态是否为重载状态,若两个接口当前状态均为重载状态,则关闭快充使能,对两个接口进行模拟USB插拔,并进入普通充电状态;如确定USB Type-A接口1当前状态不是重载状态,则判断两个接口当前状态是否为轻载状态,如不是,则可确定USB Type-C接口2为重载状态,则判断是否开启快充使能,如不是,则关闭USB Type-C接口2的MOS管开关电路,并控制开启快充使能,对USB Type-C接口2进行模拟USB插拔,对其MOS管开关电路执行关开操作以促使USB Type-C接口2重新申请快充,其中,在USB Type-C接口2进入快充状态时,USB Type-A接口1保持常开状态。A fast-charge switching method of a fast-charge switching circuit based on dual-interface plug-in detection is applied to the above-mentioned fast-charge switching circuit. The method includes, after it is determined that the system is in the power-on state, real-time detection of whether the loading state and charging mode of the two interfaces have changed, and if there is a change, judging whether the current state of the MOS transistor switch circuits of the two interfaces is in the open state, if If the MOS switch circuits of the two interfaces are both in the open state, it is judged whether the current state of the USB Type-A interface 1 is the overloaded state. Whether the current state of interface 2 is overloaded, if the current state of both interfaces is overloaded, turn off the fast charging enable, simulate USB plugging and unplugging of the two interfaces, and enter the normal charging state; if the USB Type- If the current state of port A is not overloaded, then judge whether the current state of the two interfaces is in the light-loaded state. If not, it can be determined that the USB Type-C interface 2 is in the overloaded state, and then judge whether to enable fast charging. If not, turn off the MOS tube switch circuit of USB Type-C interface 2, and control to turn on the fast charge enable, simulate USB plugging and unplugging of USB Type-C interface 2, and perform the on-off operation of its MOS tube switch circuit to prompt the USB Type-C interface 2 re-applies for fast charging, wherein, when USB Type-C interface 2 enters the fast charging state, USB Type-A interface 1 remains normally open.

在本实施例中,接口的带载状态的变化可以从电流阈值来进行检测,当大于电流阈值即认为从轻载到重载的转变。当小于电流阈值,即从重载到轻载的转变;充电模式即由当前充电口所触发的快充协议,判断是哪一种快充模式,或者是在快充模式还是普通充电模式,即实时监测双口处于的带载状态和触发的快充。In this embodiment, the change of the loaded state of the interface can be detected from the current threshold, and when the current threshold is greater than the current threshold, it is considered a transition from light load to heavy load. When it is less than the current threshold, it means the transition from heavy load to light load; the charging mode is the fast charging protocol triggered by the current charging port to determine which fast charging mode it is, or whether it is in the fast charging mode or the normal charging mode, that is Real-time monitoring of the loaded state of the dual ports and the triggered fast charge.

在本实施例中,轻载时指在电路的负载能力范围内,低于某个负载阈值即判断为轻载,这个阈值可以根据实际应用而变动,可以以输出功率占总功率的百分比来判定,低于该值即为轻载;重载即指高于此阈值即判定为重载。在该应用中,也可根据负载设备抽取电流的大小来判断轻载/重载。In this embodiment, light load refers to the load capacity range of the circuit, and it is judged as a light load when it is lower than a certain load threshold. This threshold can be changed according to the actual application, and can be judged by the percentage of the output power to the total power , below this value is light load; heavy load means above this threshold is judged as heavy load. In this application, light load/heavy load can also be judged according to the magnitude of the current drawn by the load device.

进一步的,在确定USB Type-A接口1当前状态为重载状态后,判断USB Type-C接口2当前状态是否为重载状态,若USB Type-C接口2当前状态不是重载状态,则判断两个接口当前状态是否为轻载状态,如不是,则判断是否开启快充使能,如不是,则关闭USB Type-A接口1的MOS管开关电路,并控制开启快充使能,对USB Type-A接口1进行模拟USB插拔,对其MOS管开关电路执行关开操作以促使USB Type-A接口1重新申请快充,在USB Type-A接口1进入快充状态时,若USB Type-C接口2没有建立CC连接,则关闭USB Type-C接口2。Further, after determining that the current state of the USB Type-A interface 1 is the overloaded state, determine whether the current state of the USB Type-C interface 2 is the overloaded state, and if the current state of the USB Type-C interface 2 is not the overloaded state, then determine whether the current state of the USB Type-C interface 2 is the overloaded state. Whether the current state of the two interfaces is a light-load state, if not, judge whether to enable the fast charge enable, if not, turn off the MOS switch circuit of the USB Type-A interface 1, and control to turn on the fast charge enable. Type-A interface 1 performs analog USB plugging and unplugging, and performs a switching operation on its MOS tube switch circuit to prompt USB Type-A interface 1 to re-apply for fast charging. When USB Type-A interface 1 enters the fast charging state, if the USB Type-A interface -C interface 2 does not establish a CC connection, then close USB Type-C interface 2.

进一步的,在确定USB Type-C接口2为重载状态后,若已经开启了快充使能,则判断USB Type-C接口2是否进入快充,如是,则USB Type-C接口2进入快充状态;在确定USBType-A接口1当前状态为重载状态后,若已经开启了快充使能,则判断USB Type-A接口1是否进入快充,如是,则USB Type-A接口1进入快充状态。Further, after it is determined that the USB Type-C interface 2 is in an overloaded state, if the fast charging enablement has been enabled, it is determined whether the USB Type-C interface 2 enters the fast charging state. If so, the USB Type-C interface 2 enters the fast charging state. Charging status; after confirming that the current status of USB Type-A interface 1 is overloaded, if fast charging has been enabled, then determine whether USB Type-A interface 1 enters fast charging, and if so, USB Type-A interface 1 enters Fast charge status.

进一步的,在判断两个接口的MOS管开关电路当前状态是否处于开启状态时,若只是单个USB Type-A接口1或USB Type-C接口2的MOS管开关电路处于开启状态,则判断单个USB Type-A接口1或USB Type-C接口2是否处于轻载状态,如是,则打开已经关闭的接口,使两个接口均处于开启状态。Further, when judging whether the current state of the MOS tube switch circuits of the two interfaces is in an open state, if only the MOS tube switch circuit of a single USB Type-A interface 1 or USB Type-C interface 2 is in an open state, it is judged that a single USB Whether Type-A port 1 or USB Type-C port 2 is in a light load state, if so, open the closed port so that both ports are open.

进一步的,若两个接口都为轻载状态,并且在两个接口均处于开启状态的情况下,判断USB Type-C接口2是否建立CC连接,如不是,则关闭USB Type-C接口2;如确定USBType-C接口2建立CC连接,则保持当前状态,即两个接口均保持开启状态。Further, if both interfaces are in a light-load state, and both interfaces are in an open state, determine whether the USB Type-C interface 2 establishes a CC connection, and if not, close the USB Type-C interface 2; If it is determined that the USB Type-C interface 2 establishes the CC connection, the current state is maintained, that is, both interfaces are kept in the open state.

具体的,表1为不同情境对应的双口状态以及快充开关状态:Specifically, Table 1 shows the dual-port status and fast-charging switch status corresponding to different situations:

Figure BDA0002458251060000101
Figure BDA0002458251060000101

Figure BDA0002458251060000111
Figure BDA0002458251060000111

表1Table 1

在实际应用中,参见图9,该方法包括以下步骤:In practical application, referring to Figure 9, the method includes the following steps:

步骤1,在系统上电后处于常驻状态,在常驻状态中,USB Type-A接口1的MOS管开关电路上电即开。Step 1: After the system is powered on, it is in a resident state. In the resident state, the MOS transistor switch circuit of the USB Type-A interface 1 is turned on when it is powered on.

步骤2,判断两个接口的带载状态和充电模式(普通充电/快充)是否发生变化,如发生变化则执行步骤3,否则执行步骤16。Step 2, determine whether the loading state and charging mode (normal charging/fast charging) of the two interfaces have changed, if there is a change, go to Step 3, otherwise go to Step 16.

步骤3,判断当前状态两个接口的MOS管开关电路的打开情况,其中,对于两个接口的MOS管开关电路打开情况所对应的步骤如下:(1)、单个USB Type-A接口1或USB Type-C接口2的MOS管开关电路处于开启状态,执行步骤12。(2)、两个接口的MOS管开关电路打开,执行步骤4。Step 3: Judging the current state of the open state of the MOS tube switch circuits of the two interfaces, wherein the steps corresponding to the open state of the MOS tube switch circuits of the two interfaces are as follows: (1), a single USB Type-A interface 1 or USB The MOS transistor switch circuit of the Type-C interface 2 is in an on state, and step 12 is executed. (2) The MOS transistor switch circuits of the two interfaces are turned on, and step 4 is performed.

步骤4,判断USB Type-A接口1当前状态是否为重载,在确定USB Type-A接口1当前状态为重载状态后,执行步骤5;如果确定USB Type-A接口1当前状态不是重载状态,则执行步骤7。Step 4: Determine whether the current state of the USB Type-A interface 1 is overloaded. After determining that the current state of the USB Type-A interface 1 is the overloaded state, perform step 5; if it is determined that the current state of the USB Type-A interface 1 is not overloaded status, go to step 7.

步骤5,判断USB Type-C接口2当前状态是否为重载状态,若USB Type-C接口2当前状态不是重载状态,执行步骤7;在确定USB Type-A接口1当前状态为重载状态后,执行步骤6。Step 5, determine whether the current state of the USB Type-C interface 2 is the overload state, if the current state of the USB Type-C interface 2 is not the overload state, go to step 7; after determining that the current state of the USB Type-A interface 1 is the overload state After that, go to step 6.

步骤6,若两个接口当前状态均为重载状态,关闭快充使能,对两个接口进行模拟插拔开关NMOS,并进入双口普通充电状态,然后执行步骤16。Step 6 , if the current state of the two interfaces is in the heavy load state, turn off the fast charging enable, perform an analog plug-in switch NMOS on the two interfaces, and enter the dual-port normal charging state, and then go to step 16 .

步骤7,判断两个接口当前状态是否为轻载状态,若是,则执行步骤14,否则,执行步骤8。Step 7, determine whether the current state of the two interfaces is a light load state, if yes, go to Step 14, otherwise, go to Step 8.

其中,在步骤7中,若确定两个接口当前状态不为轻载状态,则可确定USB Type-A接口1或USB Type-C接口2其中一个接口处于重载状态。Wherein, in step 7, if it is determined that the current states of the two interfaces are not in the light-load state, it may be determined that one of the USB Type-A interface 1 or the USB Type-C interface 2 is in the heavy-load state.

步骤8,判断是否开启快充使能,如不是,则执行步骤9,如是,则执行步骤10。Step 8, determine whether to enable fast charging, if not, go to Step 9, if yes, go to Step 10.

步骤9,则关闭USB Type-A接口1的MOS管开关电路,并控制开启快充使能,对重载口USB Type-A接口1进行模拟USB插拔,对其MOS管开关电路执行关开操作以促使USB Type-A接口1重新申请快充,然后,跳转步骤16。其中,在USB Type-A接口1进入快充状态时,若USBType-C接口2没有建立CC连接,则关闭USB Type-C接口2。Step 9: Turn off the MOS tube switch circuit of the USB Type-A interface 1, and control to turn on the fast charging enable, simulate USB plugging and unplugging of the USB Type-A interface 1 of the heavy load port, and perform the on-off of the MOS tube switch circuit. Operate to prompt the USB Type-A port 1 to re-apply for fast charging, and then go to step 16. Wherein, when the USB Type-A interface 1 enters the fast charging state, if the USB Type-C interface 2 does not establish a CC connection, the USB Type-C interface 2 is closed.

步骤10,判断重载口是否进入快充,进入快充,执行步骤11,否则跳转步骤16。In step 10, it is judged whether the reload port has entered into fast charge, and into fast charge, step 11 is executed; otherwise, step 16 is skipped.

其中,在步骤10中,在确定USB Type-C接口2为重载状态后,若已经开启了快充使能,则判断USB Type-C接口2是否进入快充,如是,则USB Type-C接口2进入快充状态;在确定USB Type-A接口1当前状态为重载状态后,若已经开启了快充使能,则判断USB Type-A接口1是否进入快充,如是,则USB Type-A接口1进入快充状态。Wherein, in step 10, after it is determined that the USB Type-C interface 2 is in an overloaded state, if the fast charging enablement has been turned on, it is determined whether the USB Type-C interface 2 enters the fast charging state, and if so, the USB Type-C Interface 2 enters the fast charging state; after determining that the current state of USB Type-A interface 1 is overloaded, if the fast charging enablement has been enabled, it is judged whether the USB Type-A interface 1 enters the fast charging state. -A port 1 enters the fast charging state.

步骤11,在重载口进入快充状态,关闭轻载口,然后,跳转步骤16。Step 11, enter the fast charging state at the heavy load port, close the light load port, and then go to step 16.

步骤12,若只是单个USB Type-A接口1或USB Type-C接口2的MOS管开关电路处于开启状态,则判断该接口是否处于轻载状态,如果处于轻载,则跳转步骤13,否则跳转步骤16。Step 12, if only the MOS switch circuit of a single USB Type-A interface 1 or USB Type-C interface 2 is in the open state, then judge whether the interface is in a light load state, if it is in a light load state, skip to step 13, otherwise Go to step 16.

步骤13,在单个接口开的情况,且该接口处于轻载,则打开已经关闭的接口,使两个接口均处于开启状态,然后,跳转步骤16。其中,如果要开USB Type-C接口2,必须是CC连接的状态下,如果CC不连接,则直接跳转到步骤16。Step 13 , when a single interface is open and the interface is under light load, the closed interface is opened so that both interfaces are in an open state, and then step 16 is skipped. Among them, if you want to open the USB Type-C interface 2, it must be in the state where the CC is connected. If the CC is not connected, go directly to step 16.

步骤14,若两个接口都为轻载状态,并且在两个接口均处于开启状态的情况下,判断USB Type-C接口2是否建立CC连接,如确定USB Type-C接口2建立CC连接,则保持当前状态,否则跳转步骤15。Step 14: If both interfaces are in a light-load state and both interfaces are in an open state, determine whether the USB Type-C interface 2 establishes a CC connection. For example, it is determined that the USB Type-C interface 2 establishes a CC connection. Then keep the current state, otherwise jump to step 15.

步骤15,关闭USB Type-C接口2。跳转步骤16。Step 15, close the USB Type-C interface 2. Go to step 16.

步骤16,常驻状态,任何支路之后最后都跳转到该状态,之后跳转步骤1,在该状态持续进行带载状态以及充电模式的检测。Step 16, resident state, after any branch, jump to this state at the end, and then jump to step 1, and continue to detect the loaded state and the charging mode in this state.

由此可见,本发明的方法增加了对应口的常开功能,可以更加精确的对各种设备不同情景进行插拔判断;MOS开关电路的打开关闭条件使得设备在普充和快充切换之间更加灵活;AC任意单口支持多种快充协议,双口插入都为重载时自动识别降低为5V充电,可以限制功率,以保证安全;当一方接口进入轻载时,处于重载的接口可恢复快充,在条件允许下都保持两个接口MOS开关电路常开,以保证可识别不同特性设备插入判断。It can be seen that the method of the present invention increases the normally open function of the corresponding port, and can more accurately judge the plugging and unplugging of various devices in different scenarios; the open and close conditions of the MOS switch circuit enable the device to switch between normal charging and fast charging. More flexible; any single port of the AC supports a variety of fast charging protocols, and the dual-port plug-in is automatically recognized and reduced to 5V charging when it is overloaded, which can limit the power to ensure safety; when one interface enters a light load, the interface under heavy load can be used. To restore fast charging, keep the two interface MOS switch circuits normally open under conditions to ensure that devices with different characteristics can be identified and inserted.

所以,本发明相比较传统方案检测设备能力更加灵敏,两个接口在条件允许下都尽量常开,可以对小电流设备进行更加准确的检测,并且对于一些充电情景可以做到更有效省时的完成状态的切换。主要有以下几个特点:Therefore, compared with the traditional solution, the present invention has a more sensitive detection device capability, and both interfaces are kept open as far as possible, so that low-current devices can be detected more accurately, and for some charging scenarios, it can be more effective and time-saving. Complete the state switch. Mainly have the following characteristics:

1、USB Type-A接口设置为常开,上电即开,关闭的唯一情景即USB Type-C接口进入快充。1. The USB Type-A interface is set to be normally open, and it will open immediately after power-on, and the only situation when it is closed is that the USB Type-C interface enters fast charging.

2、USB Type-C接口的关闭情景为:(1)CC未连接;(2)USB Type-A接口申请快充;其他情景USB Type-C接口保持常开。2. The shutdown scenarios of the USB Type-C interface are: (1) CC is not connected; (2) The USB Type-A interface applies for fast charging; in other scenarios, the USB Type-C interface remains normally open.

3、软件控制模拟插拔,不必人为物理插拔,节约时间,更加高效。3. The software controls the analog plugging and unplugging, which saves time and is more efficient without manual physical plugging and unplugging.

4、任意单口支持多种快充,双口充电时,自动降为5V;当其中一个接口变为轻载,对重载口模拟插拔,重载口可自动恢复快充。4. Any single port supports a variety of fast charging. When dual-port charging, it will automatically drop to 5V; when one of the ports becomes light-loaded, the heavy-load port is simulated plugging and unplugging, and the heavy-load port can automatically resume fast charging.

5、单路变压,在控制系统20后进行分支,节约成本,硬件电路更加简单,可外置双开关进行单独控制,控制更加灵活。5. The single-channel transformer can be branched after the control system 20, which saves costs, and the hardware circuit is simpler. It can be independently controlled by an external double switch, and the control is more flexible.

6、轻重载检测判断条件覆盖范围广,可有效检测不同电气特性设备。可从电流值,快充高压,DCP与CC连接状态,快充模式等方面进行限制。6. The light and heavy load detection judgment conditions cover a wide range, which can effectively detect equipment with different electrical characteristics. It can be limited in terms of current value, fast charging high voltage, DCP and CC connection status, and fast charging mode.

需要说明的是,以上仅为本发明的优选实施例,但发明的设计构思并不局限于此,凡利用此构思对本发明做出的非实质性修改,也均落入本发明的保护范围之内。It should be noted that the above are only the preferred embodiments of the present invention, but the design concept of the invention is not limited thereto, and any non-substantial modification made to the present invention by using this concept also falls within the protection scope of the present invention. Inside.

Claims (10)

1. The utility model provides a fast switching circuit that charges based on two interfaces are pulled out and are inserted detection, includes, its characterized in that:
the power supply comprises a power supply end, a rectification transformation circuit, a control system, a USB Type-A interface and a USB Type-C interface, wherein the power supply end inputs power supply voltage to the rectification transformation circuit, a filtering degaussing circuit is connected between the rectification transformation circuit and the USB Type-A interface and between the rectification transformation circuit and the USB Type-C interface, switch units are connected at the USB Type-A interface and the USB Type-C interface, and the control system is connected between the rectification transformation circuit and the USB Type-A interface and between the rectification transformation circuit and the USB Type-C interface;
the control system comprises a quick charging control unit and a plug detection unit, wherein the plug detection unit respectively detects equipment plug signals of the USB Type-A interface and the USB Type-C interface, the quick charging control unit generates a switch control signal according to the detected equipment plug signals, and the quick charging control unit sends a switch signal to the switch circuit according to the switch control signal to switch on/off a charging path from the power supply end to the USB Type-A interface and the USB Type-C interface.
2. The fast charge switching circuit according to claim 1, wherein:
the quick charging control unit comprises a first quick charging control circuit and a second quick charging control circuit, the plug detection unit comprises a first plug detection circuit and a second plug detection circuit, the switch unit comprises a first switch circuit and a second switch circuit, the first plug detection circuit detects an equipment plug signal of the USB Type-A interface, the first quick charging control circuit generates a first switch control signal according to the detected equipment plug signal of the USB Type-A interface, and the first quick charging control circuit sends a switch signal to the first switch circuit according to the first switch control signal so as to switch on/off a charging path from the power supply end to the USB Type-A interface;
the second plug detection circuit detects an equipment plug signal of the USB Type-C interface, the second quick-charging control circuit generates a second switch control signal according to the detected equipment plug signal of the USB Type-C interface, and the second quick-charging control circuit sends a switch signal to the second switch circuit according to the second switch control signal to switch on/off a charging path from the power supply end to the USB Type-C interface.
3. The fast charge switching circuit according to claim 2, wherein:
the first switch circuit and the second switch circuit are both MOS tube switch circuits.
4. A fast charge switching circuit according to claim 2 or 3, wherein:
the first fast charging control circuit comprises a first fast charging protocol control circuit, a first MTK fast charging control unit, a first DCP protocol circuit and a first port control circuit, and enabling ends of the first fast charging protocol control circuit, the first MTK fast charging control unit and the first DCP protocol circuit are respectively electrically connected with the first plugging detection circuit through the first port control circuit.
5. A fast charge switching circuit according to claim 2 or 3, wherein:
the second quick-charging control circuit comprises a second quick-charging protocol control circuit, a second MTK quick-charging control unit, a second DCP protocol circuit, a second port control circuit and a PD control circuit, and enabling ends of the second quick-charging protocol control circuit, the second MTK quick-charging control unit, the second DCP protocol circuit and the PD control circuit are respectively and electrically connected with the second plugging detection circuit through the second port control circuit.
6. A fast charging switching method of a fast charging switching circuit based on dual-interface plug-in detection, which is applied to the fast charging switching circuit based on dual-interface plug-in detection according to any one of claims 1 to 5, and the method includes:
after the system is determined to be in a power-on state, detecting whether the loading state and the charging mode of the two interfaces are changed in real time, if so, judging whether the current states of the MOS tube switch circuits of the two interfaces are in an open state, if both the MOS tube switch circuits of the two interfaces are in the open state, judging whether the current state of the USB Type-A interface is a heavy load state, judging whether the current state of the USB Type-C interface is the heavy load state after determining that the current state of the USB Type-A interface is the heavy load state, and if the current states of the two interfaces are the heavy load state, closing the quick charging enable, performing simulation USB plugging and unplugging on the two interfaces, and entering a common charging state;
if it is determined that the current state of the USB Type-A interface is not a heavy load state, judging whether the current states of the two interfaces are light load states, if not, determining that the USB Type-C interface is a heavy load state, judging whether to open the quick charging enable, if not, closing an MOS (metal oxide semiconductor) tube switching circuit of the USB Type-C interface, controlling to open the quick charging enable, performing simulated USB plug-pull on the USB Type-C interface, and executing switch-on and switch-off operation on the MOS tube switching circuit to enable the USB Type-C interface to reapply for quick charging, wherein when the USB Type-C interface enters the quick charging state, the USB Type-A interface is kept in a normally open state.
7. The fast charge switching method according to claim 6, characterized in that:
after the current state of the USB Type-A interface is determined to be a heavy load state, whether the current state of the USB Type-C interface is the heavy load state or not is judged, if the current state of the USB Type-C interface is not the heavy load state, whether the current states of the two interfaces are light load states or not is judged, if not, whether the current states of the two interfaces are light load states or not is judged, and if not, the MOS tube switching circuit of the USB Type-A interface is closed, the USB Type-A interface is controlled to be opened and the fast charge enable is controlled to be started, USB plugging and unplugging are simulated for the USB Type-A interface, the MOS tube switching circuit is switched on and switched off to enable the USB Type-A interface to reapply for fast charge, and when the USB Type-A interface enters the fast charge state, if the USB.
8. The fast charge switching method according to claim 7, characterized in that:
after the USB Type-C interface is determined to be in a heavy load state, if the quick charging enable is started, whether the USB Type-C interface enters the quick charging state or not is judged, and if the USB Type-C interface enters the quick charging state, the USB Type-C interface enters the quick charging state;
after the current state of the USB Type-A interface is determined to be the heavy load state, if the quick charge enabling is started, whether the USBType-A interface enters the quick charge state or not is judged, and if the USBType-A interface enters the quick charge state, the USB Type-A interface enters the quick charge state.
9. The fast charge switching method according to claim 7, characterized in that:
when judging whether the current states of the MOS tube switch circuits of the two interfaces are in the opening state, if the MOS tube switch circuit of only a single USBType-A interface or a single USB Type-C interface is in the opening state, judging whether the single USB Type-A interface or the single USB Type-C interface is in the light load state, if so, opening the closed interface, and enabling the two interfaces to be in the opening state.
10. The fast charge switching method according to claim 7, characterized in that:
if the two interfaces are in a light load state and are in an open state, judging whether the USB Type-C interface establishes CC connection or not, if not, closing the USB Type-C interface; and if the USB Type-C interface is determined to establish the CC connection, keeping the current state, namely keeping the two interfaces in the opening state.
CN202010312122.XA 2020-04-20 2020-04-20 A fast charging switching circuit and method based on dual-interface plugging detection Pending CN111404232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010312122.XA CN111404232A (en) 2020-04-20 2020-04-20 A fast charging switching circuit and method based on dual-interface plugging detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010312122.XA CN111404232A (en) 2020-04-20 2020-04-20 A fast charging switching circuit and method based on dual-interface plugging detection

Publications (1)

Publication Number Publication Date
CN111404232A true CN111404232A (en) 2020-07-10

Family

ID=71429663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010312122.XA Pending CN111404232A (en) 2020-04-20 2020-04-20 A fast charging switching circuit and method based on dual-interface plugging detection

Country Status (1)

Country Link
CN (1) CN111404232A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111817409A (en) * 2020-09-11 2020-10-23 深圳英集芯科技有限公司 Fast charging protection circuit and method, fast charging chip and fast charging power supply equipment
CN111856256A (en) * 2020-09-24 2020-10-30 深圳英集芯科技有限公司 Quick charging equipment test system and test method thereof
CN112803558A (en) * 2021-04-09 2021-05-14 深圳英集芯科技股份有限公司 Multi-quick-charging-protocol control circuit, control method, chip and electronic equipment
CN113267736A (en) * 2021-05-31 2021-08-17 荣耀终端有限公司 Charging test device and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN207320887U (en) * 2017-10-01 2018-05-04 深圳市博源电子有限公司 Charging device
CN108711906A (en) * 2018-06-04 2018-10-26 深圳英集芯科技有限公司 A kind of multi output charging system and control method
CN110380489A (en) * 2019-08-08 2019-10-25 珠海英集芯半导体有限公司 A kind of fast charge circuit that can automatically adjust power and method
CN211606163U (en) * 2020-04-20 2020-09-29 深圳英集芯科技有限公司 Fast charging switching circuit based on double-interface plug-in detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN207320887U (en) * 2017-10-01 2018-05-04 深圳市博源电子有限公司 Charging device
CN108711906A (en) * 2018-06-04 2018-10-26 深圳英集芯科技有限公司 A kind of multi output charging system and control method
CN110380489A (en) * 2019-08-08 2019-10-25 珠海英集芯半导体有限公司 A kind of fast charge circuit that can automatically adjust power and method
CN211606163U (en) * 2020-04-20 2020-09-29 深圳英集芯科技有限公司 Fast charging switching circuit based on double-interface plug-in detection

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111817409A (en) * 2020-09-11 2020-10-23 深圳英集芯科技有限公司 Fast charging protection circuit and method, fast charging chip and fast charging power supply equipment
CN114172223A (en) * 2020-09-11 2022-03-11 深圳英集芯科技股份有限公司 Quick charging protection method
CN114172224A (en) * 2020-09-11 2022-03-11 深圳英集芯科技股份有限公司 Fast protection circuit, fast chip and power supply unit that fills soon
CN114172224B (en) * 2020-09-11 2025-03-21 深圳英集芯科技股份有限公司 Fast charging protection circuit, fast charging chip and fast charging power supply equipment
CN111856256A (en) * 2020-09-24 2020-10-30 深圳英集芯科技有限公司 Quick charging equipment test system and test method thereof
CN112803558A (en) * 2021-04-09 2021-05-14 深圳英集芯科技股份有限公司 Multi-quick-charging-protocol control circuit, control method, chip and electronic equipment
CN113267736A (en) * 2021-05-31 2021-08-17 荣耀终端有限公司 Charging test device and method
CN113267736B (en) * 2021-05-31 2022-04-12 荣耀终端有限公司 Charging test device and method

Similar Documents

Publication Publication Date Title
CN111404232A (en) A fast charging switching circuit and method based on dual-interface plugging detection
CN103762690B (en) Charging system
WO2020019300A1 (en) Power supply circuit of terminal device, terminal device and power supply method
WO2020135264A1 (en) Single fast charging protocol chip-based circuit and method for controlling multiple usb ports
EP3086433A1 (en) Charging method, alternating current adaptor, charging management device and terminal
CN101976961A (en) Techniques for reducing no load power in electronic devices
CN110417085B (en) System and method for detecting insertion of apple equipment
CN106787024A (en) Charge mode switching circuit and method
CN105762892A (en) Step-down output and charging and discharging protection system for lithium battery
WO2018028316A1 (en) Terminal charging control method, device and terminal
CN111313515A (en) Multi-output-port fast charging switching circuit and method
CN105576744A (en) Charge pal switching implementation method and charge pal
CN211606163U (en) Fast charging switching circuit based on double-interface plug-in detection
US9509150B2 (en) Charging circuit and control method therefor
CN203014439U (en) Automatic identification apparatus of charger
CN104935842B (en) The control method and television system of stand-by circuit, stand-by circuit
WO2022061677A1 (en) Charing control method and circuit, device, and storage medium
CN105896662A (en) Single-port mobile power control circuit and control method thereof
CN106412245A (en) Waterproof method for USB interface and mobile terminal
CN116667473A (en) Control circuit, circuit control method and electronic equipment
CN203761089U (en) Charging system
CN206790169U (en) DC charger automatic power-off circuit
CN209562202U (en) It is a kind of to make the close circuit structure for filling and will continue to charging when full battery access
WO2021103100A1 (en) Control method for power consumption control apparatus
CN107546815B (en) Universal charger

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination