JPS61134828A - Key input device - Google Patents

Key input device

Info

Publication number
JPS61134828A
JPS61134828A JP59256402A JP25640284A JPS61134828A JP S61134828 A JPS61134828 A JP S61134828A JP 59256402 A JP59256402 A JP 59256402A JP 25640284 A JP25640284 A JP 25640284A JP S61134828 A JPS61134828 A JP S61134828A
Authority
JP
Japan
Prior art keywords
key
data
ram
mpu2
function
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
JP59256402A
Other languages
Japanese (ja)
Inventor
Takashi Tsunoda
角田 孝
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP59256402A priority Critical patent/JPS61134828A/en
Publication of JPS61134828A publication Critical patent/JPS61134828A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain easily many functions with the same key by changing the function of the same key according to the push time duration of the key. CONSTITUTION:A key input device contains a keyboard 1 and a microprocessor MPU2, and the MPU2 has a primary memory 3 consisting of an RAM and an ROM. the ROM stores a control program and the RAM stores temporarily the processing data. Furthermore the RAM is used as a counter area CE where the push time width of a eky is shown. Then the key data are sent to a host computer via a circuit interface 4, and the key input is confirmed via a display device 5. The push of an optional key on the keyboard 1 is discriminated by the MPU2. Then the key data is read again when a fixed period of time passed for decision whether the same key is pushed or not. Thus the key data is decided. In such a way, the key function can e changed according to the push time width of a key. This attains many functions with the same key.

Description

【発明の詳細な説明】 [技術分野] 本発明は入力装置に係り、さらに詳細にはキーの押し下
げ時間によりキーの機能が変化するキー入力装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to an input device, and more particularly to a key input device in which the function of a key changes depending on how long the key is pressed down.

[従来技術] 近年、半導体技術の進歩に伴い、小型で多機能を備える
電子機器の開発が増加するにつれて。
[Prior Art] In recent years, with the advancement of semiconductor technology, the development of compact and multifunctional electronic devices has increased.

キーボードなどの入力装置も小型化の傾向にある。Input devices such as keyboards are also becoming smaller.

しかし、多機能を備える電子機器のキー入力装置では、
キーの数はむしろ増える傾向にあるためキーの形状を小
さくするなどして小型化を図っている。しかし、キーの
形状は人間の指の大きさを考え合わせれば必然的に最小
の大きさが決定されるため、キーの数を増やさないよう
に他のキーと併用して1つのキーに複数の機能をもたす
ように工夫されている。
However, in the key input device of electronic equipment with multiple functions,
Since the number of keys tends to increase, efforts are being made to reduce the size of the keys by making the shapes smaller. However, the shape of the key is inevitably determined to be the minimum size considering the size of the human finger, so to avoid increasing the number of keys, it is necessary to use it in conjunction with other keys to It is designed to be functional.

例えば囚キーを単に入力すればアルファベットの大文字
のA Hとなり、m+iと入力するとアルファベットの
小文字のa”′となるといった具合である。
For example, simply inputting the key will produce the uppercase letter AH, and inputting m+i will produce the lowercase letter a"'.

しかし、このような方法では操作回数が増えたり、シフ
トロック式のキーボードなどでは現在のモードを確認し
なければならないなど操作しにくい点が多くあった。
However, this method has many disadvantages, such as the number of operations required, and the need to check the current mode with shift-lock keyboards.

[目的] 本発明は上述の欠点に鑑みなされたもので、キーの押し
下げ時間によりキーの機能が変化するキー入力装置を提
供することにある。
[Objective] The present invention was made in view of the above-mentioned drawbacks, and an object of the present invention is to provide a key input device in which the function of a key changes depending on the time the key is pressed.

[実施例] 第1図は本発明のキー入力装置のブロック図である。図
において、lはキーボード、2はマイクロプロセッサ(
以下MPUと称す)である。マイクロプロセッサ2は主
メモリ3を備える。主メモリ3はRAM、ROMの2種
のメモリから成り、ROMには第2図に示す制御プログ
ラムが格納されている。一方、RAMは処理データの一
時保存に使用される他、キーの押下げ時間長を示すカウ
ンタエリアCEとして使用される。4はホストコンピュ
ータにキーデータを送信する回線インタフェース、5は
キー入力を確認するための表示器である。
[Embodiment] FIG. 1 is a block diagram of a key input device of the present invention. In the figure, l is the keyboard, 2 is the microprocessor (
(hereinafter referred to as MPU). Microprocessor 2 includes main memory 3 . The main memory 3 consists of two types of memories, RAM and ROM, and the ROM stores a control program shown in FIG. 2. On the other hand, the RAM is used not only to temporarily store processing data but also as a counter area CE that indicates the length of time the key is pressed. 4 is a line interface for transmitting key data to the host computer, and 5 is a display for confirming key input.

今、キーボード1上のある任意のキーが押され   I
ると、MPU2とキーボードを接続するバスを通してM
PU2にキー信号があったことが知らされる。MPU2
はどのキーが押されているかを判別すると、一定時間後
に再びバスを通してキーデータを読み込み、同一キーが
まだ押し下げられた状態にあるかどうかを判断してキー
データを決定した後1回線インタフェース4を通してホ
ストコンピュータにキーデータを送信する。
Now, if any key on keyboard 1 is pressed, I
Then, the M
PU2 is informed that there is a key signal. MPU2
determines which key is pressed, reads the key data again through the bus after a certain period of time, determines the key data by determining whether the same key is still in the pressed state, and then reads the key data through the 1-line interface 4. Send key data to the host computer.

さらに詳細な動作をマイクロコンピュータMPUの実行
する制御フローを示す第2図のフローチャートを用いて
説明する。
More detailed operations will be explained using the flowchart of FIG. 2 showing the control flow executed by the microcomputer MPU.

第2図のステップ1において、MPU2はキーボードl
からの情報をバスを通して定期的に読み取る。ここでキ
ー入力有りと判断されると、ステップ2においてどのキ
ーかを判別する。そしてRAMのカウンタエリアCEに
カウント値として特定値Mをセットする(ステップ3)
、ステップ4ではカウンタエリアCEの値を1だけ減じ
、その値が零になったかどうかを判別する(ステップ5
)、ステップ6では同一キーが引き続き押され続けてい
るかをバスを通して読み取りチェックする。もし押され
続けていなければ第1のキー(例。
In step 1 of FIG. 2, the MPU 2 uses the keyboard l.
periodically reads information from the bus through the bus. If it is determined here that there is a key input, it is determined in step 2 which key it is. Then, a specific value M is set as a count value in the counter area CE of the RAM (step 3).
, in step 4, the value in the counter area CE is decreased by 1, and it is determined whether the value has become zero (step 5).
), and in step 6, it is checked through the bus whether the same key is being pressed continuously. If it is not held down, press the first key (e.g.

えばアルファベットの大文字)が入力されたと解釈し1
表示器5にキーデータを表示しくステップ7)、ホスト
コンピュータに回線インタフェース4を通して対応する
キーデータが送信される(ステップ8)。
For example, it is interpreted that a capital letter of the alphabet) has been input.
The key data is displayed on the display 5 (step 7), and the corresponding key data is transmitted to the host computer through the line interface 4 (step 8).

しかし、ステップ6において同一キーがいまだに押され
続けられていると判断されるとステップ4に戻り、前記
カウンタエリアCEの内容を再び1だけ減算して、前記
と同様のループを繰り返す。
However, if it is determined in step 6 that the same key is still being pressed, the process returns to step 4, the content of the counter area CE is again subtracted by 1, and the same loop as above is repeated.

ステップ5でメモリの内容が零となった時点で第2のキ
ーとして扱われ、ステップ9に移り、第2のキー(例え
ばアルファベットの小文字)が入力されたと解釈し表示
器5に表示して、ステップ7において、ホストコンピュ
ータに対応するキーデータが送信される。・ 第3図はキー入力時のタイミングチャートを示し、キー
の押下されている時間長によりキー機能を決定する概念
を示す。図に示す例はアルファベット“A”と小文字の
“a”′について注目し、時間の関係をいまT1≦T2
とした場合である。Tl程度の時間幅であれば、アルフ
ァベットの大文字“A”、TIを越えT2程度以上の時
間幅であればアルファベット小文字11 aHとして処
理する。
When the contents of the memory become zero in step 5, it is treated as a second key, and the process moves to step 9, where it is interpreted that the second key (for example, a lowercase letter of the alphabet) has been input and is displayed on the display 5. In step 7, the corresponding key data is sent to the host computer. - Figure 3 shows a timing chart during key input, and shows the concept of determining the key function based on the length of time the key is pressed. The example shown in the figure focuses on the alphabet “A” and the lowercase letter “a”, and the time relationship is now T1≦T2.
This is the case. If the time width is about Tl, it is processed as an uppercase letter "A", and if the time width exceeds TI and is about T2 or more, it is processed as a lowercase letter 11aH.

一方、押下げ時間に従うキー機能の決定は、第4図、第
5図に示すように回路的にも実現できる。構成を概説す
れば、第4図はキーボードlとMPU2の間にキー判別
回路6を加えた構成図であり、第5図はキー判別回路6
の詳細な構成例を示したものである。図において、10
はキーボード上の1個のキースイッチに対応するもので
あり、11はインバータ回路、12はANDゲート回路
、13はクロック発生器、14は4ビツトのカウンタ、
15は4ビツトのデコーダ、16は立ち下がりクロック
でラッチするラッチ回路で、この出力はMPU2の入力
ボートに接続されている。動作を説明すれば、スイッチ
10が押し下げられると、インバータ回路11の出力は
HIGHとなり、ANDゲート12が開かれ、発振器1
3の出力がカウンタ14のクロック端子に入力される。
On the other hand, determining the key function according to the pressing time can also be realized using a circuit as shown in FIGS. 4 and 5. To summarize the configuration, FIG. 4 is a configuration diagram in which a key discrimination circuit 6 is added between the keyboard 1 and the MPU 2, and FIG.
This figure shows a detailed configuration example. In the figure, 10
corresponds to one key switch on the keyboard, 11 is an inverter circuit, 12 is an AND gate circuit, 13 is a clock generator, 14 is a 4-bit counter,
15 is a 4-bit decoder, 16 is a latch circuit that latches at a falling clock, and the output of this is connected to the input port of MPU2. To explain the operation, when the switch 10 is pressed down, the output of the inverter circuit 11 becomes HIGH, the AND gate 12 is opened, and the oscillator 1
3 is input to the clock terminal of the counter 14.

一方、インバータ回路11の出力はカウンタ     
114のクリア端子に接続されているため、スイッチl
Oが押し下げられていないときはカウンタ14はクリア
され、スイッチ10が押下されるとカウンタ14はカウ
ントを開始する。カウンタ14の出力はデコーダ15に
よってデコードされ、その出力はラッチ回路16に接続
されている。ラッチ回路はスイッチ10のOFF信号、
即ち、立ち下がり信号により入力データをラッチする。
On the other hand, the output of the inverter circuit 11 is
Since it is connected to the clear terminal of 114, the switch l
When O is not pressed down, the counter 14 is cleared, and when the switch 10 is pressed down, the counter 14 starts counting. The output of the counter 14 is decoded by a decoder 15, and its output is connected to a latch circuit 16. The latch circuit is the OFF signal of the switch 10,
That is, input data is latched by a falling signal.

第6図にタイミングチャートの1例を示す、この例では
カウンタ14の値が5になった時点でスイッチがオフさ
れているため、ラッチ回路16には5の信号がラッチさ
れる。MPU2はこの信号を読み込みj例えばデコーダ
の出方が5より小さい、5と10の間、10より大きい
、などを基準としてキー機能を判定しキーデータを表示
器5に表示するとともに、回線インタフェース4を通し
てホストコンピュータに送信する。
An example of a timing chart is shown in FIG. 6. In this example, the switch is turned off when the value of the counter 14 reaches 5, so a signal of 5 is latched in the latch circuit 16. The MPU 2 reads this signal and determines the key function based on, for example, whether the decoder output is smaller than 5, between 5 and 10, or larger than 10, etc., and displays the key data on the display 5, and also displays the key data on the line interface 4. to the host computer through.

なお、実施例では文字キーのキー機能の変更について言
及したが、本発明を適用できるキーの種類には何等限定
がなく、ファンクションキーにも本発明を適用できるこ
とは勿論である。
Although the embodiments have referred to changing the key functions of character keys, there is no limitation to the types of keys to which the present invention can be applied, and it goes without saying that the present invention can also be applied to function keys.

[効果] 以上の説明から明らかなように本発明によれば、同一キ
ーでキーの押し下げ時間幅によってキーの機能を変化さ
せるので、同一キーに多機能を与えることができる。し
かもこの機能は他のキーと共働させて実現する必要もな
いので、1つ当りのキースペースを大きくとることがで
きる。
[Effects] As is clear from the above description, according to the present invention, the function of the same key is changed depending on the length of time the key is pressed, so that the same key can be provided with multiple functions. Furthermore, since this function does not need to be realized in cooperation with other keys, a large key space can be taken up for each key.

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

ts1図は本発明のキー入力装置の一実施例を示すブロ
ック図、 第2図はキー機能判断の制御を示すフローチャ − ト
 、 第3図はキー入力時における押し下げ時間とキー機能の
変化を示すタイミングチャート第4図は判別回路で本発
明を実現する場合の実施例を示すブロック図、 第5図は判別回路の詳細を示す回路図、第6図はキー入
力時のタイミングチャートである。
Fig. ts1 is a block diagram showing an embodiment of the key input device of the present invention, Fig. 2 is a flowchart showing control of key function judgment, and Fig. 3 shows changes in key function and pressing time during key input. Timing Chart FIG. 4 is a block diagram showing an embodiment in which the present invention is implemented using a discrimination circuit, FIG. 5 is a circuit diagram showing details of the discrimination circuit, and FIG. 6 is a timing chart for key input.

Claims (1)

【特許請求の範囲】[Claims] キーの押し下げ時間を判別する判別手段と、この判別手
段が判別する時間によりキーの機能を決定する手段を備
えるキー入力装置。
A key input device comprising: a determining means for determining a key press time; and a means for determining a key function based on the time determined by the determining means.
JP59256402A 1984-12-06 1984-12-06 Key input device Pending JPS61134828A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59256402A JPS61134828A (en) 1984-12-06 1984-12-06 Key input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59256402A JPS61134828A (en) 1984-12-06 1984-12-06 Key input device

Publications (1)

Publication Number Publication Date
JPS61134828A true JPS61134828A (en) 1986-06-21

Family

ID=17292177

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59256402A Pending JPS61134828A (en) 1984-12-06 1984-12-06 Key input device

Country Status (1)

Country Link
JP (1) JPS61134828A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63284678A (en) * 1987-05-18 1988-11-21 Pfu Ltd Graphic input processing system
JPH02230018A (en) * 1989-03-02 1990-09-12 Matsushita Electric Ind Co Ltd Safety device of burner
JPH03156627A (en) * 1989-11-15 1991-07-04 Matsushita Electric Ind Co Ltd Character input device
JPH05256447A (en) * 1993-01-29 1993-10-05 Matsushita Electric Ind Co Ltd Safety device for combustion machine
EP0957425A1 (en) * 1998-05-11 1999-11-17 Telefonaktiebolaget Lm Ericsson Keyboard for touch typing using only one hand
WO1999065212A1 (en) * 1998-06-09 1999-12-16 Qualcomm Incorporated System and method for character case control in a wireless communication device
EP1215562A2 (en) * 2000-12-13 2002-06-19 SAMSUNG ELECTRONICS Co. Ltd. Device and method for controlling menu navigation on screen by using directional button

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63284678A (en) * 1987-05-18 1988-11-21 Pfu Ltd Graphic input processing system
JPH07122907B2 (en) * 1987-05-18 1995-12-25 株式会社ピ−エフユ− Graphic input processing device
JPH02230018A (en) * 1989-03-02 1990-09-12 Matsushita Electric Ind Co Ltd Safety device of burner
JPH03156627A (en) * 1989-11-15 1991-07-04 Matsushita Electric Ind Co Ltd Character input device
JPH05256447A (en) * 1993-01-29 1993-10-05 Matsushita Electric Ind Co Ltd Safety device for combustion machine
EP0957425A1 (en) * 1998-05-11 1999-11-17 Telefonaktiebolaget Lm Ericsson Keyboard for touch typing using only one hand
WO1999065212A1 (en) * 1998-06-09 1999-12-16 Qualcomm Incorporated System and method for character case control in a wireless communication device
US6212412B1 (en) 1998-06-09 2001-04-03 Qualcomm Incorporated System and method for character case control in a wireless communication device
EP1215562A2 (en) * 2000-12-13 2002-06-19 SAMSUNG ELECTRONICS Co. Ltd. Device and method for controlling menu navigation on screen by using directional button
EP1215562A3 (en) * 2000-12-13 2006-06-07 SAMSUNG ELECTRONICS Co. Ltd. Device and method for controlling menu navigation on screen by using directional button

Similar Documents

Publication Publication Date Title
JPS61134828A (en) Key input device
JPS6097387A (en) Character size specification system
KR880000422B1 (en) Matrix key and data selector
KR0132836B1 (en) Small strorage apparatus
EP0172343A2 (en) Digital contrast control circuit for display unit
KR100606758B1 (en) apparatus and method for inputting text in a mobile communication terminal
JPH06251132A (en) Interface device
JP2587918Y2 (en) Mobile terminal device
KR19990070776A (en) How to Handle Toggle Keys on Your Computer Keyboard
KR890007274Y1 (en) Contrast control circuits of crt display devices
JPH03105384A (en) Display control system
JPH02131623A (en) Keyboard for inputting character string
JPS6123230A (en) Cursor shift system
JP2000181599A5 (en) Display device and its display control method and program
JPH0346021A (en) Guidance display device
KR960001754B1 (en) Input/output control method of secret data in small storage
KR890006179Y1 (en) Keyboard for computer that have simple calculation capability
JPS6113335A (en) Controlling system of input display
JPH01207815A (en) Data processor
JPH02230294A (en) Scrolling control system for display
JPS58158686A (en) Cursor control system for character display unit
WO2005106631A1 (en) Character input method and apparatus
JPH0294947A (en) Data communication equipment
CN105955505A (en) Character input method and apparatus for financial POS device
JPS6346868B2 (en)