[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2012065494A1 - Method and circuit for implementing serial port isolation - Google Patents

Method and circuit for implementing serial port isolation Download PDF

Info

Publication number
WO2012065494A1
WO2012065494A1 PCT/CN2011/081128 CN2011081128W WO2012065494A1 WO 2012065494 A1 WO2012065494 A1 WO 2012065494A1 CN 2011081128 W CN2011081128 W CN 2011081128W WO 2012065494 A1 WO2012065494 A1 WO 2012065494A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
transformer
serial port
signal
level
Prior art date
Application number
PCT/CN2011/081128
Other languages
French (fr)
Chinese (zh)
Inventor
陆荣飞
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012065494A1 publication Critical patent/WO2012065494A1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/0175Coupling arrangements; Interface arrangements
    • H03K19/017509Interface arrangements
    • H03K19/017536Interface arrangements using opto-electronic devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/0264Arrangements for coupling to transmission lines
    • H04L25/0266Arrangements for providing Galvanic isolation, e.g. by means of magnetic or capacitive coupling

Definitions

  • the invention relates to the technical field of serial port signal isolation, in particular to a method for realizing serial port isolation by a transformer and a serial port isolation circuit.
  • a serial port is usually drawn on the board as a communication port for debugging and monitoring of the board.
  • the communication device is not shared with the host computer, or there is an indeterminate potential difference between the ground planes of the two communication devices.
  • the serial port is usually hot swapped, and the discharge and surge between the two. It is easy to cause damage to the serial port or interfere with the normal operation of the communication device.
  • the three-wire serial communication (that is, the serial connection method using only RX (receive data), TX (transmit data), and GND signals), as shown in Figure 1, includes the signals TXD, RXD, and GND1 of the serial RS232 level interface ( Signal ground), and serial port TTL (transistor-transistor logic) level interface signals ETXD, ERXD, GND2 (signal ground), optocoupler circuits Ul, U2, U3, voltage inverting circuit IC1.
  • the positive level signal of the input terminal TXD passes through the optocoupler circuit U3 to output the TTL level to the output terminal ERXD, and the other path passes through the path selection circuit to the optocoupler circuit U2 to provide the RS232 positive voltage; the input terminal TXD negative level signal
  • the path selection circuit is connected to the photoelectric isolation circuit U1
  • the RS232 negative voltage is supplied thereto, and the other circuit is passed through the voltage inversion circuit IC1 to the charging circuit.
  • the voltage after charging provides the RS232 positive voltage to the optocoupler module U2.
  • the RS232 negative voltage at the input is provided by the TXD negative level signal. If the TXD signal line transmits consecutive bytes 0x00 (ie, the TXD is positive except for the stop bit), the RS232 negative voltage is supplied to the RXD signal line. There may be insufficient.
  • the present invention provides a method for realizing serial port isolation and a serial port isolation circuit, which uses a transformer to realize three-wire serial port isolation, effectively suppressing static electricity and surge, and preventing ground loop and surge interference equipment. normal operation.
  • the present invention provides a serial port isolation circuit, including: a receiving circuit and a transmitting circuit, where
  • the receiving circuit includes a first transformer module and a pulse detection latch module.
  • the first transformer module is connected to the output end of the RS232 level serial port, and is configured to: receive the RS232 level signal output by the RS232 level serial port, convert the RS232 level signal into a positive and negative pulse signal, and output the signal to the pulse detection.
  • Latch module
  • the pulse detection latch module is configured to: convert the positive and negative pulse signals into TTL level signals, and output the signals to the input end of the TTL level serial port;
  • the transmitting circuit includes a frequency driving module, a second transformer module and a third transformer module, and the frequency driving module is connected to the output end of the TTL level serial port, and is configured to: receive a TTL level of the output of the TTL level serial port a signal, according to the TTL level signal, selecting to output the high frequency signal to the second transformer module or the third transformer module;
  • the second transformer module is configured to: convert the received high frequency signal into an RS232 negative level signal, and output the signal to the receiving end of the RS232 level serial port;
  • the third transformer module is configured to: convert the received high frequency signal into an RS232 positive level signal, and output the signal to the receiving end of the RS232 level serial port.
  • the serial port isolation circuit may further have the following features: the first transformer module includes: a first transformer and a rectifier module,
  • the primary of the first transformer is connected to the output of the RS232 level serial port through a resistor, the secondary of the first transformer is connected to the rectifier module, and the rectifier module is connected to the pulse detection latch module. ;
  • the rectifier module is configured to: separately output a positive pulse signal and a negative pulse signal output by the first transformer to the pulse detection latch module;
  • the pulse detection latch module is configured to: convert the positive pulse signal to a TTL low level, and convert the negative pulse signal to a TTL high level.
  • the serial port isolation circuit may further have the following features:
  • the first transformer module includes: a current limiting protection module, wherein the rectifier module is connected to the pulse detection latch module by the current limiting protection module.
  • the serial port isolation circuit may further have the following features: the second transformer module includes: a second transformer and a first rectifying and filtering module, a primary of the second transformer is connected to the frequency driving module, and the second transformer is The first rectifying and filtering module is connected to the first rectifying and filtering module, the negative output end of the first rectifying and filtering module is connected to the receiving end of the RS232 level serial port, and the positive output end of the first rectifying and filtering module is grounded;
  • the third transformer module includes: a third transformer and a second rectifying and filtering module, a primary of the third transformer is connected to the frequency driving module, and a secondary of the third transformer is connected to the second rectifying and filtering module
  • the positive output end of the second rectifying and filtering module is connected to the receiving end of the RS232 level serial port, and the negative output end of the second rectifying and filtering module is grounded.
  • the above serial port isolation circuit can also have the following features:
  • the second transformer module further includes: a first driving module that amplifies a current, a primary of the second transformer is connected to the frequency driving module by the first driving module;
  • the third transformer module further includes: a second driving module that amplifies the current, and the primary of the third transformer is connected to the frequency driving module through the second driving module.
  • the above serial port isolation circuit can also have the following features:
  • the pulse detection latch module is a digital integrated circuit, a complex programmable logic device or a field programmable gate array;
  • the frequency drive module is a digital integrated circuit, a complex programmable logic device, or a field programmable gate array.
  • a method for implementing serial port isolation based on the serial port isolation circuit described above including:
  • the high frequency signal is selected to be output to the second transformer module or the third transformer module, and the second transformer module will receive the high After the frequency signal is converted into an RS232 negative level signal, it is output to the receiving end of the RS232 level serial port, and the received high frequency signal is converted into an RS232 positive level signal by the third transformer module, and then output to the RS232 power.
  • the receiving end of the flat serial port is selected to be output to the second transformer module or the third transformer module, and the second transformer module will receive the high After the frequency signal is converted into an RS232 negative level signal, it is output to the receiving end of the RS232 level serial port, and the received high frequency signal is converted into an RS232 positive level signal by the third transformer module, and then output to the RS232 power.
  • the above method may further have the following features: after the step of converting the RS232 level signal outputted by the RS232 level serial port into a pulse signal by the first transformer module, the method further includes: limiting the pulse signal.
  • the above method may further have the following features: after the step of converting the RS232 level signal outputted by the RS232 level serial port into a pulse signal by using the first transformer module, the method further includes:
  • the first transformer module separates the positive pulse signal and the negative pulse signal, and outputs the same to the pulse detection latch module.
  • the step of converting the pulse signal into a TTL level signal by the pulse detection latch module is specifically: the pulse detection latch module converts a positive pulse signal into a TTL low level, and converts the negative pulse signal into a TTL high power level.
  • the above method may further have the following features: Before the step of outputting the high frequency signal to the second transformer module or the third transformer module, the method further includes: amplifying the current of the high frequency signal.
  • the above method for realizing serial port isolation and the serial port isolation circuit are mainly designed for the three-wire serial communication mode, and do not need to take power from the serial signal line of the external device, and the extension is also applicable to the 5-wire RS232 communication and the full-line RS232 communication.
  • the circuit structure is relatively simple, and the return paths of the isolated ends are not connected, which can effectively suppress static electricity and surge, and prevent the ground loop and surge from damaging the normal operation of the serial port or interference device of the device.
  • FIG. 1 is a circuit diagram of a related art
  • FIG. 2 is a schematic diagram of the principle of a serial port isolation circuit according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a serial port isolation circuit according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic diagram of a serial port isolation circuit according to Embodiment 2 of the present invention
  • FIG. 5 is a flowchart of a method for implementing serial port isolation according to an embodiment of the present invention.
  • the signal of the serial port (such as the RS232 level serial port and the TTL level serial port) between the two devices is isolated by the transformer, and the conversion between the RS232 level and the TTL level of the serial port is realized at the same time.
  • the input signal of the RS232 level is converted into a positive pulse or a negative pulse by the transformer through the transformer, and then the positive pulse and the negative pulse are separated by the rectifier module, and then sent to the pulse detection latch.
  • the module, the function of the pulse detection latch module is to discriminate and latch the input pulse signal, and output a TTL level signal to the TTL level serial port.
  • the TTL level signal is sent to the frequency driving module.
  • the frequency driving module discriminates the input TXD signal, it outputs a higher frequency signal to a different transformer. After the transformer is boosted and the rectifier circuit is rectified, the RS232 is sent to the RS232.
  • the level serial port outputs the positive or negative level of RS232.
  • FIG. 2 The principle of the serial port isolation circuit according to the embodiment of the present invention is as shown in FIG. 2, which includes two parts of the receiving circuit and the transmitting circuit:
  • the upper part of the figure is a receiving circuit, comprising: a first transformer module and a pulse detecting latch module, wherein
  • the first transformer module is connected to the output end of the RS232 level serial port, and is configured to receive the RS232 level signal output by the RS232 level serial port, convert the RS232 level signal into a positive and negative pulse signal, and output the signal to the pulse detection lock.
  • Storage module
  • the pulse detection latch module is configured to convert the positive and negative pulse signals into a TTL level signal and output the signal to a TTL level serial port input.
  • the first transformer module may include: a first transformer and a rectification module, wherein a primary of the first transformer is connected to an output end of the RS232 level serial port through a resistor Connected, the secondary of the first transformer is connected to the rectifier module, and the rectifier module is connected to the pulse detection latch module;
  • the rectifier module is configured to separately output a positive pulse signal and a negative pulse signal output by the first transformer to the pulse detection latch module;
  • the pulse detection latch module is configured to convert a positive pulse signal to a TTL low level and a negative pulse signal to a TTL high level.
  • the first transformer module may further include: a current limiting protection module, wherein the rectifier module is connected to the pulse detection latch module by the current limiting protection module.
  • the lower part of the figure is a transmitting circuit, comprising: a frequency driving module, a second transformer module and a third transformer module, wherein
  • a frequency driving module connected to the output end of the TTL level serial port, configured to receive a TTL level signal of the output of the TTL level serial port, and outputting the high frequency signal to the second transformer according to the TTL level signal Module or third transformer module;
  • the second transformer module is configured to convert the received high frequency signal into an RS232 positive level signal, and output the signal to the receiving end of the RS232 level serial port;
  • the third transformer module is configured to convert the received high frequency signal into an RS232 negative level signal and output the signal to the receiving end of the RS232 level serial port.
  • the second transformer module includes: a second transformer and a first rectifying and filtering module, a primary of the second transformer is connected to the frequency driving module, a secondary of the second transformer, and the first rectifying filter The module is connected, the negative output end of the first rectifying and filtering module is connected to the receiving end of the RS232 level serial port, and the positive output end of the first rectifying and filtering module is grounded; the second transformer module may further include: a first driving module of the current, the primary of the second transformer being connected to the frequency driving module by the first driving module.
  • the third transformer module may include: a third transformer and a second rectifying and filtering module, wherein a primary of the third transformer is connected to the frequency driving module, and a secondary of the third transformer and the second rectifying and filtering module The positive output end of the second rectifying and filtering module is connected to the receiving end of the RS232 level serial port, and the negative output end of the second rectifying and filtering module is grounded.
  • the third change The voltage module may further include: a second driving module that amplifies the current, and the primary of the third transformer is connected to the frequency driving module through the second driving module.
  • the serial port isolation circuit can be implemented in two ways: one is to integrate the serial port isolation circuit into the single board; the other is to make the serial port isolation circuit into a separate small board for connecting, for example, an RS232 level serial port and a single computer. TTL level serial port on the board.
  • FIG. 3 is a schematic diagram of a serial port isolation circuit according to Embodiment 1 of the present invention, as shown in FIG. 3:
  • the upper part of the figure is a receiving circuit, wherein an R232 signal line on the receiving end transmits an RS232 level signal, which is connected to an external device.
  • RX signal is connected to the primary of the transformer through a resistor, the function of the resistor is current limiting and impedance matching, the transformer realizes the isolation of the signal ground on both sides and converts the RX signal into a pulse signal;
  • the pulse signal of the secondary output of the transformer is rectified by a rectifier module composed of four diodes, and then sent to the A or B terminal of the pulse detection latch circuit; the pulse detection latch circuit converts the pulse signal of the A or B terminal into a TTL of 0 or 1.
  • the level signal is sent to the receiving end of the TTL level serial port of the board (such as the CPU) through the RXD signal line.
  • the basic principle of the receiving circuit is that when the level on the RX jumps, a pulse is generated at the secondary of the transformer.
  • the positive transition (the RX signal changes from a negative level to a positive level, that is, the current direction of the transformer primary changes from the direction of b to a to the direction from a to b, the direction of the voltage generated in the secondary
  • the pulse generated for a, high level, b, low level is sent to the A terminal in the figure
  • the negative transition the RX signal changes from positive to negative, that is, the current direction of the transformer primary is from a to b.
  • the direction of the direction becomes from b to a, and the voltage generated in the secondary direction is b, high level, a, low level.
  • the generated pulse is sent to the B terminal in the figure.
  • the function of the pulse detection latch circuit is to convert the pulse signal into a TTL level signal.
  • the RXD signal line is set to a low level, and when the pulse of the B end is detected, the RXD signal line is set. Is high.
  • the pulse detection latch circuit can be implemented by a digital IC (integrated circuit), a CPLD or an FPGA (Field-Programmable Gate Array).
  • the lower part of the figure is the TTL of the transmitting circuit, the TXD signal line and the board (such as the CPU).
  • the transmitting end of the flat serial port is connected, and the C port of the frequency driving module is connected to a transformer primary.
  • the secondary of the transformer is connected with a rectifying and filtering circuit composed of a diode, a capacitor, a resistor and a triode, and the negative output end of the rectifying and filtering circuit and the RS232 level are connected.
  • the receiving end of the serial port (for example, the serial port of the computer) is connected, and the positive output end of the rectifying and filtering circuit is grounded;
  • the D port of the frequency driving module is connected to the primary of the other transformer, and the secondary of the transformer is rectified by a diode, a capacitor, a resistor, and a triode.
  • the filter circuit is connected; the positive output end of the rectification and filtering circuit is connected to the receiving end of the RS232 level serial port (for example, a computer serial port), and the negative output end of the rectifying and filtering circuit is grounded.
  • the basic principle of the transmitting circuit is that the TXD signal of the CPU serial port is sent to the frequency driving module, and the frequency driving module can be implemented by a digital IC, a CPLD or an FPGA.
  • the TXD signal is 0, the high frequency signal (relative to the serial port baud rate) is output from the D terminal.
  • the RS232 positive level is output at the TX terminal; when the TXD signal is 1, The high-frequency signal is converted to output from the C terminal.
  • the transformer is boosted and the rectifier circuit is turned on, the negative level of RS232 is output at the TX terminal, wherein the TX signal line is connected to the serial port receiving end of an external device (for example, a PC).
  • FIG. 4 is a schematic diagram of a serial port isolation circuit according to Embodiment 2 of the present invention, as shown in FIG. 4:
  • the circuit of this embodiment includes two parts of receiving and transmitting circuits:
  • Receiving circuit The circuit is connected in the same way as the receiving circuit of Figure 3. The difference is that the resistors, capacitors and Zener diodes are added to the A and B ports to realize pulse shaping and overvoltage protection, and CPLD (Complex) is used.
  • Programmable Logic Device a complex programmable logic device, implements the function of a "pulse detection latch circuit".
  • the RX signal line on the receiving end transmits an RS232 level signal that is connected to the output of an external device (such as a PC).
  • an external device such as a PC.
  • a pulse is generated at the secondary of the transformer. After diode rectification, the pulse generated by the positive transition (the negative level on RX becomes positive) is sent to the A terminal of the figure, and the pulse generated by the negative transition (positive level of RX becomes negative). Will be sent to the B end of the figure.
  • the function of the "pulse detection latch circuit” is to set the value of the latch to 0 when the pulse of the A terminal is detected, and output it to the RXD signal line, and send it to the serial port receiving end of the CPU; At the end of the pulse, the value of the latch is set to 1 and output to the RXD signal line.
  • the resistor in the figure acts as a current limiting capacitor, the capacitor acts as a shaping, and the protection diode is used to limit the pulse voltage applied to the A and B terminals.
  • Transmitting circuit The circuit is connected in the same way as the transmitting circuit of Figure 3. The difference is that the transistor is used in the primary of the transformer to enhance the driving ability of the signal, and the CPLD is used to realize the function of "frequency generation and driving circuit".
  • the TXD signal of the CPU serial port is sent to the "selector" in the CPLD.
  • the "selector” is added with the "frequency generator", which is equivalent to the frequency drive module of Figure 3.
  • the high frequency signal (relative to the serial port baud rate) is output from the D terminal.
  • the RS232 positive output is output at the TX terminal; when the TXD signal is At 1 o'clock, the high-frequency signal is converted to output from the C terminal.
  • the switching boost circuit composed of the transistor and the transformer the negative level of RS232 is output at the TX terminal.
  • the TX signal line is connected to the serial port receiving end of an external device (such as a PC).
  • the switching boost circuit is used because the circuit has a relatively small dependence on the transformer turns ratio, and the amplitude of the output voltage can be conveniently adjusted by changing the duty ratio of the frequency generator. Since the switching booster circuit is a general-purpose switching power supply technology, it will not be described in detail in this embodiment.
  • the rectifying module in the embodiment of the present invention is not limited to being composed of four diodes.
  • other devices for example, a triode, a field effect transistor
  • the rectifying and filtering circuit is not limited to the electronic device composition shown in the figure.
  • FIG. 5 is a flowchart of a method for implementing serial port isolation according to the present invention. The method is implemented by the serial port isolation circuit, as shown in FIG. 5, and includes the following steps:
  • S20 Select, according to the TTL level signal that receives the output of the TTL level serial port, output the high frequency signal to the second transformer module or the third transformer module, and convert the received high frequency signal into the RS232 negative power by using the second transformer module.
  • the flat signal is output to the receiving end of the RS232 level serial port, and the received high frequency signal is converted into an RS232 positive level signal by the third transformer module, and then output to the RS232 level serial port.
  • the first transformer module outputs RS232 of the RS232 level serial port.
  • the level signal may further include:
  • the first transformer module separates the positive pulse signal and the negative pulse signal, and outputs the same to the pulse detection latch module.
  • the step of converting the positive and negative pulse signals into the TTL level signals by the pulse detection latch module is specifically: the pulse detection latch module converts the positive pulse signal into a TTL low level, and converts the negative pulse signal into a TTL High level.
  • the method before the outputting the high frequency signal to the second transformer module or the third transformer module, the method further includes: amplifying the current of the high frequency signal to enhance the driving capability of the transformer.
  • the above-mentioned embodiment is mainly designed for the three-wire serial communication mode. It does not need to take power from the serial signal line of the external device. By extending, it is also applicable to 5-wire RS232 communication and full-line RS232 communication.
  • the circuit structure is relatively simple, and the return paths of the isolated ends are not connected, which can effectively suppress static electricity and surge, and prevent the ground loop and surge from damaging the serial port of the device or disturbing the normal operation of the device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Dc Digital Transmission (AREA)

Abstract

The present invention provides a method and a circuit for implementing serial port isolation, the method comprises: the RS232 level signal output via RS232 level serial port being converted to a pulse signal by the first transformer module,said pulse signal being converted to Transistor-Transistor Logic(TTL) level signal, and then being output to the TTL level serial port; depending on the received TTL level signal output via the TTL level serial port, choosing to output the high frequency signal to the second transformer module or the third transformer module, the received high frequency signal being converted to the RS232 negative level signal by the said second transformer module, the received high frequency signal being converted to the RS232 positive level signal by the said third transformer module, and then being output to said RS232 level serial port. The present invention can effectively suppress the static electricity and surge, and prevent the damage to the equipment serial port or the interference with equipment normal operation of ground loops and surges.

Description

一种实现串口隔离的方法和串口隔离电路  Method for realizing serial port isolation and serial port isolation circuit
技术领域 Technical field
本发明涉及串口信号隔离技术领域, 特别涉及一种通过变压器来实现串 口隔离的方法和串口隔离电路。  The invention relates to the technical field of serial port signal isolation, in particular to a method for realizing serial port isolation by a transformer and a serial port isolation circuit.
背景技术 Background technique
在通讯设备里, 一般都会在单板上引出一个串口, 作为单板调试和监控 的通讯口。 但是, 有时通讯设备与计算机主机不共地, 或者 2种通讯设备的 地平面之间具有不确定的电势差, 再加上连接串口时通常都是热插拔, 两者 之间的放电和浪涌容易造成串口的损坏, 或者干扰通讯设备的正常运行。  In a communication device, a serial port is usually drawn on the board as a communication port for debugging and monitoring of the board. However, sometimes the communication device is not shared with the host computer, or there is an indeterminate potential difference between the ground planes of the two communication devices. In addition, when the serial port is connected, it is usually hot swapped, and the discharge and surge between the two. It is easy to cause damage to the serial port or interfere with the normal operation of the communication device.
为解决上述问题, 相关技术常釆用串口取电加光电耦合器来形成隔离, 通常做法如下:  In order to solve the above problems, the related art often uses a serial port to take power and a photocoupler to form isolation, and the usual practice is as follows:
以三线串口通讯(即只使用 RX (接收数据) 、 TX (发送数据) 、 GND 信号的串口连接方式)为例, 如图 1所示, 包括串口 RS232电平接口的信号 TXD、 RXD、 GND1 (信号地) , 和串口 TTL (晶体管-晶体管逻辑) 电平接 口的信号 ETXD、 ERXD、 GND2 (信号地) , 光电耦合电路 Ul、 U2、 U3 , 电压反转电路 IC1。 其中, 输入端 TXD的正电平信号一路经过光电耦合电路 U3输出 TTL电平到输出端 ERXD, 另一路经过路径选择电路到光电耦合电 路 U2, 为其提供 RS232正电压; 输入端 TXD负电平信号经过路径选择电路 一路连到光电隔离电路 U1 ,为其提供 RS232负电压,另一路经电压反转电路 IC1到充电电路, 充电之后的电压为光耦模块 U2提供 RS232正电压。  For example, the three-wire serial communication (that is, the serial connection method using only RX (receive data), TX (transmit data), and GND signals), as shown in Figure 1, includes the signals TXD, RXD, and GND1 of the serial RS232 level interface ( Signal ground), and serial port TTL (transistor-transistor logic) level interface signals ETXD, ERXD, GND2 (signal ground), optocoupler circuits Ul, U2, U3, voltage inverting circuit IC1. Wherein, the positive level signal of the input terminal TXD passes through the optocoupler circuit U3 to output the TTL level to the output terminal ERXD, and the other path passes through the path selection circuit to the optocoupler circuit U2 to provide the RS232 positive voltage; the input terminal TXD negative level signal After the path selection circuit is connected to the photoelectric isolation circuit U1, the RS232 negative voltage is supplied thereto, and the other circuit is passed through the voltage inversion circuit IC1 to the charging circuit. The voltage after charging provides the RS232 positive voltage to the optocoupler module U2.
这种做法虽然可行, 但需要从输入端 TXD取电来提供 RS232电平, 使 TXD信号的负载较大。 另外, 输入端的 RS232负电压是由 TXD负电平信号 提供, 如果 TXD信号线上发送连续的字节 0x00 (即除了停止位外 TXD上都 是正电平) , 则提供给 RXD信号线的 RS232负电压有可能不足。  Although this is feasible, it needs to be powered from the input terminal TXD to provide the RS232 level, which makes the TXD signal load larger. In addition, the RS232 negative voltage at the input is provided by the TXD negative level signal. If the TXD signal line transmits consecutive bytes 0x00 (ie, the TXD is positive except for the stop bit), the RS232 negative voltage is supplied to the RXD signal line. There may be insufficient.
发明内容 为了克服上述技术的不足, 本发明提供一种实现串口隔离的方法及串口 隔离电路, 其釆用变压器实现三线串口隔离, 有效的抑制了静电和浪涌, 防 止地线回路和浪涌干扰设备的正常运行。 Summary of the invention In order to overcome the deficiencies of the above technologies, the present invention provides a method for realizing serial port isolation and a serial port isolation circuit, which uses a transformer to realize three-wire serial port isolation, effectively suppressing static electricity and surge, and preventing ground loop and surge interference equipment. normal operation.
为了解决上述技术问题, 本发明提供了一种串口隔离电路, 包括: 接收 电路和发送电路, 其中,  In order to solve the above technical problem, the present invention provides a serial port isolation circuit, including: a receiving circuit and a transmitting circuit, where
所述接收电路包括第一变压器模块和脉冲检测锁存模块,  The receiving circuit includes a first transformer module and a pulse detection latch module.
第一变压器模块, 与 RS232电平串口的输出端连接, 设置为: 接收所述 RS232电平串口输出的 RS232电平信号,将所述 RS232电平信号转变为正负 脉冲信号后输出给脉冲检测锁存模块;  The first transformer module is connected to the output end of the RS232 level serial port, and is configured to: receive the RS232 level signal output by the RS232 level serial port, convert the RS232 level signal into a positive and negative pulse signal, and output the signal to the pulse detection. Latch module
所述脉冲检测锁存模块设置为: 将所述正负脉冲信号转换为 TTL电平信 号后, 输出给 TTL电平串口的输入端;  The pulse detection latch module is configured to: convert the positive and negative pulse signals into TTL level signals, and output the signals to the input end of the TTL level serial port;
所述发送电路包括频率驱动模块、 第二变压器模块和第三变压器模块, 频率驱动模块与所述 TTL电平串口的输出端连接,设置为:接收所述 TTL 电平串口的输出的 TTL电平信号,根据所述 TTL电平信号选择将高频信号输 出给第二变压器模块或第三变压器模块;  The transmitting circuit includes a frequency driving module, a second transformer module and a third transformer module, and the frequency driving module is connected to the output end of the TTL level serial port, and is configured to: receive a TTL level of the output of the TTL level serial port a signal, according to the TTL level signal, selecting to output the high frequency signal to the second transformer module or the third transformer module;
所述第二变压器模块设置为: 将接收到高频信号转换为 RS232负电平信 号后, 输出给所述 RS232电平串口的接收端;  The second transformer module is configured to: convert the received high frequency signal into an RS232 negative level signal, and output the signal to the receiving end of the RS232 level serial port;
所述第三变压器模块, 设置为: 将接收到高频信号转换为 RS232正电平 信号后, 输出给所述 RS232电平串口的接收端。  The third transformer module is configured to: convert the received high frequency signal into an RS232 positive level signal, and output the signal to the receiving end of the RS232 level serial port.
上述串口隔离电路还可具有下面特点: 所述第一变压器模块包括: 第一 变压器和整流模块,  The serial port isolation circuit may further have the following features: the first transformer module includes: a first transformer and a rectifier module,
所述第一变压器的初级通过一电阻与所述 RS232 电平串口的输出端连 接, 所述第一变压器的次级与所述整流模块连接, 所述整流模块与所述脉冲 检测锁存模块连接;  The primary of the first transformer is connected to the output of the RS232 level serial port through a resistor, the secondary of the first transformer is connected to the rectifier module, and the rectifier module is connected to the pulse detection latch module. ;
所述整流模块设置为: 将所述第一变压器输出的正脉冲信号和负脉冲信 号分开后分别输出给所述脉冲检测锁存模块;  The rectifier module is configured to: separately output a positive pulse signal and a negative pulse signal output by the first transformer to the pulse detection latch module;
所述脉冲检测锁存模块是设置为: 将正脉冲信号转化为 TTL低电平, 将 负脉冲信号转化为 TTL高电平。 上述串口隔离电路还可具有下面特点: 所述第一变压器模块包括: 限流 保护模块, 所述整流模块通过所述限流保护模块与所述脉冲检测锁存模块连 接。 The pulse detection latch module is configured to: convert the positive pulse signal to a TTL low level, and convert the negative pulse signal to a TTL high level. The serial port isolation circuit may further have the following features: The first transformer module includes: a current limiting protection module, wherein the rectifier module is connected to the pulse detection latch module by the current limiting protection module.
上述串口隔离电路还可具有下面特点: 所述第二变压器模块包括: 第二 变压器和第一整流滤波模块, 所述第二变压器的初级与所述频率驱动模块连 接, 所述第二变压器的次级与所述第一整流滤波模块连接, 所述第一整流滤 波模块的负输出端与所述 RS232电平串口的接收端连接, 所述第一整流滤波 模块的正输出端接地;  The serial port isolation circuit may further have the following features: the second transformer module includes: a second transformer and a first rectifying and filtering module, a primary of the second transformer is connected to the frequency driving module, and the second transformer is The first rectifying and filtering module is connected to the first rectifying and filtering module, the negative output end of the first rectifying and filtering module is connected to the receiving end of the RS232 level serial port, and the positive output end of the first rectifying and filtering module is grounded;
所述第三变压器模块包括: 第三变压器和第二整流滤波模块, 所述第三 变压器的初级与所述频率驱动模块连接, 所述第三变压器的次级与所述第二 整流滤波模块连接, 所述第二整流滤波模块的正输出端与所述 RS232电平串 口的接收端连接, 所述第二整流滤波模块的负输出端接地。  The third transformer module includes: a third transformer and a second rectifying and filtering module, a primary of the third transformer is connected to the frequency driving module, and a secondary of the third transformer is connected to the second rectifying and filtering module The positive output end of the second rectifying and filtering module is connected to the receiving end of the RS232 level serial port, and the negative output end of the second rectifying and filtering module is grounded.
上述串口隔离电路还可具有下面特点:  The above serial port isolation circuit can also have the following features:
所述第二变压器模块还包括: 放大电流的第一驱动模块, 所述第二变压 器的初级通过所述第一驱动模块与所述频率驱动模块连接;  The second transformer module further includes: a first driving module that amplifies a current, a primary of the second transformer is connected to the frequency driving module by the first driving module;
所述第三变压器模块还包括: 放大电流的第二驱动模块, 所述第三变压 器的初级通过所述第二驱动模块与所述频率驱动模块连接。  The third transformer module further includes: a second driving module that amplifies the current, and the primary of the third transformer is connected to the frequency driving module through the second driving module.
上述串口隔离电路还可具有下面特点:  The above serial port isolation circuit can also have the following features:
所述脉冲检测锁存模块为数字集成电路、 复杂可编程逻辑器件或者现场 可编程门阵列;  The pulse detection latch module is a digital integrated circuit, a complex programmable logic device or a field programmable gate array;
所述频率驱动模块为数字集成电路、 复杂可编程逻辑器件或者现场可编 程门阵列。  The frequency drive module is a digital integrated circuit, a complex programmable logic device, or a field programmable gate array.
一种基于上述的串口隔离电路实现串口隔离的方法, 包括:  A method for implementing serial port isolation based on the serial port isolation circuit described above, including:
通过第一变压器模块将 RS232电平串口输出的 RS232电平信号转变为脉 冲信号,将所述脉冲信号转换为 TTL电平信号, 然后输出给 TTL电平串口的 输入端;  Converting the RS232 level signal outputted by the RS232 level serial port into a pulse signal through the first transformer module, converting the pulse signal into a TTL level signal, and then outputting the signal to the input end of the TTL level serial port;
根据接收到 TTL电平串口的输出的 TTL电平信号,选择将高频信号输出 给第二变压器模块或第三变压器模块, 通过所述第二变压器模块将接收到高 频信号转换为 RS232负电平信号后, 输出给所述 RS232电平串口的接收端, 通过所述第三变压器模块将接收到高频信号转换为 RS232正电平信号后, 输 出给所述 RS232电平串口的接收端。 According to the TTL level signal of the output of the TTL level serial port, the high frequency signal is selected to be output to the second transformer module or the third transformer module, and the second transformer module will receive the high After the frequency signal is converted into an RS232 negative level signal, it is output to the receiving end of the RS232 level serial port, and the received high frequency signal is converted into an RS232 positive level signal by the third transformer module, and then output to the RS232 power. The receiving end of the flat serial port.
上述方法还可具有下面特点: 所述通过第一变压器模块将 RS232电平串 口输出的 RS232电平信号转变为脉冲信号的步骤之后, 还包括: 对所述脉冲 信号进行限流。  The above method may further have the following features: after the step of converting the RS232 level signal outputted by the RS232 level serial port into a pulse signal by the first transformer module, the method further includes: limiting the pulse signal.
上述方法还可具有下面特点: 所述通过第一变压器模块将 RS232电平串 口输出的 RS232电平信号转变为脉冲信号的步骤之后, 还包括:  The above method may further have the following features: after the step of converting the RS232 level signal outputted by the RS232 level serial port into a pulse signal by using the first transformer module, the method further includes:
所述第一变压器模块将正脉冲信号和负脉冲信号分开后, 分别输出给所 述脉冲检测锁存模块,  The first transformer module separates the positive pulse signal and the negative pulse signal, and outputs the same to the pulse detection latch module.
所述脉冲检测锁存模块将所述脉冲信号转换为 TTL电平信号的步骤具体 为: 所述脉冲检测锁存模块将正脉冲信号转化为 TTL低电平, 将负脉冲信号 转化为 TTL高电平。  The step of converting the pulse signal into a TTL level signal by the pulse detection latch module is specifically: the pulse detection latch module converts a positive pulse signal into a TTL low level, and converts the negative pulse signal into a TTL high power level.
上述方法还可具有下面特点: 所述选择将高频信号输出给第二变压器模 块或第三变压器模块的步骤之前, 还包括: 放大所述高频信号的电流。  The above method may further have the following features: Before the step of outputting the high frequency signal to the second transformer module or the third transformer module, the method further includes: amplifying the current of the high frequency signal.
上述实现串口隔离的方法及串口隔离电路, 主要针对三线串口通讯方式 设计, 不需要从外部设备的串口信号线中取电, 通过扩展, 同样适用于 5线 RS232通讯以及全线 RS232通讯。 电路结构比较简单, 被隔离两端返回路径 不连通, 能有效抑制静电和浪涌, 防止地线回路和浪涌损坏设备串口或者干 扰设备的正常运行。 附图概述 The above method for realizing serial port isolation and the serial port isolation circuit are mainly designed for the three-wire serial communication mode, and do not need to take power from the serial signal line of the external device, and the extension is also applicable to the 5-wire RS232 communication and the full-line RS232 communication. The circuit structure is relatively simple, and the return paths of the isolated ends are not connected, which can effectively suppress static electricity and surge, and prevent the ground loop and surge from damaging the normal operation of the serial port or interference device of the device. BRIEF abstract
图 1是相关技术的电路示意图;  1 is a circuit diagram of a related art;
图 2是本发明实施方式的串口隔离电路的原理示意图;  2 is a schematic diagram of the principle of a serial port isolation circuit according to an embodiment of the present invention;
图 3是本发明实施例一的串口隔离电路的示意图;  3 is a schematic diagram of a serial port isolation circuit according to Embodiment 1 of the present invention;
图 4是本发明实施例二的串口隔离电路的示意图; 图 5是本发明实施方式的实现串口隔离的方法的流程图。 4 is a schematic diagram of a serial port isolation circuit according to Embodiment 2 of the present invention; FIG. 5 is a flowchart of a method for implementing serial port isolation according to an embodiment of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。  Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
本发明的实施方式, 通过变压器来实现两端设备之间串口 (如 RS232电 平串口和 TTL电平串口 )信号的隔离, 同时实现串口 RS232电平与 TTL电 平之间的转换。 其中, 在接收电路里, 将 RS232电平的输入信号通过变压器 把信号电压的跳变转换为一个正脉冲或者负脉冲, 再经过整流模块, 将正脉 冲和负脉冲分开后送到脉冲检测锁存模块, 该脉冲检测锁存模块的功能是判 别和锁存输入的脉冲信号, 并向 TTL电平串口的输出 TTL电平信号。在发送 电路里, TTL电平信号送到频率驱动模块, 该频率驱动模块判别输入的 TXD 信号后, 输出一个较高频率的信号到不同的变压器, 经过变压器升压以及整 流电路整流后, 向 RS232电平串口输出 RS232的正电平或负电平。 In the embodiment of the invention, the signal of the serial port (such as the RS232 level serial port and the TTL level serial port) between the two devices is isolated by the transformer, and the conversion between the RS232 level and the TTL level of the serial port is realized at the same time. Wherein, in the receiving circuit, the input signal of the RS232 level is converted into a positive pulse or a negative pulse by the transformer through the transformer, and then the positive pulse and the negative pulse are separated by the rectifier module, and then sent to the pulse detection latch. The module, the function of the pulse detection latch module is to discriminate and latch the input pulse signal, and output a TTL level signal to the TTL level serial port. In the transmitting circuit, the TTL level signal is sent to the frequency driving module. After the frequency driving module discriminates the input TXD signal, it outputs a higher frequency signal to a different transformer. After the transformer is boosted and the rectifier circuit is rectified, the RS232 is sent to the RS232. The level serial port outputs the positive or negative level of RS232.
本发明实施方式的串口隔离电路原理如图 2所示, 包含接收电路和发送 电路两部分电路: The principle of the serial port isolation circuit according to the embodiment of the present invention is as shown in FIG. 2, which includes two parts of the receiving circuit and the transmitting circuit:
图中上面部分是接收电路, 包括: 第一变压器模块和脉冲检测锁存模块, 其中,  The upper part of the figure is a receiving circuit, comprising: a first transformer module and a pulse detecting latch module, wherein
第一变压器模块, 与 RS232 电平串口的输出端连接, 设置为接收所述 RS232电平串口输出的 RS232电平信号,将所述 RS232电平信号转变为正负 脉冲信号后输出给脉冲检测锁存模块;  The first transformer module is connected to the output end of the RS232 level serial port, and is configured to receive the RS232 level signal output by the RS232 level serial port, convert the RS232 level signal into a positive and negative pulse signal, and output the signal to the pulse detection lock. Storage module
所述脉冲检测锁存模块, 设置为将所述正负脉冲信号转换为 TTL电平信 号后, 输出给 TTL电平串口的输入端。  The pulse detection latch module is configured to convert the positive and negative pulse signals into a TTL level signal and output the signal to a TTL level serial port input.
其中, 所述第一变压器模块可以包括: 第一变压器和整流模块, 所述第一变压器的初级通过一电阻与所述 RS232 电平串口的输出端连 接, 所述第一变压器的次级与所述整流模块连接, 所述整流模块与所述脉冲 检测锁存模块连接; The first transformer module may include: a first transformer and a rectification module, wherein a primary of the first transformer is connected to an output end of the RS232 level serial port through a resistor Connected, the secondary of the first transformer is connected to the rectifier module, and the rectifier module is connected to the pulse detection latch module;
所述整流模块, 设置为将所述第一变压器输出的正脉冲信号和负脉冲信 号分开后分别输出给所述脉冲检测锁存模块;  The rectifier module is configured to separately output a positive pulse signal and a negative pulse signal output by the first transformer to the pulse detection latch module;
所述脉冲检测锁存模块, 是设置为将正脉冲信号转化为 TTL低电平, 将 负脉冲信号转化为 TTL高电平。  The pulse detection latch module is configured to convert a positive pulse signal to a TTL low level and a negative pulse signal to a TTL high level.
其中, 所述第一变压器模块还可以包括: 限流保护模块, 所述整流模块 通过所述限流保护模块与所述脉冲检测锁存模块连接。  The first transformer module may further include: a current limiting protection module, wherein the rectifier module is connected to the pulse detection latch module by the current limiting protection module.
图中下面部分是发送电路, 包括: 频率驱动模块、 第二变压器模块和第 三变压器模块, 其中, The lower part of the figure is a transmitting circuit, comprising: a frequency driving module, a second transformer module and a third transformer module, wherein
频率驱动模块,与所述 TTL电平串口的输出端连接,设置为接收所述 TTL 电平串口的输出的 TTL电平信号,根据所述 TTL电平信号选择将高频信号输 出给第二变压器模块或第三变压器模块;  a frequency driving module, connected to the output end of the TTL level serial port, configured to receive a TTL level signal of the output of the TTL level serial port, and outputting the high frequency signal to the second transformer according to the TTL level signal Module or third transformer module;
所述第二变压器模块, 设置为将接收到高频信号转换为 RS232正电平信 号后, 输出给所述 RS232电平串口的接收端;  The second transformer module is configured to convert the received high frequency signal into an RS232 positive level signal, and output the signal to the receiving end of the RS232 level serial port;
所述第三变压器模块, 设置为将接收到高频信号转换为 RS232负电平信 号后, 输出给所述 RS232电平串口的接收端。  The third transformer module is configured to convert the received high frequency signal into an RS232 negative level signal and output the signal to the receiving end of the RS232 level serial port.
其中, 所述第二变压器模块包括: 第二变压器和第一整流滤波模块, 所 述第二变压器的初级与所述频率驱动模块连接, 所述第二变压器的次级与所 述第一整流滤波模块连接, 所述第一整流滤波模块的负输出端与所述 RS232 电平串口的接收端连接, 所述第一整流滤波模块的正输出端接地; 所述第二 变压器模块还可以包括: 放大电流的第一驱动模块, 所述第二变压器的初级 通过所述第一驱动模块与所述频率驱动模块连接。  The second transformer module includes: a second transformer and a first rectifying and filtering module, a primary of the second transformer is connected to the frequency driving module, a secondary of the second transformer, and the first rectifying filter The module is connected, the negative output end of the first rectifying and filtering module is connected to the receiving end of the RS232 level serial port, and the positive output end of the first rectifying and filtering module is grounded; the second transformer module may further include: a first driving module of the current, the primary of the second transformer being connected to the frequency driving module by the first driving module.
所述第三变压器模块可以包括: 第三变压器和第二整流滤波模块, 所述 第三变压器的初级与所述频率驱动模块连接, 所述第三变压器的次级与所述 第二整流滤波模块连接, 所述第二整流滤波模块的正输出端与所述 RS232电 平串口的接收端连接, 所述第二整流滤波模块的负输出端接地。 所述第三变 压器模块还可以包括: 放大电流的第二驱动模块, 所述第三变压器的初级通 过所述第二驱动模块与所述频率驱动模块连接。 The third transformer module may include: a third transformer and a second rectifying and filtering module, wherein a primary of the third transformer is connected to the frequency driving module, and a secondary of the third transformer and the second rectifying and filtering module The positive output end of the second rectifying and filtering module is connected to the receiving end of the RS232 level serial port, and the negative output end of the second rectifying and filtering module is grounded. The third change The voltage module may further include: a second driving module that amplifies the current, and the primary of the third transformer is connected to the frequency driving module through the second driving module.
上述串口隔离电路可以有 2种实现方式: 一是将串口隔离电路集成到单 板里面; 二是将串口隔离电路做成单独的一个小板, 用来连接例如计算机上 的 RS232电平串口和单板上的 TTL电平串口。  The serial port isolation circuit can be implemented in two ways: one is to integrate the serial port isolation circuit into the single board; the other is to make the serial port isolation circuit into a separate small board for connecting, for example, an RS232 level serial port and a single computer. TTL level serial port on the board.
图 3为本发明实施例一的串口隔离电路的示意图, 如图 3所示: 图中上部分是接收电路, 其中, 接收端的 RX信号线上传送的是 RS232 电平信号, 连接到外部设备的 RS232电平串口 (例如 PC机)的输出端; RX 信号通过一个电阻与变压器的初级相连, 电阻的作用是限流和阻抗匹配, 变 压器实现两边信号地的隔离和将 RX信号转换为脉冲信号; 变压器次级输出 的脉冲信号通过四个二极管组成的整流模块整流后, 送给脉冲检测锁存电路 的 A或 B端;脉冲检测锁存电路将 A或 B端的脉冲信号转换为 0或 1的 TTL 电平信号, 通过 RXD信号线送给单板 (例如 CPU ) 的 TTL电平串口的接收 端。 3 is a schematic diagram of a serial port isolation circuit according to Embodiment 1 of the present invention, as shown in FIG. 3: The upper part of the figure is a receiving circuit, wherein an R232 signal line on the receiving end transmits an RS232 level signal, which is connected to an external device. RS232 level serial port (such as PC) output; RX signal is connected to the primary of the transformer through a resistor, the function of the resistor is current limiting and impedance matching, the transformer realizes the isolation of the signal ground on both sides and converts the RX signal into a pulse signal; The pulse signal of the secondary output of the transformer is rectified by a rectifier module composed of four diodes, and then sent to the A or B terminal of the pulse detection latch circuit; the pulse detection latch circuit converts the pulse signal of the A or B terminal into a TTL of 0 or 1. The level signal is sent to the receiving end of the TTL level serial port of the board (such as the CPU) through the RXD signal line.
该接收电路的基本原理是, 当 RX上的电平跳变时, 会在变压器的次级 产生一个脉冲。 经过二极管的整流, 其中的正跳变(RX信号从负电平变为正 电平, 即变压器初级的电流方向从 b至 a的方向变为从 a至 b的方向, 在次 级产生的电压方向为 a, 高电平, b, 低电平)产生的脉冲会送到图中的 A端, 负跳变(RX信号从正电平变为负电平, 即变压器初级的电流方向从 a至 b的 方向变为从 b至 a的方向, 在次级产生的电压方向为 b, 高电平, a, 低电平) 产生的脉冲会送到图中的 B端。 而脉冲检测锁存电路的功能是将脉冲信号转 变为 TTL电平信号, 当检测到 A端的脉冲时, 将 RXD信号线置为低电平, 当检测到 B端的脉冲时, 将 RXD信号线置为高电平。 脉冲检测锁存电路可 以用数字 IC (集成电路)、 CPLD或者 FPGA ( Field-Programmable Gate Array, 现场可编程门阵列) 实现。  The basic principle of the receiving circuit is that when the level on the RX jumps, a pulse is generated at the secondary of the transformer. Through the rectification of the diode, the positive transition (the RX signal changes from a negative level to a positive level, that is, the current direction of the transformer primary changes from the direction of b to a to the direction from a to b, the direction of the voltage generated in the secondary The pulse generated for a, high level, b, low level is sent to the A terminal in the figure, and the negative transition (the RX signal changes from positive to negative, that is, the current direction of the transformer primary is from a to b. The direction of the direction becomes from b to a, and the voltage generated in the secondary direction is b, high level, a, low level. The generated pulse is sent to the B terminal in the figure. The function of the pulse detection latch circuit is to convert the pulse signal into a TTL level signal. When the pulse of the A terminal is detected, the RXD signal line is set to a low level, and when the pulse of the B end is detected, the RXD signal line is set. Is high. The pulse detection latch circuit can be implemented by a digital IC (integrated circuit), a CPLD or an FPGA (Field-Programmable Gate Array).
图中下面部分是发送电路, TXD信号线与单板(例如 CPU ) 的 TTL电 平串口的发送端相连, 频率驱动模块的 C端口与一变压器初级相连, 该变压 器次级与由二极管、 电容、 电阻、 三极管组成的整流滤波电路相连, 整流滤 波电路的负输出端与 RS232电平串口 (例如, 计算机串口) 的接收端相连, 整流滤波电路的正输出端接地; 频率驱动模块的 D端口与另一变压器初级相 连, 该变压器次级与由二极管、 电容、 电阻、 三极管组成的整流滤波电路相 连; 整流滤波电路的正输出端与 RS232电平串口 (例如, 计算机串口) 的接 收端相连, 整流滤波电路的负输出端接地。 The lower part of the figure is the TTL of the transmitting circuit, the TXD signal line and the board (such as the CPU). The transmitting end of the flat serial port is connected, and the C port of the frequency driving module is connected to a transformer primary. The secondary of the transformer is connected with a rectifying and filtering circuit composed of a diode, a capacitor, a resistor and a triode, and the negative output end of the rectifying and filtering circuit and the RS232 level are connected. The receiving end of the serial port (for example, the serial port of the computer) is connected, and the positive output end of the rectifying and filtering circuit is grounded; the D port of the frequency driving module is connected to the primary of the other transformer, and the secondary of the transformer is rectified by a diode, a capacitor, a resistor, and a triode. The filter circuit is connected; the positive output end of the rectification and filtering circuit is connected to the receiving end of the RS232 level serial port (for example, a computer serial port), and the negative output end of the rectifying and filtering circuit is grounded.
该发送电路的基本原理是, CPU 串口的 TXD信号送到频率驱动模块, 该频率驱动模块可以用数字 IC、 CPLD或 FPGA实现。 当 TXD信号为 0时, 高频信号(相对串口波特率而言)从 D端输出, 经过变压器升压以及整流电 路后, 在 TX端输出 RS232的正电平; 当 TXD信号为 1时, 高频信号转为从 C端输出, 经过变压器升压以及整流电路后, 在 TX端输出 RS232的负电平, 其中 TX信号线连接到外部设备 (例如 PC机) 的串口接收端。  The basic principle of the transmitting circuit is that the TXD signal of the CPU serial port is sent to the frequency driving module, and the frequency driving module can be implemented by a digital IC, a CPLD or an FPGA. When the TXD signal is 0, the high frequency signal (relative to the serial port baud rate) is output from the D terminal. After the transformer boost and the rectifier circuit, the RS232 positive level is output at the TX terminal; when the TXD signal is 1, The high-frequency signal is converted to output from the C terminal. After the transformer is boosted and the rectifier circuit is turned on, the negative level of RS232 is output at the TX terminal, wherein the TX signal line is connected to the serial port receiving end of an external device (for example, a PC).
图 4为本发明实施例二的串口隔离电路的示意图, 如图 4所示: 本实施 例的电路, 包含接收和发送两部分电路: 4 is a schematic diagram of a serial port isolation circuit according to Embodiment 2 of the present invention, as shown in FIG. 4: The circuit of this embodiment includes two parts of receiving and transmitting circuits:
接收电路: 电路的连接方式与图 3的接收电路基本一样, 不同之处是在 A、 B端口处加上电阻、 电容和稳压二极管来实现脉冲整形与过压保护, 并釆 用 CPLD ( Complex Programmable Logic Device, 复杂可编程逻辑器件)来实 现 "脉冲检测锁存电路" 的功能。  Receiving circuit: The circuit is connected in the same way as the receiving circuit of Figure 3. The difference is that the resistors, capacitors and Zener diodes are added to the A and B ports to realize pulse shaping and overvoltage protection, and CPLD (Complex) is used. Programmable Logic Device, a complex programmable logic device, implements the function of a "pulse detection latch circuit".
接收端的 RX信号线上传送的是 RS232电平信号, 连接到外部设备(例 如 PC机)的输出端。 当 RX上的电平跳变时, 会在变压器的次级产生一个脉 冲。 经过二极管的整流, 其中的正跳变(RX上负电平变为正电平)产生的脉 冲会送到图中的 A端, 负跳变 (RX上正电平变为负电平)产生的脉冲会送 到图中的 B端。 而 "脉冲检测锁存电路"的功能是, 当检测到 A端的脉冲时, 将锁存器的值设为 0, 并输出到 RXD信号线上, 送给 CPU的串口接收端; 当检测到 B端的脉冲时, 将锁存器的值设为 1 , 并输出到 RXD信号线上。 另 夕卜, 图中的电阻起限流作用, 电容起整形作用, 保护二极管用来限制送给 A、 B端的脉冲电压。 发送电路: 该电路的连接方式与图 3的发送电路基本一样, 不同之处是 在变压器的初级使用三极管来增强信号的驱动能力,并釆用 CPLD来实现 "频 率发生和驱动电路" 的功能。 The RX signal line on the receiving end transmits an RS232 level signal that is connected to the output of an external device (such as a PC). When the level on RX jumps, a pulse is generated at the secondary of the transformer. After diode rectification, the pulse generated by the positive transition (the negative level on RX becomes positive) is sent to the A terminal of the figure, and the pulse generated by the negative transition (positive level of RX becomes negative). Will be sent to the B end of the figure. The function of the "pulse detection latch circuit" is to set the value of the latch to 0 when the pulse of the A terminal is detected, and output it to the RXD signal line, and send it to the serial port receiving end of the CPU; At the end of the pulse, the value of the latch is set to 1 and output to the RXD signal line. In addition, the resistor in the figure acts as a current limiting capacitor, the capacitor acts as a shaping, and the protection diode is used to limit the pulse voltage applied to the A and B terminals. Transmitting circuit: The circuit is connected in the same way as the transmitting circuit of Figure 3. The difference is that the transistor is used in the primary of the transformer to enhance the driving ability of the signal, and the CPLD is used to realize the function of "frequency generation and driving circuit".
CPU串口的 TXD信号送到 CPLD内的 "选择器" 里, 该 "选择器" 加 上 "频率发生器" , 相当于图 3的频率驱动模块。 当 TXD信号为 0时, 高频 信号(相对串口波特率而言)从 D端输出, 经过晶体管和变压器组成的开关 升压电路后, 在 TX端输出 RS232的正电平; 当 TXD信号为 1时, 高频信号 转为从 C端输出, 经过晶体管和变压器组成的开关升压电路后, 在 TX端输 出 RS232的负电平。 其中 TX信号线连接到外部设备 (例如 PC机) 的串口 接收端。 本实施例中釆用开关升压电路, 是由于这种电路对变压器匝数比的 依赖比较小, 而且通过改变频率发生器的占空比, 可以方便的调整输出电压 的幅度。 鉴于开关升压电路属于通用的开关电源技术, 本实施例中就不详述 了。  The TXD signal of the CPU serial port is sent to the "selector" in the CPLD. The "selector" is added with the "frequency generator", which is equivalent to the frequency drive module of Figure 3. When the TXD signal is 0, the high frequency signal (relative to the serial port baud rate) is output from the D terminal. After the switching boost circuit composed of the transistor and the transformer, the RS232 positive output is output at the TX terminal; when the TXD signal is At 1 o'clock, the high-frequency signal is converted to output from the C terminal. After the switching boost circuit composed of the transistor and the transformer, the negative level of RS232 is output at the TX terminal. The TX signal line is connected to the serial port receiving end of an external device (such as a PC). In this embodiment, the switching boost circuit is used because the circuit has a relatively small dependence on the transformer turns ratio, and the amplitude of the output voltage can be conveniently adjusted by changing the duty ratio of the frequency generator. Since the switching booster circuit is a general-purpose switching power supply technology, it will not be described in detail in this embodiment.
本发明实施例中的整流模块不局限于由四个二极管组成, 当然还可以釆 用其他器件 (例如, 三极管、 场效应管) , 整流滤波电路不局限于图中所示 的电子器件组成。  The rectifying module in the embodiment of the present invention is not limited to being composed of four diodes. Of course, other devices (for example, a triode, a field effect transistor) may be used, and the rectifying and filtering circuit is not limited to the electronic device composition shown in the figure.
图 5为本发明的实现串口隔离的方法的流程图, 该方法^^于上述的串 口隔离电路实现的, 如图 5所示, 包括下面步骤: FIG. 5 is a flowchart of a method for implementing serial port isolation according to the present invention. The method is implemented by the serial port isolation circuit, as shown in FIG. 5, and includes the following steps:
S10、 通过第一变压器模块将 RS232电平串口输出的 RS232电平信号转 变为正负脉冲信号后, 将所述正负脉冲信号转换为 TTL电平信号, 然后输出 给 TTL电平串口;  S10. After converting the RS232 level signal outputted by the RS232 level serial port into a positive and negative pulse signal through the first transformer module, converting the positive and negative pulse signals into a TTL level signal, and then outputting the signal to the TTL level serial port;
S20、 根据接收到 TTL电平串口的输出的 TTL电平信号选择将高频信号 输出给第二变压器模块或第三变压器模块, 通过所述第二变压器模块将接收 到高频信号转换为 RS232负电平信号,输出给所述 RS232电平串口的接收端, 通过所述第三变压器模块将接收到高频信号转换为 RS232正电平信号后, 输 出给所述 RS232电平串口。  S20. Select, according to the TTL level signal that receives the output of the TTL level serial port, output the high frequency signal to the second transformer module or the third transformer module, and convert the received high frequency signal into the RS232 negative power by using the second transformer module. The flat signal is output to the receiving end of the RS232 level serial port, and the received high frequency signal is converted into an RS232 positive level signal by the third transformer module, and then output to the RS232 level serial port.
其中, 步骤 S10中所述第一变压器模块将 RS232电平串口输出的 RS232 电平信号转变为正负脉冲信号后, 还可以包括: Wherein, in step S10, the first transformer module outputs RS232 of the RS232 level serial port. After the level signal is converted into a positive and negative pulse signal, it may further include:
所述第一变压器模块将正脉冲信号和负脉冲信号分开后, 分别输出给所 述脉冲检测锁存模块,  The first transformer module separates the positive pulse signal and the negative pulse signal, and outputs the same to the pulse detection latch module.
所述脉冲检测锁存模块将所述正负脉冲信号转换为 TTL电平信号的步骤 具体为: 所述脉冲检测锁存模块将正脉冲信号转化为 TTL低电平, 将负脉冲 信号转化为 TTL高电平。  The step of converting the positive and negative pulse signals into the TTL level signals by the pulse detection latch module is specifically: the pulse detection latch module converts the positive pulse signal into a TTL low level, and converts the negative pulse signal into a TTL High level.
在步骤 S20中, 所述选择将高频信号输出给第二变压器模块或第三变压 器模块之前, 还可以包括: 放大所述高频信号的电流, 以增强变压器的驱动 能力。  In the step S20, before the outputting the high frequency signal to the second transformer module or the third transformer module, the method further includes: amplifying the current of the high frequency signal to enhance the driving capability of the transformer.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 上述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program that instructs the associated hardware to be stored in a computer readable storage medium, such as a read only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
以上实施例仅用以说明本发明的技术方案而非限制, 仅仅参照较佳实施 例对本发明进行了详细说明。 本领域的普通技术人员应当理解, 可以对本发 明的技术方案进行修改或者等同替换, 而不脱离本发明技术方案的精神和范 围, 均应涵盖在本发明的权利要求范围当中。  The above embodiments are only intended to illustrate the technical solutions of the present invention and are not to be construed as limiting the invention. It should be understood by those skilled in the art that the present invention may be modified or equivalently substituted without departing from the spirit and scope of the invention.
工业实用性 上述实施方式主要针对三线串口通讯方式设计, 不需要从外部设备的串 口信号线中取电, 通过扩展, 同样适用于 5线 RS232通讯以及全线 RS232通 讯。 电路结构比较简单, 被隔离两端返回路径不连通, 能有效抑制静电和浪 涌, 防止地线回路和浪涌损坏设备串口或者干扰设备的正常运行。 Industrial Applicability The above-mentioned embodiment is mainly designed for the three-wire serial communication mode. It does not need to take power from the serial signal line of the external device. By extending, it is also applicable to 5-wire RS232 communication and full-line RS232 communication. The circuit structure is relatively simple, and the return paths of the isolated ends are not connected, which can effectively suppress static electricity and surge, and prevent the ground loop and surge from damaging the serial port of the device or disturbing the normal operation of the device.

Claims

权 利 要 求 书 Claim
1、 一种串口隔离电路, 包括: 接收电路和发送电路, 其中,  A serial port isolation circuit, comprising: a receiving circuit and a transmitting circuit, wherein
所述接收电路包括第一变压器模块和脉冲检测锁存模块,  The receiving circuit includes a first transformer module and a pulse detection latch module.
所述第一变压器模块与 RS232电平串口的输出端连接, 设置为: 接收所 述 RS232电平串口输出的 RS232电平信号,将所述 RS232电平信号转变为正 负脉冲信号后输出给所述脉冲检测锁存模块;  The first transformer module is connected to an output end of the RS232 level serial port, and is configured to: receive an RS232 level signal output by the RS232 level serial port, convert the RS232 level signal into a positive and negative pulse signal, and output the same to the office a pulse detection latch module;
所述脉冲检测锁存模块设置为: 将所述正负脉冲信号转换为晶体管 -晶体 管逻辑(TTL ) 电平信号后, 输出给 TTL电平串口的输入端;  The pulse detection latch module is configured to: convert the positive and negative pulse signals into a transistor-transistor logic (TTL) level signal, and output the signal to an input end of the TTL level serial port;
所述发送电路包括频率驱动模块、 第二变压器模块和第三变压器模块, 所述频率驱动模块与所述 TTL电平串口的输出端连接, 设置为: 接收所 述 TTL电平串口的输出的 TTL电平信号, 根据所述 TTL电平信号选择将高 频信号输出给第二变压器模块或第三变压器模块;  The transmitting circuit includes a frequency driving module, a second transformer module and a third transformer module, wherein the frequency driving module is connected to an output end of the TTL level serial port, and is configured to: receive a TTL of the output of the TTL level serial port Level signal, selecting to output the high frequency signal to the second transformer module or the third transformer module according to the TTL level signal;
所述第二变压器模块设置为: 将接收到高频信号转换为 RS232负电平信 号后, 输出给所述 RS232电平串口的接收端;  The second transformer module is configured to: convert the received high frequency signal into an RS232 negative level signal, and output the signal to the receiving end of the RS232 level serial port;
所述第三变压器模块设置为: 将接收到高频信号转换为 RS232正电平信 号后, 输出给所述 RS232电平串口的接收端。  The third transformer module is configured to: convert the received high frequency signal into an RS232 positive level signal, and output the signal to the receiving end of the RS232 level serial port.
2、如权利要求 1所述的串口隔离电路,其中: 所述第一变压器模块包括: 第一变压器和整流模块,  2. The serial port isolation circuit of claim 1, wherein: said first transformer module comprises: a first transformer and a rectifier module,
所述第一变压器的初级通过一电阻与所述 RS232 电平串口的输出端连 接, 所述第一变压器的次级与所述整流模块连接, 所述整流模块与所述脉冲 检测锁存模块连接;  The primary of the first transformer is connected to the output of the RS232 level serial port through a resistor, the secondary of the first transformer is connected to the rectifier module, and the rectifier module is connected to the pulse detection latch module. ;
所述整流模块设置为: 将所述第一变压器输出的正脉冲信号和负脉冲信 号分开后分别输出给所述脉冲检测锁存模块;  The rectifier module is configured to: separately output a positive pulse signal and a negative pulse signal output by the first transformer to the pulse detection latch module;
所述脉冲检测锁存模块是设置为: 将正脉冲信号转化为 TTL低电平, 将 负脉冲信号转化为 TTL高电平。  The pulse detection latch module is configured to: convert the positive pulse signal to a TTL low level, and convert the negative pulse signal to a TTL high level.
3、如权利要求 2所述的串口隔离电路,其中: 所述第一变压器模块包括: 限流保护模块, 所述整流模块通过所述限流保护模块与所述脉冲检测锁存模 块连接。 3. The serial port isolation circuit of claim 2, wherein: said first transformer module comprises: a current limiting protection module, said rectifier module passing said current limiting protection module and said pulse detection latching mode Block connection.
4、 如权利要求 1所述的串口隔离电路, 其中:  4. The serial port isolation circuit of claim 1, wherein:
所述第二变压器模块包括: 第二变压器和第一整流滤波模块, 所述第二 变压器的初级与所述频率驱动模块连接, 所述第二变压器的次级与所述第一 整流滤波模块连接, 所述第一整流滤波模块的负输出端与所述 RS232电平串 口的接收端连接, 所述第一整流滤波模块的正输出端接地;  The second transformer module includes: a second transformer and a first rectifying and filtering module, a primary of the second transformer is connected to the frequency driving module, and a secondary of the second transformer is connected to the first rectifying and filtering module The negative output end of the first rectifying and filtering module is connected to the receiving end of the RS232 level serial port, and the positive output end of the first rectifying and filtering module is grounded;
所述第三变压器模块包括: 第三变压器和第二整流滤波模块, 所述第三 变压器的初级与所述频率驱动模块连接, 所述第三变压器的次级与所述第二 整流滤波模块连接, 所述第二整流滤波模块的正输出端与所述 RS232电平串 口的接收端连接, 所述第二整流滤波模块的负输出端接地。  The third transformer module includes: a third transformer and a second rectifying and filtering module, a primary of the third transformer is connected to the frequency driving module, and a secondary of the third transformer is connected to the second rectifying and filtering module The positive output end of the second rectifying and filtering module is connected to the receiving end of the RS232 level serial port, and the negative output end of the second rectifying and filtering module is grounded.
5、 如权利要求 4所述的串口隔离电路, 其中:  5. The serial port isolation circuit of claim 4, wherein:
所述第二变压器模块还包括: 放大电流的第一驱动模块, 所述第二变压 器的初级通过所述第一驱动模块与所述频率驱动模块连接;  The second transformer module further includes: a first driving module that amplifies a current, a primary of the second transformer is connected to the frequency driving module by the first driving module;
所述第三变压器模块还包括: 放大电流的第二驱动模块, 所述第三变压 器的初级通过所述第二驱动模块与所述频率驱动模块连接。  The third transformer module further includes: a second driving module that amplifies the current, and the primary of the third transformer is connected to the frequency driving module through the second driving module.
6、 如权利要求 1-5任一项所述的串口隔离电路, 其中:  6. The serial port isolation circuit according to any one of claims 1 to 5, wherein:
所述脉冲检测锁存模块为数字集成电路、 复杂可编程逻辑器件或者现场 可编程门阵列; 所述频率驱动模块为数字集成电路、 复杂可编程逻辑器件或者现场可编 程门阵列。  The pulse detection latch module is a digital integrated circuit, a complex programmable logic device or a field programmable gate array; the frequency drive module is a digital integrated circuit, a complex programmable logic device or a field programmable gate array.
7、 一种基于如权利要求 1所述的串口隔离电路实现串口隔离的方法, , 其包括:  7. A method for implementing serial port isolation based on the serial port isolation circuit of claim 1, comprising:
通过第一变压器模块将 RS232电平串口输出的 RS232电平信号转变为脉 冲信号, 将所述脉冲信号转换为 TTL电平信号, 然后输出给 TTL电平串口; 根据接收到 TTL电平串口的输出的 TTL电平信号,选择将高频信号输出 给第二变压器模块或第三变压器模块, 通过所述第二变压器模块将接收到高 频信号转换为 RS232负电平信号后, 输出给所述 RS232电平串口的接收端, 通过所述第三变压器模块将接收到高频信号转换为 RS232正电平信号后, 输 出给所述 RS232电平串口。 The RS232 level signal outputted by the RS232 level serial port is converted into a pulse signal by the first transformer module, and the pulse signal is converted into a TTL level signal, and then output to a TTL level serial port; according to the output of the TTL level serial port received The TTL level signal is selected to output the high frequency signal to the second transformer module or the third transformer module, and the received high frequency signal is converted into the RS232 negative level signal by the second transformer module, and then output to the RS232 power The receiving end of the flat serial port converts the received high frequency signal into an RS232 positive level signal through the third transformer module, and then inputs The RS232 level serial port is sent out.
8、 如权利要求 7 所述的方法, 其在所述通过第一变压器模块将 RS232 电平串口输出的 RS232电平信号转变为脉冲信号的步骤之后, 还包括:  8. The method according to claim 7, further comprising: after the step of converting the RS232 level signal outputted by the RS232 level serial port into a pulse signal by using the first transformer module,
对所述脉冲信号进行限流。  The pulse signal is current limited.
9、如权利要求 7或 8所述的方法,其在所述通过第一变压器模块将 RS232 电平串口输出的 RS232电平信号转变为脉冲信号的步骤之后, 还包括:  The method according to claim 7 or 8, after the step of converting the RS232 level signal outputted by the RS232 level serial port into a pulse signal by the first transformer module, further comprising:
所述第一变压器模块将正脉冲信号和负脉冲信号分开后, 分别输出给所 述脉冲检测锁存模块,  The first transformer module separates the positive pulse signal and the negative pulse signal, and outputs the same to the pulse detection latch module.
所述脉冲检测锁存模块将所述脉冲信号转换为 TTL电平信号的步骤具体 为: 所述脉冲检测锁存模块将正脉冲信号转化为 TTL低电平, 将负脉冲信号 转化为 TTL高电平。  The step of converting the pulse signal into a TTL level signal by the pulse detection latch module is specifically: the pulse detection latch module converts a positive pulse signal into a TTL low level, and converts the negative pulse signal into a TTL high power level.
10、 如权利要求 7所述的方法, 其在所述选择将高频信号输出给第二变 压器模块或第三变压器模块的步骤之前, 还包括:  10. The method of claim 7, further comprising: before the step of selecting to output the high frequency signal to the second transformer module or the third transformer module, further comprising:
放大所述高频信号的电流。  Amplifying the current of the high frequency signal.
PCT/CN2011/081128 2010-11-19 2011-10-21 Method and circuit for implementing serial port isolation WO2012065494A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010551298.7 2010-11-19
CN 201010551298 CN102064821B (en) 2010-11-19 2010-11-19 Method for realizing serial port isolation and serial port isolating circuit

Publications (1)

Publication Number Publication Date
WO2012065494A1 true WO2012065494A1 (en) 2012-05-24

Family

ID=43999952

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/081128 WO2012065494A1 (en) 2010-11-19 2011-10-21 Method and circuit for implementing serial port isolation

Country Status (2)

Country Link
CN (1) CN102064821B (en)
WO (1) WO2012065494A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064821B (en) * 2010-11-19 2013-08-21 中兴通讯股份有限公司 Method for realizing serial port isolation and serial port isolating circuit
CN105183682B (en) * 2015-08-17 2018-07-03 中国科学院自动化研究所 A kind of RS-232 transceivers based on miniature transformer
CN107273330B (en) * 2017-08-18 2023-05-09 安图实验仪器(郑州)有限公司 Three-wire system serial communication interface isolation circuit module
CN109547010A (en) * 2019-01-22 2019-03-29 深圳市菲菱科思通信技术股份有限公司 Passive isolated form RS232 serial communication circuit
CN110378155B (en) * 2019-06-25 2021-06-29 苏州浪潮智能科技有限公司 Server serial port forbidding protection circuit and method
CN110516481A (en) * 2019-08-28 2019-11-29 广州邦讯信息系统有限公司 USB partition method
CN112751574A (en) * 2019-10-31 2021-05-04 上海汽车集团股份有限公司 Differential signal communication isolation circuit and system
CN114371774B (en) * 2021-11-30 2023-02-03 西安航空学院 RS232 interface protection circuit with isolation function

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345524A (en) * 2008-08-25 2009-01-14 苏州大学 Switching equipment for standard serial port
US7714614B2 (en) * 2007-07-25 2010-05-11 Samsung Electronics Co., Ltd. Serial data receiving apparatus and electronic apparatus using same
CN101800600A (en) * 2009-12-30 2010-08-11 航天时代电子技术股份有限公司 Photoelectric conversion circuit and realizing method thereof based on 1553B bus
CN102064821A (en) * 2010-11-19 2011-05-18 中兴通讯股份有限公司 Method for realizing serial port isolation and serial port isolating circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7714614B2 (en) * 2007-07-25 2010-05-11 Samsung Electronics Co., Ltd. Serial data receiving apparatus and electronic apparatus using same
CN101345524A (en) * 2008-08-25 2009-01-14 苏州大学 Switching equipment for standard serial port
CN101800600A (en) * 2009-12-30 2010-08-11 航天时代电子技术股份有限公司 Photoelectric conversion circuit and realizing method thereof based on 1553B bus
CN102064821A (en) * 2010-11-19 2011-05-18 中兴通讯股份有限公司 Method for realizing serial port isolation and serial port isolating circuit

Also Published As

Publication number Publication date
CN102064821A (en) 2011-05-18
CN102064821B (en) 2013-08-21

Similar Documents

Publication Publication Date Title
WO2012065494A1 (en) Method and circuit for implementing serial port isolation
CN102760113B (en) RS232 interface circuit with hotplug support
TWI439077B (en) Power over ethernet powered device circuit and electrostatic discharge protection circuit thereof
TW201537877A (en) Control device and method of power converter and switching power supply
US20170104421A1 (en) Power converter in powered device of power-over-ethernet system and control method thereof
JP2018189466A (en) Semiconductor device, battery monitoring system, and method for activating semiconductor device
US9787184B2 (en) Multiple-phase power circuit
TWI552529B (en) Demodulation circuit and wireless charging device having the same
JP5592596B2 (en) Method and circuit for converting a logic pulse signal
CN107273330B (en) Three-wire system serial communication interface isolation circuit module
CN105391320A (en) Multi-phase power circuit
CN106405205B (en) Zero-crossing detection circuit
WO2023207588A1 (en) Flyback power supply and charger
CN103118143B (en) Multiplex circuit of serial interface and Ethernet interface
CN207184162U (en) One kind is used for active power distribution network intelligent terminal battery isolation monitoring of structures
CN202518896U (en) Photoelectric switch for elevator
CN102783103B (en) Air conditioning machine
CN213960082U (en) Isolation circuit and communication circuit
CN107979381B (en) Data transmission circuit and device
CN203014651U (en) Frequency converter input circuit and frequency converter
CN106488152B (en) High-speed differential signal conversion circuit of remote sensing CCD camera
CN108779990B (en) Public utility meter
CN206743267U (en) A kind of non-isolated power supply circuit and equipment
TWM482195U (en) External signal power coupling device
CN218471302U (en) Isolation circuit

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11842439

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11842439

Country of ref document: EP

Kind code of ref document: A1