JP2011171859A - Receiver - Google Patents

Receiver Download PDF

Info

Publication number
JP2011171859A
JP2011171859A JP2010031850A JP2010031850A JP2011171859A JP 2011171859 A JP2011171859 A JP 2011171859A JP 2010031850 A JP2010031850 A JP 2010031850A JP 2010031850 A JP2010031850 A JP 2010031850A JP 2011171859 A JP2011171859 A JP 2011171859A
Authority
JP
Japan
Prior art keywords
clock signal
data
serial data
synchronization
demodulation
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
JP2010031850A
Other languages
Japanese (ja)
Other versions
JP5390428B2 (en
Inventor
Masahiro Yamada
昌啓 山田
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.)
Kawasaki Heavy Industries Ltd
Original Assignee
Kawasaki Heavy Industries 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 Kawasaki Heavy Industries Ltd filed Critical Kawasaki Heavy Industries Ltd
Priority to JP2010031850A priority Critical patent/JP5390428B2/en
Publication of JP2011171859A publication Critical patent/JP2011171859A/en
Application granted granted Critical
Publication of JP5390428B2 publication Critical patent/JP5390428B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a receiver that accurately demodulates serial data without reducing a data transmission rate and regardless of the length of a transmission medium. <P>SOLUTION: A frequency divider 32 generates a synchronization clock signal 26 to be supplied to a transmitter 21. A serial-data generating part 25 of the transmitter 21 transmits serial data 24 and a strobe signal 27 in synchronization with the synchronization clock signal 26. If detecting the start of the transmission of the serial data 24 on the basis of the strobe signal 27, a demodulation-clock-signal generating part 33 generates a demodulation clock signal 36 that has the same signal waveform as that of the synchronization clock signal 26, rises at predetermined timing within a data period of each bit of the serial data 24, and indicates timing of reading data of each bit of the serial data 24. A data demodulation part 34 sequentially reads the serial data 24 by bit in synchronization with the demodulation clock signal 36. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、クロック同期式のシリアルデータ通信において送信機から送信されるシリアルデータを受信する受信機に関する。   The present invention relates to a receiver that receives serial data transmitted from a transmitter in clock synchronous serial data communication.

装置間においてデータを送受信する方式としてシリアル通信方式があり、送信されるシリアルデータをクロック信号に再生するクロック信号再生装置がある(たとえば特許文献1参照)。たとえば従来の技術では、産業用および民生用の電子機器において、複数のコンピュータ間でシリアル通信方式を用いてデータを伝送している。またメカトロニクス関連機器において、コントローラと機構部との間でシリアル通信方式を用いてセンサ信号および動作指令信号を伝送している。   There is a serial communication system as a system for transmitting and receiving data between apparatuses, and there is a clock signal reproducing apparatus that regenerates transmitted serial data into a clock signal (for example, see Patent Document 1). For example, in the conventional technology, in industrial and consumer electronic devices, data is transmitted between a plurality of computers using a serial communication method. In mechatronics related equipment, sensor signals and operation command signals are transmitted between the controller and the mechanism using a serial communication method.

図3は、送信機1と受信機2との電気的構成を示すブロック図である。送信機1と受信機2とは、電線などの電気信号を伝送する伝送媒体によって接続され、この伝送媒体を介してクロック同期式のシリアル通信を行う。   FIG. 3 is a block diagram showing an electrical configuration of the transmitter 1 and the receiver 2. The transmitter 1 and the receiver 2 are connected by a transmission medium that transmits an electric signal such as an electric wire, and performs clock synchronous serial communication via the transmission medium.

送信機1は、パラレルデータから構成されるデジタルデータ3を、シリアルデータ4に変換するシリアルデータ生成部5によって実現される。デジタルデータ3は、マイクロコンピュータなどによって実現されるデジタルデータ生成部から与えられる。シリアルデータ生成部5は、受信機2から与えられる同期用のクロック信号(以下、同期用クロック信号という)6に同期して、ストローブ信号7および変換したシリアルデータ4を受信機2に与える。   The transmitter 1 is realized by a serial data generation unit 5 that converts digital data 3 composed of parallel data into serial data 4. The digital data 3 is given from a digital data generation unit realized by a microcomputer or the like. The serial data generation unit 5 provides the receiver 2 with the strobe signal 7 and the converted serial data 4 in synchronization with a synchronization clock signal (hereinafter referred to as synchronization clock signal) 6 provided from the receiver 2.

受信機2は、クロック生成部8と、データ復調部9とを含んで構成される。クロック生成部8は、一定の周波数で高電圧のハイレベルHと低電圧のローレベルLとを繰返すクロック信号を生成し、生成したクロック信号を同期用クロック信号6としてシリアルデータ生成部5に与えるとともに、生成したクロック信号を復調用のクロック信号(以下、復調用クロック信号という)10としてデータ復調部9に与える。同期用クロック信号6と復調用クロック信号10とは、クロック生成部8によって生成されるクロック信号を分岐して生成されるので、同一の位相を有する。   The receiver 2 includes a clock generation unit 8 and a data demodulation unit 9. The clock generation unit 8 generates a clock signal that repeats a high voltage high level H and a low voltage low level L at a constant frequency, and supplies the generated clock signal to the serial data generation unit 5 as a synchronization clock signal 6. At the same time, the generated clock signal is supplied to the data demodulator 9 as a demodulation clock signal (hereinafter referred to as a demodulation clock signal) 10. The synchronization clock signal 6 and the demodulation clock signal 10 are generated by branching the clock signal generated by the clock generation unit 8, and thus have the same phase.

データ復調部9は、シリアルデータ4の伝送が開始することを表すストローブ信号7を受信すると、復調用クロック信号10に同期してシリアルデータ4を1ビットずつ読込む。   When receiving the strobe signal 7 indicating that the transmission of the serial data 4 starts, the data demodulator 9 reads the serial data 4 bit by bit in synchronization with the demodulation clock signal 10.

図4は、送信機1または受信機2が送受信するデータのタイミングチャートである。図4において横軸は、時間を表す。図4において、同期用クロック信号6は、シリアルデータ生成部5が受信した信号波形を表し、復調用クロック信号10、ストローブ信号7、およびシリアルデータ4は、データ復調部9が受信した信号波形を表す。   FIG. 4 is a timing chart of data transmitted and received by the transmitter 1 or the receiver 2. In FIG. 4, the horizontal axis represents time. In FIG. 4, the synchronization clock signal 6 represents a signal waveform received by the serial data generation unit 5, and the demodulation clock signal 10, the strobe signal 7, and the serial data 4 represent the signal waveforms received by the data demodulation unit 9. To express.

同期用クロック信号6は、伝送媒体を伝送することによって位相に遅延が生じるので、シリアルデータ生成部5が受信する同期用クロック信号6と、データ復調部9が受信する復調用クロック信号10とには、位相差が生じる。図4では、伝送媒体の距離が短いと仮定して、この位相差を無視している。また同様にシリアルデータ生成部5が送信するストローブ信号7およびシリアルデータ4と、データ復調部9が受信するストローブ信号7およびシリアルデータ4とには、各データが伝送媒体を伝送することによって位相差が生じるが、図4ではこの位相差を無視している。   Since the phase of the synchronization clock signal 6 is delayed by transmitting the transmission medium, the synchronization clock signal 6 received by the serial data generation unit 5 and the demodulation clock signal 10 received by the data demodulation unit 9 are obtained. Causes a phase difference. In FIG. 4, this phase difference is ignored on the assumption that the distance of the transmission medium is short. Similarly, the strobe signal 7 and serial data 4 transmitted by the serial data generating unit 5 and the strobe signal 7 and serial data 4 received by the data demodulating unit 9 are transmitted through a transmission medium so that the phase difference between the data is transmitted. However, this phase difference is ignored in FIG.

ストローブ信号7は、ハイレベルHのときにシリアルデータ4を伝送していないことを表し、ローレベルLのときにシリアルデータ4を伝送していることを表す。つまり、ストローブ信号7がハイレベルHからローレベルLに立下がると、シリアルデータ4の伝送が開始することを表し、ローレベルLからハイレベルHに立上ると、シリアルデータ4の伝送が終了することを表す。シリアルデータ生成部5は、シリアルデータ4の伝送に応じて、同期用クロック信号6の立下りに同期してストローブ信号7をハイレベルHからローレベルLまたはローレベルLからハイレベルHに切換える。またシリアルデータ生成部5は、同期用クロック信号6の立下りに同期してシリアルデータ4を構成する各ビットのデータを生成して出力する。したがってシリアルデータ4を構成する各ビットのデータの周期Tは、同期用クロック信号6および復調用クロック信号10の周期T(以下、基本周期Tという)と同じである。図4では、シリアルデータ生成部5が、データ(0)からデータ(N)(記号「N」は、自然数を表す)までのN+1ビットのシリアルデータ4を伝送するときのシリアルデータ4を示す。前述したようにシリアルデータ4は、伝送媒体を伝送することによって位相に遅延が生じるが、この遅延を無視するので復調用クロック信号10の立下りにおいてシリアルデータ4を構成する各データが順次切換わる。   The strobe signal 7 indicates that serial data 4 is not transmitted when it is at a high level H, and indicates that serial data 4 is transmitted when it is at a low level L. That is, when the strobe signal 7 falls from the high level H to the low level L, it indicates that the transmission of the serial data 4 starts. When the strobe signal 7 rises from the low level L to the high level H, the transmission of the serial data 4 ends. Represents that. The serial data generation unit 5 switches the strobe signal 7 from the high level H to the low level L or from the low level L to the high level H in synchronization with the falling of the synchronization clock signal 6 according to the transmission of the serial data 4. The serial data generation unit 5 generates and outputs data of each bit constituting the serial data 4 in synchronization with the falling edge of the synchronization clock signal 6. Therefore, the period T of the data of each bit constituting the serial data 4 is the same as the period T (hereinafter referred to as the basic period T) of the synchronization clock signal 6 and the demodulation clock signal 10. FIG. 4 shows serial data 4 when the serial data generation unit 5 transmits N + 1-bit serial data 4 from data (0) to data (N) (the symbol “N” represents a natural number). As described above, the serial data 4 has a phase delay caused by transmission through the transmission medium. Since this delay is ignored, the data constituting the serial data 4 are sequentially switched at the falling edge of the demodulation clock signal 10. .

時刻t1において復調用クロック信号10がハイレベルHからローレベルLに切換わるときに、これに同期してストローブ信号7がハイレベルHからローレベルLに切換わり、シリアルデータ4の伝送が開始する。データ復調部9は、ストローブ信号7の立下りを検出しすることによって、シリアルデータ4の伝送が開始することを検知する。   When the demodulation clock signal 10 is switched from the high level H to the low level L at time t1, the strobe signal 7 is switched from the high level H to the low level L in synchronization with this, and the transmission of the serial data 4 is started. . The data demodulator 9 detects the start of transmission of the serial data 4 by detecting the falling edge of the strobe signal 7.

時刻t1から基本周期Tの半周期(T/2)後の時刻t2において復調用クロック信号10がローレベルLからハイレベルHに切換わる。データ復調部9は、ストローブ信号7がローレベルL、すなわちシリアルデータ4が伝送されている状態において復調用クロック信号10の立上りを検出するとシリアルデータ4を読込むので、この時刻t2においてシリアルデータ4を構成するデータ(0)がハイレベルHかローレベルLかを読込む。   The demodulating clock signal 10 is switched from the low level L to the high level H at time t2, which is a half period (T / 2) of the basic period T from time t1. The data demodulator 9 reads the serial data 4 when it detects the rising edge of the demodulation clock signal 10 when the strobe signal 7 is at the low level L, that is, when the serial data 4 is being transmitted. Is read whether the data (0) constituting the high level H or low level L.

次に時刻t3の復調用クロック信号10の立下りにおいて、ストローブ信号7がローレベルLを維持しているので、さらにシリアルデータ4が伝送されることを検出するとともに、シリアルデータ4を構成するデータが、データ(0)からデータ(1)に切換わる。以下同様に、データ復調部9は、復調用クロック信号10の立上りに同期してシリアルデータ4を読込むことによって、シリアルデータ4を1ビットずつ順次読込む。   Next, since the strobe signal 7 maintains the low level L at the fall of the demodulation clock signal 10 at time t3, it is detected that the serial data 4 is further transmitted, and the data constituting the serial data 4 is detected. However, data (0) is switched to data (1). Similarly, the data demodulator 9 reads the serial data 4 sequentially bit by bit by reading the serial data 4 in synchronization with the rising edge of the demodulation clock signal 10.

時刻tXにおいてストローブ信号7がローレベルLからハイレベルHに切換わると、データ復調部9は、シリアルデータ4の伝送が終了することを検出して、シリアルデータ4の読込みを終了する。   When the strobe signal 7 is switched from the low level L to the high level H at time tX, the data demodulator 9 detects the end of transmission of the serial data 4 and ends reading of the serial data 4.

以上説明したようにデータ復調部9は、復調用クロック信号10の立上りに同期してシリアルデータ4を読込むことによって、シリアルデータ4を送信機1に同期して読込むことができる。このようにして送信機1から受信機2にシリアルデータ4が送信される。   As described above, the data demodulator 9 can read the serial data 4 in synchronization with the transmitter 1 by reading the serial data 4 in synchronization with the rising edge of the demodulation clock signal 10. In this way, the serial data 4 is transmitted from the transmitter 1 to the receiver 2.

また同期用クロック信号6を用いずに、送信機1と受信機2との間のデータの送受信を同期して実行するために、送信すべきデジタルデータ3に、同期をとるためのデータを付加したシリアルデータを送信する方法もある。たとえばイーサネット(登録商標)のプロトコルでは、MACフレームの先頭にプリアンブルとSFD(Start of Frame Delimiter)とを設けて送信機と受信機との同期をとっている。   Further, in order to synchronize and execute data transmission / reception between the transmitter 1 and the receiver 2 without using the synchronization clock signal 6, data for synchronization is added to the digital data 3 to be transmitted. There is also a method for transmitting the serial data. For example, in the Ethernet (registered trademark) protocol, a preamble and an SFD (Start of Frame Delimiter) are provided at the head of a MAC frame to synchronize the transmitter and the receiver.

特開2002−44063号公報JP 2002-44063 A

図4に示すタイミングチャートでは、送信機1と受信機2との間の伝送媒体の長さが短く、伝送媒体を伝送することによって生じる位相の遅延を小さいとして無視しているが、伝送媒体の長さが長くなるほど位相の遅延が大きくなり、位相の遅延を無視することができなくなる。   In the timing chart shown in FIG. 4, the length of the transmission medium between the transmitter 1 and the receiver 2 is short, and the phase delay caused by transmitting the transmission medium is neglected as being small. The longer the length, the greater the phase delay, and the phase delay cannot be ignored.

シリアルデータ生成部5が受信する同期用クロック信号6の位相は、伝送媒体を伝送するので、データ復調部9が受信する復調用クロック信号10の位相に対して遅れが生じる。シリアルデータ生成部5が送信するストローブ信号7およびシリアルデータ4は、この位相遅延が生じた同期用クロック信号6に同期して生成されるので、同期用クロック信号6と同様に復調用クロック信号10の位相に対して遅れが生じる。データ復調部9が受信するストローブ信号7およびシリアルデータ4は、伝送媒体を伝送することによって復調用クロック信号10の位相に対してさらに位相遅延が生じる。すなわちデータ復調部9が受信するストローブ信号7およびシリアルデータ4は、データ復調部9が受信する復調用クロック信号10の位相に対して伝送媒体を往復する場合に相当する位相遅延が生じる。たとえば2Mhzのクロック信号が、光速で伝送媒体を伝送する場合、75メートルで半周期の位相遅延が発生する。電線から成る伝送媒体を伝送する場合には、75メートルよりも短い距離で半周期の位相遅延が生じる。データ復調部9は、伝送媒体の長さ、すなわち位相遅延に無関係に復調用クロック信号10に同期してシリアルデータ4を読込むので、位相遅延が大きくなるとシリアルデータを正確にデジタルデータ3に復調することができない場合がある。   Since the phase of the synchronization clock signal 6 received by the serial data generation unit 5 is transmitted through the transmission medium, a delay occurs with respect to the phase of the demodulation clock signal 10 received by the data demodulation unit 9. Since the strobe signal 7 and the serial data 4 transmitted by the serial data generation unit 5 are generated in synchronization with the synchronization clock signal 6 in which the phase delay has occurred, the demodulation clock signal 10 is generated in the same manner as the synchronization clock signal 6. A delay occurs with respect to the phase. The strobe signal 7 and serial data 4 received by the data demodulator 9 are further delayed in phase with respect to the phase of the demodulation clock signal 10 by transmitting the transmission medium. That is, the strobe signal 7 and the serial data 4 received by the data demodulator 9 have a phase delay corresponding to the case where the transmission medium reciprocates with respect to the phase of the demodulation clock signal 10 received by the data demodulator 9. For example, when a 2 Mhz clock signal is transmitted through a transmission medium at the speed of light, a half-cycle phase delay occurs at 75 meters. When transmitting a transmission medium composed of electric wires, a half-cycle phase delay occurs at a distance shorter than 75 meters. Since the data demodulator 9 reads the serial data 4 in synchronization with the demodulation clock signal 10 regardless of the length of the transmission medium, that is, the phase delay, the serial data is accurately demodulated into the digital data 3 when the phase delay increases. You may not be able to.

図5は、一例として復調用クロック信号10の位相に対して同期用クロック信号6の位相に4分の1周期(T/4)の遅延が生じた場合の送信機1または受信機2が受信するデータのタイミングチャートである。ストローブ信号7およびシリアルデータ4は、復調用クロック信号10に対して4分の1周期(T/4)位相の遅れた同期用クロック信号6に同期して送信される。したがってデータ復調部9が受信するストローブ信号7およびシリアルデータ4は、伝送媒体を伝送することによって復調用クロック信号10に対して半周期(T/2)の位相遅延が生じる。   FIG. 5 shows an example in which the transmitter 1 or the receiver 2 receives a delay of a quarter cycle (T / 4) in the phase of the synchronization clock signal 6 with respect to the phase of the demodulation clock signal 10. It is a timing chart of the data to perform. The strobe signal 7 and the serial data 4 are transmitted in synchronization with the synchronization clock signal 6 delayed by a quarter cycle (T / 4) phase with respect to the demodulation clock signal 10. Therefore, the strobe signal 7 and the serial data 4 received by the data demodulator 9 are delayed by a half cycle (T / 2) with respect to the demodulation clock signal 10 by transmitting the transmission medium.

時刻t1において復調用クロック信号10が立下がるとともに、受信機2から送信される同期用クロック信号6も立下がる。シリアルデータ生成部5は、同期用クロック信号6に位相遅延が生じるので、この同期用クロック信号6の立下りを時刻t1から4分の1周期(T/4)後の時刻t2において受信する。シリアルデータ生成部5は、時刻t2において同期用クロック信号6の立下りに同期してストローブ信号7をハイレベルHからローレベルLに切換えるとともに、シリアルデータ4の伝送を開始する。データ復調部9は、ストローブ信号7の立下りおよびシリアルデータ4の伝送の開始を、時刻t2から4分の1周期(T/4)後の時刻t3において受信する。この時刻t3において復調用クロック信号10が立上る。   At time t1, the demodulation clock signal 10 falls, and the synchronization clock signal 6 transmitted from the receiver 2 also falls. The serial data generation unit 5 receives the falling edge of the synchronization clock signal 6 at time t2 after a quarter cycle (T / 4) from time t1 because a phase delay occurs in the synchronization clock signal 6. The serial data generation unit 5 switches the strobe signal 7 from the high level H to the low level L in synchronization with the falling of the synchronization clock signal 6 at time t2, and starts transmission of the serial data 4. The data demodulator 9 receives the falling edge of the strobe signal 7 and the start of transmission of the serial data 4 at time t3, which is a quarter cycle (T / 4) from time t2. At this time t3, the demodulation clock signal 10 rises.

データ復調部9は、復調用クロック信号10の立上りと、シリアルデータ4の伝送の開始とを時刻t3において同時に受信するので、以後復調用クロック信号10の立上りと、シリアルデータ4を構成する各ビットのデータの切換わりとを同時に受信する。すなわちデータ復調部9は、時刻t3から基本周期T後の時刻t4において復調用クロック信号10の立上りを受信すると同時に、データ(0)から切換わるデータ(1)を受信する。さらにデータ復調部9は、時刻t4から基本周期T後の時刻t5において復調用クロック信号10の立上りを受信すると同時に、データ(1)から切換わるデータ(2)を受信する。前述したように、データ復調部9は、ストローブ信号7がローレベルLにおいて復調用クロック信号10の立上りに同期してシリアルデータ4を読込ので、シリアルデータ4を構成する各ビットのデータが切換わるときにシリアルデータ4を読込むことになる。シリアルデータ4がローレベルLからハイレベルHまたはハイレベルHからローレベルLに切換わる場合には、シリアルデータ4がローレベルLからハイレベルHまたはハイレベルHからローレベルLに切換わってから安定するまでに所定の時間を要するので、シリアルデータ4を構成する各ビットのデータが切換わる時刻では、シリアルデータ4は、ハイレベルHかローレベルLかのいずれか一方に安定していない。このようにデータ復調部9は、シリアルデータ4がローレベルLかハイレベルHかの不安定な状況の時刻においてシリアルデータ4を読込むので、データ復調部9は、正確にシリアルデータ4を読込むことができず、シリアルデータ4をパラレルデータから成るデジタルデータ3に正確に復調することができない。   Since the data demodulator 9 simultaneously receives the rising edge of the demodulating clock signal 10 and the start of transmission of the serial data 4 at time t3, the rising edge of the demodulating clock signal 10 and each bit constituting the serial data 4 are thereafter received. Simultaneously receive data switching. That is, the data demodulator 9 receives the rising edge of the demodulation clock signal 10 at the time t4 after the basic period T from the time t3 and simultaneously receives the data (1) switched from the data (0). Further, the data demodulator 9 receives the rising edge of the demodulating clock signal 10 at time t5 after the basic period T from time t4, and simultaneously receives data (2) switched from data (1). As described above, the data demodulator 9 reads the serial data 4 in synchronization with the rise of the demodulation clock signal 10 when the strobe signal 7 is at the low level L, so that the data of each bit constituting the serial data 4 is switched. Sometimes serial data 4 is read. When the serial data 4 is switched from the low level L to the high level H or from the high level H to the low level L, the serial data 4 is switched from the low level L to the high level H or from the high level H to the low level L. Since a predetermined time is required for stabilization, the serial data 4 is not stable at either the high level H or the low level L at the time when the data of each bit constituting the serial data 4 is switched. As described above, the data demodulator 9 reads the serial data 4 at the time when the serial data 4 is in an unstable state of the low level L or the high level H. Therefore, the data demodulator 9 reads the serial data 4 accurately. The serial data 4 cannot be accurately demodulated into the digital data 3 composed of parallel data.

このような位相遅延を補償するために、伝送媒体の長さに基づいて位相遅延を逆算して、復調用クロック信号10に対してシリアルデータ4を読込むタイミングを調整することが考えられる。この場合は、伝送媒体の長さに応じてシリアルデータ4を読込むタイミングを調整する必要が生じ、受信機2の汎用性が低くなる。   In order to compensate for such a phase delay, it is conceivable to adjust the timing at which the serial data 4 is read with respect to the demodulation clock signal 10 by reversely calculating the phase delay based on the length of the transmission medium. In this case, it is necessary to adjust the timing for reading the serial data 4 according to the length of the transmission medium, and the versatility of the receiver 2 is lowered.

また同期用クロック信号6を用いずに、送信機と受信機との間のデータの送受信を同期して実行するために、送信すべきデジタルデータに、同期をとるためのデータを付加したシリアルデータを送信する場合には、デジタルデータに同期用のデータを付加するので、冗長度が増大して伝送速度が低下するという問題が生じる。   In addition, in order to synchronize and execute data transmission / reception between the transmitter and the receiver without using the synchronization clock signal 6, serial data is obtained by adding data for synchronization to digital data to be transmitted. When data is transmitted, synchronization data is added to the digital data. This causes a problem that the redundancy increases and the transmission speed decreases.

したがって本発明の目的は、データの伝送速度が低下することなく、かつ伝送媒体の長さに拘わりなく正確にシリアルデータを復調することができる受信機を提供することである。   Accordingly, an object of the present invention is to provide a receiver capable of accurately demodulating serial data without reducing the data transmission rate and irrespective of the length of the transmission medium.

本発明は、受信する同期用のクロック信号に同期してシリアルデータおよびこのシリアルデータを伝送するタイミングを表すストローブ信号を送信する送信機に対して送信する前記同期用のクロック信号を生成する同期用クロック信号生成手段と、
前記送信機から送信されるストローブ信号に基づいてシリアルデータの伝送の開始を検出すると、前記同期用のクロック信号と同じ信号波形を有し、かつ前記送信機から送信されるシリアルデータの各ビットのデータの周期内の予め定めるタイミングで立上りまたは立下り、前記送信機から送信されるシリアルデータの各ビットのデータを読込むタイミングを表す復調用のクロック信号を生成する復調用クロック信号生成手段と、
復調用のクロック信号に同期して前記シリアルデータを1ビットずつ順次読込むデータ読込み手段とを含むことを特徴とする受信機である。
The present invention provides a synchronization clock signal that is transmitted to a transmitter that transmits serial data and a strobe signal indicating a timing for transmitting the serial data in synchronization with a received synchronization clock signal. Clock signal generating means;
When the start of transmission of serial data is detected based on the strobe signal transmitted from the transmitter, each bit of the serial data transmitted from the transmitter has the same signal waveform as the clock signal for synchronization. A demodulating clock signal generating means for generating a demodulating clock signal representing a timing of reading data of each bit of serial data transmitted from the transmitter, rising or falling at a predetermined timing within a cycle of data;
And a data reading means for sequentially reading the serial data bit by bit in synchronization with a demodulating clock signal.

また本発明は、前記同期用のクロック信号および前記復調用のクロック信号よりも周波数の高い基準クロック信号を生成する基準クロック信号生成手段をさらに含み、
前記同期用クロック信号生成手段は、基準クロック信号を分周することによって同期用のクロック信号を生成し、
前記復調用クロック信号生成手段は、基準クロック信号を分周することによって復調用のクロック信号を生成することを特徴とする。
The present invention further includes reference clock signal generation means for generating a reference clock signal having a frequency higher than that of the synchronization clock signal and the demodulation clock signal,
The synchronization clock signal generation means generates a synchronization clock signal by dividing a reference clock signal,
The demodulation clock signal generating means generates a demodulation clock signal by dividing the reference clock signal.

また本発明は、前記予め定めるタイミングは、シリアルデータの各ビットの最も安定していると推定される周期の半周期近傍の時刻であることを特徴とする。   Further, the present invention is characterized in that the predetermined timing is a time in the vicinity of a half cycle of a cycle in which each bit of serial data is estimated to be most stable.

本発明によれば、同期用クロック信号生成手段は、同期用のクロック信号を生成して送信機に与える。送信機は、受信機から与えられる同期用のクロック信号に同期して、ストローブ信号と、シリアルデータとを送信する。ストローブ信号は、シリアルデータを伝送するタイミングを表す。   According to the present invention, the synchronization clock signal generation means generates a synchronization clock signal and supplies it to the transmitter. The transmitter transmits a strobe signal and serial data in synchronization with a synchronization clock signal provided from the receiver. The strobe signal represents the timing for transmitting serial data.

送信機から受信機にデータが伝送されるまでの間に、データの位相に遅延が生じる。送信機と受信機との間におけるストローブ信号とシリアルデータとの伝送距離は、ほぼ等しいので、互いの位相遅延の大きさもほぼ等しくなる。復調用クロック信号生成手段は、シリアルデータとほぼ等しい位相遅延の生じるストローブ信号に基づくことによって、送信機と受信機との間の伝送距離に無関係にシリアルデータの伝送の開始のタイミングを確実に検出することができる。復調用クロック信号生成手段は、検出したシリアルデータの伝送の開始のタイミングに合わせて、各ビットのデータを読込むタイミングを表す復調用のクロック信号を生成する。復調用のクロック信号は、同期用のクロック信号と同じ信号波形を有し、シリアルデータの各ビットのデータの周期内の予め定めるタイミングにおいて立上りまたは立下がる。   There is a delay in the phase of the data before the data is transmitted from the transmitter to the receiver. Since the transmission distance between the strobe signal and the serial data between the transmitter and the receiver is substantially equal, the magnitudes of the phase delays are also substantially equal. The demodulation clock signal generation means reliably detects the start timing of serial data transmission regardless of the transmission distance between the transmitter and the receiver, based on a strobe signal that causes a phase delay almost equal to that of serial data. can do. The demodulating clock signal generating means generates a demodulating clock signal that represents the timing of reading each bit of data in accordance with the detected start timing of serial data transmission. The demodulation clock signal has the same signal waveform as that of the synchronization clock signal, and rises or falls at a predetermined timing within the data cycle of each bit of the serial data.

送信機は、受信機から与えられる同期用のクロック信号に同期してデータを送信するので、送信機から送信されるシリアルデータの各ビットのデータの周波数は、受信機が与える同期用のクロック信号に確実に一致する。復調用クロック信号生成手段が生成する復調用のクロック信号の周波数は、同期用のクロック信号の周波数と同じなので、シリアルデータの各ビットのデータの周波数と同じである。したがって、時系列においてシリアルデータの各ビットのうちの先頭のビットのデータの周期内の予め定めるタイミングにおいて、データを読込むタイミングを表す復調用のクロック信号を生成すると、おのずとシリアルデータの各ビットのデータの周期内の予め定めるタイミングにおいて、各ビットのデータを読込むタイミングを表す復調用のクロック信号が順次生成される。   Since the transmitter transmits data in synchronization with the clock signal for synchronization given from the receiver, the frequency of the data of each bit of the serial data sent from the transmitter is the clock signal for synchronization given by the receiver. Surely matches. The frequency of the demodulating clock signal generated by the demodulating clock signal generating means is the same as the frequency of the synchronizing clock signal, and is therefore the same as the data frequency of each bit of the serial data. Therefore, when a demodulating clock signal representing the timing for reading data is generated at a predetermined timing within the data cycle of the first bit of each bit of serial data in time series, each bit of serial data is naturally generated. At a predetermined timing within the data cycle, a demodulation clock signal representing the timing for reading each bit of data is sequentially generated.

データ読込み手段は、復調用のクロック信号に同期してシリアルデータを1ビットずつ順次読込むことによって、シリアルデータの各ビットのデータに同期してシリアルデータを確実に読込むことができる。このように、送信機と受信機との間のデータの伝送距離に無関係にシリアルデータの伝送の開始のタイミングを確実に検出して、このシリアルデータの伝送の開始に合わせて復調用のクロック信号を生成するので、従来の技術のようにシリアルデータを読込むタイミングがデータの伝送距離に依存して変わることがなくなる。したがって従来の技術のように、所定のデータの伝送距離の場合に、シリアルデータの各ビットのデータが切換わるタイミングでシリアルデータを読込むことがなくなり、データの伝送距離に無関係に正確にシリアルデータを読込むことができる。   The data reading means sequentially reads serial data bit by bit in synchronization with the demodulation clock signal, so that the serial data can be reliably read in synchronization with the data of each bit of the serial data. In this way, the start timing of serial data transmission is reliably detected irrespective of the data transmission distance between the transmitter and the receiver, and the clock signal for demodulation is synchronized with the start of serial data transmission. Therefore, the timing for reading serial data does not change depending on the transmission distance of data as in the conventional technique. Therefore, unlike the conventional technology, serial data is not read at the timing at which the data of each bit of the serial data is switched at a predetermined data transmission distance, and the serial data is accurately set regardless of the data transmission distance. Can be read.

また同期をとるためのデータを付加したシリアルデータを送信する必要がないので、冗長度が増大することがなく、データの伝送速度が低下しない。   In addition, since it is not necessary to transmit serial data to which data for synchronization is added, the redundancy does not increase and the data transmission speed does not decrease.

また本発明によれば、同期用のクロック信号と復調用のクロック信号とは、基準クロック信号を分周することによって生成される。同期用のクロック信号と復調用のクロック信号とをそれぞれ別々の発振回路を用いて生成する場合に、互いの周波数を一致させるのは困難であるが、基準クロック信号を分周することによって同期用のクロック信号の周波数と復調用のクロック信号の周波数とを容易に一致させることができる。また基準クロック信号を発生する発振回路だけで同期用のクロック信号と復調用のクロック信号とを生成することができるので、各クロック信号をそれぞれ別々の発振回路を用いて発生させる場合に比べて受信機の構成が簡易になる。   According to the present invention, the synchronization clock signal and the demodulation clock signal are generated by dividing the reference clock signal. When generating the clock signal for synchronization and the clock signal for demodulation using separate oscillation circuits, it is difficult to make the frequencies coincide with each other, but for synchronization by dividing the reference clock signal The frequency of the clock signal and the frequency of the demodulation clock signal can be easily matched. In addition, the clock signal for synchronization and the clock signal for demodulation can be generated only by the oscillation circuit that generates the reference clock signal, so that each clock signal is received compared to the case where each clock signal is generated using a separate oscillation circuit. The configuration of the machine becomes simple.

また本発明によれば、復調用クロック信号生成手段は、シリアルデータの各ビットの最も安定していると推定される周期の半周期近傍の時刻においてシリアルデータを読込むタイミングを表す復調用のクロック信号を生成する。データ読込み手段は、この復調用のクロック信号に同期してシリアルデータを読込むので、シリアルデータの各ビットのデータが切換わる時刻から最も離れた時刻においてシリアルデータを読込む。シリアルデータの各ビットのデータが切換わる時刻から最も離れた時刻は、シリアルデータが最も安定していると推定される時刻なので、この時刻においてシリアルデータを読込むことによって、最も正確にシリアルデータを読込むことができる。   Further, according to the present invention, the demodulation clock signal generation means is a demodulation clock that represents the timing for reading serial data at a time in the vicinity of a half cycle of the period estimated to be most stable for each bit of the serial data. Generate a signal. Since the data reading means reads serial data in synchronization with the demodulation clock signal, the data reading means reads serial data at a time farthest from the time at which the data of each bit of the serial data is switched. The time most distant from the time at which the data of each bit of the serial data is switched is the time when the serial data is estimated to be the most stable, so the serial data is read most accurately by reading the serial data at this time. Can be read.

本発明の実施の一形態の送信機21と、受信機22との電気的構成を示すブロック図である。It is a block diagram which shows the electric constitution of the transmitter 21 and receiver 22 of one Embodiment of this invention. 送信機21または受信機22がそれぞれ受信するデータおよび高周波クロック信号35のタイミングチャートである。4 is a timing chart of data and a high-frequency clock signal 35 received by a transmitter 21 or a receiver 22, respectively. 送信機1と受信機2との電気的構成を示すブロック図である。2 is a block diagram showing an electrical configuration of a transmitter 1 and a receiver 2. FIG. 送信機1または受信機2が受信するデータのタイミングチャートである。It is a timing chart of the data which the transmitter 1 or the receiver 2 receives. 一例として復調用クロック信号10の位相に対して同期用クロック信号6の位相に4分の1周期(T/4)の遅延が生じた場合の送信機1または受信機2が受信するデータのタイミングチャートである。As an example, the timing of data received by the transmitter 1 or the receiver 2 when a delay of a quarter period (T / 4) occurs in the phase of the synchronization clock signal 6 with respect to the phase of the demodulation clock signal 10 It is a chart.

図1は、本発明の実施の一形態の送信機21と、受信機22との電気的構成を示すブロック図である。送信機21と受信機22とは、電線などの電気信号を伝送する伝送媒体によって接続され、この伝送媒体を介してクロック同期式のシリアル通信を行う送受信システムを構成する。送信機21と受信機22とは、たとえば産業用および民生用の電子機器に設けられ、複数のコンピュータ間でデータを伝送したり、メカトロニクス関連機器に設けられ、コントローラと機構部との間でセンサ信号および動作指令信号を伝送したりする。   FIG. 1 is a block diagram showing an electrical configuration of a transmitter 21 and a receiver 22 according to an embodiment of the present invention. The transmitter 21 and the receiver 22 are connected by a transmission medium that transmits an electrical signal such as an electric wire, and constitutes a transmission / reception system that performs clock synchronous serial communication via the transmission medium. The transmitter 21 and the receiver 22 are provided in, for example, industrial and consumer electronic devices, transmit data between a plurality of computers, or are provided in mechatronics related devices, and a sensor is provided between the controller and the mechanism unit. Transmit signals and operation command signals.

送信機21は、パラレルデータから構成されるデジタルデータ23を、シリアルデータ24に変換するシリアルデータ生成部25によって実現される。デジタルデータ23は、たとえば8ビットまたは16ビットのパラレルデータによって構成され、マイクロコンピュータなどによって実現されるデジタルデータ生成部によって生成される。シリアルデータ生成部25は、受信機22から与えられる同期用のクロック信号(以下、同期用クロック信号という)26に同期して、ストローブ信号27および変換したシリアルデータ24を受信機22に与える。   The transmitter 21 is realized by a serial data generation unit 25 that converts digital data 23 composed of parallel data into serial data 24. The digital data 23 is composed of, for example, 8-bit or 16-bit parallel data, and is generated by a digital data generation unit realized by a microcomputer or the like. The serial data generation unit 25 provides the receiver 22 with the strobe signal 27 and the converted serial data 24 in synchronization with a synchronization clock signal (hereinafter referred to as a synchronization clock signal) 26 supplied from the receiver 22.

ストローブ信号27は、シリアルデータ24を伝送するタイミングを表す。本実施の形態ではストローブ信号27は、ローレベルLのときにシリアルデータ24を伝送していることを表し、ハイレベルHのときにシリアルデータ24を伝送していないことを表す。つまり、ストローブ信号27がハイレベルHからローレベルLに立下がると、シリアルデータ24の伝送が開始することを表し、ローレベルLからハイレベルHに立上ると、シリアルデータ24の伝送が終了することを表す。シリアルデータ生成部25は、シリアルデータ24の伝送に応じて、同期用クロック信号26の立下りに同期してストローブ信号27をハイレベルHからローレベルLまたはローレベルLからハイレベルHに切換える。またシリアルデータ生成部25は、同期用クロック信号26の立下りに同期してシリアルデータ24の各ビットのデータを生成して出力する。したがってシリアルデータ24の各ビットのデータの周期Tは、同期用クロック信号26の周期(以下、基本周期という)Tと同じである。本実施の形態では、データ(0)からデータ(N)までのN+1ビットのシリアルデータ24を送信機21が送信して、受信機22がこのシリアルデータ24を受信する手順について説明する。シリアルデータ生成部25は、たとえばシフトレジスタを含んで構成されるパラレル―シリアル変換回路によって実現される。   The strobe signal 27 represents the timing at which the serial data 24 is transmitted. In the present embodiment, the strobe signal 27 indicates that serial data 24 is transmitted when it is at a low level L, and indicates that serial data 24 is not transmitted when it is at a high level H. That is, when the strobe signal 27 falls from the high level H to the low level L, transmission of the serial data 24 starts. When the strobe signal 27 rises from the low level L to the high level H, transmission of the serial data 24 is completed. Represents that. The serial data generation unit 25 switches the strobe signal 27 from the high level H to the low level L or from the low level L to the high level H in synchronization with the falling of the synchronization clock signal 26 according to the transmission of the serial data 24. The serial data generation unit 25 generates and outputs data of each bit of the serial data 24 in synchronization with the falling of the synchronization clock signal 26. Therefore, the period T of the data of each bit of the serial data 24 is the same as the period T (hereinafter referred to as the basic period) T of the synchronization clock signal 26. In the present embodiment, a procedure in which the transmitter 21 transmits N + 1 bit serial data 24 from data (0) to data (N) and the receiver 22 receives the serial data 24 will be described. The serial data generation unit 25 is realized by a parallel-serial conversion circuit including a shift register, for example.

受信機22は、基準クロック信号生成手段に相当するクロック信号生成部31と、同期用クロック信号生成手段に相当する分周部32と、復調用クロック信号生成部33と、データ読込み手段に相当するデータ復調部34とを含んで構成される。クロック信号生成部31は、一定の周波数で高電圧のハイレベルHと低電圧のローレベルLとを繰返す高周波クロック信号35を生成し、生成した高周波クロック信号35を分周部32に与えるとともに、復調用クロック信号生成部33にも与える。クロック信号生成部31は、たとえば水晶振動子を含んで構成される発振回路によって実現される。   The receiver 22 corresponds to a clock signal generation unit 31 corresponding to a reference clock signal generation unit, a frequency division unit 32 corresponding to a synchronization clock signal generation unit, a demodulation clock signal generation unit 33, and a data reading unit. And a data demodulator 34. The clock signal generator 31 generates a high frequency clock signal 35 that repeats a high voltage high level H and a low voltage low level L at a constant frequency, and supplies the generated high frequency clock signal 35 to the frequency divider 32. This is also provided to the demodulation clock signal generation unit 33. The clock signal generation unit 31 is realized by an oscillation circuit including a crystal resonator, for example.

分周部32は、クロック信号生成部31から与えられる高周波クロック信号35をn分周(記号「n」は、2以上の自然数を示す)して低周波数の同期用クロック信号26を生成し、生成した同期用クロック信号26をシリアルデータ生成部25に与える。本実施の形態では分周部32は、高周波クロック信号35を8分周して同期用クロック信号26を生成する。すなわち同期用クロック信号26の周波数は、高周波クロック信号35の周波数fの8分の1(f/8)である。分周部32は、たとえばフリップフロップを含んで構成されるn進カウンタによって実現される。   The frequency divider 32 divides the high-frequency clock signal 35 provided from the clock signal generator 31 by n (symbol “n” indicates a natural number of 2 or more) to generate a low-frequency synchronization clock signal 26. The generated synchronization clock signal 26 is supplied to the serial data generation unit 25. In the present embodiment, the frequency divider 32 divides the high frequency clock signal 35 by 8 to generate the synchronization clock signal 26. That is, the frequency of the synchronization clock signal 26 is 1/8 (f / 8) of the frequency f of the high-frequency clock signal 35. The frequency dividing unit 32 is realized by, for example, an n-ary counter that includes a flip-flop.

復調用クロック信号生成部33は、ストローブ信号27に基づいてシリアルデータ24の伝送の開始を検出すると、シリアルデータ24の各ビットのデータの周期T内の予め定めるタイミングにおいて、前記各ビットのデータを読込むタイミングを表す復調用のクロック信号(以下、復調用クロック信号という)36を生成する。この復調用クロック信号36は、シリアルデータ24の各ビットのデータの周期T内の予め定めるタイミングにおいて立上るまたは立下がる。復調用クロック信号36の周期Tは、同期用クロック信号26の周期Tと等しく選ばれる。また本実施の形態において予め定めるタイミングは、シリアルデータ24の各ビットのデータの半周期(T/2)に選ばれる。   When the demodulation clock signal generation unit 33 detects the start of transmission of the serial data 24 based on the strobe signal 27, the demodulation clock signal generation unit 33 outputs the data of each bit at a predetermined timing within the data period T of each bit of the serial data 24. A demodulation clock signal (hereinafter referred to as a demodulation clock signal) 36 representing the read timing is generated. The demodulation clock signal 36 rises or falls at a predetermined timing within the data period T of each bit of the serial data 24. The period T of the demodulation clock signal 36 is selected to be equal to the period T of the synchronization clock signal 26. Further, the predetermined timing in the present embodiment is selected in the half cycle (T / 2) of each bit data of the serial data 24.

本発明の他の実施形態では、8分周に限らずに遅延がT/4のとき2分周でもよいが、遅延量によっては、データの最も安定する中央部から外れることがあり得るため、前述の実施形態では、より中央に近いポイントをサンプリングできる例として8分周とした。   In another embodiment of the present invention, not only dividing by 8 but dividing by 2 when the delay is T / 4 may be used. However, depending on the amount of delay, the data may deviate from the most stable central portion. In the above-described embodiment, the frequency is divided by 8 as an example in which a point closer to the center can be sampled.

送信機21から受信機22にデータが伝送されるまでの間に、データの位相に遅延が生じる。送信機21と受信機22との間におけるストローブ信号27とシリアルデータ24との伝送距離は、ほぼ等しいので、互いの位相遅延の大きさもほぼ等しくなる。復調用クロック信号生成部33は、シリアルデータ24とほぼ等しい位相遅延が生じるストローブ信号27に基づくことによって、送信機21と受信機22との間の伝送距離に無関係にシリアルデータ24の伝送の開始のタイミングを確実に検出することができる。具体的には、復調用クロック信号生成部33は、ストローブ信号27の立下りを検出することによってシリアルデータ24の復調の開始を検出する。   There is a delay in the phase of the data before the data is transmitted from the transmitter 21 to the receiver 22. Since the transmission distance between the strobe signal 27 and the serial data 24 between the transmitter 21 and the receiver 22 is substantially equal, the magnitudes of the phase delays are also substantially equal. The demodulation clock signal generation unit 33 starts transmission of the serial data 24 regardless of the transmission distance between the transmitter 21 and the receiver 22 based on the strobe signal 27 in which a phase delay substantially equal to that of the serial data 24 occurs. Can be detected reliably. Specifically, the demodulation clock signal generation unit 33 detects the start of demodulation of the serial data 24 by detecting the falling edge of the strobe signal 27.

復調用クロック信号生成部33は、ストローブ信号27がローレベルLのときに、クロック信号生成部31から与えられる高周波クロック信号35を分周して低周波の復調用クロック信号36を生成し、生成した復調用クロック信号36をデータ復調部34に与える。すなわち復調用クロック信号生成部33は、ストローブ信号27の立下がりに同期して復調用クロック信号36の送信を開始し、ストローブ信号27が立上ると復調用クロック信号36の送信を停止する。本実施の形態では復調用クロック信号生成部33は、シリアルデータ24の各ビットのデータの周期T内の予め定めるタイミングにおいて立上る復調用クロック信号36を生成する。すなわち復調用クロック信号生成部33は、シリアルデータ24の各ビットのデータが切換わる時刻から基本周期Tの半周期(T/2)後に立上る復調用クロック信号36を生成する。   The demodulation clock signal generation unit 33 divides the high frequency clock signal 35 supplied from the clock signal generation unit 31 to generate the low frequency demodulation clock signal 36 when the strobe signal 27 is at the low level L. The demodulated clock signal 36 is supplied to the data demodulator 34. That is, the demodulation clock signal generation unit 33 starts transmission of the demodulation clock signal 36 in synchronization with the fall of the strobe signal 27, and stops transmission of the demodulation clock signal 36 when the strobe signal 27 rises. In the present embodiment, the demodulation clock signal generation unit 33 generates a demodulation clock signal 36 that rises at a predetermined timing within the data period T of each bit of the serial data 24. That is, the demodulation clock signal generation unit 33 generates the demodulation clock signal 36 that rises after a half period (T / 2) of the basic period T from the time when the data of each bit of the serial data 24 is switched.

復調用クロック信号生成部33は、同期用クロック信号26と同じ信号波形を有する復調用クロック信号36を生成する。本実施の形態では復調用クロック信号生成部33は、高周波クロック信号35を8分周して復調用クロック信号36を生成する。すなわち復調用クロック信号36の周波数は、高周波クロック信号35の周波数fの8分の1(f/8)である。   The demodulation clock signal generator 33 generates a demodulation clock signal 36 having the same signal waveform as that of the synchronization clock signal 26. In the present embodiment, the demodulation clock signal generation unit 33 divides the high frequency clock signal 35 by 8 to generate the demodulation clock signal 36. That is, the frequency of the demodulation clock signal 36 is 1/8 (f / 8) of the frequency f of the high frequency clock signal 35.

このように同期用クロック信号26と復調用クロック信号36とは、高周波クロック信号35を分周することによって生成される。同期用クロック信号26と復調用クロック信号36とをそれぞれ別々の発振回路を用いて生成する場合に、互いの周波数を一致させるのは困難であるが、高周波クロック信号35を分周することによって同期用クロック信号26の周波数と復調用クロック信号36の周波数とを容易に一致させることができる。また高周波クロック信号35を発生するクロック信号生成部31だけで同期用クロック信号26と復調用クロック信号36とを生成することができるので、各クロック信号をそれぞれ別々の発振回路を用いて発生させる場合に比べて受信機22の構成が簡易になる。   As described above, the synchronization clock signal 26 and the demodulation clock signal 36 are generated by dividing the high-frequency clock signal 35. When the synchronization clock signal 26 and the demodulation clock signal 36 are generated using separate oscillation circuits, it is difficult to make the frequencies coincide with each other. However, the synchronization is achieved by dividing the high-frequency clock signal 35. The frequency of the clock signal for use 26 and the frequency of the clock signal for demodulation 36 can be easily matched. In addition, since only the clock signal generator 31 that generates the high-frequency clock signal 35 can generate the synchronization clock signal 26 and the demodulation clock signal 36, each clock signal is generated using a separate oscillation circuit. The configuration of the receiver 22 is simpler than that.

前述したように、シリアルデータ生成部25から送信されるシリアルデータ24の各ビットのデータの周期Tは、同期用クロック信号26の周期Tと等しい。復調用クロック信号生成部33が生成する復調用クロック信号36の周波数は、同期用クロック信号26の周波数と同じなので、シリアルデータ24の各ビットのデータの周波数と同じである。したがって、時系列においてシリアルデータ24の各ビットのうちの先頭のビットのデータの周期T内の予め定めるタイミングにおいて、データを読込むタイミングを表す復調用クロック信号36を生成すると、おのずとシリアルデータ24の各ビットのデータの周期T内の予め定めるタイミングにおいて、各ビットのデータを読込むタイミングを表す復調用クロック信号36が順次生成される。   As described above, the cycle T of the data of each bit of the serial data 24 transmitted from the serial data generation unit 25 is equal to the cycle T of the synchronization clock signal 26. Since the frequency of the demodulation clock signal 36 generated by the demodulation clock signal generation unit 33 is the same as the frequency of the synchronization clock signal 26, the frequency of each bit of the serial data 24 is the same. Therefore, when the demodulation clock signal 36 representing the data reading timing is generated at a predetermined timing within the data period T of the first bit of the serial data 24 in time series, the serial data 24 At a predetermined timing within the cycle T of the data of each bit, a demodulation clock signal 36 indicating the timing for reading each bit of data is sequentially generated.

復調用クロック信号生成部33は、たとえばセレクト回路とn進カウンタによって実現される。セレクト回路は、ストローブ信号27がローレベルLのときに高周波クロック信号35を通過させてn進カウンタに与え、ストローブ信号27がハイレベルHのときに高周波クロック信号35を遮断してn進カウンタに与えない。セレクト回路は、たとえばストローブ信号27を反転するインバータと、インバータからの出力および高周波クロック信号35が入力されるAND回路によって実現される。   The demodulation clock signal generation unit 33 is realized by a select circuit and an n-ary counter, for example. The select circuit passes the high-frequency clock signal 35 when the strobe signal 27 is at the low level L and applies it to the n-ary counter, and when the strobe signal 27 is at the high level H, it cuts off the high-frequency clock signal 35 to the n-ary counter. Don't give. The select circuit is realized by, for example, an inverter that inverts the strobe signal 27, and an AND circuit to which the output from the inverter and the high-frequency clock signal 35 are input.

データ復調部34は、送信機21からストローブ信号27が与えられる。データ復調部34が受信するストローブ信号27は、復調用クロック信号生成部33が受信するストローブ信号27を分岐した信号である。データ復調部34は、シリアルデータ24の伝送が開始することを表すストローブ信号27を受信すると、復調用クロック信号36に同期してシリアルデータ24を1ビットずつ読込む。データ復調部34は、たとえばシフトレジスタを含んで構成されるシリアル―パラレル変換回路を含んで構成される。   The data demodulator 34 is given a strobe signal 27 from the transmitter 21. The strobe signal 27 received by the data demodulator 34 is a signal obtained by branching the strobe signal 27 received by the demodulation clock signal generator 33. When receiving the strobe signal 27 indicating that the transmission of the serial data 24 is started, the data demodulator 34 reads the serial data 24 bit by bit in synchronization with the demodulation clock signal 36. The data demodulating unit 34 includes a serial-parallel conversion circuit including a shift register, for example.

シリアル―パラレル変換回路は、復調用クロック信号36の立上りに同期してシリアルデータ24を読込んで、シリアルデータ24をパラレルデータから成るデジタルデータ23に復調する。   The serial-parallel conversion circuit reads the serial data 24 in synchronization with the rising edge of the demodulation clock signal 36 and demodulates the serial data 24 into digital data 23 composed of parallel data.

図2は、送信機21または受信機22がそれぞれ受信するデータおよび高周波クロック信号35のタイミングチャートである。図2において横軸は、時間を表す。図2において、同期用クロック信号26は、シリアルデータ生成部25が受信した信号波形を表し、復調用クロック信号36、ストローブ信号27、およびシリアルデータ24は、データ復調部34が受信した信号波形を表す。本実施の形態では、伝送線路をデータが伝送することによって、同期用クロック信号26の基本周期Tに対して4分の1周期(T/4)の位相遅延が生じる場合について説明する。   FIG. 2 is a timing chart of data received by the transmitter 21 or the receiver 22 and the high-frequency clock signal 35, respectively. In FIG. 2, the horizontal axis represents time. In FIG. 2, a synchronization clock signal 26 represents a signal waveform received by the serial data generation unit 25, and a demodulation clock signal 36, a strobe signal 27, and serial data 24 represent a signal waveform received by the data demodulation unit 34. To express. In the present embodiment, a case where a phase delay of a quarter period (T / 4) occurs with respect to the basic period T of the synchronization clock signal 26 by transmitting data through the transmission line will be described.

シリアルデータ生成部25は、時刻t1において同期用クロック信号26の立下りに同期してストローブ信号27をハイレベルHからローレベルLに切換えるとともに、シリアルデータ24の送信を開始する。ストローブ信号27およびシリアルデータ24は、伝送線路を伝送することによって位相遅延が生じ、時刻t1から基本周期Tの4分の1周期(T/4)後の時刻t2にデータ復調部34に伝送される。時刻t2では、復調用クロック生成部33が受信するストローブ信号27がハイレベルHからローレベルLに切換わる。   The serial data generation unit 25 switches the strobe signal 27 from the high level H to the low level L in synchronization with the falling of the synchronization clock signal 26 at time t1, and starts transmission of the serial data 24. The strobe signal 27 and the serial data 24 are transmitted to the data demodulator 34 at a time t2 after a quarter period (T / 4) of the basic period T from the time t1. The At time t2, the strobe signal 27 received by the demodulation clock generator 33 is switched from the high level H to the low level L.

復調用クロック信号生成部33は、時刻t2においてストローブ信号27がハイレベルHからローレベルLに切換わると、高周波クロック信号35のカウントを開始して、復調用クロック信号36の生成を開始する。この復調用クロック信号36の周波数は、前述したように高周波クロック信号35の周波数fの8分の1(f/8)なので、時刻t2から基本周期Tの半周期(T/2)後の時刻t3において復調用クロック信号36がローレベルLからハイレベルHに立上る。以後復調用クロック信号生成部33は、ストローブ信号27がローレベルLからハイレベルHに切換わるまで基本周期Tの復調用クロック信号36をデータ復調部34に与え続ける。   When the strobe signal 27 is switched from the high level H to the low level L at time t2, the demodulation clock signal generation unit 33 starts counting the high frequency clock signal 35 and starts generating the demodulation clock signal 36. Since the frequency of the demodulation clock signal 36 is 1/8 (f / 8) of the frequency f of the high frequency clock signal 35 as described above, the time after the half period (T / 2) of the basic period T from the time t2. At t3, the demodulation clock signal 36 rises from the low level L to the high level H. Thereafter, the demodulation clock signal generation unit 33 continues to provide the data demodulation unit 34 with the demodulation clock signal 36 of the basic period T until the strobe signal 27 is switched from the low level L to the high level H.

データ復調部34は、復調用クロック信号36の立上りに同期してシリアルデータ24を読込むので、復調用クロック信号36の立上る時刻t3においてデータ(0)を読込む。時刻t3から基本周期Tの半周期(T/2)後の時刻t4では、復調用クロック信号36が立下がるとともに、シリアルデータ24がデータ(0)からデータ(1)に切換わる。時刻t4から基本周期Tの半周期(T/2)後の時刻t5では、復調用クロック信号36がローレベルLからハイレベルHに立上るので、データ復調部34は、データ(1)を読込む。以後、ストローブ信号27がローレベルLのときに、データ復調部34は、復調用クロック信号36の立上りに同期してシリアルデータ24の各ビットのデータを順次読込む。   Since the data demodulator 34 reads the serial data 24 in synchronization with the rise of the demodulation clock signal 36, the data demodulator 34 reads the data (0) at the time t3 when the demodulation clock signal 36 rises. At time t4, which is a half period (T / 2) of the basic period T from time t3, the demodulation clock signal 36 falls and the serial data 24 is switched from data (0) to data (1). At time t5, which is a half period (T / 2) of the basic period T from time t4, the demodulation clock signal 36 rises from low level L to high level H, so the data demodulation unit 34 reads data (1). Include. Thereafter, when the strobe signal 27 is at the low level L, the data demodulator 34 sequentially reads the data of each bit of the serial data 24 in synchronization with the rising of the demodulation clock signal 36.

時刻tYにおいて、シリアルデータ生成部25は、同期用クロック信号26の立下りに同期してストローブ信号27をローレベルLからハイレベルHに切換えるとともに、シリアルデータ24の送信を停止する。ストローブ信号27の立上りと、シリアルデータ24の送信の停止は、伝送媒体を伝送することによって時刻tYから基本周期Tの4分の1周期(T/4)後の時刻tZにデータ復調部34に到達する。   At time tY, the serial data generation unit 25 switches the strobe signal 27 from the low level L to the high level H in synchronization with the falling of the synchronization clock signal 26 and stops the transmission of the serial data 24. The rise of the strobe signal 27 and the stop of the transmission of the serial data 24 are transmitted to the data demodulator 34 at time tZ after a quarter period (T / 4) of the basic period T by transmitting the transmission medium. To reach.

時刻tZにおいてストローブ信号27がローレベルLからハイレベルHに立上ると、復調用クロック信号生成部33は、復調用クロック信号36の生成を停止するとともに、データ復調部34は、シリアルデータ24の読込みを停止する。   When the strobe signal 27 rises from the low level L to the high level H at time tZ, the demodulation clock signal generation unit 33 stops generating the demodulation clock signal 36 and the data demodulation unit 34 Stop reading.

データ復調部34は、読込んだシリアルデータ24をパラレルデータから成るデジタルデータ23に復調し、マイクロコンピュータなどに与える。   The data demodulator 34 demodulates the read serial data 24 into digital data 23 composed of parallel data, and gives it to a microcomputer or the like.

以上説明した本実施の形態の受信機22によれば、復調用クロック信号生成部33は、送信機21と受信機22との間のデータの伝送距離に無関係にシリアルデータ24の伝送の開始のタイミングを確実に検出して、このシリアルデータ24の伝送の開始に合わせて復調用クロック信号36を生成するので、従来の技術のようにシリアルデータを読込むタイミングがデータの伝送距離に依存して変わることがなくなる。データ復調部34は、このようにして生成される復調用クロック信号36に同期してシリアルデータ24を読込むので、従来の技術のように、所定のデータの伝送距離の場合に、シリアルデータの各ビットのデータが切換わるタイミングでシリアルデータを読込むことがなくなり、データの伝送距離に無関係に正確にシリアルデータ24を読込むことができる。   According to the receiver 22 of the present embodiment described above, the demodulation clock signal generator 33 starts transmission of the serial data 24 regardless of the data transmission distance between the transmitter 21 and the receiver 22. Since the timing is reliably detected and the demodulation clock signal 36 is generated at the start of the transmission of the serial data 24, the timing for reading the serial data depends on the transmission distance of the data as in the prior art. No change. Since the data demodulator 34 reads the serial data 24 in synchronization with the demodulated clock signal 36 generated in this way, the serial data is read in the case of a predetermined data transmission distance as in the prior art. The serial data is not read at the timing when the data of each bit is switched, and the serial data 24 can be read accurately regardless of the data transmission distance.

また同期をとるためのデータを付加したシリアルデータを送信する必要がないので、冗長度が増大することがなく、データの伝送速度が低下しない。   In addition, since it is not necessary to transmit serial data to which data for synchronization is added, the redundancy does not increase and the data transmission speed does not decrease.

また本実施の形態の受信機22によれば、復調用クロック信号生成部33は、シリアルデータ24の各ビットの周期Tの半周期(T/2)の時刻においてシリアルデータ24を読込むタイミングを表す復調用クロック信号36を生成する。復調用クロック信号生成部33は、この復調用クロック信号生成部33に同期してシリアルデータ24を読込むので、シリアルデータ24の各ビットのデータが切換わる時刻から最も離れた時刻においてシリアルデータ24を読込む。シリアルデータ24の各ビットのデータが切換わる時刻から最も離れた時刻は、シリアルデータ24が最も安定していると推定される時刻なので、この時刻においてシリアルデータ24を読込むことによって、最も正確にシリアルデータ24を読込むことができる。   Further, according to the receiver 22 of the present embodiment, the demodulation clock signal generation unit 33 reads the timing at which the serial data 24 is read at the time of the half period (T / 2) of the period T of each bit of the serial data 24. A demodulating clock signal 36 is generated. Since the demodulation clock signal generation unit 33 reads the serial data 24 in synchronization with the demodulation clock signal generation unit 33, the serial data 24 is at a time farthest from the time at which the data of each bit of the serial data 24 is switched. Is read. The time most distant from the time at which the data of each bit of the serial data 24 is switched is the time at which the serial data 24 is estimated to be most stable. Therefore, by reading the serial data 24 at this time, it is most accurate. Serial data 24 can be read.

本実施の形態の受信機22の分周部32および復調用クロック信号生成部33は、高周波クロック信号35を8分周するとしたけれども、8分周に限らずに、高周波クロック信号35をn分周して同期用クロック信号26および復調用クロック信号36をそれぞれ生成してもよい。データ復調部34は、このような復調用クロック信号36に同期することによって、正確にシリアルデータ24を読込むことができる。   The frequency dividing unit 32 and the demodulation clock signal generating unit 33 of the receiver 22 according to the present embodiment are configured to divide the high frequency clock signal 35 by 8; The clock signal for synchronization 26 and the clock signal for demodulation 36 may be generated by rounding. The data demodulator 34 can read the serial data 24 accurately by synchronizing with the demodulation clock signal 36.

21 送信機
22 受信機
23 デジタルデータ
24 シリアルデータ
25 シリアルデータ生成部
26 同期用クロック信号
27 ストローブ信号
31 クロック生成部
32 分周部
33 復調用クロック信号生成部
34 データ復調部
35 高周波クロック信号
36 復調用クロック信号
DESCRIPTION OF SYMBOLS 21 Transmitter 22 Receiver 23 Digital data 24 Serial data 25 Serial data generation part 26 Synchronization clock signal 27 Strobe signal 31 Clock generation part 32 Frequency division part 33 Demodulation clock signal generation part 34 Data demodulation part 35 High frequency clock signal 36 Demodulation Clock signal

Claims (3)

受信する同期用のクロック信号に同期して、シリアルデータおよびこのシリアルデータを伝送するタイミングを表すストローブ信号を送信する送信機に対して、送信する前記同期用のクロック信号を生成する同期用クロック信号生成手段と、
前記送信機から送信されるストローブ信号に基づいてシリアルデータの伝送の開始を検出すると、前記同期用のクロック信号と同じ信号波形を有し、かつ前記送信機から送信されるシリアルデータの各ビットのデータの周期内の予め定めるタイミングで立上りまたは立下り、前記送信機から送信されるシリアルデータの各ビットのデータを読込むタイミングを表す復調用のクロック信号を生成する復調用クロック信号生成手段と、
復調用のクロック信号に同期して前記シリアルデータを1ビットずつ順次読込むデータ読込み手段とを含むことを特徴とする受信機。
A synchronization clock signal for generating the synchronization clock signal to be transmitted to a transmitter for transmitting serial data and a strobe signal indicating the timing for transmitting the serial data in synchronization with the synchronization clock signal to be received Generating means;
When the start of transmission of serial data is detected based on the strobe signal transmitted from the transmitter, each bit of the serial data transmitted from the transmitter has the same signal waveform as the clock signal for synchronization. A demodulating clock signal generating means for generating a demodulating clock signal representing a timing of reading data of each bit of serial data transmitted from the transmitter, rising or falling at a predetermined timing within a cycle of data;
And a data reading means for sequentially reading the serial data bit by bit in synchronization with a demodulation clock signal.
前記同期用のクロック信号および前記復調用のクロック信号よりも周波数の高い基準クロック信号を生成する基準クロック信号生成手段をさらに含み、
前記同期用クロック信号生成手段は、基準クロック信号を分周することによって同期用のクロック信号を生成し、
前記復調用クロック信号生成手段は、基準クロック信号を分周することによって復調用のクロック信号を生成することを特徴とする請求項1記載の受信機。
Reference clock signal generation means for generating a reference clock signal having a higher frequency than the clock signal for synchronization and the clock signal for demodulation,
The synchronization clock signal generation means generates a synchronization clock signal by dividing a reference clock signal,
2. The receiver according to claim 1, wherein the demodulation clock signal generation means generates a demodulation clock signal by dividing the reference clock signal.
前記予め定めるタイミングは、シリアルデータの各ビットの最も安定していると推定される周期の半周期近傍の時刻であることを特徴とする請求項1または2記載の受信機。   3. The receiver according to claim 1, wherein the predetermined timing is a time in the vicinity of a half cycle of a cycle in which each bit of serial data is estimated to be most stable.
JP2010031850A 2010-02-16 2010-02-16 Receiving machine Expired - Fee Related JP5390428B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010031850A JP5390428B2 (en) 2010-02-16 2010-02-16 Receiving machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010031850A JP5390428B2 (en) 2010-02-16 2010-02-16 Receiving machine

Publications (2)

Publication Number Publication Date
JP2011171859A true JP2011171859A (en) 2011-09-01
JP5390428B2 JP5390428B2 (en) 2014-01-15

Family

ID=44685540

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010031850A Expired - Fee Related JP5390428B2 (en) 2010-02-16 2010-02-16 Receiving machine

Country Status (1)

Country Link
JP (1) JP5390428B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6348936A (en) * 1986-08-19 1988-03-01 Mitsubishi Electric Corp Serial data reception circuit
JPH0258454A (en) * 1988-08-24 1990-02-27 Fujitsu Ltd Serial transfer system
JPH10164039A (en) * 1996-12-05 1998-06-19 Fujitsu Ltd Interface circuit
JP2002511694A (en) * 1998-04-16 2002-04-16 ジーイー・ファナック・オートメーション・ノース・アメリカ・インコーポレーテッド Method and apparatus for exchanging data
JP2003309542A (en) * 2002-04-17 2003-10-31 Hitachi Communication Technologies Ltd Interface converting apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6348936A (en) * 1986-08-19 1988-03-01 Mitsubishi Electric Corp Serial data reception circuit
JPH0258454A (en) * 1988-08-24 1990-02-27 Fujitsu Ltd Serial transfer system
JPH10164039A (en) * 1996-12-05 1998-06-19 Fujitsu Ltd Interface circuit
JP2002511694A (en) * 1998-04-16 2002-04-16 ジーイー・ファナック・オートメーション・ノース・アメリカ・インコーポレーテッド Method and apparatus for exchanging data
JP2003309542A (en) * 2002-04-17 2003-10-31 Hitachi Communication Technologies Ltd Interface converting apparatus

Also Published As

Publication number Publication date
JP5390428B2 (en) 2014-01-15

Similar Documents

Publication Publication Date Title
TWI410791B (en) Apparatus and method for transmitting and receiving data bits
US9791887B2 (en) Synchronization of a data signal
KR100868299B1 (en) Apparatus and method for transmitting data with clock information
JP2014530549A (en) Data transmission method, data reception method and apparatus
US20120079310A1 (en) Communication system, communication interface, and synchronization method
US10498527B2 (en) Communication system and transmission device
JP5365132B2 (en) Serial signal receiver, serial transmission system, serial transmission method, serial signal transmitter
CN108471308B (en) Semiconductor device and data synchronization method
JP2001352318A (en) Transmission circuit and its method, reception circuit and its method, and data communication equipment
KR20120083548A (en) Transmitting device, receiving device, and transmitting/receiving system
JP5390428B2 (en) Receiving machine
KR101272886B1 (en) apparatus and method for transmitting data with clock information
JP2003134098A (en) Serial receiver
JP2008193405A (en) Transmission system, transmission side apparatus, reception side apparatus, their operation method, and digital broadcasting system
JP5378765B2 (en) Data transfer system
JP2010041388A (en) Asynchronous serial data receiver
KR20000045560A (en) Automatic rs232/rs485 communication converter
JP2004214851A (en) Digital data transmission and reception circuit apparatus
JP2003174484A (en) Data transmission system, data transmitter-receiver therefor, and data transmission method
JP2012124824A (en) Data transmission device and data transfer device and data transfer method
JP5408753B2 (en) Radio communication system, exchange, and frame signal synchronization method between exchanges
JP2007288660A (en) Data communication system, data communication apparatus and method, and computer program
KR101092850B1 (en) Clock frequency offset compensation method and apparatus for dsrc systems
JP2005217968A (en) Asynchronous communication system
JP2019110449A (en) Data communication device and method for communication data

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20110325

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120404

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130426

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130507

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130627

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: 20131001

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131010

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees