JPH06244725A - Codec - Google Patents

Codec

Info

Publication number
JPH06244725A
JPH06244725A JP5031482A JP3148293A JPH06244725A JP H06244725 A JPH06244725 A JP H06244725A JP 5031482 A JP5031482 A JP 5031482A JP 3148293 A JP3148293 A JP 3148293A JP H06244725 A JPH06244725 A JP H06244725A
Authority
JP
Japan
Prior art keywords
signal
frequency
output
circuit
clock signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP5031482A
Other languages
Japanese (ja)
Inventor
Seiji Okamoto
清治 岡本
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP5031482A priority Critical patent/JPH06244725A/en
Publication of JPH06244725A publication Critical patent/JPH06244725A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE:To obtain a CODEC whose S/N is satisfactory in which a master clock signal is not necessary, and the frequency of a bit clock signal is not restricted. CONSTITUTION:When a synchronizing signal SB and a bit clock signal BC are supplied from an outside, a PLL circuit 120 is operated by using the signal SB as a reference signal, and the output signal is transmitted to a selecting circuit 140. Then, a frequency-division rate is set at a frequency dividing circuit 133 according to the output frequency of the signal BC, the signal BC is frequency-divided by the frequency-division rate, and transmitted to the selecting circuit 140. The selecting circuit 140 selects one of the output of the PLL circuit 120 and the output of the selecting circuit 140 according to the frequency of the signal BC, and outputs an inside clock signal $. Then, a clock signal or a control signal or the like to be used by SCF 101 and 201, A/D converter 102, and D/A converter 202 or the like are generated by control circuits 103 and 203 by the signal phi.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、スイッチド・キャパシ
タ・フィルタ(以下、SCFという)、アナログ/ディ
ジタル変換器(以下、A/D変換器という)、ディジタ
ル/アナログ変換器(以下、D/A変換器という)、及
びクロック発生手段等で構成され、アナログ信号をディ
ジタル信号に変換し、処理を終わったディジタル信号を
再びアナログ信号に変換するコーデック(codec )、特
に1チップ等に集積されるコーデックにおいて、SC
F、A/D変換器、及びD/A変換器に必要な高速のク
ロック信号を作成して供給するクロック発生手段に関す
るものである。
The present invention relates to a switched capacitor filter (hereinafter referred to as SCF), an analog / digital converter (hereinafter referred to as A / D converter), a digital / analog converter (hereinafter referred to as D / D). A converter) and a clock generation means, etc., and is integrated in a codec for converting an analog signal into a digital signal and converting the processed digital signal into an analog signal again, particularly in one chip or the like. SC in the codec
The present invention relates to an F, A / D converter, and a clock generation means for creating and supplying a high-speed clock signal necessary for the D / A converter.

【0002】[0002]

【従来の技術】従来、この種のコーデックへの入力クロ
ック信号として外部より供給される信号は、A/D変換
及びD/A変換用のサンプリング周波数を決める同期信
号と、ディジタル信号を入出力するためのビットクロッ
ク信号のみである。そのため、コーデック内部で使うS
CF用のクロック信号、A/D及びD/A変換用のクロ
ック信号等は、外部より与えられる同期信号及びビット
クロック信号を使ってコーデック内部に設けたクロック
発生手段で生成している。このクロック生成方式として
は、次の3通りの方式が一般的である。 (1) マスタクロックを使う方式 (2) フェーズロックループ(以下、PLLという)
を使う方式 (3) データ入出力用クロック(ビットクロック)を
使う方式 図2は、前記(1)における従来のマスタクロック方式
のコーデックを示す機能ブロック図である。このコーデ
ックは、A/D変換側において、外部より入力されるア
ナログ信号ASの高周波成分等を除去するSCF1と、
該SCF1の出力をディジタル信号に変換するA/D変
換器2と、信号の入出力を行うと共に内部回路動作用の
複数のクロック信号を発生するクロック発生手段とを、
備えている。クロック発生手段は、制御回路3と固定分
周器4とで構成されている。固定分周器4は、外部より
与えられるマスタクロック信号MCを分周比1/Kで分
周してその分周信号を制御回路3へ与える回路である。
制御回路3は、外部より与えられる同期信号SB、及び
ビットクロック信号BCを入力し、該ビットクロック信
号BCに基づきディジタル信号DSを出力すると共に、
固定分周器4の分周信号に基づき、SCF1に使うクロ
ック信号、及びA/D変換器2に使う制御信号等を生成
する回路である。
2. Description of the Related Art Conventionally, a signal externally supplied as an input clock signal to a codec of this kind inputs and outputs a synchronizing signal for determining a sampling frequency for A / D conversion and D / A conversion, and a digital signal. For the bit clock signal only. Therefore, S used inside the codec
The clock signal for CF, the clock signal for A / D and D / A conversion, and the like are generated by a clock generation means provided inside the codec using a synchronization signal and a bit clock signal given from the outside. As the clock generation method, the following three methods are generally used. (1) Method using master clock (2) Phase-locked loop (hereinafter referred to as PLL)
(3) Method using data input / output clock (bit clock) FIG. 2 is a functional block diagram showing a conventional master clock codec in (1). This codec has, on the A / D conversion side, an SCF1 for removing high frequency components and the like of an analog signal AS input from the outside,
An A / D converter 2 for converting the output of the SCF 1 into a digital signal, and a clock generating means for inputting / outputting a signal and generating a plurality of clock signals for operating an internal circuit,
I have it. The clock generating means is composed of the control circuit 3 and the fixed frequency divider 4. The fixed frequency divider 4 is a circuit that divides the master clock signal MC given from the outside with a division ratio of 1 / K and gives the divided signal to the control circuit 3.
The control circuit 3 inputs a synchronizing signal SB and a bit clock signal BC given from the outside, outputs a digital signal DS based on the bit clock signal BC, and
It is a circuit that generates a clock signal used for the SCF 1 and a control signal used for the A / D converter 2 based on the frequency-divided signal of the fixed frequency divider 4.

【0003】このA/D変換側の回路では、外部からア
ナログ信号ASがSCF1に入力されると、該SCF1
では、制御回路3からのクロック信号に基づき入力アナ
ログ信号ASの高周波成分等を除去してA/D変換器2
へ送る。A/D変換器2では、制御回路3からの制御信
号に基づき、SCF1のアナログ出力をディジタル信号
に変換し、制御回路3へ送る。制御回路3は、ビットク
ロック信号BCに基づき、A/D変換器2で変換された
ディジタル信号DSを外部へ出力する。このようなマス
タクロック方式では、固定分周器4の分周比1/Kが固
定されるため、マスタクロック信号MCも限定される。
なお、図2ではA/D変換側のみの回路が示され、D/
A変換側の回路が省略されている。このD/A変換側の
回路は、A/D変換側とほぼ同様に、SCF、D/A変
換器、制御回路、及び固定分周器で構成されている。そ
して、ビットクロック信号によってディジタル信号が制
御回路に入力され、その入力されたディジタル信号がD
/A変換器でアナログ信号に変換された後、SCFで高
周波成分等が除去されて外部へ出力される。
In this A / D conversion side circuit, when an analog signal AS is input to the SCF1 from the outside, the SCF1
Then, the high frequency component of the input analog signal AS is removed based on the clock signal from the control circuit 3 and the A / D converter 2
Send to. The A / D converter 2 converts the analog output of the SCF 1 into a digital signal based on the control signal from the control circuit 3 and sends it to the control circuit 3. The control circuit 3 outputs the digital signal DS converted by the A / D converter 2 to the outside based on the bit clock signal BC. In such a master clock system, since the frequency division ratio 1 / K of the fixed frequency divider 4 is fixed, the master clock signal MC is also limited.
It should be noted that FIG. 2 shows a circuit only on the A / D conversion side.
The circuit on the A conversion side is omitted. The circuit on the D / A conversion side is composed of an SCF, a D / A converter, a control circuit, and a fixed frequency divider, similar to the A / D conversion side. Then, the digital signal is input to the control circuit by the bit clock signal, and the input digital signal is D
After being converted into an analog signal by the / A converter, high frequency components and the like are removed by the SCF and output to the outside.

【0004】図3は、前記(2)における従来のPLL
方式のコーデックを示す機能ブロック図である。なお、
図2と同様に、A/D変換側のみが示されている。この
コーデックのA/D変換側では、図2の固定分周器4に
代えてPLL回路5が設けられている。そして、外部よ
り与えられる同期信号SBを、PLL回路5のトリガ信
号(基準信号)として該PLL回路5へ入力する。する
と、PLL回路5では、入力された同期信号SBに基づ
き、該同期信号SBの周波数の数十倍の信号を発生し、
制御回路3へ与える。制御回路3では、PLL回路5か
らの信号に基づき、SCF1に使うクロック信号、及び
A/D変換器2に使う制御信号等を生成する。このクロ
ック信号及び制御信号に基づき、図2と同様に、入力ア
ナログ信号ASがSCF1で高周波成分等を除去され、
A/D変換器2でディジタル信号に変換された後、制御
回路3から外部へ出力される。
FIG. 3 shows the conventional PLL in (2) above.
It is a functional block diagram which shows the codec of a system. In addition,
Similar to FIG. 2, only the A / D conversion side is shown. On the A / D conversion side of this codec, a PLL circuit 5 is provided instead of the fixed frequency divider 4 of FIG. Then, the synchronization signal SB given from the outside is input to the PLL circuit 5 as a trigger signal (reference signal) of the PLL circuit 5. Then, the PLL circuit 5 generates a signal having a frequency of several tens of times the frequency of the synchronizing signal SB based on the inputted synchronizing signal SB,
It is given to the control circuit 3. The control circuit 3 generates a clock signal used for the SCF 1 and a control signal used for the A / D converter 2 based on the signal from the PLL circuit 5. Based on this clock signal and control signal, as in FIG. 2, the input analog signal AS has high-frequency components removed by the SCF 1,
After being converted into a digital signal by the A / D converter 2, it is output from the control circuit 3 to the outside.

【0005】図4は、前記(3)における従来のビット
クロック方式のコーデックを示す機能ブロック図であ
る。なお、図2と同様に、A/D変換側のみが示されて
いる。このコーデックのA/D変換側では、図2の固定
分周器4に代えて可変分周器6が設けられている。そし
て、外部より与えられるビットクロック信号BCを可変
分周器6で分周比1/Lに分周し、その分周信号を制御
回路3へ与える。制御回路3では、可変分周器6の分周
信号に基づき、SCF1に使うクロック信号、及びA/
D変換器2に使う制御信号等を生成する。このクロック
信号及び制御信号に基づき、図2と同様に、入力アナロ
グ信号ASがSCF1で高周波成分等が除去され、A/
D変換器2でディジタル信号に変換された後、制御回路
3を介して外部へ出力される。このビットクロック方式
では、外部より入力されるビットクロック信号BCの周
波数が、ディジタル信号DSの入出力の速度をも決定す
る信号であり、コーデックの使われる用途によって変わ
るので、分周比1/Lが可変できるように可変分周器6
が使われている。
FIG. 4 is a functional block diagram showing a conventional bit clock type codec in (3). As in FIG. 2, only the A / D conversion side is shown. On the A / D conversion side of this codec, a variable frequency divider 6 is provided instead of the fixed frequency divider 4 of FIG. Then, the bit clock signal BC given from the outside is divided by the variable frequency divider 6 to a division ratio of 1 / L, and the divided signal is given to the control circuit 3. In the control circuit 3, the clock signal used for the SCF 1 and the A /
A control signal or the like used for the D converter 2 is generated. Based on the clock signal and the control signal, as in FIG. 2, the input analog signal AS is SCF1 where high frequency components are removed, and A / A
After being converted into a digital signal by the D converter 2, it is output to the outside through the control circuit 3. In this bit clock method, the frequency of the bit clock signal BC input from the outside is a signal that also determines the input / output speed of the digital signal DS, and changes depending on the use of the codec, so the frequency division ratio is 1 / L. Variable divider 6 so that the
Is used.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、従来の
マスタクロック方式(1)、PLL方式(2)、及びビ
ットクロック方式(3)で内部回路動作用の複数のクロ
ック信号を発生すると、次のような問題があった。 (a) 従来のマスタクロック方式(1)では、コーデ
ックの動作には必要としないマスタクロック信号MCを
必要とする。しかも、このマスタクロック信号MCの周
波数は限定されるため、コーデックを使う装置に、この
マスタクロック周波数に相当する信号がない場合、新た
に発振器を設けなければならない。 (b) 従来のPLL方式(2)では、PLL回路5で
発生した信号と基準信号(同期信号)との位相・周波数
差を検出し、該PLL回路5内の発振器に帰還をかける
ため、該PLL回路5から出力される信号にはジッタ
(位相の時間的なゆらぎ)が存在する。これをスイッチ
ドキャパシタ技術を使用したSCF1のクロック信号と
して使った場合、外部から入力される信号、特に高周波
のビットクロック信号BCが雑音(ノイズ)となり、該
SCF1で折返しノイズを生じ、コーデックとしての信
号対ノイズ比(S/N比)が悪くなる。 (c) 従来のビットクロック方式(3)では、ビット
クロック信号BCの周波数が、コーデックのSCF1、
A/D変換器2、及びD/A変換側のD/A変換器に必
要な信号の周波数より高いことが条件となる。そのた
め、ビットクロック信号BCの周波数が、SCF1、A
/D変換器2、及びD/A変換側のD/A変換器に必要
な信号の周波数より低い用途には使えないという問題が
あった。 本発明は、前記従来技術が持っていた課題として、マス
タクロックによるクロック生成方式では、マスタクロッ
ク信号MCを必要とし、場合によっては発振器を必要と
する、PLLによるクロック生成方式では、コーデック
としてのS/N比が悪くなる、ビットクロックによるク
ロック生成方式では、コーデックの用途が限定されると
いう点について解決し、マスタクロック信号MCを必要
とせず、ビットクロック周波数の制約のない、S/N比
の良いコーデックを提供するものである。
However, when a plurality of clock signals for internal circuit operation are generated by the conventional master clock system (1), PLL system (2), and bit clock system (3), the following occurs. There was a problem. (A) The conventional master clock system (1) requires the master clock signal MC which is not necessary for the operation of the codec. Moreover, since the frequency of the master clock signal MC is limited, if the device using the codec does not have a signal corresponding to the master clock frequency, a new oscillator must be provided. (B) In the conventional PLL system (2), the phase / frequency difference between the signal generated in the PLL circuit 5 and the reference signal (synchronous signal) is detected, and the oscillator in the PLL circuit 5 is fed back. The signal output from the PLL circuit 5 has jitter (phase temporal fluctuation). When this is used as the clock signal of the SCF1 using the switched capacitor technology, the signal input from the outside, especially the high-frequency bit clock signal BC becomes noise, and aliasing noise is generated in the SCF1 to cause the codec as a codec. The signal-to-noise ratio (S / N ratio) deteriorates. (C) In the conventional bit clock method (3), the frequency of the bit clock signal BC is SCF1 of the codec,
The condition is that the signal frequency is higher than that required for the A / D converter 2 and the D / A converter on the D / A conversion side. Therefore, the frequency of the bit clock signal BC is SCF1, A
There is a problem that it cannot be used for applications lower than the frequency of the signal required for the / D converter 2 and the D / A converter on the D / A conversion side. The present invention has a problem that the clock generation method using the master clock requires the master clock signal MC and, in some cases, an oscillator, and the clock generation method using the PLL uses S as a codec. The clock generation method using the bit clock, which deteriorates the / N ratio, solves the problem that the application of the codec is limited, does not require the master clock signal MC, and does not have the restriction of the bit clock frequency, and the S / N ratio is reduced. It provides a good codec.

【0007】[0007]

【課題を解決するための手段】第1の発明は、前記課題
を解決するために、サンプリング周波数を決める同期信
号、及びディジタル信号を入出力するためのビットクロ
ック信号が外部から供給されると、それらの信号に基づ
き内部クロック信号を生成し、該内部クロック信号から
複数の内部回路動作用信号を発生するクロック発生手段
を備え、前記内部回路動作用信号に基づき、SCFを通
ったアナログ信号をA/D変換器でディジタル信号に変
換して出力すると共に、外部から入力されるディジタル
信号をD/A変換器でアナログ信号に変換するコーデッ
クにおいて、前記クロック発生手段を、次のように構成
している。即ち、本発明のクロック発生手段では、前記
ビットクロック信号を分周する分周回路と、前記同期信
号を基準信号として動作するPLL回路と、前記ビット
クロック信号の周波数に応じて前記分周回路出力と前記
PLL回路出力のいずれか一方を選択してそれを前記内
部クロック信号として出力する選択回路とを、備えてい
る。
According to a first aspect of the present invention, in order to solve the above problems, a synchronizing signal for determining a sampling frequency and a bit clock signal for inputting / outputting a digital signal are supplied from the outside. A clock generating means for generating an internal clock signal based on those signals and generating a plurality of internal circuit operating signals from the internal clock signal is provided, and an analog signal passing through the SCF is In a codec in which a digital signal is converted into a digital signal by a D / D converter and output, and a digital signal input from the outside is converted into an analog signal by a D / A converter, the clock generating means is configured as follows. There is. That is, in the clock generating means of the present invention, a frequency divider circuit for frequency-dividing the bit clock signal, a PLL circuit that operates using the synchronizing signal as a reference signal, and the frequency divider circuit output according to the frequency of the bit clock signal. And a selection circuit that selects one of the outputs of the PLL circuit and outputs it as the internal clock signal.

【0008】第2の発明では、第1の発明の分周回路
を、分周比設定データにより決まる分周比で前記ビット
クロック信号を分周する可変分周器と、前記可変分周器
の出力を一定の分周比で分周する固定分周器と、前記同
期信号の周波数と前記固定分周器の出力周波数との一致
/不一致を検出してそれに応じた周波数一致信号/周波
数不一致信号を出力する周波数一致検出器と、前記周波
数不一致信号に基づき前記分周比設定データを出力して
前記可変分周器に与える分周比設定データ選択器とで構
成している。さらに、第1の発明の選択回路を、前記周
波数不一致信号を計数してその信号が規定値以上発生し
た時に第1の選択信号を出力し、前記周波数一致信号を
計数してその信号が規定値以上発生した時に第2の選択
信号を出力するカウンタと、前記第1の選択信号に基づ
き前記PLL回路の出力を選択し、前記第2の選択信号
に基づき前記分周回路の出力を選択するセレクタとで、
構成している。第3の発明では、第2の発明のコーデッ
クにおいて、前記第1の選択信号に基づき前記PLL回
路に対して電源を供給し、前記第2の選択信号に基づき
前記PLL回路に対する電源供給を遮断する構成にして
いる。
According to a second aspect of the invention, there is provided a variable frequency divider for dividing the bit clock signal at a frequency division ratio determined by the frequency division ratio setting data, and the variable frequency divider of the first frequency divider circuit. A fixed frequency divider that divides the output at a constant frequency division ratio, and a frequency coincidence signal / frequency inconsistency signal that detects the coincidence / disagreement between the frequency of the synchronization signal and the output frequency of the fixed divider. And a frequency-matching detector that outputs the frequency-matching signal, and a frequency-dividing-ratio setting data selector that outputs the frequency-dividing-ratio setting data to the variable frequency divider based on the frequency mismatch signal. Furthermore, the selection circuit of the first invention outputs the first selection signal when the frequency mismatch signal is counted and the signal is generated more than a specified value, and the frequency match signal is counted and the signal is specified value. A counter that outputs a second selection signal when the above occurs, and a selector that selects the output of the PLL circuit based on the first selection signal and selects the output of the frequency divider circuit based on the second selection signal. And with
I am configuring. In a third invention, in the codec of the second invention, power is supplied to the PLL circuit based on the first selection signal, and power supply to the PLL circuit is cut off based on the second selection signal. It is configured.

【0009】[0009]

【作用】第1の発明によれば、以上のようにコーデック
のクロック発生手段を構成したので、分周回路は、外部
より供給されるビットクロック信号を分周して選択回路
へ送る。PLL回路は、外部より供給される同期信号を
基準信号として動作し、その出力信号を選択回路へ送
る。選択回路は、ビットクロック信号の周波数に応じて
分周回路出力とPLL回路出力のいずれか一方を選択
し、それを内部クロック信号として出力する。この内部
クロック信号に基づき、SCF、A/D変換器、及びD
/A変換器等で使われる複数の内部回路動作用信号が作
られる。第2の発明によれば、周波数一致検出器から周
波数一致信号又は周波数不一致信号が出力されると、そ
の周波数不一致信号に基づき、分周比設定データ選択器
から分周比設定データが出力され、可変分周器の分周比
が設定される。可変分周器では、設定された分周比で、
外部から供給されるビットクロック信号を分周し、その
分周出力信号を固定分周器及びセレクタへ送る。一方、
外部より供給された同期信号を基準信号としてPLL回
路が動作し、その出力信号がセレクタへ送られる。セレ
クタは、カウンタからの第1又は第2の選択信号によ
り、分周回路出力又はPLL回路出力のいずれか一方を
選択し、内部クロック信号を出力する。ここで、分周回
路は、外部から供給されるビットクロック信号をその周
波数に応じて分周比を変えることのできる可変分周回路
として動作する。そのため、ビットクロック信号の周波
数に応じて、分周回路出力とPLL回路出力のいずれか
一方がセレクタで選択され、内部クロック信号として出
力される。第3の発明によれば、PLL回路は、カウン
タから出力される第1の選択信号に基づき動作し、該カ
ウンタから出力される第2の選択信号に基づき動作を停
止する。従って、前記課題を解決できるのである。
According to the first aspect of the invention, since the clock generating means of the codec is configured as described above, the frequency dividing circuit divides the frequency of the bit clock signal supplied from the outside and sends it to the selecting circuit. The PLL circuit operates using a synchronization signal supplied from the outside as a reference signal and sends its output signal to the selection circuit. The selection circuit selects either the frequency divider circuit output or the PLL circuit output according to the frequency of the bit clock signal, and outputs it as an internal clock signal. Based on this internal clock signal, the SCF, A / D converter, and D
A plurality of internal circuit operation signals used in the / A converter and the like are generated. According to the second invention, when the frequency coincidence detector outputs the frequency coincidence signal or the frequency discordance signal, the division ratio setting data selector outputs the division ratio setting data based on the frequency discord signal. The division ratio of the variable frequency divider is set. With the variable frequency divider, at the set division ratio,
The bit clock signal supplied from the outside is divided and the divided output signal is sent to the fixed divider and the selector. on the other hand,
The PLL circuit operates with the synchronizing signal supplied from the outside as a reference signal, and the output signal is sent to the selector. The selector selects either the frequency divider circuit output or the PLL circuit output according to the first or second selection signal from the counter, and outputs the internal clock signal. Here, the frequency dividing circuit operates as a variable frequency dividing circuit capable of changing the frequency dividing ratio of the bit clock signal supplied from the outside according to its frequency. Therefore, either the frequency divider circuit output or the PLL circuit output is selected by the selector according to the frequency of the bit clock signal, and is output as the internal clock signal. According to the third invention, the PLL circuit operates based on the first selection signal output from the counter, and stops the operation based on the second selection signal output from the counter. Therefore, the above problem can be solved.

【0010】[0010]

【実施例】図1は、本発明の実施例を示すコーデックの
機能ブロック図である。このコーデックのA/D変換側
には、アナログ信号AS1の高周波成分等を除去するS
CF101と、該SCF101の出力をディジタル信号
に変換するA/D変換器102とが設けられている。さ
らに、D/A変換側には、高周波成分等を除去してアナ
ログ信号AS2を出力するSCF201と、該SCF2
01に対してアナログ信号を与えるD/A変換器202
とが設けられている。A/D変換側のA/D変換器10
2とD/A変換側のD/A変換器202には、クロック
発生手段が接続されている。クロック発生手段は、A/
D変換側の制御回路103と、サンプリング周波数を決
める同期信号SB及びディジタル信号DS1,DS2を
入出力するためのビットクロック信号BCに基づき、内
部クロック信号φを発生する内部クロック発生回路11
0と、D/A変換側の制御回路203とを、備えてい
る。
1 is a functional block diagram of a codec showing an embodiment of the present invention. On the A / D conversion side of this codec, S for removing high frequency components etc. of the analog signal AS1
A CF 101 and an A / D converter 102 that converts the output of the SCF 101 into a digital signal are provided. Further, on the D / A conversion side, an SCF 201 that removes high frequency components and outputs an analog signal AS2, and the SCF 201
D / A converter 202 for giving an analog signal to 01
And are provided. A / D converter 10 on the A / D conversion side
2 and the D / A converter 202 on the D / A conversion side are connected to a clock generation means. The clock generation means is A /
An internal clock generation circuit 11 that generates an internal clock signal φ based on a control circuit 103 on the D conversion side and a bit clock signal BC for inputting and outputting a synchronizing signal SB that determines a sampling frequency and digital signals DS1 and DS2.
0, and a control circuit 203 on the D / A conversion side.

【0011】A/D変換側の制御回路103は、ビット
クロック信号BC、同期信号SB、及び内部クロック信
号φを入力し、該ビットクロック信号BCに基づきA/
D変換器102からのディジタル信号DS1を外部へ出
力すると共に、該内部クロック信号φに基づきSCF1
01に使うクロック信号、及びA/D変換器102に使
う制御信号等を生成する回路である。D/A変換側の制
御回路203は、ビットクロック信号BC、同期信号S
B、及び内部クロック信号φを入力し、該ビットクロッ
ク信号BCに基づき外部からディジタル信号DS2を入
力してD/A変換器202へ与えると共に、該内部クロ
ック信号φに基づきSCF201で使うクロック信号、
及びD/A変換器202で使う制御信号等を生成する回
路である。内部クロック発生回路110は、同期信号S
Bを基準信号として動作するPLL回路120と、同期
信号SB及びビットクロック信号BCを入力し、該ビッ
トクロック信号BCを分周する分周回路130と、該ビ
ットクロック信号BCの周波数に応じて該PLL回路1
20の出力又は分周回路130の出力のいずれか一方を
選択して内部クロック信号φを出力する選択回路140
とで、構成されている。
The control circuit 103 on the A / D conversion side inputs the bit clock signal BC, the synchronization signal SB, and the internal clock signal φ, and A / D based on the bit clock signal BC.
The digital signal DS1 from the D converter 102 is output to the outside, and SCF1 is output based on the internal clock signal φ.
A circuit for generating a clock signal used for 01, a control signal used for the A / D converter 102, and the like. The control circuit 203 on the D / A conversion side controls the bit clock signal BC and the synchronization signal S.
B and an internal clock signal φ are input, a digital signal DS2 is input from the outside based on the bit clock signal BC and is given to the D / A converter 202, and a clock signal used in the SCF 201 based on the internal clock signal φ,
And a circuit for generating control signals and the like used in the D / A converter 202. The internal clock generation circuit 110 uses the synchronization signal S
A PLL circuit 120 that operates with B as a reference signal, a frequency divider circuit 130 that inputs the synchronization signal SB and the bit clock signal BC and divides the bit clock signal BC, and a frequency divider circuit 130 that operates according to the frequency of the bit clock signal BC. PLL circuit 1
A selection circuit 140 that selects either the output of 20 or the output of the frequency dividing circuit 130 and outputs the internal clock signal φ.
It consists of and.

【0012】PLL回路120は、同期信号SBを基準
信号入力端子121aから入力する位相比較器121を
有している。位相比較器121は、基準信号入力端子1
21aの信号とフィードバック信号入力端子121bの
信号との位相を比較し、その位相差に応じた電圧を出力
する回路であり、その出力端子に、高周波成分除去用の
フィルタ122を介して電圧制御発振器(以下、VCO
という)123が接続されている。VCO123は、フ
ィルタ122の出力電圧に応じた周波数の出力信号を出
力端子123aから出力する回路である。出力端子12
3aには、1/N分周器124を介して位相比較器12
1のフィードバック信号入力端子121bが接続されて
いる。分周回路130は、同期信号SBを第1の入力端
子131aから入力する周波数一致検出器131を有し
ている。周波数一致検出器131は、第1の入力端子1
31aの信号と第2の入力端子131bの信号との周波
数の一致/不一致を検出し、不一致の時には周波数不一
致信号(例えば、NGパルス)S131aを第1の出力
端子131cから出力し、一致の時には周波数一致信号
(例えば、OKパルス)S131bを第2の出力端子1
31dから出力する回路である。第1の出力端子131
cには、分周比設定データ選択器132の入力端子13
2aが接続されている。分周比設定データ選択器132
は、入力端子132aから入力されるNGパルスS13
1aに基づき、分周比設定データS132を出力端子1
32bから出力する回路であり、その出力端子132b
には、分周比1/Mの可変分周器133の分周比設定入
力端子133bが接続されている。
The PLL circuit 120 has a phase comparator 121 which inputs the synchronizing signal SB from a reference signal input terminal 121a. The phase comparator 121 has a reference signal input terminal 1
21a is a circuit for comparing the phase of the signal of the feedback signal input terminal 121b and outputting a voltage according to the phase difference. A voltage controlled oscillator is provided at its output terminal via a filter 122 for removing high frequency components. (Hereafter, VCO
123) is connected. The VCO 123 is a circuit that outputs an output signal having a frequency corresponding to the output voltage of the filter 122 from the output terminal 123a. Output terminal 12
3a is connected to the phase comparator 12 via the 1 / N frequency divider 124.
One feedback signal input terminal 121b is connected. The frequency dividing circuit 130 has a frequency coincidence detector 131 that inputs the synchronization signal SB from the first input terminal 131a. The frequency coincidence detector 131 has a first input terminal 1
A frequency match / mismatch between the signal of 31a and the signal of the second input terminal 131b is detected, and when they do not match, a frequency mismatch signal (for example, NG pulse) S131a is output from the first output terminal 131c. The frequency matching signal (eg, OK pulse) S131b is output to the second output terminal 1
It is a circuit which outputs from 31d. First output terminal 131
In c, the input terminal 13 of the frequency division ratio setting data selector 132
2a is connected. Frequency division ratio setting data selector 132
Is the NG pulse S13 input from the input terminal 132a.
1a to output the division ratio setting data S132 to the output terminal 1
A circuit for outputting from 32b, and its output terminal 132b
A frequency division ratio setting input terminal 133b of a variable frequency divider 133 having a frequency division ratio of 1 / M is connected to.

【0013】分周器133は、分周比設定入力端子13
3bから入力される分周比設定データS132に基づ
き、クロック入力端子133aから入力されるビットク
ロック信号BCを1/M分周して出力端子133cから
出力する回路である。出力端子133cは、分周比1/
Nの固定分周器134のクロック入力端子134aが接
続されている。分周器134は、分周器133の出力を
1/N分周して出力端子134bから出力する回路であ
り、その出力端子134bが、周波数一致検出器131
の第2の入力端子131bに接続されている。選択回路
140は、カウンタ(例えば、アップダウンカウンタ)
141とセレクタ142を有し、該アップダウンカウン
タ141の第1の入力端子141aが周波数一致検出器
131の第1の出力端子131cに接続され、該アップ
ダウンカウンタ141の第2の入力端子141bが該周
波数一致検出器131の第2の出力端子131dに接続
されている。アップダウンカウンタ141は、第1の入
力端子141aから入力されるNGパルスS131a又
は第2の入力端子141bから入力されるOKパルスS
131bをカウントし、それらの信号が規定値以上発生
した時に第1又は第2の選択信号S141を出力端子1
41cから出力する回路である。出力端子141cは、
セレクタ142の第3の入力端子142cに接続され、
そのセレクタ142の第1の入力端子142aが、VC
O123の出力端子123aに、第2の入力端子142
bが、分周器133の出力端子133cに、それぞれ接
続されている。セレクタ142は、第3の入力端子14
2cに入力される選択信号S141に基づき、第1又は
第2の入力端子142a,142bのいずれか一方を出
力端子142dに接続する回路であり、その出力端子1
42dが制御回路103,203にそれぞれ接続されて
いる。
The frequency divider 133 has a frequency division ratio setting input terminal 13
It is a circuit that divides the bit clock signal BC input from the clock input terminal 133a by 1 / M based on the division ratio setting data S132 input from 3b and outputs the result from the output terminal 133c. The output terminal 133c has a division ratio of 1 /
The clock input terminal 134a of the N fixed frequency divider 134 is connected. The frequency divider 134 is a circuit that divides the output of the frequency divider 133 by 1 / N and outputs the result from the output terminal 134b. The output terminal 134b has a frequency coincidence detector 131.
Of the second input terminal 131b. The selection circuit 140 is a counter (for example, an up / down counter).
141 and a selector 142, the first input terminal 141a of the up / down counter 141 is connected to the first output terminal 131c of the frequency coincidence detector 131, and the second input terminal 141b of the up / down counter 141 is It is connected to the second output terminal 131d of the frequency coincidence detector 131. The up / down counter 141 has an NG pulse S131a input from the first input terminal 141a or an OK pulse S input from the second input terminal 141b.
131b are counted, and the first or second selection signal S141 is output to the output terminal 1 when these signals are generated more than a specified value.
It is a circuit which outputs from 41c. The output terminal 141c is
Connected to the third input terminal 142c of the selector 142,
If the first input terminal 142a of the selector 142 is VC
The second input terminal 142 is connected to the output terminal 123a of the O123.
b is connected to the output terminal 133c of the frequency divider 133, respectively. The selector 142 uses the third input terminal 14
2c is a circuit that connects either one of the first and second input terminals 142a and 142b to the output terminal 142d based on the selection signal S141 input to the output terminal 1c.
42d is connected to the control circuits 103 and 203, respectively.

【0014】次に、動作を説明する。ビットクロック信
号BC及び同期信号SBが制御回路103,203及び
内部クロック発生回路110へ供給されると、該内部ク
ロック発生回路110では内部クロック信号φを発生
し、該制御回路103,203へ与える。A/D変換側
の制御回路103では、内部クロック信号φに基づき、
SCF101へ与えるクロック信号、及びA/D変換器
102へ与える制御信号等を出力する。すると、入力さ
れたアナログ信号AS1が、SCF101で高周波成分
等が除去され、A/D変換器102でディジタル信号に
変換され、制御回路103へ送られる。制御回路103
では、ビットクロック信号BCに基づき、A/D変換器
102からのディジタル信号をDS1の形で外部へ出力
する。又、D/A変換側の制御回路203では、内部ク
ロック発生回路110から内部クロック信号φが与えら
れると、その内部クロック信号φに基づき、SCF20
1を動作させるためのクロック信号、及びD/A変換器
202を動作させるための制御信号等を出力する。外部
からディジタル信号DS2が与えられると、制御回路2
03では、ビットクロック信号BCに基づき該ディジタ
ル信号DS2を入力し、D/A変換器202へ送る。D
/A変換器202では、制御回路203からのディジタ
ル信号をアナログ信号に変換する。このアナログ信号
は、SCF201で高周波成分等が除去された後、その
アナログ信号AS2が外部へ出力される。
Next, the operation will be described. When the bit clock signal BC and the synchronization signal SB are supplied to the control circuits 103 and 203 and the internal clock generation circuit 110, the internal clock generation circuit 110 generates an internal clock signal φ and supplies it to the control circuits 103 and 203. In the control circuit 103 on the A / D conversion side, based on the internal clock signal φ,
It outputs a clock signal given to the SCF 101, a control signal given to the A / D converter 102, and the like. Then, the input analog signal AS1 has high-frequency components removed by the SCF 101, is converted into a digital signal by the A / D converter 102, and is sent to the control circuit 103. Control circuit 103
Then, the digital signal from the A / D converter 102 is output to the outside in the form of DS1 based on the bit clock signal BC. Further, in the control circuit 203 on the D / A conversion side, when the internal clock signal φ is given from the internal clock generation circuit 110, the SCF 20 is generated based on the internal clock signal φ.
1 outputs a clock signal for operating 1 and a control signal for operating the D / A converter 202. When the digital signal DS2 is given from the outside, the control circuit 2
In 03, the digital signal DS2 is input based on the bit clock signal BC and sent to the D / A converter 202. D
The / A converter 202 converts the digital signal from the control circuit 203 into an analog signal. The analog signal AS2 of this analog signal is output to the outside after the high-frequency component and the like are removed by the SCF 201.

【0015】次に、内部クロック発生回路110の動作
を説明する。同期信号SB及びビットクロック信号BC
が与えられると、該同期信号SBがPLL回路120内
の位相比較器121の基準信号入力端子121aに入力
されると共に、分周回路130内の周波数一致検出器1
31の第1の入力端子131aに入力され、さらにビッ
トクロック信号BCが該分周回路130内の分周器13
3のクロック入力端子133aに入力される。PLL回
路120において、位相比較器121は、基準信号入力
端子121aから入力される同期信号SBと、フィード
バック信号入力端子121bから入力される1/N分周
器124の出力信号との位相を比較し、その位相差に応
じた電圧を出力する。この電圧は、フィルタ122で高
周波成分が除去された後、VCO123へ送られる。V
CO123では、フィルタ122の出力電圧に応じた周
波数で発振し、その出力信号を出力端子123aから出
力して1/N分周器124へフィードバック入力すると
共に、選択回路140内のセレクタ142の第1の入力
端子142aへ送る。
Next, the operation of the internal clock generating circuit 110 will be described. Sync signal SB and bit clock signal BC
Is given, the synchronizing signal SB is input to the reference signal input terminal 121a of the phase comparator 121 in the PLL circuit 120, and the frequency coincidence detector 1 in the frequency dividing circuit 130 is supplied.
31 is input to the first input terminal 131a of 31 and the bit clock signal BC is further input to the frequency divider 13 in the frequency divider circuit 130.
3 is input to the clock input terminal 133a. In the PLL circuit 120, the phase comparator 121 compares the phase of the synchronization signal SB input from the reference signal input terminal 121a with the output signal of the 1 / N frequency divider 124 input from the feedback signal input terminal 121b. , And outputs a voltage according to the phase difference. This voltage is sent to the VCO 123 after the high frequency component is removed by the filter 122. V
The CO 123 oscillates at a frequency according to the output voltage of the filter 122, outputs the output signal from the output terminal 123a and feeds it back to the 1 / N frequency divider 124, and at the same time, outputs the first signal from the selector 142 in the selection circuit 140. To the input terminal 142a.

【0016】一方、分周回路130において、ビットク
ロック信号BCが分周器133のクロック入力端子13
3aに入力されると、該分周器133では、分周比設定
データ選択器132より入力される分周比設定データS
132で決まる分周比1/Mで、該ビットクロック信号
BCを分周し、出力端子133cから出力する。この分
周出力は、1/N分周器134で1/N分周され、出力
端子134bから出力されて周波数一致検出器131の
第2の入力端子131bへ送られる。周波数一致検出器
131では、第1の入力端子131aに入力される同期
信号SBの周波数と、第2の入力端子131bに入力さ
れる1/N分周器134の出力周波数とを比較し、該同
期信号SBの周波数と1/N分周器134の出力周波数
とが異なる時、該同期信号SBが入力される毎に第1の
出力端子131cよりNGパルスS131aを出力し、
該同期信号SBの周波数と1/N分周器134の出力周
波数とが一致した時、該同期信号SBが入力される毎に
第2の出力端子131dよりOKパルスS131bを出
力する。例えば、周波数一致検出器131よりNGパル
スS131aが出力されると、これを入力とする分周比
設定データ選択器132では、分周器133の分周比1
/Mの値が該分周比1/Mの値と異なる1/Maの値に
なるように分周比設定データS132を該分周器133
の分周比設定入力端子133bへ入力する。この分周比
設定データS132の更新は、周波数一致検出器131
よりNGパルスS131aがでなくなるまで繰り返し行
われる。ここで、分周器133に入力されるビットクロ
ック信号BCの周波数をfBC、同期信号SBの周波数を
SBとすると、次式(1)が成り立つ。
On the other hand, in the frequency divider circuit 130, the bit clock signal BC is applied to the clock input terminal 13 of the frequency divider 133.
3a, the frequency divider 133 outputs the frequency division ratio setting data S input from the frequency division ratio setting data selector 132.
The bit clock signal BC is frequency-divided at a frequency division ratio 1 / M determined by 132, and is output from the output terminal 133c. This frequency-divided output is 1 / N-divided by the 1 / N frequency divider 134, output from the output terminal 134b, and sent to the second input terminal 131b of the frequency coincidence detector 131. The frequency coincidence detector 131 compares the frequency of the synchronization signal SB input to the first input terminal 131a with the output frequency of the 1 / N frequency divider 134 input to the second input terminal 131b, When the frequency of the synchronization signal SB and the output frequency of the 1 / N frequency divider 134 are different, an NG pulse S131a is output from the first output terminal 131c every time the synchronization signal SB is input,
When the frequency of the synchronizing signal SB matches the output frequency of the 1 / N frequency divider 134, an OK pulse S131b is output from the second output terminal 131d every time the synchronizing signal SB is input. For example, when the frequency coincidence detector 131 outputs the NG pulse S131a, the frequency division ratio setting data selector 132, which receives the NG pulse S131a, outputs the frequency division ratio 1 of the frequency divider 133.
The frequency division ratio setting data S132 so that the value of / M becomes a value of 1 / Ma which is different from the value of the frequency division ratio 1 / M.
Input to the frequency division ratio setting input terminal 133b. This frequency division ratio setting data S132 is updated by the frequency coincidence detector 131.
This is repeated until the NG pulse S131a disappears. Here, when the frequency of the bit clock signal BC input to the frequency divider 133 is f BC and the frequency of the synchronization signal SB is f SB , the following equation (1) is established.

【0017】[0017]

【数1】 この(1)式を満足するMの値が分周比設定データ選択
器132で選択された時、周波数一致検出器131は、
第2の出力端子131dよりOKパルスS131bを出
力する。これに対し、(1)式を満足するMの値が分周
比設定データS132としてない場合、周波数一致検出
器131は、第1の出力端子131cよりNGパルスS
131aを出力し続ける。周波数一致検出器131から
出力されるNGパルスS131a及びOKパルスS13
1bを入力とするアップダウンカウンタ141は、NG
パルスS131aでカウントアップし、OKパルスS1
31bでカウントダウンする。なお、アップダウンカウ
ンタ141は、NGパルスS131aでカウントダウン
し、OKパルスS131bでカウントアップする構成に
してもよい。アップダウンカウンタ141のカウント数
の設定値は、分周比設定データ選択器132に用意され
ている分周比設定データS132に+1を加えた値を最
小として決められる。このアップダウンカウンタ141
から出力される選択信号S141は、カウントアップ入
力数がカウント数の設定値を越えた時に“0”から
“1”になり、次のカウントダウン入力数がカウント数
の設定値を越えるまでその“1”状態を保持し、カウン
トダウン入力数がカウント数の設定値を越えた時に
“1”から“0”になる。アップダウンカウンタ141
から出力される選択信号S141がセレクタ142の第
3の入力端子142cに入力されると、該セレクタ14
2では、第1の入力端子142aに入力されるPLL回
路120の出力、あるいは第2の入力端子142bに入
力される分周器133の出力のいずれか一方を選択し、
出力端子142dから内部クロック信号φを出力し、制
御回路103,203へ送る。
[Equation 1] When the value of M that satisfies the equation (1) is selected by the frequency division ratio setting data selector 132, the frequency coincidence detector 131
An OK pulse S131b is output from the second output terminal 131d. On the other hand, when the value of M satisfying the equation (1) is not included in the frequency division ratio setting data S132, the frequency coincidence detector 131 outputs the NG pulse S from the first output terminal 131c.
131a is continuously output. NG pulse S131a and OK pulse S13 output from the frequency coincidence detector 131
The up / down counter 141 that receives 1b is NG
Count up with pulse S131a, OK pulse S1
Countdown at 31b. The up / down counter 141 may be configured to count down with the NG pulse S131a and count up with the OK pulse S131b. The set value of the count number of the up / down counter 141 is determined by minimizing the value obtained by adding +1 to the frequency division ratio setting data S132 prepared in the frequency division ratio setting data selector 132. This up / down counter 141
The selection signal S141 output from the counter changes from "0" to "1" when the count-up input number exceeds the count number setting value, and continues to be "1" until the next countdown input number exceeds the count number setting value. When the countdown input number exceeds the set value of the count number, the state is maintained and the count is changed from "1" to "0". Up-down counter 141
When the selection signal S141 output from the selector 142 is input to the third input terminal 142c of the selector 142,
2 selects either the output of the PLL circuit 120 input to the first input terminal 142a or the output of the frequency divider 133 input to the second input terminal 142b,
The internal clock signal φ is output from the output terminal 142d and sent to the control circuits 103 and 203.

【0018】次に、アップダウンカウンタ141のカウ
ント動作を、図5を参照しつつ説明する。図5は、図1
中のアップダウンカウンタ141のカウント動作を示す
タイムチャートである。この図5において、アップダウ
ンカウンタ141のカウント状態を表す波形のうち、一
点鎖線のCaは“0”カウント状態、破線のCbはカウ
ンタ設定値である。図5において、時刻t1〜t5まで
の間は、同期信号SBの周波数と1/N分周器134の
出力周波数とが不一致なので、周波数一致検出器131
よりNGパルスS131aが出力され、アップダウンカ
ウンタ141がアップカウントする。この時刻t1〜t
5の期間、分周比設定データ選択器132は、NGパル
スS131aが入力される毎に分周比設定データS13
2を更新する。
Next, the counting operation of the up / down counter 141 will be described with reference to FIG. FIG. 5 shows FIG.
It is a time chart which shows the count operation of the inside up-down counter 141. In FIG. 5, among the waveforms representing the count state of the up / down counter 141, the chain line Ca is the “0” count state, and the broken line Cb is the counter set value. In FIG. 5, since the frequency of the synchronization signal SB and the output frequency of the 1 / N frequency divider 134 do not match from time t1 to t5, the frequency match detector 131
As a result, the NG pulse S131a is output, and the up / down counter 141 counts up. This time t1 to t
During the period of 5, the frequency division ratio setting data selector 132 outputs the frequency division ratio setting data S13 every time the NG pulse S131a is input.
Update 2.

【0019】時刻t6〜t16までの期間では、時刻t
5のNGパルスS131aで設定された分周比設定デー
タS132による分周器133の分周の結果、同期信号
SBの周波数と1/N分周器134の出力周波数とが一
致するので、周波数一致検出器131よりOKパルスS
131bが出力され、アップダウンカウンタ141がダ
ウンカウントする。ここで、時刻t10において、アッ
プダウンカウンタ141は“0”状態までカウントダウ
ンし、それ以降その状態を保持する。時刻t16以降で
は、分周器133のクロック入力端子133aへ入力さ
れるビットクロック信号BCの周波数が変わり、周波数
一致検出器131よりNGパルスS131aが出力さ
れ、アップダウンカウンタ141がアップカウントを始
める。分周比設定データ選択器132は、時刻t17以
降、同期信号SBの入力毎に分周比設定データS132
の更新を行う。ところが、用意されている分周比設定デ
ータS132に、同期信号SBの周波数と1/N分周器
134の出力周波数とが一致する分周比設定データがな
いため、周波数一致検出器131がNGパルスS131
aを出し続ける。アップダウンカウンタ141は、NG
パルスS131aをカウントアップし、該NGパルスS
131aの数がカウンタ設定値Cbに達した時、“1”
の選択信号S141を出力する。この選択信号S141
により、セレクタ142は出力端子142dへ出力する
内部クロック信号φを、分周器133の出力信号から、
PLL回路120の出力信号へ切替える。又、分周器1
33のクロック入力端子133aへ入力されるビットク
ロック信号BCの周波数が変わり、分周比設定データS
132の更新により、同期信号SBの周波数と1/N分
周器134の出力周波数とが一致すると、周波数一致検
出器131よりOKパルスS131bが出力される。そ
して、アップダウンカウンタ141のカウンタ設定値C
b以上の数のOKパルスS131bが出ると、アップダ
ウンカウンタ141のカウント状態が反転する。する
と、アップダウンカウンタ141から出力される選択信
号S141を入力するセレクタ142は、出力端子14
2dへ出力する内部クロック信号φを、PLL回路12
0の出力信号から、分周器133の出力信号へ切替え
る。
In the period from time t6 to time t16, time t
As a result of the frequency division of the frequency divider 133 by the frequency division ratio setting data S132 set by the NG pulse S131a of No. 5, the frequency of the synchronization signal SB and the output frequency of the 1 / N frequency divider 134 match. OK pulse S from the detector 131
131b is output and the up / down counter 141 counts down. Here, at time t10, the up / down counter 141 counts down to the “0” state and holds that state thereafter. After time t16, the frequency of the bit clock signal BC input to the clock input terminal 133a of the frequency divider 133 changes, the frequency match detector 131 outputs an NG pulse S131a, and the up / down counter 141 starts counting up. After the time t17, the frequency division ratio setting data selector 132 receives the frequency division ratio setting data S132 for each input of the synchronization signal SB.
Update. However, since there is no frequency division ratio setting data in which the frequency of the synchronization signal SB and the output frequency of the 1 / N frequency divider 134 match in the frequency division ratio setting data S132 prepared, the frequency coincidence detector 131 outputs NG. Pulse S131
Continue to issue a. The up / down counter 141 is NG
The pulse S131a is counted up, and the NG pulse S
When the number of 131a reaches the counter setting value Cb, "1"
Output the selection signal S141. This selection signal S141
As a result, the selector 142 outputs the internal clock signal φ output to the output terminal 142d from the output signal of the frequency divider 133.
Switching to the output signal of the PLL circuit 120. Also, the frequency divider 1
The frequency of the bit clock signal BC input to the clock input terminal 133a of 33 changes, and the frequency division ratio setting data S
When the frequency of the synchronization signal SB and the output frequency of the 1 / N frequency divider 134 match due to the update of 132, the frequency match detector 131 outputs an OK pulse S131b. Then, the counter setting value C of the up / down counter 141
When OK pulses S131b whose number is equal to or greater than b are output, the count state of the up / down counter 141 is inverted. Then, the selector 142, which receives the selection signal S141 output from the up / down counter 141, has the output terminal 14
The internal clock signal φ output to 2d is supplied to the PLL circuit 12
The output signal of 0 is switched to the output signal of the frequency divider 133.

【0020】以上のカウント動作を具体的な数値で説明
すると、次のようになる。例えば、同期信号SBの周波
数を8KHz、必要な内部クロック信号φの周波数を2
56KHzとすれば、分周器124,134の分周数N
は32となる。この条件で、ビットクロック信号BCの
周波数が2048KHzとすれば、分周器133の分周
数Mが8であれば、同期信号SBの周波数と1/N分周
器134の出力周波数とが一致し、周波数一致検出器1
31が連続してOKパルスS131bを出力する。これ
により、ビットクロック信号BCが分周器133で分周
された信号が、セレクタ142を通して内部クロック信
号φとして該セレクタ142の出力端子142dへ出力
され、制御回路103,203へ供給される。又、ビッ
トクロック信号BCの周波数が、必要な内部クロック信
号φの周波数256KHzよりも低い64KHzとすれ
ば、分周器133での分周が不可能となる。そのため、
周波数一致検出器131より連続してNGパルスS13
1aが出力され、アップダウンカウンタ141より出力
される選択信号S141により、セレクタ142はPL
L回路120の出力信号を選択し、内部クロック信号φ
として出力する。
The above-mentioned counting operation will be described below with specific numerical values. For example, the frequency of the synchronization signal SB is 8 KHz, and the frequency of the necessary internal clock signal φ is 2
If the frequency is 56 KHz, the frequency division number N of the frequency dividers 124 and 134 is N.
Is 32. Under this condition, if the frequency of the bit clock signal BC is 2048 KHz, and if the frequency division number M of the frequency divider 133 is 8, the frequency of the synchronization signal SB and the output frequency of the 1 / N frequency divider 134 are equal. Frequency matching detector 1
31 continuously outputs the OK pulse S131b. As a result, the signal obtained by dividing the bit clock signal BC by the frequency divider 133 is output to the output terminal 142d of the selector 142 through the selector 142 as the internal clock signal φ and supplied to the control circuits 103 and 203. If the frequency of the bit clock signal BC is 64 KHz, which is lower than the required frequency of 256 KHz of the internal clock signal φ, the frequency divider 133 cannot perform frequency division. for that reason,
Successive NG pulses S13 from the frequency coincidence detector 131
1a is output, and the selector 142 outputs PL by the selection signal S141 output from the up / down counter 141.
The output signal of the L circuit 120 is selected, and the internal clock signal φ
Output as.

【0021】以上のように、本実施例では、次のような
利点を有している。外部より供給されるビットクロック
信号BCをその周波数に応じて分周比を変えることの可
能な分周回路130と、外部より供給される同期信号S
Bを基準信号として動作するPLL回路120とを備
え、選択回路140により、該ビットクロック信号BC
の周波数に応じて該分周回路130の出力とPLL回路
120の出力のいずれかを選択して内部クロック信号φ
を生成するようにしたので、従来のマスタクロック方式
のようにマスタクロック信号を必要としない。しかも、
従来のPLL方式で発生するジッタによる高周波ビット
クロック信号との折返し雑音によるS/N比の劣化もな
く、精度の良い内部クロック信号φを発生できる。さら
に、使えるビットクロック信号BCの周波数の制約もな
く、任意のビットクロック信号BCの周波数を用いて、
的確に内部クロック信号φを発生できる。なお、本発明
は上記実施例に限定されず、種々の変形が可能である。
その変形例としては、例えば次のようなものがある。
As described above, this embodiment has the following advantages. A frequency divider circuit 130 capable of changing the frequency division ratio of the bit clock signal BC supplied from the outside according to its frequency, and a synchronization signal S supplied from the outside.
A PLL circuit 120 that operates using B as a reference signal, and the selection circuit 140 causes the bit clock signal BC
The internal clock signal φ by selecting either the output of the frequency dividing circuit 130 or the output of the PLL circuit 120 according to the frequency of
Is generated, the master clock signal is not required unlike the conventional master clock system. Moreover,
It is possible to generate an accurate internal clock signal φ without deterioration of the S / N ratio due to aliasing noise with the high frequency bit clock signal due to the jitter generated in the conventional PLL system. Furthermore, there is no restriction on the frequency of the bit clock signal BC that can be used, and by using the frequency of any bit clock signal BC,
The internal clock signal φ can be accurately generated. The present invention is not limited to the above embodiment, and various modifications can be made.
The following are examples of such modifications.

【0022】(a) 図1において、アップダウンカウ
ンタ141から出力される制御信号S141を、PLL
回路120のパワーオン信号及びパワーオフ信号として
使用すれば、該PLL回路120の出力信号を使用しな
い状態において、該PLL回路120の消費電力を低減
できる。例えば、PLL回路120内で比較的消費電力
の大きなVCO123に対し、選択信号S141を用い
て電源の供給あるいは遮断を制御すれば、該VCO12
3の低消費電力化が可能となる。 (b) 図1ではA/D変換側とD/A変換側にそれぞ
れ別個に制御回路103,203を設けたが、これらを
共通の回路で構成すれば、回路構成がより簡単になる。 (c) 内部クロック発生回路110内のPLL回路1
20、分周回路130、あるいは選択回路140を他の
回路構成に変更することも可能である。
(A) In FIG. 1, the control signal S141 output from the up / down counter 141 is set to the PLL.
When used as the power-on signal and the power-off signal of the circuit 120, the power consumption of the PLL circuit 120 can be reduced when the output signal of the PLL circuit 120 is not used. For example, if the power supply or cutoff of the VCO 123 that consumes relatively large power in the PLL circuit 120 is controlled using the selection signal S141, the VCO 12
3 can reduce the power consumption. (B) In FIG. 1, the control circuits 103 and 203 are separately provided on the A / D conversion side and the D / A conversion side, but if they are configured by a common circuit, the circuit configuration becomes simpler. (C) PLL circuit 1 in the internal clock generation circuit 110
It is also possible to change 20, the frequency dividing circuit 130, or the selecting circuit 140 to another circuit configuration.

【0023】[0023]

【発明の効果】以上詳細に説明したように、第1の発明
によれば、ビットクロック信号の周波数に応じて分周回
路出力とPLL回路出力のいずれか一方を選択回路で選
択し、内部クロック信号を発生するようにしたので、従
来のマスタクロック方式のように余分なマスタクロック
信号を必要としない。しかも、従来のPLL方式で発生
するジッタによる高周波ビットクロック信号との折返し
雑音によるS/N比の劣化も少なく、精度の良い内部ク
ロック信号を発生できる。第2の発明によれば、分周回
路を、ビットクロック信号の周波数に応じて分周比を変
えることのできる可変型構成にしたので、使用できるビ
ットクロック信号の周波数の制約もなく、任意のビット
クロック信号の周波数を使用して精度の良い内部クロッ
ク信号を発生できる。しかも、選択回路をカウンタとセ
レクタで構成したので、簡単な構成で、分周回路出力又
はPLL回路出力のいずれか一方を選択して内部クロッ
ク信号を的確に発生できる。第3の発明によれば、第
1,第2の選択信号をPLL回路のパワーオン信号及び
パワーオフ信号として使用しているので、該PLL回路
出力信号を使わない状態において、該PLL回路の消費
電力を低減できる。
As described in detail above, according to the first aspect of the invention, either the frequency divider circuit output or the PLL circuit output is selected by the selection circuit according to the frequency of the bit clock signal, and the internal clock is selected. Since the signal is generated, an extra master clock signal is not required unlike the conventional master clock system. Moreover, the deterioration of the S / N ratio due to the aliasing noise with the high frequency bit clock signal due to the jitter generated in the conventional PLL system is small, and an accurate internal clock signal can be generated. According to the second aspect of the invention, since the frequency dividing circuit has a variable configuration in which the frequency dividing ratio can be changed according to the frequency of the bit clock signal, there is no restriction on the frequency of the bit clock signal that can be used and any frequency can be set. The frequency of the bit clock signal can be used to generate an accurate internal clock signal. Moreover, since the selection circuit is composed of the counter and the selector, it is possible to accurately generate the internal clock signal by selecting either the frequency divider circuit output or the PLL circuit output with a simple configuration. According to the third invention, since the first and second selection signals are used as the power-on signal and the power-off signal of the PLL circuit, the consumption of the PLL circuit is reduced when the PLL circuit output signal is not used. Electric power can be reduced.

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

【図1】本発明の実施例を示すコーデックの機能ブロッ
ク図である。
FIG. 1 is a functional block diagram of a codec showing an embodiment of the present invention.

【図2】従来のマスタクロック方式を用いたコーデック
の機能ブロック図である。
FIG. 2 is a functional block diagram of a codec using a conventional master clock method.

【図3】従来のPLL方式を用いたコーデックの機能ブ
ロック図である。
FIG. 3 is a functional block diagram of a codec using a conventional PLL system.

【図4】従来のビットクロック方式を用いたコーデック
の機能ブロック図である。
FIG. 4 is a functional block diagram of a codec using a conventional bit clock method.

【図5】図1中のカウント動作のタイムチャートであ
る。
5 is a time chart of the counting operation in FIG.

【符号の説明】[Explanation of symbols]

101,201 SCF 102 A/D変換器 103,203 制御回路 110 内部クロック発生回路 120 PLL回路 121 位相比較器 122 フィルタ 123 VCO 124,134 1/N分周器 130 分周回路 131 周波数一致検出器 132 分周比設定データ選択器 133 可変分周器 140 選択回路 141 アップダウンカウンタ 142 セレクタ 202 D/A変換器 101,201 SCF 102 A / D converter 103,203 Control circuit 110 Internal clock generation circuit 120 PLL circuit 121 Phase comparator 122 Filter 123 VCO 124,134 1 / N frequency divider 130 Frequency division circuit 131 Frequency coincidence detector 132 Frequency division ratio setting data selector 133 Variable frequency divider 140 Selection circuit 141 Up / down counter 142 Selector 202 D / A converter

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 サンプリング周波数を決める同期信号、
及びディジタル信号を入出力するためのビットクロック
信号が外部から供給されると、それらの信号に基づき内
部クロック信号を生成し、該内部クロック信号から複数
の内部回路動作用信号を発生するクロック発生手段を備
え、 前記内部回路動作用信号に基づき、スイッチド・キャパ
シタ・フィルタを通ったアナログ信号をアナログ/ディ
ジタル変換器でディジタル信号に変換して出力すると共
に、外部から入力されるディジタル信号をディジタル/
アナログ変換器でアナログ信号に変換するコーデックに
おいて、 前記クロック発生手段は、 前記ビットクロック信号を分周する分周回路と、 前記同期信号を基準信号として動作するフェーズロック
ループ回路と、 前記ビットクロック信号の周波数に応じて前記分周回路
出力と前記フェーズロックループ回路出力のいずれか一
方を選択してそれを前記内部クロック信号として出力す
る選択回路とを、 備えたことを特徴とするコーデック。
1. A synchronization signal for determining a sampling frequency,
And a clock generating means for generating a plurality of internal circuit operation signals from the internal clock signal by generating an internal clock signal based on the bit clock signal for inputting and outputting the digital signal from the outside. Based on the internal circuit operation signal, the analog signal that has passed through the switched capacitor filter is converted into a digital signal by an analog / digital converter and output, and a digital signal input from the outside is converted into a digital signal.
In a codec for converting into an analog signal with an analog converter, the clock generation means divides the bit clock signal, a phase lock loop circuit that operates using the synchronization signal as a reference signal, and the bit clock signal. A codec comprising: a selection circuit that selects one of the frequency division circuit output and the phase lock loop circuit output according to the frequency and outputs it as the internal clock signal.
【請求項2】 前記分周回路は、 分周比設定データにより決まる分周比で前記ビットクロ
ック信号を分周する可変分周器と、 前記可変分周器の出力を一定の分周比で分周する固定分
周器と、 前記同期信号の周波数と前記固定分周器の出力周波数と
の一致/不一致を検出してそれに応じた周波数一致信号
/周波数不一致信号を出力する周波数一致検出器と、 前記周波数不一致信号に基づき前記分周比設定データを
出力して前記可変分周器に与える分周比設定データ選択
器とで構成し、 前記選択回路は、 前記周波数不一致信号を計数してその信号が規定値以上
発生した時に第1の選択信号を出力し、前記周波数一致
信号を計数してその信号が規定値以上発生した時に第2
の選択信号を出力するカウンタと、 前記第1の選択信号に基づき前記フェーズロックループ
回路の出力を選択し、前記第2の選択信号に基づき前記
分周回路の出力を選択するセレクタとで構成したことを
特徴とする請求項1記載のコーデック。
2. The variable frequency divider divides the bit clock signal at a frequency division ratio determined by frequency division ratio setting data, and an output of the variable frequency divider at a constant frequency division ratio. A fixed frequency divider for frequency division, and a frequency coincidence detector for detecting coincidence / disagreement between the frequency of the synchronization signal and the output frequency of the fixed frequency divider and outputting a frequency coincidence signal / frequency disagreement signal accordingly A frequency division ratio setting data selector which outputs the frequency division ratio setting data based on the frequency mismatch signal and supplies the variable frequency divider with the frequency division ratio setting data selector, wherein the selection circuit counts the frequency mismatch signal and A first selection signal is output when a signal is generated above a specified value, the frequency matching signal is counted, and a second selection signal is output when the signal is generated above a specified value.
And a selector that selects the output of the phase locked loop circuit based on the first selection signal and selects the output of the frequency dividing circuit based on the second selection signal. The codec according to claim 1, wherein:
【請求項3】 前記第1の選択信号に基づき前記フェー
ズロックループ回路に対して電源を供給し、前記第2の
選択信号に基づき前記フェーズロックループ回路に対す
る電源供給を遮断する構成にしたことを特徴とする請求
項2記載のコーデック。
3. A configuration in which power is supplied to the phase-locked loop circuit based on the first selection signal and power supply to the phase-locked loop circuit is cut off based on the second selection signal. The codec according to claim 2, wherein the codec is a codec.
JP5031482A 1993-02-22 1993-02-22 Codec Withdrawn JPH06244725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5031482A JPH06244725A (en) 1993-02-22 1993-02-22 Codec

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5031482A JPH06244725A (en) 1993-02-22 1993-02-22 Codec

Publications (1)

Publication Number Publication Date
JPH06244725A true JPH06244725A (en) 1994-09-02

Family

ID=12332493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5031482A Withdrawn JPH06244725A (en) 1993-02-22 1993-02-22 Codec

Country Status (1)

Country Link
JP (1) JPH06244725A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010109743A (en) * 2008-10-30 2010-05-13 Ricoh Co Ltd Fm transmitter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010109743A (en) * 2008-10-30 2010-05-13 Ricoh Co Ltd Fm transmitter

Similar Documents

Publication Publication Date Title
EP0641082B1 (en) PLL frequency synthesizer and PLL frequency synthesizing method capable of obtaining high-speed lock-up and highly-reliable oscillation
US8305119B2 (en) Clock generation circuit
JP2630343B2 (en) Variable frequency clock generator
US5524035A (en) Symmetric clock system for a data processing system including dynamically switchable frequency divider
US7323942B2 (en) Dual loop PLL, and multiplication clock generator using dual loop PLL
JP2809541B2 (en) Codec
JP2007142791A (en) Frequency synthesizer
JPH06244725A (en) Codec
US20030042948A1 (en) PLL circuit
JP2000244315A (en) Phase locked loop circuit with reduced jitter
US5867545A (en) Phase-locked loop circuit
JP3132657B2 (en) Clock switching circuit
JP2002043929A (en) Variable frequency divider circuit, and clock frequency division method using the circuit
KR0177237B1 (en) Audio clock generator for the lock mode of a digital video cassette recorder
JPH07170584A (en) Clock switching circuit
JPH06334491A (en) Clock generating circuit
KR100346725B1 (en) Phase locked loop circuit
KR0141689B1 (en) Fast pll synthesizer
JPH02203622A (en) Multiple frequency phase locked loop circuit
JP3037147B2 (en) PLL type frequency synthesizer
JPH098786A (en) Synchronizing clock switching system
JPH08148994A (en) Digital pll circuit
JPH04291819A (en) Phase locked loop circuit
JPH1056381A (en) Phase-locked loop circuit
JPH0548436A (en) Clock generating circuit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000509