KR0154470B1 - Circuit for interfacing between auxiliary processor and external device - Google Patents

Circuit for interfacing between auxiliary processor and external device

Info

Publication number
KR0154470B1
KR0154470B1 KR1019950030867A KR19950030867A KR0154470B1 KR 0154470 B1 KR0154470 B1 KR 0154470B1 KR 1019950030867 A KR1019950030867 A KR 1019950030867A KR 19950030867 A KR19950030867 A KR 19950030867A KR 0154470 B1 KR0154470 B1 KR 0154470B1
Authority
KR
South Korea
Prior art keywords
signal
register
external device
transmitted
data
Prior art date
Application number
KR1019950030867A
Other languages
Korean (ko)
Other versions
KR970019289A (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 KR1019950030867A priority Critical patent/KR0154470B1/en
Publication of KR970019289A publication Critical patent/KR970019289A/en
Application granted granted Critical
Publication of KR0154470B1 publication Critical patent/KR0154470B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q3/00Selecting arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Communication Control (AREA)

Abstract

본 정합회로는 전전자 교환기에 있어서 보조제어장치와 외부장치간의 통신시, 보조제어장치내의 프로세서의 처리과정을 단순화하기 위한 것으로써, 본 회로는 래치 및 코딩부, 상태레지스터, 모드/어드레스 레지스터, 데이타 레지스터 및 제어 레지스터로 구성된 내부 레지스터; 모드/어드레스 레지스터와 데이타 레지스터에서 출력되는 신호를 외부장치로 선택적으로 전송하고, 외부장치로부터 전송되는 신호를 데이타 레지스터로 전송하는 신호전송부: 에러 신호가 전송되면, 모드/어드레스 레지스터 및 데이타 레지스터에 저장되어 있는 신호의 재전송을 요구하는 재전송시도부; 신호전송부의 전송동작을 제어하기 위한 전송제어부: 송신어서트신호(TAST)와 수신어서트신호(RAST) 및 에러신호(ERR)에 의하여 정상적인 데이타 전송상태(DTACK)를 알리는 신호를 발생하는 DTACK발생부(670)를 포함함을 특징으로 한다.This matching circuit is for simplifying the processing of the processor in the auxiliary control device during communication between the auxiliary control device and the external device in the all-electronic exchange. The circuit includes a latch and a coding unit, a state register, a mode / address register, An internal register consisting of a data register and a control register; Transmitter that selectively transmits the signal output from the mode / address register and the data register to an external device, and transmits the signal transmitted from the external device to the data register: When an error signal is transmitted, the signal is transmitted to the mode / address register and the data register. A retransmission attempt unit requesting retransmission of the stored signal; Transmission control unit for controlling the transmission operation of the signal transmission unit: DTACK generation that generates a signal indicating the normal data transfer status (DTACK) by the transmission assert signal (TAST), the received assert signal (RAST) and the error signal (ERR) And a portion 670.

Description

보조제어장치와 외부장치간 정합회로Matching circuit between auxiliary controller and external device

제1도는 종래의 보조제어장치와 외부장치간의 블록도.1 is a block diagram between a conventional auxiliary control device and an external device.

제2도는 제1도에 도시된 정합회로의 상세도.2 is a detailed view of the matching circuit shown in FIG.

제3도는 제1도에 도시된 프로세서의 처리흐름도.3 is a process flow diagram of the processor shown in FIG.

제4도는 제1도에 도시된 보조제어장치의 외부장치간의 동작타이밍도.4 is an operation timing diagram between external devices of the auxiliary control apparatus shown in FIG.

제5도는 본 발명에 따른 보조제어장치와 외부장치간의 블록도.5 is a block diagram between an auxiliary control device and an external device according to the present invention.

제6도는 제5도에 도시된 정합회로의 상세도.6 is a detail view of the matching circuit shown in FIG.

제7도는 본 발명에 따른 보조제어장치에 외부장치간의 동작타이밍도.7 is an operation timing diagram between an external device and an auxiliary control device according to the present invention.

제8도는 본 발명에 따른 프로세서의 처리 흐름도.8 is a process flow diagram of a processor according to the present invention.

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

600 : 래치 및 코딩부 610 : 내부 레지스터600: latch and coding unit 610: internal register

620 : 제어신호 전송부 630 : 멀티플렉서/디멀티플렉서620: control signal transmission unit 630: multiplexer / demultiplexer

640 : 멀티플렉서/디멀티플렉서 제어부 650 : 재전송 시도부640: multiplexer / demultiplexer control unit 650: retransmission attempt unit

660 : 인터럽트 처리부660: interrupt processing unit

670 : DTACK(DaTa ACKnowledge) 발생부670: DTACK (DaTa ACKnowledge) generation unit

본 발명은 전전자 교환기에 있어서 보조제어장치와 외부장치간의 정합회로에 관한 것으로, 특히 보조제어장치와 외부장치간의 통신시 보조제어장치내의 프로세서의 효율적인 운용을 위한 정합회로에 관한 것이다.The present invention relates to a matching circuit between an auxiliary control device and an external device in an all-electronic exchange, and more particularly, to a matching circuit for efficient operation of a processor in an auxiliary control device during communication between the auxiliary control device and an external device.

전전자 교환기는 전기능을 관장하는 주제어장치와 주제어장치의 제어하에 하나 또는 다수의 기능을 전문적으로 처리하는 보조제어장치를 구비하여 운용하고 있다. 외부장치는 상술한 보조제어장치에 의해 제어되어 해당되는 기능을 수행하는 것으로, 입출력 장치를 예로 들 수 있다. 이러한 외부장치와 보조제어 장치는 제1도에 도시된 바와 같이 보조제어장치(100)내의 프로세서(101)와 외부장치(110)사이에 통신버스제어기라고도 하는 정합회로(102)를 구비하여 Early DTACK모드와 Wait DTACK모드로 운용되고 있다.The electronic switchboard is operated with a main control unit that manages all functions and an auxiliary control unit that specializes in one or more functions under the control of the main control unit. The external device is controlled by the above-described auxiliary control device to perform a corresponding function, for example, an input / output device. The external device and the auxiliary control device are provided with a matching circuit 102, also referred to as a communication bus controller, between the processor 101 and the external device 110 in the auxiliary control device 100 as shown in FIG. Mode and Wait DTACK mode.

Wait DTACK 모드는 프로세서(101)에서 통신시 필요한 정보를 정합회로(102)를 통해 외부장치(110)로 전송 후에 전송종료신호인 DTACK신호가 전송되면 사이클을 종료시키는 방법으로, 제2도에 도시된 바와 같이 어드레스 디코딩부(200), 데이타 디코딩부(210), 내부레지스터(220), 제어신호 전송부(230), 멀티플렉서/디멀티플렉서(240), 엔코딩부(250)를 포함하도록 구성된 정합회로(102)를 통한 처리과정을 좀더 상세하게 설명하면 다음과 같다.The wait DTACK mode is a method of terminating a cycle when a DTACK signal, which is a transmission end signal, is transmitted after transmitting information necessary for communication in the processor 101 to the external device 110 through the matching circuit 102. As described above, a matching circuit configured to include an address decoder 200, a data decoder 210, an internal register 220, a control signal transmitter 230, a multiplexer / demultiplexer 240, and an encoder 250 ( 102 will be described in more detail below.

먼저, 프로세서(101)는 정합회로(220) 내의 제어레지스터(224)의 모드를 Wait DTACK 모드로 설정한다. 설정과정은 후술할 다른 레지스터와 같이 프로세서(101)가 어드레스 디코딩부(200)를 통해 제어레지스터(224)를 지정할 수 있는 어드레스를 제공하고, 데이타 코딩부(210)를 통해 모드설정에 따른 정보가 전송되면 제어레지스터(224)는 Wait DTACK모드로 설정된다.First, the processor 101 sets the mode of the control register 224 in the matching circuit 220 to the Wait DTACK mode. In the setting process, like the other registers to be described later, the processor 101 provides an address for designating the control register 224 through the address decoding unit 200, and the information according to the mode setting is provided through the data coding unit 210. When transmitted, the control register 224 is set to the Wait DTACK mode.

이와 같은 데이타 전송준비과정이 완료된 후 프로세서(101)로부터 전송하고자 하는 정보가 발생되면, 프로세서(101)는 정합회로(102)내의 상태 레지스터(221)의 내용을 확인하여 버스를 사용할 수 있는지 확인한다(제3도의 제301단계). 이와 같은 확인작업은 프로세서(101)에서 제공되는 어드레스 인에이블(AS_)신호에 의하여 어드레스 디코딩부(200)가 인에이블되어 프로세서(101)로부터 전송된 어드레스신호(A[19:0])를 디코딩한 값이 상태레지스터(221)를 지정하므로서 이루어진다. 상태 레지스터(221)는 데이타 코딩부(210)를 통해 프로세서(101)로 버스의 사용여부를 알려준다.When the information to be transmitted from the processor 101 is generated after the data transmission preparation process is completed, the processor 101 checks the contents of the status register 221 in the matching circuit 102 to determine whether the bus can be used. (Step 301 of FIG. 3). The verification operation is performed by the address decoding unit 200 enabled by the address enable signal AS_ provided by the processor 101 to decode the address signal A [19: 0] transmitted from the processor 101. One value is achieved by designating the state register 221. The status register 221 informs the processor 101 whether the bus is used through the data coding unit 210.

확인결과, 버스를 사용할 수 있으면 프로세서(101)는 필요한 모드를 내부레지스터(220)내의 모드/어드레스 레지스터(222)에 쓰기 위하여 어드레스 디코딩부(200)로 모드/어드레스 레지스터(222)가 지정되도록 어드레스를 전송하고, 데이타 코딩부(210)로는 쓰고자 하는 모드데이타를 전송하여 쓴다(제3도의 제302단계). 이와 같은 과정과 동일한 과정을 통해 프로세서(101)는 해당 어드레스를 쓰고(제3도의 제303단계). 전송할 데이타는 데이타 레지스터(224)에 기록되도록 한다(제3도의 제304단계). 정합회로(102)는 모드/어드레스 레지스터(222), 데이타 레지스터(223)에 기륵되어 있는 내용을 멀티플랙서/디멀티플렉서(240)를 통해 출력하고, 출력된 신호는 EIA-422 케이블을 통해 외부장치(110)로 전송된다(제305단계). 이와 같이 전송되는 데이타 중 어드레스는 제4도에 도시된 바와 같이 프로세서(101)로부터 전송되는 시스템클럭신호(SCLK)에 동기되어 FS(Frame SYNC)_가 액티브상태일 때 4비트 병렬형태로 전송되고, 송신 데이타(TXD)는 외부장치(110)로부터 전송되는 준비 신호(RDY_)가 액티브상태인 기간동안에 전송된다.As a result of the check, if the bus is available, the processor 101 addresses the mode / address register 222 to be designated to the address decoding unit 200 in order to write the necessary mode to the mode / address register 222 in the internal register 220. The data coding unit 210 transmits and writes mode data to be written (step 302 of FIG. 3). Through the same process as that described above, the processor 101 writes the corresponding address (step 303 of FIG. 3). Data to be transmitted is written to the data register 224 (step 304 of FIG. 3). The matching circuit 102 outputs the contents described in the mode / address register 222 and the data register 223 through the multiplexer / demultiplexer 240, and the output signal is outputted through an EIA-422 cable. It is transmitted to the 110 (step 305). As shown in FIG. 4, an address of the data transmitted as described above is transmitted in a 4-bit parallel form when frame frame SYNC is active in synchronization with the system clock signal SCLK transmitted from the processor 101. The transmission data TXD is transmitted while the ready signal RDY_ transmitted from the external device 110 is active.

외부장치(110)로부터 데이타 수신시(즉, 데이타를 읽을 때)에는 어드레스 데이타 전송 후, 외부장치(110)로부터 전송되는 준비신호(RDY_)가 액티브된 후, 반클럭 뒤에 수신이 이루어진다.When data is received from the external device 110 (that is, when data is read), after the address data transmission, the ready signal RDY_ transmitted from the external device 110 is activated, and then half a clock is received.

이와 같은 데이타 전송과정이 Wait모드에서 이루어지므로 프로세서(101)는 제3도의 제306단계에서 제307단계로 진행되어 전송종료신호가 전송되는 지를 체크한 후, 제310단계에서 소프트웨어적으로 체크섬(Check Sum) 에러를 검사한다. 검사결과 에러가 발생되지 않으면 전송을 종료하고, 에러가 발생되면 제302단계로 리턴되어 처리한다. 전송종료신호는 제어레지스터(224)에 의하여 상태레지스터(221)를 체크하고, 체크결과, 외부장치(110)로부터 전송되는 ROY_신호가 액티브상태에서 비액티브상태로 변환되면, 외부장치(110)로부터 전송된 DTACK신호를 엔코딩부(250)를 통해 전송한다. 전송종료신호가 전송되면, 프로세서(101)는 전송과정을 완료한다 .Since the data transfer process is performed in the wait mode, the processor 101 proceeds from step 306 to step 307 of FIG. 3 and checks whether the transmission termination signal is transmitted. Sum) Check for errors. If an error does not occur as a result of the test, the transmission is terminated. If an error occurs, the process returns to step 302 to process. The transmission end signal checks the state register 221 by the control register 224. When the ROY_ signal transmitted from the external device 110 is converted from the active state to the inactive state, the external device 110 is checked. The DTACK signal transmitted from the encoder is transmitted through the encoder 250. When the transmission end signal is transmitted, the processor 101 completes the transmission process.

그러나, 이와 같이 처리할 경우 데이타 전송클럭 이 수㎒로 이루어져 프로세서(101)가 데이타 전송이 완료될 때까지 계속해서 데이타 전송관련작업을 수행하여야 한다.However, in this case, the data transmission clock is set to several MHz so that the processor 101 must continuously perform data transmission related work until the data transmission is completed.

Early DTACK 모드는 프로세서 (101)에서 전송에 필요한 정보를 정합회로(102)내의 내부 레지스터(220)에 쓴 후, 정합회로(102)의 상태레지스터(221)를 읽어서 정합회로(102)가 외부장치(110)에 정보전송을 완료하였는지를 확인하는 과정을 통해 정보전송과정을 완료하는 방식이다. 이 Early DTACK모드에 따른 수행과정은 상술한 Wait DTACX모드와 동일하게 이루어지나 프로세서(101)가 직접 상태 레지스터(221)에 상태 비트를 읽어 정보전송완료를 결정한다는 것이 상이하다. 즉, 제306단계에서 제308단계로 진행되어 상태레지스터(221)의 상태비트를 읽고, 전송완료비트가 세팅되어 있으면(제309단계), 제310단계로 진행되어 상술한 바와 같이 처리한다. 이 때 상태레지스터(221)의 상태비트는 제어신호 전송부(230)로부터 전송된 제어신호에 의하여 결정된다. 이와 같이 처리에 의하여 보조제어장치(100)로부터 외부장치(110)로의 데이타 전송은 상술한 Wait모드에서와 같이 이루어진다.In the early DTACK mode, the processor 101 writes information necessary for transmission to the internal register 220 in the matching circuit 102, and then reads the state register 221 of the matching circuit 102 so that the matching circuit 102 reads the external device. The method of completing the information transmission process through the process of confirming whether the information transmission is completed at 110. The process of performing the early DTACK mode is performed in the same manner as the Wait DTACX mode described above. However, the processor 101 directly reads the status bit into the status register 221 to determine the completion of information transmission. That is, the process proceeds from step 306 to step 308 to read the status bit of the state register 221, and if the transmission completion bit is set (step 309), proceeds to step 310 and processes as described above. At this time, the status bit of the state register 221 is determined by the control signal transmitted from the control signal transmitter 230. In this manner, data transfer from the auxiliary control apparatus 100 to the external apparatus 110 is performed as in the Wait mode described above.

그러나 이와 같이 처리되는 경우도 프로세서가 소프트웨어에 의거하여 상태레지스터를 읽어서 전송이 완료되었는지 확인해야 하므로 전송이 완료될 때까지 프로세서가 계속해서 데이타 전송에 따른 작업을 수행해야 하므로 프로세서의 처리과정이 복잡해져 시스템전체 성능을 저하시키는 요인이 되었다.However, even in this case, the processor reads the status register based on software to confirm that the transfer is completed. Therefore, the processor must continuously perform data transfer operations until the transfer is completed. It was a factor that lowered the overall performance.

따라서 본 발명의 목적은 상술한 문제점을 해결하기 위하여 보조제어장치와 외부장치간의 통신시, 보조제어장치내의 프로세서가 필요한 정보를 출력후, 정보처리과정을 간소화하여 프로세서의 작업을 단순화하기 위한 보조제어 장치와 외부장치 간의 정합회로를 제공하는데 있다.Accordingly, an object of the present invention is to provide a subsidiary control for simplifying the processing of the processor by simplifying the information processing process after outputting the information required by the processor in the subsidiary control device when communicating between the subsidiary control device and the external device to solve the above problems. It is to provide a matching circuit between a device and an external device.

본 발명에 따른 정합회로는, 전전자 교환기의 보조제어장치와 외부장치간의 통신시 보조제어장치내의 프로세서와 외부장치간을 정합하기 위한 정합회로에 있어서, 프로세서로부터 전송되는 제어 신호에 의해 제어되어 프로세서로부터 전송되는 신호를 래치하고 코딩하기 위한 래치 및 코딩부, 상태 레지스터, 모드/어드레스 레지스터, 데이타 레지스터 및 제어레지스터로 구성되어 래치 및 코딩부로부터 전송되는 신호를 저장하고, 읽기모드시 데이타 레지스터에 저장된 정보를 래치 및 코딩부로 전송하기 위한 내부 레지스터 : 외부장치로부터 전송되는 제어신호를 상태레지스터로 전송하기 위한 제어신호 전송부 ; 모드/어드레스 레지스터와 데이타 레지스터에서 출력되는 신호를 외부장치로 선택적으로 전송하고, 외부장치로 부터 전송되는 신호를 데이타 레지스터로 전송하는 신호전송부; 외부장치로부터 에러신호가 전송되면, 모드/어드레스 레지스터 및 데이타 레지스터에 저장되어 있는 신호의 재전송을 요구하는 재전송시도부;재전송시도부의 출력신호와 제어레지스터의 출력신호에 의하여 신호전송부의 전송동작을 제어하기 위한 전송제어부:신호전송부에서 제공되는 송신어서트신호 (TAST)와 외부장치(510)에서 제공되는 수신어서트신호(RAST) 및 에러신호(ERR)에 의하여 정상적인 데이타 전송상태(DTACK)를 알리는 신호를 발생하는 DTACK발생부(670)를 포함함을 특징으로 한다.The matching circuit according to the present invention is a matching circuit for matching between a processor in an auxiliary control device and an external device during communication between an auxiliary control device of an electronic switch and an external device, and is controlled by a control signal transmitted from the processor. It consists of a latch and coding section, a status register, a mode / address register, a data register, and a control register for latching and coding a signal transmitted from the memory, and stores the signal transmitted from the latch and coding section. An internal register for transmitting information to the latch and coding unit, comprising: a control signal transmitter for transmitting a control signal transmitted from an external device to a state register; A signal transmission unit for selectively transmitting a signal output from the mode / address register and the data register to an external device, and transmitting a signal transmitted from the external device to the data register; A retransmission attempt unit requesting retransmission of a signal stored in a mode / address register and a data register when an error signal is transmitted from an external device; controlling the transmission operation of the signal transmission unit by the output signal of the retransmission attempt unit and the output signal of the control register Transmission control unit for: The normal data transmission state (DTACK) by the transmission assert signal (TAST) provided from the signal transmission unit and the received assert signal (RAST) and error signal (ERR) provided from the external device 510 Characterized in that it comprises a DTACK generator 670 for generating a signal.

이하, 첨부 도면을 참조하여 본 발명에 따른 바람직한 실시예를 상세하게 설명하기로 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

제5도는 본 발명에 따른 보조제어장치와 외부장치간의 블럭도로서, 프로세서(501)와 정합회로(502)를 포함하도록 구성된 보조제어장치(500)와 종래의 EIA-422 케이블 대신 슈도(Pseudo) ECL케이블을 사용하여 외부장치(510)를 연결하고 있다.5 is a block diagram between an auxiliary control device and an external device according to the present invention, and replaces the auxiliary control device 500 configured to include the processor 501 and the matching circuit 502 and a Pseudo instead of a conventional EIA-422 cable. The external device 510 is connected using an ECL cable.

제6도는 제5도에 도시된 정합회로(502)의 상세도로서, 프로세서(501)로부터 전송되는 제어신호에 의해 제어되어 인가되는 정보를 래치 및 코딩하는 래치 및 코딩부(600), 상태레지스터(611), 모드/어드레스 레지스터(612), 데이타 레지스터(613), 제어 레지스터(614)로 구성된 내부 레지스터(610), 외부장치(510)로부터 전송되는 제어신호를 상술한 상태 레지스터(611)로 전송하는 제어신호 전송부(620), 쓰기모드시 모드/어드레스 레지스터(612) 및 데이타 레지스터(613)에서 출력되는 정보를 선택적으로 출력하고, 읽기모드시에는 외부장치(510)로부터 전송되는 데이타를 데이타 레지스터(223)로 전송하도록 신호전송 역할을 하는 멀티플렉서/디멀티플렉서(630), 외부장치(510)로부터 전송되는 에러신호(ERR)신호에 의하여 정보전송을 재시도하는 재전송 시도부(650), 재전송 시도부(650)에서 출력되는 신호와 제어레지스터(614)에서 출력되는 신호의 논리조합에 의하여 상술한 멀티플렉서/디멀티플렉서(630)의 동작을 제어하여 신호전송을 제어하는 역할을 하는 멀티플렉서/디멀티플렉서 제어부(640), 재전송 시도부(650)에서 재시도가 이루어지지 않을 때 프로세서(501)로 인터럽트 신호를 전송하기 위한 인터럽트 처리부(660) 및 TAST(TXD ASSERT)신호와 RAST(RXD ASSERT) 신호에 의하여 에러발생여부 체크기간이 제어되어 에러가 발생되지 않으면 DTACK신호를 발생하기 위한 DTACK발생부(670)로 구성된다.FIG. 6 is a detailed view of the matching circuit 502 shown in FIG. 5 and includes a latch and coding unit 600 and a state register for latching and coding information applied under the control signal transmitted from the processor 501. 611, an internal register 610 composed of a mode / address register 612, a data register 613, a control register 614, and a control signal transmitted from the external device 510 to the above-described status register 611. The control signal transmitting unit 620 transmits information selectively outputted from the mode / address register 612 and the data register 613 in the write mode, and the data transmitted from the external device 510 in the read mode. A multiplexer / demultiplexer 630 serving as a signal transmission to be transmitted to the data register 223, a retransmission attempting unit 650 which retries information transmission by an error signal (ERR) signal transmitted from an external device 510, retransmission city A multiplexer / demultiplexer controller 640 which controls signal transmission by controlling the operation of the multiplexer / demultiplexer 630 described above by a logical combination of a signal output from the unit 650 and a signal output from the control register 614. ), An error occurs due to an interrupt processor 660 for transmitting an interrupt signal to the processor 501 and a TAST (TXD ASSERT) signal and a RAST (RXD ASSERT) signal when the retransmission attempt unit 650 does not retry. If the check period is controlled to prevent an error, the DTACK generator 670 is configured to generate a DTACK signal.

이와 같이 구성된 정합회로(502)에 의하여 프로세서(501)는 메모리의 쓰기 또는 읽기 사이클처럼 사이클을 수행하게 된다. 즉, 프로세서(501)로부터 칩선택신호(CS_)가 액티브상태로 전송되면, 래치 및 코딩부(600)는 인에이블 상태가 되어 입력되는 모든 신호를 래치한다.By the matching circuit 502 configured as described above, the processor 501 performs a cycle as a write or read cycle of a memory. That is, when the chip select signal CS_ is transmitted from the processor 501 to the active state, the latch and coding unit 600 enters the enable state and latches all the input signals.

이 때 프로세서(501)로부터 전송된 R/W_신호가 쓰기모드인 경우에는 보조제어장치(500)로 부터 외부장치(510)로 데이타를 전송하기 위하여, 내부레지스터(610)내의 상태레지스터(611)를 통해 버스사용여부를 체크한다. 여기서 상태레지스터(611)를 통한 버스사용여부는 제어신호 전송부(620)를 통해 외부장치(510)로부터 전송되는 제어신호에 의하여 설정된 상태비트의 체크에 의하여 이루어진다.In this case, when the R / W_ signal transmitted from the processor 501 is in the write mode, the state register 611 in the internal register 610 is used to transfer data from the auxiliary control device 500 to the external device 510. Check if the bus is used. The use of the bus through the state register 611 is performed by checking the state bit set by the control signal transmitted from the external device 510 through the control signal transmitter 620.

버스사용이 가능하면, 래치 및 코딩부(600)에 저장되어 있는 어드레스신호에 의하여 모드/어드레스 레지스터(612) 및 데이타 레지스터(613)를 지정하고, 해당 데이타를 저장시킨 뒤 제어레지스터(614)에 의하여 모드/어드레스 레지스터(612)와 데이타 레지스터(613)에 저장되어 있는 데이타를 멀티플렉서/디멀티플렉서(630)을 통해 제7도와 같이 명령어모드(COMMAND MODE;C/M) 비트, 뱅크(BANK) 비트, 어드레스 비트, 데이타 비트 및 체크섬비트순으로 시리얼하게 전송되도록 제어한다. 이때 외부장치(510)로의 전송에 에러가 발생하지 않으면, 제어레지스터(614)에서 출력되는 제어신호에 의하여 멀티플렉서/비멀티플렉서 제어부(640)가 구동되어 모드/어드레스 레지스터(612) 및 데이타 레지스터(613)에서 출력되는 신호를 선택적으로 출력한다. 그러나 외부장치(510)로부터 전송에러가 발생되면, 재전송 시도부(650)에 의해 다시 C/M비트부터 데이타비트까지 다시 전송이 이루어지도록 재시도 제어신호를 멀티플렉서/디멀티플렉서 제어부(640)로 전송한다.If the bus can be used, the mode / address register 612 and the data register 613 are designated according to the address signals stored in the latch and coding unit 600, and the corresponding data is stored in the control register 614. By using the multiplexer / demultiplexer 630, the data stored in the mode / address register 612 and the data register 613 are changed into the COMMAND MODE (C / M) bit, the BANK bit, Controls serial transmission of address bits, data bits, and checksum bits. At this time, if an error does not occur in the transmission to the external device 510, the multiplexer / non-multiplexer control unit 640 is driven by a control signal output from the control register 614 to operate the mode / address register 612 and the data register 613. Selectively output the signal output from). However, when a transmission error occurs from the external device 510, the retry control unit 650 transmits a retry control signal to the multiplexer / demultiplexer controller 640 so that transmission from the C / M bit to the data bit is performed again. .

이에 따라 멀티플렉서/디멀티플렉서 제어부(640)는 재전송 시도부(650)에서 전송되는 데이타를 우선으로 하여 멀티플렉서/디멀티플렉서(630)의 전송을 제어한다. 이러한 전송제어에도 불구하고 다시 에러가 발생된 경우에 재전송 시도부(650)는 재차 재시도를 수행한다. 이와 같은 재시도과정은 일정 횟수만큼 이루어지고, 일정 횟수를 초과할 경우에는 인터럽트 처리부(660)로 인터럽트 요구신호를 전송한다. 인터럽트 처리부(660)는 재전송 시도부(650)로 부터 입력된 신호와 FC[2:0], ADDR[19:16]을 이용하여 인터럽트 요구신호(IRQ)를 프로세서 (501)로 송신한다.Accordingly, the multiplexer / demultiplexer control unit 640 controls the transmission of the multiplexer / demultiplexer 630 by giving priority to the data transmitted from the retransmission attempt unit 650. If an error occurs in spite of such transmission control, the retransmission attempting unit 650 retryes again. The retry process is performed a predetermined number of times, and when the predetermined number of times is exceeded, the interrupt request signal is transmitted to the interrupt processor 660. The interrupt processor 660 transmits an interrupt request signal IRQ to the processor 501 using a signal input from the retransmission attempt unit 650 and FC [2: 0] and ADDR [19:16].

이에 따라 프로세서 (501)는 전송에러 발생에 따른 인터럽트 루틴을 처리하게 된다.Accordingly, the processor 501 processes the interrupt routine according to the transmission error.

멀티플렉서/디멀티플렉서(630)로부터 출력된 신호는 슈도 ECL 케이블을 통해 시리얼하게 외부장치 (510)로 전송된다.The signal output from the multiplexer / demultiplexer 630 is serially transmitted to the external device 510 through the pseudo ECL cable.

DTACK 발생부(670)는 쓰기 모드시에는 멀티플렉서/디멀티플렉서(630)에서 출력되는 TAST(TXD ASSERT)신호가 액티브상태에서 비액티상태로 변환되는 시점에서 외부장치 (501)로부터 에러 신호(ERR)가 전송되지 않으면, DTACK를 프로세서(501)로 전송하여 정보전송이 정상적으로 이루어졌음을 프로세서(501)에게 알린다. 이로 인하여 프로세서(501)는 정보전송과정을 종료한다.In the write mode, the DTACK generator 670 receives an error signal ERR from the external device 501 when the TAST (TXD ASSERT) signal output from the multiplexer / demultiplexer 630 is converted from the active state to the inactive state. If not, the DTACK is transmitted to the processor 501 to inform the processor 501 that the information transmission is normally performed. As a result, the processor 501 terminates the information transmission process.

한편. 읽기모드시에는 제7도에 도시된 바와 같이 상술한 쓰기모드시에서와 같이 C/M, BANK, 어드레스신호가 정합회로(502)로부터 외부장치(510)로 시리얼하게 전송된 뒤, 어느 정도의 지연시간을 갖고 외부장치(510)로부터 에러가 발생되었는지를 체크한다. 이 때 에러가 발생되지 않으면, 제7도에 도시된 읽기타이밍도와 같이 외부장치(510)로부터 해당되는 데이타 및 체크섬값이 멀티플렉서/디멀티플렉서(630)를 통해 전송되어 데이타 레지스터(614)를 통해 래치 및 코딩부(600)로 전송되어 프로세서(501)로 전송된다.Meanwhile. In the read mode, as shown in FIG. 7, the C / M, BANK, and address signals are serially transmitted from the matching circuit 502 to the external device 510 as described above. With a delay time, it is checked whether an error has occurred from the external device 510. If no error occurs at this time, corresponding data and checksum values are transmitted from the external device 510 through the multiplexer / demultiplexer 630, as illustrated in the read timing diagram of FIG. The data is transmitted to the coding unit 600 and transmitted to the processor 501.

그리나 C/M, BANK, 어드레스신호 전송후, 외부장치(510)로부터 발생되는 RAST신호가 액티브상태가 되기 전동안 에러가 발생되면, 재전송 시도부(650)에 의하여 현재 전송되었던 C/M비트부터 어드레스비트까지 다시 전송된다. 그러나 에러가 발생되지 않으면, DTACK발생부(670)는 RAST신호가 액티브상태에서 비액티브상태로 전환되는 시점에서 프로세서 (501)로 DTACK신호를 전송하여 정상적으로 정보가 전송되었음을 알린다. 이에 따라 프로세서(501)는 정보전송과정을 완료하게 된다.However, if an error occurs while the RAST signal generated from the external device 510 becomes active after transmitting the C / M, BANK, and address signals, the C / M bit that is currently transmitted by the retransmission attempt unit 650 starts. The address bit is transmitted again. However, if no error occurs, the DTACK generation unit 670 transmits a DTACK signal to the processor 501 at the time when the RAST signal is switched from the active state to the inactive state to inform that the information has been transmitted normally. Accordingly, the processor 501 completes the information transmission process.

상술한 바와 같이 처리될 경우, 프로세서(501)는 제8도에 도시된 바와 같이 제801단계에서 어드레스 및 데이타 전송 후, 제802단계로 진행되어 인가되는 DTACK신호에 의하여 전송종료인지를 판단한 후, 전송종료 상태이면 전송과정을 종료하는 처리만으로도 외부장치 (510)에 대한 처리가 가능해진다.When the processing is performed as described above, the processor 501 transmits the address and data in step 801 as shown in FIG. 8, and then proceeds to step 802 to determine whether the transmission ends by the DTACK signal applied. In the transmission termination state, the external device 510 may be processed only by the process of terminating the transmission process.

이상, 본 발명에 따른 정합회로는 보조제어 장치와 외부장치의 통신시, 프로세서에서 필요한 정보가 발생되면 마치 기억장치를 억세스하는 것같이 하드웨어적으로 신뢰성 있게 처리하므로서, 프로세서의 처리과정을 단순화하여 프로세서의 부하를 경감시킬 뿐아니라 프로그램을 고수준으로 작성할 수 있게 하는 효과가 있다.As described above, the matching circuit according to the present invention simplifies the processing of the processor by reliably processing the hardware as if the necessary information is generated from the processor when the auxiliary control device communicates with the external device as if the memory device is accessed. Not only does it reduce the load on the system, but it also has the effect of allowing the program to be written at a high level.

또한 보조제어장치와 외부장치간에 슈도 ECL케이블을 이용하여 데이타 전송율을 결정하는 전송 또는 수신클럭(TXCLK, RXCLX)을 기존의 수 MHz에서 수십 MHz로 사용하여 전송속도를 높혔을 뿐만아니라 전송케이블 수를 감소시켜서 시스템의 안정화를 증대시켜 제품의 신뢰도를 향상시켰으며, 제품의 가격절감에 기여한 이점 등이 있다.In addition, the transmission or reception clocks (TXCLK, RXCLX), which determines the data rate using the pseudo ECL cable between the auxiliary control device and the external device, have been increased from several MHz to several tens of MHz, and the number of transmission cables is increased. Increasing stabilization of the system, thereby improving the reliability of the product, and has contributed to reducing the price of the product.

Claims (6)

전전자 교환기의 보조제어장치(500)와 외부장치(510)간의 통신시 상기 보조제어장치(500)내의 프로세서(501)와 상기 외부장치(510)간을 정합하기 위한 정합회로에 있어서, 상기 프로세서로부터 전송되는 제어신호에 의해 제어되어 상기 프로세서(501)로부터 전송되는 신호를 래치하고 코딩하기 위한 래치 및 코딩부(600); 상태레지스터(611), 모드/어드레스 레지스터(612), 데이타 레지스터(613) 및 제어레지스터(614)로 구성되어 상기 래치 및 코딩부(600)로 부터 전송되는 신호를 저장하고, 읽기모드시 상기 데이타 레지스터(613)에 저장된 정보를 상기 래치 및 코딩부(600)로 전송하기 위한 내부 레지스터(610); 상기 외부장치(510)로 부터 전송되는 제어신호를 상기 상태 레지스터(611)로 전송하기 위한 제어신호 전송부(620); 상기 모드/어드레스 레지스터(612)와 상기 데이타 레지스터(613)에서 출력되는 신호를 상기 외부장치(510)로 선택적으로 전송하고, 상기 외부장치(510)로 부터 전송되는 신호를 상기 데이타 레지스터(613)로 전송하는 신호전송부(630); 상기 외부장치(510)로부터 에러 신호(ERR)가 전송되면, 상기 모드/어드레스 레지스터(612) 및 데이타 레지스터(613)에 저장되어 있는 신호의 재전송을 요구하는 재전송시도부(650); 상기 재전송시도부(650)의 출력신호와 상기 제어레지스터(614)의 출력신호에 의하여 상기 신호전송부(630)의 전송동작을 제어하기 위한 전송제어부(640): 상기 신호전송부(630)에서 제공되는 송신어서트신호(TAST)와 상기 외부장치(510)에서 제공되는 수신어서트신호(RAST) 및 상기 에러신호(ERR)에 의하여 정상적인 데이타 전송상태(DTACK)를 알리는 신호를 발생하는 DTACK발생부(670)를 포함함을 특징으로 하는 보조제어장치와 외부장치 간 정합회로.In the matching circuit for matching between the processor 501 and the external device 510 in the auxiliary control device 500 during communication between the auxiliary control device 500 and the external device 510 of the electronic switchboard, the processor A latch and coding unit (600) for latching and coding a signal transmitted from the processor (501) by being controlled by a control signal transmitted from the processor; It consists of a state register 611, a mode / address register 612, a data register 613 and a control register 614 to store a signal transmitted from the latch and the coding unit 600, the data in the read mode An internal register 610 for transmitting information stored in the register 613 to the latch and coding unit 600; A control signal transmitter 620 for transmitting a control signal transmitted from the external device 510 to the status register 611; The signal output from the mode / address register 612 and the data register 613 is selectively transmitted to the external device 510, and the signal transmitted from the external device 510 is transmitted to the data register 613. Signal transmission unit 630 for transmitting to; A retransmission attempt unit 650 for requesting retransmission of signals stored in the mode / address register 612 and the data register 613 when an error signal ERR is transmitted from the external device 510; Transmission control unit 640 for controlling the transmission operation of the signal transmission unit 630 according to the output signal of the retransmission attempt unit 650 and the control register 614: in the signal transmission unit 630 DTACK generation that generates a signal indicating a normal data transfer state DTACK by the provided transmit assert signal TAST, the received assert signal RAST provided by the external device 510, and the error signal ERR Matching circuit between the auxiliary control device and the external device, characterized in that it comprises a portion (670). 제1항에 있어서, 상기 신호전송부(630)는 상기 외부장치(510)와 직렬로 데이타를 송수신하도록 구성됨을 특징으로 하는 보조제어장치와 외부장치간 정합회로.The matching circuit according to claim 1, wherein the signal transmission unit (630) is configured to transmit and receive data in series with the external device (510). 제2항에 있어서, 상기 전송제어부(630)는 상기 모드/어드레스 레지스터(612)와 데이타 레지스터(613)에서 출력되는 정보를 상기 외부장치(510)로 선택적으로 출력하는 멀티플렉서와 상기 외부장치(510)로부터 전송되는 데이타를 상기 데이타 레지스터(614)로 전송하는 디멀티플렉서로 이루어짐을 특징으로 하는 보조제어장치와 외부장치간 정합회로.The multiplexer and the external device 510 of claim 2, wherein the transmission controller 630 selectively outputs information output from the mode / address register 612 and the data register 613 to the external device 510. And a demultiplexer which transmits data transmitted from the data to the data register (614). 제1항에 있어서, 상기 DTACX발생부(670)는 상기 프로세서(501)로부터 상기 외부장치(510)로 쓰기모드시 상기 송신어서트신호가 액티브상태에서 비액티브상태로 변환된 후 일정 기간동안 상기 에러신호의 발생여부를 체크하여 상기 DTACK신호의 발생을 제어하고, 상기 읽기모드시 상기 송신어서트신호와 상기 수신어서트신호가 동시에 비액티브상태일 때 상기 에러신호의 발생여부를 체크하여 상기 DTACK신호의 발생을 제어함을 특징으로 하는 보조제어장치와 외부장치간 정합회로.The DTACX generating unit 670 of claim 1, wherein the DTACX generation unit 670 is configured to perform a predetermined period of time after the transmission assert signal is converted from an active state to an inactive state in a write mode from the processor 501 to the external device 510. The generation of the DTACK signal is controlled by checking whether an error signal is generated, and the DTACK is checked by generating the error signal when the transmitting assert signal and the receiving assert signal are inactive at the same time in the read mode. A matching circuit between an auxiliary control device and an external device, characterized in that it controls the generation of a signal. 제1항에 있어서, 상기 재전송시도부(650)는 상기 재전송 시도요구 횟수가 소정수를 넘을 경우 상기 프로세서(501)로 인터럽트 신호를 요구함을 특징으로 하는 보조제어장치와 외부장치간 정합회로.The matching circuit of claim 1, wherein the retransmission attempt unit (650) requests an interrupt signal to the processor (501) when the number of retransmission attempt requests exceeds a predetermined number. 제1항 또는 제3항에 있어서, 상기 정합회로(502)는 상기 외부장치(510)와 의사(Pseudo) ECL 케이블을 통해 연결되도록 구성됨을 특징으로 하는 보조제어장치의 외부장치간 정합회로.The matching circuit according to claim 1 or 3, wherein the matching circuit (502) is configured to be connected to the external device (510) through a pseudo ECL cable.
KR1019950030867A 1995-09-20 1995-09-20 Circuit for interfacing between auxiliary processor and external device KR0154470B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950030867A KR0154470B1 (en) 1995-09-20 1995-09-20 Circuit for interfacing between auxiliary processor and external device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950030867A KR0154470B1 (en) 1995-09-20 1995-09-20 Circuit for interfacing between auxiliary processor and external device

Publications (2)

Publication Number Publication Date
KR970019289A KR970019289A (en) 1997-04-30
KR0154470B1 true KR0154470B1 (en) 1998-11-16

Family

ID=19427351

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950030867A KR0154470B1 (en) 1995-09-20 1995-09-20 Circuit for interfacing between auxiliary processor and external device

Country Status (1)

Country Link
KR (1) KR0154470B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100442437B1 (en) * 2002-08-21 2004-07-30 엘지전자 주식회사 Apparatus and Method for processing and perceiving wrong action in keyphone system

Also Published As

Publication number Publication date
KR970019289A (en) 1997-04-30

Similar Documents

Publication Publication Date Title
US6145045A (en) System for sending and receiving data on a Universal Serial Bus (USB) using a memory shared among a number of end points
US5185877A (en) Protocol for transfer of DMA data
EP0303751B1 (en) Interface mechanism for controlling the exchange of information between two devices
US6157975A (en) Apparatus and method for providing an interface to a compound Universal Serial Bus controller
US5313627A (en) Parity error detection and recovery
US4945473A (en) Communications controller interface
US5163138A (en) Protocol for read write transfers via switching logic by transmitting and retransmitting an address
US5968156A (en) Programmable peripheral component interconnect (PCI) bridge for interfacing a PCI bus and a local bus having reconstructable interface logic circuit therein
US5687393A (en) System for controlling responses to requests over a data bus between a plurality of master controllers and a slave storage controller by inserting control characters
US5128666A (en) Protocol and apparatus for a control link between a control unit and several devices
US5430844A (en) Communication control system for transmitting, from one data processing device to another, data along with an identification of the address at which the data is to be stored upon reception
KR0154470B1 (en) Circuit for interfacing between auxiliary processor and external device
US5588120A (en) Communication control system for transmitting, from one data processing device to another, data of different formats along with an identification of the format and its corresponding DMA controller
EP0793181B1 (en) Data transmission system between master and slave and slave using the same
KR100225531B1 (en) Apparatus for interfacing between peripheral processor and device in the switching system
US20040034710A1 (en) Data transfer operations
JP2000112878A (en) Device and method for controlling timing of transfer request in data processor
JPH0787470B2 (en) Data transmission equipment
KR940006833B1 (en) Apparatus for controlling the request on common resources
KR970002400B1 (en) Control scheme of interrupt go and done in a multiprocessor interrupt requester
KR960005743B1 (en) Data transmit inspecting circuit
KR100531729B1 (en) Apparatus for interface pheriperal device with PC using parallel port and method thereof
KR100292059B1 (en) Data retransmission system at the exchange
SU1278871A1 (en) Interface for linking microprocessor peripheral equipment with input-output channel of electronic computer
KR940001432B1 (en) Peripheral system access method by meaus of td-bus

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee