JPS6260315A - Counter circuit - Google Patents

Counter circuit

Info

Publication number
JPS6260315A
JPS6260315A JP20117785A JP20117785A JPS6260315A JP S6260315 A JPS6260315 A JP S6260315A JP 20117785 A JP20117785 A JP 20117785A JP 20117785 A JP20117785 A JP 20117785A JP S6260315 A JPS6260315 A JP S6260315A
Authority
JP
Japan
Prior art keywords
value
counter
load
circuit
period
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP20117785A
Other languages
Japanese (ja)
Inventor
Ryokichi Saga
佐賀 良吉
Taichi Taniguchi
太一 谷口
Atsuko Baba
敦子 馬場
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
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP20117785A priority Critical patent/JPS6260315A/en
Publication of JPS6260315A publication Critical patent/JPS6260315A/en
Pending legal-status Critical Current

Links

Landscapes

  • Pulse Circuits (AREA)

Abstract

PURPOSE:To attain miniaturization of the titled circuit and low power consumption by providing a selection means switching the 1st prescribed setting value temporarily by a special external input signal to the 2nd setting value that is can be given externally. CONSTITUTION:An output of an OR circuit 3 ORing a period load pulse I and an external load pulse J inputted externally becomes a load pulse of a 1/N counter 1. On the other hand, an output of a selection circuit 4 selecting n-set of frequency division load values M and n-set of external phase designation values K is a load value of the 1/N counter 1. When no external load pulse J is inputted to the selection circuit 4, the 1/N counter 1 keeps counting from the frequency division load value M loaded to the 1/N counter 1 by a period load pulse 1 up to the decoded value L. So long as the period is N and the period of the external load pulse J is an integral number of multiple of the N, the external phase designation value K is loaded by the external load pulse J and the period N is unchanged even when the frequency division phase is changed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はディジタル回路でクロック信号を分周して計数
するカウンタ回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a counter circuit that divides and counts a clock signal using a digital circuit.

、  特に、分周位相を外部から変更することができる
カウンタ回路に関する。
In particular, the present invention relates to a counter circuit whose frequency division phase can be changed externally.

〔概要〕〔overview〕

到来するクロック信号を分周するカウンタ回路において
、 一時的に計数設定値を変更することにより、カウンタ回
路の出力の分周位相を変更することができるようにした
ものである。
In a counter circuit that divides the frequency of an incoming clock signal, by temporarily changing the count setting value, the frequency division phase of the output of the counter circuit can be changed.

〔従来の技術〕[Conventional technology]

従来例カウンタ回路の構成を第3図に示す。 FIG. 3 shows the configuration of a conventional counter circuit.

1/Nカウンタ1はクロックHで駆動され、その1本の
カウント出力値とデコード値りとがデコード回路2で比
較される。それらが一致したときには、周期ロードパル
スIが出力され、これが周期Nビットの1/Nカウンタ
1のロードパルスになり、これが入力されたときに分周
ロード値Mがカウンタにロードされる。第4図はこの動
作をタイムチャートで示したもので、第4図(a)はク
ロックHを、第4図(b)は1/Nカウンタのカウント
値を、第4図(C1は同期ロードパルスIを表わす。
A 1/N counter 1 is driven by a clock H, and a decode circuit 2 compares one count output value with a decode value. When they match, a periodic load pulse I is output, which becomes a load pulse for a 1/N counter 1 with a period of N bits, and when this is input, a frequency-divided load value M is loaded into the counter. Figure 4 shows this operation as a time chart. Figure 4 (a) shows the clock H, Figure 4 (b) shows the count value of the 1/N counter, and Figure 4 (C1 shows the synchronous load represents pulse I.

この回路では、デコード値しまたは分周ロード値Mを変
えることにより周期Nを変えることが可能であり、また
デコート値りおよび分周ロード値Mをともに変えること
により周期Nを変えずにカウント範囲を変えることが可
能である。しかし、このような回路構成では、l/Nカ
ウンタ1の周期を変えずに分周位相を変えたい場合には
、クロック■(をクロック禁止パルスGで一時停止させ
、1/Nカウンタ1の動作を一時停止させる。
In this circuit, it is possible to change the period N by changing the decode value or the division load value M, and by changing both the decode value and the division load value M, the count range can be changed without changing the period N. It is possible to change. However, in such a circuit configuration, if you want to change the division phase without changing the cycle of l/N counter 1, clock to pause.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このような従来例回路では、1/Nカウンタ1の周期を
変えずに分周位相を変える場合に、クロックI(は1/
Nカウンタ1のカウント値を検知した後に停止させる必
要があり、さらに1/Nカウンタ1の動作をスタートさ
せるタイミングはカラン値が停止した値に応じてそのつ
ど計算する必要がある。これが起因して、回路規模が大
きくなり、複雑化し、消費電力も大きくなるなどの欠点
が生ずる。
In such a conventional circuit, when changing the division phase without changing the period of 1/N counter 1, clock I (is 1/
It is necessary to stop the N counter 1 after detecting the count value, and furthermore, the timing for starting the operation of the 1/N counter 1 needs to be calculated each time according to the value at which the Callan value is stopped. This results in drawbacks such as increased circuit scale, complexity, and increased power consumption.

本発明はこのような欠点を除去するもので、小規模の回
路の付加により、周期を変えずに分周位相が変えられる
カウンタ回路を提供することを目的とする。
The present invention aims to eliminate such drawbacks, and aims to provide a counter circuit in which the frequency division phase can be changed without changing the cycle by adding a small-scale circuit.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

本発明は、到来するクロック信号につき所定の第一設定
値(L−M)を計数するごとに出力を送出する計数手段
を備えたカウンタ回路において、外部入力信号(J)に
より一時的に上記第一設定値を外部から与えることがで
きる第二設定値(L−K)に切換える選択手段(4)を
備えたことを特徴とする。
The present invention provides a counter circuit equipped with a counting means that sends an output every time a predetermined first setting value (LM) is counted for an incoming clock signal. It is characterized by comprising a selection means (4) for switching one set value to a second set value (L-K) which can be given from the outside.

〔作用〕[Effect]

分周して計数するカウンタ回路の周期を変えずに分周位
相を変える場合に、選択手段を一時的に有効にし、通常
の分周値と異なる値を出力する設定値を計数手段にロー
ドする。
When changing the frequency division phase without changing the period of the counter circuit that divides and counts, temporarily enable the selection means and load a setting value to the counting means that outputs a value different from the normal frequency division value. .

〔実施例〕〔Example〕

以下、本発明実施例回路について図面を参照して説明す
る。
Hereinafter, circuits according to embodiments of the present invention will be described with reference to the drawings.

第1図はこの実施例回路の構成を示すブロック図である
。第2図はこの実施例回路の動作を示すタイムチャー1
・である。
FIG. 1 is a block diagram showing the configuration of this embodiment circuit. Figure 2 is a time chart 1 showing the operation of this embodiment circuit.
・It is.

周jjlNピントの1/Nカウンタ1はクロックHで駆
動され、0本のカウント値を出力する。このカウント出
力値と外部より入力されるデコード値りとを比較するデ
コード回路2は、カウント出力値とデコード値りとが一
致したときに周期ロードパルスIを出力する。周期ロー
ドパルスIと外部より入力される外部ロードパルスJと
の論理和をとるオア回路3の出力は1/Nカウンタlの
ロードパルスになり、一方、0本の分周ロード値Mと0
本の外部位相指定値にとを選択する選択回路4の出力は
1/Nカウンタ1のロード値になる。選択回路4は外部
ロードパルスJが入力されたときに外部位相指定値Kを
l/Nカウンタ1にロードし、それ以外のときに分周ロ
ード値Mを周期ロードパルス■が出力された時点で1/
Nカウンタ1にロードする。
The 1/N counter 1 of the frequency jjlN pin is driven by the clock H and outputs a count value of 0. The decoding circuit 2, which compares this count output value with a decode value input from the outside, outputs a periodic load pulse I when the count output value and the decode value match. The output of the OR circuit 3 which takes the logical sum of the periodic load pulse I and the external load pulse J inputted from the outside becomes the load pulse of the 1/N counter l, while the divided load value M of 0 and the 0
The output of the selection circuit 4 which selects the specified external phase value becomes the load value of the 1/N counter 1. The selection circuit 4 loads the external phase designation value K into the l/N counter 1 when the external load pulse J is input, and otherwise loads the frequency division load value M at the time when the periodic load pulse ■ is output. 1/
Load into N counter 1.

第2図に示されているタイムチャート(al、(b)、
FC+、(d)はそれぞれクロックH1外部ロードパル
スJ、1/Nカウンタ1のロード値およびカウント出力
値および周期ロードパルス■を表わす。また、Nは周期
である。第2図(dlに示されている周期ロードパルス
■の「1」ビットパルスが入力されたときには、第2図
(C)−に示されるようにl/Nカウンタ1には分周ロ
ード値Mがロードされる。その後に第2図(alに示さ
れるクロックHにより分周ロード値Mの値はカウンタア
ップされるが、第2図(b)に示される外部ロードパル
スJの「1」ビットパルスが入力されたときには1/N
カウンタ1に外部位相指定値Kがロードされる。その後
に第2図(a)に示されるクロックHにより外部位相指
定値にの値はカウンタアップされ、カウンタ出力値がデ
コード値しになったときに第2図(d)に示されるよう
に周期ロードパルス■が「1」ピント幅で出力される。
The time chart shown in Fig. 2 (al, (b),
FC+ and (d) represent the clock H1 external load pulse J, the load value and count output value of the 1/N counter 1, and the periodic load pulse ■, respectively. Further, N is a period. When the "1" bit pulse of the periodic load pulse ■ shown in FIG. 2 (dl) is input, the frequency division load value M is loaded. After that, the value of the divided load value M is counted up by the clock H shown in FIG. 2 (al), but the "1" bit of the external load pulse J shown in FIG. 1/N when pulse is input
The external phase designation value K is loaded into the counter 1. After that, the value of the external phase designation value is counted up by the clock H shown in Fig. 2 (a), and when the counter output value becomes equal to the decoded value, the period is increased as shown in Fig. 2 (d). Load pulse ■ is output with a focus width of "1".

ここで、外部ロードパルスJが入力されなかった場合は
、第2図(C1で示されるように1/Nカウンタlは周
期ロードパルス■により1/Nカウンタlにロードされ
た分周ロード値Mからデコード値りまでカウントし続け
る。この周期がNでありかつ外部ロードパルスJの周期
がNの整数倍である限り、外部ロードパルスJで外部位
相指定値Kがロードされて、分周位相が変わっても周期
Nは変わることはない。
Here, if the external load pulse J is not input, the 1/N counter l is the divided load value M loaded into the 1/N counter l by the periodic load pulse The count continues from to the decode value.As long as this period is N and the period of the external load pulse J is an integral multiple of N, the external phase specified value K is loaded by the external load pulse J, and the divided phase is Even if it changes, the period N will not change.

〔発明の効果〕〔Effect of the invention〕

本発明は以上説明したように、1/Nカウンタの位相を
外部から指定できるので、1/Nカウンタのカウント値
を知る必要がなく、またスタートさせるタイミングをカ
ウント値に応じて計算する必要もなくなり、したがって
、回路の小型化および低消費電力化が図れる効果がある
As explained above, in the present invention, the phase of the 1/N counter can be specified externally, so there is no need to know the count value of the 1/N counter, and there is no need to calculate the start timing according to the count value. , Therefore, there is an effect that the circuit can be miniaturized and power consumption can be reduced.

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

第1図は本発明実施例回路の構成を示すブロック構成図
。 第2図は本発明実施例回路の動作を示すタイムチャート
。 第3図は従来例回路の構成を示すブロック構成図。 第4図は従来例回路の動作を示すタイミングチャート。 1・・・1/Nカウンタ、2・・・デコード回路、3・
・・オア回路、4・・・選択回路。
FIG. 1 is a block configuration diagram showing the configuration of a circuit according to an embodiment of the present invention. FIG. 2 is a time chart showing the operation of the circuit according to the embodiment of the present invention. FIG. 3 is a block configuration diagram showing the configuration of a conventional circuit. FIG. 4 is a timing chart showing the operation of the conventional circuit. 1...1/N counter, 2...decoding circuit, 3...
...OR circuit, 4...selection circuit.

Claims (1)

【特許請求の範囲】[Claims] (1)到来するクロック信号につき所定の第一設定値(
L−M)を計数するごとに出力を送出する計数手段 を備えたカウンタ回路において、 外部入力信号(J)により一時的に上記第一設定値を外
部から与えることができる第二設定値(L−K)に切換
える選択手段(4) を備えたことを特徴とするカウンタ回路。
(1) A predetermined first setting value (
In a counter circuit equipped with a counting means that sends out an output every time LM) is counted, a second setting value (L A counter circuit characterized in that it comprises a selection means (4) for switching to -K).
JP20117785A 1985-09-10 1985-09-10 Counter circuit Pending JPS6260315A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20117785A JPS6260315A (en) 1985-09-10 1985-09-10 Counter circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20117785A JPS6260315A (en) 1985-09-10 1985-09-10 Counter circuit

Publications (1)

Publication Number Publication Date
JPS6260315A true JPS6260315A (en) 1987-03-17

Family

ID=16436630

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20117785A Pending JPS6260315A (en) 1985-09-10 1985-09-10 Counter circuit

Country Status (1)

Country Link
JP (1) JPS6260315A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0389349U (en) * 1989-12-28 1991-09-11

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0389349U (en) * 1989-12-28 1991-09-11

Similar Documents

Publication Publication Date Title
JP2745869B2 (en) Variable clock divider
JPH07101847B2 (en) Digital Phase Locked Loop Device
WO1993013601A1 (en) High resolution digitally controlled oscillator
JP2001136059A (en) Prescaler and pll circuit
JPH1117531A (en) Digital delay circuit and digital pll circuit
JPS6260315A (en) Counter circuit
US5175482A (en) Stepping motor control circuit
US4837721A (en) Digital divider with integer and fractional division capability
JPS5931894B2 (en) Polyphase MOS circuit
KR0139982B1 (en) Digital pll synthesizer
KR200164990Y1 (en) 50% duty odd frequency demultiplier
JP2003174359A (en) Variable frequency division ratio type odd frequency division circuit
JPS6030135B2 (en) A/D/D/A converter of PCM transmission equipment
JPS61243527A (en) Bit buffer circuit
US4749929A (en) Interlocked state machines
JPH0553610A (en) Sequencer
SU1403325A1 (en) Device for controlling two-phase electric motor
JPH07135469A (en) D/a converter
JPH1038548A (en) Displacement measuring instrument
JP2679471B2 (en) Clock switching circuit
SU566250A1 (en) Stepping motor control circuit
JPS6379421A (en) Odd number frequency divider
JPH0244557A (en) Capstan servo device
JPS61288574A (en) Synchronous separation circuit
JPH0276414A (en) Variable frequency dividing circuit