KR0174970B1 - Code data detection method of remote control signal - Google Patents

Code data detection method of remote control signal Download PDF

Info

Publication number
KR0174970B1
KR0174970B1 KR1019950044803A KR19950044803A KR0174970B1 KR 0174970 B1 KR0174970 B1 KR 0174970B1 KR 1019950044803 A KR1019950044803 A KR 1019950044803A KR 19950044803 A KR19950044803 A KR 19950044803A KR 0174970 B1 KR0174970 B1 KR 0174970B1
Authority
KR
South Korea
Prior art keywords
buffer
data
stored
remote control
data stored
Prior art date
Application number
KR1019950044803A
Other languages
Korean (ko)
Other versions
KR970032240A (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 KR1019950044803A priority Critical patent/KR0174970B1/en
Publication of KR970032240A publication Critical patent/KR970032240A/en
Application granted granted Critical
Publication of KR0174970B1 publication Critical patent/KR0174970B1/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Selective Calling Equipment (AREA)

Abstract

본 발명은 리모콘신호의 코드데이타 검출방법에 관한 것으로, P/S변환부로부터 출력되는 데이타를 1 바이트씩 3 개의 버퍼에 각각 저장한 다음, 버퍼 B1 에 저장되어 있는 데이타가 ID 인가를 체크하여 버퍼 B1 에 저장된 데이타가 ID 이면, 버퍼 B2 에 저장되어 있는 데이타를 코드데이타로 검출하고, 버퍼 B1 에 저장되어 있는 데이타가 ID 가 아닌 상태에서 버퍼 B2 에 저장되어 있는 데이타가 ID 이면 버퍼 B3 에 저장되어 있는 데이타를 코드데이타로 검출한다. 이때, 버퍼 B1 에 저장되어 있는 데이타가 ID 가 아닌 상태에서 버퍼 B2 에 저장되어 있는 데이타 역시 ID 가 아니면, 버퍼 B2 에 저장되어 있는 데이타를 버퍼 B1 으로 저장하고, 버퍼 B3 에 저장되어 있는 1 바이트의 데이타를 버퍼 B2 에 저장하며, P/S변환부로부터 출력되는 1 바이트의 데이타를 버퍼 B3 에 저장한 다음 다시 코드데이타를 검출한다. 다른 한편, 3 개의 버퍼 중에 버퍼 B1 에 저장되어 있는 데이타가 ID 인가를 체크하여 버퍼 B1 에 저장되어 있는 데이타가 ID 이면 버퍼 B2 에 저장되어 있는 데이타를 코드데이타로 검출하고, 버퍼 B1에 저장되어 있는 데이타가 ID 아니면 버퍼 B3 에 저장되어 있는 데이타를 코드데이타로 검출하므로써, 수신장치를 통해 비동기 전동모드로 변환된 리모콘신호 중에 포함되어 있는 코드데이타를 고속으로 정확하게 검출할 수 있도록 한 것이다.The present invention relates to a method for detecting code data of a remote control signal. The data output from the P / S converter is stored in three buffers of 1 byte each, and then the data stored in the buffer B1 is checked for ID. If the data stored in B1 is ID, the data stored in buffer B2 is detected as code data. If the data stored in buffer B2 is not ID, the data stored in buffer B2 is stored in buffer B3. Detects existing data as code data. At this time, if the data stored in the buffer B2 is not the ID while the data stored in the buffer B1 is not the ID, the data stored in the buffer B2 is stored in the buffer B1 and one byte of the data stored in the buffer B3 is stored. The data is stored in the buffer B2, and one byte of data output from the P / S converter is stored in the buffer B3, and the code data is detected again. On the other hand, if the data stored in the buffer B1 is ID among the three buffers, and if the data stored in the buffer B1 is the ID, the data stored in the buffer B2 is detected as code data and stored in the buffer B1. By detecting the data as ID or data stored in the buffer B3 as code data, it is possible to accurately detect the code data contained in the remote control signal converted to the asynchronous electric mode through the receiver.

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 of detecting code data included in a remote controller signal according to a preferred embodiment of the present invention.

제3도는 본 발명의 다른 실시예에 따라 리모콘신호 중에 포함되어 있는 코드데이타를 검출하는 동작과정을 도시한 도면.3 is a diagram illustrating an operation of detecting code data included in a remote control signal according to another embodiment of the present invention.

제4도는 전형적인 리모콘신호의 신호 파형도.4 is a signal waveform diagram of a typical remote control signal.

제5도는 비동기 전송모드의 리모콘신호를 설명하기 위한 도면.5 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 synthesis 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/V라 약칭함) 기기에 채용되는 원격제어용 수신장치의 코드데이타 검출방법에 관한 것으로, 보다 상세하게는 리모콘 콘트롤러(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 / V) equipment, and more particularly, to a remote controller. Remote control signal transmitted from the remote control (abbreviated as remote control) (normally, infrared signal output from the infrared transmitter of the remote control, hereinafter referred to as remote control signal) to detect the code data contained at high speed. The present invention relates to a code data detection method.

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

즉, 상술한 바와같은 각종 기기들은 원격지의 리모콘으로부터 송출되는 리모콘신호를 수신하여 이를 신호처리 가능한 제어신호로 디코딩한 다음, 디코딩된 신호를 해당 기능을 수행하기 위해 기기 내에 내장된 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 (Hereafter abbreviated as CPU) is provided.

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

한편, 제4도에 도시된 바와 같이, 리모콘신호는 크게 세부분, 즉 싱크(SYNC, a), ID(IDENTIFECATION : 이하 ID 라 약칭함, b) 및 코드데이타(CODE-EATA, c)로 구성되는데, 싱크(a)는 신호를 해석하기 위한 시작점을 표시하며, 이를 찾아내야만 다음에 연속되는 ID(b)와 코드데이타(c)를 해석할 수 있게 된다.On the other hand, as shown in Figure 4, the remote control signal is composed of large details, that is, SYNC (a), ID (IDENTIFECATION: abbreviated as ID, b) and code data (CODE-EATA, 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.5msec 이면, 1로 판정하고, 펄스의 로우레벨 기간이 0.5msec 이면 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. The same ID (b) and code data (c) have different values for each company.

다른 한편, 본 발명의 목적은 비동기 전송모드로 변환된 리모콘신호 중에 포함되어 있는 코드데이타를 고속으로 정확하게 검출할 수 있는 리모콘신호의 코드데이타 검출방법을 제공하는데 있다.On the other hand, it is an object of the present invention to provide a method for detecting code data of a remote control signal capable of accurately detecting code data contained in a remote control signal converted to an asynchronous transmission mode at high speed.

본 발명의 다른 목적은 비동기 전송모드로 변환된 리모콘신호 중에 포함되어 있는 코드데이타를 가장 빠르게 검출할 수 있는 리모콘신호의 코드데이타 검출방법을 제공하는데 있다.Another object of the present invention is to provide a code data detection method of a remote control signal capable of detecting the code data included in the remote control signal converted to the asynchronous transmission mode most quickly.

상기 목적을 달성하기 위한 본 발명의 일관점에 따르면, 비동기 전송모드로 변환된 리모콘신호 중에 포함되어 있는 코드데이타를 검출하는 방법에 있어서, 상기 비동기 전송모드로 변환된 리모콘신호를 1 바이트 단위로 3 개의 버퍼에 각각 저장한 다음 첫 번째 버퍼에 저장되어 있는 데이타가 ID 인가를 체크하는 제1단계와, 상기 제1단계에서의 체크결과, 상기 첫 번째 버퍼의 저장되어 있는 데이타가 상기 ID 이면 상기 3 개의 버퍼 중에 두번째 버퍼에 저장되어 있는 데이타를 상기 코드데이타로 검출하고, 상기 첫 번째 버퍼에 저장되어 있는 데이타가 상기 ID 가 아니면 상기 두번째 버퍼에 저장되어 있는 데이타가 상기 ID 인가를 체크하는 제2단계와, 상기 제2단계에서의 체크결과, 상기 두번째 버퍼에 저장되어 있는 데이타가 상기 ID 이면 상기 3 개의 버퍼 중에 세 번째 버퍼에 저장되어 있는 데이타를 상기 코드데이타로 검출하는 제3단계와, 상기 제1단계 및 제2단계에서의 체크결과, 상기 첫 번째 버퍼와 상기 두번째 버퍼에 저장되어 있는 데이타가 모두 ID 가 아니면 상기 두번째 버퍼에 저장되어 있는 데이타를 상기 첫 번째 버퍼로 저장하고, 상기 세 번째 버퍼에 저장되어 있는 데이타를 상기 두번째 버퍼로 저장하며, 상기비동기 전송모드로 변환되는 데이타를 상기 세 번째 버퍼로 저장하여 상기 각 단계를 반복수행하는 제4단계로 이루어진 것을 특징으로 하는 리모콘신호의 코드데이타 검출방법이 제공된다.According to an aspect of the present invention for achieving the above object, in the method for detecting the code data included in the remote control signal converted to the asynchronous transmission mode, the remote control signal converted to the asynchronous transmission mode 3 in units of 1 byte A first step of checking whether the data stored in the first buffer and then the data stored in the first buffer is an ID; and if the stored data of the first buffer is the ID, the result of the check in the first step is 3 A second step of detecting data stored in the second buffer among the two buffers as the code data, and checking whether the data stored in the second buffer is the ID if the data stored in the first buffer is not the ID; And if the data stored in the second buffer is the ID as a result of the check in the second step, the three The third step of detecting the data stored in the third buffer in the buffer with the code data, and the result of the check in the first step and the second step, all the data stored in the first buffer and the second buffer If not an ID, data stored in the second buffer is stored in the first buffer, data stored in the third buffer is stored in the second buffer, and data converted into the asynchronous transfer mode is stored in the third buffer. Provided is a code data detection method of a remote control signal, characterized in that it comprises a fourth step of repeating each step by storing as.

상기 목적을 달성하기 위한 본 발명의 다른 관점에 따르면, 비동기 전송모드로 변환된 리모콘신호 중에 포함되어 있는 코드데이타를 검출하는 방법에 있어서, 상기 비동기 전송모드로 변환된 리모콘신호를 1 바이트 단위로 3 개의 버퍼에 각각 저장한 다음 첫 번째 버퍼에 저장되어 있는 데이타가 ID 인가를 체크하는 제1단계와, 상기 제1단계에서의 체크결과, 상기 첫 번째 버퍼에 저장되어 있는 데이타가 상기 ID 이면 상기 3 개의 버퍼 중에 두번째 버퍼에 저장되어 있는 데이타를 상기 코드데이타로 검출하는 제2단계와, 상기 첫 번째 버퍼에 저장되어 있는 데이타가 상기 ID 가 아니면 상기 3 개의 버퍼 중에 세 번째 버퍼에 저장되어 있는 데이타를 상기 코드데이타로 검출하는 제3단계로 이루어진 것을 특징으로 하는 리모콘신호의 코드데이타 검출방법이 제공된다.According to another aspect of the present invention for achieving the above object, in the method for detecting code data contained in the remote control signal converted to the asynchronous transmission mode, the remote control signal converted to the asynchronous transmission mode 3 in units of 1 byte A first step of checking whether the data stored in the first buffer and then the data stored in the first buffer is an ID; and if the data stored in the first buffer is the ID as a result of the check in the first step, the 3 Detecting the data stored in the second buffer among the two buffers with the code data; and if the data stored in the first buffer is not the ID, the data stored in the third buffer among the three buffers. Code data detection method of the remote control signal, characterized in that the third step of detecting with the code data It is provided.

본 발명의 상기 및 기타 목적과 여러 가지 장점은 이 기술분야에 숙련된 사람들에 의해 첨부된 도면을 참조하여 하기에 기술되는 본 발명의 바람직한 실시예로부터 더욱 명확하게 될 것이다.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, a flip-flop 140 , S / P converter (SERIAL TO PARALLEL converter: abbreviated as S / P converter, 150), clock generator 160 and P / S converter (PARALLEL TO SERIAL converter: P / S converter Abbreviated 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 the comparators 130, 132, 134, and 136. Such a counter 120 is based on a reset signal provided from the first comparator 130 to be described later. It is reset.

또한, 제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 comparison unit 132 compares the number of clocks counted by the counter 120 with a predetermined value B, and the clock 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는 제4도에 도시된 리모콘신호의 싱크(a)중에 펄스의 하이레벨 기간이 8msec에 상응하는 샘플링클럭의 개수를 의미하고, 기설정된 소정값 B는 제4도에 도시된 리모콘신호 중에 펄스의 로우레벨 기간이 0.5msec에 상응하는 샘플링클럭의 개수를 의미한다.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 in the sink a of the remote control signal shown in FIG. 4, and the predetermined predetermined value B is shown in FIG. The number of sampling clocks corresponding to 0.5 msec of low level periods of pulses in the remote control signal shown in FIG.

그리고, 제3비교부(134)는 카운터(120)에서 계수되는 클럭갯수와 기설정된 소정값(C)을 비교하여 카운터(120)에서 계수된 클럭갯수가 기설정된 소정값(C)이 되면 제로판별신호를 플립플롭(140)의 타측입력단으로 제공하고, 제4비교부(136)는 카운터(120)에서 계수되는 클럭갯수와 기설정된 소정값(D)을 비교하여 카운터(120)에서 계수된 클럭갯수가 기설정된 소정값(D)이 되면 도시생략된 CPU에 인터럽트(INTERRUPT : 이하 INT 라 약칭함)를 걸기 위한 INT 신호를 발생한다.Then, 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 a predetermined value D, an INT signal for generating an interrupt (INTERRUPT: abbreviated as INT below) is generated.

여기에서, 기설정된 소정값 C는 제4도에 도시된 리모콘신호 중에 펄스의 로우레벨 기간이 1.5msec에 상응하는 샘플링클럭의 개수를 의미하고, 기설정된 소정값 D는 제4도에 도시된 리모콘신호 중에 펄스의 로우레벨 기간이 4msec에 상응하는 샘플링클럭의 개수를 의미한다.Here, the predetermined predetermined value C means the number of sampling clocks whose low level periods of pulses correspond to 1.5 msec among the remote control signals shown in FIG. 4, 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 a 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변환부(150)를 통해 변환된 8 비트의 병렬 데이타를 직렬로 변환한 다음 출력한다.In FIG. 1, the S / P converter 150 converts output data provided from the flip-flop 140 into 8-bit parallel data, and the clock generator 160 controls the transfer speed between CPUs of different devices. A clock is generated based on a preset board rate for matching, and the 8-bit parallel data converted by the P / S converter 150 is serially converted and then output.

여기에서, 플립플롭(140)으로부터 제공되는 0 및 1의 직렬데이타가 S/P변환부(150)를 통해 8 비트의 병렬데이타로 전환한 다음, P/S변환부(170)를 통해 다시 직렬의 데이타로 변환하는 이유는, 신호합성부(110)로 입력되는 리모콘신호를 컴퓨터의 직렬통신 또는 모뎀에 사용되는 통신규약인 비동기 전송모드의 리모콘신호로 변환하기 위해서이다.Here, the 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 serialized again through the P / S converter 170. The reason is to convert the remote control signal inputted to the signal synthesizing unit 110 into a remote control signal in an asynchronous transmission mode, which is a communication protocol used for serial communication or a modem of a computer.

상기한 바와 같은 구성부재로 이루어진 본 발명에 따른 리모콘신호의 코드데이타 검출방법의 동작과정에 대하여 제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.

먼저, 원격지로부터 송출되는 원격 제어신호는 통상적으로 제4도에 도시된 바와 같은, 리모콘신호가 60msec 의 주기로 반복적으로 송출되어 수신장치로 수신된다.First, a remote control signal transmitted from a remote site is typically transmitted to the receiving device by repeatedly transmitting a remote control signal at a cycle 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, so that the first comparator 130, the second comparator 132, and the third comparator 134 are provided. And the fourth comparison unit 136, respectively.

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

그리고, 카운터(120)를 통해 계수되는 클럭갯수가 기설정된 소정값(D), 상세하게는 리모콘신호 중에 펄스의 로우레벨 기간이 4msec에 상응하는 샘플링클럭의 개수가 되면, 제4비교부(136)으로부터 INT 신호가 발생되고, 제4비교부(136)로부터의 INT 신호에 의거하여 도시생략된 CPU 는 인터럽트 처리루틴을 수행하고, 통신선로를 초기화시킨다(단계 205).In addition, when the number of clocks counted through the counter 120 reaches a predetermined value D, specifically, 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 136 Is generated, 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.5msec에 상응하는 샘플링클럭의 개수가 되면, 제2비교부(132)로부터 제로판별신호가 발생되어 플립플롭(140)의 일측입력단으로 제공되고, 카운터(120)에서 계수되는 클럭갯수가 기설정된 소정값(C), 상세하게는 리모콘신호 중에 펄스의 로우레벨 기간이 1.5msec에 상응하는 샘플링클럭의 개수가 되면, 제3비교부(134)로부터 제로판별신호가 발생되어 플립플롭(140)의 타측입력단으로 제공된다.On the other hand, when the number of clocks counted by the counter 120 reaches a predetermined value B, specifically, the number of sampling clocks corresponding to 0.5 msec in the low level period of the pulse in the remote controller signal, the second comparison unit 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, the zero discrimination signal from the second comparison unit 132 is provided to one input terminal of the flip-flop 140, 0 from the flip-flop 140 is provided to the S / P conversion unit 150, the third comparison When the zero discrimination signal from the unit 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), and then the P / S. The data output from the converter 170 is stored in units of 8 bits, that is, 1 byte (BYTE).

상세하게는, 버퍼 B1 에는 P/S변환부(170)로부터 출력되는 첫 번째 데이타를 저장하고(단계 215), 버퍼 B2 에는 P/S변환부(170)로부터 출력되는 두번째 데이타를 저장하며(단계 220), 버퍼 B3 에는 P/S변환부(170)로부터 출력되는 세 번째 데이타를 저장한다(단계 225).Specifically, 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 preset according to the model of each company, the ID can be easily determined.

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

그리고, 단계(240)에서의 체크결과, 버퍼 B2에 저장되어 있는 데이타가 ID 이면, 버퍼 B3 에 저장되어 있는 데이타를 코드데이타로 검출한다(단계 245).As a result of the check in step 240, if the data stored in the buffer B2 is ID, the data stored in the buffer B3 is detected as code data (step 245).

한편, 상기 단계(240)에서의 체크결과, 버퍼 B2 에 저장되어 있는 데이타가 ID 가 아니면, 버퍼 B2 에 저장되어 있는 데이타를 B1 으로 저장하고, B3 에 저장되어 있는 데이타를 B2 로 저장하는 동시에 P/S변환부(170)로부터 출력되는 네번째 데이타를 저장한 다음(단계 250), 상기 단계(230)로 되돌아가 상기 각 단계를 반복수행한다.On the other hand, if the data stored in the buffer B2 is not an ID as a result of the check in the step 240, the data stored in the buffer B2 is stored as B1, and the data stored in B3 is stored as B2 and P is stored. After storing the fourth data output from the / S conversion unit 170 (step 250), the process returns to step 230 and repeats the above steps.

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

다른 한편, 본 발명의 다른 실시예에 따라 리모콘신호 중에 포함되어 있는 코드데이타를 검출하는 동작과정에 대하여 제1도와 제3도를 참조하여 설명하기로 한다.On the other hand, the operation of detecting the code data included in the remote control signal according to another embodiment of the present invention will be described with reference to FIG. 1 and FIG.

우선, 제3도의 본 발명의 다른 실시예에 따라 리모콘신호 중에 코드데이타를 검출하는 각 단계 중에 단계(305 내지 325)는 제2도의 본 발명의 바람직한 실시예에 따라 코드데이타를 검출하는 동작과정 중에 단계(205 내지 225)와 실질적으로 동일한 동작과정이므로, 중복된 기재를 피하기 위해 여기에서의 기술은 생략하기로 한다.First, during each step of detecting code data in the remote control signal according to another embodiment of FIG. 3, steps 305 to 325 are performed during the operation of detecting code data according to the preferred embodiment of the present invention in FIG. Since operations are substantially the same as steps 205 to 225, the description herein will be omitted to avoid duplicate descriptions.

따라서, 하기는 본 발명의 다른 실시예에 따라 수신장치를 통해 비동기 전송모드로 변환된 리모콘신호 중에 코드데이타를 검출하는 가장 특징적인 단계(330 내지 340)에 대하여 주로 설명하기로 한다.Accordingly, the following will mainly describe the most characteristic steps 330 to 340 for detecting code data in a remote control signal converted to an asynchronous transmission mode through a receiving apparatus according to another embodiment of the present invention.

상기 단계(305 내지 325)를 통해 P/S변환부(170)로부터 출력되는 1 바이트씩의 데이타가 3 개의 버퍼(B1,B2,B3)에 각각 저장되어 있는 상태에서, 도시생략된 CPU 는 버퍼 B1 에 저장되어 있는 1 바이트의 데이타가 ID 인가를 체크한다(단계 330).In the state where the data of each byte output from the P / S converter 170 through the steps 305 to 325 are stored in the three buffers B1, B2, and B3, respectively, the CPU shown in FIG. It is checked whether 1 byte of data stored in B1 is ID (step 330).

상기 단계(330)에서의 체크결과, 버퍼 B1 에 저장되어 있는 1 바이트의 데이타가 ID 이면 버퍼 B2 에 저장되어 있는 1 바이트의 데이타를 코드데이타로 검출하고(단계 335), 버퍼 B1 에 저장되어 있는 1 바이트의 데이타가 ID 가 아니면 버퍼 B3 에 저장되어 있는 1 바이트의 데이타를 코드데이타로 검출한다(단계 340).As a result of the check in the step 330, if the one-byte data stored in the buffer B1 is an ID, the one-byte data stored in the buffer B2 is detected as code data (step 335), and stored in the buffer B1. If one byte of data is not an ID, one byte of data stored in the buffer B3 is detected as code data (step 340).

상술한 바와 같이, P/S변환부(170)로부터 출력되는 데이타를 1 바이트씩 3 개의 버퍼(B1,B2,B3)에 각각 저장한 다음, 버퍼 B1 에 저장되어 있는 데이타가 ID 인가를 체크하여 버퍼 B1 에 저장된 데이타가 ID 이면, 버퍼 B2 에 저장되어 있는 데이타를 코드데이타로 검출하고, 버퍼 B1 에 저장되어 있는 데이타가 ID 가 아닌 상태에서 버퍼 B2 에 저장되어 있는 데이타가 ID 이면 버퍼 B3 에 저장되어 있는 데이타를 코드데이타로 검출한다. 이때, 버퍼 B1 에 저장되어 있는 데이타가 ID 가 아닌 상태에서 버퍼 B2 에 저장되어 있는 데이타 역시 ID 가 아니면, 버퍼 B2 에 저장되어 있는 데이타를 버퍼 B1 으로 저장하고, 버퍼 B3 에 저장되어 있는 1 바이트의 데이타를 버퍼 B2 에 저장하며, P/S변환부(170)로부터 출력되는 1 바이트의 데이타를 버퍼 B3 에 저장한 다음 다시 코드데이타를 검출한다. 다른 한편, 3 개의 버퍼 중에 버퍼 B1 에 저장되어 있는 데이타가 ID 인가를 체크하여 버퍼 B1 에 저장되어 있는 데이타가 ID 이면 버퍼 B2 에 저장되어 있는 데이타를 코드데이타로 검출하고, 버퍼 B1 에 저장되어 있는 데이타가 ID 가 아니면 버퍼 B3에 저장되어 있는 데이타를 코드데이타로 검출한다.As described above, the data output from the P / S converter 170 is stored in three buffers B1, B2, and B3, one byte at a time, and then the data stored in the buffer B1 is checked for ID. If the data stored in buffer B1 is ID, the data stored in buffer B2 is detected as code data. If the data stored in buffer B2 is ID without the data stored in buffer B1 being ID, the data stored in buffer B2 is stored in buffer B3. Code data is detected by code data. At this time, if the data stored in the buffer B2 is not the ID while the data stored in the buffer B1 is not the ID, the data stored in the buffer B2 is stored in the buffer B1 and one byte of the data stored in the buffer B3 is stored. The data is stored in the buffer B2, and one byte of data output from the P / S converter 170 is stored in the buffer B3, and then code data is detected again. On the other hand, if the data stored in the buffer B1 is ID among the three buffers, and if the data stored in the buffer B1 is the ID, the data stored in the buffer B2 is detected as code data and stored in the buffer B1. If the data is not an ID, the data stored in the buffer B3 is detected as code data.

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

Claims (2)

비동기 전송모드로 변환된 리모콘신호 중에 포함되어 있는 코드데이타를 검출하는 방법에 있어서, 상기 비동기 전송모드로 변환된 리모콘신호를 1 바이트 단위로 3 개의 버퍼에 각각 저장한 다음 첫 번째 버퍼에 저장되어 있는 데이타가 ID 인가를 체크하는 제1단계; 상기 제1단계에서의 체크결과, 상기 첫 번째 버퍼에 저장되어 있는 데이타가 상기 ID 이면 상기 3 개의 버퍼 중에 두번째 버퍼에 저장되어 있는 데이타를 상기 코드데이타로 검출하고, 상기 첫 번째 버퍼에 저장되어 있는 데이타가 상기 ID 가 아니면 상기 두번째 버퍼에 저장되어 있는 데이타가 상기 ID 인가를 체크하는 제2단계; 상기 제2단계에서의 체크결과, 상기 두번째 버퍼에 저장되어 있는 데이타가 상기 ID 이면 상기 3 개의 버퍼 중에 세 번째 버퍼에 저장되어 있는 데이타를 상기 코드데이타로 검출하는 제3단계; 상기 제1단계 및 제2단계에서의 체크결과, 상기 첫 번째 버퍼와 상기 두번째 버퍼에 저장되어 있는 데이타가 모두 ID 가 아니면 상기 두번째 버퍼에 저장되어 있는 데이타를 상기 첫 번째 버퍼로 저장하고, 상기 세 번째 버퍼에 저장되어 있는 데이타를 상기 두번째 버퍼로 저장하며, 상기 비동기 전송모드로 변환되는 데이타를 상기 세 번째 버퍼로 저장하여 상기 각 단계를 반복수행하는 제4단계로 이루어진 것을 특징으로 하는 리모콘신호의 코드데이타 검출방법.A method of detecting code data included in a remote control signal converted to the asynchronous transmission mode, wherein the remote control signal converted to the asynchronous transmission mode is stored in three buffers in units of 1 byte and then stored in the first buffer. A first step of checking whether data is ID; As a result of the check in the first step, if the data stored in the first buffer is the ID, the data stored in the second buffer among the three buffers is detected as the code data and stored in the first buffer. A second step of checking whether the data stored in the second buffer is the ID if data is not the ID; A third step of detecting data stored in a third buffer among the three buffers as the code data when the data stored in the second buffer is the ID as a result of the check in the second step; As a result of the check in the first and second steps, if the data stored in the first buffer and the second buffer are not both IDs, the data stored in the second buffer is stored as the first buffer, and the three A fourth step of storing the data stored in the first buffer into the second buffer, and storing the data converted into the asynchronous transfer mode into the third buffer and repeating each step. Code data detection method. 비동기 전송모드로 변환된 리모콘신호 중에 포함되어 있는 코드데이타를 검출하는 방법에 있어서, 상기 비동기 전송모드로 변환된 리모콘신호를 1 바이트 단위로 3 개의 버퍼에 각각 저장한 다음 첫 번째 버퍼에 저장되어 있는 데이타가 ID 인가를 체크하는 제1단계; 상기 제1단계에서의 체크결과, 상기 첫 번째 버퍼의 저장되어 있는 데이타가 상기 ID 이면 상기 3 개의 버퍼 중에 두번째 버퍼에 저장되어 있는 데이타를 상기 코드데이타로 검출하는 제2단계; 상기 첫 번째 버퍼에 저장되어 있는 데이타가 상기 ID 가 아니면 상기 3 개의 버퍼 중에 세 번째 버퍼에 저장되어 있는 데이타를 상기 코드데이타로 검출하는 제3단계로 이루어진 것을 특징으로 하는 리모콘신호의 코드데이타 검출방법.A method of detecting code data included in a remote control signal converted to the asynchronous transmission mode, wherein the remote control signal converted to the asynchronous transmission mode is stored in three buffers in units of 1 byte and then stored in the first buffer. A first step of checking whether data is ID; A second step of detecting data stored in a second buffer among the three buffers as the code data if the data stored in the first buffer is the ID as a result of the check in the first step; If the data stored in the first buffer is not the ID, a third step of detecting the data stored in the third buffer among the three buffers as the code data; .
KR1019950044803A 1995-11-29 1995-11-29 Code data detection method of remote control signal KR0174970B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950044803A KR0174970B1 (en) 1995-11-29 1995-11-29 Code data detection method of remote control signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950044803A KR0174970B1 (en) 1995-11-29 1995-11-29 Code data detection method of remote control signal

Publications (2)

Publication Number Publication Date
KR970032240A KR970032240A (en) 1997-06-26
KR0174970B1 true KR0174970B1 (en) 1999-04-01

Family

ID=19436462

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950044803A KR0174970B1 (en) 1995-11-29 1995-11-29 Code data detection method of remote control signal

Country Status (1)

Country Link
KR (1) KR0174970B1 (en)

Also Published As

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

Similar Documents

Publication Publication Date Title
JP2641999B2 (en) Data format detection circuit
KR0174970B1 (en) Code data detection method of remote control signal
KR100195645B1 (en) Method for detecting the code-data in remote controller signal
KR0174958B1 (en) Remote control signal receiver and code data detection method
JPS6234425A (en) Line of electric force carrier communicator
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
JP2988311B2 (en) Key scan method and circuit
US20230289320A1 (en) Device for decoding the data communication under universal serial bus standard
JP2712304B2 (en) Data transmission method, data transmission device, data reception method, and data reception device
KR0152706B1 (en) Local communication control chip
JPH0710047B2 (en) Zero error detection circuit
JP2839017B2 (en) Radio paging signal monitoring device
KR100198298B1 (en) Interface apparatus between pc and remote controller
KR100244499B1 (en) Optical communication system
KR0128896B1 (en) Apparatus of remote transeiver with cascade connection
KR100555644B1 (en) transmitting/receiving method of bit stream
JP2923979B2 (en) Frequency detection circuit
CA1319405C (en) Frequency independent information transmission system
US7082269B2 (en) Interface circuit for a fiber transceiver
JPH07146740A (en) Data transfer device
JPH0440098A (en) Signal converter
KR19990021022A (en) Device and method for automatic detection of communication speed in serial communication
JPH0758725A (en) Data transmitter and data receiver

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20081103

Year of fee payment: 11

LAPS Lapse due to unpaid annual fee