UART signal infrared transceiver circuit

By using a current drive buffer circuit in the UART signal infrared transceiver circuit to directly connect the infrared transmitting and receiving circuits, the problem of low UART signal transmission rate in the existing technology is solved, and an efficient transmission rate of more than 1Mbps and low cost advantages are achieved.

CN117498945BActive Publication Date: 2024-10-08GUANGDONG ENVISION TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202311789386.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2024-10-08
Estimated Expiration
2043-12-25

AI Technical Summary

Technical Problem

The existing UART signal infrared transmission method is limited by low speed and cannot meet the transmission requirements above 1Mbps. At the same time, the cost is high and there are radio frequency interference problems.

Method used

A UART signal infrared transceiver circuit is designed, which is directly connected to the infrared transmitting and receiving circuits through a current drive buffer circuit. There is no need for subcarriers or any carrier modulation in the middle. The TX signal amplification circuit and the RX signal amplification circuit are used to increase the transmission rate.

Benefits of technology

It achieves a high-speed UART signal transmission rate of more than 1Mbps, while maintaining the low-cost advantage of the UART serial port, avoiding radio frequency interference, and reducing system complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117498945B_ABST
    Figure CN117498945B_ABST
Patent Text Reader

Abstract

The invention relates to a UART signal infrared transceiver circuit, comprising a current driving buffer circuit, an RX signal amplifying circuit, a UART serial port, an infrared transmitting circuit and an infrared receiving circuit; the current driving buffer circuit comprises a TX signal amplifying circuit and a push-pull circuit, the UART serial port has a TX pin and an RX pin, the TX pin is connected to the input end of the TX signal amplifying circuit, and the output end of the TX signal amplifying circuit is connected to the infrared transmitting circuit through the push-pull circuit; the infrared receiving circuit is connected to the RX pin through the RX signal amplifying circuit; the rate is greatly improved, and the low cost advantage of the UART serial port is maintained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of UART signal infrared transceiver circuits, in particular to a UART signal infrared transceiver circuit. Background Art

[0002] UART (Chinese name: Universal Asynchronous Receiver / Transmitter, commonly known as serial port) is a very traditional and widely used interface in electronic products, usually used in product development and debugging, production testing, and after-sales diagnosis and maintenance. Its advantages are simplicity, convenience, very low cost, and wide use. As long as the product circuit has an MCU or an integrated SoC similar to an MCU, it will have this UART serial port by default, so the cost of using UART is very low.

[0003] The UART serial port has two data lines, RX and TX, which respectively realize data reception and transmission. UART is often limited to wired data transmission; the demand for wireless transmission is often solved through Bluetooth, WiFi, etc., but the cost is high. Using infrared for wireless transmission is a low-cost, safe, and radio frequency interference-free method.

[0004] The existing method of transmitting UART signals via infrared rays on the market is almost the same as the infrared transceiver method of home appliance remote controls, that is, a 38KHz carrier is added between the infrared transceiver and the baseband signal (relative to the infrared carrier, the 38KHz is strictly speaking a subcarrier). According to communication theory, the maximum rate limit of the baseband is only 1 / 2 times of 38KHz, which limits this method to low-speed applications.

[0005] In many cases, it is necessary to utilize the UART serial port to maintain the advantage of low cost, transmit it wirelessly, and meet a higher transmission rate, such as above 1Mbps. Therefore, a new application circuit needs to be developed to meet the above requirements. Summary of the invention

[0006] The present invention aims to overcome the deficiencies in the prior art and aims to provide a UART signal infrared transceiver circuit, which greatly improves the rate and maintains the low cost advantage of the UART serial port.

[0007] To achieve the above-mentioned purpose, the present invention adopts the following technical scheme:

[0008] The UART signal infrared transceiver circuit includes a current drive buffer circuit, an RX signal amplifying circuit, a UART serial port, an infrared transmitting circuit and an infrared receiving circuit;

[0009] The current drive buffer circuit includes a TX signal amplifying circuit and a push-pull circuit, the UART serial port has a TX pin and an RX pin, the TX pin is connected to the input end of the TX signal amplifying circuit, and the output end of the TX signal amplifying circuit is connected to the infrared transmitting circuit through the push-pull circuit;

[0010] The infrared receiving circuit is connected to the RX pin via the RX signal amplifying circuit.

[0011] As a preferred solution, the TX signal amplifying circuit includes a resistor R1 and a transistor amplifying circuit, wherein the transistor amplifying circuit is respectively connected to one end of the resistor R1 and the push-pull circuit, and the other end of the resistor R1 is connected to the TX pin.

[0012] As a preferred solution, the TX signal amplifying circuit further includes a capacitor C1, and the capacitor C1 is connected in parallel to both ends of the resistor R1.

[0013] As a preferred solution, the transistor amplifier circuit includes a first NPN transistor Q1, a resistor R2 and a resistor R3;

[0014] One end of the resistor R1 is connected to the base of the first NPN transistor Q1, the base of the first NPN transistor Q1 is grounded through the resistor R2, the emitter of the first NPN transistor Q1 is grounded, the collector of the first NPN transistor Q1 is connected to one end of the resistor R3, the other end of the resistor R3 is used to connect the voltage VCC_TX and the push-pull circuit, and the collector of the first NPN transistor Q1 is also connected to the infrared transmitting circuit through the push-pull circuit.

[0015] As a preferred solution, the transistor amplifier circuit includes a first PNP transistor Q1', a resistor R2 and a resistor R3;

[0016] One end of the resistor R1 is connected to the base of the first PNP transistor Q1', the base of the first PNP transistor Q1' is connected to the emitter of the first PNP transistor Q1' through the resistor R2, the emitter of the first PNP transistor Q1' is used to connect the voltage VCC_TX and the push-pull circuit, the collector of the first PNP transistor Q1' is grounded through the resistor R3, and the collector of the first PNP transistor Q1' is also connected to the infrared transmitting circuit through the push-pull circuit.

[0017] As a preferred solution, the push-pull circuit includes a second NPN transistor Q2 and a second PNP transistor Q3;

[0018] The base of the second NPN transistor Q2 and the base of the second PNP transistor Q3 are commonly connected to the output end of the TX signal amplification circuit, the collector of the second NPN transistor Q2 is used to connect the voltage VCC_TX, the emitter of the second NPN transistor Q2 and the emitter of the second PNP transistor Q3 are commonly connected to the infrared transmitting circuit, and the collector of the second PNP transistor Q3 is grounded.

[0019] As a preferred solution, the RX signal amplifying circuit includes an inverting amplifier circuit and a pre-amplifying circuit, the infrared receiving circuit is connected to the input end of the pre-amplifying circuit, the output end of the pre-amplifying circuit is connected to the input end of the inverting amplifier circuit, and the output end of the inverting amplifier circuit is connected to the RX pin.

[0020] As a preferred solution, the pre-stage amplifier circuit includes an operational amplifier U1 and resistors R22 and R23 connected in series, the positive input terminal of the operational amplifier U1 is connected to the infrared receiving circuit, the negative input terminal of the operational amplifier U1 is connected to the series node of the resistors R22 and R23, the non-series node of the resistor R23 is grounded, the non-series node of the resistor R22 is connected to the output terminal of the operational amplifier U1, and the output terminal of the operational amplifier U1 is connected to the input terminal of the inverting amplifier circuit.

[0021] As a preferred solution, the inverting amplifier circuit includes an operational amplifier U2, a capacitor C21, a resistor R26, a resistor R27, a resistor R24 ​​and a resistor R25;

[0022] The resistor R26 is connected in series with the resistor R27, the resistor R24 ​​is connected in series with the resistor R25, the positive input terminal of the operational amplifier U2 is connected to the series node of the resistor R26 and the resistor R27, the series node of the resistor R26 and the resistor R27 is grounded through the capacitor C21, the non-series node of the resistor R26 is used to connect the voltage VCC_RX, and the non-series node of the resistor R27 is grounded;

[0023] The negative input terminal of the operational amplifier U2 is connected to the series node of the resistor R24 ​​and the resistor R25, and the non-series node of the resistor R25 is connected to the output terminal of the pre-amplifier circuit.

[0024] The non-series node of the resistor R24 ​​is connected to the output end of the operational amplifier U2, and the output end of the operational amplifier U2 is connected to the RX pin.

[0025] As a preferred solution, a shaping circuit is also included, and the output end of the inverting amplifier circuit is connected to the RX pin through the shaping circuit.

[0026] Compared with the prior art, the present invention has obvious advantages and beneficial effects. Specifically, the TX pin of the UART serial port is directly connected to the infrared transmitting circuit through a current driving buffer circuit, without the need for a subcarrier and any carrier modulation in the middle. The signal received by the infrared receiving circuit is directly transmitted to the RX pin of the UART serial port after passing through the RX signal amplifying circuit, without the need for a subcarrier and any modulation circuit in the middle, thereby greatly improving the rate and maintaining the low cost advantage of the UART serial port.

[0027] In order to more clearly illustrate the structural features and effects of the present invention, it is described in detail below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 is a circuit diagram of an embodiment of the present invention;

[0029] Figure 2 It is a schematic diagram of a TX signal amplifying circuit according to another embodiment of the present invention.

[0030] Description of Figure Numbers:

[0031] 10. Current drive buffer circuit 11. TX signal amplifier circuit

[0032] 111. Transistor amplifier circuit 111a. Transistor amplifier circuit

[0033] 12. Push-pull circuit

[0034] 21. Pre-amplifier circuit 22. Inverting amplifier circuit

[0035] 23. Shaping circuit

[0036] 31. Infrared transmitting circuit 32. Infrared receiving circuit DETAILED DESCRIPTION

[0037] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.

[0038] like Figure 1 and Figure 2 As shown, the UART signal infrared transceiver circuit does not require a traditional 38KHz subcarrier infrared transceiver circuit. The high-speed UART signal infrared transceiver circuit is specially used to transmit and receive high-speed UART baseband signals, and the transmission rate can be above 1Mpbs or even higher.

[0039] The UART signal infrared transceiver circuit includes a current drive buffer circuit 10, an RX signal amplifying circuit, a UART serial port, an infrared transmitting circuit 31 and an infrared receiving circuit 32;

[0040] The current drive buffer circuit 10 includes a TX signal amplifying circuit 11 and a push-pull circuit 12. The UART serial port has a TX pin and an RX pin. The TX pin is connected to the input end of the TX signal amplifying circuit 11. The output end of the TX signal amplifying circuit 11 is connected to the infrared transmitting circuit 31 through the push-pull circuit 12.

[0041] Preferably, the infrared transmitting circuit 31 includes an infrared transmitting tube D1, a resistor R4, an infrared transmitting tube D2 and a resistor R5; the anode of the infrared transmitting tube D1 and the anode of the infrared transmitting tube D2 are both connected to the push-pull circuit 12. The cathode of the infrared transmitting tube D1 is grounded through the resistor R4, and the cathode of the infrared transmitting tube D2 is grounded through the resistor R5. The TX pin is the signal transmitting pin of the UART serial port. The signal of the TX pin controls the on and off of the infrared transmitting tube D1 and the infrared transmitting tube D2 through the current drive buffer circuit 10.

[0042] In this embodiment, the TX signal amplifying circuit 11 includes a resistor R1, a capacitor C1 and a transistor amplifying circuit 111, wherein the transistor amplifying circuit 111 is respectively connected to one end of the resistor R1 and the push-pull circuit, and the other end of the resistor R1 is connected to the TX pin. The capacitor C1 is connected in parallel to both ends of the resistor R1.

[0043] In this embodiment, the transistor amplifier circuit 111 includes a first NPN transistor Q1, a resistor R2 and a resistor R3;

[0044] One end of the resistor R1 is connected to the base of the first NPN transistor Q1, the base of the first NPN transistor Q1 is grounded through the resistor R2, the emitter of the first NPN transistor Q1 is grounded, the collector of the first NPN transistor Q1 is connected to one end of the resistor R3, the other end of the resistor R3 is used to connect the voltage VCC_TX and the push-pull circuit, and the collector of the first NPN transistor Q1 is also connected to the infrared transmitting circuit through the push-pull circuit.

[0045] The push-pull circuit 12 includes a second NPN transistor Q2 and a second PNP transistor Q3;

[0046] The base of the second NPN transistor Q2 and the base of the second PNP transistor Q3 are commonly connected to the output end of the TX signal amplification circuit, the collector of the second NPN transistor Q2 is used to connect the voltage VCC_TX, the emitter of the second NPN transistor Q2 and the emitter of the second PNP transistor Q3 are commonly connected to the infrared transmitting circuit, and the collector of the second PNP transistor Q3 is grounded.

[0047] The TX pin outputs a high level when idle and also a high level when outputting 1; it is a low level only when outputting 0. The low level of the TX pin causes the infrared transmitting tubes D1 and D2 to emit infrared light.

[0048] The second NPN transistor Q2 and the second PNP transistor Q3 form a push-pull circuit, which has the characteristics of large current and fast response speed. In this embodiment, the push-pull circuit previously uses the first NPN transistor Q1 to simply amplify the input TX signal. In order to speed up the switching speed of the first NPN transistor Q1, we connect the capacitor C1 in parallel with the resistor R1. The principle is to accelerate the charging and discharging of the parasitic capacitance of the base and emitter of the first NPN transistor Q1 when the TX signal flips.

[0049] In another embodiment, when the high-level voltage output by the TX pin is not lower than the voltage VCC_TX, in order to make the static current as small as possible, the first NPN transistor Q1 is changed to a first PNP transistor Q1, and the positions of the first NPN transistor Q1 and the resistor R3 are swapped. Specifically:

[0050] The transistor amplifier circuit 111a includes a first PNP transistor Q1', a resistor R2 and a resistor R3;

[0051] One end of the resistor R1 is connected to the base of the first PNP transistor Q1', the base of the first PNP transistor Q1' is connected to the emitter of the first PNP transistor Q1' through the resistor R2, the emitter of the first PNP transistor Q1' is used to connect the voltage VCC_TX and the push-pull circuit, the collector of the first PNP transistor Q1' is grounded through the resistor R3, and the collector of the first PNP transistor Q1' is also connected to the infrared transmitting circuit through the push-pull circuit.

[0052] The infrared receiving circuit 32 is connected to the RX pin through the RX signal amplification circuit. In this embodiment, the infrared receiving circuit 32 includes an infrared receiving tube D21 and a resistor R21, the cathode of the infrared receiving tube D21 is used to connect the voltage VCC_RX, the anode of the infrared receiving tube D21 is grounded through the resistor R21, and the anode of the infrared receiving tube D21 is also connected to the RX signal amplification circuit. The infrared receiving tube D21 converts the received light signal into a voltage signal through the resistor R21 and outputs it to the signal amplifier.

[0053] The RX signal amplifying circuit includes an inverting amplifier circuit 22, a pre-amplifying circuit 21 and a shaping circuit 23. The infrared receiving circuit 32 is connected to the input end of the pre-amplifying circuit 21, the output end of the pre-amplifying circuit 21 is connected to the input end of the inverting amplifier circuit 22, and the output end of the inverting amplifier circuit 22 is connected to the RX pin.

[0054] The pre-stage amplifier circuit 21 includes an operational amplifier U1 and resistors R22 and R23 connected in series. The positive input terminal of the operational amplifier U1 is connected to the infrared receiving circuit 32, the negative input terminal of the operational amplifier U1 is connected to the series node of the resistors R22 and R23, the non-series node of the resistor R23 is grounded, the non-series node of the resistor R22 is connected to the output terminal of the operational amplifier U1, and the output terminal of the operational amplifier U1 is connected to the input terminal of the inverting amplifier circuit 22.

[0055] The amplification factor of the pre-amplifier circuit 21 is: 1+ R 22 / R 23 According to the actual transmission distance and signal strength, the pre-amplifier circuit can be repeated several times and connected in series, and the natural number N represents the number of the hierarchical cascade operational amplifiers U1.

[0056] Then, its magnification is (1+ R 22 / R 23 )*N.

[0057] The inverting amplifier circuit 22 includes an operational amplifier U2, a capacitor C21, a resistor R26, a resistor R27, a resistor R24 ​​and a resistor R25;

[0058] The resistor R26 is connected in series with the resistor R27, the resistor R24 ​​is connected in series with the resistor R25, the positive input terminal of the operational amplifier U2 is connected to the series node of the resistor R26 and the resistor R27, the series node of the resistor R26 and the resistor R27 is grounded through the capacitor C21, the non-series node of the resistor R26 is used to connect the voltage VCC_RX, and the non-series node of the resistor R27 is grounded;

[0059] The negative input terminal of the operational amplifier U2 is connected to the series node of resistors R24 and R25, the non-series node of resistor R25 is connected to the output terminal of the pre-amplifier circuit 21, the non-series node of resistor R24 ​​is connected to the output terminal of the operational amplifier U2, and the output terminal of the operational amplifier U2 is connected to the RX pin.

[0060] The resistor R26, the resistor R27 and the capacitor C21 are used to form a reference voltage V b , that is, V b =VCC RX *[R 27 / (R 26 +R 27 )]. Output voltage V out = V b +(R 24 +R 25 )*(V b -V in ).

[0061] The output end of the inverting amplifier circuit 22 is connected to the RX pin through the shaping circuit 23. Preferably, the shaping circuit 23 includes an operational amplifier U3 and a resistor R28 and a resistor R29 connected in series, the positive input end of the operational amplifier U3 is connected to the output end of the inverting amplifier circuit 22, the negative input end of the operational amplifier U3 is connected to the series node of the resistor R28 and the resistor R29, the non-series node of the resistor R29 is grounded, the non-series node of the resistor R28 is connected to the output end of the operational amplifier U3, and the output end of the operational amplifier U3 is connected to the RX pin.

[0062] Although the shaping circuit 23 has the same principle as the pre-amplifier circuit 21, the shaping circuit 23 has a larger amplification factor, so that it can shape the input signal into a waveform with a voltage that is the highest and ends at the voltage VCC_RX and the lowest being 0V, and the waveform is finally input to the RX pin. It should be noted that if the inverting amplifier circuit 22 and the pre-amplifier circuit 21 already meet the waveform requirements of the RX reception of the UART serial port, the shaping circuit 23 can be omitted, which can further reduce the cost.

[0063] The key points of the design of the present invention are that the TX pin of the UART serial port is directly connected to the infrared transmitting circuit through a current driving buffer circuit, without the need for a subcarrier and any carrier modulation in the middle; the signal received by the infrared receiving circuit is directly connected to the RX pin of the UART serial port after passing through the RX signal amplifying circuit, without the need for a subcarrier and any modulation circuit in the middle, thereby greatly improving the rate and maintaining the low cost advantage of the UART serial port.

[0064] The above description is only a preferred embodiment of the present invention and does not limit the technical scope of the present invention. Therefore, any slight modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. A UART signal infrared transceiver circuit, characterized in that: It includes a current drive buffer circuit, an RX signal amplifying circuit, a UART serial port, an infrared transmitting circuit and an infrared receiving circuit; The current drive buffer circuit includes a TX signal amplifying circuit and a push-pull circuit, the UART serial port has a TX pin and an RX pin, the TX pin is connected to the input end of the TX signal amplifying circuit, and the output end of the TX signal amplifying circuit is connected to the infrared transmitting circuit through the push-pull circuit; The TX signal amplifying circuit comprises a resistor R1, a capacitor C1 and a transistor amplifying circuit, wherein the transistor amplifying circuit is respectively connected to one end of the resistor R1 and the push-pull circuit, and the other end of the resistor R1 is connected to the TX pin; the capacitor C1 is connected in parallel to both ends of the resistor R1; The transistor amplifier circuit includes a first PNP transistor Q1', a resistor R2 and a resistor R3; One end of the resistor R1 is connected to the base of the first PNP transistor Q1', the base of the first PNP transistor Q1' is connected to the emitter of the first PNP transistor Q1' through the resistor R2, the emitter of the first PNP transistor Q1' is used to connect the voltage VCC_TX and the push-pull circuit, the collector of the first PNP transistor Q1' is grounded through the resistor R3, and the collector of the first PNP transistor Q1' is also connected to the infrared transmitting circuit through the push-pull circuit; The infrared receiving circuit is connected to the RX pin via the RX signal amplifying circuit; The RX signal amplifying circuit comprises an inverting amplifying circuit and a pre-amplifying circuit, the infrared receiving circuit is connected to the input end of the pre-amplifying circuit, the output end of the pre-amplifying circuit is connected to the input end of the inverting amplifying circuit, and the output end of the inverting amplifying circuit is connected to the RX pin; The inverting amplifier circuit includes an operational amplifier U2, a capacitor C21, a resistor R26, a resistor R27, a resistor R24 ​​and a resistor R25; The resistor R26 is connected in series with the resistor R27, the resistor R24 ​​is connected in series with the resistor R25, the positive input terminal of the operational amplifier U2 is connected to the series node of the resistor R26 and the resistor R27, the series node of the resistor R26 and the resistor R27 is grounded through the capacitor C21, the non-series node of the resistor R26 is used to connect the voltage VCC_RX, and the non-series node of the resistor R27 is grounded; The negative input terminal of the operational amplifier U2 is connected to the series node of the resistor R24 ​​and the resistor R25, and the non-series node of the resistor R25 is connected to the output terminal of the pre-amplifier circuit. The non-series node of the resistor R24 ​​is connected to the output end of the operational amplifier U2, and the output end of the operational amplifier U2 is connected to the RX pin.

2. The UART signal infrared transceiver circuit according to claim 1, characterized in that: The push-pull circuit includes a second NPN transistor Q2 and a second PNP transistor Q3; The base of the second NPN transistor Q2 and the base of the second PNP transistor Q3 are commonly connected to the output end of the TX signal amplification circuit, the collector of the second NPN transistor Q2 is used to connect the voltage VCC_TX, the emitter of the second NPN transistor Q2 and the emitter of the second PNP transistor Q3 are commonly connected to the infrared transmitting circuit, and the collector of the second PNP transistor Q3 is grounded.

3. The UART signal infrared transceiver circuit according to claim 1, characterized in that: The pre-stage amplifier circuit includes an operational amplifier U1 and resistors R22 and R23 connected in series. The positive input terminal of the operational amplifier U1 is connected to the infrared receiving circuit, the negative input terminal of the operational amplifier U1 is connected to the series node of the resistors R22 and R23, the non-series node of the resistor R23 is grounded, the non-series node of the resistor R22 is connected to the output terminal of the operational amplifier U1, and the output terminal of the operational amplifier U1 is connected to the input terminal of the inverting amplifier circuit.

4. The UART signal infrared transceiver circuit according to claim 1, characterized in that: A shaping circuit is also included, and the output end of the inverting amplifier circuit is connected to the RX pin through the shaping circuit.

Citation Information

Patent Citations

  • Infrared transmission circuit, infrared receiving circuit and infrared transceiver system

    CN103701531A

  • Half-duplex anti-self-interference infrared serial port circuit

    CN107517053A

  • High-speed infrared transceiver circuit

    CN115762112A

  • Infrared communication method and system and storage medium

    CN115941049A

  • Infrared emitting and receiving circuit

    CN203366528U