JPS60257625A - Counter circuit - Google Patents

Counter circuit

Info

Publication number
JPS60257625A
JPS60257625A JP11432084A JP11432084A JPS60257625A JP S60257625 A JPS60257625 A JP S60257625A JP 11432084 A JP11432084 A JP 11432084A JP 11432084 A JP11432084 A JP 11432084A JP S60257625 A JPS60257625 A JP S60257625A
Authority
JP
Japan
Prior art keywords
counter
signal
output
counters
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.)
Pending
Application number
JP11432084A
Other languages
Japanese (ja)
Inventor
Kazuhiro Kusuda
和弘 楠田
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
NEC Corp
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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP11432084A priority Critical patent/JPS60257625A/en
Publication of JPS60257625A publication Critical patent/JPS60257625A/en
Pending legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

PURPOSE:To output a count value of a clock signal while dividing it N-time by x-bit each by inputting an AND value of carry outputs of the 1st-(i-1)th counters to the 2nd enable terminal of the 1-th counter. CONSTITUTION:A value of an output signal 7 of a counter A is ''0'' when a 1/3 frequency division signal 2 is at a low level. When the 1/3 frequency division signal 2 goes to a high level, ''0'' is loaded, and the counter a counts up and the value of the output signal 7 of the counter A changes from ''0'' to ''1''. Since the 1/3 frequency division signal 2 goes to a low level during two clocks afterward, the value of the output signal 7 of the counter A remains ''0'' and unchanged. When the 1/3 frequency division signal 2 goes to a high level, a value ''1'' of the preceding output signal 7 is fed back and becomes an input to the counter A, loaded and then counted up, then the value of the output signal of the counter A changes from ''1'' to ''2''. Then the counter is counted up at three clocks each.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、クロック信号を計数する計数回路に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a counting circuit that counts clock signals.

特に、計数値のヒツト数が計数回路の出カビノド数以−
Lの場合に、セレクト回路によらず簡単な回路で計数値
n−y(y<2”・X、y、xは自然数)に対してyを
Xビット単位に0回に分割して出力する計数回路に関す
る。
In particular, if the number of hits of the count value is greater than the number of output nodes of the counting circuit.
In the case of L, divide y into X bit units 0 times and output it for the count value ny (y <2"・X, y, x are natural numbers) using a simple circuit without using a select circuit. Regarding counting circuits.

〔従来の技術〕[Conventional technology]

クロックを計数して計数値を出力するとき、計数回路の
出力がXビZ)に限られるとXヒ・ノドより計数値のビ
ット数が大である場合には、計数値を分割して出力しな
ければならない。ずなわち、Xビット出力計数器をn個
備えた計数回路であれば計数値のピッ1−数は最大n’
xヒツトとなり、セレクト回路によってXビットずつ0
回に分割して出力することができる。このような回路に
おいて、nの値が大きくなると、計数値の多数分割が必
要となり、セレクト回路も複雑なものとなる欠点があっ
た。
When counting clocks and outputting the counted value, if the output of the counting circuit is limited to Must. In other words, if the counting circuit is equipped with n X-bit output counters, the number of pins of the count value is at most n'
x hits, and the select circuit sets each x bit to 0.
It can be divided into parts and output. In such a circuit, when the value of n becomes large, it becomes necessary to divide the count value into many parts, and the selection circuit becomes complicated.

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

本発明は、セレクト回路を用いずにクロック信号の計数
値をXビ、トずつ0回に分割して出力する計数回路を提
供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a counting circuit that divides a count value of a clock signal into 0 times by X bits and 0 times and outputs the divided values without using a select circuit.

〔問題点を解決するための手段〕 本発明は、入力するクロック信号の立上がりと立下がり
とに対応してパルス信号を生成するパルス生成手段と、
上記クロック信号を1/n (nは2以上の整数)分周
した信号を発生ずる分周手段と、上記パルス生成手段の
出力信号がそれぞれクロック端子に接続され、上記分周
手段の出力信号がそれぞれ第一のイネーブル端子に接続
され、−り記クロック信号がそれぞれロード端子に接続
されたn個の計数器とを備え、」孔開n個の計数器の・
うちの第1番目のd1数器の計数出力が出力端子に接続
されるとともに分岐されて上記n個の計数器のうちの第
n番目の計数器の並列ロード入力に接続され、上記n個
の計数器のうぢの第1番目の計数器(iは2からnまで
の整数)の計数出力がそれぞれ第i−1番目の計数器の
並列ロード入力に接続され、上記第1番目の計数器の第
二のイネーブル端子には上記分周手段の出力信号が接続
され、−h起筆i番目の計数器(jは2からnまでの整
数)の第二のイネーブル端子にはそれぞれ第1番目から
第i−]番l]までの各計数器のキャリ出力の論理積が
接続され、上記n個の計数器はそれぞれ、第一のイネー
ブル端子と第二の・イネーブル端子との論理積でイネー
ブル状態となるように構成されたごとを特徴とする。
[Means for Solving the Problems] The present invention provides pulse generation means for generating pulse signals in response to rising and falling edges of an input clock signal;
A frequency dividing means for generating a signal obtained by dividing the frequency of the clock signal by 1/n (n is an integer of 2 or more) and an output signal of the pulse generating means are respectively connected to a clock terminal, and the output signal of the frequency dividing means is connected to a clock terminal. n counters each connected to a first enable terminal and having a clock signal respectively connected to a load terminal;
The count output of the first d1 counter is connected to the output terminal and branched to the parallel load input of the n-th counter among the n counters. Count outputs of the first counter (i is an integer from 2 to n) of the counters are respectively connected to parallel load inputs of the i-1th counter, and The output signal of the frequency dividing means is connected to the second enable terminal of -h, and the second enable terminal of the i-th counter (j is an integer from 2 to n) is connected to the output signal of the frequency dividing means. The logical product of the carry outputs of the respective counters up to the number i-]th number l] is connected, and each of the n counters is enabled by the logical product of the first enable terminal and the second enable terminal. It is characterized by being configured so that.

〔作 用〕[For production]

本発明は、n個のXビ・7ト計数器において、ロード端
子に入力するクロック信号がローレヘルのときは、クロ
ック端子に入力するパルス信号の立−]−がりのタイミ
ングにおいて、第1番目の記数器の出力信号が第n番目
の計数器にロートされ1、第1番目以外の計数器の出力
信号はそれぞれ前段の計数器にロートされる。ロート端
子に入力するクロック信号がハイレヘルのときは、クロ
ック端子に入力するパルス信号の立上がりのタイミング
において、第1番l]の計数器の第一および第二のイネ
ーブル端子に入力する1/n分周信号がハイレヘルの場
合には第1番目の計数器にロートされた値がカウントア
ツプされ、また第1番目以外の計数器の第一のイネーブ
ル端子に入力する1 / n分周信号および第一のイネ
ーブル端子己こ入力する第1番目から前段までの各計数
器のキャリ信号の論理積がともにハイレヘルの場合には
、その計数器にロードされた値がカウントアツプされる
。上述のようにパルス信号を計数器りし1ツクとして1
/n分周信号を周期として計数し、計数値を各計数器間
で循環することにより、第1番目の計数器から計数値を
Xビットずつ0回に分割して出力することができる。
In the present invention, in n X-bit/7-bit counters, when the clock signal input to the load terminal is low level, the first The output signal of the counter is loaded to the n-th counter and the output signals of the counters other than the first are loaded to the counters in the previous stage. When the clock signal input to the rotor terminal is high level, at the timing of the rise of the pulse signal input to the clock terminal, the 1/n minute input to the first and second enable terminals of the counter 1] When the frequency signal is high level, the value loaded into the first counter is counted up, and the 1/n frequency divided signal input to the first enable terminal of the counters other than the first and the first If the logical product of the carry signals of the counters from the first to the previous stage inputted to the enable terminal of the counter is both high level, the value loaded into the counter is counted up. As mentioned above, the pulse signal is converted into a counter and one count is 1.
By counting the /n frequency-divided signal as a period and circulating the counted value between each counter, the counted value can be divided 0 times by X bits from the first counter and output.

〔実施例〕〔Example〕

本発明の実施例について図面を参照して説明する。 Embodiments of the present invention will be described with reference to the drawings.

第1図は本発明−実施例計数回路のフロック構成図であ
り、計数器が3個、出力ピノ]・数4ヒノ1〜の場合を
示す。計数するクロック信号1が計数器A、B、Cのそ
れぞれのロート端、7−1−に接続され、また1/3分
周回路りおよびパルス生成回路Eに接続される。1/3
分周回路りがらクロック信号1を1/3分周信号した1
クロック信号幅の1/3分周信号2が計数器A、B、C
のイネーブル端子EPにそれぞれ接続され、また君1数
器へのイネーブル端子F、 Tに接続される。パルス生
成回路Eからクロック信号1の立上がりと立下がりに対
応したパルス信月3が計数器A、R,Cのクロック端7
−CKに接続される。計数器Aのキャリ端子CYから4
−ヤリ信号4が計数器Bのイネーブル入力ETおよびア
ンド回路Fの一方の入力に接続される。計数器Bのキャ
リ端子CYからキャリ信号5が」−記アント回路Fの他
の入力に接続される。
FIG. 1 is a block block diagram of a counting circuit according to an embodiment of the present invention, and shows the case where there are three counters and the output number is 4. A clock signal 1 for counting is connected to the rotor ends 7-1- of each of the counters A, B and C, and also to a 1/3 frequency divider circuit and a pulse generator circuit E. 1/3
The frequency divider circuit divides the clock signal 1 into a 1/3 frequency signal.
The clock signal width divided by 1/3 signal 2 is sent to counters A, B, and C.
are connected to the enable terminals EP of the terminals, respectively, and are also connected to the enable terminals F and T of the digitizer. Pulse signals 3 corresponding to the rising and falling edges of clock signal 1 from pulse generation circuit E are sent to clock ends 7 of counters A, R, and C.
- Connected to CK. 4 from carry terminal CY of counter A
- Yari signal 4 is connected to enable input ET of counter B and to one input of AND circuit F; A carry signal 5 from the carry terminal CY of the counter B is connected to the other input of the ant circuit F.

アンド回路Fの出力信号6は計数器Cのイネ−フル端子
ETに接続される。計数器への出力信号7が図外に出力
され、また分岐され計数hGに接続される。計数器Bの
出力信号8ば計数器Aに接続され、計数器Cの出力信号
9は計数器Bに接続される。
The output signal 6 of the AND circuit F is connected to the enable terminal ET of the counter C. The output signal 7 to the counter is output outside the figure, and is also branched and connected to the counter hG. The output signal 8 of counter B is connected to counter A, and the output signal 9 of counter C is connected to counter B.

このような構成の計数回路の動作について説明する。第
1図において、計数器A−Cにはそれぞれクロック信号
1、]、/3分周信号2、パルス信号3が入力され、さ
らに計数器Aには計数器Bの出力信号8、計数器Bには
計数器Cの出力信号9および酊数器Aからのキャリ信号
4、計数器Cには計数器Aの出力信号7およびアンド回
路の出力信号6が人力される。この計数回路でば、ロー
ト端子I7の1月がローレベルの場合には、クロックv
=子GKの信号の立−にがりのタイミングにおいて各計
数器A、[う、Cの出力信号7.8.9がそれぞれ前段
の計数器C,A、Bにロードされ、ロード端子りの信号
がハイレベルの場合には、クロ。
The operation of the counting circuit having such a configuration will be explained. In FIG. 1, clock signals 1, ], /3 frequency-divided signals 2, and pulse signals 3 are input to counters A to C, respectively, and counter A receives an output signal 8 of counter B, and counter B The output signal 9 of the counter C and the carry signal 4 from the multiplier A are input to the counter C, and the output signal 7 of the counter A and the output signal 6 of the AND circuit are input to the counter C. In this counting circuit, when the January of the rotor terminal I7 is at a low level, the clock v
=At the timing of the rising edge of the child GK signal, the output signals 7, 8, and 9 of each counter A, C are loaded into the preceding stage counters C, A, and B, respectively, and the signal at the load terminal becomes For high levels, black.

り端子CKの信号の立上がりのタイミングにおいて、計
数器A、B、Cのイネーブル端子BP、ETの信号がと
もにハイレベルであれば各計数器△、B、Cにロードさ
れた値がカウントアツプされる。
If the signals at the enable terminals BP and ET of counters A, B, and C are all at high level at the rising timing of the signal at terminal CK, the values loaded into each counter △, B, and C are counted up. Ru.

第1図において、計数器へに着目すると、1z3分周信
号2がローレベルの間は51数器への出力信号7の値は
Ono (16進表現)のまで、1z3分周信号2がハ
イレベルとなるとタイミング(1)て0□、がロードさ
れ、タイミング(2)でカランl−アップされ計数R’
AAの出力信号7の値はOfil から1(H)に変わ
る。このあと2クロツクの間は1z3分周信号2はロー
レベルなので計数器への出力1月7の値は0 (Ill
 のまま変化しない。次に1z3分周信号2がハイレベ
ルとなったときに、前回の出力信号7の値ILIL、が
フィードバックされ計数器Aの入力となり、タイミング
(3)で1 ol、がロードされカウントアツプされる
ので計数器Aの出力信号7の値は1.Hlから2□、と
なる。以後も3クロツクごとにカウントアツプされるの
で、計数器への出力信号7の値はクロック信号1の文士
“がりのタイミングで見ると、 ■(旧、0Tl11.0(sz2on、0011.Oく
5z3(IO・0(旧、 0 〈s+ ;’−と続く。
In Fig. 1, focusing on the counter, while the 1z3 frequency division signal 2 is low level, the value of the output signal 7 to the 51 counter will be Ono (hexadecimal expression), and the 1z3 frequency division signal 2 will be high. When the level is reached, 0□ is loaded at timing (1), and at timing (2), it is counted up and counted R'.
The value of the output signal 7 of AA changes from Ofil to 1 (H). For the next two clocks, the 1z3 frequency division signal 2 is at low level, so the value of January 7 output to the counter is 0 (Ill
It remains unchanged. Next, when the 1z3 frequency division signal 2 becomes high level, the value ILIL of the previous output signal 7 is fed back and becomes the input to the counter A, and at timing (3), 1ol is loaded and counted up. Therefore, the value of output signal 7 of counter A is 1. From Hl, it becomes 2□. Since it continues to be counted up every three clocks, the value of the output signal 7 to the counter is as follows: (IO・0 (old, followed by 0 <s+;'-.

次にtl¥I器B、Cによる繰上かりについて説明する
。第3図は計数器(T3)に繰−1=がりがある場合の
各部分の信号のタイムチャートである。第3図において
、計数器AにF++n がロードされると、計数器Aの
キャリ18号4が出力され計数器Bのイネーブル端子E
Tがハイレベルとなるため、計数器Aの出力信号7の値
がF (Hl からoflll と変わると同時に、計
数器Bの出力信号8の値もO(Mlからl (Ill 
にカウントアツプされる。
Next, the carrying by tl\I units B and C will be explained. FIG. 3 is a time chart of the signals of each part when the counter (T3) has a repeat of -1. In FIG. 3, when F++n is loaded into counter A, carry No. 18 of counter A is output and enable terminal E of counter B is output.
Since T becomes high level, the value of the output signal 7 of the counter A changes from F (Hl to ofllll), and at the same time, the value of the output signal 8 of the counter B also changes from O(Ml to l (Ill
will be counted up.

第4図は31数器(C)に繰上がりがある場合の各部分
の信号のタイムチャートである。第4図において、上述
のように、計数器A、BにF(Ill がロードされる
とそれぞれの計数器A、Bよりキャリ信号4.5が出力
されるので、計数器Cのイネーブル端子ETかハイレベ
ルとなり、計数器A、Bの出力信−号7.8の値がF(
Illから00.。と変わると同時に、計数器Cの出力
信号9の稙も0(。
FIG. 4 is a time chart of the signals of each part when there is a carry in the 31 number unit (C). In FIG. 4, as mentioned above, when counters A and B are loaded with F(Ill), each counter A and B outputs a carry signal of 4.5, so the enable terminal ET of counter C is becomes high level, and the value of the output signal 7.8 of counters A and B becomes F(
Ill to 00. . At the same time, the value of the output signal 9 of the counter C also changes to 0 (.

から1.、)にカウントアンプされる。From 1. ,) is counted and amplified.

以上のように各計数器A、B、Cでカウントされた値は
1り「1ツクごとにフィードバックしていくので、計数
器への出力信号7をクシ】/り信号1の立下がりのタイ
ミングで見ると、 1 on、 0 (旧・On(); 2 no、 Of
lll、 0 を旧 ;; F (Ill、 OfIl
l、 O(Hl+0 (Ill、 I (Ill、 O
no:; F (111,F (1゜、OfIll;O
on、 1 +H目となり、3クロ・ツクおきに出力が
カウントアツプされた信号を得ることができる。
As mentioned above, the values counted by each counter A, B, and C are 1. Since the values are fed back every 1 count, the output signal 7 to the counter is 1/2 The timing of the falling edge of signal 1 If you look at it, 1 on, 0 (old On(); 2 no, Of
F (Ill, OfIl
l, O(Hl+0 (Ill, I (Ill, O
no:;F (111,F (1゜,OfIll;O
On, it becomes 1+H, and a signal in which the output is counted up every three clocks can be obtained.

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

以北説明したように、本発明は、セレクト回路を用いず
に、クロック信号の計v!、値をXヒツトずつN回に分
割して出力することができる優れた効果がある。したが
って回路を簡単にすることができる利点がある。
As explained above, the present invention allows the total v! , the value can be divided N times by X hits and output. Therefore, there is an advantage that the circuit can be simplified.

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

第1図は本発明一実施例計数回路の゛フロック構成図。 第2図はその各部分の信号のタイムチャー1〜。 第3図はその計数器(B)に繰上がりがある場合の各部
分の信号のタイムチャート。 第4図はその計数器(C) に繰」二がりがある場合の
各部分の信号のタイムチャート。 1・・・クロック信号、2・・・1/3分周信号、3・
・・パルス信号、4.5・・・キャリ信号、6・・・ア
ンド回路出力信号、7・・・計数器への出力信号、8・
・・計数器Bの出力信号、9・・・計数器Cの出力信号
、A、B、C・・・計数器、D・・・1/3分周回路、
E・・・パルス生成回路。 特許比)願人 日木電気株式会社 代理人 弁理士 井 出 直 孝
FIG. 1 is a block diagram of a counting circuit according to an embodiment of the present invention. FIG. 2 shows time charts 1 to 1 of the signals in each part. FIG. 3 is a time chart of the signals of each part when there is a carry in the counter (B). Figure 4 is a time chart of the signals of each part when the counter (C) has an overrun. 1... Clock signal, 2... 1/3 frequency divided signal, 3...
... Pulse signal, 4.5... Carry signal, 6... AND circuit output signal, 7... Output signal to counter, 8.
... Output signal of counter B, 9... Output signal of counter C, A, B, C... counter, D... 1/3 frequency divider circuit,
E...Pulse generation circuit. Patent ratio) Applicant: Hiki Electric Co., Ltd. Representative Patent attorney: Naotaka Ide

Claims (1)

【特許請求の範囲】[Claims] (1) 入力するクロック信号の立上がりと立下がりと
に対応してパルス信号を生成するパルス生成手段と、 上記クロック信号を1/n(nは2以上の整数)分周し
た信号を発生ずる分周手段と、 上記パルス生成手段の出力信号がそれぞれクロック端子
に接続され、上記分周手段の出力信号がそれぞれ第一の
イネーブル端子に接続され、上記クロ、り信号がそれぞ
れロード端子に接続されたn個の計数器と を備え、 上記n個の計数器のうちの第1番目の計数器の計数出力
が出力端子に接続されるとともに分岐されて上記n個の
計数器のうちの第n番目の旧数器の並列ロード入力に接
続され、 」孔開n個の計数器のうちの第i番目の計数器(iは2
からnまでの整数)の計数出力がそれぞれ第i−1番目
の81数器の並列ロード人力に接続され、上記第1番目
の計数器の第二のイネーブル端子には上記分周手段の出
力信号が接続され、上記第i番目の計数器(iは2から
nまでの整数)の第二のイネーブル端子にはそれぞれ第
1番目から第i−1番目までの各計数器のキャリ出力の
゛論理積が接続され、 上記n″個のn1数器はそれぞれ、第一のイネーブル端
子と第二のイネーブル端子との論理積でイネーブル状態
となるように構成された ことを特徴とする計数回路。
(1) Pulse generating means that generates pulse signals in response to the rising and falling edges of an input clock signal, and a pulse generating means that generates a signal obtained by dividing the frequency of the clock signal by 1/n (n is an integer of 2 or more). The frequency dividing means and the output signals of the pulse generating means are each connected to a clock terminal, the output signals of the frequency dividing means are each connected to a first enable terminal, and the black and red signals are respectively connected to a load terminal. n counters, the counting output of the first counter of the n counters is connected to the output terminal and branched to the n-th counter of the n counters. is connected to the parallel load input of the old counter of ``hole-hole n counters (i is 2
The counting outputs of the (integers from to n) are respectively connected to the parallel load input of the i-1th 81 counter, and the output signal of the frequency dividing means is connected to the second enable terminal of the first counter. is connected to the second enable terminal of the i-th counter (i is an integer from 2 to n), and the logic of the carry output of each of the first to i-1th counters is connected to the second enable terminal of the i-th counter (i is an integer from 2 to n). A counting circuit characterized in that products are connected, and each of the n'' n1 counters is configured to be enabled by a logical product of a first enable terminal and a second enable terminal.
JP11432084A 1984-06-04 1984-06-04 Counter circuit Pending JPS60257625A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11432084A JPS60257625A (en) 1984-06-04 1984-06-04 Counter circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11432084A JPS60257625A (en) 1984-06-04 1984-06-04 Counter circuit

Publications (1)

Publication Number Publication Date
JPS60257625A true JPS60257625A (en) 1985-12-19

Family

ID=14634890

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11432084A Pending JPS60257625A (en) 1984-06-04 1984-06-04 Counter circuit

Country Status (1)

Country Link
JP (1) JPS60257625A (en)

Similar Documents

Publication Publication Date Title
JPS6243568B2 (en)
US4236114A (en) Apparatus for generating pulse width modulated waves
JPS63151217A (en) Frequency divider circuit whose output frequency is partly missing
JPS585540B2 (en) Tajiyuka Cairo
US5127036A (en) Fifty percent duty cycle divided-by-m counter
JPS60257625A (en) Counter circuit
US4471310A (en) Pulse generator having variable pulse occurrence rate
JP2659186B2 (en) Digital variable frequency divider
JP3125651B2 (en) Rate generator
JP3435751B2 (en) Divider
JPH03171820A (en) 2n-1 frequency dividing circuit
JP2689539B2 (en) Divider
US4574385A (en) Clock divider circuit incorporating a J-K flip-flop as the count logic decoding means in the feedback loop
JP2757714B2 (en) Frame pulse generation circuit
JP3514020B2 (en) Rate generator
JPH0786923A (en) Frequency divider circuit
GB785568A (en) Improvements in or relating to frequency divider circuits
JPH04287420A (en) Digital circuit for dividing frequency into odd number fraction
JPH0683066B2 (en) Counter circuit
JPS62176219A (en) Counter circuit
JPS6117634Y2 (en)
JPH0884069A (en) Variable frequency divider
JPH0454726A (en) 1/n frequency dividing circuit
JPH04287520A (en) Counter
JPH034618A (en) Clock frequency division circuit