JP4314717B2 - Transmission rate discrimination method and circuit - Google Patents

Transmission rate discrimination method and circuit Download PDF

Info

Publication number
JP4314717B2
JP4314717B2 JP2000060073A JP2000060073A JP4314717B2 JP 4314717 B2 JP4314717 B2 JP 4314717B2 JP 2000060073 A JP2000060073 A JP 2000060073A JP 2000060073 A JP2000060073 A JP 2000060073A JP 4314717 B2 JP4314717 B2 JP 4314717B2
Authority
JP
Japan
Prior art keywords
pattern length
digital interface
transmission rate
predetermined
pattern
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.)
Expired - Fee Related
Application number
JP2000060073A
Other languages
Japanese (ja)
Other versions
JP2001251285A (en
Inventor
雅博 伊藤
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.)
Yamaha Corp
Original Assignee
Yamaha 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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP2000060073A priority Critical patent/JP4314717B2/en
Priority to US09/799,972 priority patent/US6888886B2/en
Publication of JP2001251285A publication Critical patent/JP2001251285A/en
Application granted granted Critical
Publication of JP4314717B2 publication Critical patent/JP4314717B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)
  • Dc Digital Transmission (AREA)
  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、予め定められた複数種類の伝送レート中の何れかのレートで伝送されるディジタルインターフェイス信号を抽出して再生するディジタルインターフェイスにおける伝送レート判別方法、及び、この伝送レート判別方法を実行するための回路に関する。
【0002】
【従来の技術】
予め定められた複数種類の伝送レートで伝送される可能性のあるディジタル伝送フォーマットで、しかも、波長が最大/最小で制限されて固有のパターン長の信号を扱う一般的なシステムの例としては、ベースバンドディジタル変調方式を用いた記録媒体への可変レート高密度記録再生装置等がある。
【0003】
また、関連するインターフェイスシステムの例としては、汎用のディジタルオーディオインタ一フェースにおけるEIAJ(Electronic Industrries Association of Japan :〔社〕日本電子機械工業会)規格CP1201がよく知られており、このフォーマットは、当該分野では「SPDIFフォーマット」(SPDIFは、Sony Philips Digital audio InterFaceの略であり、「EIAJ/CP1201ディジタルオーディオインターフェイス仕様書」で規定されているフォーマットのことを指す。)と呼ばれる。
【0004】
このような伝送フォーマットを用いたシステムにおいて、信号を記録或いは送信する側は、その信号のレートを自ら決定する側であるので問題はないが、これを再生或いは受信する側では、まずそのレートを最初に判別できなければ、PLLもかけることができず、ビット毎のデータも検出することができないという問題があり、このため、レートを判別するための手法がこれまでに数多く知られている。しかしながら、これらの判別手法は、固有パターンの波長を高速のクロックでカウントするだけの簡単なもので、そのために、かなり高い周波数を用いて波長をカウントする必要があった。
【0005】
【発明が解決しようとする課題】
この発明の目的は、このような従来技術の状況に鑑み、予め定められた複数種類の伝送レートで伝送される可能性のあるディジタルインターフェイスにおいて、比較的低速のクロックを用いてその伝送レートを判別することができる伝送レート判別方法及び回路を提供することにある。
【0006】
【課題を解決するための手段】
この発明の第1の特徴に従うと、予め定められた複数種類の伝送レートのうちの何れかの伝送レートで伝送されるディジタルインターフェイス信号を再生するディジタルインターフェイスにおいて、伝送されるディジタルインターフェイス信号中の特有のパターンについて、そのパターン長を固定周波数のクロックで計測するステップと、計測された各パターン長から所定のパターン長を検出するパターン長検出ステップと、所定期間における所定のパターン長の検出回数を算出する検出回数算出ステップと、算出された検出回数を判別するステップと、判別された検出回数に基づいて、伝送されるディジタルインターフェイス信号の伝送レートを判別するステップとを備える伝送レート判別方法が提供され、この伝送レート判別方法に従い、予め定められた複数種類の伝送レートのうちの何れかの伝送レートで伝送されるディジタルインターフェイス信号を再生するディジタルインターフェイスにおいて、伝送されるディジタルインターフェイス信号中の特有のパターンについて、そのパターン長を固定周波数のクロックで計測する第1カウンタと、計測されたパターン長を第1閾値と比較し所定パターン長を検出する第1比較回路と、所定期間中に第1比較回路で所定パターン長が検出された回数を算出する第2カウンタと、算出された回数を第2閾値と比較し判別する第2比較回路と、判別された回数に基づいて、伝送されるディジタルインターフェイス信号の伝送レート信号を出力する出力回路とを具備する伝送レート判別回路が提供される。
【0007】
また、その第2の特徴に従うと、予め定められた複数種類の伝送レートのうちの何れかの伝送レートで伝送されるディジタルインターフェイス信号を再生するディジタルインターフェイスにおいて、伝送されるディジタルインターフェイス信号中の特有のパターンについて、そのパターン長を固定周波数のクロックで計測するステップと、計測された各パターン長から所定のパターン長を検出するパターン長検出ステップと、所定期間における所定のパターン長の検出回数を算出する検出回数算出ステップと、算出された検出回数を判別するステップと、判別されたパターン長乃至検出回数に基づいて、伝送されるディジタルインターフェイス信号の伝送レートを判別するステップとを備える伝送レート判別方法が提供される。
【0008】
さらに、別の特徴に従うと、上述した各伝送レート判別方法において、さらに、パターン長検出ステップにて、計測されたパターン長について、当該ディジタルインターフェイスフォーマット上発生し得ない過少又は過大なパターン長を判別した場合は、検出回数算出ステップにおける動作をリセットし、改めて所定期間の計時及び検出回数の算出動作を開始させる制御を行うように構成される。
【0009】
〔発明の作用〕
この発明の第1の特徴によると、予め定められた複数種類の伝送レートで伝送される可能性のあるディジタルインターフェイスにおいて、まず、伝送されるディジタルフォーマット信号中の固有の任意なパターンをターゲットにしてそのパターン長を固定周波数のクロックでカウントする。ここで、計測されたパターン長を表わす第1カウント値に対して、各伝送レートに応じて第1閾値を定めておき、パターン長検出ステップにおいて、第1閾値に基づいて第1カウント値を判定し、伝送レートを判定するための条件として予め設定される所定のパターン長であることを検出する。
【0010】
次に、一定の計測期間の間に所定のパターン長を検出した回数を表わす第2カウント値に対し、当該複数の伝送レートに応じて第2閾値を定めておき、検出回数算出ステップにおいて、第2閾値に基づいて、第2カウント値が属する範囲を判別する。つまり、一定の期間中に所定パターン長が何回発生するかを判別することにより、受信されたディジタルインターフェイス信号の伝送レートを決定する。
【0011】
この発明の第2の特徴によると、第1の特徴に加えて、パターン長検出ステップにおいて、第1閾値に基づいて、パターン長を判別して伝送レートを大分けすると共に、複数ではあるが特定の伝送レートに属する可能性がある所定のパターン長を検出する。次に、所定パターン長のものについては、さらに、検出回数算出ステップにおいて、第2閾値に基づいて、第2カウント値が属する範囲を判別する。そして、第1閾値によるパターン長判別に基づく伝送レートの大分け、及び、第2閾値による検出回数判別を総合して、受信されたディジタルインターフェイス信号の伝送レートを決定する。
【0012】
この発明の別の特徴によると、さらに、第1閾値について、当該ディジタルインターフェイスフォーマット上では本来発生しない最短パターン長及び最長パターン長を設定しておき、第1カウント値が最短パターン長よりも小さい(過少である)か、または、最長パターン長よりも大きい(過大である)場合には、即時エラーフラグを発生させるとともに、第2閾値に対して第2カウント値を計数する動作をリセットし、改めて所定の計測期間だけ計数するように制御する。
【0013】
【発明の実施の形態】
以下、図面を参照しつつ、この発明の好適な実施例について詳述する。なお、以下の実施例においては、ディジタルインターフェイス信号としてSPDIFフォーマットの信号が用いられる場合について説明されるが、これは単なる一例であって、所定のパターンを有する種々のディジタルインターフェイス信号に対して適用可能であり、さらに、ベースバンドディジタル変調を用いた記録・再生メディア等で、特殊再生ではなく、システムの比例等倍的な可変速再生における抽出再生信号においても、この発明の主旨を利用して可変速度に自動適応する再生回路を実現することもできる。
【0014】
〔SPDIFフォーマット〕
この発明の実施態様を具体的に説明する前に、まず、既存のフォーマット及びそのレートを判別する際に必要な周波数を説明する。図1は、前述した「EIAJ−CP1201 ディジタルオーディオインターフェイス」のフオーマットであるSPDIFフォーマッ卜を示す。
【0015】
SPDIFフォーマットデータにおいては、図1(1)(a)に示される1ビットレート当り(1タイムスロット毎)のビットデータ“0”,“1”は、図1(1)(b)示されるように、1タイムスロットに相当する期間(「ビットレート対応パターン長」)2Tの間同じ状態を維持するか、或いは、その半分の期間(「最小パターン長」)Tで状態を反転するバイフェーズマーク〔以下、「Biφ」という。〕方式と呼ばれる一種のFM変調をかけて伝送される。つまり、伝送される信号パターンは、ビットレート対応パターン長2T又はその半分の最小パターン長Tをもつ周波数パターンであり、これらのパターン2T,Tにより、それぞれ、1タイムスロットのデータ“0”,“1”が伝送される。
【0016】
さらに、ステレオ2チャンネルのディジタルオーディオデータを伝送する前提で、図1(2)に示されるように、オーディオ信号のサンプリングレートFsに対して、各フレームには,32ビットずつLチャンネル(Lch)/Rチャンネル(Rch)がサブフレームとして割り振られている。各サブフレームのうち、純オーディオデータは各24ビットであり、最後に、冗長データV/U/C/Pビットが割り当てられ、バリディティフラグ“V”、ユーザデータ“U”、チャンネルステータス(各種制御情報)“C”及びパリティビット“P”が1ビットずつ付加される。また、“C”ビットは、192フレームで1ブロックを構成する。
【0017】
また、図1(2)に示されるように、各チャンネルデータ(サブフレーム)の先頭4ビットは、再生時の同期をとるためのプリアンブル信号PAが付加されている。このプリアンブルは、図1(1)で述べたBiφマークの変調則から外された特殊なパターンであり、図1(3)に示されるように、最小パターン長Tの3倍のパターン長(「最大パターン長」)3Tをもつ周波数パターンを組み合わせた“B”、“M”、“W”という3種類のパターンをもつ。このうち、“B”パターンのプリアンブルは、192フレームを単位として各種制御情報を載せている“C”ビットに対応するブロックの先頭であるサブフレームであることを示し、それ以外のLchデータ及びRchデータのサブフレームの先頭には、それぞれ、“M”及び“W”パターンのプリアンブルが配置される。
【0018】
上述のように、サンプリングレートFs内に配置される両チャンネル(Lch/Rch)分の2サブフレームを単位に1フレームが構成されている。従って、このフォーマットでは、最長パターンが最大パターン長3Tで制限され、最短パターンが最小パターン長Tで制限され、かつ、その実際の伝送レートは、a×Fs=2(ch)×32(bit)×2(T)×Fs=128Fs〔a=128〕であり、例えば、Fs=48kHzの時は6.1MHz(最小パターン長Tは、T≒163ns)であって、伝送レートFsに依存する。この時に伝送に用いられている伝送レートFsの値がいくらであるかを判別するのに、できるだけ低い周波数で識別するためには、最長パターンであるプリアンブルPA中の最大パターン長3Tを計測することが最も有利である。
【0019】
しかしながら、伝送レートFsが48kHz、44.1kHz及び32kHzの3通りある場合は、非同期誤差を考慮すると、常識的には、最低でも46MHzの計測周波数でカウントしなければならない。何故なら、Fs=48kHz時の3Tパターンは、488nsであって46MHzでカウントしたときカウント数“22”又は“23”が計数され、Fs=44.1kHz時の3Tパターンは、531nsであって同じ46MHzでカウントしたときカウント数“24”又は“25”が計数されてはじめて、周波数差の少ない48kHzと44.1kHzとがそのカウント値により分離可能となるからである。
【0020】
〔レート判別アルゴリズム〕
この発明の一実施例によれば、ディジタルインターフェイスにおいて受信された信号の固有パターン(例えば、SPDIFフォーマット信号におけるプリアンブルの最長パターン3T)に対して、単に、これを固定周波数のクロックでカウントするだけでなく、所定期間内の固有パターン発生回数を考慮して受信信号の伝送レートを判別することにより、計測クロックの固定周波数を低くすることができる。図2は、この発明の一実施例によるレート判別アルゴリズムを表わすフローチャートである。
【0021】
まず、ステップS1において、入力された信号からそれぞれ発生する波長(パターン長)を、固定された所定のクロック周波数fcにて第1カウント値としてカウントする。ステップS1でカウントされる第1カウント値nは、計測される各波長(パターン長)毎に決定されるが、続くステップS2〜S4において、順次、所定の第1閾値C1x=C10〜C12と比較判定される。
【0022】
ステップS2における第1閾値C1x=C10は、所定の最小波長(パターン長)を固定クロック周波数fcでカウントした場合のカウント値Cminよりも小さい値が設定される(C10<Cmin)。従って、本来のフォーマットデータであるときは、ステップS2でn>C10と判定されステップS3に進むが、そうでないときはエラーであり、ステップS5に進む。ステップS3での第1閾値C1x=C11は、所定の最大波長(パターン長)を固定クロック周波数fcでカウントした場合のカウント値Cmaxよりも大きい値が設定される(C11>Cmax)。従って、本来のフォーマットデータであるときは、ステップS3でn<C11と判定されステップS4に進むが、そうでないときはエラーでありステップS5に進む。また、ステップS5では、エラーフラグを立てると共に、第2カウント値mをリセットする。
【0023】
ステップS4での第1閾値C1x=C12は、フォーマット中の最長パターンの次に長い波長(パターン長)を固定クロック周波数fcでカウントした場合のカウント値Cmax2よりも大きい値が設定され(Cmax2<C12<Cmax)、ステップS4でn>C12と判定されるとステップS6に進み、そうでないときはステップS1に戻る。ステップS6に進む場合はC12<n<C11であり最長パターンの検出を意味するので、ステップS6においては、別のカウンタを用いて最大パターン長の検出回数を第2カウント値mとしてカウントアップ(“+1”カウント)する。
【0024】
次のステップS7で、予め定められた或る一定の十分に長い計測期間Tcが経過していないと判定されると、ステップS1に戻り、計測期間Tcが経過するまで、このようなステップS1→S2→S3→S4→S6の第2カウント値mの計数動作が繰り返され、また、この計測時間Tcが経過した後は、ステップS7からステップS8に進む。
【0025】
ステップS8においては、第2カウント値mを第2閾値C2と比較判定し、m>C2ならば、ステップS9に進んで伝送レートFsはレートAであると決定し、そうでないときは、テップS10に進んで伝送レートFsは別のレートBであると決定し、1回分のレート判別アルゴリズムを終了する。
【0026】
もちろん、上述の計測期間Tc及び第2閾値C2は、伝送レートFsを識別することができるように設定されることはいうまでもない。例えば、1フレームに1回しか発生しないような所定パターンをもつフォーマットで、その伝送レートがFs=48kHz及び44.1kHzの場合は、計測期間Tcを1kHz(1ms)にすれば、この所定パターンについては、Fs=48kHz信号ならば回数m=“48”がカウントされ、Fs=44.1kHzであれば回数m=“44”がカウントされるはずである。従って、非同期誤差を含めて確実な第2閾値C2としては、C2=“46”程度に設定することによって、Fs=48kHz/44.1kHzを確実に識別することができる。さらに、識別すべきレートが2通り以上あるときには、第2閾値C2をC2=C21,C22,…と複数用意することもできる。
【0027】
このように、この発明の一実施例によれば、第1閾値C1xのみを用いるだけでなく、第1閾値C1xを満足する発生回数を、或る決まった計測期間Tcで計数した結果mに基づいて、伝送レートを判別するようにしているので、第1閾値C1xを設定する際には、常識的に考えられる計測周波数より低い固定した計測クロック周波数fcを用いて、伝送レートの判別を実現することができる。さらに、この固定周波数fcによって各ビットデータを抽出するクロックをディジタル的に生成することが可能になるので、アナログPLLを用いることなくデータ抽出回路を実現することができる。これにより、実際の回路においては、消費電力を押さえ、且つ、低い計測周波数による動作マージン及びディジタル回路構成による安定性を確保することができる。
【0028】
〔第1閾値の設定手法〕
この発明の一実施例によるレート判別アルゴリズムを、図1で説明したSPDIFフォーマットの信号(SPDIF信号)を受信する場合に、適用する際の数値設定手法について説明する。図3は、この発明によるレート判別における第1閾値の設定手法を説明するための波形図及びテーブル(1)を示す。図3a)及びb)には、伝送レートFsの候補(例えば、48kHz、44.1kHz、32kHz)の内の最大レート(例えば、48kHz)をFsmaxとし、この最大レートFsmaxにおける3通りのパターン3T〜T(3T=3Tmin、2T=2Tmin、T=Tmin)が示されている。また、レート判別(第1カウント値nの計測)に用いる固定クロック周波数fcは、図3d)に示されるように、fc=b・Fsmax〔例えば、b=512、fc=24.576MHz=512×48kHz〕に固定されており、図では明らかでないが、判別すべきSPDIF信号とは完全非同期のクロックである。
【0029】
まず、入力信号は、図3のa)及びb)に示されるようなパターン3T〜Tの3通りの信号があるが、極性には依存せず、波長(パターン長)3T〜Tに意味がある。それぞれの波長がビットストローブされるための信号は、前述したように、最小パターン長Tつまり伝送レートFsのa倍の周波数a・Fsであり、少なくとも、図3c)に示されるように、最大レートFsmaxについてもa・Fsmaxが成立しなければならず、しかも、図3d)に示される固定したクロック周波数fcから作られなければならない。
【0030】
したがって、例えば、最大レートFsmaxについて、a=128、b=512とすることができ、この場合、最大レートFsmaxでの最小パターン長T=Tminに対するクロック周波数fcの倍率c=b/aは、c=4となり、図3d)のように固定周波数fcの計測クロックの周期tは、t=Tmin/c=Tmin/4となる。
【0031】
各閾値を設定する際の過程として、説明を簡単にするために、まず、計測クロック周波数fcが伝送レートFsに同期した系とした場合、上述の数値例(a=128、b=512、c=4)においては、各伝送レートFs=48kHz,44.1kHz,32kHzでのパターン3T,2T,Tの計数値は、それぞれ、図3のテーブル(1)のイ、ロ、ハ欄に示されるとおりである。ここで、SPDIF信号の伝送レートFsと固定周波数fcとが非同期である場合には、それぞれの個所で非同期誤差が発生することには注意が必要である。例えば、周波数fc=512Fsmaxの計測クロックが、SPDIF信号パターンの周波数a・Fs=128Fsに対して、水晶精度で微妙に早いか遅いかで、非同期誤差が±1クロック(Ck)程度の幅で発生する。
【0032】
したがって、この場合、テーブル(1)より、レート判別のために最長パターン3Tを対象として検出することにすれば、各伝送レートFsに対して固定クロック周波数fcで計数され得る第1カウント値mは、イ欄のFs=48kHzの場合はm=“12±1”(“11”〜“13”の意味)となり、ロ欄のFs=44.1kHzの場合はm=“13+1”(“13”又は“14”)となり、ハ欄のFs=32kHzの場合はm=“18±1”(“17”〜“19”)となる。従って、伝送レートFsの48kHzと44.1kHzとは、計測され得る第1カウント値mに重複があり、完全には識別できない。
【0033】
〔第2閾値の設定手法〕
そこで、この発明では、計測期間Tcを設けて最長パターン3Tの検出回数を第2閾値C2で判別する手法を用いる。図4は、この発明によるレート判別における第2閾値の設定手法を説明するためのテーブル(2)を示す。このテーブル(2)は、計測期間Tcを、伝送レートFsのうちの最大レートFsmax=48kHzの1周期に対してk倍とし、k=8,16,24,32(Tc=166.7μs,333.3μs,500μs,666.7μs)に設定した各ケース(a)〜(d)について、各伝送レートFs=48kHz(イ),44.1kHz(ロ),32kHz(ハ)におけるサブフレーム数(P)、最長パターン3Tの検出回数(Q)及び第2閾値C2が示されている。結果的に、計測期間倍率k=32つまり計測期間Tc=666.7μs(周波数でいえば、48kHz/32=1.5kHz)まで期間を延ばすことで、第2閾値C2により、伝送レートFsの48kHzと44.1kHzとが識別可能であることが分かる。
【0034】
なお、最長パターン3Tの検出回数で第2閾値C2を設定する手法のほかに、検出したプリアンブルの回数を第2カウント値とすることも可能であり、この場合は、先にも述べたように、サブフレームで1回ずつ検出できるので、Tc=1ms(1kHz周波数)として第2閾値C2=“46”とすればよい。
【0035】
〔レート判別アルゴリズムの具体例〕
図5は、この発明の一実施例によるレート判別アルゴリズムのより詳細な例を示す。ステップR1において、第1閾値Clxに対して、各パターン長に対応する第1カウント値nが求められると、続くステップR2〜R4で、順次、比較される。ステップR2では、2<n<19であるか否か判定され、2<n<19のときはステップR3に進むが、n≦2又はn≧19のときは、最大3T・最小Tの範囲を超えたパターン長が入力されたケースであり、この場合はステップR5に進んでエラーとして扱う。例えば、信号が入力していない状態の判定を可能とするものである。従って、ステップR5に進んだ場合はエラーフラグf0を立ててステップR6に進み、後述する第2カウント値mの算出動作(ステップR8の機能)をリセットする。
【0036】
一方、ステップR3では、さらに、n<16であるか否かが判定され、n<16のときはステップR4に進み、そうでないとき即ちn≧16(16≦n≦18)のときは、ステップR7に進み、これだけでFs=32kHzと判定され、Fs=32kHzのステートを表わす第1ステートフラグf1を立て、その後ステップR6に進む。この場合、SPDIF受信信号のデータビットを復調するための処理として、ステップR3,R7間に、破線で示すようにステップR7’を挿入し、データビット復調用ストローブクロックの切替え(後述するビット抽出パルス列p1,p2を参照)を行うようにしてもよい。n<16でステップR4に進んだ場合は、このステップR4で10≦n≦15であるか否か判定され、10≦n≦15のときはステップR8に進み、そうでないときは、ステップR1に戻る。
【0037】
ここで、10≦n≦15のときは、Fs=48kHz又は44.1kHz時の最長パターン3Tを検出したケースであり、これについては、ステップR8において、第2閾値C2に対応する第2カウント値mを求める。この時、第2カウント値mは、mカウンタによって計測期間Tc=666.7μs(1.5kHz)で計数され、さらに、ステップR9に進む。ステップR9では、第2カウント値mを第2閾値C2で判定し、具体的には、m<92であるか否かを判定する。ここで、m<92のときは、ステップR10に進んでFs=44.1kHzとし、Fs=44.1kHzのステートを表わす第2ステートフラグf2を立てた上、ステップR6に進む。また、そうでないときはステップR11に進んでFs=48kHzとし、Fs=48kHzのステートを表わす第3ステートフラグf3を立てた上、ステップR6に進む。すなわち、第2カウント値mが第2閾値C2=92よりも大であるか小であるかによって、Fsが48kHz或いは44.1kHzであることを判別する。
【0038】
ステップR6においては、ステップR7,R10,R11で得られた結果を、計測期間Tcを単位としてラッチし出力すると共に、第2カウント値mを計数するmカウンタをリセットしてその内容をクリアする。これと同時に、次のステップR12において、先に述べたエラーで無いケース、即ち、第1〜第3ステートフラグf1,f2,f3のどれかのステートが検出されているときには、エラーフラグf0を解除する。
【0039】
〔伝送レート判別及びデータ抽出回路例〕
図6は、この発明の一実施例による伝送レート判別及びデータ抽出回路を示す。図6に示される伝送レート判別及びデータ抽出回路RSは、前述した伝送レート判別アルゴリズムを実現する一回路例であり、入力信号Siの変化点(エッジ)を検出する変化点検出回路1、波長計測用の第1カウンタ2、第1閾値C1xに対する第1比較回路3、デコーダ4、切替回路5、復調回路6、計測期間Tcを決定するための計測タイミング信号を生成するタイミング回路7、最大波長を検出した回数mを計数する所定パターン検出回数計数用の第2カウンタ8、第2閾値C2に対する第2比較回路9、両比較回路3,9からの各出力ステートを計測期間Tcでラッチする出力回路10を備えており、主として、回路1〜3,7〜10によりレート判別ブロックRDが構成され、回路4〜6によりデータ抽出ブロックDSが構成される。
【0040】
入力信号Siは、例えば、SPDIFフォーマットの変調信号であり、クロックCkは、前述例と同様に、24.576MHzの固定周波数fcとする。変化点検出回路1は、このクロックCkを用いてSPDIF入力信号Siのパターンの変化点(エッジ)を検出し、波長計測カウンタ2は、検出された信号Siのパターンの変化点から変化点までをクロックCkでカウントする。
【0041】
第1カウンタ2から出力される第1カウント値nは、入力信号Siの所定パターンの波長を表わし、第1比較回路3にて所定の第1閾値C1x=C10〜Cl2と比較されると同時に、デコーダ4に入力され、入力信号Siについて想定している伝送レートFsに対して、プリアンブル及びデータビットを抽出するための周波数a・Fs(=128Fs)のタイミングパルス列p1,p2をデコーダ4で生成させる。
【0042】
より詳しくいえば、デコーダ4は、(a)Fs=32kHz及び(b)それ以外(Fs=48kHzとFs=44.1kHz)を想定した2通りのビット抽出パルス列p1,p2を出力することができ、これらのパルス列p1,p2は、切替回路5により何れかに切り替えられて復調回路6に出力され、入力信号Siを復調するのに利用される。切替回路5によるビット抽出パルス列p1,p2の出力切替えは、第1比較回路3において、第1カウント値nを判別した結果、伝送レートFs=32kHzを検出したかどうかで決定され、(a)Fs=32kHzの検出時には、これに対応するパルス列p1が出力され、(b)そうでない時にはパルス列p2が出力される。そして、復調回路6では、切替回路5からのビット抽出パルス列p1又はp2を用いて、SPDIF入力信号SiのBiφ変調が復調されると同時に、各データはワード単位でシリアル−パラレル変換されてデータ抽出が行われ、抽出データSDが出力される。
【0043】
第1比較回路3は、第1カウント値nが、例えば、第1閾値C1xの最小値“3”、最大値“18”及び中間値“10”,“16”に対して、n<3又はn>18のときはエラー信号Sf0をタイミング回路7及びラッチ回路10に出力し、16≦ns≦18のときは、伝送レートFs=32kHzを表わす第1判別信号Sf1を切替回路5及びラッチ回路10に出力する。また、10≦n<16のときには、それ以外(Fs=48kHzとFs=44.1kHz)を表わす第2判別信号Sfaが比較回路3から出力され、この信号Sfaが発生される回数を第2カウント値mとして第2カウンタ8で計数する。
【0044】
回数mを計数する計測期間Tcは、タイミング回路7でクロックCkを分周するタイミング回路7で生成される計測タイミング信号により決定される。この例では、1.5kHzの計測タイミング信号Stcがタイミング回路から第2カウンタ8に出力され、第2カウンタ8における回数mの計測期間Tcを規定する。この計測タイミング信号Stcの期間中に計数される第2カウント値mは、第2カウンタ8から第2比較回路9に与えられ、ここで、第2閾値C2=“92”と比較される。この比較の結果、Fs=48kHzか44.1kHzかが判別され、この判別内容を表わす第3判別信号Sfbがラッチ回路10に出力される。
【0045】
ラッチ回路10では、各信号Sf0,Sf1,Sfbが、タイミング回路7からのタイミング信号Stcにより所定の計測期間Tc単位でラッチされ、対応する内容を表わすステートデータf0〜f3が、タイミングを合わせて出力される。例えば、第1比較回路3からのエラー信号Sf0及び第1判別信号Sf1に応じて、それぞれ、エラーフラグf0及び第1ステートフラグf1を出力する。また、第2比較回路9から入力される第3判別信号Sfbが表わす内容(Fs=48kHz又はFs=44.1kHz)に応じて、第2又は第3ステートフラグf2,f3を出力する。
【0046】
〔発明の効果〕
以上説明したように、この発明によれば、ディジタルインターフェイス信号中の固有の任意なパターンをターゲットにして伝送レートの判別を行い、この場合、所定の第1閾値C1xによるパターン長判別のみで伝送レートを判別するだけではなく、所定パターン長の発生回数を或る決まった計測期間Tcで計数する処理を加えて、伝送レートを判別するようにしている。従って、パターン長判別のためには、より低い固定周波数を用いて伝送レート判別を実現することが可能となる。
【0047】
この発明によれば、さらに、この固定周波数によって各ビットデータを抽出するクロックをディジタル的に生成することが可能になるので、アナログPLLを用いることなく、データ抽出回路が実現できる。これにより、実際の回路においては消費電力を押さえ、かつ、低い周波数による動作マージンとディジタル回路構成による安定性を確保することができる。
【図面の簡単な説明】
【図1】図1は、この発明が適用可能な伝送フォーマット(「SPDIFフォーマッ卜」)を説明するための図である。
【図2】図2は、この発明の一実施例による伝送レート判別アルゴリズムを表わすフローチャートである。
【図3】図3は、この発明の一実施例による伝送レート判別アルゴリズムにおける第1閾値設定手法を説明するための波形図及びテーブル(1)である。
【図4】図4は、この発明の一実施例による伝送レート判別アルゴリズムにおける第2閾値設定手法を説明するための別のテーブル(2)である。
【図5】図5は、この発明の一実施例による伝送レート判別アルゴリズムのより詳細な一例を示すフローチャートである。
【図6】図6は、この発明の一実施例による伝送レート判別及びデータ抽出回路を示す図である。
【符号の説明】
Fs 伝送レート(サンプリング周波数)、
T 最小パターン長又は最短パターン、
2T ビットレート対応パターン長(1タイムスロットに対応)、
3T 最大パターン長又は最長パターン、
PA プリアンブルパターン、
n 第1カウント値(パターン長計数値)、
m 第2カウント値(特定パターン検出回数)、
Fsmax 最大レート(伝送レートFsの候補のうち最大の伝送レート)、
Tmin 最大レートFsmaxでの最小パターン長、
2Tmin 最大レートFsmaxでのビットレート対応パターン長、
3Tmin 最大レートFsmaxでの最大パターン長、
fc 周期tを有する計測クロック周波数、
a 最小パターン長対応周波数の伝送レートFsに対する倍率、
b 計測クロック周波数fcの最大レートFsmaxに対する倍率、
c 最小パターン長Tminに対する計測クロック周波数の倍率、
RS 伝送レート判別及びデータ抽出回路、
p1 伝送レートFs=32kHzに対応するビット抽出パルス列、
p2 伝送レートFs=44.1kHz/48kHzに対応するビット抽出パルス列、
f0 エラー信号Sfoに基づいて得られるエラーフラグ、
f1 第1判別信号Sf1に基づいて得られる第1ステートフラグ、
Sfa 第2判別信号、
f2,f3 第3判別信号Sfbの内容に基づいて得られる第2及び第3ステートフラグ、
f4 ステート確認結果フラグ。
[0001]
BACKGROUND OF THE INVENTION
The present invention executes a transmission rate discrimination method in a digital interface for extracting and reproducing a digital interface signal transmitted at any one of a plurality of predetermined transmission rates, and the transmission rate discrimination method For the circuit.
[0002]
[Prior art]
As an example of a general system that handles a signal with a specific pattern length with a digital transmission format that can be transmitted at a plurality of predetermined transmission rates and with a wavelength limited to a maximum / minimum, There is a variable rate high density recording / reproducing apparatus for a recording medium using a baseband digital modulation system.
[0003]
As an example of a related interface system, EIAJ (Electronic Industries Association of Japan) standard CP1201 in a general-purpose digital audio interface is well known, and this format is In the field, it is called “SPDIF format” (SPDIF is an abbreviation of Sony Philips Digital audio InterFace and refers to a format defined in “EIAJ / CP1201 Digital Audio Interface Specification”).
[0004]
In a system using such a transmission format, there is no problem because the side that records or transmits the signal is the side that determines the rate of the signal itself, but the side that reproduces or receives it first sets the rate. If it cannot be discriminated first, there is a problem that PLL cannot be applied and data for each bit cannot be detected. Therefore, many methods for discriminating the rate have been known so far. However, these discrimination methods are simple ones that simply count the wavelength of the unique pattern with a high-speed clock, and for this reason, it is necessary to count the wavelength using a considerably high frequency.
[0005]
[Problems to be solved by the invention]
An object of the present invention is to determine the transmission rate using a relatively low-speed clock in a digital interface that is likely to be transmitted at a plurality of predetermined transmission rates in view of the state of the prior art. Another object of the present invention is to provide a transmission rate discriminating method and circuit that can be used.
[0006]
[Means for Solving the Problems]
According to the first aspect of the present invention, in the digital interface for reproducing the digital interface signal transmitted at any one of a plurality of predetermined transmission rates, the characteristic in the transmitted digital interface signal is unique. Measuring the pattern length with a clock of a fixed frequency, a pattern length detecting step for detecting a predetermined pattern length from each measured pattern length, and calculating the number of detections of the predetermined pattern length in a predetermined period There is provided a transmission rate determination method comprising: a detection frequency calculation step, a step of determining the calculated detection frequency, and a step of determining a transmission rate of a digital interface signal to be transmitted based on the determined detection frequency. According to this transmission rate discrimination method In a digital interface for reproducing a digital interface signal transmitted at any one of a plurality of predetermined transmission rates, the pattern length of a specific pattern in the transmitted digital interface signal is set to a fixed frequency. A first counter that measures with a first clock, a first comparison circuit that detects the predetermined pattern length by comparing the measured pattern length with a first threshold, and a predetermined pattern length detected by the first comparison circuit during a predetermined period A second counter for calculating the number of times, a second comparison circuit for comparing the calculated number of times with a second threshold, and an output for outputting a transmission rate signal of the digital interface signal to be transmitted based on the determined number of times A transmission rate discriminating circuit is provided.
[0007]
Further, according to the second feature, in the digital interface for reproducing the digital interface signal transmitted at any one of a plurality of predetermined transmission rates, the characteristic of the digital interface signal transmitted is unique. Measuring the pattern length with a clock of a fixed frequency, a pattern length detecting step for detecting a predetermined pattern length from each measured pattern length, and calculating the number of detections of the predetermined pattern length in a predetermined period Detection rate calculation step, determining the calculated detection count, and determining the transmission rate of the digital interface signal to be transmitted based on the determined pattern length or detection count Is provided.
[0008]
Further, according to another feature, in each of the transmission rate determination methods described above, an excessive or excessive pattern length that cannot occur in the digital interface format is determined for the pattern length measured in the pattern length detection step. In such a case, the operation in the detection frequency calculation step is reset, and control is performed to start the time counting for a predetermined period and the calculation operation for the detection frequency.
[0009]
[Effects of the Invention]
According to the first aspect of the present invention, in a digital interface that is likely to be transmitted at a plurality of predetermined transmission rates, first, an arbitrary arbitrary pattern in a transmitted digital format signal is targeted. The pattern length is counted by a fixed frequency clock. Here, with respect to the first count value representing the measured pattern length, a first threshold value is determined according to each transmission rate, and the first count value is determined based on the first threshold value in the pattern length detection step. Then, it is detected that the predetermined pattern length is preset as a condition for determining the transmission rate.
[0010]
Next, a second threshold value is determined according to the plurality of transmission rates for a second count value representing the number of times that a predetermined pattern length has been detected during a certain measurement period. The range to which the second count value belongs is determined based on the two threshold values. That is, the transmission rate of the received digital interface signal is determined by determining how many times the predetermined pattern length occurs during a certain period.
[0011]
According to the second feature of the present invention, in addition to the first feature, in the pattern length detection step, the pattern length is determined based on the first threshold value to roughly classify the transmission rate, and there are a plurality of specified rates. A predetermined pattern length that may belong to the transmission rate is detected. Next, for a pattern having a predetermined pattern length, the range to which the second count value belongs is determined based on the second threshold value in the detection frequency calculation step. Then, the transmission rate of the received digital interface signal is determined by comprehensively dividing the transmission rate based on the pattern length discrimination based on the first threshold and the detection frequency discrimination based on the second threshold.
[0012]
According to another feature of the present invention, a shortest pattern length and a longest pattern length that are not originally generated on the digital interface format are set for the first threshold value, and the first count value is smaller than the shortest pattern length ( If it is too small) or larger than the longest pattern length (is too large), an immediate error flag is generated, and the operation of counting the second count value with respect to the second threshold is reset, and again Control is performed to count only for a predetermined measurement period.
[0013]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. In the following embodiments, a case where an SPDIF format signal is used as a digital interface signal will be described. However, this is merely an example and can be applied to various digital interface signals having a predetermined pattern. Furthermore, not only special reproduction but also the extracted reproduction signal in variable speed reproduction proportional to the system is not possible with recording / reproduction media using baseband digital modulation, etc. A reproduction circuit that automatically adapts to the speed can also be realized.
[0014]
[SPDIF format]
Before specifically describing the embodiment of the present invention, first, the frequency required for determining the existing format and its rate will be described. FIG. 1 shows an SPDIF format that is a format of the above-mentioned “EIAJ-CP1201 digital audio interface”.
[0015]
In SPDIF format data, bit data “0” and “1” per bit rate (for each time slot) shown in FIGS. 1A and 1A are as shown in FIGS. Furthermore, the same state is maintained for a period corresponding to one time slot ("bit rate corresponding pattern length") 2T, or the phase is inverted in half of the period ("minimum pattern length") T. [Hereinafter referred to as “Biφ”. ] Is transmitted with a kind of FM modulation called a method. That is, the signal pattern to be transmitted is a frequency pattern having a bit rate corresponding pattern length 2T or a minimum pattern length T that is a half thereof, and these patterns 2T, T respectively indicate data “0”, “0” in one time slot. 1 "is transmitted.
[0016]
Furthermore, on the premise of transmitting digital audio data of two stereo channels, as shown in FIG. 1 (2), 32 bits per frame for L channel (Lch) / L with respect to the sampling rate Fs of the audio signal. An R channel (Rch) is allocated as a subframe. In each subframe, pure audio data is 24 bits each, and finally, redundant data V / U / C / P bits are assigned, validity flag “V”, user data “U”, channel status (various types) Control information) "C" and parity bit "P" are added bit by bit. The “C” bit constitutes one block with 192 frames.
[0017]
Also, as shown in FIG. 1 (2), a preamble signal PA for synchronizing at the time of reproduction is added to the first 4 bits of each channel data (subframe). This preamble is a special pattern removed from the Biφ mark modulation rule described with reference to FIG. 1 (1). As shown in FIG. 1 (3), the preamble has a pattern length three times the minimum pattern length T (“ “Maximum pattern length”) 3 types of patterns “B”, “M”, and “W”, which are combinations of frequency patterns having 3T. Among these, the preamble of the “B” pattern indicates that it is a subframe which is the head of the block corresponding to the “C” bit carrying various control information in units of 192 frames, and other Lch data and Rch Preambles of “M” and “W” patterns are arranged at the heads of the data subframes, respectively.
[0018]
As described above, one frame is composed of two subframes for both channels (Lch / Rch) arranged within the sampling rate Fs. Therefore, in this format, the longest pattern is limited by the maximum pattern length 3T, the shortest pattern is limited by the minimum pattern length T, and the actual transmission rate is a × Fs = 2 (ch) × 32 (bit). For example, when Fs = 48 kHz, the frequency is 6.1 MHz (the minimum pattern length T is T≈163 ns), and depends on the transmission rate Fs. In order to determine the value of the transmission rate Fs used for transmission at this time, in order to identify at the lowest possible frequency, the maximum pattern length 3T in the preamble PA which is the longest pattern is measured. Is the most advantageous.
[0019]
However, when there are three transmission rates Fs of 48 kHz, 44.1 kHz, and 32 kHz, it is common sense to count at a measurement frequency of 46 MHz at least in consideration of asynchronous errors. This is because the 3T pattern at Fs = 48 kHz is 488 ns, and when counted at 46 MHz, the count number “22” or “23” is counted, and the 3T pattern at Fs = 44.1 kHz is 531 ns and the same. This is because 48 kHz and 44.1 kHz having a small frequency difference can be separated by the count value only when the count number “24” or “25” is counted when counting at 46 MHz.
[0020]
[Rate discrimination algorithm]
According to one embodiment of the present invention, for a unique pattern of a signal received at a digital interface (for example, the longest pattern 3T of a preamble in an SPDIF format signal), this is simply counted with a fixed frequency clock. Instead, the fixed frequency of the measurement clock can be lowered by determining the transmission rate of the received signal in consideration of the number of occurrences of the unique pattern within the predetermined period. FIG. 2 is a flowchart representing a rate discrimination algorithm according to one embodiment of the present invention.
[0021]
First, in step S1, a wavelength (pattern length) generated from each input signal is counted as a first count value at a fixed predetermined clock frequency fc. The first count value n counted in step S1 is determined for each wavelength (pattern length) to be measured. In subsequent steps S2 to S4, the first count value n is sequentially compared with a predetermined first threshold value C1x = C10 to C12. Determined.
[0022]
The first threshold C1x = C10 in step S2 is set to a value smaller than the count value Cmin when a predetermined minimum wavelength (pattern length) is counted at the fixed clock frequency fc (C10 <Cmin). Therefore, if it is the original format data, n> C10 is determined in step S2 and the process proceeds to step S3. If not, it is an error and the process proceeds to step S5. The first threshold value C1x = C11 in step S3 is set to a value larger than the count value Cmax when a predetermined maximum wavelength (pattern length) is counted at the fixed clock frequency fc (C11> Cmax). Therefore, if it is the original format data, it is determined in step S3 that n <C11 and the process proceeds to step S4. If not, an error occurs and the process proceeds to step S5. In step S5, an error flag is set and the second count value m is reset.
[0023]
The first threshold value C1x = C12 in step S4 is set to a value larger than the count value Cmax2 when the next longest wavelength (pattern length) of the longest pattern in the format is counted at the fixed clock frequency fc (Cmax2 <C12). <Cmax), if n> C12 is determined in step S4, the process proceeds to step S6, and if not, the process returns to step S1. When the process proceeds to step S6, C12 <n <C11, which means detection of the longest pattern. Therefore, in step S6, the number of detections of the maximum pattern length is counted up as the second count value m using another counter (“ +1 ”count).
[0024]
In the next step S7, when it is determined that a certain predetermined sufficiently long measurement period Tc has not elapsed, the process returns to step S1 and such a step S1 → until the measurement period Tc elapses. The counting operation of the second count value m of S2->S3->S4-> S6 is repeated, and after this measurement time Tc has elapsed, the process proceeds from step S7 to step S8.
[0025]
In step S8, the second count value m is compared with the second threshold value C2, and if m> C2, the process proceeds to step S9 to determine that the transmission rate Fs is the rate A. Otherwise, the step S10 Then, it is determined that the transmission rate Fs is another rate B, and the rate discrimination algorithm for one time is finished.
[0026]
Of course, it goes without saying that the above-described measurement period Tc and the second threshold C2 are set so that the transmission rate Fs can be identified. For example, if the transmission rate is Fs = 48 kHz and 44.1 kHz in a format having a predetermined pattern that occurs only once per frame, the measurement period Tc is set to 1 kHz (1 ms). If Fs = 48 kHz signal, the number of times m = “48” should be counted, and if Fs = 44.1 kHz, the number of times m = “44” should be counted. Accordingly, by setting C2 = “46” or so as the reliable second threshold value C2 including the asynchronous error, Fs = 48 kHz / 44.1 kHz can be reliably identified. Further, when there are two or more rates to be identified, a plurality of second threshold values C2 can be prepared as C2 = C21, C22,.
[0027]
Thus, according to one embodiment of the present invention, not only the first threshold value C1x is used, but also the number of occurrences that satisfy the first threshold value C1x is counted based on the result m obtained by counting in a certain measurement period Tc. Thus, when the first threshold C1x is set, the transmission rate is determined by using a fixed measurement clock frequency fc lower than a common measurement frequency. be able to. Furthermore, since the clock for extracting each bit data can be digitally generated by the fixed frequency fc, a data extraction circuit can be realized without using an analog PLL. Thereby, in an actual circuit, it is possible to suppress power consumption, and to ensure an operation margin with a low measurement frequency and stability due to a digital circuit configuration.
[0028]
[First threshold setting method]
A numerical value setting method will be described when the rate discrimination algorithm according to one embodiment of the present invention is applied when the SPDIF format signal (SPDIF signal) described in FIG. 1 is received. FIG. 3 shows a waveform diagram and a table (1) for explaining a first threshold setting method in rate discrimination according to the present invention. In FIGS. 3 a) and b), a maximum rate (for example, 48 kHz) of transmission rate Fs candidates (for example, 48 kHz, 44.1 kHz, 32 kHz) is defined as Fsmax, and three patterns 3T to 3T at the maximum rate Fsmax are illustrated. T (3T = 3Tmin, 2T = 2Tmin, T = Tmin) is shown. The fixed clock frequency fc used for rate discrimination (measurement of the first count value n) is fc = b · Fsmax [for example, b = 512, fc = 24.576 MHz = 512 ×, as shown in FIG. 48 kHz] and is not clear in the figure, but is a completely asynchronous clock with respect to the SPDIF signal to be discriminated.
[0029]
First, the input signal has three patterns 3T to T as shown in FIGS. 3A and 3B. However, the input signal does not depend on the polarity, and the wavelength (pattern length) 3T to T has a meaning. is there. The signal for bit strobe of each wavelength is the minimum pattern length T, that is, the frequency a · Fs which is a times the transmission rate Fs as described above, and at least the maximum rate as shown in FIG. For Fsmax, a · Fsmax must be established, and it must be generated from the fixed clock frequency fc shown in FIG.
[0030]
Therefore, for example, a = 128 and b = 512 can be set for the maximum rate Fsmax. In this case, the magnification c = b / a of the clock frequency fc with respect to the minimum pattern length T = Tmin at the maximum rate Fsmax is c = 4, and the period t of the measurement clock with the fixed frequency fc is t = Tmin / c = Tmin / 4 as shown in FIG. 3d).
[0031]
As a process for setting each threshold value, in order to simplify the explanation, first, when the measurement clock frequency fc is synchronized with the transmission rate Fs, the above numerical example (a = 128, b = 512, c = 4), the count values of the patterns 3T, 2T, and T at the respective transmission rates Fs = 48 kHz, 44.1 kHz, and 32 kHz are shown in columns (a), (b), and (c) of the table (1) in FIG. It is as follows. Here, when the transmission rate Fs of the SPDIF signal and the fixed frequency fc are asynchronous, it should be noted that an asynchronous error occurs at each location. For example, whether the measurement clock with the frequency fc = 512Fsmax is slightly faster or slower with crystal accuracy than the frequency a · Fs = 128Fs of the SPDIF signal pattern, an asynchronous error occurs with a width of about ± 1 clock (Ck). To do.
[0032]
Therefore, in this case, if the longest pattern 3T is detected from the table (1) for rate discrimination, the first count value m that can be counted at the fixed clock frequency fc for each transmission rate Fs is When Fs = 48 kHz in column A, m = “12 ± 1” (meaning “11” to “13”), and when Fs = 44.1 kHz in column B, m = “13 + 1” (“13”). Or “14”), and in the case of Fs = 32 kHz in column C, m = “18 ± 1” (“17” to “19”). Therefore, the transmission rate Fs of 48 kHz and 44.1 kHz has an overlap in the first count value m that can be measured and cannot be completely identified.
[0033]
[Second threshold setting method]
Therefore, in the present invention, a method is used in which the measurement period Tc is provided and the number of detections of the longest pattern 3T is determined by the second threshold C2. FIG. 4 shows a table (2) for explaining a second threshold setting method in rate discrimination according to the present invention. This table (2) sets the measurement period Tc to k times the one cycle of the maximum rate Fsmax = 48 kHz of the transmission rate Fs, and k = 8, 16, 24, 32 (Tc = 166.7 μs, 333). (3 μs, 500 μs, 666.7 μs), the number of subframes (P) at each transmission rate Fs = 48 kHz (A), 44.1 kHz (B), 32 kHz (C) ), The number of detections (Q) of the longest pattern 3T and the second threshold value C2. As a result, the measurement period magnification k = 32, that is, the measurement period Tc = 666.7 μs (48 kHz / 32 = 1.5 kHz in terms of frequency) is extended to 48 kHz of the transmission rate Fs by the second threshold C2. And 44.1 kHz can be discriminated.
[0034]
In addition to the method of setting the second threshold C2 by the number of detections of the longest pattern 3T, the number of detected preambles can be set as the second count value. In this case, as described above, Therefore, the second threshold C2 may be set to “46” with Tc = 1 ms (1 kHz frequency).
[0035]
[Specific example of rate discrimination algorithm]
FIG. 5 shows a more detailed example of the rate discrimination algorithm according to one embodiment of the present invention. In step R1, when the first count value n corresponding to each pattern length is obtained with respect to the first threshold value Clx, the comparison is sequentially performed in subsequent steps R2 to R4. In step R2, it is determined whether or not 2 <n <19. When 2 <n <19, the process proceeds to step R3. When n ≦ 2 or n ≧ 19, the range of maximum 3T / minimum T is set. This is a case where an excessive pattern length is input. In this case, the process proceeds to step R5 and is treated as an error. For example, it is possible to determine a state in which no signal is input. Accordingly, when the routine proceeds to step R5, the error flag f0 is set and the routine proceeds to step R6, where the calculation operation of the second count value m (function of step R8) to be described later is reset.
[0036]
On the other hand, in step R3, it is further determined whether or not n <16. If n <16, the process proceeds to step R4. Otherwise, if n ≧ 16 (16 ≦ n ≦ 18), the process proceeds to step R4. Proceeding to R7, it is determined that Fs = 32 kHz alone, and the first state flag f1 representing the state of Fs = 32 kHz is set, and then the processing proceeds to step R6. In this case, as a process for demodulating the data bits of the SPDIF reception signal, step R7 ′ is inserted between steps R3 and R7 as indicated by a broken line, and a strobe clock for data bit demodulation is switched (a bit extraction pulse train described later). (See p1 and p2). If n <16 and the process proceeds to step R4, it is determined in this step R4 whether or not 10 ≦ n ≦ 15. If 10 ≦ n ≦ 15, the process proceeds to step R8, and if not, the process proceeds to step R1. Return.
[0037]
Here, when 10 ≦ n ≦ 15, it is a case where the longest pattern 3T at the time of Fs = 48 kHz or 44.1 kHz is detected. This is the second count value corresponding to the second threshold value C2 in step R8. Find m. At this time, the second count value m is counted by the m counter in the measurement period Tc = 666.7 μs (1.5 kHz), and the process proceeds to step R9. In Step R9, the second count value m is determined by the second threshold C2, and specifically, it is determined whether m <92. Here, when m <92, the process proceeds to step R10 to set Fs = 44.1 kHz, sets the second state flag f2 indicating the state of Fs = 44.1 kHz, and then proceeds to step R6. Otherwise, the process proceeds to step R11 to set Fs = 48 kHz, sets a third state flag f3 representing the state of Fs = 48 kHz, and then proceeds to step R6. That is, it is determined that Fs is 48 kHz or 44.1 kHz depending on whether the second count value m is larger or smaller than the second threshold C2 = 92.
[0038]
In step R6, the results obtained in steps R7, R10, and R11 are latched and output in units of the measurement period Tc, and the m counter that counts the second count value m is reset to clear the contents. At the same time, in the next step R12, the error flag f0 is canceled when the error is not the error described above, that is, when any of the first to third state flags f1, f2, and f3 is detected. To do.
[0039]
[Transmission rate discrimination and data extraction circuit example]
FIG. 6 shows a transmission rate discrimination and data extraction circuit according to an embodiment of the present invention. The transmission rate discrimination and data extraction circuit RS shown in FIG. 6 is an example of a circuit that realizes the above-described transmission rate discrimination algorithm, and includes a change point detection circuit 1 that detects a change point (edge) of the input signal Si, and wavelength measurement. A first counter 2, a first comparison circuit 3, a decoder 4, a switching circuit 5, a demodulation circuit 6, a timing circuit 7 for generating a measurement timing signal for determining a measurement period Tc, and a maximum wavelength. A second counter 8 for counting the number of detected times m, a second counter 8 for counting the number of times of detection of the predetermined pattern, a second comparison circuit 9 for the second threshold C2, and an output circuit for latching each output state from both comparison circuits 3 and 9 in the measurement period Tc. 10, the rate discrimination block RD is mainly composed of the circuits 1 to 3 and 7 to 10, and the data extraction block DS is composed of the circuits 4 to 6. That.
[0040]
The input signal Si is, for example, a modulated signal in SPDIF format, and the clock Ck is set to a fixed frequency fc of 24.576 MHz as in the above example. The change point detection circuit 1 detects the change point (edge) of the pattern of the SPDIF input signal Si using the clock Ck, and the wavelength measurement counter 2 detects from the change point of the detected pattern of the signal Si to the change point. Count with clock Ck.
[0041]
The first count value n output from the first counter 2 represents the wavelength of the predetermined pattern of the input signal Si, and is compared with a predetermined first threshold C1x = C10 to Cl2 by the first comparison circuit 3, The decoder 4 generates timing pulse trains p1 and p2 of the frequency a · Fs (= 128Fs) for extracting the preamble and data bits with respect to the transmission rate Fs that is input to the decoder 4 and assumed for the input signal Si. .
[0042]
More specifically, the decoder 4 can output two types of bit extraction pulse trains p1 and p2 assuming (a) Fs = 32 kHz and (b) other (Fs = 48 kHz and Fs = 44.1 kHz). These pulse trains p1 and p2 are switched to either one by the switching circuit 5 and output to the demodulation circuit 6, and are used to demodulate the input signal Si. The output switching of the bit extraction pulse trains p1 and p2 by the switching circuit 5 is determined by whether or not the transmission rate Fs = 32 kHz is detected as a result of determining the first count value n in the first comparison circuit 3, and (a) Fs When detecting = 32 kHz, the corresponding pulse train p1 is output. (B) Otherwise, the pulse train p2 is output. In the demodulating circuit 6, the Biφ modulation of the SPDIF input signal Si is demodulated using the bit extraction pulse train p1 or p2 from the switching circuit 5, and at the same time, each data is serial-parallel converted in units of words to extract data. The extracted data SD is output.
[0043]
The first comparison circuit 3 determines that the first count value n is n <3 with respect to the minimum value “3”, the maximum value “18”, and the intermediate values “10” and “16” of the first threshold C1x, for example. When n> 18, the error signal Sf0 is output to the timing circuit 7 and the latch circuit 10, and when 16 ≦ ns ≦ 18, the first determination signal Sf1 representing the transmission rate Fs = 32 kHz is output to the switching circuit 5 and the latch circuit 10. Output to. Further, when 10 ≦ n <16, a second determination signal Sfa representing other values (Fs = 48 kHz and Fs = 44.1 kHz) is output from the comparison circuit 3, and the number of times this signal Sfa is generated is counted second. The value m is counted by the second counter 8.
[0044]
The measurement period Tc for counting the number m is determined by a measurement timing signal generated by the timing circuit 7 that divides the clock Ck by the timing circuit 7. In this example, a measurement timing signal Stc of 1.5 kHz is output from the timing circuit to the second counter 8, and the measurement period Tc of the number m of times in the second counter 8 is defined. The second count value m counted during the period of the measurement timing signal Stc is given from the second counter 8 to the second comparison circuit 9, where it is compared with the second threshold C2 = “92”. As a result of this comparison, it is determined whether Fs = 48 kHz or 44.1 kHz, and a third determination signal Sfb representing the determination content is output to the latch circuit 10.
[0045]
In the latch circuit 10, the signals Sf0, Sf1, and Sfb are latched in units of a predetermined measurement period Tc by the timing signal Stc from the timing circuit 7, and the state data f0 to f3 representing the corresponding contents are output at the same timing. Is done. For example, the error flag f0 and the first state flag f1 are output in response to the error signal Sf0 and the first determination signal Sf1 from the first comparison circuit 3, respectively. Further, the second or third state flags f2 and f3 are output according to the content (Fs = 48 kHz or Fs = 44.1 kHz) represented by the third determination signal Sfb input from the second comparison circuit 9.
[0046]
〔The invention's effect〕
As described above, according to the present invention, the transmission rate is determined by targeting a specific arbitrary pattern in the digital interface signal. In this case, the transmission rate is determined only by determining the pattern length based on the predetermined first threshold value C1x. In addition to determining the transmission rate, a process for counting the number of occurrences of the predetermined pattern length in a certain measurement period Tc is added to determine the transmission rate. Therefore, it is possible to realize transmission rate discrimination using a lower fixed frequency for pattern length discrimination.
[0047]
Further, according to the present invention, it is possible to digitally generate a clock for extracting each bit data at the fixed frequency, so that a data extraction circuit can be realized without using an analog PLL. As a result, power consumption can be suppressed in an actual circuit, and an operation margin due to a low frequency and stability due to a digital circuit configuration can be ensured.
[Brief description of the drawings]
FIG. 1 is a diagram for explaining a transmission format (“SPDIF format”) to which the present invention is applicable.
FIG. 2 is a flowchart showing a transmission rate discrimination algorithm according to one embodiment of the present invention.
FIG. 3 is a waveform diagram and a table (1) for explaining a first threshold setting method in a transmission rate discrimination algorithm according to an embodiment of the present invention.
FIG. 4 is another table (2) for explaining a second threshold setting method in the transmission rate discrimination algorithm according to one embodiment of the present invention.
FIG. 5 is a flowchart showing a more detailed example of a transmission rate determination algorithm according to an embodiment of the present invention.
FIG. 6 is a diagram showing a transmission rate discrimination and data extraction circuit according to one embodiment of the present invention.
[Explanation of symbols]
Fs transmission rate (sampling frequency),
T Minimum pattern length or shortest pattern,
2T bit rate compatible pattern length (corresponding to 1 time slot),
3T maximum pattern length or longest pattern,
PA preamble pattern,
n First count value (pattern length count value),
m second count value (number of specific pattern detections),
Fsmax maximum rate (maximum transmission rate among candidates for transmission rate Fs),
Tmin Minimum pattern length at maximum rate Fsmax,
2Tmin Bit rate corresponding pattern length at maximum rate Fsmax,
3Tmin Maximum pattern length at maximum rate Fsmax,
fc Measurement clock frequency with period t,
a Magnification factor for the transmission rate Fs of the frequency corresponding to the minimum pattern length,
b The magnification of the measurement clock frequency fc with respect to the maximum rate Fsmax,
c Measurement clock frequency magnification with respect to minimum pattern length Tmin,
RS transmission rate discrimination and data extraction circuit,
p1 bit extraction pulse train corresponding to transmission rate Fs = 32 kHz,
p2 bit extraction pulse train corresponding to transmission rate Fs = 44.1 kHz / 48 kHz,
error flag obtained based on the f0 error signal Sfo,
f1 a first state flag obtained based on the first determination signal Sf1,
Sfa second discrimination signal,
f2, f3 second and third state flags obtained based on the contents of the third discrimination signal Sfb,
f4 State confirmation result flag.

Claims (4)

予め定められた複数種類の伝送レートのうちの何れかの伝送レートで伝送されるディジタルインターフェイス信号を再生するディジタルインターフェイスにおいて、
伝送されるディジタルインターフェイス信号中の特有のパターンについて、そのパターン長を固定周波数のクロックで計測するステップと、
計測された各パターン長から所定のパターン長を検出するパターン長検出ステップと、
所定期間における所定のパターン長の検出回数を算出する検出回数算出ステップと、
算出された検出回数を判別するステップと、
判別された検出回数に基づいて、伝送されるディジタルインターフェイス信号の伝送レートを判別するステップと
を備えることを特徴とする伝送レート判別方法。
In a digital interface for reproducing a digital interface signal transmitted at any one of a plurality of predetermined transmission rates,
Measuring a pattern length with a fixed frequency clock for a specific pattern in a transmitted digital interface signal;
A pattern length detection step for detecting a predetermined pattern length from each measured pattern length;
A detection frequency calculation step for calculating the detection frequency of a predetermined pattern length in a predetermined period;
Determining the calculated number of detections;
Determining the transmission rate of the transmitted digital interface signal based on the determined number of detections.
予め定められた複数種類の伝送レートのうちの何れかの伝送レートで伝送されるディジタルインターフェイス信号を再生するディジタルインターフェイスにおいて、
伝送されるディジタルインターフェイス信号中の特有のパターンについて、そのパターン長を固定周波数のクロックで計測するステップと、
計測された各パターン長から所定のパターン長を検出するパターン長検出ステップと、
所定期間における所定のパターン長の検出回数を算出する検出回数算出ステップと、
算出された検出回数を判別するステップと、
判別されたパターン長乃至検出回数に基づいて、伝送されるディジタルインターフェイス信号の伝送レートを判別するステップと
を備えることを特徴とする伝送レート判別方法。
In a digital interface for reproducing a digital interface signal transmitted at any one of a plurality of predetermined transmission rates,
Measuring a pattern length with a fixed frequency clock for a specific pattern in a transmitted digital interface signal;
A pattern length detection step for detecting a predetermined pattern length from each measured pattern length;
A detection frequency calculation step for calculating the detection frequency of a predetermined pattern length in a predetermined period;
Determining the calculated number of detections;
Determining a transmission rate of a digital interface signal to be transmitted based on the determined pattern length or number of detections.
パターン長検出ステップにおいて、計測されたパターン長について、当該ディジタルインターフェイスフォーマット上発生し得ない過少又は過大なパターン長を検出した場合は、検出回数算出ステップにおける動作をリセットし、改めて所定期間の計時及び検出回数の算出動作を開始させるように制御することを特徴とする請求項1又は2に記載の伝送レート判別方法。In the pattern length detection step, when an insufficient or excessive pattern length that cannot be generated in the digital interface format is detected for the measured pattern length, the operation in the detection number calculation step is reset, The transmission rate determination method according to claim 1, wherein control is performed so as to start a calculation operation of the number of detection times. 予め定められた複数種類の伝送レートのうちの何れかの伝送レートで伝送されるディジタルインターフェイス信号を再生するディジタルインターフェイスにおいて、
伝送されるディジタルインターフェイス信号中の特有のパターンについて、そのパターン長を固定周波数のクロックで計測する第1カウンタと、
計測されたパターン長を第1閾値と比較し所定パターン長を検出する第1比較回路と、
所定期間中に第1比較回路で所定パターン長が検出された回数を算出する第2カウンタと、
算出された回数を第2閾値と比較し判別する第2比較回路と、
判別された回数に基づいて、伝送されるディジタルインターフェイス信号の伝送レート情報を出力する出力回路と
を具備することを特徴とする伝送レート判別回路。
In a digital interface for reproducing a digital interface signal transmitted at any one of a plurality of predetermined transmission rates,
A first counter that measures a pattern length of a specific pattern in a transmitted digital interface signal with a clock having a fixed frequency;
A first comparison circuit that compares the measured pattern length with a first threshold and detects a predetermined pattern length;
A second counter for calculating the number of times the predetermined pattern length is detected by the first comparison circuit during the predetermined period;
A second comparison circuit for comparing and determining the calculated number of times with a second threshold;
An output circuit for outputting transmission rate information of a digital interface signal to be transmitted based on the determined number of times.
JP2000060073A 2000-03-06 2000-03-06 Transmission rate discrimination method and circuit Expired - Fee Related JP4314717B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2000060073A JP4314717B2 (en) 2000-03-06 2000-03-06 Transmission rate discrimination method and circuit
US09/799,972 US6888886B2 (en) 2000-03-06 2001-03-06 Interface apparatus and method for receiving serially-transmitted data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000060073A JP4314717B2 (en) 2000-03-06 2000-03-06 Transmission rate discrimination method and circuit

Publications (2)

Publication Number Publication Date
JP2001251285A JP2001251285A (en) 2001-09-14
JP4314717B2 true JP4314717B2 (en) 2009-08-19

Family

ID=18580439

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000060073A Expired - Fee Related JP4314717B2 (en) 2000-03-06 2000-03-06 Transmission rate discrimination method and circuit

Country Status (1)

Country Link
JP (1) JP4314717B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005074220A1 (en) * 2004-01-28 2005-08-11 Matsushita Electric Industrial Co., Ltd. Data transmitter, data receiver, and data transmission method
US20060034388A1 (en) * 2004-01-28 2006-02-16 Yuji Mizuguchi Data sending device, data receiving device, transmission path encoding method, and decoding method
JP4634307B2 (en) * 2006-01-12 2011-02-16 ルネサスエレクトロニクス株式会社 Semiconductor device
JP5087942B2 (en) * 2007-02-09 2012-12-05 ヤマハ株式会社 Transmission rate discriminating circuit and digital signal demodulating device having the circuit
JP4992551B2 (en) * 2007-05-30 2012-08-08 ソニー株式会社 Digital signal transmission apparatus, digital signal transmission method and digital signal transmission system
JP5053232B2 (en) * 2008-10-31 2012-10-17 三菱電機株式会社 Communication speed detection device and communication device

Also Published As

Publication number Publication date
JP2001251285A (en) 2001-09-14

Similar Documents

Publication Publication Date Title
US6888886B2 (en) Interface apparatus and method for receiving serially-transmitted data
US7466772B2 (en) Decoding coded data streams
US4862443A (en) Sync signal detection apparatus for accurately synchronizing reproduced data
JPH02183471A (en) Signal recording and reproducing system
JP4314717B2 (en) Transmission rate discrimination method and circuit
JP3395210B2 (en) Synchronous signal detector and synchronous signal detection method
WO2001073785A1 (en) Data reproducing device
JP4419257B2 (en) SPDIF signal receiving circuit
JP5087942B2 (en) Transmission rate discriminating circuit and digital signal demodulating device having the circuit
JP3662985B2 (en) Synchronization and bit information detection device
JP3956525B2 (en) Sync signal detection protection circuit
JP3171205B2 (en) Modulation frequency detection circuit
JP2008008811A (en) Method and device for detecting jitter
JP3668617B2 (en) Digital audio interface signal demodulation circuit
JP4021113B2 (en) Digital audio interface signal demodulator
CN108564957B (en) Code stream decoding method and device, storage medium and processor
JP2004022106A (en) Device for demodulating digital audio interface signal
JPS6213747B2 (en)
JPH0793904A (en) Information recording apparatus, information reproducing apparatus and optical disk
JP3428358B2 (en) Time code signal reader
JP2007251879A (en) Digital audio interface signal demodulation circuit
JPH0130238B2 (en)
JPH0668884B2 (en) Data reproduction method
JPH05244140A (en) Method for detecting synchronous signal and device
JPS62241176A (en) Reproducing and demodulating device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070305

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090422

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 or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120529

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130529

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140529

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees