JP2004179904A - Serial data synchronizing device - Google Patents

Serial data synchronizing device Download PDF

Info

Publication number
JP2004179904A
JP2004179904A JP2002342841A JP2002342841A JP2004179904A JP 2004179904 A JP2004179904 A JP 2004179904A JP 2002342841 A JP2002342841 A JP 2002342841A JP 2002342841 A JP2002342841 A JP 2002342841A JP 2004179904 A JP2004179904 A JP 2004179904A
Authority
JP
Japan
Prior art keywords
data
serial data
clock
reception
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
JP2002342841A
Other languages
Japanese (ja)
Inventor
Takeshi Horibe
武史 堀部
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2002342841A priority Critical patent/JP2004179904A/en
Publication of JP2004179904A publication Critical patent/JP2004179904A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a synchronizing device for receiving serial data, which can correctly synchronize a received clock even if the waveform of the serial data is distorted in a receiving device receiving the serial data. <P>SOLUTION: This serial data synchronizing device, which receives encoded serial data and generates a synchronizing clock from the received data, is provided with: a down counter 1 which is reset at the high level of the received data S1 and counts a clock CK for reception at the low level; a limiter 2 which outputs a signal when its value S2 reaches a previously set value; and a synchronizing timing generating circuit 3 which generates the synchronizing clock S4 according to the received data S1 and the output S3 of the limiter 2. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、シリアルデータを受信する時に必要な同期クロックを生成するシリアルデータ同期装置に関する。
【0002】
【従来の技術】
EatherNet(登録商標)等の伝送路を用いてシリアルデータの伝送を行う場合、正負2値レベルを利用し、0,1の違いでレベルの反転をビットの中央で行うマンチェスタ符号化等の符号化が行われる。これらの符号化されたシリアルデータを受信して復号を行うには、受信データから同期信号を取り出す必要がある。
従来のシリアルデータ受信装置の同期装置は図4のような構成になっている。図4において、同期装置は、受信データS11のL(ローレベル)とH(ハイレベル)によって受信用クロックCKのカウント値を増減するアップダウンカウンタ11と、アップダウンカウンタ11の出力S12の値が上限値または下限値に達したことを検出するリミッタ12と、リミッタ12の出力S13を受信用クロックCKでシフトするシフトレジスタ13と、シフトレジスタ13の出力S14および信号S11,S12,S13により同期タイミングを生成する同期タイミング生成回路14とにより構成されている。
【0003】
図4の同期装置を用いた同期方法を図5のタイムチャートを用いて説明する。図5において、(a)は受信データS11、(b)はアップダウンカウンタ11のカウント値S12、(c)はリミッタ12の出力S13、(d)はシフトレジスタ13の出力である同期パルス発生許可信号S14、(e)は同期タイミングパルスS15を示している。
受信データS11をアップダウンカウンタ11のカウント方向指定信号として用い、カウントを行う。無信号時、LとHが交互に連続して入力される場合は、アップダウンカウンタ11のカウント値S12はリミッタ12の上限または下限値の範囲内に収まっている。ここで受信データS11が変化した場合、カウンタ値S12はリミッタ12の上限値または下限値に達し、リミッタ12の出力S13がアクティブになる。この出力S13を受け、アップダウンカウンタ11は停止し、また、シフトレジスタ13がアクティブになった出力S13をデータとして取り込む。一定時間後にシフトレジスタ13のデータ全てがアクティブになった時点で同期パルス発生許可信号S14がアクティブになる。ここで受信データS11が変化し、かつカウント値S12が下限値であった場合、同期タイミングパルスS15が発生する。
【0004】
【特許文献1】
特開2001−111633号公報
【特許文献2】
特開平8−210876号公報
【0005】
【発明が解決しようとする課題】
ところが従来技術では、受信波形が歪んでいる場合に問題があった。このときの同期装置の動作を図6のタイムチャートにより説明する。
図6(a)に示すように、受信データS11がL側の方が長い、歪んだ波形の信号であった場合、H期間が短いために図6(b)に示すようにアップダウンカウンタ11が十分にカウントアップせず、そのままL期間に入り、ダウンカウントを始める。このため十分にL期間が長くないにもかかわらず、リミッタ12が下限値まで達したと判断し、図6(c)に示すように出力S13がアクティブになる。これを受けてシフトレジスタ13と同期タイミング生成回路14が動作し、図6(d)および(e)に示すように同期パルス発生許可信号S14、同期タイミングパルスS15が意図しない場所で発生し、受信の同期失敗につながる場合があった。通信周波数が高くなると歪みの影響も相対的に大きくなる。
【0006】
特許文献1、および特許文献2には、受信した波形の歪みをマンチェスタ符号1ビットの範囲内で監視し、受信されたマンチェスタ符号の立ち下がりまたは立ち上がりを検出したときに、そのマンチェスタ符号を正常と判定することで、データの正常な受信を可能にすることが記載されているが、監視のために制御CPUを必要とし、装置が大掛かりとなる。
そこで本発明は、シリアルデータを受信する同期装置において、シリアルデータの波形に歪みがあっても、受信クロックの同期を正しく行うことができるシリアルデータ受信の同期装置を提供することを目的とする。
【0007】
【課題を解決するための手段】
上記課題を解決するため、本発明は、符号化シリアルデータを受信してその受信データから同期クロックを生成するシリアルデータ同期装置であって、
前記受信データのハイレベルまたはローレベルの一方でリセットされ他方で受信用クロックをカウントするカウンタと、このカウンタの値が予め設定された値になったときに信号を出力するリミッタと、前記受信データと前記リミッタの出力とに基づいて同期クロックを生成する同期タイミング生成回路とを備えたことを特徴とするものである。
本発明においては、入力される受信データの波形のローレベル期間またはハイレベル期間を常に一定時間測定することにより、波形の歪みがあっても受信データの同期を正しく行うことができる。
なお、カウンタとしては、受信データがハイレベルの時にリセットされ、ローレベルになった時に受信用クロックをダウンカウントするダウンカウンタ、または、受信データがローレベルの時にリセットされ、ハイレベルになった時に受信用クロックをアップカウントするアップカウンタのいずれも用いることができる。
【0008】
【発明の実施の形態】
以下、本発明の実施の形態を図面を用いて説明する。
図1は本実施の形態を示すブロック図、図2は受信データの波形に歪みのない時の動作を示すタイムチャート、図3は受信データの波形に歪みがあるときの動作を示すタイムチャートである。
図1において、本実施の形態に係る同期装置は、受信データS1がL(ローレベル)の時に受信用クロックCKをダウンカウントするダウンカウンタ1と、ダウンカウンタ1の値S2が下限値に達したことを検出するリミッタ2と、受信データS1とリミッタ2の出力S3に基づいて同期タイミングS4を生成する同期タイミング生成回路3とから構成されている。
【0009】
図1の同期装置を用いた同期方法を図2のタイムチャートを参照しながら説明する。図2において、(a)は受信データS1、(b)はダウンカウンタ1のカウント値S2、(c)はリミッタ2の出力S3、(d)は同期タイミング生成回路3の出力である同期タイミングパルスS4を示している。
図2に示すように、受信データS1をダウンカウンタ1のロード信号として用い、ダウンカウントを行う。無信号時、LとHが交互に連続して入力される場合は、ダウンカウンタ1のカウンタ値S2は図2(b)に示すようにリミッタ2の下限値まで到達することはない。従って、リミッタ2の出力S3はアクティブになることはなく、同期タイミング生成回路3からの同期タイミングパルスS4もアクティブになることはない。ここでデータが変化した場合、カウンタ値S2はリミッタ2の下限値に達し、出力S3がアクティブになる。これを受けて同期タイミング生成回路3からの同期タイミングパルスS4が発生する。
【0010】
次に受信波形が歪んでいる場合を図3に示す。図3(a)に示すように、受信データS1がL側に歪んだ波形であった場合、ダウンカウンタ1は歪んだ受信データS1がHのときに上限値にセットされるようになっており、Hの長さによって、ダウンカウントを開始する値が変化することはない。受信データS1の波形がLに変化すると、図3(b)に示すようにダウンカウンタ1は必ず一定の値からダウンカウントを行い、Lの長さを正しく測定する。リミッタ2は、これを受けて信号S3を出力し、同期タイミング生成回路3は図3(d)に示すように同期タイミングパルスS4を生成する。
このように、ダウンカウンタ1は受信データS1がHの時上限値にセットされ、Lに変化した時からダウンカウントを開始するので、意図しない所で同期タイミングパルスS4が発生することはなく、同期外れを起こしにくくなる。
以上、カウンタとしてダウンカウンタを用いた例を示したが、受信データがローレベルの時にリセットされ、ハイレベルになった時に受信用クロックをアップカウントするアップカウンタを用いることもできる。
【0011】
【発明の効果】
以上述べたように、本発明によれば、受信データのハイレベルまたはローレベルの一方でリセットされ他方で受信用クロックをカウントするカウンタと、このカウンタの値が予め設定された値になったときに信号を出力するリミッタと、前記受信データと前記リミッタの出力とに基づいて同期クロックを生成する同期タイミング生成回路とを備えたので、波形の歪みがあっても受信クロックの同期を正しく行うことができる。
【図面の簡単な説明】
【図1】本発明の実施の形態を示すブロック図である。
【図2】本実施の形態において受信データの波形に歪みのない時の動作を示すタイムチャートである。
【図3】本実施の形態において受信データの波形に歪みがあるときの動作を示すタイムチャートである。
【図4】従来のシリアルデータ受信装置の同期装置の構成を示すブロック図である。
【図5】従来の同期装置を用いた同期方法を示すタイムチャートである。
【図6】波形が歪んだ受信データによる従来の同期装置の動作を示すタイムチャートである。
【符号の説明】
1 ダウンカウンタ
2 リミッタ
3 同期タイミング生成回路
S1 受信データ
S2 ダウンカウンタ1のカウント値
S3 リミッタ2の出力
S4 同期タイミングパルス
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a serial data synchronizer that generates a necessary synchronization clock when receiving serial data.
[0002]
[Prior art]
When serial data is transmitted using a transmission path such as EtherNet (registered trademark), encoding such as Manchester encoding is performed using a binary level of positive / negative and inverting the level at the center of a bit by a difference between 0 and 1. Is performed. To receive and decode these encoded serial data, it is necessary to extract a synchronization signal from the received data.
A conventional synchronizing device for a serial data receiving device has a configuration as shown in FIG. In FIG. 4, the synchronizer increases and decreases the count value of the reception clock CK according to L (low level) and H (high level) of the received data S11, and the output S12 of the up / down counter 11 A limiter 12 for detecting that an upper limit value or a lower limit value has been reached, a shift register 13 for shifting an output S13 of the limiter 12 with a reception clock CK, and an output S14 of the shift register 13 and signals S11, S12, and S13 for synchronizing timing. And a synchronous timing generating circuit 14 for generating the same.
[0003]
A synchronization method using the synchronization device of FIG. 4 will be described with reference to a time chart of FIG. In FIG. 5, (a) is the received data S11, (b) is the count value S12 of the up / down counter 11, (c) is the output S13 of the limiter 12, and (d) is the output of the shift register 13, which is the synchronous pulse generation permission. The signals S14 and (e) indicate the synchronization timing pulse S15.
The count is performed by using the reception data S11 as a count direction designation signal of the up / down counter 11. When L and H are input alternately and continuously when there is no signal, the count value S12 of the up / down counter 11 is within the range of the upper limit or the lower limit of the limiter 12. Here, when the reception data S11 changes, the counter value S12 reaches the upper limit or the lower limit of the limiter 12, and the output S13 of the limiter 12 becomes active. Upon receiving the output S13, the up / down counter 11 stops, and the output S13 in which the shift register 13 becomes active is taken in as data. After a certain time, when all the data of the shift register 13 becomes active, the synchronization pulse generation permission signal S14 becomes active. Here, when the reception data S11 changes and the count value S12 is the lower limit value, a synchronization timing pulse S15 is generated.
[0004]
[Patent Document 1]
JP 2001-11633 A [Patent Document 2]
JP-A-8-210876
[Problems to be solved by the invention]
However, the related art has a problem when the received waveform is distorted. The operation of the synchronizer at this time will be described with reference to the time chart of FIG.
As shown in FIG. 6A, when the reception data S11 is a signal having a longer waveform on the L side and a distorted waveform, the H period is short, and therefore, as shown in FIG. Does not count up sufficiently, enters the L period as it is, and starts counting down. For this reason, although the L period is not long enough, it is determined that the limiter 12 has reached the lower limit, and the output S13 becomes active as shown in FIG. 6C. In response to this, the shift register 13 and the synchronization timing generation circuit 14 operate, and the synchronization pulse generation permission signal S14 and the synchronization timing pulse S15 are generated in unintended places as shown in FIGS. Synchronization failure. As the communication frequency increases, the influence of distortion becomes relatively large.
[0006]
Patent Documents 1 and 2 disclose that the distortion of a received waveform is monitored within a range of one bit of the Manchester code, and when the falling or rising of the received Manchester code is detected, the Manchester code is regarded as normal. Although it is described that the determination enables normal reception of data, a control CPU is required for monitoring, and the device becomes large-scale.
SUMMARY OF THE INVENTION It is an object of the present invention to provide a synchronizer for receiving serial data, which can correctly synchronize a received clock even if the waveform of the serial data has a distortion.
[0007]
[Means for Solving the Problems]
In order to solve the above problems, the present invention is a serial data synchronizer that receives encoded serial data and generates a synchronization clock from the received data,
A counter for resetting one of the high level or low level of the reception data and counting the reception clock on the other, a limiter for outputting a signal when the value of the counter reaches a preset value, And a synchronization timing generation circuit for generating a synchronization clock based on the output of the limiter.
In the present invention, the low-level period or the high-level period of the input received data waveform is always measured for a certain period of time, so that the received data can be correctly synchronized even if the waveform is distorted.
Note that the counter is reset when the reception data is at a high level, and is down-counted to count down the reception clock when the reception data is at a low level, or reset when the reception data is at a low level and becomes high when the reception data is at a high level. Any of the up counters that count up the receiving clock can be used.
[0008]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing the present embodiment, FIG. 2 is a time chart showing an operation when there is no distortion in the waveform of the received data, and FIG. 3 is a time chart showing an operation when the waveform of the received data has a distortion. is there.
In FIG. 1, in the synchronizer according to the present embodiment, the down counter 1 that counts down the reception clock CK when the reception data S1 is L (low level), and the value S2 of the down counter 1 reaches the lower limit. And a synchronization timing generation circuit 3 that generates a synchronization timing S4 based on the received data S1 and the output S3 of the limiter 2.
[0009]
A synchronization method using the synchronization device of FIG. 1 will be described with reference to a time chart of FIG. In FIG. 2, (a) is the received data S1, (b) is the count value S2 of the down counter 1, (c) is the output S3 of the limiter 2, and (d) is the synchronization timing pulse which is the output of the synchronization timing generation circuit 3. S4 is shown.
As shown in FIG. 2, the received data S1 is used as a load signal of the down counter 1 to perform down counting. When L and H are input alternately and continuously when there is no signal, the counter value S2 of the down counter 1 does not reach the lower limit of the limiter 2 as shown in FIG. Therefore, the output S3 of the limiter 2 does not become active, and the synchronization timing pulse S4 from the synchronization timing generation circuit 3 does not become active. If the data changes here, the counter value S2 reaches the lower limit of the limiter 2, and the output S3 becomes active. In response to this, a synchronization timing pulse S4 from the synchronization timing generation circuit 3 is generated.
[0010]
Next, FIG. 3 shows a case where the received waveform is distorted. As shown in FIG. 3A, when the received data S1 has a waveform distorted to the L side, the down counter 1 is set to the upper limit when the distorted received data S1 is H. , H do not change the value at which the down-counting is started. When the waveform of the reception data S1 changes to L, the down counter 1 always counts down from a constant value as shown in FIG. 3B, and measures the length of L correctly. The limiter 2 receives the signal and outputs a signal S3, and the synchronous timing generation circuit 3 generates a synchronous timing pulse S4 as shown in FIG.
As described above, the down counter 1 is set to the upper limit value when the reception data S1 is H, and starts counting down when the reception data S1 changes to L. Therefore, the synchronization timing pulse S4 does not occur at an unintended place, and the synchronization is not performed. It is less likely to come off.
Although an example in which a down counter is used as the counter has been described above, an up counter that resets when the reception data is at a low level and counts up the reception clock when the reception data goes to a high level may be used.
[0011]
【The invention's effect】
As described above, according to the present invention, a counter that resets one of the high level and the low level of the reception data and counts the clock for reception on the other side, and a case where the value of the counter reaches a preset value And a synchronization timing generation circuit that generates a synchronization clock based on the reception data and the output of the limiter, so that the reception clock can be correctly synchronized even if there is a waveform distortion. Can be.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of the present invention.
FIG. 2 is a time chart showing an operation when there is no distortion in a waveform of received data in the present embodiment.
FIG. 3 is a time chart showing an operation when a waveform of received data has distortion in the present embodiment.
FIG. 4 is a block diagram showing a configuration of a synchronization device of a conventional serial data receiving device.
FIG. 5 is a time chart showing a synchronization method using a conventional synchronization device.
FIG. 6 is a time chart showing an operation of a conventional synchronizer based on received data having a distorted waveform.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Down counter 2 Limiter 3 Synchronous timing generation circuit S1 Received data S2 Count value of down counter 1 S3 Output of limiter 2 S4 Synchronous timing pulse

Claims (3)

符号化シリアルデータを受信してその受信データから同期クロックを生成するシリアルデータ同期装置であって、
前記受信データのハイレベルまたはローレベルの一方でリセットされ他方で受信用クロックをカウントするカウンタと、このカウンタの値が予め設定された値になったときに信号を出力するリミッタと、前記受信データと前記リミッタの出力とに基づいて同期クロックを生成する同期タイミング生成回路とを備えたことを特徴とするシリアルデータ同期装置。
A serial data synchronizer that receives encoded serial data and generates a synchronization clock from the received data,
A counter for resetting one of the high level or low level of the reception data and counting the reception clock on the other, a limiter for outputting a signal when the value of the counter reaches a preset value, And a synchronous timing generation circuit for generating a synchronous clock based on the output of the limiter.
前記カウンタは、前記受信データがハイレベルの時にリセットされ、ローレベルになった時に受信用クロックをダウンカウントするダウンカウンタである請求項1記載のシリアルデータ同期装置。2. The serial data synchronizer according to claim 1, wherein the counter is a down counter that is reset when the reception data is at a high level and counts down a reception clock when the reception data is at a low level. 前記カウンタは、前記受信データがローレベルの時にリセットされ、ハイレベルになった時に受信用クロックをアップカウントするアップカウンタである請求項1記載のシリアルデータ同期装置。2. The serial data synchronizer according to claim 1, wherein the counter is an up counter that is reset when the reception data is at a low level and counts up a reception clock when the reception data is at a high level.
JP2002342841A 2002-11-26 2002-11-26 Serial data synchronizing device Pending JP2004179904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002342841A JP2004179904A (en) 2002-11-26 2002-11-26 Serial data synchronizing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002342841A JP2004179904A (en) 2002-11-26 2002-11-26 Serial data synchronizing device

Publications (1)

Publication Number Publication Date
JP2004179904A true JP2004179904A (en) 2004-06-24

Family

ID=32704780

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002342841A Pending JP2004179904A (en) 2002-11-26 2002-11-26 Serial data synchronizing device

Country Status (1)

Country Link
JP (1) JP2004179904A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092185A (en) * 2012-12-27 2013-05-08 中国航空工业集团公司北京长城航空测控技术研究所 Multichannel coordinated loading control system synchronous data transmission and synchronous realization method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092185A (en) * 2012-12-27 2013-05-08 中国航空工业集团公司北京长城航空测控技术研究所 Multichannel coordinated loading control system synchronous data transmission and synchronous realization method

Similar Documents

Publication Publication Date Title
JP5896602B2 (en) Communication circuit and sampling adjustment method
US9425781B2 (en) Syncless unit interval variation tolerant PWM receiver circuit, system and method
JP2006129452A (en) Frequency lock detector
JP2010109974A (en) Digital signal transmitting apparatus and digital signal transmitting method
JP2004179904A (en) Serial data synchronizing device
JP4486871B2 (en) Signal decoding apparatus and signal decoding method
JPH07288516A (en) Serial data transmission reception circuit
JP3725869B2 (en) Clock recovery circuit
JP2007115036A (en) Asynchronous transfer device and asynchronous transfer method
JP5383856B2 (en) Transmitter circuit
JP2003179583A (en) Signal synchronous circuit
JP6163895B2 (en) Receive clock extraction circuit
US11184530B2 (en) Drive substrate for camera and broadcast camera
JP2005142615A (en) Manchester code data receiver
JP2011061589A (en) Reception circuit of serial data, and reception method
JP2007228020A (en) Frequency multiplier circuit and transmitter
JP2008166922A (en) Polarity deciding apparatus and method, and polarity setting apparatus
JP5363056B2 (en) Synchronization signal detection circuit and semiconductor integrated circuit
JP5633132B2 (en) Data transmission system and method, data transmitting apparatus and receiving apparatus
JP4672032B2 (en) Serial communication device
EP1331750A1 (en) Method and circuit arrangement for clock recovery
JP2009239954A (en) Cycle shift detection device between serial data
JP2017103548A (en) Transmitting device, receiving device, communication system and communication method
JP2005217968A (en) Asynchronous communication system
JPS61173544A (en) Frame synchronizing system cycle transmitting device for digital information