JPS59148432A - Counter device - Google Patents

Counter device

Info

Publication number
JPS59148432A
JPS59148432A JP2320283A JP2320283A JPS59148432A JP S59148432 A JPS59148432 A JP S59148432A JP 2320283 A JP2320283 A JP 2320283A JP 2320283 A JP2320283 A JP 2320283A JP S59148432 A JPS59148432 A JP S59148432A
Authority
JP
Japan
Prior art keywords
binary
output
counter
unit
outputs
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
JP2320283A
Other languages
Japanese (ja)
Other versions
JPH0227854B2 (en
Inventor
Saiji Kunihira
宰司 國平
Hiroshi Mizuguchi
博 水口
Yutaka Oota
豊 太田
Shinji Okada
岡田 真司
Minoru Nakamura
穣 中村
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 JP2320283A priority Critical patent/JPS59148432A/en
Publication of JPS59148432A publication Critical patent/JPS59148432A/en
Publication of JPH0227854B2 publication Critical patent/JPH0227854B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Logic Circuits (AREA)
  • Manipulation Of Pulses (AREA)

Abstract

PURPOSE:To reduce the number of wirings and elements by detecting all outputs of a unit stage to be reduced to logical 1 and an output of the unit stage closer to the MSB in the unit stages to be reduced to logical 0 in binary outputs detected by a binary up-counter. CONSTITUTION:Assuming that a level of a set terminal is logical H before a time t0 and a preset data (111000) is set to each unit stage; then an output level of an NAND gate 15 goes also to H. When the level of the set signal moves to L at the time t0, the binary up-counter counts a clock signal. When the binary output of the counter goes to (001011), the detected gate output goes to L and further, when the binary output goes to (001100), the detected gate output goes to H and the detection is completed.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はバイナリ−カウンタのバイナリ−出力が所定の
組み合わせになったことを検出するのに用いることがで
きるカウンタ装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a counter device that can be used to detect a predetermined combination of binary outputs of a binary counter.

従来例の構成とその問題点 以下、図面を参照しながら従来のカウンタ装置について
説明する。第1図は従来のカウンタ装置のブロック図で
、単位ステージ1.2,3,4゜6.6は縦続接続され
てバイナリ−アップカウンタを構成している。端子7,
8,9,10,11゜12は各ビットのプログラム値が
印加されるプログラム端子であり、端子13はクロック
信号入力端子、端子14はセント端子、端子15はカウ
ント値検出出力端子である。ゲート16はカウンタのバ
イナリ−出力が所定の組み合わせになったことを検出す
るNANDゲートであり、検出すべきバイナリ−出力に
従って各単位ステージの出力がゲート入力として接続さ
れている6 以上のように構成された従来のカウンタ装置について、
その動作を以下に説明する。例えばプログラム値が2進
数の〔111000〕であったとすると、この値からア
ップカウントが行なわれ、カウンタの出力が検出する値
〔001011〕になった時点で検出ゲート16が出力
信号を発生し、検出すべきカウント値を検出したことに
なる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Conventional Structure and Problems The conventional counter device will be described below with reference to the drawings. FIG. 1 is a block diagram of a conventional counter device, in which unit stages 1.2, 3, 4.degree. 6.6 are connected in cascade to form a binary up counter. terminal 7,
Reference numerals 8, 9, 10, 11 and 12 are program terminals to which the program values of each bit are applied, terminal 13 is a clock signal input terminal, terminal 14 is a cent terminal, and terminal 15 is a count value detection output terminal. The gate 16 is a NAND gate that detects that the binary outputs of the counters have become a predetermined combination, and the outputs of each unit stage are connected as gate inputs according to the binary outputs to be detected.6 The gate 16 is configured as described above. Regarding the conventional counter device,
Its operation will be explained below. For example, if the program value is a binary number [111000], up-counting is performed from this value, and when the output of the counter reaches the detection value [001011], the detection gate 16 generates an output signal, and the detection gate 16 generates an output signal. This means that the desired count value has been detected.

しかしながら前記のような構成では各単位ステージの出
力すべてを用いてカウンタが所定のバイナリ−出力にな
ったことを検出しているので、ゲート16の入力端子は
カウンタの段数だけ必要となり、さらにカウンタの各単
位ステージと検出ゲートの入力端子を結ぶ配線も同様の
本数だけ必要となる。特に検出すべきバイナリ−出力が
複数個ある場合、配線本数は次式 配線本数−(カウンタの段数〕×(検出するバイナリ−
出力数) で表わされる本数必要となり、集積回路においく加する
と、多入力ゲートのみで検出ゲートを構成することが困
難となり、第2図に示すような多段構成のゲート回路が
必要となる。そのため、検出に必要な素子数が増加する
とともに、カウンタの出力が検出すべきバイナリ−出力
になってから検出ゲートが検出信号を出力するまでの遅
延時間も大きくなる。
However, in the above configuration, all the outputs of each unit stage are used to detect when the counter has reached a predetermined binary output, so the input terminals of the gate 16 are required as many as the number of stages of the counter, and A similar number of wires are also required to connect each unit stage and the input terminal of the detection gate. In particular, if there are multiple binary outputs to be detected, the number of wires is calculated using the following formula: Number of wires - (number of counter stages) x (binary to be detected -
The number of outputs (output number) is required, and when added to the integrated circuit, it becomes difficult to configure a detection gate with only multi-input gates, and a gate circuit with a multi-stage configuration as shown in FIG. 2 is required. Therefore, the number of elements required for detection increases, and the delay time from when the output of the counter becomes a binary output to be detected until the detection gate outputs a detection signal also increases.

発明の目的 本発明の目的は、カウンタのバイナリ−出力値をより少
ない配線数や素子数で検出することができるカウンタ装
置を提供することがある。
OBJECTS OF THE INVENTION An object of the present invention is to provide a counter device that can detect a binary output value of a counter with a smaller number of wires and elements.

発明の構成 本発明のカウンタ装置は、セット機能を有するフリップ
フロップを単位ステージとして、前記単位ステージをN
個(Nはカウンタの段数、N〉2)縦続接続してなるバ
イナリ−アップカウンタと、前記バイナリ−アップカウ
ンタの検出すべきバイナリ−出力において、1となる単
位ステージのすべての出方が供給され、0となるM個(
Mは0を出力する単位ステージ数、N2M〉1)の単位
ステージのうち、MSB(最上位段)に近い側の単位ス
テージを含むL個(Lは0を出力する単位ステージのう
ち出力を検出ゲートに供給する単位ステー7数、1<:
L(M )の単位ステージの出力が供給される検出ゲー
トによって構成したものであり、これによって検出に必
要な配線数や素子数を削減するものである。
Structure of the Invention The counter device of the present invention uses a flip-flop having a set function as a unit stage, and the unit stage is N.
(N is the number of counter stages, N>2) binary up counters are connected in cascade, and in the binary output to be detected of the binary up counter, all outputs of unit stages that become 1 are supplied. , 0, M pieces (
M is the number of unit stages that output 0, and L is the number of unit stages that output 0, including the unit stage near the MSB (most significant stage) among the unit stages (N2M>1). Number of unit stays 7 supplied to the gate, 1<:
It is constructed of a detection gate to which the output of the L(M) unit stage is supplied, thereby reducing the number of wires and elements required for detection.

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

第3図は本発明の一実施例に係るカウンタ装置のブロッ
ク構成を示すものである。第3図において、単位ステー
ジ1.2.3.4.5.6は縦続接続されてバイナリ−
アップカウンタを構成している。7,8,9,10,1
1.12は各ビットのプログラム値が印加されるプログ
ラム端子であり、13はクロック信号入力端子、14は
セット端子、16はカウント値検出出力端子である。1
6はカウンタのバイナリ−出力を検出するNARDゲー
トであり、前記NANDゲートの入力端子には、検出す
べきバイナリ−値〔0Q1011〕が出力されるとき「
1」となる単位ステージのすべての非反転出力と、0と
なる単位ステージのうちMSBの単位ステージの反転出
力が接続されている。
FIG. 3 shows a block configuration of a counter device according to an embodiment of the present invention. In FIG. 3, unit stages 1.2.3.4.5.6 are cascaded to form a binary
It constitutes an up counter. 7, 8, 9, 10, 1
1.12 is a program terminal to which the program value of each bit is applied, 13 is a clock signal input terminal, 14 is a set terminal, and 16 is a count value detection output terminal. 1
6 is a NARD gate that detects the binary output of the counter, and when the binary value [0Q1011] to be detected is output to the input terminal of the NAND gate, "
All the non-inverting outputs of the unit stages that become "1" and the inverting outputs of the MSB unit stage among the unit stages that become "0" are connected.

さて、第4図は第3図の回路動作を説明するだめのタイ
ムチャートであり、第4図を参照して第3図の回路動作
の説明を行なう。
Now, FIG. 4 is a time chart for explaining the circuit operation of FIG. 3, and the circuit operation of FIG. 3 will be explained with reference to FIG.

第4図の13aはクロック信号入力端子13に供給され
るクロック信号波形であり、IQ、2Q。
13a in FIG. 4 is a clock signal waveform supplied to the clock signal input terminal 13, which is IQ, 2Q.

3Q 、4Q 、sQ 、eQはそれぞれ単位ステージ
1.2,3,4,6.6の非反転出力である。また、第
4図の14aはセット端子14に供給されるセット信号
波形であり、15aは検出ゲート15の出力波形である
3Q, 4Q, sQ, and eQ are the non-inverted outputs of unit stages 1.2, 3, 4, and 6.6, respectively. Further, 14a in FIG. 4 is a set signal waveform supplied to the set terminal 14, and 15a is an output waveform of the detection gate 15.

第3図の回路忙おいて、時刻to以前にセント端子のレ
ベルがHI+で、各単位ステージにプリセットデータ〔
111oOQ〕がセントされているものとするとHAN
Dゲート16の出力レベルもHI+となっている。
When the circuit in Figure 3 is busy, the level of the cent terminal is HI+ before time to, and the preset data is stored in each unit stage.
111oOQ] is cented, then HAN
The output level of the D gate 16 is also HI+.

時刻toにおいてセット信号のレベルがH”からL”に
移行すると、バイナリ−アップカウンタはクロック信号
をカウントする。
When the level of the set signal changes from "H" to "L" at time to, the binary up counter counts the clock signal.

時刻t1においてカウンタのバイナリ−出力が〔0O1
011〕となると、検出ゲート16の出力レベルは”L
”レベルとなり、検出信号を出力する。時刻t2におい
てカウンタのバイナリ−出力が〔o01100〕となる
と検出ゲート16の出力レベルは“HI+レベルとなり
、検出が終了したことになる。前記と同様に検出ゲート
16の出力は出力を検出しない単位ステージがあるだめ
時刻H,ts、t7においてL”レベルとなり、時刻t
4.t6.t8においてH”レベルとなる。従って検出
ゲート16は4回検出信号を出力することになり、検出
すべきバイナリ−出力値以外のバイナリ−出力値におい
ても検出信号を出力している。
At time t1, the binary output of the counter becomes [0O1
011], the output level of the detection gate 16 becomes “L”.
" level and outputs a detection signal. At time t2, when the binary output of the counter becomes [o01100], the output level of the detection gate 16 becomes "HI+ level", indicating that detection has ended. Similarly to the above, the output of the detection gate 16 goes to L'' level at times H, ts, and t7 because there are unit stages that do not detect the output, and at time t.
4. t6. It becomes H'' level at t8. Therefore, the detection gate 16 outputs the detection signal four times, and also outputs the detection signal for binary output values other than the binary output value to be detected.

しかし、バイナリ−アップカウンタにデータがプリセッ
トされた後、検出ゲート16が最初に検出信号を出力す
るのは時刻t1であり、そのときのバイナリ−アップカ
ウンタのバイナリ−出力は検出すべきバイナリ−値にな
っている。よって、最初の検出信号出力がバイナリ−ア
ップカウンタが検出すべきバイナリ−出力になったこと
あられしているので、前記検出ゲートの出力をもとにシ
ーケンシャルな動作を行なわせる場合、実用上の弊害は
何ら生じない。
However, after data is preset in the binary up counter, the detection gate 16 first outputs a detection signal at time t1, and the binary output of the binary up counter at that time is the binary value to be detected. It has become. Therefore, since the first detection signal output is the binary output that should be detected by the binary up counter, there is no practical problem when performing sequential operations based on the output of the detection gate. does not occur at all.

発明の効果 以上の説明から明らかなように、本発明はセット機能を
有するフリップフロップを単位ステージとして、前記単
位ステージをN個(N>2)縦続接続してなるバイナリ
−アップカウンタと、前記バイナリ−アップカウンタの
検出すべきバイナリ−出力において、1となる単位ステ
ージのすべての出力が供給され、0となるM個(M>1
)の単位ステージのうち、MSBに近い側の単位ステー
ジを含むL個(1≦L(M)の単位ステージの出力が供
給される検出ゲートによって構成されているので、バイ
ナリ−アップカウンタのバイナリ−出力を検出するのに
配線本数が少なく、検出に必要な素子数が少なくてよい
という優れた効果が得られる。そして、その効果にょシ
、検出する時に生じる遅延時間も少なくすることができ
るという効果が得られる。
Effects of the Invention As is clear from the above description, the present invention provides a binary up counter in which a flip-flop having a set function is used as a unit stage, and N unit stages (N>2) are connected in cascade; - At the binary output of the up-counter to be detected, all outputs of the unit stage which are 1 are supplied, and M which are 0 (M>1
) among the unit stages near the MSB, it is composed of detection gates to which the outputs of L (1≦L(M)) unit stages are supplied, including the unit stage near the MSB. An excellent effect can be obtained in that the number of wires required for output detection is small, and the number of elements required for detection is also small.In addition, the effect is that the delay time that occurs during detection can also be reduced. is obtained.

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

第1図は従来のカウンタ装置のブロック構成図、第2図
は第1図の要部具体的回路構成図、第3図は本発明の一
実施例を示すブロック構成図、第4図は第3図の回路動
作を説明するだめのタイムチャートである。 1〜ら・・・・・・単位ステージ、7〜12・・・・・
・プログラム端子、13・・・・・・クロック信号入力
端子、14・・・・・・セット端子、16・・・・・・
検出信号出力端子、16・・・・・・検出ゲート。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名tA
1図
FIG. 1 is a block configuration diagram of a conventional counter device, FIG. 2 is a specific circuit configuration diagram of the main part of FIG. 1, FIG. 3 is a block configuration diagram showing an embodiment of the present invention, and FIG. 3 is a time chart for explaining the circuit operation of FIG. 3. FIG. 1~ra...unit stage, 7~12...
・Program terminal, 13... Clock signal input terminal, 14... Set terminal, 16...
Detection signal output terminal, 16...Detection gate. Name of agent: Patent attorney Toshio Nakao and one other person
Figure 1

Claims (2)

【特許請求の範囲】[Claims] (1)  セット機能を有するフリップフロップを単位
ステージとして、前記単位ステージをN個(ただし、N
〉2)縦続接続してなるパイナリーアソフカウンタと、
前記バイナリ−アップカウンタの検出すべきバイ゛ナリ
ー出カにおいて、1となる単位ステージのすべての出力
が供給され、0となるy個(ただし、M〉1)の単位ス
テージのうち、最上位段(MSB )に近い側の単位ス
テージを含むL個(ただし、1≦L(M)の単位ステー
ジの出力が供給される検出ゲートを具備してなるカウン
タ装置。
(1) A flip-flop having a set function is used as a unit stage, and N unit stages (however, N
〉2) Pinary asoph counters connected in cascade,
In the binary output of the binary up counter to be detected, all the outputs of the unit stages which become 1 are supplied, and among the y unit stages (where M>1) which become 0, the highest stage A counter device comprising a detection gate to which outputs of L unit stages (where 1≦L(M)) including the unit stage near the MSB (MSB) are supplied.
(2)バイナリ−アップカウンタの検出すべきバイナリ
−出力において、1となる単位ステージのすべての反転
出力(あるいは非反転出力)が供給され、0となる単位
ステージの非反転出方(あるいは反転出力)が供給され
る論理積ゲートによって検出ゲートを構成したことを特
徴とする特許請求の範囲第(1)項記載のカウンタ装置
(2) In the binary output to be detected by the binary up counter, all the inverted outputs (or non-inverted outputs) of the unit stage that become 1 are supplied, and the non-inverted outputs (or inverted outputs) of the unit stage that become 0 are supplied. ) The counter device according to claim 1, wherein the detection gate is constituted by an AND gate to which .
JP2320283A 1983-02-14 1983-02-14 Counter device Granted JPS59148432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2320283A JPS59148432A (en) 1983-02-14 1983-02-14 Counter device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2320283A JPS59148432A (en) 1983-02-14 1983-02-14 Counter device

Publications (2)

Publication Number Publication Date
JPS59148432A true JPS59148432A (en) 1984-08-25
JPH0227854B2 JPH0227854B2 (en) 1990-06-20

Family

ID=12104078

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2320283A Granted JPS59148432A (en) 1983-02-14 1983-02-14 Counter device

Country Status (1)

Country Link
JP (1) JPS59148432A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5071258A (en) * 1973-10-26 1975-06-13

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5071258A (en) * 1973-10-26 1975-06-13

Also Published As

Publication number Publication date
JPH0227854B2 (en) 1990-06-20

Similar Documents

Publication Publication Date Title
US4701877A (en) Highspeed parallel adder with clocked switching circuits
JP3380329B2 (en) Digital data arbitration device
JPS59148432A (en) Counter device
EP0130293A2 (en) Latching circuit array of logic gates
JPS6244727B2 (en)
JPH06188872A (en) Synchronization protective circuit
JP3504316B2 (en) Multi-bit counter
JPH0417489B2 (en)
JPH08102658A (en) Counter circuit with loading function
JP2827679B2 (en) Semiconductor device
JPS6152493B2 (en)
JPH03102265A (en) Maximum value detecting circuit
JPH05324116A (en) Semiconductor circuit device
JPH0683066B2 (en) Counter circuit
JP2513021B2 (en) Signed digit number sign judgment circuit
JP3338722B2 (en) Counter circuit
JP3015454B2 (en) Synchronous counter
JPH0779247B2 (en) Decode circuit
JPH05343986A (en) Counter circuit
JPS6292520A (en) Multi-bit counter
JPH0697816A (en) Counter circuit
JPS62184534A (en) Arithmetic circuit
JPS6187426A (en) Flip-flop
JPH0651870A (en) Reset circuit
JPH0677257B2 (en) Digital fast correlator