JP2001127618A - Clock signal generating circuit - Google Patents

Clock signal generating circuit

Info

Publication number
JP2001127618A
JP2001127618A JP30421699A JP30421699A JP2001127618A JP 2001127618 A JP2001127618 A JP 2001127618A JP 30421699 A JP30421699 A JP 30421699A JP 30421699 A JP30421699 A JP 30421699A JP 2001127618 A JP2001127618 A JP 2001127618A
Authority
JP
Japan
Prior art keywords
clock signal
adder
output
value
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.)
Withdrawn
Application number
JP30421699A
Other languages
Japanese (ja)
Inventor
Kouji Fukuou
浩司 福王
Taketoshi Ikegami
武敏 池上
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP30421699A priority Critical patent/JP2001127618A/en
Publication of JP2001127618A publication Critical patent/JP2001127618A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To realize a clock signal generating circuit that can generate a clock signal with an optional frequency division ration. SOLUTION: The clock signal generating circuit that applies frequency- division to a system clock, is provided with an adder that sums external input data and a preceding sum result and a storage means that stores the result of sum of this adder synchronously with the system clock and supplies the output to the adder as the preceding sum result, and extracts the most significant bit of the output of the storage means as a clock signal.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、システムクロック
を分周して基準のクロック信号等を発生させるクロック
信号発生回路に関し、特に任意の分周比のクロック信号
を発生させることが可能なクロック信号発生回路に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock signal generating circuit for generating a reference clock signal or the like by dividing a system clock, and more particularly to a clock signal capable of generating a clock signal having an arbitrary dividing ratio. It relates to a generating circuit.

【0002】[0002]

【従来の技術】従来のクロック信号発生回路ではシステ
ムクロックを分周器で適宜分周して所望の周波数のクロ
ック信号を発生させている。図6はこのような従来のク
ロック信号発生回路の一例を示す構成ブロック図であ
る。図6において1は分周器、100はシステムクロッ
ク、101は発生したクロック信号である。
2. Description of the Related Art In a conventional clock signal generating circuit, a system clock is appropriately divided by a frequency divider to generate a clock signal having a desired frequency. FIG. 6 is a configuration block diagram showing an example of such a conventional clock signal generation circuit. In FIG. 6, 1 is a frequency divider, 100 is a system clock, and 101 is a generated clock signal.

【0003】システムクロック100は分周器1に入力
され、クロック信号101が分周器1から出力される。
例えば、分周器の分周比が”4”の場合には、システム
クロック100の1/4の周波数のクロック信号101
が出力されることになる。
[0003] A system clock 100 is input to a frequency divider 1, and a clock signal 101 is output from the frequency divider 1.
For example, when the frequency division ratio of the frequency divider is “4”, the clock signal 101 having a frequency 1 / of the system clock 100 is used.
Is output.

【0004】[0004]

【発明が解決しようとする課題】しかし、図6に示す従
来例ではシステムクロック100の周波数が発生させた
いクロック信号の周波数の整数倍ではない場合には適正
な分周ができず発生したクロック信号と所望の周波数と
の間に誤差が生じることになる。
However, in the conventional example shown in FIG. 6, if the frequency of the system clock 100 is not an integral multiple of the frequency of the clock signal to be generated, the clock signal generated cannot be properly divided. And a desired frequency will occur.

【0005】このようなクロック信号を非同期通信の通
信基準クロックとして用いた場合には発生するクロック
信号の周波数の誤差により通信エラーが発生する場合が
あると言った問題点があった。
[0005] When such a clock signal is used as a communication reference clock for asynchronous communication, there has been a problem that a communication error may occur due to an error in the frequency of the generated clock signal.

【0006】例えば、図7はこのような通信エラーの発
生状況を説明するタイミング図である。図7において
(a)は送信側の通信基準クロック、(b)は送信側か
らの送信データ、(c)は受信側の通信基準クロック、
(d)は受信側で受信したデータである。
For example, FIG. 7 is a timing chart for explaining a situation in which such a communication error occurs. In FIG. 7, (a) is a communication reference clock on the transmission side, (b) is transmission data from the transmission side, (c) is a communication reference clock on the reception side,
(D) is data received on the receiving side.

【0007】図7においては受信側の通信基準クロック
(c)の周波数が送信側の通信基準クロック(a)の周
波数よりも小さいので、この小さな周波数の通信基準ク
ロックに同期して受信データ(d)を取り込んだ場合に
は、図7中”ER01”に示す部分から先のデータで通
信エラーが発生する。従って本発明が解決しようとする
課題は、任意の分周比のクロック信号を発生させること
が可能なクロック信号発生回路を実現することにある。
In FIG. 7, since the frequency of the communication reference clock (c) on the receiving side is lower than the frequency of the communication reference clock (a) on the transmitting side, the reception data (d) is synchronized with the communication reference clock of this small frequency. ), A communication error occurs in the data preceding the portion indicated by "ER01" in FIG. Therefore, an object of the present invention is to realize a clock signal generation circuit capable of generating a clock signal having an arbitrary frequency division ratio.

【0008】[0008]

【課題を解決するための手段】このような課題を達成す
るために、本発明のうち請求項1記載の発明は、システ
ムクロックを分周してクロック信号を発生させるクロッ
ク信号発生回路において、外部入力データと前回の加算
結果とを加算する加算器と、この加算器の加算結果を前
記システムクロックに同期して記憶し出力を前記加算器
に前記前回の加算結果として供給する記憶手段とを備
え、前記記憶手段の出力の最上位ビットを前記クロック
信号として取り出すことにより、任意の分周比のクロッ
ク信号を発生させることが可能になる。
To achieve the above object, according to the present invention, there is provided a clock signal generating circuit for dividing a system clock to generate a clock signal. An adder for adding the input data and the previous addition result; and storage means for storing the addition result of the adder in synchronization with the system clock and supplying an output to the adder as the previous addition result. By extracting the most significant bit of the output of the storage means as the clock signal, it is possible to generate a clock signal having an arbitrary frequency division ratio.

【0009】請求項2記載の発明は、請求項1記載の発
明であるクロック信号発生回路において、前記外部入力
データの値を”n”とし、前記加算器及び前記記憶手段
のビット数を”m”とした場合に、分周比が”2m
n”となることにより、任意の分周比のクロック信号を
発生させることが可能になる。
According to a second aspect of the present invention, in the clock signal generating circuit according to the first aspect, the value of the external input data is "n", and the number of bits of the adder and the storage means is "m". And the frequency division ratio is “2 m /
By setting n ”, it becomes possible to generate a clock signal having an arbitrary frequency division ratio.

【0010】請求項3記載の発明は、システムクロック
を分周してクロック信号を発生させるクロック信号発生
回路において、外部入力データと前回の加算結果とを加
算する加算器と、この加算器の加算結果を前記システム
クロックに同期して記憶し出力を前記加算器に前記前回
の加算結果として供給する記憶手段と、この記憶手段の
出力の大きさに基づき第1及び第2の値を切り換えて前
記外部入力データとして前記加算器に供給するデータセ
レクタ回路とを備え、前記記憶手段の出力の最上位ビッ
トを前記クロック信号として取り出すことにより、任意
の分周比のクロック信号を発生させることが可能にな
る。
According to a third aspect of the present invention, in a clock signal generating circuit for generating a clock signal by dividing a system clock, an adder for adding external input data and a previous addition result, and an adder for the adder Storage means for storing a result in synchronization with the system clock and supplying an output to the adder as the previous addition result; and switching between first and second values based on the magnitude of the output of the storage means. A data selector circuit for supplying the external input data to the adder, and by taking out the most significant bit of the output of the storage means as the clock signal, it is possible to generate a clock signal having an arbitrary frequency division ratio. Become.

【0011】請求項4記載の発明は、請求項3記載の発
明であるクロック信号発生回路において、前記加算器及
び前記記憶手段のビット数を”r”とし、前記第1の値
を”n”とし、前記第2の値を”n+2r−k”とした
場合に、前記データセレクタ回路が、前記記憶手段の出
力が”2r-1−n+k/2”より小さい場合には前記第
1の値を選択し、”2r-1−n+k/2”以上の場合に
は前記第2の値を選択することにより、任意の分周比の
クロック信号を発生させることが可能になる。
According to a fourth aspect of the present invention, in the clock signal generating circuit according to the third aspect of the present invention, the number of bits of the adder and the storage means is "r", and the first value is "n". When the second value is "n + 2 r -k", the data selector circuit determines that the output of the storage means is smaller than "2 r-1 -n + k / 2". By selecting a value and selecting the second value in the case of “2 r−1 −n + k / 2” or more, it becomes possible to generate a clock signal having an arbitrary frequency division ratio.

【0012】請求項5記載の発明は、請求項4記載の発
明であるクロック信号発生回路において、前記加算器及
び前記記憶手段のビット数を”r”とし、前記第1の値
を”n”とし、前記第2の値を”n+2r−k”とした
場合に、分周比が”k/n”となることにより、任意の
分周比のクロック信号を発生させることが可能になる。
According to a fifth aspect of the present invention, in the clock signal generating circuit according to the fourth aspect, the number of bits of the adder and the storage means is "r", and the first value is "n". When the second value is “n + 2 r −k”, the frequency division ratio becomes “k / n”, so that a clock signal having an arbitrary frequency division ratio can be generated.

【0013】請求項6記載の発明は、請求項3記載の発
明であるクロック信号発生回路において、値の異なる複
数個の値の一を選択信号により選択して前記第1の値と
して前記データセレクタ回路に供給する第2のデータセ
レクタ回路を備えたことにより、複数の分周比を有する
クロック信号発生回路を構成することができる。
According to a sixth aspect of the present invention, in the clock signal generating circuit according to the third aspect of the present invention, one of a plurality of values having different values is selected by a selection signal and the data selector is used as the first value. With the provision of the second data selector circuit for supplying the circuit, a clock signal generation circuit having a plurality of frequency division ratios can be configured.

【0014】請求項7記載の発明は、請求項6記載の発
明であるクロック信号発生回路において、前記第2のデ
ータセレクタ回路により選択された値を”ni”とした
場合に、分周比が”k/ni”となることにより、複数
の分周比を有するクロック信号発生回路を構成すること
ができる。
According to a seventh aspect of the present invention, in the clock signal generating circuit according to the sixth aspect of the present invention, when the value selected by the second data selector circuit is "ni", the frequency division ratio is increased. By setting “k / ni”, a clock signal generation circuit having a plurality of frequency division ratios can be configured.

【0015】[0015]

【発明の実施の形態】以下本発明を図面を用いて詳細に
説明する。図1は本発明に係るクロック信号発生回路の
一実施例を示す構成図である。図1において2はmビッ
トの加算器、3は1クロック前のデータの記憶手段であ
るmビットのD型フリップフロップ回路、100aはシ
ステムクロック、102は値がnの外部入力データ、1
03はD型フリップフロップ回路3のmビットの出力信
号、104は出力信号103のmビットの出力信号の内
の最上位ビットであるクロック信号である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings. FIG. 1 is a configuration diagram showing one embodiment of a clock signal generation circuit according to the present invention. In FIG. 1, reference numeral 2 denotes an m-bit adder, 3 denotes an m-bit D-type flip-flop circuit serving as data storage means one clock before, 100a denotes a system clock, 102 denotes external input data having a value of n, 1
03 is an m-bit output signal of the D-type flip-flop circuit 3, and 104 is a clock signal which is the most significant bit of the m-bit output signal of the output signal 103.

【0016】システムクロック100aはD型フリップ
フロップ回路3のクロック入力端子に入力され、外部入
力データ102は加算器2の一方の入力端子に入力され
る。
The system clock 100a is input to the clock input terminal of the D-type flip-flop circuit 3, and the external input data 102 is input to one input terminal of the adder 2.

【0017】加算器2の出力はD型フリップフロップ回
路3の入力端子に接続され、D型フリップフロップ回路
3の出力信号103は加算器2の他方の入力端子に接続
される。また、出力信号103の最上位ビットはクロッ
ク信号104として出力される。
The output of the adder 2 is connected to the input terminal of the D-type flip-flop circuit 3, and the output signal 103 of the D-type flip-flop circuit 3 is connected to the other input terminal of the adder 2. The most significant bit of the output signal 103 is output as the clock signal 104.

【0018】ここで、図1に示す実施例の動作を図2を
用いて説明する。図2は図1の動作を説明するタイミン
グ図である。図2において(a)はシステムクロック1
00a、(b)はD型フリップフロップ回路3の出力信
号103、(c)は出力信号103の最上位ビットであ
るクロック信号104である。
The operation of the embodiment shown in FIG. 1 will be described with reference to FIG. FIG. 2 is a timing chart for explaining the operation of FIG. In FIG. 2, (a) shows the system clock 1
00a and (b) show the output signal 103 of the D-type flip-flop circuit 3, and (c) shows the clock signal 104 which is the most significant bit of the output signal 103.

【0019】また、図2に示すタイミングでは外部入力
データ102は3(n=3)、加算器2及びD型フリッ
プフロップ回路3は3ビット(m=3ビット)としてい
る。また、”001”や”111”等の表記は2進数表
現した3ビットデータを示すものとする。
At the timing shown in FIG. 2, the external input data 102 is 3 (n = 3), and the adder 2 and the D-type flip-flop circuit 3 are 3 bits (m = 3 bits). Notations such as "001" and "111" indicate 3-bit data expressed in binary.

【0020】図2中”T001”に示すタイミングでは
出力信号103は”000”であるとする。この時、出
力信号103の最上位ビットは”0”であるのでクロッ
ク信号104のレベルが”0”になり、一方、加算器2
の出力は出力信号103と外部入力データ102の加算
結果であるので、”000+011=011”となる。
It is assumed that the output signal 103 is "000" at the timing indicated by "T001" in FIG. At this time, since the most significant bit of the output signal 103 is “0”, the level of the clock signal 104 becomes “0”.
Is the result of addition of the output signal 103 and the external input data 102, so that "000 + 011 = 011" is obtained.

【0021】そして、図2中”T002”に示すタイミ
ングでこの加算結果である”011”がシステムクロッ
ク100aに同期してD型フリップフロップ回路3に取
り込まれて出力信号103が”011”に変化する。
Then, at the timing indicated by "T002" in FIG. 2, "011" which is the addition result is taken into the D-type flip-flop circuit 3 in synchronization with the system clock 100a, and the output signal 103 changes to "011". I do.

【0022】この時、出力信号103の最上位ビット
は”0”であるのでクロック信号104のレベルが”
0”になり、一方、加算器2の出力は出力信号103と
外部入力データ102の加算結果であるので、”011
+011=110”となる。
At this time, since the most significant bit of the output signal 103 is "0", the level of the clock signal 104 becomes "0".
0 ". On the other hand, the output of the adder 2 is the result of addition of the output signal 103 and the external input data 102.
+ 011 = 110 ".

【0023】そして、図2中”T003”に示すタイミ
ングでこの加算結果である”110”がシステムクロッ
ク100aに同期してD型フリップフロップ回路3に取
り込まれて出力信号103が”110”に変化する。
Then, at the timing indicated by "T003" in FIG. 2, the addition result "110" is taken into the D-type flip-flop circuit 3 in synchronization with the system clock 100a, and the output signal 103 changes to "110". I do.

【0024】この時、出力信号103の最上位ビット
は”1”であるのでクロック信号104のレベルが”
1”になり、一方、加算器2の出力は出力信号103と
外部入力データ102の加算結果であるので、”110
+011=001”となる。そして、同様にしてクロッ
ク信号104が発生してゆく。
At this time, since the most significant bit of the output signal 103 is "1", the level of the clock signal 104 is "1".
1 ". On the other hand, since the output of the adder 2 is a result of addition of the output signal 103 and the external input data 102," 110 "
+ 011 = 001 ". Similarly, the clock signal 104 is generated.

【0025】図2においては、例えば、出力信号103
が”110”から”011”まで上述のように変化し、
図2中”PD01”に示す周期を1周期として順次これ
を繰り返し発生させている。
In FIG. 2, for example, the output signal 103
Changes from “110” to “011” as described above,
This is sequentially and repeatedly generated with the cycle indicated by “PD01” in FIG. 2 as one cycle.

【0026】すなわち、クロック信号104の周波数は
システムクロック100aが8周期に対して図2中”C
P01”、”CP02”及び”CP03”に示す3周期
分のクロックを発生させているので周波数は”3/
8”、言い換えれば、分周比は”8/3”となる。
That is, the frequency of the clock signal 104 is "C" in FIG.
Since the clocks for three periods shown in P01, CP02, and CP03 are generated, the frequency is "3 /
8 ", in other words, the frequency division ratio is" 8/3 ".

【0027】ここで、外部入力データ102の値を”
n”、加算器2及びD型フリップフロップ回路3はビッ
ト数を”mビット”とすれば、その分周比”DR1”
は、 DR1=2m/n (1) となる。但し、”2m>n”である。
Here, the value of the external input data 102 is
n ", the adder 2 and the D-type flip-flop circuit 3 have the frequency division ratio" DR1 "if the number of bits is" m bits ".
Is DR1 = 2 m / n (1). However, “2 m > n”.

【0028】この結果、外部入力データ102とD型フ
リップフロップ回路3の出力との加算結果をD型フリッ
プフロップ回路3に順次記憶させ、D型フリップフロッ
プ回路3の出力信号の最上位ビットを取り出すことによ
り、任意の分周比のクロック信号を発生させることが可
能になる。
As a result, the addition result of the external input data 102 and the output of the D-type flip-flop circuit 3 is sequentially stored in the D-type flip-flop circuit 3, and the most significant bit of the output signal of the D-type flip-flop circuit 3 is extracted. This makes it possible to generate a clock signal having an arbitrary frequency division ratio.

【0029】また、図3は本発明に係るクロック信号発
生回路の他の実施例を示す構成図である。図3において
4はデータセレクタ回路、5はrビットの加算器、6は
rビットのD型フリップフロップ回路、100bはシス
テムクロック、103aはD型フリップフロップ回路3
のrビットの出力信号、104aは出力信号103aの
rビットの出力信号の内の最上位ビットであるクロック
信号、105は値が”n”の外部入力データ、106は
値が”n+2r−k”の外部入力データである。
FIG. 3 is a block diagram showing another embodiment of the clock signal generating circuit according to the present invention. 3, 4 is a data selector circuit, 5 is an r-bit adder, 6 is an r-bit D-type flip-flop circuit, 100b is a system clock, and 103a is a D-type flip-flop circuit 3.
, 104a is a clock signal that is the most significant bit of the r-bit output signal of the output signal 103a, 105 is external input data having a value of “n”, and 106 is a value of “n + 2 r −k”. "Is the external input data.

【0030】システムクロック100bはD型フリップ
フロップ回路6のクロック入力端子に入力され、外部入
力データ105及び106はデータセレクタ回路4の2
つの入力端子にそれぞれ入力される。
The system clock 100b is input to the clock input terminal of the D-type flip-flop circuit 6, and external input data 105 and 106
Input to each of the two input terminals.

【0031】データセレクタ回路4の出力は加算器5の
一方の入力端子に接続され、加算器5の出力はD型フリ
ップフロップ回路6の入力端子に接続される。
The output of the data selector circuit 4 is connected to one input terminal of an adder 5, and the output of the adder 5 is connected to the input terminal of a D-type flip-flop circuit 6.

【0032】また、D型フリップフロップ回路6の出力
信号103aはデータセレクタ回路4の制御端子及び加
算器5の他方の入力端子にそれぞれ接続される。さら
に、出力信号103aの最上位ビットはクロック信号1
04aとして出力される。
The output signal 103a of the D-type flip-flop circuit 6 is connected to the control terminal of the data selector circuit 4 and the other input terminal of the adder 5, respectively. Further, the most significant bit of the output signal 103a is the clock signal 1
04a is output.

【0033】ここで、図3に示す実施例の動作を図4を
用いて説明する。図4は図3の動作を説明するタイミン
グ図である。図4において(a)はシステムクロック1
00b、(b)はD型フリップフロップ回路6の出力信
号103a、(c)は出力信号103aの最上位ビット
であるクロック信号104aである。
The operation of the embodiment shown in FIG. 3 will now be described with reference to FIG. FIG. 4 is a timing chart for explaining the operation of FIG. In FIG. 4, (a) shows the system clock 1
00b and (b) show the output signal 103a of the D-type flip-flop circuit 6, and (c) shows the clock signal 104a which is the most significant bit of the output signal 103a.

【0034】また、データセレクタ回路4はその制御端
子の入力値が、言い換えれば、D型フリップフロップ回
路6の出力が”2r-1−n+k/2”以上であれば外部
入力データ106を選択して出力し、D型フリップフロ
ップ回路6の出力が”2r-1−n+k/2”より小さけ
れば外部入力データ105を選択して出力する。
The data selector circuit 4 selects the external input data 106 if the input value of the control terminal, in other words, the output of the D-type flip-flop circuit 6 is "2 r-1 -n + k / 2" or more. If the output of the D-type flip-flop circuit 6 is smaller than "2 r-1 -n + k / 2", the external input data 105 is selected and output.

【0035】さらに、図4に示すタイミングでは外部入
力データ105は3(n=3)、加算器5及びD型フリ
ップフロップ回路6は4ビット(r=4ビット)、外部
入力データ106は9(k=10、n+2r−k=3+
4−10=3+16−10=9)とする。また、”0
001”や”1111”等の表記は2進数表現した4ビ
ットデータを示すものとする。
Further, at the timing shown in FIG. 4, the external input data 105 is 3 (n = 3), the adder 5 and the D flip-flop circuit 6 are 4 bits (r = 4 bits), and the external input data 106 is 9 (r = 4 bits). k = 10, n + 2 r −k = 3 +
2 4 −10 = 3 + 16−10 = 9). Also, “0”
Notations such as "001" and "1111" indicate 4-bit data expressed in binary.

【0036】図4中”T101”に示すタイミングでは
出力信号103aは”0000”であるとする。この
時、出力信号103aの最上位ビットは”0”であるの
でクロック信号104aのレベルが”0”になる。
At the timing indicated by "T101" in FIG. 4, the output signal 103a is assumed to be "0000". At this time, since the most significant bit of the output signal 103a is "0", the level of the clock signal 104a becomes "0".

【0037】一方、出力信号103aは”2r-1−n+
k/2=23−3+10/2=10”よりも小さいので
データセレクタ回路4は値が”3”の外部入力データ1
05を選択出力する。
On the other hand, the output signal 103a is "2 r-1 -n +
Since k / 2 = 2 3 −3 + 10/2 = 10 ”, the data selector circuit 4 outputs the external input data 1 having the value“ 3 ”.
05 is selectively output.

【0038】このため、加算器5の出力は出力信号10
3aと外部入力データ105の加算結果となるので、”
0000+0011=0011”となる。
For this reason, the output of the adder 5 is the output signal 10
3a and the result of adding the external input data 105.
0000 + 0011 = 0011 ".

【0039】そして、図4中”T102”に示すタイミ
ングでこの加算結果である”0011”がシステムクロ
ック100bに同期してD型フリップフロップ回路6に
取り込まれて出力信号103aが”0011”に変化す
る。
Then, at the timing shown by "T102" in FIG. 4, "0011" which is the addition result is taken into the D-type flip-flop circuit 6 in synchronization with the system clock 100b, and the output signal 103a changes to "0011". I do.

【0040】この時、出力信号103aの最上位ビット
は”0”であるのでクロック信号104aのレベルが”
0”になる。
At this time, since the most significant bit of the output signal 103a is "0", the level of the clock signal 104a is "0".
0 ".

【0041】一方、出力信号103aは”2r-1−n+
k/2=23−3+10/2=10”よりも小さいので
データセレクタ回路4は値が”3”の外部入力データ1
05を選択出力する。
On the other hand, the output signal 103a is "2 r-1 -n +
Since k / 2 = 2 3 −3 + 10/2 = 10 ”, the data selector circuit 4 outputs the external input data 1 having the value“ 3 ”.
05 is selectively output.

【0042】このため、加算器5の出力は出力信号10
3aと外部入力データ105の加算結果となるので、”
0011+0011=0110”となる。
Therefore, the output of the adder 5 is the output signal 10
3a and the result of adding the external input data 105.
0011 + 0011 = 0110 ″.

【0043】そして、図4中”T103”に示すタイミ
ングでこの加算結果である”0110”がシステムクロ
ック100bに同期してD型フリップフロップ回路6に
取り込まれて出力信号103aが”0110”に変化す
る。
Then, at the timing indicated by "T103" in FIG. 4, "0110" which is the addition result is taken into the D-type flip-flop circuit 6 in synchronization with the system clock 100b, and the output signal 103a changes to "0110". I do.

【0044】この時、出力信号103aの最上位ビット
は”0”であるのでクロック信号104aのレベルが”
0”になる。
At this time, since the most significant bit of the output signal 103a is "0", the level of the clock signal 104a becomes "0".
0 ".

【0045】一方、出力信号103aは”2r-1−n+
k/2=23−3+10/2=10”よりも小さいので
データセレクタ回路4は値が”3”の外部入力データ1
05を選択出力する。
On the other hand, the output signal 103a is "2 r-1 -n +
Since k / 2 = 2 3 −3 + 10/2 = 10 ”, the data selector circuit 4 outputs the external input data 1 having the value“ 3 ”.
05 is selectively output.

【0046】このため、加算器5の出力は出力信号10
3aと外部入力データ105の加算結果となるので、”
0110+0011=1001”となる。
Therefore, the output of the adder 5 is the output signal 10
3a and the result of adding the external input data 105.
0110 + 0011 = 1001 ".

【0047】そして、図4中”T104”に示すタイミ
ングでこの加算結果である”1001”がシステムクロ
ック100bに同期してD型フリップフロップ回路6に
取り込まれて出力信号103aが”1001”に変化す
る。
Then, at the timing indicated by "T104" in FIG. 4, "1001" as the addition result is taken into the D-type flip-flop circuit 6 in synchronization with the system clock 100b, and the output signal 103a changes to "1001". I do.

【0048】この時、出力信号103aの最上位ビット
は”1”であるのでクロック信号104aのレベルが”
1”になる。
At this time, since the most significant bit of the output signal 103a is "1", the level of the clock signal 104a is "1".
1 ".

【0049】一方、出力信号103aは”2r-1−n+
k/2=23−3+10/2=10”より小さいのでデ
ータセレクタ回路4は値が”3”の外部入力データ10
5を選択出力する。
On the other hand, the output signal 103a is "2 r-1 -n +
Since k / 2 = 2 3 −3 + 10/2 = 10 ”, the data selector circuit 4 outputs the external input data 10 having the value“ 3 ”.
5 is selectively output.

【0050】このため、加算器5の出力は出力信号10
3aと外部入力データ105の加算結果となるので、”
1001+0011=1100”となる。
Therefore, the output of the adder 5 is the output signal 10
3a and the result of adding the external input data 105.
1001 + 0011 = 1100 ".

【0051】そして、図4中”T105”に示すタイミ
ングでこの加算結果である”1100”がシステムクロ
ック100bに同期してD型フリップフロップ回路6に
取り込まれて出力信号103aが”1100”に変化す
る。
Then, at the timing indicated by "T105" in FIG. 4, "1100" which is the addition result is taken into the D-type flip-flop circuit 6 in synchronization with the system clock 100b, and the output signal 103a changes to "1100". I do.

【0052】この時、出力信号103aの最上位ビット
は”1”であるのでクロック信号104aのレベルが”
1”になる。
At this time, since the most significant bit of the output signal 103a is "1", the level of the clock signal 104a is "1".
1 ".

【0053】一方、出力信号103aは”2r-1−n+
k/2=23−3+10/2=10”以上になるのでデ
ータセレクタ回路4は値が”9(=n+2r−k=3+
4−10=3+16−10)”の外部入力データ10
6を選択出力する。
On the other hand, the output signal 103a is "2 r-1 -n +
Since k / 2 = 2 3 −3 + 10/2 = 10 ”or more, the value of the data selector circuit 4 is“ 9 (= n + 2 r −k = 3 +).
2 4 −10 = 3 + 16−10) ”external input data 10
6 is selectively output.

【0054】このため、加算器5の出力は出力信号10
3aと外部入力データ106の加算結果となるので、”
1100+1001=0101”となる。そして、同様
にしてクロック信号104aが発生してゆく。
Therefore, the output of the adder 5 is the output signal 10
3a and the result of adding the external input data 106.
1100 + 1001 = 0101 ". Similarly, the clock signal 104a is generated.

【0055】図4においては、例えば、出力信号103
aが”0110”から”0011”まで上述のように変
化し、図4中”PD11”に示す周期を1周期として順
次これを繰り返し発生させている。
In FIG. 4, for example, the output signal 103
“a” changes from “0110” to “0011” as described above, and this is sequentially and repeatedly generated with the cycle indicated by “PD11” in FIG. 4 as one cycle.

【0056】すなわち、クロック信号104aの周波数
はシステムクロック100bが10周期に対して図4
中”CP11”、”CP12”及び”CP13”に示す
3周期分のクロックを発生させているので周波数は”3
/10”、言い換えれば、分周比は”10/3”とな
る。
That is, the frequency of the clock signal 104a is as shown in FIG.
Since the clocks for three cycles shown in the middle “CP11”, “CP12” and “CP13” are generated, the frequency is “3”.
/ 10 ", in other words, the frequency division ratio is" 10/3 ".

【0057】ここで、外部入力データ105の値を”
n”、加算器5及びD型フリップフロップ回路6はビッ
ト数を”rビット”、外部入力データ106の値を”n
+2r−k”とすれば、その分周比”DR2”は、 DR2=k/n (2) となる。但し、”r>n、kは偶数”である。
Here, the value of the external input data 105 is set to “
n ”, the adder 5 and the D-type flip-flop circuit 6 set the number of bits to“ r bits ”and set the value of the external input data 106 to“ n ”.
+2 r -k ", the frequency division ratio" DR2 "becomes DR2 = k / n (2), where"r> n, k is an even number ".

【0058】この結果、D型フリップフロップ回路6の
出力信号の大きさに基づき選択された外部入力データ1
05若しくは106とD型フリップフロップ回路6の出
力との加算結果をD型フリップフロップ回路6に順次記
憶させ、D型フリップフロップ回路6の出力信号の最上
位ビットを取り出すことにより、任意の分周比のクロッ
ク信号を発生させることが可能になる。
As a result, the external input data 1 selected based on the magnitude of the output signal of the D-type flip-flop circuit 6
05 or 106 and the output of the D-type flip-flop circuit 6 are sequentially stored in the D-type flip-flop circuit 6, and the most significant bit of the output signal of the D-type flip-flop circuit 6 is taken out to obtain an arbitrary frequency division. It is possible to generate a clock signal having a ratio.

【0059】また、図5は本発明に係るクロック信号発
生回路の他の実施例を示す構成図である。図5において
7は分周比選択手段であるデータセレクタ回路、8は図
3で説明したクロック信号発生回路、100cはシステ
ムクロック、104bはクロック信号、107a,10
7b及び107cは外部入力データ、108は選択信
号、109はデータセレクタ回路7の出力信号である。
FIG. 5 is a block diagram showing another embodiment of the clock signal generating circuit according to the present invention. In FIG. 5, reference numeral 7 denotes a data selector circuit which is a frequency division ratio selection means, 8 denotes a clock signal generation circuit described in FIG. 3, 100c denotes a system clock, 104b denotes a clock signal, 107a and 10
7b and 107c are external input data, 108 is a selection signal, and 109 is an output signal of the data selector circuit 7.

【0060】システムクロック100cはクロック信号
発生回路8を構成するD型フリップフロップ回路6のク
ロック入力端子に入力され、外部入力データ107a〜
107cはデータセレクタ回路7の複数の入力端子にそ
れぞれ入力される。
The system clock 100c is input to the clock input terminal of the D-type flip-flop circuit 6 constituting the clock signal generating circuit 8, and receives the external input data 107a to 107c.
Reference numeral 107c is input to each of the plurality of input terminals of the data selector circuit 7.

【0061】データセレクタ回路7の出力信号109は
クロック信号発生回路8を構成するデータセレクタ回路
4の入力端子に接続され、選択信号108はデータセレ
クタ回路7の制御端子に接続される。また、クロック信
号発生回路8からはクロック信号104bが出力され
る。
The output signal 109 of the data selector circuit 7 is connected to the input terminal of the data selector circuit 4 constituting the clock signal generating circuit 8, and the selection signal 108 is connected to the control terminal of the data selector circuit 7. The clock signal generation circuit 8 outputs a clock signal 104b.

【0062】ここで、図5に示す実施例の動作を説明す
る。但し、先に説明したクロック信号発生回路8に関す
る部分に関しては説明は省略し、ただ単に、任意の値”
n”を入力することにより分周比”k/n”で動作する
ものとする。
Here, the operation of the embodiment shown in FIG. 5 will be described. However, the description of the part relating to the clock signal generation circuit 8 described above is omitted, and the value is merely an arbitrary value.
It is assumed that inputting "n" operates at the frequency division ratio "k / n".

【0063】外部入力データ107a〜107cはそれ
ぞれ値の異なる”na”、”nb”及び”nc”であ
り、それぞれの値はすべて図3で説明した”k”よりも
小さいものとする。そして、データセレクタ回路7は選
択信号108により、外部入力データ107a〜107
cを選択してクロック信号発生回路8に供給する。
The external input data 107a to 107c have different values "na", "nb" and "nc", respectively, and all the values are smaller than "k" described in FIG. Then, the data selector circuit 7 outputs the external input data 107a to 107
c is selected and supplied to the clock signal generation circuit 8.

【0064】このため、クロック信号発生回路8は選択
された外部入力データによりその分周比が”k/n
a”、”k/nb”及び”k/nc”と変化して動作す
ることになる。
For this reason, the clock signal generating circuit 8 has a frequency division ratio of “k / n” according to the selected external input data.
a "," k / nb "and" k / nc ".

【0065】この結果、分周比が”k/n”であるクロ
ック信号発生回路8に入力する”n”の値を複数の値か
ら選択して供給する分周比選択手段を設けることによ
り、複数の分周比を有するクロック信号発生回路を構成
することができる。
As a result, by providing division ratio selection means for selecting and supplying a value of “n” to be input to the clock signal generation circuit 8 having a division ratio of “k / n” from a plurality of values, A clock signal generation circuit having a plurality of frequency division ratios can be configured.

【0066】なお、図3に示す実施例では単に外部入力
データ105及び106を記載しているが、外部入力デ
ータ105及び106のそれぞれの値を満足するデータ
を個々に外部から入力しても良いし、値”n”及び値”
k”を個々に入力して内部的に外部入力データ105及
び106を演算してデータセレクタ回路4に印加しても
構わない。さらに、外部入力データ105のみを入力し
値”k”を固定にして演算により外部入力データ106
を演算してデータセレクタ回路4に印加しても構わな
い。
Although the external input data 105 and 106 are merely described in the embodiment shown in FIG. 3, data satisfying the respective values of the external input data 105 and 106 may be individually input from the outside. And the value "n" and the value "
k "may be individually input to calculate internally the external input data 105 and 106 and apply the same to the data selector circuit 4. Further, only the external input data 105 is input and the value" k "is fixed. The external input data 106
May be calculated and applied to the data selector circuit 4.

【0067】また、図3に示す実施例の動作説明におい
て”k”は偶数のみに設定しているが、”k”を奇数に
設定したい場合には”k”と”n”の値をそれぞれ2倍
にすることにより”k”が偶数として取り扱われるので
設定が可能になる。例えば、”7/3”の分周比を設定
するためには”k=14”、”n=6”とすれば、分周
比は”14/6=7/3”となる。
In the description of the operation of the embodiment shown in FIG. 3, "k" is set to only an even number. However, if "k" is to be set to an odd number, the values of "k" and "n" are respectively set. By doubling, "k" is treated as an even number, so that setting can be made. For example, if "k = 14" and "n = 6" to set the frequency division ratio of "7/3", the frequency division ratio becomes "14/6 = 7/3".

【0068】また、図1及び図3等に示した記憶手段と
してはD型フリップフロップを例示したがこれに限定さ
れる訳ではなく、ラッチ回路、レジスタ回路等の1クロ
ック前のデータを記憶若しくは保持できるものであれば
構わない。
Also, as the storage means shown in FIGS. 1 and 3 and the like, a D-type flip-flop is exemplified, but the present invention is not limited to this, and data of one clock before, such as a latch circuit and a register circuit, is stored or stored. Anything that can be held is acceptable.

【0069】[0069]

【発明の効果】以上説明したことから明らかなように、
本発明によれば次のような効果がある。請求項1及び請
求項2の発明によれば、外部入力データと記憶手段の出
力との加算結果を記憶手段に順次記憶させ、記憶手段の
出力信号の最上位ビットを取り出すことにより、任意の
分周比のクロック信号を発生させることが可能になる。
As is apparent from the above description,
According to the present invention, the following effects can be obtained. According to the first and second aspects of the present invention, the addition result of the external input data and the output of the storage means is sequentially stored in the storage means, and the most significant bit of the output signal of the storage means is taken out, so that an arbitrary amount of data can be obtained. It is possible to generate a clock signal having a cycle ratio.

【0070】また、請求項3乃至請求項5の発明によれ
ば、記憶手段の出力信号の大きさに基づき選択された第
1若しくは第2の値と記憶手段の出力との加算結果を記
憶手段に順次記憶させ、記憶手段の出力信号の最上位ビ
ットを取り出すことにより、任意の分周比のクロック信
号を発生させることが可能になる。
According to the present invention, the addition result of the first or second value selected based on the magnitude of the output signal of the storage means and the output of the storage means is stored in the storage means. , And extracting the most significant bit of the output signal of the storage means, it is possible to generate a clock signal having an arbitrary frequency division ratio.

【0071】また、請求項6及び請求項7の発明によれ
ば、分周比が”k/n”であるクロック信号発生回路に
入力する”n”の値を複数の値から選択して供給する分
周比選択手段を設けることにより、複数の分周比を有す
るクロック信号発生回路を構成することができる。
According to the invention of claim 6 and claim 7, the value of "n" to be input to the clock signal generation circuit having the division ratio of "k / n" is selected from a plurality of values and supplied. By providing the frequency division ratio selecting means, a clock signal generation circuit having a plurality of frequency division ratios can be configured.

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

【図1】本発明に係るクロック信号発生回路の一実施例
を示す構成図である。
FIG. 1 is a configuration diagram showing an embodiment of a clock signal generation circuit according to the present invention.

【図2】図1の動作を説明するタイミング図である。FIG. 2 is a timing chart for explaining the operation of FIG. 1;

【図3】本発明に係るクロック信号発生回路の他の実施
例を示す構成図である。
FIG. 3 is a configuration diagram showing another embodiment of the clock signal generation circuit according to the present invention.

【図4】図3の動作を説明するタイミング図である。FIG. 4 is a timing chart for explaining the operation of FIG. 3;

【図5】本発明に係るクロック信号発生回路の他の実施
例を示す構成図である。
FIG. 5 is a configuration diagram showing another embodiment of the clock signal generation circuit according to the present invention.

【図6】従来のクロック信号発生回路の一例を示す構成
ブロック図である。
FIG. 6 is a configuration block diagram illustrating an example of a conventional clock signal generation circuit.

【図7】通信エラーの発生状況を説明するタイミング図
である。
FIG. 7 is a timing chart illustrating a situation in which a communication error has occurred.

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

1 分周器 2,5 加算器 3,6 D型フリップフロップ回路 4,7 データセレクタ回路 8 クロック信号発生回路 100,100a,100b,100c システムクロ
ック 101 クロック信号 102,105,106,107a,107b,107
c 外部入力データ 103,103a,109 出力信号 104,104a,104b クロック信号 108 選択信号
1 frequency divider 2,5 adder 3,6 D-type flip-flop circuit 4,7 data selector circuit 8 clock signal generation circuit 100,100a, 100b, 100c system clock 101 clock signal 102,105,106,107a, 107b, 107
c External input data 103, 103a, 109 Output signal 104, 104a, 104b Clock signal 108 Selection signal

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】システムクロックを分周してクロック信号
を発生させるクロック信号発生回路において、 外部入力データと前回の加算結果とを加算する加算器
と、 この加算器の加算結果を前記システムクロックに同期し
て記憶し出力を前記加算器に前記前回の加算結果として
供給する記憶手段とを備え、 前記記憶手段の出力の最上位ビットを前記クロック信号
として取り出すことを特徴とするクロック信号発生回
路。
1. A clock signal generating circuit for generating a clock signal by dividing a system clock, comprising: an adder for adding external input data to a previous addition result; and adding the addition result of the adder to the system clock. A clock signal generating circuit comprising: a memory unit that stores the output in synchronization with the adder as the result of the previous addition, and extracts the most significant bit of the output of the memory unit as the clock signal.
【請求項2】前記外部入力データの値を”n”とし、前
記加算器及び前記記憶手段のビット数を”m”とした場
合に、 分周比が”2m/n”となることを特徴とする請求項1
記載のクロック信号発生回路。
2. When the value of the external input data is "n" and the number of bits of the adder and the storage means is "m", the frequency division ratio is "2 m / n". Claim 1.
A clock signal generation circuit as described in the above.
【請求項3】システムクロックを分周してクロック信号
を発生させるクロック信号発生回路において、 外部入力データと前回の加算結果とを加算する加算器
と、 この加算器の加算結果を前記システムクロックに同期し
て記憶し出力を前記加算器に前記前回の加算結果として
供給する記憶手段と、 この記憶手段の出力の大きさに基づき第1及び第2の値
を切り換えて前記外部入力データとして前記加算器に供
給するデータセレクタ回路とを備え、 前記記憶手段の出力の最上位ビットを前記クロック信号
として取り出すことを特徴とするクロック信号発生回
路。
3. A clock signal generating circuit for generating a clock signal by dividing a system clock, comprising: an adder for adding external input data to a previous addition result; and an addition result of the adder being used as the system clock. A storage means for storing and outputting an output to the adder as the result of the previous addition in synchronism, and switching the first and second values based on the magnitude of the output of the storage means and adding the sum as the external input data And a data selector circuit for supplying the highest-order bit of the output of the storage means as the clock signal.
【請求項4】前記加算器及び前記記憶手段のビット数
を”r”とし、前記第1の値を”n”とし、前記第2の
値を”n+2r−k”とした場合に、 前記データセレクタ回路が、 前記記憶手段の出力が”2r-1−n+k/2”より小さ
い場合には前記第1の値を選択し、”2r-1−n+k/
2”以上の場合には前記第2の値を選択することを特徴
とする請求項3記載のクロック信号発生回路。
4. When the number of bits of the adder and the storage means is “r”, the first value is “n”, and the second value is “n + 2 r −k”, The data selector circuit selects the first value if the output of the storage means is smaller than “2 r−1 −n + k / 2”, and selects “2 r−1 −n + k /
4. The clock signal generating circuit according to claim 3, wherein the second value is selected when the value is 2 "or more.
【請求項5】前記加算器及び前記記憶手段のビット数
を”r”とし、前記第1の値を”n”とし、前記第2の
値を”n+2r−k”とした場合に、 分周比が”k/n”となることを特徴とする請求項4記
載のクロック信号発生回路。
5. The number of bits of the adder and the storage means and "r", and the first value "n", the second value when the "n + 2 r -k", min 5. The clock signal generation circuit according to claim 4, wherein the circumference ratio is "k / n".
【請求項6】値の異なる複数個の値の一を選択信号によ
り選択して前記第1の値として前記データセレクタ回路
に供給する第2のデータセレクタ回路を備えたことを特
徴とする請求項3記載のクロック信号発生回路。
6. A data selector circuit according to claim 1, further comprising a second data selector circuit for selecting one of a plurality of values having different values by a selection signal and supplying the selected value as said first value to said data selector circuit. 3. The clock signal generating circuit according to 3.
【請求項7】前記第2のデータセレクタ回路により選択
された値を”ni”とした場合に、 分周比が”k/ni”となることを特徴とする請求項6
記載のクロック信号発生回路。
7. The frequency division ratio is “k / ni” when the value selected by the second data selector circuit is “ni”.
A clock signal generation circuit as described in the above.
JP30421699A 1999-10-26 1999-10-26 Clock signal generating circuit Withdrawn JP2001127618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30421699A JP2001127618A (en) 1999-10-26 1999-10-26 Clock signal generating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30421699A JP2001127618A (en) 1999-10-26 1999-10-26 Clock signal generating circuit

Publications (1)

Publication Number Publication Date
JP2001127618A true JP2001127618A (en) 2001-05-11

Family

ID=17930415

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30421699A Withdrawn JP2001127618A (en) 1999-10-26 1999-10-26 Clock signal generating circuit

Country Status (1)

Country Link
JP (1) JP2001127618A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7205800B2 (en) 2004-11-24 2007-04-17 Sony Corporation Clock frequency divider circuit
WO2010050097A1 (en) * 2008-10-29 2010-05-06 日本電気株式会社 Clock division circuit, clock distribution circuit, clock division method, and clock distribution method
WO2010050098A1 (en) * 2008-10-29 2010-05-06 日本電気株式会社 Clock division circuit, clock distribution circuit, clock division method, and clock distribution method
JP2010114581A (en) * 2008-11-05 2010-05-20 Nec Corp Counter circuit and control method of counter circuit

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7205800B2 (en) 2004-11-24 2007-04-17 Sony Corporation Clock frequency divider circuit
WO2010050097A1 (en) * 2008-10-29 2010-05-06 日本電気株式会社 Clock division circuit, clock distribution circuit, clock division method, and clock distribution method
WO2010050098A1 (en) * 2008-10-29 2010-05-06 日本電気株式会社 Clock division circuit, clock distribution circuit, clock division method, and clock distribution method
US8422619B2 (en) 2008-10-29 2013-04-16 Nec Corporation Clock frequency divider circuit, clock distribution circuit, clock frequency division method, and clock distribution method
US8564336B2 (en) 2008-10-29 2013-10-22 Nec Corporation Clock frequency divider circuit and clock frequency division method
JP2010114581A (en) * 2008-11-05 2010-05-20 Nec Corp Counter circuit and control method of counter circuit

Similar Documents

Publication Publication Date Title
US3795864A (en) Methods and apparatus for generating walsh functions
KR20040096779A (en) Data form converter between serial and parallel
JPS6326930B2 (en)
JP2001126491A (en) Shift register and its control method
US5111416A (en) Pseudo random noise code generator for selectively generating a code or its mirror image from common data
JPH1032492A (en) Code conversion circuit
JP2001127618A (en) Clock signal generating circuit
JP2002040932A (en) Ciphering device using standard algorithm for ciphering data
US4124898A (en) Programmable clock
JP2002202829A (en) Microcomputer
JP2006318002A (en) Clock frequency-dividing circuit
JP2001069125A (en) Clock reloading circuit
JP4630056B2 (en) Convolution arithmetic circuit
JPH0651957A (en) Random numbers generator
JPH04117816A (en) Variable frequency divider
KR100419791B1 (en) Finite Impulse Response filter
CN107181564B (en) Signal synthesis method and device based on lookup table
JP3123060B2 (en) Digital arithmetic circuit
JPH07225630A (en) Optional waveform generator with sequence function
JP3829676B2 (en) Variable frequency divider
CA1056969A (en) Programmable clock
JPS63211832A (en) Synchronizing multiplex circuit
KR0123068B1 (en) Random generator
KR100434364B1 (en) Serial adder
JPH0568031A (en) Frame pulse generating system for redundant configuration equipment

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050607

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20050722