JPH038124B2 - - Google Patents
Info
- Publication number
- JPH038124B2 JPH038124B2 JP26857785A JP26857785A JPH038124B2 JP H038124 B2 JPH038124 B2 JP H038124B2 JP 26857785 A JP26857785 A JP 26857785A JP 26857785 A JP26857785 A JP 26857785A JP H038124 B2 JPH038124 B2 JP H038124B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- pulse
- input
- pulse detection
- 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
Links
- 238000001514 detection method Methods 0.000 claims description 46
- 230000015654 memory Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000000717 retained effect Effects 0.000 description 2
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Manipulation Of Pulses (AREA)
Description
【発明の詳細な説明】
[発明の技術分野]
本発明はパルス計数回路に使用されるパルス検
出回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a pulse detection circuit used in a pulse counting circuit.
[発明の技術的背景とその問題点]
従来、パルス計数回路の用途として次のような
ものがある。[Technical background of the invention and its problems] Conventionally, pulse counting circuits have been used as follows.
パルス計数がある一定値に達したかを求める
もの、
パルス計数値が一定値に達したらクリアして
再び計数をくり返すもの、
一定期間中のパルス数の積算値を求めるも
の、
複数のパルス信号を同一のゲート制御のもと
で計算し、あるいはカウンタの予じめ設定した
計数値に達する間や繰り返し期間中の他のカウ
ンタの計数他を求めることで、2つのパルス計
数値の比を算出するもの等、種々の計数処理が
可能なものがある。 One that determines whether the pulse count has reached a certain value, one that clears the pulse count when it reaches a certain value and repeats the counting again, one that determines the cumulative value of the number of pulses during a certain period, and multiple pulse signals. Calculate the ratio of two pulse counts under the same gate control, or by determining the counts of other counters while the counter reaches a preset count value or during the repetition period. There are some that are capable of various counting processes, such as those that do.
これらの用途に対しては各カウンタ毎に比較
器、プリセツト値設定器および比較一致検出回路
を備え、の用途のものにはさらにくり返しのた
めの回路、の用途のものには一定時間カウント
する別のカウンタを設けるなどのハードウエアが
必要である。またの用途のものには複数カウン
タの制御を行うための構成すなわち同一のゲート
制御信号を入れる回路または一つのカウンタの比
較検出時点で、他のカウンタのゲート制御信号を
制御するための回路などの構成が必要である。こ
の場合特に、パルス信号の数が増すに従つてパル
ス計数回路の構成が複雑となる。 For these uses, each counter is equipped with a comparator, a preset value setter, and a comparison match detection circuit. This requires hardware such as a counter. Other applications include a configuration for controlling multiple counters, that is, a circuit that inputs the same gate control signal, or a circuit that controls the gate control signals of other counters at the time of comparison detection of one counter. Configuration is required. In this case, the configuration of the pulse counting circuit becomes particularly complex as the number of pulse signals increases.
このようなことから、本出願人はハードウエア
の構成を簡単にするため、1組の計数処理装置に
より時分割処理して複数のパルス信号を計数でき
るパルス計数回路を開発した(特願昭53−120768
号明細書)。 Therefore, in order to simplify the hardware configuration, the present applicant developed a pulse counting circuit that can count multiple pulse signals by time-division processing using a set of counting processing devices (Patent Application No. 53). −120768
No. Specification).
このパルス計数回路を開発するに当り、パルス
信号の入力状態を一定周期で検出することが可能
なパルス検出回路の開発が要望されている。 In developing this pulse counting circuit, there is a demand for the development of a pulse detection circuit that can detect the input state of a pulse signal at regular intervals.
そこで、本発明はパルス信号の入力状態を一定
周期で検出することが可能なパルス検出回路を提
供することを目的とする。 SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a pulse detection circuit capable of detecting the input state of a pulse signal at regular intervals.
[発明の概要]
上記目的を達成するために、パルス信号を受信
する度に論理値の反転したパルス検出信号を出力
するパルス検出手段と、上記パルス検出信号を前
記パルス信号の周期より短かい周期のホールド信
号により書き込まれ記憶保持するメモリと、前回
のホールド信号で記憶保持したパルス検出信号を
保持し、今回のホールド信号で新たに書き込まれ
たパルス検出信号と比較して変化があつたときに
所定の論理値の検出信号を出力する信号変化検出
手段とから構成したものである。[Summary of the Invention] In order to achieve the above object, there is provided a pulse detection means that outputs a pulse detection signal whose logical value is inverted every time a pulse signal is received, and a pulse detection means that outputs a pulse detection signal whose logical value is inverted every time a pulse signal is received, The memory that is written and retained by the hold signal and the pulse detection signal stored and retained by the previous hold signal are stored, and when there is a change compared to the pulse detection signal newly written by the current hold signal. and signal change detection means for outputting a detection signal of a predetermined logical value.
本発明によれば、パルス信号の入力状態を一定
周期で検出することが可能となる。 According to the present invention, it is possible to detect the input state of a pulse signal at regular intervals.
[発明の実施例] 本発明の基本的な実施例を第1図に示す。[Embodiments of the invention] A basic embodiment of the invention is shown in FIG.
同図において、1はパルス信号が入力される度
にその出力であるパルス検出信号の論理値を反転
するJKフリツプフロツプ回路等のパルス検出手
段、2および3はホールド信号のタイミングでパ
ルス検出信号およびゲート信号をそれぞれ記憶す
るメモリ、4および5は前回のホールド信号で記
憶されたパルス検出信号およびゲート信号をそれ
ぞれ記憶保持し、今回のホールド信号で新たに記
憶されたパルス検出信号およびゲート信号とそれ
ぞれ比較し変化があつたとき、それぞれ所定の論
理値の検出信号を出力する信号変化検出手段であ
る。 In the figure, 1 is a pulse detection means such as a JK flip-flop circuit that inverts the logical value of the output pulse detection signal every time a pulse signal is input, and 2 and 3 are pulse detection means that output a pulse detection signal and a gate at the timing of a hold signal. Memories 4 and 5 each store the pulse detection signal and gate signal stored in the previous hold signal, and compare them with the newly stored pulse detection signal and gate signal in the current hold signal, respectively. The signal change detection means outputs a detection signal of a predetermined logical value when a change occurs.
上記構成においてパルス検出手段1は通常パル
ス信号の立上りか立下りの時点で出力を反転させ
る。また、ゲート信号はパルス信号の取込みの開
始と停止を制御するための信号である。ホールド
信号はパルス信号の周期より短かい一定の周期で
外部から与えられ、これによりパルス検出信号の
論理値はホールド信号の一周期内に唯1回の変化
を許容することになる。従つてパルス信号の入力
があつたとき、信号変化検出手段4はパルス検出
信号の変化を検出して所定の論理値の検出信号
FPを出力する。この検出信号FPはホールド信号
の周期間維持できるので、この周期内で外部装置
により検出信号FPをチエツクしてパルス計数処
理を行うことが可能となる。また、本実施例では
ゲート信号も同時に記憶しその変化を検出してい
るので所定の期間のパルス信号の計数を行うこと
も可能である。 In the above configuration, the pulse detection means 1 normally inverts its output at the rising edge or falling edge of the pulse signal. Further, the gate signal is a signal for controlling the start and stop of capturing the pulse signal. The hold signal is externally applied at a constant period shorter than the period of the pulse signal, so that the logic value of the pulse detection signal is allowed to change only once within one period of the hold signal. Therefore, when a pulse signal is input, the signal change detection means 4 detects a change in the pulse detection signal and outputs a detection signal of a predetermined logical value.
Output FP. Since this detection signal FP can be maintained for the period of the hold signal, it becomes possible to check the detection signal FP with an external device and perform pulse counting processing within this period. Furthermore, in this embodiment, since the gate signal is also stored at the same time and its changes are detected, it is also possible to count the pulse signals for a predetermined period.
第2図は前述した第1図のパルス検出回路を具
体的に示した詳細回路図である。第2図におい
て、IC1〜IC5外部クロツク同期型のJKフリツ
プフロツプ、IC6,IC7は排他論理和回路、IC
8は論理値を反転するインバータである。 FIG. 2 is a detailed circuit diagram specifically showing the pulse detection circuit of FIG. 1 mentioned above. In Figure 2, IC1 to IC5 are external clock synchronized JK flip-flops, IC6 and IC7 are exclusive OR circuits, and IC
8 is an inverter that inverts the logical value.
IC1の入力端子J,Kには電源電圧VCCが印
加されており、クロツク入力端子Cpにパルス信
号PULSEが入力される度にその出力信号LP1は
論理値が反転する。IC1の出力Q,QはIC2の
入力端子J,Kに入力され、IC2の出力Q,Q
はIC4の入力端子J,Kに入力されるように構
成され、IC2の出力信号LP2とIC4の出力信号
LP3はIC6に入力されている。IC3の入力端子
Jにはゲート信号GATEが直接入力され、イン
バータIC8を介したゲート信号GATEがIC3の
入力端子Kに入力されるように構成されている。
IC3の出力Q,QはIC5の入力端子J,Kに入
力され、IC3の出力信号LG1とIC5の出力信号
LG2がIC7に入力されている。IC2〜IC5クロ
ツク端子Cpにはそれぞれホールド信号HLDが印
加されている。 A power supply voltage VCC is applied to the input terminals J and K of the IC1, and the logic value of the output signal LP1 is inverted every time the pulse signal PULSE is input to the clock input terminal Cp. The outputs Q and Q of IC1 are input to the input terminals J and K of IC2, and the outputs Q and Q of IC2 are input to the input terminals J and K of IC2.
is configured to be input to the input terminals J and K of IC4, and the output signal LP2 of IC2 and the output signal of IC4
LP3 is input to IC6. The gate signal GATE is directly input to the input terminal J of the IC3, and the gate signal GATE via the inverter IC8 is input to the input terminal K of the IC3.
The outputs Q and Q of IC3 are input to the input terminals J and K of IC5, and the output signal LG1 of IC3 and the output signal of IC5
LG2 is input to IC7. A hold signal HLD is applied to each of the clock terminals Cp of IC2 to IC5.
上記構成において、パルス信号PULSEが入力
された場合の動作態様を第3図のタイムチヤート
に示す。同図に示すように、ホールド信号HLD
はパルス信号PULSEの周期より短かい一定の周
期で入力されている。パルス信号PULSEはホー
ルド信号HLDとは無関係に独立したパルス信号
PULSEとしてIC1に入力され、本実施例では立
下り時点でIC1の出力信号LP1を反転させてい
る。 In the above configuration, the operation mode when the pulse signal PULSE is input is shown in the time chart of FIG. As shown in the figure, the hold signal HLD
is input at a constant period shorter than the period of the pulse signal PULSE. The pulse signal PULSE is an independent pulse signal independent of the hold signal HLD.
It is input to IC1 as PULSE, and in this embodiment, the output signal LP1 of IC1 is inverted at the falling edge.
図に示すようにホールド信号HLDの発生時刻
t0とt1の間で出力信号LP1が反転すると、時刻t1
で出力信号LP2が反転し、時刻t2で信号LP3が
同様に反転する。従つて、IC6の出力である検
出信号FPは時刻t1とt2の期間中“1”の論理値を
出力する。 As shown in the figure, the time of occurrence of the hold signal HLD
When the output signal LP1 is inverted between t 0 and t 1 , the time t 1
At time t2, the output signal LP2 is inverted, and at time t2 , the signal LP3 is similarly inverted. Therefore, the detection signal FP, which is the output of the IC 6, outputs a logical value of "1" during the period between times t1 and t2 .
以下、同様にして出力信号LP1が反転する度
に検出信号FPを出力し、パルス信号PULSEのP1
〜P7に対応した検出信号P1′〜P7′を得ることがで
きる。 Thereafter, in the same way, every time the output signal LP1 is inverted, the detection signal FP is output, and P 1 of the pulse signal PULSE is
Detection signals P 1 ′ to P 7 ′ corresponding to P 7 can be obtained.
また、ゲート信号GATEの変化はホールド信
号HLDにより時刻t0でIC3の出力信号LG1に伝
達され、時刻t1にIC5の出力信号LG2に伝達さ
れる。これによりIC7の出力信号FGGはt0とt1の
期間中“1”の論理値を出力する。 Further, a change in the gate signal GATE is transmitted to the output signal LG1 of IC3 at time t0 by the hold signal HLD, and is transmitted to the output signal LG2 of IC5 at time t1 . As a result, the output signal FGG of IC7 outputs a logical value of "1" during the period t0 and t1 .
ここで、パルス信号PULSEとゲート信号
GATEのタイミングによつては信号FGG,FPは
重なる可能性があるが、信号LG1(FG)は現状
のゲート信号GATEより一つ前のホールド信号
HLDの状態がわかり、これによりパルス信号
PULSEを計数すべきか否かを判断するためのも
のである。また、信号FGGはゲート信号GATE
が存在している状態でゲート信号GATEに変化
があつたかどうかをみるためのものである。信号
FPはパルス信号PULSEがあつたかどうかを判断
するためのものである。 Here, pulse signal PULSE and gate signal
Depending on the timing of GATE, signals FGG and FP may overlap, but signal LG1 (FG) is the hold signal one before the current gate signal GATE.
The state of the HLD can be determined, which allows the pulse signal to be
This is to determine whether PULSE should be counted or not. Also, the signal FGG is the gate signal GATE
This is to check whether there is a change in the gate signal GATE while . signal
FP is for determining whether the pulse signal PULSE is received.
従つて、これらの信号FGG,FPにより計数す
べき入力信号の状態を完全に把握することが可能
となり、ホールド信号HLDに同期して動作する
外部装置でこれらの信号FGG,FPをチエツクす
ることによりパルス計数処理が可能となる。 Therefore, it is possible to completely understand the state of the input signal to be counted using these signals FGG and FP, and by checking these signals FGG and FP with an external device that operates in synchronization with the hold signal HLD. Pulse counting processing becomes possible.
なお、本発明は、複数のパルス入力系に適用す
る場合には、該パルス入力系に対応したパルス検
出回路を設け、これらのパルス検出回路の信号
FGG,FPを例えば1組の計数処理装置を用いて
時分割処理することにより、複数のパルス信号
PULSEの計数を行うことも可能となる。 Note that when the present invention is applied to a plurality of pulse input systems, pulse detection circuits corresponding to the pulse input systems are provided, and the signals of these pulse detection circuits are
By time-divisionally processing FGG and FP using, for example, a set of counting processors, multiple pulse signals can be generated.
It is also possible to count PULSE.
[発明の効果]
本発明によれば、パルス信号の入力状態を一定
周期で検出することが可能なパルス検出回路を得
ることができる。[Effects of the Invention] According to the present invention, it is possible to obtain a pulse detection circuit that can detect the input state of a pulse signal at regular intervals.
第1図は本発明のパルス検出回路の一実施例を
説明するための図、第2図は第1図の詳細回路
図、第3図は第2図の作用を説明するためのタイ
ムチヤートである。
1…パルス検出手段、2,3…メモリ、4,5
…信号変化検出手段。
Figure 1 is a diagram for explaining one embodiment of the pulse detection circuit of the present invention, Figure 2 is a detailed circuit diagram of Figure 1, and Figure 3 is a time chart for explaining the operation of Figure 2. be. 1... Pulse detection means, 2, 3... Memory, 4, 5
...Signal change detection means.
Claims (1)
パルス検出信号を出力するパルス検出手段と、 上記パルス検出信号を前記パルス信号の周期よ
り短かい周期のホールド信号により書き込まれ記
憶保持するメモリと、 前回のホールド信号で記憶保持したパルス検出
信号を保持し、今回のホールド信号で新たに書き
込まれたパルス検出信号と比較して変化があつた
ときに所定の論理値の検出信号を出力する信号変
化検出手段と、 から構成したことを特徴とするパルス検出回路。[Scope of Claims] 1. Pulse detection means that outputs a pulse detection signal whose logical value is inverted every time a pulse signal is received, and the pulse detection means is written with a hold signal having a cycle shorter than the cycle of the pulse signal. It holds the memory to store and the pulse detection signal stored in the previous hold signal, and detects a predetermined logical value when there is a change in comparison with the pulse detection signal newly written in the current hold signal. A pulse detection circuit comprising: a signal change detection means for outputting a signal; and a pulse detection circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26857785A JPS61142822A (en) | 1985-11-29 | 1985-11-29 | Pulse counting circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26857785A JPS61142822A (en) | 1985-11-29 | 1985-11-29 | Pulse counting circuit |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP12076878A Division JPS5547736A (en) | 1978-09-30 | 1978-09-30 | Pulse count circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61142822A JPS61142822A (en) | 1986-06-30 |
| JPH038124B2 true JPH038124B2 (en) | 1991-02-05 |
Family
ID=17460455
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP26857785A Granted JPS61142822A (en) | 1985-11-29 | 1985-11-29 | Pulse counting circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61142822A (en) |
-
1985
- 1985-11-29 JP JP26857785A patent/JPS61142822A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61142822A (en) | 1986-06-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3947697A (en) | Synchronizing circuit including two flip-flops and circuit means to protect a synchronized signal from an unstable state of the flip-flops | |
| US4502117A (en) | DMA Bus load varying unit | |
| JP3322893B2 (en) | Microcomputer | |
| JP3099927B2 (en) | Microcomputer | |
| JPH0754466B2 (en) | Data source system | |
| JPH038124B2 (en) | ||
| JP2625249B2 (en) | Frame detection circuit | |
| JPH0483425A (en) | Pulse generating circuit | |
| JPS58182924A (en) | signal generation circuit | |
| JP2517943B2 (en) | Timer device | |
| JPH0516535Y2 (en) | ||
| JP2816745B2 (en) | Timer output device | |
| JPH01216626A (en) | Pulse count circuit | |
| JP2794441B2 (en) | PWM controller | |
| JP2557785Y2 (en) | Single chip microcomputer | |
| JPH01123329A (en) | Interrupting circuit | |
| JPS6233394Y2 (en) | ||
| JP3144811B2 (en) | Monitoring timer circuit | |
| JPH038005A (en) | Timer control system | |
| JPH04225432A (en) | Interruption processing time control system for one-chip microcomputer | |
| JPH04211832A (en) | Information processor | |
| JPH0544684B2 (en) | ||
| JPS62113245A (en) | Operation monitoring device for signal processor | |
| JPS61269737A (en) | Timer interrupt correction circuit | |
| JPH02139794A (en) | Refresh period monitoring circuit |