KR19990075869A - Key signal processing circuit and method - Google Patents

Key signal processing circuit and method Download PDF

Info

Publication number
KR19990075869A
KR19990075869A KR1019980010347A KR19980010347A KR19990075869A KR 19990075869 A KR19990075869 A KR 19990075869A KR 1019980010347 A KR1019980010347 A KR 1019980010347A KR 19980010347 A KR19980010347 A KR 19980010347A KR 19990075869 A KR19990075869 A KR 19990075869A
Authority
KR
South Korea
Prior art keywords
key data
key
data
output
counter
Prior art date
Application number
KR1019980010347A
Other languages
Korean (ko)
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 KR1019980010347A priority Critical patent/KR19990075869A/en
Publication of KR19990075869A publication Critical patent/KR19990075869A/en

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • G08C19/16Electric signal transmission systems in which transmission is by pulses
    • G08C19/28Electric signal transmission systems in which transmission is by pulses using pulse code
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M11/00Coding in connection with keyboards or like devices, i.e. coding of the position of operated keys
    • H03M11/26Coding in connection with keyboards or like devices, i.e. coding of the position of operated keys using opto-electronic means
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K2217/00Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00
    • H03K2217/94Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated
    • H03K2217/94084Transmission of parameters among sensors or between sensor and remote station
    • H03K2217/94089Wireless transmission

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Selective Calling Equipment (AREA)

Abstract

본 발명은 마이크로 프로세서와 원격제어장치간의 키 데이터 처리에 있어서, 리모콘에서 출력되는 직렬의 키신호를 간단히 병렬로 변환하여 줌으로써 마이크로 프로세서가 이를 용이하게 인식하여 처리할 수 있도록 한 키신호 처리회로 및 방법에 관한 것으로, 입력되는 신호가 리모콘에서 출력되는 키 데이터인지를 확인하여, 키 데이터로 단속키인 경우라면 반전입력되는 키 데이터의 하이 구간을 카운트하여 각각 "0"과 "1"의 키 데이터를 검출하고, 이 검출된 총 32비트의 "0"과 "1"의 키 데이터를 4개의 D-플립플롭에 쉬프트시켜 래치한 후, 마이크로 프로세서에서 인터럽트 신호에 의해 상기 4개의 D-플립플롭에 래치된 키 데이터를 엑세스하여 총 32비트의 키 데이터를 8비트씩 병렬로 엑세스함으로써 처리하도록 하고, 연속키인 경우에는 그 전에 엑세스한 키 데이터를 다시 처리하도록 함을 특징으로 하며, 이와 같이 간단한 인터페이스 회로를 통해 직렬 데이터를 병렬 데이터로 변환함에 따라 마이크로 프로세서의 부하를 줄일 수 있게 되고, 별도의 마이크로 컴퓨터와 외부 디바이스가 필요없어 복잡한 신호 처리과정이 필요없게 됨은 물론 로직을 EPLD화함으로써 원가 절감의 효과가 있다.In the key data processing between the microprocessor and the remote control device, a key signal processing circuit and method for converting a serial key signal output from a remote controller into parallel in parallel so that the microprocessor can easily recognize and process the same. The present invention relates to verifying whether an input signal is key data output from a remote controller, and in the case of an intermittent key as key data, counting a high section of the inverted input key data to obtain key data of "0" and "1", respectively. Detects and shifts the detected 32-bit key data of "0" and "1" into four D-flip flops, and then latches the four D-flip flops by an interrupt signal in a microprocessor. Accesses the key data and processes 32 bits of key data in parallel by 8 bits for access. By re-processing one key data, this simple interface circuit converts serial data into parallel data, which reduces the load on the microprocessor and eliminates the need for separate microcomputers and external devices. In addition to eliminating the need for signal processing, the logic can be EPLDed to reduce costs.

Description

키신호 처리회로 및 방법Key signal processing circuit and method

본 발명은 마이크로 프로세서와 원격제어장치(Remote Control Unit ; 이하,'리모콘'이라 칭함)간의 키 데이터 처리에 있어서, 리모콘에서 출력되는 직렬의 키신호를 간단히 병렬로 변환하여 줌으로써 마이크로 프로세서가 이를 용이하게 인식하여 처리할 수 있도록 한 키신호 처리회로 및 방법에 관한 것이다.In the present invention, in the key data processing between the microprocessor and the remote control unit (hereinafter referred to as a remote controller), the microprocessor easily converts the serial key signals output from the remote controller in parallel. The present invention relates to a key signal processing circuit and a method for recognizing and processing a key signal.

종래 마이크로 프로세서에서는 특정의 마이크로 컴퓨터와 외부 디바이스를 이용하여 리모콘에서 출력되는 키신호를 입력하여 인식하였다.In a conventional microprocessor, a key signal output from a remote controller is input and recognized using a specific microcomputer and an external device.

즉, 4비트 또는 8비트의 마이크로 컴퓨터가 리모콘에서 출력되는 직렬의 키신호를 입력받아 이를 병렬 데이터로 변환하여 마이크로 프로세서로 출력하였다.That is, a 4-bit or 8-bit microcomputer receives a serial key signal output from a remote controller, converts it into parallel data, and outputs it to a microprocessor.

그러나, 상기와 같이 종래에는 마이크로 프로세서가 리모콘의 키신호를 인식하기 위해 별도의 전용 마이크로 컴퓨터와 주변의 외부 디바이스를 추가로 구비함에 따라 키신호 인터페이스 회로가 복잡하여 마이크로 컴퓨터의 부하가 많게 됨은 물론 고가의 회로소자를 사용하므로 비용이 많이 소모되게 되는 문제점이 있었다.However, as described above, as the microprocessor additionally includes a separate dedicated microcomputer and a peripheral external device for recognizing the key signal of the remote controller, the key signal interface circuit is complicated, thereby increasing the load of the microcomputer, and of course, high cost. There is a problem that the cost is consumed because of using the circuit element.

본 발명은 상기와 같은 문제점을 해결하기 위해 안출한 것으로서, 그 목적은 로직(Logic)으로 구성되는 인터페이스 회로를 구현하여 리모콘에서 출력되는 직렬의 키신호를 간단히 병렬로 변환하여 줌으로써 마이크로 프로세서가 이를 용이하게 인식하여 처리할 수 있도록 한 키신호 처리회로 및 방법을 제공하는 데에 있다.The present invention has been made to solve the above problems, the object of which is to implement an interface circuit consisting of logic (Logic) to easily convert the serial key signal output from the remote controller in parallel to facilitate this easy It is an object of the present invention to provide a key signal processing circuit and method which can recognize and process the same.

이러한 목적을 달성하기 위한 본 발명의 키신호 처리회로 및 방법은, 입력되는 신호가 리모콘에서 출력되는 키 데이터인지를 확인하여, 키 데이터로 단속키인 경우라면 반전입력되는 키 데이터의 하이 구간을 카운트하여 각각 "0"과 "1"의 키 데이터를 검출하고, 이 검출된 총 32비트의 "0"과 "1"의 키 데이터를 4개의 D-플립플롭에 쉬프트시켜 래치한 후, 마이크로 프로세서에서 인터럽트 신호에 의해 상기 4개의 D-플립플롭에 래치된 키 데이터를 엑세스하여 총 32비트의 키 데이터를 8비트씩 병렬로 엑세스함으로써 처리하도록 하고, 연속키인 경우에는 그 전에 엑세스한 키 데이터를 다시 처리하도록 함을 특징으로 한다.The key signal processing circuit and method of the present invention for achieving the above object, to determine whether the input signal is the key data output from the remote control, and counts the high period of the inverted input key data if the key data is an intermittent key To detect key data of "0" and "1", shift the latched key data of "0" and "1" of the detected 32 bits to four D-flip flops, and then By accessing the key data latched in the four D-flip flops by the interrupt signal, a total of 32 bits of key data are accessed in parallel by 8 bits, and in the case of a continuous key, the previously accessed key data is again restored. Characterized in that the processing.

도 1은 본 발명에 의한 키신호 처리회로의 블록 구성도,1 is a block diagram of a key signal processing circuit according to the present invention;

도 2는 본 발명에 의한 키신호 처리회로의 상세 구성도,2 is a detailed configuration diagram of a key signal processing circuit according to the present invention;

도 3은 본 발명에 의한 키신호 처리방법을 보인 흐름도.3 is a flow chart showing a key signal processing method according to the present invention.

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

10 : 데이터 인식부 20 : 데이터 검출부10: data recognition unit 20: data detection unit

30 : 연속키 인식부 40 : 병렬 처리부30: continuous key recognition unit 40: parallel processing unit

50 : 출력 요구부 60 : 마이크로 프로세서50: output request unit 60: microprocessor

이하, 첨부된 도면을 참고하여 본 발명에 의한 키신호 처리회로의 구성과 동작을 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail the configuration and operation of the key signal processing circuit according to the present invention.

도 1은 본 발명에 의한 키신호 처리회로의 블록 구성도로서, 입력되는 키신호가 리모콘으로부터 출력되는 키 데이터인지를 판단하는 데이터 인식부(10)와, 상기 데이터 인식부(10)에서 리모콘의 키 데이터가 입력되고 있음을 판단하는 경우 키 데이터를 반전하여 반전된 키 데이터의 하이 구간을 카운트함으로써 각각 "0"과 "1"의 키 데이터를 검출하는 데이터 검출부(20)와, 리모콘으로부터 출력되는 키 데이터가 연속 키 데이터인지를 판단하는 연속키 인식부(30)와, 상기 데이터 검출부(20)에서 검출된 총 32비트의 키 데이터를 3개의 8비트 D-플립플롭과 1개의 9비트 D-플립플롭에 쉬프트시켜 래치하는 병렬 처리부(40)와, 상기 연속키 인식부(30)에서 입력되는 키 데이터가 연속 키 데이터임을 판단하거나 또는 상기 병렬 처리부(40)의 D-플립플롭에 키 데이터가 모두 래치되는 경우 마이크로 프로세서가 키 데이터를 엑세스할 수 있도록 인터럽트 신호를 출력하는 출력 요구부(50)와, 상기 출력 요구부(50)에서 출력되는 인터럽트 신호에 따라 어드레스 신호를 출력하여 상기 병렬 처리부(40)의 D-플립플롭에 래치된 총 32비트의 키 데이터를 8비트씩 병렬로 엑세스한 후 키 데이터가 단속키인지 연속키인지 판단하여 해당하는 키 데이터 처리를 수행하는 마이크로 프로세서(60)로 구성된다.1 is a block diagram of a key signal processing circuit according to an embodiment of the present invention. The data recognition unit 10 determines whether an input key signal is key data output from a remote controller, and the data recognition unit 10 of the remote controller. If it is determined that the key data is being input, the data detection unit 20 which detects key data of "0" and "1" by inverting the key data and counting the high section of the inverted key data is output from the remote controller. A continuous key recognition unit 30 that determines whether the key data is continuous key data, and a total of 32 bits of key data detected by the data detector 20 include three 8-bit D-flip flops and one 9-bit D-. The parallel processing unit 40 shifts and latches the flip-flop, and the key data input from the continuous key recognition unit 30 is determined to be continuous key data, or the key data is stored in the D-flip flop of the parallel processing unit 40.In the case of two latches, the output request unit 50 outputs an interrupt signal so that the microprocessor can access the key data, and outputs an address signal according to the interrupt signal output from the output request unit 50, thereby outputting the parallel processing unit ( The microprocessor 60 accesses a total of 32 bits of key data latched in the D-flip-flop in parallel by 8 bits and then determines whether the key data is an intermittent key or a continuous key, and performs the corresponding key data processing. It is composed.

도 2는 상기와 같이 구성된 본 발명의 키신호 처리회로의 상세한 회로도로서, 상기 데이터 인식부(10)는 1MHz의 기준클럭을 100분주하는 듀얼 카운터(Dual Counter)(11)와, 상기 듀얼 카운터(11)에서 100분주된 클럭을 다시 4분주하여 400분주된 2.5KHz의 클럭을 출력하는 D-플립플롭(Flip Flop)(12)과, 상기 D-플립플롭(12)의 2.5KHz의 클럭에 따라 리모콘의 키 데이터 입력시 하이(High) 구간인 키 데이터의 리더 코드 시간을 카운트하는 카운터(13)와, 상기 카운터(13)에서 9ms인 키 데이터의 리더 코드 시간을 카운트함에 따라 리모콘의 키 데이터임을 인식하는 경우 기세팅된 로우 출력을 하이로 반전하는 D-플립플롭(14)과, 6.144MHz의 기준클럭을 2000분주하여 데이터 검출부(20)내 카운터(22)에 3.072KHz의 클럭을 공급하는 듀얼 카운터(15,16)와, 연속키 인식부(30)의 출력신호에 따라 상기 D-플립플롭(12)의 클럭을 공급하는 듀얼 카운터(17)로 구성된다.2 is a detailed circuit diagram of the key signal processing circuit of the present invention configured as described above, wherein the data recognizing unit 10 includes a dual counter 11 for dividing a reference clock of 1 MHz by 100 and a dual counter ( In step 11), the 100-divided clock is further divided by 4 to output a 400-kHz divided 2.5KHz clock, and according to the 2.5-KHz clock of the D-flip-flop 12. When the key data of the remote controller is input, the counter 13 counts the reader code time of the key data which is a high section, and the counter code of the key data of the remote controller is counted by counting the reader code time of the key data of 9 ms. When recognizing, the D-flip-flop 14 which inverts the preset low output to high and the dual clock which supplies a 3.072 KHz clock to the counter 22 in the data detector 20 by dispensing a reference clock of 6.144 MHz in 2000. According to the output signal of the counter (15, 16) and the continuous key recognition unit 30 It consists of a dual counter 17 which supplies the clock of the D-flip flop 12.

상기 데이터 검출부(20)는 리모콘으로부터 출력되는 키 데이터를 반전하여 입력하는 인버터(Inverter)(21)와, 상기 데이터 인식부(10)의 D-플립플롭(14)에서 하이신호가 출력되는 경우 상기 인버터(21)에 의해 반전 입력된 키 데이터의 하이 구간을 카운트하여 각각 "0" 또는 "1"의 키 데이터를 검출하는 카운터(22)로 구성된다.When the high signal is output from the inverter 21 for inverting and inputting key data output from the remote controller and the D-flip flop 14 of the data recognition unit 10, the data detector 20 The counter 22 is configured to count a high section of the key data inverted and input by the inverter 21 and detect key data of "0" or "1", respectively.

상기 연속키 인식부(30)는 상기 데이터 인식부(10)의 D-플립플롭(14)에서 하이신호가 출력되는 경우 상기 인버터(21)에 의해 반전 입력된 키 데이터의 하이 구간을 카운트하여 40ms 이상인 경우 기세팅된 로우 출력을 하이로 반전하는 카운터(31)와, 상기 카운터(31)에서 출력되는 하이신호와 리모콘의 키 데이터를 입력하여 다음 키 데이터가 연속키가 아닌 경우 상기 데이터 인식부(10)의 듀얼 카운터(17)를 클리어(Clear)하여 상기 카운터(31)의 동작을 중지시키는 연속키 판별부(32)로 구성된다.When the high signal is output from the D-flip flop 14 of the data recognizing unit 10, the continuous key recognizing unit 30 counts a high section of the key data inverted and input by the inverter 21 to 40 ms. In case of abnormality, the counter 31 which inverts the preset low output to high, and the high signal output from the counter 31 and the key data of the remote controller are input, and when the next key data is not a continuous key, the data recognition unit ( It consists of a continuous key discriminating unit 32 for clearing the dual counter 17 of 10) and stopping the operation of the counter 31.

상기 병렬 처리부(40)는 입력되는 32비트의 키 데이터에 의해 상기 데이터 검출부(20)의 카운터(22)에서 검출한 직렬의 키 데이터를 순차적으로 쉬프트하여 래치하는 직렬 연결된 3개의 8비트 D-플립플롭(41∼43)과, 최초 검출한 하이의 키 데이터를 마지막까지 쉬프트하여 로우로 기세팅된 출력을 하이로 반전하여 상기 출력 요구부(50)에 출력하는 9비트 D-플립플롭(44)으로 구성된다.The parallel processor 40 sequentially shifts and latches the serial key data detected by the counter 22 of the data detector 20 based on the input 32-bit key data. 9-bit D-flip flops 44 for shifting the flops 41 to 43 and the first detected high key data to the last, inverting the low preset output to high and outputting the output to the output request unit 50. It consists of.

마지막으로, 상기 출력 요구부(50)는 상기 연속키 인식부(30)의 카운터(31)에서 출력되는 하이신호 또는 상기 병렬 처리부(40)의 9비트 D-플립플롭(44)에서 출력되는 하이신호에 따라 상기 마이크로 프로세서(60)로 인터럽트 신호를 출력하여 마이크로 프로세서(60)가 상기 D-플립플롭(41∼44)에 래치된 총 32비트의 키 데이터를 8비트씩 4회 엑세스하도록 하는 인터럽트 발생부(51)로 구성된다.Finally, the output request unit 50 is a high signal output from the counter 31 of the continuous key recognition unit 30 or a high signal output from the 9-bit D-flip flop 44 of the parallel processor 40. An interrupt signal is output to the microprocessor 60 in accordance with the signal so that the microprocessor 60 can access the total 32 bits of key data latched in the D-flip flops 41 to 44 four times by eight bits. It is comprised by the generating part 51.

상기와 같이 구성된 키신호 처리회로의 동작을 도 3의 흐름도를 참조하여 설명하면 다음과 같다.The operation of the key signal processing circuit configured as described above will be described with reference to the flowchart of FIG. 3.

먼저, 데이터 인식부(10)의 카운터(13)에서는 키 데이터를 입력하여(S1), 듀얼 카운터(11)와 D-플립플롭(12)에 의해 공급되는 2.5KHz 클럭에 따라 키 데이터가 리모콘으로부터 출력되는 키 데이터인지를 판단한다(S2).First, the counter 13 of the data recognition unit 10 inputs key data (S1), and the key data is received from the remote controller according to the 2.5KHz clock supplied by the dual counter 11 and the D-flip-flop 12. It is determined whether the key data is output (S2).

여기서, 리모콘으로부터 출력되는 키 데이터는 키 데이터가 출력되고 있다는 것을 알리기 위한 코드로서 항상 9ms의 하이 구간을 유지하는 리더 코드(Leader Code)와, 사용자가 지정한 키 데이터인 16비트(Bit)의 커스텀 코드(Custom Code)와, 해당 명령에 따른 키 데이터인 16비트의 데이터 코드(Data Code) 및 하나의 키 데이터의 종료를 알리는 1비트의 스탑(Stop) 비트로 총 33비트로 구성되어 있어, 상기 카운터(13)를 통해 키 데이터의 리더 코드의 하이 구간을 카운트하여 현재 입력되는 키 데이터가 리모콘의 키 데이터인지를 확인하게 된다.Here, the key data output from the remote controller is a code for notifying that the key data is being output, a leader code which always maintains a high section of 9 ms, and a 16-bit custom code that is key data specified by the user. (Custom Code), a 16-bit Data Code that is key data according to the corresponding instruction, and a 1-bit Stop bit that informs the end of one key data. The high interval of the reader code of the key data is counted to determine whether the currently input key data is the key data of the remote controller.

즉, 상기 리더 코드는 항상 9ms의 하이 구간을 유지하고 있므로, 상기 카운터(13)에서 상기 리더 코드의 하이 구간을 카운트하여 최소 6ms이상으로 9ms인 경우에는 리모콘으로부터 출력되는 키 데이터임을 인식하도록 하고, 카운트된 하이 구간이 6ms이하인 경우에는 노이즈 신호로 판단하여 이후 키 데이터의 검출 동작을 수행하지 않도록 한다.That is, since the reader code always maintains a high section of 9 ms, the counter 13 counts the high section of the reader code to recognize that the key data is output from the remote controller when the reader code is at least 6 ms and 9 ms. If the counted high interval is less than 6 ms, the signal is determined to be a noise signal so that subsequent key data detection is not performed.

이때, 상기 데이터 인식부(10)의 카운터(13), 즉 범용 칩인 74161은 1MHz의 기준클럭을 400분주한 듀얼 카운터(11)와 D-플립플롭(12)에서 공급되는 2.5KHz의 클럭에 따라 라이징 에지(Rising Edge)시 리더 코드의 카운트를 시작하여 리더 코드의 하이 구간을 카운트하게 된다.At this time, the counter 13 of the data recognizing unit 10, that is, the general-purpose chip 74161 according to the clock of 2.5KHz supplied from the dual counter 11 and the D-flip-flop 12 that divide the 400-MHz clock of 1 MHz. At the rising edge, the leader code starts to count and the high section of the reader code is counted.

위와 같이, 상기 데이터 인식부(10)를 통해 입력되는 키 데이터가 리모콘으로부터 출력되는 키 데이터임을 확인하게 되면, 연속키 인식부(30)의 카운터(31)와 연속키 판별부(32)를 통해 리모콘의 키 데이터가 연속키인지를 판단한다(S3).As described above, when it is confirmed that the key data input through the data recognition unit 10 is the key data output from the remote controller, through the counter 31 and the continuous key determination unit 32 of the continuous key recognition unit 30. It is determined whether the key data of the remote controller is a continuous key (S3).

상기 단계(S2,S3)에서 리모콘의 키 데이터가 연속키가 아닌 단속키임을 판단하게 되면, 9ms의 리더 코드를 카운트한 상기 데이터 인식부(10)의 카운터(13)의 RCO단자에서 클럭이 출력되고, 이 출력되는 클럭에 의해 초기 출력값이 로우로 기세팅된 D-플립플롭(14)의 출력이 하이로 반전되면서, 이 하이신호에 의해 데이터 검출부(20)의 카운터(22)가 동작하여 인버터(21)를 통해 반전입력되는 키 데이터의 키값을 판별한다.When it is determined in step S2 and S3 that the key data of the remote controller is an intermittent key instead of a continuous key, a clock is output from the RCO terminal of the counter 13 of the data recognition unit 10 that has counted a 9 ms reader code. The output of the D-flip-flop 14 whose initial output value is set low by the output clock is inverted to high, and the counter 22 of the data detector 20 is operated by the high signal. The key value of the key data inverted and input through 21 is discriminated.

이때, 상기 단속키는 키를 한 번 눌렀을 때의 키신호를 말하고, 연속키는 스크롤 키와 같이 키를 계속해서 누르는 경우에 발생하는 키신호를 말한다.In this case, the intermittent key refers to a key signal when the key is pressed once, and the continuous key refers to a key signal generated when the key is continuously pressed, such as a scroll key.

즉, 상기 데이터 검출부(20)의 인버터(21)를 통해 입력되는 키 데이터가 반전되면, 카운터(22)를 통해 상기 반전된 키 데이터의 하이 구간을 카운트하여 "0"의 키 데이터와 "1"의 키 데이터를 각각 검출한다(S4).That is, when the key data input through the inverter 21 of the data detector 20 is inverted, the high period of the inverted key data is counted through the counter 22 so as to count the key data of "0" and "1". Key data is detected (S4).

이때, 키 데이터가 "0"인 경우에는 하나의 펄스가 1.125ms이고, 키 데이터가 "1"인 경우에는 하나의 펄스가 2.25ms로, 하이 구간이 모두 0.56ms로 동일한 반면 로우 구간은 각각 0.565ms와 1.96ms로 서로 다른 값을 갖는다.In this case, when the key data is "0", one pulse is 1.125 ms, and when the key data is "1", one pulse is 2.25 ms and the high period is 0.56 ms, while the low period is 0.565. ms and 1.96ms have different values.

이에 따라, 본 발명에서는 반전된 키 데이터의 하이 구간을 카운트하여 키 데이터값을 판별하게 되며, 특히 기준값으로 키 데이터의 하이 구간이 1.8ms이하이면 "0"으로 인식하고, 그 이상이면 "1"로 인식하게 된다.Accordingly, in the present invention, the high interval of the inverted key data is counted to determine the key data value. In particular, if the high interval of the key data is 1.8 ms or less, it is recognized as "0". Will be recognized.

이후, 상기 데이터 검출부(20)의 카운터(22)에서 출력되는 키 데이터는 병렬 처리부(40)의 D-플립플롭(41)에 입력되어, 입력되는 32비트의 키 데이터에 따라 병렬 처리부(40)의 D-플립플롭(41∼44)이 쉬프트 동작을 수행하여 상기 데이터 검출부(20)의 카운터(22)에서 출력되는 32비트의 "0"과 "1"의 키 데이터를 8비트씩 각각 래치한다(S5).Subsequently, the key data output from the counter 22 of the data detector 20 is input to the D-flip-flop 41 of the parallel processor 40, and the parallel processor 40 according to the input 32-bit key data. D-flip flops 41 to 44 perform a shift operation to latch the 32-bit " 0 " and " 1 " key data output from the counter 22 of the data detector 20 by 8 bits, respectively. (S5).

그리고 나서, 상기 단계(S3)에서 연속키 인식부(30)의 카운터(31)와 연속키 판별부(32)를 통해 입력되는 키 데이터가 연속키로 확인되거나 상기 병렬 처리부(40)에 32비트의 데이터가 모두 래치되면, 출력 요구부(50)의 인터럽트 발생부(51)에서는 병렬 처리부(40)에 데이터가 래치되었음을 알리는 인터럽트 신호를 마이크로 프로세서(60)로 출력한다(S6).Then, in step S3, the key data inputted through the counter 31 and the continuous key discriminating unit 32 of the continuous key recognition unit 30 is confirmed as the continuous key or 32-bit is transmitted to the parallel processing unit 40. When all the data is latched, the interrupt generator 51 of the output request unit 50 outputs an interrupt signal to the microprocessor 60 informing that the data is latched to the parallel processor 40 (S6).

즉, 상기 연속키 인식부(30)의 카운터(31)에서 입력되는 키 데이터의 리더 코드를 인식하고 나서, 반전입력된 키 데이터의 하이 구간이 40ms이상 지속되는 경우를 카운트하게 되면 로우로 기세팅된 카운터(31)의 출력을 하이로 반전하여, 연속키 판별부(32)가 이 반전된 하이신호와 입력되는 키 데이터를 통해 연속키가 계속되는 지를 판단하여 다음 키 데이터가 연속키가 아닌 경우 상기 데이터 인식부(10)의 듀얼 카운터(17)를 클리어하여 상기 카운터(31)의 동작을 중지시킨다.That is, after recognizing the reader code of the key data inputted from the counter 31 of the continuous key recognizing unit 30 and counting the case where the high section of the inverted input key data lasts 40 ms or more, it sets to low. When the output of the counter 31 is reversed to high, the continuous key discriminating unit 32 determines whether the continuous key continues through the inverted high signal and the input key data, and when the next key data is not the continuous key, The dual counter 17 of the data recognition unit 10 is cleared to stop the operation of the counter 31.

이어, 연속키를 인식함에 따라 출력되는 상기 카운터(31)의 하이신호 또는 병렬 처리부(40)의 9비트 D-플립플롭(44)의 로우로 기셋팅된 출력단자에서 출력되는 하이신호, 즉 최초 검출된 하이의 키 데이터가 마지막까지 쉬프트되어 출력되는 9비트 D-플립플롭(44)의 하이신호에 따라 인터럽트 발생부(51)는 인터럽트 신호를 발생하여 마이크로 프로세서(60)로 출력하게 된다.Subsequently, the high signal output from the output terminal preset to the high signal of the counter 31 or the low of the 9-bit D-flip-flop 44 of the parallel processor 40 is outputted as the continuous key is recognized. The interrupt generator 51 generates an interrupt signal and outputs the interrupt signal to the microprocessor 60 according to the high signal of the 9-bit D-flip-flop 44 that is detected by shifting the high key data to the last.

이에 따라, 마이크로 프로세서(60)에서는 상기 병렬 처리부(40)의 D-플립플롭(41∼44)에 래치된 32비트 데이터를 8비트씩 4회 엑세스하여 32비트의 키 데이터를 모두 엑세스하고(S7), 이때 키 데이터의 키값을 확인하여 키 데이터가 단속키인지 아니면 연속키인지를 판단하여(S8), 단속키라면 그에 해당하는 신호처리를 수행하도록 하고(S9), 연속키라면 그 전에 엑세스한 키 데이터에 의한 신호처리를 그대로 반복 수행하도록 한다(S10).Accordingly, the microprocessor 60 accesses the 32-bit data latched in the D-flip flops 41 to 44 of the parallel processing unit 40 four times by eight bits to access all the 32-bit key data (S7). In this case, the key value of the key data is checked to determine whether the key data is an intermittent key or a continuous key (S8). If the intermittent key is performed, the corresponding signal processing is performed (S9). The signal processing by the key data is repeatedly performed as it is (S10).

이상, 상기 설명에서와 같이 본 발명은 간단한 인터페이스 회로를 통해 직렬 데이터를 병렬 데이터로 변환함에 따라 마이크로 프로세서의 부하를 줄일 수 있게 되고, 별도의 마이크로 컴퓨터와 외부 디바이스가 필요없어 복잡한 신호 처리과정이 필요없게 됨은 물론 로직을 EPLD화함으로써 원가 절감의 효과가 있다.As described above, the present invention can reduce the load of the microprocessor by converting serial data into parallel data through a simple interface circuit, and requires a complicated signal processing process because no separate microcomputer and external device are required. Of course, there is a cost reduction effect by EPLDing logic.

Claims (7)

마이크로 프로세서와 리모콘간의 키 데이터 처리회로에 있어서,In the key data processing circuit between the microprocessor and the remote control, 입력되는 키신호가 리모콘으로부터 출력되는 키 데이터인지를 판단하는 데이터 인식부(10)와, 상기 데이터 인식부(10)에서 리모콘의 키 데이터가 입력되고 있음을 판단하는 경우 키 데이터를 반전하여 반전된 키 데이터의 하이 구간을 카운트함으로써 각각 "0"과 "1"의 키 데이터를 검출하는 데이터 검출부(20)와, 리모콘으로부터 출력되는 키 데이터가 연속 키 데이터인지를 판단하는 연속키 인식부(30)와, 상기 데이터 검출부(20)에서 검출된 총 32비트의 키 데이터를 3개의 8비트 D-플립플롭과 1개의 9비트 D-플립플롭에 쉬프트시켜 래치하는 병렬 처리부(40)와, 상기 연속키 인식부(30)에서 입력되는 키 데이터가 연속 키 데이터임을 판단하거나 또는 상기 병렬 처리부(40)의 D-플립플롭에 키 데이터가 모두 래치되는 경우 마이크로 프로세서가 키 데이터를 엑세스할 수 있도록 인터럽트 신호를 출력하는 출력 요구부(50)와, 상기 출력 요구부(50)에서 출력되는 인터럽트 신호에 따라 어드레스 신호를 출력하여 상기 병렬 처리부(40)의 D-플립플롭에 래치된 총 32비트의 키 데이터를 8비트씩 병렬로 엑세스한 후 키 데이터가 단속키인지 연속키인지 판단하여 해당하는 키 데이터 처리를 수행하는 마이크로 프로세서(60)로 구성되는 것을 특징으로 하는 키신호 처리회로.The data recognizing unit 10 determines whether the input key signal is the key data output from the remote controller, and when the data recognizing unit 10 determines that the key data of the remote controller is input, the key data is inverted and inverted. A data detection unit 20 for detecting key data of "0" and "1" by counting the high section of the key data, and a continuous key recognition unit 30 for determining whether the key data output from the remote controller is continuous key data; And a parallel processor 40 for shifting and latching a total of 32 bits of key data detected by the data detector 20 into three 8-bit D-flip flops and one 9-bit D-flip flop, and the continuous key. The microprocessor accesses the key data when it is determined that the key data input from the recognition unit 30 is continuous key data, or when all of the key data is latched in the D-flip flop of the parallel processor 40. An output request unit 50 for outputting an interrupt signal, and an address signal according to the interrupt signal output from the output request unit 50, and the total latch latched to the D-flip-flop of the parallel processor 40; And a microprocessor (60) for accessing 32-bit key data in parallel by 8 bits and determining whether the key data is an intermittent key or a continuous key to perform corresponding key data processing. 제1항에 있어서, 상기 데이터 인식부(10)는 1MHz의 기준클럭을 100분주하는 듀얼 카운터(11)와, 상기 듀얼 카운터(11)에서 100분주된 클럭을 다시 4분주하여 400분주된 2.5KHz의 클럭을 출력하는 D-플립플롭(12)과, 상기 D-플립플롭(12)의 2.5KHz의 클럭에 따라 리모콘의 키 데이터의 리더 코드 시간을 카운트하는 카운터(13)와, 상기 카운터(13)에서 키 데이터의 리더 코드 시간을 카운트함에 따라 리모콘의 키 데이터임을 인식하는 경우 기세팅된 로우 출력을 하이로 반전하는 D-플립플롭(14)과, 6.144MHz의 기준클럭을 2000분주하여 데이터 검출부(20)내 카운터(22)에 3.072KHz의 클럭을 공급하는 듀얼 카운터(15,16)와, 연속키 인식부(30)의 출력신호에 따라 상기 D-플립플롭(12)의 클럭을 공급하는 듀얼 카운터(17)로 구성되는 것을 특징으로 하는 키신호 처리회로.The method of claim 1, wherein the data recognition unit 10 is divided into a dual counter 11 for dividing a reference clock of 1 MHz 100 and the clock divided by 100 from the dual counter 11 again divided by 400 2.5KHz A D-flip-flop 12 for outputting a clock of the counter, a counter 13 for counting the reader code time of key data of the remote controller according to the 2.5-KHz clock of the D-flip-flop 12, and the counter 13 In the case of recognizing that the key data of the remote controller is counted as the reader code time of the key data, the D-flip-flop 14 which inverts the preset low output to high and divides the reference clock of 6.144 MHz into 2000 and detects the data. Dual counters 15 and 16 for supplying a clock of 3.072 KHz to the counter 22 in (20), and for supplying the clock of the D-flip flop 12 according to the output signal of the continuous key recognition unit 30. Key signal processing circuit, characterized in that consisting of a dual counter (17). 제1항에 있어서, 상기 데이터 검출부(20)는 리모콘으로부터 출력되는 키 데이터를 반전하여 입력하는 인버터(21)와, 상기 데이터 인식부(10)의 D-플립플롭(14)에서 하이신호가 출력되는 경우 상기 인버터(21)에 의해 반전 입력된 키 데이터의 하이 구간을 카운트하여 각각 "0" 또는 "1"의 키 데이터를 검출하는 카운터(22)로 구성되는 것을 특징으로 하는 키신호 처리회로.2. The data detection unit 20 of claim 1, wherein the data detector 20 outputs a high signal from the inverter 21 for inverting and inputting key data output from the remote controller and the D-flip flop 14 of the data recognition unit 10. And a counter (22) for counting a high section of the key data inverted and input by the inverter (21) and detecting key data of "0" or "1", respectively. 제1항에 있어서, 상기 연속키 인식부(30)는 상기 데이터 인식부(10)의 D-플립플롭(14)에서 하이신호가 출력되는 경우 상기 인버터(21)에 의해 반전 입력된 키 데이터의 하이 구간을 카운트하여 40ms 이상인 경우 기세팅된 로우 출력을 하이로 반전하는 카운터(31)와, 상기 카운터(31)에서 출력되는 하이신호와 리모콘의 키 데이터를 입력하여 다음 키 데이터가 연속키가 아닌 경우 상기 데이터 인식부(10)의 듀얼 카운터(17)를 클리어하여 상기 카운터(31)의 동작을 중지시키는 연속키 판별부(32)로 구성되는 것을 특징으로 하는 키신호 처리회로.According to claim 1, wherein the continuous key recognition unit 30 of the key data is inverted by the inverter 21 when the high signal is output from the D-flip flop 14 of the data recognition unit 10 When the high period is counted and is 40 ms or more, the counter 31 for inverting the preset low output to high and the high signal output from the counter 31 and the key data of the remote controller are input so that the next key data is not a continuous key. And a continuous key discriminating unit (32) for clearing the dual counter (17) of the data recognizing unit (10) to stop the operation of the counter (31). 제1항에 있어서, 상기 병렬 처리부(40)는 입력되는 32비트의 키 데이터에 의해 상기 데이터 검출부(20)의 카운터(22)에서 검출한 직렬의 키 데이터를 순차적으로 쉬프트하여 래치하는 직렬 연결된 3개의 8비트 D-플립플롭(41∼43)과, 최초 검출한 하이의 키 데이터를 마지막까지 쉬프트하여 로우로 기세팅된 출력을 하이로 반전하여 상기 출력 요구부(50)에 출력하는 9비트 D-플립플롭(44)으로 구성되는 것을 특징으로 하는 키신호 처리회로.The serial connection unit 3 of claim 1, wherein the parallel processor 40 sequentially shifts and latches serial key data detected by the counter 22 of the data detector 20 by 32-bit key data input. 8-bit D-flip-flops 41 to 43, and a 9-bit D for shifting the first detected high key data to the last to invert the output set to low to the output request unit 50. A key signal processing circuit comprising: a flip-flop (44). 제1항에 있어서, 상기 출력 요구부(50)는 상기 연속키 인식부(30)의 카운터(31)에서 출력되는 하이신호 또는 상기 병렬 처리부(40)의 9비트 D-플립플롭(44)에서 출력되는 하이신호에 따라 상기 마이크로 프로세서(60)로 인터럽트 신호를 출력하여 마이크로 프로세서(60)가 상기 D-플립플롭(41∼44)에 래치된 총 32비트의 키 데이터를 8비트씩 4회 엑세스하도록 하는 인터럽트 발생부(51)로 구성되는 것을 특징으로 하는 키신호 처리회로.The high-output signal output from the counter 31 of the continuous key recognition unit 30 or the 9-bit D-flip flop 44 of the parallel processing unit 40. An interrupt signal is output to the microprocessor 60 according to the high signal output so that the microprocessor 60 accesses a total of 32 bits of key data latched in the D-flip flops 41 to 44 four times by eight bits. A key signal processing circuit comprising an interrupt generating unit (51). 마이크로 프로세서와 리모콘간의 키 데이터 처리방법에 있어서,In the key data processing method between the microprocessor and the remote control, 입력되는 키 데이터가 리모콘으로부터 출력되는 키 데이터인지를 확인하는 제1단계와, 상기 제1단계에서 리모콘으로부터 출력되는 키 데이터임을 확인하는 경우 키 데이터가 단속키인지 아니면 연속키인지를 판단하는 제2단계와, 상기 제2단계에서 키 데이터가 단속키라면 반전입력되는 키 데이터의 하이 구간을 카운트하여 "0"의키 데이터와 "1"의 키 데이터를 검출하는 제3단계와, 상기 제3단계에서 검출된 "0"과 "1"의 키 데이터를 32비트의 D-플립플롭에 래치하는 제4단계와, 상기 제2단계에서 키 데이터가 연속키로 확인되거나 상기 제4단계에서 키 데이터가 래치되는 경우 인터럽트 신호를 발생하는 제5단계와, 상기 제5단계에서 발생된 인터럽트 신호에 따라 상기 제4단계에서 래치된 키 데이터를 8비트씩 4회 엑세스하여 32비트 키 데이터를 엑세스함으로써 신호처리를 수행하는 제5단계와, 상기 제5단계에서 엑세스한 키 데이터가 연속키인 경우 그 전에 엑세스한 키 데이터에 의해 신호처리를 반복 수행하는 제6단계로 이루어지는 것을 특징으로 하는 키신호 처리방법.A first step of checking whether the input key data is the key data output from the remote controller; and a second step of determining whether the key data is the intermittent key or the continuous key when the first step is to confirm that the key data is output from the remote controller. And a third step of detecting key data of "0" and key data of "1" by counting a high section of the inverted input key data if the key data is an intermittent key in the second step; A fourth step of latching the detected key data of " 0 " and " 1 " in a 32-bit D-flip-flop; and in the second step, the key data is identified as a continuous key or the key data is latched in the fourth step. In this case, accessing the 32-bit key data is performed by accessing the key data latched in the fourth step four times by eight bits four times according to the fifth step of generating an interrupt signal and the interrupt signal generated in the fifth step. And a fifth step of performing signal processing, and a sixth step of repeatedly performing signal processing based on previously accessed key data when the key data accessed in the fifth step is a continuous key. Treatment method.
KR1019980010347A 1998-03-25 1998-03-25 Key signal processing circuit and method KR19990075869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980010347A KR19990075869A (en) 1998-03-25 1998-03-25 Key signal processing circuit and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980010347A KR19990075869A (en) 1998-03-25 1998-03-25 Key signal processing circuit and method

Publications (1)

Publication Number Publication Date
KR19990075869A true KR19990075869A (en) 1999-10-15

Family

ID=65860226

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980010347A KR19990075869A (en) 1998-03-25 1998-03-25 Key signal processing circuit and method

Country Status (1)

Country Link
KR (1) KR19990075869A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100594183B1 (en) * 1999-07-09 2006-06-28 주식회사 현대오토넷 Remote Key Data Interface Method in Car Navigation System

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100594183B1 (en) * 1999-07-09 2006-06-28 주식회사 현대오토넷 Remote Key Data Interface Method in Car Navigation System

Similar Documents

Publication Publication Date Title
US5436853A (en) Remote control signal processing circuit for a microcomputer
EP0735709A2 (en) Synchronizing circuit for use in a digital audio signal compressing/expanding system
KR19990075869A (en) Key signal processing circuit and method
US5694336A (en) Detection of improper CPU operation from lap time pulses and count of executed significant steps
US7089437B2 (en) Apparatus for determining power consumed by a bus of a digital signal processor using counted number of logic state transitions on bus
US5874839A (en) Timer apparatus
KR100594183B1 (en) Remote Key Data Interface Method in Car Navigation System
US6931075B2 (en) Event detection with a digital processor
JPH07334392A (en) Resetting device and abnormal operation detector
US7149274B2 (en) Addressing type coin-dropping detector circuit
JP3894787B2 (en) Receiver circuit
KR100202170B1 (en) Receiving method and its apparatus of data for serial interface
US20050144340A1 (en) Remote control receiving apparatus
CN118259068A (en) Voltage detection circuit, analog comparator and chip
KR970032239A (en) Remote control signal receiver and code data detection method
KR100209715B1 (en) Interrupt generating circuit
JP2553687B2 (en) Remote control receiver circuit
KR200280669Y1 (en) interrupt equipement having an error detecting function
JP2001356917A (en) Pulse judging device
JPS63164554A (en) Automatic recognizing system for data speed
KR20000014979U (en) Digital frequency detector
KR930008687B1 (en) Cpu. runaway detecting circuit
JPH09130884A (en) Remote control signal receiver
JPH0514443A (en) Consecutive pattern number detection circuit
KR0136346B1 (en) Data input circuit

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
N231 Notification of change of applicant
E601 Decision to refuse application