CN212112465U - 3V and 5V singlechip serial port communication circuit - Google Patents

3V and 5V singlechip serial port communication circuit Download PDF

Info

Publication number
CN212112465U
CN212112465U CN202021230958.7U CN202021230958U CN212112465U CN 212112465 U CN212112465 U CN 212112465U CN 202021230958 U CN202021230958 U CN 202021230958U CN 212112465 U CN212112465 U CN 212112465U
Authority
CN
China
Prior art keywords
resistor
control chip
main control
electrically connected
triode
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
CN202021230958.7U
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.)
Foshan Jindaming Technology Co ltd
Original Assignee
Foshan Jindaming 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 Foshan Jindaming Technology Co ltd filed Critical Foshan Jindaming Technology Co ltd
Priority to CN202021230958.7U priority Critical patent/CN212112465U/en
Application granted granted Critical
Publication of CN212112465U publication Critical patent/CN212112465U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Microcomputers (AREA)

Abstract

The utility model discloses a serial port communication circuit of 3V and 5V singlechip, including first main control chip U1, second main control chip U2, resistance R1, resistance R2, resistance R3 and triode Q1; through the hardware cooperation of the resistor R1, the resistor R2, the resistor R3 and the triode Q1, the communication between different input voltage main control chips can be realized, and the low-cost advantage is achieved.

Description

3V and 5V singlechip serial port communication circuit
Technical Field
The utility model relates to a singlechip communication field, in particular to 3V and 5V singlechip serial ports communication circuit.
Background
Most of the existing 51 single-chip microcomputers are supplied with 5V power, WIFI module Bluetooth modules and the like are mainly supplied with 3V power, in a circuit, different voltages need to be provided for the 51 single-chip microcomputers, the WIFI module Bluetooth modules and the like respectively, the existing circuit provides different voltages by using a voltage conversion chip, and the design has the defect that the cost of using the voltage conversion chip is high.
SUMMERY OF THE UTILITY MODEL
The utility model discloses aim at solving one of the technical problem that exists among the prior art at least. Therefore, the utility model provides a 3V and 5V singlechip serial ports communication circuit adopts triode and resistance to realize the communication between 3V and the 5V singlechip, can effective reduce cost.
The utility model discloses a technical scheme that its technical problem was solved to an embodiment adopted is: the utility model provides a 3V and 5V singlechip serial ports communication circuit which characterized in that: comprises a first main control chip U1 with 5V input voltage, a second main control chip U2 with 3V input voltage, a resistor R1, a resistor R2, a resistor R3 and a triode Q1, the first master control chip U1 and the second master control chip U2 each include a TX terminal and an RX terminal, one end of the resistor R2 is electrically connected with the TX end of the first main control chip U1, the other end of the resistor R2 is respectively electrically connected with one end of the resistor R3 and the RX end of the second main control chip U2, the other end of the resistor R3 is grounded, the RX end of the first main control chip U1 is electrically connected with one end of a resistor R1 and the collector of a triode Q1 respectively, the emitter of the triode Q1 is electrically connected with the TX end of the second main control chip U2, the base of the triode Q1 and the power supply end of the second main control chip U2 are both electrically connected with a 3V power supply, and the other end of the resistor R1 and the power supply end of the first main control chip U1 are both electrically connected with a 5V power supply.
Preferably, the transistor Q1 is an NPN transistor.
Preferably, the resistance of the resistor R1 is set to 1K Ω, the resistance of the resistor R2 is set to 2K Ω, and the resistance of the resistor R3 is set to 3K Ω.
The utility model has the advantages that: above circuit structure, through the hardware cooperation of resistance R1, resistance R2, resistance R3 and triode Q1, can realize the communication between the different input voltage master control chips, have advantage with low costs.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic diagram of a serial port communication circuit of a 3V and 5V single chip microcomputer.
Detailed Description
This section will describe in detail the embodiments of the present invention, preferred embodiments of the present invention are shown in the attached drawings, which are used to supplement the description of the text part of the specification with figures, so that one can intuitively and vividly understand each technical feature and the whole technical solution of the present invention, but they cannot be understood as the limitation of the protection scope of the present invention.
In the description of the present invention, a plurality of means are two or more, and the terms greater than, less than, exceeding, etc. are understood as excluding the number, and the terms greater than, less than, etc. are understood as including the number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, it should be understood that the orientation or positional relationship indicated with respect to the orientation description, such as up, down, front, rear, left, right, etc., is based on the orientation or positional relationship shown in the drawings, and is only for convenience of description and simplification of description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
In the present invention, unless otherwise explicitly defined, the terms "set," "mounted," "connected," and the like are to be understood in a broad sense, and may be directly connected or indirectly connected through an intermediate medium, for example; can be fixedly connected, can also be detachably connected and can also be integrally formed; may be a mechanical connection; either as communication within the two elements or as an interactive relationship of the two elements. The technical skill in the art can reasonably determine the specific meaning of the above words in the present invention by combining the specific contents of the technical solution.
Referring to fig. 1, a 3V and 5V singlechip serial ports communication circuit, its characterized in that: comprises a first main control chip U1 with 5V input voltage, a second main control chip U2 with 3V input voltage, a resistor R1, a resistor R2, a resistor R3 and a triode Q1, the first master control chip U1 and the second master control chip U2 each include a TX terminal and an RX terminal, one end of the resistor R2 is electrically connected with the TX end of the first main control chip U1, the other end of the resistor R2 is respectively electrically connected with one end of the resistor R3 and the RX end of the second main control chip U2, the other end of the resistor R3 is grounded, the RX end of the first main control chip U1 is electrically connected with one end of a resistor R1 and the collector of a triode Q1 respectively, the emitter of the triode Q1 is electrically connected with the TX end of the second main control chip U2, the base of the triode Q1 and the power supply end of the second main control chip U2 are both electrically connected with a 3V power supply, and the other end of the resistor R1 and the power supply end of the first main control chip U1 are both electrically connected with a 5V power supply.
The transistor Q1 is configured as an NPN transistor.
The resistance value of the resistor R1 is set to 1K omega, the resistance value of the resistor R2 is set to 2K omega, and the resistance value of the resistor R3 is set to 3K omega.
In the present invention, the first main control chip U1 is preferably a 5V input voltage single chip microcomputer, the second main control chip U2 is preferably a 3V input voltage single chip microcomputer, when the TX end of the first main control chip U1 has a signal to send, if the signal is a high level, the RX end of the second main control chip U1 will receive a 3V high level, when the TX end of the first main control chip U1 sends a low level, the RX end of the second main control chip U2 will also be a low level; when the TX terminal of the second main control chip U2 is at a high level, the transistor Q1 is in an off state, so the RX terminal of the first main control chip U1 is pulled up to 5V, when the TX terminal of the second main control chip U2 is at a low level, the transistor Q1 is turned on, and the RX terminal of the first main control chip U1 is also at a low level.
Of course, the present invention is not limited to the above-mentioned embodiments, and those skilled in the art can make equivalent modifications or substitutions without departing from the spirit of the present invention, and such equivalent modifications and substitutions are included in the scope defined by the claims of the present application.

Claims (3)

1. The utility model provides a 3V and 5V singlechip serial ports communication circuit which characterized in that: comprises a first main control chip U1 with 5V input voltage, a second main control chip U2 with 3V input voltage, a resistor R1, a resistor R2, a resistor R3 and a triode Q1, the first master control chip U1 and the second master control chip U2 each include a TX terminal and an RX terminal, one end of the resistor R2 is electrically connected with the TX end of the first main control chip U1, the other end of the resistor R2 is respectively electrically connected with one end of the resistor R3 and the RX end of the second main control chip U2, the other end of the resistor R3 is grounded, the RX end of the first main control chip U1 is electrically connected with one end of a resistor R1 and the collector of a triode Q1 respectively, the emitter of the triode Q1 is electrically connected with the TX end of the second main control chip U2, the base of the triode Q1 and the power supply end of the second main control chip U2 are both electrically connected with a 3V power supply, and the other end of the resistor R1 and the power supply end of the first main control chip U1 are both electrically connected with a 5V power supply.
2. The serial port communication circuit of the 3V and 5V single chip microcomputer according to claim 1, characterized in that: the transistor Q1 is configured as an NPN transistor.
3. The serial port communication circuit of the 3V and 5V single chip microcomputer according to claim 1, characterized in that: the resistance value of the resistor R1 is set to 1K omega, the resistance value of the resistor R2 is set to 2K omega, and the resistance value of the resistor R3 is set to 3K omega.
CN202021230958.7U 2020-06-29 2020-06-29 3V and 5V singlechip serial port communication circuit Active CN212112465U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202021230958.7U CN212112465U (en) 2020-06-29 2020-06-29 3V and 5V singlechip serial port communication circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202021230958.7U CN212112465U (en) 2020-06-29 2020-06-29 3V and 5V singlechip serial port communication circuit

Publications (1)

Publication Number Publication Date
CN212112465U true CN212112465U (en) 2020-12-08

Family

ID=73628316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202021230958.7U Active CN212112465U (en) 2020-06-29 2020-06-29 3V and 5V singlechip serial port communication circuit

Country Status (1)

Country Link
CN (1) CN212112465U (en)

Similar Documents

Publication Publication Date Title
CN212112465U (en) 3V and 5V singlechip serial port communication circuit
CN209088921U (en) A kind of application circuit of compatible NPN and positive-negative-positive input interface
EP1970816B1 (en) A conversion circuit
CN207677707U (en) A kind of precisely reliable UART communications level shifting circuit
CN215268318U (en) CAN bus resistance matching circuit
CN215904446U (en) Unified output foot kicking sensor system
CN213304962U (en) DALI signal power supply protection circuit
CN202931279U (en) Circuit capable of realizing I2C hot plug and I2C device
CN210839528U (en) Serial port communication signal abnormity correction circuit and massage chair
CN205283515U (en) Adaptive pairs circuit
CN216817396U (en) Conversion circuit for converting four-wire system TTL interface into two-wire system bus interface
CN219843443U (en) Power supply control circuit, main body of cleaning device and cleaning device
CN212208281U (en) Communication circuit of singlechip without serial port function
CN218526122U (en) Charging identification circuit and circuit board
CN212784761U (en) Overcurrent protection circuit
CN214955958U (en) Display screen control system
CN210380806U (en) Communication isolation circuit
CN218301202U (en) Power supply circuit with low standby power consumption
CN210000261U (en) vehicle-mounted radio and tape player power supply control circuit
CN214543620U (en) Power supply circuit and electronic equipment based on Type-C interface
CN213244425U (en) DMX programmable module capable of reading output power
CN214315258U (en) Communication circuit and refrigerator
CN210781148U (en) Television remote controller chip circuit with illumination drive and remote controller
CN202548567U (en) MBUS (Meter-Bus) main control data transmitting circuit
CN213518644U (en) Wi-Fi remote control terminal

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant