CN111669168A - A high-speed level conversion circuit - Google Patents
A high-speed level conversion circuit Download PDFInfo
- Publication number
- CN111669168A CN111669168A CN202010570622.3A CN202010570622A CN111669168A CN 111669168 A CN111669168 A CN 111669168A CN 202010570622 A CN202010570622 A CN 202010570622A CN 111669168 A CN111669168 A CN 111669168A
- Authority
- CN
- China
- Prior art keywords
- port
- transistor
- level
- circuit
- resistor
- 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.)
- Pending
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 181
- 238000004891 communication Methods 0.000 claims abstract description 30
- 230000000630 rising effect Effects 0.000 claims abstract description 25
- 238000003708 edge detection Methods 0.000 claims description 46
- 239000003990 capacitor Substances 0.000 claims description 26
- 101150110971 CIN7 gene Proteins 0.000 claims description 11
- 101100286980 Daucus carota INV2 gene Proteins 0.000 claims description 11
- 101150110298 INV1 gene Proteins 0.000 claims description 11
- 101100397044 Xenopus laevis invs-a gene Proteins 0.000 claims description 11
- 101100397045 Xenopus laevis invs-b gene Proteins 0.000 claims description 11
- HCUOEKSZWPGJIM-YBRHCDHNSA-N (e,2e)-2-hydroxyimino-6-methoxy-4-methyl-5-nitrohex-3-enamide Chemical compound COCC([N+]([O-])=O)\C(C)=C\C(=N/O)\C(N)=O HCUOEKSZWPGJIM-YBRHCDHNSA-N 0.000 claims description 9
- 101001109689 Homo sapiens Nuclear receptor subfamily 4 group A member 3 Proteins 0.000 claims description 9
- 101000598778 Homo sapiens Protein OSCP1 Proteins 0.000 claims description 9
- 101001067395 Mus musculus Phospholipid scramblase 1 Proteins 0.000 claims description 9
- 102100022673 Nuclear receptor subfamily 4 group A member 3 Human genes 0.000 claims description 9
- 230000008054 signal transmission Effects 0.000 abstract description 13
- 230000002457 bidirectional effect Effects 0.000 description 13
- 238000000034 method Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K19/00—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
- H03K19/01—Modifications for accelerating switching
- H03K19/013—Modifications for accelerating switching in bipolar transistor circuits
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Logic Circuits (AREA)
Abstract
Description
技术领域technical field
本申请涉及模拟集成电路技术领域,特别涉及一种高速电平转换电路。The present application relates to the technical field of analog integrated circuits, and in particular, to a high-speed level conversion circuit.
背景技术Background technique
目前在电子电路设计中,经常会出现相互通信的两个数字集成电路工作在不同的供电电压,比如第一芯片工作在1.8V,而第二芯片工作在5V,那么第二芯片很可能无法正确接收和判别第一芯片送过来的逻辑信号,反过来,第二芯片发出的信号电压高达5V,有可能对第一芯片造成损伤,因此,需要在第一芯片和第二芯片之间增加双向电平转换电路。At present, in the design of electronic circuits, two digital integrated circuits that communicate with each other often work on different supply voltages. For example, the first chip works at 1.8V and the second chip works at 5V, so the second chip may not be correct. Receive and judge the logic signal sent by the first chip. Conversely, the voltage of the signal sent by the second chip is as high as 5V, which may cause damage to the first chip. Therefore, it is necessary to increase the bidirectional power between the first chip and the second chip. Flat conversion circuit.
参见图1所示,现有技术中的双向电平转换电路包括电阻Rpua1、负载电容Cla、电阻Rpub1,负载电容Clb、晶体管NM0、用于连接第一芯片的A端口以及用于连接第二芯片的B端口,电源Vdda通过串联的电阻Rpua1和负载电容Cla后接地,电源Vddb通过串联的电阻Rpub1和负载电容Clb后接地,晶体管NM0的栅极连接偏置电压,晶体管NM0的源极和A端口均连接在电阻Rpua1和负载电容Cla之间,晶体管NM0的漏极和B端口均连接在电阻Rpub1和负载电容Clb之间。Referring to FIG. 1, the bidirectional level conversion circuit in the prior art includes a resistor Rpua1, a load capacitor Cla, a resistor Rpub1, a load capacitor Clb, a transistor NM0, an A port for connecting the first chip and a port for connecting the second chip The B port of the power supply Vdda is grounded through the series resistor Rpua1 and the load capacitor Cla, the power source Vddb is grounded through the series resistor Rpub1 and the load capacitor Clb, the gate of the transistor NM0 is connected to the bias voltage, and the source of the transistor NM0 and the A port Both are connected between the resistor Rpua1 and the load capacitor Cla, and the drain and the B port of the transistor NM0 are both connected between the resistor Rpub1 and the load capacitor Clb.
在现有技术的双向电平转换电路中,当A端口的电平拉低时,晶体管NM0导通,B端口的电平通过晶体管NM0也会被拉低;当A端口的电平拉高时,晶体管NM0截止,B端口的电平将会通过电阻Rpub1被拉到电源Vddb的电平,从而实现双向电平的转换,对与A端口和B端口连接的芯片起到保护作用。In the bidirectional level conversion circuit of the prior art, when the level of the A port is pulled low, the transistor NM0 is turned on, and the level of the B port is also pulled down through the transistor NM0; when the level of the A port is pulled high , the transistor NM0 is turned off, and the level of the B port will be pulled to the level of the power supply Vddb through the resistor Rpub1, thereby realizing bidirectional level conversion, and protecting the chip connected to the A port and the B port.
然而,在上述双向电平转换电路中,当A端口的电平拉高时,只能依赖电阻Rpub1来提升信号电压,当负载电容Clb较大时,信号上升缓慢,使得只能工作在1Mbps以下的信号传输速率,无法满足当前高速传输信号的发展需求。However, in the above-mentioned bidirectional level conversion circuit, when the level of port A is pulled high, it can only rely on the resistor Rpub1 to increase the signal voltage. When the load capacitance Clb is large, the signal rises slowly, so that it can only work below 1Mbps The signal transmission rate cannot meet the current development needs of high-speed transmission signals.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种高速双向电平转换电路,以解决相关技术中双向电平转换时信号上升缓慢、信号传输速率低的技术问题。The embodiments of the present application provide a high-speed bidirectional level conversion circuit to solve the technical problems of slow signal rise and low signal transmission rate during bidirectional level conversion in the related art.
本申请提供了一种高速电平转换电路,其用于对两个端口的不同电平进行转换,其包括至少一个转换单元,所述转换单元的输入端连接主导通信的一个端口,输出端连接另一端口,所述转换单元包括:The present application provides a high-speed level conversion circuit, which is used to convert different levels of two ports, and includes at least one conversion unit, the input end of the conversion unit is connected to a port that dominates communication, and the output end is connected to Another port, the conversion unit includes:
第一转换支路,其包括电源Vdd、电阻Rpu、晶体管NM0,所述晶体管NM0跨接在主导通信的端口和另一端口之间,所述电源Vdd通过电阻Rpu与另一端口相连;a first conversion branch, which includes a power supply Vdd, a resistor Rpu, and a transistor NM0, the transistor NM0 is connected across the port leading the communication and another port, and the power supply Vdd is connected to the other port through the resistor Rpu;
单向电平转换电路,其用于对主导通信的端口电平进行转换,并输出转换后的电平信号;A one-way level conversion circuit, which is used to convert the level of the port that dominates the communication, and output the converted level signal;
第一控制电路,其两端分别连接电源Vdd和另一端口,其用于根据所述转换后的电平信号控制另一端口和电源Vdd直接连接或通过电阻Rpu相连,以使第一控制电路在预设的时间内快速拉高另一端口的电平;The first control circuit, the two ends of which are respectively connected to the power supply Vdd and the other port, which is used to control the other port to be directly connected to the power supply Vdd or connected to the power supply Vdd according to the converted level signal, so that the first control circuit Quickly pull up the level of another port within a preset time;
第二控制电路,其两端分别连接另一端口和地,其用于根据所述单向电平转换电路输出的电平信号控制另一端口和地之间的导通或关断,以使第二控制电路在预设的时间内快速拉低另一端口的电平。The second control circuit, the two ends of which are respectively connected to the other port and the ground, is used to control the turn-on or turn-off between the other port and the ground according to the level signal output by the unidirectional level conversion circuit, so as to make the The second control circuit rapidly pulls down the level of the other port within a preset time.
一些实施例中,所述第一控制电路包括上升沿检测电路和晶体管PM2;In some embodiments, the first control circuit includes a rising edge detection circuit and a transistor PM2;
上升沿检测电路的输入端与单向电平转换电路的输出端相连,输出端连接晶体管PM2的栅极;The input end of the rising edge detection circuit is connected with the output end of the unidirectional level conversion circuit, and the output end is connected with the gate of the transistor PM2;
晶体管PM2的源极与电源Vdd相连,晶体管PM2的漏极与另一端口相连。The source of the transistor PM2 is connected to the power supply Vdd, and the drain of the transistor PM2 is connected to the other port.
一些实施例中,所述上升沿检测电路包括依次相连的反相器INV1、与非门NAND1,所述反相器INV1的输入端与单向电平转换电路的输出端相连,所述与非门NAND1的两个输入端分别连接反相器INV1的输出端、以及单向电平转换电路的输出端,所述与非门NAND1的输出端连接晶体管PM2的栅极。In some embodiments, the rising edge detection circuit includes an inverter INV1 and a NAND gate NAND1 connected in sequence, the input end of the inverter INV1 is connected to the output end of the unidirectional level conversion circuit, and the NAND The two input terminals of the gate NAND1 are respectively connected to the output terminal of the inverter INV1 and the output terminal of the unidirectional level conversion circuit, and the output terminal of the NAND gate NAND1 is connected to the gate of the transistor PM2.
一些实施例中,所述第二控制电路包括下降沿检测电路和晶体管NM2;In some embodiments, the second control circuit includes a falling edge detection circuit and a transistor NM2;
下降沿检测电路的输入端与单向电平转换电路的输出端相连,输出端连接晶体管NM2的栅极;The input end of the falling edge detection circuit is connected with the output end of the unidirectional level conversion circuit, and the output end is connected with the gate of the transistor NM2;
晶体管NM2的源极接地,晶体管NM2的漏极与另一端口相连。The source of the transistor NM2 is grounded, and the drain of the transistor NM2 is connected to the other port.
一些实施例中,所述下降沿检测电路包括依次相连的反相器INV2、或非门NOR1,所述反相器INV2的输入端与单向电平转换电路的输出端相连,所述或非门NOR1的两个输入端分别连接反相器INV2的输出端、以及单向电平转换电路的输出端,所述或非门NOR1的输出端连接晶体管NM2的栅极。6、如权利要求1所述的高速电平转换电路,其特征在于:所述第一转换支路还包括负载电容Cl,所述负载电容Cl一端与另一端口相连,所述负载电容Cl另一端接地。In some embodiments, the falling edge detection circuit includes an inverter INV2 and a NOR gate NOR1 connected in sequence, and the input end of the inverter INV2 is connected to the output end of the unidirectional level conversion circuit, and the NOR Two input terminals of the gate NOR1 are respectively connected to the output terminal of the inverter INV2 and the output terminal of the unidirectional level conversion circuit, and the output terminal of the NOR gate NOR1 is connected to the gate of the transistor NM2. 6. The high-speed level conversion circuit according to
一些实施例中,电阻Rpu包括串联的电阻Rpub1和电阻Rpub2,所述转换单元还包括第三控制电路,所述第三控制电路用于根据转换后的电平信号调节电阻Rpub2的阻值。In some embodiments, the resistor Rpu includes a resistor Rpub1 and a resistor Rpub2 connected in series, and the conversion unit further includes a third control circuit configured to adjust the resistance value of the resistor Rpub2 according to the converted level signal.
一些实施例中,所述第三控制电路包括复位/置位RS触发器和晶体管PM4,所述RS触发器的两个输入端分别连接上升沿检测电路的输出端、以及下降沿检测电路的输出端,所述RS触发器的输出端与晶体管PM4的栅极相连,所述晶体管PM4的源极和漏极连接在电阻Rpub2的两端。In some embodiments, the third control circuit includes a reset/set RS flip-flop and a transistor PM4, and two input terminals of the RS flip-flop are respectively connected to the output terminal of the rising edge detection circuit and the output of the falling edge detection circuit. terminal, the output terminal of the RS flip-flop is connected to the gate of the transistor PM4, and the source and drain of the transistor PM4 are connected to both ends of the resistor Rpub2.
一些实施例中,所述电阻Rpu2的阻值远大于电阻Rpu1的阻值。In some embodiments, the resistance value of the resistor Rpu2 is much larger than the resistance value of the resistor Rpu1.
一些实施例中,所述高速电平转换电路包括两个转换单元,每个端口连接一个转换单元的输入端、以及另一个转换单元的输出端。In some embodiments, the high-speed level conversion circuit includes two conversion units, and each port is connected to the input terminal of one conversion unit and the output terminal of the other conversion unit.
本申请提供的技术方案带来的有益效果包括:进行电平转换时信号上升速度较快、信号传输速率高。The beneficial effects brought by the technical solution provided by the present application include: when the level conversion is performed, the signal rising speed is relatively fast, and the signal transmission rate is high.
本申请实施例提供了高速电平转换电路,由于设置了第一控制电路和第二控制电路,可以快速拉高和快速拉低另一端口的电平,从而使得信号上升或下降速度较快,大大提高了信号传输速率。The embodiment of the present application provides a high-speed level conversion circuit. Since the first control circuit and the second control circuit are provided, the level of the other port can be quickly pulled up and down, so that the signal rises or falls faster. The signal transmission rate is greatly improved.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1为现有技术中的双向电平转换电路的示意图;1 is a schematic diagram of a bidirectional level conversion circuit in the prior art;
图2为本申请实施例提供的高速电平转换电路的示意图;2 is a schematic diagram of a high-speed level conversion circuit provided by an embodiment of the present application;
图3为本申请实施例中上升沿检测电路和下降沿检测电路的示意图;3 is a schematic diagram of a rising edge detection circuit and a falling edge detection circuit in an embodiment of the application;
图4为本申请实施例中单向电平转换电路的示意图;4 is a schematic diagram of a unidirectional level conversion circuit in an embodiment of the application;
图5为本申请实施例中提供的具有第三控制电路的高速电平转换电路的示意图;5 is a schematic diagram of a high-speed level conversion circuit with a third control circuit provided in an embodiment of the application;
图6为本申请实施例提供的第一种具有两个转换单元的高速电平转换电路;FIG. 6 provides a first high-speed level conversion circuit with two conversion units provided by an embodiment of the present application;
图7为本申请实施例提供的第二种具有两个转换单元的高速电平转换电路;FIG. 7 provides a second high-speed level conversion circuit with two conversion units provided by an embodiment of the present application;
图8为当A端口主导通信时,第二种具有两个转换单元的高速电平转换电路中主要信号的波形图;Fig. 8 is the waveform diagram of the main signal in the second high-speed level conversion circuit with two conversion units when the A port dominates the communication;
图9为当B端口主导通信时,第二种具有两个转换单元的高速电平转换电路中主要信号的波形图。FIG. 9 is a waveform diagram of main signals in the second type of high-speed level conversion circuit with two conversion units when the B port dominates the communication.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present application.
参见图2所示,本申请提供了一种高速电平转换电路,其用于对两个端口的不同电平进行转换,包括至少一个转换单元,所述转换单元的输入端连接主导通信的一个端口,输出端连接另一端口。Referring to FIG. 2, the present application provides a high-speed level conversion circuit, which is used to convert different levels of two ports, and includes at least one conversion unit, the input end of which is connected to one of the main communication port, the output is connected to another port.
所述转换单元包括第一转换支路、单向电平转换电路、第一控制电路和第二控制电路。第一转换支路包括电源Vdd、电阻Rpu、晶体管NM0,所述晶体管NM0跨接在主导通信的端口和另一端口之间,所述电源Vdd通过电阻Rpu与另一端口相连;单向电平转换电路用于对主导通信的端口电平进行转换,并输出转换后的电平信号;第一控制电路两端分别连接电源Vdd和另一端口,其用于根据所述转换后的电平信号控制另一端口和电源Vdd直接连接或通过电阻Rpu相连,以使第一控制电路在预设的时间内快速拉高另一端口的电平;第二控制电路两端分别连接另一端口和地,其用于根据所述单向电平转换电路输出的电平信号控制另一端口和地之间的导通或关断,以使第二控制电路在预设的时间内快速拉低另一端口的电平。The conversion unit includes a first conversion branch, a unidirectional level conversion circuit, a first control circuit and a second control circuit. The first conversion branch includes a power supply Vdd, a resistor Rpu, and a transistor NM0, the transistor NM0 is connected between the port leading the communication and another port, and the power supply Vdd is connected to the other port through the resistor Rpu; unidirectional level The conversion circuit is used to convert the level of the port that dominates the communication, and output the converted level signal; the two ends of the first control circuit are respectively connected to the power supply Vdd and another port, which is used for according to the converted level signal. The other port is controlled to be directly connected to the power supply Vdd or connected through the resistor Rpu, so that the first control circuit can quickly pull up the level of the other port within a preset time; the two ends of the second control circuit are respectively connected to the other port and the ground , which is used to control the turn-on or turn-off between the other port and the ground according to the level signal output by the unidirectional level conversion circuit, so that the second control circuit quickly pulls down the other port within a preset time. level of the port.
需要说明的是,本申请实施例中的快速拉高和快速拉低应该理解为,与现有技术中的一个端口通过晶体管NM0来拉低另一端口的电平、通过电源、电阻来拉高另一端口的电平相比,本申请实施例中通过第一控制电路可以快速拉高电平,通过第二控制电路可以快速拉低电平。并且,预先设定好通过第一控制电路快速拉高电平的时间,在预设的时间内第一控制电路拉高电平,在预设的时间外第一控制电路停止拉高电平,第二控制电路原理类似,不再赘述。It should be noted that the fast pull-up and fast pull-down in the embodiments of the present application should be understood as the same as in the prior art, one port pulls down the level of the other port through the transistor NM0, and pulls up the level of the other port through a power supply and a resistor. Compared with the level of another port, in this embodiment of the present application, the first control circuit can quickly pull the level high, and the second control circuit can quickly pull the low level. In addition, the time for quickly pulling the high level through the first control circuit is preset, the first control circuit pulls the high level within the preset time, and the first control circuit stops pulling the high level outside the preset time, The principle of the second control circuit is similar and will not be repeated here.
在本申请实施例中,主导通信的端口为A端口,另一端口为B端口。本申请实施例的高速电平转换电路的工作原理为:In the embodiment of the present application, the port leading the communication is the A port, and the other port is the B port. The working principle of the high-speed level conversion circuit of the embodiment of the present application is as follows:
当A端口的电平被拉高时,晶体管NM0截止,第一控制电路在预设的时间内切换电源Vdd和B端口之间的连接通道为电源Vdd直接与B端口相连,电源Vdd对B端口充电,使得B端口的电平快速地被拉高,进而提升信号传输速率;当预设的时间结束后,第一控制电路切换电源Vdd和B端口之间的连接通道为电源Vdd通过电阻Rpu与另一端口相连,此时,总上拉电阻的大小为电阻Rpu,B端口的电平才会由电阻Rpu决定,从而使得信号传输速率不再受到上拉电阻的限制,可以根据预设的时间来调整信号传输速率即可;When the level of the A port is pulled high, the transistor NM0 is turned off, and the first control circuit switches the connection channel between the power supply Vdd and the B port within a preset time so that the power supply Vdd is directly connected to the B port, and the power supply Vdd is connected to the B port. Charging, so that the level of the B port is quickly pulled up, thereby improving the signal transmission rate; when the preset time ends, the first control circuit switches the connection channel between the power supply Vdd and the B port to the power supply Vdd through the resistor Rpu and the connection channel. The other port is connected. At this time, the size of the total pull-up resistor is the resistor Rpu, and the level of the B port is determined by the resistor Rpu, so that the signal transmission rate is no longer limited by the pull-up resistor. to adjust the signal transmission rate;
当A端口的电平被拉低时,晶体管NM0导通,第二控制电路在预设的时间内根据A端口的电平变化情况导通B端口和地之间的连接,B端口对地放电,使得B端口的电平快速由高变低,进而提升信号传输速率;当预设的时间结束后,第二控制电路断开B端口和地之间的连接,在A端口被拉低后,电流会从电源Vdd经过电阻Rpu、晶体管NM0和A端口流到地,此时,B端口的电平为电阻Rpu、晶体管NM0的内阻和A端口连接的驱动电路内阻之间的分压,由分压来保持B端口为低电平。When the level of the A port is pulled low, the transistor NM0 is turned on, the second control circuit turns on the connection between the B port and the ground according to the level change of the A port within a preset time, and the B port discharges to the ground , so that the level of the B port quickly changes from high to low, thereby increasing the signal transmission rate; when the preset time ends, the second control circuit disconnects the connection between the B port and the ground, and after the A port is pulled low, the The current will flow from the power supply Vdd to the ground through the resistor Rpu, the transistor NM0 and the A port. At this time, the level of the B port is the divided voltage between the resistor Rpu, the internal resistance of the transistor NM0 and the internal resistance of the driving circuit connected to the A port. The B port is kept low by the voltage divider.
本申请实施例的高速电平转换电路由于设置了第一控制电路和第二控制电路,可以快速拉高和快速拉低另一端口的电平,从而使得信号上升或下降速度较快,大大提高了信号传输速率。Since the first control circuit and the second control circuit are provided in the high-speed level conversion circuit of the embodiment of the present application, the level of the other port can be quickly pulled up and down, so that the signal rises or falls faster, which greatly improves the the signal transmission rate.
更进一步地,在本申请实施例中,所述第一控制电路包括上升沿检测电路和晶体管PM2;上升沿检测电路的输入端与单向电平转换电路的输出端相连,输出端连接晶体管PM2的栅极;晶体管PM2的源极与电源Vdd相连,晶体管PM2的漏极与另一端口相连。Further, in the embodiment of the present application, the first control circuit includes a rising edge detection circuit and a transistor PM2; the input end of the rising edge detection circuit is connected to the output end of the unidirectional level conversion circuit, and the output end is connected to the transistor PM2. The gate of the transistor PM2 is connected to the power supply Vdd, and the drain of the transistor PM2 is connected to another port.
更进一步地,在本申请实施例中,所述第二控制电路包括下降沿检测电路和晶体管NM2;下降沿检测电路的输入端与单向电平转换电路的输出端相连,输出端连接晶体管NM2的栅极;晶体管NM2的源极接地,晶体管NM2的漏极与另一端口相连。Further, in the embodiment of the present application, the second control circuit includes a falling edge detection circuit and a transistor NM2; the input end of the falling edge detection circuit is connected to the output end of the unidirectional level conversion circuit, and the output end is connected to the transistor NM2. The gate of the transistor NM2 is grounded, and the drain of the transistor NM2 is connected to another port.
在一些其他的实施例中,第一控制电路和第二控制电路也可以为其他的结构形式,只要能实现快速拉高和拉低另一端口电平的功能即可。In some other embodiments, the first control circuit and the second control circuit may also be in other structural forms, as long as the functions of quickly pulling up and pulling down the level of another port can be implemented.
参见图3所示,本申请实施例的上升沿检测电路包括依次相连的反相器INV1、与非门NAND1,所述反相器INV1的输入端与单向电平转换电路的输出端相连,所述与非门NAND1的两个输入端分别连接反相器INV1的输出端、以及单向电平转换电路的输出端,所述与非门NAND1的输出端连接晶体管PM2的栅极。Referring to FIG. 3 , the rising edge detection circuit of the embodiment of the present application includes an inverter INV1 and a NAND gate NAND1 connected in sequence, and the input end of the inverter INV1 is connected to the output end of the unidirectional level conversion circuit, The two input terminals of the NAND gate NAND1 are respectively connected to the output terminal of the inverter INV1 and the output terminal of the unidirectional level conversion circuit, and the output terminal of the NAND gate NAND1 is connected to the gate of the transistor PM2.
本申请实施例的下降沿检测电路包括依次相连的反相器INV2、或非门NOR1,所述反相器INV2的输入端与单向电平转换电路的输出端相连,所述或非门NOR1的两个输入端分别连接反相器INV2的输出端、以及单向电平转换电路的输出端,所述或非门NOR1的输出端连接晶体管NM2的栅极。The falling edge detection circuit of the embodiment of the present application includes an inverter INV2 and a NOR gate NOR1 connected in sequence, the input end of the inverter INV2 is connected to the output end of the unidirectional level conversion circuit, and the NOR gate NOR1 The two input terminals of the NOR gate are respectively connected to the output terminal of the inverter INV2 and the output terminal of the unidirectional level conversion circuit, and the output terminal of the NOR gate NOR1 is connected to the gate of the transistor NM2.
参见图4所示,具体地,在本申请实施例中,单向电平转换电路包括电源V1、电源V2、晶体管PM10、晶体管NM10、晶体管PM20、晶体管NM20、晶体管PM21和晶体管NM21,其中,晶体管PM10和NM10构成一个V1电源域的反相器,该反相器的输入端为单向电平转换电路的输入端,记为VI,该反相器的输出端为晶体管PM10和NM10的连接点位置,记为N10,晶体管NM20的栅极接VI,晶体管NM20的源极接地,晶体管NM20的漏极与晶体管PM20的漏极、晶体管PM21的栅极均相连,该连接点记为N20,晶体管NM21的栅极接N10,晶体管NM21的源极接地,晶体管NM21的漏极与晶体管PM21的漏极相连,并作为单向电平转换的输出端VO;晶体管PM20的栅极与VO相连,晶体管PM20的源极接电源V2;晶体管PM21的源极接电源V2。4 , specifically, in the embodiment of the present application, the unidirectional level conversion circuit includes a power supply V1, a power supply V2, a transistor PM10, a transistor NM10, a transistor PM20, a transistor NM20, a transistor PM21, and a transistor NM21, wherein the transistor PM10 and NM10 constitute an inverter in the power domain of V1. The input of the inverter is the input of the unidirectional level conversion circuit, denoted as VI, and the output of the inverter is the connection point of the transistors PM10 and NM10. The position is marked as N10, the gate of transistor NM20 is connected to VI, the source of transistor NM20 is grounded, the drain of transistor NM20 is connected to the drain of transistor PM20 and the gate of transistor PM21, the connection point is marked as N20, transistor NM21 The gate of the transistor NM21 is connected to N10, the source of the transistor NM21 is connected to the ground, the drain of the transistor NM21 is connected to the drain of the transistor PM21, and is used as the output terminal VO of unidirectional level conversion; the gate of the transistor PM20 is connected to VO, and the The source is connected to the power supply V2; the source of the transistor PM21 is connected to the power supply V2.
在本申请实施例中,单向电平转换电路输入的逻辑信号VI处于V1电源域,此电路将其转换并输出为处于V2电源域的逻辑信号VO。In the embodiment of the present application, the logic signal VI input by the unidirectional level conversion circuit is in the V1 power domain, and the circuit converts and outputs it as the logic signal VO in the V2 power domain.
本申请实施例的,单向电平转换电路的工作原理为:In the embodiment of the present application, the working principle of the unidirectional level conversion circuit is:
当VI为高电平,反相器输出N10为低电平。NM21关断,NM20导通,将N20拉低,PM21导通,VO被PM21拉到V2,即输出一个V2电源域的高电平。When VI is high, the inverter output N10 is low. NM21 is turned off, NM20 is turned on, N20 is pulled low, PM21 is turned on, VO is pulled to V2 by PM21, that is, a high level of the V2 power domain is output.
当VI为低电平,反相器输出N10为高电平。NM20关断,NM21导通,将VO拉低,PM20导通,N20被PM20拉到V2,PM21关断,VO稳定在低电平。When VI is low, the inverter output N10 is high. NM20 is turned off, NM21 is turned on, VO is pulled low, PM20 is turned on, N20 is pulled to V2 by PM20, PM21 is turned off, and VO is stable at a low level.
更进一步地,在本申请实施例中,所述第一转换支路还包括负载电容Cl,所述负载电容Cl一端与另一端口相连,所述负载电容Cl另一端接地。本申请实施例的负载电容Cl可以提高驱动负载的能力,使得该电平转换电路性能更优。Further, in the embodiment of the present application, the first conversion branch further includes a load capacitor C1, one end of the load capacitor C1 is connected to another port, and the other end of the load capacitor C1 is grounded. The load capacitor C1 in the embodiment of the present application can improve the capability of driving the load, so that the performance of the level conversion circuit is better.
参见图5所示,更进一步地,在本申请实施例中,电阻Rpu包括串联的电阻Rpub1和电阻Rpub2,所述转换单元还包括第三控制电路,所述第三控制电路与所述电阻Rpub2相连,所述第三控制电路用于根据转换后的电平信号调节电阻Rpub2的阻值。Referring to FIG. 5 , further, in the embodiment of the present application, the resistor Rpu includes a resistor Rpub1 and a resistor Rpub2 connected in series, and the conversion unit further includes a third control circuit, the third control circuit and the resistor Rpub2 connected, the third control circuit is configured to adjust the resistance value of the resistor Rpub2 according to the converted level signal.
本申请实施例的高速电平转换电路,由于还包括第三控制电路,可以根据转换后的电平信号调节Rpub2的阻值,从而可以使得当主导通信端口的电平由低变高时,减小Rpub2的阻值,以减小到Rpub2的阻值约等于0为宜,此时,总上拉电路的大小约等于电阻Rpub1的阻值;当主导通信端口的电平由高变低时,增大电阻Rpub2的阻值,此时,总上拉电路的大小约等于电阻Rpub1和电阻Rpub2的阻值之和,通过大的电阻Rpub2可以显著降低两个端口处于低电平状态时的静态电流,减小能量浪费,实现低功耗。因此,使得该高速电平转换电路,在提高信号传输速率的同时,也能实现低功耗,节约能量。Since the high-speed level conversion circuit of the embodiment of the present application further includes a third control circuit, the resistance value of Rpub2 can be adjusted according to the converted level signal, so that when the level of the dominant communication port changes from low to high, the resistance value of Rpub2 is reduced. It is advisable to reduce the resistance value of Rpub2 to a value of approximately 0 when the resistance value of Rpub2 is small. At this time, the size of the total pull-up circuit is approximately equal to the resistance value of the resistance Rpub1; when the level of the dominant communication port changes from high to low, Increase the resistance value of the resistor Rpub2. At this time, the size of the total pull-up circuit is approximately equal to the sum of the resistance values of the resistor Rpub1 and the resistor Rpub2. The large resistor Rpub2 can significantly reduce the static current when the two ports are in the low level state. , reduce energy waste and achieve low power consumption. Therefore, the high-speed level conversion circuit can achieve low power consumption and save energy while increasing the signal transmission rate.
优选地,在本申请实施例中,电阻Rpub2的阻值选取远大于电阻Rpub1的阻值,才能更好地降低功耗。通常,电阻Rpub1的阻值选取为5KΩ,电阻Rpub2的阻值为50KΩ。Preferably, in the embodiment of the present application, the resistance value of the resistor Rpub2 is selected to be much larger than the resistance value of the resistor Rpub1, so that the power consumption can be better reduced. Usually, the resistance value of the resistor Rpub1 is selected as 5KΩ, and the resistance value of the resistor Rpub2 is 50KΩ.
具体地,在本申请实施例中,所述第三控制电路包括复位/置位RS触发器和晶体管PM4,所述RS触发器的两个输入端分别连接上升沿检测电路的输出端、以及下降沿检测电路的输出端,所述RS触发器的输出端与晶体管PM4的栅极相连,所述晶体管PM4的源极和漏极连接在电阻Rpub2的两端。Specifically, in the embodiment of the present application, the third control circuit includes a reset/set RS flip-flop and a transistor PM4, and two input ends of the RS flip-flop are respectively connected to the output end of the rising edge detection circuit and the falling edge detection circuit. Along the output end of the detection circuit, the output end of the RS flip-flop is connected to the gate of the transistor PM4, and the source and drain of the transistor PM4 are connected to both ends of the resistor Rpub2.
本申请实施例的第三控制电路的工作原理为:The working principle of the third control circuit in the embodiment of the present application is as follows:
假设主导通信的一个端口为A端口,另一个端口为B端口;Assume that one port leading the communication is port A and the other port is port B;
所述RS触发器在A端口的电平由低到高时,RS触发器输出低电平,晶体管PM4导通,由于晶体管PM4的导通电阻很小,电阻Rpub2可以忽略,此时,总上拉电路的大小约等于电阻Rpub1的阻值,一般在5KΩ左右;When the level of the RS trigger at port A changes from low to high, the RS trigger outputs a low level, and the transistor PM4 is turned on. Since the on-resistance of the transistor PM4 is very small, the resistance Rpub2 can be ignored. At this time, the total The size of the pull circuit is approximately equal to the resistance value of the resistor Rpub1, generally around 5KΩ;
所述RS触发器在A端口的电平由高到低时,RS触发器输出高电平,晶体管PM4截止,此时,总上拉电路的大小约等于电阻Rpub1的阻值与电阻Rpub2的阻值之和,即55KΩ左右,这么大的电阻可以显著降低两个端口处于低电平状态下的静态电流,减少能量浪费,实现低功耗;When the level of the RS flip-flop changes from high to low at the A port, the RS flip-flop outputs a high level, and the transistor PM4 is turned off. At this time, the size of the total pull-up circuit is approximately equal to the resistance of the resistor Rpub1 and the resistance of the resistor Rpub2. The sum of the value, that is, about 55KΩ, such a large resistance can significantly reduce the quiescent current of the two ports in a low-level state, reduce energy waste, and achieve low power consumption;
同时,在A端口的电平由高到低时,电流会从电阻Rpub1、电阻Rpub2、晶体管NM0和A端口流到地,B端口的电平为电阻Rpub1与电阻Rpub2之和、晶体管NM0的内阻和A端口连接的驱动电路内阻之间的分压,由于电阻Rpub1与电阻Rpub2之和比电阻Rpub1大很多,从而可以保证B端口的低电平足够低,不会导致低电平逻辑判断错误,电路可靠性更高。At the same time, when the level of the A port changes from high to low, the current will flow from the resistor Rpub1, the resistor Rpub2, the transistor NM0 and the A port to the ground, and the level of the B port is the sum of the resistor Rpub1 and the resistor Rpub2, and the inside of the transistor NM0. The voltage divider between the resistance and the internal resistance of the driving circuit connected to the A port, since the sum of the resistance Rpub1 and the resistance Rpub2 is much larger than the resistance Rpub1, it can ensure that the low level of the B port is low enough and will not lead to a low level logic judgment. error, the circuit reliability is higher.
作为一种更好地实施方式,所述RS触发器的具体方式为:所述RS触发器的复位输入端Reset与上升沿检测电路的输出端相连,所述RS触发器的置位输入端Set与下降沿检测电路的输出端相连,且所述RS触发器的原端Q与晶体管PM4的栅极相连。As a better implementation manner, the specific manner of the RS flip-flop is as follows: the reset input terminal Reset of the RS flip-flop is connected to the output terminal of the rising edge detection circuit, and the set input terminal Set of the RS flip-flop is connected. It is connected to the output end of the falling edge detection circuit, and the primary end Q of the RS flip-flop is connected to the gate of the transistor PM4.
本申请实施例中,第一控制电路、第二控制电路和第三控制电路在实现各自单独的功能之外,也紧密相连,使得本申请的高速电平转换电路结构设计更为巧妙,结构更为紧凑。In the embodiment of the present application, the first control circuit, the second control circuit and the third control circuit are closely connected in addition to realizing their respective independent functions, which makes the structure design of the high-speed level conversion circuit of the present application more ingenious and the structure more compact. to be compact.
优选地,在本申请实施例中,晶体管PM2和晶体管PM4为PMOS管,晶体管NM2为NMOS管。Preferably, in the embodiment of the present application, the transistor PM2 and the transistor PM4 are PMOS transistors, and the transistor NM2 is an NMOS transistor.
参见图6所示,本申请实施例提供了第一种具有两个转换单元的高速电平转换电路,其包括两个转换单元,每个端口连接一个转换单元的输入端、以及另一个转换单元的输出端。Referring to FIG. 6 , an embodiment of the present application provides a first high-speed level conversion circuit with two conversion units, which includes two conversion units, and each port is connected to an input end of one conversion unit and another conversion unit 's output.
在本申请实施例中,两个转换单元分别为第一转换单元和第二转换单元,第一转换单元用于当A端口为主导通信的端口时进行电平转换,第二转换单元用于当B端口为主导通信的端口时进行电平转换。In this embodiment of the present application, the two conversion units are a first conversion unit and a second conversion unit, respectively. The first conversion unit is used to perform level conversion when the A port is the main communication port, and the second conversion unit is used to perform level conversion when the port A is the main communication port. Level conversion is performed when the B port is the port that dominates the communication.
更为具体地,在本申请实施例中,两个转换单元均包括第一转换支路、第一控制电路、第二控制电路以及单向电平转换电路。More specifically, in the embodiment of the present application, both conversion units include a first conversion branch, a first control circuit, a second control circuit, and a unidirectional level conversion circuit.
在第一转换单元中,第一转换支路包括电源Vddb、电阻Rpub、负载电容Clb、晶体管NM0,所述电源Vddb依次经过串联的电阻Rpub和负载电容Clb后接地,所述晶体管NM0的栅极连接偏置电压Vbias,所述晶体管NM0的源极连接A端口,所述晶体管NM0的漏极连接在电阻Rpub和负载电容Clb之间,且所述电阻Rpub和负载电容Clb的连接点连接B端口。In the first conversion unit, the first conversion branch includes a power supply Vddb, a resistor Rpub, a load capacitor Clb, and a transistor NM0. The power supply Vddb is grounded after passing through the series-connected resistor Rpub and the load capacitor Clb in sequence, and the gate of the transistor NM0 is grounded. The bias voltage Vbias is connected, the source of the transistor NM0 is connected to the A port, the drain of the transistor NM0 is connected between the resistor Rpub and the load capacitor Clb, and the connection point of the resistor Rpub and the load capacitor Clb is connected to the B port .
在第一转换单元中,单向电平转换电路,其一端与A端口相连,另一端与第一控制电路的输入端、以及第二控制电路的输入端相连。第一控制电路包括上升沿检测电路和晶体管PM2;上升沿检测电路的输入端与单向电平转换电路的输出端相连,其输出端连接晶体管PM2的栅极;晶体管PM2的源极与电源Vddb相连,晶体管PM2的漏极与另一端口相连。第二控制电路包括下降沿检测电路和晶体管NM2;下降沿检测电路的输入端与单向电平转换电路的输出端相连,其输出端连接晶体管NM2的栅极;晶体管NM2的源极接地,晶体管NM2的漏极与另一端口相连。In the first conversion unit, one end of the unidirectional level conversion circuit is connected to the A port, and the other end is connected to the input end of the first control circuit and the input end of the second control circuit. The first control circuit includes a rising edge detection circuit and a transistor PM2; the input end of the rising edge detection circuit is connected to the output end of the unidirectional level conversion circuit, and the output end is connected to the gate of the transistor PM2; the source electrode of the transistor PM2 is connected to the power supply Vddb connected, the drain of the transistor PM2 is connected to the other port. The second control circuit includes a falling edge detection circuit and a transistor NM2; the input end of the falling edge detection circuit is connected to the output end of the unidirectional level conversion circuit, and its output end is connected to the gate of the transistor NM2; the source of the transistor NM2 is grounded, and the transistor The drain of NM2 is connected to another port.
同理,第二转换单元包括电源Vdda、晶体管PM1、晶体管NM1和电阻Rpua、电容Cla等,第二转换单元的结构及原理过程如第一转换单元,在此不再赘述。Similarly, the second conversion unit includes a power supply Vdda, a transistor PM1, a transistor NM1, a resistor Rpua, a capacitor Cla, etc. The structure and principle process of the second conversion unit are the same as those of the first conversion unit, which will not be repeated here.
需要说明的是,为了使电路结构更加简单,第一转换单元和第二转换单元共用一个晶体管NM0即可。并且,本申请实施例中的电阻Rpua和电阻Rpub的阻值相当于现有技术中常用的电阻Rpua1或Rpua2的阻值,通常为5KΩ。本申请实施例提供的第一种具有两个转换单元的高速电平转换电路,一方面,由于包括第一控制电路和第二控制电路,可以提高信号传输速率,即实现高速电平转换,另一方面,由于包括两个转换单元,可以实现双向电平转换,同时适用于A端口为主导通信、B端口为主导通信的情况;因此,本申请提供的第一种具有两个转换单元的高速电平转换电路,可以同时实现高速、双向转换的功能。It should be noted that, in order to make the circuit structure simpler, the first conversion unit and the second conversion unit only need to share one transistor NM0. In addition, the resistance values of the resistor Rpua and the resistor Rpub in the embodiments of the present application are equivalent to the resistance values of the resistors Rpua1 or Rpua2 commonly used in the prior art, and are usually 5KΩ. The first high-speed level conversion circuit with two conversion units provided by the embodiments of the present application. On the one hand, since the first control circuit and the second control circuit are included, the signal transmission rate can be improved, that is, high-speed level conversion can be realized, and the other is On the one hand, because two conversion units are included, bidirectional level conversion can be realized, and it is applicable to the situation where the A port is the dominant communication and the B port is the dominant communication; The level conversion circuit can realize high-speed and bidirectional conversion functions at the same time.
参见图7所示,本申请实施例提供给了第二种具有两个转换单元的高速电平转换电路,其包括两个转换单元,每个端口连接一个转换单元的输入端、以及另一个转换单元的输出端。Referring to FIG. 7 , the embodiment of the present application provides a second type of high-speed level conversion circuit with two conversion units, which includes two conversion units, each port is connected to the input end of one conversion unit, and another conversion unit output of the unit.
在本申请实施例中,两个转换单元分别为第一转换单元和第二转换单元,第一转换单元用于当A端口为主导通信的端口时进行电平转换,第二转换单元用于当B端口为主导通信的端口时进行电平转换。In this embodiment of the present application, the two conversion units are a first conversion unit and a second conversion unit, respectively. The first conversion unit is used to perform level conversion when the A port is the main communication port, and the second conversion unit is used to perform level conversion when the port A is the main communication port. Level conversion is performed when the B port is the port that dominates the communication.
更为具体地,在本申请实施例中,两个转换单元均包括第一转换支路、第一控制电路、第二控制电路、第三控制电路以及单向电平转换电路。More specifically, in the embodiment of the present application, both conversion units include a first conversion branch, a first control circuit, a second control circuit, a third control circuit, and a unidirectional level conversion circuit.
在第一转换单元中,第一转换支路包括电源Vddb、电阻Rpub、负载电容Clb、晶体管NM0,所述电源Vddb依次经过串联的电阻Rpub和负载电容Clb后接地,所述晶体管NM0的栅极连接偏置电压,所述晶体管NM0的源极连接A端口,所述晶体管NM0的漏极连接在电阻Rpub和负载电容Clb之间,且所述电阻Rpub和负载电容Clb的连接点连接B端口。In the first conversion unit, the first conversion branch includes a power supply Vddb, a resistor Rpub, a load capacitor Clb, and a transistor NM0. The power supply Vddb is grounded after passing through the series-connected resistor Rpub and the load capacitor Clb in sequence, and the gate of the transistor NM0 is grounded. The bias voltage is connected, the source of the transistor NM0 is connected to the A port, the drain of the transistor NM0 is connected between the resistor Rpub and the load capacitor Clb, and the connection point of the resistor Rpub and the load capacitor Clb is connected to the B port.
在第一转换单元中,电阻Rpub包括串联的电阻Rpub1和电阻Rpub2,应该理解的是,电阻Rpub1的阻值相当于现有技术中常用的电阻Rpua1或Rpua2的阻值,通常为5KΩ,电阻Rpub2为新增的电阻,阻值通常为50KΩ,电阻Rpub2的阻值远大于Rpub1的阻值。In the first conversion unit, the resistor Rpub includes a resistor Rpub1 and a resistor Rpub2 connected in series. It should be understood that the resistance value of the resistor Rpub1 is equivalent to the resistance value of the resistor Rpua1 or Rpua2 commonly used in the prior art, usually 5KΩ, and the resistor Rpub2 For the newly added resistor, the resistance value is usually 50KΩ, and the resistance value of the resistor Rpub2 is much larger than the resistance value of the Rpub1.
在第一转换单元中,单向电平转换电路,其一端与A端口相连,另一端与第一控制电路的输入端、以及第二控制电路的输入端相连。第一控制电路包括上升沿检测电路和晶体管PM2;上升沿检测电路的输入端与单向电平转换电路的输出端相连,其输出端连接晶体管PM2的栅极;晶体管PM2的源极与电源Vddb相连,晶体管PM2的漏极与另一端口相连。第二控制电路包括下降沿检测电路和晶体管NM2;下降沿检测电路的输入端与单向电平转换电路的输出端相连,其输出端连接晶体管NM2的栅极;晶体管NM2的源极接地,晶体管NM2的漏极与另一端口相连。In the first conversion unit, one end of the unidirectional level conversion circuit is connected to the A port, and the other end is connected to the input end of the first control circuit and the input end of the second control circuit. The first control circuit includes a rising edge detection circuit and a transistor PM2; the input end of the rising edge detection circuit is connected to the output end of the unidirectional level conversion circuit, and the output end is connected to the gate of the transistor PM2; the source electrode of the transistor PM2 is connected to the power supply Vddb connected, the drain of the transistor PM2 is connected to the other port. The second control circuit includes a falling edge detection circuit and a transistor NM2; the input end of the falling edge detection circuit is connected to the output end of the unidirectional level conversion circuit, and its output end is connected to the gate of the transistor NM2; the source of the transistor NM2 is grounded, and the transistor The drain of NM2 is connected to another port.
在第一转换单元中,所述第三控制电路包括复位/置位RS触发器和晶体管PM4,所述RS触发器的复位输入端Reset与上升沿检测电路的输出端相连,所述RS触发器的置位输入端Set与下降沿检测电路的输出端相连,且所述RS触发器的原端Q与晶体管PM4的栅极相连,所述晶体管PM4的源极和漏极连接在电阻Rpub2的两端。In the first conversion unit, the third control circuit includes a reset/set RS flip-flop and a transistor PM4, the reset input terminal Reset of the RS flip-flop is connected to the output terminal of the rising edge detection circuit, and the RS flip-flop The set input terminal Set is connected to the output terminal of the falling edge detection circuit, and the primary terminal Q of the RS flip-flop is connected to the gate of the transistor PM4, and the source and drain of the transistor PM4 are connected to the two terminals of the resistor Rpub2. end.
同理,第二转换单元包括电源Vdda、晶体管PM1、晶体管NM1、电阻Rpua1、电阻Rpua2、电容Cla等,第二转换单元的结构及原理过程如第一转换单元,在此不再赘述。Similarly, the second conversion unit includes a power supply Vdda, a transistor PM1, a transistor NM1, a resistor Rpua1, a resistor Rpua2, a capacitor Cla, etc. The structure and principle process of the second conversion unit are the same as those of the first conversion unit, which will not be repeated here.
当A端口主导通信时,第二种具有两个转换单元的高速电平转换电路中主要信号的波形图如图8所示,其中,A信号为A端口的电平,S2信号为第一转换单元的单向电平转换电路的输出信号,SP2信号为第一转换单元的上升沿检测电路的输出信号,SN2信号为第一转换单元的下降沿检测电路的输出信号,SR2为第一转换单元的RS触发器Q端的输出信号,B信号为B端口的电平信号。When the A port dominates the communication, the waveform diagram of the main signals in the second type of high-speed level conversion circuit with two conversion units is shown in Figure 8, where the A signal is the level of the A port, and the S2 signal is the first conversion The output signal of the unidirectional level conversion circuit of the unit, the SP2 signal is the output signal of the rising edge detection circuit of the first conversion unit, the SN2 signal is the output signal of the falling edge detection circuit of the first conversion unit, and the SR2 signal is the first conversion unit. The output signal of the Q terminal of the RS flip-flop, and the B signal is the level signal of the B port.
参见图8可知,当A端口的电平由低到高时,S2信号也由低到高,S2信号的上升沿被检测到,并输出SP2信号,SP2信号保持时间tp的逻辑低后,自动返回高电平,时间tp的长短由上升沿检测电路中的反相器INV1的门延迟来决定。在tp时间内,PM2开启,电源Vddb对B端口充电,使B端口的电平信号快速提升,即B信号变高。Referring to Figure 8, it can be seen that when the level of port A changes from low to high, the S2 signal also changes from low to high, the rising edge of the S2 signal is detected, and the SP2 signal is output. Return to high level, the length of time tp is determined by the gate delay of the inverter INV1 in the rising edge detection circuit. During the tp time, PM2 is turned on, and the power supply Vddb charges the B port, so that the level signal of the B port increases rapidly, that is, the B signal becomes high.
tp时间后,PM2关闭,电源Vddb通过电阻Rpub1和电阻Rpub2来维持B端口的高电平状态。After the tp time, PM2 is turned off, and the power supply Vddb maintains the high-level state of the B port through the resistor Rpub1 and the resistor Rpub2.
SP2信号变低后,使RS触发器的输出信号SR2信号也变低,PM4导通,此时,总上拉电阻的大小约等于电阻Rpub1的阻值,即约为5KΩ。After the SP2 signal becomes low, the output signal SR2 of the RS flip-flop also becomes low, and PM4 is turned on. At this time, the size of the total pull-up resistor is approximately equal to the resistance value of the resistor Rpub1, which is approximately 5KΩ.
当经过一段时间后,A端口的电平信号由高到低,S2信号也由高到低,S2的下降沿被检测到,并输出SN2信号,SN2信号保持时间tn的逻辑高后,自动返回低电平,时间tn的长短由下降沿检测电路中的反相器INV2的门延迟来决定。在tn时间内,NM2开启,B端口对地放电,使得B端口的电平快速变低,即B信号变低。After a period of time, the level signal of port A changes from high to low, and the S2 signal also changes from high to low. The falling edge of S2 is detected, and the SN2 signal is output. After the SN2 signal maintains the logic high of the time tn, it returns automatically. Low level, the length of time tn is determined by the gate delay of the inverter INV2 in the falling edge detection circuit. During the tn time, NM2 is turned on, and the B port is discharged to the ground, so that the level of the B port quickly becomes low, that is, the B signal becomes low.
tn时间后,NM2关闭,A端口的低电平通过NM0来维持B端口的低电平状态。After tn time, NM2 is turned off, and the low level of port A is maintained at the low level of port B through NM0.
SN2变高后,使RS触发器的输出信号SR2信号也变高,PM4截止,此时,总上拉电阻的大小约等于电阻Rpub1和电阻Rpub2之和,即约55KΩ,这么大的电阻可以显著减低低电平状态下的静态电流,并且,也可以保证B端口的电平足够低,不会导致低电平逻辑判断错误。After SN2 becomes high, the output signal SR2 of the RS flip-flop also becomes high, and PM4 is turned off. At this time, the size of the total pull-up resistor is approximately equal to the sum of the resistors Rpub1 and Rpub2, that is, about 55KΩ, such a large resistance can significantly The quiescent current in the low-level state is reduced, and it can also ensure that the level of the B port is low enough to not cause a low-level logic judgment error.
当B端口主导通信时,第二种具有两个转换单元的高速电平转换电路中主要信号的波形图如图9所示,其中,B信号为B端口的电平信号,S1信号为第二转换单元的单向电平转换电路的输出信号,SP1信号为第二转换单元的上升沿检测电路的输出信号,SN1信号为第二转换单元的下降沿检测电路的输出信号,SR1为第二转换单元的RS触发器Q端的输出信号,A信号为A端口的电平。When the B port dominates the communication, the waveform diagram of the main signals in the second type of high-speed level conversion circuit with two conversion units is shown in Figure 9, where the B signal is the level signal of the B port, and the S1 signal is the second The output signal of the unidirectional level conversion circuit of the conversion unit, the SP1 signal is the output signal of the rising edge detection circuit of the second conversion unit, the SN1 signal is the output signal of the falling edge detection circuit of the second conversion unit, and SR1 is the second conversion unit. The output signal of the Q terminal of the RS flip-flop of the unit, the A signal is the level of the A port.
当B端口主导通信时,原理过程与A端口主导通信的原理类似,其实现过程在此不再赘述。When the B port dominates the communication, the principle process is similar to the principle of the A port leading the communication, and the implementation process is not repeated here.
需要说明的是,在本申请实施例中,第一控制电路用于在预设的时间内快速拉高另一端口的电平,第一控制电路的预设的时间为时间tp,时间tp的长短由上升沿检测电路中的反相器INV1的门延迟来决定。在其他的实施方式中,也可以根据第一控制电路的不同结构来进行设定即可。It should be noted that, in this embodiment of the present application, the first control circuit is used to quickly pull up the level of another port within a preset time, and the preset time of the first control circuit is time tp, and the The length is determined by the gate delay of the inverter INV1 in the rising edge detection circuit. In other embodiments, it may be set according to different configurations of the first control circuit.
第二控制电路用于在预设的时间内快速拉低另一端口的电平,第二控制电路的预设的时间为时间tn,时间tn的长短由下降沿检测电路中的反相器INV2的门延迟来决定。在其他的实施方式中,也可以根据第二控制电路的不同结构来进行设定即可。The second control circuit is used to quickly pull down the level of the other port within a preset time, the preset time of the second control circuit is time tn, and the length of time tn is determined by the inverter INV2 in the falling edge detection circuit is determined by the gate delay. In other embodiments, it may be set according to different configurations of the second control circuit.
本申请实施例提供的第二种具有两个转换单元的高速电平转换电路,一方面,由于包括第一控制电路和第二控制电路,可以提高信号传输速率,即实现高速电平转换,另一方面,由于新增了大的电阻Rpub2,显著降低了两个端口处于低电平状态下的静态电流,即实现低功耗电平转换;再者,由于包括两个转换单元,可以实现双向电平转换,同时适用于A端口为主导通信、B端口为主导通信的情况;因此,本申请提供的第二种具有两个转换单元的高速电平转换电路,可以同时实现高速、低功耗、双向转换的功能。The second kind of high-speed level conversion circuit with two conversion units provided by the embodiment of the present application, on the one hand, since the first control circuit and the second control circuit are included, the signal transmission rate can be improved, that is, high-speed level conversion can be realized, and the other is On the one hand, due to the addition of a large resistance Rpub2, the quiescent current of the two ports in the low-level state is significantly reduced, that is, low-power level conversion is realized; on the other hand, due to the inclusion of two conversion units, bidirectional current can be realized. Level conversion is also applicable to the case where the A port is the dominant communication and the B port is the dominant communication; therefore, the second high-speed level conversion circuit with two conversion units provided by this application can achieve high speed and low power consumption at the same time. , Two-way conversion function.
经测试,与图1现有技术的双向电平转换电路相比,图1中的双向电平转换电路只能实现1Mbps的速率,而本申请实施例的高速电平转换电路,提升后的信号传输速率可以达到60Mbps以上,改善了信号质量,而且还降低了系统功耗。After testing, compared with the bidirectional level conversion circuit of the prior art in FIG. 1 , the bidirectional level conversion circuit in FIG. 1 can only achieve a rate of 1 Mbps, while the high-speed level conversion circuit of the embodiment of the present application, the increased signal The transmission rate can reach more than 60Mbps, which improves the signal quality and reduces the system power consumption.
在本申请的描述中,需要说明的是,术语“上”、“下”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In the description of the application, it should be noted that the orientation or positional relationship indicated by the terms "upper" and "lower" is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the application and simplifying the description, It is not intended to indicate or imply that the device or element referred to must have a particular orientation, be constructed and operate in a particular orientation, and therefore should not be construed as limiting the application. Unless otherwise expressly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection, It can also be an electrical connection; it can be a direct connection, an indirect connection through an intermediate medium, or an internal connection between two components. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific situations.
需要说明的是,在本申请中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this application, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply Any such actual relationship or sequence exists between these entities or operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
以上所述仅是本申请的具体实施方式,使本领域技术人员能够理解或实现本申请。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific embodiments of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, this application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010570622.3A CN111669168A (en) | 2020-06-18 | 2020-06-18 | A high-speed level conversion circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010570622.3A CN111669168A (en) | 2020-06-18 | 2020-06-18 | A high-speed level conversion circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111669168A true CN111669168A (en) | 2020-09-15 |
Family
ID=72389014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010570622.3A Pending CN111669168A (en) | 2020-06-18 | 2020-06-18 | A high-speed level conversion circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111669168A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118074702A (en) * | 2024-04-24 | 2024-05-24 | 瓴科微(上海)集成电路有限责任公司 | Edge detection acceleration level conversion circuit |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030080891A1 (en) * | 2001-11-01 | 2003-05-01 | Hideo Nagano | Resistance changeable device for data transmission system |
US20030132794A1 (en) * | 2001-12-21 | 2003-07-17 | Hiroshi Watanabe | Level conversion circuit |
US20030160630A1 (en) * | 2002-02-27 | 2003-08-28 | Adrian Earle | Bidirectional edge accelerator circuit |
US20080164932A1 (en) * | 2007-01-10 | 2008-07-10 | Texas Instruments Incorporated | Semi-buffered auto-direction-sensing voltage translator |
US20110140750A1 (en) * | 2009-12-10 | 2011-06-16 | Advantest Corporation | Level shifter using sr-flip flop |
US20140354342A1 (en) * | 2013-05-29 | 2014-12-04 | Silanna Semiconductor U.S.A., Inc. | Compact Level Shifter |
US10566975B1 (en) * | 2019-05-14 | 2020-02-18 | Nxp B.V. | Level translator for SPMI bus |
US20200099285A1 (en) * | 2018-09-25 | 2020-03-26 | Fuji Electric Co., Ltd. | Driver circuit |
-
2020
- 2020-06-18 CN CN202010570622.3A patent/CN111669168A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030080891A1 (en) * | 2001-11-01 | 2003-05-01 | Hideo Nagano | Resistance changeable device for data transmission system |
US20030132794A1 (en) * | 2001-12-21 | 2003-07-17 | Hiroshi Watanabe | Level conversion circuit |
US20030160630A1 (en) * | 2002-02-27 | 2003-08-28 | Adrian Earle | Bidirectional edge accelerator circuit |
US20080164932A1 (en) * | 2007-01-10 | 2008-07-10 | Texas Instruments Incorporated | Semi-buffered auto-direction-sensing voltage translator |
US20110140750A1 (en) * | 2009-12-10 | 2011-06-16 | Advantest Corporation | Level shifter using sr-flip flop |
US20140354342A1 (en) * | 2013-05-29 | 2014-12-04 | Silanna Semiconductor U.S.A., Inc. | Compact Level Shifter |
US20200099285A1 (en) * | 2018-09-25 | 2020-03-26 | Fuji Electric Co., Ltd. | Driver circuit |
US10566975B1 (en) * | 2019-05-14 | 2020-02-18 | Nxp B.V. | Level translator for SPMI bus |
Non-Patent Citations (2)
Title |
---|
孙肖子: "《电子设计指南》", 31 January 2006, 高等教育出版社 * |
邢传玺: "《嵌入式系统应用实践开发》", 30 April 2019 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118074702A (en) * | 2024-04-24 | 2024-05-24 | 瓴科微(上海)集成电路有限责任公司 | Edge detection acceleration level conversion circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103259409B (en) | Voltage conversion circuit | |
US7061299B2 (en) | Bidirectional level shifter | |
EP2241009B1 (en) | Low-swing cmos input circuit | |
JPS59108426A (en) | Coupling intermediate circuit | |
CN103066989B (en) | Single power electric level shift circuit with digital filtering function | |
CN112564689B (en) | Multi-protocol IO multiplexing circuit | |
TWI792232B (en) | Duty cycle correction circuit and method thereof | |
US7868666B2 (en) | Low-quiescent-current buffer | |
WO2020164434A1 (en) | Bidirectional level conversion circuit and bidirectional level conversion chip | |
JP2002198791A (en) | Output driver for integrated circuits using voltages other than the supply voltage | |
CN107404315B (en) | Level shifter | |
CN104467796A (en) | Slew-rate-limited driver | |
CN103117740B (en) | Low-power-consumptiolevel level shift circuit | |
CN111669168A (en) | A high-speed level conversion circuit | |
CN111106822A (en) | A power supply module | |
US11979155B2 (en) | Semiconductor integrated circuit device and level shifter circuit | |
CN113726330B (en) | A level conversion circuit and chip | |
CN117728820A (en) | A level converter and integrated circuit system | |
CN111277261A (en) | A level conversion circuit | |
CN114006614B (en) | Hot plug structure based on NMOS pull-up driver | |
JP3779509B2 (en) | Output circuit of semiconductor integrated circuit | |
CN106788493A (en) | A kind of low speed transmitter circuit | |
CN107437894A (en) | overvoltage protection device | |
CN109213253A (en) | A kind of quick High Precision Low Temperature drift strong pull-down current generating circuit | |
CN216625713U (en) | Bidirectional level conversion circuit |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200915 |