CN211906268U - Serial port level conversion circuit - Google Patents

Serial port level conversion circuit Download PDF

Info

Publication number
CN211906268U
CN211906268U CN202020539146.4U CN202020539146U CN211906268U CN 211906268 U CN211906268 U CN 211906268U CN 202020539146 U CN202020539146 U CN 202020539146U CN 211906268 U CN211906268 U CN 211906268U
Authority
CN
China
Prior art keywords
module
serial port
resistor
voltage
port module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202020539146.4U
Other languages
Chinese (zh)
Inventor
莫志承
梁文威
叶靖仪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Aoling Technology Co ltd
Original Assignee
Guangdong Aoling Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Aoling Technology Co ltd filed Critical Guangdong Aoling Technology Co ltd
Priority to CN202020539146.4U priority Critical patent/CN211906268U/en
Application granted granted Critical
Publication of CN211906268U publication Critical patent/CN211906268U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Logic Circuits (AREA)

Abstract

The utility model discloses a serial ports level shift circuit, include: the device comprises a first serial port module, a second serial port module, a voltage reduction module and a voltage boosting module; one end of the boosting module is connected with the receiving end of the first serial port module, and the other end of the boosting module is connected with the transmitting end of the second serial port module; the boosting module comprises a first resistor, a second resistor, a third resistor, an MOS (metal oxide semiconductor) tube and a triode; one end of the voltage reduction module is connected with the transmitting end of the first serial port module, and the other end of the voltage reduction module is connected with the receiving end of the second serial port module; the voltage reduction module comprises a fourth resistor and a fifth resistor; the utility model discloses a serial ports level shift circuit has simplified the circuit through the use that reduces filtering element, has improved the stability and the response efficiency of serial ports communication.

Description

Serial port level conversion circuit
Technical Field
The utility model relates to a serial ports communication technology field, in particular to serial ports level shift circuit.
Background
At present, in circuit design, units powered by different voltages exist, so that serial ports can be used for data transmission among the units, an existing serial port level conversion circuit is often too complex, some electronic elements and even special chips need to be added for level conversion, for example, some transistors, capacitors and other filter elements are adopted, but the circuit cost is high, phase shift and time sequence influence are easily caused, and serial port communication is unstable and response efficiency is low.
SUMMERY OF THE UTILITY MODEL
The utility model discloses to the problem that exists among the prior art, provide a serial ports level conversion circuit, improved the stability and the response efficiency of serial ports communication.
In order to achieve the above object, an embodiment of the present invention provides a serial port level shift circuit, including: the device comprises a first serial port module, a second serial port module, a voltage reduction module and a voltage boosting module;
one end of the boosting module is connected with the receiving end of the first serial port module, and the other end of the boosting module is connected with the transmitting end of the second serial port module; the boosting module comprises a first resistor, a second resistor, a third resistor, an MOS (metal oxide semiconductor) tube and a triode;
one end of the first resistor is connected with the transmitting end of the first serial port module, and the other end of the first resistor is connected with the base electrode of the triode; the emitting electrode of the triode is grounded, and the collector electrode of the triode is simultaneously connected with one end of the second resistor and one end of the third resistor; the source electrode of the MOS tube is connected with the other end of the second resistor, the grid electrode of the MOS tube is connected with the other end of the third resistor, and the drain electrode of the MOS tube is connected with the receiving end of the first serial port module;
one end of the voltage reduction module is connected with the transmitting end of the first serial port module, and the other end of the voltage reduction module is connected with the receiving end of the second serial port module; the voltage reduction module comprises a fourth resistor and a fifth resistor;
one end of the fifth resistor is connected with the transmitting end of the first serial port module, and the other end of the fifth resistor is connected with the receiving end of the second serial port module; one end of the fourth resistor is grounded, and the other end of the fourth resistor is connected with the receiving end of the second serial port module; and the resistance value of the fourth resistor is greater than or equal to five times of the impedance of the receiving end of the second serial port module.
Further, the fourth resistance and the fifth resistance satisfy the following relationship: r5 ═ R4/((VCC1/VCC2) -1); wherein, R4 is a fourth resistor, R5 is a fifth resistor, VCC1 is a first serial module access voltage, and VCC2 is a second serial module access voltage.
Furthermore, the serial port level conversion circuit further comprises a sixth resistor, one end of the sixth resistor is grounded, and the other end of the sixth resistor is connected with the drain electrode of the MOS transistor.
Furthermore, the access voltage of the first serial port module is greater than that of the second serial port module.
Furthermore, the access voltage of the second resistor is the same as that of the first serial module.
Further, the MOS transistor is a PMOS transistor, and the triode is an NPN type triode.
Further, the second serial port module is one of an MCU module, an NB-IOT module and a ZIGBEE module.
Further, the access voltage of the second serial port module is less than or equal to 3.3V.
Furthermore, the first serial port module is one of an MCU module, a sensor module, an RS232 module and an RS485 module.
Furthermore, the access voltage of the first serial module is more than or equal to 5V.
Compared with the prior art, the embodiment of the utility model provides a pair of serial ports level shift circuit has simplified the circuit through reducing the use to filtering element such as transistor, electric capacity, has reduced manufacturing cost, has improved the stability and the response efficiency of serial ports module communication.
Drawings
Fig. 1 is a circuit diagram of a serial port level shift circuit provided by the present invention.
Fig. 2 is a module connection diagram of the serial port level shift circuit provided by the utility model.
Detailed Description
The following detailed description of the embodiments of the present invention is provided with reference to the accompanying drawings and examples. The following examples are intended to illustrate the invention, but are not intended to limit the scope of the invention. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the protection scope of the present invention.
Referring to fig. 1, a circuit diagram of a serial port level shift circuit according to an embodiment of the present invention includes: the device comprises a first serial port module, a second serial port module, a voltage reduction module and a voltage boosting module;
one end of the boosting module is connected with the receiving end of the first serial port module, and the other end of the boosting module is connected with the transmitting end of the second serial port module; the boosting module comprises a first resistor, a second resistor, a third resistor, an MOS (metal oxide semiconductor) tube and a triode;
one end of the first resistor is connected with the transmitting end of the first serial port module, and the other end of the first resistor is connected with the base electrode of the triode; the emitting electrode of the triode is grounded, and the collector electrode of the triode is simultaneously connected with one end of the second resistor and one end of the third resistor; the source electrode of the MOS tube is connected with the other end of the second resistor, the grid electrode of the MOS tube is connected with the other end of the third resistor, and the drain electrode of the MOS tube is connected with the receiving end of the first serial port module;
one end of the voltage reduction module is connected with the transmitting end of the first serial port module, and the other end of the voltage reduction module is connected with the receiving end of the second serial port module; the voltage reduction module comprises a fourth resistor and a fifth resistor;
one end of the fifth resistor is connected with the transmitting end of the first serial port module, and the other end of the fifth resistor is connected with the receiving end of the second serial port module; one end of the fourth resistor is grounded, and the other end of the fourth resistor is connected with the receiving end of the second serial port module; and the resistance value of the fourth resistor is greater than or equal to five times of the impedance of the receiving end of the second serial port module.
In this embodiment, a serial port level shift circuit is provided, where the first serial port module access voltage and the second serial port module access voltage are VCC1 and VCC2, respectively, and VCC1 is greater than VCC 2; because VCC1 is not equal to VCC2, the transmitting and receiving ends of two serial units cannot be directly connected, and therefore a level conversion circuit switching as shown in fig. 1 is needed, wherein R4 and R5 constitute a set of voltage reduction circuits, a serial module with high voltage power supply transmits data to a serial module with low voltage power supply, specifically, a transmitting pin of a high voltage power supply unit is used for reducing voltage through resistors R4 and R5, and is directly converted into voltage suitable for a receiving pin of a low voltage unit, wherein R4 and R5 are selected such that R4 must be more than 5 times larger than the impedance of the receiving end of the low voltage unit. R1, R2, R3, Q1 and Q2 form a group of booster circuit and pulse control circuit, realize the serial port module of low-voltage power supply transmits data to the serial port module of high-voltage power supply, when the serial port transmitting terminal of low-voltage power supply is the high level, the magnitude of this high level is VCC2 makes NPN type triode Q2 turn on through R1, the grid of PMOS pipe Q1 is pulled down because of Q2 switches on at this moment, make Q1 also switch on, namely VCC1 has received the serial port receiving terminal of the high-voltage power supply unit directly, namely this receiving terminal is VCC1 of the high level too, and when the serial port transmitting terminal of the low-voltage power supply is the low level, this low level makes NPN type triode Q2 cut off through R1, so the serial port receiving terminal of the high-voltage power supply unit is pulled into the low level directly by R6. Due to the fact that Q1 and Q2 are conducted and cut off quickly, signals transmitted by a low-voltage serial port can be converted into signals received by a high-voltage serial port without delay. In the boosting module, a serial port module which can bring specific numerical values to realize low-voltage power supply transmits data to a serial port module which supplies power to high voltage; for example, the following methods are adopted: r1 equals to 1K, R2 equals to 10K, R3 equals to 470 omega, a PMOS tube Q1 with the model of AO3401 and a triode Q2 with the model of SS8050 can realize that a serial port with 3.3V sends data to a serial port with more than 5V.
The utility model discloses a serial ports level shift circuit that provides in a certain embodiment, the fourth resistance with the fifth resistance satisfies the following relation: r5 ═ R4/((VCC1/VCC2) -1); wherein, R4 is a fourth resistor, R5 is a fifth resistor, VCC1 is a first serial module access voltage, and VCC2 is a second serial module access voltage.
In this embodiment, after the resistance of R4 is determined, R5 ═ R4/((VCC1/VCC2) -1); for example, the resistors R4-10K and R5-5.1K are used, so that the serial port circuit supplied with 5V power can transmit data to the serial port supplied with 3.3V power, and signals transmitted by the high-voltage serial port can be simply and stably converted into low-voltage serial port receiving signals without delay.
The utility model discloses a serial ports level shift circuit that provides in a certain embodiment still includes sixth resistance, sixth resistance one end ground connection, the other end is connected the drain electrode of MOS pipe.
The utility model discloses a serial ports level shift circuit that provides in a certain embodiment, first serial port module access voltage is greater than second serial port module access voltage.
The utility model discloses a serial ports level shift circuit that provides in a certain embodiment, second resistance access voltage is the same with first serial port module access voltage.
The utility model discloses a serial ports level shift circuit that provides in a certain embodiment, the MOS pipe is the PMOS pipe, the triode is NPN type triode.
In this embodiment, the MOS transistor is a PMOS transistor, and the MOS transistor can be divided into two categories, i.e., an N-channel MOS transistor and a P-channel MOS transistor, and the P-channel MOS transistor has low hole mobility, so that the transconductance of the PMOS transistor is smaller than that of the N-channel MOS transistor when the geometric size of the MOS transistor and the absolute value of the operating voltage are equal. In addition, the absolute value of the threshold voltage of a P-channel MOS transistor is generally high, and a high operating voltage is required. The voltage and polarity of its power supply are incompatible with bipolar transistor-transistor logic circuits. The PMOS has lower working speed due to large logic swing, long charging and discharging process and small transconductance of the device. The triode is an NPN type triode, the main functions of the triode are current amplification and switching action, the triode can convert a weak electric signal into a signal with certain intensity, the conversion still follows energy conservation, and the triode only converts the energy of a power supply into the energy of the signal. An important parameter of the triode is the current amplification factor beta. When a tiny current is added to the base of the triode, a current which is beta times of the injected current, namely a collector current, can be obtained on the collector. The collector current varies with the change of the base current, and a small change of the base current can cause a large change of the collector current, i.e. the amplification of the triode.
The utility model discloses a serial ports level shift circuit that provides in a certain embodiment, second serial port module is one of MCU module, NB-IOT module and ZIGBEE module.
In this embodiment, the MCU module, i.e., a micro control Unit, also called a Single Chip Microcomputer (CPU) or a Single Chip Microcomputer, properly reduces the frequency and specification of a Central Processing Unit (CPU), and integrates peripheral interfaces such as a memory, a counter (Timer), a USB, an a/D converter, a UART, a PLC, a DMA, and even an LCD driving circuit on a Single Chip to form a Chip-level computer, which is used for different applications and performs different combination controls. Such as mobile phones, PC peripherals, remote controls, to automotive electronics, industrial stepper motors, robotic arm controls, etc., see the silhouette of the MCU.
The utility model discloses a serial ports level shift circuit that provides in a certain embodiment, second serial port module access voltage less than or equal to 3.3V.
The utility model discloses a serial ports level shift circuit that provides in a certain embodiment, first serial port module is MCU, one of sensor module, RS232 module, RS485 module.
In this embodiment, the RS232/RS 485-to-ethernet module is a device for implementing transparent transmission of RS232 or RS485 interface data of a network data packet, and the sensor module can sense measured information and convert the sensed information into an electrical signal or other information in a required form according to a certain rule for output, so as to meet requirements of information transmission, processing, storage, display, recording, control, and the like. The sensor is characterized in that: miniaturization, digitalization, intellectualization, multifunction, systematization and networking. The method is the first link for realizing automatic detection and automatic control and can be divided into a thermosensitive element, a photosensitive element, a gas sensitive element, a force sensitive element, a magnetic sensitive element, a humidity sensitive element, a sound sensitive element, a radioactive ray sensitive element, a color sensitive element, a taste sensitive element and the like.
The utility model discloses a serial ports level shift circuit that provides in a certain embodiment, first serial ports module access voltage more than or equal to 5V.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims (10)

1. A serial port level shifter circuit, comprising: the device comprises a first serial port module, a second serial port module, a voltage reduction module and a voltage boosting module;
one end of the boosting module is connected with the receiving end of the first serial port module, and the other end of the boosting module is connected with the transmitting end of the second serial port module; the boosting module comprises a first resistor, a second resistor, a third resistor, an MOS (metal oxide semiconductor) tube and a triode;
one end of the first resistor is connected with the transmitting end of the first serial port module, and the other end of the first resistor is connected with the base electrode of the triode; the emitting electrode of the triode is grounded, and the collector electrode of the triode is simultaneously connected with one end of the second resistor and one end of the third resistor; the source electrode of the MOS tube is connected with the other end of the second resistor, the grid electrode of the MOS tube is connected with the other end of the third resistor, and the drain electrode of the MOS tube is connected with the receiving end of the first serial port module;
one end of the voltage reduction module is connected with the transmitting end of the first serial port module, and the other end of the voltage reduction module is connected with the receiving end of the second serial port module; the voltage reduction module comprises a fourth resistor and a fifth resistor;
one end of the fifth resistor is connected with the transmitting end of the first serial port module, and the other end of the fifth resistor is connected with the receiving end of the second serial port module; one end of the fourth resistor is grounded, and the other end of the fourth resistor is connected with the receiving end of the second serial port module; and the resistance value of the fourth resistor is greater than or equal to five times of the impedance of the receiving end of the second serial port module.
2. The serial port level shift circuit according to claim 1, wherein the fourth resistor and the fifth resistor satisfy the following relationship: r5 ═ R4/((VCC1/VCC2) -1); wherein, R4 is a fourth resistor, R5 is a fifth resistor, VCC1 is a first serial module access voltage, and VCC2 is a second serial module access voltage.
3. The serial port level shift circuit according to claim 1, further comprising a sixth resistor, wherein one end of the sixth resistor is grounded, and the other end of the sixth resistor is connected to the drain of the MOS transistor.
4. The serial port level shifter circuit of claim 1, wherein the first serial port module access voltage is greater than the second serial port module access voltage.
5. The serial port level shifter circuit of claim 1, wherein the second resistor access voltage is the same as the first serial port module access voltage.
6. The serial port level shifter circuit according to claim 1, wherein the MOS transistor is a PMOS transistor, and the transistor is an NPN transistor.
7. The serial port level shift circuit of claim 1, wherein the second serial port module is one of an MCU module, an NB-IOT module, and a ZIGBEE module.
8. The serial port level shift circuit according to claim 1, wherein the second serial port module access voltage is less than or equal to 3.3V.
9. The serial port level shift circuit according to claim 1, wherein the first serial port module is one of an MCU module, a sensor module, an RS232 module, and an RS485 module.
10. The serial port level shifter circuit of claim 1, wherein the first serial port module access voltage is greater than or equal to 5V.
CN202020539146.4U 2020-04-13 2020-04-13 Serial port level conversion circuit Active CN211906268U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202020539146.4U CN211906268U (en) 2020-04-13 2020-04-13 Serial port level conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202020539146.4U CN211906268U (en) 2020-04-13 2020-04-13 Serial port level conversion circuit

Publications (1)

Publication Number Publication Date
CN211906268U true CN211906268U (en) 2020-11-10

Family

ID=73277583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202020539146.4U Active CN211906268U (en) 2020-04-13 2020-04-13 Serial port level conversion circuit

Country Status (1)

Country Link
CN (1) CN211906268U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427825A (en) * 2020-04-13 2020-07-17 广东澳领科技有限公司 Serial port level conversion circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427825A (en) * 2020-04-13 2020-07-17 广东澳领科技有限公司 Serial port level conversion circuit

Similar Documents

Publication Publication Date Title
US7082545B2 (en) Method of and device for detecting cable connection
CN103684407B (en) Otg
US20060015670A1 (en) Apparatus for detecting connection of a peripheral unit to a host system
CN111835334B (en) Automatic calibration SWP slave interface circuit
CN211906268U (en) Serial port level conversion circuit
CN102709883A (en) Under-voltage protection circuit of switch power source
EP4027160A1 (en) Universal plug status detection circuit
CN111427825A (en) Serial port level conversion circuit
CN219918909U (en) Level conversion circuit, chip and electronic equipment
CN102063082B (en) Digital input circuit
CN212137619U (en) Differential input level converter
CN215419641U (en) Communication system
CN212750070U (en) Infrared signal transmitting and receiving processing circuit
WO2015000391A1 (en) Infrared transmitting and receiving circuit and implementation method thereof
CN116208144A (en) General input/output interface circuit and system on chip
CN107478948B (en) USB load detection circuit and detection method
CN202616756U (en) Undervoltage protecting circuit of switching power supply
CN113110281A (en) Intelligent port conversion device and system
CN213484518U (en) GPRS conversion module circuit
CN220732406U (en) Low-loss charging control circuit
CN212305301U (en) PWM isolation control output 4-20mA circuit
CN214228226U (en) Self-locking control circuit without standby power consumption
CN218768080U (en) RC control power-on time sequence power supply circuit
CN211702000U (en) MCU drives high-power circuit
CN113794472B (en) Power-on detection circuit, GPIO interface circuit and integrated circuit chip

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant