JPH09133693A - Waveform shaping circuit - Google Patents

Waveform shaping circuit

Info

Publication number
JPH09133693A
JPH09133693A JP29138495A JP29138495A JPH09133693A JP H09133693 A JPH09133693 A JP H09133693A JP 29138495 A JP29138495 A JP 29138495A JP 29138495 A JP29138495 A JP 29138495A JP H09133693 A JPH09133693 A JP H09133693A
Authority
JP
Japan
Prior art keywords
signal
level
voltage
circuit
determination
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
JP29138495A
Other languages
Japanese (ja)
Other versions
JP3552371B2 (en
Inventor
Hiroaki Nitta
宏明 新田
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.)
Denso Corp
Original Assignee
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP29138495A priority Critical patent/JP3552371B2/en
Publication of JPH09133693A publication Critical patent/JPH09133693A/en
Application granted granted Critical
Publication of JP3552371B2 publication Critical patent/JP3552371B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a waveform shaping circuit which can always binarize alternating analog signals outputted from a rotation sensor with accuracy without relying upon interference noise nor the characteristics of the rotation sensor. SOLUTION: A waveform shaping circuit is provided with a first voltage dividing circuit 20 which can be changed in voltage dividing ratio based on set data D2 and D3 and a first threshold generating circuit 32 which is constituted so that the circuit 32 can generate a threshold current If having a prescribed frequency characteristic based on the voltage-converted signal Vfv corresponding to the frequency of a binarized signal Sout ad a comparative reference signal Vth by supplying the threshold current If to the voltage dividing resistor 20 and can change the frequency characteristic of the current If based on set data D0 and D1. When the data D0-D3 are appropriately set, the comparative reference signal Vth can be always set at a signal level which is suitable for the binarization of alternating analog signals Sin over the full region of the number of revolutions of an engine.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、所定の回転センサ
から入力される交番アナログ信号を2値化する波形整形
回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a waveform shaping circuit that binarizes an alternating analog signal input from a predetermined rotation sensor.

【0002】[0002]

【従来の技術】従来より、自動車等に搭載されたエンジ
ンの電子制御システムにおいては、エンジンの運転状態
を検出する各種センサ等からの検出信号をマイクロコン
ピュータに入力し、これら検出信号に基づきマイクロコ
ンピュータが燃料噴射装置に対する噴射信号や点火装置
に対する点火信号等を生成することにより、エンジンの
運転状態に応じたエンジン制御を行っている。
2. Description of the Related Art Conventionally, in an electronic control system for an engine mounted in an automobile or the like, detection signals from various sensors for detecting the operating state of the engine are input to a microcomputer, and the microcomputer is based on these detection signals. Generates an injection signal for the fuel injection device, an ignition signal for the ignition device, and the like to perform engine control according to the operating state of the engine.

【0003】そして、マイクロコンピュータは、これら
噴射信号や点火信号の制御量や制御タイミングを適正に
決定するために少なくともエンジンの回転数を正確に把
握する必要がある。このため、このようなシステムに
は、図8に示すように、エンジンのカム軸と同期して回
転する回転軸に取り付けられ、所定間隔毎に突起が形成
されたシグナルロータ102、及びこのシグナルロータ
102の近傍に配置され、磁性体材料からなるコアにコ
イルを巻装することで構成された電磁ピックアップ10
4からなり、シグナルロータ102の回転に伴って突起
が電磁ピックアップ104の近傍を順次通過することに
より、電磁ピックアップ104に誘起される交番アナロ
グ信号Sinを出力する回転センサ106と、回転センサ
106からの交番アナログ信号Sinを、所定の比較基準
値Vthにて2値化することにより波形整形する波形整形
回路108とが備えられ、この波形整形回路108から
出力される2値化信号Sout をマイクロコンピュータに
入力し、この2値化信号Sout からシグナルロータ10
2の回転数、延いてはエンジンの回転数等を算出するよ
うにされている。
Then, the microcomputer needs to accurately grasp at least the rotational speed of the engine in order to properly determine the control amount and control timing of the injection signal and the ignition signal. Therefore, in such a system, as shown in FIG. 8, a signal rotor 102, which is attached to a rotary shaft that rotates in synchronization with a cam shaft of an engine and has protrusions formed at predetermined intervals, and the signal rotor 102. An electromagnetic pickup 10 arranged in the vicinity of 102 and configured by winding a coil around a core made of a magnetic material.
The rotation sensor 106 that outputs an alternating analog signal Sin induced in the electromagnetic pickup 104 by sequentially passing the protrusions near the electromagnetic pickup 104 as the signal rotor 102 rotates. A waveform shaping circuit 108 for shaping the waveform by binarizing the alternating analog signal Sin with a predetermined comparison reference value Vth is provided, and the binarized signal Sout output from the waveform shaping circuit 108 is supplied to a microcomputer. The signal rotor 10 is input from this binarized signal Sout.
The number of revolutions of 2, and hence the number of revolutions of the engine are calculated.

【0004】そして2値化信号Sout が正確に交番アナ
ログ信号Sinに対応するような精度のよい2値化を行う
ために、波形整形回路108は、交番アナログ信号Sin
を所定の比較基準値Vthと大小比較して2値化するコン
パレータ122と、コンパレータ122から出力される
2値化信号Sout に基づいて比較基準信号Vthを生成す
るスレッショルド生成回路124とにより構成され、し
かも、スレッショルド生成回路124は、ヒステリシス
を有し、且つ2値化信号Sout の周波数、即ちエンジン
回転数に応じてヒステリシスの幅が変化する比較基準値
Vthを生成するように構成されたものが用いられてい
る。なお、ここでは、図11に示すように、比較基準値
Vthの一方のレベルを固定し、他方のレベル(以下、ス
レッショルド電圧Vfとよぶ)をエンジン回転数、即ち
交番アナログ信号Sinの周波数に応じて変化させること
により、ヒステリシスの幅を変化させている。
Then, in order to perform accurate binarization so that the binarized signal Sout accurately corresponds to the alternating analog signal Sin, the waveform shaping circuit 108 has the alternating analog signal Sin.
And a threshold value generation circuit 124 that generates a comparison reference signal Vth based on a binarized signal Sout output from the comparator 122. Moreover, the threshold generation circuit 124 has a hysteresis and is configured to generate the comparison reference value Vth in which the width of the hysteresis changes according to the frequency of the binarized signal Sout, that is, the engine speed. Has been. Here, as shown in FIG. 11, one level of the comparison reference value Vth is fixed, and the other level (hereinafter referred to as the threshold voltage Vf) is set according to the engine speed, that is, the frequency of the alternating analog signal Sin. The width of the hysteresis is changed by changing the width.

【0005】即ちこれは、図8に示すように、シグナル
ロータ103及び電磁ピックアップ105を用いて同様
に形成された他の回転センサ107が、回転センサ10
6に近接して配置されている場合、回転センサ106の
電磁ピックアップ104は、他の回転センサ107のシ
グナルロータ103の影響を受け、図9(a)に示すよ
うに、干渉ノイズNが重畳された交番アナログ信号Sin
を出力する。このような交番アナログ信号Sinを、例え
ば固定レベルの比較基準信号Vthにて2値化したとする
と、図9(b)に示すように、2値化信号Sout のレベ
ル反転時にばたつきが生じるため、このような2値化信
号Sout からでは、エンジン回転数を正確に求めること
ができず、延いては、電子制御システムの信頼性を低下
させてしまうことになる。
That is, as shown in FIG. 8, another rotation sensor 107, which is similarly formed by using the signal rotor 103 and the electromagnetic pickup 105, is the same as the rotation sensor 10 shown in FIG.
6, the electromagnetic pickup 104 of the rotation sensor 106 is affected by the signal rotor 103 of the other rotation sensor 107, and the interference noise N is superimposed as shown in FIG. 9A. Alternating analog signal Sin
Is output. If such an alternating analog signal Sin is binarized by a comparison reference signal Vth having a fixed level, for example, as shown in FIG. 9B, fluttering occurs at the time of level inversion of the binarized signal Sout. From such a binarized signal Sout, the engine speed cannot be accurately obtained, which in turn reduces the reliability of the electronic control system.

【0006】ところが、比較基準信号Vthがヒステリシ
スを有しており、しかもヒステリシスの幅,即ちヒステ
リシス電圧Vfが干渉ノイズNの振幅より大きく設定さ
れていれば、図9(c)に示すように、2値化信号Sou
t のばたつきを確実に防止することができ、延いては、
この2値化信号Sout からエンジン回転数を正確に求め
ることができるのである。
However, if the comparison reference signal Vth has hysteresis and the width of the hysteresis, that is, the hysteresis voltage Vf is set larger than the amplitude of the interference noise N, as shown in FIG. 9C, Binary signal Sou
The flapping of t can be reliably prevented, and
The engine speed can be accurately obtained from the binarized signal Sout.

【0007】なお、スレッショルド電圧Vfが大きいほ
ど、干渉ノイズNの影響を確実に除去できるのである
が、スレッショルド電圧Vfを、2値化の対象である電
磁ピックアップ104の出力、即ち交番アナログ信号S
inの振幅より大きくすることはできない。
It should be noted that the larger the threshold voltage Vf, the more reliably the influence of the interference noise N can be removed. However, the threshold voltage Vf is output from the electromagnetic pickup 104 to be binarized, that is, the alternating analog signal S.
It cannot be greater than the amplitude of in.

【0008】しかも、これら干渉ノイズNの振幅や、電
磁ピックアップ104の出力は、図10に示すように、
一般的に、エンジン回転数が比較的小さい時には、エン
ジン回転数に略比例して増大し、ある程度以上にエンジ
ン回転数が大きくなると、エンジン回転数に対して増大
する割合が小さくなったり、逆に減少するというような
特性を有する。つまり、スレッショルド電圧Vfが干渉
ノイズNの振幅より小さい(領域B)と、干渉ノイズN
の影響を除去することができず、電磁ピックアップ10
4の出力より大きい(領域C)と、回転センサ106の
出力を2値化できなくなる。このため、スレッショルド
電圧Vf、即ちヒステリシスの幅がこの領域B,Cの間
の範囲内に常に納まるように、エンジン回転数に応じて
スレッショルド電圧Vfを変化させているのである。
Moreover, the amplitude of the interference noise N and the output of the electromagnetic pickup 104 are as shown in FIG.
Generally, when the engine speed is relatively low, it increases substantially in proportion to the engine speed, and when the engine speed becomes higher than a certain level, the rate of increase with respect to the engine speed decreases, or conversely. It has the property of decreasing. That is, when the threshold voltage Vf is smaller than the amplitude of the interference noise N (region B), the interference noise N
The effect of the electromagnetic pickup 10 cannot be eliminated.
If it is larger than the output of 4 (area C), the output of the rotation sensor 106 cannot be binarized. Therefore, the threshold voltage Vf is changed according to the engine speed so that the threshold voltage Vf, that is, the width of the hysteresis is always within the range between the regions B and C.

【0009】[0009]

【発明が解決しようとする課題】しかし、干渉ノイズN
の特性(領域Bの形状)は他の回転センサとの配置等に
よって変化し、また、電磁ピックアップ104の出力特
性(領域Cの形状)は、回転センサ106単体のばらつ
きによって変化するため、センサや周辺装置の配置が異
なる電子制御システム毎、例えば電子制御システムを搭
載する車種が異なる毎に、スレッショルド電圧Vfの最
適な特性が異なったものとなる。つまり、システム毎に
スレッショルド電圧Vfの特性が夫々異なる波形整形回
路108を用意しなければならなず、波形整形回路10
8を各システムで共通に使用できないという問題があっ
た。
However, the interference noise N
Characteristic (shape of area B) changes due to the arrangement with other rotation sensors, and the output characteristic (shape of area C) of the electromagnetic pickup 104 changes due to dispersion of the rotation sensor 106 alone. The optimum characteristic of the threshold voltage Vf differs depending on the electronic control system in which the arrangement of the peripheral devices is different, for example, the vehicle type in which the electronic control system is mounted is different. That is, it is necessary to prepare the waveform shaping circuit 108 having different characteristics of the threshold voltage Vf for each system.
There was a problem that 8 could not be commonly used in each system.

【0010】また、例えば、既に自動車等に組み込まれ
た電子制御システムに、新たなセンサや装置を追加した
り、また、経年変化等により回転センサの特性が変化す
る等して、干渉ノイズNや電磁ピックアップ104の出
力特性が変化してしまうと、予め設定されたスレッショ
ルド電圧Vfの特性は、最適値からはずれてしまうこと
になるため、2値化の精度が劣化してしまうという問題
もあった。
Also, for example, interference noise N or noise may be generated by adding a new sensor or device to an electronic control system already installed in an automobile or changing the characteristics of the rotation sensor due to aging. If the output characteristic of the electromagnetic pickup 104 changes, the characteristic of the threshold voltage Vf set in advance will deviate from the optimum value, so that there is a problem that the accuracy of binarization deteriorates. .

【0011】本発明は、上記問題点を解決するために、
干渉ノイズや回転センサの特性によらず、回転センサか
らの交番アナログ信号を、常に精度よく2値化すること
が可能な波形整形回路を提供することを目的とする。
The present invention has been made in order to solve the above problems.
An object of the present invention is to provide a waveform shaping circuit that can always binarize an alternating analog signal from a rotation sensor with high accuracy regardless of interference noise and characteristics of the rotation sensor.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するため
になされた請求項1に記載の発明においては、比較手段
が、回転センサから入力される交番アナログ信号と、判
定信号とを比較することにより2値化信号を生成する。
なお、判定信号は、大小2つの判定レベルを有し、交番
アナログ信号が大きい判定レベルより大きくなると小さ
い判定レベルに変化し、小さい判定レベルより小さくな
ると大きい判定レベルに変化する。即ち、ヒステリシス
を有する。
According to another aspect of the present invention, which is made to achieve the above object, the comparing means compares the alternating analog signal input from the rotation sensor with the determination signal. To generate a binarized signal.
The determination signal has two determination levels, large and small, and changes to a smaller determination level when the alternating analog signal is larger than the large determination level, and changes to a large determination level when the alternating analog signal is smaller than the small determination level. That is, it has hysteresis.

【0013】つまり、判定レベルの差、即ちヒステリシ
スの幅より振幅の小さなノイズが、交番アナログ信号に
重畳されていたとしても、2値化信号のレベルが反転す
る近傍にてレベルのばたつきが生じることがないように
されている。しかも比較手段からの2値化信号に基づい
て、この判定信号を生成する判定信号生成手段は、判定
信号の2つの判定レベルの差を、交番アナログ信号の周
波数に応じて変化させ、しかも、その周波数特性を、外
部から入力される設定信号により変更できるように構成
されている。
That is, even if noise having a smaller amplitude than the difference between the determination levels, that is, the width of the hysteresis, is superimposed on the alternating analog signal, the level fluttering occurs near the inversion of the level of the binarized signal. There is no such thing. Moreover, the determination signal generating means for generating the determination signal based on the binarized signal from the comparing means changes the difference between the two determination levels of the determination signal according to the frequency of the alternating analog signal, and The frequency characteristic can be changed by a setting signal input from the outside.

【0014】従って、本発明の波形整形回路によれば、
判定信号の2つの判定レベルの差が、交番アナログ信号
に重畳されるノイズの振幅より常に大きくなるように、
その周波数特性を設定することにより、この判定信号を
用いて交番アナログ信号を、ノイズの影響を受けること
なく正確に2値化することができる。
Therefore, according to the waveform shaping circuit of the present invention,
The difference between the two judgment levels of the judgment signal is always larger than the amplitude of the noise superimposed on the alternating analog signal,
By setting the frequency characteristic, the alternating analog signal can be accurately binarized without being affected by noise by using this determination signal.

【0015】また、本発明の波形整形回路は、当該波形
整形回路の使用環境に応じて干渉ノイズの周波数特性が
様々に異なっていても、設定信号により、この使用環境
に応じて判定レベルの差の周波数特性を常に最適なもの
に設定できるため、様々なシステムや装置において共通
に且つ好適に使用することができる。
Further, in the waveform shaping circuit of the present invention, even if the frequency characteristics of the interference noise are variously different depending on the usage environment of the waveform shaping circuit, the difference in the judgment level depends on the usage environment depending on the setting signal. Since the frequency characteristic of can be always set to the optimum one, it can be commonly and suitably used in various systems and devices.

【0016】次に、請求項2に記載の発明においては、
基本信号生成手段が、交番アナログ信号の周波数に比例
した大きさの基本信号を生成し、この基本信号に基づ
き、第1判定レベル生成手段が、所定の周波数特性を有
する第1の判定レベルを生成すると共に、第2判定レベ
ル生成手段が、所定の固定レベルとなる第2の判定レベ
ルを生成することにより、2つの判定レベルの差が所定
の周波数特性を有する判定信号を生成する。
Next, in the invention described in claim 2,
The basic signal generation means generates a basic signal having a magnitude proportional to the frequency of the alternating analog signal, and based on this basic signal, the first determination level generation means generates a first determination level having a predetermined frequency characteristic. At the same time, the second determination level generating means generates the second determination level which is the predetermined fixed level, thereby generating the determination signal in which the difference between the two determination levels has the predetermined frequency characteristic.

【0017】そして、第1判定レベル生成手段おいて、
レベル制限手段が、基本信号の上限および下限を制限す
ることにより、上限の周波数以上および下限の周波数以
下では、基本信号の信号レベルは、周波数に関係なく一
定となり、また、増幅手段が、基本信号を増幅すること
により、周波数に応じて基本信号の信号レベルが変化す
る割合が変化し、更に、レベルシフト手段が、基本信号
の信号レベルをシフトすることにより、基本信号の動作
範囲がシフトする。
Then, in the first decision level generating means,
By limiting the upper limit and the lower limit of the basic signal by the level limiting means, the signal level of the basic signal becomes constant regardless of the frequency above the upper limit frequency and below the lower limit frequency. By amplifying, the rate at which the signal level of the basic signal changes in accordance with the frequency changes, and further, the level shift means shifts the signal level of the basic signal, whereby the operating range of the basic signal shifts.

【0018】従って、本発明の波形整形回路によれば、
これらレベル制限手段の上限値および下限値、増幅手段
の増幅率、レベルシフト手段のシフト量のうち少なくと
もいずれか一つが設定信号に応じて変更可能にされてい
るため、第1の判定レベルの周波数特性を、干渉ノイズ
等の特性に応じて変更できる。
Therefore, according to the waveform shaping circuit of the present invention,
Since at least one of the upper limit value and the lower limit value of the level limiting means, the amplification factor of the amplifying means, and the shift amount of the level shifting means can be changed according to the setting signal, the frequency of the first determination level is set. The characteristics can be changed according to characteristics such as interference noise.

【0019】[0019]

【発明の実施の形態】以下に本発明の実施例を図面と共
に説明する。図2は、本実施例の波形整形回路が適用さ
れた4気筒エンジンの電子制御システムの全体構成を表
すブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram showing the overall configuration of an electronic control system for a four-cylinder engine to which the waveform shaping circuit of this embodiment is applied.

【0020】図2に示すように、電子制御システムは、
4気筒エンジンのカム軸と同期して回転するシグナルロ
ータ2、及びこのシグナルロータ2の回転を検出する電
磁ピックアップ4からなる回転センサ6と、回転センサ
6から入力される交番アナログ信号Sinを2値化するこ
とで波形整形し、波形整形出力として2値化信号Sout
を出力する波形整形回路8と、エンジン各部に配設され
た他の図示しないセンサを介して入力されるエンジン水
温やバッテリ電圧に対応したアナログ信号をA/D変換
するA/Dコンバータ10と、エンジン制御のための各
種電子回路の動作状態等を表す電気負荷信号、スロット
ルバルブがアイドル位置に有るか否か表すアイドル信
号、スタータが動作しているか否かを表すスタータ信号
等、いわゆるオンオフ信号を入力し、これらの信号レベ
ルをデジタル処理に適したレベルに変換する入力バッフ
ァ12と、波形整形回路8、A/Dコンバータ10、入
力バッファ12を介して得られる各種信号を随時取り込
み、これら各種信号からエンジン状態を求め、求めたエ
ンジン状態に応じて燃料噴射装置(図示せず)に対する
噴射信号や点火装置(図示せず)に対する点火信号等を
生成する処理や、波形整形回路8の特性を設定するため
の設定データD0〜D3を波形整形回路8に送信する処
理等を実行するマイクロコンピュータ14とにより構成
されている。
As shown in FIG. 2, the electronic control system is
The signal rotor 2 that rotates in synchronization with the camshaft of the four-cylinder engine, the rotation sensor 6 including the electromagnetic pickup 4 that detects the rotation of the signal rotor 2, and the alternating analog signal Sin input from the rotation sensor 6 are binary. The waveform is shaped by digitizing, and the binarized signal Sout is output as the waveform shaping output.
A waveform shaping circuit 8 for outputting a signal, an A / D converter 10 for A / D converting an analog signal corresponding to an engine water temperature or a battery voltage, which is input via another sensor (not shown) provided in each part of the engine, So-called on / off signals such as electric load signals that indicate the operating state of various electronic circuits for engine control, idle signals that indicate whether the throttle valve is in the idle position, starter signals that indicate whether the starter is operating, etc. Input buffer 12 for inputting and converting these signal levels to levels suitable for digital processing, and various signals obtained through waveform shaping circuit 8, A / D converter 10, and input buffer 12 are fetched at any time, and these various signals The engine condition is obtained from the injection condition, and an injection signal for a fuel injection device (not shown) or an ignition device is determined according to the obtained engine condition. (Not shown), a microcomputer 14 for executing a process of generating an ignition signal or the like, a process of transmitting setting data D0 to D3 for setting the characteristics of the waveform shaping circuit 8 to the waveform shaping circuit 8, and the like. ing.

【0021】このうち回転センサ6を構成するシグナル
ロータ2は、その外周面に磁性体からなる4つの突起2
a,2b,2c,2dが90°毎の等間隔に形成されて
いる。一方、電磁ピックアップ4は、磁性体材料からな
るコアにコイルを巻装することで構成され、シグナルロ
ータ2の近傍に配置されている。
Of these, the signal rotor 2 constituting the rotation sensor 6 has four protrusions 2 made of a magnetic material on its outer peripheral surface.
a, 2b, 2c and 2d are formed at equal intervals of 90 °. On the other hand, the electromagnetic pickup 4 is configured by winding a coil around a core made of a magnetic material, and is arranged near the signal rotor 2.

【0022】そして、シグナルロータ2の回転に伴って
突起2a〜2dが電磁ピックアップ4の近傍を順次通過
し、これに応じてコイルを通過する磁束が変化すること
により、電磁ピックアップ4にはシグナルロータ2の回
転、延いてはエンジンの回転に応じた交番アナログ信号
Sinが誘起される。この誘起された交番アナログ信号S
inが波形整形回路8に入力される。
Then, as the signal rotor 2 rotates, the projections 2a to 2d sequentially pass in the vicinity of the electromagnetic pickup 4, and the magnetic flux passing through the coil changes accordingly. An alternating analog signal Sin corresponding to the rotation of 2 and the rotation of the engine is induced. This induced alternating analog signal S
in is input to the waveform shaping circuit 8.

【0023】次に、波形整形回路8は、図1に示すよう
に、反転入力が入力端子Tiに接続され、出力が出力端
子Toに接続され、入力端子Tiを介して回転センサ6
から入力される交番アナログ信号Sinを2値化して、出
力端子Toを介してマイクロコンピュータ14に2値化
信号Sout を出力するコンパレータ22と、コンパレー
タ22が出力する2値化信号Sout に基づき、交番アナ
ログ信号Sinを2値化するための比較基準信号Vthを生
成する比較基準信号生成回路23と、マイクロコンピュ
ータ14から受信する設定データD0〜D3を保持し
て、比較基準信号生成回路23に供給する設定回路36
と、により構成されている。
Next, in the waveform shaping circuit 8, as shown in FIG. 1, the inverting input is connected to the input terminal Ti, the output is connected to the output terminal To, and the rotation sensor 6 is connected via the input terminal Ti.
The alternating analog signal Sin input from the binarizer is binarized to output a binary signal Sout to the microcomputer 14 via the output terminal To, and an alternating signal based on the binary signal Sout output from the comparator 22. The comparison reference signal generation circuit 23 for generating the comparison reference signal Vth for binarizing the analog signal Sin and the setting data D0 to D3 received from the microcomputer 14 are held and supplied to the comparison reference signal generation circuit 23. Setting circuit 36
, And is constituted.

【0024】なお、設定回路36は、設定データD0〜
D3の値を保持するためのレジスタ36a(図4参照)
を備えており、波形整形回路8に電源が投入されると、
予め用意された初期値をレジスタ36aに設定し、その
後、マイクロコンピュータ14から設定データD0〜D
3を受信した場合には、レジスタ36aの設定値を受信
した値に書き換えると共に、マイクロコンピュータ14
に対して確認信号ACKを送信するように構成されてい
る。
The setting circuit 36 uses the setting data D0 to D0.
Register 36a for holding the value of D3 (see FIG. 4)
When the waveform shaping circuit 8 is powered on,
An initial value prepared in advance is set in the register 36a, and then the setting data D0 to D
When 3 is received, the set value of the register 36a is rewritten to the received value and the microcomputer 14
Is configured to send a confirmation signal ACK to.

【0025】また、比較基準信号生成回路23は、コン
パレータ22からの2値化信号Sout に基づき、その周
波数に対応した電圧変換信号Vfvを生成するF/V変換
回路24と、2値化信号Sout がHighレベルの時に、所
定の波高値を有し、且つ電圧変換信号Vfvの電圧値に比
例した速度にてそのレベルが減衰するダイナミックヒス
テリシス電流Imを生成し、ダイオード26を介して出
力するダイナミックヒステリシス生成回路28と、同様
に2値化信号Sout がHighレベルの時に、電圧変換信号
Vfvの電圧値に応じてレベルが変化するスレッショルド
電流Ifを生成し、ダイオード30を介して出力する第
1スレッショルド生成回路32と、電源電圧VDDを分圧
すると共に、ダイナミックヒステリシス電流Im及びス
レッショルド電流Ifを電圧値に変換し、これら分圧電
圧と変換電圧とを加算した電圧を、交番アナログ信号S
inを2値化するための比較基準信号Vthとしてコンパレ
ータ22の非反転入力に印加する第1の分圧回路20
と、2値化信号Sout がLowレベルの時に、第1の分圧
回路20と共に所定電圧を発生し、これを比較基準信号
Vthとしてコンパレータの非反転入力に印加する第2ス
レッショルド生成回路34と、により構成されている。
Further, the comparison reference signal generation circuit 23, based on the binarized signal Sout from the comparator 22, generates the voltage conversion signal Vfv corresponding to the frequency and the F / V conversion circuit 24 and the binarized signal Sout. Is a high level, a dynamic hysteresis current Im having a predetermined crest value and having its level attenuated at a speed proportional to the voltage value of the voltage conversion signal Vfv is generated and output via the diode 26. Similarly to the generation circuit 28, when the binarized signal Sout is at a high level, a first threshold generation that generates a threshold current If whose level changes according to the voltage value of the voltage conversion signal Vfv and outputs it via the diode 30. The circuit 32 and the power supply voltage VDD are divided, and the dynamic hysteresis current Im and the threshold current If are voltage-divided. The value obtained by converting the value into a value and adding the divided voltage and the converted voltage is used as the alternating analog signal S.
The first voltage dividing circuit 20 which is applied to the non-inverting input of the comparator 22 as the comparison reference signal Vth for binarizing in.
And a second threshold generation circuit 34 that generates a predetermined voltage together with the first voltage dividing circuit 20 when the binarized signal Sout is at a low level and applies this as a comparison reference signal Vth to the non-inverting input of the comparator. It is composed by.

【0026】このうち、第2スレッショルド生成回路3
4は、一端がコンパレータ22の非反転入力に接続され
た抵抗45と、この抵抗45の他端にコレクタが接続さ
れ、エミッタが接地されたトランジスタQ7と、コンパ
レータ22の出力を反転してトランジスタQ7のベース
に印加する反転回路47とにより構成されており、2値
化信号Sout がLowレベルの時に、トランジスタQ7を
導通させてコンパレータ22の非反転入力を抵抗45を
介して接地することにより、第1の分圧回路20の抵抗
値と、抵抗45の抵抗値とで決まる所定電圧を発生させ
ている。
Of these, the second threshold generation circuit 3
4 includes a resistor 45 having one end connected to the non-inverting input of the comparator 22, a transistor Q7 having a collector connected to the other end of the resistor 45 and an emitter grounded, and a transistor Q7 which inverts the output of the comparator 22. When the binarized signal Sout is at a low level, the transistor Q7 is turned on and the non-inverting input of the comparator 22 is grounded via the resistor 45. A predetermined voltage determined by the resistance value of the voltage dividing circuit 20 of 1 and the resistance value of the resistor 45 is generated.

【0027】一方、第1スレッショルド生成回路32
は、図1に示すように、ベースに電圧変換信号Vfvが印
加され、エミッタが抵抗38を介して接地されたトラン
ジスタQ1と、エミッタがトランジスタQ1のベースに
接続され、コレクタが接地されたトランジスタQ2と、
電源電圧VDDを所定の分圧比にて分圧してトランジスタ
Q2のベースに印加する第2の分圧回路40と、コレク
タがトランジスタQ1のコレクタに接続され、エミッタ
が電源に接続されたトランジスタQ3と、ベースがトラ
ンジスタQ1のコレクタに接続され、エミッタが抵抗4
2を介してトランジスタQ3のベースに接続され、コレ
クタが接地されたトランジスタQ5と、ベースがトラン
ジスタQ3のベースに接続され、エミッタが電源に接続
され、トランジスタQ3,Q5及び抵抗42と共にベー
ス電流補正型のミラー回路を構成するトランジスタQ4
と、コレクタがトランジスタQ4のコレクタに接続さ
れ、エミッタが接地され、ベースが2値化信号Sout を
反転させる反転回路43の出力に接続されたトランジス
タQ6と、トランジスタQ6と並列接続され、所定電流
Icを流す定電流回路44と、により構成されている。
On the other hand, the first threshold generation circuit 32
1, the voltage conversion signal Vfv is applied to the base of the transistor Q1 whose emitter is grounded through the resistor 38, and the transistor Q2 whose emitter is connected to the base of the transistor Q1 and whose collector is grounded. When,
A second voltage dividing circuit 40 for dividing the power source voltage VDD by a predetermined voltage dividing ratio and applying it to the base of the transistor Q2; a transistor Q3 having a collector connected to the collector of the transistor Q1 and an emitter connected to the power source; The base is connected to the collector of transistor Q1 and the emitter is resistor 4
A transistor Q5 connected to the base of the transistor Q3 via a 2 and having a collector grounded; a base connected to the base of the transistor Q3; an emitter connected to the power supply; and a base current correction type with the transistors Q3 and Q5 and the resistor 42. Transistor Q4 that forms the mirror circuit of
, A collector of which is connected to the collector of the transistor Q4, an emitter of which is grounded, and a base of which is connected to the output of the inverting circuit 43 which inverts the binarized signal Sout, and the transistor Q6 which is connected in parallel with the predetermined current Ic. And a constant current circuit 44 for flowing the current.

【0028】なお、定電流回路44、第2の分圧回路4
0およびトランジスタQ2が本発明におけるレベル制限
手段に相当し、また第1の分圧回路20がレベルシフト
手段、トランジスタQ1,抵抗38,及び第1の分圧回
路20が増幅手段に相当する。
The constant current circuit 44 and the second voltage dividing circuit 4
0 and the transistor Q2 correspond to the level limiting means in the present invention, the first voltage dividing circuit 20 corresponds to the level shifting means, and the transistor Q1, the resistor 38, and the first voltage dividing circuit 20 correspond to the amplifying means.

【0029】このように構成された第1スレッショルド
生成回路32において、トランジスタQ1は、電圧変換
信号Vfvに応じた所定のコレクタ電流Iref を流す。そ
して、トランジスタQ3,Q4,Q5及び抵抗42がミ
ラー回路を構成しているため、トランジスタQ4も、ト
ランジスタQ1と同様のコレクタ電流Iref を流す。
In the first threshold generation circuit 32 thus constructed, the transistor Q1 supplies a predetermined collector current Iref according to the voltage conversion signal Vfv. Since the transistors Q3, Q4, Q5 and the resistor 42 form a mirror circuit, the transistor Q4 also flows the collector current Iref similar to that of the transistor Q1.

【0030】ここで、電圧変換信号Vfvの電圧レベルが
小さく、コレクタ電流Iref が定電流回路44の流す定
電流Ic以下である場合、トランジスタQ4のコレクタ
電流Iref は全て定電流回路44により吸い取られるた
め、当該第1スレッショルド生成回路32から出力され
るスレッショルド電流Ifはゼロとなる。
Here, when the voltage level of the voltage conversion signal Vfv is small and the collector current Iref is less than or equal to the constant current Ic flowing through the constant current circuit 44, all the collector current Iref of the transistor Q4 is absorbed by the constant current circuit 44. , The threshold current If output from the first threshold generation circuit 32 becomes zero.

【0031】一方、電圧変換信号Vfvの電圧レベルが増
大し、コレクタ電流Iref が定電流Icより大きくなる
と、コレクタ電流Iref から定電流Ic分だけ差し引か
れた電流(Iref −Ic)が、スレッショルド電流If
となる。そして、更に電圧変換信号Vfvの電圧レベルが
増大し、トランジスタQ2のベース電圧、即ち第2の分
圧回路40の出力電圧Vbより大きくなると、トランジ
スタQ2がオン状態となり、電圧変換信号Vfvの電圧レ
ベルによらず、トランジスタQ1のベース電圧は、第2
の分圧回路40の分圧値により決まる一定電圧に保持さ
れ、コレクタ電流Iref,延いてはスレッショルド電流
Ifも一定となる。 なお、コンパレータ22からの2
値化信号Sout が、Low レベルである場合、トランジス
タQ6が導通することにより、スレッショルド電流If
の流出が禁止される。
On the other hand, when the voltage level of the voltage conversion signal Vfv increases and the collector current Iref becomes larger than the constant current Ic, the current (Iref-Ic) subtracted by the constant current Ic from the collector current Iref becomes the threshold current If.
Becomes Then, when the voltage level of the voltage conversion signal Vfv further increases and becomes higher than the base voltage of the transistor Q2, that is, the output voltage Vb of the second voltage dividing circuit 40, the transistor Q2 is turned on and the voltage level of the voltage conversion signal Vfv. , The base voltage of the transistor Q1 is
The voltage is held at a constant voltage determined by the voltage division value of the voltage dividing circuit 40, and the collector current Iref and the threshold current If are also kept constant. In addition, 2 from the comparator 22
When the binarized signal Sout is at the low level, the transistor Q6 conducts, and the threshold current If
Outflow is prohibited.

【0032】ここで、図3は、第1の分圧回路20、第
2の分圧回路40、及び定電流回路44の構成を表す電
気回路図である。図3に示すように、定電流回路44
は、トランジスタQ4のコレクタに接続される端子aか
ら電流の供給を受けて定電流Ic1を流す定電流源46
と、設定回路36のレジスタ36aに設定された設定デ
ータD0がHighレベル(=1)の時にオン状態となるス
イッチSL と、スイッチSL を介して端子aから電流の
供給を受けて定電流Ic2を流す定電流源48とからな
る。
Here, FIG. 3 is an electric circuit diagram showing the configuration of the first voltage dividing circuit 20, the second voltage dividing circuit 40, and the constant current circuit 44. As shown in FIG. 3, the constant current circuit 44
Is a constant current source 46 which receives a current from a terminal a connected to the collector of the transistor Q4 and flows a constant current Ic1.
And a switch SL which is turned on when the setting data D0 set in the register 36a of the setting circuit 36 is at a high level (= 1), and a constant current Ic2 is supplied by receiving a current from the terminal a through the switch SL. And a constant current source 48 that flows.

【0033】即ち、図4(a)に示すように、スイッチ
SL がオフ状態(D0=0)の時には、コレクタ電流I
ref (図中点線)が定電流回路44が流す定電流値Ic1
に等しくなる所定エンジン回転数に達すると、スレッシ
ョルド電流Ifが流れ始め、また、スイッチSL がオン
状態(D0=1)の時には、コレクタ電流Iref が定電
流値Ic1+Ic2に等しくなる所定のエンジン回転数に達
すると、スレッショルド電流Ifが流れ始める。
That is, as shown in FIG. 4A, when the switch SL is in the off state (D0 = 0), the collector current I
ref (dotted line in the figure) is the constant current value Ic1 that the constant current circuit 44 flows.
When a predetermined engine speed equal to is reached, the threshold current If starts to flow, and when the switch SL is in the ON state (D0 = 1), the collector current Iref becomes equal to the constant current value Ic1 + Ic2 at a predetermined engine speed. When it reaches, the threshold current If starts to flow.

【0034】また、第2の分圧回路40は、一端が電
源、他端がトランジスタQ2のベースへの出力端子bに
接続された抵抗50(抵抗値Ra)と、一端が出力端子
bに接続され他端が接地された抵抗52(抵抗値Rb1)
と、レジスタ36aに設定された設定データD1がHigh
レベル(=1)の時にオン状態となるスイッチSH と、
一端がスイッチSH を介して出力端子bに接続され他端
が接地された抵抗54(抵抗値Rb2)とからなる。
The second voltage dividing circuit 40 has one end connected to the power supply and the other end connected to the resistor 50 (resistance value Ra) connected to the output terminal b to the base of the transistor Q2, and one end connected to the output terminal b. And a resistor 52 (resistance value Rb1) whose other end is grounded
And the setting data D1 set in the register 36a is High
A switch SH that is turned on at the level (= 1),
The resistor 54 (resistance value Rb2) has one end connected to the output terminal b through the switch SH and the other end grounded.

【0035】即ち、スイッチSH がオフ状態(D1=
0)の時の出力電圧Vb{D1=0}は(1)式にて表され、
スイッチSH がオン状態(D1=1)の時の出力電圧V
b{D1=1}は(2)式にて表される。 Vb{D1=0}=VDD・Rb1/(Ra+Rb1) ・・・(1) Vb{D1=1}=VDD・Rb/(Ra+Rb) ・・・(2) 但し、Rb=Rb1・Rb2/(Rb1+Rb2)であり、Rb1
>Rbであるため、スイッチSH がオン状態の時には、
オフ状態の時に比べて、トランジスタQ2のベースに印
加される電圧は低く(Vb{D1=0}>Vb{D1=1})なる。
That is, the switch SH is in the off state (D1 =
The output voltage Vb {D1 = 0} at the time of 0) is expressed by the equation (1),
Output voltage V when switch SH is on (D1 = 1)
b {D1 = 1} is expressed by equation (2). Vb {D1 = 0} = VDD * Rb1 / (Ra + Rb1) ... (1) Vb {D1 = 1} = VDD * Rb / (Ra + Rb) ... (2) However, Rb = Rb1 * Rb2 / (Rb1 + Rb2) ), And Rb1
Since> Rb, when the switch SH is in the ON state,
The voltage applied to the base of the transistor Q2 becomes lower (Vb {D1 = 0}> Vb {D1 = 1}) than in the off state.

【0036】そして、図4(a)の点線に示すように、
電圧変換信号Vfvが、第2の分圧回路40の出力電圧V
bよりトランジスタのベース・エミッタ間電圧Vbe分だ
け大きいVH0(=Vb{D1=0}+Vbe)、VH1(=Vb{D
1=1}+Vbe)に等しくなる所定のエンジン回転数以上に
て、コレクタ電流Iref は一定値となる。
Then, as shown by the dotted line in FIG.
The voltage conversion signal Vfv is the output voltage V of the second voltage dividing circuit 40.
VH0 (= Vb {D1 = 0} + Vbe), VH1 (= Vb {D, which is larger than the voltage Vbe between the base and emitter of the transistor than b)
The collector current Iref becomes a constant value at a predetermined engine speed equal to or higher than 1 = 1} + Vbe).

【0037】このように、設定データD0,D1により
スレッショルド電流Ifの特性が設定される。次に、第
1の分圧回路20は、設定データD2,D3に応じて、
出力SLij(i,j=0,1、但しiはD2,jはD
3の設定値を表す)のいずれか一つを選択するセレクタ
60と、出力SL00が選択されるとオン状態となるス
イッチS11,S21と、出力SL01が選択されると
オン状態となるスイッチS12,S22と、出力SL1
0が選択されるとオン状態となるスイッチS13,S2
3と、出力SL11が時にされるとオン状態となるスイ
ッチS14,S24と、一端が電源VDDに接続され、他
端が夫々スイッチS11,S12,S13,S14を介
してコンパレータ22の非反転入力への出力端子cに接
続された抵抗61(抵抗値R11、以下同様),63(R
12),65(R13),67(R14)と、一端が夫々スイ
ッチS21,S22,S23,S24を介して出力端子
cに接続され、他端が接地された抵抗62(R21),6
4(R22),66(R23),68(R24)とにより構成
されている。
As described above, the characteristic of the threshold current If is set by the setting data D0 and D1. Next, the first voltage dividing circuit 20 responds to the setting data D2 and D3.
Output SLij (i, j = 0,1, where i is D2 and j is D
(Representing the set value of 3), a selector 60 that selects any one of the switches S11 and S21 that is turned on when the output SL00 is selected, and a switch S12 that is turned on when the output SL01 is selected. S22 and output SL1
Switches S13 and S2 that are turned on when 0 is selected
3 and switches S14 and S24 which are turned on when the output SL11 is turned on, one end of which is connected to the power supply VDD and the other end of which is connected to the non-inverting input of the comparator 22 through the switches S11, S12, S13 and S14, respectively. Of the resistors 61 (resistance value R11, the same applies hereinafter), 63 (R
12), 65 (R13), 67 (R14), and resistors 62 (R21), 6 whose one end is connected to the output terminal c through switches S21, S22, S23, S24, respectively, and whose other end is grounded.
4 (R22), 66 (R23) and 68 (R24).

【0038】なお、各抵抗の抵抗値は、次式(3)〜
(8)の関係を満たすように設定されている。 R21/(R11+R21)=R22/(R12+R22)=K0 ・・・(3) (R11/R21=R12/R22) R23/(R13+R23)=R24/(R14+R24)=K1 ・・・(4) (R13/R23=R14/R24) K0>K1 ・・・(5) R11・K0=R13・K1=α0 ・・・(6) R12・K0=R14・K1=α1 ・・・(7) α0>α1 ・・・(8) そして、セレクタ60により信号SLijが選択されて
いる時に、スレッショルド電流Ifと第1の分圧回路2
0とにより生成されるスレッショルド電圧Vfは、次の
(9)式にて表される。
The resistance value of each resistor is expressed by the following equation (3).
It is set so as to satisfy the relationship of (8). R21 / (R11 + R21) = R22 / (R12 + R22) = K0 ... (3) (R11 / R21 = R12 / R22) R23 / (R13 + R23) = R24 / (R14 + R24) = K1 ... (4) (R13 / R23 = R14 / R24) K0> K1 ・ ・ ・ (5) R11 ・ K0 = R13 ・ K1 = α0 ・ ・ ・ (6) R12 ・ K0 = R14 ・ K1 = α1 ・ ・ ・ (7) α0> α1 ・ ・(8) Then, when the signal SLij is selected by the selector 60, the threshold current If and the first voltage dividing circuit 2
The threshold voltage Vf generated by 0 and is expressed by the following equation (9).

【0039】 Vf{SLij}=VDD・Ki+If・αj ・・・(9) 即ち、図4(b)に示すように、スレッショルド電圧V
fは、(9)式の第1項によりスレッショルド電流If
がゼロである領域A1の電圧値、即ちスレッショルド電
圧Vfの下限値が決定され、第2項によりスレッショル
ド電流Ifがエンジン回転数に応じてリニアに変化する
領域A2の傾き、延いてはスレッショルド電流Ifが一
定となる領域A3の電圧値、即ちスレッショルド電圧V
fの上限値が決定される。
Vf {SLij} = VDD · Ki + If · αj (9) That is, as shown in FIG. 4B, the threshold voltage V
f is the threshold current If according to the first term of the equation (9).
The voltage value in the region A1 where zero is zero, that is, the lower limit value of the threshold voltage Vf is determined, and the slope of the region A2 in which the threshold current If linearly changes according to the engine speed by the second term, and further the threshold current If. Voltage value in the region A3 in which V is constant, that is, the threshold voltage V
The upper limit value of f is determined.

【0040】そして、設定データD3を固定して設定デ
ータD2(即ち、i)のみを変化させると、(9)式の
第1項の値のみが変化するため、領域A2の傾きを変化
させることなくスレッショルド電圧Vfの特性がシフト
し、また、設定データD2を固定して設定データD3
(即ち、j)のみを変化させると、第2項の値のみが変
化するため、スレッショルド電圧Vfの下限値を変化さ
せることなく、領域A2の傾き、及びスレッショルド電
圧Vfの上限値が変化する。
When the setting data D3 is fixed and only the setting data D2 (ie, i) is changed, only the value of the first term in the equation (9) changes, so that the slope of the area A2 should be changed. The characteristic of the threshold voltage Vf is not changed, and the setting data D2 is fixed and the setting data D3 is fixed.
If only (i.e., j) is changed, only the value of the second term is changed. Therefore, the slope of the area A2 and the upper limit of the threshold voltage Vf are changed without changing the lower limit of the threshold voltage Vf.

【0041】なお、図4(b)では、設定データD0=
1,D1=1に固定して設定データD2,D3のみを変
化させることにより得られる4つの特性を示している
が、設定データD0,D1の各組み合せ毎に、同様に4
つの特性を実現できるため、合計16通りの特性を設定
することができる。
In FIG. 4B, the setting data D0 =
Although four characteristics obtained by fixing only 1 and D1 = 1 and changing only the setting data D2 and D3 are shown, 4 characteristics are similarly obtained for each combination of the setting data D0 and D1.
Since one characteristic can be realized, a total of 16 characteristics can be set.

【0042】このように、設定データD0〜D3を適宜
設定することにより、スレッショルド電圧Vf、即ち2
値化信号Sout がHighレベルの時における比較基準値V
thは所望の特性に設定される。つまり、2値化信号Sou
t がLow レベルの時の比較基準信号Vthは、第2スレッ
ショルド生成回路34により、一定値に固定されている
ので、このスレッショルド電圧Vfを変化させることに
より、比較基準信号Vthのヒステリシスの幅を変化させ
ることができるのである。
As described above, by appropriately setting the setting data D0 to D3, the threshold voltage Vf, that is, 2
Comparison reference value V when the digitized signal Sout is at high level
th is set to a desired characteristic. That is, the binarized signal Sou
The comparison reference signal Vth when t is at a low level is fixed to a constant value by the second threshold generation circuit 34. Therefore, by changing the threshold voltage Vf, the width of the hysteresis of the comparison reference signal Vth is changed. It can be done.

【0043】ところで、ダイナミックヒステリシス生成
回路28は、本願出願人が既に出願している特願平6−
211499号に詳述されており、本発明の主要部分で
はないので、その詳細な構成については説明を省略する
が、図5に、ダイナミックヒステリシス生成回路28が
出力するダイナミックヒステリシス電流Imの波形図を
示す。即ち、図5(b)に示すように、ダイナミックヒ
ステリシス電流Imは、2値化信号Sout がLow レベル
からHighレベルに反転した時に、所定の波高値を有し、
以後電圧変換信号Vfvに応じた一定の割合で減衰して、
所定時間Tm後にゼロとなる波形を有する。なお、波高
値は電圧変換信号Vfvの大きさによらず一定であり、従
って、電圧変換信号Vfvが大きい程、即ちエンジン回転
数が大きい程、減衰に要する時間Tmが短くなるように
され、2値化信号Sout がHighレベルからLow レベルに
反転するまでの間に、必ず波高値がゼロとなるようにさ
れている。なお、図5(c)は、スレッショルド電流I
fの波形図であり、図に示すように、スレショルド電流
Ifは、2値化信号Sout がHighレベルの時に、電圧変
換信号Vfvに応じたレベルとなる。
By the way, the dynamic hysteresis generating circuit 28 is disclosed in Japanese Patent Application No. 6-
No. 211499, which is not a main part of the present invention, a detailed description thereof will be omitted. FIG. 5 shows a waveform diagram of the dynamic hysteresis current Im output from the dynamic hysteresis generation circuit 28. Show. That is, as shown in FIG. 5B, the dynamic hysteresis current Im has a predetermined peak value when the binarized signal Sout is inverted from the low level to the high level,
After that, the voltage is attenuated at a constant rate according to the voltage conversion signal Vfv,
It has a waveform that becomes zero after a predetermined time Tm. The peak value is constant regardless of the magnitude of the voltage conversion signal Vfv. Therefore, the larger the voltage conversion signal Vfv, that is, the larger the engine speed, the shorter the time Tm required for damping is. The peak value is always set to zero before the binarized signal Sout is inverted from the high level to the low level. Note that FIG. 5C shows the threshold current I
It is a waveform diagram of f, and as shown in the figure, the threshold current If becomes a level according to the voltage conversion signal Vfv when the binarized signal Sout is at a high level.

【0044】従って、比較基準信号生成回路23にて、
2値化信号Sout がHighレベルの時に生成される比較基
準信号Vthは、図6(a)に示すように、ヒステリシス
電圧Vfに、ダイナミックヒステリシス電流Imが第1
の分圧回路20に流れ込むことにより発生するダイナミ
ックヒステリシス電圧Vfを加算したものとなる。
Therefore, in the comparison reference signal generating circuit 23,
As shown in FIG. 6A, the comparison reference signal Vth generated when the binarized signal Sout is at the high level has the hysteresis voltage Vf and the dynamic hysteresis current Im as the first value.
The dynamic hysteresis voltage Vf generated by flowing into the voltage dividing circuit 20 is added.

【0045】なお、ダイナミックヒステリシス電圧Vm
は、次の(10)式にて求めることができる。 Vm=Im・αi ・・・(10) このように、比較基準電圧Vthがスレッショルド電圧V
f分のヒステリシスを有するため、干渉ノイズNによる
誤動作を防止できる共に、ダイナミックヒステリシス電
圧Vmが加算されていることにより、点火ノイズなど、
スレッショルド電圧Vfより大きな振幅を有するノイズ
N1が交番アナログ信号Sinに重畳されたとしても、図
6(b)に示すように誤動作することがなく、図6
(c)に示すように、検出すべき交番アナログ信号Sin
に正しく対応した2値化信号Sout を得ることができ
る。
The dynamic hysteresis voltage Vm
Can be obtained by the following equation (10). Vm = Im · αi (10) As described above, the comparison reference voltage Vth is equal to the threshold voltage Vth.
Since it has hysteresis for f, it is possible to prevent malfunction due to interference noise N, and because the dynamic hysteresis voltage Vm is added, ignition noise, etc.
Even if the noise N1 having an amplitude larger than the threshold voltage Vf is superimposed on the alternating analog signal Sin, it does not malfunction as shown in FIG.
As shown in (c), the alternating analog signal Sin to be detected
It is possible to obtain a binarized signal Sout that correctly corresponds to

【0046】次に、マイクロコンピュータ14にて実行
される設定データD0〜D3の設定処理を、図7に示す
フローチャートに沿って説明する。なお、この設定処理
は、マイクロコンピュータ14への電源投入直後に行わ
れる初期化処理にて実行された後、所定周期にて繰り返
し実行される。
Next, the setting process of the setting data D0 to D3 executed by the microcomputer 14 will be described with reference to the flowchart shown in FIG. The setting process is repeatedly executed at a predetermined cycle after being executed in the initialization process that is performed immediately after the microcomputer 14 is powered on.

【0047】本処理が起動されると、まず、ステップ1
10にて、予めROMに格納された設定データD0〜D
3を読み出し、続くステップ120では、この読み出し
た設定データD0〜D3を波形整形回路8に転送し、ス
テップ130に進む。ステップ130では、波形整形回
路8からの確認信号ACKによる応答の有無を判断し、
応答が有ればそのまま本処理を終了し、応答が無ければ
ステップ140に移行して、異常処理を実行後、本処理
を終了する。
When this process is started, first, step 1
10, setting data D0 to D stored in the ROM in advance
3 is read, and in the following step 120, the read setting data D0 to D3 is transferred to the waveform shaping circuit 8, and the process proceeds to step 130. In step 130, it is judged whether or not there is a response by the confirmation signal ACK from the waveform shaping circuit 8,
If there is a response, this processing is ended as it is, and if there is no response, the routine proceeds to step 140, where abnormal processing is executed and then this processing is ended.

【0048】なお、ステップ140にて実行される異常
処理としては、例えば、設定データD0〜D3を再送
し、それでも確認信号ACKの応答が無い時には、フロ
ントパネル(図示せず)の所定エリアに通信異常を表す
表示を行ったり、ブザー(図示せず)を鳴動させること
により、運転者に異常を知らせるようにしてもよい。
As the abnormality processing executed in step 140, for example, when the setting data D0 to D3 are retransmitted and there is still no response of the confirmation signal ACK, communication is performed to a predetermined area on the front panel (not shown). The driver may be informed of the abnormality by performing a display indicating the abnormality or sounding a buzzer (not shown).

【0049】以上説明したように、本実施例の波形整形
回路8によれば、スレッショルド電圧Vfの特性を、設
定データD0〜D3により様々に設定できるようにされ
ているので、交番アナログ信号Sout に重畳される干渉
ノイズNの特性が夫々異なる様々な電子制御システムに
共通に使用することができ、しかも使用されるシステム
に応じて最適なスレッショルド電圧Vfを設定すること
ができるため、常に、交番アナログ信号Sinに正確に対
応した2値化信号Sout を供給することができ、電子制
御システムの制御精度や信頼性を向上させることができ
る。
As described above, according to the waveform shaping circuit 8 of the present embodiment, the characteristic of the threshold voltage Vf can be variously set by the setting data D0 to D3, so that the alternating analog signal Sout is set. Since it can be commonly used in various electronic control systems in which the characteristics of the superimposed interference noise N are different from each other and the optimum threshold voltage Vf can be set according to the system used, the alternating analog is always used. It is possible to supply the binarized signal Sout that exactly corresponds to the signal Sin, and it is possible to improve the control accuracy and reliability of the electronic control system.

【0050】また、本実施例の波形整形回路8がシステ
ムに組み込まれた後に、例えば、何等かの理由で回転セ
ンサ6の出力が劣化したり、回転センサ6の近傍に新た
な回転センサが配置される等して使用条件が変化し干渉
ノイズNの特性が変化したとしても、当該波形整形回路
8を取り外して最調整をすることなく、単に設定データ
D0〜D3を変更するだけで、新たな使用条件に応じた
最適なスレッショルド電圧Vfを簡単に再設定すること
ができる。
After the waveform shaping circuit 8 of this embodiment is incorporated in the system, for example, the output of the rotation sensor 6 deteriorates for some reason, or a new rotation sensor is arranged near the rotation sensor 6. Even if the usage conditions change and the characteristics of the interference noise N change due to the above, the waveform shaping circuit 8 is not removed and the setting data D0 to D3 are simply changed without changing the setting data. It is possible to easily reset the optimum threshold voltage Vf according to the usage conditions.

【0051】更に、本実施例によれば、設定データD
0,D1により、エンジン回転数に応じてスレッショル
ド電圧Vfがリニアに変化する下限、及び上限のエンジ
ン回転数を、また、設定データD2,D3により、スレ
ッショルド電圧Vfの下限値、及びスレッショルド電圧
Vfがリニアに変化する領域の特性の傾き(延いては、
スレッショルド電圧Vfの上限値)を、夫々独立に設定
できるようにされているため、所望の特性を容易に設定
することができる。
Further, according to this embodiment, the setting data D
0 and D1 set the lower limit and the upper limit of the engine speed at which the threshold voltage Vf linearly changes according to the engine speed, and the set data D2 and D3 set the lower limit value of the threshold voltage Vf and the threshold voltage Vf. The slope of the characteristic of the region that changes linearly (by extension,
Since the upper limit value of the threshold voltage Vf) can be independently set, desired characteristics can be easily set.

【0052】なお、上記実施例においては、スレッショ
ルド電圧Vfの特性を設定するために、合計4ビットの
設定データD0〜D3を用いているが、必要に応じて5
ビット以上に増やしてもよいし、第1の分圧回路20、
第2の分圧回路40、定電流回路44のいずれかの値を
固定することにより、3ビット以下に減らしてもよい。
In the above embodiment, a total of 4 bits of setting data D0 to D3 is used to set the characteristic of the threshold voltage Vf.
The number of bits may be increased to more than 1 bit, or the first voltage dividing circuit 20,
By fixing the value of either the second voltage dividing circuit 40 or the constant current circuit 44, it may be reduced to 3 bits or less.

【0053】また、上記実施例では、設定データD3に
て、第1の分圧回路20の抵抗値を切り換えることによ
り、スレッショルド電圧Vfの領域A2での特性の傾き
を変化させるようにしているが、トランジスタQ1のエ
ミッタに接続された抵抗38の抵抗値を可変として、電
圧変換信号Vfvに対するトランジスタQ1のコレクタ電
流Iref の傾きを可変とすることで、これを実現しても
よい。
In the above embodiment, the resistance of the first voltage dividing circuit 20 is switched by the setting data D3 to change the slope of the characteristic of the threshold voltage Vf in the area A2. This may be realized by changing the resistance value of the resistor 38 connected to the emitter of the transistor Q1 and changing the slope of the collector current Iref of the transistor Q1 with respect to the voltage conversion signal Vfv.

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

【図1】 本実施例の波形整形回路の全体構成を表す説
明図である。
FIG. 1 is an explanatory diagram showing an overall configuration of a waveform shaping circuit according to an embodiment.

【図2】 電子制御システムの全体構成を表すブロック
図である。
FIG. 2 is a block diagram showing an overall configuration of an electronic control system.

【図3】 判定信号の周波数特性を調整する調整回路を
表す回路図である。
FIG. 3 is a circuit diagram showing an adjustment circuit that adjusts the frequency characteristic of a determination signal.

【図4】 設定データにより判定信号の周波数特性が変
化する様子を表す説明図である。
FIG. 4 is an explanatory diagram showing how the frequency characteristic of a determination signal changes according to setting data.

【図5】 ダイナミックヒステリシス生成回路の動作を
表す説明図である。
FIG. 5 is an explanatory diagram showing an operation of a dynamic hysteresis generation circuit.

【図6】 波形整形回路の動作を表す説明図である。FIG. 6 is an explanatory diagram showing the operation of the waveform shaping circuit.

【図7】 マイクロコンピュータにて実行される設定処
理を表すフローチャートである。
FIG. 7 is a flowchart showing a setting process executed by a microcomputer.

【図8】 従来装置の構成を表すブロック図である。FIG. 8 is a block diagram showing a configuration of a conventional device.

【図9】 従来装置の問題点を表す説明図である。FIG. 9 is an explanatory diagram showing a problem of the conventional device.

【図10】 エンジン回転数とスレッショルド電圧との
関係を表すグラフである。
FIG. 10 is a graph showing a relationship between engine speed and threshold voltage.

【図11】 従来装置の動作を表す説明図である。FIG. 11 is an explanatory diagram showing the operation of the conventional device.

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

2…シグナルロータ 2a,2b,2c,2d…突
起 4…電磁ピックアップ 6…回転センサ 8…
波形整形回路 10…A/Dコンバータ 12…入力バッファ 14
…マイクロコンピュータ 20…第1の分圧回路 22…コンパレータ 23
…比較基準信号生成回路 24…F/V変換回路 26,30…ダイオード 28…ダイナミックヒステリシス生成回路 32…第1
スレッショルド生成回路 34…第2スレッショルド生成回路 36…設定回路
36a…レジスタ 38,42,45,50,52,54,61〜68…抵
抗 40…第2の分圧回路 43,47…反転回路 4
4…定電流回路 46,48…定電流源 60…セレクタ Q1,Q2,Q3,Q4,Q5,Q6,Q7…トランジ
スタ
2 ... Signal rotor 2a, 2b, 2c, 2d ... Protrusion 4 ... Electromagnetic pickup 6 ... Rotation sensor 8 ...
Waveform shaping circuit 10 ... A / D converter 12 ... Input buffer 14
... microcomputer 20 ... first voltage dividing circuit 22 ... comparator 23
... comparison reference signal generation circuit 24 ... F / V conversion circuit 26, 30 ... diode 28 ... dynamic hysteresis generation circuit 32 ... first
Threshold generating circuit 34 ... Second threshold generating circuit 36 ... Setting circuit 36a ... Registers 38, 42, 45, 50, 52, 54, 61-68 ... Resistor 40 ... Second voltage dividing circuit 43, 47 ... Inversion circuit 4
4 ... Constant current circuit 46, 48 ... Constant current source 60 ... Selector Q1, Q2, Q3, Q4, Q5, Q6, Q7 ... Transistor

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 所定の回転センサから入力される交番ア
ナログ信号と、大小2つの判定レベルを有し、交番アナ
ログ信号が大きい判定レベルより大きくなると小さい判
定レベルに変化し、小さい判定レベルより小さくなると
大きい判定レベルに変化する判定信号とを比較して、上
記交番アナログ信号に対応した2値化信号を生成する比
較手段と、 該比較手段からの2値化信号に基づき、2つの判定レベ
ルの差が上記交番アナログ信号の周波数に対して所定の
周波数特性を有する判定信号を生成する判定信号生成手
段と、 を備えた波形整形回路において、 上記判定信号生成手段を、外部から入力される設定信号
に応じて、上記2つの判定レベルの差の周波数特性を変
更可能に構成したことを特徴とする波形整形回路。
1. An alternating analog signal input from a predetermined rotation sensor and a large and small judgment level. When the alternating analog signal becomes larger than a large judgment level, it changes to a small judgment level, and when it becomes smaller than a small judgment level. A comparison unit that compares a judgment signal that changes to a larger judgment level to generate a binarized signal corresponding to the alternating analog signal, and a difference between the two judgment levels based on the binarized signal from the comparison unit. In a waveform shaping circuit, wherein the determination signal generating means generates a determination signal having a predetermined frequency characteristic with respect to the frequency of the alternating analog signal, and the determination signal generating means is set to an externally input setting signal. Accordingly, the waveform shaping circuit is configured so that the frequency characteristic of the difference between the two determination levels can be changed.
【請求項2】 上記判定信号生成手段は、 上記交番アナログ信号の周波数に比例した大きさの基本
信号を生成する基本信号生成手段と、 上記基本信号の上限値および下限値を制限するレベル制
限手段、該基本信号を増幅する増幅手段、該基本信号の
信号レベルをシフトするレベルシフト手段を有し、該基
本信号から所定の周波数特性を有する第1の判定レベル
を生成する第1判定レベル生成手段と、 所定の固定レベルとなる第2の判定レベルを生成する第
2判定レベル生成手段と、 を備え、上記レベル制限手段の上限値,上記増幅手段の
増幅率,及び上記レベルシフト手段のシフト量のうち少
なくともいずれか一つが、上記設定信号に応じて変更可
能なように構成されていることを特徴とする請求項1に
記載の波形整形回路。
2. The determination signal generating means, a basic signal generating means for generating a basic signal having a magnitude proportional to the frequency of the alternating analog signal, and a level limiting means for limiting an upper limit value and a lower limit value of the basic signal. First determination level generating means for generating a first determination level having a predetermined frequency characteristic from the basic signal, the amplification means amplifying the basic signal, and level shifting means for shifting the signal level of the basic signal. And a second judgment level generating means for generating a second judgment level which is a predetermined fixed level, and an upper limit value of the level limiting means, an amplification factor of the amplifying means, and a shift amount of the level shifting means. The waveform shaping circuit according to claim 1, wherein at least one of them is configured to be changeable according to the setting signal.
JP29138495A 1995-11-09 1995-11-09 Waveform shaping circuit Expired - Fee Related JP3552371B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29138495A JP3552371B2 (en) 1995-11-09 1995-11-09 Waveform shaping circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29138495A JP3552371B2 (en) 1995-11-09 1995-11-09 Waveform shaping circuit

Publications (2)

Publication Number Publication Date
JPH09133693A true JPH09133693A (en) 1997-05-20
JP3552371B2 JP3552371B2 (en) 2004-08-11

Family

ID=17768226

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29138495A Expired - Fee Related JP3552371B2 (en) 1995-11-09 1995-11-09 Waveform shaping circuit

Country Status (1)

Country Link
JP (1) JP3552371B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011141179A (en) * 2010-01-07 2011-07-21 Toyota Central R&D Labs Inc Voltage processing circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011141179A (en) * 2010-01-07 2011-07-21 Toyota Central R&D Labs Inc Voltage processing circuit

Also Published As

Publication number Publication date
JP3552371B2 (en) 2004-08-11

Similar Documents

Publication Publication Date Title
KR101433399B1 (en) Active sensor with operating mode changeover
US7345468B2 (en) Detection signal processing circuit and detection signal processing apparatus for a rotation sensor
JP4745679B2 (en) Sensor with multiple data outputs
US20100013467A1 (en) Rotation sensor
US6279375B1 (en) Method of setting switching points for a sensor output signal
US6445176B1 (en) Self-adaptive sensor unit for determining pulse switching points
US7032570B2 (en) Electronic throttle control device for engine
US6584428B1 (en) Position sensor for a motor vehicle
US6756761B2 (en) Vehicular generator control system and method responsive to external signals
JPH09133693A (en) Waveform shaping circuit
US20030038623A1 (en) Sensor apparatus and method for generating an output signal of a sensor apparatus
US6647958B2 (en) Throttle control apparatus for internal combustion engine
JPH1173226A (en) Control circuit generating control signal proportional to position of input device
US6967476B2 (en) Method and assembly for determining rational speed with variable switching hysteresis
KR100615841B1 (en) Ignition control device and method
JPH0136067B2 (en)
US20030039320A1 (en) Device and method for determining the respectively present level of a digital signal
WO2019171814A1 (en) Vehicle-mounted system
JP2007017360A (en) Indicating instrument
JP4695806B2 (en) Inductive rotational speed sensor input circuit
JP2007069741A (en) Car-mounted electronic control device
JP2020010236A (en) On-vehicle system
JPH06225476A (en) Controller of charging generator for vehicle
JPH06109506A (en) Heating element type air flowmeter
JPH11337368A (en) Magnetic detection circuit

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Effective date: 20040413

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040426

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110514

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120514

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20120514

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20130514

LAPS Cancellation because of no payment of annual fees