[go: up one dir, main page]

JPH1174871A - Communication system and method - Google Patents

Communication system and method

Info

Publication number
JPH1174871A
JPH1174871A JP23417797A JP23417797A JPH1174871A JP H1174871 A JPH1174871 A JP H1174871A JP 23417797 A JP23417797 A JP 23417797A JP 23417797 A JP23417797 A JP 23417797A JP H1174871 A JPH1174871 A JP H1174871A
Authority
JP
Japan
Prior art keywords
communication
data
predetermined data
transmitted
communication control
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
JP23417797A
Other languages
Japanese (ja)
Inventor
Takashi Soya
崇 征矢
Masaaki Moriya
正明 森谷
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 JP23417797A priority Critical patent/JPH1174871A/en
Publication of JPH1174871A publication Critical patent/JPH1174871A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PROBLEM TO BE SOLVED: To attain data transmission reception with higher accuracy by detecting a communication error even when a noise is intruded on a signal line between a communication control means and each communication means resulting in causing the communication error. SOLUTION: First prescribed data sent from a communication controller are stored in a shift register 6 and then set to a data setting register 14 and second prescribed data sent from the communication controller are stored in the shift register 6 and a comparator 15 compares the data in the shift register 6 with the data in the data setting register 14 and when they are dissident, the comparator 15 detects it as a communication error.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は通信システムおよび
方法に関する。
The present invention relates to communication systems and methods.

【0002】[0002]

【従来の技術】従来、図1に示す形式のシリアル通信シ
ステムが考案されている。該シリアル通信システムは通
信コントローラ101と適数個のセンサ106が接続さ
れた通信IC103と、モータ104を駆動するモータ
ドライバ105が接続された通信IC102とが、電源
供給ラインとしての+5V、グランドGND、同期クロ
ックラインCLK、シリアル通信のためのデータライン
DATAの計4本からなる一つの信号線を介してカスケ
ード接続されている。
2. Description of the Related Art Conventionally, a serial communication system of the type shown in FIG. 1 has been devised. In the serial communication system, a communication IC 103 to which a communication controller 101 and an appropriate number of sensors 106 are connected, and a communication IC 102 to which a motor driver 105 for driving a motor 104 are connected include +5 V as a power supply line, ground GND, They are cascaded via a single signal line consisting of a total of four synchronous clock lines CLK and data lines DATA for serial communication.

【0003】このようなシリアル通信システムを、例え
ば複写機等の画像形成装置内に内蔵して使用する場合、
図2に示すように、通信コントローラ201と、装置内
の適所に配置されたモータ206および207を駆動す
るモータドライバ208および209が接続された通信
IC202および203と、適数個のセンサ210〜2
11が接続された通信IC204〜205とを1つの信
号線を介して接続し、これら通信コントローラ201と
各通信IC202〜205との間でデータ通信を行う。
この場合、これら通信IC202〜205の装置内の配
置位置とは無関係に各通信ICに固有のアドレス(アド
レス0、アドレス1、アドレス2、……)を指定するこ
とにより、各アドレスの通信IC202〜205と通信
コントローラ201との間で送受信通信が行われる。そ
して、各通信ICに同時あるいは所定のシリアル伝送速
度以上に頻繁にアクセスするときは、何れかの通信フレ
ームにおいてデータの送受信に遅延が生じるため、その
対策として通信コントローラ201に対する通信の優先
頓位を設けて通信を行うことが従来より知られている。
すなわち、図2に示すように、通信アドレスの小さい順
に通信の優先順位を高くして(例えばアドレス0を最高
優先順位として、アドレス1、アドレス2…の順番で優
先順位を付して)、これら通信IC202〜205と通
信コントローラ201とを接続することにより、遅延が
最も許されない通信IC(この場合は通信IC202)
を最高優先順位に指定して通信を行っている。
When such a serial communication system is used by being built in an image forming apparatus such as a copying machine, for example,
As shown in FIG. 2, a communication controller 201, communication ICs 202 and 203 to which motor drivers 208 and 209 for driving motors 206 and 207 disposed at appropriate positions in the apparatus are connected, and an appropriate number of sensors 210 to 2
11 is connected via a single signal line to the communication ICs 204 to 205 to perform data communication between the communication controller 201 and each of the communication ICs 202 to 205.
In this case, a unique address (address 0, address 1, address 2,...) Is specified for each communication IC irrespective of the arrangement position of these communication ICs 202 to 205 in the device, so that the communication ICs 202 to 205 of each address are designated. Transmission and reception communication is performed between the communication controller 205 and the communication controller 201. When the communication ICs are accessed simultaneously or frequently at a speed higher than a predetermined serial transmission rate, a delay occurs in data transmission / reception in any communication frame. As a countermeasure, priority of communication with the communication controller 201 is reduced. It is conventionally known to provide and perform communication.
That is, as shown in FIG. 2, the priority of communication is increased in ascending order of communication address (for example, address 0 is set as the highest priority, and priority is given in the order of address 1, address 2,...) By connecting the communication ICs 202 to 205 and the communication controller 201, a communication IC that allows the least delay (in this case, the communication IC 202)
Communication is performed with the highest priority specified.

【0004】上記シリアル通信システムの動作の概略を
説明する。モータ206を回転するため所定の相データ
を送信する送信動作を行う場合、通信コントローラ20
1はCLKラインに所定の周波数のパルス列を送出す
る。そのパルス列に同期して通信コントローラ201お
よび通信IC202〜205は図3に示す送信データフ
ォーマットによって処理を行う。
An outline of the operation of the serial communication system will be described. When performing a transmission operation of transmitting predetermined phase data to rotate the motor 206, the communication controller 20
1 transmits a pulse train of a predetermined frequency to the CLK line. The communication controller 201 and the communication ICs 202 to 205 perform processing according to the transmission data format shown in FIG. 3 in synchronization with the pulse train.

【0005】まず通信コントローラ201から送出され
るCLKの最初の立ち下がりで通信IC202〜205
は通信開始を認識し、次のCLKの立ち上がりで通信コ
ントローラ201によってDATAラインにスタートビ
ットの“L”が送出されているか否かを確認する。次の
CLKの立ち下がりのデータによって通信IC202〜
205は送信動作(“L”)を行うか受信動作
(“H”)を行うかを判別する。次の2クロック分のデ
ータはアドレスビットであり、通信コントローラ201
がDATAライン上に指定のアドレスを送出し、通信I
C202〜205はこのアドレスが自分のアドレスであ
った場合、次のCLKから送出されるデータを取り込
む。前記指定された通信ICはCLKの立ち上がりから
DATAライン上の計8ビットのデータを取り込む。次
のCLKの立ち下がりで通信コントローラ201から送
出されるパリティデータを、前記指定された通信ICは
CLKの立ち上がりで取り込み、前記データから自ら計
算したパリティデータと比較する。パリティが一致して
いれば前記データを有効とし、通信コントローラ201
にACK(“L”)を送出し、パリティが一致しない場
合は通信コントローラ201にACK(”H”)を送出
し、前記データを無効とする。通信コントローラ201
はCLKの立ち上がりでACKを受け取り、ACKが
“L”であれば次のCLKの立ち下がりでストップビッ
ト“L”を送出し、ACKが“H”であれば次のCLK
の立ち下がりでストップビット“H”を送出する。前記
指定された通信ICは、CLKの立ち上がりでストップ
ビットを認識し、ストップビットが“L”であればデー
タを出力し、ストップビットが“H”であれはデータを
出力しない。以上のようなシーケンスで通信IC202
に対し通信を行いモータ206を回転させる。
First, at the first falling edge of CLK sent from the communication controller 201, the communication ICs 202 to 205
Recognizes the start of communication and confirms whether or not the communication controller 201 has transmitted the start bit “L” to the DATA line at the next rising edge of CLK. The communication IC 202 to the next falling edge of CLK
205 determines whether to perform the transmission operation (“L”) or the reception operation (“H”). The next two clocks of data are address bits, and the communication controller 201
Sends the specified address on the DATA line,
When this address is its own address, the C 202 to 205 take in the data transmitted from the next CLK. The specified communication IC takes in a total of 8 bits of data on the DATA line from the rising edge of CLK. The designated communication IC captures the parity data sent from the communication controller 201 at the next falling edge of CLK at the rising edge of CLK, and compares it with the parity data calculated by itself from the data. If the parities match, the data is validated and the communication controller 201
ACK ("L") is transmitted to the communication controller 201 if the parities do not match, and the data is invalidated. Communication controller 201
Receives an ACK at the rising edge of CLK, sends out a stop bit “L” at the falling edge of the next CLK if ACK is “L”, and sends the next CLK if ACK is “H”.
, A stop bit “H” is transmitted. The specified communication IC recognizes the stop bit at the rising edge of CLK, outputs data if the stop bit is "L", and does not output data if the stop bit is "H". In the above sequence, the communication IC 202
And the motor 206 is rotated.

【0006】通信IC204に接続されるセンサ210
の値を読み取る受信動作について説明する。受信動作を
行う場合、通信コントローラ201はCLKラインに所
定の周波数のパルス列を送出する。そのパルス列に同期
して通信コントローラ201および通信IC202〜2
05は図3に示す受信データフォーマットによって処理
を行う。
[0006] Sensor 210 connected to communication IC 204
The reception operation for reading the value of the value will be described. When performing a receiving operation, the communication controller 201 sends a pulse train of a predetermined frequency to the CLK line. The communication controller 201 and the communication ICs 202 to 202-2 are synchronized with the pulse train.
05 performs processing according to the received data format shown in FIG.

【0007】まず通信コントローラ201から送出され
るCLKの最初の立ち下がりで通信IC202〜205
は通信開始を認識し、次のCLKの立ち上がりで通信コ
ントローラ201によってDATAラインにスタートビ
ットの“L”が送出されているか否かを確認する。次の
CLKの立ち下がりのデータによって通信IC202〜
205は送信動作(”L”)を行うか受信動作
(“H”)を行うかを判別する。次の2クロック分のデ
ータはアドレスビットであり、通信コントローラ201
がDATAライン上に指定のアドレスを送出する。通信
IC202〜205はこのアドレスを取り込み自分のア
ドレスであった場合、次のCLKからセンサデータを通
信コントローラ201に送出する。前記指定された通信
ICはCLKの立ち下がりからDATAライン上へ計8
ビットのデータを送出し、通信コントローラ201はC
LKの立ち下がりで前記データを取り込む。通信コント
ローラ201は次のCLKの立ち上がりで、前記指定さ
れた通信ICから送出されるパリティデータを取り込
み、前記データから自ら計算したパリティデータと比較
する。パリティが一致していれば前記データを有効と
し、パリティが一致しない場合は前記データを無効とす
る。以上のようなシーケンスで通信IC204に対し通
信を行いセンサ210の値を読み込む。
First, at the first falling edge of the CLK transmitted from the communication controller 201, the communication ICs 202 to 205
Recognizes the start of communication and confirms whether or not the communication controller 201 has transmitted the start bit “L” to the DATA line at the next rising edge of CLK. The communication IC 202 to the next falling edge of CLK
205 determines whether to perform the transmission operation ("L") or the reception operation ("H"). The next two clocks of data are address bits, and the communication controller 201
Sends the specified address on the DATA line. The communication ICs 202 to 205 take in this address and send the sensor data to the communication controller 201 from the next CLK if it is its own address. The specified communication IC is placed on the DATA line from the falling edge of CLK for a total of 8
Bit data is transmitted, and the communication controller 201
The data is taken in at the fall of LK. At the next rising edge of CLK, the communication controller 201 takes in the parity data transmitted from the specified communication IC, and compares it with the parity data calculated by itself from the data. If the parities match, the data is valid. If the parities do not match, the data is invalid. Communication is performed with the communication IC 204 in the above sequence, and the value of the sensor 210 is read.

【0008】このようなシステム構成を用いると、装置
全体の各所に配置された多数のモータやセンサを4本の
カスケード接続された信号ラインによって動作させた
り、情報を読み取ることが出来る。
With such a system configuration, it is possible to operate a large number of motors and sensors arranged in various parts of the entire apparatus by four cascade-connected signal lines and to read information.

【0009】本例では、1アドレスを8ビットとし、4
アドレス分の情報を通信コントローラと通信IC間でや
り取りする構成を説明したが、通信のデータフォーマッ
トの取り決めにより、それらは適当に最適化した構成に
変更できる。
In this example, one address is set to 8 bits, and 4
The configuration for exchanging the information for the address between the communication controller and the communication IC has been described. However, the configuration can be changed to an appropriately optimized configuration by deciding the communication data format.

【0010】このようなシリアル通信システムを使わな
い場合、従来、複写機装置内の各所に多数設置されるフ
ォトインタラプタなどの2値センサは電源、GNDライ
ンと共に、直接ホストコントローラのマイクロコンピュ
ータのポート入力と接続されることとなり膨大なワイヤ
ーハーネスがホストコントローラから放射状に配線さ
れ、装置組立て上の作業性悪化、組立信頼性の悪化、組
立時およびサービス時のハーネス損傷危険の増大、重量
の増大、ハーネスコストの増大等の問題が指摘されてい
た。
When such a serial communication system is not used, conventionally, a large number of binary sensors, such as photointerrupters, installed in various places in a copying machine, together with a power supply and a GND line, are directly connected to a port input of a microcomputer of a host controller. A huge amount of wire harness is wired radially from the host controller, and the workability in assembling the equipment, the reliability of the assembly, the risk of harness damage during assembly and service, the weight increase, the harness Problems such as an increase in cost were pointed out.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、従来の
ようなシリアル通信システムでは画像形成装置内外に長
いケーブルを這い回すため、ノイズによる通信エラーが
生じることが考えられる。例えば、通信中にクロックラ
インにノイズが重畳した場合、通信ICのカウンタがず
れてしまい、通信エラーとなってしまう。この通信エラ
ーが多発した場合、通信速渡の低下やシステムのダウン
が起こる場合がある。
However, in a conventional serial communication system, since a long cable runs around the inside and outside of the image forming apparatus, a communication error due to noise may occur. For example, when noise is superimposed on the clock line during communication, the counter of the communication IC shifts, resulting in a communication error. If this communication error occurs frequently, the communication speed may be reduced or the system may be down.

【0012】そこで本発明の目的は、以上のような問題
を解消した通信システムおよび方法を提供することにあ
る。
It is an object of the present invention to provide a communication system and a method which solve the above problems.

【0013】[0013]

【課題を解決するための手段】上記目的を達成するた
め、請求項1にかかる発明は、1つのデータライン上に
時系列的に所定のシリアルデータを送受信するシリアル
通信の制御を行う通信制御手段と、前記通信制御手段に
接続され、前記通信制御手段との間でシリアルデータの
送受信を行う複数の通信手段と、を具えた同期式のシリ
アル通信システムであって、前記通信手段は、前記通信
制御手段から送信された所定データを保持する第1保持
手段と、該第1保持手段に保持されたデータを保持する
第2保持手段と、前記通信制御手段から送信され前記第
1保持手段に保持された1回目の所定データが前記第2
保持手段に保持され、次いで前記通信制御手段から送信
された2回目の所定データが前記第1保持手段に保持さ
れた後、前記第1および第2保持手段内のデータの一致
比較を行う比較手段とを具えたことを特徴とする。
In order to achieve the above object, according to the present invention, there is provided a communication control means for controlling serial communication for transmitting and receiving predetermined serial data in a time series on one data line. And a plurality of communication means connected to the communication control means for transmitting and receiving serial data to and from the communication control means, wherein the communication means comprises: First holding means for holding predetermined data transmitted from the control means, second holding means for holding data held in the first holding means, and holding in the first holding means sent from the communication control means The first predetermined data obtained is the second predetermined data.
A comparing unit that compares the data in the first and second holding units after the second predetermined data transmitted from the communication control unit is stored in the first holding unit; It is characterized by having.

【0014】また請求項2にかかる発明は、請求項1に
おいて、前記通信手段は、前記通信制御手段から送信さ
れ前記第1保持手段に保持された所定データから計算し
たパリティと当該保持された所定データに続いて前記通
信制御手段から送信されたパリティとの一致比較を行う
パリティチェック手段と、該パリティチェック手段の一
致比較の結果に応答した制御信号を前記通信制御手段に
送信する制御信号出力手段とを有することを特徴とす
る。
According to a second aspect of the present invention, in the first aspect, the communication means calculates a parity calculated from predetermined data transmitted from the communication control means and held in the first holding means, Parity check means for performing a match comparison with the parity transmitted from the communication control means following data, and control signal output means for transmitting a control signal responsive to a result of the match comparison of the parity check means to the communication control means And characterized in that:

【0015】さらに請求項3にかかる発明は、請求項2
において、前記制御信号出力手段は、前記パリティチェ
ック手段による前記通信制御手段から送信され前記第1
保持手段に保持された1回目の所定データから計算した
パリティと当該1回目の所定データに続いて前記通信制
御手段から送信されたパリティとの一致比較の結果、一
致した場合は、2回目の所定データの送信を求める信号
を、不一致の場合は、1回目の所定データの再送信を求
める信号を前記通信制御手段に送信することを特徴とす
る。
[0015] Further, the invention according to claim 3 is based on claim 2.
Wherein the control signal output means transmits the first signal transmitted from the communication control means by the parity check means.
As a result of the coincidence comparison between the parity calculated from the first predetermined data held in the holding unit and the parity transmitted from the communication control unit subsequent to the first predetermined data, if they match, the second predetermined A signal for requesting data transmission is transmitted to the communication control unit if the signal does not match, and a signal for requesting retransmission of the first predetermined data is transmitted.

【0016】さらに請求項4にかかる発明は、請求項1
から3のいずれかにおいて、前記制御信号出力手段は、
前記パリティチェック手段による前記通信制御手段から
送信され前記第1保持手段に保持された2回目の所定デ
ータから計算したパリティと当該2回目の所定データに
続いて前記通信制御手段から送信されたパリティとの一
致比較の結果、および前記パリティチェック手段の一致
比較の結果の少なくとも一方が不一致の場合は、1回目
の所定データからの送信の再履行を求める信号を、双方
が一致の場合は、データ受信が成功したことを示す信号
を前記通信制御手段に送信することを特徴とする。
Further, the invention according to claim 4 is the invention according to claim 1.
In any one of 2 to 3, the control signal output means includes:
A parity calculated from the second predetermined data transmitted from the communication control unit and held in the first holding unit by the parity check unit, and a parity transmitted from the communication control unit following the second predetermined data. If at least one of the result of the match comparison of the parity check means and the result of the match comparison of the parity check means do not match, a signal for requesting re-execution of the transmission from the first predetermined data is received. Transmitting a signal indicating that the communication has been successful to the communication control means.

【0017】さらに請求項5にかかる発明は、請求項1
〜4のいずれかにおいて、前記第2保持手段内のデータ
を出力する出力手段をさらに有することを特徴とする。
Further, the invention according to claim 5 is based on claim 1.
In any one of the first to fourth aspects, an output unit for outputting data in the second holding unit is further provided.

【0018】さらに請求項6にかかる発明は、請求項1
〜5のいずれかの通信システムを画像形成装置内の情報
処理に適用したこと特徴とする。
Further, the invention according to claim 6 is the invention according to claim 1.
The communication system according to any one of (1) to (5) is applied to information processing in the image forming apparatus.

【0019】さらに請求項7にかかる発明は、通信制御
手段と、前記通信制御手段にカスケード接続された複数
の通信手段との間でデータライン上に時系列的に伝送さ
れるデータの送受信を行う通信方法において、前記通信
制御手段は前記の通信手段に1回目の所定データを送信
し、前記各通信手段は、前記送信された1回目の所定デ
ータを第1保持手段に保持した後第2保持手段に保持
し、次いで前記通信制御手段は前記通信手段に2回目の
所定データを送信し、前記各通信手段は、前記送信され
た2回目の所定データを前記第1保持手段に保持した
後、前記第1および第2保持手段内のデータの一致比較
を行うことを特徴とする。
According to a seventh aspect of the present invention, data transmitted in time series on a data line is transmitted and received between a communication control means and a plurality of communication means cascaded to the communication control means. In the communication method, the communication control unit transmits the first predetermined data to the communication unit, and each of the communication units stores the transmitted first predetermined data in the first storage unit and then stores the first predetermined data in the second storage unit. The communication control means transmits the second predetermined data to the communication means, and each of the communication means holds the transmitted second predetermined data in the first holding means. It is characterized in that the data in the first and second holding means are compared and matched.

【0020】さらに請求項8にかかる発明は、請求項7
において、前記通信手段は、前記通信制御手段から送信
され前記第1保持手段に保持された所定データから計算
したパリティと当該保持された所定データに続いて前記
通信制御手段から送信されたパリティとの一致比較を行
い、当該一致比較の結果に応答した制御信号を前記通信
制御手段に送信することを特徴とする。
[0020] The invention according to claim 8 is the invention according to claim 7.
In the communication means, the parity calculated from the predetermined data transmitted from the communication control means and held in the first holding means and the parity transmitted from the communication control means subsequent to the held predetermined data Match comparison is performed, and a control signal responsive to the result of the match comparison is transmitted to the communication control means.

【0021】さらに請求項9にかかる発明は、請求項8
において、前記通信手段は、前記通信制御手段から送信
され前記第1保持手段に保持された1回目の所定データ
から計算したパリティと当該1回目の所定データに続い
て前記通信制御手段から送信されたパリティとの一致比
較の結果、一致した場合は、2回目の所定データの送信
を求める信号を、不一致の場合は、1回目の所定データ
の再送信を求める信号を前記通信制御手段に送信するこ
とを特徴とする。
The invention according to claim 9 is the invention according to claim 8
In the communication means, the parity transmitted from the communication control means and calculated from the first predetermined data held in the first holding means, and the parity transmitted from the communication control means following the first predetermined data As a result of the parity comparison with the parity, if the two match, a signal for requesting the second transmission of the predetermined data is transmitted to the communication control means if the two do not match, and a signal for requesting retransmission of the first predetermined data is transmitted to the communication control means. It is characterized by.

【0022】さらに請求項10にかかる発明は、請求項
7〜9のいずれかにおいて、前記通信手段は、前記通信
制御手段から送信され前記第1保持手段に保持された2
回目の所定データから計算したパリティと当該2回目の
所定データに続いて前記通信制御手段から送信されたパ
リティとの一致比較の結果、および前記第1および第2
保持手段内のデータの一致比較の結果の少なくとも一方
が不一致の場合は、1回目の所定データからの送信の再
履行を求める信号を、双方が一致の場合は、データ受信
が成功したことを示す信号を前記通信制御手段に送信す
ることを特徴とする。
According to a tenth aspect of the present invention, in any one of the seventh to ninth aspects, the communication means transmits the second communication data transmitted from the communication control means and held in the first holding means.
A result of a match comparison between the parity calculated from the second predetermined data and the parity transmitted from the communication control unit subsequent to the second predetermined data; and the first and second parity data.
If at least one of the results of the data comparison in the holding means does not match, a signal requesting re-execution of transmission from the first predetermined data is indicated. If both match, it indicates that data reception was successful. A signal is transmitted to the communication control means.

【0023】[0023]

【発明の実施の形態】本実施形態は、上述したようなシ
リアル通信システムにおける各通信ICにおいて、通信
コントローラからの送信データを受信するレジスタの構
成及び通信フォーマットを改良したものであり、図4の
通信IC内部のレジスタの構成図及び図5の通信フォー
マットを参照しながら以下に説明する。
The present embodiment is an improvement of the configuration and communication format of a register for receiving transmission data from a communication controller in each communication IC in the serial communication system as described above. This will be described below with reference to the configuration diagram of the register inside the communication IC and the communication format of FIG.

【0024】図4において、1はカウンタで、従来例で
説明したCLKの最初の立ち下がりの次の立ち上がりか
ら順次カウントアップし、そのカウント値によって通信
コントローラからの送信データを通信ICが受信するフ
ォーマットにおけるステートが定められる。
In FIG. 4, reference numeral 1 denotes a counter which counts up sequentially from the rising edge of the first falling edge of the CLK described in the conventional example, and uses the count value to receive data transmitted from the communication controller by the communication IC. Is determined.

【0025】本実施形態では図5の通信フォーマットに
対応するためにカウンタ1のビット幅を5ビットとし、
カウント値18で信号(以下OVF)を出力する仕様と
なつている。そして、リセットパルス“H”が入力され
るまで、カウンタ1はカウント値を維持する。2は、こ
のOVF=“H”を受けてから所定時間経過後にカウン
タ1に対するリセットパルス“H”を出力するリセット
信号生成部である。3もカウンタ1と同じ仕様のカウン
タであって、そのOVF出力によって、1回目の送信フ
レーム(OVF=“H”)と2回目の送信フレーム(O
VF=“L”)を切り分ける。尚、4はタイミング補正
Dフリップフロップで、クロックの立ち上がりに同期し
てカウンタ3のOVFを出力する。カウンタ1と3は、
通信ICがデータ受信動作に入る前に、あらかじめリセ
ットフォーマットによって、カウントアップされオーバ
ーフロー状態となる。その後、カウンタ1はリセット信
号生成部2からのリセットパルスによってリセットさ
れ、通信コントローラから送出される最初のCLKの立
ち下がりを待つ。カウンタ3は1回目のデータ受信が終
了するまで、そのオーバーフロー状態を維持する。
In this embodiment, the bit width of the counter 1 is set to 5 bits in order to support the communication format shown in FIG.
It is designed to output a signal (hereinafter referred to as OVF) with a count value of 18. Then, the counter 1 maintains the count value until the reset pulse “H” is input. Reference numeral 2 denotes a reset signal generation unit that outputs a reset pulse “H” to the counter 1 after a lapse of a predetermined time after receiving OVF = “H”. 3 is a counter having the same specification as the counter 1, and the first transmission frame (OVF = "H") and the second transmission frame (O
VF = “L”). Reference numeral 4 denotes a timing correction D flip-flop, which outputs the OVF of the counter 3 in synchronization with the rise of the clock. Counters 1 and 3
Before the communication IC starts the data receiving operation, the communication IC counts up by a reset format in advance and enters an overflow state. Thereafter, the counter 1 is reset by the reset pulse from the reset signal generation unit 2, and waits for the first falling edge of the CLK transmitted from the communication controller. The counter 3 maintains its overflow state until the first data reception is completed.

【0026】カウンタ1のカウントアップに従つて、従
来例と同様に1回目のデータ受信が行われるが、その際
の双方向バッファ5を介して入力されるシリアルデータ
のシフトレジスタ6への書き込みは、カウンタ1のカウ
ンタ値とカウンタ3を介して送られてくるアドレスデー
タを基にアドレス検知レジスタ7がその通信ICのアド
レスとアドレスデー夕の一致を検知した時に出力する一
致信号“H”と、カウンタ1のカウント値を基に、イネ
ーブル信号生成部8で生成されるイネーブル信号“H”
によって、シフトレジスタ6への受信データの書き込み
が許可され、図5の1回目の送信フォーマッ卜に示した
タイミング(b7〜b0)で行われる。その後、パリテ
ィチェック部9において、図5の1回目の送信フォーマ
ットのPAのタイミングで通信コントローラから送出さ
れるパリティデータと、シフトレジスタ6のデータから
生成されたパリティとの一致比較が行われ、一致ならば
“H”を、不一致ならば“L“を出力する。その出力
は、Dフリップフロップ10で、CLKの立ち下がりに
よつてACK信号出力部11に入力される。
The first data reception is performed in accordance with the count-up of the counter 1 as in the conventional example. At this time, the serial data input through the bidirectional buffer 5 is written into the shift register 6. A match signal "H" output when the address detection register 7 detects a match between the address of the communication IC and the address data based on the counter value of the counter 1 and the address data sent via the counter 3; The enable signal “H” generated by the enable signal generator 8 based on the count value of the counter 1
Thereby, writing of the reception data into the shift register 6 is permitted, and the writing is performed at the timing (b7 to b0) shown in the first transmission format in FIG. After that, the parity check unit 9 compares the parity data transmitted from the communication controller at the timing of the PA of the first transmission format in FIG. 5 with the parity generated from the data in the shift register 6, and compares the parity data. If so, "H" is output, and if not, "L" is output. The output is input to the ACK signal output unit 11 by the D flip-flop 10 at the fall of CLK.

【0027】そして、ACK信号出力部11は、Dフリ
ップフロップ4のQ出力“H”によつて1回目の受信フ
レームであることと、アドレス検知レジスタ7の出力
“H”とカウンタ1のカウント値によって、ACK信号
の出力タイミングであることを検知し、Dフリップフロ
ップ10の出力が“H”ならばACK信号“L“を、D
フリップフロップ10の出力が“L”ならば、ACK信
号“H“を通信コントローラに送出する。この時、AC
K信号出力部11は双方向バッファ5のイネーブル端子
に“H”パルスを入力し、通信ICを送信モードにす
る。
The ACK signal output unit 11 determines that the received frame is the first reception frame by the Q output “H” of the D flip-flop 4, the output “H” of the address detection register 7 and the count value of the counter 1. Thus, it is detected that the output timing of the ACK signal is reached, and if the output of the D flip-flop 10 is “H”, the ACK signal “L”
If the output of the flip-flop 10 is "L", an ACK signal "H" is sent to the communication controller. At this time, AC
The K signal output unit 11 inputs an “H” pulse to the enable terminal of the bidirectional buffer 5, and sets the communication IC to the transmission mode.

【0028】通信コントローラは、ACK信号“L”を
受信すると、1回目の受信が誤動作することなく通信I
Cにおいて遂行されたとみなし、ストップビット“H”
を、図5の1回目の送信フオーマットのSPのタイミン
グで返信する。そして、ストップビット検知部12は、
カウンタ1のカウント値とDフリップフロップ4のQ出
力“H”を基に、“H”パルスを出力し、これをカウン
タ3のリセット端子が受けて、OVF=“L”となり、
2回目の送信フレームへと移行する。又、Dフリップフ
ロップ4のQ出力“H”とアドレス検知レジスタ7の出
力“H”とストップビット検知部12の出力“H”パル
スとによるANDゲート13の出力“H”パルスはデー
タ設定レジスタ14のイネーブル信号となり、クロック
の立ち上がりによってシフトレジスタ6のデータがデー
タ設定レジスタ14にラッチされる。
When the communication controller receives the ACK signal “L”, the first reception does not malfunction and the communication I
C, the stop bit "H"
Is returned at the timing of SP in the first transmission format in FIG. Then, the stop bit detection unit 12
Based on the count value of the counter 1 and the Q output “H” of the D flip-flop 4, an “H” pulse is output, which is received by the reset terminal of the counter 3, and OVF = “L”,
Shift to the second transmission frame. Also, the output “H” pulse of the AND gate 13 due to the Q output “H” of the D flip-flop 4, the output “H” of the address detection register 7, and the output “H” pulse of the stop bit detection unit 12 is converted to the data setting register 14. , And the data of the shift register 6 is latched by the data setting register 14 at the rise of the clock.

【0029】通信コントローラは、逆に、ACK“H”
を受信すると、1回目の受信で誤動作が通信ICにおい
て生じたことを検知し、ストップビット“L”を、図5
の1回目の送信フォーマットのSPのタイミングで返信
する。故に、ストップビット検知部12は“H”パルス
を出力しない為、カウンタ3のOVFは“H”を維持
し、1回目の送信フォーマットとしてのデータ通信がや
り直される。
On the contrary, the communication controller sets ACK “H”
Is received, it is detected that a malfunction has occurred in the communication IC in the first reception, and the stop bit “L” is set in FIG.
Is returned at the timing of the SP of the first transmission format. Therefore, since the stop bit detection unit 12 does not output the “H” pulse, the OVF of the counter 3 is maintained at “H”, and the data communication as the first transmission format is performed again.

【0030】2回目の送信フォーマットにおいては、パ
リティのチェックまでは、1回目の送信フォーマットと
同様に遂行されるが、ACK信号の出力に関して、デー
タ設定レジスタ14のデータと2回目に受信したシフト
レジスタ6のデータによるコンパレータ15の比較結果
(一致:“H”、不一致:“L”)が絡んでくる。即
ち、ACK信号出力部11は、Dフリップフロップ4の
Q出力“L”によつて、2回目の送信フオーマットであ
ることと、アドレス検知レジスタ7の出力“H”とカウ
ンタ1のカウント値によつて、ACK信号の出力タイミ
ングであることを検知し、Dフリップフロップ10とコ
ンパレータ15の出力が共に“H”(パリティOK、且
つ比較データ一致)の時だけ、ACK“L“を通信コン
トローラに送出し、どちらかが、”L“(パリティN
G、又は比較データ不一致)の時は、”H“を送出す
る。この時、ACK信号出力部11は1回目の送信フォ
ーマットと同様に双方向バッファ5のイネーブル端子に
“H”パルスを入力し、通信ICを送信モードにする。
通信コントローラは、1回目の送信フォーマットと同様
に、ACK信号に対応してストップビットを返信する。
In the second transmission format, the parity check is performed in the same manner as in the first transmission format. However, regarding the output of the ACK signal, the data in the data setting register 14 and the shift register received in the second transmission are output. The result of comparison (match: “H”, mismatch: “L”) of the comparator 15 based on the data No. 6 is involved. In other words, the ACK signal output unit 11 uses the Q output “L” of the D flip-flop 4 to determine the second transmission format and the output “H” of the address detection register 7 and the count value of the counter 1. Then, when it is detected that the output timing of the ACK signal is reached, the ACK "L" is transmitted to the communication controller only when the outputs of the D flip-flop 10 and the comparator 15 are both "H" (parity OK and comparison data match). Either is “L” (parity N
G or mismatch of comparison data), "H" is sent out. At this time, the ACK signal output unit 11 inputs an “H” pulse to the enable terminal of the bidirectional buffer 5 as in the first transmission format, and sets the communication IC to the transmission mode.
The communication controller returns a stop bit in response to the ACK signal, as in the first transmission format.

【0031】ストップビットが“H”の時は、データ出
力制御部16は、Dフリップフロップ4のQ出力“L”
とアドレス検知レジスタ7の出力“H”とカウンタ1の
カウント値を基にして、ストップビット“H”によつて
“H”を出力し、出力レジスタ17をイネーブル状態と
する。そして、クロックの立ち上がりによつて出力レジ
スタ17はデータ設定レジスタ14のデータをラッチす
る。これをもって、一連のデータ受信が滞り無く終了し
たこととなる。
When the stop bit is "H", the data output controller 16 outputs the Q output "L" of the D flip-flop 4
Based on the output "H" of the address detection register 7 and the count value of the counter 1, "H" is output by the stop bit "H", and the output register 17 is enabled. The output register 17 latches the data in the data setting register 14 at the rising edge of the clock. With this, a series of data reception is completed without delay.

【0032】逆に、ストップビットが“L”の時は、出
力レジスタ17へのデータ設定レジスタ14のデータの
ラッチは行われず、1回目の送信フォーマットからデー
タ通信が再履行される。尚、この2回目の送信フオーマ
ットのストップビットに対しては、ストップビット検知
部12はDフリップフロップ4のQ出力“L”により、
1回目の送信フォーマットとは異なり、“H”パルスの
出力を行わない。故に、ストップビットの“H”(デー
タ受信の終了)、“L”(再履行)に関わらず、カウン
タ3はリセットされずに、オーバーフロー状態を維持し
て、次の1回目の送信フォーマットの遂行に対応するこ
とができる。
Conversely, when the stop bit is "L", the data of the data setting register 14 is not latched to the output register 17, and the data communication is performed again from the first transmission format. For the stop bit of the second transmission format, the stop bit detector 12 detects the stop output of the D flip-flop 4 using the Q output “L”.
Unlike the first transmission format, no "H" pulse is output. Therefore, regardless of the stop bit "H" (end of data reception) and "L" (re-execution), the counter 3 is not reset, the overflow state is maintained, and the next first transmission format is performed. Can be handled.

【0033】[0033]

【発明の効果】以上説明したように、本発明によれば、
例えば通信制御手段と各通信手段との間の信号線上にノ
イズが混入して通信エラーが生じてしまった場合でも、
同じデータの受信を2回行い一致比較することにより、
通信エラーを確実に検出する事ができる。従って、パリ
ティチェックのみを遂行する場合と比較して、より精度
の高いデータ送受信が可能となる。
As described above, according to the present invention,
For example, even if a communication error occurs due to noise mixing on a signal line between the communication control unit and each communication unit,
By receiving the same data twice and comparing the match,
Communication errors can be reliably detected. Therefore, data transmission and reception with higher accuracy can be performed as compared with the case where only the parity check is performed.

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

【図1】シリアル通信システムのシステム構成を示す図
である。
FIG. 1 is a diagram showing a system configuration of a serial communication system.

【図2】シリアル通信システムのシステム構成を示す図
である。
FIG. 2 is a diagram showing a system configuration of a serial communication system.

【図3】従来例の通信フォーマットを示す図である。FIG. 3 is a diagram showing a communication format of a conventional example.

【図4】本発明の実施形態における通信ICの内部構成
を示す図である。
FIG. 4 is a diagram illustrating an internal configuration of a communication IC according to the embodiment of the present invention.

【図5】本発明の実施形態の通信フォーマットを示す図
である。
FIG. 5 is a diagram showing a communication format according to the embodiment of the present invention.

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

1,3 カウンタ 2,14,17 レジスタ 1,3 counter 2,14,17 register

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 1つのデータライン上に時系列的に所定
のシリアルデータを送受信するシリアル通信の制御を行
う通信制御手段と、前記通信制御手段に接続され、前記
通信制御手段との間でシリアルデータの送受信を行う複
数の通信手段と、を具えた同期式のシリアル通信システ
ムであって、前記通信手段は、前記通信制御手段から送
信された所定データを保持する第1保持手段と、該第1
保持手段に保持されたデータを保持する第2保持手段
と、前記通信制御手段から送信され前記第1保持手段に
保持された1回目の所定データが前記第2保持手段に保
持され、次いで前記通信制御手段から送信された2回目
の所定データが前記第1保持手段に保持された後、前記
第1および第2保持手段内のデータの一致比較を行う比
較手段とを具えたことを特徴とする通信システム。
1. A communication control means for controlling serial communication for transmitting and receiving predetermined serial data in a time series on one data line; and a serial control means connected to the communication control means and communicating with the communication control means. A synchronous serial communication system including a plurality of communication units for transmitting and receiving data, wherein the communication unit includes a first holding unit that holds predetermined data transmitted from the communication control unit; 1
Second holding means for holding the data held in the holding means, and first predetermined data transmitted from the communication control means and held in the first holding means, held in the second holding means; After the second predetermined data transmitted from the control means is held in the first holding means, a comparison means for comparing the data in the first and second holding means with each other is provided. Communications system.
【請求項2】 請求項1において、 前記通信手段は、前記通信制御手段から送信され前記第
1保持手段に保持された所定データから計算したパリテ
ィと当該保持された所定データに続いて前記通信制御手
段から送信されたパリティとの一致比較を行うパリティ
チェック手段と、該パリティチェック手段の一致比較の
結果に応答した制御信号を前記通信制御手段に送信する
制御信号出力手段とを有することを特徴とする通信シス
テム。
2. The communication control unit according to claim 1, wherein the communication unit is configured to calculate a parity calculated from predetermined data transmitted from the communication control unit and stored in the first storage unit and the stored predetermined data. Parity check means for performing a match comparison with the parity transmitted from the means, and control signal output means for transmitting a control signal responsive to a result of the match comparison of the parity check means to the communication control means. Communication system.
【請求項3】 請求項2において、 前記制御信号出力手段は、前記パリティチェック手段に
よる前記通信制御手段から送信され前記第1保持手段に
保持された1回目の所定データから計算したパリティと
当該1回目の所定データに続いて前記通信制御手段から
送信されたパリティとの一致比較の結果、一致した場合
は、2回目の所定データの送信を求める信号を、不一致
の場合は、1回目の所定データの再送信を求める信号を
前記通信制御手段に送信することを特徴とする通信シス
テム。
3. The parity checker according to claim 2, wherein the control signal output means calculates the parity calculated from the first predetermined data transmitted from the communication control means by the parity check means and held in the first holding means. As a result of the coincidence comparison with the parity transmitted from the communication control means subsequent to the second predetermined data, a signal for requesting the transmission of the second predetermined data is obtained when they match, and a signal for requesting the transmission of the first predetermined data when they do not match. A communication system for transmitting a signal requesting retransmission of the communication data to the communication control means.
【請求項4】 請求項1から3のいずれかにおいて、 前記制御信号出力手段は、前記パリティチェック手段に
よる前記通信制御手段から送信され前記第1保持手段に
保持された2回目の所定データから計算したパリティと
当該2回目の所定データに続いて前記通信制御手段から
送信されたパリティとの一致比較の結果、および前記パ
リティチェック手段の一致比較の結果の少なくとも一方
が不一致の場合は、1回目の所定データからの送信の再
履行を求める信号を、双方が一致の場合は、データ受信
が成功したことを示す信号を前記通信制御手段に送信す
ることを特徴とする通信システム。
4. The control signal output unit according to claim 1, wherein the control signal output unit calculates from the second predetermined data transmitted from the communication control unit by the parity check unit and stored in the first storage unit. If at least one of the result of the match comparison between the parity and the parity transmitted from the communication control means subsequent to the second predetermined data and the result of the match comparison by the parity check means do not match, the first time A communication system, wherein a signal for requesting re-execution of transmission from predetermined data is transmitted to the communication control means when both of them match, a signal indicating that data reception was successful.
【請求項5】 請求項1〜4のいずれかにおいて、 前記第2保持手段内のデータを出力する出力手段をさら
に有することを特徴とする通信システム。
5. The communication system according to claim 1, further comprising an output unit that outputs data in the second holding unit.
【請求項6】 請求項1〜5のいずれかの通信システム
を画像形成装置内の情報処理に適用したこと特徴とする
通信システム。
6. A communication system, wherein the communication system according to claim 1 is applied to information processing in an image forming apparatus.
【請求項7】 通信制御手段と、前記通信制御手段にカ
スケード接続された複数の通信手段との間でデータライ
ン上に時系列的に伝送されるデータの送受信を行う通信
方法において、前記通信制御手段は前記通信手段に1回
目の所定データを送信し、前記各通信手段は、前記送信
された1回目の所定データを第1保持手段に保持した後
第2保持手段に保持し、次いで前記通信制御手段は前記
通信手段に2回目の所定データを送信し、前記各通信手
段は、前記送信された2回目の所定データを前記第1保
持手段に保持した後、前記第1および第2保持手段内の
データの一致比較を行うことを特徴とする通信方法。
7. A communication method for transmitting and receiving data transmitted in time series on a data line between a communication control unit and a plurality of communication units cascaded to the communication control unit, the communication control unit comprising: Means for transmitting the first predetermined data to the communication means, each of the communication means holding the transmitted first predetermined data in the first holding means, then in the second holding means, and then in the communication The control means transmits the second predetermined data to the communication means, and each of the communication means stores the transmitted second predetermined data in the first holding means, and then stores the first and second holding data in the first holding means. A communication method characterized by performing data comparison of data in the data.
【請求項8】 請求項7において、 前記通信手段は、前記通信制御手段から送信され前記第
1保持手段に保持された所定データから計算したパリテ
ィと当該保持された所定データに続いて前記通信制御手
段から送信されたパリティとの一致比較を行い、当該一
致比較の結果に応答した制御信号を前記通信制御手段に
送信することを特徴とする通信方法。
8. The communication control unit according to claim 7, wherein the communication unit calculates a parity calculated from predetermined data transmitted from the communication control unit and stored in the first storage unit and the stored predetermined data. A communication method for performing a match comparison with the parity transmitted from the means and transmitting a control signal responsive to a result of the match comparison to the communication control means.
【請求項9】 請求項8において、 前記通信手段は、前記通信制御手段から送信され前記第
1保持手段に保持された1回目の所定データから計算し
たパリティと当該1回目の所定データに続いて前記通信
制御手段から送信されたパリティとの一致比較の結果、
一致した場合は、2回目の所定データの送信を求める信
号を、不一致の場合は、1回目の所定データの再送信を
求める信号を前記通信制御手段に送信することを特徴と
する通信方法。
9. The communication device according to claim 8, wherein the communication unit calculates a parity calculated from the first predetermined data transmitted from the communication control unit and held in the first holding unit and the first predetermined data. As a result of the match comparison with the parity transmitted from the communication control means,
A communication method characterized by transmitting, to the communication control means, a signal for requesting the transmission of predetermined data for the second time if they match, or a signal for requesting retransmission of the first predetermined data if they do not match.
【請求項10】 請求項7〜9のいずれかにおいて、 前記通信手段は、前記通信制御手段から送信され前記第
1保持手段に保持された2回目の所定データから計算し
たパリティと当該2回目の所定データに続いて前記通信
制御手段から送信されたパリティとの一致比較の結果、
および前記第1および第2保持手段内のデータの一致比
較の結果の少なくとも一方が不一致の場合は、1回目の
所定データからの送信の再履行を求める信号を、双方が
一致の場合は、データ受信が成功したことを示す信号を
前記通信制御手段に送信することを特徴とする通信方
法。
10. The communication device according to claim 7, wherein said communication means calculates a parity calculated from second predetermined data transmitted from said communication control means and stored in said first storage means, and said second parity. Following the predetermined data, the result of the match comparison with the parity transmitted from the communication control means,
And if at least one of the results of the data comparison in the first and second holding means does not match, a signal requesting re-execution of transmission from the first predetermined data; A communication method, comprising transmitting a signal indicating that the reception has succeeded to the communication control means.
JP23417797A 1997-08-29 1997-08-29 Communication system and method Pending JPH1174871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23417797A JPH1174871A (en) 1997-08-29 1997-08-29 Communication system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23417797A JPH1174871A (en) 1997-08-29 1997-08-29 Communication system and method

Publications (1)

Publication Number Publication Date
JPH1174871A true JPH1174871A (en) 1999-03-16

Family

ID=16966886

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23417797A Pending JPH1174871A (en) 1997-08-29 1997-08-29 Communication system and method

Country Status (1)

Country Link
JP (1) JPH1174871A (en)

Similar Documents

Publication Publication Date Title
US20190272252A1 (en) Method of processing deadlock of i2c bus, electronic device and communication system
JP4917671B2 (en) Data transmission method between master device and slave device
JPH0347537B2 (en)
EP1825382A2 (en) Low protocol, high speed serial transfer for intra-board or inter-board data communication
US9286070B2 (en) Control apparatus
CN108038061B (en) Address allocation method and PLC system
JPH1174871A (en) Communication system and method
EP0006477B1 (en) Device for controlling the transmission of data between a data transmitting control unit and a data recording controller for serial recording
JP3465889B2 (en) Serial data transfer device, control method therefor, and communication device
JP2002252660A (en) Serial data communication apparatus and communication error detection method
JP2001028579A (en) Code error monitoring device
JP2000003312A (en) Synchronous serial communication system and control method therefor
JP2764452B2 (en) Bus transfer response method
JP2953878B2 (en) Data transfer system
JP2000299694A (en) Data transfer system and transfer error detecting method
JPH1174872A (en) Serial communication system and image forming device
JP2797756B2 (en) Connection determination method for controlled devices
JP2803479B2 (en) Serial data receiver
JPH04267631A (en) Parity bit addition system
JPS6321221B2 (en)
JPH0588995A (en) Data communication system
JP2005354158A (en) Error detection circuit
JPH0685876A (en) Communication controller
JPH10135951A (en) Communication system, image-forming device and fault diagnostic method for the communication system
JP2000132209A (en) Programmable controller