JP2002278763A - Electric apparatus controller - Google Patents

Electric apparatus controller

Info

Publication number
JP2002278763A
JP2002278763A JP2001082353A JP2001082353A JP2002278763A JP 2002278763 A JP2002278763 A JP 2002278763A JP 2001082353 A JP2001082353 A JP 2001082353A JP 2001082353 A JP2001082353 A JP 2001082353A JP 2002278763 A JP2002278763 A JP 2002278763A
Authority
JP
Japan
Prior art keywords
switch
switches
microcomputer
dummy
resistor
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.)
Pending
Application number
JP2001082353A
Other languages
Japanese (ja)
Inventor
Toshihiro Tsuru
俊浩 鶴
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.)
Toto Ltd
Original Assignee
Toto Ltd
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 Toto Ltd filed Critical Toto Ltd
Priority to JP2001082353A priority Critical patent/JP2002278763A/en
Publication of JP2002278763A publication Critical patent/JP2002278763A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To eliminate an increase in cost for mounting resistance instead of a switch by using the existing wiring. SOLUTION: This controller comprising a microcomputer 2 including a plurality of machine model programs and an operating part B having a plurality of switches, an unneeded switch due to the difference of a machine model is replaced with dummy resistance 14 among the switches on the operating part, this resistance value is inputted to the analog input ports 7 of the microcomputer, the machine model is decided by the value, and a use program for the microcomputer 2 is selected.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、似た機能を持つ複
数の機種が存在する電気機器に好適な電気制御装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electric control device suitable for electric equipment having a plurality of models having similar functions.

【0002】[0002]

【従来の技術】従来、特開平9−134279にある通
り、機種選択用の複数の抵抗を主基板の外部に持ち、こ
れらをHiレベル、Loレベルにそれぞれ接続し、その
組み合わせをもって機種の選択を行っている。
2. Description of the Related Art Conventionally, as disclosed in Japanese Patent Application Laid-Open No. 9-134279, a plurality of resistors for model selection are provided outside a main board, these are connected to Hi level and Lo level, respectively, and model selection is performed by a combination thereof. Is going.

【0003】[0003]

【発明が解決しようとする課題】従来の抵抗の有無によ
るHi/Lo判定による機種判定では、本来不要である
抵抗や配線を冗長的に設けるためコストの上昇が避けら
れない。本発明は、上記課題を解決するためになされた
もので、本発明の目的は、もともとある配線を用い、ス
イッチの代わりに抵抗を載せるためコストの上昇は無く
すものである。
In the conventional model determination based on Hi / Lo determination based on the presence / absence of a resistor, an increase in cost is unavoidable because redundant resistors and wires, which are originally unnecessary, are provided redundantly. SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to eliminate an increase in cost since a wiring is used originally and a resistor is mounted instead of a switch.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するため
に第1の発明は複数の機種の制御プログラムを内蔵し、
少なくとも一つ以上のアナログ入力ポートを持つマイコ
ンと、複数のスイッチと、前記複数のスイッチのうち機
種によって欠落するスイッチの代わりに搭載されるスイ
ッチのオン抵抗値よりも大きい抵抗値を持つダミー抵抗
とスイッチ又はダミー抵抗とマイコンとを接続する配線
の間にGNDと接続するプルダウン抵抗からなる電気制
御装置により、マイコンがスイッチの入力を読む前に、
そこに入力されている電圧をアナログポートで読み込
み、その電圧が電源電圧、又はGNDの電圧に近ければ
スイッチがついていると認識し、そのどちらでもない電
圧であれば不要スイッチが欠落しダミー抵抗がついてい
ると認識し、その組み合わせによって機種を特定、以降
機器を制御するためのプログラムを特定された機種に従
って選択し動作させる。
According to a first aspect of the present invention, a control program for a plurality of models is provided.
A microcomputer having at least one or more analog input ports, a plurality of switches, and a dummy resistor having a resistance greater than an on-resistance of a switch mounted in place of a switch that is missing depending on the model among the plurality of switches; Before the microcomputer reads the input of the switch, the electric control device composed of the pull-down resistor connected to GND between the switch or the dummy resistor and the wiring connecting the microcomputer,
The voltage input there is read by the analog port. If the voltage is close to the power supply voltage or the voltage of GND, it is recognized that the switch is on. If the voltage is neither of them, the unnecessary switch is missing and the dummy resistor is It recognizes that it is attached, specifies the model by its combination, and then selects and operates a program for controlling the device according to the specified model.

【0005】上記目的を達成するために第2の発明は請
求項1における電気制御装置において、前記複数のスイ
ッチは3個以上を有し、内2個以上のスイッチがダミー
抵抗に置き換えらてあることによってより多くの機種を
ひとつの主基板で制御することができる。
According to a second aspect of the present invention, there is provided an electric control device according to the first aspect, wherein the plurality of switches have three or more switches, of which at least two switches are replaced with dummy resistors. Thus, more models can be controlled by one main board.

【0006】上記目的を達成するために第3の発明は請
求項1における電気制御装置において、前記スイッチは
アナログ入力ポートとデジタル入力ポートが電気的に並
列に接続されていることにより機種判別が終了した後は
通常のデジタル入力ポートを使用することができるた
め、スイッチ入力プログラムを簡略化することができ
る。
According to a third aspect of the present invention, there is provided an electric control apparatus according to the first aspect, wherein the switch has an analog input port and a digital input port which are electrically connected in parallel, and the model determination is terminated. After that, the normal digital input port can be used, so that the switch input program can be simplified.

【0007】[0007]

【発明の実施の形態】本発明をより理解しやすくするた
め、以下に実施例を用いて詳説する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In order to make the present invention easier to understand, the present invention will be described in detail with reference to the following embodiments.

【0008】[0008]

【実施例】図1は本発明の概略図である。マイコン2は
スイッチ(9〜12)と接続されている。また、スイッ
チ(9〜12)とマイコン2の配線の間にはプルダウン
抵抗5によりGNDに接続されているためスイッチ(9
〜12)がOFFであればマイコン2のスイッチ入力ポ
ート6はLoとなっている。又、スイッチ(9〜12)
のいずれかがONであれば該当するスイッチ入力ポート
6はHiとなる。操作部は操作部Aとは別の機種であ
り、操作部8のスイッチ9とスイッチ10が機種差によ
る不要のスイッチでありダミー抵抗14に置き換えられ
ている。このダミー抵抗14はスイッチ9及びスイッチ
10がONの時でもOFFの時でも有り得ない抵抗値で
あり、これをマイコン2のアナログ入力ポート7に入力
される電圧を読み取ることによって操作部Aとは別機種
の操作部Bが取付けられていることをマイコン2は認識
する。例えば、操作部8ではスイッチ9は「洗浄」、ス
イッチ10は「温風」、スイッチ11は「タイマー」、
スイッチ12は「運転」というように定義されていたと
する。対して操作部Bではスイッチ15は「洗浄」、ス
イッチ16は「運転」というようにスイッチ11とスイ
ッチ15は同じ位置についていても機種によって意味が
変るスイッチであるとした時に、前記の方法で機種判別
をし、それぞれ異なる制御プログラムにてスイッチを入
力してやれば、各々正しくスイッチを認識することにな
る。
FIG. 1 is a schematic diagram of the present invention. The microcomputer 2 is connected to switches (9 to 12). The switch (9 to 12) and the wiring of the microcomputer 2 are connected to GND by a pull-down resistor 5, so that the switch (9 to 12)
If 1212) is OFF, the switch input port 6 of the microcomputer 2 is Lo. Also, switches (9 to 12)
If any one of them is ON, the corresponding switch input port 6 becomes Hi. The operation unit is of a different model from the operation unit A, and the switches 9 and 10 of the operation unit 8 are unnecessary switches due to model differences and are replaced with dummy resistors 14. This dummy resistor 14 has a resistance value that is impossible even when the switch 9 and the switch 10 are ON or OFF, and is read separately from the operation unit A by reading the voltage input to the analog input port 7 of the microcomputer 2. The microcomputer 2 recognizes that the operation unit B of the model is attached. For example, in the operation unit 8, the switch 9 is “wash”, the switch 10 is “warm air”, the switch 11 is “timer”,
It is assumed that the switch 12 is defined as “driving”. On the other hand, in the operation unit B, when the switch 11 and the switch 15 are switches that have different meanings even if they are in the same position, such as the switch 15 is “washing” and the switch 16 is “running,” If the switch is determined by different control programs and the switches are input, the switches are correctly recognized.

【0009】又、ダミー抵抗14に置き換えるスイッチ
が2つあるということは図2のように組み合わせが4通
りあるということであり、最大4つの機種を1つの制御
装置でまかなうことができるということになる。
Further, the fact that there are two switches to be replaced with the dummy resistor 14 means that there are four combinations as shown in FIG. 2, which means that a maximum of four models can be covered by one controller. Become.

【0010】図3はダミー抵抗14によるマイコン2の
アナログ入力ポート7の電圧設定を求める考え方を示し
ている。ダミー抵抗14に置き換えるスイッチ(9又は
10)の入力を通常の入力ポートであるスイッチ入力ポ
ート6で行うため、このポートが少なくともHiと認識
しないようダミー抵抗14を設定する必要がある。マイ
コンがHi、又はLoと認識する電圧にはそれぞれ一定
の範囲があるが、仮にLoと認識される抵抗値を選択し
ても、スイッチが存在しなお且つONした時にHiと認
識される電圧になるため問題ない。尚、Hiと認識され
る範囲でもLoと認識される範囲でもない領域は、マイ
コンのバラつきなどの要因でHiと認識されることも有
り得るので、実際にはLoと認識される範囲を目標電圧
とするのが安全である。例えば図4のように電源電圧
(Vcc)を5ボルト、ダミー抵抗17を100kΩ、
プルダウン抵抗18を10kΩとした場合、それらの分
圧からアナログ入力ポート及びスイッチ入力ポートに入
力される電圧は約0.45ボルトとなり、スイッチ入力
ポート6はLoと認識し、アナログ入力ポート7はスイ
ッチ(9又は10)がOFFの時の電圧である0ボルト
より大きいためダミー抵抗であると認識される。
FIG. 3 shows the concept of determining the voltage setting of the analog input port 7 of the microcomputer 2 by the dummy resistor 14. Since the input of the switch (9 or 10) to be replaced with the dummy resistor 14 is performed at the switch input port 6, which is a normal input port, it is necessary to set the dummy resistor 14 so that this port is not recognized as at least Hi. The microcomputer has a certain range for the voltage recognized as Hi or Lo. However, even if a resistance value recognized as Lo is selected, the voltage that is recognized as Hi when the switch is present and turned on when the switch is present is turned on. No problem. Note that an area that is neither Hi nor Lo recognized may be recognized as Hi due to variations in microcomputers, so that the range actually recognized as Lo is the target voltage. It is safe to do. For example, as shown in FIG. 4, the power supply voltage (Vcc) is 5 volts, the dummy resistor 17 is 100 kΩ,
When the pull-down resistor 18 is set to 10 kΩ, the voltage inputted to the analog input port and the switch input port becomes about 0.45 volts from the divided voltage, the switch input port 6 is recognized as Lo, and the analog input port 7 is switched to the switch. Since (9 or 10) is larger than 0 volt which is the voltage at the time of OFF, it is recognized as a dummy resistor.

【0011】[0011]

【発明の効果】本発明は上記構成により次の効果を発揮
する。請求項1では、不要のスイッチをダミー抵抗に置
き換えるため配線や基板の面積など冗長に設計する必要
が無いため、コスト上昇なしに制御装置の複数機種によ
る共用ができ、製造や販売における管理が簡略化され
る。
According to the present invention, the following effects are exhibited by the above configuration. According to the first aspect of the present invention, since unnecessary switches are replaced with dummy resistors, there is no need to design redundantly such as wiring and board area, so that a plurality of models of control devices can be shared without increasing costs, and management in manufacturing and sales is simplified. Be transformed into

【0012】請求項2では、ダミー抵抗に置き換えるス
イッチを増やすことにより、共用できる制御装置の機種
数を増やすことができる。置き換えるスイッチの数をn
個とすると、共用できる機種数は最大2のn乗となる。
According to the second aspect of the present invention, the number of switches that can be shared can be increased by increasing the number of switches replaced with dummy resistors. The number of switches to be replaced is n
If the number is limited to 2, the maximum number of models that can be shared is 2 to the nth power.

【0013】請求項3では、一般にマイコンのプログラ
ムにおいて、アナログの入力は通常の入力より煩雑であ
るところを、いったん機種がアナログ入力にて決定した
後は、通常の入力ポートを使用できるためプログラムが
簡略化し、ひいてはプログラムのスピードが増し、他の
処理に余裕が発生する。
According to the third aspect, generally, in a microcomputer program, analog input is more complicated than normal input, but once a model is determined by analog input, a normal input port can be used. It simplifies and eventually increases the speed of the program, leaving room for other processing.

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

【図1】 本発明における概略回路図である。FIG. 1 is a schematic circuit diagram of the present invention.

【図2】 本発明のスイッチとダミー抵抗による機種分
けを示す表の例である。
FIG. 2 is an example of a table showing models classified by switches and dummy resistors according to the present invention.

【図3】 本発明のダミー抵抗の設定の考え方を示す概
略図である。
FIG. 3 is a schematic diagram showing a concept of setting a dummy resistor according to the present invention.

【図4】 本発明のダミー抵抗の求め方を示す回路図で
ある。
FIG. 4 is a circuit diagram showing a method for obtaining a dummy resistor according to the present invention.

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

2…マイコン、5…プルダウン抵抗、6…スイッチ入力
ポート、7…アナログ入力ポート、9〜12…スイッ
チ、14…ダミー抵抗、15〜16…スイッチ、17…
ダミー抵抗(100kΩ)、18…プルダウン抵抗(1
0kΩ)
2 microcomputer, 5 pull-down resistor, 6 switch input port, 7 analog input port, 9-12 switch, 14 dummy resistor, 15-16 switch, 17
Dummy resistance (100 kΩ), 18 ... pull-down resistance (1
0kΩ)

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の機種の制御プログラムを内蔵
し、少なくとも一つ以上のアナログ入力ポートを持つマ
イコンと、複数のスイッチと、前記複数のスイッチのう
ち機種によって欠落するスイッチの代わりに搭載される
スイッチのオン抵抗値よりも大きい抵抗値を持つダミー
抵抗とスイッチ又はダミー抵抗とマイコンとを接続する
配線の間にGNDと接続するプルダウン抵抗からなる電
気制御装置において、ダミー抵抗又はスイッチとプルダ
ウン抵抗により分圧される電圧をマイコンがアナログポ
ートにて読み込み、その電圧から機種を判別し、該当す
る制御プログラムを選択することを特徴とする電気制御
装置。
1. A microcomputer having control programs of a plurality of models and having at least one or more analog input ports, a plurality of switches, and a plurality of switches mounted in place of switches which are missing depending on the model. In an electric control device including a pull-down resistor connected to GND between a dummy resistor having a resistance value larger than the on-resistance value of the switch and a wire connecting the switch or the dummy resistor and the microcomputer, the dummy resistor or the switch and the pull-down resistor are used. An electric control device wherein a microcomputer reads a voltage to be divided by an analog port, determines a model from the voltage, and selects a corresponding control program.
【請求項2】 請求項1における電気制御装置におい
て、前記複数のスイッチは3個以上を有し、内2個以上
のスイッチがダミー抵抗に置き換えられたことを特徴と
する電気制御装置。
2. The electric control device according to claim 1, wherein the plurality of switches have three or more switches, and two or more switches are replaced with dummy resistors.
【請求項3】 請求項1における電気制御装置におい
て、前記スイッチはアナログ入力ポートとデジタル入力
ポートが電気的に並列に接続されていることを特徴とす
る電気制御装置。
3. The electric control device according to claim 1, wherein the switch has an analog input port and a digital input port electrically connected in parallel.
JP2001082353A 2001-03-22 2001-03-22 Electric apparatus controller Pending JP2002278763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001082353A JP2002278763A (en) 2001-03-22 2001-03-22 Electric apparatus controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001082353A JP2002278763A (en) 2001-03-22 2001-03-22 Electric apparatus controller

Publications (1)

Publication Number Publication Date
JP2002278763A true JP2002278763A (en) 2002-09-27

Family

ID=18938309

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001082353A Pending JP2002278763A (en) 2001-03-22 2001-03-22 Electric apparatus controller

Country Status (1)

Country Link
JP (1) JP2002278763A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009101716A (en) * 2007-10-19 2009-05-14 Honda Motor Co Ltd Outboard motor control apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009101716A (en) * 2007-10-19 2009-05-14 Honda Motor Co Ltd Outboard motor control apparatus
US8229608B2 (en) 2007-10-19 2012-07-24 Honda Motor Co., Ltd. Outboard motor control apparatus

Similar Documents

Publication Publication Date Title
JPS60123901A (en) Circuit apparatus with microcomputer
JP2002278763A (en) Electric apparatus controller
US6944831B1 (en) Operator buttons as active buttons
JP2000075936A (en) Heater controller
JP2004166201A (en) Electronic circuit configuration or electronic circuit having a plurality of selectable functions or states
JP4584518B2 (en) Method and apparatus for selecting different functions to be realized at the connection end of the control unit
JPS62155439A (en) Control device for gas instrument or the like
JP4304964B2 (en) Semiconductor circuit device and semiconductor circuit device inspection device
JPS61173309A (en) Digital controlling device
JPH1118172A (en) Machine-kind setting method in remote controller
JPH07181885A (en) Controller
KR100539218B1 (en) Spindle motor drive starting device and method
JP4149586B2 (en) Load drive device
JP2578690B2 (en) Motor control circuit
JP2778768B2 (en) Washing machine control device
JPS62234898A (en) Electronic device
JP3249176B2 (en) Inverter control device
JPH0152030B2 (en)
JPH10187476A (en) Test mode switching method for electric equipment
JPH04361303A (en) Sequencer input method
JPH0648017U (en) External power supply automatic recognition processor for I / O boards
JP2003154187A (en) Washing machine having dc brushless motor
JPH06167362A (en) Master-slave switching type measuring instrument
JPH08288460A (en) Externally controllable bonding method for semiconductor device
JPH01194713A (en) Semiconductor integrated circuit device