JP2003273942A - Serial communication method - Google Patents
Serial communication methodInfo
- Publication number
- JP2003273942A JP2003273942A JP2002073080A JP2002073080A JP2003273942A JP 2003273942 A JP2003273942 A JP 2003273942A JP 2002073080 A JP2002073080 A JP 2002073080A JP 2002073080 A JP2002073080 A JP 2002073080A JP 2003273942 A JP2003273942 A JP 2003273942A
- Authority
- JP
- Japan
- Prior art keywords
- synchronization
- serial communication
- bit
- data
- trigger
- 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.)
- Withdrawn
Links
Landscapes
- Dc Digital Transmission (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Time-Division Multiplex Systems (AREA)
Abstract
(57)【要約】
【課題】 同期トリガを挿入して同期ずれを防止しなが
ら、クロックの発振周波数の精度に合わせた最適な転送
レートでの通信を実現して、転送レートの低下を避ける
ことが可能な1線式のシリアル通信方式の実現を課題と
する。
【解決手段】 マスター1とスレーブ2の間を1線のみ
のシリアル・インタフェース3で結合してデータを1ビ
ットずつ順次送信するシリアル通信方式で、同期をとる
ための同期トリガを送信し、この同期トリガと次の同期
トリガとの間に所定数n(>1)ビットのデータを送信
する。
PROBLEM TO BE SOLVED: To prevent a loss of synchronization by inserting a synchronization trigger and realize communication at an optimum transfer rate according to the accuracy of a clock oscillation frequency to avoid a decrease in the transfer rate. It is an object of the present invention to realize a one-wire serial communication system capable of performing the above. SOLUTION: In a serial communication system in which a master 1 and a slave 2 are connected by a serial interface 3 having only one line and data is sequentially transmitted one bit at a time, a synchronization trigger for synchronization is transmitted. A predetermined number of n (> 1) bits of data are transmitted between the trigger and the next synchronization trigger.
Description
【0001】[0001]
【発明の属する技術分野】本発明はシリアル通信方式に
関し、特に同期精度と通信速度との調整を図ったシリア
ル通信方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial communication system, and more particularly to a serial communication system in which synchronization accuracy and communication speed are adjusted.
【0002】[0002]
【従来の技術】マスターとスレーブ間を1線のみで結線
して1ビットずつ順次データを送って通信を行う1線式
のシリアル通信方式において、通信を正しく送受信する
ためには、同期が正しく取れていることが必要になる。
マスターあるいはスレーブの一方、またはその両者のク
ロックがCR発振方式などによる精度の悪いものである
ような場合、同期をとってから短時間しか互いのタイミ
ングの一致を保証することができないため、従来では例
えば、1ビットごとに同期トリガを付けるなどの方法で
同期維持を図っていた。図3に1ビットごとに同期トリ
ガを付けた場合のデータの波形を示す。しかしながら、
このような方法を採ると、同期トリガの分だけ転送レー
トが低くなり、高速のデータ転送に適さないという問題
が生まれる。2. Description of the Related Art In a one-wire serial communication system in which a master and a slave are connected by only one wire and data is sequentially transmitted bit by bit, communication is properly synchronized in order to properly transmit and receive communication. Need to be.
If the clocks of either the master or the slave or both of them are inaccurate due to the CR oscillation method, etc., it is only possible to guarantee the coincidence of the timings for a short time after the synchronization, so it has been the conventional practice. For example, synchronization is maintained by a method of attaching a synchronization trigger for each bit. FIG. 3 shows a waveform of data when a synchronization trigger is attached to each bit. However,
If such a method is adopted, the transfer rate is reduced by the amount of the synchronization trigger, which causes a problem that it is not suitable for high-speed data transfer.
【0003】また、従来から用いられている文字単位の
データ伝送方式として、1文字ごとに、文字データの前
と後にスタート・ビットとストップ・ビットを付けて文
字の区切りを示して伝送する調歩同期式の伝送方式があ
る。この場合、スタート・ビットとストップ・ビットの
間に文字データとパリッティ・ビットを含め11〜12
ビットが送られる。この方法では、1ビットごとに同期
トリガを付けた場合よりも転送レートを高くすることが
できるが、しかし、クロックの発振精度に合わした最適
のものとはいえない。As a character-based data transmission method that has been used conventionally, start-stop synchronization is performed in which a start bit and a stop bit are added to each character before and after the character data to indicate character delimiters. There is a formula transmission method. In this case, 11-12 including the character data and the parity bit between the start bit and the stop bit.
Bits are sent. With this method, the transfer rate can be made higher than in the case where a synchronous trigger is added for each bit, but it cannot be said to be the optimum one that matches the clock oscillation accuracy.
【0004】[0004]
【発明が解決しようとする課題】従来の1線式のシリア
ル通信方式において、クロックの発振周波数の精度が送
信側または受信側あるいは両方で悪い場合には同期ずれ
を起こし、同期エラーが発生するという問題があり、こ
れを避けるために1ビットごとに同期トリガを挿入する
方法があったが、そうすると同期トリガの分だけ転送レ
ートが低くなり、高速のデータ転送に適さないという問
題がある。本発明は比較的簡単な方法でこの問題を解決
して、同期トリガを挿入して同期ずれを防止しながら、
クロックの発振周波数の精度に合わせた最適な転送レー
トでの通信を実現して、転送レートの低下を避けること
が可能な1線式のシリアル通信方式の実現を課題とす
る。In the conventional one-wire serial communication system, when the accuracy of the oscillation frequency of the clock is bad on the transmitting side, the receiving side, or both, a synchronization shift occurs and a synchronization error occurs. There is a problem, and there has been a method of inserting a synchronization trigger for each bit in order to avoid this, but if this happens, the transfer rate will be reduced by the amount of the synchronization trigger, and there is a problem that it is not suitable for high-speed data transfer. The present invention solves this problem in a relatively simple way, inserting a sync trigger to prevent sync loss,
It is an object to realize a 1-wire serial communication system capable of avoiding a decrease in transfer rate by realizing communication at an optimum transfer rate according to the accuracy of the clock oscillation frequency.
【0005】[0005]
【課題を解決するための手段】上記課題を達成するた
め、本発明は、送受信間を1線のみで結線してデータを
1ビットずつ順次送信するシリアル通信方式において、
送受信間の同期をとるための同期トリガを送信し、この
同期トリガと次の同期トリガとの間に所定数n(>1)
ビットのデータを送信することを特徴とする。これによ
り、比較的に容易に、同期ずれを防止しながらクロック
の発振周波数の精度に合わせた最適な転送レートでの通
信を実現して、転送レートの低下を避けることが可能な
1線式のシリアル通信方式を実現することができる。In order to achieve the above object, the present invention provides a serial communication system in which transmission and reception are connected by only one line and data is sequentially transmitted bit by bit.
A synchronization trigger is transmitted to synchronize transmission and reception, and a predetermined number n (> 1) is set between this synchronization trigger and the next synchronization trigger.
It is characterized by transmitting bit data. As a result, it is relatively easy to realize the communication at the optimum transfer rate that matches the accuracy of the clock oscillation frequency while preventing the synchronization deviation, and to avoid the decrease of the transfer rate. A serial communication system can be realized.
【0006】[0006]
【発明の実施の形態】以下、本発明のシリアル通信方式
を添付図面を参照して詳細に説明する。DETAILED DESCRIPTION OF THE INVENTION The serial communication system of the present invention will be described in detail below with reference to the accompanying drawings.
【0007】図1は、本発明のシリアル通信方式が実施
されるマスター/スレーブシステムの構成図である。図
1において、符号1はマスター、符号2はスレーブ、符
号3はシリアル・インタフェース(通信線)である。通
信データはマスター1から1線式のシリアル・インタフ
ェース3を介してスレーブ2に送られる。FIG. 1 is a block diagram of a master / slave system in which the serial communication system of the present invention is implemented. In FIG. 1, reference numeral 1 is a master, reference numeral 2 is a slave, and reference numeral 3 is a serial interface (communication line). Communication data is sent from the master 1 to the slave 2 via the one-wire serial interface 3.
【0008】本発明の送信データの波形を図2に示す。
図2では1つの同期トリガと次の同期トリガの間に4ビ
ットのデータが送られている例である。もし、マスター
1またはスレーブ2の一方のクロック周波数が安定して
おり、他方のクロック周波数に誤差が多い場合、1つの
同期トリガと次の同期トリガの間に送られるビット数を
n、クロックの発振周期をtとし、誤差の多い側の発振
周期がt±Δtの範囲で変動するとすると、ビットずれ
なく正しく送受信するための条件は次のようになる。The waveform of the transmission data of the present invention is shown in FIG.
FIG. 2 shows an example in which 4-bit data is sent between one synchronization trigger and the next synchronization trigger. If one of the master 1 or slave 2 has a stable clock frequency and the other clock frequency has a large error, the number of bits sent between one synchronization trigger and the next synchronization trigger is n, and the clock oscillation is generated. Assuming that the period is t and the oscillation period on the side with many errors fluctuates within the range of t ± Δt, the conditions for correctly transmitting and receiving without bit shift are as follows.
【0009】 t>nΔt (1)[0009] t> nΔt (1)
【0010】またもし、マスター1またはスレーブ2の
両方のクロック周波数に誤差が多い場合、1つの同期ト
リガと次の同期トリガの間に送られるビット数をn、ク
ロックの発振周期をtとし、一方側の発振周期がt±Δ
t1の範囲で、他方側の発振周期がt±Δt2の範囲で
変動するとすると、ビットずれなく正しく送受信するた
めの条件は次のようになる。If there are many errors in the clock frequencies of both master 1 and slave 2, the number of bits sent between one synchronization trigger and the next synchronization trigger is n, and the clock oscillation period is t. Side oscillation cycle is t ± Δ
If the oscillation cycle of the other side fluctuates within the range of t1 within the range of t1 and t ± Δt2, the conditions for correct transmission / reception without bit shift are as follows.
【0011】 t>n(Δt1+Δt2) (2)[0011] t> n (Δt1 + Δt2) (2)
【0012】式(1)または式(2)から、同期トリガ
と同期トリガの間に挿入して送られるデータのビット数
nが決まる。見方を変えると、同期トリガはデータのn
ビットごとに挿入すれば良い。以上のようにすることに
より、同期ずれを防止しながら、クロックの発振周波数
の精度に合わせた最適な転送レートで通信を実現し、転
送レートの低下を避けることができる。From equation (1) or equation (2), the number of bits n of data inserted and sent between the synchronization triggers is determined. From a different point of view, the sync trigger is the data n
It should be inserted bit by bit. As described above, communication can be realized at an optimum transfer rate that matches the accuracy of the oscillation frequency of the clock while preventing the synchronization deviation, and a decrease in the transfer rate can be avoided.
【0013】[0013]
【発明の効果】以上説明したように本発明の請求項1の
発明は、送受信間を1線のみで結線してデータを1ビッ
トずつ順次送信するシリアル通信方式において、送受信
間の同期をとるための同期トリガを送信し、この同期ト
リガと次の同期トリガとの間に所定数n(>1)ビット
のデータを送信することを特徴とする。これにより、同
期トリガを挿入して同期ずれを防止しながら、転送レー
トの低下を避けることが可能な1線式のシリアル通信方
式を実現することができる。As described above, according to the invention of claim 1 of the present invention, the transmission and reception are synchronized in the serial communication system in which the transmission and reception are connected by only one line and data is sequentially transmitted bit by bit. Is transmitted, and data of a predetermined number n (> 1) bits is transmitted between this synchronization trigger and the next synchronization trigger. As a result, it is possible to realize a one-wire serial communication system that can prevent a decrease in transfer rate while inserting a synchronization trigger to prevent synchronization deviation.
【0014】本発明の請求項2の発明では、1つの同期
トリガと次の同期トリガとの間に挿入されるデータのビ
ット数nはクロック周期の誤差によって決定される。こ
れにより、クロックの発振周波数の精度に合わせた最適
な転送レートでの通信を実現して、転送レートの低下を
避けることが可能な1線式のシリアル通信方式を実現す
ることができる。According to the second aspect of the present invention, the number n of bits of data inserted between one synchronization trigger and the next synchronization trigger is determined by the error of the clock cycle. As a result, it is possible to realize communication at an optimum transfer rate that matches the accuracy of the clock oscillation frequency, and to realize a one-wire serial communication method that can avoid a decrease in transfer rate.
【図1】 本発明のシリアル通信方式が実施されるマス
ター/スレーブシステムの構成図。FIG. 1 is a configuration diagram of a master / slave system in which a serial communication system of the present invention is implemented.
【図2】 本発明の送信データの波形図。FIG. 2 is a waveform diagram of transmission data according to the present invention.
【図3】 従来の送信データの波形図。FIG. 3 is a waveform diagram of conventional transmission data.
1 マスター 2 スレーブ 3 シリアル・インタフェース(通信線) 1 master 2 slaves 3 Serial interface (communication line)
Claims (2)
1ビットずつ順次送信するシリアル通信方式において、 送受信間の同期をとるための同期トリガを送信し、この
同期トリガと次の同期トリガとの間に所定数n(>1)
ビットのデータを送信することを特徴とするシリアル通
信方式。1. In a serial communication system in which transmission and reception are connected by only one line and data is sequentially transmitted bit by bit, a synchronization trigger for synchronizing the transmission and reception is transmitted, and this synchronization trigger and the next synchronization trigger are transmitted. A predetermined number n (> 1) between
A serial communication method characterized by transmitting bit data.
って決定されることを特徴とする請求項1に記載のシリ
アル通信方式。2. The serial communication system according to claim 1, wherein the predetermined number n is determined by an error of a clock cycle.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002073080A JP2003273942A (en) | 2002-03-15 | 2002-03-15 | Serial communication method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002073080A JP2003273942A (en) | 2002-03-15 | 2002-03-15 | Serial communication method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2003273942A true JP2003273942A (en) | 2003-09-26 |
Family
ID=29202906
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002073080A Withdrawn JP2003273942A (en) | 2002-03-15 | 2002-03-15 | Serial communication method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2003273942A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100817031B1 (en) | 2006-08-25 | 2008-03-26 | 주식회사 케이이씨 | Single wire serial communication module |
| US10897342B2 (en) | 2017-03-22 | 2021-01-19 | Rohm Co., Ltd. | Single-line serial data transmission circuit and single-line serial data transmission method |
-
2002
- 2002-03-15 JP JP2002073080A patent/JP2003273942A/en not_active Withdrawn
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100817031B1 (en) | 2006-08-25 | 2008-03-26 | 주식회사 케이이씨 | Single wire serial communication module |
| US10897342B2 (en) | 2017-03-22 | 2021-01-19 | Rohm Co., Ltd. | Single-line serial data transmission circuit and single-line serial data transmission method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102202386B (en) | Clock synchronization method, device and system | |
| CN105027489B (en) | Precision clock protocol synchronization method and node | |
| EP2057765A1 (en) | Coordinated timing network configuration parameter update procedure | |
| US20070116058A1 (en) | Network node | |
| US20100197228A1 (en) | Clock synchronization method for a short range wireless communication network | |
| CN108738127A (en) | Radio remote unit, baseband processing unit, distributed base station and synchronization method thereof | |
| JP2001326626A (en) | Methods, modules and program modules for synchronization | |
| CN101399653B (en) | Time clock synchronization implementation method | |
| JP4404967B2 (en) | Air frame synchronization | |
| JP2003273942A (en) | Serial communication method | |
| CN102983959B (en) | Method for realizing one-step mode and two-step mode for PTP (precision time synchronization protocol) in a plurality of MAC | |
| CN109120469A (en) | A kind of line transmission delay calculating method and device | |
| WO2016000324A1 (en) | Method and apparatus for implementing time synchronization | |
| KR100597436B1 (en) | Apparatus and Method for Synchronizing Cycle Time in Wireless 1394 System | |
| JP2001202156A (en) | Time synchronizer | |
| CN112019288B (en) | Time synchronization method, service single board and network equipment | |
| CN111181677B (en) | Time synchronization method, network device and storage medium | |
| EP3876442A2 (en) | Distributed network time synchronization | |
| JP6845522B2 (en) | Information communication system, information communication device | |
| CN102546144A (en) | Method and device for synchronizing information | |
| JP4671867B2 (en) | Railway signal system transmission circuit | |
| JP2871364B2 (en) | Modem transmission synchronization apparatus and method | |
| JP2634802B2 (en) | Clock synchronous data transmission device | |
| CN101022447A (en) | Digital signal multiplier speed transmitting method | |
| WO2013123784A1 (en) | Method and device for maintaining synchronization |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20050607 |