CN113945869B - Positive and negative connection identification circuit, method, equipment and system of interface - Google Patents

Positive and negative connection identification circuit, method, equipment and system of interface Download PDF

Info

Publication number
CN113945869B
CN113945869B CN202111558663.1A CN202111558663A CN113945869B CN 113945869 B CN113945869 B CN 113945869B CN 202111558663 A CN202111558663 A CN 202111558663A CN 113945869 B CN113945869 B CN 113945869B
Authority
CN
China
Prior art keywords
pin
input
module
interface
identification module
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
CN202111558663.1A
Other languages
Chinese (zh)
Other versions
CN113945869A (en
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 Youjia Innovation Technology Co ltd
Original Assignee
Shenzhen Minieye Innovation 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 Minieye Innovation Technology Co Ltd filed Critical Shenzhen Minieye Innovation Technology Co Ltd
Priority to CN202111558663.1A priority Critical patent/CN113945869B/en
Publication of CN113945869A publication Critical patent/CN113945869A/en
Application granted granted Critical
Publication of CN113945869B publication Critical patent/CN113945869B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/66Testing of connections, e.g. of plugs or non-disconnectable joints

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses a positive and negative connection identification circuit, method, equipment and system of an interface, and relates to the technical field of electronics. The specific scheme comprises the following steps: the device comprises a first interface module, an identification module and a determination module, wherein the first interface module comprises a first CC (communication channel) end of a first Type-C interface; the first CC end is used for being connected with a second CC end of a second Type-C interface, the input end of the identification module is connected with the first CC end and connected with the second CC end, the output end of the identification module is connected with the determination module, and the second Type-C interface is contained in a second interface module included in the first electronic equipment; after the first CC end is connected with the second CC end, a first level signal is input to the input end of the identification module; after the identification module processes the first level signal, a second level signal is output through the output end of the identification module; the determining module determines whether the first CC terminal and the second CC terminal are connected in a forward direction or a reverse direction according to the second level signal. The invention has strong compatibility and low cost.

Description

Positive and negative connection identification circuit, method, equipment and system of interface
Technical Field
The invention relates to the technical field of electronics, in particular to a positive and negative connection identification circuit, method, equipment and system of an interface.
Background
The Type-C interface can be applied to devices such as a mobile phone, a tablet computer, a notebook computer and a vehicle-mounted terminal, and any two devices (one of the two devices is a master device and the other is a slave device) can be connected in a forward direction or a reverse direction through the Type-C interface.
When two equipment pass through Type-C interface connection, the slave unit can judge through the discernment chip of self installation whether the direction of connection of the Type-C interface of master unit and the Type-C interface of slave unit is the positive connection or the negative connection. However, the slave device recognizes the positive and negative connection of the Type-C interface by using the recognition chip, so that the slave device has high manufacturing cost and poor compatibility.
Disclosure of Invention
The invention provides a positive and negative connection identification circuit, method, device and system of an interface, and solves the problems of high manufacturing cost and poor compatibility of slave devices comprising Type-C interfaces.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a positive and negative connection identification circuit of an interface, including: the device comprises a first interface module, an identification module and a determination module, wherein the first interface module comprises a first CC (communication channel) end of a first Type-C interface;
the first CC end is used for being connected with a second CC end of a second Type-C interface, the input end of the identification module is connected with the first CC end and connected with the second CC end, the output end of the identification module is connected with the determination module, and the second Type-C interface is contained in a second interface module included in the first electronic equipment;
after the first CC end is connected with the second CC end, a first level signal is input to the input end of the identification module;
after the identification module processes the first level signal, a second level signal is output through the output end of the identification module;
the determining module determines whether the first CC terminal and the second CC terminal are connected in a forward direction or a reverse direction according to the second level signal.
With reference to the first aspect, in a possible implementation manner, the first interface module further includes a first pull-up module and a first pull-down module, where the first pull-up module includes a first pull-up resistor and a first current limiting unit, and the first pull-down module includes a first pull-down resistor; the first CC end includes a first CC1 pin and a first CC2 pin;
one end of the first pull-up resistor is used for connecting a power supply, the other end of the first pull-up resistor is connected with the input end of the first current limiting unit, and the output end of the first current limiting unit is connected with a first CC1 pin; one end of the first pull-down resistor is connected to the first CC2 pin, and the other end of the first pull-down resistor is grounded.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the second interface module further includes a second pull-up module and a second pull-down module; the second pull-up module comprises a second pull-up resistor and a second current limiting unit; the second pull-down module comprises a second pull-down resistor, and the first pull-down resistor is larger than the second pull-down resistor; the second CC end includes a second CC1 pin and a second CC2 pin; one end of the second pull-up resistor is used for connecting a power supply, the other end of the second pull-up resistor is connected with the input end of the second current limiting unit, and the output end of the second current limiting unit is connected with a second CC1 pin; one end of the second pull-down resistor is connected with a second CC2 pin, and the other end of the second pull-down resistor is grounded.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the first current limiting unit includes a first zener diode, and the second current limiting unit includes a second zener diode; the anode of the first voltage stabilizing diode is the input end of the first current limiting unit, and the cathode of the first voltage stabilizing diode is the output end of the first current limiting unit; the anode of the second voltage stabilizing diode is the input end of the second current limiting unit, and the cathode of the second voltage stabilizing diode is the output end of the second current limiting unit.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the input end of the identification module includes a first input end and a second input end, and the identification module includes a first nand gate and a second nand gate; the first input end is connected with a first CC1 pin, and the second input end is connected with a first CC2 pin; two input ends of the first NAND gate are second input ends; the output end of the first NAND gate is connected with one input end of the second NAND gate; the other input end of the second NAND gate is a first input end; the first CC1 pin is connected with the second CC1 pin, when the first CC2 pin is connected with the second CC2 pin, the first CC1 pin inputs a high level to the first input end, the first CC2 pin inputs a low level to the second input end, the identification module outputs a low level according to the high level input by the first input end and the low level input by the second input end, and the determination module determines that the first CC end is positively connected with the second CC end according to the low level output by the identification module; the pin of the first CC1 is connected with the pin of the second CC2, when the pin of the first CC2 is connected with the pin of the second CC1, the pin of the first CC1 inputs a low level to the first input end, the pin of the first CC2 inputs a high level to the second input end, the identification module outputs a high level according to the low level input by the first input end and the high level input by the second input end, and the determination module determines that the first CC end is reversely connected with the second CC end according to the high level output by the identification module.
In a second aspect, the present invention provides a method for identifying positive and negative connections of an interface, which is applied to a circuit for identifying positive and negative connections of an interface according to any of the first aspect or possible implementation manners of the first aspect, and includes:
after the first CC end is connected with the second CC end, a first level signal is input to the input end of the identification module; the first CC end is arranged in a first Type-C interface included in the first interface module, and the second CC end is arranged in a second Type-C interface included in the second interface module; the input end of the identification module is connected with the first CC end and the second CC end, and the output end of the identification module is connected with the determination module;
after the identification module processes the first level signal, a second level signal is output through the output end of the identification module;
the determining module determines whether the first CC terminal and the second CC terminal are connected in a forward direction or a reverse direction according to the second level signal.
With reference to the second aspect, in a possible implementation manner, the first CC terminal includes a first CC1 pin and a first CC2 pin, the second CC terminal includes a second CC1 pin and a second CC2 pin, the input terminal of the identification module includes a first input terminal and a second input terminal, and after the first CC terminal is connected to the second CC terminal, the first CC terminal inputs a first level signal to the input terminal of the identification module, where the method includes: the first CC1 pin is connected with the second CC1 pin, and when the first CC2 pin is connected with the second CC2 pin, the first CC1 pin inputs a high level to the first input end, and the first CC2 pin inputs a low level to the second input end; or, when the first CC1 pin is connected to the second CC2 pin and the first CC2 pin is connected to the second CC1 pin, the first CC1 pin inputs a low level to the first input terminal and the first CC2 pin inputs a high level to the second input terminal.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, after the identification module processes the first level signal, the outputting a second level signal through an output end of the identification module includes: outputting a low level according to a high level input by the first input end and a low level input by the second input end; or, the high level is output according to the low level input by the first input terminal and the high level input by the second input terminal.
In a third aspect, the present invention provides a second electronic device, where the second electronic device includes a positive/negative connection identification circuit of an interface as in the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, the present invention provides a positive and negative connection identification system for an interface, including: the first electronic equipment comprises a second interface module, and the second interface module comprises a second CC end of a second Type-C interface; the second electronic equipment comprises a first interface module, an identification module and a determination module, wherein the first interface module comprises a first CC (communication center) end of a first Type-C interface; the first CC end is connected with the second CC end, the input end of the identification module is connected with the first CC end and the second CC end, and the output end of the identification module is connected with the determination module; after the first CC end is connected with the second CC end, a first level signal is input to the input end of the identification module; after the identification module processes the first level signal, a second level signal is output through the output end of the identification module; the determining module determines whether the first CC terminal and the second CC terminal are connected in a forward direction or a reverse direction according to the second level signal.
The positive and negative connection identification circuit of the interface provided by the embodiment of the invention comprises a first interface module, an identification module and a determination module, wherein the first interface module comprises a first CC (communication channel) end of a first Type-C interface; the first CC end is used for being connected with a second CC end of a second Type-C interface, the input end of the identification module is connected with the first CC end and connected with the second CC end, the output end of the identification module is connected with the determination module, and the second Type-C interface is contained in a second interface module included in the first electronic equipment; after the first CC end is connected with the second CC end, a first level signal is input to the input end of the identification module; after the identification module processes the first level signal, a second level signal is output through the output end of the identification module; the determining module determines whether the first CC terminal and the second CC terminal are connected in a forward direction or a reverse direction according to the second level signal.
Therefore, the invention can determine the connection direction of the first CC terminal and the second CC terminal only by a simple circuit module without a specific identification chip, has strong universality and compatibility, and can reduce the manufacturing cost of the slave equipment comprising the Type-C interface.
Drawings
Fig. 1 is a schematic structural diagram of a Type-C interface according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a positive and negative connection identification circuit of an interface according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a forward connection of a positive/negative connection identification circuit of an interface according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a reverse connection of a positive/negative identification circuit of an interface according to an embodiment of the present invention;
FIG. 5 is a second schematic diagram illustrating a forward connection of a positive/negative identification circuit of an interface according to an embodiment of the present invention;
FIG. 6 is a second schematic diagram illustrating a reverse connection of a positive/negative identification circuit of an interface according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a method for identifying positive and negative connections of an interface according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood 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 embodiments of the present disclosure, "a plurality" means two or more unless otherwise specified.
Fig. 1 is a schematic structural diagram of a Type-C interface according to an embodiment of the present invention. Two CC pins (CC 1 and CC 2) are provided in the Type-C interface and are mainly used for communication of a power supply module, when two devices are connected in a forward direction through the Type-C interface, the main device communicates with the slave device by using CC1, and when the two devices are connected in a reverse direction through the Type-C interface, the main device communicates with the slave device by using CC 2.
Based on the introduction of the Type-C interface, the embodiment of the present invention provides a positive and negative connection identification circuit for an interface. As shown in fig. 2, the positive and negative connection identification circuit of the interface may include a first interface module 201, an identification module 202, and a determination module 203, and the first interface module 201 may include a first CC terminal 204 of a first Type-C interface.
The first CC terminal 204 may be configured to connect to a second CC terminal 205 of a second Type-C interface, the input terminal 206 of the identity module 202 may be connected to the first CC terminal 204 and to the second CC terminal 205, the output terminal 207 of the identity module 202 may be connected to the determination module 203, and the second Type-C interface may be included in a second interface module 208 included in the first electronic device.
The first CC terminal 204 may be connected to the second CC terminal 205 and then input a first level signal to the input terminal 206 of the identification module 202.
After the recognition module 202 processes the first level signal, a second level signal can be output through the output 207 of the recognition module 202.
The determining module 203 may determine whether the first CC terminal 204 and the second CC terminal 205 are connected in the forward direction or the reverse direction according to the second level signal.
Thus, the embodiment does not need a specific identification chip, only needs a simple circuit module to determine the connection direction of the first CC terminal 204 and the second CC terminal 205, has strong universality and compatibility, and can reduce the manufacturing cost of the slave device including the Type-C interface.
In the embodiment of the present invention, further, the first interface module 201 may further include a first pull-up module and a first pull-down module, the first pull-up module may include a first pull-up resistor R1 and a first current limiting unit D1, and the first pull-down module may include a first pull-down resistor R2; the first CC end 204 may include a first CC1 pin 2041 and a first CC2 pin 2042; one end of the first pull-up resistor R1 may be used to connect to the power source U1, the other end of the first pull-up resistor R1 may be connected to an input terminal of the first current limiting unit D1, and an output terminal of the first current limiting unit D1 may be connected to the first CC1 pin 2041; one end of the first pull-down resistor R2 may be connected to the first CC2 pin 2042, and the other end of the first pull-down resistor R2 may be grounded.
The power source U1 may be a dc power source, such as a 5V dc power source, for supplying power to the first CC1 pin 2041. The first current limiting unit D1 may be a circuit or an electronic component for limiting the direction of current, such as a zener diode. When the first current limiting unit D1 includes a first zener diode, the anode of the first zener diode is the input terminal of the first current limiting unit, and the cathode of the first zener diode is the output terminal of the first current limiting unit. The first level may include a level output from the first CC1 pin 2041 and a level output from the first CC2 pin 2042.
In the embodiment of the present invention, further, the second interface module 208 may further include a second pull-up module and a second pull-down module; the second pull-up module may include a second pull-up resistor R3 and a second current limiting unit D2; the second pull-down module may include a second pull-down resistor R4; the second CC end 205 may include a second CC1 pin 2051 and a second CC2 pin 2052; one end of the second pull-up resistor R3 may be used to connect the power supply U2, the other end of the second pull-up resistor R3 may be connected to an input terminal of a second current limiting unit D2, and an output terminal of the second current limiting unit D2 may be connected to the second CC1 pin 2051; one end of the second pull-down resistor R4 may be connected to the pin 2052 of the second CC2, and the other end of the second pull-down resistor R4 may be grounded.
The power supply U2 may be a dc power supply, such as a 5V dc power supply, for supplying power to the pin 2051 of the second CC 1.
It is understood that the voltage output by the power source U1 may be the same as the voltage output by the power source U2, the resistance of the first pull-up resistor R1 may be the same as the resistance of the second pull-up resistor R3, and the resistance of the first pull-down resistor R2 may be much larger than the resistance of the second pull-down resistor R4. The second current limiting unit D2 may be a circuit or an electronic component for limiting the direction of current, such as a zener diode. When the second current limiting unit D2 includes a second zener diode, the anode of the second zener diode is the input terminal of the second current limiting unit, and the cathode of the second zener diode is the output terminal of the second current limiting unit.
It is understood that the first CC port 204 and the second CC port 205 can be connected in such a way that the pin 2041 of the first CC1 is connected to the pin 2051 of the second CC1, and the pin 2042 of the first CC2 is connected to the pin 2052 of the second CC2, i.e. the forward connection diagram shown in fig. 3. Alternatively, the pin 2041 of the first CC1 is connected to the pin 2052 of the second CC2, and the pin 2042 of the first CC2 is connected to the pin 2051 of the second CC1, i.e., the reverse connection diagram shown in fig. 4. In addition, fig. 3 and 4 illustrate that the first current limiting unit D1 and the second current limiting unit D2 each include one zener diode.
Thus, when the first CC terminal 204 and the second CC terminal 205 are connected in the forward direction, a high level may be output at the pin 2041 of the first CC1, and a low level may be output at the pin 2042 of the first CC 2. Moreover, when the first CC terminal 204 and the second CC terminal 205 are connected in reverse, a low level may be output at the pin 2041 of the first CC1, and a high level may be output at the pin 2042 of the first CC2, so that the identification module may determine the second level according to the high and low level conditions output by the pin 2041 of the first CC1 and the pin 2042 of the first CC2, respectively, and thus the determination module may determine whether the first CC terminal 204 and the second CC terminal 205 are connected in forward direction or in reverse direction according to the second level. The positive and negative identification circuit of the interface in the embodiment has the advantages of simple structure, high compatibility and high universality, and the cost of the hardware such as the resistor, the power supply, the current limiting unit and the like adopted in the circuit is far less than that of an identification chip used for identifying the positive and negative connection of the Type-C interface in the prior art, so that the manufacturing cost of equipment containing the Type-C interface can be reduced by adopting the positive and negative identification circuit of the interface in the embodiment.
In the embodiment of the present invention, further, the input 206 of the identification module 202 includes a first input 2061 and a second input 2062, and the identification module includes a first nand gate 2021 and a second nand gate 2022; the first input end 2061 is connected to the first CC1 pin 2041, and the second input end 2062 is connected to the first CC2 pin 2042; two input ends of the first nand gate 2021 are second input ends 2062; the output end of the first nand gate 2021 is connected with one input end of the second nand gate 2022; the other input of the second nand gate 2022 is the first input 2061.
As shown in fig. 5, when the first CC1 pin 2041 is connected to the second CC1 pin 2051, and the first CC2 pin 2042 is connected to the second CC2 pin 2052, the first CC1 pin 2041 inputs a high level to the first input terminal 2061, the first CC2 pin 2042 inputs a low level to the second input terminal 2062, the recognition module 202 outputs a low level according to the high level input by the first input terminal 2061 and the low level input by the second input terminal 2062, and the determination module 203 determines the forward connection between the first CC terminal 204 and the second CC terminal 205 according to the low level output by the recognition module 202.
As shown in fig. 6, when the pin 2041 of the first CC1 is connected to the pin 2052 of the second CC2, and the pin 2042 of the first CC2 is connected to the pin 2051 of the second CC1, the pin 2041 of the first CC1 inputs a low level to the first input terminal 2061, the pin 2042 of the first CC2 inputs a high level to the second input terminal 2062, the recognition module 202 outputs a high level according to the low level input by the first input terminal 2061 and the high level input by the second input terminal 2062, and the determination module 203 determines that the first CC terminal 204 is reversely connected to the second CC terminal 205 according to the high level output by the recognition module 202.
It can be understood that, in the present embodiment, by cascading the first nand gate 2021 and the second nand gate 2022 together, the identification module 202 can determine the second level according to the high and low level conditions output by the pin 2041 of the first CC1 and the pin 2042 of the first CC2, respectively, so that the determination module 203 can determine whether the first CC terminal 204 and the second CC terminal 205 are connected in the forward direction or in the reverse direction according to the second level. The first nand gate 2021 and the second nand gate 2022 used in this embodiment have simple structures, high compatibility and universality, and the cost is much lower than that of the identification chip used for identifying the positive and negative connection of the Type-C interface in the prior art, so that the manufacturing cost of the device including the Type-C interface can be reduced by adopting the positive and negative connection identification circuit of the interface in this embodiment.
Fig. 7 is a positive and negative connection identification method for an interface according to an embodiment of the present invention, applied to a positive and negative connection identification circuit of any one of the interfaces shown in fig. 2 to 6, as shown in fig. 7, the method includes:
s701, after the first CC end is connected with the second CC end, a first level signal is input to the input end of the identification module; the first CC end is arranged in a first Type-C interface included in the first interface module, and the second CC end is arranged in a second Type-C interface included in the second interface module; the input end of the identification module is connected with the first CC end and the second CC end, and the output end of the identification module is connected with the determination module.
S702, after the identification module processes the first level signal, outputting a second level signal through the output end of the identification module;
and S703, the determining module determines whether the first CC terminal and the second CC terminal are connected in the forward direction or the reverse direction according to the second level signal.
Therefore, after the first CC terminal is connected to the second CC terminal, the identification module may determine the second level signal according to the first level signal generated after the first interface module and the second interface module are connected, and then the determination module may determine whether the first CC terminal is connected to the second CC terminal in the forward direction or in the reverse direction according to the second level signal. The embodiment does not need a specific identification chip, can determine the connection direction of the first CC terminal and the second CC terminal only by a simple circuit module, has strong universality and compatibility, and can reduce the manufacturing cost of the equipment comprising the Type-C interface.
In the embodiment of the present invention, further, on the basis of fig. 7, the first CC terminal includes a first CC1 pin and a first CC2 pin, the second CC terminal includes a second CC1 pin and a second CC2 pin, the input terminal of the identification module includes a first input terminal and a second input terminal, and after the first CC terminal is connected to the second CC terminal, the inputting the first level signal to the input terminal of the identification module includes: the first CC1 pin is connected with the second CC1 pin, and when the first CC2 pin is connected with the second CC2 pin, the first CC1 pin inputs a high level to the first input end, and the first CC2 pin inputs a low level to the second input end; when the first CC1 pin is connected to the second CC2 pin and the first CC2 pin is connected to the second CC1 pin, the first CC1 pin inputs a low level to the first input terminal and the first CC2 pin inputs a high level to the second input terminal.
In this embodiment of the present invention, further, on the basis of fig. 7, after the identification module processes the first level signal, the outputting a second level signal through an output end of the identification module includes: outputting a low level according to a high level input by the first input end and a low level input by the second input end; and outputting a high level according to the low level input by the first input end and the high level input by the second input end.
The method for identifying the positive and negative connection of the interface provided by the embodiment of the invention is applied to a circuit for identifying the positive and negative connection of the interface, so that the technical effect same as that of the method for identifying the positive and negative connection of the interface can be achieved.
The second electronic device according to an embodiment of the present invention may include a positive/negative connection identification circuit of the interface as shown in any one of fig. 2 to 6.
The second electronic device provided by the embodiment of the invention comprises the positive and negative connection identification circuit of the interface, so that the technical effect same as that of the positive and negative connection identification circuit of the interface can be achieved.
The embodiment of the present invention further provides a positive and negative connection identification system for an interface, where the positive and negative connection identification system for an interface may include: the first electronic equipment comprises a second interface module, and the second interface module comprises a second CC end of a second Type-C interface; the second electronic equipment comprises a first interface module, an identification module and a determination module, wherein the first interface module comprises a first CC (communication center) end of a first Type-C interface; the first CC end is connected with the second CC end, the input end of the identification module is connected with the first CC end and the second CC end, and the output end of the identification module is connected with the determination module; after the first CC end is connected with the second CC end, a first level signal is input to the input end of the identification module; after the identification module processes the first level signal, a second level signal is output through the output end of the identification module; the determining module determines whether the first CC terminal and the second CC terminal are connected in a forward direction or a reverse direction according to the second level signal.
The positive and negative connection identification system provided by the embodiment of the invention comprises the positive and negative connection identification circuit of the interface, so that the technical effect same as that of the positive and negative connection identification circuit of the interface can be achieved.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions within the technical scope of the present invention are intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. A positive and negative connection identification circuit for an interface, comprising: the device comprises a first interface module, an identification module and a determination module, wherein the first interface module comprises a first CC (communication channel) end of a first Type-C interface; the first CC terminal comprises a first CC1 pin and a first CC2 pin;
the first CC end is used for connecting a second CC end of a second Type-C interface; the second CC terminal comprises a second CC1 pin and a second CC2 pin; the input end of the identification module is connected with the first CC end and the second CC end, the output end of the identification module is connected with the determination module, and the second Type-C interface is contained in a second interface module included in the first electronic device;
after the first CC end is connected with the second CC end, a first level signal is input to the input end of the identification module;
the input end of the identification module comprises a first input end and a second input end, and the identification module comprises a first NAND gate and a second NAND gate;
wherein the first input is connected with the first CC1 pin and the second input is connected with the first CC2 pin;
two input ends of the first NAND gate are the second input ends; the output end of the first NAND gate is connected with one input end of the second NAND gate; the other input end of the second NAND gate is the first input end;
the first CC1 pin is connected with a second CC1 pin, when the first CC2 pin is connected with the second CC2 pin, the first CC1 pin inputs a high level to the first input end, the first CC2 pin inputs a low level to the second input end, the identification module outputs a second level signal of the low level according to the high level input by the first input end and the low level input by the second input end, and the determination module determines that the first CC end is in forward connection with the second CC end according to the second level signal of the low level output by the identification module;
the first CC1 pin is connected with a second CC2 pin, when the first CC2 pin is connected with the second CC1 pin, the first CC1 pin inputs a low level to the first input end, the first CC2 pin inputs a high level to the second input end, the identification module outputs a second level signal of the high level according to the low level input by the first input end and the high level input by the second input end, and the determination module determines that the first CC end is reversely connected with the second CC end according to the second level signal of the high level output by the identification module.
2. The positive and negative connection identification circuit of the interface of claim 1, wherein the first interface module further comprises a first pull-up module and a first pull-down module, the first pull-up module comprises a first pull-up resistor and a first current limiting unit, and the first pull-down module comprises a first pull-down resistor;
one end of the first pull-up resistor is used for connecting a power supply, the other end of the first pull-up resistor is connected with the input end of the first current limiting unit, and the output end of the first current limiting unit is connected with the first CC1 pin;
one end of the first pull-down resistor is connected with the first CC2 pin, and the other end of the first pull-down resistor is grounded.
3. The positive-negative connection identification circuit of the interface of claim 2, wherein the second interface module further comprises a second pull-up module and a second pull-down module; the second pull-up module comprises a second pull-up resistor and a second current limiting unit, the second pull-down module comprises a second pull-down resistor, and the first pull-down resistor is larger than the second pull-down resistor;
one end of the second pull-up resistor is used for connecting a power supply, the other end of the second pull-up resistor is connected with the input end of the second current limiting unit, and the output end of the second current limiting unit is connected with the second CC1 pin;
one end of the second pull-down resistor is connected with the second CC2 pin, and the other end of the second pull-down resistor is grounded.
4. The positive and negative connection identification circuit of the interface of claim 3, wherein the first current limiting unit comprises a first zener diode, and the second current limiting unit comprises a second zener diode;
the anode of the first voltage stabilizing diode is the input end of the first current limiting unit, and the cathode of the first voltage stabilizing diode is the output end of the first current limiting unit;
the anode of the second zener diode is the input end of the second current limiting unit, and the cathode of the second zener diode is the output end of the second current limiting unit.
5. A method for identifying positive and negative connections of an interface, which is applied to the positive and negative connection identification circuit of the interface of any one of claims 1-4, the method comprising:
after the first CC end is connected with the second CC end, a first level signal is input to the input end of the identification module; the first CC end is arranged in a first Type-C interface included in the first interface module, and the second CC end is arranged in a second Type-C interface included in the second interface module; the input end of the identification module is connected with the first CC end and the second CC end, and the output end of the identification module is connected with the determination module;
after the identification module processes the first level signal, a second level signal is output through the output end of the identification module;
the determining module determines whether the first CC terminal and the second CC terminal are connected in a forward direction or a reverse direction according to the second level signal.
6. The method as claimed in claim 5, wherein the first CC terminal comprises a first CC1 pin and a first CC2 pin, the second CC terminal comprises a second CC1 pin and a second CC2 pin, the input terminal of the identification module comprises a first input terminal and a second input terminal, and the input terminal of the identification module is connected with the first CC terminal and the second CC terminal to input a first level signal to the input terminal of the identification module, comprising:
the first CC1 pin is connected with a second CC1 pin, and when the first CC2 pin is connected with the second CC2 pin, the first CC1 pin inputs a high level to the first input end, and the first CC2 pin inputs a low level to the second input end;
or,
the first CC1 pin is connected to a second CC2 pin, and when the first CC2 pin is connected to the second CC1 pin, the first CC1 pin inputs a low level to the first input terminal, and the first CC2 pin inputs a high level to the second input terminal.
7. The method as claimed in claim 6, wherein the outputting a second level signal through the output terminal of the identification module after the identification module processes the first level signal comprises:
outputting a low level according to the high level input by the first input end and the low level input by the second input end;
or,
and outputting a high level according to the low level input by the first input end and the high level input by the second input end.
8. A second electronic device, characterized in that it comprises the positive and negative connection identification circuit of the interface of any of claims 1-4.
9. A system for recognizing the positive and negative connection of an interface, comprising: the first electronic equipment comprises a second interface module, and the second interface module comprises a second CC end of a second Type-C interface; the second CC terminal comprises a second CC1 pin and a second CC2 pin;
the second electronic equipment comprises a first interface module, an identification module and a determination module, wherein the first interface module comprises a first CC (communication center) end of a first Type-C interface; the first CC terminal comprises a first CC1 pin and a first CC2 pin;
the first CC end is connected with the second CC end, the input end of the identification module is connected with the first CC end and the second CC end, and the output end of the identification module is connected with the determination module;
after the first CC end is connected with the second CC end, a first level signal is input to the input end of the identification module;
the input end of the identification module comprises a first input end and a second input end, and the identification module comprises a first NAND gate and a second NAND gate;
wherein the first input is connected with the first CC1 pin and the second input is connected with the first CC2 pin;
two input ends of the first NAND gate are the second input ends; the output end of the first NAND gate is connected with one input end of the second NAND gate; the other input end of the second NAND gate is the first input end;
the first CC1 pin is connected with a second CC1 pin, when the first CC2 pin is connected with the second CC2 pin, the first CC1 pin inputs a high level to the first input end, the first CC2 pin inputs a low level to the second input end, the identification module outputs a second level signal of the low level according to the high level input by the first input end and the low level input by the second input end, and the determination module determines that the first CC end is in forward connection with the second CC end according to the second level signal of the low level output by the identification module;
the first CC1 pin is connected with a second CC2 pin, when the first CC2 pin is connected with the second CC1 pin, the first CC1 pin inputs a low level to the first input end, the first CC2 pin inputs a high level to the second input end, the identification module outputs a second level signal of the high level according to the low level input by the first input end and the high level input by the second input end, and the determination module determines that the first CC end is reversely connected with the second CC end according to the second level signal of the high level output by the identification module.
CN202111558663.1A 2021-12-20 2021-12-20 Positive and negative connection identification circuit, method, equipment and system of interface Active CN113945869B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111558663.1A CN113945869B (en) 2021-12-20 2021-12-20 Positive and negative connection identification circuit, method, equipment and system of interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111558663.1A CN113945869B (en) 2021-12-20 2021-12-20 Positive and negative connection identification circuit, method, equipment and system of interface

Publications (2)

Publication Number Publication Date
CN113945869A CN113945869A (en) 2022-01-18
CN113945869B true CN113945869B (en) 2022-03-15

Family

ID=79339376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111558663.1A Active CN113945869B (en) 2021-12-20 2021-12-20 Positive and negative connection identification circuit, method, equipment and system of interface

Country Status (1)

Country Link
CN (1) CN113945869B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114721305A (en) * 2022-03-02 2022-07-08 四川中微芯成科技有限公司 Data transmission system
CN115166604A (en) * 2022-07-12 2022-10-11 中兴通讯股份有限公司 Detection circuitry, circuit board and electronic equipment of Type-C direction of inserting
CN115994109B (en) * 2023-03-21 2023-07-21 合肥集创微电子科技有限公司 Data transmission method based on Type-C physical interface and electronic equipment
CN116299071B (en) * 2023-05-18 2023-08-04 天津博益气动股份有限公司 Pressure sensor prevents wrong line detection circuitry that connects

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206162503U (en) * 2016-08-11 2017-05-10 深圳慧能泰半导体科技有限公司 USBType C interface circuit
CN208421807U (en) * 2018-07-26 2019-01-22 珠海市一微半导体有限公司 A kind of detection circuit of Type-C interface
KR20190028953A (en) * 2017-09-11 2019-03-20 삼성전자주식회사 Electronic device and method for detecting foreign object on connector
CN209460757U (en) * 2019-04-09 2019-10-01 深圳市智微智能科技开发有限公司 A kind of positive anti-plug identification circuit of USB TYPE-C equipment
CN110716525A (en) * 2018-07-11 2020-01-21 深圳市海美思信息技术有限公司 Method and circuit for detecting signal state of CC terminal of USB-C interface
CN110990320A (en) * 2019-12-09 2020-04-10 无锡睿勤科技有限公司 Identification system of Type-C interface
CN111930657A (en) * 2020-05-29 2020-11-13 深圳市广和通无线股份有限公司 Connection circuit, control method of connection circuit, and connection device
CN112187252A (en) * 2020-10-12 2021-01-05 深圳市道通科技股份有限公司 Interface identification circuit, method, equipment and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206162503U (en) * 2016-08-11 2017-05-10 深圳慧能泰半导体科技有限公司 USBType C interface circuit
KR20190028953A (en) * 2017-09-11 2019-03-20 삼성전자주식회사 Electronic device and method for detecting foreign object on connector
CN110716525A (en) * 2018-07-11 2020-01-21 深圳市海美思信息技术有限公司 Method and circuit for detecting signal state of CC terminal of USB-C interface
CN208421807U (en) * 2018-07-26 2019-01-22 珠海市一微半导体有限公司 A kind of detection circuit of Type-C interface
CN209460757U (en) * 2019-04-09 2019-10-01 深圳市智微智能科技开发有限公司 A kind of positive anti-plug identification circuit of USB TYPE-C equipment
CN110990320A (en) * 2019-12-09 2020-04-10 无锡睿勤科技有限公司 Identification system of Type-C interface
CN111930657A (en) * 2020-05-29 2020-11-13 深圳市广和通无线股份有限公司 Connection circuit, control method of connection circuit, and connection device
CN112187252A (en) * 2020-10-12 2021-01-05 深圳市道通科技股份有限公司 Interface identification circuit, method, equipment and electronic equipment

Also Published As

Publication number Publication date
CN113945869A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN113945869B (en) Positive and negative connection identification circuit, method, equipment and system of interface
KR101592840B1 (en) High voltage dedicated charging port
CN106291210B (en) USB interface detector, USB interface detection method, USB connector and electronic equipment
CN100495377C (en) Method for inspecting type of connected peripheral apparatus and terminal interface
US9128691B2 (en) Method and terminal for selecting internal circuit according to USB interface status
US8639959B2 (en) Semiconductor apparatus having a controller arranged to turn on a first switch and turn off a second switch during a period in which a judgement unit judges a device type of a device
US20070075680A1 (en) Charging mode control circuit
CN105867593A (en) USB Type-C interface circuit and control device thereof
US9215541B2 (en) Apparatus for detecting type of audio interface
KR20130133897A (en) Mobile device auto detection apparatus and method
CN102692987A (en) Electronic apparatus and electronic apparatus system
US10243386B2 (en) Power supply circuit in electronic device and control method thereof
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
CN114039400A (en) Electronic equipment
CN104678197A (en) Test circuit
CN102035250B (en) Semiconductor device, voltage comparison circuit, power management circuit and electronic instrument
KR100700532B1 (en) A method for recognizing device connected to universal serial bus port and universal serial bus adaptor
CN112821156B (en) Electronic tags chip and TYPE-C data line
CN111082779B (en) Data transmission circuit, data transmission method and electronic equipment
CN108631377A (en) Electrifying control circuit and apply its portable power source device
CN216118769U (en) Type-C interface circuit and intelligent terminal equipment with same
CN110690883A (en) EC reset circuit and electronic equipment based on composite signal
CN221041793U (en) Gating system of Type-C interface
CN210518243U (en) EC reset circuit and electronic equipment based on composite signal
CN115422102B (en) USB, type-C interface circuit and drive plate

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Floor 25, Block A, Zhongzhou Binhai Commercial Center Phase II, No. 9285, Binhe Boulevard, Shangsha Community, Shatou Street, Futian District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Youjia Innovation Technology Co.,Ltd.

Address before: 518051 401, building 1, Shenzhen new generation industrial park, No. 136, Zhongkang Road, Meidu community, Meilin street, Futian District, Shenzhen, Guangdong Province

Patentee before: SHENZHEN MINIEYE INNOVATION TECHNOLOGY Co.,Ltd.