KR100340204B1 - Link holding circuit of rs-485 communication system and method thereof - Google Patents
Link holding circuit of rs-485 communication system and method thereof Download PDFInfo
- Publication number
- KR100340204B1 KR100340204B1 KR1019950023129A KR19950023129A KR100340204B1 KR 100340204 B1 KR100340204 B1 KR 100340204B1 KR 1019950023129 A KR1019950023129 A KR 1019950023129A KR 19950023129 A KR19950023129 A KR 19950023129A KR 100340204 B1 KR100340204 B1 KR 100340204B1
- Authority
- KR
- South Korea
- Prior art keywords
- line
- signal
- data
- transmission
- flip
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C7/00—Arrangements for writing information into, or reading information out from, a digital store
- G11C7/10—Input/output [I/O] data interface arrangements, e.g. I/O data control circuits, I/O data buffers
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C7/00—Arrangements for writing information into, or reading information out from, a digital store
- G11C7/12—Bit line control circuits, e.g. drivers, boosters, pull-up circuits, pull-down circuits, precharging circuits, equalising circuits, for bit lines
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
Abstract
Description
본 발명은 RS-485통신시스템에서 공유한 통신회선을 장악하여 데이터를 송수신하기 위한 회선장악회로 및 그 방법에 관한 것으로, 특히 송신하고자 하는 통신기기로 데이터의 송수신시 데이터의 충돌을 방지하도록 하드웨어적으로 통신회선을 장악할 수 있는 RS-485통신시스템의 회선장악회로 및 그 방법에 관한 것이다.The present invention relates to a circuit control circuit for transmitting and receiving data by controlling a communication line shared by an RS-485 communication system and a method thereof, and in particular, to prevent data collisions during data transmission and reception to a communication device to be transmitted. The present invention relates to a circuit control circuit of a RS-485 communication system capable of securing a communication line and a method thereof.
RS-485통신시스템은 모든 통신기기들이 하나의 통신회선을 공유하여 상호통신을 행하는 시스템이다. 특히, 이 통신시스템의 특징은 통신규약상의 마스타와 슬레이브의 구분이 없이 서로 동등한 입장에서 통신이 행해지는 데 있다. 이와 같은 시스템은 제 1도에 도시한 바와 같이 한 통신회선(10a,lOb)상에 여러대의 통신기기들(20a,20b,…,20z)이 접속되어 있기 때문에 하나의 통신기기가 데이터를 전송하는 동안에는 다른 통신기기들은 수신상태로 있어야 한다. 따라서, 이러한 통신시스템을 구현하기 위해서는 통신회선상의 데이터 충돌을 피할 수 있는 정교한 통신규약이 필요하다. 통신규약은 하드웨어나 소프트웨어적으로 구현이 가능하다.RS-485 communication system is a system in which all communication devices share a single communication line and perform mutual communication. In particular, the characteristic of this communication system is that communication is performed in the same position without distinguishing master and slave in the communication protocol. In such a system, as shown in FIG. 1, since several communication devices 20a, 20b, ..., 20z are connected on one communication line 10a, 10b, one communication device transmits data. Other communication devices shall remain in the receiving state. Therefore, in order to implement such a communication system, a sophisticated communication protocol is required to avoid data collision on a communication line. Communication protocol can be implemented by hardware or software.
일반적인 RS-485통신시스템의 경우, 회선장악에 필요한 별도의 하드웨어적인 수단이 없기 때문에 소프트웨어적인 수단만으로 이러한 통신규약을 구현해야 했다. 따라서, 소프트웨어의 부담이 컸으며, RS-485통신시스템의 특성인 "Peer To Peer Protocol"을 충분히 구현하는데 한계가 있었다.In the general RS-485 communication system, since there is no separate hardware means necessary to secure the line, such a communication protocol had to be implemented only by software means. Therefore, the burden of software was great, and there was a limit to fully implement "Peer To Peer Protocol" which is a characteristic of RS-485 communication system.
따라서, 본 발명의 목적은 상술한 문제점들을 극복하기 위해서 안출한 것으로서, 회선장악에 필요한 하드웨어적 수단을 도입하여 RS-485통신시스템 본래의 특징을 충실히 구현함으로써 통신회선상에서 데이터가 충돌하는 것을 방지할 수 있는 RS-485통신시스템의 회선장악회로를 제공함에 있다.Accordingly, an object of the present invention has been made to overcome the above-mentioned problems, by introducing the hardware means necessary for line control to faithfully implement the original characteristics of the RS-485 communication system to prevent data from colliding on the communication line. To provide a circuit control circuit of the RS-485 communication system.
또, 본 발명의 다른 목적은 하드웨어적인 수단을 이용하여 송신하고자 하는 통신기기에서 통신회선을 통해 데이터를 전송할 수 있도록 공용통신회선을 장악하기 위한 RS-485통신시스템의 회선장악방법을 제공함에 있다.Another object of the present invention is to provide a line securing method of an RS-485 communication system for securing a common communication line so that data can be transmitted through a communication line in a communication device to be transmitted using hardware means.
이와 같은 목적을 달성하기 위한 본 발명에 따른 RS-485통신시스템의 회선장악회로는 상기 씨피유로부터 온 병렬송신데이터신호를 직렬송신데이터신호로 변환시켜 제 1플립플롭에 인가하는 인터페이스부와, 송신데이터신호를 입력받아 반전시켜 출력하는 제 1플립플롭 및, 상기 제 1플립플롭에서 출력된 반전신호를 입력받아 다시 반전시켜 통신회선으로 출력하며, 통신회선으로부터 입력된 수신신호를 원상태로 복구하여 출력하는 데이터변환수단을 구비한 데이터송수신부를 구비하고 있다. 상기 데이터송수신부가 공용회선을 통해 데이터를 주고 받을 수 있도록 씨피유의 회선장악요구신호나 장악해제신호를 받아 서로 상반되는 신호로 출력하는 제 2플립플롭과, 상기 제 2플립플롭으로부터 구동신호를 받아 회선제어선으로 상반되는 장악 또는 해제신호를 출력전송하는 회선제어신호발생수단을 구비한 회선장악부를 구비하고 있다.The line securing circuit of the RS-485 communication system according to the present invention for achieving the above object comprises an interface unit for converting a parallel transmission data signal from the CPI into a serial transmission data signal and applying it to the first flip-flop, and transmission data. A first flip-flop that receives a signal and inverts the signal and outputs the inverted signal output from the first flip-flop and inverts it again to be output to a communication line, and recovers the received signal inputted from the communication line to its original state. A data transmission and reception unit having data conversion means is provided. A second flip-flop that receives the CSI's line take request signal or a release control signal and outputs the signals opposite to each other so that the data transmitting / receiving unit can transmit and receive data through a public line; and a drive signal from the second flip-flop And a line securing section including line control signal generating means for outputting the grasping or releasing signal opposed to the control line.
또한, 다른 목적을 달성하기 위한 본 발명에 따른 RS-485통신시스템의 회선장악방법은 구동하고자 하는 통신기기의 회선제어신호를 초기화하는 단계를 구비하고 있다. 회선상태신호를 읽어들여 통신회선이 사용중인지를 판별하는 단계를 구비하고 있다. 상기 판별단계에서 통신회선이 빈상태로 판단되면 회선장악요구신호를 발생하여 통신회선을 장악하는 단계를 구비하고 있다. 다시 회선상태신호를 읽어들여 통신회선이 장악되었는지 검출하는 단계를 구비하고 있다. 상기 검출단계에서 회선이 장악되었다고 판단되면 통신회선을 통해 데이터를 송출하는 단계를 구비하고 있다. 데이터 송출시 전송버퍼를 읽어서 전송이 완료되었는지 판별하는 단계를 구비하고 있다. 전송완료시 회선장악해제를 회선제어선에 통보하고, 전송종료를 판단하는 단계를 구비하고 있다.In addition, the line securing method of the RS-485 communication system according to the present invention for achieving another object has a step of initializing the line control signal of the communication device to be driven. And reading the line state signal to determine whether the communication line is in use. And if the communication line is determined to be empty in the determining step, generating a line securing request signal to secure the communication line. And reading the line state signal again to detect whether the communication line is secured. And if it is determined in the detecting step that the line is secured, it is provided with a step of transmitting data through the communication line. And reading the transfer buffer to determine whether the transfer has been completed. And notifying the circuit control line of the completion of transmission when the transmission is completed, and determining the end of transmission.
이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예를 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
제 2도는 본 발명에 따른 회선장악회로를 내장한 통신기기의 회로도이다. 통신기기는 중앙연산처리장치(미도시;이하, CPU라고 함)와 타구성요소들의 데이터신호를 주고받기 위한 인터페이스부(30)를 구비하고 있다. 이 인터페이스부(30)를 통해 씨피유로부터 입력되는 패러럴신호는 시리얼신호로 변환되어 제 1플립플롭(40a)에 전송되고, 제 1전송단(50a)으로부터 전송되는 수신데이터신호들도 패러럴신호로 변환되어 씨피유에 입력된다. 특히, 직렬송신데이터신호는 인터페이스부(30)를 거쳐 제 1플립플롭(40a)의 프리셋트입력단자(PRE)로 입력된다. 이 프리셋트입력단자 (PRE)로 들어온 송신데이터신호는 클럭에 따라 반전되어 출력된다. 제 1플립플롭 (40a)에서 출력된 신호는 제 1전송단(50a)의 데이터전송제어단자(TE)측으로 입력된다. 이 제 1전송단(50a)은 로우(Low)신호가 들어오면 슬로트되어 출력이 나오지 않으며, 이에 따라 출력측에 풀업/풀다운저항(60a,60b)을 연결하여 상부통신회선 (10a)은 하이(High)신호를 하부통신회선(lOb)은 로우(Low)신호를 만들어준다. 물론, 제 1전송단(50a)의 데이터전송제어단자(TE)로 하이신호가 들어오면 데이터전송단자(TD)측으로 들어온 로우신호가 그대로 출력된다. 이와같이 하여 제 1통신회선 (10a)상으로 원데이터신호와 동일유사한 신호가 출력된다. 그러나, 이와 같은 신호는 약간의 잡음이 혼입되며, 이는 수신시 제 1전송단(50a)의 수신기(미도시)에서 차동증폭하여 제거하게 된다. 따라서, 제 1전송단(50a)을 거쳐 출력된 수신데이터신호는 원신호와 동일한 신호가 되어 인터페이스부(30)를 거쳐 씨피유로 전송된다. 이와 같이 통신기기와 통신회선상의 데이터를 상호변환하여 송수신신호를 교류해주는 제 1전송단(50a) 및 풀업/풀다운저항(60a,60b)을 데이터변환수단(71)이라고 한다.2 is a circuit diagram of a communication device incorporating a line securing circuit according to the present invention. The communication device includes an interface unit 30 for transmitting and receiving data signals of other components with a central processing unit (not shown; CPU). The parallel signal input from the CPI via the interface unit 30 is converted into a serial signal and transmitted to the first flip-flop 40a, and the received data signals transmitted from the first transmission terminal 50a are also converted into parallel signals. It is input to Cifi. In particular, the serial transmission data signal is input to the preset input terminal PRE of the first flip-flop 40a via the interface unit 30. The transmission data signal that enters the preset input terminal PRE is inverted and output according to the clock. The signal output from the first flip-flop 40a is input to the data transmission control terminal TE of the first transmission terminal 50a. The first transmission terminal 50a is slotted when a low signal is input and no output is output. Accordingly, the upper communication line 10a is connected to the output side by connecting pull-up / pull-down resistors 60a and 60b to the output side. High signal and the lower communication line (Ob) produce a low signal. Of course, when the high signal enters the data transmission control terminal TE of the first transmission terminal 50a, the low signal entering the data transmission terminal TD is output as it is. In this way, a signal similar to the original data signal is output on the first communication line 10a. However, such a signal is mixed with some noise, which is differentially amplified and eliminated by a receiver (not shown) of the first transmitting end 50a. Therefore, the received data signal output through the first transmission terminal 50a becomes the same signal as the original signal and is transmitted to the CPI via the interface unit 30. In this manner, the first transmission stage 50a and the pull-up / pull-down resistors 60a and 60b which mutually convert data between the communication device and the communication line to exchange transmission and reception signals are referred to as data conversion means 71.
물론, 데이터의 전송시 통신회선은 전송하고자 하는 통신기기만이 장악해야 된다. 따라서, 본 발명은 위에 설명한 데이터송수신부(70)에 부가해서 다음에 설명할 회선장악부(80)를 회로로 구성하고 있다.Of course, when transmitting data, the communication line should be controlled only by the communication device to be transmitted. Therefore, in the present invention, in addition to the data transmission / reception section 70 described above, the circuit securing section 80 to be described later is constituted by a circuit.
회선장악부(80)는 씨피유에서 입력되는 제어신호를 잠시 기억했다가 해당 라인을 통해 전송하는 저장부(90)와, 이 저장부(90)를 통해 출력된 회선장악요구신호 (REQ)를 클럭입력단자(CLK)측으로 입력받고, 회선해제신호(REL)는 클리어입력단자 (CLR)측으로 입력받는 제 2플립플롭(40b)을 구비하고 있다. 아울러, 제 2플립플롭 (40b)에서 출력된 구동신호에 따라 회선제어선(110a,110b)에 회선장악신호를 내보내는 제 2전송단(50b)으로 구성되어 있다. 이 제 2전송단(50b)은 데이터전송제어단자(TE)측으로 들어온 입력신호를 반전시켜 출력한다. 즉, 데이터전송제어단자(TE)측으로 하이신호가 들어오면 데이터전송단자(TD)측으로 그라운드인에이블신호인 로우신호가 들어가 그대로 출력되며, 데이터전송제어단자(TE)측으로 로우신호가 들어오면 드라이브가 슬로트되어 데이터전송단자(TD)측으로 입력된 신호가 출력되지 않는다. 그러나, 이때 제 2전송단(50b)의 출력측에 있는 풀업저항(100a)이 제 1회선제어선(110a)으로 하이신호를 출력시키게 된다. 또한, 제 2회선제어선(110b)에는 풀다운저항(100b)이 연결되어 있어 제 1회선제어선(110a)의 출력신호에 반전된 신호인 로우신호가 출력된다. 이와 같이 회선제어선(110a,110b)에 제어신호를 생성공급해주는 제 2전송단(50b) 및 풀업/풀다운저항(100a,100b)을 회선제어신호발생수단 (81)이라고 한다. 한편, 전술한 저장부(90)는 LS175, LS541등의 범용래치 및 버퍼로 구성된다.The line securing unit 80 stores a control signal input from the CPI for a while and then clocks the storage unit 90 for transmitting through the corresponding line, and the line securing request signal REQ outputted through the storage unit 90. A second flip-flop 40b is inputted to the input terminal CLK side and the line release signal REL is inputted to the clear input terminal CLR side. In addition, the second transmission stage 50b is configured to send a line securing signal to the line control lines 110a and 110b according to the drive signal output from the second flip-flop 40b. The second transmission terminal 50b inverts and outputs an input signal input to the data transmission control terminal TE. That is, when a high signal enters the data transmission control terminal (TE) side, a low signal, which is a ground enable signal, enters the data transmission terminal (TD) side and is output as it is. Slotted signals input to the data transmission terminal (TD) side are not output. However, at this time, the pull-up resistor 100a on the output side of the second transmission terminal 50b outputs a high signal to the first line control line 110a. In addition, since the pull-down resistor 100b is connected to the second line control line 110b, a low signal that is an inverted signal is output to the output signal of the first line control line 110a. The second transmission stage 50b and the pull-up / pull-down resistors 100a and 100b that generate and supply control signals to the line control lines 110a and 110b are referred to as the line control signal generating means 81. On the other hand, the above-described storage unit 90 is composed of a general-purpose latch and buffer, such as LS175, LS541.
전술한 제 1,제 2전송단(50a,50b)으로는 SN75176이 사용되며, 이에 대한 상세한 설명은 제 3도를 참조하여 부가하기로 한다.SN75176 is used as the first and second transmission terminals 50a and 50b. A detailed description thereof will be added with reference to FIG.
제 3도는 제 1,제 2전송단으로 사용되는 SN75176의 회로도이다.3 is a circuit diagram of the SN75176 used as the first and second transmission stages.
전송단(50) 내부에는 데이터를 전송하기 위한 구동기(Drive)(51)와 데이터를 수신하기 위한 수신기(Receiver)(52)가 구성되어 있다. 구동기(51)는 입력측에 데이터전송단자(TD)와 데이터전송제어단자(TE)가 있으며, 데이터 전송단자(TD)로는 데이터가 입력되며, 데이터전송제어단자(TE)로는 전송제어신호가 입력되어 데이터를 출력하게 한다. 예를 들어, 데이터전송제어단자(TE)로 하이신호가 들어오면 버퍼를 열어 데이터전송단자(TD)측으로 들어온 입력신호를 그대로 출력으로 내보내고, 전송제어신호로 로우신호가 들어오면 버퍼를 닫아 구동기(51)를 슬로트시켜 출력을 내보내지 않게 된다. 이때, 상부측 출력단자(Out1)로는 입력신호와 동일한 신호가 출력되고, 하부측 출력단자(Out2)로는 입력신호틀 반전시켜 출력하게 된다.Inside the transmission stage 50, a driver 51 for transmitting data and a receiver 52 for receiving data are configured. The driver 51 has a data transmission terminal TD and a data transmission control terminal TE at an input side, data is input to the data transmission terminal TD, and a transmission control signal is input to the data transmission control terminal TE. Output data. For example, when a high signal is input to the data transmission control terminal (TE), the buffer is opened and the input signal input to the data transmission terminal (TD) side is output as it is, and when a low signal is input to the transmission control signal, the buffer is closed to close the driver ( Slot 51) will not output. At this time, the same signal as the input signal is output to the upper output terminal Out1, and the input signal is inverted and output to the lower output terminal Out2.
수신기(52)는 외부의 통신선-통신회선 또는 회전제어선-과 연결된 입력단자들(In1,In2)을 통해 들어온 신호를 출력측의 데이터수신제어단자(RE)로 수신인에이블신호가 인가되면 출력하게 된다. 즉, 수신인에이블신호로 로우신호가 입력되면 버퍼를 열어 수신된 데이터를 출력하고, 하이신호가 입력되면 버퍼를 닫아 수신기 (52)를 슬로트시킨다. 따라서, 수신인에이블신호로 로우신호가 인가되면 수신기 (52)는 수신상태로 액티브된다. 이러한 수신기(52)로는 차동증폭기가 사용되며, 두 입력단자들로 들어온 신호를 감산하여 신호를 원상태로 복구하여 출력한다.The receiver 52 outputs a signal input through the input terminals In1 and In2 connected to an external communication line—a communication line or a rotation control line when the enable signal is applied to the data reception control terminal RE on the output side. . That is, when the low signal is input as the enable signal, the buffer is opened to output the received data. When the high signal is input, the buffer 52 is closed to close the buffer. Therefore, when the low signal is applied as the enable signal, the receiver 52 is activated in the reception state. As the receiver 52, a differential amplifier is used, and the signal returned to the original state is subtracted by subtracting the signal input to the two input terminals and output.
제 4도는 본 발명에 따른 RS-485통신시스템의 회선장악방법을 설명하기 위한 흐름도이다. 이제, 상술한 도면들을 참조하여 본 발명의 동작을 상세히 설명한다.4 is a flowchart illustrating a line securing method of the RS-485 communication system according to the present invention. The operation of the present invention will now be described in detail with reference to the above-mentioned drawings.
회선해제신호(REL)를 제 2플립플롭(4Ob)의 클리어입력단자(CLR)로 인가하여 제 2전송단(50b)의 데이터전송제어단자(TE)로 로우신호를 입력한다. 그러면, 제 2전송단(50b)이 슬로트되어 데이터전송단자(TD)측으로 입력된 로우신호가 출력되지 않는다. 따라서, 제 2전송단(50b)의 출력측에 있는 풀업/풀다운저항(100a,100b)이 동작하여 제 1회선제어선(110a)으로 하이신호를 제 2회선제어선(110b)으로 로우신호를 내보내게 된다. 이와 같이 통신회선을 초기화한 후 제 2전송단(50b)을 통해 입력된 회선상태신호(LST)를 읽어들여 통신회선(10a,lOb)의 사용여부를 판별하게 된다. 즉, 회선상태신호(LST)가 하이이면 통신회선(10a,lOb)이 미사용상태이고, 로우이면 사용중인 것으로 판단된다.(단계200,201,202) 이때, 회선상태신호(LST)가 하이이면 씨피유는 저장부(90)를 통해 회선장악요구신호(REQ)를 제 2플립플롭(4Ob)에 인가한다.(단계203) 이 신호는 제 2플립플롭(4Ob)의 클럭입력단자(CLK)로 입력되어 D입력단자(D)로 통해 들어온 하이신호를 트리거하여 하이신호를 출력단자(Q)로 출력하게 된다. 제 2전송단(50b)은 데이터전송제어단자(TE)로 이 신호를 받아 데이터전송단자(TD)측으로 들어온 그라운드인에이블신호인 로우신호를 출력단자를 통해 제 1회선제어선(110a)에는 로우신호를, 제 2회선제어선(110b)에는 반전된 하이신호를 내보낸다. 따라서, 전송하고자 하는 통신기기는 회선제어선(110a,110b)을 통해 통신회선장악을 표시하게 되며, 다른 모든 통신기기들은 이 회선제어선 (110a,110b)상에 있는 신호를 읽어 통신회선(10a,lOb)의 사용여부를 인지하게 된다.(단계204) 이와 같이 회선제어선(110a,110b)에 장악신호를 보낸후 제 2전송단 (50b)을 통해 회선제어선(110a,110b)의 신호를 읽어들여 씨피유는 회선장악이 되었는지를 확인한다. 즉, 제 1회선제어선(110a)의 로우신호와, 제 2회선제어선(110b)의 하이신호는 제 2전송단(50b)의 수신기로 입력되어 차동증폭되어 출력된다. 이때, 출력신호는 회선상태신호(LST)가 되며, 로우신호가 출력된다.(단계 205) 씨피유는 회선장악상태를 확인한후 저장부(90)를 통해 데이터수신제어선(91)으로 제 1전송단(50a)에 수신인에이블신호를 인가하여 전송한 데이터가 되돌아오지 않도록 한다. 이와 같은 동작은 제 1전송단(50a)의 수신기 출력측에 수신인에이블신호로 하이신호를 줌으로써 버퍼를 닫아 수신이 불가능한 상태로 전환시킴으로써 수행된다. 이와 같이 제 1전송단(50a)은 수신기를 닫은 상태에서 구동기를 구동시켜 데이터를 전송한다.(단계206)The line release signal REL is applied to the clear input terminal CLR of the second flip-flop 40b to input a low signal to the data transmission control terminal TE of the second transmission terminal 50b. As a result, the second transmission terminal 50b is slotted and the low signal input to the data transmission terminal TD is not output. Accordingly, pull-up / pull-down resistors 100a and 100b on the output side of the second transmission stage 50b operate to send a high signal to the first line control line 110a and a low signal to the second line control line 110b. It becomes. After initializing the communication line as described above, the line state signal LST input through the second transmission terminal 50b is read to determine whether the communication lines 10a and 10b are used. In other words, if the line state signal LST is high, the communication lines 10a and 10b are unused, and if it is low, it is determined that the line is in use. (200, 201, 202) At this time, if the line state signal LST is high, the CPU is stored. Through line 90, the line lock request signal REQ is applied to the second flip-flop 40b. (Step 203) This signal is input to the clock input terminal CLK of the second flip-flop 40b. The high signal input through the terminal D is triggered to output the high signal to the output terminal Q. The second transmission terminal 50b receives this signal as the data transmission control terminal TE and transmits a low signal, which is a ground enable signal input to the data transmission terminal TD, to the first line control line 110a through the output terminal. The inverted high signal is sent to the second line control line 110b. Accordingly, the communication device to be transmitted displays the communication line control through the line control lines 110a and 110b, and all other communication devices read the signals on the line control lines 110a and 110b to read the communication line 10a. (Ob). (Step 204) After the control signal is sent to the line control lines 110a and 110b, the signal of the line control lines 110a and 110b is transmitted through the second transmission terminal 50b. Read it to see if she is in line. That is, the low signal of the first line control line 110a and the high signal of the second line control line 110b are input to the receiver of the second transmission terminal 50b and differentially amplified and output. At this time, the output signal becomes a line state signal LST, and a low signal is output. (Step 205) CFIU transmits a first transmission to the data receiving control line 91 through the storage unit 90 after confirming the state of the line control. The enable signal is applied to the stage 50a so that the transmitted data is not returned. This operation is performed by closing the buffer and switching to a state where reception is impossible by giving a high signal as an enable signal to the receiver output side of the first transmission terminal 50a. As described above, the first transmission terminal 50a drives the driver in a state where the receiver is closed to transmit data.
데이터전송은 씨피유에 의해 패러럴신호로 출력된 송신데이터신호는 인터페이스부(30)를 통해 시리얼화되어 제 1플립플롭(40a)의 프리셋트입력단자(PRE)로 입력되고, 이 입력된 신호가 반전출력되어 제 1전송단(50a)의 데이터전송제어단자 (TE)측으로 입력된다. 이 입력된 송신신호는 데이터전송단자(TD)로 입력되는 전송인에이블신호에 의해 출력단자측으로 반전출력된다. 이때, 송신신호가 하이이면 제 1전송단(50a)이 활성화되어 데이터전송단자(TD)로 들어온 로우의 전송인에이블신호가 그대로 출력되며, 송신신호가 로우이면 제 1전송단(50a)이 슬로트되어 어떤신호도 출력되지 않는다. 그러면, 풀업/풀다운저항(60a,60b)이 구동하여 제 1통신회선 (10a)에는 하이신호를, 제 2통신회선(lOb)상에는 로우신호를 출력하게 된다. 따라서, 원신호와 동일유사한 신호가 통신회선(10a,lOb)상으로 출력되어 전송된다.Data transmission is a parallel signal output by the CPI is serialized via the interface unit 30 is input to the preset input terminal PRE of the first flip-flop (40a), the input signal is inverted It is output and input to the data transmission control terminal (TE) side of the first transmission terminal 50a. The inputted transmission signal is inverted and outputted to the output terminal side by the transmission enable signal inputted to the data transmission terminal TD. At this time, if the transmission signal is high, the first transmission terminal 50a is activated, and the transmission enable signal of the row entering the data transmission terminal TD is output as it is. If the transmission signal is low, the first transmission terminal 50a is slow. No signal is output. Then, the pull-up / pull-down resistors 60a and 60b are driven to output a high signal on the first communication line 10a and a low signal on the second communication line 100b. Therefore, a signal similar to the original signal is output and transmitted on the communication lines 10a and 10b.
전송시 씨피유는 전송버퍼를 수시로 읽어 전송이 완료되었는지 판별한다.(단계207,208) 이때, 전송버퍼가 비어 있으면 전송완료로 판단하여 회선해제신호(REL)를 제 2플립플롭(4Ob)의 클리어입력단자(CLR)에 인가한다. 제 2플립플롭(4Ob)은 이 신호에 의해 로우신호를 출력한다. 출력된 로우신호는 제 2전송단(50b)의 데이터전송제어단자(TE)로 입력되고, 이에 따라 제 2전송단(5Ob)은 슬로트되어 출력이 발생하지 않게 된다. 그러면, 풀업/풀다운저항(100a,100b)이 구동하여 제 1회선제어선 (110a)으로는 하이신호가, 제 2회선제어선(110b)으로는 로우신호가 출력되어 전송된다.(단계209) 따라서, 전송이 끝난 통신기기는 회선제어선(110a,110b)상에 통신회선(10a, lOb)의 장악해제를 표시하게 된다. 그리고, 전송종료상태를 판단하여 종료가 아니라고 판단되면 단계201로 돌아가 전단계를 피드백하게 된다.(단계210)In transmission, the CPI reads the transmission buffer from time to time to determine whether the transmission is completed. If the transmission buffer is empty, it is determined that the transmission is completed and the line release signal REL is determined to be the clear input terminal of the second flip-flop 4Ob. (CLR). The second flip-flop 40b outputs a low signal by this signal. The output low signal is input to the data transmission control terminal TE of the second transmission terminal 50b. Accordingly, the second transmission terminal 50b is slotted so that no output occurs. Then, the pull-up / pull-down resistors 100a and 100b are driven to output a high signal to the first line control line 110a and a low signal to the second line control line 110b. Therefore, the communication device that has been transmitted will display the release of the communication lines 10a and 10b on the line control lines 110a and 110b. If it is determined that the transmission is not terminated, the process returns to step 201 to feed back the previous step.
이상 서술한 바와 같이, 본 시스템은 회선제어신호를 생성하는 회선제어회로를 부가하여 하드웨어적으로 통신회선을 장악함으로써 RS-485통신시스템의 특징을 보다 충실히 구현할 수 있는 잇점을 가지고 있다. 또한, 회선장악을 위한 통신규약의 구현을 하드웨어적으로 수행하므로 소프트웨어의 부담을 격감시켜 안정된 시스템을 유지할 수 있는 효과를 갖는다.As described above, the present system has an advantage that the characteristics of the RS-485 communication system can be more faithfully realized by adding a line control circuit that generates a line control signal to secure the communication line in hardware. In addition, since the implementation of the communication protocol for circuit control is performed in hardware, it has the effect of reducing the burden of software to maintain a stable system.
제 1도는 일반적인 RS-485통신시스템의 개략적인 구성도,1 is a schematic configuration diagram of a general RS-485 communication system,
제 2도는 본 발명에 따른 회선장악회로를 내장한 통신기기의 회로도,2 is a circuit diagram of a communication device incorporating a line securing circuit according to the present invention;
제 3도는 제 1,제 2전송단으로 사용되는 SN75176의 회로도,3 is a circuit diagram of the SN75176 used as the first and second transmission stages,
제 4도는 본 발명에 따른 RS-485통신시스템의 회선장악방법을 설명하기 위한 흐름도.4 is a flowchart illustrating a line securing method of the RS-485 communication system according to the present invention.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
1Oa,lOb : 통신회선 30 : 인터페이스부1Oa, lOb: Communication line 30: Interface part
40a,40b : 제 1,제 2플립플롭 50a,50b : 제 1,제 2전송단40a, 40b: first and second flip-flops 50a, 50b: first and second transmission ends
51 : 구동기 52 : 수신기51 driver 52 receiver
60a,60b : 풀업/풀다운저항 70 : 데이터송수신부60a, 60b: Pull up / pull down resistance 70: Data transmitter / receiver
71 : 데이터변환수단 80 : 회선장악부71: data conversion means 80: circuit control unit
81 : 회선제어신호발생수단 90 : 저장부81: circuit control signal generating means 90: storage unit
100a,100b : 풀업/풀다운저항 110a,110b : 회선제어선100a, 100b: pull up / pull down resistance 110a, 110b: line control line
REQ : 회선장악요구신호 REL : 회선해제신호REQ: Line securing request signal REL: Line release signal
LST : 회선상태신호 RE : 데이터전송제어단자LST: Line status signal RE: Data transmission control terminal
RD : 데이터전송단자 RE : 데이터수진제어단자RD: Data transmission terminal RE: Data vibration control terminal
RD : 데이터수신단자RD: Data receiving terminal
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019950023129A KR100340204B1 (en) | 1995-07-29 | 1995-07-29 | Link holding circuit of rs-485 communication system and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019950023129A KR100340204B1 (en) | 1995-07-29 | 1995-07-29 | Link holding circuit of rs-485 communication system and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
KR970009056A KR970009056A (en) | 1997-02-24 |
KR100340204B1 true KR100340204B1 (en) | 2002-10-31 |
Family
ID=37480233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019950023129A KR100340204B1 (en) | 1995-07-29 | 1995-07-29 | Link holding circuit of rs-485 communication system and method thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100340204B1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100689823B1 (en) * | 2006-02-08 | 2007-03-08 | (주)이에스텍 | Rs-485 communication module |
-
1995
- 1995-07-29 KR KR1019950023129A patent/KR100340204B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR970009056A (en) | 1997-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5132987A (en) | Bidirectional communication line buffer apparatus | |
CA2008669A1 (en) | Multiple mode memory module | |
JPS61500824A (en) | Communication interface | |
US5025500A (en) | Apparatus for providing multiple controller interfaces to a standard digital modem and including integral conflict resolution | |
KR100340204B1 (en) | Link holding circuit of rs-485 communication system and method thereof | |
JP2002507086A (en) | Data bus for multiple nodes | |
US4644569A (en) | Coherent data word transfer by an asynchronous gateway data port | |
JPS61208331A (en) | Serial data communication system | |
US5548790A (en) | High speed IEEE 488 bus data transfer system | |
JPH05314036A (en) | Interface equipment for communication | |
JP2773637B2 (en) | Line test pulse generator | |
US5404453A (en) | Terminals coupling system using bridge interfaces, located inside the host controller, with timer to determine start and end of transmission period | |
SU1702379A1 (en) | Two computer interface | |
JPH06223037A (en) | High-speed synchronous type data transfer method | |
US8051230B2 (en) | Synchronous data transmission method | |
JP3091011B2 (en) | Signal line connection device | |
JPH0520014B2 (en) | ||
JPH0426903Y2 (en) | ||
KR930007131A (en) | Serial communication multi drop device | |
JP2926544B2 (en) | Serial data transmission control device | |
KR900005661B1 (en) | Data transmitting circuit and mehtod between controller and laser printer | |
JPS59183554A (en) | System for detecting collision of optical network of bus structure | |
KR970006410B1 (en) | Data telecommunication circuit | |
SU1762307A1 (en) | Device for information transfer | |
JPS62107550A (en) | Optical fiber communication equipment |
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: 20050523 Year of fee payment: 4 |
|
LAPS | Lapse due to unpaid annual fee |