KR100613305B1 - Synchronization code sorting method and device for 1-bit serial communication - Google Patents
Synchronization code sorting method and device for 1-bit serial communication Download PDFInfo
- Publication number
- KR100613305B1 KR100613305B1 KR1020040033769A KR20040033769A KR100613305B1 KR 100613305 B1 KR100613305 B1 KR 100613305B1 KR 1020040033769 A KR1020040033769 A KR 1020040033769A KR 20040033769 A KR20040033769 A KR 20040033769A KR 100613305 B1 KR100613305 B1 KR 100613305B1
- Authority
- KR
- South Korea
- Prior art keywords
- data
- sync code
- serial data
- flip
- sync
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000004891 communication Methods 0.000 title description 4
- 238000012216 screening Methods 0.000 claims abstract description 11
- 230000005540 biological transmission Effects 0.000 claims description 10
- 238000005070 sampling Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 230000000630 rising effect Effects 0.000 description 4
- 238000010187 selection method Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
- H04L7/04—Speed or phase control by synchronisation signals
- H04L7/10—Arrangements for initial synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
- H04L7/0079—Receiver details
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Dc Digital Transmission (AREA)
Abstract
본 발명은 송신부에서 데이터를 어느 시점에서 송신하더라도 수신부는 항상 동기코드를 정확하게 선별하여 헤드정보 이후의 유효 데이터를 검출할 수 있는 방법 및 장치를 제공한다. 즉, 본 발명은 전송된 직렬 데이터와 그 직렬 데이터에 포함된 시작비트와 동기코드의 논리상태를 효과적으로 이용하여 동기코드를 정확하게 선별한다. 다시 설명하면, 본 발명의 동기코드 선별 방법 및 장치에 따르면, 먼저, 직렬 데이터 논리상태의 변경 시점을 검출한다. 그 다음, 논리상태의 변경 시점이 검출되면, 시작비트와 동기코드의 논리상태가 기설정된 데이터값과 비교한다. 마지막으로, 시작비트와 동기코드의 논리상태가 기설정된 데이터값과 동일하면, 헤드정보 이후에 전송되는 데이터를 인식하고 수신한다.The present invention provides a method and apparatus capable of detecting valid data after head information by accurately selecting a sync code at any time even when the transmitter transmits data at any point in time. That is, the present invention accurately selects the sync code by effectively using the logical state of the transmitted serial data, the start bit included in the serial data, and the sync code. In other words, according to the synchronization code screening method and apparatus of the present invention, first, the time of change of the serial data logic state is detected. Then, when a change point of the logic state is detected, the logic state of the start bit and the sync code is compared with the preset data value. Finally, if the logical state of the start bit and the sync code is the same as the preset data value, the data transmitted after the head information is recognized and received.
송수신부, 직렬 데이터, 헤드정보, 동기코드 선별, 샘플링Transceiver, serial data, head information, sync code selection, sampling
Description
도 1은 동기코드 선별이 가능한 종래기술의 동기코드 선별 방법을 예시하는 도면.BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagram illustrating a prior art sync code sorting method capable of sorting sync codes.
도 2는 동기코드 선별이 불가능한 종래기술의 방법을 예시하는 도면.2 illustrates a prior art method in which synchronization code selection is not possible.
도 3은 본 발명에 따라 동기코드를 선별하기 위한 본 발명의 개념을 설명하기 위한 도면.3 is a view for explaining the concept of the present invention for selecting a synchronization code according to the present invention.
도 4는 본 발명에 따른 동기코드 체크 디바이스를 포함하는 데이터 수신 디바이스를 예시하는 도면.4 illustrates a data receiving device comprising a sync code check device in accordance with the present invention.
도 5는 본 발명의 동기코드 선별 방법을 설명하기 위한 도면.5 is a view for explaining a synchronization code screening method of the present invention.
도 6는 본 발명의 동기코드 선별 방법을 채용하는 송수신 시스템을 예시하는 도면.6 is a diagram illustrating a transmission and reception system employing the synchronization code screening method of the present invention.
도 7은 동작 클럭이 20MHz일 경우 본 발명의 동기코드 선별 방법 및 장치에 따라 제공되는 파형도.7 is a waveform diagram provided according to the method and apparatus for synchronizing code selection according to the present invention when the operation clock is 20 MHz.
도 8은 동작 클럭이 60MHz일 경우 본 발명의 동기코드 선별 방법 및 장치에 따라 제공되는 파형도.8 is a waveform diagram provided according to a method and apparatus for synchronizing code selection according to the present invention when an operation clock is 60 MHz;
*도면의 주요 부분에 대한 부호의 설명** Description of the symbols for the main parts of the drawings *
210: 시작비트 220: 동기코드210: Start bit 220: Synchronization code
410: 동기코드 체크 디바이스 420: 멀티플렉서410: sync code check device 420: multiplexer
430~460: 플립플롭 470: 지연소자430 to 460: flip-flop 470: delay element
본 발명은 1비트 데이터만을 사용하여 데이터를 전송하는 송신부와 수신부가 별개의 시스템으로 동작하거나 서로 다른 클럭을 사용하는 경우, 송신부와 수신부에서 사용되는 동작 클럭의 위상이 서로 상이하더라도 전송된 직렬 데이터의 헤드정보에 포함되어 있는 동기코드를 정확히 선별함으로써 송수신부 간에 안정된 데이터의 전송이 가능하도록 구현된 동기코드 선별 방법 및 장치에 관한 것이다.According to the present invention, when a transmitter and a receiver that transmit data using only one bit data operate as separate systems or use different clocks, the transmitted serial data may be transmitted even if the phases of the operation clocks used by the transmitter and the receiver are different from each other. The present invention relates to a synchronization code sorting method and apparatus implemented to enable stable transmission of data between a transmitting and receiving unit by accurately sorting sync codes included in head information.
주지하는 바와 같이, 송신부로부터 전송된 직렬 데이터는 그 데이터의 헤드정보에 포함되어 있는 동기코드(sync. code)의 선별여부에 따라 수신부에서수신 여부가 결정된다. 일반적으로, 종래기술의 동기코드 선별 방법은 수신부내에서 사용되는 하드웨어 동작 클럭을 이용하여 클럭의 상승 에지(edge)에서 전송된 직렬 데이터의 논리 값들의 상태를 비교하여 동기코드의 존재 유무를 판별하였다. 다시 설명하면, 송신부와 수신부가 별개로 구성된 시스템에서 하드웨어 동작 클럭의 위상이 동일할 경우에는 직렬 데이터의 논리값을 판별할 수가 있지만, 하드웨어 동작 클럭의 위상이 서로 상이할 경우에는 데이터의 논리값을 판별할 수가 없어 전송된 직렬 데이터의 헤드정보에 포함되어 있는 동기코드를 정확히 선별할 수 없는 경우 가 발생하여 헤드정보에 이어 전송되는 데이터를 인식하지 못하는 문제점이 발생한다.As is known, the serial data transmitted from the transmitter is determined by the receiver according to whether or not the sync code included in the head information of the data is selected. In general, in the prior art sync code screening method, the presence or absence of a sync code is determined by comparing states of logic values of serial data transmitted at a rising edge of a clock using a hardware operating clock used in a receiver. . In other words, in a system in which the transmitter and the receiver are separate, the logic values of the serial data can be determined when the hardware operation clocks have the same phase. However, when the hardware operation clocks are different from each other, the logic values of the data can be determined. Since it is impossible to determine the synchronization code included in the head information of the transmitted serial data, it is impossible to accurately select the data, which causes the problem of not recognizing the data transmitted following the head information.
도 1은 종래기술의 동기코드 선별 방법의 일 예를 설명하기 위한 도면이다. 도 1에 있어서, 직렬 데이터(serial data)는 송신부로부터 수신부로 전송되는 1비트 직렬 데이터, 시작비트(start bit: 110)는 데이터 필드(field)의 시작을 가리키는 비트, 동기코드(120)는 직렬 데이터의 헤드정보에 포함되어 있는 고정 3비트, 클럭(clock)은 수신부내에서 사용되는 하드웨어 동작 클럭, A(130)와 B(140)는 수신부내의 하드웨어 동작 클럭을 기준으로 일정 시점에서 수신되는 직렬 데이터의 논리값 상태를 의미한다.1 is a view for explaining an example of a conventional method of selecting a sync code. In FIG. 1, serial data is 1-bit serial data transmitted from a transmitter to a receiver, a
보다 상세하게 설명하면, 도 1은 종래기술을 이용한 수신부내에서 사용되는 하드웨어 동작 클럭을 사용하여 일정 시점에서 수신되는 직렬 데이터의 논리값을 예시한다. 도 1에 있어서, A와 B 시점의 클럭의 상승 에지(edge)에서 전송된 직렬 데이터의 논리 값들이 ‘1’로 동일한 상태이므로 동기코드를 선별하여 이후의 신호가 의미 있는 신호, 즉 데이터임을 알 수 있다.In more detail, FIG. 1 illustrates a logic value of serial data received at a certain point in time using a hardware operation clock used in a receiver using a prior art. In Fig. 1, since the logic values of the serial data transmitted at the rising edges of the clocks at the A and B time points are the same as '1', the synchronization code is selected to determine that the subsequent signal is a meaningful signal, that is, data. Can be.
도 2는 도 1과 같은 종래기술을 이용한 수신부내에서 사용되는 하드웨어 동작 클럭을 사용하여 일정 시점에서 수신되는 직렬 데이터의 논리값을 예시한다. 도 2의 경우에는 논리 값을 판별하기 위한 A(130)와 B(140) 시점이 도 1과 동일하나 전송된 1비트 직렬 데이터의 시점이 서로 상이하여 수신부에서는 데이터의 논리 값들이 ‘0’과 ‘1’로 서로 다른 상태로 인식된다. 따라서, 이 경우 송신부에서는 직렬 데이터를 전송하고 있지만 수신부에서는 동기코드를 선별하지 못하여 동기코 드 이후에 전송되는 데이터를 인식하지 못하는 문제점이 발생한다.FIG. 2 illustrates a logic value of serial data received at a certain point in time using a hardware operation clock used in a receiver using the prior art as shown in FIG. 1. In the case of FIG. 2, the viewpoints of
따라서, 이와 같은 종래 기술의 문제점을 해소하기 위해서는 송신부와 수신부에서 사용되는 동작 클럭이 변경되어 서로 상이할 경우에도 동기코드를 정확히 선별할 수 있는 개선된 방법 또는 장치가 요구된다.Accordingly, in order to solve such a problem of the related art, an improved method or apparatus for accurately selecting a sync code even when an operation clock used in a transmitter and a receiver is changed and different from each other is required.
그러므로, 본 발명의 목적은 전송된 직렬 데이터와 그 직렬 데이터에 포함된 시작비트와 동기코드의 논리 상태에 기초하여 동기코드를 효과적으로 선별할 수 있는 방법 및 장치를 제공하는데 있다.It is therefore an object of the present invention to provide a method and apparatus capable of effectively selecting a sync code based on transmitted serial data, a start bit included in the serial data, and a logic state of a sync code.
본 발명의 다른 목적은 전송된 직렬 데이터와 그 직렬 데이터에 포함된 시작비트와 동기코드의 논리 상태에 기초하여 동기코드를 효과적으로 선별함으로써 정확한 데이터의 전송을 가능하게 할 수 있는 방법을 제공하는데 있다.Another object of the present invention is to provide a method for enabling accurate data transmission by effectively selecting a sync code based on the transmitted serial data, a start bit included in the serial data, and a logic state of a sync code.
본 발명의 일 특징에 따르면, 송신부로부터 전송된 직렬 데이터(serial data) - 상기 직렬 데이터는 시작비트(start bit)와 동기코드(synchronization code)로 이루어지는 헤드정보를 포함함 - 로부터 상기 동기코드를 선별하기 위한 동기코드 선별 방법에 있어서, (a)상기 직렬 데이터의 논리상태가 변경되는 시점을 검출하는 단계, (b)상기 단계(a)에서 상기 직렬 데이터의 논리상태의 변경 시점이 검출되면, 상기 검출된 시점을 기준으로 상기 시작비트의 논리상태와 제1 기설정된 데이터값을 비교하는 단계, (c)상기 동기코드와 제2 기설정된 데이터값을 비교하는 단계, 및 (d)상기 시작비트와 상기 동기코드의 논리상태가 상기 제1 및 제 2 기설정된 데이터값과 동일하면, 상기 헤드정보 이후에 전송되는 데이터를 인식하고 수 신하는 단계를 포함하며, 상기 단계들((a)~(d))은 데이터 송수신용 라인을 통해 상기 송신부와 연결된 수신부내에 소프트웨어 프로그램으로 내장되는 동기코드 선별 방법이 제공된다.According to an aspect of the present invention, the synchronization code is selected from serial data transmitted from a transmitter, the serial data including head information comprising a start bit and a synchronization code. A synchronization code selection method for performing the above, (a) detecting a time point at which the logic state of the serial data is changed; (b) if a time point at which the logic state of the serial data is changed is detected at the step (a), Comparing the logic state of the start bit with a first preset data value based on the detected time point, (c) comparing the sync code with a second preset data value, and (d) Recognizing and receiving data transmitted after the head information when the logic state of the sync code is equal to the first and second predetermined data values, the steps (a) to (d ) ) Is provided with a sync code sorting method embedded in a software program in a receiver connected to the transmitter via a line for data transmission and reception.
본 발명의 다른 특징에 따르면, 송신부로부터 전송된 직렬 데이터(serial data) - 상기 직렬 데이터는 시작비트(start bit)와 동기코드(synchronization code)로 이루어지는 헤드정보를 포함함 - 로부터 상기 동기코드를 선별하기 위한 동기코드 선별 장치에 있어서, 상기 직렬 데이터를 기설정된 시간 동안 저장한 후 출력하는 플립플롭 수단, 및 상기 플립플롭 수단으로부터 출력된 직렬 데이터와, 상기 직렬 데이터에 포함된 시작비트 및 동기코드의 논리상태를 기설정된 데이터값과 비교하고, 상기 비교 결과 서로 동일하면 상기 동기코드 이후에 전송되는 데이터를 인식하는 동기코드 체크 디바이스를 포함하는 동기코드 선별 장치가 제공된다.According to another feature of the present invention, the synchronization code is selected from serial data transmitted from a transmitter, the serial data including head information comprising a start bit and a synchronization code. A sync code sorting apparatus, comprising: flip-flop means for storing and outputting said serial data for a predetermined time, and serial data output from said flip-flop means, and start bits and sync codes included in said serial data; There is provided a synchronization code selection device including a synchronization code check device for comparing a logic state with a preset data value and recognizing data transmitted after the synchronization code if the comparison results are the same.
본 발명의 또 다른 특징에 따르면, 상기 동기코드 선별 방법을 이용하는 데이터 수신 디바이스에 있어서, 상기 동기코드 선별 방법이 내장된 동기코드 체크 디바이스, 상기 동기코드가 선별되면, 상기 직렬 데이터를 멀티플렉싱하는 멀티플렉서, 상기 동기코드 체크 디바이스와 상기 멀티플렉서 사이에 연결되며, 상기 직렬 데이터를 기설정된 시간 동안 저장한 후 상기 동기코드 체크 디바이스로 제공하는 플립플롭 수단, 및 상기 멀티플렉서에 연결되며, 상기 직렬 데이터를 기설정된 시간만큼 지연하여 출력하는 지연소자를 포함하는 데이터 수신 디바이스가 제공된다.According to still another aspect of the present invention, in a data receiving device using the sync code screening method, a sync code check device incorporating the sync code screening method, a multiplexer for multiplexing the serial data when the sync code is screened out, A flip-flop means connected between the sync code check device and the multiplexer and storing the serial data for a preset time and then providing the sync code check device to the sync code check device, and a multiple time connected to the multiplexer. Provided is a data receiving device including a delay element for delaying and outputting a delay.
상기의 목적을 달성하기 위하여, 본 발명은 송신부와 수신부가 1비트 데이터만을 사용하여 데이터의 송수신을 수행하는 별개의 시스템으로 동작하는 경우에, 송신부에서 데이터를 어느 시점에서 송신하더라도 수신부는 항상 동기코드를 정확하게 선별함으로써 헤드정보 이후의 유효 데이터를 검출할 수 있는 방법 및 장치를 제공한다.In order to achieve the above object, in the present invention, when the transmitter and the receiver operate as separate systems for transmitting and receiving data using only 1-bit data, the receiver always transmits a synchronization code at any point in time. The present invention provides a method and an apparatus capable of detecting valid data after head information by accurately selecting.
이제, 본 발명에 따른 동기코드 선별 방법에 대하여 첨부된 도면을 참조하여 상세히 설명한다.Now, the synchronization code screening method according to the present invention will be described in detail with reference to the accompanying drawings.
도 3은 송신부에서 데이터를 어느 시점에서 송신하더라도 수신부는 항상 동기코드를 정확하게 선별하여 헤드정보 이후의 유효 데이터를 검출할 수 있는 본 발명에 따른 방법을 설명하기 위한 개념도이다. 본 발명에 따르면, 종래기술에서와 같이 클럭의 상승 에지를 기준으로 일정 시점에서 수신되는 직렬 데이터의 논리값의 상태를 이용하여 동기코드를 선별하지 않고, 먼저 직렬 데이터의 논리 상태가, 예를 들어 ‘0’→‘1’로 변경하는 시점(310)을 검출한다. 이 검출된 시점을 동기코드를 선별하는 시점으로 사용한다. 즉, 본 발명의 동기코드 검출 방법은, 직렬 데이터의 값이 ‘0’→‘1’로 논리 상태가 변경된 것으로 검출되면, 소정 시간 후에 검출된 선별 시점을 기준으로 Temp01(320) 구간에서 시작비트에 해당하는 데이터의 값이 제 1 기설정된 데이터값, 예를 들어 “0”인지와 Temp02(330), Temp03(340), Temp04(350) 구간에서 동기코드에 해당하는 데이터의 값들이 제 2 기설정된 데이터값, 예를 들어 “010”인지를 체크 한다. 이상의 조건들이 모두 참일 경우, 직렬 데이터의 헤드정보(“0010”)의 이후에 전송되는 데이터들을 송신부에서 전송하는 데이터로 해석한다.3 is a conceptual diagram for explaining a method according to the present invention, in which a receiver always detects valid data after the head information by accurately selecting a sync code even when the transmitter transmits data at any point in time. According to the present invention, as in the prior art, the logic code of the serial data is first selected without using the state of the logic value of the serial data received at a certain time with respect to the rising edge of the clock. A
이하에서는, 도3을 참조하여 앞서 설명한 본 발명의 개념에 기초하여, 도 4내지 도 6을 참조하여 본 발명에 따른 동기코드 선별 방법에 대하여 보다 상세히 설명한다.Hereinafter, the synchronization code screening method according to the present invention will be described in detail with reference to FIGS. 4 to 6 based on the concept of the present invention described above with reference to FIG.
도 4는 본 발명의 동기코드 체크 디바이스를 포함하는 데이터 수신 디바이스를 예시한다. 도시된 바와 같이, 본 발명의 동기코드 체크 디바이스를 구비하는 데이터 수신 디바이스는 본 발명의 동기 코드 체크 (sync_code_check) 디바이스(410) , 멀티플렉서(420), 각각이 24비트의 데이터를 수용할 수 있는 4개 그룹의 플립플롭(430-460), 및 지연소자(470)를 포함한다. 도 4를 참조하여 본 발명에 대하여 상세히 설명하기 이전에 먼저 도 6을 참조하면, 본 발명의 동기코드 선별 방법 및 장치와 데이터 수신 디바이스를 채용하는 송수신 시스템이 예시적으로 도시된다. 도시된 바와 같이, 이와 같은 송수신 시스템은 송신부를 구비한 서보 모터와, 제어부 및 파워부를 구비한 서보 드라이버를 포함한다. 예를 들어, 도 4에 도시된 본 발명의 데이터 수신 디바이스는 도 6의 송수신 시스템에 포함된 서보 드라이브의 제어부내 수신부에 내장되어 사용될 수 있다. 본 발명의 바람직한 실시예에 있어서, 도 6에 도시된 송신부는 서보 모터의 동작에 대한 정보를 가지고 있는 엔코더이며, 송신부로부터 수신부로 제공되는 직렬 데이터의 전송 속도는 2.5Mbps 이다.4 illustrates a data receiving device including a sync code check device of the present invention. As shown, a data receiving device having a sync code check device of the present invention is a sync code check (sync_code_check)
다시 도 4를 참조하면, 본 발명의 동기코드 체크 디바이스(410)는 도 6에 도 시된 수신부의 하드웨어 동작 클럭이 60MHz일 경우에는 24비트로 구성되어 있는 플립플롭 4개(430, 440, 450, 460)의 출력 데이터 상태(도 4의 플립플롭 4개(430-460)와 동기코드 체크 디바이스(410)사이의 실선을 통해 제공되는 데이터 상태)를 비교하여 동기코드를 선별할 수 있으며, 수신부의 하드웨어 동작 클럭이 20MHz일 때는 8비트 4개 그룹으로 구성된 플립플롭 2개(430, 440)의 출력 데이터 상태(도 4의 플립플롭 2개(430-440)와 동기코드 체크 디바이스(410)사이의 일점쇄선을 통해 제공되는 데이터 상태)를 비교하여 동기코드를 선별할 수 있다. 상세하게 설명하면, 60MHz의 동작 시에는 24비트 플립플롭의 4그룹(430-460)을 모두 사용하고, 20MHz일 경우에는 60MHz를 위해 구성되어있는 24비트 플립플롭의 4개 중에서 첫 번째 24비트 플립플롭(430)과 두 번째 24비트 플립플롭(440)의 하위 8비트만을 사용한다. 그러므로, 60MHz일 때의 플립플롭의 그룹과 20MHz일 때의 플립플롭의 그룹을 달리하여 구성할 필요가 없으므로, 그의 하드웨어의 구성과 제어 알고리즘의 구현이 간단하고 효율적이다. 본 발명의 바람직한 실시예에 있어서, 수신부에서 사용되는 하드웨어 동작 클럭은 외부의 ‘clk_select’포트에 의해서 구분되어 사용된다. 예를 들어, ‘clk_select’가 ‘0’일 경우에는 수신부에서 사용되는 하드웨어 동작 클럭이 20MHz를 기준으로 송신부에서 전송되는 직렬 데이터의 동기코드를 선별한다. 또한, ‘clk_select’가 ‘1’일 경우에는 수신부에서 사용되는 하드웨어 동작 클럭이 60MHz를 기준으로 송신부에서 전송되는 직렬 데이터의 동기코드를 선별할 수 있다. 본 발명의 바람직한 실시예에 따르면, ‘clk_select’의 디폴트 값은 편의상 “1”, 즉 동작 클럭이 60MHz인 것으로 설정되며, 이 값은 사전에 도 6에 도시된 수신부내 상위 프로세서에 의해 제공된다. 도 4에 예시된 본 발명의 동기코드 선별 장치 및 데이터 수신 디바이스에 대한 상세는 도 7 및 도 8을 참조하여 후술하기로 한다.Referring back to FIG. 4, the sync
앞서 도 3을 참조하여 본 발명에 대한 개념을 개략적으로 설명하였으나, 도 4에 도시된 본 발명의 동기코드 체크 디바이스(410)에 대하여 도 5를 참조하여 이하에서 보다 상세히 설명한다. 본 발명의 동기코드 체크 디바이스(410)는 도 5와 같은 소프트웨어 알고리즘을 내장하고 있으며, 최초 직렬 데이터의 수신에 앞서 도 6에 도시된 제어부의 제어하에 작동되도록 구현된다. 상세히 설명하면, 먼저 단계(410a)에서 수신되는 직렬 데이터의 논리 상태가 변경되는 시점, 즉 직렬 데이터의 논리 상태가 “0”에서 “1”로 변경되는 시점을 검출한다. 단계(410a)에서 직렬 데이터의 논리 상태의 변경이 검출되면, 그 다음 단계(410b)에서는 검출된 시점을 기준으로 직렬 데이터의 헤드정보에 포함된 시작비트[도 3의 Temp01(320) 구간의 데이터 값]와 제 1 기설정된 데이터값, 즉 “0”을 비교한다. 시작비트를 체크한 후, 단계(410c)에서는 3비트의 동기코드[도 3의 Temp02(330), Temp03(340), Temp04(350) 구간에서의 데이터 값들]와 제 2 기설정된 데이터값, 즉 “010”를 비교한다. 마지막 단계(410d)에서는, 상기와 같은 모든 비교를 통해 그 결과가 만족되면, 즉 전송된 직렬 데이터의 헤드정보에 포함된 시작비트와 동기코드가 동기코드 체크 디바이스(410) 자체에 가지고 있는 제 1및 제 2 기설정된 데이터값, 즉 “0010”와 동일하면, 본 발명의 프로세스는 헤드정보 이후에 전송되는 데이터를 인식하고 다음 디바이스로 전달한다. 이와 같은 프로세스는 최초 데이터의 수신시 수행되며, 일단 데이터가 수신되면 그러한 동기코드 선별 프로세스는 더 이상 수행되지 않는다.Although the concept of the present invention has been schematically described with reference to FIG. 3, the sync
본 발명에 따라 동기코드가 선별되면, 동기코드 체크 디바이스(410)는 그에 상응하는 정보를 멀티플렉서(420)로 제공한다. 이 정보에 응답하여, 멀티플렉서(420)는 수신되는 직렬 데이터를 지연소자(470)로 제공하며, 이러한 직렬 데이터는 지연소자(470)를 통해 노이즈 성분을 제외한 데이터의 중간 부분이 샘플링되어 다음 프로세스를 위해 내부 직렬 데이터(internal_serial_data)로서 다음 프로세서, 예를들면 도 6에 도시된 제어부로 전송된다.When a sync code is selected according to the present invention, the sync
도 7 및 도 8은, 각각 수신부의 하드웨어 동작 클럭이 20MHz와 60MHz일 경우에 대해, 본 발명의 동기코드 선별 방법 및 장치에 따라 제공되는 파형도 이다. 상세하게 설명하면, 도 7 및 도 8에 있어서, clk은 수신부의 동작 클럭을 나타내고, rstb는 리셋 신호를 나타낸다. 본 발명의 바람직한 실시예에 있어서, 도 4에 도시된 본 발명의 동기코드 선별 장치 및 데이터 송수신 디바이스는 리셋 신호가 “1”일때 작동되는 것으로 구현된다. 도 7 및 도 8에서 serial_data는 직렬 데이터를 나타내며, 도 7에서와 같이, clk_choice가 “0”인 경우는 동작 클럭이 20MHz인 경우를 나타내고, 도 8에서와 같이 “1”인 경우는 60MHz를 나타낸다. 또한, 도 7 및 8에서, sync_high_edge의 펄스 부분(500, 503)은 직렬 데이터의 논리 상태가 “0”에서 “1”로 각각 변경되는 시점을 나타낸다. 또한, 도 7 및 도 8에서, Temp01-Temp04는 도 4의 플립플롭(430-460)으로부터 출력되는 데이터 상태를 나타낸다.7 and 8 are waveform diagrams provided according to the sync code selection method and apparatus of the present invention for the case where the hardware operation clocks of the receiver are 20 MHz and 60 MHz, respectively. In detail, in FIG. 7 and FIG. 8, clk represents an operation clock of a receiver and rstb represents a reset signal. In the preferred embodiment of the present invention, the sync code sorting apparatus and the data transmitting / receiving device of the present invention shown in Fig. 4 are implemented to be operated when the reset signal is "1". In FIG. 7 and FIG. 8, serial_data represents serial data. As shown in FIG. 7, when clk_choice is “0”, the operation clock is 20 MHz, and when “1” is 60 MHz as in FIG. 8. . 7 and 8, the
상세하게 설명하면, 도 7에 있어서, 동작 클럭이 20MHz일 경우 상술한 바와 같이 플립플롭 2개(430-440)가 사용되므로 Temp01과 Temp02의 데이터 상태값은, Temp01에서 “010(00FF00)”, Temp02에서 “0(03FF00에서 하위 8비트만 사용하므로 00만 출력)”가 된다. 따라서, Tem01-Temp02로부터 “0010”의 데이터 상태값을 얻을 수 있다. 또한, 도 8에 있어서, 동작 클럭이 60MHz일 경우 상술한 바와 같이 플립플롭 4개(430-460) 모두 사용되므로 Temp01-Temp04의 데이터 상태값은, Temp01에서 “0(000000)”, Temp02에서 “1(FFFFFF)”, Temp03에서 “0(000000)”, 그리고 Temp04에서 “0(000000)”이 된다. 따라서, Temp01-Temp04로부터 “0010”의 데이터 상태값을 얻을 수 있다.In detail, in FIG. 7, when the operation clock is 20 MHz, as described above, two flip-flops 430-440 are used, so that the data state values of Temp01 and Temp02 are “010 (00FF00)” in Temp01, In Temp02, it becomes “0 (only output 00 because 03FF00 uses only the lower 8 bits)”. Therefore, a data state value of "0010" can be obtained from Tem01-Temp02. In FIG. 8, when the operation clock is 60 MHz, as described above, all four flip-flops (430-460) are used, so that the data state values of Temp01-Temp04 are “0 (000000)” in Temp01 and “02”. 1 (FFFFFF) ”,“ 0 (000000) ”in Temp03, and“ 0 (000000) ”in Temp04. Therefore, a data state value of "0010" can be obtained from Temp01-Temp04.
도 7 및 도 8에 있어서, internal_serial_data는, 도 4를 통하여 전술한 바와 같이 지연소자(470)로부터 출력된 데이터로서, 플립플롭(430-460)으로부터 제공된 Temp01-Temp04의 데이터 상태값으로부터 동기코드가 선별된 이후 소정 시간, 즉 커서 부분(501, 504) 이후부터 출력됨을 알 수 있다.In Figs. 7 and 8, internal_serial_data is data output from the
본 발명에 따르면, 직렬 데이터 통신을 위한 동기코드를 정확히 선별할 수 있으므로 1비트 데이터만을 사용하여 송수신부가 안정된 데이터의 통신이 가능하게 한다. 종래기술의 방법은 수신부내에서 사용되는 하드웨어 동작 클럭을 사용하여 클럭의 상승 에지에서 전송된 직렬 데이터 논리 값들의 상태를 비교하여 동기코드의 선별 유무를 판단하였다. 이러한 종래기술은, 송신부와 수신부의 별개의 시스템으로 하드웨어 동작 클럭의 위상이 동일할 경우에는 직렬 데이터 논리값을 판별 할 수가 있지만, 하드웨어 동작 클럭의 위상이 서로 상이할 경우에는 논리값을 판별할 수가 없고 전송되는 직렬 데이터의 헤드정보에 포함되어 있는 동기코드를 정확히 선별할 수 없어 전송되는 데이터를 인식하지 못하는 문제점을 야기시켰다. 그러나, 본 발명의 방법 및 장치는, 송신부와 수신부가 별개의 시스템으로 동작하는 경우, 전송된 직렬 데이터와 그 직렬 데이터의 헤드정보에 포함된 시작비트와 동기코드의 논리 상태를 이용함으로써, 하드웨어 동작 클럭의 위상이 서로 상이하더라도 동기코드를 정확히 선별할 수 있으므로 1비트 데이터만을 사용하여 송수신부가 안정된 데이터의 통신을 가능하게 할 수 있다. 또한 ‘clk_select’포트를 사용하여 사용자에 의해 수신부의 하드웨어 동작 클럭이 변경되더라도 송신부에서 전송되는 직렬 데이터의 헤드에 포함되어 있는 동기코드를 정확히 선별할 수 있다.According to the present invention, since the synchronization code for serial data communication can be accurately selected, the transmission / reception unit enables stable data communication using only 1 bit data. In the prior art method, the hardware operation clock used in the receiver is used to compare the state of the serial data logic values transmitted at the rising edge of the clock to determine whether the synchronization code is selected. In the prior art, when the hardware operating clocks have the same phase as separate systems of the transmitter and the receiver, the serial data logic values can be determined. However, when the hardware operating clocks have different phases, the logic values can be determined. And the synchronization code contained in the head information of the serial data to be transmitted cannot be accurately selected, which causes a problem of not recognizing the transmitted data. However, in the method and apparatus of the present invention, when the transmitter and the receiver operate as separate systems, the hardware operation is performed by utilizing the logical state of the start bit and the sync code included in the transmitted serial data and the head information of the serial data. Even if the clock phases are different from each other, the synchronization code can be accurately selected, so that the transceiver can be used for stable data communication using only one bit of data. In addition, the 'clk_select' port can accurately select the sync code included in the head of the serial data transmitted from the transmitter even if the hardware operation clock of the receiver is changed by the user.
본 발명이 바람직한 실시예를 통해 설명되고 예시되었으나, 당업자라면 첨부한 청구 범위의 사상 및 범주를 벗어나지 않고 여러 가지 변형 및 변경이 이루어질 수 있음을 알 수 있을 것이다.While the present invention has been described and illustrated by way of preferred embodiments, those skilled in the art will recognize that various modifications and changes can be made without departing from the spirit and scope of the appended claims.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040033769A KR100613305B1 (en) | 2004-05-13 | 2004-05-13 | Synchronization code sorting method and device for 1-bit serial communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040033769A KR100613305B1 (en) | 2004-05-13 | 2004-05-13 | Synchronization code sorting method and device for 1-bit serial communication |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20050108738A KR20050108738A (en) | 2005-11-17 |
KR100613305B1 true KR100613305B1 (en) | 2006-08-17 |
Family
ID=37284788
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020040033769A KR100613305B1 (en) | 2004-05-13 | 2004-05-13 | Synchronization code sorting method and device for 1-bit serial communication |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100613305B1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100812692B1 (en) * | 2006-12-28 | 2008-03-13 | 포스데이타 주식회사 | Clock Synchronizer in DSRC System and Its Synchronization Method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1117745A (en) | 1997-06-26 | 1999-01-22 | Sigma Corp | Communication method for simplified synchronous serial communication |
KR20000055479A (en) * | 1999-02-06 | 2000-09-05 | 윤종용 | State machine of uart for protecting glitch on received serial data |
JP2003016026A (en) | 2001-06-28 | 2003-01-17 | Mitsubishi Electric Corp | Serial communication circuit |
US20030193374A1 (en) | 2002-04-11 | 2003-10-16 | Mcdonald James J. | PLL for clock recovery with initialization sequence |
-
2004
- 2004-05-13 KR KR1020040033769A patent/KR100613305B1/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1117745A (en) | 1997-06-26 | 1999-01-22 | Sigma Corp | Communication method for simplified synchronous serial communication |
KR20000055479A (en) * | 1999-02-06 | 2000-09-05 | 윤종용 | State machine of uart for protecting glitch on received serial data |
JP2003016026A (en) | 2001-06-28 | 2003-01-17 | Mitsubishi Electric Corp | Serial communication circuit |
US20030193374A1 (en) | 2002-04-11 | 2003-10-16 | Mcdonald James J. | PLL for clock recovery with initialization sequence |
Also Published As
Publication number | Publication date |
---|---|
KR20050108738A (en) | 2005-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6977960B2 (en) | Self test circuit for evaluating a high-speed serial interface | |
JP5767462B2 (en) | COMMUNICATION MODE DETECTION METHOD BY RECEIVING DEVICE FOR NEAR RANGE COMMUNICATION | |
JP2641999B2 (en) | Data format detection circuit | |
KR101702743B1 (en) | Sensor device and method for sending a data signal | |
US8588281B2 (en) | Transceiver having embedded clock interface and method of operating transceiver | |
US8648622B2 (en) | Method and device for monitoring a frequency signal | |
US8135872B2 (en) | USB controller and a testing method of the USB controller | |
US20040205416A1 (en) | Communication apparatus with failure detect function | |
JP2022552852A (en) | Small loop delay clock and data recovery block for high speed next generation C-PHY | |
US8023602B2 (en) | Serial data communication apparatus and methods of using a single line | |
WO2000033525A1 (en) | Autobaud/autoecho method | |
KR100613305B1 (en) | Synchronization code sorting method and device for 1-bit serial communication | |
US5206888A (en) | Start-stop synchronous communication speed detecting apparatus | |
CN101300773A (en) | Data interface and method of seeking synchronization | |
US5367543A (en) | Circuit for detecting synchronizing signal in frame synchronization data transmission | |
JP2006129452A (en) | Frequency lock detector | |
US20160149693A1 (en) | Symbol transition clocking clock and data recovery to suppress excess clock caused by symbol glitch during stable symbol period | |
WO2021236330A1 (en) | Unit interval jitter improvement in a c-phy interface | |
CN112385184B (en) | Scanning device for detecting start byte in high frequency serial data stream | |
JP2983959B1 (en) | Serial interface and modem device using the same | |
EP1298824B1 (en) | Method and apparatus for synchronous communication of frames of digital information | |
CN116192397B (en) | A physically unclonable function circuit based on ring oscillation | |
JP2661583B2 (en) | Clock signal distribution apparatus and method | |
CN114461473B (en) | Method for detecting time sequence of serializer, detection circuit and electronic device | |
JP5923730B2 (en) | Clock data recovery device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
PA0109 | Patent application |
Patent event code: PA01091R01D Comment text: Patent Application Patent event date: 20040513 |
|
PA0201 | Request for examination | ||
PG1501 | Laying open of application | ||
E902 | Notification of reason for refusal | ||
PE0902 | Notice of grounds for rejection |
Comment text: Notification of reason for refusal Patent event date: 20060311 Patent event code: PE09021S01D |
|
E701 | Decision to grant or registration of patent right | ||
PE0701 | Decision of registration |
Patent event code: PE07011S01D Comment text: Decision to Grant Registration Patent event date: 20060515 |
|
GRNT | Written decision to grant | ||
PR0701 | Registration of establishment |
Comment text: Registration of Establishment Patent event date: 20060809 Patent event code: PR07011E01D |
|
PR1002 | Payment of registration fee |
Payment date: 20060810 End annual number: 3 Start annual number: 1 |
|
PG1601 | Publication of registration | ||
PR1001 | Payment of annual fee |
Payment date: 20090611 Start annual number: 4 End annual number: 4 |
|
PR1001 | Payment of annual fee |
Payment date: 20100624 Start annual number: 5 End annual number: 5 |
|
PR1001 | Payment of annual fee |
Payment date: 20110616 Start annual number: 6 End annual number: 6 |
|
PR1001 | Payment of annual fee |
Payment date: 20120731 Start annual number: 7 End annual number: 7 |
|
FPAY | Annual fee payment |
Payment date: 20130603 Year of fee payment: 8 |
|
PR1001 | Payment of annual fee |
Payment date: 20130603 Start annual number: 8 End annual number: 8 |
|
FPAY | Annual fee payment |
Payment date: 20140609 Year of fee payment: 9 |
|
PR1001 | Payment of annual fee |
Payment date: 20140609 Start annual number: 9 End annual number: 9 |
|
FPAY | Annual fee payment |
Payment date: 20150512 Year of fee payment: 10 |
|
PR1001 | Payment of annual fee |
Payment date: 20150512 Start annual number: 10 End annual number: 10 |
|
FPAY | Annual fee payment |
Payment date: 20160628 Year of fee payment: 11 |
|
PR1001 | Payment of annual fee |
Payment date: 20160628 Start annual number: 11 End annual number: 11 |
|
LAPS | Lapse due to unpaid annual fee | ||
PC1903 | Unpaid annual fee |
Termination category: Default of registration fee Termination date: 20180520 |