JPH0213127A - Asynchronous non-logic type programmable counter - Google Patents

Asynchronous non-logic type programmable counter

Info

Publication number
JPH0213127A
JPH0213127A JP16287288A JP16287288A JPH0213127A JP H0213127 A JPH0213127 A JP H0213127A JP 16287288 A JP16287288 A JP 16287288A JP 16287288 A JP16287288 A JP 16287288A JP H0213127 A JPH0213127 A JP H0213127A
Authority
JP
Japan
Prior art keywords
counter
frequency division
division ratio
counter section
section
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
JP16287288A
Other languages
Japanese (ja)
Inventor
Koji Takeda
幸二 竹田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP16287288A priority Critical patent/JPH0213127A/en
Priority to US07/365,583 priority patent/US5020082A/en
Publication of JPH0213127A publication Critical patent/JPH0213127A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

PURPOSE:To attain ease of use with simple constitution by controlling the entire frequency division of a counter by an (n+1) bit frequency division command input means. CONSTITUTION:An output of a pre-stage counter section 1 is a clock input of a post-stage counter section 2, a comparator circuit 3 uses an output of n-set of flip-flops of the post-stage counter section 2 as one input and uses an n-bit 8 of the frequency division command input means as other input. Then the pre-stage counter section 1 uses an output of the comparator circuit 3 and at least 1-bit 9 of the frequency division command input means as a control signal for the changeover of the frequency division ratio and the frequency division command input means in (n+1)-bit controls the entire frequency division ratio of the counter. Thus, ease of use is attained with simple constitution.

Description

【発明の詳細な説明】 【産業上の利用分野J 本発明はトランジスタ数の少ないプログラマブルカウン
タに関するものである。 【従来の技術】 まずはじめにことばの意味を明確にしておく。 同期式カウンタとはカウンタを構成するすべてのフリッ
プフロップのクロック端子が共通に結線されたものであ
り、そうでないものを非同期式カウンタという、論理形
カウンタとはカウンタを構成する各フリップフロップの
出力を2進数とみたとき、これが0から順次lずつ増え
ていくもののことをいい、そうでないものを非論理形カ
ウンタという0例えば4進カウンクを考^たとき、(0
0)→(Ol)→(lO)→(11)→(00)という
動きをするのは論理形カウンタであり、 (00)−(
01)−(11)→(10)→(00)という動きをす
るのは非論理形カウンタである。プログラマブルカウン
タとはカウンタの分周比を外部からの制御信号で自由に
設定できるカウンタのことである0本発明のプログラマ
ブルカウンタは同期式及び論理形という条件をはずし、
トランジスタ数を最小にしたものである9従来のプログ
ラマブルカウンタで最もトランジスタの少ないものは第
5図(a)に示すものである。これはりップルカウンタ
のリセット端子を使うものであり、以下第5図にしたが
って簡単に構成と動作を説明する。101から106は
Dタイプのフリップフロップ(以下FFと記す)であり
、これらは6段のリップルカウンタを構成している。各
FFの出力Q0〜Q、を2進値とみたとき、通常(通常
とはリセット入力116がハイのとき)はCLOCK入
力100の立上りごとに1ずつカウントアツプしてい(
、a0〜a6の6本の入力はカウンタの分周比を指定す
る信号であり、これを2進値とみたとき(N−1)とな
るものとする、すなわちas x2’ +a4X2’ 
+as X2” +a、X2” +B、X2’ +ao
 X2°=N−1とする。108から113は排他的論
理和ゲート(以下EXORゲートと記す)であり、ai
とQiが一致したときローを出力し、そうでないときハ
イを出力する。114は論理和ゲート(以下ORゲート
と記す)であり、その出力Mはa0〜a、とQ0〜Q、
が一致したときローとなる。すなわちMはりップルカウ
ンクがN−1になったことを検出する信号であり、これ
がFF l 07にCLOCKlooの反転信号でとり
こまれ、その出力116がリップルカウンタのリセット
信号となっている。第5図(b)で動作説明をする。カ
ウンタの値がOからN−2までの間はカウンタはCLO
CK 100の立上りごとに1ずつカウントアツプして
いき、Tcでカウンタの値がN−1になると、そのとき
一致検出信号Mがローとなり、tcの次のtdにおいて
F’FIO7の出力のQ、(=信号116)がローとな
り、カウンタは0にリセットされるateにおいてもQ
、はローのままであるため、カウンタは0のままである
。tfにおいてQ、はハイにもどり、カウンタのリセッ
トは解除され、tg以降のCLOCKlooの立上りご
とにカウンタは又lずつカウントアツプしていく、この
ようにしてカウンタは0からN−1をくり返すN進カウ
ンタとなる。 〔発明が解決しようとする課題] 第5図(a)に示した従来のプログラマブルカウンタに
は次の3つの欠点がある。 第1の欠点・・・カウンタのリセット信号を作り出すた
めのFF107が必要なため、トランジスタ数が多くな
ってしまう。 第2の欠点・・・第5図(b)のクロックのタイミング
tcにおいてカウンタがカウントアツプしたあとtdに
おいて一致検出信号Mをサンプルするため、FF 10
1から106とEXORゲートl13とORゲート11
4の各素子の遅延時間の和がtcとtdの間隔T、より
小さくなくてはならず、したがってカウンタの動作周波
数が低くなってしまう。 第3の欠点・・・カウンタの値は0からN−1までをく
り返すが、0である時間が長く、N−1である時間が短
いため、このカウンタの出力をシステム等のタイミング
信号として使うとき、注意が必要であり使いにくい。 本発明の目的は上記の3つの欠点を除去したプログラマ
ブルカウンタを提供する事にある。 〔課題を解決するための手段] 本発明は、外部からの制御信号により、分周比が制御さ
れる前段カウンタ部と、 n (nは、自然数)個のフ
リップフロップより構成され分周比が2″である後段カ
ウンタ部と、複数組のnビットの入力の大小を比較する
比較回路と、カウンタ全体の分周比を外部より指定する
(n+1)ビットの分周比指示入力手段とからなり、前
記前段カウンタ部の出力は前記後段カウンタ部のクロッ
ク入力となり、前記比較回路は前記後段カウンタ部のn
個のフリップフロップの出力を一方の入力とし、前記分
周比指示入力手段のnビットをもう一方の入力とし、前
記前段カウンタ部は前記比較回路の出力と前記分周比指
示入力手段の少なくとも1ビットとを分周比切換えのた
めの制御信号とし、(n+1)ビットの前記分周比指示
入力手段によりカウンタ全体の分周比が制御されること
を特徴とする。 又、本発明は、前記後段カウンタ部がn個のフリップフ
ロップより構成されるリップルカウンタであることを特
徴とする。 〔実 施 例] 以下第1図にもとづいて本発明の説明をする。 第1図は本発明の実施例を一般的な形で示したものであ
る。lは前段カウンタ部、2は後段カウンタ部、3は比
較回路であり、8は(n+1)ビットの分周比指示入力
のうちの下位nビット、9は分周比指示入力手段の最上
位の1ビットである。 4はカウンタへのクロック入力である。前段カウンタ部
lにはクロック人力4のほかにカウンタの分周比を制御
する2本の人力がきている。1本は分周比指示入力手段
の最上位ビット9 (=a、)であり、もう1本は比較
回路3の出力5 (=M)である、all、Mと分周比
との関係は次のようになっている。 an=1のときは、M=1なら4進カウンク、M=Oな
ら3進カウンタとなる。 an=oのときは、M=1なら3進カウンク。 M=Oなら2進カウンタとなる。 後段カウンタ部2はn個のFFより構成される2n進カ
ウンタであり、前段カウンタ部lの出力6をクロック入
力としている。前段カウンタ部l及び後段カウンタ部2
を構成するFFすべてについて、カウンタの動作を制御
するためにリセット信号を用いていないのが本発明の大
きな特徴である。比較回路3は後段カウンタ部の出カフ
(Q0〜Q、、)と分周比指示入力手段の下位nビット
8(a0〜a++−1の大小を比較し、後段カウンタ部
の出力が分周比指示入力手段の下位nビットより小さい
か又は等しいときハイを出力する。すなわち、an−1
X2’−’ +−+a 、 x2 ’ +a。 x2°≧Qll−I X 2’−’ +・・−+q l
 X 2 ’ +Qa×2°のときM=1となり、それ
以外のとき1M=0となる。 さて1以上第1図の構成と各構成要素の機能及び関係を
説明したが、ここで動作を追ってみよう、すなわち、分
周比指示人力a。、aイード・・02、aoに対してカ
ウンタがどのような動作をするか考えてみる。 まずan=1の場合を考える。このとき前段カウンタ部
lはMの値により4進又は3進カウンタとなる。ここで
以下の説明のために分周比指示入力の下位nビット(a
o〜a++−1)を2値数とみたときの値をAとする。 すなわち、A=6.−、X2” +・+a l x2 
’ +a。×2°とする。このとき、後段カウンタ部の
出力の値がOからAの間の(A+1)回はM=1となり
前段カウンタ部は4進カウンタとして動作する。又後段
カウンタ部の出力の値がA+1から2n−1までの(2
Il−A−1)回はM=Oとなり、前段カウンタ部は3
進カウンクとなる。したがってカウンタ全体としては、
(4x (A+1)+3x (2’−A−1))進カウ
ンタとなる。この式を整理すると、2”’ +2’+A
+1となる。 次にa7=0の場合も同様に考えると、前段カウンタ部
は(A+1)回、3進カウンタとなり。 (2’−A−1)回、2進カウンタとなり、カウンタ全
体としては(3X (A+1)+2X(2’−A−1)
)進カウンタとなる。この式を整理すると、2”’+A
+1となる。 まとめると、第1図のカウンタは、an=1のとき、2
”’ +2’+A+1進カウンタとなり、a、、=0の
とき、2”’ +A+1進カウンタとなるため、a7の
値のいかんにかかわらず2“” +an×211+A+
1 (=2″。1+all×2″+a 1l−I X 
2 ’−’ + ・= + a r X 2 ’ + 
a a X 2°+1)進カウンタになるといえる。す
なわち、第1図のカウンタは分周比指示人力a、、an
−+*・・・a I t a Oに対し、分周比が2 
” ’ + a n X 2 ”+an−+  X2”
−’  −1−++a  I  X2  ’  +a 
 o  X2  ° +lとなるプログラマブルカウン
タである。 第2図は、第1図の本発明の実施例のより具体的な例と
して、n=4の場合について実施例を示したものである
。第2図の実施例の動作は第1図と全く同じであり、又
図面中の箇所を示す数字も第1図の各箇所の数字にlO
をたしたものが完全に対応しているので、第1図の説明
の中のnを4でおきかえ、図面中の箇所を示す数字につ
いてはlOだしたものでおきかλれば第2図の説明にな
るので、ここでは第2図の概要の説明は省略し、細かな
点での補足説明をすることにする。 第2図の前段カウンタ部の分周比はa4とMの値により
、4進、3進、2進のいずれかになるが、その関係を第
3図で説明する− a a = 1かっM=1のときは
、第3図(a)のように4進カウンタになる。a4=1
かつM=0.またはa4=0かつM=1のときは第3図
(b)のように3進カウンクになり、a4=0かつM=
0のときは第3図(C)のように2進カウンタとなる。 前段カウンタ部の実施例としては第2図の中で示したち
の以外にもいくつかあり、これを第4図に示す。 a4、Mと分周比との関係はいずれも第2図の前段カウ
ンタ部と同じである。又第2図の実施例では後段カウン
タ部としてリップルカウンタを用いたが、これは特にリ
ップルカウンタに限定するわけではなく同期式カウンタ
等24進カウンタであればなんでもよい、又第2図の実
施例の比較回路においては、(ao、a+、ass a
s)に対して(Q、、Q、、Qよ、Qコ)をそれぞれ数
字の順に対応させて比較しているが、この対応関係は全
く自由であり、又後段カウンタ部の出力もQ出力側に限
らすQ出力側からもってきてもよい、すなわち(ao、
a3、a3、a、)に対して、又(Q3、Q、、Q、、
Q、)の順に対応させてもよいし、又(Q、、Qo、Q
s、Q、)の順に対応させてもよい、というのは第2図
の比較回路は2組の入力の大小を比較するのは本来の目
的ではなく、後段カウンタ部のとりえる16通りの値に
対し、A+1回、その出力Mをハイ(M=1)にしさ^
すればよいからである。前段カウンタ部ll、後段カウ
ンタ部12、比較回路13については、第2図に示した
もの以外にもいくつか実施例があるが、いずれにしても
第2図のカウンタは分周比指示人力a4、aコ、a諺*
 a (、a6に対し、(2’ +a4X2’ +as
 X2” +a、X2”+a、x2’+aoX2°+1
)進のプログラマブルカウンタとなる。すなわちa4か
ら80をかえることにより33進から64進まで自由に
設定できる。 [発明の効果1 本発明は、次のような効果があることがわかる。 効果1・・・1−ランジスタ数が少ない、第5図(a)
のトランジスタが140個に対し、第2図では100個
となり、20%少なくなっている。 効果2・・・動作周波数が改善されている。第5図(a
)のFF107のようにクロック入力100の反転信号
を使ったFFがないので、第2図の動作周波数は第5図
(a)の約2倍に改善されている。 効果3・・・カウンタの各状態はすべて一定時間である
。第5図(a)のようにカウンタのリセット端子を使っ
ていないので、0の状態が長く、N−1の状態が短いと
いうようなことは第2図のカウンタにはない。 プログラマブルカウンタは外部からの設定値をかえるだ
けで任意の分周比が得られ、非常に便利なものであり、
タイミング回路等に広く使われている0本発明の非同期
式非論理形プログラマブルカウンタは従来のプログラマ
ブルカウンタの欠点をすべて改善したものでその効果は
非常に大きい。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application J] The present invention relates to a programmable counter with a small number of transistors. [Prior Art] First, let us clarify the meaning of words. A synchronous counter is one in which the clock terminals of all the flip-flops that make up the counter are connected in common; otherwise, it is called an asynchronous counter, and a logical counter is one in which the clock terminals of all the flip-flops that make up the counter are connected in common. When viewed as a binary number, it refers to a number that increases sequentially by l from 0; otherwise, it is called a non-logical counter.For example, when considering a quaternary count, (0
It is a logical type counter that moves as 0) → (Ol) → (lO) → (11) → (00), and (00) - (
It is a non-logical counter that moves as follows: 01)-(11)→(10)→(00). A programmable counter is a counter whose frequency division ratio can be freely set using an external control signal.
Among the nine conventional programmable counters that have the smallest number of transistors, the one with the least number of transistors is shown in FIG. 5(a). This uses the reset terminal of the ripple counter, and its configuration and operation will be briefly explained below with reference to FIG. 101 to 106 are D-type flip-flops (hereinafter referred to as FF), which constitute a six-stage ripple counter. When the outputs Q0 to Q of each FF are viewed as binary values, normally (normally when the reset input 116 is high) they are counted up by 1 each time the CLOCK input 100 rises (
, a0 to a6 are signals that specify the frequency division ratio of the counter, and when viewed as a binary value, it becomes (N-1), that is, as x2' + a4X2'
+as X2" +a, X2" +B, X2' +ao
Let X2°=N-1. 108 to 113 are exclusive OR gates (hereinafter referred to as EXOR gates), and ai
When and Qi match, a low signal is output; otherwise, a high signal is output. 114 is a logical sum gate (hereinafter referred to as OR gate), and its output M is a0 to a, Q0 to Q,
goes low when they match. That is, M is a signal for detecting that the ripple count has become N-1, and this is taken into FF l 07 as an inverted signal of CLOCKloo, and its output 116 is a reset signal for the ripple counter. The operation will be explained with reference to FIG. 5(b). When the counter value is from O to N-2, the counter is CLO.
The count is incremented by 1 each time CK100 rises, and when the counter value reaches N-1 at Tc, the coincidence detection signal M becomes low, and at td following tc, the Q of the output of F'FIO7 is increased. (=signal 116) goes low and the counter is reset to 0.
, remains low, so the counter remains 0. At tf, Q returns to high, the reset of the counter is released, and the counter increments by l again every time CLOCKloo rises after tg.In this way, the counter repeats N from 0 to N-1. It becomes a forward counter. [Problems to be Solved by the Invention] The conventional programmable counter shown in FIG. 5(a) has the following three drawbacks. First drawback: Since the FF 107 is required to generate a reset signal for the counter, the number of transistors increases. Second drawback: After the counter counts up at clock timing tc in FIG. 5(b), the coincidence detection signal M is sampled at td.
1 to 106, EXOR gate l13, and OR gate 11
The sum of the delay times of the four elements must be smaller than the interval T between tc and td, and therefore the operating frequency of the counter becomes low. Third drawback...The counter value repeats from 0 to N-1, but the time when it is 0 is long and the time when it is N-1 is short, so the output of this counter is used as a timing signal for systems etc. When using it, you need to be careful and it is difficult to use. An object of the present invention is to provide a programmable counter that eliminates the three drawbacks mentioned above. [Means for Solving the Problems] The present invention comprises a pre-stage counter section whose frequency division ratio is controlled by an external control signal, and n (n is a natural number) flip-flops whose frequency division ratio is controlled by an external control signal. 2'', a comparison circuit that compares the magnitude of a plurality of sets of n-bit inputs, and (n+1)-bit frequency division ratio instruction input means for externally specifying the frequency division ratio of the entire counter. , the output of the preceding counter section serves as a clock input for the subsequent counter section, and the comparator circuit is connected to the n of the subsequent counter section.
The outputs of the plurality of flip-flops are used as one input, and the n bits of the frequency division ratio instruction input means are used as the other input, bit is used as a control signal for switching the frequency division ratio, and the frequency division ratio of the entire counter is controlled by the frequency division ratio instruction input means of (n+1) bits. Further, the present invention is characterized in that the latter stage counter section is a ripple counter composed of n flip-flops. [Example] The present invention will be explained below based on FIG. FIG. 1 shows in general form an embodiment of the invention. 1 is a front-stage counter section, 2 is a rear-stage counter section, 3 is a comparison circuit, 8 is the lower n bits of the (n+1) bits of frequency division ratio instruction input, and 9 is the most significant bit of the frequency division ratio instruction input means. It is 1 bit. 4 is a clock input to the counter. In addition to the clock input 4, two inputs for controlling the frequency division ratio of the counter are connected to the front stage counter section l. One is the most significant bit 9 (=a,) of the frequency division ratio instruction input means, and the other is the output 5 (=M) of the comparator circuit 3. The relationship between all, M and the frequency division ratio is as follows. It looks like this: When an=1, it becomes a quaternary counter if M=1, and a ternary counter if M=O. When an=o, M=1 is a ternary count. If M=O, it becomes a binary counter. The second stage counter section 2 is a 2n-ary counter composed of n FFs, and uses the output 6 of the first stage counter section 1 as a clock input. Front stage counter section 1 and rear stage counter section 2
A major feature of the present invention is that a reset signal is not used to control the operation of the counter for all the FFs constituting the FF. The comparator circuit 3 compares the magnitudes of the output cuffs (Q0 to Q, , ) of the subsequent stage counter section and the lower n bits 8 (a0 to a++-1) of the frequency division ratio instruction input means, and the output of the subsequent stage counter section is determined as the frequency division ratio. Outputs high when it is smaller than or equal to the lower n bits of the instruction input means, that is, an-1
X2'-' +-+a, x2' +a. x2°≧Qll-I X 2'-' +...-+q l
When X 2 ′ +Qa×2°, M=1; otherwise, 1M=0. Now that we have explained the configuration of FIG. 1 and the functions and relationships of each component, let us now follow the operation, that is, the frequency division ratio instruction manual a. , a eid...02, let's consider how the counter operates for ao. First, consider the case where an=1. At this time, the pre-stage counter section l becomes a quaternary or ternary counter depending on the value of M. Here, for the following explanation, the lower n bits (a
Let A be the value when o~a++-1) is viewed as a binary number. That is, A=6. −, X2” +・+a l x2
'+a. x2°. At this time, M=1 for (A+1) times when the value of the output of the rear counter section is between O and A, and the front counter section operates as a quaternary counter. Also, the value of the output of the subsequent counter section is (2) from A+1 to 2n-1.
Il-A-1) times, M=O, and the previous stage counter section is 3
It becomes Susumu Kaunk. Therefore, the counter as a whole is
It becomes a (4x (A+1)+3x (2'-A-1)) base counter. Rearranging this formula, 2”' + 2' + A
It becomes +1. Next, considering the case where a7=0 as well, the front stage counter section becomes a ternary counter for (A+1) times. (2'-A-1) times, it becomes a binary counter, and the counter as a whole is (3X (A+1) + 2X (2'-A-1)
) becomes a leading counter. Rearranging this formula, 2”'+A
It becomes +1. In summary, the counter in Figure 1 is 2 when an=1.
``' + 2' + A + decimal counter, and when a,, = 0, it becomes 2''' + A + decimal counter, so regardless of the value of a7, 2 ``'' + an x 211 + A +
1 (=2″.1+all×2″+a 1l-I X
2 '-' + ・= + a r X 2 ' +
a a X 2°+1) It can be said that it becomes a base counter. That is, the counter in FIG.
−+*・・・a I t a O, the frequency division ratio is 2
” ' + an X 2 ”+an-+ X2”
-' -1-++a I X2' +a
It is a programmable counter that becomes o X2 ° +l. FIG. 2 shows an example in which n=4 as a more specific example of the embodiment of the present invention shown in FIG. The operation of the embodiment in FIG. 2 is exactly the same as that in FIG. 1, and the numbers indicating locations in the drawing are the same as those in FIG.
Since the sum of . For the sake of explanation, we will omit the overview of FIG. 2 and provide supplementary explanation of the details. The frequency division ratio of the front stage counter section in Fig. 2 is either quaternary, ternary, or binary depending on the values of a4 and M, but the relationship is explained in Fig. 3 - a a = 1 M When =1, it becomes a quaternary counter as shown in FIG. 3(a). a4=1
and M=0. Or, when a4=0 and M=1, it becomes a ternary count as shown in Figure 3(b), and a4=0 and M=
When it is 0, it becomes a binary counter as shown in FIG. 3(C). There are several embodiments of the front stage counter section other than those shown in FIG. 2, which are shown in FIG. 4. The relationship between a4, M and the frequency division ratio is the same as that of the front stage counter section in FIG. In addition, in the embodiment shown in FIG. 2, a ripple counter is used as the subsequent counter section, but this is not particularly limited to a ripple counter, and any 24-base counter such as a synchronous counter may be used. In the comparison circuit of (ao, a+, ass a
The comparison is made by associating (Q,,Q,,Qyo,Qko) with respect to s) in numerical order, but this correspondence is completely free, and the output of the subsequent counter section is also the Q output. It may be brought from the Q output side, that is, (ao,
a3, a3, a,), and (Q3, Q,,Q,,
Q, ) may be made to correspond in the order, or (Q,, Qo, Q
s, Q, ), because the original purpose of the comparator circuit in Figure 2 is not to compare the magnitude of two sets of inputs, but to compare the 16 values that the subsequent counter section can take. For that, set the output M to high (M=1) A+1 times.
That's because you can. Regarding the front stage counter section 11, the rear stage counter section 12, and the comparison circuit 13, there are several embodiments other than those shown in FIG. 2, but in any case, the counter in FIG. , ako, a proverb *
a (, for a6, (2' + a4X2' + as
X2"+a, X2"+a, x2'+aoX2°+1
) programmable counter. That is, by changing 80 from a4, it can be freely set from 33-decimal to 64-decimal. [Effects of the Invention 1 It can be seen that the present invention has the following effects. Effect 1...1 - Fewer transistors, Figure 5 (a)
The number of transistors in FIG. 2 is 100, compared to 140 in FIG. 2, which is 20% fewer. Effect 2: The operating frequency is improved. Figure 5 (a
Since there is no FF that uses the inverted signal of the clock input 100 like the FF 107 in ), the operating frequency in FIG. 2 is improved to about twice that in FIG. 5(a). Effect 3: Each state of the counter is a constant time. Since the reset terminal of the counter is not used as in FIG. 5(a), the counter in FIG. 2 does not have a long 0 state and a short N-1 state. Programmable counters are extremely convenient because they allow you to obtain any division ratio by simply changing the set value from the outside.
The asynchronous non-logic type programmable counter of the present invention, which is widely used in timing circuits, etc., has improved all the drawbacks of conventional programmable counters, and its effects are very large.

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

第1図は本発明の実施例を一般的な形で示した図である
。第2図は本発明の具体的な実施例を示す図であり、3
3進から64進まで設定可能なプログラマブルカウンタ
である。第3図は第2図の前段カウンタ部の動作説明の
ための図である。第4図は本発明のうちの前段カウンク
部の実施例を示す図である。第5図は従来のプログラマ
ブルカウンタを示す図である。 1.11・・・・・前段カウンタ部 2.12・・・・・後段カウンク部 3.13・・・・・比較回路 4.14,100・クロック入力 5.15・・・・・比較回路の出力 6.16・・・・・前段カウンタ部の出カフ、17・・
・・・後段カウンタ部の出力8.18・・・・・分周比
指示入力の下位nビット 9.19・・・・・分周比指示入力の最上位の1ビット 101−107・・・フリップフロップ108〜113
・・・ExORゲート(排他的論理和ゲート) 114・・・・・・・ORゲート(論理和ゲー・カウン
タのりセラ ト信号 以 上
FIG. 1 shows, in general form, an embodiment of the invention. FIG. 2 is a diagram showing a specific embodiment of the present invention, and 3
It is a programmable counter that can be set from ternary to 64 decimal. FIG. 3 is a diagram for explaining the operation of the front stage counter section in FIG. 2. FIG. 4 is a diagram showing an embodiment of the front counter part of the present invention. FIG. 5 is a diagram showing a conventional programmable counter. 1.11... Pre-stage counter section 2.12... Post-stage counter section 3.13... Comparison circuit 4.14, 100, clock input 5.15... Comparison circuit Output 6.16... Output cuff of the front stage counter section, 17...
... Output of the subsequent counter section 8.18 ... Lower n bits of the frequency division ratio instruction input 9.19 ... Most significant 1 bit of the frequency division ratio instruction input 101-107 ... Flip-flop 108-113
...ExOR gate (exclusive OR gate) 114...OR gate (OR gate, counter exceeds Serato signal

Claims (2)

【特許請求の範囲】[Claims] (1)外部からの制御信号により、分周比が制御される
前段カウンタ部と、n(nは、自然数)個のフリップフ
ロップより構成され分周比が2^nである後段カウンタ
部と、複数組のnビットの入力の大小を比較する比較回
路と、カウンタ全体の分周比を外部より指定する(n+
1)ビットの分周比指示入力手段とからなり、前記前段
カウンタ部の出力は前記後段カウンタ部のクロック入力
となり、前記比較回路は前記後段カウンタ部のn個のフ
リップフロップの出力を一方の入力とし、前記分周比指
示入力手段のnビットをもう一方の入力とし、前記前段
カウンタ部は前記比較回路の出力と前記分周比指示入力
手段の少なくとも1ビットとを分周比切換えのための制
御信号とし、(n+1)ビットの前記分周比指示入力手
段によりカウンタ全体の分周比が制御されることを特徴
とする非同期式非論理形プログラマブルカウンタ。
(1) A front stage counter section whose frequency division ratio is controlled by an external control signal, and a rear stage counter section which is composed of n (n is a natural number) flip-flops and whose frequency division ratio is 2^n; The comparator circuit that compares the magnitude of multiple sets of n-bit inputs and the frequency division ratio of the entire counter are specified externally (n+
1) bit frequency division ratio instruction input means, the output of the preceding counter section serves as a clock input for the subsequent counter section, and the comparator circuit receives the outputs of the n flip-flops of the subsequent counter section as one input. and the n bits of the frequency division ratio instruction input means are used as the other input, and the pre-stage counter section inputs the output of the comparator circuit and at least one bit of the frequency division ratio instruction input means for switching the frequency division ratio. An asynchronous non-logical programmable counter, wherein the frequency division ratio of the entire counter is controlled by the frequency division ratio instruction input means of (n+1) bits, which is a control signal.
(2)前記後段カウンタ部がn個のフリップフロップよ
り構成されるリップルカウンタであることを特徴とする
請求項1記載の非同期式非論理形プログラマブルカウン
タ。
(2) The asynchronous non-logical programmable counter according to claim 1, wherein the subsequent counter section is a ripple counter composed of n flip-flops.
JP16287288A 1988-06-15 1988-06-30 Asynchronous non-logic type programmable counter Pending JPH0213127A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP16287288A JPH0213127A (en) 1988-06-30 1988-06-30 Asynchronous non-logic type programmable counter
US07/365,583 US5020082A (en) 1988-06-15 1989-06-13 Asynchronous counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16287288A JPH0213127A (en) 1988-06-30 1988-06-30 Asynchronous non-logic type programmable counter

Publications (1)

Publication Number Publication Date
JPH0213127A true JPH0213127A (en) 1990-01-17

Family

ID=15762870

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16287288A Pending JPH0213127A (en) 1988-06-15 1988-06-30 Asynchronous non-logic type programmable counter

Country Status (1)

Country Link
JP (1) JPH0213127A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009147936A (en) * 2007-12-11 2009-07-02 Swatch Group Research & Development Ltd Dual-modulus prescaler circuit operating at very high frequency

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009147936A (en) * 2007-12-11 2009-07-02 Swatch Group Research & Development Ltd Dual-modulus prescaler circuit operating at very high frequency

Similar Documents

Publication Publication Date Title
EP0445574A2 (en) Digital clock buffer circuit providing controllable delay
US5060243A (en) Ripple counter with reverse-propagated zero detection
US3849635A (en) High speed programmable counter
US4780894A (en) N-bit gray code counter
US4031476A (en) Non-integer frequency divider having controllable error
US5448606A (en) Gray code counter
GB2145857A (en) Up/down counter
JPH0213127A (en) Asynchronous non-logic type programmable counter
US3109990A (en) Ring counter with unique gating for self correction
US4692640A (en) Majority circuit comprising binary counter
US3745315A (en) Ripple-through counters having minimum output propagation delay times
RU2037958C1 (en) Frequency divider
JPS6258725A (en) Counter circuit
KR200155054Y1 (en) Counter circuit
US4581751A (en) Reversible shift register
JP2984429B2 (en) Semiconductor integrated circuit
US3862401A (en) Multi-phase pulse counter
JP2658232B2 (en) N-base counter
SU1522396A1 (en) Variable frequency divider
JP2682889B2 (en) Variable frequency divider
SU1448408A1 (en) Presettable synchronous counting device
JPH0514186A (en) Pulse width modulation circuit
SU1100730A1 (en) Controlled frequency divider with countdown equals sum from one to k of i
JPS6390236A (en) Alarm circuit for degradation of error rate
JPS63164616A (en) Binary counter