KR100195645B1 - Method for detecting the code-data in remote controller signal - Google Patents

Method for detecting the code-data in remote controller signal Download PDF

Info

Publication number
KR100195645B1
KR100195645B1 KR1019950046583A KR19950046583A KR100195645B1 KR 100195645 B1 KR100195645 B1 KR 100195645B1 KR 1019950046583 A KR1019950046583 A KR 1019950046583A KR 19950046583 A KR19950046583 A KR 19950046583A KR 100195645 B1 KR100195645 B1 KR 100195645B1
Authority
KR
South Korea
Prior art keywords
buffer
data
data stored
remote control
stored
Prior art date
Application number
KR1019950046583A
Other languages
Korean (ko)
Other versions
KR970032249A (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 KR1019950046583A priority Critical patent/KR100195645B1/en
Publication of KR970032249A publication Critical patent/KR970032249A/en
Application granted granted Critical
Publication of KR100195645B1 publication Critical patent/KR100195645B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom

Abstract

본 발명은 비동기 전송 모드로 변환되어 수신되는 리모콘 신호중에 포함되어 있는 코드데이타를 검출하는 리모콘 신호의 코드데이터 검출 방법에 관한 것으로, 비동기 전송 모드로 변환되어 수신되는 리모콘 신호를 3개의 버퍼에 각기 저장한다음, ID의 저장 유무를 판별하여 코드데이터를 검출하도록 구성됩니다.The present invention relates to a method for detecting code data of a remote control signal for detecting code data included in a remote control signal received and converted to an asynchronous transmission mode. Next, it is configured to detect the code data by determining whether the ID is stored.

즉, 제1 버퍼 및 제3 버퍼에 저장되어 있는 데이터는 ID이고, 제2 버퍼에 저장되어 있는 데이터는 ID가 아닌 것으로 판단되면 제2 버퍼에 저장되어 있는 데이터를 코드 데이터로 검출하고, 제1 버퍼 및 제3 버퍼에 저장되어 있는 데이터가 ID가 아니고 제2 버퍼에 저장되어 있는 데이터가 ID인 경우에는 제2 버퍼에 저장되어 있는 데이터를 코드데이터로 검출한다. 그리고, 제1 버퍼, 제2 버퍼 및 제3 버퍼에 저장되어 있는 데이터가 모두 ID로 판별되면 제2 버퍼에 저장되어 있는 데이터를 코드데이터로 검출하며, 제1 버퍼에 저장되어 있는 데이터는 ID가 아니고 제2 버퍼 및 제3 버퍼에 저장되어 있는 데이터가 ID인 경우에는 제3 버퍼에 저장되어 있는 데이터를 코드데이터로 검출하므로써, 원격지에서 송출된 리모콘 제어에 따른 해당 동작을 빠르고 정확하게 수행할 수 있는 효과를 제공한다.That is, if it is determined that the data stored in the first buffer and the third buffer is an ID, and the data stored in the second buffer is not an ID, the data stored in the second buffer is detected as code data, and the first If the data stored in the buffer and the third buffer are not IDs, and the data stored in the second buffer is an ID, the data stored in the second buffer is detected as code data. When the data stored in the first buffer, the second buffer, and the third buffer are all determined by ID, the data stored in the second buffer is detected as code data, and the data stored in the first buffer has an ID. If the data stored in the second buffer and the third buffer is an ID, the data stored in the third buffer can be detected as code data, so that the operation according to the remote control transmitted from a remote site can be performed quickly and accurately. Provide effect.

Description

리모콘 신호의 코드 데이타 검출 방법Code data detection method of remote control signal

제1도는 본 발명에 따른 리모콘 신호의 코드 데이타 검출 방법을 수행하기 위한 수신 장치의 개략적인 블럭구성도이고,1 is a schematic block diagram of a receiving apparatus for performing a code data detection method of a remote control signal according to the present invention;

제2도는 본 발명의 바람직한 실시예에 따라 리모콘 신호 중에 포함되어 있는 코드데이타를 검출하는 동작 과정을 도시한 플로우챠트이고,2 is a flowchart illustrating an operation process of detecting code data included in a remote control signal according to a preferred embodiment of the present invention.

제3도는 전형적인 리모콘 신호의 신호 파형도이고,3 is a signal waveform diagram of a typical remote control signal,

제4도는 비동기 전송 모드의 리모콘 신호를 설명하기 위한 도면이다.4 is a view for explaining a remote control signal of the asynchronous transmission mode.

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

110 : 신호 합성부 120 : 카운터110: signal synthesizing unit 120: counter

130,132,134,136 : 비교부 140 : 플립플롭130,132,134,136: comparison unit 140: flip-flop

150 : S/P 변환부 160 : 클럭 발생부150: S / P converter 160: clock generator

170 : P/S 변환부170: P / S converter

본 발명은 사무용 기기나 A/V(AUDIO/VIDEO, 이하 A/N 라 약칭함) 기기에 채용되는 원격제어용 수신장치의 코드데이타 검출방법에 관한 것으로, 보다 상세하게는 리모트 콘트롤러(REMOTE CONTROLLER ; 이하 리모콘이라 약칭함)으로 부터 송출되는 원격 제어신호(통상적으로, 원격지 리모콘의 적외선 발신기에서 출력되는 적외선 신호임, 이하 리모콘신호라 칭함) 중에 포함되어 있는 코드데이타를 고속으로 정확하게 검출할 수 있도록 한 리모콘신호의 코드데이타 검출방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for detecting code data of a receiver for remote control employed in office equipment or A / V (hereinafter abbreviated as A / N) equipment, and more particularly, to a remote controller (REMOTE CONTROLLER; Remote control that can detect the code data contained in the remote control signal (commonly called infrared signal output from the infrared transmitter of the remote controller, hereinafter referred to as remote control signal) from the remote controller. The present invention relates to a method for detecting code data of a signal.

통상적으로, 각종 사무용 기기(예를들면, 컴퓨터나 팩스 등)나 A/V 기기(예를 들면, 텔레비젼, 브이씨알 등)에는 사용자가 해당 기기의 제어 또는 조작을 직접 실행시키기 위한 각종 스위치가 자체 패널상에 구비되어 있다. 그러나, 최근들어 사용자의 필요욕구에 부응하여 사용자의 이용 편리성을 보다 증진시키기 위한 방법의 일환으로서, 이러한 각종 사무용 기기나 A/V 기기들에는 리모콘에 의한 원격제어가 가능하도록 하는 시스템이 채용되고 있다.Typically, various office devices (eg, computers, faxes, etc.) or A / V devices (eg, TVs, V-Cells, etc.) have various switches for allowing a user to directly control or operate the device. It is provided on the panel. However, in recent years, as a part of a method for further improving user convenience in response to a user's need, a system for enabling remote control by a remote controller has been adopted for such various office devices and A / V devices. have.

즉, 상술한 바와같은 각종 기기들은 원격지의 리모콘으로부터 송출되는 리모콘신호를 수신하여 이를 신호처리 가능한 제어신호로 디코딩한 다음, 디코딩된 신호를 해당 기능을 수행하기 위해 기기 내에 내장된 CPU(CENTRAL PROCESSING UNIT ; 이하 CPU라 약칭함)에 제공하는 리모콘신호 수신장치를 구비한다.That is, the various devices as described above receive a remote control signal transmitted from a remote control of the remote location and decodes it into a control signal capable of signal processing, and then the CPU (CENTRAL PROCESSING UNIT) built in the device to perform the corresponding function (Hereinafter abbreviated as CPU).

따라서, 리모콘신호 수신장치를 통해 수신되어 디코딩된 제어신호, 예를들면 텔레비젼의 경우 음량 조절신호, 채널 조정신호, 화면 색상 조정신호 등이 해당 기기의 CPU에 제공되고, CPU 로부터의 제어신호에 의거하여 해당기기는 소망하는 기능을 수행하게 된다.Therefore, a control signal received and decoded through the remote control signal receiving device, for example, a volume control signal, a channel adjustment signal, a screen color adjustment signal in the case of a television, is provided to the CPU of the device, and is based on the control signal from the CPU. The device will then perform the desired function.

한편, 제3도에 도시된 바와 같이, 리모콘신호는 크게 세부분, 즉 싱크(SYNC, a), ID(IDENTIFICATION ; 이하 ID 라 약칭함, b) 및 코드데이타(CODE-DATA, c)로 구성되는데, 싱크(a)는 신호를 해석하기 위한 시작점을 표시하며, 이를 찾아내야만 다음에 연속되는 ID(b)와 코드데이타(c)를 해석할 수 있게 된다.On the other hand, as shown in Figure 3, the remote control signal is composed of large details, that is, SYNC (a), ID (IDENTIFICATION; abbreviated as ID, b) and code data (CODE-DATA, c) The sink (a) marks the starting point for interpreting the signal, and only after it is found, the sink (a) can interpret the subsequent ID (b) and code data (c).

이때, ID(b)와 코드데이타(c)를 해석하는데 있어서, 펄스의 로우레벨 기간(DURATION)이 1.5 msec 이면 1 로 판정하고, 펄스의 로우레벨 기간이 0.5 msec 이면 0 으로 판정하는데, 이와같은 ID(b)와 코드데이타(c)는 업체마다 그 값이 다르게 설정되어 있다.At this time, in analyzing the ID (b) and the code data (c), it is determined as 1 when the low level period (DURATION) of the pulse is 1.5 msec, and 0 when the low level period of the pulse is 0.5 msec. ID (b) and code data (c) have different values for each company.

따라서, 본 발명의 목적은 상기한 바와 같이 코드 데이터 및 ID가 각 업체마다 다르게 설정되어 있는 리모콘 신호를 수신시 리모콘 신호 중에 포함되어 있는 코드데이타를 고속으로 정확하게 검출할 수 있도록 하기 위한 리모콘 신호의 코드데이타 검출 방법을 제공하는데 있다.Accordingly, an object of the present invention is to provide a code of a remote control signal for fast and accurate detection of code data contained in a remote control signal upon receiving a remote control signal having code data and IDs set differently for each company as described above. It is to provide a data detection method.

상기 목적을 달성하기 위하여 본 발명은, 비동기 전송 모드로 변환된 리모콘 신호중에 포함되어 있는 코드데이터를 검출하는 방법에 있어서, 상기 비동기 전송 모드로 변환된 리모콘 신호를 1바이트 단위로 3개의 버퍼에 각각 저장한 다음 상기 3개의 버퍼에 저장되어 있는 데이타가 ID인가를 각각 체크하는 제1 단계; 상기 3개의 버퍼중에 첫 번째 버퍼에 저장되어 있는 데이터가 ID이고, 두 번째 버퍼에 저장되어 있는 데이터가 ID가 아니며 세 번째 버퍼에 저장되어 있는 데이터가 ID이면 상기 두 번째 버퍼에 저장되어 있는 데이터를 상기 코드데이터로 검출하는 제2 단계; 상기 3개의 버퍼중에 첫 번째 버퍼에 저장되어 있는 데이터가 ID가 아니고, 상기 두 번째 버퍼에 저장되어 있는 데이터가 ID이고, 상기 세 번째 버퍼에 저장되어 있는 데이터가 ID가 아니면 상기 두 번째 버퍼에 저장되어 있는 데이터를 상기 코드 데이터로 검출하는 제3 단계; 상기 3개의 버퍼중에 상기 첫 번째 버퍼 및 상기 두 번째 버퍼, 세 번째 버퍼에 저장되어 있는 데이터가 ID이면 상기 두 번째 버퍼에 저장되어 있는 데이터를 상기 코드 데이터로 검출하는 제4 단계; 상기 3개의 버퍼중에 상기 첫 번째 버퍼에 저장되어 있는 데이터가 ID가 아니고 두 번째 및 세 번째 버퍼에 저장되어 있는 데이터가 ID이면 상기 세 번째 버퍼에 저장되어 있는 데이터를 상기 코드데이터로 검출하는 제5 단계로 이루어진 것을 특징으로 하는 리모콘 신호의 코드데이타 검출 방법을 제공한다.In order to achieve the above object, the present invention provides a method for detecting code data included in a remote control signal converted to an asynchronous transmission mode, wherein the remote control signal converted to the asynchronous transmission mode is stored in three buffers in units of 1 byte. A first step of storing and then checking whether the data stored in the three buffers are IDs; If the data stored in the first buffer among the three buffers is an ID, and the data stored in the second buffer is not an ID and the data stored in the third buffer is an ID, the data stored in the second buffer is stored. A second step of detecting with the code data; If the data stored in the first buffer among the three buffers is not an ID, the data stored in the second buffer is an ID, and the data stored in the third buffer is not an ID, the data is stored in the second buffer. A third step of detecting data that has been written as the code data; A fourth step of detecting data stored in the second buffer as the code data if the data stored in the first buffer, the second buffer, and the third buffer among the three buffers are IDs; A fifth data which detects the data stored in the third buffer as the code data when the data stored in the first buffer is not an ID and the data stored in the second and third buffers is an ID among the three buffers. Provided is a method for detecting code data of a remote control signal, comprising the steps.

본 발명의 상기 및 기타 목적과 여러가지 장점은 이 기술분야에 숙련된 사람들에 의해 첨부된 도면을 참조하여 하기에 기술되는 본 발명의 바람직한 실시예로부터 더욱 명확하게 될 것이다.The above and other objects and various advantages of the present invention will become more apparent from the preferred embodiments of the present invention described below with reference to the accompanying drawings by those skilled in the art.

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

제1도는 본 발명에 따른 리모콘신호의 코드데이타 검출방법을 수행하기 위한 수신장치의 개략적인 블럭구성도, 신호합성부(110), 카운터(120), 비교부(130, 132, 134, 136), 플립플롭(140), S/P변환부(SERIAL TO PARALLEL 변환부 ; 이하 S/P변환부라 약칭함, 150), 클럭발생부(160) 및 P/S변환부(PARALLEL TO SERIAL 변환부 ; 이하 P/S변환부라 약칭함, 170)로 구성된다.1 is a schematic block diagram of a receiving apparatus for performing a code data detection method of a remote control signal according to the present invention, a signal synthesizing unit 110, a counter 120, a comparator 130, 132, 134, and 136. , Flip-flop 140, S / P converter (SERIAL TO PARALLEL converter; abbreviated as S / P converter, 150), the clock generator 160 and P / S converter (PARALLEL TO SERIAL converter; Hereinafter abbreviated as P / S conversion unit, 170).

동도면에 있어서, 신호합성부(110)는 리모콘신호와 외부로부터 제공되는 샘플링클럭(CLK)을 합성한 합성신호를 카운터(120)로 제공하고, 카운터(120)는 신호합성부(110)로부터 제공되는 합성신호 중에 샘플링 클럭(CLK)의 클럭갯수를 계수하여 각 비교부(130, 132, 134, 136)로 제공하는데, 이와 같은 카운터(120)는 후술될 제1 비교부(130)로부터 제공되는 리셋신호에 의거하여 리셋된다.In the same figure, the signal synthesizing unit 110 provides a synthesized signal obtained by synthesizing the remote control signal and the sampling clock CLK provided from the outside to the counter 120, and the counter 120 is provided from the signal synthesizing unit 110. The number of clocks of the sampling clock CLK is counted among the synthesized signals provided and provided to each of the comparison units 130, 132, 134, and 136. Such a counter 120 is provided from the first comparison unit 130 to be described later. The reset signal is reset based on the reset signal.

또한, 제1 비교부(130)는 카운터(120)에서 계수되는 클럭갯수와 기설정된 소정값(A)을 비교하여, 카운터(120)에서 계수된 클럭갯수가 기설정된 소정값(A)이 되면 카운터(120)를 리셋하기 위한 리셋신호를 발생하고, 제2 비교부(132)는 카운터(120)에서 계수되는 클럭갯수와 기설정된 소정값(B)을 비교하여 카운터(120)에서 계수된 클럭갯수가 기설정된 소정값(B)이 되면 제로판별신호를 발생하여 플립플롭(140)의 일측입력단으로 제공한다.In addition, the first comparison unit 130 compares the number of clocks counted by the counter 120 with a predetermined value A, and when the number of clocks counted by the counter 120 reaches a predetermined value A, A reset signal for resetting the counter 120 is generated, and the second comparator 132 compares the number of clocks counted by the counter 120 with a predetermined value B and counts the clocks counted by the counter 120. When the number reaches a predetermined value B, a zero discrimination signal is generated and provided to the one input terminal of the flip-flop 140.

여기에서, 기설정된 소정값 A는 제3도에 도시된 리모콘신호의 싱크(a) 중에 펄스의 하이레벨 기간이 8 msec에 상응하는 샘플링클럭의 갯수를 의미하고, 기설정된 소정값 B는 제3도에 도시된 리모콘신호 중에 펄스의 로우레벨 기간이 0.5 msec에 상응하는 샘플링클럭의 갯수를 의미한다.Here, the predetermined predetermined value A means the number of sampling clocks in which the high level period of the pulse corresponds to 8 msec during the sync a of the remote control signal shown in FIG. 3, and the predetermined predetermined value B is the third value. The low level period of the pulse in the remote control signal shown in FIG. Means the number of sampling clocks corresponding to 0.5 msec.

그리고, 제3 비교부(134)는 카운터(120)에서 계수되는 클럭갯수와 기설정된 소정값(C)을 비교하여 카운터(120)에서 계수된 클럭갯수가 기설정된 소정값(C)이 되면 제로판별신호를 플립플롭(140)의 타측입력단으로 제공하고, 제4 비교부(136)는 카운터(120)에서 계수되는 클럭갯수와 기설정된 소정값(D)을 비교하여 카운터(120)에서 계수된 클럭갯수가 기설정된 소정값(D)이 되면 도시생략된 CPU에 인터럽트(INTERRUPT ; 이하 INT 라 약칭함)를 걸기 위한 INT 신호를 발생한다.The third comparison unit 134 compares the number of clocks counted by the counter 120 with a predetermined value C, and zeros when the number of clocks counted by the counter 120 reaches a predetermined value C. The discrimination signal is provided to the other input terminal of the flip-flop 140, and the fourth comparator 136 compares the number of clocks counted by the counter 120 with a predetermined value D and counts the counted by the counter 120. When the number of clocks reaches the predetermined value D, an INT signal for generating an interrupt (INTERRUPT; hereinafter abbreviated as INT) is generated.

여기에서, 기설정된 소정값 C는 제3도에 도시된 리모콘신호 중에 펄스의 로우레벨 기간이 1.5 msec에 상응하는 샘플링클럭의 갯수를 의미하고, 기설정된 소정값 D는 제3도에 도시된 리모콘신호 중에 펄스의 로우레벨 기간이 4 msec에 상응하는 샘플링클럭의 갯수를 의미한다.Here, the predetermined predetermined value C means the number of sampling clocks in which the low level period of the pulse corresponds to 1.5 msec among the remote control signals shown in FIG. 3, and the predetermined predetermined value D is the remote control shown in FIG. The low level period of the pulse in the signal means the number of sampling clocks corresponding to 4 msec.

한편, 플립플롭(140)은 제2 비교부(132)로부터 플립플롭(140)의 일측입력단으로 제공되는 제로판별신호에 의거하여 0을 S/P변환부(150)로 제공하고, 제3 비교부(134)로부터 플립플롭(140)의 타측입력단으로 제공되는 제로판별신호에 의거하여 1을 S/P변환부(150)로 제공한다.Meanwhile, the flip-flop 140 provides 0 to the S / P converter 150 based on the zero discrimination signal provided from the second comparator 132 to the one input terminal of the flip-flop 140. 1 is provided to the S / P converter 150 based on the zero discrimination signal provided from the unit 134 to the other input terminal of the flip-flop 140.

제1도에 있어서, S/P변환부(150)는 플립플롭(140)로부터 직렬로 출력되는 데이타를 8비트의 병렬데이타로 변환하고, 클럭발생부(160)는 다른 기기의 CPU 간의 전송속도를 맞추기 위해 기설정된 보드레이트(BOARD RATE)에 의거하여 클럭을 발생하며, P/S변환부(170)는 클럭발생부(160)로부터 제공되는 클럭속도에 의거하여 S/P변환부(150)를 통해 변환된 8비트의 병렬 데이타를 직렬로 변환한 다음 출력한다.In FIG. 1, the S / P converter 150 converts data output in series from the flip-flop 140 into 8-bit parallel data, and the clock generator 160 transfers data between CPUs of different devices. To generate a clock based on a predetermined board rate (BOARD RATE) generates a clock, the P / S converter 170 is based on the clock speed provided from the clock generator 160, S / P converter 150 Converts 8-bit parallel data converted into serial and outputs it.

여기에서, 플립플롭(140)으로부터 제공되는 0 및 1 의 직렬데이타가 S/P변환부(150)를 통해 8비트의 병렬데이타로 전환한 다음, P/S변환부(170)를 통해 다시 직렬의 데이타로 변환하는 이유는, 신호합성부(110)로 입력되는 제3도에 도시된 바와 같은 리모콘신호를 컴퓨터의 직렬통신 또는 모뎀에 사용되는 통신규약인 제4도에 도시된 바와 같은 비동기 전송모드의 리모콘신호로 변환하기 위해서이다.Here, the 0 and 1 serial data provided from the flip-flop 140 is converted into 8-bit parallel data through the S / P converter 150, and then serialized again through the P / S converter 170. The reason for converting the data into the data is the asynchronous transmission as shown in FIG. 4, which is a communication protocol used for serial communication of a computer or a modem, as shown in FIG. This is for converting to a remote control signal of a mode.

상기한 바와 같은 구성부재로 이루어진 본 발명에 따른 리모콘신호의 코드데이타 검출방법의 동작과정에 대하여 제1도와 제2도를 참조하여 보다 상세하게 설명하기로 한다.An operation process of the code data detection method of the remote control signal according to the present invention, which includes the above-described constituent members, will be described in more detail with reference to FIGS. 1 and 2.

먼저, 원격지로부터 송출되는 원격 제어신호는 통상적으로 제3도에 도시된 바와 같은, 리모콘신호가 60 msec의 주기로 반복적으로 송출되어 수신장치로 수신된다.First, the remote control signal transmitted from the remote site is typically transmitted to the receiving device by repeatedly transmitting the remote control signal at a period of 60 msec, as shown in FIG.

그 다음, 수신장치로 수신된 리모콘신호와 외부로부터 제공되는 샘플링클럭(CLK)이 신호합성부(110)를 통해 합성되고, 합성된 합성신호가 카운터(120)로 제공된다.Then, the remote control signal received from the receiving device and the sampling clock CLK provided from the outside are synthesized through the signal synthesizing unit 110, and the synthesized synthesized signal is provided to the counter 120.

그리고, 신호합성부(110)에서 합성된 합성신호 중에 샘플링클럭(CLK)이 카운터(120)를 통해 계수되어 제1 비교부(130), 제2 비교부(132), 제3 비교부(134) 및 제4 비교부(136)로 각각 제공된다.In addition, the sampling clock CLK is counted through the counter 120 among the synthesized signals synthesized by the signal synthesizing unit 110, and thus, the first comparator 130, the second comparator 132, and the third comparator 134. And the fourth comparator 136, respectively.

이때, 카운터(120)를 통해 계수되는 클럭갯수가 기설정된 소정값(A), 상세하게는 리모콘신호 중에 펄스의 하이레벨 기간이 8 msec에 상응하는 샘플링클럭의 갯수가 되면, 제1 비교부(130)로부터 카운터(120)를 리셋하기 위한 리셋신호가 발생되고, 제1 비교부(130)으로부터의 리셋신호에 의거하여 카운터(120)는 리셋된다.At this time, when the number of clocks counted through the counter 120 is a predetermined value A, in detail, the number of sampling clocks corresponding to 8 msec. A reset signal for resetting the counter 120 is generated from 130, and the counter 120 is reset based on the reset signal from the first comparator 130.

그리고, 카운터(120)를 통해 계수되는 클럭갯수가 기설정된 소정값(D), 상세하게는 리모콘신호 중에 펄스의 로우레벨 기간이 4 msec에 상응하는 샘플링클럭의 갯수가 되면, 제4 비교부(136)으로부터 INT신호가 발생되고, 제4 비교부(136)로부터의 INT신호에 의거하여 도시생략된 CPU는 인터럽트 처리루틴을 수행하고, 통신선로를 초기화시킨다(단계 205).When the number of clocks counted through the counter 120 is a predetermined value D, in detail, the number of sampling clocks corresponding to 4 msec in the low level period of the pulse in the remote control signal, the fourth comparator ( An INT signal is generated from 136, and the CPU not shown based on the INT signal from the fourth comparator 136 performs an interrupt processing routine and initializes the communication line (step 205).

한편, 카운터(120)에서 계수되는 클럭갯수가 기설정된 소정값(B), 상세하게는 리모콘신호 중에 펄스의 로우레벨 기간이 0.5 msec에 상응하는 샘플링클럭의 갯수가 되면, 제2 비교부(132)로부터 제로판별신호가 발생되어 플립플롭(140)의 일측입력단으로 제공되고, 카운터(120)에서 계수되는 클럭갯수가 기설정된 소정값(C), 상세하게는 리모콘신호 중에 펄스의 로우레벨 기간이 1.5 msec에 상응하는 샘플링클럭의 갯수가 되면, 제3 비교부(134)로부터 제로판별신호가 발생되어 플립플롭(140)의 타측입력단으로 제공된다.On the other hand, when the number of clocks counted by the counter 120 is a predetermined value B, specifically, the number of sampling clocks corresponding to the low level period of the pulse in the remote control signal corresponding to 0.5 msec, the second comparator 132 A zero discrimination signal is generated and provided to one input terminal of the flip-flop 140, and the number of clocks counted by the counter 120 is preset to a predetermined value (C). When the number of sampling clocks corresponding to 1.5 msec is reached, a zero discrimination signal is generated from the third comparison unit 134 and provided to the other input terminal of the flip-flop 140.

이 때, 제2 비교부(132)로부터의 제로판별신호가 플립플롭(140)의 일측입력단으로 제공되면, 플립플롭(140)으로부터 0이 S/P변환부(150)로 제공되고, 제3 비교부(134)로부터의 제로판별신호가 플립플롭(140)의 타측입력단으로 제공되면, 플립플롭(140)으로부터 1이 S/P변환부(150)로 제공된다.At this time, if the zero discrimination signal from the second comparator 132 is provided to one input terminal of the flip-flop 140, 0 from the flip-flop 140 is provided to the S / P converter 150, and the third When the zero discrimination signal from the comparator 134 is provided to the other input terminal of the flip-flop 140, 1 is provided from the flip-flop 140 to the S / P converter 150.

그 다음, 플립플롭(140)으로부터 제공되는 0 및 1 의 직렬데이타가 S/P변환부(150)를 통해 8비트의 병렬데이타로 변환된 다음, 클럭발생부(160)로부터의 제공되는 클럭속도에 의거하여 P/S변환부(170)에서 다시 직렬의 데이타로 변환되어 출력된다.Then, serial data of 0 and 1 provided from the flip-flop 140 is converted into 8-bit parallel data through the S / P converter 150, and then the clock speed provided from the clock generator 160 is provided. The P / S conversion unit 170 converts the data into serial data and outputs the data.

다음에, 도시생략된 CPU는 수신장치를 통해 비동기 전송모드로 변환된 리모콘신호 중에 코드데이타를 검출하기 위하여, 3개의 버퍼(B1, B2, B3)를 설정한 다음(단계 210), P/S변환부(170)로부터 출력되는 데이타를 8비트, 즉 1바이트(BYTE) 단위로 저장한다.Next, the CPU not shown sets three buffers B1, B2, and B3 in order to detect code data in the remote control signal converted to the asynchronous transmission mode through the receiving apparatus (step 210). The data output from the converter 170 is stored in units of 8 bits, that is, 1 byte (BYTE).

상세하게는, P/S변환부(170)로부터 출력되는 첫번째 데이타는 버퍼 B1에 저장하고(단계 215), P/S변환부(170)로부터 출력되는 두번째 데이타는 버퍼 B2에 저장하며(단계 220), P/S변환부(170)로부터 출력되는 세번째 데이타는 버퍼 B3에 저장한다(단계 225).In detail, the first data output from the P / S converter 170 is stored in the buffer B1 (step 215), and the second data output from the P / S converter 170 is stored in the buffer B2 (step 220). ), The third data output from the P / S converter 170 is stored in the buffer B3 (step 225).

한편, 기기의 ID는 회사별 기종에 따라 미리 설정되어 있으므로, ID는 쉽게 판별할 수 있다.On the other hand, since the ID of the device is set in advance according to the model for each company, the ID can be easily determined.

따라서, CPU는 3개의 버퍼(B1, B2, B3)에 각각 저장되어 있는 데이타 중에 코드데이타를 검출하기 위하여, 버퍼 B1에 저장되어 있는 데이타가 ID 인가를 체크하고(단계 230), 버퍼 B1에 저장되어 있는 데이타가 ID 이면, 버퍼 B2에 저장되어 있는 데이타가 ID인가를 체크한다(단계 235).Therefore, the CPU checks whether the data stored in the buffer B1 is ID (step 230) and stores the buffer data in order to detect code data among the data stored in the three buffers B1, B2, and B3, respectively. If the data is ID, it is checked whether the data stored in the buffer B2 is ID (step 235).

그리고, 단계(235)에서의 체크결과, 버퍼 B2에 저장되어 있는 데이타가 ID 이면 버퍼 B3에 저장되어 있는 데이타가 ID 인가를 체크하고(단계 240), 버퍼 B2에 저장되어 있는 데이타가 ID가 아니면 버퍼 B3에 저장되어 있는 데이타가 ID 인가를 체크한다(단계 245).As a result of the check in step 235, if the data stored in the buffer B2 is ID, it is checked whether the data stored in the buffer B3 is an ID (step 240), and if the data stored in the buffer B2 is not the ID, It is checked whether data stored in the buffer B3 is ID (step 245).

한편, 단계(240)에서의 체크결과, 버퍼 B3에 저장되어 있는 데이타가 ID이면 버퍼 B2에 저장되어 있는 데이타를 코드데이타로 검출하고(단계 250), 버퍼 B3에 저장되어 있는 데이타가 ID 아니면 후술될 단계(270)로 되돌아가 상기 단계(230)부터 다시 수행한다.On the other hand, if the data stored in the buffer B3 is the ID as a result of the check in step 240, the data stored in the buffer B2 is detected as code data (step 250). If the data stored in the buffer B3 is not the ID, the data will be described later. The process returns to step 270 to be performed again from step 230.

이 때, 단계(270)은 버퍼 B2에 저장되어 있는 데이타를 버퍼 B1으로 저장하고, 버퍼 B3에 저장되어 있는 데이타를 버퍼 B2에 저장한 다음, P/S변환부(170)로 부터 출력되는 네번째 데이타를 버퍼 B3에 저장하는 것이다.At this time, step 270 stores the data stored in the buffer B2 into the buffer B1, stores the data stored in the buffer B3 in the buffer B2, and then outputs the fourth output from the P / S conversion unit 170. The data is stored in buffer B3.

여기에서, 단계(270)을 수행하는 이유는 비동기 전송모드로 변환되는 과정에서 발생될 수 있는 에러로 인해 코드데이타를 잘못 검출하는 것을 방지하기 위한 것이다.Here, the reason for performing the step 270 is to prevent wrong detection of the code data due to an error that may occur in the process of switching to the asynchronous transmission mode.

다른 한편, 단계(245)에서의 체크결과, 버퍼 B3에 저장되어 있는 데이타가 ID 이면 버퍼 B2에 저장되어 있는 데이타를 코드데이타로 검출하고, 버퍼 B3에 저장되어 있는 데이타가 ID가 아니면 단계(270)로 되돌아가 상기 단계(230)부터 다시 수행한다.On the other hand, if the data stored in the buffer B3 is the ID as a result of the check in the step 245, the data stored in the buffer B2 is detected as code data, and if the data stored in the buffer B3 is not the ID, step 270 Returning to), the process is performed again from the step 230.

다음에, 상기 단계(230)에서의 체크결과, 버퍼 B1에 저장되어 있는 데이타가 ID가 아니면, 버퍼 B2에 저장되어 있는 데이타가 ID 인가를 체크한다(단계 255).Next, as a result of the check in step 230, if the data stored in the buffer B1 is not an ID, it is checked whether the data stored in the buffer B2 is an ID (step 255).

단계(255)에서의 체크결과, 버퍼 B2에 저장되어 있는 데이타가 ID가 아니면 단계(270)로 되돌아가 단계(230)부터 다시 수행하고, 버퍼 B2에 저장되어 있는 데이타가 ID 이면 버퍼 B3에 저장되어 있는 데이타가 ID 인가를 체크한다(단계 260).As a result of the check in step 255, if the data stored in the buffer B2 is not the ID, the process returns to step 270 and is executed again from step 230. If the data stored in the buffer B2 is the ID, the data is stored in the buffer B3. It is checked whether or not the given data is ID (step 260).

이 때, 단계(260)에서의 체크결과, 버퍼 B3에 저장되어 있는 데이타가 ID이면 버퍼 B3에 저장되어 있는 데이타를 코드데이타로 검출하고(단계 265), 버퍼 B3에 저장되어 있는 데이타가 ID 아니면 버퍼 B2에 저장되어 있는 데이타를 코드데이타로 검출한다(단계 250).At this time, if the data stored in the buffer B3 is an ID as a result of the check in step 260, the data stored in the buffer B3 is detected as code data (step 265), and if the data stored in the buffer B3 is the ID, Data stored in the buffer B2 is detected as code data (step 250).

상술한 바와 같이, P/S변환부(170)로부터 출력되는 데이타를 1바이트씩 3개의 버퍼(B1, B2, B3)에 각각 저장한 다음, 버퍼 B1, B2, B3에 저장되어 있는 데이타가 ID 인가를 각각 체크하여, 버퍼 B1에 저장된 데이타가 ID 이고, 버퍼 B2에 저장되어 있는 데이타가 ID가 아니며, 버퍼 B3에 저장되어 있는 데이타가 ID 이면 버퍼 B2에 저장되어 있는 데이타를 코드데이타로 검출하고, 버퍼 B1에 저장되어 있는 데이타가 ID가 아니고, 버퍼 B2에 저장되어 있는 데이타가 ID이며, 버퍼 B3에 저장되어 있는 데이타가 ID가 아니면 버퍼 B2에 저장되어 있는 데이타를 코드데이타로 검출한다.As described above, the data output from the P / S converter 170 is stored in three buffers B1, B2, and B3 for each byte, and then the data stored in the buffers B1, B2, and B3 are IDs. If the data stored in the buffer B1 is the ID, the data stored in the buffer B2 is not the ID, and the data stored in the buffer B3 is the ID, the data stored in the buffer B2 is detected as code data. If the data stored in the buffer B1 is not ID, the data stored in the buffer B2 is the ID, and the data stored in the buffer B3 is not the ID, the data stored in the buffer B2 is detected as code data.

또한, 버퍼 B1과 버퍼 B2에 저장되어 있는 데이타가 ID 이고, 버퍼 B3에 저장되어 있는 데이타가 ID 이면 버퍼 B2에 저장되어 있는 데이타를 코드데이타로 검출하고, 버퍼 B1에 저장되어 있는 데이타가 ID가 아니고, 버퍼 B2와 B3에 저장되어 있는 데이타가 ID 이면 버퍼 B3에 저장되어 있는 데이타를 코드데이타로 검출한다.If the data stored in the buffer B1 and the buffer B2 is ID, and the data stored in the buffer B3 is the ID, the data stored in the buffer B2 is detected as code data, and the data stored in the buffer B1 is the ID. If the data stored in the buffers B2 and B3 is ID, the data stored in the buffer B3 is detected as code data.

따라서, 본 발명을 이용하면, 수신장치를 통해 비동기 전송모드로 변환된 리모콘신호 중에 포함되어 있는 코드데이타를 고속으로 정확하게 검출할 수 있는 효과가 있다.Therefore, by using the present invention, it is possible to accurately detect code data contained in the remote control signal converted into the asynchronous transmission mode through the receiving apparatus at high speed.

Claims (1)

비동기 전송 모드로 변환된 리모콘 신호중에 포함되어 있는 코드데이터를 검출하는 방법에 있어서, 상기 비동기 전송 모드로 변환된 리모콘 신호를 1바이트 단위로 3개의 버퍼에 각각 저장한 다음 상기 3개의 버퍼에 저장되어 있는 데이터가 ID인가를 각각 체크하는 제1 단계; 상기 3개의 버퍼중에 첫번째 버퍼에 저장되어 있는 데이터가 ID이고, 두번째 버퍼에 저장되어 있는 데이터가 ID가 아니며 세번째 버퍼에 저장되어 있는 데이터가 ID이면 상기 두 번째 버퍼에 저장되어 있는 데이터를 상기 코드 데이터로 검출하는 제2 단계; 상기 3개의 버퍼중에 첫번째 버퍼에 저장되어 있는 데이터가 ID가 아니고, 상기 두번째 버퍼에 저장되어 있는 데이터가 ID이고, 상기 세번째 버퍼에 저장되어 있는 데이터가 ID가 아니면 상기 두번째 버퍼에 저장되어 있는 데이터를 상기 코드 데이터로 검출하는 제3 단계; 상기 3개의 버퍼중에 상기 첫번째 버퍼 및 상기 두번째 버퍼, 세번째 버퍼에 저장되어 있는 데이터가 ID이면 상기 두번째 버퍼에 저장되어 있는 데이터를 상기 코드 데이터로 검출하는 제4 단계; 상기 3개의 버퍼중에 상기 첫번째 버퍼에 저장되어 있는 데이터가 ID가 아니고 두 번째 및 세번째 버퍼에 저장되어 있는 데이터가 ID이면 상기 세번째 버퍼에 저장되어 있는 데이터를 상기 코드 데이터로 검출하는 제5 단계를 포함하는 것을 특징으로 하는 리모콘 신호의 코드 데이터 검출 방법.A method of detecting code data included in a remote control signal converted to an asynchronous transmission mode, the method comprising: storing the remote control signal converted to the asynchronous transmission mode in three buffers in units of 1 byte, and then storing the three data in the three buffers A first step of checking whether the existing data is an ID; The code data is stored in the second buffer when the data stored in the first buffer is an ID, the data stored in the second buffer is not an ID, and the data stored in the third buffer is an ID. Detecting by a second step; If the data stored in the first buffer among the three buffers is not an ID, and the data stored in the second buffer is an ID, and the data stored in the third buffer is not an ID, the data stored in the second buffer is stored. Detecting by the code data; A fourth step of detecting data stored in the second buffer as the code data when the data stored in the first buffer, the second buffer, and the third buffer among the three buffers are IDs; And a fifth step of detecting data stored in the third buffer as the code data when the data stored in the first buffer among the three buffers is not an ID and the data stored in the second and third buffers is an ID. Code data detection method of the remote control signal, characterized in that.
KR1019950046583A 1995-11-30 1995-11-30 Method for detecting the code-data in remote controller signal KR100195645B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950046583A KR100195645B1 (en) 1995-11-30 1995-11-30 Method for detecting the code-data in remote controller signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950046583A KR100195645B1 (en) 1995-11-30 1995-11-30 Method for detecting the code-data in remote controller signal

Publications (2)

Publication Number Publication Date
KR970032249A KR970032249A (en) 1997-06-26
KR100195645B1 true KR100195645B1 (en) 1999-06-15

Family

ID=19437691

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950046583A KR100195645B1 (en) 1995-11-30 1995-11-30 Method for detecting the code-data in remote controller signal

Country Status (1)

Country Link
KR (1) KR100195645B1 (en)

Also Published As

Publication number Publication date
KR970032249A (en) 1997-06-26

Similar Documents

Publication Publication Date Title
JP2641999B2 (en) Data format detection circuit
US4761800A (en) Method and apparatus for detecting a rate of data transmission
US7548581B2 (en) At-command analyzing device
US6240151B1 (en) Method for transmitting and receiving asynchronous serial data in digital signal processor
US6546065B1 (en) Frame synchronous circuit
KR100195645B1 (en) Method for detecting the code-data in remote controller signal
KR0174970B1 (en) Code data detection method of remote control signal
CN110635854A (en) Transmission protocol self-adaptive decoding system and method
KR0174958B1 (en) Remote control signal receiver and code data detection method
JPH0332182A (en) Teletext decoder
KR100197375B1 (en) Remote control receiver for a/v apparatus
JPH07264263A (en) Serial communication interface device
JP2983959B1 (en) Serial interface and modem device using the same
JP2702773B2 (en) Data monitoring device
JPS63164554A (en) Automatic recognizing system for data speed
JP2003263404A (en) Serial communication system and microcomputer using the same
JP2839017B2 (en) Radio paging signal monitoring device
KR0152706B1 (en) Local communication control chip
KR100208931B1 (en) Rmvd device having a circuit for detecting falling-edge
JP2988311B2 (en) Key scan method and circuit
JPH10294772A (en) At command reception system
JP2923979B2 (en) Frequency detection circuit
KR100198298B1 (en) Interface apparatus between pc and remote controller
KR100555644B1 (en) transmitting/receiving method of bit stream
KR100407133B1 (en) Apparatus for searching idle code of data level line in communication system

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
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20070202

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee