JP7368112B2 - Motor current value detection device - Google Patents

Motor current value detection device Download PDF

Info

Publication number
JP7368112B2
JP7368112B2 JP2019106266A JP2019106266A JP7368112B2 JP 7368112 B2 JP7368112 B2 JP 7368112B2 JP 2019106266 A JP2019106266 A JP 2019106266A JP 2019106266 A JP2019106266 A JP 2019106266A JP 7368112 B2 JP7368112 B2 JP 7368112B2
Authority
JP
Japan
Prior art keywords
value
offset correction
output
converter
operational amplifier
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.)
Active
Application number
JP2019106266A
Other languages
Japanese (ja)
Other versions
JP2020202615A (en
Inventor
桂一 森
正大 石島
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.)
Mitsuba Corp
Original Assignee
Mitsuba 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 Mitsuba Corp filed Critical Mitsuba Corp
Priority to JP2019106266A priority Critical patent/JP7368112B2/en
Publication of JP2020202615A publication Critical patent/JP2020202615A/en
Application granted granted Critical
Publication of JP7368112B2 publication Critical patent/JP7368112B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、モータ電流値検出装置に関する。 The present invention relates to a motor current value detection device.

電流がシャント抵抗に流れることにより生じるシャント抵抗の両端の電圧をオペアンプで増幅後、A/D(アナログ/デジタル)変換して当該電流の値を検出する技術が知られている。 A known technique is to amplify the voltage across a shunt resistor caused by current flowing through the shunt resistor using an operational amplifier, and then perform A/D (analog/digital) conversion to detect the value of the current.

特開2017-79515号公報JP2017-79515A

オペアンプは、一般的に、僅かな入力オフセット電圧があり、その入力オフセット電圧がマイナス(0未満の値)であるものも、個体差によって存在する。僅かな入力オフセット電圧自体は実質的な問題とならない場合が多いが、入力オフセット電圧がマイナスである場合、電流の立ち上がりに対してアンプの出力電圧の立ち上がりが遅れることで、検出精度が悪くなる場合がある。 Operational amplifiers generally have a slight input offset voltage, and some have negative input offset voltages (values less than 0) due to individual differences. A slight input offset voltage itself is often not a real problem, but if the input offset voltage is negative, the rise of the amplifier's output voltage is delayed with respect to the rise of the current, which may deteriorate detection accuracy. There is.

本発明は、このような点を鑑みてなされたものであり、電流の立ち上がりに対するアンプの出力電圧の立ち上がりの遅れを低減できるモータ電流値検出装置を提供することを目的とする。 The present invention has been made in view of these points, and an object of the present invention is to provide a motor current value detection device that can reduce the delay in the rise of the output voltage of the amplifier with respect to the rise of the current.

1つの側面では、検出対象の電流が流れる抵抗の両端に電気的に接続されるアンプと、
前記アンプの出力側に電気的に接続され、前記アンプの出力をA/D変換して出力するA/D変換器と、
前記検出対象の電流が流れていない無通電状態において前記アンプの入力が0未満である場合に、前記アンプの入力オフセット補正電圧を補正するオフセット補正処理を実行するオフセット補正部と、
を備えるモータ電流値検出装置が提供される。
In one aspect, an amplifier electrically connected across a resistor through which a current to be detected flows;
an A/D converter that is electrically connected to the output side of the amplifier and converts the output of the amplifier into A/D and outputs the A/D converter;
an offset correction unit that performs offset correction processing to correct an input offset correction voltage of the amplifier when the input of the amplifier is less than 0 in a non-energized state where the current to be detected is not flowing;
A motor current value detection device is provided.

本発明によれば、電流の立ち上がりに対するアンプの出力電圧の立ち上がりの遅れを低減できるモータ電流値検出装置を提供できる。 According to the present invention, it is possible to provide a motor current value detection device that can reduce the delay in the rise of the output voltage of the amplifier with respect to the rise of the current.

本発明のモータ電流値検出装置が適用可能な電動オイルポンプ1の概略構成の一例を示す図である。1 is a diagram showing an example of a schematic configuration of an electric oil pump 1 to which a motor current value detection device of the present invention is applicable. 駆動装置8の概略構成を示す図である。3 is a diagram showing a schematic configuration of a drive device 8. FIG. オペアンプ121の入力オフセット電圧がプラス側である場合の各種波形を示す図である。5 is a diagram showing various waveforms when the input offset voltage of the operational amplifier 121 is on the plus side. FIG. オペアンプ121の入力オフセット電圧がマイナス側である場合の各種時系列波形を示す図である。5 is a diagram showing various time-series waveforms when the input offset voltage of the operational amplifier 121 is on the negative side. FIG. オフセット補正レジスタの設定値の補正方法の説明図である。FIG. 3 is an explanatory diagram of a method of correcting a setting value of an offset correction register. オフセット補正レジスタの補正目標値の探索方法の一例の説明図である。FIG. 3 is an explanatory diagram of an example of a method of searching for a correction target value of an offset correction register. オフセット補正部130の動作例を示す概略フローチャートである。3 is a schematic flowchart showing an example of the operation of the offset correction section 130.

以下、添付図面を参照しながら本発明の各実施形態について詳細に説明する。 Hereinafter, each embodiment of the present invention will be described in detail with reference to the accompanying drawings.

ここでは、まず、本発明のモータ電流値検出装置の説明に先立って、本発明のモータ電流値検出装置が適用可能な電動オイルポンプについて説明する。 Here, first, prior to explaining the motor current value detection device of the present invention, an electric oil pump to which the motor current value detection device of the present invention is applicable will be explained.

図1は、本発明のモータ電流値検出装置が適用可能な電動オイルポンプ1の概略構成の一例を示す図である。本発明のモータ電流値検出装置は、電動オイルポンプ1に適用されるのが好適であるが、電流値の検出を必要とする他の任意の電子機器に適用可能である。 FIG. 1 is a diagram showing an example of a schematic configuration of an electric oil pump 1 to which a motor current value detection device of the present invention is applicable. The motor current value detection device of the present invention is preferably applied to the electric oil pump 1, but can be applied to any other electronic device that requires detection of a current value.

電動オイルポンプ1は、例えば、車両に搭載される無段変速機等の油圧機器などのオイル供給先Tにオイルを供給する油圧供給源として用いられるものである。 The electric oil pump 1 is used, for example, as a hydraulic pressure supply source that supplies oil to an oil supply destination T such as a hydraulic device such as a continuously variable transmission mounted on a vehicle.

電動オイルポンプ1は、ECU(Electronic Control Unit)2に接続されている。電動オイルポンプ1は、オイルパン3内に貯留されたオイルを汲み上げ、油圧を付与してオイル供給先Tにオイルを供給する。 The electric oil pump 1 is connected to an ECU (Electronic Control Unit) 2. The electric oil pump 1 pumps up oil stored in an oil pan 3, applies hydraulic pressure, and supplies the oil to an oil supply destination T.

ECU2は、電動オイルポンプ1及び温度センサ4に接続されている。また、ECU2は、CAN(Controller Area Network)などの適切なバス(図示せず)を介して、車両内の各種の電子部品(他のECUや各種センサ等)に接続されている。ECU2は、アンドリングストップ等でエンジン停止した場合においてオイル供給先Tにオイルを供給するために、電動オイルポンプ1を駆動させる。例えば、ECU2は、エンジン停止した場合には、温度センサ4が測定したオイルの温度に応じて、モータに流す相電流の目標値(以下、「相電流目標値」という)を含む駆動指令を電動オイルポンプ1に送信する。
電動オイルポンプ1は、オイルポンプ5、モータ6、回転角検出部7、及び駆動装置8を備える。
ECU 2 is connected to electric oil pump 1 and temperature sensor 4 . Further, the ECU 2 is connected to various electronic components (other ECUs, various sensors, etc.) in the vehicle via an appropriate bus (not shown) such as a CAN (Controller Area Network). The ECU 2 drives the electric oil pump 1 in order to supply oil to the oil supply destination T when the engine is stopped due to an engine stop or the like. For example, when the engine is stopped, the ECU 2 sends a drive command including a target value of the phase current to the motor (hereinafter referred to as "target phase current value") according to the temperature of the oil measured by the temperature sensor 4. Send to oil pump 1.
The electric oil pump 1 includes an oil pump 5, a motor 6, a rotation angle detection section 7, and a drive device 8.

オイルポンプ5は、モータ6及びオイル供給先Tに接続されている。オイルポンプ5は、モータ6によって駆動されるポンプである。オイルポンプ5は、モータ6に駆動されることによりオイルパン3内のオイルをオイル供給先Tに圧送する。 The oil pump 5 is connected to the motor 6 and the oil supply destination T. The oil pump 5 is a pump driven by a motor 6. The oil pump 5 is driven by a motor 6 to pump oil in the oil pan 3 to an oil supply destination T.

モータ6は、永久磁石を有するロータと、3相(U、V、W)それぞれに対応するコイルLu、Lv、Lwがロータの回転方向に順に巻装されているステータとを備えている。各相のコイルLu、Lv、Lwのそれぞれは、駆動装置8に接続されている。例えば、モータ6は、ブラシレスモータである。 The motor 6 includes a rotor having permanent magnets, and a stator in which coils Lu, Lv, and Lw corresponding to three phases (U, V, and W) are wound in order in the rotational direction of the rotor. Each of the coils Lu, Lv, and Lw of each phase is connected to a drive device 8. For example, motor 6 is a brushless motor.

回転角検出部7は、モータ6の回転角度を検出する。そして、回転角検出部7は、検出した回転角度に応じた出力信号を駆動装置8に出力する。 The rotation angle detection section 7 detects the rotation angle of the motor 6. Then, the rotation angle detection section 7 outputs an output signal corresponding to the detected rotation angle to the drive device 8.

駆動装置8は、ECU2及びモータ6に接続されている。駆動装置8は、ECU2から出力される駆動指令に基づいて、モータ6の駆動を制御する。例えば、駆動装置8は、モータ6の相電流が、ECU2から入力される駆動指令に含まれる相電流目標値になるようにフィードバック制御する。また、駆動装置8は、モータ6が高回転で回転する際のモータトルクを高めるために弱め磁束制御を行ない、モータ6に通電する通電タイミングを進角側に進める進角制御を実行する。 The drive device 8 is connected to the ECU 2 and the motor 6. The drive device 8 controls the drive of the motor 6 based on a drive command output from the ECU 2. For example, the drive device 8 performs feedback control so that the phase current of the motor 6 becomes the phase current target value included in the drive command input from the ECU 2. Further, the drive device 8 performs magnetic flux weakening control to increase the motor torque when the motor 6 rotates at high rotation speed, and performs advance angle control to advance the timing of energizing the motor 6 to the advance side.

図2は、駆動装置8の概略構成を示す図である。 FIG. 2 is a diagram showing a schematic configuration of the drive device 8. As shown in FIG.

図2に示すように、駆動装置8は、電源部9、インバータ10、シャント抵抗11、及びマイクロコンピュータ12(以下、「マイコン12」という)を備える。 As shown in FIG. 2, the drive device 8 includes a power supply section 9, an inverter 10, a shunt resistor 11, and a microcomputer 12 (hereinafter referred to as "microcomputer 12").

電源部9は、例えば、車両に搭載されるバッテリである。電源部9は、ニッケル水素電池やリチウムイオン電池のような二次電池であってもよい。また、二次電池の代わりに、電気二重層キャパシタ(コンデンサ)を用いることもできる。 The power supply unit 9 is, for example, a battery mounted on a vehicle. The power supply section 9 may be a secondary battery such as a nickel metal hydride battery or a lithium ion battery. Moreover, an electric double layer capacitor (capacitor) can also be used instead of a secondary battery.

インバータ10は、複数のスイッチング素子SWを有し、このスイッチング素子のオンとオフとをPWM(Pulse Width Modulation:パルス幅変調)制御することで電源電流を相電流に変換する。具体的には、インバータ10は、6つのスイッチング素子SW1~SW6を有している。インバータ10は、スイッチング素子SW1~SW6のオンとオフとを切り替えて電源電流を相電流に変換する。 The inverter 10 includes a plurality of switching elements SW, and converts a power supply current into a phase current by controlling the ON and OFF states of the switching elements using PWM (Pulse Width Modulation). Specifically, inverter 10 has six switching elements SW1 to SW6. Inverter 10 converts power supply current into phase current by switching switching elements SW1 to SW6 on and off.

直列に接続されたスイッチング素子SW1、SW4と、直列に接続されたスイッチング素子SW2、SW5と、直列に接続されたスイッチング素子SW3、SW6とは、電源部9の高電位側と、接地電位との間に並列に接続されている。 The switching elements SW1 and SW4 connected in series, the switching elements SW2 and SW5 connected in series, and the switching elements SW3 and SW6 connected in series are connected to the high potential side of the power supply section 9 and the ground potential. are connected in parallel between.

また、スイッチング素子SW1とスイッチング素子SW4との接続点は、コイルLuの一端に接続されている。スイッチング素子SW2とスイッチング素子SW5との接続点は、コイルLvの一端に接続されている。スイッチング素子SW3とスイッチング素子SW6との接続点は、コイルLwの一端に接続されている。 Further, a connection point between the switching element SW1 and the switching element SW4 is connected to one end of the coil Lu. A connection point between switching element SW2 and switching element SW5 is connected to one end of coil Lv. A connection point between switching element SW3 and switching element SW6 is connected to one end of coil Lw.

本実施形態では、スイッチング素子SWがn型チャネルのFET(Field Effect Transistor)である場合について説明するが、これに限定されず、例えば、IGBT(Insulated Gate Bipolar Transistor)、及びBJT(Bipolar Junction Transistor)であってもよい。各スイッチング素子SW1~SW6は、還流ダイオードD1~D6と並列に接続された構成を有している。また、各スイッチング素子SW1~SW6は、ゲート端子がマイコン12に接続されている。 In this embodiment, a case will be described in which the switching element SW is an n-type channel FET (Field Effect Transistor), but the present invention is not limited to this. Transistor) It may be. Each switching element SW1 to SW6 has a configuration in which it is connected in parallel with a free wheeling diode D1 to D6. Furthermore, gate terminals of each of the switching elements SW1 to SW6 are connected to the microcomputer 12.

シャント抵抗11は、インバータ10の低電位側とグランドとの間に設けられている。なお、変形例では、シャント抵抗11は、インバータ10の高電位側と電源部9との間に設けられてもよい。シャント抵抗11は、相電流を検出するための電流センサの一要素を形成する。 Shunt resistor 11 is provided between the low potential side of inverter 10 and ground. Note that in a modification, the shunt resistor 11 may be provided between the high potential side of the inverter 10 and the power supply section 9. The shunt resistor 11 forms an element of a current sensor for detecting phase currents.

マイコン12は、モータ電流値検出装置を形成する。マイコン12は、図2に示すように、モータ制御部120と、オペアンプ121と、A/Dコンバータ122と、電流値取得部124と、オフセット補正部130とを含む。なお、モータ制御部120、電流値取得部124、及びオフセット補正部130は、例えばマイコン12のCPU(Central Processing Unit)(図示せず)がマイコン12のROM(Read Only Memory)のような記憶装置(図示せず)内のプログラムを実行することで実現できる。 The microcomputer 12 forms a motor current value detection device. As shown in FIG. 2, the microcomputer 12 includes a motor control section 120, an operational amplifier 121, an A/D converter 122, a current value acquisition section 124, and an offset correction section 130. The motor control unit 120, the current value acquisition unit 124, and the offset correction unit 130 are configured such that, for example, a CPU (Central Processing Unit) (not shown) of the microcomputer 12 is connected to a storage device such as a ROM (Read Only Memory) of the microcomputer 12. This can be achieved by executing a program in (not shown).

モータ制御部120は、ECU2からの駆動指令に応答し、インバータ10を駆動制御することで、モータ6を制御する。この際、上述のように、モータ制御部120は、電流値取得部124からの相電流情報に基づいて、相電流情報の相電流が相電流目標値に一致するように、インバータ10のスイッチング素子SW1~スイッチング素子SW6のそれぞれのゲート電極にゲート信号を印加する。なお、モータ6の制御方法の詳細は任意である。 The motor control unit 120 controls the motor 6 by controlling the drive of the inverter 10 in response to a drive command from the ECU 2 . At this time, as described above, the motor control unit 120 controls the switching elements of the inverter 10 based on the phase current information from the current value acquisition unit 124 so that the phase current in the phase current information matches the phase current target value. A gate signal is applied to each gate electrode of SW1 to switching element SW6. Note that the details of the method of controlling the motor 6 are arbitrary.

オペアンプ121は、非反転入力端子と反転入力端子と、一つの出力端子とを備え、演算増幅器とも呼ばれる。オペアンプ121は、非反転入力端子がシャント抵抗11の高電位側に電気的に接続され、反転入力端子がシャント抵抗11の低電位側に電気的に接続され、出力端子がA/Dコンバータ122に電気的に接続されている。オペアンプ121は、相電流を検出するための電流センサの一要素を形成する。 The operational amplifier 121 includes a non-inverting input terminal, an inverting input terminal, and one output terminal, and is also called an operational amplifier. The operational amplifier 121 has a non-inverting input terminal electrically connected to the high potential side of the shunt resistor 11, an inverting input terminal electrically connected to the low potential side of the shunt resistor 11, and an output terminal connected to the A/D converter 122. electrically connected. The operational amplifier 121 forms one element of a current sensor for detecting phase currents.

オペアンプ121は、シャント抵抗11の両端に生じる電圧差を増幅してA/Dコンバータ122に出力する。具体的には、オペアンプ121は、4つの抵抗R1からR4と協動して差動入力回路を構成する。この場合、例えば、R1=R3、R2=R4とし、シャント抵抗11の高電位側の電位をV2とし、シャント抵抗11の低電位側の電位をV1とすると、オペアンプ121の出力電圧V0は、V0=R2/R1(V2-V1)となる。 The operational amplifier 121 amplifies the voltage difference occurring across the shunt resistor 11 and outputs it to the A/D converter 122. Specifically, the operational amplifier 121 configures a differential input circuit in cooperation with four resistors R1 to R4. In this case, for example, if R1=R3, R2=R4, the potential on the high potential side of the shunt resistor 11 is V2, and the potential on the low potential side of the shunt resistor 11 is V1, the output voltage V0 of the operational amplifier 121 is V0. =R2/R1(V2-V1).

A/Dコンバータ122は、オペアンプ121からの出力(アナログ信号)をデジタル信号に変換し、電流値取得部124に出力する。A/Dコンバータ122は、PWM信号の立ち上がり(オンデューティの立ち上がり)エッジから所定時間ΔT2経過後に、オペアンプ121からの出力のサンプリングを行う。すなわち、A/D変換のタイミングは、PWM信号の立ち上がりエッジから所定時間ΔT2後である。所定時間ΔT2は、例えば固定であり、PWM信号のオンデューティの期間の取りうる最小値よりも有意に短い。 The A/D converter 122 converts the output (analog signal) from the operational amplifier 121 into a digital signal and outputs it to the current value acquisition section 124. The A/D converter 122 samples the output from the operational amplifier 121 after a predetermined time ΔT2 has elapsed from the rising edge of the PWM signal (rising edge of the on-duty). That is, the timing of A/D conversion is a predetermined time ΔT2 after the rising edge of the PWM signal. The predetermined time ΔT2 is, for example, fixed, and is significantly shorter than the minimum possible value of the on-duty period of the PWM signal.

電流値取得部124は、A/Dコンバータ122からの出力信号に基づいて、相電流を算出し、相電流情報を生成する。 The current value acquisition unit 124 calculates the phase current based on the output signal from the A/D converter 122, and generates phase current information.

オフセット補正部130は、オペアンプ121の入力オフセット電圧に起因したオペアンプ121の出力電圧のオフセットを、補償するためのオフセット補正を実行する。なお、オフセット補正部130の機能は、例えば既存のマイコン12が備えるAMP入力オフセット補正機能を利用して実現できる。 The offset correction unit 130 performs offset correction to compensate for the offset of the output voltage of the operational amplifier 121 caused by the input offset voltage of the operational amplifier 121. Note that the function of the offset correction section 130 can be realized by using, for example, an AMP input offset correction function provided in the existing microcomputer 12.

入力オフセット電圧とは、差動入力回路を構成するオペアンプが持つ誤差電圧を指し、理想的なオペアンプでは入力オフセット電圧は0V(すなわち“オフセットなし”)である。しかしながら、一般的に、実際のオペアンプ(規格値を満たすオペアンプ)は、僅かな入力オフセット電圧を有する場合が多く、また、入力オフセット電圧の値は、経年劣化や温度変化等によって変化しうる。なお、通常、相電流を検出するためのオペアンプ(例えばオペアンプ121)では、ある程度の入力オフセット電圧は、所定値以下の相電流情報を利用しないことやA/D変換のタイミングを適切に設定すること等により相電流情報の精度に影響しないようにすることができ、実質的に問題とならない。 The input offset voltage refers to an error voltage possessed by an operational amplifier that constitutes a differential input circuit, and in an ideal operational amplifier, the input offset voltage is 0V (that is, "no offset"). However, in general, actual operational amplifiers (operational amplifiers that meet standard values) often have a slight input offset voltage, and the value of the input offset voltage can change due to aging, temperature changes, and the like. Note that normally, in an operational amplifier for detecting phase current (for example, operational amplifier 121), if the input offset voltage is to a certain extent, it is necessary not to use phase current information below a predetermined value and to appropriately set the timing of A/D conversion. etc., it is possible to prevent the accuracy of the phase current information from being affected, and there is no substantial problem.

しかしながら、近年では、制御可能領域(デューティの可変幅)をできるだけ広範に設定したいという要望が強くなりつつある。 However, in recent years, there has been a growing desire to set the controllable range (variable range of duty) as wide as possible.

ここで、入力オフセット電圧についての規格値は、通常、絶対値で表記されるが、入力オフセット電圧は、プラス側(+極性)とマイナス側(-極性)とがある。入力オフセット電圧がマイナス側(0未満の値)となるオペアンプの場合、オペアンプの出力電圧の立ち上がりが遅れる事象(以下、「立ち上がり遅れ事象」と称する)が発生することで、検出精度が悪くなる場合がある。立ち上がり遅れ事象について、図3及び図4を参照して説明する。 Here, the standard value for the input offset voltage is usually expressed as an absolute value, and the input offset voltage has a positive side (+ polarity) and a negative side (- polarity). In the case of an operational amplifier where the input offset voltage is on the negative side (a value less than 0), an event in which the rise of the operational amplifier's output voltage is delayed (hereinafter referred to as a "rise delay event") occurs, resulting in poor detection accuracy. There is. The rise delay event will be explained with reference to FIGS. 3 and 4.

図3は、オペアンプ121の入力オフセット電圧がプラス側である場合の各種波形を示す図であり、図4は、オペアンプ121の入力オフセット電圧がマイナス側である場合の各種時系列波形を示す図である。図3及び図4では、それぞれ上側から、PWM信号の時系列波形、オペアンプ121の入力電圧(図3及び図4では、「AMP入力電圧」と表記)の時系列波形、及びオペアンプ121の出力電圧(図3及び図4では、「AMP出力電圧」と表記)の時系列波形が示される。 FIG. 3 is a diagram showing various waveforms when the input offset voltage of the operational amplifier 121 is on the positive side, and FIG. 4 is a diagram showing various time series waveforms when the input offset voltage of the operational amplifier 121 is on the negative side. be. 3 and 4, from the top, the time series waveform of the PWM signal, the time series waveform of the input voltage of the operational amplifier 121 (indicated as "AMP input voltage" in FIGS. 3 and 4), and the output voltage of the operational amplifier 121, respectively. A time-series waveform (denoted as "AMP output voltage" in FIGS. 3 and 4) is shown.

PWM信号の時系列波形は、PWM信号のオン/オフ状態を表し、ΔT10は、オンデューティの期間を表し、ΔT11は、オフデューティの期間を表す。なお、図3では、オンデューティの期間ΔT10の方がオフデューティの期間ΔT11よりも長いが、立ち上がり遅れ事象は、オンデューティの期間ΔT10が比較的長い場合でも生じる。 The time series waveform of the PWM signal represents the on/off state of the PWM signal, ΔT10 represents the on-duty period, and ΔT11 represents the off-duty period. Note that in FIG. 3, the on-duty period ΔT10 is longer than the off-duty period ΔT11, but the rise delay event occurs even when the on-duty period ΔT10 is relatively long.

オペアンプ121の入力電圧の時系列波形には、0Vのラインが併せて示される。図3では、PWM信号のオフデューティ期間でのオペアンプ121の入力電圧は、0Vよりもわずかに大きいが、図4では、PWM信号のオフデューティ期間でのオペアンプ121の入力電圧は、0Vよりもわずかに小さい。なお、このような0Vからの“ズレ”は、上述した入力オフセット電圧に起因して生じる。 The time-series waveform of the input voltage of the operational amplifier 121 also shows a 0V line. In FIG. 3, the input voltage of the operational amplifier 121 during the off-duty period of the PWM signal is slightly greater than 0V, whereas in FIG. 4, the input voltage of the operational amplifier 121 during the off-duty period of the PWM signal is slightly greater than 0V. small. Note that such a "deviation" from 0V occurs due to the above-mentioned input offset voltage.

オペアンプ121の出力電圧は、図3及び図4に示すように、PWM信号の立ち上がり(例えば時点t0参照)に応じたオペアンプ121の入力電圧の立ち上がり応じて立ち上がり(例えば時点t1、時点t1’参照)、PWM信号の立ち下がりに応じたオペアンプ121の入力電圧の立ち下がりに応じて立ち下がるが、立ち上がりの際には、遅れ時間ΔT1が生じる。この遅れ時間ΔT1は、入力オフセット電圧がプラス側である場合、図3に示すように、顕著でないものの、入力オフセット電圧がマイナス側である場合、図4に示すように、顕著となる。これは、オペアンプは、入力電圧が負のときは非アクティブ状態であり、入力電圧が正になってから起動するためである。すなわち、入力オフセット電圧がマイナス側である場合、入力電圧が正になるまでの僅かな時間分だけ、起動が遅れ、その分だけ、遅れ時間ΔT1が長くなる傾向となる。 As shown in FIGS. 3 and 4, the output voltage of the operational amplifier 121 rises in response to the rise of the input voltage of the operational amplifier 121 (see, for example, time t1 and time t1') in response to the rise of the PWM signal (see, for example, time t0). , falls in response to the fall of the input voltage of the operational amplifier 121 in response to the fall of the PWM signal, but a delay time ΔT1 occurs at the time of rise. This delay time ΔT1 is not significant when the input offset voltage is on the plus side, as shown in FIG. 3, but becomes significant when the input offset voltage is on the minus side, as shown in FIG. 4. This is because the operational amplifier is inactive when the input voltage is negative and is activated only when the input voltage becomes positive. That is, when the input offset voltage is on the negative side, startup is delayed by a small amount of time until the input voltage becomes positive, and the delay time ΔT1 tends to become longer by that amount.

このような遅れ時間ΔT1が長くなると、オペアンプ121の出力電圧が十分立ち上がる前に、A/Dコンバータ122によるA/D変換のタイミング(時点t2、矢印R1参照)が到来し、A/Dコンバータ122の出力値が、所期の値(図3及び図4では、「Vn」と表記)よりも有意に低くなる。この結果、電流値取得部124で算出される相電流の値が、所期の値(すなわち、Vnから求められるべき値)よりも低くなる。 When such a delay time ΔT1 becomes longer, the timing of A/D conversion by the A/D converter 122 (time t2, see arrow R1) arrives before the output voltage of the operational amplifier 121 rises sufficiently, and the A/D converter 122 The output value becomes significantly lower than the expected value (denoted as "Vn" in FIGS. 3 and 4). As a result, the value of the phase current calculated by the current value acquisition unit 124 becomes lower than the expected value (that is, the value that should be obtained from Vn).

このようにしてオペアンプ121の入力オフセット電圧がマイナス側である場合、オペアンプ121の出力電圧の立ち上がりが遅れることで、相電流の検出精度が悪くなる場合がある。これは、オペアンプ121の入力オフセット電圧がプラス側である場合には生じない課題である(図3参照)。 In this way, when the input offset voltage of the operational amplifier 121 is on the negative side, the rise of the output voltage of the operational amplifier 121 is delayed, which may deteriorate phase current detection accuracy. This problem does not occur when the input offset voltage of the operational amplifier 121 is on the positive side (see FIG. 3).

なお、このような相電流の検出精度の悪化を抑制する対策として、A/Dコンバータ122によるA/D変換のタイミングを遅らせる方法がある。しかしながら、かかる方法では、オンデューティの期間ΔT10中にA/Dコンバータ122によるA/D変換のタイミングを設定する必要性に起因して、オンデューティの期間ΔT10の可変範囲の下限値を大きくする必要性が生じる。これは、デューティの可変幅(すなわち制御可能領域)を狭めることを意味する。 Note that as a measure to suppress such deterioration in phase current detection accuracy, there is a method of delaying the timing of A/D conversion by the A/D converter 122. However, in this method, due to the necessity of setting the timing of A/D conversion by the A/D converter 122 during the on-duty period ΔT10, it is necessary to increase the lower limit value of the variable range of the on-duty period ΔT10. Gender arises. This means narrowing the duty variable range (ie, controllable range).

また、オペアンプ121の入力オフセット電圧は、オペアンプ121の入力オフセット補正電圧により補償できるが、入力オフセット補正電圧の設定値によっては、相電流が流れていない状態(以下、「無通電状態」ともいう)においてオペアンプ121の入力電圧が0未満(すなわちマイナス側)である場合があり、この場合も、上述した問題(オペアンプ121の出力電圧の立ち上がりが遅れることで、相電流の検出精度が悪くなること)が生じる。 In addition, the input offset voltage of the operational amplifier 121 can be compensated by the input offset correction voltage of the operational amplifier 121, but depending on the set value of the input offset correction voltage, a state in which no phase current flows (hereinafter also referred to as a "non-energized state") In some cases, the input voltage of the operational amplifier 121 is less than 0 (i.e., on the negative side), and in this case, the above-mentioned problem (the rise of the output voltage of the operational amplifier 121 is delayed, resulting in poor phase current detection accuracy) occurs.

この点を鑑み、本実施形態では、オフセット補正部130は、以下で説明するように、無通電状態においてオペアンプ121の入力電圧が0未満(すなわちマイナス側)である場合に、オフセット補正を実行することで、制御可能領域を必要以上に狭めることなく、相電流の検出精度の悪化を抑制することを可能とする。 In view of this, in the present embodiment, the offset correction unit 130 performs offset correction when the input voltage of the operational amplifier 121 is less than 0 (i.e., on the negative side) in a non-energized state, as described below. This makes it possible to suppress deterioration in phase current detection accuracy without unnecessarily narrowing the controllable region.

具体的には、無通電状態においてオペアンプ121の入力電圧の正負が、無通電状態におけるオペアンプ121の出力電圧の正負に基づいて判定できることを利用して、オフセット補正部130は、無通電状態におけるオペアンプ121の出力電圧がマイナス側である場合に、無通電状態におけるオペアンプ121の出力電圧がプラス側になるように、オフセット補正レジスタの設定値(調整パラメータの例)を補正する。オフセット補正レジスタの設定値は、オペアンプ121の入力オフセット補正電圧を設定する機能(オペアンプ121の入力オフセット補正電圧を変化させる機能)を有する。すなわち、入力オフセット補正電圧は、オペアンプ121の入力オフセット電圧を変更するための入力(オペアンプ121への入力)であり、オフセット補正レジスタの設定値は、入力オフセット補正電圧を決める値である。 Specifically, by utilizing the fact that the positive/negative of the input voltage of the operational amplifier 121 in the non-energized state can be determined based on the positive/negative of the output voltage of the operational amplifier 121 in the non-energized state, the offset correction unit 130 When the output voltage of the operational amplifier 121 is on the negative side, the set value (an example of an adjustment parameter) of the offset correction register is corrected so that the output voltage of the operational amplifier 121 in the non-energized state becomes on the positive side. The set value of the offset correction register has a function of setting the input offset correction voltage of the operational amplifier 121 (a function of changing the input offset correction voltage of the operational amplifier 121). That is, the input offset correction voltage is an input (input to the operational amplifier 121) for changing the input offset voltage of the operational amplifier 121, and the set value of the offset correction register is a value that determines the input offset correction voltage.

図5は、オフセット補正レジスタの設定値の補正方法の説明図である。図5では、横軸にオフセット補正レジスタの設定値を取り、縦軸にA/Dコンバータ122の出力値(図5では「AD検出値」と表記)を取り、オフセット補正レジスタの設定値を、プラス側の最大値(図5では「+側MAX」と表記)から“1”ずつデクリメントしたときの、A/Dコンバータ122の出力値の変化態様が示される。 FIG. 5 is an explanatory diagram of a method of correcting the set value of the offset correction register. In FIG. 5, the horizontal axis represents the setting value of the offset correction register, the vertical axis represents the output value of the A/D converter 122 (denoted as "AD detection value" in FIG. 5), and the setting value of the offset correction register is expressed as follows. The manner in which the output value of the A/D converter 122 changes when it is decremented by "1" from the maximum value on the plus side (denoted as "+ side MAX" in FIG. 5) is shown.

ここで、図5に示す特性は、無通電状態における特性である。無通電状態におけるA/Dコンバータ122の出力値は、無通電状態におけるオペアンプ121の出力電圧を表す。従って、無通電状態におけるオペアンプ121の出力電圧に正負を跨ぐ変化が生じると、無通電状態におけるA/Dコンバータ122の出力値に正負を跨ぐ変化が生じる関係がある。 Here, the characteristics shown in FIG. 5 are characteristics in a non-energized state. The output value of the A/D converter 122 in the non-energized state represents the output voltage of the operational amplifier 121 in the non-energized state. Therefore, if the output voltage of the operational amplifier 121 in the non-energized state changes across positive and negative levels, the output value of the A/D converter 122 in the non-energized state changes across positive and negative levels.

図5のオペアンプ121の場合、プラス側の最大値から“4”引いた値(図5では「+側MAX-4」と表記)にオフセット補正レジスタの設定値を補正すると、A/Dコンバータ122の出力値が、理想的な値である0Vに対して、0Vに最も近いプラス側(すなわち、A/Dコンバータ122の出力値が僅かに0を超えること)となる。また、プラス側の最大値から“5”引いた値(図5では「+側MAX-5」と表記)にオフセット補正レジスタの設定値を補正すると、オペアンプ121の出力電圧が、0Vに最も近いマイナス側(すなわち、A/Dコンバータ122の出力値が僅かに0を下回ること)となる。従って、このオペアンプ121の場合、オフセット補正部130は、オフセット補正レジスタの設定値を、プラス側の最大値から“4”引いた値(図5では「+側MAX-4」と表記)に補正する。 In the case of the operational amplifier 121 in FIG. 5, when the setting value of the offset correction register is corrected to a value obtained by subtracting "4" from the maximum value on the plus side (denoted as "+ side MAX-4" in FIG. 5), the A/D converter 121 The output value of the A/D converter 122 is on the positive side closest to 0V with respect to the ideal value of 0V (that is, the output value of the A/D converter 122 slightly exceeds 0). In addition, when the setting value of the offset correction register is corrected to the value obtained by subtracting "5" from the maximum value on the positive side (denoted as "+ side MAX-5" in FIG. 5), the output voltage of the operational amplifier 121 becomes the closest value to 0V. This is on the negative side (that is, the output value of the A/D converter 122 is slightly less than 0). Therefore, in the case of this operational amplifier 121, the offset correction unit 130 corrects the set value of the offset correction register to a value obtained by subtracting "4" from the maximum value on the positive side (indicated as "+ side MAX-4" in FIG. 5). do.

なお、図5に示す特性は、ある個体のオペアンプ121に関するものであり、他の個体のオペアンプ121の場合は、異なる特性となりうる。従って、オフセット補正部130は、オペアンプ121の個体ごとに、無通電状態におけるA/Dコンバータ122の出力値が0Vに最も近いプラス側となるようなオフセット補正レジスタの値を探索する。以下、A/Dコンバータ122の出力値が0Vに最も近いプラス側となるようなオフセット補正レジスタの値(第1の値の例)を、単に「オフセット補正レジスタの補正目標値」と称する。 Note that the characteristics shown in FIG. 5 relate to a certain individual operational amplifier 121, and may have different characteristics for other individual operational amplifiers 121. Therefore, the offset correction unit 130 searches for the value of the offset correction register for each operational amplifier 121 such that the output value of the A/D converter 122 in the non-energized state is on the positive side closest to 0V. Hereinafter, the value of the offset correction register (an example of a first value) that causes the output value of the A/D converter 122 to be on the positive side closest to 0V will be simply referred to as "correction target value of the offset correction register."

このようなオフセット補正レジスタの補正目標値の探索は、無通電状態において実行される。オフセット補正レジスタの補正目標値の探索方法は、任意であるが、好ましくは、A/Dコンバータ122の出力値が0Vを跨ぐようにオフセット補正レジスタの値を変更させることを含む。この場合、A/Dコンバータ122の出力値が0Vを跨いでプラス側となったとき、そのときのオフセット補正レジスタの値、又は、A/Dコンバータ122の出力値が0Vを跨いでマイナス側となったとき、その直前のオフセット補正レジスタの値が、「オフセット補正レジスタの補正目標値」となる。 Such a search for the correction target value of the offset correction register is performed in a non-energized state. The method of searching for the correction target value of the offset correction register is arbitrary, but preferably includes changing the value of the offset correction register so that the output value of the A/D converter 122 crosses 0V. In this case, when the output value of the A/D converter 122 crosses 0V and becomes a positive side, the value of the offset correction register at that time or the output value of the A/D converter 122 crosses 0V and becomes a negative side. When this happens, the value of the offset correction register immediately before that becomes the "correction target value of the offset correction register."

図6は、オフセット補正レジスタの補正目標値の探索方法の一例の説明図である。図6では、横軸に時間を取り、縦軸にA/Dコンバータ122の出力値(図6では「AD検出値」と表記)を取り、オフセット補正レジスタの値を変更しながら、オフセット補正レジスタの補正目標値が探索される態様が模式的に示される。 FIG. 6 is an explanatory diagram of an example of a method of searching for a correction target value of an offset correction register. In FIG. 6, the horizontal axis represents time, the vertical axis represents the output value of the A/D converter 122 (denoted as "AD detection value" in FIG. 6), and while changing the value of the offset correction register, A mode in which a corrected target value of is searched for is schematically shown.

図6のオペアンプ121の場合、時点t59では、オフセット補正レジスタの設定値がプラス側の値であり、A/Dコンバータ122の出力値は、0Vよりも有意に大きい。このため、オフセット補正部130は、時点t60で、一旦、オフセット補正レジスタの設定値を、最小値(図6では「-側MIN」と表記)に変更する。この場合、A/Dコンバータ122の出力値は、0Vよりも有意に小さくなっている。そして、オフセット補正部130は、時点t60よりも後の時点t61で、オフセット補正レジスタの設定値を、最小値から“1”だけインクリメントした値(図6では「-側MIN+1」と表記)に変更する。この場合、A/Dコンバータ122の出力値は、0Vよりも有意に小さいままである。従って、オフセット補正部130は、時点t62から時点t64に示すように、A/Dコンバータ122の出力値が0Vよりも大きくなるまで(すなわちA/Dコンバータ122の出力値が0Vを正側に跨ぐまで)、オフセット補正レジスタの設定値を、“1”ずつインクリメントしていく。図6のオペアンプ121の場合、時点t64でA/Dコンバータ122の出力値が0Vを正側に跨ぐ。従って、この場合、最小値から“4”だけインクリメントした値(図6では「-側MIN+4」と表記)がオフセット補正レジスタの補正目標値となる。 In the case of the operational amplifier 121 in FIG. 6, at time t59, the set value of the offset correction register is a positive value, and the output value of the A/D converter 122 is significantly larger than 0V. Therefore, the offset correction unit 130 once changes the set value of the offset correction register to the minimum value (denoted as "-side MIN" in FIG. 6) at time t60. In this case, the output value of A/D converter 122 is significantly smaller than 0V. Then, at time t61 after time t60, the offset correction unit 130 changes the set value of the offset correction register to a value incremented by "1" from the minimum value (denoted as "-side MIN+1" in FIG. 6). do. In this case, the output value of A/D converter 122 remains significantly smaller than 0V. Therefore, as shown from time t62 to time t64, the offset correction unit 130 operates until the output value of the A/D converter 122 becomes larger than 0V (that is, until the output value of the A/D converter 122 crosses 0V to the positive side). ), the set value of the offset correction register is incremented by "1". In the case of the operational amplifier 121 in FIG. 6, the output value of the A/D converter 122 crosses 0V to the positive side at time t64. Therefore, in this case, a value incremented by "4" from the minimum value (denoted as "-side MIN+4" in FIG. 6) becomes the correction target value of the offset correction register.

なお、図6では、オフセット補正レジスタの設定値を、“1”ずつインクリメントしているが、“2”ずつインクリメントしてもよい。また、図6では、オフセット補正レジスタの設定値を、一旦、最小値(図6では「-側MIN」と表記)に変更しているが、最小値以外の値(A/Dコンバータ122の出力値が0Vよりも小さくなるような値)に変更してもよい。 In FIG. 6, the set value of the offset correction register is incremented by "1", but it may be incremented by "2". In addition, in FIG. 6, the setting value of the offset correction register is temporarily changed to the minimum value (denoted as "- side MIN" in FIG. 6), but the value other than the minimum value (the output of the A/D converter 122 The value may be changed to a value smaller than 0V.

また、図6では、オフセット補正レジスタの設定値を、一旦、最小値(図6では「-側MIN」と表記)に変更してから、オフセット補正レジスタの設定値を、“1”ずつインクリメントしているが、オフセット補正レジスタの設定値を、そのまま(すなわち補正前の値)から“1”ずつデクリメントしてもよい。この場合、上述のように、A/Dコンバータ122の出力値が0Vを跨いでマイナス側となったとき、その直前のオフセット補正レジスタの値が、「オフセット補正レジスタの補正目標値」となる。 In addition, in FIG. 6, the setting value of the offset correction register is first changed to the minimum value (denoted as "- side MIN" in FIG. 6), and then the setting value of the offset correction register is incremented by "1". However, the set value of the offset correction register may be decremented by "1" from the value as it is (that is, the value before correction). In this case, as described above, when the output value of the A/D converter 122 crosses 0V and becomes negative, the value of the offset correction register immediately before that value becomes the "correction target value of the offset correction register."

このようにして、本実施形態によれば、オフセット補正部130は、無通電状態におけるオペアンプ121の出力電圧がマイナス側である場合に、オフセット補正レジスタの補正目標値を探索し、オフセット補正レジスタの補正目標値に、オフセット補正レジスタの設定値を補正する。オフセット補正レジスタの補正目標値に、オフセット補正レジスタの設定値を補正すると、無通電状態におけるオペアンプ121の出力電圧が0Vに最も近いプラス側となる。すなわち、マイナス側であった、無通電状態におけるオペアンプ121の出力電圧が、プラス側の小さい値に補正される。これは、無通電状態におけるオペアンプ121の入力電圧が、マイナスの値からプラス側の小さい値に補正されることを意味する。この結果、制御可能領域を必要以上に狭めることなく、立ち上がり遅れ事象に起因した相電流の検出精度の悪化を、抑制できる。 In this way, according to the present embodiment, the offset correction unit 130 searches for the correction target value of the offset correction register when the output voltage of the operational amplifier 121 in the non-energized state is on the negative side, and searches for the correction target value of the offset correction register. Correct the setting value of the offset correction register to the correction target value. When the setting value of the offset correction register is corrected to the correction target value of the offset correction register, the output voltage of the operational amplifier 121 in the non-energized state becomes the positive side closest to 0V. That is, the output voltage of the operational amplifier 121 in the non-energized state, which was on the negative side, is corrected to a small value on the positive side. This means that the input voltage of the operational amplifier 121 in the non-energized state is corrected from a negative value to a small value on the positive side. As a result, it is possible to suppress deterioration in the phase current detection accuracy caused by the rise delay event without narrowing the controllable region more than necessary.

次に、図7を参照して、オフセット補正部130の動作例について説明する。 Next, an example of the operation of the offset correction section 130 will be described with reference to FIG. 7.

図7は、オフセット補正部130の動作例を示す概略フローチャートである。 FIG. 7 is a schematic flowchart showing an example of the operation of the offset correction section 130.

まず、図7の処理は、イグニッションスイッチがオンされるのを待機する待機状態(ステップS700の“NO”)となる。イグニッションスイッチがオンされると(ステップS700の“YES”)、電動オイルポンプ1のモータ6の駆動を禁止するための駆動禁止状態が形成される(ステップS702)。駆動禁止状態では、モータ制御部120は、モータ6の駆動を行わない。これにより、無通電状態が形成される。無通電状態が形成されると、A/Dコンバータ122の出力値が0Vよりも小さいか否かが判定され(ステップS704)、A/Dコンバータ122の出力値が0Vよりも小さい場合は(ステップS704の“YES”)、オフセット補正レジスタの設定値が現在値kから“1”だけインクリメントされる(ステップS706)。そして、オフセット補正レジスタの設定値が変更された結果として、A/Dコンバータ122の出力値が0V以上となったか否かが判定され(ステップS708)、A/Dコンバータ122の出力値が0V以上となった場合は(ステップS708の“YES”)、オフセット補正レジスタの設定値の現在値kが、「オフセット補正レジスタの補正目標値」となり、オフセット補正レジスタの設定値が、現在値kに更新される(ステップS710)。現在値kに更新されると、駆動禁止状態が解除された状態(すなわち駆動可能状態)が形成され(ステップS718)、図7の処理は終了となる。 First, the process in FIG. 7 enters a standby state ("NO" in step S700) in which the ignition switch is turned on. When the ignition switch is turned on (“YES” in step S700), a drive prohibition state is created to prohibit driving of the motor 6 of the electric oil pump 1 (step S702). In the drive prohibited state, the motor control unit 120 does not drive the motor 6. This creates a non-energized state. When the non-energized state is formed, it is determined whether the output value of the A/D converter 122 is smaller than 0V (step S704), and if the output value of the A/D converter 122 is smaller than 0V (step ("YES" in S704), the set value of the offset correction register is incremented by "1" from the current value k (step S706). Then, as a result of changing the set value of the offset correction register, it is determined whether the output value of the A/D converter 122 has become 0V or more (step S708), and the output value of the A/D converter 122 has become 0V or more. If so (“YES” in step S708), the current value k of the setting value of the offset correction register becomes the “correction target value of the offset correction register”, and the setting value of the offset correction register is updated to the current value k. (step S710). When the current value k is updated, a state in which the drive prohibited state is canceled (that is, a drive enabled state) is formed (step S718), and the process in FIG. 7 ends.

また、オフセット補正レジスタの設定値が変更された結果として、A/Dコンバータ122の出力値が0V以上とならない場合(ステップS708の“NO”)、終了条件が成立するか否かが判定される(ステップS712)。終了条件は、例えば電動オイルポンプ1のモータ6に係る駆動指令(例えばECU2から)が発生した場合や、オフセット補正レジスタの設定値の現在値kが最大値(図5の“+側MAX”参照)である等に満たされる。終了条件が成立すると(ステップS712の“YES”)、駆動禁止状態が解除された状態(すなわち駆動可能状態)が形成され(ステップS718)、図7の処理は終了となる。この場合、電動オイルポンプ1のモータ6に係る駆動指令が終了した段階で、ステップS702からの処理が再び開始されてもよい。なお、オフセット補正レジスタの設定値の現在値kが最大値となって終了条件が満たされた場合は、電流センサの異常を示す情報等が生成されてもよい。他方、終了条件が成立していない場合(ステップS712の“NO”)、ステップS706から繰り返される。すなわち、オフセット補正レジスタの設定値が現在値kから“1”だけインクリメントされ(ステップS706)、オフセット補正レジスタの設定値が変更された結果として、A/Dコンバータ122の出力値が0V以上となった場合は(ステップS708の“YES”)、オフセット補正レジスタの設定値の現在値kが、「オフセット補正レジスタの補正目標値」となり、オフセット補正レジスタの設定値が、現在値kに更新される(ステップS710)。 Further, if the output value of the A/D converter 122 does not become 0V or more as a result of changing the setting value of the offset correction register ("NO" in step S708), it is determined whether the termination condition is satisfied. (Step S712). The termination conditions are, for example, when a drive command (for example, from the ECU 2) for the motor 6 of the electric oil pump 1 is generated, or when the current value k of the offset correction register setting value is the maximum value (see "+ side MAX" in Fig. 5). ), etc. When the termination condition is satisfied (“YES” in step S712), a state in which the drive prohibited state is canceled (that is, a drive enabled state) is established (step S718), and the process in FIG. 7 ends. In this case, the process from step S702 may be restarted at the stage when the drive command related to the motor 6 of the electric oil pump 1 is completed. Note that when the current value k of the set value of the offset correction register reaches the maximum value and the termination condition is satisfied, information indicating an abnormality of the current sensor, etc. may be generated. On the other hand, if the termination condition is not satisfied (“NO” in step S712), the process is repeated from step S706. That is, the set value of the offset correction register is incremented by "1" from the current value k (step S706), and as a result of changing the set value of the offset correction register, the output value of the A/D converter 122 becomes 0V or more. If so (“YES” in step S708), the current value k of the setting value of the offset correction register becomes the “correction target value of the offset correction register”, and the setting value of the offset correction register is updated to the current value k. (Step S710).

また、A/Dコンバータ122の出力値が0V以上である場合は(ステップS704の“NO”)、A/Dコンバータ122の出力値が所定閾値Th1未満であるか否かが判定される(ステップS714)。所定閾値Th1は、無通電状態におけるオペアンプ121の出力電圧がプラス側であっても当該出力電圧が過大である状態を検出するための閾値であり、正の適合値である。A/Dコンバータ122の出力値が所定閾値Th1未満であれば(ステップS714の“YES”)、オフセット補正レジスタの設定値の更新(補正)の必要性がないと判断して、駆動禁止状態が解除された状態(すなわち駆動可能状態)が形成され(ステップS718)、図7の処理は終了となる。他方、A/Dコンバータ122の出力値が所定閾値Th1以上の場合は、オフセット補正レジスタの設定値の補正が必要であると判断し、ステップS716に進む。この場合、オフセット補正レジスタの設定値が、現在値kから最小値(図6の“-側MIN”参照)に変更され(ステップS716)、ステップS708の処理から開始される。 Further, if the output value of the A/D converter 122 is 0V or more (“NO” in step S704), it is determined whether the output value of the A/D converter 122 is less than a predetermined threshold Th1 (step S714). The predetermined threshold value Th1 is a threshold value for detecting a state in which the output voltage of the operational amplifier 121 in a non-energized state is excessive even if it is on the positive side, and is a positive adaptive value. If the output value of the A/D converter 122 is less than the predetermined threshold Th1 (“YES” in step S714), it is determined that there is no need to update (correct) the set value of the offset correction register, and the drive prohibition state is established. A released state (that is, a drivable state) is formed (step S718), and the process of FIG. 7 ends. On the other hand, if the output value of the A/D converter 122 is equal to or greater than the predetermined threshold Th1, it is determined that the setting value of the offset correction register needs to be corrected, and the process proceeds to step S716. In this case, the set value of the offset correction register is changed from the current value k to the minimum value (see "- side MIN" in FIG. 6) (step S716), and the process starts from step S708.

図7に示す処理によれば、イグニッションスイッチがオンされるごとに、無通電状態が形成におけるA/Dコンバータ122の出力値が0Vよりも小さいか否かが判定されるので、経時的な変化や温度等の環境変化等に起因してオペアンプ121の入力オフセット電圧が変化した場合でも、当該変化に対応できる。ただし、変形例では、図7に示す処理は、車両出荷の際に1度だけ実行されてもよいし、あるいは、他の条件(例えば走行距離や期間に係る条件)に基づいて実行タイミングが決定されてもよい。 According to the process shown in FIG. 7, each time the ignition switch is turned on, it is determined whether or not the output value of the A/D converter 122 is smaller than 0 V when the non-energized state is formed. Even if the input offset voltage of the operational amplifier 121 changes due to environmental changes such as temperature or temperature, the change can be handled. However, in a modified example, the process shown in FIG. 7 may be executed only once when the vehicle is shipped, or the execution timing may be determined based on other conditions (for example, conditions related to mileage or period). may be done.

また、図7に示す処理によれば、無通電状態が形成におけるA/Dコンバータ122の出力値が0Vよりも小さい場合だけでなく、無通電状態が形成におけるA/Dコンバータ122の出力値が所定閾値Th1以上である場合も、オフセット補正レジスタの設定値が、「オフセット補正レジスタの補正目標値」へと補正されるので、経時的な変化や温度等の環境変化等に起因してオペアンプ121の入力オフセット電圧が変化した場合でも、オペアンプ121の入力電圧の適正化を図ることができる。ただし、変形例では、ステップS714及びステップS716は省略されてもよい。 Further, according to the process shown in FIG. 7, not only when the output value of the A/D converter 122 when the non-energized state is formed is smaller than 0V, but also when the output value of the A/D converter 122 when the non-energized state is formed is Even if it is equal to or higher than the predetermined threshold Th1, the setting value of the offset correction register is corrected to the "correction target value of the offset correction register", so that the operational amplifier 121 may Even if the input offset voltage of the operational amplifier 121 changes, the input voltage of the operational amplifier 121 can be optimized. However, in a modified example, step S714 and step S716 may be omitted.

以上、各実施形態について詳述したが、特定の実施形態に限定されるものではなく、特許請求の範囲に記載された範囲内において、種々の変形及び変更が可能である。また、前述した実施形態の構成要素を全部又は複数を組み合わせることも可能である。 Although each embodiment has been described in detail above, it is not limited to a specific embodiment, and various modifications and changes can be made within the scope of the claims. It is also possible to combine all or a plurality of the components of the embodiments described above.

<付記>
なお、以上の実施形態に関し、さらに以下の付記を開示する。
<Additional notes>
Note that the following additional notes are further disclosed regarding the above embodiments.

[付記1]
検出対象の電流が流れる抵抗の両端に電気的に接続されるアンプ(例えばオペアンプ121)と、
前記アンプの出力側に電気的に接続され、前記アンプの出力をA/D変換して出力するA/D変換器(例えばA/Dコンバータ122)と、
前記検出対象の電流が流れていない無通電状態において前記アンプの入力が0未満である場合に、前記アンプの入力オフセット補正電圧を補正するオフセット補正処理を実行するオフセット補正部(例えばオフセット補正部130)と、
を備えるモータ電流値検出装置(例えばマイクロコンピュータ12)。
[Additional note 1]
an amplifier (for example, an operational amplifier 121) electrically connected to both ends of a resistor through which a current to be detected flows;
an A/D converter (for example, A/D converter 122) that is electrically connected to the output side of the amplifier and converts the output of the amplifier into A/D and outputs the resultant signal;
An offset correction unit (for example, the offset correction unit 130 )and,
A motor current value detection device (for example, a microcomputer 12).

付記1によれば、無通電状態においてアンプの出力が0未満である場合に、アンプの入力オフセット補正電圧を補正するオフセット補正処理が実行されるので、無通電状態においてアンプの入力が0未満である場合の不都合(すなわち、相電流の立ち上がりに対してアンプの出力電圧の立ち上がりが遅れることで、相電流の検出精度が悪くなること)を低減できる。 According to Appendix 1, when the output of the amplifier is less than 0 in the non-energized state, offset correction processing is executed to correct the input offset correction voltage of the amplifier. It is possible to reduce certain inconveniences (namely, the delay in the rise of the output voltage of the amplifier with respect to the rise of the phase current, which deteriorates the accuracy of detecting the phase current).

[付記2]
前記オフセット補正部は、前記無通電状態において前記A/D変換器の出力が0未満であるか否かを判定し、前記A/D変換器の出力が0未満であると判定した場合に、前記入力オフセット補正電圧を調整するための調整パラメータの値を変更することで前記オフセット補正処理を実行する、付記1に記載のモータ電流値検出装置。
付記2によれば、無通電状態におけるA/D変換器の出力に基づいて、無通電状態においてアンプの入力(及びそれに伴い無通電状態においてアンプの出力)が0未満であるか否かを判定できる。また、入力オフセット補正電圧を調整するための調整パラメータの値を利用して、無通電状態においてアンプの入力が0未満である場合の不都合を低減できる。
[付記3]
前記オフセット補正部は、前記無通電状態において前記A/D変換器の出力が僅かに0を超えるような第1の値に、前記調整パラメータの値を変更する、付記2に記載のモータ電流値検出装置。
付記3によれば、無通電状態においてアンプの出力が0未満である状態から、無通電状態においてアンプの出力が僅かに0を超える状態に補正できる。
[付記4]
前記オフセット補正部は、前記A/D変換器の出力が0を跨いで変化するように前記調整パラメータの値を変更することで、前記第1の値を探索する、付記3に記載のモータ電流値検出装置。
付記4によれば、A/D変換器の出力が0を跨いで変化するように調整パラメータの値を変更することで、第1の値を効率的に探索できる。
[付記5]
前記オフセット補正部は、前記A/D変換器の出力が0を跨いで正となったときの、前記調整パラメータの値を、前記第1の値とする、付記4に記載のモータ電流値検出装置。
付記5によれば、無通電状態においてA/D変換器の出力が0を超えるような調整パラメータの値のうち、最も0に近い値に、調整パラメータの値を設定できる。
[付記6]
前記検出対象の電流は、電動オイルポンプ用モータを駆動するためのインバータに係る電流である、付記1から付記5のうちのいずれか1項に記載のモータ電流値検出装置。
付記6によれば、電動オイルポンプ用モータを、A/D変換器の出力に基づいて、比較的広い制御可能領域で制御できる。
[Additional note 2]
The offset correction unit determines whether the output of the A/D converter is less than 0 in the non-energized state, and when determining that the output of the A/D converter is less than 0, The motor current value detection device according to supplementary note 1, wherein the offset correction process is executed by changing the value of an adjustment parameter for adjusting the input offset correction voltage.
According to Appendix 2, based on the output of the A/D converter in the de-energized state, it is determined whether the input of the amplifier in the de-energized state (and accordingly the output of the amplifier in the de-energized state) is less than 0. can. Further, by using the value of the adjustment parameter for adjusting the input offset correction voltage, it is possible to reduce the inconvenience when the input of the amplifier is less than 0 in the non-energized state.
[Additional note 3]
The offset correction unit changes the value of the adjustment parameter to a first value such that the output of the A/D converter slightly exceeds 0 in the non-energized state, the motor current value according to appendix 2. Detection device.
According to Appendix 3, it is possible to correct the state in which the output of the amplifier is less than 0 in the non-energized state to the state in which the output of the amplifier slightly exceeds 0 in the non-energized state.
[Additional note 4]
The offset correction unit searches for the first value by changing the value of the adjustment parameter so that the output of the A/D converter varies across 0, the motor current according to appendix 3. Value detection device.
According to Appendix 4, the first value can be efficiently searched for by changing the value of the adjustment parameter so that the output of the A/D converter varies across zero.
[Additional note 5]
The offset correction unit detects the motor current value according to appendix 4, wherein the value of the adjustment parameter is the first value when the output of the A/D converter crosses 0 and becomes positive. Device.
According to appendix 5, the value of the adjustment parameter can be set to the value closest to 0 among the values of the adjustment parameter such that the output of the A/D converter exceeds 0 in the non-energized state.
[Additional note 6]
The motor current value detection device according to any one of Supplementary Notes 1 to 5, wherein the current to be detected is a current related to an inverter for driving an electric oil pump motor.
According to appendix 6, the electric oil pump motor can be controlled in a relatively wide controllable range based on the output of the A/D converter.

1 電動オイルポンプ
3 オイルパン
4 温度センサ
5 オイルポンプ
6 モータ
7 回転角検出部
8 駆動装置
9 電源部
10 インバータ
11 シャント抵抗
12 マイクロコンピュータ
120 モータ制御部
121 オペアンプ
122 A/Dコンバータ
124 電流値取得部
130 オフセット補正部
1 Electric oil pump 3 Oil pan 4 Temperature sensor 5 Oil pump 6 Motor 7 Rotation angle detection section 8 Drive device 9 Power supply section 10 Inverter 11 Shunt resistor 12 Microcomputer 120 Motor control section 121 Operational amplifier 122 A/D converter 124 Current value acquisition section 130 Offset correction section

Claims (6)

検出対象の電流が流れる抵抗の両端に電気的に接続されるアンプと、
前記アンプの出力側に電気的に接続され、前記アンプの出力をA/D変換して出力するA/D変換器と、
前記検出対象の電流が流れていない無通電状態において前記アンプの出力が0未満である場合に、前記アンプの入力オフセット補正電圧を補正するオフセット補正処理を実行するオフセット補正部と、
を備えるモータ電流値検出装置。
an amplifier electrically connected to both ends of a resistor through which the current to be detected flows;
an A/D converter that is electrically connected to the output side of the amplifier and converts the output of the amplifier into A/D and outputs the A/D converter;
an offset correction unit that performs offset correction processing to correct an input offset correction voltage of the amplifier when the output of the amplifier is less than 0 in a non-energized state where the current to be detected is not flowing;
A motor current value detection device comprising:
前記オフセット補正部は、前記無通電状態において前記A/D変換器の出力が0未満であるか否かを判定し、前記A/D変換器の出力が0未満であると判定した場合に、前記入力オフセット補正電圧を調整するための調整パラメータの値を変更することで前記オフセット補正処理を実行する、請求項1に記載のモータ電流値検出装置。 The offset correction unit determines whether the output of the A/D converter is less than 0 in the non-energized state, and when determining that the output of the A/D converter is less than 0, The motor current value detection device according to claim 1, wherein the offset correction process is executed by changing the value of an adjustment parameter for adjusting the input offset correction voltage. 前記オフセット補正部は、前記無通電状態において前記A/D変換器の出力が僅かに0を超えるような第1の値に、前記調整パラメータの値を変更する、請求項2に記載のモータ電流値検出装置。 The motor current according to claim 2, wherein the offset correction unit changes the value of the adjustment parameter to a first value such that the output of the A/D converter slightly exceeds 0 in the non-energized state. Value detection device. 前記オフセット補正部は、前記A/D変換器の出力が0を跨いで変化するように前記調整パラメータの値を変更することで、前記第1の値を探索する、請求項3に記載のモータ電流値検出装置。 The motor according to claim 3, wherein the offset correction unit searches for the first value by changing the value of the adjustment parameter so that the output of the A/D converter varies across 0. Current value detection device. 前記オフセット補正部は、前記A/D変換器の出力が0を跨いで正となったときの、前記調整パラメータの値を、前記第1の値とする、請求項3に記載のモータ電流値検出装置。 The motor current value according to claim 3, wherein the offset correction unit sets the value of the adjustment parameter when the output of the A/D converter crosses 0 and becomes positive as the first value. Detection device. 前記検出対象の電流は、電動オイルポンプ用モータを駆動するためのインバータに係る電流である、請求項1から請求項5のうちのいずれか1項に記載のモータ電流値検出装置。
The motor current value detection device according to any one of claims 1 to 5, wherein the current to be detected is a current related to an inverter for driving an electric oil pump motor.
JP2019106266A 2019-06-06 2019-06-06 Motor current value detection device Active JP7368112B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019106266A JP7368112B2 (en) 2019-06-06 2019-06-06 Motor current value detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019106266A JP7368112B2 (en) 2019-06-06 2019-06-06 Motor current value detection device

Publications (2)

Publication Number Publication Date
JP2020202615A JP2020202615A (en) 2020-12-17
JP7368112B2 true JP7368112B2 (en) 2023-10-24

Family

ID=73742249

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019106266A Active JP7368112B2 (en) 2019-06-06 2019-06-06 Motor current value detection device

Country Status (1)

Country Link
JP (1) JP7368112B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002071729A (en) 2000-09-04 2002-03-12 Keihin Corp Apparatus, and method for detecting load current
JP2017009423A (en) 2015-06-22 2017-01-12 株式会社デンソー Current detection system and method for adjusting output signal of current detection ic

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002071729A (en) 2000-09-04 2002-03-12 Keihin Corp Apparatus, and method for detecting load current
JP2017009423A (en) 2015-06-22 2017-01-12 株式会社デンソー Current detection system and method for adjusting output signal of current detection ic

Also Published As

Publication number Publication date
JP2020202615A (en) 2020-12-17

Similar Documents

Publication Publication Date Title
JP4215025B2 (en) Vehicle power generation control device
JP4343235B2 (en) Vehicle power generation control device
JP4158513B2 (en) Vehicle power generation control device
US9537433B2 (en) Motor drive device
JP2009303287A (en) Motor controller
US8963509B2 (en) Method and device to compensate for a dip in the output voltage of a motor-vehicle alternator
US8648560B2 (en) Electric motor control apparatus
JP2010233301A (en) Sensorless brushless motor control device and electric fluid pump using the same
US10700622B2 (en) Apparatus for controlling brushless motor and method for controlling brushless motor
CN102969965A (en) Output control device of electric generator
JP2009261080A (en) Inverter device and constant-airflow ventilator blower equipped therewith
JP2019115100A (en) Power supply voltage stabilizing method, semiconductor device and power supply system
JP7368112B2 (en) Motor current value detection device
US7982420B2 (en) Energization timing determination circuit and determination method for energization timing of motor
US10892627B2 (en) Learning algorithm for controlling the voltage of battery
JP2004166436A (en) Electric fluid pump arrangement
JP4207130B2 (en) Lithium-ion battery charge control circuit
US10381931B2 (en) Control system of boost converter and control method thereof
JP7040188B2 (en) Motor system
US10023055B2 (en) Motor control device and motor control method
US11476793B2 (en) Motor drive system with correction function of temperature deviation of IGBT module
EP2704314B1 (en) Current controlled actuator driver with improved accuracy at low current, method for controlling a current actuator with improved accuracy at low current and a non transitory program storage device to store a program of instructions to perform the method
JP2017201863A (en) Motor drive unit
JP2005020877A (en) In-vehicle motor control device
US11196378B2 (en) Motor control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220329

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230124

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230627

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230706

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230919

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231012

R150 Certificate of patent or registration of utility model

Ref document number: 7368112

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150