JPS63296519A - Electronic switch - Google Patents
Electronic switchInfo
- Publication number
- JPS63296519A JPS63296519A JP13252687A JP13252687A JPS63296519A JP S63296519 A JPS63296519 A JP S63296519A JP 13252687 A JP13252687 A JP 13252687A JP 13252687 A JP13252687 A JP 13252687A JP S63296519 A JPS63296519 A JP S63296519A
- Authority
- JP
- Japan
- Prior art keywords
- switch
- control
- signal
- power supply
- microcomputer
- 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
- 238000010586 diagram Methods 0.000 description 7
- 239000003990 capacitor Substances 0.000 description 1
- 244000145845 chattering Species 0.000 description 1
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明はマイクロコンピュータ(以下、マイコンという
)制御による電子スイッチに関するものである。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to an electronic switch controlled by a microcomputer (hereinafter referred to as microcomputer).
従来の技術
従来のマイコン制御による電子スイッチでは、マイコン
が暴走してしまうと、電源をオフできないので、リセッ
トスイッチを押して、マイコンの暴走を停止させ、電源
をオフしていた。BACKGROUND OF THE INVENTION With conventional microcomputer-controlled electronic switches, if the microcomputer goes out of control, the power cannot be turned off, so a reset switch is pressed to stop the microcomputer from running out of control and turn off the power.
発明が解決しようとする問題点
このような従来の電子スイッチでは、マイコンが暴走し
たときは電源スイツチ以外にリセットスイッチを使用し
なければならず、操作が煩雑となる。Problems to be Solved by the Invention With such conventional electronic switches, when the microcomputer goes out of control, a reset switch must be used in addition to the power switch, making the operation complicated.
本発明は、マイコンが暴走したときに、容易に電源をオ
フできるようにすることを目的とする。An object of the present invention is to easily turn off the power when the microcomputer goes out of control.
問題点を解決するための手段
本発明は上記問題点を解決するため、スイッチのオン、
オフを行うことにより発生する信号をクロック入カドす
るシフトレジスタを設け、スイッチのオン、オフを複数
回くり返すことによりシフトレジスタから電源オフ信号
を出力して強制的に電源をオフするものである0
作用
本発明は上記した構成により、マイコン制御に。Means for Solving the Problems The present invention solves the above problems by turning on a switch,
A shift register is provided that clocks the signal generated when the switch is turned off, and by repeating the switch on and off multiple times, the shift register outputs a power off signal to forcibly turn off the power. 0 Function The present invention is controlled by a microcomputer with the above-described configuration.
よる電子スイッチにおいて、マイコンが暴走したとき、
スイッチを複数回オン、オフをくり返すことで容易に電
源をオフできる。When the microcontroller goes out of control in an electronic switch,
You can easily turn off the power by turning the switch on and off multiple times.
実施例
第2図は本発明の電子スイッチを用いた実施例のブロッ
ク図である。1は電源、2は本発明の電子スイッチ回路
、3は制御対象回路である。第1図において、16の点
線で囲まれた部分が本発明の一実施例を示す回路部分で
あり、13は電源入力端子、14は電源出力端子である
。4は電源制御回路、5はシフトレジスタ、6は制御部
としてのマイコン、7はスイッチ、8は停止信号線、9
は制御信号線、1oはスイッチ信号線、11は制御副ト
ランジスタ、12は制御主トランジスタ、16はチャタ
リング除去用コンデンサである。電源入力端子13は外
部の電源に接続され、電圧が加えられている。電源制御
回路4の制御により電源出力端子14から制御対象回路
に対する電力供給の開始、停止を行う。スイッチ7は閉
じられたときオンで、開かれたときオフとなるとする。Embodiment FIG. 2 is a block diagram of an embodiment using the electronic switch of the present invention. 1 is a power supply, 2 is an electronic switch circuit of the present invention, and 3 is a circuit to be controlled. In FIG. 1, a portion surrounded by a dotted line 16 is a circuit portion showing an embodiment of the present invention, 13 is a power input terminal, and 14 is a power output terminal. 4 is a power supply control circuit, 5 is a shift register, 6 is a microcomputer as a control unit, 7 is a switch, 8 is a stop signal line, 9
1 is a control signal line, 1o is a switch signal line, 11 is a control sub-transistor, 12 is a control main transistor, and 16 is a chattering removal capacitor. The power input terminal 13 is connected to an external power source and voltage is applied thereto. Under the control of the power supply control circuit 4, power supply from the power supply output terminal 14 to the controlled circuit is started and stopped. It is assumed that the switch 7 is on when it is closed and off when it is opened.
マイコン6が正常な場合の各信号のタイミング図を第3
図に示す。初めスイッチ7開かれている(電源がオフさ
れた)状態では、マイコン6は制御信号線9に対してL
owレベルを出力しているので、シフトレジスタ5の出
力である停止信号線8はHighレベルとなっている。The timing diagram of each signal when the microcomputer 6 is normal is shown in the third figure.
As shown in the figure. Initially, when the switch 7 is open (power is turned off), the microcomputer 6 outputs an L signal to the control signal line 9.
Since the OW level is being output, the stop signal line 8, which is the output of the shift register 5, is at the High level.
スイッチ7が閉じられる(Ml源をオンする)とスイッ
チ信号線1oはLowレベルになる。マイコン8はこれ
を検知すると、制御信号線9をHighレベルに遷移さ
せ、制御副トランジスタ12をオンする。これにより制
御主トランジスタ13もオンして電源出力端子14から
制御対象回路に対して電力の供給を開始する。この後、
スイッチ7が開かれる(オフされる)と、スイッチ信号
線10101jHiレベルとなり、マイコンeはこれを
検知すると、制御信号線9をLowレベルに遷移させ、
制御副トランジスタ12をオフする。これにより、制御
主トランジスタ13はオフして電源出力端子14から制
御対象回路に対して電力の供給を停止する。ところが、
マイコンeが暴走して制御信号線9をHighレベルに
し続ける場合が発生すると、電源はオンされたままにな
る。この場合、スイッチ7のオン、オフをくり返すと、
スイッチ信号線10の電圧レベルはL o w 、 H
ighをくり返し、シフトレジスタ5のクロック入力信
号となり、停止信号線8にLowレベルを出力して、電
源制御回路4のトランジスタ11.12をオフする。こ
れにより強制的に電源をオフすることができる。このタ
イミング図を第4図に示す。When the switch 7 is closed (the Ml source is turned on), the switch signal line 1o becomes Low level. When the microcomputer 8 detects this, it changes the control signal line 9 to High level and turns on the control sub-transistor 12. As a result, the main control transistor 13 is also turned on, and the supply of power from the power supply output terminal 14 to the circuit to be controlled is started. After this,
When the switch 7 is opened (turned off), the switch signal line 10101j becomes Hi level, and when the microcomputer e detects this, it changes the control signal line 9 to Low level,
The control sub-transistor 12 is turned off. As a result, the main control transistor 13 is turned off and the supply of power from the power supply output terminal 14 to the circuit to be controlled is stopped. However,
If the microcomputer e goes out of control and keeps the control signal line 9 at a high level, the power remains on. In this case, if switch 7 is repeatedly turned on and off,
The voltage level of the switch signal line 10 is Low, High
High is repeated, becomes the clock input signal of the shift register 5, outputs a low level to the stop signal line 8, and turns off the transistors 11 and 12 of the power supply control circuit 4. This allows you to forcibly turn off the power. This timing diagram is shown in FIG.
発明の効果
以上に述べたように本発明によれば、マイコン制御によ
る電子スイッチにおいて、マイコンが暴走したときに容
易に電源をオフでき、実用的に極めて有用である。Effects of the Invention As described above, according to the present invention, in an electronic switch controlled by a microcomputer, the power can be easily turned off when the microcomputer goes out of control, and is extremely useful in practice.
第1図は本発明の電子スイッチの一実施例を示す回路図
、第2図は同電子スイッチを用いた回路のブロック図、
第3図はマイコンが正常動作しているときのタイミング
図、第4図はマイコンが暴走しているときのタイミング
図である。
3・・・・・・制御対象回路、4・・・・・・電源制御
回路、6・・・・・・シフトレジスタ、6・・・・・・
マイコン、7・・・・・・スイッチ。FIG. 1 is a circuit diagram showing an embodiment of the electronic switch of the present invention, FIG. 2 is a block diagram of a circuit using the same electronic switch,
FIG. 3 is a timing diagram when the microcomputer is operating normally, and FIG. 4 is a timing diagram when the microcomputer is out of control. 3... Controlled circuit, 4... Power supply control circuit, 6... Shift register, 6...
Microcomputer, 7... Switch.
Claims (1)
チと、このスイッチがオン状態またはオフ状態であるか
を検知して制御対象回路の電源をオンまたはオフするた
めの制御信号を電源制御回路に対して出力する制御部と
、前記スイッチのオン、オフをくり返すことにより発生
する信号をクロック信号として入力するシフトレジスタ
と、前記スイッチを複数回オン、オフすることにより前
記シフトレジスタから出力されるオフ信号、または前記
制御部の制御により出力されるオフ信号が入力されると
電源をオフする電源制御回路とから構成した電子スイッ
チ。A switch that has two stable states, an on state and an off state, and a control signal that detects whether this switch is on or off and turns on or off the power of the controlled circuit to the power supply control circuit. a control unit that outputs a signal to the clock; a shift register that inputs a signal generated by repeatedly turning on and off the switch as a clock signal; An electronic switch comprising a power supply control circuit that turns off the power when an off signal or an off signal output under control of the control section is input.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP13252687A JPS63296519A (en) | 1987-05-28 | 1987-05-28 | Electronic switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP13252687A JPS63296519A (en) | 1987-05-28 | 1987-05-28 | Electronic switch |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63296519A true JPS63296519A (en) | 1988-12-02 |
Family
ID=15083359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP13252687A Pending JPS63296519A (en) | 1987-05-28 | 1987-05-28 | Electronic switch |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63296519A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0353037U (en) * | 1989-09-29 | 1991-05-22 |
-
1987
- 1987-05-28 JP JP13252687A patent/JPS63296519A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0353037U (en) * | 1989-09-29 | 1991-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0119295B2 (en) | ||
KR890000953A (en) | integrated circuit | |
JPS63296519A (en) | Electronic switch | |
TW245834B (en) | Low power consumption and high speed nor gate integrated circuit | |
KR100397880B1 (en) | Digital circuit | |
JP2000350360A (en) | Power supply control system | |
JPS5720026A (en) | Touch switch circuit | |
JPS6133544A (en) | Microcomputer | |
SU839022A2 (en) | Relay trigger | |
JPS63219208A (en) | Oscillating circuit | |
JP2513032B2 (en) | Microcomputer input control circuit | |
JPS61140876A (en) | Semiconductor integrated circuit device | |
JP2967642B2 (en) | Flip-flop circuit | |
KR860003480Y1 (en) | Wait state signal generator of microprocessor | |
JPS62119623A (en) | Reset signal generating circuit | |
JPH11112310A (en) | Contact input signal processor | |
JP2557866Y2 (en) | Signal switching circuit | |
JPS61151483A (en) | Semiconductor circuit | |
JPH02214220A (en) | Semiconductor device | |
JPS62269216A (en) | Signal switching state holding circuit | |
JPH01250120A (en) | Clock control system | |
JPH02146814A (en) | Timer circuit | |
JPH01253311A (en) | Key input circuit | |
JPS6428937A (en) | Integrated circuit | |
JPH03263914A (en) | Signal waveform shaping circuit |