JP2006318002A - Clock frequency-dividing circuit - Google Patents
Clock frequency-dividing circuit Download PDFInfo
- Publication number
- JP2006318002A JP2006318002A JP2005137002A JP2005137002A JP2006318002A JP 2006318002 A JP2006318002 A JP 2006318002A JP 2005137002 A JP2005137002 A JP 2005137002A JP 2005137002 A JP2005137002 A JP 2005137002A JP 2006318002 A JP2006318002 A JP 2006318002A
- Authority
- JP
- Japan
- Prior art keywords
- frequency
- signal
- division ratio
- clock signal
- clock
- 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
Links
Images
Abstract
Description
本発明は、基本クロックを分周した分周クロックを出力するクロック分周回路に関し、特に、異なった周波数の分周クロックを切り換えて出力することが可能なクロック分周回路に関する。 The present invention relates to a clock divider circuit that outputs a divided clock obtained by dividing a basic clock, and more particularly to a clock divider circuit that can switch and output divided clocks having different frequencies.
異なった周波数のクロックを切り換えて出力することが可能なクロック生成回路として、例えば、特許文献1や特許文献2に記載のクロック分周回路を用いたものが知られている。これらの特許文献に記載のクロック分周回路は、いずれも、分周比の異なった複数の分周器と、各分周器から出力される複数の分周クロックのうちいずれかを選択する選択回路(切換回路)と、を有する回路であり、切り換え時において発生するいわゆるハザードを防止しつつ、異なった周波数の分周クロックの出力を可能とする回路である。
As a clock generation circuit capable of switching and outputting clocks having different frequencies, for example, a circuit using a clock frequency dividing circuit described in
しかしながら、上記特許文献1および特許文献2に記載のクロック分周回路は、出力可能な異なった周波数の分周クロックの数に対応する数の分周器を備える構成であるため、出力可能な分周クロックの周波数の種類を増やしたクロック分周回路を構成するには、増加した周波数の種類だけ分周器の数も増えてしまい、回路規模が増大するという問題がある。
However, the clock frequency dividing circuits described in
また、特許文献1に記載のクロック分周回路では、分周クロックの切り換えが、複数の分周器から切換回路に入力する分周クロックの全てがロウ(L)レベルで、基本クロックがハイ(H)レベルに立ち上がったときに行われるため、切り換えに要する時間は、出力する分周クロックの種類によらず、分周比の最も大きな分周クロックの1/2周期〜1周期の時間を要することになり、切り換えに要する時間が長いという問題もある。
Further, in the clock frequency divider circuit described in
以上説明したように、従来のクロック分周回路は、回路規模の点で問題があった。また、分周クロックの切り換えの安定で高速な切り換えの点で不十分な場合もあった。 As described above, the conventional clock divider circuit has a problem in terms of circuit scale. In addition, there are cases where it is insufficient in terms of stable and high-speed switching of the divided clock.
本発明は、上述した従来の課題を解決するためになされたものであり、クロック分周回路において、高速で安定な切り換えが可能で、かつ、回路規模の削減が可能な技術を提供することを目的とする。 The present invention has been made in order to solve the above-described conventional problems, and provides a technique capable of stably switching at high speed and reducing the circuit scale in a clock divider circuit. Objective.
上記目的の少なくとも一部を達成するために、本発明の第1のクロック分周回路は、
基本クロック信号を分周した分周クロック信号を出力するクロック分周回路であって、
前記基本クロック信号のクロック数をカウントしたカウントデータを出力するnビット(nは2以上の整数)のカウンタと、
前記分周クロック信号のロウレベルへの変化のタイミングに同期して、前記分周クロック信号の前記基本クロック信号に対する分周比に対応するnビットの分周比設定データを設定するとともに、前記分周比設定データの値を2分の1したnビットの1/2分周比設定データを設定する分周比設定部と、
前記カウンタからのカウントデータが前記1/2分周比設定データに一致するときに、前記分周クロック信号をハイレベルに変化させるための分周クロックセット信号を発生する第1のコンペア回路と、
前記カウンタからのカウントデータが前記分周比設定データに一致するときに、前記分周クロック信号をロウレベルに変化させるための分周クロックリセット信号を発生する第2のコンペア回路と、
前記分周クロックセット信号に従って、前記分周クロック信号をハイレベルに変化させ、前記分周クロックリセット信号に従って、前記分周クロック信号をロウレベルに変化させるフリップフロップ回路と、
を備えることを特徴とする。
In order to achieve at least a part of the above object, a first clock divider circuit of the present invention includes:
A clock divider circuit that outputs a divided clock signal obtained by dividing a basic clock signal,
An n-bit counter (n is an integer of 2 or more) that outputs count data obtained by counting the number of clocks of the basic clock signal;
In synchronization with the timing of the change of the divided clock signal to the low level, n-bit division ratio setting data corresponding to the division ratio of the divided clock signal to the basic clock signal is set, and the divided frequency signal is set. A frequency division ratio setting unit for setting n-
A first compare circuit for generating a frequency-divided clock set signal for changing the frequency-divided clock signal to a high level when the count data from the counter matches the 1/2 frequency-dividing ratio setting data;
A second compare circuit for generating a frequency-divided clock reset signal for changing the frequency-divided clock signal to a low level when the count data from the counter matches the frequency-division ratio setting data;
A flip-flop circuit that changes the divided clock signal to a high level according to the divided clock set signal, and changes the divided clock signal to a low level according to the divided clock reset signal;
It is characterized by providing.
また、本発明の第2のクロック分周回路は、
基本クロック信号を分周した分周クロック信号を出力するクロック分周回路であって、
前記基本クロック信号のクロック数をカウントしたカウントデータを出力するnビット(nは2以上の整数)のカウンタと、
前記分周クロック信号のロウレベルへの変化のタイミングに同期して、前記分周クロック信号の前記基本クロック信号に対する分周比に対応するnビットの分周比設定データを設定するとともに、前記分周比設定データの値を2分の1したnビットの1/2分周比設定データを設定する分周比設定部と、
前記カウンタからのカウントデータが前記分周比設定データに一致するときに、前記分周クロック信号をハイレベルに変化させるための分周クロックセット信号を発生する第1のコンペア回路と、
前記カウンタからのカウントデータが前記1/2分周比設定データに一致するときに、前記分周クロック信号をロウレベルに変化させるための分周クロックリセット信号を発生する第2のコンペア回路と、
前記分周クロックセット信号に従って、前記分周クロック信号をハイレベルに変化させ、前記分周クロックリセット信号に従って、前記分周クロック信号をロウレベルに変化させるフリップフロップ回路と、
を備えることを特徴とする。
The second clock divider circuit of the present invention is
A clock divider circuit that outputs a divided clock signal obtained by dividing a basic clock signal,
An n-bit counter (n is an integer of 2 or more) that outputs count data obtained by counting the number of clocks of the basic clock signal;
In synchronization with the timing of the change of the divided clock signal to the low level, n-bit division ratio setting data corresponding to the division ratio of the divided clock signal to the basic clock signal is set, and the divided frequency signal is set. A frequency division ratio setting unit for setting n-
A first compare circuit that generates a frequency-divided clock set signal for changing the frequency-divided clock signal to a high level when the count data from the counter matches the frequency-division ratio setting data;
A second compare circuit for generating a frequency-divided clock reset signal for changing the frequency-divided clock signal to a low level when the count data from the counter matches the 1/2 frequency-dividing ratio setting data;
A flip-flop circuit that changes the divided clock signal to a high level according to the divided clock set signal, and changes the divided clock signal to a low level according to the divided clock reset signal;
It is characterized by providing.
上記第1および第2のクロック分周回路によれば、高速で安定な切り換えが可能とし、かつ、回路規模の削減を可能とすることができる。 According to the first and second clock frequency dividing circuits, high-speed and stable switching can be performed, and the circuit scale can be reduced.
なお、前記分周比設定部は、2m個(mはn−1以下の整数)の分周比に対応する分周比のうち1つの分周比を選択するためのmビットの分周比選択信号を、前記分周クロック信号のロウレベルへの変化のタイミングに同期して取り込み、2m個の分周比に対応する分周比設定データのなかから、取り込まれた分周比選択信号に対応する分周比設定データを選択するようにしてもよい。 The frequency division ratio setting unit is m-bit frequency division for selecting one of the frequency division ratios corresponding to 2 m (m is an integer equal to or less than n-1) frequency division ratios. The ratio selection signal is taken in synchronization with the timing of the change of the divided clock signal to the low level, and the divided ratio selection signal taken in from the division ratio setting data corresponding to the 2 m division ratios. The division ratio setting data corresponding to may be selected.
上記第1および第2のクロック分周回路において、
前記分周比設定部は、調歩同期式のシリアル通信における転送速度の16倍のクロックを生成するように、前記分周比設定データおよび前記1/2分周比設定データを設定するようにしてもよい。
In the first and second clock divider circuits,
The division ratio setting unit sets the division ratio setting data and the ½ division ratio setting data so as to generate a clock that is 16 times the transfer rate in asynchronous serial communication. Also good.
こうすれば、本発明のクロック分周回路を、調歩同期式のシリアル通信に容易に利用することが可能である。 In this way, the clock divider circuit of the present invention can be easily used for asynchronous serial communication.
なお、本発明は、上記した発明の態様に限ることなく、クロック分周回路を備えるシリアル通信装置等の種々の情報処理装置の態様で実現することも可能である。 Note that the present invention is not limited to the above-described aspects of the invention, and can be realized in various aspects of an information processing apparatus such as a serial communication apparatus including a clock frequency dividing circuit.
次に、本発明の実施の形態を実施例に基づいて以下の順序で説明する。
A.第1実施例:
A1.クロック分周回路の構成:
A2.基本動作:
A3.切り換え動作:
A4.実施例の効果:
B.第2実施例:
B1.クロック分周回路の構成および基本動作:
B2.切り換え動作:
B3.実施例の効果:
C.変形例:
Next, embodiments of the present invention will be described in the following order based on examples.
A. First embodiment:
A1. Configuration of clock divider circuit:
A2. basic action:
A3. Switching operation:
A4. Effects of the embodiment:
B. Second embodiment:
B1. Configuration and basic operation of clock divider:
B2. Switching operation:
B3. Effects of the embodiment:
C. Variations:
A.第1実施例:
A1.クロック分周回路の構成:
図1は、本発明の第1実施例としてのクロック分周回路100の構成を示すブロック図である。このクロック分周回路100は、カウンタ10と、2つのコンペア回路20,30と、JKフリップフロップ40と、ラッチ50と、分周比設定回路60と、1/2分周比設定回路70と、インバータ80と、を備えている。なお、以下では、説明の便宜上JKフリップフロップを単にフリップフロップと呼ぶ場合もある。
A. First embodiment:
A1. Configuration of clock divider circuit:
FIG. 1 is a block diagram showing a configuration of a clock
カウンタ10は、クロック端子(CK端子)に入力されるクロック信号の立ち上がりエッジタイミングで、クロックの数をカウントするnビット(nは2以上の整数)のカウンタである。このカウンタ10のCK端子には基本クロック信号RCKが入力されており、クリア端子(CLR端子)には第2のコンペア回路30から出力される分周クロックリセット信号BRSTが入力されている。また、nビットのプリセット端子(P端子:P0〜Pn)は、Lレベルに固定され、プリセットするカウント値が「0」に設定されている。従って、カウンタ10は、CLR端子に入力される分周クロックリセット信号BRSTがHレベルに変化して、出力端子(QD端子:QD0〜QDn)から出力されるnビットのカウント信号CSIGの値が「0」にセットされるまで、CK端子に入力される基本クロック信号RCKの立ち上がりエッジタイミングで、0〜(2n−1)までの数を順にカウントする。
The
2つのコンペア回路20,30は、第1の入力端子(A端子)に入力されるnビットの信号と、第2の入力端子(B端子)に入力されるnビットの信号との一致を検出する回路であり、出力端子(EQ端子)から出力される信号は、2つの入力信号が一致している場合にはHレベルに変化し、一致していない場合にはLレベルのままとなる。
The two compare
第1のコンペア回路20のA端子にはカウンタ10から出力されるカウント信号CSIGが入力されており、B端子には1/2分周比設定回路70から出力される1/2分周比設定信号HBSIGが入力されている。従って、第1のコンペア回路20は、カウント信号CSIGと1/2分周比設定信号HBSIGとが一致している場合においてHレベルに変化する信号を出力する。第1のコンペア回路20からの出力信号は、分周クロックセット信号BSETとしてフリップフロップ40のJ端子に入力される。なお、分周比は、基本クロック信号RCKの分周する分周数であり、カウンタ10でカウントされるカウント値を意味している。
The count signal CSIG output from the
第2のコンペア回路30のA端子にもカウンタ10から出力されるカウント信号CSIGが入力されており、B端子には分周比設定回路60から出力される分周比設定信号BSIGが入力されている。従って、第2のコンペア回路30は、カウント信号CSIGと分周比設定信号BSIGとが一致している場合においてHレベルに変化する信号を出力する。第2のコンペア回路30からの出力信号は、分周クロックリセット信号BRSTとしてフリップフロップ40のK端子およびカウンタ10のCLR端子に入力される。
The count signal CSIG output from the
フリップフロップ40は、J端子に入力されている分周クロックセット信号BSETがHレベルにおいて、クロック入力端子(CK端子)に入力されている基本クロック信号RCKの立ち上がりエッジタイミングで、出力端子(Q端子)から出力される分周クロック信号BCKをHレベルに変化させる。また、フリップフロップ40は、K端子に入力されている分周クロックリセット信号BRSTがHレベルにおいて、CK端子に入力されている基本クロック信号RCKの立ち上がりエッジタイミングで分周クロック信号BCKをLレベルに変化させる。
The flip-
ラッチ50は、データ端子(D端子)に入力されるmビット(mは2以上n未満の整数)のクロック選択信号SELDを、クロック入力端子(LT端子)に入力されているクロック信号の立ち上がりエッジタイミングでラッチし、mビットの出力端子(Q端子:Q0〜Qm)からクロック選択信号LSELDとして出力する。クロック選択信号LSELDは、分周比設定回路60に入力される。
The
分周比設定回路60は、入力されるクロック選択信号LSELDに応じたnビットの分周比設定信号BSIGを出力する。出力された分周比設定信号BSIGは、第2のコンペア回路30の第2の入力端子(B端子)および1/2分周比設定回路70に入力される。
The frequency division
図2は、分周比設定回路60の構成例を示すブロック図である。この分周比設定回路60は、2m個の分周比設定レジスタ62(0)〜62(k)(k=2m−1)と、セレクタ64と、を備えている。
FIG. 2 is a block diagram illustrating a configuration example of the frequency division
各分周比設定レジスタ62(0)〜62(k)は、それぞれ設定したい分周クロックに対応する分周比がnビットのデータとして設定されている。それぞれに設定されているnビットの分周比設定データBD(0)〜BD(k)は、それぞれセレクタ64の入力端子A(0)〜A(k)に入力されている。なお、各分周比設定レジスタ62(0)〜62(k)の設定値は、図示しない制御回路を介してあらかじめユーザが所望する値に設定することができる。
In each of the frequency division ratio setting registers 62 (0) to 62 (k), the frequency division ratio corresponding to the frequency division clock to be set is set as n-bit data. The n-bit division ratio setting data BD (0) to BD (k) set for each is input to the input terminals A (0) to A (k) of the
セレクタ64は、[k+1]個(=2m)の入力端子A(0)〜A(k)に入力された分周比設定データBD(0)〜BD(k)のいずれかを、選択端子(SL端子)に入力されるmビットのクロック選択信号LSELDに応じて選択して、出力端子(SO)からnビットの分周比設定信号BSIGとして出力する。例えば、m=3として、3ビットのクロック選択信号LSELDの表すクロック選択データ(2進数)が[000],[001],[010],...,[110],[111]の順に変化すると、これに応じて分周比設定データBD(0),BD(1),BD(2),...,BD(6),BD(7)の順に選択される。
The
図1の1/2分周比設定回路70は、分周比設定回路60から出力されるnビットの分周比設定信号BSIGの値を2分の1したnビットの1/2分周比設定信号HBSIGを出力する。出力された1/2分周比設定信号HBSIGは、第1のコンペア回路20の第2の入力端子(B端子)に入力される。なお、1/2分周比設定回路は、ビットシフト演算回路を用いることにより容易に構成される。
The ½ division
図3は、調歩同期式シリアル通信の転送レートに対応した転送クロックの生成に、本実施例のクロック分周回路を用いた場合における、転送レート、転送クロック、および分周比の設定の具体例について示す説明図である。 FIG. 3 shows a specific example of setting the transfer rate, transfer clock, and division ratio when the clock divider circuit of this embodiment is used to generate a transfer clock corresponding to the transfer rate of asynchronous serial communication. It is explanatory drawing shown about.
調歩同期式シリアル通信の転送レートとして、4800bps,9600bps,19200bps,38400bps,57600bps,115200bpsの6種類に対応することとする。この場合、各転送レートの転送クロックの周波数は各転送レートの16倍の周波数であるとすると、転送レートの低いほうから順に、76.8kHz,153.6kHz,307.2kHz,614.4kHz,921.6kHz,1843.2kHzとなる。 Asynchronous serial communication transfer rates correspond to six types of 4800 bps, 9600 bps, 19200 bps, 38400 bps, 57600 bps, and 115200 bps. In this case, assuming that the frequency of the transfer clock for each transfer rate is 16 times the frequency of each transfer rate, 76.8 kHz, 153.6 kHz, 307.2 kHz, 614.4 kHz, 921 in order from the lowest transfer rate. .6 kHz and 1843.2 kHz.
また、基本クロック信号RCkの周波数を14.7456MHzとすると、各転送クロックを生成するための分周比は、周波数の低いほうから順に、192,96,48,24,16,8となる。 When the frequency of the basic clock signal RCk is 14.7456 MHz, the frequency division ratios for generating each transfer clock are 192, 96, 48, 24, 16, and 8 in order from the lowest frequency.
そして、3ビットのクロック選択信号SELD(LSELD)の表すクロック選択データ[000],[001],[010],[011],[100],[101]のそれぞれを、各転送レートに対して低い転送レートのほうから順に割り当てることとすると、分周比設定レジスタ62(0)に分周比192を表す8ビットのデータ[10111111](2進数)を分周比設定データBD(0)として設定し、分周比設定レジスタ62(1)に分周比962を表す8ビットのデータ[01011111]を分周比設定データBD(1)として設定し、分周比設定レジスタ62(2)に分周比48を表す8ビットのデータ[00101111]を分周比設定データBD(2)として設定し、分周比設定レジスタ62(3)に分周比24を表す8ビットのデータ[00010111]を分周比設定データBD(3)として設定し、分周比設定レジスタ62(4)に分周比16を表す8ビットのデータ[00001111]を分周比設定データBD(4)として設定し、分周比設定レジスタ62(5)に分周比8を表す8ビットのデータ[00000111]を分周比設定データBD(5)として設定する。
Then, the clock selection data [000], [001], [010], [011], [100], and [101] represented by the 3-bit clock selection signal SELD (LSELD) are assigned to each transfer rate. Assuming that the lower transfer rates are assigned in order, 8-bit data [10111111] (binary number) representing the
以上のように設定することにより、実施例のクロック分周回路100は、調歩同期式シリアル通信の転送レートとして、4800bps,9600bps,19200bps,38400bps,57600bps,115200bpsの6種類に対応する76.8kHz,153.6kHz,307.2kHz,614.4kHz,921.6kHz,1843.2kHzの6種類の転送クロックを生成することができる。
By setting as described above, the clock
なお、6種類の転送レートの場合、クロック選択信号SELDの表すクロック選択データ[110]および[111]に対応する転送レートが存在しない。このような場合には、例えば、[101]の場合と同じ転送レートに割り当てるようにすればよい。もちろん未割り当て状態としてもよいし、他の転送レートに割り当てるようにしてもよい。 In the case of six types of transfer rates, there is no transfer rate corresponding to the clock selection data [110] and [111] represented by the clock selection signal SELD. In such a case, for example, the same transfer rate as in [101] may be assigned. Of course, it may be in an unassigned state or may be assigned to another transfer rate.
次に、以下では、本実施例のクロック分周回路100が、クロック選択信号SELDのビット数がm=3で、カウンタのビット数がn=8であり、かつ、図3で説明した条件で動作するものとして、その基本動作および切り換え動作について説明する。
Next, in the following description, the clock
A2.基本動作:
図4は、クロック分周回路100の基本的な動作を示すタイミングチャートである。このタイミングチャートは、クロック分周回路100における分周クロック生成動作の説明を容易にするため、3ビットのクロック選択信号SELD(図4(a))の表すクロック選択データが[101](2進数)であって分周比が[8](10進数)の状態に設定されており、分周クロック信号BCK(図4(i))の立ち下がりエッジタイミングでラッチされてラッチ50(図1)から出力されるクロック選択信号LSELD(図4(b))の表すクロック選択データも[101]となっていることとして示している。
A2. basic action:
FIG. 4 is a timing chart showing the basic operation of the clock
上記前提の場合、分周比設定回路60(図1)から出力される分周比設定信号BSIG(図4(c))は、分周比が[8]に対応するカウンタ10(図1)のカウント値[7](10進数)を表す8ビットの分周比設定データ[00000111](2進数)に設定されている。また、1/2分周比設定回路70から出力される1/2分周比設定信号HBSIG(図4(d))は、カウンタ10のカウント値[3]を表す8ビットの1/2分周比設定データ[00000011]に設定されている。
In the case of the above premise, the frequency division ratio setting signal BSIG (FIG. 4C) output from the frequency division ratio setting circuit 60 (FIG. 1) is the counter 10 (FIG. 1) whose frequency division ratio corresponds to [8]. Is set to 8-bit frequency division ratio setting data [00000111] (binary number) representing the count value [7] (decimal number). Further, the ½ division ratio setting signal HBSIG (FIG. 4D) output from the ½ division
カウンタ10から出力される8ビットのカウント信号CSIG(図4(f))は、基本クロック信号RCK(図4(e))の立ち上がりエッジタイミングで[0]から[7]まで順にカウントアップされるカウント信号である。図の例では、時刻t0における基本クロックRCKの立ち上がりエッジタイミングでカウント信号CSIGの表すカウント値を[0]とし、[0]から[7]までのカウントを繰り返す状態を示している。
The 8-bit count signal CSIG (FIG. 4 (f)) output from the
基本クロック信号RCKの立ち上がりエッジタイミングt3で、カウント信号CSIGのカウント値が[3]にカウントアップされると、この値は1/2分周比設定信号HBSIGの値と一致するので、分周クロックセット信号BSET(図4(g))は、Hレベルに変化する。そして、基本クロック信号RCKの次の立ち上がりエッジタイミングt4で、分周クロック信号BCK(図4(i))がHレベルにセットされる。 When the count value of the count signal CSIG is counted up to [3] at the rising edge timing t3 of the basic clock signal RCK, this value matches the value of the 1/2 division ratio setting signal HBSIG. The set signal BSET (FIG. 4 (g)) changes to the H level. Then, at the next rising edge timing t4 of the basic clock signal RCK, the divided clock signal BCK (FIG. 4 (i)) is set to the H level.
次に、基本クロック信号RCKの立ち上がりエッジタイミングt7で、カウント信号CSIGのカウント値が[7]にカウントアップされると、この値は分周比設定信号BSIGの値と一致するので、分周クロックリセット信号BRST(図4(h))は、Hレベルに変化する。そして、基本クロック信号RCKの次の立ち上がりエッジタイミングt10で、分周クロック信号BCKがHレベルにリセットされる。 Next, when the count value of the count signal CSIG is counted up to [7] at the rising edge timing t7 of the basic clock signal RCK, this value matches the value of the frequency division ratio setting signal BSIG. The reset signal BRST (FIG. 4 (h)) changes to the H level. Then, at the next rising edge timing t10 of the basic clock signal RCK, the divided clock signal BCK is reset to the H level.
さらに、基本クロック信号RCKの立ち上がりエッジタイミングt13で、カウント信号CSIGのカウント値が[3]にカウントアップされると、この値は1/2分周比設定信号HBSIGの値と一致するので、分周クロックセット信号BSETは、Hレベルに変化する。そして、基本クロック信号RCKの次の立ち上がりエッジタイミングt14で、分周クロック信号BCKがHレベルにセットされる。 Further, when the count value of the count signal CSIG is counted up to [3] at the rising edge timing t13 of the basic clock signal RCK, this value matches the value of the 1/2 frequency division ratio setting signal HBSIG. The peripheral clock set signal BSET changes to the H level. Then, at the next rising edge timing t14 of the basic clock signal RCK, the divided clock signal BCK is set to the H level.
この結果、分周クロック信号BCKは、基本クロック信号RCKを8分周したクロック信号、すなわち、基本クロック信号RCKの8周期を1周期とするクロック信号となる。 As a result, the frequency-divided clock signal BCK is a clock signal obtained by dividing the basic clock signal RCK by 8, that is, a clock signal in which eight cycles of the basic clock signal RCK are one cycle.
なお、上記タイミングチャートは、3ビットのクロック選択信号SELDの表すクロック選択データが[101](2進数)であって分周比が[8](10進数)の場合を例に説明したが、クロック選択信号SELDの表すクロック選択データがその他の場合においても、分周クロック信号BCKは、それぞれの分周比に対応した分周周期のクロック信号となる。 In the above timing chart, the case where the clock selection data represented by the 3-bit clock selection signal SELD is [101] (binary number) and the division ratio is [8] (decimal number) is described as an example. Even when the clock selection data represented by the clock selection signal SELD is other than that, the frequency-divided clock signal BCK is a clock signal having a frequency-divided period corresponding to each frequency-dividing ratio.
A3.切り換え動作:
図5は、クロック分周回路100から出力される分周クロックの切り換え動作を示すタイミングチャートである。このタイミングチャートは、基本クロック信号RCK(図5(e))の立ち上がりエッジタイミングt0で、分周クロック信号BCK(図5(i))が立ち下がった後、基本クロック信号RCKの立ち上がりエッジタイミングt10で再びたち下がるまでの間のいずれかの時刻において、クロック選択信号SELD(図5(a))の表すクロック選択データが[101](2進数)から[100]に変化し、分周比が[8](10進数)の状態から[16]の状態に変化した場合を例に示している。
A3. Switching operation:
FIG. 5 is a timing chart showing the switching operation of the divided clock output from the clock
上記前提の場合、基本クロック信号RCKの立ち上がりエッジタイミングt10で分周クロック信号BCKが立ち下がるまで、ラッチ後のクロック選択信号LSELD(図5(b))の表すクロック選択データは、切り換え前の[101]のままである。 In the case of the above assumption, until the divided clock signal BCK falls at the rising edge timing t10 of the basic clock signal RCK, the clock selection data represented by the clock selection signal LSELD after latching (FIG. 5B) is [ 101].
そして、基本クロック信号RCKの立ち上がりエッジタイミングt10で分周クロック信号BCKが立ち下がると、クロック選択信号SELDの表すクロック選択データ[100]がラッチされ、クロック選択信号LSELDの表すクロック選択データが[101]から[100]に変化する。このとき、分周比設定信号BSIG(図5(c))は、分周比が[16]に対応するカウント値[15]を表す8ビットの分周比設定データ[00001111](2進数)に設定され、1/2分周比設定信号HBSIG(図5(d))は、カウント値[7]を表す8ビットの1/2分周比設定データ[00000111]に設定される。
When the divided clock signal BCK falls at the rising edge timing t10 of the basic clock signal RCK, the clock selection data [100] represented by the clock selection signal SELD is latched, and the clock selection data represented by the clock selection signal LSELD is [101]. ] To [100]. At this time, the frequency division ratio setting signal BSIG (FIG. 5C) is an 8-bit frequency division ratio setting data [00001111] (binary number) representing the count value [15] corresponding to the frequency division ratio [16]. The 1/2 dividing ratio setting signal HBSIG (FIG. 5D) is set to 8-
これにより、カウンタ10から出力される8ビットのカウント信号CSIG(図5(f))は、基本クロック信号RCKの立ち上がりエッジタイミングで[0]から[15]まで順にカウントアップされることになる。
As a result, the 8-bit count signal CSIG (FIG. 5 (f)) output from the
基本クロック信号RCKの立ち上がりエッジタイミングt17で、カウント信号CSIGのカウント値が[7]にカウントアップされると、この値は1/2分周比設定信号HBSIGの表す1/2分周比設定データ[00000111]の値と一致するので、分周クロックセット信号BSET(図5(g))は、Hレベルに変化する。そして、基本クロック信号RCKの次の立ち上がりエッジタイミングt18で、分周クロック信号BCKがHレベルにセットされる。 When the count value of the count signal CSIG is counted up to [7] at the rising edge timing t17 of the basic clock signal RCK, this value is ½ division ratio setting data represented by the ½ division ratio setting signal HBSIG. Since it matches the value of [00000111], the divided clock set signal BSET (FIG. 5 (g)) changes to the H level. Then, at the next rising edge timing t18 of the basic clock signal RCK, the divided clock signal BCK is set to the H level.
次に、基本クロック信号RCKの立ち上がりエッジタイミングt1Fで、カウント信号CSIGのカウント値が[15]にカウントアップされると、この値は分周比設定信号BSIGの表す分周比設定データ[00001111]の値と一致するので、分周クロックリセット信号BRST(図5(h))は、Hレベルに変化する。そして、基本クロック信号RCKの次の立ち上がりエッジタイミングt20で、分周クロック信号BCKがLレベルにリセットされる。 Next, when the count value of the count signal CSIG is counted up to [15] at the rising edge timing t1F of the basic clock signal RCK, this value is the frequency division ratio setting data [000011111] represented by the frequency division ratio setting signal BSIG. Therefore, the divided clock reset signal BRST (FIG. 5 (h)) changes to the H level. Then, at the next rising edge timing t20 of the basic clock signal RCK, the divided clock signal BCK is reset to the L level.
以降、同様のタイミングで、分周クロック信号BCKのHレベルへのセットとLレベルへのリセットとが繰り返される。この結果、分周クロック信号BCKは、基本クロック信号RCKを8分周したクロック信号、すなわち、基本クロック信号RCKの8周期を1周期とするクロック信号から、基本クロック信号RCKを16分周したクロック信号、すなわち、基本クロック信号RCKの16周期を1周期とするクロック信号に切り換えられる。 Thereafter, the setting of the divided clock signal BCK to the H level and the resetting to the L level are repeated at the same timing. As a result, the divided clock signal BCK is a clock signal obtained by dividing the basic clock signal RCK by 16, that is, a clock signal obtained by dividing the basic clock signal RCK by 8, that is, a clock signal having one cycle of eight cycles of the basic clock signal RCK. The signal, that is, the clock signal having the 16 cycles of the basic clock signal RCK as one cycle is switched.
ここで、基本クロック信号RCKの立ち上がりエッジタイミングt18で分周クロック信号BCKが立ち上がった後の分周クロック信号BCKは、基本クロック信号RCKを16分周したクロック信号として動作している。従って、基本クロック信号RCKを8分周したクロック信号から、基本クロック信号RCKを16分周したクロック信号に切り換わるのに要した時間は、基本クロック信号RCKの立ち上がりエッジタイミングt10で、クロック選択信号SELDの表すクロック選択データ[100]がラッチされてから、基本クロック信号RCKの立ち上がりエッジタイミングt18で、分周クロック信号BCKが立ち上がるまでの時間で定義できる。そして、この時間は、基本クロック信号RCKの周期をTrとすると、[8・Tr]となり、切り換え後の分周クロック信号BCKの周期[16・Tr]の1/2周期に相当する。 Here, the divided clock signal BCK after the divided clock signal BCK rises at the rising edge timing t18 of the basic clock signal RCK operates as a clock signal obtained by dividing the basic clock signal RCK by 16. Therefore, the time required to switch from the clock signal obtained by dividing the basic clock signal RCK by 8 to the clock signal obtained by dividing the basic clock signal RCK by 16 is the rising edge timing t10 of the basic clock signal RCK. It can be defined as the time from when the clock selection data [100] represented by SELD is latched to the rising edge timing t18 of the basic clock signal RCK until the divided clock signal BCK rises. This time is [8 · Tr] when the cycle of the basic clock signal RCK is Tr, and corresponds to a half cycle of the cycle [16 · Tr] of the divided clock signal BCK after switching.
なお、上記タイミングチャートは、クロック選択信号SELDの表すクロック選択データが[101]から[100]に切り換えられて、基本クロック信号RCKを8分周したクロック信号の状態から基本クロック信号RCKを16分周したクロック信号の状態に切り換える場合を例に説明したが、他の切り換えの場合においても同様である。 In the timing chart, the clock selection data represented by the clock selection signal SELD is switched from [101] to [100], and the basic clock signal RCK is divided into 16 minutes from the state of the clock signal obtained by dividing the basic clock signal RCK by 8. The case of switching to the state of the clock signal that has been rotated has been described as an example, but the same applies to other switching cases.
A4.実施例の効果:
本実施例のクロック分周回路100は、分周比の異なった複数の分周器を用いることなく、1つのカウンタ10を用いて、出力する分周クロックの周波数を切り換えることができるので、従来の回路に比べて回路規模を小さくすることができる。
A4. Effects of the embodiment:
The clock
また、本実施例のクロック分周回路100は、分周クロック信号BCKの立下りエッジタイミングで、与えられるクロック選択信号SELDをラッチすることにより、分周クロック信号BCKの分周比および1/2分周比を設定して、分周クロックのリセット信号を出力する第2のコンペア回路30により、設定した分周比に対応するカウント値を検出し、分周クロックのセット信号を出力する第1のコンペア回路20により、設定した1/2分周比に対応するカウント値を検出しているので、切り換え時におけるいわゆるハザードの発生を防止し、安定な切り換えを実現することができる。
Further, the clock
さらに、本実施例のクロック分周回路100は、切り換えに要する時間を、切り換え後の分周クロック信号BCKの1/2周期に相当する時間とすることができるので、高速な切り換えが可能である。
Furthermore, the clock
以上説明したように本実施例のクロック分周回路100は、高速で安定な切り換えが可能で、かつ、回路規模の削減を図ることができる。
As described above, the clock
B.第2実施例:
B1.クロック分周回路の構成および基本動作:
図6は、本発明の第2実施例としてのクロック分周回路100Aの構成を示すブロック図である。この分周回路100Aは、分周比設定回路60の出力である分周比設定信号BSIGを第1のコンペア回路20のB端子に入力し、1/2分周比設定回路70の1/2分周比設定信号HBSIGを第2のコンペア回路30に入力し、第1のコンペア回路20のEQ端子から出力される分周クロックセット信号BSETをカウンタ10のCLR端子に入力している点を除いて、第1実施例のクロック分周回路と同じ構成を有している。
B. Second embodiment:
B1. Configuration and basic operation of clock divider:
FIG. 6 is a block diagram showing a configuration of a clock
本実施例のクロック分周回路100Aは、上記構成上の相違点により、第1のコンペア回路20から出力される分周クロックセット信号BSETがHレベルに変化するタイミングと、第2のコンペア回路30から出力される分周クロックリセット信号BRSTがHレベルに変化するタイミングとが、第1実施例の場合と互いに反対のタイミングとなり、フリップフロップ40から出力される分周クロックBCKの立ち上がタイミングと、立ち下がりタイミングとが、第1実施例の場合と互いに反対のタイミングとなるが、第1実施例の場合と同様に、設定した分周比に対応する分周クロック信号を出力することができる。
The clock
B2.切り換え動作:
本実施例のクロック分周回路100Aは、クロックの切り換え時に要する時間が、上記相違点により、以下で示すように第1実施例の場合と異なることになる。なお、以下では、第1実施例における切り換え動作の説明の場合と同様に、本実施例のクロック分周回路100Aが、クロック選択信号SELDのビット数がm=3で、カウンタのビット数がn=8であり、かつ、図3で説明した条件で動作するものとして説明する。
B2. Switching operation:
The clock
図7は、クロック分周回路100Aから出力される分周クロックの切り換え動作を示すタイミングチャートである。このタイミングチャートは、第1実施例における切り換え動作(図5参照)と同様に、基本クロック信号RCK(図7(e))の立ち上がりエッジタイミングt4で、分周クロック信号BCK(図7(i))が立ち下がった後、基本クロック信号RCKの立ち上がりエッジタイミングt14で再びたち下がるまでの間のいずれかの時刻において、クロック選択信号SELD(図7(a))の表すクロック選択データが[101](2進数)から[100]に変化し、分周比が[8](10進数)の状態から[16]の状態に変化した場合を例に示している。
FIG. 7 is a timing chart showing the switching operation of the divided clock output from the
上記前提の場合、基本クロック信号RCKの立ち上がりエッジタイミングt14で分周クロック信号BCKが立ち下がるまで、ラッチ後のクロック選択信号LSELD(図7(b))の表すクロック選択データは、切り換え前の[101]のままである。 In the case of the above assumption, until the divided clock signal BCK falls at the rising edge timing t14 of the basic clock signal RCK, the clock selection data indicated by the clock selection signal LSELD after latching (FIG. 7B) is [ 101].
そして、基本クロック信号RCKの立ち上がりエッジタイミングt14で分周クロック信号BCKが立ち下がると、クロック選択信号SELDの表すクロック選択データ[100]がラッチされ、クロック選択信号LSELDの表すクロック選択データが[101]から[100]に変化する。このとき、分周比設定信号BSIG(図7(c))は、分周比が[16]に対応するカウント値[15]を表す8ビットの分周比設定データ[00001111](2進数)に設定され、1/2分周比設定信号HBSIG(図5(d))は、カウント値[7]を表す8ビットの1/2分周比設定データ[00000111]に設定される。
When the divided clock signal BCK falls at the rising edge timing t14 of the basic clock signal RCK, the clock selection data [100] represented by the clock selection signal SELD is latched, and the clock selection data represented by the clock selection signal LSELD is [101]. ] To [100]. At this time, the frequency division ratio setting signal BSIG (FIG. 7C) is an 8-bit frequency division ratio setting data [00001111] (binary number) representing the count value [15] corresponding to the frequency division ratio [16]. The 1/2 dividing ratio setting signal HBSIG (FIG. 5D) is set to 8-
これにより、カウンタ10から出力される8ビットのカウント信号CSIG(図7(f))は、基本クロック信号RCKの立ち上がりエッジタイミングで[0]から[15]まで順にカウントアップされることになる。
As a result, the 8-bit count signal CSIG (FIG. 7 (f)) output from the
基本クロック信号RCKの立ち上がりエッジタイミングt17で、カウント信号CSIGのカウント値が[7]にカウントアップされると、この値は1/2分周比設定信号HBSIGの表す1/2分周比設定データ[00000111]の値と一致するので、分周クロックリセット信号BRST(図7(h))は、Hレベルに変化する。そして、基本クロック信号RCKの次の立ち上がりエッジタイミングt18で、分周クロック信号BCKがLレベルにリセットされる。ただし、分周クロック信号BCKは、基本クロック信号RCKの立ち上がりエッジタイミングt14で、既にリセットされているので、基本クロック信号RCKの立ち上がりエッジタイミングt18ではなにも変化しない。 When the count value of the count signal CSIG is counted up to [7] at the rising edge timing t17 of the basic clock signal RCK, this value is ½ division ratio setting data represented by the ½ division ratio setting signal HBSIG. Since it matches the value of [00000111], the divided clock reset signal BRST (FIG. 7 (h)) changes to the H level. Then, at the next rising edge timing t18 of the basic clock signal RCK, the divided clock signal BCK is reset to the L level. However, since the divided clock signal BCK has already been reset at the rising edge timing t14 of the basic clock signal RCK, nothing changes at the rising edge timing t18 of the basic clock signal RCK.
次に、基本クロック信号RCKの立ち上がりエッジタイミングt1Fで、カウント信号CSIGのカウント値が[15]にカウントアップされると、この値は分周比設定信号BSIGの表す分周比設定データ[00001111]の値と一致するので、分周クロックセット信号BSET(図7(g))は、Hレベルに変化する。そして、基本クロック信号RCKの次の立ち上がりエッジタイミングt20で、分周クロック信号BCKがHレベルにセットされる。 Next, when the count value of the count signal CSIG is counted up to [15] at the rising edge timing t1F of the basic clock signal RCK, this value is the frequency division ratio setting data [000011111] represented by the frequency division ratio setting signal BSIG. Therefore, the divided clock set signal BSET (FIG. 7 (g)) changes to the H level. Then, at the next rising edge timing t20 of the basic clock signal RCK, the divided clock signal BCK is set to the H level.
以降、同様のタイミングで、分周クロック信号BCKのLレベルへのリセットとHレベルへのセットとが繰り返される。この結果、分周クロック信号BCKは、基本クロック信号RCKを8分周したクロック信号から、基本クロック信号RCKを16分周したクロック信号に切り換えられる。 Thereafter, resetting the divided clock signal BCK to the L level and setting to the H level are repeated at the same timing. As a result, the divided clock signal BCK is switched from the clock signal obtained by dividing the basic clock signal RCK by 8 to the clock signal obtained by dividing the basic clock signal RCK by 16.
ここで、基本クロック信号RCKを8分周したクロック信号から、基本クロック信号RCKを16分周したクロック信号に切り換わるのに要した時間は、基本クロック信号RCKの立ち上がりエッジタイミングt14で、クロック選択信号SELDの表すクロック選択データ[100]がラッチされてから、基本クロック信号RCKの立ち上がりエッジタイミングt20で、分周クロック信号BCKが立ち上がるまでの時間で定義できる。この時間は、基本クロック信号RCKの周期をTrとすると、[12・Tr]となり、切り換え後の分周クロック信号BCKの周期[16・Tr]の3/4周期に相当する。 Here, the time required to switch from the clock signal obtained by dividing the basic clock signal RCK by 8 to the clock signal obtained by dividing the basic clock signal RCK by 16 is selected at the rising edge timing t14 of the basic clock signal RCK. It can be defined as the time from when the clock selection data [100] represented by the signal SELD is latched to when the divided clock signal BCK rises at the rising edge timing t20 of the basic clock signal RCK. This time is [12 · Tr], where Tr is the period of the basic clock signal RCK, and corresponds to 3/4 period of the period [16 · Tr] of the divided clock signal BCK after switching.
なお、上記タイミングチャートは、クロック選択信号SELDの表すクロック選択データが[101]から[100]に切り換えられて、基本クロック信号RCKを8分周したクロック信号の状態から基本クロック信号RCKを16分周したクロック信号の状態に切り換える場合を例に説明したが、他の切り換えの場合においても同様である。ただし、切り換えに要する時間は、切り換え後のクロックの分周比から、切り換え前のクロックの1/2分周比を差し引いた値となる。例えば、切り換え前の分周比が[8]で切り換え後の分周比が[192]の場合において、切り換えに要する時間は、[188・Tr]となる。すなわち、切り換え後の分周比に対して、切り換え前の1/2分周比の差が大きくなるほど、切り換えに要する時間は、切り換え後の分周クロック信号の1周期に近くなり、差が小さくなるほど、切り換え後の分周クロック信号の1/2周期に近くなる。しかしながら、少なくとも、切り換え後の分周クロック信号BCKの周期以内では切り換えることが可能である。 In the timing chart, the clock selection data represented by the clock selection signal SELD is switched from [101] to [100], and the basic clock signal RCK is divided into 16 minutes from the state of the clock signal obtained by dividing the basic clock signal RCK by 8. The case of switching to the state of the clock signal that has been rotated has been described as an example, but the same applies to other switching cases. However, the time required for switching is a value obtained by subtracting the 1/2 frequency division ratio of the clock before switching from the frequency division ratio of the clock after switching. For example, when the division ratio before switching is [8] and the division ratio after switching is [192], the time required for switching is [188 · Tr]. That is, as the difference between the divide ratio after switching and the ½ divider ratio before switching increases, the time required for switching becomes closer to one cycle of the divided clock signal after switching, and the difference becomes smaller. Indeed, it becomes closer to a half cycle of the divided clock signal after switching. However, switching is possible at least within the cycle of the divided clock signal BCK after switching.
B3.実施例の効果:
本実施例のクロック分周回路100Aにおいても、第1実施例と同様に、分周比の異なった複数の分周器を用いることなく、1つのカウンタ10を用いて、出力する分周クロックの周波数を切り換えることができるので、従来の回路に比べて回路規模を小さくすることができる。
B3. Effects of the embodiment:
In the clock
また、本実施例のクロック分周回路100Aにおいても、分周クロック信号BCKの立下りエッジタイミングで、与えられるクロック選択信号SELDをラッチすることにより、分周クロック信号BCKの分周比および1/2分周比を設定して、分周クロックのリセット信号を出力する第2のコンペア回路30により、設定した1/2分周比に対応するカウンタのカウント値を検出し、分周クロックのセット信号を出力する第1のコンペア回路20により、設定した分周比に対応するカウンタのカウント値を検出しているので、切り換え時におけるいわゆるハザードの発生を防止し、安定な切り換えを実現することができる。
Also in the clock
さらに、本実施例のクロック分周回路100Aは、切り換えに要する時間を、切り換え後の分周クロック信号BCKの1周期以内の時間とすることができるので、高速な切り換えが可能である。
Furthermore, the clock
以上説明したように本実施例のクロック分周回路100Aも、高速で安定な切り換えが可能で、かつ、回路規模の削減を図ることができる。
As described above, the clock
C.変形例:
なお、本発明では、上記した実施の形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様にて実施することが可能である。
C. Variations:
Note that the present invention is not limited to the above-described embodiment, and can be implemented in various modes without departing from the scope of the invention.
C1.変形例1:
上記実施例では、3ビットのクロック選択信号SELDに基づいて、8ビットのカウンタにより、分周クロック信号BCKとして出力可能な256種類の分周クロック信号に対応する分周比のうち、あらかじめ用意されている8種類の分周比から1種類の分周比を設定して、設定した分周比に対応する分周クロック信号を生成する構成の場合を具体例として説明している。しかしながら、これに限定されるものではなく、あらかじめ用意されている複数種類の分周比から1種類を選択設定し、設定した分周比に対応する分周クロックを生成する構成であってもよい。ただし、この場合には、ラッチ50を、複数種類から1種類を選択設定するために要するビット数のクロック選択信号をラッチ可能な構成とし、分周比設定回路60を構成するセレクタ64を、複数種類の分周比設定データから1種類を選択する構成とする必要がある。
C1. Modification 1:
In the above-described embodiment, based on the 3-bit clock selection signal SELD, an 8-bit counter is prepared in advance among the division ratios corresponding to 256 types of divided clock signals that can be output as the divided clock signal BCK. A specific example is described of a configuration in which one frequency division ratio is set from the eight frequency division ratios and a frequency division clock signal corresponding to the set frequency division ratio is generated. However, the present invention is not limited to this, and a configuration in which one type is selected from a plurality of types of division ratios prepared in advance and a divided clock corresponding to the set division ratio may be generated. . However, in this case, the
さらに、カウンタにより、分周クロック信号として出力可能な全種類の分周クロック信号に対応する分周比から1種類の分周比を設定して、設定した分周比に対応する分周クロック信号を生成する構成であってもよい。この場合には、分周比設定回路60を省略することができる。
Further, the counter sets one division ratio from the division ratios corresponding to all kinds of divided clock signals that can be output as a divided clock signal by the counter, and the divided clock signal corresponding to the set division ratio. The structure which produces | generates may be sufficient. In this case, the frequency division
C2.変形例2:
上記実施例では、分周比設定回路60の各分周比設定レジスタ62に、図示しない制御回路を介してあらかじめユーザが所望する値に設定することが可能であるとして説明したが、あらかじめ固定のデータが記憶されており、書き換え不可としてもよい。また、あらかじめ固定のデータとする場合には、分周比設定レジスタ62のような記憶回路は省略することが可能である。
C2. Modification 2:
In the above embodiment, it has been described that each division
C3.変形例3:
なお、上記実施例のクロック分周回路は、シリアル通信の転送速度の16倍のクロックを生成し、調歩同期式のシリアル通信を行うシリアル通信装置や、このようなシリアル通信装置を備える情報処理装置等の種々の情報処理装置に備えるクロック生成回路として利用することが可能である。
C3. Modification 3:
Note that the clock divider circuit of the above embodiment generates a
100...クロック分周回路
100A...分周回路 10...カウンタ
20...第1のコンペア回路
30...第2のコンペア回路
30...第2のコンペア回路
40...JKフリップフロップ
50...ラッチ
60...分周比設定回路
62...分周比設定レジスタ
64...セレクタ
80...インバータ
100 ...
Claims (6)
前記基本クロック信号のクロック数をカウントしたカウントデータを出力するnビット(nは2以上の整数)のカウンタと、
前記分周クロック信号のロウレベルへの変化のタイミングに同期して、前記分周クロック信号の前記基本クロック信号に対する分周比に対応するnビットの分周比設定データを設定するとともに、前記分周比設定データの値を2分の1したnビットの1/2分周比設定データを設定する分周比設定部と、
前記カウンタからのカウントデータが前記1/2分周比設定データに一致するときに、前記分周クロック信号をハイレベルに変化させるための分周クロックセット信号を発生する第1のコンペア回路と、
前記カウンタからのカウントデータが前記分周比設定データに一致するときに、前記分周クロック信号をロウレベルに変化させるための分周クロックリセット信号を発生する第2のコンペア回路と、
前記分周クロックセット信号に従って、前記分周クロック信号をハイレベルに変化させ、前記分周クロックリセット信号に従って、前記分周クロック信号をロウレベルに変化させるフリップフロップ回路と、
を備えることを特徴とするクロック分周回路。 A clock divider circuit that outputs a divided clock signal obtained by dividing a basic clock signal,
An n-bit counter (n is an integer of 2 or more) that outputs count data obtained by counting the number of clocks of the basic clock signal;
In synchronization with the timing of the change of the divided clock signal to the low level, n-bit division ratio setting data corresponding to the division ratio of the divided clock signal to the basic clock signal is set, and the divided frequency signal is set. A frequency division ratio setting unit for setting n-bit 1/2 frequency division ratio setting data obtained by halving the value of the ratio setting data;
A first compare circuit for generating a frequency-divided clock set signal for changing the frequency-divided clock signal to a high level when the count data from the counter matches the 1/2 frequency-dividing ratio setting data;
A second compare circuit for generating a frequency-divided clock reset signal for changing the frequency-divided clock signal to a low level when the count data from the counter matches the frequency-division ratio setting data;
A flip-flop circuit that changes the divided clock signal to a high level according to the divided clock set signal, and changes the divided clock signal to a low level according to the divided clock reset signal;
A clock frequency dividing circuit comprising:
前記基本クロック信号のクロック数をカウントしたカウントデータを出力するnビット(nは2以上の整数)のカウンタと、
前記分周クロック信号のロウレベルへの変化のタイミングに同期して、前記分周クロック信号の前記基本クロック信号に対する分周比に対応するnビットの分周比設定データを設定するとともに、前記分周比設定データの値を2分の1したnビットの1/2分周比設定データを設定する分周比設定部と、
前記カウンタからのカウントデータが前記分周比設定データに一致するときに、前記分周クロック信号をハイレベルに変化させるための分周クロックセット信号を発生する第1のコンペア回路と、
前記カウンタからのカウントデータが前記1/2分周比設定データに一致するときに、前記分周クロック信号をロウレベルに変化させるための分周クロックリセット信号を発生する第2のコンペア回路と、
前記分周クロックセット信号に従って、前記分周クロック信号をハイレベルに変化させ、前記分周クロックリセット信号に従って、前記分周クロック信号をロウレベルに変化させるフリップフロップ回路と、
を備えることを特徴とするクロック分周回路。 A clock divider circuit that outputs a divided clock signal obtained by dividing a basic clock signal,
An n-bit counter (n is an integer of 2 or more) that outputs count data obtained by counting the number of clocks of the basic clock signal;
In synchronization with the timing of the change of the divided clock signal to the low level, n-bit division ratio setting data corresponding to the division ratio of the divided clock signal to the basic clock signal is set, and the divided frequency signal is set. A frequency division ratio setting unit for setting n-bit 1/2 frequency division ratio setting data obtained by halving the value of the ratio setting data;
A first compare circuit that generates a frequency-divided clock set signal for changing the frequency-divided clock signal to a high level when the count data from the counter matches the frequency-division ratio setting data;
A second compare circuit for generating a frequency-divided clock reset signal for changing the frequency-divided clock signal to a low level when the count data from the counter matches the 1/2 frequency-dividing ratio setting data;
A flip-flop circuit that changes the divided clock signal to a high level according to the divided clock set signal, and changes the divided clock signal to a low level according to the divided clock reset signal;
A clock frequency dividing circuit comprising:
前記分周比設定部は、2m個(mはn−1以下の整数)の分周比に対応する分周比のうち1つの分周比を選択するためのmビットの分周比選択信号を、前記分周クロック信号のロウレベルへの変化のタイミングに同期して取り込み、2m個の分周比に対応する分周比設定データのなかから、取り込まれた分周比選択信号に対応する分周比設定データを選択する
ことを特徴とするクロック分周回路。 A clock divider circuit according to claim 1 or claim 2,
The division ratio setting unit selects an m-bit division ratio for selecting one division ratio among the division ratios corresponding to 2 m (m is an integer equal to or less than n−1) division ratios. The signal is acquired in synchronization with the timing of the change of the frequency-divided clock signal to the low level, and the frequency-division ratio selection signal corresponding to the acquired frequency-division ratio setting data corresponding to 2 m frequency-dividing ratios is supported. A clock divider circuit that selects the division ratio setting data to be selected.
前記分周比設定部は、調歩同期式のシリアル通信における転送速度の16倍のクロックを生成するように、前記分周比設定データおよび前記1/2分周比設定データを設定する
ことを特徴とするクロック分周回路。 A clock divider circuit according to any one of claims 1 to 3,
The division ratio setting unit sets the division ratio setting data and the ½ division ratio setting data so as to generate a clock that is 16 times the transfer rate in asynchronous serial communication. A clock divider circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005137002A JP2006318002A (en) | 2005-05-10 | 2005-05-10 | Clock frequency-dividing circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005137002A JP2006318002A (en) | 2005-05-10 | 2005-05-10 | Clock frequency-dividing circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006318002A true JP2006318002A (en) | 2006-11-24 |
Family
ID=37538669
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005137002A Pending JP2006318002A (en) | 2005-05-10 | 2005-05-10 | Clock frequency-dividing circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006318002A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012014497A (en) * | 2010-07-01 | 2012-01-19 | Fujitsu Semiconductor Ltd | Clock frequency dividing circuit |
KR20180009438A (en) * | 2016-07-18 | 2018-01-29 | 에스케이하이닉스 주식회사 | Frequency divider with variable division ratio |
CN107968646A (en) * | 2016-10-19 | 2018-04-27 | 意法半导体国际有限公司 | Programmable clock frequency divider |
-
2005
- 2005-05-10 JP JP2005137002A patent/JP2006318002A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012014497A (en) * | 2010-07-01 | 2012-01-19 | Fujitsu Semiconductor Ltd | Clock frequency dividing circuit |
US8593185B2 (en) | 2010-07-01 | 2013-11-26 | Fujitsu Semiconductor Limited | Clock divider circuit and system LSI having same |
KR20180009438A (en) * | 2016-07-18 | 2018-01-29 | 에스케이하이닉스 주식회사 | Frequency divider with variable division ratio |
KR102530564B1 (en) | 2016-07-18 | 2023-05-11 | 에스케이하이닉스 주식회사 | Frequency divider with variable division ratio |
CN107968646A (en) * | 2016-10-19 | 2018-04-27 | 意法半导体国际有限公司 | Programmable clock frequency divider |
CN107968646B (en) * | 2016-10-19 | 2021-04-27 | 意法半导体国际有限公司 | Programmable clock divider |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7205800B2 (en) | Clock frequency divider circuit | |
JP4806631B2 (en) | Timing generator and semiconductor test equipment | |
JP5522050B2 (en) | Clock dividing circuit, clock distributing circuit, clock dividing method and clock distributing method | |
JP5488470B2 (en) | Clock dividing circuit, clock distributing circuit, clock dividing method and clock distributing method | |
KR20130095832A (en) | Bit generation device and bit generation method | |
KR20100077741A (en) | Data transmission apparatus | |
JP2006318002A (en) | Clock frequency-dividing circuit | |
JP2010282399A (en) | Clock switch circuit | |
JP2005045507A (en) | Non-integer frequency divider | |
JP3884553B2 (en) | Clock divider | |
JP4434277B2 (en) | Clock generation circuit and method of using the same | |
US8923466B2 (en) | Multi-phase clock switching device and method thereof | |
CN213585746U (en) | Frequency divider circuit | |
JP5493591B2 (en) | Clock divider circuit and method | |
JP4668591B2 (en) | High frequency counter circuit | |
JP5056262B2 (en) | DATA TRANSMITTING DEVICE, DATA RECEIVING DEVICE, DATA TRANSFER DEVICE, AND ELECTRONIC DEVICE | |
JP2022083858A (en) | Multi-bit Gray code generation circuit | |
JP2001127618A (en) | Clock signal generating circuit | |
JP3471275B2 (en) | Synchronization circuit | |
JP3829676B2 (en) | Variable frequency divider | |
JP2877433B2 (en) | Waveform generation circuit | |
JP2002204448A (en) | Dot de-interleave circuit | |
JP6254465B2 (en) | Divided clock generation circuit | |
KR0174707B1 (en) | Clock generator | |
JPH118549A (en) | Counter circuit |