JPH0351928A - System reset circuit - Google Patents

System reset circuit

Info

Publication number
JPH0351928A
JPH0351928A JP1186019A JP18601989A JPH0351928A JP H0351928 A JPH0351928 A JP H0351928A JP 1186019 A JP1186019 A JP 1186019A JP 18601989 A JP18601989 A JP 18601989A JP H0351928 A JPH0351928 A JP H0351928A
Authority
JP
Japan
Prior art keywords
output
reset
port
cpu
circuit
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
JP1186019A
Other languages
Japanese (ja)
Inventor
Akira Oda
晃 織田
Fusao Hori
房生 保里
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.)
Toshiba Tec Corp
Original Assignee
Tokyo Electric 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP1186019A priority Critical patent/JPH0351928A/en
Publication of JPH0351928A publication Critical patent/JPH0351928A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To surely reset an input/output port when the working of a CPU is interrupted by using a retriggerable single shot circuit. CONSTITUTION:A CPU 21 outputs a phi clock in its active state, and the output time of a high level signal, i.e., the desired output is decided for a retriggerable single shot circuit 33 based on a time constant secured between a capacitor 34 and a resistance 35. In this case, the output time is set longer than the cycle of the phi clock. This phi clock is stopped if the working of the CPU 21 is interrupted and therefore the transmission of the desired output is stopped from the circuit 33. Then an input/output port 24 is reset. As a result, the port 24 is surely reset when the CPU 21 is interrupted.

Description

【発明の詳細な説明】 C産業上の利用分野] 本発明は、中央処理装置及びリセットにより非アクティ
ブとなる入出力ポートを設けたシステムのリセット回路
に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application] The present invention relates to a reset circuit for a system provided with a central processing unit and an input/output port that becomes inactive upon reset.

[従来の技術コ 従来、この種のシステムとしては、第3図に示すものが
知られている。これは制御部本体を構成するCPU (
中央処理装置)1、このCPUIが各部を制御するため
のプログラムデータが格納されたROM (リード●オ
ンリー●メモリ)2、処理データを一時格納するメモリ
等が設けられたRAM (ランタム・アクセス・メモリ
)3、リセットにより非アクティブとなるI/O(入出
力)ポート4を設け、それぞれバスライン5を介して接
続している。
[Prior Art] As a conventional system of this type, the one shown in FIG. 3 is known. This is the CPU (
(central processing unit) 1, ROM (read-only memory) 2, which stores program data for this CPU to control various parts, RAM (random access memory), which has memory for temporarily storing processing data, etc. ) 3, I/O (input/output) ports 4 that become inactive upon reset are provided, and are connected to each other via bus lines 5.

前記I/Oポート4にはソレノイド6を駆動するソレノ
イド駆動回路7及びモータ8を駆動するモータ駆動回路
9がそれぞれ接続されている。
A solenoid drive circuit 7 for driving the solenoid 6 and a motor drive circuit 9 for driving the motor 8 are connected to the I/O port 4, respectively.

そして直流電源10にリセットICIIを接続し、その
リセットICIIの出力端子をCPUIのリセット端子
及びI/Oポートのリセット端子に接続している。
A reset ICII is connected to the DC power supply 10, and an output terminal of the reset ICII is connected to a reset terminal of the CPUI and a reset terminal of the I/O port.

この回路においては、電源1oの投入時リセットIC1
1は電源電圧が所定レベル以上に立上るまでは出力端子
からローレベルな信号を出力してCPUI及びI/Oポ
ート4をリセット状態に保持させ、電源電圧が所定レベ
ル以上に立上ると出力端子からハイレベルな信号を出力
してCPUI及びI/Oポート4のリセット状態を解除
するようになっている。
In this circuit, when the power supply 1o is turned on, the reset IC1
1 outputs a low level signal from the output terminal to hold the CPUI and I/O port 4 in a reset state until the power supply voltage rises above a predetermined level, and when the power supply voltage rises above a predetermined level, the output terminal outputs a low level signal. The reset state of the CPU I and I/O port 4 is released by outputting a high-level signal from the I/O port 4.

しかしこの回路においては、CPU1が動作中に暴走し
た場合にはI/Oポート4はリセットされずにアクティ
ブ状態のままとなり、このため1ソレノイド6やモータ
8が異常動作する危険があった。
However, in this circuit, if the CPU 1 goes out of control during operation, the I/O port 4 will not be reset and will remain in the active state, so there is a risk that the solenoid 6 and the motor 8 will operate abnormally.

このためこれを改良したものとして第4図に示すものが
知られている。
For this reason, the one shown in FIG. 4 is known as an improved version of this.

これはI/Oポートとしてイネーブル状態にあるときI
/Oイネーブル信号を出力するI/Oポート4′を使用
し、各駆動回路7.9を駆動信号とI/Oイネーブル信
号の両方で制御し、CPUIが暴走したときにはI/O
ポート4′のイネーブル状態が解かれI/Oイネーブル
信号の出力を停止させソレノイド6及びモータ8の動作
を強制的に停止させて安全性を確保するというものであ
る。
This is an I/O port when enabled.
The I/O port 4' that outputs the /O enable signal is used to control each drive circuit 7.9 with both the drive signal and the I/O enable signal, and when the CPU goes out of control, the I/O
The enable state of the port 4' is released, the output of the I/O enable signal is stopped, and the operations of the solenoid 6 and motor 8 are forcibly stopped to ensure safety.

[発明が解決しようとする課題コ このように従来においてはCPUの暴走に対しては対処
できるが、しかしCPUの動作が途中で停止するような
事故が発生した場合には対処できなかった。すなわち動
作停止が例えばI/Oポート4′が各駆動回路7,9を
アクティブしている状態で発生するとソレノイド6及び
モータ8が何時までも停止されずに動作し続ける危険が
あった。
[Problems to be Solved by the Invention] In the past, it was possible to deal with a runaway CPU, but it was not possible to deal with an accident in which the CPU stopped midway. That is, if the operation stops, for example, when the I/O port 4' is activating each of the drive circuits 7 and 9, there is a risk that the solenoid 6 and the motor 8 will continue to operate without being stopped.

そこで本発明は、中央処理装置が動作途中で停止するこ
とがあると入出力ポートを確実にリセットできるシステ
ムリセット回路を提供しようとするものである。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a system reset circuit that can reliably reset input/output ports when a central processing unit stops during operation.

[課題を解決するための手段] 本発明は、中央処理装置及びリセットにより非アクティ
ブとなり、かつイネーブル状態にあるときイネーブル信
号を出力する入出力ポートを設けたシステムにおいて、
中央処理装置の動作時にその中央処理装置から出力され
るクロックにトリガーされてクロック周期よりも長い時
間所望の出力を送出するように設定され、かつ所望出力
の送出期間に次のクロックが入力されると再トリガーさ
れるリトリガブル・シングル・ショット回路を設け、こ
のシングル・ショット回路からの所望の出力が停止され
たとき入出力ポートをリセットするものである。
[Means for Solving the Problems] The present invention provides a system including a central processing unit and an input/output port that becomes inactive by reset and outputs an enable signal when in an enabled state.
It is set to transmit a desired output for a period longer than the clock cycle triggered by a clock output from the central processing unit when the central processing unit is operating, and the next clock is input during the transmission period of the desired output. A retriggerable single shot circuit that is retriggered is provided, and the input/output port is reset when the desired output from the single shot circuit is stopped.

[作用] このような構成の本発明においては、中央処理装置が動
作しているときにはその中央処理装置から出力されるク
ロックによってリトリガブル・シングル・ショット回路
が再トリガーされ続けそのショット回路から所望の出力
が送出し続ける。これにより入出力ポートはイネープル
状態となる。
[Function] In the present invention having such a configuration, when the central processing unit is operating, the retriggerable single shot circuit continues to be retriggered by the clock output from the central processing unit to obtain the desired output from the shot circuit. continues to send out. This puts the input/output port into an enabled state.

そして中央処理装置が動作途中で停止することがあると
その中央処理装置からのクロックの出力が停止されるの
で、リトリガプル・シングル・ショット回路からの所望
の出力の送出が停止され人出力ポートはリセットされ、
非アクティブ状態となる。
If the central processing unit stops mid-operation, the clock output from the central processing unit is stopped, so the desired output from the retrigger-pull single-shot circuit is stopped and the output port is reset. is,
Becomes inactive.

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

第1図に示すように、制御部本体を構成するCPU (
中央処理装置)21、このCPU21が各部を制御する
ためのプログラムデータが格納されたROM (リード
・オンリー・メモリ)22、処理データを一時格納する
メモリ等が設けられたRAM (ランタム・アクセス・
メモリ)23、リセットにより非アクディブとなるI/
O (人出力)ポート24を設け、それぞれバスライン
25を介して接続している。
As shown in Fig. 1, the CPU (
A central processing unit) 21, a ROM (read-only memory) 22 in which program data for controlling various parts of the CPU 21 is stored, and a RAM (random access memory) in which a memory for temporarily storing processing data, etc.
Memory) 23, I/I that becomes inactive due to reset
O (human output) ports 24 are provided and connected via bus lines 25, respectively.

前記I/Oポート24にはソレノイド26を駆動するソ
レノイド駆動回路27及びモータ28を駆動するモータ
駆動回路29がそれぞれ接続されている。また前記I/
Oポート24から前記各駆動回路27.29にI/Oイ
ネーブル信号を供給するようにしている。
A solenoid drive circuit 27 that drives a solenoid 26 and a motor drive circuit 29 that drives a motor 28 are connected to the I/O port 24, respectively. Also, the above I/
An I/O enable signal is supplied from the O port 24 to each of the drive circuits 27 and 29.

そして直流電源30にリセットIC31を接続し、その
リセットIC31の出力端子をCPU21のリセット端
子及び2人力形の負論理オア回路32の一方の入力端子
に接続している。
A reset IC 31 is connected to the DC power supply 30, and the output terminal of the reset IC 31 is connected to the reset terminal of the CPU 21 and one input terminal of a two-power negative logic OR circuit 32.

前記CPU21は動作時にはφクロックを出力するよう
になっており、このφクロックをリトリガブル・シング
ル・ショット回路33に供給している。前記リトリガブ
ル・シングル・ショット回路33はコンデンサ34と抵
抗35の時定数によって所望出力であるハイレベル信号
の出力時間が決められており、この出力時間はφクロッ
クの周期よりも長い時間、例えばφクロツク周期の2倍
程度に設定されている。従って前記リトリガブル・シン
グル・ショット回路33はφクロツクが連続して入力さ
れる限り再トリガーされ続け、ノ\イレベル信号を出力
し続けるようになっている。
The CPU 21 outputs a φ clock during operation, and supplies this φ clock to the retriggerable single shot circuit 33. The retriggerable single shot circuit 33 has a time constant of a capacitor 34 and a resistor 35 to determine the output time of a high level signal, which is a desired output, and this output time is longer than the period of the φ clock, for example, It is set to about twice the period. Therefore, the retriggerable single shot circuit 33 continues to be retriggered as long as the φ clock is continuously inputted, and continues to output the noise level signal.

前記リトリガブル・シングル・ショット回路33の出力
端子を前記オア回路32の他方の人力端子に接続してい
る。そして前記オア回路32の出力端子を前記I/Oポ
ート24のリセット端子に接続している。
The output terminal of the retriggerable single shot circuit 33 is connected to the other human input terminal of the OR circuit 32. The output terminal of the OR circuit 32 is connected to the reset terminal of the I/O port 24.

このような構成の本実施例においては、第2図の(a)
に示すように直流電源30が立ち上がるとその出力電圧
が所定レベルに達するまではリセットlc31の出力レ
ベルは第2図の(b)に示すようにローレベルとなる。
In this embodiment with such a configuration, (a) in FIG.
As shown in FIG. 2, when the DC power supply 30 is turned on, the output level of the reset lc 31 is at a low level as shown in FIG. 2(b) until its output voltage reaches a predetermined level.

しかしてCPU21及びI/Oポート24はリセット状
態となる。
Thus, the CPU 21 and the I/O port 24 are put into a reset state.

その後直流電源30からの出力電圧が所定レベルに達す
るとリセットIC31の出力レベルはハイレベルに反転
し、CPU21及びI/Oポート24のリセット状態が
解かれ、I/Oポート24はイネーブル状態となる。
Thereafter, when the output voltage from the DC power supply 30 reaches a predetermined level, the output level of the reset IC 31 is inverted to high level, the CPU 21 and the I/O port 24 are released from the reset state, and the I/O port 24 is enabled. .

CPU21はリセット状態が解かれると動作状態となり
第2図の(c)に示すようにφクロックを出力するよう
になる。
When the CPU 21 is released from the reset state, it enters the operating state and begins to output the φ clock as shown in FIG. 2(c).

しかしてφクロックによってリトリガブル・シングル・
ショット回路33は繰り返しトリガーされ第2図の(r
)に示すようにハイレベル信号を連続して出力するよう
になる。
However, retriggerable single
The shot circuit 33 is repeatedly triggered to (r
), a high level signal is output continuously.

この状態ではCPU21によりI/Oポート24が制御
され第2図の(d)(e)に示すようにモ−夕駆動回路
29及びソレノイド駆動回路27を制御する信号が出力
されてモータ28、ソレノイド26がそれぞれ個々に駆
動されるようになる。
In this state, the I/O port 24 is controlled by the CPU 21, and as shown in FIG. 26 are individually driven.

そしてこのような制御を行っている途中でCPU21の
動作が停止する事故が発生すると第2図の(e)に示す
ようにφクロツクの出力が停止する。このときI/Oポ
ート24からソレノイド駆動回路27への出力が丁度停
止されたとすると、ソレノイド26は動作を停止するこ
とになる。またI/Oポート24からモータ駆動回路2
9への出力は継続しているとすると、モータ28はその
後も動作し続けることになる。
If an accident occurs in which the operation of the CPU 21 stops during such control, the output of the φ clock stops as shown in FIG. 2(e). At this time, if the output from the I/O port 24 to the solenoid drive circuit 27 is just stopped, the solenoid 26 will stop operating. Also, from the I/O port 24 to the motor drive circuit 2
Assuming that the output to the motor 9 continues, the motor 28 will continue to operate thereafter.

しかしφクロックの出力停止によってリトリガブル・シ
ングル・ショット回路33からのハイレベル信号の出力
は第2図の(f)に示すようにやがて停止され出力がロ
ーレベルとなる。こうしてI/Oポート24のリセット
端子にローレベルなリセット信号が入力され、I/Oポ
ート24がリセットされるようになる。従ってI/Oポ
ート24は非アクティブ状態となり第2図の(d)に示
すようにモータ駆動回路29への出力が停止されモータ
28の動作が強制的に停止される。
However, as the output of the φ clock is stopped, the output of the high level signal from the retriggerable single shot circuit 33 is eventually stopped as shown in FIG. 2(f), and the output becomes low level. In this way, a low level reset signal is input to the reset terminal of the I/O port 24, and the I/O port 24 is reset. Therefore, the I/O port 24 becomes inactive, and as shown in FIG. 2(d), the output to the motor drive circuit 29 is stopped and the operation of the motor 28 is forcibly stopped.

こうしてCPU21の動作停止時の安全性が確保される
ことになる。
In this way, safety is ensured when the CPU 21 stops operating.

またCPU21が暴走したときにはI/Oポート24は
イネーブル状態が解かれるのでI/Oイネーブル信号の
出力が停止される。従ってこのときにはたとえソレノイ
ド駆動回路27及びモータ駆動回路2つが動作中でもそ
の動作は直ちに停止されることになる。
Further, when the CPU 21 goes out of control, the enable state of the I/O port 24 is released, so the output of the I/O enable signal is stopped. Therefore, at this time, even if the solenoid drive circuit 27 and the two motor drive circuits are in operation, their operations are immediately stopped.

[発明の効果] 以上詳述したように本発明によれば、中央処理装置が動
作途中で停止することがあると入出力ポートを確実にリ
セットできるシステムリセット回路を提供できるもので
ある。
[Effects of the Invention] As described in detail above, according to the present invention, it is possible to provide a system reset circuit that can reliably reset input/output ports when the central processing unit stops during operation.

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

第1図は本発明の実施例を示すブロック図、第2図は同
実施例における各部の動作タイミングを示すタイミング
図、第3図及び第4図は従来例を示すブロック図である
。 21・・・CPU (中央処理装置)、22・・・RO
M (リード・オンリー・メモリ)、24・・・I/O
ポート(人出力ポート)、33・・・リトリガブル・シ
ングル・ショット回路。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a timing chart showing the operation timing of each part in the same embodiment, and FIGS. 3 and 4 are block diagrams showing a conventional example. 21...CPU (central processing unit), 22...RO
M (read-only memory), 24...I/O
Port (human output port), 33... Retriggerable single shot circuit.

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置及びリセットにより非アクティブとなり、
かつイネーブル状態にあるときイネーブル信号を出力す
る入出力ポートを設けたシステムにおいて、前記中央処
理装置の動作時にその中央処理装置から出力されるクロ
ックにトリガーされてクロック周期よりも長い時間所望
の出力を送出するように設定され、かつ所望出力の送出
期間に次のクロックが入力されると再トリガーされるリ
トリガブル・シングル、ショット回路を設け、このシン
グル・ショット回路からの所望の出力が停止されたとき
前記入出力ポートをリセットすることを特徴とするシス
テムリセット回路。
becomes inactive due to central processing unit and reset;
In a system provided with an input/output port that outputs an enable signal when the central processing unit is in an enabled state, the central processing unit is triggered by a clock output from the central processing unit and outputs a desired output for a period longer than the clock cycle. A retriggerable single shot circuit is provided that is set to transmit and is retriggered when the next clock is input during the transmission period of the desired output, and when the desired output from this single shot circuit is stopped. A system reset circuit that resets the input/output port.
JP1186019A 1989-07-20 1989-07-20 System reset circuit Pending JPH0351928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1186019A JPH0351928A (en) 1989-07-20 1989-07-20 System reset circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1186019A JPH0351928A (en) 1989-07-20 1989-07-20 System reset circuit

Publications (1)

Publication Number Publication Date
JPH0351928A true JPH0351928A (en) 1991-03-06

Family

ID=16180970

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1186019A Pending JPH0351928A (en) 1989-07-20 1989-07-20 System reset circuit

Country Status (1)

Country Link
JP (1) JPH0351928A (en)

Similar Documents

Publication Publication Date Title
US4233666A (en) Drive power sequencing
US5047987A (en) Low voltage inhibit control apparatus
US5313621A (en) Programmable wait states generator for a microprocessor and computer system utilizing it
JPH0351928A (en) System reset circuit
JPS6432302A (en) Controller for air conditioner
JPH0248909Y2 (en)
JPH01129316A (en) Reset device
JPH03142632A (en) Initial value deciding device
JPS63191245A (en) Resetting control system for device being in runaway state
JP2003122600A (en) Watch dog timer device
JPS6418813A (en) Automatic power supply control system
JPS62198940A (en) Abnormality detecting system for controller using microcomputer
JPS622684Y2 (en)
JPS62285101A (en) Copy machine control device
JPH07129278A (en) Resetting control circuit of multiprocessor system
JPH01175001A (en) Protection system for storage data
JPS60238964A (en) Controller of data holding circuit
JPH0318296A (en) Driving circuit for pulse motor
JPS6278616A (en) Stand-by control system in cut-off mode of power supply
JPH04151706A (en) Cpu reset circuit
JPH01199245A (en) Output device with external memory
JPH01302438A (en) Watch dog timer circuit
JPH02122320A (en) signal holding circuit
JPS61163440A (en) Runaway prevent circuit of microcomputer system
JPS606118A (en) Memory backup apparatus in agricultural machine