CN209343329U - A self-adaptive USB interface circuit with serial communication and fast charge recognition - Google Patents
A self-adaptive USB interface circuit with serial communication and fast charge recognition Download PDFInfo
- Publication number
- CN209343329U CN209343329U CN201920264556.XU CN201920264556U CN209343329U CN 209343329 U CN209343329 U CN 209343329U CN 201920264556 U CN201920264556 U CN 201920264556U CN 209343329 U CN209343329 U CN 209343329U
- Authority
- CN
- China
- Prior art keywords
- resistor
- electrically connected
- port
- capacitor
- power input
- 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.)
- Expired - Fee Related
Links
Landscapes
- Power Sources (AREA)
- Information Transfer Systems (AREA)
Abstract
Description
技术领域technical field
本实用新型属于USB通信及充电领域,特别涉及一种具有串口通信和快充识别自适应的USB接口电路。The utility model belongs to the field of USB communication and charging, in particular to an adaptive USB interface circuit with serial port communication and fast charging identification.
背景技术Background technique
随着电子产品的普及,终端产品一般通过USB(通用串行总线,Universal SerialBus)接口与其他设备进行连接,以实现充电及数据传输等功能。然而,由于USB协议占用软件资源,同时又要兼容适配器QC快充触发,硬件上比较复杂。With the popularization of electronic products, terminal products are generally connected with other devices through a USB (Universal Serial Bus, Universal Serial Bus) interface, so as to realize functions such as charging and data transmission. However, because the USB protocol occupies software resources and is compatible with the QC fast charging trigger of the adapter, the hardware is more complicated.
有鉴于此,本发明人专门设计了一种具有串口通信和快充识别自适应的USB接口电路,本案由此产生。In view of this, the inventor specially designed a USB interface circuit with serial port communication and fast charging recognition self-adaptation, and this case was born from it.
发明内容Contents of the invention
本实用新型的目的在于提供一种具有串口通信和快充识别自适应的USB接口电路,同时在硬件与软件上进行新的设计,通过串口与USB接口并联在一起,不仅能实现数据通信,而且通过分时复用的信号传输方法,又能触发适配器QC的快充输出;本专利可避免使用繁杂的USB协议及硬件电路设计,节省软件资源,减少开发成本。The purpose of the utility model is to provide a self-adaptive USB interface circuit with serial port communication and fast charging recognition, and at the same time carry out a new design on hardware and software, and connect the serial port and USB interface in parallel to not only realize data communication, but also Through the signal transmission method of time-division multiplexing, the fast charging output of the adapter QC can be triggered; this patent can avoid the use of complicated USB protocol and hardware circuit design, save software resources, and reduce development costs.
为了实现上述目的,本实用新型采用的技术方案如下:In order to achieve the above object, the technical scheme adopted by the utility model is as follows:
一种具有串口通信和快充识别自适应的USB接口电路,包括Micro USB接口(J1)、电源输入正极(VCC)、电源输入负极、串口通信发送端口(TX1)、串口通信接收端口(RX1)、第一电阻(R30)、第二电阻(R29)、第一电容(C39)、第三电阻(R35)、第四电阻(R34)、第二电容(C49)、第一快充触发控制端口(USBEND-)、第二快充触发控制端口(USBEND+)、第三电容(C40);A self-adaptive USB interface circuit with serial communication and fast charging identification, including Micro USB interface (J1), power input positive pole (VCC), power input negative pole, serial communication sending port (TX1), serial communication receiving port (RX1) , the first resistor (R30), the second resistor (R29), the first capacitor (C39), the third resistor (R35), the fourth resistor (R34), the second capacitor (C49), the first fast charge trigger control port (USBEND-), the second fast charge trigger control port (USBEND+), the third capacitor (C40);
所述Micro USB接口(J1)包括VBUS引脚、D+数据传输引脚、D-数据传输引脚、ID引脚(为OTG识别线,悬空为高电平,接GND为低电平,连接设备会开启OTG功能,OTG功能会改变供电方向,会从此端像外部输出电流)、GND引脚;所述电源输入正极(VCC)与所述VBUS引脚电性连接,所述电源输入负极与所述GND引脚电性连接,用于提供工作电压;所述第三电容(C40)设于所述电源输入正极(VCC)与电源输入负极之间,用于滤除电源纹波;所述D+数据传输引脚与串口通信发送端口(TX1)电性连接;所述D-数据传输引脚与串口通信接收端口(RX1)电性连接;所述第一电阻(R30)的一端与所述电源输入负极电性连接,所述第一电阻(R30)的另一端分别与所述D-数据传输引脚、第二电阻(R29)的一端电性连接;所述第二电阻(R29)的另一端分别与所述第一快充触发控制端口(USBEND-)、第一电容(C39)的一端电性连接;所述第一电容(C39)的另一端与所述电源输入负极电性连接;所述第三电阻(R35)的一端与所述电源输入负极电性连接,所述第三电阻(R35)的另一端分别与所述D+数据传输引脚、第四电阻(R34)的一端电性连接;所述第四电阻(R34)的另一端分别与所述第二快充触发控制端口(USBEND+)、第二电容(C49)的一端电性连接;所述第二电容(C49)的另一端与所述电源输入负极电性连接。The Micro USB interface (J1) includes VBUS pins, D+ data transmission pins, D- data transmission pins, and ID pins (for OTG identification lines, high level when suspended, low level when connected to GND, connected to the device The OTG function will be turned on, and the OTG function will change the direction of power supply, and will output current from this terminal like an external), GND pin; the positive pole of the power input (VCC) is electrically connected to the VBUS pin, and the negative pole of the power input is connected to the VBUS pin. The GND pin is electrically connected to provide an operating voltage; the third capacitor (C40) is set between the power input positive pole (VCC) and the power input negative pole to filter out power supply ripple; the D+ The data transmission pin is electrically connected to the serial communication sending port (TX1); the D-data transmission pin is electrically connected to the serial communication receiving port (RX1); one end of the first resistor (R30) is connected to the power supply The input negative electrode is electrically connected, and the other end of the first resistor (R30) is electrically connected to the D-data transmission pin and one end of the second resistor (R29); the other end of the second resistor (R29) One end is electrically connected to the first fast charge trigger control port (USBEND-) and one end of the first capacitor (C39); the other end of the first capacitor (C39) is electrically connected to the power input negative pole; One end of the third resistor (R35) is electrically connected to the negative pole of the power supply input, and the other end of the third resistor (R35) is electrically connected to the D+ data transmission pin and one end of the fourth resistor (R34) respectively. The other end of the fourth resistor (R34) is electrically connected to the second fast charge trigger control port (USBEND+) and one end of the second capacitor (C49); the second capacitor (C49) The other end is electrically connected to the negative pole of the power input.
优选地,所述ID引脚悬空。Preferably, the ID pin is floating.
优选地,所述D-数据传输引脚与串口通信接收端口(RX1)之间设有第五电阻(R37),所述第五电阻(R37)的阻值为0欧姆。Preferably, a fifth resistor (R37) is provided between the D-data transmission pin and the serial communication receiving port (RX1), and the resistance value of the fifth resistor (R37) is 0 ohms.
优选地,所述D+数据传输引脚与串口通信发送端口(TX1)之间设有第六电阻(R38),所述第六电阻(R38)的阻值为1000欧姆。Preferably, a sixth resistor (R38) is provided between the D+ data transmission pin and the serial communication sending port (TX1), and the resistance value of the sixth resistor (R38) is 1000 ohms.
一种如上所述的具有串口通信和快充识别自适应的USB接口电路的处理方法,将上述所述的具有串口通信和快充识别自适应的USB接口电路应用于电子设备系统,并采用分时复用的信号传输方法,具体包括以下步骤:A processing method of the above-mentioned USB interface circuit with serial port communication and fast charge recognition self-adaption, applying the above-mentioned USB interface circuit with serial port communication and fast charge recognition self-adaption to the electronic equipment system, and adopting A signal transmission method for time multiplexing, specifically comprising the following steps:
步骤S01,电子设备系统上电;Step S01, power on the electronic equipment system;
步骤S02,判断电子设备系统是否需要通过Micro USB接口(J1)进行外部通信,如判断需要则进入步骤S03,如判断不需要则进入步骤S05;Step S02, judging whether the electronic device system needs to perform external communication through the Micro USB interface (J1), if it is judged that it is necessary, then go to step S03, if it is judged that it is not necessary, then go to step S05;
步骤S03,如电子设备系统需接收通信数据,则通信数据依次通过所述D-数据传输引脚、串口通信接收端口(RX1)传输至电子设备系统;如电子设备系统需对外发送通信数据,则通信数据依次通过所述串口通信发送端口(TX1)、D+数据传输引脚传输至外部通信设备;Step S03, if the electronic equipment system needs to receive communication data, then the communication data is sequentially transmitted to the electronic equipment system through the D-data transmission pin and the serial communication receiving port (RX1); if the electronic equipment system needs to send communication data externally, then The communication data is transmitted to the external communication device through the serial communication sending port (TX1) and the D+ data transmission pin in turn;
步骤S04,电子设备系统关闭串口通信,即关闭串口通信接收端口(RX1)和串口通信发送端口(TX1);Step S04, the electronic equipment system closes the serial communication, that is, closes the serial communication receiving port (RX1) and the serial communication sending port (TX1);
步骤S05,电子设备系统通过控制所述第一快充触发控制端口(USBEND-)和第二快充触发控制端口(USBEND+),进行触发适配器的快充功能。Step S05 , the electronic device system triggers the fast charging function of the adapter by controlling the first fast charging trigger control port (USBEND-) and the second fast charging trigger control port (USBEND+).
与传统的USB接口电路相比,本实用新型提供的一种具有串口通信和快充识别自适应的USB接口电路,同时在硬件与软件上进行新的设计,通过串口与USB接口并联在一起,并在所述D-数据传输引脚与串口通信接收端口(RX1)之间设有第五电阻(R37)和在所述D+数据传输引脚与串口通信发送端口(TX1)之间设有第六电阻(R38)进行隔离作用,避免串口通信时影响适配器QC的快充功能;不仅能实现数据通信,而且通过分时复用的信号传输方法,又能触发适配器QC的快充输出;本专利可避免使用繁杂的USB协议及硬件电路设计,节省软件资源,减少开发成本。Compared with the traditional USB interface circuit, the utility model provides a self-adaptive USB interface circuit with serial communication and fast charging recognition, and at the same time, a new design is carried out on the hardware and software, and the serial port and the USB interface are connected in parallel. And the fifth resistor (R37) is set between the D-data transmission pin and the serial communication receiving port (RX1), and the fifth resistance (R37) is set between the D+ data transmission pin and the serial communication sending port (TX1). Six resistors (R38) are used for isolation to avoid affecting the fast charging function of the adapter QC during serial communication; not only can data communication be realized, but also can trigger the fast charging output of the adapter QC through the signal transmission method of time-division multiplexing; this patent It can avoid the use of complicated USB protocol and hardware circuit design, save software resources and reduce development costs.
附图说明Description of drawings
图1是本实用新型的系统框图;Fig. 1 is a system block diagram of the present utility model;
图2是本实用新型的软件控制流程图。Fig. 2 is the software control flowchart of the utility model.
具体实施方式Detailed ways
如图1、图2所示,一种具有串口通信和快充识别自适应的USB接口电路,包括MicroUSB接口J1、电源输入正极VCC、电源输入负极、串口通信发送端口(TX1)、串口通信接收端口(RX1)、第一电阻R30、第二电阻R29、第一电容C39、第三电阻R35、第四电阻R34、第二电容C49、第一快充触发控制端口USBEND-、第二快充触发控制端口USBEND+、第三电容C40;As shown in Figure 1 and Figure 2, an adaptive USB interface circuit with serial communication and fast charging recognition, including MicroUSB interface J1, power input positive VCC, power input negative, serial communication sending port (TX1), serial communication receiving Port (RX1), first resistor R30, second resistor R29, first capacitor C39, third resistor R35, fourth resistor R34, second capacitor C49, first fast charge trigger control port USBEND-, second fast charge trigger Control port USBEND+, third capacitor C40;
Micro USB接口J1包括VBUS引脚、D+数据传输引脚、D-数据传输引脚、ID引脚(为OTG识别线,悬空为高电平,接GND为低电平,连接设备会开启OTG功能,OTG功能会改变供电方向,会从此端像外部输出电流)、GND引脚;电源输入正极VCC与VBUS引脚电性连接,电源输入负极与GND引脚电性连接,用于提供工作电压;第三电容C40设于电源输入正极VCC与电源输入负极之间,用于滤除电源纹波;D+数据传输引脚与串口通信发送端口TX1电性连接;D-数据传输引脚与串口通信接收端口RX1电性连接;第一电阻R30的一端与电源输入负极电性连接,第一电阻R30的另一端分别与D-数据传输引脚、第二电阻R29的一端电性连接;第二电阻R29的另一端分别与第一快充触发控制端口USBEND-、第一电容C39的一端电性连接;第一电容C39的另一端与电源输入负极电性连接;第三电阻R35的一端与电源输入负极电性连接,第三电阻R35的另一端分别与D+数据传输引脚、第四电阻R34的一端电性连接;第四电阻R34的另一端分别与第二快充触发控制端口USBEND+、第二电容C49的一端电性连接;第二电容C49的另一端与电源输入负极电性连接。Micro USB interface J1 includes VBUS pin, D+ data transmission pin, D- data transmission pin, ID pin (for OTG identification line, high level when floating, low level when connected to GND, OTG function will be turned on when connected to the device , the OTG function will change the power supply direction, and it will output current from this end like an external), GND pin; the positive pole of the power input VCC is electrically connected to the VBUS pin, and the negative pole of the power input is electrically connected to the GND pin to provide operating voltage; The third capacitor C40 is set between the power input positive pole VCC and the power input negative pole to filter out the power supply ripple; the D+ data transmission pin is electrically connected to the serial communication sending port TX1; the D- data transmission pin is connected to the serial communication receiving port Port RX1 is electrically connected; one end of the first resistor R30 is electrically connected to the negative pole of the power input, and the other end of the first resistor R30 is electrically connected to the D-data transmission pin and one end of the second resistor R29; the second resistor R29 The other end of the first fast charging trigger control port USBEND- and one end of the first capacitor C39 are electrically connected respectively; the other end of the first capacitor C39 is electrically connected to the negative pole of the power input; one end of the third resistor R35 is connected to the negative pole of the power input Electrically connected, the other end of the third resistor R35 is electrically connected to the D+ data transmission pin and one end of the fourth resistor R34 respectively; the other end of the fourth resistor R34 is respectively connected to the second fast charge trigger control port USBEND+, the second capacitor One end of C49 is electrically connected; the other end of the second capacitor C49 is electrically connected to the negative pole of the power input.
ID引脚悬空。The ID pin is left floating.
D-数据传输引脚与串口通信接收端口RX1之间设有第五电阻R37,第五电阻R37的阻值为0欧姆。A fifth resistor R37 is provided between the D-data transmission pin and the serial communication receiving port RX1, and the resistance of the fifth resistor R37 is 0 ohms.
D+数据传输引脚与串口通信发送端口TX1之间设有第六电阻R38,第六电阻R38的阻值为1000欧姆。A sixth resistor R38 is provided between the D+ data transmission pin and the serial communication sending port TX1, and the resistance of the sixth resistor R38 is 1000 ohms.
第一电阻R30的阻值为4.7kΩ、第二电阻R29的阻值为22kΩ、第一电容C39的容值为100nF、第三电阻R35的阻值为4.7kΩ、第四电阻R34的阻值为22kΩ、第二电容C49的容值为100nF、第三电容C40的容值为22uF。The resistance value of the first resistor R30 is 4.7kΩ, the resistance value of the second resistor R29 is 22kΩ, the capacitance value of the first capacitor C39 is 100nF, the resistance value of the third resistor R35 is 4.7kΩ, and the resistance value of the fourth resistor R34 is 22kΩ, the capacitance of the second capacitor C49 is 100nF, and the capacitance of the third capacitor C40 is 22uF.
一种如上所述的具有串口通信和快充识别自适应的USB接口电路的处理方法,将上述的具有串口通信和快充识别自适应的USB接口电路应用于电子设备系统,并采用分时复用的信号传输方法,具体包括以下步骤:A processing method for an adaptive USB interface circuit with serial port communication and fast charge identification as described above, applying the above-mentioned USB interface circuit with serial port communication and fast charge identification adaptive to electronic equipment systems, and using time-division multiplexing The signal transmission method used specifically includes the following steps:
步骤S01,电子设备系统上电;Step S01, power on the electronic equipment system;
步骤S02,判断电子设备系统是否需要通过Micro USB接口J1进行外部通信,如判断需要则进入步骤S03,如判断不需要则进入步骤S05;Step S02, judging whether the electronic device system needs external communication through the Micro USB interface J1, if it is judged necessary, go to step S03, if it is judged not necessary, go to step S05;
步骤S03,如电子设备系统需接收通信数据,则通信数据依次通过D-数据传输引脚、串口通信接收端口RX1传输至电子设备系统;如电子设备系统需对外发送通信数据,则通信数据依次通过串口通信发送端口TX1、D+数据传输引脚传输至外部通信设备;Step S03, if the electronic equipment system needs to receive communication data, the communication data is transmitted to the electronic equipment system through the D-data transmission pin and the serial communication receiving port RX1 in sequence; if the electronic equipment system needs to send communication data externally, the communication data is sequentially passed through The serial communication sending port TX1, D+ data transmission pin is transmitted to the external communication equipment;
步骤S04,电子设备系统关闭串口通信,即关闭串口通信接收端口RX1和串口通信发送端口TX1;Step S04, the electronic equipment system closes the serial communication, that is, closes the serial communication receiving port RX1 and the serial communication sending port TX1;
步骤S05,电子设备系统通过控制第一快充触发控制端口USBEND-和第二快充触发控制端口USBEND+,进行触发适配器的快充功能。Step S05 , the electronic device system triggers the fast charging function of the adapter by controlling the first fast charging trigger control port USBEND- and the second fast charging trigger control port USBEND+.
与传统的USB接口电路相比,本实施例提供的一种具有串口通信和快充识别自适应的USB接口电路,在传统USB接口的基础上,同时在硬件与软件上进行新的设计,通过串口与USB接口并联在一起,并在D-数据传输引脚与串口通信接收端口RX1之间设有第五电阻R37和在D+数据传输引脚与串口通信发送端口TX1之间设有第六电阻R38进行隔离作用,避免串口通信时影响适配器QC的快充功能;不仅能实现数据通信,而且通过分时复用的信号传输方法,又能触发适配器QC的快充输出;本专利可避免使用繁杂的USB协议及硬件电路设计,节省软件资源,减少开发成本。Compared with the traditional USB interface circuit, the present embodiment provides a self-adaptive USB interface circuit with serial communication and fast charge recognition. On the basis of the traditional USB interface, a new design is carried out on hardware and software at the same time, through The serial port and the USB interface are connected in parallel, and a fifth resistor R37 is set between the D- data transmission pin and the serial communication receiving port RX1, and a sixth resistor is set between the D+ data transmission pin and the serial communication sending port TX1 R38 performs an isolation function to avoid affecting the fast charging function of the adapter QC during serial communication; it can not only realize data communication, but also trigger the fast charging output of the adapter QC through the signal transmission method of time-division multiplexing; this patent can avoid complicated use Advanced USB protocol and hardware circuit design save software resources and reduce development costs.
上述实施例和图式并非限定本实用新型的产品形态和式样,任何所属技术领域的普通技术人员对其所做的适当变化或修饰,皆应视为不脱离本实用新型的专利范畴。The above-mentioned embodiments and drawings do not limit the product form and style of the present utility model, and any appropriate changes or modifications made by those skilled in the art should be considered as not departing from the patent scope of the present utility model.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201920264556.XU CN209343329U (en) | 2019-03-03 | 2019-03-03 | A self-adaptive USB interface circuit with serial communication and fast charge recognition |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201920264556.XU CN209343329U (en) | 2019-03-03 | 2019-03-03 | A self-adaptive USB interface circuit with serial communication and fast charge recognition |
Publications (1)
Publication Number | Publication Date |
---|---|
CN209343329U true CN209343329U (en) | 2019-09-03 |
Family
ID=67762605
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201920264556.XU Expired - Fee Related CN209343329U (en) | 2019-03-03 | 2019-03-03 | A self-adaptive USB interface circuit with serial communication and fast charge recognition |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN209343329U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111651394A (en) * | 2019-03-03 | 2020-09-11 | 厦门新页微电子技术有限公司 | USB interface circuit with serial port communication and fast charging identification self-adaption and method |
-
2019
- 2019-03-03 CN CN201920264556.XU patent/CN209343329U/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111651394A (en) * | 2019-03-03 | 2020-09-11 | 厦门新页微电子技术有限公司 | USB interface circuit with serial port communication and fast charging identification self-adaption and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106716389B (en) | Method for fast USB charging, electronic device and charger device | |
US9128691B2 (en) | Method and terminal for selecting internal circuit according to USB interface status | |
US20170147526A1 (en) | Service Redirect Over USB Type-C | |
CN103618356B (en) | A charging system and charging method for a mobile terminal | |
WO2021082731A1 (en) | Electronic device and reverse charging method | |
CN105867593A (en) | USB Type-C interface circuit and control device thereof | |
CN107391419B (en) | Support general sequence busbar concentrator of many host computers and automobile-used host computer | |
CN105162213A (en) | USB controller, and device | |
EP2387125A2 (en) | Motherboard with rapid charging handheld multimedia device | |
CN204576500U (en) | A kind of usb communication circuit of compatible I2C communication and system | |
CN106877462B (en) | A kind of method and charger detecting charged state | |
EP3330835A1 (en) | Power adapter, terminal device, charging system, and charging method | |
CN205692122U (en) | A kind of USB Type C interface circuit and control device thereof | |
CN209343329U (en) | A self-adaptive USB interface circuit with serial communication and fast charge recognition | |
CN108513688A (en) | A kind of switching device and device identification method and equipment identification device | |
CN102096457B (en) | processing device and operating system | |
CN109478174B (en) | Switch for reversible interface | |
US8266348B2 (en) | System and method of communicating with portable devices | |
CN216873219U (en) | Communication circuit and multi-master communication system | |
CN102236374B (en) | motherboard | |
US11513978B2 (en) | Dual data ports with shared detection line | |
Stan et al. | Role of usb communication in modem engineering education | |
CN109557846A (en) | Detect identification circuit, its detection recognition method and electronic equipment | |
CN112821156A (en) | Electronic tags chip and TYPE-C data line | |
CN111651394A (en) | USB interface circuit with serial port communication and fast charging identification self-adaption and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190903 |