JPS60127819A - Binary counter - Google Patents

Binary counter

Info

Publication number
JPS60127819A
JPS60127819A JP23666483A JP23666483A JPS60127819A JP S60127819 A JPS60127819 A JP S60127819A JP 23666483 A JP23666483 A JP 23666483A JP 23666483 A JP23666483 A JP 23666483A JP S60127819 A JPS60127819 A JP S60127819A
Authority
JP
Japan
Prior art keywords
terminal
gate
counter
flip
flop
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
JP23666483A
Other languages
Japanese (ja)
Other versions
JPH0220175B2 (en
Inventor
Saiji Kunihira
宰司 國平
Hiroshi Mizuguchi
博 水口
Tadashi Yoshino
正 吉野
Norihide Kinugasa
教英 衣笠
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 Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP23666483A priority Critical patent/JPS60127819A/en
Publication of JPS60127819A publication Critical patent/JPS60127819A/en
Publication of JPH0220175B2 publication Critical patent/JPH0220175B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

PURPOSE:To decrease the number of elements by constituting the two stages of the most significant digit of a binary counter which is made up of plural number of cascade connections of FFs having set/reset function with NAND gates 601, 602 and inverters so as to simplify the most significant digit unit stage. CONSTITUTION:The binary counter 700 is constituted by connecting the FF100- 500 having the set reset function and applying a trigger signal to the next stage in a form of a differentiation pulse and an FF600 comprising the NAND gates 601, 602 and the inverters 603, 604 in cascades. The 1st input terminal of a coincidence gate 601 of the FF600 is connected to a trigger signal terminal P of the FF500, its output is given to the 1st input terminal of a coincidence gate 602, an output of the gate 602 is given to the 2nd input terminal of the gate 601 and the 2nd input terminal of the gate 602 is connected to a reset terminal R of the FF100-500. An output of the inverter 604 is given to a feedback terminal F of an FF5. A clock signal is applied to a terminal 7 and a program value of each bit inputted to a set terminal S of each FF is applied to terminals 17-21.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は信号の周期などをディジタル的に測定するのに
用いることができるバイナリ−カウンタに関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a binary counter that can be used to digitally measure the period of a signal.

従来例の構成とその問題点 従来のこの種のバイナリ−カウンタを第1図に示す。こ
れを説明すると、1.2,3,4,5゜6はそれぞれセ
ント機能る有する7リツプ70ツブで各単位ステージを
縦続接続してバイナリ−カウンタ16(ここではバイナ
リ−ダウンカウンタ)を構成しCいる。7はバイナリ−
ダウンカウンタ16の最下位ビット(LSB)のフリッ
プフロップ1のクロック端子CLに接続されたクロック
信号入力端子、8はフリップフロップ1〜6のそれぞれ
のセット端子Sに接続された共通のセット信号入力端子
、9〜14は各フリップフロップのデータ端子りに接続
されたプログラム端子で、各ビットのプログラム値が印
加される。
1. Construction of a conventional example and its problems A conventional binary counter of this type is shown in FIG. To explain this, 1, 2, 3, 4, and 5°6 each have a cent function, and each unit stage is connected in cascade with 7 lips and 70 tubes to form a binary counter 16 (in this case, a binary down counter). There is C. 7 is binary-
A clock signal input terminal connected to the clock terminal CL of the flip-flop 1 of the least significant bit (LSB) of the down counter 16, and 8 a common set signal input terminal connected to the set terminals S of each of the flip-flops 1 to 6. , 9 to 14 are program terminals connected to the data terminals of each flip-flop, to which the program value of each bit is applied.

以上のように構成された従来のバイナリ−カウンタにつ
いて以下その動作を説明する。例えば。
The operation of the conventional binary counter configured as described above will be explained below. for example.

カウンタ16にプログラム値が2進数で最上位ビット(
bjSB)側から最下位ビン) (LSB )側に向か
って(000101)であったとすると。
The program value is stored in the counter 16 as a binary number with the most significant bit (
Suppose that it is (000101) from the bjSB) side to the lowest bin) (LSB) side.

この値からダウンカウントが行なわれる。ダウンカウン
トが行なわれ、カウンタ15のカウント値がMSBから
LSB側に向かって〔1ooOO0〕となった後、さら
にクロック信号入力端子7からクロック信号が入力され
ると、カウンタ15のカウント値はMSBからLSB側
に向かって(011111)となる。すなわち、カウン
タ15のMSBのフリップフロップ6の非反転出力は・
・0・・から” 1 ”、” 1 ”から”Q”−、と
2回反転したことになる。従って、カウンタは同じカウ
ント値を2回通過することになる。しかしながら、例え
ばカウンタを用いて測定信号の周期を測定する場合2通
常カウンタのカウント値と測定信号の1周期とが1対1
に対応しており、カウンタが2回以上同じカウント値に
なることはない。従って。
A down count is performed from this value. After down-counting is performed and the count value of the counter 15 becomes [1ooOO0] from the MSB to the LSB side, when a clock signal is further input from the clock signal input terminal 7, the count value of the counter 15 changes from the MSB to the LSB side. It becomes (011111) toward the LSB side. That is, the non-inverted output of the MSB flip-flop 6 of the counter 15 is
・0... to "1" and "1" to "Q"-, which means that it has been reversed twice. Therefore, the counter will pass through the same count value twice. However, for example, when measuring the period of a measurement signal using a counter, the count value of the counter and one period of the measurement signal are usually 1:1.
The counter will never reach the same count value more than once. Therefore.

カウンタのMSHのフリップ70ツブはセットされた値
から1度反転すればさらに反転するようなことはない。
Once the MSH flip 70 of the counter is inverted once from the set value, it will not be inverted any further.

以上のように、カウンタ15のMSBのフリップフロッ
プ6はカウンタ15の他の7リノプフロソプト5のよう
にトリガ信号入力に対して必ず出力信号が現在の出力状
態の反転出力になるという必要はなく、単にトリガ信号
入力に対して、現在の出力状態から一度だけ反転すれば
よい。従って、カウンタ15のMSBのフリップフロッ
プ6はカウンタ15を構成している他のフリップフロッ
プ1〜5と同じ構成にする必要はなく、より簡単な構成
にすることが可能である。ディジタル集積回路ではカウ
ンタが多く用いられており、カウンタの占めるチップ面
積は非常に大きなものとなる。従って、カウンタの構成
をできるだけ簡単にし、集積回路でのカウンタ部の占め
るチップ面積を必要最小限にしなければならない。
As described above, the MSB flip-flop 6 of the counter 15 does not necessarily have to output an inverted output of the current output state in response to a trigger signal input, unlike the other 7 Rinopflosopts 5 of the counter 15. It is only necessary to invert the current output state once in response to the trigger signal input. Therefore, the MSB flip-flop 6 of the counter 15 does not need to have the same configuration as the other flip-flops 1 to 5 making up the counter 15, and can have a simpler configuration. Counters are often used in digital integrated circuits, and the chip area occupied by the counters is extremely large. Therefore, the configuration of the counter must be made as simple as possible, and the chip area occupied by the counter section in the integrated circuit must be minimized.

発明の目的 本発明の目的はカウンタの最上位の単位ステージの構成
を簡単にすることにより、カウンタを構成する素子数を
削減するとともに、カウンタ部の占めるチップ面積を小
さくすることができるバイナリ−カウンタを提供するこ
とである。
OBJECTS OF THE INVENTION An object of the present invention is to provide a binary counter in which the number of elements constituting the counter can be reduced and the chip area occupied by the counter section can be reduced by simplifying the configuration of the topmost unit stage of the counter. The goal is to provide the following.

発明の構成 本発明のバイナリ−カウンタは、セット、リセット機能
を有するとともに2次段へのトリガ信号を微分パルスで
供給する手段を有するフリップフロップと、前記フリッ
プフロップの次段へのトリガ信号端子を第1の一致ゲー
トの第1の入力端子に接続し、第2の一致ゲート出ヵ端
子を前記第1の一致ゲートの第2の入力端子に接続し、
前記第2の一致ゲートの第1の入力端子に前記第1の一
致ゲートの出力端子を接続し、前記第2の一致ゲートの
第2の入力端子に前記フリップフロップのリセット端子
を接続したフリップフロップをバイナリ−カウンタの最
上位側の2段となるようにバイナリ−カウンタを構成し
てたものであり、これによりバイナリ−カウンタの最上
位の単位ステージを簡単な構成にすることができ、集積
回路におけるバイナリ−カウンタの占有面積を小さくさ
せるものである。
Structure of the Invention The binary counter of the present invention includes a flip-flop having set and reset functions and means for supplying a trigger signal to the secondary stage in the form of a differential pulse, and a trigger signal terminal to the next stage of the flip-flop. connecting a first input terminal of a first match gate, and connecting a second match gate output terminal to a second input terminal of the first match gate;
a flip-flop, wherein an output terminal of the first coincidence gate is connected to a first input terminal of the second coincidence gate, and a reset terminal of the flip-flop is connected to a second input terminal of the second coincidence gate. The binary counter is configured such that the top two stages of the binary counter are the top two stages of the binary counter.This allows the top unit stage of the binary counter to have a simple configuration, and it can be integrated into an integrated circuit. This reduces the area occupied by the binary counter.

実施例の説明 以下、本発明の実施例について図面を参〆しながら説明
する。
DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments of the present invention will be described with reference to the drawings.

第2図は本発明の一実施例に係るバイナリ−カウンタで
ある。第2図において、100〜5o○はセント、リセ
ット機能を有するとともに、次段へのトリガ信号を微分
パルスで供給する手段を有するノリツブフロップであり
、600はNANDゲート601.602とインバータ
603 、604からなり、N A N Dゲートeo
1.eo2はR−Sフリップフロップを構成し、セット
端子には前記フリップフロップ500のトリガ信号出力
端子が接続され、リセット端子には前記フリップフロッ
プ100〜500のリセット端子に共通に接続されてい
るカウンタのリセット端子16が接続されている。イン
バータ603.604はフリップ70ツブSOOへの帰
還信号をつくるためのものである。7リツプフロツプ1
00〜600を縦続接続して6ビツトのバイナリ−カウ
ンタ了。0(ここではバイナリ−ダウンカウンタ)を構
成している。7はバイナリ−カウンタ700の最下位ビ
ット(LSB)の7リツプフロツプ100のクロック端
子CLに接続されたクロック信号入ヵ端丞16はフリッ
プフロップ100〜600のそれぞれのリセット端子に
接続された共通のりセント信号入力端子、17〜21は
フリップフロップ100〜500のセット端子Sに接続
されたプログラム端子で、各ビットのプログラム値が印
加される。
FIG. 2 shows a binary counter according to one embodiment of the present invention. In FIG. 2, reference numerals 100 to 5o○ are Noritubu flops having cent and reset functions and means for supplying a trigger signal to the next stage as a differential pulse, and 600 is a NAND gate 601, 602, an inverter 603, Consisting of 604, N A N D gate eo
1. eo2 constitutes an R-S flip-flop, its set terminal is connected to the trigger signal output terminal of the flip-flop 500, and its reset terminal is connected to the counter terminal commonly connected to the reset terminals of the flip-flops 100 to 500. A reset terminal 16 is connected. Inverters 603 and 604 are for creating a feedback signal to flip 70 tube SOO. 7 lip flop 1
00 to 600 are connected in cascade to create a 6-bit binary counter. 0 (in this case, a binary down counter). 7 is the least significant bit (LSB) of the binary counter 700; 7 is a clock signal input terminal connected to the clock terminal CL of the flip-flop 100; and 16 is a common terminal connected to the reset terminal of each of the flip-flops 100-600. Signal input terminals 17-21 are program terminals connected to the set terminals S of the flip-flops 100-500, to which the program value of each bit is applied.

第3図はフリップフロップ100の一具体的構成図であ
り、N A N Dゲート101〜106によって1ビ
ツト目の単位ステージが構成されており、通常のTフリ
ップフロップの出力側に微分パルス発生回路を付加した
のと同じ機能を有している。
FIG. 3 is a specific configuration diagram of the flip-flop 100, in which the 1st bit unit stage is composed of NAND gates 101 to 106, and a differential pulse generation circuit is connected to the output side of the ordinary T flip-flop. It has the same functionality as adding .

第4図はフリップフロップ200〜600の一具体的構
成図であり、N A N Dゲート201〜2015と
へNDゲート206によって単位ステージが構成されて
いる。207はプログラム端子、208は次段の7リノ
プ70ツブにトリガ信号を供給するトリガ信号出力端子
、209は前段(LSB側)のフリップ70ツブからの
トリガ信号が入力されるトリガ信号入力端子、210は
前段のフリップフロップへ帰還信号を供給する帰還信号
出力端子、211は後段(MSB側)の7リツプフロツ
プから供給される帰還信号を入力する帰還信号入力端子
である。詳しい動作の説明は特開昭68−84539号
公報に記載されているのでここでは省略する。
FIG. 4 is a specific configuration diagram of flip-flops 200 to 600, in which a unit stage is configured by NAND gates 201 to 2015 and ND gate 206. 207 is a program terminal; 208 is a trigger signal output terminal that supplies a trigger signal to the next-stage 7-linop 70 block; 209 is a trigger signal input terminal to which a trigger signal from the previous stage (LSB side) flip 70 block is input; 210 A feedback signal output terminal 211 supplies a feedback signal to the flip-flop in the previous stage, and a feedback signal input terminal 211 receives a feedback signal supplied from the seven flip-flops in the rear stage (MSB side). A detailed explanation of the operation is described in Japanese Patent Application Laid-Open No. 68-84539, so a detailed description thereof will be omitted here.

以上のように構成されたバイナリ−カウンタについて以
下その動作を説明する。例えば、カウンタ700のプロ
グラム値が2進数でMSB側からLSB側に向かって、
〔0o○101〕であったとすると、この値からダウン
カウントが行なわね、カウンタの出力値が(ooooo
o)になった次のクロック入力で、フリップフロップ6
00の非反転出力はフリップフロップSOOからのトリ
ガ信号で反転し、0″から”1 ″となる。従ってカウ
ンタ700の値は(111111)となる。
The operation of the binary counter configured as described above will be explained below. For example, if the program value of the counter 700 is a binary number from the MSB side to the LSB side,
If it is [0o○101], the countdown will not be performed from this value, and the output value of the counter will be (oooooo
o) At the next clock input, the flip-flop 6
The non-inverted output of 00 is inverted by the trigger signal from the flip-flop SOO and changes from 0" to "1". Therefore, the value of the counter 700 becomes (111111).

さらにクロックが入力されると、カウンタはダウンカウ
ントを続ける。カウンタ700のカウント値が(100
000)となった後に、さらにクロックが入力されると
カウンタ700のカウント値は(111111)とクリ
、正常に動作しない。
When further clocks are input, the counter continues counting down. The count value of counter 700 is (100
000), when another clock is input, the count value of the counter 700 becomes (111111), and the counter 700 does not operate normally.

しかしながら、例えばカウンタを用いて測定信号の周期
を測定する場合、通常、カウンタのカウント値と測定信
号の1周期とが1対1に対応しているので、カウンタ7
00のカウント値が(100000)を超えることはな
く、カウント値(100000)を超える前にクロック
を停止するか、あるいはプログラム値をカウンタにセッ
トしなおす。従って。
However, when measuring the cycle of a measurement signal using a counter, for example, there is usually a one-to-one correspondence between the count value of the counter and one cycle of the measurement signal.
The count value of 00 never exceeds (100000), and the clock is stopped or the program value is reset to the counter before the count value exceeds (100000). Therefore.

カウンタの最終段のフリップフロップはプログラム値の
状態より1回転するだけであるので、NANDゲート6
01.602で構成されるR−Sフリップフロップにし
ても周期を測定するようなカウント動作を行なわせる上
で何らさしつかえない。なお、上述の実施例では7リソ
プフロソプ600の構成を第4図の回路構成としたので
、フリップフロップ600に帰還信号を作るためにイン
バータ603.604が含まれているが、帰還信号が必
要でない7リツプフロソプを7リツプ70ツブ500に
用いれば、単にNANDゲ−)601 。
Since the flip-flop at the final stage of the counter only rotates once from the state of the program value, the NAND gate 6
Even if the R-S flip-flop is made up of 01.602, there is no problem in carrying out a counting operation such as measuring the period. In the above-described embodiment, since the configuration of the 7-resop flop 600 is the circuit configuration shown in FIG. 4, the flip-flop 600 includes inverters 603 and 604 to generate a feedback signal. If you use a lip flop for 7 lips 70 tubes 500, it will just be a NAND game) 601.

602だけで良い。また9段間遅延を他の7リツプフロ
ソプと同じにするため、フリップフロップ600からの
トリガ信号を遅延させてフリップフロップ600に入力
しても良い。さらに前述の本発明の実施例ではフリップ
フロップ600のR−Sフリップフロップを構成するの
に一致ゲートとしてNANDゲートを用いたが、論理を
変換すれば例えばNORゲートなどの他の一致ゲートを
用いてフリップフロップを構成することもできる。
Only 602 is enough. Further, in order to make the delay between nine stages the same as in other seven-stage flip-flops, the trigger signal from the flip-flop 600 may be delayed and input to the flip-flop 600. Furthermore, in the embodiment of the present invention described above, a NAND gate was used as a coincidence gate to configure the R-S flip-flop of the flip-flop 600, but if the logic is converted, other coincidence gates such as a NOR gate can be used. A flip-flop can also be constructed.

発明の効果 以上の説明から明らかなように2本発明は、セント、リ
セット機能を有するとともに、次段へのトリガ信号を微
分パルスで供給する手段を有するフリップフロップと、
前記フリップフロップの次段へのトリガ信号端子を第1
の一致ゲートの第1の入力端子に接続し、第2の一致ゲ
ート出力端子を前記第1の一致ゲートの第2の入力端子
に接続し、前記第2の一致ゲートの第1の入力端子に前
記第1の一致ゲートの出力端子を接続し、前記第2の一
致ゲートの第2の入力端子に前記フリップフロップのリ
セット端子を接続したフリップフロップをバイナリ−カ
ウンタの最上位側の2段となるようにバイナリ−カウン
タを構成しているので、バイナリーカウンタの最上位の
単位ステージを簡単な構成にでき素子数を削減できると
いう優れた効果が得られる。その結果、集積回路のチッ
プ面積を小さくするという効果が得られる。
Effects of the Invention As is clear from the above description, the present invention has two features: a flip-flop having cent and reset functions and means for supplying a trigger signal to the next stage in the form of a differentiated pulse;
The trigger signal terminal to the next stage of the flip-flop is connected to the first
a second match gate output terminal connected to a first input terminal of said first match gate, and a second match gate output terminal connected to a second input terminal of said first match gate; A flip-flop in which the output terminal of the first coincidence gate is connected and the reset terminal of the flip-flop is connected to the second input terminal of the second coincidence gate becomes the two most significant stages of the binary counter. Since the binary counter is configured in this way, the top unit stage of the binary counter can be configured simply and the number of elements can be reduced, which is an excellent effect. As a result, the effect of reducing the chip area of the integrated circuit can be obtained.

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

第1図は従来のバイナリ−カウンタのブロック構成図、
第2図は本発明の一実施例に係るバイナリ−カウンタの
ブロック構成図、第3図および第4図はフリップフロッ
プの具体的構成例を示す回路図である。 100〜600・・・・・・フリップフロップ、700
・・・・・バイナリ−カウンタ。
Figure 1 is a block diagram of a conventional binary counter.
FIG. 2 is a block configuration diagram of a binary counter according to an embodiment of the present invention, and FIGS. 3 and 4 are circuit diagrams showing specific configuration examples of a flip-flop. 100-600...Flip-flop, 700
...Binary counter.

Claims (1)

【特許請求の範囲】[Claims] セット、リセット機能を有するとともに、次段へのトリ
ガ信号を微分パル不で供給する手段を有するフリップフ
ロップと、前記フリップ20ツブの次段へのトリガ信号
端子を第1の一致ゲートの第1の入力端子に接続し、第
2の一致ゲート出・力端子を前記第1の一致ゲートの第
2の入力端子に接続し、前記第2の一致ゲートの第1の
入力端子に前記第1の一致ゲートの出力端子を接続し、
前記第2の一致ゲートの第2の入力端子に前記クリップ
70ツブのリセット端子を接続した7リソプフロツプを
バイナリ−カウンタの最上位側の2段としたことを特徴
とするバイナリ−カウンタ。
A flip-flop has a set and reset function, and also has a means for supplying a trigger signal to the next stage with a differential pulse; a second match gate output terminal connected to an input terminal of the first match gate; a second match gate output terminal connected to a second input terminal of the first match gate; Connect the output terminal of the gate,
A binary counter characterized in that the uppermost two stages of the binary counter include a 7-resop flop in which the reset terminal of the clip 70 block is connected to the second input terminal of the second coincidence gate.
JP23666483A 1983-12-15 1983-12-15 Binary counter Granted JPS60127819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23666483A JPS60127819A (en) 1983-12-15 1983-12-15 Binary counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23666483A JPS60127819A (en) 1983-12-15 1983-12-15 Binary counter

Publications (2)

Publication Number Publication Date
JPS60127819A true JPS60127819A (en) 1985-07-08
JPH0220175B2 JPH0220175B2 (en) 1990-05-08

Family

ID=17003955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23666483A Granted JPS60127819A (en) 1983-12-15 1983-12-15 Binary counter

Country Status (1)

Country Link
JP (1) JPS60127819A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62151029A (en) * 1985-12-25 1987-07-06 Nec Corp Serial-parallel conversion circuit with counter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62151029A (en) * 1985-12-25 1987-07-06 Nec Corp Serial-parallel conversion circuit with counter

Also Published As

Publication number Publication date
JPH0220175B2 (en) 1990-05-08

Similar Documents

Publication Publication Date Title
JPS6084015A (en) Synchronization up/down counter
US6018560A (en) Up/down counter
US3992635A (en) N scale counter
US4692640A (en) Majority circuit comprising binary counter
JPS60127819A (en) Binary counter
US6504407B2 (en) Programmable high speed frequency divider
JPS6129577B2 (en)
JP3431754B2 (en) Synchronous counter
JPH0683066B2 (en) Counter circuit
JPS639770B2 (en)
US4581751A (en) Reversible shift register
JPS639768B2 (en)
JPH0247642Y2 (en)
JPH0515230B2 (en)
SU1162044A1 (en) Number-to-pulse rate converter
JPS5815332A (en) Ternary ring counter
JPH04302527A (en) Counting circuit
JPS5829222A (en) Binary counter
JPH05265588A (en) Clock generation circuit
JPH0161266B2 (en)
JPH02201538A (en) Counter
JPH02125527A (en) Frequency division circuit
JPH03244217A (en) Parallel/serial conversion circuit for data
JPS6184569A (en) Accessory circuit for testing
JPH02206222A (en) Counter