KR100209553B1 - A circuit for testing key input - Google Patents

A circuit for testing key input Download PDF

Info

Publication number
KR100209553B1
KR100209553B1 KR1019960007407A KR19960007407A KR100209553B1 KR 100209553 B1 KR100209553 B1 KR 100209553B1 KR 1019960007407 A KR1019960007407 A KR 1019960007407A KR 19960007407 A KR19960007407 A KR 19960007407A KR 100209553 B1 KR100209553 B1 KR 100209553B1
Authority
KR
South Korea
Prior art keywords
input
key
key input
signal
microprocessor
Prior art date
Application number
KR1019960007407A
Other languages
Korean (ko)
Other versions
KR970066814A (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 KR1019960007407A priority Critical patent/KR100209553B1/en
Publication of KR970066814A publication Critical patent/KR970066814A/en
Application granted granted Critical
Publication of KR100209553B1 publication Critical patent/KR100209553B1/en

Links

Classifications

    • 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/20Dynamic coding, i.e. by key scanning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • 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/02Details
    • H03M11/04Coding of multifunction keys
    • H03M11/06Coding of multifunction keys by operating the multifunction key itself in different ways

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

본 발명은 마이크로 프로세서로 입력되는 키입력 포트수를 감소시킬 수 있도록 된 키입력 검색회로에 관한 것으로, 입력되는 키에 따라 각기 다른 전압값을 출력하는 키입력수단과, 상기 키입력수단을 통해 입력되는 전압값을 근거로 키입력에 대응되는 신호를 출력하는 키신호 발생수단, 상기 키신호 발생수단으로부터 입력되는 키신호를 인식한 후 이를 근거로 제어를 실행하는 제어수단을 포함하여 구성된 것을 특징으로 한다.The present invention relates to a key input search circuit which can reduce the number of key input ports input to a microprocessor, comprising: key input means for outputting different voltage values according to input keys, and input through the key input means A key signal generating means for outputting a signal corresponding to a key input based on the voltage value, and a control means for recognizing a key signal input from the key signal generating means and executing control based on the key signal. do.

Description

키입력 검색회로Key input search circuit

제1도는 일반적인 키입력 검색회로를 나타낸 구성도.1 is a block diagram showing a general key input search circuit.

제2도는 본 발명의 실시예 1에 따른 키입력 검색회로를 나타낸 구성도.2 is a block diagram showing a key input searching circuit according to Embodiment 1 of the present invention.

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

1, 23 : 마이크로 프로세서 2 : 매트릭스회로1, 23: microprocessor 2: matrix circuit

21 : 키입력부 22 : 키신호 발생부21: key input section 22: key signal generating section

F11∼F83 : 키스위치 R1∼R12 : 저항F11 to F83: Key switches R1 to R12: Resistance

Q1, Q2 : 트랜지스터 E1 : 엔코더Q1, Q2: Transistor E1: Encoder

본 발명은 키입력 검색회로에 관한 것으로, 특히 중앙처리장치의 키입력 검색에 따른 부하를 줄일 수 있도록 된 키입력 검색회로에 관한 것이다.The present invention relates to a key input retrieval circuit, and more particularly, to a key input retrieval circuit that can reduce the load caused by the key input retrieval of the central processing unit.

키패드는 사용자의 입력이 필요한 여러 기기에서 사용자 인터페이스의 필수사항으로서 제1도는 일반적인 키입력장치를 나타낸 구성도로서, 동도면에서 참조번호 1은 다수의 신호출력단자(P01∼P03)와 다수의 입력 단자(P10∼P80)를 갖춘 마이크로 프로세서이다.Keypad is an essential element of the user interface in various devices requiring user input. FIG. 1 is a block diagram showing a general key input device. In the drawing, reference numeral 1 denotes a plurality of signal output terminals P01 to P03 and a plurality of inputs. It is a microprocessor provided with terminals P10 to P80.

또한, 참조번호 2는 매트릭스회로로서, 이 매트릭스회로(2)는 상기 마이크로 프로세서(1)의 신호출력단자(P01∼P03)에 결합된 신호라인과 신호 입력단자(P10∼P80)에 결합된 신호라인이 교차되게 배열되면서 각 교차부분에 기계적인 접점스위치가 설치된 구성으로 되어 있다.Reference numeral 2 denotes a matrix circuit, which has a signal line coupled to the signal output terminals P01 to P03 of the microprocessor 1 and a signal coupled to the signal input terminals P10 to P80. The lines are arranged to cross each other and the mechanical contact switch is installed at each intersection.

즉, 상기한 구성으로 된 키입력장치에 있어서는 사용자가 상기 매트릭스회로(2)에 설치된 접점스위치를 누르게 되면 상기 마이크로 프로세서(1)는 해당 스위치에 대응되는 신호의 스캔을 행하게 된다.That is, in the key input device having the above-described configuration, when the user presses the contact switch installed in the matrix circuit 2, the microprocessor 1 scans a signal corresponding to the switch.

그리고, 상기 마이크로 프로세서는 입출력 신호의 스캔을 통하여 해당 스위치에 대응되는 코드데이터를 근거로 장치의 동작제어를 실행하게 된다.Then, the microprocessor executes the operation control of the device based on the code data corresponding to the switch by scanning the input / output signal.

그런데, 상기한 구성으로 된 키입력장치에 있어서는 제1도에 도시된 바와 같이 24개의 키입력을 위하여 무려 11개의 입출력을 위한 포트가 필요하게 되는 바, 이에 따라 해당 키입력에 따른 스캔을 행함에 있어서 상기 마이크로 프로세서(1)에는 많은 소프트웨어적인 부하가 걸리게 된다.However, in the key input device having the above-described configuration, as shown in FIG. 1, as many as 11 ports for input / output are required for 24 key inputs. Therefore, the microprocessor 1 is subjected to a lot of software load.

즉, 제1도에 도시된 바와 같이 24키의 구성을 8행3열로 구성하였을 경우 출력 3포트(P01∼P03), 입력 8포트(P10∼P80)가 필요하게 되는 바, 예컨대 하나와 출력포트를 스캔하는데 걸리는 주기가 10msec인 경우 3개의 출력포트를 스캔하는데 걸리는 주기는 30msec가 되고, 또한 채터링(chattering)을 피해가기 위하여 서너번 반복 입력하여 같은 데이터가 들어오는 지를 판단하여야 하므로, 하나의 키인식시간은 약 100msec이상이 된다.That is, as shown in FIG. 1, the configuration of 24 keys is 8 rows. In the case of three columns, three output ports (P01 to P03) and eight input ports (P10 to P80) are required. For example, if the interval between scanning one and the output port is 10 msec, it is necessary to scan three output ports. The period is 30msec, and in order to avoid chattering, it is necessary to repeatedly input three or four times to determine whether the same data comes in, so that one key recognition time is about 100msec or more.

이에 따라, 하나의 키인식시간에 소모되는 시간으로 인해 예컨대, 이동단말장치 등의 소형의 기기에서의 중앙처리장치는 무선통신에 관한 일처리가 주가 되야 하기 때문에 키입력에 소모되는 시간은 마이크로 프로세서(1)의 기능을 그 만큼 제한하게 되는 것이다.Accordingly, due to the time spent in one key recognition time, for example, the central processing unit in a small device such as a mobile terminal device must be mainly processed for wireless communication. The function of (1) will be limited by that amount.

이에, 본 발명은 상기한 사정을 감안하여 창출된 것으로서, 중앙처리 장치와 키입력 검색에 따른 부하를 줄일 수 있도록 된 키입력 검색회로를 제공함에 그 목적이 있다.Accordingly, an object of the present invention is to provide a key input retrieval circuit capable of reducing the load caused by the central processing unit and key input retrieval.

상기 목적을 달성하기 위한 본 발명에 따른 키입력 검색회로는 입력되는 키에 따라 각기 다른 전압값을 출력하는 키입력수단과, 상기 키입력 수단을 통해 입력되는 전압값을 근거로 키입력에 대응되는 신호를 출력하는 키신호 발생수단, 상기 키신호 발생수단으로부터 입력되는 키신호를 인식한 후 이를 근거로 제어를 실행하는 제어수단을 포함하여 구성된 것을 특징으로 한다.Key input search circuit according to the present invention for achieving the above object is a key input means for outputting different voltage values according to the input key, and corresponding to the key input based on the voltage value input through the key input means; Key signal generating means for outputting a signal, the control means for recognizing the key signal input from the key signal generating means and then executes the control based on this.

상기한 구성으로 된 본 발명에 의하면, 마이크로 프로세서로 입력되는 키입력의 포트수가 감소하게 되므로 대응되는 키에 따른 스캔을 실행함에 있어서의 부하가 감소함으로써 마이크로 프로세서의 기능향상을 도모할 수 있게 된다.According to the present invention having the above-described configuration, since the number of ports of key inputs input to the microprocessor is reduced, the load of executing the scan according to the corresponding key is reduced, thereby improving the function of the microprocessor.

이하, 도면을 참조하여 본 발명에 따른 실시예를 설명한다.Hereinafter, an embodiment according to the present invention will be described with reference to the drawings.

제2도는 본 발명의 1 실시예에 따른 키입력 검색회로를 나타낸 구성도이다.2 is a block diagram showing a key input search circuit according to an embodiment of the present invention.

제2도에서 참조번호 21은 각 키에 대응되는 서로 다른 전압값을 출력하는 키입력부로서, 이는 8행3열 배열의 행과 열이 교차되는 각 교차 부분에 기계적인 접점스위치(F11∼F83)가 설치된 매트릭스회로와 이 매트릭스회로의 각행의 입력단과 직렬로서 저항(R1∼R8)이 결합되어 있고, 또한 각각의 저항(R1∼R8)은 병렬로 결합되어 입력전압(VCC)을 인가받도록 되어 있다.In FIG. 2, reference numeral 21 denotes a key input unit for outputting different voltage values corresponding to each key. The resistors R1 to R8 are coupled in series with the matrix circuit in which the mechanical contact switches F11 to F83 are provided at each intersection of the rows and columns of the three-column array and the input terminals of the rows of the matrix circuit. Each of the resistors R1 to R8 is coupled in parallel to receive an input voltage VCC.

이어, 참조번호 22는 상기 키입력부(21)로부터 인가되는 키입력에 대응되는 신호를 발생하기 위한 키신호발생부로서, 이는 상기 매트릭스회로의 각각의 행으로부터 입력되는 전압신호를 코딩하기 위한 엔코더(E1)와, 상기 매트릭스회로의 각각의 열에 대하여 출력되는 전압신호를 스위칭하여 출력하는 제1 트랜지스터(Q1), 제2 트랜지스터(Q2) 및, 저항(R9∼R12)으로 구성되어 있다.Next, reference numeral 22 denotes a key signal generator for generating a signal corresponding to a key input applied from the key input unit 21, which is an encoder for coding a voltage signal input from each row of the matrix circuit. E1), a first transistor Q1, a second transistor Q2, and resistors R9 to R12 for switching and outputting a voltage signal output for each column of the matrix circuit.

여기서, 상기 매트릭스회로의 8개의 행으로부터 출력되는 신호가 상기 엔코더(E1)의 8개의 입력포트(A0∼A7)로 각각 반전되어 입력됨과 더불어 코딩된 3개와 신호가 반전되어 이후에 설명할 마이크로 프로세서(23)의 입력포트(Y1∼Y3)로 각각 입력되게 된다.Here, the signals output from the eight rows of the matrix circuit are inverted and input to the eight input ports A0 to A7 of the encoder E1, and the three coded signals are inverted to be described later. Input ports Y1 to Y3 at 23 are respectively input.

또한, 상기 입력전압(VCC)과 접속된 저항(R10, R11)을 통해 인가되는 전압이 각각 제1 트랜지스터(Q1)와 제2 트랜지스터(Q2)의 콜렉터와 접속되고, 접지와 접속된 저항(R12, R13)은 각각 상기 제1 트랜지스터(Q1)와 제2 트랜지스터(Q2)의 베이스와 접속되어 있으며, 제1 및 제2 트랜지스터(Q1,Q2)의 에미터가 또한 접지와 접속되어 있다.In addition, a voltage applied through the resistors R10 and R11 connected to the input voltage VCC is connected to the collectors of the first transistor Q1 and the second transistor Q2, respectively, and is connected to ground and a resistor R12. Are connected to the bases of the first transistor Q1 and the second transistor Q2, respectively, and the emitters of the first and second transistors Q1 and Q2 are also connected to ground.

그리고, 상기 매트릭스회로의 1열의 출력단은 접지와 접속되어 있고, 2열의 출력이 상기 제1트랜지스터(Q1)의 베이스로 입력됨과 더불어 3열의 출력이 상기 제2 트랜지스터(Q2)의 베이스로 입력되고, 제1 및 제2 트랜지스터(Q1,Q2)의 각각의 콜렉터로부터의 출력은 이후에 설명할 마이크로 프로세서(23)의 입력포트(X1, X2)로 입력되게 된다.In addition, an output terminal of one column of the matrix circuit is connected to ground, an output of two columns is input to the base of the first transistor Q1, and an output of three columns is input to the base of the second transistor Q2. The outputs from the respective collectors of the first and second transistors Q1 and Q2 are input to the input ports X1 and X2 of the microprocessor 23 which will be described later.

한편, 참조번호 23은 상기 키신호발생부(22)로부터 입력되는 5개의 신호로부터 입력된 키를 인식한 후 그에 따른 제어를 실행하는 마이크로 프로세서이다.On the other hand, reference numeral 23 denotes a microprocessor that recognizes a key input from five signals input from the key signal generator 22 and executes control according thereto.

이어, 상기 구성으로 된 장치의 동작을 설명한다.Next, the operation of the device having the above configuration will be described.

즉, 상기 입력전압(VCC)이 전압을 통해 각각의 행과 열의 신호라인으로 인가되게 되는 바, 예컨대 F12 즉 1행 2열에 대응되는 키가 눌러졌을 경우에는 F12 키에 대응되는 스위치가 온(ON)됨에 따라 저항(R1)으로 부터 인가되는 전압이 F12 스위치를 통해 제1 트랜지스터(Q1)의 베이스로 소정의 하이레벨신호, 즉 1로서 인가되게 된다. 이에 따라 제1 트랜지스터(Q1)의 콜렉터로부터 소정의 로우레벨신호, 즉 0의 신호가 상기 마이크로 프로세서(23)의 입력포트(X1)로 입력되게 된다.That is, the input voltage VCC is applied to the signal lines of each row and column through the voltage. For example, when a key corresponding to F12, that is, one row and two columns, is pressed, the switch corresponding to the F12 key is turned on. As a result, the voltage applied from the resistor R1 is applied as a predetermined high level signal, that is, 1 to the base of the first transistor Q1 through the F12 switch. Accordingly, a predetermined low level signal, that is, a signal of 0, is input from the collector of the first transistor Q1 to the input port X1 of the microprocessor 23.

따라서, 상기 엔코더(E1)로 행에 대응되는 전압신호 즉, 0111 1111의 신호가 반전된 1000 0000의 신호가 인가되어 0의 신호가 반전된 111의 신호가 상기 마이크로 프로세서(23)의 입력포트(Y3∼Y1)로 입력되게 되고, 열에 대응되는 신호 즉 10의 신호가 상기 마이크로 프로세서(23)의 입력포트(X2, X1)로 입력되게 된다.Therefore, the voltage signal corresponding to the row, that is, the signal of 0 00000 1111 inverted to 1000 0000 is applied to the encoder E1, so that the signal of 111 inverted 0 is input to the input port of the microprocessor 23. Y3 to Y1 are input, and a signal corresponding to a column, that is, a signal of 10, is input to the input ports X2 and X1 of the microprocessor 23.

즉, 상기와 마찬가지로 각각의 키입력에 따라 마이크로 프로세서(23)의 입력포트(Y3∼Y1, X2, X1)로 인가되는 신호를 표로 나타내면 표 1과 같다.That is, as shown in Table 1, signals applied to the input ports Y3 to Y1, X2, and X1 of the microprocessor 23 according to the respective key inputs are shown in Table.

즉, 상기 실시예에 의하면 스위칭 트랜지스터와 엔코더를 통해서 마이크로 프로세서의 입력포트의 수가 감소하게 된다.That is, according to the embodiment, the number of input ports of the microprocessor is reduced through the switching transistor and the encoder.

따라서, 마이크로 프로세서의 입력신호에 대한 스캔을 실행하는데 소모되는 시간이 감소하게 된다.Thus, the time spent performing the scan on the input signal of the microprocessor is reduced.

또한, 본 발명은 상기 실시예에 한정되지 않고 본 발명의 기술적 요지를 벗어나지 않는 범위내에서 다양하게 변형시켜 실시할 수 있다.In addition, this invention is not limited to the said Example, It can implement in a various deformation | transformation in the range which does not deviate from the technical summary of this invention.

이상 설명한 바와 같이, 본 발명에 의하면 중앙처리장치의 키입력 검색에 따른 부하를 줄일 수 있도록 된 키입력 검색회로를 실현할 수 있게 된다.As described above, according to the present invention, it is possible to realize the key input search circuit which can reduce the load caused by the key input search of the central processing unit.

Claims (1)

상호 교차되게 배열된 다수의 행과 열을 구비하고, 상기 각 행은 일단이 전원전압에 결합됨과 더불어 그 다른 단은 키신호발생수단의 엔코더의 각 입력으로서 결합되며, 상기 각 행의 수효를 2N이라 할 때 상기 열은 N개의 수효가 구비되면서 각 행과 열의 교차점에 접점스위치가 배열된 키입력수단과, 상기 키입력수단의 각 행의 신호레벨에 대응하는 데이터를 출력하는 엔코더와, 상기 전원전압과 접지 사이에 결합되면서 상기 키입력수단의 열로부터 출력되는 신호레벨에 따라 각각 온/오프되는 (N-1)개의 스위칭수단을 구비하여 구성됨과 더불어, 상기 N개의 열중 1개는 접지되는 키신호발생수단 및, 상기 엔코더로부터의 입력 데이터와, 상기 전원전압과 각 스위칭수단과의 결합노드의 전위를 근거로 키입력을 판정하는 마이크로 프로세서를 포함하여 구성된 것을 특징으로 하는 키입력 검색회로.And a plurality of rows and columns arranged to cross each other, each row having one end coupled to a power supply voltage and the other end coupled as each input of an encoder of the key signal generating means, In the case of N , the column is provided with N numbers and key input means having contact switches arranged at intersections of each row and column, an encoder for outputting data corresponding to the signal level of each row of the key input means, and (N-1) switching means coupled between a power supply voltage and ground and switched on and off in accordance with the signal level output from the column of the key input means, and one of the N columns is grounded. And a microprocessor for determining a key input on the basis of a key signal generating means, input data from the encoder, and a potential of the power supply voltage and a coupling node of each switching means. Key input search circuit, characterized in that configured.
KR1019960007407A 1996-03-19 1996-03-19 A circuit for testing key input KR100209553B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960007407A KR100209553B1 (en) 1996-03-19 1996-03-19 A circuit for testing key input

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960007407A KR100209553B1 (en) 1996-03-19 1996-03-19 A circuit for testing key input

Publications (2)

Publication Number Publication Date
KR970066814A KR970066814A (en) 1997-10-13
KR100209553B1 true KR100209553B1 (en) 1999-07-15

Family

ID=19453441

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960007407A KR100209553B1 (en) 1996-03-19 1996-03-19 A circuit for testing key input

Country Status (1)

Country Link
KR (1) KR100209553B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100722279B1 (en) * 2005-09-09 2007-05-28 엘지전자 주식회사 Key pad and its operating method of mobile communication terminal

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030075734A (en) * 2002-03-20 2003-09-26 주식회사 엘지이아이 A key input circuit of microwave oven

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100722279B1 (en) * 2005-09-09 2007-05-28 엘지전자 주식회사 Key pad and its operating method of mobile communication terminal

Also Published As

Publication number Publication date
KR970066814A (en) 1997-10-13

Similar Documents

Publication Publication Date Title
US7839390B2 (en) Compact alphanumeric keyboard
US4912462A (en) Letter input device for electronic word retrieval device
US4398181A (en) Keyboard entry system
US5070330A (en) Keyboard scanning matrix
US4673933A (en) Switch matrix encoding interface using common input/output parts
CN102075194A (en) Circuit and method for scanning keyboard and electronic equipment
US4494109A (en) Noncontacting keyboard employing a transformer element
SU1573458A2 (en) Addressing device
KR100209553B1 (en) A circuit for testing key input
JPS62230169A (en) Wipe waveform selecting device
JP3259716B2 (en) Multi-stage key switch and portable information terminal device with multi-stage key switch
CN214384608U (en) Simulation keyboard button test circuit
KR100442370B1 (en) Key scan apparatus and method for mobile communication terminal
US5702625A (en) Encoder key input device for a microwave oven and interrupt processing method using the same
KR100219560B1 (en) Key scanning device using multiplexer or demultiplexer
US5583498A (en) Input device
CN116072049B (en) LED lattice module
CN115441862A (en) Electronic device and control method thereof
US8564460B2 (en) Keyboard device and method of identifying a key operation
KR960038534A (en) Switch input device of programmable controller (PLC) using scan method and its control method
JPH10255590A (en) Switch system and its data fetching method
SU1615696A1 (en) Data input device
JPS62115514A (en) Key input device
JPH09160706A (en) Keyboard device
US3449740A (en) Decoder circuit using magnetic core elements and driving a decimal display device

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
LAPS Lapse due to unpaid annual fee