This application is based upon and claims priority to Chinese Patent Application No. 202110747698.3 filed on Jul. 1, 2021, the entire contents of which are incorporated herein by reference.
The present invention relates to the field of circuits, and in particular, to a level conversion circuit and an electronic device.
During digital signal communication between a receiver and a transmitter, a mismatch of logic high levels between the receiver and the transmitter often occurs, so that it is necessary to use a logic level conversion circuit (i.e., a level conversion circuit). However, a large number of devices that use level conversion circuits are often mobile phones or wearable devices that require the smallest possible circuit board area.
In the prior art, a level conversion circuit is to be connected with a plurality of pins, including an enabling pin, a ground pin, two input/output pins (i.e., IO pins) and two reference high level pins, so that when the input/output pins need to be pulled to a high level, the two input/output pins can be pulled to a corresponding high level by voltages of the two reference high level pins.
It is thus learned that in the solution, six pins are required, which in turn leads to problems such as large chip area and high costs.
The present invention provides a level conversion circuit and an electronic device to solve the problems of large chip area and high costs.
According to a first aspect, the present invention provides a level conversion circuit, including a first pin, a second pin, a target pin, a core module and a switch;
The first reference high level is higher than the second reference high level; and at the specified voltage amplitude, a voltage of the signal transmitted through the switch is not higher than the first reference high level and the second reference high level.
Optionally, the core module is further configured to:
Optionally, the core module includes a first voltage regulating unit and an enabling control unit;
Optionally, the first voltage regulating unit is a low dropout regulator (LDO).
Optionally, the core module further includes a second voltage regulating unit, a first side of the second voltage regulating unit is connected to the target pin, and a second side of the second voltage regulating unit is connected to the second pin directly or indirectly;
Optionally, the core module further includes a first short-circuit pull-up unit disposed between the target pin and the first pin, and a second short-circuit pull-up unit disposed between the second side of the second voltage regulating unit and the second pin.
Optionally, the second voltage regulating unit is a low dropout regulator (LDO).
Optionally, the level conversion circuit is arranged on the same chip.
Optionally, the chip is further provided with a ground pin.
According to a second aspect, the present invention provides an electronic device, including the level conversion circuit according to the first aspect and optional solutions thereof.
According to the level conversion circuit and the electronic device provided in the present invention, because the core module can pull the first pin to the first reference high level and the second pin to the second reference high level based on the first reference high level when the voltage connected to the target pin is at the first reference high level, the first reference high level and the second reference high level are high levels of different voltages. Therefore, based on access of the target pin to the first reference high level and cooperation of the core module, the target pin can implement both functions of an enabling pin and reference high level pins in the prior art, that is, the switch is enabled and two reference high levels are provided. It is thus learned that the number of pins used by the level conversion circuit is reduced by two and a circuit structure is simplified in the present invention, thereby reducing area and costs of the circuit and the chip, and saving internal space of the electronic device.
In order to explain the technical solutions in the embodiments of the present invention or in the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
The following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are merely some but not all of embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the protection scope of the present invention.
In the specification, claims and accompanying drawings of the present invention, the terms “first”, “second”, “third”, “fourth” and so on (if any) are intended to distinguish between similar objects but do not necessarily indicate a specific order or sequence. It should be understood that the terms so used may be interchanged where appropriate, so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. Furthermore, the terms “comprise” and “include” and any variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, system, product or apparatus that comprises a list of steps or units does not include only those steps or units, but may include other steps or units not explicitly listed or inherent to such process, method, product or apparatus.
The technical solutions of the present invention will be described in detail with reference to specific embodiments below. The following specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Referring to
In the embodiment of the present invention, the level conversion circuit includes a first pin 1, a second pin 2, a target pin 4, a core module 3 and a switch 5.
A first terminal of the switch 5 is connected to the first pin 1, a second terminal of the switch 5 is connected to the second pin 2, and the core module 3 is connected to the target pin 4, the second pin 2 and a control terminal of the switch 5 respectively.
The switch 5 may be any device that can be controlled to turn on or off, such as a transistor, specifically a triode or a field-effect transistor. Therefore, the control terminal of the switch 5 may be, for example, a base or a gate. In the solution shown in
In a further example, the switch 5 may have a threshold voltage Vth, which can be specifically understood as a gate-to-source threshold voltage that enables the switch to turn on.
The first pin 1 and the second pin 2 can be any pins for digital signal transmission. In the level conversion circuit, a high level voltage transmitted by the second pin is lower than a high level transmitted by the first pin. In an example shown in
The target pin 4 can be any pin capable of transmitting an electrical signal. In the example shown in
In the embodiment of the present invention, the core module 3 is configured to:
The core module 3 provides two voltages (i.e., the first reference high level and the second reference high level) respectively based on the same voltage (i.e., the first reference high level), and thus, no matter how the pin is pulled to a reference high level, the voltages are not out of the scope of the embodiment of the present invention. Because the first reference high level is higher than the second reference high level, step-down voltage regulation will be implemented in the core module 3.
In the above solution, based on access of the target pin to the first reference high level and cooperation of the core module, the target pin can implement both functions of an enabling pin and reference high level pins in the prior art, that is, the switch is enabled and two reference high levels are provided. It is thus clear that the number of pins used by the level conversion circuit is reduced by two and a circuit structure is simplified in the embodiment of the present invention, thereby reducing area and costs of the circuit and the chip, and saving internal space of the electronic device.
Furthermore, the core module 3 may be further configured to:
The ground level can also be understood as a ground voltage, specifically a ground potential of a chip of a logic conversion circuit (e.g., 0 V), but is not limited thereto.
In one of the implementations, to achieve step-down regulation, the core module 3 may include a first voltage regulating unit 31 and an enabling control unit 32.
A first side of the first voltage regulating unit 31 is connected to the target pin 4, a second side of the first voltage regulating unit 31 is connected to a first side of the enabling control unit 32, a second side of the enabling control unit 32 is connected to the control terminal of the switch 5, and the target pin 4 is also connected to the first pin 1 and the second pin 2 directly or indirectly. In an example shown in
When the voltage connected to the target pin is at the first reference high level, a voltage at the first side of the first voltage regulating unit is at the first reference high level, and a voltage at the second side of the first voltage regulating unit is not lower than the second reference high level and not higher than the sum of the second reference high level and a threshold voltage of the switch.
The enabling control unit 32 is configured to:
For example, when the voltage connected to the target pin is at the first reference high level, then:
The enabling control unit 32 can be understood as a circuit unit capable of controlling on-off of the switch based on received external signals. In a further solution, the enabling control unit 32 may also have a function of automatically turning off the switch in case of overtemperature.
The first voltage regulating unit may be capable of regulating voltages, which can be achieved by linear voltage regulation, or achieved by switching a power supply or combining with a voltage divider resistor. In a specific solution, the first voltage regulating unit 31 may be a low dropout regulator (LDO). A voltage at the first side, a voltage at the second side, and the dropout between the voltage at the first side and the voltage at the second side can be preset as required. Furthermore, the voltage at the second side of the first voltage regulating unit 31 can be preset to match circuits shown in
Specifically, in the circuit shown in
The selection of the above values can also be applied to the circuits shown in
In the circuits shown in
When the voltage connected to the target pin is at the first reference high level, a voltage at the first side of the second voltage regulating unit is at the first reference high level, and a voltage at the second side of the second voltage regulating unit is at the second reference high level.
The second voltage regulating unit 33 may be capable of regulating voltages, which can be achieved by linear voltage regulation, or achieved by switching a power supply or combining with a voltage divider resistor. In a specific solution, the second voltage regulating unit 33 may be a low dropout regulator (LDO). A voltage at the first side, a voltage at the second side, and the dropout between the voltage at the first side and the voltage at the second side can be preset as required.
Specifically, in the circuits shown in
In one of the implementations, referring to
The short-circuit pull-up unit can be understood as any circuit unit capable of pulling a pin to a corresponding potential by short-circuiting a corresponding circuit position, for example, the first short-circuit pull-up unit can pull up the first pin to a voltage (e.g., the first reference high level) of the target pin, and the second short-circuit pull-up unit can pull up the second pin to a voltage at an output side of the second voltage regulating unit.
In a further solution, a short-circuit pull-up unit can achieve instantaneous short-circuit, and thus, the short-circuit pull-up unit can also be understood as an instantaneous short-circuit pull-up unit. During pull-up, the pull-up can be achieved based on a pull-up resistor, for example, pull-up can be achieved by a 10 kΩ pull-up resistor.
An instantaneous short-circuit pull-up unit may include an instantaneous short-circuit part (which can be understood as a one-shoot circuit part) and a pull-up part (which can be understood as a pull-up circuit part). The instantaneous short-circuit part can be understood as a circuit part that implements instantaneous short-circuit, the pull-up part can achieve a pull-up circuit part, and these parts can be connected in parallel and then connected to corresponding pins. For example, an instantaneous short-circuit part and a pull-up part in the first short-circuit pull-up unit can be connected in parallel, with both ends connected between the target pin and the first pin respectively; and an instantaneous short-circuit part and a pull-up part in the second short-circuit pull-up unit can be connected in parallel, and then connected between the second side of the second voltage regulating unit 33 and the second pin respectively.
Therefore, instantaneous short-circuit between the target pin and the first pin, and instantaneous short-circuit between the second voltage regulating unit and the second pin can be achieved by the instantaneous short-circuit pull-up units. In a circuit, when transmission at a logic high level is detected on one side, the other side pulls up the level quickly through an instantaneous short-circuit circuit part in an instantaneous short-circuit pull-up unit to support signal transmission at a higher speed, and maintain a logic high level state after instantaneous short-circuit through a pull-up part connected in parallel with the instantaneous short-circuit pull-up unit (unless in a logic low level transmission stage). The pull-up part may be a pull-up resistor circuit that is fixed or can be controlled to turn on and off in the circuit, and if controllable, the pull-up part can be controlled by an enabling control unit or other circuits.
Referring to
Therefore, when a voltage of the VCCEN pin is a normal working voltage for the first reference high level VH_Ref, power is supplied to a level conversion circuit chip therein, the first reference high level VH_Ref of the VCCEN pin is input to the LDO1, and an output of the LDO1 is a normal working voltage of the second reference high level VL_Ref. In this case, a voltage at the second reference high level VL_Ref generated inside the chip through the LDO1 assumes the duties of an external second reference high level VL_Ref in the prior art;
If VLDO2 (i.e., the voltage at the second side of the LDO2)=VL_Ref+VTH, signals in a range from GND to the second reference high level VL_Ref transmitted by the level conversion circuit can pass through, thereby accelerating the establishment of higher logic high levels.
Finally, VH_Ref=GND, LDO1=VL_Ref=GND and LDO2=GND when VCCEN=GND, that is, a gate control voltage of the SW is GND, and thus, the whole level conversion circuit is completely turned off.
It is thus learned that in the solution, a function of level conversion is well implemented, and two pins are reduced, so that die area is reduced and it is easier to select a suitable smaller package, thereby reducing the area of a finished chip. In this way, space is saved and costs are reduced for some space-constrained electronic devices such as mobile phones and wireless Bluetooth headsets.
In actual application, considering that signal logic high levels of a receiver and a transmitter in a circuit system with level conversion are fixed, a voltage at the second reference high level VL_Ref can be stabilized in the level conversion circuit by the LDO1 and a control voltage of the SW can be stabilized by the LDO2 in advance. Therefore, voltages that would otherwise be input are now generated internally, so that pins of a chip are simplified.
An embodiment of the present invention further provides an electronic device, including the above-mentioned level conversion circuit.
Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present invention rather than limiting the present invention. Although the present invention is described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some or all technical features thereof, without departing from the scope of the technical solutions of the embodiments of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
202110747698.3 | Jul 2021 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
20130002299 | Hung | Jan 2013 | A1 |
Number | Date | Country |
---|---|---|
106849937 | Jun 2017 | CN |
Number | Date | Country | |
---|---|---|---|
20230006671 A1 | Jan 2023 | US |