JPH04420Y2 - - Google Patents
Info
- Publication number
- JPH04420Y2 JPH04420Y2 JP11230884U JP11230884U JPH04420Y2 JP H04420 Y2 JPH04420 Y2 JP H04420Y2 JP 11230884 U JP11230884 U JP 11230884U JP 11230884 U JP11230884 U JP 11230884U JP H04420 Y2 JPH04420 Y2 JP H04420Y2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- sense
- switch
- timing pulse
- line
- 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
Links
- 238000001514 detection method Methods 0.000 claims description 23
- 239000011159 matrix material Substances 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 2
- 230000007257 malfunction Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
Landscapes
- Input From Keyboards Or The Like (AREA)
Description
【考案の詳細な説明】
(考案の技術分野)
本考案は、センス回路からのセンス信号及び検
出タイミングパルスを入力してエラー判断する論
理回路を設け、センス回路の故障を検出すること
により、スイツチ読取回路の誤動作チエツクを行
なうようにしたスイツチ誤読取検出回路に関す
る。[Detailed Description of the Invention] (Technical Field of the Invention) The present invention provides a logic circuit that inputs a sense signal and a detection timing pulse from a sense circuit to determine an error, and detects a failure in the sense circuit. The present invention relates to a switch erroneous reading detection circuit which checks for malfunction of a reading circuit.
(考案の技術的背景とその問題点)
第1図は従来のスイツチ読取回路の一例を示す
図であり、読込タイミング発生回路2Aから出力
される読込タイミングパルスT1及びT2を入力
して駆動するドライブ回路3Aにより、マトリク
ススイツチを構成するダイオード付スイツチ1
1,12,21及び22の制御をドライブ線31
A及び32Aを介して行なう。ドライブ回路3A
は読込タイミングパルスT1及びT2を読込むタ
イミング時に駆動され、読込タイミングパルスT
1又はT2の入力時にドライブ線31A又は32
Aをグランド電位に保持するようになつている。
また、読込タイミング発生回路2Aは、マトリク
ススイツチのコモン線(ドライブ線31A,32
A)を2つ以上同時にグランド電位に駆動するこ
とを防止する回路であり、一般的には公知技術で
あるCPUのアドレスデコード回路で構成されて
いる。マトリクススイツチを構成するスイツチ1
1〜12は、接点スイツチSW11〜SW22と
直列に接続されたダイオードで成り、接点スイツ
チSW11〜SW22はそれぞれON(閉状態)又
はOFF(開状態)になる。そして、あるスイツチ
がONになると、そのスイツチが接続されている
センス線41A,42AはLOW(低いレベルの出
力;以下、”L”とする)の信号を出力し、接続
されているスイツチがOFF状態であれば、セン
ス線41A及び42AはHIGH(高いレベルの出
力;以下、”H”とする)の信号を出力する。セ
ンス線41A及び42Aの”H”,”L”はセンス
回路4で読取られ、CPU(中央処理装置)のイン
タフエースとしてのCPU入力回路1に送られる
ようになつている。(Technical background of the invention and its problems) FIG. 1 is a diagram showing an example of a conventional switch reading circuit, in which a drive is driven by inputting read timing pulses T1 and T2 output from a read timing generation circuit 2A. Switch 1 with diode configuring the matrix switch by circuit 3A
1, 12, 21 and 22 are controlled by the drive line 31.
A and 32A. Drive circuit 3A
is driven at the timing of reading the read timing pulses T1 and T2, and the read timing pulse T
Drive line 31A or 32 when inputting 1 or T2
A is held at ground potential.
In addition, the read timing generation circuit 2A is connected to the common line of the matrix switch (drive lines 31A, 32
This is a circuit that prevents two or more of A) from being driven to ground potential at the same time, and is generally constituted by a CPU address decoding circuit which is a known technology. Switch 1 making up the matrix switch
1 to 12 are diodes connected in series with the contact switches SW11 to SW22, and the contact switches SW11 to SW22 are turned ON (closed state) or OFF (open state), respectively. When a certain switch is turned ON, the sense lines 41A and 42A connected to that switch output a LOW (low level output; hereinafter referred to as "L") signal, and the connected switch is turned OFF. In the state, the sense lines 41A and 42A output a HIGH (high level output; hereinafter referred to as "H") signal. "H" and "L" of sense lines 41A and 42A are read by a sense circuit 4 and sent to a CPU input circuit 1 as an interface for a CPU (central processing unit).
なお、センス回路4は一般的には抵抗でプルア
ツプされており、公知の回路構成である(例え
ば、オーム社発行の情報処理学会編”電子計算機
ハンドブツク”、大河出版発行の研野和人、稲葉
清衞門著”数値制御工作機械”)。 The sense circuit 4 is generally pulled up with a resistor and has a known circuit configuration (for example, "Computer Handbook" edited by the Information Processing Society of Japan published by Ohm Publishing, Kazuto Kenno and Inaba published by Taiga Publishing). ``Numerical Control Machine Tools'' by Seiemon).
このようなスイツチ読取回路において、連続し
てセンス線41A及び42Aの信号の読取を行な
う際、各回路あるいはスイツチ等の故障等のチエ
ツクができない欠点があつた。つまり、電源投入
時等に、操作されていない状態でセンス回路4及
びスイツチ11〜22の状態を読込み、操作され
ていない状態ではOFFであることのチエツクし
かできなかつた。 Such a switch reading circuit has a drawback in that it is not possible to check for malfunctions in each circuit or switch when continuously reading signals on the sense lines 41A and 42A. In other words, when the power is turned on, the states of the sense circuit 4 and the switches 11 to 22 are read while they are not being operated, and it is only possible to check that they are OFF when they are not being operated.
(考案の目的)
本考案は上述のような事情からなされたもので
あり、センス回路からのセンス信号及び検出タイ
ミングパルスを入力してエラーを判断する論理回
路を設け、センス回路の故障を検出することによ
り、スイツチ読取回路のチエツクを行なうことが
できるようにしたスイツチ誤読取検出回路を提供
することを目的としている。(Purpose of the invention) The present invention was developed in view of the above-mentioned circumstances, and includes a logic circuit that inputs the sense signal and detection timing pulse from the sense circuit to determine an error, and detects a failure of the sense circuit. Therefore, it is an object of the present invention to provide a switch erroneous reading detection circuit that can check the switch reading circuit.
(考案の概要)
本考案はスイツチ誤読取検出回路に関するもの
で、CPUのアドレスデコードによつて読込タイ
ミングパルス及び検出タイミングパルスをサイク
リツクに出力するタイミングパルス発生回路と、
前記読込タイミングパルスを入力すると共に、出
力部にドライブ線を接続されたドライブ回路と、
スイツチ線を接続され、前記スイツチ線に対応し
てセンス信号を出力するセンス回路と、前記ドラ
イブ線及びセンス線の各交叉部にダイオード付ス
イツチを接続されて成るダイオードマトリクス
と、前記センス信号及び検出タイミングパルスを
入力し、前記センス信号の否定の論理和出力と前
記検出タイミングパルスとの論理積を求めてエラ
ー信号を出力する論理回路とを具え、前記エラー
信号の出力によつて前記センス回路の故障を検出
するようにしたものである。(Summary of the invention) The invention relates to a switch erroneous reading detection circuit, which includes a timing pulse generation circuit that cyclically outputs a read timing pulse and a detection timing pulse by address decoding of the CPU.
a drive circuit inputting the read timing pulse and having a drive line connected to an output part;
a sense circuit connected to a switch line and outputting a sense signal corresponding to the switch line; a diode matrix comprising a switch with a diode connected to each intersection of the drive line and the sense line; and a diode matrix for detecting the sense signal and the sense signal. a logic circuit that inputs a timing pulse, calculates a logical product of the negation of the sense signal and the detected timing pulse, and outputs an error signal; This is designed to detect failures.
(考案の実施例)
第2図は本考案の一実施例を第1図に対応させ
て示す図である。タイミングパルス発生回路2
は、読込タイミングパルスT1,T2及び検出タ
イミングパルスをそれぞれドライブ線31B,3
2Bの駆動用ドライブ回路3B及びエラー検出用
AND(論理積)回路6に対してサイクリツクに発
生するための回路であり、読込タイミングパルス
T1,T2及び検出タイミングパルスT3は第3
図A〜Cに示すように重複しないように順次発生
される。ドライブ回路3Bは読込タイミングパル
スT1又はT2が送られて来た時にそれぞれドラ
イブ線31A又は32Bを駆動し、ドライブ線3
1Bはスイツチ11及び21を、ドライブ線32
Bはスイツチ12及び22をそれぞれON状態に
する。このため、どちらの場合もセンス線41B
及び42Bは共にスイツチの状態によりONなら
ば”L”、OFFならば”H”を出力する。検出タ
イミングパルスT3が送られている時には、全て
の回路が正常に動作していればOFF状態となり、
センス線41及び42Bは”H”を出力する。し
かしながら、センス回路4が故障等によりON状
態のままになつていると、センス線(この例では
センス線42B)が”L”を出力することにな
る。(Embodiment of the invention) FIG. 2 is a diagram showing an embodiment of the invention in correspondence with FIG. 1. Timing pulse generation circuit 2
The read timing pulses T1 and T2 and the detection timing pulses are connected to drive lines 31B and 3, respectively.
2B drive circuit 3B and error detection
This is a circuit for cyclically generating pulses to the AND (logical product) circuit 6, and the read timing pulses T1, T2 and the detection timing pulse T3 are the third
As shown in Figures A to C, they are generated sequentially so as not to overlap. The drive circuit 3B drives the drive line 31A or 32B, respectively, when the read timing pulse T1 or T2 is sent.
1B connects switches 11 and 21 to drive line 32.
B turns on switches 12 and 22, respectively. Therefore, in both cases, the sense line 41B
and 42B both output "L" if they are ON, and "H" if they are OFF, depending on the state of the switch. When the detection timing pulse T3 is being sent, if all the circuits are operating normally, they will be in the OFF state.
Sense lines 41 and 42B output "H". However, if the sense circuit 4 remains in the ON state due to a failure or the like, the sense line (the sense line 42B in this example) will output "L".
本考案では、NAND(否定論理積)回路5及び
AND回路6を図示のように接続して成る論理回
路を設け、上述のような故障を検出するようにな
つている。すなわち、センス線41B及び42B
の出力をセンス信号S1及びS2とした場合、
NAND回路5の出力はとS1+S2となり、こ
の出力S1+S2と検出タイミングパルスT3を
入力するAND回路6の出力E1は、
E1=T3・(1+2) …(1)
と表わされる。したがつて、検出タイミングパル
スT3がAND回路6に入力されている時に、セ
ンス線41B,42Bのいずれかが”L”(ある
スイツチが故障によりON状態)になつている
と、(1)式によりエラー信号E1を”H”にする。
この論理回路では、センス回路4の出力の信号線
が全てOFFになつているべき時に1つでもONに
なつている信号線があると、検出タイミングパル
スT3の検出タイミングでエラー信号E1が”
H”になり、電源投入時以外のセンス回路4の故
障を検知することができる。 In the present invention, the NAND (NOT AND AND) circuit 5 and
A logic circuit formed by connecting AND circuits 6 as shown is provided to detect the above-mentioned failure. That is, sense lines 41B and 42B
When the outputs of are used as sense signals S1 and S2,
The output of the NAND circuit 5 is S1+S2, and the output E1 of the AND circuit 6 which receives this output S1+S2 and the detection timing pulse T3 is expressed as E1=T3.(1+2)...(1). Therefore, when the detection timing pulse T3 is input to the AND circuit 6, if either of the sense lines 41B or 42B is "L" (a certain switch is in the ON state due to a failure), the equation (1) is satisfied. As a result, the error signal E1 is set to "H".
In this logic circuit, if all the output signal lines of the sense circuit 4 should be OFF, but even one signal line is ON, an error signal E1 is generated at the detection timing of the detection timing pulse T3.
The signal becomes "H", and a failure of the sense circuit 4 at times other than when the power is turned on can be detected.
第3図A〜Gはその動作例を示すタイミングチ
ヤートであり、同図Aの読込タイミングパルスT
1によつて接点スイチSW11及びSW21の状
態によりセンス信号S1,S2がON又はOFFさ
れ(同図D,E)、NAND回路5の出力は同図F
のように、接点スイツチSW11及びSW21の
状態により”H”又は”L”となる。同様に、読
込タイミングパルスT2によつて接点スイツチ
SW12及びSW22の状態によりセンス信号S
1,S2がON又はOFFされ、NAND回路5の
出力は接点スイツチSW12,SW22の状態に
より”H”又は”L”となる。ドライブ回路3B
は読込タイミングパルスT1及びT2の読込タイ
ミング時に駆動され、その駆動時にドライブ線3
1B又は32Bをグランド電位Lに保つようにな
つている。その結果、第3図D,Eに示すよう
に、センス信号S1又はS2はスイツチ入力ON
時に”L”スイツチ入力OFF時に”H”として
出力される。 FIGS. 3A to 3G are timing charts showing examples of the operation, and the read timing pulse T in FIG.
1, the sense signals S1 and S2 are turned ON or OFF depending on the states of the contact switches SW11 and SW21 (D and E in the same figure), and the output of the NAND circuit 5 is F in the same figure.
As shown in the figure, it becomes "H" or "L" depending on the states of the contact switches SW11 and SW21. Similarly, the contact switch is activated by the read timing pulse T2.
The sense signal S depends on the states of SW12 and SW22.
1 and S2 are turned ON or OFF, and the output of the NAND circuit 5 becomes "H" or "L" depending on the states of the contact switches SW12 and SW22. Drive circuit 3B
is driven at the read timing of the read timing pulses T1 and T2, and the drive line 3 is driven at the time of the read timing pulses T1 and T2.
1B or 32B is kept at ground potential L. As a result, as shown in FIG. 3D and E, the sense signal S1 or S2 is turned ON when the switch input is
Sometimes, when the "L" switch input is OFF, it is output as "H".
一方、読込タイミングパルスT3のタイミング
時にはドライブ回路3Bは駆動されないため、ド
ライブ線31B及び32Bは”H”に保持され
る。そして、第3図Cに示す検出タイミングパル
スT3が時点t1に入力されても、NAND回路
5の出力は”L”となつているので、AND回路
6からのエラー信号E1は”L”のままである。
しかしながら、時点t2にたとえばセンス回路4
が故障して、第3図Eに示すようにセンス信号S
2が”L”になると、NAND回路5の出力が”
H”となり、検出タイミングパルスT3が入力さ
れる時点t3にAND回路6からのエラー信号E
1が”H”となる。これにより、スイツチ回路の
故障を検出することができる。すなわち、読込タ
イミングパルスT1及びT2の読込タイミング時
にはドライブ回路3Bによつてドライブ線31B
及び32Bが”L”に保持されるため、接点スイ
ツチSW11〜SW22のON状態によりセンス線
41B及び42Bが”L”に保持され、センス線
41B,42Bの電位により”L”の場合は接点
スイツチがON、”H”の場合は接点スイツチが
OFFとして検出できる。一方、検出タイミング
パルスT3の検出タイミング時にはドライブ回路
3Bが駆動されないため、ドライブ線31B及び
32B共に”L”とならないため、センス回路4
はセンス信号S1及びS2を”H”に保持する。
しかし、スイツチやセンス線の回路異常等でセン
ス信号S1,S2が”L”になつていれば、何ら
かの異常として検出することができるのである。 On the other hand, since the drive circuit 3B is not driven at the timing of the read timing pulse T3, the drive lines 31B and 32B are held at "H". Even if the detection timing pulse T3 shown in FIG. 3C is input at time t1, the output of the NAND circuit 5 remains "L", so the error signal E1 from the AND circuit 6 remains "L". It is.
However, at time t2, for example, the sense circuit 4
has failed, and the sense signal S
2 becomes "L", the output of NAND circuit 5 becomes "
At time t3 when the detection timing pulse T3 is input, the error signal E from the AND circuit 6 is
1 becomes "H". This makes it possible to detect a failure in the switch circuit. That is, at the read timing of the read timing pulses T1 and T2, the drive line 31B is activated by the drive circuit 3B.
and 32B are held at "L", the sense lines 41B and 42B are held at "L" due to the ON state of contact switches SW11 to SW22, and when the sense lines 41B and 42B are at "L", the contact switch is is ON and “H”, the contact switch is
Can be detected as OFF. On the other hand, since the drive circuit 3B is not driven at the detection timing of the detection timing pulse T3, both the drive lines 31B and 32B do not become "L".
holds sense signals S1 and S2 at "H".
However, if the sense signals S1 and S2 become "L" due to a circuit abnormality in a switch or a sense line, it can be detected as some kind of abnormality.
なお、上述では正論理で説明したが、負論理と
しても良いことは勿論である。 In addition, although positive logic was explained above, it goes without saying that negative logic may also be used.
(考案の効果)
以上のように本考案によれば、センス線の出力
をチエツクすることにより、回路動作中にもエラ
ー検出信号を出力するようにしているので、電源
投入時以外にもセンス回路の不具合のチエツクを
行なうことができる利点がある。(Effects of the invention) As described above, according to the invention, by checking the output of the sense line, an error detection signal is output even during circuit operation. This has the advantage of being able to check for defects.
第1図は従来のスイツチ読取回路の一例を示す
回路図、第2図はこの考案の一実施例を示す回路
図、第3図A〜Gはその動作例を示すタイミング
チヤートである。
1……CPU入力回路、2……タイミングパル
ス発生回路、3……ドライブ回路、4……センス
回路、5……NAND(否定論理積)回路、6……
AND(論理積)回路、11〜22……スイツチ、
31,32……ドライブ線、41,42……セン
ス線。
FIG. 1 is a circuit diagram showing an example of a conventional switch reading circuit, FIG. 2 is a circuit diagram showing an embodiment of this invention, and FIGS. 3A to 3G are timing charts showing examples of its operation. 1... CPU input circuit, 2... Timing pulse generation circuit, 3... Drive circuit, 4... Sense circuit, 5... NAND (NOT AND AND) circuit, 6...
AND (logical product) circuit, 11-22... switch,
31, 32... Drive line, 41, 42... Sense line.
Claims (1)
ングパルス及び検出タイミングパルスをサイクリ
ツクに出力するタイミングパルス発生回路と、前
記読込タイミングパルスを入力すると共に、出力
部にドライブ線を接続されたドライブ回路と、ス
イツチ線を接続され、前記スイツチ線に対応して
センス信号を出力するセンス回路と、前記ドライ
ブ線及びセンス線の各交叉部にダイオード付スイ
ツチを接続されて成るダイオードマトリクスと、
前記センス信号及び検出タイミングパルスを入力
し、前記センス信号の否定の論理和出力と前記検
出タイミングパルスとの論理積を求めてエラー信
号を出力する論理回路とを具え、前記エラー信号
の出力によつて前記センス回路の故障を検出する
ようにしたことを特徴とするスイツチ誤読取検出
回路。 A timing pulse generation circuit that cyclically outputs a read timing pulse and a detection timing pulse by address decoding of the CPU, a drive circuit that inputs the read timing pulse and has a drive line connected to its output section, and a switch line. a sense circuit that is connected to the switch line and outputs a sense signal in response to the switch line; a diode matrix that includes a switch with a diode connected to each intersection of the drive line and the sense line;
a logic circuit that inputs the sense signal and the detection timing pulse, calculates a logical product of the negation of the sense signal and the detection timing pulse, and outputs an error signal; A switch erroneous reading detection circuit, characterized in that it detects a failure of the sense circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11230884U JPS6130135U (en) | 1984-07-24 | 1984-07-24 | Switch misreading detection circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11230884U JPS6130135U (en) | 1984-07-24 | 1984-07-24 | Switch misreading detection circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6130135U JPS6130135U (en) | 1986-02-22 |
| JPH04420Y2 true JPH04420Y2 (en) | 1992-01-08 |
Family
ID=30671370
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11230884U Granted JPS6130135U (en) | 1984-07-24 | 1984-07-24 | Switch misreading detection circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6130135U (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2784678B2 (en) * | 1990-02-09 | 1998-08-06 | 新晃電機 株式会社 | Push button switch for crane operation |
-
1984
- 1984-07-24 JP JP11230884U patent/JPS6130135U/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6130135U (en) | 1986-02-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7401280B1 (en) | Self-verification of configuration memory in programmable logic devices | |
| JPS6182201A (en) | Fail-safe controlling circuit | |
| AU580730B2 (en) | Self-checking computer circuitry | |
| JPH04420Y2 (en) | ||
| US20030115528A1 (en) | Semiconductor memory device capable of failure analysis with system in operation | |
| JP2725680B2 (en) | Bus error detection circuit | |
| JPH0441394Y2 (en) | ||
| TWI801207B (en) | Semiconductor memory device and method for reading semiconductor memory device | |
| JPH0610425Y2 (en) | Keyboard controller | |
| JPH0660922B2 (en) | Encoder disconnection detector | |
| JPH048147U (en) | ||
| JPS5825460Y2 (en) | logic circuit device | |
| JPS6288047A (en) | Interface controller | |
| RU1837364C (en) | Self-correcting random access memory | |
| JPS6111859A (en) | Abnormality detector | |
| SU951406A1 (en) | Memory device with self-check capability | |
| JPH0573432A (en) | Information processor | |
| JPS63222398A (en) | Memory element | |
| JPS6237756A (en) | Error detecting circuit | |
| JPH0542499Y2 (en) | ||
| JPH0615309Y2 (en) | Keyboard controller | |
| JP2603648B2 (en) | Switch device with failure prediction | |
| JPS6427738U (en) | ||
| JPH0267656A (en) | Single chip microcomputer | |
| JPH0691469B2 (en) | Decoder circuit |