Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2612375B2 - Software switch - Google Patents
[go: Go Back, main page]

JP2612375B2 - Software switch - Google Patents

Software switch

Info

Publication number
JP2612375B2
JP2612375B2 JP2245420A JP24542090A JP2612375B2 JP 2612375 B2 JP2612375 B2 JP 2612375B2 JP 2245420 A JP2245420 A JP 2245420A JP 24542090 A JP24542090 A JP 24542090A JP 2612375 B2 JP2612375 B2 JP 2612375B2
Authority
JP
Japan
Prior art keywords
data
address
switch
input
specific
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 - Lifetime
Application number
JP2245420A
Other languages
Japanese (ja)
Other versions
JPH04125176A (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.)
Tec Corp
Original Assignee
Tec 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 Tec Corp filed Critical Tec Corp
Priority to JP2245420A priority Critical patent/JP2612375B2/en
Publication of JPH04125176A publication Critical patent/JPH04125176A/en
Application granted granted Critical
Publication of JP2612375B2 publication Critical patent/JP2612375B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Power Sources (AREA)
  • Direct Current Feeding And Distribution (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、ソフトウェアスイッチに関する。Description: TECHNICAL FIELD The present invention relates to a software switch.

[従来の技術] 例えば、印字装置の駆動制御ユニットは、CPU,ROM,RA
M等を含むコンピュータから形成され、主に電気的容量
の点からソフトウェアスイッチを介して周辺機器等の起
動・停止や切替を行なっている。
[Prior art] For example, a drive control unit of a printing apparatus includes a CPU, ROM, RA
It is formed of a computer including M, etc., and starts, stops, and switches peripheral devices and the like mainly through software switches in terms of electric capacity.

すなわち、第6図に示すようにコンピュータ1はアド
レスバス5,データバス6で接続されたCPU2,ROM3,RAM4か
らなり、ソフトウェアスイッチ10を介して周辺機器100
を起動等する。
That is, as shown in FIG. 6, the computer 1 comprises a CPU 2, a ROM 3, and a RAM 4 connected by an address bus 5 and a data bus 6.
Is started.

ここに、従来のソフトウェアスイッチ10は、アドレス
方式とされ、CPU2が特定アドレスをアクセスした場合に
動作するものと構成されている。第6図の場合、CPU2か
ら書込み入力されたアドレスが特定アドレスである場合
にアドレスデコード信号Sd(ON信号Sdn,OFF信号Sdf)を
発っするアドレスデコーダ11′と、アドレスデコード信
号Sdでドライブ素子41を介して電磁リレーなるスイッチ
51をON−OFFさせるスイッチ回路(フリップ・フロッ
プ)21′とから構成されている。
Here, the conventional software switch 10 is of an address type, and is configured to operate when the CPU 2 accesses a specific address. In the case of FIG. 6, the address decoder 11 'which issues an address decode signal Sd (ON signal Sdn, OFF signal Sdf) when the address written and input from the CPU 2 is a specific address, and the drive element 41 by the address decode signal Sd Through the electromagnetic relay becomes a switch
And a switch circuit (flip-flop) 21 'for turning ON / OFF the switch 51.

したがって、コンピュータ1内に周辺機器100を起動
・停止させるための特定アドレスを適時に出力するプロ
グラムを格納させておけば、ソフトウェアスイッチ10が
当該周辺機器100を適時に起動・停止させることができ
る。
Therefore, if a program that outputs a specific address for starting and stopping the peripheral device 100 in a timely manner is stored in the computer 1, the software switch 10 can start and stop the peripheral device 100 in a timely manner.

[発明が解決しようとする課題] ところで、上記印字装置等の場合、多機能化,小形軽
量化が益々要請され内部環境及び使用態様や設置場所の
外部環境が一段と厳しくなっていることから、外来ノイ
ズ等の影響によりCPU2が暴走する虞れが増している。
[Problems to be Solved by the Invention] By the way, in the case of the above-described printing apparatus, multifunctionality and small size and light weight are increasingly demanded, and the internal environment and the usage environment and the external environment of the installation place are further severed. The risk of runaway of the CPU 2 due to the influence of noise or the like is increasing.

すなわち、CPU2が暴走すると、特定アドレスを何回も
書込み、読取りするなどのアクセスミスを生じたり、特
定アドレスを含む所定領域内のアドレス群を飛越えたり
する現象が起こるので、ソフトウェアスイッチ10を何度
も誤動作させ、一連の円滑運転が妨げられるばかりか、
周辺機器100を焼損させてしまう等の問題が生ずる。
That is, if the CPU 2 runs away, an access error such as writing or reading a specific address many times may occur, or a phenomenon that the address jumps over a group of addresses in a predetermined area including the specific address may occur. Not only prevent malfunctions, but also prevent a series of smooth driving,
Problems such as burning of the peripheral device 100 occur.

つまり、アドレスバス5が8ビットであれば、CPU2が
暴走した場合、1/256の確率でソフトウェアスイッチ10
が誤動作する問題が内在している。
That is, if the address bus 5 is 8 bits, if the CPU 2 runs away, the software switch 10 has a probability of 1/256.
There is an inherent problem of malfunction.

本発明の目的は、CPUの暴走が生じたとしてもスイッ
チ誤動作を防止できるソフトウェアスイッチを提供する
ことにある。
An object of the present invention is to provide a software switch that can prevent a switch malfunction even when a CPU goes out of control.

[課題を解決するための手段] 請求項第1項記載の発明は、CPUから互いに異なる2
以上の特定アドレスが入力された場合にアドレスデコー
ド信号を出力するアドレスデコーダと、このアドレスデ
コード信号に基づいてスイッチをONさせるスイッチ回路
とからなる。
[Means for Solving the Problems] The invention according to claim 1 is characterized in that two different CPUs are used.
An address decoder that outputs an address decode signal when the above specific address is input, and a switch circuit that turns on a switch based on the address decode signal.

また、請求項第2項記載の発明は、CPUから互いに異
なる2以上の特定データが入力された場合にデータデコ
ード信号を出力するデータデコーダと、このデータデコ
ード信号に基づいてスイッチをONさせるスイッチ回路と
からなる。
According to a second aspect of the present invention, there is provided a data decoder for outputting a data decode signal when two or more specific data different from each other are input from a CPU, and a switch circuit for turning on a switch based on the data decode signal. Consists of

また、請求項第3項記載の発明は、CPUから入力され
たアドレスが特定アドレスである場合にアドレスデコー
ド信号を出力するアドレスデコーダと、CPUから入力さ
れたデータが特定データである場合にデータデコード信
号を出力するデータデコーダと、アドレスデコード信号
とデータデコード信号とが入力されたときにスイッチを
ONさせるスイッチ回路とからなる。
According to a third aspect of the present invention, there is provided an address decoder for outputting an address decode signal when an address input from the CPU is a specific address, and a data decoder for outputting an address decode signal when the data input from the CPU is the specific data. A data decoder for outputting a signal and a switch when an address decode signal and a data decode signal are inputted.
And a switch circuit for turning it on.

さらに、請求項第4項記載の発明は、CPUから特定ア
ドレスが入力された場合にアドレスデコード信号を出力
するアドレスデコーダと、アドレスデコード信号が特定
する同一アドレスにCPUから互いに異なる複数のデータ
が所定の順序で入力された場合にスイッチをONさせるス
イッチ回路とからなる。
Further, the invention according to claim 4 is characterized in that an address decoder that outputs an address decode signal when a specific address is input from the CPU, and that a plurality of data different from each other are specified by the CPU at the same address specified by the address decode signal. And a switch circuit for turning on the switch when the signals are input in the order of.

さらにまた、請求項第5項記載の発明は、CPUから互
いに異なる複数の特定アドレスが所定の順序で入力され
た場合に複数のアドレスデコード信号を所定の順序で出
力するアドレスデコーダと、各アドレスデコード信号に
相当する各特定アドレスごとに、CPUから所定の順序で
出力された互いに異なる各特定データが入力された場合
にスイッチをONさせるスイッチ回路とからなる。
Still further, the invention according to claim 5 is an address decoder for outputting a plurality of address decode signals in a predetermined order when a plurality of specific addresses different from each other are input from the CPU in a predetermined order. A switch circuit for turning on a switch when different specific data output from the CPU in a predetermined order is input for each specific address corresponding to a signal.

[作 用] 請求項第1項記載の発明では、アドレスデコーダはCP
Uから異なる2以上の特定アドレスが入力されたときに
のみアドレスデコード信号を出力する。すると、スイッ
チ回路がスイッチをON(OFF)する。したがって、CPUが
暴走しランダム的にアドレスが入力された場合には、ア
ドレスデコード信号が出力されないので、スイッチ誤動
作を防止できる。
[Operation] According to the first aspect of the present invention, the address decoder is a CP.
An address decode signal is output only when two or more different specific addresses are input from U. Then, the switch circuit turns the switch ON (OFF). Therefore, when the CPU goes out of control and an address is randomly input, no address decode signal is output, so that a switch malfunction can be prevented.

また、請求項第2項記載の発明では、データデコーダ
はCPUから異なる2以上の特定データが入力されたとき
にのみデータデコード信号を出力する。すると、スイッ
チ回路がスイッチをON(OFF)する。したがって、CPUが
暴走しランダム的にデータが入力された場合には、デー
タデコード信号が出力されることがないので、スイッチ
誤動作を防止できる。
In the second aspect, the data decoder outputs a data decode signal only when two or more different specific data are input from the CPU. Then, the switch circuit turns the switch ON (OFF). Therefore, when the CPU goes out of control and data is randomly input, a data decode signal is not output, so that a switch malfunction can be prevented.

また、請求項第3項記載の発明では、アドレスデコー
ダはCPUから特定アドレスが入力された場合にのみアド
レスデコード信号を出力し、データデコーダはCPUから
特定データが入力された場合にのみデータデコード信号
を出力する。すると、スイッチ回路はCPUから特定アド
レスにおいて特定データが入力されたときつまり予め決
めた特定データを特定の番地に書込みしたときのみに、
スイッチをON−OFFさせる。したがって、特定のアドレ
スとデータとが同時的に入力されない限りスイッチがON
されることはなく、CPUの暴走による誤動作を防止でき
る。
In the third aspect, the address decoder outputs an address decode signal only when a specific address is input from the CPU, and the data decoder outputs a data decode signal only when the specific data is input from the CPU. Is output. Then, when the specific data is input at the specific address from the CPU, that is, only when the predetermined specific data is written to the specific address,
Turn the switch ON-OFF. Therefore, unless a specific address and data are input simultaneously, the switch will be ON.
It is possible to prevent malfunction due to CPU runaway.

さらに、請求項第4項記載の発明では、アドレスデコ
ーダから出力されたアドレスデコード信号があるとき
に、CPUから互いに異なる複数のデータが所定の順序で
入力された場合つまり予め決めた複数の異なる特定デー
タを予め決めた順序で同一の特定アドレスに書込み入力
した場合に限り、スイッチ回路はスイッチをONさせる。
したがって、一段と完全にCPUの暴走によるスイッチ誤
動作を防止できる。
Furthermore, in the invention according to claim 4, when there is an address decode signal output from the address decoder, a plurality of different data are input from the CPU in a predetermined order, that is, a plurality of different specified The switch circuit turns on the switch only when data is written and input to the same specific address in a predetermined order.
Therefore, it is possible to more completely prevent a switch malfunction due to runaway of the CPU.

さらにまた、請求項第5項記載の発明では、スイッチ
回路は所定の順序でアドレスデコーダから入力された各
アドレスデコード信号に対応してCPUから所定の順序で
互いに異なる対応特定データが入力された場合、つまり
予め決めた複数の異なる特定データを異なる特定アドレ
スに予め決めた順序で書込み入力された場合に限りスイ
ッチをONさせるので、CPUの暴走によるスイッチ誤動作
を一層完璧に防止できる。
Furthermore, in the invention according to claim 5, the switch circuit is configured to receive different specific data from the CPU in a predetermined order corresponding to each address decode signal input from the address decoder in a predetermined order. In other words, the switch is turned on only when a plurality of different specific data determined in advance are written and input to different specific addresses in a predetermined order, so that switch malfunction due to runaway of the CPU can be more completely prevented.

[実施例] 本発明の実施例を図面を参照して説明する。Example An example of the present invention will be described with reference to the drawings.

(第1実施例) 第1図において、ソフトウェアスイッチ10は、アドレ
スデコーダ11とスイッチ回路21とドライブ素子41と電磁
リレーからなるスイッチ51とから構成され、複数(この
実施例では2つ)の相異なる特定アドレスがシリーズ
的,1組的にアクセスつまり書込み入力された場合にのみ
アドレスデコード信号Saを出力してスイッチ51をON−OF
Fするように形成されている。
(First Embodiment) In FIG. 1, a software switch 10 includes an address decoder 11, a switch circuit 21, a drive element 41, and a switch 51 composed of an electromagnetic relay. Only when different specific addresses are accessed in series or one set, that is, written and input, the address decode signal Sa is output and the switch 51 is turned ON-OF.
F is formed.

すなわち、アドレスデコーダ11は、アドレスバス5を
介してCPU2から第1の特定アドレスが書込み入力された
場合に第1アドレスデコード信号Sa1nを、第2の特定ア
ドレスが書込み入力された場合に第2の特定アドレスデ
コード信号Sa2nをスイッチ回路21に出力する。このスイ
ッチ回路21は、2つのフリップ・フロップ22,24と負論
理AND回路23とからなり、第1アドレスデコード信号Sa1
nと第2アドレスデコード信号Sa2nがこの順序で入力さ
れた場合に駆動信号Sを出力するものとされている。ま
た、アドレスデコーダ11から出力される第3アドレスデ
コード信号Safでフリップ・フロップ24がリセットさ
れ、続いて、これに基づくリセット信号RSTでフリップ
・フロップ22がリセットされるものとされ、駆動信号S
をOFFする。
That is, the address decoder 11 outputs the first address decode signal Sa1n when the first specific address is written and input from the CPU 2 via the address bus 5, and outputs the second address decode signal Sa1n when the second specific address is written and input. The specific address decode signal Sa2n is output to the switch circuit 21. The switch circuit 21 includes two flip-flops 22 and 24 and a negative logic AND circuit 23, and outputs a first address decode signal Sa1.
The drive signal S is output when n and the second address decode signal Sa2n are input in this order. The flip-flop 24 is reset by a third address decode signal Saf output from the address decoder 11, and subsequently, the flip-flop 22 is reset by a reset signal RST based on the flip-flop 24.
To OFF.

そして、駆動信号Sでドライブ素子41がON(OFF)さ
れた場合に、スイッチ51がON(OFF)される。
Then, when the drive element 41 is turned ON (OFF) by the drive signal S, the switch 51 is turned ON (OFF).

なお、この実施例では、CPU2,アドレスバス5等は前
出第6図に示す如く印字装置の駆動制御ユニット1を構
成するものとされ、スイッチ51には同じく周辺機器100
が接続されている。
In this embodiment, the CPU 2, the address bus 5 and the like constitute the drive control unit 1 of the printing apparatus as shown in FIG.
Is connected.

しかして、この実施例によれば、ソフトウェアスイッ
チ10のアドレスデコーダ11に互いに異なる2つの第1,第
2特定アドレスが入力された場合にのみスイッチ51をON
し、第3の特定アドレスが入力された場合にスイッチ51
をOFFさせる構成であるから、CPU2が暴走して同一また
は複数のランダム的なアドレスが入力された場合には、
スイッチ51をONさせることがなく、誤動作を確率的に防
止することができる。
According to this embodiment, the switch 51 is turned ON only when two different first and second specific addresses are input to the address decoder 11 of the software switch 10.
When the third specific address is input, the switch 51
Is turned off, so if CPU 2 runs away and the same or multiple random addresses are input,
A malfunction can be stochastically prevented without turning on the switch 51.

なお、スイッチ51をONさせる特定アドレスを、2つと
して2つのアドレスデコード信号Sd1n,Sd2nを出力する
ものとしたが、その数は2以上であれば任意に選択して
構築することができる。また、周辺機器100に対しては
焼損等に対しセフティーサイド側であるスイッチ51をOF
Fさせるための特定アドレスについては、1つとして1
つのアドレスデコード信号Sdfを出力するものと構成し
たが、この数も適宜に選択して実施できる。
The two address decode signals Sd1n and Sd2n are output when the number of the specific addresses for turning on the switch 51 is two, but the number can be arbitrarily selected and constructed as long as the number is two or more. For the peripheral device 100, turn off the switch 51 on the safety side for burnout etc.
As for the specific address for F
Although one address decode signal Sdf is configured to be output, this number can be appropriately selected and implemented.

(第2実施例) 第2実施例は第2図に示される。Second Embodiment A second embodiment is shown in FIG.

この実施例では、第1実施例が2以上の特定アドレス
でスイッチ51をONするものとされていたのに対して、互
いに異なる複数(この実施例では2つ)の特定データで
スイッチ51をONし、1つの特定データでOFFするものと
構成されている。
In this embodiment, the switch 51 is turned on at two or more specific addresses in the first embodiment, whereas the switch 51 is turned on with a plurality of (two in this embodiment) specific data different from each other. It is configured to be turned off by one specific data.

したがって、データデコーダ12は、スイッチ51をONさ
せる2つのデータデコード信号Sd1n,Sd2nと、OFFさせる
1つのデータデコード信号Sdfをスイッチ回路21に出力
するものとされている。他の構成,作用効果は第1実施
例から容易に推考できるので詳細説明は割愛する。
Therefore, the data decoder 12 outputs two data decode signals Sd1n and Sd2n for turning on the switch 51 and one data decode signal Sdf for turning off the switch 51 to the switch circuit 21. Since other configurations, functions and effects can be easily inferred from the first embodiment, detailed description is omitted.

(第3実施例) この実施例は第3図に示される如く、CPU2から書込み
入力されたアドレスが特定アドレスである場合にアドレ
スデコード信号Saaを出力するアドレスデコーダ11Aと、
書込み入力されたデータが特定データである場合にデー
タデコード信号Sdaを出力するデータデコーダ12Aと、両
信号Saa,Sdaが入力された場合に駆動信号Sを出力するN
ANDゲートからなるスイッチ回路21Aを含み、ソフトウェ
アスイッチ10を構成している。なお、第3図ではドライ
ブ素子41とスイッチ51とを図示省略している。
(Third Embodiment) In this embodiment, as shown in FIG. 3, an address decoder 11A that outputs an address decode signal Saa when an address written and input from the CPU 2 is a specific address,
A data decoder 12A that outputs a data decode signal Sda when the input data is specific data, and an N that outputs a drive signal S when both signals Saa and Sda are input.
The software switch 10 includes a switch circuit 21A formed of an AND gate. In FIG. 3, the drive element 41 and the switch 51 are not shown.

すなわち、特定アドレスにおいて特定データが書込み
入力された場合に限り駆動信号Sを出力し、スイッチ51
をONさせるように構成されている。したがって、CPU2の
暴走によりアドレスおよびデータの少なくとも一方が正
常でなくなるとスイッチ51はONされないから、一層確実
にスイツチ誤動作を防止できる。
That is, the drive signal S is output only when specific data is written and input at a specific address, and the switch 51 is output.
Is turned on. Therefore, if at least one of the address and the data becomes abnormal due to the runaway of the CPU 2, the switch 51 is not turned on, so that the malfunction of the switch can be prevented more reliably.

(第4実施例) この第4実施例は、第4図に示す如く、1つのアドレ
スデコーダ11Aとスイッチ回路31とから構成され、1つ
の特定アドレスに互いに異なる複数のデータが所定順序
で入力された場合に、駆動信号Sを出力するものと形成
されている。
(Fourth Embodiment) In the fourth embodiment, as shown in FIG. 4, one address decoder 11A and a switch circuit 31 are provided, and a plurality of data different from each other are input to one specific address in a predetermined order. In such a case, the driving signal S is output when the driving is performed.

11Aはアドレスデコーダで、CPU2から特定のアドレス
が書込み入力された場合に、アドレスデコード信号Saa
をスイッチ回路31に出力する。
11A is an address decoder, and when a specific address is written and input from the CPU 2, an address decode signal Saa
Is output to the switch circuit 31.

このスイッチ回路31は、データバス6,33B,33C,33Dで
接続された、3つのデータラッチ回路32B,32C,32Dと4
つのデータデコーダ12A〜12DとNANDゲート34とから形成
されている。
The switch circuit 31 includes three data latch circuits 32B, 32C, 32D and 4 connected by data buses 6, 33B, 33C, 33D.
One of the data decoders 12A to 12D and a NAND gate 34 are formed.

アドレスデコード信号Saaは、各データラッチ回路32B
〜32Dに共通のラッチトリガ信号となり、データラッチ
回路32B〜32Dは3段のシフトレジスタを構成する。
The address decode signal Saa is supplied to each data latch circuit 32B.
To 32D, and the data latch circuits 32B to 32D constitute a three-stage shift register.

したがって、4つのデータを書込み入力すると、各デ
ータは順次シフトされ、第1番目のデータはデータラッ
チ回路32Dにラッチされかつデータデコーダ12Dに入力さ
れる。第2番目のデータはデータラッチ回路32Cにラッ
チされかつデータデコーダ12Cに入力される。第3番目
のデータはデータラッチ回路32Bにラッチされかつデー
タデコーダ12Bに入力される。また、第4番目の特定デ
ータはデータデコーダ12Aに入力される。
Therefore, when four data are written and input, each data is sequentially shifted, and the first data is latched by the data latch circuit 32D and input to the data decoder 12D. The second data is latched by the data latch circuit 32C and input to the data decoder 12C. The third data is latched by the data latch circuit 32B and input to the data decoder 12B. The fourth specific data is input to the data decoder 12A.

そして、第1〜第4番目の各データがそれぞれに決め
られた特定データであると、各データデコーダ12A〜12D
からデータデコード信号Sda〜SddがNANDゲート34に入力
される。また、NANDゲート34には、データデコード信号
Sdaと対応するアドレスデコード信号Saaが入力される。
If each of the first to fourth data is specific data determined respectively, each of the data decoders 12A to 12D
, The data decode signals Sda to Sdd are input to the NAND gate 34. The NAND gate 34 has a data decode signal.
An address decode signal Saa corresponding to Sda is input.

したがって、予め決められた互いに異なる4つ(複
数)の特定データを、予め決められた順番で特定アドレ
スに書込み入力された場合に限り、NANDゲート34から駆
動信号Sが出力される。
Therefore, the drive signal S is output from the NAND gate 34 only when four (plural) different specific data which are predetermined and different from each other are written and input to the specific address in a predetermined order.

よって、CPU2の暴走によるスイッチ51の誤動作を完全
に防止できる。
Therefore, malfunction of the switch 51 due to runaway of the CPU 2 can be completely prevented.

(第5実施例) この実施例は、第5図に示される。(Fifth Embodiment) This embodiment is shown in FIG.

このソフトウェアスイッチ10は、ライトストローブ信
号RSで書込み入力された4つ(複数)のアドレスが特定
アドレスであり、かつ所定の順序で入力された場合にア
ドレスデコード信号Sa1〜Sa4を出力するデータデコーダ
11Bと、スイッチ回路31Aとから構成され、予め決められ
た4つ(複数)の互いに異なるデータが、互いに異なる
4つの特定アドレスに予め決められた順番で書込み入力
された場合にのみ、駆動信号Sを出力するものと形成さ
れている。
The software switch 10 is a data decoder that outputs address decode signals Sa1 to Sa4 when four (plural) addresses written and input by the write strobe signal RS are specific addresses and are input in a predetermined order.
11B and a switch circuit 31A. The drive signal S is output only when predetermined four (plural) different data are written and input to four different specific addresses in a predetermined order. Is output.

このためにスイッチ回路31Aを、データバス6に接続
された3つのデータラッチ回路35A,35B,35Cと、各デー
タラッチ回路35A〜35Cにバス38A〜38Cで接続されかつ各
入力データがそれぞれに異なる特定データである場合に
各データデコード信号Sda〜Sdcを出力するデータデコー
ダ12A〜12Cおよびバス6に接続され入力データが他と異
なる特定データである場合にデータデコード信号Sddを
出力するデータデコーダ12Dと、アドレスデコード信号S
a2(Sa3)とデータデコード信号Sda(Sdb)とが入力さ
れた場合にデータラッチ信号La(Lb)を出力する負論理
ANDゲート36A,36Bと、データデコード信号Sdcとともに
アドレスデコード信号Sa4およびデータデコード信号Sdd
とが入力された場合に駆動信号Sを出力するNANDゲート
34Aと、駆動信号Sを遅延してデータラッチ回路35A〜35
Cにラッチクリア信号Lcrを出力する信号遅延回路37とか
ら構成している。
For this purpose, the switch circuit 31A is connected to three data latch circuits 35A, 35B, 35C connected to the data bus 6 and to the data latch circuits 35A to 35C via buses 38A to 38C, and the input data is different from each other. A data decoder 12A to output data decode signals Sda to Sdc when the data is specific data and a data decoder 12D connected to the bus 6 and outputting a data decode signal Sdd when the input data is specific data different from the others. , Address decode signal S
Negative logic that outputs data latch signal La (Lb) when a2 (Sa3) and data decode signal Sda (Sdb) are input
AND gates 36A and 36B, address decode signal Sa4 and data decode signal Sdd together with data decode signal Sdc
NAND gate that outputs drive signal S when is input
34A and the data latch circuits 35A to 35
And a signal delay circuit 37 that outputs a latch clear signal Lcr to C.

したがって、予め決められた第1番目の特定アドレス
(Sa1)に予め決められた第1番目の特定データが書込
み入力されるとデータデコーダ12Aからデータデコード
信号Sdaが出力され、その後に第2番目の特定アドレス
が書込まれたときにアドレスデコーダ11Bからアドレス
デコード信号Sa2が出力され、かつ第2番目の特定デー
タがデータラッチ回路35Bに書込み入力されるとデータ
デコーダ12Bからデータデコード信号Sdaが出力され、引
続いて第3番目の特定アドレス(Sa3)に第3番目の特
定データが書込み入力されるとデータデコーダ12Cから
データデコード信号Sdcが出力される。つまり、データ
デコード信号Sdcは、アドレスデコーダ11Bに書込み入力
された第1番目〜第3番目のアドレスが予め決められた
相異なる特定アドレスであり、かつ各特定アドレスに予
め決められた相異なる第1番目〜第3番目の特定データ
が予め決められた順序で入力された場合にのみ、出力さ
れるものである。
Therefore, when the predetermined first specific data is written and input to the predetermined first specific address (Sa1), the data decode signal Sda is output from the data decoder 12A, and then the second data is output. When the specific address is written, the address decoder 11B outputs the address decode signal Sa2, and when the second specific data is written and input to the data latch circuit 35B, the data decoder 12B outputs the data decode signal Sda. Subsequently, when the third specific data is written and input to the third specific address (Sa3), the data decoder 12C outputs the data decode signal Sdc. That is, the data decode signal Sdc is such that the first to third addresses written and input to the address decoder 11B are different predetermined specific addresses, and the different first addresses predetermined for each specific address. It is output only when the third to third specific data are input in a predetermined order.

そして、第4番目の特定アドレスに第4番目の特定デ
ータが書込み入力されたか否かはNANDゲート34Aで直接
判断されるわけである。
Then, whether or not the fourth specific data is written and input to the fourth specific address is directly determined by the NAND gate 34A.

しかして、この実施例によれば、予め決められた複数
(4つ)の互いに異なる特定データを特定の互いに異な
る特定アドレスに予め決められた順番で書込み入力する
ことによってのみ、駆動信号Sを出力してスイッチ51を
ONする構成であるから、CPU2の暴走によるスイッチ誤動
作を完璧に防止できる。
Therefore, according to this embodiment, the drive signal S is output only by writing and inputting a plurality of (four) different specific data which are predetermined to specific different specific addresses in a predetermined order. And switch 51
Since the switch is turned ON, switch malfunction due to runaway of CPU2 can be completely prevented.

なお、各実施例における構成要素は、上記例示品に限
定されず任意に選択して構築することができる。
The components in each embodiment are not limited to the above-described examples, and can be arbitrarily selected and constructed.

[発明の効果] 以上の通り、請求項第1項記載の発明によれば、互い
に異なる2以上の特定アドレスが入力された場合にのみ
出力されるアドレスデコード信号でスイッチをONさせる
構成であるから、CPUの暴走によるスイッチ誤動作を確
立的に防止できる。
[Effects of the Invention] As described above, according to the first aspect of the present invention, the switch is turned on by an address decode signal output only when two or more specific addresses different from each other are input. In addition, switch malfunction due to runaway of the CPU can be reliably prevented.

また、請求項第2項記載の発明によれば、互いに異な
る2以上の特定データが入力された場合にのみ出力され
るデータデコード信号でスイッチをONさせる構成である
から、CPUの暴走によるスイッチ誤動作を確立的に防止
できる。
According to the second aspect of the present invention, the switch is turned on by a data decode signal output only when two or more specific data different from each other are input. Can be reliably prevented.

また、請求項第3項記載の発明によれば、特定アドレ
スと特定データとがともに入力された場合にのみ出力さ
れる駆動信号でスイッチをONさせる構成であるから、CP
Uの暴走によるスイッチ誤動作を一層確実に防止でき
る。
According to the third aspect of the present invention, the switch is turned on by the drive signal output only when the specific address and the specific data are both input.
Switch malfunction due to runaway of U can be more reliably prevented.

さらに、請求項第4項記載の発明によれば、予め決め
た複数の異なる特定データを予め決めた同一の特定アド
レスに書込み入力された場合にのみスイッチをONする構
成であるから、CPUが暴走してもスイッチ誤動作を完全
に防止できる。
Further, according to the invention described in claim 4, the switch is turned ON only when a plurality of different specific data determined in advance is written and input to the same predetermined specific address, so that the CPU runs out of control. In this case, the switch malfunction can be completely prevented.

さらに、請求項第5項記載の発明によれば、予め決め
た複数の相異なる特定データを相異なる複数の特定アド
レスに対応させて予め決めた順序で書込み入力された場
合に限りスイッチをONさせる構成であるから、スイッチ
誤動作を完璧に防止できる。
According to the fifth aspect of the present invention, the switch is turned ON only when a plurality of predetermined different specific data are written and input in a predetermined order in correspondence with a plurality of different specific addresses. With this configuration, switch malfunction can be completely prevented.

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

第1図は本発明の第1実施例を示す回路図、第2図は本
発明の第2実施例を示す回路図、第3図は本発明の第3
実施例を示す回路図、第4図は本発明の第4実施例を示
す回路図、第5図は本発明の第5実施例を示す回路図、
および第6図は従来のソフトウェアスイッチの回路図で
ある。 1……コンピュータ、 2……CPU、 5……アドレスバス、 6……データバス、 10……ソフトウェアスイッチ、 11,11A,11B,11′……アドレスデコーダ、 12,12A,12B,12C,12D……データデコーダ、 21,21A,31,31A……スイッチ回路、 22,24……フリップ・フロップ、 32B,32C,32D、35A,35B,3C……データラッチ回路、 37……信号遅延回路、 41……ドライブ素子、 51……スイッチ。
FIG. 1 is a circuit diagram showing a first embodiment of the present invention, FIG. 2 is a circuit diagram showing a second embodiment of the present invention, and FIG.
FIG. 4 is a circuit diagram showing a fourth embodiment of the present invention, FIG. 5 is a circuit diagram showing a fifth embodiment of the present invention,
And FIG. 6 is a circuit diagram of a conventional software switch. 1 ... Computer, 2 ... CPU, 5 ... Address bus, 6 ... Data bus, 10 ... Software switch, 11,11A, 11B, 11 '... Address decoder, 12,12A, 12B, 12C, 12D …… Data decoder, 21,21A, 31,31A… Switch circuit, 22,24… Flip flop, 32B, 32C, 32D, 35A, 35B, 3C …… Data latch circuit, 37 …… Signal delay circuit, 41: Drive element, 51: Switch.

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】CPUから互いに異なる2以上の特定アドレ
スが入力された場合にアドレスデコード信号を出力する
アドレスデコーダと、このアドレスデコード信号に基づ
いてスイッチをONさせるスイッチ回路とからなるソフト
ウェアスイッチ。
1. A software switch comprising: an address decoder that outputs an address decode signal when two or more specific addresses different from each other are input from a CPU; and a switch circuit that turns on a switch based on the address decode signal.
【請求項2】CPUから互いに異なる2以上の特定データ
が入力された場合にデータデコード信号を出力するデー
タデコーダと、このデータデコード信号に基づいてスイ
ッチをONさせるスイッチ回路とからなるソフトウェアス
イッチ。
2. A software switch comprising: a data decoder for outputting a data decode signal when two or more specific data different from each other are input from a CPU; and a switch circuit for turning on a switch based on the data decode signal.
【請求項3】CPUから入力されたアドレスが特定アドレ
スである場合にアドレスデコード信号を出力するアドレ
スデコーダと、CPUから入力されたデータが特定データ
である場合にデータデコード信号を出力するデータデコ
ーダと、アドレスデコード信号とデータデコード信号と
が入力されたときにスイッチをONさせるスイッチ回路と
からなるソフトウェアスイッチ。
3. An address decoder for outputting an address decode signal when an address input from a CPU is a specific address, and a data decoder for outputting a data decode signal when data input from the CPU is specific data. And a switch circuit for turning on the switch when an address decode signal and a data decode signal are input.
【請求項4】CPUから特定アドレスが入力された場合に
アドレスデコード信号を出力するアドレスデコーダと、
アドレスデコード信号が特定する同一アドレスにCPUか
ら互いに異なる複数のデータが所定の順序で入力された
場合にスイッチをONさせるスイッチ回路とからなるソフ
トウェアスイッチ。
4. An address decoder for outputting an address decode signal when a specific address is input from a CPU,
And a switch circuit for turning on the switch when a plurality of different data are input from the CPU in a predetermined order to the same address specified by the address decode signal.
【請求項5】CPUから互いに異なる複数の特定アドレス
が所定の順序で入力された場合に複数のアドレスデコー
ド信号を所定の順序で出力するアドレスデコーダと、各
アドレスデコード信号に相当する各特定アドレスごと
に、CPUから所定の順序で出力された互いに異なる各特
定データが入力された場合にスイッチをONさせるスィツ
チ回路とからなるソフトウェアスイッチ。
5. An address decoder for outputting a plurality of address decode signals in a predetermined order when a plurality of specific addresses different from each other are input from a CPU in a predetermined order, and for each specific address corresponding to each address decode signal. And a switch circuit for turning on the switch when specific data different from each other output from the CPU in a predetermined order are input.
JP2245420A 1990-09-14 1990-09-14 Software switch Expired - Lifetime JP2612375B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2245420A JP2612375B2 (en) 1990-09-14 1990-09-14 Software switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2245420A JP2612375B2 (en) 1990-09-14 1990-09-14 Software switch

Publications (2)

Publication Number Publication Date
JPH04125176A JPH04125176A (en) 1992-04-24
JP2612375B2 true JP2612375B2 (en) 1997-05-21

Family

ID=17133394

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2245420A Expired - Lifetime JP2612375B2 (en) 1990-09-14 1990-09-14 Software switch

Country Status (1)

Country Link
JP (1) JP2612375B2 (en)

Also Published As

Publication number Publication date
JPH04125176A (en) 1992-04-24

Similar Documents

Publication Publication Date Title
JP5535547B2 (en) Secure memory interface
JP2005234932A (en) Matrix-like bus connection system and power reducing method therefor
JP2612375B2 (en) Software switch
KR20010077995A (en) Collision Detection for DualPort RAM Operations on a Microcontroller
JPH06180675A (en) Method and apparatus for inspecting validity of bus configuration of multiple-source disk array bus
JPH064301A (en) Time division interrupt control method
JP2664144B2 (en) Multiplexing device switching method and device
JPH0238969B2 (en)
WO2000017756A1 (en) Signal processor
JPH0751609Y2 (en) Failure information storage circuit of programmable controller
JPH03100844A (en) Chance memory controller
KR940006828B1 (en) State machine in the I / O handler
JPH10333920A (en) Interruption processing circuit
VGA et al. Functional Block Diagram
JPS6037936B2 (en) monitoring device
JPH01121967A (en) Microprocessor with built-in prom
JP2002091826A (en) Information processor
JPH10143462A (en) Microcomputer
JP2004240810A (en) Test circuit
JPH0296851A (en) Access circuit
JPH0215353A (en) Abnormality setting system at specific address
JPH04236637A (en) Microprocessor fault detecting circuit
JPS6042977B2 (en) common memory controller
JPH02242452A (en) Memory card
JPH01241658A (en) Input/output controller