JPS63276339A - Data transmission system - Google Patents

Data transmission system

Info

Publication number
JPS63276339A
JPS63276339A JP62111046A JP11104687A JPS63276339A JP S63276339 A JPS63276339 A JP S63276339A JP 62111046 A JP62111046 A JP 62111046A JP 11104687 A JP11104687 A JP 11104687A JP S63276339 A JPS63276339 A JP S63276339A
Authority
JP
Japan
Prior art keywords
circuit
edge
error
bit synchronization
signal
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
JP62111046A
Other languages
Japanese (ja)
Other versions
JP2681922B2 (en
Inventor
Hiroyuki Imai
裕之 今井
Yoshio Horiike
良雄 堀池
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP62111046A priority Critical patent/JP2681922B2/en
Priority to US07/119,068 priority patent/US4868854A/en
Priority to DE3750159T priority patent/DE3750159T2/en
Priority to EP87309936A priority patent/EP0271218B1/en
Priority to CA000551654A priority patent/CA1286381C/en
Publication of JPS63276339A publication Critical patent/JPS63276339A/en
Application granted granted Critical
Publication of JP2681922B2 publication Critical patent/JP2681922B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To contrive the miniaturization of an equipment by using a microcomputer so as to realize the establishment of bit synchronization by means of the software. CONSTITUTION:An arithmetic circuit 7 in the initial state makes a counted value latched by the initial edge detection signal 11 into an ideal bit synchronizing pattern to form a reference point of an edge data. Then the arithmetic circuit 7, in response to an edge detection signal 11, obtains an error between the actual input edge data and the ideal bit synchronizing pattern edge data and checks whether or not the obtained error is within the permissible range of the error of phase synchronization at the same time. When the error is within the permissible range, the arithmetic circuit 7 counts the number of input edges and obtains the error by a prescribed counted value and corrects the ideal edge data by taking the mean value as the difference between the reference edge and the actual input edge to form the reference edge.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ビット同期回路を必要とするデータ伝送シス
テムに関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to data transmission systems requiring bit synchronization circuits.

従来の技術 近年、データ伝送システムが盛んに開発されている。Conventional technology In recent years, data transmission systems have been actively developed.

以下、図面を参照しながら上述した従来のデータ伝送シ
ステムに用いられているビット同期の確立を司るPLL
 (位相同期ループ)回路の一例について説明する。第
3図は、従来のPLL回路のブロック図を示すものであ
る。同図において、21は位相比較器、22は低域フィ
ルタ、23は電圧制御発振器、24は入力信号、25は
出力信号を示す。
Hereinafter, with reference to the drawings, the PLL that controls the establishment of bit synchronization used in the conventional data transmission system described above will be explained.
An example of a (phase-locked loop) circuit will be described. FIG. 3 shows a block diagram of a conventional PLL circuit. In the figure, 21 is a phase comparator, 22 is a low-pass filter, 23 is a voltage controlled oscillator, 24 is an input signal, and 25 is an output signal.

以上のように構成された従来のPLL回路について、以
下その動作を説明する。
The operation of the conventional PLL circuit configured as described above will be described below.

位相比較器21は、入力信号24と電圧制御発振器23
からの出力信号25間の位相差を常に比較する。そして
この位相差によって生じる位相比較器21の電圧は低域
フィルタ22で平滑され、電圧制御発振器230制御電
圧として働き、電圧制御発振器23の周波数を一時的に
可変にして出力信号25の位相を入力信号24に一致さ
せる作用、すなわち自動位相制御の役目を果すものであ
る。
The phase comparator 21 has an input signal 24 and a voltage controlled oscillator 23.
The phase difference between the output signals 25 from the two is constantly compared. The voltage of the phase comparator 21 caused by this phase difference is smoothed by the low-pass filter 22 and acts as a control voltage for the voltage controlled oscillator 230, temporarily varying the frequency of the voltage controlled oscillator 23 and inputting the phase of the output signal 25. This serves to match the signal 24, that is, to perform automatic phase control.

発明が解決しようとする問題点 しかしながら、上記のようにハードウェアで構成した場
合には、システムの規模が大きくなり、携帯用機器に適
用するには不便であるという問題点を有していた。
Problems to be Solved by the Invention However, when the system is constructed using hardware as described above, the scale of the system becomes large and there is a problem that it is inconvenient to apply it to a portable device.

本発明は、上記問題点を鑑み、PLL回路の機能つまり
ビット同期の確立をマイコンを用いてソフトウェアで実
現することで、端末機器の小型化を提供するものである
In view of the above problems, the present invention provides miniaturization of terminal equipment by realizing the function of the PLL circuit, that is, establishment of bit synchronization, using software using a microcomputer.

問題点を解決するための手段 上記問題点を解決するために、本発明のビット同期回路
は、送受信で同一周波数を発生するクロック回路と、ク
ロック信号により時間をカウントするカウンタ回路と、
入力波形のエツジを検出してエツジ検出信号を発生させ
るエツジ検出回路と、エツジ検出信号によりカウンタ回
路のカウンタ値をラッチするラッチ回路と、理想的なビ
ット同期パターンを発生させ、理想的なビット同期パタ
ーンと入力波形のエツジとのカウンタ値の誤差を求め、
ある規定エツジ数で平均誤差を求め、平均誤差により理
想的なビット同期パターンを修正してデータサンプリン
グ点を求める演算回路と、演算回路で求めたデータサン
プリング点(カウンタ値)とカウンタ回路のカウンタ値
を比較し、一致した場合に入力信号をサンプリングする
ためのサンプリング信号を発生させる比較回路という構
成を備えたものである。
Means for Solving the Problems In order to solve the above problems, the bit synchronization circuit of the present invention includes a clock circuit that generates the same frequency for transmission and reception, a counter circuit that counts time using a clock signal,
An edge detection circuit detects the edges of the input waveform and generates an edge detection signal, a latch circuit uses the edge detection signal to latch the counter value of the counter circuit, and generates an ideal bit synchronization pattern to achieve ideal bit synchronization. Find the error in the counter value between the pattern and the edge of the input waveform,
An arithmetic circuit that calculates the average error with a certain specified number of edges, corrects the ideal bit synchronization pattern using the average error, and calculates the data sampling point, and the data sampling point (counter value) determined by the arithmetic circuit and the counter value of the counter circuit. The device is equipped with a comparator circuit that compares the input signals and generates a sampling signal for sampling the input signal when they match.

作用 本発明は上記した構成によって、PLL回路の’111
Gをマイコンのソフトウェアで実現できるので、機器の
小型化を実現することができる。
Operation The present invention has the above-described configuration, and the PLL circuit '111
Since G can be realized using microcomputer software, it is possible to downsize the device.

実施例 以下、本発明の一実施例であるデータ伝送システムのビ
ット同期回路について、図面を参照しながら説明する。
Embodiment Hereinafter, a bit synchronization circuit for a data transmission system which is an embodiment of the present invention will be described with reference to the drawings.

第1図は、本発明の一実施例におけるビット同期回路の
ブロック図である。第2図は、ビット同期の演算方法を
示すものである。第1図において、1はエツジ検出回路
、2はクロック回路、3はカウンタ回路、4はランチ回
路、7は演算回路、9は比較回路、10は入力信号、1
1はエツジ検出信号、12はサンプリング信号である。
FIG. 1 is a block diagram of a bit synchronization circuit in one embodiment of the present invention. FIG. 2 shows a calculation method for bit synchronization. In FIG. 1, 1 is an edge detection circuit, 2 is a clock circuit, 3 is a counter circuit, 4 is a launch circuit, 7 is an arithmetic circuit, 9 is a comparison circuit, 10 is an input signal, 1
1 is an edge detection signal, and 12 is a sampling signal.

以上のように構成されたビット同期回路について、以下
、第1図および第2図を用いてその動作を説明する。
The operation of the bit synchronization circuit configured as described above will be explained below with reference to FIGS. 1 and 2.

まず本実施例において、送信側の機器はデータを送信す
るまえにあらかじめ決められたパルス幅のビット同期パ
ターンを送出するものとする。しかし、伝送系において
様々な雑音の影響をうけ、ジッタが現れる(第2図入力
波形a)。
First, in this embodiment, it is assumed that the transmitting device sends out a bit synchronization pattern with a predetermined pulse width before transmitting data. However, due to the influence of various noises in the transmission system, jitter appears (input waveform a in Figure 2).

クロック回路2は送受信で同一周波数を発生させ、カウ
ンタ回路ではこの信号によりカウントを行う。
The clock circuit 2 generates the same frequency for transmission and reception, and the counter circuit performs counting using this signal.

エツジ検出回路1は入力信号10にエツジを検出すると
エツジ検出信号11を発生させる。このエツジ検出信号
11を受信すると、ランチ回路4はカウンタ回路3から
のカランタイ直をエツジデータとしてラッチする。
When an edge detection circuit 1 detects an edge in an input signal 10, it generates an edge detection signal 11. Upon receiving this edge detection signal 11, the launch circuit 4 latches the counter circuit 3 as edge data.

初期状態において演算回路7は、最初のエツジ検出信号
でラッチされたカウンタ値を理想的なビット同期パター
ンをエツジデータの基準点とする。
In the initial state, the arithmetic circuit 7 uses the counter value latched by the first edge detection signal as the ideal bit synchronization pattern as the reference point of the edge data.

t’ O−t。t' O-t.

ただし t′。:理想的なビット同期パターンのエツジデータの
基準点 to  :実際の入力エツジデータ(カウンタ値) 以後、演算回路7はエツジ検出信号に応じて、理想的な
ビット同期パターンのエツジデータ(第2図 修正前基
準波形b)と実際の入力エツジデータ(第2図 入力波
形a)の誤差を求める。
However, t'. : Reference point to of the edge data of the ideal bit synchronization pattern : Actual input edge data (counter value) After that, the arithmetic circuit 7 uses the edge data of the ideal bit synchronization pattern (Fig. 2, reference before correction) according to the edge detection signal. Find the error between waveform b) and the actual input edge data (input waveform a in Figure 2).

Δt10t″ ・−t・ ただし t’、=t’、    +T 1−I       P i=l 〜a t゛、:理想的なビット同期パターンのエツジデータ t(:実際の入力エツジデータ(カウンタ値) T2 :ビット同期のパルス幅 そして同時に、求めた誤差が位相同期の誤差の許容範囲
に入っているかどうか調べる。
Δt10t″ ・−t・ However, t′,=t′, +T 1−I P i=l ~a t゛,: Edge data t of ideal bit synchronization pattern (: Actual input edge data (counter value) T2: Bit Check the synchronization pulse width and at the same time check whether the determined error is within the allowable phase synchronization error range.

−g<Δt、 <g ただし i−1〜a g:各エツジの誤差の許容値 (位相同期の誤差の許容値) 各エツジの誤差が位相同期の誤差の許容範囲に入ってい
なければ、演算回路7は初期状態に戻り、ビット同期を
最初から取り直す。
-g<Δt, <g where i-1 to a g: Tolerable value of error of each edge (tolerable value of error of phase synchronization) If the error of each edge is not within the tolerance of error of phase synchronization, the calculation The circuit 7 returns to its initial state and re-establishes bit synchronization from the beginning.

各エツジの誤差が位相同期の誤差の許容範囲に入ってい
れば、入力エツジの数をカウントして、次に入力される
エツジを待つ。
If the error of each edge is within the permissible phase synchronization error range, the number of input edges is counted and the next input edge is waited for.

以上の演算を人力エツジの数がある規定値(ここではa
としている)になるまで繰り返す、入力エツジの数があ
る規定値になると、以上の演算を終了して、次に求めた
各エツジの誤差の平均を求める。
The above calculations are performed at a specified value (here, a) with the number of human edges.
When the number of input edges reaches a certain predetermined value, the above calculation is completed and the average error of each edge is calculated.

T−T+Δt1 Δt−T/(a−1) ただし i−1〜a T:各エツジの誤差の合計(初期は0)この平均誤差Δ
tが、この基準エツジと実際の人力エツジの差であるの
で、演算回路7では最新の理想的なエツジデータt゛を
平均誤差分Δtだけ移動して基準エツジとする(第2図
 修正後基準波形c)、演算回路7ではこの内部基準エ
ツジt゛をもとにして、データサンプリング点を求める
T-T+Δt1 Δt-T/(a-1) where i-1~a T: Total error of each edge (initially 0) This average error Δ
Since t is the difference between this reference edge and the actual human-powered edge, the arithmetic circuit 7 moves the latest ideal edge data t' by the average error Δt and sets it as the reference edge (Fig. 2 Reference waveform after correction) c) The arithmetic circuit 7 determines data sampling points based on this internal reference edge t'.

以下、演算回路7では、次のサンプリング点のカウンタ
値を求め、その値を比較回路9に書き込む、比較回路9
では、このカウンタ値とカウンタ回路3からのカウンタ
値を比較し、一致すればサンプリング信号12 (第2
図 サンプリング信号d)を発生させる。
Hereinafter, the arithmetic circuit 7 calculates the counter value of the next sampling point and writes that value to the comparison circuit 9.
Now, compare this counter value with the counter value from the counter circuit 3, and if they match, the sampling signal 12 (second
Fig. Generate sampling signal d).

以上のように本実施例は、従来のハードウェアによるP
LL回路のようにサンプリング信号を発生させるだけで
あるが、サンプリング信号により入力データを演算回路
に取り込むことにより、データに関して誤り検出、訂正
等を行うことができ、また他の通信制御を行っているマ
イコンと一体化することにより一層の小型化、低価格化
が実現できる。
As described above, in this embodiment, P
Like the LL circuit, it only generates a sampling signal, but by taking input data into an arithmetic circuit using the sampling signal, it can perform error detection and correction on the data, and also performs other communication control. By integrating it with a microcontroller, further downsizing and cost reduction can be achieved.

なお本実施例における構成はシングルチップマイコンに
より1チツプで実現できる。
Note that the configuration in this embodiment can be realized with a single chip using a single-chip microcomputer.

発明の効果 以上のように本実施例によれば、送受信で同一周波数を
発生する内部カウンタ回路と、クロック信号により時間
をカウントするカウンタ回路と、入力波形のエツジを検
出してエツジ検出信号を発生させるエツジ検出回路と、
エツジ検出信号によりカウンタ回路のカウンタ値をラッ
チするラッチ回路と、理想的なビット同期パターンを発
生させ、理想的なビット同期パターンと入力波形のエツ
ジとのカウンタ値の誤差を求め、ある規定エツジ数で平
均誤差を求め、平均誤差により理想的なビット同期パタ
ーンを修正してデータサンプリング点を求める演算回路
と、演算回路で求めたデータサンプリング点(カウンタ
値)とカウンタ回路のカウンタ値を比較して、一致した
ら入力信号をサンプリングするためのサンプリング信号
を発生させる比較回路を設けることにより、ビット同期
機能をマイコンのソフトウェアで実現することができ、
他の通信制御用のマイコンと一体化することにより機器
の小型化、低価格化を実現することができる。
Effects of the Invention As described above, according to this embodiment, there is an internal counter circuit that generates the same frequency for transmission and reception, a counter circuit that counts time based on a clock signal, and an edge detection signal that is generated by detecting edges of an input waveform. an edge detection circuit that causes
A latch circuit that latches the counter value of the counter circuit using an edge detection signal, generates an ideal bit synchronization pattern, calculates the error in the counter value between the ideal bit synchronization pattern and the edges of the input waveform, and calculates the error of the counter value between the ideal bit synchronization pattern and the edges of the input waveform. An arithmetic circuit calculates the average error, corrects the ideal bit synchronization pattern using the average error, and calculates the data sampling point.The data sampling point (counter value) obtained by the arithmetic circuit is compared with the counter value of the counter circuit. By providing a comparison circuit that generates a sampling signal to sample the input signal when there is a match, the bit synchronization function can be realized using microcontroller software.
By integrating with other communication control microcontrollers, devices can be made smaller and lower in price.

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

第1図は、本発明の一実施例におけるビット同期回路の
ブロック図、第2図はビット同期確立の演算方法を説明
する説明図、第3図は従来のPLL回路のブロック図で
ある。 1・・・・・・エツジ検出回路、2・・・・・・クロッ
ク回路、3・・・・・・カウンタ回路、4・・・・・・
ラッチ回路、7・・・・・・演算回路、9・・・・・・
比較回路、10・・・・・・入力信号、11・・・・・
・エツジ検出信号、12・・・・・・サンプリング信号
。 代理人の氏名 弁理士 中尾敏男 はか1名第1図 第3図
FIG. 1 is a block diagram of a bit synchronization circuit according to an embodiment of the present invention, FIG. 2 is an explanatory diagram illustrating a calculation method for establishing bit synchronization, and FIG. 3 is a block diagram of a conventional PLL circuit. 1... Edge detection circuit, 2... Clock circuit, 3... Counter circuit, 4...
Latch circuit, 7... Arithmetic circuit, 9...
Comparison circuit, 10... Input signal, 11...
・Edge detection signal, 12...Sampling signal. Name of agent: Patent attorney Toshio Nakao (1 person) Figure 1 Figure 3

Claims (1)

【特許請求の範囲】[Claims] 送受信装置で同一周波数を発生するクロック回路と、前
記クロック信号により時間をカウントするカウンタ回路
と、入力波形のエッジを検出してエッジ検出信号を発生
させるエッジ検出回路と、前記エッジ検出信号により前
記カウンタ回路のカウンタ値をラッチするラッチ回路と
、理想的なビット同期パターンを発生させ、前記理想的
なビット同期パターンと前記入力波形のエッジとのカウ
ンタ値の誤差を求め、ある規定エッジ数で平均誤差を求
め、前記平均誤差により前記理想的なビット同期パター
ンを修正してサンプリング点を求める演算回路と、前記
演算回路で求めたデータサンプリング点(カウンタ値)
と前記カウンタ回路のカウンタ値を比較し、一致した場
合入力信号をサンプリングするためのサンプリング信号
を発生させる比較回路とを備えたことを特徴とするデー
タ伝送システム。
a clock circuit that generates the same frequency in the transmitter/receiver; a counter circuit that counts time using the clock signal; an edge detection circuit that detects edges of an input waveform and generates an edge detection signal; A latch circuit that latches the counter value of the circuit, generates an ideal bit synchronization pattern, calculates the error in the counter value between the ideal bit synchronization pattern and the edge of the input waveform, and calculates the average error with a certain specified number of edges. an arithmetic circuit that calculates sampling points by correcting the ideal bit synchronization pattern using the average error; and a data sampling point (counter value) obtained by the arithmetic circuit.
and a comparison circuit that compares the counter values of the counter circuit and generates a sampling signal for sampling an input signal when they match.
JP62111046A 1986-11-11 1987-05-07 Bit synchronizer Expired - Lifetime JP2681922B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP62111046A JP2681922B2 (en) 1987-05-07 1987-05-07 Bit synchronizer
US07/119,068 US4868854A (en) 1986-11-11 1987-11-10 Establishment of bit synchronization in a data transmitting/receiving system
DE3750159T DE3750159T2 (en) 1986-11-11 1987-11-10 Bit synchronization setting in a data transmission / reception system.
EP87309936A EP0271218B1 (en) 1986-11-11 1987-11-10 Establishment of bit synchronization in a data transmitting/receiving system
CA000551654A CA1286381C (en) 1986-11-11 1987-11-12 Establishment of bit synchronization in a data transmitting/receiving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62111046A JP2681922B2 (en) 1987-05-07 1987-05-07 Bit synchronizer

Publications (2)

Publication Number Publication Date
JPS63276339A true JPS63276339A (en) 1988-11-14
JP2681922B2 JP2681922B2 (en) 1997-11-26

Family

ID=14551036

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62111046A Expired - Lifetime JP2681922B2 (en) 1986-11-11 1987-05-07 Bit synchronizer

Country Status (1)

Country Link
JP (1) JP2681922B2 (en)

Also Published As

Publication number Publication date
JP2681922B2 (en) 1997-11-26

Similar Documents

Publication Publication Date Title
JPH01161936A (en) Clock recovery apparatus using digital pll
JPH03142553A (en) Constant propagation delay generator
US4242639A (en) Digital phase lock circuit
US4639680A (en) Digital phase and frequency detector
JPS6340370B2 (en)
JPS63200618A (en) Phase synchronizing loop circuit
US7082178B2 (en) Lock detector circuit for dejitter phase lock loop (PLL)
JPH05243988A (en) Synchronization detection device for digital phase locked loop
US9509491B2 (en) Data reception apparatus and method of determining identical-value bit length in received bit string
US11424746B1 (en) Reference-less clock and data recovery device and method
JPS63276339A (en) Data transmission system
JP3132043B2 (en) Clock extraction circuit
CA1286381C (en) Establishment of bit synchronization in a data transmitting/receiving system
JPS63164648A (en) Data transmission system
JPS63121339A (en) Data transmission system
JPH03205942A (en) Terminal equipment connected to communication network
US11757610B1 (en) Low phase noise clock recovery over a data connection
Nienhaus et al. A digital phase lock loop for VLSI telecommunication applications
JPH0616619B2 (en) Out-of-sync detection circuit
JPH10290218A (en) Receiver
JPS58129864A (en) Demodulator for phase modulated signal
JPH04150338A (en) Clock extraction circuit
JPH0630497B2 (en) Terminator
JPS62285520A (en) Dpll no input signal compensation circuit
JPS62266937A (en) Pcm signal synchronizing method

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070808

Year of fee payment: 10