JP2004328174A - Code decision apparatus, method thereof, and program - Google Patents

Code decision apparatus, method thereof, and program Download PDF

Info

Publication number
JP2004328174A
JP2004328174A JP2003117737A JP2003117737A JP2004328174A JP 2004328174 A JP2004328174 A JP 2004328174A JP 2003117737 A JP2003117737 A JP 2003117737A JP 2003117737 A JP2003117737 A JP 2003117737A JP 2004328174 A JP2004328174 A JP 2004328174A
Authority
JP
Japan
Prior art keywords
data
sampling
bit period
determination
code
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
JP2003117737A
Other languages
Japanese (ja)
Other versions
JP4320414B2 (en
Inventor
Takeshi Negishi
猛 根岸
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2003117737A priority Critical patent/JP4320414B2/en
Publication of JP2004328174A publication Critical patent/JP2004328174A/en
Application granted granted Critical
Publication of JP4320414B2 publication Critical patent/JP4320414B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Dc Digital Transmission (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a code decision apparatus, a method thereof, and a program capable of extending a decision margin of a duty ratio to the utmost even when the duty ratio is greatly fluctuated in the case of deciding split phase coded data. <P>SOLUTION: The code decision apparatus carries out multi-point sampling for a bit period, respectively counts the number of prescribed logical values (e.g., '1') of sampling data for a first half and a second half of the bit period, takes majority decision to the counts of the first and second halves, and decides the data for the bit period on the basis of a result of the majority decision. Thus, even when the duty ratio is greatly fluctuated, the data can very simply and accurately be decided and the data decision margin can be extended. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は符号判定装置及びその方法並びにプログラムに関し、特にデジタル信号の1ビット期間の前半部と後半部とで論理値が変化するよう符号化されたスプリットフェーズ符号の符号判定方式に関するものである。
【0002】
【従来の技術】
スプリットフェーズ符号による符号化データは、図5にその例を示す如く、1ビットの信号を伝送するビット期間を、前半部と後半部の2つの期間に分割し、この2つの期間に互いに異なる論理値の符号を送信し、この2つの期間の符号の組合せにより1つの2値データを識別する信号である。図5の例では、元のデータである被符号化データ(復号化データ)が“1”の場合には、ビット期間の前半部が“1”で、後半部が“0”であり、また元のデータが“0”の場合には、ビット期間の前半部が“0”で、後半部が“1”である。
【0003】
この様に符号化されたスプリットフェーズ信号は、ビット期間の中央に“1”→“0”、または“0”→“1”の変化点(エッジ)が必らず存在することになり、クロック成分の連続再生が可能となると共に、信号の直流分除去にも有効な符号化データである。
【0004】
この様なスプリットフェーズ信号の復号方式の従来例としては、図6に示すように、スプリットフェーズ信号のビット期間の中央にあるデータ変化点(エッジ)を検出して、このエッジから3/4ビット(例えば、32倍のクロックでサンプリングした場合、24クロック)後のタイミングで、“0”か“1”かを判定するものがある。すなわち、24クロック目のサンプリング点(1サンプリング点)のみで、データ判定を行うようになっている。
【0005】
図7はこの場合の符号判定装置の概略ブロック図であり、符号化データはエッジ検出部11及び判定部13へ入力されている。エッジ検出部11においては、入力された符号化データの、例えばデータ先頭のプリアンブル区間の“10”のパターンの繰返し(既知データパターン)のなかで、各ビットの中央にあるエッジが検出され、以降はこのエッジ検出タイミングに対応して各ビット期間毎にエッジ検出タイミングパルスが生成される。
【0006】
このエッジで検出タイミングパルスが判定パルス生成部12へ入力され、この判定パルス生成部12において、このパルスを基準にして各ビットの前半部中央、すなわち3/4ビット後のタイミングとなる判定パルスが生成される。判定部13においては、この判定パルスのタイミングにより入力された符号化データの論理値の判定が行われ、この判定結果に従って復号化データが出力されるのである。
【0007】
復号化方式の他の例として、特許文献1や2に開示の技術がある。特許文献1においては、ノイズ等による波形歪みの影響をなくすことを目的として、1タイムスロット(1ビット期間に相当)の時間を周期とする再生クロックと入力スプリットフェーズ信号との論理積したデータについて、1タイムスロット内の多点サンプリングしたものの計数値を所定閾値と比較し、所定値を越えると一の論理値であると判定し、所定値以下であれば、他の論理値であると判定する技術が示されている。
【0008】
特許文献2においては、ビット期間の前半部と後半部とのうち、多点サンプリングの論理“1”と論理“0”との数の差が明確な方の区間の論理を入力ビットの論理として採用する技術が示されている。例えば、前半部の論理“1”または“0”の数と、後半部の論理“0”または“1”の数の合計値を求め、所定値と比較して判定するものであり、本例でも、ノイズ等による波形歪みの影響をなくすことを目的としている。
【0009】
【特許文献1】
特開昭59−139571号公報(第2、3頁、第2〜4図)
【0010】
【特許文献2】
特開平4−297166号公報(第2〜4頁、第1〜5図)
【0011】
【発明が解決しようとする課題】
図6,7にて説明した従来技術においては、伝送路の雑音、レベル変動、送受信機や変復調器の不完全性等によって、受信データに歪が生じた場合、特にデータの“1”と“0”のデューティ比が大きく変化した場合に、判定タイミングが1ポイントのみであるために、正しく判定されないことがある。図8にその一例を示しており、入力データ(符号化データ)が雑音等による歪によって実線で示す波形から一点鎖線で示すように、デューティ比が大きく変化すると、本来“0”であるところを“1”と誤ってしまうという欠点がある。
【0012】
特許文献1及び2においては、判定タイミングが1ポイントのみの上述の欠点は解消されるものの、多点サンプリング値の計数結果と所定閾値との比較によりデータ判定を行う方式であるために、その閾値の定め方によっては、デューティ比が大きく変化した場合に対して誤判定をしてしまうこともあり、この閾値の選定が困難であるという欠点が生ずる。
【0013】
本発明の目的は、デジタルデータ伝送路での雑音、レベル変動、送受信機や変復調器の不完全性に起因するデューティ比の劣化に対して、その判定マージンをできるだけ拡大可能とした符号の判定装置及びその方法並びにプログラムを提供することである。
【0014】
本発明の他の目的は、選定が困難なデータ判定のための閾値を用いる必要のない符号判定装置及びその方法並びにプログラムを提供することである。
【0015】
【発明が解決しようとする課題】
本発明による符号判定装置は、デジタル信号の1ビット期間の前半部と後半部とで論理値が変化するよう符号化された符号化データの符号判定装置であって、前記符号化データの各ビット期間の多点サンプリングをなすサンプリング手段と、前記サンプリング手段による前記前半部及び後半部のサンプリングデータの所定論理値をそれぞれ計数する計数手段と、これ等前半部と後半部の計数値の多数決をとってこの多数決結果に応じて前記ビット期間のデータ判定をなす判定手段とを含むことを特徴とする。
【0016】
本発明による符号判定方法は、デジタル信号の1ビット期間の前半部と後半部とで論理値が変化するよう符号化された符号化データの符号判定方法であって、前記符号化データの各ビット期間の多点サンプリングをなすサンプリングステップと、前記サンプリングステップによる前記前半部及び後半部のサンプリングデータの所定論理値をそれぞれ計数する計数ステップと、これ等前半部と後半部の計数値の多数決をとってこの多数決結果に応じて前記ビット期間のデータ判定をなす判定ステップとを含むことを特徴とする。
【0017】
本発明によるプログラムは、デジタル信号の1ビット期間の前半部と後半部とで論理値が変化するよう符号化された符号化データの符号判定方法をコンピュータに実行させるためのプログラムであって、前記符号化データの各ビット期間の多点サンプリングをなすサンプリングステップと、前記サンプリングステップによる前記前半部及び後半部のサンプリングデータの所定論理値をそれぞれ計数する計数ステップと、これ等前半部と後半部の計数値の多数決をとってこの多数決結果に応じて前記ビット期間のデータ判定をなす判定ステップとを含むことを特徴とする。
【0018】
本発明の作用を述べる。ビット期間の多点サンプリングを行い、ビット期間の前半部及び後半部のサンプリングデータの所定論理値(例えば“1”)の数をそれぞれ計数し、これ等前半部及び後半部の計数値の多数決をとり、この多数決結果に基づいて当該ビット期間のデータ判定をなすものである。こうすることにより、設定が困難な閾値を用いることなく、デューティ比が大きく変動しても、極めて簡単にかつ正確にデータ判定ができ、データ判定マージンが拡大可能となる。
【0019】
【発明の実施の形態】
以下に、図面を参照しつつ本発明につき詳細に説明する。実施例の説明に先立って、本発明の理解を容易とするために、先ず、図2を参照して本発明の原理を説明する。図2に示すように、先ず、復号化すべきスプリットフェーズ符号のビット期間の中央にあるデータ変化点(エッジ)が検出される。そして、ビット期間のデータが多点サンプリングされているものとすると、当該エッジ検出タイミングから1/2ビット期間(後半部:例えば、32倍のクロックでサンプリングすると、16クロック相当期間)分、サンプリング値の“1”の数が計数される。そして、前半部の1/2ビット期間分、サンプリング値の“1”の数が計数される。
【0020】
こうして得られたエッジを境にした前半部と後半部の計数値の多数決がとられ、前半部の方に“1”が多ければ、そのビット期間のデータは“1”であり、逆であれば、“0”であると判定されるようになっている。なお、エッジの検出方法としては、データの先頭のプリアンブルの“10”の繰り返しパターン(既知のパターン)を利用して行われ、その後はこの検出されたエッジタイミングに基づいて各ビット期間のエッジ検出タイミング用のパルスが生成される。
【0021】
図1は上記原理に従って本発明を実現するための一実施例の機能ブロック図である。図1を参照すると、入力された符号化データはシフトレジスタ1とエッジ検出部2へ供給される。シフトレジスタ1は1ビット期間のデータを、例えば32倍のクロックで取込むものであり、32クロック分のサンプリングデータを取込むことになる。
【0022】
エッジ検出部2は、図2において説明した如く、入力された符号化データの、例えばデータ先頭のプリアンブルの“10”の繰り返しパターンを用いて、各ビット期間の中央に存在するデータ変化点(エッジ)を検出し、その後は、この検出されたエッジタイミングに基づいて各ビット期間のエッジ検出タイミングパルスを生成する。
【0023】
比較タイミング生成部3はこのエッジ検出部2からのエッジ検出タイミングパルスを基準にして、ビット期間の前半部と後半部での合計1ビット分のサンプリング値の計数を終えたタイミング、すなわち1/2ビット(例えば、16クロック相当分)後のタイミングで、前半部と後半部との計数値を比較する(多数決をとる)ための比較タイミングを生成するものである。
【0024】
CPU4は、エッジ検出部2からのエッジ検出タイミングパルスに応答して、シフトレジスタ1に取込まれている1ビット期間の32個のサンプリングデータの“1”の数を、後半部と前半部の各々の区間で計数すると共に、比較タイミング生成部3からの比較タイミングに応答して、前半部と後半部との多数決をとり、この多数決の結果に基づいて、符号化データの当該ビット期間の値が“1”か“0”かを判定するものである。
【0025】
メモリ5はCPU4の動作制御手順をプログラムとして予め格納したメモリであると共に、作業用のメモリとしても機能するものである。データ変換部6はCPU4における判定結果に基づいて復号化データを出力する機能を有する。
【0026】
図3はCPU4の動作を示すフローチャートである。図3を参照すると、エッジ検出部2からエッジ検出タイミングを示すパルスが入力されると(ステップS1)、そのタイミングにて、シフトレジスタ1の1段目の出力から、ビット期間の後半部1/2ビット分(16個)のサンプリングデータを順次導出して、“1”の数を計数する(ステップS2)。
【0027】
エッジ検出タイミングのパルスが生成された時には、シフトレジスタ1にはビット期間の前半部1/2ビット分のサンプリングデータ16個が取込まれており、次のクロックタイミングから後半部のサンプリングデータがシフトレジスタ1の1段目に順次取込まれるから、後半部のサンプリングデータとしてシフトレジスタの1段目出力が用いられる。
【0028】
それと同時に、シフトレジスタ1の16段目には、当該ビット期間の最初のサンプルデータが格納されており、よって前半部の16個のサンプリングデータが、シフトレジスタ1の16段目出力を用いて順次CPU4へ取込まれ、“1”の数が計数される(ステップS3)。
【0029】
前半部及び後半部の各16個のサンプリングデータの“1”の計数が終了すると、比較タイミング生成部3から比較タイミングが生成され、これに応答して、前半1/2ビット分と後半1/2ビット分の計数値の多数決がとられる。そのために、両計数値が比較され(ステップS5)、前半1/2ビット分のカウント値が後半1/2ビット分のカウント値よりも小さければ(ステップS6)、そのビット期間のデータは“0”と判定される(ステップS7)。そうでなければ、“1”と判定される(ステップS8)。この判定結果がデータ変換部6へ出力される(ステップS9)。
【0030】
図4は本発明の効果を説明するための図である。図4(a)は歪のない符号化データの波形である。図4(b)は歪のある符号化データであるが、図8に示した一点のみの判定タイミングAを用いた従来方式においても、本発明の方式においても、正しい判定がなされるような歪(小)の例である。この図4(b)では、本発明の方式に従えば、前半部の“1”の計数値は「7」であり、後半部の“1”の計数値は「16」であり、
前半部計数値<後半部計数値
となるので、この判定結果は“0”と、正しい判定がなされる。
【0031】
図4(c)は従来方式では誤った判定がなされるが、本発明の方式では正しい判定がなされるような歪(大)の例である。この図4(c)では、本発明の方式に従えば、前半部の“1”の計数値は「9」であり、後半部の“1”の計数値は「16」であり、やはり、
前半計数値<後半計数値
となるので、この判定結果は“0”と正しい判定となる。
【0032】
上記実施例では、CPUを用いてソフトウェア的な処理を行う例を示したが、CPUの代りに、シフトレジスタの出力を計数する前半部及び後半部カウンタと、これ等両カウンタの出力を比較する比較器を用いてハードウェアのみで構成しても良い。また、カウンタをアップダウンカウンタとして、前半部の計数値と後半部の計数値との差を、このアップダウンカウンタを用いて得るようにすれば、比較器が不要となるメリットがある。
【0033】
更には、32個のサンプルデータをメモリに格納しておき、一度に“1”の数を計数するようにしても良く、種々の変更が可能である。
【0034】
サンプリングクロックを32倍、すなわちビット期間の分割数(サンプリング数)を32としたが、これに限定されるものではなく、8以上であれば良好な結果が得られるが、多数決をとる関係上なるべく大きい方が良い。
【0035】
符号化データとして、スプリットフェーズ符号を想定しているが、これに限定されるものではなく、デジタル信号の1ビット期間で、その前半部と後半部とで論理値が変化するような符号化方式のデータであれば、同様に適用できる。
【0036】
【発明の効果】
以上述べた如く、本発によれば、ノイズ等によりデューティ比が大きく変動した場合にも、正しいデータ判定ができるので、その判定マージンが拡大するという効果がある。また、選定が困難な閾値を用いる必要がないので、設計も容易となるという効果もある。
【図面の簡単な説明】
【図1】本発明の実施例の機能ブロック図である。
【図2】本発明の原理を説明するための図である。
【図3】図1のCPUの動作を示すフローチャートである。
【図4】本発明の効果を、従来例との比較において説明するための図である。
【図5】スプリットフェーズ符号化データを説明する図である。
【図6】従来のスプリットフェーズ符号化データの復号化のためのデータ判定方法を説明する図である。
【図7】従来の復号化のための機能ブロック図である。
【図8】図7の従来例での問題点を説明する図である。
【符号の説明】
1 シフトレジスタ
2 エッジ検出部
3 比較タイミング生成部
4 CPU
5 メモリ
6 データ変換部
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a code determination device, a method thereof, and a program, and more particularly to a code determination method of a split-phase code encoded so that a logical value changes in a first half and a second half of a 1-bit period of a digital signal.
[0002]
[Prior art]
As shown in the example of FIG. 5, the encoded data by the split phase code divides a bit period for transmitting a 1-bit signal into two periods of a first half and a second half, and these two periods have different logics. This signal transmits a value code and identifies one piece of binary data by a combination of the codes of the two periods. In the example of FIG. 5, when the encoded data (decoded data) as the original data is “1”, the first half of the bit period is “1”, the second half is “0”, and When the original data is “0”, the first half of the bit period is “0” and the second half is “1”.
[0003]
In the split phase signal encoded in this way, a transition point (edge) of “1” → “0” or “0” → “1” necessarily exists at the center of the bit period, and the clock This is encoded data that enables continuous reproduction of components and is also effective in removing the DC component of the signal.
[0004]
As a conventional example of such a split-phase signal decoding method, as shown in FIG. 6, a data change point (edge) at the center of a bit period of the split-phase signal is detected, and 3/4 bits are detected from this edge. (For example, 24 clocks when sampling is performed with a 32 times clock), there is a device that determines whether it is “0” or “1” at a later timing. That is, data determination is performed only at the 24th clock sampling point (1 sampling point).
[0005]
FIG. 7 is a schematic block diagram of a code determination device in this case. The encoded data is input to the edge detection unit 11 and the determination unit 13. The edge detection unit 11 detects an edge at the center of each bit in the input encoded data, for example, in a repetition (known data pattern) of a pattern of “10” in a preamble section at the beginning of the data, and thereafter, Generates an edge detection timing pulse for each bit period corresponding to the edge detection timing.
[0006]
At this edge, a detection timing pulse is input to the determination pulse generator 12. In the determination pulse generator 12, a determination pulse having a timing of the center of the first half of each bit, that is, the timing of 3/4 bit later, based on this pulse, is generated. Generated. The determination unit 13 determines the logical value of the input coded data at the timing of the determination pulse, and outputs the decoded data according to the determination result.
[0007]
As other examples of the decoding method, there are techniques disclosed in Patent Documents 1 and 2. In Patent Document 1, for the purpose of eliminating the influence of waveform distortion due to noise or the like, data obtained by logically ANDing a reproduced clock having a period of one time slot (corresponding to one bit period) and an input split phase signal is described. The count value of the multi-point sampled data in one time slot is compared with a predetermined threshold value. If the count value exceeds a predetermined value, it is determined to be one logical value. If the count value is less than the predetermined value, it is determined to be another logical value. The technique to do is shown.
[0008]
In Patent Literature 2, the logic of the section in which the difference between the logic “1” and the logic “0” of the multipoint sampling is clear between the first half and the second half of the bit period is defined as the logic of the input bit. The technology to be adopted is shown. For example, the sum of the number of logic "1" or "0" in the first half and the number of logic "0" or "1" in the second half is obtained and compared with a predetermined value for determination. However, the purpose is to eliminate the influence of waveform distortion due to noise or the like.
[0009]
[Patent Document 1]
JP-A-59-139571 (pages 2, 3; FIGS. 2 to 4)
[0010]
[Patent Document 2]
JP-A-4-297166 (pages 2 to 4, FIGS. 1 to 5)
[0011]
[Problems to be solved by the invention]
In the prior art described with reference to FIGS. 6 and 7, when distortion occurs in received data due to noise on a transmission line, level fluctuation, imperfections in a transceiver or a modulator / demodulator, etc., particularly, “1” and “1” of data are received. When the duty ratio of “0” is largely changed, the determination may not be performed correctly because the determination timing is only one point. FIG. 8 shows an example of this. When the duty ratio of input data (encoded data) greatly changes from the waveform shown by the solid line to the one-dot chain line due to distortion due to noise or the like, the input data (encoded data) is originally "0". There is a drawback that it is mistaken for "1".
[0012]
In Patent Documents 1 and 2, although the above-mentioned disadvantage that the determination timing is only one point is solved, since the data determination is performed by comparing the count result of the multipoint sampling value with a predetermined threshold, the threshold is determined. May be erroneously determined in the case where the duty ratio is largely changed, and it is difficult to select the threshold.
[0013]
SUMMARY OF THE INVENTION It is an object of the present invention to provide a code judging device capable of expanding a judging margin as much as possible with respect to noise, level fluctuation, and deterioration of a duty ratio caused by imperfections of a transceiver and a modem in a digital data transmission path. And its method and program.
[0014]
It is another object of the present invention to provide a code determination device, a method and a program thereof which do not require the use of a threshold value for data determination which is difficult to select.
[0015]
[Problems to be solved by the invention]
A sign judging device according to the present invention is a sign judging device for coded data coded so that a logical value changes between a first half and a second half of a 1-bit period of a digital signal, wherein each bit of the coded data is Sampling means for performing multi-point sampling of a period; counting means for counting predetermined logical values of the sampling data of the first half and the second half by the sampling means; and majority decision of the count values of the first half and the second half. Determining means for determining data in the bit period in accordance with the result of the majority decision.
[0016]
A code determination method according to the present invention is a code determination method for coded data that has been coded so that a logical value changes between the first half and the second half of a one-bit period of a digital signal, wherein each bit of the coded data is A sampling step of performing multi-point sampling of a period; a counting step of counting predetermined logical values of the sampling data of the first half and the second half of the sampling step; and a majority decision of the count values of the first half and the second half. A determining step of determining the data of the bit period in accordance with the result of the majority decision.
[0017]
A program according to the present invention is a program for causing a computer to execute a code determination method of coded data coded so that a logical value changes between a first half and a second half of a 1-bit period of a digital signal, A sampling step of performing multi-point sampling of each bit period of the encoded data; a counting step of counting predetermined logical values of the sampling data of the first half and the second half by the sampling step, respectively; A decision step of taking a majority decision of the count value and making a data decision of the bit period in accordance with the majority decision result.
[0018]
The operation of the present invention will be described. The multi-point sampling of the bit period is performed, the number of predetermined logical values (for example, “1”) of the sampling data of the first half and the second half of the bit period is counted, respectively, and the majority of the counted values of the first half and the second half are determined. Then, the data in the bit period is determined based on the result of the majority decision. By doing so, data determination can be performed very easily and accurately even if the duty ratio greatly changes, without using a threshold value that is difficult to set, and the data determination margin can be expanded.
[0019]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, the present invention will be described in detail with reference to the drawings. Prior to the description of the embodiment, in order to facilitate understanding of the present invention, first, the principle of the present invention will be described with reference to FIG. As shown in FIG. 2, first, a data change point (edge) at the center of the bit period of the split phase code to be decoded is detected. If it is assumed that the data of the bit period is sampled at multiple points, the sampling value is obtained for a half bit period (second half: for example, a period corresponding to 16 clocks when sampling is performed with a 32 times clock) from the edge detection timing. Are counted. Then, the number of “1” of the sampling value is counted for the first half 1 / -bit period.
[0020]
The majority of the count values of the first half and the second half with respect to the edge obtained in this way is determined. If "1" is larger in the first half, the data in the bit period is "1" and vice versa. For example, it is determined to be "0". The edge is detected by using a repetition pattern (known pattern) of "10" of the preamble at the head of the data, and thereafter, the edge detection in each bit period is performed based on the detected edge timing. A timing pulse is generated.
[0021]
FIG. 1 is a functional block diagram of one embodiment for realizing the present invention according to the above principle. Referring to FIG. 1, input encoded data is supplied to a shift register 1 and an edge detection unit 2. The shift register 1 takes in data of one bit period with, for example, a 32 times clock, and takes in sampling data for 32 clocks.
[0022]
As described with reference to FIG. 2, the edge detection unit 2 uses the repetition pattern of “10” of the preamble of the data at the beginning of the input coded data to change the data change point (edge ) Is detected, and thereafter, an edge detection timing pulse for each bit period is generated based on the detected edge timing.
[0023]
The comparison timing generation unit 3 completes counting the sampling value of 1 bit in the first half and the second half of the bit period with reference to the edge detection timing pulse from the edge detection unit 2, that is, 1/2. At a timing after a bit (for example, equivalent to 16 clocks), a comparison timing for comparing (counting majority) the count values of the first half and the second half is generated.
[0024]
The CPU 4 responds to the edge detection timing pulse from the edge detection section 2 to count the number of “1” of the 32 sampling data in the 1-bit period taken in the shift register 1 between the second half and the first half. In addition to counting in each section, in response to the comparison timing from the comparison timing generation unit 3, a majority decision is made between the first half and the second half, and based on the result of the majority decision, the value of the bit period of the coded data in the corresponding bit period is determined. Is "1" or "0".
[0025]
The memory 5 is a memory in which the operation control procedure of the CPU 4 is stored in advance as a program, and also functions as a work memory. The data converter 6 has a function of outputting decoded data based on the result of the determination by the CPU 4.
[0026]
FIG. 3 is a flowchart showing the operation of the CPU 4. Referring to FIG. 3, when a pulse indicating an edge detection timing is input from the edge detection unit 2 (step S1), at that timing, the output of the first stage of the shift register 1 outputs the second half of the bit period 1 /. The sampling data of 2 bits (16 pieces) is sequentially derived, and the number of "1" is counted (step S2).
[0027]
When the pulse of the edge detection timing is generated, 16 pieces of sampling data corresponding to the first half of the bit period are taken into the shift register 1, and the sampling data of the second half is shifted from the next clock timing. Since the data is sequentially taken into the first stage of the register 1, the output of the first stage of the shift register is used as the sampling data of the second half.
[0028]
At the same time, the first sample data of the bit period is stored in the 16th stage of the shift register 1, so that the 16 sampled data in the first half is sequentially output using the 16th stage output of the shift register 1. It is taken into the CPU 4 and the number of "1" is counted (step S3).
[0029]
When the counting of "1" in each of the 16 sampling data of the first half and the second half is completed, the comparison timing is generated from the comparison timing generation unit 3, and in response to this, the first half bit and the second half 1 are calculated. The majority of the 2-bit count value is determined. Therefore, the two count values are compared (step S5), and if the count value of the first half bit is smaller than the count value of the second half bit (step S6), the data of the bit period becomes “0”. (Step S7). Otherwise, it is determined to be "1" (step S8). This determination result is output to the data conversion unit 6 (Step S9).
[0030]
FIG. 4 is a diagram for explaining the effect of the present invention. FIG. 4A shows a waveform of encoded data without distortion. FIG. 4B shows coded data having distortion. However, in the conventional method using only one decision timing A shown in FIG. It is an example of (small). In FIG. 4B, according to the method of the present invention, the count value of “1” in the first half is “7”, the count value of “1” in the second half is “16”,
Since the first half count value is smaller than the second half count value, the determination result is "0", and a correct determination is made.
[0031]
FIG. 4C shows an example of distortion (large) in which an erroneous determination is made in the conventional method, but a correct determination is made in the method of the present invention. In FIG. 4C, according to the method of the present invention, the count value of “1” in the first half is “9” and the count value of “1” in the second half is “16”.
Since the first half count value <the second half count value, the determination result is “0”, which is a correct determination.
[0032]
In the above embodiment, an example in which software processing is performed using the CPU has been described. Instead of the CPU, the first half counter and the second half counter for counting the output of the shift register are compared with the outputs of these counters. It may be constituted only by hardware using a comparator. If the counter is an up / down counter and the difference between the count value of the first half and the count value of the second half is obtained using this up / down counter, there is an advantage that a comparator is not required.
[0033]
Further, 32 sample data may be stored in the memory, and the number of "1" may be counted at a time, and various changes are possible.
[0034]
Although the sampling clock is 32 times, that is, the number of divisions (the number of samplings) of the bit period is set to 32, the present invention is not limited to this. If the number is 8 or more, good results can be obtained. Larger is better.
[0035]
As the encoded data, a split-phase code is assumed. However, the present invention is not limited to this. An encoding method in which the logical value changes between the first half and the second half of a digital signal during one bit period of the digital signal If the data is, the same can be applied.
[0036]
【The invention's effect】
As described above, according to the present invention, even when the duty ratio fluctuates greatly due to noise or the like, correct data determination can be performed, and thus there is an effect that the determination margin is expanded. Further, since it is not necessary to use a threshold value that is difficult to select, there is an effect that the design becomes easy.
[Brief description of the drawings]
FIG. 1 is a functional block diagram of an embodiment of the present invention.
FIG. 2 is a diagram for explaining the principle of the present invention.
FIG. 3 is a flowchart illustrating an operation of a CPU in FIG. 1;
FIG. 4 is a diagram for explaining the effect of the present invention in comparison with a conventional example.
FIG. 5 is a diagram illustrating split-phase encoded data.
FIG. 6 is a diagram illustrating a conventional data determination method for decoding split-phase encoded data.
FIG. 7 is a functional block diagram for conventional decoding.
FIG. 8 is a diagram illustrating a problem in the conventional example of FIG. 7;
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Shift register 2 Edge detection part 3 Comparison timing generation part 4 CPU
5 Memory 6 Data conversion unit

Claims (9)

デジタル信号の1ビット期間の前半部と後半部とで論理値が変化するよう符号化された符号化データの符号判定装置であって、
前記符号化データの各ビット期間の多点サンプリングをなすサンプリング手段と、
前記サンプリング手段による前記前半部及び後半部のサンプリングデータの所定論理値をそれぞれ計数する計数手段と、
これ等前半部と後半部の計数値の多数決をとってこの多数決結果に応じて前記ビット期間のデータ判定をなす判定手段と、
を含むことを特徴とする符号判定装置。
What is claimed is: 1. A code judging device for coded data coded so that a logical value changes between a first half and a second half of a 1-bit period of a digital signal,
Sampling means for performing multipoint sampling for each bit period of the encoded data,
Counting means for counting a predetermined logical value of the sampling data of the first half and the second half by the sampling means,
Determining means for taking a majority decision of the count values of the first half and the second half, and making data determination of the bit period according to the majority decision result;
A code determination device comprising:
前記判定手段は、前記前半部と後半部の計数値を比較する手段と、この比較結果に応じて前記データ判定をなす手段とを有することを特徴とする請求項1記載の符号判定装置。2. The code judging device according to claim 1, wherein said judging means includes means for comparing the count values of the first half and the second half, and means for making the data judgment according to the comparison result. 前記符号化データの予め定められた期間における既知データパターンから前記1ビット期間における論理値の変化タイミングを検出して、以後の各ビット期間の前半部と後半部のタイミングを決定する手段を、更に含み、前記計数手段は、このタイミングに応答して前記後半部と前半部のサンプリングデータの所定論理値をそれぞれ計数するようにしたことを特徴とする請求項1または2記載の符号判定装置。Means for detecting a change timing of a logical value in the one-bit period from a known data pattern in a predetermined period of the encoded data, and determining timing of a first half and a second half of each subsequent bit period, 3. The code judging device according to claim 1, wherein said counting means counts predetermined logical values of the sampling data of the second half and the first half in response to the timing. 前記符号化データはスプリットフェーズ符号データであることを特徴とする請求項1〜3いずれか記載の符号判定装置。The code judging device according to any one of claims 1 to 3, wherein the encoded data is split phase code data. デジタル信号の1ビット期間の前半部と後半部とで論理値が変化するよう符号化された符号化データの符号判定方法であって、
前記符号化データの各ビット期間の多点サンプリングをなすサンプリングステップと、
前記サンプリングステップによる前記前半部及び後半部のサンプリングデータの所定論理値をそれぞれ計数する計数ステップと、
これ等前半部と後半部の計数値の多数決をとってこの多数決結果に応じて前記ビット期間のデータ判定をなす判定ステップと、
を含むことを特徴とする符号判定方法。
What is claimed is: 1. A method for judging the sign of encoded data encoded such that a logical value changes between a first half and a second half of a 1-bit period of a digital signal,
A sampling step of performing multipoint sampling for each bit period of the encoded data,
A counting step of counting a predetermined logical value of the sampling data of the first half and the second half by the sampling step,
A determination step of taking a majority decision of the count values of the first half and the second half, and making a data determination of the bit period according to the majority decision result;
A code determination method comprising:
前記判定ステップは、前記前半部と後半部の計数値を比較するステップと、この比較結果に応じて前記データ判定をなすステップとを有することを特徴とする請求項4記載の符号判定方法。5. The code determination method according to claim 4, wherein the determination step includes a step of comparing the count values of the first half and the second half, and a step of making the data determination according to the comparison result. 前記符号化データの予め定められた期間における既知データパターンから前記1ビット期間における論理値の変化タイミングを検出して、以後の各ビット期間の前半部と後半部のタイミングを決定するステップを、更に含み、前記計数ステップは、このタイミングに応答して前記後半部と前半部のサンプリングデータの所定論理値をそれぞれ計数するようにしたことを特徴とする請求項5または6記載の符号判定方法。Detecting a change timing of a logical value in the one-bit period from a known data pattern in a predetermined period of the encoded data, and determining a timing of a former half and a latter half of each subsequent bit period, 7. The code judging method according to claim 5, wherein said counting step includes counting predetermined logical values of the sampling data of the second half and the first half in response to the timing. 前記符号化データはスプリットフェーズ符号データであることを特徴とする請求項5〜7いずれか記載の符号判定方法。8. The code judging method according to claim 5, wherein said encoded data is split phase code data. デジタル信号の1ビット期間の前半部と後半部とで論理値が変化するよう符号化された符号化データの符号判定方法をコンピュータに実行させるためのプログラムであって、
前記符号化データの各ビット期間の多点サンプリングをなすサンプリングステップと、
前記サンプリングステップによる前記前半部及び後半部のサンプリングデータの所定論理値をそれぞれ計数する計数ステップと、
これ等前半部と後半部の計数値の多数決をとってこの多数決結果に応じて前記ビット期間のデータ判定をなす判定ステップと、
を含むことを特徴とするコンピュータ読取り可能なプログラム。
A program for causing a computer to execute a code determination method of coded data coded so that a logical value changes between a first half and a second half of a 1-bit period of a digital signal,
A sampling step of performing multipoint sampling for each bit period of the encoded data,
A counting step of counting a predetermined logical value of the sampling data of the first half and the second half by the sampling step,
A determination step of taking a majority decision of the count values of the first half and the second half, and making a data determination of the bit period according to the majority decision result;
A computer-readable program characterized by comprising:
JP2003117737A 2003-04-23 2003-04-23 Code determination apparatus, method thereof, and program Expired - Fee Related JP4320414B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003117737A JP4320414B2 (en) 2003-04-23 2003-04-23 Code determination apparatus, method thereof, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003117737A JP4320414B2 (en) 2003-04-23 2003-04-23 Code determination apparatus, method thereof, and program

Publications (2)

Publication Number Publication Date
JP2004328174A true JP2004328174A (en) 2004-11-18
JP4320414B2 JP4320414B2 (en) 2009-08-26

Family

ID=33497493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003117737A Expired - Fee Related JP4320414B2 (en) 2003-04-23 2003-04-23 Code determination apparatus, method thereof, and program

Country Status (1)

Country Link
JP (1) JP4320414B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006270201A (en) * 2005-03-22 2006-10-05 Denso Wave Inc Data reading apparatus
US8175194B2 (en) 2009-11-30 2012-05-08 Kabushiki Kaisha Toshiba Signal receiving apparatus and signal processing method
JP2014522168A (en) * 2011-07-27 2014-08-28 ザイリンクス インコーポレイテッド Decoder circuit for downsampling differential Manchester encoded signal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006270201A (en) * 2005-03-22 2006-10-05 Denso Wave Inc Data reading apparatus
JP4539392B2 (en) * 2005-03-22 2010-09-08 株式会社デンソーウェーブ Data reader
US8175194B2 (en) 2009-11-30 2012-05-08 Kabushiki Kaisha Toshiba Signal receiving apparatus and signal processing method
JP2014522168A (en) * 2011-07-27 2014-08-28 ザイリンクス インコーポレイテッド Decoder circuit for downsampling differential Manchester encoded signal

Also Published As

Publication number Publication date
JP4320414B2 (en) 2009-08-26

Similar Documents

Publication Publication Date Title
JP3347667B2 (en) Manchester encoded data decoding device
EP0493501A1 (en) Digital phase-locked loop biphase demodulating method and apparatus.
US5056114A (en) Method and apparatus for decoding Manchester encoded data
US7069481B2 (en) Data recovery circuit for minimizing power consumption by non-integer times oversampling
US11057855B2 (en) Method of detecting access address of Bluetooth signal to which channel coding is applied and Bluetooth apparatus thereof
US6933866B1 (en) Variable data rate receiver
JP2004328174A (en) Code decision apparatus, method thereof, and program
US6209109B1 (en) Code synchronization decision circuit of Viterbi decoder
JPH07326139A (en) Recorded and coded digital-signal reproducing apparatus
JP2008193576A (en) Radio tag reader
JP2004214825A (en) Frequency comparator
JP4486871B2 (en) Signal decoding apparatus and signal decoding method
US5510786A (en) CMI encoder circuit
JP4335381B2 (en) Clock generation apparatus and clock generation method
US7633414B1 (en) Circuit and method for Manchester decoding with automatic leading phase discovery and data stream correction
JP2005142615A (en) Manchester code data receiver
US4809301A (en) Detection apparatus for bi-phase signals
JP3913855B2 (en) Channel stream error correction apparatus and error correction method
JP3001414B2 (en) Code error correction device
JP3478290B2 (en) DUTY correction circuit
WO2002056494A1 (en) Methods and apparatus for feature recognition time shift correlation
JP3561595B2 (en) RDS receiver
CA1314999C (en) Method and apparatus for decoding manchester encoded data
JP2006086844A (en) Data decoding circuit and method therefor
KR100253809B1 (en) Synchronous pattern detector

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080401

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080526

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090120

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090316

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090511

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120612

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees