JPS6316316A - Resetting device - Google Patents

Resetting device

Info

Publication number
JPS6316316A
JPS6316316A JP61160057A JP16005786A JPS6316316A JP S6316316 A JPS6316316 A JP S6316316A JP 61160057 A JP61160057 A JP 61160057A JP 16005786 A JP16005786 A JP 16005786A JP S6316316 A JPS6316316 A JP S6316316A
Authority
JP
Japan
Prior art keywords
reset
circuit
reset signal
output
microprocessor
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
JP61160057A
Other languages
Japanese (ja)
Inventor
Makoto Michigami
道上 誠
Akimine Nagata
明峰 永田
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.)
Panasonic System Solutions Japan Co Ltd
Original Assignee
Matsushita Graphic Communication Systems Inc
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 Matsushita Graphic Communication Systems Inc filed Critical Matsushita Graphic Communication Systems Inc
Priority to JP61160057A priority Critical patent/JPS6316316A/en
Publication of JPS6316316A publication Critical patent/JPS6316316A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To set an optimum action for each resetting factor and to secure a proper operation with a resetting device, by keeping the information showing a specific one of plural types of reset signal sources that produces a reset signal. CONSTITUTION:The reset signal outputted from a power supply resetting circuit 1 or a manual resetting circuit 2 is sent to a microprocessor 4 through an OR gate 3. If the reset signal is outputted from the circuit 1, a flip-flop FF5 is set. While the FF5 is reset if the reset signal is outputted from the circuit 2. The microprocessor reads the Q output of the FF5 to decide a logic after the reset signal received from the gate 3 is erased. If the Q output is equal to '1', it is highly possible that a program of the contents RAM of the microprocessor 4. Thus a normal operation is carried out after the program is read again to the RAM from an external ROM.

Description

【発明の詳細な説明】 産業上の利用分野 この発明は、マイクロプロセッサ等の回路装置に対して
初期状態設定用のリセット信号を与えるリセット装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a reset device that provides a reset signal for initial state setting to a circuit device such as a microprocessor.

従来の技術 マイクロプロセッサ等の多くの回路装置にはりセクト入
力端子があり、ここに所定のリセット信号が印加される
と、回路装置の状態が所定の初期状態に強制的に復帰す
るようIこなっている。
BACKGROUND OF THE INVENTION Many circuit devices such as microprocessors have a sector input terminal, and when a predetermined reset signal is applied thereto, the state of the circuit device is forced to return to a predetermined initial state. ing.

この種の装置では普通、複数種類のりセクト信号源を設
けている。代表的なのは電源リセット回路と手動リセッ
ト回路である。電源リセット信号は、制御対象(回路装
置)の電源電圧を常時監視していて、正常な電圧範囲か
ら外れたときにリセット信号を発生する。手動リセット
回路は、所定のリセットスイッチの操作に応動してリセ
ット信号を発生する。その他にも、入出力系統に何らか
の異常が発生したときや、プログラム実行上の異常が発
生したときにリセット信号を出力するものなどがある。
Devices of this type typically include multiple types of sector signal sources. Typical examples are power supply reset circuits and manual reset circuits. The power supply reset signal constantly monitors the power supply voltage of the controlled object (circuit device), and generates a reset signal when the voltage falls outside of a normal voltage range. The manual reset circuit generates a reset signal in response to operation of a predetermined reset switch. In addition, there are devices that output a reset signal when some abnormality occurs in the input/output system or when an abnormality occurs in program execution.

、  従来、複数のリセット信号源と制御対象との接続
は第3図のようになっていた。この例では、電源リセッ
ト回路1と手動リセット回路2とがリセット信号源であ
り、両回路の出力がオア/7’ −ト3で1系統に共通
化され、制御対象であるマイクロプロセッサ4のリセッ
ト入力端子に接続されている。電源リセット回路1ある
いは手動リセット回路29いずれかからリセット信号が
出力されると、マイクロプロセッサ4にリセット信号が
印加される。
Conventionally, the connections between multiple reset signal sources and the controlled object were as shown in Figure 3. In this example, the power supply reset circuit 1 and the manual reset circuit 2 are reset signal sources, and the outputs of both circuits are shared by OR/7'-G3 into one system, and the output of the microprocessor 4, which is the controlled object, is reset. connected to the input terminal. When a reset signal is output from either the power supply reset circuit 1 or the manual reset circuit 29, the reset signal is applied to the microprocessor 4.

発明が解決しようとする問題点 第3図の従来の構成では、リセット信号が印加されたと
き(リセット解除時点き同義)のマイクロプロセッサ4
のリセット動作は1種類しか設定することができない。
Problems to be Solved by the Invention In the conventional configuration shown in FIG. 3, the microprocessor 4 is
Only one type of reset operation can be set.

リセット信号が電源リセット回路1かも出力されたのか
手動リセット回路2から出力されたのかがマイクロプロ
セッサ4側で判る構成にはなっていないので、リセット
原因(どの信号源からりセクト信号が生じたのか)によ
ってリセット動作の内容を変えることができない。
Since the microprocessor 4 is not configured to know whether the reset signal was output from the power supply reset circuit 1 or the manual reset circuit 2, it cannot determine the cause of the reset (which signal source generated the sector signal). ) cannot change the contents of the reset operation.

例えば、電源電圧が異常低下してリセットがかかったの
であれば、プロセッサ内のRA Mのプロクラムが消失
しているので、リセット解除時点で外部のROMからプ
ログラムを読み込み直して初期状態に戻らなければなら
ない。手動リセットの場合はその必要はない。しかし、
従来はリセット原因は判らないので、手動リセットの場
合でも、長い時間をかけてプログラムの読み込み直しを
行なっていた。この例のような運用上の効率の悪さを生
じたり、最適な運用を行なえない等の問題があった。
For example, if a reset is applied due to an abnormal drop in the power supply voltage, the program in the RAM in the processor will be lost, so the program must be reloaded from an external ROM to return to the initial state when the reset is released. It won't happen. This is not necessary for manual reset. but,
Conventionally, the cause of a reset was unknown, so even in the case of a manual reset, it took a long time to reload the program. As in this example, there were problems such as poor operational efficiency and failure to perform optimal operations.

この発明は上述した従来の問題点に鑑みなされたもので
、その目的は、リセット原因によってリセット動作の内
容を変えたり、他の運用動作を変えることができるよう
にしたリセット装置を提供することにある。
This invention was made in view of the above-mentioned conventional problems, and its purpose is to provide a reset device that can change the content of the reset operation depending on the cause of reset, and can change other operational operations. be.

問題点を解決するための手段 そこでこの発明では、複数種類のリセット信号源の出力
をゲート回路で1系統に共通化して制御対象(回路装置
)に供給するさともに、各リセット信号源のいずれから
リセット信号が出力されたのかをリセット原因記憶回路
で記憶保持するように構成した。
Means for Solving the Problems Therefore, in the present invention, the outputs of multiple types of reset signal sources are unified into one system by a gate circuit and supplied to the controlled object (circuit device), and the outputs of multiple types of reset signal sources are unified into one system and supplied to the controlled object (circuit device). The configuration is such that the reset cause memory circuit stores and holds information as to whether a reset signal has been output.

作  用 リセット信号が消失した後(リセット解除後)でも、上
記記憶回路の出力をチェックすることでリセット原因が
何であったかを知ることができるので、リセット原因に
応じた動作、運用を実行することかできる。
Even after the reset signal disappears (after the reset is released), it is possible to know what the cause of the reset was by checking the output of the above memory circuit, so it is possible to perform actions and operations according to the cause of the reset. can.

実施例 第1図はこの発明の一実施例を示している。前述した従
来例と同様に、リセット信号源として電源リセット回路
1と手動リセット回路2の2つがあり、両回路の出力が
オアゲート3で1系統にまとめられて、制御対象として
のマイクロプロセッサ4のリセット入力端子に接続され
ている。
Embodiment FIG. 1 shows an embodiment of the present invention. Similar to the conventional example described above, there are two reset signal sources, a power supply reset circuit 1 and a manual reset circuit 2, and the outputs of both circuits are combined into one system by an OR gate 3 to reset the microprocessor 4 as the controlled object. connected to the input terminal.

この実施例では、リセット原因記憶回路としてフリップ
フロップ5を設けている。フリップフロップ5のS入力
は電源リセット回路1の出力に接続され、R入力は手動
リセット回路2の出力に接続されている。また、フリッ
プフロップ5のQ出力がマイクロプロセッサ4の所定の
入力ポートに接続されている。
In this embodiment, a flip-flop 5 is provided as a reset cause storage circuit. The S input of the flip-flop 5 is connected to the output of the power supply reset circuit 1, and the R input is connected to the output of the manual reset circuit 2. Further, the Q output of the flip-flop 5 is connected to a predetermined input port of the microprocessor 4.

上記の構成において、電源リセ7)回路1あるいは手動
リセット回路2のいずれかからりセクト信号が出力され
ると、オアゲート3を通じてマイクロプロセッサ4にリ
セット信号が印加される。
In the above configuration, when a sector signal is output from either the power reset circuit 1 or the manual reset circuit 2, a reset signal is applied to the microprocessor 4 through the OR gate 3.

加えて、電源リセット回路1からリセット信号が出力さ
れたのであればフリップフロップ5はセットされ、手動
リセット回路2からリセット信号が出力されたのであれ
ばフリップフロップ5はリセットされる。
In addition, if the power supply reset circuit 1 outputs a reset signal, the flip-flop 5 is set, and if the manual reset circuit 2 outputs a reset signal, the flip-flop 5 is reset.

そこでマイクロプロセッサ4は、オアゲート3からのリ
セット信号が消失したならば(リセット解除)、第2図
に示すように、まずフリップフロップ5のQ出力を読み
込んで論理を判定する。Q出力が”1″であれば、直前
までのリセット信号は電源リセット回路1から生じてい
たのである。この場合、プロセッサ4の内部RA Mの
プログラムが消失している可能性が高いので、外部RO
MからRAMにプログラムを読み込み直してから通常運
用に進む。Q出力が”0゛であれば、リセット信号は手
動リセット回路2から生じていたのである。この場合1
iRAMのプログラム消失を考慮する必要はなく、すぐ
に通常運用に進む。
Therefore, when the reset signal from the OR gate 3 disappears (reset release), the microprocessor 4 first reads the Q output of the flip-flop 5 and determines the logic, as shown in FIG. If the Q output is "1", the previous reset signal was generated from the power supply reset circuit 1. In this case, there is a high possibility that the program in the internal RAM of the processor 4 has been lost, so the external RO
After reloading the program from M to RAM, proceed to normal operation. If the Q output is "0", the reset signal was generated from manual reset circuit 2. In this case, 1
There is no need to consider the loss of programs in iRAM, and normal operation can proceed immediately.

なお、上記実施例ではリセット信号源を2つとしたが、
3つ以上のリセット信号源がある場合には、リセット原
因記憶回路として所要ビット数のレジスタ等を用いれば
良い。
In addition, in the above embodiment, two reset signal sources were used, but
If there are three or more reset signal sources, a register with the required number of bits may be used as the reset cause storage circuit.

制御対象もマイクロプロセッサに限定される訳では勿論
なく、様々な回路装置が対象となる。また、リセット信
号の供給対象と、リセット原因記憶回路の出力を利用す
るものとが異なる運用方法もある。
Of course, the control target is not limited to microprocessors, but various circuit devices can be controlled. Furthermore, there is also an operation method in which the object to which the reset signal is supplied differs from the method in which the output of the reset cause storage circuit is used.

発明の効果 以上詳細に説明したように、この発明に係るリセット装
置によれば、複数種類のリセット信号源のどれからリセ
ット信号が生じたのかを示す情報が残るので、この情報
に基づいてリセット原因別に最適な動作を設定し、適切
な運用を計るこきができる。
Effects of the Invention As explained in detail above, according to the reset device according to the present invention, information indicating which of a plurality of types of reset signal sources has generated a reset signal remains, and based on this information, the cause of the reset can be determined. You can set the optimal operation separately and measure appropriate operation.

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

第1図は本発明の一実施例によるリセット装置のブロッ
ク図、第2図は同上実施例におけるリセット原因別の運
用例を示すブロック図、第3図は従来のリセット装置の
ブロック図て゛あう。 1・・・電源リセット回路、2・・・手動リセット回路
、3・・・オアゲート、4・−・マイクロプロセッサ(
制御対象)、5・・・フリップフロップ(リセット原因
記憶回路)。
FIG. 1 is a block diagram of a reset device according to an embodiment of the present invention, FIG. 2 is a block diagram showing an example of operation according to reset cause in the same embodiment, and FIG. 3 is a block diagram of a conventional reset device. 1... Power supply reset circuit, 2... Manual reset circuit, 3... OR gate, 4... Microprocessor (
Controlled object), 5...Flip-flop (reset cause memory circuit).

Claims (1)

【特許請求の範囲】[Claims] (1)制御対象となる回路装置に対してリセット信号を
発生する複数種類のリセット信号源と、これらリセット
信号源の出力を1系統に共通化して上記回路装置に供給
するゲート回路と、各リセット信号源のいずれからリセ
ット信号が出力されたのかを記憶するリセット原因記憶
回路とを備えたリセット装置。
(1) Multiple types of reset signal sources that generate reset signals for circuit devices to be controlled, a gate circuit that unifies the output of these reset signal sources into one system and supplies it to the circuit device, and each reset A reset device comprising a reset cause storage circuit that stores which signal source outputs a reset signal.
JP61160057A 1986-07-08 1986-07-08 Resetting device Pending JPS6316316A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61160057A JPS6316316A (en) 1986-07-08 1986-07-08 Resetting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61160057A JPS6316316A (en) 1986-07-08 1986-07-08 Resetting device

Publications (1)

Publication Number Publication Date
JPS6316316A true JPS6316316A (en) 1988-01-23

Family

ID=15706971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61160057A Pending JPS6316316A (en) 1986-07-08 1986-07-08 Resetting device

Country Status (1)

Country Link
JP (1) JPS6316316A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03166615A (en) * 1989-11-27 1991-07-18 Nec Corp Initialization factor analyzing circuit
JPH05197451A (en) * 1992-01-17 1993-08-06 Nec Gumma Ltd Information processor
US6544600B2 (en) 1998-12-16 2003-04-08 Battelle Memorial Institute Plasma enhanced chemical deposition of conjugated polymer
US6811829B2 (en) 1998-12-16 2004-11-02 Battelle Memorial Institute Method of making a coating of a microtextured surface

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03166615A (en) * 1989-11-27 1991-07-18 Nec Corp Initialization factor analyzing circuit
JPH05197451A (en) * 1992-01-17 1993-08-06 Nec Gumma Ltd Information processor
US6544600B2 (en) 1998-12-16 2003-04-08 Battelle Memorial Institute Plasma enhanced chemical deposition of conjugated polymer
US6811829B2 (en) 1998-12-16 2004-11-02 Battelle Memorial Institute Method of making a coating of a microtextured surface

Similar Documents

Publication Publication Date Title
US4964074A (en) In-circuit emulator
EP0377455B1 (en) Test mode switching system for LSI
US4870573A (en) Microcomputer capable of testing execution of a program with no branch
JPS6316316A (en) Resetting device
JPS6260038A (en) Watchdog circuit
JP2508305B2 (en) Initial value determination device
JP2739786B2 (en) Multi-processor system
JPS5827248A (en) Integrated circuit
JPH02310734A (en) Microcomputer
JPS62125441A (en) One-chip microcomputer
JP3137089B2 (en) Microcomputer
SU1068937A1 (en) Firmware control unit
JPH11338712A (en) Interruption sequence saving circuit
JPH0535530A (en) Address stop control circuit
JPH0414374B2 (en)
JPS648381B2 (en)
JPH0340116A (en) Timer circuit
JPS59117645A (en) Testing method of computer system
JPS62285166A (en) Address control system for microcomputer
JPH0782407B2 (en) Reset processing method for microprocessor
JPH02220159A (en) Adaptor control system
JPS6361342A (en) Integrated circuit for control
JPH01187658A (en) Bus load system
JPS553083A (en) Control system for microprogram
JPH04241636A (en) Time monitoring circuit