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
JP2863249B2 - Reset method - Google Patents
[go: Go Back, main page]

JP2863249B2 - Reset method - Google Patents

Reset method

Info

Publication number
JP2863249B2
JP2863249B2 JP2069829A JP6982990A JP2863249B2 JP 2863249 B2 JP2863249 B2 JP 2863249B2 JP 2069829 A JP2069829 A JP 2069829A JP 6982990 A JP6982990 A JP 6982990A JP 2863249 B2 JP2863249 B2 JP 2863249B2
Authority
JP
Japan
Prior art keywords
reset
signal
circuit
input
output bus
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
JP2069829A
Other languages
Japanese (ja)
Other versions
JPH03271908A (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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2069829A priority Critical patent/JP2863249B2/en
Publication of JPH03271908A publication Critical patent/JPH03271908A/en
Application granted granted Critical
Publication of JP2863249B2 publication Critical patent/JP2863249B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、入出力バスに送出されたリセット信号で、
前記入出力バスに接続されている装置を初期状態にセッ
トし直すリセット方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a reset signal transmitted to an input / output bus,
The present invention relates to a reset method for resetting a device connected to the input / output bus to an initial state.

[従来の技術] 小型コンピュータ用の入出力バスとして規格化された
インタフェースとして、ANSI規格で規格化されたSCSI
(スモール・コンピュータ・システム・インタフェース
の略)があり、このSCSIを入出力バスとして使用した小
型コンピュータシステムのシステム形態としては、次の
2つの形態が知られている。
[Prior Art] SCSI standardized by the ANSI standard as an interface standardized as an input / output bus for small computers
(Short for small computer system interface), and the following two forms are known as system forms of a small computer system using this SCSI as an input / output bus.

第1は、第2図に示すように、ホストコンピュータ1
と、1台あるいは複数台(図は2台の場合を示す)の周
辺装置2,3とがSCSI4で接続されている形態である。
First, as shown in FIG.
In this embodiment, one or more peripheral devices 2 and 3 (in the figure, two devices are shown) are connected by SCSI4.

第2は、第3図に示すように、複数台のホストコンピ
ュータ5,6(図は2台の場合を示す)と、1台あるいは
複数台(図は2台の場合を示す)の周辺装置7,8とがSCS
I4で接続されている形態である。
Second, as shown in FIG. 3, a plurality of host computers 5, 6 (FIG. 2 shows the case of two computers) and one or a plurality of peripheral devices (FIG. 3 shows the case of two computers). 7,8 and SCS
This is the form connected by I4.

従来、前記第1の形態の場合には、ホストコンピュー
タ1が周辺装置2,3を初期状態(立ち上げ直後の状態を
言う)にリセットする場合、入出力バスであるSCSI4上
にリセット信号を送出し、そのリセット信号で周辺装置
2,3を強制的に(即ち、その動作状態に拘わらず、直ち
に)初期状態にしていた。
Conventionally, in the case of the first embodiment, when the host computer 1 resets the peripheral devices 2 and 3 to an initial state (meaning a state immediately after startup), a reset signal is transmitted on the SCSI 4 which is an input / output bus. And the peripheral device
A few were forced to an initial state (ie, immediately, regardless of their operating state).

また、第2の形態の場合には、ホストコンピュータ5
が、ホストコンピュータ6と周辺装置7,8とを初期状態
にするために、入出力バスであるSCSI4上にリセット信
号を送出すると、ホストコンピュータ6は、まず、その
リセット信号を受けた時点での各部位の動作状態と実行
中のコマンドをどこまで実行したか等を記憶し、その後
にSCSIとの連絡を断つようにしており、いわば、能動的
に初期状態にする。しかし、周辺装置7,8は、第1の形
態の場合と同様に、強制的に初期状態としている。
In the case of the second embodiment, the host computer 5
Sends a reset signal on the SCSI 4, which is an input / output bus, to initialize the host computer 6 and the peripheral devices 7 and 8. When the host computer 6 receives the reset signal, The operating state of each part, the extent to which the command being executed has been executed, and the like are stored, and thereafter, the communication with the SCSI is cut off. However, the peripheral devices 7 and 8 are forcibly set to the initial state as in the case of the first embodiment.

即ち、従来では、入出力バスに送出されたリセット信
号で前記入出力バスに接続されている装置を初期状態に
セットし直すリセット方式として、強制的に初期状態と
するものと、能動的に初期状態にするものとがあった。
これらの従来のリセット方式を、装置構成を具体的に示
して説明すると、次の如くである。
That is, in the related art, as a reset method for resetting a device connected to the input / output bus to an initial state by a reset signal sent to the input / output bus, a method for forcibly setting an initial state and a method for actively initializing There was something to put in a state.
These conventional reset methods will be described below by specifically showing the device configuration.

強制的に初期状態にするリセット方式の場合(即ち、
前記周辺装置2,3,7,8などの場合)では、第4図に示す
ように、CPU10がメモリ11に格納されているプログラム
を実行し、FDDコントローラ12を介してFDD13にアクセス
を行ったり、機構部インターフェース14を介して機構部
15を動作させたり、バスコントローラ16を介してSCSI4
に接続されている他の装置との間でデータのやりとりを
行っている最中に、ホストコンピュータがSCSI4に送出
したリセット信号19をリセットレシーバ17が受けとる
と、直ちに、このリセットレシーバ17が装置内部に対し
てリセット信号を出力し、各部位の動作状態に拘わら
ず、実行中の動作を直ちに停止させて初期状態にする。
In the case of the reset method that forcibly initializes the state (that is,
In the case of the peripheral devices 2, 3, 7, 8, etc., as shown in FIG. 4, the CPU 10 executes a program stored in the memory 11 to access the FDD 13 via the FDD controller 12. , The mechanism via the mechanism interface 14
Operate 15 or SCSI4 via bus controller 16
As soon as the reset receiver 17 receives the reset signal 19 sent to the SCSI 4 by the host computer while exchanging data with another device connected to the device, the reset receiver 17 , A stop signal is output, and the operation under execution is immediately stopped regardless of the operation state of each part to return to the initial state.

また、能動的に初期状態にするリセット方式の場合
(即ち、ホストコンピュータ5,6などの場合)では、第
5図に示すように、CPU20がメモリ21に格納されている
プログラムを実行し、FDDコントローラ22を介してFDD23
にアクセスを行ったり、機構部インターフェース24を介
して機構部25を動作させたり、バスコントローラ26を介
してSCSI4に接続されている他の装置との間でデータの
やりとりを行っている最中に、他方のホストコンピュー
タがSCSI4に送出したリセット信号30をリセットレシー
バ28が受けとると、まず、割り込み発生回路27が作動さ
せられ、この割り込み発生回路27がCPU20に割り込み信
号を送出する。すると、CPU20は、処理中のデータの保
護を行い、かつ、動作中のFDD13や、機構部15を停止さ
せ、その後、SCSI4とバスコントローラ26との連絡を断
って、初期状態にする。
Further, in the case of the reset method for actively resetting to the initial state (that is, in the case of the host computers 5 and 6, etc.), the CPU 20 executes the program stored in the memory 21 as shown in FIG. FDD23 via controller 22
While accessing the device, operating the mechanism 25 via the mechanism interface 24, and exchanging data with other devices connected to the SCSI 4 via the bus controller 26. When the reset receiver 28 receives the reset signal 30 sent to the SCSI 4 by the other host computer, first, the interrupt generation circuit 27 is activated, and the interrupt generation circuit 27 sends an interrupt signal to the CPU 20. Then, the CPU 20 protects the data being processed, stops the operating FDD 13 and the mechanism unit 15, and then cuts off the communication between the SCSI 4 and the bus controller 26 to return to the initial state.

[発明が解決しようとする課題] しかしながら、従来のリセット方式では、いずれも、
次のような点で問題があった。
[Problems to be Solved by the Invention] However, in the conventional reset method,
There were problems in the following points.

例えば、第4図に示した強制的にリセットする方式で
は、装置が機構部15として、OCRやプリンタやイメージ
スキャナ等を備えたもので、これらの機構部15が動作中
に入出力バス(即ち、SCSI4)からのリセット信号を受
けとった場合、直ちに強制的に初期状態にされるため、
機構部が損傷したり、処理中のデータが失われるという
不都合が発生する虞れがあった。
For example, in the forced reset method shown in FIG. 4, the apparatus is provided with an OCR, a printer, an image scanner, or the like as the mechanism section 15, and the input / output bus (ie, , SCSI4), when it receives a reset signal, it is immediately forcibly initialized.
There is a possibility that the mechanism may be damaged or data being processed may be lost.

また、第5図に示した能動的にリセットする方式で
は、リセット信号を受ける装置のCPU20が何らかの原因
でプログラム暴走等の動作不能状態に落ち入った場合に
は、入出力バス(即ち、SCSI4)からのリセット信号に
応答する処理を実行できず、従って、初期状態にするこ
とができなくなる。
In the active reset method shown in FIG. 5, when the CPU 20 of the device receiving the reset signal falls into an inoperable state such as a program runaway for some reason, an input / output bus (ie, SCSI4) is used. Cannot execute the process in response to the reset signal from, and therefore cannot be set to the initial state.

本発明は、前記事情に鑑みてなされたもので、入出力
バスに送出されたリセット信号で、前記入出力バスに接
続されている装置を初期状態にセットし直すリセット方
式であって、リセットすべき装置のCPUの動作状態に拘
わらず確実にその装置を初期状態にリセットすることが
でき、しかも、リセットによる機構部の損傷やデータの
消失を大幅に低減させることのできるリセット方式を提
供することを目的とする。
The present invention has been made in view of the above circumstances, and is a reset method for resetting a device connected to the input / output bus to an initial state by a reset signal sent to the input / output bus. To provide a reset method that can surely reset the device to the initial state regardless of the operation state of the CPU of the device to be replaced, and that can significantly reduce damage to the mechanism and data loss due to the reset. With the goal.

[課題を解決するための手段] 本発明に係るリセット方式は、入出力バスに送出され
たリセット信号で、前記入出力バスに接続されている装
置を初期状態にセットし直すリセット方式であって、前
記入出力バスに接続される装置には、リセット回路と、
割り込み発生回路と、リセット阻止回路とを装備し、さ
らに該装置のCPUには、リセット信号阻止機能と、リセ
ット処理機能とを装備する。
Means for Solving the Problems A reset method according to the present invention is a reset method for resetting a device connected to the input / output bus to an initial state by a reset signal sent to the input / output bus. A device connected to the input / output bus, a reset circuit;
An interrupt generation circuit and a reset prevention circuit are provided, and the CPU of the device is further provided with a reset signal prevention function and a reset processing function.

ここに、リセット回路は、入出力バス上のリセット信
号を検出してその一定時間後に該装置内のリセット対象
となる各部位にリセット信号を送出して各部位をその動
作状態に拘わらずに直ちにリセットするものである。
Here, the reset circuit detects the reset signal on the input / output bus, and sends a reset signal to each part to be reset in the device after a certain period of time, and immediately resets each part regardless of its operation state. It is to reset.

また、割り込み発生回路は、入出力バス上のリセット
信号を検出して該装置内のCPUに割り込み信号を送出す
るものである。
The interrupt generation circuit detects a reset signal on the input / output bus and sends an interrupt signal to the CPU in the device.

また、リセット阻止回路は、前記リセット回路に所定
の信号を出力することによってリセット回路のリセット
信号の送出を阻止するものである。
Further, the reset prevention circuit is for outputting a predetermined signal to the reset circuit to prevent the reset circuit from sending out a reset signal.

一方、前記リセット信号阻止機能とリセット処理機能
とは、前記割り込み発生回路からの割り込み信号をCPU
が受けると作動する機能で、リセット信号阻止機能は、
前記リセット阻止回路を作動させてリセット回路からリ
セット信号が送出されることを止める。また、リセット
処理機能は、リセット対象となる各部位に所定のコマン
ドを出力して処理中のデータやどこまで処理を実行した
かを記憶させるとともに、リセット対象となる各機構部
の動作を終結させた後に入出力バスとの連絡を断つ。
On the other hand, the reset signal blocking function and the reset processing function transmit an interrupt signal from the interrupt generation circuit to the CPU.
This function is activated when the reset signal is received.
Activating the reset prevention circuit stops the reset signal from being sent from the reset circuit. In addition, the reset processing function outputs a predetermined command to each part to be reset to store the data being processed and how far the processing has been executed, and terminates the operation of each mechanical part to be reset. Disconnects with the I / O bus later.

本発明のリセット方式は、以上の装置構成によって、
装置内のCPUのコマンドで初期状態にリセットし得るよ
うにしたことを特徴とする。
The reset method of the present invention has the above-described device configuration.
The apparatus can be reset to an initial state by a command of a CPU in the apparatus.

[作用] 本発明に係るリセット方式では、入出力バス上に送出
されたリセット信号は、リセット対象の装置に装備され
た割り込み発生回路と、リセット回路とで検出される。
そして、割り込み発生回路は、直ちにCPUに対して割り
込み信号を送出し、リセット回路は、一定時間後にリセ
ット信号を発信するべく、計時を開始する。
[Operation] In the reset method according to the present invention, the reset signal transmitted on the input / output bus is detected by the interrupt generation circuit provided in the device to be reset and the reset circuit.
Then, the interrupt generation circuit immediately sends an interrupt signal to the CPU, and the reset circuit starts time counting so as to transmit the reset signal after a predetermined time.

この場合に、前記CPUが正常な稼働状態にあれば、前
記割り込み信号を受けつけると、リセット信号阻止機能
とリセット処理機能とが作動して、リセット信号阻止機
能においては、直ちにリセット阻止回路を作動させて前
記リセット回路からのリセット信号の送出を阻止する。
また、リセット処理機能においては、リセット対象とな
る各部位に所定のコマンドを出力して、まず、処理中の
データやどこまで処理を実行したかを記憶させるととも
に、リセット対象となる各機構部の動作を終結させ、次
いで、入出力バスとの連絡を断つことにより、円滑に装
置の状態を初期状態に戻す。
In this case, if the CPU is in a normal operating state, when the interrupt signal is received, the reset signal blocking function and the reset processing function are activated, and the reset signal blocking function immediately activates the reset blocking circuit. Thus, the transmission of the reset signal from the reset circuit is prevented.
In the reset processing function, a predetermined command is output to each part to be reset, and firstly, the data being processed and how far the processing has been executed are stored, and the operation of each mechanical part to be reset is performed. Then, by disconnecting from the input / output bus, the state of the device is smoothly returned to the initial state.

また、CPUが何らかの原因でプログラム暴走等をして
いて、正常な稼働状態にない場合には、前記割り込み発
生回路から割り込み信号を受けても、リセット信号阻止
機能やリセット処理機能が作動しない。しかし、このよ
うな場合には、前記リセット回路が計時を続けており、
一定時間後には、該リセット回路がリセット対象の各部
位にリセット信号を送出して各部位を強制的にリセット
する。
Further, when the CPU is running out of control for some reason and is not in a normal operation state, the reset signal blocking function and the reset processing function do not operate even if an interrupt signal is received from the interrupt generation circuit. However, in such a case, the reset circuit keeps measuring time,
After a certain time, the reset circuit sends a reset signal to each part to be reset to forcibly reset each part.

従って、CPUの動作状態に拘わらず、確実にその装置
を初期状態にリセットすることができる。
Therefore, the apparatus can be reliably reset to the initial state regardless of the operation state of the CPU.

しかも、リセット回路による強制的なリセット処理
は、CPUが正常に稼働しない場合だけに限定されるた
め、常時強制的にリセット処理を実行していた従来の方
式の場合と比較すると、強制的にリセット処理がなされ
る機会は極めて少なくなり、強制的なリセット処理に起
因した機構部の損傷やデータの消失を大幅に低減させる
ことも可能になる。
In addition, since the forced reset processing by the reset circuit is limited only to the case where the CPU does not operate normally, the forced reset is performed compared to the conventional method in which the reset processing is always executed forcibly. Opportunities to perform the processing are extremely reduced, and it is also possible to significantly reduce damage to the mechanism and data loss due to the forced reset processing.

[実施例] 以下、本発明の一実施例を、第1図および第6図,第
7図に基づいて説明する。
[Embodiment] An embodiment of the present invention will be described below with reference to FIG. 1, FIG. 6, and FIG.

この一実施例のリセット方式は、SCSIを入出力バスと
して使用した小型コンピュータシステムにおいて、前記
入出力バスに接続されている一のホストコンピュータか
ら入出力バスに送出されたリセット信号で、前記入出力
バスに接続されているその他の装置(この場合の「装
置」には、入出力バスを共用している周辺装置およびそ
の他のホストコンピュータが該当する)を初期状態にセ
ットし直すものである。
The reset method of this embodiment is a small computer system using SCSI as an input / output bus, in which a reset signal sent from one host computer connected to the input / output bus to the input / output bus allows the input / output The other devices connected to the bus (the "device" in this case, peripheral devices and other host computers sharing the input / output bus) are reset to the initial state.

本発明のリセット方式を実行するためには、予め、リ
セット対象となる装置を、改良しておく必要がある。
In order to execute the reset method of the present invention, it is necessary to improve a device to be reset in advance.

第1図は、この一実施例のリセット方式を実行するた
めに改善した、周辺装置30のブロック図である。
FIG. 1 is a block diagram of a peripheral device 30 improved to execute the reset method of this embodiment.

この周辺装置30は、その内部に、CPU31を有してい
る。そして、このCPU31は、メモリ32に格納されている
プログラムを実行して所定の処理動作を行うもので、例
えば、FDDコントローラ33を介してFDD(フロッピーディ
スクドライブ)34をアクセスしたり、機構部インターフ
ェース35を介して機構部36を動作させたり、バスコント
ローラ37を介してSCSIである入出力バス42に接続されて
いる他の装置(図示略)とデータのやりとりを行う。
The peripheral device 30 has a CPU 31 therein. The CPU 31 executes a program stored in the memory 32 to perform a predetermined processing operation. For example, the CPU 31 accesses a floppy disk drive (FDD) 34 via the FDD controller 33, A mechanism unit 36 is operated via a bus 35, and data is exchanged with another device (not shown) connected to an input / output bus 42 which is a SCSI via a bus controller 37.

また、図示略のホストコンピュータから前記入出力バ
ス42にリセット信号43が送出されると、そのリセット信
号43は、リセットレシーバ38が検出する構成となってい
る。
When a reset signal 43 is sent from the host computer (not shown) to the input / output bus 42, the reset signal 43 is detected by a reset receiver 38.

以上の点は、従来と共通している。 The above points are common to the related art.

しかし、この周辺装置30は、新規な構成として、リセ
ット回路39と、割り込み発生回路40と、リセット阻止回
路41とを装備し、さらに、前記CPU31の持つ機能とし
て、リセット信号阻止機能と、リセット処理機能とを備
えている。
However, the peripheral device 30 is provided with a reset circuit 39, an interrupt generation circuit 40, and a reset prevention circuit 41 as a new configuration, and further, as functions of the CPU 31, a reset signal prevention function, a reset processing And functions.

前記リセット回路39と割り込み発生回路40とは、前記
リセットレシーバ38が入出力バス42上のリセット信号43
を検出すると、それが通知されて所定の動作をするもの
である。
The reset circuit 39 and the interrupt generation circuit 40 are connected to the reset receiver 38 by a reset signal 43 on the input / output bus 42.
Is detected, it is notified and a predetermined operation is performed.

ここに、前記リセット回路39は、リセット信号43がリ
セットレシーバ38によって検出されると、計時を開始し
て、一定時間後に、該装置30内のリセット対象となる各
部位にリセット信号39aを送出して、各部位をその動作
状態に拘わらずに直ちにリセットするものである。
Here, when the reset signal 43 is detected by the reset receiver 38, the reset circuit 39 starts clocking, and sends out a reset signal 39a to each part to be reset in the device 30 after a predetermined time. Thus, each part is immediately reset regardless of its operation state.

前記割り込み回路40は、リセット信号43がリセットレ
シーバ38によって検出されると、該装置30内のCPU31に
割り込み信号40aを送出するものである。
When the reset signal 43 is detected by the reset receiver 38, the interrupt circuit 40 sends an interrupt signal 40a to the CPU 31 in the device 30.

前記リセット阻止回路41は、前記CPU31から所定のコ
マンド(リセット阻止コマンド)を受けると、直ちに前
記リセット回路39に所定の信号を出力して、リセット回
路39のリセット信号39aの送出を阻止するものである。
Upon receiving a predetermined command (reset prevention command) from the CPU 31, the reset prevention circuit 41 immediately outputs a predetermined signal to the reset circuit 39 to prevent the reset circuit 39 from sending the reset signal 39a. is there.

前記リセット信号阻止機能とリセット処理機能とは、
いずれも、CPU31が前記割り込み発生回路40からの割り
込み信号40aを受けると作動する機能である。
The reset signal blocking function and the reset processing function,
Each of these functions is activated when the CPU 31 receives an interrupt signal 40a from the interrupt generation circuit 40.

ここに、リセット信号阻止機能は、割り込み信号40を
受けると、直ちに、前記リセット阻止回路41にリセット
阻止コマンドを送ることによって該リセット阻止回路41
を作動させて、前記リセット回路39からリセット信号39
aが送出されることを止めるものである。
Here, upon receiving the interrupt signal 40, the reset signal blocking function sends the reset blocking command to the reset blocking circuit 41 immediately, thereby
Activating the reset signal 39 from the reset circuit 39.
Stops sending a.

また、リセット処理機能は、割り込み信号40を受ける
と、直ちに、リセット対象となる各部位に所定のコマン
ドを出力して、まず、処理中のデータやどこまで処理を
実行したかをメモリ32等に記憶させるとともに、リセッ
ト対象となる機構部動作を終結させ、次いで、前記バス
コントローラ37による入出力バス42との連絡を断って、
該装置30を初期状態にするものである。
Upon receiving the interrupt signal 40, the reset processing function immediately outputs a predetermined command to each part to be reset, and first stores the data being processed and how far the processing has been executed in the memory 32 or the like. At the same time, terminate the operation of the mechanical unit to be reset, and then cut off the communication with the input / output bus 42 by the bus controller 37,
The device 30 is set to an initial state.

第6図は、前記リセット回路39およびリセット阻止回
路47の間における信号の流れを具体的に示したものであ
り、第7図は、第6図で示した各信号のタイムチャート
である。
FIG. 6 specifically shows a signal flow between the reset circuit 39 and the reset prevention circuit 47, and FIG. 7 is a time chart of each signal shown in FIG.

これらの第6図および第7図に基づいて、リセット信
号を受信したときの処理動作を説明すると、次の如くで
ある。
The processing operation when the reset signal is received will be described below with reference to FIGS. 6 and 7.

第6図および第7図に示したリセット信号は、“LO
W"の信号部分がリセット命令を示すもので、この“LOW"
の部分を有したものが、第1図におけるリセットレシー
バ38の出力信号に相当する。
The reset signal shown in FIG. 6 and FIG.
The signal portion of "W" indicates the reset instruction, and this "LOW"
1 corresponds to the output signal of the reset receiver 38 in FIG.

リセット回路39は、有効なリセット信号(即ち、
“LOW"の部分を有したリセット信号)を受けると、直
ちに起動する第1および第2の二つのタイマー回路44,4
5と、これらのタイマー回路44,45の出力信号,を入
力とするNANDゲート46とを備えた構成である。
The reset circuit 39 outputs a valid reset signal (ie,
Upon receiving a reset signal having a "LOW" portion), the first and second two timer circuits 44, 4 are started immediately.
5 and a NAND gate 46 to which the output signals of the timer circuits 44 and 45 are input.

ここに、第7図に矢印(イ)で示したように、それぞ
れのタイマー回路44,45は、リセット命令の立ち下がり
で、計時を開始し、計時期間中は、タイマー回路44の出
力信号は“LOW"となり、タイマー回路45の出力信号は
“HIGH"となる。第7図に示すように、第2のタイマー
回路45の計時期間は、本来(リセット阻止回路47から阻
止を受けない限り)、第1のタイマー回路44の計時期間
よりも長く設定されている。
Here, as indicated by the arrow (a) in FIG. 7, each of the timer circuits 44 and 45 starts clocking at the fall of the reset command. During the clocking period, the output signal of the timer circuit 44 becomes It becomes “LOW”, and the output signal of the timer circuit 45 becomes “HIGH”. As shown in FIG. 7, the time period of the second timer circuit 45 is originally set to be longer than the time period of the first timer circuit 44 (unless it is not blocked by the reset prevention circuit 47).

前記NANDゲート46は、タイマー回路44,45の出力信号
が共に“HIGH"の場合に、有効なリセット信号を出力
するものである。
The NAND gate 46 outputs a valid reset signal when both output signals of the timer circuits 44 and 45 are “HIGH”.

ここに、有効なリセット信号とは、第7図に示すよ
うに、“LOW"の信号部分を有したものである。
Here, the effective reset signal has a signal portion of "LOW" as shown in FIG.

一方、リセット阻止回路47は、CPU31からの有効なリ
セット阻止コマンドを受けると、有効なリセット阻止
信号を第2のタイマー回路45に出力して、該タイマー
回路45の出力信号“HIGH"を“LOWに”に変えて、もっ
て、前記NANDゲート46の出力するリセット信号を有効
でなくする。
On the other hand, upon receiving a valid reset prevention command from the CPU 31, the reset prevention circuit 47 outputs a valid reset prevention signal to the second timer circuit 45, and changes the output signal “HIGH” of the timer circuit 45 to “LOW”. Thus, the reset signal output from the NAND gate 46 becomes invalid.

有効なリセット阻止コマンドとは、第7図に破線で
示すように、“LOW"の信号部分を有したものであり、こ
の部分がない場合は、無効となる。
A valid reset prevention command has a signal portion of "LOW" as shown by a broken line in FIG. 7, and is invalid if there is no such portion.

また、有効なリセット阻止信号とは、第7図に破線
で示すように、“LOW"の信号部分を有したものであり、
この部分がない場合は、無効となる。
The effective reset prevention signal has a signal portion of "LOW" as shown by a broken line in FIG.
If this part does not exist, it becomes invalid.

第7図に矢印(ロ)で示すように、リセット阻止信号
の“LOW"部分、およびタイマー回路45の出力信号の
“LOW"部分は、有効なリセット阻止コマンドの立ち下
がりに呼応している。
As shown by the arrow (b) in FIG. 7, the "LOW" portion of the reset inhibition signal and the "LOW" portion of the output signal of the timer circuit 45 correspond to the fall of the valid reset inhibition command.

有効なリセット阻止信号が第2のタイマー回路45に
入った場合には、タイマー回路45の出力信号は“LOW"に
変わり、そのときには、NANDゲート46の出力するリセッ
ト信号は、第7図に破線で示すように、“LOW"の信号
部分がなくなり、無効となる。従って、この場合には、
リセット回路39によるリセット処理が阻止される。
When a valid reset prevention signal enters the second timer circuit 45, the output signal of the timer circuit 45 changes to "LOW", and the reset signal output by the NAND gate 46 is indicated by a broken line in FIG. As shown by, the signal portion of “LOW” disappears and becomes invalid. Therefore, in this case,
The reset processing by the reset circuit 39 is prevented.

以上の装置30では、該装置30の動作中に図示略のホス
トコンピュータから前記入出力バス42上に送出されたリ
セット信号43は、前記割り込み発生回路40と、リセット
回路39とで検出される。
In the device 30 described above, the reset signal 43 transmitted from the host computer (not shown) onto the input / output bus 42 during the operation of the device 30 is detected by the interrupt generation circuit 40 and the reset circuit 39.

そして、割り込み発生回路40は、直ちにCPU31に対し
て割り込み信号40aを送出し、リセット回路39は、一定
時間後にリセット信号39a(第7図における有効なリセ
ット信号)を発信するべく、計時を開始する。
Then, the interrupt generation circuit 40 immediately sends an interrupt signal 40a to the CPU 31, and the reset circuit 39 starts timing to send a reset signal 39a (a valid reset signal in FIG. 7) after a predetermined time. .

この場合に、前記CPU31が正常な稼働状態にあれば、
前記割り込み信号40aを受けつけると、リセット信号阻
止機能とリセット処理機能とが作動して、リセット信号
阻止機能においては、直ちにリセット阻止回路41を作動
させて前記リセット回路39からのリセット信号39aの送
出を阻止する。
In this case, if the CPU 31 is in a normal operating state,
Upon receiving the interrupt signal 40a, the reset signal blocking function and the reset processing function are activated. In the reset signal blocking function, the reset blocking circuit 41 is immediately activated to send the reset signal 39a from the reset circuit 39. Block.

また、リセット処理機能においては、リセット対象と
なる各部位に所定のコマンドを出力して、まず、処理中
のデータやどこまで処理を実行したかを記憶させるとと
もに、リセット対象となる各機構部の動作を終結させ、
次いで、バスコントローラ37による入出力バス42との連
絡を断つことにより、円滑に装置の状態を初期状態に戻
す。
In the reset processing function, a predetermined command is output to each part to be reset, and firstly, the data being processed and how far the processing has been executed are stored, and the operation of each mechanical part to be reset is performed. And terminate
Next, the communication with the input / output bus 42 by the bus controller 37 is cut off, thereby smoothly returning the state of the device to the initial state.

また、CPU31が何らかの原因でプログラム暴走等をし
ていて、正常な稼働状態にない場合には、前記割り込み
発生回路40から割り込み信号40aを受けても、リセット
信号阻止機能やリセット処理機能が作動しない。しか
し、このような場合には、前記リセット回路39が計時を
続けており、一定時間後には、該リセット回路39がリセ
ット対象の各部位にリセット信号39aを送出して各部位
を強制的にリセットする。
Further, if the CPU 31 is performing a program runaway for some reason and is not in a normal operation state, the reset signal blocking function and the reset processing function do not operate even if the interrupt signal 40a is received from the interrupt generation circuit 40. . However, in such a case, the reset circuit 39 keeps measuring time, and after a predetermined time, the reset circuit 39 sends a reset signal 39a to each part to be reset to forcibly reset each part. I do.

従って、CPU31の動作状態に拘わらず、確実にその装
置を初期状態にリセットすることができる。
Accordingly, the apparatus can be reliably reset to the initial state regardless of the operation state of the CPU 31.

しかも、リセット回路39による強制的なリセット処理
は、CPU31が正常に稼働しない場合だけに限定されるた
め、常時強制的にリセット処理を実行していた従来の方
式の場合と比較すると、強制的にリセット処理がなされ
る機会は極めて少なくなり、強制的なリセット処理に起
因した機構部の損傷やデータの消失を大幅に低減させる
ことも可能になる。
In addition, since the forced reset processing by the reset circuit 39 is limited only to the case where the CPU 31 does not operate normally, the forced reset processing is forcibly compared to the conventional method in which the reset processing is always executed forcibly. Opportunities for performing the resetting process are extremely reduced, and it is also possible to significantly reduce damage to the mechanism and loss of data due to the forced resetting process.

なお、前記一実施例では、本発明を実施する装置とし
て周辺装置の場合を説明したが、前述のリセット回路3
9、割り込み発生回路40、リセット阻止回路41等を備
え、さらに、CPU31にリセット信号阻止機能やリセット
処理機能を装備した構成であれば、ホストコンピュータ
等であっても、同様の効果を得ることができる。
In the above-described embodiment, the case where the peripheral device is used as the device for carrying out the present invention has been described.
9, the same effect can be obtained even with a host computer or the like as long as the configuration includes the interrupt generation circuit 40, the reset prevention circuit 41, and the like, and further includes the reset signal prevention function and the reset processing function in the CPU 31. it can.

また、本発明に係るリセット方式は、入出力バスに送
出されたリセット信号で、該入出力バスに接続されてい
る装置を初期状態にリセットするもので、前記一実施例
では、入出力バスとしてSCSIを例示したが、これに限定
するものではない。
Further, the reset method according to the present invention resets a device connected to the input / output bus to an initial state by a reset signal transmitted to the input / output bus. Although SCSI has been exemplified, the present invention is not limited to this.

[発明の効果] 以上の説明から明らかなように、本発明のリセット方
式では、リセット対象の装置に内蔵のCPUが正常に稼働
している場合には、入出力バス上のリセット信号が検出
されると、割り込み発生回路からの割り込み信号でCPU
のリセット信号阻止機能とリセット処理機能とが作動し
て、該CPUが各部位に送出するコマンドによって処理中
のデータの保護を図った上で円滑に各部位を初期状態に
リセットする。
[Effects of the Invention] As is clear from the above description, in the reset method of the present invention, when the built-in CPU of the device to be reset is operating normally, the reset signal on the input / output bus is detected. The CPU generates an interrupt signal from the interrupt generation circuit.
The reset signal blocking function and the reset processing function operate to protect the data being processed by the command sent to each part by the CPU and smoothly reset each part to the initial state.

一方、CPUが何らかの原因でプログラム暴走等を起こ
していて、正常に稼働していない場合には、リセット回
路が計時を続けて一定時間経過すると、該リセット回路
がリセット対象の各部位にリセット信号を送出して、各
部位を強制的にリセットする。
On the other hand, if the CPU has caused a program runaway or the like for some reason and is not operating normally, the reset circuit continues to measure time, and after a certain period of time, the reset circuit sends a reset signal to each part to be reset. Send out and forcibly reset each part.

従って、CPUの動作状態に拘わらず、確実にその装置
を初期状態にリセットすることができる。
Therefore, the apparatus can be reliably reset to the initial state regardless of the operation state of the CPU.

しかも、前記リセット回路による強制的なリセット処
理は、CPUが正常に稼働しない場合だけに限定されるた
め、常時強制的にリセット処理を実行していた従来の方
式の場合と比較すると、強制的にリセット処理がなされ
る機会が極めて少なくなり、強制的なリセット処理に起
因した機構部の損傷やデータの消失を大幅に低減させる
ことも可能になる。
In addition, since the forced reset process by the reset circuit is limited only to the case where the CPU does not operate normally, the forced reset process is forcibly performed as compared with the conventional method in which the reset process is always performed forcibly. Opportunities for performing the resetting process are extremely reduced, and it is also possible to greatly reduce damage to the mechanism and data loss due to the forced resetting process.

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

第1図は本発明の一実施例における装置構成を示すブロ
ック図、第2図および第3図はそれぞれSCSIを入出力バ
スとしたシステム構成の説明図、第4図および第5図は
従来のリセット方式の説明図、第6図は前記一実施例の
リセット回路とリセット阻止回路との動作説明図、第7
図は一実施例におけるリセット時の各信号のタイムチャ
ートである。 30……装置、31……CPU、32……メモリ、34……FDD、36
……機構部、37……バスコントローラ、38……リセット
レシーバ、39……リセット回路、40……割り込み発生回
路、41……リセット阻止回路、42……入出力バス、43…
…リセット信号、44……第1のタイマー、45……第2の
タイマー、46……NANDゲート。
FIG. 1 is a block diagram showing an apparatus configuration according to an embodiment of the present invention, FIGS. 2 and 3 are explanatory diagrams of a system configuration using SCSI as an input / output bus, and FIGS. FIG. 6 is an explanatory diagram of a reset method. FIG.
The figure is a time chart of each signal at the time of reset in one embodiment. 30 ... device, 31 ... CPU, 32 ... memory, 34 ... FDD, 36
... Mechanical part, 37 ... Bus controller, 38 ... Reset receiver, 39 ... Reset circuit, 40 ... Interrupt generation circuit, 41 ... Reset prevention circuit, 42 ... I / O bus, 43 ...
... reset signal, 44 ... first timer, 45 ... second timer, 46 ... NAND gate.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入出力バスに送出されたリセット信号で、
前記入出力バスに接続されている装置を初期状態にセッ
トし直すリセット方式であって、 前記入出力バスに接続される装置には、入出力バス上の
リセット信号を検出してその一定時間後に該装置内のリ
セット対象となる各部位にリセット信号を送出して各部
位をその動作状態に拘わらずに直ちにリセットするリセ
ット回路と、入出力バス上のリセット信号を検出して該
装置内のCPUに割り込み信号を送出する割り込み発生回
路と、前記リセット回路に所定の信号を出力することに
よってリセット回路のリセット信号の送出を阻止するリ
セット阻止回路とを装備し、 かつ、前記CPUには、前記割り込み発生回路から割り込
み信号を受けると作動する機能として、前記リセット阻
止回路を作動させてリセット回路からリセット信号が送
出されることを止めるリセット信号阻止機能と、リセッ
ト対象となる各部位に所定のコマンドを出力して処理中
のデータやどこまで処理を実行したかを記憶させるとと
もに、リセット対象となる各機構部の動作を終結させた
後に入出力バスとの連絡を断つリセット処理機能とを装
備して、 装置内のCPUのコマンドで初期状態にリセットし得るよ
うにしたことを特徴とするリセット方式。
1. A reset signal sent to an input / output bus,
A reset method for resetting a device connected to the input / output bus to an initial state, wherein a device connected to the input / output bus detects a reset signal on the input / output bus and after a predetermined time after the reset signal is detected. A reset circuit for sending a reset signal to each part to be reset in the apparatus and immediately resetting each part regardless of its operation state, and a CPU in the apparatus by detecting a reset signal on an input / output bus An interrupt generating circuit for transmitting an interrupt signal to the reset circuit, and a reset prevention circuit for outputting a predetermined signal to the reset circuit to prevent the reset circuit from transmitting a reset signal. As a function that operates when an interrupt signal is received from the generation circuit, the reset signal is transmitted from the reset circuit by activating the reset prevention circuit. A reset signal blocking function to stop and output a predetermined command to each part to be reset to store the data being processed and how far the processing has been executed, and to terminate the operation of each mechanism part to be reset A reset method that is equipped with a reset processing function that disconnects the communication with the I / O bus later, so that it can be reset to the initial state by a command of the CPU in the device.
JP2069829A 1990-03-22 1990-03-22 Reset method Expired - Fee Related JP2863249B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2069829A JP2863249B2 (en) 1990-03-22 1990-03-22 Reset method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2069829A JP2863249B2 (en) 1990-03-22 1990-03-22 Reset method

Publications (2)

Publication Number Publication Date
JPH03271908A JPH03271908A (en) 1991-12-03
JP2863249B2 true JP2863249B2 (en) 1999-03-03

Family

ID=13414053

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2069829A Expired - Fee Related JP2863249B2 (en) 1990-03-22 1990-03-22 Reset method

Country Status (1)

Country Link
JP (1) JP2863249B2 (en)

Also Published As

Publication number Publication date
JPH03271908A (en) 1991-12-03

Similar Documents

Publication Publication Date Title
KR950001417B1 (en) Computer system
US5974482A (en) Single port first-in-first-out (FIFO) device having overwrite protection and diagnostic capabilities
US6973598B2 (en) Computer system with improved data capture system
US7426662B2 (en) Computer system and fault processing method in computer system
US5263151A (en) Data transfer controller using dummy signals for continued operation under insignificant faulty conditions
JP2863249B2 (en) Reset method
US5652837A (en) Mechanism for screening commands issued over a communications bus for selective execution by a processor
KR0182709B1 (en) Interprocessor communication method in exchange
KR0158491B1 (en) Malfunction prevention circuit using program counter data
JP3110024B2 (en) Memory control system
US6754830B1 (en) Method and coupling arrangement for preventing unauthorized access to a microprocessor
KR100291138B1 (en) Device for preventing interrupt from losing
KR0176097B1 (en) Communication i/o control method controlling the flow of block data of host system and video codec chip
JPH1091567A (en) I / O interface extension device
JP2998439B2 (en) Line controller
JPS5826057B2 (en) complex computer system
JP2852075B2 (en) Channel equipment
JP3208930B2 (en) Intelligent modem
JPH06250864A (en) Method for preventing generation of error output from programmable controller
JPH0228735A (en) Computer supervisory device
JP2560968B2 (en) Computer system
JPH0235500B2 (en)
JPS61221850A (en) Loading system for reinitialization program
JPH0340413B2 (en)
JPH0363098B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081211

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees