JPS61109130A - Key scan control system - Google Patents

Key scan control system

Info

Publication number
JPS61109130A
JPS61109130A JP59229213A JP22921384A JPS61109130A JP S61109130 A JPS61109130 A JP S61109130A JP 59229213 A JP59229213 A JP 59229213A JP 22921384 A JP22921384 A JP 22921384A JP S61109130 A JPS61109130 A JP S61109130A
Authority
JP
Japan
Prior art keywords
key
scan
data
keyboard
mode
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
JP59229213A
Other languages
Japanese (ja)
Inventor
Kazuo Akashi
明石 一男
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP59229213A priority Critical patent/JPS61109130A/en
Publication of JPS61109130A publication Critical patent/JPS61109130A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To promote the integrated and shared use of a keyboard by allocating the data for selection of modes to an idle port of a controller having a scan type keyboard. CONSTITUTION:A microprocessor (control part) 11 for control of keyboard which controls the transfer of data between a key matrix circuit 12 and the main body of a device always transfers the data obtained through the key scan to said main body. The circuit 12 contains switches arrayed in a matrix and is scanned by the signal produced by a decoder 13 with the key address given from the control part 11. Here the 3-bit ports P0-P2 are allocated to the scan purpose among those 8-bit ports of the part 11. While a 1-bit port P7 is allocated to the mode setting purpose. Then the lock-out/roll-over mode is set by a switch 14. Thus the part 11 refers to the port P7 before scanning and then recognizes the relevant mode for scanning.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、1台のキーボードユニットにてロックアウト
/ロールオーバのモード選択可能なキースキャン制御方
式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a key scan control method that allows lockout/rollover mode selection using one keyboard unit.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

スキャンタイプのキーボー1’において、データを取込
むモードK、ロックアウトとロールオーバがある。後者
は、例えば5ミリ秒の間隔をおいて2回スキャンし、共
にONとなっていたときに、そのキーコート0が格納さ
れたバッファと前回スキャン時に押下されていたキーの
キーコードが格納されているバッファの内容とを比較す
るととくより、そのキーが押されたかもしくは離された
かが判断される。
The scan type keyboard 1' has a data capture mode K, lockout, and rollover. For example, when the latter is scanned twice with an interval of 5 milliseconds and both are turned on, the buffer in which the key code 0 is stored and the key code of the key that was pressed during the previous scan are stored. In particular, it is determined whether the key was pressed or released by comparing the contents of the buffer with the contents of the buffer.

上記方式は、タイピスト等、高速にキー人力を行なうこ
とのできるオペレータに最適であシ、比較的初心者に近
いオペレータには不向きである。即ち、現在弁している
キーを離さなくても次に押したキーデータが入力されて
し1うからである。これを解決するためには、別途ロッ
クアウトモードで動作するキーボードユニットを用意し
なければならないといった不都合を有していた。
The above method is most suitable for operators such as typists who can perform manual keystrokes at high speed, and is not suitable for operators who are relatively beginners. That is, even if the currently pressed key is not released, the next pressed key data will be input. In order to solve this problem, it is necessary to prepare a separate keyboard unit that operates in lockout mode.

〔発明の目的〕[Purpose of the invention]

本発明は上記事情に鑑みてなされたものであシ、1台の
キーボードユニットにてロックアウト/ロールオーツ?
のモード設定可能なキーホードを実現することによシ、
初心者、専任者とも共用できるキーボードユニットを提
供することを目的とする。
The present invention has been made in view of the above circumstances.It is possible to lock out/roll auto with one keyboard unit?
By realizing the mode configurable keychain,
The purpose is to provide a keyboard unit that can be shared by both beginners and experts.

〔発明の概要〕[Summary of the invention]

本発明は上記目的を実現するため、スキャンラインのキ
ーボードが持つコントローラ(マイコンを含む)の空き
デートに、モード選択(ロックアウト/ロールオーバ)
のだめのデータを割付け、外部接続されるスイッチによ
る指示の下、コントローラがこれを認識することによシ
データ取込みのモードを決定する構成とした。
In order to achieve the above object, the present invention uses mode selection (lockout/rollover) when the controller (including the microcomputer) of the Scanline keyboard has an idle date.
Nodame data is allocated, and the controller recognizes this under instructions from an externally connected switch to determine the data import mode.

このことKより、1台のキーボードユニットをロックア
ウト/ロールオーバの両モードで動作させることが出来
、初心者・専任者とも、同じキーボードユニットを共用
できる。
Because of this, one keyboard unit can be operated in both lockout and rollover modes, and both beginners and experts can share the same keyboard unit.

〔発明の実施例〕[Embodiments of the invention]

以下、図面を使用して本発明実施例につき詳細に説明す
る。第1図は本発明の実施例を示すブロック図であシ、
キーボードユニットの内部構造を示す。図において、1
1は、キーマトリクス回路12と本体(図示せず)との
データ伝送制御を行なうキーボード制御用のマイクロプ
ロセッサ(以降、単に制御部11と称する)である。制
御部11は、常時、スキャン信号(5CNo〜SCN、
  )を順次アクティブとし、ノ々ス入力端子(DBo
−DB、)ヘリターンデータを供給することにより、ど
のキーが押下されたかを検出し、スキャンによって得た
データを本体へ転送するものである。
Hereinafter, embodiments of the present invention will be described in detail using the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention.
The internal structure of the keyboard unit is shown. In the figure, 1
Reference numeral 1 denotes a keyboard control microprocessor (hereinafter simply referred to as control section 11) that controls data transmission between the key matrix circuit 12 and the main body (not shown). The control unit 11 always sends scan signals (5CNo to SCN,
) are made active one after another, and the Nonosu input terminal (DBo
-DB,) By supplying return data, it detects which key has been pressed and transfers the data obtained by scanning to the main body.

12はキーマトリクス回路である。キーマトリクス回路
12は、データキーの他にシフトキー・ファンクション
キーを構成するスイッチがマトリクス状に配列されて成
シ、それぞれにアドレスが割付けられている。図中、円
内にマトリクスの交点に配列されたキースイッチ構造が
示されている。13はデコーダである。デコーダ13は
、上記制御部11から出力されるキーアドレス(SCN
、〜SCN、  )を1個の信号に変換し、キーマトリ
クス回路12へ供給する。いわゆるスキャン信号を生成
出力する。キーマトリクス回路12から得られる出力は
制御部11が持つパス入力端子(DB、〜γ)へ供給さ
れ、いわゆるリターン信号として認識される。
12 is a key matrix circuit. The key matrix circuit 12 consists of switches constituting shift keys and function keys in addition to data keys arranged in a matrix, and addresses are assigned to each switch. In the figure, key switch structures arranged at the intersections of the matrix are shown in circles. 13 is a decoder. The decoder 13 receives a key address (SCN) output from the control unit 11.
, ~SCN, ) into one signal and supply it to the key matrix circuit 12. A so-called scan signal is generated and output. The output obtained from the key matrix circuit 12 is supplied to the path input terminals (DB, to γ) of the control unit 11, and is recognized as a so-called return signal.

尚、本発明実施例では、制御部11が持つ8ビツトポー
トのうち、3ビツト(PG  、PI+P2 )はスキ
ャンのために割付けられ、1ピツ)(P7)は、モード
設定のために割付けられている。即ち、ビット7には、
スイッチ14が外部接続され、オペレータが、このスイ
ッチ14を0N10FFすることにより、ロックアウト
/ロールオーバのモードを設定する様になっている。
In the embodiment of the present invention, among the 8-bit ports that the control unit 11 has, 3 bits (PG, PI+P2) are allocated for scanning, and 1 bit (P7) is allocated for mode setting. . That is, bit 7 has
A switch 14 is externally connected, and the operator sets the lockout/rollover mode by turning the switch 14 ON and OFF.

第2図は本発明実施例の動作を示すフローチャートであ
る。
FIG. 2 is a flowchart showing the operation of the embodiment of the present invention.

以下、第2図のフローチャートを使用して第1図に示し
た実施例の動作につき詳細に説明する。まず、制御部1
1は、スキャンを行なう前に内蔵ポートのピット7を参
照し、@1”であレバロールオーバモードと認識し、ロ
ールオーツ4によるスキャンを行なう。“O”であれば
ロックアウトモードと認識し、ロックアウトによるスキ
ャンを行なう。制御部1ノ内蔵の、tr−トのビワドア
にはオペレータによるモード選択のためのスイッチ14
が接続されておシ、例えばスイッチ14を上に倒すと1
1″、下に倒すと“0#となる様に定義すれば良い。
The operation of the embodiment shown in FIG. 1 will be explained in detail below using the flowchart in FIG. First, control section 1
1 refers to the pit 7 of the built-in port before scanning, recognizes lever rollover mode with @1, and performs a scan with roll auto 4. If it is "O", it recognizes lockout mode. , a lockout scan is performed.The control unit 1 has a built-in switch 14 on the trunk door for mode selection by the operator.
is connected, for example, when switch 14 is turned up, 1
It should be defined so that it becomes 1'' and when pushed down it becomes 0#.

上記ロックアウトモードが認識されたとき、まず、スキ
ャン中に押されているキーがあるか否かを調べる。もし
、他にキーが押されていなければ1個のキーがそのスキ
ャン中に検出されたと判断し、このスキャンラインの位
置、リターンラインの位置をコード化し制御部11内蔵
のバッファに格納する。又、スキャン中に他に押されて
いるキーを検出すると、2個以上のキーが押されたと判
断し、上記・9ツフアにデータを格納することなく完全
に無視する。更に、2個以上のキーが押されていると上
記バッファにデータは入らないが、特定の1個のキーを
除いて他の全てが離されると1個のキーのみが有効であ
るとしてその位置情報がバッファに格納される。もし、
1つのキーが既に押されておシ、その後にもう1つのキ
ーが押されて最初に押されているキーが離される前に後
で押されたキーが離されると後のキーは完全に無視され
、キーが押されなかったと判断する。このモードが選択
されたときは、何個のキーが同時に押されようと、又、
どういう順序で押されようと1回のキー人力について1
個だけがバッファに送られる。
When the lockout mode is recognized, it is first checked to see if any keys are being pressed during scanning. If no other key is pressed, it is determined that one key has been detected during the scan, and the position of this scan line and the position of the return line are coded and stored in a buffer built into the control unit 11. Also, if other keys are detected being pressed during scanning, it is determined that two or more keys have been pressed, and the data is completely ignored without being stored in the above-mentioned 9 files. Furthermore, if two or more keys are pressed, no data will be stored in the above buffer, but if all but one specific key are released, only one key is valid and its position is Information is stored in a buffer. if,
If one key is already pressed and then another key is pressed and the later pressed key is released before the first pressed key is released, the later key is completely ignored. and determines that no key was pressed. When this mode is selected, no matter how many keys are pressed at the same time,
No matter what order the keys are pressed, the power required for each key is 1.
Only the pieces are sent to the buffer.

一方、ロールオーバモードが認識された場合、上述した
様にどのキーも他の全てとは独立に判定される。即ち、
1つのキーを押したとき、2回キーボードを走査する間
待ちキーが未だ押されているか否かをチェックする。も
し押されていればキーデータはバッファへ格納される。
On the other hand, if rollover mode is recognized, any key is determined independently of all others, as described above. That is,
When one key is pressed, it is checked whether the wait key is still pressed while scanning the keyboard twice. If pressed, the key data is stored in the buffer.

何個のキーでも押すことが出来、他のキーも感知して/
Jツファへ格納される。同時に押した場合であってもキ
ーボードをスキャンする順に従って検出されバッファへ
収納されるものである。
You can press any number of keys, and other keys will be detected/
Stored in JTFA. Even if they are pressed at the same time, they are detected and stored in the buffer in the order in which the keyboard is scanned.

尚、図中、スキャンカウンタ、バッファはいずれも制御
部11に内蔵されておシ、従来より周知であるため、説
明を省略しである。
In the figure, the scan counter and buffer are both built into the control unit 11 and are well known in the art, so their explanation will be omitted.

〔発明の効果〕〔Effect of the invention〕

以上説明の如く本発明によれば1台のキーボードユニッ
トにてロックアウト/ロールオーバの2モードでの動作
が可能となシ、オヘレータの技能にあったモード選択が
可能となる。又、本発明はハート0ウエアの変更を要す
ことなく実現可能であり、キーボードの統合化、共用化
の推進に寄与する。
As described above, according to the present invention, it is possible to operate in two modes, lockout/rollover, with one keyboard unit, and it is possible to select a mode that suits the skill of the operator. Furthermore, the present invention can be implemented without requiring any changes to hardware, and contributes to the promotion of keyboard integration and common use.

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

第1図は本発明の実施例を示すブロック図、第2図は本
発明実施例の動作を示すフローチャートである。 1ノ・・・制御部(マイクロfロセッサ)、12・・・
キーマトリクス回路、13・・・デコーダ、14・・・
スイッチ。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a flow chart showing the operation of the embodiment of the present invention. 1 No. Control unit (micro f processor), 12...
Key matrix circuit, 13... decoder, 14...
switch.

Claims (1)

【特許請求の範囲】[Claims] キースイッチがマトリクス状に配列されて成るキーマト
リクス回路と、このキーマトリクス回路に対しスキャン
信号を生成出力し、リターン信号を得てキーデータの取
込みを行なう制御部とを有し、該制御部が持つポートに
データ取込みのためのモードを定義するデータビットを
割付け、外部接続されるスイッチの指定の下、制御部は
これを認識し、ロールオーバによるスキャンもしくはロ
ックアウトによるスキャンを実行することを特徴とする
キースキャン制御方式。
It has a key matrix circuit in which key switches are arranged in a matrix, and a control section that generates and outputs a scan signal to the key matrix circuit, obtains a return signal, and imports key data. A data bit that defines the mode for data acquisition is assigned to the port with which the controller is connected, and under the specifications of the externally connected switch, the control unit recognizes this and executes a rollover scan or lockout scan. Key scan control method.
JP59229213A 1984-10-31 1984-10-31 Key scan control system Pending JPS61109130A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59229213A JPS61109130A (en) 1984-10-31 1984-10-31 Key scan control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59229213A JPS61109130A (en) 1984-10-31 1984-10-31 Key scan control system

Publications (1)

Publication Number Publication Date
JPS61109130A true JPS61109130A (en) 1986-05-27

Family

ID=16888592

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59229213A Pending JPS61109130A (en) 1984-10-31 1984-10-31 Key scan control system

Country Status (1)

Country Link
JP (1) JPS61109130A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08284106A (en) * 1995-04-19 1996-10-29 Fujikura Ltd Heat pipe type snow-melting apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08284106A (en) * 1995-04-19 1996-10-29 Fujikura Ltd Heat pipe type snow-melting apparatus

Similar Documents

Publication Publication Date Title
US4609908A (en) Repeat control apparatus for a polling type serial interface keyboard apparatus
JPS61109130A (en) Key scan control system
US5702625A (en) Encoder key input device for a microwave oven and interrupt processing method using the same
US6191709B1 (en) Keyboard with separated keyboard frames and portable computer having the same
JPH07210287A (en) Keyboard device
JPS5559503A (en) Sequence controller
KR0181586B1 (en) Computer having a separable keyboard
JPS59178526A (en) System for inputting registered character string
JPS6160114A (en) Key scan system
JPS613229A (en) Data input device
US4833447A (en) Input device
JP2888289B2 (en) Keyboard function assignment change method and device to which it is applied
JP2523190Y2 (en) Key input switching circuit for telephone IC
JPH06222865A (en) Keyboard signal controller
JPH01161514A (en) Method for controlling repeating operation and double tapping of keyboard
JPS636649Y2 (en)
JPH0488416A (en) Input device
JPH0219870Y2 (en)
JPH03122709A (en) Keyboard input device
JPH03200285A (en) Electronic equipment
JPS6274117A (en) Dual keyboard encoder
JPS6315325A (en) Keyboard connection control system
JPS64130U (en)
KR970056865A (en) How to perform game mode using the remote controller
JPS61271526A (en) Luminous indication type keyboard