JPH11328109A - Communication device, phase shift detecting method, and storage medium - Google Patents

Communication device, phase shift detecting method, and storage medium

Info

Publication number
JPH11328109A
JPH11328109A JP10142048A JP14204898A JPH11328109A JP H11328109 A JPH11328109 A JP H11328109A JP 10142048 A JP10142048 A JP 10142048A JP 14204898 A JP14204898 A JP 14204898A JP H11328109 A JPH11328109 A JP H11328109A
Authority
JP
Japan
Prior art keywords
serial
transfer clock
phase shift
master station
counter
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
JP10142048A
Other languages
Japanese (ja)
Inventor
Yukihide Ushio
行秀 牛尾
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 JP10142048A priority Critical patent/JPH11328109A/en
Publication of JPH11328109A publication Critical patent/JPH11328109A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a communication device, a phase shift detecting method and a storage medium which enable a very simple serial communication means where data length is composed of only transfer information to decide an informa tion array phase shift of transfer information by monitoring a serial transfer clock state without adding any bit for detecting a phase shift in serial informa tion from periodic noise. SOLUTION: This device has a 1st counter means 112 which uses a serial transfer clock as a count source, a slave station communication processing control means 113 which sends a feedback signal to a master station if a count value reaches a set value, a 2nd counter means 114 which uses the serial transfer clock as a count source, a sending-back means 115 which sends a feedback signal back to the master station each time the count value reaches the set value, and a transfer clock cycle monitor means 111 which detects a phase shift of the serial transfer clock that it generates.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、通信装置、位相ず
れ検出方法及び記憶媒体に係り、更に詳しくは、装置の
中央処理ユニット及び装置に点在する電気ユニット間の
入出力情報の情報交換を実行する通信装置、位相ずれ検
出方法及び記憶媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication apparatus, a phase shift detecting method, and a storage medium, and more particularly, to the exchange of input / output information between a central processing unit of an apparatus and electric units scattered in the apparatus. The present invention relates to a communication device to be executed, a phase shift detection method, and a storage medium.

【0002】[0002]

【従来の技術】従来、装置内のシリアル通信装置は、装
置の中央処理ユニットが有する主局と称されるシリアル
通信のメイン装置と、装置に点在する複数の電気ユニッ
トが有する従局と称されるシリアル通信のサブ装置との
間で情報交換を実行するもので、装置の組み立て易さと
装置コストを抑制することを目的として多くの装置で利
用されてきた。当初は市販の通信ICを利用したり、ロ
ジックICで主局、従局の回路を構成していた。やが
て、ゲートアレイ化が進展するに伴い、主局も従局も共
にゲートアレイICによる構成に変わってきた。そし
て、装置全体を制御するCPUの規模が拡張されると、
主局構成を中央処理ユニットが有するCPUが兼ね備
え、従局構成のみがゲートアレイIC化されるようにな
った。
2. Description of the Related Art Conventionally, a serial communication device in a device is referred to as a main device of serial communication called a master station of a central processing unit of the device and a slave station of a plurality of electric units scattered in the device. It exchanges information with a serial communication sub-device, and has been used in many devices for the purpose of suppressing the cost of the device and the ease of assembling the device. Initially, commercially available communication ICs were used, and logic ICs were used to configure the master and slave circuits. Eventually, with the progress of the gate array, both the master station and the slave stations have been changed to the configuration using the gate array IC. When the scale of the CPU that controls the entire apparatus is expanded,
The CPU of the central processing unit has the master station configuration, and only the slave station configuration has been made into a gate array IC.

【0003】しかし、基本的にシリアル通信装置での情
報交換構成は、あくまでも、主局と各従局とが実行する
シリアル転送データのデータ長の中から、主局と各従局
とが1対1で対応するデータを見い出して処理を行うも
のであった。つまり、主局と各従局との情報交換を実行
する際には、従局の種類を区別するために個別設定され
た従局アドレスが情報交換データと組みとなり、シリア
ル転送データのデータ長を構成するものであった。従っ
て、従局数に応じた従局のアドレッシング(絶対アドレ
スによる各従局の区別)を割り振った上で、シリアル通
信装置でのデータ長が構成され、従局回路のデータ処理
を実行するビット数が決定されるものであった。
However, basically, the information exchange configuration in the serial communication device is based on the fact that the master station and each slave station are one-to-one from the data length of the serial transfer data executed by the master station and each slave station. The corresponding data was found and processed. In other words, when performing information exchange between the master station and each slave station, the slave station address individually set to distinguish the type of slave station is combined with the information exchange data to constitute the data length of the serial transfer data. Met. Therefore, after allocating the addressing of the slave station according to the number of slave stations (the distinction of each slave station by the absolute address), the data length in the serial communication device is configured, and the number of bits for executing the data processing of the slave station circuit is determined. Was something.

【0004】一方、装置毎の従局数は、装置規模に応じ
て、多数必要なものや少数でよいもの等、種々ある。シ
リアル通信装置の従局アドレスのビット数を統一して、
共通のシリアル通信装置を利用する形態を取ると、装置
によっては、コスト的に、また、通信性能的にも負荷が
重くなる場合がある。そこで、装置規模に応じた従局構
成で設計した方が装置全体として有利であるために、シ
リアル通信装置は、利用する装置毎に応じたカスタマイ
ズなものとして設計されるようになっていた。
On the other hand, the number of slave stations for each apparatus varies depending on the scale of the apparatus, such as a large number of required stations and a small number of stations. By unifying the number of bits of the slave station address of the serial communication device,
When a common serial communication device is used, the load may be heavy depending on the device and the communication performance depending on the device. Therefore, since it is more advantageous to design a slave station configuration according to the scale of the device as a whole device, the serial communication device has been designed as a customized device according to each device to be used.

【0005】やがて、装置の価格競争が激化してくる
と、更なる装置の低コスト化、装置の開発期間の短縮化
が要求されるようになった。シリアル通信装置において
も、種々な装置に利用でき共通化させることにより、従
局構成のゲートアレイICを大量生産させて更なる低コ
スト化を図ると共に、シリアル通信装置の流用による装
置開発の期間短縮化、信頼性の安定化を目指すようにな
った。そのことが、主局CPUによるシリアル通信の基
本的制御手段を統一して、装置毎に必要となる従局数制
御の対応を簡単なソフト変更で対処できる制御構成とす
る。また、従局ゲートアレイICは、設計変更無しにど
の装置にも利用できる回路構成とするようなシリアル通
信装置が出現してきた。
[0005] As the price competition for the apparatus intensifies, the cost of the apparatus must be further reduced and the development period of the apparatus must be shortened. By using serial communication devices that can be used and shared by various devices, mass production of slave array gate array ICs will be achieved to further reduce costs and shorten the period of device development by diverting serial communication devices. , Came to aim for stability of reliability. Therefore, the basic control means for serial communication by the master station CPU is unified, and a control configuration capable of coping with the control of the number of slave stations required for each device by a simple software change. Also, a serial communication device has emerged in which the slave station gate array IC has a circuit configuration that can be used in any device without any design change.

【0006】つまり、従局を構成するゲートアレイIC
をどの装置にも利用できるシリアル通信装置にするため
に、従来からの主局と各従局との情報処理を実行させる
従局アドレスを絶対アドレスで構成したものから、基本
的には相対アドレスで設定する構成にして、従局アドレ
ス(以下、単に識別子と呼ぶことにする)と情報交換デ
ータとを固定化したビット数構成で実行できるシリアル
通信装置としたものである。これにより、装置毎に利用
される従局数が異なっていても、従局回路のデータ処理
ビット数は不変のままシリアル通信を実行できるものに
なった。尚、この相対アドレスによる構成は、絶対アド
レスを単に相対アドレスに置き換えるのではなく、シリ
アル通信の伝送路に接続される各従局の配列順番を基
に、その順列組み合わせを相対アドレスとの組み合わせ
により、判定することで区別するものである。つまり、
種々な装置でばらつく従局数を固定ビット数で構成する
識別子にて判断できる手段なのである。
That is, a gate array IC constituting a slave station
In order to make a serial communication device that can be used by any device, a slave station address for executing information processing between a conventional master station and each slave station is configured by an absolute address, and is basically set by a relative address. With this configuration, a serial communication device capable of executing a slave station address (hereinafter simply referred to as an identifier) and information exchange data in a fixed bit number configuration is provided. As a result, even when the number of slave stations used for each device is different, serial communication can be performed without changing the data processing bit number of the slave circuit. In this configuration using relative addresses, the absolute address is not simply replaced with the relative address, but based on the arrangement order of the slave stations connected to the serial communication transmission line, the permutation combination is combined with the relative address. It is distinguished by judging. That is,
This is a means by which the number of slave stations that vary in various devices can be determined by an identifier composed of a fixed number of bits.

【0007】以降、この種のシリアル通信装置について
簡単に説明する。尚、従来例及び後述する本発明の実施
形態に係るシリアル通信装置は、電子写真装置で利用さ
れるものについて説明するが、特に、電子写真装置に限
定されるものではない。
Hereinafter, this type of serial communication device will be briefly described. Although a serial communication device according to a conventional example and an embodiment of the present invention to be described later will be described as being used in an electrophotographic device, it is not particularly limited to an electrophotographic device.

【0008】電子写真装置において、例えば、白黒プリ
ントを目的とした装置は白黒プリントを実行するために
最低限必要な電気ユニット(以下、本体ユニットと総称
する)が存在する。また、この装置を基に、フルカラー
プリントのための拡張電気ユニットとか、装置の給紙装
置、排紙装置等の機能追加電気ユニット、或いは、両面
プリント用追加電気ユニット等々、無くても装置動作に
支障はないが、装置を拡張したり、装置の使い勝手を向
上するために追加できる電気ユニット(以下、オプショ
ンユニットと総称する。また、本説明におけるオプショ
ンとは、工場設置の場合も、ユーザ設置の場合も共に含
めて総称する)が存在する。つまり、シリアル通信装置
の伝送路中に接続される各従局は、必ず本体ユニットか
オプションユニットかのどちらかに割り振られて、本体
ユニットに割り振られた伝送路中の従局は、装置を動作
させる上で絶対必要な電気ユニットであり、必ずシリア
ル通信装置の伝送路中に接続されている。
In an electrophotographic apparatus, for example, an apparatus intended for black-and-white printing has an electric unit (hereinafter, collectively referred to as a main unit) which is at least necessary to execute black-and-white printing. In addition, based on this apparatus, an extended electric unit for full-color printing, an additional electric unit such as a paper feeder and a paper ejector of the apparatus, or an additional electric unit for double-sided printing, etc. Although there is no problem, an electric unit (hereinafter, referred to as an optional unit) that can be added to expand the device or improve the usability of the device. Collectively includes both cases). In other words, each slave station connected in the transmission path of the serial communication device is always allocated to either the main unit or the optional unit, and the slave station in the transmission path allocated to the main unit is used to operate the device. Is an absolutely necessary electrical unit, and is always connected in the transmission path of the serial communication device.

【0009】仮に、電子写真装置が本体ユニットのみで
構成されているならば、シリアル通信の伝送路に接続さ
れる本体ユニットの有する各従局の区別は、予め伝送路
に接続される配列順番を主局CPUのメモリに展開した
メモリマップテーブルに有して、シリアル転送される順
番と対応することで識別子無しでも判定して、主局と各
従局における1対1のデータ処理ができる。つまり、主
局は、本体ユニットの各従局に関して、何番目にどんな
本体ユニットが存在するかを予めメモリマップテーブル
に設定できるのである。次に、オプションユニットが混
在する場合は、予め設定された本体ユニットの配列順番
から、何番目の本体ユニット後の何番目のオプションユ
ニットかということを判定できれば、その電子写真装置
に存在する全ての電気ユニットの配列順番を理解できる
のである。
If the electrophotographic apparatus is composed of only the main unit, each slave station of the main unit connected to the transmission line of serial communication is distinguished mainly by the arrangement order in which the slave units are connected to the transmission line. The data is stored in the memory map table expanded in the memory of the station CPU, and it is possible to determine even if there is no identifier by corresponding to the order of serial transfer, so that one-to-one data processing can be performed between the master station and each slave station. In other words, the master station can set in advance in the memory map table the order of what main unit exists for each slave station of the main unit. Next, in the case where optional units are mixed, if it can be determined from the arrangement order of the main unit that the number of the main unit is the number of the optional unit after the number of the main unit, all the units existing in the electrophotographic apparatus are determined. It is possible to understand the arrangement order of the electric units.

【0010】つまり、従局に割り振られる識別子を本体
ユニットの場合、或る特定値で設定し、残りの値をオプ
ションユニットに割り振る。そのことで、吸上げた識別
子により本体ユニットか否かを判定する。本体ユニット
時は、何番目の本体ユニットかを予め設定されたメモリ
マップテーブルで認識できる。オプションユニット時
は、その直前の本体ユニット番号を基準として、識別子
の示す値に対応したオプションユニットを認識すればよ
い。例えば、本体ユニットが3番目を示す時の後に吸上
げた識別子が、本体ユニットではなく5番目を示してい
れば、3番目の本体ユニット後の5番目のオプションユ
ニットは存在すると判定できるのである。
That is, in the case of the main unit, the identifier assigned to the slave station is set with a specific value, and the remaining values are assigned to the option units. Thus, it is determined whether or not the unit is the main unit based on the sucked identifier. In the case of the main unit, the number of the main unit can be recognized by a preset memory map table. At the time of an optional unit, the optional unit corresponding to the value indicated by the identifier may be recognized based on the immediately preceding main unit number. For example, if the identifier sucked after the time when the main unit indicates the third indicates not the main unit but the fifth, it can be determined that the fifth optional unit after the third main unit exists.

【0011】そして、次に吸上げた識別子が本体ユニッ
トを示す特定値でない限り、3番目の本体ユニット後に
続く全オプションユニットの存在が判定できる。そのな
かで、一つの本体ユニット後に存在し得る全オプション
ユニットの存在の有無は、次に吸上げる識別子が本体ユ
ニットを示したところで終了する。また、吸上げた識別
子が本体ユニットであり、次に吸上げた識別子が本体ユ
ニットであれば、その間のオプションユニットは存在し
ないことを判定する。これにより、オプションユニット
番号を示す識別子が同一番号であっても、本体ユニット
による配列順番番号が重複しなければ、全従局の区別が
できるのである。
Then, as long as the next sucked identifier is not a specific value indicating the main unit, the existence of all the optional units following the third main unit can be determined. The presence / absence of all option units that may exist after one main unit ends when the next identifier to be extracted indicates the main unit. Further, if the sucked identifier is the main unit and the next sucked identifier is the main unit, it is determined that there is no optional unit therebetween. Thus, even if the identifiers indicating the option unit numbers are the same, all slave stations can be distinguished if the arrangement order numbers of the main units do not overlap.

【0012】つまり、固定されたビット数で構成された
識別子でも、伝送路中に存在する本体ユニットの数に応
じた配列順番と組み合わせて判定することで、理論的に
は、半無限大の数の従局が判定できるのである。例え
ば、識別子ビット数を4ビットに固定した場合、絶対ア
ドレスで割り振ると伝送路中に接続できる従局数は16
個迄となるが、配列順番と相対アドレスによる割り振り
では、本体ユニットを示す特定値を差し引くと、15個
迄のオプションユニットが一つの本体ユニットに接続可
能となる。そして、本体ユニットの数分(仮に10個の
本体ユニットがあれば、合計10+150個の従局を判
定できることになる)に乗じた数のオプションユニット
が理論的には伝送路中に接続可能になる。
In other words, an identifier composed of a fixed number of bits is also determined in combination with the arrangement order according to the number of main units existing in the transmission path, and theoretically, a semi-infinite number Can be determined. For example, if the number of identifier bits is fixed at 4 bits, the number of slave stations that can be connected in the transmission path is 16 if allocated with absolute addresses.
In the allocation based on the arrangement order and the relative addresses, up to 15 optional units can be connected to one main unit by subtracting the specific value indicating the main unit. Then, the number of optional units multiplied by the number of main units (if there are ten main units, a total of 10 + 150 slave stations can be determined) can theoretically be connected in the transmission path.

【0013】以上に基づき、主局での全従局の区別制御
例を具体的に述べると、電子写真装置の構成が決まる
と、シリアル通信装置の伝送路に接続可能な全従局配列
順番も決定する。これにより、主局CPUのメモリに
は、本体ユニットとオプションユニットの区別なしに伝
送路中に接続される従局が存在するものとして、接続さ
れ得るフルスペックでの全従局配列順番に従ったメモリ
マップテーブルを設定する。尚、開発途中で、従局のフ
ルスペックによる配列順番が変更された場合はそれに伴
って、メモリマップテーブルによる従局配列順番を更新
すればよいのである。
Based on the above, a specific example of control for distinguishing all slave stations in the master station will be described. When the configuration of the electrophotographic apparatus is determined, the order in which all slave stations can be connected to the transmission line of the serial communication apparatus is also determined. . As a result, in the memory of the master station CPU, there is a slave station connected in the transmission path without distinction between the main unit and the optional unit, and the memory map according to the order of all slave stations arranged in full specifications that can be connected. Set up the table. If the arrangement order of the slave stations according to the full specification is changed during the development, the arrangement order of the slave stations in the memory map table may be updated accordingly.

【0014】そして、実際にその電子写真装置が作動す
る時の装置の初期化動作中にシリアル通信を実行して、
現状における伝送路に接続された全従局の配列順番に従
って、各従局の識別子のみを吸上げて、接続され得るフ
ルスペックでの全従局配列順番におけるオプションユニ
ットの存在有無を判定しながら、予め設定されるフルス
ペックでの全従局配列順番を、現状での従局の配列順番
にメモリマップテーブルを再設定すべく、初期化シリア
ル通信を実行する。その後のシリアル通信は、基本的に
再設定されたメモリマップテーブルの配列順番に対応さ
せ、各従局とのシリアル転送データのみの情報交換であ
る通常シリアル通信を実行すればよいのである。
Then, serial communication is executed during an initialization operation of the electrophotographic apparatus when the apparatus actually operates, and
According to the arrangement order of all slave stations connected to the current transmission line, according to the arrangement order of all slave stations, only the identifier of each slave station is sucked, and it is set in advance while determining whether or not there is an optional unit in the arrangement order of all slave stations in full specifications that can be connected. Initialization serial communication is executed in order to reset the memory map table to the arrangement order of all slave stations in the current full specification. The subsequent serial communication basically corresponds to the rearranged arrangement order of the memory map table, and may execute the normal serial communication, which is information exchange of only serial transfer data with each slave station.

【0015】これにより、シリアル通信装置は、識別子
のビット数を固定しても伝送路中に接続される全従局を
無制限に判定できるのである。この識別子のビット数が
固定化できることで、どの装置にも共通のシリアル通信
装置が以下に示す構成で実現できるのである。
Thus, the serial communication device can determine all slave stations connected in the transmission path without limitation even if the number of bits of the identifier is fixed. Since the number of bits of the identifier can be fixed, a serial communication device common to all devices can be realized with the following configuration.

【0016】先ず、従局回路を最小限の固定化ビット数
で構成するために、識別子と情報データとを別の次元で
シリアル通信するものにする。これにより、シリアル転
送するデータ長が短くなり、一回当たりの通信時間が短
くなると共に、一回のシリアル通信で処理するビット数
が少なくなるために、従局回路構成は極く小規模な回路
で実現できる。つまり、識別子と情報データの処理ビッ
ト数を同一の固定ビット数にすることで、従局回路の基
本構成は、固定ビット数のシフトレジスタ回路と入出力
ラッチ回路からなるシリアル/パラレル変換回路を基本
としたものになる。尚、固定ビット数を特に限定される
ものではないが、4ビット構成にすることでより簡易化
され、効率の良い回路構成によるゲートアレイICが可
能になり、より安価なものが大量生産できるようにな
る。
First, in order to configure the slave station with the minimum number of fixed bits, an identifier and information data are serially communicated in another dimension. As a result, the length of data to be serially transferred is shortened, the communication time per operation is shortened, and the number of bits to be processed in one serial communication is reduced. realizable. In other words, by making the number of processing bits of the identifier and the information data the same fixed number of bits, the basic configuration of the slave station circuit is basically a serial / parallel conversion circuit including a shift register circuit with a fixed number of bits and an input / output latch circuit. It will be. Although the fixed number of bits is not particularly limited, the 4-bit configuration makes it possible to simplify the gate array IC with a more efficient circuit configuration, and to mass produce cheaper ones. become.

【0017】次に、シリアル通信装置の伝送路形態は、
シリアル/パラレル変換回路を基本とすることから、主
局CPUを起点とし、シリアル転送データをシリアル転
送クロックに同期させ順次転送させて、伝送路中に直列
接続される複数の従局へ次々とシフト転送させる。そし
て、再び主局へとシフトされるリング状のループ式伝送
路で構成する。一方、各従局は、シフト動作前に各自の
シフトレジスタに主局へのシリアル返送データを予め設
定しておけば、再び主局へとシフトされるループ式伝送
路で構成されるため、主局が発するシリアル転送データ
が各従局に伝達されると同時に各従局からのシリアル返
送データが主局にシフト転送されるのである。
Next, the transmission path form of the serial communication device is as follows.
Since the serial / parallel conversion circuit is used as a base, the serial transfer data is sequentially transferred in synchronization with the serial transfer clock starting from the master station CPU, and is sequentially shifted and transferred to a plurality of slave stations connected in series in the transmission path. Let it. Then, it is constituted by a ring-shaped loop transmission path which is shifted to the main station again. On the other hand, if each slave station sets serial return data to the master station in its own shift register before the shift operation, the slave station is configured by a loop transmission path that is shifted to the master station again. Is transmitted to each slave station, and at the same time, serial return data from each slave station is shifted and transferred to the master station.

【0018】最後に、主局は、従局数の増減に対する制
御を上記説明で述べた内容で実行させる制御ソフトとメ
モリエリアとを有する他に、識別子と情報データとを別
の次元でシリアル通信させるために各従局でのシリアル
/パラレル変換によるシリアル通信処理のためのタイミ
ング指示を、基本的には、主局が支配する指示信号で制
御させる構成にする。具体的には、各従局でのラッチ回
路のラッチ動作や、シフトレジスタ回路のデータロー
ド、データシフト等の動作制御を主局から発する指示信
号で制御される従局回路構成にし、主局が従局動作を遠
隔操作して制御する構成にする。そのことで、主局によ
るシリアル通信制御を接続される従局の識別子を吸上げ
る初期化シリアル通信手段と、接続される従局との情報
データをやり取りする通常シリアル通信手段とに分け、
時系列にて各々シリアル通信を独立して実行させる構成
にする。
Finally, the master station has control software for executing the control for increasing or decreasing the number of slave stations with the contents described above and a memory area, and also performs serial communication of an identifier and information data in another dimension. For this purpose, a timing instruction for serial communication processing by serial / parallel conversion at each slave station is basically controlled by an instruction signal controlled by the master station. Specifically, the operation of the latch circuit of each slave station and the operation control such as data loading and data shift of the shift register circuit are controlled by an instruction signal issued from the master station, and the master station operates as a slave station. Is configured to be controlled by remote control. As a result, the serial communication control by the master station is divided into an initialization serial communication means for sucking up the identifier of the connected slave station and a normal serial communication means for exchanging information data with the connected slave station.
The configuration is such that serial communication is executed independently in time series.

【0019】以上の構成によるシリアル通信装置におい
て、主局CPUによるシリアル通信の基本的制御手段は
統一でき、装置毎に必要となる従局数制御の対応を簡単
なソフト変更で対処できる構成となる。また、従局ゲー
トアレイICは、設計変更無しにどの装置にも利用でき
る回路構成となるのである。その結果、種々な装置に利
用でき共通化できるため、従局構成のゲートアレイIC
を大量生産させて更なる低コスト化を図ると共に、シリ
アル通信装置の流用による装置開発の期間短縮化、信頼
性の安定化が可能になった。
In the serial communication device having the above configuration, the basic control means for serial communication by the master CPU can be unified, and the control of the number of slave stations required for each device can be dealt with by a simple software change. In addition, the slave gate array IC has a circuit configuration that can be used in any device without changing the design. As a result, the gate array IC can be used in various devices and can be used in common.
In addition to mass production of, a further reduction in cost has been achieved, and it has become possible to reduce the time required for device development and to stabilize reliability by diverting serial communication devices.

【0020】[0020]

【発明が解決しようとする課題】しかしながら、上述し
た従来技術においては下記に示すような欠点があった。
即ち、シリアル通信における根本的な問題として、装置
ノイズがシリアル伝送路に飛び込んだ時に発生し得る伝
送情報内容の情報化けである。つまり、シリアル情報
は、シリアル通信転送クロックに同期を取り読み書きさ
れるものであるため、シリアル転送クロックラインに装
置ノイズが飛び込むと、従局にとってはあたかも1発の
クロックが付加された状態での信号処理となるために、
実際のシリアル情報内容が1発ずれた状態で処理されて
しまうのである。
However, the above-mentioned prior art has the following drawbacks.
That is, as a fundamental problem in serial communication, there is information corruption of transmission information content which can occur when device noise jumps into a serial transmission path. In other words, since serial information is read and written in synchronization with the serial communication transfer clock, if device noise enters the serial transfer clock line, signal processing is performed for the slave station as if a single clock was added. To become
That is, the actual serial information content is processed with a one-shot deviation.

【0021】一方、装置ノイズは、ランダムに発生する
場合と、周期性を有する発生とに大別できるのである。
後者の周期性を有する装置ノイズとは、或る構成回路の
スイッチング動作によって発生し得るノイズ成分であ
り、予め設計された回路が所定のタイミングで回路動作
を実行する時にノイズ成分を発し、隣接した別の回路中
に飛び込んだ時に生じるのもであるために周期性を有す
るのである。この周期性の装置ノイズは、通常、装置設
計の段階で修正、改善されて発生することは無くなるの
であるが、まれに、断続的に発生する場合が有り得るの
で、装置ノイズに弱いシリアル通信装置にとっては事前
の対処が必要とされているのである。
On the other hand, device noise can be roughly divided into a case where it occurs randomly and a case where it has periodicity.
The latter device noise having periodicity is a noise component that can be generated by a switching operation of a certain constituent circuit, and emits a noise component when a pre-designed circuit performs a circuit operation at a predetermined timing. It has periodicity because it occurs when jumping into another circuit. This periodic device noise is usually corrected and improved at the stage of device design and will not occur.However, in rare cases, it may occur intermittently. Needs to be addressed in advance.

【0022】通常のシリアル通信装置の場合、ランダム
に発生する装置ノイズによる情報化け対策の手段とし
て、シリアル情報内容を二度読み比較して真偽を判断す
るか、シリアル情報内容にパリティビットを設けてパリ
ティ演算判断により真偽を判断する等がある(従局構成
がハード回路で構成される場合、通常は前者の二度読み
比較による情報内容の真偽確認の形態が採用される)。
これにより、シリアル転送クロックにランダム装置ノイ
ズが飛び込み、シリアル情報内容の情報位相をずらして
も容易に情報内容の真偽を検出判断できるのである。
In the case of a normal serial communication device, as a measure against information corruption caused by device noise generated at random, the serial information content is read twice and compared to determine whether it is true or false, or a parity bit is provided in the serial information content. (If the slave station is composed of a hardware circuit, the former method of confirming the authenticity of the information content by double reading comparison is usually adopted.)
As a result, random device noise jumps into the serial transfer clock, and even if the information phase of the serial information content is shifted, the authenticity of the information content can be easily detected and determined.

【0023】一方、周期性を有する装置ノイズ(以降、
周期性ノイズと略称す)によって生じ得る情報化け対策
の手段は、殆どの場合、上述した情報の二度読みを行う
手段により判別できるのであるが、周期性がシリアル情
報のデータ長配列の或る位相で同期して発生する場合に
問題となる。つまり、シリアル情報内容の二度読み手段
において、1度目のシリアル情報内容と2度目のシリア
ル情報内容の同じ位相に同期して情報化けが発生した
時、比較結果が一致してしまい、シリアル情報内容は真
と判別してしまうのである。この周期性ノイズに関して
は、通常シリアル情報のデータ長構成に位相ずれ検出手
段を設けて対応しているのである。
On the other hand, a device noise having a periodicity (hereinafter referred to as a device noise)
In most cases, the means for preventing information corruption that can be caused by periodic noise can be determined by the above-described means for reading information twice. A problem arises when they occur synchronously in phase. In other words, when the serial information contents are read twice, when the information is garbled in synchronization with the same phase of the first serial information contents and the second serial information contents, the comparison results match, and the serial information contents become identical. Is determined to be true. This periodic noise is usually dealt with by providing a phase shift detecting means in the data length configuration of the serial information.

【0024】それは、一つの従局が受け取るデータ長構
成にスタートビットとエンドビットを数ビット設けて、
データ長の先頭と最終を確認できるようにする。これに
より、仮に装置ノイズ等による転送情報のずれが発生し
て、且つ二度読み手段に引っ掛からない場合が生じて
も、所定の位置に条件を満たすスタートビットとエンド
ビットが存在しなければ、シリアル転送クロックにノイ
ズが飛び込み、情報内容に位相ずれが生じたことを判別
できるのである。以上により、一般的なシリアル通信装
置における装置ノイズのシリアル伝送路への飛び込みに
よるシリアル情報内容の情報化けは、各々従局におい
て、読み取り情報の解析判断で真偽が判断できるため、
誤情報の伝達を未然に防止できるのである。
That is, a start bit and an end bit are provided in the data length configuration received by one slave station, and several bits are provided.
Be able to check the beginning and end of the data length. As a result, even if the transfer information is shifted due to device noise and the like, and the reading unit is not caught twice, if the start bit and the end bit satisfying the condition do not exist at a predetermined position, the serial It is possible to determine that noise has jumped into the transfer clock and a phase shift has occurred in the information content. As described above, in the general serial communication device, the garbled information of the serial information due to the device noise jumping into the serial transmission line can be determined in each slave station by analyzing the read information.
The transmission of erroneous information can be prevented beforehand.

【0025】しかしながら、従来例で述べたようなシリ
アル通信装置の場合においては、基本構成がシフトレジ
スタ形態で構成されて、主局から発するシリアル転送ク
ロックに同期させてシリアル情報のみをシフトして、所
定タイミングで各従局が自分宛の情報として無条件にラ
ッチ読み取りするような極く簡単なシリアル通信手段で
ある。このため、ランダムに発生する装置ノイズによる
情報化け対策の手段は、シリアル情報内容の二度読み比
較手段を用いることができるが、周期性ノイズに対する
上記スタートビットとエンドビットの手段を有しないた
めに、読み取ったシリアル情報内容に情報化けが有るか
否かの位相検出が判断できる手段が無いという欠点があ
る。
However, in the case of the serial communication device as described in the conventional example, the basic configuration is configured as a shift register, and only the serial information is shifted in synchronization with the serial transfer clock generated from the master station. This is an extremely simple serial communication means in which each slave station unconditionally latches and reads information as information addressed to itself at a predetermined timing. For this reason, as means for preventing information corruption due to randomly generated device noise, double reading and comparing means of serial information content can be used, but since there is no means for the start bit and end bit for periodic noise, However, there is a disadvantage in that there is no means for determining the phase detection as to whether or not the read serial information content is corrupted.

【0026】仮に、シリアル情報内に位相ずれ検出用の
ビットを付加するよう構成すると、信号処理ビット数が
増えてしまうために、従局回路構成の殆どを占めるシリ
アル転送回路の規模が大きくなり、コストアップしてし
まったり、また、転送ビット数が増えることで、多数の
従局がシリアル伝送路中にぶら下がる装置においては、
一回の通信時間が長くなったり、別の意味でのシリアル
通信装置としての性能低下という欠点になるのである。
If a bit for detecting a phase shift is added to the serial information, the number of signal processing bits increases, so that the scale of the serial transfer circuit, which occupies most of the slave station circuit configuration, increases, and the cost increases. In devices where a large number of slave stations hang in the serial transmission path due to an increase in the number of transfer bits or
This is disadvantageous in that a single communication time becomes longer or the performance of the serial communication device in another sense is deteriorated.

【0027】本発明は、上述した点に鑑みなされたもの
であり、周期性ノイズに対するシリアル情報内の位相ず
れ検出用のビットを付加せずにシリアル転送クロック状
態を監視することで、転送情報のみでデータ長が構成さ
れる極く簡単なシリアル通信手段でも周期性ノイズによ
る転送情報の情報配列位相ずれを判定できる通信装置、
位相ずれ検出方法及び記憶媒体を提供することを目的と
する。
The present invention has been made in view of the above points, and monitors the serial transfer clock state without adding a bit for detecting a phase shift in the serial information with respect to periodic noise. A communication device that can determine the information array phase shift of transfer information due to periodic noise even with extremely simple serial communication means whose data length is configured with
It is an object to provide a phase shift detection method and a storage medium.

【0028】[0028]

【課題を解決するための手段】上記目的を達成するた
め、請求項1の発明は、主局及び複数の従局がループ式
の伝送路を介して接続された通信装置であって、主局か
ら発するシリアル情報の転送に同期したシリアル転送ク
ロックをカウント源とする第1のカウンタ手段と、前記
シリアル転送クロックをカウント源とする第2のカウン
タ手段と、前記第1及び第2のカウンタ手段のカウント
動作に基づき自己が発するシリアル転送クロックの位相
ずれを検出する転送クロック周期監視手段とを有するこ
とを特徴とする。
According to one aspect of the present invention, there is provided a communication apparatus in which a master station and a plurality of slave stations are connected via a loop-type transmission line. First counter means using a serial transfer clock synchronized with transfer of serial information to be generated as a count source, second counter means using the serial transfer clock as a count source, and counting of the first and second counter means Transfer clock cycle monitoring means for detecting a phase shift of a serial transfer clock generated by itself based on the operation.

【0029】上記目的を達成するため、請求項2の発明
は、前記第1のカウンタ手段は、各従局が各々有すると
共に主局からの指示信号でカウント動作が制御され、前
記第2のカウンタ手段は、少なくとも一つ以上有すると
共に前記シリアル転送クロックの総数をカウントし、前
記転送クロック周期監視手段は、主局が有すると共に従
局から所定周期毎の位相タイミングで返送されるフィー
ドバック信号に基づき自己が発するシリアル転送クロッ
クの位相ずれを検出することを特徴とする。
According to a second aspect of the present invention, the first counter means is provided in each of the slave stations, and the counting operation is controlled by an instruction signal from the master station. Has at least one and counts the total number of the serial transfer clocks. The phase shift of the serial transfer clock is detected.

【0030】上記目的を達成するため、請求項3の発明
は、前記第1のカウンタ手段のカウント値が設定値に達
した場合に主局へ位相タイミング通知用のフィードバッ
ク信号を発すると共に従局での一連のシリアル通信の動
作処理を実行する従局通信処理制御手段と、前記第2の
カウンタ手段のカウント値が設定値になる毎に主局へフ
ィードバック信号を返送する返送手段とを有することを
特徴とする。
In order to achieve the above object, a third aspect of the present invention is to provide a feedback signal for notifying a phase timing to a master station when a count value of the first counter means reaches a set value, and to provide a feedback signal to a slave station. Slave communication processing control means for executing a series of serial communication operation processing, and return means for returning a feedback signal to the master station every time the count value of the second counter means reaches a set value. I do.

【0031】上記目的を達成するため、請求項4の発明
は、前記第2のカウンタ手段は、各従局が各々有し、前
記伝送路は、前記転送クロック周期監視手段へ所定の周
期毎に発生する位相タイミングを伝送する伝送路であり
且つワイヤードOR回路で構成されると共に各従局から
発する複数のフィードバック信号を一つの信号として主
局へ伝送し、前記転送クロック周期監視手段は、前記伝
送路を介して一つの信号で伝送される信号状態に基づき
各従局のシリアル転送クロックの位相ずれを検出するこ
とを特徴とする。
According to a fourth aspect of the present invention, the second counter means is provided in each of the slave stations, and the transmission line is generated by the transfer clock cycle monitoring means at predetermined intervals. And a plurality of feedback signals generated from each slave station are transmitted as a single signal to the master station. The phase shift of the serial transfer clock of each slave station is detected based on the state of a signal transmitted by one signal via the slave station.

【0032】上記目的を達成するため、請求項5の発明
は、前記第2のカウンタ手段は、前記伝送路の最遠地点
に接続される従局が有し、前記伝送路は、前記転送クロ
ック周期監視手段へ所定の周期毎に発生する位相タイミ
ングを伝送する伝送路であり、前記転送クロック周期監
視手段は、前記伝送路を介して伝送される信号状態に基
づき前記伝送路内のシリアル転送クロックの位相ずれを
検出することを特徴とする。
According to a fifth aspect of the present invention, the second counter means includes a slave station connected to the farthest point of the transmission line, wherein the transmission line monitors the transfer clock cycle. Means for transmitting a phase timing generated every predetermined period to the means, wherein the transfer clock cycle monitoring means determines a phase of a serial transfer clock in the transmission path based on a signal state transmitted through the transmission path. It is characterized by detecting a shift.

【0033】上記目的を達成するため、請求項6の発明
は、前記第2のカウンタ手段は、前記伝送路の任意の地
点に接続される従局が有し、前記伝送路は、前記転送ク
ロック周期監視手段へ所定の周期毎に発生する位相タイ
ミングを伝送する伝送路であり、前記転送クロック周期
監視手段は、前記伝送路を介して伝送される信号状態に
基づき前記伝送路内のシリアル転送クロックの位相ずれ
を検出することを特徴とする。
In order to achieve the above object, the invention according to claim 6 is characterized in that the second counter means has a slave station connected to an arbitrary point on the transmission line, and the transmission line has the transmission clock cycle. A transmission line for transmitting a phase timing generated every predetermined period to a monitoring unit, wherein the transfer clock cycle monitoring unit is configured to transmit a serial transfer clock in the transmission line based on a signal state transmitted through the transmission line. The phase shift is detected.

【0034】上記目的を達成するため、請求項7の発明
は、前記第2のカウンタ手段は、主局が有し、前記従局
通信処理制御手段は、前記伝送路中の最後に位置する従
局を経由したシリアル転送クロック或いは前記伝送路中
の最遠に位置する従局へのシリアル転送クロックの何れ
かを主局へフィードバックし、前記転送クロック周期監
視手段は、前記返送されたシリアル転送クロックをカウ
ント源としたカウント動作で所定周期毎の位相タイミン
グを算出し前記伝送路内のシリアル転送クロックの位相
ずれを検出することを特徴とする。
According to a seventh aspect of the present invention, the second counter means is provided in the master station, and the slave station communication processing control means is provided with a slave station located last in the transmission path. Either the serial transfer clock passed through or the serial transfer clock to the farthest slave station in the transmission path is fed back to the master station, and the transfer clock cycle monitoring means counts the returned serial transfer clock to a count source. The phase operation of the serial transfer clock in the transmission path is detected by calculating the phase timing for each predetermined period by the counting operation described above.

【0035】上記目的を達成するため、請求項8の発明
は、前記主局とは、通信装置本体を装備した装置の中央
処理ユニットが有するシリアル通信のメイン装置であ
り、前記従局とは、通信装置本体を装備した装置に点在
する電気ユニットが有するシリアル通信のサブ装置であ
ることを特徴とする。
In order to achieve the above object, the invention according to claim 8 is characterized in that the master station is a serial communication main device included in a central processing unit of a device equipped with a communication device main body, and the slave station communicates with the slave station. It is a serial communication sub-device provided in the electric units scattered in the device equipped with the device main body.

【0036】上記目的を達成するため、請求項9の発明
は、主局及び複数の従局がループ式の伝送路を介して接
続された通信装置における位相ずれ検出方法であって、
主局から発するシリアル情報の転送に同期したシリアル
転送クロックをカウント源とする第1のカウンタステッ
プと、前記シリアル転送クロックをカウント源とする第
2のカウンタステップと、前記第1及び第2のカウンタ
ステップのカウント動作に基づき自己が発するシリアル
転送クロックの位相ずれを検出する転送クロック周期監
視ステップとを有することを特徴とする。
In order to achieve the above object, a ninth aspect of the present invention is a method for detecting a phase shift in a communication apparatus in which a master station and a plurality of slave stations are connected via a loop transmission path.
A first counter step using a serial transfer clock synchronized with the transfer of serial information issued from the master station as a count source, a second counter step using the serial transfer clock as a count source, and the first and second counters And a transfer clock cycle monitoring step of detecting a phase shift of a serial transfer clock generated by itself based on a step counting operation.

【0037】上記目的を達成するため、請求項10の発
明は、前記第1のカウンタステップは、各従局が各々有
すると共に主局からの指示信号でカウント動作が制御さ
れ、前記第2のカウンタステップは、少なくとも一つ以
上有すると共に前記シリアル転送クロックの総数をカウ
ントし、前記転送クロック周期監視ステップは、主局が
有すると共に従局から所定周期毎の位相タイミングで返
送されるフィードバック信号に基づき自己が発するシリ
アル転送クロックの位相ずれを検出することを特徴とす
る。
According to a tenth aspect of the present invention, the first counter step is provided in each of the slave stations, and the counting operation is controlled by an instruction signal from the master station. Has at least one and counts the total number of the serial transfer clocks. The phase shift of the serial transfer clock is detected.

【0038】上記目的を達成するため、請求項11の発
明は、前記第1のカウンタステップのカウント値が設定
値に達した場合に主局へ位相タイミング通知用のフィー
ドバック信号を発すると共に従局での一連のシリアル通
信の動作処理を実行する従局通信処理制御ステップと、
前記第2のカウンタステップのカウント値が設定値にな
る毎に主局へフィードバック信号を返送する返送ステッ
プとを有することを特徴とする。
To achieve the above object, the invention of claim 11 is to provide a feedback signal for notifying a phase timing to the master station when the count value of the first counter step has reached a set value, and to provide a feedback signal to the slave station. Slave communication processing control step of executing a series of serial communication operation processing,
A returning step of returning a feedback signal to the master station every time the count value of the second counter step reaches a set value.

【0039】上記目的を達成するため、請求項12の発
明は、前記第2のカウンタステップは、各従局が各々有
し、前記伝送路は、前記転送クロック周期監視ステップ
へ所定の周期毎に発生する位相タイミングを伝送する伝
送路であり且つワイヤードOR回路で構成されると共に
各従局から発する複数のフィードバック信号を一つの信
号として主局へ伝送し、前記転送クロック周期監視ステ
ップでは、前記伝送路を介して一つの信号で伝送される
信号状態に基づき各従局のシリアル転送クロックの位相
ずれを検出することを特徴とする。
According to a twelfth aspect of the present invention, the second counter step is provided in each of the slave stations, and the transmission line is generated every predetermined period by the transfer clock cycle monitoring step. And a plurality of feedback signals generated from each slave station are transmitted to the master station as one signal, and in the transfer clock cycle monitoring step, the transmission path is transmitted through the transmission path. The phase shift of the serial transfer clock of each slave station is detected based on the signal state transmitted by one signal via the slave station.

【0040】上記目的を達成するため、請求項13の発
明は、前記第2のカウンタステップは、前記伝送路の最
遠地点に接続される従局が有し、前記伝送路は、前記転
送クロック周期監視ステップへ所定の周期毎に発生する
位相タイミングを伝送する伝送路であり、前記転送クロ
ック周期監視ステップでは、前記伝送路を介して伝送さ
れる信号状態に基づき前記伝送路内のシリアル転送クロ
ックの位相ずれを検出することを特徴とする。
According to a thirteenth aspect of the present invention, the second counter step includes a slave station connected to the farthest point of the transmission line, wherein the transmission line monitors the transfer clock cycle. A transmission path for transmitting a phase timing generated every predetermined period to the step, wherein the transfer clock cycle monitoring step includes the step of: determining a phase of a serial transfer clock in the transmission path based on a state of a signal transmitted through the transmission path. It is characterized by detecting a shift.

【0041】上記目的を達成するため、請求項14の発
明は、前記第2のカウンタステップは、前記伝送路の任
意の地点に接続される従局が有し、前記伝送路は、前記
転送クロック周期監視ステップへ所定の周期毎に発生す
る位相タイミングを伝送する伝送路であり、前記転送ク
ロック周期監視ステップでは、前記伝送路を介して伝送
される信号状態に基づき前記伝送路内のシリアル転送ク
ロックの位相ずれを検出することを特徴とする。
In order to achieve the above object, the invention according to claim 14 is characterized in that the second counter step is provided by a slave station connected to an arbitrary point on the transmission line, and the transmission line is connected to the transmission clock cycle. A transmission path for transmitting a phase timing generated every predetermined period to a monitoring step, wherein in the transfer clock cycle monitoring step, a serial transfer clock in the transmission path is transmitted based on a signal state transmitted through the transmission path. The phase shift is detected.

【0042】上記目的を達成するため、請求項15の発
明は、前記第2のカウンタステップは、主局が有し、前
記従局通信処理制御ステップでは、前記伝送路中の最後
に位置する従局を経由したシリアル転送クロック或いは
前記伝送路中の最遠に位置する従局へのシリアル転送ク
ロックの何れかを主局へフィードバックし、前記転送ク
ロック周期監視ステップでは、前記返送されたシリアル
転送クロックをカウント源としたカウント動作で所定周
期毎の位相タイミングを算出し前記伝送路内のシリアル
転送クロックの位相ずれを検出することを特徴とする。
In order to achieve the above object, the invention according to claim 15 is characterized in that the second counter step is provided in a master station, and in the slave station communication processing control step, a slave station located last in the transmission path is identified. Either the serial transfer clock passed through or the serial transfer clock to the farthest slave station in the transmission path is fed back to the master station. In the transfer clock cycle monitoring step, the returned serial transfer clock is counted by a count source. The phase operation of the serial transfer clock in the transmission path is detected by calculating the phase timing for each predetermined period by the counting operation described above.

【0043】上記目的を達成するため、請求項16の発
明は、前記主局とは、通信装置を装備した装置の中央処
理ユニットが有するシリアル通信のメイン装置であり、
前記従局とは、通信装置を装備した装置に点在する電気
ユニットが有するシリアル通信のサブ装置であることを
特徴とする。
To achieve the above object, the invention of claim 16 is the invention wherein the master station is a serial communication main device included in a central processing unit of a device equipped with a communication device,
The slave station is a serial communication sub-device of an electric unit scattered in a device equipped with a communication device.

【0044】上記目的を達成するため、請求項17の発
明は、主局及び複数の従局がループ式の伝送路を介して
接続された通信装置に適用される位相ずれ検出方法を実
行するプログラムを記憶したコンピュータにより読み出
し可能な記憶媒体であって、前記位相ずれ検出方法は、
主局から発するシリアル情報の転送に同期したシリアル
転送クロックをカウント源とする第1のカウンタステッ
プと、前記シリアル転送クロックをカウント源とする第
2のカウンタステップと、前記第1及び第2のカウンタ
ステップのカウント動作に基づき自己が発するシリアル
転送クロックの位相ずれを検出する転送クロック周期監
視ステップとを有することを特徴とする。
In order to achieve the above object, an invention according to claim 17 is a program for executing a phase shift detecting method applied to a communication apparatus in which a master station and a plurality of slave stations are connected via a loop transmission path. A storage medium readable by a stored computer, wherein the phase shift detection method includes:
A first counter step using a serial transfer clock synchronized with the transfer of serial information issued from the master station as a count source, a second counter step using the serial transfer clock as a count source, and the first and second counters And a transfer clock cycle monitoring step of detecting a phase shift of a serial transfer clock generated by itself based on a step counting operation.

【0045】[0045]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0046】[1]第1の実施の形態 図1は本発明の第1の実施の形態に係るシリアル通信装
置の要部の構成を示すと共に特許請求の範囲に対応させ
た機能ブロック図である。本発明の第1の実施の形態に
係るシリアル通信装置は、主局1と、複数の従局2−
1、2−2、・・・2−nを備える構成となっている。
主局1は、転送クロック周期監視手段111を備え、従
局2−1、2−2、・・・2−nは、第1のカウンタ手
段112、従局通信処理制御手段113、第2のカウン
タ手段114、返送手段115を備えている。
[1] First Embodiment FIG. 1 is a functional block diagram showing a configuration of a main part of a serial communication device according to a first embodiment of the present invention and corresponding to the claims. . The serial communication device according to the first embodiment of the present invention includes a master station 1 and a plurality of slave stations 2-.
.., 2-n.
The master station 1 includes a transfer clock cycle monitoring unit 111, and the slave stations 2-1 and 2-2,..., 2-n include a first counter unit 112, a slave station communication processing control unit 113, 114 and return means 115.

【0047】上記各部の構成を説明すると、第1のカウ
ンタ手段112は、主局から発せられるシリアル情報の
転送に同期して発するシリアル転送クロックをカウント
源とし、主局から発する指示信号によりカウント動作が
制御される。従局通信処理制御手段113は、第1のカ
ウンタ手段112が予め設定されたカウント値に達する
と、主局にその位相タイミングを知らせるフィードバッ
ク信号を発すると共に、従局での一連のシリアル通信の
シリアル情報に対する所定の信号処理を実行するタイミ
ングとしてシリアル通信の動作処理を実行する。第2の
カウンタ手段114は、シリアル転送クロックをカウン
ト源とし入力されるシリアル転送クロックの総数をカウ
ントする。返送手段115は、第2のカウンタ手段11
4のカウント値が予め設定された値になる毎に主局へフ
ィードバック信号を返送する。転送クロック周期監視手
段111は、返送手段115から所定周期毎の位相タイ
ミングで返送されるフィードバック信号に基づき、自己
が発するシリアル転送クロックの位相ずれを検出する。
The first counter means 112 uses a serial transfer clock generated in synchronization with the transfer of serial information generated from the main station as a count source, and performs a count operation in response to an instruction signal generated from the main station. Is controlled. When the first counter means 112 reaches a preset count value, the slave station communication processing control means 113 issues a feedback signal notifying the master station of the phase timing, and also performs a response to the serial information of a series of serial communication in the slave station. The operation processing of the serial communication is executed as timing for executing the predetermined signal processing. The second counter 114 counts the total number of input serial transfer clocks using the serial transfer clock as a count source. The return means 115 is the second counter means 11
A feedback signal is returned to the master station every time the count value of 4 reaches a preset value. The transfer clock cycle monitoring means 111 detects a phase shift of the serial transfer clock generated by the transfer clock cycle monitoring means 111 based on a feedback signal returned from the return means 115 at a phase timing every predetermined cycle.

【0048】尚、上記第2のカウンタ手段114は、複
数の従局が個々に有する構成としてもよく、或いはシリ
アル通信伝送路の最遠地点に接続される従局が有する構
成としてもよく、或いはシリアル通信伝送路の任意の地
点に接続される従局が有する構成としてもよく、或いは
主局が有する構成としてもよい。後述する本発明の第2
の実施の形態では、上記第2のカウンタ手段114はシ
リアル通信伝送路中に設けられている。また、後述する
本発明の第3の実施の形態では、上記第2のカウンタ手
段114は主局に設けられている。
It should be noted that the second counter means 114 may be constituted by a plurality of slave stations individually, may be constituted by a slave station connected to the farthest point of the serial communication transmission line, or may be constituted by a serial communication transmission line. The slave station connected to an arbitrary point on the road may have the configuration or the master station may have the configuration. Second embodiment of the present invention described below
In the embodiment, the second counter means 114 is provided in a serial communication transmission line. In a third embodiment of the present invention described later, the second counter means 114 is provided in the main station.

【0049】図2は本発明の第1の実施の形態に係るシ
リアル通信装置の従局の回路構成を示すブロック図であ
る。本発明の第1の実施の形態に係るシリアル通信装置
の従局は、入力セレクタ回路201、入力ラッチ回路2
02、シフトレジスタ回路203、二度読みラッチ回路
204、出力ラッチ回路205、クロック数カウンタ回
路206、位相制御カウンタ回路207、カウント値デ
コード回路208、多入力AND回路209、ゲートロ
ジック群210を備える構成となっている。尚、図2に
示す構成は一例であり、図示の構成に限定されるもので
はない。
FIG. 2 is a block diagram showing a circuit configuration of a slave station of the serial communication device according to the first embodiment of the present invention. The slave station of the serial communication device according to the first embodiment of the present invention includes an input selector circuit 201, an input latch circuit 2
02, a shift register circuit 203, a double read latch circuit 204, an output latch circuit 205, a clock number counter circuit 206, a phase control counter circuit 207, a count value decode circuit 208, a multi-input AND circuit 209, and a gate logic group 210. It has become. The configuration illustrated in FIG. 2 is an example, and the configuration is not limited to the illustrated configuration.

【0050】入力セレクタ回路201は、並列入力A、
並列入力Bの何れかを選択する。入力ラッチ回路202
は、入力セレクタ回路201からの入力を保持する。シ
フトレジスタ回路203は、シリアル情報の転送を実行
する。二度読みラッチ回路204は、シリアル通信動作
でシフトレジスタ回路203に読み取ったシリアル情報
の1回目のデータを保持し、シフトレジスタ回路203
が読み取った2回目のシリアルデータとの比較を行う。
出力ラッチ回路205は、上記比較の結果、データ内容
が一致した場合に書き込まれ、並列出力として出力す
る。この場合、1回目のデータと2回目のデータの比較
回路は、イクスクルーシブオア回路(以下、EXOR回
路と略称)で構成されているが、図1では二度読みラッ
チ回路204に含まれた構成であるため、特に図示しな
い。
The input selector circuit 201 has a parallel input A,
Select one of the parallel inputs B. Input latch circuit 202
Holds the input from the input selector circuit 201. The shift register circuit 203 performs transfer of serial information. The twice-read latch circuit 204 holds the first data of the serial information read by the shift register circuit 203 in the serial communication operation, and
Is compared with the second serial data read.
The output latch circuit 205 is written when the data contents match as a result of the comparison, and outputs the data as a parallel output. In this case, the comparison circuit for the first data and the second data is constituted by an exclusive OR circuit (hereinafter, abbreviated as an EXOR circuit), but is included in the double read latch circuit 204 in FIG. The configuration is not shown particularly.

【0051】クロック数カウンタ回路206は、本発明
で言う第2のカウンタ手段に対応しており、主局から発
せられるシリアル情報の転送に同期して発するシリアル
転送クロックをカウント源とする。位相制御カウンタ回
路207は、本発明で言う第1のカウンタ手段に対応し
ており、従局でのシリアル通信制御信号の処理タイミン
グを算出し、カウント値デコード回路208により所定
のタイミングパルスを出力してシリアル通信の信号処理
の実行を指示する。カウント値デコード回路208は、
所定のタイミングパルスを出力する。多入力AND回路
209は、従局でのシリアル通信の処理実行位相をタイ
ミング出力信号として一つにまとめ、主局へフィードバ
ック信号として返信する。ゲートロジック群210は、
カウント値デコード回路208でセレクトされたタイミ
ングを基本に所定の回路処理条件を付け加える。
The clock number counter circuit 206 corresponds to the second counter means in the present invention, and uses a serial transfer clock generated in synchronization with the transfer of serial information generated from the main station as a count source. The phase control counter circuit 207 corresponds to the first counter means in the present invention, calculates the processing timing of the serial communication control signal in the slave station, and outputs a predetermined timing pulse by the count value decoding circuit 208. Instructs execution of serial communication signal processing. The count value decoding circuit 208
Outputs a predetermined timing pulse. The multi-input AND circuit 209 combines the serial communication processing execution phases in the slave station into one timing output signal and returns the same as a feedback signal to the master station. The gate logic group 210 includes:
A predetermined circuit processing condition is added based on the timing selected by the count value decoding circuit 208.

【0052】尚、本発明の第1の実施の形態において
は、説明を容易にするため、従局の構成は4ビット構成
で示すが8ビットでもよく、ビット数は特に限定される
ものではない。
In the first embodiment of the present invention, for ease of explanation, the configuration of the slave station is shown as a 4-bit configuration, but may be 8 bits, and the number of bits is not particularly limited.

【0053】図3は本発明の第1の実施の形態に係るシ
リアル通信装置のシステム構成を示すブロック図であ
る。本発明の第1の実施の形態に係るシリアル通信装置
は、主局320と、複数の従局321、322、32
3、324とを備える構成となっている。尚、図3に示
す構成は一例であり、図示の構成に限定されるものでは
ない。
FIG. 3 is a block diagram showing a system configuration of the serial communication device according to the first embodiment of the present invention. The serial communication device according to the first embodiment of the present invention includes a master station 320 and a plurality of slave stations 321, 322, 32.
3, 324. Note that the configuration illustrated in FIG. 3 is an example, and the configuration is not limited to the illustrated configuration.

【0054】主局320と、上記図2に示した構成を有
する複数の従局321、322、323、324との間
には、図に示す如くの形態で伝送路が構成されている。
各従局321〜324から主局320へ出力されるフィ
ードバック制御信号は、図示の如くワーヤードOR構成
で接続されている。
A transmission line is formed between the master station 320 and the plurality of slave stations 321, 322, 323, and 324 having the configuration shown in FIG. 2 in the form shown in the figure.
Feedback control signals output from the slave stations 321 to 324 to the master station 320 are connected in a wired OR configuration as shown in the figure.

【0055】先ず、本発明の第1の実施の形態に係るシ
リアル通信装置の動作を説明する前に、上記図2に示し
た本発明の第1の実施の形態に係るシリアル通信装置の
従局の回路構成をデータの流れに沿って簡単に説明す
る。
Before explaining the operation of the serial communication device according to the first embodiment of the present invention, the slave station of the serial communication device according to the first embodiment of the present invention shown in FIG. The circuit configuration will be briefly described along the flow of data.

【0056】入力セレクタ回路201は、複数ある従局
の並列入力情報(図中並列入力A、Bで示す)の中から
指示された情報(情報ロード指示が通信リセット中か否
かで並列入力A、Bの何れかが選択される)を、次段に
構成される入力ラッチ回路202に伝達する。入力ラッ
チ回路202は、位相制御カウンタ回路207でのカウ
ント値出力が00H時に入力されるシリアル転送クロッ
クの立ち上がりでラッチ保持し、シフトレジスタ回路2
03のロードデータとして確保する。尚、入力ラッチ回
路202には、特に図示していないが、入力と出力とが
1対1でビット毎に対応した構成でEXOR回路に接続
され、各ビットでのEXOR出力が多入力OR回路でゲ
ートされ、図中REQで示す出力を通信要求信号として
主局に返送する。
The input selector circuit 201 determines the information designated from the parallel input information (indicated by the parallel inputs A and B in the figure) of a plurality of slave stations (the parallel inputs A, B depending on whether or not the information load instruction is resetting the communication). B is selected) to the input latch circuit 202 configured in the next stage. The input latch circuit 202 latches and holds at the rising edge of the serial transfer clock input when the count value output from the phase control counter circuit 207 is 00H.
03 load data. Although not particularly shown, the input latch circuit 202 is connected to an EXOR circuit in a configuration in which an input and an output correspond to each other on a bit-by-bit basis, and an EXOR output of each bit is a multi-input OR circuit. It is gated and returns an output indicated by REQ in the figure to the master station as a communication request signal.

【0057】上記の通信要求信号は、主局に転送した従
局の入力情報が更新された時に発生するもので、入力ラ
ッチ回路202の出力にラッチ保持された転送完了デー
タと、入力ラッチ回路202の入力に伝達される現状で
の並列入力データを各々同一ビット毎に1対1で比較す
れば、主局に転送した結果と現状における入力信号状態
が更新されたか否かを検出できるのである。従って、入
出力信号状態のうち何れかひとつでも更新されるとEX
OR回路が不一致の状態となり、通信要求信号としてR
EQ信号をセットするよう構成されている。それが、通
信要求信号として主局にフィードバックされる制御信号
として構成されている。
The above-mentioned communication request signal is generated when the input information of the slave station transferred to the master station is updated. The transfer request data latched at the output of the input latch circuit 202 and the transfer completion data of the input latch circuit 202 are output. By comparing the current parallel input data transmitted to the input one by one for each of the same bits, it is possible to detect whether or not the result transferred to the master station and the current input signal state have been updated. Therefore, EX is updated when any one of the input / output signal states is updated.
The OR circuit is in a mismatched state, and the communication request signal R
It is configured to set an EQ signal. It is configured as a control signal that is fed back to the master station as a communication request signal.

【0058】シフトレジスタ回路203は、位相制御カ
ウンタ回路207でのカウント値出力が00H時もしく
は06H時に、シリアル転送クロックの立ち下がりで入
力ラッチ回路202でラッチ保持されたデータをロード
して、先ず01H以降は一回目のシフト動作を実行し、
シリアル転送データを二度読みラッチ回路204にラッ
チ保持する。次に06H以降に、二回目のシフト動作を
実行することで、次段に位置する二度読みラッチ回路2
04にラッチ保持した一回目のシフト動作によるシリア
ル転送データと、二回目のシフト動作によるシリアル転
送データとをビット毎に比較することができる。
When the count value output from the phase control counter circuit 207 is 00H or 06H, the shift register circuit 203 loads the data latched and held by the input latch circuit 202 at the falling edge of the serial transfer clock. After that, execute the first shift operation,
The serial transfer data is read twice and latched and held in the latch circuit 204. Next, the second shift operation is performed after 06H, so that the double read latch circuit 2 located at the next stage is performed.
It is possible to compare the serial transfer data of the first shift operation latched and held in 04 with the serial transfer data of the second shift operation for each bit.

【0059】尚、この検出回路は、特に図示していない
が、二度読みラッチ回路204に1対1でビット対応し
た構成でEXOR回路で接続され、各ビットでのEXO
R出力が多入力AND回路でゲートされて、図中OUT
で示す出力として表現されている。その結果、一致した
場合は通信成功と判断でき、出力ラッチ回路205にラ
ッチ保持される。不一致の場合は通信失敗と判断し、位
相制御カウンタ回路207のカウント値が0DHのタイ
ミングでタイミング出力信号が出力されて、主局へとシ
リアル通信エラーを伝達する。つまり、二度目で得た主
局からのシリアル転送データの全ビットが、一度目で得
た内容と一致することによりシリアル通信結果が真であ
ると判断して、最終段に位置する出力ラッチ回路205
に従局での出力として、並列出力されるのである。
Although not shown, this detection circuit is connected to the double read latch circuit 204 by an EXOR circuit in a one-to-one bit correspondence configuration, and an EXO circuit for each bit is provided.
R output is gated by a multi-input AND circuit, and OUT
It is expressed as the output indicated by. As a result, if they match, it can be determined that communication has succeeded, and the data is latched and held in the output latch circuit 205. If they do not match, it is determined that communication has failed, and a timing output signal is output at the timing when the count value of the phase control counter circuit 207 is 0DH, and a serial communication error is transmitted to the master station. In other words, when all bits of the serial transfer data from the master obtained in the second time match the contents obtained in the first time, it is determined that the serial communication result is true, and the output latch circuit located at the final stage 205
Are output in parallel as output at the slave station.

【0060】次に、上記図3に示した本発明の第1の実
施の形態に係るシリアル通信装置の主局、従局間におけ
る制御信号について簡単に説明する。
Next, control signals between the master station and the slave stations of the serial communication apparatus according to the first embodiment of the present invention shown in FIG. 3 will be briefly described.

【0061】図3に示す如く、本シリアル通信装置は、
主局320を起点として、複数の従局321、322、
323、・・・に対し各々信号が接続されている。シリ
アル転送データ信号であるデータのシフト信号は、主局
のシフトアウトを起点とし、次段の従局のシフトインに
接続され、同従局のシフトアウトから次の従局のシフト
インへと次々の従局経由で接続され、最後に主局のシフ
トインへと戻ってくるループ状に構成されたループ式伝
送路を形成している。それにより、シリアル転送データ
信号は、予め各従局に従局情報をセットしていれば、主
局から発する各従局へのシフト転送で、同時に各従局に
従局情報を吸上げることができるのである。尚、制御
上、ダミーシフト動作がある場合は、そのシフトにて得
られるデータを無視すればよいことは言うまでもない。
更に、予め各従局に従局情報をセットしなくても主局か
ら発する各従局へのシフト転送後に従局情報吸上げシフ
ト転送を実行してもよく、シリアル転送データのシフト
タイミングは、特に限定されない。
As shown in FIG. 3, the present serial communication device
Starting from the master station 320, a plurality of slave stations 321, 322,
323,... Are respectively connected to signals. The data shift signal, which is a serial transfer data signal, starts from the shift-out of the master station, is connected to the shift-in of the next slave station, and passes from the shift-out of the slave station to the shift-in of the next slave station. , And finally forms a loop-type transmission line that is looped back to the main station shift-in. Accordingly, if the slave station information is set in advance for each slave station in the serial transfer data signal, the slave station can simultaneously absorb the slave station information by shift transfer from the master station to each slave station. It is needless to say that if there is a dummy shift operation in control, data obtained by the shift may be ignored.
Further, even if the slave station information is not set in advance, the slave station information absorption shift transfer may be executed after the shift transfer from the master station to each slave station, and the shift timing of the serial transfer data is not particularly limited.

【0062】一方、主局から動作指示する各従局への指
示制御信号は、システムリセット信号、通信リセット信
号、従局でのカウンタ回路のカウント動作を指示する指
示信号、シリアル転送データをシフト転送するための転
送クロック信号の4種類であり、全て主局から並列に接
続されるものである。システムリセット信号は、無条件
に従局回路動作をゼロクリアして停止させるもので、通
信リセット信号は、通信動作実行における従局回路動作
の一部回路の初期化のためのもので、通信エラー時のリ
トライ動作などのために用いられる。指示信号は、各従
局が有する通信タイミング検出制御用である位相制御カ
ウンタ回路207のカウント動作を制御するイネーブル
端子に接続されるものである。転送クロック信号は、シ
リアル転送データの転送シフトを実行する際に用いられ
るシフトクロックであるが、本実施形態のようにクロッ
ク数カウンタ回路206にも接続させて転送クロック監
視手段としても利用される。
On the other hand, the instruction control signal from the master station to each slave station for instructing the operation is a system reset signal, a communication reset signal, an instruction signal for instructing the counter circuit to perform a counting operation at the slave station, and serial transfer data for shift transfer. The four types of transfer clock signals are all connected in parallel from the main station. The system reset signal is used to unconditionally reset the slave station circuit operation to zero and stop it. The communication reset signal is used to initialize some of the slave station circuit operations during the execution of the communication operation. Used for operations and the like. The instruction signal is connected to an enable terminal for controlling the count operation of the phase control counter circuit 207 for controlling communication timing detection of each slave station. The transfer clock signal is a shift clock used when performing a transfer shift of serial transfer data, but is also connected to the clock number counter circuit 206 and used as transfer clock monitoring means as in the present embodiment.

【0063】また、従局から主局へとフィードバックさ
れる制御信号は、従局における通信処理制御位相を伝達
するタイミング出力信号と、従局で発生する通信リクエ
ストを主局へ伝達する通信要求信号と、従局で受信した
転送クロックの総数をカウントし、主局へ所定周期で位
相を知らせるクロック数出力信号の3種類であり、シス
テムとしては、4種類の従局制御信号と3種類のフィー
ドバック制御信号がシリアル転送データ信号以外に位置
付けられるものである。そして、3種類のフィードバッ
ク制御信号は、各信号種類毎に独立して一つのワイヤー
ドOR構成で主局に接続されている。
The control signal fed back from the slave station to the master station includes a timing output signal for transmitting a communication processing control phase in the slave station, a communication request signal for transmitting a communication request generated in the slave station to the master station, Counts the total number of transfer clocks received by the controller, and outputs three types of clock number output signals for notifying the phase to the master station in a predetermined cycle. As a system, four types of slave station control signals and three types of feedback control signals are serially transferred. It is positioned other than the data signal. The three types of feedback control signals are independently connected to the main station in one wired OR configuration for each signal type.

【0064】通信要求信号は、上記図2で説明した如
く、入力ラッチ回路202で検出される転送前後のデー
タ内容のうち、何れか1ビットでも情報内容が変化した
場合にワイヤードORを構成するバッファをオンする。
そして、複数の従局の各々通信要求信号は、ワイヤード
OR構成で一つの伝送信号として主局に接続されて、且
つ、複数の従局の各々通信要求信号のうち何れか一つの
信号がオンすることで、主局に通信要求があることを伝
達されるのである。
As described with reference to FIG. 2, the communication request signal is a buffer which forms a wired OR when any one bit of the data content before and after the transfer detected by the input latch circuit 202 changes. Turn on.
The communication request signal of each of the plurality of slave stations is connected to the master station as one transmission signal in a wired OR configuration, and any one of the communication request signals of the plurality of slave stations is turned on. The main station is notified that there is a communication request.

【0065】一方、タイミング出力信号は、上述した位
相制御カウンタ回路207によってカウントされたタイ
ミングを予め設定された位相で出力される。本実施形態
では、主局へ発する従局データをシフトレジスタ回路2
03にロードする00H時、主局から転送された一回目
のデータを二度読みラッチ回路204にストアする06
H時、主局から転送された二回目のデータシフトを完了
した0CH時に、それぞれオンする。また、主局から転
送された一回目と二回目のデータ内容を比較した結果、
一致していない時にオンさせる0DH時の各タイミング
に設定している。
On the other hand, the timing output signal is outputted at a preset phase at the timing counted by the phase control counter circuit 207 described above. In this embodiment, the slave station data transmitted to the master station is
03, the first data transferred from the master station is read twice and stored in the latch circuit 204 at 00H.
At the time of H, at the time of 0CH at which the second data shift transferred from the main station is completed, each is turned on. Also, as a result of comparing the first and second data contents transferred from the master station,
Each timing is set at 0DH to be turned on when they do not match.

【0066】これにより、主局は、所定のタイミングが
来ると必ずオンされる00H、06H、0CHに対し
て、自己が有する第1の主局カウンタ手段でのカウント
値を基に、オン位相をチェックする。この通常、エラー
が無い場合は全従局が一斉にオンするため、別のタイミ
ングでオンすることはない。逆に何れかの従局にタイミ
ングエラーがある場合は別のタイミングでオンする従局
が出るため、ノイズ等による転送シフトエラーがあった
ことが分かるのである。また、0DHのように、エラー
なしでオフする場合はエラーが一つの従局でもあれば信
号はオンするため、転送シフトエラーがあったことが分
かるのである。従って、タイミング出力信号は、00
H、06H、0CHのタイミングだけオンを確認し、そ
れ以外のタイミングでオンしないことを主局が検出確認
すれば、全従局での通信処理制御が正常か否かが判断で
きるのである。
Thus, the main station changes the ON phase with respect to 00H, 06H, and 0CH, which are always turned on when a predetermined timing comes, based on the count value of the first main station counter means of the main station. To check. Normally, when there is no error, all the slave stations are turned on at the same time, so they are not turned on at another timing. Conversely, if there is a timing error in any of the slave stations, some slave stations are turned on at another timing, so that it can be seen that a transfer shift error due to noise or the like has occurred. When the signal is turned off without an error, such as 0DH, the signal is turned on even if there is only one error in the slave station, so that it can be seen that a transfer shift error has occurred. Therefore, the timing output signal is 00
If the master station confirms ON only at the timings of H, 06H, and 0CH and detects and confirms that it does not turn on at other timings, it is possible to determine whether or not communication processing control in all slave stations is normal.

【0067】次に、本発明の第1の実施の形態に係るシ
リアル通信装置の従局回路構成での動作を図4に基づき
説明する。図4は本発明の第1の実施の形態に係るシリ
アル通信装置の従局回路構成での動作を示すタイミング
チャートである。本実施形態においては、基本的に1回
に実行するシリアル通信で2度、転送シフト動作を実行
する。
Next, the operation of the serial communication device according to the first embodiment of the present invention in a slave station circuit configuration will be described with reference to FIG. FIG. 4 is a timing chart showing an operation of the serial communication device according to the first embodiment of the present invention in a slave station circuit configuration. In the present embodiment, the transfer shift operation is basically performed twice by serial communication performed once.

【0068】シリアル通信を実行開始する場合、主局は
従局での通信動作処理の位相歩調を取るために先ず通信
リセットを発して、従局通信処理制御手段である位相制
御カウンタ回路207のカウント値をゼロクリアする。
そのことにより、従局情報を転送するシフトレジスタ回
路203に新たな転送データのロード動作が可能にな
る。また、通信要求信号は、シフトレジスタ回路203
に新たな転送データをロードする際に、入力ラッチ回路
202でラッチ更新されるため、そのタイミングで自動
的に解除されることは言うまでもない。つまり、主局
は、シリアル通信を終了すると通信要求信号をチェック
して次なるシリアル通信の実行に備えるのである。言う
までもなく、主局制御によってシリアル通信の必要性が
発生すれば、通信要求信号に関係無くシリアル通信を実
行する。その時でも、通信要求信号は、入力ラッチ回路
202でラッチ更新されるため、そのタイミングで自動
的に解除される。
When starting the serial communication, the master station first issues a communication reset to take the phase of the communication operation processing in the slave station, and resets the count value of the phase control counter circuit 207 as the slave station communication processing control means. Clear to zero.
As a result, it becomes possible to load new transfer data into the shift register circuit 203 that transfers slave station information. The communication request signal is transmitted to the shift register circuit 203.
It is needless to say that, when new transfer data is loaded, the latch is updated by the input latch circuit 202, and is automatically released at that timing. In other words, the master station checks the communication request signal after completing the serial communication and prepares for the next serial communication. Needless to say, if the necessity of serial communication arises due to master station control, serial communication is executed regardless of the communication request signal. Even at that time, the communication request signal is latched and updated by the input latch circuit 202, so that it is automatically released at that timing.

【0069】位相制御カウンタ回路207のカウント値
が00Hになると、その後に入力されるシリアル転送ク
ロックの立ち上がりにて入力ラッチ回路202に従局の
並列入力情報がラッチ保持され、そのクロックの立ち下
がりにてシフトレジスタ回路203にラッチデータがロ
ードされる。そして、主局は、カウント動作を実行させ
るために指示信号をオンし、次のシリアル転送クロック
を発する。尚、指示信号がオフのまま次のシリアル転送
クロックを発しても、従局の転送シフトに絡む動作の実
行はない。指示信号がオンで次のシリアル転送クロック
を受けると、その立ち上がりで位相制御カウンタ回路2
07のカウント値が01Hにカウントアップされ、シフ
トレジスタ回路203はロード動作からシフト動作へと
動作設定が変わる。そして、その立ち下がりでシフトレ
ジスタ回路203によるシフト動作が開始されるのであ
る。
When the count value of the phase control counter circuit 207 becomes 00H, the parallel input information of the slave station is latched and held at the rising edge of the serial transfer clock input thereafter, and at the falling edge of the clock. The latch data is loaded into the shift register circuit 203. Then, the master station turns on the instruction signal to execute the count operation, and issues the next serial transfer clock. Even if the next serial transfer clock is issued while the instruction signal is off, the operation related to the transfer shift of the slave station is not performed. When the instruction signal is on and the next serial transfer clock is received, the phase control counter circuit 2
The count value of 07 is counted up to 01H, and the operation setting of the shift register circuit 203 changes from the load operation to the shift operation. Then, at the fall, the shift operation by the shift register circuit 203 is started.

【0070】シフトレジスタ回路203によるシフト動
作は、シリアル転送クロック毎に実行し、位相制御カウ
ンタ回路207のカウント値は指示信号によりカウント
指示がある時にカウントアップされる。やがて、シフト
レジスタ回路203に、伝送路中に接続される従局数に
より定められた所定のシフト数分のシフト動作が終了す
ると、位相制御カウンタ回路207のカウント値も指示
信号により調整され06Hになって、シフトレジスタ回
路203の主局からの転送データを二度読みラッチ回路
204にラッチ保持する。また、シフトレジスタ回路2
03には、いま、返送し終えた同じ主局への返送データ
を、ラッチ保持されている入力ラッチ回路202より再
ロードして、二回目のシフトレジスタ回路203による
シフト動作が続行されるのである。
The shift operation by the shift register circuit 203 is executed for each serial transfer clock, and the count value of the phase control counter circuit 207 is incremented when a count instruction is given by an instruction signal. Eventually, when the shift register circuit 203 completes a shift operation for a predetermined number of shifts determined by the number of slave stations connected in the transmission path, the count value of the phase control counter circuit 207 is adjusted to 06H by the instruction signal. Then, the transfer data from the main station of the shift register circuit 203 is read twice and latched in the latch circuit 204. Also, the shift register circuit 2
At 03, the returned data to the same main station, which has just been returned, is reloaded from the latched input latch circuit 202, and the second shift operation by the shift register circuit 203 is continued. .

【0071】同様に、シリアル転送クロック毎にシフト
動作が実行され、位相制御カウンタ回路207のカウン
ト値も指示信号によって所定通りにカウントアップす
る。そして、二回目のシフト動作が終了すると共に、位
相制御カウンタ回路207のカウント値も指示信号によ
り調整され0CHになって、シフトレジスタ回路203
の主局からの転送データと二度読みラッチ回路204に
ラッチ保持された一回目のデータ内容とビット毎の比較
を実行する。尚、本実施形態の場合、比較実行と、比較
結果の動作をシリアル転送クロック連続で処理させるた
め、指示信号を連続してオン状態を維持するよう設定さ
れているが、特に限定されたものではない。
Similarly, a shift operation is performed for each serial transfer clock, and the count value of the phase control counter circuit 207 also counts up as specified by the instruction signal. Then, when the second shift operation is completed, the count value of the phase control counter circuit 207 is also adjusted by the instruction signal to become 0CH, and the shift register circuit 203
The comparison is performed on a bit-by-bit basis with the data transferred from the master station of the first and second readings and the first data content latched and held by the latch circuit 204. In the case of the present embodiment, the instruction signal is set to be continuously maintained on so that the comparison execution and the operation of the comparison result are processed continuously by the serial transfer clock. Absent.

【0072】位相制御カウンタ回路207のカウント値
が0CH時での転送データの比較は、二度読みラッチ回
路204に構成されるもので、特に図示していないが、
各ラッチ回路の入出力をビット毎にEXORしたもの
で、各ビット単位でのEXOR回路の出力を多入力AN
D回路の入力に接続され、OUT出力として構成されて
いる。従って、一致している時は、ハイレベルを出力
し、不一致の時は、ロウレベルを出力する。そして、位
相制御カウンタ回路207のカウント値が0DHになる
次のシリアル転送クロックで、発生させる出力ラッチ回
路205のラッチパルスと二度読みラッチ回路204の
OUT出力がANDされることで、比較結果が一致して
いる時のみ、二度読みラッチ回路204のラッチ保持デ
ータが出力ラッチ回路205にラッチされ、従局出力で
ある並列出力として出力されるのである。
The comparison of the transfer data when the count value of the phase control counter circuit 207 is 0CH is constituted by the double read latch circuit 204, and is not shown in the figure.
The input / output of each latch circuit is EXORed for each bit.
It is connected to the input of the D circuit and configured as an OUT output. Therefore, when they match, a high level is output, and when they do not match, a low level is output. Then, at the next serial transfer clock at which the count value of the phase control counter circuit 207 becomes 0DH, the latch pulse of the output latch circuit 205 to be generated and the OUT output of the double read latch circuit 204 are ANDed, so that the comparison result is obtained. Only when they match, the latch holding data of the twice-read latch circuit 204 is latched by the output latch circuit 205 and output as a parallel output which is a slave output.

【0073】一方、主局への従局通信制御状態をフィー
ドバックするタイミング出力信号は、比較結果である二
度読みラッチ回路204でのOUT出力信号をインバー
ト回路で反転させ、0DHで発生する出力ラッチ回路2
05のラッチパルスとANDすることで、不一致の場合
のみ従局からのタイミング出力信号をオンさせるよう構
成されている。このことにより、主局は、0DH時にタ
イミング出力信号がオフのままなら、このシリアル通信
動作の実行が成功したものと判断でき、何れか一つの従
局でも0DH時にタイミング出力信号がオンすれば、ワ
イヤードOR構成であるために主局へ伝達されるタイミ
ング出力信号はオンとなって、このシリアル通信動作の
実行が失敗したものと判断されて、リトライのためのシ
リアル通信が実行されることになる。尚、主局は、この
リトライシリアル通信での具合に応じ、シリアル通信故
障と判断するのである。
On the other hand, a timing output signal for feeding back the slave station communication control state to the master station is obtained by inverting the OUT output signal from the double read latch circuit 204, which is the comparison result, by an inverting circuit, and generating an output latch circuit at 0DH. 2
By performing AND operation with the latch pulse of No. 05, the timing output signal from the slave station is turned on only when there is no match. As a result, if the timing output signal remains off at 0DH, the master station can determine that the execution of the serial communication operation has been successful. Because of the OR configuration, the timing output signal transmitted to the master station is turned on, it is determined that the execution of the serial communication operation has failed, and the serial communication for retry is executed. The master station determines that the serial communication has failed according to the state of the retry serial communication.

【0074】以上が、本発明の第1の実施の形態でのシ
リアル通信動作の簡単な構成、並びに制御の説明であ
る。尚、本実施形態で言う、この位相制御カウンタ回路
207でのカウント値に応じた従局制御動作が、従局通
信処理制御手段である。また、主局は、遠隔制御する従
局の位相制御カウンタ回路207のカウント動作と同期
させて制御する第1の主局カウンタ手段を有し、従局か
らフィードバックされるタイミング出力信号との位相比
較を実行させて、転送情報位相エラー検出を実行するこ
とで、全従局でのシリアル通信の信号処理実行動作を監
視するものである。
The above is a description of the simple configuration and control of the serial communication operation according to the first embodiment of the present invention. The slave control operation according to the count value of the phase control counter circuit 207 in the present embodiment is the slave communication processing control means. Further, the master station has first master station counter means for controlling in synchronization with the count operation of the phase control counter circuit 207 of the slave station which is remotely controlled, and executes the phase comparison with the timing output signal fed back from the slave station. By executing the transfer information phase error detection, the signal processing execution operation of serial communication in all slave stations is monitored.

【0075】以降、本発明の第1の実施の形態に係るシ
リアル通信装置におけるシリアル転送クロックの位相ず
れを検出する転送クロック周期監視手段について、上記
図2、図3、図4、及び図5を参照しながら説明する。
尚、本実施形態のシリアル通信は、各従局の刻々と変化
する情報内容を主としてやり取りする通常シリアル通信
と、従局に予め設定された情報をやり取りする初期化シ
リアル通信とに制御動作が分けられるが、本発明の意図
するところはシリアル通信中の転送クロック監視につい
てのものであり、且つ、何れの通信形態でも同様であ
る。従って、説明を容易にするために、通常シリアル通
信におけるシリアル通信実行時の転送クロックの監視制
御手段について述べることにする。
Hereinafter, the transfer clock cycle monitoring means for detecting the phase shift of the serial transfer clock in the serial communication device according to the first embodiment of the present invention will be described with reference to FIG. 2, FIG. 3, FIG. 4, and FIG. It will be described with reference to FIG.
In the serial communication according to the present embodiment, the control operation is divided into normal serial communication mainly exchanging the constantly changing information content of each slave station and initialization serial communication exchanging information set in advance to the slave station. The purpose of the present invention is to monitor the transfer clock during serial communication, and the same applies to any communication form. Therefore, for the sake of simplicity, a means for monitoring and controlling a transfer clock during execution of serial communication in normal serial communication will be described.

【0076】図2において、シリアル通信実行時の転送
クロックの監視制御手段であるクロック数カウンタ回路
206は、主局から発する転送クロックをカウント源と
し、通信リセット実行で動作停止するまでカウント動作
を実行し続ける形態で構成されている。具体的カウント
動作は、シリアル通信開始時、通信リセットでカウント
値がゼロクリアされ、入力される転送クロック全てをカ
ウントアップする。そして、カウント値が一周すると、
リップルキャリーアウト端子から出力されるパルスで再
びカウントデータ値がロードされて、入力される転送ク
ロック数をカウントし続ける。これにより、転送クロッ
クに対して一定周期(所定カウント数毎)のクロック数
出力信号が主局へと伝達できるのである。尚、本実施形
態で示すクロック数カウンタ回路206の構成は、限定
されたものではなく、転送クロック数をリングカウンタ
形式でカウントでき、且つ、転送クロック数に対して一
定周期の出力信号が主局に伝達できる回路構成であれば
よいのである。
In FIG. 2, a clock number counter circuit 206, which is a transfer clock monitoring and controlling means during serial communication execution, uses a transfer clock generated from the master station as a count source and executes a count operation until the operation is stopped by executing a communication reset. It is configured in a form that continues to do so. Specifically, at the start of serial communication, the count value is cleared to zero by communication reset at the start of serial communication, and all input transfer clocks are counted up. And when the count value goes around once,
The count data value is loaded again by the pulse output from the ripple carry-out terminal, and continues to count the number of input transfer clocks. As a result, a clock number output signal having a constant cycle (every predetermined count number) with respect to the transfer clock can be transmitted to the master station. The configuration of the clock number counter circuit 206 described in the present embodiment is not limited, and the number of transfer clocks can be counted in a ring counter format. Any circuit configuration can be used.

【0077】本実施形態では、クロック数カウンタ回路
206は、始め、16発の転送クロックを受けた時にパ
ルスを発し、次からは、13発の転送クロックを受けた
時にパルスを発するよう構成されている。そして、クロ
ック数出力信号は、図3に示す如く全従局間でワイヤー
ドOR構成で主局へと接続されている。これにより、正
常にシリアル通信実行されている時は、図4のタイミン
グチャートのクロック数出力信号に示すように、主局が
通信リセットを発した後は16発の転送クロックを出力
した時のみに(所定の位相で単発に出力される)、ま
た、その後からは13発の転送クロックを出力する毎に
クロック数出力信号が主局に伝達される。仮に、何れか
の従局の転送クロックに装置ノイズが飛び込み、位相ず
れが発生すると、主局に伝送されるクロック数出力信号
の歩調がずれるのである。
In the present embodiment, the clock number counter circuit 206 is configured to emit a pulse when it receives 16 transfer clocks at first, and to emit a pulse when it receives 13 transfer clocks thereafter. I have. The clock number output signal is connected to the master station in a wired OR configuration between all slave stations as shown in FIG. As a result, when serial communication is normally executed, as shown in the clock number output signal of the timing chart of FIG. 4, after the master station issues a communication reset, only when 16 transfer clocks are output, (Single output at a predetermined phase) and thereafter, every time 13 transfer clocks are output, a clock number output signal is transmitted to the main station. If the device noise enters the transfer clock of any one of the slave stations, and a phase shift occurs, the pace of the clock number output signal transmitted to the master station will shift.

【0078】例えば、一つの従局の転送クロックに装置
ノイズが飛び込み1発の位相ずれが発生した場合、主局
に伝達されるクロック数出力信号は、13発目と14発
目の両方の位相で信号がオンされるのである。更に、全
ての従局の転送クロックに装置ノイズが飛び込み1発の
位相ずれが発生した場合は、主局に伝達されるクロック
数出力信号は、14発目の位相のみで信号がオンされて
しまうのである。従って、主局は、図5・図6のフロー
チャートに示す主局出力転送クロック数カウンタ手段で
自己が発した転送クロック数をカウントしておけば、返
送されるクロック数出力信号の位相と、予め設定された
周期を認識して主局出力転送クロック数カウンタ手段で
のカウント数とを比較判断するだけで、常に、シリアル
通信を実行する際の転送クロックの監視制御ができるの
である。
For example, when the device noise enters the transfer clock of one slave station and one phase shift occurs, the clock number output signal transmitted to the master station has both the thirteenth and fourteenth phase signals. The signal is turned on. Further, when the apparatus noise enters the transfer clocks of all the slave stations and one phase shift occurs, the clock number output signal transmitted to the master station is turned on only at the fourteenth phase. is there. Therefore, if the master station counts the number of transfer clocks generated by the master station output transfer clock number counter means shown in the flowcharts of FIGS. 5 and 6, the phase of the returned clock number output signal can be determined in advance. By simply recognizing the set period and comparing and judging the count with the main station output transfer clock number counter means, it is possible to always monitor and control the transfer clock when executing the serial communication.

【0079】最後に、本発明の第1の実施の形態に係る
シリアル通信装置の主局での具体的な転送クロックの監
視制御手段について、図5・図6のフローチャートを参
照しながら説明する。尚、図5・図6において、主局出
力転送クロック数カウンタ手段は主局クロック数カウン
タと略して表現する。また、図5・図6においては、説
明を容易にするため、転送クロック数カウンタの動作制
御部を中心に示し、その他のシリアル通信制御部につい
ては省略する。
Finally, specific transfer clock monitoring and control means in the master station of the serial communication device according to the first embodiment of the present invention will be described with reference to the flowcharts of FIGS. In FIGS. 5 and 6, the master station output transfer clock number counter means is abbreviated as a master station clock number counter. 5 and 6, for ease of explanation, the operation control unit of the transfer clock number counter is mainly shown, and other serial communication control units are omitted.

【0080】図5・図6において、シリアル通信の実行
がなされると、図中Sで示すスタート地点がエンターさ
れ、シリアル通信のプログラムが開始される。ステップ
S530で通信リセットが実行され、シリアル通信が開
始される(本実施形態の場合、ステップS530でオン
された通信リセットは所定時間後に自動でオフされるも
のである)。そして、ステップS531に移り、主局ク
ロック数カウンタを初期化する。本実施形態の場合、従
局のクロック数カウンタ回路206は、始めクリアスタ
ートであるため0FHがセットされる(通信リセット以
降のカウント数は0CHでオンする)。ステップS53
2に移り、シリアル通信実行のためのサブルーチンを実
行してデータなどのアクセス準備を完了させ、通信の実
行に移る。実行が始まると、ステップS533に移っ
て、主局クロック数カウンタのゼロチェックを実行す
る。ゼロでなければ、ステップS534、ステップS5
35、ステップS536でシリアル通信のデータシフト
実行を行い、ステップS537で主局クロック数カウン
タの値のディクリメントする。
In FIGS. 5 and 6, when the serial communication is executed, the start point indicated by S in the figure is entered, and the serial communication program is started. A communication reset is executed in step S530, and serial communication is started (in the case of the present embodiment, the communication reset turned on in step S530 is automatically turned off after a predetermined time). Then, the process shifts to step S531, where the master station clock number counter is initialized. In the case of the present embodiment, the clock number counter circuit 206 of the slave station is set to 0FH since the clear start is initially performed (the count number after the communication reset is turned on at 0CH). Step S53
Then, the subroutine for executing serial communication is executed to complete the preparation for accessing data and the like, and the operation shifts to execution of communication. When the execution starts, the process moves to step S533, and the master station clock number counter is checked for zero. If not zero, step S534, step S5
35. In step S536, data shift of serial communication is performed, and in step S537, the value of the master station clock number counter is decremented.

【0081】そして、ステップS539でシリアル通信
の終了有無をチェックして、ステップS540に移る。
ステップS540では、シリアル伝送路からフィードバ
ックされるクロック数出力信号をチェックする。上記ス
テップS534、ステップS535、ステップS536
を経由してきた場合、主局クロック数カウンタが所定値
ではないため、クロック数出力信号がオンしていたら、
装置ノイズなどが飛び込み、転送クロックに異常にきた
したと判断されて、ステップS543のシリアル通信エ
ラーとして処理されるのである。通常は、クロック数出
力信号がオフのためステップS533に戻る。やがて、
主局クロック数カウンタが所定値に達すると、ステップ
S533からステップS541に移り、シリアル伝送路
からフィードバックされるクロック数出力信号をチェッ
クする。
Then, in step S539, it is checked whether the serial communication has been completed, and the flow advances to step S540.
In step S540, a clock number output signal fed back from the serial transmission path is checked. Steps S534, S535, and S536 above
When the clock number output signal is on, since the master station clock number counter is not the predetermined value,
It is determined that device noise or the like has jumped in and the transfer clock has become abnormal, and is processed as a serial communication error in step S543. Normally, the process returns to step S533 because the clock number output signal is off. Eventually,
When the master station clock number counter reaches a predetermined value, the process moves from step S533 to step S541 to check the clock number output signal fed back from the serial transmission line.

【0082】主局クロック数カウンタが所定値に達した
場合、クロック数出力信号がオフであれば、装置ノイズ
などが飛び込み、転送クロックに異常をきたしたと判断
されて、ステップS543のシリアル通信エラーとして
処理されるのである。通常は、このタイミングでクロッ
ク数出力信号がオンされているため、ステップS542
に移り、主局クロック数カウンタに次からの所定値0C
Hをセットする。尚、従局に構成したクロック数カウン
タ回路206のデータロード値に合わせた値をセットす
るものであって、特に限定されないことは言うまでもな
い。そして、再びステップS533に戻り、同様な動作
を繰り返し、ステップS539のシリアル通信終了をも
って、一回のシリアル通信の実行を終えるのである。
When the clock number output signal of the master station clock counter reaches a predetermined value and the clock number output signal is off, it is determined that device noise or the like has jumped in and the transfer clock has become abnormal. It is processed as. Usually, since the clock number output signal is turned on at this timing, step S542 is performed.
The main station clock number counter indicates the following predetermined value 0C.
Set H. Incidentally, it is needless to say that the value is set in accordance with the data load value of the clock number counter circuit 206 formed in the slave station, and is not particularly limited. Then, the process returns to step S533 again, and the same operation is repeated. When the serial communication ends in step S539, the execution of one serial communication ends.

【0083】以上が、本発明の第1の実施の形態であ
り、各従局が有する第2のカウンタ手段(クロック数カ
ウンタ回路206)によりシリアル転送クロックの総数
をカウントして、カウント値が予め設定された値になる
毎に主局へとフィードバックするクロック数出力信号を
発する。一方、主局は、所定周期毎のクロック数出力信
号の位相タイミングを検出し、正常タイミングか否かを
判断することで、自己が発するシリアル転送クロックの
位相ずれを検出できる転送クロック周期監視手段を有す
るのである。これにより、シリアル通信中に発生し得る
装置ノイズの伝送路への飛び込みによる異常検出が可能
になるのである。
The above is the first embodiment of the present invention. The total number of serial transfer clocks is counted by the second counter means (clock number counter circuit 206) of each slave station, and the count value is set in advance. A clock number output signal is fed back to the master station every time it reaches the specified value. On the other hand, the master station detects the phase timing of the output signal of the number of clocks for each predetermined cycle, and determines whether or not the timing is normal. It has. As a result, it is possible to detect an abnormality due to device noise that may occur during serial communication entering the transmission path.

【0084】以上説明したように、本発明の第1の実施
の形態に係るシリアル通信装置によれば、各従局に各々
設けられ、主局から発せられるシリアル情報の転送に同
期して発するシリアル転送クロックをカウント源とし主
局から発する指示信号によりカウント動作が制御される
第1のカウンタ手段112と、第1のカウンタ手段11
2が予め設定されたカウント値に達すると主局にその位
相タイミングを知らせるフィードバック信号を発すると
共に、従局での一連のシリアル通信のシリアル情報に対
する所定の信号処理を実行するタイミングとしてシリア
ル通信の動作処理を実行する従局通信処理制御手段11
3と、各従局に各々設けられ、シリアル転送クロックを
カウント源とし入力されるシリアル転送クロックの総数
をカウントする第2のカウンタ手段114と、第2のカ
ウンタ手段114のカウント値が予め設定された値にな
る毎に主局へフィードバック信号を返送する返送手段1
15と、主局に設けられ、返送手段115から所定周期
毎の位相タイミングで返送されるフィードバック信号に
基づき、自己が発するシリアル転送クロックの位相ずれ
を検出する転送クロック周期監視手段111とを有する
ため、下記のような作用及び効果を奏する。
As described above, according to the serial communication device according to the first embodiment of the present invention, the serial transfer provided in each of the slave stations and issued in synchronization with the transfer of the serial information sent from the master station. A first counter 112 whose count operation is controlled by an instruction signal generated from the main station using a clock as a count source;
When 2 reaches a preset count value, the master station issues a feedback signal notifying the phase timing to the master station, and performs serial communication operation processing as timing for executing predetermined signal processing on serial information of serial communication in the slave station. Slave communication processing control means 11 for executing
3, second counter means 114 provided at each slave station for counting the total number of input serial transfer clocks using the serial transfer clock as a count source, and the count value of the second counter means 114 is preset. Return means 1 for returning a feedback signal to the master station every time the value becomes a value
15 and a transfer clock cycle monitoring means 111 provided in the main station and detecting a phase shift of a serial transfer clock generated by itself based on a feedback signal returned from the return means 115 at a phase timing every predetermined cycle. It has the following functions and effects.

【0085】上記構成において、各従局が有する第1の
カウンタ手段112(位相制御カウンタ回路207)
は、主局とのシリアル転送情報のデータ処理実行のため
のタイミング取りカウンタ手段として、主局が発する制
御信号により操作されてそのカウント動作が制御され
る。具体的には、通信リセット信号によりカウント値を
ゼロクリアし、指示信号によりカウント動作の実行或い
は停止を制御する。また、カウント動作時は、シリアル
転送クロックの立ち上がりでインクリメントして、一回
のシリアル転送データのシフト終了に対応してカウント
値を一周させるものである。
In the above configuration, the first counter means 112 (phase control counter circuit 207) of each slave station
Is operated by a control signal generated by the main station to control the count operation as timing counter means for executing data processing of serial transfer information with the main station. Specifically, the count value is cleared to zero by a communication reset signal, and the execution or stop of the count operation is controlled by the instruction signal. At the time of the count operation, the count value is incremented at the rising edge of the serial transfer clock, and the count value makes one round in response to the end of one shift of the serial transfer data.

【0086】この第1のカウンタ手段112(位相制御
カウンタ回路207)で示すカウント値が予め設定され
たカウント値になると、従局に構成された特定の信号処
理回路が動作実行して、更に、カウント値が一周するこ
とで一回のシリアル通信のための従局信号処理が終了す
る。具体的には、例えば00H時、主局へ返送する情報
をシフトレジスタ回路203にロードさせ、06H時、
主局から転送された情報をシフトレジスタ回路203か
ら二度読みラッチ回路204にストアすると共に、00
H時と同様に再び主局へ返送する前回と同じ情報をシフ
トレジスタ回路203に再ロードさせる。そして、OC
H時、主局から再転送された同じ情報をシフトレジスタ
回路203の内容と先程ラッチしたデータと比較して、
二度読み処理を実行して、0DH時、比較結果が一致す
れば、並列出力を行う出力ラッチ回路205にストア出
力して終了するよう動作する。
When the count value indicated by the first counter means 112 (phase control counter circuit 207) reaches a preset count value, a specific signal processing circuit configured as a slave station executes an operation and further counts. One round of the value ends the slave signal processing for one serial communication. Specifically, for example, at 00H, the information to be returned to the master station is loaded into the shift register circuit 203, and at 06H,
The information transferred from the master station is read twice from the shift register circuit 203, stored in the latch circuit 204, and
As in the case of H, the shift register circuit 203 is reloaded with the same information as the previous information to be returned to the main station again. And OC
At the time of H, the same information re-transferred from the main station is compared with the contents of the shift register circuit 203 and the data latched earlier,
When the readout process is executed twice and the comparison result matches at 0 DH, the operation is performed so as to store the data in the output latch circuit 205 which performs the parallel output and terminate the operation.

【0087】この第1のカウンタ手段112(位相制御
カウンタ回路207)での制御が従局通信処理制御手段
であって、固定のカウント値になると所定のシリアル通
信の動作処理を行うものである。従って、主局は、伝送
路中に接続される従局数に応じて一回のシリアル転送す
るデータビット数が決定されるため、第1のカウンタ手
段112(位相制御カウンタ回路207)のカウント値
をシフト動作に沿ったタイミングでカウント動作を制御
するよう指示信号を操作する。即ち、例えば10個の従
局を4ビット構成の情報データで実行するためには、シ
リアル転送クロック40発目に第1のカウンタ手段11
2(位相制御カウンタ回路207)のカウント値を06
Hにするよう、シリアル転送クロックを間引いてカウン
ト動作を実行させればよいのである。尚、00H時のシ
フトレジスタ回路203のデータロード動作は、シリア
ル転送クロック一回に付き一度ロードを実行する。つま
り、入力されるシリアル転送クロックの数分に対応して
ロード動作を実行するが、最後にロードしたデータでシ
フト動作に移行される。
The control by the first counter means 112 (phase control counter circuit 207) is the slave station communication processing control means, which performs predetermined serial communication operation processing when a fixed count value is reached. Therefore, the master station determines the number of data bits to be serially transferred at one time in accordance with the number of slave stations connected in the transmission path. The instruction signal is operated so as to control the count operation at a timing along the shift operation. That is, in order to execute, for example, ten slave stations with 4-bit information data, the first counter 11
The count value of 2 (phase control counter circuit 207) is set to 06
The count operation may be executed by thinning out the serial transfer clock so as to set H. In the data loading operation of the shift register circuit 203 at the time of 00H, loading is performed once per serial transfer clock. In other words, the load operation is executed in response to the number of serial transfer clocks input, and the shift to the shift operation is performed with the last loaded data.

【0088】一方、第2のカウンタ手段114(クロッ
ク数カウンタ回路206)は、シリアル通信動作を実行
する時のシリアル転送クロック全てを無条件にカウント
する。但し、一回の通信動作を開始する時と所定のカウ
ント値に達した直後毎に、予め設定するカウント値から
のカウント動作を実行し、所定カウント値に達する毎に
フィードバック信号を発するよう動作する。その結果、
第2のカウンタ手段114(クロック数カウンタ回路2
06)からはシリアル転送クロック数が特定数毎(所定
周期毎)に主局に対し、フィードバック信号を発するこ
とができるのである。そのことにより、主局は、自己が
発するシリアル転送クロックの位相タイミングを特定周
期で検出できるよう作用するのである。
On the other hand, the second counter means 114 (clock number counter circuit 206) counts all serial transfer clocks at the time of executing the serial communication operation unconditionally. However, at the time of starting one communication operation and immediately after reaching a predetermined count value, a count operation from a preset count value is performed, and a feedback signal is issued every time the count value reaches a predetermined count value. . as a result,
Second counter means 114 (clock number counter circuit 2
From 06), it is possible to issue a feedback signal to the master station every specific number of serial transfer clocks (every predetermined cycle). As a result, the master station operates so that the phase timing of the serial transfer clock generated by itself can be detected at a specific cycle.

【0089】従って、主局は、自己が発するシリアル転
送クロック数に対して、第2のカウンタ手段114(ク
ロック数カウンタ回路206)から返送されるシリアル
転送クロック数フィードバック信号毎にクロック位相を
比較するよう動作することで転送クロック周期監視手段
となる、シリアル転送クロックの位相ずれを検出できる
よう作用するのである。尚、この第2のカウンタ手段1
14(クロック数カウンタ回路206)は、シリアル通
信装置のシリアル転送クロック伝送路中に存在すればよ
く、その設置数や設置位置は装置に応じて決定するもの
である。つまり、第2のカウンタ手段114(クロック
数カウンタ回路206)は、各従局毎に有しても、シリ
アル通信伝送路の最遠地点に位置する従局に有しても、
更にシリアル通信伝送路の任意の地点に位置する従局に
備えても、シリアル通信伝送路の最後に位置する従局に
有してもよい。一方、従局に対して独立したターミナル
を設け、第2のカウンタ手段を備えてもよい。
Therefore, the master station compares the clock phase with the serial transfer clock number generated by itself, for each serial transfer clock number feedback signal returned from the second counter means 114 (clock number counter circuit 206). With the above operation, the phase shift of the serial transfer clock serving as the transfer clock cycle monitoring means can be detected. The second counter means 1
14 (clock number counter circuit 206) only needs to be present in the serial transfer clock transmission path of the serial communication device, and the number and positions of the 14 devices are determined according to the device. That is, the second counter means 114 (clock number counter circuit 206) may be provided for each slave station, or may be provided for the slave station located at the farthest point of the serial communication transmission line.
Further, it may be provided at a slave station located at an arbitrary point on the serial communication transmission line, or may be provided at a slave station located at the end of the serial communication transmission line. On the other hand, an independent terminal may be provided for the slave station and a second counter means may be provided.

【0090】また、主局は、第1のカウンタ手段112
(位相制御カウンタ回路207)のカウント値に同期し
て動作する第1の主局カウンタ手段と、第2のカウンタ
手段114(クロック数カウンタ回路206)のカウン
ト値に同期して動作する第2の主局カウンタ手段とを有
し、各カウンタ手段からのフィードバック信号の位相タ
イミングと比較するよう動作することで、第1のカウン
タ手段により二度読み比較が確認でき、第2のカウンタ
手段によりクロック位相検出が確認でき、それぞれを判
断してシリアル情報の転送エラーを判定するように作用
するのである。
Further, the main station is provided with the first counter means 112.
The first main station counter operates in synchronization with the count value of the (phase control counter circuit 207) and the second main station operates in synchronization with the count value of the second counter 114 (clock number counter circuit 206). The first counter means has a double reading comparison, and the second counter means has a clock phase by operating to compare with the phase timing of the feedback signal from each counter means. The detection can be confirmed, and each is determined to act to determine a serial information transfer error.

【0091】即ち、本シリアル通信装置は、シリアル転
送クロック数をカウントするカウンタ手段を有し、所定
周期毎に主局へとフィードバックする返送手段を有す
る。更に、主局は、フィードバックされた位相タイミン
グを自己が有するカウンタ手段で送出したシリアル転送
クロック数をカウントし、相互の位相を比較する転送ク
ロック周期監視手段を有することで、シリアル転送クロ
ックの異常を検出する。
That is, the present serial communication device has counter means for counting the number of serial transfer clocks, and has return means for feeding back to the master station at predetermined intervals. Further, the master station counts the number of serial transfer clocks sent out by its own counter means having the phase timing fed back, and has a transfer clock cycle monitoring means for comparing the phases with each other. To detect.

【0092】これにより、本シリアル通信装置において
は、周期性ノイズに対するシリアル情報内の位相ずれ検
出用のビットを付加せずにシリアル転送クロック状態を
監視することができるために、従来技術のような転送情
報のみでデータ長が構成される極く簡単なシリアル通信
手段においても、周期性ノイズによる転送情報の情報配
列位相ずれを容易な手段で且つ低コストを維持しながら
判定できるという効果がある。
Thus, in the present serial communication device, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information with respect to the periodic noise. Even in a very simple serial communication means whose data length is constituted only by transfer information, there is an effect that the information arrangement phase shift of transfer information due to periodic noise can be determined by an easy means and at low cost.

【0093】[2]第2の実施の形態 図7は本発明の第2の実施の形態に係るシリアル通信装
置の従局の回路構成を示すブロック図である。本発明の
第2の実施の形態に係るシリアル通信装置の従局は、入
力セレクタ回路701、入力ラッチ回路702、シフト
レジスタ回路703、二度読みラッチ回路704、出力
ラッチ回路705、位相制御カウンタ回路707、カウ
ント値デコード回路708、多入力AND回路709、
ゲートロジック群710を備える構成となっている。
尚、図7に示す構成は一例であり、図示の構成に限定さ
れるものではない。
[2] Second Embodiment FIG. 7 is a block diagram showing a circuit configuration of a slave station of a serial communication device according to a second embodiment of the present invention. The slave station of the serial communication device according to the second embodiment of the present invention includes an input selector circuit 701, an input latch circuit 702, a shift register circuit 703, a double read latch circuit 704, an output latch circuit 705, and a phase control counter circuit 707. , Count value decoding circuit 708, multi-input AND circuit 709,
The configuration includes a gate logic group 710.
Note that the configuration illustrated in FIG. 7 is an example, and the configuration is not limited to the illustrated configuration.

【0094】本発明の第2の実施の形態が上記第1の実
施の形態と相違する点は、上記図2に示した第2のカウ
ンタ手段であるクロック数カウンタ回路206が、各従
局回路構成内に存在せずシリアル通信伝送路中に存在す
る点であり、これ以外の構成は上記第1の実施の形態と
同様である。上記図2に示したクロック数カウンタ回路
206は、シリアル通信伝送路中に存在するものであ
り、或る従局ユニットに属するものの、各従局に有する
ものではない。
The second embodiment of the present invention is different from the first embodiment in that the clock number counter circuit 206 which is the second counter means shown in FIG. The configuration is the same as that of the first embodiment except that it does not exist in the communication channel but exists in the serial communication transmission path. The clock number counter circuit 206 shown in FIG. 2 exists in the serial communication transmission line, and belongs to a certain slave station unit, but does not have to each slave station.

【0095】本発明の第2の実施の形態では、シリアル
伝送路において、一番遠くに位置する従局シリアル転送
クロックラインに付加した場合について述べることにす
る。但し、上記図2に示したクロック数カウンタ回路2
06が位置される場所としては、例えば、シリアル伝送
路の一番最後に属する従局に付加してもよく、付加する
場所は装置ノイズの影響が大きい場所などに付加するこ
とが有効的である。従って、付加する位置は特に限定さ
れないと共に、複数付加する構成にしてもよいことは言
うまでもない。
In the second embodiment of the present invention, a case will be described in which the data is added to the farthest slave serial transfer clock line located farthest in the serial transmission path. However, the clock number counter circuit 2 shown in FIG.
As a place where 06 is located, for example, it may be added to a slave station belonging to the end of the serial transmission line, and it is effective to add the place to a place where the influence of device noise is large. Therefore, it is needless to say that the adding position is not particularly limited, and a plurality of adding positions may be adopted.

【0096】図8は本発明の第2の実施の形態に係るシ
リアル通信装置のシステム構成を示すブロック図であ
る。本発明の第2の実施の形態に係るシリアル通信装置
は、主局820と、複数の従局821、822、82
3、824と、従局823に付加されたクロック数カウ
ンタ回路206とを備える構成となっている。尚、図8
に示す構成は一例であり、図示の構成に限定されるもの
ではない。
FIG. 8 is a block diagram showing a system configuration of a serial communication device according to the second embodiment of the present invention. The serial communication device according to the second embodiment of the present invention includes a master station 820 and a plurality of slave stations 821, 822, 82.
3, 824 and the clock number counter circuit 206 added to the slave station 823. FIG.
Is an example, and is not limited to the illustrated configuration.

【0097】本発明の第2の実施の形態が上記第1の実
施の形態と相違する点は、各従局ICからのクロック数
出力信号が無く、従局823に新たに第2のカウンタ手
段であるクロック数カウンタ回路206が付加された構
成になっている点であり、これ以外の構成は上記第1の
実施の形態と同様である。
The second embodiment of the present invention is different from the first embodiment in that there is no clock number output signal from each slave station IC, and the slave station 823 has a new second counter means. The configuration is such that a clock number counter circuit 206 is added, and the other configuration is the same as that of the first embodiment.

【0098】図8に示す構成により、上記クロック数カ
ウンタ回路206からクロック数出力信号が、上記第1
の実施の形態と同様に所定周期でシリアル伝送路を経由
して主局にフィードバックされるようになるのである。
そのことにより、主局は、上記第1の実施の形態で言う
上記図5に示した転送クロック周期監視手段を動作させ
て、シリアル通信中に発生し得る装置ノイズの伝送路へ
の飛び込みによる異常検出が可能になるのである。
With the configuration shown in FIG. 8, the clock number output signal from the clock number counter circuit 206 is output from the first
In the same manner as in the embodiment, feedback is provided to the master station via the serial transmission line at a predetermined cycle.
As a result, the master station operates the transfer clock cycle monitoring means shown in FIG. 5 described in the first embodiment to operate the transfer clock cycle monitoring means, thereby causing abnormalities caused by device noise that may be generated during serial communication into the transmission path. Detection becomes possible.

【0099】以上説明したように、本発明の第2の実施
の形態に係るシリアル通信装置によれば、各従局に各々
設けられ、主局から発せられるシリアル情報の転送に同
期して発するシリアル転送クロックをカウント源とし主
局から発する指示信号によりカウント動作が制御される
第1のカウンタ手段112と、第1のカウンタ手段11
2が予め設定されたカウント値に達すると主局にその位
相タイミングを知らせるフィードバック信号を発すると
共に、従局での一連のシリアル通信のシリアル情報に対
する所定の信号処理を実行するタイミングとしてシリア
ル通信の動作処理を実行する従局通信処理制御手段11
3と、シリアル通信伝送路中に設けられ、シリアル転送
クロックをカウント源とし入力されるシリアル転送クロ
ックの総数をカウントする第2のカウンタ手段114
と、第2のカウンタ手段114のカウント値が予め設定
された値になる毎に主局へフィードバック信号を返送す
る返送手段115と、主局に設けられ、返送手段115
から所定周期毎の位相タイミングで返送されるフィード
バック信号に基づき、自己が発するシリアル転送クロッ
クの位相ずれを検出する転送クロック周期監視手段11
1とを有するため、下記のような効果を奏する。
As described above, according to the serial communication apparatus according to the second embodiment of the present invention, the serial transfer provided in each of the slave stations and issued in synchronization with the transfer of the serial information sent from the master station. A first counter 112 whose count operation is controlled by an instruction signal generated from the main station using a clock as a count source;
When 2 reaches a preset count value, the master station issues a feedback signal notifying the phase timing to the master station, and performs serial communication operation processing as timing for executing predetermined signal processing on serial information of serial communication in the slave station. Slave communication processing control means 11 for executing
3, a second counter 114 provided in the serial communication transmission line and counting the total number of input serial transfer clocks using the serial transfer clock as a count source.
Return means 115 for returning a feedback signal to the master station every time the count value of the second counter means 114 reaches a preset value; and return means 115 provided in the master station.
Transfer clock period monitoring means 11 for detecting a phase shift of a serial transfer clock generated by itself based on a feedback signal returned at a phase timing every predetermined period from
The following effects can be obtained because of having 1.

【0100】上記第1の実施の形態と同様に、本シリア
ル通信装置は、シリアル転送クロック数をカウントする
カウンタ手段を有し、所定周期毎に主局へとフィードバ
ックする返送手段を有する。更に、主局は、フィードバ
ックされた位相タイミングを自己が有するカウンタ手段
で送出したシリアル転送クロック数をカウントし、相互
の位相を比較する転送クロック周期監視手段を有するこ
とで、シリアル転送クロックの異常を検出する。
As in the first embodiment, this serial communication device has counter means for counting the number of serial transfer clocks, and has return means for feeding back to the main station at predetermined intervals. Further, the master station counts the number of serial transfer clocks sent out by its own counter means having the phase timing fed back, and has a transfer clock cycle monitoring means for comparing the phases with each other. To detect.

【0101】これにより、本シリアル通信装置において
は、周期性ノイズに対するシリアル情報内の位相ずれ検
出用のビットを付加せずにシリアル転送クロック状態を
監視することができるために、従来技術のような転送情
報のみでデータ長が構成される極く簡単なシリアル通信
手段においても、周期性ノイズによる転送情報の情報配
列位相ずれを容易な手段で且つ低コストを維持しながら
判定できるという効果がある。
As a result, in this serial communication device, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information with respect to the periodic noise. Even in a very simple serial communication means whose data length is constituted only by transfer information, there is an effect that the information arrangement phase shift of transfer information due to periodic noise can be determined by an easy means and at low cost.

【0102】[3]第3の実施の形態 図9は本発明の第3の実施の形態に係るシリアル通信装
置のシステム構成を示すブロック図である。本発明の第
3の実施の形態に係るシリアル通信装置は、主局920
と、複数の従局921、922、923、924と、主
局920に付加されたクロック数カウンタ回路206と
を備える構成となっている。尚、図9に示す構成は一例
であり、図示の構成に限定されるものではない。
[3] Third Embodiment FIG. 9 is a block diagram showing a system configuration of a serial communication device according to a third embodiment of the present invention. The serial communication device according to the third embodiment of the present invention comprises a master station 920
And a plurality of slave stations 921, 922, 923, and 924, and a clock counter circuit 206 added to the master station 920. Note that the configuration illustrated in FIG. 9 is an example, and the configuration is not limited to the illustrated configuration.

【0103】本発明の第3の実施の形態が上記第1の実
施の形態と相違する点は、各従局ICからのクロック数
出力信号が無く、任意のシリアル転送クロックラインか
ら取り出したシリアル転送クロックをカウント源とする
クロック数カウンタ回路206が主局920に付加され
た構成になっている点であり、これ以外の構成は上記第
1の実施の形態と同様である。上記クロック数カウンタ
回路206は、シリアル通信伝送路を経由したシリアル
転送クロックをクロック源としたものであり、どの従局
に有するものではない。
The third embodiment of the present invention is different from the first embodiment in that there is no clock number output signal from each slave station IC and the serial transfer clock extracted from an arbitrary serial transfer clock line. Is a configuration in which a clock number counter circuit 206 having a clock source as a count source is added to the main station 920, and the other configuration is the same as that of the first embodiment. The clock number counter circuit 206 uses a serial transfer clock via a serial communication transmission line as a clock source, and does not have any slave station.

【0104】本発明の第3の実施の形態では、シリアル
伝送路において、一番遠くに位置する従局シリアル転送
クロックラインを検出する場合について述べることにす
る。但し、上記クロック数カウンタ回路206が検出す
るシリアル転送クロックの検出位置は、例えば、シリア
ル伝送路の一番最後に属するシリアル転送クロックでも
よく、装置ノイズの影響が大きい場所などに付加するこ
とが有効的である。従って、検出するシリアル転送クロ
ックの位置は特に限定されないと共に、複数付加する構
成にしてもよいことは言うまでもない。
In the third embodiment of the present invention, a case will be described in which a farthest slave serial transfer clock line located farthest from a serial transmission path is detected. However, the detection position of the serial transfer clock detected by the clock number counter circuit 206 may be, for example, the serial transfer clock belonging to the end of the serial transmission path, and it is effective to add the detection position to a place where the influence of device noise is large. It is a target. Therefore, it is needless to say that the position of the serial transfer clock to be detected is not particularly limited, and a plurality of serial transfer clocks may be added.

【0105】図9に示す構成により、上記クロック数カ
ウンタ回路206からクロック数出力信号が、上記第1
の実施の形態と同様に所定周期で直接主局にフィードバ
ックされるようになるのである。そのことにより、主局
は、上記第1の実施の形態で言う上記図5に示した転送
クロック周期監視手段を動作させ、シリアル通信中に発
生し得る装置ノイズの伝送路への飛び込みによる異常検
出が可能になるのである。
With the configuration shown in FIG. 9, the clock number output signal from the clock number counter circuit 206 is output from the first
In the same manner as in the embodiment, feedback is directly provided to the main station at a predetermined cycle. As a result, the master station operates the transfer clock cycle monitoring means shown in FIG. 5 described in the first embodiment, and detects an abnormality caused by device noise that may occur during serial communication entering the transmission path. It becomes possible.

【0106】以上説明したように、本発明の第3の実施
の形態に係るシリアル通信装置によれば、各従局に各々
設けられ、主局から発せられるシリアル情報の転送に同
期して発するシリアル転送クロックをカウント源とし主
局から発する指示信号によりカウント動作が制御される
第1のカウンタ手段112と、第1のカウンタ手段11
2が予め設定されたカウント値に達すると主局にその位
相タイミングを知らせるフィードバック信号を発すると
共に、従局での一連のシリアル通信のシリアル情報に対
する所定の信号処理を実行するタイミングとしてシリア
ル通信の動作処理を実行する従局通信処理制御手段11
3と、主局に設けられ、シリアル転送クロックをカウン
ト源とし入力されるシリアル転送クロックの総数をカウ
ントする第2のカウンタ手段114と、第2のカウンタ
手段114のカウント値が予め設定された値になる毎に
主局へフィードバック信号を返送する返送手段115
と、主局に設けられ、返送手段115から所定周期毎の
位相タイミングで返送されるフィードバック信号に基づ
き、自己が発するシリアル転送クロックの位相ずれを検
出する転送クロック周期監視手段111とを有するた
め、下記のような効果を奏する。
As described above, according to the serial communication apparatus according to the third embodiment of the present invention, the serial transfer provided in each slave station and issued in synchronization with the transfer of the serial information sent from the master station. A first counter 112 whose count operation is controlled by an instruction signal generated from the main station using a clock as a count source;
When 2 reaches a preset count value, the master station issues a feedback signal notifying the phase timing to the master station, and performs serial communication operation processing as timing for executing predetermined signal processing on serial information of serial communication in the slave station. Slave communication processing control means 11 for executing
3, a second counter means 114 provided in the master station for counting the total number of input serial transfer clocks using the serial transfer clock as a count source, and a count value of the second counter means 114 being a preset value. Return means 115 for returning a feedback signal to the master station every time
And a transfer clock cycle monitoring means 111 which is provided in the main station and detects a phase shift of the serial transfer clock generated by itself based on a feedback signal returned from the return means 115 at a phase timing every predetermined cycle. The following effects are obtained.

【0107】上記第1の実施の形態と同様に、本シリア
ル通信装置は、シリアル転送クロック数をカウントする
カウンタ手段を有し、所定周期毎に主局へとフィードバ
ックする返送手段を有する。更に、主局は、フィードバ
ックされた位相タイミングを自己が有するカウンタ手段
で送出したシリアル転送クロック数をカウントし、相互
の位相を比較する転送クロック周期監視手段を有するこ
とで、シリアル転送クロックの異常を検出する。
As in the first embodiment, the present serial communication device has counter means for counting the number of serial transfer clocks, and has return means for feeding back to the master station at predetermined intervals. Further, the master station counts the number of serial transfer clocks sent out by its own counter means having the phase timing fed back, and has a transfer clock cycle monitoring means for comparing the phases with each other. To detect.

【0108】これにより、本シリアル通信装置において
は、周期性ノイズに対するシリアル情報内の位相ずれ検
出用のビットを付加せずにシリアル転送クロック状態を
監視することができるために、従来技術のような転送情
報のみでデータ長が構成される極く簡単なシリアル通信
手段においても、周期性ノイズによる転送情報の情報配
列位相ずれを容易な手段で且つ低コストを維持しながら
判定できるという効果がある。
Thus, in the present serial communication device, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information with respect to the periodic noise. Even in a very simple serial communication means whose data length is constituted only by transfer information, there is an effect that the information arrangement phase shift of transfer information due to periodic noise can be determined by an easy means and at low cost.

【0109】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器からなる装置に適用
してもよい。前述した実施形態の機能を実現するソフト
ウエアのプログラムコードを記憶した記憶媒体を、シス
テム或いは装置に供給し、そのシステム或いは装置のコ
ンピュータ(またはCPUやMPU)が記憶媒体に格納
されたプログラムコードを読み出し実行することによっ
ても、達成されることは言うまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. A storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to a system or an apparatus, and a computer (or CPU or MPU) of the system or the apparatus executes the program code stored in the storage medium. Needless to say, this can also be achieved by executing the reading.

【0110】この場合、記憶媒体から読み出されたプロ
グラムコード自体が前述した実施形態の機能を実現する
ことになり、そのプログラムコードを記憶した記憶媒体
は本発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0111】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク、ハードディス
ク、光ディスク、光磁気ディスク、CD−ROM、CD
−R、磁気テープ、不揮発性のメモリカード、ROMな
どを用いることができる。
Examples of a storage medium for supplying the program code include a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, and CD.
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0112】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOSなどが実
際の処理の一部または全部を行い、その処理によって前
述した実施形態の機能が実現される場合も含まれること
は言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS and the like running on the computer are actually executed based on the instructions of the program code. It goes without saying that a part or all of the above-described processing is performed, and the functions of the above-described embodiments are realized by the processing.

【0113】更に、記憶媒体から読出されたプログラム
コードが、コンピュータに挿入された機能拡張ボードや
コンピュータに接続された機能拡張ユニットに備わるメ
モリに書込まれた後、そのプログラムコードの指示に基
づき、その機能拡張ボードや機能拡張ユニットに備わる
CPUなどが実際の処理の一部または全部を行い、その
処理によって前述した実施形態の機能が実現される場合
も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided on a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instruction of the program code, It goes without saying that the CPU provided in the function expansion board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0114】[0114]

【発明の効果】以上説明したように、請求項1記載の本
発明の通信装置によれば、主局及び複数の従局がループ
式の伝送路を介して接続された通信装置であって、主局
から発するシリアル情報の転送に同期したシリアル転送
クロックをカウント源とする第1のカウンタ手段と、前
記シリアル転送クロックをカウント源とする第2のカウ
ンタ手段と、前記第1及び第2のカウンタ手段のカウン
ト動作に基づき自己が発するシリアル転送クロックの位
相ずれを検出する転送クロック周期監視手段とを有する
ため、下記のような効果を奏する。
As described above, according to the communication apparatus of the first aspect of the present invention, a communication apparatus in which a master station and a plurality of slave stations are connected via a loop-type transmission path, First counter means using a serial transfer clock synchronized with transfer of serial information generated from a station as a count source; second counter means using the serial transfer clock as a count source; and the first and second counter means And the transfer clock cycle monitoring means for detecting the phase shift of the serial transfer clock generated by itself based on the counting operation.

【0115】本発明の通信装置は、シリアル転送クロッ
ク数をカウントするカウンタ手段を有する。更に、主局
は、前記第1及び第2のカウンタ手段のカウント動作に
基づき自己が発するシリアル転送クロックの位相ずれを
検出する転送クロック周期監視手段を有することで、シ
リアル転送クロックの異常を検出する。これにより、本
発明の通信装置においては、周期性ノイズに対するシリ
アル情報内の位相ずれ検出用のビットを付加せずにシリ
アル転送クロック状態を監視することができるために、
従来技術のような転送情報のみでデータ長が構成される
極く簡単なシリアル通信手段においても、周期性ノイズ
による転送情報の情報配列位相ずれを容易な手段で且つ
低コストを維持しながら判定できるという効果がある。
The communication device of the present invention has counter means for counting the number of serial transfer clocks. Further, the master station has the transfer clock cycle monitoring means for detecting the phase shift of the serial transfer clock generated by the master station based on the counting operation of the first and second counter means, thereby detecting the abnormality of the serial transfer clock. . Accordingly, in the communication device of the present invention, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information with respect to the periodic noise.
Even in a very simple serial communication means in which the data length is constituted only by the transfer information as in the prior art, it is possible to determine the information arrangement phase shift of the transfer information due to the periodic noise by an easy means and at a low cost. This has the effect.

【0116】請求項2記載の本発明の通信装置によれ
ば、前記第1のカウンタ手段は、各従局が各々有すると
共に主局からの指示信号でカウント動作が制御され、前
記第2のカウンタ手段は、少なくとも一つ以上有すると
共に前記シリアル転送クロックの総数をカウントし、前
記転送クロック周期監視手段は、主局が有すると共に従
局から所定周期毎の位相タイミングで返送されるフィー
ドバック信号に基づき自己が発するシリアル転送クロッ
クの位相ずれを検出するため、下記のような効果を奏す
る。
According to the communication apparatus of the present invention, the first counter means is provided in each of the slave stations, and the counting operation is controlled by an instruction signal from the master station. Has at least one, and counts the total number of the serial transfer clocks. Since the phase shift of the serial transfer clock is detected, the following effects are obtained.

【0117】本発明の通信装置は、シリアル転送クロッ
ク数をカウントするカウンタ手段を有する。更に、主局
は、フィードバックされた位相タイミングを自己が有す
るカウンタ手段で送出したシリアル転送クロック数をカ
ウントし、相互の位相を比較する転送クロック周期監視
手段を有することで、シリアル転送クロックの異常を検
出する。これにより、本発明の通信装置においては、周
期性ノイズに対するシリアル情報内の位相ずれ検出用の
ビットを付加せずにシリアル転送クロック状態を監視す
ることができるために、従来技術のような転送情報のみ
でデータ長が構成される極く簡単なシリアル通信手段に
おいても、周期性ノイズによる転送情報の情報配列位相
ずれを容易な手段で且つ低コストを維持しながら判定で
きるという効果がある。
The communication device of the present invention has counter means for counting the number of serial transfer clocks. Further, the master station counts the number of serial transfer clocks sent out by its own counter means having the phase timing fed back, and has a transfer clock cycle monitoring means for comparing the phases with each other. To detect. Accordingly, in the communication apparatus of the present invention, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information with respect to the periodic noise. Even in a very simple serial communication means having only a data length consisting of only the data length, there is an effect that the information arrangement phase shift of the transfer information due to the periodic noise can be determined by an easy means and at a low cost.

【0118】請求項3記載の本発明の通信装置によれ
ば、前記第1のカウンタ手段のカウント値が設定値に達
した場合に主局へ位相タイミング通知用のフィードバッ
ク信号を発すると共に従局での一連のシリアル通信の動
作処理を実行する従局通信処理制御手段と、前記第2の
カウンタ手段のカウント値が設定値になる毎に主局へフ
ィードバック信号を返送する返送手段とを有するため、
下記のような効果を奏する。
According to the communication apparatus of the present invention, when the count value of the first counter means reaches a set value, a feedback signal for notifying a phase timing is issued to the master station, and the slave station is provided with a feedback signal. A slave station communication processing control means for executing a series of serial communication operation processing, and a return means for returning a feedback signal to the master station every time the count value of the second counter means reaches a set value,
The following effects are obtained.

【0119】本発明の通信装置は、シリアル転送クロッ
ク数をカウントするカウンタ手段を有し、所定周期毎に
主局へとフィードバックする返送手段を有する。更に、
主局は、フィードバックされた位相タイミングを自己が
有するカウンタ手段で送出したシリアル転送クロック数
をカウントし、相互の位相を比較する転送クロック周期
監視手段を有することで、シリアル転送クロックの異常
を検出する。これにより、本発明の通信装置において
は、周期性ノイズに対するシリアル情報内の位相ずれ検
出用のビットを付加せずにシリアル転送クロック状態を
監視することができるために、従来技術のような転送情
報のみでデータ長が構成される極く簡単なシリアル通信
手段においても、周期性ノイズによる転送情報の情報配
列位相ずれを容易な手段で且つ低コストを維持しながら
判定できるという効果がある。
The communication apparatus of the present invention has counter means for counting the number of serial transfer clocks, and has return means for feeding back to the master station at predetermined intervals. Furthermore,
The master station counts the number of serial transfer clocks sent out by its own counter means having the phase timing fed back, and detects an abnormality in the serial transfer clock by having transfer clock cycle monitoring means for comparing the phases with each other. . Accordingly, in the communication apparatus of the present invention, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information with respect to the periodic noise. Even in a very simple serial communication means having only a data length consisting of only the data length, there is an effect that the information arrangement phase shift of the transfer information due to the periodic noise can be determined by an easy means and at a low cost.

【0120】請求項4記載の本発明の通信装置によれ
ば、前記第2のカウンタ手段は、各従局が各々有し、前
記伝送路は、前記転送クロック周期監視手段へ所定の周
期毎に発生する位相タイミングを伝送する伝送路であり
且つワイヤードOR回路で構成されると共に各従局から
発する複数のフィードバック信号を一つの信号として主
局へ伝送し、前記転送クロック周期監視手段は、前記伝
送路を介して一つの信号で伝送される信号状態に基づき
各従局のシリアル転送クロックの位相ずれを検出するた
め、下記のような効果を奏する。
According to the communication apparatus of the present invention, the second counter means is provided in each of the slave stations, and the transmission line is generated by the transfer clock cycle monitoring means every predetermined cycle. And a plurality of feedback signals generated from each slave station are transmitted as a single signal to the master station. Since the phase shift of the serial transfer clock of each slave station is detected based on the state of the signal transmitted by one signal via the control unit, the following effects are obtained.

【0121】各従局から発する複数のフィードバック信
号を一つの信号として主局へ伝送し、前記一つの信号で
伝送される信号状態に基づき各従局のシリアル転送クロ
ックの位相ずれを検出することで、上記と同様に、本発
明の通信装置においては、周期性ノイズに対するシリア
ル情報内の位相ずれ検出用のビットを付加せずにシリア
ル転送クロック状態を監視することができるために、従
来技術のような転送情報のみでデータ長が構成される極
く簡単なシリアル通信手段においても、周期性ノイズに
よる転送情報の情報配列位相ずれを容易な手段で且つ低
コストを維持しながら判定できるという効果がある。
A plurality of feedback signals generated from each slave station are transmitted to the master station as one signal, and the phase shift of the serial transfer clock of each slave station is detected based on the signal state transmitted by the one signal. Similarly, in the communication apparatus of the present invention, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information with respect to the periodic noise. Even in a very simple serial communication means whose data length is constituted only by information, there is an effect that the information arrangement phase shift of transfer information due to periodic noise can be determined by an easy means and at low cost.

【0122】請求項5記載の本発明の通信装置によれ
ば、前記第2のカウンタ手段は、前記伝送路の最遠地点
に接続される従局が有し、前記伝送路は、前記転送クロ
ック周期監視手段へ所定の周期毎に発生する位相タイミ
ングを伝送する伝送路であり、前記転送クロック周期監
視手段は、前記伝送路を介して伝送される信号状態に基
づき前記伝送路内のシリアル転送クロックの位相ずれを
検出するため、下記のような効果を奏する。
According to the communication apparatus of the present invention, the second counter means has a slave station connected to the farthest point of the transmission line, and the transmission line monitors the transfer clock cycle. Means for transmitting a phase timing generated every predetermined period to the means, wherein the transfer clock cycle monitoring means determines a phase of a serial transfer clock in the transmission path based on a signal state transmitted through the transmission path. The following effects are obtained because the displacement is detected.

【0123】伝送される信号状態に基づき前記伝送路内
のシリアル転送クロックの位相ずれを検出することで、
上記と同様に、本発明の通信装置においては、周期性ノ
イズに対するシリアル情報内の位相ずれ検出用のビット
を付加せずにシリアル転送クロック状態を監視すること
ができるために、従来技術のような転送情報のみでデー
タ長が構成される極く簡単なシリアル通信手段において
も、周期性ノイズによる転送情報の情報配列位相ずれを
容易な手段で且つ低コストを維持しながら判定できると
いう効果がある。
By detecting the phase shift of the serial transfer clock in the transmission path based on the state of the transmitted signal,
As described above, in the communication device of the present invention, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information with respect to the periodic noise. Even in a very simple serial communication means whose data length is constituted only by transfer information, there is an effect that the information arrangement phase shift of transfer information due to periodic noise can be determined by an easy means and at low cost.

【0124】請求項6記載の本発明の通信装置によれ
ば、前記第2のカウンタ手段は、前記伝送路の任意の地
点に接続される従局が有し、前記伝送路は、前記転送ク
ロック周期監視手段へ所定の周期毎に発生する位相タイ
ミングを伝送する伝送路であり、前記転送クロック周期
監視手段は、前記伝送路を介して伝送される信号状態に
基づき前記伝送路内のシリアル転送クロックの位相ずれ
を検出するため、下記のような効果を奏する。
According to the communication apparatus of the present invention, the second counter means has a slave station connected to an arbitrary point on the transmission path, and the transmission path has the transmission clock cycle. A transmission line for transmitting a phase timing generated every predetermined period to a monitoring unit, wherein the transfer clock cycle monitoring unit is configured to transmit a serial transfer clock in the transmission line based on a signal state transmitted through the transmission line. Since the phase shift is detected, the following effects are obtained.

【0125】伝送される信号状態に基づき前記伝送路内
のシリアル転送クロックの位相ずれを検出することで、
上記と同様に、本発明の通信装置においては、周期性ノ
イズに対するシリアル情報内の位相ずれ検出用のビット
を付加せずにシリアル転送クロック状態を監視すること
ができるために、従来技術のような転送情報のみでデー
タ長が構成される極く簡単なシリアル通信手段において
も、周期性ノイズによる転送情報の情報配列位相ずれを
容易な手段で且つ低コストを維持しながら判定できると
いう効果がある。
By detecting the phase shift of the serial transfer clock in the transmission path based on the state of the transmitted signal,
As described above, in the communication device of the present invention, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information with respect to the periodic noise. Even in a very simple serial communication means whose data length is constituted only by transfer information, there is an effect that the information arrangement phase shift of transfer information due to periodic noise can be determined by an easy means and at low cost.

【0126】請求項7記載の本発明の通信装置によれ
ば、前記第2のカウンタ手段は、主局が有し、前記従局
通信処理制御手段は、前記伝送路中の最後に位置する従
局を経由したシリアル転送クロック或いは前記伝送路中
の最遠に位置する従局へのシリアル転送クロックの何れ
かを主局へフィードバックし、前記転送クロック周期監
視手段は、前記返送されたシリアル転送クロックをカウ
ント源としたカウント動作で所定周期毎の位相タイミン
グを算出し前記伝送路内のシリアル転送クロックの位相
ずれを検出するため、下記のような効果を奏する。
According to the communication apparatus of the present invention, the second counter means is provided in the master station, and the slave station communication processing control means determines the last slave station located in the transmission path. Either the serial transfer clock passed through or the serial transfer clock to the farthest slave station in the transmission path is fed back to the master station, and the transfer clock cycle monitoring means counts the returned serial transfer clock to a count source. Since the phase timing of each predetermined cycle is calculated by the counting operation described above and the phase shift of the serial transfer clock in the transmission line is detected, the following effects are obtained.

【0127】返送されたシリアル転送クロックをカウン
ト源としたカウント動作で所定周期毎の位相タイミング
を算出し前記伝送路内のシリアル転送クロックの位相ず
れを検出することで、上記と同様に、本発明の通信装置
においては、周期性ノイズに対するシリアル情報内の位
相ずれ検出用のビットを付加せずにシリアル転送クロッ
ク状態を監視することができるために、従来技術のよう
な転送情報のみでデータ長が構成される極く簡単なシリ
アル通信手段においても、周期性ノイズによる転送情報
の情報配列位相ずれを容易な手段で且つ低コストを維持
しながら判定できるという効果がある。
By calculating the phase timing of each predetermined cycle by the counting operation using the returned serial transfer clock as a count source and detecting the phase shift of the serial transfer clock in the transmission path, the present invention can be implemented similarly to the above. In the communication device of (1), the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information with respect to the periodic noise. Even in a very simple serial communication means, there is an effect that the information arrangement phase shift of the transfer information due to the periodic noise can be determined by an easy means and at a low cost.

【0128】請求項8記載の本発明の通信装置によれ
ば、前記主局とは、通信装置本体を装備した装置の中央
処理ユニットが有するシリアル通信のメイン装置であ
り、前記従局とは、通信装置本体を装備した装置に点在
する電気ユニットが有するシリアル通信のサブ装置であ
るため、下記のような効果を奏する。
According to the communication apparatus of the present invention, the master station is a serial communication main apparatus included in a central processing unit of a device equipped with a communication apparatus main body, and the master station is in communication with the slave station. Since this is a serial communication sub-device included in the electric units scattered in the device equipped with the device main body, the following effects are obtained.

【0129】上記と同様に、本発明の通信装置において
は、周期性ノイズに対するシリアル情報内の位相ずれ検
出用のビットを付加せずにシリアル転送クロック状態を
監視することができるために、従来技術のような転送情
報のみでデータ長が構成される極く簡単なシリアル通信
手段においても、周期性ノイズによる転送情報の情報配
列位相ずれを容易な手段で且つ低コストを維持しながら
判定できるという効果がある。
As described above, in the communication device of the present invention, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information with respect to the periodic noise. Even in an extremely simple serial communication means whose data length is constituted only by transfer information as described above, the information arrangement phase shift of transfer information due to periodic noise can be determined by an easy means and at low cost. There is.

【0130】請求項9記載の本発明の位相ずれ検出方法
によれば、主局及び複数の従局がループ式の伝送路を介
して接続された通信装置に適用される位相ずれ検出方法
であって、主局から発するシリアル情報の転送に同期し
たシリアル転送クロックをカウント源とする第1のカウ
ンタステップと、前記シリアル転送クロックをカウント
源とする第2のカウンタステップと、前記第1及び第2
のカウンタステップのカウント動作に基づき自己が発す
るシリアル転送クロックの位相ずれを検出する転送クロ
ック周期監視ステップとを有するため、下記のような効
果を奏する。
According to a ninth aspect of the present invention, there is provided a phase shift detecting method applied to a communication apparatus in which a master station and a plurality of slave stations are connected via a loop transmission path. A first counter step using a serial transfer clock synchronized with the transfer of serial information from the master station as a count source, a second counter step using the serial transfer clock as a count source, and the first and second counter steps.
And a transfer clock cycle monitoring step of detecting a phase shift of the serial transfer clock generated by the self based on the counting operation of the counter step.

【0131】本発明の位相ずれ検出方法は、シリアル転
送クロック数をカウントするカウンタステップを有す
る。更に、前記第1及び第2のカウンタステップのカウ
ント動作に基づき自己が発するシリアル転送クロックの
位相ずれを検出する転送クロック周期監視ステップを有
することで、シリアル転送クロックの異常を検出する。
これにより、本発明の位相ずれ検出方法が適用される本
通信装置においては、周期性ノイズに対するシリアル情
報内の位相ずれ検出用のビットを付加せずにシリアル転
送クロック状態を監視することができるために、従来技
術のような転送情報のみでデータ長が構成される極く簡
単なシリアル通信手段においても、周期性ノイズによる
転送情報の情報配列位相ずれを容易な手段で且つ低コス
トを維持しながら判定できるという効果がある。
The phase shift detecting method of the present invention has a counter step for counting the number of serial transfer clocks. Further, a transfer clock cycle monitoring step of detecting a phase shift of the serial transfer clock generated by the self based on the counting operation of the first and second counter steps detects an abnormality of the serial transfer clock.
Thus, in the communication apparatus to which the phase shift detecting method of the present invention is applied, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information for the periodic noise. In addition, even in a very simple serial communication means in which the data length is constituted only by the transfer information as in the prior art, the information arrangement phase shift of the transfer information due to the periodic noise can be easily performed while maintaining low cost. There is an effect that determination can be made.

【0132】請求項10記載の本発明の位相ずれ検出方
法によれば、前記第1のカウンタステップは、各従局が
各々有すると共に主局からの指示信号でカウント動作が
制御され、前記第2のカウンタステップは、少なくとも
一つ以上有すると共に前記シリアル転送クロックの総数
をカウントし、前記転送クロック周期監視ステップは、
主局が有すると共に従局から所定周期毎の位相タイミン
グで返送されるフィードバック信号に基づき自己が発す
るシリアル転送クロックの位相ずれを検出するため、下
記のような効果を奏する。
According to the phase shift detecting method of the present invention, the first counter step is provided in each of the slave stations, and the counting operation is controlled by an instruction signal from the master station. The counter step includes at least one or more and counts the total number of the serial transfer clocks, and the transfer clock cycle monitoring step includes:
Since the phase shift of the serial transfer clock generated by itself is detected based on the feedback signal which the master station has and which is returned from the slave station at a phase timing every predetermined period, the following effects are obtained.

【0133】本発明の位相ずれ検出方法は、シリアル転
送クロック数をカウントするカウンタステップを有す
る。更に、フィードバックされた位相タイミングを自己
が有するカウンタ手段で送出したシリアル転送クロック
数をカウントし、相互の位相を比較する転送クロック周
期監視ステップを有することで、シリアル転送クロック
の異常を検出する。これにより、本発明の位相ずれ検出
方法が適用される本通信装置においては、周期性ノイズ
に対するシリアル情報内の位相ずれ検出用のビットを付
加せずにシリアル転送クロック状態を監視することがで
きるために、従来技術のような転送情報のみでデータ長
が構成される極く簡単なシリアル通信手段においても、
周期性ノイズによる転送情報の情報配列位相ずれを容易
な手段で且つ低コストを維持しながら判定できるという
効果がある。
The phase shift detecting method of the present invention has a counter step for counting the number of serial transfer clocks. Furthermore, the transfer clock cycle monitoring step of counting the number of serial transfer clocks sent out by the counter means having its own phase timing fed back and comparing the phases with each other detects an abnormality of the serial transfer clock. Thus, in the communication apparatus to which the phase shift detecting method of the present invention is applied, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information for the periodic noise. In addition, even in a very simple serial communication means in which the data length is constituted only by transfer information as in the conventional technology,
There is an effect that the information arrangement phase shift of the transfer information due to the periodic noise can be determined by an easy means and at a low cost.

【0134】請求項11記載の本発明の位相ずれ検出方
法によれば、前記第1のカウンタステップのカウント値
が設定値に達した場合に主局へ位相タイミング通知用の
フィードバック信号を発すると共に従局での一連のシリ
アル通信の動作処理を実行する従局通信処理制御ステッ
プと、前記第2のカウンタステップのカウント値が設定
値になる毎に主局へフィードバック信号を返送する返送
ステップとを有するため、下記のような効果を奏する。
According to the phase shift detecting method of the present invention, when the count value of the first counter step reaches a set value, a feedback signal for notifying a phase timing is issued to the master station and the slave station is controlled. And a return step of returning a feedback signal to the master station every time the count value of the second counter step reaches a set value. The following effects are obtained.

【0135】本発明の位相ずれ検出方法は、シリアル転
送クロック数をカウントするカウンタステップを有し、
所定周期毎に主局へとフィードバックする返送ステップ
を有する。更に、フィードバックされた位相タイミング
を自己が有するカウンタ手段で送出したシリアル転送ク
ロック数をカウントし、相互の位相を比較する転送クロ
ック周期監視ステップを有することで、シリアル転送ク
ロックの異常を検出する。これにより、本発明の位相ず
れ検出方法が適用される本通信装置においては、周期性
ノイズに対するシリアル情報内の位相ずれ検出用のビッ
トを付加せずにシリアル転送クロック状態を監視するこ
とができるために、従来技術のような転送情報のみでデ
ータ長が構成される極く簡単なシリアル通信手段におい
ても、周期性ノイズによる転送情報の情報配列位相ずれ
を容易な手段で且つ低コストを維持しながら判定できる
という効果がある。
The phase shift detecting method of the present invention has a counter step for counting the number of serial transfer clocks,
There is a returning step of feeding back to the master station at predetermined intervals. Furthermore, the transfer clock cycle monitoring step of counting the number of serial transfer clocks sent out by the counter means having its own phase timing fed back and comparing the phases with each other detects an abnormality of the serial transfer clock. Thus, in the communication apparatus to which the phase shift detecting method of the present invention is applied, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information for the periodic noise. In addition, even in a very simple serial communication means in which the data length is constituted only by the transfer information as in the prior art, the information arrangement phase shift of the transfer information due to the periodic noise can be easily performed while maintaining low cost. There is an effect that determination can be made.

【0136】請求項12記載の本発明の位相ずれ検出方
法によれば、前記第2のカウンタステップは、各従局が
各々有し、前記伝送路は、前記転送クロック周期監視ス
テップへ所定の周期毎に発生する位相タイミングを伝送
する伝送路であり且つワイヤードOR回路で構成される
と共に各従局から発する複数のフィードバック信号を一
つの信号として主局へ伝送し、前記転送クロック周期監
視ステップでは、前記伝送路を介して一つの信号で伝送
される信号状態に基づき各従局のシリアル転送クロック
の位相ずれを検出するため、下記のような効果を奏す
る。
According to a twelfth aspect of the present invention, the second counter step is provided in each of the slave stations, and the transmission line is transferred to the transfer clock cycle monitoring step every predetermined period. And a transmission path for transmitting the phase timing generated in the transmission clock cycle, and a plurality of feedback signals generated from each slave station are transmitted to the master station as one signal by the wired OR circuit. Since the phase shift of the serial transfer clock of each slave station is detected based on the signal state transmitted by one signal via the path, the following effects are obtained.

【0137】各従局から発する複数のフィードバック信
号を一つの信号として主局へ伝送し、前記一つの信号で
伝送される信号状態に基づき各従局のシリアル転送クロ
ックの位相ずれを検出することで、上記と同様に、本発
明の位相ずれ検出方法が適用される通信装置において
は、周期性ノイズに対するシリアル情報内の位相ずれ検
出用のビットを付加せずにシリアル転送クロック状態を
監視することができるために、従来技術のような転送情
報のみでデータ長が構成される極く簡単なシリアル通信
手段においても、周期性ノイズによる転送情報の情報配
列位相ずれを容易な手段で且つ低コストを維持しながら
判定できるという効果がある。
By transmitting a plurality of feedback signals from each slave station to the master station as one signal and detecting the phase shift of the serial transfer clock of each slave station based on the signal state transmitted by the one signal, Similarly to the above, in the communication apparatus to which the phase shift detecting method of the present invention is applied, the state of the serial transfer clock can be monitored without adding a bit for detecting the phase shift in the serial information for the periodic noise. In addition, even in a very simple serial communication means in which the data length is constituted only by the transfer information as in the prior art, the information arrangement phase shift of the transfer information due to the periodic noise can be easily performed while maintaining low cost. There is an effect that determination can be made.

【0138】請求項13記載の本発明の位相ずれ検出方
法によれば、前記第2のカウンタステップは、前記伝送
路の最遠地点に接続される従局が有し、前記伝送路は、
前記転送クロック周期監視ステップへ所定の周期毎に発
生する位相タイミングを伝送する伝送路であり、前記転
送クロック周期監視ステップでは、前記伝送路を介して
伝送される信号状態に基づき前記伝送路内のシリアル転
送クロックの位相ずれを検出するため、下記のような効
果を奏する。
According to the phase shift detecting method of the present invention, the second counter step includes a slave station connected to the farthest point of the transmission path, and the transmission path includes:
A transmission path for transmitting a phase timing generated every predetermined period to the transfer clock cycle monitoring step, wherein the transfer clock cycle monitoring step includes a step of transmitting the phase timing in the transmission path based on a signal state transmitted through the transmission path. Since the phase shift of the serial transfer clock is detected, the following effects are obtained.

【0139】伝送される信号状態に基づき前記伝送路内
のシリアル転送クロックの位相ずれを検出することで、
上記と同様に、本発明の位相ずれ検出方法が適用される
通信装置においては、周期性ノイズに対するシリアル情
報内の位相ずれ検出用のビットを付加せずにシリアル転
送クロック状態を監視することができるために、従来技
術のような転送情報のみでデータ長が構成される極く簡
単なシリアル通信手段においても、周期性ノイズによる
転送情報の情報配列位相ずれを容易な手段で且つ低コス
トを維持しながら判定できるという効果がある。
By detecting the phase shift of the serial transfer clock in the transmission path based on the state of the transmitted signal,
As described above, in the communication device to which the phase shift detection method of the present invention is applied, the state of the serial transfer clock can be monitored without adding a bit for detecting phase shift in the serial information for the periodic noise. Therefore, even in an extremely simple serial communication means in which the data length is constituted only by the transfer information as in the prior art, the information arrangement phase shift of the transfer information due to the periodic noise can be maintained easily and at low cost. There is an effect that it is possible to make a judgment while making a decision.

【0140】請求項14記載の本発明の位相ずれ検出方
法によれば、前記第2のカウンタステップは、前記伝送
路の任意の地点に接続される従局が有し、前記伝送路
は、前記転送クロック周期監視ステップへ所定の周期毎
に発生する位相タイミングを伝送する伝送路であり、前
記転送クロック周期監視ステップでは、前記伝送路を介
して伝送される信号状態に基づき前記伝送路内のシリア
ル転送クロックの位相ずれを検出するため、下記のよう
な効果を奏する。
According to a fourteenth aspect of the present invention, the second counter step is provided by a slave station connected to an arbitrary point on the transmission path, and the transmission path includes the transmission line. A transmission path for transmitting a phase timing generated every predetermined period to a clock cycle monitoring step, wherein the transfer clock cycle monitoring step includes the step of serially transmitting data in the transmission path based on a signal state transmitted through the transmission path. The following effects are obtained because the phase shift of the clock is detected.

【0141】伝送される信号状態に基づき前記伝送路内
のシリアル転送クロックの位相ずれを検出することで、
上記と同様に、本発明の位相ずれ検出方法が適用される
通信装置においては、周期性ノイズに対するシリアル情
報内の位相ずれ検出用のビットを付加せずにシリアル転
送クロック状態を監視することができるために、従来技
術のような転送情報のみでデータ長が構成される極く簡
単なシリアル通信手段においても、周期性ノイズによる
転送情報の情報配列位相ずれを容易な手段で且つ低コス
トを維持しながら判定できるという効果がある。
By detecting the phase shift of the serial transfer clock in the transmission path based on the state of the transmitted signal,
As described above, in the communication device to which the phase shift detection method of the present invention is applied, the state of the serial transfer clock can be monitored without adding a bit for detecting phase shift in the serial information for the periodic noise. Therefore, even in an extremely simple serial communication means in which the data length is constituted only by the transfer information as in the prior art, the information arrangement phase shift of the transfer information due to the periodic noise can be maintained easily and at low cost. There is an effect that it is possible to make a judgment while making a decision.

【0142】請求項15記載の本発明の位相ずれ検出方
法によれば、前記第2のカウンタステップは、主局が有
し、前記従局通信処理制御ステップでは、前記伝送路中
の最後に位置する従局を経由したシリアル転送クロック
或いは前記伝送路中の最遠に位置する従局へのシリアル
転送クロックの何れかを主局へフィードバックし、前記
転送クロック周期監視ステップでは、前記返送されたシ
リアル転送クロックをカウント源としたカウント動作で
所定周期毎の位相タイミングを算出し前記伝送路内のシ
リアル転送クロックの位相ずれを検出するため、下記の
ような効果を奏する。
According to a fifteenth aspect of the present invention, the second counter step is provided in the master station, and the slave station communication processing control step is located last in the transmission path. Either the serial transfer clock via the slave station or the serial transfer clock to the furthest slave station in the transmission path is fed back to the master station, and in the transfer clock cycle monitoring step, the returned serial transfer clock is Since the phase timing of each predetermined period is calculated by the count operation using the count source and the phase shift of the serial transfer clock in the transmission path is detected, the following effects are obtained.

【0143】返送されたシリアル転送クロックをカウン
ト源としたカウント動作で所定周期毎の位相タイミング
を算出し前記伝送路内のシリアル転送クロックの位相ず
れを検出することで、上記と同様に、本発明の位相ずれ
検出方法が適用される通信装置においては、周期性ノイ
ズに対するシリアル情報内の位相ずれ検出用のビットを
付加せずにシリアル転送クロック状態を監視することが
できるために、従来技術のような転送情報のみでデータ
長が構成される極く簡単なシリアル通信手段において
も、周期性ノイズによる転送情報の情報配列位相ずれを
容易な手段で且つ低コストを維持しながら判定できると
いう効果がある。
By calculating the phase timing for each predetermined period by the counting operation using the returned serial transfer clock as a count source and detecting the phase shift of the serial transfer clock in the transmission path, the present invention can be implemented similarly to the above. In the communication device to which the phase shift detection method of the present invention is applied, the state of the serial transfer clock can be monitored without adding a bit for detecting the phase shift in the serial information for the periodic noise. Even in an extremely simple serial communication means whose data length is constituted only by simple transfer information, there is an effect that the information arrangement phase shift of the transfer information due to periodic noise can be determined by an easy means and at a low cost. .

【0144】請求項16記載の本発明の位相ずれ検出方
法によれば、前記主局とは、通信装置本体を装備した装
置の中央処理ユニットが有するシリアル通信のメイン装
置であり、前記従局とは、通信装置本体を装備した装置
に点在する電気ユニットが有するシリアル通信のサブ装
置であるため、下記のような効果を奏する。
According to the phase shift detecting method of the present invention, the master station is a main unit of serial communication included in a central processing unit of a device equipped with a communication device main body, and the slave station is Since the sub-devices of the serial units included in the electric units scattered in the device equipped with the communication device main body, the following effects are obtained.

【0145】上記と同様に、本発明の位相ずれ検出方法
が適用される通信装置においては、周期性ノイズに対す
るシリアル情報内の位相ずれ検出用のビットを付加せず
にシリアル転送クロック状態を監視することができるた
めに、従来技術のような転送情報のみでデータ長が構成
される極く簡単なシリアル通信手段においても、周期性
ノイズによる転送情報の情報配列位相ずれを容易な手段
で且つ低コストを維持しながら判定できるという効果が
ある。
Similarly to the above, in the communication apparatus to which the phase shift detecting method of the present invention is applied, the state of the serial transfer clock is monitored without adding a bit for detecting phase shift in the serial information for periodic noise. Therefore, even in an extremely simple serial communication means in which the data length is constituted only by the transfer information as in the prior art, the information arrangement phase shift of the transfer information due to the periodic noise can be easily performed at a low cost. There is an effect that the judgment can be made while maintaining.

【0146】請求項17記載の本発明の記憶媒体によれ
ば、主局及び複数の従局がループ式の伝送路を介して接
続された通信装置に適用される位相ずれ検出方法を実行
するプログラムを記憶したコンピュータにより読み出し
可能な記憶媒体であって、前記位相ずれ検出方法は、主
局から発するシリアル情報の転送に同期したシリアル転
送クロックをカウント源とする第1のカウンタステップ
と、前記シリアル転送クロックをカウント源とする第2
のカウンタステップと、前記第1及び第2のカウンタス
テップのカウント動作に基づき自己が発するシリアル転
送クロックの位相ずれを検出する転送クロック周期監視
ステップとを有するため、下記のような効果を奏する。
According to the storage medium of the present invention, there is provided a program for executing a phase shift detecting method applied to a communication apparatus in which a master station and a plurality of slave stations are connected via a loop transmission path. A storage medium readable by a computer, wherein the phase shift detecting method comprises: a first counter step using a serial transfer clock synchronized with a transfer of serial information issued from a main station as a count source; The second with the count source
And the transfer clock cycle monitoring step of detecting a phase shift of the serial transfer clock generated by the self based on the counting operation of the first and second counter steps, has the following effects.

【0147】本発明の位相ずれ検出方法を実行するプロ
グラムを記憶したコンピュータにより読み出し可能な記
憶媒体は、シリアル転送クロック数をカウントするカウ
ンタステップを有する。更に、前記第1及び第2のカウ
ンタステップのカウント動作に基づき自己が発するシリ
アル転送クロックの位相ずれを検出する転送クロック周
期監視ステップを有することで、シリアル転送クロック
の異常を検出する。これにより、本発明の記憶媒体が適
用される本通信装置においては、周期性ノイズに対する
シリアル情報内の位相ずれ検出用のビットを付加せずに
シリアル転送クロック状態を監視することができるため
に、従来技術のような転送情報のみでデータ長が構成さ
れる極く簡単なシリアル通信手段においても、周期性ノ
イズによる転送情報の情報配列位相ずれを容易な手段で
且つ低コストを維持しながら判定できるという効果があ
る。
A computer-readable storage medium storing a program for executing the phase shift detecting method of the present invention has a counter step for counting the number of serial transfer clocks. Further, a transfer clock cycle monitoring step of detecting a phase shift of the serial transfer clock generated by the self based on the counting operation of the first and second counter steps detects an abnormality of the serial transfer clock. Accordingly, in the present communication device to which the storage medium of the present invention is applied, the state of the serial transfer clock can be monitored without adding a bit for detecting a phase shift in the serial information with respect to the periodic noise. Even in an extremely simple serial communication unit having a data length consisting only of transfer information as in the prior art, it is possible to determine an information arrangement phase shift of transfer information due to periodic noise while maintaining low cost by an easy means. This has the effect.

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

【図1】本発明の第1の実施の形態に係るシリアル通信
装置の要部の構成を示すと共に特許請求の範囲に対応さ
せた機能ブロック図である。
FIG. 1 is a functional block diagram showing a configuration of a main part of a serial communication device according to a first embodiment of the present invention and corresponding to the claims;

【図2】本発明の第1の実施の形態に係るシリアル通信
装置の従局の回路構成を示す回路図である。
FIG. 2 is a circuit diagram showing a circuit configuration of a slave station of the serial communication device according to the first embodiment of the present invention.

【図3】本発明の第1の実施の形態に係るシリアル通信
装置のシステム構成を示すブロック図である。
FIG. 3 is a block diagram showing a system configuration of the serial communication device according to the first embodiment of the present invention.

【図4】本発明の第1の実施の形態に係るシリアル通信
装置におけるシリアル通信のタイミングチャートであ
る。
FIG. 4 is a timing chart of serial communication in the serial communication device according to the first embodiment of the present invention.

【図5】本発明の第1の実施の形態に係るシリアル通信
装置における主局制御動作を示すフローチャートであ
る。
FIG. 5 is a flowchart showing a master station control operation in the serial communication device according to the first embodiment of the present invention.

【図6】本発明の第1の実施の形態に係るシリアル通信
装置における主局制御動作を示すフローチャートであ
る。
FIG. 6 is a flowchart showing a master station control operation in the serial communication device according to the first embodiment of the present invention.

【図7】本発明の第2の実施の形態に係るシリアル通信
装置の従局の回路構成を示す回路図である。
FIG. 7 is a circuit diagram showing a circuit configuration of a slave station of a serial communication device according to a second embodiment of the present invention.

【図8】本発明の第2の実施の形態に係るシリアル通信
装置のシステム構成を示すブロック図である。
FIG. 8 is a block diagram showing a system configuration of a serial communication device according to a second embodiment of the present invention.

【図9】本発明の第3の実施の形態に係るシリアル通信
装置のシステム構成を示すブロック図である。
FIG. 9 is a block diagram showing a system configuration of a serial communication device according to a third embodiment of the present invention.

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

1、320、820、920 主局 2−1〜2−n、321〜324、821〜824、9
21〜924 従局 111 転送クロック周期監視手段 112 第1のカウンタ手段 113 従局通信処理制御手段 114 第2のカウンタ手段 115 返送手段 201 入力セレクタ回路 202 入力ラッチ回路 203 シフトレジスタ回路 204 二度読みラッチ回路 205 出力ラッチ回路 206 クロック数カウンタ回路 207 位相制御カウンタ回路 208 カウント値デコード回路 209 多入力AND回路 210 ゲートロジック群 320、820、920 主局 321〜324、821〜824、921〜924 従
1, 320, 820, 920 Main stations 2-1 to 2-n, 321 to 324, 821 to 824, 9
21 to 924 Slave station 111 Transfer clock cycle monitoring means 112 First counter means 113 Slave communication processing control means 114 Second counter means 115 Return means 201 Input selector circuit 202 Input latch circuit 203 Shift register circuit 204 Double read latch circuit 205 Output latch circuit 206 Clock number counter circuit 207 Phase control counter circuit 208 Count value decoding circuit 209 Multi-input AND circuit 210 Gate logic group 320, 820, 920 Master station 321-324, 821-824, 921-924 Slave station

Claims (17)

【特許請求の範囲】[Claims] 【請求項1】 主局及び複数の従局がループ式の伝送路
を介して接続された通信装置であって、 主局から発するシリアル情報の転送に同期したシリアル
転送クロックをカウント源とする第1のカウンタ手段
と、前記シリアル転送クロックをカウント源とする第2
のカウンタ手段と、前記第1及び第2のカウンタ手段の
カウント動作に基づき自己が発するシリアル転送クロッ
クの位相ずれを検出する転送クロック周期監視手段とを
有することを特徴とする通信装置。
1. A communication device in which a master station and a plurality of slave stations are connected via a loop-type transmission path, wherein a first clock having a serial transfer clock synchronized with transfer of serial information generated from the master station is used as a count source. And a second means using the serial transfer clock as a count source.
And a transfer clock period monitoring means for detecting a phase shift of a serial transfer clock generated by itself based on the counting operation of the first and second counter means.
【請求項2】 前記第1のカウンタ手段は、各従局が各
々有すると共に主局からの指示信号でカウント動作が制
御され、前記第2のカウンタ手段は、少なくとも一つ以
上有すると共に前記シリアル転送クロックの総数をカウ
ントし、前記転送クロック周期監視手段は、主局が有す
ると共に従局から所定周期毎の位相タイミングで返送さ
れるフィードバック信号に基づき自己が発するシリアル
転送クロックの位相ずれを検出することを特徴とする請
求項1記載の通信装置。
2. The first counter means is provided in each of the slave stations, and the counting operation is controlled by an instruction signal from the master station. The second counter means has at least one or more and the serial transfer clock. Wherein the transfer clock cycle monitoring means detects a phase shift of a serial transfer clock generated by the master station based on a feedback signal which the master station has and which is returned from the slave station at a phase timing every predetermined cycle. The communication device according to claim 1, wherein
【請求項3】 前記第1のカウンタ手段のカウント値が
設定値に達した場合に主局へ位相タイミング通知用のフ
ィードバック信号を発すると共に従局での一連のシリア
ル通信の動作処理を実行する従局通信処理制御手段と、
前記第2のカウンタ手段のカウント値が設定値になる毎
に主局へフィードバック信号を返送する返送手段とを有
することを特徴とする請求項1又は2記載の通信装置。
3. A slave station communication which issues a feedback signal for phase timing notification to the master station when the count value of the first counter means reaches a set value, and executes a series of serial communication operation processing at the slave station. Processing control means;
3. The communication device according to claim 1, further comprising a return unit that returns a feedback signal to the master station every time the count value of the second counter unit reaches a set value.
【請求項4】 前記第2のカウンタ手段は、各従局が各
々有し、前記伝送路は、前記転送クロック周期監視手段
へ所定の周期毎に発生する位相タイミングを伝送する伝
送路であり且つワイヤードOR回路で構成されると共に
各従局から発する複数のフィードバック信号を一つの信
号として主局へ伝送し、前記転送クロック周期監視手段
は、前記伝送路を介して一つの信号で伝送される信号状
態に基づき各従局のシリアル転送クロックの位相ずれを
検出することを特徴とする請求項1乃至3の何れかに記
載の通信装置。
4. The second counter means is included in each slave station, and the transmission path is a transmission path for transmitting a phase timing generated every predetermined period to the transfer clock cycle monitoring means, and An OR circuit and a plurality of feedback signals generated from each slave station are transmitted to the master station as one signal, and the transfer clock cycle monitoring means changes the signal state transmitted by one signal through the transmission path. 4. The communication apparatus according to claim 1, wherein a phase shift of a serial transfer clock of each slave station is detected based on the detected phase shift.
【請求項5】 前記第2のカウンタ手段は、前記伝送路
の最遠地点に接続される従局が有し、前記伝送路は、前
記転送クロック周期監視手段へ所定の周期毎に発生する
位相タイミングを伝送する伝送路であり、前記転送クロ
ック周期監視手段は、前記伝送路を介して伝送される信
号状態に基づき前記伝送路内のシリアル転送クロックの
位相ずれを検出することを特徴とする請求項1乃至3の
何れかに記載の通信装置。
5. The second counter means includes a slave station connected to the farthest point of the transmission path, and the transmission path transmits a phase timing generated at predetermined intervals to the transfer clock cycle monitoring means. 2. A transmission line for transmission, wherein the transfer clock cycle monitoring means detects a phase shift of a serial transfer clock in the transmission line based on a state of a signal transmitted through the transmission line. The communication device according to any one of claims 1 to 3.
【請求項6】 前記第2のカウンタ手段は、前記伝送路
の任意の地点に接続される従局が有し、前記伝送路は、
前記転送クロック周期監視手段へ所定の周期毎に発生す
る位相タイミングを伝送する伝送路であり、前記転送ク
ロック周期監視手段は、前記伝送路を介して伝送される
信号状態に基づき前記伝送路内のシリアル転送クロック
の位相ずれを検出することを特徴とする請求項1乃至3
の何れかに記載の通信装置。
6. The second counter means includes a slave station connected to an arbitrary point on the transmission path, wherein the transmission path comprises:
A transmission path for transmitting a phase timing generated every predetermined period to the transfer clock cycle monitoring means, wherein the transfer clock cycle monitoring means is configured to transmit the phase timing generated in the transmission path based on a signal state transmitted through the transmission path. 4. The method according to claim 1, wherein a phase shift of the serial transfer clock is detected.
The communication device according to any one of the above.
【請求項7】 前記第2のカウンタ手段は、主局が有
し、前記従局通信処理制御手段は、前記伝送路中の最後
に位置する従局を経由したシリアル転送クロック或いは
前記伝送路中の最遠に位置する従局へのシリアル転送ク
ロックの何れかを主局へフィードバックし、前記転送ク
ロック周期監視手段は、前記返送されたシリアル転送ク
ロックをカウント源としたカウント動作で所定周期毎の
位相タイミングを算出し前記伝送路内のシリアル転送ク
ロックの位相ずれを検出することを特徴とする請求項1
乃至3の何れかに記載の通信装置。
7. The second counter means is provided in a master station, and the slave station communication processing control means is adapted to control a serial transfer clock via a slave station located last in the transmission path or a serial transfer clock in the transmission path. Any one of the serial transfer clocks to the distant slave station is fed back to the master station, and the transfer clock cycle monitoring means uses the returned serial transfer clock as a count source to count the phase timing of each predetermined cycle by a count operation. 2. The method according to claim 1, wherein the phase shift of the serial transfer clock in the transmission path is calculated and detected.
The communication device according to any one of claims 1 to 3.
【請求項8】 前記主局とは、通信装置本体を装備した
装置の中央処理ユニットが有するシリアル通信のメイン
装置であり、前記従局とは、通信装置本体を装備した装
置に点在する電気ユニットが有するシリアル通信のサブ
装置であることを特徴とする請求項1乃至7の何れかに
記載の通信装置。
8. The main station is a main unit of serial communication included in a central processing unit of a device equipped with a communication device main body, and the slave station is an electric unit scattered in a device equipped with a communication device main body. The communication device according to claim 1, wherein the communication device is a serial communication sub-device included in the communication device.
【請求項9】 主局及び複数の従局がループ式の伝送路
を介して接続された通信装置に適用される位相ずれ検出
方法であって、 主局から発するシリアル情報の転送に同期したシリアル
転送クロックをカウント源とする第1のカウンタステッ
プと、前記シリアル転送クロックをカウント源とする第
2のカウンタステップと、前記第1及び第2のカウンタ
ステップのカウント動作に基づき自己が発するシリアル
転送クロックの位相ずれを検出する転送クロック周期監
視ステップとを有することを特徴とする位相ずれ検出方
法。
9. A phase shift detecting method applied to a communication apparatus in which a master station and a plurality of slave stations are connected via a loop transmission path, wherein the serial transfer is synchronized with the transfer of serial information issued from the master station. A first counter step using a clock as a count source, a second counter step using the serial transfer clock as a count source, and a serial transfer clock generated by itself based on the count operation of the first and second counter steps. A transfer clock cycle monitoring step of detecting a phase shift.
【請求項10】 前記第1のカウンタステップは、各従
局が各々有すると共に主局からの指示信号でカウント動
作が制御され、前記第2のカウンタステップは、少なく
とも一つ以上有すると共に前記シリアル転送クロックの
総数をカウントし、前記転送クロック周期監視ステップ
は、主局が有すると共に従局から所定周期毎の位相タイ
ミングで返送されるフィードバック信号に基づき自己が
発するシリアル転送クロックの位相ずれを検出すること
を特徴とする請求項9記載の位相ずれ検出方法。
10. The first counter step is provided in each of the slave stations, and the counting operation is controlled by an instruction signal from the master station. The second counter step has at least one or more and the serial transfer clock. And the transfer clock cycle monitoring step detects a phase shift of a serial transfer clock generated by the master station based on a feedback signal which the master station has and which is returned from the slave station at a phase timing every predetermined cycle. The phase shift detecting method according to claim 9, wherein
【請求項11】 前記第1のカウンタステップのカウン
ト値が設定値に達した場合に主局へ位相タイミング通知
用のフィードバック信号を発すると共に従局での一連の
シリアル通信の動作処理を実行する従局通信処理制御ス
テップと、前記第2のカウンタステップのカウント値が
設定値になる毎に主局へフィードバック信号を返送する
返送ステップとを有することを特徴とする請求項9又は
10記載の位相ずれ検出方法。
11. A slave station communication that issues a feedback signal for phase timing notification to the master station when the count value of the first counter step reaches a set value, and executes a series of serial communication operation processing at the slave station. 11. The phase shift detecting method according to claim 9, further comprising: a process control step; and a returning step of returning a feedback signal to the master station every time the count value of the second counter step reaches a set value. .
【請求項12】 前記第2のカウンタステップは、各従
局が各々有し、前記伝送路は、前記転送クロック周期監
視ステップへ所定の周期毎に発生する位相タイミングを
伝送する伝送路であり且つワイヤードOR回路で構成さ
れると共に各従局から発する複数のフィードバック信号
を一つの信号として主局へ伝送し、前記転送クロック周
期監視ステップでは、前記伝送路を介して一つの信号で
伝送される信号状態に基づき各従局のシリアル転送クロ
ックの位相ずれを検出することを特徴とする請求項9乃
至11の何れかに記載の位相ずれ検出方法。
12. The second counter step is provided in each of the slave stations, and the transmission path is a transmission path for transmitting a phase timing generated every predetermined period to the transfer clock cycle monitoring step, and the transmission path is wired. A plurality of feedback signals generated from the respective slave stations are transmitted to the master station as one signal, and in the transfer clock cycle monitoring step, the signal state transmitted by the single signal via the transmission path is changed to the signal state. 12. A phase shift detecting method according to claim 9, wherein a phase shift of a serial transfer clock of each slave station is detected based on the detected phase shift.
【請求項13】 前記第2のカウンタステップは、前記
伝送路の最遠地点に接続される従局が有し、前記伝送路
は、前記転送クロック周期監視ステップへ所定の周期毎
に発生する位相タイミングを伝送する伝送路であり、前
記転送クロック周期監視ステップでは、前記伝送路を介
して伝送される信号状態に基づき前記伝送路内のシリア
ル転送クロックの位相ずれを検出することを特徴とする
請求項9乃至11の何れかに記載の位相ずれ検出方法。
13. The second counter step includes a slave station connected to the farthest point of the transmission line, wherein the transmission line transmits a phase timing generated at predetermined intervals to the transfer clock cycle monitoring step. 10. The transmission line for transmission, wherein in the transfer clock cycle monitoring step, a phase shift of a serial transfer clock in the transmission line is detected based on a state of a signal transmitted through the transmission line. 13. The phase shift detecting method according to any one of claims 1 to 11.
【請求項14】 前記第2のカウンタステップは、前記
伝送路の任意の地点に接続される従局が有し、前記伝送
路は、前記転送クロック周期監視ステップへ所定の周期
毎に発生する位相タイミングを伝送する伝送路であり、
前記転送クロック周期監視ステップでは、前記伝送路を
介して伝送される信号状態に基づき前記伝送路内のシリ
アル転送クロックの位相ずれを検出することを特徴とす
る請求項9乃至11の何れかに記載の位相ずれ検出方
法。
14. The second counter step includes a slave station connected to an arbitrary point on the transmission line, wherein the transmission line transmits a phase timing generated at predetermined intervals to the transfer clock cycle monitoring step. Is a transmission path for transmitting
12. The transfer clock cycle monitoring step according to claim 9, wherein a phase shift of a serial transfer clock in the transmission path is detected based on a signal state transmitted through the transmission path. Phase shift detection method.
【請求項15】 前記第2のカウンタステップは、主局
が有し、前記従局通信処理制御ステップでは、前記伝送
路中の最後に位置する従局を経由したシリアル転送クロ
ック或いは前記伝送路中の最遠に位置する従局へのシリ
アル転送クロックの何れかを主局へフィードバックし、
前記転送クロック周期監視ステップでは、前記返送され
たシリアル転送クロックをカウント源としたカウント動
作で所定周期毎の位相タイミングを算出し前記伝送路内
のシリアル転送クロックの位相ずれを検出することを特
徴とする請求項9乃至11の何れかに記載の位相ずれ検
出方法。
15. The second counter step is provided in a master station, and in the slave station communication processing control step, a serial transfer clock via the slave station located last in the transmission path or a serial transmission clock in the transmission path is provided. Feed back any one of the serial transfer clocks to the distant slave station to the master station,
In the transfer clock cycle monitoring step, a phase operation for each predetermined cycle is calculated by a count operation using the returned serial transfer clock as a count source, and a phase shift of the serial transfer clock in the transmission path is detected. The phase shift detecting method according to any one of claims 9 to 11.
【請求項16】 前記主局とは、通信装置を装備した装
置の中央処理ユニットが有するシリアル通信のメイン装
置であり、前記従局とは、通信装置を装備した装置に点
在する電気ユニットが有するシリアル通信のサブ装置で
あることを特徴とする請求項9乃至15の何れかに記載
の位相ずれ検出方法。
16. The master station is a main unit of serial communication included in a central processing unit of a device equipped with a communication device, and the slave station is an electric unit scattered in a device equipped with a communication device. 16. The phase shift detecting method according to claim 9, wherein the phase shift detecting method is a serial communication sub device.
【請求項17】 主局及び複数の従局がループ式の伝送
路を介して接続された通信装置に適用される位相ずれ検
出方法を実行するプログラムを記憶したコンピュータに
より読み出し可能な記憶媒体であって、 前記位相ずれ検出方法は、主局から発するシリアル情報
の転送に同期したシリアル転送クロックをカウント源と
する第1のカウンタステップと、前記シリアル転送クロ
ックをカウント源とする第2のカウンタステップと、前
記第1及び第2のカウンタステップのカウント動作に基
づき自己が発するシリアル転送クロックの位相ずれを検
出する転送クロック周期監視ステップとを有することを
特徴とする記憶媒体。
17. A computer-readable storage medium storing a program for executing a phase shift detection method applied to a communication device in which a master station and a plurality of slave stations are connected via a loop transmission path. A phase counter detecting method comprising: a first counter step using a serial transfer clock synchronized with a transfer of serial information issued from a main station as a count source; a second counter step using the serial transfer clock as a count source; A transfer clock cycle monitoring step of detecting a phase shift of the serial transfer clock generated by the self based on the counting operation of the first and second counter steps.
JP10142048A 1998-05-11 1998-05-11 Communication device, phase shift detecting method, and storage medium Pending JPH11328109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10142048A JPH11328109A (en) 1998-05-11 1998-05-11 Communication device, phase shift detecting method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10142048A JPH11328109A (en) 1998-05-11 1998-05-11 Communication device, phase shift detecting method, and storage medium

Publications (1)

Publication Number Publication Date
JPH11328109A true JPH11328109A (en) 1999-11-30

Family

ID=15306201

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10142048A Pending JPH11328109A (en) 1998-05-11 1998-05-11 Communication device, phase shift detecting method, and storage medium

Country Status (1)

Country Link
JP (1) JPH11328109A (en)

Similar Documents

Publication Publication Date Title
US9213615B2 (en) Information processing apparatus with debugging unit and debugging method therefor
CN110532211B (en) Bus system
JPH06324977A (en) Data transfer method
CN109154925A (en) Communication equipment, communication means, program and communication system
JP3465889B2 (en) Serial data transfer device, control method therefor, and communication device
JPH11328109A (en) Communication device, phase shift detecting method, and storage medium
US11907155B2 (en) Bus system connecting slave devices with single-wire data access communication
JP2002029126A (en) Imaging apparatus, its serial communication control method, and storage medium
US6704371B1 (en) Receiver for communication
JP2008134807A (en) Access conflict generation system in access conflict test
US20030133470A1 (en) Polling device and communication apparatus
JP5251353B2 (en) Information processing device
JP2000041057A (en) Serial communication system, communication data control method and image forming device
JP2000183931A (en) Serial communication device and method therefor
US7114103B2 (en) System for finding and removing errors using a serial bus for a microcontroller
JPH11328110A (en) Communication device, signal content separating method and storage medium
KR100295683B1 (en) General call acknowledge apparatus and method for inter-integrated circuit
JP2000035834A (en) Remote resetting device
JPH11306134A (en) Serial communication system and its method
JP2630077B2 (en) Clock synchronous serial interface
CN116821018A (en) Interrupt signal clearing method, device, storage medium and communication system
JP2000132209A (en) Programmable controller
JPH0520783B2 (en)
KR20050075158A (en) Apparatus and method of generation interrupt signal in series interface device
US20020147935A1 (en) Timer circuit