CN212624038U - Interface circuit - Google Patents

Interface circuit Download PDF

Info

Publication number
CN212624038U
CN212624038U CN202021185046.2U CN202021185046U CN212624038U CN 212624038 U CN212624038 U CN 212624038U CN 202021185046 U CN202021185046 U CN 202021185046U CN 212624038 U CN212624038 U CN 212624038U
Authority
CN
China
Prior art keywords
module
connector
voltage
resistor
output
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.)
Active
Application number
CN202021185046.2U
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.)
Chongqing Huiye IOT Technology Co.,Ltd.
Original Assignee
Chongqing Huiye Communication 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 Chongqing Huiye Communication Technology Co ltd filed Critical Chongqing Huiye Communication Technology Co ltd
Priority to CN202021185046.2U priority Critical patent/CN212624038U/en
Application granted granted Critical
Publication of CN212624038U publication Critical patent/CN212624038U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The utility model provides an interface circuit, which is characterized in that the interface circuit comprises a connector and a serial port automatic distributor; the input end of the connector is used for accessing an external interface, and the output end of the connector is electrically connected with the input end of the serial port automatic distributor; the serial port automatic distributor is used for determining the type of the peripheral interface based on the signal voltage of the peripheral interface and selectively conducting the peripheral interface to the corresponding output channel according to the type. The utility model discloses a serial ports automatic distributor discernment inserts the voltage of the predetermined pin of connector, and then confirms which kind of serial ports communication protocol that the peripheral hardware accords with, has realized using the effect that a connector can compatible multiple external equipment, reduces the circuit and occupies space, reduce cost.

Description

Interface circuit
Technical Field
The embodiment of the utility model provides a relate to circuit interface field technique, especially relate to an interface circuit.
Background
At present, a plurality of serial communication protocols exist, and mainstream protocols comprise USB, UART, RS485, I2C, SPI and the like. Different serial port communication protocols often require to design a plurality of different interface circuits and different connectors matched with the interface circuits, and the plurality of interface circuits and the plurality of connectors matched with the interface circuits increase the complexity of the circuit design of the product and reduce the electrical reliability of the product. Meanwhile, in order to accommodate a plurality of connectors in a limited space, the volume of the product may increase, occupying space, and at the same time, the cost of accommodating a plurality of connectors in one circuit is high.
Disclosure of Invention
The utility model provides an interface circuit, through the voltage of the predetermined pin of serial ports automatic distributor discernment insertion connector, and then confirm that the peripheral hardware accords with which kind of serial ports communication protocol, realized using the effect that a connector can compatible multiple external device, reduce circuit and occupy space, reduce cost.
In a first aspect, the present invention provides an interface circuit, which includes a connector and an automatic serial port distributor;
the input end of the connector is used for accessing an external interface, and the output end of the connector is electrically connected with the input end of the serial port automatic distributor;
the serial port automatic distributor is used for determining the type of the peripheral interface based on the signal voltage of the peripheral interface and selectively conducting the peripheral interface to the corresponding output channel according to the type.
Further, the serial port automatic distributor comprises an ID identification module and a channel switch module, wherein the channel switch module comprises a first channel and a second channel which can be selectively conducted;
the output end of the connector is electrically connected with the input end of the ID identification module, and the output end of the ID identification module is electrically connected with the gating control end of the channel switch module;
the ID identification module is used for judging whether the input signal voltage is the reference voltage, if so, the channel switch module is controlled to conduct the first channel to output the signal voltage, and if not, the channel switch module is controlled to conduct the second channel to output the signal voltage.
Further, the serial port automatic distributor comprises an ID identification module, an address decoding module and a channel switch module, wherein the channel switch module comprises a plurality of channels which can be selectively conducted;
the output end of the connector is electrically connected with the input end of the ID identification module, the output end of the ID identification module is electrically connected with the input end of the address decoding module, and the output end of the address decoding module is electrically connected with the gating control end of the channel switch module;
the ID identification module is used for generating a plurality of electric signals based on the input signal voltage;
the address decoding module is used for outputting a gating control signal based on the plurality of electric signals;
the channel switch module is used for turning on one of a plurality of channels to output the signal voltage based on the gating control signal.
Furthermore, the ID identification module includes N voltage comparators, each of the voltage comparators includes a first input terminal, a second input terminal, and an output terminal, the output terminals of the connectors are electrically connected to the first input terminal of each of the voltage comparators, the second input terminals are respectively connected to N different reference voltage power supplies, and the output terminal of each of the voltage comparators is connected to the input terminal of the address decoding module;
the voltage comparator is used for judging whether the input signal voltage is a reference voltage, outputting a high level if the signal voltage is less than the reference voltage, and outputting a low level if the signal voltage is greater than the reference voltage;
the address decoding module is used for outputting gating control signals based on the input N high-level and/or low-level signals.
Further, the ID identification module includes a resistor R116 and a resistor R113;
a first end of the resistor R116 is connected to the output end of the connector, and a second end is connected to a first end of the resistor R113;
the first end of the resistor R113 is electrically connected with the channel switch module, and the second end of the resistor R113 is grounded.
Further, the interface circuit further comprises a filtering module, and the filtering module comprises a capacitor C102, a resistor R115 and a diode TVS102 connected in parallel.
Further, the interface circuit further includes an electrostatic protection module, and the electrostatic protection module includes a resistor R114, a resistor R111, a diode TVS101, and a capacitor C109.
The utility model discloses an use serial ports automatic distributor discernment to insert the voltage of the predetermined pin of connector, and then confirm which kind of serial ports communication protocol that the peripheral hardware accords with, realized using the effect that a connector can compatible multiple external device, reduce circuit and occupy space, reduce cost.
Drawings
Fig. 1 is a block diagram of an interface circuit according to a first embodiment.
Fig. 2 is a block diagram of an interface circuit according to a second embodiment.
Fig. 3 is a schematic structural diagram of an interface circuit according to a second embodiment.
Fig. 4 is a circuit diagram of a second embodiment.
Fig. 5 is a circuit diagram of an alternative embodiment of the second embodiment.
Fig. 6 is a block diagram of an interface circuit according to a third embodiment.
Fig. 7 is a schematic structural diagram of an interface circuit according to a third embodiment.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, the first feature information may be the second feature information or the third feature information, and similarly, the second feature information and the third feature information may be the first feature information without departing from the scope of the present application. The first characteristic information, the second characteristic information and the third characteristic information are characteristic information of the distributed file system, but are not the same characteristic information. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "plurality", "batch" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a schematic structural diagram of an interface circuit provided in this embodiment, and includes a connector 1 and an automatic serial port distributor 2, where an input end of the connector 1 is used to access an external interface, and an output end of the connector 1 is electrically connected to an input end of the automatic serial port distributor 2; the serial port automatic distributor 2 is used for determining the type of the peripheral interface based on the signal voltage of the peripheral interface and selectively conducting the peripheral interface to the corresponding output channel according to the type. The automatic serial distributor 2 is further connected to a processor 3 (e.g. a CPU or MCU), for example, in one embodiment, the automatic serial distributor 2 distributes signals to 6 different serial channels to enable the CPU to process.
The voltage of the preset pin of the inserting connector is identified through the serial port automatic distributor in the embodiment, and then the peripheral equipment is determined to accord with which serial port communication protocol, the effect that one connector can be compatible with various external devices is achieved, occupied space of circuits is reduced, and cost is reduced.
Example two
The present embodiment provides an interface circuit adapted to distinguish two kinds of peripherals, as shown in fig. 2, the interface circuit includes:
the serial port automatic distributor comprises a connector 1 and a serial port automatic distributor 2, wherein the serial port automatic distributor comprises an ID identification module 210 and a channel switch module 220.
Specific implementation of the serial port automatic distributor 2, which is set by a person skilled in the art according to actual situations and is not limited herein, in an embodiment, as shown in fig. 2, the serial port automatic distributor 2 includes an ID identification module 210 and a channel switch module 220, and generates different gating control signals to turn on different channel switches by identifying the types of external devices.
As shown in fig. 3, the channel switch module 220 includes a first channel 2201 and a second channel 2202 capable of being selectively conducted; the output end of the connector 1 is electrically connected with the input end of the ID identification module 210, and the output end of the ID identification module 210 is electrically connected with the gating control end of the channel switch module 220; the ID identification module 210 is configured to determine whether the input signal voltage is a reference voltage, if so, control the channel switch module 220 to turn on the first channel 2201 to output the signal voltage, and otherwise, control the channel switch module 220 to turn on the second channel 2202 to output the signal voltage.
Fig. 4 is a circuit diagram of an interface according to an embodiment of the present invention, which is suitable for a usage environment where peripherals of two different types are gated, where two different types of USB and UART are gated as an example. The connector 1 can realize identification when a USB device or a UART device is inserted, and the number of PINs of the connector 1 is 9, wherein the PINs PIN 4-the PINs PIN9 are grounded. As shown in table 1, PIN1 of connector 1 is defined as a device ID, and the voltage value of the predetermined PIN corresponds to different types of serial devices, for example, ID 5V corresponds to a USB device, ID 3.3V corresponds to a UART device, and ID 0V corresponds to an RS485 device.
Figure BDA0002553267920000061
TABLE 1
As shown in fig. 4, serial port automatic distributor 2 includes ID identification module 210 and channel switch module 220, ID identification module 210 includes resistor R116 and resistor R113, the first end of resistor R116 is connected to PIN1 of connector 1, and the second end is connected to PIN10 of channel switch module 220; the first end of the resistor R113 is connected to the resistor R116, and the second end is grounded.
The channel switch module 220 comprises a voltage channel chip U101, the voltage channel chip U101 comprises 10 PINs PIN1 '-PIN 10', PINs PIN1 'and PIN 2' of the voltage channel chip U101 are respectively connected with PINs PIN2 and PIN3 of the connector 1, PINs PIN3 ', PIN 8' are grounded, PINs PIN4 '-PIN 7' are connected with a plurality of input terminals of the processor 3, PINs PIN9 'are connected with one end of a capacitor C112, and PINs PIN 10' are connected with an output terminal of the ID recognition module 210.
In this embodiment, the external device is illustratively a USB device, the input signal voltage is V1 ═ 5V, and the input signals are differential signals DM and DP. After the device is connected, the serial port automatic distributor 2 acquires an input signal voltage V1 of the peripheral device from a PIN1 of the connector 1 to be 5V, and V1 generates a switching signal Vs through the ID identification module 210; meanwhile, the PIN1 'of the voltage channel chip U101 receives the input signal DM of the PIN2 of the connector 1, the PIN 2' receives the input signal DP of the PIN3 of the connector 1, and the switch S1 is enabled to turn on the PIN1 'and the PIN 5' of the voltage channel chip U101, and the switch S2 turns on the PIN2 'and the PIN 4' of the voltage channel chip U101 based on the switch signal Vs, so that the input signals DM and DP are gated to the USB protocol channel of the processor 3 for processing.
In an alternative embodiment, as shown in fig. 5, to ensure electrical stability, a voltage stabilization structure is added to the circuit. The circuit further comprises a filtering module 4, wherein the filtering module comprises a capacitor C102 and a resistor R115 which are connected in parallel, the filtering module 4 further comprises a diode TVS102, and the filtering module is used for smoothing the output signal. Capacitor C102 has one end connected to PIN1 of connector 1 and the other end connected to ground, and resistor R115 has one end connected to PIN1 and the other end connected to ground. The diode TVS102 is connected in parallel with the capacitor C102 and the resistor R115, the cathode of the diode TVS102 is electrically connected to the PIN1 of the connector 1, and the anode is grounded.
The circuit further comprises an electrostatic protection module 5, as shown in fig. 5, the electrostatic protection module 5 comprises a resistor R114, a resistor R111, a diode TVS101 and a capacitor C109, wherein one end of the resistor R114 is connected with the PIN2, the other end of the resistor R114 is connected with the output terminal DM, one end of the resistor R111 is connected with the PIN3, the other end of the resistor R111 is connected with the output terminal DP, the cathode of the diode TVS101 is respectively connected with the PIN2 and the PIN3, the anode of the diode TVS101 is grounded, and two ends of the capacitor C109 are respectively connected with the output terminal DM and.
In the embodiment, the input signals of the external equipment are controlled to access different gating control channels through the ID identification module and the channel switch module, so that the effect that two kinds of external equipment can be compatible by using one connector is realized, the occupied space of a circuit is reduced, and the cost is reduced.
EXAMPLE III
In this embodiment, as shown in fig. 6, an address decoding module 230 is added to the serial automatic distributor 2 to implement channel distribution of multiple different gating control signals.
As shown in fig. 7. The output end of the connector 1 is electrically connected to the input end of the ID identification module 210, the output end of the ID identification module 210 is electrically connected to the input end of the address decoding module 230, and the output end of the address decoding module 230 is electrically connected to the gating control end of the channel switch module 220; the ID identification module 210 is configured to generate a plurality of electrical signals based on the input signal voltage; the address decoding module 230 is configured to output a strobe control signal based on the plurality of electrical signals; the channel switch module 220 is configured to turn on one of the plurality of channels to output the signal voltage based on the gate control signal.
Specifically, as shown in FIG. 7, the ID identification module 210 includes N voltage comparators 2111, 2112, 2113 … … 211(N-2), 211 (N)-1), 211N, the function of the voltage comparator is to compare the magnitudes of the two input voltages, select the larger voltage, and output the polarity level corresponding to the larger input voltage at the output terminal. Taking one of the voltage comparators 2111 as an example, it comprises a first input terminal VAA second input terminal VBAnd an output terminal VOAn output terminal Vin of the connector 1 is connected to the first input terminal V of each voltage comparator 2111AElectrically connected to the second input terminal VBConnected with N different reference voltage power supplies respectively, and the output end V of each voltage comparator 2111OIs connected with the input end of the address decoding module 230; the voltage comparator 2111 is configured to determine whether an input signal voltage is a reference voltage, output a high level if the signal voltage is less than the reference voltage, and output a low level if the signal voltage is greater than the reference voltage; the address decoding module 230 is configured to output a gating control signal based on the input N high-level and/or low-level signals.
In the present embodiment, as shown in fig. 7, PIN1 of connector 1 outputs signal voltage V1 equal to 5V, and in fig. 7, Vin equal to 5V, reference voltage V of voltage comparator 2111BAt 5V, the output V of the voltage comparator 2111OOutputting high level, the rest N-1 voltage comparators 2112 and 211N all output low level, outputting N-bit binary number by the address decoding module 230 according to the high level and the low level, determining the device type as USB device based on the N-bit binary number, generating the switch signal Vs and converting the switch signal V into the voltage VSIs input to the channel switch module 220 to cause the channel switch module 220 to switch on the USB serial protocol channel of the processor 3 based on the switching signal Vs.
This embodiment is through increasing the input voltage that address decoding module discernment inserted the equipment of connector and accords with which kind of serial communication protocol, has realized using the effect that a connector can compatible multiple external device, reduces the circuit and occupies space, reduce cost.
It should be noted that the foregoing is only a preferred embodiment of the present invention and the technical principles applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail with reference to the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the scope of the present invention.

Claims (7)

1. An interface circuit is characterized by comprising a connector and a serial port automatic distributor;
the input end of the connector is used for accessing an external interface, and the output end of the connector is electrically connected with the input end of the serial port automatic distributor;
the serial port automatic distributor is used for determining the type of the peripheral interface based on the signal voltage of the peripheral interface and selectively conducting the peripheral interface to the corresponding output channel according to the type.
2. The interface circuit according to claim 1, wherein the serial port automatic distributor comprises an ID identification module and a channel switch module, the channel switch module comprises a first channel and a second channel which can be selectively conducted;
the output end of the connector is electrically connected with the input end of the ID identification module, and the output end of the ID identification module is electrically connected with the gating control end of the channel switch module;
the ID identification module is used for judging whether the input signal voltage is the reference voltage, if so, the channel switch module is controlled to conduct the first channel to output the signal voltage, and if not, the channel switch module is controlled to conduct the second channel to output the signal voltage.
3. The interface circuit according to claim 1, wherein the serial port automatic distributor comprises an ID identification module, an address decoding module and a channel switch module, the channel switch module comprises a plurality of channels that can be selectively conducted;
the output end of the connector is electrically connected with the input end of the ID identification module, the output end of the ID identification module is electrically connected with the input end of the address decoding module, and the output end of the address decoding module is electrically connected with the gating control end of the channel switch module;
the ID identification module is used for generating a plurality of electric signals based on the input signal voltage;
the address decoding module is used for outputting a gating control signal based on the plurality of electric signals;
the channel switch module is used for turning on one of a plurality of channels to output the signal voltage based on the gating control signal.
4. An interface circuit as claimed in claim 3, wherein said ID recognition module comprises N voltage comparators, said voltage comparators comprising first input terminals, second input terminals and output terminals, the output terminals of said connectors being electrically connected to said first input terminals of each of said voltage comparators, respectively, said second input terminals being connected to N different reference voltage power supplies, respectively, the output terminals of each of said voltage comparators being connected to the input terminals of said address decoding module;
the voltage comparator is used for judging whether the input signal voltage is a reference voltage, outputting a high level if the signal voltage is less than the reference voltage, and outputting a low level if the signal voltage is greater than the reference voltage;
the address decoding module is used for outputting gating control signals based on the input N high-level and/or low-level signals.
5. The interface circuit of claim 2, wherein the ID identification module comprises a resistor R116 and a resistor R113;
a first end of the resistor R116 is connected to the output end of the connector, and a second end is connected to a first end of the resistor R113;
the first end of the resistor R113 is electrically connected with the channel switch module, and the second end of the resistor R113 is grounded.
6. The interface circuit of claim 1, further comprising a filter module, wherein the filter module comprises a capacitor C102, a resistor R115 and a diode TVS102 connected in parallel.
7. The interface circuit of claim 1, further comprising an esd protection module, wherein the esd protection module comprises a resistor R114, a resistor R111, a diode TVS101, and a capacitor C109.
CN202021185046.2U 2020-06-23 2020-06-23 Interface circuit Active CN212624038U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202021185046.2U CN212624038U (en) 2020-06-23 2020-06-23 Interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202021185046.2U CN212624038U (en) 2020-06-23 2020-06-23 Interface circuit

Publications (1)

Publication Number Publication Date
CN212624038U true CN212624038U (en) 2021-02-26

Family

ID=74755292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202021185046.2U Active CN212624038U (en) 2020-06-23 2020-06-23 Interface circuit

Country Status (1)

Country Link
CN (1) CN212624038U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114268309A (en) * 2022-02-28 2022-04-01 季华实验室 Absolute value encoder interface circuit and control method
CN114519027A (en) * 2022-02-21 2022-05-20 上海矽翊微电子有限公司 Self-adaptive communication interface, communication protocol automatic identification method and electronic device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114519027A (en) * 2022-02-21 2022-05-20 上海矽翊微电子有限公司 Self-adaptive communication interface, communication protocol automatic identification method and electronic device
CN114268309A (en) * 2022-02-28 2022-04-01 季华实验室 Absolute value encoder interface circuit and control method
CN114268309B (en) * 2022-02-28 2022-06-03 季华实验室 Absolute value encoder interface circuit and control method

Similar Documents

Publication Publication Date Title
CN109313626B (en) Universal Serial Bus (USB) cable type detection and control techniques
CN106291210B (en) USB interface detector, USB interface detection method, USB connector and electronic equipment
CN212624038U (en) Interface circuit
US10879686B2 (en) Overcurrent protection for universal serial bus Type-C (USB-C) connector systems
US5119498A (en) Feature board with automatic adjustment to one of two bus widths based on sensing power level at one connection contact
US20100244587A1 (en) Power connection between serial interfaces
US20130179603A1 (en) Apparatus and method of identifying a usb or an mhl device
US20100106983A1 (en) System and Method for Adjusting Information Handling System Over Current Protection
US9312576B2 (en) Portable electronic devices capable of obtaining charging current value of charger and charging method thereof
US20150109727A1 (en) Portable device and peripheral extension dock
KR20130043662A (en) Detection of cable connections for electronic devices
US8719460B2 (en) Electronic device, electronic system and method therefor for automatically detecting and identifying peripheral device
CN113945869B (en) Positive and negative connection identification circuit, method, equipment and system of interface
JP2020008898A (en) Electronic equipment
KR20140126491A (en) power supply circuit and method for controlling thereof
US7660346B1 (en) Apparatus and method for enabling a connection over a serial interface
CN106549459B (en) Determination method of charging voltage and mobile terminal
CN110119368B (en) Host device and Solid State Drive (SSD) device
CN113452102A (en) Charging device and method thereof
US11333716B2 (en) Electronic device and power receiving control method thereof
US20020084988A1 (en) Apparatus and method for automatically detecting USB mode and PS/2 mode computer keyboard
EP3637270A1 (en) External electrical connector and computer system
US10587083B2 (en) Interface assembly that connects a peripheral device to an interface of a host system, an electronic device and a method of signaling
CN115599727A (en) PCIE equipment bandwidth allocation method and related device
US11449121B2 (en) Product detection device, product detection system and product detection method applied thereto

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 400030 No. 6, No. 4, comprehensive security road, Shapingba District, Chongqing.

Patentee after: Chongqing Huiye IOT Technology Co.,Ltd.

Address before: 400030 No. 6, No. 4, comprehensive security road, Shapingba District, Chongqing.

Patentee before: Chongqing Huiye Communication Technology Co.,Ltd.