JPH0381170B2 - - Google Patents
Info
- Publication number
- JPH0381170B2 JPH0381170B2 JP57077164A JP7716482A JPH0381170B2 JP H0381170 B2 JPH0381170 B2 JP H0381170B2 JP 57077164 A JP57077164 A JP 57077164A JP 7716482 A JP7716482 A JP 7716482A JP H0381170 B2 JPH0381170 B2 JP H0381170B2
- Authority
- JP
- Japan
- Prior art keywords
- key
- bit
- parity
- pressed
- address code
- 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.)
- Expired - Lifetime
Links
- 230000005540 biological transmission Effects 0.000 claims description 21
- 238000000034 method Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 6
- 239000011159 matrix material Substances 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 5
- 235000016496 Panda oleosa Nutrition 0.000 description 3
- 240000000220 Panda oleosa Species 0.000 description 3
- 238000004891 communication Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M11/00—Coding in connection with keyboards or like devices, i.e. coding of the position of operated keys
- H03M11/02—Details
- H03M11/04—Coding of multifunction keys
- H03M11/14—Coding of multifunction keys by using additional keys, e.g. shift keys, which determine the function performed by the multifunction key
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Input From Keyboards Or The Like (AREA)
Description
【発明の詳細な説明】
本発明は、キーボード分離型CRTデイスプレ
イ装置及びパーソナルコンピユータにおいて、キ
ーボードからホスト側へデータを伝送するための
シリアルデータ伝送方式に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a serial data transmission method for transmitting data from a keyboard to a host side in a keyboard-separated CRT display device and a personal computer.
一般に、キーボードでは入力キーに対応してキ
ーマトリツクスが構成されており、このキーマト
リツクスから、押下された入力キーに対応するア
ドレスコードが送出される。又、キーボードには
カナキー、英数キーの他に、例えば、「!」、「#」
等のマークやカナの小文字を出力させるためのシ
フトキーが設けられており、さらに、印字の停止
及び再開や画面のクリア等を行なわせるために、
入力キーと一緒に押下するコントロールキーが設
けられている。そして、キーボードからホスト側
へアドレスコードを伝送する場合には、シフトキ
ー及びコントロールキーの押下情報もホスト側へ
伝送する必要がある。 Generally, a keyboard includes a key matrix corresponding to input keys, and an address code corresponding to a pressed input key is sent from this key matrix. In addition to the kana keys and alphanumeric keys, the keyboard also has keys such as "!" and "#".
A shift key is provided to output marks such as and lowercase kana letters, as well as a shift key to stop and restart printing, clear the screen, etc.
A control key is provided that is pressed together with the input key. When transmitting the address code from the keyboard to the host side, it is also necessary to transmit information on presses of shift keys and control keys to the host side.
又、キーボードによつては、キーボード内でア
ドレスコードとシフトキー及びコントロールキー
の押下情報とに基づいて、押下された入力キーに
対応するキヤラクタコードを形成し、このキヤラ
クタコードをホスト側へ伝送することもある。こ
の場合にも、印字の停止や再開等を行なわせるた
めに、コントロールキーの押下情報をホスト側へ
伝送しなければならない。 Also, depending on the keyboard, a character code corresponding to the pressed input key is formed based on the address code and the press information of the shift key and control key within the keyboard, and this character code is transmitted to the host side. Sometimes I do. In this case as well, control key press information must be transmitted to the host side in order to stop or restart printing.
そこで、従来、アドレスコード又はキヤラクタ
コードを伝送するためのデータラインの他に、シ
フトキー又はコントロールキーの押下情報を伝送
する伝送ラインを別に設けていたが、このような
方法では、伝送ラインが増加するという問題があ
つた。又、伝送ラインを減らすため、コード及び
情報をシリアル伝送することも行なわれてきた
が、一般に、1回のシリアル伝送で伝送可能なデ
ータのビツト数は8ビツトであるのに対し、伝送
すべきデータは、Yアドレスコード4ビツト、X
アドレスコード3ビツト、シフトキー押下情報
SHIFT及びコントロールキー押下情報CTRL各
1ビツトの合計最低でも9ビツトであり、又、キ
ヤラクタコードを伝送する場合にも、キヤラクタ
コード8ビツト、コントロール押下情報CTRL1
ビツトの合計最低でも9ビツトである。従つて、
従来は、第1図イ,ロに示すように、先ず、コン
トロール押下情報CTRL及びシフトキー押下情報
SHIFTを伝送し、続いて、アドレスコード又は
キヤラクタコードを伝送しており、全てのコード
及び情報を1回の伝送で済ませることは不可能で
あつた。 Therefore, in the past, in addition to the data line for transmitting the address code or character code, a separate transmission line was provided for transmitting the press information of the shift key or control key, but with this method, the number of transmission lines increases. There was a problem. In addition, to reduce the number of transmission lines, serial transmission of codes and information has been carried out, but in general, the number of data bits that can be transmitted in one serial transmission is 8 bits, but the number of bits that should be transmitted is The data is Y address code 4 bits,
3-bit address code, shift key press information
The total of SHIFT and control key press information CTRL is 1 bit each, totaling at least 9 bits.Also, when transmitting a character code, the character code is 8 bits, and the control key press information CTRL1 is 1 bit.
The total bits are at least 9 bits. Therefore,
Conventionally, as shown in Figure 1 A and B, first, control press information CTRL and shift key press information are
SHIFT is transmitted, followed by an address code or character code, and it is impossible to transmit all codes and information in one transmission.
本発明は、シリアル伝送においては、1回の伝
送で8ビツトのデータ以外にパリテイチエツクの
ためのパリテイビツトを伝送することが可能であ
る点に着目し、上述の欠点を解消して、伝送すべ
き全てのコード及び情報を1回の伝送で済ませる
新規なシリアルデータ伝送方式を提供するもので
ある。 The present invention focuses on the fact that in serial transmission, it is possible to transmit parity bits for parity checking in addition to 8-bit data in one transmission, and solves the above-mentioned drawbacks. The present invention provides a new serial data transmission method that allows all the necessary codes and information to be transmitted in one transmission.
以下、本発明を図面を参照しながら説明する。 Hereinafter, the present invention will be explained with reference to the drawings.
第2図は、本発明によりキヤラクタコードを伝
送するためのキーボード及びホスト側の構成を示
すブロツク図であり、1はキーボード側の中央処
理装置、2はキーマトリツクス、3及び4は各々
シフトキー及びコントロールキー、5はホスト側
を示し、6は例えばインテル社製8251のような入
出力通信インターフエス(USART)より構成さ
れるシリアル受信回路、7はホスト側の中央処理
装置である。尚、キーマトリツクス2からは、英
数及びカナ等のモード指定を含んだアドレスコー
ドが出力される。 FIG. 2 is a block diagram showing the configuration of a keyboard and host side for transmitting character codes according to the present invention, in which 1 is a central processing unit on the keyboard side, 2 is a key matrix, and 3 and 4 are shift keys. and control keys, 5 indicates the host side, 6 indicates a serial receiving circuit constituted by an input/output communication interface (USART) such as Intel 8251, and 7 indicates a central processing unit on the host side. Note that the key matrix 2 outputs an address code including mode designations such as alphanumeric characters and kana characters.
そこで、スキヤン制御手段8がキーマトリツク
ス2の16ビツトのYアドレスを順次スキヤンして
いる際中に、入力キーが押下されると、押下され
た入力キーに対応する8ビツトのXアドレスコー
ドがスキヤン制御手段8に入力され、アドレスコ
ード変換手段9で、16ビツトのYアドレスコード
は4ビツトのパイナリーのYアドレスコードに
又、8ビツトのXアドレスコードは3ビツトのパ
イナリーのXアドレスコードに変換される。そし
て、7ビツトのアドレスコードは、シフトキー3
及びコントロールキー4から押下情報に基づい
て、中央処理装置1中のROMに形成されたキヤ
ラクタコードテーブル10を参照することにより
キヤラクタコード変換手段11で8ビツトのキヤ
ラクタコードに変換される。ここで、入力キーが
押下されたときにコントロールキー4も押下され
たならば、シリアル送信手段12はコントロール
キー4からの押下情報に応じて、第1図ハに示す
ようにパリテイチエツクのためのパリテイビツト
をエラーとし、即ち、パリテイエラーとしてキヤ
ラクタコードをホスト側5へシリアル伝送する。 Therefore, when an input key is pressed while the scan control means 8 is sequentially scanning the 16-bit Y addresses of the key matrix 2, the 8-bit X address code corresponding to the pressed input key is The address code is input to the scan control means 8, and the address code conversion means 9 converts the 16-bit Y address code into a 4-bit pinary Y address code, and the 8-bit X address code into a 3-bit pinary X address code. be done. The 7-bit address code is obtained by pressing shift key 3.
Based on the press information from the control key 4, the character code is converted into an 8-bit character code by the character code conversion means 11 by referring to the character code table 10 formed in the ROM in the central processing unit 1. Here, if the control key 4 is also pressed when the input key is pressed, the serial transmitting means 12 performs a parity check as shown in FIG. In other words, the character code is serially transmitted to the host side 5 as a parity error.
ホスト側5では、シリアル受信回路6のレジス
タ13に、伝送されたキヤラクタコードが一時記
憶され、レジスタ14の所定のビツト位置にパリ
テイビツトが一時記憶される。そして、中央処理
装置7からの命令によりパリテイビツトが読み出
され、パリテイチエツクを行なう。ここで伝送さ
れたデータはパリテイエラーとして送られている
ので、中央処理装置7はエラーと判定し、このパ
リテイエラーにより、コントロールキー4が押下
されたと判断する。即ち、中央処理装置7は、パ
リテイチエツクの結果に応じてコントロールキー
4が押下されたか否かを判定する。又、レジスタ
13に一時記憶されたキヤラクタコードは各ビツ
トが並列に中央処理装置7に入力され、中央処理
装置7は、このキヤラクタコードとコントロール
キー押下情報とに基づいて、所定の動作、例え
ば、印字の停止及び再開や画面のクリアを行な
う。 On the host side 5, the transmitted character code is temporarily stored in the register 13 of the serial receiving circuit 6, and the parity bit is temporarily stored in a predetermined bit position of the register 14. Then, the parity bit is read out according to a command from the central processing unit 7, and a parity check is performed. Since the data transmitted here is sent as a parity error, the central processing unit 7 determines that it is an error, and determines that the control key 4 was pressed due to this parity error. That is, the central processing unit 7 determines whether or not the control key 4 has been pressed depending on the result of the parity check. Each bit of the character code temporarily stored in the register 13 is input to the central processing unit 7 in parallel, and the central processing unit 7 performs a predetermined operation based on the character code and control key press information. For example, it stops and restarts printing and clears the screen.
次に、本発明によりアドレスコードを伝送する
方法について説明する。 Next, a method of transmitting an address code according to the present invention will be described.
第3図は、本発明によりアドレスコードを伝送
るためのキーボード及びホスト側の構成を示すブ
ロツク図であり、第2図の構成要素と同じものに
は同一番号を付している。 FIG. 3 is a block diagram showing the configuration of the keyboard and host side for transmitting address codes according to the present invention, and the same components as those in FIG. 2 are given the same numbers.
第2図と同様、押下された入力キーに対応して
スキヤン制御手段8から得られる16ビツトのYア
ドレスコード及び8ビツトのXアドレスコード
は、アドレスコード変換手段9で、7ビツトのア
ドレスコードに変換される。シリアル送信手段1
2では、第1図ニに示すように、データを伝送す
るための8ビツトのうち、アドレスコード以外の
残りの1ビツトに、シフトキー押下情報SHIFT
を入れると共に、コントロールキー4の押下に応
じて、パリテイビツトをエラーとし、即ち、パリ
テイエラーとしてアドレスコード及びシフトキー
押下情報を含む8ビツトのデータをホスト側5へ
シリアル伝送する。 Similarly to FIG. 2, the 16-bit Y address code and the 8-bit converted. Serial transmission means 1
2, as shown in FIG.
At the same time, in response to the press of the control key 4, the parity bit is set as an error, and 8-bit data including the address code and shift key press information is serially transmitted to the host side 5 as a parity error.
ホスト側では、シリアル受信回路6のレジスタ
13に、伝送されたアドレスコード及びシフトキ
ー押下情報SHIFTが一時記憶され、レジスタ1
4の所定のビツト位置にパリテイビツトが一時記
憶される。そして、中央処理装置7はパリテイチ
エツクを行ない、パリテイエラーからコントロー
ルキー4が押下されたことを判断する。キヤラク
タコード変換手段11では、このコントロールキ
ー押下情報とシフトキー押下情報に基づいて、中
央処理装置7中のROMに形成されたキヤラクタ
テーブル10を参照することにより、アドレスコ
ードが対応するキヤラクタコードに変換される。
そして、このキヤラクタコードとコントロールキ
ー押下情報とに基づいて、処理手段15は、所定
の動作、例えば、印字の停止及び再開や画面のク
リアを行なう。 On the host side, the transmitted address code and shift key press information SHIFT are temporarily stored in register 13 of serial receiving circuit 6, and register 1
A parity bit is temporarily stored in a predetermined bit position of 4. The central processing unit 7 then performs a parity check and determines from the parity error that the control key 4 has been pressed. The character code conversion means 11 converts the character code corresponding to the address code by referring to the character table 10 formed in the ROM in the central processing unit 7 based on the control key press information and shift key press information. is converted to
Based on this character code and control key press information, the processing means 15 performs predetermined operations, such as stopping and restarting printing and clearing the screen.
尚、説明においては、コントロールキー4が押
下されたときパリテイエラーとしたが、コントロ
ール押下情報CTRLをデータを伝送するための8
ビツトのうち、アドレスコード以外の残り1ビツ
トに入れ、シフトキー3が押下されたことに応じ
てパリテイエラーとし、ホスト側5でパリテイエ
ラーからシフトキー3が押下されたことを判断す
るようにしてもよい。 In the explanation, when the control key 4 was pressed, it was assumed that a parity error occurred, but the control press information CTRL was used as the parity error when the control key 4 was pressed.
Among the bits, the remaining 1 bit other than the address code is set so that a parity error occurs when the shift key 3 is pressed, and the host side 5 determines from the parity error that the shift key 3 has been pressed. Good too.
本発明は、上述の如く、コントロールキー又は
シフトキーの押下に応じてパリテイビツトをエラ
ーとしているので、キヤラクタコードあるいはア
ドレスコードを含む所定ビツトと、コントロール
キー又はシフトキーの押下情報を1回のシリアル
伝送で済ませることができ、従つて、伝送ライン
を増加させることなく、伝送速度を上げることが
できる。 As described above, the present invention treats a parity bit as an error in response to a press of a control key or a shift key. Therefore, a predetermined bit including a character code or an address code and information on a press of a control key or a shift key are transmitted in one serial transmission. Therefore, the transmission speed can be increased without increasing the number of transmission lines.
第1図イ,ロは従来のシリアル伝送方式におけ
るデータの構成を示す図、第1図ハ,ニは本発明
のシリアル伝送方式におけるデータの構成を示す
図、第2図及び第3図は本発明によるシリアル伝
送方式を実現するためのキーボード及びホスト側
の構成を示すブロツク図である。
主な図番の説明、1…中央処理装置、2…キー
マトリツクス、3…シフトキー、4…コントロー
ルキー、5…ホスト側、6…シリアル受信回路、
7…中央処理装置、8…スキヤン制御手段、9…
アドレスコード変換手段、10…キヤラクタコー
ドテーブル、11…キヤラクタコード変換手段、
12…シリアル送信手段。
Figures 1A and 3 are diagrams showing the data structure in the conventional serial transmission system, Figures 1C and 2 are diagrams showing the data structure in the serial transmission system of the present invention, and Figures 2 and 3 are diagrams showing the data structure in the conventional serial transmission system. FIG. 2 is a block diagram showing the configuration of a keyboard and host side for realizing the serial transmission method according to the invention. Explanation of main figure numbers, 1...Central processing unit, 2...Key matrix, 3...Shift key, 4...Control key, 5 ...Host side, 6...Serial receiving circuit,
7...Central processing unit, 8...Scan control means, 9...
Address code conversion means, 10...Character code table, 11...Character code conversion means,
12...Serial transmission means.
Claims (1)
ドあるいはキヤラクタコードを含む所定ビツトの
データとパリテイビツトとを共にシリアル伝送す
る機器において、コントロールキー又はシフトキ
ーが押下されたとき、前記パリテイビツトをパリ
テイエラーとして前記所定ビツトのデータを伝送
し、ホスト側でパリテイチエツクの結果に応じて
前記コントロールキー又はシフトキーの押下状況
を判定するようにしたことを特徴とするシリアル
データ伝送方式。1. In a device that serially transmits a parity bit and predetermined bit data including an address code or character code corresponding to a pressed input key, when a control key or shift key is pressed, the parity bit is treated as a parity error and the parity bit is treated as a parity error. 1. A serial data transmission method, characterized in that a predetermined bit of data is transmitted, and a host side determines whether the control key or shift key is pressed according to the result of a parity check.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57077164A JPS58195243A (en) | 1982-05-08 | 1982-05-08 | Serial data transmission system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57077164A JPS58195243A (en) | 1982-05-08 | 1982-05-08 | Serial data transmission system |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS58195243A JPS58195243A (en) | 1983-11-14 |
JPH0381170B2 true JPH0381170B2 (en) | 1991-12-27 |
Family
ID=13626143
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP57077164A Granted JPS58195243A (en) | 1982-05-08 | 1982-05-08 | Serial data transmission system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS58195243A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011049342A3 (en) * | 2009-10-22 | 2011-10-27 | Hwang Bo Ui | Bidet |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60129826A (en) * | 1983-12-16 | 1985-07-11 | Matsushita Electric Ind Co Ltd | Keyboard device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5454224U (en) * | 1977-09-17 | 1979-04-14 |
-
1982
- 1982-05-08 JP JP57077164A patent/JPS58195243A/en active Granted
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011049342A3 (en) * | 2009-10-22 | 2011-10-27 | Hwang Bo Ui | Bidet |
Also Published As
Publication number | Publication date |
---|---|
JPS58195243A (en) | 1983-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4204089A (en) | Keyboard method and apparatus for accented characters | |
US4359286A (en) | Character set expansion | |
JP2001166868A (en) | Method and device for inputting chinese pin-yin by numeric key pad | |
US3980994A (en) | Text editing and display system having text insert capability | |
US4758955A (en) | Hand-held spelling checker and method for reducing redundant information in the storage of textural material | |
US4566039A (en) | Facsimile system | |
US4727511A (en) | Multitype characters processing method and terminal device | |
EP0286906B1 (en) | Method for character code generation | |
JPH0381170B2 (en) | ||
US4649231A (en) | Method for the transmission of characters by means of the code combinations of a telegraph alphabet | |
KR900006665B1 (en) | Crt display apparatus | |
JP2699752B2 (en) | Keyboard device | |
JP2918579B2 (en) | Image processing device | |
JPS6142178Y2 (en) | ||
JPS5972511A (en) | Special code input device using ordinary code | |
JP2509186B2 (en) | Code conversion method | |
JPS59221730A (en) | Keyboard device | |
JPS61152147A (en) | Electronic equipment | |
JP2599374B2 (en) | Facsimile machine | |
JP3130856B2 (en) | Japanese character input method and device using 16 keys | |
KR950003479B1 (en) | Recognition registing method for fax | |
JPS5854380A (en) | Character output control system for terminal | |
JPS5936314B2 (en) | Display device control method | |
JPS6141013B2 (en) | ||
JPS6172323A (en) | Keyboard device |