KR900001521B1 - Interface circuit of keyboard - Google Patents
Interface circuit of keyboard Download PDFInfo
- Publication number
- KR900001521B1 KR900001521B1 KR1019870002608A KR870002608A KR900001521B1 KR 900001521 B1 KR900001521 B1 KR 900001521B1 KR 1019870002608 A KR1019870002608 A KR 1019870002608A KR 870002608 A KR870002608 A KR 870002608A KR 900001521 B1 KR900001521 B1 KR 900001521B1
- Authority
- KR
- South Korea
- Prior art keywords
- data
- signal
- output
- transmission
- keyboard
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
Abstract
Description
제1도는 본 발명의 회로도.1 is a circuit diagram of the present invention.
제2도는 본 발명 회로도의 각부 파형도.2 is a waveform diagram of each part of the circuit diagram of the present invention.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
10 : 송신회로 20 : 수신회로10: transmitting circuit 20: receiving circuit
30 : 전송속도선택부 40 : 제어회로30: transmission rate selector 40: control circuit
31, 23 : 랫치 11, 21 : 2진 카운터31, 23:
12, 22 : 시프트레지스터 FF1∼FF4: 플립플롭12, 22: shift registers FF 1 to FF 4 : flip flop
N1, N2, N3: 낸드게이트 I1, I2: 인버터N 1 , N 2 , N 3 : NAND gate I 1 , I 2 : Inverter
NO : 노아게이트: 기록인에이블 신호NO: Noah Gate : Record enable signal
: 전송속도 발생 인에이블 신호 Baud rate enable signal
: 수신준비 인에이블신호 TXD : 송신데이타 : RX ready enable signal TXD: Transmission data
KYTXRDY : 송신준비 신호 KYRXRDY : 수신준비 신호KYTXRDY: Ready signal for transmission KYRXRDY: Ready signal for reception
본 발명은 키보드의 매트릭스상에 배열된 키 스위치에 해당되는 데이타 코드를 메인 cpu가 처리할 수 있도록 데이타를 변환시키는 키보드의 인터페이스 회로에 관한 것이다.The present invention relates to an interface circuit of a keyboard for converting data so that the main cpu can process data codes corresponding to key switches arranged on a matrix of the keyboard.
통상 키보드라 함은 매트릭스상에 배열된 키 스위치를 접속시킴으로써 키보드 콘트롤러인 마이크로 프로세서가 상기 매트릭스를 스캔(scan)하여 접속된 키 스위치의 데이타 코드를 메인 cpu에 전송하는 것을 말하게 되나 상기 데이타 코드 전송과정에서 데이타 코드는 통상 8∼10비트의 시리얼(serial)데이타로 전송하게 되므로 이를 받아들이는 메인 cpu가 시리얼 데이타를 직접 수신하게 되면 메인 cpu에 많은 무리(burden)를 주게 되므로 시리얼 데이타를 수신하여 페러랠(parallel) 데이타로 바꾸어 메인 cpu에 인가하는 또 다른 마이크로 프로세서(즉 인터페이스)가 필요하게 되는 것이다.In general, a keyboard refers to a microprocessor, which is a keyboard controller, connecting a key switch arranged on a matrix to scan the matrix and transmitting the data code of the connected key switch to a main cpu. In general, the data code is transmitted as serial data of 8 to 10 bits. Therefore, when the main cpu receiving the serial data directly receives the serial data, the data is sent to the main cpu. You will need another microprocessor (or interface) that converts the data to the main cpu.
즉 키보드의 데이타 코드를 메인 cpu에 공급하기 위해서는 시리얼 데이타를 페퍼랠 데이타로 변환시키는 마이크로 프로세서가 필요하게 되나 상기된 마이크로 프로세서를 사용할 때 많은 부분을 사용치 않고 일부분만 사용하게 되고 또한 커스텀 칩(Custom chip)화 하기가 곤란한 것이었다.In other words, in order to supply the data code of the keyboard to the main cpu, a microprocessor for converting serial data into peripheral data is required. It was difficult to chip).
본 발명은 상기와 같은 점을 감안하여 키보드의 데이타 코드를 변환시켜 메인 cpu에 전송시키는 마이크로 프로세서(즉 인터페이스)를 사용하지 않고 카운터 및 TTL 등으로 인터페이스를 구성시킨 것으로써 랫치 및 업다운 카운터로 구성된 전송속도 선택부에 플립플롭으로 구성된 제어부가 연결되게 구성시켜 2진 카운터의 출력이 시프트 레지스터에 인가되는 송수신 회로가 제어되게 구성한 것이다.In view of the above, the present invention configures an interface with a counter and a TTL without using a microprocessor (that is, an interface) that converts a data code of a keyboard and transmits the data code to a main cpu. The control unit configured by the flip-flop is connected to the speed selector to control the transmission / reception circuit to which the output of the binary counter is applied to the shift register.
이와 같은 본 발명을 첨부 도면에 의거 그 구성 및 작용 효과를 상세히 살펴보면 다음과 같다.Looking at the configuration and effect of the present invention as described above in detail as follows.
제1도는 본 발명의 회로도로써 8비트 전송 데이타(D0∼D7) 신호가 인가되고 전송속도 발생 인에이블 신호가 입력되는 8진 D 타입 투명 랫치(31) 및 동기(synchronous) 8비트 업 다운 카운터(32)로 전송속도 선택부(30)를 구성하여 전송속도 발생 인에이블 신호가 「L레벨」일때 8비트 전송데이타(D0∼D7)에 의하여 전송 속도가 선택되게 구성하며 송수신 회로(10)(20)가 동시에 구동되는 것을 방지하는 제어회로(40)는 수신데이타(RXD)와 리셋트 신호및 수신 준비 인에이블 신호가 인가되는 낸드게이트(N3) 및 플립플롭(FF1∼FF4)으로 구성된다.1 is a circuit diagram of the present invention, the 8-bit transmission data (D 0 ~ D 7 ) signal is applied and the transmission rate generation enable signal Transfer rate generation enable signal by configuring the
즉 제어회로(40)는 수신데이타(RXD)와 플립플롭(FF3)의 출력이 인가되는 낸드게이트(N3)의 출력이 플립플롭(FF2)에 인가되게 하고 리셋트 신호와 수신준비 인에이블 신호가 클리어단자에 인가되게 플립플롭(FF3)(FF4)을 구성하며 상기 플립플롭(FF2)의 출력은 2진 카운터(21)에 인가되게 구성하고 상기 플립플롭(FF3)(FF4)은 2진 카운터(21)의 출력이 클럭단자에 인가되게 구성하며 플립플롭(FF1)은 업다운 카운터(32)의 출력이 클럭단자에 인가되게 구성한다. 그리고 송신회로(10)는 플립플롭(FF1)의 출력이 노아게이트(NO)를 통하여 2진 카운터(11)의 클럭단자에 인가되고 기록 인에이블 신호가 인버터(I1)를 통하여 인가되는 2진 카운터(11)의 출력은 인버터(I2)를 통하여 시프트 레지스터(12)의 클럭단자에 인가되며 2진 카운터(11)의 또 다른 출력은 앤드게이트(A1)를 통한 후 노아게이트(NO)에 인가됨과 동시에 송신 준비 신호(KYTXRDY)로 출력되게 구성한다.That is, the
또한 수신회로(20)는 플립플롭(FF1)의 출력이 인가되는 앤드게이트(A2)의 출력이 클럭단자에 인가되는 2진 카운터(21)의 출력이 낸드게이트(N1)(N2)와 앤드게이트(A3)를 통한 후 앤드게이트(A2)의 입력측과 플립플롭(FF3)의 입력측 및 플립플롭(FF4)의 클럭단자에 인가되게 구성하며 2진 카운터(21)의 출력이 클럭단자에 인가되고 수신데이타(RXD)가 인가되는 시프트 레지스터(22)의 출력은 수신 준비 인에이블 신호가 인가되는 랫치(23)를 통한 후 시프트 레지스터(12)에 인가되게 구성한다. 이때 랫치(23)의 출력 또는 8비트 데이터(D0∼D7)가 인가되는 시프트 레지스터(12)는 패러랠 로드(Load) 시프트 레지스터로써 기록 인에이블 신호가 인가되게 한다.In addition, the
이와 같이 구성된 본 발명은 키보드의 데이타 코드를 변환시켜 메인 cpu에 공급시켜 주는 기능과 함께 키보드의 데이타 코드 입력이 아닌 외부기기 및 라인 입력 데이타를 변환시켜 메인 cpu에 공급해 주는 기능도 수행하게 되며 이같은 본 발명을 콘트롤 하기 위한 로직 신호는 터미널이나 퍼스널 컴퓨터등에서 세트 업(setup)되어지는 콘트롤에 의하여 키보드를 콘드롤하는 로직 보오드(Logic board)에서 발생시키게 된다.The present invention configured as described above converts the data code of the keyboard and supplies it to the main cpu, and also performs the function of converting the external device and line input data and supplying the main cpu, not the data code input of the keyboard. Logic signals for controlling the invention are generated by logic boards that control the keyboard by controls that are set up in a terminal or personal computer.
이때 키보드를 콘드롤 하는 로직 보오드에서 발생시키는 신호는 수신된 데이타를 기록하게 하는 기록 인에이블 신호, 송신 준비를 알려 주는 송신준비 신호(KYTXRDY), 전송속도 발생을 가능케 하는 전송 속도 발생 인에이블 신호, 수신 준비를 알리는 수신준비 신호(KYRXRDY), 리셋트 신호, 수신 준비를 가능케 하는 수신준비 인에이블 신호등이 된다.At this time, the signal generated by the logic board controlling the keyboard is a write enable signal for recording the received data. , A transmission ready signal (KYTXRDY) indicating the transmission ready, and a transmission rate generation enable signal that enables transmission rate generation , Receive ready signal (KYRXRDY), reset signal indicating ready to receive Receive-enabled enable signal ready to receive And so on.
이같은 본 발명에서 전송 속도발생 인에이블 신호와 8비트 데이타(D0∼D7)가 인가되는 랫치(31)와 동기 8비트 업 다운 카운터(32)로 구성된 전송속도 선택부(30)는 전송 속도발생 인에이블 신호가 "레벨"상태 신호로 인가되고 8비트 데이타(D0∼D7)가 랫치(31)에 인가되면 동기 8비트 업다운 카운터(32)는 입력 8비트 데이타(D0∼D7)신호에 의하여 업다운 카운트되면서 전송 속도를 조절하게 되며 상기 업 다운 카운터(32)의 출력은 낸드게이트(N3) 및 플립플롭(FF1∼FF4)으로 구성된 제어회로(40)에 인가되어 송, 수신회로(10)(20)를 구동시키게 된다.In the present invention, the transmission rate generation enable signal And a
이때 동기 8비트 업 다운 카운터(32)는 8비트의 데이타 입력에 따라 업 또는 다운 카운트로 동작되어지게 된다. 먼저 데이타 송신시의 경우는 송신준비 신호(KYTXRDY)가 송신회로(10)에 인가되고 기록(WRITE) 인에이블 신호가 「L레벨」상태 신호를 유지하면 인버터(I1)를 통한「H레벨」신호가 2진 카운터(11)에 인가되어 2진 키운터(11)는 구동상태를 유지하게 되며 이때 2진 카운터(11)의 클럭 신호로는 전송 속도 선택부(30)의 업 다운 카운터(32) 출력에 의하여 구동되는 제어회로(40)의 플립플롭(FF1)의 출력단자()로 나타나는 출력이 노아게이트(NO)를 통한 후 클럭단자(CLK)에 인가되므로 2진 카운터(11)가 구동하게 된다.At this time, the synchronous 8-bit up-down
그리고 8비트 데이타 신호(D0∼D7)는 시프트 레지스터(12)에 인가되나 이때 기록 인에이블 신호가「L레벨」상태로서 시프트 레지스터(12)에 인가되어 있게 되므로 8비트 데이타(D0∼D7)가 시프트 레지스터(12)에 로우드(LOAD)되게 되며 이 과정을 제2도의 파형도를 참고로 상세히 살펴보면 다음과 같다.The 8-bit data signals D 0 to D 7 are applied to the shift register 12, but at this time, the write enable signal. Is applied to the shift register 12 as the " L level " state, so that 8-bit data D 0 to D 7 are loaded into the shift register 12, and the process shown in FIG. For reference, see in detail as follows.
제2도에서와 같이 기록 인에이블 신호(WRKEY)가 「L레벨」일때에 송신준비 신호(KYTXRDY)는 「L레벨」신호로 디스 에이블되게 되므로 플립플롭(FF1)의 출력이 노아게이트(NO)를 통한 후 2진 카운터(11)의 클럭단자(CLK)에 제2도에서와 같이 인가되게 되어 2진 카운터(11)는 클럭신호가 인가될 때마다 카운트하게 된다.Second transmission ready signal (KYTXRDY) the write enable signal (WRKEY) to the "L level", when, as shown in Figure is the output (NO NOR gate of the flip-flop (FF 1), so to be disabled to "L level" signal And then applied to the clock terminal CLK of the
따라서 2진 카운터(11)는 클럭단자(CLK)로 인가되는 클럭신호를 카운트하여 출력단자(Q3)(Q5)(Q7)로는 제2도에서와 같은 펄스를 출력시키게 된다. 그리고 2진 카운터(11)의 출력단자(Q3) 출력은 인버터(I2)에서 반전된 후 패러랠 로우드 시프트 레지스터(12)의 클럭단자(CLK)에 인가되게 되므로 시프트 레지스터(12)에서는 제2도에서와 같은 출력단자(Q3) 출력이 반전되어 인가될 때마다 최초 로우드된 데이타가 시프트되어 송신데이타 신호(TXD)로써 출력되어 진다.Thus the
즉 2진 카운터(11)의 출력단자(Q3)의 첫번째 클럭에 의하여 시프트 레지스터(12)의 데이타「D0」신호가 스타트 비트 신호로써 발생되며 그 다음 클럭이 인가될 때마다 시프트 레지스터(12)에 로우드된 8비트의 데이타가 순차적으로 출력되고 2진 카운터(11)의 출력단자(Q5)(Q7)의 출력 신호가 「H레벨」로 앤드게이트(A1)에 인가될때에 송신준비 신호(KYTXRDY)를 「H레벨」로 만들어 다음 데이타(DATA)가 인가될 수 있게 함과 동시에 앤드게이트(A1)의 출력을 노아게이트(NO)에 인가시켜 2진 카운터(11)에 공급되는 클럭신호(CLK)를 차단시키어 송신을 중지시키게 된다.That is, the data "D 0 " signal of the shift register 12 is generated as a start bit signal by the first clock of the output terminal Q 3 of the
그리고 수신시에는 상기 동작과 역으로 구동되는 것으로 수신된 데이타 신호(RXD)가 제어회로(40)의 플립플롭(FF1)(FF2)를 통하여 2진 카운터(21)의 구동을 제어하게 되고 이때에 수신된 데이타 신호가 시프트 레지스터(22)를 통하여 랫치(23)에 인가되게 된다.At the time of reception, the data signal RXD driven in reverse with the above operation controls the driving of the binary counter 21 through the flip-flop FF 1 and FF 2 of the
여기서 제어회로(40)의 플립플롭(FF1∼FF4)은 송, 수신회로(10)(20)의 구동을 제어하여 동시에 송수신되는 것을 방지한다.Here, the flip-flops FF 1 to FF 4 of the
이상에서와 같이 본 발명은 전송속도 선택부로서 입출력되는 데이타의 전송속도를 선택하고 제어회로에 의하여 송수신회로의 구동을 제어하여 2진 카운터의 출력이 시프트 레지스터로 입출력되게 할 수가 있는 것으로 데이타 신호에 의하여 전송속도를 선택할 수 있어 소프트 웨어적으로 제어시킬 수가 있으며 데이타 비트수 및 스톱비트수는 하드웨어적인 TTL의 비트로 셋트시킬 수가 있어 변경이 편리하기 때문에 게이트 어레이나 커스텁 칩화 할때에 제한을 받지 않는 이점이 있는 동시에 전송 속도가 고정될 경우에는 게이트수를 더욱 줄일 수가 있으며 마이크로 프로세서를 사용하지 않고 카운터와 TTL등으로 인터페이스를 구성할 수 있는 것이다.As described above, the present invention allows the output of the binary counter to be inputted and outputted to the shift register by selecting the transmission speed of the input / output data as the transmission speed selector and controlling the driving of the transmission / reception circuit by the control circuit. The transmission speed can be selected to control the software. The number of data bits and the number of stop bits can be set to the bits of the hardware TTL, so it is easy to change, so it is not limited when gated or custom chipd. At the same time, when the transmission rate is fixed, the gate count can be further reduced, and the interface can be configured with a counter and a TTL without using a microprocessor.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019870002608A KR900001521B1 (en) | 1987-03-20 | 1987-03-20 | Interface circuit of keyboard |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019870002608A KR900001521B1 (en) | 1987-03-20 | 1987-03-20 | Interface circuit of keyboard |
Publications (2)
Publication Number | Publication Date |
---|---|
KR880011641A KR880011641A (en) | 1988-10-29 |
KR900001521B1 true KR900001521B1 (en) | 1990-03-12 |
Family
ID=19260194
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019870002608A KR900001521B1 (en) | 1987-03-20 | 1987-03-20 | Interface circuit of keyboard |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR900001521B1 (en) |
-
1987
- 1987-03-20 KR KR1019870002608A patent/KR900001521B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR880011641A (en) | 1988-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0313875A2 (en) | Serializer deserializer circuit | |
US4417320A (en) | Interface for data communication systems using serial biphase data transmissions | |
EP0094130B1 (en) | Data entry keyboard apparatus | |
US4571735A (en) | Method of multi-level encoding including synchronizing signals | |
JPH0678019A (en) | Interface device | |
US3623010A (en) | Input-output multiplexer for general purpose computer | |
US3540004A (en) | Buffer storage circuit | |
JPS6239580B2 (en) | ||
KR900001521B1 (en) | Interface circuit of keyboard | |
US4225752A (en) | High speed, low noise digital data communication system | |
EP0085973A2 (en) | Information transmission system | |
SE442351B (en) | COMMUNICATION CONTROL EQUIPMENT | |
US5081373A (en) | Circuit and method for sampling digital data | |
US4333176A (en) | Data extraction means for use in a data transmission system | |
US4271510A (en) | Shift-register transmitter for use in a high speed, low noise digital data communication system | |
EP0237680A2 (en) | Event distribution and combination system | |
US4229623A (en) | Receiving means for use in a high speed, low noise digital data communication system | |
EP0367284A2 (en) | Reconfigurable output port | |
JPH0591146A (en) | Serial data transfer device | |
US20020010820A1 (en) | Two wire mixed signal bi-directional bus interface | |
US4669101A (en) | High speed counter with decoding means and means for selecting second and higher order counter stages to be toggled | |
KR900008742Y1 (en) | Arrangement for transmitting data having variable speed | |
JPH04264871A (en) | Serial interface control method | |
KR100448088B1 (en) | Clock forwarding circuit, especially reducing chip size during integration of chip | |
KR890006195Y1 (en) | Paper transfer devices of printer |
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: 19980227 Year of fee payment: 9 |
|
LAPS | Lapse due to unpaid annual fee |