JPH06311025A - Up-down counter circuit - Google Patents

Up-down counter circuit

Info

Publication number
JPH06311025A
JPH06311025A JP9991993A JP9991993A JPH06311025A JP H06311025 A JPH06311025 A JP H06311025A JP 9991993 A JP9991993 A JP 9991993A JP 9991993 A JP9991993 A JP 9991993A JP H06311025 A JPH06311025 A JP H06311025A
Authority
JP
Japan
Prior art keywords
output
signal
control signal
stage
terminal
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.)
Withdrawn
Application number
JP9991993A
Other languages
Japanese (ja)
Inventor
真一 ▲高▼妻
Shinichi Takatsuma
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.)
Oki Electric Industry Co Ltd
Oki Micro Design Miyazaki Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Oki Micro Design Miyazaki 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 Oki Electric Industry Co Ltd, Oki Micro Design Miyazaki Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP9991993A priority Critical patent/JPH06311025A/en
Publication of JPH06311025A publication Critical patent/JPH06311025A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To obtain an up-down counter whose count is unchanged by switching the count operation executed by the up-down counter circuit before a switching signal is inputted even when up-count or down-count is switched on the way of count. CONSTITUTION:The up-counter is provided with a control signal generating circuit 60 generating a 1st control signal A and a 2nd control signal B based on a 2nd clock signal CLK2 and a switching signal U/D. Furthermore, 2nd, 3rd gate circuits 81-84 inverting outputs of delay flip-flop circuits D-FF 51-54 of each stage with the 1st control signal A and plural multiplexers 91-94 selecting an output of the flip-flop circuits D-FF 51-54 of each stage based on the 2nd control signal B are provided, then even when up-count and down- count are selected on the way of the count, the accurate up-down counter circuit in which the count is not deviated is obtained. Thus, a means correcting the count or the like is not required.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、LSI等で構成され、
デジタル計測器、電子計算機等で幅広く使用されている
アップダウンカウンタ回路に関するものである。
BACKGROUND OF THE INVENTION The present invention comprises an LSI or the like,
The present invention relates to an up / down counter circuit widely used in digital measuring instruments, electronic calculators, and the like.

【0002】[0002]

【従来の技術】図2は、従来のアップカウンタの構成例
を示す回路図である。このアップカウンタは、クロック
信号CLKのパルス数を加算計数(アップカウント)す
る16進のアップカウンタであり、クロック信号CLK
用の入力端子TCと、カウンタ値を構成する出力信号S
Q1〜SQ4を出力する出力端子T1〜T4とを有して
いる。アップカウンタは、縦続接続された4段の遅延形
フリップフロップ(以下、D−FFという)11〜14
で構成されている、各段のD−FF11〜14は、出力
信号sq1〜sq4を出力する正相の出力端子Qと、出
力信号sq1〜sq4とは逆相の出力信号sq1/〜s
q4/を出力する逆相の出力端子Q/と、データ入力端
子Dと、クロック信号入力用クロック端子Cとを、それ
ぞれ有している。その各段のD−FF11〜14の出力
端子Qが、出力端子T1〜T4にそれぞれ接続されてい
ると共に、各段のD−FF11〜14の出力端子Q/
が、それぞれのD−FF11〜14の入力端子Dに接続
されいる。入力端子TCは、初段のD−FF11のクロ
ック端子Cに接続され、D−FF12〜14の各クロッ
ク端子Cには、前段のD−FFの出力端子Qが接続され
ている。
2. Description of the Related Art FIG. 2 is a circuit diagram showing a configuration example of a conventional up counter. The up counter is a hexadecimal up counter that counts (up counts) the number of pulses of the clock signal CLK.
Input terminal TC for output and an output signal S forming a counter value
It has output terminals T1 to T4 for outputting Q1 to SQ4. The up-counters are four stages of delay type flip-flops (hereinafter referred to as D-FFs) 11 to 14 which are connected in cascade.
The D-FFs 11 to 14 of the respective stages, which are configured by, are output terminals sq1 to sq4 of positive phase which output the output signals sq1 to sq4 and output signals sq1 / to s of a phase opposite to the output signals sq1 to sq4.
It has a reverse-phase output terminal Q / for outputting q4 /, a data input terminal D, and a clock signal input clock terminal C, respectively. The output terminals Q of the D-FFs 11 to 14 in each stage are connected to the output terminals T1 to T4, respectively, and the output terminals Q / of the D-FFs 11 to 14 in each stage are
Are connected to the input terminals D of the respective D-FFs 11-14. The input terminal TC is connected to the clock terminal C of the first-stage D-FF 11, and the output terminal Q of the previous-stage D-FF is connected to each clock terminal C of the D-FFs 12 to 14.

【0003】次に、図2の動作を説明する。クロック信
号CLKは、初段のD−FF11のクロック端子Cから
入力され、そのクロック信号CLKの立ち下がりにおい
て、このD−FF11が出力端子Q/からの出力信号s
q1/を入力端子Dでラッチして出力端子Qから出力信
号sq1を出力する。各段のD−FF12〜14は、同
様に、その前段のD−FF11〜13の出力信号sq1
〜sq3をクロック端子Cから入力して出力信号sq2
〜sq4をそれぞれ出力する。これらの出力信号sq1
〜sq4は、出力端子T1〜T4へ出力されてそれぞれ
出力信号SQ1〜SQ4となる。各段のD−FF11〜
14は、そのクロック端子Cからの入力パルス2つで1
の出力パルスをそれぞれ生成してシフトする。このアッ
プカウンタ全体としてみれば、出力信号SQ1,SQ
2,SQ3,SQ4のレベルの高と低を“1”と“0”
に対応させると、その出力信号SQ1〜SQ4の変化
は、クロック信号CLKを2進法でアップカウントして
クロック信号CLK16個のパルスですべての出力信号
SQ1〜SQ4が元の状態に戻る16進のカウンタ値と
なる。
Next, the operation of FIG. 2 will be described. The clock signal CLK is input from the clock terminal C of the first-stage D-FF 11, and at the fall of the clock signal CLK, the D-FF 11 outputs the output signal s from the output terminal Q /.
q1 / is latched at the input terminal D and the output signal sq1 is output from the output terminal Q. Similarly, the D-FFs 12 to 14 of the respective stages similarly output signals sq1 of the D-FFs 11 to 13 of the preceding stage.
~ Sq3 is input from the clock terminal C and the output signal sq2
Output ~ sq4. These output signals sq1
To sq4 are output to output terminals T1 to T4 and become output signals SQ1 to SQ4, respectively. D-FF11 ~ of each stage
14 is two input pulses from the clock terminal C.
Output pulses are generated and shifted. As a whole of the up counter, the output signals SQ1, SQ
2, high and low levels of SQ3 and SQ4 are "1" and "0"
The change in the output signals SQ1 to SQ4 corresponds to the hexadecimal notation in which all the output signals SQ1 to SQ4 return to their original states by 16 pulses of the clock signal CLK by counting up the clock signal CLK in a binary system. It becomes the counter value.

【0004】図3は、従来のダウンカウンタの構成例を
示す回路図である。このダウンカウンタは、クロック信
号CLKのパルス数を減算計数(ダウンカウント)して
16個のパルスで元の状態に戻る16進のダウンカウン
タであり、クロック信号CLK用の入力端子TCと、カ
ウンタ値を構成する出力信号SQ1〜SQ4を出力する
出力端子T1〜T4とを有している。図3は、図2と同
様に、縦続接続された4段のD−FF21〜24で構成
され、各段のD−FF21〜24は、出力信号sq1〜
sq4を出力する正相の出力端子Qと、出力信号sq1
〜sq4とは逆相の出力信号sq1/〜sq4/を出力
する逆相の出力端子Q/と、データ入力端子Dと、クロ
ック信号入力用クロック端子Cとを、それぞれ有してい
る。各段のD−FF21〜24の出力端子Qが、出力端
子T1〜T4に接続されていると共に各段のD−FF2
1〜24の出力端子Q/が、D−FF21〜24のそれ
ぞれの入力端子Dに接続されいる。入力端子TCは、初
段のD−FF21のクロック端子Cに接続され、図2と
は異なり、D−FF22〜24の各クロック端子Cに
は、その前段のD−FFの逆相出力端子Q/が接続され
ている。
FIG. 3 is a circuit diagram showing a configuration example of a conventional down counter. The down counter is a hexadecimal down counter that subtracts (down counts) the number of pulses of the clock signal CLK and returns to the original state with 16 pulses. The down counter is an input terminal TC for the clock signal CLK and a counter value. And output terminals T1 to T4 for outputting output signals SQ1 to SQ4. Similar to FIG. 2, FIG. 3 is composed of four stages of D-FFs 21 to 24 connected in cascade, and the D-FFs 21 to 24 of each stage output signals sq1 to sq1.
A positive-phase output terminal Q that outputs sq4 and an output signal sq1
It has an output terminal Q / of a reverse phase for outputting output signals sq1 / to sq4 / of a phase opposite to that of sq4, a data input terminal D, and a clock terminal C for clock signal input. The output terminals Q of the D-FFs 21 to 24 of each stage are connected to the output terminals T1 to T4 and the D-FF2 of each stage is connected.
The output terminals Q / of 1 to 24 are connected to the respective input terminals D of the D-FFs 21 to 24. The input terminal TC is connected to the clock terminal C of the first-stage D-FF 21, and unlike FIG. 2, each clock terminal C of the D-FFs 22 to 24 has a reverse-phase output terminal Q / of the preceding D-FF. Are connected.

【0005】次に図3の動作を説明する。クロック信号
CLKは、初段のD−FF21のクロック端子Cから入
力され、そのクロック信号CLKの立ち下がりにおい
て、D−FF21がその出力端子Q/からの出力信号s
q1/を入力端子Dでラッチして出力端子Qから出力信
号sq1を出力する。各D−FF22〜24は、図2と
異なり、その前段のD−FF21〜23の逆相出力端子
Q/からの出力信号sq1/〜sq3/をクロック端子
Cから入力して出力信号sq1〜sq4をそれぞれ出力
する。これらの出力信号sq1〜sq4は、出力端子T
1〜T4へ出力されてそれぞれ出力信号SQ1〜SQ4
となる。そのため、出力信号SQ1,SQ2,SQ3,
SQ4の変化は、クロック信号CLKを2進法でダウン
カウントする16進のカウンタ値となる。
Next, the operation of FIG. 3 will be described. The clock signal CLK is input from the clock terminal C of the first-stage D-FF 21, and the D-FF 21 outputs the output signal s from its output terminal Q / at the falling edge of the clock signal CLK.
q1 / is latched at the input terminal D and the output signal sq1 is output from the output terminal Q. Different from FIG. 2, each D-FF 22 to 24 inputs the output signal sq1 / to sq3 / from the anti-phase output terminal Q / of the preceding D-FF 21 to 23 from the clock terminal C and outputs the output signal sq1 to sq4. Are output respectively. These output signals sq1 to sq4 are output to the output terminal T
1 to T4 and output signals SQ1 to SQ4, respectively.
Becomes Therefore, the output signals SQ1, SQ2, SQ3,
The change in SQ4 becomes a hexadecimal counter value that down-counts the clock signal CLK by the binary system.

【0006】図4は、従来の16進のアップダウンカウ
ンタ回路の構成例を示す図である。図4のアップダウン
カウンタ回路は、図2及び図3のアップカウンタとダウ
ンカウンタとが合成されて、切換え信号U/Dによって
アップカウント又はダウンカウントを切替えることがで
きる。このアップダウンカウンタ回路は、図2及び図3
と同様に、クロック信号CLK用の入力端子TCと、カ
ウンタ値を構成する出力信号SQ1〜SQ4を出力する
出力端子T1〜T4を有し、このカウンタ回路は、さら
に、カウント動作を切換える切換え信号U/Dの入力端
子TSを有している。このカウンタ回路は、4段のD−
FF31〜34と切換え信号U/Dに基づいて前段のD
−FF31〜33の出力端子Qまたは出力端子Q/から
の出力信号のうちどちらか一方を選択して次段のD−F
F32〜34へ出力するマルチプレクサ35〜37を有
している。さらに、このカウンタ回路は、入力端子TS
に接続されて切換え信号U/Dとは逆相の切換え信号U
/DNを出力するインバータ38を有している。前記各
段のD−FF31〜34は、その出力信号sq1〜sq
4を出力する正相の出力端子Qと、出力信号sq1〜s
q4とは逆相の出力信号sq1/〜sq4/を出力する
逆相の出力端子Q/と、データ入力端子Dと、クロック
信号入力用クロック端子Cとを、それぞれ有している。
各マルチプレクサ35〜37は、2個の2入力ANDゲ
ートと1個の2入力ORゲートで構成され、その各AN
Dゲートの一方の入力端子に切換え信号U/Dの入力端
子TSとインバータ38の出力端子がそれぞれ接続され
ている。その2個のANDゲートの出力端子がORゲー
トの入力端子に接続され、そのORゲートの出力端子が
マルチプレクサの出力端子となっている。初段のD−F
F31のクロック端子Cが入力端子TCに接続され、各
D−FF31〜34の正相出力端子Qが出力端子T1〜
T4に接続されていると共に逆相出力端子Q/がそのD
−FF31〜34のデータ入力端子Dに接続されてい
る。初段のD−FF31の出力端子Q,及び出力端子Q
/がマルチプレクサ35の各ANDゲートの他の入力端
子に接続され、そのマルチプレクサ35の出力端子が次
段のD−FF32のクロック端子に接続されている。同
様にして、D−FF32,33も、出力端子Q及び出力
端子Q/がマルチプレクサ36,37を介して次段のD
−FF33,34の各ロック端子Cに接続されている。
FIG. 4 is a diagram showing a configuration example of a conventional hexadecimal up / down counter circuit. In the up-down counter circuit of FIG. 4, the up-counter and the down-counter of FIGS. 2 and 3 are combined, and up-counting or down-counting can be switched by the switching signal U / D. This up / down counter circuit is shown in FIGS.
Similarly, it has an input terminal TC for the clock signal CLK and output terminals T1 to T4 for outputting the output signals SQ1 to SQ4 constituting the counter value. This counter circuit further has a switching signal U for switching the counting operation. It has an input terminal TS of / D. This counter circuit has four stages of D-
Based on the FFs 31 to 34 and the switching signal U / D, the preceding D
-Select either one of the output signals from the output terminals Q of the FFs 31 to 33 or the output terminal Q / to select the DF of the next stage.
It has multiplexers 35 to 37 for outputting to F32 to 34. Further, this counter circuit has an input terminal TS.
Connected to the switching signal U / D having a phase opposite to that of the switching signal U / D
It has an inverter 38 that outputs / DN. The output signals sq1 to sq of the D-FFs 31 to 34 at the respective stages are output.
Positive-phase output terminal Q for outputting 4 and output signals sq1 to sq1
It has a reverse-phase output terminal Q / for outputting output signals sq1 / -sq4 / having a phase opposite to q4, a data input terminal D, and a clock signal input clock terminal C, respectively.
Each of the multiplexers 35 to 37 is composed of two 2-input AND gates and one 2-input OR gate.
The input terminal TS of the switching signal U / D and the output terminal of the inverter 38 are connected to one input terminal of the D gate, respectively. The output terminals of the two AND gates are connected to the input terminals of the OR gate, and the output terminal of the OR gate is the output terminal of the multiplexer. First stage DF
The clock terminal C of F31 is connected to the input terminal TC, and the positive-phase output terminals Q of the D-FFs 31 to 34 are output terminals T1 to T1.
It is connected to T4 and the negative-phase output terminal Q /
-It is connected to the data input terminal D of FF31-34. Output terminal Q of the first stage D-FF31, and output terminal Q
/ Is connected to the other input terminal of each AND gate of the multiplexer 35, and the output terminal of the multiplexer 35 is connected to the clock terminal of the D-FF 32 at the next stage. Similarly, in the D-FFs 32 and 33, the output terminal Q and the output terminal Q / are connected to the D of the next stage via the multiplexers 36 and 37.
It is connected to each lock terminal C of -FF33 and 34.

【0007】次に、このアップダウンカウンタ回路の動
作を説明する。切換え信号U/Dの信号レベルが高レベ
ル側であるとき、図4の各マルチプレクサ35〜37
が、前段のD−FF31〜33の出力信号sq1〜sq
3を次段のD−FF32〜34へ出力するため、このア
ップダウンカウンタ回路は、図2のアップカウンタとし
て動作する。逆相の切換え信号U/DNの信号レベルが
高レベル側であるとき、図4の各マルチプレクサ35〜
37は、前段のD−FF31〜33の出力信号sq1/
〜sq3/を次段のD−FF32〜34へ出力するた
め、このアップダウンカウンタ回路は、図3のダウンカ
ウンタとして動作する。
Next, the operation of the up / down counter circuit will be described. When the signal level of the switching signal U / D is on the high level side, each of the multiplexers 35 to 37 in FIG.
Are output signals sq1 to sq of the D-FFs 31 to 33 in the previous stage.
3 is output to the D-FFs 32 to 34 in the next stage, the up / down counter circuit operates as the up counter in FIG. When the signal level of the reverse phase switching signal U / DN is on the high level side, each of the multiplexers 35 to 35 shown in FIG.
37 is an output signal sq1 / of the D-FFs 31 to 33 in the preceding stage.
Since up to sq3 / is output to the D-FFs 32 to 34 in the next stage, the up / down counter circuit operates as the down counter in FIG.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、図4の
ような従来のアップダウンカウンタ回路においては、ク
ロック信号CLKのパルスに対して、アップカウント動
作或いはダウンカウント動作をしている途中で、切換え
信号U/Dによってその動作を切換えようとすると、D
−FF32〜34のクロック端子Cへ入力されている信
号のレベルが反転され、それに伴い、各D−FF32〜
34の出力も反転にされてしまう。そのため、出力信号
SQ1〜SQ4が変化して切換え前のカウンタ値と切換
え後のカウンタ値が異なってしまうという課題があっ
た。この課題を解決するため、前記図4とは異なる方式
の次のようなアップダウンカウンタ回路が考えられる。
すなわち、D−FF32〜34のクロック端子Cへ入力
される出力信号を切換え信号U/Dによって切換えるの
ではなく、図5の様に、出力信号SQ1〜SQ4を出力
信号sq1〜sq4から出力信号sq1/〜sq4/
へ、或いは出力信号sq1/〜sq4/から出力信号s
q1〜sq4へ切換える方式によってもアップダウンカ
ウンタ回路が構成できる。
However, in the conventional up-down counter circuit as shown in FIG. 4, a switching signal is generated during the up-counting operation or the down-counting operation for the pulse of the clock signal CLK. If the operation is switched by U / D, D
-The levels of the signals input to the clock terminals C of the FFs 32 to 34 are inverted, and accordingly, the respective D-FFs 32 to
The output of 34 is also inverted. Therefore, there is a problem that the output signals SQ1 to SQ4 change and the counter value before switching and the counter value after switching differ. In order to solve this problem, the following up-down counter circuit of a method different from that of FIG. 4 can be considered.
That is, the output signals input to the clock terminals C of the D-FFs 32 to 34 are not switched by the switching signal U / D, but the output signals SQ1 to SQ4 are changed from the output signals sq1 to sq4 as shown in FIG. / ~ Sq4 /
To or from the output signal sq1 / to sq4 /
The up / down counter circuit can also be configured by the method of switching to q1 to sq4.

【0009】このカウンタ回路は、図4と同様に、クロ
ック信号CLK用の入力端子TCと、カウンタ値を構成
する出力信号SQ1〜SQ4を出力する出力端子T1〜
T4と、アップカウントとダウンカウントを切換える切
換え信号U/Dの入力端子TSとを、有する16進のア
ップダウンカウンタ回路である。このカウンタには、そ
れぞれデータ入力端子Dと、クロック信号CLK入力用
クロック端子Cと、出力信号sq1〜sq4を出力する
正相の出力端子Qと、出力信号sq1〜sq4とは逆相
の出力信号sq1/〜sq4/を出力する逆相の出力端
子Q/とを持つ4段の遅延形D−FF41〜44が、設
けられている。さらに、入力端子TSに接続されて切換
え信号U/Dとは逆相の切換え信号U/DNを出力する
インバータ49と、切換え信号U/Dに基づいて各段の
D−FF41〜44の出力端子Q,出力端子Q/からの
出力信号のうちどちらか一方を選択して出力端子T1〜
T4へ出力するマルチプレクサ45〜48とが、設けら
れている。各マルチプレクサ45〜48は、2個の2入
力ANDゲートと1個の2入力ORゲートで構成され、
その各ANDゲートの一方の入力端子に切換え信号U/
Dの入力端子TSまたはインバータ49の出力端子が、
それぞれ接続されている。その2個のANDゲートの出
力端子がORゲートの入力端子に接続され、そのORゲ
ートの出力端子がマルチプレクサの出力端子となって出
力端子T1〜T4にそれぞれ接続されている。初段のD
−FF41のクロック端子Cが入力端子TCに接続さ
れ、D−FF41の出力端子Q,出力端子Q/がマルチ
プレクサ45の2個のANDゲートの他方の入力端子に
それぞれ接続されている。同様にして、各段のD−FF
43,44,45の出力端子Q,Q/も、マルチプレク
サ46,47,48の入力端子に接続されている。ま
た、各D−FF42〜44は、その前段のD−FF41
〜43の出力端子Qが、それぞれのクロック端子Cに接
続されている。
Similar to FIG. 4, this counter circuit has an input terminal TC for the clock signal CLK and output terminals T1 to TQ1 for outputting output signals SQ1 to SQ4 constituting the counter value.
A hexadecimal up / down counter circuit having T4 and an input terminal TS of a switching signal U / D for switching between up-counting and down-counting. The counter has a data input terminal D, a clock signal CLK input clock terminal C, a positive-phase output terminal Q for outputting the output signals sq1 to sq4, and an output signal opposite in phase to the output signals sq1 to sq4. Four stages of delay type D-FFs 41 to 44 having output terminals Q / of opposite phase for outputting sq1 / to sq4 / are provided. Further, an inverter 49 which is connected to the input terminal TS and outputs a switching signal U / DN having a phase opposite to that of the switching signal U / D, and output terminals of the D-FFs 41 to 44 of each stage based on the switching signal U / D Select one of the output signals from Q and the output terminal Q /
Multiplexers 45 to 48 for outputting to T4 are provided. Each of the multiplexers 45 to 48 is composed of two 2-input AND gates and one 2-input OR gate,
A switching signal U / is applied to one input terminal of each AND gate.
The input terminal TS of D or the output terminal of the inverter 49 is
Each is connected. The output terminals of the two AND gates are connected to the input terminals of the OR gates, and the output terminals of the OR gates serve as the output terminals of the multiplexer and are connected to the output terminals T1 to T4, respectively. First stage D
The clock terminal C of the -FF 41 is connected to the input terminal TC, and the output terminal Q and the output terminal Q / of the D-FF 41 are connected to the other input terminals of the two AND gates of the multiplexer 45, respectively. Similarly, each stage D-FF
The output terminals Q and Q / of 43, 44 and 45 are also connected to the input terminals of the multiplexers 46, 47 and 48. Further, each of the D-FFs 42 to 44 has the D-FF 41 of the preceding stage.
Output terminals Q of ~ 43 are connected to respective clock terminals C.

【0010】図6は、このアップダウンカウンタのカウ
ンタ値を示す図である。図6を参照しつつアップカウン
トまたはダウンカウントの切換え時におけるカウンタ値
の変化を説明する。図6中のU/Dは、切換え信号U/
Dの信号のレベル、SQ1〜SQ4は、それぞれ出力信
号SQ1〜SQ4の信号レベルを示している。また、H
EXは、SQ1〜SQ4を2進法で読取り16進数に変
換したものである。切換え信号U/Dが“0”のとき、
このアップダウンカウンタ回路は、アップカウントを行
っている。HEXで3までアップカウントしたときにダ
ウンカウントをさせるために切換え信号U/Dを“1”
とすると、HEXは、Bとなり、HEXがBの状態から
ダウンカウントが行われる。ところが、この様に、図5
の方式でアップダウンカウンタ回路を構成しても、アッ
プカウント動作或いは、ダウンカウント動作をしている
途中で、切換え信号U/Dによってそのカウント動作を
切換えようとすると、切換え前のカウンタ値と切換え後
のカウンタ値が異なってしまうという課題は解消されな
い。本発明は前記従来技術が持っていた課題として、ア
ップカウント或いはダウンカウントの切換え時にカウン
タ値が変化する点について解決をしたアップダウンカウ
ンタ回路を提供するものである。
FIG. 6 is a diagram showing the counter value of the up / down counter. A change in the counter value when switching between up-counting and down-counting will be described with reference to FIG. U / D in FIG. 6 is a switching signal U /
D signal levels, SQ1 to SQ4, indicate the signal levels of the output signals SQ1 to SQ4, respectively. Also, H
EX is obtained by reading SQ1 to SQ4 by the binary system and converting them into hexadecimal numbers. When the switching signal U / D is "0",
The up / down counter circuit performs up counting. The switching signal U / D is set to "1" in order to count down when the HEX counts up to 3.
Then, HEX becomes B, and down counting is performed from the state where HEX is B. However, as shown in FIG.
Even if the up-down counter circuit is configured by the method described above, if the count operation is switched by the switching signal U / D during the up-counting operation or the down-counting operation, the counter value before switching is switched. The problem that the later counter values are different cannot be solved. The present invention provides an up-down counter circuit that solves the problem that the counter value changes when switching between up-counting and down-counting, as a problem that the above-mentioned prior art has.

【0011】[0011]

【課題を解決するための手段】本発明は、前記課題を解
決するために、所定のタイミングでデータを入力してそ
の正相出力信号及び逆相出力信号を出力する複数のフリ
ップフロップ(以下、FFという)が縦続接続されたア
ップカウンタ回路において、同一周期で位相の異なる第
1及び第2のクロック信号の内の第2のクロック信号と
アップカウントまたはダウンカウントを切換える切換え
信号とに基づき、第1の制御信号と第2の制御信号を生
成する制御信号発生回路と、前記第1のクロック信号に
同期して前記前段側のFFの正相または逆相出力信号を
前記後段のFFへそれぞれ出力する複数の第1のゲート
回路とを、設けている。さらに、前記第1のクロック信
号を前記初段のFFへ入力すると共に、前記第1の制御
信号を強制的に前記初段のFFへ入力して該FFの保持
データを反転させる第2のゲート回路と、前記第1のゲ
ート回路の出力信号を前記次段のFFへ入力すると共
に、前記第1の制御信号を強制的に前記次段のFFへ入
力して該FFの保持データを反転させる複数の第3のゲ
ート回路と、前記第2の制御信号に基づき、前記各段の
FFの正相出力信号またはその逆相出力信号のいずれか
一方を選択して出力する複数のマルチプレクサとが設け
られている。
In order to solve the above-mentioned problems, the present invention provides a plurality of flip-flops (hereinafter, referred to as a flip-flop for inputting data at a predetermined timing and outputting a positive-phase output signal and a negative-phase output signal thereof). FF) in cascade connection, based on a second clock signal of the first and second clock signals having the same cycle and different phases, and a switching signal for switching up or down counting, A control signal generating circuit for generating a first control signal and a second control signal, and outputs a positive-phase or negative-phase output signal of the front-stage FF to the rear-stage FF in synchronization with the first clock signal. And a plurality of first gate circuits that operate. Further, a second gate circuit for inputting the first clock signal to the first stage FF and forcibly inputting the first control signal to the first stage FF to invert the data held in the FF. A plurality of output signals of the first gate circuit are input to the FF of the next stage, and the first control signal is forcibly input to the FF of the next stage to invert the data held in the FF. A third gate circuit and a plurality of multiplexers for selecting and outputting either the positive-phase output signal of the FF of each stage or its negative-phase output signal based on the second control signal are provided. There is.

【0012】[0012]

【作用】本発明によれば、以上のようにアップダウンカ
ウンタ回路を構成したので、切換え信号が入力される
と、第1の制御信号と第2の制御信号が生成される。こ
の第1の制御信号によって各段のFFの保持データが反
転され、その反転されたFFの保持データが次段のFF
に入力される。そのため、切換え信号が入力される前に
アップダウンカウンタ回路の行っていたカウント動作が
切り替わる。それと同時に、第2の制御信号によって、
マルチプレクサの出力が、各段のFFの正相出力信号か
ら逆相出力信号に、または逆相出力信号から正相出力信
号に切換えられる。このことにより、カウント動作切換
えの前と後のカウンタ値を一致させることができる。従
って、前記課題を解決できるのである。
According to the present invention, since the up-down counter circuit is configured as described above, when the switching signal is input, the first control signal and the second control signal are generated. The first control signal inverts the data held in the FF in each stage, and the inverted data held in the FF is used in the FF in the next stage.
Entered in. Therefore, the counting operation performed by the up / down counter circuit is switched before the switching signal is input. At the same time, by the second control signal,
The output of the multiplexer is switched from the positive phase output signal of each stage FF to the negative phase output signal or from the negative phase output signal to the positive phase output signal. This makes it possible to match the counter values before and after the switching of the count operation. Therefore, the above problem can be solved.

【0013】[0013]

【実施例】図1は、本発明の実施例のアップダウンカウ
ンタを示す回路図である。このアップダウンカウンタ回
路は、基準クロック信号CLKから生成された第1のク
ロック信号CLK1によってアップカウント或いはダウ
ンカウントを行うと共に、切換え信号U/Dと前記基準
クロック信号CLKから生成されてクロック信号CLK
1と同一の周期であるが位相の異なる第2のクロック信
号CLK2とによってカウンタ値を変化させずにアップ
カウント或いはダウンカウントを切換えることのできる
16進のアップダウンカウンタ回路である。このカウン
タは、クロック信号CLK1用の入力端子TC1と、ク
ロック信号CLK2用の入力端子TC2と、切換え信号
U/Dの入力端子TSと、カウンタ値を構成する出力信
号SQ1〜SQ4を出力する出力端子T1〜T4とを有
している。
1 is a circuit diagram showing an up / down counter according to an embodiment of the present invention. The up / down counter circuit performs up-counting or down-counting with the first clock signal CLK1 generated from the reference clock signal CLK, and also generates the clock signal CLK from the switching signal U / D and the reference clock signal CLK.
A hexadecimal up / down counter circuit that can switch up-counting or down-counting without changing the counter value by a second clock signal CLK2 having the same cycle as that of 1 but a different phase. This counter has an input terminal TC1 for a clock signal CLK1, an input terminal TC2 for a clock signal CLK2, an input terminal TS for a switching signal U / D, and output terminals for outputting output signals SQ1 to SQ4 that form a counter value. It has T1 to T4.

【0014】このアップダウンカウンタ回路は、入力さ
れたクロック信号CLK1をアップカウント或いはダウ
ンカウントする4段のD−FF51〜54を備えてい
る。各D−FF51〜54は、それぞれデータ入力端子
Dと、クロック信号CLK入力用クロック端子Cと、出
力信号sq1〜sq4を出力する正相の出力端子Qと、
出力信号sq1〜sq4とは逆相の出力信号sq1/〜
sq4/を出力する逆相の出力端子Q/とを、有してい
る。また、切換え信号U/Dとクロック信号CLK2か
ら第1の制御信号A及び第2の制御信号Bを生成する制
御信号発生回路60を設けている。ここで、制御信号発
生回路60は、2個のD−FF61,62と、排他的論
理和回路63とを有し、入力端子TC2が、D−FF6
1,62のクロック端子Cに接続されて入力端子TSが
D−FF61のデータ入力端子Dに接続されている。ま
た、制御信号発生回路60の制御信号B用の出力端子
は、制御信号Bとは逆相の制御信号B/を出力するイン
バータ64に接続され、制御信号Bが制御信号Bと制御
信号B/とに分岐されるようになっている。前記D−F
F61の入力端子Dには、入力端子TSが接続され、さ
らに、該D−FF61の出力端子QがD−FF62のデ
ータ入力端子Dに接続され、そのD−FF62の出力端
子Qから制御信号Bが出力されるようになっている。前
記排他的論理和回路63の入力端子には、D−FF6
1,62の出力端子Qが接続され、この排他的論理和回
路63の出力端子がゲート回路81〜84の各入力端子
に接続されて制御信号Aが出力される。
The up / down counter circuit includes four stages of D-FFs 51-54 for up-counting or down-counting the input clock signal CLK1. Each of the D-FFs 51 to 54 has a data input terminal D, a clock signal CLK input clock terminal C, and a positive-phase output terminal Q that outputs the output signals sq1 to sq4.
Output signals sq1 /-having a phase opposite to that of the output signals sq1-sq4
It has an opposite-phase output terminal Q / for outputting sq4 /. Further, a control signal generation circuit 60 for generating the first control signal A and the second control signal B from the switching signal U / D and the clock signal CLK2 is provided. Here, the control signal generation circuit 60 has two D-FFs 61 and 62 and an exclusive OR circuit 63, and the input terminal TC2 is the D-FF6.
The input terminal TS is connected to the clock terminals C of 1, 62 and the data input terminal D of the D-FF 61. The output terminal for the control signal B of the control signal generation circuit 60 is connected to the inverter 64 that outputs the control signal B / having a phase opposite to that of the control signal B, and the control signal B outputs the control signal B and the control signal B / It is designed to branch to. DF
The input terminal TS of the F61 is connected to the input terminal TS, the output terminal Q of the D-FF61 is connected to the data input terminal D of the D-FF62, and the control signal B is output from the output terminal Q of the D-FF62. Is output. The input terminal of the exclusive OR circuit 63 has a D-FF 6
1, 62 output terminals Q are connected, the output terminal of the exclusive OR circuit 63 is connected to each input terminal of the gate circuits 81-84, and the control signal A is output.

【0015】また、このアップダウンカウンタ回路に
は、クロック信号CLK1に同期して前段側のD−FF
51〜53の出力を後段のD−FF52〜54へそれぞ
れ出力する第1のゲート回路71〜73と、クロック信
号CLK1と制御信号Aを入力してクロック信号CLK
1を出力すると共に制御信号Aを出力する第2のゲート
回路81と、前記ゲート回路71〜73の出力と制御信
号Aを入力してゲート回路71〜73の出力を出力する
と共に制御信号Aを出力する第3のゲート回路82〜8
4と、前記制御信号B及び制御信号B/に基づいて前記
D−FF51〜54の出力端子Qからの出力信号sq1
〜sq4と逆相出力端子Q/からの出力信号sq1/〜
sq4/のいずれか一方を選択して出力信号SQ1〜S
Q4として出力端子T1〜T4へ出力するマルチプレク
サ91〜94とが、設けられている。
Further, the up-down counter circuit includes a D-FF on the preceding stage side in synchronization with the clock signal CLK1.
The first gate circuits 71 to 73 for outputting the outputs of 51 to 53 to the subsequent D-FFs 52 to 54 respectively, and the clock signal CLK1 and the control signal A are input to receive the clock signal CLK.
The second gate circuit 81 which outputs 1 and the control signal A, and the outputs of the gate circuits 71 to 73 and the control signal A are input to output the outputs of the gate circuits 71 to 73 and output the control signal A. Third gate circuits 82 to 8 for outputting
4 and the output signal sq1 from the output terminals Q of the D-FFs 51 to 54 based on the control signal B and the control signal B /.
~ Sq4 and the output signal sq1 / from the negative-phase output terminal Q /
Select any one of sq4 / to output signals SQ1 to SQ1.
Multiplexers 91 to 94 for outputting to Q1 as output terminals T1 to T4 are provided.

【0016】前記第2のゲート回路81〜84は、それ
ぞれ1個のORゲートで構成されている。また、ゲート
回路71は、1個のANDゲートで構成され、そのAN
Dゲートの入力端子が入力端子TC1に接続されてい
る。ゲート回路72〜73は、それぞれ2個のANDゲ
ートで構成されて出力側のANDゲートの入力端子が入
力端子TC1に接続されている。各マルチプレクサ91
〜94は、入力側に2個のANDゲートをそれぞれ有
し、出力側に1個のORゲートを有している。この各A
NDゲートの一方の入力端子には、前記制御信号発生回
路60の制御信号B用の出力端子及び前記インバータ6
4の出力端子が、それぞれ接続されている。ゲート回路
81の出力端子は、初段のD−FF51のクロック端子
Cに接続され、該D−FF51の出力端子Qがマルチプ
レクサ91の入力端子へ接続されていると共にゲート回
路71及びゲート回路82を介して次段のD−FF52
の入力端子Cへ接続されている。D−FF52,53の
出力端子Qも同様に、マルチプレクサ92,93の入力
端子へ接続されていると共に、次段のD−FF53,5
4の入力端子Cへそれぞれ接続されている。そして最終
段のD−FF54の出力端子が、マルチプレクサ94の
入力端子へ接続されている。
Each of the second gate circuits 81 to 84 is composed of one OR gate. Further, the gate circuit 71 is composed of one AND gate, and its AN
The input terminal of the D gate is connected to the input terminal TC1. Each of the gate circuits 72 to 73 is composed of two AND gates, and the input terminal of the AND gate on the output side is connected to the input terminal TC1. Each multiplexer 91
.About.94 each have two AND gates on the input side and one OR gate on the output side. This each A
One input terminal of the ND gate has an output terminal for the control signal B of the control signal generation circuit 60 and the inverter 6
The four output terminals are connected to each other. The output terminal of the gate circuit 81 is connected to the clock terminal C of the first-stage D-FF 51, the output terminal Q of the D-FF 51 is connected to the input terminal of the multiplexer 91, and the gate circuit 71 and the gate circuit 82. Next D-FF52
Is connected to the input terminal C of. Similarly, the output terminals Q of the D-FFs 52 and 53 are connected to the input terminals of the multiplexers 92 and 93, and the D-FFs 53 and 5 of the next stage are connected.
4 input terminals C, respectively. The output terminal of the final stage D-FF 54 is connected to the input terminal of the multiplexer 94.

【0017】図7は、本発明の実施例の各信号のレベル
のタイムチャートであり、この図7を参照しつつ図1の
動作を説明する。この図7で、HEXは、アップダウン
カウンタのカウンタ値を16進法で表したものであり、
HEXが0の状態から表示されている。切換え信号U/
Dが“0”のとき、このアップダウンカウンタ回路は、
アップカウントが指定されてD−FF52〜54のクロ
ック端子Cへ出力信号sq1〜sq4が入力され、出力
信号SQ1〜SQ4には、出力信号sq1〜sq4が選
択されている。図7のHEXが2で時刻taのときに、
切換え信号U/Dが“1”に遷移すると、クロック信号
CLK2の立ち上がりに同期して制御信号Aが生成さ
れ、この制御信号Aの立ち下がりに同期して各D−FF
51〜54の出力信号sq1〜sq4のレベルが反転さ
れる。この動作と同時に、クロック信号CLK2の立ち
下がりに同期して生成された制御信号Bに基づき、出力
信号SQ1〜SQ4には、出力信号sq1/〜sq4/
が選択される。そのため、SQ1〜SQ4のレベルには
変化がなく、HEXは2のままである。次のクロック信
号CLK1のパルスの立ち下がりからは、マルチプレク
サの選択している出力信号は、出力信号sq1/〜sq
4/のままである。これにより、SQ1〜SQ4は、ダ
ウンカウントをする。
FIG. 7 is a time chart of the level of each signal according to the embodiment of the present invention. The operation of FIG. 1 will be described with reference to FIG. In FIG. 7, HEX represents the counter value of the up / down counter in hexadecimal notation,
HEX is displayed from 0. Switching signal U /
When D is “0”, the up / down counter circuit
The output signals sq1 to sq4 are input to the clock terminals C of the D-FFs 52 to 54 with the up count specified, and the output signals sq1 to sq4 are selected as the output signals SQ1 to SQ4. When HEX in FIG. 7 is 2 and time ta is,
When the switching signal U / D transitions to "1", the control signal A is generated in synchronization with the rising edge of the clock signal CLK2, and each D-FF is synchronized with the falling edge of the control signal A.
The levels of the output signals sq1 to sq4 of 51 to 54 are inverted. Simultaneously with this operation, the output signals sq1 / to sq4 / are output to the output signals SQ1 to SQ4 based on the control signal B generated in synchronization with the falling edge of the clock signal CLK2.
Is selected. Therefore, there is no change in the levels of SQ1 to SQ4, and HEX remains 2. From the next falling edge of the pulse of the clock signal CLK1, the output signals selected by the multiplexer are output signals sq1 / to sq.
It remains 4 /. As a result, SQ1 to SQ4 count down.

【0018】次に、図7の時刻tbの時点で、切換え信
号U/Dのレベルを“1”にすると、クロック信号CL
K2の立ち上がりに同期して制御信号Aが生成され、こ
の制御信号Aの立ち下がりに同期して各D−FF51〜
54の出力信号sq1〜sq4のレベルが反転される。
この動作と同時に、クロック信号CLK2の立ち下がり
に同期して制御信号Bが“0”となり、出力信号SQ1
〜SQ4には、出力信号sq1〜sq4が選択される。
そのため、SQ1〜SQ4のレベルには変化がなく、H
EXはFのままである。次のクロック信号CLK1のパ
ルスの立ち下がりからは、マルチプレクサ91〜94の
選択している出力信号は、出力信号sq1〜sq4のま
まである。このため、SQ1〜SQ4が、アップカウン
トをする。以上のように、本実施例では、カウント動作
の途中で、アップカウントまたはダウンカウントを切換
えても、カウンタ値の変化をおこさないアップダウンカ
ウンタ回路を実現できる。また、クロック信号に同期し
たアップダウンカウンタ回路をほぼ同様なパターンの回
路で構成したので、同一回路に組み込むことができる。
Next, when the level of the switching signal U / D is set to "1" at the time tb in FIG. 7, the clock signal CL is set.
The control signal A is generated in synchronization with the rising edge of K2, and each of the D-FFs 51 to 51 is synchronized with the falling edge of the control signal A.
The levels of the output signals sq1 to sq4 of 54 are inverted.
At the same time as this operation, the control signal B becomes "0" in synchronization with the falling edge of the clock signal CLK2, and the output signal SQ1
Output signals sq1 to sq4 are selected for SQ4.
Therefore, the level of SQ1 to SQ4 does not change and H
EX remains F. From the next falling edge of the pulse of the clock signal CLK1, the output signals selected by the multiplexers 91 to 94 remain the output signals sq1 to sq4. Therefore, SQ1 to SQ4 count up. As described above, in the present embodiment, it is possible to realize an up-down counter circuit that does not change the counter value even if the up-count or the down-count is switched during the counting operation. Further, since the up / down counter circuit synchronized with the clock signal is composed of circuits having substantially the same pattern, it can be incorporated in the same circuit.

【0019】なお、本発明は上記実施例に限定されず、
種々の変形が可能である。その変形例としては、例えば
次のようなものがある。 (1)アップカウントとダウンカウントに関与するD−
FF51〜54は、任意の段数でよく、さらに、そのD
−FFは、トグルFF等の他のFFに置き換えてもよ
い。 (2)制御信号発生回路60中のD−FF61,62
は、トグルFF等で置き換えてもよい。 (3)マルチプレクサ91〜94内のANDゲートは、
トランスファゲートや排他的論理和ゲート等を用いて構
成してもよい。
The present invention is not limited to the above embodiment,
Various modifications are possible. The following are examples of such modifications. (1) D- involved in up-counting and down-counting
The FFs 51 to 54 may have any number of stages, and the D
-FF may be replaced with another FF such as a toggle FF. (2) D-FFs 61 and 62 in the control signal generation circuit 60
May be replaced with a toggle FF or the like. (3) AND gates in the multiplexers 91 to 94 are
It may be configured by using a transfer gate or an exclusive OR gate.

【0020】[0020]

【発明の効果】以上詳細に説明したように、本発明によ
れば、アップカウンタにおいて第2のクロック信号CL
K2と切換え信号U/Dに基づいて第1の制御信号Aと
第2の制御信号Bを生成する制御信号発生回路60と
を、設けている。さらに第1の制御信号Aによって各段
のD−FF51〜54の出力を反転させる第2及び第3
のゲート回路81〜84と、第2の制御信号Bに基づい
て各段のD−FF51〜54の出力を選択する複数のマ
ルチプレクサ91〜94とを、設けたので、カウント動
作の途中でアップカウントとダウンカウントを切換えて
も、カウンタ値のずれることのない正確なアップダウン
カウンタ回路とすることができる。これにより、カウン
タ値を補正する手段等が、不要となる。また、カウンタ
値を補正する手段をもたない場合にも、計数動作サイク
ルの終了或いはリセットを待ってから、アップカウント
とダウンカウントを切換える必要がなくなる。
As described in detail above, according to the present invention, the second clock signal CL in the up counter is used.
A control signal generation circuit 60 for generating the first control signal A and the second control signal B based on K2 and the switching signal U / D is provided. Further, the second and third output signals of the D-FFs 51 to 54 at the respective stages are inverted by the first control signal A.
Since the gate circuits 81 to 84 and the plurality of multiplexers 91 to 94 that select the outputs of the D-FFs 51 to 54 in each stage based on the second control signal B are provided, the up counting is performed in the middle of the counting operation. It is possible to obtain an accurate up / down counter circuit in which the counter value does not deviate even when the and down counts are switched. This eliminates the need for means for correcting the counter value. Further, even when there is no means for correcting the counter value, it is not necessary to switch between up-counting and down-counting after waiting for the end of the counting operation cycle or reset.

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

【図1】本発明の実施例を示すアップダウンカウンタ回
路の回路図である。
FIG. 1 is a circuit diagram of an up / down counter circuit showing an embodiment of the present invention.

【図2】従来のアップカウンタを示す回路図である。FIG. 2 is a circuit diagram showing a conventional up counter.

【図3】従来のダウンカウンタを示す回路図である。FIG. 3 is a circuit diagram showing a conventional down counter.

【図4】従来のアップダウンカウンタ回路を示す回路図
である。
FIG. 4 is a circuit diagram showing a conventional up / down counter circuit.

【図5】従来の課題を説明するためのアップダウンカウ
ンタ回路の回路図である。
FIG. 5 is a circuit diagram of an up / down counter circuit for explaining a conventional problem.

【図6】図5のカウント値を示す図である。6 is a diagram showing the count value of FIG. 5;

【図7】図1のタイムチャートである。FIG. 7 is a time chart of FIG.

【符号の説明】[Explanation of symbols]

51〜54 D−FF 60 制御信号発生回路 71〜74 第1のゲート回路 81 第2のゲート回路 82〜84 第3のゲート回路 91〜94 マルチプレクサ U/D 切換え信号 CLK1 第1のクロック信号 CLK2 第2のクロック信号 A 第1の制御信号 B 第2の制御信号 51-54 D-FF 60 Control signal generation circuit 71-74 1st gate circuit 81 2nd gate circuit 82-84 3rd gate circuit 91-94 Multiplexer U / D switching signal CLK1 1st clock signal CLK2 1st 2 clock signal A 1st control signal B 2nd control signal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】所定のタイミングでデータを入力してその
正相出力信号及び逆相出力信号を出力する複数のフリッ
プフロップが縦続接続されたアップカウンタ回路におい
て、 同一周期で位相の異なる第1及び第2のクロック信号の
内の第2のクロック信号と加算計数動作または減算計数
動作を切換える切換え信号とに基づき、第1の制御信号
と第2の制御信号を生成する制御信号発生回路と、 前記第1のクロック信号に同期して前記前段側のフリッ
プフロップの前記正相または逆相出力信号を前記後段の
フリップフロップへそれぞれ出力する複数の第1のゲー
ト回路と、 前記第1のクロック信号を前記初段のフリップフロップ
へ入力すると共に、前記第1の制御信号を強制的に前記
初段のフリップフロップへ入力して該フリップフロップ
の保持データを反転させる第2のゲート回路と、 前記第1のゲート回路の出力信号を前記次段のフリップ
フロップへ入力すると共に、前記第1の制御信号を強制
的に前記次段のフリップフロップへ入力して該フリップ
フロップの保持データを反転させる複数の第3のゲート
回路と、 前記第2の制御信号に基づき、前記各段のフリップフロ
ップの正相出力信号またはその逆相出力信号のいずれか
一方を選択して出力する複数のマルチプレクサとを、 設けたことを特徴とするアップダウンカウンタ回路。
1. An up-counter circuit in which a plurality of flip-flops for inputting data at a predetermined timing and outputting a positive-phase output signal and a negative-phase output signal thereof are cascade-connected, and first and different phases having the same cycle. A control signal generating circuit for generating a first control signal and a second control signal based on a second clock signal of the second clock signals and a switching signal for switching the addition counting operation or the subtraction counting operation; A plurality of first gate circuits that respectively output the positive-phase or negative-phase output signal of the front-stage flip-flop to the second-stage flip-flop in synchronization with the first clock signal; The first control signal is forcibly input to the flip-flop of the first stage while being input to the flip-flop of the first stage. A second gate circuit that inverts data, and an output signal of the first gate circuit are input to the flip-flop of the next stage, and the first control signal is forcibly input to the flip-flop of the next stage. A plurality of third gate circuits for inverting the data held in the flip-flops, and either one of the positive-phase output signals of the flip-flops of the respective stages or the reverse-phase output signals thereof based on the second control signal. An up-down counter circuit characterized in that a plurality of multiplexers for selecting and outputting are provided.
JP9991993A 1993-04-27 1993-04-27 Up-down counter circuit Withdrawn JPH06311025A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9991993A JPH06311025A (en) 1993-04-27 1993-04-27 Up-down counter circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9991993A JPH06311025A (en) 1993-04-27 1993-04-27 Up-down counter circuit

Publications (1)

Publication Number Publication Date
JPH06311025A true JPH06311025A (en) 1994-11-04

Family

ID=14260188

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9991993A Withdrawn JPH06311025A (en) 1993-04-27 1993-04-27 Up-down counter circuit

Country Status (1)

Country Link
JP (1) JPH06311025A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7495597B2 (en) 2004-04-26 2009-02-24 Sony Corporation Counter circuit, AD conversion method, AD converter, semiconductor device for detecting distribution of physical quantities, and electronic apparatus
WO2009041474A1 (en) * 2007-09-28 2009-04-02 Sony Corporation A/d converting circuit, solid-state image sensing device and camera system
JP2009159331A (en) * 2007-12-26 2009-07-16 Panasonic Corp Solid-state imaging apparatus, operation method thereof, and camera
JP2012023779A (en) * 2011-10-21 2012-02-02 Sony Corp A/d conversion method and camera system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7495597B2 (en) 2004-04-26 2009-02-24 Sony Corporation Counter circuit, AD conversion method, AD converter, semiconductor device for detecting distribution of physical quantities, and electronic apparatus
US7629914B2 (en) 2004-04-26 2009-12-08 Sony Corporation Counter circuit, AD conversion method, AD converter, semiconductor device for detecting distribution of physical quantities, and electronic apparatus
WO2009041474A1 (en) * 2007-09-28 2009-04-02 Sony Corporation A/d converting circuit, solid-state image sensing device and camera system
JP2009089066A (en) * 2007-09-28 2009-04-23 Sony Corp A/d converting circuit, solid-state imaging device and camera system
CN101803199A (en) * 2007-09-28 2010-08-11 索尼公司 A/D converting circuit, solid-state image sensing device and camera system
US8981983B2 (en) 2007-09-28 2015-03-17 Sony Corporation A/D conversion circuit, solid-state image sensor, and camera system
JP2009159331A (en) * 2007-12-26 2009-07-16 Panasonic Corp Solid-state imaging apparatus, operation method thereof, and camera
JP2012023779A (en) * 2011-10-21 2012-02-02 Sony Corp A/d conversion method and camera system

Similar Documents

Publication Publication Date Title
JP3169794B2 (en) Delay clock generation circuit
US5477196A (en) Pulse generator
JPH08139577A (en) Variable delay circuit
JPH06216762A (en) Asynchronous counter
JPH0795013A (en) Edge trigger type flip-flop
TWI223947B (en) Data sampler for digital frequency/phase determination
US6686780B2 (en) Frequency divider with selectable division factor
JPH06311025A (en) Up-down counter circuit
CN113904655B (en) Filter circuit and medical 3D endoscope
US6172538B1 (en) Universal pulse synchronizer
JPH04295280A (en) Pwm signal arithmetic circuit
JPH03240336A (en) Bit phase synchronization circuit
JP2792759B2 (en) Synchronous clock generation circuit
JP2563366B2 (en) Signal cycle measuring device
KR100366793B1 (en) Apparatus for pulse sequence generation using Shift Register
KR100437833B1 (en) clock signal switch circuit
JPH0429248B2 (en)
JPH06188695A (en) Information latch circuit
JPH07226674A (en) Digital oscillation circuit
JP2565103B2 (en) Output circuit
JPH05291893A (en) Clock selection circuit
JP2001085998A (en) D/a conversion circuit
JP3243801B2 (en) Digital input circuit
JP2638337B2 (en) Error counter circuit
JP2856143B2 (en) Bidirectional shift register and digitally controlled attenuator using the same

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000704