JP3799471B2 - Microcomputer direction setting method and microcomputer direction setting system - Google Patents
Microcomputer direction setting method and microcomputer direction setting system Download PDFInfo
- Publication number
- JP3799471B2 JP3799471B2 JP2000391872A JP2000391872A JP3799471B2 JP 3799471 B2 JP3799471 B2 JP 3799471B2 JP 2000391872 A JP2000391872 A JP 2000391872A JP 2000391872 A JP2000391872 A JP 2000391872A JP 3799471 B2 JP3799471 B2 JP 3799471B2
- Authority
- JP
- Japan
- Prior art keywords
- extended
- microcomputer
- pin
- select
- port
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Microcomputers (AREA)
- Semiconductor Integrated Circuits (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、マイコンの仕様判別方法およびマイコンの仕様判別システムに関し、詳しくは、マイコンに接続される複数の電子機器を各仕様の判別が不可能な場合であっても、マイコンの仕向けを最多の拡張機能が付加された拡張仕様に変更してシステムを確実に動作させることができるマイコンの仕様判別方法およびマイコンの仕様判別システムに関する。
【0002】
【従来の技術】
一般に自動車には、パワーウインドを制御するもの、キーレスエントリーを行なうもの、あるいはカーステレオやエアコンを制御するもの等の電子機器が搭載されているが、これらの電子機器はマイクロコンピュータ(以下、マイコンという)が搭載されたECU(Electronic Control Unit)によって制御されている。
【0003】
ところで、自動車の種類や仕様によって電子機器の仕様が異なるが、仕様別にECUを作るのではなく、マイコンのソフトウェアを変更して対応している。
【0004】
具体的には、マイコン側ではソフトウェアー上で各仕様に対応した信号状態(電圧値)を予め記憶しておき、マイコンのセレクトポートに入力される各仕様の電圧値を検知することによって各仕様を判別し、各仕様に応じてソフトウェアーを切換えて車種毎の仕様に対応するものに変更している。
【0005】
例えば、2つの車両の仕様として、パワーウインドの基本機能のみの基本仕様と、パワーウインドの基本仕様にキーレスエントリーの拡張機能が付加された拡張仕様との2種類の仕様がある場合を考える。
【0006】
まず、マイコンを基本仕様の車種のECUに搭載する場合には、マイコンのセレクトポートを基板のグランド側に接続し(プルダウン)、0Vの入力電圧に設定する。そして、マイコンの立上がり時等にセレクトポートを読み取ったときにLow信号(0V)を検出することにより、基本仕様に接続されたものと判断してマイコンのソフトウェアを基本仕様に切換え設定する。
【0007】
また、マイコンを拡張仕様の車種のECUに搭載する場合には、マイコンのセレクトポートをマイコンの基準電位である5Vの電源に接続し(プルアップ)、5Vの入力電圧に設定する。そして、マイコンの立上がり時等にセレクトポートを読み取ったときにHi信号(5V)を検出することにより、拡張仕様に接続されたものと判断してマイコンのソフトウェアを拡張仕様に切換え設定する。
【0008】
【発明が解決しようとする課題】
しかしながら、このようなマイコンの仕向設定方法にあっては、コストパフォーマンスを考慮して1つのマイコンで拡張仕様に対応するようにソフトウェアー上で制御する場合に、何等かの原因によりマイコンの仕様を決定するセレクトポートのピンが基板から外れる等して重大な欠陥が生じた場合に、マイコンの仕様を設定することができないという問題があった。
【0009】
例えば、マイコンを拡張仕様の車種に搭載したときに、セレクトピンが基板から外れてしまうと、マイコンの立上がり時等にセレクトポートを読み取ったときにその入力状態が不定となってしまうので、基本仕様に設定されるか拡張仕様に設定されるか予想できず、マイコンを正常に動作させない事態を招来してしまうおそれがあった。
【0010】
そこで本発明は、何等かの原因によりマイコンのセレクトポートのピンが基板から外れる等して重大な欠陥が生じた場合であっても、各仕様の内の最多の拡張機能が付加された拡張仕様に切換え設定するようにして、各仕様で制御する電子機器を確実に動作させることができるマイコンの仕向設定方法およびマイコンの仕向設定システムを提供することを目的としている。
【0011】
【課題を解決するための手段】
第1の発明は、上記課題を解決するために、マイコンに接続可能な複数の電子機器の仕様が、基本機能からなる基本仕様と基本仕様に少なくとも1つ以上の拡張機能を組合せて構成される複数の拡張仕様がある場合に、マイコンを前記仕様のうちの任意の仕様に対応する仕向に設定するマイコンの仕向設定方法であって、前記マイコンのセレクトポートをプルダウンに設定することによって電子機器の仕様を基本仕様に設定し、前記マイコンのセレクトポートをプルアップに設定することによって電子機器の仕様を拡張仕様に設定するマイコン仕向設定方法において、前記セレクトポートとして、内部スイッチによって接続されるプルアップ抵抗を内蔵したものを用い、前記セレクトポートを読み取るときには、内部スイッチをONしてプルアップ抵抗を前記セレクトポートに接続することにより、前記セレクトポートがプルアップあるいはプルダウンに設定されていないときに、前記拡張仕様の内の最多の拡張機能が付加された拡張仕様に設定することを特徴としている。
【0012】
第2の発明は、上記課題を解決するために、マイコンに接続可能な複数の電子機器の仕様が、基本機能からなる基本仕様と基本仕様に少なくとも1つ以上の拡張機能を組合せて構成される複数の拡張仕様がある場合に、マイコンを前記仕様のうちの任意の仕様に対応する仕向に設定するマイコンの仕向設定システムであって、前記マイコンのセレクトポートをプルダウンに設定することによって電子機器の仕様を基本仕様に設定し、前記マイコンのセレクトポートをプルアップに設定することによって電子機器の仕様を拡張仕様に設定するマイコン仕向設定方法において、前記セレクトポートとして、内部スイッチによって接続されるプルアップ抵抗を内蔵したものを有し、前記セレクトポートを読み取るときには、内部スイッチをONしてプルアップ抵抗を前記セレクトポートに接続することにより、前記セレクトポートがプルアップあるいはプルダウンに設定されていないときに、前記拡張仕様の内の最多の拡張機能が付加された拡張仕様に設定する設定手段を有することを特徴としている。
【0013】
第1および第2の発明によれば、何等かの原因によりマイコンのセレクトポートのピンが基板から外れる等して重大な欠陥が生じた場合であっても、各仕様の内の最多の拡張機能が付加された拡張仕様に切換え設定するようにして、各仕様で制御する電子機器を確実に動作させることができる。
【0014】
【発明の実施の形態】
以下、本発明の実施形態を図面に基づいて説明する。
【0015】
図1〜5は本発明に係るマイコンの仕向設定方法およびマイコンの仕向設定システムの一実施形態を示す図である。
【0016】
まず、構成を説明する。図1において、1は車両に搭載され、車両の各種電子機器を制御するECUであり、このECU1にはCPU(Central Processing Unit)2が内蔵されている。このCPU2は内部バス3、内部スイッチ6およびプルアップ抵抗7が内蔵されている。
【0017】
このCPU2はセレクトポート8を備えており、このセレクトポート8はセレクトピン(図示略)が接続され、セレクトポート8はセレクトピンを介して電子機器の基板に接続されるようになっている。
【0018】
ここで、CPU2の詳しい説明を行なう前に、本実施形態の仕様について説明する。
【0019】
車両の種類によってCPU2に接続される電子機器の仕様が異なっており、当然のことながらCPU2の設定も機種毎(仕様毎)に応じて変更される。本実施形態では、図2(a)に示すようにCPU2にパワーウインド11を制御するパワーウインド制御回路12を制御する基本機能のみの仕様Aと、図2(b)に示すようにパワーウインド制御回路12を制御する基本仕様にドア13をリモートコントローラ14により施錠、開錠するキーレスエントリー制御手段15を制御する拡張機能が付加された仕様Bとの2種類の仕様がある場合を考える。
【0020】
図2(a)に示す基本仕様では、図3(a)に示すように、セレクトポート8に接続されるセレクトピン21をグランドGに接続し、内部スイッチ6に相当するプルアップスイッチ22をONしてセレクトポート8に入力される電圧を電圧検知部23によって検知したときにこの電圧値に基づいてCPUを仕様Aに設定する。
【0021】
一方、図2(b)に示す拡張仕様では、図3(b)に示すように、セレクトポート8に接続されるセレクトピン21をVCC(5V)に接続し、内部スイッチ6に相当するプルアップスイッチ22をONしてセレクトポート8に入力される電圧を電圧検知部23によって検知したときにこの電圧値に基づいてCPUを仕様Bに設定する。
【0022】
本実施形態では、図3(c)に示すように、何等かの原因によってセレクトピン21が基板から外れてしまい、セレクトポート8の入力状態が不定なときでも制御を行なうものである。
【0023】
再び図1において、CPU2のスリープ状態から立上がり時に内部バス3からPU信号を出力して、内部スイッチ6をONさせてプルアップ抵抗7をセレクトポート8に接続する。このとき、セレクトポート8の状態を読み取り、PD信号として内部バス3に入力することにより、図示しないCPU2の判定部によって仕様を判別して仕向を設定する。
【0024】
具体的には、セレクトピンがグランドGに接続されていると、検知電圧V={5/(100+5)}×5≒0(V)となるため、仕様Aに設定する。
【0025】
また、セレクトピンがVCC(5V)に接続されていると、検知電圧V≒5(V)となるため、仕様Bに設定する。
【0026】
一方、図3(c)に示すように、セレクトピン21が何等かの原因によって基板から外れてしまった場合でも、プルアップスイッチ22をONしてセレクトポート8の電圧をCPUの内部電源電圧VDD(=5V)にするので、図3(b)と同様にしてCPUを仕様Bに設定する。
【0027】
本実施形態では、セレクトポート8の入力状態が不定なときでも、内部スイッチ6の働きにより仕様Bに自動的に設定するので、セレクトポート8に接続されたセレクトピンが基板から外れてしまう等して仕様を正しく判別することができない場合でも、CPU2の仕向を拡張機能が最も多い仕様に対応するように設定することで電子機器を確実に動作させることができるという効果を得ることができるのである。本実施形態では、CPU2および内部スイッチ6が設定手段を構成している。
【0028】
なお、本実施形態では、2種類の仕様について説明しているが、これに限らない。
【0029】
本実施形態では、図4(b)に示すように、基本仕様A、基本仕様Aに拡張機能Bを付加した拡張仕様、基本仕様Aに拡張機能Cを付加した拡張仕様、基本仕様Aに拡張機能B、Cを付加した拡張仕様の4種類の仕様をCPU2で設定することも可能である。なお、図4(a)は2種類の仕様にCPU2を対応させた上記実施形態のピンの状態を仕向の関係を示す図であり、比較のために用いている。
【0030】
図4(b)に示す仕様の場合には、図5に示すように、CPU2にセレクトポート8と設定手段を2つ設けて、セレクトポート8とセレクトポート8′にセレクトピンを接続するようにすればハードウェア上で問題はない。
【0031】
なお、セレクトポート8にはピン1を、セレクトポート8′にはピン2を接続するものとする。
【0032】
この場合、ピン1、2がグランドに接続されていれば、基本仕様AにCPUを仕向け、ピン1が5Vに、ピン2がグランドに接続されていれば、基本仕様A+BにCPUを仕向け、ピン1がグランドに、ピン2が5Vに接続されていれば、基本仕様A+CにCPUを仕向け、ピン1、2が5Vに接続されていれば、基本仕様A+B+CにCPUを仕向ける。
【0033】
ここで、ピン1をLow、ピン2もLowに設定して基本仕様Aに設定する場合において、何等かの原因によってLowに設定すべきピン1が外れてしまったときには、内部スイッチ6の働きによりセレクトポート8がHiに設定されるので、基本仕様Aに拡張仕様Bを追加した(A+B)仕様にCPUを切換え設定する。
【0034】
また、何等かの原因によってLowに設定すべきピン2が外れてしまったときには、内部スイッチ6′の働きによりセレクトポート8′がHiに設定されるので、基本仕様Aに拡張仕様Cを追加した(A+C)仕様にCPUを切換え設定する。
【0035】
次に、ピン1をLow、ピン2をHiに設定して(A+C)仕様に設定する場合において、何等かの原因によってLowに設定すべきピン1が外れてしまったときには、内部スイッチ6の働きによりセレクトポート8がHiに設定されるので、CPUは本来の(A+C)仕様に拡張仕様Cを追加した(A+B+C)仕様に切換え設定される。
【0036】
ここで、Hiに設定すべきピン2が外れてしまったときには、内部スイッチ6′の働きによりセレクトポート8′がHiに設定されるので、CPUは本来の(A+C)仕様に切換え設定される。
【0037】
次に、ピン1をHi、ピン2をLowに設定して(A+B)仕様に設定する場合において、何等かの原因によってLowに設定すべきピン2が外れてしまったときには、内部スイッチ6′の働きによりセレクトポート8′がHiに設定されるので、CPUは本来の(A+B)仕様に拡張仕様Cを追加した(A+B+C)仕様に切換え設定される。
【0038】
ここで、Hiに設定すべきピン1が外れてしまったときには、内部スイッチ6の働きによりセレクトポート8がHiに設定されるので、CPUは本来の(A+B)仕様に切換え設定される。
【0039】
次に、ピン1をHi、ピン2もHiに設定して(A+B+C)仕様に設定する場合において、何等かの原因によってHiに設定すべきピン1が外れてしまったときには、内部スイッチ6の働きによりセレクトポート8がHiに設定されるので、CPUは本来の(A+B+C)仕様に切換え設定される。
【0040】
また、Hiに設定すべきピン2が外れてしまったときには、内部スイッチ6′の働きによりセレクトポート8′がHiに設定されるので、CPUは本来の(A+B)仕様に切換え設定される。
【0041】
さらに、セレクトピンが3つ以上設けられている場合にでも適用できる。
【0042】
図4(c)でセレクトピンが3つ設けられている場合の例を説明するが、この場合には、CPU2にセレクトポート8と設定手段を3つ設けてセレクトポート8に3つのセレクトピンを接続すればハードウェア上で問題はない。なお、セレクトポートについては図示省略する。
【0043】
なお、ピン1に接続されるセレクトポートを第1ポートとし、ピン2に接続されるセレクトポートを第2ポートとし、ピン3に接続されるセレクトポートを第3ポートする。
【0044】
この場合、セレクトピン1、2、3がグランドに接続されていれば、基本仕様AにCPU2を仕向け、セレクトピン1がグランドに、セレクトピン2が5Vに、セレクトピン3がグランドに接続されていれば、基本仕様A+拡張機能Bからなる拡張仕様に仕向け、セレクトピン1がグランドに、セレクトピン2がグランドに、セレクトピン3が5Vに接続されていれば、基本仕様A+拡張機能Cからなる拡張仕様に仕向け、セレクトピン1が5Vに、セレクトピン2がグランドに仕向け、セレクトピン3がグランドに接続されていれば、基本仕様A+拡張機能Dからなる拡張仕様に仕向け、セレクトピン1がグランドに、セレクトピン2が5Vに、セレクトピン3が5Vに接続されていれば、基本仕様A+拡張機能B+拡張機能Cからなる拡張仕様に仕向け、セレクトピン1が5Vに、セレクトピン2が5Vに、セレクトピン3がグランドに接続されていれば、基本仕様A+拡張機能B+拡張機能Dからなる拡張仕様に仕向け、セレクトピン1が5Vに、セレクトピン2がグランドに、セレクトピン3が5Vに接続されていれば、基本仕様A+拡張機能C+拡張機能Dからなる拡張仕様に仕向け、セレクトピン1、2、3が5Vに接続されていれば、基本仕様A+拡張機能B+拡張機能C+拡張機能Dからなる拡張仕様に仕向ける。すなわち、セレクトピンP1、2、3が3つの場合には、CPU2は8つの仕様に対応して仕向けられる。
【0045】
ここで、ピン1〜3をLowに設定して基本仕様Aに設定する場合において、何等かの原因によってLowに設定すべきピン1が外れてしまったときには、内部スイッチの働きにより第1ポートがHiに設定されるので、基本仕様Aに拡張仕様Dを追加した(A+D)仕様にCPUを切換え設定する。
【0046】
また、何等かの原因によってLowに設定すべきピン2が外れてしまったときには、内部スイッチの働きにより第2ポートがHiに設定されるので、基本仕様Aに拡張仕様Bを追加した(A+B)仕様にCPUを切換え設定する。
【0047】
また、何等かの原因によってLowに設定すべきピン3が外れてしまったときには、内部スイッチの働きにより第3ポートがHiに設定されるので、基本仕様Aに拡張仕様Cを追加した(A+C)仕様にCPUを切換え設定する。
【0048】
次に、ピン1、3をLowに、ピン2をHiに設定して(A+B)仕様に設定する場合において、何等かの原因によってLowに設定すべきピン1が外れてしまったときには、内部スイッチの働きにより第1ポートがHiに設定されるので、基本仕様Aに拡張仕様BとDを追加した(A+B+D)仕様にCPUを切換え設定する。
【0049】
また、何等かの原因によってHiに設定すべきピン2が外れてしまったときには、内部スイッチの働きにより第2ポートがHiに設定されるので、基本仕様Aに拡張仕様Bを追加した本来の(A+B)仕様にCPUを切換え設定する。
【0050】
また、何等かの原因によってLowに設定すべきピン3が外れてしまったときには、内部スイッチの働きにより第3ポートがHiに設定されるので、本来の(A+B)仕様Aに拡張仕様Cを追加した(A+B+C)仕様にCPUを切換え設定する。
【0051】
次に、ピン1、2をLowに、ピン3をHiに設定して(A+C)仕様に設定する場合において、何等かの原因によってLowに設定すべきピン1が外れてしまったときには、内部スイッチの働きにより第1ポートがHiに設定されるので、本来の(A+C)仕様に拡張仕様Dを追加した(A+C+D)仕様にCPUを切換え設定する。
【0052】
また、何等かの原因によってLowに設定すべきピン2が外れてしまったときには、内部スイッチの働きにより第2ポートがHiに設定されるので、本来の(A+C)仕様に拡張仕様Bを追加した(A+B+C)仕様にCPUを切換え設定する。
【0053】
また、何等かの原因によってHiに設定すべきピン3が外れてしまったときには、内部スイッチの働きにより第3ポートがHiに設定されるので、基本仕様Aに拡張仕様Cを追加した本来の(A+C)仕様にCPUを切換え設定する。
【0054】
次に、ピン1をHiに、ピン2、3をLowに設定して(A+D)仕様に設定する場合において、何等かの原因によってHiに設定すべきピン1が外れてしまったときには、内部スイッチの働きにより第1ポートがHiに設定されるので、基本仕様Aに拡張仕様Dを追加した本来の(A+D)仕様にCPUを切換え設定する。
【0055】
また、何等かの原因によってLowに設定すべきピン2が外れてしまったときには、内部スイッチの働きにより第2ポートがHiに設定されるので、本来の(A+D)仕様に拡張仕様Bを追加した本来の(A+B+D)仕様にCPUを切換え設定する。
【0056】
また、何等かの原因によってLowに設定すべきピン3が外れてしまったときには、内部スイッチの働きにより第3ポートがHiに設定されるので、本来の(A+D)仕様に拡張仕様Cを追加した(A+C+D)仕様にCPUを切換え設定する。
【0057】
次に、ピン1をLowに、ピン2、3をHiに設定して(A+B+C)仕様に設定する場合において、何等かの原因によってLowに設定すべきピン1が外れてしまったときには、内部スイッチの働きにより第1ポートがHiに設定されるので、本来の(A+B+C)仕様に拡張仕様Dを追加した(A+B+C+D)仕様にCPUを切換え設定する。
【0058】
また、何等かの原因によってHiに設定すべきピン2が外れてしまったときには、内部スイッチの働きにより第2ポートがHiに設定されるので、基本仕様Aに拡張仕様BとCを追加した本来の(A+B+C)仕様にCPUを切換え設定する。
【0059】
また、何等かの原因によってHiに設定すべきピン3が外れてしまったときには、内部スイッチの働きにより第3ポートがHiに設定されるので、基本仕様Aに拡張仕様BとCを追加した本来の(A+B+C)仕様にCPUを切換え設定する。
【0060】
次に、ピン1、2をHiに、ピン3をLowに設定して(A+B+D)仕様に設定する場合において、何等かの原因によってHiに設定すべきピン1が外れてしまったときには、内部スイッチの働きにより第1ポートがHiに設定されるので、基本仕様Aに拡張仕様BとDを追加した本来の(A+B+D)仕様にCPUを切換え設定する。
【0061】
また、何等かの原因によってHに設定すべきピン2が外れてしまったときには、内部スイッチの働きにより第2ポートがHiに設定されるので、基本仕様Aに拡張仕様BとDを追加した本来の(A+B+D)仕様にCPUを切換え設定する。
【0062】
また、何等かの原因によってLowに設定すべきピン3が外れてしまったときには、内部スイッチの働きにより第3ポートがHiに設定されるので、本来の(A+B+D)仕様に拡張仕様Cを追加した(A+B+C+D)仕様にCPUを切換え設定する。
【0063】
次に、ピン1、3をHiに、ピン2をLowに設定して(A+C+D)仕様に設定する場合において、何等かの原因によってHiに設定すべきピン1が外れてしまったときには、内部スイッチの働きにより第1ポートがHiに設定されるので、基本仕様Aに拡張仕様CとDを追加した本来の(A+C+D)仕様にCPUを切換え設定する。
【0064】
また、何等かの原因によってLowに設定すべきピン2が外れてしまったときには、内部スイッチの働きにより第2ポートがHiに設定されるので、本来の仕様(A+C+D)に拡張仕様Bを追加した(A+B+C+D)仕様にCPUを切換え設定する。
【0065】
また、何等かの原因によってHiに設定すべきピン3が外れてしまったときには、内部スイッチの働きにより第3ポートがHiに設定されるので、基本仕様Aに拡張仕様CとDを追加した本来の(A+C+D)仕様にCPUを切換え設定する。
【0066】
次に、ピン1〜3をHiに設定して(A+B+C+D)仕様に設定する場合において、何等かの原因によってHiに設定すべきピン1が外れてしまったときには、内部スイッチの働きにより第1ポートがHiに設定されるので、基本仕様Aに拡張仕様B、C、Dを追加した本来の(A+B+C+D)仕様にCPUを切換え設定する。
【0067】
また、何等かの原因によってLowに設定すべきピン2が外れてしまったときには、内部スイッチの働きにより第2ポートがHiに設定されるので、基本仕様Aに拡張仕様B、C、Dを追加した本来の(A+B+C+D)仕様にCPUを切換え設定する。
【0068】
また、何等かの原因によってLowに設定すべきピン3が外れてしまったときには、内部スイッチの働きにより第3ポートがHiに設定されるので、基本仕様Aに拡張仕様B、C、Dを追加した本来の(A+B+C+D)仕様にCPUを切換え設定する。
【0069】
なお、セレクトピンが4つ以上の場合は上述したようにセレクトポートと設定部がセレクトピンの数と同数だけ増大するだけで基本的な制御は同じであるため、説明を省略する。
【0070】
【発明の効果】
本発明によれば、何等かの原因によりマイコンのセレクトポートのピンが基板から外れる等して重大な欠陥が生じた場合であっても、各仕様の内の最多の拡張機能が付加された拡張仕様に切換え設定するようにして、各仕様で制御する電子機器を確実に動作させることができる。
【図面の簡単な説明】
【図1】本発明に係るマイコンの仕向設定方法およびマイコンの仕向設定システムの一実施形態を示す図であり、そのCPUの構成図である。
【図2】(a)は一実施形態のCPUに接続される基本仕様を示す図、(b)はCPUに接続される拡張仕様を示す図、(c)はセレクトピンが基板から外れたときにCPUが仕向けられる拡張仕様を示す図である。
【図3】(a)は一実施形態の基本仕様をCPUに接続した状態を示す回路図、(b)は拡張仕様をCPUに接続した状態を示す回路図、(c)はセレクトピンが外れた状態を示す回路図である。
【図4】(a)は一実施形態のセレクトピンが1ピンのときのピンの状態と仕向の関係を示す図、(b)はセレクトピンが2ピンのときのピンの状態と仕向の関係を示す図、(c)はセレクトピンが3ピンのときのピンの状態と仕向の関係を示す図である。
【図5】セレクタピンが2ピンのときのCPUの構成を示す図である。
【符号の説明】
2 CPU(設定手段)
6 内部スイッチ(設定手段)
7 プルアップ抵抗
8 セレクトポート[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a microcomputer specification determination method and a microcomputer specification determination system. More specifically, even when a plurality of electronic devices connected to a microcomputer cannot be determined for each specification, the microcomputer is most frequently used. The present invention relates to a microcomputer specification determination method and a microcomputer specification determination system that can change the extended specification to which an extended function is added and operate the system reliably.
[0002]
[Prior art]
In general, automobiles are equipped with electronic devices such as those that control power windows, those that perform keyless entry, and those that control car stereos and air conditioners. These electronic devices are microcomputers (hereinafter referred to as microcomputers). ) Is controlled by an ECU (Electronic Control Unit).
[0003]
By the way, although the specification of an electronic device changes with kinds and specifications of a motor vehicle, it does not make ECU for every specification, but changes the software of microcomputer and responds.
[0004]
Specifically, on the microcomputer side, the signal state (voltage value) corresponding to each specification is stored in advance on the software, and each specification is detected by detecting the voltage value of each specification input to the select port of the microcomputer. The software is switched according to each specification and changed to the one corresponding to the specification for each vehicle type.
[0005]
For example, let us consider a case in which there are two types of specifications of two vehicles: a basic specification with only a basic function of the power window and an extended specification in which a keyless entry extended function is added to the basic specification of the power window.
[0006]
First, when the microcomputer is mounted on the ECU of a vehicle model of the basic specification, the select port of the microcomputer is connected to the ground side of the board (pull down), and the input voltage is set to 0V. Then, when the select port is read when the microcomputer starts up or the like, a Low signal (0 V) is detected to determine that the microcomputer is connected to the basic specifications, and the microcomputer software is switched to the basic specifications.
[0007]
When the microcomputer is mounted on an ECU of an extended specification vehicle type, the select port of the microcomputer is connected to a 5 V power source that is the reference potential of the microcomputer (pull-up), and the input voltage is set to 5 V. Then, by detecting the Hi signal (5 V) when the select port is read when the microcomputer starts up, it is determined that the microcomputer is connected to the extended specification, and the microcomputer software is switched to the extended specification.
[0008]
[Problems to be solved by the invention]
However, in such a microcomputer setting method, when controlling with software so that one microcomputer can support the extended specifications in consideration of cost performance, the microcomputer specifications can be changed for some reason. There is a problem that the specification of the microcomputer cannot be set when a serious defect occurs because the pin of the select port to be determined is detached from the board.
[0009]
For example, if the select pin is removed from the board when the microcomputer is mounted on an extended specification model, the input state will be undefined when the select port is read when the microcomputer starts up. It could not be predicted whether it would be set to the extended specification or the extended specification, and there was a risk that the microcomputer would not operate normally.
[0010]
Therefore, the present invention provides an extended specification to which the most extended functions of each specification are added even when a serious defect occurs due to the select port pin of the microcomputer being detached from the board for some reason. It is an object of the present invention to provide a microcomputer setting method and a microcomputer setting system capable of reliably operating an electronic device controlled according to each specification.
[0011]
[Means for Solving the Problems]
In the first invention, in order to solve the above-described problem, the specifications of a plurality of electronic devices connectable to the microcomputer are configured by combining a basic specification composed of basic functions and a basic specification with at least one extended function. A microcomputer setting method for setting a microcomputer to a destination corresponding to any of the above specifications when there are a plurality of extended specifications, and by setting the select port of the microcomputer to a pull-down, In the microcomputer-oriented setting method in which the specification of the electronic device is set to the extended specification by setting the specification to the basic specification and setting the select port of the microcomputer to the pull-up, the pull-up connected by the internal switch as the select port When reading the select port using a built-in resistor, turn on the internal switch and pull By connecting a pop-up resistor to the select port, when the select port is not set to pull-up or pull-down, it is set to an extended specification to which the most extended functions of the extended specifications are added. It is a feature.
[0012]
In the second invention, in order to solve the above-described problem, the specifications of a plurality of electronic devices connectable to the microcomputer are configured by combining a basic specification composed of basic functions and a basic specification with at least one extended function. A microcomputer setting system for setting a microcomputer to a destination corresponding to any of the above specifications when there are a plurality of extended specifications, and by setting the select port of the microcomputer to a pull-down, In the microcomputer-oriented setting method in which the specification of the electronic device is set to the extended specification by setting the specification to the basic specification and setting the select port of the microcomputer to the pull-up, the pull-up connected by the internal switch as the select port When reading the select port, turn on the internal switch. A setting means for setting the extended specification to which the most extended functions of the extended specifications are added when the select port is not set to pull-up or pull-down by connecting a pull-up resistor to the select port; It is characterized by having.
[0013]
According to the first and second inventions, even if a serious defect occurs due to a cause of the select port pin of the microcomputer being detached from the board for some reason, the maximum number of extended functions in each specification. Thus, the electronic device controlled by each specification can be surely operated by switching to the extended specification to which is added.
[0014]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0015]
1 to 5 are views showing an embodiment of a microcomputer setting method and a microcomputer setting system according to the present invention.
[0016]
First, the configuration will be described. In FIG. 1,
[0017]
The
[0018]
Here, before describing the
[0019]
The specification of the electronic device connected to the
[0020]
In the basic specification shown in FIG. 2A, as shown in FIG. 3A, the
[0021]
On the other hand, in the extended specification shown in FIG. 2B, as shown in FIG. 3B, the
[0022]
In the present embodiment, as shown in FIG. 3C, the control is performed even when the
[0023]
In FIG. 1 again, when the
[0024]
Specifically, when the select pin is connected to the ground G, the detection voltage V = {5 / (100 + 5)} × 5≈0 (V), so the specification A is set.
[0025]
When the select pin is connected to VCC (5 V), the detection voltage V≈5 (V), so the specification B is set.
[0026]
On the other hand, as shown in FIG. 3C, even when the
[0027]
In this embodiment, even when the input state of the
[0028]
In the present embodiment, two types of specifications are described, but the present invention is not limited to this.
[0029]
In the present embodiment, as shown in FIG. 4B, the basic specification A, the extended specification in which the extended function B is added to the basic specification A, the extended specification in which the extended function C is added to the basic specification A, and the extended to the basic specification A The
[0030]
In the case of the specification shown in FIG. 4B, as shown in FIG. 5, the
[0031]
It is assumed that
[0032]
In this case, if the
[0033]
Here, when the
[0034]
Further, when the
[0035]
Next, when the
[0036]
Here, when the
[0037]
Next, when the
[0038]
Here, when the
[0039]
Next, when the
[0040]
When the
[0041]
Furthermore, the present invention can be applied even when three or more select pins are provided.
[0042]
FIG. 4C illustrates an example in which three select pins are provided. In this case, the
[0043]
The select port connected to pin 1 is the first port, the select port connected to pin 2 is the second port, and the select port connected to pin 3 is the third port.
[0044]
In this case, if the
[0045]
Here, when the
[0046]
In addition, when the
[0047]
Further, when the
[0048]
Next, when the
[0049]
Further, when the
[0050]
In addition, when
[0051]
Next, when the
[0052]
In addition, when
[0053]
Further, when the
[0054]
Next, when the
[0055]
In addition, when
[0056]
In addition, when
[0057]
Next, when
[0058]
Further, when the
[0059]
In addition, when the
[0060]
Next, when the
[0061]
Further, when the
[0062]
In addition, when
[0063]
Next, when the
[0064]
In addition, when
[0065]
In addition, when the
[0066]
Next, when the
[0067]
In addition, when
[0068]
In addition, when
[0069]
If there are four or more select pins, the basic control is the same as the number of select ports and setting units increased by the same number as the number of select pins as described above, and the description thereof will be omitted.
[0070]
【The invention's effect】
According to the present invention, even if a serious defect occurs due to the select port pin of the microcomputer being detached from the board due to some cause, the extension with the most extended functions of each specification is added. By switching to the specification, the electronic equipment controlled by each specification can be operated reliably.
[Brief description of the drawings]
FIG. 1 is a diagram showing an embodiment of a microcomputer setting method and a microcomputer setting system according to the present invention, and is a block diagram of the CPU.
2A is a diagram showing basic specifications connected to the CPU of one embodiment, FIG. 2B is a diagram showing extended specifications connected to the CPU, and FIG. 2C is a diagram when the select pin is removed from the substrate; It is a figure which shows the extended specification to which CPU is directed to.
3A is a circuit diagram showing a state in which the basic specifications of one embodiment are connected to the CPU, FIG. 3B is a circuit diagram showing a state in which the extended specifications are connected to the CPU, and FIG. It is a circuit diagram which shows the state.
FIG. 4A is a diagram illustrating a relationship between a pin state and a destination when the select pin is one pin according to an embodiment; FIG. 4B is a relationship between a pin state and a destination when the select pin is two pins; FIG. 8C is a diagram showing the relationship between the pin state and the destination when the select pin is 3 pins.
FIG. 5 is a diagram illustrating a configuration of a CPU when there are two selector pins.
[Explanation of symbols]
2 CPU (setting means)
6 Internal switch (setting means)
7 Pull-up
Claims (2)
前記マイコンのセレクトポートをプルダウンに設定することによって電子機器の仕様を基本仕様に設定し、前記マイコンのセレクトポートをプルアップに設定することによって電子機器の仕様を拡張仕様に設定するマイコン仕向設定方法において、
前記セレクトポートとして、内部スイッチによって接続されるプルアップ抵抗を内蔵したものを用い、
前記セレクトポートを読み取るときには、内部スイッチをONしてプルアップ抵抗を前記セレクトポートに接続することにより、前記セレクトポートがプルアップあるいはプルダウンに設定されていないときに、前記拡張仕様の内の最多の拡張機能が付加された拡張仕様に設定することを特徴とするマイコンの仕向設定方法。If the specifications of multiple electronic devices that can be connected to the microcomputer include a basic specification consisting of basic functions and a plurality of extended specifications configured by combining at least one extended function with the basic specifications, It is a microcomputer setting method for setting to a specification corresponding to any of the specifications,
A microcomputer-oriented setting method in which the specification of the electronic device is set to a basic specification by setting the select port of the microcomputer to a pull-down, and the specification of the electronic device is set to an extended specification by setting the select port of the microcomputer to a pull-up In
As the select port, use a built-in pull-up resistor connected by an internal switch,
When reading the select port, an internal switch is turned on and a pull-up resistor is connected to the select port. A microcomputer setting method characterized in that an extended specification with an extended function is set.
前記マイコンのセレクトポートをプルダウンに設定することによって電子機器の仕様を基本仕様に設定し、前記マイコンのセレクトポートをプルアップに設定することによって電子機器の仕様を拡張仕様に設定するマイコン仕向設定方法において、
前記セレクトポートとして、内部スイッチによって接続されるプルアップ抵抗を内蔵したものを有し、前記セレクトポートを読み取るときには、内部スイッチをONしてプルアップ抵抗を前記セレクトポートに接続することにより、前記セレクトポートがプルアップあるいはプルダウンに設定されていないときに、前記拡張仕様の内の最多の拡張機能が付加された拡張仕様に設定する設定手段を有することを特徴とするマイコンの仕向設定システム。If the specifications of multiple electronic devices that can be connected to the microcomputer include a basic specification consisting of basic functions and a plurality of extended specifications configured by combining at least one extended function with the basic specifications, It is a microcomputer setting system for setting to a specification corresponding to any of these specifications,
A microcomputer-oriented setting method in which the specification of the electronic device is set to a basic specification by setting the select port of the microcomputer to a pull-down, and the specification of the electronic device is set to an extended specification by setting the select port of the microcomputer to a pull-up In
The select port has a built-in pull-up resistor connected by an internal switch. When the select port is read, the select switch is turned on to connect the pull-up resistor to the select port. A microcomputer setting system, comprising setting means for setting an extended specification to which a maximum number of extended functions of the extended specifications are added when a port is not set to pull-up or pull-down.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000391872A JP3799471B2 (en) | 2000-12-25 | 2000-12-25 | Microcomputer direction setting method and microcomputer direction setting system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000391872A JP3799471B2 (en) | 2000-12-25 | 2000-12-25 | Microcomputer direction setting method and microcomputer direction setting system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2002196847A JP2002196847A (en) | 2002-07-12 |
JP3799471B2 true JP3799471B2 (en) | 2006-07-19 |
Family
ID=18857951
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000391872A Expired - Fee Related JP3799471B2 (en) | 2000-12-25 | 2000-12-25 | Microcomputer direction setting method and microcomputer direction setting system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3799471B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100518570B1 (en) * | 2003-05-06 | 2005-10-04 | 삼성전자주식회사 | Circuit and method for detecting disc drive |
JP2010122728A (en) * | 2008-11-17 | 2010-06-03 | Yuhshin Co Ltd | Indicator part control device |
-
2000
- 2000-12-25 JP JP2000391872A patent/JP3799471B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2002196847A (en) | 2002-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10880117B2 (en) | Control area network (CAN) transceivers with automatic polarity detection | |
EP3862230B1 (en) | Communication system and vicarious inputting and outputting unit | |
KR100187739B1 (en) | Control system of automotive air conditioning device | |
JP3557335B2 (en) | Interface circuit | |
US20020161938A1 (en) | Increasing control information from a single general purpose input/output (GPIO) mechanism | |
JP3799471B2 (en) | Microcomputer direction setting method and microcomputer direction setting system | |
US9145100B2 (en) | In-vehicle ECU | |
JP2009132366A (en) | Switch control device for vehicle | |
JP3524294B2 (en) | Switch open / closed state detection circuit | |
JPH07160378A (en) | Magnetic disk connecting device | |
JP3748514B2 (en) | Sensor state detection device | |
KR102452535B1 (en) | Apparatus and method for preventing misoperating of sunroof for vehicle | |
JP4730356B2 (en) | Power control device | |
JPH08265859A (en) | Switch input discrimination circuit | |
KR100298744B1 (en) | Reset control apparatus of automobile | |
JP2005102418A (en) | Inverter device | |
JP2003297166A (en) | Courtesy switching device | |
JP3347769B2 (en) | Multiplex transmission equipment | |
KR102518236B1 (en) | System and method for determining cause of wake-up | |
JP5640518B2 (en) | In-vehicle ECU | |
JP3595302B2 (en) | Switch device | |
KR100786497B1 (en) | Input module of automobile | |
JP2000137644A (en) | Memory control circuit | |
US20090100306A1 (en) | Electronic unit | |
JPH09172470A (en) | Electronic controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050720 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050726 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050920 |
|
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: 20060328 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20060410 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090512 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100512 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100512 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110512 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120512 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120512 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130512 Year of fee payment: 7 |
|
LAPS | Cancellation because of no payment of annual fees |