JP3921821B2 - Sampling frequency converter and electronic apparatus equipped with the same - Google Patents

Sampling frequency converter and electronic apparatus equipped with the same Download PDF

Info

Publication number
JP3921821B2
JP3921821B2 JP19478298A JP19478298A JP3921821B2 JP 3921821 B2 JP3921821 B2 JP 3921821B2 JP 19478298 A JP19478298 A JP 19478298A JP 19478298 A JP19478298 A JP 19478298A JP 3921821 B2 JP3921821 B2 JP 3921821B2
Authority
JP
Japan
Prior art keywords
sampling frequency
variable
storage
sample value
out storage
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
JP19478298A
Other languages
Japanese (ja)
Other versions
JP2000031947A (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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP19478298A priority Critical patent/JP3921821B2/en
Publication of JP2000031947A publication Critical patent/JP2000031947A/en
Application granted granted Critical
Publication of JP3921821B2 publication Critical patent/JP3921821B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は標本化周波数変換装置に関し、さらに詳しくは標本化周波数を変換するための自動制御による標本化周波数変換装置に関する。
【0002】
【従来の技術】
図5は従来の標本化周波数変換装置の概略構成を示したブロック図である。情報が標本化手段1において、標本化周波数F1 により標本化された信号となる。該信号が第1の装置19に入力され、標本化周波数F1 と同期し、且つF1 のn倍(nは整数)の標本化周波数n×F1 によりオーバーサンプリングフィルタ4において再び標本化される。また、必要に応じて折り返し信号を取り除かれた後、第2の装置20に入力される。入力された信号は標本化手段9において標本化周波数F2 で標本化された情報となる。また、標本化周波数F1 と標本化周波数F2 の周波数比によっては標本化手段9の前段に標本値を補間する標本値補間手段が設けられることもある(図示せず)。
【0003】
一方、標本化周波数F1 と標本化周波数F2 の間にはn×F1 =m×F2 の関係がある(n、mは整数)。標本化周波数nF1 は計数手段8により(m/n)倍され標本化周波数F2 と等しくなる。計数手段8の出力は第2の装置20の標本化周波数F2 と比較手段7において位相比較される。比較手段7の出力により周波数可変手段6の出力周波数が制御される。この結果、第2の装置20に内在する標本化周波数F2 と第1の装置に内在する標本化周波数F1 の位相が同期される。
【0004】
以上により、標本化周波数F1 で標本化された情報が標本化周波数F2 に変換されることが説明された。周波数可変手段6、計数手段8、および比較手段7によって構成されるフィードバック制御ループはいわゆるPLL(位相同期制御ループ、以下PLLと記す)と呼ばれるものである。
【0005】
前述した第1の装置19とは、例えばパーソナルコンピュータやセットトップボックスなどであり、第2の装置20は、例えば、第1の装置19と位相同期して使用される音声モジュールやビデオモジュールなどの電子装置や音響機器、ビデオ機器などの電子機器である。近年、パーソナルコンピュータ、セットトップボックス、音響機器、ビデオ機器、携帯電話などがネットワークされて用いられるに伴い、位相同期しつつ、且つ標本化周波数の変換を容易に行い得る標本化周波数変換装置が求められている。
【0006】
【発明が解決しようとする課題】
従来の標本化周波数変換装置においては下記の問題があった。すなわち、PLL23は計数手段8において、前述した(m/n)を決定する必要があるため、予め標本化周波数F1 と標本化周波数F2 の関係を計測して知っておく必要があった。すなわち、標本化周波数F2 と標本化周波数F1 の両方を知らないと第1の装置19と、第2の装置20の間の位相同期をとり標本化周波数の変換を行うことができないという問題があった。
【0007】
また従来の標本化周波数変換装置においては、PLL23は殆ど全ての場合、ハードウェアによって構成され、このため、ある特定の装置と他の特定の装置との間でのみ、ある特定のPLLを設けるというように制限がつくことになり、自由度がなかった。また、これらのハードウェアによって構成されたPLLを内蔵する装置が、そのPLLの分だけ構成規模が大きくなるという問題があった。
【0008】
本発明はこのような点に鑑みてなされたものであり、標本化周波数F1 と標本化周波数F2 の比を予め計測して知る必要もなく、また、ソフトウェアで構成でき、任意の装置間を位相同期して標本化周波数変換を行い得る標本化周波数変換装置およびこれを具備した電子機器を提供することを課題とする。
【0009】
【課題を解決するための手段】
前述の課題を解決するために、本発明の標本化周波数変換装置およびこれを具備した電子機器においては、第1の標本化周波数で標本化された情報を、未知の標本化周波数で標本化された情報に変換する標本化周波数変換装置であって、第1の標本化周波数で標本化された情報より、補間標本値を算出して、可変標本化周波数で標本化する標本値補間手段と、補間標本値を可変標本化周波数で記憶するための先入れ先出し記憶手段と、先入れ先出し記憶手段に記憶された補間標本値を、未知の標本化周波数で読み出し、且つ読み出された補間標本値の記憶を先入れ先出し記憶手段中より削除する読み出し手段と、先入れ先出し記憶手段中の補間標本値の数量を観測する記憶占有量観測手段と、記憶占有量観測手段の制御により、可変標本化周波数を生成する可変標本化周波数生成手段と、可変標本化周波数の初期位相を設定するための可変標本化周波数初期位相設定手段とを具備することを特徴とする。
【0010】
また、本発明の標本化周波数変換装置およびこれを具備した電子機器の望ましい形態としては下記する如くである。
【0011】
標本値補間手段と、読み出し手段と、記憶占有量観測手段と、可変標本化周波数生成手段と、可変標本化周波数初期位相設定手段とをソフトウェアで構成し得るようにするものである。
【0012】
標本化周波数変換開始時においては、先入れ先出し記憶手段の記憶容量に占める補間標本値の数量の割合(以下記憶占有率と記す)が50%に達するまでは、読み出し手段により先入れ先出し記憶手段から補間標本値を読み出さないようにするものである。
【0013】
標本値補間手段と、先入れ先出し記憶手段と、読み出し手段と、記憶占有量観測手段と、可変標本化周波数生成手段と、可変標本化周波数初期位相設定手段とで構成される離散的フィードバック制御ループの制御収束に要する時間τと、可変標本化周波数生成手段により生成された任意のj番目の離散的フィードバック制御における可変標本化周波数を表すF2 ’(j)と、未知の標本化周波数F2 と、先入れ先出し記憶手段の記憶容量BFとの間に|∫t 0 {F2 −F2 ’(j)}dt|≦0.5×BF、(但し、0<t≦τ)なる関係が成立するように、先入れ先出し記憶手段の記憶容量BFを確保し得るようにするものである。
【0014】
上記した手段による作用について以下に記す。
前述した先入れ先出し記憶手段および記憶占有量観測手段は、標本値補間手段からの先入れ先出し記憶手段への標本値を記憶する速度と読み出し手段による先入れ先出し記憶手段からの読み出し速度が等しくなった時点で、可変標本化周波数生成手段の生成する可変標本化周波数F2 ’(j)は読み出し手段の読み出し速度であるところの未知の標本化周波数F2 に等しくなる。
【0015】
標本値補間手段、記憶占有量観測手段、可変標本化周波数生成手段、および可変標本化周波数初期位相設定手段はマイクロコンピュータを用いた電子機器の制御プログラムの一部を利用してソフトウェアにより構成し得る。
【0016】
【発明の実施の形態】
本発明は、第1の標本化周波数で標本化された情報を、第2の標本化周波数で標本化された情報に変換する標本化周波数変換装置およびこれを具備した電子機器に適用することができる。第2の標本化周波数は未知であってもよい。図1は本発明の標本化周波数変換装置41の概略構成を示したブロック図である。情報が標本化手段30によって標本化周波数F1 で標本化され、さらにオーバーサンプリングフィルタ34によって標本化周波数F1 の整数倍である標本化周波数n×F1 (nは整数)で標本化される。また、必要に応じて折り返し信号が除去される。
【0017】
前述したように、オーバーサンプリングフィルタ34のカットオフ周波数は、標本化周波数F1 と未知の標本化周波数F2 との間にナイキスト条件が成立しないとき、標本化周波数F1 で標本化された情報を未知の標本化周波数F2 で直接標本化することにより生ずる折り返し信号を防止するよう、設定しなくてはならない。
【0018】
オーバーサンプリングフィルタ34の出力は後述する標本値補間手段35に入力される。標本値補間手段35の出力は先入れ先出し記憶手段37に記憶される。先入れ先出し記憶手段37は、いわゆるFIFOと呼ばれるもので、最初に記憶された補間標本値が最初に読み出されるような記憶手段である。記憶された補間標本値は読み出し手段38により、第2の標本化周波数(未知の標本化周波数)F2 で先入れ先出し記憶手段37から読み出される。読み出し手段38は補間標本値を読み出すとともに、読み出した補間標本値の記憶を削除する。
【0019】
記憶占有量観測手段39は先入れ先出し記憶手段37中の補間標本値の数量が、一定期間T経過後に観測して、増大する場合は、標本値補間手段35から先入れ先出し記憶手段37への記憶速度が、先入れ先出し記憶手段37からの読み出し速度よりも速いと判断し、減少する場合は、標本値補間手段35から先入れ先出し記憶手段37への記憶速度が、先入れ先出し記憶手段37からの読み出し速度よりも遅いと判断する。
【0020】
記憶占有量観測手段39は前述の標本値補間手段35から先入れ先出し記憶手段37への記憶速度と、先入れ先出し記憶手段37からの読み出し速度との関係により、可変標本化周波数生成手段40を制御し、標本値補間手段35の可変標本化周波数F2 ’(j)を制御する。この結果、標本値補間手段35から先入れ先出し記憶手段37への補間標本値を記憶する速度と、読み出し手段38による読み出し速度は等しくなる。すなわち、可変標本化周波数生成手段40の生成する可変標本化周波数F2 ’(j)は読み出し速度を決める第2の標本化周波数(未知の標本化周波数)F2 と等しくなる。
【0021】
ここで、jは整数であり、前述した標本値補間手段と、先入れ先出し記憶手段と、読み出し手段と、記憶占有量観測手段と、可変標本化周波数生成手段と、可変標本化周波数初期位相設定手段とで構成される離散的フィードバック制御ループの第j番目を示すインデックスであり、可変標本化周波数F2 ’(j)は第j番目の離散的フィードバックにおける可変標本化周波数である。
【0022】
次に、標本値補間手段35の動作について説明する。図2はオーバーサンプリングフィルタ34からの出力標本値を可変標本化周波数生成手段40からの標本化周波数により標本化し、標本値補間手段35を用いて補間する動作を説明するためのものである。
【0023】
図2において、周期T0 はオーバーサンプリングフィルタ34の標本化周波数の周期であり、T0 =1/(標本化周波数n×F1 )である。また、周期T2 ’(j)は可変標本化周波数生成手段40からの可変標本化周波数F2 ’(j)の周期である。オーバーサンプリングの標本点の任意の位置k×T0 (B点)と(k+1)×T0 (C点)の間にi番目の標本点位置i×T2 ’(j)(A点)が入るとする。但しi,kは任意の整数であり、後述する関係を有する。この場合、オーバーサンプリングの標本化周期T0 で、且つB点を基準にしたC点の位相を求めると下記式(1)のようになる。
【0024】
2π×{(i×T2 ’(j)−k×T0 )/T0 } (1)
但し i×T2 ’(j)>k×T0
次に、標本化手段30の標本化周波数F1 の周期をT1 とすると、T1 =n×T0 であるから、これを用いて式(1)を書き直すと下記式(2)となる。
Φ=2π×{i×n×(T2 ’(j)/T1 )−k} (2)
ここで、(T2 ’(j)/T1 )=m(j)とすると、下記式(3)が成立する。
Φ=2π×{i×n×m(j)−k} (3)
次に、iとkとは次のような関係にある。例えば、m(j)=T2 ’(j)/T1 =1.2で、n=3であったとすると、i=1,2,3,…のとき、i×n×m(j)=3.6,7.2,10.8になり、このとき、k=3,7,10…となる。すなわち、kはi×n×m(j)の値の小数点以下切り捨てとなっている。この小数点以下切り捨てのことを[i×n×m(j)]と書くことにすればk=[i×n×m(j)]である。よって、式(3)を書き直して下記式(4)を得る。
Φ=2π×{i×n×m(j)−[i×n×m(j)]}(4)
【0025】
前述の式(4)によって、標本化周波数F1 の周期T1 で正規化された場合の標本点Aの位置はi×n×m(j)であり、標本点Bの位置はk=[i×n×m(j)]であらわされることになる。図3は図2のA、B、Cの標本点を部分的に取り出して示したものである。図3において、標本点Gを標本点Dと標本点Fによって下記式(5)のように補間して補間標本値Y(i,j)を得る。

Figure 0003921821
【0026】
前述したように、可変標本化周波数生成手段40は、記憶占有量観測手段39からの制御信号により可変標本化周波数F2 ’(j)の周期T2 ’(j)を読み出し手段38の読み出し周波数、すなわち、第2の標本化周波数(未知の標本化周波数)F2 の周期T2 に近づけていき、最終的には未知の標本化周波数F2 に等しくなる。すなわち、標本化周波数の変換の観点からすれば、標本化周波数F1 と標本化周波数F2 の比を予め計測して知ることなく、標本化周波数F1 により標本化された情報が第2の標本化周波数(未知の標本化周波数)F2 で標本化された情報に変換されたことになる。
【0027】
可変標本化周波数初期位相設定手段36は、図1に示されたように、可変標本化周波数生成手段40の生成する可変標本化周波数F2 ’(j)(周期T2 ’(j))の初期位相を設定するものである。
【0028】
図4は、以上説明した本発明の標本化周波数変換装置41の詳細な動作を示すフローチャートである。主要な部分の補足説明を以下に行うと共に、本発明の標本化周波数変換装置41の望ましい形態についても説明する。
「S−6」先入れ先出し記憶手段37の記憶占有率が50%になるまで、先入れ先出し記憶手段37からの補間標本値の読み出しを行わず待機している状態である。これは、先入れ先出し記憶手段37への補間標本値の記憶される速度と該補間標本値の読み出される速度が平衡にいたるまでの時間、すなわち、標本値補間手段35と、先入れ先出し記憶手段37と、記憶占有量観測手段39と、可変標本化周波数生成手段40と、可変標本化周波数初期位相設定手段36からなる離散的フィードバック制御ループの制御が収束されるまでの間の、先入れ先出し記憶手段37から読み出し手段38により、未知の標本化周波数F2 で読み出す補間標本値数を確保し、記憶占有量観測手段39が先入れ先出し記憶手段37中の補間標本値の数量を観測できるように初期設定するためである。すなわち、先入れ先出し記憶手段37の記憶占有率は50%を境に増減する。これは本発明の標本化周波数変換装置およびこれを具備した電子機器の望ましい形態の一つである。
【0029】
また、本発明の標本化周波数変換装置41の望ましい形態の一つは、未知の標本化周波数F2 と、補間標本値の先入れ先出し記憶手段37への記憶周波数、すなわち、可変標本化周波数生成手段40からの標本化周波数F2 ’(j)と、標本値補間手段35と、先入れ先出し記憶手段37と、記憶占有量観測手段39と、可変標本化周波数生成手段40と、可変標本化周波数初期位相設定手段36からなる離散的フィードバック制御ループの制御収束に必要な時間τと、先入れ先出し記憶手段37の記憶容量BFとの間に、下記式(6)が成立するのが望ましい。
|∫t 0 {F2 −F2 ’(j)}dt|≦0.5×BF(6)
但し 0<t≦τ
ここで、式(6)の左辺の| |は絶対値を示し、|∫t 0 {F2 −F2 ’(j)}dt|は前述のフィードバック制御の任意の時刻tに於ける、先入れ先出し記憶手段37の補間標本値の増量または減量を示している。
【0030】
式(6)の右辺BFは先入れ先出し記憶手段37の確保すべき記憶容量を示し、前述したように、初期状態では先入れ先出し記憶手段37の記憶占有率が50%に設定されることを考慮して0.5を掛けてある。、すなわち、以上のことから、先入れ先出し記憶手段37の補間標本値の増減の最大量は、前述の離散的フィードバック制御が収束するまでの間、先入れ先出し記憶手段37の記憶容量の半分以下でなくてはならない。本発明の標本化周波数変換装置においては、この記憶容量BFが、如何なる未知の標本化周波数に対しても確保される。
【0031】
「S−13〜S−18」Buf(j)は先入れ先出し記憶手段37中の補間標本値の数量であり、ここで、jとは補間標本値が先入れ先出し記憶手段37へ記憶される周波数、すなわち、可変標本化周波数生成手段40からの標本化周波数F2 ’(j)の場合と同じインデックスである。
【0032】
すなわち、前述した一定期間T毎に現在の先入れ先出し記憶手段37の記憶容量占有率Buf(j)と前回の先入れ先出し記憶手段37の記憶容量占有率Buf(jー1)の差DBufを測定し、DBuf=0の場合は、何もせず観測を続け、DBuf>0の場合は可変標本化周波数生成手段40の可変標本化周波数F2 ’(j)の降下の命令をだし、DBuf<0の場合は上昇の命令を生成する。
【0033】
「S−2」フィードバック制御の始まりに際して、初期標本化周波数m(0)を可変標本化周波数生成手段40にて決め、初期位相を可変標本化周波数初期位相設定手段36にて決定する。但し、m(0)=(標本化周波数F1 /可変標本化周波数F2 ’(j))である。
【0034】
「S−3〜S−5」オーバーサンプリングフィルタ34からの標本を、可変標本化周波数生成手段40からの標本化周波数F2 ’(j)の標本点の位置で標本値補間手段35により補間し、先入れ先出し記憶手段37に記憶する。
【0035】
以上によって本発明の標本化周波数変換装置41の詳細な説明がなされた。本発明の標本化周波数変換装置およびこれを具備した電子機器の望ましい形態の一つは、以上に説明した、標本値補間手段と、読み出し手段と、記憶占有量観測手段と、可変標本化周波数生成手段と、可変標本化周波数初期位相設定手段とをソフトウェアで構成し得ることである。このように構成すれば、既存の電子機器の用いているマイクロコンピュータのソフトウェアの一部を利用することもでき、電子機器の構成規模を小型にすることができる。
【0036】
また、標本化周波数変換装置41はパーソナルコンピュータやセットトップボックスなどに具備して、他の装置、例えば、音声モジュールやビデオモジュール、音響機器、ビデオ機器、携帯電話などの電子機器とネットワークする場合に、これら他の装置の標本化周波数(前述の読み出し手段38の読み出し周波数、すなわち第2の標本化周波数F2 に相当する)がたとえ未知であったとしても、標本化周波数変換を行うことができる。
【0037】
【発明の効果】
標本化周波数の違う2つの装置間にはいり、標本化周波数の変換を行い、一方の装置より他方の装置へ情報を伝達する場合、他方の装置の標本化周波数を予め計測して知ることなく、他方の装置の標本化周波数へ標本化周波数を変換して情報を伝達することが可能となった。
【図面の簡単な説明】
【図1】 本発明の標本化周波数変換装置の概略構成を示すブロック図。
【図2】 オーバーサンプリングフィルタの標本化周波数と標本値補間手段の標本化周波数の関係を示す略線図。
【図3】 図2の部分を拡大し、正規化を行い、標本値補間手段の動作を示す略線図。
【図4】 本発明の標本化周波数変換装置の詳細な動作手続きを示すフローチャート図。
【図5】 従来の標本化周波数変換装置の一例の概略構成を示すブロック図。
【符号の説明】
1,9,30,…標本化手段、5,8…計数手段、6…周波数可変手段、7…比較手段、4,34…オーバーサンプリングフィルタ、23…PLL(位相同期制御ループ)、19…第1の装置、20…第2の装置、35…標本値補間手段、36…可変標本化周波数初期位相設定手段、37…先入れ先出し記憶手段、38…読み出し手段、39…記憶占有量観測手段、40…可変標本化周波数生成手段、41…標本化周波数変換装置[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a sampling frequency converter, and more particularly to a sampling frequency converter by automatic control for converting a sampling frequency.
[0002]
[Prior art]
FIG. 5 is a block diagram showing a schematic configuration of a conventional sampling frequency converter. The information becomes a signal sampled by the sampling means 1 at the sampling frequency F 1 . The signal is input to the first device 19, synchronized with the sampling frequency F 1 , and resampled in the oversampling filter 4 with a sampling frequency n × F 1 which is n times F 1 (n is an integer). The Further, after the folding signal is removed as necessary, it is input to the second device 20. The input signal becomes information sampled at the sampling frequency F 2 in the sampling means 9. Depending on the frequency ratio between the sampling frequency F 1 and the sampling frequency F 2 , a sample value interpolation unit for interpolating the sample value may be provided before the sampling unit 9 (not shown).
[0003]
On the other hand, there is a relationship of n × F 1 = m × F 2 between the sampling frequency F 1 and the sampling frequency F 2 (n and m are integers). The sampling frequency nF 1 is multiplied by (m / n) by the counting means 8 and becomes equal to the sampling frequency F 2 . The output of the counting means 8 is phase-compared with the sampling frequency F 2 of the second device 20 in the comparison means 7. The output frequency of the frequency variable means 6 is controlled by the output of the comparison means 7. As a result, the phase of the sampling frequency F 2 inherent in the second device 20 and the phase of the sampling frequency F 1 inherent in the first device are synchronized.
[0004]
As described above, it has been explained that the information sampled at the sampling frequency F 1 is converted into the sampling frequency F 2 . The feedback control loop constituted by the frequency variable means 6, the counting means 8, and the comparison means 7 is a so-called PLL (phase-locked control loop, hereinafter referred to as PLL).
[0005]
The first device 19 described above is, for example, a personal computer or a set-top box, and the second device 20 is, for example, an audio module or a video module used in phase synchronization with the first device 19. Electronic devices such as electronic devices, audio equipment, and video equipment. In recent years, as personal computers, set-top boxes, audio equipment, video equipment, mobile phones, etc. are used in networks, there is a need for a sampling frequency converter that can easily perform sampling frequency conversion while synchronizing the phase. It has been.
[0006]
[Problems to be solved by the invention]
The conventional sampling frequency converter has the following problems. That is, since the PLL 23 needs to determine the above-mentioned (m / n) in the counting means 8, it is necessary to measure and know the relationship between the sampling frequency F 1 and the sampling frequency F 2 in advance. That is, unless both the sampling frequency F 2 and the sampling frequency F 1 are known, the phase synchronization between the first device 19 and the second device 20 cannot be achieved and the sampling frequency cannot be converted. was there.
[0007]
Further, in the conventional sampling frequency converter, the PLL 23 is configured by hardware in almost all cases. For this reason, a specific PLL is provided only between a specific device and another specific device. There was no degree of freedom. In addition, there is a problem in that a device having a built-in PLL constituted by these hardware has a larger configuration size by the amount of the PLL.
[0008]
The present invention has been made in view of the above points, and it is not necessary to previously measure and know the ratio of the sampling frequency F 1 and the sampling frequency F 2 , and can be configured by software, and can be configured between any devices. It is an object of the present invention to provide a sampling frequency converter capable of performing sampling frequency conversion in phase with each other and an electronic apparatus including the sampling frequency converter.
[0009]
[Means for Solving the Problems]
In order to solve the above-described problem, in the sampling frequency conversion device of the present invention and the electronic apparatus including the sampling frequency converter, information sampled at the first sampling frequency is sampled at an unknown sampling frequency. A sampling frequency conversion device for converting the information into the sampled information, wherein the sampled value interpolation means calculates the interpolated sample value from the information sampled at the first sampling frequency, and samples at the variable sampling frequency; First-in first-out storage means for storing interpolated sample values at a variable sampling frequency, and interpolated sample values stored in the first-in first-out storage means are read at an unknown sampling frequency, and storage of the read interpolated sample values is first-in first-out. The variable sampling cycle is controlled by the reading means to be deleted from the storage means, the storage occupancy observation means for observing the quantity of interpolated sample values in the first-in first-out storage means, and the storage occupancy observation means. Characterized by comprising a variable sampling frequency generation means for generating a number, a variable sampling frequency initial phase setting means for setting an initial phase of the variable sampling frequency.
[0010]
In addition, preferred embodiments of the sampling frequency converter of the present invention and the electronic apparatus including the sampling frequency converter are as follows.
[0011]
The sample value interpolating means, the reading means, the storage occupation amount observing means, the variable sampling frequency generating means, and the variable sampling frequency initial phase setting means can be configured by software.
[0012]
At the start of sampling frequency conversion, until the ratio of the number of interpolated sample values occupying the storage capacity of the first-in first-out storage means (hereinafter referred to as storage occupancy) reaches 50%, the read-out means stores the interpolated sample values from the first-in first-out storage means. Is not read out.
[0013]
Control of a discrete feedback control loop composed of sample value interpolation means, first-in first-out storage means, read-out means, storage occupancy observation means, variable sampling frequency generation means, and variable sampling frequency initial phase setting means Time τ required for convergence, F 2 ′ (j) representing a variable sampling frequency in an arbitrary j-th discrete feedback control generated by the variable sampling frequency generating means, an unknown sampling frequency F 2 , between the storage capacity of BF-first-out memory means | ∫ t 0 {F 2 -F 2 '(j)} dt | ≦ 0.5 × BF, ( where, 0 <t ≦ τ) so as to relationship is established In addition, the storage capacity BF of the first-in first-out storage means can be secured.
[0014]
The operation of the above means will be described below.
The first-in first-out storage means and the storage occupancy observation means described above are the variable samples when the speed at which the sample value from the sample value interpolation means is stored in the first-in first-out storage means becomes equal to the reading speed from the first-in first-out storage means by the reading means. The variable sampling frequency F 2 ′ (j) generated by the sampling frequency generation means is equal to the unknown sampling frequency F 2 that is the reading speed of the reading means.
[0015]
The sample value interpolating means, the storage occupation amount observing means, the variable sampling frequency generating means, and the variable sampling frequency initial phase setting means can be configured by software using a part of a control program of an electronic device using a microcomputer. .
[0016]
DETAILED DESCRIPTION OF THE INVENTION
The present invention can be applied to a sampling frequency conversion device that converts information sampled at a first sampling frequency into information sampled at a second sampling frequency, and an electronic apparatus equipped with the sampling frequency conversion device. it can. The second sampling frequency may be unknown. FIG. 1 is a block diagram showing a schematic configuration of a sampling frequency converter 41 of the present invention. Information is sampled at sampling frequencies F 1 by sampling means 30, the (n is an integer) sampling frequency n × F 1 is an integer multiple of the sampling frequencies F 1 further by the oversampling filter 34 is sampled at . Further, the folding signal is removed as necessary.
[0017]
As described above, the cutoff frequency of the oversampling filter 34 is the information sampled at the sampling frequency F 1 when the Nyquist condition is not satisfied between the sampling frequency F 1 and the unknown sampling frequency F 2. Must be set to prevent aliasing signals that result from direct sampling at an unknown sampling frequency F 2 .
[0018]
The output of the oversampling filter 34 is input to a sample value interpolation unit 35 described later. The output of the sample value interpolation means 35 is stored in the first-in first-out storage means 37. The first-in first-out storage unit 37 is a so-called FIFO, and is a storage unit from which the interpolated sample value stored first is read out first. The stored interpolated sample values are read from the first-in first-out storage unit 37 by the reading unit 38 at the second sampling frequency (unknown sampling frequency) F 2 . The reading unit 38 reads the interpolation sample value and deletes the stored interpolation sample value.
[0019]
When the quantity of interpolated sample values in the first-in first-out storage unit 37 is observed after a certain period T and increases, the storage occupancy amount observation unit 39 increases the storage speed from the sample value interpolation unit 35 to the first-in first-out storage unit 37. If it is determined that the reading speed from the first-in / first-out storage unit 37 is faster than the reading speed from the first-in / first-out storage unit 37, the storage speed from the sample value interpolation unit 35 to the first-in / first-out storage unit 37 is determined to be slower than the reading speed. .
[0020]
The storage occupancy observation means 39 controls the variable sampling frequency generation means 40 according to the relationship between the storage speed from the sample value interpolation means 35 to the first-in first-out storage means 37 and the read-out speed from the first-in first-out storage means 37. The variable sampling frequency F 2 ′ (j) of the value interpolation means 35 is controlled. As a result, the speed for storing the interpolated sample values from the sample value interpolating means 35 to the first-in first-out memory means 37 is equal to the reading speed by the reading means 38. That is, the variable sampling frequency F 2 ′ (j) generated by the variable sampling frequency generation means 40 is equal to the second sampling frequency (unknown sampling frequency) F 2 that determines the reading speed.
[0021]
Here, j is an integer, and the above-described sample value interpolation means, first-in first-out storage means, read-out means, storage occupancy observation means, variable sampling frequency generation means, variable sampling frequency initial phase setting means, The variable sampling frequency F 2 ′ (j) is a variable sampling frequency in the jth discrete feedback.
[0022]
Next, the operation of the sample value interpolation means 35 will be described. FIG. 2 is a diagram for explaining the operation of sampling the output sample value from the oversampling filter 34 with the sampling frequency from the variable sampling frequency generation means 40 and interpolating using the sample value interpolation means 35.
[0023]
In FIG. 2, the period T 0 is the period of the sampling frequency of the oversampling filter 34, and T 0 = 1 / (sampling frequency n × F 1 ). The period T 2 ′ (j) is the period of the variable sampling frequency F 2 ′ (j) from the variable sampling frequency generation means 40. The i-th sample point position i × T 2 ′ (j) (point A) is located between arbitrary positions k × T 0 (point B) and (k + 1) × T 0 (point C) of the oversampling sample point. Let's enter. However, i and k are arbitrary integers and have a relationship described later. In this case, when the phase of the C point with the oversampling sampling period T 0 and the B point as a reference is obtained, the following equation (1) is obtained.
[0024]
2π × {(i × T 2 ′ (j) −k × T 0 ) / T 0 } (1)
However, i × T 2 ′ (j)> k × T 0
Next, assuming that the period of the sampling frequency F 1 of the sampling means 30 is T 1 , T 1 = n × T 0 , and therefore, rewriting equation (1) using this makes equation (2) below. .
Φ = 2π × {i × n × (T 2 ′ (j) / T 1 ) −k} (2)
Here, assuming that (T 2 ′ (j) / T 1 ) = m (j), the following expression (3) is established.
Φ = 2π × {i × n × m (j) −k} (3)
Next, i and k have the following relationship. For example, if m (j) = T 2 ′ (j) / T 1 = 1.2 and n = 3, when i = 1, 2, 3,..., I × n × m (j) = 3.6, 7.2, 10.8, where k = 3, 7, 10,... That is, k is rounded down after the decimal point of the value of i × n × m (j). If this fractional part is written as [i × n × m (j)], k = [i × n × m (j)]. Therefore, the following formula (4) is obtained by rewriting the formula (3).
Φ = 2π × {i × n × m (j) − [i × n × m (j)]} (4)
[0025]
According to the above equation (4), the position of the sample point A when normalized with the period T 1 of the sampling frequency F 1 is i × n × m (j), and the position of the sample point B is k = [ i × n × m (j)]. FIG. 3 partially shows sample points A, B, and C of FIG. In FIG. 3, the sample point G is interpolated by the sample point D and the sample point F as shown in the following equation (5) to obtain an interpolated sample value Y (i, j).
Figure 0003921821
[0026]
As described above, the variable sampling frequency generation means 40 reads the period T 2 ′ (j) of the variable sampling frequency F 2 ′ (j) by the control signal from the storage occupancy observation means 39 and the reading frequency of the reading means 38. That is, it approaches the period T 2 of the second sampling frequency (unknown sampling frequency) F 2 and finally becomes equal to the unknown sampling frequency F 2 . That is, from the viewpoint of sampling frequency conversion, the information sampled at the sampling frequency F 1 is the second information without measuring and knowing the ratio of the sampling frequency F 1 and the sampling frequency F 2 in advance. It will have been converted into the sampling frequency the sampled information (unknown sampling frequency) F 2.
[0027]
As shown in FIG. 1, the variable sampling frequency initial phase setting means 36 has the variable sampling frequency F 2 ′ (j) (period T 2 ′ (j)) generated by the variable sampling frequency generation means 40. The initial phase is set.
[0028]
FIG. 4 is a flowchart showing the detailed operation of the sampling frequency converter 41 of the present invention described above. A supplementary explanation of the main part will be given below, and a desirable mode of the sampling frequency converter 41 of the present invention will also be explained.
“S-6” It is in a standby state without reading the interpolated sample values from the first-in first-out storage unit 37 until the storage occupancy of the first-in first-out storage unit 37 reaches 50%. This is the time until the speed at which the interpolated sample values are stored in the first-in first-out storage means 37 and the speed at which the interpolated sample values are read out, that is, the sample value interpolation means 35, the first-in first-out storage means 37, and the storage Reading means from the first-in first-out storage means 37 until the control of the discrete feedback control loop composed of the occupation amount observation means 39, the variable sampling frequency generation means 40, and the variable sampling frequency initial phase setting means 36 is converged. This is because the number of interpolated sample values to be read at an unknown sampling frequency F 2 is secured by 38 and the memory occupancy observation means 39 is initialized so that the quantity of interpolated sample values in the first-in first-out memory means 37 can be observed. In other words, the storage occupancy rate of the first-in first-out storage unit 37 increases or decreases at 50%. This is one of the desirable forms of the sampling frequency converter of the present invention and an electronic apparatus equipped with the same.
[0029]
One of the desirable forms of the sampling frequency converter 41 of the present invention is that the unknown sampling frequency F 2 and the storage frequency of the interpolated sample value in the first-in first-out storage means 37, that is, the variable sampling frequency generation means 40. Sampling frequency F 2 '(j), sample value interpolation means 35, first-in first-out storage means 37, storage occupancy observation means 39, variable sampling frequency generation means 40, and variable sampling frequency initial phase setting. It is desirable that the following expression (6) is established between the time τ required for the control convergence of the discrete feedback control loop composed of the means 36 and the storage capacity BF of the first-in first-out storage means 37.
| ∫ t 0 {F 2 −F 2 ′ (j)} dt | ≦ 0.5 × BF (6)
However, 0 <t ≦ τ
Here, the left side of the equation (6) | | denotes the absolute value, | ∫ t 0 {F 2 -F 2 '(j)} dt | is in at any time t of the aforementioned feedback control, first-in-first-out The increase or decrease of the interpolation sample value of the storage means 37 is shown.
[0030]
The right side BF of equation (6) indicates the storage capacity to be secured in the first-in first-out storage unit 37. As described above, the storage occupancy of the first-in first-out storage unit 37 is set to 50% in the initial state. .5 is multiplied. That is, from the above, the maximum amount of increase / decrease of the interpolated sample value of the first-in first-out storage unit 37 must be less than half of the storage capacity of the first-in first-out storage unit 37 until the above-described discrete feedback control is converged. Don't be. In the sampling frequency converter of the present invention, this storage capacity BF is ensured for any unknown sampling frequency.
[0031]
“S-13 to S-18” Buf (j) is the quantity of the interpolated sample values in the first-in first-out storage unit 37, where j is the frequency at which the interpolated sample values are stored in the first-in first-out storage unit 37, ie, The index is the same as that of the sampling frequency F 2 ′ (j) from the variable sampling frequency generation means 40.
[0032]
That is, the difference DBuf between the current storage capacity occupancy rate Buf (j) of the first-in first-out storage means 37 and the previous storage capacity occupancy ratio Buf (j−1) of the first-in first-out storage means 37 is measured every fixed period T described above, and DBuf. If = 0, the observation is continued without doing anything. If DBuf> 0, the variable sampling frequency generation means 40 issues a command to drop the variable sampling frequency F 2 ′ (j). If DBuf <0, Generate a rising command.
[0033]
At the beginning of “S-2” feedback control, the initial sampling frequency m (0) is determined by the variable sampling frequency generation means 40 and the initial phase is determined by the variable sampling frequency initial phase setting means 36. However, m (0) = (sampling frequency F 1 / variable sampling frequency F 2 ′ (j)).
[0034]
The sample from the “S-3 to S-5” oversampling filter 34 is interpolated by the sample value interpolation unit 35 at the position of the sample point of the sampling frequency F 2 ′ (j) from the variable sampling frequency generation unit 40. The first-in first-out storage means 37 stores the data.
[0035]
As described above, the sampling frequency conversion device 41 of the present invention has been described in detail. One of the desirable embodiments of the sampling frequency converter of the present invention and the electronic apparatus equipped with the sampling frequency converter is the sample value interpolating means, the reading means, the storage occupation amount observing means, and the variable sampling frequency generation described above. The means and the variable sampling frequency initial phase setting means can be configured by software. With this configuration, it is possible to use a part of microcomputer software used by an existing electronic device, and to reduce the configuration scale of the electronic device.
[0036]
Further, the sampling frequency converter 41 is provided in a personal computer, a set-top box, etc., and is networked with other devices, for example, electronic devices such as audio modules, video modules, audio equipment, video equipment, and mobile phones. Even if the sampling frequency of these other apparatuses (corresponding to the readout frequency of the aforementioned readout means 38, ie, the second sampling frequency F 2 ) is unknown, the sampling frequency conversion can be performed. .
[0037]
【The invention's effect】
When entering between two devices with different sampling frequencies, converting the sampling frequency, and transmitting information from one device to the other device, without knowing by measuring the sampling frequency of the other device in advance, It has become possible to transfer information by converting the sampling frequency to the sampling frequency of the other device.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a schematic configuration of a sampling frequency converter of the present invention.
FIG. 2 is a schematic diagram showing a relationship between a sampling frequency of an oversampling filter and a sampling frequency of a sample value interpolation unit.
FIG. 3 is a schematic diagram illustrating the operation of a sample value interpolation unit by enlarging the part of FIG. 2 and performing normalization;
FIG. 4 is a flowchart showing a detailed operation procedure of the sampling frequency converter of the present invention.
FIG. 5 is a block diagram showing a schematic configuration of an example of a conventional sampling frequency converter.
[Explanation of symbols]
1, 9, 30,... Sampling means, 5, 8 ... Counting means, 6 ... Frequency variable means, 7 ... Comparison means, 4, 34 ... Oversampling filter, 23 ... PLL (Phase-locked loop), 19 ... No. 1 ... 20 ... second device 35 ... sample value interpolation means 36 ... variable sampling frequency initial phase setting means 37 ... first-in first-out storage means 38 ... reading means 39 ... memory occupancy observation means 40 ... Variable sampling frequency generation means, 41... Sampling frequency conversion device

Claims (5)

第1の標本化周波数で標本化された情報を、未知の標本化周波数で標本化された情報に変換する標本化周波数変換装置であって、
前記第1の標本化周波数で標本化された情報より、補間標本値を算出して、可変標本化周波数で標本化する標本値補間手段と、
前記補間標本値を前記可変標本化周波数で記憶するための先入れ先出し記憶手段と、
該先入れ先出し記憶手段に記憶された該補間標本値を、前記未知の標本化周波数で読み出し、且つ読み出された該補間標本値の記憶を前記先入れ先出し記憶手段中より削除する読み出し手段と、
前記先入れ先出し記憶手段中の前記補間標本値の数量を観測する記憶占有量観測手段と、
該記憶占有量観測手段の制御により、前記可変標本化周波数を生成する可変標本化周波数生成手段と、
前記可変標本化周波数の初期位相を設定するための可変標本化周波数初期位相設定手段とを具備すること
を特徴とする標本化周波数変換装置。
A sampling frequency converter for converting information sampled at a first sampling frequency into information sampled at an unknown sampling frequency,
Sample value interpolation means for calculating an interpolated sample value from information sampled at the first sampling frequency and sampling at a variable sampling frequency;
First-in first-out storage means for storing the interpolated sample values at the variable sampling frequency;
Reading means for reading out the interpolated sample value stored in the first-in first-out storage means at the unknown sampling frequency, and deleting the read out interpolated sample value from the first-in first-out storage means;
Storage occupancy observation means for observing the quantity of the interpolated sample values in the first-in first-out storage means;
Variable sampling frequency generation means for generating the variable sampling frequency under the control of the storage occupancy observation means;
A sampling frequency converter comprising variable sampling frequency initial phase setting means for setting an initial phase of the variable sampling frequency.
前記標本値補間手段と、前記読み出し手段と、前記記憶占有量観測手段と、前記可変標本化周波数生成手段と、前記可変標本化周波数初期位相設定手段とをソフトウェアで構成したこと
を特徴とする請求項1に記載の標本化周波数変換装置。
The sample value interpolating means, the reading means, the storage occupation amount observing means, the variable sampling frequency generating means, and the variable sampling frequency initial phase setting means are configured by software. Item 2. The sampling frequency converter according to Item 1.
標本化周波数変換を開始直後は、前記先入れ先出し記憶手段の前記補間標本値の数量が該先入れ先出し記憶手段の記憶容量に占める割合が50%に達するまでは、前記読み出し手段により該先入れ先出し記憶手段から該補間標本値を読み出さないこと
を特徴とする請求項1に記載の標本化周波数変換装置。
Immediately after the sampling frequency conversion is started, until the amount of the interpolated sample value of the first-in first-out storage means occupies 50% of the storage capacity of the first-in first-out storage means, the read-out means removes the interpolation from the first-in first-out storage means. The sampling frequency converter according to claim 1, wherein the sampling value is not read out.
前記標本値補間手段と、前記先入れ先出し記憶手段と、前記読み出し手段と、前記記憶占有量観測手段と、前記可変標本化周波数生成手段と、前記可変標本化周波数初期位相設定手段とで構成される離散的フィードバック制御ループの制御収束に要する時間τと、前記可変標本化周波数生成手段により生成された任意のj番目の離散的フィードバック制御における前記可変標本化周波数を表すF2 ’(j)と、前記未知の標本化周波数F2 と、前記先入れ先出し記憶手段の記憶容量BFが、|∫t 0{F2 −F2 ’(j)}dt|≦0.5×BF、(但し、0<t≦τ)なる関係になるように、前記先入れ先出し記憶手段の記憶容量BFを確保し得ること
を特徴とする請求項1に記載の標本化周波数変換装置。
A discrete unit composed of the sample value interpolation means, the first-in first-out storage means, the reading means, the storage occupancy observation means, the variable sampling frequency generation means, and the variable sampling frequency initial phase setting means. Time τ required for the control convergence of the dynamic feedback control loop, F 2 ′ (j) representing the variable sampling frequency in the arbitrary j-th discrete feedback control generated by the variable sampling frequency generation means, an unknown sampling frequency F 2, the storage capacity of BF said first-in first-out memory means, | ∫ t 0 {F 2 -F 2 '(j)} dt | ≦ 0.5 × BF, ( where, 0 <t ≦ 2. The sampling frequency converter according to claim 1, wherein the storage capacity BF of the first-in first-out storage means can be secured so as to satisfy the relationship τ).
請求項1に記載の標本化周波数変換装置を具備すること
を特徴とする電子機器。
An electronic apparatus comprising the sampling frequency converter according to claim 1.
JP19478298A 1998-07-09 1998-07-09 Sampling frequency converter and electronic apparatus equipped with the same Expired - Fee Related JP3921821B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19478298A JP3921821B2 (en) 1998-07-09 1998-07-09 Sampling frequency converter and electronic apparatus equipped with the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19478298A JP3921821B2 (en) 1998-07-09 1998-07-09 Sampling frequency converter and electronic apparatus equipped with the same

Publications (2)

Publication Number Publication Date
JP2000031947A JP2000031947A (en) 2000-01-28
JP3921821B2 true JP3921821B2 (en) 2007-05-30

Family

ID=16330175

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19478298A Expired - Fee Related JP3921821B2 (en) 1998-07-09 1998-07-09 Sampling frequency converter and electronic apparatus equipped with the same

Country Status (1)

Country Link
JP (1) JP3921821B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4760052B2 (en) * 2005-02-24 2011-08-31 ヤマハ株式会社 Transmission control device and sampling frequency conversion device
JP5023434B2 (en) * 2005-03-25 2012-09-12 ヤマハ株式会社 Sampling frequency converter
EP1811663B1 (en) * 2006-01-24 2011-09-14 Harman Becker Automotive Systems GmbH Sampling rate conversion

Also Published As

Publication number Publication date
JP2000031947A (en) 2000-01-28

Similar Documents

Publication Publication Date Title
US7680233B1 (en) Adaptive sampling rate converter
US7352836B1 (en) System and method of cross-clock domain rate matching
US7394884B2 (en) Synchronizing method
US7450678B2 (en) Asynchronous signal input apparatus and sampling frequency conversion apparatus
CN101233706A (en) Data stream synchronization
US7570727B2 (en) Data transmission controller and sampling frequency converter
US5784120A (en) Video decoder adapted to compensate for time variations between successive horizontal/vertical synchronization pulses
JP3921821B2 (en) Sampling frequency converter and electronic apparatus equipped with the same
JP3037582B2 (en) Digital data buffering device
US7123673B2 (en) System and method for transmission of digital information of varying sample rates over a synchronous network
KR20010060188A (en) Data source, data conversion device, inverse data conversion device, auxiliary data file generation device, reception method, medium and information aggregate
US6263036B1 (en) Asynchronous signal input apparatus and sampling frequency conversion apparatus
US5761434A (en) Digital audio system including a software controlled phase lock loop for synchronizing audio sources to a common clock source
TW201110649A (en) Method and apparatus for regenerating sampling frequency and then quickly locking signals accordingly
JP4386079B2 (en) Sampling frequency converter
US20150145585A1 (en) Sample Rate Converter and Rate Estimator Thereof and Rate Estimation Method Thereof
US7136004B2 (en) Image signal processing system
JPH10126645A (en) Frequency conversion device
EP1149482B1 (en) Synchronizing method
JP2005521321A (en) Method and apparatus for digital frequency conversion
US7193928B2 (en) Signal output device and method for the same
JP4442199B2 (en) Asynchronous signal input device and sampling frequency converter
JPH0865105A (en) Sampling frequency converter
JP3116988B2 (en) Image signal compression processing circuit
WO1992013332A1 (en) Apparatus for processing video image

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20050308

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050315

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070118

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070212

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

Free format text: PAYMENT UNTIL: 20100302

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110302

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120302

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees