JPH05299979A - Pulse generating circuit and pulse width measuring circuit - Google Patents
Pulse generating circuit and pulse width measuring circuitInfo
- Publication number
- JPH05299979A JPH05299979A JP4104732A JP10473292A JPH05299979A JP H05299979 A JPH05299979 A JP H05299979A JP 4104732 A JP4104732 A JP 4104732A JP 10473292 A JP10473292 A JP 10473292A JP H05299979 A JPH05299979 A JP H05299979A
- Authority
- JP
- Japan
- Prior art keywords
- pulse
- circuit
- output
- pulse width
- flip
- 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
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、ある時間アクティブ状
態となる入力パルスが出現した場合に、その入力パルス
の立上りに同期し、かつそのアクティブ状態期間中のみ
所望パルス幅のクロックパルスを発生させるためのパル
ス発生回路、更にはそのクロックパルスをカウントする
ことによって、その入力パルスのパルス幅を計測するパ
ルス幅計測回路に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention generates a clock pulse having a desired pulse width in synchronization with the rising edge of an input pulse which appears in an active state for a certain time and only during the active state period. And a pulse width measuring circuit for measuring the pulse width of the input pulse by counting the clock pulse.
【0002】[0002]
【従来の技術】これまで、入力パルスが出現した場合
に、その入力パルスの立上りに同期し、かつそのアクテ
ィブ状態期間中のみ所望パルス幅のクロックパルスを発
生させるためのパルス発生回路としては、例えば特開昭
55−21639号公報に記載のものが知られている。
これによる場合、ある時間アクティブ状態となる入力パ
ルスはアンドゲートを介し遅延、かつ反転せしめられた
上、再びそのアンドゲートで元の入力パルスと論理積さ
れることによって、その入力パルスに同期して、クロッ
クパルスがそのアクティブ期間中のみ発生されるものと
なっている。2. Description of the Related Art Heretofore, as a pulse generation circuit for generating a clock pulse having a desired pulse width only when the input pulse appears, in synchronization with the rising edge of the input pulse and only during the active state thereof, for example, The one described in JP-A-55-21639 is known.
In this case, the input pulse that is active for a certain time is delayed and inverted through the AND gate, and then ANDed again with the original input pulse to synchronize with the input pulse. , The clock pulse is generated only during its active period.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、上記公
報による場合には、入力パルスが非アクティブ状態に移
行するタイミング如何によっては、最後のクロックパル
スのパルス幅が変化せしめられるものとなっている。即
ち、最後のクロックパルスのそのパルス幅は、入力パル
スが非アクティブ状態に移行するタイミングによって左
右されており、したがって、そのパルス幅はそれ以前に
発生されているクロックパルスのパルス幅(一定パルス
幅)とは一般に同一ではなく、しかもそのパルス幅は一
定パルス幅内で様々に変化するものとなっている。よっ
て、そのように発生されているクロックパルスを外部回
路へクロックとして供給した場合には、最後のクロック
パルスのそのパルス幅如何によっては、外部回路(例え
ばカウンタ)での回路動作は保障され得ないものとなっ
ている。However, in the case of the above publication, the pulse width of the last clock pulse is changed depending on the timing at which the input pulse shifts to the inactive state. That is, the pulse width of the last clock pulse depends on the timing at which the input pulse shifts to the inactive state, and therefore the pulse width is the pulse width (constant pulse width) of the clock pulse generated before that. In general, the pulse width is not the same, and its pulse width changes variously within a constant pulse width. Therefore, when the clock pulse thus generated is supplied to the external circuit as a clock, the circuit operation in the external circuit (for example, the counter) cannot be guaranteed depending on the pulse width of the last clock pulse. It has become a thing.
【0004】本発明の第1の目的は、入力パルスの立上
りに同期し、かつそのアクティブ状態期間中のみ所望パ
ルス幅のクロックパルスを発生させる場合に、最後に発
生されるクロックパルスをそのパルス幅一定として発生
し得るパルス発生回路を供するにある。本発明の第2の
目的は、その入力パルス自体のパルス幅を計測し得るパ
ルス幅計測回路を供するにある。A first object of the present invention is to generate a clock pulse having a desired pulse width in synchronization with the rising edge of an input pulse and only during the active state of the input pulse. It is to provide a pulse generation circuit that can be generated as a constant. A second object of the present invention is to provide a pulse width measuring circuit capable of measuring the pulse width of the input pulse itself.
【0005】[0005]
【課題を解決するための手段】上記第1の目的は、論理
積ゲートを介された入力パルスの出現時点で反転状態に
おかれるフリップフロップの出力としてのクロックパル
スによって、遅延時間可変な第1の遅延回路を介しその
フリップフロップを反転せしめた後に再び反転せしめる
べく、その第1の遅延回路の出力を遅延時間可変な第2
の遅延回路を介し上記論理積ゲートで入力パルスと論理
積せしめることで達成される。上記第2の目的は、論理
積ゲートを介された入力パルスの出現時点で反転状態に
おかれるフリップフロップの出力によって、遅延時間可
変な第1の遅延回路を介しそのフリップフロップを反転
せしめた後に再び反転せしめるべく、その第1の遅延回
路の出力を遅延時間可変な第2の遅延回路を介し上記論
理積ゲートで入力パルスと論理積せしめる一方、上記フ
リップフロップ、第1の遅延回路、第2の遅延回路の何
れかの出力をカウンタでカウントすることで達成され
る。The first object of the present invention is to provide a variable delay time by a clock pulse as an output of a flip-flop which is in an inverted state at the output of an input pulse through an AND gate. In order to invert the flip-flop via the delay circuit of the second delay circuit and then to invert the flip-flop again, the output of the first delay circuit is changed to the second delay time variable.
This is achieved by ANDing the input pulse with the AND gate through the delay circuit of. The second purpose is to invert the flip-flop via the first delay circuit having a variable delay time by the output of the flip-flop which is in the inverted state at the output of the input pulse via the AND gate. In order to invert it again, the output of the first delay circuit is logically ANDed with the input pulse by the AND gate through the second delay circuit whose delay time is variable, while the flip-flop, the first delay circuit, the second This is achieved by counting the output of any one of the delay circuits of.
【0006】[0006]
【作用】例えばフリップフロップがセット状態におかれ
た場合に、その出力を所望時間遅延せしめた上、そのフ
リップフロップを自動的にリセット状態においた後、所
望時間経過後に再びそのフリップフロップを一定条件の
下に自動的にセット状態におくべく構成する場合には、
フリップフロップの出力は一定周期で変化することか
ら、これをクロックパルスとして用い得るものである。
即ち、そのフリップフロップのセット状態への移行を入
力パルスがアクティブ状態にある間のみ許容する場合に
は、入力パルスの非アクティブ状態への移行は、単にフ
リップフロップのセット状態への移行の可否を決定する
に止まり、フリップフロップのリセット状態への移行に
は直接関与しないことから、最後に発生されるクロック
パルスはそのパルス幅が、それ以前に発生されたクロッ
クパルスのパルス幅に同一として発生されるものであ
る。ところで、クロックパルス自体は時間基準として用
いられていることから、入力パルスのパルス幅の大きさ
に応じた数のクロックパルスが自動的に発生されている
場合には、単にそのクロックパルスの数をカウンタでカ
ウントするだけで、その入力パルスのパルス幅を計測し
得るものである。For example, when the flip-flop is placed in the set state, its output is delayed by the desired time, and then the flip-flop is automatically placed in the reset state, and after the desired time elapses, the flip-flop is again set to the constant condition. If you want to configure to automatically set under
Since the output of the flip-flop changes at a constant cycle, it can be used as a clock pulse.
That is, when the transition of the flip-flop to the set state is allowed only while the input pulse is in the active state, the transition of the input pulse to the inactive state simply determines whether or not the flip-flop can transit to the set state. The last clock pulse generated has the same pulse width as the pulse width of the clock pulse generated before, since it only makes a decision and does not directly participate in the transition of the flip-flop to the reset state. It is something. By the way, since the clock pulse itself is used as a time reference, if the number of clock pulses corresponding to the size of the pulse width of the input pulse is automatically generated, simply change the number of clock pulses. The pulse width of the input pulse can be measured only by counting with a counter.
【0007】[0007]
【実施例】以下、本発明を図1,図2により説明する。
図1は本発明によるパルス発生回路を含むパルス幅計測
回路の一例での具体的回路構成を示したものである。こ
れによる場合、パルス幅計測回路はその殆どがパルス発
生回路として構成されており、そのパルス発生回路から
のクロックパルスがカウンタ8でカウントされることに
よって、入力パルスaのパルス幅が計測され得るものと
なっている。ここで、そのパルス発生回路の回路構成と
その動作を図2を参照しつつ説明すれば以下のようであ
る。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to FIGS.
FIG. 1 shows a concrete circuit configuration of an example of a pulse width measuring circuit including a pulse generating circuit according to the present invention. In this case, most of the pulse width measuring circuit is configured as a pulse generating circuit, and the pulse width of the input pulse a can be measured by counting the clock pulses from the pulse generating circuit with the counter 8. Has become. The circuit configuration of the pulse generating circuit and its operation will be described below with reference to FIG.
【0008】即ち、、初期状態においては、フリップフ
ロップ(以下、F/Fと称す)2はリセット状態にある
が、このような状態で図2に示す入力パルス(本例では
“H”レベル状態がアクティブ状態に相当)aが出現し
た場合を想定すれば、入力パルスaはアンドゲートを介
しセット信号としてF/F2に作用するものとなってい
る。これによりF/F2は入力パルスaの立上り時点で
セット状態に移行せしめられるが、そのQ出力cは遅延
回路3上で所望時間遅延された上、スイッチ6より遅延
Q出力cが得られるものとなっている。そのQ出力cの
遅延回路3での遅延時間はスイッチ6の切替接続位置に
より決定されているわけである。さて、F/F2はその
遅延Q出力cによりリセットされるが、その際、周期が
小さいクロックパルスを得る必要がある場合(入力パル
スaのパルス幅を高精度に計測する場合など)には、F
/F2は遅延Q出力cの立上り微分パルスによってリセ
ットされるのが望ましくなっている。That is, in the initial state, the flip-flop (hereinafter referred to as F / F) 2 is in the reset state, but in such a state, the input pulse (in this example, the "H" level state). Assuming that a appears, the input pulse a acts on the F / F2 as a set signal via the AND gate. As a result, the F / F2 is caused to shift to the set state at the rising edge of the input pulse a, but its Q output c is delayed by the desired time on the delay circuit 3 and the delayed Q output c is obtained from the switch 6. Is becoming The delay time of the Q output c in the delay circuit 3 is determined by the switching connection position of the switch 6. Now, the F / F2 is reset by its delayed Q output c, but at that time, when it is necessary to obtain a clock pulse having a small period (for example, when the pulse width of the input pulse a is measured with high accuracy), F
It is desirable that / F2 be reset by the rising differential pulse of the delayed Q output c.
【0009】一方、遅延Q出力cはまた、スイッチ7の
切替接続位置に応じた時間分、遅延回路4で遅延された
上、インバータ5を介し入力パルスaと論理積される
が、その論理積結果b如何によりF/F2はそのセット
状態への移行が制御されるものとなっている。即ち、入
力パルスaが既にアクティブ状態にない場合は、F/F
2はセット状態に移行されないが、引き続きアクティブ
状態にある場合には、F/F2は再びセット状態におか
れ、上記動作が繰返されるものである。結局なところ、
入力パルスaがアクティブ状態にある限りにおいては、
F/F2は繰返しセット状態に移行せしめられることか
ら、F/F2からは入力パルスaの立上りに同期したク
ロックパルスが得られるものである。その際、最後に発
生されるクロックパルスのパルス幅は遅延回路3での遅
延時間のみに依存し、入力パルスaの状態とは無関係と
されるから、所期の目的通りにクロックパルスが発生さ
れ得るものとなっている。On the other hand, the delayed Q output c is also delayed by the delay circuit 4 for a time period corresponding to the switching connection position of the switch 7 and then ANDed with the input pulse a via the inverter 5. As a result b, the transition of the F / F2 to the set state is controlled. That is, if the input pulse a is not already in the active state, F / F
2 is not shifted to the set state, but when it is still in the active state, the F / F 2 is placed in the set state again and the above operation is repeated. After all,
As long as the input pulse a is in the active state,
Since the F / F2 is repeatedly shifted to the set state, a clock pulse synchronized with the rising edge of the input pulse a is obtained from the F / F2. At this time, the pulse width of the last generated clock pulse depends only on the delay time in the delay circuit 3 and is independent of the state of the input pulse a, so that the clock pulse is generated as intended. It is a reward.
【0010】なお、以上の例では、カウンタ8へのクロ
ックパルスはF/F2からのものとされているが、入力
パルスaの位相が特に問題とされない場合には、遅延回
路3,4の何れからクロックパルスを得るようにしても
よいことは、図2より明らかである。In the above example, the clock pulse to the counter 8 is from the F / F2. However, if the phase of the input pulse a is not a particular problem, any one of the delay circuits 3 and 4 can be used. It is clear from FIG. 2 that the clock pulse may be obtained from
【0011】[0011]
【発明の効果】以上、説明したように、請求項1による
場合は、入力パルスの立上りに同期し、かつそのアクテ
ィブ状態期間中のみ所望パルス幅のクロックパルスを発
生させる場合に、最後に発生されるクロックパルスをそ
のパルス幅一定として発生し得るパルス発生回路が、ま
た、請求項2による場合には、その入力パルス自体のパ
ルス幅を計測し得るパルス幅計測回路がそれぞれ得られ
るものとなっている。As described above, according to the first aspect of the present invention, when the clock pulse having the desired pulse width is generated only in synchronization with the rising edge of the input pulse and during the active state thereof, it is generated last. A pulse generation circuit capable of generating a clock pulse having a constant pulse width, and in the case of claim 2, a pulse width measurement circuit capable of measuring the pulse width of the input pulse itself are obtained. There is.
【図1】図1は、本発明によるパルス発生回路を含むパ
ルス幅計測回路の一例での具体的回路構成を示す図FIG. 1 is a diagram showing a specific circuit configuration of an example of a pulse width measuring circuit including a pulse generating circuit according to the present invention.
【図2】図2は、その要部での入出力信号波形の例を示
す図FIG. 2 is a diagram showing an example of input / output signal waveforms in its main part.
1…アンドゲート、2…フリップフロップ、3,4…遅
延回路、5…インバ−タ、8…カウンタ1 ... AND gate, 2 ... Flip-flop, 3, 4 ... Delay circuit, 5 ... Inverter, 8 ... Counter
Claims (2)
スに対し、任意な周期およびデュ−ティ−比を以てクロ
ックパルスを発生させるためのパルス幅発生回路であっ
て、論理積ゲートを介された入力パルスの出現時点で反
転状態におかれるフリップフロップの出力としてのクロ
ックパルスによって、遅延時間可変な第1の遅延回路を
介し該フリップフロップを反転せしめた後に再び反転せ
しめるべく、該第1の遅延回路の出力を遅延時間可変な
第2の遅延回路を介し上記論理積ゲートで入力パルスと
論理積せしめてなる構成のパルス発生回路。1. A pulse width generation circuit for generating a clock pulse with an arbitrary period and duty ratio for an input pulse which is active for a certain period of time, the input pulse passing through an AND gate. The clock pulse as the output of the flip-flop in the inverted state at the present time causes the flip-flop to be inverted and then inverted again via the first delay circuit having a variable delay time. A pulse generation circuit having a configuration in which an output is logically ANDed with an input pulse by the AND gate through a second delay circuit having a variable delay time.
スのパルス幅を計測するためのパルス幅計測回路であっ
て、論理積ゲートを介された入力パルスの出現時点で反
転状態におかれるフリップフロップの出力によって、遅
延時間可変な第1の遅延回路を介し該フリップフロップ
を反転せしめた後に再び反転せしめるべく、該第1の遅
延回路の出力を遅延時間可変な第2の遅延回路を介し上
記論理積ゲートで入力パルスと論理積せしめる一方、上
記フリップフロップ、第1の遅延回路、第2の遅延回路
の何れかの出力がカウンタでカウントされてなる構成の
パルス幅計測回路。2. A pulse width measuring circuit for measuring a pulse width of an input pulse which is in an active state for a certain period of time, which comprises a flip-flop which is in an inverted state at the present moment of output of the input pulse through an AND gate. According to the output, the output of the first delay circuit is inverted via the first delay circuit with a variable delay time, and then the flip-flop is inverted again. A pulse width measuring circuit configured such that the output of any one of the flip-flop, the first delay circuit, and the second delay circuit is counted by a counter while being logically ANDed with an input pulse by a gate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4104732A JPH05299979A (en) | 1992-04-23 | 1992-04-23 | Pulse generating circuit and pulse width measuring circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4104732A JPH05299979A (en) | 1992-04-23 | 1992-04-23 | Pulse generating circuit and pulse width measuring circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05299979A true JPH05299979A (en) | 1993-11-12 |
Family
ID=14388676
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4104732A Pending JPH05299979A (en) | 1992-04-23 | 1992-04-23 | Pulse generating circuit and pulse width measuring circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05299979A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008228301A (en) * | 2007-03-08 | 2008-09-25 | Matsushita Electric Ind Co Ltd | Ring oscillator |
-
1992
- 1992-04-23 JP JP4104732A patent/JPH05299979A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008228301A (en) * | 2007-03-08 | 2008-09-25 | Matsushita Electric Ind Co Ltd | Ring oscillator |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2000188528A (en) | Pulse generator | |
JPH0292012A (en) | Pulse generating circuit | |
KR940005006B1 (en) | Frequency dividing circuit capable of verying dividing ratio | |
JPH05299979A (en) | Pulse generating circuit and pulse width measuring circuit | |
JPS63226115A (en) | Zero cross counter | |
JPS62147371A (en) | Pulse width meter | |
JP2666479B2 (en) | Clock switching circuit and clock switching method | |
JPH0540469Y2 (en) | ||
JPS6076807A (en) | Clock shaping circuit | |
JPS6359017A (en) | Pulse generating circuit | |
KR930003912Y1 (en) | Pulse signal controller | |
KR940012090A (en) | Clock divider | |
JPH07321616A (en) | Noise elimination circuit | |
JPH03282805A (en) | Clock signal switching circuit | |
JPH07101844B2 (en) | Variable frequency divider | |
JPH0262963B2 (en) | ||
JPH0376421A (en) | 2-clock switching circuit | |
JPH06310999A (en) | Two phase pulse generating circuit | |
JPS6228823A (en) | Signal switching circuit | |
JPS63169812A (en) | Pulse oscillating circuit | |
JPH04307611A (en) | 1/2-width pulse generating circuit | |
JPH0256853B2 (en) | ||
JPH02272820A (en) | Monostable multivibrator | |
JPH0645891A (en) | Pulse shaping circuit and variable frequency divider system using the same | |
JPH01236727A (en) | Synchronizing clock generating circuit |