JPH0470950A - Inter-cpu communication equipment - Google Patents

Inter-cpu communication equipment

Info

Publication number
JPH0470950A
JPH0470950A JP17624390A JP17624390A JPH0470950A JP H0470950 A JPH0470950 A JP H0470950A JP 17624390 A JP17624390 A JP 17624390A JP 17624390 A JP17624390 A JP 17624390A JP H0470950 A JPH0470950 A JP H0470950A
Authority
JP
Japan
Prior art keywords
data
cpu
transmission
cpus
bit
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.)
Pending
Application number
JP17624390A
Other languages
Japanese (ja)
Inventor
Tatsuto Tachibana
達人 橘
Toshiyuki Ito
俊之 伊藤
Kaoru Sato
馨 佐藤
Akihisa Kusano
草野 昭久
Kazuhiko Okazawa
一彦 岡沢
Tomohiro Nakamori
知宏 中森
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP17624390A priority Critical patent/JPH0470950A/en
Publication of JPH0470950A publication Critical patent/JPH0470950A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To attain the mutual communication among the CPUs with the transmission bit data that detected a communication error with high efficiency by transmitting in duplication the same transmission bit data among the CPUs and receiving these data by each CPU while comparing the contents of bits with each other. CONSTITUTION:A data transmission means including a command transmission system 1a and a status transmission system 2b transmits in duplication the transmission data bits set by the CPU A and B to other CPUs continuously by at least two bits. Then the data transmission means compares the transmission bit data received in duplication by the reception means 2a and 1b of the CPU A and B from other CPUs continuously by at two bits with each other for each bit in order to detect a communication error. As a result, the transmission bit data can be easily produced for effective detection of the communication errors compared with the processing where the data are transmitted with addition of a parity bit. Thus the communication processing is attained between both CPUs with the transmission bit data that can effectively detect the communication errors.

Description

【発明の詳細な説明】 [産業上の利用分野1 この発明は、CPU間でデータを送受信する通信装置に
係り、特にCPU間で所定のデータをシリアルデータ通
信する通信装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field 1] The present invention relates to a communication device that transmits and receives data between CPUs, and particularly relates to a communication device that serially communicates predetermined data between CPUs.

[従来の技術1 従来、複数のCPUを備え、各CPUが相互にシルアル
通信しながらデータ処理を実行するシステム構成となる
装置、例えば複写装置においては各制御部に設ける各C
PUがシリアル通信処理を実行している。
[Prior Art 1] Conventionally, in an apparatus having a system configuration in which a plurality of CPUs are provided and each CPU executes data processing while serially communicating with each other, for example, a copying machine, each CPU is provided in each control section.
The PU is executing serial communication processing.

この場合において、2つのCPU間でシリアルにデータ
をやり取りする通信装置では、通信の精度を高めるため
、送信側では送信データのビット列に奇数または偶数の
パリティを付加し、受信側では送出されてきたデータの
ビット列の「1」のポット数が偶数か奇数かをチエツク
することによリ、通信にエラーがないかどうかをチエツ
クしている。
In this case, in a communication device that serially exchanges data between two CPUs, in order to improve the accuracy of communication, the transmitting side adds odd or even parity to the bit string of the transmitted data, and the receiving side adds parity to the bit string of the transmitted data. By checking whether the number of "1" pots in the data bit string is even or odd, it is checked whether there are any errors in communication.

さらに、前記のようにパリティビットを設けたデータの
「1」のビットが偶数か奇数かのチエツクだけでは偶数
ビットのエラーには対応できないため、送受信を2度以
上行っている。
Furthermore, simply checking whether the "1" bit of the data provided with the parity bit is an even number or an odd number as described above cannot deal with errors in even numbered bits, so transmission and reception are performed more than once.

また、電子写真方式の記録装置で、装置内通信を行う場
合、装置内に高圧電源があり、ノイズに対して非常に影
響を受は易い環境となっている場合が多い。
Furthermore, when performing intra-device communication in an electrophotographic recording device, there is often a high-voltage power supply within the device, creating an environment that is extremely susceptible to noise.

[発明が解決しようとする課題] このように、従来のCPU間通信処理においては、送信
側では送信する一連のデータのビット列にパリティピッ
トを付加するための処理が必要となり、受信側では「1
」のビットの数をチエツクする処理が必要となる。
[Problems to be Solved by the Invention] As described above, in conventional CPU-to-CPU communication processing, the transmitting side requires processing to add parity pits to the bit string of a series of data to be transmitted, and the receiving side
” processing is required to check the number of bits.

また、パリティチエツクだけでは、偶数ビットのエラー
に対応できないため、送受信を2度以上行うと、本来通
信内容に無意味なパリティピットを2ビット以上送信す
る必要があり、通信効率が低下する等の問題点があった
In addition, parity checking alone cannot deal with errors in even bits, so if transmission and reception are performed more than once, it is necessary to transmit two or more parity pits that are meaningless to the communication content, which may reduce communication efficiency. There was a problem.

この発明は、上記の問題点を解決するためになされたも
ので、各CPUが他のCPUに対して送信ビットデータ
と同一の送信ビットデータを重複送信し、各ビットの内
容を比較しながら各CPUが受信することにより、通信
エラーを精度良(検出可能な送信ビットデータで各CP
Uが相互に通信できるCPU間通低通信を得ることを目
的とする。
This invention was made to solve the above problem, and each CPU repeatedly transmits the same transmission bit data to other CPUs, and while comparing the contents of each bit, By receiving the data from the CPU, each CPU can detect communication errors with high precision (detectable transmission bit data).
The purpose is to obtain low communication between CPUs in which U can communicate with each other.

[課題を解決するための手段1 この発明に係るCPU間通低通信においては、各CPU
が他のCPUに対して設定された送信ビットデータと同
一の送信ビットデータを重複送信するデータ送信手段と
、各CPUが他のCPUから重複送信される前記送信ビ
ットデータの各ビットを比較しながら受信する受信手段
とを、各CPUに設けたものである。
[Means for solving the problem 1 In the CPU-to-CPU low communication according to the present invention, each CPU
data transmitting means for repeatedly transmitting the same transmission bit data as the transmission bit data set to other CPUs, and each CPU comparing each bit of the transmission bit data that is repeatedly transmitted from the other CPU. Each CPU is provided with a receiving means for receiving the data.

また、データ送信手段は、各CPUが他のCPUに対し
て設定された送信ビットデータと同一の送信ビットデー
タを少な(とも2セット連続させながら重複送信するよ
うに構成したものである。
Further, the data transmitting means is configured such that each CPU repeatedly transmits a small number (two consecutive sets) of the same transmission bit data as the transmission bit data set for the other CPUs.

更に、データ送信手段は、各CPUが他のCPUに対し
て設定された送信データビットの各ビット毎を少なくと
も2ビット連、続させながら重複送信するように構成し
たものである。
Further, the data transmitting means is configured such that each CPU repeatedly transmits each bit of the set transmission data bits to the other CPUs in a continuous manner at least two bits each.

[作用] この発明においては、各CPUのデータ送信手段より他
のCPUに対して設定された送信ビットデータと同一の
送信ビットデータが重複送信されると、各CPUの受信
手段が他のCPUから重複送信される送信ビットデータ
の各ビットを比較しながら受信し、通信エラーを検出す
ることを可能とする。
[Operation] In this invention, when the same transmission bit data as the transmission bit data set to another CPU is repeatedly transmitted from the data transmission means of each CPU, the reception means of each CPU receives the transmission bit data from the other CPU. It is possible to detect communication errors by receiving while comparing each bit of transmitted bit data that is transmitted repeatedly.

また、データ送信手段は、各CPUが他のCPUに対し
て設定された送信ビットデータと同一の送信ビットデー
タを少なくとも2セット連続させながら重複送信し、各
CPUの受信手段が他のCPUから2セット連続して重
複送信される送信ビットデータを上位と下位に分割しな
がら各ビットデータを比較して通信エラーを検出するこ
とな可能とする。
Further, the data transmitting means repeatedly transmits at least two consecutive sets of transmitting bit data identical to the transmitting bit data set for each CPU to the other CPU, and the receiving means of each CPU receives two sets of transmitting bit data from the other CPU. To make it possible to detect a communication error by comparing each bit data while dividing transmission bit data that is continuously and repeatedly transmitted as a set into upper and lower parts.

更に、データ送信手段は、各CPUが他のCPUに対し
て設定された送信データビットの各ビット毎を少な(と
も2ビット連続させながら重複送信し、各CPUの受信
手段が他のCPUから各ビット毎を少なくとも2ビット
連続して重複送信される送信ビットデータを各ビット毎
に比較して通信エラーを検出することを可能とする。
Further, the data transmitting means repeatedly transmits each bit of the transmission data bits set to the other CPUs in a small number (2 bits in a row), and the receiving means of each CPU receives each bit from the other CPUs. It is possible to detect a communication error by comparing transmission bit data that is repeatedly transmitted bit by bit at least two bits in a row.

〔実施例1 第1図はこの発明の一実施例を示すCPU間通低通信の
構成を説明するブロック図であり、例えばCPUAとC
PUBとの間でシリアル通信する場合に対応し、CPU
BはCPUAからのコマンドを受けて処理を行い、また
、ステータスによってCPUAに様々な情報を報知する
構成となっている。
[Embodiment 1] Fig. 1 is a block diagram illustrating the configuration of low communication between CPUs showing an embodiment of the present invention.
Corresponds to serial communication with PUB, CPU
B performs processing upon receiving commands from the CPUA, and is configured to notify the CPUA of various information depending on the status.

この図において、1aはコマンドバッファ3aのコマン
ドを送信形式に変換し、発振器6aの発生するクロック
に同期させてコマンドをシリアルに出力するコマンド送
信系、2aはステータス受信系で、送出されてくるステ
ータスを発振器6aの発生するクロックに同期して取り
込み、ステータスバッファ4aに書き込む。5aはメイ
ン処理系で、ステータスバッファ4aの情報に基づき必
要に応じてCPUBへの指示を示すコマンドをコマンド
バッファ3aに書き込む。なお、この実施例ではCPU
A、CPUB間の通信のための基本クロックはCPUA
側から出力する形態をとっており、発振器6aがその信
号源となる。
In this figure, 1a is a command transmission system that converts the command in the command buffer 3a into a transmission format and outputs the command serially in synchronization with the clock generated by the oscillator 6a, and 2a is a status reception system that receives the status that is sent out. is fetched in synchronization with the clock generated by the oscillator 6a and written into the status buffer 4a. A main processing system 5a writes commands indicating instructions to the CPUB into the command buffer 3a as necessary based on the information in the status buffer 4a. Note that in this embodiment, the CPU
A. The basic clock for communication between CPUB is CPUA.
The signal is output from the side, and the oscillator 6a serves as the signal source.

CPUB側は、コマンド送信系1aから送出されたコマ
ンドを基本クロックに同期して取り込み、コマンドバッ
ファ3bに書き込むコマンド受信系1b、コマンドバッ
ファ3b、ステータスバッファ4b、このステータスバ
ッファ4bのステータスを送信形式に変換し基本クロッ
クに同期させて送出するステータス送信系2b、コマン
ドバッファ3bのコマンドに応じて処理を行い、ステー
タス情報をステータスバッファ4bに書き込むメイン処
理系5b等から構成されている。
The CPUB side receives the command sent from the command transmission system 1a in synchronization with the basic clock, writes it to the command buffer 3b, the command reception system 1b, the command buffer 3b, the status buffer 4b, and converts the status of this status buffer 4b into a transmission format. It is comprised of a status transmission system 2b that converts the data and sends it out in synchronization with the basic clock, a main processing system 5b that processes according to commands from a command buffer 3b, and writes status information to a status buffer 4b, and the like.

なお、上記CPUAとCAUBとの間での信号CBSY
、5BSY、DATA、CLKは後述する信号ラインL
1〜L4を介して行われる。
In addition, the signal CBSY between the above CPUA and CAUB
, 5BSY, DATA, and CLK are signal lines L, which will be described later.
1 to L4.

以下、各信号CBSY、5BSY、DATA。Below, each signal CBSY, 5BSY, DATA.

CLKの機能について説明する。The function of CLK will be explained.

信号CBSY : CPUAがコマンドを送信中である
ことを示し、CPUAがコマンドを送信中の場合にTR
UEを、非送信中にFALSEを送信する。
Signal CBSY: Indicates that the CPUA is sending a command, TR is sent when the CPUA is sending a command.
The UE transmits FALSE while not transmitting.

信号5BSY : CPUBがステータスを送信中であ
ることを示し、CPUBがステータスを送信中の場合に
TRUEを、非送信中にFALSEを送信する。
Signal 5BSY: Indicates that CPUB is transmitting status. TRUE is transmitted when CPUB is transmitting status, and FALSE is transmitted when CPUB is not transmitting status.

信号DATA ニジリアルコマンド、シリアルステータ
ス等を含むデータである。
Signal DATA This is data including serial commands, serial status, etc.

信号CLKはCPUAの発振器6aが出力する基本クロ
ックに対応する。
Signal CLK corresponds to the basic clock output by the oscillator 6a of the CPUA.

このように構成されたCPU間通信装置において、各C
PU (この実施例ではCP[JAとCPUBとの間に
おける)のデータ送信手段(この実施例ではコマンド送
信系1a、ステータス送信系2b)より他のCPUに対
して設定された送信ビットデータと同一の送信ビットデ
ータが重複送信されると、各CPUの受信手段(この実
施例はステータス受信系2a、コマンド受信系1b)が
他のCPUから重複送信される送信ビットデータの各ビ
ットを比較しながら受信し、通信エラーを検出すること
を可能とする。
In the inter-CPU communication device configured in this way, each C
Same as the transmission bit data set for other CPUs from the data transmission means (in this embodiment, command transmission system 1a, status transmission system 2b) of PU (in this embodiment, CP [between JA and CPUB)] When the transmission bit data of the CPUs are transmitted redundantly, the receiving means of each CPU (in this embodiment, the status receiving system 2a and the command receiving system 1b) compares each bit of the transmission bit data that is redundantly transmitted from the other CPUs. It is possible to receive and detect communication errors.

また、データ送信手段(この実施例ではコマンド送信系
1a、ステータス送信系2b)は、各CPUが他のCP
Uに対して設定された送信ビットデータと同一の送信ビ
ットデータを、第2図(b)に示すように少な(とも2
セット連続させながら重複送信し、各CPUの受信手段
が他のCPUから2セット連続して重複送信される送信
ビットデータを上位と下位に分割しながら各ビットデー
タを比較して通信エラーを検出することを可能とする。
In addition, the data transmission means (in this embodiment, the command transmission system 1a and the status transmission system 2b) allow each CPU to communicate with other CPUs.
The same transmission bit data as the transmission bit data set for U is set to a smaller number (both 2
Duplicate transmission is performed in consecutive sets, and the receiving means of each CPU divides the transmitted bit data that is repeatedly transmitted in two consecutive sets from other CPUs into upper and lower parts, and compares each bit data to detect communication errors. make it possible.

第2図は、第1図に示したCPU間通間通−データット
データの一例を示す構造図であり、(a)はコマンドバ
ッファ3a、3bまたはステータスバッファ4a、4b
に記録されるコマンド、ステータスのビットデータを示
し、例えば4ビットの場合を示す。(b)はコマンド送
信系1a、1bまたはステータス送信系2a、2bから
送信されるビットデータを示し、例えば(a)に示した
4ビットのビットデータを上位4ビット、下位4ビット
に並べて計8ビット送信する。
FIG. 2 is a structural diagram showing an example of the inter-CPU data data shown in FIG.
This shows the bit data of commands and statuses recorded in, for example, the case of 4 bits. (b) shows the bit data transmitted from the command transmission systems 1a, 1b or the status transmission systems 2a, 2b. For example, the 4-bit bit data shown in (a) is arranged into the upper 4 bits and the lower 4 bits, resulting in a total of 8 bits. Send bit.

このようにして、(b)に示すように上位4ビット、下
位4ビットで送信されたビットデータをコマンド受信系
1b、ステータス受信系2aがそれぞれ受信したコマン
ド、ステータスの上位4ビット、下位4ビットを比較す
ることにより、受信データの可否をチエツクする。また
、受信側でパリティチエツクを行う場合、必ず偶数にな
ることが分かっているので、■のビットは偶数であるこ
とを確認すれば良い。
In this way, as shown in (b), the command receiving system 1b and the status receiving system 2a receive the bit data transmitted in the upper 4 bits and lower 4 bits, respectively, and receive the upper 4 bits and lower 4 bits of the command and status. The validity of the received data is checked by comparing the received data. Furthermore, when performing a parity check on the receiving side, it is known that the number is always an even number, so it is sufficient to confirm that the bit of ■ is an even number.

以下、第3図(a)、(b)を参照しながらこの発明に
係るCPU間通信装置におけるデータ通信処理動作につ
いて説明する。
The data communication processing operation in the inter-CPU communication device according to the present invention will be described below with reference to FIGS. 3(a) and 3(b).

第3図(a)、(b)はこの発明に係るcpu間通信装
置におけるデータ通信処理手順の一例を説明するフロー
チャートである。なお、(1)〜(7)および(11)
〜(17)は各ステップを示す。また、同図(a)はコ
マンド送信系1aの処理に対応し、同図(b)はコマン
ド受信系1bの処理に対応する。
FIGS. 3(a) and 3(b) are flowcharts illustrating an example of a data communication processing procedure in the inter-CPU communication device according to the present invention. In addition, (1) to (7) and (11)
~(17) shows each step. Further, (a) in the same figure corresponds to the processing of the command sending system 1a, and (b) of the same figure corresponds to the processing of the command receiving system 1b.

コマンド送信系1aにおいて、先ず、信号CBSYをt
rueにしfl)  コマンドバッファ3aに第2図(
a)に示した形式で格納されているコマンドを読み出し
く2)、発振器6aから出力される基準クロックに同期
させて2回続けて送信する(3)。これによって第2図
(b)に示したように8ビットのコマンドとして送信さ
れる。
In the command transmission system 1a, first, the signal CBSY is set to t.
rue and fl) in the command buffer 3a as shown in Figure 2 (
Read the command stored in the format shown in a) 2) and transmit it twice in succession in synchronization with the reference clock output from the oscillator 6a (3). As a result, the command is transmitted as an 8-bit command as shown in FIG. 2(b).

次いで、ステータス受信系2aに対してコマンド送信終
了を通知しく4)、信号CBSYをfalseとする(
5)。次いで、ステータス受信系2aから受信終了が通
知されるまで待機しく6)、通知されたら、信号5BS
Yがfalseなるのを待機しく7)、信号5BSYが
falseになったらステップ(1)に戻る。
Next, the status receiving system 2a is notified of the end of command transmission 4), and the signal CBSY is set to false (
5). Next, the system waits until the status reception system 2a notifies the end of reception 6), and when it is notified, the signal 5BS
The process waits for Y to become false (7), and returns to step (1) when the signal 5BSY becomes false.

一方、コマンド受信系1bでは、ステータス送信系2b
から送信終了が通知されるのを待機しく11)、信号C
BSYがtrueになるのを待機しく12)、信号CB
SYがtrueになったら、ステータス受信を開始する
(13)。 次いで、第2図(b)のうような形式で送
出されてきたコマンドの上位4ビットと下位4ビットを
比較しく14)、上位と下位の4ビットが等しいかどう
かを判定しく15)、Noならばステップ(17)以降
に進み、YESならば第2図(a)に示した形式に変換
してコマンドバッファ3bに書き込み(16)、受信終
了をステータス送信系2bに通知しく17)、ステップ
(ll)へ戻る。
On the other hand, in the command receiving system 1b, the status transmitting system 2b
11), and waits for notification of the end of transmission from the signal C.
Wait for BSY to become true12), signal CB
When SY becomes true, status reception starts (13). Next, compare the upper 4 bits and lower 4 bits of the command sent in the format shown in Figure 2(b)14), and determine whether the upper and lower 4 bits are equal15). If so, proceed to step (17) onward, and if YES, convert it into the format shown in FIG. Return to (ll).

上記各ステップはCPUAにおけるコマンド送信系1a
とCPUBにおけるコマンド受信系1bの信号処理を例
にして説明したが、CPUBにおけるステータス送信系
2b 、CPUAにおけるステータス受信系2aについ
てもコマンドとステータス、信号CBSY、5BSYが
逆になり、基本クロック(信号CLK)がCPUAの発
振器6aから送出されてくる信号CLKとしているだけ
でCPUAのコマンド送信系1a、CPUBのコマンド
受信系1bと同様の制御となる。
Each step above is performed by the command transmission system 1a in the CPUA.
The explanation has been given using the signal processing of the command receiving system 1b in the CPUB as an example, but the command, status, and signals CBSY and 5BSY are also reversed for the status transmitting system 2b in the CPUB and the status receiving system 2a in the CPUA, and the basic clock (signal CLK) is the signal CLK sent from the oscillator 6a of the CPUA, and the control is similar to that of the command transmission system 1a of the CPUA and the command reception system 1b of the CPUB.

このように、コマンド、ステータスの送受信処理を実行
することにより、受信データのチエツクを容易に、正確
さを高めることができる。
By executing command and status transmission/reception processing in this manner, it is possible to easily check received data with increased accuracy.

なお、上記実施例では第2図(a)、(b)に示したよ
うに、上位4ビットと下位4ビットに同一のビットデー
タを送信して各上位ビットと下位ビットをそれぞれ比較
して通信エラーを判定する場合について説明したが、送
信側で後述するように基本クロック(信号CLK)の2
クロック続けて同一ビットのデータを送信し、受信側で
は2ビットずつ受信ごとに等しいかどうかを判定し、異
なったデータを受信すればその時点で受信処理を終了す
るように構成しても良い。
In addition, in the above embodiment, as shown in FIGS. 2(a) and 2(b), the same bit data is transmitted to the upper 4 bits and the lower 4 bits, and the communication is performed by comparing each upper bit and lower bit. Although we have explained the case of determining an error, on the transmitting side, as will be described later, the basic clock (signal CLK)
It may be configured such that data of the same bit is transmitted continuously in clock cycles, and the receiving side determines whether or not the two bits are equal each time they are received, and if different data is received, the receiving process is terminated at that point.

すなわち、データ送信手段(この実施例ではコマンド送
信系1a、ステータス送信系2b)は、各CPUが他の
CPUに対して設定された送信データビットの各ビット
毎を、第5図に示すように少な(とも2ビット連続させ
ながら重複送信し、各CPUの受信手段が他のCPUか
ら各ビット毎を少なくとも2ビット連続して重複送信さ
れる送信ビットデータを各ビット毎に比較して通信エラ
ーを検出することを可能とする。
That is, the data transmitting means (in this embodiment, the command transmitting system 1a and the status transmitting system 2b) transmits each bit of the transmitted data bits set by each CPU to the other CPUs as shown in FIG. The receiving means of each CPU compares each bit of transmitted bit data that is repeatedly transmitted with at least 2 consecutive bits from other CPUs to detect communication errors. enable detection.

第4図はこの発明の他の実施例を示すCPU間通信装置
の信号インタフェースを説明するブロック図であり、第
1図と同一のものには同じ符号を付しである。
FIG. 4 is a block diagram illustrating a signal interface of an inter-CPU communication device showing another embodiment of the present invention, and the same components as in FIG. 1 are given the same reference numerals.

図において、LLI、LL2は割込みラインで、割込み
ラインLLIにはCPUAが受信エラーを認知した時点
でエラー信号DCERAをCPUBに送信する。また、
割込みラインLL2にはCPUBが受信エラーを認知し
た時点でエラー信号DCERBをCPUAに送信する。
In the figure, LLI and LL2 are interrupt lines, and the interrupt line LLI transmits an error signal DCERA to CPUB when the CPU recognizes a reception error. Also,
An error signal DCERB is sent to the interrupt line LL2 to the CPUA when the CPUB recognizes a reception error.

第5図は、第4図示した信号ラインL3により送信され
るビットデータの構成を説明する構造図であり、基本ク
ロック(信号CLK)の2クロック続けて同一ビットの
データを送信する。
FIG. 5 is a structural diagram illustrating the structure of bit data transmitted by the signal line L3 shown in FIG. 4, in which data of the same bit is transmitted two consecutive clocks of the basic clock (signal CLK).

以下、第6図(a)、(b)を参照しながらこの発明に
係るCPU間通信間通上装置るデータ通信処理動作につ
いて説明する。
The data communication processing operation of the inter-CPU communication communication device according to the present invention will be described below with reference to FIGS. 6(a) and 6(b).

第6図(a)、(b)はこの発明に係るcpu間通信装
置におけるデータ通信処理手順の一例を説明するフロー
チャートである。なお、(11〜(8)および(11)
〜(19)は各ステップを示す。
FIGS. 6(a) and 6(b) are flowcharts illustrating an example of a data communication processing procedure in the inter-CPU communication device according to the present invention. In addition, (11 to (8) and (11)
-(19) indicate each step.

コマンド送信系1aにおいて、先ず、信号CBSYをt
rueにしく1)  コマンドバッファ3aに第2図(
a)に示した形式で格納されているコマンドを読み出し
く2)、発振器6aから出力される基準クロックに同期
させて2クロック続けて同一ビットのデータを送信する
(3)。この間、CPUAはエラー信号DCERBが割
込み入力されたかどうかを監視しており+41  YE
Sならばステップ(3)に戻り、NOならばステータス
受信系2aに対してコマンド送信終了を通知しく5)、
信号CBSYをfalseとする(6)。次いで、ステ
ータス受信系2aから受信終了が通知されるまで待機し
く7)、通知されたら、信号5BSYがfalseなる
のを待機しく8)、信号5BSYがfalseになった
らステップ(1)に戻る。このように、ステップ(3)
でコマンド送信開始と同時に割込みを許可し、ステップ
(5)で送信終了と同時に割込みを禁止する。この間、
CPUBからのエラー信号DCERBがtrueとなっ
た場合にステップ(3)に戻り、コマンド再送信する。
In the command transmission system 1a, first, the signal CBSY is set to t.
rue 1) Insert the command buffer 3a in Figure 2 (
The command stored in the format shown in a) is read out (2), and data of the same bit is transmitted for two consecutive clocks in synchronization with the reference clock output from the oscillator 6a (3). During this time, the CPUA is monitoring whether or not the error signal DCERB has been input as an interrupt, and +41 YE
If S, return to step (3); if NO, notify the status receiving system 2a that command transmission has ended 5);
The signal CBSY is set to false (6). Next, the process waits until notification of the end of reception from the status receiving system 2a (7), and when notified, waits for the signal 5BSY to become false (8). When the signal 5BSY becomes false, the process returns to step (1). In this way, step (3)
In step (5), interrupts are enabled as soon as the command transmission starts, and in step (5), interrupts are disabled as soon as the transmission ends. During this time,
If the error signal DCERB from CPUB becomes true, the process returns to step (3) and the command is retransmitted.

一方、コマンド受信系1bでは、ステータス送信系2b
から送信終了が通知されるのを待機しく11)、信号C
BSYがtrueになるのを待機しく12)、信号CB
SYがtrueになったら、コマンド受信を開始する(
13)。
On the other hand, in the command receiving system 1b, the status transmitting system 2b
11), and waits for notification of the end of transmission from the signal C.
Wait for BSY to become true12), signal CB
When SY becomes true, start receiving commands (
13).

次いで、第5図のりような形式で送出されてきたコマン
ドの連続する2ビットを比較しく14)、通信エラーか
どうかを判定しく15)、NOならば第2図(a)に示
した形式に変換してコマンドバッファ3aに書き込み(
16)、受信終了をステータス送信系2bに通知しく1
7)、ステップ(11)へ戻る。
Next, compare the two consecutive bits of the command sent in the format shown in Figure 5 (14) to determine whether there is a communication error (15), and if NO, change to the format shown in Figure 2 (a). Convert and write to command buffer 3a (
16), to notify the status transmission system 2b of the end of reception 1
7), return to step (11).

方、ステップ(15)の判定で通信エラーの場合は、エ
ラー信号DCERBをtrueとしく18)、次いで、
エラー信号DCERBをfalseとじて(19)、ス
テップ(13)に戻る。
On the other hand, if it is determined in step (15) that there is a communication error, the error signal DCERB is set to true18), and then,
The error signal DCERB is set to false (19) and the process returns to step (13).

なお、CPUB側のステータス送信系1b、CPUA側
のコマンド受信系2aでもコマンドとステータスとの関
係、および信号CBSYと信号5BSYとの関係、エラ
ー信号DCERAとエラー信号DCERBとの関係が逆
になることと、基本クロックが外部からの信号CLKで
あることを除けばCPUAのコマンド送信系1a、CP
UBのコマンド受信系1bと同様の処理となる。
Note that the relationship between the command and the status, the relationship between the signal CBSY and the signal 5BSY, and the relationship between the error signal DCERA and the error signal DCERB are reversed in the status transmission system 1b on the CPUB side and the command reception system 2a on the CPUA side. , except that the basic clock is the external signal CLK, the command transmission system 1a of the CPU, the CP
The processing is similar to that of the UB command receiving system 1b.

[発明の効果1 以上説明したように、この発明は各CPUが他のCPU
に対して設定された送信ビットデータと同一の送信ビッ
トデータを重複送信するデータ送信手段と、各CPUが
他のCPUから重複送信される前記送信ビットデータの
各ビットを比較しながら受信する受信手段とを、各CP
Uに設けたので、従来のようにデータ送信時にパリティ
ビットを付加して送信する処理に比べて、通信エラーを
有効的に検出可能な送信ビットデータを容易に作成でき
る。また、受信手段が同一の送信ビットデータを少なく
とも2度程受信するので、通信精度が向上する。
[Effect of the invention 1 As explained above, this invention allows each CPU to communicate with other CPUs.
data transmitting means for repeatedly transmitting the same transmission bit data as the transmission bit data set for the CPU; and receiving means for each CPU to receive while comparing each bit of the transmission bit data transmitted repeatedly from other CPUs. and each CP
Since it is provided in U, it is possible to easily create transmission bit data that can effectively detect communication errors, compared to the conventional processing in which a parity bit is added and transmitted when transmitting data. Furthermore, since the receiving means receives the same transmitted bit data at least twice, communication accuracy is improved.

また、データ送信手段は、各CPUが他のCPUに対し
て設定された送信ビットデータと同一の送信ビットデー
タを少な(とも2セット連続させながら重複送信するよ
うに構成したので、非常に簡単な送信処理により、通信
エラーを有効に検出可能な送信ビットデータを作成でき
る。
In addition, the data transmission means is configured so that each CPU transmits the same transmission bit data as the transmission bit data set to other CPUs in small quantities (two sets consecutively), so it is very simple. Through the transmission process, transmission bit data that can effectively detect communication errors can be created.

更に、データ送信手段は、各CPUが他のCPUに対し
て設定された送信データビットの各ビット毎を少なくと
も2ビット連続させながら重複送信するように構成した
ので、非常に簡単な送信処理により、通信エラーを有効
、かつ即座に検出可能な送信ビットデータを作成できる
Furthermore, the data transmission means is configured such that each CPU repeatedly transmits each bit of the transmission data bits set to the other CPUs while making at least 2 bits consecutive. It is possible to create transmission bit data that can effectively and immediately detect communication errors.

従って、高周波ノイズを極めて強(影響を受けるような
システム環境においても、CPU間で有効な通信処理を
継続できる効果を奏する。
Therefore, even in a system environment where high-frequency noise is extremely strong, effective communication processing between CPUs can be continued.

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

第1図はこの発明の一実施例を示すCPU間通信装置の
構成を説明するブロック図、第2図は、第1図に示した
CPU間通間通−データットデータの一例を示す構造図
、第3図(a)、(b)はこの発明に係るCPU間通信
装置におけるデータ通信処理手順の一例を説明するフロ
ーチャート、第4図はこの発明の他の実施例を示すCP
U間通信装置の信号インタフェースを説明するブロック
図、第5図は、第4図示した信号ラインにより送信され
るビットデータの構成を説明する構造図、第6図(a)
、、(b)はこの発明に係るCPU間通信装置における
データ通信処理手順の一例を説明するフローチャートで
ある。 図中、A、BはCPU、laはコマンド送信系、2aは
ステータス受信系、1bはコマンド受信系、2bはステ
ータス送信系である。 SB SB 第2図 (a) (b) SB SB (a) 第 図 (b) 第4図
FIG. 1 is a block diagram illustrating the configuration of an inter-CPU communication device showing an embodiment of the present invention, and FIG. 2 is a structural diagram showing an example of the inter-CPU communication data shown in FIG. 1. , FIGS. 3(a) and 3(b) are flowcharts illustrating an example of a data communication processing procedure in the inter-CPU communication device according to the present invention, and FIG.
FIG. 5 is a block diagram illustrating the signal interface of the U-to-U communication device, and FIG. 6 is a structural diagram illustrating the structure of bit data transmitted by the signal line shown in FIG.
,,(b) is a flowchart illustrating an example of a data communication processing procedure in the inter-CPU communication device according to the present invention. In the figure, A and B are CPUs, la is a command transmission system, 2a is a status reception system, 1b is a command reception system, and 2b is a status transmission system. SB SB Figure 2 (a) (b) SB SB (a) Figure (b) Figure 4

Claims (3)

【特許請求の範囲】[Claims] (1)各CPUが相互にシリアル通信するCPU間通信
装置において、各CPUが他のCPUに対して設定され
た送信ビットデータと同一の送信ビットデータを重複送
信するデータ送信手段と、各CPUが他のCPUから重
複送信される前記送信ビットデータの各ビットを比較し
ながら受信する受信手段とを、各CPUに具備したこと
を特徴とするCPU間通信装置。
(1) In an inter-CPU communication device in which each CPU serially communicates with each other, each CPU has a data transmitting means for redundantly transmitting the same transmission bit data as the transmission bit data set to other CPUs, and An inter-CPU communication device characterized in that each CPU is provided with a receiving means for receiving while comparing each bit of the transmission bit data transmitted redundantly from another CPU.
(2)データ送信手段は、各CPUが他のCPUに対し
て設定された送信ビットデータと同一の送信ビットデー
タを少なくとも2セット連続させながら重複送信するこ
とを特徴とする請求項(1)記載のCPU間通信装置。
(2) The data transmission means is characterized in that each CPU sequentially and repeatedly transmits at least two sets of transmission bit data that are the same as transmission bit data set for each CPU. communication device between CPUs.
(3)データ送信手段は、各CPUが他のCPUに対し
て設定された送信データビットの各ビット毎を少なくと
も2ビット連続させながら重複送信することを特徴とす
る請求項(1)記載のCPU間通信装置。
(3) The CPU according to claim (1), wherein the data transmitting means repeatedly transmits each bit of the transmission data bits set by each CPU to the other CPUs while making at least two consecutive bits. communication device.
JP17624390A 1990-07-05 1990-07-05 Inter-cpu communication equipment Pending JPH0470950A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17624390A JPH0470950A (en) 1990-07-05 1990-07-05 Inter-cpu communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17624390A JPH0470950A (en) 1990-07-05 1990-07-05 Inter-cpu communication equipment

Publications (1)

Publication Number Publication Date
JPH0470950A true JPH0470950A (en) 1992-03-05

Family

ID=16010150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17624390A Pending JPH0470950A (en) 1990-07-05 1990-07-05 Inter-cpu communication equipment

Country Status (1)

Country Link
JP (1) JPH0470950A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8628389B2 (en) 2005-10-27 2014-01-14 Ofi Investments Pty. Ltd. Workstation system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8628389B2 (en) 2005-10-27 2014-01-14 Ofi Investments Pty. Ltd. Workstation system

Similar Documents

Publication Publication Date Title
JPS602813B2 (en) Computer-to-computer communication method and system
JPH087697B2 (en) Apparatus and method for maintaining control information integrity
JPH0470950A (en) Inter-cpu communication equipment
JPS6052458B2 (en) Duplicated computer control system
JP2581705B2 (en) Serial data transfer system
JPH0535616A (en) Data transfer system
JPH0421150Y2 (en)
JPS61237544A (en) Asynchronous serial transmission system
JPH02234254A (en) Data transfer circuit
JPH0324601A (en) Control method
JP2733283B2 (en) Serial transmission control device
JPH05257871A (en) Databus control system
JPS63263553A (en) Remote channel system
JPH0373050A (en) Serial write data transfer system
JPS58141055A (en) Signal transmitter on handshake system
JPH11306096A (en) Device and method for serial communication and recording medium recording serial communication control program
JPH056284A (en) Error control system
JPS6171739A (en) Data transmission method
JPH0294722A (en) Parity monitor system
JPS62293453A (en) Multiple bus system data processor
JPH0588995A (en) Data communication system
JPS62219053A (en) Bus system with maintenance signal line
JPH0198033A (en) Detecting circuit for data error
JPH07219890A (en) Method for transmitting data
JPS60112155A (en) Discrimination system of trouble