JPS6337531B2 - - Google Patents

Info

Publication number
JPS6337531B2
JPS6337531B2 JP16924781A JP16924781A JPS6337531B2 JP S6337531 B2 JPS6337531 B2 JP S6337531B2 JP 16924781 A JP16924781 A JP 16924781A JP 16924781 A JP16924781 A JP 16924781A JP S6337531 B2 JPS6337531 B2 JP S6337531B2
Authority
JP
Japan
Prior art keywords
circuit
output
flop
frequency
flip
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.)
Expired
Application number
JP16924781A
Other languages
Japanese (ja)
Other versions
JPS5869126A (en
Inventor
Masao Ariizumi
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.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP16924781A priority Critical patent/JPS5869126A/en
Publication of JPS5869126A publication Critical patent/JPS5869126A/en
Publication of JPS6337531B2 publication Critical patent/JPS6337531B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K23/00Pulse counters comprising counting chains; Frequency dividers comprising counting chains
    • H03K23/64Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two
    • H03K23/66Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two with a variable counting base, e.g. by presetting or by adding or suppressing pulses

Landscapes

  • Pulse Circuits (AREA)

Description

【発明の詳細な説明】 本発明は電子回路中における分周回路、特にプ
ログラム可能な分周回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to frequency divider circuits in electronic circuits, and more particularly to programmable frequency divider circuits.

従来分周器としては1/n分周器が一般的であ
るが、分周比が固定のものと、可変のものがあ
る。可変分周器の構成としては、バイナリフリツ
プフロツプと分周値設定用のラツチからなる。
A 1/n frequency divider is commonly used as a conventional frequency divider, but there are types with a fixed frequency division ratio and types with a variable frequency divider. The variable frequency divider consists of a binary flip-flop and a latch for setting the frequency division value.

一方周波数を一定にしておき、デユーテイーを
可変にする分周器も公知である。この分周器では
前記1/n分周器に反転回路が追加される。第1
図はデユーテイー可変分周器の一例である。また
第2図は第1図の動作説明のためのタイムチヤー
トである。ここではプリセツト値として(a)0(12
=0,13=0),(b)2(12=0,13=1)の2例に
ついて示している。第1図の動作を第2図を参照
しながら説明する。被分周クロツクφは、リセツ
ト付バイナリフリツプフロツプ3,4で分周され
る。この分周結果の一状態00(3Q=0,4Q=0)
がアンドゲート5で検出され、このアンドゲート
5の出力が被分周クロツクφで動作するデイレイ
ドフリツプフロツプ6に読み込まれるとともに、
アンドゲート5の出力はトリガフリツプフロツプ
7をたたき、トリガフリツプフロツプ7の出力を
反転させる。さらにデイレイドフリツプフロツプ
6の正相出力はナンドゲート8および9に印加さ
れてこのナンドゲート8,9を制御する。また逆
相出力が前記アンドゲート5に印加されるのでア
ンドゲート5の出力は被分周クロツクφの2クロ
ツク以上にわたつて能動(1)となることはない。ナ
ンドゲート8,9の出力はそれぞれバイナリフリ
ツプフロツプ3,4のリセツト信号となつてお
り、デイレイドフリツプフロツプ6の正相出力60
が能動(1)のときデータラツチ12,13の内容が
反転回路10,11、ナンドゲート8,9を経て
バイナリフリツプフロツプ3,4に設定される。
データラツチ12,13はあらかじめプロセツサ
14によりコードが設定されている。まず、コー
ドが(a)の場合3Q=4Q=0でアンドゲート5=1
となり、ここでトリガフリツプフロツプ7が反転
する。次のクロツクサイクルで6Q=1となるの
で遅延回路15で適当に遅延してナンドゲート
8,9が能動となるが、このときクロツクφが前
もつて加わるので3Q=4Q=1となつている。ま
た7Q=0に反転したとすればデータラツチ12,
13の出力は反転回路10,11で反転されて共
に1となり、ナンドゲート8,9で条件がとれて
ナンドゲート8,9の出力は共に0となる。従つ
てバイナリフリツプフロツプ3,4は共にリセツ
トされて3Q=4Q=0となる。このタイミングで
はアンドゲート5はデイレイドフリツプフロツプ
6の逆相出力で禁止されるので出力は0となる。
On the other hand, a frequency divider that keeps the frequency constant and makes the duty variable is also known. In this frequency divider, an inverting circuit is added to the 1/n frequency divider. 1st
The figure shows an example of a variable duty frequency divider. Further, FIG. 2 is a time chart for explaining the operation of FIG. 1. Here, the preset value is (a) 0 (12
=0, 13=0) and (b)2 (12=0, 13=1). The operation shown in FIG. 1 will be explained with reference to FIG. 2. The frequency of the divided clock φ is divided by binary flip-flops 3 and 4 with reset. One state of this frequency division result is 00 (3Q=0, 4Q=0)
is detected by the AND gate 5, and the output of the AND gate 5 is read into the delayed flip-flop 6 which operates with the divided clock φ.
The output of the AND gate 5 hits the trigger flip-flop 7 and inverts the output of the trigger flip-flop 7. Furthermore, the positive phase output of delayed flip-flop 6 is applied to NAND gates 8 and 9 to control them. Furthermore, since the reverse phase output is applied to the AND gate 5, the output of the AND gate 5 does not become active (1) for more than two clocks of the divided clock φ. The outputs of the NAND gates 8 and 9 serve as reset signals for the binary flip-flops 3 and 4, respectively, and the positive phase output 60 of the delayed flip-flop 6.
When is active (1), the contents of data latches 12 and 13 are set in binary flip-flops 3 and 4 via inverting circuits 10 and 11 and NAND gates 8 and 9.
Codes are set in the data latches 12 and 13 by the processor 14 in advance. First, if the code is (a), 3Q=4Q=0 and AND gate 5=1
Then, the trigger flip-flop 7 is inverted. In the next clock cycle, 6Q = 1, so the NAND gates 8 and 9 become active after an appropriate delay in the delay circuit 15, but at this time, the clock φ is added in advance, so 3Q = 4Q = 1. . Also, if it is reversed to 7Q=0, data latch 12,
The outputs of 13 are inverted by inverting circuits 10 and 11 and both become 1, and the conditions are met by NAND gates 8 and 9, so that the outputs of NAND gates 8 and 9 both become 0. Therefore, both binary flip-flops 3 and 4 are reset so that 3Q=4Q=0. At this timing, the AND gate 5 is inhibited by the reverse phase output of the delayed flip-flop 6, so the output becomes 0.

またバイナリフリツプフロツプ3のクロツク入
力信号は6Qがオアゲート1で被分周クロツクφ
とオアされるので次のクロツクサイクルではバイ
ナリフリツプフロツプ3,4は変化しない。次に
再び6Q=0となるので再度アンドゲート5=1
となつてトリガフリツプフロツプ7を反転させ
る。このサイクルでは7Q=1となるのでデータ
ラツチ12,13の内容はそのままナンドゲート
3,4に伝達される。次のクロツクサイクル6Q
=1となるのでナンドゲート8,9は能動となる
が、反転回路10,11の出力は共に0であるの
でナンドゲート8,9の出力は共に1のままであ
る。一方バイナリフリツプフロツプ3,4はこの
ときのクロツクφにより3Q=4Q=1となつてい
るので、次のクロツクサイクルからはこの状態か
らカウントダウンを開始する。そして再び3Q=
4Q=0となるとアンドゲート5=1となつて前
記と同一動作を繰り返す。次に(b)の場合の動作
は、第2図の最初の6Q=1では3Q=0,4Q=
1,次の6Q=1では3Q=1,4Q=0となる。動
作(a)の場合と全く同一であるが、トリガフリツプ
フロツプ7の出力を比較してみると、同波数が同
じでデユーテイー・のみ異なつていることがわか
る。つまりデータラツチ12,13の内容を変え
ることにより同波数一定でデユーテイーの異なる
信号を得ることができる。
In addition, the clock input signal of binary flip-flop 3 is 6Q, which is the OR gate 1 and the divided clock φ.
Therefore, binary flip-flops 3 and 4 do not change in the next clock cycle. Next, 6Q=0 again, so AND gate 5=1 again
Then, the trigger flip-flop 7 is inverted. In this cycle, 7Q=1, so the contents of data latches 12 and 13 are transmitted as they are to NAND gates 3 and 4. Next clock cycle 6Q
=1, so the NAND gates 8 and 9 become active, but since the outputs of the inverting circuits 10 and 11 are both 0, the outputs of the NAND gates 8 and 9 both remain 1. On the other hand, since the binary flip-flops 3 and 4 have 3Q=4Q=1 due to the clock φ at this time, they start counting down from this state from the next clock cycle. And again 3Q=
When 4Q=0, AND gate 5 becomes 1 and the same operation as above is repeated. Next, the operation in case (b) is that for the first 6Q=1 in Figure 2, 3Q=0, 4Q=
1, the next 6Q=1, 3Q=1, 4Q=0. The operation is exactly the same as in operation (a), but when comparing the outputs of the trigger flip-flop 7, it can be seen that the wave numbers are the same and only the duty is different. That is, by changing the contents of the data latches 12 and 13, it is possible to obtain signals with the same wave number and different duties.

この回路を例えばマイクロコンピユータ等に組
み込んだ場合、そのデユーテイーはコントローラ
14のソフト的操作によつて自由にかえられるわ
けである。しかし一方ある応用分野ではデユーテ
イー可変機能は不要だが周波数可変信号のほしい
場合、あるいは両者を切換えて使いたい場合があ
る。このとき周波数可変用ハードウエアを別個に
設けることは回路構成上非常にむだとなり、コス
トアツプにつながる。
When this circuit is incorporated into, for example, a microcomputer, its duty can be freely changed by operating the controller 14 using software. However, in some application fields, the variable duty function is not necessary but a variable frequency signal is desired, or there are cases where it is desired to switch between the two. At this time, separately providing frequency variable hardware is extremely wasteful in terms of circuit configuration, leading to increased costs.

本発明は上記欠点に鑑みてなされたものであつ
て、その目的は周波数可変回路と、デユーテイー
可変回路とを共通化し、制御信号で切換えて使用
することによりハードウエアの効率向上をはかる
ものである。
The present invention has been made in view of the above-mentioned drawbacks, and its purpose is to improve the efficiency of hardware by making a variable frequency circuit and a variable duty circuit common and switching them using a control signal. .

本発明は複数のバイナリフリツプフロツプが縦
続接続され、入力されるクロツク信号を分周する
分周器と、前記分周器が所定の内容になつた時に
出力信号を発生する第1のゲート回路と、この第
1のゲート回路の出力信号によつて状態が反転す
るトリガフリツプフロツプと、前記第1のゲート
回路の出力信号を前記クロツク信号に応答して入
力するデイレイドフリツプフロツプと、前記分周
器にプリセツトされる情報が格納されるラツチ回
路と、このラツチ回路の出力を反転する反転回路
と、反転回路の出力および前記デイレイドフリツ
プフロツプの出力を遅延した信号を入力とし、前
記分周器のプリセツト端子に前記反転回路の出力
を印加する第2のゲート回路と、前記トリガフリ
ツプフロツプの出力を制御信号によつて開閉され
る第3のゲート回路を介して前記反転回路に印加
する手段とを含み、前記制御信号によつて前記第
3のゲート回路が開状態となつた時前記トリガフ
リツプフロツプの出力を前記反転回路に印加し、
前記ラツチ回路に格納された情報に応じたデユー
テイー比をもつ分周信号を得、前記第3のゲート
回路が閉状態の時には前記ラツチ回路に格納され
た情報に応じた周波数をもつ分周信号が得られる
ようにしたことを特徴とするものである。
The present invention includes a frequency divider in which a plurality of binary flip-flops are connected in cascade to divide an input clock signal, and a first gate that generates an output signal when the frequency divider reaches a predetermined value. a trigger flip-flop whose state is inverted by the output signal of the first gate circuit; and a delayed flip-flop which inputs the output signal of the first gate circuit in response to the clock signal. a latch circuit in which information to be preset in the frequency divider is stored; an inversion circuit that inverts the output of the latch circuit; and a signal obtained by delaying the output of the inversion circuit and the output of the delayed flip-flop. a second gate circuit which takes as an input and applies the output of the inverting circuit to a preset terminal of the frequency divider, and a third gate circuit which is opened and closed by a control signal to connect the output of the trigger flip-flop. applying the output of the trigger flip-flop to the inverting circuit when the third gate circuit is opened by the control signal;
A frequency-divided signal having a duty ratio according to the information stored in the latch circuit is obtained, and when the third gate circuit is in a closed state, a frequency-divided signal having a frequency according to the information stored in the latch circuit is obtained. It is characterized in that it can be obtained.

以下図面とともに本発明を説明する。 The present invention will be explained below with reference to the drawings.

第3図は本発明の一実施例である。構成は第1
図と同じであるが、トリガフリツプフロツプの出
力に制御ゲート16が挿入されている。ここでコ
ントローラ14の出力である制御信号17が
“1”であればトリガフリツプフロツプ7の出力
7Qはそのまま反転回路10,11に伝えられる
ので第1図と全く同一動作となる。次に制御信号
17が“0”になると制御ゲート16の出力は常
に“0”となつて反転回路10,11は反転/非
反転動作をせず常に反転回路となる。したがつて
バイナリフリツプフロツプ3,4のリセツト端子
Rにはデータラツチ12,13の内容が常に印加
される。この場合の動作を第4図に(a)12=0,13
=0,(b)12=0,13=1の2例について示す。こ
こでトリガフリツプフロツプ7の出力7Qを見る
と、データラツチ12,13の内容によつて周波
数が変化していることがわかる。この回路例では
トリガフリツプフロツプ7の出力周波数70は被
分周クロツクの周波数〓と、データラツチ12,
13の分周値Nで 70=〓/2(2+N) と表わされる。
FIG. 3 shows an embodiment of the present invention. The composition is the first
It is the same as the figure, but a control gate 16 is inserted at the output of the trigger flip-flop. Here, if the control signal 17 which is the output of the controller 14 is "1", the output of the trigger flip-flop 7
Since 7Q is directly transmitted to the inverting circuits 10 and 11, the operation is exactly the same as in FIG. 1. Next, when the control signal 17 becomes "0", the output of the control gate 16 always becomes "0", and the inverting circuits 10 and 11 do not perform inverting/non-inverting operation but always become inverting circuits. Therefore, the contents of the data latches 12, 13 are always applied to the reset terminals R of the binary flip-flops 3, 4. The operation in this case is shown in Figure 4 (a) 12 = 0, 13
Two examples will be shown: =0, (b)12=0, and 13=1. Looking at the output 7Q of the trigger flip-flop 7, it can be seen that the frequency changes depending on the contents of the data latches 12 and 13. In this circuit example, the output frequency 70 of the trigger flip-flop 7 is the frequency of the divided clock and the data latch 12,
With a frequency division value N of 13, it is expressed as 70 = /2 (2 + N).

以上説明したように本発明によれば簡単な制御
ゲートの追加によりデユーテイー可変出力または
周波数可変出力を得ることができ、極めて使用効
率の高いハードウエアが低コストで実現できるの
でその効果は大きい。
As explained above, according to the present invention, variable duty output or variable frequency output can be obtained by simply adding a control gate, and hardware with extremely high usage efficiency can be realized at low cost, which is highly effective.

なお本発明の説明図ではバイナリフリツプフロ
ツプとして2ビツトを用いたが、これにとどまる
ことなくさらに、回路構成自体も等価的に他の回
路におきかわることはもちろんである。
Although 2 bits are used as the binary flip-flop in the explanatory diagrams of the present invention, the present invention is not limited to this, and the circuit configuration itself can of course be equivalently replaced with other circuits.

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

第1図は従来のデユーテイー可変出力を得る回
路を示す図である。第2図は第1図の動作波形図
である。第3図は本発明にかかる回路図である。
第4図は第3図の動作波形である。 3,4……バイナリフリツプフロツプ、6……
デイレイドフリツプフロツプ、7……トリガフリ
ツプフロツプ、10,11……反転回路、12,
13……データラツチ、14……コントローラ、
16……制御ゲート、17……制御信号。
FIG. 1 is a diagram showing a conventional circuit for obtaining variable duty output. FIG. 2 is an operational waveform diagram of FIG. 1. FIG. 3 is a circuit diagram according to the present invention.
FIG. 4 shows the operating waveforms of FIG. 3. 3, 4...Binary flip-flop, 6...
Delayed flip-flop, 7...Trigger flip-flop, 10, 11...Inverting circuit, 12,
13...Data latch, 14...Controller,
16...Control gate, 17...Control signal.

Claims (1)

【特許請求の範囲】[Claims] 1 複数のバイナリフリツプフロツプが縦続接続
され、入力されるクロツク信号を分周する分周器
と、前記分周器が所定の内容になつた時に出力信
号を発生する第1のゲート回路と、該第1のゲー
ト回路の出力信号によつて状態が反転するトリガ
フリツプフロツプと、前記第1のゲート回路の出
力信号を前記クロツク信号に応答して入力するデ
イレイドフリツプフロツプと、前記分周器にプリ
セツトされる情報が格納されるラツチ回路と、該
ラツチ回路の出力を反転する反転回路と、該反転
回路の出力および前記デイレイドフリツプフロツ
プの出力を遅延した信号を入力とし、前記分周器
のプリセツト端子に前記反転回路の出力を印加す
る第2のゲート回路と、前記トリガフリツプフロ
ツプの出力を制御信号によつて開閉される第3の
ゲート回路を介して前記反転回路に印加する手段
とを含み前記制御信号によつて前記第3のゲート
回路が開状態となつた時前記トリガフリツプフロ
ツプの出力を前記反転回路に印加し、前記ラツチ
回路に格納された情報に応じたデユーテイー比を
もつ分周信号を得、前記第3のゲート回路が閉状
態の時には前記ラツチ回路に格納された情報に応
じた周波数をもつ分周信号が得られるようにした
ことを特徴とする分周回路。
1. A frequency divider in which a plurality of binary flip-flops are connected in cascade, which divides the frequency of an input clock signal, and a first gate circuit that generates an output signal when the frequency divider reaches a predetermined content. , a trigger flip-flop whose state is inverted by the output signal of the first gate circuit, and a delayed flip-flop that inputs the output signal of the first gate circuit in response to the clock signal. , a latch circuit in which information to be preset in the frequency divider is stored, an inversion circuit for inverting the output of the latch circuit, and a signal obtained by delaying the output of the inversion circuit and the output of the delayed flip-flop. a second gate circuit that applies the output of the inversion circuit to a preset terminal of the frequency divider; and a third gate circuit that applies the output of the trigger flip-flop to a preset terminal of the frequency divider; applying the output of the trigger flip-flop to the inverting circuit and applying it to the latch circuit when the third gate circuit is opened by the control signal; A frequency-divided signal having a duty ratio according to the stored information is obtained, and when the third gate circuit is in a closed state, a frequency-divided signal having a frequency according to the information stored in the latch circuit is obtained. A frequency dividing circuit characterized by the following.
JP16924781A 1981-10-21 1981-10-21 Frequency dividing circuit Granted JPS5869126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16924781A JPS5869126A (en) 1981-10-21 1981-10-21 Frequency dividing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16924781A JPS5869126A (en) 1981-10-21 1981-10-21 Frequency dividing circuit

Publications (2)

Publication Number Publication Date
JPS5869126A JPS5869126A (en) 1983-04-25
JPS6337531B2 true JPS6337531B2 (en) 1988-07-26

Family

ID=15882965

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16924781A Granted JPS5869126A (en) 1981-10-21 1981-10-21 Frequency dividing circuit

Country Status (1)

Country Link
JP (1) JPS5869126A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0343421U (en) * 1989-09-08 1991-04-23

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0343421U (en) * 1989-09-08 1991-04-23

Also Published As

Publication number Publication date
JPS5869126A (en) 1983-04-25

Similar Documents

Publication Publication Date Title
US6263450B1 (en) Programmable and resettable multifunction processor timer
US3943379A (en) Symmetrical odd modulus frequency divider
US4786823A (en) Noise pulse suppressing circuit in digital system
JPH04288607A (en) Clock signal switching circuit
US5384816A (en) Frequency divider circuit
JPS6337531B2 (en)
JP3649874B2 (en) Frequency divider circuit
JP2659186B2 (en) Digital variable frequency divider
JPH05276775A (en) Circuit for counting revolution number of servo motor
EP0366582B1 (en) High speed digital counter
JPS6130451B2 (en)
JP3389292B2 (en) Divider circuit
JP2547723B2 (en) Divider circuit
JPH0529892A (en) Logic circuit
JP2946606B2 (en) Counter circuit
JPS6233394Y2 (en)
JPS6128422Y2 (en)
KR940006928Y1 (en) Counter circuit with random initial value
JPH04284717A (en) Pulse generating circuit
SU970367A1 (en) Microprogram control device
SU1547057A2 (en) Frequency divider with variable division ratio
JPH0514186A (en) Pulse width modulation circuit
JP2606262B2 (en) Pulse generation circuit
SU1597875A1 (en) Programmable power source
JPH0372719A (en) Variable frequency dividing circuit