JPH0285764A - Meter drive device - Google Patents

Meter drive device

Info

Publication number
JPH0285764A
JPH0285764A JP23722088A JP23722088A JPH0285764A JP H0285764 A JPH0285764 A JP H0285764A JP 23722088 A JP23722088 A JP 23722088A JP 23722088 A JP23722088 A JP 23722088A JP H0285764 A JPH0285764 A JP H0285764A
Authority
JP
Japan
Prior art keywords
value
difference value
time
frequency
current
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.)
Granted
Application number
JP23722088A
Other languages
Japanese (ja)
Other versions
JP2742270B2 (en
Inventor
Kazuyuki Fukuda
和幸 福田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rohm Co Ltd
Original Assignee
Rohm Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP23722088A priority Critical patent/JP2742270B2/en
Publication of JPH0285764A publication Critical patent/JPH0285764A/en
Application granted granted Critical
Publication of JP2742270B2 publication Critical patent/JP2742270B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R7/00Instruments capable of converting two or more currents or voltages into a single mechanical displacement
    • G01R7/04Instruments capable of converting two or more currents or voltages into a single mechanical displacement for forming a quotient
    • G01R7/06Instruments capable of converting two or more currents or voltages into a single mechanical displacement for forming a quotient moving-iron type

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Indicating Measured Values (AREA)
  • Indication And Recording Devices For Special Purposes And Tariff Metering Devices (AREA)

Abstract

PURPOSE:To secure the excellent responsiveness of a meter and, at the same time, to cause the pointer of the meter to make natural oscillation by providing a switched state detecting means, elapsed time discriminating means, difference value calculating means, magnitude of difference value discriminating means, output value deciding means, etc. CONSTITUTION:When the period of input pulse signals is switched and the switched state is detected by means of a switched state detecting means, the difference value between the digital values calculated this time and last time is calculated by means of a difference value calculating means in response to either a switched state or elapse of prescribed time discriminated by an elapsed time discriminating means, whichever earlier. The difference value calculation is performed in response to the switched state at the time of high-speed operations and to a discriminated result of the elapsed time discriminated means at the time of low-speed operations. Then a magnitude of difference value discriminating means discriminates whether or not the absolute value of the difference value exceeds a prescribed value. When the absolute value exceeds the prescribed value, a prescribed value between the previous and current values is outputted. When the absolute value is smaller than the prescribed value, the current digital value is outputted as it is. Therefore, the pointer of a meter naturally oscillates without moving in the opposite direction.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 この発明は、自動車用等のタコメータ、スピードメータ
等に使用されるメータ駆動装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application This invention relates to a meter drive device used in tachometers, speedometers, etc. for automobiles.

(ロ)従来の技術 −IIに、自動車用のスピードメータには、第3図に示
すように、直交する2個のコイルL、 、Lcで形成さ
れる磁界内に針を振らせるための磁石Mを配置し、コイ
ルL、 、Lcには、スピード等の入力量に応じた電流
を流し、磁石Mを回動させて、針を振らせている。この
種のスピードメータにおけるメータ駆動装置は、入力量
、つまりスピードに応じて、周期の変化するパルス信号
を入力し、一方、基本クロック発生器で発生されるクロ
ック信号も入力し、パルス信号の1周期に亘り、カウン
タでクロック信号をカウントし、先ずパルス信号の周期
Tを求め、この周期Tより、f=1/Tの演算を行い、
周波数fを算出していた。このデジタルデータfは、入
力量に比例するものであるから、このデジタル値rに応
じた電流をコイルL、、LCに流し、コイルL、 、L
cによって発生する磁界によって、磁石である針を、前
記デジタル値によって決まる角度方位まで振らせるもの
であった。
(b) Conventional technology - II. As shown in Fig. 3, a speedometer for an automobile has a magnet for swinging the needle in a magnetic field formed by two orthogonal coils L, , Lc. A current is applied to the coils L, , Lc according to the input amount such as speed, and the magnet M is rotated to cause the needle to swing. The meter drive device in this type of speedometer inputs a pulse signal whose period changes depending on the input amount, that is, the speed, and also inputs a clock signal generated by a basic clock generator, Count the clock signal with a counter over the period, first find the period T of the pulse signal, and from this period T, calculate f = 1/T,
The frequency f was calculated. Since this digital data f is proportional to the input amount, a current corresponding to this digital value r is passed through the coils L, , LC, and the coils L, , L
The magnetic field generated by c causes a needle, which is a magnet, to swing to an angular direction determined by the digital value.

(ハ)発明が解決しようとする課題 上記従来のメータ駆動装置は、スピードに応じて変化す
るパルス信号の周期をクロック信号のカウントにより算
出し周波数を求め、デジタル信号iこ変換し、その値に
応じた角度方位を指定するためにsin 、  cos
演算を行っているので、例えば人力が急に高速から低速
に変化した場合、人力されるパルス信号の周波数が高周
波から低周波になり、周期が長くなるので、1周期分の
クロック信号をカウントするまでは、変化後の周波数が
算出されず、それまで針が動かず、極めて応答が悪いと
いう問題があった。
(c) Problems to be Solved by the Invention The conventional meter driving device described above calculates the period of a pulse signal that changes depending on the speed by counting clock signals, obtains the frequency, converts it into a digital signal, and converts it into a digital signal. sin , cos to specify the angular orientation according to
Since we are performing calculations, for example, if the human power suddenly changes from high speed to low speed, the frequency of the human power pulse signal will change from high frequency to low frequency and the period will become longer, so we will count one cycle of the clock signal. Previously, the problem was that the frequency after the change was not calculated, and the needle did not move until then, resulting in extremely poor response.

また、周波数、つまりデジタルデータに応じ、sin演
算、cos演算を行い、直交するコイルに入力量に応じ
た電流を流して、針を振らせるものであるから、例えば
第4図に例示する速度145Km/Hから、25 KI
l/ Hに象、激に指示を変化させる場合、針は経路A
を通り、20Km/Hに向かおうとせず、経路Bを通ろ
うとし、低速に変化しているにもかかわらず、指示が振
り切れる方向に向かうという不都合があった。
Also, according to the frequency, that is, digital data, sine and cosine calculations are performed, and a current corresponding to the input amount is passed through the orthogonal coils to cause the needle to swing. From /H, 25 KI
If you want to drastically change the instructions, move the needle to path A.
There was an inconvenience in that the vehicle did not try to head to 20 km/h, but instead tried to take Route B, heading in a direction that could not be followed by the instructions even though the speed was changing to a low speed.

この発明は上記問題点に着目してなされたちのであって
、入力量が低下しても、応答速度が遅くならず、また、
指示の動きが自然な動き方となるメータ駆動装置を提供
することを目的としている。
This invention was made by focusing on the above-mentioned problems, and even if the amount of input decreases, the response speed does not slow down.
It is an object of the present invention to provide a meter drive device in which the movement of the instruction is natural.

(ニ)課題を解決するための手段及び作用この発明のメ
ータ駆動装置は、互いに直交する第1、第2のコイルと
、入力量に応じた周波数のパルス信号を入力する手段と
、り、ロック信号発生手段と、このクロック信号発生手
段からのクロック信号をカウントするカウント手段と、
このカウント手段のカウント値に基づいて前記入力量に
比例したデジタル値を算出する演算手段と、この演算手
段から出力されるデジタル値に応じた電流を前記第1、
第2のコイルに流す駆動回路と、前記第1と第2のコイ
ルに電流が流れることにより発生する磁界によって角度
方位が決定される針とを有し、前記入力量の大きさに比
例した値を指示するものにおいて、前記パルス信号の各
周期の切換りを検出する切換り検出手段と、この切換り
時点から所定の時間が経過したか否かを判別する時間経
過判別手段と、前記周期切換りの検出あるいは時間経過
のいずれか早い方に応答して、前記演算手段による今回
のデジタル値と前回のデジタル値の差値を算出する差値
演算手段と、算出された差値の絶対値が所定値以上であ
るか否かを判別する差値大小判別手段と、差値の絶対値
が所定値以上の場合は今回のデジタル値と前回のデジタ
ル値の間にある所定値を今回の出力デジタル値と決定し
、差値の絶対値が所定値より小さい場合には、今回の算
出されたデジタル値を出力デジタル値と決定する出力値
決定手段と、前記差値演算、差値の大小判別、出力デジ
タル値の決定の各処理を所定時間毎に繰返すように制御
する繰返し制御手段とを特徴的に備えている。
(d) Means and operation for solving the problems The meter drive device of the present invention includes first and second coils that are orthogonal to each other, a means for inputting a pulse signal of a frequency corresponding to an input amount, and a lock. a signal generating means; a counting means for counting clock signals from the clock signal generating means;
calculation means for calculating a digital value proportional to the input amount based on the count value of the counting means;
a drive circuit that causes current to flow through the second coil; and a needle whose angular orientation is determined by a magnetic field generated by the current flowing through the first and second coils, and the value is proportional to the magnitude of the input amount. a switching detection means for detecting the switching of each period of the pulse signal; a time elapse determination means for determining whether a predetermined time has elapsed since the switching point; difference value calculation means for calculating the difference value between the current digital value and the previous digital value by the calculation means in response to the detection of the difference or the passage of time, whichever comes first; A difference value size determining means for determining whether the absolute value of the difference value is greater than or equal to a predetermined value, and a predetermined value between the current digital value and the previous digital value as the current output digital value. output value determining means for determining the currently calculated digital value as the output digital value when the absolute value of the difference value is smaller than a predetermined value; It is characteristically provided with a repetition control means for controlling each process of determining the output digital value to be repeated at predetermined time intervals.

このメータ駆動装置では、入力されるパルス信号の周期
が切換り、この切換りが切換り検出手段で検出されると
、以後は同じく切換り検出手段で切換りが検出されるか
、あるいは時間経過判別手段で所定時間の経過が判別さ
れるか、いずれか早い方に応答して、今回算出のデジタ
ル値と前回算出のデジタル値の差値が差値算出手段で算
出される。入力量が比較的大なる場合、つまり高速の場
合は、所定の時間が経過する前に、入力パルス信号の一
周期が到来するので、この場合は、周期切換り検出手段
の切換り検出に応答して差値演算が行われる。一方、入
力量が所定値よりも小の場合、つまり低速の場合は入力
パルス信号の一周期が到来する前に、所定の時間が経過
するので、この場合は時間経過判別手段の判別出力に応
答して差値演算が行われる。この場合、今回のデジタル
値は、まだ1周期分をカウントしていないカウント手段
のカウント値に基づいて算出するので、真の周波数より
高い目のデジタル値となる。いずれにせよ、差値が算出
されると、次にこの差値の絶対値が所定値を越えている
か否か、差値大小判別手段で判別する。差値の絶対値が
所定値より小さい場合は変化分が小さいものであるとし
て、今回のデジタル値がそのまま出力される。差値の絶
対値が所定値を越えていると、変化分が大であるとして
、いきなり、今回のデジタル値を出力して針を急激に振
らせようとせず、前回値と今回値の間の所定値、例えば
中間値を出力する。そして、以後も所定時間毎に、例え
ばその都度、今回と前回の中間値に相当するデジタル値
を出力し、針を順次振らせてゆき、差値の絶対値が所定
値より小さくなると、最終的に今回のデジタル値を出力
する。これにより、針が逆方向に動こうとせず自然に振
れる。
In this meter drive device, the cycle of the input pulse signal switches, and when this switching is detected by the switching detection means, the switching is detected by the same switching detection means, or the period of time elapses. The difference value between the currently calculated digital value and the previously calculated digital value is calculated by the difference value calculation means in response to whether the predetermined time has elapsed by the determining means or whichever is earlier. If the input amount is relatively large, that is, if it is high speed, one cycle of the input pulse signal will arrive before a predetermined time elapses, so in this case, it will respond to the switching detection of the cycle switching detection means. Then, a difference value calculation is performed. On the other hand, if the input amount is smaller than the predetermined value, that is, if it is slow, the predetermined time will elapse before one cycle of the input pulse signal arrives, so in this case, the response will be responded to the determination output of the time elapse determination means. Then, a difference value calculation is performed. In this case, the current digital value is calculated based on the count value of the counting means that has not yet counted one cycle, so it is a digital value higher than the true frequency. In any case, once the difference value is calculated, the difference value size determining means then determines whether the absolute value of this difference value exceeds a predetermined value. If the absolute value of the difference value is smaller than the predetermined value, it is assumed that the change is small, and the current digital value is output as is. If the absolute value of the difference value exceeds the predetermined value, it is assumed that the change is large, and instead of suddenly outputting the current digital value and causing the needle to swing rapidly, the difference between the previous value and the current value is Output a predetermined value, for example, an intermediate value. Thereafter, at predetermined intervals, for example, each time, a digital value corresponding to the intermediate value between this time and the previous time is output, and the hand is made to swing one after another, and when the absolute value of the difference value becomes smaller than the predetermined value, the final Outputs the current digital value. This allows the needle to swing naturally without trying to move in the opposite direction.

(ホ)実施例 以下、実施例により、この発明をさらに詳細に説明する
(E) Examples The present invention will be explained in more detail with reference to Examples below.

第2図は、この発明の一実施例を示すメータ駆動装置の
ブロック図である。同図において、入力信号回路1は、
車輪の回転に同期して発生するパルス信号をデータ演算
部2に入力している。一方、基準クロック信号発生器3
からのクロック信号もデータ演算部2に入力されている
FIG. 2 is a block diagram of a meter driving device showing one embodiment of the present invention. In the figure, the input signal circuit 1 is
A pulse signal generated in synchronization with the rotation of the wheels is input to the data calculation section 2. On the other hand, the reference clock signal generator 3
A clock signal from the data processing unit 2 is also input to the data calculation unit 2.

データ演算部2は、第1図に示すように、クロック信号
をカウントするカウンタ20、入力されるパルス信号の
立上り(周期切換り)を検出し、転送信号及びリセット
信号を発生する立上り検出回路21、リセット信号を受
けてスタートする10IIlsecタイマ22、この1
0m5ecタイマ22のタイムアツプ出力でセットされ
、上記リセット信号でリセットされるフリップフロップ
23、前記立上り検出回路21あるいは10m5ecタ
イマ22からの転送信号で、カウンタ20からのカウン
ト値Tを受け、1/Tの演算、つまり周波数演算を行う
周波数演算部24、周波数演算部24の出力「8、つま
り今回算出の周波数f、から前回算出の周波数f、−1
を減算し、その差値f6を算出する減算部25、その算
出した差値f4を記憶するメモリ26、差値f4を記憶
した時点のフリップフロップ23のセット/リセット状
態を判別する判別部27、この判別部27で、フリップ
フロップ23のセット状態が判別されると、前記差値f
As shown in FIG. 1, the data calculation unit 2 includes a counter 20 that counts clock signals, and a rising detection circuit 21 that detects the rising edge (cycle switching) of an input pulse signal and generates a transfer signal and a reset signal. , a 10IIsec timer 22 that starts upon receiving a reset signal, this one
The flip-flop 23, which is set by the time-up output of the 0m5ec timer 22 and reset by the reset signal, receives the count value T from the counter 20 by the transfer signal from the rise detection circuit 21 or the 10m5ec timer 22, and calculates 1/T. The frequency calculation unit 24 performs calculation, that is, the frequency calculation, and the output of the frequency calculation unit 24 is “8, that is, the frequency f calculated this time to the frequency f calculated last time, −1
, a subtraction unit 25 that calculates the difference value f6, a memory 26 that stores the calculated difference value f4, a determination unit 27 that determines the set/reset state of the flip-flop 23 at the time when the difference value f4 is stored. When the determining unit 27 determines the set state of the flip-flop 23, the difference value f
.

が0以上か否かを判別する判別部28を備えている。判
別部27でフリップフロップ23のリセット状態が判別
されると、判別部28による判別処理がスキップされる
ようになっている。
is provided with a determining unit 28 that determines whether or not is greater than or equal to 0. When the determination unit 27 determines the reset state of the flip-flop 23, the determination process by the determination unit 28 is skipped.

また、データ演算部2は、判別部28でfd>0でない
と判別されると、っまりr i < r 4−t テあ
ると判別され、また判別部27でQ=O(リセット状B
)であると判別されると、差値r4の絶対値が、所定(
IK以上であるか否かを判別する判別部29、この判別
部29でK>lf、1でないと判別されると、差値f、
を1/2 f、に更新し、判別部29でK>lf、Iと
判別されると、更新処理がスキップされる差値更新部3
o、差値r4と前回の周波数rt−+を加算する加算部
31、この加算値f、を記憶し、今回の周波数f、とし
て出力するメモリ32、このメモリ32の出力パルスに
応答して、スタートする10m5ecクイマ33を備え
ている。10m5ecタイマ33のタイムアツプで、メ
モリ26の出力が再導出されるようになっている。
In addition, when the determining unit 28 determines that fd>0, the data calculation unit 2 determines that there is definitely r i < r 4-t, and the determining unit 27 determines that Q=O (reset condition B).
), the absolute value of the difference value r4 is determined to be a predetermined (
A determining unit 29 determines whether or not it is greater than or equal to IK. If the determining unit 29 determines that K>lf and not 1, the difference value f,
is updated to 1/2 f, and when the determining unit 29 determines that K>lf, I, the difference value updating unit 3 skips the updating process.
o, an adder 31 that adds the difference value r4 and the previous frequency rt-+, a memory 32 that stores this added value f and outputs it as the current frequency f, in response to the output pulse of this memory 32, Equipped with 10m5ec Kuima 33 to start. When the 10m5ec timer 33 times up, the output of the memory 26 is re-derived.

データ演算部2のメモリ32より出力される周波数デー
タf!は、10ビツトのデジタルデータであり、このう
ち上位2ビツトは、1周分を4分割したいずれの象限か
を決定するものであり、この2ビツトにより象限決定部
10で振らせるべき針の属する象限が決定され、象限決
定部1oは、決定された象限により決まる方向信号を出
力する。
Frequency data f! output from the memory 32 of the data calculation section 2! is 10-bit digital data, of which the upper two bits determine which quadrant one revolution is divided into four, and by these two bits, the quadrant determination unit 10 determines which of the four quadrants the needle to swing belongs to. A quadrant is determined, and the quadrant determination unit 1o outputs a direction signal determined by the determined quadrant.

下位8ビット分は、各象限における01〜90 。The lower 8 bits are 01 to 90 in each quadrant.

に対応するデータであり、これらがsin演算部4とc
os演算部5に入力され、それぞれsin演算とcos
演算がなされ、それぞれパルス幅変調回路6.7を介し
てドライバ(駆動回路)8.9に入力されている。ドラ
イバ8はsin演算部4からの信号に応じた値と、方向
信号に応じた極性の電流をコイルL9に流し、ドライバ
9はcos演算部5からの信号に応じた値と方向信号に
応じた極性の電流をコイルLeに流すようになっている
。コイルし。
These are the data corresponding to sine calculation unit 4 and c
are input to the os calculation unit 5, and are subjected to sine calculation and cos calculation, respectively.
The signals are calculated and input to a driver (drive circuit) 8.9 via a pulse width modulation circuit 6.7. The driver 8 sends a current having a value corresponding to the signal from the sine calculation section 4 and a polarity according to the direction signal to the coil L9, and the driver 9 sends a current having a value corresponding to the signal from the cos calculation section 5 and a current having a polarity according to the direction signal. A polar current is made to flow through the coil Le. Coil it.

とLcに電流が流れることにより、合成磁界が発生し、
この合成磁界によって針が振れ、入力量に応じた角度方
位の指示を示す。
When current flows through and Lc, a composite magnetic field is generated,
This composite magnetic field causes the needle to swing, indicating the angular direction according to the amount of input.

次に、上記実施例メータ駆動装置の動作について説明す
る。
Next, the operation of the meter driving device of the above embodiment will be explained.

入力信号回路1より、車輪の回転に応じたパルス信号が
入力されると、立上り検出部21でパルス信号の立上り
が検出され、先ず、転送信号をカウンタ20に供給する
とともに、続いてリセット信号をカウンタ20とlom
secタイマ22及びフリップフロップ23に入力する
。カウンタ20は、転送信号によりそれまでカウントし
ていたカウント値を周波数演算部24に転送するととも
に、リセット信号によりリセットされ、以後衣のリセッ
ト信号が来るまで、基準クロック発生器3からのクロッ
ク信号をカウントする。
When a pulse signal corresponding to the rotation of the wheel is input from the input signal circuit 1, the rise detection section 21 detects the rise of the pulse signal, and first supplies a transfer signal to the counter 20, and then sends a reset signal. counter 20 and lom
It is input to the sec timer 22 and flip-flop 23. The counter 20 transfers the count value it had been counting to the frequency calculation unit 24 by the transfer signal, and is reset by the reset signal, and thereafter receives the clock signal from the reference clock generator 3 until the reset signal arrives. Count.

また、立上り検出によるリセット信号により、lQms
ecタイマ22がリセットされ、スタートするとともに
、フリップフロップ23がリセットされる。、lO…s
ecタイマ22がタイムアツプすると、そのタイムアツ
プ出力により、フリップフロップ23がセットされると
ともに、カウンタ20に転送信号を供給する。カウンタ
20はこの転送信号によっても、それまでカウントして
いた内容を周波数演算部24に出力する。
Also, by the reset signal by rising edge detection, lQms
The ec timer 22 is reset and started, and the flip-flop 23 is also reset. , lO...s
When the ec timer 22 times up, the flip-flop 23 is set by the time-up output, and a transfer signal is supplied to the counter 20. The counter 20 also outputs the contents counted up to that point to the frequency calculation section 24 in response to this transfer signal.

人力パルス信号の周波数が非常に高い状態、つまり1周
期の小さい状態では、立上り検出部21で立上りを検出
し、カウンタ20をリセットし、転送した状態から次の
リセット信号が入るまでの期間の方が、10m5ecタ
イマ22をタイムアンプする時間よりも短いので、カウ
ンタ20からの出力は、常にカウンタ20のリセット前
の転送指令によるものであり、したがって、パルス信号
の1周期間に相当するクロック信号のカウント値、つま
り1周期分のデータTが周波数演算部24に入力される
When the frequency of the human pulse signal is very high, that is, when one cycle is small, the rising edge is detected by the rising edge detection section 21, the counter 20 is reset, and the period from the transferred state until the next reset signal is input is is shorter than the time to time amplify the 10m5ec timer 22, so the output from the counter 20 is always based on the transfer command before resetting the counter 20, and therefore the output from the clock signal corresponding to one period of the pulse signal is The count value, that is, data T for one cycle is input to the frequency calculation section 24.

周波数演算部24では、1/Tの演算を行い、今回の周
波数r、を算出し、減算部25に入力する。減算部25
は、メモリ32に記憶されている前回の周波数f!−1
を他方の入力に受け、今回の周波数ftから前回の周波
数f、−1を減算し、その差値f、を算出する。そして
、この差値f4がメモリ26に記憶される。
The frequency calculation unit 24 performs a calculation of 1/T to calculate the current frequency r, and inputs it to the subtraction unit 25. Subtraction section 25
is the previous frequency f! stored in the memory 32. -1
is received as the other input, the previous frequency f, -1 is subtracted from the current frequency ft, and the difference value f, is calculated. This difference value f4 is then stored in the memory 26.

次に、判別部27でフリップフロップ23のQ出力がO
であるか否かを判定する。通常、入力パルスの周波数が
高い場合に、フリップフロップ23は、リセット状態に
あり、したがって、この場合にQ=Oの出力により、判
別部28をスキップして、判別部29で差値f4の絶対
値が所定値によりも小さいか否かを判定する。
Next, the determination unit 27 determines that the Q output of the flip-flop 23 is O.
Determine whether or not. Normally, when the frequency of the input pulse is high, the flip-flop 23 is in a reset state. Therefore, in this case, due to the output of Q=O, the discriminator 28 is skipped and the discriminator 29 determines the absolute value of the difference value f4. It is determined whether the value is smaller than a predetermined value.

今、例えば、針の振れが比較的小さい、つまり入力信号
の周波数の小さい状態から針が大きく振れる、つまり周
波数の高い方に針が移動する場合であって、振れ幅が急
激に大なる場合に、判別部29による判別はNoとなり
、これに続いて差値r、の1/2を差値更新部30で算
出し、加算部31で前回の周波数f、−1に1/2の差
値に相当するf4を加算して、今回の周波数f、とする
Now, for example, if the needle deflection is relatively small, that is, the input signal frequency is low, but the needle deflects greatly, that is, the needle moves toward a higher frequency, and the deflection width suddenly increases. , the determination by the determination unit 29 is No. Subsequently, the difference value updating unit 30 calculates 1/2 of the difference value r, and the addition unit 31 adds a difference value of 1/2 to the previous frequency f, -1. The current frequency f is obtained by adding f4 corresponding to .

つまり、前回の周波数と今回の周波数との中間値に相当
する算出された周波数f、をメモリ32に記憶し、この
周波数rtをsin演算部4、cos演算部5及び象限
決定部10にそれぞれ出力する。
That is, the calculated frequency f, which corresponds to the intermediate value between the previous frequency and the current frequency, is stored in the memory 32, and this frequency rt is output to the sine calculation section 4, the cosine calculation section 5, and the quadrant determination section 10, respectively. do.

そして、sin演算部4、cos演算部5及び象限決定
部10の出力に応じ、ドライバ8及びドライバ9に電流
が流れ、コイルし、及びLcに流れる電流により、所定
方向の磁界が発生し、これにより針が前回の振れと、次
に目標とする振れの中間値に相当するところまで振れる
ことになる。
Then, according to the outputs of the sine calculation section 4, the cosine calculation section 5, and the quadrant determination section 10, a current flows through the driver 8 and the driver 9, and the current flows through the coil, and a magnetic field in a predetermined direction is generated. This allows the needle to swing to a point corresponding to the intermediate value between the previous deflection and the next target deflection.

一方、メモリ32より出力される出力パルスに応答して
、lQmsecタイマ33がスタートし、このタイムア
ツプ信号により、再びメモリ26の差値fdが導出され
、同じく判別部27でQ=Oかの判別がなされ、判別部
29で差値faの絶対値かに以下であるか否か判定され
る。なお、差値「。
On the other hand, in response to the output pulse outputted from the memory 32, the lQmsec timer 33 starts, and this time-up signal causes the difference value fd in the memory 26 to be derived again, and similarly, the discriminator 27 determines whether Q=O. The determining unit 29 determines whether the absolute value of the difference value fa is less than or equal to the absolute value of the difference value fa. In addition, the difference value ".

かに以上の場合、つまり中間値と目標とする今回値f、
が大なる差をもつ場合には、さらに、その差値の1/2
f、tを求め、加算部31で前回のr2−5の、つまり
中間値に対し、さらに差値faを加算して新たなf、と
じ、これをメモリ32に記憶して、前回と同様sin演
算部4、cos演算部5及び象限決定部10にそれぞれ
出力する。
In the case of more than 50%, that is, the intermediate value and the target current value f,
If there is a large difference, in addition, 1/2 of the difference value
Find f and t, and add the difference value fa to the previous value of r2-5, that is, the intermediate value, to form a new f, and store this in the memory 32. It is output to the calculation section 4, cos calculation section 5, and quadrant determination section 10, respectively.

以上の処理を10m5ec毎に繰返し、1/2ずつ中間
値を指示目標とし、針を目標とする変化値にスムーズに
近づけて行く。やがて、差値r4がKよりも小さくなる
と、判別部29の判定がYESとなり、この場合には、
差値f4を1/2処理する判別部30の処理をスキップ
し、差値f、に前回のf、−1を加算した今回値f1を
求め、これをメモリ32に記憶し、そのまま最終指示メ
モリとして出力することになる。
The above process is repeated every 10 m5ec, the intermediate value is set as the indicated target by 1/2, and the needle is smoothly brought closer to the target change value. Eventually, when the difference value r4 becomes smaller than K, the judgment of the discriminator 29 becomes YES, and in this case,
The process of the discriminator 30 that processes the difference value f4 by 1/2 is skipped, and the current value f1 is obtained by adding -1 to the difference value f, the previous value f, and this value is stored in the memory 32, and is directly stored in the final instruction memory. It will be output as

次に、今回入力されるパルス信号の周期が非常に大とな
り、つまり周波数が低くなると、立上り検出部21によ
る立上り検出、つまり1周期の検出よりも、リセット後
のlQmsecタイマ22のタイムアツプの方が速くな
り、10m5ecタイマ22がタイムアツプするとフリ
ップフロップ23がセットされ、Q=1となる。一方、
LOmsecタイマ22の出力で転送信号が出されるの
で、カウンタ20はまだ1周期分のクロンク信号をカウ
ントしていなくても、それまでのカウント値を一応1周
期のカウント値であると擬制し、周波数演算部24に入
力し、周波数演算を行い、擬制の今回周波数r正を算出
し、減算部25で前回の周波数と今回の周波数の差値f
4を算出し、メモリ26に記憶する。記憶後、フリップ
フロップ23のQ出力がOであるか否か判別部27で判
別するが、今回はフリップフロップ23がセットされて
いるので、Q=1の出力が出され、判別部28でfdが
0以上であるか否か判別する。差値「4が0以上である
場合は、今回の周波数の方が前回の周波数より大きい場
合であり、この時は、針が0から大なる振れ方向に移動
しているものであり、この場合に々ラント値20がまだ
1周期を数えていないカウント値をもって、周波数演算
を行う時は、目標とする周波数よりもより見掛は土間波
数の大なる「、が求め゛られるため、この場合は、周波
数f4の、処理を無視しメモリ26の記憶部に戻り、今
回の処理を無視する。
Next, when the cycle of the pulse signal input this time becomes very large, that is, the frequency becomes low, the time-up of the lQmsec timer 22 after reset is faster than the rise detection by the rise detection section 21, that is, the detection of one cycle. When the speed increases and the 10m5ec timer 22 times up, the flip-flop 23 is set and Q=1. on the other hand,
Since the transfer signal is output by the output of the LOmsec timer 22, even if the counter 20 has not yet counted one cycle of the clock signal, it assumes that the count value up to that point is the count value of one cycle, and calculates the frequency. The input is input to the calculation unit 24, frequency calculation is performed, the current frequency r positive of the virtual is calculated, and the subtraction unit 25 calculates the difference value f between the previous frequency and the current frequency.
4 is calculated and stored in the memory 26. After storing, the determining unit 27 determines whether or not the Q output of the flip-flop 23 is O. However, since the flip-flop 23 is set this time, an output of Q=1 is output, and the determining unit 28 determines whether the Q output is O or not. It is determined whether or not is greater than or equal to 0. If the difference value "4" is greater than or equal to 0, this means that the current frequency is greater than the previous frequency, and in this case, the needle is moving from 0 in the direction of large deflection. When performing frequency calculations using a count value that has not yet counted one cycle of the Nirunt value 20, a wave number that is apparently larger than the target frequency is calculated, so in this case, , the processing at frequency f4 is ignored, the process returns to the storage section of the memory 26, and the current processing is ignored.

しかし、例えばそれまでの周波数が大であり、入力信号
の周波数が低くなったがために、フリップフロップ23
がセットされた場合には、今回の周波数f!と前回の周
波数fi−1の差値f6は−となる。そのため、判別部
2日における判定はNOとなり、次に、差値r4の絶対
値かに以下であるか否かを判別部29で判別する。差値
f、の絶対値が非常に大きく、つまり、高い周波数から
非常に低い周波数に変化し、針の振れを極端に小さくす
る場合には、差値f4の1/2を新たな[dとし、この
f4を前回の周波数r、−1に加算し、新たな今回周波
数r、とじて、メモリ32に記憶する。なお、この場合
は[4は−であるので、新たな周波数r、は前回の周波
数1.−1よりも周波数が低(、目標とする周波数と前
回の周波数との中間値の周波数がメモリ32に記憶され
、やはり、sin演算部4、cos演算部5及び象限決
定部10に出力される。そして、それぞれ中間値に相当
する電流がトライバ8及び9により、コイルLi%Lc
に流れ、針が前回の高い周波数に対応する振れと、目標
とする低い周波数の指示との中間値を指示するように磁
界が発生する。
However, for example, because the previous frequency was high and the input signal frequency became low, the flip-flop 23
is set, the current frequency f! The difference value f6 between and the previous frequency fi-1 is -. Therefore, the determination made by the determination unit 2 is NO, and then the determination unit 29 determines whether or not the absolute value of the difference value r4 is less than or equal to the absolute value. If the absolute value of the difference value f is very large, that is, if the frequency changes from a high frequency to a very low frequency, and if the runout of the needle is to be extremely small, then 1/2 of the difference value f4 is set as the new [d]. , this f4 is added to the previous frequency r, -1 and stored in the memory 32 as a new current frequency r. Note that in this case, since [4 is -, the new frequency r, is the previous frequency 1. If the frequency is lower than -1 (the frequency that is the intermediate value between the target frequency and the previous frequency is stored in the memory 32, and is also output to the sine calculation section 4, the cosage calculation section 5, and the quadrant determination section 10). Then, the current corresponding to the intermediate value is applied to the coil Li%Lc by the driver 8 and 9.
, and a magnetic field is generated so that the needle indicates an intermediate value between the deflection corresponding to the previous high frequency and the target low frequency indication.

このメモリ32の出力がなされるとともに、やはり10
m5ecタイマ33を経て、10m5ec間隔でメモリ
26の差値faを導出し、判別部27、判別部28、判
別部29の処理を行い、絶対値f。
At the same time as the output of this memory 32 is made, 10
The difference value fa in the memory 26 is derived at 10 m5ec intervals through the m5ec timer 33, and processed by the discriminator 27, the discriminator 28, and the discriminator 29, and the absolute value f is obtained.

が所定値によりも小さくない間は、差値「4に1/2の
演算処理を施し、順次1/2ずつ目標とする振れ角に近
づけていくことになる。
is not smaller than the predetermined value, the difference value "4 is subjected to 1/2 arithmetic processing, and the deflection angle is gradually brought closer to the target deflection angle by 1/2.

(へ)発明の効果 この発明によれば、入力パルス信号の各周期の切換りを
検出する切?Aり検出手段と、この切換り時点から所定
の時間が経過したが否かを判別する時間経過判別手段と
を備え、いずれか早い方の検出あるいは判別出力に応答
して、カウンタのカウント値を導出し、これに応じて周
波数演算を行い、周波数に対応する電流を各ドライバに
流し、針を振らせるものであるから、たとえ周波数が高
い周波数から極端に低い周波数に変化し、カウンタが1
周期分のカウント値に応じ得なくても、取敢えずそれま
でカウントした値でもって仮の出力を導出するものであ
るから、応答性を確保し得るとともに、極端に周波数が
大きく変化する場合には、出力値を直ちに目標とする周
波数に対応するものとせず、前回値と今回値の間に属す
る所定値の振れとなるように順次出力するものであるか
ら、スムーズな、自然な針の振れを得ることができると
いう利点がある。
(f) Effects of the Invention According to this invention, switching of each period of an input pulse signal is detected. It is equipped with an A detection means and a time elapse determination means for determining whether or not a predetermined time has elapsed since the switching point, and in response to the detection or determination output, whichever is earlier, the count value of the counter is changed. The system derives the frequency, calculates the frequency accordingly, and sends a current corresponding to the frequency to each driver to cause the needle to swing. Therefore, even if the frequency changes from a high frequency to an extremely low frequency, the counter will be 1.
Even if it is not possible to respond to the count value for the period, a temporary output is derived from the value counted up to that point, so responsiveness can be ensured, and even if the frequency changes extremely significantly. In this method, the output value does not immediately correspond to the target frequency, but is outputted sequentially so that the deviation is a predetermined value between the previous value and the current value, so a smooth and natural needle movement is achieved. It has the advantage of being able to obtain swing.

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

第1図は、この発明の実施例メータ駆動装置のデータ演
算部の機能構成を示すブロック図、第2図は、この発明
の一実施例を示すメータ駆動装置の概略ブロック図、第
3図は、このメータ装置の2つのコイルと針との関係を
示す図、第4図は、従来のメータ駆動装置の不具合を説
明するための説明図である。 1:入力信号回路、   2:データ演算部、3:基準
クロック発生器、8・9:ドライバ、20:カウンタ、
    21:立上り検出部、22・33:タイマ、 
 25:減算部、29:差値絶対値大小判別部、 31:加算部、     L、−Lc :コイル。 特許出願人     ローム株式会社 代理人  弁理士  中 村 茂 信 第1図 第2図
FIG. 1 is a block diagram showing the functional configuration of a data calculation section of a meter driving device according to an embodiment of the present invention, FIG. 2 is a schematic block diagram of a meter driving device according to an embodiment of the present invention, and FIG. , a diagram showing the relationship between the two coils and the needle of this meter device, and FIG. 4 are explanatory diagrams for explaining the problems of the conventional meter drive device. 1: Input signal circuit, 2: Data calculation unit, 3: Reference clock generator, 8/9: Driver, 20: Counter,
21: Rise detection section, 22/33: Timer,
25: Subtraction section, 29: Difference value absolute value size determination section, 31: Addition section, L, -Lc: Coil. Patent Applicant ROHM Co., Ltd. Agent Patent Attorney Shigeru Nakamura Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] (1)互いに直交する第1、第2のコイルと、入力量に
応じた周波数のパルス信号を入力する手段と、クロック
信号発生手段と、このクロック信号発生手段からのクロ
ック信号をカウントするカウント手段と、このカウント
手段のカウント値に基づいて前記入力量に比例したデジ
タル値を算出する演算手段と、この演算手段から出力さ
れるデジタル値に応じた電流を前記第1、第2のコイル
に流す駆動回路と、前記第1と第2のコイルに電流が流
れることにより発生する磁界によって角度方位が決定さ
れる針とを有し、前記入力量の大きさに比例した値を指
示するためのメータ駆動装置において、 前記パルス信号の各周期の切換りを検出する切換り検出
手段と、この切換り時点から所定の時間が経過したか否
かを判別する時間経過判別手段と、前記周期切換りの検
出あるいは時間経過のいずれか早い方に応答して、前記
演算手段による今回のデジタル値と前回のデジタル値の
差値を算出する差値演算手段と、算出された差値の絶対
値が所定値以上であるか否かを判別する差値大小判別手
段と、差値の絶対値が所定値以上の場合は今回のデジタ
ル値と前回のデジタル値の間にある所定値を今回の出力
デジタル値と決定し、差値の絶対値が所定値より小さい
場合には、今回の算出されたデジタル値を出力デジタル
値と決定する出力値決定手段と、前記差値演算、差値の
大小判別、出力デジタル値の決定の各処理を所定時間毎
に繰返すように制御する繰返し制御手段とを備えたこと
を特徴とするメータ駆動装置。
(1) First and second coils orthogonal to each other, means for inputting a pulse signal with a frequency corresponding to the input amount, a clock signal generating means, and a counting means for counting clock signals from the clock signal generating means. and a calculation means for calculating a digital value proportional to the input amount based on the count value of the counting means, and a current flowing through the first and second coils according to the digital value output from the calculation means. A meter having a drive circuit and a needle whose angular direction is determined by a magnetic field generated by a current flowing through the first and second coils, and for indicating a value proportional to the magnitude of the input amount. In the drive device, a switching detection means for detecting the switching of each period of the pulse signal, a time elapse determination means for determining whether a predetermined time has elapsed from the time of the switching, and a switching detection means for detecting the switching of each period of the pulse signal, difference value calculation means for calculating a difference value between the current digital value and the previous digital value by the calculation means in response to detection or the passage of time, whichever comes first; A difference value size determining means for determining whether the absolute value of the difference value is greater than or equal to a predetermined value, and a predetermined value between the current digital value and the previous digital value as the current output digital value. output value determining means for determining the currently calculated digital value as the output digital value when the absolute value of the difference value is smaller than a predetermined value; 1. A meter driving device comprising: a repetition control means for controlling each process of determining a value to be repeated at predetermined time intervals.
JP23722088A 1988-09-21 1988-09-21 Meter drive Expired - Fee Related JP2742270B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23722088A JP2742270B2 (en) 1988-09-21 1988-09-21 Meter drive

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23722088A JP2742270B2 (en) 1988-09-21 1988-09-21 Meter drive

Publications (2)

Publication Number Publication Date
JPH0285764A true JPH0285764A (en) 1990-03-27
JP2742270B2 JP2742270B2 (en) 1998-04-22

Family

ID=17012161

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23722088A Expired - Fee Related JP2742270B2 (en) 1988-09-21 1988-09-21 Meter drive

Country Status (1)

Country Link
JP (1) JP2742270B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0863382A1 (en) * 1996-06-28 1998-09-09 Nippon Seiki Co., Ltd. Device for driving stepping motor-type instrument

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0863382A1 (en) * 1996-06-28 1998-09-09 Nippon Seiki Co., Ltd. Device for driving stepping motor-type instrument
EP0863382A4 (en) * 1996-06-28 1998-09-23
US5994893A (en) * 1996-06-28 1999-11-30 Nippon Seiki Co., Ltd. Driving apparatus for stepping motor type instrument

Also Published As

Publication number Publication date
JP2742270B2 (en) 1998-04-22

Similar Documents

Publication Publication Date Title
JPH02141670A (en) Meter driving apparatus
CN109502055B (en) Driving control system and method for controlling moment gyroscope outer frame
US4011440A (en) System for generating an angular rate signal from an angular position signal utilizing a constant amplitude-variable carrier phase signal
JPH0285764A (en) Meter drive device
JP2018143085A (en) System and method for controlling motor
US5081403A (en) Error detecting unit of motor rotation control device
JPH0641172Y2 (en) Meter drive
US20050080531A1 (en) Steering angular velocity detecting device
JPH061279B2 (en) Digital speed detector
US5254987A (en) Output signal processing unit of a fluxgate sensor
JPH11291994A (en) Attitude control device for artificial satellite
US20040113624A1 (en) Wheel speed calculation method
JPH02141671A (en) Meter driving apparatus
JPS6218843B2 (en)
JPS61107165A (en) Apparatus for detecting speed of motor
JPS5923196B2 (en) Digital servo system
JP2000247235A (en) Hybrid type train position detecting method
JPS601566A (en) Speed detector
JPH034174A (en) Speed detecting device for vehicle
CN114826039A (en) Control method suitable for electric vehicle motor
JPH06144274A (en) Rear wheel steering angle control system for four-wheel steering vehicle
JPS6321432B2 (en)
JPH05300779A (en) Controlling method for servo motor
JPH0130395B2 (en)
JPH05322909A (en) Rotating-speed detecting apparatus

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees