JP2009075725A - Electronic controller - Google Patents

Electronic controller Download PDF

Info

Publication number
JP2009075725A
JP2009075725A JP2007242271A JP2007242271A JP2009075725A JP 2009075725 A JP2009075725 A JP 2009075725A JP 2007242271 A JP2007242271 A JP 2007242271A JP 2007242271 A JP2007242271 A JP 2007242271A JP 2009075725 A JP2009075725 A JP 2009075725A
Authority
JP
Japan
Prior art keywords
input signal
low
voltage
determination
value
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
JP2007242271A
Other languages
Japanese (ja)
Other versions
JP4710891B2 (en
Inventor
Haruhito Ito
陽人 伊東
Atsushi Yamada
篤志 山田
Koji Ogusu
幸治 小楠
Mitsuhiro Kanayama
光浩 金山
Toshiaki Kobayashi
稔昌 小林
Michio Nakamura
道夫 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2007242271A priority Critical patent/JP4710891B2/en
Publication of JP2009075725A publication Critical patent/JP2009075725A/en
Application granted granted Critical
Publication of JP4710891B2 publication Critical patent/JP4710891B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Voltage And Current In General (AREA)
  • Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)
  • Power Sources (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To accurately determine that a high state of an input signal changes to a low state when an external power supply voltage is lowered, in an electronic controller having a function of boosting the external power supply voltage via a boosting circuit to generate an operating voltage for a microcomputer. <P>SOLUTION: In an on-board electronic controller having a function of boosting a battery voltage (hereinafter referred to as VB) to generate the operating voltage of the microcomputer, a switch signal, which is set at VB as a high state when the switch is turned on and is set at a ground voltage as a low state when the switch is turned off, is used as an input signal. Then, the microcomputer detects the input signal and VB with a built-in A/D converter (S210, S220), and sets a threshold value Y for determining that the input signal changes from "high" to "low" to be a lower value as a detection value becomes lower according to the detection value of VB (S270). Additionally, the microcomputer, when determining that the detection value of the input signal≤the threshold value Y, takes the determination result of the input signal as "low" (S280). <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、外部電源電圧からマイコンの動作電圧を生成するために昇圧回路を備えた電子制御装置に関する。   The present invention relates to an electronic control device including a booster circuit for generating a microcomputer operating voltage from an external power supply voltage.

従来より、外部電源電圧としてのバッテリ電圧が低下した場合でも動作可能となるように昇圧回路を備えた車載電子制御装置が知られており、そのような電子制御装置によって、エンジンの始動制御を行うことも提案されている(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, an in-vehicle electronic control device having a booster circuit so as to be operable even when a battery voltage as an external power supply voltage is lowered is known, and engine start control is performed by such an electronic control device. This has also been proposed (see, for example, Patent Document 1).

そして、この種の電子制御装置は、制御処理を行うマイコンを備えると共に、バッテリ電圧が規定値よりも高ければ、そのバッテリ電圧からマイコンの動作電圧が生成され、バッテリ電圧が規定値以下になった場合には、そのバッテリ電圧を昇圧回路で昇圧した電圧からマイコンの動作電圧が生成されるように構成される。   And this kind of electronic control unit is equipped with the microcomputer which performs control processing, and if the battery voltage is higher than the specified value, the operating voltage of the microcomputer is generated from the battery voltage, and the battery voltage is below the specified value. In this case, the operation voltage of the microcomputer is generated from the voltage obtained by boosting the battery voltage by the booster circuit.

また、特許文献2には、電源電圧が基準電圧以下に低下したときに、マイコンに入力される信号を無効にすることが記載されている。
特開2006−118481号公報 特許2527518号公報
Patent Document 2 describes that when a power supply voltage drops below a reference voltage, a signal input to a microcomputer is invalidated.
JP 2006-118481 A Japanese Patent No. 2527518

上記のような昇圧回路を備えた電子制御装置によれば、動作可能なバッテリ電圧の最低値を低くすることができるものの、バッテリ電圧の低下時において、マイコンが、入力ポートからの入力信号を誤判定する可能性がある。   According to the electronic control device including the booster circuit as described above, the minimum value of the operable battery voltage can be lowered, but when the battery voltage drops, the microcomputer erroneously inputs the input signal from the input port. There is a possibility of judging.

例えば図11に示すように、スイッチがオンするとハイの状態としてバッテリ電圧になり、スイッチがオフするとローの状態としてグランド電圧(=0V)になるハイアクティブのスイッチ信号が、入力信号である場合を例に挙げて説明する。つまり、図11の入力信号は、抵抗成分を介してグランド電圧にプルダウンされると共に、スイッチを介してバッテリ電圧に接続される信号線の電圧である。   For example, as shown in FIG. 11, when a switch is turned on, the battery voltage is set to a high state, and when the switch is turned off, a high active switch signal that is set to a low state and a ground voltage (= 0V) is an input signal. An example will be described. That is, the input signal of FIG. 11 is a voltage of a signal line that is pulled down to the ground voltage via the resistance component and connected to the battery voltage via the switch.

この入力信号では、スイッチがオンされてハイ状態の場合にバッテリ電圧が低下すると、その入力信号の電圧も低下する。
これに対し、バッテリ電圧が低下しても、マイコンには、昇圧回路の作用によって一定の動作電圧が供給されるため、マイコンの入力ポートでは、ハイ/ローを判定するための閾値電圧が一定である。
With this input signal, when the battery voltage decreases when the switch is turned on and in the high state, the voltage of the input signal also decreases.
On the other hand, even if the battery voltage drops, the microcomputer is supplied with a constant operating voltage by the action of the booster circuit, so that the threshold voltage for determining high / low is constant at the input port of the microcomputer. is there.

このため、バッテリ電圧の低下により入力信号の電圧が低下すると、本当はスイッチがオンでハイ状態であるのに、マイコンは、図11の最下段における実線で示す如く、入力信号がロー状態である(スイッチがオフである)と誤判定してしまう。   For this reason, when the voltage of the input signal decreases due to a decrease in the battery voltage, the microcomputer is actually in the high state with the switch on, but the microcomputer has the input signal in the low state as shown by the solid line in the lowermost stage of FIG. It is erroneously determined that the switch is off.

すると、昇圧回路を備えた電子制御装置であるにも拘わらず、バッテリ電圧の低下によって、入力信号に基づく制御処理を正しく行うことができなくなる。
また、こうした問題は、ハイアクティブのスイッチ信号に限らず、スイッチがオンするとロー状態としてグランド電圧(=0V)になり、スイッチがオフするとハイ状態としてバッテリ電圧又はバッテリ電圧に比例した電圧となるローアクティブのスイッチ信号についても同様である。つまり、ローアクティブのスイッチ信号の場合には、本当はスイッチがオフであるのに、オンであると誤判定することとなる。
As a result, the control process based on the input signal cannot be performed correctly due to a decrease in the battery voltage, even though the electronic control apparatus includes the booster circuit.
This problem is not limited to a high-active switch signal. When the switch is turned on, the low voltage is set to the ground voltage (= 0 V). When the switch is turned off, the voltage is set to the battery voltage or a voltage proportional to the battery voltage. The same applies to the active switch signal. That is, in the case of a low-active switch signal, it is erroneously determined that the switch is on even though the switch is actually off.

尚、上述の誤判定を防止するために、特許文献2の考え方を利用すると、図11の最下段における点線で示すように、バッテリ電圧が所定のホールド判定電圧以下になった場合には、それまでの入力信号のハイ/ロー判定結果(スイッチのオン/オフ判定結果)を変えずにホールド(保持)するように構成することが考えられる。   In order to prevent the erroneous determination described above, if the idea of Patent Document 2 is used, as shown by the dotted line in the lowermost stage of FIG. 11, if the battery voltage becomes lower than the predetermined hold determination voltage, It can be considered that the high / low judgment result (switch on / off judgment result) of the input signal up to the above is held without being changed.

しかし、そのように構成すると、今度は、入力信号の状態変化を検知することができないないという別の問題が発生する。例えば、エンジンの始動制御では、ブレーキスイッチのオン/オフによって図11の入力信号と同様に状態変化するブレーキ信号が、ブレーキペダルの踏み込みを示すハイ状態であることを条件として、スタータの駆動を実施するようになっている。尚、この例において、ブレーキスイッチは、ブレーキペダルが踏まれているときにオンするスイッチである。ところが、そのようなブレーキ信号のハイ/ロー判定結果をバッテリ電圧の低下時にホールドするように構成すると、スタータの駆動によってバッテリ電圧が低下した場合に、ブレーキスイッチがオンからオフされたとしても、ブレーキ信号の判定結果がハイのままとなり、そのことを検知できずにスタータの駆動を継続してしまうこととなる。   However, with such a configuration, another problem arises that this time it is impossible to detect a change in the state of the input signal. For example, in the engine start control, the starter is driven on condition that the brake signal whose state changes in the same manner as the input signal in FIG. 11 by turning on / off the brake switch is in a high state indicating depression of the brake pedal. It is supposed to be. In this example, the brake switch is a switch that is turned on when the brake pedal is depressed. However, if such a high / low judgment result of the brake signal is held when the battery voltage decreases, even if the brake switch is turned off when the battery voltage decreases due to the starter driving, the brake The determination result of the signal remains high, and this cannot be detected and the drive of the starter is continued.

本発明は、こうした問題に鑑みなされたものであり、外部電源電圧を昇圧回路で昇圧してマイコンの動作電圧を生成する機能を有した電子制御装置において、外部電源電圧が低下した場合に、入力信号がハイ状態からロー状態になったことを正確に判定できるようにすることを目的としている。   The present invention has been made in view of these problems, and in an electronic control device having a function of generating an operating voltage of a microcomputer by boosting an external power supply voltage by a booster circuit, when the external power supply voltage is lowered, The purpose is to make it possible to accurately determine that the signal has changed from a high state to a low state.

請求項1の電子制御装置では、外部から供給される外部電源電圧が規定値よりも高い場合には、その外部電源電圧からマイコンの動作電圧が生成され、外部電源電圧が規定値以下になった場合には、その外部電源電圧を昇圧回路で昇圧した電圧からマイコンの動作電圧が生成されるようになっている。このため、外部電源電圧が規定値より低下しても、マイコンは動作可能である。   In the electronic control device according to claim 1, when the external power supply voltage supplied from the outside is higher than the specified value, the operating voltage of the microcomputer is generated from the external power supply voltage, and the external power supply voltage becomes less than the specified value. In some cases, the operating voltage of the microcomputer is generated from the voltage obtained by boosting the external power supply voltage by a booster circuit. For this reason, even if the external power supply voltage drops below the specified value, the microcomputer can operate.

そして、マイコンは、ハイの状態として外部電源電圧又は該外部電源電圧に比例した電圧となりローの状態としてグランド電圧になる入力信号が、ハイとローの何れであるかを判定するための信号判定処理と、その信号判定処理による入力信号の判定結果に基づき制御対象を制御するための制御処理とを行う。   The microcomputer determines whether the input signal that is in the high state is the external power supply voltage or the voltage that is proportional to the external power supply voltage and becomes the ground voltage in the low state is high or low. And a control process for controlling the control target based on the determination result of the input signal by the signal determination process.

ここで特に、マイコンは、信号判定処理のうち、入力信号がローになったことを判定するためのロー判定用処理として、電圧検出処理とロー閾値設定処理とロー側判定処理とを行う。   In particular, the microcomputer performs a voltage detection process, a low threshold setting process, and a low-side determination process as a low determination process for determining that the input signal has become low in the signal determination process.

まず、電圧検出処理では、入力信号と外部電源電圧との各々の電圧値を、前記動作電圧を受けて動作するA/D変換器により検出する。尚、A/D変換器は、マイコンに内蔵されたものでも、マイコンの外部に設けられたものでも、何れでも良い。   First, in the voltage detection process, the voltage values of the input signal and the external power supply voltage are detected by an A / D converter that operates in response to the operating voltage. The A / D converter may be either built in the microcomputer or provided outside the microcomputer.

また、ロー閾値設定処理では、入力信号がハイからローになったことを判定するためのロー判定閾値を、電圧検出処理による外部電源電圧の検出値に応じて、その検出値が小さいほど、小さい値となるように設定する。   Further, in the low threshold value setting process, the low determination threshold value for determining that the input signal has changed from high to low is smaller as the detection value is smaller according to the detection value of the external power supply voltage by the voltage detection process. Set to be a value.

そして、ロー側判定処理では、電圧検出処理による入力信号の電圧検出値とロー閾値設定処理により設定されたロー判定閾値とを比較して、入力信号の電圧検出値がロー判定閾値以下と判定した場合に、入力信号の判定結果をローに設定する(つまり、入力信号がロー状態であると判定する)。   In the low-side determination process, the voltage detection value of the input signal obtained by the voltage detection process is compared with the low determination threshold value set by the low threshold setting process, and the voltage detection value of the input signal is determined to be equal to or lower than the low determination threshold value. In this case, the determination result of the input signal is set to low (that is, it is determined that the input signal is in the low state).

このような請求項1の電子制御装置によれば、外部電源電圧が低いほど、ロー判定閾値が小さい値に設定されることとなるため、入力信号がハイ状態である場合に、外部電源電圧が低下して、その入力信号の電圧が低下しても、入力信号がロー状態であると誤判定してしまうことを防止することができる。また、入力信号のハイ/ロー判定結果をホールドするものではなく、入力信号が本当にハイ状態からロー状態になれば、そのことを判定することができる。よって、入力信号がハイ状態からロー状態になったことを正確に判定することができ、その入力信号に基づく制御処理を正しく行うことができるようになる。   According to such an electronic control device of claim 1, the lower the external power supply voltage is, the smaller the low determination threshold value is set. Therefore, when the input signal is in the high state, the external power supply voltage is Even if the voltage of the input signal decreases and the input signal decreases, it can be prevented that the input signal is erroneously determined to be in the low state. In addition, the high / low determination result of the input signal is not held, and it can be determined if the input signal really changes from the high state to the low state. Therefore, it is possible to accurately determine that the input signal has changed from the high state to the low state, and it is possible to correctly perform the control processing based on the input signal.

ところで、信号判定処理のうち、入力信号がハイになったことを判定するためのハイ判定用処理としては、例えば、電圧検出処理による入力信号の電圧検出値がロー閾値設定処理により設定されたロー判定閾値以上と判定した場合に、入力信号の判定結果をハイに設定する、という処理が考えられる。つまり、ロー判定閾値は、入力信号がローからハイになったことを判定するためのハイ判定閾値としても使用することができる。   By the way, in the signal determination process, as the high determination process for determining that the input signal becomes high, for example, the voltage detection value of the input signal by the voltage detection process is set to the low threshold value set by the low threshold setting process. A process of setting the input signal determination result to high when it is determined that the determination threshold value is exceeded is conceivable. That is, the low determination threshold can also be used as a high determination threshold for determining that the input signal has changed from low to high.

また、請求項2に記載のように構成すれば、ロー判定閾値とハイ判定閾値とにヒステリシスを持たせることができ、入力信号の状態(ハイとローの何れであるか)をノイズによって誤判定してしまう可能性を低くすることができる。   Further, according to the second aspect of the present invention, it is possible to give hysteresis to the low determination threshold and the high determination threshold, and erroneously determine the state of the input signal (whether it is high or low) by noise. It is possible to reduce the possibility of doing so.

即ち、請求項2の電子制御装置では、マイコンが、ハイ判定用処理として、ハイ閾値設定処理とハイ側判定処理とを行う。まず、ハイ閾値設定処理では、ハイ判定閾値を、電圧検出処理による外部電源電圧の検出値に応じて、その検出値が小さいほど、小さい値で、且つ、前記ロー判定閾値よりは大きい値となるように設定する。そして、ハイ側判定処理では、電圧検出処理による入力信号の電圧検出値とハイ閾値設定処理により設定されたハイ判定閾値とを比較して、入力信号の電圧検出値がハイ判定閾値以上と判定した場合に、入力信号の判定結果をハイに設定する(つまり、入力信号がハイ状態であると判定する)。   That is, in the electronic control device according to the second aspect, the microcomputer performs a high threshold setting process and a high side determination process as the high determination process. First, in the high threshold setting process, the high determination threshold is set to a smaller value and a value larger than the low determination threshold according to the detection value of the external power supply voltage by the voltage detection process. Set as follows. In the high side determination process, the voltage detection value of the input signal by the voltage detection process is compared with the high determination threshold value set by the high threshold setting process, and the voltage detection value of the input signal is determined to be equal to or higher than the high determination threshold value. In this case, the determination result of the input signal is set to high (that is, it is determined that the input signal is in the high state).

次に、請求項3の電子制御装置では、請求項1,2の電子制御装置において、マイコンは、電圧検出処理において、入力信号と外部電源電圧との各々の電圧値をA/D変換器により連続して検出するようになっている。   Next, in the electronic control device according to claim 3, in the electronic control device according to claims 1 and 2, in the voltage detection process, the microcomputer uses the A / D converter to set each voltage value of the input signal and the external power supply voltage. It is designed to detect continuously.

この構成によれば、入力信号と外部電源電圧との各電圧値をほぼ同じタイイングで検出することができ、入力信号の判定精度を向上させることができる。入力信号の電圧値を検出した時の外部電源電圧に応じてロー判定閾値やハイ判定閾値を設定できるからである。   According to this configuration, the voltage values of the input signal and the external power supply voltage can be detected with substantially the same tying, and the determination accuracy of the input signal can be improved. This is because the low determination threshold and the high determination threshold can be set according to the external power supply voltage when the voltage value of the input signal is detected.

次に、請求項4の電子制御装置では、請求項1〜3の電子制御装置において、入力信号と外部電源電圧との各々は、別々のフィルタ回路を介してA/D変換器に入力されるようになっている。そして、入力信号のフィルタ回路と外部電源電圧のフィルタ回路は、互いの時定数が同じになるように構成されている。   Next, according to a fourth aspect of the present invention, in the electronic control device according to the first to third aspects, each of the input signal and the external power supply voltage is input to the A / D converter via separate filter circuits. It is like that. The input signal filter circuit and the external power supply voltage filter circuit are configured to have the same time constant.

つまり、入力信号だけでなく、外部電源電圧も、入力信号のフィルタ回路と時定数が同じフィルタ回路を介してA/D変換器に入力されるようにしている。尚、複数のフィルタ回路が、互いの時定数が同じになるように構成されているとは、それらフィルタ回路の形態や構成部品が、互いの時定数が同じになるように選定されていることを意味している。   That is, not only the input signal but also the external power supply voltage is input to the A / D converter through the filter circuit having the same time constant as the filter circuit of the input signal. In addition, a plurality of filter circuits are configured so that their time constants are the same. The form and components of these filter circuits are selected so that their time constants are the same. Means.

この構成によれば、A/D変換器に入力される入力信号と外部電源電圧との位相ずれを無くすことができるため、入力信号の判定精度を向上させることができる。
次に、請求項5の電子制御装置では、請求項1〜4の電子制御装置において、入力信号はマイコンの入力ポートにも入力されるようになっている。そして、マイコンは、外部電源電圧が所定値よりも高いと判定している場合には、信号判定処理として、入力信号がハイとローの何れであるかを入力ポートで判定する処理を行う。尚、一般に、マイコンでは、入力ポートでのハイ/ローの判定結果である論理1又は論理0が、マイコン内のポートレジスタに格納される。そして、入力信号がハイとローの何れであるかを入力ポートで判定するとは、入力ポートでのハイ/ローの判定結果をポートレジスタから読み込み、その読み込んだ判定結果を入力信号の判定結果として扱う、ということを意味している。
According to this configuration, since the phase shift between the input signal input to the A / D converter and the external power supply voltage can be eliminated, the determination accuracy of the input signal can be improved.
According to a fifth aspect of the present invention, in the electronic control device according to the first to fourth aspects, the input signal is also input to the input port of the microcomputer. If the microcomputer determines that the external power supply voltage is higher than a predetermined value, the microcomputer determines whether the input signal is high or low as the signal determination process. In general, in a microcomputer, logic 1 or logic 0, which is a determination result of high / low at an input port, is stored in a port register in the microcomputer. When the input port determines whether the input signal is high or low, the high / low determination result at the input port is read from the port register, and the read determination result is handled as the input signal determination result. It means that.

このような請求項5の電子制御装置によれば、外部電源電圧が所定値よりも高い場合には、入力信号の状態を入力ポートで判定することとなるため、マイコンの処理負荷を軽減することができる。尚、上記所定値は、入力信号の状態を入力ポートで判定しても誤判定が生じないと考えられる外部電源電圧の値に設定しておけば良い。   According to such an electronic control device of claim 5, when the external power supply voltage is higher than a predetermined value, the state of the input signal is determined by the input port, so that the processing load on the microcomputer is reduced. Can do. The predetermined value may be set to a value of the external power supply voltage that is considered to cause no erroneous determination even if the state of the input signal is determined at the input port.

次に、請求項6の電子制御装置では、請求項1〜5の電子制御装置において、外部電源電圧は、車両に搭載されたバッテリの電圧であり、入力信号は、ハイの状態が車両のエンジンを始動させるためのスタータの駆動を許可することを意味する始動許可条件信号である。そして、マイコンは、制御処理として、スタータを制御するための処理を行うと共に、その制御処理では、スタータの駆動中に前記入力信号の判定結果がハイからローになると、スタータの駆動を停止するようになっている。   Next, in the electronic control device according to a sixth aspect, in the electronic control device according to the first to fifth aspects, the external power supply voltage is a voltage of a battery mounted on the vehicle, and the input signal is in a high state when the engine is in the vehicle. Is a start permission condition signal which means that the drive of the starter for starting is permitted. Then, the microcomputer performs a process for controlling the starter as a control process. In the control process, when the determination result of the input signal changes from high to low during the starter drive, the starter drive is stopped. It has become.

このような電子制御装置によれば、スタータの駆動によってバッテリ電圧が低下し、ハイ状態である入力信号の電圧が低下しても、その入力信号がロー状態であると誤判定してしまうことを防止することができるため、スタータの駆動を誤って停止してしまうことがない。また、入力信号が本当にハイ状態からロー状態になれば、そのことを判定して、スタータの駆動を確実に停止することができる。よって、スタータの制御処理を正しく行うことができる。   According to such an electronic control device, even if the battery voltage decreases due to the starter being driven and the voltage of the input signal in the high state decreases, it is erroneously determined that the input signal is in the low state. Therefore, the starter drive is not accidentally stopped. Further, if the input signal really changes from the high state to the low state, it is possible to determine that fact and to stop the starter drive reliably. Therefore, the starter control process can be performed correctly.

次に、請求項7の電子制御装置では、請求項6の電子制御装置において、マイコンは、スタータの駆動中に信号判定処理の実行間隔を短くするようになっている。
このような電子制御装置によれば、スタータの駆動中に始動許可条件信号としての入力信号がハイ状態からロー状態になった場合、そのことをいち早く判定して、すみやかにスタータの駆動を停止することができ、安全面で有利である。
Next, in an electronic control device according to a seventh aspect, in the electronic control device according to the sixth aspect, the microcomputer shortens the execution interval of the signal determination process while the starter is being driven.
According to such an electronic control device, when the input signal as the start permission condition signal changes from the high state to the low state during driving of the starter, it is determined as soon as possible and the driving of the starter is immediately stopped. This is advantageous in terms of safety.

尚、スタータの駆動中に信号判定処理の実行間隔を短くする具体的な手法としては、例えば下記(1)〜(3)の手法が考えられる。
(1)実際にスタータを駆動している間、信号判定処理の実行間隔を短くする。
(2)スタータの駆動開始時から一定時間、信号判定処理の実行間隔を短くする。
(3)スタータの駆動を開始するとバッテリ電圧が低下するため、バッテリ電圧がある値(スタータが駆動されていると予想される値)以下になっている場合に、信号判定処理の実行間隔を短くする。
For example, the following methods (1) to (3) are conceivable as a specific method for shortening the execution interval of the signal determination process during driving of the starter.
(1) While the starter is actually driven, the execution interval of the signal determination process is shortened.
(2) The execution interval of the signal determination process is shortened for a certain time from the start of driving the starter.
(3) Since the battery voltage decreases when the starter driving is started, the execution interval of the signal determination process is shortened when the battery voltage is equal to or less than a certain value (a value expected to be driven by the starter). To do.

次に、請求項8の電子制御装置では、請求項6,7の電子制御装置において、マイコンは、スタータの駆動中に前記入力信号がハイからローになったと判定すると、その時点から一定時間は、前記信号判定処理を実行しないようになっている。   Next, in the electronic control device according to an eighth aspect, in the electronic control device according to the sixth and seventh aspects, when the microcomputer determines that the input signal has changed from high to low during driving of the starter, a certain time from that point is determined. The signal determination process is not executed.

このような電子制御装置によれば、スタータの駆動中に入力信号がロー状態になった後、入力信号にノイズが乗ったとしても、その入力信号がハイ状態になったと誤判定してしまうことがなく、延いては、スタータを誤って駆動してしまう可能性を排除することができるため、安全面で有利である。また、一般に、始動許可条件信号としての入力信号は、前述したブレーキ信号のように、車両運転者による何等かの操作部に対する操作に応じてハイ/ローが変化する信号であるため、その入力信号がハイ状態からロー状態に変化した後、即座にハイ状態へ戻ることはないと考えられる。よって、信号判定処理を実行しない一定の不感時間を設けても支障はない。   According to such an electronic control device, even if noise is added to the input signal after the input signal becomes low while the starter is driven, it is erroneously determined that the input signal becomes high. Therefore, the possibility of erroneously driving the starter can be eliminated, which is advantageous in terms of safety. In general, the input signal as the start permission condition signal is a signal that changes between high and low in response to an operation on any operation unit by the vehicle driver like the brake signal described above. After changing from high to low, it is unlikely that it will immediately return to high. Therefore, there is no problem even if a fixed dead time during which the signal determination process is not executed is provided.

次に、請求項9の電子制御装置では、請求項6〜8の電子制御装置において、マイコンは、外部電源電圧が特定の値以下になっている場合には、信号判定処理のうち、前記電圧検出処理、前記ロー閾値設定処理及び前記ロー側判定処理からなるロー判定用処理のみを行うようになっている。   Next, in an electronic control device according to a ninth aspect, in the electronic control device according to any one of the sixth to eighth aspects, when the external power supply voltage is not more than a specific value, the microcomputer Only the low determination process including the detection process, the low threshold value setting process, and the low side determination process is performed.

この構成によれば、スタータの駆動によって外部電源電圧が特定の値以下になった場合には、A/D変換器を使用したロー判定用処理のみが行われるため、入力信号が本当にハイ状態からロー状態になれば、そのことを正確に判定してスタータの駆動を停止することができると共に、外部電源電圧が復帰して特定の値より高くなるまでの間に、入力信号にハイ方向のノイズが乗ったとしても、その入力信号がハイ状態になったと誤判定してしまうことがなく、スタータを誤って再駆動してしまう可能性を排除することができる。よって、安全性を高めることができる。   According to this configuration, when the external power supply voltage becomes a specific value or less by driving the starter, only the low determination process using the A / D converter is performed. If it goes low, it is possible to accurately determine this and stop the drive of the starter. In addition, the noise of the high direction is added to the input signal until the external power supply voltage recovers and becomes higher than a specific value. Even if it gets on, there is no misjudgment that the input signal has become a high state, and the possibility of erroneously re-starting the starter can be eliminated. Therefore, safety can be improved.

次に、請求項10の電子制御装置では、請求項1〜9の電子制御装置において、マイコンは、外部電源電圧が、昇圧回路で昇圧しても前記動作電圧が低下してA/D変換器のA/D変換精度が悪化してしまうと考えられる下限値以下になった場合には、入力信号の判定結果を変更しないようになっている。   Next, in the electronic control device according to a tenth aspect, in the electronic control device according to the first to ninth aspects, the microcomputer reduces the operating voltage even if the external power supply voltage is boosted by the booster circuit, and the A / D converter. When the A / D conversion accuracy becomes lower than the lower limit value considered to deteriorate, the determination result of the input signal is not changed.

この構成によれば、外部電源電圧が昇圧不能な程に低下してA/D変換器の精度が悪化した場合に、入力信号の状態を誤判定してしまうことを防止することができる。
次に、請求項11の電子制御装置においても、マイコンは、信号判定処理のうちのロー判定用処理として、請求項1の電子制御装置と同様の、電圧検出処理とロー閾値設定処理とロー側判定処理とを行う。
According to this configuration, it is possible to prevent the state of the input signal from being erroneously determined when the external power supply voltage is lowered to the extent that it cannot be boosted and the accuracy of the A / D converter deteriorates.
Next, in the electronic control device according to claim 11, the microcomputer performs the voltage detection processing, the low threshold setting processing, and the low side as the low determination processing in the signal determination processing, as in the electronic control device according to claim 1. Judgment processing is performed.

この電子制御装置によれば、外部電源電圧が低いほど、ロー判定閾値が小さい値に設定されることとなるため、入力信号がハイ状態である場合に、外部電源電圧が低下して、その入力信号の電圧が低下しても、入力信号がロー状態であると誤判定してしまうことを防止することができる。また、入力信号が本当にハイ状態からロー状態になれば、そのことを判定することができる。よって、入力信号がハイ状態からロー状態になったことを正確に判定することができる。   According to this electronic control device, the lower the external power supply voltage, the smaller the low determination threshold value is set. Therefore, when the input signal is in the high state, the external power supply voltage decreases and the input Even if the voltage of the signal decreases, it can be prevented that the input signal is erroneously determined to be in the low state. Also, if the input signal really goes from the high state to the low state, this can be determined. Therefore, it can be accurately determined that the input signal has changed from the high state to the low state.

次に、請求項12の電子制御装置では、請求項11の電子制御装置において、マイコンは、信号判定処理のうちのハイ判定用処理として、請求項2の電子制御装置と同様の、ハイ閾値設定処理とハイ側判定処理とを行う。   Next, in an electronic control device according to a twelfth aspect, in the electronic control device according to the eleventh aspect, the microcomputer sets a high threshold value as in the electronic control device according to the second aspect as the high determination processing in the signal determination processing. Processing and high-side determination processing are performed.

この請求項12の電子制御装置によれば、ロー判定閾値とハイ判定閾値とにヒステリシスを持たせることができ、入力信号の状態(ハイとローの何れであるか)をノイズによって誤判定してしまう可能性を低くすることができる。   According to the electronic control device of the twelfth aspect, it is possible to give hysteresis to the low determination threshold and the high determination threshold, and erroneously determine the state of the input signal (whether it is high or low) by noise. The possibility that it will end up can be reduced.

尚、請求項5に記載の「所定値」と、請求項9に記載の「特定の値」と、請求項10に記載の「下限値」との大小関係は、[「所定値」≧「特定の値」>「下限値」]である。
また、請求項1,11に記載のロー側判定処理では、入力信号の電圧検出値がロー判定閾値以下であると複数回連続して判定したなら、入力信号の判定結果をローに設定するようにしても良い。同様に、請求項2,12に記載のハイ側判定処理では、入力信号の電圧検出値がハイ判定閾値以上であると複数回連続して判定したなら、入力信号の判定結果をハイに設定するようにしても良い。
The magnitude relationship between the “predetermined value” according to claim 5, the “specific value” according to claim 9, and the “lower limit value” according to claim 10 is [[predetermined value] ≧ “ Specific value ">" lower limit "].
Further, in the low-side determination processing according to claims 1 and 11, if it is continuously determined a plurality of times that the voltage detection value of the input signal is equal to or lower than the low determination threshold, the determination result of the input signal is set to low. Anyway. Similarly, in the high-side determination processing according to claims 2 and 12, if it is continuously determined a plurality of times that the voltage detection value of the input signal is equal to or higher than the high determination threshold, the determination result of the input signal is set to high. You may do it.

そして、このようにすれば、入力信号の電圧がノイズにより閾値付近で変動したとしても、その入力信号の判定結果が切り替わってしまうのを防止することができる。また、こうしたノイズ除去用の手法は、請求項5の電子制御装置において、外部電源電圧が所定値よりも高く、入力信号がハイとローの何れであるかを入力ポートで判定する場合においても適用することができる。具体的には、ポートレジスタから読み込んだハイ/ローの判定結果が複数回連続して同じ値であったなら、その値を入力信号の判定結果として設定する、という処理を行うようにしても良い。   Then, even if the voltage of the input signal fluctuates near the threshold due to noise, it is possible to prevent the determination result of the input signal from being switched. Further, such a noise removal method is also applied to the electronic control device according to claim 5 when the external power supply voltage is higher than a predetermined value and the input port determines whether the input signal is high or low. can do. Specifically, if the high / low determination result read from the port register is the same value for a plurality of consecutive times, the value may be set as the input signal determination result. .

以下に、本発明が適用された実施形態の電子制御装置について説明する。尚、本実施形態の電子制御装置(以下、ECUという)は、車両に搭載されて、その車両における他のECUへ電源を供給する制御を行う電源制御ECUであり、その車両のエンジンを始動させるための始動制御も行う。
[第1実施形態]
図1に示すように、第1実施形態のECU1は、マイコン3と、電源回路5と、昇圧回路7と、駆動回路9とを備えている。
Hereinafter, an electronic control device according to an embodiment to which the present invention is applied will be described. An electronic control device (hereinafter referred to as ECU) of this embodiment is a power supply control ECU that is mounted on a vehicle and performs control to supply power to other ECUs in the vehicle, and starts an engine of the vehicle. Start control is also performed.
[First Embodiment]
As shown in FIG. 1, the ECU 1 of the first embodiment includes a microcomputer 3, a power supply circuit 5, a booster circuit 7, and a drive circuit 9.

電源回路5は、マイコン3からの昇圧指示信号Suを受けていない通常時には、車両に搭載されたバッテリ11より供給される外部電源電圧としてのバッテリ電圧VBから、マイコン3を動作させるための一定の動作電圧VD(例えば5V)を生成して出力する。   The power supply circuit 5 is a constant for operating the microcomputer 3 from the battery voltage VB as the external power supply voltage supplied from the battery 11 mounted on the vehicle at the normal time when the boost instruction signal Su from the microcomputer 3 is not received. An operating voltage VD (for example, 5V) is generated and output.

マイコン3は、電源回路5からの動作電圧VDを受けて動作するが、その動作中において、内蔵のA/D変換器によりバッテリ電圧VBを検出しており、バッテリ電圧VBが規定値(本実施形態では7V)以下になったと判定した場合には、電源回路5へ上記昇圧指示信号Suを出力する。   The microcomputer 3 operates in response to the operating voltage VD from the power supply circuit 5. During the operation, the microcomputer 3 detects the battery voltage VB by the built-in A / D converter, and the battery voltage VB is a specified value (this embodiment). If it is determined that the voltage is 7 V or less, the boost instruction signal Su is output to the power supply circuit 5.

そして、電源回路5は、昇圧指示信号Suを受けている場合には、その昇圧指示信号Suを昇圧回路7に出力すると共に、昇圧回路7の出力電圧VUから動作電圧VDを生成して出力する。   When the power supply circuit 5 receives the boost instruction signal Su, the power supply circuit 5 outputs the boost instruction signal Su to the booster circuit 7, and generates and outputs the operating voltage VD from the output voltage VU of the booster circuit 7. .

また、昇圧回路7は、昇圧指示信号Suを受けると、バッテリ電圧VBを所定電圧以上(たとえば7V以上)に昇圧して電源回路5に出力する。
このため、バッテリ電圧VBが規定値(=7V)よりも高い場合には、そのバッテリ電圧VBからマイコン3の動作電圧VDが生成されるが、バッテリ電圧VBが規定値以下になった場合には、バッテリ電圧VBを昇圧回路7で昇圧した電圧VUから動作電圧VDが生成される。
Further, when receiving the boost instruction signal Su, the booster circuit 7 boosts the battery voltage VB to a predetermined voltage or higher (for example, 7 V or higher) and outputs the boosted voltage to the power supply circuit 5.
For this reason, when the battery voltage VB is higher than the specified value (= 7V), the operating voltage VD of the microcomputer 3 is generated from the battery voltage VB. However, when the battery voltage VB becomes lower than the specified value. The operating voltage VD is generated from the voltage VU obtained by boosting the battery voltage VB by the booster circuit 7.

一方、駆動回路9は、マイコン3からの電源リレーオン指令に応じて、ECU1外に設けられた電源リレー13のコイルに通電する。すると、電源リレー13がオンして、エンジンを制御するエンジンECU15や、その他のECU(図示省略)へ、バッテリ電圧VBが電源として供給される。   On the other hand, the drive circuit 9 energizes the coil of the power supply relay 13 provided outside the ECU 1 in response to a power supply relay on command from the microcomputer 3. Then, the power relay 13 is turned on, and the battery voltage VB is supplied as power to the engine ECU 15 that controls the engine and other ECUs (not shown).

また、駆動回路9は、マイコン3からのスタータリレーオン指令に応じて、ECU1外に設けられたスタータリレー17のコイルに通電する。すると、スタータリレー17がオンして、エンジンを始動させるためのスタータ19にバッテリ電圧VBが供給され、そのスタータ19が作動することにより、エンジンがクランキングされる。   The drive circuit 9 energizes the coil of the starter relay 17 provided outside the ECU 1 in response to a starter relay on command from the microcomputer 3. Then, the starter relay 17 is turned on, the battery voltage VB is supplied to the starter 19 for starting the engine, and the starter 19 is operated, whereby the engine is cranked.

更に、ECU1は、マイコン3のA/D変換用入力端子AD1にバッテリ電圧VBを入力させるための入力回路として、バッテリ電圧VBを分圧する2つの抵抗21,22と、その抵抗21,22によって分圧された電圧を積分してA/D変換用入力端子AD1に入力させる抵抗23及びコンデンサ24からなるフィルタ回路(ローパスフィルタ回路)とを備えている。   Further, the ECU 1 serves as an input circuit for inputting the battery voltage VB to the A / D conversion input terminal AD1 of the microcomputer 3, and is divided by the two resistors 21 and 22 that divide the battery voltage VB and the resistors 21 and 22. A filter circuit (low-pass filter circuit) including a resistor 23 and a capacitor 24 that integrates the pressed voltage and inputs the integrated voltage to the A / D conversion input terminal AD1 is provided.

また、ECU1には、スタートスイッチ27がオンするとハイ状態としてバッテリ電圧VBになり、スタートスイッチ27がオフするとロー状態としてグランド電圧になるスタート信号が、信号線28を介して入力される。更に、ECU1には、ブレーキスイッチ29がオンするとハイ状態としてバッテリ電圧VBになり、ブレーキスイッチ29がオフするとロー状態としてグランド電圧になるブレーキ信号が、信号線30を介して入力される。尚、スタートスイッチ27は、エンジンを始動させるためのプッシュ式スイッチであり、車両運転者によって押されているときにオン状態になる。また、ブレーキスイッチ29は、車両運転者がブレーキペダルを踏んでいるか否かを検出するためのスイッチであり、ブレーキペダルが踏まれているときにオン状態になる。   Further, the ECU 1 receives a start signal via the signal line 28 that is set to the battery voltage VB as the high state when the start switch 27 is turned on and becomes the ground voltage as the low state when the start switch 27 is turned off. Further, the brake signal 29 is input to the ECU 1 via the signal line 30 as a battery voltage VB as a high state when the brake switch 29 is turned on and as a ground voltage as a low state when the brake switch 29 is turned off. The start switch 27 is a push-type switch for starting the engine, and is turned on when being pushed by the vehicle driver. The brake switch 29 is a switch for detecting whether or not the vehicle driver is stepping on the brake pedal, and is turned on when the brake pedal is stepped on.

そして、ECU1は、マイコン3のA/D変換用入力端子AD2に信号線28からのスタート信号を入力させるための入力回路として、スタート信号を分圧する2つの抵抗31,32と、その抵抗31,32によって分圧された電圧を積分してA/D変換用入力端子AD2に入力させる抵抗33及びコンデンサ34からなるフィルタ回路とを備えている。   The ECU 1 serves as an input circuit for inputting a start signal from the signal line 28 to the A / D conversion input terminal AD2 of the microcomputer 3, and includes two resistors 31, 32 for dividing the start signal, And a filter circuit including a resistor 33 and a capacitor 34 that integrate the voltage divided by 32 and input the voltage to the A / D conversion input terminal AD2.

同様に、ECU1は、マイコン3のA/D変換用入力端子AD3に信号線30からのブレーキ信号を入力させるための入力回路として、ブレーキ信号を分圧する2つの抵抗41,42と、その抵抗41,42によって分圧された電圧を積分してA/D変換用入力端子AD3に入力させる抵抗43及びコンデンサ44からなるフィルタ回路とを備えている。   Similarly, the ECU 1 serves as an input circuit for inputting a brake signal from the signal line 30 to the A / D conversion input terminal AD3 of the microcomputer 3, and two resistors 41 and 42 for dividing the brake signal, and the resistor 41 , 42 is integrated, and a filter circuit composed of a resistor 43 and a capacitor 44 is provided to input to the A / D conversion input terminal AD3.

尚、スタートスイッチ27のオフ時にスタート信号がグランド電圧になるのは、抵抗32のプルダウン作用によるものであり、ブレーキスイッチ29のオフ時にブレーキ信号がグランド電圧になるのは、抵抗42のプルダウン作用によるものである。   The start signal becomes the ground voltage when the start switch 27 is turned off due to the pull-down action of the resistor 32, and the brake signal becomes the ground voltage when the brake switch 29 is turned off due to the pull-down action of the resistor 42. Is.

また、本実施形態において、抵抗21,23と、抵抗31,32と、抵抗41,42との、各々の抵抗比は3対1であり、それら各抵抗での分圧比が1/4に設定されている。つまり、バッテリ電圧VBとスタート信号とブレーキ信号との各々を、1/4に分圧してマイコン3のA/D変換用入力端子AD1〜AD3に入力するようにしている。これは、バッテリ電圧VBが最大で18V程度にまで上昇する可能性があり、バッテリ電圧VBが最大値になっても、マイコン3のA/D変換用入力端子AD1〜AD3に入力される電圧を、マイコン3の動作電圧VD(=5V)以下に抑えて、マイコン3内のA/D変換器によりA/D変換できるようにするためである。   In the present embodiment, the resistance ratio of the resistors 21 and 23, the resistors 31 and 32, and the resistors 41 and 42 is 3 to 1, and the voltage dividing ratio at these resistors is set to 1/4. Has been. That is, the battery voltage VB, the start signal, and the brake signal are each divided into ¼ and input to the A / D conversion input terminals AD1 to AD3 of the microcomputer 3. This is because the battery voltage VB may rise up to about 18V, and even if the battery voltage VB reaches the maximum value, the voltage input to the A / D conversion input terminals AD1 to AD3 of the microcomputer 3 is reduced. This is because the A / D conversion can be performed by the A / D converter in the microcomputer 3 while keeping the operating voltage VD (= 5 V) or less of the microcomputer 3 below.

また更に、本実施形態において、上記各フィルタ回路を構成する抵抗23,33,43の抵抗値は同じであり、コンデンサ24,34,44の静電容量も同じである。このため、上記各フィルタ回路の時定数は同じである。   Furthermore, in this embodiment, the resistance values of the resistors 23, 33, and 43 that constitute each filter circuit are the same, and the capacitances of the capacitors 24, 34, and 44 are also the same. For this reason, the time constant of each filter circuit is the same.

このようなECU1においては、マイコン3が後述する図3の入力信号判定処理により、内蔵のA/D変換器を用いてスタート信号とブレーキ信号のハイ/ロー状態(換言すれば、スタートスイッチ27とブレーキスイッチ29のオン/オフ状態)を判定する。   In such an ECU 1, the microcomputer 3 uses a built-in A / D converter to perform a high / low state of the start signal and the brake signal (in other words, the start switch 27 and The brake switch 29 is turned on / off).

そして、マイコン3は、その入力信号判定処理による判定結果からスタートスイッチ27がオンされたことを検知すると、駆動回路9に電源リレーオン指令を出力して電源リレー13をオン状態とし、エンジンECU15や他のECUへバッテリ電圧VBを供給させる。   When the microcomputer 3 detects that the start switch 27 is turned on from the determination result of the input signal determination processing, the microcomputer 3 outputs a power relay on command to the drive circuit 9 to turn on the power relay 13, and the engine ECU 15 and the like. The battery voltage VB is supplied to the ECU.

また、マイコン3は、エンジンが運転状態でない場合(停止しているか完爆状態でない場合)に、図2の始動制御処理を一定時間毎に実行する。
そして、図2に示すように、マイコン3が始動制御処理を開始すると、まずS110にて、スタータ19の駆動中であるか否かを判定し、スタータ19の駆動中でなければ、S120に進んで、スタートスイッチ27がオンされているか否かを、後述の入力信号判定処理(図3)によるスタート信号の判定結果を参照して判定する。
Further, the microcomputer 3 executes the start control process of FIG. 2 at regular intervals when the engine is not in an operating state (when it is stopped or not in a complete explosion state).
As shown in FIG. 2, when the microcomputer 3 starts the start control process, first, in S110, it is determined whether or not the starter 19 is being driven. If the starter 19 is not being driven, the process proceeds to S120. Thus, it is determined whether or not the start switch 27 is turned on with reference to the determination result of the start signal by the input signal determination process (FIG. 3) described later.

ここで、スタートスイッチ27がオンされていないと判定した場合には(S120:NO)、そのまま当該始動制御処理を終了するが、スタートスイッチ27がオンされていると判定した場合には(S120:YES)、S130に進む。   If it is determined that the start switch 27 is not turned on (S120: NO), the start control process is terminated as it is, but if it is determined that the start switch 27 is turned on (S120: YES), the process proceeds to S130.

また、上記S110にて、スタータ19の駆動中であると判定した場合にも(S110:YES)、S130に進む。
S130では、ブレーキスイッチ29がオンされているか否かを、後述の入力信号判定処理(図3)によるブレーキ信号の判定結果を参照して判定し、ブレーキスイッチ29がオンされていると判定した場合には(S130:YES)、S140に進む。
If it is determined in S110 that the starter 19 is being driven (S110: YES), the process proceeds to S130.
In S130, it is determined whether or not the brake switch 29 is turned on with reference to a brake signal determination result by an input signal determination process (FIG. 3) described later, and it is determined that the brake switch 29 is turned on. (S130: YES), the process proceeds to S140.

S140では、駆動回路9にスタータリレーオン指令を出力する処理を行って、スタータリレー17をオン状態にすることにより、スタータ19を駆動する。そして、この状態は、後述するS160の処理が行われるまで継続する。   In S140, the starter relay on command is output to the drive circuit 9, and the starter relay 17 is turned on to drive the starter 19. And this state continues until the process of S160 mentioned later is performed.

次にS150にて、エンジンが完爆状態であるか否かを判定し、エンジンが完爆状態でなければ、そのまま当該始動制御処理を終了する。この場合、当該始動制御処理の次回の実行時には、S110で“YES”と判定されてS130へ移行することとなる。よって、S150でエンジンが完爆状態でないと判定した場合には、再びS130にてブレーキスイッチ29のオン/オフが判定されることとなる。   Next, in S150, it is determined whether or not the engine is in a complete explosion state. If the engine is not in a complete explosion state, the start control process is terminated as it is. In this case, at the next execution of the start control process, “YES” is determined in S110, and the process proceeds to S130. Therefore, when it is determined in S150 that the engine is not in the complete explosion state, it is determined again in S130 whether the brake switch 29 is on or off.

尚、スタータ19が駆動されてエンジンのクランキングが開始されると、エンジンECU15がエンジンの各気筒に対する燃料噴射や点火の制御を開始する。そして、マイコン3は、エンジンが完爆状態であるか否かを、例えばエンジン回転数に基づき判定する。また、エンジン回転数は、エンジンECU15からデータ通信によって取得するか、或いは、エンジン回転数を検出するための回転センサからの信号を直接取り込んで検出する。   When the starter 19 is driven and engine cranking is started, the engine ECU 15 starts fuel injection and ignition control for each cylinder of the engine. Then, the microcomputer 3 determines whether or not the engine is in a complete explosion state based on, for example, the engine speed. Further, the engine speed is acquired by data communication from the engine ECU 15, or a signal from a rotation sensor for detecting the engine speed is directly taken in and detected.

上記S150でエンジンが完爆状態であると判定した場合、或いは、上記S130でブレーキスイッチ29がオンされていないと判定した場合には、S160に移行する。そして、S160では、スタータリレーオン指令の出力を停止する処理を行って、スタータリレー17をオフ状態にすることにより、スタータ19の駆動を停止する。そして、その後、当該始動制御処理を終了する。   If it is determined in S150 that the engine is in a complete explosion state, or if it is determined in S130 that the brake switch 29 is not turned on, the process proceeds to S160. In S160, the starter relay on command is stopped and the starter relay 17 is turned off to stop the starter 19 from being driven. Then, the start control process is finished.

このような始動制御処理により、ブレーキスイッチ29がオン状態でスタートスイッチ27がオンされれば、スタータ19の駆動が開始され、その後は、スタートスイッチ27がオフされても、エンジンが完爆状態になるまでスタータ19が駆動されることとなる。また、エンジンが完爆状態になる前であっても、ブレーキスイッチ29がオフされたならば、スタータ19の駆動が停止される。つまり、本実施形態では、ブレーキスイッチ29のオン/オフを示すブレーキ信号が始動許可条件信号となっている。   By such a start control process, if the start switch 27 is turned on while the brake switch 29 is on, the starter 19 starts to be driven. Thereafter, even if the start switch 27 is turned off, the engine is in a complete explosion state. The starter 19 is driven until Even before the engine reaches a complete explosion state, if the brake switch 29 is turned off, the drive of the starter 19 is stopped. That is, in the present embodiment, the brake signal indicating on / off of the brake switch 29 is the start permission condition signal.

次に、マイコン3が実行する図3の入力信号判定処理について説明する。尚、この入力信号判定処理は一定時間毎に実行される。
図3に示すように、マイコン3が入力信号判定処理の実行を開始すると、まずS210にて、ハイ/ロー判定対象の入力信号を内蔵のA/D変換器によりA/D変換する。本実施形態では、A/D変換用入力端子AD2に入力されるスタート信号と、A/D変換用入力端子AD3に入力されるブレーキ信号とをA/D変換する。そして、次のS220にて、A/D変換用入力端子AD1に入力されるバッテリ電圧VBをA/D変換する。尚、以下では、スタート信号とブレーキ信号との一方についてのみ、入力信号として説明するが、他方の信号についても同様の処理が行われる。
Next, the input signal determination process of FIG. 3 executed by the microcomputer 3 will be described. This input signal determination process is executed at regular intervals.
As shown in FIG. 3, when the microcomputer 3 starts executing the input signal determination process, first, in S210, the input signal to be determined as high / low is A / D converted by the built-in A / D converter. In the present embodiment, the start signal input to the A / D conversion input terminal AD2 and the brake signal input to the A / D conversion input terminal AD3 are A / D converted. In the next S220, the battery voltage VB inputted to the A / D conversion input terminal AD1 is A / D converted. In the following, only one of the start signal and the brake signal will be described as an input signal, but the same processing is performed for the other signal.

次にS230にて、S220でのバッテリ電圧VBのA/D変換値に基づいて、現在のバッテリ電圧VBが特定の値(本実施形態では6V)よりも高いか否かを判定する。具体的に説明すると、マイコン3は、S220で得たバッテリ電圧VBのA/D変換値を4倍した値を、バッテリ電圧VBの検出値としており、その検出値が6Vよりも高いか否かを判定する。そして、バッテリ電圧VBが6Vよりも高いと判定した場合には、S240に進む。   Next, in S230, based on the A / D conversion value of the battery voltage VB in S220, it is determined whether or not the current battery voltage VB is higher than a specific value (6 V in the present embodiment). Specifically, the microcomputer 3 uses a value obtained by multiplying the A / D conversion value of the battery voltage VB obtained in S220 by four times as a detection value of the battery voltage VB, and whether or not the detection value is higher than 6V. Determine. And when it determines with the battery voltage VB being higher than 6V, it progresses to S240.

S240では、入力信号がローからハイになったことを判定するためのハイ判定閾値(換言すれば、入力信号を変化させるスイッチがオフからオンになったことを判定するためのオン判定閾値)Xを、バッテリ電圧VBの検出値と、図4における一点鎖線のグラフで示す特性のデータマップ(以下、ハイ判定閾値設定用マップという)とから設定する。   In S240, a high determination threshold value for determining that the input signal has changed from low to high (in other words, an on determination threshold value for determining that the switch for changing the input signal has been switched from OFF to ON) X Is set from the detected value of the battery voltage VB and a data map of characteristics shown by a dashed line graph in FIG. 4 (hereinafter referred to as a high determination threshold setting map).

更に、S240では、入力信号がハイからローになったことを判定するためのロー判定閾値(換言すれば、入力信号を変化させるスイッチがオンからオフになったことを判定するためのオフ判定閾値)Yを、バッテリ電圧VBの検出値と、図4における実線のグラフで示す特性のデータマップ(以下、ロー判定閾値設定用マップという)とから設定する。   Further, in S240, a low determination threshold value for determining that the input signal has changed from high to low (in other words, an off determination threshold value for determining that the switch that changes the input signal has been turned from on to off). ) Y is set from the detected value of the battery voltage VB and a data map of characteristics shown by the solid line graph in FIG. 4 (hereinafter referred to as a low determination threshold setting map).

つまり、ハイ判定閾値設定用マップは、バッテリ電圧とハイ判定閾値との関係を示すデータマップであり、ハイ判定閾値がバッテリ電圧に比例した値となるように設定されている。同様に、ロー判定閾値設定用マップも、バッテリ電圧とロー判定閾値との関係を示すデータマップであり、ロー判定閾値がバッテリ電圧に比例した値となるように設定されている。更に、ハイ判定閾値設定用マップとロー判定閾値設定用マップは、バッテリ電圧が同じであれば、ロー判定閾値よりもハイ判定閾値の方が大きくなるように設定されている。   That is, the high determination threshold value setting map is a data map indicating the relationship between the battery voltage and the high determination threshold value, and is set so that the high determination threshold value is proportional to the battery voltage. Similarly, the low determination threshold value setting map is also a data map showing the relationship between the battery voltage and the low determination threshold value, and is set so that the low determination threshold value is proportional to the battery voltage. Further, the high determination threshold value setting map and the low determination threshold value setting map are set so that the high determination threshold value is larger than the low determination threshold value when the battery voltage is the same.

そして、S240では、ハイ判定閾値設定用マップにおいてバッテリ電圧VBの検出値に対応するハイ判定閾値を、次のS250で使用するハイ判定閾値Xとして設定し、ロー判定閾値設定用マップにおいてバッテリ電圧VBの検出値に対応するロー判定閾値を、次のS250で使用するロー判定閾値Yとして設定する。   In S240, the high determination threshold corresponding to the detected value of the battery voltage VB in the high determination threshold setting map is set as the high determination threshold X used in the next S250, and the battery voltage VB in the low determination threshold setting map. The row determination threshold corresponding to the detected value is set as the row determination threshold Y used in the next S250.

尚、ハイ判定閾値設定用マップとロー判定閾値設定用マップは、マイコン3の内部メモリに予め記憶されている。一方、このようなマップと同じ内容を示す計算式を記憶しておき、その計算式にバッテリ電圧VBの検出値を代入することで、ハイ判定閾値Xとロー判定閾値Yを設定するようにしても良い。そして、このことは、後述するS270についても同様である。   The high determination threshold setting map and the low determination threshold setting map are stored in advance in the internal memory of the microcomputer 3. On the other hand, a calculation formula showing the same contents as such a map is stored, and the high determination threshold value X and the low determination threshold value Y are set by substituting the detection value of the battery voltage VB into the calculation formula. Also good. This also applies to S270 described later.

次にS250にて、入力信号がローからハイになったこととハイからローになったことの両方を判定するためのハイ/ロー判定処理を行う。
即ち、ハイ/ロー判定処理では、S210で得た入力信号のA/D変換値と、S240で設定したハイ判定閾値X及びロー判定閾値Yとを比較して、入力信号のA/D変換値がハイ判定閾値X以上ならば、入力信号のハイ/ロー判定結果である判定値を“ハイ”に設定し、逆に、入力信号のA/D変換値がロー判定閾値Y以下ならば、入力信号の判定値を“ロー”に設定する。また、入力信号のA/D変換値がハイ判定閾値Xより小さく且つロー判定閾値Yより大きい場合には、入力信号の判定値を変更せずに前回値のままにする。
Next, in S250, a high / low determination process is performed to determine whether the input signal has changed from low to high and from high to low.
That is, in the high / low determination process, the A / D conversion value of the input signal obtained in S210 is compared with the high determination threshold value X and the low determination threshold value Y set in S240, and the A / D conversion value of the input signal is compared. If the A / D conversion value of the input signal is less than or equal to the low determination threshold Y, the input value is set to “high”. Set the signal judgment value to “low”. Further, when the A / D conversion value of the input signal is smaller than the high determination threshold value X and larger than the low determination threshold value Y, the determination value of the input signal is not changed and is kept at the previous value.

尚、本実施形態では、入力信号がハイアクティブのスイッチ信号であるため、入力信号の判定値が“ハイ”ということは、その入力信号を変化させるスイッチが“オン”であることを意味しており、逆に、入力信号の判定値が“ロー”ということは、その入力信号を変化させるスイッチが“オフ”であることを意味している。   In this embodiment, since the input signal is a high-active switch signal, the input signal determination value “high” means that the switch for changing the input signal is “on”. On the other hand, the determination value of the input signal being “low” means that the switch for changing the input signal is “off”.

そして、S250にて、このようなハイ/ロー判定処理を終えると、当該入力信号判定処理を終了する。
また、上記S230にて、バッテリ電圧VBが6Vよりも高くない(6V以下である)と判定した場合には、S260に移行して、バッテリ電圧が3Vよりも高いか否かを判定する。そして、バッテリ電圧VBが3Vよりも高いと判定した場合(即ち、「3V<VB≦6V」の場合)には、S270に進む。
Then, in S250, when such a high / low determination process is completed, the input signal determination process is ended.
If it is determined in S230 that the battery voltage VB is not higher than 6V (below 6V), the process proceeds to S260 to determine whether or not the battery voltage is higher than 3V. If it is determined that the battery voltage VB is higher than 3V (ie, “3V <VB ≦ 6V”), the process proceeds to S270.

S270では、前述したS240と同様の手順により、バッテリ電圧VBの検出値と図4のロー判定閾値設定用マップとから、ロー判定閾値Yを設定する。
そして、次のS280にて、入力信号がハイからローになったことを判定するためのロー判定処理を行う。
In S270, the low determination threshold Y is set from the detected value of the battery voltage VB and the low determination threshold setting map of FIG. 4 by the same procedure as in S240 described above.
In step S280, a low determination process is performed to determine that the input signal has changed from high to low.

即ち、ロー判定処理では、S210で得た入力信号のA/D変換値と、S270で設定したロー判定閾値Yとを比較して、入力信号のA/D変換値がロー判定閾値Y以下ならば、入力信号の判定値を“ロー”に設定する。また、入力信号のA/D変換値がロー判定閾値Yより大きい場合には、入力信号の判定値を変更せずに前回値のままにする。   That is, in the low determination process, the A / D conversion value of the input signal obtained in S210 is compared with the low determination threshold Y set in S270, and if the A / D conversion value of the input signal is equal to or lower than the low determination threshold Y. For example, the determination value of the input signal is set to “low”. Further, when the A / D conversion value of the input signal is larger than the low determination threshold Y, the input signal determination value is not changed and is kept at the previous value.

そして、S280にて、このようなロー判定処理を終えると、当該入力信号判定処理を終了する。
また、上記S260にて、バッテリ電圧VBが3Vよりも高くない(3V以下である)と判定した場合には、S290に移行して、入力信号の判定値を変更せずに前回値のままにし(図4参照)、その後、当該入力信号判定処理を終了する。
Then, in S280, when such a row determination process is completed, the input signal determination process is ended.
If it is determined in S260 that the battery voltage VB is not higher than 3V (below 3V), the process proceeds to S290, and the input signal determination value is not changed and the previous value is left unchanged. Thereafter, the input signal determination process is terminated.

尚、バッテリ電圧VBが6V以下の場合に、S240及びS250の処理を行わずに、S270及びS280の処理を行うようにしているのは、次の理由による。
即ち、バッテリ電圧VBが低くなるほど、ハイ判定閾値Xとロー判定閾値Yとの差(ヒステリシス)が少なくなるため、ノイズにより入力信号のハイ/ローを誤判定する可能性が高くなる。また、入力信号(特に、ブレーキ信号)がロー状態であることは、エンジンの始動条件が解除されていることを意味し安全に関わるため、入力信号のハイからローへの変化は検知したい。
In addition, when the battery voltage VB is 6 V or less, the processing of S270 and S280 is performed without performing the processing of S240 and S250 for the following reason.
That is, as the battery voltage VB decreases, the difference (hysteresis) between the high determination threshold value X and the low determination threshold value Y decreases, so that the possibility of erroneously determining whether the input signal is high or low due to noise increases. In addition, since the input signal (particularly, the brake signal) is in the low state means that the engine start condition has been canceled and is related to safety, it is desired to detect a change in the input signal from high to low.

そこで、バッテリ電圧VBが6V以下の場合には、入力信号がローからハイになったか否かは判定せず、S270及びS280の処理により、入力信号がハイからローになったか否かだけを判定するようにしている。   Therefore, when the battery voltage VB is 6 V or less, it is not determined whether or not the input signal has changed from low to high, and only whether or not the input signal has changed from high to low is determined by the processing of S270 and S280. Like to do.

このため、入力信号の判定値が“ハイ”の状態でバッテリ電圧VBが6V以下になった場合、S280で「入力信号のA/D変換値≦ロー判定閾値Y」と判定されるまでは、入力信号の判定値は“ハイ”のままとなり、「入力信号のA/D変換値≦ロー判定閾値Y」と判定されると、入力信号の判定値が“ハイ”から“ロー”になる。そして、その後、バッテリ電圧VBが6V以下である限り入力信号の判定値は“ロー”のままとなる。   Therefore, when the battery voltage VB becomes 6V or less in the state where the determination value of the input signal is “high”, until it is determined that “A / D conversion value of input signal ≦ low determination threshold Y” in S280, The determination value of the input signal remains “high”, and when it is determined that “A / D conversion value of input signal ≦ low determination threshold Y”, the determination value of the input signal changes from “high” to “low”. Thereafter, as long as the battery voltage VB is 6 V or less, the determination value of the input signal remains “low”.

そして、このような処理によれば、スタータ19の駆動によってバッテリ電圧VBが6V以下になった場合に、ブレーキスイッチ29がオフしてブレーキ信号がハイ状態からロー状態になれば、そのことを判定してスタータ19の駆動を停止することができると共に、バッテリ電圧VBが復帰して6Vより高くなるまでの間に、ブレーキ信号にハイ方向のノイズが乗ったとしても、そのブレーキ信号がハイ状態になったと誤判定してしまうことがなく、例えスタートスイッチ27がオンされてもスタータ19を誤って再駆動してしまう可能性を排除することができる。   According to such processing, when the starter 19 is driven and the battery voltage VB becomes 6 V or less, if the brake switch 29 is turned off and the brake signal changes from the high state to the low state, it is determined. Thus, the drive of the starter 19 can be stopped, and even if high-level noise is applied to the brake signal until the battery voltage VB recovers and becomes higher than 6 V, the brake signal is in the high state. The possibility that the starter 19 is erroneously redriven even if the start switch 27 is turned on can be eliminated.

また、バッテリ電圧VBが3V以下の場合に、入力信号の判定値を変更しないようにしているのは、次の理由による。
即ち、本実施形態においては、バッテリ電圧VBが下限値としての3V以下になると、昇圧回路7で十分に昇圧できず、電源回路5から出力される動作電圧VDが正常な5Vから低下してしまう可能性がある。そして、動作電圧VDは、A/D変換器のリファレンス電圧でもあるため、その動作電圧VDが低下すると、A/D変換精度が悪化してしまう。このため、バッテリ電圧VBが3V以下の場合には、精度の悪化したA/D変換結果に基づく入力信号の判定は行わずに、その入力信号の判定結果を変更しないようにしており、これにより、入力信号の状態を誤判定してしまうことを防止している。
The reason why the determination value of the input signal is not changed when the battery voltage VB is 3 V or less is as follows.
That is, in the present embodiment, when the battery voltage VB becomes 3 V or less as the lower limit value, the booster circuit 7 cannot sufficiently boost the voltage, and the operating voltage VD output from the power supply circuit 5 decreases from the normal 5 V. there is a possibility. Since the operating voltage VD is also a reference voltage of the A / D converter, when the operating voltage VD is lowered, the A / D conversion accuracy is deteriorated. For this reason, when the battery voltage VB is 3 V or less, the determination of the input signal is not performed based on the A / D conversion result whose accuracy has deteriorated, and the determination result of the input signal is not changed. This prevents erroneous determination of the state of the input signal.

以上のような第1実施形態のECU1によれば、バッテリ電圧VBが低いほどロー判定閾値Yが小さい値に設定されるため、図5に例示するように、スタータ19の駆動によってバッテリ電圧VBが低下し、ハイ状態であるブレーキ信号の電圧が低下しても、そのブレーキ信号がロー状態であると誤判定してしまうことを防止することができ、スタータ19の駆動を誤って停止してしまうことがない。例えば、バッテリ電圧VBが約3V(3V強)であるとすると、図4に示すように、ロー判定閾値Yは約0.5Vに設定されるため、ブレーキ信号の抵抗41,42による分圧前の電圧が2V(=0.5V×4)以下になるまではローと判定されることはなく、1Vのノイズマージンがある。これに対して、ブレーキ信号のハイ/ローをマイコン3の通常の入力ポートで判定するように構成したとすると、バッテリ電圧VBの低下によりブレーキ信号の電圧が入力ポートのハイ/ロー判定閾値(通常、5Vの半分である2.5V)以下になると、ブレーキ信号がローになったと誤判定してしまうこととなり、ノイズマージンは0.5Vしかない。このように、本実施形態によれば、入力信号のローへの誤判定を防止することができる。   According to the ECU 1 of the first embodiment as described above, as the battery voltage VB is lower, the low determination threshold value Y is set to a smaller value. Therefore, as illustrated in FIG. Even if the voltage of the brake signal in the high state decreases and the brake signal decreases, it can be prevented that the brake signal is erroneously determined to be in the low state, and the drive of the starter 19 is erroneously stopped. There is nothing. For example, if the battery voltage VB is about 3V (over 3V), the low determination threshold Y is set to about 0.5V as shown in FIG. Until the voltage becomes 2V (= 0.5V × 4) or less, it is not determined to be low, and there is a noise margin of 1V. On the other hand, if the configuration is such that the high / low level of the brake signal is determined by the normal input port of the microcomputer 3, the voltage of the brake signal becomes the high / low determination threshold value (normally) of the input port due to the decrease of the battery voltage VB If it becomes less than 2.5V, which is half of 5V), it will be erroneously determined that the brake signal has become low, and the noise margin is only 0.5V. Thus, according to the present embodiment, erroneous determination of an input signal to low can be prevented.

また、本実施形態のECU1によれば、図5に示すように、ブレーキスイッチ29がオンからオフしてブレーキ信号が本当にハイ状態からロー状態になれば、そのことを判定することができ、延いては、スタータ19の駆動を確実に停止することができる。よって、始動制御処理(スタータ19の制御処理)を正しく行うことができる。   Further, according to the ECU 1 of the present embodiment, as shown in FIG. 5, if the brake switch 29 is turned from on to off and the brake signal really changes from the high state to the low state, this can be determined. Thus, the drive of the starter 19 can be stopped reliably. Therefore, the start control process (control process of the starter 19) can be performed correctly.

更に、本実施形態のECU1では、入力信号がローからハイになったか否かも、A/D変換器を用いて判定しているが、入力信号のハイ判定閾値とロー判定閾値とに図4の如くヒステリシスを持たせているため、入力信号のハイ/ロー状態をノイズによって誤判定してしまう可能性を低くすることができる。特に、スタータ19の駆動中は、バッテリ電圧VBが安定せず、入力信号のハイ判定とロー判定を繰り返してしまう可能性があるため、ハイ判定閾値とロー判定閾値とにヒステリシスを持たせることは有効である。   Furthermore, in the ECU 1 of the present embodiment, whether or not the input signal has changed from low to high is also determined using the A / D converter. The high determination threshold and the low determination threshold of the input signal are shown in FIG. Since hysteresis is provided as described above, it is possible to reduce the possibility of erroneously determining the high / low state of the input signal due to noise. In particular, while the starter 19 is being driven, the battery voltage VB is not stable, and the high determination and the low determination of the input signal may be repeated. Therefore, it is not possible to provide hysteresis for the high determination threshold and the low determination threshold. It is valid.

また、本実施形態において、図4の入力信号判定処理では、入力信号とバッテリ電圧VBとのA/D変換を連続して行うようになっているため(S210,S220)、入力信号とバッテリ電圧VBとの各電圧値をほぼ同じタイイングで検出することができ、入力信号の判定精度を向上させることができる。入力信号の電圧値を検出した時のバッテリ電圧VBに応じてロー判定閾値Y及びハイ判定閾値Xを設定できるからである。   Further, in the present embodiment, in the input signal determination process of FIG. 4, A / D conversion between the input signal and the battery voltage VB is performed continuously (S210, S220). Each voltage value with VB can be detected with substantially the same tying, and the determination accuracy of the input signal can be improved. This is because the low determination threshold Y and the high determination threshold X can be set according to the battery voltage VB when the voltage value of the input signal is detected.

また、本実施形態のECU1では、入力信号だけでなく、バッテリ電圧VBも、入力信号のフィルタ回路と時定数が同じフィルタ回路を介してマイコン3のA/D変換用入力端子AD1に入力されるようにしている。このため、マイコン3内のA/D変換器に入力される入力信号とバッテリ電圧VBとの位相ずれを無くして、入力信号の判定精度を向上させることができる。   In the ECU 1 of the present embodiment, not only the input signal but also the battery voltage VB is input to the A / D conversion input terminal AD1 of the microcomputer 3 through the filter circuit having the same time constant as the filter circuit of the input signal. I am doing so. For this reason, it is possible to eliminate the phase shift between the input signal input to the A / D converter in the microcomputer 3 and the battery voltage VB and improve the determination accuracy of the input signal.

また、マイコン3に内蔵されたA/D変換器を使用することにより、新たな部品を必要とせず、コストの増加を回避することができる。
尚、図3のS250とS280では、入力信号のA/D変換値がロー判定閾値Y以下であると複数回連続して判定したなら、入力信号の判定値を“ロー”に設定するようにしても良い。同様に、図3のS250では、入力信号のA/D変換値がハイ判定閾値X以上であると複数回連続して判定したなら、入力信号の判定値を“ハイ”に設定するようにしても良い。そして、このようにすれば、入力信号の電圧がノイズにより閾値付近で変動したとしても、その入力信号の判定値が切り替わってしまうのを防止することができる。
Further, by using an A / D converter built in the microcomputer 3, no new parts are required, and an increase in cost can be avoided.
In S250 and S280 of FIG. 3, if it is determined that the A / D conversion value of the input signal is equal to or lower than the low determination threshold Y for a plurality of times, the determination value of the input signal is set to “low”. May be. Similarly, in S250 of FIG. 3, if it is determined that the A / D conversion value of the input signal is equal to or higher than the high determination threshold value X a plurality of times, the determination value of the input signal is set to “high”. Also good. In this way, even if the voltage of the input signal fluctuates in the vicinity of the threshold due to noise, it is possible to prevent the determination value of the input signal from being switched.

一方、本実施形態では、図3の入力信号判定処理が信号判定処理に相当し、図2の始動制御処理が制御対象としてのスタータ19を制御するための制御処理に相当している。また、図3の処理のうち、S210とS220が電圧検出処理に相当し、S240の一部(ロー判定閾値Yを設定する処理)とS270がロー閾値設定処理に相当し、S250の一部(入力信号のA/D変換値がロー判定閾値Y以下ならば、入力信号の判定値を“ロー”に設定する処理)とS280がロー側判定処理に相当している。そして、S240の一部(ハイ判定閾値Xを設定する処理)がハイ閾値設定処理に相当し、S250の一部(入力信号のA/D変換値がハイ判定閾値X以上ならば、入力信号の判定値を“ハイ”に設定する処理)がハイ側判定処理に相当している。
[第2実施形態]
第2実施形態のECU1は、第1実施形態のECU1と比較すると、マイコン3が、図6に示す頻度切替処理を更に実行する点が異なっている。尚、この頻度切替処理も一定時間毎に実行される。
On the other hand, in the present embodiment, the input signal determination process in FIG. 3 corresponds to the signal determination process, and the start control process in FIG. 2 corresponds to a control process for controlling the starter 19 as a control target. 3, S210 and S220 correspond to the voltage detection process, a part of S240 (a process for setting the low determination threshold Y) and S270 correspond to the low threshold setting process, and a part of S250 ( If the A / D conversion value of the input signal is equal to or lower than the low determination threshold Y, the process of setting the determination value of the input signal to “low”) and S280 correspond to the low-side determination process. A part of S240 (a process for setting the high determination threshold value X) corresponds to a high threshold setting process, and a part of S250 (if the A / D conversion value of the input signal is equal to or higher than the high determination threshold value X), The process of setting the determination value to “high”) corresponds to the high-side determination process.
[Second Embodiment]
The ECU 1 of the second embodiment is different from the ECU 1 of the first embodiment in that the microcomputer 3 further executes the frequency switching process shown in FIG. This frequency switching process is also executed at regular intervals.

そして、図6に示すように、マイコン3が頻度切替処理の実行を開始すると、まずS310にて、エンジン始動時であるか否かを判定する。
尚、このS310では、例えば、実際にスタータ19を駆動している間、始動時であると判定するか、或いは、スタータ19の駆動開始時から一定時間だけ、始動時であると判定する。また、スタータ19の駆動を開始するとバッテリ電圧VBが低下するため、バッテリ電圧VBがある値(スタータ19が駆動されていると予想される値)以下になっている場合に、始動時であると判定するようにしても良い。
Then, as shown in FIG. 6, when the microcomputer 3 starts executing the frequency switching process, first, in S310, it is determined whether or not the engine is being started.
In S310, for example, it is determined that the starter 19 is being started while the starter 19 is actually being driven, or it is determined that the starter 19 is being started for a certain period of time since the start of driving the starter 19. Further, since the battery voltage VB decreases when the starter 19 starts to be driven, when the battery voltage VB is equal to or lower than a certain value (a value that the starter 19 is expected to be driven) It may be determined.

そして、このS310にて、エンジン始動時であると判定した場合には、次のS320にて、図3の入力信号判定処理の実行間隔を通常値よりも短く設定し、その後、当該頻度切替処理を終了する。また、上記S310にて、エンジン始動時ではないと判定した場合には、S330に移行して、図3の入力信号判定処理の実行間隔を通常値に設定し、その後、当該頻度切替処理を終了する。   If it is determined in S310 that the engine is starting, in S320, the execution interval of the input signal determination process in FIG. 3 is set shorter than the normal value, and then the frequency switching process is performed. Exit. If it is determined in S310 that the engine is not started, the process proceeds to S330, the execution interval of the input signal determination process in FIG. 3 is set to a normal value, and then the frequency switching process is terminated. To do.

このような第2実施形態のECU1によれば、スタータ19の駆動中に、入力信号判定処理の実行間隔が短く変更されることとなる。よって、スタータ19の駆動中に始動許可条件信号としてのブレーキ信号がハイ状態からロー状態になった場合、そのことをいち早く判定して、すみやかにスタータ19の駆動を停止することができ、安全面で有利である。
[第3実施形態]
第3実施形態のECU1は、第1又は第2実施形態のECU1と比較すると、マイコン3が、図7に示すスタータ駆動時処理を更に実行する点が異なっている。尚、このスタータ駆動時処理は、スタータ19を駆動している場合に一定時間毎に実行される。
According to the ECU 1 of the second embodiment, the execution interval of the input signal determination process is changed to be shorter while the starter 19 is being driven. Therefore, when the brake signal as the start permission condition signal changes from the high state to the low state during the driving of the starter 19, it is possible to quickly determine that and stop the driving of the starter 19 immediately. Is advantageous.
[Third Embodiment]
The ECU 1 of the third embodiment is different from the ECU 1 of the first or second embodiment in that the microcomputer 3 further executes the starter driving process shown in FIG. The starter driving process is executed at regular intervals when the starter 19 is driven.

そして、図7に示すように、マイコン3がスタータ駆動時処理の実行を開始すると、まずS410にて、スタート信号とブレーキ信号との各々について、入力信号判定処理による入力信号の判定値が“ハイ”から“ロー”に変化したか否かを判定する。   Then, as shown in FIG. 7, when the microcomputer 3 starts executing the starter driving process, first, in S410, for each of the start signal and the brake signal, the determination value of the input signal by the input signal determination process is “high”. It is determined whether or not the state has changed from “low” to “low”.

S410の判定で“NO”と否定判定した場合には、そのまま当該スタータ駆動時処理を終了するが、入力信号の判定値が“ハイ”から“ロー”に変化したと肯定判定した場合には、S420に進む。   If “NO” is determined as negative in the determination of S410, the starter driving process is terminated as it is, but if the determination value of the input signal is changed from “high” to “low”, an affirmative determination is made, Proceed to S420.

そして、S420では、判定値が“ロー”に変化した入力信号について、ハイ/ローを判定するための処理(具体的には、図3におけるS210,S240,S250,S270,S280の処理)が一定時間の間だけ実行されないようにし、その後、当該スタータ駆動時処理を終了する。   In S420, the process for determining high / low (specifically, the processes in S210, S240, S250, S270, and S280 in FIG. 3) for the input signal whose determination value has changed to “low” is constant. The starter is not executed only for a period of time, and then the starter driving process is terminated.

このような第3実施形態のECU1によれば、スタータ19の駆動中にスタート信号又はブレーキ信号がロー状態になった後、その信号にノイズが乗ったとしても、その信号がハイ状態になったと誤判定してしまうことがなく、延いては、スタータ19を誤って駆動してしまう可能性を排除することができる。よって、安全面で有利である。   According to the ECU 1 of the third embodiment, after the start signal or the brake signal is in a low state during driving of the starter 19, even if noise is added to the signal, the signal is in a high state. It is possible to eliminate the possibility of erroneously driving the starter 19 without erroneous determination. Therefore, it is advantageous in terms of safety.

尚、スタート信号やブレーキ信号は、車両運転者の操作に応じてハイ/ローが変化する信号であり、高速に状態変化することはないため、図7のスタータ駆動時処理を行うようにしても車両機能上の支障はない。
[第4実施形態]
図8に示すように、第4実施形態のECU51は、第1〜第3実施形態のECU1と比較すると、信号線28からのスタート信号と、信号線30からのブレーキ信号とが、マイコン3の入力ポートIO1,IO2にも、抵抗53,55を介してそれぞれ入力されるようになっている。
The start signal and the brake signal are signals that change between high and low according to the operation of the vehicle driver, and the state does not change at high speed. Therefore, the starter driving process shown in FIG. 7 may be performed. There is no hindrance in vehicle function.
[Fourth Embodiment]
As shown in FIG. 8, the ECU 51 of the fourth embodiment has a start signal from the signal line 28 and a brake signal from the signal line 30 of the microcomputer 3 compared to the ECU 1 of the first to third embodiments. The input ports IO1 and IO2 are also input via resistors 53 and 55, respectively.

そして、マイコン3は、図3の入力信号判定処理に代えて、図9の入力信号判定処理を実行するようになっている。
図9に示すように、第4実施形態の入力信号判定処理では、まずS510にて、A/D変換用入力端子AD1に入力されるバッテリ電圧VBをA/D変換する。尚、このS510は、図3のS220に相当する処理である。
The microcomputer 3 executes the input signal determination process of FIG. 9 instead of the input signal determination process of FIG.
As shown in FIG. 9, in the input signal determination process of the fourth embodiment, first, in S510, the battery voltage VB input to the A / D conversion input terminal AD1 is A / D converted. This S510 is a process corresponding to S220 in FIG.

そして、次のS520にて、S510でのバッテリ電圧VBのA/D変換値に基づいて、現在のバッテリ電圧VBが所定値(本実施形態では6V)よりも高いか否かを判定し、バッテリ電圧VBが6Vよりも高いと判定した場合には、S530に進む。   Then, in the next S520, it is determined whether or not the current battery voltage VB is higher than a predetermined value (6V in the present embodiment) based on the A / D conversion value of the battery voltage VB in S510, and the battery If it is determined that the voltage VB is higher than 6V, the process proceeds to S530.

S530では、入力ポートIO1,IO2に対応するポートレジスタから、その各入力ポートIO1,IO2でのハイ/ロー判定結果を読み込む。
そして、次のS540にて、ポートレジスタから読み込んだ値(ポートの読み値)を、入力信号の判定値として設定する。即ち、入力ポートIO1のポートレジスタから読み込んだ値を、スタート信号の判定値として設定し、入力ポートIO2のポートレジスタから読み込んだ値を、ブレーキ信号の判定値として設定する。そして、S540の処理を行った後、当該入力信号判定処理を終了する。
In S530, the high / low determination results at the input ports IO1 and IO2 are read from the port registers corresponding to the input ports IO1 and IO2.
In step S540, the value read from the port register (port reading) is set as the input signal determination value. That is, the value read from the port register of the input port IO1 is set as the determination value of the start signal, and the value read from the port register of the input port IO2 is set as the determination value of the brake signal. And after performing the process of S540, the said input signal determination process is complete | finished.

尚、S540では、各入力信号について、ポートレジスタから読み込んだ値が複数回連続して同じ値であったなら、その値を入力信号の判定値として設定する、という処理を行うようにして、ノイズによる誤判定を防止するようにしても良い。   In S540, for each input signal, if the value read from the port register is the same value a plurality of times in succession, the value is set as the determination value of the input signal, and the noise is processed. You may make it prevent the misjudgment by.

また、上記S520にて、バッテリ電圧VBが6Vよりも高くない(6V以下である)と判定した場合には、S550に移行して、ハイ/ロー判定対象の入力信号を内蔵のA/D変換器によりA/D変換する。即ち、A/D変換用入力端子AD2に入力されるスタート信号と、A/D変換用入力端子AD3に入力されるブレーキ信号とをA/D変換する。尚、S550は、図3のS220に相当する処理である。そして、このS550の処理を行った後、図3と同じS260〜S290の処理を行う。   If it is determined in S520 that the battery voltage VB is not higher than 6V (below 6V), the process proceeds to S550 and the input signal subject to high / low determination is converted into a built-in A / D converter. A / D conversion is performed by the instrument. That is, A / D conversion is performed on the start signal input to the A / D conversion input terminal AD2 and the brake signal input to the A / D conversion input terminal AD3. Note that S550 is processing corresponding to S220 in FIG. Then, after performing the process of S550, the same processes of S260 to S290 as in FIG. 3 are performed.

つまり、本第4実施形態において、マイコン3は、バッテリ電圧VBが6Vよりも高い場合には、入力信号がハイとローの何れであるかを入力ポートIO1,IO2で判定するようになっている。そして、このような第4実施形態によれば、バッテリ電圧VBが6Vよりも高い場合に、マイコン3の処理負荷を軽減することができる。   In other words, in the fourth embodiment, when the battery voltage VB is higher than 6V, the microcomputer 3 determines whether the input signal is high or low by the input ports IO1 and IO2. . And according to such 4th Embodiment, when the battery voltage VB is higher than 6V, the processing load of the microcomputer 3 can be reduced.

尚、図9において、S550の次に、再びS510と同じ追加処理を行い、S270では、その追加処理で得たバッテリ電圧VBの検出値を用いてロー判定閾値Yを設定するようにしても良い。このようにすれば、入力信号のA/D変換タイミングと、閾値設定のためのバッテリ電圧VBのA/D変換タイミングとを近づけて、入力信号の判定精度を向上させることができる。   In FIG. 9, after S550, the same additional processing as in S510 is performed again, and in S270, the low determination threshold Y may be set using the detected value of the battery voltage VB obtained by the additional processing. . In this way, the A / D conversion timing of the input signal can be brought close to the A / D conversion timing of the battery voltage VB for setting the threshold value, and the determination accuracy of the input signal can be improved.

また、S520で判定するバッテリ電圧VBの値は、6Vに限るものではなく、入力信号の状態をマイコン3の入力ポートで判定しても誤判定が生じないと考えられるバッテリ電圧VBの値に設定すれば良い。よって、例えば、バッテリ電圧VBが8Vよりも高い場合に、図9のS530,S540の処理を行い、バッテリ電圧VBが8V以下で6Vよりも高い場合には、図3のS210,S240,S250の処理を行い、バッテリ電圧VBが6V以下で3Vよりも高い場合には、図3のS210,S270,S280の処理を行うようにしても良い。   In addition, the value of the battery voltage VB determined in S520 is not limited to 6V, and is set to the value of the battery voltage VB that is considered to cause no erroneous determination even if the state of the input signal is determined at the input port of the microcomputer 3. Just do it. Therefore, for example, when the battery voltage VB is higher than 8V, the processing of S530 and S540 in FIG. 9 is performed. When the battery voltage VB is lower than 8V and higher than 6V, the processing of S210, S240, and S250 in FIG. When the battery voltage VB is 6V or lower and higher than 3V, the processes of S210, S270, and S280 in FIG. 3 may be performed.

また、入力信号のハイ/ローを入力ポートで判定するようになるバッテリ電圧VBの値と、入力信号のハイ/ローをA/D変換器を用いて判定するようになるバッテリ電圧VBの値とに、ヒステリシスを設けることで、入力信号のハイ/ローを判定する処理が頻繁に切り替わってしまうのを防止するようにしても良い。   Also, the value of the battery voltage VB that determines the high / low of the input signal at the input port, and the value of the battery voltage VB that determines the high / low of the input signal using the A / D converter In addition, by providing hysteresis, it may be possible to prevent the process of determining the high / low of the input signal from being frequently switched.

以上、本発明の一実施形態について説明したが、本発明はこうした実施形態に何等限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々なる態様で実施し得ることは勿論である。   As mentioned above, although one Embodiment of this invention was described, this invention is not limited to such Embodiment at all, Of course, in the range which does not deviate from the summary of this invention, it can implement in a various aspect. .

例えば、入力信号は、ローアクティブのスイッチ信号であっても良い。そして、ローアクティブのスイッチ信号は、例えば、図10のような入力回路によってマイコン3のA/D変換用入力端子ADに入力するように構成すれば良い。   For example, the input signal may be a low active switch signal. The low active switch signal may be configured to be input to the A / D conversion input terminal AD of the microcomputer 3 by an input circuit as shown in FIG.

図10において、59は、スイッチ60がオンすることでグランド電圧に接続される信号線であり、その信号線59は、抵抗63によってバッテリ電圧VBに常時プルアップされる。そして、信号線59の電圧であるローアクティブのスイッチ信号は、抵抗63よりも抵抗値が数十〜数百倍大きい抵抗61,62により1/4に分圧されてマイコン3のA/D変換用入力端子ADに入力される。このような構成の入力回路では、スイッチ60がオフの場合、スイッチ信号が、ほぼバッテリ電圧VB(詳しくは、バッテリ電圧VBに比例した電圧であって、バッテリ電圧VBを、抵抗63と抵抗61,62の合成抵抗とで分圧した電圧)となり、そのスイッチ信号を抵抗61,62で分圧した電圧がマイコン3のA/D変換用入力端子ADに入力される。また、スイッチ60がオンの場合には、スイッチ信号がグランド電圧となり、そのグランド電圧がマイコン3のA/D変換用入力端子ADに入力される。尚、図10では、ノイズ除去用のフィルタ回路は省略している。   In FIG. 10, 59 is a signal line connected to the ground voltage when the switch 60 is turned on, and the signal line 59 is always pulled up to the battery voltage VB by the resistor 63. The low active switch signal, which is the voltage of the signal line 59, is divided into ¼ by the resistors 61 and 62 having a resistance value several tens to several hundred times larger than that of the resistor 63, and the A / D conversion of the microcomputer 3 is performed. Input to the input terminal AD. In the input circuit having such a configuration, when the switch 60 is off, the switch signal is approximately the battery voltage VB (specifically, the voltage is proportional to the battery voltage VB, and the battery voltage VB is converted into the resistor 63, the resistor 61, The voltage obtained by dividing the switch signal by the resistors 61 and 62 is input to the A / D conversion input terminal AD of the microcomputer 3. When the switch 60 is on, the switch signal becomes the ground voltage, and the ground voltage is input to the A / D conversion input terminal AD of the microcomputer 3. In FIG. 10, the filter circuit for noise removal is omitted.

一方、A/D変換器は、マイコン3の外部に設けられたものでも良い。
また、車両の変速機が手動変速機である場合、始動許可条件信号としては、ブレーキ信号に代えて、例えば、クラッチペダルの踏み込みによってオンするスイッチの信号を用いることが考えられる。
On the other hand, the A / D converter may be provided outside the microcomputer 3.
When the transmission of the vehicle is a manual transmission, it is conceivable to use, for example, a switch signal that is turned on when the clutch pedal is depressed, instead of the brake signal, as the start permission condition signal.

第1実施形態の電子制御装置の構成を表す構成図である。It is a block diagram showing the structure of the electronic control apparatus of 1st Embodiment. 始動制御処理を表すフローチャートである。It is a flowchart showing a start control process. 第1実施形態の入力信号判定処理を表すフローチャートである。It is a flowchart showing the input signal determination process of 1st Embodiment. ハイ判定閾値とロー判定閾値の設定手法を説明する説明図である。It is explanatory drawing explaining the setting method of a high determination threshold value and a low determination threshold value. 第1実施形態の作用を説明する説明図である。It is explanatory drawing explaining the effect | action of 1st Embodiment. 第2実施形態で実行される頻度切替処理を表すフローチャートである。It is a flowchart showing the frequency switching process performed in 2nd Embodiment. 第3実施形態で実行されるスタータ駆動時処理を表すフローチャートである。It is a flowchart showing the starter drive time process performed in 3rd Embodiment. 第4実施形態の電子制御装置の構成を表す構成図である。It is a block diagram showing the structure of the electronic control apparatus of 4th Embodiment. 第4実施形態の入力信号判定処理を表すフローチャートである。It is a flowchart showing the input signal determination process of 4th Embodiment. 他の例を説明する説明図である。It is explanatory drawing explaining another example. 従来技術及びその問題を説明するタイムチャートである。It is a time chart explaining a prior art and its problem.

符号の説明Explanation of symbols

1,51…電子制御ECU、15…エンジンECU、3…マイコン、5…電源回路、7…昇圧回路、9…駆動回路、11…バッテリ、13…電源リレー、17…スタータリレー、19…スタータ、21〜23,31〜33,41〜43,53,55,61〜63…抵抗、24,34,44…コンデンサ、27…スタートスイッチ、29…ブレーキスイッチ、28,30,59…信号線、60…スイッチ   DESCRIPTION OF SYMBOLS 1,51 ... Electronic control ECU, 15 ... Engine ECU, 3 ... Microcomputer, 5 ... Power supply circuit, 7 ... Booster circuit, 9 ... Drive circuit, 11 ... Battery, 13 ... Power supply relay, 17 ... Starter relay, 19 ... Starter, 21 to 23, 31 to 33, 41 to 43, 53, 55, 61 to 63 ... resistor, 24, 34, 44 ... capacitor, 27 ... start switch, 29 ... brake switch, 28, 30, 59 ... signal line, 60 …switch

Claims (12)

マイコンと昇圧回路を有すると共に、外部から供給される外部電源電圧が規定値よりも高い場合には、その外部電源電圧から前記マイコンの動作電圧が生成され、前記外部電源電圧が前記規定値以下になった場合には、その外部電源電圧を前記昇圧回路で昇圧した電圧から前記動作電圧が生成されるようになっており、
更に、前記マイコンは、ハイの状態として前記外部電源電圧又は該外部電源電圧に比例した電圧となりローの状態としてグランド電圧になる入力信号が、ハイとローの何れであるかを判定するための信号判定処理と、その信号判定処理による前記入力信号の判定結果に基づき制御対象を制御するための制御処理とを行う電子制御装置において、
前記マイコンは、
前記信号判定処理のうち、前記入力信号がローになったことを判定するためのロー判定用処理として、
前記入力信号と前記外部電源電圧との各々の電圧値を、前記動作電圧を受けて動作するA/D変換器により検出する電圧検出処理と、
前記入力信号がハイからローになったことを判定するためのロー判定閾値を、前記電圧検出処理による前記外部電源電圧の検出値に応じて、その検出値が小さいほど、小さい値となるように設定するロー閾値設定処理と、
前記電圧検出処理による前記入力信号の電圧検出値と前記ロー閾値設定処理により設定されたロー判定閾値とを比較し、前記入力信号の電圧検出値が前記ロー判定閾値以下と判定した場合に、前記入力信号の判定結果をローに設定するロー側判定処理とを行うこと、
を特徴とする電子制御装置。
When the external power supply voltage supplied from outside is higher than the specified value, the microcomputer operating voltage is generated from the external power supply voltage, and the external power supply voltage is less than the specified value. In this case, the operating voltage is generated from the voltage obtained by boosting the external power supply voltage by the booster circuit.
Furthermore, the microcomputer is a signal for determining whether the input signal that becomes the ground voltage when the external power supply voltage is in a high state or a voltage that is proportional to the external power supply voltage and that is in a low state is high or low. In an electronic control device that performs a determination process and a control process for controlling a control target based on a determination result of the input signal by the signal determination process,
The microcomputer is
Among the signal determination processes, as a low determination process for determining that the input signal has become low,
A voltage detection process of detecting each voltage value of the input signal and the external power supply voltage by an A / D converter operating in response to the operating voltage;
The low determination threshold value for determining that the input signal has changed from high to low is set to be smaller as the detection value is smaller in accordance with the detection value of the external power supply voltage by the voltage detection processing. Low threshold setting processing to be set;
When the voltage detection value of the input signal by the voltage detection process is compared with the low determination threshold value set by the low threshold setting process, and when the voltage detection value of the input signal is determined to be less than or equal to the low determination threshold value, Performing low-side determination processing for setting the input signal determination result to low,
An electronic control device.
請求項1に記載の電子制御装置において、
前記マイコンは、
前記信号判定処理のうち、前記入力信号がハイになったことを判定するためのハイ判定用処理として、
前記入力信号がローからハイになったことを判定するためのハイ判定閾値を、前記電圧検出処理による前記外部電源電圧の検出値に応じて、その検出値が小さいほど、小さい値で、且つ、前記ロー判定閾値よりは大きい値となるように設定するハイ閾値設定処理と、
前記電圧検出処理による前記入力信号の電圧検出値と前記ハイ閾値設定処理により設定されたハイ判定閾値とを比較し、前記入力信号の電圧検出値が前記ハイ判定閾値以上と判定した場合に、前記入力信号の判定結果をハイに設定するハイ側判定処理とを行うこと、
を特徴とする電子制御装置。
The electronic control device according to claim 1.
The microcomputer is
Among the signal determination processes, as a high determination process for determining that the input signal has become high,
According to the detection value of the external power supply voltage by the voltage detection process, the high determination threshold for determining that the input signal has changed from low to high, the smaller the detection value, and A high threshold setting process for setting the value to be larger than the low determination threshold;
When the voltage detection value of the input signal by the voltage detection process is compared with the high determination threshold value set by the high threshold setting process, and when the voltage detection value of the input signal is determined to be greater than or equal to the high determination threshold value, Performing high-side determination processing for setting the input signal determination result to high,
An electronic control device.
請求項1又は請求項2に記載の電子制御装置において、
前記マイコンは、前記電圧検出処理において、前記入力信号と前記外部電源電圧との各々の電圧値を前記A/D変換器により連続して検出すること、
を特徴とする電子制御装置。
The electronic control device according to claim 1 or 2,
The microcomputer continuously detects the voltage values of the input signal and the external power supply voltage by the A / D converter in the voltage detection process,
An electronic control device.
請求項1ないし請求項3の何れか1項に記載の電子制御装置において、
前記入力信号と前記外部電源電圧との各々は、別々のフィルタ回路を介して前記A/D変換器に入力されるようになっていると共に、
前記入力信号のフィルタ回路と前記外部電源電圧のフィルタ回路は、互いの時定数が同じになるように構成されていること、
を特徴とする電子制御装置。
The electronic control device according to any one of claims 1 to 3,
Each of the input signal and the external power supply voltage is input to the A / D converter via a separate filter circuit, and
The input signal filter circuit and the external power supply voltage filter circuit are configured to have the same time constant.
An electronic control device.
請求項1ないし請求項4の何れか1項に記載の電子制御装置において、
前記入力信号は前記マイコンの入力ポートにも入力されるようになっており、
前記マイコンは、前記外部電源電圧が所定値よりも高いと判定している場合には、前記信号判定処理として、前記入力信号がハイとローの何れであるかを前記入力ポートで判定する処理を行うこと、
を特徴とする電子制御装置。
The electronic control device according to any one of claims 1 to 4,
The input signal is also input to the input port of the microcomputer,
When the microcomputer determines that the external power supply voltage is higher than a predetermined value, the signal determination process includes a process of determining whether the input signal is high or low at the input port. What to do,
An electronic control device.
請求項1ないし請求項5の何れか1項に記載の電子制御装置において、
前記外部電源電圧は、車両に搭載されたバッテリの電圧であり、
前記入力信号は、ハイの状態が前記車両のエンジンを始動させるためのスタータの駆動を許可することを意味する始動許可条件信号であり、
前記マイコンは、前記制御処理として、前記スタータを制御するための処理を行うと共に、その制御処理では、前記スタータの駆動中に前記入力信号の判定結果がハイからローになると、前記スタータの駆動を停止するようになっていること、
を特徴とする電子制御装置。
The electronic control device according to any one of claims 1 to 5,
The external power supply voltage is a voltage of a battery mounted on the vehicle,
The input signal is a start permission condition signal that means that a high state permits driving of a starter for starting the engine of the vehicle;
The microcomputer performs processing for controlling the starter as the control processing. In the control processing, when the determination result of the input signal changes from high to low during driving of the starter, driving of the starter is performed. That it is supposed to stop,
An electronic control device.
請求項6に記載の電子制御装置において、
前記マイコンは、前記スタータの駆動中に前記信号判定処理の実行間隔を短くすること、
を特徴とする電子制御装置。
The electronic control device according to claim 6.
The microcomputer shortens an execution interval of the signal determination process during driving of the starter;
An electronic control device.
請求項6又は請求項7に記載の電子制御装置において、
前記マイコンは、前記スタータの駆動中に前記入力信号がハイからローになったと判定すると、その時点から一定時間は、前記信号判定処理を実行しないこと、
を特徴とする電子制御装置。
The electronic control device according to claim 6 or 7,
When the microcomputer determines that the input signal has changed from high to low during driving of the starter, the microcomputer does not execute the signal determination processing for a certain period of time from that point.
An electronic control device.
請求項6ないし請求項8の何れか1項に記載の電子制御装置において、
前記マイコンは、前記外部電源電圧が特定の値以下になっている場合には、前記信号判定処理のうち、前記電圧検出処理、前記ロー閾値設定処理及び前記ロー側判定処理からなる前記ロー判定用処理のみを行うようになっていること、
を特徴とする電子制御装置。
The electronic control device according to any one of claims 6 to 8,
When the external power supply voltage is equal to or lower than a specific value, the microcomputer uses the voltage detection process, the low threshold value setting process, and the low-side determination process among the signal determination processes. Only to process,
An electronic control device.
請求項1ないし請求項9の何れか1項に記載の電子制御装置において、
前記マイコンは、前記外部電源電圧が、前記昇圧回路で昇圧しても前記動作電圧が低下して前記A/D変換器のA/D変換精度が悪化してしまうと考えられる下限値以下になった場合には、前記入力信号の判定結果を変更しないようになっていること、
を特徴とする電子制御装置。
The electronic control device according to any one of claims 1 to 9,
In the microcomputer, even if the external power supply voltage is boosted by the booster circuit, the operating voltage decreases and the A / D conversion accuracy of the A / D converter deteriorates, so that the A / D conversion accuracy is deteriorated. If so, the input signal determination result is not changed,
An electronic control device.
マイコンを有すると共に、該マイコンは、ハイの状態として外部電源電圧又は該外部電源電圧に比例した電圧となりローの状態としてグランド電圧になる入力信号が、ハイとローの何れであるかを判定するための信号判定処理行う電子制御装置において、
前記マイコンは、
前記信号判定処理のうち、前記入力信号がローになったことを判定するためのロー判定用処理として、
前記入力信号と前記外部電源電圧との各々の電圧値をA/D変換器により検出する電圧検出処理と、
前記入力信号がハイからローになったことを判定するためのロー判定閾値を、前記電圧検出処理による前記外部電源電圧の検出値に応じて、その検出値が小さいほど、小さい値となるように設定するロー閾値設定処理と、
前記電圧検出処理による前記入力信号の電圧検出値と前記ロー閾値設定処理により設定されたロー判定閾値とを比較し、前記入力信号の電圧検出値が前記ロー判定閾値以下と判定した場合に、前記入力信号の判定結果をローに設定するロー側判定処理とを行うこと、
を特徴とする電子制御装置。
In addition to having a microcomputer, the microcomputer determines whether the input signal that is in the high state is the external power supply voltage or a voltage that is proportional to the external power supply voltage and becomes the ground voltage in the low state is high or low. In the electronic control device that performs the signal determination process of
The microcomputer is
Among the signal determination processes, as a low determination process for determining that the input signal has become low,
Voltage detection processing for detecting each voltage value of the input signal and the external power supply voltage by an A / D converter;
The low determination threshold value for determining that the input signal has changed from high to low is set to be smaller as the detection value is smaller in accordance with the detection value of the external power supply voltage by the voltage detection processing. Low threshold setting processing to be set;
When the voltage detection value of the input signal by the voltage detection process is compared with the low determination threshold value set by the low threshold setting process, and when the voltage detection value of the input signal is determined to be less than or equal to the low determination threshold value, Performing low-side determination processing for setting the input signal determination result to low,
An electronic control device.
請求項11に記載の電子制御装置において、
前記マイコンは、
前記信号判定処理のうち、前記入力信号がハイになったことを判定するためのハイ判定用処理として、
前記入力信号がローからハイになったことを判定するためのハイ判定閾値を、前記電圧検出処理による前記外部電源電圧の検出値に応じて、その検出値が小さいほど、小さい値で、且つ、前記ロー判定閾値よりは大きい値となるように設定するハイ閾値設定処理と、
前記電圧検出処理による前記入力信号の電圧検出値と前記ハイ閾値設定処理により設定されたハイ判定閾値とを比較し、前記入力信号の電圧検出値が前記ハイ判定閾値以上と判定した場合に、前記入力信号の判定結果をハイに設定するハイ側判定処理とを行うこと、
を特徴とする電子制御装置。
The electronic control device according to claim 11,
The microcomputer is
Among the signal determination processes, as a high determination process for determining that the input signal has become high,
According to the detection value of the external power supply voltage by the voltage detection process, the high determination threshold for determining that the input signal has changed from low to high, the smaller the detection value, and A high threshold setting process for setting the value to be larger than the low determination threshold;
When the voltage detection value of the input signal by the voltage detection process is compared with the high determination threshold value set by the high threshold setting process, and when the voltage detection value of the input signal is determined to be greater than or equal to the high determination threshold value, Performing high-side determination processing for setting the input signal determination result to high,
An electronic control device.
JP2007242271A 2007-09-19 2007-09-19 Electronic control unit Active JP4710891B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007242271A JP4710891B2 (en) 2007-09-19 2007-09-19 Electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007242271A JP4710891B2 (en) 2007-09-19 2007-09-19 Electronic control unit

Publications (2)

Publication Number Publication Date
JP2009075725A true JP2009075725A (en) 2009-04-09
JP4710891B2 JP4710891B2 (en) 2011-06-29

Family

ID=40610650

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007242271A Active JP4710891B2 (en) 2007-09-19 2007-09-19 Electronic control unit

Country Status (1)

Country Link
JP (1) JP4710891B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013065445A1 (en) * 2011-11-02 2013-05-10 日本精機株式会社 Vehicle instrument
JP2016504674A (en) * 2012-12-03 2016-02-12 クゥアルコム・インコーポレイテッドQualcomm Incorporated Adaptive voltage scaling system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6079173A (en) * 1983-10-04 1985-05-04 Nippon Denso Co Ltd Ignition control device
JPH04265445A (en) * 1991-02-19 1992-09-21 Hitachi Ltd A/d converted value correcting method
JPH08224944A (en) * 1995-02-22 1996-09-03 Star Micronics Co Ltd Printer device
JP2000073806A (en) * 1998-09-02 2000-03-07 Honda Motor Co Ltd Control device for hybrid drive vehicle
JP2005005861A (en) * 2003-06-10 2005-01-06 Denso Corp Analog-digital converting circuit for vehicle
JP2005233158A (en) * 2004-02-23 2005-09-02 Hitachi Ltd Engine control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6079173A (en) * 1983-10-04 1985-05-04 Nippon Denso Co Ltd Ignition control device
JPH04265445A (en) * 1991-02-19 1992-09-21 Hitachi Ltd A/d converted value correcting method
JPH08224944A (en) * 1995-02-22 1996-09-03 Star Micronics Co Ltd Printer device
JP2000073806A (en) * 1998-09-02 2000-03-07 Honda Motor Co Ltd Control device for hybrid drive vehicle
JP2005005861A (en) * 2003-06-10 2005-01-06 Denso Corp Analog-digital converting circuit for vehicle
JP2005233158A (en) * 2004-02-23 2005-09-02 Hitachi Ltd Engine control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013065445A1 (en) * 2011-11-02 2013-05-10 日本精機株式会社 Vehicle instrument
JP2016504674A (en) * 2012-12-03 2016-02-12 クゥアルコム・インコーポレイテッドQualcomm Incorporated Adaptive voltage scaling system and method

Also Published As

Publication number Publication date
JP4710891B2 (en) 2011-06-29

Similar Documents

Publication Publication Date Title
JP5112837B2 (en) Output signal processing method and vehicle operation control device for atmospheric temperature sensor
EP2187028B1 (en) Electronic control apparatus
JP5024963B2 (en) Engine starter
JP2009114939A (en) Apparatus for estimating state of on-vehicle battery, automatic stop and start device of internal combustion engine and automatic stop and start system of internal combustion engine
JP6409682B2 (en) Electronic control unit
JP2007322234A (en) Failure detection device for current sensor for in-vehicle electric power source, and charging control device for vehicle
CN110291286B (en) Electronic control device and abnormal/normal determination method for electronic control device
JP4710891B2 (en) Electronic control unit
US20190315405A1 (en) Apparatus and method for controlling lane change in vehicle
JP2009142097A (en) Voltage regulator switching method and electronic vehicle controller
JP2008030699A (en) Auto-cruise device and program
JP2006002715A (en) Engine control circuit
JP2002024101A (en) Nonvolatile memory writer
JP2018074874A (en) Electronic control device
JP4211640B2 (en) Electronic control unit
JP6919638B2 (en) Fuel pump control system and how to detect signs of fuel pump malfunction
US6269032B1 (en) Electronic control unit having voltage responsive data writing
JP4665725B2 (en) Physical quantity detection device
JP2007057422A (en) Error correction device for current sensor
US11881868B2 (en) Control system, disconnection detection method, and non-transitory computer-readable medium
JP6984274B2 (en) Injection control device
JPH10176641A (en) Power supply circuit for on-vehicle equipment
WO2021149658A1 (en) Booster
CN111491836A (en) Fuel deficiency recovery determination method for hybrid vehicle and vehicle control device for hybrid vehicle
KR100440162B1 (en) Method of controlling fuel for accleration and deceleration of vehicle under cold driving

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091027

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110216

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: 20110222

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110307

R151 Written notification of patent or utility model registration

Ref document number: 4710891

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20140401

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250