KR900007548Y1 - Apparatus for compensating clock pulse rate in hdlc - Google Patents

Apparatus for compensating clock pulse rate in hdlc Download PDF

Info

Publication number
KR900007548Y1
KR900007548Y1 KR2019860022343U KR860022343U KR900007548Y1 KR 900007548 Y1 KR900007548 Y1 KR 900007548Y1 KR 2019860022343 U KR2019860022343 U KR 2019860022343U KR 860022343 U KR860022343 U KR 860022343U KR 900007548 Y1 KR900007548 Y1 KR 900007548Y1
Authority
KR
South Korea
Prior art keywords
counters
clock
output
bus
hdlc controller
Prior art date
Application number
KR2019860022343U
Other languages
Korean (ko)
Other versions
KR880013962U (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 KR2019860022343U priority Critical patent/KR900007548Y1/en
Publication of KR880013962U publication Critical patent/KR880013962U/en
Application granted granted Critical
Publication of KR900007548Y1 publication Critical patent/KR900007548Y1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/02Speed or phase control by the received code signals, the signals containing no special synchronisation information
    • H04L7/027Speed or phase control by the received code signals, the signals containing no special synchronisation information extracting the synchronising or clock signal from the received signal spectrum, e.g. by using a resonant or bandpass circuit

Abstract

내용 없음.No content.

Description

셀프 클럭레이트 에어보정 및 회복회로Self-Clocked Air Compensation and Recovery Circuit

제1도는 본 고안의 따른 회로도.1 is a circuit diagram according to the present invention.

제2도는 본 고안에 따른 제1도의 클럭레이트 보정회로(50)의 구체회로도.2 is a detailed circuit diagram of the clock rate correction circuit 50 of FIG. 1 according to the present invention.

제3도는 본 고안에 따른 동작 파형도.3 is an operating waveform diagram according to the present invention.

제4도는 본 고안을 실현하기 위한 흐름도.4 is a flow chart for realizing the present invention.

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

10 : 중앙처리장치 20 : 송수신버퍼용 메모리10: central processing unit 20: transmission and reception buffer memory

30 : HDLC콘트롤러 40 : 병렬입출력회로30: HDLC controller 40: parallel input / output circuit

50 : 클럭레이트 보정회로 11-14 : 래치50: clock rate correction circuit 11-14: latch

21-23 : 버스트랜시버 31-36 : 카운터21-23: Bus Transceiver 31-36: Counter

41, 42 : 멀티플렉서41, 42: Multiplexer

본 고안은 링크레이어(Link Layer)의 링크프로토콜(Protocol)을 수행할 수 있는 HDLC(High Level Date Link Control)콘트롤러 사용에 있어서 클럭에러 보정에 관한 것으로, 특히 송수신 클럭 레이트(Rate)가 상기 HDLC콘트롤러의 마스트 클럭 레이트보다 빨라서 데이타 전송이 중단될 때 자동으로 클럭레이트를 보정시켜 정상 상태로 회복시킬 수 있는 셀프 클럭레이트 에러보정 및 회복회로에 관한 것이다.The present invention relates to clock error correction in the use of a High Level Date Link Control (HDLC) controller capable of performing a link protocol of a link layer. In particular, the transmit / receive clock rate (Rate) is the HDLC controller. The present invention relates to a self clock rate error correction and recovery circuit that is capable of recovering to a normal state by automatically correcting a clock rate when data transmission is interrupted because it is faster than a mast clock rate of.

일반적으로 하이레벨 데이타 링크레어(이하 "HDLC"라 칭함)의 순서는 임의의 비트길이의 정보를 프레임(Frame)이라고 하는 전송단위로 분할하고, 상기 프레임속의 제어정보에 포함되는 명령(Command) 및 응답(Response)정보를 사용하여 부호의 제약을 받지않고 연속적으로 정보를 전송할 수 있도록 하는 전송 제어순서, 즉, 프로토콜이다.In general, the order of the high-level data link layer (hereinafter referred to as "HDLC") is to divide an arbitrary bit length information into a transmission unit called a frame, and to include a command included in the control information in the frame. It is a transmission control sequence, that is, a protocol, which enables information to be continuously transmitted without being restricted by a code by using response information.

상기 후레임 구조는 플랙, 어드레스, 제어가 8비트로 형성되며, 정보는 n비트로 형성되고, 프레임 체크 시이퀀스(Frame Check Sequence)는 16비트로 형성한다. 그리고 링크제어 순서는 명령과 응답의 2개의 순서 클래스(Class)로 나누고 그것을 사용할 수 있는 방법을 규정하고 있다.The frame structure has 8 bits of flag, address, and control, n bits of information, and 16 bits of frame check sequence. The link control sequence is divided into two order classes of commands and responses, and defines how to use them.

상기 HDLC에 대한 구체적인 기술적인 내용은 "옴(Ohm)사"발행"데이타 통신과 컴퓨터 네트워크"의 부록 558페이지부터 605페이지까지 상세히 기술되어 있다.Specific technical details of the HDLC are described in detail in pages 558 to 605 of Appendix "Ohm," "Data Communication and Computer Network."

종래 상기 HDLC 포로토콜을 수행할 시 HDLC콘트롤러의 전용칩을 주로 많이 사용하는데, 상기 HDLC콘트롤러 전용칩은 미국 반도체 회사의 "웨스터 디지탈"사의 WD2511로 이의 기능은 데이타 포맷과 에러 체크가 가능하고, 내부 소프트웨어에 의해 동기 타이밍 및 블럭이 지정되며, HDLC순서에 의해 정보 프레임을 송수신할 수 있도록 제공되어 있다. 그러나 송수신 클럭레이트가 HDLC콘트롤러의 마스터 클럭에 비해서 너무 빠를 경우 클럭레이트에 에러가 발생되어 프레임 데이타 송수신이 비트에러가 발생된다.When the HDLC protocol is conventionally used, a dedicated chip of an HDLC controller is mainly used. The dedicated chip of the HDLC controller is WD2511 of "West Digital" of a US semiconductor company, and its function is capable of data format and error checking. Synchronization timing and blocks are designated by software, and are provided to transmit and receive information frames in HDLC order. However, if the transmit / receive clock rate is too fast compared to the master clock of the HDLC controller, an error occurs in the clock rate, resulting in a bit error in frame data transmission / reception.

이때 데이타 전송이 중단되어 데이타 송수신이 불가능하게 되는 문제점이 있었다.At this time, there was a problem in that data transmission was stopped and data transmission and reception were impossible.

따라서 본 고안의 목적은 송수신 클럭레이트와 HDLC의 마스트 클럭레이트의 속도차에 따른 클럭에러를 스스로 보정하여 데이타의 송수신을 정상 상태로 자동으로 환원 시킬 수 있는 회로를 제공함에 있다.Accordingly, an object of the present invention is to provide a circuit capable of automatically reducing data transmission and reception to a normal state by correcting a clock error according to a speed difference between a transmit / receive clock rate and a master clock rate of an HDLC.

이하 본 고안을 첨부된 도면을 참조하여 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

제1도는 본 고안에 따른 회로도로서, 10은 중앙처리장치, 20은 송수신버퍼용 메모리, 30은 HDLC콘트롤러, 40은 병렬 입출력회로(PIO), 50은 클럭레이트보정회로, 11-14는 래치, 21-23은 버스트랜스버(Tranceiver), 31-36은 카운터, 41-42는 멀티플렉서이다.1 is a circuit diagram according to the present invention, 10 is a central processing unit, 20 is a memory for transmitting and receiving buffer, 30 is HDLC controller, 40 is a parallel input / output circuit (PIO), 50 is a clock rate correction circuit, 11-14 is a latch, 21-23 are bus transceivers, 31-36 are counters, and 41-42 are multiplexers.

상기 병렬입출력회로(40)는 미국 "자이로그사"의 Z80-P10이면 가능하고, 카운터(31-36)는 74LS1611이면 가능하며, 멀티플렉서(41, 42)는 74LS 352이면 가능해진다.The parallel input / output circuit 40 can be made by Z80-P10 of the US "Zylog Corporation", the counters 31-36 can be made by 74LS1611, and the multiplexers 41 and 42 can be made by 74LS352.

상기 중앙처리장치(10)의 데이타버스(DO-D7)에 버스트랜시버(21, 22, 23)가 연결되고, 상기 중앙처리장치(10)의 어드레스 버스(AO-A15)로부터 래치(11, 13)의 데이타버스(DO-D7)가 연결되며, 상기 버스트랜시버(21)의 출력단(BO-B7)이 HDLC콘트롤러(30)의 데이타버스(DO-D7)에 연결되고, 상기 HDLC콘트롤러(30)의 어드레스버스(AO-A7)가 래치(12)의 데이타버스(DO-D7)에 연결되고 어드레스버스(A8-A15)가 래치(14)의 데이타버스(DO-D7)에 연결되며, 상기 래치(11-14)의 각 출력단(QO-Q7)이 송수신 버퍼용 메모리(20)의 어드레스버스(AO-A15)에 연결되고, 상기 버스 트랜시버(22)의 출력단(AO-A7)이 상기 송수신 버퍼용 메모리(20)의 데이타버스(DO-D7)에 연결되며, 상기 버스 트랜시버(23)와 상기 병렬 입출력회로(40)의 데이타버스(DO-D7)간 상호 연결되고, 라이드라이버(61)의 송신요구단(RTS : Request to send)과 송신단(TD : Transmitted Data)이 HDLC콘트롤러(30)의 송신요구단(RTS)과 송신단(TD)과 연결되며, 제2라인리시버(62)의 송신허가단(CTS : Cleat to send)과 수신단(RD : Received Data)이 HDLC콘트롤러(30)의 송신허가단(CTS) 및 수신단(RD)에 연결되고, 제1, 2클럭단(CK1, CK2)의 클럭을 카운터(31, 33, 34, 36)의 클럭단(CLK)으로 입력되도록 연결되며, 상기 카운터(33, 36)의 리플케리출력단(RCO)의 출력을 카운터(32, 35)의 클럭단(CLK)으로 입력되도록 하고, 상기 카운터(32, 35)의 출력단(Q4, QB)을 멀티플렉서(41, 42)의 선택단(G, S)에 연결시켜 상기 출력단(QA, QB)의 출력에 따라 카운터(31, 34)출력 또는 제1라인 리시버(62)를 통한 클럭단(CK1, CK2)의 클럭을 선택하여 HDLC콘트롤러(30)의 송수신 클럭단으로 인가되도록 연결하며, 상기 병렬 입출력회로(40)의 출력단(PA1)으로 부터 발생되는 정정 인에이블라인(52)의 신호와 HDLC콘트롤러(30)의 인터럽트신호단의 신호를 클럭 레이트 보정회로(50)에 입력하고, 상기 병렬 입출력회로(40)의 출력단(PA1)이 인버터(204)를 통해 상기 카운터(31-36)의 인에이블단(EN, P)에 연결하며, 상기 클럭레이트 보정회로(50)의 출력단(Q)을 카운터(32, 35)의 클리어단및 병렬 입출력회로(40)의 입력단(PB1)에 연결하며, 상기 제2라인 리시버(63)의 데이타 세트준비단(: Data Set Ready Data을 병렬 입출력회로(40)의 입력단(PBO)에 연결하고, 라인 드라이버(61)의 데이타 터미널 준비단(DTR : Data Terminal Ready)을 병렬 입출력회로(40)의 입력단(PAO)에 연결한다.Bus transceivers 21, 22, and 23 are connected to the data bus DO-D7 of the central processing unit 10, and latches 11 and 13 from the address bus AO-A15 of the central processing unit 10. Data bus (DO-D7) is connected, the output terminal (BO-B7) of the bus transceiver 21 is connected to the data bus (DO-D7) of the HDLC controller 30, the HDLC controller (30) Is connected to the data bus DO-D7 of the latch 12, and the address buses A8-A15 are connected to the data bus DO-D7 of the latch 14. Each output terminal QO-Q7 of 11-14 is connected to the address bus AO-A15 of the transmission / reception buffer memory 20, and the output terminal AO-A7 of the bus transceiver 22 is the transmission / reception buffer. The data bus DO-D7 of the memory 20 is connected to each other, and the bus transceiver 23 and the data bus DO-D7 of the parallel input / output circuit 40 are interconnected to each other. Request to send (RTS) Transmitted data (TD: Transmitted Data) is connected to the transmit request terminal (RTS) and the transmit terminal (TD) of the HDLC controller 30, and the transmit permission terminal (CTS: Cleat to send) and the receiver (CTS) of the second line receiver 62 ( RD: Received Data) is connected to the transmit permission stage CTS and the receive stage RD of the HDLC controller 30, and the clocks of the first and second clock stages CK1 and CK2 are counters 31, 33, 34, 36. The output of the ripple output terminal RCO of the counters 33 and 36 is inputted to the clock terminal CLK of the counters 32 and 35. The outputs of the counters 31 and 34 or the first or the first output terminals Q4 and QB are connected to the selection terminals G and S of the multiplexers 41 and 42 so as to output the output terminals QA and QB. Transmit and receive clock stages of the HDLC controller 30 by selecting clocks of the clock stages CK1 and CK2 through the line receiver 62. The signal of the correction enable line 52 generated from the output terminal PA1 of the parallel input / output circuit 40 and the interrupt signal terminal of the HDLC controller 30. Is input to the clock rate correction circuit 50, and the output terminal PA1 of the parallel input / output circuit 40 is connected to the enable terminals EN and P of the counters 31-36 through the inverter 204. The output terminal Q of the clock rate correction circuit 50 is connected to a clear terminal of the counters 32 and 35. And a data set preparation stage of the second line receiver 63 connected to the input terminal PB1 of the parallel input / output circuit 40. : Connect the Data Set Ready Data to the input terminal (PBO) of the parallel input / output circuit 40, and connect the Data Terminal Ready terminal (DTR: Data Terminal Ready) of the line driver 61 to the input terminal (PAO) of the parallel input / output circuit 40. Connect.

제2도는 본 발명에 따른 제1도의 클럭레이트 보정회로(50)의 구체 회로도로서, 상기 병렬 입출력회로(40)의 출력단(PA1)을 디플립플롭(202)의 클럭단(CK)에 연결하고, HDLC콘트롤러(201)의 인터럽트단을 멀티바이브레이타(201)의 입력단(A)에 연결하며, 상기 멀티바이브레이타(201)는 74LS121이다. 상기 멀티바이브레이타(201)의 출력단(Q)을 디플립플롭(202)의 데이타단(D)에 연결된다. 상기 디플립플롭(202)의 출력단(Q)을 상기 카운터(32, 35)의 클리어단및 병렬 입출력회로(40)의 입력단(PB1)에 연결된다.FIG. 2 is a detailed circuit diagram of the clock rate correction circuit 50 of FIG. 1 according to the present invention. The output terminal PA1 of the parallel input / output circuit 40 is connected to the clock terminal CK of the flip-flop 202. , Interrupt stage of the HDLC controller 201 Is connected to the input terminal A of the multivibrator 201, and the multivibrator 201 is 74LS121. The output terminal Q of the multivibrator 201 is connected to the data terminal D of the flip-flop 202. The output terminal Q of the deflip-flop 202 is cleared from the counters 32 and 35. And an input terminal PB1 of the parallel input / output circuit 40.

제3도는 본 고안에 따른 동작 파형도로서, (3a)파형은 HDLC콘트롤러(30)의 기본클럭이며, (3b)파형은 제1도의 HDLC콘트롤러(30)의 인터럽트단의 출력이며, (3C)파형은 제2도 멀티바이브레타(201)의 출력단(Q)의 출력신호이고, (3d)파형은 제1도의 병렬 입출력회로(40)의 출력단(PA1)의 출력으로 클럭레이트 보정회로(50)의 정정인에이블 라인(52)의 출력이며, (3e)파형은 디플립플롭(202)의 출력단(Q)의 출력신호이고, (3F)파형은 멀티플렉서(42)의 출력단(out)의 수신클럭(RC)신호이며, (3g)파형은 카운터(33, 36)의 리플 케리 출력단(RCO)의 출력이고, (3h)는 정정된 멀티플렉서(42)의 출력단(out)의 수신클럭(RC)신호이다.3 is an operation waveform diagram according to the present invention, where (3a) waveform is the basic clock of the HDLC controller 30, and (3b) waveform is the interrupt stage of the HDLC controller 30 of FIG. Waveform (3C) is the output signal of the output terminal Q of FIG. 2 multivibrator 201, and (3d) waveform is the output of output terminal PA1 of the parallel input / output circuit 40 of FIG. The output of the correction enable line 52 of the clock rate correction circuit 50, and the waveform (3e) is the output signal of the output terminal Q of the deflip-flop 202, and the waveform (3F) is the multiplexer 42. (3g) is the output of the ripple carry output (RCO) of the counters (33, 36), (3h) is the output (out) of the corrected multiplexer (42). Is the receive clock (RC) signal.

제4도는 본 고안의 실현을 위한 HDLC콘트롤러(30)의 처리 흐름도로서, HDLC콘트롤러(30)의 내부에는 마이크로 컴퓨터와 동일한 각 기능을 수용하고 있으면서 상기 제4도의 흐름도를 처리할 수 있도록 되어 있다. HDLC콘트롤러(30)에서 CCITT권고 x, 25레벨에 따라 데이타를 송수신할 시는 송수신 버퍼용 메모리(20)의 데이타를 사용하게 된다.4 is a flow chart of the HDLC controller 30 for realizing the present invention, and the flow chart of FIG. 4 can be processed while accommodating the same functions as the microcomputer in the HDLC controller 30. When the HDLC controller 30 transmits / receives data according to CCITT recommendation x, 25 levels, the data of the transmit / receive buffer memory 20 is used.

우선 송수신 버퍼용 메모리(20)의 데이타를 HDLC콘트롤러(30)로 전송하거나 상기 HDLC콘트롤러(30)이 처리된 데이타를 송수신 버퍼용 메모리(20)로 옮길시는 중앙처리장치(10)의 제어에 따라 실행된다.First, the control of the central processing unit 10 transmits the data of the transmission / reception buffer memory 20 to the HDLC controller 30 or transfers the processed data to the transmission / reception buffer memory 20. Is executed accordingly.

상기 중앙처리장치(10)가 상기 HDLC콘트롤러(30)에서 처리된 데이타를 송수신 버퍼용 메모리(20)에 저장할 시는 라이트제어단으로 라이트 제어신호가 발생되어 송수신 버퍼용 메모리(20)를 라이트 인에이블하고 어드레스버스(AO-A7)를 통해 HDLC콘트롤러(30)의 내부 입출력 레지스터의 값을 읽을 수 있는 입력단(IAO-IA3)으로 소정신호를 인가하여 상기 읽혀진 입출력 레지스터의 출력에 의해 HDLC콘트롤러(30)가 래치(12, 14)를 인에블하여 어드레스 신호를 출력하고, 송수신 버퍼용 메모리(20)의 어드레스 버스(AO-A15)로 입력되어 저장할 데이타의 번지를 설정하며, 상기 지정된 영역에 HDLC콘트롤러(30)로 부터 출력되는 수신데이타가 버스 트랜시버(21), (22)를 통해 송수신 버퍼용 메모리(20)에 저장된다.When the CPU 10 stores the data processed by the HDLC controller 30 in the transmission / reception buffer memory 20. A write control signal is generated to enable the write and receive buffer memory 20. And a predetermined signal is applied to an input terminal IAO-IA3 capable of reading the value of the internal I / O register of the HDLC controller 30 through the address bus AO-A7, and the HDLC controller 30 is output by the output of the read I / O register. Enable latches 12 and 14 to output an address signal, input the address of the data to be stored and stored in the address bus AO-A15 of the transmission / reception buffer memory 20, and set the HDLC controller in the designated area. Received data output from 30 are stored in the transmission / reception buffer memory 20 through the bus transceivers 21 and 22.

상기 송신된 버퍼용 메모리(20)의 기저장된 데이타를 송신시는 중앙처리장치(10)에서 리드제어단으로 제어신호를 발생하여 송수신 버퍼용 메모리(20)의 리드제어신호로 입력된다. 그리고 어드레스래치인에이블단(ALE)에 의해 래치(11, 13)를 인에이블하여 어드레스 버스(AO-A17)를 통해 출력되는 어드레스를 송수신 버퍼용 메모리(20)에 입력하여 읽어낼 번지를 지정한다.When the pre-stored data of the transmitted buffer memory 20 is transmitted, the read control stage of the central processing unit 10 is transmitted. By generating a control signal, the read control signal of the transmission / reception buffer memory 20 Is entered. The latches 11 and 13 are enabled by the address latch enable end ALE to input an address output through the address bus AO-A17 into the transmission / reception buffer memory 20 to designate a address to be read. .

상기 송수신 버퍼용 메모리(20)의 상기 지정된 번지의 데이타가 버스 트랜시버(21)를 통해 HDLC콘트롤러(30)에 입력됨과 동시에 버스 트랜시버(23)를 통해 병렬 입출력회로(40)의 데이타버스(DO-D7)로 입력하도록 되어 있다.The data of the designated address of the transmit / receive buffer memory 20 is input to the HDLC controller 30 through the bus transceiver 21 and at the same time the data bus (DO−) of the parallel input / output circuit 40 through the bus transceiver 23. D7).

이때 또한 상기 HDLC콘트롤러(30)는 중앙처리장치(10)의 어드레스버스(AO-A7)를 통해 발생되는 신호가 HDLC콘트롤러(30)의 입력단(IAO-IA3)으로 입력되어 입출력 레지스터에서 발생되는 신호에 의해 상기 송수신 버퍼용 메모리(20)의 리드된 송신용 데이타를 입력할 수 있도록 되어 있다. 그리고 카운터(31, 33, 34, 36)는 제1라인 리시버(62)를 통해 입력되는 클럭단(CK1, CK2)의 클럭을 각각 카운트 한다.At this time, the HDLC controller 30 receives a signal generated through the address bus AO-A7 of the central processing unit 10 to the input terminal IAO-IA3 of the HDLC controller 30 and is generated from an input / output register. By this, it is possible to input the read data of the transmission / reception buffer memory 20. The counters 31, 33, 34, and 36 count clocks of the clock stages CK1 and CK2 respectively input through the first line receiver 62.

상기 카운터(33, 36)에서 소정 카운팅되었을때 리플케리가 발생되어 카운터(32, 35)의 클럭단(CLK)으로 입력되어 카운터(32, 35)에서 다시 카운팅된다.When a predetermined count is counted by the counters 33 and 36, a ripple is generated and input to the clock stage CLK of the counters 32 and 35, and counted again by the counters 32 and 35.

상기 카운터(32, 35)의 카운팅 결과에 따라 상기 카운터(32, 35)의 출력단(QA, QB)의 출력이 멀티플렉서(41, 42)의 선택단(G, S)에 입력되어 상기 선택단(G, S)의 입력 논리에 따라 카운터(31, 34) 및 제1라인리시버(62)의 클럭단(CK1, CK2)의 입력클럭을 선택하여 HDLC콘트롤러(30)의 송수신 클럭단(TC, RC)의 클럭신호로 공급하도록 구성되어 있는데, 정상상태일시 카운터(31-36)는 디스에이블되어 상기 제1라인리시버(62)의 클럭단(CK1, CK2)의 입력 클럭을 직접 공급하도록 되어 있다.According to the counting result of the counters 32 and 35, the outputs of the output terminals QA and QB of the counters 32 and 35 are input to the selection terminals G and S of the multiplexers 41 and 42 and thus the selection stage ( Transmit and receive clock stages TC and RC of the HDLC controller 30 by selecting the input clocks of the clock stages CK1 and CK2 of the counters 31 and 34 and the first line receiver 62 according to the input logic of G and S. It is configured to supply as a clock signal, but the steady state date / time counters 31 to 36 are disabled to supply the input clocks of the clock terminals CK1 and CK2 of the first line receiver 62 directly.

그러나 HDLC콘트롤러(30)의 정상운용중 클럭의 에러가 발생되면 인터럽트단으로 제어신호가 발생되어 클럭레이트 보정회로(50)에 입력될시 상기 클럭레이트 보정회로(50)의 출력에 의해 카운터(32, 35)의 카운팅을 제어하고, 병렬입출력회로(40)의 출력단(PA1)의 상태가 인버터(204)를 통해 카운터(31-36)를 인에이블 한다.However, if the clock error occurs during normal operation of the HDLC controller 30, the interrupt terminal When the control signal is generated and input to the clock rate correction circuit 50, the counting of the counters 32 and 35 is controlled by the output of the clock rate correction circuit 50, and the output terminal of the parallel I / O circuit 40 ( The state of PA1 enables the counters 31-36 via the inverter 204.

상기 카운터(31, 34)에서 분주되어진 출력이 멀티플렉서(42)에서 카운터(32, 35)의 출력단(QA, QB)의 출력에 따라 선택되어 공급된다. 상기 선택된 클럭이 HDLC콘트롤러(30)의 클럭 에러에 따른 보정 클럭으로 공급된다. 그리고 송수신 클럭단(RC, TC)의 클럭이 정상으로 환원되면 클럭레이트 보정회로(50)는 다시 처음 상태로 되어 카운터(31-36)를 디스에이블시켜 카운터(32, 35)의 출력에 의해 멀티플렉서(41, 42)에서 상기 제1라인리시버(62)의 클럭단(CK1, CK2)의 클럭을 받아들이도록 되어 있다.The output divided by the counters 31 and 34 is selected and supplied by the multiplexer 42 in accordance with the outputs of the output terminals QA and QB of the counters 32 and 35. The selected clock is supplied to the correction clock according to the clock error of the HDLC controller 30. When the clocks of the transmit / receive clock stages RC and TC are returned to their normal state, the clock rate correction circuit 50 returns to the initial state and disables the counters 31 to 36 so that the multiplexer is output by the counters 32 and 35. At 41 and 42, the clocks of the clock terminals CK1 and CK2 of the first line receiver 62 are received.

따라서 본 고안의 구체적 일실시예를 제1도-제4도를 참조하여 구체적으로 설명하면, HDLC콘트롤러(30)는 제4도와 같은 인터럽트 루틴에 의해 주기적으로 낸부 스테이터스 소정의 레지스터를 (4a)과정에서 읽어본다.Therefore, if a specific embodiment of the present invention will be described in detail with reference to FIGS. 1 to 4, the HDLC controller 30 processes the register status predetermined register periodically by an interrupt routine as shown in FIG. Read on.

상기 HDLC콘트롤러(30)의 내부에는 스테인터스 레지스터가 3개 설정되어 있는데 상기 스테이터스 레지스터에는 동작시 발생된 클럭 에러 상태의 값이 저장되도록 되어 있어 이를 읽어보고 클럭에러 상태를 알 수 있다.Three status registers are set in the HDLC controller 30. The status register stores a value of a clock error state generated during operation so that the clock error state can be read.

따라서 상기(4a)과정에서 스테이터스 레지스터의 값을 읽고 (4b)과정에서 상기 읽은 스테이터스 레지스터의 값으로 부터 HDLC콘트롤러(30)가 패켓 리시버에 대한 세트가 되어 있는가를 체킹한다. 상기 (4b)과정에서 패켓리시버 세팅상태일때 리시버레디(Receive Ready)비트가 세팅되어 있는가를 (4c)과정에서 체킹한다. 상기 (4c)과정에서 리시버 레디 비트가 세팅되어 있을때 (4e)과정에서 클리어하고 리시버 레디비트가 세팅이 되지 않을때 블록전송을 위한 전송클럭 비트가 세팅되었냐를 (4d)과정에서 체킹한다.Therefore, the value of the status register is read in step (4a) and the HDLC controller 30 checks whether the packet receiver is set from the value of the status register in step (4b). In step 4c, it is checked whether a receiver ready bit is set when the packet receiver is set in step 4b. When the receiver ready bit is set in step (4c), it is cleared in step (4e) and when the receiver ready bit is not set, it is checked in step (4d) whether the transmission clock bit for block transmission is set.

상기 전송블럭 비트가 세팅되어 있을때 (4g)과정에서 루우프백 테스트인가를 체킹하여 루우프백 테스트일때 루우프백 테스트를 하고, 상기 (4d)과정에서 전송 블럭 비트 세트도 아니고 (4g)과정의 루우프백 테스트도 아닐때 (4f)과정에서 에러인가를 검색한다.When the transmission block bit is set, the loopback test is checked at (4g) and the loopback test is performed at the loopback test, and the loopback test (4g) is not the transmission block bit set at (4d). If not, it is checked in (4f).

상기(4f)과정에서 에러가 아닐때 HDLC콘트롤러(30)는 버스트랜시버(21)에 데이타를 입력하여 버스 트랜시버(23)를 통해 병렬 입출력회로(40)에 입력한다.When it is not an error in step 4f, the HDLC controller 30 inputs data to the bus transceiver 21 and inputs the data to the parallel input / output circuit 40 through the bus transceiver 23.

상기 병렬 입출력회로(40)에서는 상기 데이타를 받아 병렬 입출력회로(40)의 출력단(PA1)을 "하이"로 세팅한다. 이때 병렬 입출력회로(40)의 출력단(PA1)의 "하이"가 클럭 레이트 보정회로(50)의 디플립플롭(202)의 클럭단(CK)으로 입력된다.The parallel input / output circuit 40 receives the data and sets the output terminal PA1 of the parallel input / output circuit 40 to "high". At this time, " high " of the output terminal PA1 of the parallel input / output circuit 40 is input to the clock terminal CK of the deflip-flop 202 of the clock rate correction circuit 50.

한편 상기 병렬입출력회로(40)의 출력단(PA1)의 상기 "하이"가 인버터(204)를 통해 "로우"가 되어 카운터(31-36)를 디스에이블시키므로 카운터(32, 35)의 출력은 멀티플렉서(41, 42)에서 제1라인리시버(62)의 클럭단(CK1, CK2)의 클럭만 선택하여 HDLC콘트롤러(30)의 송수신클럭단(TC, RC)의 정상클럭으로 공급되도록 한다.On the other hand, since the "high" of the output terminal PA1 of the parallel I / O circuit 40 becomes "low" through the inverter 204 to disable the counters 31-36, the outputs of the counters 32 and 35 are multiplexed. Only the clocks of the clock stages CK1 and CK2 of the first line receiver 62 are selected at 41 and 42 to be supplied to the normal clocks of the transmission and reception clock stages TC and RC of the HDLC controller 30.

그러나, 상기 (4f)과정에서 에러상태일때 (4h)과정에서 에러값을 저장하고 있는 에러 레지스터의 값을 읽어본다.However, when the error state is in step (4f), the value of the error register storing the error value is read in step (4h).

상기 에러레지스터값이 "AIH"일 때 (4j)과정에서 래치(12, 14)를 통해 어드레스 로딩여부를 체킹한다 상기 어드레스 로딩중이면 대기하고 어드레스로드가 아니면 (4I)과정에서 리드 모드로 변환하도록 모니터링한 후 어드레스신호를 래치(12, 14)로 전송한다.When the error register value is "AIH", check whether the address is loaded through the latches 12 and 14 in the process (4j). If the address is being loaded, it waits and if it is not the address load, it switches to the read mode in the process (4I) After monitoring, the address signal is transmitted to the latches 12 and 14.

그러나 상기 (4i)과정에서 "AIH"가 아니면 (4n, 4o)과정에서 01H 또는 02H인가를 체킹한다. 상기 (4n, 4o)과정에서 01H 또는 02H일때 (4K)과정에서 버스 트랜시버(21)로 데이타를 출력하여 버스 트랜시버(23)를 통해 병렬 입출력회로(40)에 입력한다. 이때 병렬입출력회로(40)의 출력단(PA1)을 "로우(0)"로 한다. 상기 병렬 입출력회로(40)의 출력단(PA1)의 "로우" 상태를 클럭레이트 보정회로(50)로 입력함과 동시에 인버터(204)에서 반전시켜 "하이"를 출력하여 카운터(31-36)을 인에이블 시킨다.However, if it is not " AIH " in step (4i), check whether 01H or 02H is applied in step (4n, 4o). When 01H or 02H in the process (4n, 4o), the data is output to the bus transceiver 21 in the process (4K) and input to the parallel input / output circuit 40 through the bus transceiver 23. At this time, the output terminal PA1 of the parallel input / output circuit 40 is set to "low (0)". The counter 31-36 is output by inputting the " low " state of the output terminal PA1 of the parallel input / output circuit 40 to the clock rate correction circuit 50 and inverting the inverter 204 by outputting the " high ". Enable it.

실제 HDLC콘트롤러(30)의 내부에서 인터럽트 처리를 위한 스테이터스 레지스터의 5, 6, 7비트가 세팅되어 있으면 인터럽트단은 (3b)와 같이 "로우"상태가 되는데, 상기 스테이터스 레지스터중 5번째 비트가 세팅되어 있을시 상기 HDLC콘트롤러(30)의 데이타 처리중 에러가 발생되면 에러로 처리하기 위한 에러 레지스터에 에러값을 저장한다. 상기 (4h)과정이 상기 에러 레지스터값을 읽는 과정이다.If 5, 6 and 7 bits of the status register for interrupt processing are set in the real HDLC controller 30, the interrupt terminal Is in the "low" state as shown in (3b). If an error occurs during the data processing of the HDLC controller 30 when the fifth bit of the status register is set, an error value is input to an error register for processing as an error. Save it. Step (4h) is a process of reading the error register value.

상기 (3b)와 같이 인터럽트단이 "로우"일때 멀티 바이브레이타(201)의 출력단(Q)의 상태는 (3c)와 같이 발생된다.Interrupt stage as in (3b) above When it is "low", the state of the output terminal Q of the multivibrator 201 is generated as shown in (3c).

이때 상기한 바와같이 (4K)과정에서 병렬 입출력회로(40)의 출력단(PA1)즉, 제2도의 노드(52)가 (3d)와 같이 "로우"이므로 디플립플롭(202)은 클럭단(CK)으로 입력되는 (3d)의 포지티브 에지에서 디플립플롭(202)의 출력이 변하므로 (3e)와 같이 계속 "하이"상태가 유지된다.In this case, since the output terminal PA1 of the parallel input / output circuit 40, that is, the node 52 of FIG. 2 is " low " The output of the deflip-flop 202 changes at the positive edge of (3d) input to CK), so that the " high " state remains as shown in (3e).

그러나 상기 클럭 레이트 보정회로(50)의 노드(52)의 상태 즉, (3d)신호가 인버터(204)에서 반전되면 카운터(31-36)을 인에이블시켜 카운팅을 시작한다.However, when the state of the node 52 of the clock rate correction circuit 50, that is, the signal (3d) is inverted in the inverter 204, counting is started by enabling the counters 31-36.

상기 카운터(33, 36)가 소정 카운팅을 (3g)와 같이 리플 케리단(RCO)으로 발생하여 카운터(32, 35)의 클럭단(CLK)으로 입력되면 카운터(32, 35)의 출력단(QA, QB)의 멀티플렉서(42, 41)의 선택단(G, S)에 입력되어 (3F)와 같이 입력되는 클럭을 카운트한 카운터(31, 34)의 출력이 선택되어 (3h)와 같이 보정시간(RT)에 상기 HDLC콘트롤러(30)의 송수신 클럭단(RC, TC)으로 입력되어 보정된다.When the counters 33 and 36 generate a predetermined counting to the ripple carry stage RCO as in (3g) and are input to the clock stage CLK of the counters 32 and 35, the output stage QA of the counters 32 and 35 , The outputs of the counters 31 and 34, which are inputted to the selection terminals G and S of the multiplexers 42 and 41 of the QB and counted the clock input as in (3F), are selected and the correction time as in (3h). It is inputted to and corrected by the transmit / receive clock terminals RC and TC of the HDLC controller 30.

일단 클럭보정이 되어 정상상태로 복귀되면 HDLC콘트롤러(30)가 병렬 입출력회로(40)의 출력단(PA1)을 (3d)와 같이 "하이"로 디플립플롭(202)의 클럭단(CK)으로 입력된다.Once the clock is corrected and returned to the normal state, the HDLC controller 30 moves the output stage PA1 of the parallel input / output circuit 40 to the high clock stage CK of the deflip-flop 202 as shown in (3d). Is entered.

상기와 같이 포지티브 에지에서 디플립플롭(202)의 출력단(Q)은 (3e)와 같이 "로우"되어 카운터(32, 35)를 클리어한다. 동시에 인버터(204)를 통해 "로우"가 되어 카운터(31-36)를 디스에이블 한다. 그럼 다시 정상적으로 제1라인 리시버(62)의 클럭단(CK1, CK2)의 클럭이 멀티플렉서(42, 41)를 통해 HDLC콘트롤러(30)로 공급된다.As described above, the output terminal Q of the deflip-flop 202 at the positive edge is " low " as shown by (3e) to clear the counters 32 and 35. At the same time, it is " low " through inverter 204 to disable counters 31-36. Then, the clocks of the clock stages CK1 and CK2 of the first line receiver 62 are normally supplied to the HDLC controller 30 through the multiplexers 42 and 41.

상술한 바와같이 클럭레이트 에러에 따른 보정을 자동으로 실행하여 데이타 송수신 클럭으로 이용할 수 있으므로 어떠한 상황하에서도 데이타 송수신을 효율적으로 가능케 하는 이점이 있다.As described above, since the correction according to the clock rate error is automatically executed, the data transmission and reception clock can be used as the data transmission and reception clock.

Claims (1)

중앙처리장치(10)와 HDLC콘트롤러(30)의 어드레스 버스(AO-A15)로 부터 래치(11-13)를 연결하고, 상기 HDLC콘트롤러(30)의 데이타버스(DO-D7)에 버스 트랜시버(21)를 연결하며, 상기 버스 트랜시버(21)와 중앙처리장치(10)의 데이타버스(DO-D7)로부터 버스 트랜시버(22, 23)를 연결하고, 상기 래치(11-14)로 부터 송수신 버퍼용 메모리(20)의 어드레스 버스(AO-A15)를 연결하며, 상기 버스 트랜시버(22)로 부터 상기 송수신 버퍼용 메모리(20)의 데이타버스(DO-D7)를 연결하고, 상기 HDLC콘트롤러(30)의 인터럽트단과 병렬 입출력회로(40)의 클럭 정정 인에이블 라인(52)을 클럭 레이트 보정회로(50)에 연결하며, 상기 클럭레이트 보정회로(50)의 출력단(Q)이 카운터(32, 35)의 클리어단(CLR)을 연결하고, 상기 라인(52)으로 부터 인버터(204)를 연결하며, 상기 인버터(204)의 출력단을 카운터(31-36)의 인에이블단(P, EN)에 연결하고, 상기 카운터(33, 36)의 리플 케리출력단(RCO)을 상기 카운터(32, 35)의 클럭단(CLK)에 연결하며, 상기 카운터(32, 35)의 출력단(QA, QB)의 멀티플렉서(41, 42)의 선택단(G, S)을 연결하고, 상기 멀티플렉서(41, 42)의 출력단(out)이 상기 HDLC콘트롤러(30)의 송수신 클럭단(TC, RC)에 연결되도록 구성됨을 특징으로 하는 셀프 클럭 레이트 에러보정 및 회복회로.The latches 11-13 are connected to the central processing unit 10 from the address bus AO-A15 of the HDLC controller 30, and a bus transceiver is connected to the data bus DO-D7 of the HDLC controller 30. 21), the bus transceivers 22 and 23 are connected from the bus transceiver 21 and the data bus DO-D7 of the central processing unit 10, and are transmitted and received buffers from the latches 11-14. The address bus (AO-A15) of the memory 20 for connection, the data bus (DO-D7) of the memory 20 for the transmission and reception buffer from the bus transceiver 22, and the HDLC controller 30 Interrupt) And the clock correction enable line 52 of the parallel input / output circuit 40 to the clock rate correction circuit 50, and the output terminal Q of the clock rate correction circuit 50 clears the counters 32 and 35. Connect the terminal CLR, connect the inverter 204 from the line 52, connect the output terminal of the inverter 204 to the enable terminals P, EN of the counters 31-36, The ripple carry output terminal RCO of the counters 33 and 36 is connected to the clock terminal CLK of the counters 32 and 35, and the multiplexer 41 of the output terminals QA and QB of the counters 32 and 35. And select terminals (G, S) of 42 and the output terminals of the multiplexers (41, 42) are connected to the transmit / receive clock terminals (TC, RC) of the HDLC controller 30. Self clock rate error correction and recovery circuit.
KR2019860022343U 1986-12-31 1986-12-31 Apparatus for compensating clock pulse rate in hdlc KR900007548Y1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR2019860022343U KR900007548Y1 (en) 1986-12-31 1986-12-31 Apparatus for compensating clock pulse rate in hdlc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR2019860022343U KR900007548Y1 (en) 1986-12-31 1986-12-31 Apparatus for compensating clock pulse rate in hdlc

Publications (2)

Publication Number Publication Date
KR880013962U KR880013962U (en) 1988-08-31
KR900007548Y1 true KR900007548Y1 (en) 1990-08-20

Family

ID=19258823

Family Applications (1)

Application Number Title Priority Date Filing Date
KR2019860022343U KR900007548Y1 (en) 1986-12-31 1986-12-31 Apparatus for compensating clock pulse rate in hdlc

Country Status (1)

Country Link
KR (1) KR900007548Y1 (en)

Also Published As

Publication number Publication date
KR880013962U (en) 1988-08-31

Similar Documents

Publication Publication Date Title
US5058114A (en) Program control apparatus incorporating a trace function
US5021950A (en) Multiprocessor system with standby function
EP0602667A1 (en) System and method for peripheral data transfer
US5461701A (en) System and method for peripheral data transfer
US6839785B2 (en) System for and method of interfacing expansion modules with programmable logic controllers (PLC)
EP0425839B1 (en) Data processing system channel
EP0141659A2 (en) Communication interface
US4612542A (en) Apparatus for arbitrating between a plurality of requestor elements
US5008880A (en) Data transmission apparatus
KR900007548Y1 (en) Apparatus for compensating clock pulse rate in hdlc
US5402430A (en) Parity inversion test system
US5590371A (en) Serial communication circuit on an LSI chip and communicating with another microcomputer on the chip
EP0193305A2 (en) System interface for coupling standard microprocessor to a communications adapter
US6292861B1 (en) Processor having interface with bus arbitration circuit
JP2751811B2 (en) Data transmission / reception method and device
JPS63228856A (en) Communication controller
JPS63228855A (en) Communication controller
JPH07319841A (en) Serial control device
JPS60205652A (en) Dma transfer system
JP3217042B2 (en) Semiconductor device having pseudo parity error signal generation function
KR950001513B1 (en) Acknowledgement transmission method in data link layer of mini-map network
JPS60195657A (en) Data processing system
JPH05122253A (en) Line controller
JPS63187943A (en) Communication control equipment
JPS6342547A (en) Line control unit

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
REGI Registration of establishment
FPAY Annual fee payment

Payment date: 20000726

Year of fee payment: 11

LAPS Lapse due to unpaid annual fee