KR940005215B1 - Key-scanning circuit - Google Patents

Key-scanning circuit Download PDF

Info

Publication number
KR940005215B1
KR940005215B1 KR1019910006431A KR910006431A KR940005215B1 KR 940005215 B1 KR940005215 B1 KR 940005215B1 KR 1019910006431 A KR1019910006431 A KR 1019910006431A KR 910006431 A KR910006431 A KR 910006431A KR 940005215 B1 KR940005215 B1 KR 940005215B1
Authority
KR
South Korea
Prior art keywords
key
input
data
key scan
processing unit
Prior art date
Application number
KR1019910006431A
Other languages
Korean (ko)
Other versions
KR920020894A (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 KR1019910006431A priority Critical patent/KR940005215B1/en
Publication of KR920020894A publication Critical patent/KR920020894A/en
Application granted granted Critical
Publication of KR940005215B1 publication Critical patent/KR940005215B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber

Abstract

The key scan circuit of a telephone system includes a central processing unit for generating key scan data, receiving response data and sensing a key input state, a key pad for receiving the key scan data and generating prescribed response data according to a key depressed state, a diode array for transmitting the key scan data to the key pad and suppressing momentary current generated from the key pad from being applied to the central processing unit, and a buffer for receiving and buffering the response data generated from the key pad, thereby improving the speed of a scanning operation.

Description

키 스캔 회로Key scan circuit

제1도는 종래의 회로도.1 is a conventional circuit diagram.

제2도는 본 발명에 따른 회로도.2 is a circuit diagram according to the present invention.

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

10, 50 : 중앙처리장치 20 : 래치10, 50: central processing unit 20: latch

30, 70 : 버퍼 40, 80 : 키패드30, 70: buffer 40, 80: keypad

60 : 다이오드어레이60: diode array

본 발명은 전화기에 관한 것으로, 특히 키패드의 키 스캔 회로에 관한 것이다.The present invention relates to a telephone, and more particularly to a key scan circuit of a keypad.

일반적으로 전화기는 사용자로부터의 전화번호 입력 및 기능제어 입력을 위한 입력수단으로서 키패드(Key pad)와 상기 키패드를 스캐닝하여 사용자의 키눌림에 의해 발생되는 키데이타를 출력하는 키 스캔회로를 구비한다.In general, a telephone includes a keypad and a key scanning circuit for outputting key data generated by a user's key press by scanning the keypad as an input means for inputting a telephone number and a function control input from a user.

제1도는 종래의 키 스캔 회로의 구성도로서, 중앙처리장치(10)와 래치(20) 및 버퍼(30) 그리고 키패드(40)로 구성되어 있다.FIG. 1 is a block diagram of a conventional key scan circuit, which includes a central processing unit 10, a latch 20, a buffer 30, and a keypad 40.

종래 키 스캔 회로의 동작을 상술한 제1도를 참조하여 간략히 살펴보면, 먼저 중앙처리장치(10)는 데이터 입출력단(D0∼D3)을 통해 0111,1011,1101,1110등과 같은 키 스캔데이타를 출력하며, 인에이블상태의 라이트신호를 출력한다. 래치(20)는 상기 키 스캔데이타를 입력받으며, 상기 라이트신호에 제어되어 키패드(40)로 상기 키 스캔데이타를 래치출력한다. 이후 키패드(40)에서 키눌림이 발생하면, 상기 키 스캔데이타와 키눌림에 의해 유기된 신호, 즉 응답데이타가 버퍼(30)의 해당 입력단자로 입력된다. 중앙처리장치는 버퍼(30)로 출력 인에이블 신호를 주어 버퍼(30)에 입력된 상기 응답데이타를 데이터 입출력단중 D0∼D2를 통해 받아들인다. 이후 상기 중앙처리장치(10)는 출력된 키 스캔데이타와 입력된 응답데이타에 따라 키패드(40)의 키입력 상태를 인지한다.Referring to FIG. 1, the operation of the conventional key scan circuit will be briefly described. First, the CPU 10 outputs key scan data such as 0111, 1011, 1101, 1110, etc. through the data input / output terminals D0 to D3. Enabled light Output the signal. The latch 20 receives the key scan data and the writes. Controlled by a signal, the keypad 40 latches the key scan data. Then, when a key press occurs in the keypad 40, the key scan data and the signal induced by the key press, that is, the response data, are input to the corresponding input terminal of the buffer 30. Central processing unit outputs signal to buffer 30 Then, the response data input to the buffer 30 is received through the data input / output terminals D0 to D2. Thereafter, the CPU 10 recognizes a key input state of the keypad 40 according to the output key scan data and the input response data.

상술한 동작설명에서 중앙처리장치(10)의 동작을 살펴보면, 키 스캔데이타를 출력하는 출력단계와, 키 스캔데이타를 출력한 뒤 응답데이타를 받아 들이는 입력단계를 갖는다. 상기 중앙처리장치(10)가 출력 및 입력단계를 가지는 이유는 스캔데이타의 출력과 그의 응답데이타를 동일포트(D0~D3)로 수행하기 때문이다.Looking at the operation of the central processing unit 10 in the above-described operation description, there is an output step of outputting the key scan data, and an input step of receiving the response data after outputting the key scan data. The reason why the central processing unit 10 has an output and an input stage is that the output of scan data and its response data are performed through the same ports D0 to D3.

그러나 상술한 종래 키 스캔 회로는 중앙처리장치(10)가 동일포트를 통해 키 스캔데이타의 출력 및 그 응답데이타의 입력동작을 순차적으로 수행하므로 키 스캐닝 속도가 느리다는 단접이 있었다. 또한 데이터의 입출력 제어를 위한 래치수단이 필요하므로 회로의 구성이 복잡해지며, 이는 최근 각종 시스템에서 고속 소형화를 추구하여 비추어 볼 때 하나의 단점이 된다.However, in the above-described conventional key scan circuit, since the central processing unit 10 sequentially performs the output operation of the key scan data and the response data through the same port, the key scanning speed is slow. In addition, since a latch means for input / output control of data is required, the circuit configuration becomes complicated, which is a disadvantage in view of high speed miniaturization in various systems in recent years.

따라서 본 발명의 목적은 구성을 단순화하고 고속으로 스캐닝동작을 수행하는 키 스캔 회로를 제공함에 있다.It is therefore an object of the present invention to provide a key scan circuit that simplifies configuration and performs scanning at high speed.

상기한 목적을 달성하기 위한 본 발명은 키 스캔을 단일 단계로 수행하기 위해 스캔 데이타의 출력단을 어드레스단으로 하고 응답데이타의 수신단을 별도로 함으로서 스캐닝 스피드를 높이고 래치수단과 같은 구성요소를 감축한다.In order to achieve the above object, the present invention increases the scanning speed and reduces components such as latching means by using the output terminal of the scan data as the address terminal and the receiving terminal of the response data separately to perform the key scan in a single step.

이하 본 발명의 바람직한 구성 및 동작의 일실시예를 첨부된 도면의 참조하여 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

제2도는 본 발명에 따른 회로도로서, 어드레스단(A0∼A3)을 통해 키 스캔데이타를 출력하고 동시에 데이터 입력단(D0∼D2)으로 그 응답데이타를 입력받으며, 상기 키 스캔데이타에 따라 응답데이타를 비교하여 키입력 상태를 인지하는 중앙처리장치(50)와, 상기 어드레스단(A0∼A3)으로부터 출력되는 키 스캔데이타를 받아 키누름 상태에 따라 유기되는 소정 응답데이타를 출력하는 키패드(80)와, 상기 어드레스단(A0∼A3)과 상기 키패드(80) 사이에 연결되어 상기 키 스캔데이타를 상기 키패드(80)으로 전달하며, 상기 키패드(80)으로부터 발생되는 순간전류가 중앙처리장치(50)로 인가되는 것을 억제하는 다이오드어레이(60)와, 상기 응답데이타를 입력받아 버퍼링하고, 상기 중앙처리장치(50)의 제어하에 상기 중앙처리장치(50)의 데이터 입력단(D0∼D3)으로 출력하는 버퍼(70)로 구성된다.2 is a circuit diagram according to the present invention, which outputs key scan data through the address terminals A0 to A3 and simultaneously receives the response data to the data input terminals D0 to D2, and receives the response data according to the key scan data. A central processing unit 50 for recognizing a key input state, a keypad 80 for receiving key scan data output from the address terminals A0 to A3 and outputting predetermined response data according to a key press state; And a connection between the address terminals A0 to A3 and the keypad 80 to transfer the key scan data to the keypad 80, and the instantaneous current generated from the keypad 80 is transferred to the central processing unit 50. The diode array 60, which suppresses the application of the signal, and the response data are received and buffered, and are output to the data input terminals D0 to D3 of the central processing unit 50 under the control of the central processing unit 50. It consists of a buffer 70.

이하 상술한 제2도의 구성을 참조하면, 먼저 중앙처리장치(50)는 어드레스단(A0∼A3)을 통해 다이오드어레이(60)을 경유시켜 키패드(80)에 키 스캔데이타를 출력한다. 이때 키패드(80)에서는 입력된 소정 키누름 상태에 따라 버퍼(70)로 상기 키 스캔데이타에 응답한 응답데이타를 출력한다. 또한 상기 중앙처리장치(10)는 상기 키 스캔데이타의 출력과 동시에 상기 버퍼(70)의 데이터 출력을 제어하는 출력인에이블신호를 출력한다. 상기 버퍼(70)는 상기 출력인에이블신호에 출력제어되어 상기 키패드(80)로부터 입력되는 응답데이타를 상기 중앙처리장치(50)의 데이터입력단(D0∼D2)으로 출력한다. 이후 상기 중앙처리장치(50)는 키 스캔데이타에 따라 상기 응답데이타를 비교하여 상기 키 패드(80)에서 눌려진 키를 인지한다.Referring to the configuration of FIG. 2 described below, the CPU 50 first outputs key scan data to the keypad 80 via the diode array 60 through the address terminals A0 to A3. At this time, the keypad 80 outputs response data in response to the key scan data to the buffer 70 according to the input key press state. In addition, the CPU 10 outputs a signal for controlling the data output of the buffer 70 simultaneously with the output of the key scan data. Outputs The buffer 70 is the output enable signal The response data inputted from the keypad 80 is controlled to be output to the data input terminals D0 to D2 of the central processing unit 50. Thereafter, the CPU 50 recognizes the key pressed by the keypad 80 by comparing the response data according to key scan data.

이하 상기 중앙처리장치(50)가 키 스캔데이타에 따라 그 응답데이타를 비교하고 키입력을 인지하는 구체적인 일례를 설명한다.Hereinafter, a specific example in which the CPU 50 compares response data according to key scan data and recognizes key input will be described.

먼저 중앙처리장치(50)는 어드레스단(A0∼A3)을 통해 키패드(80)에 0111(7H)의 키 스캔데이타를 공급하고, 버퍼(70)로부터 데이터 입력단(D0∼D2)으로 다음과 같은 응답데이타를 입력받으면, D0입력단으로 "0"이 입력되면 1번키가 눌러진 것으로 인식하고, D1입력단으로 "0"이 입력되면 2번 키가 눌러진 것으로 인식하며, D2입력단으로 "0"이 입력되면 3번 키가 눌러진다는 것으로 인식한다.First, the central processing unit 50 supplies key scan data of 0111 (7H) to the keypad 80 through the address terminals A0 to A3, and from the buffer 70 to the data input terminals D0 to D2 as follows. When response data is input, it recognizes that No.1 key is pressed when "0" is input to D0 input terminal, and when "0" is input to D1 input terminal, it recognizes that No.2 key is pressed and "0" is input to D2 input Recognize that key 3 is pressed when it is entered.

또한 상기 중앙처리장치(50)가 1011(BH)의 키 스캔데이타를 공급하고 상기 데이터 입력단(D0∼D2)으로 다음과 같은 그 응답데이타를 입력받으면, D0입력단으로 "0"이 입력되면 4번 키가 눌러진 것으로 인식하고, D1입력단으로 "0"이 입력되면 5번 키가 눌러진 것으로 인식하고, D2입력단으로 "0"이 입력되면 6번 키가 눌러진 것으로 인식한다.In addition, when the CPU 50 supplies key scan data of 1011 (BH) and receives the following response data to the data input terminals D0 to D2, if "0" is input to the D0 input terminal, the number is 4; The key is recognized as being pressed, and when "0" is input to the D1 input terminal, it is recognized as the 5th key is pressed, and when "0" is input to the D2 input terminal, the key 6 is recognized as being pressed.

상기 중앙처리장치(50)가 1101(CH)의 키 스캔데이타를 공급하고 상기 데이터 입력단(D0∼D2)으로 다음과 같은 그 응답데이타를 입력받으면, D0입력단으로 "0"이 입력되면 7번 키가 눌러진 것으로 인식하고, D1입력단으로 "0"이 입력된면 8번 키가 눌러진 것으로 인식하고, D2입력단으로 "0"이 입력되면 9번 키가 눌러진 것으로 인식한다.When the central processing unit 50 supplies key scan data of 1101 (CH) and receives the following response data to the data input terminals D0 to D2, the key 7 is input when "0" is input to the D0 input terminal. Is recognized as being pressed, it is recognized that No. 8 key is pressed when "0" is input to D1 input terminal, and it is recognized that No. 9 key is pressed when "0" is input to D2 input terminal.

또한 상기 중앙처리장치(50)가 1110(EH)의 키 스캔데이타를 공급하고 상기 데이터 입력단(D0∼D2)으로 다음과 같은 그 응답데이타를 입력받으면, D0입력단으로 "0"이 입력되면 *번 키가 눌러진 것으로 인식하고, D1입력단으로 "0"이 입력되면 0번 키가 눌러진 것으로 인식하고, D2입력단으로 "0"이 입력되면 #번 키가 눌러진 것으로 인식한다.In addition, when the CPU 50 supplies key scan data of 1110 (EH) and receives the following response data to the data input terminals D0 to D2, "0" is input to the D0 input terminal. The key is recognized as being pressed, and when "0" is input to the D1 input terminal, it is recognized that the 0 key is pressed, and when the "0" is input to the D2 input terminal, the key # is recognized.

따라서 상술한 바와 같이 본 발명은 키 스캔데이타의 출력과 응답데이타의 수신을 서로 다른 포트로 수행하므로 종래와 같은 데이터의 충돌을 방지하기 위한 래치가 필요치 않아 회로를 간단하게 구성할 수 있고, 종래와 같이 키 스캔 동작을 2단계에 걸쳐 수행하지 않으므로 스피드가 향상되는 이점이 있다.Therefore, as described above, the present invention performs the output of the key scan data and the reception of the response data to different ports, thus eliminating the need for a latch to prevent data collision as in the prior art, and thus, the circuit can be easily configured. Likewise, since the key scan operation is not performed in two steps, the speed is improved.

Claims (1)

전화기의 키 스캔 회로에 있어서, 출력단을 통해 키 스캔데이타를 출력하고 입력단을 통해 그 응답데이타를 입력받으면, 상기 키 스캔데이타에 따라 그 응답데이타를 비교하여 키입력 상태를 인지하는 중앙처리장치와, 상기 출력단으로부터 출력되는 키 스캔데이타를 입력받으며, 키누름 상태에 따라 상기 키 스캔데이타에 대응하는 소정 응답데이타를 출력하는 키패드와, 상기 출력단과 상기 키패드 사이에 연결되어 상기 키 스캔데이타를 상기 키패드로 전달하며, 상기 키패드로부터 발생되는 순간 전류가 중앙처리장치로 인가되는 것을 억제하는 다이오드어레이와, 상기 응답데이타를 입력받으며, 상기 중앙처리장치의 제어하에 상기 중앙처리장치의 입력단으로 버퍼링 출력하는 버퍼로 구성함을 특징으로 하는 키 스캔 회로.A key scanning circuit of a telephone, comprising: a central processing unit for outputting key scan data through an output terminal and receiving response data through an input terminal, and comparing the response data according to the key scan data to recognize a key input state; A key scan data received from the output terminal and a predetermined response data corresponding to the key scan data according to a key press state, and connected between the output terminal and the keypad to convert the key scan data to the keypad And a diode array for suppressing the instantaneous current generated from the keypad from being applied to the central processing unit and the response data, and a buffer for buffering and outputting the input to the central processing unit under the control of the central processing unit. Key scan circuit, characterized in that the configuration.
KR1019910006431A 1991-04-22 1991-04-22 Key-scanning circuit KR940005215B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019910006431A KR940005215B1 (en) 1991-04-22 1991-04-22 Key-scanning circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019910006431A KR940005215B1 (en) 1991-04-22 1991-04-22 Key-scanning circuit

Publications (2)

Publication Number Publication Date
KR920020894A KR920020894A (en) 1992-11-21
KR940005215B1 true KR940005215B1 (en) 1994-06-13

Family

ID=19313544

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019910006431A KR940005215B1 (en) 1991-04-22 1991-04-22 Key-scanning circuit

Country Status (1)

Country Link
KR (1) KR940005215B1 (en)

Also Published As

Publication number Publication date
KR920020894A (en) 1992-11-21

Similar Documents

Publication Publication Date Title
US5920308A (en) Keyboard with a wireless remote control receiver and a method of redefining a key function for remote control
US6522725B2 (en) Speech recognition system capable of flexibly changing speech recognizing function without deteriorating quality of recognition result
US7155544B2 (en) Portable information device capable of processing input data from external device and method thereof
KR940005215B1 (en) Key-scanning circuit
KR0143308B1 (en) Data communication system using a telephone
US6191709B1 (en) Keyboard with separated keyboard frames and portable computer having the same
KR0133866B1 (en) Semiconductor circuit for telephone
KR940006657Y1 (en) Selecting circuit of information i/o
JPS5916034A (en) Input device coupling system
KR0128049B1 (en) Keyboard interface device
KR970031739A (en) General Phone Systems and Call Methods on Personal Computers
KR100677074B1 (en) Apparatus for connecting multi-signal
KR100506278B1 (en) Key Phones with Computer Keyboard
KR970004591A (en) Computer Connections for Key Phones
JPS6160055A (en) Voice recognition response device
KR920000093Y1 (en) Fax modem circuit
KR100365237B1 (en) Wired keyboard having a web camera
SU1037233A1 (en) Data input device
KR970002110B1 (en) Key-board attaching apparatus
KR100385119B1 (en) A keyboard with a wireless remote control receiver and a method of redefing a key function for remote control
KR100217738B1 (en) Computer communication speed improving method of keyphone
KR940005533B1 (en) Calling system by the use of telephone dialing buttons
KR100195645B1 (en) Method for detecting the code-data in remote controller signal
KR930001544B1 (en) Digitalized voice signal communication method and circuit
KR950008115B1 (en) Communication mode conversion method

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20010531

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee