JPH07319588A - Runaway prevention control system - Google Patents

Runaway prevention control system

Info

Publication number
JPH07319588A
JPH07319588A JP6114834A JP11483494A JPH07319588A JP H07319588 A JPH07319588 A JP H07319588A JP 6114834 A JP6114834 A JP 6114834A JP 11483494 A JP11483494 A JP 11483494A JP H07319588 A JPH07319588 A JP H07319588A
Authority
JP
Japan
Prior art keywords
reset
microprocessor
signal
reset signal
terminal device
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
Application number
JP6114834A
Other languages
Japanese (ja)
Inventor
Hirotaka Sakashita
浩隆 坂下
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.)
Fujitsu Telecom Networks Ltd
Original Assignee
Fujitsu Telecom Networks 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 Fujitsu Telecom Networks Ltd filed Critical Fujitsu Telecom Networks Ltd
Priority to JP6114834A priority Critical patent/JPH07319588A/en
Publication of JPH07319588A publication Critical patent/JPH07319588A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)

Abstract

PURPOSE:To prevent the runaway of a microprocessor from happening with comparatively simplified constitution in a runaway prevention control system which prevents the runaway of the microprocessor from occurring. CONSTITUTION:A modem 2 is equipped with the microprocessor 3, a modulation/ demodulation part 4, a power-on reset circuit 6 and a reset signal generation circuit 7, etc., and a reset signal can be generated by detecting the trailing edge of a ready signal ER representing the feasibility of the operation of terminal equipment 1 in data transfer between the terminal equipment 1 and the modem 2 by the reset signal generation circuit 7. The power-on reset circuit 6 makes the microprocessor 3 perform a reset operation by adding the reset signal on the reset terminal RST of the microprocessor 3 by the detection of start of a power supply voltage when a power source is applied and the reset signal from the reset signal generation circuit 7.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、マイクロプロセッサの
暴走を防止する暴走防止制御方式に関する。各種の装置
は、マイクロプロセッサを設けて制御を行う構成が一般
的である。このようなマイクロプロセッサは、リードオ
ンリメモリ(ROM)等に格納されたプログラムに従っ
て各部の制御を行うものであるが、プログラムのバグや
外部からのノイズ等によって所定のプログラムの実行が
できない暴走状態となることがある。マイクロプロセッ
サが暴走状態となると、正常な制御が不可能となり、初
期状態に戻す為のリセットを行うことが必要となる。こ
のようなマイクロプロセッサの暴走を防止することが要
望されている。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a runaway prevention control system for preventing runaway of a microprocessor. Various devices generally have a configuration in which a microprocessor is provided for control. Such a microprocessor controls each part according to a program stored in a read-only memory (ROM) or the like, but if a predetermined program cannot be executed due to a bug in the program, noise from the outside, or the like. May be. When the microprocessor goes into a runaway state, normal control becomes impossible and it is necessary to perform a reset to return to the initial state. It is desired to prevent such a microprocessor runaway.

【0002】[0002]

【従来の技術】図4は従来例の説明図であり、31はマ
イクロプロセッサ(MPU)、32はプログラム等を格
納したリードオンリメモリ(ROM)、33はランダム
アクセスメモリ(RAM)、34はウォッチドックタイ
マ(WTM)、35はオア回路(OR)であり、マイク
ロプロセッサ31の暴走防止の為にウォッチドックタイ
マ34を設けた場合を示す。
2. Description of the Related Art FIG. 4 is an explanatory view of a conventional example, 31 is a microprocessor (MPU), 32 is a read only memory (ROM) storing programs and the like, 33 is a random access memory (RAM), and 34 is a watch. Dock timers (WTM) and 35 are OR circuits (OR), and show a case where a watch dock timer 34 is provided to prevent runaway of the microprocessor 31.

【0003】マイクロプロセッサ31は、リードオンリ
メモリ32に格納されたプログラムに従って図示を省略
した装置の各部を制御するものであり、リセット入力端
子RSTinに外部からのリセット信号RESET又は
パワーオンリセット回路(図示せず)からのリセット信
号又はウォッチドックタイマ34からのリセット信号が
オア回路35を介して加えられると、マイクロプロセッ
サ31は、他の割込みをマスクして、リセット動作を行
うものである。
The microprocessor 31 controls each part of the device (not shown) in accordance with a program stored in the read-only memory 32, and has a reset input terminal RSTin from which an external reset signal RESET or a power-on reset circuit (see FIG. When a reset signal from (not shown) or a reset signal from the watchdog timer 34 is applied via the OR circuit 35, the microprocessor 31 masks other interrupts and performs the reset operation.

【0004】又ウォッチドックタイマ34は、図示を省
略したクロック発生部からのクロック信号をカウント
し、オーバーフローによってリセット出力端子RSTo
utからマイクロプロセッサ31のリセット入力端子R
STinにオア回路35を介してリセット信号を加える
ことになるが、マイクロプロセッサ31が実行するプロ
グラムの所定ステップ毎等に、ウォッチドックタイマ3
4をリセットするリセット信号をリセット出力端子WR
Toutからウォッチドックタイマ34のリセット入力
端子WRTinに入力し、ウォッチドックタイマ34を
リセットし、オーバーフローが発生しないように制御す
る。
The watchdog timer 34 counts a clock signal from a clock generator (not shown), and resets the reset output terminal RSTo due to overflow.
ut to the reset input terminal R of the microprocessor 31
Although a reset signal is added to STin via the OR circuit 35, the watchdog timer 3 is provided at every predetermined step of the program executed by the microprocessor 31.
Reset signal for resetting 4 is reset output terminal WR
The reset input terminal WRTin of the watchdog timer 34 is input from Tout to reset the watchdog timer 34 and control so that overflow does not occur.

【0005】従って、マイクロプロセッサ31が正常に
動作している場合は、ウォッチドックタイマ34がオー
バーフローしないように、マイクロプロセッサ31によ
ってリセットされる。そして、マイクロプロセッサ31
が何らかの原因により暴走状態となると、ウォッチドッ
クタイマ34をリセットできないので、ウォッチドック
タイマ34のオーバーフローによるリセット信号によっ
てマイクロプロセッサ31はリセットされ、暴走を防止
するものである。
Therefore, when the microprocessor 31 is operating normally, the watchdog timer 34 is reset by the microprocessor 31 so as not to overflow. And the microprocessor 31
If, due to some reason, the watchdog timer 34 cannot be reset, the microprocessor 31 is reset by a reset signal due to the overflow of the watchdog timer 34 to prevent the runaway.

【0006】[0006]

【発明が解決しようとする課題】ウォッチドックタイマ
34を用いてマイクロプロセッサ31の暴走を防止する
従来例に於いては、プログラム内に所定時間内にウォッ
チドックタイマ34をリセットする為のステップを挿入
する必要があり、プログラム作成上の負担が大きい問題
があった。又暴走が発生した時に、その暴走状態が継続
しないようにリセットするものであり、暴走を未然に防
止することはできなかった。本発明は、装置間でデータ
を転送する場合に、データの転送可を示すレディ信号を
利用して、マイクロプロセッサのリセットを行い、暴走
を未然に防止することを目的とする。
In the conventional example in which the watchdog timer 34 is used to prevent runaway of the microprocessor 31, a step for resetting the watchdog timer 34 within a predetermined time is inserted in the program. However, there is a problem that the burden on the program creation is large. Further, when a runaway occurs, it is reset so that the runaway state does not continue, and it is impossible to prevent the runaway in advance. An object of the present invention is to prevent a runaway by resetting a microprocessor by using a ready signal indicating that data can be transferred when transferring data between devices.

【0007】[0007]

【課題を解決するための手段】本発明の暴走防止制御方
式は、図1を参照して説明すると、パーソナルコンピュ
ータ(パソコン)等の端末装置1との間でデータを転送
するモデム2等の装置のマイクロプロセッサの暴走を防
止する暴走防止制御方式に於いて、端末装置1の動作可
を示すレディ信号のオンからオフへの立下りを検出して
マイクロプロセッサ3のリセット信号を生成するリセッ
ト信号生成回路7を設け、このリセット信号生成回路7
によりレディ信号のオンからオフへの立下り毎にマイク
ロプロセッサ3のリセットを行うものである。
A runaway prevention control system according to the present invention will be described with reference to FIG. 1. A device such as a modem 2 for transferring data with a terminal device 1 such as a personal computer (personal computer). In the runaway prevention control method for preventing runaway of the microprocessor, the reset signal generation for detecting the falling of the ready signal indicating the operation of the terminal device 1 from ON to OFF and generating the reset signal of the microprocessor 3 is generated. The circuit 7 is provided and the reset signal generation circuit 7
Thus, the microprocessor 3 is reset each time the ready signal falls from ON to OFF.

【0008】又リセット信号生成回路7は、端末装置1
からのレディ信号の立下りによりクロック信号のカウン
トを開始するカウンタと、このカウンタのオーバーフロ
ー信号を基にマイクロプロセッサ3のリセット信号を生
成するパルス生成回路とを備えている。
Further, the reset signal generating circuit 7 is provided in the terminal device 1.
The counter is provided with a counter for starting the counting of the clock signal when the ready signal falls from the above, and a pulse generation circuit for generating the reset signal of the microprocessor 3 based on the overflow signal of this counter.

【0009】[0009]

【作用】端末装置1とマイクロプロセッサ3を含むモデ
ム2等の装置との間、或いは端末装置1とマイクロプロ
セッサ3を含むプリンタ等の装置との間に於いては、デ
ータ転送が比較的長い時間停止しているものである。又
データを転送する前に、動作可を示すレディ信号を端末
装置1からモデムやプリンタ等の装置のマイクロプロセ
ッサを含む装置に転送することになる。データの転送終
了確認は、レディ信号のオンからオフへの立下りによっ
て行うことができるから、レディ信号の立下りをリセッ
ト信号生成回路7により検出してマイクロプロセッサ3
をリセットする。即ち、データ転送終了確認毎に、マイ
クロプロセッサ3を強制的にリセットし、暴走を未然に
防止する。
Data transfer between the terminal device 1 and the device such as the modem 2 including the microprocessor 3 or between the terminal device 1 and the device such as the printer including the microprocessor 3 takes a relatively long time. It has been stopped. Further, before transferring data, a ready signal indicating that the operation is possible is transferred from the terminal device 1 to a device including a microprocessor of a device such as a modem or a printer. Since the completion of data transfer can be confirmed by the fall of the ready signal from ON to OFF, the fall of the ready signal is detected by the reset signal generation circuit 7 and the microprocessor 3 is detected.
To reset. That is, the microprocessor 3 is forcibly reset each time the data transfer end is confirmed to prevent runaway.

【0010】又リセット信号生成回路7は、レディ信号
のオンからオフへの立下りで直ちにマイクロプロセッサ
3へのリセット信号を加えると、ノイズ等による誤動作
の問題があるから、カウンタによって、レディ信号の立
下りからクロック信号をカウントしてオーバーフローす
るまでの時間後に、パルス生成回路によってマイクロプ
ロセッサ3のリセット信号を生成する。
Further, the reset signal generation circuit 7 has a problem of malfunction due to noise if a reset signal is immediately applied to the microprocessor 3 at the fall of the ready signal from ON to OFF. After the time from the falling edge until the clock signal is counted and overflowed, the reset signal for the microprocessor 3 is generated by the pulse generation circuit.

【0011】[0011]

【実施例】図1は本発明の実施例の説明図であり、1は
パーソナルコンピュータ(パソコン)等の端末装置、2
はモデム、3はマイクロプロセッサ(MPU)、4は変
復調部、5は公衆電話回線等の回線、6はパワーオンリ
セット回路、6Aは電源端子、6Bは外部リセット端
子、7はリセット信号生成回路、8はリードオンリメモ
リ(ROM)、9はランダムアクセスメモリ(RA
M)、10はインタフェース部、11は4線2線変換
部、12は回線トランス、13は回線インタフェース部
である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is an explanatory diagram of an embodiment of the present invention, in which 1 is a terminal device such as a personal computer (personal computer), 2
Is a modem, 3 is a microprocessor (MPU), 4 is a modulator / demodulator, 5 is a line such as a public telephone line, 6 is a power-on reset circuit, 6A is a power supply terminal, 6B is an external reset terminal, 7 is a reset signal generation circuit, 8 is a read only memory (ROM), 9 is a random access memory (RA)
M), 10 is an interface unit, 11 is a 4-wire / 2-wire conversion unit, 12 is a line transformer, and 13 is a line interface unit.

【0012】この実施例は、端末装置1とマイクロプロ
セッサ3を含む装置としてのモデム2との間でデータを
転送する場合を示し、モデム2は回線5と図示を省略し
た交換網とを介して相手のモデムと接続され、送信デー
タは変復調部4により変調されて回線5に送出され、又
回線5を介して受信した信号は変復調部4により復調さ
れて受信データとなる。又マイクロプロセッサ3は、モ
デム2内の各部を制御するもので、その為のプログラム
はリードオンリメモリ8に格納されている。
This embodiment shows a case in which data is transferred between a terminal device 1 and a modem 2 as a device including a microprocessor 3, the modem 2 via a line 5 and a switching network (not shown). Connected to the modem of the other party, the transmission data is modulated by the modulation / demodulation unit 4 and transmitted to the line 5, and the signal received via the line 5 is demodulated by the modulation / demodulation unit 4 to become reception data. The microprocessor 3 controls each part in the modem 2, and the program for that is stored in the read-only memory 8.

【0013】又パワーオンリセット回路6は、マイクロ
プロセッサ3のリセット端子RSTと接続され、且つそ
の電源端子6Aにモデム2内の電源電圧+Vが加えら
れ、外部リセット端子6Bにリセット信号生成回路7が
接続されている。電源投入により、モデム2内の電源電
圧+Vが所定値を超えると、マイクロプロセッサ3のリ
セット端子RSTにリセット信号を加えて、パワーオン
リセットを行わせる。又図示を省略した外部のリセット
スイッチ等から外部リセット端子6Bにリセット信号を
加えた場合も、マイクロプロセッサ3のリセット端子R
STにリセット信号を加えて、パワーオンリセットの場
合と同様なリセット動作を行わせる。
The power-on reset circuit 6 is connected to the reset terminal RST of the microprocessor 3, the power supply voltage + V in the modem 2 is applied to its power supply terminal 6A, and the reset signal generation circuit 7 is connected to the external reset terminal 6B. It is connected. When the power supply voltage + V in the modem 2 exceeds a predetermined value due to power-on, a reset signal is applied to the reset terminal RST of the microprocessor 3 to cause power-on reset. Also, when a reset signal is applied to the external reset terminal 6B from an external reset switch (not shown), the reset terminal R of the microprocessor 3
A reset signal is added to ST to perform the same reset operation as in the case of power-on reset.

【0014】従って、リセット信号生成回路7からパワ
ーオンリセット回路6の外部リセット端子6Bにリセッ
ト信号を加えることにより、マイクロプロセッサ3のリ
セットを行わせることができる。このリセット信号生成
回路7は、端末装置1が動作可能の状態となったことを
示すレディ信号ERのオン状態から、動作停止の状態を
示すオフ状態に変化したことを検出し、即ち、レディ信
号ERのオンからオフへの立下りを検出してリセット信
号を生成する。
Therefore, by applying a reset signal from the reset signal generation circuit 7 to the external reset terminal 6B of the power-on reset circuit 6, the microprocessor 3 can be reset. The reset signal generation circuit 7 detects that the ready signal ER indicating that the terminal device 1 is in the operable state is changed from the on state to the off state indicating the operation stopped state, that is, the ready signal. A reset signal is generated by detecting the fall of the ER from on to off.

【0015】端末装置1とモデム2との間では、例え
ば、端末装置1からモデム2に対して、送信データS
D,送信要求信号RS,端末装置レディ信号ER等が転
送され、又モデム2から端末装置1に対して、受信デー
タRD,送信可信号CS,データセットレディ信号D
R,キャリア検出信号CD,送信データタイミング信号
ST2,受信データタイミング信号RT,リング検出信
号CI等が転送される。
Between the terminal device 1 and the modem 2, for example, the transmission data S is sent from the terminal device 1 to the modem 2.
D, a transmission request signal RS, a terminal device ready signal ER, etc. are transferred, and received data RD, a transmission enable signal CS, a data set ready signal D from the modem 2 to the terminal device 1.
R, carrier detection signal CD, transmission data timing signal ST2, reception data timing signal RT, ring detection signal CI, etc. are transferred.

【0016】この実施例に於いては、端末装置1がモデ
ム2と回線5とを介して、相手端末装置等との間でデー
タの送受信を行う場合に、モデム2に対して端末装置レ
ディ信号ERをオンとし、データの送受信終了により端
末装置レディ信号ERをオフとするものである。モデム
2は、この端末装置レディ信号ERに対して端末装置1
に対してデータセットレディ信号DRをオンとし、その
後に端末装置1が送信要求信号RSをオンとすると、モ
デム2は端末装置1に対して送信可信号CSをオンとす
る。それによって、端末装置1は送信データSDを送出
するから、その送信データSDは変復調部4によって変
調され、4線2線変換部11,回線トランス12,回線
インタフェース部13を介して回線5に送出される。
In this embodiment, when the terminal device 1 transmits / receives data to / from a partner terminal device via the modem 2 and the line 5, the terminal device ready signal is sent to the modem 2. The ER is turned on, and the terminal device ready signal ER is turned off upon completion of data transmission / reception. The modem 2 responds to this terminal device ready signal ER by the terminal device 1
On the other hand, when the data set ready signal DR is turned on and then the terminal device 1 turns on the transmission request signal RS, the modem 2 turns on the transmission enable signal CS to the terminal device 1. As a result, the terminal device 1 sends the transmission data SD, and the transmission data SD is modulated by the modulation / demodulation unit 4 and sent to the line 5 via the 4-line / 2-line conversion unit 11, the line transformer 12, and the line interface unit 13. To be done.

【0017】このようなデータの送受信が終了して、端
末装置1からの端末装置レディ信号ERをオンからオフ
とすると、リセット信号生成回路7は、そのオンからオ
フへの立下りを検出し、パワーオンリセット回路6の外
部リセット端子6Bにリセット信号を加える。それによ
って、パワーオンリセット回路6からマイクロプロセッ
サ3のリセット端子RSTにリセット信号が加えられ
て、マイクロプロセッサ3はリセットされる。即ち、デ
ータの送受信が終了することによる端末装置レディ信号
ERのオンからオフへの立下り毎に、マイクロプロセッ
サ3のリセットが行われる。
When the terminal device ready signal ER from the terminal device 1 is turned from on to off after the transmission / reception of such data is completed, the reset signal generating circuit 7 detects the fall from on to off, A reset signal is applied to the external reset terminal 6B of the power-on reset circuit 6. As a result, a reset signal is applied from the power-on reset circuit 6 to the reset terminal RST of the microprocessor 3, and the microprocessor 3 is reset. That is, the microprocessor 3 is reset each time the terminal ready signal ER falls from ON to OFF due to the end of the data transmission / reception.

【0018】図2は本発明の実施例のリセット信号生成
回路の要部説明図であり、図1と同一符号は同一部分を
示し、21はカウンタ、22はパルス生成回路、23は
ゲート回路(G)、24はクロック発生部である。カウ
ンタ21は、端末装置1からの端末装置レディ信号ER
がオンからオフへの立下りによりクロック発生部24か
らゲート回路23を介して加えられるクロック信号のカ
ウントを開始し、所定のカウント内容以上となった時の
オーバーフロー信号をパルス生成回路22とゲート回路
23とに加える。又端末装置レディ信号ERのオフから
オンへの立上りによりカウント内容をクリアする。
FIG. 2 is an explanatory view of a main part of a reset signal generation circuit according to an embodiment of the present invention. The same reference numerals as those in FIG. 1 denote the same parts, 21 is a counter, 22 is a pulse generation circuit, and 23 is a gate circuit ( G) and 24 are clock generators. The counter 21 uses the terminal device ready signal ER from the terminal device 1.
Starts counting of the clock signal applied from the clock generator 24 through the gate circuit 23 due to the fall from ON to OFF, and an overflow signal when the count signal exceeds a predetermined count content is generated by the pulse generation circuit 22 and the gate circuit. 23 and. Also, the count contents are cleared by the rise of the terminal device ready signal ER from OFF to ON.

【0019】パルス生成回路22は、オーバーフロー信
号により、パワーオンリセット回路6の外部リセット端
子6Bに加えるリセット信号を生成する。又ゲート回路
23は、オーバーフロー信号によりクロック発生部24
からカウンタ21に加えるクロック信号を阻止する。
The pulse generation circuit 22 generates a reset signal to be applied to the external reset terminal 6B of the power-on reset circuit 6 by the overflow signal. In addition, the gate circuit 23 causes the clock generator 24 to receive the overflow signal.
From the clock signal applied to the counter 21.

【0020】図3は本発明の実施例のリセット信号生成
回路の動作説明図であり、(a)は端末装置レディ信号
ER、(b)はカウンタ21のカウント内容、(c)は
オーバーフロー信号、(d)はパルス生成回路22から
のリセット信号を示す。
3A and 3B are diagrams for explaining the operation of the reset signal generating circuit according to the embodiment of the present invention. FIG. 3A is a terminal device ready signal ER, FIG. 3B is a count content of the counter 21, and FIG. 3C is an overflow signal. (D) shows a reset signal from the pulse generation circuit 22.

【0021】端末装置レディ信号ERが、図3の(a)
に示すように、時刻t1 に於いてオフ(OFF)からオ
ン(ON)に立上り、時刻t2 に於いてオン(ON)か
らオフ(OFF)に立下り、時刻t4 に於いてオフから
オンに立上り、時刻t5 に於いてオンからオフに立下っ
た場合を示し、時刻t1 に於いては、端末装置レディ信
号ERがオフからオンに立上ることにより、カウンタ2
1は(b)に示すようにカウント内容はクリアされる。
次に時刻t2 に於いて端末装置レディ信号ERがオン
(ON)からオフ(OFF)に立下ると、カウンタ21
は、クロック発生部24からのクロック信号のカウント
を開始する。従って、カウンタ21のカウント内容は、
(b)に示すように次第に上昇する。
The terminal device ready signal ER is shown in FIG.
As shown in, at time t 1, it rises from off (OFF) to on (ON), at time t 2 it falls from on (ON) to off (OFF), and at time t 4, it changes from off. The case where the counter 2 rises to ON and falls from ON to OFF at time t 5 is shown. At time t 1 , the terminal device ready signal ER rises from OFF to ON, so that the counter 2
The count content of 1 is cleared as shown in (b).
Next, at time t 2, when the terminal device ready signal ER falls from on (ON) to off (OFF), the counter 21
Starts counting the clock signals from the clock generator 24. Therefore, the count content of the counter 21 is
It gradually rises as shown in (b).

【0022】カウンタ21が時刻t3 に於いてオーバー
フロー(OVF)すると、(c)に示すように、オーバ
ーフロー信号が出力されてパルス生成回路22とゲート
回路23とに加えられる。パルス生成回路22は、オー
バーフロー信号の立上りにより、(d)に示すパルス
(このパルスの極性は正極性の場合を示すが、外部リセ
ット信号の極性に対応して負極性とすることもできる)
を生成して、パワーオンリセット回路6の外部リセット
端子6Bにリセット信号として加える。即ち、端末装置
レディ信号ERがオンからオフに立下り、時刻t2 から
3 までの間、オフ状態が継続した時に、リセット信号
が生成されることになり、ノイズの影響を除くことがで
きる。
When the counter 21 overflows (OVF) at time t 3 , an overflow signal is output and added to the pulse generating circuit 22 and the gate circuit 23, as shown in (c). The pulse generation circuit 22 shows the pulse shown in (d) at the rising edge of the overflow signal (the polarity of this pulse shows a positive polarity, but it can be a negative polarity corresponding to the polarity of the external reset signal).
Is generated and added to the external reset terminal 6B of the power-on reset circuit 6 as a reset signal. That is, when the terminal device ready signal ER falls from on to off and the off state continues from time t 2 to t 3 , a reset signal is generated, and the influence of noise can be eliminated. .

【0023】カウンタ21は、前述のように、端末装置
レディ信号ERのオフからオンへの立上りにより(時刻
1 ,t4 に於いて)カウント内容をクリアし、オフか
らオンへの立下りにより(時刻t2 ,t5 に於いて)ク
ロック信号のカウントを開始するもので、所定時間後
(時刻t3 ,t6 に於いて)オーバーフロー信号が出力
される。このような制御構成は比較的簡単な論理回路に
よって容易に実現可能であり、又マイクロプロセッサ3
が端末装置1からの端末装置レディ信号ER等の検出機
能を備えているから、このマイクロプロセッサ3の制御
によってカウンタ21のカウント動作を制御することも
可能である。
As described above, the counter 21 clears the content of the count (at times t 1 and t 4 ) when the terminal device ready signal ER rises from OFF to ON, and when it falls from OFF to ON. The clock signal starts counting (at times t 2 and t 5 ), and an overflow signal is output after a predetermined time (at times t 3 and t 6 ). Such a control configuration can be easily realized by a relatively simple logic circuit, and the microprocessor 3
Since it has a function of detecting the terminal device ready signal ER from the terminal device 1, it is possible to control the counting operation of the counter 21 by the control of the microprocessor 3.

【0024】又パルス生成回路22は、オーバーフロー
信号を基にパルスを生成するものであり、フリップフロ
ップ等によって構成することができる。又このパルス生
成回路22から直接的にマイクロプロセッサ3のリセッ
ト端子RSTにリセット信号を加える構成とすることも
可能である。又クロック発生部24は、マイクロプロセ
ッサ3又はモデム2内のクロック発生部と兼用させるこ
とができる。
The pulse generation circuit 22 is for generating a pulse based on the overflow signal, and can be constituted by a flip-flop or the like. It is also possible to directly apply a reset signal from the pulse generation circuit 22 to the reset terminal RST of the microprocessor 3. The clock generator 24 can also be used as the clock generator in the microprocessor 3 or the modem 2.

【0025】又端末装置1にプリンタ等が接続され、端
末装置1からプリンタにデータを転送してプリントさせ
る構成の場合、そのプリンタのマイクロプロセッサに対
しても、端末装置1からプリンタにプリントデータを転
送する為の信号を利用し、プリントデータの転送中はオ
ンとなる信号がオフに立下った時に、それを検出してマ
イクロプロセッサをリセットする構成とすることもでき
る。
In the case where a printer or the like is connected to the terminal device 1 and data is transferred from the terminal device 1 to the printer for printing, the microprocessor of the printer also prints the print data from the terminal device 1 to the printer. It is also possible to use a signal for transfer and to detect the signal when the signal turned on during the transfer of the print data falls off and reset the microprocessor.

【0026】[0026]

【発明の効果】以上説明したように、本発明は、端末装
置1の動作可を示すレディ信号のオンからオフへの立下
りを検出して、マイクロプロセッサ3をリセットするも
ので、データ転送等の一連の処理が終了した後にリセッ
トするから、マイクロプロセッサ3の制御処理に影響を
与えることなく、且つ暴走を未然に防ぐことが可能とな
る利点がある。
As described above, according to the present invention, the microprocessor 3 is reset by detecting the fall of the ready signal indicating the operation of the terminal device 1 from ON to OFF, such as data transfer. Since the resetting is performed after the series of processes described above is completed, there is an advantage that the control process of the microprocessor 3 is not affected and the runaway can be prevented.

【0027】又リセット信号生成回路7を、カウンタ2
1とパルス生成回路22とにより構成した場合、レディ
信号のオンからオフへの立下りが所定時間継続した時に
のみマイクロプロセッサ3のリセットを行わせることに
なり、ノイズ等による誤動作を防止し、且つマイクロプ
ロセッサ3の暴走を未然に防止できる利点がある。
The reset signal generating circuit 7 is replaced by the counter 2
1 and the pulse generation circuit 22, the microprocessor 3 is reset only when the fall of the ready signal from ON to OFF continues for a predetermined time, and malfunctions due to noise and the like are prevented, and There is an advantage that the runaway of the microprocessor 3 can be prevented.

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

【図1】本発明の実施例の説明図である。FIG. 1 is an explanatory diagram of an embodiment of the present invention.

【図2】本発明の実施例のリセット信号生成回路の要部
説明図である。
FIG. 2 is an explanatory diagram of a main part of a reset signal generation circuit according to the embodiment of the present invention.

【図3】本発明の実施例の動作説明図である。FIG. 3 is an operation explanatory diagram of the embodiment of the present invention.

【図4】従来例の説明図である。FIG. 4 is an explanatory diagram of a conventional example.

【符号の説明】[Explanation of symbols]

1 端末装置 2 モデム 3 マイクロプロセッサ(MPU) 4 変復調部 5 回線 6 パワーオンリセット回路 6A 電源端子 6B 外部リセット端子 7 リセット信号生成回路 DESCRIPTION OF SYMBOLS 1 Terminal device 2 Modem 3 Microprocessor (MPU) 4 Modulator / demodulator 5 Line 6 Power-on reset circuit 6A Power supply terminal 6B External reset terminal 7 Reset signal generation circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 端末装置との間でデータを転送する装置
のマイクロプロセッサの暴走を防止する暴走防止制御方
式に於いて、 前記端末装置の動作可を示すレディ信号のオンからオフ
への立下りを検出して前記マイクロプロセッサのリセッ
ト信号を生成するリセット信号生成回路を設け、前記レ
ディ信号のオンからオフへの立下り毎に前記マイクロプ
ロセッサのリセットを行うことを特徴とする暴走防止制
御方式。
1. A runaway prevention control method for preventing runaway of a microprocessor of a device that transfers data to and from a terminal device, wherein a ready signal indicating that the terminal device is operable falls from on to off. And a reset signal generation circuit for generating a reset signal for the microprocessor, and resetting the microprocessor each time the ready signal falls from ON to OFF.
【請求項2】 前記リセット信号生成回路は、前記端末
装置からのレディ信号の立下りによりクロック信号のカ
ウントを開始するカウンタと、該カウンタのオーバーフ
ロー信号を基に前記マイクロプロセッサのリセット信号
を生成するパルス生成回路とを有することを特徴とする
請求項1記載の暴走防止制御方式。
2. The reset signal generation circuit generates a reset signal for the microprocessor based on a counter that starts counting clock signals at the fall of a ready signal from the terminal device and an overflow signal of the counter. The runaway prevention control system according to claim 1, further comprising a pulse generation circuit.
JP6114834A 1994-05-27 1994-05-27 Runaway prevention control system Pending JPH07319588A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6114834A JPH07319588A (en) 1994-05-27 1994-05-27 Runaway prevention control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6114834A JPH07319588A (en) 1994-05-27 1994-05-27 Runaway prevention control system

Publications (1)

Publication Number Publication Date
JPH07319588A true JPH07319588A (en) 1995-12-08

Family

ID=14647867

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6114834A Pending JPH07319588A (en) 1994-05-27 1994-05-27 Runaway prevention control system

Country Status (1)

Country Link
JP (1) JPH07319588A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004097608A1 (en) * 2003-04-25 2004-11-11 Nec Corporation Reset circuit and digital communication device
KR100468677B1 (en) * 1997-08-20 2005-04-06 삼성전자주식회사 Reset signal interface device and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100468677B1 (en) * 1997-08-20 2005-04-06 삼성전자주식회사 Reset signal interface device and method
WO2004097608A1 (en) * 2003-04-25 2004-11-11 Nec Corporation Reset circuit and digital communication device
US7239187B2 (en) 2003-04-25 2007-07-03 Nec Corporation Reset circuit and digital communication apparatus

Similar Documents

Publication Publication Date Title
JPH09265436A (en) Data transfer device
JPH07319588A (en) Runaway prevention control system
JP3198333B2 (en) Apparatus and method for transferring data by serial data bus
JP2006201948A (en) Interrupt signal accepting device and method
US4054745A (en) Motor control device for data terminals
JPH08223339A (en) Image processing unit
JP3392428B2 (en) ISDN data communication device
JPH0969889A (en) Data processor
JPH03277578A (en) Printer
JPS6223503B2 (en)
JPH06268713A (en) Communication controller
JP2577377Y2 (en) Printing control device
JP2001331440A (en) Data reception processor
JPH0728295B2 (en) Command / response method data bus terminal device
JPS5941623B2 (en) Line monitoring method
JPH10333998A (en) Data transfer device
JPH0217526A (en) Printer
JPS61281349A (en) Interface controlling method
JPH0615884A (en) Printer
JP3130858B2 (en) Remote control signal receiving device and receiving method thereof
SU544958A1 (en) Device for controlling the exchange of information
JPS61103252A (en) Memory device for fault analysis
JPS6221463B2 (en)
JPS6199445A (en) Automatic setting system of modem information
JPH08153060A (en) Picture data processor