JPH09116424A - Frequency division circuit - Google Patents

Frequency division circuit

Info

Publication number
JPH09116424A
JPH09116424A JP26603495A JP26603495A JPH09116424A JP H09116424 A JPH09116424 A JP H09116424A JP 26603495 A JP26603495 A JP 26603495A JP 26603495 A JP26603495 A JP 26603495A JP H09116424 A JPH09116424 A JP H09116424A
Authority
JP
Japan
Prior art keywords
flip
output
counter
circuit
value
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.)
Granted
Application number
JP26603495A
Other languages
Japanese (ja)
Other versions
JP3666078B2 (en
Inventor
Yoichi Tanaka
陽一 田中
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 Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP26603495A priority Critical patent/JP3666078B2/en
Publication of JPH09116424A publication Critical patent/JPH09116424A/en
Application granted granted Critical
Publication of JP3666078B2 publication Critical patent/JP3666078B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Control Of Stepping Motors (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a circuit by which plural frequencies can be obtained and which can be used for the speed control of a pulse motor and the like by inverting the logic value of an output signal when a frequency division counter value is matched with a setting value. SOLUTION: A reference clock signal Fc is frequency-divided by respective FF1-7 in a frequency divider 1 and respective outputs C0-6 are inputted to circuits AND1-7 in a selection part 20. The inputs are AND-operated with the respective outputs of a selector 2, all the outputs of AND1-7 are OR-operated in an OR circuit 5 and a basic clock signal Fb is obtained. The signal Fb is inputted to the counter 13 of a counter part 3 and an up-count operation is executed. When the value of the counter 13 is matched with the setting value of a setting part 50, a comparison circuit 14 resets the counter 13 and FF 15 inverts the logic value of an output signal Fout . Continuous pulse signals are outputted by permitting the counter 13 to repeat resetting and up-counting.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、パルスモータの速
度制御などのため、基準クロック信号の周波数を任意の
周波数に分周する分周回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a frequency dividing circuit for dividing the frequency of a reference clock signal into an arbitrary frequency for controlling the speed of a pulse motor.

【0002】[0002]

【従来の技術】従来より、一定周期の基準クロック信号
を分周する分周回路として、n段(nは自然数)のフリ
ップフロップからなるものが知られている。このような
分周回路では初段のフリップフロップに加えた基準クロ
ック信号(パルス入力)はフリップフロップを通過する
度に基準クロック信号の2分の1の周波数に分周される
ので、n段のフリップフロップを通過すれば2n 分の1
に分周された出力信号が得られる。つまり、分周回路の
分周数(分周比の逆数)は図9に示すように、フリップ
フロップ(FF)の段数(n)の増加に伴って2n で変
化する。
2. Description of the Related Art Conventionally, as a frequency dividing circuit for dividing a reference clock signal having a constant period, there has been known a circuit including n stages (n is a natural number) of flip-flops. In such a frequency divider circuit, the reference clock signal (pulse input) applied to the first-stage flip-flop is divided into a frequency of half the reference clock signal every time it passes through the flip-flop. 1 / n if you pass
An output signal divided by is obtained. That is, the frequency division number (reciprocal of the frequency division ratio) of the frequency dividing circuit changes by 2 n as the number of stages (n) of the flip-flops (FF) increases, as shown in FIG.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記分
周回路では、基準クロック信号の2n の分周数(つま
り、基準クロック信号の2n 分の1の周波数)しか得ら
れず、図9に示すように、フリップフロップ(FF)の
段数(n)が増えると共に分周数の変化が大きくなる。
However, in the above frequency dividing circuit, only the frequency dividing number of 2 n of the reference clock signal (that is, the frequency of 1/2 n of the reference clock signal) can be obtained. As shown, as the number (n) of flip-flops (FF) increases, the change in the frequency division number increases.

【0004】このため、上記分周回路の出力信号を駆動
パルスとしてパルスモータを駆動する場合、パルスモー
タの制御部からの加減速動作指示に対応して駆動パルス
が基準クロック信号の2n 倍の出力周波数で変化するの
で、分周による周波数の変化が大きく、パルスモータが
脱調(駆動パルスの周波数にモータの回転速度が追いつ
けない現象)し、加減速ができないという問題がある。
Therefore, when the pulse motor is driven by using the output signal of the frequency dividing circuit as a drive pulse, the drive pulse is 2 n times the reference clock signal in response to the acceleration / deceleration operation instruction from the control unit of the pulse motor. Since there is a change in the output frequency, there is a problem that the frequency change due to frequency division is large, the pulse motor is out of synchronization (a phenomenon in which the motor rotation speed cannot keep up with the drive pulse frequency), and acceleration / deceleration cannot be performed.

【0005】また、その他の分周回路として、任意の分
周を実現するnビットカウンタ(nは自然数)も知られ
ているが、大きな分周数を得るにはnビットカウンタは
多ビット数を持たせなければならず、分周回路の回路規
模が大きくなり、実用的ではないという問題がある。本
発明は上記事由に鑑みて為されたものであり、その目的
は、容易にいろいろな分周数を得ることができ、パルス
モータ等の速度制御に使用できる分周回路を提供するこ
とにある。
An n-bit counter (n is a natural number) that realizes arbitrary frequency division is also known as another frequency dividing circuit. However, in order to obtain a large frequency division number, the n-bit counter needs a multi-bit number. Since it has to be provided, the circuit scale of the frequency dividing circuit becomes large, which is not practical. The present invention has been made in view of the above circumstances, and an object thereof is to provide a frequency dividing circuit that can easily obtain various frequency dividing numbers and can be used for speed control of a pulse motor or the like. .

【0006】[0006]

【課題を解決するための手段】請求項1の発明は、上記
目的を達成するために、基準クロック信号を任意の周波
数に分周する分周器と、前記分周器に接続され前記分周
器の複数の出力から所望の周波数に分周された信号を選
択する選択部と、前記選択部に接続され前記選択部によ
り選択された信号に従ってカウント値が増加するアップ
カウンタと、前記アップカウンタのカウント値と予め設
定された設定値とが一致したときに前記アップカウンタ
をリセットする比較回路と、前記比較回路からの出力に
接続されるフリップフロップとを備え、前記フリップフ
ロップは前記カウント値と前記設定値とが一致したとき
に前記比較回路からの出力により出力信号の論理値を反
転させることを特徴とするので、前記選択部により選択
する信号と前記設定値とを変化させることにより容易に
いろいろな分周数を得ることができ、このため、パルス
モータ等の速度制御に使用できる。
In order to achieve the above-mentioned object, the invention according to claim 1 divides a reference clock signal into an arbitrary frequency and a frequency divider which is connected to the frequency divider. A selection unit for selecting a signal divided into a desired frequency from a plurality of outputs of the container, an up counter connected to the selection unit and having a count value increased according to the signal selected by the selection unit, and an up counter A comparison circuit that resets the up counter when a count value and a preset setting value match, and a flip-flop connected to the output from the comparison circuit, wherein the flip-flop has the count value and the Since the logical value of the output signal is inverted by the output from the comparison circuit when the set values match, the signal selected by the selector and the setting Easily can be obtained a variety of frequency division number by changing the values, Thus, it can be used for speed control such as a pulse motor.

【0007】請求項2の発明は、一定周期のクロック信
号の立ち上がりに同期して動作する初段のフリップフロ
ップおよび夫々の前段のフリップフロップの出力が入力
される複数のフリップフロップから成る分周器と、前記
各フリップフロップの夫々の出力および所望の前記フリ
ップフロップの出力を選択するためのセレクタの出力が
接続される複数の論理積回路と、前記複数の論理積回路
の出力が入力される1つの論理和回路と、前記論理和回
路の出力に接続されるカウンタと、前記カウンタのカウ
ントの設定値を予め設定する設定部と、前記カウンタの
カウント値と前記設定値とを比較して前記カウント値と
前記設定値とが一致した時に前記カウンタをリセットす
る比較回路と、前記比較回路からの出力に接続されるフ
リップフロップとを備え、前記フリップフロップは前記
カウント値と前記設定値とが一致した時に前記比較回路
からの出力により出力信号の論理値を反転させることを
特徴とするので、前記セレクタの出力と前記設定値とを
変化させることにより容易にいろいろな分周数を得るこ
とができ、このため、パルスモータ等の速度制御に使用
できる。
According to a second aspect of the present invention, there is provided a frequency divider comprising a flip-flop of a first stage which operates in synchronization with a rising edge of a clock signal of a constant cycle, and a plurality of flip-flops to which outputs of respective flip-flops of the preceding stages are inputted. , A plurality of AND circuits to which outputs of the respective flip-flops and outputs of selectors for selecting desired outputs of the flip-flops are connected, and one output to which the outputs of the plurality of AND circuits are input. An OR circuit, a counter connected to the output of the OR circuit, a setting unit that presets the count setting value of the counter, and the count value obtained by comparing the count value of the counter with the setting value. And a comparison circuit that resets the counter when the set values match, and a flip-flop connected to the output from the comparison circuit. The flip-flop is characterized by inverting the logical value of the output signal by the output from the comparison circuit when the count value and the set value match, so that the output of the selector and the set value are By changing it, various frequency division numbers can be easily obtained, and therefore, it can be used for speed control of pulse motors and the like.

【0008】請求項3の発明は、一定周期のクロック信
号の立ち上がりに同期して動作する初段のフリップフロ
ップおよび夫々の前段のフリップフロップの出力が入力
される複数のフリップフロップから成る分周器と、前記
各フリップフロップの夫々の出力および所望の前記フリ
ップフロップの出力を選択するための第1のセレクタの
出力が接続される複数の論理積回路と、前記複数の論理
積回路の出力が入力される1つの論理和回路と、前記論
理和回路の出力に接続されるカウンタと、前記カウンタ
のカウントの設定値を予め設定する複数の設定値レジス
タと、前記複数の設定値レジスタの1つを選択する第2
のセレクタと、前記カウンタのカウント値と前記第2の
セレクタにより選択された設定値とを比較して前記カウ
ント値と前記設定値とが一致した時に前記カウンタをリ
セットする比較回路と、前記比較回路からの出力に接続
されるフリップフロップとを備え、前記フリップフロッ
プは前記カウント値と前記設定値とが一致した時に前記
比較回路からの出力により出力信号の論理値を反転させ
ることを特徴とするので、前記第1のセレクタの出力と
前記設定値とを変化させることにより容易にいろいろな
分周数を得ることができ、このため、パルスモータ等の
速度制御に使用できる。
According to a third aspect of the present invention, there is provided a frequency divider comprising a flip-flop of a first stage which operates in synchronization with a rising edge of a clock signal of a constant cycle and a plurality of flip-flops to which outputs of respective flip-flops of the preceding stages are inputted. , A plurality of AND circuits to which respective outputs of the respective flip-flops and outputs of a first selector for selecting a desired output of the flip-flops are connected, and outputs of the plurality of AND circuits are input. A logical OR circuit, a counter connected to the output of the logical OR circuit, a plurality of set value registers for presetting the set value of the count of the counter, and one of the plurality of set value registers. Second
Selector for comparing the count value of the counter with the set value selected by the second selector and resetting the counter when the count value and the set value match, and the comparator circuit A flip-flop connected to the output of the flip-flop, and the flip-flop inverts the logical value of the output signal by the output from the comparison circuit when the count value and the set value match. By changing the output of the first selector and the set value, it is possible to easily obtain various frequency division numbers, and thus it can be used for speed control of a pulse motor or the like.

【0009】請求項4の発明は、基準クロック信号を任
意の周波数に分周する分周器と、前記分周器に接続され
前記分周器の複数の出力から所望の周波数に分周された
信号を選択する選択部と、前記選択部に接続され前記選
択部により選択された信号に従ってカウント値が増加す
るアップカウンタと、前記アップカウンタのカウントの
複数の設定値を書き込まれたデータテーブルと、前記カ
ウント値と前記データテーブルから読み込まれた設定値
とが一致したときに前記アップカウンタをリセットする
比較回路と、前記比較回路からの出力に接続されるフリ
ップフロップとを備え、前記フリップフロップは前記カ
ウント値と前記設定値とが一致したときに前記比較回路
からの出力により出力信号の論理値を反転させることを
特徴とするので、前記選択部により選択する信号と前記
設定値とを変化させることにより容易にいろいろな分周
数を得ることができ、このため、パルスモータ等の速度
制御に使用できる。
According to a fourth aspect of the present invention, a frequency divider for dividing the reference clock signal into an arbitrary frequency, and a plurality of outputs of the frequency divider, which are connected to the frequency divider, are divided into a desired frequency. A selection unit that selects a signal, an up counter that is connected to the selection unit and whose count value increases according to the signal selected by the selection unit, and a data table in which a plurality of set values of the count of the up counter are written, A comparison circuit that resets the up counter when the count value and a set value read from the data table match, and a flip-flop connected to an output from the comparison circuit, wherein the flip-flop is the Since the logical value of the output signal is inverted by the output from the comparison circuit when the count value and the set value match, Serial easily can get different frequency division number by changing signal for selecting the with said set value by the selection unit, Thus, can be used for speed control such as a pulse motor.

【0010】請求項5の発明は、比較回路が、アップカ
ウンタをリセットする度にデータテーブルから別の設定
値を読み込むことを特徴とするので、前記アップカウン
タがリセットする度に前記設定値に依存して分周数が変
化し、容易にいろいろな分周数を得ることができ、この
ため、パルスモータ等の速度制御に使用できる。請求項
6の発明は、一定周期のクロック信号の立ち上がりに同
期して動作する初段のフリップフロップおよび夫々の前
段のフリップフロップの出力が入力される複数のフリッ
プフロップから成る分周器と、前記各フリップフロップ
の夫々の出力および所望の前記フリップフロップの出力
を選択するためのセレクタの出力が接続される複数の論
理積回路と、前記複数の論理積回路の出力が入力される
1つの論理和回路と、前記論理和回路の出力に接続され
るカウンタと、前記カウンタのカウント値の複数の設定
値が設定されたデータテーブルと、前記データテーブル
からの設定値のデータを受信する設定部と、前記カウン
タのカウント値と前記設定部の第1の設定値とを比較し
て前記カウント値と前記第1の設定値とが一致した時に
前記カウンタをリセットし且つ前記データテーブルから
前記設定部へ第2の設定値を書き込ませる比較回路と、
前記比較回路からの出力に接続されるフリップフロップ
とを備え、前記フリップフロップは前記カウント値と前
記設定値とが一致した時に前記比較回路からの出力によ
り出力信号の論理値を反転させることを特徴とするの
で、前記セレクタの出力と前記設定部における設定値と
を変化させることにより容易にいろいろな分周数を得る
ことができ、このため、パルスモータ等の速度制御に使
用できる。
According to a fifth aspect of the invention, the comparator circuit reads another set value from the data table each time the up counter is reset. Therefore, the comparator circuit depends on the set value each time the up counter is reset. Then, the frequency division number changes, and various frequency division numbers can be easily obtained. Therefore, it can be used for speed control of a pulse motor or the like. According to a sixth aspect of the present invention, there is provided a frequency divider comprising a first-stage flip-flop that operates in synchronization with a rising edge of a clock signal having a constant cycle and a plurality of flip-flops to which outputs of respective preceding flip-flops are input, and A plurality of AND circuits to which outputs of the flip-flops and outputs of selectors for selecting desired outputs of the flip-flops are connected, and one OR circuit to which outputs of the plurality of AND circuits are input A counter connected to the output of the OR circuit, a data table in which a plurality of setting values of the count value of the counter are set, a setting unit for receiving the setting value data from the data table, The count value of the counter and the first setting value of the setting unit are compared, and when the count value and the first setting value match, the counter is counted. A comparison circuit for writing the second set value to the setting unit from the reset and the data table,
A flip-flop connected to the output from the comparison circuit, wherein the flip-flop inverts the logical value of the output signal by the output from the comparison circuit when the count value and the set value match. Therefore, it is possible to easily obtain various frequency division numbers by changing the output of the selector and the set value in the setting unit, and thus it can be used for speed control of a pulse motor or the like.

【0011】[0011]

【発明の実施の形態】以下、本発明を実施の形態により
説明する。 (実施の形態1)本実施の形態は請求項1および請求項
2の発明に対応するものであり、以下、図1および図2
および図7により説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to embodiments. (Embodiment 1) This embodiment corresponds to the inventions of claims 1 and 2, and will be described below with reference to FIGS.
And FIG. 7 demonstrates.

【0012】本実施の形態の分周回路は、図1に示すよ
うに、基準クロック信号Fcを分周する分周器1と、所
望(任意)の分周数の周波数を選択するための選択部2
0と、選択部20の出力に接続されるカウンタ部3とか
ら成る。本実施の形態では、分周器1は、一定周期の基
準クロック信号Fcの立ち上がりに同期して動作する初
段のフリップフロップFF1 と、夫々の前段のフリップ
フロップのQ出力が入力されるフリップフロップFF2
〜FF7 とから成る。フリップフロップFF2 〜FF7
は夫々前段のフリップフロップのQ出力の立ち上がりで
反転する。ここで、各フリップフロップFF1 〜FF7
のQ出力を夫々c 0 〜c6 とする。
The frequency dividing circuit of this embodiment is shown in FIG.
A frequency divider 1 for dividing the reference clock signal Fc,
Selector 2 for selecting the frequency of the desired (arbitrary) frequency division number
0, the counter unit 3 connected to the output of the selection unit 20,
Consisting of In the present embodiment, the frequency divider 1 has a fixed period base.
First to operate in synchronization with the rising of the quasi-clock signal Fc
Stage flip-flop FF1And each front flip
Flip-flop FF to which the Q output of the flop is inputTwo
~ FF7Consisting of Flip-flop FFTwo~ FF7
Is the rising edge of the Q output of the previous flip-flop
Invert. Here, each flip-flop FF1~ FF7
Q output of each c 0~ C6And

【0013】選択部20は、フリップフロップFF1
FF7 の出力c0 〜c6 のうち所望の出力を選択するた
めのセレクタ2、論理積回路AND1 〜AND7 から成
る。セレクタ2の各出力端子は論理値「1」又は論理値
「0」の信号を出力し、論理積回路AND1 〜AND7
によってセレクタ2の出力と各フリップフロップFF 1
〜FF7 夫々の出力c0 〜c6 の論理積をとり、更に論
理和回路5によって所望の出力を選択して出力信号Fb
として出力する。
The selection unit 20 includes a flip-flop FF.1~
FF7Output c0~ C6Select the desired output of
Selector 2 for logical AND circuit AND1~ AND7Consisting of
You. Each output terminal of the selector 2 has a logical value "1" or a logical value
Output a signal of "0" and AND circuit AND1~ AND7
Output of selector 2 and each flip-flop FF 1
~ FF7Each output c0~ C6And the further discussion
A desired output is selected by the summing circuit 5 and the output signal Fb is selected.
Output as

【0014】カウンタ部3は選択部20の出力信号Fb
を入力信号として入力信号のパルスをアップカウントす
るnビットカウンタ13と、予め設定された設定値とn
ビットカウンタ13のカウント値とを比較して前記設定
値と前記カウント値とが一致した時にnビットカウンタ
13をクリアする比較回路14と、比較回路14の出力
に接続されるフリップフロップ15とから成り、フリッ
プフロップ15の出力が出力信号Fout となる。
The counter section 3 outputs the output signal Fb of the selecting section 20.
An n-bit counter 13 for up-counting the pulses of the input signal using the
The comparison circuit 14 compares the count value of the bit counter 13 and clears the n-bit counter 13 when the set value and the count value match, and a flip-flop 15 connected to the output of the comparison circuit 14. The output of the flip-flop 15 becomes the output signal F out .

【0015】以下、上記分周回路の動作を詳しく説明す
る。基準クロック信号Fcは分周器1における各フリッ
プフロップFF1 〜FF7で分周され(フリップフロッ
プを1段通過するたびにその周波数は2分の1にな
る)、その分周数は、フリップフロップFF1 の出力c
0 が21 =2、フリップフロップFF2 の出力c1 が2
2 =4、・・・、フリップフロップFF7 の出力c6
7 =128となる。つまり、出力c0 は基準クロック
Fcの周波数の2分の1の周波数であり、また、出力c
1 は基準クロックFcの周波数の22 分の1の周波数で
あり、・・・、出力c6 は基準クロックFcの周波数の
7 分の1の周波数である。
The operation of the frequency dividing circuit will be described in detail below. The reference clock signal Fc is divided by each of the flip-flops FF 1 to FF 7 in the frequency divider 1 (the frequency becomes ½ each time one stage passes through the flip-flop), and the division number is the flip-flop. Output c of FF 1
0 is 2 1 = 2, and the output c 1 of the flip-flop FF 2 is 2
2 = 4, ..., The output c 6 of the flip-flop FF 7 becomes 2 7 = 128. That is, the output c 0 is half the frequency of the reference clock Fc, and the output c 0
1 is one of two frequencies 2 minutes of the frequency of the reference clock Fc, · · ·, output c 6 is one of a frequency of 2 7 minutes of the frequency of the reference clock Fc.

【0016】選択部20では、各フリップフロップFF
1 〜FF7 の夫々の出力c0 〜c6は夫々のフリップフ
ロップに対応した論理積回路AND1 〜AND7 に入力
され、論理積回路AND1 〜AND7 に夫々接続された
セレクタ2の各出力と夫々論理積をとり、更に、論理和
回路5によって論理積回路AND1 〜AND7 全ての出
力の論理和をとることによって基本クロック信号Fbを
出力する。
In the selection unit 20, each flip-flop FF
1 Output c 0 to c 6 of each of the to ff 7 are input to the AND circuit AND 1 ~AND 7 corresponding to the flip-flop of each, each of the AND circuits AND 1 ~AND 7 respectively connected selector 2 The outputs are logically ANDed, and the logical sum circuit 5 logically ORs the outputs of all the AND circuits AND 1 to AND 7 to output the basic clock signal Fb.

【0017】論理和回路5の出力である基本クロック信
号Fbはカウンタ部3におけるnビットカウンタ13に
入力され、nビットカウンタ13はアップカウント動作
をする。また、比較回路14は、nビットカウンタ13
のカウント値と設定部50で予め設定した設定値とを比
較し、前記カウント値と前記設定値とが一致した時、n
ビットカウンタ13にリセット信号Rsを出力してnビ
ットカウンタ13をリセットするとともに、フリップフ
ロップ15で出力信号Fout の論理値を反転(トグル動
作)する。その後、nビットカウンタ13は再度アップ
カウント動作をする。
The basic clock signal Fb output from the OR circuit 5 is input to the n-bit counter 13 in the counter section 3, and the n-bit counter 13 performs an up-count operation. Further, the comparison circuit 14 includes an n-bit counter 13
When the count value and the set value match, n is compared with the set value preset by the setting unit 50.
The reset signal Rs is output to the bit counter 13 to reset the n-bit counter 13, and the flip-flop 15 inverts the logical value of the output signal F out (toggle operation). After that, the n-bit counter 13 performs the up-count operation again.

【0018】nビットカウンタ13が上記動作を繰り返
すことで、連続したパルス信号を出力する。例えば、図
2(a)に示すような基準クロック信号Fcがフリップ
フロップFF1 に入力されている時、セレクタ2によっ
て論理積回路AND1 にのみ論理値「1」の信号を入力
し(他の論理積回路AND2 〜AND7 には論理値
「0」の信号を入力する)、フリップフロップFF1
出力c0 を選択すると、基本クロック信号Fbは、図2
(b)に示すように、基準クロック信号Fcが2分周さ
れたクロック信号が得られ、この基本クロック信号Fb
はnビットカウンタ13に入力される。ここで、設定部
50での設定値が例えば「3」であると、比較回路14
は、図2(c)に示すようにnビットカウンタ13のカ
ウント値が3になった時(t2 )にnビットカウンタ1
3をリセットすると共に、図2(d)に示すようにフリ
ップフロップ15で出力信号Fout の論理値を反転す
る。このため、図2(d)に示すように、出力信号F
out は基本クロック信号Fbを6分周した信号となる。
つまり、カウンタ部3は6分の1の分周器として動作す
る。結果として、出力信号Fout は基準クロック信号F
cに対して12分の1に分周された信号となる。
The n-bit counter 13 outputs the continuous pulse signal by repeating the above operation. For example, when the reference clock signal Fc as shown in FIG. 2A is input to the flip-flop FF 1 , the selector 2 inputs the signal of the logical value “1” only to the AND circuit AND 1 . When a signal of logical value "0" is input to the AND circuits AND 2 to AND 7 ) and the output c 0 of the flip-flop FF 1 is selected, the basic clock signal Fb becomes as shown in FIG.
As shown in (b), a clock signal obtained by dividing the reference clock signal Fc by 2 is obtained, and the basic clock signal Fb is obtained.
Is input to the n-bit counter 13. Here, if the set value in the setting unit 50 is “3”, for example, the comparison circuit 14
When the count value of the n-bit counter 13 reaches 3 (t 2 ) as shown in FIG. 2C, the n-bit counter 1
3 is reset, and the logical value of the output signal F out is inverted by the flip-flop 15 as shown in FIG. Therefore, as shown in FIG. 2D, the output signal F
out is a signal obtained by dividing the basic clock signal Fb by 6.
That is, the counter unit 3 operates as a 1/6 frequency divider. As a result, the output signal F out is the reference clock signal F
The signal is divided into 1/12 of c.

【0019】つまり、選択部20のセレクタ2で選択す
る分周数(図7における前段の分周数)とカウンタ部3
の分周数(設定値×2)とを掛け合わせることによって
図7に示すような分周数を得ることができる。したがっ
て、図7と図9(従来例)とを比較すると明らかなよう
に、本分周回路は従来の分周回路よりもいろいろな分周
数を容易に得ることができる。このため、本分周回路の
出力信号をパルスモータの駆動パルスとして用いること
により容易にパルスモータの加減速動作を行うことがで
きる。
That is, the frequency division number (the frequency division number in the preceding stage in FIG. 7) selected by the selector 2 of the selection unit 20 and the counter unit 3
The frequency division number as shown in FIG. 7 can be obtained by multiplying by the frequency division number (setting value × 2). Therefore, as is apparent from comparison between FIG. 7 and FIG. 9 (conventional example), this frequency dividing circuit can easily obtain various frequency dividing numbers as compared with the conventional frequency dividing circuit. Therefore, the acceleration / deceleration operation of the pulse motor can be easily performed by using the output signal of the frequency dividing circuit as the drive pulse of the pulse motor.

【0020】なお、本実施の形態の分周回路で得られる
最大の分周数は、図7に示すように、フリップフロップ
FF7 の出力c6 (分周数128)を選択部20(つま
り、セレクタ2)で選択して出力c6 を基本クロックF
bとし、且つ、カウンタ部3の分周数を16(つまり、
設定値を「8」)とした時に得られる2048である。
Note that the maximum frequency division number obtained by the frequency division circuit of the present embodiment is as shown in FIG. 7, in which the output c 6 (frequency division number 128) of the flip-flop FF 7 is selected by the selection unit 20 (that is, , The selector 2) selects the output c 6 as the basic clock F
b, and the frequency division number of the counter unit 3 is 16 (that is,
It is 2048 obtained when the set value is "8").

【0021】(実施の形態2)本実施の形態は請求項3
の発明に対応するものであり、以下、図3および図4お
よび図8により説明する。本実施の形態の分周回路は、
図3に示すように、基本構成は図1とほぼ同じであり、
分周器1および選択部20の構成および動作は実施の形
態1と同じである。本分周回路の特徴とするところは、
カウンタ部6の構成およびその動作にある。
(Embodiment 2) The present embodiment claims 3
The present invention corresponds to the invention of FIG. 3 and will be described below with reference to FIGS. The divider circuit of this embodiment is
As shown in FIG. 3, the basic configuration is almost the same as in FIG.
The configurations and operations of frequency divider 1 and selection unit 20 are the same as in the first embodiment. The characteristic of this frequency divider is
It is in the configuration and operation of the counter unit 6.

【0022】本分周回路のカウンタ部6は、選択部20
の出力信号Fbを入力信号として入力信号のパルスをア
ップカウントするnビットカウンタ13と、セレクタ1
8により設定値レジスタ70、80の何れか一方から読
み込んだ設定値とnビットカウンタ13のカウント値と
を比較して、前記設定値と前記カウント値とが一致した
時にnビットカウンタ13をリセットすると共に、セレ
クタ18へセレクト信号を出力して前記設定値と別の設
定値を有する設定値レジスタから設定値を選択する比較
回路17と、比較回路17の出力に接続されるフリップ
フロップ15とから成り、フリップフロップ15の出力
が出力信号Fout となる。
The counter section 6 of this frequency dividing circuit includes a selecting section 20.
N-bit counter 13 for up-counting the pulses of the input signal using output signal Fb of
8 compares the set value read from one of the set value registers 70 and 80 with the count value of the n-bit counter 13 and resets the n-bit counter 13 when the set value and the count value match. At the same time, it comprises a comparator circuit 17 for outputting a select signal to the selector 18 to select a set value from a set value register having a set value different from the set value, and a flip-flop 15 connected to the output of the comparator circuit 17. The output of the flip-flop 15 becomes the output signal F out .

【0023】以下、上記分周回路の動作を説明する。た
だし、図1と同じ動作の部分については簡単に説明す
る。本分周回路は、基準クロック信号Fcを分周器1に
より分周し、選択部20のセレクタ2によって基本クロ
ック信号Fbが選択される。基本クロック信号Fbはカ
ウンタ部6におけるnビットカウンタ13に入力され、
nビットカウンタ13はアップカウント動作をする。
The operation of the frequency dividing circuit will be described below. However, the part of the same operation as in FIG. 1 will be briefly described. In this frequency dividing circuit, the reference clock signal Fc is divided by the frequency divider 1 and the basic clock signal Fb is selected by the selector 2 of the selecting section 20. The basic clock signal Fb is input to the n-bit counter 13 in the counter section 6,
The n-bit counter 13 performs an up-count operation.

【0024】また、比較回路17は、nビットカウンタ
13のカウント値と、セレクタ18によって選択した例
えば設定部70の設定値Aとを比較し、前記カウント値
と設定値Aとが一致した時、nビットカウンタ13にリ
セット信号Rsを出力してnビットカウンタ13をリセ
ットするとともに、フリップフロップ15で出力信号F
out の論理値を反転する。また、比較回路17はセレク
ト18へセレクト信号Ssを出力し、設定値レジスタ8
0の設定値Bを選択する。そして、nビットカウンタ1
3は再度アップカウント動作をする。上記動作を繰り返
すことで、連続したパルスを発生する。
Further, the comparison circuit 17 compares the count value of the n-bit counter 13 with the set value A of the setting section 70 selected by the selector 18, and when the count value and the set value A match, The reset signal Rs is output to the n-bit counter 13 to reset the n-bit counter 13, and the flip-flop 15 outputs the output signal Fs.
Inverts the logical value of out . Further, the comparison circuit 17 outputs the select signal Ss to the select 18, and the set value register 8
The set value B of 0 is selected. And n-bit counter 1
3 performs the up-count operation again. By repeating the above operation, continuous pulses are generated.

【0025】例えば、図4(a)に示すような基準クロ
ック信号FcがフリップフロップFF1 に入力されてい
る時、セレクタ2によって論理積回路AND1 にのみ論
理値「1」の信号を入力してフリップフロップFF1
出力c0 を選択すると、基本クロック信号Fbは、図4
(b)に示すように、基準クロック信号Fcが2分周さ
れたクロック信号が得られ、この基本クロック信号Fb
はnビットカウンタ13に入力される。ここで、設定値
A,Bそれぞれが例えば「3」、「2」であると、比較
回路17は、図4(c)に示すようにnビットカウンタ
13のカウント値が3になった時(t2 )にnビットカ
ウンタ13をリセットすると共に、図4(d)に示すよ
うにフリップフロップ15で出力信号Fout の論理値を
反転する。また、t2 の時点で比較回路17は、セレク
タ18により設定値Bを選択するので、nビットカウン
タ13のカウント値が2になった時(t3 )にnビット
カウンタ13はリセットされると共に、図4(d)に示
すようにフリップフロップ15で出力信号Fout の論理
値を反転する。このため、図4(d)に示すように、出
力信号Fout は基本クロック信号Fbを5分周した信号
となる。つまり、カウンタ部6は5分の1の分周器とし
て動作する。結果として、出力信号Fout は基準クロッ
ク信号Fcに対して10分の1(分周数10)に分周さ
れた信号となる。
For example, when the reference clock signal Fc as shown in FIG. 4A is input to the flip-flop FF 1 , the selector 2 inputs the signal of the logical value "1" only to the AND circuit AND 1. When the output c 0 of the flip-flop FF 1 is selected by using the basic clock signal Fb shown in FIG.
As shown in (b), a clock signal obtained by dividing the reference clock signal Fc by 2 is obtained, and the basic clock signal Fb is obtained.
Is input to the n-bit counter 13. Here, if the set values A and B are, for example, “3” and “2”, respectively, the comparator circuit 17 determines that the count value of the n-bit counter 13 becomes 3 as shown in FIG. At t 2 ), the n-bit counter 13 is reset, and the flip-flop 15 inverts the logical value of the output signal F out as shown in FIG. Further, since the comparison circuit 17 selects the setting value B by the selector 18 at the time of t 2 , the n-bit counter 13 is reset when the count value of the n-bit counter 13 becomes 2 (t 3 ). As shown in FIG. 4D, the flip-flop 15 inverts the logical value of the output signal F out . Therefore, as shown in FIG. 4D, the output signal F out is a signal obtained by dividing the basic clock signal Fb by 5. That is, the counter unit 6 operates as a 1/5 frequency divider. As a result, the output signal F out is a signal that is divided by 1/10 (frequency division number 10) with respect to the reference clock signal Fc.

【0026】つまり、選択部20のセレクタ2で選択す
る分周数(図8における前段の分周数)とカウンタ部6
の分周数とを掛け合わせることによって図8に示すよう
な分周数を得ることができ、最大の分周数は2048で
ある。このため、本分周回路の出力信号をパルスモータ
の駆動パルスとして用いることにより容易にパルスモー
タの加減速動作を行うことができる。
That is, the frequency division number (the frequency division number in the preceding stage in FIG. 8) selected by the selector 2 of the selection unit 20 and the counter unit 6
It is possible to obtain a frequency division number as shown in FIG. 8 by multiplying the frequency division number with the maximum frequency division number of 2048. Therefore, the acceleration / deceleration operation of the pulse motor can be easily performed by using the output signal of the frequency dividing circuit as the drive pulse of the pulse motor.

【0027】(実施の形態3)本実施の形態は請求項4
乃至請求項6の発明に対応するものであり、以下、図5
および図6により説明する。本実施の形態の分周回路
は、図5に示すように、基本構成は図1とほぼ同じであ
り、分周器1および選択部20の構成および動作は実施
の形態1と同じである。本分周回路の特徴とするところ
は、カウンタ部11に設定値テーブルを接続することに
ある。
(Embodiment 3) This embodiment is claim 4.
It corresponds to the invention of claim 6 to FIG.
And FIG. 6 will be described. As shown in FIG. 5, the frequency dividing circuit of the present embodiment has the same basic configuration as that of FIG. 1, and the configurations and operations of frequency divider 1 and selection unit 20 are the same as those of the first embodiment. A feature of this frequency dividing circuit is that a setting value table is connected to the counter section 11.

【0028】本分周回路のカウンタ部11は、選択部2
0の出力信号Fbを入力信号として入力信号のパルスを
アップカウントするnビットカウンタ13と、テーブル
12から書き込まれた設定値とnビットカウンタ13の
カウント値とを比較して、前記設定値と前記カウント値
とが一致した時にnビットカウンタ13をリセットする
と共に、テーブル12および設定部60へ書き込み要求
信号Srを出力してテーブル12から設定部60へ設定
値を書き込ませる比較回路21と、比較回路21の出力
に接続されるフリップフロップ15とから成り、フリッ
プフロップ15の出力が出力信号Fout となる。
The counter section 11 of the frequency dividing circuit includes a selection section 2
An n-bit counter 13 that up-counts pulses of the input signal using the output signal Fb of 0 as an input signal is compared with the set value written from the table 12 and the count value of the n-bit counter 13, and the set value and the above-mentioned A comparator circuit 21 that resets the n-bit counter 13 when the count values match and outputs a write request signal Sr to the table 12 and the setting unit 60 to write the set value from the table 12 to the setting unit 60; 21 and the flip-flop 15 connected to the output of the flip-flop 15. The output of the flip-flop 15 becomes the output signal F out .

【0029】以下、上記分周回路の動作を説明する。た
だし、図1と同じ動作の部分については簡単に説明す
る。本分周回路は、基準クロック信号Fcを分周器1に
より分周し、選択部20のセレクタ2によって基本クロ
ック信号Fbが選択される。基本クロック信号Fbはカ
ウンタ部11におけるnビットカウンタ13に入力さ
れ、nビットカウンタ13はアップカウント動作をす
る。
The operation of the frequency dividing circuit will be described below. However, the part of the same operation as in FIG. 1 will be briefly described. In this frequency dividing circuit, the reference clock signal Fc is divided by the frequency divider 1 and the basic clock signal Fb is selected by the selector 2 of the selecting section 20. The basic clock signal Fb is input to the n-bit counter 13 in the counter section 11, and the n-bit counter 13 performs an up-count operation.

【0030】また、比較回路21は、nビットカウンタ
13のカウント値と、テーブル12から設定部60に書
き込まれた設定値とを比較し、前記カウント値と設定値
とが一致した時、nビットカウンタ13をリセットする
とともに、フリップフロップ15で出力信号Fout の論
理値を反転する。また、比較回路21はテーブル12お
よび設定部60へ書き込み要求信号Srを出力し、テー
ブル12から設定部60へ書き込みデータSdを出力さ
せて、前記設定値とは別の設定値を書き込ませる。そし
て、nビットカウンタ13は再度アップカウント動作を
する。上記動作を繰り返すことで、連続したパルスを発
生する。
Further, the comparison circuit 21 compares the count value of the n-bit counter 13 with the set value written in the setting section 60 from the table 12, and when the count value and the set value match, n bits are set. The counter 13 is reset and the flip-flop 15 inverts the logical value of the output signal F out . Further, the comparison circuit 21 outputs the write request signal Sr to the table 12 and the setting unit 60, and outputs the write data Sd from the table 12 to the setting unit 60 to write the set value different from the set value. Then, the n-bit counter 13 performs the up-count operation again. By repeating the above operation, continuous pulses are generated.

【0031】例えば、図6(a)に示すような基準クロ
ック信号FcがフリップフロップFF1 に入力されてい
る時、セレクタ2によって論理積回路AND1 にのみ論
理値「1」の信号を入力してフリップフロップFF1
出力c0 を選択すると、基本クロック信号Fbは、図6
(b)に示すように、基準クロック信号Fcが2分周さ
れたクロック信号が得られ、この基本クロック信号Fb
はnビットカウンタ13に入力される。例えば、テーブ
ル12から設定部へ書き込む設定値を「5」、「4」、
「3」、「2」、「1」のようにしておけば、図6
(c)(d)に示すように、nビットカウンタ13のカ
ウント値が設置値と一致する度(t1 〜t5)に出力信
号Fout は反転し、その分周数も設定値に等しい。
For example, when the reference clock signal Fc as shown in FIG. 6A is input to the flip-flop FF 1 , the selector 2 inputs the signal of the logical value “1” only to the AND circuit AND 1. When the output c 0 of the flip-flop FF 1 is selected by using the basic clock signal Fb shown in FIG.
As shown in (b), a clock signal obtained by dividing the reference clock signal Fc by 2 is obtained, and the basic clock signal Fb is obtained.
Is input to the n-bit counter 13. For example, setting values to be written from the table 12 to the setting unit are “5”, “4”,
If you set it like "3", "2", "1",
As shown in (c) and (d), the output signal F out is inverted every time the count value of the n-bit counter 13 matches the set value (t 1 to t 5 ), and the frequency division number is also equal to the set value. .

【0032】したがって、このような分周回路の出力信
号をパルスモータの駆動パルスとして用いれば容易にパ
ルスモータの加減速動作(速度制御)を行うことができ
る。
Therefore, if the output signal of such a frequency dividing circuit is used as the drive pulse of the pulse motor, the acceleration / deceleration operation (speed control) of the pulse motor can be easily performed.

【0033】[0033]

【発明の効果】請求項1の発明は、分周器に接続され前
記分周器の複数の出力から所望の周波数に分周された信
号を選択する選択部と、前記選択部に接続され前記選択
部により選択された信号に従ってカウント値が増加する
アップカウンタと、前記アップカウンタのカウント値と
予め設定された設定値とが一致したときに前記アップカ
ウンタをリセットする比較回路と、前記比較回路からの
出力に接続されるフリップフロップとを備え、前記フリ
ップフロップは前記カウント値と前記設定値とが一致し
たときに前記比較回路からの出力により出力信号の論理
値を反転させるので、前記選択部により選択する信号と
前記設定値とを変化させることにより容易にいろいろな
分周数を得ることができ、このため、パルスモータ等の
速度制御に使用できるという効果がある。
According to the invention of claim 1, a selector connected to the frequency divider for selecting a frequency-divided signal from a plurality of outputs of the frequency divider, and a selector connected to the selector. An up-counter whose count value increases according to the signal selected by the selection unit; a comparator circuit which resets the up-counter when the count value of the up-counter matches a preset setting value; A flip-flop connected to the output of the flip-flop, and the flip-flop inverts the logical value of the output signal by the output from the comparison circuit when the count value and the set value match each other. By changing the signal to be selected and the set value, it is possible to easily obtain various frequency division numbers. Therefore, it can be used for speed control of pulse motors, etc. There is an effect that that.

【0034】請求項2の発明は、各フリップフロップの
夫々の出力および所望の前記フリップフロップの出力を
選択するためのセレクタの出力が接続される複数の論理
積回路と、前記複数の論理積回路の出力が入力される1
つの論理和回路と、前記論理和回路の出力に接続される
カウンタと、前記カウンタのカウントの設定値を予め設
定する設定部と、前記カウンタのカウント値と前記設定
値とを比較して前記カウント値と前記設定値とが一致し
た時に前記カウンタをリセットする比較回路と、前記比
較回路からの出力に接続されるフリップフロップとを備
え、前記フリップフロップは前記カウント値と前記設定
値とが一致した時に前記比較回路からの出力により出力
信号の論理値を反転させるので、前記セレクタの出力と
前記設定値とを変化させることにより容易にいろいろな
分周数を得ることができ、このため、パルスモータの速
度制御に使用できるという効果がある。
According to a second aspect of the present invention, a plurality of logical product circuits to which the respective outputs of the respective flip-flops and the output of the selector for selecting a desired output of the flip-flop are connected, and the plurality of logical product circuits. Input of the output of 1
One OR circuit, a counter connected to the output of the OR circuit, a setting unit that presets the set value of the count of the counter, and the count value obtained by comparing the count value of the counter with the set value. A comparison circuit that resets the counter when the value and the set value match, and a flip-flop connected to the output from the comparison circuit, and the flip-flop has the count value and the set value matched. Since the logical value of the output signal is sometimes inverted by the output from the comparison circuit, various frequency division numbers can be easily obtained by changing the output of the selector and the set value. There is an effect that it can be used for speed control of.

【0035】請求項3の発明は、各フリップフロップの
夫々の出力および所望の前記フリップフロップの出力を
選択するための第1のセレクタの出力が接続される複数
の論理積回路と、前記複数の論理積回路の出力が入力さ
れる1つの論理和回路と、前記論理和回路の出力に接続
されるカウンタと、前記カウンタのカウントの設定値を
予め設定する複数の設定値レジスタと、前記複数の設定
値レジスタの1つを選択する第2のセレクタと、前記カ
ウンタのカウント値と前記第2のセレクタにより選択さ
れた設定値とを比較して前記カウント値と前記設定値と
が一致した時に前記カウンタをリセットする比較回路
と、前記比較回路からの出力に接続されるフリップフロ
ップとを備え、前記フリップフロップは前記カウント値
と前記設定値とが一致した時に前記比較回路からの出力
により出力信号の論理値を反転させるので、前記第1の
セレクタの出力と前記設定値とを変化させることにより
容易にいろいろな分周数を得ることができ、このため、
パルスモータの速度制御に使用できるという効果があ
る。
According to a third aspect of the present invention, a plurality of AND circuits to which the respective outputs of the flip-flops and the output of the first selector for selecting a desired output of the flip-flop are connected, and the plurality of AND circuits. One logical sum circuit to which the output of the logical product circuit is input, a counter connected to the output of the logical sum circuit, a plurality of setting value registers for presetting the setting value of the count of the counter, and a plurality of the plurality of setting value registers. A second selector that selects one of the set value registers is compared with the count value of the counter and the set value selected by the second selector, and when the count value and the set value match, A comparison circuit for resetting a counter and a flip-flop connected to an output from the comparison circuit are provided, and the flip-flop has the count value and the set value equal to each other. At this time, the logical value of the output signal is inverted by the output from the comparison circuit, so that it is possible to easily obtain various frequency division numbers by changing the output of the first selector and the set value. For,
It has an effect that it can be used for speed control of a pulse motor.

【0036】請求項4の発明は、分周器に接続され前記
分周器の複数の出力から所望の周波数に分周された信号
を選択する選択部と、前記選択部に接続され前記選択部
により選択された信号に従ってカウント値が増加するア
ップカウンタと、前記アップカウンタのカウントの複数
の設定値を書き込まれたデータテーブルと、前記カウン
ト値と前記データテーブルから読み込まれた設定値とが
一致したときに前記アップカウンタをリセットする比較
回路と、前記比較回路からの出力に接続されるフリップ
フロップとを備え、前記フリップフロップは前記カウン
ト値と前記設定値とが一致したときに前記比較回路から
の出力により出力信号の論理値を反転させるので、前記
選択部により選択する信号と前記設定値とを変化させる
ことにより容易にいろいろな分周数を得ることができ、
このため、パルスモータの速度制御に使用できるという
効果がある。
According to a fourth aspect of the present invention, there is provided a selecting section connected to the frequency divider for selecting a signal divided into a desired frequency from a plurality of outputs of the frequency divider, and the selecting section connected to the selecting section. The up counter whose count value increases in accordance with the signal selected by, the data table in which a plurality of setting values of the count of the up counter are written, and the count value and the setting value read from the data table match. And a flip-flop connected to an output from the comparison circuit, the flip-flop being connected to the output from the comparison circuit when the count value and the set value match. Since the logical value of the output signal is inverted by the output, it is easy to change the signal selected by the selection unit and the set value. It is possible to obtain a Roiro divider number,
Therefore, there is an effect that it can be used for speed control of the pulse motor.

【0037】請求項5の発明は、比較回路が、アップカ
ウンタをリセットする度にデータテーブルから別の設定
値を読み込むので、前記アップカウンタがリセットする
度に前記設定値に依存して分周数が変化し、容易にいろ
いろな分周数を得ることができ、このため、パルスモー
タの速度制御に使用できるという効果がある。請求項6
の発明は、各フリップフロップの夫々の出力および所望
の前記フリップフロップの出力を選択するためのセレク
タの出力が接続される複数の論理積回路と、前記複数の
論理積回路の出力が入力される1つの論理和回路と、前
記論理和回路の出力に接続されるカウンタと、前記カウ
ンタのカウント値の複数の設定値が設定されたデータテ
ーブルと、前記データテーブルからの設定値のデータを
受信する設定部と、前記カウンタのカウント値と前記設
定部の第1の設定値とを比較して前記カウント値と前記
第1の設定値とが一致した時に前記カウンタをリセット
し且つ前記データテーブルから前記設定部へ第2の設定
値を書き込ませる比較回路と、前記比較回路からの出力
に接続されるフリップフロップとを備え、前記フリップ
フロップは前記カウント値と前記設定値とが一致した時
に前記比較回路からの出力により出力信号の論理値を反
転させるので、前記セレクタの出力と前記設定部におけ
る設定値とを変化させることにより容易にいろいろな分
周数を得ることができ、このため、パルスモータの速度
制御に使用できるという効果がある。
According to the fifth aspect of the present invention, the comparator circuit reads another set value from the data table every time the up counter is reset. Therefore, the frequency division number depends on the set value each time the up counter is reset. Changes, and various frequency division numbers can be easily obtained. Therefore, there is an effect that it can be used for speed control of a pulse motor. Claim 6
In the invention, a plurality of logical product circuits to which the respective outputs of the respective flip-flops and the output of the selector for selecting a desired output of the flip-flop are connected, and the outputs of the plurality of logical product circuits are input. One logical sum circuit, a counter connected to the output of the logical sum circuit, a data table in which a plurality of set values of the count value of the counter are set, and data of the set values from the data table are received. The setting unit compares the count value of the counter with the first setting value of the setting unit, resets the counter when the count value and the first setting value match, and stores the counter from the data table. A comparator circuit for writing the second set value to the setting unit and a flip-flop connected to the output from the comparator circuit are provided, and the flip-flop is the capacitor. Since the logical value of the output signal is inverted by the output from the comparison circuit when the input value and the set value match, it is possible to easily change various values by changing the output of the selector and the set value in the setting section. It is possible to obtain the number of revolutions, and therefore, it is possible to use it for speed control of the pulse motor.

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

【図1】実施の形態1を示す回路構成図である。FIG. 1 is a circuit configuration diagram showing a first embodiment.

【図2】実施の形態1の動作説明図である。FIG. 2 is an operation explanatory diagram of the first embodiment.

【図3】実施の形態2を示す回路構成図である。FIG. 3 is a circuit configuration diagram showing a second embodiment.

【図4】実施の形態2の動作説明図である。FIG. 4 is an operation explanatory diagram of the second embodiment.

【図5】実施の形態3を示す回路構成図である。FIG. 5 is a circuit configuration diagram showing a third embodiment.

【図6】実施の形態3の動作説明図である。FIG. 6 is an operation explanatory diagram of the third embodiment.

【図7】実施の形態1の分周回路で得られる分周数の説
明図である。
FIG. 7 is an explanatory diagram of frequency division numbers obtained by the frequency division circuit according to the first embodiment.

【図8】実施の形態2の分周回路で得られる分周数の説
明図である。
FIG. 8 is an explanatory diagram of frequency division numbers obtained by the frequency dividing circuit according to the second embodiment.

【図9】従来例のフリップフロップの段数と分周数との
関係説明図である。
FIG. 9 is an explanatory diagram of a relationship between the number of stages of a flip-flop and a frequency division number of a conventional example.

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

1 分周器 2 セレクタ 3 カウンタ部 5 論理和回路 13 nビットカウンタ 14 比較回路 15 フリップフロップ 20 選択部 50 設定部 AND1 〜AND7 論理積回路 Fb 基本クロック信号 Fc 基準クロック信号 FF1 〜FF7 フリップフロップ Fout 出力信号1 frequency divider 2 selector 3 counter section 5 OR circuit 13 n-bit counter 14 comparison circuit 15 flip-flop 20 selection section 50 setting section AND 1 to AND 7 AND circuit Fb basic clock signal Fc reference clock signal FF 1 to FF 7 Flip-flop F out output signal

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 基準クロック信号を任意の周波数に分周
する分周器と、前記分周器に接続され前記分周器の複数
の出力から所望の周波数に分周された信号を選択する選
択部と、前記選択部に接続され前記選択部により選択さ
れた信号に従ってカウント値が増加するアップカウンタ
と、前記アップカウンタのカウント値と予め設定された
設定値とが一致したときに前記アップカウンタをリセッ
トする比較回路と、前記比較回路からの出力に接続され
るフリップフロップとを備え、前記フリップフロップは
前記カウント値と前記設定値とが一致したときに前記比
較回路からの出力により出力信号の論理値を反転させる
ことを特徴とする分周回路。
1. A frequency divider that divides a reference clock signal to an arbitrary frequency, and a selection that is connected to the frequency divider and that selects a signal divided to a desired frequency from a plurality of outputs of the frequency divider. Section, an up-counter connected to the selection section and having a count value increased according to the signal selected by the selection section, and the up-counter when the count value of the up-counter and a preset setting value match. A comparator circuit for resetting and a flip-flop connected to the output from the comparator circuit are provided, and the flip-flop outputs the logic of the output signal by the output from the comparator circuit when the count value and the set value match. A frequency divider circuit that inverts a value.
【請求項2】 一定周期のクロック信号の立ち上がりに
同期して動作する初段のフリップフロップおよび夫々の
前段のフリップフロップの出力が入力される複数のフリ
ップフロップから成る分周器と、前記各フリップフロッ
プの夫々の出力および所望の前記フリップフロップの出
力を選択するためのセレクタの出力が接続される複数の
論理積回路と、前記複数の論理積回路の出力が入力され
る1つの論理和回路と、前記論理和回路の出力に接続さ
れるカウンタと、前記カウンタのカウントの設定値を予
め設定する設定部と、前記カウンタのカウント値と前記
設定値とを比較して前記カウント値と前記設定値とが一
致した時に前記カウンタをリセットする比較回路と、前
記比較回路からの出力に接続されるフリップフロップと
を備え、前記フリップフロップは前記カウント値と前記
設定値とが一致した時に前記比較回路からの出力により
出力信号の論理値を反転させることを特徴とする分周回
路。
2. A frequency divider comprising a first-stage flip-flop that operates in synchronization with a rising edge of a clock signal of a constant cycle and a plurality of flip-flops to which outputs of respective front-stage flip-flops are input, and the respective flip-flops. A plurality of logical product circuits to which the respective outputs of the above and the output of the selector for selecting the desired output of the flip-flop are connected, and one logical sum circuit to which the outputs of the plurality of logical product circuits are input, A counter connected to the output of the OR circuit, a setting unit that presets a count setting value of the counter, and a count value and the setting value by comparing the count value and the setting value of the counter. And a flip-flop connected to the output from the comparison circuit. A frequency divider circuit, wherein the flip-flop inverts the logical value of the output signal by the output from the comparison circuit when the count value and the set value match.
【請求項3】 一定周期のクロック信号の立ち上がりに
同期して動作する初段のフリップフロップおよび夫々の
前段のフリップフロップの出力が入力される複数のフリ
ップフロップから成る分周器と、前記各フリップフロッ
プの夫々の出力および所望の前記フリップフロップの出
力を選択するための第1のセレクタの出力が接続される
複数の論理積回路と、前記複数の論理積回路の出力が入
力される1つの論理和回路と、前記論理和回路の出力に
接続されるカウンタと、前記カウンタのカウントの設定
値を予め設定する複数の設定値レジスタと、前記複数の
設定値レジスタの1つを選択する第2のセレクタと、前
記カウンタのカウント値と前記第2のセレクタにより選
択された設定値とを比較して前記カウント値と前記設定
値とが一致した時に前記カウンタをリセットする比較回
路と、前記比較回路からの出力に接続されるフリップフ
ロップとを備え、前記フリップフロップは前記カウント
値と前記設定値とが一致した時に前記比較回路からの出
力により出力信号の論理値を反転させることを特徴とす
る分周回路。
3. A frequency divider comprising a flip-flop at a first stage and a plurality of flip-flops to which outputs of flip-flops at respective preceding stages which operate in synchronization with rising edges of a clock signal having a constant cycle are input, and each of the flip-flops. And a plurality of logical product circuits to which outputs of the first selector for selecting a desired output of the flip-flop are connected, and one logical sum to which outputs of the plurality of logical product circuits are input. Circuit, a counter connected to the output of the OR circuit, a plurality of set value registers for presetting the set value of the count of the counter, and a second selector for selecting one of the plurality of set value registers And comparing the count value of the counter with the set value selected by the second selector, and when the count value and the set value match. A comparator circuit for resetting the counter and a flip-flop connected to the output from the comparator circuit are provided, and the flip-flop outputs an output signal from the output from the comparator circuit when the count value and the set value match. A frequency divider circuit characterized by inverting the logical value of.
【請求項4】 基準クロック信号を任意の周波数に分周
する分周器と、前記分周器に接続され前記分周器の複数
の出力から所望の周波数に分周された信号を選択する選
択部と、前記選択部に接続され前記選択部により選択さ
れた信号に従ってカウント値が増加するアップカウンタ
と、前記アップカウンタのカウントの複数の設定値を書
き込まれたデータテーブルと、前記カウント値と前記デ
ータテーブルから読み込まれた設定値とが一致したとき
に前記アップカウンタをリセットする比較回路と、前記
比較回路からの出力に接続されるフリップフロップとを
備え、前記フリップフロップは前記カウント値と前記設
定値とが一致したときに前記比較回路からの出力により
出力信号の論理値を反転させることを特徴とする分周回
路。
4. A frequency divider that divides a reference clock signal into an arbitrary frequency, and a selection that is connected to the frequency divider and that selects a signal divided into a desired frequency from a plurality of outputs of the frequency divider. Section, an up counter connected to the selection section and having a count value increased according to a signal selected by the selection section, a data table in which a plurality of setting values of the count of the up counter are written, the count value and the A comparison circuit that resets the up counter when the set values read from the data table match, and a flip-flop connected to an output from the comparison circuit, the flip-flop being provided with the count value and the setting A frequency divider circuit which inverts a logical value of an output signal by an output from the comparison circuit when the values coincide with each other.
【請求項5】 比較回路は、アップカウンタをリセット
する度にデータテーブルから別の設定値を読み込むこと
を特徴とする請求項4記載の分周回路。
5. The frequency divider circuit according to claim 4, wherein the comparator circuit reads another set value from the data table each time the up counter is reset.
【請求項6】 一定周期のクロック信号の立ち上がりに
同期して動作する初段のフリップフロップおよび夫々の
前段のフリップフロップの出力が入力される複数のフリ
ップフロップから成る分周器と、前記各フリップフロッ
プの夫々の出力および所望の前記フリップフロップの出
力を選択するための第1のセレクタの出力が接続される
複数の論理積回路と、前記複数の論理積回路の出力が入
力される1つの論理和回路と、前記論理和回路の出力に
接続されるカウンタと、前記カウンタのカウント値の複
数の設定値が設定されたデータテーブルと、前記データ
テーブルからの設定値のデータを受信する設定部と、前
記カウンタのカウント値と前記設定部の第1の設定値と
を比較して前記カウント値と前記第1の設定値とが一致
した時に前記カウンタをリセットし且つ前記データテー
ブルから前記設定部へ第2の設定値を書き込ませる比較
回路と、前記比較回路からの出力に接続されるフリップ
フロップとを備え、前記フリップフロップは前記カウン
ト値と前記設定値とが一致した時に前記比較回路からの
出力により出力信号の論理値を反転させることを特徴と
する分周回路。
6. A frequency divider comprising a first-stage flip-flop that operates in synchronization with a rising edge of a clock signal having a constant cycle and a plurality of flip-flops to which outputs of respective preceding flip-flops are input, and each of the flip-flops. And a plurality of logical product circuits to which outputs of the first selector for selecting a desired output of the flip-flop are connected, and one logical sum to which outputs of the plurality of logical product circuits are input. A circuit, a counter connected to the output of the OR circuit, a data table in which a plurality of setting values of the count value of the counter are set, and a setting unit which receives the setting value data from the data table, When the count value of the counter and the first set value of the setting unit are compared and the count value and the first set value match, the count And a flip-flop connected to an output from the comparison circuit, the flip-flop connected to the output from the comparison circuit, and the flip-flop connected to the output from the comparison circuit. A frequency divider circuit, wherein a logical value of an output signal is inverted by an output from the comparison circuit when the set values match.
JP26603495A 1995-10-13 1995-10-13 Frequency divider circuit Expired - Fee Related JP3666078B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26603495A JP3666078B2 (en) 1995-10-13 1995-10-13 Frequency divider circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26603495A JP3666078B2 (en) 1995-10-13 1995-10-13 Frequency divider circuit

Publications (2)

Publication Number Publication Date
JPH09116424A true JPH09116424A (en) 1997-05-02
JP3666078B2 JP3666078B2 (en) 2005-06-29

Family

ID=17425475

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26603495A Expired - Fee Related JP3666078B2 (en) 1995-10-13 1995-10-13 Frequency divider circuit

Country Status (1)

Country Link
JP (1) JP3666078B2 (en)

Also Published As

Publication number Publication date
JP3666078B2 (en) 2005-06-29

Similar Documents

Publication Publication Date Title
US4935944A (en) Frequency divider circuit with integer and non-integer divisors
JPH07101847B2 (en) Digital Phase Locked Loop Device
JPS58121827A (en) Pulse generating circuit
JPH06216762A (en) Asynchronous counter
US3992635A (en) N scale counter
JP2561887B2 (en) Servo motor rotation speed counting circuit
JPH09116424A (en) Frequency division circuit
JP2003152530A (en) Frequency-dividing circuit
JP2659186B2 (en) Digital variable frequency divider
JPH1198007A (en) Frequency divider
JPS6130451B2 (en)
KR200164990Y1 (en) 50% duty odd frequency demultiplier
JPH0783257B2 (en) Variable frequency divider
US4081755A (en) Baud rate generator utilizing single clock source
RU2037958C1 (en) Frequency divider
JP3338294B2 (en) Counter circuit
JP2689539B2 (en) Divider
JPH0514186A (en) Pulse width modulation circuit
JPH03812B2 (en)
JPH0691425B2 (en) Frequency divider using D-type flip-flop
JP2594571B2 (en) Delay circuit
JP2682889B2 (en) Variable frequency divider
JPH09321613A (en) Programmable divider circuit
JPH0575407A (en) Variable pulse width and period circuit
JPH0786923A (en) Frequency divider circuit

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041111

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041130

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050131

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050315

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050328

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

Free format text: PAYMENT UNTIL: 20080415

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090415

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090415

Year of fee payment: 4

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

Free format text: PAYMENT UNTIL: 20090415

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20100415

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100415

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110415

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120415

Year of fee payment: 7

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20120415

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20120415

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130415

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130415

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20140415

Year of fee payment: 9

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

LAPS Cancellation because of no payment of annual fees