JPH04346112A - Method and device for reset signal identification - Google Patents
Method and device for reset signal identificationInfo
- Publication number
- JPH04346112A JPH04346112A JP3149541A JP14954191A JPH04346112A JP H04346112 A JPH04346112 A JP H04346112A JP 3149541 A JP3149541 A JP 3149541A JP 14954191 A JP14954191 A JP 14954191A JP H04346112 A JPH04346112 A JP H04346112A
- Authority
- JP
- Japan
- Prior art keywords
- power
- reset signal
- level
- reset
- register
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 238000001514 detection method Methods 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は上位装置より支障時に下
位装置に対してリセット信号を出力してこの下位装置を
リセットし、かつ電源投入によるパワーオンリセット信
号により下位装置をリセットする2つのリセット信号を
識別する方法及び装置に係る。[Industrial Application Field] The present invention provides two reset methods: one is to output a reset signal from a higher-level device to a lower-level device when a problem occurs, to reset the lower-level device, and the other is to reset the lower-level device by a power-on reset signal when the power is turned on. This invention relates to a method and apparatus for identifying signals.
【0002】特に下位装置の電源投入時のみ行う処理を
上位装置からのリセット信号毎に行うことを回避するリ
セット信号識別方法及び装置に関する。In particular, the present invention relates to a reset signal identification method and apparatus that avoids performing processing only when a lower-level device is powered on for each reset signal from a higher-level device.
【0003】0003
【従来の技術】図3は従来のフローチャートであり、従
来を図1を参照し、このフローチャートに従って説明す
ると、従来は下位装置2の電源投入によるパワーオンリ
セット信号RS2 又は上位装置1からのリセット信号
RS1 により下位装置2,マイクロプロセッサ5,プ
ログラムメモリ6及びワークメモリ7を初期化する。2. Description of the Related Art FIG. 3 is a conventional flow chart. Referring to FIG. 1, the conventional method will be explained according to this flow chart. The lower unit 2, microprocessor 5, program memory 6, and work memory 7 are initialized by RS1.
【0004】初期化されると、マイクロプロセッサ5は
プログラムメモリ6の0番地より実行(スタート)し、
パワーオンリセット時にワークメモリ7の全メモリエリ
アを“0”値にセット(メモリ0クリア)し、プログラ
ムメモリ6のメモリチェック(電源投入後、1回行う処
理)を行い、しかる後、下位装置2の運用をスタートさ
せ、上位装置1の出力に基づき、マイクロプロセッサ5
により下位装置2をプログラムメモリ6内のプログラム
に従い制御することになる。When initialized, the microprocessor 5 executes (starts) from address 0 of the program memory 6.
At power-on reset, all memory areas of the work memory 7 are set to "0" value (memory 0 cleared), a memory check of the program memory 6 is performed (a process performed once after power is turned on), and after that, the lower device 2 The microprocessor 5 starts operation based on the output of the host device 1.
The lower device 2 is controlled according to the program in the program memory 6.
【0005】[0005]
【発明が解決しようとする課題】上記従来例にあっては
、ソフトウェアでは2種のリセット信号を識別できない
ため、電源投入後、1回だけ行うべき処理を上位装置1
からのリセット信号毎に行ってしまうという課題がある
。[Problems to be Solved by the Invention] In the above-mentioned conventional example, since the software cannot distinguish between the two types of reset signals, the process that should be performed only once after the power is turned on is performed only once by the host device.
There is a problem that the process is performed every time there is a reset signal from the .
【0006】[0006]
【課題を解決するための手段】本発明方法は上記の課題
を解決するため、図1に示すように上位装置1より支障
時に下位装置2に対してリセット信号RS1を出力して
この下位装置2をリセットし、かつ電源投入によるパワ
ーオンリセット信号RS2 により該下位装置2をリセ
ットする2つのリセット信号RS1 ,RS2 を識別
する方法において、リセット信号が前記下位装置2の電
源投入によるパワーリセット信号RS2 であるときに
のみこのパワーリセット信号RS2 のHレベルを電源
検出回路3により検出し、この検出されたパワーオンリ
セット信号RS2 のHレベルをレジスタ4により保持
し、この保持されたHレベルをプロセッサ5により読み
込んでパワーオンリセット信号RS2 である旨判定し
、しかる後前記レジスタ4の内容をLレベルとすること
を特徴とする。[Means for Solving the Problems] In order to solve the above-mentioned problems, the method of the present invention, as shown in FIG. In a method for identifying two reset signals RS1 and RS2 that reset the lower device 2 by a power-on reset signal RS2 caused by power-on of the lower-level device 2, the reset signal is a power-on reset signal RS2 caused by power-on of the lower-level device 2. The power supply detection circuit 3 detects the H level of the power reset signal RS2 only at certain times, the detected H level of the power-on reset signal RS2 is held by the register 4, and the held H level is sent by the processor 5. It is characterized in that it is read and determined to be the power-on reset signal RS2, and then the contents of the register 4 are set to L level.
【0007】本発明装置は同じ課題を解決するため、図
1に示すように上位装置1より支障時に下位装置2に対
してリセット信号RS1 を出力してこの下位装置2を
リセットし、かつ電源投入によるパワーオンリセット信
号RS2 により該下位装置2をリセットする2つのリ
セット信号RS1 ,RS2 を識別する装置において
、リセット信号が前記下位装置2の電源投入によるパワ
ーオンリセット信号RS2 であるときにのみこのパワ
ーオンリセット信号RS2 のHレベルを検出する電源
検出回路3と、この電源検出回路3より出力するパワー
オンリセット信号RS2 のHレベルを保持するレジス
タ4と、このレジスタ4に保持されたHレベルを読み込
んでパワーオンリセット信号RS2 である旨判定し,
しかる後前記レジスタ4の内容をLレベルとするプロセ
ッサ5とよりなる。In order to solve the same problem, the device of the present invention outputs a reset signal RS1 from the higher-level device 1 to the lower-level device 2 in the event of a problem as shown in FIG. In a device that identifies two reset signals RS1 and RS2 that reset the lower device 2 by a power-on reset signal RS2 caused by A power supply detection circuit 3 that detects the H level of the on-reset signal RS2, a register 4 that holds the H level of the power-on reset signal RS2 output from this power supply detection circuit 3, and a register 4 that reads the H level held in this register 4. It is determined that it is the power-on reset signal RS2, and
Thereafter, the processor 5 sets the contents of the register 4 to L level.
【0008】[0008]
【作用】下位装置2の電源を投入すると、電源投入によ
るパワーオンリセット信号RS2 のHレベルが電源検
出回路3により検出され、この検出されたパワーオンリ
セット信号RS2 のHレベルがレジスタ4により保持
される。この保持されたHレベルがプロセッサ5により
読み込まれてパワーオンリセット信号RS2 であるか
否かが判定され、パワーオンリセット信号RS2 であ
る旨判定される。しかる後、このプロセッサ5によりレ
ジスタ4の出力がLレベルにされる。[Operation] When the lower device 2 is powered on, the power detection circuit 3 detects the H level of the power-on reset signal RS2 due to the power-on, and the register 4 holds the detected H level of the power-on reset signal RS2. Ru. This held H level is read by the processor 5, and it is determined whether or not it is the power-on reset signal RS2, and it is determined that it is the power-on reset signal RS2. Thereafter, the processor 5 sets the output of the register 4 to the L level.
【0009】上位装置1よりのリセット信号RS1 が
下位装置2 に入力すると、電源検出回路3は作動しな
いため、Lレベルのままになっている。プロセッサ5は
このLレベルを入力するので、パワーオンリセット処理
を行わない。When the reset signal RS1 from the higher-level device 1 is input to the lower-level device 2, the power supply detection circuit 3 does not operate, so it remains at the L level. Since the processor 5 inputs this L level, it does not perform power-on reset processing.
【0010】0010
【実施例】図1は本発明方法及び装置の1実施例の構成
を示すブロック図、図2は同じくそのフローチャートで
ある。図1において1は制御装置等の上位装置、2はこ
の上位装置1により制御される被制御装置等の下位装置
である。3は下位装置2の電源投入により得られるパワ
ーオンリセット信号RS2 のHレベルを検出する電源
検出回路、4はこの電源検出回路3より出力するパワー
オンリセット信号RS2 のHレベルを保持するセット
・リセットフリップフロップである。DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing the structure of an embodiment of the method and apparatus of the present invention, and FIG. 2 is a flowchart thereof. In FIG. 1, numeral 1 denotes a higher-level device such as a control device, and 2 denotes a lower-level device such as a controlled device controlled by this higher-level device 1. In FIG. 3 is a power supply detection circuit that detects the H level of the power-on reset signal RS2 obtained when the power is turned on to the lower device 2; 4 is a set/reset circuit that maintains the H level of the power-on reset signal RS2 output from the power supply detection circuit 3; It's a flip flop.
【0011】5はこのフリップフロップ回路4に保持さ
れたHレベルを読み込みパワーオンリセット信号RS2
である旨判定し、しかる後フリップフロップ回路4を
Lレベルとするマイクロプロセッサ、6はプログラムメ
モリ、7はワークメモリ、8はシステムバスである。上
位,下位装置1,2、電源検出回路3、フリップフロッ
プ回路4、マイクロプロセッサ5、プログラムメモリ6
及びワークメモリ7等はそれぞれIC、LSI化されて
いる。5 reads the H level held in this flip-flop circuit 4 and outputs a power-on reset signal RS2.
6 is a program memory, 7 is a work memory, and 8 is a system bus. Upper and lower devices 1 and 2, power supply detection circuit 3, flip-flop circuit 4, microprocessor 5, program memory 6
and the work memory 7, etc., are implemented as ICs and LSIs, respectively.
【0012】上記構成の本実施例において、下位装置2
の電源投入によるパワーオンリセット信号RS2 又は
上位装置1からのリセット信号RS1 により下位装置
2,マイクロプロセッサ5,プログラムメモリ6及びワ
ークメモリ7を初期化する。初期化されると、マイクロ
プロセッサ5はプログラムメモリ6の0番地より実行(
スタート)する。In this embodiment with the above configuration, the lower device 2
The lower device 2, microprocessor 5, program memory 6, and work memory 7 are initialized by a power-on reset signal RS2 when the power is turned on or by a reset signal RS1 from the higher device 1. When initialized, the microprocessor 5 starts execution from address 0 of the program memory 6 (
start).
【0013】一方、下位装置2の電源を投入すると、電
源投入によるパワーオンリセット信号RS2 のHレベ
ルが電源検出回路3により検出され、この検出されたパ
ワーオンリセット信号RS2 のHレベルがフリップフ
ロップ回路4により保持される。この保持されたHレベ
ルがマイクロプロセッサ5により読み込まれてパワーオ
ンリセット信号RS2 であるか否かが判定され、パワ
ーオンリセット信号RS2 である旨判定される。On the other hand, when the lower device 2 is powered on, the power detection circuit 3 detects the H level of the power on reset signal RS2 due to the power on, and the detected H level of the power on reset signal RS2 is detected by the flip-flop circuit. 4 is maintained. This held H level is read by the microprocessor 5, and it is determined whether or not it is the power-on reset signal RS2, and it is determined that it is the power-on reset signal RS2.
【0014】マイクロプロセッサ5はパワーオンリセッ
ト時にワークメモリ7の全メモリエリアを“0”値にセ
ット(メモリ0クリア)し、プログラムメモリ6のメモ
リチェック(電源投入後、1回行う処理)を行い、しか
る後、フリップフロップ回路4の出力はマイクロプロセ
ッサ5によりクリアされ、HレベルからLレベルに変更
される。その後、下位装置2の運用をスタートさせ、下
位装置2は上位装置1の出力に基づきマイクロプロセッ
サ5によりプログラムメモリ6内のプログラムに従い制
御されることになる。At power-on reset, the microprocessor 5 sets all memory areas of the work memory 7 to the "0" value (clears memory 0), and performs a memory check of the program memory 6 (processing performed once after power is turned on). After that, the output of the flip-flop circuit 4 is cleared by the microprocessor 5 and changed from H level to L level. Thereafter, the operation of the lower-level device 2 is started, and the lower-level device 2 is controlled by the microprocessor 5 according to the program in the program memory 6 based on the output of the higher-level device 1.
【0015】上位装置1よりのリセット信号RS1 が
下位装置2に入力すると、電源検出回路3は作動しない
ため、Lレベルのままになっている。マイクロプロセッ
サ5はこのLレベルを入力するので、パワーオンリセッ
ト処理を行わない。なお、マイクロプロセッサ5が上位
装置1からのリセット信号RS1 を受けたとき、ワー
クメモリ7のクリア及びプログラムメモリ6のメモリチ
ェックは行わない。When the reset signal RS1 from the higher-level device 1 is input to the lower-level device 2, the power supply detection circuit 3 remains at L level because it does not operate. Since the microprocessor 5 inputs this L level, it does not perform power-on reset processing. Note that when the microprocessor 5 receives the reset signal RS1 from the host device 1, the work memory 7 is not cleared and the program memory 6 is not checked.
【0016】[0016]
【発明の効果】上述のように本発明によれば、下位装置
2の電源投入によるパワーリセット信号RS2 のHレ
ベルを検出し、この検出されたパワーリセット信号RS
2 のHレベルを保持し、この保持されたHレベルを読
み込んでパワーオンリセット信号RS2 である旨判定
し、しかる後、Hレベルの保持をLレベルに変更するこ
とにより電源投入によるパワーリセット信号RS2 と
上位装置1からのリセット信号RS1 を識別でき、下
位装置2の電源投入時のみ行う処理を上位装置1からの
リセット信号毎に行うことを回避することができる。As described above, according to the present invention, the H level of the power reset signal RS2 is detected when the lower device 2 is powered on, and the detected power reset signal RS2 is
2 is held at the H level, the held H level is read and determined to be the power-on reset signal RS2, and then the held H level is changed to the L level to generate the power reset signal RS2 when the power is turned on. and the reset signal RS1 from the host device 1 can be identified, and it is possible to avoid performing a process that is performed only when the power of the host device 2 is turned on for each reset signal from the host device 1.
【図1】本発明方法及び装置の1実施例の構成を示すブ
ロック図である。FIG. 1 is a block diagram showing the configuration of one embodiment of the method and apparatus of the present invention.
【図2】同じくそのフローチャートである。FIG. 2 is a flowchart of the same.
【図3】従来のフローチャートである。FIG. 3 is a conventional flowchart.
1 上位装置
2 下位装置
3 電源検出回路
4 レジスタ(セット・リセットフリップフロッ
プ回路)
5 (マイクロ)プロセッサ
6 プログラムメモリ
7 ワークメモリ
RS1 リセット信号
RS2 パワーオンリセット信号1 Upper device 2 Lower device 3 Power supply detection circuit 4 Register (set/reset flip-flop circuit) 5 (Micro)processor 6 Program memory 7 Work memory RS1 Reset signal RS2 Power-on reset signal
Claims (2)
(2)に対してリセット信号(RS1 )を出力してこ
の下位装置(2)をリセットし、かつ電源投入によるパ
ワーオンリセット信号(RS2 )により該下位装置(
2)をリセットする2つのリセット信号(RS1 ,R
S2 )を識別する方法において、リセット信号が前記
下位装置(2)の電源投入によるパワーリセット信号(
RS2 )であるときにのみこのパワーリセット信号(
RS2 )のHレベルを電源検出回路(3)により検出
し、この検出されたパワーオンリセット信号(RS2
)のHレベルをレジスタ(4)により保持し、この保持
されたHレベルをプロセッサ(5)により読み込んでパ
ワーオンリセット信号(RS2 )である旨判定し、し
かる後前記レジスタ(4)の内容をLレベルとすること
を特徴とするリセット信号識別方法。Claim 1: A host device (1) outputs a reset signal (RS1) to a lower device (2) in the event of a problem to reset the lower device (2), and also outputs a power-on reset signal (RS2) when the power is turned on. ) by the lower device (
2) two reset signals (RS1, R
In the method for identifying a power reset signal (S2), the reset signal is a power reset signal (
This power reset signal (
The power supply detection circuit (3) detects the H level of the power-on reset signal (RS2) and outputs the detected power-on reset signal (RS2).
) is held by the register (4), this held H level is read by the processor (5) and determined to be the power-on reset signal (RS2), and then the contents of the register (4) are read. A reset signal identification method characterized by setting it to L level.
(2)に対してリセット信号(RS1 )を出力してこ
の下位装置(2)をリセットし、かつ電源投入によるパ
ワーオンリセット信号(RS2 )により該下位装置(
2)をリセットする2つのリセット信号(RS1 ,R
S2 )を識別する装置において、リセット信号が前記
下位装置(2)の電源投入によるパワーオンリセット信
号(RS2 )であるときにのみこのパワーオンリセッ
ト信号(RS2 )のHレベルを検出する電源検出回路
(3)と、この電源検出回路(3)より出力するパワー
オンリセット信号(RS2 )のHレベルを保持するレ
ジスタ(4)と、このレジスタ(4)に保持されたHレ
ベルを読み込んでパワーオンリセット信号(RS2 )
である旨判定し,しかる後前記レジスタ(4)の内容を
Lレベルとするプロセッサ(5)とよりなるリセット信
号識別装置。[Claim 2] The upper device (1) outputs a reset signal (RS1) to the lower device (2) in the event of a problem to reset the lower device (2), and also outputs a power-on reset signal (RS2) when the power is turned on. ) by the lower device (
2) two reset signals (RS1, R
A power supply detection circuit detects the H level of the power-on reset signal (RS2) only when the reset signal is a power-on reset signal (RS2) caused by power-on of the lower-order device (2) in the device for identifying the power-on reset signal (RS2). (3), a register (4) that holds the H level of the power-on reset signal (RS2) output from this power supply detection circuit (3), and a power-on by reading the H level held in this register (4). Reset signal (RS2)
A reset signal identification device comprising a processor (5) that determines that the register (4) is L level after that.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3149541A JPH04346112A (en) | 1991-05-23 | 1991-05-23 | Method and device for reset signal identification |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3149541A JPH04346112A (en) | 1991-05-23 | 1991-05-23 | Method and device for reset signal identification |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04346112A true JPH04346112A (en) | 1992-12-02 |
Family
ID=15477403
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3149541A Pending JPH04346112A (en) | 1991-05-23 | 1991-05-23 | Method and device for reset signal identification |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04346112A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018160240A (en) * | 2017-03-13 | 2018-10-11 | インフィネオン テクノロジーズ アーゲーInfineon Technologies Ag | Safe reset techniques for microcontroller systems in safety related applications |
US11787751B2 (en) | 2017-12-28 | 2023-10-17 | Kuraray Co., Ltd. | Water-absorbent resin and agricultural water-retaining material |
-
1991
- 1991-05-23 JP JP3149541A patent/JPH04346112A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018160240A (en) * | 2017-03-13 | 2018-10-11 | インフィネオン テクノロジーズ アーゲーInfineon Technologies Ag | Safe reset techniques for microcontroller systems in safety related applications |
US10372545B2 (en) | 2017-03-13 | 2019-08-06 | Infineon Technologies Ag | Safe reset techniques for microcontroller systems in safety related applications |
US11787751B2 (en) | 2017-12-28 | 2023-10-17 | Kuraray Co., Ltd. | Water-absorbent resin and agricultural water-retaining material |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5717851A (en) | Breakpoint detection circuit in a data processor and method therefor | |
JPH04346112A (en) | Method and device for reset signal identification | |
JPS5854418A (en) | Interruption processing system | |
JPH05143197A (en) | Arithmetic processor | |
JP2503838Y2 (en) | Microprocessor device | |
JPH03129536A (en) | Brake address detecting device | |
JPH06301633A (en) | Data transferring device | |
JPH0371234A (en) | Status change detector | |
JPS62256138A (en) | Data processor | |
JP2002312072A (en) | Information processing device and add-in board reset method | |
JPH0426913Y2 (en) | ||
JPH04267438A (en) | Double exception detector | |
JP2638014B2 (en) | Signal detection circuit | |
JPS5843053A (en) | Microprocessor | |
JPS6398010A (en) | Method for distinguishing power application and reset of microcomputer | |
JPH03192452A (en) | Interruption processing method for device input/output driver program | |
JPH01243122A (en) | Information processing unit | |
JPH01175033A (en) | Register controller | |
JPH03139724A (en) | Data processor | |
JPH04312111A (en) | Data processor | |
JPS62256139A (en) | Data processor | |
JPS6349942A (en) | Arithmetic processing unit | |
JPH0772874B2 (en) | Interrupt receiving device | |
JPS63195781A (en) | Digital input device | |
JPH03252831A (en) | Method for collecting ras information by dma transfer |