JPH0198320A - Counter circuit - Google Patents
Counter circuitInfo
- Publication number
- JPH0198320A JPH0198320A JP25582487A JP25582487A JPH0198320A JP H0198320 A JPH0198320 A JP H0198320A JP 25582487 A JP25582487 A JP 25582487A JP 25582487 A JP25582487 A JP 25582487A JP H0198320 A JPH0198320 A JP H0198320A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- basic
- basic signal
- input
- measurement
- 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
Links
- 238000005259 measurement Methods 0.000 claims abstract description 34
- 230000000630 rising effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000004904 shortening Methods 0.000 description 1
Landscapes
- Measurement Of Unknown Time Intervals (AREA)
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明はカウンタ回路に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a counter circuit.
第3図は従来のカウンタ回路の回路図、第4図(1)、
(2)はその動作を示すタイムチャートである。Figure 3 is a circuit diagram of a conventional counter circuit, Figure 4 (1),
(2) is a time chart showing the operation.
このカウンタ1は複数のフリップフロップ’1 + 1
2 +・・・+lnからなり、制御信号入力線3から計
測開始信号xoが入力されるとリセットされ、基本信号
入力線2からの基本信号φ0のその後の最初の立上がり
から基本信号φ0の計数を開始する (第4図(1)、
(2))。This counter 1 is a plurality of flip-flops '1 + 1
2 +...+ln, which is reset when the measurement start signal xo is input from the control signal input line 3, and starts counting the basic signal φ0 from the subsequent first rise of the basic signal φ0 from the basic signal input line 2. Start (Figure 4 (1),
(2)).
上述した従来のカウンタ回路は、基本信号が直接入力さ
れており、任意のタイミングで発生する計測開始信号x
oが入力された後の基本信号φ。In the conventional counter circuit described above, the basic signal is directly input, and the measurement start signal x generated at an arbitrary timing is
Basic signal φ after o is input.
の最初の立上がりから計数を開始するので、計測開始信
号XOが入力されてから実際に計数が開始されるまで最
大で基本信号φ0の1周期分の時間Tがかかってしまう
という欠点がある。Since counting starts from the first rise of , there is a drawback that it takes at most one cycle of the basic signal φ0 from the time the measurement start signal XO is input until the counting actually starts.
本発明のカウンタ回路は、計測開始信号と基本信号とを
入力し、計測開始信号が入力されたときの基本信号の状
態により、直後の基本信号の電位変化がカウンタ動作を
開始するものとなるように基本信号を反転し、あるいは
反転せずにカウンタへ出力する基本信号切換回路を有す
る。The counter circuit of the present invention inputs a measurement start signal and a basic signal, and is configured so that, depending on the state of the basic signal when the measurement start signal is input, a potential change in the basic signal immediately after starts the counter operation. It has a basic signal switching circuit that inverts the basic signal or outputs it to the counter without inverting it.
したがって、計測開始信号が入力されてから実際に計測
を開始するまでの時間は最大で基本信号の1I2周期と
なる。Therefore, the time from when the measurement start signal is input to when measurement actually starts is at most 1I2 periods of the basic signal.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明のカウンタ回路の一実施例の回路図、第
2図(1)、(2)はその動作を示すタイムチャートで
ある。FIG. 1 is a circuit diagram of one embodiment of the counter circuit of the present invention, and FIGS. 2 (1) and (2) are time charts showing its operation.
本実施例は第3図に示した従来のカウンタ回路に、ゲー
ト回路群5.1ビツトラッチ回路6からなる基本信号切
換回路4を設けたものである。この基本信号切換回路4
は基本信号φ。と計測開始信号Xoを入力し、計測開始
信号x0が入力されたときの基本信号φ0がロウレベル
のときには基本信号φ。をそのままカウンタlへ出力し
、計測開始信号XOが入力されたときの基本信号φ0が
ハイレベルのときには基本信号φ0を反転させてカウン
タ1へ出力する。ゲート回路群5はナントゲート51〜
53とインバータ54+55から構成され、1ビツトラ
ッチ回路6はNチャネルトランジスタ6Iとインバータ
62+63から構成されている。Nチャネルトランジス
タ61のゲートは計測開始信号X6が印加される制御信
号入力線3と接続され、ソースは基本信号φ。が印加さ
れる基本信号入力!!2が入力端子に接続されているイ
ンバータ55の出力端子と接続され、ドレインはインバ
ータ62の出力端子とインバータ63の入力端子に共通
に接続されている。このインバータ62の入力端子とイ
ンバータ63の出力端子は共通に接続されて1ビツトラ
ッチ回路6の出力信号線とされる。基本信号φ0とイン
バータ54によって1ビツトラッチ回路6の出力信号x
1が反転された信号x1とが入力されるナントゲート5
2はこれらの否定論理積である信号φ1を、インバータ
55によって基本信号φ。が反転された信号Toと1ビ
ツトラッチ回路6の出力信号X1とが入力されたナント
ゲート53はこれらの否定論理積である信号φ2をナン
トゲート5Iへ出力し、ナントゲート51は信号φ1と
信号φ2の否定論理積である信号φ3をカウンタ1へ出
力する。In this embodiment, a basic signal switching circuit 4 consisting of a gate circuit group 5, a bit latch circuit 6 is added to the conventional counter circuit shown in FIG. This basic signal switching circuit 4
is the fundamental signal φ. and the measurement start signal Xo are input, and when the basic signal φ0 is low level when the measurement start signal x0 is input, the basic signal φ. is output to the counter 1 as is, and when the basic signal φ0 is at a high level when the measurement start signal XO is input, the basic signal φ0 is inverted and output to the counter 1. Gate circuit group 5 is Nantes gate 51~
53 and inverters 54+55, and the 1-bit latch circuit 6 consists of an N-channel transistor 6I and inverters 62+63. The gate of the N-channel transistor 61 is connected to the control signal input line 3 to which the measurement start signal X6 is applied, and the source is the basic signal φ. Basic signal input that is applied! ! 2 is connected to the output terminal of the inverter 55 whose input terminal is connected, and its drain is commonly connected to the output terminal of the inverter 62 and the input terminal of the inverter 63. The input terminal of the inverter 62 and the output terminal of the inverter 63 are commonly connected and serve as an output signal line of the 1-bit latch circuit 6. The output signal x of the 1-bit latch circuit 6 is generated by the basic signal φ0 and the inverter 54.
A Nantes gate 5 to which a signal x1 in which 1 is inverted is input.
2 converts the signal φ1 which is the NAND of these signals into the basic signal φ by the inverter 55. The Nant gate 53 to which the signal To inverted and the output signal X1 of the 1-bit latch circuit 6 is input outputs the NAND of these signals φ2 to the Nant gate 5I, and the Nant gate 51 outputs the signal φ1 and the signal φ2. A signal φ3, which is the NAND of , is output to the counter 1.
次に、本実施例の動作を第2図(1)、(2)により説
明する。Next, the operation of this embodiment will be explained with reference to FIGS. 2(1) and (2).
(1)基本信号φ0がロウレベル時に計測開始信号X0
が入力された場合(第2図(1))。(1) Measurement start signal X0 when basic signal φ0 is low level
is input (Fig. 2 (1)).
時刻1.に計測開始信号X6が入力すると、カウンタl
はリセットされ基本信号φ0の立上がり波形が入力され
るまでの計測待ち状態となるとともに1ピットラ−、子
回路6内のNチャネルトランジスタ61がオンし基本信
号φ0の状態が読み込まれ、1ビツトラッチ回路6の出
力信号x1はロウレベルになる。このため、出力信号x
1が入力されるナントゲート53の出力信号φ2はハイ
レベルとなり、基本信号φ0と、出力信号X1がインバ
ータ54によって反転された信号x3、すなわちハイレ
ベルが入力されるナントゲート52の出力信号φ宜は基
本信号φ0を反転させた信号T0となるので、これらの
否定論理積をとるナントゲート51の出力信号φ3は基
本信号φ0となり、時刻t2から基本信号φ0の1I2
周期T/2以内の時刻t3から計測が開始される。Time 1. When the measurement start signal X6 is input to the counter l
is reset and enters a measurement waiting state until the rising waveform of the basic signal φ0 is input, and at the same time, the N-channel transistor 61 in the 1-bit latch circuit 6 is turned on, the state of the basic signal φ0 is read, and the 1-bit latch circuit 6 The output signal x1 of becomes low level. Therefore, the output signal x
The output signal φ2 of the Nandts gate 53 to which 1 is input becomes a high level, and the output signal φ2 of the Nandts gate 52 to which a high level is inputted is the basic signal φ0 and the signal x3 obtained by inverting the output signal X1 by the inverter 54. becomes the signal T0 which is the inversion of the basic signal φ0, so the output signal φ3 of the Nantes gate 51 which performs the NAND operation of these becomes the basic signal φ0, and from time t2, the 1I2 of the basic signal φ0
Measurement starts from time t3 within period T/2.
(2)基本信号φ0がハイレベルのときに計測開始信号
XOが入力された場合(第2図(2))。(2) When the measurement start signal XO is input when the basic signal φ0 is at a high level ((2) in FIG. 2).
時刻t、に計測開始信号x0が入力されると、第2図(
1)の場合と同様にして1ビツトラッチ回路6の出力信
号x1はハイレベルとなり、出力信号xlが反転された
信号xl、すなわちロウレベルが入力されるナントゲー
ト52の出力信号φlはハイレベルとなり、出力信号x
Iと基本信号φ0がインバータ55によって反転された
不0が入力されるナントゲート53の出力信号φ2は基
本信号φ0となるのでこれらの否定論理積をとるナント
ゲート5Iの出力信号φ3は基本信号φ0を反転させた
ものとなり、時刻t1から基本信号φ0の172周期T
/2以内の時刻t2から計測が開始される。When the measurement start signal x0 is input at time t, as shown in FIG.
Similarly to case 1), the output signal x1 of the 1-bit latch circuit 6 becomes high level, and the signal xl obtained by inverting the output signal xl, that is, the output signal φl of the Nant gate 52 to which the low level is input, becomes high level, and the output signal x
The output signal φ2 of the Nandts gate 53, which receives a non-zero value obtained by inverting I and the basic signal φ0 by the inverter 55, becomes the basic signal φ0, so the output signal φ3 of the Nandts gate 5I, which takes the NAND of these, becomes the basic signal φ0. 172 cycles T of the basic signal φ0 from time t1
Measurement starts from time t2 within /2.
なお、第2図(1)、(2)において斜線で示されてい
る時刻1.以前の1ビツトラッチ回路6の出力XI 、
ナントゲート51〜53の出力φ1〜φ3は不定を示す
ものであり、本実施例の動作には何ら影うを与えない。Note that the time 1. shown by diagonal lines in FIGS. 2(1) and (2). The output XI of the previous 1-bit latch circuit 6,
The outputs φ1 to φ3 of the Nandt gates 51 to 53 are indeterminate and do not affect the operation of this embodiment in any way.
また1本実施例のカウンタは基本信号φ0の立上がりか
ら計測を開始するものとして説明したが、立下がりで動
作する場合にはナントゲート52への入力を基本信号φ
0を反転させた信号下。と1ビツトラッチ回路6の出力
信号X!とし、ナントゲート53への入力を基本信号φ
0と1ビツトラッチ回路6の出力信号x1を反転させた
信号x1とすれば計測開始信号XOが入力されてから実
際に計測が開始されるまでの時間はいずれにしても基本
信号φ0の1/2周期T/2以内となる。Furthermore, although the counter of this embodiment has been described as starting measurement from the rising edge of the basic signal φ0, when it operates at the falling edge of the basic signal φ0, the input to the Nant gate 52 is
Below the signal with inverted 0. and the output signal X of the 1-bit latch circuit 6! and the input to the Nant gate 53 is the basic signal φ
If the output signal x1 of the 0 and 1 bit latch circuit 6 is an inverted signal x1, the time from when the measurement start signal XO is input until the measurement actually starts is 1/2 of the basic signal φ0 in any case. The period is within T/2.
以上説明したように本発明は、計測開始信号が入力され
たときの基本信号の状態により基本信号を反転、または
反転せずに出力する基本信号切換回路を設けたことによ
り、計測開始信号が入力されてから実際に計測を開始す
るまでの時間が最大でも基本信号の1/2周期以内とな
り、計測開始の時間が早くなるという効果がある。As explained above, the present invention provides a basic signal switching circuit that inverts or outputs the basic signal depending on the state of the basic signal when the measurement start signal is input. The time from when the signal is received to the actual start of measurement is at most 1/2 cycle of the basic signal, which has the effect of shortening the start time of measurement.
第1図は本発明のカウンタ回路の一実施例の回路図、第
2図(1)、(2)はそのタイムチャート、第3図はカ
ウンタ回路の従来例の回路図、第4図(1)、(2)は
そのタイムチャートである。
l・・・カウンタ、
1、〜1n…フリップフロップ、
2・・・基本信号入力線、
3・・・制御信号入力線、
4・・・基本信号切換回路、
5・・・ゲート回路群。
51〜53・・・ナントゲート、
54 I 55.62.63・・・インバータ、6・・
・1ビツトラッチ回路、
61・・・Nチャネルトランジスタ、
φ0・・・基本信号、
XO・・・計測開始信号、
xl・・・1ビツトラッチ回路6の出力信号、φl・・
・ナントゲート52の出力信号、φ2・・・ナントゲー
ト53の出力信号、φ3・・・ナンドゲー)5+の出力
信号。Fig. 1 is a circuit diagram of one embodiment of the counter circuit of the present invention, Fig. 2 (1) and (2) are its time charts, Fig. 3 is a circuit diagram of a conventional example of the counter circuit, and Fig. 4 (1) ) and (2) are the time charts. 1...Counter, 1,~1n...Flip-flop, 2...Basic signal input line, 3...Control signal input line, 4...Basic signal switching circuit, 5...Gate circuit group. 51-53...Nant Gate, 54 I 55.62.63...Inverter, 6...
・1-bit latch circuit, 61...N-channel transistor, φ0...basic signal, XO...measurement start signal, xl...output signal of 1-bit latch circuit 6, φl...
- Output signal of Nantes gate 52, φ2...output signal of Nantes gate 53, φ3...output signal of Nantes gate) 5+.
Claims (1)
入力されてリセットされた後の基本信号の最初の立上が
りまたは立下がり時刻から基本信号の計数を開始するカ
ウンタ回路において、計測開始信号と基本信号とを入力
し、計測開始信号が入力されたときの基本信号の状態に
より、直後の基本信号の電位変化がカウンタ動作を開始
するものとなるように基本信号を反転し、あるいは反転
せずにカウンタへ出力する基本信号切換回路を有するカ
ウンタ回路。In a counter circuit that receives a measurement start signal and a basic signal and starts counting the basic signal from the first rising or falling time of the basic signal after the measurement start signal is input and reset, the measurement start signal and the basic signal are input. signal, and depending on the state of the basic signal when the measurement start signal is input, the basic signal is inverted so that the potential change of the basic signal immediately after starts the counter operation, or it is not inverted. A counter circuit that has a basic signal switching circuit that outputs to the counter.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25582487A JPH0198320A (en) | 1987-10-09 | 1987-10-09 | Counter circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25582487A JPH0198320A (en) | 1987-10-09 | 1987-10-09 | Counter circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0198320A true JPH0198320A (en) | 1989-04-17 |
Family
ID=17284127
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP25582487A Pending JPH0198320A (en) | 1987-10-09 | 1987-10-09 | Counter circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0198320A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07162294A (en) * | 1993-12-08 | 1995-06-23 | Yamaha Corp | Pulse counting circuit and pulse switching circuit |
-
1987
- 1987-10-09 JP JP25582487A patent/JPH0198320A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07162294A (en) * | 1993-12-08 | 1995-06-23 | Yamaha Corp | Pulse counting circuit and pulse switching circuit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3976949A (en) | Edge sensitive set-reset flip flop | |
| JPH07202686A (en) | Pulse generator | |
| US4160154A (en) | High speed multiple event timer | |
| US4034303A (en) | Electronic pulse generating circuit for eliminating spike pulses | |
| JPH0296422A (en) | Clock generating circuit | |
| JPS6233394Y2 (en) | ||
| RU2012133C1 (en) | Unipolar-delta code converter | |
| JPH01114112A (en) | Power consumption reduction circuit | |
| JPH0429248B2 (en) | ||
| SU1580534A1 (en) | Ternary counting device | |
| JPS63116222A (en) | Clock signal switching circuit | |
| RU2019033C1 (en) | Binary-to-binary-decimal code converter | |
| JP2564812B2 (en) | Counting circuit | |
| SU1248063A1 (en) | Pulse counter with number of states equal to 2 raised to the n-th power minus one | |
| JPH0735454Y2 (en) | Pulse width expansion circuit | |
| SU1599969A1 (en) | Single-phase d flip-flop | |
| JPS62177465A (en) | Test signal generating circuit | |
| JPS6166571A (en) | Thyristor/inverter gate pulse control device | |
| JPS59211317A (en) | Flip-flop | |
| JPS6359017A (en) | Pulse generating circuit | |
| JPH0754894B2 (en) | Pulse width modulation circuit | |
| JPH0437215A (en) | Differential pulse creation circuit | |
| JPH0783245B2 (en) | Continuous pulse signal detector | |
| JPH01282925A (en) | Counter device | |
| JPS6266165A (en) | Pulse period input device |