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
JPH0342613B2 - - Google Patents
[go: Go Back, main page]

JPH0342613B2 - - Google Patents

Info

Publication number
JPH0342613B2
JPH0342613B2 JP20172783A JP20172783A JPH0342613B2 JP H0342613 B2 JPH0342613 B2 JP H0342613B2 JP 20172783 A JP20172783 A JP 20172783A JP 20172783 A JP20172783 A JP 20172783A JP H0342613 B2 JPH0342613 B2 JP H0342613B2
Authority
JP
Japan
Prior art keywords
pulses
register
registers
consecutive
pulse
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
JP20172783A
Other languages
Japanese (ja)
Other versions
JPS6093824A (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 JP20172783A priority Critical patent/JPS6093824A/en
Priority to US06/647,522 priority patent/US4648104A/en
Priority to GB08422859A priority patent/GB2147127B/en
Priority to CA000463131A priority patent/CA1210826A/en
Priority to DE19843435539 priority patent/DE3435539A1/en
Publication of JPS6093824A publication Critical patent/JPS6093824A/en
Publication of JPH0342613B2 publication Critical patent/JPH0342613B2/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, pulses proportional to the measured quantity are counted at a gate time set by a reference clock signal, and this counted value is latched and displayed as it is updated sequentially. 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 written in a plurality of registers, for example, four registers 3a, 3b, 3c, and 3d, respectively, and these registers 3a to 3d are
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 pulse numbers P 1 , P 2 , P 3 , and P 4 counted during 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のレジスタを含んで連続し
ているかを判定しその第1の連続数を求める第1
の判定手段と、前記最新のパルス数が前記第1の
レジスタを含んで連続しているレジスタ以外にも
連続しているかを判定し、その第2の連続数を求
める第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 configured to display a corresponding value, a first register determines whether the latest pulse number is continuous including the first register and calculates the first consecutive number.
a second determining means for determining whether the latest pulse number is continuous in registers other than the consecutive registers including the first register, and calculating a second consecutive number; Comparison means for determining the difference between the first and second consecutive numbers, and means for correcting the values of registers other than the first register based on the comparison result, and correction according to the number of consecutive pulses of the latest pulse number. It is configured to perform the following.

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

第3図は本発明の一実施例のパルス計数装置の
ブロツク図であり、同図において、6は図示しな
い速度検出部の測定量に応じて発生されるパルス
を入力する入力端子、7は入力端子6で入力した
パルスの計数時間を設定するタイマで、計数時間
はゲートタイムを任意整数で除算した値になつて
おり、本実施例ではゲートタイムの1/Nの時間
に設定してある。8は設定された計数時間の間に
入力端子6で入力されたパルスをカウントするカ
ウンタ、9はカウンタ8でカウントしたパルス数
を記憶する複数個のレジスタからなる記憶部で、
記憶部9のレジスタ数は前記ゲートタイムを計数
時間で除算した時の商の値になつており、本実施
例ではN個を用い、カウンタ8でカウントしたパ
ルス数を計数時間経過時毎に記憶部9の最新パル
ス数として記憶する第1のレジスタ91に入力す
るて共にそれまでレジスタ91,92…9N-1に記
憶していたパルス数を順次レジスタ92,93…9
へシフトし、レジスタ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 1/N 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 section consisting of a plurality of registers that stores the number of pulses counted by the counter 8;
The number of registers in the storage section 9 is the value of the quotient when the gate time is divided by the counting time, and in this embodiment, N registers are used, and the number of pulses counted by the counter 8 is stored every time the counting time elapses. The pulse numbers previously stored in the registers 9 1 , 9 2 .
N , and the number of pulses stored in the register 9 N 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. Arithmetic circuit 10
compares the latest pulse number within the gate time input to register 91 with the previous pulse numbers stored in other registers 92 to 9N , and detects a sudden change in the number of pulses, that is, an increase or decrease state. A comparison is made and a command is issued to correct the contents of the number of pulses stored in the registers 9 2 to 9 N based on the result of the comparison. 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.

前記第2の判定手段である第3の連続数判定回
路23はパルス数P1がレジスタP1を含んで連続
しているレジスタ及び最後段のレジスタPNを含
んで連続しているレジスタ以外にも1回以上連続
しているか否かを判定し、その連続回数K2をカ
ウントする。前記比較手段である連続数比較回路
24は前記連続回数K1及びK2において(K1
K2)≧2であるか否かを比較する。(K1−K2)≧
2であれば、第5の補正指令回路25はレジスタ
2〜9Nの内所定のパルス数をパルス数P1の値に
書換えて補正する指令を出し、又第6の補正指令
回路26はレジスタ92〜9Nの内所定のパルス数
をパルス数P1以外の値に書換えて補正する指令
を出し、その結果を分配器11へ転送する。前記
第1のレジスタ以外のレジスタの値を補正する手
段は上記第5及び第6の補正指令回路25,26
によつて構成される。
The third consecutive number determining circuit 23, which is the second determining means, determines whether the pulse number P 1 is in any register other than the consecutive registers including the register P 1 and the consecutive registers including the last stage register P N. It is determined whether or not the sequence continues one or more times, and the number of consecutive times K 2 is counted. The consecutive number comparing circuit 24, which is the comparing means , calculates (K 1
K 2 )≧2. (K 1 −K 2 )≧
2, the fifth correction command circuit 25 issues a command to rewrite and correct the predetermined number of pulses in the registers 9 2 to 9 N to the value of the number of pulses P 1 , and the sixth correction command circuit 26 issues A command is issued to rewrite and correct a predetermined number of pulses in the registers 9 2 to 9 N to a value other than the number of pulses P 1 , and the result is transferred to the distributor 11 . The means for correcting the values of registers other than the first register are the fifth and sixth correction command circuits 25 and 26.
Composed by.

以上によつて構成される本発明の動作を第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へとシフトされる。そして、こ
れらレジスタ91〜9Nのパルス数は演算回路10
を構成する比較判定回路15へ転送される。比較
判定回路15はレジスタ91のパルス数P1と他の
レジスタ92〜9Nのパルス数Pi(i=2〜N)を
それぞれ比較してP1とPiの差が設定値X以上すな
わち|(P1−Pi)|≧Xであるかを判定する
(STEP1)。尚、本実施例においては説明上設定
値Xを「2」とする。少なくとも1つのレジスタ
2〜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
書き換える指令を出す(STEP4)。この所定値Y2
は、最新のパルス数P1もしくは「P1+1」の値
とするが、本実施例ではY2を「P1+1」とする。
これら第1の補正指令回路17又は第2の補正指
令回路18で補正指令が出されたレジスタ92
Nのパルス数Piは分配器11で補正され、各レ
ジスタ92〜9Nへ転送され、そして各レジスタ9
〜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. This register 9 1
The number of pulses input to 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 determined by the arithmetic circuit 10
The data is transferred to the comparison/judgment circuit 15 that constitutes the. The comparison/judgment circuit 15 compares the number of pulses P 1 in the register 9 1 and the number of pulses P i (i=2 to N) in the other registers 9 2 to 9 N , respectively, and calculates the difference between P 1 and P i as the set value X. In other words, it is determined whether |(P 1 −P i )|≧X (STEP 1). In this embodiment, the set value X is assumed to be "2" for explanation purposes. If |(P 1 −P i )|≧2 in at least one register 9 2 to 9 N , the positive/negative determination circuit 16 determines whether (P 1 −P i ) is positive or negative (STEP 2). In this case, if (P 1P i ) is positive, the latest number of pulses input to register 91
The fact that P 1 is larger than the number of pulses P i of the other registers 9 2 to 9 N indicates that the latest number of pulses is on the rise. Conversely, if (P 1 −P i ) is negative, it indicates that the number of pulses is decreasing. (P 1
If P i ) is positive, the register 9 1 to which the latest pulse number is input in the first correction command circuit 17
The number of pulses in P 1 and the number of pulses in other registers 9 2 to 9 N
In order to correct the value of P i by bringing it closer, each pulse number P 2 ~
Issue a command to rewrite P N with a predetermined value Y 1 (STEP 3). This predetermined value Y 1 is the latest pulse number P 1
Alternatively, the value is "P 1 -1", but in this embodiment, Y 1 is set to "P 1 -1". 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
In order to correct the number of pulses P i of the other registers 9 2 to 9 N by bringing them closer to , a command is issued to rewrite each number of pulses P 2 to P N with a predetermined value Y 2 (STEP 4). This predetermined value Y 2
is the latest pulse number P 1 or "P 1 +1", but in this embodiment, Y 2 is set to "P 1 +1".
These registers 9 2 to 9 to which correction commands have been issued by the first correction command circuit 17 or the second correction command circuit 18
The number of pulses P i of 9 N is corrected by the distributor 11 and transferred to each register 9 2 to 9 N.
The number of pulses from 1 to 9 N are added by an adder 12, and after a predetermined drive is performed by a latch circuit 13, a numerical value corresponding to the added value is displayed on a display section 14.

以上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〜Nへ転送さ
れ、その後所定の制御がなされて表示部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 uses the number of pulses P 1 to set the number of pulses in the register 9 (K1+2) to 9 N. 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 for which the rewriting command was issued in STEP 8 and 9 is rewritten by the distributor 11 and transferred to each register 9 2 to N , after which a predetermined control is performed and displayed on the display unit 14. be done.

次にSTEP7においてパルス数P1以外の値で連
続しているものがなかつた場合、第3の連続数判
定回路23はパルス数P1の値がレジスタ91及び
Nを含まないで他のレジスタ92〜9N-1におい
て2回以上連続しているかを判定して
(STEP10)、この際2回以上連続していればその
連続回数K2をカウントして求める(STEP11)。
次に前記レジスタ91を含んだパルス数P1の連続
回数K1がレジスタ91を含んで連続しているレジ
スタ及びレジスタ9Nを含んで連続しているレジ
スタ以外において1回以上連続しているかを判定
して(STEP10)、この際連続していればその連
続回数K2をカウントして求める(STEP11)。次
に連続回数K1が連続回数K2より2以上大きいか
否かを連続数比較回路24で比較する
(STEP12)。(K1−K2)≧2であれば、第5の補
正指令回路25はパルス数P1でレジスタ9(K1+2)
〜9N内のパルス数を書き換える指令を出す
(STEP13)。さらに、第6の補正指令回路26は
P1以外の値PKでレジスタ(MK1+1)内のパル
ス数を書き換える指令を出す(STEP14)。但し
M=2,3,…Nとする。尚、STEP1において
|(P1−Pi)|≧2の判定がなされているため、こ
のSTEP10〜14へ至る動作がなされるパルス数の
値は最新のパルス数P1と他の1つのパルス数PK
しかなくこのPKは一義的に決定される。このよ
うなSTEP10〜14動作はそれほど急激な変化がパ
ルス数P2〜PNと比較して最新パルス数P1に起き
ていないが、入力パルスの周波数が一定でない
(すなわち連続する入力パルス数に規則性がない)
と判断され、かつ最新入力パルスP1が連続して
記憶され、ある程度定常状態にあると判断された
場合で、このような場合、パルス数P2〜PNの値
を最新のパルス数P1及びその連続回数に応じて
一定の順序ある数列に書き換えることにより、
P1及びその連続回数を主要視すると共にそれ以
前の状態を記憶しているパルス数P2〜PNをも考
慮し、より速く実際の値に近い値を表示させるも
のである。このSTEP13及び14によつて書き換え
指令を出されたパルス数P2〜PNは分配器11で
書き換えられ、各レジスタ92〜9Nへ転送され、
その後所定の制御がなされて表示部14で表示さ
れる。
Next, in STEP7, if there is no consecutive pulse number P 1 , the third consecutive number determination circuit 23 determines that the value of the pulse number P 1 does not include the registers 9 1 and 9 N and is It is determined whether the registers 9 2 to 9 N-1 are repeated two or more times in a row (STEP 10), and if it is consecutive two or more times, the consecutive number K 2 is counted and determined (STEP 11).
Next, the number of consecutive pulses P 1 including the register 9 1 is determined to be one or more times in a row except for the consecutive registers including the register 9 1 and the consecutive registers including the register 9 N. At this time, if it is continuous, count the number of consecutive times K 2 and find it (STEP 11). Next, the consecutive number comparing circuit 24 compares whether the consecutive number K1 is two or more larger than the consecutive number K2 (STEP 12). If (K 1 − K 2 )≧2, the fifth correction command circuit 25 outputs the register 9 (K1+2) with the number of pulses P 1 .
~9 Issue a command to rewrite the number of pulses in N (STEP13). Furthermore, the sixth correction command circuit 26
Issue a command to rewrite the number of pulses in the register (MK 1 + 1) with a value P K other than P 1 (STEP 14). However, M=2, 3,...N. In addition, in STEP 1, it is determined that |(P 1P i )|≧2, so the value of the number of pulses for which the operations leading to STEP 10 to 14 are performed is the latest pulse number P 1 and one other pulse. Number P K
Therefore, this P K is uniquely determined. In such STEP 10 to 14 operations, the latest pulse number P 1 does not change as sharply 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 varies). no regularity)
In this case, the latest input pulse P 1 is stored continuously and it is determined that it is in a steady state to some extent. In such a case, the values of the number of pulses P 2 to P N are And by rewriting it into a sequence of numbers in a certain order according to the number of consecutive times,
It focuses on P 1 and the number of consecutive pulses, and also takes into consideration the number of pulses P 2 to P N that store the previous state, and displays a value closer to the actual value more quickly. The number of pulses P 2 to P N issued the rewriting command in STEP 13 and 14 is rewritten by the distributor 11 and transferred to each register 9 2 to 9 N ,
Thereafter, a predetermined control is performed and the information is displayed on the display unit 14.

尚、STEP5,10,12において“NO”となつた
場合、最新のパルス数P1が他のパルス数と比較
してそれ程急激な変化もなくかつ入力パルスの周
波数が一定でないと判定されないためそのまま書
き換えることなくレジスタ92〜9Nへ転送され、
所定の制御がなされた後表示部14で表示され
る。
In addition, if "NO" is obtained in STEP 5, 10, and 12, the latest pulse number P 1 does not change so rapidly compared to other pulse numbers and the frequency of the input pulse 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
8に順次シフトしながら記憶させた各レジスタ
の内容、演算回路10及び分配器11によつて書
き換えられた後の各レジスタの内容、書き換えが
行なわれた後のレジスタの記憶内容に応じた表示
値B、及びこのような書き換えを行なわない従来
の表示値Cが示されている。
Table 1 shows the number of input pulses counted every 1/8 of the gate time, for example, in eight registers 9 1 to 9.
Display according to the contents of each register stored while sequentially shifting to 9 8 , the contents of each register after being rewritten by the arithmetic circuit 10 and distributor 11, and the stored contents of the register after being rewritten. A value B 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,
Displays that match that trend will be displayed. 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.

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

通常、自動車の走行速度等の測定量の変化に応
じたパルスを計数し、それを記憶するレジスタの
数は10個〜20個である。このようにレジスタの数
が多い理由は、多分割されたゲートタイムの1回
当りの切換時間が短かくなり、表示部14での1
回当りの表示切換えが早くなるため精度の向上が
図れるためである。このSTEP10〜14の動作はこ
のようにレジスタの数が多くなつた時に有効にな
るものであり、表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 14 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」が2回以上連続していて連続回数K1
3と判定され、第2の連続数判定回路20によつ
てパルス数P1以外の値が2回以上連続していな
いと判定され、さらに第3の連続数判定回路23
でレジスタ91及び9Nを含まないでパルス数P1
「1」が2回以上連続しているかを判定する。こ
の場合レジスタ95,96で「1」が2回連続して
いるため連続回数K2は2となる。連続数比較回
路24は連続回数K1とK2を比較して(K1−K2
=1となるため、レジスタ91を含んだパルス数
P1の連続回数K1とレジスタ91を含まないパルス
数P1の連続回数K2とは大差なく一定の順序ある
数列に書き換える必要がないとして分配器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 consecutive two or more times and the consecutive number K 1 is 3, and the second consecutive number determining circuit 20 determines that the pulse number P 1 "1" is consecutive two or more times and the consecutive number K 1 is 3. It is determined that a value other than the pulse number P 1 is not consecutive two or more times, and the third consecutive number determination circuit 23
and the number of pulses P 1 not including registers 9 1 and 9 N
Determine whether "1" is consecutive two or more times. In this case, since the registers 9 5 and 9 6 are "1" twice in a row, the consecutive number K 2 is 2. The consecutive number comparison circuit 24 compares the consecutive numbers K 1 and K 2 and calculates (K 1K 2 )
= 1, so the number of pulses including register 9 1
The correction command is not transferred to the distributor 11 because there is no big difference between the consecutive number K 1 of P 1 and the consecutive number K 2 of the pulse number P 1 not including the register 9 1 , and there is no need to rewrite it into a certain sequence of numbers.

計数時間t42であらたにレジスタ91に最新パル
ス数P1として「1」が入力される。以下前記t41
と同じ動作の説明は省略する。第1の連続数判定
回路19によつてパルス数P1の連続回数K1は4
と判定され、さらに第3の連続数判定回路23に
よつて連続回数K2は1と判定される。この場合
レジスタ96〜97で連続回数K2は2、又レジスタ
9及び911でそれぞれ連続回数K2は1と判定さ
れるが連続回数K2は一番小さな値を採用するこ
とにする。そして、連続数比較回路24で(K1
−K2)=3であと判定される。これは、レジスタ
1を含んだパルス数P1の連続回数K1とレジスタ
1を含まないパルス数P1の連続回数K2とは差が
あり、レジスタ92〜912の値を一定の順序ある
数列に書き換えた方が、より新しく入力されたパ
ルス数にレジスタの内容を近づけるためである。
そのため、第5の補正指令回路25はレジスタ9
(4+2)〜912を最新パルス数P1すなわち「1」で書
き換える指令を出す。さらに、第6の補正指令回
路26はレジスタ9(4M+1)(但しM=2,3…N)
すなわちレジスタ99をパルス数P1以外の値PK
なわち「2」で書き換える指令を出す。尚、この
場合、パルス数P1以外の値は必ず一種類しかな
いためこの値は一義的に決定される。この書き換
え後のパルス数P1〜P12は〔1・1・1・2)〕の
連続であり、一定の順序ある数列となつているた
め、より新しいレジスタ91〜95のパルス数を考
慮した最新の表示がなされることになる。
At counting time t42 , "1" 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 determination circuit 19 determines that the number of consecutive pulses P1 is 4 .
Further, the third consecutive number determining circuit 23 determines that the consecutive number K 2 is 1. In this case, the consecutive number K2 is determined to be 2 in registers 96 to 97 , and the consecutive number K2 is determined to be 1 in registers 99 and 911 , but the smallest value is adopted for the consecutive number K2 . do. Then, the consecutive number comparison circuit 24 calculates (K 1
−K 2 )=3 is determined later. This is because there is a difference between the consecutive number of pulses P 1 including register 9 1 and the consecutive number K 2 of pulse number P 1 not including register 9 1 , and the values of registers 9 2 to 9 12 are kept constant. This is because the contents of the register can be brought closer to the newly input pulse number by rewriting them into an ordered number sequence.
Therefore, the fifth correction command circuit 25 uses the register 9
Issue a command to rewrite (4+2) to 9 12 with the latest pulse number P 1 , that is, "1". Furthermore, the sixth correction command circuit 26 has register 9 (4M+1) (however, M=2, 3...N)
That is, a command is issued to rewrite the register 99 with a value PK other than the number of pulses P1 , that is, "2". In this case, since there is always only one type of value other than the number of pulses P1 , this value is uniquely determined. The number of pulses P 1 to P 12 after this rewriting is a series of [1, 1, 1, 2)], and is a sequence of numbers in a certain order, so the number of pulses in the newer registers 9 1 to 9 5 is The most up-to-date display will be displayed.

又、同様に計数時間t43では連続回数K1は5で
あり、連続回数K2は3となる。従つて、レジス
タ9(5+2)〜912が「1」で書き換えられ、又レジ
スタ9(10+1)が「2」で書き換えられる。故に、
書き換え後のパルス数P1〜P12は〔1・1・1・
1・2〕の連続であり一定の順序ある数列とな
る。
Similarly, at counting time t43 , the consecutive number K1 is 5, and the consecutive number K2 is 3. Therefore, registers 9 (5+2) to 9 12 are rewritten with "1", and register 9 (10+1) is rewritten with "2". Therefore,
The number of pulses P 1 to P 12 after rewriting is [1, 1, 1,
1, 2] and is a sequence of numbers in a certain order.

更に、次の計数時間t44でレジスタ91に「1」
が入ると連続回数K1は6、連続回数K2は4とな
り、従つてレジスタ9(6+2)〜912は「1」で書き
換えられ、書き換え後のパルス数P1〜P12
〔1・1・1・1・1・2〕の連続となり一定の
順序ある数列となる。
Furthermore, at the next counting time t44 , "1" is written to register 91 .
When , the number of consecutive pulses K 1 becomes 6 and the number of consecutive pulses K 2 becomes 4. Therefore, registers 9 (6+2) to 912 are rewritten as "1", and the number of pulses P 1 to P 12 after rewriting is [ 1, 1, 1, 1, 1, 2], resulting in a sequence of numbers in a certain order.

そして、次の計数時間t45でレジスタ91
「1」が入ると連続回数K1は7となり、一方レジ
スタ99〜912で「1」が4回連続しており、2
つの連続回数の差が2以上あることから、前記同
様書き換えるように思われるが、最新のパルス数
P1が最終段のレジスタ912を含んで連続している
場合には、既にレジスタ912からレジスタ9外へ
シフトされて出され記憶から消されたパルス数
PN+1,PN+2…が「1」だつた可能性もあり、した
がつて単にレジスタ9内に現存する記憶値による
判定は長い時間的視野から考えた場合正確さを欠
くことになり、このような場合すなわち最新のパ
ルス数P1が最終段のレジスタ912を含んで連続し
ている場合には、むしろ強制的に書き換えを行わ
ない方が過去の履歴を残す結果として、より望ま
しいものとなることから、連続回数K2の判定は、
最新のパルス数P1がレジスタ91及び912を含ん
でいない場合のみ対象とすることにした。
Then, at the next counting time t45 , when "1" is entered in register 91 , the consecutive number K1 becomes 7, and on the other hand, "1" is continuously written four times in registers 99 to 912 , and 2
Since there is a difference of 2 or more in the number of consecutive pulses, it seems to be rewritten as above, but the latest number of pulses
If P 1 is continuous including the last stage register 9 12 , the number of pulses that have already been shifted out of register 9 from register 9 12 and erased from memory.
There is a possibility that P N+1 , P N+2 ... could have been "1", and therefore, simply determining based on the memory value existing in register 9 lacks accuracy when considered from a long time perspective. In such a case, that is, if the latest pulse number P 1 is continuous including the last register 9 to 12 , it would be better not to force rewrite because the past history will be preserved. Since it is desirable, the determination of the consecutive number K 2 is
It was decided to target only cases where the latest pulse number P 1 does not include registers 9 1 and 9 12 .

■■■ 亀の甲 [0005] ■■■ なお、計数時間t42,t43,t44等において書き換
え後のレジスタ91〜912に記憶されているパル
ス数P1すなわち「1」の連続回数が1回ずつ、
たとえば計数時間t42ではP1すなわち「1」がレ
ジスタ91〜94で4回、レジスタ96〜98で3回
と1回の差を有しているが、第6図で示すよう
に、入力パルス信号aと多分割されたゲートタイ
ムを有するゲート信号bとは同期している訳では
ないため入力パルス信号aの周波数に変動がなく
とも計数時の両信号a,bの位相関係に応じて最
大1つの計数差を生じることから、前記計数時間
のような場合でも入力パルス数は一定であるとみ
なすこともできるものである。
■■■ Turtle Shell [0005] ■■■ Note that the number of pulses P 1 , that is, the number of consecutive "1"s stored in the registers 91 to 912 after rewriting at counting times t42 , t43 , t44 , etc. One time at a time
For example, at counting time t 42 , P 1, that is, "1", occurs 4 times in registers 9 1 to 9 4 and 3 times in registers 9 6 to 9 8 , which is a difference of 1 time, but as shown in FIG. In addition, since the input pulse signal a and the gate signal b having multi-divided gate times are not synchronized, even if there is no fluctuation in the frequency of the input pulse signal a, the phase relationship between both signals a and b during counting is Since a maximum count difference of one occurs depending on the number of input pulses, the number of input pulses can be considered to be constant even in the case of the counting time described above.

以上のように本発明によれば入力された最新パ
ルス数を主要とし、かつ以前に記憶されているパ
ルス数の数列に応じて以前に記憶されているパル
ス数を補正することにより、ゲートタイム内の急
激な変化に対する表示値の応答性が速くなり、実
際の速度感覚値と表示値の違いが非常に少なくな
る。
As described above, according to the present invention, by using the latest input pulse number as the main pulse number and correcting the previously stored pulse number according to the sequence of previously stored pulse numbers, the gate time is The responsiveness of the displayed value to sudden changes in speed becomes faster, and the difference between the actual speed sensation value and the displayed value becomes very small.

尚、入力パルス数の急激な変化を判定する基準
となる比較判定回路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 the comparison/judgment circuit 15 may decide 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及び第5の補正指令
回路21,25において書き換えるレジスタを
(K1+2)番目又、第4及び第6の補正指令回路
22,26において書き換えるレジスタを
(MK1+1)番目としたが、これは一実施例であ
り、他の方法も考えられる。
In addition, in order to correct the number of pulses in the registers 9 2 to 9 N to a certain sequence of numbers in a certain order, the registers to be rewritten in the third and fifth correction command circuits 21 and 25 are set to the (K 1 +2)th register and the fourth and sixth registers. Although the register to be rewritten in the correction command circuits 22 and 26 is set to the (MK 1 +1)th register, 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…連続数比較回路、25
…第5の補正指令回路、26…第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 determination circuit, 24...consecutive number comparison circuit, 25
...Fifth correction command circuit, 26...Sixth correction command circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 測定量の変化に応じて発生するパルスを計数
するゲートタイムを多分割し、この多分割したゲ
ートタイムの時間経過時毎に計数したパルス数を
複数個のレジスタの内、第1のレジスタに記憶さ
せ、以後時間経過時毎に計数した新しいパルス数
を前記第1のレジスタに記憶させるとともにそれ
まで各レジスタに記憶していたパルス数を順次後
段のレジスタにシフトして最終段のレジスタに入
つていたパルス数を消し、前記第1のレジスタに
記憶された最新パルス数に応じて各レジスタのパ
ルス数を補正し、補正後の全レジスタの記憶値に
応じた値を表示するようにしたパルス計数装置に
おいて、前記最新のパルス数が第1のレジスタを
含んで連続しているかを判定しその第1の連続数
を求める第1の判定手段と、前記最新のパルス数
が前記第1のレジスタを含んで連続しているレジ
スタ以外にも連続しているかを判定し、その第2
の連続数を求める第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 determines whether the latest pulse number is continuous including the first register and obtains the first consecutive number; Determine if there are consecutive registers other than the register including the register, and check whether the second register is consecutive.
a second determining means for determining the consecutive number of , a comparing means for determining the difference between the first and second consecutive numbers, and a means for correcting the values of the registers other than the first register based on the comparison result. What is claimed is: 1. A pulse counting device comprising: a pulse counting device;
JP20172783A 1983-09-27 1983-10-27 Pulse counter Granted JPS6093824A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP20172783A JPS6093824A (en) 1983-10-27 1983-10-27 Pulse counter
US06/647,522 US4648104A (en) 1983-09-27 1984-09-05 Pulse counting and pulse rate indicating device responsive to abrupt pulse rate change to accurately indicate current rate
GB08422859A GB2147127B (en) 1983-09-27 1984-09-11 Pulse counting device
CA000463131A CA1210826A (en) 1983-09-27 1984-09-13 Pulse counting device
DE19843435539 DE3435539A1 (en) 1983-09-27 1984-09-27 PULSE MECHANISM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20172783A JPS6093824A (en) 1983-10-27 1983-10-27 Pulse counter

Publications (2)

Publication Number Publication Date
JPS6093824A JPS6093824A (en) 1985-05-25
JPH0342613B2 true JPH0342613B2 (en) 1991-06-27

Family

ID=16445929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20172783A Granted JPS6093824A (en) 1983-09-27 1983-10-27 Pulse counter

Country Status (1)

Country Link
JP (1) JPS6093824A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0758904B2 (en) * 1987-06-24 1995-06-21 日本電気株式会社 Pulse counter
JP2002017097A (en) * 2000-06-30 2002-01-18 Kusatsu Electric Co Ltd Rotational speed detecting device for three-phase brushless motor

Also Published As

Publication number Publication date
JPS6093824A (en) 1985-05-25

Similar Documents

Publication Publication Date Title
US5051688A (en) Crossed coil meter driving device having a plurality of input parameters
EP1252613A1 (en) Time constrained sensor data retrieval system and method
US4648104A (en) Pulse counting and pulse rate indicating device responsive to abrupt pulse rate change to accurately indicate current rate
JPH0342613B2 (en)
EP0274257B1 (en) Gauge driving system
CN111605558A (en) A vehicle speed determination method, device, electronic device and vehicle
JPH0342612B2 (en)
JPH0342614B2 (en)
JPH0748955B2 (en) PWM inverter control method and apparatus
JP2600598B2 (en) Pulse width judgment circuit
JPH0323947B2 (en)
JPS6126029B2 (en)
JPS6319093B2 (en)
JP6551194B2 (en) Processing equipment
JPS625367B2 (en)
US4023016A (en) Signal characterizing apparatus
JPH0226314B2 (en)
JPH082853Y2 (en) Pit interval average value calculation circuit
JPH0342408B2 (en)
JPH0728550A (en) Counter
JPS5876769A (en) Pulse counter
SU1443173A1 (en) Device for automatic phase auto-tuning
JP3116581B2 (en) Battery remaining capacity display
JPS5894100A (en) Pulse counter
JPH03295495A (en) Timer device