JPS6349920A - Switch input device - Google Patents
Switch input deviceInfo
- Publication number
- JPS6349920A JPS6349920A JP61194443A JP19444386A JPS6349920A JP S6349920 A JPS6349920 A JP S6349920A JP 61194443 A JP61194443 A JP 61194443A JP 19444386 A JP19444386 A JP 19444386A JP S6349920 A JPS6349920 A JP S6349920A
- Authority
- JP
- Japan
- Prior art keywords
- comparator
- switch
- microcomputer
- capacitor
- time constant
- 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
Links
- 239000003990 capacitor Substances 0.000 claims abstract description 14
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 235000001537 Ribes X gardonianum Nutrition 0.000 description 1
- 235000001535 Ribes X utile Nutrition 0.000 description 1
- 235000016919 Ribes petraeum Nutrition 0.000 description 1
- 244000281247 Ribes rubrum Species 0.000 description 1
- 235000002355 Ribes spicatum Nutrition 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、空気調和機などのスイッチ入力装置に関する
ものである。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a switch input device for an air conditioner or the like.
従来の技術
従来、たとえばスイッチ入力装置は、第2図に示すよう
にマイクロコンピュータ−(以後マイコンと称す)18
から出力ポート17を通してスキャン信号を出力し、出
力ポート1了に接続されている機器制御用の各スイッチ
19のそれぞれの○N、OFFの状態をマイコン16側
に対して前記各スイッチの数に対応した数本の入力ボー
ト18に伝達され、スイッチ入力データとして処理され
ていた。2. Description of the Related Art Conventionally, for example, a switch input device uses a microcomputer (hereinafter referred to as a microcomputer) 18 as shown in FIG.
outputs a scan signal through the output port 17, and displays the ○N and OFF states of each device control switch 19 connected to the output port 1 on the microcomputer 16 side, corresponding to the number of each switch. The data is transmitted to several input ports 18 and processed as switch input data.
発明が解決しようとする問題点
このような従来の構成では、空気調和機の圧縮機、四方
弁、電磁弁等、スイッチ入力数が多くなればなるほどマ
イコンの入出力ポート18の本数およびソフトが増加し
、これによりコストアップおよび基板が大型化するとい
う問題点があった。Problems to be Solved by the Invention In such a conventional configuration, as the number of switch inputs increases, such as in the air conditioner compressor, four-way valve, solenoid valve, etc., the number of input/output ports 18 of the microcomputer and the software increase. However, this has resulted in problems such as increased cost and increased size of the substrate.
本発明は、上記従来の問題点を解決するもので少ないマ
イコンの入出力ポートで多くのスイッチ入力を接続でき
るようにすることを目的とする。The present invention solves the above-mentioned conventional problems and aims to enable connection of many switch inputs with a small number of input/output ports of a microcomputer.
問題点を解決するための手段
この問題点を解決するために本発明は、マイクロコンピ
ューター側の出力ポートに増幅器を介して接続された空
気調和機の機器制御用となる各スイッチと、この各スイ
ッチと比較器のプラス側に接続した各抵抗器の合成抵抗
値によって時定数を定めるコンデンサーと、前記出力ポ
ートに設けた増幅器側に接続される放電用のダイオード
と、■CC電圧を分電した基準電圧を前記比較器のマイ
ナス側に接続し前記マイクロコンピュータ−側に入力す
る回路とを備えたものである。Means for Solving the Problem In order to solve this problem, the present invention provides switches for controlling air conditioner equipment connected to an output port on the microcomputer side via an amplifier, and each switch for controlling the air conditioner. A capacitor that determines the time constant based on the combined resistance value of each resistor connected to the positive side of the comparator, a discharge diode connected to the amplifier side provided at the output port, and a standard that divides the CC voltage. and a circuit that connects a voltage to the negative side of the comparator and inputs it to the microcomputer side.
作 用
この構成により、マイコンが出力ポートへHレベルの信
号を出力したときから、出力ポートに接続されている抵
抗器とコンデンサーの時定数による充電電圧を比較器で
基準電圧と比較し、充電電圧の方が大きくなったら比較
器の出力が反転し、この充電電圧になるときまでの時間
をマイコンが積算し、この時間でスイッチ入力の判別を
マイコンで行うこととなる。Effect With this configuration, from the time the microcontroller outputs an H level signal to the output port, the comparator compares the charging voltage due to the time constant of the resistor and capacitor connected to the output port with the reference voltage, and calculates the charging voltage. When becomes larger, the output of the comparator is inverted, and the microcomputer integrates the time until this charging voltage is reached, and the microcomputer uses this time to determine the switch input.
実施例
以下本発明による一実施例を第1図にもとづいて説明す
る。1はマイク凸コンピューター(以後マイコンと称す
)であり、その出力ポート2に増幅作用全行なう増幅器
4を接続し、この増・1器4の出力側と比較器5のプラ
ス側間に空調機の機器を制御する運転・停止、また四方
弁等の操作用となるスイッチ6.8.10と、時定数を
定めるための抵抗器7,9.11の直列回路およびダイ
オード12を接続し、比較器6はマイコン1の入力ポー
ト3に接続されている。前記比較器6のマイナス側には
vccを抵抗13.14で分圧してなる基準電圧が加え
られている。前記比較器6のプラス側とGND間にはコ
ンデンサ16が接続されておシ、各スイッチ6.8.1
0のON [、ている数によって時定数が定められるよ
うになっている。EXAMPLE An example of the present invention will be described below with reference to FIG. Reference numeral 1 designates a microphone convex computer (hereinafter referred to as a microcomputer), and an amplifier 4 that performs all amplification is connected to its output port 2, and an air conditioner is connected between the output side of the amplifier 4 and the positive side of the comparator 5. Connect a switch 6.8.10 for starting/stopping the equipment and operating a four-way valve, etc., a series circuit of resistors 7 and 9.11 and a diode 12 for determining the time constant, and a comparator. 6 is connected to the input port 3 of the microcomputer 1. A reference voltage obtained by dividing vcc by resistors 13 and 14 is applied to the negative side of the comparator 6. A capacitor 16 is connected between the positive side of the comparator 6 and GND, and each switch 6.8.1
The time constant is determined by the number of ON [, 0].
なお、ダイオード12はマイコン1からの出力ポート2
よりLレベルが出力されたときに前記コンデンサー12
に充電されていた電荷が増幅器4側に放電されるように
機能するようになっている。Note that the diode 12 is connected to the output port 2 from the microcomputer 1.
When the L level is output from the capacitor 12
The function is such that the electric charge that has been charged in the amplifier 4 is discharged to the amplifier 4 side.
上記構成において、仮に、マイコン1からの出力ポート
2にLレベルが出力され、増幅器4を通してもLレベル
になる場合は、コンデンサー16に充電されていた電荷
はダイオード12を介して急速に放電されてコンデンサ
ー16のGNDと比較器6のプラス側間が0電圧となる
。次にマイコン1から出力ボート2全通してHレベルを
出力した場合は、この出力を増幅器4で受けてHレベル
を出力し、このHレベルの出力状態において、前記各ス
イッチ6.8.10のそれぞれが0NiOFFかの状態
に応じて抵抗器7,9.11の抵抗値が変化し、合成抵
抗が変化することになる。たとえばスイッチ6とスイッ
チ1oがONの状態の場合、抵抗器7と抵抗器11の合
成抵抗となシ、これら2つの抵抗器7,11とコンデン
サー15との間において時定数が定められるとともにコ
ンデンサー16に充電される時間が変化し、この充電さ
れた充電電圧が比較器6のプラス側に入力され、このと
きまでの時間をマイコン1がカウントしている。一方、
抵抗器13と抵抗器14とによる分電電圧の基準電圧を
比較器5のマイナス側に入力してこの比較器6で前記充
電電圧と比較し、充電電圧が分電電圧側の基準電圧が大
きくなると比較器6の出力が反転し、入力ポート3に、
通してマイコン1に伝達されると同時に時間のカラント
ラ止める。このカウント値からスイッチ6.8.10の
間のどのスイッチがONか、OFFかをマイコン1が判
別するものである。In the above configuration, if an L level is output from the microcomputer 1 to the output port 2, and the amplifier 4 also outputs an L level, the charge stored in the capacitor 16 will be rapidly discharged via the diode 12. The voltage between the GND of the capacitor 16 and the positive side of the comparator 6 becomes 0. Next, when the microcomputer 1 outputs an H level through all of the output ports 2, this output is received by the amplifier 4 and outputs an H level, and in this H level output state, each of the switches 6.8.10. The resistance values of the resistors 7 and 9.11 change depending on whether they are 0NiOFF or not, and the combined resistance changes. For example, when switch 6 and switch 1o are in the ON state, the combined resistance of resistor 7 and resistor 11 is determined, and a time constant is determined between these two resistors 7 and 11 and capacitor 15. The charging time changes, this charging voltage is input to the positive side of the comparator 6, and the microcomputer 1 counts the time up to this point. on the other hand,
The reference voltage of the distribution voltage generated by the resistor 13 and the resistor 14 is input to the negative side of the comparator 5 and compared with the charging voltage by the comparator 6. Then, the output of comparator 6 is inverted, and input port 3 becomes
At the same time as the signal is transmitted to the microcomputer 1 through the signal, the time currant stops. Based on this count value, the microcomputer 1 determines which switch among the switches 6, 8, and 10 is ON or OFF.
発明の効果
前記実施例の説明より明らかなように本発明は、各スイ
ッチに接続された抵抗器と、GND側に接続されたコン
デンサーを設けて前記各スイッチがONとなる数により
、コンデンサーの時定数が定められ、この時定数を利用
して充電させるようにしたものであるから、スイッチの
数が多くなってもマイコンの入力ポートと、出力ポート
は各1本ですむことになシ、回路、ソフトも簡単に構成
でき、コストも安価となるという効果が得られるもので
ある。Effects of the Invention As is clear from the description of the embodiments described above, the present invention provides a resistor connected to each switch and a capacitor connected to the GND side. Since a constant is determined and this time constant is used to charge the battery, even if the number of switches increases, the microcontroller only needs one input port and one output port. , the software can be easily configured and the cost can be reduced.
第1図は本発明の一実施例による空気調和機のスイッチ
入力装置の回路図、第2図は従来の空気調和機のスイッ
チ入力装置の回路図である。
1・・・・・・マイクロコンピュータ−14・・・・・
・増幅器、6・・・・・・比較器、6,8.10・・山
・スイッチ、7゜9.11・・・・・・抵抗器、12・
・・・・・ダイオード。FIG. 1 is a circuit diagram of a switch input device for an air conditioner according to an embodiment of the present invention, and FIG. 2 is a circuit diagram of a conventional switch input device for an air conditioner. 1...Microcomputer-14...
・Amplifier, 6... Comparator, 6, 8.10... Mountain switch, 7°9.11... Resistor, 12.
·····diode.
Claims (1)
して接続された空気調和機の機器制御用となる各スイッ
チと、この各スイッチと比較器のプラス側に接続した各
抵抗器と、前記各抵抗器とGND側との間に接続され前
記各抵抗器の合成抵抗値によって時定数を定めるコンデ
ンサーと、前記出力ポートに設けた増幅器側に接続され
る放電用のダイオードと、V_c_c電圧を分電した基
準電圧を前記比較器のマイナス側に接続し、前記マイク
ロコンピューター側に入力する回路とを備えてなるスイ
ッチ入力装置。Each switch for controlling the air conditioner is connected to the output port of the microcomputer via an amplifier, each resistor is connected to the positive side of the comparator, and each of the resistors is connected to the positive side of the comparator. A capacitor connected between the GND side and determining the time constant based on the combined resistance value of each of the resistors, a discharge diode connected to the amplifier side provided at the output port, and a reference voltage obtained by dividing the V_c_c voltage. A switch input device comprising: a circuit connected to the negative side of the comparator and input to the microcomputer side.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61194443A JPS6349920A (en) | 1986-08-20 | 1986-08-20 | Switch input device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61194443A JPS6349920A (en) | 1986-08-20 | 1986-08-20 | Switch input device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6349920A true JPS6349920A (en) | 1988-03-02 |
Family
ID=16324664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61194443A Pending JPS6349920A (en) | 1986-08-20 | 1986-08-20 | Switch input device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6349920A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5576362A (en) * | 1992-04-20 | 1996-11-19 | Denki Kagaku Kogyo Kabushiki Kaisha | Insulating material and a circuit substrate in use thereof |
JP2008273006A (en) * | 2007-04-27 | 2008-11-13 | Seiko Epson Corp | Material removing apparatus and material removing method |
-
1986
- 1986-08-20 JP JP61194443A patent/JPS6349920A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5576362A (en) * | 1992-04-20 | 1996-11-19 | Denki Kagaku Kogyo Kabushiki Kaisha | Insulating material and a circuit substrate in use thereof |
JP2008273006A (en) * | 2007-04-27 | 2008-11-13 | Seiko Epson Corp | Material removing apparatus and material removing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5519563A (en) | Protection circuit for electric cells from overcharge and overdischarge using a plurality of detection units of a single chip type | |
US4496886A (en) | Three state driver for inductive loads | |
JP2002325364A (en) | Charge/discharge control equipment | |
JP3157127B2 (en) | Charge / discharge control circuit with charge / discharge current detection function and rechargeable power supply | |
JP3195555B2 (en) | Charge / discharge control circuit | |
JPH11318034A (en) | Charge-discharge control circuit and rechargeable power supply | |
JP2000184609A (en) | Capacity leveling circuit of group battery | |
JPS6349920A (en) | Switch input device | |
US5144514A (en) | Transistor device drive circuit | |
JP3278487B2 (en) | Rechargeable power supply | |
JPH10257799A (en) | Output open-circuiting detection device of multichannel output device | |
JP3197426B2 (en) | Charging device | |
JP3197428B2 (en) | Charging device | |
JPH08186944A (en) | Charging apparatus | |
JP4147884B2 (en) | Abnormality detection device for battery pack | |
JP2741139B2 (en) | Battery charging circuit | |
JPH1189099A (en) | Charge/discharge control circuit | |
KR960013950B1 (en) | Constant current discharge circuit for a condensor | |
JPS602675Y2 (en) | discharge timer device | |
JPH0327425A (en) | Input discrimination system by micro computer | |
JPS6115418A (en) | Electric circuit device | |
JP2000188828A (en) | Capacitor discharge circuit | |
JP2001092538A (en) | Ac voltage input device | |
JPH0731298Y2 (en) | Power supply circuit | |
JPH06347570A (en) | Time/voltage converting and track holding circuit |