Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS5845049B2 - Data transfer reading method - Google Patents
[go: Go Back, main page]

JPS5845049B2 - Data transfer reading method - Google Patents

Data transfer reading method

Info

Publication number
JPS5845049B2
JPS5845049B2 JP54083980A JP8398079A JPS5845049B2 JP S5845049 B2 JPS5845049 B2 JP S5845049B2 JP 54083980 A JP54083980 A JP 54083980A JP 8398079 A JP8398079 A JP 8398079A JP S5845049 B2 JPS5845049 B2 JP S5845049B2
Authority
JP
Japan
Prior art keywords
data
read
keyboard
bit
busy
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
Application number
JP54083980A
Other languages
Japanese (ja)
Other versions
JPS569828A (en
Inventor
敏朗 時田
洋 上原
考洋 藤井
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP54083980A priority Critical patent/JPS5845049B2/en
Publication of JPS569828A publication Critical patent/JPS569828A/en
Publication of JPS5845049B2 publication Critical patent/JPS5845049B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Retry When Errors Occur (AREA)

Description

【発明の詳細な説明】 本発明はデータ転送読取り方式に係り、特にキーボード
、キーボード制御部間におけるデータ転送時のデータ誤
り等を検出することができるデータ転送読取り方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data transfer reading method, and more particularly to a data transfer reading method capable of detecting data errors during data transfer between a keyboard and a keyboard control unit.

従来、キーボードとキーボード制御部間におけるデータ
転送時に発生するデータ化げを検出する方法として、読
取りデータにパリティビットを付加するパリティ方式が
採用されている。
Conventionally, a parity method in which a parity bit is added to read data has been adopted as a method for detecting data corruption that occurs during data transfer between a keyboard and a keyboard control unit.

第1図は一般的なキーボードより発せられる1ビツトの
パリティビット付データ構成を説明するための図である
FIG. 1 is a diagram for explaining the structure of data with a 1-bit parity bit generated from a general keyboard.

図中、キーボード1のキー打鍵が行なわれると、キーボ
ード1内部のパリティ発生部6(PG)が動作し、キー
打鍵データにパリティビットを付加してデータライン上
にデータを送出する。
In the figure, when a key is pressed on the keyboard 1, a parity generator 6 (PG) inside the keyboard 1 operates, adds a parity bit to the keystroke data, and sends the data onto the data line.

一方データライン上に送出されたデータを受は取るキー
ボード制御部2内部のパリティ検査部7 (PC)にて
データライン上のデータ化けの有無を検出する。
On the other hand, a parity checking section 7 (PC) inside the keyboard control section 2 which receives and receives data sent out on the data line detects whether or not there is data garbled on the data line.

パリティ発生部6は、偶数パリティ方式時にはデータの
全ビットの和とパリティビットの和が“O“になるよう
に、また奇数パリティ方式時には“′1°゛となるよう
にパリティビットを発生する。
The parity generator 6 generates parity bits so that the sum of all data bits and the parity bit becomes "O" in the even parity method, and "1°" in the odd parity method.

またパリティ検査部7はデータに対するパリティビット
の妥当性を検査する。
Further, the parity check unit 7 checks the validity of the parity bit for the data.

しかしながら、この様な従来のパリティチェック方式は
、転送データに複数ビット化けが発生した場合、データ
を正しいデータに回復することは不可能であり、キーボ
ードを用いた装置の信頼性向上の点からデータ化げの発
生したデータの回復実現が強く要求されていた。
However, with such conventional parity checking methods, it is impossible to restore the data to correct data if multiple bits are garbled in the transferred data. There was a strong demand for recovery of corrupted data.

従って本発明の目的は、データ転送時におけるデータ複
数ビットのデータ化げ、データ湧き出しを検出し、正常
データを転送し、読取ることができるデータ転送読取り
方式を提供することである。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a data transfer/reading method that can detect garbled data or data leakage of multiple bits of data during data transfer, and transfer and read normal data.

本発明の特徴は、キーボードとキーボード制御装置間の
データライン上でデータが正常に転送されたか否かを示
すために、キーボード側でデータ入力の都度、所定のビ
ットパターンをもつ複数ビットのビジィビットを発生さ
せ、一方、制御装置側ではデータと共にこのビジィビッ
トを読取り、ビジィビットの状態チェックによる読取り
データを有効性を判定しながら、同一人力データにつき
少なくとも2回のデータ読取りを行なう。
A feature of the present invention is that the keyboard side generates a plurality of busy bits with a predetermined bit pattern each time data is input to indicate whether or not data has been transferred normally on the data line between the keyboard and the keyboard controller. On the other hand, on the control device side, the busy bit is read along with the data, and the data is read at least twice for the same manual data while checking the status of the busy bit to determine the validity of the read data.

また、データについては、ビジィビットのチェックによ
り互いに有効と判断された前後2回の読取りデータにつ
いて比較を行ない、一致を検出したとき当該データを正
常に転送されたデータとして扱う。
Further, regarding data, the two read data before and after which are determined to be valid by checking the busy bit are compared, and when a match is detected, the data is treated as normally transferred data.

ビジィビットチェックにより無効データと判断された場
合、あるいは、有効と判断された2つのデータが一致し
ない場合にはデータの再読取りが行なわれ、2組の有効
データ間に一致がどれまで比較を実行し、データ化けを
検出して正常データのみを取り込み、データ湧き、デー
タ抜け、データ化げを防止する。
If the data is determined to be invalid by the busy bit check, or if the two data determined to be valid do not match, the data is re-read and a comparison is performed to determine whether the two sets of valid data match. It detects garbled data and imports only normal data to prevent data leaks, data omissions, and data corruption.

以下本発明の一実施例を図面に従い詳細に説明する。An embodiment of the present invention will be described in detail below with reference to the drawings.

第2図は本発明を用いた場合のキーボード1とキーボー
ド制御部2間のデータ転送読取り方式を説明するための
図である。
FIG. 2 is a diagram for explaining a data transfer/reading method between the keyboard 1 and the keyboard control section 2 when the present invention is used.

キーボード1のキー打鍵が行なわれない状態ではキーボ
ード1より送出されるデータのビジィビット5は全て“
0″となっている。
When no key is pressed on the keyboard 1, the busy bit 5 of the data sent from the keyboard 1 is all “
0''.

キー打鍵が行なわれるとそのデータがキーボード制御部
2に有効データとして読取られるまではビジィビットは
全て“1″であり、一旦、制御部側に有効データとして
読取られるとビジィビットは全て“0“となる。
When a key is pressed, the busy bits are all "1" until the data is read by the keyboard control section 2 as valid data, and once the data is read by the control section as valid data, all the busy bits become "0". .

このようにデータ入力と制御部側のデータ読取りに付随
して状態が異なるビジィビット5はキーボード1のビジ
ィビット作成部8(BG)にて作成される。
The busy bit 5, which has different states depending on data input and data reading on the control section side, is created by the busy bit creation section 8 (BG) of the keyboard 1.

またビジィビット5が全て°′O゛の時に転送されるデ
ータは、有効であった最後のデータと同一内容のデータ
である。
Further, the data transferred when all the busy bits 5 are 0'O' is the same data as the last valid data.

キーボード制御部2は一定周期にてデータライン上のデ
ータを読取りビジィビットが所定の条件を満たしている
か否かをチェックすることにより、データの有効性を判
断するビジィ検査部9(BC)と、連続する2組のデー
タの比較を行ない一致した時のデータのみを正常データ
として取り込むデータ一致検査部10を持つ。
The keyboard control unit 2 is connected to a busy check unit 9 (BC) that reads data on the data line at regular intervals and checks whether the busy bit satisfies a predetermined condition to determine the validity of the data. The data matching unit 10 compares two sets of data and takes in only the data when they match as normal data.

第3図は、上述した第2図に示すキーボード1とキーボ
ード制御部2の動作を説明するための図である。
FIG. 3 is a diagram for explaining the operations of the keyboard 1 and the keyboard control section 2 shown in FIG. 2 described above.

以下図面に従い詳細に説明する。A detailed explanation will be given below according to the drawings.

(a) データ転送が正常である場合 キーボードよりデータ及びビジィビットが読出されたと
き、FLAG (フラグ:少なくとも2回連続して同じ
内容のデータの読出しを指示する)がセットされず、ビ
ジィビットが2ビット以上44 、11であること(キ
ー打鍵によるビジィビットは全て“°1°゛)が判別さ
れるとデータは有効とみなされ、FLAGがセットされ
、このデータは格納され、再度同じデータの読取り起動
が行なわれる。
(a) When data transfer is normal When data and busy bits are read from the keyboard, FLAG (flag: instructs to read the same data at least twice in a row) is not set and the busy bit is 2 bits. If it is determined that the above values are 44 and 11 (all busy bits due to keystrokes are “°1°”), the data is considered valid, the FLAG is set, this data is stored, and the reading of the same data is started again. It is done.

(以上の経路はブロック11.12,13,15,16
,14である)。
(The above route is block 11, 12, 13, 15, 16
, 14).

そして再度同じデータが読取られる。The same data is then read again.

この場合、キー打鍵が行なわれていないのでビジィビッ
トは全て0゛である。
In this case, all busy bits are 0' because no key is pressed.

既にFLAGがセットされた状態で行なわれるデータと
ビジィビットとの2回目の読取り時には、ビジィビット
が2ビット以上“1゛でないこと、および前回格納した
データと今回の読取りデータとが一致したことにより、
読取りデータが正常に転送されたものと判断され、FL
AGがリセットされる。
When the data and busy bit are read for the second time with FLAG already set, the busy bit is not 2 or more bits "1", and the data stored last time and the data read this time match.
It is determined that the read data has been transferred normally, and the FL
AG is reset.

これにより、前回格納したデータは、他の装置(図示せ
ず)に取り込まれ次のデータのキー読取り起動が行なわ
れる。
As a result, the previously stored data is taken into another device (not shown), and key reading activation of the next data is performed.

以上の様に、本発明においては、ビジィビットが1ビッ
ト以内で化けたでもデータを2回読出して一致をとり、
有効データを取込み、データ抜けを防止する。
As described above, in the present invention, even if the busy bit is corrupted within one bit, the data is read twice to find a match.
Capture valid data and prevent data loss.

尚、この経路は、ブロック11.12,17,18,1
9,20,14である。
Note that this route includes blocks 11, 12, 17, 18, 1
9, 20, 14.

また、ビジィビットが1ビツト化げの状態を第4図に示
す。
Further, FIG. 4 shows a state in which the busy bit is reduced to 1 bit.

第4図aは、←ボード1よりキー打鍵時転送される正常
なビジィビット21及びデータ22を示し、第4図すは
、データ転送で1ビット化けしたビジィビット21及び
データ22を示している。
FIG. 4a shows the normal busy bit 21 and data 22 transferred from the board 1 when a key is pressed, and FIG.

(b) ビジィビットが2ビット以上化ける場合キー
ボードより読み出されたデータ及びビジィビットは、F
LAGがセットされていない状態でビジィビットが2ビ
ット以上“1″でないことが判別されると、再度データ
及びビジィビットが読み出される(経路はブロック11
,12,13゜14)。
(b) If two or more busy bits are corrupted, the data read from the keyboard and the busy bits are
If it is determined that two or more bits of busy bits are not "1" while LAG is not set, the data and busy bits are read again (the path is from block 11).
, 12, 13°14).

この動作は、ビジィビットが2ビット以上化けなくなる
までくり返えされる。
This operation is repeated until no more than two busy bits can be corrupted.

ビジィビットが1ビツト化は以内になると、FLAGが
セットされ、データを有効データとして格納した後、こ
れと其の後の読取りデータの一致がとられるまで、デー
タは何度も読み出される。
When the busy bit becomes less than 1 bit, FLAG is set, the data is stored as valid data, and then the data is read out many times until a match is found between this and the subsequently read data.

以上の動作は、ブロック11,12゜13.15.16
,14.lL12,17゜18.14である。
The above operations are performed in blocks 11, 12゜13.15.16
,14. lL12,17°18.14.

(e) キーボード打鍵によるビジィビット(“1゜
′1141、i7111 )が1ビツト化げ以内で、次
に再度読み出されるビジィビット(“011 7101
1“O”)が2ビツト化は以上の場合 キーボードより読み出されたデータ及びビジィビットは
、まず、前記(a)同様、ブロック11゜12.13,
15,16,14の経路がとられる。
(e) If the busy bit (“1゜'1141, i7111) by keyboard keystroke is within 1 bit, then the busy bit (“011 7101”) that is read again
In the above case, the data read from the keyboard and the busy bit are first stored in blocks 11, 12, 13, 12, and 13, as in (a) above.
Routes 15, 16, and 14 are taken.

再度読出されたデータ及びビジィビット(2ビット以上
化け)は、FLAGがセットされている状態で、ビジィ
ビットが2ビット以上゛1“であることが判別されると
、データ無効として扱われ、jl 1. AIビジィビ
ットが1ビツト以下になるまでデータ再読取りが繰り返
される(このときの経路は、11,12,17,14)
ビジィビット“1′″が1ビツト以下になると、前回格
納したデータとの一致が判別される。
The re-read data and busy bits (two or more bits are garbled) are treated as invalid data if it is determined that the busy bits are two or more bits "1" while FLAG is set, and jl 1. Data re-reading is repeated until the AI busy bit becomes 1 bit or less (route at this time is 11, 12, 17, 14).
When the busy bit "1'" becomes less than 1 bit, it is determined whether the data matches the previously stored data.

一致が検出された場合(ビジィビットは化けていても、
データは化けていない場合)FLAGはリセットされ、
前回格納したデータは他の記憶装置等に取り込まれ、次
のデータのキー読取り起動が行なわれる(以上の経路は
、ブロック11.12,17,1B、19,20,14
)。
If a match is detected (even if the busy bit is corrupted,
If the data is not corrupted) FLAG is reset,
The previously stored data is imported into another storage device, etc., and the next data key reading activation is performed (the above path includes blocks 11, 12, 17, 1B, 19, 20, 14).
).

不一致が検出された場合(データも化けていた場合)、
再度同じデータ及びビジィビットのキー読取り起動が行
なわれ、前回読み取られ、格納されたデータと一致が取
れるまでこの動作をくり返す(以上の経路は、ブロック
11.12゜17.1B、14・・・・・・・・・。
If a mismatch is detected (if the data is also garbled),
The same data and busy bit key read activation is performed again, and this operation is repeated until the data matches the previously read and stored data. .......

)このデータ及びビジィビットの状態を第5図に示す。) The state of this data and busy bit is shown in FIG.

第5図aは、キーボード1より転送される正常な状態を
示す図であり、第5図すはキーボード制御装置2に転送
されたデータ化げが生じた状態を示し、第5図Cは再度
読取りの状態を示し、第5図dは再々度読み出しの状態
を示す。
FIG. 5A shows a normal state of data transferred from the keyboard 1, FIG. 5 shows a state where data is corrupted and is transferred to the keyboard control device 2, and FIG. The reading state is shown, and FIG. 5d shows the reading state again and again.

まず、キーボード制御装置2に転送された第5図すのデ
ータ24は格納され、FLAGがセットされる(第3図
経路は、ブロック11゜12.13,15,16,14
の順)。
First, the data 24 in FIG. 5 transferred to the keyboard control device 2 is stored, and FLAG is set (the path in FIG.
).

再度、読み出された第5図Cに示すデータ25は、前回
格納したデータ24と比転され、不一致なので再度読み
出しが行なわれる(第3図経路は、ブロックlL12,
17,18,140順)。
The read data 25 shown in FIG.
17, 18, 140).

再々度読み出された第5図dに示す正しいデータ26は
、前回格納したデータ25と比転され、これが一致する
のでFLAGをリセットシ、データ25を取り込み次の
読取りデータ及びビジィビットを読み出す。
The correct data 26 shown in FIG. 5D that has been read out again is compared with the previously stored data 25, and since they match, the FLAG is reset, data 25 is taken in, and the next read data and busy bit are read out.

(第3図の経路は、ブロック11,12,1γ、18,
19,20゜14の順である) 上述の様に本発明にあっては、前回読取ったデータとの
一致が取れるまで、何回も読取り動作をくり返す。
(The path in Fig. 3 includes blocks 11, 12, 1γ, 18,
19, 20°, and 14) As described above, in the present invention, the reading operation is repeated many times until a match with the previously read data is obtained.

尚、この不一致が、例えば5回以上くり返された場合、
操作者にデータ転送の誤りを知らせる機能をキーボード
あるいはキーボード制御装置は有している。
In addition, if this discrepancy is repeated for example 5 times or more,
The keyboard or keyboard control device has a function to notify the operator of errors in data transfer.

以上述べた如く本発明によれば、キーボードから転送さ
れるデータを少なくとも2回読み出し、そのデータの一
致が取れた場合、データを他の記憶装置等に取り込むた
め、データの湧きデータ抜けを防止出来、従って正確な
データ転送を行なうことができる。
As described above, according to the present invention, the data transferred from the keyboard is read out at least twice, and when a match is found, the data is imported into another storage device, etc., thereby preventing data leakage. Therefore, accurate data transfer can be performed.

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

第1図は、従来のデータ転送読取り方式を説明するため
のキーボード及びキーボード制御装置を示す図、第2図
は、本発明の一実施例であるデータ転送読取り方式を説
明するためのキーボード及びキーボード制御装置を示す
図、第3図は、本発明の詳細な説明するためのフローチ
ャー1・、第4図は、データ転送におけるビット抜は及
びビット湧き出しを説明するためのビジィビットとデー
タのフォーマットを示す図、第5図は、本発明の詳細な
説明するためのビジィビットとデータのフォーマットを
示す図である。 符号の説明、1・・・・・・キーボード、3・・・・・
・キー読取りデータ、5・・・・・・ビジィビット、8
・・・・・・ビジィビット作成部、9・・・・・・ビジ
ィビット検査部、10・・・・・・データ一致検査部。
FIG. 1 is a diagram showing a keyboard and a keyboard control device for explaining a conventional data transfer reading method, and FIG. 2 is a diagram showing a keyboard and a keyboard for explaining a data transfer reading method according to an embodiment of the present invention. 3 is a flowchart 1 for explaining the present invention in detail, and FIG. 4 is a diagram showing a busy bit and data format for explaining bit extraction and bit generation in data transfer. FIG. 5 is a diagram showing busy bits and data formats for explaining the present invention in detail. Explanation of symbols, 1...Keyboard, 3...
・Key reading data, 5... Busy bit, 8
. . . Busy bit creation section, 9 . . . Busy bit inspection section, 10 . . . Data matching inspection section.

Claims (1)

【特許請求の範囲】[Claims] 1 キーボードからの入力データを制御装置に転送して
読取るデータ転送読取り方式において、キーボード側で
データ入力時と上記制御装置によるデータ読取り後とで
それぞれ固有の状態をもつ複数ビットのビット情報を発
生させ、制御装置側で上記人力データと共に上記ビット
情報を周期的に読取り、読取ったビット情報の状態から
読取りデータの有効性を判定し、互いに有効と判断され
た前後2回の読取データ間に一致を検出したとき、当該
データを正常に転送された入力データとして扱うように
したことを特徴とするデータ転送読取り方式。
1 In a data transfer/read method in which input data from a keyboard is transferred to a control device and read, the keyboard generates multiple bits of bit information each having a unique state when inputting data and after data is read by the control device. , the control device periodically reads the bit information together with the manual data, determines the validity of the read data from the state of the read bit information, and finds a match between the two previous and previous read data that are mutually determined to be valid. A data transfer reading method characterized in that when detected, the data is treated as normally transferred input data.
JP54083980A 1979-07-04 1979-07-04 Data transfer reading method Expired JPS5845049B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP54083980A JPS5845049B2 (en) 1979-07-04 1979-07-04 Data transfer reading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP54083980A JPS5845049B2 (en) 1979-07-04 1979-07-04 Data transfer reading method

Publications (2)

Publication Number Publication Date
JPS569828A JPS569828A (en) 1981-01-31
JPS5845049B2 true JPS5845049B2 (en) 1983-10-06

Family

ID=13817678

Family Applications (1)

Application Number Title Priority Date Filing Date
JP54083980A Expired JPS5845049B2 (en) 1979-07-04 1979-07-04 Data transfer reading method

Country Status (1)

Country Link
JP (1) JPS5845049B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5968930U (en) * 1982-10-30 1984-05-10 積水化学工業株式会社 Lighting material

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5968930U (en) * 1982-10-30 1984-05-10 積水化学工業株式会社 Lighting material

Also Published As

Publication number Publication date
JPS569828A (en) 1981-01-31

Similar Documents

Publication Publication Date Title
US6009548A (en) Error correcting code retrofit method and apparatus for multiple memory configurations
CA1307850C (en) Data integrity checking with fault tolerance
US5177744A (en) Method and apparatus for error recovery in arrays
JPS6041770B2 (en) Error checking and correction system
EP0141498A2 (en) Apparatus for reducing storage necessary for error correction and detection in data processing machines
JPS59134937A (en) Information processing system
US6519736B1 (en) Generating special uncorrectable error codes for failure isolation
US6463563B1 (en) Single symbol correction double symbol detection code employing a modular H-matrix
US11249839B1 (en) Method and apparatus for memory error detection
JPS5845049B2 (en) Data transfer reading method
US4225959A (en) Tri-state bussing system
US4410988A (en) Out of cycle error correction apparatus
JPH07200419A (en) Bus interface device
JPH02188835A (en) Checking system for file write data
JPH0535616A (en) Data transfer system
JPH06214890A (en) calculator
JPH0573226A (en) Data input/output system for external storage device
JPS58218255A (en) Code error detection and correction system
JP3071846B2 (en) Parity error detection method and parity error detection circuit
JPS627238A (en) Data transmission control device
JPH03129531A (en) Control device
JPH036760A (en) Ram fault processing system
JPH1165942A (en) Control storage device failure recovery method
JPS61253564A (en) Storage device
JPH05224968A (en) Data check system