JP2000003312A - Synchronous serial communication system and control method therefor - Google Patents

Synchronous serial communication system and control method therefor

Info

Publication number
JP2000003312A
JP2000003312A JP10181381A JP18138198A JP2000003312A JP 2000003312 A JP2000003312 A JP 2000003312A JP 10181381 A JP10181381 A JP 10181381A JP 18138198 A JP18138198 A JP 18138198A JP 2000003312 A JP2000003312 A JP 2000003312A
Authority
JP
Japan
Prior art keywords
data
communication
latch signal
communication control
storage
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
JP10181381A
Other languages
Japanese (ja)
Inventor
Takashi Soya
崇 征矢
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 JP10181381A priority Critical patent/JP2000003312A/en
Publication of JP2000003312A publication Critical patent/JP2000003312A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a synchronous serial communication system capable of early and correctly recognizing an abnormality of transmission/reception of communication data and improved in the reliability of a data communication, and to provide a control method therefor. SOLUTION: When a communication controller 409 transmits data to a slave communication IC 400, transmission data are transmitted to the slave communication IC 400 from a shift register 411 after they are transferred to a transmission buffer 412, and the transmission data are transferred to a buffer 403 of the slave communication IC 400. Next, the transmission data which perform reception operation and fetch them into the buffer 403 are received by a communication controller 409. The received data are transferred to a reception buffer 413 through a shift register 411. Data held in a transmission buffer 412 by a data comparison circuit 414 and data fetched in the reception buffer 413 are compared with each other and the comparison result is transmitted to a host CPU 420 by a comparison result information part 415.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、同期式シリアル通
信システムに関し、特に、例えば、画像形成装置等、複
数の制御ユニットを備えた装置内における制御情報デー
タのシリアル通信を行う同期式シリアル通信システム及
びその制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a synchronous serial communication system, and more particularly, to a synchronous serial communication system for performing serial communication of control information data in an apparatus having a plurality of control units such as an image forming apparatus. And its control method.

【0002】[0002]

【従来の技術】従来、図1に示すようなシリアル通信シ
ステムが知られている。図1において、複数のデータレ
ジスタ、セレクタ、シリアル通信制御部及びシフトレジ
スタ等を備える通信コントローラ101と、モータ10
4を駆動するモータドライバ105が接続された子通信
IC102と、複数のセンサが接続された通信IC10
3とが、電源供給ライン(+5V)、グランドライン
(GND)、同期クロック信号ライン(CLK)及びデ
ータライン(DATA)の計4本からなる信号ラインを
介してカスケード接続されている。
2. Description of the Related Art Conventionally, a serial communication system as shown in FIG. 1 has been known. 1, a communication controller 101 including a plurality of data registers, a selector, a serial communication control unit, a shift register, and the like, and a motor 10
Communication IC 102 to which a motor driver 105 for driving the IC 4 is connected and a communication IC 10 to which a plurality of sensors are connected
3 are cascade-connected via a total of four signal lines: a power supply line (+5 V), a ground line (GND), a synchronous clock signal line (CLK), and a data line (DATA).

【0003】このようなシリアル通信システムを、複写
機等の画像形成装置に適用した構成例を図2に示す。図
2に示すように、このシリアル通信システムは、通信コ
ントローラ201と、装置内の適所に配設されたモータ
206および207をそれぞれ駆動するモータドライバ
208および209がそれぞれ接続された子通信IC2
02及び203と、複数のセンサ群210及び211が
それぞれ接続された子通信IC204及び子通信IC2
05とを一つの信号ラインを介して接続して構成されて
いる。通信コントローラ201とホストCPU210は
バス接続され、ホストCPUの制御により通信コントロ
ーラ201と各通信IC202〜205との間でデータ
通信が行われことにより、モータ206及びモータ20
7の動作を制御すると共にセンサ群210及び211か
らの信号を読み取ることが行われる。
FIG. 2 shows a configuration example in which such a serial communication system is applied to an image forming apparatus such as a copying machine. As shown in FIG. 2, this serial communication system includes a communication controller 201 and child communication ICs 2 connected to motor drivers 208 and 209 respectively driving motors 206 and 207 disposed at appropriate positions in the apparatus.
02 and 203, and the child communication IC 204 and the child communication IC 2 to which the plurality of sensor groups 210 and 211 are respectively connected.
05 is connected via one signal line. The communication controller 201 and the host CPU 210 are connected by a bus, and data communication is performed between the communication controller 201 and each of the communication ICs 202 to 205 under the control of the host CPU.
7 and read signals from the sensor groups 210 and 211.

【0004】各子通信IC202〜205には装置内の
配置位置とは無関係に固有のアドレス、アドレス0、ア
ドレス1、アドレス2、アドレス3がそれぞれ指定され
ている。
[0004] Unique addresses, address 0, address 1, address 2, and address 3 are designated to each of the slave communication ICs 202 to 205 independently of the arrangement position in the apparatus.

【0005】モータ206を駆動するため所定の相デー
タを送信する送信動作を行う場合、通信コントローラ2
01は同期クロック信号ライン(CLK)に所定周波数
のパルス列を送出する。そのパルス列に同期して、通信
コントローラ201及び子通信IC202は、図3
(a)に示すデータライン(DATA)の送信データフ
ォーマットの送信パルス列に基づいて処理を行う。通信
コントローラ201は先ず通信開始を知らせるスタート
ビットを送出し、次に、送信を指定するビット、通信す
る相手の子通信IC202に固有のアドレスビット列
(A0〜A2)、送信データビット列(D0〜D7)、
パリティビット(PA)を順次送出する。
When performing a transmission operation for transmitting predetermined phase data to drive the motor 206, the communication controller 2
01 sends a pulse train of a predetermined frequency to the synchronous clock signal line (CLK). In synchronization with the pulse train, the communication controller 201 and the slave communication IC 202
Processing is performed based on the transmission pulse train of the transmission data format of the data line (DATA) shown in (a). The communication controller 201 first sends out a start bit for notifying the start of communication, then a bit for designating transmission, an address bit string (A0 to A2) unique to the slave communication IC 202 of the communication partner, and a transmission data bit string (D0 to D7). ,
Parity bits (PA) are sequentially transmitted.

【0006】子通信IC202は送出されたアドレスビ
ット列が自分のアドレスと一致した場合にのみ送信デー
タビット列とパリティビットを取り込む。次いで、子通
信IC202は送信データとパリティビットからパリテ
ィエラーチェックを行い、その結果肯定応答(ACK)
を通信コントローラ201に送出する。通信コントロー
ラ201はACKが正常であればストップビットを送出
して送信データを確定し、送信動作を終了させる。送信
データに基づいて子通信IC202はそのモータドライ
バ208にモータ206の駆動制御信号を供給する。A
CKが異常であれば、通信コントローラ201はストッ
プビットを送出せずに送信動作を終了させる。従って、
モータドライバ208にモータ206の駆動制御信号が
供給されない。
The slave communication IC 202 takes in the transmission data bit string and the parity bit only when the transmitted address bit string matches its own address. Next, the child communication IC 202 performs a parity error check from the transmission data and the parity bit, and as a result, an acknowledgment (ACK)
To the communication controller 201. If the ACK is normal, the communication controller 201 sends a stop bit to determine the transmission data, and terminates the transmission operation. The slave communication IC 202 supplies a drive control signal of the motor 206 to the motor driver 208 based on the transmission data. A
If CK is abnormal, the communication controller 201 terminates the transmission operation without sending a stop bit. Therefore,
The drive control signal for the motor 206 is not supplied to the motor driver 208.

【0007】次に、センサ群210の出力信号を子通信
IC204から通信コントローラ201が受信する場合
の受信動作について説明する。受信動作を行う場合、通
信コントローラ201は同期クロック信号ライン(CL
K)に所定周波数のパルス列を送出する。通信コントロ
ーラ201及び通信IC204は、そのパルス列に同期
して、図3(b)に示すデータライン(DATA)の受
信データフォーマットの受信パルス列に基づいて処理を
行う。通信コントローラ201は先ず通信開始を知らせ
るスタートビットを送出し、次に、受信を指定するビッ
ト、通信相手である子通信IC204のアドレスビット
列(A0〜A2)を順次送出する。子通信IC204は
アドレスビット列が自分のアドレスと一致した場合にの
み送信データとパリティビット(PA)を送出し、通信
コントローラ201は受信したデータとパリティビット
からパリティチェックを行い、その結果が正常であれば
受信データを確定し、送信動作を終了させる。
Next, the receiving operation when the communication controller 201 receives the output signal of the sensor group 210 from the slave communication IC 204 will be described. When performing the receiving operation, the communication controller 201 transmits the synchronous clock signal line (CL
K), a pulse train of a predetermined frequency is transmitted. The communication controller 201 and the communication IC 204 perform processing based on the reception pulse train of the reception data format of the data line (DATA) shown in FIG. 3B in synchronization with the pulse train. The communication controller 201 first sends out a start bit for notifying the start of communication, and then sends out a bit for designating reception and an address bit string (A0 to A2) of the slave communication IC 204 as a communication partner in order. The slave communication IC 204 sends out transmission data and a parity bit (PA) only when the address bit string matches its own address, and the communication controller 201 performs a parity check from the received data and the parity bit, and if the result is normal. If so, the received data is determined and the transmission operation is terminated.

【0008】このような構成のシリアル通信システムを
用いることによって、カスケード接続された信号ライン
により、装置の各所に配置された複数のモータやセンサ
に対し作動を制御したり情報を読み取ることができる。
[0008] By using the serial communication system having such a configuration, it is possible to control the operation of a plurality of motors and sensors arranged in various parts of the apparatus and read information by using cascade-connected signal lines.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、上記の
従来のシリアル通信システムにおいては、通信データの
エラー検知はパリティエラーチェックのみに依存してお
り、パリティエラーチェック機能のみでは、システムの
置かれた環境によっては、通信データが正常に送受信で
きているかどうかを正確に確認することができず信頼性
に欠ける。
However, in the above-mentioned conventional serial communication system, error detection of communication data relies only on parity error check, and only the parity error check function is used in an environment where the system is installed. In some cases, it is not possible to accurately confirm whether communication data has been transmitted and received normally, and reliability is lacking.

【0010】本発明は、かかる従来のシリアル通信シス
テムの有する問題を解消し、通信データの送受信の異常
及び正常でないデータの送信を早期に且つ正確に認識す
ることができ、データ通信の信頼性が向上した同期式シ
リアル通信システム及びその制御方法を提供することを
目的とする。
[0010] The present invention solves the problems of the conventional serial communication system, and can promptly and accurately recognize abnormalities in transmission / reception of communication data and transmission of abnormal data, thereby improving the reliability of data communication. An object of the present invention is to provide an improved synchronous serial communication system and a control method thereof.

【0011】[0011]

【発明を解決するための手段】上記目的を達成するた
め、請求項1記載の発明によれば、通信の制御を行う通
信制御手段と、前記通信制御手段と通信ラインを介して
接続され前記通信制御手段との間でデータの送受信を行
う子通信手段とを備えた同期式シリアル通信システムに
おいて、前記通信制御手段は、送信データを保持する第
1の記憶手段と、前記子通信手段からの受信データを格
納する第2の記憶手段と、前記第1の記憶手段のデータ
と前記第2の記憶手段のデータとの比較を行う比較手段
とを備え、前記子通信手段は、前記通信制御手段からの
受信データを保持する第3の記憶手段と、前記第3の記
憶手段のデータを出力するドライブ手段とを備え、前記
通信制御手段は、前記子通信手段に対して送信動作と受
信動作とを連続して行い、前記比較手段にて前記第1の
記憶手段のデータと前記第2の記憶手段のデータとの比
較を行い、その比較結果を出力することを特徴とする。
According to the first aspect of the present invention, there is provided a communication control means for controlling communication, and the communication control means being connected to the communication control means via a communication line. In a synchronous serial communication system including a slave communication unit that transmits and receives data to and from a control unit, the communication control unit includes a first storage unit that holds transmission data, and a reception unit that receives transmission data from the slave communication unit. A second storage unit for storing data; and a comparison unit for comparing data in the first storage unit with data in the second storage unit, wherein the child communication unit is And a drive unit for outputting the data of the third storage unit, wherein the communication control unit performs a transmission operation and a reception operation with respect to the child communication unit. Continuously There, compares the data of the data and the second storage means of the first storage unit by the comparison means, and outputs the comparison result.

【0012】上記目的を達成するため、本発明における
第1の発明の通信システムの制御方法は、CPUに接続
され通信の制御を行う通信制御手段と、前記通信制御手
段と通信ラインで接続され前記通信制御手段との間でデ
ータの送受信を行い受信データを制御情報として出力す
る子通信手段とを備えた同期式シリアル通信システムの
制御方法において、前記通信制御手段が送信データを第
1の記憶手段に保持するステップと、前記送信データを
指定する子通信手段へ送信し当該通信手段が第2の記憶
手段に前記送信データを格納するステップと、前記第2
の記憶手段のデータを制御情報として出力するステップ
と、前記第2の記憶手段に格納したデータを前記通信制
御手段が受信して第3の記憶手段に格納するステップ
と、前記第1の記憶手段のデータと前記第3の記憶手段
のデータとを比較するステップと、前記比較の結果を前
記CPUに出力するステップとからなることを特徴とす
る。
In order to achieve the above object, a control method of a communication system according to a first aspect of the present invention includes a communication control means connected to a CPU for controlling communication, and a communication control means connected to the communication control means via a communication line. A slave communication means for transmitting and receiving data to and from the communication control means and outputting the received data as control information, wherein the communication control means stores the transmission data in a first storage means. Holding the transmission data to child communication means for designating the transmission data, and the communication means storing the transmission data in a second storage means;
Outputting the data of the storage means as control information; receiving the data stored in the second storage means by the communication control means and storing the data in the third storage means; And the step of comparing the data of the third storage means with the data of the third storage means, and outputting the result of the comparison to the CPU.

【0013】好ましくは、請求項2記載の発明では、請
求項1において、前記通信制御手段は、前記第1記憶手
段のデータ及び前記第2の記憶手段のデータをそれぞれ
送信及び受信するための第1のシフトレジスタを有し、
前記子通信手段は、前記第3の記憶手段のデータを送信
及び受信するための第2のシフトレジスタを有する。
Preferably, in the invention described in claim 2, in claim 1, the communication control means includes a communication control means for transmitting and receiving data in the first storage means and data in the second storage means, respectively. One shift register,
The child communication means has a second shift register for transmitting and receiving data of the third storage means.

【0014】また、好ましくは、請求項3記載の発明で
は、請求項1において、前記通信ラインに複数の前記子
通信手段が接続され、前記通信制御手段は指定する前記
子通信手段と通信を行うことを特徴とする。
Preferably, in the third aspect of the present invention, in the first aspect, a plurality of the child communication means are connected to the communication line, and the communication control means communicates with the designated child communication means. It is characterized by the following.

【0015】更に好ましくは、請求項4記載の発明で
は、請求項1において、前記子通信手段は、前記通信制
御手段からのデータの送信終了後にラッチ信号を生成し
前記ドライブ手段に対して送出するラッチ信号発生手段
を有し、前記ドライブ手段は、前記ラッチ信号に応じて
前記第3の記憶手段のデータを出力することを特徴とす
る。
More preferably, in the invention according to claim 4, in claim 1, the slave communication means generates a latch signal after transmission of data from the communication control means and sends it to the drive means. A latch signal generating unit, wherein the drive unit outputs data of the third storage unit according to the latch signal.

【0016】上記目的を達成するため、請求項5記載の
発明によれば、通信の制御を行う通信制御手段と、前記
通信制御手段と通信ラインを介して接続され前記通信制
御手段との間でデータの送受信を行う子通信手段とを備
えた同期式シリアル通信システムの制御方法において、
前記通信制御手段からの送信データを前記通信制御手段
の第1の記憶手段に保持する保持ステップと、前記送信
データを前記通信手段に送信する送信ステップと、該送
信データを前記子通信手段の第3の記憶手段に格納する
格納ステップと、前記第3の記憶手段のデータを出力す
るデータ出力ステップと、前記第3の記憶手段に格納さ
れたデータを前記子通信手段から前記通信制御手段に受
信する受信ステップと、前記子通信手段からの受信デー
タを前記通信制御手段の第2の記憶手段に格納する格納
ステップと、前記通信制御手段において前記第1の記憶
手段のデータと前記第2の記憶手段のデータとの比較を
行う比較ステップと、該比較結果を出力する比較結果出
力ステップとを備え、前記送信ステップと前記受信ステ
ップとを連続して実行して、前記比較ステップを実行
し、その比較結果を出力することを特徴とする。
In order to achieve the above object, according to the invention as set forth in claim 5, communication control means for controlling communication, and communication control means connected to the communication control means via a communication line between the communication control means. In a control method of a synchronous serial communication system including child communication means for transmitting and receiving data,
A holding step of holding transmission data from the communication control means in a first storage means of the communication control means; a transmission step of transmitting the transmission data to the communication means; Storing the data in the third storage means, outputting the data in the third storage means, and receiving the data stored in the third storage means from the slave communication means to the communication control means. Receiving the received data from the slave communication means, storing the received data from the slave communication means in the second storage means of the communication control means, and storing the data in the first storage means and the second storage in the communication control means. A comparing step of comparing with the data of the means, and a comparison result output step of outputting the comparison result, wherein the transmitting step and the receiving step are continuously performed. On the line, it performs the comparing step, and outputs the comparison result.

【0017】上記目的を達成するため、請求項6記載の
発明によれば、通信の制御を行う通信制御手段と、前記
通信制御手段と通信ラインを介して接続され前記通信制
御手段との間でデータの送受信を行う子通信手段とを備
えた同期式シリアル通信システムにおいて、前記通信制
御手段は、送信データを保持する第1の記憶手段と、前
記子通信手段からの受信データを格納する第2の記憶手
段と、前記第1の記憶手段のデータと前記第2の記憶手
段のデータとの比較を行う比較手段と、該比較手段によ
る比較結果が一致した場合にラッチ信号を生成するラッ
チ信号発生手段を備え、前記子通信手段は、前記通信制
御手段からの受信データを保持する第3の記憶手段と、
前記第3の記憶手段のデータを出力するドライブ手段と
を備え、前記通信制御手段は、前記子通信手段に対して
送信動作と受信動作とを連続して行い、前記比較手段に
て前記第1の記憶手段のデータと前記第2の記憶手段の
データとの比較を行い、その比較結果を出力するととも
に、比較結果が一致した場合に前記ラッチ信号発生手段
により前記ドライブ手段に前記ラッチ信号を送出し、前
記第3の記憶手段のデータを出力させることを特徴とす
る。
According to a sixth aspect of the present invention, there is provided a communication control means for controlling communication between the communication control means and the communication control means connected to the communication control means via a communication line. In a synchronous serial communication system including a child communication unit that transmits and receives data, the communication control unit includes a first storage unit that holds transmission data, and a second storage unit that stores reception data from the child communication unit. Storage means, comparison means for comparing the data in the first storage means with the data in the second storage means, and a latch signal generating means for generating a latch signal when the comparison results by the comparison means match Means, wherein the child communication means comprises: third storage means for holding data received from the communication control means;
A drive unit for outputting data of the third storage unit, wherein the communication control unit continuously performs a transmission operation and a reception operation with respect to the child communication unit, Comparing the data in the storage means with the data in the second storage means, outputting the comparison result, and sending the latch signal to the drive means by the latch signal generation means when the comparison result matches. And outputting the data of the third storage means.

【0018】好ましくは、請求項7記載の発明では、請
求項6において、前記通信制御手段は、前記第1記憶手
段のデータ及び前記第2の記憶手段のデータをそれぞれ
送信及び受信するための第1のシフトレジスタを有し、
前記子通信手段は、前記第3の記憶手段のデータを送信
及び受信するための第2のシフトレジスタを有すること
を特徴とする。
Preferably, in the invention described in claim 7, in claim 6, the communication control means includes a communication control means for transmitting and receiving data in the first storage means and data in the second storage means, respectively. One shift register,
The child communication means has a second shift register for transmitting and receiving data in the third storage means.

【0019】また、好ましくは、請求項8記載の発明で
は、請求項6において、前記通信ラインに複数の前記子
通信手段が接続され、前記通信制御手段は指定する前記
子通信手段と通信を行うことを特徴とする。
Preferably, in the invention according to claim 8, in claim 6, a plurality of the child communication means are connected to the communication line, and the communication control means communicates with the designated child communication means. It is characterized by the following.

【0020】好ましくは、請求項9記載の発明では、請
求項6において、前記ラッチ信号発生手段と前記ドライ
ブ手段とは信号線により接続されていることを特徴とす
る。
Preferably, in the invention of claim 9, in claim 6, the latch signal generating means and the drive means are connected by a signal line.

【0021】上記目的を達成するため、請求項10記載
の発明によれば、通信の制御を行う通信制御手段と、前
記通信制御手段と通信ラインを介して接続され前記通信
制御手段との間でデータの送受信を行う通信手段とを備
えた同期式シリアル通信システムの制御方法において、
前記通信制御手段からの送信データを前記通信制御手段
の第1の記憶手段に保持する保持ステップと、前記送信
データを前記子通信手段に送信する送信ステップと、該
送信データを前記通信手段の第3の記憶手段に格納する
格納ステップと、前記第3の記憶手段のデータを出力す
るデータ出力ステップと、前記第3の記憶手段に格納さ
れたデータを前記子通信手段から前記通信制御手段に受
信する受信ステップと、前記子通信手段からの受信デー
タを前記通信制御手段の第2の記憶手段に格納する格納
ステップと、前記通信制御手段において前記第1の記憶
手段のデータと前記第2の記憶手段のデータとの比較を
行う比較ステップと、該比較結果が一致した場合にラッ
チ信号を生成するラッチ信号発生ステップとを備え、前
記送信ステップと前記受信ステップとを連続して実行し
て、前記比較ステップを実行し、その比較結果を出力す
るとともに、比較結果が一致した場合に前記ラッチ信号
発生ステップにより前記ラッチ信号を発生して、前記デ
ータ出力ステップで前記第3の記憶手段のデータを出力
させることを特徴とする。
In order to achieve the above object, according to the invention of claim 10, communication control means for controlling communication, and communication control means connected to the communication control means via a communication line between the communication control means and the communication control means. In a control method of a synchronous serial communication system including communication means for transmitting and receiving data,
Holding the transmission data from the communication control means in the first storage means of the communication control means; transmitting the transmission data to the child communication means; Storing the data in the third storage means, outputting the data in the third storage means, and receiving the data stored in the third storage means from the slave communication means to the communication control means. Receiving the received data from the slave communication means, storing the received data from the slave communication means in the second storage means of the communication control means, and storing the data in the first storage means and the second storage in the communication control means. A comparing step of comparing with the data of the means, and a latch signal generating step of generating a latch signal when the comparison result matches, the transmitting step; The receiving step is performed continuously, the comparing step is performed, the comparison result is output, and when the comparison result matches, the latch signal is generated by the latch signal generating step, and the data signal is output. In the output step, the data of the third storage means is output.

【0022】上記目的を達成するため、請求項11記載
の発明によれば、通信の制御を行う通信制御手段と、前
記通信制御手段と通信ラインを介して接続され前記通信
制御手段との間でデータの送受信を行う子通信手段とを
備えた同期式シリアル通信システムにおいて、前記通信
制御手段は、送信データを保持する第1の記憶手段と、
前記子通信手段からの受信データを格納する第2の記憶
手段と、前記第1の記憶手段のデータと前記第2の記憶
手段のデータとの比較を行う比較手段と、該比較手段に
よる比較結果が一致した場合にラッチ信号を生成する第
1のラッチ信号発生手段を備え、前記子通信手段は、前
記通信制御手段からの受信データを保持する第3の記憶
手段と、前記第3の記憶手段のデータを出力するドライ
ブ手段と、前記通信制御手段からのデータの送信終了後
にラッチ信号を生成し前記ドライブ手段に対して送出す
る第2のラッチ信号発生手段と、外部からラッチ信号を
入力するラッチ信号入力手段と、前記第2のラッチ信号
発生手段からのラッチ信号又は前記ラッチ信号入力手段
からのラッチ信号を選択するラッチ信号選択手段とを備
えることを特徴とする。
To achieve the above object, according to the eleventh aspect of the present invention, there is provided a communication control means for controlling communication, and a communication control means connected to the communication control means via a communication line. In a synchronous serial communication system including child communication means for transmitting and receiving data, the communication control means includes: first storage means for holding transmission data;
Second storage means for storing data received from the child communication means, comparison means for comparing data in the first storage means with data in the second storage means, and a comparison result by the comparison means A first latch signal generating unit that generates a latch signal when the two match, wherein the slave communication unit includes a third storage unit that holds data received from the communication control unit; and a third storage unit. Drive means for outputting a latch signal, a second latch signal generation means for generating a latch signal after transmission of data from the communication control means and sending the latch signal to the drive means, and a latch for inputting a latch signal from outside Signal input means, and latch signal selection means for selecting a latch signal from the second latch signal generation means or a latch signal from the latch signal input means. That.

【0023】好ましくは、請求項12記載の発明では、
請求項11において、前記通信制御手段は、前記第1記
憶手段のデータ及び前記第2の記憶手段のデータをそれ
ぞれ送信及び受信するための第1のシフトレジスタを有
し、前記子通信手段は、前記第3の記憶手段のデータを
送信及び受信するための第2のシフトレジスタを有する
ことを特徴とする。
Preferably, in the invention according to claim 12,
12. The communication control unit according to claim 11, wherein the communication control unit includes a first shift register for transmitting and receiving the data of the first storage unit and the data of the second storage unit, respectively, It has a second shift register for transmitting and receiving the data of the third storage means.

【0024】好ましくは、請求項13記載の発明では、
請求項11において、前記通信ラインに複数の前記子通
信手段が接続され、前記通信制御手段は指定する前記子
通信手段と通信を行うことを特徴とする。
Preferably, in the invention according to claim 13,
12. The communication system according to claim 11, wherein the plurality of child communication units are connected to the communication line, and the communication control unit communicates with the specified child communication unit.

【0025】好ましくは、請求項14記載の発明では、
請求項11において、前記通信制御手段は、前記比較手
段にて前記第1の記憶手段のデータと前記第2の記憶手
段のデータとの比較を行い、その比較結果を出力するこ
とを特徴とする。
Preferably, in the invention according to claim 14,
12. The communication control unit according to claim 11, wherein the comparison unit compares the data in the first storage unit with the data in the second storage unit by the comparison unit, and outputs a result of the comparison. .

【0026】好ましくは、請求項15記載の発明では、
請求項11において、前記第1のラッチ信号発生手段と
前記ラッチ信号入力手段とは信号線により接続され、前
記ラッチ選択手段によって前記ラッチ信号入力手段から
のラッチ信号が選択された場合、前記比較手段による比
較結果が一致したときに前記第1のラッチ信号発生手段
から前記ドライブ手段にラッチ信号を送出し、前記第3
の記憶手段のデータを出力することを特徴とする。
Preferably, in the invention according to claim 15,
12. The comparison unit according to claim 11, wherein the first latch signal generation unit and the latch signal input unit are connected by a signal line, and when the latch signal from the latch signal input unit is selected by the latch selection unit. A latch signal is sent from the first latch signal generating means to the drive means when the result of comparison by
The data of the storage means is output.

【0027】好ましくは、請求項16記載の発明では、
請求項11において、前記ラッチ選択手段によって前記
第2のラッチ信号発生手段からのラッチ信号が選択され
た場合、前記通信制御手段からのデータの送信終了後に
前記第2のラッチ信号発生手段によりラッチ信号を生成
し前記ドライブ手段に対して送出し、前記ドライブ手段
は、前記ラッチ信号に応じて前記第3の記憶手段のデー
タを出力することを特徴とする。
Preferably, in the invention according to claim 16,
12. The device according to claim 11, wherein when the latch signal from the second latch signal generating means is selected by the latch selecting means, the latch signal is generated by the second latch signal generating means after data transmission from the communication control means is completed. Is generated and transmitted to the drive unit, and the drive unit outputs data of the third storage unit in accordance with the latch signal.

【0028】好ましくは、請求項17記載の発明では、
請求項11において、前記通信制御手段は、前記子通信
手段に対して送信動作と受信動作とを連続して行い、前
記比較手段にて前記第1の記憶手段のデータと前記第2
の記憶手段のデータとの比較を行い、その比較結果を出
力することを特徴とする。
Preferably, in the invention according to claim 17,
12. The communication control unit according to claim 11, wherein the communication control unit continuously performs a transmission operation and a reception operation with respect to the child communication unit, and the comparison unit stores the data in the first storage unit and the second storage unit.
Is compared with the data in the storage means, and the comparison result is output.

【0029】好ましくは、請求項18記載の発明では、
請求項11において、前記通信制御手段は、前記子通信
手段に対して送信動作と受信動作とを連続して行う動作
を選択する動作選択手段を備え、前記送信動作と受信動
作を連続して行う動作を選択しない場合は、前記比較手
段の作動を禁止することを特徴とする。
Preferably, in the invention according to claim 18,
12. The communication control unit according to claim 11, wherein the communication control unit includes an operation selection unit that selects an operation of continuously performing a transmission operation and a reception operation with respect to the child communication unit, and performs the transmission operation and the reception operation continuously. When the operation is not selected, the operation of the comparing means is prohibited.

【0030】上記目的を達成するために、請求項19記
載の発明では、通信の制御を行う通信制御手段と、前記
通信制御手段と通信ラインを介して接続され前記通信制
御手段との間でデータの送受信を行う子通信手段とを備
えた同期式シリアル通信システムの制御方法において、
前記通信制御手段からの送信データを前記通信制御手段
の第1の記憶手段に保持する保持ステップと、前記送信
データを前記子通信手段に送信する送信ステップと、該
送信データを前記子通信手段の第3の記憶手段に格納す
る格納ステップと、前記第3の記憶手段のデータを出力
するデータ出力ステップと、前記第3の記憶手段に格納
されたデータを前記子通信手段から前記通信制御手段に
受信する受信ステップと、前記子通信手段からの受信デ
ータを前記通信制御手段の第2の記憶手段に格納する格
納ステップと、前記通信制御手段において前記第1の記
憶手段のデータと前記第2の記憶手段のデータとの比較
を行う比較ステップと、該比較結果が一致した場合にラ
ッチ信号を生成する第1のラッチ信号発生ステップと、
前記通信制御手段からのデータの送信終了後にラッチ信
号を生成し前記第3の記憶手段のデータを出力させる第
2のラッチ信号発生ステップと、外部からラッチ信号を
入力するラッチ信号入力ステップと、前記第2のラッチ
信号発生ステップにより発生されるラッチ信号又は前記
ラッチ信号入力ステップに入力されるラッチ信号を選択
するラッチ信号選択ステップとを備えることを特徴とす
る。
In order to achieve the above object, according to the invention of claim 19, communication control means for controlling communication, and data communication between the communication control means connected to the communication control means via a communication line. In the control method of the synchronous serial communication system including a child communication unit that performs transmission and reception of,
A holding step of holding transmission data from the communication control means in a first storage means of the communication control means; a transmission step of transmitting the transmission data to the child communication means; A storing step of storing data in the third storage means, a data output step of outputting data of the third storage means, and a step of transferring the data stored in the third storage means from the slave communication means to the communication control means. A receiving step of receiving, a storing step of storing received data from the child communication means in a second storage means of the communication control means, and a step of storing the data of the first storage means and the second A comparing step of comparing with data in the storage means, a first latch signal generating step of generating a latch signal when the comparison result matches,
A second latch signal generating step of generating a latch signal after the transmission of data from the communication control means and outputting the data of the third storage means, a latch signal inputting step of externally inputting a latch signal, And a latch signal selection step of selecting a latch signal generated by the second latch signal generation step or a latch signal input to the latch signal input step.

【0031】[0031]

【発明の実施の形態】以下、本発明の第1の実施の形態
を図4〜図6を参照して説明する。図4は、本発明の第
1の実施の形態に係る同期式シリアル通信システムの主
要構成を示す図である。図において、モータ等の駆動手
段が接続される子通信手段である子通信IC400は、
制御部401、シフトレジスタ402、バッファ40
3、出力ドライバ404、リセット回路405、ラッチ
信号発生回路406を備える。通信制御手段である通信
コントローラ409は、制御部410、シフトレジスタ
411、送信バッファ412、受信バッファ413、デ
ータ比較回路414、比較結果通知部415、複数のデ
ータレジスタ(データレジスタ0〜7)からなるデータ
レジスタ416を備え。通信コントローラ409はホス
トCPU420とバス接続されている。通信コントロー
ラ409と複数の子通信IC400(図には1つのみ示
す)は先述した信号ラインによりカスケード接続されて
いる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment of the present invention will be described below with reference to FIGS. FIG. 4 is a diagram showing a main configuration of the synchronous serial communication system according to the first embodiment of the present invention. In the figure, a child communication IC 400 which is a child communication means to which a driving means such as a motor is connected,
Control unit 401, shift register 402, buffer 40
3, an output driver 404, a reset circuit 405, and a latch signal generation circuit 406. A communication controller 409, which is a communication control unit, includes a control unit 410, a shift register 411, a transmission buffer 412, a reception buffer 413, a data comparison circuit 414, a comparison result notification unit 415, and a plurality of data registers (data registers 0 to 7). A data register 416 is provided. The communication controller 409 is connected to the host CPU 420 via a bus. The communication controller 409 and the plurality of slave communication ICs 400 (only one is shown in the figure) are cascaded by the above-described signal lines.

【0032】次に、上記構成の作動について説明する。
モータ等の動作を制御するために通信コントローラ40
9からデータを子通信IC400に送信する場合、ホス
トCPU420は通信コントローラ409内の子通信I
C400に対応したデータレジスタ416の1つのレジ
スタに送信データを書き込む。通信制御部410は、予
め定められている通信プロトコルに基づいて、以下の手
順でデータレジスタ416の送信データを子通信IC4
00に送信する。
Next, the operation of the above configuration will be described.
Communication controller 40 for controlling the operation of the motor and the like
When the host CPU 420 transmits data from the communication controller 409 to the child communication IC 400, the host CPU 420
The transmission data is written into one of the data registers 416 corresponding to C400. The communication control unit 410 transmits the transmission data of the data register 416 to the child communication IC 4 in the following procedure based on a predetermined communication protocol.
Send to 00.

【0033】データレジスタ416に保持された送信デ
ータは、送信バッファ412に転送された後、シフトレ
ジスタ411に転送される。シフトレジスタ411に転
送された送信データ(SDATA)は図3(a)に示す
ようなデータフォーマットで同期クロック信号ライン
(CLK)の同期クロックパルス(SCLK)に同期し
て子通信IC400に送信される。
The transmission data held in the data register 416 is transferred to the transmission buffer 412 and then to the shift register 411. The transmission data (SDATA) transferred to the shift register 411 is transmitted to the slave communication IC 400 in a data format as shown in FIG. 3A in synchronization with the synchronization clock pulse (SCLK) of the synchronization clock signal line (CLK). .

【0034】子通信IC400は制御部401の制御に
より、通信プロトコルに基づいて、送出されたアドレス
ビット列が自分のアドレスと一致した場合に、送信デー
タをシフトレジスタ402に取り込み、パリティエラー
チェックにより送信データが正常であればバッファ40
3に転送する。通信コントローラ409から送出される
ストップビットを受信すると、ラッチ信号発生回路40
6によりラッチ信号を生成し、出力ドライバ404によ
りバッファ403のデータをラッチして制御情報(DO
UT)としてモータに出力する。
Under the control of the control unit 401, when the transmitted address bit string matches its own address under the control of the control unit 401, the slave communication IC 400 takes in the transmission data into the shift register 402 and checks the transmission data by parity error check. Is normal, buffer 40
Transfer to 3. When the stop bit transmitted from the communication controller 409 is received, the latch signal generation circuit 40
6 generates a latch signal, and the output driver 404 latches the data in the buffer 403 to control information (DO).
(UT) to the motor.

【0035】送信動作が終了すると、通信コントローラ
409は送信を行った子通信IC400に対して予め定
められた通信プロトコルに基づいて受信動作を行う。子
通信IC400は、通信コントローラ409の送出する
受信ビットと、自己のアドレスと一致するアドレスビッ
ト列とを受けたとき、バッファ403に取り込んだ送信
データ(SDATA)をシフトレジスタ402に転送し
同期クロックパルス(SCLK)に同期して通信コント
ローラ409に送信する。送信されたデータは一連の受
信動作によって通信コントローラ409のシフトレジス
タ411に取り込まれ、パリティエラーチェックにより
受信したデータが正常であればシフトレジスタ411か
ら受信バッファ413に転送される。
When the transmission operation is completed, the communication controller 409 performs a reception operation on the slave communication IC 400 that has transmitted the data based on a predetermined communication protocol. When the slave communication IC 400 receives the reception bit transmitted by the communication controller 409 and the address bit string corresponding to its own address, the slave communication IC 400 transfers the transmission data (SDATA) fetched into the buffer 403 to the shift register 402 and transmits the synchronization clock pulse (SCLK). SCLK) and transmits it to the communication controller 409. The transmitted data is taken into the shift register 411 of the communication controller 409 by a series of receiving operations, and is transferred from the shift register 411 to the receiving buffer 413 if the received data is normal by the parity error check.

【0036】受信動作が終了すると、データ比較回路4
14により送信バッファ412に保持されたデータと受
信バッファ413に取り込まれたデータとが比較され、
比較結果が比較結果通知部415によりホストCPU4
20に送信される。
When the receiving operation is completed, the data comparing circuit 4
14, the data held in the transmission buffer 412 is compared with the data taken in the reception buffer 413,
The comparison result is sent to the host CPU 4 by the comparison result notification unit 415.
20.

【0037】比較結果通知部415の通知手段はレジス
タによるフラグの操作でも、割込み信号のための信号出
力でもよい。
The notification means of the comparison result notification unit 415 may be a flag operation by a register or a signal output for an interrupt signal.

【0038】本実施の形態によれば、送信バッファ41
2の送信データと子通信IC400から受信した受信バ
ッファ413のデータとが一致しない場合、即ち、通信
コントローラ409が送信した送信データと子通信IC
400が受信したデータが一致しない場合は、ホストC
PU420は比較結果通知部415からの信号により送
信データの異常を認識することができるので、短時間の
内にモータの停止、再データ送信等のリカバリー処置を
講ずることが可能となる。
According to the present embodiment, the transmission buffer 41
2 does not match the data in the reception buffer 413 received from the slave communication IC 400, that is, the transmission data transmitted by the communication controller 409 and the slave communication IC
If the data received by 400 does not match, host C
Since the PU 420 can recognize the abnormality of the transmission data based on the signal from the comparison result notifying unit 415, it is possible to take recovery measures such as stopping the motor and transmitting the data again within a short time.

【0039】図5は、本発明の第2の実施の形態に係る
同期式シリアル通信システムの主要構成を示す図であ
る。図において、モータ等の駆動手段が接続される子通
信手段である子通信IC500は、制御部501、シフ
トレジスタ502、バッファ503、出力ドライバ50
4、リセット回路505を備える。通信制御手段である
通信コントローラ509は、制御部510、シフトレジ
スタ511、送信バッファ512、受信バッファ51
3、データ比較回路514、比較結果通知部515、複
数のデータレジスタ(データレジスタ0〜7)からなる
データレジスタ516、ラッチ信号発生回路517を備
える。通信コントローラ509はホストCPU520と
バス接続されている。通信コントローラ509と複数の
子通信IC500(図には1つのみ示す)は先述した信
号ラインによりカスケード接続されている。
FIG. 5 is a diagram showing a main configuration of a synchronous serial communication system according to a second embodiment of the present invention. In the figure, a child communication IC 500 as a child communication unit to which a driving unit such as a motor is connected includes a control unit 501, a shift register 502, a buffer 503, and an output driver 50.
4. A reset circuit 505 is provided. A communication controller 509 serving as a communication control unit includes a control unit 510, a shift register 511, a transmission buffer 512, and a reception buffer 51.
3, a data comparison circuit 514, a comparison result notification unit 515, a data register 516 including a plurality of data registers (data registers 0 to 7), and a latch signal generation circuit 517. The communication controller 509 is connected to the host CPU 520 via a bus. The communication controller 509 and a plurality of slave communication ICs 500 (only one is shown in the figure) are cascaded by the signal lines described above.

【0040】次に、上記構成の作動について説明する。
モータ等の動作を制御するために通信コントローラ50
9からデータを子通信IC500に送信する場合、ホス
トCPU520は通信コントローラ509内の子通信I
C500に対応したデータレジスタ516の1つのレジ
スタに送信データを書き込む。通信制御部510は予め
定められている子通信プロトコルに基づいて、以下の手
順でデータレジスタ516の送信データを子通信IC5
00に送信する。
Next, the operation of the above configuration will be described.
Communication controller 50 for controlling the operation of the motor and the like.
When the host CPU 520 transmits data to the child communication IC 500 from the
The transmission data is written into one of the data registers 516 corresponding to C500. The communication control unit 510 transmits the transmission data of the data register 516 to the child communication IC 5 according to the following procedure based on a predetermined child communication protocol.
Send to 00.

【0041】データレジスタ516に保持された送信デ
ータは送信バッファ512に転送された後、シフトレジ
スタ511に転送される。シフトレジスタ511に転送
された送信データ(SDATA)は図3(a)に示すよ
うなデータフォーマットで同期クロックライン(CL
K)の同期クロックパルス(SCLK)に同期して子通
信IC500に送信される。
The transmission data held in the data register 516 is transferred to the transmission buffer 512 and then to the shift register 511. The transmission data (SDATA) transferred to the shift register 511 has a data format as shown in FIG.
K) is transmitted to the slave communication IC 500 in synchronization with the synchronous clock pulse (SCLK).

【0042】子通信IC500は制御部501の制御に
より、通信プロトコルに基づいて、送出されたするアド
レスビット列が自己のアドレスと一致した場合に、送信
データをシフトレジスタ502に取り込み、パリティエ
ラーチェックにより送信データが正常であればバッファ
503に転送する。
Under the control of the control unit 501, when the transmitted address bit string matches its own address under the control of the control unit 501, the slave communication IC 500 takes in the transmission data into the shift register 502 and transmits it by parity error check. If the data is normal, the data is transferred to the buffer 503.

【0043】以上の送信動作が終了すると、通信コント
ローラ509は送信を行った子通信IC500に対して
予め定められた通信プロトコルに基づいて受信動作を行
う。子通信IC500は、通信コントローラ509の送
出する受信ビットと、自己のアドレスと一致するアドレ
スビット列とを受けたとき、バッファ503が取り込ん
だ前記データをシフトレジスタ502に転送し、同期ク
ロックパルス(SCLK)に同期して通信コントローラ
509に送信する。通信コントローラ509が受信した
データは一連の受信動作によりシフトレジスタ511に
取り込まれ、パリティチェックによりデータが正常であ
ればシフトレジスタ511から受信バッファ513に転
送される。
When the above-described transmission operation is completed, the communication controller 509 performs a reception operation on the slave communication IC 500 that has transmitted the data based on a predetermined communication protocol. When the slave communication IC 500 receives the reception bit transmitted by the communication controller 509 and an address bit string matching its own address, the slave communication IC 500 transfers the data fetched by the buffer 503 to the shift register 502, and outputs a synchronous clock pulse (SCLK) Is transmitted to the communication controller 509 in synchronization with. The data received by the communication controller 509 is taken into the shift register 511 by a series of receiving operations. If the data is normal by the parity check, the data is transferred from the shift register 511 to the reception buffer 513.

【0044】受信動作が終了すると、データ比較回路5
14により送信バッファ512に保持された送信データ
と受信バッファ513に転送されたデータとが比較さ
れ、比較結果が比較結果通知部515によりホストCP
U520に送信される。同時に、比較結果が一致してい
る場合はラッチ信号発生回路517によりラッチ信号が
生成され、ラッチ信号が信号線を介して子通信IC50
0の出力ドライバ504に送出される。出力ドライバ5
04はバッファ503の送信データをラッチしてデータ
(DOUT)がモータに出力される。比較結果が一致し
ない場合は、ラッチ信号発生回路517からラッチ信号
が送出されないため、子通信IC500の出力ドライバ
504からデータが出力されない。
When the receiving operation is completed, the data comparing circuit 5
14, the transmission data held in the transmission buffer 512 is compared with the data transferred to the reception buffer 513, and the comparison result is notified by the comparison result notifying unit 515 to the host CP.
Sent to U520. At the same time, if the comparison results match, a latch signal is generated by the latch signal generation circuit 517, and the latch signal is transmitted via the signal line to the child communication IC 50.
0 is sent to the output driver 504. Output driver 5
Reference numeral 04 latches transmission data in the buffer 503 and outputs data (DOUT) to the motor. If the comparison results do not match, no latch signal is sent from the latch signal generation circuit 517, and no data is output from the output driver 504 of the slave communication IC 500.

【0045】比較結果通知部515のホストCPU52
0への通知手段はレジスタによるフラグの操作でも、割
込み信号のための信号出力でもよい。
Host CPU 52 of comparison result notifying section 515
The means for notifying to 0 may be a flag operation by a register or a signal output for an interrupt signal.

【0046】本実施の形態によれば、ホストCPU52
0が比較結果通知部515からの信号により送信データ
の異常を認識できるので、短時間の内にリカバリー処置
を講ずることが可能となることに加え、通信コントロー
ラ509が送信した送信データと子通信IC500が受
信したデータが一致しない場合は子通信IC500の出
力ドライバ504からデータが出力されないため、異常
な制御情報の出力が禁止され、モータ等の不正な動作を
防止することが可能となる。
According to the present embodiment, the host CPU 52
0 can recognize the abnormality of the transmission data by the signal from the comparison result notifying unit 515, so that it is possible to take a recovery action within a short time. In addition, the transmission data transmitted by the communication controller 509 and the child communication IC 500 If the received data does not match, no data is output from the output driver 504 of the child communication IC 500, so that output of abnormal control information is prohibited, and illegal operation of the motor and the like can be prevented.

【0047】次に、図6を参照して本発明の第3の実施
の形態について説明する。図6は、本発明の第3の実施
の形態に係る同期式シリアル通信システムの主要構成を
示す図である。同図において、モータ等の駆動手段が接
続される子通信IC600は、制御部601、シフトレ
ジスタ602、バッファ603、出力ドライバ604、
リセット回路605、ラッチ信号発生回路606、ラッ
チ信号選択回路607を備える。通信コントローラ60
9は、制御部610、シフトレジスタ611、送信バッ
ファ612、受信バッファ613、データ比較回路61
4、複数のデータレジスタ(データレジスタ0〜7)か
らなるデータレジスタ616、比較結果通知部615、
ラッチ信号発生回路617、送受信選択回路618を備
える。通信コントローラ609はホストCPU620と
バス接続されている。通信コントローラ609と複数の
子通信IC600(図には1つのみ示す)は先述した信
号ラインによりカスケード接続されている。
Next, a third embodiment of the present invention will be described with reference to FIG. FIG. 6 is a diagram showing a main configuration of a synchronous serial communication system according to a third embodiment of the present invention. In the figure, a slave communication IC 600 to which driving means such as a motor is connected includes a control unit 601, a shift register 602, a buffer 603, an output driver 604,
The circuit includes a reset circuit 605, a latch signal generation circuit 606, and a latch signal selection circuit 607. Communication controller 60
9 denotes a control unit 610, a shift register 611, a transmission buffer 612, a reception buffer 613, a data comparison circuit 61
4, a data register 616 including a plurality of data registers (data registers 0 to 7), a comparison result notifying unit 615,
A latch signal generation circuit 617 and a transmission / reception selection circuit 618 are provided. The communication controller 609 is connected to the host CPU 620 via a bus. The communication controller 609 and the plurality of child communication ICs 600 (only one is shown in the figure) are cascaded by the signal lines described above.

【0048】次に、上記構成の作動について説明する。
本実施の形態においては、送受信選択回路618によ
り、通信コントローラ609の送信動作と受信動作を連
続して行う通信制御を選択するか否かを、ホストCPU
620からの指示により決定することができる。送受信
動作の連続制御を選択しない場合は、デ−タ比較回路6
14のデータ比較機能は使用されず、従来の制御方式と
同様送信動作のみを行ってパリティエラーチェックのみ
で送信データが正常か否かの判定が行われる。送受信動
作の連続制御を選択した場合、即ち、データ比較回路6
14の機能を使用する選択を行った場合は、更に、ラッ
チ信号選択回路607により子通信IC600内のラッ
チ信号発生回路606を使用するかまたは通信コントロ
ーラ609内のラッチ信号発生回路617を使用するか
を選択することができる。
Next, the operation of the above configuration will be described.
In this embodiment, the transmission / reception selection circuit 618 determines whether or not to select communication control for continuously performing the transmission operation and the reception operation of the communication controller 609 by the host CPU.
620 can be determined. If the continuous control of the transmission / reception operation is not selected, the data comparison circuit 6
The data comparison function of No. 14 is not used, and only the transmission operation is performed similarly to the conventional control method, and it is determined whether the transmission data is normal only by the parity error check. When the continuous control of the transmission / reception operation is selected, that is, the data comparison circuit 6
If the user selects to use the fourteenth function, the latch signal selection circuit 607 further uses the latch signal generation circuit 606 in the child communication IC 600 or the latch signal generation circuit 617 in the communication controller 609. Can be selected.

【0049】ラッチ信号発生回路617の使用を選択し
た場合は以下の作動を行う。モータ等を駆動するために
通信コントローラ609からデータを子通信IC600
に送信する場合、ホストCPU620は通信コントロー
ラ609内の子通信IC600に対応したデータレジス
タ616の1つのレジスタに送信データを書き込み、通
信制御部610は予め定められている通信プロトコルに
基づいて以下の手順で当該送信データを子通信IC60
0に送信する。
When the use of the latch signal generation circuit 617 is selected, the following operation is performed. In order to drive a motor or the like, data is transmitted from the communication controller 609 to the child communication IC 600.
, The host CPU 620 writes the transmission data to one of the data registers 616 corresponding to the child communication IC 600 in the communication controller 609, and the communication control unit 610 performs the following procedure based on a predetermined communication protocol. To send the transmission data to the child communication IC 60
Send to 0.

【0050】データレジスタ616に保持された送信デ
ータは、送信バッファ612に転送された後、シフトレ
ジスタ611に転送される。シフトレジスタ611に転
送された送信データは図3(a)に示すようなデータフ
ォーマットで同期クロック信号ライン(CLK)の同期
クロックパルス(SCLK)に同期して子通信IC60
0に送信される。
The transmission data held in the data register 616 is transferred to the transmission buffer 612 and then to the shift register 611. The transmission data transferred to the shift register 611 has a data format as shown in FIG. 3A and is synchronized with the synchronous clock pulse (SCLK) of the synchronous clock signal line (CLK) to the slave communication IC 60.
Sent to 0.

【0051】子通信IC600は制御部601の制御に
より、通信プロトコルに基づいて、送出されたアドレス
ビット列が自己のアドレスと一致した場合に、送信デー
タをシフトレジスタ602に取り込み、パリティチェッ
クにより送信データが正常であればバッファ603に転
送する。以上の送信動作が終了すると、通信コントロー
ラ609は予め定められた通信プロトコルに基づく受信
動作を行う。通信コントローラ609から送出される受
信ビット、アドレスビット列を含む受信命令により子通
信IC600はバッファ603に取り込んだ送信データ
をシフトレジスタ602に転送し、同期クロックパルス
(SCLK)に同期して通信コントローラ609に送信
する。通信コントローラ609が受信した前記送信デー
タは一連の受信動作によってシフトレジスタ611に取
り込まれ、パリティチェックにより受信データが正常で
あればシフトレジスタ611から受信バッファ613に
転送される。
Under the control of the control unit 601, the slave communication IC 600 captures transmission data into the shift register 602 when the transmitted address bit string matches its own address based on the communication protocol, and checks the transmission data by parity check. If normal, the data is transferred to the buffer 603. When the above transmission operation is completed, the communication controller 609 performs a reception operation based on a predetermined communication protocol. In response to a reception command including a reception bit and an address bit string transmitted from the communication controller 609, the slave communication IC 600 transfers the transmission data fetched into the buffer 603 to the shift register 602, and sends the transmission data to the communication controller 609 in synchronization with a synchronous clock pulse (SCLK). Send. The transmission data received by the communication controller 609 is taken into the shift register 611 by a series of reception operations, and is transferred from the shift register 611 to the reception buffer 613 if the received data is normal by the parity check.

【0052】受信動作が終了すると、データ比較回路6
14により送信バッファ612に保持された送信データ
と受信バッファ613に転送された受信データとが比較
され、比較結果が比較結果通知部615によりホストC
PU620に送信される。同時に、比較結果が一致して
いる場合はラッチ信号発生回路617によりラッチ信号
が生成され、ラッチ信号が信号線を介して子通信IC6
00の出力ドライバ604に送出され、出力ドライバ6
04はバッファ603の送信データをラッチしてデータ
(DOUT)がモータに出力される。比較結果が一致し
ない場合は、ラッチ信号発生回路617からラッチ信号
が送出されないため、子通信IC600の出力ドライバ
604からデータが出力されない。
When the receiving operation is completed, the data comparing circuit 6
14, the transmission data held in the transmission buffer 612 is compared with the reception data transferred to the reception buffer 613, and the comparison result is notified by the comparison result notifying unit 615 to the host C.
Sent to PU 620. At the same time, if the comparison results match, a latch signal is generated by the latch signal generation circuit 617, and the latch signal is transmitted to the slave communication IC 6 via the signal line.
00 to the output driver 604
Reference numeral 04 latches transmission data of the buffer 603 and outputs data (DOUT) to the motor. If the comparison results do not match, no latch signal is sent from the latch signal generation circuit 617, and no data is output from the output driver 604 of the slave communication IC 600.

【0053】比較結果通知部615のホストCPU62
0への通知手段はレジスタによるフラグの操作でも、割
込み信号のための信号出力でもよい。
Host CPU 62 of comparison result notifying section 615
The means for notifying to 0 may be a flag operation by a register or a signal output for an interrupt signal.

【0054】また、ラッチ信号選択回路607によりラ
ッチ信号発生回路606を使用する選択を行った場合
は、ラッチ信号発生回路606は通信コントローラ60
9の送信動作の終了時点にラッチ信号を発生し、第1の
実施の形態で説明した作動と同様に、出力ドライバ60
4によりバッファ603のデータをラッチしてモータに
出力する作動を行う。
When the use of the latch signal generation circuit 606 is selected by the latch signal selection circuit 607, the latch signal generation circuit 606
9, a latch signal is generated at the end of the transmission operation, and the output driver 60 is output in the same manner as the operation described in the first embodiment.
4, the operation of latching the data in the buffer 603 and outputting it to the motor is performed.

【0055】本実施の形態によれば、送信データに異常
のある場合、ホストCPU620がデータの異常を認識
して、短時間内にリカバリー処置を講ずることが可能と
なること、及び通信コントローラ609が送信した送信
データと子通信IC600が受信したデータが一致しな
い場合は子通信IC600の出力ドライバ604からデ
ータが出力されないため、異常な制御情報の出力が禁止
され、モータ等の不正な動作を防止することが可能とな
ることに加え、更に、送受信選択回路618を設けたこ
とにより、データ比較回路614の機能を使用しない選
択をすることも可能なため、誤作動の少ない環境であれ
ば従来の送信動作でデータ通信を行うことができ、送信
データまたは通信システムの環境によりデータチェック
方式を選択できる柔軟性を持たせることができる。
According to the present embodiment, when there is an abnormality in the transmission data, the host CPU 620 recognizes the abnormality of the data and can take a recovery action within a short time. If the transmitted data does not match the data received by the slave communication IC 600, no data is output from the output driver 604 of the slave communication IC 600, so that output of abnormal control information is prohibited and illegal operation of the motor or the like is prevented. In addition to the above, the provision of the transmission / reception selection circuit 618 makes it possible to select not to use the function of the data comparison circuit 614. Data communication can be performed by operation, and data check method can be selected according to transmission data or communication system environment. It is possible to have a flexible.

【0056】以上説明した第1乃至第3の実施の形態に
おいては、1アドレスを8ビットとし、8アドレス分の
情報を通信コントローラと子通信IC間で送受信する構
成として説明したが、通信データのフォーマットの取り
決めにより、それらは適当に最適化した構成に変更でき
る。又、複数の通信コントローラによりシステムを構成
し、それに対応して通信ラインを複数にして送受信する
データの負荷を増加することもできる。
In the first to third embodiments described above, one address has eight bits, and information for eight addresses is transmitted and received between the communication controller and the child communication IC. Depending on the format convention, they can be changed to a suitably optimized configuration. Further, a system can be configured by a plurality of communication controllers, and the load of data to be transmitted and received can be increased by using a plurality of communication lines correspondingly.

【0057】[0057]

【発明の効果】本発明に係る請求項1及び5記載の発明
によれば、通信制御手段は、子通信手段に対して送信動
作と受信動作とを連続して行い、送信データと受信デー
タとの比較を行い、その比較結果を出力する構成とした
ので、通信データの送受信の異常及び正常でないデータ
の送信を早期に且つ正確に認識することができ、データ
通信の信頼性を向上することができる。
According to the first and fifth aspects of the present invention, the communication control means continuously performs the transmission operation and the reception operation with respect to the child communication means, and transmits and receives the transmission data and the reception data. Is performed and the result of the comparison is output, so that abnormalities in transmission / reception of communication data and transmission of abnormal data can be quickly and accurately recognized, and the reliability of data communication can be improved. it can.

【0058】本発明に係る請求項6及び10記載の発明
によれば、通信制御手段は、子通信手段に対して送信動
作と受信動作とを連続して行い、送信データと受信デー
タとの比較を行い、その比較結果を出力するとともに、
比較結果が一致した場合に子通信手段のドライブ手段に
ラッチ信号を送出し、子通信手段で受信されたデータを
出力させる構成としたので、通信データの送受信の異常
及び正常でないデータの送信を早期に且つ正確に認識す
ることができ、データ通信の信頼性を向上することがで
きるとともに、送信データに異常があった場合は子通信
手段からの出力が禁止できるので、異常な制御情報の出
力が禁止され、モータ等の不正な動作を防止することが
可能となる。
According to the sixth and tenth aspects of the present invention, the communication control means continuously performs the transmission operation and the reception operation with respect to the child communication means, and compares the transmission data with the reception data. And outputs the comparison result.
When the comparison result matches, a latch signal is sent to the drive means of the child communication means to output the data received by the child communication means. In addition, it is possible to accurately and accurately recognize and improve the reliability of the data communication, and when there is an abnormality in the transmission data, the output from the child communication means can be prohibited. It is forbidden, and it is possible to prevent unauthorized operation of the motor and the like.

【0059】本発明に係る請求項11及び19記載の発
明によれば、送信データと受信データとの比較結果が一
致した場合にラッチ信号を生成する第1のラッチ信号発
生手段と、通信制御手段からのデータの送信終了後にラ
ッチ信号を生成し前記子通信手段のドライブ手段に対し
て送出する第2のラッチ信号発生手段とを選択可能とし
たので、通信データの送受信の異常及び正常でないデー
タの送信を早期に且つ正確に認識することができ、デー
タ通信の信頼性を向上することができるとともに、送信
動作終了時のパリテイチェック又は送信データと受信デ
ータとの比較のいずれか選択した一方の結果により送信
データに異常が判明された場合に子通信手段からの出力
が禁止できるので、異常な制御情報の出力が禁止され、
モータ等の不正な動作を防止することが可能となる。
According to the eleventh and nineteenth aspects of the present invention, the first latch signal generating means for generating a latch signal when the comparison result between the transmission data and the reception data matches, and the communication control means And the second latch signal generating means for generating a latch signal after the data transmission from the slave communication means and sending it to the drive means of the child communication means can be selected. Transmission can be quickly and accurately recognized, the reliability of data communication can be improved, and one of the parity check at the end of the transmission operation or the comparison between the transmission data and the reception data can be selected. If an abnormality is found in the transmission data as a result, the output from the child communication means can be prohibited, so that the output of abnormal control information is prohibited,
It is possible to prevent unauthorized operation of the motor and the like.

【0060】更に、前記制御手段の指定した前記子通信
手段に対して送信動作と受信動作とを連続して行う制御
を選択する動作選択手段を備えることにより、選択的に
前記比較手段の機能を停止できるので、誤作動の少ない
環境であれば従来のシリアル通信システムと同様の送信
動作でデータ通信を行うことができ、送信データまたは
通信システムの環境によりデータチェック方式を選択で
きる柔軟性を通信システムに持たせることができる。
Further, by providing an operation selecting means for selecting a control for continuously performing a transmitting operation and a receiving operation with respect to the child communication means designated by the control means, the function of the comparing means is selectively provided. Since it can be stopped, data communication can be performed by the same transmission operation as that of a conventional serial communication system in an environment with few malfunctions. Can be held.

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

【図1】従来のシリアル通信システムの主要構成を示す
概略のブロック図である。
FIG. 1 is a schematic block diagram showing a main configuration of a conventional serial communication system.

【図2】複写機等の画像形成装置に適用した従来のシリ
アル通信システムの主要構成を示す概略のブロック図で
ある。
FIG. 2 is a schematic block diagram showing a main configuration of a conventional serial communication system applied to an image forming apparatus such as a copying machine.

【図3】(a)は、従来のシリアル通信システムの送信
フレームのデータフォーマットを示す図である。(b)
は、従来のシリアル通信システムの受信フレームのデー
タフォーマットを示す図である。
FIG. 3A is a diagram showing a data format of a transmission frame in a conventional serial communication system. (B)
FIG. 1 is a diagram showing a data format of a reception frame of a conventional serial communication system.

【図4】本発明の第1の実施の形態における同期式シリ
アル通信システムの主要構成を示すブロック図である。
FIG. 4 is a block diagram showing a main configuration of a synchronous serial communication system according to the first embodiment of the present invention.

【図5】本発明の第2の実施の形態における同期式シリ
アル通信システムの主要構成を示すブロック図である。
FIG. 5 is a block diagram showing a main configuration of a synchronous serial communication system according to a second embodiment of the present invention.

【図6】 本発明の第3の実施の形態における同期式シ
リアル通信システムの主要構成を示すブロック図であ
る。
FIG. 6 is a block diagram illustrating a main configuration of a synchronous serial communication system according to a third embodiment of the present invention.

【符号の説明】[Explanation of symbols]

400、500、600 子通信IC 401、501、601 子通信ICの制御部 402、502、602 シフトレジスタ 403、503、603 バッファ 404、504、604 出力ドライバ 405、505、605 リセット回路 406、606 ラッチ信号発生回路 409、509、609 通信コントローラ 410、510、610 通信コントローラの制御部 411、511、611 シフトレジスタ 412、512、612 送信バッファ 413、513、613 受信バッファ 414、514、614 データ比較回路 415、515、615 比較結果通知部 420、520、620 ホストCPU 607 ラッチ信号選択回路 618 送受信選択回路 400, 500, 600 Child communication ICs 401, 501, 601 Child communication IC control units 402, 502, 602 Shift registers 403, 503, 603 Buffers 404, 504, 604 Output drivers 405, 505, 605 Reset circuits 406, 606 Latch Signal generation circuit 409, 509, 609 Communication controller 410, 510, 610 Communication controller control unit 411, 511, 611 Shift register 412, 512, 612 Transmission buffer 413, 513, 613 Receiving buffer 414, 514, 614 Data comparison circuit 415 , 515, 615 Comparison result notification unit 420, 520, 620 Host CPU 607 Latch signal selection circuit 618 Transmission / reception selection circuit

Claims (19)

【特許請求の範囲】[Claims] 【請求項1】 通信の制御を行う通信制御手段と、前記
通信制御手段と通信ラインを介して接続され前記通信制
御手段との間でデータの送受信を行う子通信手段とを備
えた同期式シリアル通信システムにおいて、 前記通信制御手段は、送信データを保持する第1の記憶
手段と、前記子通信手段からの受信データを格納する第
2の記憶手段と、前記第1の記憶手段のデータと前記第
2の記憶手段のデータとの比較を行う比較手段とを備
え、 前記子通信手段は、前記通信制御手段からの受信データ
を保持する第3の記憶手段と、前記第3の記憶手段のデ
ータを出力するドライブ手段とを備え、 前記子通信制御手段は、前記通信手段に対して送信動作
と受信動作とを連続して行い、前記比較手段にて前記第
1の記憶手段のデータと前記第2の記憶手段のデータと
の比較を行い、その比較結果を出力することを特徴とす
る同期式シリアル通信システム。
1. A synchronous serial communication system comprising: communication control means for controlling communication; and slave communication means connected to the communication control means via a communication line for transmitting and receiving data to and from the communication control means. In the communication system, the communication control unit includes a first storage unit that holds transmission data, a second storage unit that stores reception data from the child communication unit, and data of the first storage unit. Comparison means for comparing the data with the data in the second storage means, wherein the slave communication means has a third storage means for holding data received from the communication control means, and a data in the third storage means. The slave communication control means continuously performs a transmission operation and a reception operation with respect to the communication means, and the comparison means compares the data of the first storage means with the data of the first storage means. 2 memory hands 2. A synchronous serial communication system, comprising: comparing with data of a stage; and outputting a result of the comparison.
【請求項2】前記通信制御手段は、前記第1記憶手段の
データ及び前記第2の記憶手段のデータをそれぞれ送信
及び受信するための第1のシフトレジスタを有し、前記
子通信手段は、前記第3の記憶手段のデータを送信及び
受信するための第2のシフトレジスタを有することを特
徴とする請求項1記載の同期式シリアル通信システム。
2. The communication control means has a first shift register for transmitting and receiving data of the first storage means and data of the second storage means, respectively, and the child communication means comprises: 2. The synchronous serial communication system according to claim 1, further comprising a second shift register for transmitting and receiving data of said third storage means.
【請求項3】 前記通信ラインに複数の前記子通信手段
が接続され、前記通信制御手段は指定する前記子通信手
段と通信を行うことを特徴とする請求項1記載の同期式
シリアル通信システム。
3. The synchronous serial communication system according to claim 1, wherein a plurality of said child communication means are connected to said communication line, and said communication control means communicates with said designated child communication means.
【請求項4】 前記子通信手段は、前記通信制御手段か
らのデータの送信終了後にラッチ信号を生成し前記ドラ
イブ手段に対して送出するラッチ信号発生手段を有し、
前記ドライブ手段は、前記ラッチ信号に応じて前記第3
の記憶手段のデータを出力することを特徴とする請求項
1の同期式シリアル通信システム。
4. The slave communication means includes a latch signal generation means for generating a latch signal after transmission of data from the communication control means and sending the latch signal to the drive means,
The drive means is responsive to the latch signal to generate the third
2. The synchronous serial communication system according to claim 1, wherein data of said storage means is output.
【請求項5】 通信の制御を行う通信制御手段と、前記
通信制御手段と通信ラインを介して接続され前記通信制
御手段との間でデータの送受信を行う子通信手段とを備
えた同期式シリアル通信システムの制御方法において、 前記通信制御手段からの送信データを前記通信制御手段
の第1の記憶手段に保持する保持ステップと、前記送信
データを前記子通信手段に送信する送信ステップと、該
送信データを前記子通信手段の第3の記憶手段に格納す
る格納ステップと、前記第3の記憶手段のデータを出力
するデータ出力ステップと、前記第3の記憶手段に格納
されたデータを前記子通信手段から前記通信制御手段に
受信する受信ステップと、前記子通信手段からの受信デ
ータを前記通信制御手段の第2の記憶手段に格納する格
納ステップと、前記通信制御手段において前記第1の記
憶手段のデータと前記第2の記憶手段のデータとの比較
を行う比較ステップと、該比較結果を出力する比較結果
出力ステップとを備え、 前記送信ステップと前記受信ステップとを連続して実行
して、前記比較ステップを実行し、その比較結果を出力
することを特徴とする同期式シリアル通信システムの制
御方法。
5. A synchronous serial communication system comprising: communication control means for controlling communication; and slave communication means connected to the communication control means via a communication line for transmitting and receiving data to and from the communication control means. In the control method for a communication system, a holding step of holding transmission data from the communication control unit in a first storage unit of the communication control unit; a transmission step of transmitting the transmission data to the child communication unit; A data storage step of storing data in a third storage means of the child communication means, a data output step of outputting data of the third storage means, and a data communication step of transmitting data stored in the third storage means to the child communication means Receiving from the means to the communication control means, storing the received data from the slave communication means in the second storage means of the communication control means, The communication control means includes a comparison step of comparing data of the first storage means and data of the second storage means, and a comparison result output step of outputting the comparison result, wherein the transmission step and the reception A control method for a synchronous serial communication system, wherein the steps are executed successively, the comparison step is executed, and the comparison result is output.
【請求項6】 通信の制御を行う通信制御手段と、前記
通信制御手段と通信ラインを介して接続され前記通信制
御手段との間でデータの送受信を行う子通信手段とを備
えた同期式シリアル通信システムにおいて、 前記通信制御手段は、送信データを保持する第1の記憶
手段と、前記通信手段からの受信データを格納する第2
の記憶手段と、前記第1の記憶手段のデータと前記第2
の記憶手段のデータとの比較を行う比較手段と、該比較
手段による比較結果が一致した場合にラッチ信号を生成
するラッチ信号発生手段を備え、 前記子通信手段は、前記通信制御手段からの受信データ
を保持する第3の記憶手段と、前記第3の記憶手段のデ
ータを出力するドライブ手段とを備え、 前記通信制御手段は、前記子通信手段に対して送信動作
と受信動作とを連続して行い、前記比較手段にて前記第
1の記憶手段のデータと前記第2の記憶手段のデータと
の比較を行い、その比較結果を出力するとともに、比較
結果が一致した場合に前記ラッチ信号発生手段により前
記ドライブ手段に前記ラッチ信号を送出し、前記第3の
記憶手段のデータを出力させることを特徴とする同期式
シリアル通信システム。
6. A synchronous serial communication system comprising: communication control means for controlling communication; and slave communication means connected to the communication control means via a communication line and transmitting and receiving data to and from the communication control means. In the communication system, the communication control unit includes a first storage unit that stores transmission data, and a second storage unit that stores reception data from the communication unit.
Storage means, the data in the first storage means and the second
And a latch signal generating means for generating a latch signal when the result of comparison by the comparing means matches, and wherein the slave communication means receives data from the communication control means. A third storage unit for holding data; and a drive unit for outputting data from the third storage unit. The communication control unit continuously performs a transmission operation and a reception operation with respect to the child communication unit. The comparison means compares the data in the first storage means with the data in the second storage means, outputs the comparison result, and generates the latch signal when the comparison result matches. Means for transmitting said latch signal to said drive means to output data of said third storage means.
【請求項7】前記通信制御手段は、前記第1記憶手段の
データ及び前記第2の記憶手段のデータをそれぞれ送信
及び受信するための第1のシフトレジスタを有し、前記
子通信手段は、前記第3の記憶手段のデータを送信及び
受信するための第2のシフトレジスタを有することを特
徴とする請求項6記載の同期式シリアル通信システム。
7. The communication control means has a first shift register for transmitting and receiving data of the first storage means and data of the second storage means, respectively, and the child communication means comprises: 7. The synchronous serial communication system according to claim 6, further comprising a second shift register for transmitting and receiving data of said third storage means.
【請求項8】 前記通信ラインに複数の前記子通信手段
が接続され、前記通信制御手段は指定する前記子通信手
段と通信を行うことを特徴とする請求項6記載の同期式
シリアル通信システム。
8. The synchronous serial communication system according to claim 6, wherein a plurality of said child communication means are connected to said communication line, and said communication control means communicates with said designated child communication means.
【請求項9】 前記ラッチ信号発生手段と前記ドライブ
手段とは信号線により接続されていることを特徴とする
請求項6の同期式シリアル通信システム。
9. The synchronous serial communication system according to claim 6, wherein said latch signal generation means and said drive means are connected by a signal line.
【請求項10】 通信の制御を行う通信制御手段と、前
記通信制御手段と通信ラインを介して接続され前記通信
制御手段との間でデータの送受信を行う子通信手段とを
備えた同期式シリアル通信システムの制御方法におい
て、 前記通信制御手段からの送信データを前記通信制御手段
の第1の記憶手段に保持する保持ステップと、前記送信
データを前記子通信手段に送信する送信ステップと、該
送信データを前記通信手段の第3の記憶手段に格納する
格納ステップと、前記第3の記憶手段のデータを出力す
るデータ出力ステップと、前記第3の記憶手段に格納さ
れたデータを前記子通信手段から前記通信制御手段に受
信する受信ステップと、前記子通信手段からの受信デー
タを前記通信制御手段の第2の記憶手段に格納する格納
ステップと、前記通信制御手段において前記第1の記憶
手段のデータと前記第2の記憶手段のデータとの比較を
行う比較ステップと、該比較結果が一致した場合にラッ
チ信号を生成するラッチ信号発生ステップとを備え、 前記送信ステップと前記受信ステップとを連続して実行
して、前記比較ステップを実行し、その比較結果を出力
するとともに、比較結果が一致した場合に前記ラッチ信
号発生ステップにより前記ラッチ信号を発生して、前記
データ出力ステップで前記第3の記憶手段のデータを出
力させることを特徴とする同期式シリアル通信システム
の制御方法。
10. A synchronous serial communication system comprising: communication control means for controlling communication; and slave communication means connected to the communication control means via a communication line and for transmitting and receiving data to and from the communication control means. In the control method for a communication system, a holding step of holding transmission data from the communication control unit in a first storage unit of the communication control unit; a transmission step of transmitting the transmission data to the child communication unit; A storing step of storing data in a third storage means of the communication means, a data output step of outputting data of the third storage means, and a step of transmitting data stored in the third storage means to the child communication means Receiving the data from the slave communication means in the second storage means of the communication control means; The communication control means includes a comparison step of comparing data of the first storage means with data of the second storage means, and a latch signal generation step of generating a latch signal when the comparison results match. Executing the transmitting step and the receiving step successively, executing the comparing step, outputting the comparison result, and generating the latch signal by the latch signal generating step when the comparison result matches. And outputting the data of the third storage means in the data output step.
【請求項11】 通信の制御を行う通信制御手段と、前
記通信制御手段と通信ラインを介して接続され前記通信
制御手段との間でデータの送受信を行う子通信手段とを
備えた同期式シリアル通信システムにおいて、 前記通信制御手段は、送信データを保持する第1の記憶
手段と、前記通信手段からの受信データを格納する第2
の記憶手段と、前記第1の記憶手段のデータと前記第2
の記憶手段のデータとの比較を行う比較手段と、該比較
手段による比較結果が一致した場合にラッチ信号を生成
する第1のラッチ信号発生手段を備え、 前記子通信手段は、前記通信制御手段からの受信データ
を保持する第3の記憶手段と、前記第3の記憶手段のデ
ータを出力するドライブ手段と、前記通信制御手段から
のデータの送信終了後にラッチ信号を生成し前記ドライ
ブ手段に対して送出する第2のラッチ信号発生手段と、
外部からラッチ信号を入力するラッチ信号入力手段と、
前記第2のラッチ信号発生手段からのラッチ信号又は前
記ラッチ信号入力手段からのラッチ信号を選択するラッ
チ信号選択手段とを備えることを特徴とする同期式シリ
アル通信システム。
11. A synchronous serial communication system comprising: communication control means for controlling communication; and slave communication means connected to the communication control means via a communication line for transmitting and receiving data to and from the communication control means. In the communication system, the communication control unit includes a first storage unit that stores transmission data, and a second storage unit that stores reception data from the communication unit.
Storage means, the data in the first storage means and the second
And a first latch signal generation unit that generates a latch signal when the comparison result by the comparison unit matches, the child communication unit includes the communication control unit. A storage unit for holding data received from the communication unit, a drive unit for outputting data from the third storage unit, and a latch signal generated after the data transmission from the communication control unit is completed. Second latch signal generating means for transmitting
Latch signal input means for inputting a latch signal from outside;
And a latch signal selecting means for selecting a latch signal from the second latch signal generating means or a latch signal from the latch signal input means.
【請求項12】前記通信制御手段は、前記第1記憶手段
のデータ及び前記第2の記憶手段のデータをそれぞれ送
信及び受信するための第1のシフトレジスタを有し、前
記子通信手段は、前記第3の記憶手段のデータを送信及
び受信するための第2のシフトレジスタを有することを
特徴とする請求項11記載の同期式シリアル通信システ
ム。
12. The communication control means has a first shift register for transmitting and receiving data of the first storage means and data of the second storage means, respectively, and the child communication means comprises: 12. The synchronous serial communication system according to claim 11, further comprising a second shift register for transmitting and receiving data of said third storage means.
【請求項13】 前記通信ラインに複数の前記子通信手
段が接続され、前記通信制御手段は指定する前記子通信
手段と通信を行うことを特徴とする請求項11記載の同
期式シリアル通信システム。
13. The synchronous serial communication system according to claim 11, wherein a plurality of said child communication means are connected to said communication line, and said communication control means communicates with said designated child communication means.
【請求項14】 前記通信制御手段は、前記比較手段に
て前記第1の記憶手段のデータと前記第2の記憶手段の
データとの比較を行い、その比較結果を出力することを
特徴とする請求項11記載の同期式シリアル通信システ
ム。
14. The communication control means, wherein the comparison means compares the data in the first storage means with the data in the second storage means, and outputs a result of the comparison. The synchronous serial communication system according to claim 11.
【請求項15】 前記第1のラッチ信号発生手段と前記
ラッチ信号入力手段とは信号線により接続され、前記ラ
ッチ選択手段によって前記ラッチ信号入力手段からのラ
ッチ信号が選択された場合、前記比較手段による比較結
果が一致したときに前記第1のラッチ信号発生手段から
前記ドライブ手段にラッチ信号を送出し、前記第3の記
憶手段のデータを出力することを特徴とする請求項11
記載の同期式シリアル通信システム。
15. The first latch signal generating means and the latch signal input means are connected by a signal line, and when the latch signal from the latch signal input means is selected by the latch selecting means, the comparing means. 12. A latch signal is sent from the first latch signal generation means to the drive means when the comparison result of the first and second latch signals matches, and data of the third storage means is output.
A synchronous serial communication system as described.
【請求項16】 前記ラッチ選択手段によって前記第2
のラッチ信号発生手段からのラッチ信号が選択された場
合、前記通信制御手段からのデータの送信終了後に前記
第2のラッチ信号発生手段によりラッチ信号を生成し前
記ドライブ手段に対して送出し、前記ドライブ手段は、
前記ラッチ信号に応じて前記第3の記憶手段のデータを
出力することを特徴とする請求項11記載の同期式シリ
アル通信システム。
16. The second circuit according to claim 16, wherein
When the latch signal from the latch signal generation means is selected, after the data transmission from the communication control means is completed, a latch signal is generated by the second latch signal generation means and transmitted to the drive means, The drive means
12. The synchronous serial communication system according to claim 11, wherein data of said third storage means is output according to said latch signal.
【請求項17】 前記通信制御手段は、前記子通信手段
に対して送信動作と受信動作とを連続して行い、前記比
較手段にて前記第1の記憶手段のデータと前記第2の記
憶手段のデータとの比較を行い、その比較結果を出力す
ることを特徴とする請求項11記載の同期式シリアル通
信システム。
17. The communication control means continuously performs a transmission operation and a reception operation with respect to the child communication means, and uses the comparison means to store the data in the first storage means and the second storage means. 12. The synchronous serial communication system according to claim 11, wherein the synchronous serial communication system compares the data with the data of (1) and outputs the comparison result.
【請求項18】 前記通信制御手段は、前記子通信手段
に対して送信動作と受信動作とを連続して行う動作を選
択する動作選択手段を備え、前記送信動作と受信動作を
連続して行う動作を選択しない場合は、前記比較手段の
作動を禁止することを特徴とする請求項11記載の同期
式シリアル通信システム。
18. The communication control unit includes an operation selection unit that selects an operation of continuously performing a transmission operation and a reception operation with respect to the child communication unit, and performs the transmission operation and the reception operation continuously. 12. The synchronous serial communication system according to claim 11, wherein when no operation is selected, the operation of the comparing means is prohibited.
【請求項19】 通信の制御を行う通信制御手段と、前
記通信制御手段と通信ラインを介して接続され前記通信
制御手段との間でデータの送受信を行う子通信手段とを
備えた同期式シリアル通信システムの制御方法におい
て、 前記通信制御手段からの送信データを前記通信制御手段
の第1の記憶手段に保持する保持ステップと、前記送信
データを前記子通信手段に送信する送信ステップと、該
送信データを前記子通信手段の第3の記憶手段に格納す
る格納ステップと、前記第3の記憶手段のデータを出力
するデータ出力ステップと、前記第3の記憶手段に格納
されたデータを前記子通信手段から前記通信制御手段に
受信する受信ステップと、前記子通信手段からの受信デ
ータを前記通信制御手段の第2の記憶手段に格納する格
納ステップと、前記通信制御手段において前記第1の記
憶手段のデータと前記第2の記憶手段のデータとの比較
を行う比較ステップと、該比較結果が一致した場合にラ
ッチ信号を生成する第1のラッチ信号発生ステップと、
前記通信制御手段からのデータの送信終了後にラッチ信
号を生成し前記第3の記憶手段のデータを出力させる第
2のラッチ信号発生ステップと、外部からラッチ信号を
入力するラッチ信号入力ステップと、前記第2のラッチ
信号発生ステップにより発生されるラッチ信号又は前記
ラッチ信号入力ステップに入力されるラッチ信号を選択
するラッチ信号選択ステップとを備えることを特徴とす
る同期式シリアル通信システムの制御方法。
19. A synchronous serial communication system comprising: communication control means for controlling communication; and slave communication means connected to the communication control means via a communication line and configured to transmit and receive data to and from the communication control means. In the control method for a communication system, a holding step of holding transmission data from the communication control unit in a first storage unit of the communication control unit; a transmission step of transmitting the transmission data to the child communication unit; A data storage step of storing data in a third storage means of the child communication means, a data output step of outputting data of the third storage means, and a data communication step of transmitting data stored in the third storage means to the child communication means Receiving from the means to the communication control means, storing the received data from the slave communication means in the second storage means of the communication control means, A comparing step of comparing the data of the first storage means with the data of the second storage means in the communication control means; and generating a first latch signal for generating a latch signal when the comparison results match. Steps and
A second latch signal generating step of generating a latch signal after the transmission of data from the communication control means and outputting the data of the third storage means, a latch signal inputting step of externally inputting a latch signal, A latch signal selection step of selecting a latch signal generated by a second latch signal generation step or a latch signal input to the latch signal input step.
JP10181381A 1998-06-15 1998-06-15 Synchronous serial communication system and control method therefor Pending JP2000003312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10181381A JP2000003312A (en) 1998-06-15 1998-06-15 Synchronous serial communication system and control method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10181381A JP2000003312A (en) 1998-06-15 1998-06-15 Synchronous serial communication system and control method therefor

Publications (1)

Publication Number Publication Date
JP2000003312A true JP2000003312A (en) 2000-01-07

Family

ID=16099745

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10181381A Pending JP2000003312A (en) 1998-06-15 1998-06-15 Synchronous serial communication system and control method therefor

Country Status (1)

Country Link
JP (1) JP2000003312A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100439030B1 (en) * 2002-04-23 2004-07-03 삼성전자주식회사 A controller circuit for chips which are drive by serial communication
WO2014185396A1 (en) * 2013-05-15 2014-11-20 株式会社ダイヘン Welding apparatus and welding apparatus communication method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100439030B1 (en) * 2002-04-23 2004-07-03 삼성전자주식회사 A controller circuit for chips which are drive by serial communication
WO2014185396A1 (en) * 2013-05-15 2014-11-20 株式会社ダイヘン Welding apparatus and welding apparatus communication method
KR20140135099A (en) * 2013-05-15 2014-11-25 가부시키가이샤 다이헨 Welding apparatus and communication method of welding apparatus
CN104162728A (en) * 2013-05-15 2014-11-26 株式会社大亨 Welding apparatus and welding apparatus communication method
JP2014240089A (en) * 2013-05-15 2014-12-25 株式会社ダイヘン Welding device and communication method of the welding device
KR102140347B1 (en) * 2013-05-15 2020-07-31 가부시키가이샤 다이헨 Welding apparatus and communication method of welding apparatus

Similar Documents

Publication Publication Date Title
US4984190A (en) Serial data transfer system
TWI507000B (en) Interface method for data tx/rx system using data stream
US4954983A (en) Data driver for multiple mode buffered processor-peripheral data transfer with selective return of data to processor
KR100778114B1 (en) Communication method to improve communication error and electron device to be applied the method
CN109154925A (en) Communication equipment, communication means, program and communication system
US5752184A (en) Remote control signal receiving circuit capable of processing a signal from a plurality of kinds of remote control transmitter
JP2000003312A (en) Synchronous serial communication system and control method therefor
JPH0713880A (en) Method for transmission of information to bus
JPH11502643A (en) Error recognition and elimination in serial data bus systems
JP2000324896A (en) Data transmission system and image forming apparatus
JP2000231539A (en) Data transfer system and data transfer method
JPH11167548A (en) Data transmission system
KR19990026343A (en) Adaptive Interface Circuitry for Serial and Serial Data Transmission
JPH10207834A (en) Serial input/output circuit
JP2979814B2 (en) Serial data transfer device
JPH10198524A (en) Hard disk controller
US20030095565A1 (en) Serial communication apparatus
JPH1174893A (en) Data communication equipment and its communication method
JPH1188381A (en) Communication system, usb function device, communication system control method and medium recording communication condition display program
JP2806645B2 (en) Scan path error detection circuit
JPH09179948A (en) Ic card interface device
JP2001016238A (en) Multiplex communication system
JP2000151748A (en) Device connection recognition method for communication system
JP2616490B2 (en) Shared data storage method
JP2003143898A (en) Serial communication method