JPH08292201A - Trigonometric function data transforming circuit and meter device - Google Patents

Trigonometric function data transforming circuit and meter device

Info

Publication number
JPH08292201A
JPH08292201A JP10093195A JP10093195A JPH08292201A JP H08292201 A JPH08292201 A JP H08292201A JP 10093195 A JP10093195 A JP 10093195A JP 10093195 A JP10093195 A JP 10093195A JP H08292201 A JPH08292201 A JP H08292201A
Authority
JP
Japan
Prior art keywords
data
function data
circuit
function
sin
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
JP10093195A
Other languages
Japanese (ja)
Other versions
JP3351654B2 (en
Inventor
Yoshito Nakamura
義人 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics Corp
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 Toshiba Corp, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP10093195A priority Critical patent/JP3351654B2/en
Publication of JPH08292201A publication Critical patent/JPH08292201A/en
Application granted granted Critical
Publication of JP3351654B2 publication Critical patent/JP3351654B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

PURPOSE: To suppress the generated amount of transformation error to the least with a simple circuit configuration when sin function data or cos function data is read out of a ROM in which sin function data is stored. CONSTITUTION: A ROM 30 is provided which is addressed by n bit binary data representing variable in a quadrant among variable range 0-2πradian of trigonometric function, stores the function data, wherein the correspondence relation between the address and sin function data and the correspondence relation between the address and cos function data are symmetrical with respect to an intermediate angle of variable as reference, and outputs a ROM 30 where the function data according to the specified address. And, this device comprises a circuit 20 controlling inversion/non-inversion of logical level of address input according to whether the function data of ROM 30 is read out as sin function data or as con function data, and a circuit 40 which separates the function data read out of the ROM 30 as the sin function data or as cos function data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、三角関数データ変換回
路およびそれを用いたメータ装置に係り、例えば自動車
の速度計、エンジン回転数指示用の回転計などに使用さ
れる。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a trigonometric function data conversion circuit and a meter device using the trigonometric function data conversion circuit.

【0002】[0002]

【従来の技術】自動車のスピードメータやタコメータ
は、速度情報あるいは回転数情報に応じた周波数を持つ
パルス信号が入力し、これを処理して別のデータに変換
する周波数データ変換装置を使用し、この周波数データ
変換装置の出力を用いてメータ指示を制御している。
2. Description of the Related Art An automobile speedometer or tachometer uses a frequency data converter for inputting a pulse signal having a frequency corresponding to speed information or rotational speed information, processing the pulse signal, and converting the data into another data. The meter indication is controlled using the output of this frequency data converter.

【0003】図8は、自動車搭載用のアナログ指針式速
度メータ装置の従来例を示している。 ここで、70は
アナログ指針式メータ本体、80は集積回路化されたメ
ータ制御装置である。
FIG. 8 shows a conventional example of an analog pointer type speedometer device mounted on an automobile. Here, 70 is an analog pointer type meter body, and 80 is a meter control device integrated into a circuit.

【0004】図9は、図8中のメータ本体70の構造を
概略的に示す斜視図である。このアナログ指針式メータ
本体70は、直交するように配設された2つのボビンに
それぞれ対応して巻かれた電磁コイル71、72と、こ
れらに直交する向きに設けられた回転軸73と、この回
転軸73の中間部に取り付けられ、前記ボビン内に配置
された永久磁石74と、上記回転軸73の先端部に取り
付けられ、前記ボビン外に配置された指針75とを具備
する。
FIG. 9 is a perspective view schematically showing the structure of the meter body 70 shown in FIG. This analog pointer type meter main body 70 has electromagnetic coils 71 and 72 wound corresponding to two bobbins arranged so as to be orthogonal to each other, a rotary shaft 73 provided in a direction orthogonal to these, The rotating shaft 73 is provided with a permanent magnet 74 arranged in the middle part thereof and arranged inside the bobbin, and a pointer 75 arranged at the tip of the rotating shaft 73 and arranged outside the bobbin.

【0005】前記メータ制御装置80において、周期カ
ウンタ81は、速度情報に応じた周期を有するパルス信
号(メータ制御信号)が入力し、この周期をカウント
し、周波数量を表わすデータを生成する。
In the meter controller 80, a cycle counter 81 receives a pulse signal (meter control signal) having a cycle corresponding to speed information, counts this cycle, and generates data representing a frequency amount.

【0006】指示角量化データ生成回路82は、上記周
期カウンタ81の出力データの周波数量に応じてメータ
指示角に対応するデジタル量を表わすデータ(指示角量
化データ)を生成する。
The designated angle quantified data generation circuit 82 generates data (indicated angle quantified data) representing a digital amount corresponding to the meter designated angle in accordance with the frequency amount of the output data of the cycle counter 81.

【0007】三角関数データ変換回路83は、前記指示
角量化データ生成回路82の出力データを三角関数デー
タ(SIN、COS)に変換するものであり、SIN関
数データを記憶したsin用のROM(読み出し専用メ
モリ)831とCOS関数データを記憶したcos用の
ROM832とからなる。なお、上記sin用のROM
831、cos用のROM832に代えて、入力データ
をデコードしてSIN関数データおよびCOS関数デー
タを出力するデコーダを用いる場合もある。
The trigonometric function data conversion circuit 83 converts the output data of the indicated angle quantified data generation circuit 82 into trigonometric function data (SIN, COS), and a ROM for sin (read-out) that stores the SIN function data. A dedicated memory) 831 and a cos ROM 832 that stores COS function data. The ROM for the above sin
A decoder that decodes input data and outputs SIN function data and COS function data may be used instead of the ROM 832 for 831 and cos.

【0008】DA変換回路84は、前記三角関数データ
変換回路83の出力データをD/A変換(またはパルス
幅変調;PWM)により電流あるいは電圧に変換する。
メータ駆動回路85は、上記DA変換回路84の出力に
応じた電流量を前記メータ本体70の2つの電磁コイル
71、72に供給する。
The DA conversion circuit 84 converts the output data of the trigonometric function data conversion circuit 83 into a current or a voltage by D / A conversion (or pulse width modulation; PWM).
The meter drive circuit 85 supplies a current amount according to the output of the DA conversion circuit 84 to the two electromagnetic coils 71 and 72 of the meter body 70.

【0009】図10(A)は、前記指示角量化データ生
成回路82における指示角と出力データとの関係を示し
ており、図10(B)は、前記メータ本体70における
指示角と2つの電磁コイル71、72に流す電流量(S
INθ、COSθ)と向きとの関係を示している。上記
電磁コイル71、72により発生する磁界(X、Y)の
ベクトル和に応じて前記永久磁石74の回転位置が駆動
制御されることにより指針75の指示角が定まる。
FIG. 10A shows the relationship between the indicated angle and the output data in the indicated angle quantified data generating circuit 82, and FIG. 10B shows the indicated angle in the meter body 70 and two electromagnetic waves. Amount of current flowing through coils 71 and 72 (S
(IN θ, COS θ) and the orientation are shown. The pointing angle of the pointer 75 is determined by drivingly controlling the rotational position of the permanent magnet 74 according to the vector sum of the magnetic fields (X, Y) generated by the electromagnetic coils 71, 72.

【0010】図11(A)および図11(B)は、図8
中の三角関数データ変換回路を示すブロック図およびそ
の動作例を示すタイミング図である。ところで、上記し
た従来の三角関数データ変換回路83は、sin用、c
os用のROMあるいは2つのデコーダを使用している
ので、コストが高くなるという問題がある。
FIG. 11A and FIG. 11B are the same as FIG.
FIG. 3 is a block diagram showing a trigonometric function data conversion circuit therein and a timing diagram showing an operation example thereof. By the way, the above-mentioned conventional trigonometric function data conversion circuit 83 is for sin, c
Since the os ROM or the two decoders are used, there is a problem that the cost becomes high.

【0011】この問題を解決するために、例えば図12
に示すような三角関数の変数範囲0〜2πラジアンのう
ちの第1象限におけるSIN関数、COS関数の対象性
に着目し、0°〜90°(π/2)までのSIN関数デ
ータを90°〜0°までのCOS関数データとして流用
することにより、SIN関数データを記憶した1つのR
OMをcos用のROMとして兼用することが考えられ
る。
To solve this problem, for example, FIG.
Paying attention to the symmetry of the SIN function and the COS function in the first quadrant of the variable range 0 to 2π radians of the trigonometric function as shown in FIG. One R storing SIN function data by diverting as COS function data up to 0 °
It is possible to use the OM also as a ROM for cos.

【0012】この場合、変数を表わす複数ビットのバイ
ナーリデータにより指定されるアドレスに対応してSI
N関数データを記憶しておき、SIN関数データの読み
出しあるいはCOS関数データの読み出しに応じてアド
レス入力のバイナーリデータの論理レベルの反転/非反
転を制御して関数データの読み出しを行うことが考えら
れる。
In this case, SI is associated with an address designated by a plurality of bits of binary data representing a variable.
It is considered that N function data is stored and the function data is read by controlling the inversion / non-inversion of the logical level of the binary data of the address input according to the reading of the SIN function data or the COS function data. To be

【0013】しかし、例えば4ビットバイナーリデータ
からなるアドレス入力により指定される16ステップの
変数(π/2)×n/16(nは0〜15)に対応する
SIN関数データおよびCOS関数データは、45°
(π/4)を中心にして観察した場合に対象ではない。
However, SIN function data and COS function data corresponding to 16-step variables (π / 2) × n / 16 (n is 0 to 15) designated by an address input consisting of 4-bit binary data are, for example, , 45 °
It is not a target when observed around (π / 4).

【0014】即ち、4ビットのアドレス入力が例えば
(0000)=0°の場合、SIN関数データの読み出
し時にはアドレス入力が反転しないとすると、SIN0
°のデータが読み出される。これに対して、COS関数
データの読み出し時にはアドレス入力が反転して(11
11)=90°×15/16になり、COS(90°×
15/16)のデータ(COS90°のデータではな
い)が読み出されるので、アドレス入力の1LSB分で
ある90°×1/16に対応する関数データの変換誤差
が生じる。
That is, when the 4-bit address input is (0000) = 0 °, for example, assuming that the address input is not inverted when reading the SIN function data, SIN0
The ° data is read. On the other hand, when reading COS function data, the address input is inverted (11
11) = 90 ° × 15/16, and COS (90 ° ×
Since (15/16) data (not COS 90 ° data) is read, a conversion error occurs in the function data corresponding to 90 ° × 1/16 which is 1 LSB of the address input.

【0015】上記したように関数データの変換誤差が発
生すると、メータの指示誤差が発生するので、1つのR
OMをSIN用およびCOS用のROMとして兼用する
には回路的な工夫が必要になる。
When a conversion error of the function data occurs as described above, an error in the meter indication occurs, so that one R
To use the OM as the ROM for SIN and COS, it is necessary to devise a circuit.

【0016】[0016]

【発明が解決しようとする課題】上記したように従来の
三角関数データ変換回路およびそれを用いたメータ装置
は、SIN関数データあるいはCOS関数データを記憶
した1つのROMをSIN用およびCOS用のROMと
して兼用する場合に、一方の関数データを他方の関数デ
ータとして単純に流用したのでは三角関数データの変換
誤差が発生するという問題があった。
As described above, in the conventional trigonometric function data conversion circuit and the meter device using the same, one ROM storing SIN function data or COS function data is a ROM for SIN and COS. However, if one function data is simply used as the other function data, a conversion error of the trigonometric function data may occur.

【0017】本発明は上記の問題点を解決すべくなされ
たもので、SIN関数データあるいはCOS関数データ
を記憶した1つのROMをSIN用およびCOS用のR
OMとして兼用して一方の関数データを他方の関数デー
タとして読み出す場合に、関数データの変換誤差の発生
量を極力抑制でき、コストダウンを図り得る三角関数デ
ータ変換回路およびそれを用いたメータ装置を提供する
ことを目的とする。
The present invention has been made to solve the above problems, and one ROM storing SIN function data or COS function data is used as an R for SIN and COS.
A trigonometric data conversion circuit and a meter device using the trigonometric data conversion circuit, which can suppress the generation amount of conversion error of the function data as much as possible when the one function data is also read as the other function data as the OM, can be achieved. The purpose is to provide.

【0018】[0018]

【課題を解決するための手段】本発明の三角関数データ
変換回路は、三角関数の変数範囲0〜2πラジアンのう
ちの1つの象限における変数を表わす複数(n)ビット
のバイナーリデータにより指定される入力に対応して、
上記1つの象限における変数の中間角を基準にして対象
になるようなSIN関数データおよびCOS関数データ
のうちの一方を出力するデータ出力回路と、上記データ
出力回路からSIN関数データを読み出すかCOS関数
データを読み出すかに応じてバイナーリデータ入力の論
理レベルの反転/非反転を制御して上記データ出力回路
に入力する入力反転制御回路と、前記データ出力回路か
ら読み出された関数データを上記入力反転制御回路にお
ける切換制御に対応してSIN関数データあるいはCO
S関数データとして分離するSIN・COS分離回路と
を具備することを特徴とする。
A trigonometric function data conversion circuit of the present invention is designated by a plurality (n) -bit binary data representing a variable in one quadrant of a variable range of a trigonometric function of 0 to 2π radians. Corresponding to the input
A data output circuit that outputs one of SIN function data and COS function data that is targeted based on the intermediate angle of the variable in the one quadrant, and a COS function that reads the SIN function data from the data output circuit. An input inversion control circuit that controls the inversion / non-inversion of the logic level of the binary data input according to whether data is read and inputs the data to the data output circuit, and the function data read from the data output circuit is input to the input circuit. Corresponding to the switching control in the inversion control circuit, SIN function data or CO
And a SIN / COS separation circuit for separating as S function data.

【0019】さらに、前記データ出力回路の読み出しサ
イクルの一定間隔毎に入力に対して所定量の補正を行う
ことにより、ある入力に対応して前記データ出力回路か
ら複数回読み出された関数データの平均値を理論角に対
応して読み出される関数データに近付けるアドレス入力
補正回路を具備することが望ましい。
Further, by correcting the input by a predetermined amount at regular intervals of the read cycle of the data output circuit, the function data read from the data output circuit a plurality of times corresponding to a certain input is It is desirable to provide an address input correction circuit that brings the average value closer to the function data read corresponding to the theoretical angle.

【0020】[0020]

【作用】データ出力回路として例えばROMを使用する
場合には、バイナーリデータによりアドレスが指定さ
れ、アドレスとSIN関数データとの対応関係およびア
ドレスとCOS関数データとの対応関係が上記1つの象
限における変数の中間角を基準にして対象になるような
SIN関数データおよびCOS関数データのうちの一方
を記憶しておき、指定アドレスに応じて上記関数データ
を出力する。
When, for example, a ROM is used as the data output circuit, an address is designated by the binary data, and the correspondence relationship between the address and the SIN function data and the correspondence relationship between the address and the COS function data are in the one quadrant. One of the SIN function data and the COS function data to be targeted with reference to the intermediate angle of the variable is stored, and the function data is output according to the designated address.

【0021】この場合、nビットのアドレス入力により
指定されるSIN関数あるいはCOS関数の変数範囲9
0°を2n分割した角度毎に、分割した最小角の1/2
の量を加算した角度に対応するSIN関数データあるい
はCOS関数データを記憶した1つのROMをSIN用
およびCOS用のROMとして兼用し、アドレス入力の
反転制御を行うことにより一方の関数データを他方の関
数データとして読み出すことにより、アドレス入力とS
IN関数データとの対応関係およびアドレス入力とCO
S関数データとの対応関係が変数の中間角を基準にして
対象になるようなほぼ正確な関数データを読み出すこと
が可能になる。しかも、このために必要な回路構成は簡
単であり、コストダウンを図ることができる。また、ア
ドレス入力補正回路を付加することにより、関数データ
の変換誤差の発生量を極力抑制することができる。
In this case, the variable range 9 of the SIN function or the COS function designated by the n-bit address input
1/2 of the minimum divided angle for every 0 ° divided into 2 n
One ROM that stores the SIN function data or COS function data corresponding to the angle obtained by adding the amount of is also used as the SIN ROM and the COS ROM, and one function data is transferred to the other by performing the address input inversion control. By reading as function data, address input and S
Correspondence with IN function data and address input and CO
It becomes possible to read out almost accurate function data whose correspondence with the S function data is targeted with reference to the intermediate angle of the variable. Moreover, the circuit configuration required for this is simple, and the cost can be reduced. Further, by adding the address input correction circuit, it is possible to suppress the generation amount of the conversion error of the function data as much as possible.

【0022】[0022]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。図1は、本発明の三角関数データ変換回路
の第1実施例を示している。この三角関数データ変換回
路は、アドレス入力反転制御回路20と、1つのROM
30と、SIN・COS分離回路40とを具備する。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 shows a first embodiment of the trigonometric function data conversion circuit of the present invention. This trigonometric function data conversion circuit includes an address input inversion control circuit 20 and one ROM.
30 and a SIN / COS separation circuit 40.

【0023】上記ROM30は、三角関数の変数範囲0
〜2πラジアンのうちの1つの象限(本例では第1象
限)における変数を表わす複数(n)ビットのバイナー
リデータにより指定されるアドレスに対応してSIN関
数データおよびCOS関数データのうちの一方を記憶し
ておき、指定アドレスに応じて上記関数データを出力す
るものである。
The ROM 30 has a variable range 0 for trigonometric functions.
One of SIN function data and COS function data corresponding to an address designated by a plurality of (n) -bit binary data representing a variable in one quadrant (upper quadrant in this example) of 2π radians Is stored and the above function data is output according to the designated address.

【0024】この場合、上記ROM30は、図2に示す
ように、アドレス(変数)とSIN関数データとの対応
関係およびアドレスとCOS関数データとの対応関係が
変数の中間角(本例では45°)を基準にして対象にな
るようなほぼ正確な関数データを記憶している。
In this case, in the ROM 30, as shown in FIG. 2, the correspondence relationship between the address (variable) and the SIN function data and the correspondence relationship between the address and the COS function data are variable intermediate angles (45 ° in this example). ) Is stored as a reference for almost accurate function data.

【0025】即ち、SIN関数データを記憶しておく場
合には、SIN{90°×(N/2n)+90°×(1
/2n)×(1/2)}に比例したデータを記憶してお
き、COS関数データを記憶しておく場合には、COS
{90°×(N/2n)+90°×(1/2n)×(1/
2)}に比例したデータを記憶しておく。
That is, when SIN function data is stored, SIN {90 ° × (N / 2 n ) + 90 ° × (1
/ 2 n ) × (1/2)} is stored in advance, and the COS function data is stored in the COS function data.
{90 ° × (N / 2 n ) + 90 ° × (1/2 n ) × (1 /
2)} is stored.

【0026】ここで、n=4の場合の記憶データは、 SIN{90°×N/2n+90°×(1/2n)×(1/2)} =SIN{90°×N/16+45°/16} ……(1) COS{90°×N/2n+90°×(1/2n)×(1/2)} =COS{90°×N/16+45°/16} ……(2) である。 つまり、図2に示した関数データは、nビッ
トのアドレス入力により指定されるSIN関数あるいは
COS関数の変数範囲90°を2n分割した角度毎に、
分割した最小角(アドレス入力の1LSBの角度=90
°/2n)の1/2の量を加算した角度に対応するSI
N関数データあるいはCOS関数データである。
Here, the stored data in the case of n = 4 is: SIN {90 ° × N / 2 n + 90 ° × (1/2 n ) × (1/2)} = SIN {90 ° × N / 16 + 45 ° / 16} ...... (1) COS {90 ° × N / 2 n + 90 ° × (1/2 n ) × (1/2)} = COS {90 ° × N / 16 + 45 ° / 16} ...... ( 2) That is, the function data shown in FIG. 2 is obtained by dividing the variable range 90 ° of the SIN function or the COS function specified by the n-bit address input into 2 n angles,
Divided minimum angle (angle of 1 LSB of address input = 90
SI corresponding to the angle obtained by adding 1/2 the amount of ° / 2 n ).
It is N function data or COS function data.

【0027】これにより、 SIN{90°× N/16+45°×/16} =COS{90°×(15−N)/16+45°×/16} となる。As a result, SIN {90 ° × N / 16 + 45 ° × / 16} = COS {90 ° × (15−N) / 16 + 45 ° × / 16}.

【0028】なお、本例では、ROM30はSIN関数
データを記憶しているものとする。また、上記ROM3
0に代えて、他の記憶手段とか、入力データをデコード
して上記したようなSIN関数データおよびCOS関数
データを出力するデコーダを用いることも可能である。
In this example, the ROM 30 is assumed to store SIN function data. In addition, the ROM3
Instead of 0, it is also possible to use other storage means or a decoder that decodes input data and outputs the SIN function data and COS function data as described above.

【0029】前記アドレス入力反転制御回路20は、上
記ROM30に記憶された関数データをSIN関数デー
タとして読み出すかCOS関数データとして読み出すか
に応じてアドレス入力のバイナーリデータの論理レベル
の反転/非反転を制御するものである。
The address input inversion control circuit 20 inverts / non-inverts the logic level of the binary data of the address input according to whether the function data stored in the ROM 30 is read out as SIN function data or COS function data. Is to control.

【0030】上記アドレス入力反転制御回路20の一具
体例としては、図3に示すように、アドレス入力を排他
的オアゲート回路21群の各一方の入力端に入力し、S
IN関数データとして読み出すかCOS関数データとし
て読み出すかを指定するための切換制御信号c/sを上
記排他的オアゲート回路21群の各他方の入力端に入力
し、上記排他的オアゲート回路21群の各出力を前記R
OM30に入力するように構成されている。
As a concrete example of the address input inversion control circuit 20, as shown in FIG. 3, an address input is inputted to each one input terminal of the exclusive OR gate circuit group 21, and S
A switching control signal c / s for designating whether to read as IN function data or COS function data is input to each of the other input terminals of the exclusive OR gate circuit group 21, and each of the exclusive OR gate circuit group 21 is input. The output is R
It is configured to input to the OM 30.

【0031】SIN・COS分離回路40は、上記切換
制御信号c/sによる切換制御に対応して前記ROM3
0から読み出された関数データをSIN関数データある
いはCOS関数データとして分離するものであり、上記
切換制御信号c/sにより制御される。
The SIN / COS separation circuit 40 corresponds to the switching control by the switching control signal c / s, and the ROM 3
The function data read from 0 is separated as SIN function data or COS function data, and is controlled by the switching control signal c / s.

【0032】なお、上記アドレス入力反転制御回路20
およびSIN・COS分離回路40は、ROM30と同
一チップ上に形成しても別チップに形成してもよい。図
4は、図1の三角関数データ変換回路における各部の動
作例のタイミングを示している。
The address input inversion control circuit 20 described above is used.
The SIN / COS separation circuit 40 may be formed on the same chip as the ROM 30 or on a different chip. FIG. 4 shows the timing of an operation example of each part in the trigonometric function data conversion circuit of FIG.

【0033】上記第1実施例の三角関数データ変換回路
によれば、nビットのアドレス入力により指定されるS
IN関数あるいはCOS関数の変数範囲90°を2n
割した角度毎に、分割した最小角の1/2の量を加算し
た角度に対応するSIN関数データを記憶した1つのR
OM30をSIN用およびCOS用のROMとして兼用
し、アドレス入力の反転制御を行うことにより一方の関
数データを他方の関数データとして読み出すことによ
り、アドレス入力とSIN関数データとの対応関係およ
びアドレス入力とCOS関数データとの対応関係が変数
の中間角45°を基準にして対象になるようなほぼ正確
な関数データを読み出すことが可能になる。しかも、こ
のために必要な回路構成は簡単であり、コストダウンを
図ることができる。
According to the trigonometric function data conversion circuit of the first embodiment, the S specified by the n-bit address input.
One R that stores SIN function data corresponding to an angle obtained by adding 1/2 of the divided minimum angle for each angle obtained by dividing the variable range 90 ° of the IN function or the COS function by 2 n
The OM 30 is also used as a ROM for SIN and COS, and by performing inversion control of the address input, one function data is read out as the other function data, and the correspondence relationship between the address input and the SIN function data and the address input. It becomes possible to read out almost accurate function data whose correspondence relationship with the COS function data is the target on the basis of the intermediate angle of the variable of 45 °. Moreover, the circuit configuration required for this is simple, and the cost can be reduced.

【0034】前記ROM30から図2に示した関数デー
タが読み出された場合には、アドレス入力(横軸)と関
数データ(縦軸)との対応関係がSIN関数変数あるい
はCOS関数の変数の理論角に対してアドレス入力の1
LSBの1/2だけ、つまり、90°×(1/2n)×
(1/2)だけずれている(加算されている)ことに伴
って変換誤差が含まれる。この点を解決するための第2
実施例を以下に示す。
When the function data shown in FIG. 2 is read from the ROM 30, the correspondence between the address input (horizontal axis) and the function data (vertical axis) is the theory of the SIN function variable or the COS function variable. 1 for entering an address for a corner
½ of LSB, that is, 90 ° × (1/2 n ) ×
A conversion error is included due to the shift (addition) by (1/2). Second to solve this point
An example is shown below.

【0035】図5(A)は、本発明の三角関数データ変
換回路の第2実施例を示している。この三角関数データ
変換回路は、前記変換誤差を補正するために、第1実施
例の三角関数データ変換回路の入力側にアドレス入力補
正回路10が付加された点が異なり、その他は図1中と
同一符号を付している。
FIG. 5A shows a second embodiment of the trigonometric function data conversion circuit of the present invention. This trigonometric function data conversion circuit is different in that an address input correction circuit 10 is added to the input side of the trigonometric function data conversion circuit of the first embodiment in order to correct the conversion error. The same reference numerals are attached.

【0036】上記アドレス入力補正回路10は、ROM
30から関数データを繰り返し読み出す際に、読み出し
サイクルの一定間隔毎(2サイクル毎)にアドレス入力
に対して所定量の補正を行う(本例では−90°×/2
nを加算する)ことにより、あるアドレス入力に対応し
てROM30から複数回読み出された関数データの平均
値を、理論角に対応してROM30から読み出される関
数データに近付けるものである。
The address input correction circuit 10 is a ROM
When repeatedly reading the function data from 30, the address input is corrected by a predetermined amount at regular intervals (every two cycles) of the read cycle (in this example, −90 ° × / 2).
By adding n ), the average value of the function data read from the ROM 30 a plurality of times corresponding to a certain address input is brought closer to the function data read from the ROM 30 corresponding to the theoretical angle.

【0037】即ち、ある読み出しサイクルで読み出され
た関数データは90°×(1/2n)×(1/2)のず
れに対応する変換誤差が含まれるとしても、次の読み出
しサイクルで読み出された関数データは−90°×/2
nのずれに対応する変換誤差が含まれる。
That is, even if the function data read in a certain read cycle includes a conversion error corresponding to a shift of 90 ° × (1/2 n ) × (1/2), it is read in the next read cycle. The issued function data is -90 ° x / 2
The conversion error corresponding to the shift of n is included.

【0038】これにより、上記2つのアドレス入力に各
対応して読み出された関数データの平均値をとる処理
(例えば読み出された関数データをDAした後に積分す
る処理)を行えば、結果的に変換誤差がほぼなくなるも
のとみなせる。
As a result, if the process of taking the average value of the function data read corresponding to the above two address inputs (for example, the process of DA after the read function data is integrated) is performed, It can be considered that the conversion error is almost eliminated.

【0039】上記アドレス入力補正回路10の一具体例
としては、アドレス入力を加算回路11の一方の入力端
Aに入力し、読み出しサイクル毎に交互に0または−1
を上記加算回路11の他方の入力端Bに入力し、上記加
算回路11の出力D(=D0〜D3)を前記排他的オア
ゲート回路21群の各一方の入力端に入力するように構
成されている。なお、上記アドレス入力補正回路10
は、アドレス入力反転制御回路20と同一チップ上に形
成しても別チップに形成してもよい。
As a specific example of the address input correction circuit 10, the address input is input to one input terminal A of the adder circuit 11, and 0 or -1 is alternately applied every read cycle.
Is input to the other input terminal B of the adder circuit 11, and the output D (= D0 to D3) of the adder circuit 11 is input to each one input terminal of the exclusive OR gate circuit group 21. There is. The address input correction circuit 10
May be formed on the same chip as the address input inversion control circuit 20 or on a different chip.

【0040】図5(B)は、図5(A)の三角関数デー
タ変換回路における各部の動作例を示している。上記第
2実施例の三角関数データ変換回路においても、前記第
1実施例の三角関数データ変換回路と同様に、nビット
のアドレス入力により指定されるSIN関数あるいはC
OS関数の変数範囲90°を2n分割した角度毎に、分
割した最小角の1/2の量を加算した角度に対応するS
IN関数データあるいはCOS関数データを記憶した1
つのROMをSIN用およびCOS用のROM30とし
て兼用し、アドレス入力の反転制御を行うことにより一
方の関数データを他方の関数データとして読み出すこと
により、アドレス入力とSIN関数データとの対応関係
およびアドレス入力とCOS関数データとの対応関係が
変数の中間角45°を基準にして対象になるようなほぼ
正確な関数データを読み出すことが可能になる。しか
も、アドレス入力補正回路10を付加しているので、関
数データの変換誤差の発生量を極力抑制することができ
る。
FIG. 5B shows an operation example of each part in the trigonometric function data conversion circuit of FIG. 5A. In the trigonometric function data conversion circuit of the second embodiment, as in the trigonometric function data conversion circuit of the first embodiment, the SIN function or C specified by the n-bit address input is used.
S corresponding to the angle obtained by adding 1/2 of the divided minimum angle for each angle obtained by dividing the variable range 90 ° of the OS function by 2 n
1 that stores IN function data or COS function data
One ROM is also used as the ROM 30 for SIN and COS, and by performing the inversion control of the address input, one function data is read as the other function data, and the correspondence relationship between the address input and the SIN function data and the address input. It becomes possible to read out almost accurate function data such that the correspondence between the COS function data and the COS function data is the target with reference to the intermediate angle of the variable of 45 °. Moreover, since the address input correction circuit 10 is added, the generation amount of the conversion error of the function data can be suppressed as much as possible.

【0041】図6は、上記第2実施例の三角関数データ
変換回路において、補正前のアドレス入力(理論上の入
力角)、補正後のアドレス入力(実際の入力角θ)、S
IN関数データ、COS関数データ、θt=tan
-1(SINθ/COSθ)、変換誤差(θt−θ)の対
応関係を検証した結果を示している。
FIG. 6 shows an address input before correction (theoretical input angle), an address input after correction (actual input angle θ), and S in the trigonometric function data conversion circuit of the second embodiment.
IN function data, COS function data, θt = tan
-1 (SINθ / COSθ) and the conversion error (θt−θ) are shown as verification results.

【0042】さらに、上記各実施例において、例えば8
ビットのアドレス入力のうち、上位2ビットがSIN関
数あるいはCOS関数の変数範囲のうちの1つの象限を
指定するための象限指定データであり、残りの下位ビッ
トが上記1つの象限内の変数を指定するためのデータで
ある場合には、前記ROMから読み出された関数データ
の極性(+−)を前記象限指定データに応じて処理する
極性処理回路を前記SIN・COS分離回路の出力側に
付加することが可能である。
Further, in each of the above embodiments, for example, 8
Of the bit address inputs, the upper 2 bits are quadrant designating data for designating one quadrant in the variable range of the SIN function or the COS function, and the remaining lower bits designate the variables in the one quadrant. In the case of the data for executing the above, a polarity processing circuit for processing the polarity (+-) of the function data read from the ROM according to the quadrant designating data is added to the output side of the SIN / COS separation circuit. It is possible to

【0043】即ち、第1象限が指定されている場合に
は、ROMから読み出された関数データの極性を+とし
て処理する。また、第2象限が指定されている場合に
は、ROMからSIN関数データとして読み出されたデ
ータの極性を+として処理し、COS関数のデータとし
て読み出されたデータの極性を−として処理する。ま
た、第3象限が指定されている場合には、ROMから読
み出された関数データの極性を−として処理する。ま
た、第4象限が指定されている場合には、ROMからS
IN関数データとして読み出されたデータの極性を−と
して処理し、COS関数のデータとして読み出されたデ
ータの極性を+として処理する。
That is, when the first quadrant is designated, the polarity of the function data read from the ROM is processed as +. When the second quadrant is specified, the polarity of the data read from the ROM as the SIN function data is processed as +, and the polarity of the data read as the COS function data is processed as the −. . When the third quadrant is specified, the polarity of the function data read from the ROM is processed as-. If the fourth quadrant is specified, the S
The polarity of the data read as the IN function data is processed as −, and the polarity of the data read as the data of the COS function is processed as +.

【0044】なお、前記極性処理回路は、ROMから読
み出された関数データに対してデジタル的に処理するこ
とも可能であるが、ROMから読み出されたデータを例
えばDA変換してメータ駆動回路に印加する場合の印加
極性を制御するなどのように間接的に処理することも可
能である。又はROMの代わりにデコーダにて三角関数
を出力するさせるようにしても良い。
Although the polarity processing circuit can digitally process the function data read from the ROM, the data read from the ROM is DA converted, for example, to perform meter driving circuit. It is also possible to indirectly process such as controlling the applied polarity when applied to the. Alternatively, the trigonometric function may be output by a decoder instead of the ROM.

【0045】図7(A)は、本発明の三角関数データ変
換回路を車載用のスピードメータあるいはタコメータな
どに適用したメータ装置の一例のブロック構成を示す。
図7(A)において、アナログ指針式のメータ本体70
は、図9に示したように、直交するように配設された2
つの電磁コイルに流れる電流により発生する磁界のベク
トル和に応じて指針の指示角が定まるように構成されて
いる。
FIG. 7A shows a block configuration of an example of a meter device in which the trigonometric function data conversion circuit of the present invention is applied to a vehicle-mounted speedometer or tachometer.
In FIG. 7 (A), an analog pointer type meter body 70
2 are arranged so as to be orthogonal to each other as shown in FIG.
The pointing angle of the pointer is determined according to the vector sum of the magnetic fields generated by the currents flowing through the one electromagnetic coil.

【0046】デジタルデータ処理回路76は、メータ指
示対象となる情報に応じた周期を有するパルス信号が入
力し、このパルス信号の周期に応じたメータ指示角量を
有するバイナリーデータに変換するものである。
The digital data processing circuit 76 receives a pulse signal having a cycle corresponding to the information to be metered and converts it into binary data having a metering angle amount corresponding to the cycle of the pulse signal. .

【0047】上記デジタルデータ処理回路76におい
て、周期カウンタ81は、速度情報に応じた周期を有す
るパルス信号(メータ制御信号)が入力し、この周期を
カウントし、周波数量を表わすデータを生成する。指示
角量化データ生成回路82は、上記周期カウンタ81の
出力データの周波数量に応じてメータ指示角に対応する
デジタル量を表わすデータ(指示角量化データ)を生成
する。
In the digital data processing circuit 76, the cycle counter 81 receives a pulse signal (meter control signal) having a cycle corresponding to speed information, counts this cycle, and generates data representing a frequency amount. The designated angle quantified data generation circuit 82 generates data (indicated angle quantified data) representing a digital amount corresponding to the meter designated angle in accordance with the frequency amount of the output data of the cycle counter 81.

【0048】三角関数データ変換回路77は、上記デジ
タルデータ処理回路76により得られたバイナリーデー
タに応じて前記指針の指示角を指定するためのSIN、
COSの三角関数データに変換するものであり、図5
(A)を参照して前述したような実施例の構成を有す
る。
The trigonometric function data conversion circuit 77, SIN for designating the pointing angle of the pointer according to the binary data obtained by the digital data processing circuit 76,
The data is converted into COS trigonometric function data, as shown in FIG.
It has the configuration of the embodiment as described above with reference to FIG.

【0049】DA変換回路(またはPWM回路)84
は、上記三角関数データ変換回路77から出力するSI
N関数データおよびCOS関数データをD/A変換(ま
たはPWM)により電流あるいは電圧に変換する。
DA conversion circuit (or PWM circuit) 84
Is the SI output from the trigonometric function data conversion circuit 77.
The N function data and the COS function data are converted into current or voltage by D / A conversion (or PWM).

【0050】メータ駆動回路85は、上記DA変換回路
(またはPWM回路)84の出力に応じた電流量(つま
り、前記SIN関数データおよびCOS関数データに応
じた電流量)を前記メータ本体70の2つの電磁コイル
71、72に供給する。
The meter drive circuit 85 outputs a current amount corresponding to the output of the DA conversion circuit (or PWM circuit) 84 (that is, a current amount corresponding to the SIN function data and the COS function data) to the meter main unit 70. The electromagnetic coils 71 and 72 are supplied.

【0051】図7(B)は、本発明の三角関数データ変
換回路を車載用の燃料メータあるいは温度メータなどに
適用したメータ装置の一例のブロック構成を示す。図7
(B)に示すメータ装置は、図7(A)に示したメータ
装置と比べて、デジタルデータ処理回路76に代えてア
ナログデータ処理回路78が用いられている点が異な
り、その他は同じであるので図7(A)中と同一符号を
付している。上記アナログデータ処理回路78は、メー
タ指示対象となる情報に応じたレベルを有するアナログ
信号が入力し、このアナログ信号のレベルに応じたメー
タ指示角量を有するバイナリーデータに変換するもので
ある。
FIG. 7B shows a block configuration of an example of a meter device in which the trigonometric function data conversion circuit of the present invention is applied to an on-vehicle fuel meter or temperature meter. Figure 7
The meter device shown in FIG. 7B is different from the meter device shown in FIG. 7A in that an analog data processing circuit 78 is used instead of the digital data processing circuit 76, and the other parts are the same. Therefore, the same reference numerals as those in FIG. The analog data processing circuit 78 receives an analog signal having a level corresponding to the information to be metered and converts it into binary data having a metering angle amount corresponding to the level of the analog signal.

【0052】なお、この発明は上記実施例に限定される
ものではなく種々の変形が可能であることはいうまでも
ない。例えばメータ本体としてステッピングモータを利
用したものもあり、このステッピングモータを利用した
メータ本体においても上記と同様な制御方式で制御が可
能である。
It is needless to say that the present invention is not limited to the above embodiment and various modifications can be made. For example, there is a meter main body using a stepping motor, and the meter main body using this stepping motor can also be controlled by the same control method as described above.

【0053】[0053]

【発明の効果】上述したように本発明の三角関数データ
変換回路およびそれを用いたメータ装置によれば、SI
N関数データあるいはCOS関数データを記憶した1つ
のROMをSIN用およびCOS用のROMとして兼用
して一方の関数データを他方の関数データとして読み出
す場合に、簡単な回路構成でコストダウンを図ると共に
関数データの変換誤差の発生量を極力抑制することがで
きる。
As described above, according to the trigonometric function data conversion circuit of the present invention and the meter device using the same, the SI
When one ROM storing N function data or COS function data is also used as a ROM for SIN and COS and one function data is read out as the other function data, the cost can be reduced and the function can be achieved by a simple circuit configuration. The amount of data conversion error generated can be suppressed as much as possible.

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

【図1】本発明の三角関数データ変換回路の一実施例を
示すブロック図。
FIG. 1 is a block diagram showing an embodiment of a trigonometric function data conversion circuit of the present invention.

【図2】図1中のROMに入力するアドレスとSIN関
数データとの対応関係およびアドレスとCOS関数デー
タとの対応関係を説明するために示す図。
FIG. 2 is a diagram for explaining a correspondence relationship between an address input to a ROM in FIG. 1 and SIN function data and a correspondence relationship between an address and COS function data.

【図3】図1中のアドレス入力反転制御回路の一具体例
を示す回路図。
FIG. 3 is a circuit diagram showing a specific example of an address input inversion control circuit in FIG.

【図4】図1の三角関数データ変換回路における各部の
動作例を示すタイミング図。
FIG. 4 is a timing diagram showing an operation example of each unit in the trigonometric function data conversion circuit of FIG.

【図5】本発明の三角関数データ変換回路の第2実施例
を示すブロック図および各部の動作例を示すタイミング
図。
FIG. 5 is a block diagram showing a second embodiment of the trigonometric function data conversion circuit of the present invention and a timing chart showing an operation example of each unit.

【図6】図5の三角関数データ変換回路における変換誤
差を検証した結果を示す図。
6 is a diagram showing a result of verifying a conversion error in the trigonometric function data conversion circuit of FIG.

【図7】本発明の三角関数データ変換回路の応用例に係
るメータ装置の相異なる例を示すブロック図。
FIG. 7 is a block diagram showing a different example of a meter device according to an application example of the trigonometric function data conversion circuit of the present invention.

【図8】自動車搭載用のアナログ指針式速度メータ装置
の従来例を示すブロック図。
FIG. 8 is a block diagram showing a conventional example of an analog pointer type speedometer device mounted on an automobile.

【図9】図8中のメータ本体の構造を概略的に示す斜視
図。
9 is a perspective view schematically showing the structure of a meter body in FIG.

【図10】図8中の指示角量化データ生成回路における
指示角と出力データとの関係および図8中のメータ本体
における指示角と電磁コイルに流す電流量と向きとの関
係を示す特性図。
10 is a characteristic diagram showing a relationship between a pointing angle and output data in the pointing angle quantified data generation circuit in FIG. 8 and a relationship between a pointing angle in the meter body in FIG. 8 and a current amount and direction to flow in an electromagnetic coil.

【図11】図8中の三角関数データ変換回路を示すブロ
ック図およびその動作例を示すタイミング図。
11 is a block diagram showing a trigonometric function data conversion circuit in FIG. 8 and a timing diagram showing an operation example thereof.

【図12】図8中の三角関数データ変換回路の変形例と
してSIN関数データを記憶した1つのROMをCOS
用のROMとして兼用する場合におけるSIN関数、C
OS関数の対象性を説明するために示す図。
FIG. 12 shows one ROM that stores SIN function data as a modification of the trigonometric function data conversion circuit in FIG.
SIN function, C when it is also used as a ROM for
The figure shown in order to demonstrate the symmetry of an OS function.

【符号の説明】[Explanation of symbols]

10…アドレス入力補正回路、11…加算回路、20…
アドレス入力反転制御回路、30…ROM、40…SI
N・COS分離回路、70…アナログ指針式のメータ本
体、71、72…電磁コイル、73…回転軸、74…永
久磁石、75…指針、76…デジタルデータ処理回路、
77…三角関数データ変換回路、78…アナログデータ
処理回路、81…周期カウンタ、82…指示角量化デー
タ生成回路、85…メータ駆動回路。
10 ... Address input correction circuit, 11 ... Addition circuit, 20 ...
Address input inversion control circuit, 30 ... ROM, 40 ... SI
N / COS separation circuit, 70 ... Analog main body of meter, 71, 72 ... Electromagnetic coil, 73 ... Rotating shaft, 74 ... Permanent magnet, 75 ... Pointer, 76 ... Digital data processing circuit,
Reference numeral 77 ... Trigonometric function data conversion circuit, 78 ... Analog data processing circuit, 81 ... Cycle counter, 82 ... Indication angle quantified data generation circuit, 85 ... Meter drive circuit.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 三角関数の変数範囲0〜2πラジアンの
うちの1つの象限における変数を表わす複数(n)ビッ
トのバイナーリデータにより指定される入力に対応し
て、上記1つの象限における変数の中間角を基準にして
対象になるようなSIN関数データおよびCOS関数デ
ータのうちの一方を出力するデータ出力回路と、上記デ
ータ出力回路からSIN関数データを読み出すかCOS
関数データを読み出すかに応じてバイナーリデータ入力
の論理レベルの反転/非反転を制御して上記データ出力
回路に入力する入力反転制御回路と、前記データ出力回
路から読み出された関数データを上記入力反転制御回路
における切換制御に対応してSIN関数データあるいは
COS関数データとして分離するSIN・COS分離回
路とを具備することを特徴とする三角関数データ変換回
路。
1. A variable in one quadrant corresponding to an input designated by a plurality (n) -bit binary data representing a variable in one quadrant of a variable range 0 to 2π radians of a trigonometric function. A data output circuit that outputs one of the target SIN function data and COS function data based on the intermediate angle, and whether the SIN function data is read from the data output circuit.
An input inversion control circuit that controls the inversion / non-inversion of the logic level of the binary data input according to whether to read the function data and inputs the data to the data output circuit, and the function data read from the data output circuit as described above. A trigonometric function data conversion circuit comprising: a SIN / COS separation circuit that separates as SIN function data or COS function data corresponding to switching control in an input inversion control circuit.
【請求項2】 請求項1記載の三角関数データ変換回路
において、前記データ出力回路は、前記バイナーリデー
タにより指定されるアドレスに対応してSIN関数デー
タおよびCOS関数データのうちの一方として、アドレ
スとSIN関数データとの対応関係およびアドレスとC
OS関数データとの対応関係が上記1つの象限における
変数の中間角を基準にして対象になるような関数データ
を記憶しておき、指定アドレスに応じて上記関数データ
を出力する読み出し専用メモリ(ROM)又はデコーダ
であることを特徴とする三角関数データ変換回路。
2. The trigonometric function data conversion circuit according to claim 1, wherein the data output circuit corresponds to one of SIN function data and COS function data corresponding to an address specified by the binary data. Between SIN function data and address and C
A read-only memory (ROM that stores the function data whose correspondence with the OS function data is based on the intermediate angle of the variable in the one quadrant and outputs the function data according to the designated address ) Or a decoder, a trigonometric data conversion circuit.
【請求項3】 請求項2記載の三角関数データ変換回路
において、前記ROMに記憶されている関数データは、
nビットのアドレスにより指定されるSIN関数あるい
はCOS関数の変数範囲90°を2n分割した角度毎
に、分割した最小角の1/2の量を加算した角度に対応
する関数データであることを特徴とする三角関数データ
変換回路。
3. The trigonometric function data conversion circuit according to claim 2, wherein the function data stored in the ROM is:
For each angle obtained by dividing the variable range 90 ° of the SIN function or the COS function specified by the n-bit address into 2 n , the function data corresponding to the angle obtained by adding 1/2 of the divided minimum angle is added. Characteristic trigonometric data conversion circuit.
【請求項4】 請求項2または3記載の三角関数データ
変換回路において、前記ROMは、アドレスNに対応し
てSIN{90°×(N/2n)+90°×(1/2n
×(1/2)}に比例したSIN関数データを記憶して
いることを特徴とする三角関数データ変換回路。
4. The trigonometric function data conversion circuit according to claim 2, wherein the ROM corresponds to an address N, SIN {90 ° × (N / 2 n ) + 90 ° × (1/2 n ).
A trigonometric function data conversion circuit characterized by storing SIN function data proportional to x (1/2)}.
【請求項5】 請求項2乃至4のいずれか1に記載の三
角関数データ変換回路において、さらに、前記ROMの
読み出しサイクルの一定間隔毎にアドレス入力に対して
所定量の補正を行うことにより、あるアドレス入力に対
応して前記ROMから複数回読み出された関数データの
平均値を理論角に対応して前記ROMから読み出される
関数データに近付けるアドレス入力補正回路を具備する
ことを特徴とする三角関数データ変換回路。
5. The trigonometric function data conversion circuit according to claim 2, further comprising correcting a predetermined amount of address input at regular intervals of a read cycle of the ROM, Triangle characterized by comprising an address input correction circuit for bringing an average value of the function data read from the ROM a plurality of times in response to an address input to approach the function data read from the ROM in correspondence with the theoretical angle. Function data conversion circuit.
【請求項6】 請求項5記載の三角関数データ変換回路
において、前記アドレス入力補正回路は、前記ROMか
ら関数データを繰り返し読み出す際に、読み出しサイク
ルの2サイクル毎にアドレス入力に対して−90°×/
nを加算することことを特徴とする三角関数データ変
換回路。
6. The trigonometric function data conversion circuit according to claim 5, wherein when the address input correction circuit repeatedly reads the function data from the ROM, the address input correction circuit is −90 ° with respect to the address input every two read cycles. × /
A trigonometric function data conversion circuit characterized by adding 2 n .
【請求項7】 請求項2乃至6いずれか1に記載の三角
関数データ変換回路において、前記アドレスを指定する
複数ビットのバイナーリデータのうち上位2ビットがS
IN関数あるいはCOS関数の変数範囲である4象限の
うちの1つの象限を指定するための象限指定データであ
り、残りの下位ビットが上記1つの象限内の変数を指定
するためのデータであり、前記ROMから読み出された
関数データの極性を前記象限指定データに応じて処理す
ることを特徴とする三角関数データ変換回路。
7. The trigonometric function data conversion circuit according to claim 2, wherein the upper 2 bits of the plurality of bits of the binary data designating the address are S.
It is quadrant designating data for designating one quadrant of the four quadrants, which is the variable range of the IN function or the COS function, and the remaining lower bits are data for designating a variable within the one quadrant, A trigonometric function data conversion circuit for processing the polarity of function data read from the ROM according to the quadrant designating data.
【請求項8】 2つの電磁コイルに流れる電流により発
生する磁界と指針軸上にある永久磁石の磁界とで指針の
指示角が定まるように構成されたアナログ指針式のメー
タ本体と、メータ指示対象となる情報に応じた周期を有
するパルス信号が入力し、このパルス信号の周期に応じ
たメータ指示角量を有するバイナリーデータに変換する
デジタルデータ処理回路と、三角関数の変数範囲0〜2
πラジアンのうちの1つの象限における変数を表わす複
数(n)ビットのバイナーリデータにより指定される入
力に対応して、上記1つの象限における変数の中間角を
基準にして対象になるようなSIN関数データおよびC
OS関数データのうちの一方を出力するデータ出力回路
と、上記データ出力回路からある入力に対応して複数回
読み出された関数データの平均値を理論角に対応して読
み出される関数データに近付けるために設けられ、前記
デジタルデータ処理回路から入力するバイナリーデータ
に対して所定量の補正を行う入力補正回路と、前記デー
タ出力回路からSIN関数データを読み出すかCOS関
数データを読み出すかに応じてバイナーリデータ入力の
論理レベルの反転/非反転を制御して上記データ出力回
路に入力する入力反転制御回路と、前記データ出力回路
から読み出された関数データを上記入力反転制御回路に
おける切換制御に対応してSIN関数データあるいはC
OS関数データとして分離するSIN・COS分離回路
と、上記SIN・COS分離回路から出力するSIN関
数データおよびCOS関数データに応じた電流量を前記
メータ本体の2つの電磁コイルに供給するメータ駆動回
路とを具備することを特徴とするメータ装置。
8. An analog pointer type meter main body configured so that a pointing angle of a pointer is determined by a magnetic field generated by a current flowing through two electromagnetic coils and a magnetic field of a permanent magnet on a pointer shaft, and a meter pointing object. A digital signal processing circuit for inputting a pulse signal having a cycle corresponding to the information and converting it into binary data having a meter indicating angle amount corresponding to the cycle of the pulse signal, and a variable range 0 to 2 of a trigonometric function.
A SIN that corresponds to an input designated by a plurality of (n) -bit binary data representing a variable in one quadrant of π radian and is targeted with reference to the intermediate angle of the variable in the one quadrant. Function data and C
A data output circuit for outputting one of the OS function data, and an average value of the function data read a plurality of times corresponding to an input from the data output circuit is brought close to the function data read corresponding to the theoretical angle. For correcting the binary data input from the digital data processing circuit by a predetermined amount, and depending on whether SIN function data or COS function data is read from the data output circuit. Corresponding to the input inversion control circuit for controlling the inversion / non-inversion of the logical level of the nary data input and inputting it to the data output circuit, and the switching control of the function data read from the data output circuit in the input inversion control circuit. Then SIN function data or C
A SIN / COS separation circuit that separates as OS function data, and a meter drive circuit that supplies a current amount corresponding to the SIN function data and COS function data output from the SIN / COS separation circuit to the two electromagnetic coils of the meter body. A meter device comprising:
【請求項9】 2つの電磁コイルに流れる電流により発
生する磁界と指針軸上にある永久磁石の磁界とで指針の
指示角が定まるように構成されたアナログ指針式のメー
タ本体と、メータ指示対象となる情報に応じたレベルを
有するアナログ信号が入力し、このアナログ信号のレベ
ルに応じたメータ指示角量を有するバイナリーデータに
変換するアナログデータ処理回路と、三角関数の変数範
囲0〜2πラジアンのうちの1つの象限における変数を
表わす複数(n)ビットのバイナーリデータにより指定
される入力に対応して、上記1つの象限における変数の
中間角を基準にして対象になるようなSIN関数データ
およびCOS関数データのうちの一方を出力するデータ
出力回路と、上記データ出力回路からある入力に対応し
て複数回読み出された関数データの平均値を理論角に対
応して読み出される関数データに近付けるために設けら
れ、前記アナログデータ処理回路から入力するバイナリ
ーデータに対して所定量の補正を行う入力補正回路と、
前記データ出力回路からSIN関数データを読み出すか
COS関数データを読み出すかに応じてバイナーリデー
タ入力の論理レベルの反転/非反転を制御して上記デー
タ出力回路に入力する入力反転制御回路と、前記データ
出力回路から読み出された関数データを上記入力反転制
御回路における切換制御に対応してSIN関数データあ
るいはCOS関数データとして分離するSIN・COS
分離回路と、上記SIN・COS分離回路から入力する
SIN関数データおよびCOS関数データに応じた電流
量を前記メータ本体の2つの電磁コイルに供給するメー
タ駆動回路とを具備することを特徴とするメータ装置。
9. An analog pointer type meter main body configured so that a pointing angle of a pointer is determined by a magnetic field generated by a current flowing through two electromagnetic coils and a magnetic field of a permanent magnet on a pointer axis, and a meter pointing object. And an analog data processing circuit for inputting an analog signal having a level according to the information and converting it into binary data having a meter indicating angle amount according to the level of the analog signal, and a variable range of the trigonometric function of 0 to 2π radian. SIN function data that becomes a target based on the intermediate angle of the variable in the one quadrant, corresponding to the input designated by the multiple (n) -bit binary data representing the variable in one quadrant, and A data output circuit for outputting one of the COS function data and a plurality of times read out corresponding to an input from the data output circuit. Provided to bring the average value of the function data to the function data to be read corresponding to the theoretical angle, an input correction circuit for performing a predetermined amount of correction on the binary data inputted from the analog data processing circuit,
An input inversion control circuit for controlling inversion / non-inversion of a logical level of a binary data input according to whether to read SIN function data or COS function data from the data output circuit and input the data to the data output circuit; SIN / COS that separates the function data read from the data output circuit into SIN function data or COS function data corresponding to the switching control in the input inversion control circuit.
A meter comprising: a separation circuit; and a meter drive circuit that supplies a current amount corresponding to the SIN function data and the COS function data input from the SIN / COS separation circuit to the two electromagnetic coils of the meter body. apparatus.
JP10093195A 1995-04-25 1995-04-25 Trigonometric function data conversion circuit and meter device Expired - Fee Related JP3351654B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10093195A JP3351654B2 (en) 1995-04-25 1995-04-25 Trigonometric function data conversion circuit and meter device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10093195A JP3351654B2 (en) 1995-04-25 1995-04-25 Trigonometric function data conversion circuit and meter device

Publications (2)

Publication Number Publication Date
JPH08292201A true JPH08292201A (en) 1996-11-05
JP3351654B2 JP3351654B2 (en) 2002-12-03

Family

ID=14287102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10093195A Expired - Fee Related JP3351654B2 (en) 1995-04-25 1995-04-25 Trigonometric function data conversion circuit and meter device

Country Status (1)

Country Link
JP (1) JP3351654B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009300089A (en) * 2008-06-10 2009-12-24 Yokogawa Electric Corp Synchronism detector
JP2013024766A (en) * 2011-07-22 2013-02-04 Canon Precision Inc Motor speed detecting device and motor control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009300089A (en) * 2008-06-10 2009-12-24 Yokogawa Electric Corp Synchronism detector
JP2013024766A (en) * 2011-07-22 2013-02-04 Canon Precision Inc Motor speed detecting device and motor control device

Also Published As

Publication number Publication date
JP3351654B2 (en) 2002-12-03

Similar Documents

Publication Publication Date Title
US4855660A (en) Microstepping of an unipolar stepping motor
US4929879A (en) Microstepping of an unipolar stepping motor
US7872439B2 (en) Motor driving apparatus
JPS6216381B2 (en)
US8378664B2 (en) Arrangement comprising a magnetic-field-dependent angle sensor
US6232739B1 (en) High-resolution incremental position sensor with pulse switching strategy
US5877694A (en) Indicating instrument and method of operation thereof
JPH08292201A (en) Trigonometric function data transforming circuit and meter device
US4607203A (en) Method and apparatus for determining the pole position in a synchronous linear stator motor
US5942863A (en) Three-phase brushless servo motor
CN1149541C (en) Extended position error signal linearization and normalization
JP3427575B2 (en) DC brushless motor and its stopping method
EP0255772B1 (en) Instrument with crossed-coil type movable magnet
JPH01150864A (en) Gauge driving device
JPS61207200A (en) Controller for stepping motor
US5296804A (en) Air core gauge fixed voltage signal and variable pulse width modulation signal interchanged control system therefor
US7405532B2 (en) Microstepper motor device and method of controlling the device
JPH06249881A (en) Three-phase coil type revolution driving device
JPH07203661A (en) Rotor position detector for ac servo motor
JPH089680A (en) Dc brushless motor and its stop method
JPH02147960A (en) Method for driving cross-coil type measuring meter
JP2947039B2 (en) Cross-coil instrument
JP2023122948A (en) Rotation angle detection device, rotation angle detection method and rotation angle detection system
JP2002323911A (en) Sequence controller
JPH09271199A (en) Motor driving equipment

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020903

LAPS Cancellation because of no payment of annual fees