Single-wire UART communication circuit
By designing a single-wire UART communication circuit and using components such as transistors and diodes, single-wire UART communication is realized, solving the problem of only one communication port in customer structural design, reducing costs and failure rates, and complying with national standards.
Patent Information
- Application Number
- CN202420425195.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-06
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2034-03-06
AI Technical Summary
There is only one communication port in the customer's structural design, which leads to the restriction of dual-wire UART communication and the inability to achieve successful communication.
Design a single-wire UART communication circuit, which uses transistors and diodes to connect the signal through resistors to realize single-wire transmission of signals, including PNP and NPN transistors and diodes, and uses resistors such as resistors R35, R25, R73, R74, R50, R76, etc. to connect The signal terminals TXD_MCU, RXD_MCU and external single-line COM_C realize single-line communication.
The two-line UART was successfully converted into a single-line UART to meet customer needs, reduce costs and failure rates, and comply with the national standards.
Smart Images

Figure CN222128078U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of communication, in particular to a single-line UART communication circuit. Background Art
[0002] UART (Universal Asynchronous Receiver / Transmitter) is a commonly used serial communication protocol, which is widely used in communication between microcontrollers or various embedded devices.
[0003] UART communication is widely used. To successfully communicate, it must have two wires to connect to the outside. However, sometimes the customer's structural design only has one communication port and only one wire, so two-wire communication is challenged. Utility Model Content
[0004] The purpose of the utility model is to provide a single-line UART communication circuit to solve the problems raised in the above background technology.
[0005] In order to achieve the above purpose, the utility model provides the following technical solutions:
[0006] A single-line UART communication circuit includes a transistor Q4, a transistor Q7, a transistor Q10, a transistor Q12, a diode D28, a resistor R25, a resistor R26, a resistor R28, a resistor R35, a resistor R35, a resistor R50, a resistor R73, a resistor R74 and a resistor R76, wherein one end of the resistor R35 is connected to a signal end TXD_MCU, the other end of the resistor R35 is connected to the other end of the resistor R25 and the base of the transistor Q4, the emitter of the transistor Q4 is connected to the other end of the resistor R25, the collector of the transistor Q4 is connected to the resistor R73 and the base of the transistor Q10, and the resistor R74 is connected to the base of the transistor Q10. The other end is connected to the emitter of transistor Q10, resistor R76 and the emitter of transistor Q12, the collector of transistor Q10 is connected to the anode of diode D28 and the external single line COM_C, the cathode of diode D28 is connected to resistor R50, the other end of resistor R50 is connected to resistor R76 and the base of transistor Q12, the collector of transistor Q12 is connected to resistor R26 and the base of transistor Q7, the other end of resistor R26 is connected to the emitter of transistor Q7, the collector of transistor Q7 is connected to resistor R73, and the other end of resistor R73 is connected to the signal terminal RXD_MCU and the ground terminal GND_MCU.
[0007] As a further technical solution of the utility model: the transistor Q4 is a PNP transistor.
[0008] As a further technical solution of the utility model: the transistor Q7 is a PNP transistor.
[0009] As a further technical solution of the utility model: the transistor Q10 is an NPN transistor.
[0010] As a further technical solution of the utility model: the transistor Q12 is an NPN transistor.
[0011] Compared with the prior art, the beneficial effects of the utility model are:
[0012] The single-line UART communication circuit of the utility model can change the dual-line UART into a single-line UART communication, which can meet the needs of customers on the one hand, and can also reduce costs and failure rates on the other hand, and can meet the national standards. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is the principle diagram of the utility model. DETAILED DESCRIPTION
[0014] The technical solutions in the embodiments of the utility model are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of them. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0015] Reference Figure 1 A single-line UART communication circuit includes a transistor Q4, a transistor Q7, a transistor Q10, a transistor Q12, a diode D28, a resistor R25, a resistor R26, a resistor R28, a resistor R35, a resistor R35, a resistor R50, a resistor R73, a resistor R74 and a resistor R76, one end of the resistor R35 is connected to the signal end TXD_MCU, the other end of the resistor R35 is connected to the other end of the resistor R25 and the base of the transistor Q4, the emitter of the transistor Q4 is connected to the other end of the resistor R25, the collector of the transistor Q4 is connected to the resistor R73 and the base of the transistor Q10, and the resistor R73 is connected to the base of the transistor Q10. The other end of 4 is connected to the emitter of transistor Q10, resistor R76 and the emitter of transistor Q12, the collector of transistor Q10 is connected to the anode of diode D28 and the external single line COM_C, the cathode of diode D28 is connected to resistor R50, the other end of resistor R50 is connected to resistor R76 and the base of transistor Q12, the collector of transistor Q12 is connected to resistor R26 and the base of transistor Q7, the other end of resistor R26 is connected to the emitter of transistor Q7, the collector of transistor Q7 is connected to resistor R73, and the other end of resistor R73 is connected to the signal terminal RXD_MCU and the ground terminal GND_MCU.
[0016] Among them, transistor Q4 and transistor Q7 are PNP transistors, and transistor Q10 and transistor Q12 are NPN transistors.
[0017] Here’s how it works:
[0018] UART communication is normally at a high level. First, when the external single-line COM_C sends a signal to the internal, COM_C becomes high and low, pulling the base of transistor Q12 low, and transistor Q12 is turned off. At this time, the base of transistor Q7 will be pulled up by VCC, and then transistor Q7 will be turned off. At this time, the network RX_MCU will be pulled low and receive the signal. Second, when the internal TXD_MCU sends a low-level signal, transistor Q4 is pulled low and turned on, and then the high level of VCC reaches the base of transistor Q10 through transistor Q4 to turn on transistor Q10, and then the external COM_C is pulled low and the signal is received.
[0019] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention.
[0020] In addition, it should be understood that although this specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment have also been appropriately combined to form other implementation modes that are easy for those skilled in the art to understand.
Claims
1. A single-line UART communication circuit, comprising transistor Q4, transistor Q7, transistor Q10, transistor Q12, diode D28, resistor R25, resistor R26, resistor R28, resistor R35, resistor R50, resistor R73, resistor R74 and resistor R76, characterized in that: One end of the resistor R35 is connected to the signal terminal TXD_MCU, the other end of the resistor R35 is connected to the other end of the resistor R25 and the base of the transistor Q4, the emitter of the transistor Q4 is connected to the other end of the resistor R25, the collector of the transistor Q4 is connected to the resistor R73 and the base of the transistor Q10, the other end of the resistor R74 is connected to the emitter of the transistor Q10, the resistor R76 and the emitter of the transistor Q12, the collector of the transistor Q10 is connected to the positive electrode of the diode D28 and the external single line COM_C, the negative electrode of the diode D28 is connected to the resistor R50, the other end of the resistor R50 is connected to the resistor R76 and the base of the transistor Q12, the collector of the transistor Q12 is connected to the resistor R26 and the base of the transistor Q7, the other end of the resistor R26 is connected to the emitter of the transistor Q7, the collector of the transistor Q7 is connected to the resistor R73, and the other end of the resistor R73 is connected to the signal terminal RXD_MCU and the ground terminal GND_MCU.
2. A single-wire UART communication circuit according to claim 1, characterized in that: The transistor Q4 is a PNP transistor.
3. A single-wire UART communication circuit according to claim 1, characterized in that: The transistor Q7 is a PNP transistor.
4. A single-wire UART communication circuit according to claim 1, characterized in that: The transistor Q10 is an NPN transistor.
5. A single-wire UART communication circuit according to claim 4, characterized in that: The transistor Q12 is an NPN transistor.
