JPH02118815A - Keyboard controller - Google Patents

Keyboard controller

Info

Publication number
JPH02118815A
JPH02118815A JP63273418A JP27341888A JPH02118815A JP H02118815 A JPH02118815 A JP H02118815A JP 63273418 A JP63273418 A JP 63273418A JP 27341888 A JP27341888 A JP 27341888A JP H02118815 A JPH02118815 A JP H02118815A
Authority
JP
Japan
Prior art keywords
switch
information
stored
buffer
same
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP63273418A
Other languages
Japanese (ja)
Inventor
Mikito Itakura
板倉 幹人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP63273418A priority Critical patent/JPH02118815A/en
Publication of JPH02118815A publication Critical patent/JPH02118815A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To realize the quick response of a switch operation without damaging a repeating function by preventing the same information which exceeds two pieces and is continuous from being stored for the information when the switch of the keyboard is pushed down. CONSTITUTION:When a switch is scanned by a scanning circuit 12 and a switch 11 is pushed down, a detecting circuit 13 detects a switch by closing the contact of a switch. A comparing circuit 15 compares the switch information detected by the detecting circuit 13 and the preceding switch information stored in a buffer 14, and at the time of being the same switch, it is discriminated whether or not two pieces of the same information stored in the buffer 14 continuously remain. When two pieces remain, the processing of an information processor main body 16 is not completed, and therefore, the detected switch information is not stored into the buffer 14 and the scanning of the switch is executed again. Thus, without damaging a repeating function, the response of the switch operation can be realized.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はパーソナルコンビエータ、ワードプロセッサ等
の情報処理装置の入力に利用するキーボード制御装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a keyboard control device used for inputting information to information processing devices such as personal combinators and word processors.

従来の技術 従来、この種のキーボード制御装置は、押下されると接
点が閉じるスイッチと、スイッチを走査する回路と、閉
じたスイッチの接点を検出する回路と、検出したスイッ
チの情報を記憶するバッファを備え、スイッチを押下す
ると閉じた接点が検出され、そのスイッチの情報がバッ
ファに記憶される。バッファに記憶された情報は情報処
理装置の制御部が読み出すとともに消去される。読み出
した情報は情報処理装置の入力情報として種々の処理が
なされる。
2. Description of the Related Art Conventionally, this type of keyboard control device includes a switch whose contact closes when pressed, a circuit that scans the switch, a circuit that detects the closed switch contact, and a buffer that stores information about the detected switch. When a switch is pressed, a closed contact is detected and information about the switch is stored in a buffer. The information stored in the buffer is read out by the control unit of the information processing device and erased. The read information is subjected to various processes as input information to the information processing device.

このように、上記従来のキーボード制御装置でもスイッ
チが押下されるとそのスイッチに対応した情報を情報処
理装置が読み出すことが出来る。
In this way, even in the conventional keyboard control device described above, when a switch is pressed, the information processing device can read out information corresponding to the switch.

発明が解決しようとする課題 しかしながら、上記従来のキーボード制御装置では、ス
イッチが押下されたとき、あるいは押下したままの状態
のときに、スイッチに対応した情報が順次バッファに記
憶されるために、情報処理装置がバッファから情報を読
み出す速度がバッファに情報が記憶される速度よりも遅
い場合、スイッチを操作した時刻よりもそのスイッチに
対応した処理が実行される時刻が遅くなり、操作者の操
作に対する即応性がないという問題があった。
Problems to be Solved by the Invention However, in the above-mentioned conventional keyboard control device, when a switch is pressed or while it remains pressed, information corresponding to the switch is sequentially stored in a buffer. If the speed at which the processing device reads information from the buffer is slower than the speed at which information is stored in the buffer, the time at which the process corresponding to the switch is executed will be later than the time at which the switch is operated, and The problem was that there was no immediate response.

本発明はこのような従来の問題を解決するものであり、
リピート(押下した状態のときに同じスイッチを複数回
押下したのと同じ動作をする)機能を有したまま即応性
を保つことのできる優れたキーボード制御装置を提供す
ることを目的とするものである。
The present invention solves these conventional problems,
The purpose of this invention is to provide an excellent keyboard control device that can maintain quick response while having a repeat function (when pressed, performs the same action as pressing the same switch multiple times). .

課題を解決するための手段 本発明は上記目的を達成するために、押下されると接点
が閉じるスイッチと、スイッチを走査する回路と、閉じ
たスイッチを検出する回路と、スイッチ情報を記憶する
バッファと、バッファに記憶されている情報を検出した
スイッチを比較する回路を設け、リピート入力するスイ
ッチの情報な3つ以上記憶しないようにしたものである
Means for Solving the Problems In order to achieve the above objects, the present invention provides a switch whose contacts close when pressed, a circuit for scanning the switch, a circuit for detecting a closed switch, and a buffer for storing switch information. A circuit is provided to compare the information stored in the buffer with the detected switch, so that information about three or more switches that are repeatedly input is not stored.

作用 本発明は上記のような構成により次のような作用を有す
る。すなわちスイッチが押下されると、スイッチを走査
する回路と検出する回路によって押下したスイッチを検
出する。検出したスイッチの情報をバッファに記憶する
が、このときにすでにバッファに記憶されている情報と
新たに記憶する情報を比較し同じ情報であれば新たに記
憶することを行なわないようにするため、バッファには
リピート入力されるスイッチの情報が3つ以上記憶され
なくなり、スイッチの操作の即応性を保つことができる
Effects The present invention has the following effects due to the above structure. That is, when a switch is pressed, the pressed switch is detected by a circuit that scans the switch and a circuit that detects the switch. The information of the detected switch is stored in a buffer, but at this time, the information already stored in the buffer is compared with the newly stored information, and if the information is the same, the new information is not stored. The buffer does not store information about three or more switches that are repeatedly input, and the responsiveness of switch operations can be maintained.

実施例 第1図は本発明の一実施例の構成を示す図である。第2
図は本発明の一実施例の制御フローチャートである。
Embodiment FIG. 1 is a diagram showing the configuration of an embodiment of the present invention. Second
The figure is a control flowchart of one embodiment of the present invention.

第1図において、11はスイッチであり、接点の端子は
各々、スイッチを走査する回路12、閉じたスイッチを
検出する回路13に接続されている。14はスイッチ情
報を記憶するバッファでありn個の記憶素子を直列に接
続したものであるが本実施例ではn=8としてあり先入
先出(一般的にFIFOと称されている)方式の記憶装
置である。15は14に記憶されている情報と検出され
た情報とを比較する回路である。16はキーボードから
入力された情報を処理するための情報処理装置であり、
例えばパーソナルコンピュータやワードプロセッサの本
体である。
In FIG. 1, 11 is a switch, and the terminals of the contacts are respectively connected to a circuit 12 for scanning the switch and a circuit 13 for detecting a closed switch. Reference numeral 14 denotes a buffer for storing switch information, in which n memory elements are connected in series, and in this embodiment, n=8, which is a first-in, first-out (generally called FIFO) type of memory. It is a device. 15 is a circuit that compares the information stored in 14 and the detected information. 16 is an information processing device for processing information input from a keyboard;
For example, it is the main body of a personal computer or word processor.

次に上記実施例の動作について第2図の制御フローチャ
ートにより説明する。まず、走査回路12によりスイッ
チを走査する。検出回路13はスイッチ11が押下され
ているとスイッチの接点が閉じていることによりスイッ
チを検出する。比較回路15は検出回路13が検出した
スイッチ情報とバッファ14に記憶した直前のスイッチ
情報を比較し、直前に記憶したスイッチと同じスイッチ
であるかを判別する。ここで同じスイッチであるときは
、バッファ14に記憶した同じ情報が2個連続して残っ
ているかを判別する。2個残っているときは、情報処理
装置本体16の処理が済んでいないために、検出したス
イッチ情報をバッファ14に記憶せず、再びスイッチの
走査に戻る。同じ情報が1個以下のときは、検出したス
イッチ情報をバッファ14に記憶する。検出したスイッ
チ情報が直前にバッファ14に記憶した情報と異なると
きは検出した情報をバッファ14に記憶する。
Next, the operation of the above embodiment will be explained with reference to the control flowchart shown in FIG. First, the scanning circuit 12 scans the switches. When the switch 11 is pressed down, the detection circuit 13 detects the switch because the contact of the switch is closed. The comparison circuit 15 compares the switch information detected by the detection circuit 13 with the immediately previous switch information stored in the buffer 14, and determines whether the switch is the same as the switch stored immediately before. If it is the same switch, it is determined whether two consecutive pieces of the same information stored in the buffer 14 remain. If two pieces remain, the detected switch information is not stored in the buffer 14 because the processing in the information processing device main body 16 has not been completed, and the process returns to scanning the switches again. When there is one or less pieces of the same information, the detected switch information is stored in the buffer 14. When the detected switch information is different from the information stored in the buffer 14 immediately before, the detected information is stored in the buffer 14.

このようにして、上記実施例によれば、比較回路15が
バッファ14に記憶しであるスイッチ情報と新たに検出
したスイッチ情報を比較し同じスイッチ情報が連続して
2個を超えて記憶しないように制御することによりスイ
ッチの操作に対し、その処理が遅くなって行なわれると
いう問題を解決し、スイッチの操作に対し処理の即応性
が実現できるという利点を有している。
In this way, according to the above embodiment, the comparison circuit 15 compares the switch information previously stored in the buffer 14 with the newly detected switch information, and prevents the same switch information from being stored more than two times in a row. This control solves the problem that the processing is delayed in response to the switch operation, and has the advantage that the processing can quickly respond to the switch operation.

なお、上記実施例において同一情報が連続して2個まで
記憶するようにしであるのは、リピート機能をそこなう
ことがないようにするためであり、1個だけならば、ス
イッチを検出している間に情報処理装置本体16の処理
が終了してしまい、スイソチ情報がない、すなわちスイ
ッチが操作されていない状態が発生するのを防ぐためで
ある。
In the above embodiment, up to two pieces of the same information are stored in succession to prevent the repeat function from being damaged; if only one piece of information is stored, the switch is detected. This is to prevent a situation in which the processing of the information processing device main body 16 ends during that time and there is no switch information, that is, the switch is not operated.

発明の効果 本発明は上記実施例より明らかなようにキーボードのス
イッチが押下されたときの情報を記憶するとき2個を超
えて連続した同じ情報を記憶しないようにしたものであ
り、リピート機能をそこなうことなく操作者のスイッチ
操作に対する即応性を実現できるという利点を有する。
Effects of the Invention As is clear from the above embodiments, the present invention is designed to prevent more than two consecutive pieces of the same information from being stored when storing information when a keyboard switch is pressed, and has a repeat function. This has the advantage of being able to quickly respond to the operator's switch operations without any loss.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例におけるキーボード制御装置
の構成図、第2図は本方法の制御フローチャートである
。 11・・・スイッチ、12・・・スイッチ走査回路、1
3・・・スイッチ検出回路、14・・・バッファ、15
・・・比較回路、16・・・情報処理装置本体。
FIG. 1 is a block diagram of a keyboard control device in an embodiment of the present invention, and FIG. 2 is a control flowchart of the method. 11... Switch, 12... Switch scanning circuit, 1
3... Switch detection circuit, 14... Buffer, 15
. . . Comparison circuit, 16 . . . Information processing device main body.

Claims (1)

【特許請求の範囲】[Claims] キーボードのキーが押下された時、そのキーの固有情報
を検出するキー検出手段と、キーの固有情報を一時記憶
するバッファーメモリと、そのバッファーメモリへ記憶
する時、押下されたキーの固有情報と前記バッファーメ
モリに直前に記憶された情報とを比較し、両者が異なっ
ている場合に押下されたキーの固有情報を前記バッファ
ーメモリへ新たに記憶する第1の比較判定手段と、前記
第1の比較判定手段で、両者が同じである場合、同じも
のが1個有る時はその情報を前記バッファーメモリへ記
憶し、同じものが2個連続して有る時は前記バッファー
メモリへ記憶しないようにする第2の比較判定手段とを
備えたキーボード制御装置。
A key detection means that detects unique information of a key when a key on a keyboard is pressed; a buffer memory that temporarily stores the unique information of the key; and a buffer memory that temporarily stores the unique information of the key when the key is pressed; a first comparison/judgment means for comparing the information stored immediately before in the buffer memory and, if the two are different, newly storing unique information of the pressed key in the buffer memory; When the two items are the same, the comparison/determination means stores the information in the buffer memory if there is one item that is the same, and does not store the information in the buffer memory if there are two items that are the same in succession. A keyboard control device comprising a second comparison and determination means.
JP63273418A 1988-10-28 1988-10-28 Keyboard controller Pending JPH02118815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63273418A JPH02118815A (en) 1988-10-28 1988-10-28 Keyboard controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63273418A JPH02118815A (en) 1988-10-28 1988-10-28 Keyboard controller

Publications (1)

Publication Number Publication Date
JPH02118815A true JPH02118815A (en) 1990-05-07

Family

ID=17527620

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63273418A Pending JPH02118815A (en) 1988-10-28 1988-10-28 Keyboard controller

Country Status (1)

Country Link
JP (1) JPH02118815A (en)

Similar Documents

Publication Publication Date Title
KR920016935A (en) Integrated keyboard and pointing mechanism system with automatic mode switching
EP0389175A3 (en) Data prefetch system
KR960038583A (en) Output control device
CA2056356A1 (en) Interruption handling system
US4841454A (en) Display controller with a variable scrolling speed, and method for operating same
JPH02118815A (en) Keyboard controller
US5241646A (en) Systems for changing hardware parameters using sub-CPU for sensing specialized key inputs and main CPU for changes
JPS61134828A (en) Key input device
JP3321955B2 (en) Keyboard device
JPS6237406B2 (en)
JPH03105503A (en) Programmable controller
JPS6155725A (en) Keyboard device
KR930005358A (en) How to prevent chatter in the key system
JPH0194415A (en) Digital signal input processing system
JP2617621B2 (en) Low-speed / high-speed interface circuit
JPS5969811A (en) Programmable controller
JPS5987534A (en) Scanning method of keyboard device
JPH03296104A (en) Programmable controller system
JPH08202525A (en) Device and method for screen input
JPH06224971A (en) Data change detection system
JPH03201131A (en) Loop instruction processing system
JPH10173515A (en) Fpga device
JPH04215115A (en) Information processor
KR940016151A (en) Loop playback system for digital audio
JPH03167619A (en) Keyboard with touch sensor