KR20000045560A - Automatic rs232/rs485 communication converter - Google Patents

Automatic rs232/rs485 communication converter Download PDF

Info

Publication number
KR20000045560A
KR20000045560A KR1019980062120A KR19980062120A KR20000045560A KR 20000045560 A KR20000045560 A KR 20000045560A KR 1019980062120 A KR1019980062120 A KR 1019980062120A KR 19980062120 A KR19980062120 A KR 19980062120A KR 20000045560 A KR20000045560 A KR 20000045560A
Authority
KR
South Korea
Prior art keywords
transmission
signal
clock
transmission data
reception
Prior art date
Application number
KR1019980062120A
Other languages
Korean (ko)
Other versions
KR100290133B1 (en
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 권상문
Priority to KR1019980062120A priority Critical patent/KR100290133B1/en
Publication of KR20000045560A publication Critical patent/KR20000045560A/en
Application granted granted Critical
Publication of KR100290133B1 publication Critical patent/KR100290133B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Abstract

PURPOSE: An automatic RS232/RS485 communication converter is provided to convert a RS232 signal into a RS485 signal only using transmitting/receiving signals without the necessity of a control signal(/RTS). CONSTITUTION: A RS232 transmitting data input processing unit(10a) converts the transmitting signal of +12 to -12 volts into the electric signal of +5 to 0 volts. A RS232 receiving data output processing unit(20a) converts the receiving signal of 0 to +5 volts into the +12 to -12 volts signals of a RS232 pattern. A clock generation circuit(40) determines communication speed used in the RS232 pattern and a RS485 pattern and generates clocks identical to communication speed determined by a user. A transmitting data shift register(50), synchronized with the clocks generated the clock generation circuit(40), keeps transmitting data, then transmits them in regular sequence after a required time. A transmitting data detection circuit(60) transmits a transmitting/receiving control signal using the clocks generated the clock generation circuit(40) if there is no transmitting data during a required time.

Description

자동 RS232/RS485통신컨버터Automatic RS232 / RS485 Communication Converter

본 발명은 산업용 장비에서 사용되고 있는 RS232방식의 1대1 통신방식을 다대다 통신방식인 RS485방식으로 변환하여 주는 컨버터에 관한 것으로, 특히 제어신호(/RTS)의 필요없이 송/수신신호만을 이용하여 RS232신호를 RS485신호로 자동으로 전환하여 사용가능케 하는 자동 RS232/RS485통신컨버터에 관한 것이다.The present invention relates to a converter for converting the one-to-one communication method of the RS232 method used in industrial equipment to the RS485 method of the many-to-many communication method, in particular by using only the transmission / reception signal without the need of the control signal (/ RTS) The present invention relates to an automatic RS232 / RS485 communication converter that automatically converts an RS232 signal into an RS485 signal for use.

통상 RS232 및 RS485는 OSI 7-layer중 피지컬레이어(Physical Layer)에 해당되는 프로토콜(Protocol)로서 기존에는 대부분의 산업용 장비에서 RS232방식을 주로 사용했으나, 이 프로토콜이 1:1통신밖에 지원하지 않는 제약으로 인해 현재에는 다대다 통신인 RS485방식을 많이 사용하고 있다. 또한, 위의 두 가지 프로토콜을 동시에 지원하는 시스템도 많이 사용하고 있는 데, 이를 위해서는 RS232방식과 RS485방식을 상호 전환시켜 주지 않으면 않된다. 이러한 프로토콜들 사이의 차이를 변환시켜 동시에 두 프로토콜을 지원하도록 하는 장비가 RS232-RS485통신컨버터이다. 이에 대한 종래의 일예가 도 1에 나타나 있다.In general, RS232 and RS485 are protocols corresponding to the physical layer of the OSI 7-layer. In the past, RS232 was mainly used in most industrial equipment. However, this protocol supports only 1: 1 communication. Because of this, RS485, which is a many-to-many communication, is used a lot now. In addition, many systems that support the above two protocols are being used simultaneously. For this purpose, RS232 and RS485 must be switched. The RS232-RS485 communication converter is a device that converts the differences between these protocols and simultaneously supports both protocols. An example of this is shown in FIG. 1.

도 1은 종래의 RS232통신방식과 RS485통신방식을 변환사용할 수 있게 하는 컨버터의 구성을 나타낸 회로도로, 보는 바와 같이 RS232송신데이터입력처리단(10)으로 송신신호(TXD)와 송신제어신호(/RTS)가, RS232수신데이터출력처리단(20)으로는 수신신호(RXD)가 입출력된다. 다시 상세히 부연설명하면, RS232송신데이터입력처리단(10)은 +12~-12V의 송신신호, 제어신호를 +5~0V의 전기적신호로 변환하여 준다. 또한, RS232수신데이터출력처리단(20)은 0~5V의 수신신호를 RS232방식의 +12~-12V신호로 변환하여 주는 기능을 수행한다. 그리고, RS485송수신신호를 주고받는 RS485송수신데이터처리단(30)은 0~5V의 입력신호를 RS485신호로 또한 RS485신호를 0~5V의 출력신호로 전환하여 주는 부분으로, 그에 입력된 송수신제어신호가 송신모드일 때만 송신을 하게 되고, 보통상태에서는 수신상태로 전환되어 RS485통신라인상의 다른 곳에서 송신되는 데이터와 전기적으로 충돌하지 않토록 한다.Fig. 1 is a circuit diagram showing the configuration of a converter which can convert and use the conventional RS232 communication method and the RS485 communication method. As shown, the transmission signal TXD and the transmission control signal (/) are transmitted to the RS232 transmission data input processing stage 10. The RTS receives and receives the received signal RXD from the RS232 received data output processing stage 20. In detail, the RS232 transmission data input processing stage 10 converts a transmission signal of +12 to -12V and a control signal into an electrical signal of +5 to 0V. In addition, the RS232 receiving data output processing stage 20 performs a function of converting the received signal of 0 ~ 5V into +12 ~ -12V signal of the RS232 method. The RS485 transmit / receive data processing stage 30 that transmits and receives the RS485 transmit / receive signal converts an input signal of 0 to 5V into an RS485 signal and an RS485 signal into an output signal of 0 to 5V. Is transmitted only when is in transmission mode, and in normal state, it is converted to receiving mode so that it does not electrically collide with data transmitted from other places on RS485 communication line.

위와 같이 RS232신호중 통신에 사용하는 신호는 송신신호(/TXD), 수신신호(/RXD)이며, 1:1통신방식이라 송수신모드의 결정없이 한곳에서 보내는 데이터는 다른곳의 수신쪽으로, 또한 한곳에서의 수신데이터는 다른곳의 송신쪽으로 연결되어 송수신하게 된다. 이에 반하여, RS485방식은 다대다방식이라 통신상의 모든 기기들은 송신측이 될 수 있고 반면에 수신측이 될 수도 있다. 따라서, 이 프로토콜에서는 보통상태에서는 수신모드로 있다가 송신할 데이터가 있으면 송신모드로 변환하여 데이터를 송신하게 된다. 물론, 이 송신데이터를 받기 위하여 다른 모든기기들도 보통상태하에는 수신모드로 있게 된다.Signals used for communication among the RS232 signals as above are the transmission signal (/ TXD) and the reception signal (/ RXD), and because of the 1: 1 communication method, data sent from one place without a transmission / reception mode is decided to the other side and from one place. Received data of the other side is connected to the sender to send and receive. In contrast, the RS485 method is a many-to-many method, so all the devices in the communication can be the sender and the receiver. Therefore, in this protocol, the data is transmitted in the receive mode in the normal state and then converted to the transmit mode if there is data to be transmitted. Of course, all other devices are also in receive mode under normal conditions in order to receive this transmission data.

따라서, RS485방식으로 변환하였을 경우에는 다른 통신기기와 전기적으로 충돌이 일어나지 않토록 하여야 한다. 그를 위해서 위와 같은 구성을 갖는 기존의 시스템에서는 송수신제어신호가 필요하였다. 즉, 제어신호(/RTS)를 송신전에 동작시켜 송신모드로 변환한 후 송신하게 되어 있었다. 따라서, 기존의 컨버터는 송수신모드 결정을 위한 송수신제어신호 또는 다른 제어신호가 필요할 뿐아니라, 제어신호와 송수신데이터 사이의 타이밍을 맞추어야 송신데이터가 정확히 전달되게 된다. 이러한 문제를 해결하기 위해서는 제어신호를 제어하는 별도의 소프트웨어를 사용해야 하고, 이 때문에 통신기기의 비용이 상승하는 문제를 야기하게 되었다. 더욱이, RS232신호중 송수신제어신호를 지원하지 않은 기기나, 이를 지원하더라도 소프트웨어적으로 프로그램하기 어려운 장비에는 그 사용이 제한되는 단점도 있었다.Therefore, in case of converting to RS485 type, it should be prevented from electric collision with other communication equipment. For this purpose, a transmission / reception control signal is required in the existing system having the above configuration. In other words, the control signal / RTS was operated before transmission to convert the transmission signal to transmission mode before transmission. Therefore, the conventional converter not only needs a transmission / reception control signal or other control signal for determining the transmission / reception mode, but also needs to match the timing between the control signal and the transmission / reception data so that the transmission data is correctly transmitted. In order to solve this problem, a separate software for controlling a control signal must be used, which causes a problem of an increase in the cost of a communication device. In addition, the use of the RS232 signal that does not support the transmission and reception control signal, or equipment that is difficult to program in software even if it supports the disadvantage that the use is limited.

따라서, 본 발명의 목적은 상기에서와 같은 종래의 결점을 해소하기 위해서 안출한 것으로서, 제어신호(/RTS)의 필요없이 송/수신신호만을 이용하여 RS232신호를 RS485신호로 자동으로 전환하여 사용가능케 하는 자동 RS232/RS485통신컨버터를 제공함에 있다.Accordingly, an object of the present invention is to solve the above-mentioned drawbacks, and it is possible to automatically convert RS232 signals to RS485 signals using only transmit / receive signals without the need for control signals (/ RTS). To provide automatic RS232 / RS485 communication converter.

도 1은 종래의 RS232통신방식과 RS485통신방식을 변환사용할 수 있게 하는 컨버터의 구성을 나타낸 회로도,1 is a circuit diagram showing the configuration of a converter that can convert and use the conventional RS232 communication method and RS485 communication method,

도 2는 본 발명에 따른 RS232통신방식과 RS485통신방식을 자동으로 절환사용할 수 있도록 해주는 컨버터의 구성을 나타낸 회로도,Figure 2 is a circuit diagram showing the configuration of the converter to enable the automatic switching between the RS232 communication method and the RS485 communication method according to the present invention,

도 3은 도 2에 도시된 클럭생성회로의 블럭도,3 is a block diagram of the clock generation circuit shown in FIG.

도 4는 도 2에 도시된 송신데이터검출회로의 구성를 나타낸 블럭도.4 is a block diagram showing the configuration of the transmission data detection circuit shown in FIG.

*도면의 주요부분에 대한 부호설명* Code descriptions for the main parts of the drawings

10,10a : RS232송신데이터입력처리단10,10a: RS232 transmission data input processing stage

20,20a : RS232수신데이터출력처리단20,20a: RS232 receiving data output processing stage

30,30a : RS485송수신데이터처리단30,30a: RS485 transmission / reception data processing stage

40 : 클럭생성회로 41 : 클럭분주회로40: clock generation circuit 41: clock division circuit

42 : 클럭선택회로 50 : 송신데이터시프트레지스터42: clock selection circuit 50: transmission data shift register

60 : 송신데이터검출회로 61 : 송신완료검출부60: transmission data detection circuit 61: transmission completion detection unit

62 : 송수신모드제어신호발생부62: transmission and reception mode control signal generator

이와 같은 목적을 달성하기 위한 본 발명에 따른 자동 RS232/RS485통신컨버터는 송신신호를 0~5V의 전기적신호로 변환하여 출력하는 RS232송신데이터입력처리단과, 0~5V의 수신신호를 RS232방식의 -12~12V신호로 변환하여 주는 RS232수신데이터출력처리단을 구비하고, RS232통신방식과 RS485통신방식을 전환하여 사용가능케 하는 통신컨버터에 있어서, RS232방식 및 RS485방식에서 사용되는 통신속도를 결정하여 사용자가 정한 통신속도와 동일한 클럭을 발생시키는 클럭생성회로; 상기 클럭생성회로에서 발생된 클럭에 동기하여 상기 RS232송신데이터입력처리단에서 입력된 송신데이터를 일정시간 지연시켜 내보내는 송신데이터시프트레지스터; 송신데이터가 입력되면 송신모드로 전환하는 신호를 발생시키고, 상기 클럭발생회로에서 발생된 클럭을 이용하여 일정시간동안 송신데이터가 입력되지 않으면 수신모드로 절환하는 송수신제어신호를 내보내는 송신데이터검출회로; 및 상기 송신데이터검출회로로부터 입력된 송수신제어신호가 송신모드전환신호일 경우에만 송신상태로 전환되며, 보통상태에서는 수신상태로 유지되는 RS485송수신데이터처리단을 포함한다.In order to achieve the above object, the automatic RS232 / RS485 communication converter has an RS232 transmission data input processing stage for converting a transmission signal into an electrical signal of 0-5V and outputs a 0-5V reception signal of the RS232 method. RS232 receiving data output processing stage that converts into 12 ~ 12V signal, and converts RS232 communication method and RS485 communication method to be used, and determines the communication speed used in RS232 method and RS485 method. A clock generation circuit for generating a clock equal to a predetermined communication speed; A transmission data shift register synchronously delaying the transmission data input from the RS232 transmission data input processing terminal for a predetermined time in synchronization with a clock generated by the clock generation circuit; A transmission data detection circuit for generating a signal for switching to a transmission mode when the transmission data is input, and for sending a transmission / reception control signal for switching to the reception mode if the transmission data is not input for a predetermined time using a clock generated by the clock generation circuit; And an RS485 transmit / receive data processing stage that switches to the transmit state only when the transmit / receive control signal input from the transmit data detection circuit is the transmit mode change signal, and which is maintained in the receive state in the normal state.

이하, 본 발명의 바람직한 실시예를 첨부된 도면들에 의거하여 상세히 설명한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명에 따른 RS232통신방식과 RS485통신방식을 자동으로 절환사용할 수 있도록 해주는 컨버터의 구성을 나타낸 회로도이다.Figure 2 is a circuit diagram showing the configuration of the converter to enable the automatic switching between the RS232 communication method and the RS485 communication method according to the present invention.

도시한 바와 같이, 본 컨버터는 +12~-12V의 송신신호를 +5~0V의 전기적신호로 변환하는 RS232송신데이터입력처리단(10a) 및, 0~5V의 수신신호를 RS232방식의 +12~-12V신호로 변환하여 주는 RS232수신데이터출력처리단(20a)을 구비하고 있다. 그리고, RS232방식 및 RS485방식에서 사용되는 통신속도를 결정하여 사용자가 정한 통신속도와 동일한 클럭을 발생시켜 주는 클럭생성회로(40)도 구비하고 있다. 클럭생성회로(40)에 대해서는 도 3을 참조하여 보다 상세히 설명한다. 이 클럭생성회로(40)에서 발생된 클럭에 동기하여 송신데이터를 보관하고 있다가 일정시간 후에 다시 순서대로 내보내는 송신데이터시프트레지스터(Shift Register)(50) 및, 송신데이터가 입력될 경우 송신모드로 전환하는 신호를 발생시킨 후 클럭발생회로(40)에서 발생된 클럭을 이용하여 일정시간동안 송신데이터가 없으면 수신모드로 절환하는 송수신제어신호를 내보내는 송신데이터검출회로(60)도 구비하고 있다. 이 송신데이터검출회로(60)에 대한 상세한 설명은 도 4에서 하기로 한다. 송신데이터검출회로(60)로부터 입력된 송수신제어신호와 송신데이터시프트레지스터(50)에서 온 송신데이터등의 0~5V 입력신호를 RS485신호로 변환하는 한편, RS485신호를 0~5V의 수신신호로 변환하는 RS485송수신데이터처리단(30a)을 구비하고 있다. 이 RS485송수신데이터처리단(30a)은 입력된 송수신제어신호가 송신모드일 경우만 송신상태로 전환되며, 보통상태에서는 수신상태로 유지되어 RS485통신라인상의 다른 곳에서 송신하는 데이터와 충돌하지 않토록 되어 있다.As shown in the drawing, the converter converts a transmission signal of +12 to -12V into an electrical signal of +5 to 0V and an RS232 transmission data input processing stage 10a, and converts a reception signal of 0 to 5V into a +12 RS12 system. RS232 receiving data output processing stage 20a for converting into a -12V signal is provided. A clock generation circuit 40 is also provided which determines the communication speed used in the RS232 and RS485 methods and generates a clock equal to the communication speed determined by the user. The clock generation circuit 40 will be described in more detail with reference to FIG. 3. The transmission data shift register 50 stores the transmission data in synchronism with the clock generated by the clock generation circuit 40 and sends it out in sequence again after a predetermined time. A transmission data detection circuit 60 is also provided which sends out a transmission / reception control signal for switching to the reception mode if there is no transmission data for a predetermined time using the clock generated by the clock generation circuit 40 after generating the switching signal. A detailed description of this transmission data detection circuit 60 will be given later with reference to FIG. Transmit 0-5V input signals such as transmit / receive control signals input from the transmit data detection circuit 60 and transmit data from the transmit data shift register 50 into RS485 signals, and convert RS485 signals into receive signals of 0-5V. An RS485 transmission / reception data processing stage 30a is provided. The RS485 transmit / receive data processing stage 30a switches to the transmit state only when the input / receive control signal is in the transmit mode. In the normal state, the RS485 transmit / receive data processing stage 30a does not collide with data transmitted elsewhere on the RS485 communication line. It is.

도 3은 도 2에 도시된 클럭생성회로의 블럭도로, 보는 바와 같이 클럭생성회로는 클럭을 입력받아 분주하여 256분주까지의 클럭을 발생하는 클럭분주회로(41)와, 클럭분주회로(41)에서 발생된 클럭과 사용자가 원하는 통신속도를 비교하여 동일한 통신속도를 선택하여 출력하는 클럭선택회로(42)로 구성되어 있다. 특히, 클럭분주회로(41)는 2진 카운터회로로 구성되어 클럭(0.1536MHz)을 입력받아 2분주에서 256분주까지의 클럭, 즉 76800~600Hz의 클럭을 발생시켜 RS232방식에서 주로 사용되는 9600bps를 포함한 76800bps부터 600bps까지의 통신속도와 동일한 클럭을 발생시켜 준다.FIG. 3 is a block diagram of the clock generation circuit shown in FIG. 2, as shown in FIG. 2, in which the clock generation circuit receives a clock and divides the clock to generate up to 256 divisions, and a clock division circuit 41. It consists of a clock selection circuit 42 for selecting and outputting the same communication speed by comparing the clock generated by the user and the desired communication speed. In particular, the clock divider circuit 41 is composed of a binary counter circuit and receives a clock (0.1536 MHz) to generate a clock from 2 to 256 divisions, that is, a clock of 76800 to 600 Hz, thereby generating 9600bps, which is mainly used in the RS232 method. It generates the same clock as the communication speed from 76800bps to 600bps.

도 4는 도 2에 도시된 송신데이터검출회로의 구성를 나타낸 블럭도이다.4 is a block diagram showing the configuration of the transmission data detection circuit shown in FIG.

송신데이터검출회로는 송신신호를 받아 일정시간 송신데이터의 변화를 검출하여 송신 및 수신모드의 전환을 결정하는 회로로, 일정시간 송신데이터의 입력이 없으면 송신완료신호를 발생하는 송신완료검출부(61)와, 송신완료검출부(61)로부터 송신완료신호를 입력받으면 전술한 RS485송수신데이터처리단이 수신모드로 변환하도록 제어신호를 출력하는 송수신모드제어신호발생부(62)로 구성되어 있다.The transmission data detection circuit detects a change in the transmission data for a certain period of time in response to the transmission signal and determines switching between transmission and reception modes. The transmission completion detection unit 61 generates a transmission completion signal if there is no input of transmission data for a predetermined time. And a transmission / reception mode control signal generation section 62 which outputs a control signal so that the above-mentioned RS485 transmission / reception data processing stage switches to the reception mode when the transmission completion signal is received from the transmission completion detection section 61.

위의 송신완료검출부(61)는 2진 카운터회로를 사용하여 원하는 시간동안 데이터입력이 없으면 송수신모드제어신호발생부(62)의 Clear단으로 송신완료신호를 발생시키게 된다. 더 상세히 설명하면, 이 송신완료검출부(61)의 CLK단은 기정된 통신속도에 따라 클럭발생회로에서 발생된 클럭이 입력되고, 그 Clear단에는 송신데이터가 입력되어 일정시간 송신데이터의 전기적인 변화가 없을 때에는 카운터가 증가하여 송신완료신호를 송수신모드제어신호부(62)로 내보내게 된다. 반면에, 전기적인 변화가 있는 경우, 즉 송신데이터의 값이 변하는 경우에는 카운터를 리셋(Reset)시켜 계속적으로 송신할 데이터가 있음을 알려주게 된다. 즉, RS232신호는 스타트비트(Start Bit)와 스톱비트(Stop Bit)가 있어, 한번은 0~5V사이의 전기적인 변화가 발생되게 되어 있으며, 데이터의 크기가 11비트(Bit)로 되어 있으므로 스타트비트발생후 11비트동안 전기적인 변화가 없으면 송신이 끝났음을 인식할 수 있게 된다. 이러한 특성을 이용하여 송신완료검출부(61)의 CLK단 입력으로 클럭발생회로에서 발생된 클럭을 입력하여 주고, 그 Clear단에는 송신데이터를 입력하여 주면 송신데이터의 전기적인 변화가 발생할때 카운터는 리셋되어 송신하고자 하는 데이터가 있음을 인식할 수 있고, 송신데이터의 전기적인 변화가 11클럭(Clock)이상 발생하지 않으면 더 이상 보낼 데이터가 없음을 알 수 있게 된다. 이러한 정보는 플립플롭(Flip-Flop)으로 구성된 송수신모드제어신호부(62)의 Clear단으로 입력되고, CLK단에는 송신데이터가 입력된다. 이때, 송신데이터가 발생하면 송수신모드제어신호부(62)의 CLK단으로 입력되어 송신모드신호를 내보내게 되고, 반면에 송수신모드제어신호부(62)의 Clear단에 송신완료검출부(61)로부터 송신완료신호가 입력되면 이 플립플롭회로는 리셋되어 수신모드전환신호를 내보내게 된다.The above transmission completion detection unit 61 generates a transmission completion signal to the clear terminal of the transmission / reception mode control signal generation unit 62 when there is no data input for a desired time using a binary counter circuit. In more detail, the CLK terminal of the transmission completion detection unit 61 receives a clock generated by a clock generation circuit according to a predetermined communication speed, and the transmission data is input to the clear terminal, thereby causing electrical change of transmission data for a predetermined time. If is not found, the counter is incremented and the transmission completion signal is sent to the transmission / reception mode control signal unit 62. On the other hand, when there is an electrical change, that is, when the value of the transmission data is changed, the counter is reset to indicate that there is data to be continuously transmitted. In other words, RS232 signal has Start Bit and Stop Bit, and electrical change between 0 ~ 5V is generated at one time. Since the size of data is 11 bit, it is Start Bit. If there is no electrical change for 11 bits after generation, it can recognize that the transmission is completed. Using this characteristic, the clock generated by the clock generation circuit is input to the CLK stage input of the transmission completion detector 61, and when the transmit data is input to the clear stage, the counter is reset when an electrical change occurs in the transmission data. It is possible to recognize that there is data to be transmitted, and if the electrical change of the transmission data does not occur more than 11 clocks, it can be seen that there is no more data to send. This information is input to the Clear stage of the transmit / receive mode control signal section 62 constituted by flip-flops, and the transmission data is input to the CLK stage. At this time, when the transmission data is generated, it is input to the CLK terminal of the transmission / reception mode control signal section 62 to send out the transmission mode signal, while from the transmission completion detection section 61 to the Clear terminal of the transmission / reception mode control signal section 62. When the transmission completion signal is input, the flip-flop circuit is reset to emit the reception mode change signal.

이하부터는 본 발명의 작동에 대해 상세히 설명한다.Hereinafter, the operation of the present invention will be described in detail.

송신데이터가 RS232송신데이터입력처리단(10a)에 입력되면 그 -12~12V의 송신신호(TXD)는 0~5V의 전기신호로 변환되어 송신데이터시프트레지스터(50) 및 송신데이터검출회로(60)에 입력된다. 그러면, 송신데이터검출회로(60)는 위에서 설명했듯이 송신모드로 전환하는 신호를 발생하여 RS485송수신데이터처리단(30a)으로 내보내게 된다. 그로 인해, RS485송수신데이터처리단(30a)은 송신모드로 전환되고, 이 송신모드로 전환하여 송신하기까지 시간을 맞추기 위하여 송신데이터시프트레지스터(50)로 입력된 송신데이터는 클럭생성회로(40)에서 발생한 클럭신호에 따라 동기되어 지연되어 RS485송수신데이터처리단(30a)으로 전송되게 된다.When the transmission data is input to the RS232 transmission data input processing terminal 10a, the -12 to 12V transmission signal TXD is converted into an electrical signal of 0 to 5V, so that the transmission data shift register 50 and the transmission data detection circuit 60 are transmitted. ) Is entered. Then, as described above, the transmission data detection circuit 60 generates a signal for switching to the transmission mode and sends it to the RS485 transmission / reception data processing terminal 30a. Therefore, the RS485 transmit / receive data processing stage 30a switches to the transmission mode, and the transmission data inputted to the transmission data shift register 50 in order to adjust the time until the transmission is switched to this transmission mode is transmitted to the clock generation circuit 40. The delayed signal is transmitted to the RS485 transmission / reception data processing terminal 30a in synchronism with the clock signal generated in FIG.

한편, 송신데이터검출회로(60)에 송신데이터가 일정시간동안 입력되지 않으면 그 송신완료검출부(61)에서는 송신완료신호를 출력하게 되고, 그 신호를 받은 송수신모드제어신호발생부(62)에서는 수신모드전환신호를 발생시켜 RS485송수신데이터처리단(30a)으로 내보내게 된다. 이에 따라 RS485송수신데이터처리단(30a)은 수신모드로 전환되게 된다.On the other hand, if transmission data is not input to the transmission data detection circuit 60 for a predetermined time, the transmission completion detection unit 61 outputs a transmission completion signal, and the transmission / reception mode control signal generation unit 62 receiving the signal receives the reception completion signal. The mode switching signal is generated and sent to the RS485 transmission / reception data processing terminal 30a. Accordingly, the RS485 transmit / receive data processing stage 30a is switched to the receive mode.

이상 서술한 바와 같이, 본 발명에 따른 자동 RS232/RS485통신컨버터는 제어신호(/RTS)의 필요없이 송/수신신호만을 가지고 RS232신호를 RS485신호로 자동으로 전환하여 즉시 통신기기를 사용가능하게 하는 잇점을 가지고 있다. 특히, 하드웨어로 두 통신방식의 자동전환을 구현함에 의해 별도의 제어소프트웨어를 필요하지 않아 시스템을 보다 안정적으로 유지관리할 수 있는 효과를 가지고 있다. 따라서, 본 발명은 궁극적으로 송수신데이터의 신속정확도와 통신기기의 신뢰성을 향상시킬 수 있을 것으로 보인다.As described above, the automatic RS232 / RS485 communication converter according to the present invention automatically converts an RS232 signal into an RS485 signal with only a transmit / receive signal without the need for a control signal (/ RTS) to immediately enable a communication device. It has an advantage. In particular, by implementing automatic switching of the two communication methods in hardware, it does not need a separate control software has the effect of more stable maintenance of the system. Therefore, the present invention will ultimately improve the fast accuracy of the transmission and reception data and the reliability of the communication device.

Claims (3)

송신신호를 0~5V의 전기적신호로 변환하여 출력하는 RS232송신데이터입력처리단과, 0~5V의 수신신호를 RS232방식의 -12~12V신호로 변환하여 주는 RS232수신데이터출력처리단을 구비하고, RS232통신방식과 RS485통신방식을 전환하여 사용가능케 하는 통신컨버터에 있어서,RS232 transmission data input processing stage for converting and transmitting the transmission signal into 0-5V electrical signal, and RS232 receiving data output processing stage for converting the 0-5V received signal into -12-12V signal of RS232 type. In the communication converter to switch between the RS232 communication method and RS485 communication method, RS232방식 및 RS485방식에서 사용되는 통신속도를 결정하여 사용자가 정한 통신속도와 동일한 클럭을 발생시키는 클럭생성회로;A clock generation circuit for determining a communication speed used in the RS232 method and the RS485 method to generate a clock equal to a communication speed determined by a user; 상기 클럭생성회로에서 발생된 클럭에 동기하여 상기 RS232송신데이터입력처리단에서 입력된 송신데이터를 일정시간 지연시켜 내보내는 송신데이터시프트레지스터;A transmission data shift register synchronously delaying the transmission data input from the RS232 transmission data input processing terminal for a predetermined time in synchronization with a clock generated by the clock generation circuit; 송신데이터가 입력되면 송신모드로 전환하는 신호를 발생시키고, 상기 클럭발생회로에서 발생된 클럭을 이용하여 일정시간동안 송신데이터가 입력되지 않으면 수신모드로 절환하는 송수신제어신호를 내보내는 송신데이터검출회로; 및A transmission data detection circuit for generating a signal for switching to a transmission mode when the transmission data is input, and for sending a transmission / reception control signal for switching to the reception mode if the transmission data is not input for a predetermined time using a clock generated by the clock generation circuit; And 상기 송신데이터검출회로로부터 입력된 송수신제어신호가 송신모드전환신호일 경우에만 송신상태로 전환되며, 보통상태에서는 수신상태로 유지되는 RS485송수신데이터처리단을 포함하는 자동 RS232/RS485통신컨버터.And an RS485 transmission / reception data processing stage which is switched to the transmission state only when the transmission / reception control signal inputted from the transmission data detection circuit is the transmission mode switching signal, and is maintained in the reception state in the normal state. 제 1항에 있어서, 상기 클럭생성회로는 클럭을 입력받아 분주하여 256분주까지의 클럭을 발생하는 클럭분주회로와, 이 클럭분주회로에서 발생된 클럭과 사용자가 원하는 통신속도를 비교하여 동일한 통신속도를 선택하여 출력하는 클럭선택회로로 구성된 것을 특징으로 하는 자동 RS232/RS485통신컨버터.The clock generation circuit of claim 1, wherein the clock generation circuit receives and divides a clock to generate a clock of up to 256 divisions, and compares the clock generated by the clock division circuit with a communication rate desired by a user. Automatic RS232 / RS485 communication converter, characterized in that consisting of a clock selection circuit for outputting. 제 1항에 있어서, 상기 송신데이터검출회로는 일정시간 송신데이터의 입력이 없으면 송신완료신호를 발생하는 송신완료검출부와, 이 송신완료검출부로부터 송신완료신호를 입력받으면 상기 RS485송수신데이터처리단이 수신모드로 전환하도록 제어신호를 출력하는 송수신모드제어신호발생부로 구성된 것을 특징으로 하는 자동 RS232/RS485통신컨버터.2. The transmission data detection circuit of claim 1, wherein the transmission data detection circuit receives a transmission completion detection unit that generates a transmission completion signal when there is no input of transmission data for a predetermined time, and the RS485 transmission / reception data processing terminal receives a transmission completion signal from the transmission completion detection unit. An automatic RS232 / RS485 communication converter, characterized in that the transmission and reception mode control signal generator for outputting a control signal to switch to the mode.
KR1019980062120A 1998-12-30 1998-12-30 Auto RS232 / RS485 Communication Converter KR100290133B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980062120A KR100290133B1 (en) 1998-12-30 1998-12-30 Auto RS232 / RS485 Communication Converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980062120A KR100290133B1 (en) 1998-12-30 1998-12-30 Auto RS232 / RS485 Communication Converter

Publications (2)

Publication Number Publication Date
KR20000045560A true KR20000045560A (en) 2000-07-25
KR100290133B1 KR100290133B1 (en) 2001-05-15

Family

ID=19568814

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980062120A KR100290133B1 (en) 1998-12-30 1998-12-30 Auto RS232 / RS485 Communication Converter

Country Status (1)

Country Link
KR (1) KR100290133B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611545A (en) * 2012-02-28 2012-07-25 中国北车集团大连机车车辆有限公司 Hardware-based RS485 (radio sensing 485) automatic transceiving control method and circuit
KR101400688B1 (en) * 2013-03-19 2014-05-29 주식회사 리모텍 Converter

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102233681B1 (en) 2020-07-28 2021-03-30 주식회사 세화넥스텍 Communication Converter with built-in address setting
KR102257062B1 (en) 2020-10-06 2021-06-02 주식회사 세화넥스텍 Communication method of communication converter with address setting function

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06152694A (en) * 1992-11-12 1994-05-31 Stanley Electric Co Ltd Transmission data signal converter
JP3201666B2 (en) * 1993-01-26 2001-08-27 松下電工株式会社 Interface conversion circuit for half-duplex serial transmission
JPH07288559A (en) * 1994-04-14 1995-10-31 Rika Kogyo Kk Communication use signal converter
JPH10290269A (en) * 1997-04-15 1998-10-27 Nec Corp Interface conversion circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611545A (en) * 2012-02-28 2012-07-25 中国北车集团大连机车车辆有限公司 Hardware-based RS485 (radio sensing 485) automatic transceiving control method and circuit
KR101400688B1 (en) * 2013-03-19 2014-05-29 주식회사 리모텍 Converter

Also Published As

Publication number Publication date
KR100290133B1 (en) 2001-05-15

Similar Documents

Publication Publication Date Title
CA2006501A1 (en) Battery saving apparatus and method providing optimum synchronization codeword detection
JPH04222130A (en) Interference detection circuit
KR100290133B1 (en) Auto RS232 / RS485 Communication Converter
US7116739B1 (en) Auto baud system and method and single pin communication interface
CA1333725C (en) Optical communications transmitter and receiver
JP2693758B2 (en) Frame pulse generation method
JPH0575594A (en) Parallel bit synchronizing system
US5825834A (en) Fast response system implementing a sampling clock for extracting stable clock information from a serial data stream with defined jitter characeristics and method therefor
JP2003134098A (en) Serial receiver
EP0602898B1 (en) Method and apparatus for synchronizing transmission of modem
KR0176139B1 (en) Bit synchronization circuit
JPS62171349A (en) Communication control equipment
JP2848229B2 (en) Receiver circuit
KR950001927B1 (en) Circuit for detecting digital data synchronous signal
JP4096852B2 (en) Communication control apparatus and information processing apparatus
JPH0715419A (en) Controller for device
JPH07118708B2 (en) Burst signal phase control circuit
JPH0724832Y2 (en) Automatic transmission / reception switching circuit
JPS596647A (en) Method for synchronizing transmission of serial data
KR0177757B1 (en) Serial data communication method using uni common line
KR20040093854A (en) PS2 transmitter
KR100199186B1 (en) Block sync. circuit of digital ultra frequency transmission device
JPS61181237A (en) Communication control terminal device
KR100303876B1 (en) Apparatus for converting synchronous/asynchronous data for data communication
KR100392298B1 (en) Method and apparatus for extending length of transmission line of synchronous communication system using reverse clock

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20050224

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee