Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS5849826B2 - pulse counting circuit - Google Patents
[go: Go Back, main page]

JPS5849826B2 - pulse counting circuit - Google Patents

pulse counting circuit

Info

Publication number
JPS5849826B2
JPS5849826B2 JP17932580A JP17932580A JPS5849826B2 JP S5849826 B2 JPS5849826 B2 JP S5849826B2 JP 17932580 A JP17932580 A JP 17932580A JP 17932580 A JP17932580 A JP 17932580A JP S5849826 B2 JPS5849826 B2 JP S5849826B2
Authority
JP
Japan
Prior art keywords
circuit
input signal
counter
counting
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP17932580A
Other languages
Japanese (ja)
Other versions
JPS57103066A (en
Inventor
昭二 進藤
福吉 渡辺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP17932580A priority Critical patent/JPS5849826B2/en
Publication of JPS57103066A publication Critical patent/JPS57103066A/en
Publication of JPS5849826B2 publication Critical patent/JPS5849826B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/02Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage
    • G01R23/15Indicating that frequency of pulses is either above or below a predetermined value or within or outside a predetermined range of values, by making use of non-linear or digital elements (indicating that pulse width is above or below a certain limit)

Landscapes

  • Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Frequencies, Analyzing Spectra (AREA)

Description

【発明の詳細な説明】 この発明は入力信号のパルス数を一定時間計数し、この
計数結果を出力するパルス計数回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a pulse counting circuit that counts the number of pulses of an input signal for a certain period of time and outputs the counting result.

従来、入力信号のパルス数を一定時間計数するパルス計
数回路にあっては、パルスの周波数が一定であっても計
数するパルスと基準となる一定時間との位相が一致して
いないため、実際のパルス値に対して±1個のパルス数
のカウント誤差を生じていた。
Conventionally, in pulse counting circuits that count the number of pulses of an input signal over a fixed period of time, even if the frequency of the pulses is constant, the phase of the pulses to be counted and the reference fixed period of time do not match, so the actual A counting error of ±1 pulse number occurred with respect to the pulse value.

また、基準となる一定時間を計数するパルスに同期させ
るものであっても、パルスの周波数に微量な変化のある
ものではやはりカウント数と実際のパルス数との間に±
1の差を生じていた。
Furthermore, even if the pulse is synchronized with a reference pulse that counts for a certain period of time, if there is a slight change in the pulse frequency, there will still be a difference between the counted number and the actual number of pulses.
There was a difference of 1.

したがって、そのカウント数を表示すると、入力信号の
パルス数が一定でも一定した表示をせず、最下位ビット
の表示が不安定となり、ちらつきが生じて非常に読みに
くいという欠点を有していた。
Therefore, when the count number is displayed, even if the number of pulses of the input signal is constant, the display is not constant, and the display of the least significant bit becomes unstable and flickers, making it very difficult to read.

この発明は上記事情に鑑みてなされたもので、その目的
とするところは、入力信号のパルス数を正確に計数する
ことができ、しかも計数結果の表示を安定なものとする
ことが可能なパルス計数回路を提供することにある。
This invention was made in view of the above circumstances, and its purpose is to provide a pulse count that can accurately count the number of pulses of an input signal and that can stably display the counting results. The purpose of this invention is to provide a counting circuit.

以下、この発明の一実施例について図面を参照して説明
する。
An embodiment of the present invention will be described below with reference to the drawings.

第1図において、第1のタイマ回路1は入力信号に応じ
て動作を開始し、所定時間経過後に動作を停止するもの
Cある。
In FIG. 1, a first timer circuit 1 starts operating in response to an input signal and stops operating after a predetermined period of time has elapsed.

すなわち、フリップフロノプ回路(以後単にFF回路と
略称する)2のセット入力端には入力信号が供給される
That is, an input signal is supplied to a set input terminal of a flip-flop circuit (hereinafter simply referred to as an FF circuit) 2.

このFF回路2のセット出力はカウンタ3に供給され、
このカウンタ3には基準信号発生回路4からのクロツク
信号も供給される。
The set output of this FF circuit 2 is supplied to the counter 3,
This counter 3 is also supplied with a clock signal from a reference signal generating circuit 4.

上記カウンタ3は所定時間経過後つまりクロツク信号に
よるカウント数が所定値となったときに論理”1”信号
を出力するものである。
The counter 3 outputs a logic "1" signal after a predetermined time has elapsed, that is, when the count by the clock signal reaches a predetermined value.

上記カウンタ3の出力は上記FF回路2のリセット入力
端に供給されるとともに、第2のタイマ回路5に供給さ
れる。
The output of the counter 3 is supplied to the reset input terminal of the FF circuit 2 and also to the second timer circuit 5.

この第2のタイマ回路5はカウンタ3の出力に応じて動
作を開始し、所定時間経過後に動作を停止するものであ
る。
This second timer circuit 5 starts operating in response to the output of the counter 3, and stops operating after a predetermined period of time has elapsed.

すなわち、FF回路6のセット入力端lこはカウンタ3
の出力が供給される。
That is, the set input terminal of the FF circuit 6 is connected to the counter 3.
output is supplied.

このFF回路6のセット出力はカウンタ7に供給され、
とのカウンタ7には上記基準信号発生回路4からのクロ
ック信号も供給される。
The set output of this FF circuit 6 is supplied to the counter 7,
The counter 7 is also supplied with a clock signal from the reference signal generating circuit 4.

上記カウンタ7は所定時間経過後つまりクロツク信号に
よるカウント数が所定値となったときに論理”1″信号
を出力するものである。
The counter 7 outputs a logic "1" signal after a predetermined time has elapsed, that is, when the count by the clock signal reaches a predetermined value.

上記カウンタ7の出力は上記FF回路6のリセット入力
端に供給される。
The output of the counter 7 is supplied to the reset input terminal of the FF circuit 6.

一方、カウンタ(計数回路)8には前記入力信号が供給
されるとともにFF回路2のセット出力が供給される。
On the other hand, a counter (counting circuit) 8 is supplied with the input signal and the set output of the FF circuit 2.

このカウンタ8はFF回路2からのセット出力が供給さ
れている間、入力信号のパルス数をカウントするもので
ある。
This counter 8 counts the number of pulses of the input signal while the set output from the FF circuit 2 is being supplied.

上記カウンタ8のカウント内容はラッチ回路9に供給さ
れ、このラッチ回路9には前記カウンタ3の出力が供給
される。
The count contents of the counter 8 are supplied to a latch circuit 9, and the output of the counter 3 is supplied to the latch circuit 9.

上記ラッチ回路9はカウンタ3の出力信号が供給された
ときカウンタ8の内容を記憶する回路である。
The latch circuit 9 is a circuit that stores the contents of the counter 8 when the output signal of the counter 3 is supplied.

上記ラッチ回路9の出力はラッチ回路(記憶回路)10
に供給され、このラッチ回路10には後述するアンド回
路14からの信号が供給される。
The output of the latch circuit 9 is the latch circuit (memory circuit) 10
This latch circuit 10 is supplied with a signal from an AND circuit 14, which will be described later.

上記ラッチ回路1oはアンド回路14の出力信号に応じ
てラッチ回路9の内容を記憶する回路である。
The latch circuit 1o is a circuit that stores the contents of the latch circuit 9 according to the output signal of the AND circuit 14.

なお、上記ラッチ回路10の記憶内容が図示しない表示
装置へ供給されることにより、表示装置で表示されるよ
うになっている。
Note that the stored contents of the latch circuit 10 are supplied to a display device (not shown) so that the contents are displayed on the display device.

また、上記ラッチ回路9,10の各出力は比較回路11
に供給されている。
Further, each output of the latch circuits 9 and 10 is connected to a comparison circuit 11.
is supplied to.

この比較回路11はラッチ回路10の前回の計数結果と
ラッチ回路9の今回の計数結果とを比較し、その比較の
結果今回の計数結果が前回の計数結果よりもr−1j少
ないとき論理”1”信号を出力し、差が上記「−11以
外のときは論理″O n信号を出力する回路である。
This comparison circuit 11 compares the previous counting result of the latch circuit 10 and the current counting result of the latch circuit 9, and if the result of the comparison is that the current counting result is r-1j less than the previous counting result, logic "1" is generated. This is a circuit that outputs a logic "ON" signal when the difference is other than the above-mentioned "-11".

一方、判定回路たとえばD形フリップフロップ回路(以
後単にD−FF回路と略称する)12のクロックパルス
入力端CPには前記入力信号が供給され、データ人力端
Dには前記FF回路6のセット出力が供給される。
On the other hand, the input signal is supplied to the clock pulse input terminal CP of a determination circuit, for example, a D-type flip-flop circuit (hereinafter simply referred to as a D-FF circuit) 12, and the set output of the FF circuit 6 is supplied to the data input terminal D. is supplied.

上記D−FF回路12は、カウンタ7の動作時、前記入
力信号のパルスが検出されたとき信号を出力する回路で
ある。
The D-FF circuit 12 is a circuit that outputs a signal when a pulse of the input signal is detected during the operation of the counter 7.

上記D−FF回路12のセット出力はナンド回路13の
一方の入力端に供給され、このナンド回路13の他方の
入力端には前記比較回路11の出カ信号が供給される。
The set output of the D-FF circuit 12 is supplied to one input terminal of a NAND circuit 13, and the output signal of the comparison circuit 11 is supplied to the other input terminal of this NAND circuit 13.

上記ナンド回路13の出力および前記カウンタ7の出力
はアンド回路14を介して前記ラッチ回路10に供給さ
れる。
The output of the NAND circuit 13 and the output of the counter 7 are supplied to the latch circuit 10 via an AND circuit 14.

次lご、このような構成において動作を説明する。Next, the operation in such a configuration will be explained.

たとえば今、第2図aに示すような入力信号が供給され
ているものとする。
For example, assume that an input signal as shown in FIG. 2a is being supplied.

すると、最初のパルスの立上りでFF回路2がセットし
、このセット出力によりカウンタ3が基準信号発生回路
4からのクロツクパルスをカウントする。
Then, the FF circuit 2 is set at the rising edge of the first pulse, and the counter 3 counts the clock pulses from the reference signal generating circuit 4 based on this set output.

このとき、FF回路2のセット出力によりカウンタ8は
入力信号のパルス数をカウントしている。
At this time, the counter 8 counts the number of pulses of the input signal based on the set output of the FF circuit 2.

そして、カウンタ3のカウント数が所定値となったとき
、カウンタ3は動作を停止し、第2図dに示す信号を出
力する。
When the count number of the counter 3 reaches a predetermined value, the counter 3 stops its operation and outputs the signal shown in FIG. 2d.

この出力によりFF回路2はリセットされカウンタ8の
カウント動作が停止するとともに、FF回路6をセット
しこのセット出力にょリカウンタ7が基準信号発生回路
4からのクロック信号をカウントする。
This output resets the FF circuit 2 and stops the counting operation of the counter 8, and sets the FF circuit 6 so that the set output counter 7 counts the clock signal from the reference signal generating circuit 4.

またこのとき、ラッチ回路きはカウンタ8の内容をラッ
チする。
Also, at this time, the latch circuit latches the contents of the counter 8.

ラッチ回路9に今回の計数結果がラッチされると比較回
路11はラッチ回路10の前回の計数結果と今回の計数
結果とを比較し今回の計数結果が前回の計数結果よりも
r−1j少ないとき”1”信号を出力しそれ以外のとき
は″O”信号を出刀する。
When the current counting result is latched in the latch circuit 9, the comparison circuit 11 compares the previous counting result of the latch circuit 10 with the current counting result, and if the current counting result is r-1j less than the previous counting result. It outputs a "1" signal, and otherwise issues an "O" signal.

そののちカウンタ7のカウント数が所定値となったとき
カウンタ7は動作を停止し、第2図eに示す信号を出力
することによりFF回路6がリセットされる。
Thereafter, when the count number of the counter 7 reaches a predetermined value, the counter 7 stops its operation, and the FF circuit 6 is reset by outputting the signal shown in FIG. 2e.

上記カウンタ7が動作している間に入力信号によるパル
スがD−FF回路12に供給されたときD−FF回路1
2はセットされる。
When a pulse according to an input signal is supplied to the D-FF circuit 12 while the counter 7 is operating, the D-FF circuit 1
2 is set.

ナンド回路13、およびアンド回路14は上記比較回路
11の比較結果と上記D−FF回路12の判定結果にょ
りカウンタ7の出力をラッチ回路10に供給するか否か
を決めるものであり前回と今回の差において今回が前回
よりも「11少な<D−FF回路12がリセットしてい
るときカウンタ7の出力はアンド回路14を介してラッ
チ回路10に供給されラッチ回路10はラッチ回路9の
内容つまり今回の計数結果をラッチする。
The NAND circuit 13 and the AND circuit 14 decide whether or not to supply the output of the counter 7 to the latch circuit 10 based on the comparison result of the comparison circuit 11 and the judgment result of the D-FF circuit 12. This time there is a difference of 11 less than the previous time. When the D-FF circuit 12 is being reset, the output of the counter 7 is supplied to the latch circuit 10 via the AND circuit 14, and the latch circuit 10 outputs the contents of the latch circuit 9. Latch the current count result.

また、前回と今回の差において今回が「−1」少なくて
D−FF12がセットしているとき、カウンタ7の出力
はラッチ回路10に供給されず、ラッチ回路10は前回
の計数結果を記憶している。
Furthermore, when the difference between the previous time and this time is "-1" less this time and the D-FF 12 is set, the output of the counter 7 is not supplied to the latch circuit 10, and the latch circuit 10 stores the previous counting result. ing.

さらに、前回と今回の差が「−1−1以外のとき、カウ
ンタ7の出力はオア回路14を介してラッチ回路10に
供給される。
Further, when the difference between the previous time and this time is other than "-1-1", the output of the counter 7 is supplied to the latch circuit 10 via the OR circuit 14.

すると、ラッチ回路10はラッチ回路9の内容をラッチ
する。
Then, the latch circuit 10 latches the contents of the latch circuit 9.

なお、上記要部のタイミングチャートを第2図a・・・
・・・jに示す。
The timing chart of the above-mentioned main parts is shown in Figure 2a...
...shown in j.

第3図に本発明に係る装置の入力信号と表示出力との表
示特性図を示しており実線は入力信号が増加する場合の
入力信号と表示出力の関係を示し破線は入力信号が減少
する場合の入力信号と表示出力の関係を示している。
Figure 3 shows a display characteristic diagram of the input signal and display output of the device according to the present invention, where the solid line shows the relationship between the input signal and display output when the input signal increases, and the broken line shows the relationship between the input signal and display output when the input signal decreases. shows the relationship between the input signal and display output.

入力信号の増加時と減少時との表示値変化点の差は第2
タイマ回路時間により決まりこの第2タイマ回路時間が
短かいほど入力信号変動時における表示値変化点の差は
なくなり理想的な表示特性に近くなる。
The difference in the display value change point when the input signal increases and decreases is the second
It is determined by the timer circuit time, and the shorter the second timer circuit time, the less the difference in display value change points when the input signal fluctuates, and the closer the display characteristics are to ideal.

また第2タイマ回路時間が長くなると入力信号変動時に
おける表示値変化点の差は大きくなる。
Furthermore, as the second timer circuit time becomes longer, the difference in display value change points when the input signal fluctuates becomes larger.

このことから本発明にあたっては入力信号の一定周期の
変動誤差に応じて第2タイマ回路時間を決め、所定値を
設定するようにしておりこれによって安定した表示特性
と理想的表示特性を得られるものである。
For this reason, in the present invention, the second timer circuit time is determined according to the constant cycle fluctuation error of the input signal, and a predetermined value is set, thereby achieving stable display characteristics and ideal display characteristics. It is.

このように、今回が前回よりもr−1j少なくてかつ第
2のタイマ回路5の動作中に入力信号のパルス信号が供
給されているとぎ、ラッチ回路10の内容を前回のまま
とし、それ以外のとぎはラッチ回路10の内容を今回の
計数結果つまりラツチ回路9の内容で更新するようにし
たので、入力信号のパルスの周期のわずかなちがいによ
り前回の計数値が異なったとぎでもそのまま前回と同じ
計数値が得られ、計数値が安定したものとなり、その計
数値の表示にちらつきが生じない。
In this way, as long as the current time is r-1j less than the previous time and the pulse signal of the input signal is being supplied while the second timer circuit 5 is operating, the contents of the latch circuit 10 are left as they were last time, and other than that. Notogi is designed to update the contents of the latch circuit 10 with the current count result, that is, the contents of the latch circuit 9, so even if the previous count value differs due to a slight difference in the pulse cycle of the input signal, it will remain unchanged from the previous count value. The same count value is obtained, the count value becomes stable, and the display of the count value does not flicker.

なお、前記実施例では、比較回路において、今回と前回
の差が「−L1少ないかそれ以外かで出力を変化させて
いたが、これに限らずたとえば今回と前回の差が今回の
方が「−2」以内で少ないかそれ以外かで出力を変化す
る場合などでも良い。
In the above embodiment, in the comparison circuit, the output is changed depending on whether the difference between this time and the previous time is "-L1 less" or something else. It is also possible to change the output depending on whether it is less than -2'' or other than that.

以上詳述したようにこの発明によれば、入力信号のパル
ス数を正確に計数することができ、しかも計数結果の表
示を安定なものとすることが可能なパルス計数回路を提
供できるものである。
As detailed above, according to the present invention, it is possible to provide a pulse counting circuit that can accurately count the number of pulses of an input signal and can stably display the counting results. .

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

図面はこの発明の一実施例を示すもので、第1図は全体
を示す概略ブロック図、第2図a・・・・・・jは動作
を説明するためのタイミングチャート、第3図は本発明
の表示特性を説明するための表示特性図である。 1・・・・・・第1のタイマ回路、2,6・・・・・・
FF回路、3,7・・・・・・カウンタ、4・・・・・
基準信号発生回路、5・・一・・第2のタイマ回路、8
・・−・・カウンタ(計数回路)9・・−・・ラッチ回
路、10・・一・・ラッチ回路(記憶回路)11・・一
・・比較回路、12・・・・・・D−FF回路(判定回
路)、13・・・・・・ナンド回路、14・・・・・・
アンド回路。
The drawings show one embodiment of the present invention; FIG. 1 is a schematic block diagram showing the whole, FIG. 2 a...j is a timing chart for explaining the operation, and FIG. FIG. 3 is a display characteristic diagram for explaining display characteristics of the invention. 1...First timer circuit, 2,6...
FF circuit, 3, 7... Counter, 4...
Reference signal generation circuit, 5...1...Second timer circuit, 8
...Counter (counting circuit) 9...Latch circuit, 10...1...Latch circuit (memory circuit) 11...1...Comparison circuit, 12...D-FF Circuit (judgment circuit), 13... NAND circuit, 14...
AND circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 人力信号のパルス数を一定時間計数し、この計数結
果を出力するパルス計数回路において、前記入力信号に
応じて動作を開始し、所定時間経過後に動作を停止する
第1のタイマ回路と、この第1のタイマ回路の動作時、
前記入力信号のパルス数を計数する計数回路と、前記第
1のタイマ回路の動作終了時動作を開始し、所定時間経
過後に動作を停止する第2のタイマ回路と、この第2の
タイマ回路の動作時、前記入力信号のパルスが検出され
るか否かを判定する判定回路と、前記計数回路による前
回の計数結果を記憶する記憶回路と、この記憶回路の前
回の計数結果と前記計数回路の今回の計数結果とを比較
し、この比較結果と前記判定回路の判定結果に応じて前
記記憶回路の内容を計数回路の内容に更新する手段とを
具備したことを特徴とするパルス計数回路。
1. In a pulse counting circuit that counts the number of pulses of a human input signal for a certain period of time and outputs the counting result, a first timer circuit that starts operation in response to the input signal and stops operation after a predetermined period of time has elapsed; When the first timer circuit operates,
a counting circuit that counts the number of pulses of the input signal; a second timer circuit that starts operation when the operation of the first timer circuit ends and stops operation after a predetermined period of time; During operation, a determination circuit that determines whether a pulse of the input signal is detected; a storage circuit that stores the previous counting result of the counting circuit; A pulse counting circuit comprising means for comparing the current counting result and updating the contents of the storage circuit to the contents of the counting circuit according to the comparison result and the judgment result of the judgment circuit.
JP17932580A 1980-12-18 1980-12-18 pulse counting circuit Expired JPS5849826B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17932580A JPS5849826B2 (en) 1980-12-18 1980-12-18 pulse counting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17932580A JPS5849826B2 (en) 1980-12-18 1980-12-18 pulse counting circuit

Publications (2)

Publication Number Publication Date
JPS57103066A JPS57103066A (en) 1982-06-26
JPS5849826B2 true JPS5849826B2 (en) 1983-11-07

Family

ID=16063858

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17932580A Expired JPS5849826B2 (en) 1980-12-18 1980-12-18 pulse counting circuit

Country Status (1)

Country Link
JP (1) JPS5849826B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0767078B2 (en) * 1988-02-18 1995-07-19 富士通テン株式会社 Pulse counting method
JP2652993B2 (en) * 1991-01-17 1997-09-10 日本電気株式会社 Counting circuit

Also Published As

Publication number Publication date
JPS57103066A (en) 1982-06-26

Similar Documents

Publication Publication Date Title
EP0168232A2 (en) Apparatus for generating digital timing waveforms
JPH0262964B2 (en)
US4985640A (en) Apparatus for generating computer clock pulses
JP3523362B2 (en) Clock circuit and processor using the same
EP0251528B1 (en) Digital peak-hold circuit
JPS5849826B2 (en) pulse counting circuit
JP2000341092A (en) Clock signal generating circuit and clock frequency adjustment method
JP4022318B2 (en) Reset circuit
JP2001014841A (en) Data storage device
JPH0755856A (en) Cycle measuring device
JPS62276925A (en) Digital counter circuit
JP2000315147A (en) Data rate conversion circuit
JPH06104740A (en) Input signal edge time measuring circuit and digital PLL device
JP2723748B2 (en) Timer circuit
JPH05315898A (en) Trigger synchronization circuit
JPS59231624A (en) Timing signal generating circuit
JPH06104741A (en) Digital PLL device
JPS6123907B2 (en)
JPS6233394Y2 (en)
JPH05275994A (en) Pulse width modulating device
JPH11212663A (en) Clock signal interruption detecting circuit
JPH0761003B2 (en) Timing circuit
JPH05297070A (en) Ic testing apparatus
JPH06111490A (en) Digital PLL device
JPH0645894A (en) Delay pulse generating circuit