A bidirectional adaptive interface circuit

By designing a bidirectional adaptive interface circuit in the adaptive interface chip, and building a half-duplex interface circuit using NMOS tubes, PMOS tubes and comparators, the problem of insufficient level range of the IO interface is solved, and a wider level range is achieved High adaptability.

CN114047704BActive Publication Date: 2024-11-22CHENGDU XUANJILITONG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111467739.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-03
Publication Date
2024-11-22
Estimated Expiration
2041-12-03

AI Technical Summary

Technical Problem

The existing adaptive interface chip IO interface level range is relatively low and cannot meet the usage needs of certain special scenarios.

Method used

A bidirectional adaptive interface circuit is designed, using half-duplex interface circuit, including a common transmitting circuit and receiving circuit, and is constructed using NMOS tubes, PMOS tubes and comparators, extending the level range of the IO interface.

Benefits of technology

The level range of input and output interfaces has been expanded to 60V or even higher, and is suitable for replacing conventional adaptive interface chips and discrete IO interfaces. It has rich application scenarios and is highly adaptable and practical.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114047704B_ABST
    Figure CN114047704B_ABST
Patent Text Reader

Abstract

The present invention discloses a bidirectional adaptive interface circuit, including a half-duplex interface circuit; the half-duplex interface circuit includes a transmitting circuit and a receiving circuit sharing an external interface; the input ends of the transmitting circuit and the receiving circuit are both electrically connected to a controller; the transmitting circuit includes an NMOS tube Q1, a PMOS tube Q2 and an NMOS tube Q3; the NMOS tube Q1 is electrically connected to the PMOS tube Q2 and the NMOS tube Q3 in sequence; the receiving circuit includes a comparator COMP1 electrically connected to the controller. Compared with the IO interface level range of the traditional adaptive interface chip, the circuit of the present invention expands the level range of the IO interface, so that the level range of the input and output interface reaches 60V or even higher, and the constructed bidirectional adaptive interface circuit can replace the conventional adaptive interface chip, and can also be used as a discrete quantity IO interface, with rich application scenarios, high adaptability, and strong practicality and applicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of interface circuits, and in particular relates to a bidirectional adaptive interface circuit. Background Art

[0002] The input / output interface is an electronic circuit, usually an IC chip or an interface board, which consists of some special registers and corresponding control logic circuits. It is the medium and bridge for information exchange between the CPU and the input / output device. The connection and data exchange between the CPU and external devices and memory need to be completed through an interface device. The former is called the I / O interface and the latter is called the memory interface. The memory is generally controlled synchronously by the CPU, and the interface circuit is relatively simple; the corresponding interface circuit is different for different types of I / O devices.

[0003] However, the IO interface level range of existing adaptive interface chips is relatively low and cannot meet the usage requirements of certain special scenarios. Summary of the invention

[0004] The object of the present invention is to provide a bidirectional adaptive interface circuit to solve the problem that the IO interface level range of the existing adaptive interface chip is low in view of the above-mentioned deficiencies in the prior art.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is:

[0006] A bidirectional adaptive interface circuit includes a half-duplex interface circuit; the half-duplex interface circuit includes a sending circuit and a receiving circuit that share an external interface; the input ends of the sending circuit and the receiving circuit are both electrically connected to a controller;

[0007] The sending circuit includes an NMOS transistor Q1, a PMOS transistor Q2 and an NMOS transistor Q3; the NMOS transistor Q1 is electrically connected to the PMOS transistor Q2 and the NMOS transistor Q3 in sequence; the receiving circuit includes a comparator COMP1 electrically connected to the controller.

[0008] Preferably, the gate G of the NMOS tube Q1 is connected to the signal output terminal of the controller, and the gate G of the NMOS tube Q1 is pulled down to GND through the resistor R1; the source S of the NMOS tube Q1 is connected to GND, and the drain D of the NMOS tube Q1 is connected to the gate G of the PMOS tube Q2.

[0009] Preferably, the resistance of the resistor R1 is 1K.

[0010] Preferably, the gate G of the PMOS tube Q2 is electrically connected to the power supply VCC through the resistor R2, the source S of the PMOS tube Q2 is connected to the power supply VCC, and the drain D of the PMOS tube Q2 is connected to the transmitting end output interface OUTPUT through the resistor R4.

[0011] Preferably, the resistance value of the resistor R2 is 10K, and the resistance value of the resistor R4 is 3.3K.

[0012] Preferably, the gate G of the NMOS tube Q3 is pulled down to GND through the resistor R3, the source S of the NMOS tube Q3 is connected to GND, and the drain D of the NMOS tube Q3 serves as the transmitting end output interface OUTPUT.

[0013] Preferably, the resistance of the resistor R3 is 1K.

[0014] Preferably, the positive terminal of the comparator COMP1 is connected to the receiving signal INPUT through a reverse diode D1, and the positive terminal of the comparator COMP1 is pulled up to a voltage through a resistor R6.

[0015] Preferably, the negative terminal of the comparator COMP1 is electrically connected to the comparison voltage.

[0016] Preferably, the output terminal of the comparator COMP1 is an open-drain output and is pulled up to a voltage through a resistor R5.

[0017] The bidirectional adaptive interface circuit provided by the present invention has the following beneficial effects:

[0018] The present invention forms a half-duplex interface circuit by sharing a sending circuit and a receiving circuit of an external interface, and specifically adopts an NMOS tube, a PMOS tube and a comparator to construct the circuit. Compared with the IO interface level range of a traditional adaptive interface chip, the circuit of the present invention expands the level range of the IO interface, so that the level range of the input and output interface reaches 60V or even higher.

[0019] The bidirectional adaptive interface circuit constructed by the present invention can replace the conventional adaptive interface chip and can also be used as a discrete quantity IO interface. It has rich application scenarios, high adaptability, and strong practicality and applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is a bidirectional adaptive interface circuit diagram.

[0021] Figure 2 This is the sending interface circuit diagram in the bidirectional adaptive interface circuit.

[0022] Figure 3 This is the receiving interface circuit diagram in the bidirectional adaptive interface circuit. DETAILED DESCRIPTION

[0023] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0024] According to one embodiment of the present application, referring to Figure 1 The bidirectional adaptive interface circuit of the present invention includes a half-duplex interface circuit, which includes a transmitting circuit and a receiving circuit. The transmitting circuit and the receiving circuit share an external interface, and the input ends of the transmitting circuit and the receiving circuit are both electrically connected to the controller.

[0025] refer to Figure 2 The sending circuit includes an NMOS tube Q1, a PMOS tube Q2 and an NMOS tube Q3; the NMOS tube Q1 is electrically connected to the PMOS tube Q2 and the NMOS tube Q3 in sequence; the receiving circuit includes a comparator COMP1 electrically connected to the controller.

[0026] Specifically, the PU_EN signal output by the controller is used as a pull-up enable signal, which is an LVTTL level signal. The LVTTL level signal is connected to the gate G of the NMOS tube Q1 and is used to control the on and off of the NMOS tube Q1; the gate G of the NMOS tube Q1 is pulled down to GND through the 1K resistor R1, the source S of the NMOS tube Q1 is directly connected to GND, and the drain D of the NMOS tube Q1 is connected to the gate G of the PMOS tube Q2.

[0027] The gate G of the PMOS tube Q2 is connected to the power supply VCC through a 10K resistor R2, the source S of the PMOS tube Q2 is directly connected to the power supply VCC, and the drain D of the PMOS tube Q2 is connected to the transmitting end output interface OUTPUT through a 3.3K resistor R4.

[0028] refer to Figure 2 , the working principle of NMOS tube Q1 and PMOS tube Q2 when PU_EN signal is used as pull-up enable signal is:

[0029] The PU_EN signal output by the controller is used as an LVTTL level signal. When the PU_EN signal outputs a high level, the NMOS tube Q1 is turned on, the gate G of the PMOS tube Q2 is at a low level, and the PMOS tube is turned on. At this time, the power supply VCC is connected to the 3.3K resistor R4.

[0030] When the PU_EN signal outputs a low level, the NMOS tube Q1 is turned off, the gate G voltage of the PMOS tube Q2 is VCC, and the PMOS tube is turned off. At this time, the power supply VCC is disconnected from the 3.3K resistor R4.

[0031] The TTL_OUT signal output by the controller is an LVTTL level signal, which is connected to the gate G of the NMOS tube Q3 to control the on and off of the NMOS tube Q3; the gate G of the NMOS tube Q3 is pulled down to GND through the 1K resistor R3, the source S of the NMOS tube Q3 is directly connected to GND, and the drain D of the NMOS tube Q3 serves as the sending end output interface OUTPUT.

[0032] refer to Figure 2 , the working principle of NMOS tube Q3 when TTL_OUT signal is:

[0033] The TTL_OUT signal is an LVTTL level signal. When the TTL_OUT signal outputs a high level, the NMOS tube Q3 is turned on, the OUTPUT signal is short-circuited with GND, and the voltage is 0V.

[0034] When the TTL_OUT signal outputs a low level, the NMOS tube Q3 is cut off. At this time, if the PU_EN signal is a high level, the pull-up enable function is turned on, and the drain D of the NMOS tube Q3 outputs the OUTPUT voltage as VCC, where the VCC voltage is adjustable, and the maximum value is determined by the maximum withstand voltage of the selected PMOS tube, and the drive current is (VCC / 3.3) mA.

[0035] If the PU_EN signal is at a low level, the pull-up enable function is turned off, and the drain D output OUTPUT of the NMOS tube Q3 serves as an open drain (OC) output interface.

[0036] refer to Figure 3 The positive terminal of the comparator COMP1 is connected to the receiving signal INPUT through the reverse diode D1, and the positive terminal of the comparator COMP1 is pulled up to the voltage through the resistor R6. The negative terminal of the comparator COMP1 is electrically connected to the comparison voltage.

[0037] Specifically, the received signal INPUT is connected to the positive terminal (VIN+) of the comparator COMP1 through the reverse diode D1; the positive terminal (VIN+) of the comparator COMP1 is pulled up to a voltage of 2.0V through a resistor R6 with a resistance value of 4.7K, and the negative terminal (VIN-) of the comparator COMP1 is connected to a comparison voltage of 1.8V. The output terminal (OUT) of the comparator COMP1 is an open drain (OC) output, which is pulled up to 3.3V through a resistor R5 with a resistance value of 4.7K.

[0038] refer to Figure 3 , the working principle of the receiving circuit is:

[0039] The forward voltage drop of the reverse diode D1 is 0.7V. When the signal INPUT voltage is ≤1.3V, the diode D1 is turned on, and the voltage at the positive terminal (VIN+) of the comparator COMP1 is less than the voltage at the negative terminal (VIN-) (1.8V). At this time, the comparator output signal TTL_IN is low level;

[0040] When the signal INPUT voltage is greater than 1.3V, the diode D1 is cut off, and the voltage at the positive terminal (VIN+) of the comparator COMP1 is 2.0V, which is greater than the voltage at the negative terminal (VIN-) (1.8V). At this time, the comparator output signal TTL_IN is high level.

[0041] The present invention constructs a half-duplex interface circuit based on a sending circuit and a receiving circuit that share an external interface, and specifically adopts an NMOS tube, a PMOS tube and a comparator to construct the circuit. Compared with the IO interface level range of a traditional adaptive interface chip, the circuit of the present invention expands the level range of the IO interface, so that the level range of the input and output interface reaches 60V or even higher, and the bidirectional adaptive interface circuit of the present invention can replace the conventional adaptive interface chip and can also be used as a discrete quantity IO interface, with rich application scenarios, high adaptability, and strong practicality and adaptability.

[0042] Although the specific implementation of the invention is described in detail in conjunction with the drawings, it should not be understood as limiting the scope of protection of this patent. Within the scope described in the claims, various modifications and variations that can be made by those skilled in the art without creative work still fall within the scope of protection of this patent.

Claims

1. A bidirectional adaptive interface circuit, characterized in that: It includes a half-duplex interface circuit; the half-duplex interface circuit includes a sending circuit and a receiving circuit that share an external interface; the input ends of the sending circuit and the receiving circuit are both electrically connected to the controller; The transmitting circuit includes an NMOS tube Q1, a PMOS tube Q2 and an NMOS tube Q3; the NMOS tube Q1 is electrically connected to the PMOS tube Q2 and the NMOS tube Q3 in sequence; the receiving circuit includes a comparator COMP1 electrically connected to the controller; The gate G of the NMOS tube Q1 is connected to the signal output terminal of the controller, and the gate G of the NMOS tube Q1 is pulled down to GND through the resistor R1; the source S of the NMOS tube Q1 is connected to GND, and the drain D of the NMOS tube Q1 is connected to the gate G of the PMOS tube Q2; The gate G of the PMOS tube Q2 is electrically connected to the power supply VCC through the resistor R2, the source S of the PMOS tube Q2 is connected to the power supply VCC, and the drain D of the PMOS tube Q2 is connected to the transmitting end output interface OUTPUT through the resistor R4; The gate G of the NMOS tube Q3 is pulled down to GND through the resistor R3, the source S of the NMOS tube Q3 is connected to GND, and the drain D of the NMOS tube Q3 serves as the output interface OUTPUT of the transmitting end; The positive end of the comparator COMP1 is connected to the received signal INPUT through a reverse diode D1, and the positive end of the comparator COMP1 is pulled up to a voltage through a resistor R6; the negative end of the comparator COMP1 is electrically connected to the comparison voltage; the output end of the comparator COMP1 is an open drain output, and is pulled up to a voltage through a resistor R5.

2. The bidirectional adaptive interface circuit according to claim 1, characterized in that: The resistance value of the resistor R1 is 1K.

3. The bidirectional adaptive interface circuit according to claim 1, characterized in that: The resistance value of the resistor R2 is 10K, and the resistance value of the resistor R4 is 3.3K.

4. The bidirectional adaptive interface circuit according to claim 1, characterized in that: The resistance value of the resistor R3 is 1K.