JPS5951785B2 - Asynchronous reversible counter - Google Patents

Asynchronous reversible counter

Info

Publication number
JPS5951785B2
JPS5951785B2 JP13192078A JP13192078A JPS5951785B2 JP S5951785 B2 JPS5951785 B2 JP S5951785B2 JP 13192078 A JP13192078 A JP 13192078A JP 13192078 A JP13192078 A JP 13192078A JP S5951785 B2 JPS5951785 B2 JP S5951785B2
Authority
JP
Japan
Prior art keywords
flip
flop
flops
terminal
gate
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.)
Expired
Application number
JP13192078A
Other languages
Japanese (ja)
Other versions
JPS5558630A (en
Inventor
広治 中込
孝之 中島
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.)
Advantest Corp
Original Assignee
Takeda Riken Industries 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 Takeda Riken Industries Co Ltd filed Critical Takeda Riken Industries Co Ltd
Priority to JP13192078A priority Critical patent/JPS5951785B2/en
Publication of JPS5558630A publication Critical patent/JPS5558630A/en
Publication of JPS5951785B2 publication Critical patent/JPS5951785B2/en
Expired legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K23/00Pulse counters comprising counting chains; Frequency dividers comprising counting chains
    • H03K23/58Gating or clocking signals not applied to all stages, i.e. asynchronous counters
    • H03K23/62Gating or clocking signals not applied to all stages, i.e. asynchronous counters reversible

Description

【発明の詳細な説明】 この発明はフリップフロップが縦続的に接続され、その
初段にのみ計数入力パルスを与えることによって計数動
作を行い、しがも加算計数及び減算計数の何れをも可能
とした非同期式の可逆カウンタに関する。
[Detailed description of the invention] In this invention, flip-flops are connected in cascade, and counting is performed by applying a counting input pulse only to the first stage of the flip-flops, making it possible to perform both addition and subtraction counting. This invention relates to an asynchronous reversible counter.

従来の可逆カウンタは後で述べる理由により同期式のも
のに限られていた。
Conventional reversible counters have been limited to synchronous types for reasons described later.

、同期式可逆カウンタは例えば第1図に示すようにフリ
ップフロップFF1〜FF4が縦続的に配され、これ等
の隣接フリップフロップ間において第1ゲートG1及び
゛第2ゲートG2がそれぞれ配される。
In the synchronous reversible counter, for example, as shown in FIG. 1, flip-flops FF1 to FF4 are arranged in series, and a first gate G1 and a second gate G2 are respectively arranged between these adjacent flip-flops.

その各第1ゲートG1は前段の全てのフリップフロップ
のQ出力が入力され、第2ゲートG2は前段の全ての回
出力が入力される。
Each of the first gates G1 receives the Q outputs of all the flip-flops in the previous stage, and the second gate G2 receives the outputs of all the flip-flops in the previous stage.

又各ゲートG1には端子11よリアツブカウントパルス
が、各第2ゲ゛−トG2には端子12からダウンカウン
トパルスがそれぞれ与えられる。
Further, a rear count pulse is applied from a terminal 11 to each gate G1, and a down count pulse is applied from a terminal 12 to each second gate G2.

各フリップフロップの間においてその第1ゲートG1及
び第2ゲー)G2の出力がオアゲートG3を通じてその
後段フリップフロップのトリガ端子に与えられる。
Between each flip-flop, the outputs of the first gate G1 and the second gate G2 are applied to the trigger terminal of the subsequent flip-flop through an OR gate G3.

初段のフリップフロップFF1のトリガ端子にはオアゲ
ートG3を通じてアップカウントパルス 与えられる。
An up-count pulse is applied to the trigger terminal of the first-stage flip-flop FF1 through an OR gate G3.

図はプリセットカウンタとした場合であってプリセット
データー入力端子D1〜D4はそれぞれゲート64〜G
7を通じてフリップフロップFF1〜FF4のセット側
と、それ等を反転したものがリセット側とそれぞれ接続
される。
The figure shows the case where a preset counter is used, and the preset data input terminals D1 to D4 are connected to gates 64 to G, respectively.
7, the set side of flip-flops FF1 to FF4 and their inverted versions are connected to the reset side, respectively.

ゲート64〜G7は端子13からの制御信号によって開
閉制御されてデータ端子D工〜D4の状態をフリップフ
ロップFF1〜FF4にプリセットする.ことかて゛き
る。
The gates 64 to G7 are controlled to open and close by a control signal from the terminal 13 to preset the states of the data terminals D to D4 to the flip-flops FF1 to FF4. I can say that.

各フリップフロップ 端子T1〜T4にそれぞれ供給されると共にその各車力
I+ + ’/ トゲ−に111.−イ廿ぶ仝と鈎 浴
の中七清f桁上げ出力として端子15に得られる。
111. is supplied to each of the flip-flop terminals T1 to T4, and each vehicle power I+ + '/ is supplied to each of the flip-flop terminals T1 to T4. -A is obtained at terminal 15 as a carry output from the middle of the bath.

又各フリップフロップ され、その出力は桁下げ出力として端子17に得られる
Further, each flip-flop is performed, and the output thereof is obtained at the terminal 17 as a carry down output.

このように従来の同期式可逆カウンタにおいては端子1
1にアップカウントパルスを与えると、これが初段フリ
ップフロラフ下F□と第1ゲートG1の開閉状態に応じ
て他のフリップフロップにも与えられてアップカウント
が行なわれる。
In this way, in the conventional synchronous reversible counter, the terminal 1
When an up-count pulse is applied to the flip-flop 1, this pulse is also applied to other flip-flops according to the opening/closing states of the first stage flip-flop lower F□ and the first gate G1 to perform up-counting.

端子12にダウンパルスを与えるとゲートG2の開閉状
態に応じてフリップフロップFF1〜FF4に同時にト
リガ端子に与えられてダウンカウントが行なわれる。
When a down pulse is applied to the terminal 12, it is simultaneously applied to the trigger terminal of the flip-flops FF1 to FF4 to perform a down count depending on the open/closed state of the gate G2.

ところでこの可逆カウンタにおいてフリップフロラフ下
F1〜FF4の分解能付近の幅狭の入力パルスが与えら
れると、動作するものとしないものとが現われる。
By the way, when this reversible counter is given a narrow input pulse near the resolution of F1 to FF4 under the flip flow rough, some will operate and others will not.

そのようなパルスは例えば入力パルスをゲートにより取
出す場合に、そのゲートの両端で入力パルス幅が狭くさ
れるおそれがある。
For example, when an input pulse is extracted by a gate, the width of the input pulse may be narrowed at both ends of the gate.

そのようなパルスが1個だけ来ても入力されると、例え
ばフリップフロップの状態FF1〜FF4が1111の
場合は本来は全て0になるべきであるがフリップフロッ
プの動作バラツキのために0111とか0011などと
なり、全くでたらめな計数値となってしまう。
If only one such pulse is input, for example, if the states FF1 to FF4 of the flip-flops are 1111, they should all be 0, but due to variations in the operation of the flip-flops, they may become 0111 or 0011. etc., resulting in completely random counts.

この場合フリップフロップFF1〜FF4を1桁の計数
部として一つの半導体集積回路と構成した場合において
はそのフリップフロップFF1〜FF4の分解能を揃っ
たものとすることも可能である。
In this case, if the flip-flops FF1 to FF4 are configured as one semiconductor integrated circuit as a one-digit counting section, it is also possible to make the resolutions of the flip-flops FF1 to FF4 the same.

しかしそのようなカウンタを縦続接続して複数桁の計数
を行う場合は各桁間の分解能にバラツキが生じて誤った
計数を行なうおそれがある。
However, when such counters are connected in cascade to count multiple digits, there is a risk that the resolution between the digits will vary, leading to erroneous counting.

従って従来においてはこのように幅の狭いパルスが与え
られないように只ルス分別器を用いて分解能付近のパル
スは計数パルスとして与えられないようにする考慮がさ
れていた。
Therefore, in the past, in order to prevent such narrow pulses from being given, consideration has been given to using a pulse separator to prevent pulses near the resolution from being given as counting pulses.

非同期式カウンタにおいては例えば第2図にアップカウ
ンタの場合を示すように、入力端子11からのパルスは
初段のフリップフロラフ下F1のトリガ端子のみに与え
られ、各フリップフロップFF1〜FF4はその前段の
Q出力がトリガ端子Tに順次直接供給きれている。
In an asynchronous counter, for example, as shown in the case of an up-counter in FIG. 2, the pulse from the input terminal 11 is applied only to the trigger terminal of the lower flip-flop F1 in the first stage, and each flip-flop FF1 to FF4 is connected to the previous stage. Q outputs are directly supplied to the trigger terminal T in sequence.

従って入力端子11にフリップフロップあ分解能付近の
パルスが与えられた場合は初段のフリップフロップFF
1が動作するか否かであり、パルスを1個計数するかし
ないかだけであるから、その計数値が大きく狂うことは
ない。
Therefore, if a pulse near the resolution of the flip-flop is given to the input terminal 11, the first stage flip-flop FF
1 is whether it operates or not, and only whether one pulse is counted or not, so the counted value will not be greatly deviated.

非同期式のダウンカウンタは第3図に示すように前段の
フリップフロップのQ出力が次の後段のフリップフロッ
プのトリガ入力に直接与えられるようにフリップフロッ
プが順次縦続接続されている。
As shown in FIG. 3, the asynchronous down counter has flip-flops connected in series in such a way that the Q output of the previous flip-flop is directly applied to the trigger input of the next subsequent flip-flop.

この場合もその入力パルスの幅が狭くなった場合におけ
る誤計数は1だはであって大きくずれることはない。
In this case as well, when the width of the input pulse becomes narrow, the miscount is only 1 and does not deviate significantly.

ところでこれ等の非同期式アップカウンタとダウンカウ
ンタとを単に組合せると、例えば第4図に示すようにな
る。
By the way, if these asynchronous up counters and down counters are simply combined, the result will be as shown in FIG. 4, for example.

隣接するフリップフロップの間に第1ゲートG1、第2
ゲートG2を配し、その前段のフリップフロップのQ出
力を第1ゲートG1に、Q出力を第2ゲートG2にそれ
ぞれ入力し、これ等ゲートG1,G2の出力をオアゲー
トG3を通じて次の後段のフリップフロップのトリガ入
力Tに与える。
The first gate G1 and the second gate G1 are connected between adjacent flip-flops.
A gate G2 is arranged, the Q output of the flip-flop in the previous stage is inputted to the first gate G1, the Q output is inputted to the second gate G2, and the outputs of these gates G1 and G2 are input to the flip-flop in the next subsequent stage through the OR gate G3. to the trigger input T of the trigger.

端子18からのアップダウン切替制御信号により、それ
が高レベルの時、各第1ゲ−)G1を開き、低レベルの
時各第2ゲートG2を開くようにしてアップカウント及
び゛ダウンカウントをそれぞれ動作させる。
According to the up/down switching control signal from the terminal 18, when it is at a high level, each first gate (G1) is opened, and when it is at a low level, each of the second gates (G2) is opened, thereby causing an up count and a down count, respectively. make it work.

この第4図に示した構成では単にアップカウントだけ或
いはダウンカウントだけで使用すれば問題ない。
With the configuration shown in FIG. 4, there is no problem if it is used only for up-counting or just down-counting.

しかしアップカラン1へし、その計数値からダウンカウ
ントするように相互の切替えをすると、その切替えの際
に第1ゲー)G□、第2ゲートG2の出力が反転してそ
の後段のフリップフロップのトリガ端子Tに有効なトリ
ガパルスを与える場合が生じる。
However, when switching to up-count run 1 and down-counting from that count value, the outputs of the first gate) G A case may arise in which an effective trigger pulse is applied to the trigger terminal T.

従ってこの第4図に示したものは可逆カウンタとして使
用することができない。
Therefore, the counter shown in FIG. 4 cannot be used as a reversible counter.

このような点から従来においては可逆カウンタとしては
同期式のみが使用されていた。
From this point of view, conventionally only synchronous counters have been used as reversible counters.

この発明の目的は入力パルスの幅がフリップフロップの
分解能近くになっても一つだけの計数誤りしかない非同
期方式とされ、しかも計数動作の途中で゛アップカウン
トとダウンカウントとの切替えを行なっても誤計数をし
ない非同期式可逆カウンタを提供することにある。
The object of this invention is to provide an asynchronous method in which only one counting error occurs even when the width of the input pulse approaches the resolution of the flip-flop, and to switch between up-counting and down-counting during the counting operation. Another object of the present invention is to provide an asynchronous reversible counter that does not cause erroneous counting.

この発明によればフリップフロップが縦続的に配され、
これ等の隣接するものの間に第1ゲート、第2ゲートが
それぞれ配される。
According to this invention, flip-flops are arranged in series,
A first gate and a second gate are respectively arranged between these adjacent gates.

アツブダウシ切替信号によってそれが一方の論理状態の
場合は第1ゲートが開かれて前段フリップフロップのQ
出力か゛後段のフリップフロップ 与えられ、切替信号が他の論理状態において前段の71
戸ンブフロツブのQ出力が後段のフリップフロップのト
リガ入力に与えられ、初段フリップフロップのみに計数
人力パルスが与えられてアップダウンカウンタが構成さ
れる。
If it is in one logic state, the first gate is opened and the Q of the previous flip-flop is
The output is given to the flip-flop in the subsequent stage, and the switching signal is applied to the flip-flop in the previous stage in other logic states.
The Q output of the door block is applied to the trigger input of the subsequent flip-flop, and a counting pulse is applied only to the first-stage flip-flop to form an up/down counter.

更に各フリップフロップの内容を記憶保持することがで
きるレジスタが設けられ、アップダウン切替信号の切替
時点においてその直前にフリップフロップの各内容が上
記レジスタに移され、アップダウンの切替えが行なわれ
た後に上記レジスタに移された内容が再びフリップフロ
ップにそれぞれ戻される。
Furthermore, a register capable of storing and holding the contents of each flip-flop is provided, and the contents of each flip-flop are transferred to the register immediately before the up-down switching signal is switched, and after the up-down switching is performed. The contents transferred to the registers are returned to the respective flip-flops again.

このようにしてアップダウン切替時に誤動作が生じない
ようにされる。
In this way, malfunctions are prevented from occurring during up/down switching.

例えば第5図に示すように非同期式計数器21が設けら
れ、これは端子11のタロツク信号を計数する。
For example, as shown in FIG. 5, an asynchronous counter 21 is provided which counts the tarok signal at terminal 11.

この計数器21は端子18からのアップダウン切替信号
によってアップカウント或いはダウンカウントをする。
This counter 21 performs up-counting or down-counting in response to an up-down switching signal from the terminal 18.

この切替信号18は制御回路22にも供給され、その切
替信号18の発生前に可逆計数器21の内容はレジスタ
23に制御回路22を通じて移され、切替信号による切
替えが終った後に再び制御回路22を通じてレジスタ2
3の内容はカウンタ21に戻される。
This switching signal 18 is also supplied to the control circuit 22, and before the switching signal 18 is generated, the contents of the reversible counter 21 are transferred to the register 23 through the control circuit 22, and after the switching by the switching signal is completed, the contents of the reversible counter 21 are transferred to the control circuit 22 again. through register 2
The contents of 3 are returned to the counter 21.

例えば第6図に第4図と対応する部分に同一符号をつけ
て示す。
For example, in FIG. 6, parts corresponding to those in FIG. 4 are shown with the same reference numerals.

この例においては計数用のフリップフロップとしてはプ
リセット端子を持つトリガ型フリツプラロツプFF1〜
FF4が設けられている。
In this example, the counting flip-flops are trigger type flip-flops FF1 to FF1 with preset terminals.
FF4 is provided.

その各隣接するフリップフロップの間にゲートG1,G
2がそ五ぞれ設けられ、更にオテゲニトG3が設けられ
ている。
Gates G1, G between each adjacent flip-flop
2 are provided respectively, and an Otegenite G3 is further provided.

端子18よりの切替信号が高レベルの場合はゲートG1
が開かれ、その前段のフリップフロップ を通じて後段フリップフロップのトリガ端子Tに与えら
れる。
When the switching signal from terminal 18 is high level, gate G1
is opened and applied to the trigger terminal T of the subsequent flip-flop through the preceding flip-flop.

又端子18よりの切替信号が低レベルの場合はインバー
タ24を通じてゲートG2が開かれ、前段のフリップフ
ロップのQ出力はゲートG2,G3を通じて後段のフリ
ップフロップのトリガ端子Tに与えられる。
Further, when the switching signal from the terminal 18 is at a low level, the gate G2 is opened through the inverter 24, and the Q output of the flip-flop at the front stage is applied to the trigger terminal T of the flip-flop at the rear stage through the gates G2 and G3.

初段のフリップフロップFF,のトリガ端子には端子1
1から計数人力パルスが与えられる。
Terminal 1 is the trigger terminal of the first stage flip-flop FF.
A counting human pulse is given from 1.

このようにして可逆計数器21が構成される。In this way, the reversible counter 21 is configured.

この計数器21のフリップフロップFF1〜FF4の内
容を一時蓄えるレジスタ23としてシフトレジスタが設
けられ、このシフトレジスタ23の内容をフリップフロ
ップFF1〜FF4にセットすることができ、つまりプ
リセットすることが可能とされた場合である。
A shift register is provided as a register 23 that temporarily stores the contents of the flip-flops FF1 to FF4 of this counter 21, and the contents of this shift register 23 can be set to the flip-flops FF1 to FF4, that is, can be preset. This is the case.

シフトレジスタ23は各フリップフロップFF1〜FF
4と対応して4個のD型フリツプフロツフ下F5〜FF
8により構成され、これ等が縦続的に接続される。
The shift register 23 includes each flip-flop FF1 to FF.
4, corresponding to 4 D-type flip-flops lower F5 to FF
8, which are connected in series.

その初段のフリップフロップFF5のデータ端子りは入
力端子25に接続され、これよりプリセットすべきテ゛
−夕が入力される。
The data terminal of the first stage flip-flop FF5 is connected to the input terminal 25, from which the data to be preset is input.

又端子26からフリップフロップFF5〜FF8のクロ
ック端子にシフトパルスか与えられる。
A shift pulse is also applied from the terminal 26 to the clock terminals of the flip-flops FF5 to FF8.

制御回路部分22においてはプ1月ンプフロツプFF1
〜FF4の各Q出力か゛ゲート27〜30をそれぞれ通
じ、更にインバータ31〜34を通じてレジスタ23の
フリップフロラフ下F5〜FF8のプリセット端子PS
に与えられる。
In the control circuit section 22, the pump flop FF1
~ Each Q output of FF4 passes through gates 27 to 30, and further passes through inverters 31 to 34 to preset terminals PS of F5 to FF8 under the flip flow rough of register 23.
given to.

これ等ゲート27〜30は端子35よりの制御信号によ
って開閉制御される。
These gates 27 to 30 are controlled to open or close by a control signal from a terminal 35.

更に端子36よりのス斗ア信号によってデータを移すた
めのタイミングカ4ゲート27〜30に与えられる。
Further, a signal from a terminal 36 is applied to timing signals 27-30 for transferring data.

又フリツブシロップFF5〜FF8各Q出力はゲート3
7〜40を通じ、更にインバータ41〜44を通じてフ
リップフロップFF1〜FF4のプリセット端子PSに
与えられる。
Also, Fritsub syrup FF5 to FF8 each Q output is gate 3
7 to 40 and further to preset terminals PS of flip-flops FF1 to FF4 through inverters 41 to 44.

ゲート37〜40には端子36よりのストア信号もタイ
ミングとして与えられると供に端子35よりの制御信号
がインバータ45で反転されて与えられている。
A store signal from a terminal 36 is also applied as timing to the gates 37 to 40, and a control signal from a terminal 35 is inverted and applied to the gates 37-40.

更に端子46より計数器列ノア信号がオアゲート47を
通じ、更にインバータ48を通じて各フリップフロップ
FF1〜FF4のリセット端子Rに与見られる。
Furthermore, the counter column NOR signal is applied from the terminal 46 through the OR gate 47 and further through the inverter 48 to the reset terminal R of each of the flip-flops FF1 to FF4.

端子49よりのリセット信号がオアゲニト47に供給さ
れると共に、インバータへ1を通じてレジスタのフリッ
プフロップFF5〜FF8のリセット端子Rに与えられ
ている。
A reset signal from the terminal 49 is supplied to the register 47, and is also supplied to the reset terminals R of the flip-flops FF5 to FF8 of the register through an inverter 1.

例えば第7図Aに示すリセットパルスが端子4つに発生
し、これによりフリップフロップFF1〜FF4及びF
F5〜FF8は全てリセットされる。
For example, the reset pulse shown in FIG. 7A is generated at four terminals, which causes flip-flops FF1 to FF4 and F
F5 to FF8 are all reset.

その後第7図Bに示すように端子11よりの計数パルス
が与えられ、これは例えばゲート信号の期間だけ与えら
れ、いわゆるゲーテッドパルスである。
Thereafter, as shown in FIG. 7B, a counting pulse is applied from the terminal 11, which is applied only for the period of the gate signal, for example, and is a so-called gated pulse.

この時例えば端子18の切替信号が第7図Cに示すよう
に高レベルであり、アップカウント状態になっていると
、端子11よりの計数入力はアップカウントされる。
At this time, for example, if the switching signal at the terminal 18 is at a high level as shown in FIG.

通常の計数動作状態によっては端子35よりの制御信号
は第7図りに示すように高レベルとされている。
Depending on the normal counting operation state, the control signal from the terminal 35 is at a high level as shown in Figure 7.

端子11よりの次のゲーテッドパルスにおいてダウンカ
ウントにする場合は、アップカウント入力が終ったこと
によって端子36に第7図Eに示すようにストア信号を
与え、この時端子35の制御信号はまだ高レベルのま・
とされる。
If the next gated pulse from terminal 11 is to be used as a down-count, a store signal is applied to terminal 36 as shown in FIG. Level of Ma・
It is said that

従ってフリップフロップ 0をそれぞれ通じてフリップフロップFF5〜FF8に
与えられ、その高レベルのものはそれぞれフリップフロ
ップFF5〜FF8の対応するものが高レベルにセット
される。
Therefore, it is applied to flip-flops FF5 to FF8 through flip-flop 0, respectively, and its high level is set to a high level in the corresponding ones of flip-flops FF5 to FF8, respectively.

その時間t1の後端子18の切替信号は第7図Cに示す
ように低レベルとされ、つまりダウンカウント状態とさ
れ、更に時間t2の後端子350制御信号は第7図りに
示すように低レベルとされ、かつ端子46に第7図Fに
示すようにクリア信号が与えられてフリップフロップF
F□〜FF4’がリセットされる。
After the time t1, the switching signal at the terminal 18 is set to a low level as shown in FIG. , and a clear signal is applied to the terminal 46 as shown in FIG. 7F, so that the flip-flop F
F□ to FF4' are reset.

更に時間t3の後で端子35の制御信号が低レベルの間
に端子36に第7図旦(こ゛示すように再びストア信号
が与えられる。
Further, after time t3, while the control signal at terminal 35 is at a low level, the store signal is again applied to terminal 36 as shown in FIG.

こめ状態においてはゲート37〜40が開けられており
、フリップフロラフ下F5〜FF8の状態がそれ呵れこ
れ等ゲートを通じて再びフリップ70ツブFF1〜FF
4に戻される。
In the closed state, the gates 37 to 40 are opened, and the states of the lower flip flow roughs F5 to FF8 are the same, and the flip 70 knobs FF1 to FF are opened again through these gates.
Returned to 4.

時間t4の後制御信号が高レベルとなる。After time t4, the control signal goes high.

更に時間t5の後、端子11に再び計数入力が与えられ
、先のアップカウント動作時の計数値からダウンカウン
トが行なわれることになる。
Furthermore, after time t5, a count input is applied to the terminal 11 again, and a down count is performed from the count value at the previous up count operation.

このようにしてアップダウンの切替信号の切替時点にお
いてはその前に計数値がレジスタ23に退避され、切替
えた後に計数値が再?゛戻されるためアップダウンの切
替えによって誤計数となることはなく、しかも非同期式
で可逆カウンタが構成される。
In this way, before the up/down switching signal is switched, the counted value is saved in the register 23, and after the switching, the counted value is saved again? Since the counter is turned back, there is no possibility of erroneous counting due to up/down switching, and a reversible counter is constructed in an asynchronous manner.

尚テ゛−夕をこのカウンタにプリセットするには端子2
5よりプリセットすべきテ゛−夕を先ずシフトレジスタ
23に入れた後、端子350制御信号を低レベルとする
と共に端子36にストア信号を与えてフリップフロップ
FF5〜FF8の内容をフリップフロップFF,〜FF
4に移せば良い。
To preset the date to this counter, use terminal 2.
After inputting the data to be preset from 5 into the shift register 23, the control signal at the terminal 350 is set to low level and the store signal is applied to the terminal 36 to transfer the contents of the flip-flops FF5 to FF8 to the flip-flops FF, -FF.
You can move it to 4.

ストア信号制御信号或いはクリア信号等は入力信号や切
替信号等を基準として容易に作ることができることは特
に言うまでもないであろう。
It goes without saying that store signal control signals, clear signals, etc. can be easily created based on input signals, switching signals, etc.

又上述においてはレジスタ23を必要とするが、例えば
カウンタの計数値を表示することが多く、その場合レジ
スタが必要であり、そのレジスタを利用することもでき
る。
Further, in the above description, the register 23 is required, but for example, the count value of a counter is often displayed, and in that case, a register is required, and the register can also be used.

従って特に構成が複雑になることはない。Therefore, the configuration is not particularly complicated.

更にレジスタ23に移った際にそのレジスタ23に移さ
れたデータを他のデータと加算する等の加工を施して再
び計数器21に戻すこともできる。
Furthermore, when the data is transferred to the register 23, processing such as adding the data transferred to the register 23 with other data can be performed and the data can be returned to the counter 21 again.

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

第1図は従来の同期式可逆カウンタを示すブロック図、
第2図は非同期式アップカウンタを示す路線図、第3図
は非同期式ダウンカウンタを示す路線図、第4図は第2
図及び第3図を組合せた状態を示す路線図、第5図はこ
の発明による非同期式可逆カウンタの原理を示すブロッ
ク図、第6図はこの発明による非同期式可逆カウンタの
一例を示す論理回路図、第7図はその動作の説明に供す
るための波形図である。 21:可逆計数器、22:制御回路、23:レジスタ、
18ニアツブダウン切替信号入力端子、35:制御信号
入力端子、36:ストア信号入力端子、46:計数クリ
ア信号入力端子。
FIG. 1 is a block diagram showing a conventional synchronous reversible counter.
Figure 2 is a route map showing an asynchronous up counter, Figure 3 is a route map showing an asynchronous down counter, and Figure 4 is a route map showing an asynchronous down counter.
FIG. 5 is a block diagram showing the principle of the asynchronous reversible counter according to the present invention, and FIG. 6 is a logic circuit diagram showing an example of the asynchronous reversible counter according to the present invention. , FIG. 7 is a waveform diagram for explaining the operation. 21: Reversible counter, 22: Control circuit, 23: Register,
18 Near-sub-down switching signal input terminal, 35: Control signal input terminal, 36: Store signal input terminal, 46: Count clear signal input terminal.

Claims (1)

【特許請求の範囲】 1 フリップフロップが縦続的に配され、・その隣接す
るフリップフロップの間に第1ゲート及び第2ゲートが
それぞれ設けられ、アップダウン切替信号の一方の論理
状態で第1ゲー1−が開かれて前段のフリップフロップ
のQ出力が後段フ11ツブフロップのトリガ入力に与え
られ、他の論理状態において前段フリップフロップのQ
出力が第2ゲートを通じて後段フリップフロップのトリ
ガ入力に与えられ、計数パルスは初段のフリップフロッ
プのトリガ入力にのみ与えられ、上記フリップフロップ
の内容を記憶することができるレジスタが設けられ、上
記アップダウン切替信号の変(E・時点の。 前に上記各フリップフロップの内容を上記:レジスタに
移し、その後切替信号の変化後に上記レジスタの内容を
フリップフロップにそれぞれ戻して上記内容を上記フリ
・ツブフロップにプリセットする制御回路が設けられ、
上記プリセット後に:上記初段のフリップフロップの1
〜リガ入力に計数パルスを与えてなる非同期式可逆カウ
ンタ。
[Scope of Claims] 1. Flip-flops are arranged in series, and a first gate and a second gate are provided between adjacent flip-flops, and when one of the logic states of an up-down switching signal is applied, the first gate is switched on. 1- is opened and the Q output of the previous flip-flop is given to the trigger input of the subsequent flip-flop, and in other logic states, the Q output of the previous flip-flop is
The output is given to the trigger input of the subsequent flip-flop through the second gate, the counting pulse is given only to the trigger input of the first stage flip-flop, a register is provided that can store the contents of the flip-flop, and the up-down A change in the switching signal (at time E). Before that, the contents of each of the above flip-flops are transferred to the above registers, and then after the change of the switching signal, the contents of the above registers are returned to the flip-flops respectively, and the above contents are transferred to the above flip-flops. A control circuit for presetting is provided,
After the above preset: 1 of the above first stage flip-flop
~An asynchronous reversible counter that provides a counting pulse to the trigger input.
JP13192078A 1978-10-25 1978-10-25 Asynchronous reversible counter Expired JPS5951785B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13192078A JPS5951785B2 (en) 1978-10-25 1978-10-25 Asynchronous reversible counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13192078A JPS5951785B2 (en) 1978-10-25 1978-10-25 Asynchronous reversible counter

Publications (2)

Publication Number Publication Date
JPS5558630A JPS5558630A (en) 1980-05-01
JPS5951785B2 true JPS5951785B2 (en) 1984-12-15

Family

ID=15069276

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13192078A Expired JPS5951785B2 (en) 1978-10-25 1978-10-25 Asynchronous reversible counter

Country Status (1)

Country Link
JP (1) JPS5951785B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0744444B1 (en) * 1984-10-08 1995-05-15

Also Published As

Publication number Publication date
JPS5558630A (en) 1980-05-01

Similar Documents

Publication Publication Date Title
JPS631779B2 (en)
US4607173A (en) Dual-clock edge triggered flip-flop circuits
US5359636A (en) Register control circuit for initialization of registers
EP0631391A1 (en) Decoded counter with error check and self-correction
JPS5951785B2 (en) Asynchronous reversible counter
US4736395A (en) Logic circuit having a test data loading function
JP2984429B2 (en) Semiconductor integrated circuit
US4581751A (en) Reversible shift register
JP2923175B2 (en) Clock generation circuit
JPH05291895A (en) Clock selection circuit
JPS5943013B2 (en) Asynchronous reversible counter
KR840001223B1 (en) Shift resister attached latch circuit
JP2810713B2 (en) Timing generator
JP2533946B2 (en) Integrated circuit
JPH0221177B2 (en)
KR910001070B1 (en) Ring-counter circuit of three gata type
JPH0193916A (en) Synchronous state holding circuit
SU693372A1 (en) Divider
SU369715A1 (en) THIRD POTENTIAL TRIGGER
JPH04243316A (en) Start timing setting changeover system for pulse signal
JPS5831620A (en) Ternary ring counter
JPH0653819A (en) Synchronizing counter
JPH05243918A (en) Flip flop
JPH0744417A (en) Test circuit for microcomputer
JPH02206222A (en) Counter