JPS6336540B2 - - Google Patents

Info

Publication number
JPS6336540B2
JPS6336540B2 JP58047073A JP4707383A JPS6336540B2 JP S6336540 B2 JPS6336540 B2 JP S6336540B2 JP 58047073 A JP58047073 A JP 58047073A JP 4707383 A JP4707383 A JP 4707383A JP S6336540 B2 JPS6336540 B2 JP S6336540B2
Authority
JP
Japan
Prior art keywords
data
processing
input
input means
time
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
JP58047073A
Other languages
Japanese (ja)
Other versions
JPS59173819A (en
Inventor
Shigeru Matsuoka
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 JP58047073A priority Critical patent/JPS59173819A/en
Publication of JPS59173819A publication Critical patent/JPS59173819A/en
Publication of JPS6336540B2 publication Critical patent/JPS6336540B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は入力装置に係り、特に入力手段と処理
手段との間を最小数の配線で結合して相互のデー
タ送受を行なう入力装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to an input device, and more particularly to an input device in which an input means and a processing means are coupled with a minimum number of wires to mutually transmit and receive data.

〔従来技術〕[Prior art]

第1図は、上記入力装置にかかる一般的な構成
を示したものである。
FIG. 1 shows a general configuration of the input device.

1は本体を示し、該本体1の中には状態表示を
行なうCRT2と、記憶媒体であるフレキシブル
メデイア(図示せず)を駆動するフレキシブルデ
イスク装置4が格納されている。また、本体1の
前部には入力手段3が配置されオペレータによる
文字等のデータ入力を可能とする。
Reference numeral 1 indicates a main body, and a CRT 2 for displaying status and a flexible disk device 4 for driving a flexible medium (not shown) as a storage medium are stored in the main body 1. Further, an input means 3 is arranged at the front of the main body 1 to enable the operator to input data such as characters.

第2図は布線系よりみた構成であり、処理手段
である主制御回路5と各々装置間はケーブル6,
7,8で接続されていることを示す。
Figure 2 shows the configuration seen from the wiring system, with cables 6,
7 and 8 indicate that they are connected.

第2図の主制御回路5について第3図を用い説
明する。
The main control circuit 5 shown in FIG. 2 will be explained using FIG. 3.

10はプログラム蓄積型計算ユニツト(以下
CPUという)で、11は不揮発性メモリーから
なり、電源投入時に実行するプログラムを有する
ブートROM、12は文書編集装置としての機能
を実行するプログラムを格納するためのプログラ
ムメモリー、14はドツトマトリクスで漢字を表
わすドツトデータを漢字コードの索引として記憶
するキヤラクタージエネレータ、15はCPU1
0の指令に従つて、キヤラクタージエネレータ1
4よりドツトデータを読み出し、CRT2を動作
させる信号を発生するコントローラである。13
は一時記憶部に係るフレキシブルデイスク装置4
を制御するフレキシブルデイスク制御回路
(FDC)である。回路相互はバスライン20で結
合されている。
10 is a program storage type calculation unit (hereinafter referred to as
(referred to as CPU), 11 is a boot ROM consisting of non-volatile memory and has a program executed when the power is turned on, 12 is a program memory for storing a program that performs the function of a document editing device, and 14 is a dot matrix with kanji characters. 15 is the CPU 1 which stores dot data representing the kanji code as an index
According to the command of 0, character generator 1
This is a controller that reads dot data from CRT 4 and generates a signal to operate CRT 2. 13
is a flexible disk device 4 related to a temporary storage section.
This is a flexible disk control circuit (FDC) that controls the The circuits are connected to each other by a bus line 20.

上記の構成において、いま電源が投入される
と、CPU10はイニシヤルプログラムローダで
あるブートROM11に記憶されたプログラムを
実行する。
In the above configuration, when the power is turned on, the CPU 10 executes the program stored in the boot ROM 11, which is an initial program loader.

一般に、かかるプログラムでは、フレキシブル
デイスク装置4にセツトされたフレキシブルデイ
スク(図示せず)に記憶されているデータを、プ
ログラムメモリー12に転送するものである。
Generally, such a program transfers data stored on a flexible disk (not shown) set in the flexible disk device 4 to the program memory 12.

そして、この転送が終了すると、CPU10は
プログラムメモリー12に記憶されている文書編
集装置としてのプログラムの先頭番地に制御を分
岐する。その結果、入力手段3上での操作をキー
入力に従いキー入力CE16、CPU10を介し、
CPT2上への文字の表示、文書編集等の処理が
可能となる。
When this transfer is completed, the CPU 10 branches control to the starting address of the program as a document editing device stored in the program memory 12. As a result, the operation on the input means 3 is performed according to the key input via the key input CE 16 and the CPU 10.
Processing such as displaying characters on CPT2 and editing documents becomes possible.

かかる入力装置3と、処理手段である主制御回
路5との接続について考えてみる。
Let us consider the connection between such an input device 3 and the main control circuit 5, which is a processing means.

外観上の問題によりカールコードが一般に使用
されつつある。ただし、カール性(コードの戻り
力)の条件より芯線数に制約があるため、複数の
信号を送受するには同一信号線を共用化すること
が考えられる。
Curl cords are becoming more commonly used due to cosmetic concerns. However, since there are restrictions on the number of core wires due to the curling property (returning force of the cord), it is conceivable to share the same signal wire to transmit and receive multiple signals.

この場合、データの衝突を防ぐため、相互に送
信と受信をシーケンシヤルに確認しあいながら繰
り返すハンドシエイク方法が提案されうる。
In this case, in order to prevent data collisions, a handshake method may be proposed in which transmission and reception are repeated while sequentially confirming each other.

但し、該ハンドシエイク方法を採用した場合で
も、次のような場合には、データ同志の衝突が発
生し回復下可能な状態(見かけ上システムダウ
ン)に陥いる。
However, even if this handshake method is adopted, in the following cases, a data collision occurs and the system falls into a state where recovery is possible (apparently the system is down).

今、処理手段5からデータを送信し、入力手段
3で受信する状態にあるものと仮定する。
It is now assumed that data is being transmitted from the processing means 5 and is being received by the input means 3.

信号ライン6上にノイズが重畳し、入力手段3
側で該ノイズをデータが送信されてくる初めのパ
ルスと判断したとする。しかして入力手段3側で
は、以降のデータとしてハイレベルが続き、当然
ストツプデータ、パリテイデータが付加されない
ために、フレームエラーと判断し、再送信要求を
処理手段5へ送信する。
Noise is superimposed on the signal line 6, and the input means 3
Assume that the noise is determined to be the first pulse of data being transmitted. However, on the input means 3 side, since the subsequent data continues to be at a high level and naturally no stop data or parity data are added, it is determined that a frame error has occurred and a retransmission request is sent to the processing means 5.

もし、このタイミングで処理手段5側からデー
タの送信があると、信号線上でデータの衝突が発
生する。
If data is transmitted from the processing means 5 side at this timing, a data collision will occur on the signal line.

この状態では処理手段5側、入力手段3は共に
データ送信済となり、相手側からのデータ待状態
となつてデータの送受信が停止してしまう。
In this state, both the processing means 5 side and the input means 3 have already sent data, are in a state of waiting for data from the other side, and stop transmitting and receiving data.

同様な状態は、特に、ノイズに起因することが
多い。
Similar conditions are often caused by noise, among other things.

また、オペレータが入力手段3のコネクタを外
したまま処理手段5の電源を投入し、その後に入
力手段3のコネクタを接続した場合でも同様な状
態となりえる。
Furthermore, a similar situation can occur even if the operator turns on the power to the processing means 5 with the connector of the input means 3 disconnected, and then connects the connector of the input means 3.

これらのことを考えると、ノイズ、取扱い等の
要因でデータの衝突が発生し、これがシステムダ
ウン(入力できない)に波及することになり、好
ましくない。
Considering these points, data collisions may occur due to factors such as noise and handling, which may lead to system failure (input is not possible), which is undesirable.

特に、部品破損等の要因で発生するのではな
く、電源を再投入すると正常に動作する。いわゆ
る一過性の不良であるために、逆にいつ再発する
のか不安をオペレータに与える結果になつてしま
う。
In particular, this does not occur due to factors such as broken parts, and it operates normally when the power is turned on again. Since this is a so-called temporary defect, the operator may be worried about when it will occur again.

[発明の目的] 本発明の目的は、処理手段と入力手段相互間の
データ送受信を同一の信号線を使用してハンドシ
エイク方法で行なうようにした入力装置におい
て、データの衝突が発生してハンドシエイクが崩
れ、データ送受ができなくなつたときにこれを自
動的に回復することができるようにすることにあ
る。
[Object of the Invention] An object of the present invention is to prevent handshake from occurring due to data collision in an input device in which data transmission and reception between a processing means and an input means is carried out by a handshake method using the same signal line. The purpose is to be able to automatically recover when the system collapses and data cannot be sent or received.

[発明の概要] この目的を達成するために、本発明は、複数の
接点を有する入力手段と、該入力手段からの信号
を処理する処理手段とを備えるとともに前記入力
手段及び処理手段のいずれか一方の内部に、送信
データと信号用配線上のデータをチエツクする手
段と、前記チエツク手段が送信データと信号用配
線上のデータの不一致を検出したときには一定時
間経過後に前記送信データと同一のものを再送信
する手段とを設け、該入力手段と処理手段相互間
を配線で結合し、該配線のうち少なくとも1本を
信号用として使用してハンドシエイク方法で該信
号用配線に相互に信号を送出又は受信するように
構成したものにおいて、前記入力手段及び処理手
段のいずれか一方の内部に、更に、データを送信
した後に他方の手段からのデータが送信されてく
るまでの時間管理を行なう手段と、前記時間管理
手段が、一方の手段からデータ送信後の一定時間
内に他方の手段からデータが送信されないことを
検出したときは特定のデータを再送信する手段と
を設け、入力手段と処理手段が共に受信状態で停
止したままにならないようにしたことを特徴とす
る。
[Summary of the Invention] In order to achieve this object, the present invention includes an input means having a plurality of contacts, a processing means for processing a signal from the input means, and a signal processing means for processing a signal from the input means and the processing means. A means for checking the transmitted data and the data on the signal wiring is provided inside one, and when the checking means detects a discrepancy between the transmitted data and the data on the signal wiring, the transmission data is checked after a certain period of time has elapsed. the input means and the processing means are connected by wiring, and at least one of the wirings is used for a signal to mutually send signals to the signal wiring by a handshake method. Or, in a device configured to receive data, one of the input means and the processing means further includes means for managing time from when data is transmitted until data is transmitted from the other means. and means for retransmitting specific data when the time management means detects that data is not transmitted from the other means within a certain period of time after data transmission from one means, and the input means and the processing means. Both are characterized in that they do not remain stopped in the receiving state.

すなわち、入力手段と処理手段が同一の信号線
を使用してハンドシエイク方法でデータ送受を行
なう場合、 データの衝突が発生したときに、送信側からみ
ると、データが部分的に反転(送信したレベルが
ハイでも、信号線上でのレベルがロウになる)す
ることに着目し、送信と同時に信号線上のレベル
をとりこみ、該とりこみレベルをチエツクするこ
とでデータ衝突を検出し、衝突があつたときは一
定時間後にデータを再送信することで、正常な状
態に復帰できるようになし、さらに、 データ送受を行なう場合、送信側よりみると、
次は相手側より送出されてくるデータを受信する
ことになるため、送信から受信までの時間を限定
できることに着目し、送信後の一定時間以内に、
受信データがない場合はデータ送出不良(データ
衝突有)とみなし、特定データを再送信すること
で、正常な状態に復帰できるようにすることにあ
る。
In other words, when the input means and the processing means use the same signal line to send and receive data using the handshake method, when a data collision occurs, from the perspective of the sending side, the data is partially reversed (the transmitted level Even if the signal line is high, the level on the signal line becomes low), the level on the signal line is captured at the same time as transmission, data collision is detected by checking the captured level, and when a collision occurs, By retransmitting the data after a certain period of time, the normal state can be restored.Furthermore, when sending and receiving data, from the perspective of the sending side,
Next, we will receive the data sent from the other party, so we focused on the fact that we can limit the time from transmission to reception, and within a certain period of time after transmission,
If there is no received data, it is assumed that there is a data transmission failure (data collision exists), and by retransmitting specific data, it is possible to return to a normal state.

但し、前記送信データをチエツクする手段およ
び前記時間をチエツクする手段は、入力手段、処
理手段のいずれか一方に具備するものとする。
However, the means for checking the transmission data and the means for checking the time are provided in either the input means or the processing means.

これは、データ送出不良(データの衝突)が発
生したときは相方共に送信状態にあり、次は受信
待状態になつていることによる。この状態下では
一方より送信を開始すれば、見かけ上、システム
は正常に復帰できることになる。
This is because when a data sending failure (data collision) occurs, both devices are in a transmitting state, and next they are in a receiving state. Under this condition, if transmission is started from one side, the system will seemingly return to normal.

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

次に実施例について説明する。 Next, an example will be described.

第4図は回路図を示すものであり、処理手段5
におけるキーボードCE16は処理IC(例えば、イ
ンテル社製8251A)30、バツフア素子31,5
3、ワンシヨツト回路58、Dタイプフリツプフ
ロツプ回路59で構成される。該キーボードCE
16とケーブル6により接続される入力手段3は
演算用LSI33、バツフア素子34,35,4
0、2入力NAND素子43、NOT素子39、セ
レクタ回路36、デコーダ回路37、スイツチマ
トリクス38、発光ダイオード41、発振回路4
2、ブザー44からなる。
FIG. 4 shows a circuit diagram, and shows the processing means 5.
The keyboard CE16 includes a processing IC (for example, Intel 8251A) 30, buffer elements 31, 5
3. It is composed of a one-shot circuit 58 and a D-type flip-flop circuit 59. The keyboard CE
16 and the input means 3 connected by a cable 6 include arithmetic LSI 33 and buffer elements 34, 35, 4.
0, 2 input NAND element 43, NOT element 39, selector circuit 36, decoder circuit 37, switch matrix 38, light emitting diode 41, oscillation circuit 4
2. Consists of a buzzer 44.

CPU10からバスライン20を介してデータ
が処理IC30に与えられると、Tx2端子より該デ
ータが出力されバツフア素子31を介して信号線
32上に送出される。同時にワンシヨツト回路5
8がトリガされ、所定の計時を開始する。さら
に、前記送出されたデータはバツフア素子53を
介して処理IC30にとりこまれて該処理IC30
内のレジスタ54に収納される。
When data is applied from the CPU 10 to the processing IC 30 via the bus line 20, the data is output from the Tx 2 terminal and sent onto the signal line 32 via the buffer element 31. At the same time, one shot circuit 5
8 is triggered and starts a predetermined time measurement. Furthermore, the sent data is taken into the processing IC 30 via the buffer element 53, and the processing IC 30
It is stored in the register 54 inside.

以降上記処理と並行し、送出されたデータはケ
ーブル6をとおり入力手段3の中にあるバツフア
素子35を介して演算用LSI33へ入力される。
Thereafter, in parallel with the above processing, the sent data is input to the calculation LSI 33 via the buffer element 35 in the input means 3 through the cable 6.

1データ送出後にキーボードCE16内では処
理IC30のレジスタ54の内容をチエツクする。
もし、送出したデータと不一致であれば、信号線
32上でデータの衝突等の異常状態が発生してい
るとみなせる。該検知の処理については後述す
る。
After sending one data, the contents of the register 54 of the processing IC 30 are checked in the keyboard CE 16.
If the data does not match the transmitted data, it can be assumed that an abnormal state such as a data collision has occurred on the signal line 32. The detection process will be described later.

前記の送出されたデータは演算用LSI33で判
別され、NOT素子39を介して発光ダイオード
41を点灯するか、あるいはバツフア素子40を
介して2入力NAND素子48の入力端子をハイ
レベルならしめ、他の入力端に発振回路42の出
力が接続されていることより、該発振回路42の
出力に同期してブザー44を鳴動させる。
The transmitted data is discriminated by the calculation LSI 33, and the light emitting diode 41 is turned on via the NOT element 39, or the input terminal of the 2-input NAND element 48 is set to a high level via the buffer element 40, and other operations are performed. Since the output of the oscillation circuit 42 is connected to the input terminal of the buzzer 44, the buzzer 44 sounds in synchronization with the output of the oscillation circuit 42.

次に目的とするスイツチオン個所の抽出とし
て、演算用LSI33はデコーダ回路37とセレク
タ回路36のアドレス信号線51,50へアドレ
ス信号を出力し、スイツチマトリクス38全体を
スキヤニング操作する。該処理中、セレクタ回路
36の出力信号がハイレベルの時はスイツチがオ
ンしていることを表わし、該スイツチ位置はアド
レス信号線51,50のアドレスとなる。
Next, to extract the target switch-on location, the calculation LSI 33 outputs address signals to the address signal lines 51 and 50 of the decoder circuit 37 and the selector circuit 36, and scans the entire switch matrix 38. During this processing, when the output signal of the selector circuit 36 is at a high level, it indicates that the switch is on, and the switch position becomes the address of the address signal lines 51, 50.

該処理を継続してスイツチマトリクス内のスイ
ツチオンアドレスを抽出し、演算用LSI33の
Tx1端子よりデータを出力し、バツフア素子34
を介し、信号線32上に送出される。該データ
は、しかしてケーブル6をとおり、キーボード
CE16の中にあるバツフア素子53を介して処
理IC30へ入力される。
Continuing this process, the switch address in the switch matrix is extracted, and the switch address of the calculation LSI 33 is extracted.
Output data from Tx 1 terminal and buffer element 34
The signal is sent out onto the signal line 32 via the signal line 32. The data then passes through cable 6 to the keyboard.
The signal is input to the processing IC 30 via the buffer element 53 in the CE 16.

処理IC30でデータ送出後受信するまで特定
の時間を要する。そこで前記ワンシヨツト回路5
8がタイマーアツプするまえであれば正常、タイ
マーアツプしてもデータないときは異常と判断す
る。この異常とは相互のデータが衝突した場合と
みなす。詳細は後述する。
It takes a certain amount of time for the processing IC 30 to receive the data after sending it. Therefore, the one-shot circuit 5
8 before the timer goes up, it is determined to be normal, and if there is no data even after the timer goes up, it is determined to be abnormal. This abnormality is considered to be a case where mutual data collides. Details will be described later.

該処理結果、入力されたデータはCPU10に
よりバスライン20を介して判別される。回路
中、バツフア素子31,34はオープンコレクタ
タイプのものである。
As a result of the processing, the input data is determined by the CPU 10 via the bus line 20. In the circuit, buffer elements 31 and 34 are of open collector type.

第5図は入力手段側起動のときのタイミングフ
オーマツトを示す。55はスイツチマトリクスの
スキヤニングを示し、次の56は入力手段からキ
ーボードCEへのデータ転送、次の57はキーボ
ードCEから入力手段側へのデータ転送を示す。
このように一連の動作が特定のパターンで繰り返
すようにしている。
FIG. 5 shows the timing format when the input means side is activated. 55 indicates scanning of the switch matrix, the next 56 indicates data transfer from the input means to the keyboard CE, and the next 57 indicates data transfer from the keyboard CE to the input means side.
In this way, a series of operations is repeated in a specific pattern.

第6図は前記データ転送時のシリアル転送フオ
ーマツトを示す。スタートビツト、ストツプビツ
トで挾持された8ビツトからなるデータである。
このようなフオーマツトは、NRZ(ノンリターン
ゼロ)方式と呼ばれ、スタートビツトの立下りタ
イミングをとらえ、その後、図に示すように、デ
ータの中央をねらいながらサンプリングしてデー
タを読みとるものである。
FIG. 6 shows the serial transfer format during the data transfer. This data consists of 8 bits held between a start bit and a stop bit.
This format is called the NRZ (non-return zero) method, and it captures the fall timing of the start bit and then reads the data by sampling while aiming at the center of the data, as shown in the figure.

この図でわかるように、データの衝突が発生し
た場合、送出したデータがハイレベルでも、相手
の送出レベルがロウレベルであれば信号線32上
でのレベルはロウレベルとなつてしまう。
As can be seen from this figure, when a data collision occurs, even if the sent data is high level, if the other party's sending level is low level, the level on the signal line 32 becomes low level.

第7図はキーボードCEから入力手段へ送出さ
れるデータ例を示したものである。
FIG. 7 shows an example of data sent from the keyboard CE to the input means.

D8:再送信要求 前に送出されたデータが判別不可のため再
度送出する依頼を出す。ノイズ等によりデ
ータが影響をうけることを考慮している。
D8: The data sent before the retransmission request cannot be determined, so a request is made to send it again. This takes into consideration the fact that the data may be affected by noise, etc.

D7:イニシヤル処理 フラグ等の初期化を行なう。D7: Initial processing Initialize flags, etc.

D6:スキヤニング停止 この指示によりキーボードCEが起動側と
なる。
D6: Scanning stop With this instruction, the keyboard CE becomes the starting side.

D5:スキヤニング開始 この指示により入力手段が起動側となる。D5: Start scanning This instruction causes the input means to become the activation side.

D4:LEDをオン/オフ D3:ブザーをオン/オフ 次に、第8図、第9図を用いて具体的な処理フ
ローチヤートについて説明する。
D4: Turn on/off LED D3: Turn on/off buzzer Next, a specific processing flowchart will be explained using FIGS. 8 and 9.

電源投入後、キーボードCEと入力手段内部に
て、カウンタ類を初期化するイニシヤル処理7
0,71を行なう。
After the power is turned on, initial processing 7 initializes the counters inside the keyboard CE and input means.
Do 0,71.

該処理後、キーボードCE側起動となり、入力
手段はWAIT状態となる。
After this processing, the keyboard CE side is activated and the input means enters the WAIT state.

次に、キーボードCE側よりコード要求を送出
する処理72を行なう。これは入力手段の種類を
判別するために指示するものである。
Next, a process 72 is performed in which a code request is sent from the keyboard CE side. This is an instruction for determining the type of input means.

該送出と同時に次の処理を実施する。前記送出
に応動して送出データチエツク処理73を行な
う。該結果、NG(不一致)の場合はデータの衝
突が発生していると判断し、タイマー処理74を
実行して一定時間後にコード要求を送出する処理
72を行なう。データの衝突があるということは
入力手段でもデータ送出が完了して受信データ待
となつているはずであり、再データ送出によつて
正常に復帰できる。
At the same time as the transmission, the following processing is performed. In response to the transmission, a transmission data check process 73 is performed. If the result is NG (mismatch), it is determined that a data collision has occurred, a timer process 74 is executed, and a process 72 is performed in which a code request is sent after a certain period of time. If there is a data collision, it means that the input means has also completed sending data and is waiting for received data, and normality can be restored by sending data again.

送出データチエツク処理73の結果、OK(一
致)の場合は次のステツプに進む。
If the result of the sending data check process 73 is OK (match), the process advances to the next step.

ここで、前記コード要求処理72の実行により
前記ワンシヨツト回路58がトリガされ、計時を
開始する。同時に制御信号線46をハイレベルと
する。該処理の内容については後述する。
Here, the one-shot circuit 58 is triggered by the execution of the code request process 72 and starts measuring time. At the same time, the control signal line 46 is set to high level. The details of this processing will be described later.

前記コード要求処理72実行により送出された
データは、入力手段側で受信データ判別処理75
にて判別される。
The data sent by executing the code request process 72 is processed by the received data discrimination process 75 on the input means side.
It is determined by

次に、判別処理完了チエツク処理76をへて入
力手段の種類コードを送出するコード送出処理7
7を行なう。
Next, a code sending process 7 for sending out the type code of the input means after passing through the determination process completion check process 76.
Do step 7.

送出したデータはキーボードCE側で次のよう
に処理される。前記コード要求処理72を実行し
た時、該データ送出タイミングでワンシヨツト回
路58をトリガしており、該ワンシヨツト回路5
8がタイムオーバーするとDタイプフリツプフロ
ツプ59をセツトする。つまり信号線45はハイ
レベルとなる。しかして、処理78で信号線45
がハイレベルかどうかチエツクし、再送信されて
くる時間間隔をチエツクする。もし、信号線45
がハイレベルの時は所定時間内に、返信データが
ない状態であり、異常状態と判断する。この異常
状態とは、相互に誤つたタイミングで信号線32
にデータを送出したことによつて、データの衝突
が発生したことを示す。なぜならば、データの衝
突があるということは両手段ではデータ送出が完
了して受信データ待となつているからである。該
状態が検知された場合には新たにキーボードCE
側からデータを送出すれば、正常に復帰できるこ
とになる。該処理を行なうのが処理78であり、
信号線45がハイレベルの時は処理72にジヤン
プする。このとき制御信号線46を一瞬ロウレベ
ルとしてDタイプフリツプフロツプ59をリセツ
トする。
The sent data is processed on the keyboard CE side as follows. When the code request processing 72 is executed, the one shot circuit 58 is triggered at the data sending timing, and the one shot circuit 58 is triggered at the data sending timing.
8, the D type flip-flop 59 is set. In other words, the signal line 45 becomes high level. However, in process 78, the signal line 45
Check whether the signal is at a high level and check the time interval between retransmissions. If signal line 45
When is at a high level, it means that there is no reply data within a predetermined period of time, and it is determined to be an abnormal state. This abnormal state means that the signal line 32 is connected at mutually wrong timing.
Indicates that a data collision has occurred due to data being sent. This is because, if there is a data collision, both means have completed sending data and are waiting for data to be received. If this condition is detected, a new keyboard CE
If the data is sent from the side, it will be possible to return to normal. Processing 78 performs this processing,
When the signal line 45 is at high level, the process jumps to process 72. At this time, the control signal line 46 is momentarily brought to a low level to reset the D-type flip-flop 59.

信号線45がロウレベルの時は次に受信データ
有無チエツク処理79を行ない、送出データを待
つようにする。
When the signal line 45 is at a low level, a reception data presence/absence check process 79 is then performed to wait for transmission data.

しかして、送出データが検知された場合は制御
信号線46をロウレベルとして次の受信データ判
別処理80を行なう。該判別処理が完了したこと
を判別完了チエツク処理81で確認して制御デー
タ送出処理82を行なう。該送出と同時に前記同
様次の処理を行なう。前記送出に応動して送出デ
ータチエツク処理83を行ない、NGの場合には
タイマー処理84を実行し、一定時間後に再び制
御データの送出を行なうようにする。ここで、前
記制御データ送出処理82実行により、前記ワン
シヨツト回路58がトリガされて計時を開始し、
同時に制御信号線46をハイレベルとする。
If sending data is detected, the control signal line 46 is set to low level and the next received data determination process 80 is performed. Completion of the discrimination process is confirmed by a discrimination completion check process 81, and a control data sending process 82 is performed. At the same time as the sending, the following processing is performed as described above. In response to the above-mentioned transmission, a transmission data check process 83 is performed, and in the case of NG, a timer process 84 is executed, and the control data is transmitted again after a certain period of time. Here, by executing the control data sending process 82, the one-shot circuit 58 is triggered to start measuring time,
At the same time, the control signal line 46 is set to high level.

次は、処理78,79にて返信されてくるデー
タ待となる。
Next, processing 78 and 79 wait for data to be returned.

前記制御データ送出処理82により送出された
データは、入力手段側で受信データ判別処理8
5、判別処理完了チエツク処理86をへて、送出
されたデータに基づく制御データ処理87を行な
う。
The data sent by the control data sending process 82 is processed by the received data determining process 8 on the input means side.
5. After the determination processing completion check processing 86, control data processing 87 is performed based on the sent data.

次にスキヤニング処理88を行なう。該スキヤ
ニング処理とは、第4図に示したスイツチマトリ
クス38内のオンしているスイツチを抽出するこ
とにある。該スキヤニングの結果、送出すべきデ
ータがあるかどうかの送出データチエツク処理8
9を行なう。
Next, scanning processing 88 is performed. The scanning process consists in extracting the ON switches in the switch matrix 38 shown in FIG. Transmission data check processing 8 to determine whether there is data to be transmitted as a result of the scanning.
Do 9.

もし、送出すべきデータがある場合は、データ
送出処理90を行ない信号線32上へデータを送
出する。送出後はキーボードCE側から送出され
てくるデータ待となり、処理85,86にジヤン
プする。
If there is data to be sent, a data sending process 90 is performed to send the data onto the signal line 32. After sending, the process waits for data sent from the keyboard CE side, and jumps to processes 85 and 86.

前記送出データチエツク処理89の結果、送出
すべきデータがない場合は、スイツチオンが抽出
されないスキヤニング回数を計数するNCカウン
タを歩進する処理91を実行する。このNCカウ
ンタは、入力手段からキーボードCEへデータが
送出されるとクリアされる。計数値が特定値(10
回)に達したか否かのチエツク処理92を行い、
達していない場合は、スキヤニング動作処理77
へ戻り、同様な処理をくりかえす。計数値が特定
値に達した場合は、次のダミーデータセツト処理
93を行なう。この一連の動作は、該処理フロー
チヤートが入力手段側起動であるため、スイツチ
オンアドレスが抽出されない場合はキーボード
CE側へデータの送出がされず、従つてキーボー
ドでCE側からも入力手段側へ制御データを送出
できないことを防止することにある。つまり、デ
ータの送受はハンドシエイク方式であるため、キ
ーボードCE側からブザーを鳴動したくても、入
力手段側からの起動つまり、スイツチオンアドレ
スが抽出されてデータ送出がないかぎりキーボー
ドCE側からデータ送出はできない。そこで、一
定時間(スキヤニング動作回数10回、約
100msec)ごとにキーボードCE側へ、ダミーデ
ータを送出するようにした。これにより、キーボ
ードCE側で制御データがある場合(例えばブザ
ーオン)は、これを入力手段側へ送出可能とな
る。
If the result of the sending data check process 89 is that there is no data to be sent, a process 91 is executed to increment an NC counter that counts the number of times of scanning in which no switch is extracted. This NC counter is cleared when data is sent from the input means to the keyboard CE. The count value is a specific value (10
A check process 92 is performed to see if the number of times) has been reached.
If not, scan operation processing 77
Return to and repeat the same process. When the count value reaches a specific value, the next dummy data set process 93 is performed. This series of operations is started from the input means side in the processing flowchart, so if the switch-on address is not extracted, the keyboard
The purpose is to prevent data from being sent to the CE side and, therefore, from being unable to send control data from the CE side to the input means side using the keyboard. In other words, data is transmitted and received using the handshake method, so even if you want to sound the buzzer from the keyboard CE side, unless the input device activates it, that is, the switch-on address is extracted and no data is sent, the data will not be sent from the keyboard CE side. I can't. Therefore, for a certain period of time (10 scanning operations, approx.
Dummy data is now sent to the keyboard CE side every 100msec). As a result, if there is control data on the keyboard CE side (for example, buzzer on), it can be sent to the input means side.

本実施例によれば、ノイズなどの要因で相互の
送出データが衝突した場合、あるいは接続コネク
タの着脱によつてハンドシエイクがくずれた場合
でも正常に復帰しえるようにできるため、製品機
能面における信頼性は極めて向上する。
According to this embodiment, even if the transmitted data collides with each other due to factors such as noise, or if the handshake is broken due to the connection and disconnection of the connector, it can be restored to normal, thereby increasing the reliability of the product functionality. sex is greatly improved.

次に他の実施例について第10図、第11図を
用い説明する。
Next, another embodiment will be explained using FIG. 10 and FIG. 11.

本実施例は入力手段側でハンドシエイクがくず
れ、キーボードCE側からの送出データの受信が
不可能になることに対応するものである。
This embodiment deals with the case where handshake breaks down on the input means side and it becomes impossible to receive data sent from the keyboard CE side.

キーボードCE内部に電源供給手段94を備え、
制御信号線47により入力手段側への電圧Vをコ
ントロールするように構成したものである。この
制御信号線47は常時ロウレベルであり、このと
き電源供給手段94は入力手段へ電源電圧Vを供
給する。
A power supply means 94 is provided inside the keyboard CE,
The control signal line 47 is configured to control the voltage V applied to the input means side. This control signal line 47 is always at a low level, and at this time, the power supply means 94 supplies the power supply voltage V to the input means.

第11図に示す処理の中で、所定時間内に入力
手段からの返信データがないことを処理78で確
認した場合は前記制御信号線47を所定時間だけ
ハイレベルとし、入力手段への電源供給を電源供
給手段94により一時的に止める。その後、制御
信号線47を再びロウレベルとなすリセツト処理
95を実施する。該処理結果、入力手段側は再び
処理71から実行し始める。
In the process shown in FIG. 11, if it is confirmed in process 78 that there is no return data from the input means within a predetermined time, the control signal line 47 is set to a high level for a predetermined time, and power is supplied to the input means. is temporarily stopped by the power supply means 94. Thereafter, a reset process 95 is performed in which the control signal line 47 is set to low level again. As a result of this process, the input means side starts executing from process 71 again.

しかして、リセツト処理95により制御信号線
47を再びロウレベルとなした後、所定時間経過
後に処理72を実施する。該処理によつて正常に
動作復帰できる。
After the control signal line 47 is set to low level again by the reset process 95, the process 72 is executed after a predetermined period of time has elapsed. Through this processing, normal operation can be restored.

この実施例の信号処理は、第11図と第9図に
より実行される。
The signal processing in this embodiment is performed as shown in FIGS. 11 and 9.

この実施例によれば、前記実施例と同様の効果
を得ることができる。
According to this embodiment, the same effects as in the previous embodiment can be obtained.

[発明の効果] 以上のように本発明によれば、処理手段と入力
手段相互間のデータ送受信を同一の信号線を使用
してハンドシエイク方法で行なうようにした入力
装置において、データの衝突が発生してハンドシ
エイクが崩れ、データ送受ができなくなつたとき
にこれを一定時間後に自動的に回復することがで
きるので、入力装置の信頼性を向上させることが
できる。
[Effects of the Invention] As described above, according to the present invention, data collision does not occur in an input device in which data transmission and reception between a processing means and an input means is performed by a handshake method using the same signal line. When the handshake is broken and data transmission/reception is no longer possible, this can be automatically restored after a certain period of time, so the reliability of the input device can be improved.

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

第1図は入力装置の一般的な構成を示した斜視
図、第2図は布線系よりみた構成ブロツク図、第
3図は主制御回路のブロツク図、第4図は本発明
の一実施例である回路図、第5図は入力手段側起
動のタイミングフオーマツト図、第6図はシリア
ル転送フオーマツト図、第7図はキーボードCE
から入力手段へ送出されるデータ例説明図、第8
図および第9図は一実施例を示す処理フローチヤ
ート、第10図は他の実施例を示す回路図、第1
1図は他の実施例を示す処理フローチヤートであ
る。 3…入力手段、6…ケーブル、10…CPU、
16…キーボードCE、30…処理IC、31…バ
ツフア素子、32,45…信号線、46,47…
制御信号線、53…バツフア素子、54…レジス
タ、58…ワンシヨツト回路、59…Dタイプフ
リツプフロツプ回路、94…電源供給手段。
Fig. 1 is a perspective view showing the general configuration of the input device, Fig. 2 is a block diagram of the configuration seen from the wiring system, Fig. 3 is a block diagram of the main control circuit, and Fig. 4 is an embodiment of the present invention. Examples of circuit diagrams: Figure 5 is a timing format diagram for activation of the input means side, Figure 6 is a serial transfer format diagram, Figure 7 is a keyboard CE diagram.
An explanatory diagram of an example of data sent from to input means, No. 8
9 and 9 are processing flowcharts showing one embodiment, FIG. 10 is a circuit diagram showing another embodiment, and FIG.
FIG. 1 is a processing flow chart showing another embodiment. 3...Input means, 6...Cable, 10...CPU,
16... Keyboard CE, 30... Processing IC, 31... Buffer element, 32, 45... Signal line, 46, 47...
Control signal line, 53... Buffer element, 54... Register, 58... One shot circuit, 59... D type flip-flop circuit, 94... Power supply means.

Claims (1)

【特許請求の範囲】 1 複数の接点を有する入力手段と、該入力手段
からの信号を処理する処理手段とを備えるととも
に前記入力手段及び処理手段のいずれか一方の内
部に、送信データと信号用配線上のデータをチエ
ツクする手段と、前記チエツク手段が送信データ
と信号用配線上のデータの不一致を検出したとき
は一定時間経過後に前記送信データと同一のもの
を再送信する手段とを設け、該入力手段と処理手
段相互間を配線で結合し、該配線のうち少なくと
も1本を信号用として使用してハンドシエイク方
法で該信号用配線に相互に信号を送出又は受信す
るように構成したものにおいて、 前記入力手段及び処理手段のいずれか一方の内
部に、更に、データを送信した後に他方の手段か
らのデータが送信されてくるまでの時間管理を行
なう手段と、 前記時間管理手段が、一方の手段からデータ送
信後の一定時間内に他方の手段からデータが送信
されないことを検出したときは特定のデータを再
送信する手段と を備えたことを特徴とする入力装置。 2 特許請求の範囲第1項において、 前記送信データチエツク手段と前記時間管理手
段は処理手段側に設けられ、該処理手段は該入力
手段への電源供給を制御する電源供給手段を備
え、前記時間管理手段により入力手段からのデー
タが一定時間以上送信されないことを検出したと
きに、前記電源供給手段により電源を瞬断し動作
を回復させるようにしたことを特徴とする入力装
置。
[Scope of Claims] 1. An input means having a plurality of contacts, and a processing means for processing signals from the input means, and inside either the input means or the processing means, there is provided an input means for transmitting data and a signal. means for checking the data on the wiring; and means for retransmitting the same data as the transmission data after a certain period of time when the checking means detects a mismatch between the transmission data and the data on the signal wiring; The input means and the processing means are connected to each other by a wire, and at least one of the wires is used for a signal, and signals are mutually sent to or received from the signal wire by a handshake method. , a means for managing time from the time when data is transmitted until the data is transmitted from the other means within either one of the input means and the processing means; An input device comprising: means for retransmitting specific data when detecting that data is not transmitted from another means within a certain period of time after data is transmitted from the other means. 2. In claim 1, the transmission data checking means and the time management means are provided on a processing means side, the processing means includes a power supply means for controlling power supply to the input means, and the time management means An input device characterized in that when the management means detects that data from the input means is not transmitted for a certain period of time or more, the power supply means momentarily cuts off the power to restore operation.
JP58047073A 1983-03-23 1983-03-23 Input device Granted JPS59173819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58047073A JPS59173819A (en) 1983-03-23 1983-03-23 Input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58047073A JPS59173819A (en) 1983-03-23 1983-03-23 Input device

Publications (2)

Publication Number Publication Date
JPS59173819A JPS59173819A (en) 1984-10-02
JPS6336540B2 true JPS6336540B2 (en) 1988-07-20

Family

ID=12764987

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58047073A Granted JPS59173819A (en) 1983-03-23 1983-03-23 Input device

Country Status (1)

Country Link
JP (1) JPS59173819A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0340336U (en) * 1989-08-26 1991-04-18
US6754451B1 (en) 1999-06-08 2004-06-22 Nec Corporation Infrared transmission/reception apparatus and infrared transmission/reception method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02134656A (en) * 1988-11-15 1990-05-23 Canon Inc Picture recorder

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57146340A (en) * 1981-03-06 1982-09-09 Hitachi Ltd Data transfer system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57146340A (en) * 1981-03-06 1982-09-09 Hitachi Ltd Data transfer system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0340336U (en) * 1989-08-26 1991-04-18
US6754451B1 (en) 1999-06-08 2004-06-22 Nec Corporation Infrared transmission/reception apparatus and infrared transmission/reception method

Also Published As

Publication number Publication date
JPS59173819A (en) 1984-10-02

Similar Documents

Publication Publication Date Title
US4719626A (en) Diagnostic method and apparatus for channel control apparatus
US5058112A (en) Programmable fault insertion circuit
US6745120B2 (en) Vehicle-mounted electronic control apparatus
JPH0252281B2 (en)
EP0115348B1 (en) Remote initialization of interconnected communications stations
JPS6336540B2 (en)
CN111565236B (en) Automatic coding method and device for sensor of fire protection system
JP6792314B2 (en) Communication devices, communication methods, programs, and communication systems
JPH0713880A (en) Method for transmission of information to bus
CN115158341B (en) Vehicle fault uploading method and device based on functional safety design
JP4247144B2 (en) Ultrasonic diagnostic equipment
JPH0417455B2 (en)
JPS5990127A (en) Information processor
US4760514A (en) Data transmission system with flexible error recovery
JPH0863407A (en) Information transfer controller
JP2945123B2 (en) Communications system
US4327409A (en) Control system for input/output apparatus
JP3606593B2 (en) Multiple data batch transfer control method
JP3134256B2 (en) Printer bidirectional communication method
JP2980550B2 (en) Communication device
EP0378424B1 (en) Link transmission priority start
CN114168070A (en) Storage device, master-slave determination method, and storage medium
JPH1168802A (en) Faulty environment supervisory system
JPH10283225A (en) Information collection system
JP2676609B2 (en) Data transmission method