[go: up one dir, main page]

JP2002009747A - Reference clock controller - Google Patents

Reference clock controller

Info

Publication number
JP2002009747A
JP2002009747A JP2000186344A JP2000186344A JP2002009747A JP 2002009747 A JP2002009747 A JP 2002009747A JP 2000186344 A JP2000186344 A JP 2000186344A JP 2000186344 A JP2000186344 A JP 2000186344A JP 2002009747 A JP2002009747 A JP 2002009747A
Authority
JP
Japan
Prior art keywords
value
stc
pcr
held
unit
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.)
Pending
Application number
JP2000186344A
Other languages
Japanese (ja)
Inventor
Hiroko Sugimoto
博子 杉本
Tomohiko Kitamura
朋彦 北村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2000186344A priority Critical patent/JP2002009747A/en
Publication of JP2002009747A publication Critical patent/JP2002009747A/en
Pending legal-status Critical Current

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

(57)【要約】 【課題】 簡単なハードウエア構成で基準クロックの自
動制御を中央演算装置に負担をかけることなく行う基準
クロック制御装置を提供する。 【解決手段】 PCR抽出部901がデータストリーム
から最初に時間基準参照値を抽出すると、その値はPC
R値として、PCR(t)レジスタ902およびSTC
カウンタ904にセットされる。STCカウンタは、セ
ットされたPCR値をスタート値として、基準クロック
発振器907からの基準クロックのカウント動作を開始
する。以後、PCR抽出部が時間基準参照値を抽出する
毎に、そのときのSTCカウンタの値がSTC値として
STC(t)レジスタ903にセットされる。比較器1
08でPCR値とSTC値の大きさが比較され、その結
果に応じて、PWMレジスタ109から所定の値が出力
される。PWM制御部105は、PWMレジスタからの
値を累積加算することで、PWMレジスタ値を生成し、
基準クロック発振器の発振周波数を制御する。
(57) [Problem] To provide a reference clock control device that performs automatic control of a reference clock with a simple hardware configuration without burdening a central processing unit. SOLUTION: When a PCR extracting unit 901 first extracts a time reference value from a data stream, the value is converted to a PC value.
As the R value, the PCR (t) register 902 and the STC
It is set in the counter 904. The STC counter starts counting the reference clock from the reference clock oscillator 907 using the set PCR value as a start value. Thereafter, every time the PCR extraction unit extracts the time reference value, the value of the STC counter at that time is set in the STC (t) register 903 as the STC value. Comparator 1
At step 08, the magnitude of the PCR value and the STC value are compared, and a predetermined value is output from the PWM register 109 according to the result. The PWM control unit 105 generates a PWM register value by cumulatively adding values from the PWM register,
Controls the oscillation frequency of the reference clock oscillator.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、基準クロック制御
装置に関し、より特定的には、時刻基準参照値が所定間
隔毎に挿入されたデータストリームを受信し、当該デー
タストリームに同期した時間カウント信号を生成する基
準クロック制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a reference clock control device, and more specifically, to a data clock in which a time reference value is inserted at predetermined intervals, and a time count signal synchronized with the data stream. For generating a reference clock control device.

【0002】[0002]

【従来の技術】時刻基準参照値PCRを含むデータスト
リームを受信する装置において、受信動作と入力される
データストリームとを同期させるための同期カウント
は、当該装置内で生成される基準クロックに基づいて行
われる。ところで、例えばMPEGデータストリームの
周波数は、27MHzであるが、実際は、27MHz付
近で常時微妙に変動していることが知られている。この
ような変動を受信側で認識することができるように送信
側は、データストリーム中に時刻基準参照値PCRを挿
入する。時刻基準参照値PCRは、送信時にはデータス
トリーム中に所定間隔で挿入されているが、送信側で生
じたデータストリームの揺れによって、一定間隔から微
妙にずれて受信される。デコード処理等が正確に行われ
るためには、逐次受信される時刻基準参照値PCRに受
信装置内部で生成される基準クロックに基づくカウント
値を追従させる必要がある。そこで、以下に説明するよ
うな基準クロック制御装置が従来から提案されている。
2. Description of the Related Art In an apparatus for receiving a data stream including a time reference value PCR, a synchronization count for synchronizing a reception operation with an input data stream is determined based on a reference clock generated in the apparatus. Done. By the way, for example, the frequency of an MPEG data stream is 27 MHz, but it is actually known that the frequency always slightly fluctuates around 27 MHz. The transmitting side inserts the time reference value PCR into the data stream so that such fluctuations can be recognized on the receiving side. The time reference value PCR is inserted into the data stream at a predetermined interval at the time of transmission, but is received with a slight deviation from a fixed interval due to the fluctuation of the data stream generated on the transmission side. In order for the decoding process or the like to be performed accurately, it is necessary to make the count value based on the reference clock generated inside the receiving device follow the sequentially received time reference value PCR. Therefore, a reference clock control device as described below has been conventionally proposed.

【0003】図7は、従来の基準クロック制御装置の一
例を示すブロック図である。従来の基準クロック制御装
置900は、PCR抽出部901と、PCR(t)レジ
スタ902と、STCレジスタ903と、STCカウン
タ904と、PWM制御部905と、割込出力部906
と、基準クロック発振器907と、中央演算装置910
と、スイッチ911および912とを備えている。
FIG. 7 is a block diagram showing an example of a conventional reference clock control device. The conventional reference clock control device 900 includes a PCR extraction unit 901, a PCR (t) register 902, an STC register 903, an STC counter 904, a PWM control unit 905, an interrupt output unit 906
, Reference clock oscillator 907, central processing unit 910
And switches 911 and 912.

【0004】以下、図7を参照して、基準クロック制御
装置900の動作について説明する。PCR抽出部90
1は、入力されるデータストリームから時刻基準参照値
PCR(以下、PCR値と称す)を抽出し、抽出したP
CR値をPCR(t)レジスタ902に出力すると共
に、割込出力部906に対してPCR値を抽出したこと
を伝える。応じて、PCR(t)レジスタ902は、P
CR抽出部901から出力されたPCR値を保持する。
また、割込出力部906は、中央演算装置910へ割込
信号を出力する。さらに、PCR抽出部901は、イネ
ーブル信号をスイッチ912に出力してその開閉を制御
する。
Hereinafter, the operation of the reference clock control device 900 will be described with reference to FIG. PCR extraction unit 90
1 extracts a time reference value PCR (hereinafter referred to as a PCR value) from the input data stream,
It outputs the CR value to the PCR (t) register 902 and notifies the interrupt output unit 906 that the PCR value has been extracted. Accordingly, the PCR (t) register 902 stores
The PCR value output from the CR extraction unit 901 is held.
Further, the interrupt output unit 906 outputs an interrupt signal to the central processing unit 910. Further, the PCR extraction unit 901 outputs an enable signal to the switch 912 to control the opening and closing thereof.

【0005】スイッチ911は、データストリームの入
力が開始された後、PCR抽出部901が最初の時刻基
準参照値PCRを抽出したときのみに閉じられ、それ以
外は開放されている。スイッチ911の開閉は、図示し
ない制御部によって行われる。スイッチ911が閉じら
れると、PCR抽出部901によって抽出された最初の
PCR値がSTCカウンタ904に設定される。同期カ
ウンタであるSTCカウンタ904は、最初のPCR値
が設定されると、当該PCR値からインクリメント動作
を開始する。基準クロック発振器907は、ここでは、
27MHzの基準クロックをSTCカウンタ904に与
えている。STCカウンタ904は、この基準クロック
に同期してインクリメント動作を行う。PCR抽出部9
01は、PCR値を抽出する度に、スイッチ912に対
して、イネーブル信号として論理信号「1」を出力す
る。スイッチ912は、PCR抽出部901からイネー
ブル信号として論理信号「1」が出力される度に閉じら
れる。これにより、STC(t)レジスタ903は、P
CR抽出部901がPCR値を抽出する度に、STCカ
ウンタ904のその時点でのカウント値(以下、STC
値と称す)を入力して保持する。
[0005] The switch 911 is closed only when the PCR extraction unit 901 extracts the first time reference value PCR after the input of the data stream is started, and is open otherwise. The opening and closing of the switch 911 is performed by a control unit (not shown). When the switch 911 is closed, the first PCR value extracted by the PCR extraction unit 901 is set in the STC counter 904. When the first PCR value is set, the STC counter 904, which is a synchronous counter, starts an increment operation from the PCR value. The reference clock oscillator 907 is
A 27 MHz reference clock is supplied to the STC counter 904. The STC counter 904 performs an increment operation in synchronization with the reference clock. PCR extractor 9
01 outputs a logic signal “1” to the switch 912 as an enable signal every time the PCR value is extracted. The switch 912 is closed each time the logic signal “1” is output from the PCR extraction unit 901 as an enable signal. As a result, the STC (t) register 903 stores the P
Each time the CR extraction unit 901 extracts the PCR value, the count value of the STC counter 904 at that time (hereinafter, STC counter 904)
Value).

【0006】中央演算装置910は、割込出力部906
から割込信号が出力されると、PCR(t)レジスタ9
02およびSTCレジスタ903に保持されているPC
R値およびSTC値を読み出し、次式(1)で示される
演算を実行してPWMレジスタ設定値を求め、求めたP
WMレジスタ設定値をPWM制御部905に出力する。
ただし、次式(1)において、PCR(t)およびST
C(t)は、リアルタイムで出力されたPCR値および
STC値であり、PCR(t−1)は、PCR(t)の
直前に入力されたPCR値であり、αは予め設定された
一定値である。なお、PCR(t−1)は、中央演算部
910が備える図示しないメモリ部に一旦格納されると
してもよい。 PMWレジスタ設定値=レジスタ設定値+{(PCR(t)−STC(t) )/(PCR(t)−PCR(t−1))}×α …(1)
The central processing unit 910 includes an interrupt output unit 906
Outputs an interrupt signal from the PCR (t) register 9
02 and the PC held in the STC register 903
The R value and the STC value are read, and an operation represented by the following equation (1) is executed to obtain a PWM register set value.
The WM register setting value is output to the PWM control unit 905.
However, in the following equation (1), PCR (t) and ST
C (t) is a PCR value and an STC value output in real time, PCR (t-1) is a PCR value input immediately before PCR (t), and α is a predetermined constant value. It is. Note that the PCR (t-1) may be temporarily stored in a memory unit (not shown) included in the central processing unit 910. PMW register set value = register set value + {(PCR (t) -STC (t)) / (PCR (t) -PCR (t-1))} × α (1)

【0007】PWM制御部905は、内部で矩形波信号
を生成し、基準クロック発振器907に出力している。
PWM制御部905が出力する矩形波信号のデューティ
ー比(本明細書では、信号のHigh区間とLow区間
の比を意味する)は、中央演算装置910から与えられ
るPWMレジスタ設定値に応じて随時変更される。
[0007] The PWM control section 905 generates a rectangular wave signal internally and outputs it to the reference clock oscillator 907.
The duty ratio of the rectangular wave signal output from the PWM control unit 905 (in the present specification, it means the ratio between the High section and the Low section of the signal) is changed at any time according to the PWM register setting value given from the central processing unit 910. Is done.

【0008】基準クロック発振器907は、図示しない
が、ローパスフィルタと電圧制御型発振器(VCO)と
によって構成されている。当該ローパスフィルタは、P
WM制御部905から与えられる矩形波信号を平滑化し
てその平均電圧を生成する。電圧制御型発振器は、ロー
パスフィルタによって生成された平均電圧を制御電圧と
して受ける。
Although not shown, the reference clock oscillator 907 comprises a low-pass filter and a voltage controlled oscillator (VCO). The low-pass filter is P
The rectangular wave signal provided from the WM control unit 905 is smoothed to generate an average voltage. The voltage controlled oscillator receives an average voltage generated by the low-pass filter as a control voltage.

【0009】PWM制御部905は、上述の式(1)に
よって求められたPWMレジスタ設定値に基づいて、出
力している矩形波信号のデューティー比を変化させる。
当該矩形波信号のデューティー比が増加/減少すると、
応じて、基準クロック発振器907が出力する基準クロ
ックの周波数は、上/下する。これにより、STCカウ
ンタ904は、データストリームの周波数変動に追従し
た基準クロックに基づいて同期カウントを行うことがで
きる。
The PWM control unit 905 changes the duty ratio of the output rectangular wave signal based on the PWM register setting value obtained by the above equation (1).
When the duty ratio of the rectangular wave signal increases / decreases,
Accordingly, the frequency of the reference clock output from reference clock oscillator 907 goes up / down. Thereby, the STC counter 904 can perform synchronous counting based on the reference clock that follows the frequency fluctuation of the data stream.

【0010】[0010]

【発明が解決しようとする課題】以上のように、従来の
基準クロック制御装置900は、PCR値が抽出される
度に、割込動作によって中央演算装置910に式(1)
の演算を実行させ、PWM制御部905に演算結果とし
てのレジスタ値を与えることにより、基準クロックをデ
ータストリームの周波数変動に追従させていた。中央演
算装置910は、主としてデコード処理等に伴う制御を
行っているが、上記の演算を行うために割込動作が頻繁
に要求されると、過度な処理負担を負うことになる。そ
の結果、中央演算装置910の主たる動作であるデコー
ド処理に悪影響が出るという問題があった。
As described above, the conventional reference clock control device 900 causes the central processing unit 910 to execute the equation (1) by an interrupt operation every time a PCR value is extracted.
The reference clock is made to follow the frequency fluctuation of the data stream by giving the register value as the calculation result to the PWM control unit 905. The central processing unit 910 mainly performs control associated with decoding processing and the like. However, if an interrupt operation is frequently required to perform the above-described operation, an excessive processing load is imposed. As a result, there is a problem that the decoding process, which is the main operation of the central processing unit 910, is adversely affected.

【0011】それ故に、本発明の目的は、簡単なハード
ウエア構成で基準クロックの自動制御を中央演算装置に
負担をかけることなく実現できる基準クロック制御装置
を提供することである。
SUMMARY OF THE INVENTION An object of the present invention is to provide a reference clock control device which can realize automatic control of a reference clock with a simple hardware configuration without burdening a central processing unit.

【0012】[0012]

【課題を解決するための手段および発明の効果】本発明
は、上記の目的を達成するために、以下に述べるような
特徴を有している。
Means for Solving the Problems and Effects of the Invention The present invention has the following features to achieve the above object.

【0013】第1の発明は、時刻基準参照値が所定間隔
で挿入されたデータストリームを受信し、当該データス
トリームに追従した時間カウント信号を生成する基準ク
ロック制御装置であって、データストリームから時刻基
準参照値を抽出して出力するPCR抽出部と、PCR抽
出部が出力した時刻基準参照値をPCR値として保持す
るPCR値保持部と、発振周波数に応じた基準クロック
を生成する基準クロック発振器と、PCR抽出部が最初
に出力した時刻基準参照値を起点として、基準クロック
のカウント動作を開始するSTCカウンタと、PCR抽
出部が時刻基準参照値を抽出する毎に、STCカウンタ
のそのときのカウント値を取り込んでSTC値として保
持するSTC値保持部と、PCR値保持部に保持されて
いるPCR値およびSTC値保持部に保持されているS
TC値を読み出してその大小関係を比較する比較器と、
予め複数の値が設定されており、比較器の比較結果に応
じて、当該複数の値の中から1つの値を選択して出力す
るPWMレジスタ値変動部と、予め基準PWMレジスタ
値が設定されており、当該基準PWMレジスタ値をスタ
ート値としてPWMレジスタ値変動から出力される値を
累積加算し、その結果である累積加算値に基づいて基準
クロック発振器の発振周波数を制御するPWM制御部と
を備え、STCカウンタのカウント値を時間カウント信
号として用いることを特徴とする。
A first invention is a reference clock control device for receiving a data stream in which a time reference value is inserted at a predetermined interval and generating a time count signal following the data stream. A PCR extraction unit that extracts and outputs a reference reference value, a PCR value holding unit that holds the time reference value output by the PCR extraction unit as a PCR value, and a reference clock oscillator that generates a reference clock according to the oscillation frequency. An STC counter that starts a reference clock counting operation starting from the time reference value initially output by the PCR extraction unit, and a count of the STC counter at that time every time the PCR extraction unit extracts the time reference value. An STC value holding unit that fetches a value and holds the value as an STC value; S held in the STC value holding unit
A comparator for reading the TC value and comparing the magnitude relationship;
A plurality of values are set in advance, and a PWM register value changing unit that selects and outputs one value from the plurality of values according to a comparison result of the comparator, and a reference PWM register value is set in advance. A PWM control unit that cumulatively adds the values output from the PWM register value fluctuations with the reference PWM register value as a start value and controls the oscillation frequency of the reference clock oscillator based on the resulting cumulatively added value. And using the count value of the STC counter as a time count signal.

【0014】上記のように、第1の発明によれば、比較
器、PWMレジスタ値変動部といった簡単なハード回路
を追加するだけで、CPUのソフト処理に頼ることな
く、データストリームに同期した時間カウント信号を生
成することができる。
As described above, according to the first aspect of the present invention, the time synchronized with the data stream can be obtained without adding a simple hardware circuit such as a comparator and a PWM register value changing unit without relying on the CPU software processing. A count signal can be generated.

【0015】第2の発明は、第1の発明に従属する発明
であって、PWMレジスタ値変動部には、累積加算値を
増加させるための第1の値と、累積加算値を減少させる
ための第2の値と、現在の累積加算値を変動させること
のない第3の値とが予め設定されており、PWMレジス
タ値変動部は、PCR値保持部に保持されているPCR
値とSTC値保持部に保持されているSTC値とが、不
一致のときは第1および第2の値のいずれかを選択して
出力し、一致するときは第3の値を選択して出力するこ
とを特徴とする。
A second invention is an invention according to the first invention, wherein the PWM register value changing section includes a first value for increasing the cumulative value and a value for decreasing the cumulative value. Are set in advance, and a third value that does not change the current cumulative addition value is set in advance. The PWM register value changing unit stores the PCR value held in the PCR value holding unit.
When the value and the STC value held in the STC value holding unit do not match, one of the first and second values is selected and output, and when the value matches, the third value is selected and output. It is characterized by doing.

【0016】上記のように、第2の発明によれば、PW
Mレジスタ値変動部に3種類の値を設定しておき、比較
器の比較結果に応じて、これら3種類の値の中から適当
な値を選択して基準PWMレジスタ値に累積加算するよ
うにしているので、簡単な比較動作および数値選択動作
によってPWMレジスタ値を変動させることができ、ハ
ード回路の構成が簡素化される。
As described above, according to the second aspect, the PW
Three types of values are set in the M register value changing section, and an appropriate value is selected from these three types of values in accordance with the comparison result of the comparator and cumulatively added to the reference PWM register value. Therefore, the PWM register value can be changed by a simple comparison operation and a numerical value selection operation, and the configuration of the hardware circuit is simplified.

【0017】第3の発明は、時刻基準参照値が所定間隔
で挿入されたデータストリームを受信し、当該データス
トリームに追従した時間カウント信号を生成する基準ク
ロック制御装置であって、データストリームから時刻基
準参照値を抽出して出力するPCR抽出部と、PCR抽
出部が出力した時刻基準参照値をPCR値として保持す
るPCR値保持部と、発振周波数に応じた基準クロック
を生成する基準クロック発振器と、PCR抽出部が最初
に出力した時刻基準参照値を起点として、基準クロック
のカウント動作を開始するSTCカウンタと、PCR抽
出部が時刻基準参照値を抽出する毎に、STCカウンタ
のそのときのカウント値を取り込んでSTC値として保
持するSTC値保持部と、PCR値保持部に保持されて
いるPCR値およびSTC値保持部に保持されているS
TC値を読み出してその大小関係を比較する第1の比較
器と、PCR値保持部に保持されているPCR値とST
C値保持部に保持されているSTC値との差分の絶対値
を求める減算器と、所定のスレッショルド値を保持して
いるスレッショルド値記憶部と、減算器の減算結果とス
レッショルド記憶部に保持されているスレッショルド値
とを読み出してその大小関係を比較する第2の比較器
と、予め複数の値が設定されており、第1および第2の
比較器の比較結果に応じて、当該複数の値の中から1つ
の値を選択して出力するPWMレジスタ値変動部と、予
め基準PWMレジスタ値が設定されており、当該基準P
WMレジスタ値をスタート値としてPWMレジスタ値変
動から出力される値を累積加算し、その結果である累積
加算値に基づいて基準クロック発振器の発振周波数を制
御するPWM制御部とを備え、STCカウンタのカウン
ト値を時間カウント信号として用いることを特徴とす
る。
A third invention is a reference clock control device that receives a data stream in which a time reference value is inserted at a predetermined interval and generates a time count signal that follows the data stream. A PCR extraction unit that extracts and outputs a reference reference value, a PCR value holding unit that holds the time reference value output by the PCR extraction unit as a PCR value, and a reference clock oscillator that generates a reference clock according to the oscillation frequency. An STC counter that starts a reference clock counting operation starting from the time reference value initially output by the PCR extraction unit, and a count of the STC counter at that time every time the PCR extraction unit extracts the time reference value. An STC value holding unit that fetches a value and holds the value as an STC value; S held in the STC value holding unit
A first comparator for reading out the TC value and comparing the magnitude relation between the read value and the PCR value held in the PCR value holding unit;
A subtractor for obtaining the absolute value of the difference from the STC value held in the C value holding unit; a threshold value storage unit for holding a predetermined threshold value; a subtraction result of the subtractor and the threshold value stored in the threshold storage unit A second comparator for reading out the threshold value and comparing the magnitudes thereof, and a plurality of values set in advance, and the plurality of values are set in accordance with the comparison result of the first and second comparators. And a PWM register value changing unit that selects and outputs one value from among the above, and a reference PWM register value is set in advance.
A PWM control unit for cumulatively adding the value output from the PWM register value fluctuation with the WM register value as a start value and controlling the oscillation frequency of the reference clock oscillator based on the cumulatively added value as a result; It is characterized in that the count value is used as a time count signal.

【0018】上記のように、第3の発明によれば、PC
R値およびSTC値の大小関係のみならず、それらの差
分絶対値およびスレッショルド値の大小関係も考慮し
て、PWMレジスタ値変動での値選択条件のバリエーシ
ョンを増やすようにしているので、第1の発明に比べ
て、より正確な同期制御が可能となる。
As described above, according to the third aspect, the PC
In consideration of not only the magnitude relationship between the R value and the STC value but also the magnitude relationship between the difference absolute value and the threshold value, the variation of the value selection condition due to the fluctuation of the PWM register value is increased. Compared to the invention, more accurate synchronization control is possible.

【0019】第4の発明は、第3の発明に従属する発明
であって、任意の正の値aおよびbがa<bの関係を有
している場合において、PWMレジスタ値変動部には、
累積加算値を増加させるための値aおよびbと、累積加
算値を減少させるための値−aおよび−bと、現在の累
積加算値を変動させることのない値0とが予め設定され
ており、PWMレジスタ値変動部は、減算器の減算結果
がスレッショルド値記憶部に保持されているスレッショ
ルド値よりも小さく、かつPCR値保持部に保持されて
いるPCR値とSTC値保持部に保持されているSTC
値とが不一致のときは、値aまたは−aのいずれかを選
択して出力し、減算器の減算結果がスレッショルド値記
憶部に保持されているスレッショルド値よりも大きく、
かつPCR値保持部に保持されているPCR値とSTC
値保持部に保持されているSTC値とが不一致のとき
は、値bまたは−bのいずれかを選択して出力し、減算
器の減算結果がスレッショルド値記憶部に保持されてい
るスレッショルド値と一致し、かつPCR値保持部に保
持されているPCR値とSTC値保持部に保持されてい
るSTC値とが不一致のときは、値a,−a,bまたは
−bのいずれかを選択して出力し、PCR値保持部に保
持されているPCR値とSTC値保持部に保持されてい
るSTC値とが一致するときは、値0を選択して出力す
ることを特徴とする。
A fourth invention is an invention according to the third invention, wherein when arbitrary positive values a and b have a relationship of a <b, the PWM register value changing section includes ,
Values a and b for increasing the cumulative addition value, values -a and -b for decreasing the cumulative addition value, and a value 0 that does not change the current cumulative addition value are set in advance. , The PWM register value changing unit is configured to determine whether the subtraction result of the subtractor is smaller than the threshold value stored in the threshold value storage unit, and the PCR value stored in the PCR value storage unit and the STC value storage unit. STC
When the value does not match, either the value a or -a is selected and output, and the subtraction result of the subtractor is larger than the threshold value stored in the threshold value storage unit,
And the PCR value and the STC held in the PCR value holding unit.
When the STC value held in the value holding unit does not match, either the value b or -b is selected and output, and the subtraction result of the subtractor is compared with the threshold value held in the threshold value storage unit. If the values match and the PCR value held in the PCR value holding unit does not match the STC value held in the STC value holding unit, one of the values a, -a, b or -b is selected. When the PCR value held in the PCR value holding unit matches the STC value held in the STC value holding unit, the value 0 is selected and output.

【0020】上記のように、第4の発明によれば、PC
R値およびSTC値の差分絶対値がスレッショルド値よ
りも大きいか小さいかに応じて、選択する値の系列を変
えるようにしているので、データストリームに対する基
準クロックの時間的ずれが大きいときは基準クロックの
周波数変化幅を大きくすることができ、逆に、当該時間
的ずれが小さいときは基準クロックの周波数変化幅を小
さくすることができる。これによって、基準クロックの
周波数をより高速にデータストリームに追随させること
ができる。
As described above, according to the fourth aspect, the PC
Since the sequence of selected values is changed depending on whether the absolute value of the difference between the R value and the STC value is larger or smaller than the threshold value, if the time lag of the reference clock with respect to the data stream is large, the reference clock Can be increased. Conversely, when the time lag is small, the frequency variation of the reference clock can be reduced. This allows the frequency of the reference clock to follow the data stream at a higher speed.

【0021】第5の発明は、時刻基準参照値が所定間隔
で挿入されたデータストリームを受信し、当該データス
トリームに追従した時間カウント信号を生成する基準ク
ロック制御装置であって、データストリームから時刻基
準参照値を抽出して出力するPCR抽出部と、PCR抽
出部が出力した時刻基準参照値を第1のPCR値として
保持する第1のPCR値保持部と、第1のPCR値保持
部に現に保持されている時刻基準参照値の直前に保持さ
れていた時刻基準参照値を第2のPCR値として保持す
る第2のPCR値保持部と、発振周波数に応じた基準ク
ロックを生成する基準クロック発振器と、PCR抽出部
が最初に出力した時刻基準参照値を起点として、基準ク
ロックのカウント動作を開始するSTCカウンタと、P
CR抽出部が時刻基準参照値を抽出する毎に、STCカ
ウンタのそのときのカウント値を取り込んで第1のST
C値として保持するSTC値保持部と、第1のSTC値
保持部に現に保持されているカウント値の直前に保持さ
れていたカウント値を第2のSTC値として保持する第
2のSTC値保持部と、第1のPCR値保持部に保持さ
れている第1のPCR値および第1のSTC値保持部に
保持されている第1のSTC値を読み出してその大小関
係を比較する第1の比較器と、第1のPCR値保持部に
保持されている第1のPCR値と第1のSTC値保持部
に保持されている第1のSTC値との差分の絶対値を求
める第1の減算器と、所定のスレッショルド値を保持し
ているスレッショルド値記憶部と、第1の減算器の減算
結果とスレッショルド値記憶部に保持されているスレッ
ショルド値とを読み出してその大小関係を比較する第2
の比較器と、予め複数の値が設定されており、第1およ
び第2の比較器の比較結果に応じて、当該複数の値の中
から1つの値を選択して出力する第1のPWMレジスタ
値変動部と、第1のPCR値保持部に保持されている第
1のPCR値から第2のPCR値保持部に保持されてい
る第2のPCR値を減算してΔPCRを求める第2の減
算器と、第1のSTC値保持部に保持されている第1の
STC値から第2のSTC値保持部に保持されている第
2のSTC値を減算してΔSTCを求める第3の減算器
と、第2および第3の減算器からΔPCRおよびΔST
Cを読み出してその大小関係を比較する第3の比較器
と、予め複数の値が設定されており、第3の比較器の比
較結果に応じて、当該複数の値の中から1つの値を選択
して出力する第2のPWMレジスタ値変動部と、予め基
準PWMレジスタ値が設定されており、当初、基準PW
Mレジスタ値をスタート値として第2のPWMレジスタ
値変動部から出力される値を累積加算し、第3の比較器
の比較結果が反転した時点での累積加算値を暫定PWM
レジスタ値とし、その後、第1のPWMレジスタ値変動
部から出力される値を暫定PWMレジスタ値に単純加算
してPWMレジスタ値を求め、当該PWMレジスタ値に
基づいて基準クロック発振器の発振周波数を制御するP
WM制御部とを備え、STCカウンタのカウント値を時
間カウント信号として用いることを特徴とする。
According to a fifth aspect of the present invention, there is provided a reference clock control device for receiving a data stream in which a time reference value is inserted at predetermined intervals and generating a time count signal following the data stream. A PCR extracting unit that extracts and outputs a reference reference value, a first PCR value holding unit that holds the time reference value output by the PCR extracting unit as a first PCR value, and a first PCR value holding unit. A second PCR value holding unit for holding the time reference reference value held immediately before the currently held time reference reference value as a second PCR value, and a reference clock for generating a reference clock corresponding to the oscillation frequency An oscillator, an STC counter for starting a reference clock counting operation starting from a time reference value first output by the PCR extraction unit,
Every time the CR extraction unit extracts the time reference value, the current count value of the STC counter is fetched and the first ST
An STC value holding unit that holds the C value, and a second STC value holding unit that holds the count value held immediately before the count value currently held in the first STC value holding unit as the second STC value A first PCR value held in the first PCR value holding unit and a first STC value held in the first STC value holding unit, and a first STC value for comparing the magnitude relationship between the read first PCR value and the first STC value held in the first STC value holding unit A first comparator for calculating an absolute value of a difference between the first PCR value held in the first PCR value holding unit and the first STC value held in the first STC value holding unit; A subtracter, a threshold value storage unit that holds a predetermined threshold value, and a threshold value storage unit that reads out the subtraction result of the first subtractor and the threshold value stored in the threshold value storage unit and compares the magnitude relations. 2
And a first PWM for selecting and outputting one value from the plurality of values according to the comparison result of the first and second comparators. A register value variation unit, and a second PCR value obtained by subtracting the second PCR value held in the second PCR value holding unit from the first PCR value held in the first PCR value holding unit to obtain ΔPCR And the third STC value obtained by subtracting the second STC value held in the second STC value holding unit from the first STC value held in the first STC value holding unit to obtain ΔSTC Subtracters and ΔPCR and ΔST from the second and third subtractors.
A third comparator for reading C and comparing the magnitude relation thereof, and a plurality of values are set in advance, and one of the plurality of values is set according to the comparison result of the third comparator. A second PWM register value changing unit to be selected and output, and a reference PWM register value are set in advance.
The value output from the second PWM register value changing unit is cumulatively added with the M register value as a start value, and the cumulative added value at the time when the comparison result of the third comparator is inverted is provisional PWM.
The value output from the first PWM register value change unit is simply added to the provisional PWM register value to obtain the PWM register value, and the oscillation frequency of the reference clock oscillator is controlled based on the PWM register value. P
And a WM control unit, wherein the count value of the STC counter is used as a time count signal.

【0022】上記のように第5の発明によれば、最初、
ΔPCRとΔSTCとの差を最小とするような暫定PW
Mレジスタ値を求め、その後、この暫定PWMレジスタ
値を中心として第1のPCR値と第1のSTC値との差
を無くすような補正を行っているので、データストリー
ムと基準クロックとの間で生じている固定的な時間ずれ
を補正する必要がなくなり、より高速に基準クロックを
データストリームに追随させることができる。
According to the fifth invention as described above, first,
Provisional PW that minimizes the difference between ΔPCR and ΔSTC
Since the M register value is obtained, and thereafter the correction is performed so as to eliminate the difference between the first PCR value and the first STC value with the provisional PWM register value as the center, the difference between the data stream and the reference clock is obtained. It is not necessary to correct the generated fixed time lag, and the reference clock can follow the data stream at a higher speed.

【0023】第6の発明は、第5の発明に従属する発明
であって、任意の正の値aおよびbがa<bの関係を有
している場合において、第1のPWMレジスタ値変動部
には、累積加算値を増加させるための値aおよびbと、
累積加算値を減少させるための値−aおよび−bと、現
在の累積加算値を変動させることのない値0とが予め設
定されており、第1のPWMレジスタ値変動部は、第1
の減算器の減算結果がスレッショルド値記憶部に保持さ
れているスレッショルド値よりも小さく、かつ第1のP
CR値保持部に保持されている第1のPCR値と第1の
STC値保持部に保持されている第1のSTC値とが不
一致のときは、値aまたは−aのいずれかを選択して出
力し、第1の減算器の減算結果がスレッショルド値記憶
部に保持されているスレッショルド値よりも大きく、か
つ第1のPCR値保持部に保持されている第1のPCR
値と第1のSTC値保持部に保持されている第1のST
C値とが不一致のときは、値bまたは−bのいずれかを
選択して出力し、第1の減算器の減算結果がスレッショ
ルド値記憶部に保持されているスレッショルド値と一致
し、かつ第1のPCR値保持部に保持されている第1の
PCR値と第1のSTC値保持部に保持されている第1
のSTC値とが不一致のときは、値a,−a,bまたは
−bのいずれかを選択して出力し、第1のPCR値保持
部に保持されている第1のPCR値と第1のSTC値保
持部に保持されている第1のSTC値とが一致するとき
は、値0を選択して出力することを特徴とする。
A sixth aspect of the present invention is an invention according to the fifth aspect of the present invention, wherein when any positive values a and b have a relationship of a <b, the first PWM register value variation The part includes values a and b for increasing the cumulative addition value,
Values -a and -b for decreasing the cumulative addition value and a value 0 that does not change the current cumulative addition value are set in advance, and the first PWM register value variation unit includes a first PWM register value variation unit.
Is smaller than the threshold value stored in the threshold value storage unit and the first P
If the first PCR value held in the CR value holding unit does not match the first STC value held in the first STC value holding unit, either value a or -a is selected. And the subtraction result of the first subtractor is larger than the threshold value stored in the threshold value storage unit, and the first PCR value stored in the first PCR value storage unit.
Value and the first ST held in the first STC value holding unit.
If the C value does not match, either the value b or -b is selected and output, and the subtraction result of the first subtractor matches the threshold value held in the threshold value storage unit, and The first PCR value held in the first PCR value holding unit and the first PCR value held in the first STC value holding unit.
If the STC values do not match, any one of the values a, -a, b, and -b is selected and output, and the first PCR value held in the first PCR value holding unit and the first PCR value are output. When the first STC value held in the STC value holding unit of the first and second STCs matches, the value 0 is selected and output.

【0024】上記のように、第6の発明によれば、第1
のPCR値および第1のSTC値の差分絶対値がスレッ
ショルド値よりも大きいか小さいかに応じて、選択する
値の系列を変えるようにしているので、データストリー
ムに対する基準クロックの時間的ずれが大きいときは基
準クロックの周波数変化幅を大きくすることができ、逆
に、当該時間的ずれが小さいときは基準クロックの周波
数変化幅を小さくすることができる。これによって、基
準クロックの周波数をより高速にデータストリームに追
随させることができる。
As described above, according to the sixth aspect, the first aspect
The sequence of values to be selected is changed according to whether the absolute value of the difference between the PCR value and the first STC value is larger or smaller than the threshold value, so that the time lag of the reference clock with respect to the data stream is large. In this case, the frequency change width of the reference clock can be increased. Conversely, when the time lag is small, the frequency change width of the reference clock can be reduced. This allows the frequency of the reference clock to follow the data stream at a higher speed.

【0025】第7の発明は、第5または第6の発明に従
属する発明であって、第2のPWMレジスタ値変動部に
は、累積加算値を増加させるための第1の値と、累積加
算値を減少させるための第2の値と、現在の累積加算値
を変動させることのない第3の値とが予め設定されてお
り、第2のPWMレジスタ値変動部は、ΔPCRとΔS
TCとが、不一致のときは第1および第2の値のいずれ
かを選択して出力し、一致するときは第3の値を選択し
て出力することを特徴とする。
A seventh invention is an invention according to the fifth or sixth invention, wherein the second PWM register value change section includes a first value for increasing the cumulative addition value, A second value for decreasing the added value and a third value that does not change the current accumulated added value are set in advance, and the second PWM register value changing unit includes ΔPCR and ΔS
When TC does not match, one of the first and second values is selected and output, and when TC matches, the third value is selected and output.

【0026】上記のように、第7の発明によれば、PW
Mレジスタ値変動部に3種類の値を設定しておき、比較
器の比較結果に応じて、これら3種類の値の中から適当
な値を選択して基準PWMレジスタ値に累積加算するよ
うにしているので、簡単な比較動作および数値選択動作
によってPWMレジスタ値を変動させることができ、ハ
ード回路の構成が簡素化される。
As described above, according to the seventh aspect, the PW
Three types of values are set in the M register value changing section, and an appropriate value is selected from these three types of values in accordance with the comparison result of the comparator and cumulatively added to the reference PWM register value. Therefore, the PWM register value can be changed by a simple comparison operation and a numerical value selection operation, and the configuration of the hardware circuit is simplified.

【0027】[0027]

【発明の実施の形態】(第1の実施形態)図1は、本発
明の第1の実施形態に係る基準クロック制御装置の構成
を示すブロック図である。図1において、本実施形態の
基準クロック制御装置100は、PCR抽出部901
と、PCR(t)レジスタ902と、STC(t)レジ
スタ903と、STCカウンタ904と、基準クロック
発振器907と、スイッチ911および912と、比較
器108と、PWMレジスタ値変動部109と、PWM
制御部105とを備えている。なお、従来の基準クロッ
ク制御装置900と同一の構成部分については、参照番
号を同一とし、その詳細な説明を省略する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS (First Embodiment) FIG. 1 is a block diagram showing a configuration of a reference clock control device according to a first embodiment of the present invention. In FIG. 1, the reference clock control device 100 according to the present embodiment includes a PCR extraction unit 901
, A PCR (t) register 902, an STC (t) register 903, an STC counter 904, a reference clock oscillator 907, switches 911 and 912, a comparator 108, a PWM register value variation unit 109, and a PWM
And a control unit 105. Note that the same components as those of the conventional reference clock control device 900 have the same reference numerals, and a detailed description thereof will be omitted.

【0028】PCR抽出部901が受け取るデータスト
リームは、パケット形式で送られてきており、各パケッ
トのヘッダ部には、パケット内に格納された実データの
種類を示す情報が含まれている。PCR抽出部901
は、データストリームにおける各パケットのヘッダ部を
参照することにより、各パケットに含まれている実デー
タが時刻基準参照値PCRを含んでいるか否かを認識
し、時刻基準参照値PCRを含んでいる場合は、当該時
刻基準参照値PCR(以下、PCR値と称す)を抽出し
て、PCR(t)レジスタ902に出力する。PCR
(t)レジスタ902は、与えられたPCR値を一時的
に保持する。STCカウンタ904は、データストリー
ムから最初に抽出されたPCR値をスイッチ911を介
して入力し、当該最初に抽出されたPCR値を初期値と
してインクリメント動作を開始する。スイッチ912
は、PCR抽出部901でPCR値が抽出される毎に閉
じられる。その結果、STC(t)レジスタ903は、
PCR値が抽出される時点毎のSTCカウンタ値(以
下、STC値と称す)をスイッチ912を介して入力
し、一時的に保持する。基準クロック発振器907は、
27MHzの基準クロックをSTCカウンタ904に与
える。
The data stream received by the PCR extracting unit 901 is sent in a packet format, and the header of each packet contains information indicating the type of actual data stored in the packet. PCR extractor 901
Recognizes whether or not the actual data included in each packet includes the time reference value PCR by referring to the header portion of each packet in the data stream, and includes the time reference value PCR. In this case, the time reference value PCR (hereinafter referred to as a PCR value) is extracted and output to the PCR (t) register 902. PCR
(T) The register 902 temporarily holds the given PCR value. The STC counter 904 inputs a PCR value first extracted from the data stream via the switch 911, and starts an increment operation with the first PCR value extracted as an initial value. Switch 912
Is closed each time a PCR value is extracted by the PCR extraction unit 901. As a result, the STC (t) register 903 stores
An STC counter value (hereinafter, referred to as an STC value) at each time when the PCR value is extracted is input via the switch 912 and is temporarily stored. The reference clock oscillator 907 is
A reference clock of 27 MHz is provided to the STC counter 904.

【0029】比較器108は、PCR(t)レジスタ9
02およびSTC(t)レジスタ903から、PCR値
およびSTC値を読み出して比較し、その結果に応じて
増加イネーブル信号SIおよび減少イネーブル信号SD
をPWMレジスタ値変動部109に出力する。増加イネ
ーブル信号SIまたは減少イネーブル信号SDの出力状
態としては、一例として、いずれか一方がハイレベルで
かついずれか他方がローレベルの状態と、いずれもがロ
ーレベルの状態とを取り得る。PWMレジスタ値変動部
109は、PWM制御部105に設定されたPWMレジ
スタ値を変更させるための値として、3種類の値a,−
aおよび0を予め保持しており、増加イネーブル信号が
ハイレベルのときは値aを出力し、減少イネーブル信号
SDがハイレベルのときは値−aを出力し、増加イネー
ブル信号SIおよび減少イネーブル信号SDがいずれも
ローレベルのときは値0を出力する。なお、比較器10
8およびPWMレジスタ値変動部109の動作の詳細に
ついては後述する。
The comparator 108 stores the PCR (t) register 9
02 and the STC (t) register 903, the PCR value and the STC value are read and compared, and the increase enable signal SI and the decrease enable signal SD
To the PWM register value changing unit 109. As an output state of the increase enable signal SI or the decrease enable signal SD, for example, one of them may be at a high level and the other is at a low level, and both may be at a low level. The PWM register value changing unit 109 includes three types of values a and-as values for changing the PWM register value set in the PWM control unit 105.
a and 0 are held in advance, the value a is output when the increase enable signal is at a high level, and the value -a is output when the decrease enable signal SD is at a high level, and the increase enable signal SI and the decrease enable signal are output. When SD is at a low level, a value 0 is output. Note that the comparator 10
8 and the operation of the PWM register value changing unit 109 will be described later in detail.

【0030】PWM制御部105は、内部で矩形波信号
を生成し、基準クロック発振器907に出力している。
このPWM制御部105は、図示しないが、初期値レジ
スタと累積値レジスタとを備えており、初期値レジスタ
には予め所定の基準PWMレジスタ値が固定的に設定さ
れている。累積値レジスタに格納されるPWMレジスタ
値は、初期値レジスタに設定された基準PWMレジスタ
値をスタート値として、ダイナミックに変化する。すな
わち、累積値レジスタは、PWMレジスタ値変動部10
9から何らかの値(a,−aまたは0)が与えられる毎
に、与えられた値を上記スタート値に対して累積加算し
ていくことで、PWMレジスタ値をダイナミックに変化
させる。PWM制御部105が生成する矩形波信号のデ
ューティー比は、累積値レジスタに格納されたPWMレ
ジスタ値に基づいて決定される。なお、累積値レジスタ
に格納されたPWMレジスタ値がスタート値、すなわち
初期値レジスタに設定された基準PWMレジスタ値と一
致するとき、PWM制御部105が出力する矩形波信号
のデューティー比は、一例として50%となる。そし
て、累積値レジスタに格納されたPWMレジスタ値が増
加すると、矩形波信号のデューティー比が増加し、逆
に、PWMレジスタ値が減少すると、矩形波信号のデュ
ーティー比が減少する。
The PWM control unit 105 internally generates a rectangular wave signal and outputs it to the reference clock oscillator 907.
Although not shown, the PWM control unit 105 includes an initial value register and a cumulative value register, and a predetermined reference PWM register value is fixedly set in advance in the initial value register. The PWM register value stored in the accumulation value register dynamically changes with the reference PWM register value set in the initial value register as a start value. That is, the accumulated value register is the PWM register value changing unit 10.
Every time a certain value (a, -a or 0) is given from 9, the given value is cumulatively added to the start value, thereby dynamically changing the PWM register value. The duty ratio of the rectangular wave signal generated by the PWM control unit 105 is determined based on the PWM register value stored in the cumulative value register. When the PWM register value stored in the accumulated value register matches the start value, that is, the reference PWM register value set in the initial value register, the duty ratio of the rectangular wave signal output by the PWM control unit 105 is, for example, It becomes 50%. When the PWM register value stored in the accumulation value register increases, the duty ratio of the rectangular wave signal increases, and conversely, when the PWM register value decreases, the duty ratio of the rectangular wave signal decreases.

【0031】次に、比較器108の比較動作と、PWM
レジスタ値変動部109の出力信号との関係について、
以下に分説する。
Next, the comparison operation of the comparator 108 and the PWM
Regarding the relationship with the output signal of the register value changing unit 109,
This is explained below.

【0032】(1)PCR値>STC値のとき この場合、比較器108は、ハイレベルの増加イネーブ
ル信号SIとローレベルの減少イネーブル信号SDとを
出力する。応じて、PWMレジスタ値変動部109は、
値aを出力する。その結果、PWM制御部105におい
て、累積値レジスタに格納されたPWMレジスタ値にa
が累積加算される。その結果、累積値レジスタに格納さ
れるPWMレジスタ値が増加するので、PWM制御部1
05から出力される矩形波信号のデューティー比が増加
する。 (2)PCR値<STC値のとき この場合、比較器108は、ローレベルの増加イネーブ
ル信号SIとハイレベルの減少イネーブル信号SDとを
出力する。応じて、PWMレジスタ値変動部109は、
値−aを出力する。その結果、PWM制御部105にお
いて、累積値レジスタに格納されたPWMレジスタ値に
値−aが加算される。その結果、累積値レジスタに格納
されるPWMレジスタ値が減少するので、PWM制御部
105から出力される矩形波信号のデューティー比が減
少する。 (3)PCR値=STC値のとき この場合、比較器108は、ローレベルの増加イネーブ
ル信号SIとローレベルの減少イネーブル信号SDとを
出力する。このとき、PWMレジスタ値変動部109は
値0を出力するので、PWM制御部105の累積値レジ
スタに格納されたPWMレジスタ値は変更されない。そ
のため、PWM制御部105から出力される矩形波信号
のデューティー比は、変更されない。なお、PWMレジ
スタ値変動部109が保持する値aまたは−aの決定法
については後述する。
(1) When PCR value> STC value In this case, the comparator 108 outputs a high-level increase enable signal SI and a low-level decrease enable signal SD. In response, the PWM register value changing unit 109
Output the value a. As a result, the PWM control unit 105 sets the PWM register value stored in the accumulated value register to a
Are cumulatively added. As a result, the PWM register value stored in the cumulative value register increases, so that the PWM control unit 1
The duty ratio of the rectangular wave signal output from the signal line 05 increases. (2) When PCR Value <STC Value In this case, the comparator 108 outputs a low-level increase enable signal SI and a high-level decrease enable signal SD. In response, the PWM register value changing unit 109
Output the value -a. As a result, in the PWM control unit 105, the value -a is added to the PWM register value stored in the accumulated value register. As a result, the PWM register value stored in the cumulative value register decreases, so that the duty ratio of the rectangular wave signal output from the PWM control unit 105 decreases. (3) When PCR value = STC value In this case, the comparator 108 outputs a low-level increase enable signal SI and a low-level decrease enable signal SD. At this time, since the PWM register value changing unit 109 outputs the value 0, the PWM register value stored in the accumulated value register of the PWM control unit 105 is not changed. Therefore, the duty ratio of the rectangular wave signal output from PWM control section 105 is not changed. The method of determining the value a or -a held by the PWM register value changing unit 109 will be described later.

【0033】次に、一例を挙げてPWM制御部105が
出力する信号と、当該PWM制御部105に設定される
PWMレジスタ値との関係について説明する。
Next, the relationship between the signal output by the PWM control unit 105 and the PWM register value set in the PWM control unit 105 will be described by way of an example.

【0034】今、PWM制御部105内に設けられた累
積値レジスタが10bit幅のレジスタで構成されてい
るとすると、当該累積値レジスタに格納されるPWMレ
ジスタ値の最小値および最大値は、10進数で表現する
と、それぞれ、0および1023となる。すなわち、累
積値レジスタに格納されるPWMレジスタ値は、0〜1
023の値をとり得る。今、PWM制御部105内部の
動作周波数が30MHzであるとすると、動作周波数の
一周期は、33.3nsecとなる。PWM制御部10
5は、生成する矩形波信号のHIGHの部分の幅を(3
3.3nsec×PWMレジスタ値)に設定し、かつ当
該矩形波信号の一波長を(33.3nsec×102
4)に設定する。このように、PWM制御部105は、
PWMレジスタ値に基づいて矩形波信号のHIGHの部
分の幅を調整するため、矩形波信号の一波長におけるH
IGHとLOWとの比(すなわち、デューティー比)を
1024段階に渡って変更可能である。なお、PWM制
御部105が備える初期値レジスタは、10進法で表現
すると512を基準PWMレジスタ値として保持してお
り、累積値レジスタは、この基準PWMレジスタ値(=
512)を初期値(スタート値)として累積加算動作を
行う。累積値レジスタに格納されたPWMレジスタ値が
基準PWMレジスタ値(=512)と一致するとき、P
WM制御部105から出力される矩形波信号のデューテ
ィー比は、1:1(50%)に設定される。なお、累積
値レジスタに格納されたPWMレジスタ値が最小値0の
場合は、PWM制御部105の出力信号全体がLOWで
あり、上記レジスタ値が最大値1023の場合は、PW
M制御部105の出力信号全体がHIGHである。
Assuming that the accumulated value register provided in the PWM control unit 105 is constituted by a register having a width of 10 bits, the minimum value and the maximum value of the PWM register value stored in the accumulated value register are 10 When expressed in base numbers, they are 0 and 1023, respectively. That is, the PWM register value stored in the cumulative value register is 0 to 1
023. Now, assuming that the operating frequency inside the PWM control unit 105 is 30 MHz, one cycle of the operating frequency is 33.3 nsec. PWM control unit 10
5 is the width of the HIGH portion of the generated rectangular wave signal (3
3.3 nsec × PWM register value) and one wavelength of the rectangular wave signal is set to (33.3 nsec × 102
Set to 4). As described above, the PWM control unit 105
In order to adjust the width of the HIGH portion of the rectangular wave signal based on the PWM register value, H at one wavelength of the rectangular wave signal is adjusted.
The ratio between IGH and LOW (that is, the duty ratio) can be changed in 1024 steps. Note that the initial value register included in the PWM control unit 105 holds 512 as a reference PWM register value in decimal notation, and the accumulated value register stores the reference PWM register value (=
512) is used as an initial value (start value) to perform an accumulative addition operation. When the PWM register value stored in the accumulated value register matches the reference PWM register value (= 512), P
The duty ratio of the rectangular wave signal output from the WM control unit 105 is set to 1: 1 (50%). When the PWM register value stored in the cumulative value register is the minimum value 0, the entire output signal of the PWM control unit 105 is LOW, and when the register value is the maximum value 1023, the PWM signal
The entire output signal of the M control unit 105 is HIGH.

【0035】基準クロック発振器907は、図示しない
が、ローパスフィルタと電圧制御型発振器(VCO)と
によって構成されている。当該ローパスフィルタは、P
WM制御部105から与えられる矩形波信号を平滑化し
てその平均電圧を生成する。電圧制御型発振器は、ロー
パスフィルタによって生成された平均電圧を制御電圧と
して受ける。従って、基準クロック発振器907は、P
WM制御部105から出力される矩形波信号のデューテ
ィー比の変化に応じて、基準クロック周波数を上下動さ
せることができる。なお、後述するが、基準クロック周
波数の上下幅(以下、制御幅と称す)は、入力されるデ
ータストリームの変動幅を予め想定して適当な値に設定
される。
Although not shown, the reference clock oscillator 907 includes a low-pass filter and a voltage controlled oscillator (VCO). The low-pass filter is P
The rectangular wave signal supplied from the WM control unit 105 is smoothed to generate an average voltage. The voltage controlled oscillator receives an average voltage generated by the low-pass filter as a control voltage. Therefore, the reference clock oscillator 907
The reference clock frequency can be moved up and down according to a change in the duty ratio of the rectangular wave signal output from the WM control unit 105. As will be described later, the upper and lower widths of the reference clock frequency (hereinafter, referred to as control widths) are set to appropriate values by assuming in advance the fluctuation width of the input data stream.

【0036】次に、PWMレジスタ値変動部109が保
持する値a,−aの決定方法の一例について説明する。
まず、予想されるデータストリームの周波数変動幅を変
動幅±Xとし、基準クロック制御装置100が発生する
基準クロック制御幅を制御幅±Yとする。すなわち、デ
ータストリームは概ね27MHzを中心とする変動幅±
X以内で変動し、基準クロックは概ね27MHzを中心
とする制御幅±Y以内で制御される。ところで、一般に
基準クロック制御装置は、ハードウエアの発熱や部品性
能のばらつき等に起因する基準クロックの周波数変動に
鑑みて、その制御幅±Yが変動幅±Xよりも大きな値に
なるように設計されている。今、仮に、Y=10Xとす
ると、PWMレジスタ値換算でXは約50に相当する。
従って、基準クロック制御装置100がPWM制御部1
05内に保持されたPWMレジスタ値(累積値レジスタ
に格納されている)を、例えば10回書き換える時間期
間(時刻基準参照値PCRを10回受信する時間期間に
相当する)に、+Xから−Xまで変動幅を変化させると
すると、一定値aは、PWMレジスタ値約50〜約−5
0までの変動幅約100を10で割ることにより、約1
0に設定される。なお、以下変動幅±Xをレジスタ値に
換算したものをレジスタ値相当値と称す。
Next, an example of a method of determining the values a and -a held by the PWM register value changing unit 109 will be described.
First, an expected frequency variation width of the data stream is defined as a variation width ± X, and a reference clock control width generated by the reference clock control device 100 is defined as a control width ± Y. That is, the data stream has a fluctuation range of about 27 MHz ±
The reference clock fluctuates within X and the reference clock is controlled within a control width ± Y centered at approximately 27 MHz. By the way, in general, the reference clock control device is designed so that the control width ± Y is larger than the fluctuation width ± X in consideration of the frequency fluctuation of the reference clock due to the heat generation of the hardware and the variation of the component performance. Have been. Assuming now that Y = 10X, X corresponds to about 50 in PWM register value conversion.
Therefore, the reference clock control device 100 is the PWM control unit 1
For example, the PWM register value (stored in the accumulated value register) held in the time period 05 is rewritten 10 times (corresponding to the time period for receiving the time reference value PCR 10 times) from + X to -X. Assuming that the fluctuation range is changed up to, the constant value a is about 50 to about −5 of the PWM register value.
Dividing the fluctuation range of about 100 to 0 by 10 gives about 1
Set to 0. Hereinafter, a value obtained by converting the fluctuation range ± X into a register value is referred to as a register value equivalent value.

【0037】上記のように、変動幅±Xと制御幅±Yと
の関係式を求めて当該関係式における変動幅±Xのレジ
スタ値相当値±Rを求め、2R(+R〜−Rまでの変化
幅)を任意のPWMレジスタの書き換え回数(時刻基準
参照値PCRの受信回数に相当)で割れば、値aを求め
ることができる。
As described above, the relational expression between the fluctuation width ± X and the control width ± Y is obtained, and the register value equivalent value ± R of the fluctuation width ± X in the relational expression is obtained, and 2R (+ R to -R) is obtained. The value a can be obtained by dividing the change width by the number of times of rewriting of an arbitrary PWM register (corresponding to the number of times of receiving the time reference value PCR).

【0038】以上のように、レジスタ値変動部109
は、PCR値とSTC値とが異なる場合に値aまたは−
aを、一致する場合に0をPWM制御部105に出力す
る。応じて、PWM制御部105から出力される信号の
デューティー比が決定される。PWM制御部105の出
力信号におけるデューティー比が変更され、すなわち一
波長におけるHIGHの割合がLOWの割合に比べて増
加または減少されると、基準クロック発振器907の発
振周波数は、27MHzより高くまたは低くなる。その
結果、基準クロック制御装置100は、基準クロック発
振器907の発振周波数をデータストリームの周波数変
動に追従させることができる。従って、STCカウンタ
904は、基準クロック発振器907が生成する基準ク
ロックに基づいて、データストリームのカウント値の変
動に追従した同期カウント値を図示しないデコーダ部等
に出力することができる。
As described above, the register value changing section 109
Is the value a or-when the PCR value and the STC value are different.
a is output to the PWM control unit 105 when they match. Accordingly, the duty ratio of the signal output from PWM control section 105 is determined. When the duty ratio in the output signal of the PWM control unit 105 is changed, that is, when the HIGH ratio at one wavelength is increased or decreased as compared with the LOW ratio, the oscillation frequency of the reference clock oscillator 907 becomes higher or lower than 27 MHz. . As a result, the reference clock control device 100 can make the oscillation frequency of the reference clock oscillator 907 follow the frequency fluctuation of the data stream. Therefore, based on the reference clock generated by the reference clock oscillator 907, the STC counter 904 can output a synchronous count value that follows a change in the count value of the data stream to a decoder (not shown) or the like.

【0039】図2は、基準クロック制御装置100によ
る制御動作の結果得られるPCR値−STC値の推移の
一例を示すグラフである。理想的には、PCR値−ST
C値は0であるが抽出される個々のPCR値に対してリ
アルタイムでSTC値を完全に追従させるような制御を
行うことはできない。従って、図2に示すように、PC
R値−STC値=0を中心として+方向または−方向に
変動する傾向を示すことになる。図2からも明らかなよ
うに、基準クロック制御装置100は、PCR値−ST
C値が0から乖離する傾向を示すと、その傾向を徐々に
和らげ、例えば0.8秒および2.1秒付近で0に収束
する傾向を示すようにする。その結果、基準クロック制
御装置100は、PCR値−STC値が0から乖離しす
ぎないような制御を行う。
FIG. 2 is a graph showing an example of a transition of the PCR value-STC value obtained as a result of the control operation by the reference clock control device 100. Ideally, the PCR value-ST
Although the C value is 0, it is impossible to perform control such that the STC value completely follows the extracted PCR values in real time. Therefore, as shown in FIG.
It shows a tendency to fluctuate in the + direction or the − direction around the R value−STC value = 0. As is clear from FIG. 2, the reference clock control device 100 calculates the PCR value -ST
When the C value shows a tendency to deviate from 0, the tendency is gradually reduced, and for example, it tends to converge to 0 around 0.8 seconds and 2.1 seconds. As a result, the reference clock control device 100 performs control so that the PCR value-STC value does not deviate too much from 0.

【0040】(第2の実施形態)図3は、本願発明の第
2の実施形態に係る基準クロック制御装置の構成を示す
ブロック図である。図3において、本実施形態の基準ク
ロック制御装置200は、第1の実施形態に係る基準ク
ロック制御装置100の構成に対して、PWMレジスタ
値変動部109に代えてPWMレジスタ値変動部209
を設け、加算器210、比較器212、およびスレッシ
ョルド値記憶部211を新たに追加した点が異なってい
る。なお、基準クロック制御装置100と同一の構成に
ついては、参照番号を同一とし、その詳細な説明を省略
する。
(Second Embodiment) FIG. 3 is a block diagram showing a configuration of a reference clock control device according to a second embodiment of the present invention. In FIG. 3, the reference clock control device 200 of the present embodiment differs from the configuration of the reference clock control device 100 of the first embodiment in that a PWM register value change unit 209 is used instead of the PWM register value change unit 109.
Is provided, and an adder 210, a comparator 212, and a threshold value storage unit 211 are newly added. The same components as those of the reference clock control device 100 have the same reference numerals, and detailed description thereof will be omitted.

【0041】PCR(t)レジスタ902に保持された
PCR値およびSTC(t)レジスタ903に保持され
たSTC値は、比較器108に入力されると共に、減算
器210にも入力される。スレッショルド値記憶部21
1は、予め定められたスレッショルド値Aを記憶してい
る。スレッショルド値Aの決定法の一例については、第
3の実施形態において後述する。比較器108の動作
は、既に第1の実施形態で述べたとおりである。減算器
210は、PCR値とSTC値との差分の絶対値(=|
PCR(t)−STC(t)|)を求め、その値を格納
する。比較器212は、上記差分絶対値およびスレッシ
ョルド値Aを、それぞれ減算器210およびスレッショ
ルド値記憶部211から読み出して、その大小関係を比
較する。比較器212は、|PCR(t)−STC
(t)|>Aの場合には、レジスタ値選択信号SSをハ
イレベルとし、|PCR(t)−STC(t)|<Aの
場合には、レジスタ値選択信号SSをローレベルとす
る。なお、|PCR(t)−STC(t)|=Aの場
合、比較器212がレジスタ値選択信号SSをハイレベ
ルとするかローレベルとするかは、任意の設計事項であ
るが、本実施形態では、便宜上ハイレベルとするものと
する。
The PCR value held in the PCR (t) register 902 and the STC value held in the STC (t) register 903 are input to the comparator 108 and also to the subtracter 210. Threshold value storage unit 21
1 stores a predetermined threshold value A. An example of a method for determining the threshold value A will be described later in a third embodiment. The operation of the comparator 108 is as already described in the first embodiment. The subtracter 210 calculates the absolute value of the difference between the PCR value and the STC value (= |
PCR (t) -STC (t) |) is obtained and its value is stored. The comparator 212 reads the absolute difference value and the threshold value A from the subtractor 210 and the threshold value storage unit 211, respectively, and compares the magnitude relations. Comparator 212 calculates | PCR (t) -STC
When (t) |> A, the register value selection signal SS is set to a high level, and when | PCR (t) -STC (t) | <A, the register value selection signal SS is set to a low level. When | PCR (t) −STC (t) | = A, it is an arbitrary design matter whether the comparator 212 sets the register value selection signal SS to a high level or a low level. In the embodiment, the level is set to a high level for convenience.

【0042】PWMレジスタ値変動部209は、PWM
制御部105におけるPWMレジスタ値を変動させるた
めの値として、5種類の値a,−a,b,−b,0を保
持しており、レジスタ値選択信号SS、増加イネーブル
信号SI、減少イネーブル信号SDの論理の組合せに応
じて、出力する値を切り替える。すなわち、PWMレジ
スタ値変動部209は、ハイレベルのレジスタ値選択信
号SSおよびハイレベルの増加イネーブル信号SIが与
えられたときは正の値aを出力し、ハイレベルのレジス
タ値選択信号SSおよびハイレベルの減少イネーブル信
号SDが与えられたときは負の値−aを出力する。ま
た、PWMレジスタ値変動部209は、ローレベルのレ
ジスタ値選択信号SSおよびハイレベルの増加イネーブ
ル信号SIが与えられたときは正の値bを出力し、ロー
レベルのレジスタ値選択信号SSおよびハイレベルの減
少イネーブル信号SDが与えられたときは負の値−bを
出力する。また、PWMレジスタ値変動部209は、ロ
ーレベルの増加イネーブル信号SIおよびローレベルの
減少イネーブル信号SDが与えられたときは、レジスタ
値選択信号SSのレベルに関わらず0を出力する。な
お、値bは、値aと同様にして求められたa<bを満た
す任意の値である。また、PWM制御部105、基準ク
ロック発振器907、およびSTCカウンタ904の構
成および動作は、第1の実施形態で用いられているそれ
らの構成および動作と同一であるので、それらの説明を
省略する。
The PWM register value change section 209 is a PWM
The control unit 105 holds five types of values a, -a, b, -b, and 0 as values for changing the PWM register value, and includes a register value selection signal SS, an increase enable signal SI, and a decrease enable signal. The value to be output is switched according to the combination of the logics of SD. That is, when the high-level register value selection signal SS and the high-level increase enable signal SI are given, the PWM register value change unit 209 outputs a positive value a, and outputs the high-level register value selection signal SS and the high level. When the level decrease enable signal SD is applied, a negative value -a is output. The PWM register value change unit 209 outputs a positive value b when the low-level register value selection signal SS and the high-level increase enable signal SI are given, and outputs the low-level register value selection signal SS and the high-level register value selection signal SS. When the level decrease enable signal SD is applied, a negative value -b is output. When the low-level increase enable signal SI and the low-level decrease enable signal SD are given, the PWM register value change unit 209 outputs 0 regardless of the level of the register value selection signal SS. The value b is an arbitrary value that satisfies a <b obtained in the same manner as the value a. Also, the configurations and operations of the PWM control unit 105, the reference clock oscillator 907, and the STC counter 904 are the same as those used in the first embodiment, and thus description thereof will be omitted.

【0043】上記のように、特にPCR値とSTC値と
の差の絶対値がスレッショルド値Aに比べて大きい場合
に、基準クロック制御装置200は、PWM制御部10
5内に設けられた累積値レジスタの初期値512に、値
bまたは−bを加算することによって、値aまたは−a
を加算する場合に比べてPWMレジスタ105のPWM
レジスタ値を大きく変動させることができる。従って、
基準クロック制御装置200は、PWMレジスタ値変動
部のPWMレジスタ値が1系列の値a,−aのみで制御
される第1の実施形態に比べて、特にPCR値とSTC
値との差が大きい場合、基準クロックの周波数をデータ
ストリームの周波数変動に素早く追従させることができ
る。
As described above, especially when the absolute value of the difference between the PCR value and the STC value is larger than the threshold value A, the reference clock control device 200
5 by adding the value b or -b to the initial value 512 of the accumulated value register provided in the value a or -a.
Of the PWM register 105 compared to the case where
The register value can be largely changed. Therefore,
The reference clock control device 200 is particularly different from the first embodiment in which the PWM register value of the PWM register value changing unit is controlled by only one series of values a and -a, in particular, the PCR value and the STC
If the difference is large, the frequency of the reference clock can quickly follow the frequency fluctuation of the data stream.

【0044】図4は、基準クロック制御装置200によ
る制御動作の結果得られるPCR値−STC値の推移の
一例を示すグラフである。図4に示したPCR値−ST
C値の推移の態様は、図2に類似している。しかし、図
4を図2と比較すると、図4に示したPCR値−STC
値の変動幅が図2に比べて小さい。図4および図2から
明らかなように、基準クロック制御装置200は、基準
クロック制御装置100に比べてPCR値−STC値を
素早く0に収束させることができる。
FIG. 4 is a graph showing an example of the transition of the PCR value-STC value obtained as a result of the control operation by the reference clock control device 200. PCR value-ST shown in FIG.
The manner of transition of the C value is similar to FIG. However, comparing FIG. 4 with FIG. 2, the PCR value-STC shown in FIG.
The fluctuation range of the value is smaller than that of FIG. As is clear from FIGS. 4 and 2, the reference clock control device 200 can quickly converge the PCR value−STC value to 0 as compared with the reference clock control device 100.

【0045】(第3の実施形態)図5は、本発明の第3
の実施形態に係る基準クロック制御装置の構成を示すブ
ロック図である。図5において、基準クロック制御装置
300は、第2の実施形態に係る基準クロック制御装置
200の構成に対して、PWMレジスタ値変動部209
に代えてPWMレジスタ値変動部309を設け、PWM
制御部105に代えてPWM制御部305を設け、PC
R(t−1)レジスタ313、STC(t−1)レジス
タ315、減算器314および316、比較器317、
PWMレジスタ値変動部318、暫定PWM値記憶部3
19、スイッチ320および321を新たに備えた点が
異なっている。以下、図5を参照して基準クロック制御
装置300の動作について説明する。なお、基準クロッ
ク制御装置200と同一の構成については、参照番号を
同一とし、その詳細な説明を省略する。さらに、PWM
制御部305が含むPWMレジスタには、第1および第
2の実施形態と異なり、初期値が与えられていない。
(Third Embodiment) FIG. 5 shows a third embodiment of the present invention.
FIG. 3 is a block diagram illustrating a configuration of a reference clock control device according to the embodiment. In FIG. 5, a reference clock control device 300 is different from the configuration of the reference clock control device 200 according to the second embodiment in that
, A PWM register value changing unit 309 is provided.
A PWM control unit 305 is provided instead of the control unit 105, and the PC
R (t-1) register 313, STC (t-1) register 315, subtractors 314 and 316, comparator 317,
PWM register value change section 318, provisional PWM value storage section 3
19 in that switches 320 and 321 are newly provided. Hereinafter, the operation of the reference clock control device 300 will be described with reference to FIG. The same components as those of the reference clock control device 200 have the same reference numerals, and detailed description thereof will be omitted. In addition, PWM
Unlike the first and second embodiments, the PWM register included in the control unit 305 is not provided with an initial value.

【0046】PCR(t−1)レジスタ313は、PC
R(t)レジスタ902が現に保持しているPCR値
(以下、PCR(t)値と称す)の直前に保持していた
PCR値(以下、PCR(t−1)値と称す)を保持す
る。STC(t−1)レジスタ315は、STC(t)
レジスタ903が現に保持しているSTC値(以下、S
TC(t)値と称す)の直前に保持していたSTC値
(以下、STC(t−1)値と称す)を保持する。減算
器314は、PCR(t)レジスタ902およびPCR
(t−1)レジスタ313からPCR(t)値およびP
CR(t−1)値を読み出してPCR(t)値からPC
R(t−1)値を減じてその差分(以下、ΔPCR値と
称す)を求める。減算器316は、STC(t)レジス
タ903およびSTC(t−1)レジスタ315からS
TC(t)値およびSTC(t−1)値を読み出してS
TC(t)値からSTC(t−1)値を減じてその差分
(以下、ΔSTC値と称す)を求める。
The PCR (t-1) register 313 is a PC
The R (t) register 902 holds a PCR value (hereinafter, referred to as a PCR (t-1) value) held immediately before a PCR value (hereinafter, referred to as a PCR (t) value) currently held. . The STC (t-1) register 315 stores the STC (t)
The STC value currently held by the register 903 (hereinafter referred to as S
The STC value (hereinafter referred to as the STC (t-1) value) held immediately before the TC (t) value is held. The subtractor 314 includes a PCR (t) register 902 and a PCR (t) register 902.
(T-1) PCR (t) value and P
Read the CR (t-1) value and calculate the PC from the PCR (t) value.
The difference (hereinafter referred to as ΔPCR value) is obtained by subtracting the R (t−1) value. The subtractor 316 outputs a signal from the STC (t) register 903 and the STC (t−1) register 315 to S
The TC (t) value and the STC (t-1) value are read out and S
The STC (t-1) value is subtracted from the TC (t) value to determine the difference (hereinafter, referred to as the ΔSTC value).

【0047】比較器317は、減算器314および31
6からΔPCR値およびΔSTC値を読み出してその大
小比較を行う。その結果、比較器317は、ΔPCR値
>ΔSTC値のときは、ハイレベルの増加イネーブル信
号SI1およびローレベルの減少イネーブル信号SD1
を出力し、ΔPCR値<ΔSTC値のときは、ローレベ
ルの増加イネーブル信号SI1およびハイレベルの減少
イネーブル信号SD1を出力し、ΔPCR値=ΔSTC
値のときは、ローレベルの増加イネーブル信号SI1お
よびローレベルの減少イネーブル信号SD1を出力す
る。
The comparator 317 includes subtractors 314 and 31
Then, the .DELTA.PCR value and .DELTA.STC value are read from No. 6 and their magnitudes are compared. As a result, when ΔPCR value> ΔSTC value, the comparator 317 outputs a high-level increase enable signal SI1 and a low-level decrease enable signal SD1.
Is output, and when ΔPCR value <ΔSTC value, a low-level increase enable signal SI1 and a high-level decrease enable signal SD1 are output, and ΔPCR value = ΔSTC
When the value is a value, a low-level increase enable signal SI1 and a low-level decrease enable signal SD1 are output.

【0048】PWMレジスタ値変動部318は、値c,
−cを保持しており、ハイレベルの増加イネーブル信号
SI1およびローレベルの減少イネーブル信号SD1が
入力されると値cを出力し、ローレベルの増加イネーブ
ル信号SI1およびハイレベルの減少イネーブル信号S
D1が入力されると値−cを出力する。
The PWM register value changing section 318 stores the value c,
-C, and outputs a value c when the high-level increase enable signal SI1 and the low-level decrease enable signal SD1 are input, and outputs the low-level increase enable signal SI1 and the high-level decrease enable signal S1.
When D1 is input, it outputs a value -c.

【0049】さらに、比較器317は、スイッチ320
および321の開閉を制御するためのスイッチ制御信号
Scを出力する。スイッチ320および321は、スイ
ッチ制御信号Scに応答して、相補的な開閉動作を行
う。すなわち、スイッチ320および321は、いずれ
か一方が閉じると、いずれか他方が開く。動作開始時に
おいて、ΔPCR値>ΔSTC値の場合、比較器317
は、ハイレベルの増加イネーブル信号SI1およびロー
レベルの減少イネーブル信号SD1を出力する。応じ
て、PWMレジスタ値変動部318は、値cを出力す
る。一方、動作開始時において、ΔPCR値<ΔSTC
値の場合、比較器317は、ローレベルの増加イネーブ
ル信号SI1およびハイレベルの減少イネーブル信号S
D1を出力する。応じて、PWMレジスタ値変動部31
8は、値−cを出力する。また、動作開始時において、
ΔPCR値>ΔSTC値、ΔPCR値<ΔSTC値いず
れの場合であっても、比較器317は、スイッチ320
を閉じ、スイッチ321を開く。これにより、暫定PW
Mレジスタ値記憶部319には、動作開始時において、
ΔPCR値>ΔSTC値の場合にはPWMレジスタ値と
して値cが、ΔPCR値<ΔSTC値の場合には、PW
Mレジスタ値として値−cが入力される。なお、動作開
始後にΔPCR値とΔSTC値との大小関係が逆転した
場合は、スイッチ320は開放され、スイッチ321は
閉じられる。
Further, the comparator 317 includes a switch 320
And a switch control signal Sc for controlling the opening and closing of the switch 321. The switches 320 and 321 perform complementary opening and closing operations in response to the switch control signal Sc. That is, when one of the switches 320 and 321 is closed, the other opens. At the start of the operation, if ΔPCR value> ΔSTC value, the comparator 317
Outputs a high-level increase enable signal SI1 and a low-level decrease enable signal SD1. In response, PWM register value changing section 318 outputs value c. On the other hand, at the start of the operation, ΔPCR value <ΔSTC
In the case of the value, the comparator 317 outputs the low-level increase enable signal SI1 and the high-level decrease enable signal S1.
D1 is output. Accordingly, the PWM register value changing unit 31
8 outputs the value -c. Also, at the start of operation,
Regardless of whether the ΔPCR value> ΔSTC value or the ΔPCR value <ΔSTC value, the comparator 317 sets the switch 320
Is closed, and the switch 321 is opened. With this, the provisional PW
At the start of the operation, the M register value storage unit 319 stores
When ΔPCR value> ΔSTC value, the value c is set as the PWM register value, and when ΔPCR value <ΔSTC value, PW
The value -c is input as the M register value. If the magnitude relationship between the ΔPCR value and the ΔSTC value is reversed after the operation starts, the switch 320 is opened and the switch 321 is closed.

【0050】なお、比較器108、減算器210、スレ
ッショルド値記憶部211、および比較器212は、第
2の実施形態で説明したものと同様の動作を行う。ただ
し、PWMレジスタ値変動部309は、PWMレジスタ
値を変動させるための値として、値a,−aおよび0を
保持している。比較器212は、減算器210の減算結
果とスレッショルド値記憶部211が保持しているスレ
ッショルド値Aとの比較の結果、減算結果の方が大きい
場合は、ハイレベルのレジスタ値選択信号SSを出力す
る。応じて、PWMレジスタ値変動部309は、値aま
たは−aを出力する。一方、減算器210の減算結果よ
りもスレッショルド値Aの方が大きい場合、比較器21
2は、ローレベルのレジスタ値選択信号SSを出力す
る。応じて、PWMレジスタ値変動部309は、0を出
力する。また、PWMレジスタ値変動部309は、第1
および第2の実施形態の場合と同様に、比較器108か
ら出力されるイネーブル信号に応じて、値a,−aを切
り替えて出力する。すなわち、PWMレジスタ値変動部
309は、ハイレベルの増加イネーブル信号SIおよび
ローレベルの減少イネーブル信号SDが与えられたとき
は正の値aを出力し、ローレベルの増加イネーブル信号
SIおよびハイレベルの減少イネーブル信号SDが与え
られたときは負の値−aを出力する。
The comparator 108, the subtractor 210, the threshold value storage unit 211, and the comparator 212 perform the same operations as those described in the second embodiment. However, the PWM register value change unit 309 holds the values a, -a, and 0 as values for changing the PWM register value. The comparator 212 outputs a high-level register value selection signal SS when the result of the comparison between the subtraction result of the subtractor 210 and the threshold value A held by the threshold value storage unit 211 is larger than the threshold value A. I do. In response, PWM register value changing section 309 outputs value a or −a. On the other hand, when the threshold value A is larger than the subtraction result of the subtractor 210, the comparator 21
2 outputs a low-level register value selection signal SS. In response, PWM register value changing section 309 outputs 0. In addition, the PWM register value changing unit 309 includes the first
As in the case of the second embodiment, the values a and -a are switched and output according to the enable signal output from the comparator 108. That is, when the high-level increase enable signal SI and the low-level decrease enable signal SD are supplied, the PWM register value variation unit 309 outputs a positive value a, and outputs the low-level increase enable signal SI and the high-level increase enable signal SI. When the decrease enable signal SD is given, a negative value -a is output.

【0051】暫定PWMレジスタ値記憶部319は、図
示しないが、例えば初期値レジスタと暫定値レジスタと
加算部とを備えている。当該初期値レジスタは、予め基
準PWMレジスタ値512を保持している。暫定値レジ
スタは、スイッチ320が閉じられている間、基準PW
Mレジスタ値512に対してPWMレジスタ値変動部3
18から出力された値cまたは−cを累積的に加算して
保持する。従って、例えば値cがN回、値−cがM回入
力されたとすると、暫定値レジスタの値は、512+
(c×N)+(−c×M)となる。ここで、累積加算さ
れた暫定値レジスタの値を暫定PWMレジスタ値βとす
ると、当該暫定PWMレジスタ値βは、スイッチ320
が開かれスイッチ321が閉じられたときに固定化され
る。以後、暫定PWMレジスタ値記憶部319には、P
WMレジスタ値変動部309からa,−a,0のいずれ
かの値が入力される。このとき、暫定PWMレジスタ値
記憶部319内の加算部は、暫定値レジスタに保持され
ている暫定PWMレジスタ値βを読み出し、当該暫定レ
ジスタ値βに対して値a、−aまたは0を単純加算して
出力する。従って、暫定PWMレジスタ値記憶部319
からは、β+a、β−a、βのいずれかのPWMレジス
タ値が出力される。PWM制御部305は、暫定PWM
レジスタ値記憶部319から出力される3種類の値に応
じて、生成する矩形波信号のデューティー比を変化させ
る。なお、基準クロック発振器907およびSTCカウ
ンタ904の動作は、第1の実施形態と同一であるので
説明を省略する。
Although not shown, the provisional PWM register value storage section 319 includes, for example, an initial value register, a provisional value register, and an addition section. The initial value register holds a reference PWM register value 512 in advance. The provisional value register stores the reference PW while the switch 320 is closed.
PWM register value change unit 3 for M register value 512
The value c or -c output from 18 is cumulatively added and held. Therefore, for example, if the value c is input N times and the value −c is input M times, the value of the provisional value register is 512+
(C × N) + (− c × M). Here, assuming that the value of the temporarily added temporary value register is a provisional PWM register value β, the provisional PWM register value β
Is opened and the switch 321 is closed when it is closed. Thereafter, the provisional PWM register value storage unit 319 stores the P
One of the values a, -a, and 0 is input from the WM register value changing unit 309. At this time, the addition unit in the provisional PWM register value storage unit 319 reads the provisional PWM register value β held in the provisional value register, and simply adds the value a, -a, or 0 to the provisional register value β. And output. Accordingly, the provisional PWM register value storage unit 319
Outputs the PWM register value of any one of β + a, β−a, and β. The PWM control unit 305 determines the provisional PWM
The duty ratio of the generated rectangular wave signal is changed according to the three values output from the register value storage unit 319. Note that the operations of the reference clock oscillator 907 and the STC counter 904 are the same as in the first embodiment, and a description thereof will be omitted.

【0052】ここで、第1および第2の実施形態と異な
り、基準クロック制御装置300がPCR値およびST
C値と、ΔPCR値およびΔSTC値との両方を用いる
理由について説明する。
Here, unlike the first and second embodiments, the reference clock control device 300 sets the PCR value and ST
The reason for using both the C value and the ΔPCR value and the ΔSTC value will be described.

【0053】まず、比較器317は、1つのPCR抽出
間隔におけるPCR値の変化量とSTC値の変化量とを
比較している。ところで、1つのPCR抽出間隔は、S
TCカウンタからSTC値が出力される間隔と当然に等
しい。今、その時間間隔をtとすると、PCR値の傾き
およびSTC値の傾きは、それぞれ、 PCR値の変化量/t STC値の変化量/t となる。従って、PCR値の変化量とSTC値の変化量
との比較は、結果的に1つのPCR抽出間隔におけるP
CR値とSTC値との傾きの比較である。それ故に、P
WMレジスタ値変動部318から出力される値cまたは
−cによって両者の傾きが等しくなるように補正され
る。
First, the comparator 317 compares the amount of change in the PCR value and the amount of change in the STC value in one PCR extraction interval. By the way, one PCR extraction interval is S
This is naturally equal to the interval at which the STC value is output from the TC counter. Assuming that the time interval is t, the slope of the PCR value and the slope of the STC value are respectively: PCR value change amount / t STC value change amount / t. Therefore, the comparison between the change amount of the PCR value and the change amount of the STC value results in the P value in one PCR extraction interval.
It is a comparison of the slope between the CR value and the STC value. Therefore, P
Correction is performed by the value c or −c output from the WM register value change unit 318 so that the two slopes become equal.

【0054】既に述べたように、動作開始時からΔPC
RとΔSTCとの差を少なくする動作が開始され、PW
Mレジスタ値変動部318から入力される値cまたは−
cによって暫定PWMレジスタ値記憶部319が含む累
積値レジスタが保持する暫定PWMレジスタ値が更新さ
れ続ける。その後、ΔPCRとΔSTCとの大小関係が
逆転して、スイッチ320が開かれスイッチ321が閉
じられると、傾き補正の動作が終了すると共にPCR値
およびSTC値の差分の補正動作が開始される。この時
点で、暫定PWMレジスタ値記憶部319内の累積値レ
ジスタには、データストリームと基準クロックとの間で
生じている固定的な時間ずれを補正し得る暫定PWMレ
ジスタ値βが保持されている。
As described above, ΔPC from the start of the operation
An operation to reduce the difference between R and ΔSTC is started, and PW
The value c input from the M register value change unit 318 or −
The provisional PWM register value held in the cumulative value register included in the provisional PWM register value storage unit 319 is continuously updated by c. Thereafter, when the magnitude relationship between ΔPCR and ΔSTC is reversed and the switch 320 is opened and the switch 321 is closed, the operation of the inclination correction ends and the operation of correcting the difference between the PCR value and the STC value is started. At this point, the accumulated value register in the provisional PWM register value storage unit 319 holds the provisional PWM register value β that can correct a fixed time lag that occurs between the data stream and the reference clock. .

【0055】PCR値とSTC値との差分の補正動作が
開始されると、暫定PWMレジスタ値記憶部319に
は、スイッチ321を介して、値a、−a、0のいずれ
かが入力される。従って、暫定PWMレジスタ値記憶部
319からは、暫定PWMレジスタ値をβとすると、β
+a、β−a、βのいずれかのPWMレジスタ値が出力
される。このとき、PCR値とSCT値との差がスレッ
ショルド値Aに比べて小さい、すなわち許容できる程度
である場合は、暫定PWMレジスタ値βそのものがPW
M制御部305に供給される。この場合、データストリ
ームと基準クロックとの間で生じている固定的な時間ず
れが補正される。一方、PCR値とSCT値との差がス
レッショルド値Aに比べて大きい、すなわち許容できる
程度を越えている場合は、β+aまたはβ−aのいずれ
かがPWM制御部305に供給される。この場合、デー
タストリームと基準クロックとの間で生じている固定的
な時間ずれのみならず、それ以外のダイナミックに変化
する時間ずれをも補正している。このように、データス
トリームと基準クロックとの間で生じている時間ずれ
を、固定的なずれとそれ以外のずれとに分けて、階層的
に補正することにより、第1および第2の実施形態に比
べて、より正確で俊敏な補正が可能となる。
When the operation of correcting the difference between the PCR value and the STC value is started, any one of the values a, -a, and 0 is input to the provisional PWM register value storage unit 319 via the switch 321. . Accordingly, from the provisional PWM register value storage unit 319, if the provisional PWM register value is β, β
Any of the PWM register values of + a, β-a, and β is output. At this time, if the difference between the PCR value and the SCT value is smaller than the threshold value A, that is, if the difference is acceptable, the provisional PWM register value β itself becomes the PWM value.
It is supplied to the M control unit 305. In this case, a fixed time lag between the data stream and the reference clock is corrected. On the other hand, when the difference between the PCR value and the SCT value is larger than the threshold value A, that is, when the difference exceeds an allowable level, either β + a or β−a is supplied to the PWM control unit 305. In this case, not only a fixed time lag occurring between the data stream and the reference clock but also other dynamically changing time lags are corrected. As described above, the time lag between the data stream and the reference clock is divided into the fixed lag and the other lag, and is corrected hierarchically, whereby the first and second embodiments are corrected. Compared to, more accurate and agile correction is possible.

【0056】図6は、基準クロック制御装置300によ
る制御動作の結果得られるPCR値−STC値の推移の
一例を示すグラフである。図6に示したPCR値−ST
C値の変動幅は、図2および図4に示した変動幅と比較
すると非常に狭くなっている。なお、図6を作成するた
めに用意された実際のデータにおいて、基準クロック制
御装置300の動作開始後0.6秒までは、スイッチ3
20が閉じられて暫定PWMレジスタ値記憶部319に
PWMレジスタ値変動部318から値11が入力されて
いる。この間、PCR値−STC値は比較的変動幅が大
きい。一方、基準クロック制御装置300の動作開始後
0.7秒〜1.4秒までは、スイッチ321が閉じられ
てPWMレジスタ値変動部309から暫定PWMレジス
タ値記憶部319に、値10が入力され、1.5秒〜
3.0秒までは、値0が入力されている。この間、PC
R値−STC値は、0軸方向に徐々に収束して2.7秒
後にわずかにマイナスになるものの、図6に示さない
3.1秒以降は、上記基準クロック制御装置300の動
作開始後0.6秒までの期間よりも非常に狭い変動幅で
推移することが確認されている。
FIG. 6 is a graph showing an example of the transition of the PCR value-STC value obtained as a result of the control operation by the reference clock control device 300. PCR value-ST shown in FIG.
The fluctuation range of the C value is very narrow as compared with the fluctuation ranges shown in FIGS. In the actual data prepared for creating FIG. 6, the switch 3 is used until 0.6 seconds after the operation of the reference clock control device 300 starts.
20 is closed, and the value 11 is input from the PWM register value change unit 318 to the temporary PWM register value storage unit 319. During this time, the PCR value-STC value has a relatively large fluctuation range. On the other hand, from 0.7 seconds to 1.4 seconds after the start of the operation of the reference clock control device 300, the switch 321 is closed and the value 10 is input from the PWM register value changing unit 309 to the provisional PWM register value storage unit 319. 1.5 seconds
Up to 3.0 seconds, a value of 0 has been entered. During this time, PC
The R value-STC value gradually converges in the 0 axis direction and becomes slightly negative after 2.7 seconds, but after 3.1 seconds not shown in FIG. 6, after the operation of the reference clock control device 300 starts. It has been confirmed that the variation is much narrower than the period up to 0.6 seconds.

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

【図1】本発明の第1の実施形態に係る基準クロック制
御装置の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a reference clock control device according to a first embodiment of the present invention.

【図2】本発明の第1の実施形態に係る基準クロック制
御装置による制御動作の結果得られるPCR値−STC
値の推移の一例を示すグラフである。
FIG. 2 is a diagram illustrating a PCR value-STC obtained as a result of a control operation performed by the reference clock control device according to the first embodiment of the present invention.
It is a graph which shows an example of a transition of a value.

【図3】本発明の第2の実施形態に係る基準クロック制
御装置の構成を示すブロック図である。
FIG. 3 is a block diagram illustrating a configuration of a reference clock control device according to a second embodiment of the present invention.

【図4】本発明の第2の実施形態に係る基準クロック制
御装置による制御動作の結果得られるPCR値−STC
値の推移の一例を示すグラフである。
FIG. 4 is a diagram illustrating a PCR value-STC obtained as a result of a control operation performed by the reference clock control device according to the second embodiment of the present invention.
It is a graph which shows an example of a transition of a value.

【図5】本発明の第3の実施形態に係る基準クロック制
御装置の構成を示すブロック図である。
FIG. 5 is a block diagram illustrating a configuration of a reference clock control device according to a third embodiment of the present invention.

【図6】本発明の第3の実施形態に係る基準クロック制
御装置による制御動作の結果得られるPCR値−STC
値の推移の一例を示すグラフである。
FIG. 6 shows a PCR value-STC obtained as a result of a control operation performed by the reference clock control device according to the third embodiment of the present invention.
It is a graph which shows an example of a transition of a value.

【図7】従来の基準クロック制御装置の構成を示すブロ
ック図である。
FIG. 7 is a block diagram showing a configuration of a conventional reference clock control device.

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

901…PCR抽出部 902…PCR(t)レジスタ 903…STC(t)レジスタ 904…STCカウンタ 907…基準クロック発振器 911,912…スイッチ 105,305…PWM制御部 108,212,317…比較器 109,209,309,318…PWMレジスタ値変
動部 211…スレッショルド値記憶部 210,314,316…減算器 313…PCR(t−1)レジスタ 315…STC(t−1)レジスタ
901: PCR extraction unit 902: PCR (t) register 903: STC (t) register 904: STC counter 907: reference clock oscillator 911, 912: switch 105, 305: PWM control unit 108, 212, 317: comparator 109, 209, 309, 318: PWM register value change section 211: threshold value storage section 210, 314, 316: subtractor 313: PCR (t-1) register 315: STC (t-1) register

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 時刻基準参照値が所定間隔で挿入された
データストリームを受信し、当該データストリームに追
従した時間カウント信号を生成する基準クロック制御装
置であって、 前記データストリームから前記時刻基準参照値を抽出し
て出力するPCR抽出部と、 前記PCR抽出部が出力した前記時刻基準参照値をPC
R値として保持するPCR値保持部と、 発振周波数に応じた基準クロックを生成する基準クロッ
ク発振器と、 前記PCR抽出部が最初に出力した時刻基準参照値を起
点として、前記基準クロックのカウント動作を開始する
STCカウンタと、 前記PCR抽出部が前記時刻基準参照値を抽出する毎
に、前記STCカウンタのそのときのカウント値を取り
込んでSTC値として保持するSTC値保持部と、 前記PCR値保持部に保持されているPCR値および前
記STC値保持部に保持されているSTC値を読み出し
てその大小関係を比較する比較器と、 予め複数の値が設定されており、前記比較器の比較結果
に応じて、当該複数の値の中から1つの値を選択して出
力するPWMレジスタ値変動部と、 予め基準PWMレジスタ値が設定されており、当該基準
PWMレジスタ値をスタート値として前記PWMレジス
タ値変動から出力される値を累積加算し、その結果であ
る累積加算値に基づいて前記基準クロック発振器の発振
周波数を制御するPWM制御部とを備え、 前記STCカウンタのカウント値を前記時間カウント信
号として用いることを特徴とする、基準クロック制御装
置。
1. A reference clock control device for receiving a data stream in which a time reference value is inserted at predetermined intervals and generating a time count signal following the data stream, wherein the time reference reference value is derived from the data stream. A PCR extraction unit for extracting and outputting a value; and a PC that outputs the time reference value output from the PCR extraction unit.
A PCR value holding unit for holding as an R value; a reference clock oscillator for generating a reference clock according to an oscillation frequency; and a count operation of the reference clock starting from a time reference value initially output by the PCR extraction unit. An STC counter to start; an STC value holding unit that takes in the count value of the STC counter at that time and holds it as an STC value each time the PCR extraction unit extracts the time reference value; And a comparator for reading the PCR value held in the STC value and the STC value held in the STC value holding unit and comparing the magnitude relation between them, and a plurality of values are set in advance, and the comparison result of the comparator Accordingly, a PWM register value changing unit that selects and outputs one value from the plurality of values, and a reference PWM register value is set in advance. A PWM control unit that cumulatively adds the values output from the PWM register value fluctuations with the reference PWM register value as a start value, and controls the oscillation frequency of the reference clock oscillator based on the resulting cumulative value. A reference clock control device, comprising: using a count value of the STC counter as the time count signal.
【請求項2】 前記PWMレジスタ値変動部には、前記
累積加算値を増加させるための第1の値と、前記累積加
算値を減少させるための第2の値と、現在の累積加算値
を変動させることのない第3の値とが予め設定されてお
り、 前記PWMレジスタ値変動部は、前記PCR値保持部に
保持されているPCR値と前記STC値保持部に保持さ
れているSTC値とが、不一致のときは前記第1および
第2の値のいずれかを選択して出力し、一致するときは
前記第3の値を選択して出力することを特徴とする、請
求項1に記載の基準クロック制御装置。
2. The PWM register value change section includes a first value for increasing the cumulative addition value, a second value for decreasing the cumulative addition value, and a current cumulative addition value. A third value that does not fluctuate is set in advance, and the PWM register value fluctuating section includes a PCR value held in the PCR value holding section and an STC value held in the STC value holding section. 2. The method according to claim 1, wherein when the two values do not match, one of the first and second values is selected and output, and when the two values match, the third value is selected and output. Reference clock controller as described.
【請求項3】 時刻基準参照値が所定間隔で挿入された
データストリームを受信し、当該データストリームに追
従した時間カウント信号を生成する基準クロック制御装
置であって、 前記データストリームから前記時刻基準参照値を抽出し
て出力するPCR抽出部と、 前記PCR抽出部が出力した前記時刻基準参照値をPC
R値として保持するPCR値保持部と、 発振周波数に応じた基準クロックを生成する基準クロッ
ク発振器と、 前記PCR抽出部が最初に出力した前記時刻基準参照値
を起点として、前記基準クロックのカウント動作を開始
するSTCカウンタと、 前記PCR抽出部が前記時刻基準参照値を抽出する毎
に、前記STCカウンタのそのときのカウント値を取り
込んでSTC値として保持するSTC値保持部と、 前記PCR値保持部に保持されているPCR値および前
記STC値保持部に保持されているSTC値を読み出し
てその大小関係を比較する第1の比較器と、 前記PCR値保持部に保持されているPCR値と前記S
TC値保持部に保持されているSTC値との差分の絶対
値を求める減算器と、 所定のスレッショルド値を保持しているスレッショルド
値記憶部と、 前記減算器の減算結果と前記スレッショルド記憶部に保
持されているスレッショルド値とを読み出してその大小
関係を比較する第2の比較器と、 予め複数の値が設定されており、前記第1および第2の
比較器の比較結果に応じて、当該複数の値の中から1つ
の値を選択して出力するPWMレジスタ値変動部と、 予め基準PWMレジスタ値が設定されており、当該基準
PWMレジスタ値をスタート値として前記PWMレジス
タ値変動から出力される値を累積加算し、その結果であ
る累積加算値に基づいて前記基準クロック発振器の発振
周波数を制御するPWM制御部とを備え、 前記STCカウンタのカウント値を前記時間カウント信
号として用いることを特徴とする、基準クロック制御装
置。
3. A reference clock control device for receiving a data stream in which a time reference value is inserted at predetermined intervals and generating a time count signal following the data stream, wherein the time reference reference value is derived from the data stream. A PCR extraction unit for extracting and outputting a value; and a PC that outputs the time reference value output from the PCR extraction unit.
A PCR value holding unit for holding as an R value; a reference clock oscillator for generating a reference clock corresponding to an oscillation frequency; and a count operation of the reference clock starting from the time reference value output first by the PCR extraction unit. An STC counter that starts counting, a STC value holding unit that takes in the current count value of the STC counter and holds it as an STC value each time the PCR extraction unit extracts the time reference value, and the PCR value holding. A first comparator for reading out the PCR value held in the section and the STC value held in the STC value holding section and comparing the magnitude relation between the first value and the PCR value held in the PCR value holding section; Said S
A subtractor for obtaining an absolute value of a difference from the STC value held in the TC value holding unit; a threshold value storage unit for holding a predetermined threshold value; and a subtraction result of the subtractor and the threshold storage unit. A second comparator for reading the held threshold value and comparing the magnitude relation between the threshold value and a plurality of values which are set in advance and according to a comparison result of the first and second comparators, A PWM register value changing unit for selecting and outputting one value from a plurality of values; a reference PWM register value is set in advance, and the reference PWM register value is set as a start value and output from the PWM register value change. And a PWM control unit for controlling the oscillation frequency of the reference clock oscillator based on the cumulative addition value as a result of the addition. Characterized by using the count value of data as the time count signal, the reference clock controller.
【請求項4】 任意の正の値aおよびbがa<bの関係
を有している場合において、 前記PWMレジスタ値変動部には、前記累積加算値を増
加させるための値aおよびbと、前記累積加算値を減少
させるための値−aおよび−bと、現在の累積加算値を
変動させることのない値0とが予め設定されており、 前記PWMレジスタ値変動部は、 前記減算器の減算結果が前記スレッショルド値記憶部に
保持されているスレッショルド値よりも小さく、かつ前
記PCR値保持部に保持されているPCR値と前記ST
C値保持部に保持されているSTC値とが不一致のとき
は、前記値aまたは−aのいずれかを選択して出力し、 前記減算器の減算結果が前記スレッショルド値記憶部に
保持されているスレッショルド値よりも大きく、かつ前
記PCR値保持部に保持されているPCR値と前記ST
C値保持部に保持されているSTC値とが不一致のとき
は、前記値bまたは−bのいずれかを選択して出力し、 前記減算器の減算結果が前記スレッショルド値記憶部に
保持されているスレッショルド値と一致し、かつ前記P
CR値保持部に保持されているPCR値と前記STC値
保持部に保持されているSTC値とが不一致のときは、
前記値a,−a,bまたは−bのいずれかを選択して出
力し、 前記PCR値保持部に保持されているPCR値と前記S
TC値保持部に保持されているSTC値とが一致すると
きは、値0を選択して出力することを特徴とする、請求
項3に記載の基準クロック制御装置。
4. When the arbitrary positive values a and b have a relationship of a <b, the PWM register value change unit includes values a and b for increasing the cumulative addition value. The values -a and -b for decreasing the cumulative addition value and a value 0 that does not change the current cumulative addition value are set in advance, and the PWM register value variation unit includes the subtractor Is smaller than the threshold value held in the threshold value storage section, and the PCR value held in the PCR value holding section is equal to the ST value.
When the STC value held in the C value holding unit does not match, either the value a or -a is selected and output, and the subtraction result of the subtracter is held in the threshold value storage unit. The PCR value larger than the threshold value and the ST value and held in the PCR value holding unit.
When the STC value held in the C value holding unit does not match, either the value b or -b is selected and output, and the subtraction result of the subtracter is held in the threshold value storage unit. Threshold value and the P
When the PCR value held in the CR value holding unit does not match the STC value held in the STC value holding unit,
Any one of the values a, -a, b or -b is selected and output, and the PCR value held in the PCR value holding unit and the S
4. The reference clock control device according to claim 3, wherein when the STC value held in the TC value holding unit matches, the value 0 is selected and output.
【請求項5】 時刻基準参照値が所定間隔で挿入された
データストリームを受信し、当該データストリームに追
従した時間カウント信号を生成する基準クロック制御装
置であって、 前記データストリームから前記時刻基準参照値を抽出し
て出力するPCR抽出部と、 前記PCR抽出部が出力した前記時刻基準参照値を第1
のPCR値として保持する第1のPCR値保持部と、 前記第1のPCR値保持部に現に保持されている時刻基
準参照値の直前に保持されていた時刻基準参照値を第2
のPCR値として保持する第2のPCR値保持部と、 発振周波数に応じた基準クロックを生成する基準クロッ
ク発振器と、 前記PCR抽出部が最初に出力した前記時刻基準参照値
を起点として、前記基準クロックのカウント動作を開始
するSTCカウンタと、 前記PCR抽出部が前記時刻基準参照値を抽出する毎
に、前記STCカウンタのそのときのカウント値を取り
込んで第1のSTC値として保持するSTC値保持部
と、 前記第1のSTC値保持部に現に保持されているカウン
ト値の直前に保持されていたカウント値を第2のSTC
値として保持する第2のSTC値保持部と、 前記第1のPCR値保持部に保持されている第1のPC
R値および前記第1のSTC値保持部に保持されている
第1のSTC値を読み出してその大小関係を比較する第
1の比較器と、 前記第1のPCR値保持部に保持されている第1のPC
R値と前記第1のSTC値保持部に保持されている第1
のSTC値との差分の絶対値を求める第1の減算器と、 所定のスレッショルド値を保持しているスレッショルド
値記憶部と、 前記第1の減算器の減算結果と前記スレッショルド値記
憶部に保持されているスレッショルド値とを読み出して
その大小関係を比較する第2の比較器と、 予め複数の値が設定されており、前記第1および第2の
比較器の比較結果に応じて、当該複数の値の中から1つ
の値を選択して出力する第1のPWMレジスタ値変動部
と、 前記第1のPCR値保持部に保持されている第1のPC
R値から前記第2のPCR値保持部に保持されている第
2のPCR値を減算してΔPCRを求める第2の減算器
と、 前記第1のSTC値保持部に保持されている第1のST
C値から前記第2のSTC値保持部に保持されている第
2のSTC値を減算してΔSTCを求める第3の減算器
と、 前記第2および第3の減算器からΔPCRおよびΔST
Cを読み出してその大小関係を比較する第3の比較器
と、 予め複数の値が設定されており、前記第3の比較器の比
較結果に応じて、当該複数の値の中から1つの値を選択
して出力する第2のPWMレジスタ値変動部と、 予め基準PWMレジスタ値が設定されており、当初、基
準PWMレジスタ値をスタート値として前記第2のPW
Mレジスタ値変動部から出力される値を累積加算し、前
記第3の比較器の比較結果が反転した時点での累積加算
値を暫定PWMレジスタ値とし、その後、前記第1のP
WMレジスタ値変動部から出力される値を前記暫定PW
Mレジスタ値に単純加算してPWMレジスタ値を求め、
当該PWMレジスタ値に基づいて前記基準クロック発振
器の発振周波数を制御するPWM制御部とを備え、 前記STCカウンタのカウント値を前記時間カウント信
号として用いることを特徴とする、基準クロック制御装
置。
5. A reference clock control device for receiving a data stream in which a time reference value is inserted at a predetermined interval and generating a time count signal following the data stream, wherein the time reference reference value is derived from the data stream. A PCR extraction unit for extracting and outputting a value, and a time reference reference value output by the PCR extraction unit as a first value.
A first PCR value holding unit that holds the PCR value as a PCR reference value; and a time reference reference value that is held immediately before the time reference reference value that is currently held in the first PCR value holding unit.
A second PCR value holding unit that holds a PCR value as a reference value; a reference clock oscillator that generates a reference clock according to an oscillation frequency; and a time reference value that is first output by the PCR extraction unit. An STC counter that starts a clock counting operation; and an STC value holding unit that takes in the count value of the STC counter at that time and holds it as a first STC value each time the PCR extraction unit extracts the time reference value. A count value held immediately before the count value currently held in the first STC value holding unit,
A second STC value holding unit for holding as a value, and a first PC held in the first PCR value holding unit.
A first comparator for reading out an R value and a first STC value held in the first STC value holding unit and comparing the magnitude relation between the R value and the first STC value; First PC
R value and the first STC value held in the first STC value holding unit.
A first subtractor for obtaining an absolute value of a difference from the STC value, a threshold value storage unit that holds a predetermined threshold value, and a subtraction result of the first subtractor and stored in the threshold value storage unit. A second comparator for reading out the threshold value and comparing the magnitudes thereof, and a plurality of values set in advance, and the plurality of values are set in accordance with the comparison result of the first and second comparators. A first PWM register value change unit that selects and outputs one value from the values of the first and second PCR values, and a first PC that is stored in the first PCR value storage unit.
A second subtractor for subtracting the second PCR value held in the second PCR value holding unit from the R value to obtain ΔPCR; and a first subtractor held in the first STC value holding unit. ST
A third subtractor for subtracting the second STC value held in the second STC value holding unit from the C value to obtain ΔSTC; and ΔPCR and ΔST from the second and third subtractors.
A third comparator for reading C and comparing the magnitude relation thereof; and a plurality of values set in advance, one of the plurality of values being set according to the comparison result of the third comparator. And a second PWM register value changing section for selecting and outputting a reference PWM register value which is set in advance, and the second PWM
The value output from the M register value changing unit is cumulatively added, and the cumulative added value at the time when the comparison result of the third comparator is inverted is used as a provisional PWM register value.
The value output from the WM register value changing unit is set to the temporary PW
The PWM register value is obtained by simply adding to the M register value,
A PWM control unit for controlling an oscillation frequency of the reference clock oscillator based on the PWM register value, wherein a count value of the STC counter is used as the time count signal.
【請求項6】 任意の正の値aおよびbがa<bの関係
を有している場合において、 前記第1のPWMレジスタ値変動部には、前記累積加算
値を増加させるための値aおよびbと、前記累積加算値
を減少させるための値−aおよび−bと、現在の累積加
算値を変動させることのない値0とが予め設定されてお
り、 前記第1のPWMレジスタ値変動部は、 前記第1の減算器の減算結果が前記スレッショルド値記
憶部に保持されているスレッショルド値よりも小さく、
かつ前記第1のPCR値保持部に保持されている第1の
PCR値と前記第1のSTC値保持部に保持されている
第1のSTC値とが不一致のときは、前記値aまたは−
aのいずれかを選択して出力し、 前記第1の減算器の減算結果が前記スレッショルド値記
憶部に保持されているスレッショルド値よりも大きく、
かつ前記第1のPCR値保持部に保持されている第1の
PCR値と前記第1のSTC値保持部に保持されている
第1のSTC値とが不一致のときは、前記値bまたは−
bのいずれかを選択して出力し、 前記第1の減算器の減算結果が前記スレッショルド値記
憶部に保持されているスレッショルド値と一致し、かつ
前記第1のPCR値保持部に保持されている第1のPC
R値と前記第1のSTC値保持部に保持されている第1
のSTC値とが不一致のときは、前記値a,−a,bま
たは−bのいずれかを選択して出力し、 前記第1のPCR値保持部に保持されている第1のPC
R値と前記第1のSTC値保持部に保持されている第1
のSTC値とが一致するときは、値0を選択して出力す
ることを特徴とする、請求項5に記載の基準クロック制
御装置。
6. When the arbitrary positive values a and b have a relationship of a <b, the first PWM register value change unit includes a value a for increasing the cumulative addition value. And b, values -a and -b for decreasing the cumulative addition value, and a value 0 that does not change the current cumulative addition value are preset, and the first PWM register value variation The unit, a subtraction result of the first subtractor is smaller than a threshold value held in the threshold value storage unit,
When the first PCR value held in the first PCR value holding unit does not match the first STC value held in the first STC value holding unit, the value a or-
a is selected and output, and a subtraction result of the first subtractor is larger than a threshold value held in the threshold value storage unit;
And when the first PCR value held in the first PCR value holding unit does not match the first STC value held in the first STC value holding unit, the value b or-
b, and outputs the selected value. The subtraction result of the first subtractor matches the threshold value held in the threshold value storage unit, and is held in the first PCR value holding unit. The first PC that is
R value and the first STC value held in the first STC value holding unit.
If the STC value does not match any one of the values a, -a, b, or -b, the selected value is output, and the first PC held in the first PCR value holding unit is output.
R value and the first STC value held in the first STC value holding unit.
6. The reference clock control device according to claim 5, wherein a value 0 is selected and output when the STC value of the reference clock signal coincides with the STC value.
【請求項7】 前記第2のPWMレジスタ値変動部に
は、前記累積加算値を増加させるための第1の値と、前
記累積加算値を減少させるための第2の値と、現在の累
積加算値を変動させることのない第3の値とが予め設定
されており、 前記第2のPWMレジスタ値変動部は、前記ΔPCRと
前記ΔSTCとが、不一致のときは前記第1および第2
の値のいずれかを選択して出力し、一致するときは前記
第3の値を選択して出力することを特徴とする、請求項
5または6に記載の基準クロック制御装置。
7. The second PWM register value change section includes a first value for increasing the cumulative addition value, a second value for decreasing the cumulative addition value, and a current accumulation value. A third value that does not fluctuate the addition value is set in advance, and the second PWM register value fluctuation unit sets the first and second PWM registers when the ΔPCR and the ΔSTC do not match.
7. The reference clock control device according to claim 5, wherein one of the values is selected and output, and when the values match, the third value is selected and output.
JP2000186344A 2000-06-21 2000-06-21 Reference clock controller Pending JP2002009747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000186344A JP2002009747A (en) 2000-06-21 2000-06-21 Reference clock controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000186344A JP2002009747A (en) 2000-06-21 2000-06-21 Reference clock controller

Publications (1)

Publication Number Publication Date
JP2002009747A true JP2002009747A (en) 2002-01-11

Family

ID=18686519

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000186344A Pending JP2002009747A (en) 2000-06-21 2000-06-21 Reference clock controller

Country Status (1)

Country Link
JP (1) JP2002009747A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006075418A1 (en) * 2005-01-11 2006-07-20 Kabushiki Kaisha Toshiba Wireless receiver
WO2007086564A1 (en) * 2006-01-30 2007-08-02 Renesas Technology Corp. Broadcast station synchronization method and control device
JP2010154133A (en) * 2008-12-24 2010-07-08 Toshiba Corp Digital broadcast receiving apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006075418A1 (en) * 2005-01-11 2006-07-20 Kabushiki Kaisha Toshiba Wireless receiver
JP2006197008A (en) * 2005-01-11 2006-07-27 Toshiba Corp Wireless receiver
US8295365B2 (en) 2005-01-11 2012-10-23 Kabushiki Kaisha Toshiba Wireless receiver
WO2007086564A1 (en) * 2006-01-30 2007-08-02 Renesas Technology Corp. Broadcast station synchronization method and control device
JP2007201983A (en) * 2006-01-30 2007-08-09 Renesas Technology Corp Broadcast station synchronization method, and control apparatus
JP2010154133A (en) * 2008-12-24 2010-07-08 Toshiba Corp Digital broadcast receiving apparatus

Similar Documents

Publication Publication Date Title
US20090304135A1 (en) Synchronous clock generation apparatus and synchronous clock generation method
JP2669347B2 (en) Clock signal extraction circuit
US8120400B2 (en) Phase locked loop circuit
JPH06268516A (en) Method for clock subordinate synchronization
JP2002009747A (en) Reference clock controller
JP2002043939A (en) PLL frequency synthesizer circuit
KR100220758B1 (en) Digital frequency control circuit, phase control circuit, pll circuit
JP3846578B2 (en) Information processing apparatus and method, recording medium, and program
JP2616701B2 (en) High-speed pull-in control circuit for clock-dependent synchronizer.
JP4048247B2 (en) Apparatus and method for sampling rate conversion
JP3560319B2 (en) Phase adjustment circuit
CN118508953A (en) Delay locked loop and control method thereof, and readable storage medium
JP3250151B2 (en) Jitter suppression circuit
US6377647B1 (en) PLL circuit
US7259599B2 (en) Semiconductor device
US7724861B2 (en) Sample rate converter
JPH10224336A (en) Phase locked loop and method therefor
US6516001B1 (en) Device for converting sonet data input into DS-N data output
JPH09200044A (en) Steady-state error reduction system
JP2001244812A (en) Clock switching method and clock switching device
JP5326607B2 (en) Semiconductor device
JPH10283061A (en) Timer device
JPH11220389A (en) PLL circuit
JPH08172355A (en) PLL circuit
JP2745787B2 (en) PLL frequency synthesizer