GPIO port circuit

By using an anti-backflow circuit and a MOS tube structure in the GPIO port circuit, the problem of limited input voltage range in the existing technology is solved, and a wider input voltage range and safety are achieved.

CN221929833UActive Publication Date: 2024-10-29HUNAN ADVANCECHIP ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323418334.4
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-14
Publication Date
2024-10-29
Estimated Expiration
2033-12-14

AI Technical Summary

Technical Problem

In the existing GPIO design, the output circuit and the input circuit share the PAD port. As a result, when the input signal voltage of the PAD port is higher than the power supply voltage, there is a risk of parasitic diode conduction, causing crosstalk and burning the power chip, which limits the GPIO input voltage range.

Method used

A GPIO port circuit is designed, including a high-level output driver module and a low-level output driver module. It uses the first PMOS tube and NMOS tube, and uses an anti-backflow circuit to prevent the input signal from flowing back into the power supply, thereby expanding the input voltage range.

Benefits of technology

It effectively prevents the input signal from flowing back into the power supply, prevents crosstalk and burning, and expands the GPIO input voltage range so that it can exceed the power supply voltage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221929833U_ABST
    Figure CN221929833U_ABST
Patent Text Reader

Abstract

The GPIO port circuit comprises a PAD port, a high-level output driving module and a low-level output driving module, the high-level output driving module comprises a first PMOS transistor and an anti-backflow circuit, the grid electrode of the first PMOS transistor is used for inputting a first control signal, the drain electrode of the first PMOS transistor is connected with the PAD port, the source electrode of the first PMOS transistor is connected with the anti-backflow circuit, and the grid electrode of the first PMOS transistor is used for inputting a second control signal. The anti-backflow circuit is connected with a power supply and is used for preventing an input signal of the PAD port from flowing back into the power supply and enabling the PAD port to output a high-level signal when the first PMOS tube is conducted; the low-level output driving module comprises an NMOS tube, the grid electrode of the NMOS tube is used for inputting a second control signal, the drain electrode of the NMOS tube is connected with the drain electrode of the first PMOS tube, and the source electrode of the NMOS tube is grounded so as to enable the PAD port to output a low-level signal when the NMOS tube is conducted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of integrated circuits, and in particular to a GPIO port circuit. Background Art

[0002] GPIO, or general purpose input and output port, is a commonly used interface for general-purpose digital processors. It can be used as a chip output port to output strongly driven high-level and low-level signals. It can also be used as a chip input port to identify high-level and low-level signals input to the chip port from other chips.

[0003] In the existing GPIO design scheme, such as Figure 1 As shown in the figure, since the output circuit and the input circuit share the PAD port, the output circuit structure usually uses a PMOS tube to output a high-level signal. In the CMOS process, there is a parasitic diode between the drain of the PMOS tube and the substrate end, and the substrate end is short-circuited with the power supply. Therefore, when the input signal voltage of the PAD port is higher than the power supply voltage by a parasitic diode conduction threshold, the parasitic diode between the PAD port and the power supply will be forward-conducted, causing the PAD port to crosstalk the power chip, and there is also a risk of burning the power chip port, or causing the chip to latch. Therefore, the input voltage range of the GPIO usually cannot exceed the power supply voltage. Utility Model Content

[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a GPIO port circuit that can solve the problem that the traditional GPIO input voltage range cannot exceed the voltage of the power supply.

[0005] The GPIO port circuit according to an embodiment of the present application includes:

[0006] PAD port;

[0007] A high-level output driving module, the high-level output driving module includes a first PMOS tube and an anti-backflow circuit, the gate of the first PMOS tube is used to input a first control signal, the drain of the first PMOS tube is connected to the PAD port, the source of the first PMOS tube is connected to the anti-backflow circuit, the anti-backflow circuit is connected to a power supply to prevent the input signal of the PAD port from backflowing into the power supply, and is used to make the PAD port output a high-level signal when the first PMOS tube is turned on;

[0008] A low-level output driving module, wherein the low-level output driving module comprises an NMOS tube, the gate of the NMOS tube is used to input a second control signal, the drain of the NMOS tube is connected to the drain of the first PMOS tube, and the source of the NMOS tube is grounded so that the PAD port outputs a low-level signal when the NMOS tube is turned on.

[0009] The GPIO port circuit according to the embodiment of the present application has at least the following beneficial effects:

[0010] When the first control signal is input to control the first PMOS tube to be turned on, the power supply is connected to the PAD port so that the PAD port outputs a high-level signal. When the second control signal is input to control the second MOS tube to be turned on, the PAD port is grounded so that the PAD port outputs a low-level signal. When the input signal voltage of the PAD port exceeds the power supply voltage, the anti-backflow circuit can prevent the input signal from backflowing into the power supply, so that the input signal does not cause crosstalk, avoids burning the power supply and causing latching. Compared with the traditional GPIO port technology, the GPIO port circuit of the embodiment of the present application allows the GPIO input voltage to exceed the power supply voltage, thereby expanding the input voltage range.

[0011] According to some embodiments of the present application, the anti-backflow circuit includes a second PMOS tube, the substrate end of the first PMOS tube is connected to the source of the first PMOS tube, the substrate end of the second PMOS tube is connected to the drain of the second PMOS tube, the source of the first PMOS tube is connected to the source of the second PMOS tube, the drain of the second PMOS tube is connected to the power supply, and the gate of the second PMOS tube is connected to the gate of the first PMOS tube.

[0012] According to some embodiments of the present application, the backflow prevention circuit further includes a switch, one end of the switch is connected to the gate of the first PMOS tube, and the other end of the switch is connected to the source of the first PMOS tube.

[0013] According to some embodiments of the present application, a first buffer is further included, the first buffer includes a first inverter and a second inverter, the switch is a third PMOS tube, the drain of the third PMOS tube is connected to the gate of the first PMOS tube, the source of the third PMOS tube is connected to the source of the first PMOS tube, the gate of the third PMOS tube is connected to the output end of the first inverter, the input end of the first inverter is used to input the first control signal, the input end of the second inverter is connected to the output end of the first inverter, and the output end of the second inverter is connected to the gate of the first PMOS tube.

[0014] According to some embodiments of the present application, an input module is further included, the input module includes a second buffer, and the PAD port is connected to an input end of the second buffer.

[0015] According to some embodiments of the present application, a resistor is further included, the PAD port is connected to one end of the resistor, and the other end of the resistor is connected to the input end of the second buffer.

[0016] According to some embodiments of the present application, a diode is further included, wherein an anode of the diode is connected to the input end of the second buffer, and a cathode of the diode is connected to the power supply.

[0017] According to some embodiments of the present application, a third buffer is further included, wherein an input end of the third buffer is used to input the second control signal, and an output end of the third buffer is connected to the gate of the NMOS tube.

[0018] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The present application is further described below with reference to the accompanying drawings and embodiments, wherein:

[0020] Figure 1 It is a circuit structure diagram of a GPIO port circuit in the prior art;

[0021] Figure 2 A circuit diagram of the GPIO port circuit of the present application;

[0022] Figure 3 Circuit diagram b of the GPIO port circuit of this application. DETAILED DESCRIPTION

[0023] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0024] In the description of the present application, it should be understood that the descriptions involving orientation, such as the orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0025] In the description of this application, "a plurality" means more than two. If there is a description of "first" or "second", it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0026] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.

[0027] Refer to the following Figures 2 to 3 A GPIO port circuit according to an embodiment of the present application is described.

[0028] According to the GPIO port circuit of the embodiment of the present application, Figure 2 As shown, it includes: a PAD port, a high-level output driving module and a low-level output driving module. The high-level output driving module includes a first PMOS tube PM1 and an anti-backflow circuit, the gate of the first PMOS tube PM1 is used to input a first control signal, the drain of the first PMOS tube PM1 is connected to the PAD port, the source of the first PMOS tube PM1 is connected to the anti-backflow circuit, the anti-backflow circuit is connected to the power supply VDDIO to prevent the input signal of the PAD port from backflowing into the power supply VDDIO, and is used to make the PAD port output a high-level signal when the first PMOS tube PM1 is turned on.

[0029] like Figure 2 As shown, the low-level output driving module includes an NMOS tube NM0, a gate of the NMOS tube NM0 is used to input a second control signal, a drain of the NMOS tube NM0 is connected to the drain of the first PMOS tube PM1, and a source of the NMOS tube NM0 is grounded so that the PAD port outputs a low-level signal when the NMOS tube NM0 is turned on.

[0030] In this embodiment, when the first control signal is input to control the first PMOS tube PM1 to be turned on, the power supply VDDIO is connected to the PAD port so that the PAD port outputs a high-level signal, and when the second control signal is input to control the second MOS tube to be turned on, the PAD port is grounded so that the PAD port outputs a low-level signal. When the input signal voltage of the PAD port exceeds the power supply VDDIO voltage, the anti-backflow circuit can prevent the input signal from backflowing into the power supply VDDIO, so that the input signal does not cause crosstalk, and avoids burning the power supply VDDIO and causing latching. Compared with the traditional GPIO port technology, the GPIO port circuit of the embodiment of the present application allows the GPIO input voltage to exceed the power supply VDDIO voltage, thereby expanding the input voltage range.

[0031] It can be understood that the first control signal and the second control signal are both issued by the chip, and the chip outputs a high level signal or a low level signal by controlling the high level output driving module or the low level output driving module.

[0032] In one embodiment of the present application, Figure 2As shown, the backflow prevention circuit includes a second PMOS tube PM0, a substrate end of the first PMOS tube PM1 is connected to the source of the first PMOS tube PM1, a substrate end of the second PMOS tube PM0 is connected to the drain of the second PMOS tube PM0, a source of the first PMOS tube PM1 is connected to the source of the second PMOS tube PM0, a drain of the second PMOS tube PM0 is connected to the power supply VDDIO, and a gate of the second PMOS tube PM0 is connected to the gate of the first PMOS tube PM1.

[0033] In this embodiment, by connecting the first PMOS transistor PM1 and the second PMOS transistor PM0 in series, a reverse-biased parasitic diode is provided between the power supply VDDIO and the PAD port and between the PAD port and the power supply VDDIO. Even if the input signal voltage of the PAD port is higher than the power supply VDDIO voltage by a conduction threshold of the parasitic diode of the first PMOS transistor PM1, the parasitic diode of the second PMOS transistor PM0 can prevent the input signal from flowing back into the power supply VDDIO, thereby expanding the input voltage range.

[0034] It can be understood that, since the breakdown voltage of the parasitic diode of the second PMOS transistor PM0 is relatively high, the input voltage range of the PAD port is expanded to the breakdown voltage of the parasitic diode of the second PMOS transistor PM0 .

[0035] In one embodiment of the present application, Figure 2 As shown, the backflow prevention circuit further includes a switch SW0 , one end of the switch SW0 is connected to the gate of the first PMOS transistor PM1 , and the other end of the switch SW0 is connected to the source of the first PMOS transistor PM1 .

[0036] In this embodiment, when a low-level signal is output, the gates of the first PMOS transistor PM1 and the second PMOS transistor PM0 are pulled to the power supply VDDIO voltage, the first PMOS transistor PM1 and the second PMOS transistor PM0 are not turned on, and the floating substrate end will cause leakage and load effects. By turning on the switch SW0, the substrate end is pulled to the power supply VDDIO voltage, which can avoid the leakage and load effects caused by the floating substrate end. When a high-level signal needs to be output, the gates of the first PMOS transistor PM1 and the second PMOS transistor PM0 are pulled to 0V, the first PMOS transistor PM1 and the second PMOS transistor PM0 are turned on, and by turning off the switch SW0, the clamping effect of the gate voltage of the first PMOS transistor PM1 on the PAD port is avoided.

[0037] In one embodiment of the present application, Figure 3As shown, it also includes a first buffer BUF0, the first buffer BUF0 includes a first inverter Q1 and a second inverter Q2, the switch SW0 is a third PMOS tube PM2, the drain of the third PMOS tube PM2 is connected to the gate of the first PMOS tube PM1, the source of the third PMOS tube PM2 is connected to the source of the first PMOS tube PM1, the gate of the third PMOS tube PM2 is connected to the output end of the first inverter Q1, the input end of the first inverter Q1 is used to input the first control signal, the input end of the second inverter Q2 is connected to the output end of the first inverter Q1, and the output end of the second inverter Q2 is connected to the gate of the first PMOS tube PM1.

[0038] In this embodiment, the first control signal is input to the gate of the third PMOS tube PM2 after being inverted by the first inverter Q1. The first control signal remains unchanged after passing through the first inverter Q1 and the second inverter Q2, and is input to the gates of the first PMOS tube PM1 and the second PMOS tube PM0, so that the signal input to the gate of the third PMOS tube PM2 is inverted with the gate input signals of the first PMOS tube PM1 and the second PMOS tube PM0, so that when a low-level signal needs to be output, the first PMOS tube PM1 and the second PMOS tube PM0 are not turned on, and the third PMOS tube PM2 is turned on. When a high-level signal needs to be output, the first PMOS tube PM1 and the second PMOS tube PM0 are turned on, and the third PMOS tube PM2 is not turned on.

[0039] In one embodiment of the present application, Figure 3 As shown, an input module is also included, the input module includes a second buffer BUF2, and the PAD port is connected to the input end of the second buffer BUF2.

[0040] In this embodiment, the input signal of the PAD port is temporarily stored in the second buffer BUF2 before being input into the chip, which can improve data transmission efficiency.

[0041] It should be noted that the second buffer BUF2 includes an even number of inverters.

[0042] In one embodiment of the present application, Figure 3 As shown, a resistor R0 is also included, the PAD port is connected to one end of the resistor R0, and the other end of the resistor R0 is connected to the input end of the second buffer BUF2.

[0043] In one embodiment of the present application, Figure 3 As shown, a diode Q3 is also included, wherein the anode of the diode Q3 is connected to the input end of the second buffer BUF2, and the cathode of the diode Q3 is connected to the power supply VDDIO.

[0044] In this embodiment, the input end of the second buffer BUF2 is connected to the power supply VDDIO through the diode Q3. The power supply VDDIO and the diode Q3 play a clamping role, and can protect the second buffer BUF2 when the voltage of the input signal of the PAD port is high.

[0045] In one embodiment of the present application, Figure 3 As shown, a third buffer BUF1 is also included. The input end of the third buffer BUF1 is used to input the second control signal, and the output end of the third buffer BUF1 is connected to the gate of the NMOS tube NM0.

[0046] In this embodiment, the second control signal is temporarily stored in the third buffer BUF1 and then input into the gate of the NMOS transistor NM0 , which can improve data transmission efficiency.

[0047] It can be understood that the third buffer BUF1 includes an even number of inverters.

[0048] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present application.

Claims

1. GPIO port circuit, characterized in that, include: PAD port; A high-level output driving module, the high-level output driving module includes a first PMOS tube and an anti-backflow circuit, the gate of the first PMOS tube is used to input a first control signal, the drain of the first PMOS tube is connected to the PAD port, the source of the first PMOS tube is connected to the anti-backflow circuit, the anti-backflow circuit is connected to a power supply to prevent the input signal of the PAD port from backflowing into the power supply, and is used to make the PAD port output a high-level signal when the first PMOS tube is turned on; A low-level output driving module, wherein the low-level output driving module comprises an NMOS tube, the gate of the NMOS tube is used to input a second control signal, the drain of the NMOS tube is connected to the drain of the first PMOS tube, and the source of the NMOS tube is grounded so that the PAD port outputs a low-level signal when the NMOS tube is turned on.

2. The GPIO port circuit according to claim 1, characterized in that: The anti-backflow circuit includes a second PMOS tube, a substrate end of the first PMOS tube is connected to the source of the first PMOS tube, a substrate end of the second PMOS tube is connected to the drain of the second PMOS tube, a source of the first PMOS tube is connected to the source of the second PMOS tube, a drain of the second PMOS tube is connected to the power supply, and a gate of the second PMOS tube is connected to the gate of the first PMOS tube.

3. The GPIO port circuit according to claim 2, characterized in that: The backflow prevention circuit further includes a switch, one end of which is connected to the gate of the first PMOS tube, and the other end of which is connected to the source of the first PMOS tube.

4. The GPIO port circuit according to claim 3, characterized in that: It also includes a first buffer, which includes a first inverter and a second inverter. The switch is a third PMOS tube, the drain of the third PMOS tube is connected to the gate of the first PMOS tube, the source of the third PMOS tube is connected to the source of the first PMOS tube, the gate of the third PMOS tube is connected to the output end of the first inverter, the input end of the first inverter is used to input the first control signal, the input end of the second inverter is connected to the output end of the first inverter, and the output end of the second inverter is connected to the gate of the first PMOS tube.

5. The GPIO port circuit according to claim 1, characterized in that: It also includes an input module, which includes a second buffer, and the PAD port is connected to the input end of the second buffer.

6. The GPIO port circuit according to claim 5, characterized in that: A resistor is also included, the PAD port is connected to one end of the resistor, and the other end of the resistor is connected to the input end of the second buffer.

7. The GPIO port circuit according to claim 5, characterized in that: A diode is also included, wherein an anode of the diode is connected to the input end of the second buffer, and a cathode of the diode is connected to the power supply.

8. The GPIO port circuit according to claim 1, characterized in that: A third buffer is also included, wherein the input end of the third buffer is used to input the second control signal, and the output end of the third buffer is connected to the gate of the NMOS tube.