JPH03156518A - Keyboard controller - Google Patents

Keyboard controller

Info

Publication number
JPH03156518A
JPH03156518A JP1295513A JP29551389A JPH03156518A JP H03156518 A JPH03156518 A JP H03156518A JP 1295513 A JP1295513 A JP 1295513A JP 29551389 A JP29551389 A JP 29551389A JP H03156518 A JPH03156518 A JP H03156518A
Authority
JP
Japan
Prior art keywords
key
special
keyboard
switch
cpu
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.)
Granted
Application number
JP1295513A
Other languages
Japanese (ja)
Other versions
JP2814621B2 (en
Inventor
Masaaki Hanaoka
正明 花岡
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP1295513A priority Critical patent/JP2814621B2/en
Publication of JPH03156518A publication Critical patent/JPH03156518A/en
Application granted granted Critical
Publication of JP2814621B2 publication Critical patent/JP2814621B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To obtain a keyboard controller free from contradiction between normal key input and special key input by sending a corresponding key code to an I/O port different between the normal state and the special state of a one-chip microcomputer by transmitting means different between them. CONSTITUTION:When a general key 3 is depressed in the normal state, its key code is sent to an I/O port 1 of a one-chip microcomputer 4 by a general key code transmitting means 5 and is received by a CPU 15. If a special key 2 is depressed in the normal state, the special state is set, and this setting is reported to a CPU 15 through an I/O port 2 of the microcomputer 4 by a special key state transmitting means 6. When another key is depressed in such a state, a corresponding assigned special key code is reported to the CPU 15 through an I/O port 3 of the microcomputer 4 by a special/general key state transmitting means 7. Consequently, the system is controlled without an influence on an application operated in the computer.

Description

【発明の詳細な説明】 〔産業上の利用分野J 本発明は、CPU、メモリー、入出装置、外部記憶装置
1表示装置、キーボード、電源装置等の電子装置を持つ
携帯型コンピュータのキーボードの制御方式に関わり、
更に言うならば、特殊キースイッチを備えたキーボード
のキーコード、または状態の送信装置に関するものであ
る。
[Detailed Description of the Invention] [Industrial Application Field J] The present invention relates to a control system for a keyboard of a portable computer having electronic devices such as a CPU, memory, input/output device, external storage device, display device, keyboard, power supply device, etc. involved in
More particularly, it relates to a key code or status transmitting device for a keyboard with special key switches.

【従来の技術1 キーボードはコンピュータに於ける最も一般的な入力装
置である。キーボードは、各々が電気的にオン・オフを
検出することが出来る複数のキースイッチが適当な位置
に配置されたキーボードスイッチと、前記キーボードス
イッチを監視し、前記キースイッチのオン・オフを検出
して、押された場合、または離された場合に、各キース
イッチのオン・オフに対応するキーコードを本体に知ら
れる、1チップマイコンから成るのが一般的である。
[Prior Art 1] A keyboard is the most common input device in computers. The keyboard includes a plurality of key switches arranged at appropriate positions, each of which can electrically detect on/off, and a keyboard that monitors the keyboard switches and detects whether the key switches are on or off. Generally, the key switch is made up of a one-chip microcomputer whose main body knows the key code that corresponds to the on/off state of each key switch when it is pressed or released.

前記lチップマイコンは、ROM、RAM、I/O、C
PUコアから成り、一つでプログラムの実行及び入出操
作が出来るのが特徴である。
The l-chip microcomputer has ROM, RAM, I/O, C
It consists of a PU core, and is characterized by its ability to execute programs and perform input/output operations.

キーボードに1チップマイコンを使ってキーボードの制
御をさせる方法は、本体CPUのスルーブツトを向上さ
せる最も安価な方法である。
Using a 1-chip microcomputer to control the keyboard is the cheapest way to improve the throughput of the main body's CPU.

前記キースイッチには、電気的にショート状態とオーブ
ン状態があり、前記キースイッチが押されることにより
電気的にショート状態になり、前記キースイッチが離さ
れると電気的にオーブン状態になる。電気的にショート
状態をオン、電気的にオーブン状態をオフと呼ぶ。
The key switch has an electrically shorted state and an oven state. When the key switch is pressed, the electrically shorted state is entered, and when the key switch is released, the electrically oven state is entered. An electrically shorted state is called on, and an electrically oven state is called off.

キーボードにおいて一つのキースイッチが押されると、
そのキースイッチはオンになって、キースイッチが押さ
れたことが前記lチップマイコンによって認識される1
1記lチップマイコンは前記キースイッチが押されたこ
とを示す情報を前記CPUに送る。
When one key switch is pressed on the keyboard,
The key switch is turned on, and the L chip microcomputer recognizes that the key switch has been pressed.
1. The chip microcomputer sends information indicating that the key switch has been pressed to the CPU.

また、前記キーボードにおいて押されていたキースイッ
チが離されると、そのキースイッチはオフになって、キ
ースイッチが離されたことが前記1チップマイコンによ
って認識される。前記lチップマイコンは前記キースイ
ッチが離されたことを示す情報を前記CPUに送る。
Further, when a key switch that has been pressed on the keyboard is released, the key switch is turned off, and the one-chip microcomputer recognizes that the key switch has been released. The l-chip microcomputer sends information indicating that the key switch has been released to the CPU.

以上のようにして本体のCPUはキースイッチが押され
たこと、離されたことを知ることが出来る。
In this manner, the CPU of the main body can know whether a key switch has been pressed or released.

従来のコンピュータに於けるキーボードは、約100個
程のキースイッチをもち、コンピュータ本体とケーブル
で接続されているものが一般的である。この様なキーボ
ードの構成においては、前記キースイッチのオンまたは
オフはコード化された情報にとして本体コンピュータに
送られることが一般的である。このコードのことをキー
コードと呼ぶ、キーコードの伝達手段はシリアル通信に
よるところが一般的である。
The keyboard of a conventional computer typically has about 100 key switches and is connected to the computer main body by a cable. In such a keyboard configuration, the on/off status of the key switch is generally sent to the main computer as coded information. This code is called a key code, and the means of transmitting the key code is generally serial communication.

例えば、100個のキースイッチをもったキーボードの
場合を考えると、各キースイッチのオン及びオフを知ら
せるためのキーコードは200個必要となる。そしてこ
れらのキーコードは、R5−232Cの様なシリアル通
信によってコンピュータ本体に送られる。
For example, in the case of a keyboard with 100 key switches, 200 key codes are required to notify the on/off status of each key switch. These key codes are then sent to the computer main body via serial communication such as R5-232C.

コンピュータにおけるキーボードとコンピュータ本体と
の動作上の基本的関係は上記に述べたとうりであるが、
一方で、コンピュータの形態は。
The basic operational relationship between the computer keyboard and the computer itself is as described above.
On the other hand, what is the form of a computer?

コンピュータに関係する電子部品の小型化、低消費電力
化、さらには実層技術の向上によって、CPU、メモリ
ー、入出装置、外部記憶装置、表示装置、キーボード、
電源装置がコンパクトに実層された。いわゆる携帯型コ
ンピュータが実現されるようになった。
Due to the miniaturization and reduction in power consumption of electronic components related to computers, as well as improvements in actual technology, the CPU, memory, input/output devices, external storage devices, display devices, keyboards,
The power supply device is compactly layered. So-called portable computers have come to be realized.

携帯型コンピュータにおいては、キーボードがコンピュ
ータ本体と同じケースに入っている場合が多く、前記キ
ーコードの伝達手段はシリアル通信のようなものではな
くて、前記lチップマイコンから直接、前記CPUに送
られる。即ち、前記1チップマイコンのI10ポートが
前記CPUのI/Oポートへデータラッチ、バッファ等
を経由して接続されていて、これらI/Oポートを経由
して、前記キーコードが送られる。
In portable computers, the keyboard is often housed in the same case as the computer itself, and the means of transmitting the key code is not something like serial communication, but is sent directly from the l-chip microcomputer to the CPU. . That is, the I10 port of the one-chip microcomputer is connected to the I/O port of the CPU via a data latch, buffer, etc., and the key code is sent via these I/O ports.

一方、携帯型コンピュータにおいては、その携帯性を一
層向上させるためや、使用感の向上のために、従来の機
能の他にシステムを制御する機能がキーボードに要求さ
れる。
On the other hand, in portable computers, in order to further improve portability and usability, the keyboard is required to have a function for controlling the system in addition to the conventional functions.

即ち、CPUスピードの変更1表示装置の切り替え、さ
らには低消費電力化のための制御等、をキーボードを通
して行いたいという強い要求がある。
That is, there is a strong demand for changing CPU speed, switching display devices, and controlling for lower power consumption through the keyboard.

例^ば、従来CPUスピードの変更や表示装置の切り替
えは、特別に設けられたスイッチによって行なわれてい
たが、スイッチのためのスペースを少なくするためや、
簡単にこれらの制御が行なうために、キーボードからの
入力によってこれらのシステムに関する制御を行なうこ
とが考えられる。
For example, in the past, changing the CPU speed or switching the display device was done using a specially provided switch, but in order to reduce the space for the switch,
In order to easily control these systems, it is conceivable to control these systems by inputting from a keyboard.

この様子をもう少し詳しく説明するために、CPUスピ
ードの変更を例に取って第4図に従って説明する。
In order to explain this situation in more detail, a change in CPU speed will be taken as an example and explained according to FIG.

第4図において、101はキーボードスイッチ、102
は1チップマイコン、103はスキャン線、104はリ
ード線、105はデータバッファ、106はステータス
バッファ、107はシステムバス、tOSはCPU、1
09はRAM、110はキーバッファ、111はキーバ
ッファポインター、112はキーステータスフラグ、1
13はコントロールキー、114はシフトキー、115
はHキー、116はSキー、である。
In FIG. 4, 101 is a keyboard switch, 102
is a 1-chip microcomputer, 103 is a scan line, 104 is a lead line, 105 is a data buffer, 106 is a status buffer, 107 is a system bus, tOS is a CPU, 1
09 is RAM, 110 is a key buffer, 111 is a key buffer pointer, 112 is a key status flag, 1
13 is a control key, 114 is a shift key, 115
is the H key, and 116 is the S key.

前記キーボードスイッチ(101)は複数のキースイッ
チから成り、各キースイッチは前記スキャン線(103
)によって構成される行の一つにそのスイッチの一端を
接続されており、他の一端は前記リード!!(104)
によって構成される例の一つに接続されている。
The keyboard switch (101) is composed of a plurality of key switches, and each key switch is connected to the scan line (103).
) is connected one end of that switch to one of the lines formed by the lead, and the other end is connected to said lead! ! (104)
Connected to one of the examples configured by

前記lチップマイコン(102)は前記スキャン線(1
04)に一つを電気的に選択し、選択された行に接続さ
れているキースイッチのオン・オフを前記リード線(1
02)を読むことに依って電気的に認識することが出来
る。あるキースイッチが押された場合、前記lチップマ
イコンはそのキースイッチに対応するキーコードを、前
記データバッファ(105)に出力すると同時に、前記
ステータスバッファ(106)の前記データバッファ(
105)のキーコードが入っていることを示すバッファ
エンプティフラグを1にする。
The l-chip microcomputer (102) connects the scan line (1
04), and turn on/off the key switch connected to the selected row using the lead wire (1).
It can be electrically recognized by reading 02). When a certain key switch is pressed, the l-chip microcomputer outputs the key code corresponding to the key switch to the data buffer (105), and at the same time outputs the key code corresponding to the key switch to the data buffer (105) of the status buffer (106).
The buffer empty flag indicating that the key code of 105) is set to 1.

前記バッファエンプティフラグが1にになると、前記C
PU (108)に対してキーボード割り込みが入り、
キーボードサービスルーチンが起動されて、前記データ
バッファ(105)に入っているキーコードを読み出す
、読みだされたキーコードは前記キーバッファポインタ
ー(111)に依ってポイントされている前記キーバッ
ファ(110)の中に入れられる。その後、前記キーバ
ッファポインター(111)は前記キーバッファの次の
位置をポイントするように更新される。
When the buffer empty flag becomes 1, the C
A keyboard interrupt occurs to PU (108),
A keyboard service routine is activated to read the key code contained in the data buffer (105), and the read key code is transferred to the key buffer (110) pointed to by the key buffer pointer (111). can be placed inside. The key buffer pointer (111) is then updated to point to the next location of the key buffer.

キーボードにおいて、シフトキーやコントロールキーは
ステータスキーと呼ばれ、前記キーバッファ(110)
にそのキーコードが入れられるのではなく、前記ステー
タスフラッグ(112)にその状態が記録される0例え
ば、前記コントロールキー(113)が押されると、そ
のキーコードを検出したキーボードサービスルーチンは
前記キーステータスフラグ(112)の前記コントロー
ルキー(113)に対応したコントロールキービットを
1にする。前記コントロールキー(113)が離される
とそのキーコードを受は取った前記キーボードサービス
ルーチンは前記コントロールキービットを0にする。シ
フトキーについても同様に前記キーステータスフラグ(
112)内のシフトキービットに依ってその状態が記録
される。
On a keyboard, the shift key and control key are called status keys, and are stored in the key buffer (110).
For example, if the control key (113) is pressed, the keyboard service routine detecting that key code will record its state in the status flag (112). The control key bit corresponding to the control key (113) of the status flag (112) is set to 1. When the control key (113) is released, the keyboard service routine that received the key code sets the control key bit to 0. Similarly, for the shift key, the key status flag (
The state is recorded by the shift key bit in 112).

システムとして前記CPtJ (108)のスピードの
切り替えを、前記コントロールキー(113)と前記シ
フトキー(114)が同時に押されていて前記Hキー(
115)が押されたとき高速スピードを選択し、前記コ
ントロールキー(113)と前記シフトキー(114)
が同時に押されていて前記Sキー(l l 6)が押さ
れたとき低速スピードを選択されると定義されていると
する。
The system switches the speed of the CPtJ (108) when the control key (113) and the shift key (114) are pressed at the same time and the H key (108) is pressed.
115) is pressed to select high speed, said control key (113) and said shift key (114)
Suppose that it is defined that when the S key (l l 6) is pressed at the same time, the low speed is selected.

前記キーボードサービスルーチンは入力されたキーが前
記Hキー(115)か前記Sキー(116)かを調べて
、それらのキーであるときには前記キーステータスフラ
グ(112)内のコントロールキービットとシフトキー
ビットが共に1であることを調べ、それらが共に1であ
る場合、前記Hキー(115)が入力されていればCP
Uを高速スピードに、前記Sキー(116)が入力され
ていればCPUを低速スピードに設定する。
The keyboard service routine checks whether the input key is the H key (115) or the S key (116), and if it is one of these keys, the control key bit and shift key bit in the key status flag (112) are set. Check that they are both 1, and if they are both 1, if the H key (115) is input, the CP
U is set to high speed, and if the S key (116) is input, the CPU is set to low speed.

従来の携帯型コンピユータは以上の様にして、システム
のコントロールをキーボードから行っていた。
In conventional portable computers, the system was controlled from the keyboard in the manner described above.

[発明が解決しようとする課題J しかし、前述の従来技術では以下のような問題点がある
[Problems to be Solved by the Invention J] However, the above-mentioned prior art has the following problems.

コンピユークシステムにおいて、システムの制御を行う
ように定義されたキー人力の組み合わせが、そのコンピ
ュータシステムで動くアプリケーションにおいてもある
機能を実現するために定義されていた場合、使用者がシ
ステムの制御をしようとしてそのキー人力の組み合わせ
を入れた場合、アプリケーションで定義されている機能
が動作されてしまったり、逆にアプリケーションの機能
を使おうとして入力してもシステムの制御がされてしま
うことがある。
In a computer system, if a combination of key human forces defined to control the system is also defined to achieve a certain function in an application running on that computer system, the user may be able to control the system. If you input that key combination manually, the functions defined in the application may be activated, or conversely, the system may be controlled even if you input it while trying to use the application's functions.

即ち、期待した機能が動作しなかったり、期待した機能
以外の機能が起こる可能性がある。この様な問題は最悪
の場合、データの破壊などのシステムにとって致命的な
欠陥となることがある。
That is, there is a possibility that an expected function may not work or a function other than the expected function may occur. In the worst case, such a problem may cause a fatal flaw to the system, such as data destruction.

そこで本発明はこの様な問題点を解決するもので、その
目的とするところは、キーボード入力に依ってシステム
の制御を行うに当たって、通常のキー人力との間に矛盾
が起こらないキーボード制御装置を提供することにある
The present invention is intended to solve these problems, and its purpose is to provide a keyboard control device that does not conflict with normal manual input when controlling a system using keyboard input. It is about providing.

〔課題を解決するための手段] 本発明は、CPU、メモリー、入出装置、外部記憶装置
、表示装置、キーボード、電源装置等の電子装置を持つ
携帯形コンピュータにおいて、前記キーボードは 複数の一般キースイッチと、少なくとも一つの特殊キー
スイッチによって構成される複数のキースイッチから成
るキーボードスイッチと前記キーボードスイッチに接続
されて、前記キースイッチのオン・オフを検出し、前記
キースイッチの状態を前記CPUに知らせる、ROM、
RAM、I/O、CPUコアから成る1チップマイコン
とから成り、 前記キーボードスイッチの、前記一般キースイッチが押
された、または離された場合は、前記lチップマイコン
のI/Oポートを通して、前記一般キースイッチに対応
するキーコードを、前記CPUに送る一般キーコード送
信手段と、前記キーボードスイッチの前記特殊キースイ
ッチが押された、または離された場合は、前記1チップ
マイコンのI/Oポートをオン・オフする特殊キー状態
送信手段と、 前記キーボードスイッチの、前記特殊キースイッチが押
された状態で、前記一般キースイッチが押された、また
は離された場合は、前記lチップマイコンの110ポー
トをオン・オフする特殊一般キー状態送信手段と、 から成ることを特徴とする。
[Means for Solving the Problems] The present invention provides a portable computer having electronic devices such as a CPU, a memory, an input/output device, an external storage device, a display device, a keyboard, a power supply device, etc., wherein the keyboard has a plurality of general key switches. and a keyboard switch consisting of a plurality of key switches constituted by at least one special key switch, and a keyboard switch connected to the keyboard switch, detects on/off of the key switch, and notifies the CPU of the state of the key switch. , ROM,
It consists of a one-chip microcomputer consisting of RAM, I/O, and a CPU core, and when the general key switch of the keyboard switch is pressed or released, the general key code transmitting means for sending a key code corresponding to a general key switch to the CPU; and an I/O port of the one-chip microcomputer when the special key switch of the keyboard switch is pressed or released; 110 of the l-chip microcomputer when the general key switch is pressed or released while the special key switch of the keyboard switch is pressed; It is characterized by comprising: special general key status transmission means for turning on and off ports;

〔作 用J 本発明のキーボード制御装置がどの様に動作するかを第
1図に従って説明する。
[Function J] How the keyboard control device of the present invention operates will be explained with reference to FIG.

第1図において、1はキーボードスイッチ、2は特殊キ
ー、3は一般キー、4はlチップマイコン、5は一般キ
ーコード送信手段、6は特殊キー状態送信手段、7は特
殊一般キー状態送信手段、15はCPUである。説明の
便宜上キーボードの状態として、通常状態と特殊状態を
導入して説明する0通常状態とは前記特殊キー(2)が
押されていない状態である。特殊状態とは前記特殊キー
(2)が押されている状態である0通常状態では、前記
キーボードスイッチ(1)の前記一般キー(3)が押さ
れると、そのキーコードが前記一般キーコード送信手段
(5)によって前記lチップマイコン(4)のI10ポ
ートlに送られ、更に前記CPU (15)によって受
信される。又、あるキーが離されるとそのキーコードが
上記と同様にして前記CPtJ(15)に送られる0通
常状態において前記特殊キー(2)が押されるとキーボ
ードの状態は特殊状態となる。特殊状態においては前記
特殊キー状態送信手段(6)によって前記特殊キー(2
)が押されていることが前記lチップマイコン(4)の
I10ポート2を通して前記CPU(15)に知らされ
る。更にその状態で他のキーが押されると前記特殊一般
キー状態送信手段(6)に依ってそのキーに割り当てら
れた特殊キーコードが前記lチップマイコン(4)のI
/Oポート3を通じて前記CPU (15)にしらされ
る。
In FIG. 1, 1 is a keyboard switch, 2 is a special key, 3 is a general key, 4 is an l-chip microcomputer, 5 is a general key code transmitting means, 6 is a special key state transmitting means, and 7 is a special general key state transmitting means. , 15 is a CPU. For convenience of explanation, a normal state and a special state will be introduced and explained as the states of the keyboard.The normal state is a state in which the special key (2) is not pressed. The special state is a state in which the special key (2) is pressed.0 In the normal state, when the general key (3) of the keyboard switch (1) is pressed, the key code is transmitted as the general key code. The signal is sent by the means (5) to the I10 port l of the l-chip microcomputer (4), and further received by the CPU (15). Further, when a certain key is released, the key code is sent to the CPtJ (15) in the same manner as described above.0 When the special key (2) is pressed in the normal state, the state of the keyboard becomes a special state. In the special state, the special key (2) is transmitted by the special key state transmitting means (6).
) is pressed, is notified to the CPU (15) through the I10 port 2 of the L-chip microcomputer (4). Furthermore, when another key is pressed in this state, the special key code assigned to that key by the special general key state transmitting means (6) is transmitted to the I chip microcomputer (4).
/O port 3 to the CPU (15).

[実 施 例] 本発明の一つの実施例を第2図にしたがって説明する。[Example] One embodiment of the present invention will be described with reference to FIG.

第2図においては、lはキーボード割イ・ンチ、2は特
殊キー、3は一般キー、4はlチップマイコン、5は一
般キーコード送信手段、6は特殊キー状態送信手段、7
は特殊一般キー状態送信手段、8はI10ポート1.9
はI/Oポート2.10はI/Oポート3.11はデー
タラッチl、12はデータラッチ2.13はデータラッ
チ3.14はシステムパス、15はCPU、16はRA
M、17はROMである、18はCPUスピード選択装
置、19は表示選択装置である。
In FIG. 2, l is a keyboard allocation input, 2 is a special key, 3 is a general key, 4 is an l chip microcomputer, 5 is a general key code transmitting means, 6 is a special key status transmitting means, and 7
is a special general key status transmission means, 8 is I10 port 1.9
is I/O port 2.10 is I/O port 3.11 is data latch l, 12 is data latch 2.13 is data latch 3.14 is system path, 15 is CPU, 16 is RA
M, 17 is a ROM, 18 is a CPU speed selection device, and 19 is a display selection device.

前記特殊キー(6)が押されていない状態(通常状態)
における前記キーボードスイッチ(1)による入力の様
子を以下に説明する。
State where the special key (6) is not pressed (normal state)
The manner of input using the keyboard switch (1) will be described below.

前記キーボードスイッチ(1)の前記一般キー(3)が
押されると前記一般キーコード送信手段(5)に依って
前記一般キー(3)に対応するキーコードが前記lチッ
プマイコン(4)の一つの前記I/Oポートl (8)
に出力され、前記データラッチ1(11)によってその
内容が保持される。前記データラッチ1(11)に前記
キーコードが出力されると前記CPU (15)に対し
てキーボード割り込みが発生する。前記ROM (17
)に格納された前記キーボード割り込みに対するキーボ
ード割り込みす・−とスルーチンが起動されて前記デー
タラッチ1(11)から前記キーコードを読み込み前記
RAM(t6)に格納される。前記RAM(16)に格
納された前記キーコードはキーボードサービスルーチン
番こよって読みだされてアプリケーションプログラムに
渡されキーボード入力が終了する。
When the general key (3) of the keyboard switch (1) is pressed, the key code corresponding to the general key (3) is sent to one of the l-chip microcontrollers (4) by the general key code transmitting means (5). (8)
and its contents are held by the data latch 1 (11). When the key code is output to the data latch 1 (11), a keyboard interrupt is generated to the CPU (15). Said ROM (17
), a routine is activated to read the key code from the data latch 1 (11) and store it in the RAM (t6). The key code stored in the RAM (16) is read out by the keyboard service routine number and passed to the application program to complete the keyboard input.

次に前記特殊キー(2)が押されている状態(特殊状態
)における前記キーボードスイッチ(1)による入力の
様子を説明する。前記特殊キー(2)が押されると前記
特殊キー状態送信手段(6)に依って前記lチップマイ
コン(4)の一つの前記I/Oポート2(9)がオンに
される。
Next, the state of input using the keyboard switch (1) when the special key (2) is pressed (special state) will be explained. When the special key (2) is pressed, one of the I/O ports 2 (9) of the l-chip microcomputer (4) is turned on by the special key status transmitting means (6).

この情報は前記データラッチ2(12)に送られる。前
記特殊キー(2)が押され続けている間前記I/Oポー
ト2(9)はオンの状態であり、前IgcICPU(1
5)によって前記データラッチ2(12)を読むと前記
特殊キー(2)が押されていることがわかる。更に特殊
状態において前記一般キー(3)の一つが押されると前
記特殊一般キー状態送信手段(7)に依って前記一般キ
ー(3)に対応する特殊キーコードが前記lチップマイ
コン(4)の一つの前記I/Oポート3(10)に出力
される。この情報は前記データラッチ3(13)に送ら
れる。前記データラッチ2(12)と前記データラッチ
3(13)の状態は前記ROM (17)に格納されて
いる特殊キー監視プログラムに依っである間隔で監視さ
れていて前記特殊キー(2)及び前記一般キー(3)が
特殊状態において入力されたことがわかる。この場合定
義されている特殊キーコードが入力されたならばそれに
したがったシステムの制御が行われる0例えば、前記C
PUスピード選択装置(18)に依って前記CPU(1
5)に対するクロックを変えたり、前記表示選択装置(
19)に依って表示デバイスを切り換えると言ったよう
な処理が行われる。
This information is sent to the data latch 2 (12). While the special key (2) continues to be pressed, the I/O port 2 (9) remains on, and the previous Igc ICPU (1
5), when the data latch 2 (12) is read, it is found that the special key (2) is pressed. Furthermore, when one of the general keys (3) is pressed in a special state, the special key code corresponding to the general key (3) is transmitted to the l-chip microcomputer (4) by the special general key state transmitting means (7). It is output to one of the I/O ports 3 (10). This information is sent to the data latch 3 (13). The states of the data latch 2 (12) and the data latch 3 (13) are monitored at certain intervals by a special key monitoring program stored in the ROM (17). It can be seen that the general key (3) was input in the special state. In this case, if the defined special key code is input, the system will be controlled accordingly.
The CPU (1) is controlled by the PU speed selection device (18).
5) by changing the clock for the display selection device (
19), processing such as switching the display device is performed.

第3図は本発明の別の実施例である。第3図において、
lはキーボードスイッチ、2は特殊キ、3は一般キー、
4はlチップマイコン、5は一般キーコード送信手段、
6は特殊キー状態送信手段、7は特殊一般キー状態送信
手段、8はI/Oポート1.9はI/Oポート2、IO
はI/Oポート3.11はデータラッチ1.14はシス
テムバス、15はCPU、16はRAM%17はROM
である、18はCPUスピード選択装置、19は表示選
択装置、20はシステム制御装置である。
FIG. 3 shows another embodiment of the invention. In Figure 3,
l is the keyboard switch, 2 is the special key, 3 is the general key,
4 is an l-chip microcomputer, 5 is a general key code transmission means,
6 is special key status transmitting means, 7 is special general key status transmitting means, 8 is I/O port 1.9 is I/O port 2, IO
is I/O port 3.11 is data latch 1.14 is system bus, 15 is CPU, 16 is RAM% 17 is ROM
18 is a CPU speed selection device, 19 is a display selection device, and 20 is a system control device.

前記特殊キー(6)が押されていない状態(通常状態)
における前記キーボードスイッチ(1)による入力の様
子を以下に説明する。前記キーボードスイッチ(1)の
前記一般キー(3)が押されると前記一般キーコード送
信手段(5)に依って前記一般キー(3)に対応するキ
ーコードが前記lチップマイコン(4)の一つの前記I
10ポート1(8)に出力され、前記データラッチ1(
11)によってその内容が保持される。前記デークラッ
チ1(11)に前記キーコードが出力されると前記CP
U(15)に対してキーボード割り込みが発生する。前
記ROM(17)に格納された前記キーボード割り込み
に対するキーボード割り込みサービスルーチンが起動さ
れて前記データラッチ1(11)から前記キーコードを
読み込み前記RAM(16)に格納される。前記RAM
(16)に格納された前記キーコードはキーボードサー
ビスルーチンによって読みだされてアプリケーションプ
ログラムに渡されキーボード入力が終了する。
State where the special key (6) is not pressed (normal state)
The manner of input using the keyboard switch (1) will be described below. When the general key (3) of the keyboard switch (1) is pressed, the key code corresponding to the general key (3) is sent to one of the l-chip microcontrollers (4) by the general key code transmitting means (5). The above I
10 port 1 (8), and the data latch 1 (
11), its contents are retained. When the key code is output to the day clutch 1 (11), the CP
A keyboard interrupt occurs for U(15). A keyboard interrupt service routine for the keyboard interrupt stored in the ROM (17) is activated, reads the key code from the data latch 1 (11), and stores it in the RAM (16). The RAM
The key code stored in (16) is read by the keyboard service routine and passed to the application program, thereby completing the keyboard input.

次に前記特殊キー(2)が押されている状態(特殊状態
)における前記キーボードスイッチ(1)による入力の
様子を説明する。前記特殊キー(2)が押されると前記
特殊キー状態送信手段(6)に依って前記lチップマイ
コン(4)の一つの前記I/Oポート2(9)にパルス
が発生される。このパルスは前記システム制御装置(2
0)に送られる。前記システム制御装置(20)は前記
パルスの入力によって前記lチップマイコン(4)の一
つの前記I/Oポート3(10)に出力されているデー
タを読み込む、更に特殊状態において前記一般キー(3
)の一つが押されると前記特殊一般キー状態送信手段(
7)によって前記一般キー(3)に対応する特殊キーコ
ードが前記lチップマイコン(4)の一つの前記I/O
ポート3(10)に出力される0次に、前記特殊キー状
態送信手段(6)に依って前記lチップマイコン(4)
の一つの前記I/Oポート2(9)にパルスが発生され
る。このパルスは前記システム制御装置(20)に送ら
れ葛、前記システム制御装置(20)は前記パルスの入
力に依って前記lチップマイジョン(4)の一つの前記
I10ポー)3(10)に出力されているデータを読み
込む、前記システム制御装置(20)は読み込んだデー
タを解析して、それにしたがったシステムの制御が行わ
れる0例えば、前記CPUスピード選択装置(18)に
対して信号を送り前記CPU(15)に対するクロック
を変えたり、前記表示選択装置(19)に信号を送り表
示デバイスを切り換えるといったような処理が行われる
Next, the state of input using the keyboard switch (1) when the special key (2) is pressed (special state) will be explained. When the special key (2) is pressed, a pulse is generated to one of the I/O ports 2 (9) of the l-chip microcomputer (4) by the special key status transmitting means (6). This pulse is applied to the system controller (2).
0). The system control device (20) reads the data outputted to one of the I/O ports 3 (10) of the l-chip microcomputer (4) by inputting the pulses, and furthermore, in a special state, the general key (3)
) is pressed, the special general key status transmitting means (
7), the special key code corresponding to the general key (3) is assigned to one of the I/Os of the l-chip microcomputer (4).
The zero output to port 3 (10) is then transmitted to the l-chip microcomputer (4) by the special key status transmitting means (6).
A pulse is generated at one said I/O port 2 (9) of the . This pulse is sent to the system control device (20), and the system control device (20) controls one of the I10 port (10) of the l chip migration (4) depending on the input of the pulse. The system control device (20) reads the output data, analyzes the read data, and controls the system accordingly.For example, it sends a signal to the CPU speed selection device (18). Processes such as changing the clock for the CPU (15) and sending a signal to the display selection device (19) to switch the display device are performed.

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

以上述べたように本発明に依れば、従来のキーボードと
システムのインターフェイスに影響を与える事な(キー
ボードからの入力によるシステムの制御が可能となる。
As described above, according to the present invention, it is possible to control the system by inputting from the keyboard without affecting the conventional interface between the keyboard and the system.

したがってコンピュータ上で動作しているアプリケーシ
ョンに影響を与えることなくシステムの制御が出来る。
Therefore, the system can be controlled without affecting applications running on the computer.

又そのためのキーボードスイッチの変更は少なくとも一
つの特殊キーの追加とキーボードをコントロールするl
チップマイコンの変更ですみ、従来、スイッチによって
行っていたときに比べて特にコストが上がることもなく
行える。しかし、その効果は今後における、携帯型コン
ビニーりの増加を考えるとその小型化及び使いかっての
向上に大きく貢献するものであり、絶大である。
Also, changing the keyboard switch for that purpose requires adding at least one special key and controlling the keyboard.
This can be done by simply changing the chip microcontroller, and there is no particular cost increase compared to the conventional method using switches. However, considering the increase in the number of portable convenience stores in the future, the effect will be enormous, as it will greatly contribute to miniaturization and improved usability.

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

第1図は、本発明の作用を示した図であり、第2図は本
発明の一つの実施例を示す図であり、第3図は本発明の
別の実施例を示す図であり、第4図は従来のキーボード
入力によってCPUスピードの変更をする例を説明する
図である。 ・キーボードスイッチ ・特殊キー ・一般キー ・lチップマイコン ・一般キーコード送信手段 ・特殊キー状態送信手段 ・特殊一般キー状態送信手段 ・I/Oポートド I10ポート2 10 ・ 1 l ・ l 2 ・ l 3 ・ l 4 ・ l 5 ・ 16 ・ 17 ・ l 8 ・ l 9 ・ 20 ・ 101  ・ 102  ・ 103 ・ 104  ・ 105 ・ 106  ・ 107  ・ 108  ・ 109  ・ ・I/Oポート3 ・データラッチ2 データラッチ2 ・データラッチ3 ・システムバス ・CPU ・RAM ・ROM ・CPUスピード選択装置 ・表示選択装置 ・システム制御装置 ・キーボードスイッチ ・lチップマイコン ・スキャン線 ・リード線 ・データバッファ ・ステータスバッファ ・システムバス ・CPLI ・RAM 110  ・ 111  ・ 112  ・ 113  ・ 114  ・ 115  ・ 116  ・ ・キーバッファ ・キーバッファポインター ・キーステータスフラグ ・コントロールキー ・シフトキー ・Hキー ・Sキー
FIG. 1 is a diagram showing the operation of the present invention, FIG. 2 is a diagram showing one embodiment of the present invention, and FIG. 3 is a diagram showing another embodiment of the present invention, FIG. 4 is a diagram illustrating an example of changing the CPU speed by conventional keyboard input.・Keyboard switch ・Special key ・General key ・L chip microcomputer ・General key code transmitting means ・Special key status transmitting means ・Special general key status transmitting means ・I/O port I10 port 2 10 ・ 1 l ・ l 2 ・ l 3・ l 4 ・ l 5 ・ 16 ・ 17 ・ l 8 ・ l 9 ・ 20 ・ 101 ・ 102 ・ 103 ・ 104 ・ 105 ・ 106 ・ 107 ・ 108 ・ 109 ・ ・I/O port 3 ・Data latch 2 Data latch 2・Data latch 3 ・System bus ・CPU ・RAM ・ROM ・CPU speed selection device ・Display selection device ・System control device ・Keyboard switch ・l chip microcomputer ・Scan line ・Lead line ・Data buffer ・Status buffer ・System bus ・CPLI・RAM 110 ・ 111 ・ 112 ・ 113 ・ 114 ・ 115 ・ 116 ・ ・Key buffer ・Key buffer pointer ・Key status flag ・Control key ・Shift key ・H key ・S key

Claims (1)

【特許請求の範囲】 CPU、メモリー、入出装置、外部記憶装置、表示装置
、キーボード、電源装置等の電子装置を持つ携帯形コン
ピュータにおいて、 前記キーボードは、 複数の一般キースイッチと、少なくとも一つの特殊キー
スイッチによって構成される複数のキースイッチから成
るキーボードスイッチと 前記キーボードスイッチに接続されて、前記キースイッ
チのオン・オフを検出し、前記キースイッチの状態を前
記CPUに知らせる、ROM、RAM、I/O、CPU
コアから成る1チップマイコンとから成り、 前記キーボードスイッチの、前記一般キースイッチが押
された、または離された場合は、前記1チップマイコン
のI/Oポートを通して、前記一般キースイッチに対応
するキーコードを、前記CPUに送る一般キーコード送
信手段と、 前記キーボードスイッチの、前記特殊キースイッチが押
された、または離された場合は、前記1チップマイコン
のI/Oポートをオン・オフする特殊キー状態送信手段
と、 前記キーポートスイッチの、前記特殊キースイッチが押
された状態で、前記一般キースイッチが押された、また
は離された場合は、前記1チップマイコンのI/Oポー
トをオン・オフする特殊一般キー状態送信手段と、 から成ることを特徴とするキーボード制御装置。
[Claims] A portable computer having electronic devices such as a CPU, a memory, an input/output device, an external storage device, a display device, a keyboard, a power supply device, etc., wherein the keyboard includes a plurality of general key switches and at least one special key switch. A keyboard switch consisting of a plurality of key switches configured by a key switch, and a ROM, RAM, and I /O, CPU
and a 1-chip microcomputer consisting of a core, and when the general key switch of the keyboard switch is pressed or released, the key corresponding to the general key switch is transmitted through the I/O port of the 1-chip microcomputer. a general key code transmission means for sending a code to the CPU; and a special key code transmitting means for turning on and off the I/O port of the one-chip microcomputer when the special key switch of the keyboard switch is pressed or released. a key state transmitting means; when the general key switch is pressed or released while the special key switch of the key port switch is pressed, turning on the I/O port of the one-chip microcomputer; - A keyboard control device comprising: special general key state transmitting means that turns off;
JP1295513A 1989-11-14 1989-11-14 Computer Expired - Lifetime JP2814621B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1295513A JP2814621B2 (en) 1989-11-14 1989-11-14 Computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1295513A JP2814621B2 (en) 1989-11-14 1989-11-14 Computer

Publications (2)

Publication Number Publication Date
JPH03156518A true JPH03156518A (en) 1991-07-04
JP2814621B2 JP2814621B2 (en) 1998-10-27

Family

ID=17821592

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1295513A Expired - Lifetime JP2814621B2 (en) 1989-11-14 1989-11-14 Computer

Country Status (1)

Country Link
JP (1) JP2814621B2 (en)

Also Published As

Publication number Publication date
JP2814621B2 (en) 1998-10-27

Similar Documents

Publication Publication Date Title
KR860003559A (en) Small computer
US5459462A (en) Keyboard controller state machine
JPH03156518A (en) Keyboard controller
US6512449B1 (en) Screen display method for portable information terminal
US3832694A (en) Processor unit for data retrieval and processing
KR900004004B1 (en) Circuit for selecting and locking in operation function circuitry
EP0156162A2 (en) Programmable controller
EP0464393A2 (en) Signal processor
JPH1145110A (en) Programmable operation display
JPH08249277A (en) Computer system of input/output device sharing type
KR970002412B1 (en) Communication coprocessor board capable of using dma
KR880000422B1 (en) Matrix key and data selector
JP2982811B2 (en) Access control device
JPH0431627Y2 (en)
SU857993A1 (en) Device for control of computing complex
JPH10289048A (en) Information input device
JPH01200429A (en) Keyboard
EP0234124A2 (en) A bidirectional keyboard interface circuit
JPH0451847B2 (en)
KR980010267A (en) Remote monitoring and control system of refrigerator using terminal
JPH04338803A (en) Input/output unit for programmable controller
JPH02153403A (en) Numerical controller
JPH05216806A (en) Controller for input equipment
JPS62196718A (en) Keyboard
JPH10222278A (en) Auxiliary device for keyboard input of personal computer

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070814

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080814

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080814

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090814

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090814

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100814

Year of fee payment: 12

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100814

Year of fee payment: 12