JPS6028026B2 - Central processing unit mutual communication method - Google Patents

Central processing unit mutual communication method

Info

Publication number
JPS6028026B2
JPS6028026B2 JP8800781A JP8800781A JPS6028026B2 JP S6028026 B2 JPS6028026 B2 JP S6028026B2 JP 8800781 A JP8800781 A JP 8800781A JP 8800781 A JP8800781 A JP 8800781A JP S6028026 B2 JPS6028026 B2 JP S6028026B2
Authority
JP
Japan
Prior art keywords
signal
central processing
data signal
processing unit
data
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
JP8800781A
Other languages
Japanese (ja)
Other versions
JPS57203121A (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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP8800781A priority Critical patent/JPS6028026B2/en
Publication of JPS57203121A publication Critical patent/JPS57203121A/en
Publication of JPS6028026B2 publication Critical patent/JPS6028026B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0227Cooperation and interconnection of the input arrangement with other functional units of a computer

Description

【発明の詳細な説明】 本発明は、自動販売機その他の機器の諸動作を集中的に
処理して制御するいわゆるマイクロコンピュータすなわ
ち集中処理装置の相互間にて交信する集中処理装置相互
交信方式に関し、特に、通常の入出力ボートを用い、通
常のプログラムによりその容量を増大させることなく、
また、異種装置相互間においても交信を行ない得るよう
にしたものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a centralized processing device mutual communication system in which so-called microcomputers, that is, centralized processing devices that centrally process and control various operations of vending machines and other equipment communicate with each other. , in particular, using a normal input/output port and without increasing its capacity by a normal program.
Furthermore, it is possible to communicate with each other even between devices of different types.

いわゆるマイクロコンピュータを複数個用いて構成した
自動販売機等の制御回路におけるそれらのマイクロコン
ピュータ相互間の交信については、効率よく円滑に相互
交信を行ない得ることが要求されている。
In a control circuit for a vending machine or the like constructed using a plurality of so-called microcomputers, it is required that the microcomputers communicate with each other efficiently and smoothly.

しかして、複数個のマイクロコンピュータにより構成し
た制御回路は、単一のマイクロコンピュータのみからな
る制御回路に比してつぎのような長所を有している。【
11 処理機能の分散化が容易である。
Thus, a control circuit made up of a plurality of microcomputers has the following advantages over a control circuit made up of only a single microcomputer. [
11 It is easy to decentralize processing functions.

■ 複数種の処理を並行して行なえるので、処理速度を
高めることができる。
■ Processing speed can be increased because multiple types of processing can be performed in parallel.

【3’いわゆるワンチップのマイクロコンピュータを使
用する制御回路においては、入出力ボート、ランダムア
クセスメモリ(RAM)、リードオンリメモリ(RoM
)などワンチップに備えた構成要素の拡張を容易かつ比
較的安価に達成することができる。
[3' In a control circuit that uses a so-called one-chip microcomputer, input/output boards, random access memory (RAM), read-only memory (RoM)
), etc., can be easily and relatively inexpensively expanded.

一方、この種マイクロコンピュータを複数個用いた制御
回路全体としては、統一性を失うことなく、マイクロコ
ンピュータ相互間の調和を保持した処理動作が要求され
、したがって、マイクロコンピュータ相互間の交信を効
率よく円滑に行ない得ることが重要であり「つぎのよう
な条件を流す必要があった。
On the other hand, the entire control circuit using multiple microcomputers of this type is required to perform processing operations that maintain harmony among the microcomputers without losing unity. It was important that the process could be carried out smoothly, and ``the following conditions had to be met.''

{1} 種類の異なるマイクロコンピュータの相互間に
おいても交信が可能であること。
{1} Communication is possible even between different types of microcomputers.

【2ー 交信に要する処理プログラムの量ができるだけ
少ないこと。
[2- The amount of processing programs required for communication should be as small as possible.

{3’ 外部からのノイズの影響や回路部品の故障など
による交信異常の発生にも充分に対処し得ること。
{3' It must be able to adequately deal with the occurrence of communication abnormalities due to the influence of external noise or failure of circuit components.

‘41 交信速度の高低、交信データ量の多寡にも対応
し得ること。
'41 Ability to respond to high/low communication speeds and large/low amounts of communication data.

上述のような諸条件に対し、従来のこの種制御回路はつ
ぎのような欠点があった。
Under the above-mentioned conditions, conventional control circuits of this type have the following drawbacks.

例えば、相互間の交信に、固有の入出力ボートを転用し
た従来のこの種制御回路においては、各マイクロコンピ
ュータ内部の各種のデータに並列−直列変換を施して順
次に出力するための出力ボートおよび外部からの順次の
各種データに直列−並列変換を施して並列に入力するた
めの入力ボートを他のマイクロコンピュータとの間の交
信に容易に利用し得る利点を有する反面に、つぎのよう
な欠点を有している。
For example, in conventional control circuits of this type in which unique input/output ports are used for mutual communication, output ports and Although it has the advantage of being able to easily use an input port for serial-to-parallel conversion and inputting data in parallel from various external sources for communication with other microcomputers, it has the following drawbacks: have.

‘1ー 同一種類のマイクロコンピュータ相互間の交信
には容易にそれぞれに固有の入出力ボートを容易に利用
し得るが、異なる種類のマイクロコンピュータ相互間の
交信、特に、並列入力の場合には、データの入出力の態
様が相違するために、その入出力の態様の相違を調整す
るための処理プログラムや回路装置が必要となるため、
回路構成が複雑となり、製造価格が上昇する。
'1 - For communication between microcomputers of the same type, it is easy to use their own input/output ports, but for communication between microcomputers of different types, especially in the case of parallel input, Because the data input/output modes are different, processing programs and circuit devices are required to adjust the differences in the input/output modes.
The circuit configuration becomes complicated and the manufacturing price increases.

【2} 他のマイクロコンピュータからのデータの議取
りは、タイミング同期用のクロックパルスの入力時に行
なうのであるが、ノイズが侵入した場合にそのノイズの
影響を受けてデータ議取りに誤りが生じ易く、かかるノ
イズによる誤動作に対処するための処理プログラムを設
けると処理プログラム全体の量が過度に増大する。また
、複数のマイクロコンピュータに共通に利用し得るよう
にしたランダムアクセスメモリ等の外部メモリを設けた
この種の制御回路においては、その外部メモリを仲介に
して異種マイクロコンピュータ相互間の交信も可能とな
るが、その外部メモリのアクセスには各マイクロコンピ
ュータ間に優先順位を設けて同時にアクセスしないよう
にする必要があり、つぎのような欠点を有している。
[2] Data is exchanged from other microcomputers when a clock pulse for timing synchronization is input, but if noise enters, errors in data exchange are likely to occur due to the influence of that noise. However, if a processing program is provided to deal with malfunctions caused by such noise, the total amount of the processing program will increase excessively. Furthermore, in this type of control circuit equipped with an external memory such as a random access memory that can be commonly used by multiple microcomputers, it is also possible to communicate between different types of microcomputers using the external memory as an intermediary. However, when accessing the external memory, it is necessary to set priorities among the microcomputers so that they do not access them simultaneously, and this has the following drawbacks.

‘1} 外部メモリをアクセスし得るデータバス乃至ア
ドレスバスを備えたマイク。
'1} A microphone equipped with a data bus or address bus that can access external memory.

コンピュータのみを用いてこの種制御回路を構成する必
要があるために、製造価格が上昇し、安価な制御回路が
得られなくなる。‘2ー し・わゆるワンチップマイク
ロコンピュータのようにランダムアクセスメモリを内蔵
したマイクロコンピュータを用いて構成したこの種の制
御回路においてはメモリ容量が過剰となり、無用の価格
上昇を招くことになる。
Since it is necessary to configure this type of control circuit using only a computer, the manufacturing cost increases and it becomes impossible to obtain an inexpensive control circuit. 2. In this type of control circuit constructed using a microcomputer with a built-in random access memory, such as a so-called one-chip microcomputer, the memory capacity becomes excessive, leading to an unnecessary increase in price.

本発明の目的は、上述した従来の種々の欠点をすべて除
去し、前述したこの種制御回路に必要な諸条件をすべて
満たした、処理プログラム量が少なく、安定に動作し、
異種装置間にても任意の態様の交信を行ない得るように
した集中処理装置相互交信方式を提供することにある。
The object of the present invention is to eliminate all of the various drawbacks of the conventional technology described above, satisfy all the conditions necessary for this type of control circuit described above, require a small amount of processing programs, operate stably,
It is an object of the present invention to provide a centralized processing unit mutual communication system that allows communication in any manner even between different types of devices.

すなわち、本発明集中処理装置相互交信方式は、複数ビ
ット1ワードの並列データ信号を伝送するデータ信号線
と、前記デ−タ信号の送出を示す送出信号を伝送する送
出信号線と、前記データ信号を受信したことを示す確認
信号を伝送する確認信号線とにより集中処理装置相互間
を接続して相互間の交信を行う方式であって、送信側集
中処理装置にて前記データ信号を前記送出信号とともに
送信し、受信側集中処理装置にて前託送出信号の受信に
応じ1ワード分のデータ信号を受信するとともに前記確
認信号を返信し、前記送信側集中処理装置にては前記確
認信号の受信に応じ次の1ワード分のデータ信号を前記
と同様に送信するようにし、前記データ信号、送出信号
および確認信号の受信は各信号について複数回のサンプ
ル値が同一であることを確認して行う。以下に図面を参
照して本発明を詳細に説明する。
That is, the central processing unit mutual communication system of the present invention has a data signal line for transmitting parallel data signals of one word of multiple bits, a transmission signal line for transmitting a transmission signal indicating transmission of the data signal, and a data signal line for transmitting a transmission signal indicating transmission of the data signal. This is a method in which the central processing units are connected to each other by a confirmation signal line that transmits a confirmation signal indicating that the data signal has been received, and communication between them is performed, and the transmitting central processing unit transmits the data signal to the sending signal. In response to the receipt of the advance transmission signal, the receiving central processing device receives a data signal for one word and returns the confirmation signal, and the transmitting central processing device receives the confirmation signal. The data signal for the next one word is transmitted in the same manner as above, and the data signal, transmission signal, and confirmation signal are received after confirming that the sampled values of each signal are the same multiple times. . The present invention will be described in detail below with reference to the drawings.

本発明方式による集中処理装置相互交信系の回路構成の
例を第1図に示す。
FIG. 1 shows an example of a circuit configuration of a central processing unit mutual communication system according to the present invention.

図示の構成においては、集中処理装置すなわちいわゆる
マイクロコンピュータ1は、キースイツチ62およびダ
イオード63のマトリクスに抵抗61を介して電源電圧
8を供給したキーマトリクス回路6からの入力情報を謎
取って、増幅回路11を介し、各出力素子12′からな
る出力回路12を制御し、また、集中処理装置2を、同
様に、キーマトリクス回路7からの入力情報を読取って
、増幅回路21を介し、出力回路22を制御している。
これら2個の集中処理装置1と2とは、集中処理装置1
の出力ボートS9〜S12から集中処理装置2の入力ボ
ートA4〜A7にそれぞれ到る信号線3、集中処理装置
1の出力ボートS8から集中処理装置2の入力ボートA
8に到る信号線4および集中処理装置2の出力ボートB
8から集中処理装置1の入力ボートRWこ到る信号線5
により相互交信用の接続を施してある。なお、上述の相
互交信用接続に用いた各出力ボートおよび各入力ボート
は、前述した入力情報の議取りおよび出力回路の制御に
用いる入力ボート、出力ボートおよび入出力兼用ボート
を転用したものである。
In the illustrated configuration, a central processing unit, that is, a so-called microcomputer 1, receives input information from a key matrix circuit 6 which supplies a power supply voltage 8 to a matrix of key switches 62 and diodes 63 via a resistor 61, and inputs information to an amplifier circuit. 11, the output circuit 12 consisting of each output element 12' is controlled, and the central processing unit 2 similarly reads the input information from the key matrix circuit 7 and outputs the output circuit 22 through the amplifier circuit 21. is controlled.
These two central processing devices 1 and 2 are the central processing device 1
signal lines 3 from the output ports S9 to S12 of the central processing device 2 to the input ports A4 to A7 of the central processing device 2, and input ports A of the central processing device 2 from the output port S8 of the central processing device 1 to the input ports A4 to A7 of the central processing device 2, respectively.
8 and the output port B of the central processing unit 2.
Signal line 5 from 8 to input port RW of central processing unit 1
A connection for mutual communication is provided. Note that each output boat and each input boat used for the above-mentioned mutual communication connections are repurposed input boats, output boats, and input/output ports used for negotiating input information and controlling the output circuit described above. .

すなわち、図示のとおり、集中処理装置1においては、
残余の出力ボートSO〜S3により指令して残余の入力
ボートRO〜R3により入力情報を謙取るとともに、残
余の出力ポ−トS4〜S7により出力回路12を制御し
ており、また、集中処理装置2においても、残余の出力
ボートBO〜B3およびB4〜B7並びに残余の入力ボ
ートAO〜A3を同機に使用している。さらに、集中処
理装置1と2との相互間を、それぞれの駆動電源電圧が
相違する等の理由にて、図示のように、直接に接続し得
ない場合には、適切なインターフェ−ス回路を介して相
互間を接続するものとする。つぎに、上述のようにして
相互に接続した集中処理装置1と2との間における相互
交信動作のタイミングチャートの例を第2図に示し、そ
のうち、信号議取りのためのタイミングチャートの例を
第3図に詳細に示す。
That is, as shown in the figure, in the central processing device 1,
The remaining output ports SO to S3 command the remaining input ports RO to R3 to receive input information, and the remaining output ports S4 to S7 control the output circuit 12. 2, the remaining output boats BO to B3 and B4 to B7 and the remaining input boats AO to A3 are used in the same aircraft. Furthermore, if it is not possible to connect the central processing units 1 and 2 directly as shown in the figure, due to differences in their driving power supply voltages, etc., an appropriate interface circuit may be used. shall be connected to each other via. Next, FIG. 2 shows an example of a timing chart for mutual communication operations between the central processing units 1 and 2 connected to each other as described above, and an example of a timing chart for signal negotiation is shown in FIG. This is shown in detail in Figure 3.

なお、図示の例においては、第1図に示したように、集
中処理装置1から集中処理装置2に情報データを伝送す
るものとする。しかして、図示の例においては、例えば
4ビット構成とするデータ信号DATAおよびそのデー
タ信号DATAの送出を示す送出信号STを信号線3お
よび4′をそれぞれ介して集中処理装置1から2へ伝送
するとともに、データ信号DATAの議取りを示す確認
信号ACKを集中処理装置2から1へ伝送するものとす
るが、第2図に示すように、相互交信が開始されるまで
は、送出信号STおよび確認信号ACKは、データ信号
DATAが出力されていても、送出はされていない。
In the illustrated example, it is assumed that information data is transmitted from the central processing device 1 to the central processing device 2, as shown in FIG. In the illustrated example, a data signal DATA having, for example, a 4-bit configuration and a transmission signal ST indicating transmission of the data signal DATA are transmitted from the central processing unit 1 to the central processing unit 2 via the signal lines 3 and 4', respectively. At the same time, a confirmation signal ACK indicating the negotiation of the data signal DATA is transmitted from the central processing device 2 to the central processing device 1. However, as shown in FIG. The signal ACK is not sent even if the data signal DATA is output.

相互交信の開始に当っては、まず、集中処理装置1から
、データ信号DATAを送出した後、微少の遅延時間t
,の経過後に送出信号STをオンにして伝送する。集中
処理装置2においては、入釆した送出信号STのオンを
検出したうえで、データ信号DATAを議取り、その読
取りの後、微少の遅延時間らの経過後に確認信号ACK
をオンにして伝送する。集中処理装置1においては、入
来した確認信号ACKのオンを検出した後、微少の遅延
時間t3の経過後に送出信号STをオフにすると同時に
、それまで操返し送出していた第1ワードのデータ信号
DATAを切換えて、第2ワードのデータ信号DATA
の操返し送出を開始する。集中処理装置2においては、
入釆していた送出信号STのオフを検知すると、適切な
時間をおいて確認信号ACKをもオフにする。かかる一
連の動作により、第1ワードの情報データ伝送のための
相互交信を終了する。以下同機にして、第2ワード、第
3ワード、…、第Nワードの情報データの伝送を逐次行
ない、第Nワードの情報データを終了すると、4×Nビ
ットの情報データの伝送が完了する。
To start mutual communication, first, after sending the data signal DATA from the central processing unit 1, a minute delay time t is elapsed.
, the transmission signal ST is turned on and transmitted. In the central processing unit 2, after detecting the ON state of the input sending signal ST, the data signal DATA is read, and after a short delay time elapses, the confirmation signal ACK is sent.
Turn on and transmit. In the central processing unit 1, after detecting the ON state of the incoming confirmation signal ACK, the transmission signal ST is turned OFF after a minute delay time t3 has elapsed, and at the same time, the data of the first word that had been repeatedly transmitted until then is The signal DATA is switched to the second word data signal DATA.
Starts repeat transmission. In the central processing device 2,
When detecting that the input sending signal ST is turned off, the confirmation signal ACK is also turned off after an appropriate time. Through this series of operations, the mutual communication for transmitting the information data of the first word is completed. Thereafter, using the same machine, the information data of the second word, the third word, .

そのデータ伝送完了時には、送出信号STおよび確認信
号ACKはともにオフになっている。なお、上述の動作
説明においては、集中処理装置2にて、送出信号STの
オンを検出した後にデータ信号DATAI〜4をその都
度鱗取るようにしたが、送出信号STとデータ信号DA
TAとを同時に読取って、送出信号STのオンを検知し
た後、直ちにデータ信号DATAの確認を行なって確認
信号ACKを送出するようにすることもできる。
When the data transmission is completed, both the sending signal ST and the confirmation signal ACK are turned off. In the above description of the operation, the central processing unit 2 scales the data signals DATAI to 4 each time after detecting that the transmission signal ST is on, but the transmission signal ST and the data signal DA
It is also possible to simultaneously read the data signal TA and detect that the transmission signal ST is turned on, and then immediately confirm the data signal DATA and transmit the confirmation signal ACK.

つぎに、各集中処理装置1−,2において、データ信号
DATA、送出信号STおよび確認信号ACKをそれぞ
れ読取って、それぞれのオン、オフを険出する動作の態
様の例を述べると、一定のサンプリング周期Tsにて入
来した各信号をサンプリングし、3度以上同一サンプル
値が得られたときにのみ、各入力信号を確定した入力信
号として確認する方式により、相互交信を行なう。
Next, an example of an operation mode in which each central processing unit 1-, 2 reads the data signal DATA, the sending signal ST, and the confirmation signal ACK and turns them on or off will be described. Mutual communication is performed by sampling each input signal at a period Ts, and confirming each input signal as a determined input signal only when the same sample value is obtained three times or more.

かかる確認方式によれば、侵入のおそれがあるノイズパ
ルスのパルス幅よりサンプリング周期Tsを広く選定し
ておくと、ノイズパルスが入力信号に混入しても、その
影響を無視することができる。すなわち、例えば、集中
処理装置2においては、第3図の波形Bに示すように、
入来した送出信号STがオンになった後に、サンプリン
グ周期Ts毎の3点a,b,cにおいてその送出信号S
Tをサンプリングすると、3回とも送出信号STのサン
プル値が高論理レベルとなるので、その送出信号STが
オフからオンに切換えられていることを確認することが
でき、かかる送出信号STのオンの確認に引続いて、第
3図の波形Aに示すように、サンプリング周期Ts毎の
3点d,c,fにおいてデータ信号DATAをサンプリ
ングし、同様に確認しながらデータ信号DATAを謙取
る。集中処理装置2においてかかるデータ信号議取りの
後に確認信号ACKをオンにすると、集中処理装置1に
おいては、第3図の波形Cに示すように、処理プログラ
ム毎の3点g,h,iにてその確認信号ACKをサンプ
リングし、同様にして確認信号ACKがオフからオンに
切換えられていることを確認しながら検出して、送出信
号STをオフにする。上述のような相互交信における信
号の講取りおよび送出の態様は、集中処理装置1,2に
おけるそれぞれのキーマトリクス回路6,7からの入力
信号の読取りや出力回路12.22への信号の送出の態
様と同一であり、したがって、上述したような態様の集
中処理装置相互交信方式によれば、信号議取り、送出の
プログラムは、通常のキーマトリクス回路からの入力信
号の論取りや出力回路への信号の送出のプログラムをそ
のまま流用することがで‐き、相互交信専用のプログラ
ム量は少なくてすむことになり、また、講取り誤り対策
なども充実し得ることになる。
According to this confirmation method, if the sampling period Ts is selected to be wider than the pulse width of the noise pulse that may be intruded, even if the noise pulse mixes into the input signal, its influence can be ignored. That is, for example, in the central processing device 2, as shown in waveform B in FIG.
After the incoming transmission signal ST turns on, the transmission signal S
When T is sampled, the sample value of the sending signal ST becomes a high logic level all three times, so it can be confirmed that the sending signal ST is switched from OFF to ON. Following the confirmation, as shown in waveform A in FIG. 3, the data signal DATA is sampled at three points d, c, and f every sampling period Ts, and the data signal DATA is sampled while being similarly confirmed. When the confirmation signal ACK is turned on after the data signal discussion in the central processing unit 2, in the central processing unit 1, as shown in waveform C in FIG. Then, the confirmation signal ACK is sampled, and in the same manner, it is detected while confirming that the confirmation signal ACK has been switched from off to on, and the sending signal ST is turned off. The manner in which signals are handled and transmitted in mutual communication as described above includes the reading of input signals from the respective key matrix circuits 6 and 7 in the central processing units 1 and 2 and the transmission of signals to the output circuits 12 and 22. Therefore, according to the centralized processing unit mutual communication method of the above-mentioned embodiment, the signal discussion and transmission program is the same as the discussion of input signals from the ordinary key matrix circuit and the transmission to the output circuit. The signal sending program can be used as is, the amount of programs dedicated to mutual communication can be reduced, and countermeasures against misplanning can be improved.

なお、第1図示の構成例については、4×Nビットのデ
ータを伝送するよにしたが、データ伝送,に用い.る入
出力ボートの個数は、データ量や交信速度に応じて適切
な個数を選定することもでき、例えば、データ伝送に8
本の入出力ボートを用いて8×Nビットのデータ伝送を
行なうこともできる。
Although the configuration example shown in the first figure is designed to transmit 4×N bits of data, it may be used for data transmission. The appropriate number of input/output ports can be selected depending on the amount of data and communication speed.
It is also possible to perform 8×N bit data transmission using a real input/output port.

また、第1図示の構成例においては、データ伝送用の信
号線3に4個ずつの入出力ボートを割当ててあるが、送
出信号用および確認信号用の信号線4および5にそれぞ
れ割当てた各入出力ボートも、それらの信号3,4に信
号がないときには、データ伝送用に兼用することもでき
る。
In the configuration example shown in Figure 1, four input/output ports are assigned to each signal line 3 for data transmission, but four input/output ports are assigned to signal lines 4 and 5 for transmission signals and confirmation signals, respectively. The input/output port can also be used for data transmission when there are no signals on the signals 3 and 4.

さらに、交信異常時に対する対策としてつぎのようにす
ることもできる。
Furthermore, the following measures can be taken against communication abnormalities.

{11 通常の交信時間の2倍以上の時間が経過しても
交信が終了しない場合には、その交信を打切り、送出信
号STおよび確認信号ACKをともにオフにする。
{11 If the communication does not end even after twice the normal communication time has elapsed, the communication is terminated and both the transmission signal ST and the confirmation signal ACK are turned off.

■ 連続して3回以上交信が失敗した場合には、交信を
受け付けず、交信エラー信号をオンにする。
■ If communication fails three or more times in a row, the communication is not accepted and the communication error signal is turned on.

‘31伝送するデータ信号DATAにパリティビットを
付加してエラーチェックを行ない得るようにする。
A parity bit is added to the data signal DATA to be transmitted in '31 to enable error checking.

上述の各対策を適切に組合わせて実施すれば、前述した
態様の相互交信の信頼性を一層向上させることができる
If the above-mentioned measures are appropriately combined and implemented, the reliability of mutual communication in the above-described manner can be further improved.

なお、前述したような態様の本発明相互交信方式におい
ては、ノイズ波形などによりデータ伝送に誤りが生ずる
おそれが少ないので、上述のような交信異常対策は簡略
化することができ、その結果、交信用プログラムの量も
少なくなり、ワンチップマイクロコンピュータを用いた
集中処理装置の相互交信系には特に有効である。
In addition, in the above-described mutual communication system of the present invention, there is little risk of errors occurring in data transmission due to noise waveforms, etc., so countermeasures against communication abnormalities as described above can be simplified, and as a result, communication The amount of trusted programs is also reduced, and this is particularly effective for mutual communication systems of centralized processing units using one-chip microcomputers.

以上の説明から明らかなように、本発明によれば、いわ
ゆるマイクロコンピュータからなる集中処理装置におけ
る通常の入出力ボートを用いて、通常のキーマトリクス
回路からの信号の読取りや出力回路への信号の送出と同
一の態様にて相互交信を行なうのであるから、つぎのよ
うな顕著な効果が得られる。
As is clear from the above description, according to the present invention, a normal input/output board in a central processing unit consisting of a so-called microcomputer is used to read signals from a normal key matrix circuit and to send signals to an output circuit. Since mutual communication is carried out in the same manner as transmission, the following remarkable effects can be obtained.

‘1} 種類の異なる集中処理装置の相互間における交
信にも本発明方式を適用することができる。
'1} The method of the present invention can also be applied to communication between different types of centralized processing devices.

‘21 交信のためのプログラム量は、信号の議取り、
送出のプログラムは通常のものを流用し得、るので、.
専用プログラムとしては少なくてすみ、したがって、プ
ログラムの容量に制限のあるワンチップマイクロコンピ
ュータを使用する場合に特に有利である。‘31 通常
の入出力ボートを交信に転用するのであるから、交信速
度やデータ量の大小、多寡に応じて、交信に用いる入出
力ボートの個数を増減して効率よく入出力ボートを使用
することができる。
'21 The program amount for communication includes signal negotiation,
The sending program can be a normal one, so...
It requires only a small number of dedicated programs, and is therefore particularly advantageous when using a one-chip microcomputer with a limited program capacity. '31 Since normal input/output boats are used for communication, the number of input/output boats used for communication can be increased or decreased depending on the communication speed and the amount of data to use the input/output boats efficiently. Can be done.

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

第1図は本発明方式による集中処理装置相互交信系の構
成例を示すブロック線図、第2図は同じくその各部動作
の態様を示すタイミングチャート、第3図は同じくその
各部動作の態様をさらに詳細に示すタイミングチャート
である。 1,2・・・・・・集中処理装置(マイクロコンビユー
夕)、3,4,5・・・・・・信号線、6,7・・・・
・・キーマトリクス回路、8,9,10……電源端子、
11,12……増幅回路、12,22・・…・出力回路
、61・・・・・・抵抗、62・・・・・・キースイツ
チ、63……ダイオード。 第1図 第2図 第3図
FIG. 1 is a block diagram showing an example of the configuration of a central processing unit mutual communication system according to the present invention, FIG. 2 is a timing chart showing how each part operates, and FIG. 3 further shows how each part works. It is a timing chart shown in detail. 1, 2... Central processing unit (microcomputer), 3, 4, 5... Signal line, 6, 7...
...Key matrix circuit, 8, 9, 10...power terminal,
11, 12... Amplifier circuit, 12, 22... Output circuit, 61... Resistor, 62... Key switch, 63... Diode. Figure 1 Figure 2 Figure 3

Claims (1)

【特許請求の範囲】 1 複数ビツト1ワードの並列データ信号を伝送するデ
ータ信号線と、前記データ信号の送出を示す送出信号を
伝送する送出信号線と、前記データ信号を受信したこと
を示す確認信号を伝送する確認信号線とにより集中処理
装置相互間を接続して相互間の交信を行う方式であつて
、送信側集中処理装置にて前記データ信号を前記送出信
号とともに送信し、受信側集中処理装置にて前記送出信
号の受信に応じ1ワード分のデータ信号を受信するとと
もに前記確認信号を返信し、前記送信側集中処理装置に
ては前記確認信号の受信に応じ次の1ワード分のデータ
信号を前記と同様に送信するようにし、前記データ信号
、送出信号および確認信号の受信は各信号について複数
回のサンプル値が同一であることを確認して行うように
したことを特徴とする集中処理装置相互交信方式。 2 特許請求の範囲第1項記載の交信方式において、前
記送信側集中処理装置にては前記データ信号の送出開始
後所定の時間の経過に引続いて前記送出信号の送出を開
始し、前記受信側集中処理装置にては前記送出信号の検
出に応じて前記データ信号を読取るとともに前記確認信
号の返信を開始し、前記送信側集中処理装置にては前記
確認信号の検出に応じて前記送出信号の送出を停止し、
前記受信側集中処理装置にては前記送出信号の送出停止
の検知に応じ前記確認信号の返信を停止することにより
、前記データ信号の1ワード分の交信を終了するように
したことを特徴とする集中処理装置相互交信方式。
[Scope of Claims] 1. A data signal line for transmitting a parallel data signal of one word of multiple bits, a sending signal line for transmitting a sending signal indicating sending of the data signal, and a confirmation indicating that the data signal has been received. This is a method in which the central processing units are connected to each other by a confirmation signal line that transmits signals to communicate with each other, and the transmitting central processing unit transmits the data signal together with the sending signal, and the receiving central processing unit In response to receiving the sending signal, the processing device receives a data signal for one word and returns the confirmation signal, and in response to receiving the confirmation signal, the transmitting central processing device receives a data signal for the next word. The data signal is transmitted in the same manner as described above, and the reception of the data signal, transmission signal, and confirmation signal is performed after confirming that the sample values of each signal are the same multiple times. Centralized processing unit mutual communication method. 2. In the communication system according to claim 1, the transmission-side central processing unit starts transmitting the transmission signal after a predetermined time has elapsed after starting transmission of the data signal, and The side centralized processing device reads the data signal in response to the detection of the sending signal and starts replying the confirmation signal, and the sending side centralized processing device reads the sending signal in response to the detection of the confirmation signal. stop sending out the
The reception-side centralized processing unit is characterized in that communication for one word of the data signal is completed by stopping replying the confirmation signal in response to detection of stoppage of transmission of the transmission signal. Centralized processing unit mutual communication method.
JP8800781A 1981-06-10 1981-06-10 Central processing unit mutual communication method Expired JPS6028026B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8800781A JPS6028026B2 (en) 1981-06-10 1981-06-10 Central processing unit mutual communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8800781A JPS6028026B2 (en) 1981-06-10 1981-06-10 Central processing unit mutual communication method

Publications (2)

Publication Number Publication Date
JPS57203121A JPS57203121A (en) 1982-12-13
JPS6028026B2 true JPS6028026B2 (en) 1985-07-02

Family

ID=13930741

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8800781A Expired JPS6028026B2 (en) 1981-06-10 1981-06-10 Central processing unit mutual communication method

Country Status (1)

Country Link
JP (1) JPS6028026B2 (en)

Also Published As

Publication number Publication date
JPS57203121A (en) 1982-12-13

Similar Documents

Publication Publication Date Title
US4085448A (en) Data communication bus structure
US4257099A (en) Communication bus coupler
JPS62186629A (en) Information delivery system
CA1080318A (en) Communication bus coupler
US5436856A (en) Self testing computer system with circuits including test registers
JPH0713880A (en) Method for transmission of information to bus
JPS6028026B2 (en) Central processing unit mutual communication method
JPS6041372B2 (en) Connection method for multiple data processing devices
JPS6135739B2 (en)
JPH087442Y2 (en) Input / output device of programmable controller
JP2830486B2 (en) Communication device
JP2000151748A (en) Device connection recognition method for communication system
EP0400930A2 (en) Realtime redundant operating system
JPS63263555A (en) Processor module automatic decision system for multiplex processor system
JPS61270952A (en) Data transmitting system
JPS63290033A (en) Data transmission reception circuit
CN115562912A (en) Data redundancy monitoring method
JPS59171237A (en) Data transfer system
KR960016274B1 (en) Home bus interface apparatus
KR880002509Y1 (en) Network interface circuit of computer
JP3710114B2 (en) Data bus circuit
JPH01209502A (en) Checking device for extension bus of programmable controller
SU955167A1 (en) Device for data checking and transmission
JPH08191319A (en) Data communication system
JP2000339063A (en) Communication equipment