JP5068287B2 - Switch input device - Google Patents

Switch input device Download PDF

Info

Publication number
JP5068287B2
JP5068287B2 JP2009184701A JP2009184701A JP5068287B2 JP 5068287 B2 JP5068287 B2 JP 5068287B2 JP 2009184701 A JP2009184701 A JP 2009184701A JP 2009184701 A JP2009184701 A JP 2009184701A JP 5068287 B2 JP5068287 B2 JP 5068287B2
Authority
JP
Japan
Prior art keywords
scanning
switch
voltage
switch input
terminal
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
Application number
JP2009184701A
Other languages
Japanese (ja)
Other versions
JP2011038833A (en
Inventor
和也 広田
佳孝 伊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rinnai Corp
Original Assignee
Rinnai 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 Rinnai Corp filed Critical Rinnai Corp
Priority to JP2009184701A priority Critical patent/JP5068287B2/en
Publication of JP2011038833A publication Critical patent/JP2011038833A/en
Application granted granted Critical
Publication of JP5068287B2 publication Critical patent/JP5068287B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Keying Circuit Devices (AREA)
  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)

Description

本発明は、複数のスイッチの操作状況を省配線回路を用いて検知するスイッチ入力装置に関する。   The present invention relates to a switch input device that detects operation states of a plurality of switches using a wiring-saving circuit.

従来より、複数のスイッチとLEDを備えたリモコン等において、各スイッチ及びLEDとマイクロコンピュータ間の接続を、複数の走査ラインによりマトリクス状に接続した省配線回路を用いて行い、複数のスイッチの開閉状態の検知とLEDの点灯/消灯の制御を、複数の走査ラインへの走査電圧の出力を切り換えて時分割で行うようにしたものが知られている。   Conventionally, in a remote control equipped with a plurality of switches and LEDs, the connection between each switch and the LEDs and the microcomputer is performed using a wiring-saving circuit connected in a matrix by a plurality of scanning lines, and the plurality of switches are opened and closed. It is known that state detection and LED on / off control are performed in a time-sharing manner by switching scanning voltage output to a plurality of scanning lines.

そして、省配線回路の異常を検出するため、各スイッチに直列に接続されたダイオード(他のスイッチからの電流の回り込みを防ぐためのダイオード)の異常を検出する回路と、スイッチの閉成に応じてONするリレーの異常を検出する回路とを備えた構成が提案されている(例えば、特許文献1参照)。   In order to detect abnormalities in the wiring-saving circuit, a circuit that detects an abnormality in a diode connected in series with each switch (a diode for preventing current from flowing in from other switches), and depending on the closure of the switch A configuration including a circuit that detects an abnormality of a relay that is turned on has been proposed (for example, see Patent Document 1).

特開平7−270470号公報JP 7-270470 A

上記特許文献1に記載された構成では、異常を検出する回路の出力をマイクロコンピュータに入力して異常を検知するために、マイクロコンピュータで使用される入力点数が多くなるという不都合がある。   The configuration described in Patent Document 1 has a disadvantage that the number of input points used in the microcomputer increases because the output of the circuit for detecting the abnormality is input to the microcomputer to detect the abnormality.

そこで、本発明は、使用される入力点数を抑えて、異常を検出することができるスイッチ入力装置を提供することを目的とする。   Accordingly, an object of the present invention is to provide a switch input device that can detect an abnormality while suppressing the number of input points to be used.

本発明は上記目的を達成するためになされたものであり、第1端子及び第2端子と、該第1端子と該第2端子間を導通状態と遮断状態とに切り換える接点とを有する複数のスイッチと、前記複数のスイッチの第1端子と個別に接続された前記複数のスイッチの個数分のスイッチ走査ラインと、前記スイッチ走査ラインを所定順序で一つずつ選択して、選択したスイッチ走査ラインに、所定の走査電圧を所定時間出力する走査処理を実行する走査手段と、前記複数のスイッチの各第2端子と接続されたスイッチ入力ラインと、前記スイッチ入力ラインに、前記走査電圧に応じた電圧が出力されているか否かを検出するスイッチ入力回路と、前記複数の各スイッチについて、第1端子に接続された前記スイッチ走査ラインに前記走査電圧が出力されているときに、前記スイッチ入力回路により前記スイッチ入力ラインに前記走査電圧に応じた電圧が出力されていることが検出されたときは、接点が導通状態であると検知し、前記スイッチ入力回路により前記スイッチ入力ラインに前記走査電圧に応じた電圧が出力されていることが検出されなかったときには、接点が遮断状態にあると検知するスイッチ状態検知手段とを備えたスイッチ入力装置に関する。   The present invention has been made to achieve the above object, and includes a plurality of first terminals and second terminals, and a plurality of contacts for switching between the first terminal and the second terminal between a conductive state and a cut-off state. The switch scanning lines corresponding to the number of the plurality of switches individually connected to the switches, the first terminals of the plurality of switches, and the switch scanning lines are selected one by one in a predetermined order, and the selected switch scanning lines A scanning means for executing a scanning process for outputting a predetermined scanning voltage for a predetermined time; a switch input line connected to each second terminal of the plurality of switches; and the switch input line corresponding to the scanning voltage. A switch input circuit for detecting whether or not a voltage is output; and for each of the plurality of switches, the scan voltage is output to the switch scan line connected to a first terminal. When the switch input circuit detects that the voltage corresponding to the scanning voltage is output to the switch input line, the switch input circuit detects that the contact is in a conductive state, and the switch input circuit The present invention relates to a switch input device including switch state detection means for detecting that a contact is in a cut-off state when it is not detected that a voltage corresponding to the scanning voltage is output to the switch input line.

そして、前記スイッチ入力ラインと接続された異常検知走査ラインを備え、前記走査手段は、前記複数のスイッチの個数分の前記スイッチ走査ライン及び前記異常検知走査ラインからなる複数の走査ラインに対して、該走査ラインを所定順序で一つずつ選択して、選択した走査ラインに前記走査電圧を前記所定時間出力すると共に、いずれの走査ラインにも前記走査電圧を出力しない走査オフ期間を設けて前記走査処理を行い、前記異常検知走査ラインに前記走査電圧が出力されているときに、前記スイッチ入力回路により、前記スイッチ入力ラインに前記走査電圧に応じた電圧が出力されていないことが検出されたとき、及び、前記走査オフ期間において、前記スイッチ入力回路により、前記スイッチ入力ラインに前記走査電圧に応じた電圧が出力されていることが検出されたときに、前記装置が異常状態であると検知する異常検知手段を備えたことを特徴とする。   And an abnormality detection scanning line connected to the switch input line, the scanning means for a plurality of scanning lines composed of the switch scanning lines and the abnormality detection scanning lines corresponding to the number of the plurality of switches, The scanning lines are selected one by one in a predetermined order, the scanning voltage is output to the selected scanning lines for the predetermined time, and the scanning off period during which the scanning voltage is not output to any scanning line is provided. When the scanning voltage is output to the abnormality detection scanning line, and the switch input circuit detects that the voltage corresponding to the scanning voltage is not output to the switch input line. In the scan-off period, the switch input circuit applies power corresponding to the scan voltage to the switch input line. There when it is detected that has been output, characterized in that the device is provided with abnormality detection means for detecting as an abnormal state.

かかる本発明によれば、前記走査処理により前記異常検知ラインに前記走査電圧が出力されているときに、前記走査手段と前記スイッチ走査ラインと前記スイッチ入力ラインと前記スイッチ入力回路とが全て正常であれば、前記スイッチ入力ラインに前記走査電圧に応じた電圧が出力されて、この電圧の出力が前記スイッチ入力回路で検出される。そのため、前記異常検知手段は、前記走査処理により前記異常検知ラインに前記走査電圧が出力されているときに、前記スイッチ入力回路により、前記スイッチ入力ラインに前記走査電圧に応じた電圧が出力されていることが検出されなかったときには、前記装置が異常状態であると検知することができる。   According to the present invention, when the scanning voltage is output to the abnormality detection line by the scanning process, the scanning unit, the switch scanning line, the switch input line, and the switch input circuit are all normal. If there is, a voltage corresponding to the scanning voltage is output to the switch input line, and the output of this voltage is detected by the switch input circuit. Therefore, when the scanning voltage is output to the abnormality detection line by the scanning process, the abnormality detection means outputs a voltage corresponding to the scanning voltage to the switch input line by the switch input circuit. When it is not detected that the device is detected, it can be detected that the device is in an abnormal state.

また、前記走査処理により前記走査オフ期間とされているときに、前記走査手段と前記スイッチ走査ラインと前記スイッチ入力ラインと前記スイッチ入力回路とが全て正常に動作していれば、前記スイッチ入力ラインには前記走査電圧が出力されないため、前記スイッチ入力回路により前記走査電圧に応じた電圧は検出されない。そのため、前記異常検知手段は、前記走査処理により前記オフ期間とされているときに、前記スイッチ入力回路により前記走査電圧に応じた電圧が検出されたときには、前記装置が異常状態であると検知することができる。   If the scanning means, the switch scanning line, the switch input line, and the switch input circuit are all normally operating when the scanning process is in the scanning off period, the switch input line Since the scanning voltage is not output, the switch input circuit does not detect a voltage corresponding to the scanning voltage. Therefore, the abnormality detecting means detects that the device is in an abnormal state when the switch input circuit detects a voltage corresponding to the scanning voltage when the scanning process is in the off period. be able to.

そして、このように、前記装置の異常を検出するために必要となる入力は、前記スイッチ入力回路の検出出力を入力するためのもののみであり、この入力は、前記スイッチ状態検知手段と前記異常検知手段とで共用される。そのため、本発明によれば、使用される入力点数の増加を抑制して、前記装置の異常を検知することができる。   As described above, the input necessary for detecting the abnormality of the device is only for inputting the detection output of the switch input circuit, and this input includes the switch state detection means and the abnormality. Shared with detection means. Therefore, according to the present invention, it is possible to detect an abnormality of the device while suppressing an increase in the number of input points used.

また、第1端子及び第2端子を有して、該第1端子と該第2端子間に所定電圧が印加されたときに点灯状態となり、第1端子が前記複数の走査ラインのいずれかに接続された複数の点灯素子と、前記複数の点灯素子の第2端子と接続されたデータラインと、前記複数の各点灯素子に対して、第1端子に接続された前記走査ラインに前記走査電圧が出力されているときに、第2端子に接続された前記データラインに、第1端子と第2端子間に前記所定電圧を生じさせる駆動電圧を出力するか否かによって、点灯状態と消灯状態とを切り換える点灯駆動手段とを備え、前記走査手段は、前記走査オフ期間を前記所定時間よりも短くして、前記走査処理を実行することを特徴とする。   In addition, a first terminal and a second terminal are provided, and a lighting state is obtained when a predetermined voltage is applied between the first terminal and the second terminal, and the first terminal is set to one of the plurality of scanning lines. A plurality of connected lighting elements; a data line connected to a second terminal of the plurality of lighting elements; and the scanning voltage connected to the first terminal for each of the plurality of lighting elements. Is output to the data line connected to the second terminal depending on whether or not to output a drive voltage that generates the predetermined voltage between the first terminal and the second terminal. Lighting driving means for switching between and the scanning means, wherein the scanning means executes the scanning process with the scanning off period shorter than the predetermined time.

かかる本発明によれば、前記走査手段により、前記走査オフ期間を前記所定時間よりも短くして、前記走査処理を実行することによって、時分割駆動される前記点灯素子の点灯間隔を短くすることができる。そのため、前記点灯素子を点灯させるときのちらつきを抑制して、前記走査オフ期間を設定することができる。   According to the present invention, the scanning means shortens the lighting interval of the lighting elements that are time-division driven by executing the scanning process with the scanning off period shorter than the predetermined time. Can do. Therefore, the scanning off period can be set while suppressing flickering when the lighting element is turned on.

本発明のスイッチ入力装置の構成図。The block diagram of the switch input device of this invention. スイッチの状態検知のタイミングを示した説明図。Explanatory drawing which showed the timing of the state detection of a switch. LEDの点灯/消灯制御のタイミングを示した説明図。Explanatory drawing which showed the timing of LED on / off control.

本発明の実施の形態について、図1〜図3を参照して説明する。本実施形態のスイッチ入力装置は、例えば、ガスファンヒータの操作部に使用されるものであり、複数のスイッチの入力処理と複数のLEDの点灯/消灯の処理を行う。   Embodiments of the present invention will be described with reference to FIGS. The switch input device of the present embodiment is used, for example, in an operation unit of a gas fan heater, and performs a plurality of switch input processes and a plurality of LED on / off processes.

図1を参照して、スイッチ入力装置は、制御基板1、及び制御基板1と接続された操作基板2から構成されている。制御基板1は、マイクロコンピュータ10(以下、マイコン10という)、マイコン10の出力ポートP10〜P13とデータラインSEG1〜SEG4との間に抵抗110〜113を介して接続された駆動素子20〜23、マイコン10の出力ポートP20〜P27と走査ラインCOM0〜COM7との間に接続された駆動素子30〜37、及び、マイコン10の入力ポートP30とスイッチ入力ラインSWinとの間に接続されたスイッチ入力回路4を備えている。   Referring to FIG. 1, the switch input device includes a control board 1 and an operation board 2 connected to the control board 1. The control board 1 includes a microcomputer 10 (hereinafter referred to as a microcomputer 10), drive elements 20 to 23 connected via resistors 110 to 113 between output ports P10 to P13 of the microcomputer 10 and data lines SEG1 to SEG4, Drive elements 30 to 37 connected between the output ports P20 to P27 of the microcomputer 10 and the scanning lines COM0 to COM7, and a switch input circuit connected between the input port P30 of the microcomputer 10 and the switch input line SWin. 4 is provided.

操作基板2は、データラインSEG1〜SEG4と走査ラインCOM0〜COM7との間に、アノードをデータラインSEG1〜SEG4側として接続された32個のLED60〜67,70〜77,80〜87,90〜97、走査ラインCOM0とスイッチ入力ラインSWinとの間に、アノードをスイッチ入力ラインSWin側として接続されたダイオード107、走査ラインCOM1〜COM6との間にダイオード100〜105を介して接続された第1スイッチ50〜第6スイッチ55、及び走査ラインCOM7と第2スイッチ51の第1端子C1との間に、アノードを第2スイッチ51側にして接続されたダイオード106を備えている。   The operation board 2 includes 32 LEDs 60 to 67, 70 to 77, 80 to 87, 90 to which the anodes are connected between the data lines SEG1 to SEG4 and the scanning lines COM0 to COM7 with the anodes on the data lines SEG1 to SEG4 side. 97, a first diode connected between the scan line COM0 and the switch input line SWin, the diode 107 having the anode as the switch input line SWin side, and the scan lines COM1 to COM6 via the diodes 100 to 105. Between the switch 50 to the sixth switch 55, and between the scanning line COM7 and the first terminal C1 of the second switch 51, there is provided a diode 106 connected with the anode on the second switch 51 side.

第1スイッチ50の第1端子C1は、ダイオード100を介して走査ラインCOM1に接続されている。第2スイッチ51の第1端子C1は、ダイオード101を介して走査ラインCOM2に接続されている。第3スイッチ52の第1端子C1は、ダイオード102を介して走査ラインCOM3に接続されている。第4スイッチ53の第1端子C1は、ダイオード103を介して走査ラインCOM4に接続されている。第5スイッチ54の第1端子C1は、ダイオード104を介して走査ラインCOM5に接続されている。第6スイッチ55の第1端子C1は、ダイオード105を介して走査ラインCOM6に接続されている。   The first terminal C 1 of the first switch 50 is connected to the scanning line COM 1 via the diode 100. The first terminal C 1 of the second switch 51 is connected to the scanning line COM 2 via the diode 101. The first terminal C 1 of the third switch 52 is connected to the scanning line COM 3 via the diode 102. The first terminal C 1 of the fourth switch 53 is connected to the scanning line COM 4 via the diode 103. The first terminal C 1 of the fifth switch 54 is connected to the scanning line COM 5 via the diode 104. The first terminal C 1 of the sixth switch 55 is connected to the scan line COM 6 via the diode 105.

また、第1スイッチ50〜第6スイッチ55の第2端子C2は、いずれもスイッチ入力ラインSWinに接続されている。   The second terminals C2 of the first switch 50 to the sixth switch 55 are all connected to the switch input line SWin.

なお、走査ラインCOM1〜COM6は本発明のスイッチ走査ラインに相当し、走査ラインCOM0は本発明の異常検知走査ラインに相当する。   The scanning lines COM1 to COM6 correspond to the switch scanning lines of the present invention, and the scanning line COM0 corresponds to the abnormality detection scanning line of the present invention.

マイコン10は、予めメモリ(図示しない)に書き込まれたスイッチ入力装置の制御用プログラムを実行することによって、点灯制御手段11、走査制御手段12、スイッチ状態検知手段13、及び異常検知手段14として機能する。   The microcomputer 10 functions as a lighting control unit 11, a scanning control unit 12, a switch state detection unit 13, and an abnormality detection unit 14 by executing a control program for the switch input device written in advance in a memory (not shown). To do.

なお、走査制御手段12と駆動素子30〜37とにより、本発明の走査手段が構成されている。また、点灯制御手段11と駆動素子20〜23とにより、本発明の点灯駆動手段が構成されている。   The scanning control means 12 and the drive elements 30 to 37 constitute the scanning means of the present invention. The lighting control means 11 and the driving elements 20 to 23 constitute the lighting driving means of the present invention.

ここで、図2は、走査制御手段12による走査ラインCOM0〜COM7への走査電圧(0V)の切り換えと、全ての走査ラインCOM0〜COM7への走査電圧(0V)の出力を停止する全オフ期間の設定のタイミングを、T0〜T8により示したものである。また、スイッチ状態検知手段13による第1スイッチ50〜第6スイッチ55の状態検知のタイミングを示したものである。   Here, FIG. 2 shows an all-off period in which the scanning control means 12 switches the scanning voltage (0V) to the scanning lines COM0 to COM7 and stops outputting the scanning voltage (0V) to all the scanning lines COM0 to COM7. The setting timing is indicated by T0 to T8. Further, the timing of the state detection of the first switch 50 to the sixth switch 55 by the switch state detection means 13 is shown.

図2を参照して、走査制御手段12は、T0〜T7で走査電圧(0V)を出力する走査ラインCOM0〜COM7を順次選択して切り換え、T8を全オフ期間とする走査処理を、繰り返し実行する。   Referring to FIG. 2, scanning control means 12 repeatedly executes scanning processing in which scanning lines COM0 to COM7 that output scanning voltage (0 V) at T0 to T7 are sequentially selected and switched, and T8 is set to an all-off period. To do.

より具体的には、走査制御手段12は、T0でマイコン10の出力ポートP20の出力をHigh(5V)として、駆動素子30を介して走査ラインCOM0に走査電圧(0V)を出力すると共に、出力ポートP21〜P27の出力をLow(0V)として、駆動素子31〜37を介して走査ラインCOM1〜COM7をハイインピーダンス状態とする。   More specifically, the scanning control unit 12 sets the output of the output port P20 of the microcomputer 10 to High (5V) at T0, and outputs the scanning voltage (0V) to the scanning line COM0 via the driving element 30 and outputs it. The outputs of the ports P21 to P27 are set to Low (0 V), and the scanning lines COM1 to COM7 are brought into a high impedance state via the drive elements 31 to 37.

同様にして、走査制御手段12は、T1〜T7で、走査ラインCOM1,COM2,…,COM7に、順次走査電圧(0V)を出力する。また、走査制御手段12は、T8では、出力ポートP20〜P27の出力を全てLow(0V)として、駆動素子30〜37を介して全ての走査ラインCOM0〜COM7をハイインピーダンス状態とする。   Similarly, the scanning control means 12 sequentially outputs a scanning voltage (0 V) to the scanning lines COM1, COM2,..., COM7 from T1 to T7. Further, at T8, the scanning control means 12 sets all the outputs of the output ports P20 to P27 to Low (0 V), and sets all the scanning lines COM0 to COM7 to the high impedance state via the driving elements 30 to 37.

また、スイッチ状態検知手段13は、T1における入力ポートP30への入力がHigh(5V)であるかLow(0V)であるかを判断することによって、第1スイッチ50の接点が導通状態(以下、スイッチが閉状態であるという)であるか遮断状態(以下、スイッチが開状態であるという)であるかを検知する。   Further, the switch state detection means 13 determines whether the input to the input port P30 at T1 is High (5V) or Low (0V), so that the contact of the first switch 50 is in a conductive state (hereinafter, referred to as “the input state”). It is detected whether the switch is in a closed state) or a cut-off state (hereinafter, the switch is in an open state).

ここで、スイッチ入力回路4は、抵抗41〜44及びコンデンサ40からなるフィルタ回路と、オペアンプ48と抵抗45〜47からなるヒステリシス付きの比較回路を有し、スイッチ入力ラインSWinが0V(本発明の走査電圧に応じた電圧に相当する)であるときはHigh(5V)出力となり、スイッチ入力ラインSWinがハイインピーダンス状態であるときにはLow(0V)出力となる構成となっている。   Here, the switch input circuit 4 has a filter circuit composed of resistors 41 to 44 and a capacitor 40, and a comparator circuit with hysteresis composed of an operational amplifier 48 and resistors 45 to 47, and the switch input line SWin is 0 V (in the present invention). When the switch input line SWin is in a high impedance state, the output is Low (0 V).

そして、T1で走査ラインCOM1に走査電圧(0V)が出力されているときは、第1スイッチ50が閉状態であればスイッチ入力ラインSWinが0Vとなって、スイッチ入力回路4からマイコン10の入力ポートP30への出力がHigh(5V)となる。また、第1スイッチ50が開状態であればスイッチ入力ラインSWinがハイインピーダンス状態となって、スイッチ入力回路4からマイコン10の入力ポートP30への出力がLow(0V)となる。   When the scanning voltage (0V) is output to the scanning line COM1 at T1, if the first switch 50 is closed, the switch input line SWin becomes 0V, and the microcomputer 10 inputs from the switch input circuit 4. The output to the port P30 becomes High (5V). If the first switch 50 is open, the switch input line SWin is in a high impedance state, and the output from the switch input circuit 4 to the input port P30 of the microcomputer 10 is Low (0 V).

そのため、スイッチ状態検知手段13は、T1で入力ポートP30への入力がHighであるときは第1スイッチ50が閉状態であると検知し、T1で入力ポートP30への入力がLowであるときには第1スイッチ50が開状態であると検知する。   Therefore, the switch state detecting means 13 detects that the first switch 50 is closed when the input to the input port P30 is High at T1, and the first state when the input to the input port P30 is Low at T1. 1 It is detected that the switch 50 is open.

同様にして、スイッチ状態検知手段13は、T2〜T6で入力ポートP30への入力がHighであるかLowであるかを判断して、第2スイッチ51〜第6スイッチ55が閉状態であるか開状態であるかを検知する。   Similarly, the switch state detection means 13 determines whether the input to the input port P30 is High or Low at T2 to T6, and whether the second switch 51 to the sixth switch 55 are closed. Detect if open.

また、第2スイッチ51は、ガスファンヒータの運転と停止を指示するための運転スイッチに割り当てられている。そして、使用者が運転スイッチを操作してガスファンヒータの運転を開始した後、走査ラインCOM2と第2スイッチ51の第1端子C1間の断線が生じると、T2で第2スイッチ51が操作されたことを検知できなくなる。   The second switch 51 is assigned to an operation switch for instructing operation and stop of the gas fan heater. Then, after the user operates the operation switch to start the operation of the gas fan heater, when the disconnection occurs between the scanning line COM2 and the first terminal C1 of the second switch 51, the second switch 51 is operated at T2. Cannot be detected.

そこで、操作基板2においては、図1に示したように、第2スイッチ51の第1接点C1が、ダイオード106を介して走査ラインCOM7にも接続されている。そして、これにより、スイッチ状態検知手段13は、T7においても第2スイッチ51の開閉状態を検知している。   Therefore, in the operation board 2, as shown in FIG. 1, the first contact C1 of the second switch 51 is also connected to the scanning line COM7 via the diode 106. Thus, the switch state detecting means 13 detects the open / closed state of the second switch 51 even at T7.

このように、第2スイッチ51の第1接点C1に、走査ラインCOM2,COM7という2系統の経路を設けることによって、断線により運転スイッチ(第2スイッチ51)による運転停止の操作が不能となる可能性を低下させることができる。   In this way, by providing two paths of the scanning lines COM2 and COM7 at the first contact C1 of the second switch 51, the operation stop operation by the operation switch (second switch 51) may be disabled due to disconnection. Can be reduced.

次に、異常検知手段14は、図2に示したT0,T2,T7,T8において、マイコン10の入力ポートP30への入力を確認することにより、以下の表1の判定条件に従ってスイッチ入力装置の異常を検知する。   Next, the abnormality detection means 14 confirms the input to the input port P30 of the microcomputer 10 at T0, T2, T7, and T8 shown in FIG. Detect abnormalities.

先ず、図2のT0では、走査ラインCOM0に走査電圧(0V)が出力されており、図1に示したように、走査ラインCOM0はダイオード107を介してスイッチ入力ラインSWinと接続されている。そのため、スイッチ入力装置が正常に動作していれば、スイッチ入力回路4からマイコン10の入力ポートP30への出力がHighとなる。   First, at T0 in FIG. 2, a scanning voltage (0 V) is output to the scanning line COM0, and the scanning line COM0 is connected to the switch input line SWin via the diode 107 as shown in FIG. Therefore, if the switch input device is operating normally, the output from the switch input circuit 4 to the input port P30 of the microcomputer 10 becomes High.

そこで、異常検知手段14は、T0で入力ポートP30への入力(スイッチ入力)がLowであるときは、スイッチ入力装置が異常状態(常時オン入力異常)であると検知する。この場合は、操作基板2と制御基板1間のスイッチ入力ラインSWinの断線や、スイッチ入力回路4のオフ故障(出力が常時Lowとなる故障)が生じている可能性がある。   Therefore, the abnormality detection means 14 detects that the switch input device is in an abnormal state (always-on input abnormality) when the input (switch input) to the input port P30 is Low at T0. In this case, there is a possibility that the switch input line SWin between the operation board 2 and the control board 1 is disconnected, or that the switch input circuit 4 is turned off (failure whose output is always low).

また、図2のT8では、全ての走査ラインCOM0〜COM8への走査電圧(0V)の出力が停止しているため、スイッチ入力装置が正常に動作していれば、スイッチ入力ラインSWinはハイインピーダンス状態となって、スイッチ入力回路4からマイコン10の入力ポートP30への出力がLowとなる。   Further, at T8 in FIG. 2, since the output of the scanning voltage (0V) to all the scanning lines COM0 to COM8 is stopped, if the switch input device is operating normally, the switch input line SWin has a high impedance. As a result, the output from the switch input circuit 4 to the input port P30 of the microcomputer 10 becomes Low.

そこで、異常検知手段14は、T8で入力ポートP30への入力(スイッチ入力)がHighであるときは、スイッチ入力装置が異常状態(常時オフ入力異常)であると検知する。この場合は、スイッチ入力ラインSWinがGNDのラインに短絡した短絡故障や、スイッチ入力回路4のオン故障(出力が常時Highとなる故障)が生じている可能性がある。   Therefore, the abnormality detection means 14 detects that the switch input device is in an abnormal state (always OFF input abnormality) when the input (switch input) to the input port P30 is High at T8. In this case, there is a possibility that a short-circuit failure in which the switch input line SWin is short-circuited to the GND line or an on-failure of the switch input circuit 4 (failure in which the output is always high) has occurred.

また、図2のT2とT8では、共に第2スイッチ51(運転スイッチ)の第1端子C1に走査電圧(0V)が出力されているため、スイッチ入力装置が正常に動作しているときは、スイッチ入力回路4からマイコン10の入力ポートP30への入力は、T2,T8で同一(共にHigh又は共にLow)となる。   Further, at T2 and T8 in FIG. 2, since the scanning voltage (0 V) is output to the first terminal C1 of the second switch 51 (operation switch), when the switch input device is operating normally, The input from the switch input circuit 4 to the input port P30 of the microcomputer 10 is the same (both high or low) at T2 and T8.

そこで、異常検知手段14は、T2とT8における入力ポートP30への入力が異なるときは、スイッチ入力装置が異常状態(運転スイッチ入力異常)であると検知する。この場合は、第2スイッチ51の第1端子C1と走査ラインCOM2又は走査ラインCOM7間の断線が生じている可能性がある。   Accordingly, the abnormality detection means 14 detects that the switch input device is in an abnormal state (operation switch input abnormality) when the input to the input port P30 at T2 and T8 is different. In this case, a disconnection may occur between the first terminal C1 of the second switch 51 and the scanning line COM2 or the scanning line COM7.

異常検知手段14は、このようにしてスイッチ入力装置の異常(常時オン入力異常、常時オフ入力異常、運転スイッチ入力異常)を検知したときに、エラー表示(エラー表示用に割り当てられたLEDを点灯)を行うと共に、ガスファンヒータのコントローラ(図示しない)に対して運転の強制終了を指示する。そして、これにより、スイッチの操作が不能な状態で、ガスファンヒータの運転が継続されることを防止している。   When the abnormality detection means 14 detects an abnormality of the switch input device (always on input abnormality, always off input abnormality, operation switch input abnormality) in this way, an error display (LED assigned for error display lights up). And forcibly end the operation to a controller (not shown) of the gas fan heater. This prevents the operation of the gas fan heater from being continued in a state where the switch cannot be operated.

なお、運転スイッチ入力異常については、第2スイッチ51の操作が可能な状態であるので、エラー表示のみを行って、ガスファンヒータの運転の強制終了を行わないようにしてもよい。   Note that the operation switch input abnormality is in a state where the operation of the second switch 51 is possible, so that only error display may be performed and the operation of the gas fan heater may not be forcibly terminated.

次に、点灯制御手段11によるLED60〜67,70〜77,80〜87,90〜97の点灯/消灯の制御について説明する。   Next, the lighting / extinguishing control of the LEDs 60 to 67, 70 to 77, 80 to 87, and 90 to 97 by the lighting control means 11 will be described.

点灯制御手段11は、図3に示したように、T0〜T7で走査ラインCOM0〜COM7に走査電圧(0V)が出力されるタイミングで、マイコン10の出力ポートP10〜P13の出力をHigh/Lowに切り換えるダイナミック駆動により、各LEDの点灯と消灯を制御する。   As shown in FIG. 3, the lighting control means 11 sets the outputs of the output ports P10 to P13 of the microcomputer 10 to High / Low at the timing when the scanning voltage (0V) is output to the scanning lines COM0 to COM7 at T0 to T7. Each LED is turned on and off by dynamic driving.

例えば、LED61を点灯させると共に、LED71,81,91を消灯させるときは、点灯制御手段11は、T1でマイコン10の出力ポートP10〜P13の出力を、(P10,P11,P12,P13)=(Low,High,High,High)とする。これにより、駆動素子20を介してデータラインSEG1に駆動電圧(5V)が出力され、LED61が点灯状態となる。一方、データラインSEG2〜SEG4は、駆動素子21〜23によりハイインピーダンス状態とされるため、LED71,81,91は消灯状態となる。   For example, when the LED 61 is turned on and the LEDs 71, 81, 91 are turned off, the lighting control means 11 outputs the outputs of the output ports P10 to P13 of the microcomputer 10 at (T10), (P10, P11, P12, P13) = ( Low, High, High, High). As a result, the drive voltage (5 V) is output to the data line SEG1 via the drive element 20, and the LED 61 is turned on. On the other hand, since the data lines SEG2 to SEG4 are brought into a high impedance state by the drive elements 21 to 23, the LEDs 71, 81 and 91 are turned off.

また、T8では、走査ラインCOM0〜COM7のいずれにも走査電圧(0V)が出力されない(全オフ状態)ため、全てのLED60〜67,70〜77,80〜87,90〜97が消灯した全消灯状態となる。   At T8, since no scanning voltage (0V) is output to any of the scanning lines COM0 to COM7 (all off state), all the LEDs 60 to 67, 70 to 77, 80 to 87, and 90 to 97 are all turned off. Turns off.

そして、図3に示したように、T8でこのように全消灯状態となる時間(1.0msec,本発明の走査オフ期間に相当する)は、T0〜T7における各LEDの点灯時間(1.5msec,本発明の所定時間に相当する)よりも短い時間に設定され、これにより、各LEDの点灯間隔が長くなることによるちらつきを抑制している。   As shown in FIG. 3, the time when the LED is completely turned off at T8 (1.0 msec, corresponding to the scanning off period of the present invention) is the lighting time of each LED from T0 to T7 (1.5 msec, This is set to a time shorter than the predetermined time of the present invention, thereby suppressing flickering due to a longer lighting interval of each LED.

また、T0〜T8の総処理時間が一定であるときには、T0〜T8を同一時間に設定する場合よりも、T8をT0〜T7よりも短い時間としてT0〜T7を同一時間にする方が、各LEDの輝度を所定レベル以上とするために必要となるT0〜T7での各LEDへの供給電流が少なくなる。そのため、各LEDの定格電流に対する供給電流の余裕度を大きくすることができる。   Further, when the total processing time of T0 to T8 is constant, it is more preferable to set T8 to T7 shorter than T0 to T7 and T0 to T7 to be the same time than to set T0 to T8 to the same time. The supply current to each LED at T0 to T7, which is necessary for setting the luminance of the LED to a predetermined level or more, is reduced. Therefore, the margin of the supply current with respect to the rated current of each LED can be increased.

なお、本実施の形態では、図3に示したように、LEDを全消灯状態とする期間T8を、LEDを点灯状態とする期間(T0〜T7)よりも短い時間に設定したが、この設定を行わない場合であっても、本発明の効果を得ることができる。   In the present embodiment, as shown in FIG. 3, the period T8 in which the LED is completely turned off is set to be shorter than the period in which the LED is turned on (T0 to T7). Even if it is not performed, the effect of the present invention can be obtained.

また、本実施の形態では、複数のスイッチ50〜55と、複数のLED60〜67,70〜77,80〜87,90〜97とを備えた構成を示したが、LEDを備えない構成に対しても本発明の適用が可能である。   Moreover, in this Embodiment, although the structure provided with several switch 50-55 and several LED 60-67, 70-77, 80-87, 90-97 was shown, with respect to the structure which is not equipped with LED. However, the present invention can be applied.

また、本実施の形態では、本発明の点灯素子としてLEDを示したが、蛍光表示管等の他の種類の点灯素子を用いてよい。   In this embodiment, an LED is shown as the lighting element of the present invention, but other types of lighting elements such as a fluorescent display tube may be used.

また、本実施の形態では、ガスファンヒータに備えられたスイッチ入力装置を示したが、本発明の適用対象はこれに限られず、複数のスイッチの開閉状態を1本のスイッチ入力ラインへの入力電圧に基づいて検知する構成であれば、本発明を適用してその効果を得ることができる。   In the present embodiment, the switch input device provided in the gas fan heater is shown. However, the application target of the present invention is not limited to this, and the open / closed states of a plurality of switches are input to one switch input line. If it is the structure which detects based on a voltage, the effect can be acquired by applying this invention.

1…制御基板、2…操作基板、4…スイッチ入力回路、10…マイクロコンピュータ(マイコン)、11…点灯制御手段、12…走査手段、13…スイッチ状態検知手段、14…異常検知手段、50〜55…スイッチ、60〜67,70〜77,80〜87,90〜97…LED。   DESCRIPTION OF SYMBOLS 1 ... Control board, 2 ... Operation board, 4 ... Switch input circuit, 10 ... Microcomputer (microcomputer), 11 ... Lighting control means, 12 ... Scanning means, 13 ... Switch state detection means, 14 ... Abnormality detection means, 50- 55 ... Switch, 60-67, 70-77, 80-87, 90-97 ... LED.

Claims (2)

第1端子及び第2端子と、該第1端子と該第2端子間を導通状態と遮断状態とに切り換える接点とを有する複数のスイッチと、
前記複数のスイッチの第1端子と個別に接続された前記複数のスイッチの個数分のスイッチ走査ラインと、
前記スイッチ走査ラインを所定順序で一つずつ選択して、選択したスイッチ走査ラインに、所定の走査電圧を所定時間出力する走査処理を実行する走査手段と、
前記複数のスイッチの各第2端子と接続されたスイッチ入力ラインと、
前記スイッチ入力ラインに、前記走査電圧に応じた電圧が出力されているか否かを検出するスイッチ入力回路と、
前記複数の各スイッチについて、第1端子に接続された前記スイッチ走査ラインに前記走査電圧が出力されているときに、前記スイッチ入力回路により前記スイッチ入力ラインに前記走査電圧に応じた電圧が出力されていることが検出されたときは、接点が導通状態であると検知し、前記スイッチ入力回路により前記スイッチ入力ラインに前記走査電圧に応じた電圧が出力されていることが検出されなかったときには、接点が遮断状態にあると検知するスイッチ状態検知手段とを備えたスイッチ入力装置において、
前記スイッチ入力ラインと接続された異常検知走査ラインを備え、
前記走査手段は、前記複数のスイッチの個数分の前記スイッチ走査ライン及び前記異常検知走査ラインからなる複数の走査ラインに対して、該走査ラインを所定順序で一つずつ選択して、選択した走査ラインに前記走査電圧を前記所定時間出力すると共に、いずれの走査ラインにも前記走査電圧を出力しない走査オフ期間を設けて前記走査処理を行い、
前記異常検知走査ラインに前記走査電圧が出力されているときに、前記スイッチ入力回路により、前記スイッチ入力ラインに前記走査電圧に応じた電圧が出力されていないことが検出されたとき、又は、前記走査オフ期間において、前記スイッチ入力回路により、前記スイッチ入力ラインに前記走査電圧に応じた電圧が出力されていることが検出されたときに、前記装置が異常状態であると検知する異常検知手段を備えたことを特徴とするスイッチ入力装置。
A plurality of switches having a first terminal and a second terminal, and a contact for switching between the first terminal and the second terminal between a conduction state and a cutoff state;
Switch scanning lines corresponding to the number of the plurality of switches individually connected to the first terminals of the plurality of switches;
Scanning means for selecting the switch scanning lines one by one in a predetermined order and executing a scanning process for outputting a predetermined scanning voltage to the selected switch scanning lines for a predetermined time;
A switch input line connected to each second terminal of the plurality of switches;
A switch input circuit for detecting whether or not a voltage corresponding to the scanning voltage is output to the switch input line;
For each of the plurality of switches, when the scanning voltage is output to the switch scanning line connected to the first terminal, the switch input circuit outputs a voltage corresponding to the scanning voltage to the switch input line. When it is detected that the contact is in a conductive state, and when it is not detected by the switch input circuit that the voltage corresponding to the scanning voltage is output to the switch input line, In the switch input device provided with the switch state detection means for detecting that the contact is in the cutoff state,
An abnormality detection scanning line connected to the switch input line,
The scanning unit selects the scanning lines one by one in a predetermined order for the plurality of scanning lines including the switch scanning lines and the abnormality detection scanning lines corresponding to the number of the plurality of switches, and selects the selected scanning lines. The scan voltage is output to the line for the predetermined time, and the scan process is performed by providing a scan off period in which the scan voltage is not output to any scan line,
When the scanning voltage is output to the abnormality detection scanning line, when the switch input circuit detects that a voltage corresponding to the scanning voltage is not output to the switch input line, or An abnormality detecting means for detecting that the device is in an abnormal state when the switch input circuit detects that the voltage corresponding to the scanning voltage is output to the switch input line during the scanning off period; A switch input device comprising the switch input device.
請求項1記載のスイッチ入力装置において、
第1端子及び第2端子を有して、該第1端子と該第2端子間に所定電圧が印加されたときに点灯状態となり、第1端子が前記複数の走査ラインのいずれかに接続された複数の点灯素子と、
前記複数の点灯素子の第2端子と接続されたデータラインと、
前記複数の各点灯素子に対して、第1端子に接続された前記走査ラインに前記走査電圧が出力されているときに、第2端子に接続された前記データラインに、第1端子と第2端子間に前記所定電圧を生じさせる駆動電圧を出力するか否かによって、点灯状態と消灯状態とを切り換える点灯駆動手段とを備え、
前記走査手段は、前記走査オフ期間を前記所定時間よりも短くして、前記走査処理を実行することを特徴とするスイッチ入力装置。
The switch input device according to claim 1,
Having a first terminal and a second terminal, when a predetermined voltage is applied between the first terminal and the second terminal, the lighting state is established, and the first terminal is connected to one of the plurality of scanning lines. A plurality of lighting elements,
A data line connected to second terminals of the plurality of lighting elements;
For each of the plurality of lighting elements, when the scan voltage is output to the scan line connected to the first terminal, the data line connected to the second terminal includes the first terminal and the second Lighting driving means for switching between a lighting state and a light-off state depending on whether or not to output a driving voltage that generates the predetermined voltage between the terminals,
The switch input device according to claim 1, wherein the scanning unit performs the scanning process by setting the scanning off period shorter than the predetermined time.
JP2009184701A 2009-08-07 2009-08-07 Switch input device Expired - Fee Related JP5068287B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009184701A JP5068287B2 (en) 2009-08-07 2009-08-07 Switch input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009184701A JP5068287B2 (en) 2009-08-07 2009-08-07 Switch input device

Publications (2)

Publication Number Publication Date
JP2011038833A JP2011038833A (en) 2011-02-24
JP5068287B2 true JP5068287B2 (en) 2012-11-07

Family

ID=43766775

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009184701A Expired - Fee Related JP5068287B2 (en) 2009-08-07 2009-08-07 Switch input device

Country Status (1)

Country Link
JP (1) JP5068287B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6037875U (en) * 1983-08-23 1985-03-15 富士電機株式会社 Contact welding detection circuit
JPH0422310Y2 (en) * 1985-12-31 1992-05-21
JPH04160374A (en) * 1990-10-24 1992-06-03 Zexel Corp Load control apparatus with failure detecting function
JP4100755B2 (en) * 1998-03-11 2008-06-11 日本たばこ産業株式会社 Selective drive unit for parallel unit
JP2003288828A (en) * 2002-03-28 2003-10-10 Sumitomo Electric Ind Ltd Relay switching inspection system
JP2007025806A (en) * 2005-07-12 2007-02-01 Kyocera Mita Corp Operation device

Also Published As

Publication number Publication date
JP2011038833A (en) 2011-02-24

Similar Documents

Publication Publication Date Title
US10506684B2 (en) Protection circuit and illumination driving circuit
CN109870626B (en) Open circuit detection method and LED display device
JP2006325396A (en) Dc-dc converter having overcurrent/overvoltage protection function and led drive circuit including same
JP2013189071A (en) Control device for lighting led and detecting disconnection thereof
JP4669382B2 (en) LED drive circuit
KR100480727B1 (en) Apparatus for controlling heater of a dryer
JP5576891B2 (en) LED lighting and disconnection detection control device
WO2019208491A1 (en) Electromagnetic valve system
JP2017033741A (en) Abnormality detection device
JP7327966B2 (en) Information processing device and its control method
CN216118442U (en) Multi-gear load driving and detecting circuit and equipment
US20130249315A1 (en) Switching component and switch system comprising the same
JP5068287B2 (en) Switch input device
JP2010108129A (en) Switching device
JP5781469B2 (en) LED driving device and lighting apparatus
WO2016170570A1 (en) Programmable logic controller system and computing unit
JP4726866B2 (en) Signal light control device
JP2007333623A (en) Ac output circuit with failure detecting function
JP4886454B2 (en) Power supply and program
JP6629474B1 (en) Signal switching device
JPH0617963A (en) Maintenance system of solenoid safety valve
CN115184789B (en) Automatic transfer switch testing device and method
CN111381528B (en) Signal control device and method and vehicle
JP6793861B1 (en) Abnormality diagnosis system and abnormality diagnosis method
JP3178569B2 (en) Matrix type selection circuit

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120704

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120814

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

Free format text: PAYMENT UNTIL: 20150824

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5068287

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

LAPS Cancellation because of no payment of annual fees