JPH1051435A - Sampling synchronization system of pcm relay - Google Patents

Sampling synchronization system of pcm relay

Info

Publication number
JPH1051435A
JPH1051435A JP8207505A JP20750596A JPH1051435A JP H1051435 A JPH1051435 A JP H1051435A JP 8207505 A JP8207505 A JP 8207505A JP 20750596 A JP20750596 A JP 20750596A JP H1051435 A JPH1051435 A JP H1051435A
Authority
JP
Japan
Prior art keywords
sampling
transmission
value
synchronization
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP8207505A
Other languages
Japanese (ja)
Other versions
JP3557801B2 (en
Inventor
Norio Tsuchiya
紀雄 土屋
Toshiyuki Okutsu
俊幸 奥津
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP20750596A priority Critical patent/JP3557801B2/en
Publication of JPH1051435A publication Critical patent/JPH1051435A/en
Application granted granted Critical
Publication of JP3557801B2 publication Critical patent/JP3557801B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To hold data concurrence by regarding an intermediate point between the transmission and reception of a sampling address in a common frame as the reference point of a sampling clock. SOLUTION: A master station generates information frames successively and sends them to a down route. The information frames reach a return station through respective remote stations and returns to the master station through an incoming route. A remote station gathers data for itself through the outgoing route and stores its information in an information frame through the outgoing route. A transmission delay measurement counter 10 generates superframe cycles for sampling one cycle of a system frequency as 12 divisions. Counters 13 and 15 latches the timing between the reception and transmission of sampling addresses in the incoming. A correction value calculation part 16 calculates the intermediate point of timing between the reception and transmission as the reference point of the sampling clock.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マスタ局1局・複
数のリモート局及びそれらを接続するシリアル伝送路か
ら構成されるネットワークシステムをベースとしたPC
M電流作動リレーにおける、サンプリング同期方式に関
する。
The present invention relates to a PC based on a network system comprising one master station, a plurality of remote stations and a serial transmission line connecting them.
The present invention relates to a sampling synchronization system in an M current operated relay.

【0002】[0002]

【従来の技術】図11に、PCM電流作動リレーの伝送
路形態例を示す。図中、MSは親局,RS0〜RS4は
リモート局(子局)を示す。マスタ局(親局)MSは、
全局間でデータを交換するための情報フレームを連続的
に生成する。フレームは、図中の下りルートを伝搬し、
折り返し局RS4に到達し、そこから上りルートを経由
して再び親局MSに帰ってくる。
2. Description of the Related Art FIG. 11 shows an example of a transmission line configuration of a PCM current operated relay. In the figure, MS indicates a master station, and RS0 to RS4 indicate remote stations (slave stations). The master station (master station) MS
An information frame for exchanging data between all stations is continuously generated. The frame propagates the down route in the figure,
It reaches the return station RS4, from which it returns to the parent station MS via the up route.

【0003】各フレームを生成した際、親局MSは、フ
レームにIDを付加する。このIDは、フレームアドレ
スと呼ばれるもので、情報フィールドに格納される。各
局は、自局がアクセスし、データを格納すべきフレーム
アドレスを認識している。あるフレームを受信した局
は、情報フィールドからフレームアドレスを抽出し、自
局がアクセスすべきフレームかをチェックする。そうで
あった場合は、そのフレームに自局の情報を格納する。
そうでないときは、そのまま次の局へ送信する。
[0003] When each frame is generated, the master station MS adds an ID to the frame. This ID is called a frame address and is stored in an information field. Each station recognizes a frame address to be accessed by itself and to store data. The station that has received a certain frame extracts the frame address from the information field and checks whether the frame should be accessed by the own station. If so, the information of the own station is stored in the frame.
Otherwise, transmit to the next station as it is.

【0004】この様に、各局がフレームアドレスを認識
して各該当フレームにデータを格納する動作を、データ
多重方式と称する。親局MSが生成したフレーム列に各
局が続々とデータを多重し、折り返し局RS4に到達す
る。ここで、全局分のデータが揃っている状態になる。
ここまでのルートが下りルートである。
The operation in which each station recognizes a frame address and stores data in each corresponding frame is called a data multiplexing method. Each station multiplexes data one after another in the frame sequence generated by the master station MS, and arrives at the return station RS4. Here, the data for all stations is in a state of being prepared.
The route so far is the down route.

【0005】折り返し局RS4から、再び親局MSに帰
るまでのルートが上りルートで、各局はここで全局分の
データを収集する。親局に到達した上りデータは親局で
のデータ収集の後廃棄される。
[0005] The route from the return station RS4 to the return to the master station MS is the up route, and each station collects data for all stations. Uplink data that has reached the master station is discarded after data collection at the master station.

【0006】この伝送システムは、各局の情報をフレー
ムと呼ばれる規定のフォーマットに書き込み、他の局は
伝送路を介して伝わってきたフレームを読むことによ
り、情報を取り入れる。図12にそのフレームフォーマ
ットを示す。
In this transmission system, information of each station is written in a prescribed format called a frame, and the other stations take in the information by reading the frame transmitted via the transmission path. FIG. 12 shows the frame format.

【0007】図12について、フレームはHDLCなど
に従っているビット列である。フレーム受信部は、フレ
ーム先頭のフラグパターンを認識し、ここをフレームの
始まりとする。フラグパターンは、他の部分には出現し
ないユニークなビット列を定義する。情報フィールド等
でそのパターンが出現するときは、“1”又は“0”の
ビットを挿入し、フラグのユニーク性を確保する。
Referring to FIG. 12, a frame is a bit string according to HDLC or the like. The frame receiving unit recognizes the flag pattern at the head of the frame and sets this as the start of the frame. The flag pattern defines a unique bit string that does not appear in other parts. When the pattern appears in an information field or the like, a bit of "1" or "0" is inserted to ensure the uniqueness of the flag.

【0008】情報フィールドには、仕様で定義される情
報がアサインされる。その中で、フレームのIDとして
フレームアドレスFAが格納される。フレームアドレス
は、ある範囲内のサイクリックな数値が定義される。そ
の範囲は、フレームの集合が表す論理的な意味あいによ
り異なる。FCSは、フレームの信頼性を確保するため
の冗長部分である。CRC符号などが使用される。
[0008] Information defined by specifications is assigned to the information field. The frame address FA is stored therein as the frame ID. As the frame address, a cyclic numerical value within a certain range is defined. The range depends on the logical meaning of the set of frames. The FCS is a redundant part for ensuring the reliability of the frame. A CRC code or the like is used.

【0009】図13に各局の基本構成を示す。1局は上
り,下りルートで、図13のブロック(21〜28)2
組で構成される。図中、21はシリアルデータの受信部
で、受信データ・受信クロックを受信する。22はデー
タ分離部で、受信クロック・フレームのフラグ部を基に
してタイミングを作り、情報フィールド・FCSなどを
抽出する。23はFA検出部で、検出したフレームアド
レスFAを自局登録分と比較する。ただ下りルートの
み。24は受信バッファで、分離された情報フィールド
内のデータが格納される。25はフレーム生成部で、マ
スタ局下りルートのみ、フレームを連続的に生成する。
26はデータ多重部で、送信データをHDLCフォーマ
ットのフレームに構成する。他局フレームも通過する。
27は送信バッファで、自局多重フレームに格納する送
信データを格納する。ただし下りルートのみ。28はシ
リアルデータの送信部で、送信データ・送信クロックを
送出する、ものである。
FIG. 13 shows the basic configuration of each station. One station is an up and down route, and blocks (21 to 28) 2 in FIG.
Consists of a set. In the figure, reference numeral 21 denotes a serial data receiving unit which receives received data and a received clock. Reference numeral 22 denotes a data separation unit that creates timing based on the flag portion of the received clock frame and extracts an information field, FCS, and the like. Reference numeral 23 denotes an FA detection unit which compares the detected frame address FA with its own registration. Just down route. A reception buffer 24 stores data in the separated information field. Reference numeral 25 denotes a frame generation unit that continuously generates frames only for the master station downlink route.
Reference numeral 26 denotes a data multiplexing unit, which configures transmission data into a frame in HDLC format. Other station frames also pass.
A transmission buffer 27 stores transmission data to be stored in the own station multiplex frame. However, only the down route. Reference numeral 28 denotes a serial data transmitting unit for transmitting transmission data and a transmission clock.

【0010】各局間のデータ多重化の流れを図14に示
す。下りルートでデータを収集し、上りルートでデータ
を分配する。分配されたデータを基に、判定が全端子
(局)で行われる。伝送データ・フォーマットは、HD
LCフレーム・フォーマットである。このシステムの多
重方式は、フレームを最小単位としている。
FIG. 14 shows the flow of data multiplexing between stations. Data is collected on the down route and distributed on the up route. The determination is made at all terminals (stations) based on the distributed data. Transmission data format is HD
LC frame format. The multiplex system of this system uses a frame as a minimum unit.

【0011】図14において多重されるIXは、1つ以
上のフレームに相当する。(1局で2フレーム以上多重
する場合もある。)以下に、ルート別の多重・分配・判
定の過程を示す。
[0011] The multiplexed IX in FIG. 14 corresponds to one or more frames. (In some cases, two or more frames are multiplexed by one station.) The process of multiplexing, distribution, and determination for each route will be described below.

【0012】(1)下りルート 各局がデータをフレームに多重するルートである。(1) Downlink route A route in which each station multiplexes data into frames.

【0013】親局MSは、自ら生成するフレームタイミ
ングを基にして、フレームを絶えず生成し、下りルート
に送信する。
The master station MS constantly generates frames based on the frame timing generated by itself, and transmits the frames to the downstream route.

【0014】これにより、リモート局における多重タイ
ミング(フレーム単位のタイム・スロット)が確保され
る。ここで親局自ら、データを多重する場合もある。
As a result, multiplex timing (time slot in frame units) in the remote station is secured. Here, the master station itself may multiplex data.

【0015】生成されるフレームのIDは、フレーム単
位のフレームアドレスである。
The ID of the generated frame is a frame address in a frame unit.

【0016】リモート局RSは、これらのフレームを受
けて同期を確立した後に、あらかじめ設定されたフレー
ムアドレスから、自局が多重すべきフレームを検出し
て、自局データを多重する。
After receiving these frames and establishing synchronization, the remote station RS detects a frame to be multiplexed by itself from a preset frame address, and multiplexes its own data.

【0017】折り返し局まで到達したフレームの流れ
は、そこでも他局と同様にデータが多重され、上りルー
トへ送信される。
In the flow of the frame that has reached the return station, data is multiplexed in the same manner as in the other stations and transmitted to the upstream route.

【0018】(2)上りルート 全局分の多重データを各局が分配・判定を行う。(2) Up route Each station distributes / determines multiplexed data for all stations.

【0019】折り返し局からのフレームは、各リモート
局を経て親局へ戻る。各局では受信したデータがバッフ
ァに蓄えられ、端子内のホストコンピュータで処理(判
定)される。親局に到達したデータはチェックを受けた
後、廃棄される。
The frame from the return station returns to the master station via each remote station. In each station, the received data is stored in a buffer and processed (determined) by the host computer in the terminal. Data that has reached the master station is discarded after being checked.

【0020】[0020]

【発明が解決しようとする課題】上記従来のデータ伝送
システムにおいて、伝送路障害時のリカバリーとして、
親局機能が交替し、伝送路の再構成により情報の透過性
を確保するが、親局が交替するとき、仮親局を基準に上
り,下りの伝送路が確定するため、伝送路障害前後での
伝送フレームの連続性が損なわれる。この結果、親局に
よるサンプリング同期と、仮親局によるサンプリング同
期時刻とは異なる位相から開始されてしまう。
In the above-mentioned conventional data transmission system, as a recovery at the time of transmission line failure,
The master station function is switched and information transparency is ensured by reconfiguring the transmission path. However, when the master station is switched, the upstream and downstream transmission paths are determined based on the temporary master station. The continuity of the transmission frame is lost. As a result, the sampling synchronization by the master station and the sampling synchronization time by the temporary master station are started from different phases.

【0021】つまり、親局と仮親局のサンプリング同期
に関するクロック源に、同期をとるメカニズムが存在し
ないので、再びサンプリング同期を取り直すこととな
る。この取り直しの間、サンプリング周期の時間歪(一
定周期でない期間が存在する)の発生の仕方によって
は、このサンプリング周期で処理を行っている処理に遅
延が生じてしまい、正常な保護動作ができなくなる恐れ
がある。
That is, since there is no mechanism for synchronizing the clock source for sampling synchronization between the master station and the temporary master station, sampling synchronization is re-established. During this re-establishment, depending on how the time distortion of the sampling cycle occurs (a period that is not a fixed cycle exists), the processing performed in this sampling cycle is delayed, and a normal protection operation cannot be performed. There is fear.

【0022】本発明は、従来のこのような問題点に鑑み
てなされたものであり、その目的とするところは、サン
プリング周期の時間歪を小さく正常な保護動作をなしう
るPCMリレーにおけるサンプリング周期方式を提供す
ることにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and an object of the present invention is to provide a sampling period method in a PCM relay capable of performing a normal protection operation with a small time distortion of the sampling period. Is to provide.

【0023】[0023]

【課題を解決するための手段】本発明は、親局と複数の
子局及びそれらを接続するシリアル伝送路からなるネッ
トワークシステムをベースとするデータ多重方式のPC
M電流リレーのデータサンプリングクロックを同期化さ
せる、PCMリレーにおけるサンプリング同期方式にお
いて、各局に、伝送遅延時間を各共通フレーム内のサン
プリングアドレスの送,受信を基準に測定してその中間
点をサンプリングクロックの基準とする基準,クロック
生成手段と、伝送レートのベースクロックをDPLL制
御にて基準クロックにサンプリングクロックを同期化さ
せる従属同期化させる手段とからなるものである。
SUMMARY OF THE INVENTION The present invention provides a data multiplexing type PC based on a network system comprising a master station, a plurality of slave stations, and a serial transmission line connecting them.
In the sampling synchronization method in the PCM relay, which synchronizes the data sampling clock of the M current relay, the transmission delay time is measured for each station based on the transmission and reception of the sampling address in each common frame, and the intermediate point is set as the sampling clock. And a means for synchronizing the sampling clock with the reference clock by DPLL control of the base clock of the transmission rate and a means for subordinate synchronization.

【0024】上記、基準クロック生成手段は、基準クロ
ック生成手段が、ベースクロックをカウントする1スー
パーフレーム時間の周期を持つ伝送遅延測定カウンタ
と、下りデータの多重部に設けられ、共通フレーム内サ
ンプリングアドレスを送信したタイミングでそのサンプ
リングアドレス値とその時の前記カウンタ値をラッチす
る手段と、上りデータの分離部に設けられ、共通フレー
ム内サンプリングアドレスを分離したタイミングで、サ
ンプリングアドレス値をラッチする手段と、前記サンプ
リングアドレス値に対応するバッファを持ち、前記各割
り込みに対応したサンプリングアドレスの指すバッファ
に割り込み発生時のカウント値の平均値を補正値として
格納する手段と、前記バッファの値が設定され、前記カ
ウンタのカウント値が設定値と一致すると基準クロック
を発生する比較手段とにより構成するとよい。
The reference clock generating means is provided in a transmission delay measurement counter having a period of one superframe time for counting a base clock and a multiplexing unit for downlink data, and includes a sampling address in a common frame. Means for latching the sampling address value and the counter value at that time at the timing of transmitting the data, means for providing the sampling address value at the timing of separating the sampling address in the common frame provided in the uplink data separation unit, A means having a buffer corresponding to the sampling address value, a means for storing an average value of the count value at the time of occurrence of the interrupt as a correction value in a buffer pointed to by the sampling address corresponding to each interrupt, and the value of the buffer is set; Counter count value To match the set value may be configured by a comparator means for generating a reference clock.

【0025】また、親局に有効端子データの多重を開始
するためのハンドシェークに、共通フレーム内に定義さ
れているULフラグを使用し、送信時ULフラグをレデ
ィ状態とし、サンプリングアドレス遅延時間を無効に設
定して共通フレームを送出する手段を設け、子局に、有
効端子データの多重を開始する時のハンドシェークに、
共通フレーム内に定義されているULフラグを使用し、
サンプリング同期規定のうちは、ULフラグをアンレデ
ィにして送出し、サンプリング同期化完了で、ULフラ
グをレディ状態で送出する手段を設けるとよい。
In addition, a UL flag defined in the common frame is used in a handshake for starting multiplexing of valid terminal data to the master station, the UL flag is set to a ready state at the time of transmission, and the sampling address delay time is invalidated. Means to send a common frame by setting to
Using the UL flag defined in the common frame,
Among the sampling synchronization rules, it is preferable to provide a means for sending the UL flag in an unready state and sending the UL flag in a ready state when the sampling synchronization is completed.

【0026】[0026]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

1.基本方式 図11に示すPCM電流動作リレーのデータ・伝送シス
テムにおいて、各局で収集・分配される端子データは、
データの同時性が要求されている。同時性とは、次の2
点である。
1. Basic method In the data and transmission system of the PCM current operation relay shown in FIG. 11, terminal data collected and distributed at each station is as follows:
Data concurrency is required. Simultaneity is the following 2
Is a point.

【0027】(1)全局間で、データサンプリングタイ
ミングの同期をとること。(サンプリングクロックま同
期化) (2)全局、同一のサンプリングクロックエッジで収集
した端子データを、同一のマルチフレームに多重するこ
と。(データの同期化) 上記(1)は、伝送遅延時間から算出した値で動作する
基準クロックで、自局のサンプリングクロックに従属同
期をかけることにより、全局間同期を実現する。
(1) Synchronize data sampling timing among all stations. (Synchronization up to sampling clock) (2) All terminals must multiplex terminal data collected at the same sampling clock edge into the same multiframe. (Data Synchronization) The above-described (1) is a reference clock that operates with a value calculated from the transmission delay time, and achieves inter-station synchronization by applying dependent synchronization to the sampling clock of the own station.

【0028】上記(2)の実現のため、サンプリング信
号に同期した、ナンバリング信号を生成する。これを自
局のデータ収集モジュールが受け取ることにより、サン
プリングタイミング及び、ナンバリングの双方を認識で
きる。
In order to realize the above (2), a numbering signal synchronized with the sampling signal is generated. When the data collection module of the own station receives this, both the sampling timing and the numbering can be recognized.

【0029】図2に親局から折返局往復の、伝送時間を
示す。時間t1で親局から送信されたフレームは、折返
局を経て時間t2に親局に帰ってくる。伝送仕様上、こ
の中間点は全局で一致していることになる。この点をサ
ンプリング同期点と定め、サンプリングクロックの基準
とする。
FIG. 2 shows the transmission time of the round trip from the master station to the return station. The frame transmitted from the master station at time t1 returns to the master station at time t2 via the loopback station. According to the transmission specifications, this intermediate point is the same for all stations. This point is defined as a sampling synchronization point, and is used as a reference for a sampling clock.

【0030】伝送遅延時間t1〜t2は、各共通フレー
ム内・サンプリングアドレス(SA)の送受信を基準に
測定する。共通フレームの送信間隔は、サンプリング間
隔に等しい(位相は異なる)ので、全SAに関するサン
プリング(SP)同期点を求めることにより、全局間で
同期した、サンプリングクロックの基準信号を作ること
ができる。
The transmission delay times t1 to t2 are measured based on the transmission and reception of the sampling address (SA) in each common frame. Since the transmission interval of the common frame is equal to the sampling interval (has a different phase), a sampling (SP) synchronization point for all SAs can be determined to generate a sampling clock reference signal synchronized between all stations.

【0031】各局は、サンプリングクロック用発振器を
備えている。これに基準クロックで従属同期をかけるこ
とにより、各局同一タイミングのデータサンプリング信
号を得ることができる。
Each station has a sampling clock oscillator. By subjecting this to subordinate synchronization with a reference clock, a data sampling signal at the same timing at each station can be obtained.

【0032】この信号は、サンプリング同期信号(SY
NC1)と呼ばれる。系統周波数の1周期は12サンプ
リングされるので、これに0…11のナンバをつける。
このため、12個おきのSYNC1に同期してアサート
される。SYNC4信号(サンプリング同期ナンバリン
グ信号)を定義する。
This signal is a sampling synchronizing signal (SY
NC1). Since one cycle of the system frequency is sampled 12 times, numbers 0 to 11 are assigned to these.
Therefore, it is asserted in synchronization with every twelfth SYNC1. The SYNC4 signal (sampling synchronization numbering signal) is defined.

【0033】各局のリレーモジュールは、SYNC1を
サンプリングトリガとし、SYNC4で順番を知る。S
YNC4がアサートされているときのSYNC1でのサ
ンプリングデータに、サンプリングナンバ♯0のタグを
つける。それ以降、11までのシーケンシャルなタグを
サンプリングデータに付加していくタグ♯0を最初に付
けるタイミングを全局で合わせれば、データの同期生が
確保できる。
The relay module of each station uses SYNC1 as a sampling trigger and uses SYNC4 to determine the order. S
A tag of sampling number # 0 is attached to the sampling data at SYNC1 when YNC4 is asserted. Thereafter, if the timing at which the tag # 0 for adding the sequential tags up to 11 to the sampling data is first added is adjusted in all the stations, data synchronization can be ensured.

【0034】図1に上記サンプリング同期方式の要部回
路ブロックを示す。図1において、1は位相比較の基準
クロックを発生する基準クロック生成部、2は従属同期
の対象となるベースクロック(1.544MHz)を発
生するクロック源、3は基準クロックと位相比較し、ベ
ースクロックを分周して従属同期信号を出力する従属同
期部、4はこの分周出力とSYNC4強制同期信号から
SP同期信号を生成するSYNC信号生成部である。
FIG. 1 shows a main circuit block of the sampling synchronous system. In FIG. 1, reference numeral 1 denotes a reference clock generator that generates a reference clock for phase comparison, 2 denotes a clock source that generates a base clock (1.544 MHz) to be subjected to slave synchronization, and 3 denotes a phase comparison with the reference clock. A slave synchronization unit 4 that divides the clock and outputs a slave synchronization signal is a SYNC signal generation unit that generates an SP synchronization signal from the divided output and the SYNC4 forced synchronization signal.

【0035】2.基準クロックの生成 図3に基準クロック生成部の回路ブロックを示す。図3
において、10は伝送遅延測定カウンタ、11はSAラ
ッチ部、12および14は下り多重部及び上り分離部の
受信SA保持用レジスタ、13及び15は伝送遅延測定
カウント値のラッチ用カウンタ、16は発生する補正値
(遅延時間)算出部、17はSA−補正値テーブル、1
8は基準クロックを出力するコンパレータである。
2. Generation of Reference Clock FIG. 3 shows a circuit block of the reference clock generation unit. FIG.
, 10 is a transmission delay measurement counter, 11 is an SA latch unit, 12 and 14 are reception SA holding registers of a downlink multiplexing unit and an uplink demultiplexing unit, 13 and 15 are transmission delay measurement count latching counters, and 16 is a generation counter. Correction value (delay time) calculation unit, 17 is an SA-correction value table,
Reference numeral 8 denotes a comparator that outputs a reference clock.

【0036】伝送遅延測定カウンタ10は、1スーパー
フレーム時間の周期を持ち、図4のようにフルカウント
でゼロに戻る、自走カウンタである。1スーパーフレー
ムは25704ビットなので、伝送レートから周期を求
めると、約16.6mSとなる。カウンタ刻み(補正値
精度)は、約640nSとなる。カウンタ幅は、15ビ
ットである。カウンタ周期は、スーパーフレーム周期と
等しいが、位相関係は不定である。
The transmission delay measurement counter 10 is a free-running counter having a period of one superframe time and returning to zero at full count as shown in FIG. Since one superframe has 25704 bits, the period is calculated to be about 16.6 mS from the transmission rate. The counter increment (correction value accuracy) is about 640 ns. The counter width is 15 bits. The counter period is equal to the superframe period, but the phase relationship is undefined.

【0037】カウンタ13,15はSA送信・受信タイ
ミングでカウンタ10の出力をラッチし、補正値算出部
16はこのカウンタ値からSP同期カウンタ値を求め
る。この値は、伝送遅延時間の中間点に相当する、カウ
ンタ上の値である。これを補正値と称する。各SA毎の
補正値は、SAをインデックスで参照されるテーブル1
7で管理する。
The counters 13 and 15 latch the output of the counter 10 at the SA transmission / reception timing, and the correction value calculation unit 16 obtains the SP synchronization counter value from this counter value. This value is a value on the counter corresponding to the midpoint of the transmission delay time. This is called a correction value. The correction value for each SA is stored in Table 1 in which the SA is referred to by the index.
7 to manage.

【0038】この補正値とカウンタ値をコンパレータ1
8に設定しておくと、カウンタ10が一周した後に補正
値と一致する。ここが、あるサンプリングアドレス(S
An)に対応するSP同期点である。このタイミングで
コンパレータ18は基準クロック・補正値一致割り込み
を発生させる。一致割り込み発生毎にテーブル上の補正
値を更新して行くと、基準クロックが、サンプリング周
期て発生する。
The correction value and the counter value are stored in a comparator 1
If it is set to 8, it will match the correction value after the counter 10 has made one round. Here is a certain sampling address (S
An SP synchronization point corresponding to An). At this timing, the comparator 18 generates a reference clock / correction value match interrupt. When the correction value on the table is updated every time a coincidence interrupt occurs, a reference clock is generated at a sampling cycle.

【0039】図4に伝送遅延時間と、カウンタ値の関係
を示す。図の上側はフレームの時間対距離のパスとSP
同期点との関係である。t1で送信された共通フレーム
にのみ存在しFAの次のフィールドに位置するフレーム
のSA部がt2で受信され、中間点をSP同期点として
いる様子を表している。斜線が奇跡である。図の下側が
対応するカウンタの値である。横軸が時間・対軸がカウ
ンタ値で、各時間毎のカウンタ値をプロットすると、図
中の斜線となる。
FIG. 4 shows the relationship between the transmission delay time and the counter value. The upper part of the figure shows the time-distance path and SP of the frame.
This is the relationship with the synchronization point. This shows a state in which the SA part of the frame located only in the common frame transmitted at t1 and located in the next field of the FA is received at t2, and the intermediate point is set as the SP synchronization point. The slash is a miracle. The lower side of the figure is the value of the corresponding counter. When the horizontal axis indicates time and the counter axis indicates counter values, and the counter values for each time are plotted, the hatched lines in the figure are obtained.

【0040】サンプリング同期点は、SPn・SPn+
1…である。これら点は、伝送路に異常がなければ、全
局一致した時間になる。ここで、任意のスーパーフレー
ム内・n番目のマルチフレームのサンプリングアドレス
をSAnとすると、SP同期点は、SPnとなる。SP
同期点では、基準クロックSPCLKnが生成される。
SPnのSPCLKnは、1周期前のSAnにて求めら
れた補正値である、比較カウント値CPn−1により生
成される。
The sampling synchronization point is SPn · SPn +
1 ... If there is no abnormality in the transmission path, these points coincide with all stations. Here, assuming that the sampling address of the n-th multi-frame in an arbitrary superframe is SAn, the SP synchronization point is SPn. SP
At the synchronization point, a reference clock SPCLKn is generated.
SPCLKn of SPn is generated by the comparison count value CPn-1 which is a correction value obtained by SAn one cycle before.

【0041】図3について、基準クロック生成部1は、
一定時間、伝送エラーなどが検出されず、受信データの
信頼性が確認された後に、次手順でF/W処理をする。
(図10の101〜105参照) (1)下り多重部(12,13)は、共通フレーム内S
Aを送信したタイミングで、そのSA値とそのときの伝
送遅延測定カウンタ値をラッチし、割り込みを発生す
る。(下りSA送信割り込み) (2)上り分離部(14,15)は、共通フレーム内S
Aを分離したタイミングで、上記同様にSA値とカウン
タ値をラッチし、割り込みを発生する。(上りSA受信
割り込み) (3)SA−補正値テーブル17は、SA値(0…1
1)に対応した12個のバッファを持ち、上記(1),
(2)の割り込みに対応したSAの指すバッファに補正
値(遅延時間)CSPとして格納する。補正値算出部16
における補正値の算出方法は、後に述べる。
Referring to FIG. 3, the reference clock generator 1
After a transmission error or the like is not detected for a certain period of time and the reliability of the received data is confirmed, the F / W processing is performed in the next procedure.
(See 101 to 105 in FIG. 10) (1) The downlink multiplexing unit (12, 13)
At the timing of transmitting A, the SA value and the transmission delay measurement counter value at that time are latched, and an interrupt is generated. (Downlink SA transmission interrupt) (2) The uplink separation unit (14, 15)
At the timing when A is separated, the SA value and the counter value are latched in the same manner as described above, and an interrupt is generated. (Uplink SA reception interrupt) (3) The SA-correction value table 17 indicates that the SA value (0... 1)
It has 12 buffers corresponding to (1), and has the above (1),
The correction value (delay time) CSP is stored in the buffer pointed to by the SA corresponding to the interrupt of (2). Correction value calculation unit 16
The method for calculating the correction value in will be described later.

【0042】このときの補正値の誤差が±20μS内に
なるまで待つ。精度内に収まったら、(4)に進む。
Wait until the error of the correction value at this time is within ± 20 μS. If it is within the accuracy, proceed to (4).

【0043】(4)バッファ上の補正値をコンパレータ
18に設定し、コンパレータをイネーブルにする。
(4) The correction value on the buffer is set in the comparator 18, and the comparator is enabled.

【0044】(5)カウンタ10が次の1周期に入り、
コンパレータ18の設定値と一致すると、カウント一致
割り込みが発生する。
(5) The counter 10 enters the next cycle,
When the value matches the set value of the comparator 18, a count match interrupt is generated.

【0045】同時に、基準クロックが1つ発生する。At the same time, one reference clock is generated.

【0046】(6)この割り込みにて、F/Wは、補正
値バッファ内の次の値をコンパレータに設定する。
(6) At this interrupt, the F / W sets the next value in the correction value buffer to the comparator.

【0047】(7)以降、補正値の精度を監視しなが
ら、上記(5),(6)を繰り返す。
(7) Thereafter, the above (5) and (6) are repeated while monitoring the accuracy of the correction value.

【0048】2.1 補正値の算出 補正値算出部16は、下りSA送信割り込みが、t1で
発生したときのカウンタ13のカウント値をC1とし、
同一SA値の上りSA受信割り込みがt2で発生したと
きのカウンタ15のカウント値をC2として、補正値C
SPを算出する。基本的には(1)式又は(2)式で求め
る。(実際には、チューニングが必要)(図5参照) C1<C2のとき(同一カウント内)は、 CSP=(C1+C2)/2 ……(1) C1>C2のとき(一度フルカウント→ゼロ)は、 CSP=(C1+C2−T)/2 ……(2) (Tは、フルカウント値) 2.2 伝送エラー検出時の対策 サンプリングクロック同期において、SAの値は補正値
設定時のポインタとなる。このSA値が正しくないと、
他SAの補正値を破壊する可能性がある。このため、補
正値をテーブル17に格納するとき、受信エラーステー
タスのチェックを行い、SAの正当性をチェックする必
要がある。
[0048] 2.1 calculated correction value calculating unit 16 of the correction value, and downlink SA transmission interrupt, the count value of the counter 13 when generated by t1 and C 1,
The count value of the counter 15 when the uplink SA receive interrupt of the same SA value has occurred at t2 as C 2, the correction value C
Calculate SP . Basically, it is determined by equation (1) or equation (2). (Actually, tuning is required.) (See FIG. 5) When C 1 <C 2 (within the same count), C SP = (C 1 + C 2 ) / 2 (1) C 1 > C 2 At the time (once full count → zero), C SP = (C 1 + C 2 −T) / 2 (2) (T is a full count value) 2.2 Countermeasures at the time of transmission error detection The value becomes a pointer when setting the correction value. If this SA value is incorrect,
There is a possibility that the correction value of another SA is destroyed. Therefore, when storing the correction value in the table 17, it is necessary to check the reception error status and check the validity of the SA.

【0049】ただし、遅延値自体の正当性は、属するマ
ルチフレームが正常でないとならない。
However, the validity of the delay value itself is that the multiframe to which the delay value belongs is not normal.

【0050】正常運用中は、極端な伝送遅延の変動は発
生し得ないが、上記の原因などにより、今回値が使用で
きないような場合は、前回の補正値をそのまま使用す
る。
During normal operation, extreme fluctuations in transmission delay cannot occur. However, if the current value cannot be used due to the above-mentioned reasons, the previous correction value is used as it is.

【0051】3.サンプリングクロックの従属同期 従属同期部3は、基準クロック生成部1で生成された基
準クロックを基に、自局サンプリングクロックに従属同
期をかけて全局で同期を取る。
3. Dependent Synchronization of Sampling Clock The slave synchronizer 3 synchronizes all the stations based on the reference clock generated by the reference clock generator 1 with the slave clock of the own station.

【0052】図6に従属同期部3のブロックを示す。図
中、31は分周器、32は位相比較部で、位相比較部は
基準クロックと分周器からのF/B信号との位相差から
分周比を決定し、分周器は位相比較部で設定された分周
比によりベークロックを分周するPLL回路構成となっ
ている。
FIG. 6 shows a block diagram of the subordinate synchronization unit 3. In the figure, 31 is a frequency divider, 32 is a phase comparator, and the phase comparator determines the frequency division ratio from the phase difference between the reference clock and the F / B signal from the frequency divider. The PLL circuit is configured to divide the clock by the division ratio set by the section.

【0053】3.1 ベースクロックの周波数 PCMリレーシステム(図11)は、系統60Hzの端
子データサンプリングを行う。仕様上、系統1周期あた
り12回データサンプリングを行うので、サンプリング
周波数は720Hzとなる。それに対し、伝送レートは
1.544MHzである。これをベースにすると、系統
周波数との間で微少な誤差が生じる。この誤差は蓄積す
ると、サンプリングデータタイミンキグの狂いを発生さ
せる。このため、サンプリングタイミングの基本クロッ
クを伝送レートとする。
3.1 Frequency of Base Clock The PCM relay system (FIG. 11) performs terminal data sampling of a system of 60 Hz. According to the specifications, data sampling is performed 12 times per one cycle of the system, so that the sampling frequency is 720 Hz. In contrast, the transmission rate is 1.544 MHz. On the basis of this, a small error occurs with the system frequency. When this error accumulates, the sampling data timing misalignment occurs. For this reason, the basic clock of the sampling timing is used as the transmission rate.

【0054】ベースクロックを1.544MHzとし、
基本分周比を2142に設定すると、1.544×10
6/2142=約720.821662Hz となる。
When the base clock is 1.544 MHz,
When the basic frequency division ratio is set to 2142, 1.544 × 10
6/2142 = about 720.821662Hz.

【0055】この値に対し、従属同期部3の同期判定
は、±32カウントの範囲内とする。この値は仕様(±
20μS)を満足する。
With respect to this value, the synchronization determination of the slave synchronization unit 3 is set within a range of ± 32 counts. This value is specified (±
20 μS).

【0056】分周比が1違うときの周期の差は、1/
1.544×106なので、約640nSとなる。これ
の32カウント分は、(1/1.544×106)×3
2=約20.73μS である。
When the frequency division ratio is different by one, the period difference is 1 /
Since it is 1.544 × 10 6 , it is about 640 ns. 32 counts of this is (1 / 1.544 × 10 6 ) × 3
2 = about 20.73 μS.

【0057】この原理は、系統50Hzでも問題なく適
用が可能である。
This principle can be applied to a system of 50 Hz without any problem.

【0058】3.2 同期成立判定 サンプリング同期は、従属同期回路3からのDPLLス
テータスが同期完了を示したときに同期成立と判定され
る。
3.2 Determination of Synchronization Establishment Sampling synchronization is determined to be synchronization establishment when the DPLL status from the slave synchronization circuit 3 indicates that synchronization has been completed.

【0059】成立条件は、(補正値が±20μS以内の
精度)及び(DPLLが従属同期完了)であり、同期は
ずれ条件は、(補正値が±20μS以上ずれた)又は
(DPLLが従属同期はずれ)となる。
The conditions to be satisfied are (accuracy of the correction value within ± 20 μS) and (DPLL is dependent synchronization completed). The out-of-synchronization condition is (the correction value is shifted by ± 20 μS or more) or (DPLL is dependent synchronization) ).

【0060】4.SYNC1・2信号の生成 従属同期部3の出力は、SP同期信号生成部4により、
SYNC1・2信号となる。SYNC4は、図7に示す
ようにSYNC1の12回アサートに1回アサートされ
る。これらは、従属同期成立・不成立に関わらず出力さ
れる。従属同期成立後は、基準クロックに同期した信号
となる。
4. Generation of SYNC 1.2 Signals The output of the slave synchronization unit 3 is output by the SP synchronization signal generation unit 4
SYNC 1 and 2 signals. SYNC4 is asserted once for every 12 assertions of SYNC1 as shown in FIG. These are output irrespective of whether subordinate synchronization is established or not. After the dependent synchronization is established, the signal is synchronized with the reference clock.

【0061】4.1 SYNC4信号の強制同期 SYNC4信号は、SYNC1信号のナンバ“0”でア
サートされる。従属同期前は、初期化値で自走している
が、従属同期が完了し、SYNC1のナンバが明確にな
った時点で、SYNC4をその周期に強制同期させる。
4.1 Forced Synchronization of SYNC4 Signal The SYNC4 signal is asserted with the number “0” of the SYNC1 signal. Before subordinate synchronization, the mobile station is self-running with the initialization value. However, when subordinate synchronization is completed and the number of SYNC1 becomes clear, SYNC4 is forcibly synchronized with the cycle.

【0062】強制同期を行うときは、SA11の補正値
一致割り込み処理中に、CSRの強制同期イネーブルビ
ットをセットする。次に発生するSA0の補正値一致割
り込み発生で、SYNC4が強制同期される。SYNC
4は、SYNC1を入力とする12カウンタ回路で生成
するので、このときにカウンタをリセットすればよい。
When performing forced synchronization, the forced synchronization enable bit of the CSR is set during the correction value match interrupt processing of SA11. When the next correction value coincidence interrupt of SA0 occurs, SYNC4 is forcibly synchronized. SYNC
Since 4 is generated by a 12-counter circuit that receives SYNC1 as an input, the counter may be reset at this time.

【0063】5.データの同期化 SA補正値が集束した後、コンパレータ18での比較を
開始するが、開始するSA値を特定しておくと、カウン
タ10のカウンタ1周期後に発生する割り込みに対応す
る、サンプリングナンバを特定することができる。(図
3) 例えば、SA補正値の集束後SA0から比較を開始する
と、最初の一致割り込みは、SA0のSP同期点とな
る。この処理を全局で行うと、一致割り込み(基準クロ
ック)は、全局SA0相当から開始される。
5. Data Synchronization After the SA correction value is converged, the comparison by the comparator 18 is started. When the starting SA value is specified, the sampling number corresponding to the interrupt generated after one cycle of the counter 10 of the counter 10 is changed. Can be identified. (FIG. 3) For example, when the comparison is started from SA0 after the SA correction value is converged, the first coincidence interrupt is the SP synchronization point of SA0. When this processing is performed in all the stations, the coincidence interrupt (reference clock) is started from the equivalent of SA0 in all the stations.

【0064】基準クロックの生成により、サンプリング
クロックの従属同期が始まる。同期完了時点で、SYN
C1信号と基準クロックは同期している。基準クロック
は、SA値で特定されているので、それに同期している
SYNC1も、同様にSA値で特定することができる。
(図4) 信号SYNC4は、サンプリングナンバ0で発生するこ
とになっているが、この時点では自走状態になっている
ので、強制同期をする必要がある。つまり、SA値に同
期しているSYNC1が“0”を指したときに、SYN
C4を生成するカウンタをリセットする。
The generation of the reference clock starts the subordinate synchronization of the sampling clock. When synchronization is completed, SYN
The C1 signal and the reference clock are synchronized. Since the reference clock is specified by the SA value, the SYNC1 synchronized therewith can also be specified by the SA value.
(FIG. 4) The signal SYNC4 is to be generated at the sampling number 0, but at this point, it is in a self-running state, so it is necessary to perform forced synchronization. That is, when SYNC1 synchronized with the SA value indicates “0”, SYNC1
Reset the counter that generates C4.

【0065】このときのF/W処理は、次の手順で行
う。(図10の106〜108参照) (1)従属同期部3のDPLLステータスから、従属同
期完了を知る。
The F / W processing at this time is performed according to the following procedure. (Refer to 106 to 108 in FIG. 10) (1) The completion of the slave synchronization is known from the DPLL status of the slave synchronization unit 3.

【0066】(2)サンプリングナンバ11の一致割り
込み(ナンバ0の補正値をロードする)で、CPUによ
り操作される制御用レジスタ(CSR)の強制同期ビッ
トをセットする。
(2) The forced interrupt bit of the control register (CSR) operated by the CPU is set by the coincidence interrupt of the sampling number 11 (loading the correction value of the number 0).

【0067】各局はAIモジュールによりSYNC4を
基準として端子データ・パケットのタグNo.を決め
る。この信号のアサートから、タグNo.を0,1,
2,3,4…と付けていく。
Each station uses the AI module to set the tag No. of the terminal data packet based on SYNC4. Decide. From the assertion of this signal, the tag No. To 0,1,
2,3,4 ...

【0068】CPU及びサンプリング同期回路は、この
タグNo,を基に、送信データの管理を行う。これによ
ると、あるサンプリングクロックでサンプルされるデー
タは、全局で同じ送信バッファエリアに、格納されるこ
とになる、(送信バッファは、サンプリングアドレスに
対応した、12個の端子データエリアから構成されてい
る。) この処理で、データの同期化が実現される。
The CPU and the sampling synchronization circuit manage transmission data based on the tag No. According to this, data sampled by a certain sampling clock is stored in the same transmission buffer area in all stations. (The transmission buffer is composed of 12 terminal data areas corresponding to the sampling addresses. In this process, data synchronization is realized.

【0069】この、強制同期処理が完了して、自局のサ
ンプリング同期が成立する。この同期化の模様を図8に
示す。
When the forced synchronization processing is completed, the sampling synchronization of the own station is established. FIG. 8 shows this synchronization pattern.

【0070】5.1 SA遅延時間 サンプリングクロック(SPCLK)従属同期完了後、
各局は端子データ多重を開始する。この時点で、全局一
致したポインタ管理による、端子データのアクセス可能
になっているので、親局は共通フレームで、このマルチ
フレームMFには、送信バッファ上の、どのエリアのデ
ータを多重すればよいかを指示する。この値が、共通フ
レームにのみ位置するSA遅延時間フィールドに格納さ
れる。
5.1 SA delay time After completion of the sampling clock (SPCLK) subordinate synchronization,
Each station starts terminal data multiplexing. At this point, since terminal data can be accessed by pointer management that is consistent for all stations, the master station is a common frame, and this multi-frame MF can be multiplexed with any area data on the transmission buffer. To indicate. This value is stored in the SA delay time field located only in the common frame.

【0071】SA遅延時間は、親局が確実にデータを多
重できる、最新のサンプリングナンバを表す。
The SA delay time represents the latest sampling number at which the master station can reliably multiplex data.

【0072】図9に示すように、SA遅延時間は回線の
伝送遅延量により、ロードされる値が異なる。
As shown in FIG. 9, the loaded value of the SA delay time differs depending on the transmission delay amount of the line.

【0073】図9の左側では、遅延時間が短いので、例
えば親局は、マルチフレームMF2にはSP0のデータ
は確実に多重できる。それに対し、図9の右側では、マ
ルチフレームMF2には同期点SP10のデータが多重
可能となる。これは、伝送遅延時間が長くなるほど、フ
レームが折返局に到達する時間が長くなり、その結果M
F2に対応するSP2が、相対的に遅れるためである。
On the left side of FIG. 9, since the delay time is short, for example, the master station can reliably multiplex the data of SP0 in the multiframe MF2. On the other hand, on the right side of FIG. 9, the data of the synchronization point SP10 can be multiplexed on the multiframe MF2. This is because the longer the transmission delay time, the longer the frame takes to reach the loopback station, and consequently M
This is because SP2 corresponding to F2 is relatively delayed.

【0074】5.2 SA遅延時間の算出 サンプリングアドレスSAnのマルチフレームに、親局
が設定するSA遅延時間値は、親局の伝送遅延時間値は
1/2を、マルチフレーム換算した値となる。換算値を
mとすると、n−mが、SAn送信直前のSPナンバに
なる。マルチフレームタイミングと、サンプリングタイ
ミングとの非同期性を考慮して、さらに−1する。
5.2 Calculation of SA Delay Time The SA delay time value set by the master station in the multiframe of the sampling address SAn is a value obtained by multiplying the transmission delay time value of the master station by 1 /. . Assuming that the converted value is m, nm is the SP number immediately before SAn transmission. In consideration of the non-synchronism between the multi-frame timing and the sampling timing, the value is further decreased by one.

【0075】図9の左側では、m=1になるので、n=
2とするとSPナンバは0になる。同様に、図9の右側
では、m=3で、n=2のときSPナンバは10であ
る。
On the left side of FIG. 9, since m = 1, n =
If it is 2, the SP number becomes 0. Similarly, on the right side of FIG. 9, when m = 3 and n = 2, the SP number is 10.

【0076】5.3 端子データ同期のハンドシェイク サンプリング同期処理過程において、SA遅延時間を設
定することにより、各局が有効端子データの多重を開始
する。この時のハンドシェイクに、共通フレーム内に定
義されているULフラグ(同期確認フラグ)を使用す
る。F/W処理は次の手順で行う。(図10の109〜
111参照) 親局送信時 ULフラグをレディ状態・SA遅延時間を無効値に設定
して、共通フレームを送信する。 各子局 サンプリング同期未完のうちは、ULフラグをアンレデ
ィ(サンプリング同期未確立)にして送出する。
5.3 Handshake of Terminal Data Synchronization In the sampling synchronization process, each station starts multiplexing valid terminal data by setting an SA delay time. The UL flag (synchronization confirmation flag) defined in the common frame is used for the handshake at this time. The firmware processing is performed in the following procedure. (109 to 109 in FIG. 10)
When transmitting to the master station, the common flag is transmitted with the UL flag set to the ready state and the SA delay time set to an invalid value. Each of the slave stations transmits the UL flag as unready (sampling synchronization is not established) while sampling synchronization is not completed.

【0077】サンプリング同期完了(DPLLステータ
スが同期完了+保護時間+SYNC4強制同期完了)
で、ULフラグをレディ(サンプリング同期確立)状態
で送出。
Completion of sampling synchronization (DPLL status synchronization completed + protection time + forced synchronization of SYNC4)
Then, the UL flag is transmitted in a ready (sampling synchronization established) state.

【0078】SA遅延時間が無効値のうちは、ダミーの
端子データを多重 親局受信時 ULフラグをアンレディ状態で受信:サンプリング同期
未完の局がある。
Among the invalid values of the SA delay time, dummy terminal data is multiplexed. When the master station is received, the UL flag is received in an unready state: Some stations have not completed sampling synchronization.

【0079】ULフラグをレディ状態で受信:全局、サ
ンプリング同期完了。
Receiving UL flag in ready state: sampling synchronization completed for all stations.

【0080】この後、SA遅延時間を有効値に設定す
る。
Thereafter, the SA delay time is set to a valid value.

【0081】各子局+親局 有効なSA遅延時間を受けて、値に対応する、送信バッ
ファの端子データを多重する。
Receiving the effective SA delay time, each slave station + master station multiplexes the terminal data of the transmission buffer corresponding to the value.

【0082】[0082]

【発明の効果】本発明は、上述のとおり構成されている
ので、次に記載する効果を奏する。
Since the present invention is configured as described above, the following effects can be obtained.

【0083】(1)親局交代時及び、初期段階における
サンプリング同期ずれに対し、各子局側が時間をかけて
収束することにより、一定周期処理の時間歪を小さくで
きる。
(1) Each slave station converges over time with respect to the sampling synchronization shift at the time of the master station change and at the initial stage, so that the time distortion of the fixed period process can be reduced.

【0084】(2)各子局が、同一方式にて収束するの
で、効率的にサンプリング点を同一化することができ
る。
(2) Since each slave station converges in the same manner, sampling points can be efficiently made the same.

【0085】(3)DPLL回路を使用しているため、
引っ込み時間が高速化できる。
(3) Since a DPLL circuit is used,
The retraction time can be shortened.

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

【図1】サンプリング同期関連回路のブロック図。FIG. 1 is a block diagram of a sampling synchronization related circuit.

【図2】往復の伝送時間を示すグラフ。FIG. 2 is a graph showing a round-trip transmission time.

【図3】基準クロック生成部のブロック図。FIG. 3 is a block diagram of a reference clock generator.

【図4】伝送遅延時間とカウンタ値のタイミング図。FIG. 4 is a timing chart of a transmission delay time and a counter value.

【図5】補正値の算出の説明図。FIG. 5 is an explanatory diagram of calculation of a correction value.

【図6】従属同期部のブロック図。FIG. 6 is a block diagram of a dependent synchronization unit.

【図7】信号のタイミング図。FIG. 7 is a timing chart of signals.

【図8】同期化の説明図。FIG. 8 is an explanatory diagram of synchronization.

【図9】多重フレームの伝送時間とサンプリング同期信
号の関係を示すグラフ。
FIG. 9 is a graph showing a relationship between a transmission time of a multiplex frame and a sampling synchronization signal.

【図10】サンプリング同期化の処理フロー図。FIG. 10 is a processing flowchart of sampling synchronization.

【図11】PCM電流作動リレーの伝送路の形態図。FIG. 11 is a diagram of a transmission path of a PCM current operated relay.

【図12】フレームフォーマットの説明図。FIG. 12 is an explanatory diagram of a frame format.

【図13】局の基本構成を示すブロック図。FIG. 13 is a block diagram showing a basic configuration of a station.

【図14】データ多重化の流れの説明図。FIG. 14 is an explanatory diagram of the flow of data multiplexing.

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

1…基準ブロック生成部 2…ベースクロック源 3…従属同期部 4…SYNC信号生成部 10…伝送遅延測定カウンタ 11…SAラッチ部 12…下り多重部の受信SA保持用レジスタ 13…下り多重部のラッチ用カウンタ 14…上り分離部の受信SA保持用レジスタ 15…上り分離部のラッチ用カウンタ 16…補正値算出部 17…SA−補正値テーブル 18…コンパレータ 31…分周器 32…位相比較部 MS…親局 RS0〜RS4…リモート局(子局) DESCRIPTION OF SYMBOLS 1 ... Reference block generation part 2 ... Base clock source 3 ... Dependent synchronization part 4 ... SYNC signal generation part 10 ... Transmission delay measurement counter 11 ... SA latch part 12 ... Receiving SA holding register of downlink multiplexing part 13 ... Down multiplexing part Latch counter 14 ... Receiving SA holding register of the up separation unit 15 ... Latch counter of the up separation unit 16 ... Correction value calculation unit 17 ... SA-correction value table 18 ... Comparator 31 ... Divider 32 ... Phase comparison unit MS … Master station RS0-RS4… Remote station (slave station)

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 親局と複数の子局及びそれらを接続する
シリアル伝送路からなるネットワークシステムをベース
とするデータ多重方式のPCM電流リレーのデータサン
プリングクロックを同期化させる、PCMリレーにおけ
るサンプリング同期方式において、 各局に、伝送遅延時間を各共通フレーム内のサンプリン
グアドレスの送,受信を基準に測定してその中間点をサ
ンプリングクロックの基準とする基準クロック生成手段
と、 伝送レートのベースクロックをDPLL制御にて基準ク
ロックにサンプリングクロックを同期化させる従属同期
化させる手段と、を設けたことを特徴とするPCMリレ
ーにおけるサンプリング同期方式。
1. A sampling synchronization method in a PCM relay for synchronizing a data sampling clock of a data multiplexing type PCM current relay based on a network system including a master station, a plurality of slave stations, and a serial transmission line connecting them. A reference clock generating means for measuring the transmission delay time with reference to the transmission and reception of the sampling address in each common frame and using the intermediate point as a reference of the sampling clock; and controlling the base clock of the transmission rate by DPLL control. And a means for subordinately synchronizing the sampling clock with the reference clock.
【請求項2】 請求項1において、基準クロック生成手
段が、 ベースクロックをカウントする1スーパーフレーム時間
の周期を持つ伝送遅延測定カウンタと、 下りデータの多重部に設けられ、共通フレーム内サンプ
リングアドレスを送信したタイミングでそのサンプリン
グアドレス値とその時の前記カウンタ値をラッチする手
段と、 上りデータの分離部に設けられ、共通フレーム内サンプ
リングアドレスを分離したタイミングで、サンプリング
アドレス値をラッチする手段と、 前記サンプリングアドレス値に対応するバッファを持
ち、前記各割り込みに対応したサンプリングアドレスの
指すバッファに割り込み発生時のカウント値の平均値を
補正値として格納する手段と、 前記バッファの値が設定され、前記カウンタのカウント
値が設定値と一致すると基準クロックを発生する比較手
段と、からなることを特徴としたPCMリレーにおける
サンプリング同期方式。
2. The communication system according to claim 1, wherein the reference clock generation means is provided in a transmission delay measurement counter having a period of one superframe time for counting a base clock, and a downlink data multiplexing unit, and a sampling address in the common frame is provided. Means for latching the sampling address value and the counter value at that time at a transmission timing; means provided in an uplink data separating unit, for latching a sampling address value at a timing at which a sampling address in a common frame is separated; Means for holding a buffer corresponding to the sampling address value, storing the average value of the count value at the time of occurrence of the interrupt as a correction value in the buffer pointed to by the sampling address corresponding to each interrupt, and setting the value of the buffer; Is the set value Matching the comparison means for generating a reference clock, the sampling synchronization in PCM relay characterized by comprising the method.
【請求項3】 請求項1又は2において、親局に有効端
子データの多重を開始するためのハンドシェークに、共
通フレーム内に定義されているULフラグを使用し、送
信時ULフラグをレディ状態とし、サンプリングアドレ
ス遅延時間を無効に設定して共通フレームを送出する手
段を設け、 子局に、有効端子データの多重を開始する時のハンドシ
ェークに、共通クレーム内に定義されているULフラグ
を使用し、サンプリング同期未完のうちは、ULフラグ
をアンレディにして送出し、サンプリング同期化完了
で、ULフラグをレディ状態で送出する手段を設け、た
ことを特徴としたPCMリレーにおけるサンプリング同
期方式。
3. The method according to claim 1, wherein the UL flag defined in the common frame is used in a handshake for starting multiplexing of valid terminal data to the master station, and the UL flag is set to a ready state at the time of transmission. A means for setting the sampling address delay time to invalid and transmitting a common frame is provided, and the slave station uses a UL flag defined in the common claim for a handshake when starting multiplexing of valid terminal data. The sampling synchronization method in the PCM relay, characterized in that a means for sending the UL flag in an unready state when the sampling synchronization is incomplete and sending the UL flag in a ready state when the sampling synchronization is completed is provided.
JP20750596A 1996-08-07 1996-08-07 Sampling synchronization method in PCM relay Expired - Fee Related JP3557801B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20750596A JP3557801B2 (en) 1996-08-07 1996-08-07 Sampling synchronization method in PCM relay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20750596A JP3557801B2 (en) 1996-08-07 1996-08-07 Sampling synchronization method in PCM relay

Publications (2)

Publication Number Publication Date
JPH1051435A true JPH1051435A (en) 1998-02-20
JP3557801B2 JP3557801B2 (en) 2004-08-25

Family

ID=16540839

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20750596A Expired - Fee Related JP3557801B2 (en) 1996-08-07 1996-08-07 Sampling synchronization method in PCM relay

Country Status (1)

Country Link
JP (1) JP3557801B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008250757A (en) * 2007-03-30 2008-10-16 Nippon Signal Co Ltd:The Traffic signal system
JP2013132161A (en) * 2011-12-22 2013-07-04 Meidensha Corp Sampling synchronization circuit of ring system protection relay system
CN115902611A (en) * 2022-11-24 2023-04-04 国网四川省电力公司映秀湾水力发电总厂 Relay calibration method and device and calibrator

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008250757A (en) * 2007-03-30 2008-10-16 Nippon Signal Co Ltd:The Traffic signal system
JP2013132161A (en) * 2011-12-22 2013-07-04 Meidensha Corp Sampling synchronization circuit of ring system protection relay system
CN115902611A (en) * 2022-11-24 2023-04-04 国网四川省电力公司映秀湾水力发电总厂 Relay calibration method and device and calibrator
CN115902611B (en) * 2022-11-24 2024-03-19 国网四川省电力公司映秀湾水力发电总厂 Relay calibration method, device and calibrator

Also Published As

Publication number Publication date
JP3557801B2 (en) 2004-08-25

Similar Documents

Publication Publication Date Title
US8355476B2 (en) Timestamping method and apparatus for precise network synchronization
US8126333B2 (en) Optical transmission system and synchronization method using time reference pulse
CN101977104B (en) IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
US8625641B2 (en) Apparatus, method, and system for synchronizing time
US8964790B2 (en) Communication apparatus
CN102013931B (en) Time synchronization method and system, salve timing device and main timing device
CN108650051B (en) The clock synchronization apparatus and method of general devices at full hardware single step 1588
JPH0267033A (en) Network synchronizing system
JP2000354029A (en) Synchronous clock for generating circuit
CN102263629A (en) Method for time synchronization among boards, clock board and NE (network element) device
US6714611B1 (en) Wireless network with user clock synchronization
CN102932083A (en) Microwave time synchronization method and device
WO2012095043A2 (en) Method and device for compensating for time path
US6415325B1 (en) Transmission system with improved synchronization
JP2000216800A (en) Data repeater, data repeating method and server medium
WO2021018407A1 (en) Clock synchronization in packet communications networks
US6198736B1 (en) Telecommunications system
JP3557801B2 (en) Sampling synchronization method in PCM relay
JP3994502B2 (en) Sampling synchronization method, sampling data synchronization method and error notification method in PCM relay
KR100304776B1 (en) Synchronization system and method, and recording medium
Deev et al. Subnanosecond synchronization method based on the synchronous Ethernet network
JP3226774B2 (en) Cell synchronization device, cell synchronization monitoring device, and cell resynchronization device
EP4344103A1 (en) Systems and methods for synchronizing network nodes
KR100561637B1 (en) Apparatus for measuring distance of slave optical source and aligning phase of high speed incoming burst data received from slave optical source in passive optical network
JP2022025363A (en) Time synchronization method, time synchronization program, time synchronization apparatus, and time synchronization system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040203

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040402

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040427

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040510

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090528

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100528

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100528

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110528

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120528

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130528

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140528

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees