JPH0342614B2 - - Google Patents

Info

Publication number
JPH0342614B2
JPH0342614B2 JP22375283A JP22375283A JPH0342614B2 JP H0342614 B2 JPH0342614 B2 JP H0342614B2 JP 22375283 A JP22375283 A JP 22375283A JP 22375283 A JP22375283 A JP 22375283A JP H0342614 B2 JPH0342614 B2 JP H0342614B2
Authority
JP
Japan
Prior art keywords
pulses
register
pulse
registers
consecutive
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
JP22375283A
Other languages
Japanese (ja)
Other versions
JPS60116226A (en
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 filed Critical
Priority to JP22375283A priority Critical patent/JPS60116226A/en
Publication of JPS60116226A publication Critical patent/JPS60116226A/en
Publication of JPH0342614B2 publication Critical patent/JPH0342614B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Indicating Measured Values (AREA)

Description

【発明の詳細な説明】 本発明は、例えば自動車やオートバイの走行速
度あるいはエンジン回転数等の測定量の変化に関
連して発生するパルス信号を計数するパルス計数
装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a pulse counting device that counts pulse signals generated in relation to changes in a measured quantity, such as the running speed or engine speed of an automobile or motorcycle.

一般に、測定量に比例したパルスにより、測定
量を表示するものとしては、基準クロツク信号に
より設定されたゲームタイムで測定量に比例した
パルスを計数し、この計数値をラツチして逐次更
新表示するようにした装置が知られている。この
装置は基準クロツク信号によるゲートタイムの設
定により更新可能時間が決定され、このゲートタ
イム内に入力されるパルス数の密度に応じて測定
精度が左右されるが、一般的に測定量の変化に比
例したパルスを高密度にすることは、パルス発生
器がかなり高価なものとなるばかりでなく、仮に
安価に提供されたとしても、高速時におけるクロ
ツク周期内に発生するパルス数が極めて多くな
り、カウンタの容量を増大しなければならず、総
体的に極めて大型で、高価な装置となるという欠
点があつた。またゲートタイムを長くして、この
ゲートタイム内に入力されるパルス数を相対的に
増大させる方法も容易に達成できるが、測定量の
急激な変化に追従することはできないという欠点
があつた。従つて一般には、第1図に示すよう
に、入力端子1に測定量の変化に比例したパルス
が入力された時、この入力端子1に接続された計
数周期を有するカウンタ2で計数し、カウンタ2
の計数終了時に、複数個たとえば4個のレジスタ
3a,3b,3c,3dにカウンタ2の計数値を
それぞれ記憶させ、これらのレジスタ3a〜3d
に記載された計数値を加算器4で加算し、この加
算値Pに応じた値を表示するようにしている。
In general, when displaying a measured quantity using pulses proportional to the measured quantity, the pulses proportional to the measured quantity are counted at a game time set by a reference clock signal, and this counted value is latched and displayed in an updated manner. Devices that do this are known. The updateable time for this device is determined by setting the gate time using the reference clock signal, and measurement accuracy depends on the density of the number of pulses input within this gate time. Providing a high density of proportional pulses not only makes the pulse generator quite expensive, but even if it were available at low cost, the number of pulses generated within a clock period at high speeds would be extremely large. The disadvantage is that the capacity of the counter must be increased, resulting in an extremely large and expensive device overall. Furthermore, a method of increasing the gate time and relatively increasing the number of pulses input within this gate time can be easily achieved, but this method has the disadvantage that it is not possible to follow sudden changes in the measured quantity. Therefore, as shown in Fig. 1, when a pulse proportional to a change in the measured quantity is input to input terminal 1, it is counted by counter 2 connected to input terminal 1 and has a counting period. 2
When counting is completed, the counted value of the counter 2 is stored in a plurality of registers, for example, four registers 3a, 3b, 3c, and 3d, and these registers 3a to 3d are stored.
The count values written in are added by an adder 4, and a value corresponding to this added value P is displayed.

第1図の回路の動作を第2図を加えて説明する
と、測定量たとえば走行速度の変化に比例したパ
ルスAが入力されると、カウンタ2の計数終了時
t1,t2,t3,t4に各表示切換時間たとえば1秒で
それぞれ計数されたパルス数P1,P2,P3,P4
レジスタ3d,3c,3b,3aで記憶され、こ
の記憶されたパルス数P1,P2,P3,P4が加算器
4で加算され、表示器5で(P1+P2+P3+P4
の値に応じた走行速度が表示される。
To explain the operation of the circuit shown in Fig. 1 with reference to Fig. 2, when a pulse A proportional to a change in a measured quantity, for example, the running speed, is input, when the counter 2 finishes counting,
At t 1 , t 2 , t 3 , and t 4 , the numbers of pulses P 1 , P 2 , P 3 , and P 4 counted in each display switching time, for example, 1 second, are stored in registers 3d, 3c, 3b, and 3a, The stored pulse numbers P 1 , P 2 , P 3 , and P 4 are added by the adder 4, and the display 5 shows (P 1 +P 2 +P 3 +P 4 ).
The traveling speed corresponding to the value of is displayed.

ここで、急激に走行速度が減少し、t4において
0Km/hとなつたりすると、カウンタ2の計数終
了時t5では、新しい表示切換時間t4〜t5で計数さ
れたパルス数P5=0が新しくレジスタ3aに入
り、それまでレジスタ3a,3b,3cで記憶さ
れていたパルス数P4,P3,P2は順次シフトされ
てレジスタ3b,3c,3dへ移り、一番古い表
示切換時間t0〜t1で計数されたパルス数P1はシフ
トされてレジスタ外へ出され、加算器4で加算さ
れた(P2+P3+P4+0)の値に応じた走行速度
が表示器5で示され、走行速度が0Km/hになつ
たにもかかわらず表示はある速度値を示すことに
なる。
Here, if the traveling speed suddenly decreases and reaches 0 km/h at t4 , at the end of counting by the counter 2 at t5 , the number of pulses counted during the new display switching time t4 to t5 P5 = 0 newly enters the register 3a, and the pulse numbers P 4 , P 3 , P 2 previously stored in the registers 3a, 3b, 3c are sequentially shifted to the registers 3b, 3c, 3d, and the oldest display switching is performed. The number of pulses P 1 counted from time t 0 to t 1 is shifted out of the register, and the running speed corresponding to the value (P 2 +P 3 +P 4 +0) added by the adder 4 is displayed on the display. 5, and the display will show a certain speed value even though the traveling speed has reached 0 km/h.

また次の計数終了時t6では、新しい表示切換時
間t5〜t6で計数されたパルス数P6=0が新しくレ
ジスタ3aに入り、それまでレジスタ3a,3
b,3cで記憶されていたパルス数P5,P4,P3
は順次シフトされてレジスタ3b,3c,3dへ
移り、最も古い表示切換時間t1〜t2で計数された
パルス数P2はシフトされてレジスタ外へ出され、
加算器4で加算された(P3+P4+0+0)の値
に応じた走行速度が表示器5で示され、走行速度
が0Km/hであるにもかかわらず表示はまだある
速度値を示し続ける。
Furthermore, at the end of the next counting, t6 , the number of pulses P6 = 0 counted during the new display switching time t5 to t6 is newly entered into the register 3a, and until then the number of pulses P6 = 0 is entered into the register 3a.
Number of pulses P 5 , P 4 , P 3 stored in b and 3c
are sequentially shifted to registers 3b, 3c, and 3d, and the number of pulses P2 counted during the oldest display switching time t1 to t2 is shifted out of the register.
The display 5 shows the traveling speed according to the value of (P 3 +P 4 +0+0) added by the adder 4, and the display continues to show a certain speed value even though the traveling speed is 0 km/h. .

以下、計数終了時t7でも前述と同様にレジスタ
3a〜3dで記憶されているパルス数P3〜P6
シフトが行われ、最も古い表示切換時間t2〜t3
計数されたパルス数P3がレジスタ外へシフトさ
れる代わりに新しい表示切換時間t6〜t7で計数さ
れたパルス数P7=0がレジスタ3aに入り、加
算器4で加算された(P4+0+0+0)の直に
応じた走行速度が表示器5で示され、末だ表示値
が0Km/hにならない。
Thereafter, at the end of counting t7 , the pulse numbers P3 to P6 stored in the registers 3a to 3d are shifted in the same manner as described above, and the pulse numbers counted at the oldest display switching time t2 to t3 are shifted. Instead of P 3 being shifted out of the register, the number of pulses P 7 =0 counted during the new display switching time t 6 to t 7 enters the register 3a, and is added directly to (P 4 +0+0+0) added by the adder 4. The display 5 shows the traveling speed according to the speed, and the displayed value never reaches 0 km/h.

そして、計数終了時t8でレジスタ3a〜3dに
記憶されているパルス数P4〜P7のシフトが行わ
れ、最も古い表示切換時間t3〜t4で計数されたパ
ルス数P4がレジスタ外へシフトされる代わりに
新しい表示切換時間t7〜t8で計数されたパルス数
P8=0がレジスタ3aに入ると、レジスタ3a
〜3dの総和は(0+0+0+0)となり、ここ
で始めて表示器5で表示される走行速度は0Km/
hとなる。
Then, at the end of counting t8 , the number of pulses P4 to P7 stored in the registers 3a to 3d is shifted, and the number of pulses P4 counted at the oldest display switching time t3 to t4 is stored in the register. The number of pulses counted in the new display switching time t 7 to t 8 instead of being shifted out
When P 8 =0 enters register 3a, register 3a
The sum of ~3d is (0+0+0+0), and the traveling speed displayed on the display 5 for the first time is 0km/
h.

このように、従来のパルス計数装置を用いた走
行速度計では、実際に車が停車してから表示が0
Km/hを示すまで4秒も必要となり、応答性が遅
く実際の速度感覚値と表示値に違いがあるという
欠点があつた。
In this way, with a travel speedometer that uses a conventional pulse counting device, the display does not change to 0 after the car actually stops.
It took 4 seconds to display Km/h, and there was a drawback that the response was slow and there was a difference between the actual perceived speed value and the displayed value.

本発明は、前記従来装置の欠点を解消するた
め、ゲートタイムを複数に分割して測定量に応じ
て発生するパルスをカウントし、ゲートタイム内
のパルス数の変化を知り、この変化によりゲート
タイム内に計数したパルス数を補正し、補正した
結果に応じた数値を表示することを特徴とし、そ
の目的は急激なパルス数の変化に対する応答性を
速くするパルス計数装置を提供するものである。
In order to eliminate the drawbacks of the conventional device, the present invention divides the gate time into multiple parts, counts the pulses generated according to the measured amount, detects the change in the number of pulses within the gate time, and uses this change to determine the gate time. The present invention is characterized by correcting the number of pulses counted within a period of time and displaying a numerical value according to the corrected result, and its purpose is to provide a pulse counting device that has quick response to sudden changes in the number of pulses.

前記目的を達成するための本発明は測定量の変
化に応じて発生するパルスを計数するゲートタイ
ムを多分割し、この多分割したゲートタイムの時
間経過時毎に計数したパルス数を複数個のレジス
タの内、第1のレジスタに記憶させ、以後時間経
過時毎に計数した新しいパルス数を前記第1のレ
ジスタに記憶させるとともにそれまで各レジスタ
に記憶していたパルス数を順次後段のレジスタに
シフトして最終段のレジスタに入つていたパルス
数を消し、前記第1のレジスタに記憶された最新
パルス数に応じて各レジスタのパルス数を補正
し、補正後の全レジスタの記憶値に応じた値を表
示するようにしたパルス計数装置において、前記
最新のパルス数と1回前の最新パルス数を記憶し
ている第2のレジスタのパルス数が一致している
か否かを判定する第1の判定手段と、前記第2の
レジスタのパルス数が第2のレジスタを含んで何
回連続しているかを判定しその第1の連続数を求
める第2の判定手段と、前記第2のレジスタのパ
ルス数が第1及び第2のレジスタを含まない他の
レジスタで連続しているかを判定し、その第2の
連続数を求める第3の判定手段と、前記第1及び
第2の連続数の差を求める比較手段と、この比較
結果に基づいて前記第1及び第2のレジスタ以外
のレジスタの値を補正する手段とを備え、最新パ
ルス数、1回前の最新パルス数及びそれらの連続
数に応じた補正を行なうように構成されるもので
ある。
To achieve the above object, the present invention divides a gate time for counting pulses generated in response to changes in a measured quantity into multiple parts, and calculates the number of pulses counted each time the divided gate time passes. A new number of pulses counted each time is stored in the first register among the registers, and a new number of pulses counted each time thereafter is stored in the first register, and the number of pulses stored in each register up to that point is sequentially stored in the subsequent register. Shift and erase the number of pulses stored in the last register, correct the number of pulses in each register according to the latest number of pulses stored in the first register, and use the corrected values stored in all registers. In the pulse counting device, the pulse counting device is configured to display a value according to the pulse count, and the pulse counting device is configured to determine whether or not the latest pulse number matches the pulse number in the second register that stores the previous latest pulse number. a second determining means for determining the number of consecutive pulses in the second register, including the second register, and obtaining the first consecutive number; a third determining means for determining whether the number of pulses in the register is continuous in other registers not including the first and second registers, and obtaining a second number of consecutive pulses; Comparison means for determining the difference in numbers, and means for correcting the values of registers other than the first and second registers based on the comparison result, the latest pulse number, the latest previous pulse number, and their It is configured to perform correction according to the number of consecutive sequences.

以下添付図面に基づいて本発明の一実施例を詳
述する。
An embodiment of the present invention will be described in detail below based on the accompanying drawings.

第3図は本発明の一実施例のパルス計数装置の
ブロツク図であり、同図において、6は図示しな
い速度検出部の測定量に応じて発生されるパルス
を入力する入力端子、7は入力端子6で入力した
パルスの計数時間を設定するタイマで、計数時間
はゲートタイムを任意整数で除算した値になつて
おり、本実施例ではゲートタイムの1N時間に設 定してある。8は設定された計数時間の間に入力
端子6で入力されたパルスをカウントするカウン
タ、9はカウンタ8でカウントしたパルス数を記
憶する複数個のレジスタからなる記憶部で、記憶
部9のレジスタ数は前記ゲートタイムを計数時間
で除算した時の商の値になつており、本実施例で
はN個を用い、カウンタ8でカウントしたパルス
数を計数時間経過時毎に記憶部9の最新パルス数
として記憶する第1のレジスタ91に入力すると
共にそれまでレジスタ91,92…9N-1に記載し
ていたパルス数を順次レジスタ92,93…9N
シフトし、レジスタ9Nで記憶していたパルス数
は記憶部9から消されるようになつている。各レ
ジスタの値はパルス数が入力される毎に後述する
演算回路10へ全て入力される。演算回路10は
レジスタ91に入力されたゲートタイム内の最新
パルス数と他のレジスタ92〜9Nに記憶されてい
るそれまでのパルス数とをそれぞれ比較して急激
なパルス数の変化すなわち増減状態を比較判定
し、その判定結果に基づいてレジスタ92〜9N
記憶されているパルス数の内容を補正する指令を
出すものである。この補正指令に基づいて分配器
11は各レジスタ92〜9Nのパルス数を書き換え
て各レジスタ92〜9Nに記憶させ、その後レジス
タ91〜9Nに記憶されているパルス数は加算器1
2で加算され、ラツチ回路13で表示に必要な駆
動がなされ、表示部14で加算器12の値に応じ
た数値が表示される。
FIG. 3 is a block diagram of a pulse counting device according to an embodiment of the present invention. In the same figure, 6 is an input terminal for inputting pulses generated in accordance with the measured amount of a speed detecting section (not shown), and 7 is an input terminal. This is a timer that sets the counting time of the pulses inputted at the terminal 6. The counting time is a value obtained by dividing the gate time by an arbitrary integer, and in this embodiment, it is set to 1N time of the gate time. 8 is a counter that counts the pulses inputted at the input terminal 6 during a set counting time; 9 is a storage unit consisting of a plurality of registers that stores the number of pulses counted by the counter 8; The number is the quotient value when the gate time is divided by the counting time, and in this embodiment, N pieces are used, and the number of pulses counted by the counter 8 is stored as the latest pulse in the storage unit 9 every time the counting time elapses. The number of pulses stored as a number is input to the first register 91 , and the number of pulses previously recorded in the registers 91 , 92 ...9N -1 is sequentially shifted to the registers 92 , 93 ... 9N , and The number of pulses stored at 9N is erased from the storage section 9. The values of each register are all input to an arithmetic circuit 10, which will be described later, every time the number of pulses is input. The arithmetic circuit 10 compares the latest pulse number within the gate time input to the register 91 with the previous pulse numbers stored in the other registers 92 to 9N , and detects a sudden change in the number of pulses, i.e. The increase/decrease state is compared and determined, and based on the determination result, a command is issued to correct the contents of the pulse numbers stored in the registers 9 2 to 9 N. Based on this correction command, the distributor 11 rewrites the number of pulses in each register 9 2 to 9 N and stores it in each register 9 2 to 9 N , and then adds the number of pulses stored in registers 9 1 to 9 N. Vessel 1
2, the latch circuit 13 performs the necessary driving for display, and the display section 14 displays a numerical value corresponding to the value of the adder 12.

次に前記演算回路10の構成を第4図に基づい
てより詳細に説明する。
Next, the configuration of the arithmetic circuit 10 will be explained in more detail based on FIG. 4.

各レジスタ91〜9Nに記憶されたパルス数は比
較判定回路15においてレジスタ91のパルス数
P1とレジスタ92〜9Nのパルス数Pi(i=2〜N)
がそれぞれ比較され、|(P1−Pi)|≧X(Xはある
設定値)であると判定されると、正負判定回路1
6において(P1−Pi)の正負が判定され、その結
果に基づいて第1又は第2の補正指令回路17,
18においてレジスタ92〜9Nのパルス数をある
所定値で書き換えて補正する指令が出される。こ
のレジスタ92〜9Nの書き換え補正指令は分配器
11へ転送され、分配器11は補正指令に基づい
て、レジスタ92〜9Nの値を書き換える。一方、
前記比較判定回路15で|(P1−Pi)|<Xと判定
されると前記第1の判定手段である第1の連続数
判定回路19でパルス数P1がレジスタ91〜9N
でレジスタ91を含んで2回以上連続しているか
否かを判定し、その連続数K1をカウントする。
第2の連続数判定回路20はレジスタ92〜9N
パルス数の内パルス数P1以外の値で連続してい
る値があるか否かを判定する。
The number of pulses stored in each register 91 to 9N is determined by the comparison and judgment circuit 15 as the number of pulses in register 91 .
P 1 and the number of pulses P i of registers 9 2 to 9 N (i=2 to N)
are compared, and if it is determined that |(P 1 −P i )|≧X (X is a certain set value), the positive/negative determination circuit 1
6, the positive or negative of (P 1 −P i ) is determined, and based on the result, the first or second correction command circuit 17,
At step 18, a command is issued to rewrite and correct the number of pulses in the registers 9 2 to 9 N with a certain predetermined value. The rewriting correction command for the registers 9 2 - 9 N is transferred to the distributor 11, and the distributor 11 rewrites the values of the registers 9 2 - 9 N based on the correction command. on the other hand,
When the comparison / determination circuit 15 determines that |( P 1 −P i )| < It is determined whether or not there are two or more consecutive times including the register 91 within, and the number of consecutive times K1 is counted.
The second consecutive number determining circuit 20 determines whether or not there is a consecutive value other than the pulse number P 1 among the pulse numbers in the registers 9 2 to 9 N.

前記第1、第2の連続数判定回路19,20の
結果に基づいて、第3の補正指令回路21はレジ
スタ92〜9Nのパルス数の内少なくとも1つをレ
ジスタ91のパルス数P1に書換えて補正する指令
を出し、第4の補正指令回路22はレジスタ92
〜9Nの内所定のパルス数を前記連続しているパ
ルス数P1以外の値に書き換えて補正する指令を
出して、その結果を分配器11へ転送する。
Based on the results of the first and second consecutive number determination circuits 19 and 20, the third correction command circuit 21 converts at least one of the pulse numbers in the registers 92 to 9N to the pulse number P in the register 91. The fourth correction command circuit 22 issues a command to rewrite to 1 and correct it, and the fourth correction command circuit 22
A command is issued to rewrite and correct a predetermined number of pulses out of ~ 9N to a value other than the number of consecutive pulses P1 , and the result is transferred to the distributor 11.

前記第1の判定手段である第1の連続数判定回
路19で最新パルス数P1が2回以上連続してい
ないすなわちパルス数P1と1回前の最新パルス
数が記憶されているレジスタ92のパルス数P2
一致していないと判定した場合に、前記第2の判
定手段である第3の連続数判定回路23はパルス
数P2がレジスタ92を含んで連続しているか否か
を判定し、その連続回数K2(前記第1の連続数)
をカウントして求める。前記第3の判定手段であ
る第4の連続数判定回路24はパルス数P2がレ
ジスタ94〜9N内かつレジスタ92と連続してい
ないレジスタで2回以上連続しているか否かを判
定しその連続回数K3(前記第2の連続数)をカウ
ントして求める。前記比較手段である連続数比較
回路25は前記連続回数K2及びK3において(K3
−K2)≧2であるか否かを比較する。(K3−K2
≧2であれば、第5の補正指令回路26はレジス
タ93〜9Nの内所定のパルス数をパルス数P2の値
に書換えて補正する指令を出し、又第6の補正指
令回路27はレジスタ93〜9Nの内所定のパルス
数をパルス数P1の値に書換えて補正する指令を
出し、その結果を分配器11へ転送する。前記第
1及び第2のレジスタ以外のレジスタの値を補正
する手段は上記第5及び第6の補正指令回路2
6,27によつて構成される。
The first consecutive number determining circuit 19, which is the first determining means, determines that the latest pulse number P 1 is not consecutive two or more times, that is, the register 9 stores the pulse number P 1 and the previous latest pulse number. When it is determined that the number of pulses P 2 of 2 do not match, the third consecutive number determination circuit 23 which is the second determination means determines whether the number of pulses P 2 including the register 9 2 is continuous or not. and determine the consecutive number K 2 (the first consecutive number)
Find it by counting. The fourth consecutive number determining circuit 24, which is the third determining means, determines whether the pulse number P2 is consecutive two or more times in registers 94 to 9N and not consecutive to register 92 . The determination is made by counting the number of consecutive times K 3 (the second consecutive number). The consecutive number comparing circuit 25, which is the comparing means , calculates (K 3
−K 2 )≧2. ( K3K2 )
If ≧2, the fifth correction command circuit 26 issues a command to rewrite and correct the predetermined number of pulses in the registers 9 3 to 9 N to the value of the number of pulses P 2 , and the sixth correction command circuit 27 issues a command to rewrite and correct a predetermined number of pulses in registers 9 3 to 9 N to the value of pulse number P 1 , and transfers the result to distributor 11 . The means for correcting the values of registers other than the first and second registers are the fifth and sixth correction command circuits 2.
6, 27.

以上によつて構成される本発明の動作を第5図
演算回路のフロチヤートをも参照して詳述する。
The operation of the present invention constructed as described above will be explained in detail with reference to the flowchart of the arithmetic circuit shown in FIG.

先ず、入力端子6から入力したパルスをカウン
タ8でカウントし、ゲートタイムの1/N時間経過 毎にレジスタ91へ入力する。このレジスタ91
入力されたパ数は1/N時間経過毎に順次レジスタ 92→9Nへとシフトされる。そしてれらレジスタ
1〜9Nのパルス数は演算回路10を構成する比
較判定回路15へ転送される。比較判定回路15
はレジスタ91のパルス数P1と他のレジスタ92
Nのパルス数Pi(i=2〜N)をそれぞれ比較し
てP1とPiの差が設定値X以上すなわち|(P1−Pi
|≧Xであるかを判定する(STEP1)。尚、本実
施例においては説明上設定値Xを「2」とする。
少なくとも1つのレジスタ92〜9Nにおいて|
(P1−Pi)|≧2であれば正負判定回路16で(P1
−Pi)が正又は負であるかを判定する
(STEP2)。この場合(P1−Pi)が正であればレ
ジスタ91へ入力された最新のパルス数P1が他の
レジスタ92〜9Nのパルス数Piよりも大きいこと
で、つまり最新パルス数が増加傾向にあることを
示す。又、逆に、(P1−Pi)が負であればパルス
数が減少傾向にあることを示す。(P1−Pi)が正
であれば、第1の補正指令回路17において最新
パルス数が入力されているレジスタ91のパルス
数P1に他のレジスタ92〜9Nのパルス数Piの値を
近づけて補正するため、各パルス数P2〜PNを所
定値Y1で書き換える指令を出す(STEP3)。この
所定値Y1は、最新のパルス数P1もしくは「P1
1」の値とするが、本実施例ではY1を「P1−1」
とする。(P1−Pi)が負であれば、第2の補正指
令回路18において、最新パルス数が入力されて
いるレジスタ91のパルス数P1に他のレジスタ92
〜9Nのパルス数Piを近づけて補正するため、各
パルス数P2〜PNを所定値Y2で書き換える指令を
出す(STFP4)。この所定値Y2は、最新のパルス
数P1もしくは「P1+1」の値とするが、本実施
例ではY2を「P1+1」とする。これら第1の補
正指令回路17又は第2の補正指令回路18で補
正指令が出されたレジスタ92〜9Nのパルス数Pi
は分配器11で補正され、各レジスタ92〜9N
転送され、そして各レジスタ91〜9Nのパルス数
は加算器12で加算され、ラツチ回路13で所定
の駆動がなされた後加算された数値に応じた数値
が表示部14が表示される。
First, pulses input from the input terminal 6 are counted by the counter 8 and input to the register 91 every time 1/N of the gate time elapses. The number inputted into register 9 1 is sequentially shifted from register 9 2 to register 9 N every 1/N time. The number of pulses in these registers 9 1 to 9 N is then transferred to a comparison/judgment circuit 15 configuring the arithmetic circuit 10 . Comparison/judgment circuit 15
is the number of pulses P1 in register 91 and other registers 92 ~
9 N pulse numbers P i (i = 2 to N) are compared, and the difference between P 1 and P i is equal to or greater than the set value X, that is, | (P 1P i )
| Determine whether ≧X (STEP 1). In this embodiment, the set value X is assumed to be "2" for explanation purposes.
In at least one register 9 2 to 9 N |
(P 1 −P i )|≧2, the positive/negative determination circuit 16 determines (P 1
−P i ) is positive or negative (STEP 2). In this case, if (P 1P i ) is positive, it means that the latest pulse number P 1 input to register 9 1 is larger than the pulse number P i of other registers 9 2 to 9 N , that is, the latest pulse This indicates that the number is on the rise. Conversely, if (P 1 −P i ) is negative, it indicates that the number of pulses is decreasing. If (P 1 −P i ) is positive, the pulse number P 1 of the register 9 1 to which the latest pulse number is input in the first correction command circuit 17 is set to the pulse number P 1 of the other registers 9 2 to 9 N. In order to correct the value of i by bringing it closer, a command is issued to rewrite each number of pulses P 2 to P N with a predetermined value Y 1 (STEP 3). This predetermined value Y 1 is the latest pulse number P 1 or “P 1
However, in this example, Y 1 is set to "P 1 -1".
shall be. If (P 1 −P i ) is negative, in the second correction command circuit 18, the pulse number P 1 of the register 9 1 to which the latest pulse number is input is set to the pulse number P 1 of the register 9 2
In order to correct the number of pulses P i of ~9 N closer to each other, a command is issued to rewrite each number of pulses P 2 to P N with a predetermined value Y 2 (STFP4). This predetermined value Y 2 is set to the latest pulse number P 1 or "P 1 +1", but in this embodiment, Y 2 is set to "P 1 +1". The number of pulses P i of the registers 9 2 to 9 N to which the correction command was issued by the first correction command circuit 17 or the second correction command circuit 18
is corrected by a distributor 11 and transferred to each register 9 2 to 9 N , and the number of pulses in each register 9 1 to 9 N is added by an adder 12, and after a predetermined drive is performed by a latch circuit 13, the pulse numbers are added. The display unit 14 displays a numerical value corresponding to the determined numerical value.

以上STEP1〜STEP4の動作はパルス数が特に
急激に変化した場合、最新のパルス数に近い値に
応じた値を表示部14に表示させるためのもので
あり、又、所定値Y1,Y2を最新のパルス数P1±
1にしたのは、最新パルス数がレジスタ91に入
力されるが、次に入力される最新パルス数を予想
できないため、少しでも現在レジスタ91に入力
されている最新パルス数P1に対する表示部14
の応答性を速めつつアンダーシユート(表示部1
4の表示値が実際の値よりも小さく表示するこ
と)やオーバーシユート(表示部14の表示値が
実際の値よりも大きく表示すること)を防ぐため
である。
The operations in STEP 1 to STEP 4 above are for displaying a value close to the latest pulse number on the display unit 14 when the number of pulses changes particularly rapidly . The latest pulse number P 1 ±
The reason for setting it to 1 is that although the latest pulse number is input to register 9 1 , it is not possible to predict the latest pulse number that will be input next. Part 14
Undershoot (display part 1)
This is to prevent the displayed value of 4 from being displayed smaller than the actual value) and overshoot (the displayed value of the display unit 14 being displayed larger than the actual value).

次にSTEP1において|(P1−Pi)|<2になつ
た場合、第1の連続数判定回路19はレジスタ9
のパルス数P1がこのP1を含んで他のレジスタ92
〜9Nのパルス数P2〜PNにおいて2回以上連続し
ているかを判定する(STEP5)。又、この際2回
以上連続していればその連続回数K1をカウント
して求める(STEP6)。次にパルス数P1が2回以
上連続している場合、第2の連続数判定回路20
はレジスタ92〜9Nの内で2回以上連続している
パルス数P1以外の値Pjがあるかを判定する
(STEP7)。パルス数P2〜PN内で2回以上連続し
ている値Pjがあれば、第3の補正指令回路21に
おいてパルス数P1でレジスタ9(K1+2)〜9N内のパ
ルス数P(K1+2)〜PNを書き換える指令を出す
(STEP8)。さらに、第4の補正指令回路22に
おいて、パルス数P1以外の値で2回以上連続し
ている値Pjでレジスタ9(MK1+1)のパルス数P(MK1+1)
を書き換え指令を出す。但しM=2,3,…Nと
する(STEP9)。このようなSTEP5〜STEP9の
動作はそれほど急激な変化がパルス数P2〜PN
比較して最新パルス数P1に起きていないが、入
力パルスの周波数が一定でない(すなわち連続す
る入力パルス数に規則性がない)と判断される場
合で、このような場合、パルス数P1〜PNの値を
最新のパルス数P1を応じて一定の順序ある数列
に書き換えることにより、P1を主要視すると共
にそれ以前の状態を記憶しているパルス数P2
PNをも考慮し、より実際の値に近い値を表示さ
せるものである。このSTEP8及び9によつて書
き換え指令を出されたパルス数P2〜PNは分配器
11で書き換えられ、各レジスタ92〜9Nへ転送
され、その後所定の制御がなされて表示部14で
表示される。
Next, in STEP 1, if |(P 1 − P i )|<2, the first consecutive number determination circuit 19 selects the register 9
1 pulse number P 1 includes this P 1 and other registers 9 2
It is determined whether the number of pulses P 2 to P N of ~9 N continues two or more times (STEP 5). In addition, if this occurs two or more times in a row, the number of consecutive times K1 is counted and determined (STEP 6). Next, if the pulse number P 1 is consecutive two or more times, the second consecutive number determination circuit 20
It is determined whether there is a value P j other than the number of pulses P 1 that is continuous two or more times in the registers 9 2 to 9 N (STEP 7). If there is a value P j that is continuous two or more times within the number of pulses P 2 to P N , the third correction command circuit 21 sets the number of pulses in the register 9 (K1+2) to 9 N at the number of pulses P 1 . Issue a command to rewrite P (K1+2) ~P N (STEP 8). Furthermore, in the fourth correction command circuit 22, the pulse number P (MK1+1) of the register 9 ( MK1 +1) is set at a value P j that is a value other than the pulse number P 1 and is repeated two or more times.
Rewrite the command and issue the command. However, M=2, 3,...N (STEP 9). In the operations of STEP 5 to STEP 9, the latest pulse number P 1 does not change so rapidly as compared to the pulse numbers P 2 to P N , but the frequency of the input pulse is not constant (i.e., the number of consecutive input pulses In such cases, P 1 can be changed by rewriting the values of the number of pulses P 1 to P N into a sequence of numbers in a certain order according to the latest number of pulses P 1 . Number of pulses that are regarded as main and remember the previous state P 2 ~
It also takes P N into account and displays values closer to the actual values. The number of pulses P 2 to P N issued the rewriting command in STEP 8 and 9 is rewritten by the distributor 11 and transferred to each register 9 2 to 9 N , after which a predetermined control is performed and the number is displayed on the display unit 14. Is displayed.

次にSTEP5においてパルス数P1がレジスタ91
を含んで2回以上連続していないすなわちパルス
数P1とP2が一致していない場合、第3の連続数
判定回路23はパルス数P2がレジスタ92を含ん
で連続している連続回数K2を求める(STEP10)、
尚、この連続回数K2は1も含む。次にパルス数
P2がレジスタ91及び92を含まないで2回以上連
続しているかを判定して(STEP11)、この際2
回以上連続していればその連続回数K3をカウン
トして求める(STEP12)。次に連続回数K3が連
続回数K2より2以上大きいか否かを連続数比較
回路25で比較する(STEP13)。(K3−K2)≧2
であれば、第5の補正指令回路26はパルス数
P2でレジスタ9(K2+2)〜9Nのパルス数を書き換え
る指令を出す(STEP14)。さらに、第6の補正
指令回路27はパルス数P1でレジスタ9A(K2+1)
のパルス数を書き換える指令を出す(STEP15)。
但しA=1,2,…Nとする。尚、STEP1にお
いて|(P1−Pi)|≧2の判定がなされているた
め、このSTEP10〜15へ至る動作がなされるパル
ス数の値は最新のパルス数P1と他の1つのパル
スP2しかない。このようなSTEP10〜15動作はそ
れほど急激な変化がパルス数P2〜PNと比較して
最新パルス数P1に起きていないが、入力パルス
の周波数が一定でない(すなわち連続する入力パ
ルス数に規則性がない)と判断され、かつ最新入
力パルスP1が連続して記憶されていないが、あ
る程度定常状態にあると判断された場合で、この
ような場合、パルス数P3〜PNの値を最新のパル
ス数P1、1回前の最新パルス数P2及びそれらの
連続回数に応じて一定の順序ある数列に書き換え
ることにより、複数のレジスタの内、より新しい
パルス数の数列を主要視し、より速く実際の値に
近い値を表示させるものである。このSTEP14及
び15によつて書き換え指令を出されたパルス数
P2〜PNは分配器11で書き換えられ、各レジス
タ92〜9Nへ転送され、その後所定の制御がなさ
れて表示部14で表示される。
Next, in STEP 5, the number of pulses P 1 is set in register 9 1
If the number of pulses P 1 and P 2 do not match two or more consecutive times including Find the number of times K 2 (STEP 10),
Note that this consecutive number K 2 also includes 1. Then the number of pulses
Determine whether P 2 is consecutive two or more times without including registers 9 1 and 9 2 (STEP 11), and in this case 2
If the sequence continues more than once, count and find the number of consecutive times K3 (STEP 12). Next, the consecutive number comparator circuit 25 compares whether the consecutive number K 3 is greater than the consecutive number K 2 by two or more (STEP 13). ( K3K2 )≧2
If so, the fifth correction command circuit 26 changes the number of pulses.
Issue a command to rewrite the number of pulses in registers 9 (K2+2) to 9 N using P 2 (STEP 14). Furthermore, the sixth correction command circuit 27 inputs the register 9A (K2+1) with the number of pulses P 1 .
Issue a command to rewrite the number of pulses (STEP 15).
However, A=1, 2,...N. In addition, since |(P 1P i )|≧2 is determined in STEP 1, the value of the number of pulses for which the operations leading to STEP 10 to 15 are performed is the latest pulse number P 1 and one other pulse. There is only P2 . In such STEP 10 to 15 operations, there is no such sudden change in the latest pulse number P 1 compared to the pulse numbers P 2 to P N , but the frequency of the input pulse is not constant (i.e., the number of consecutive input pulses is In this case, the latest input pulse P1 is not stored continuously, but it is determined that it is in a steady state to some extent.In such a case, the number of pulses P3 to PN is By rewriting the value into a sequence of numbers in a certain order according to the latest pulse number P 1 , the previous latest pulse number P 2 , and the number of consecutive pulses, the sequence with the newer pulse number among the multiple registers can be set as the main sequence. This allows the display to display values closer to the actual values more quickly. Number of pulses issued by rewriting command in STEP14 and 15
P 2 to P N are rewritten by the distributor 11 and transferred to the respective registers 9 2 to 9 N , after which predetermined control is performed and displayed on the display unit 14.

尚、STEP7,11,13において“NO”となつた
場合、最新のパルス数P1が他のパルス数と比較
してそれ程急激な変化もなくかつ入力パルスの周
波数が一定でないと判定されないためそのまま書
き換えることなくレジスタ92〜9Nへ転送され、
所定の制御がなされた後表示部14で表示され
る。
If "NO" is obtained in STEP 7, 11, or 13, the latest pulse number P 1 does not change so rapidly compared to other pulse numbers and the input pulse frequency is not determined to be constant, so it is left as is. Transferred to registers 9 2 to 9 N without being rewritten,
After predetermined control is performed, the information is displayed on the display section 14.

次に、この具体的動作を表を参照して説明す
る。
Next, this specific operation will be explained with reference to a table.

先ずSTEP1〜9の動作を表1に基づいて説明
する。
First, the operations of STEP 1 to STEP 9 will be explained based on Table 1.

表1には、ゲートタイムの例えば1/8経過毎に
計数された入力パルス数を8レジスタ91〜98
順次シフトしながら記憶させた各レジスタの内
容、演算回路10及び分配器11によつて書き換
えられた後の各レジスタの内容、書き換えが行な
われた後のレジスタの記憶内容に応じた表示値
B、及びこのような書き換えを行なわない従来の
表示値Cが示されている。
Table 1 shows the contents of each register, in which the number of input pulses counted every 1/8 of the gate time is sequentially shifted and stored in eight registers 9 1 to 9 8 , and the contents of the arithmetic circuit 10 and distributor 11. Thus, the contents of each register after being rewritten, a display value B corresponding to the stored contents of the register after being rewritten, and a conventional display value C without such rewriting are shown.

初期状態t0では、各レジスタ91〜98には
「0」が記憶され、表示値も「0」である。
In the initial state t0 , "0" is stored in each register 91 to 98 , and the display value is also "0".

計数時間t1で、入力パレスとしてレジスタ91
に「2」が入力される。実際は最新パルス数が入
力されているレジスタ91の値「2」を8倍した
値「16」もしくはそれに近い値が表示されること
が望ましいが、従来例では「2」が表示される。
そこで本実施例では、先ず比較判定回路15で最
新パルス数P1と他の記憶されているパルス数Pi
(i=2〜8)とのそれぞれの差を求め、その内
の少なくとも1つの差が前記設定値X(本実施例
ではX=2)を超えると判定した場合さらに正負
判定回路16で最新パルス数が他のパルス数より
も大きいことから入力パルス数が増加傾向にある
と判定し、第1の補正指令回路17でパルス数
P2〜P8を所定値Y1(本実施例ではY1=P1−1)=
1で書き換える指令を出す。従つて書き換えが行
なわれた後の表示部Bは「9」となるので、これ
を表示することにより、現在の望ましい表示値
「16」に近い値を表示することになる。
At counting time t 1 , register 9 1 is input as input pulse.
"2" is input in the field. In reality, it is desirable to display a value "16" which is 8 times the value "2" of the register 91 into which the latest pulse number is input, or a value close to it, but in the conventional example, "2" is displayed.
Therefore, in this embodiment, first, the comparison/judgment circuit 15 compares the latest pulse number P 1 and other stored pulse numbers P i
(i=2 to 8), and if it is determined that at least one of the differences exceeds the set value Since the number of input pulses is larger than other pulse numbers, it is determined that the number of input pulses is increasing, and the first correction command circuit 17 adjusts the number of pulses.
P 2 to P 8 are set to a predetermined value Y 1 (in this example, Y 1 = P 1 −1) =
Issue a command to rewrite with 1. Therefore, display section B after rewriting becomes "9", and by displaying this, a value close to the current desired display value "16" will be displayed.

計数時間t2で、レジスタ91に最新パルス数P1
として「4」が入力されると、前記t1と同様の動
作によりパルス数P2〜P8はY1=P1−1=4−1
=3で書き換えられ、表示値Bは「25」となる。
この時望ましい表示値は「4」の8倍の「32」で
あるが従来の表示値Cはt1での書き換えが行なわ
れていなかつたりすると「6」となるため、本実
施例によつて望ましい値に近い値が表示できるこ
とになる。
At counting time t 2 , the latest pulse number P 1 is stored in register 9 1 .
When "4" is input as , the number of pulses P 2 to P 8 becomes Y 1 = P 1 -1 = 4-1 by the same operation as t 1 above.
=3, and the displayed value B becomes "25".
At this time, the desired display value is "32", which is eight times "4", but the conventional display value C would be "6" if it was not rewritten at t1 , so in this embodiment, This means that a value close to the desired value can be displayed.

次に計数時間t11で、レジスタ91に最新パルス
数P1として「0」が入力される。この時最新パ
ルス数P1と他のパルス数P2〜P8の差の内少なく
とも1つが設定値Xすなわち「2」を越えると比
較判定回路15で判定され、さらにその差が負で
あると正負判定回路16で判定されるため、第2
の補正指令回路18はパルス数P2〜P8を所定値
Y2(本実施例ではY2=P1+1)=1で書き換える
指令を出す。その結果書き換えられた表示値Bは
「7」となる。望ましい表示値は「0」であり又
従来の表示値Cは「11」であるため、本実施例に
よつて望ましい値に近い値が表示できる。この動
作は最新パルス数P1が設定値Xを越え、又、他
のパルス数P2〜P8の内少なくとも1つより小さ
いことから以後の入力パルス数が減少傾向である
と判定している。
Next, at counting time t11 , "0" is input to the register 91 as the latest pulse number P1 . At this time, if at least one of the differences between the latest pulse number P 1 and the other pulse numbers P 2 to P 8 exceeds the set value Since the determination is made by the positive/negative determination circuit 16, the second
The correction command circuit 18 sets the number of pulses P 2 to P 8 to a predetermined value.
A command is issued to rewrite Y 2 (in this embodiment, Y 2 =P 1 +1)=1. As a result, the rewritten display value B becomes "7". Since the desired display value is "0" and the conventional display value C is "11", this embodiment allows a value close to the desired value to be displayed. This operation determines that the number of input pulses thereafter is on a decreasing trend because the latest pulse number P 1 exceeds the set value X and is smaller than at least one of the other pulse numbers P 2 to P 8 . .

次に計数時間t21でレジスタ91に最新パルス数
P1として「1」が入力され、比較判定回路15
でパルス数P1と他のパルス数P2〜P8との差がす
べて設定値X以内であると判定される。これは最
新パルス数P1が以前に記憶されているパルス数
P2〜P8と比較して大差ないため、以後入力され
るパルス数は増加・減少傾向ではなく、すなわち
大略定常傾向にあることを示している。しかし、
この場合、第1の連続数判定回路19によつて、
最新パルス数P1「1」が2回連続していて連続回
数K1は2と判定され、さらに第2の連続数判定
回路20によつてパルス数P1以外の値「0」が
2回連続していると判定されることから入力パル
スの周波数は一定でないと判定され、このような
場合でもやはりレジスタ92〜9Nのパルス数P2
PNをP1に応じたある数列に書き換えることが望
ましい。したがつて、第3の補正指令回路21は
レジスタ9(2+2)〜98を「1」で書き換える指令
を出す。さらに、第4の補正指令回路22はパル
ス数P1以外の連続している値「0」でレジスタ
(2M+1)(但しM=2,3,4…N)すなわちレ
ジスタ95及び97を書き換える指令を出す。この
場合レジスタ92〜98のパルス数は〔1・0〕の
ある順序を持つた数列で繰り返えされる。すなわ
ち入力パルス数が大略定常傾向にある際は、記憶
されている前に入力されたパルス数を考慮して入
力された最新パルス数に多少の変化があつても、
その傾向に合う表示がなされることにある。この
場合表示値Bは「5」と表示され、望ましい表示
値はパルス数P1だけ判断すると「1」の8倍の
「8」であるが、大略定常傾向にありかつ、それ
以前に記憶されているパルス数には「0」も多く
あるため、それから判断すると、望ましい表示値
は「8」よりも小さいことになる。すなわち、本
実施例の表示値Bの「5」がそれに近い値とな
る。
Next, at counting time t 21 , the latest pulse number is stored in register 9 1 .
“1” is input as P 1 , and the comparison judgment circuit 15
It is determined that all the differences between the pulse number P 1 and the other pulse numbers P 2 to P 8 are within the set value X. This means that the latest pulse number P 1 is the previously stored pulse number.
Since there is not much difference compared to P 2 to P 8 , this indicates that the number of pulses inputted thereafter does not tend to increase or decrease, but is generally in a steady state. but,
In this case, the first consecutive number determination circuit 19
The latest pulse number P 1 is "1" twice in a row, the consecutive number K 1 is determined to be 2, and the second consecutive number determination circuit 20 determines that the pulse number P 1 is "0" twice. Since it is determined that the input pulses are continuous, it is determined that the frequency of the input pulses is not constant, and even in such a case, the number of pulses P 2 ~ in registers 9 2 ~ 9 N
It is desirable to rewrite P N to a certain number sequence according to P 1 . Therefore, the third correction command circuit 21 issues a command to rewrite registers 9 (2+2) to 9 8 with "1". Further, the fourth correction command circuit 22 inputs consecutive values "0" other than the pulse number P 1 to registers 9 (2M+1) (however, M=2, 3, 4...N), that is, registers 9 5 and 9. Issue a command to rewrite 7 . In this case, the pulse numbers in the registers 9 2 to 9 8 are repeated in a sequence of numbers having a certain order [1.0]. In other words, when the number of input pulses tends to be approximately steady, even if there is a slight change in the latest number of input pulses, taking into account the number of previously input pulses that are stored,
The goal is to display information that matches that trend. In this case, the display value B is displayed as "5", and the desirable display value is "8", which is 8 times "1" if only the pulse number P 1 is judged. Since there are many "0" pulses in the number of pulses, judging from this, the desirable display value is smaller than "8". That is, the display value B of this embodiment, which is "5", is a value close to that value.

次に計数時間t31でレジスタ91に最新パルス数
P1として「1」が入力される。この場合比較判
定回路15でパルス数P1と他のパルス数P2〜P8
との差がすべて設定値X以内と判定され、さらに
第1の連続数判定回路19でパルス数P1がこの
P1を含んで2回以上連続していないと判定され
る。この場合、入力された最新パルス数に急激な
変化がなくかつ入力パルスの周波数が一定でない
とは認められず、このような場合には書き換えを
行なう必要がないため、そのままの値で表示する
ことにした。
Next, at counting time t 31 , the latest pulse number is stored in register 9 1 .
"1" is input as P1 . In this case, the comparison/judgment circuit 15 compares the number of pulses P 1 and other numbers of pulses P 2 to P 8
It is determined that all the differences between the two pulses are within the set value
It is determined that there are no consecutive occurrences including P1 . In this case, it is not recognized that there is no sudden change in the latest input pulse number and the frequency of the input pulse is not constant, and in such a case there is no need to rewrite, so the value should be displayed as is. I made it.

■■■ 亀の甲 [0006] ■■■ 次にSTEP10〜15の動作を表2に基づいて説明
する。
■■■ Turtle Shell [0006] ■■■ Next, the operations in STEP 10 to 15 will be explained based on Table 2.

通常、自動車の走行速度等の測定量の変化に応
じたパルスを計数し、それを記憶するレジスタの
数は10個〜20個である。このようにレジスタの数
が多い理由は、多分割されたゲートタイムの1回
当りの切換時間が短かくなり、表示部14での1
回当りの表示切換えが早くなるため精度の向上が
図れるためである。このSTEP10〜15の動作はこ
のようにレジスタの数が多くなつた時に有効にな
るものであり、表2には、ゲートタイムの例えば
1/12経過毎に計数された入力パルス数を12のレジ
スタ91〜912に順次シフトしながら記憶させた
各レジスタの内容及び演算回路10と分配器11
によつて書き換えられた後の各レジスタの内容が
表されている。
Usually, the number of registers for counting and storing pulses corresponding to changes in a measured quantity such as the running speed of a car is 10 to 20. The reason for the large number of registers is that the switching time per multi-divided gate time is shortened, and
This is because the accuracy can be improved because the display can be changed more quickly each time. The operations in STEP 10 to 15 become effective when the number of registers increases in this way, and Table 2 shows the number of input pulses counted every 1/12 of the gate time, for example, in 12 registers. The contents of each register stored while being shifted sequentially from 9 1 to 9 12 , the arithmetic circuit 10 and the distributor 11
The contents of each register after being rewritten by are shown.

計数時間t41でレジスタ91に最新パルス数P1
して「1」が入力され、比較判定回路15でパル
ス数P1と他のパルス数P2〜P12との差がすべて設
定値X(X=2)以内であると判定される。そし
て、第1の連続数判定回路19によつて、パルス
数P1「1」がレジスタ91を含んで2回以上連続し
ていないすなわちパルス数P1とP2が異なると判
定される。そして、第3の連続数判定回路23は
レジスタ92のパルス数P2「2」の連続回数K2
1と判定する。さらに、第4の連続数判定回路2
4はパルス数P2の値がレジスタ94〜912で連続
しているかどうかを判定する。この場合レジスタ
4〜912で「2」が2回以上連続していないた
め、一定の順序ある数列に書き換える必要がない
として分配器11へは補正指令を転送しない。
At counting time t41 , "1" is input to the register 91 as the latest pulse number P1 , and the comparison/judgment circuit 15 calculates all the differences between the pulse number P1 and the other pulse numbers P2 to P12 as the set value X( X=2) or less. Then, the first consecutive number determining circuit 19 determines that the pulse number P 1 "1" is not consecutive two or more times including the register 9 1 , that is, the pulse numbers P 1 and P 2 are different. Then, the third consecutive number determining circuit 23 determines that the consecutive number K 2 of the pulse number P 2 "2" in the register 9 2 is 1. Furthermore, a fourth consecutive number determination circuit 2
4, it is determined whether the values of the number of pulses P2 are continuous in the registers 94 to 912 . In this case, since "2" does not occur two or more times in a row in the registers 9 4 to 9 12 , the correction command is not transferred to the distributor 11 because there is no need to rewrite it into a certain sequence of numbers.

計数時間t42であらたにレジスタ91に最新パル
ス数P1として「2」が入力される。以下前記t41
と同じ動作の説明は省略する。第1の連続数判定
回路19によつて、パルス数P1「2」がレジスタ
1を含んで2回以上連続していないすなわちパ
ルス数P1とP2が異なると判定される。そして、
第3の連続数判定回路23はレジスタ92のパル
ス数P2「1」の連続回数K2を1と判定する。さら
に、第4の連続数判定回路24はパルス数P2
値がレジスタ94〜912で2回以上連続している
かどうかを判定し、連続回数K3を3と判定する。
連続数比較回路25は連続回数K2とK3を比較し
て(K3−K2)≧2と判定する。そのため第5の補
正指令回路26はパルス数P2「2」でレジスタ9
(1+2)〜912を書き換える指令を出す。さらに第6
の補正指令回路27はパルス数P1「1」でレジス
タ9A(1+2)(但しA=1,2…N)すなわち
レジスタ93,96,99,912を書き換える指令を
出す。この書き換え後のパルス数P2〜P12
〔1・2・1〕の連続であり、レジスタ91〜912
の内、より新しいパルス数の一定の順序ある数列
でより前のパルス数を書き換えることによつて、
より新しいパルス数及びその連続傾向を考慮した
表示がなされることになる。ここで上記一定の数
列にレジスタ91のパルス数P1を含めていないが、
レジスタ91には常に最新のパルス数が入力され
ており、これが増加傾向、減少傾向又は定常傾向
にあるかを判定することは、以後の入力パルス数
次第であり、最新パルス数P1を含めて一定の順
序ある数列とすることは以後の傾向を無視するこ
とになり、長い時間的視野から考えた場合正確さ
を欠くことになり、この場合、最新のパルス数
P1は一定の順序ある数列に含ませないことにし
た。
At counting time t42 , "2" is newly input into the register 91 as the latest pulse number P1 . Below mentioned above t 41
The explanation of the same operation will be omitted. The first consecutive number determining circuit 19 determines that the pulse number P 1 "2" is not consecutive two or more times including the register 9 1 , that is, the pulse numbers P 1 and P 2 are different. and,
The third consecutive number determining circuit 23 determines that the consecutive number K2 of pulse number P2 of "1" in the register 92 is 1. Further, the fourth consecutive number determining circuit 24 determines whether the value of the pulse number P 2 is consecutive two or more times in the registers 9 4 to 9 12 and determines that the consecutive number K 3 is three.
The consecutive number comparison circuit 25 compares the consecutive numbers K 2 and K 3 and determines that (K 3 −K 2 )≧2. Therefore, the fifth correction command circuit 26 inputs the pulse number P 2 "2" to the register 9.
(1+2) ~9 Issue a command to rewrite 12 . Furthermore, the sixth
The correction command circuit 27 issues a command to rewrite the registers 9A ( 1 +2) (where A=1, 2...N), that is, the registers 9 3 , 9 6 , 9 9 , 9 12 with the pulse number P 1 "1". The number of pulses P 2 to P 12 after this rewriting is a series of [1, 2, 1], and the number of pulses P 2 to P 12 after this rewriting is a series of [1, 2, 1 ], and
By rewriting the earlier pulse numbers with a certain sequence of newer pulse numbers,
The display will take into account the newer number of pulses and their continuous trend. Here, the number of pulses P 1 of register 9 1 is not included in the above fixed number sequence, but
The latest number of pulses is always input to register 91 , and determining whether this is on an increasing, decreasing, or steady trend depends on the number of input pulses thereafter, including the latest pulse number P1 . Setting a sequence of numbers in a certain order ignores subsequent trends and lacks accuracy when considered from a long time perspective.
We decided not to include P 1 in a certain sequence of numbers.

又、第6図に示すように、入力パルス信号aと
多分割されたゲートタイムを有するゲート信号と
は同期している訳ではないため入力パルス信号a
の周波数に変動がなくとも計数時の両信号a,b
の位相関係に応じて最大1つの計数差を生じるこ
とから、パルス数P1「1」である場合もあり、そ
うすればパルス数P1も含めて一定の順序ある数
列とみなすこともできる。
Furthermore, as shown in FIG. 6, since the input pulse signal a and the gate signal having multi-divided gate times are not synchronized, the input pulse signal a
Even if there is no fluctuation in the frequency of both signals a and b during counting
Since a count difference of at most one occurs depending on the phase relationship between the pulse numbers P 1 and 1, the pulse number P 1 may be "1", and in this case, the pulse number P 1 can also be regarded as a sequence of numbers with a certain order.

計数時間t51でレジスタ91に最新パルス数P1
して「2」が入力される。第3の連続数判定回路
23はパルス数P2「1」の連続回数K2を2、又第
4連続数判定回路24は前記以外のレジスタすな
わちレジスタ94〜912でパルス数P2の値が2回
以上連続しているかどうかを判定し、連続回数
K3を4と判定する。尚、レジスタ95〜97
「1」が3回連続しているが、連続回数K3は大き
い方を採用する。そして、連続数比較回路25は
(K3−K2)≧2であると判定する。これは、最新
パルス数P1と異なるパルス数P2がレジスタ内の
より新しいレジスタ92及び93で連続しており、
これを考慮すると共に最新パルス数P1の頻度も
考慮することにより、できるだけより新しいパル
ス数の一定の順序ある数列に書き換える。そのた
め、第5の補正指令回路26はレジスタ9(2+2)
12をパルス数P2「1」で書き換えると共に、第
6の補正指令回路27はレジスタ9A(2+2)
すなわち94,98,912をパルス数P1「2」で書
き換える。この書き換え後のパルス数P2〜912
〔1・1・2・1〕の連続であり一定の順序ある
数列となる。
At counting time t51 , "2" is input to the register 91 as the latest pulse number P1 . The third consecutive number determining circuit 23 sets the number of consecutive pulses P2 of "1" to 2 , and the fourth consecutive number determining circuit 24 determines the number of pulses P2 by using registers other than the above, that is, registers 94 to 912 . Determine whether the value is consecutive two or more times, and calculate the number of consecutive times.
Determine K 3 as 4. Note that although "1" is displayed three times in a row in the registers 95 to 97 , the larger number of consecutive times K3 is adopted. Then, the consecutive number comparison circuit 25 determines that (K 3 −K 2 )≧2. This means that the latest pulse number P 1 and the different pulse number P 2 are continuous in newer registers 9 2 and 9 3 in the register,
By taking this into consideration and also taking into account the frequency of the latest pulse number P1 , the pulse number is rewritten to a numerical sequence with a newer number of pulses in a certain order as much as possible. Therefore, the fifth correction command circuit 26 registers 9 (2+2) to
9 12 is rewritten with the pulse number P 2 "1", and the sixth correction command circuit 27 writes the register 9A (2+2).
That is, 9 4 , 9 8 , and 9 12 are rewritten with the pulse number P 1 "2". The number of pulses P 2 to 9 12 after this rewriting is a series of [1, 1, 2, 1], and is a numerical sequence in a certain order.

■■■ 亀の甲 [0007] ■■■ 以上のように本発明によれば入力された最新パ
ルス数、1回前の最新パルス数及びそれらの連続
数を主要視し、より新しく記憶されているパルス
数の数列に応じて以前に記憶されているパルス数
を補正することにより、ゲートタイム内の急激な
変化に対する表示値の応答性が速くなり、実際の
速度感覚値と表示値の違いが非常に少なくなる。
■■■ Tortoise Shell [0007] ■■■ As described above, according to the present invention, the latest input pulse number, the latest pulse number before one time, and their consecutive numbers are taken into account, and the more recently stored pulses are By correcting the previously stored number of pulses according to the number sequence, the responsiveness of the displayed value to sudden changes within the gate time becomes faster, and the difference between the actual speed sense value and the displayed value becomes very large. It becomes less.

尚、入力パルス数の急激な変化を判定する基準
となる比較判定回路15で設定した設定値Xは任
意に設定可能であり、また補正するため第1、第
2の補正指令回路17,18で決めた所定値Y
(Y1,Y2)は「P1±1」の代わりにP1であつて
もあるいは両方の組み合せであつても良くさらに
書き換えるレジスタ数も予め設定しておくかある
いは比較判定回路15の判定結果に応じてレジス
タ91〜9Nの全部又は一部を選択する方法でもよ
い。
Note that the set value Determined value Y
(Y 1 , Y 2 ) may be P 1 instead of "P 1 ±1" or a combination of both. Furthermore, the number of registers to be rewritten may be set in advance or may be determined by the comparison/judgment circuit 15. A method may also be used in which all or part of the registers 9 1 to 9 N are selected depending on the result.

又、レジスタ92〜9Nのパルス数を一定の順序
ある数列に補正するため書き換えるレジスタを第
3の補正指令回路21において(K1+2)番目、
第4の補正指令回路22において(MK1+1)
番目、第5の補正指令回路26において(K2
2)番目、又第6の補正指令回路27において
A(K2+2)番目とそれぞれしたが、これは一実施例で
あり、他の方法も考えられる。
Further, in the third correction command circuit 21, the registers to be rewritten in order to correct the number of pulses in the registers 9 2 to 9 N to a certain sequence of numbers are (K 1 +2)th,
In the fourth correction command circuit 22 (MK 1 +1)
In the fifth correction command circuit 26, (K 2 +
2) In the sixth correction command circuit 27
A (K2+2) th, respectively, but this is just one example, and other methods are also possible.

以上詳述したように、本発明によれば、あるゲ
ートタイム内に入力されるパルス数を計数して表
示するパルス計数装置において、ゲートタイムを
複数に分割して入力パルスをカウントすることに
より、ゲートタイム内の入力パルスの変化に応じ
てゲートタイム内に計数したパルス数を補正し、
補正した結果を表示することにより、急激な入力
パルスの変化に対し、表示の応答性の速いパルス
計数装置を提供することができる。
As detailed above, according to the present invention, in a pulse counting device that counts and displays the number of pulses input within a certain gate time, by dividing the gate time into a plurality of times and counting the input pulses, Corrects the number of pulses counted within the gate time according to changes in the input pulse within the gate time,
By displaying the corrected results, it is possible to provide a pulse counting device with quick display response to sudden changes in input pulses.

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

第1図は従来のパルス計数装置のブロツク図、
第2図は同装置の動作説明図、第3図は本発明の
一実施例であるパルス計数装置のブロツク図、第
4図は同装置の比較判定回路のブロツク図、第5
図は比較判定回路の動作を示すフロチヤート、第
6図はパルス計数の動作を説明するための波形図
である。 6…入力端子、8…カウンタ、91〜9N…レジ
スタ、10…演算回路、11…分配器、12…加
算器、14…表示部、15…比較判定回路、16
…正負判定回路、17…第1の補正指令回路、1
8…第2の補正指令回路、19…第1の連続数判
定回路、20…第2の連続数判定回路、23…第
3の連続数判定回路、24…第4の連続数判定回
路、25…連続数比較回路、26…第5の補正指
令回路、27…第6の補正指令回路。
Figure 1 is a block diagram of a conventional pulse counting device.
Fig. 2 is an explanatory diagram of the operation of the same device, Fig. 3 is a block diagram of a pulse counting device which is an embodiment of the present invention, Fig. 4 is a block diagram of a comparison/judgment circuit of the same device, and Fig. 5
The figure is a flowchart showing the operation of the comparison/judgment circuit, and FIG. 6 is a waveform diagram for explaining the pulse counting operation. 6...Input terminal, 8...Counter, 91-9N ...Register, 10...Arithmetic circuit , 11...Distributor, 12...Adder, 14...Display section, 15...Comparison/judgment circuit, 16
...Positive/negative judgment circuit, 17...First correction command circuit, 1
8... Second correction command circuit, 19... First consecutive number determining circuit, 20... Second consecutive number determining circuit, 23... Third consecutive number determining circuit, 24... Fourth consecutive number determining circuit, 25 ...Continuation number comparison circuit, 26...Fifth correction command circuit, 27...Sixth correction command circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 測定量の変化に応じて発生するパルスを計数
するゲートタイムを多分割し、この多分割したゲ
ートタイムの時間経過時毎に計数したパルス数を
複数個のレジスタの内、第1のレジスタに記憶さ
せ、以後時間経過時毎に計数した新しいパルス数
を前記第1のレジスタに記憶させるとともにそれ
まで各レジスタに記憶していたパルス数を順次後
段のレジスタにシフトして最終段のレジスタに入
つていたパルス数を消し、前記第1のレジスタに
記憶された最新パルス数に応じて各レジスタのパ
ルス数を補正し、補正後の全レジスタの記憶値に
応じた値を表示するようにしたパルス計数装置に
おいて、前記最新のパルス数と1回前の最新パル
ス数を記憶している第2のレジスタのパルス数が
一致しているか否かを判定する第1の判定手段
と、前記第2のレジスタのパルス数が第2のレジ
スタを含んで何回連続しているかを判定しその第
1の連続数を求める第2の判定手段と、前記第2
のレジスタのパルス数が第1及び第2のレジスタ
を含まない他のレジスタで連続しているかを判定
しその第2の連続数を求める第3の判定手段と、
前記第1及び第2の連続数の差を求める比較手段
と、この比較結果に基づいて前記第1及び第2の
レジスタ以外のレジスタの値を補正する手段とを
備え、最新パルス数、1回前の最新パルス数及び
それらの連続数に応じた補正を行なうことを特徴
とするパルス計数装置。
1 Divide the gate time that counts pulses generated in response to changes in the measured quantity into multiple parts, and store the number of pulses counted each time the divided gate time elapses in the first register among the multiple registers. After that, a new number of pulses counted each time is stored in the first register, and the number of pulses stored in each register up to that point is sequentially shifted to the subsequent registers and then entered in the final register. The number of pulses that were on is erased, the number of pulses in each register is corrected according to the latest number of pulses stored in the first register, and a value corresponding to the corrected value of all registers is displayed. In the pulse counting device, a first determining means for determining whether or not the latest pulse number and the pulse number in a second register storing the previous latest pulse number match; a second determining means for determining the number of consecutive pulses of the register including the second register and calculating the first consecutive number;
third determining means for determining whether the number of pulses in the register is continuous in other registers not including the first and second registers and obtaining the second consecutive number;
Comparing means for determining the difference between the first and second consecutive numbers; and means for correcting the values of registers other than the first and second registers based on the comparison result; A pulse counting device characterized by performing correction according to the latest number of previous pulses and the number of consecutive pulses.
JP22375283A 1983-11-28 1983-11-28 Pulse counter Granted JPS60116226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22375283A JPS60116226A (en) 1983-11-28 1983-11-28 Pulse counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22375283A JPS60116226A (en) 1983-11-28 1983-11-28 Pulse counter

Publications (2)

Publication Number Publication Date
JPS60116226A JPS60116226A (en) 1985-06-22
JPH0342614B2 true JPH0342614B2 (en) 1991-06-27

Family

ID=16803148

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22375283A Granted JPS60116226A (en) 1983-11-28 1983-11-28 Pulse counter

Country Status (1)

Country Link
JP (1) JPS60116226A (en)

Also Published As

Publication number Publication date
JPS60116226A (en) 1985-06-22

Similar Documents

Publication Publication Date Title
US5051688A (en) Crossed coil meter driving device having a plurality of input parameters
US4648104A (en) Pulse counting and pulse rate indicating device responsive to abrupt pulse rate change to accurately indicate current rate
JPH0342613B2 (en)
JPH0342614B2 (en)
JPH0342612B2 (en)
JP2600598B2 (en) Pulse width judgment circuit
EP0251528B1 (en) Digital peak-hold circuit
JP2537166B2 (en) Recording or playback device
JP3041351B2 (en) Analog electronic watch with chronograph function
JPS6319093B2 (en)
US4630137A (en) Tape timer apparatus for video tape recorder
JPS6126029B2 (en)
US5249213A (en) Circuit for counting the number of crossed over tracks by an optical head in optical disk apparatus
US4023016A (en) Signal characterizing apparatus
JPH0342408B2 (en)
JPS6126028B2 (en)
JPH0728550A (en) Counter
JP2017102518A (en) Processing device
JPH07209017A (en) Signal evaluation device
JPH082853Y2 (en) Pit interval average value calculation circuit
SU868769A1 (en) Digital linear extrapolator
JPH0310317B2 (en)
JP2640048B2 (en) Tape running time display method
SU993204A1 (en) Multi-variable function identifier
JPH027406B2 (en)