JP4543505B2 - Microcomputer control method and abnormality monitoring device - Google Patents

Microcomputer control method and abnormality monitoring device Download PDF

Info

Publication number
JP4543505B2
JP4543505B2 JP2000172166A JP2000172166A JP4543505B2 JP 4543505 B2 JP4543505 B2 JP 4543505B2 JP 2000172166 A JP2000172166 A JP 2000172166A JP 2000172166 A JP2000172166 A JP 2000172166A JP 4543505 B2 JP4543505 B2 JP 4543505B2
Authority
JP
Japan
Prior art keywords
register
zero
microcomputer
zero register
abnormality
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 - Lifetime
Application number
JP2000172166A
Other languages
Japanese (ja)
Other versions
JP2001350643A (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.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP2000172166A priority Critical patent/JP4543505B2/en
Publication of JP2001350643A publication Critical patent/JP2001350643A/en
Application granted granted Critical
Publication of JP4543505B2 publication Critical patent/JP4543505B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Retry When Errors Occur (AREA)
  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、ゼロ値データ読出専用のゼロレジスタを備えたマイクロコンピュータの制御方法及び異常監視装置に関する。
【0002】
【従来の技術】
従来より、RISC型のマイクロコンピュータでは、パイプライン処理を効率よく実行するため、1サイクルでの処理が可能な簡単な命令セットしか用意されておらず、しかも、各命令はすべて同じ命令長を有するようにされている。このため、例えば、命令の記述に用いるアドレッシングモードにおいて多大なビット数を要する即値データの使用が制限されていたり、ハードウェアを簡素化するために他の命令で代用可能な命令が省略されていたりする。
【0003】
具体的には、メモリへのアクセス命令では、実効アドレスを指定する時に、アドレッシングモードとして、実効アドレスそのものが格納されたレジスタを指定するレジスタ間接や、基準となるアドレスが格納されたレジスタとビット数の制限された即値データであるディスプレースメントとにより実効アドレスを指定するディスプレースメント付きレジスタ間接の使用は可能であるが、即値データのみでの実効アドレスの指定ができなかったり、また、メモリへの書込命令では、オペランドを指定する時に、オペランドが格納されたレジスタを指定するレジスタ直接の使用は可能であるが、即値データでのオペランドの指定はできないようにされている。更に、レジスタ間のデータ転送は、転送元レジスタの格納値を被加算値とし、転送先レジスタに加算結果を格納するよう指定して、加算命令にてゼロ加算を行う操作にて代用可能なため、このようなレジスタ間のデータ転送命令等も省略されている。
【0004】
このように、先頭番地(基準アドレス)が0であるメモリへのディスプレースメント付きレジスタ間接を用いたアクセス、メモリ内容のクリア、レジスタ間のデータ転送を行う場合等、RISC型のマイクロコンピュータでは、レジスタにゼロ値データを設定する処理が頻繁に表れるため、格納値をゼロに固定してゼロ値データ読出専用に使用されるいわゆるゼロレジスタを設け、レジスタにゼロ値データを設定する処理を省略することにより、処理を高速化することが行われている。
【0005】
なお、ゼロレジスタには、汎用レジスタの一つをゼロレジスタとして使用する場合と、ハードウェアにて格納値をゼロに固定した特別なレジスタを使用する場合とがある。そして、汎用レジスタを用いたゼロレジスタの場合、ゼロレジスタへのゼロ値データの設定は、装置立ち上げ後の初期化時に行われていた。
【0006】
【発明が解決しようとする課題】
しかし、ゼロレジスタにハードウェア上の不具合が生じた場合、また、特に汎用レジスタを用いたゼロレジスタでは、ソフトウェア上の不具合や外来ノイズなどによりゼロレジスタの値が書き変わってしまった場合など、何等かの理由でゼロレジスタからの読出値がゼロ以外の値に代わってしまうと、以後、メモリに対して誤った番地へのアクセスが行われたり、メモリのクリアやレジスタ間のデータ転送を行った際に、メモリやレジスタに設定されるデータに誤りが生じてしまい、その結果、マイクロコンピュータが不正な処理を行ってしまうという問題があった。
【0007】
本発明は、上記問題点を解決するために、ゼロレジスタの読出値の異常によりマイクロコンピュータにて不正な処理が行われることを確実に防止するマイクロコンピュータの制御方法及び異常監視装置を提供することを目的とする。
【0008】
【課題を解決するための手段】
上記目的を達成するための発明である請求項1記載の発明は、任意にデータの読み書きが可能な汎用レジスタを、ゼロ値データ読出専用のゼロレジスタとして使用し、該ゼロレジスタを用いた命令を実行するマイクロコンピュータの制御方法であって、予め決めれた実行タイミング毎にゼロレジスタからの読出値に異常があるか否かを繰り返し検査し、その検査の結果、読出値に異常があれば、マイクロコンピュータによるゼロレジスタを用いた通常処理の実行を禁止又はマイクロコンピュータを再起動することを特徴とする
【0009】
従って、本発明のマイクロコンピュータの制御方法によれば、ゼロレジスタからの読出値に異常がある場合、マイクロコンピュータにて通常処理が実行されないため、ゼロレジスタの読出値の異常に基づく不正な処理結果を発生させてしまうことがなく、その結果、このようなゼロレジスタを備えるマイクロコンピュータにて構成された装置の信頼性を向上させることができる。
【0010】
そして、請求項2記載のように、マイクロコンピュータが複数の通常処理を順番に実行する場合、各々の通常処理の開始前を実行タイミングとして、上述の検査を各処理毎に必ず行うことが望ましい
【0011】
また、本発明では、請求項3記載のように、上述の検査の前にゼロレジスタの再設定を行ったり、請求項4記載のように、検査の結果、読出値に異常がある場合、ゼロレジスタの再設定及び検査を繰り返す待機処理を実行することで通常処理の実行を禁止し、待機処理によって読出値の異常が解消されると、待機処理を終了することで通常処理の禁止を解除するようにしてもよい。
【0012】
つまり、汎用レジスタを用いたゼロレジスタでは、外来ノイズ等の影響によるゼロレジスタ設定値の書き変わりに対しては、このようなゼロレジスタの再設定により、マイクロプロセッサのリセットなどを行うことなく、正常な状態に簡単に復帰することができる。
【0013】
次に、請求項5記載の発明は、任意にデータの読み前書きが可能な汎用レジスタを、ゼロ値データ読出用のゼロレジスタとして使用し、該ゼロレジスタを用いた命令を実行するマイクロコンピュータの監視装置であって、ゼロレジスタ検査手段が、ゼロレジスタからの読出値が正常であるか否かを検査し、検査の結果、読出値に異常あれば、異常処理手段が、マイクロコンピュータによるゼロレジスタを用いた通常処理を禁止するか、又はマイクロコンピュータを再起動することを特徴とする
【0014】
これらゼロレジスタ検査手段や異常処理手段は、ハードウェアを増加させないために、マイクロコンピュータが実行する処理として実現することが望ましいが、ハードウェアにて実現した場合には、ソフトウェアにて実現する場合とは異なり、ゼロレジスタを常時検査することが可能であるため、ゼロレジスタの異常に対してより速やかに対応することができる。
【0015】
【発明の実施の形態】
以下に本発明の実施例を図面と共に説明する。
図1(a)は、本発明が適用されたマイクロコンピュータの概略構成を表すブロック図である。
【0016】
図1(a)に示すように、本実施形態のマイクロコンピュータ10は、RISCタイプのCPU11を中心に構成され、ROM12,RAM13,各種周辺回路14が内蔵された周知の1チップマイコンからなる。
なお、周辺回路14には、いわゆるウォッチドッグタイマーとして使用され、予め設定された監視期間内にリセット命令が入力されずタイムアウトするとアクティブとなるWDT信号を出力するタイマー(以下「WDタイマー」という)14aと、WDT信号のアクティブへの変化を検出すると、マイクロコンピュータ10をハードウェアリセットするためのRST信号を所定期間の間アクティブにするリセット信号生成回路14bとが少なくとも含まれている。
【0017】
そして、CPU11は、図1(b)に示すように、32ビット幅の16本の汎用レジスタR0〜R15を備えており、このうち、レジスタR13〜R15は、使用するコンパイラにより予め用途が決められている。即ち、ここでは、レジスタR13が、ゼロ値データ読出専用に用いられるゼロレジスタとして使用される他、レジスタR14はリンクポインタ、レジスタR15はスタックポインタとして使用される。
【0018】
なお、ゼロレジスタは、当該マイクロコンピュータ10への電源投入後に実行される初期化処理の中でゼロ値データ(00000000H)が書き込まれ、以後、RAM13の内容をクリアする場合の書込データや、ディスプレイスメント付きレジスタ間接のアドレッシングモードを用いてRAM13(先頭が0H番地)をアクセスする際の基準アドレス等として使用される。
【0019】
ここで、CPU11は、ROM12に格納されたプログラムを実行することにより、様々な機能を実現するが、プログラムは、実現する機能毎に複数のモジュールに分かれており、各モジュールは、順番に、或いは予め設定された起動条件が揃うと起動されるものとする。
【0020】
そして、各モジュールは、その先頭にて、後述するゼロレジスタ検査処理を必ず実行するように構成されていると共に、ゼロレジスタ検査処理後に実行する当該モジュールのメイン処理は、プログラムが正常に実行されていればWDタイマー14aがタイムアウトしないように、WDタイマー14aに対するリセット命令が適宜挿入されたものとなっている。
【0021】
次に、各モジュールの先頭にて実行されるゼロレジスタ検査処理の内容を、図2に示すフローチャートに沿って説明する。
図2に示すように、本処理が起動されると、まずS110では、ゼロレジスタの再設定、即ち、ゼロレジスタへのゼロ値データの書込を行い、続くS120では、ゼロレジスタから、その設定値DZの読出を行う。
【0022】
そして、S130では、ゼロレジスタからの読出値DZが、先に書き込んだゼロ値データと一致するか否かを検査し、一致していれば、ゼロレジスタの読出値DZは正常であるものとして、本処理を終了する。
一方、S130にて、ゼロレジスタからの読出値DZがゼロ値データと一致していなければ、S110に戻り、ゼロレジスタの再設定、ゼロレジスタの設定値の読出、読出値DZの検査を繰り返し実行する。このS110〜S130を繰り返す処理が本発明における待機処理に相当する。そして、待機処理中に繰り返し行われるゼロレジスタの再設定によりゼロレジスタの読出値DZが正常なものに復帰すれば、本処理を終了する。
【0023】
つまり、本処理を実行することにより、本処理が組み込まれたモジュールでは、当該モジュールのメイン処理は、必ずゼロレジスタが正しく設定された状態で開始されることになる。
また、ゼロレジスタがゼロ値データと一致しない場合には、S110〜S130のループを抜け出すことができないため、当該モジュールのメイン処理が実行されないだけでなく、メイン処理に挿入された、WDタイマー14aに対するリセット命令が実行されないため、この状態が監視期間以上継続すると、WDT信号がアクティブとなり、その結果、マイクロコンピュータ10はハードリセットされることになる。
【0024】
なお、本実施形態において、ゼロレジスタ検査処理が本発明におけるゼロレジスタ検査手段に相当し、ゼロレジスタ検査処理,及びWDタイマー14a,リセット信号生成回路14bが異常処理手段に相当する。
以上説明したように、本実施形態のマイクロコンピュータ10においては、ゼロレジスタの読出値に異常がある(ゼロ値データと一致しない)場合には、メイン処理を実行しないようにされているので、メイン処理にてゼロレジスタの読出値の異常に基づく不正な処理結果を発生させてしまうことがなく、当該マイクロコンピュータ10を用いて構成された装置の信頼性を向上させることができる。
【0025】
また、ゼロレジスタの再設定を行っても、読出値が正常なものに復帰しない場合には、ハードウェアリセットが行われるようにされているため、外来ノイズ等によるゼロレジスタの設定値のビット化けや、ハードウェアの故障以外の何等かの原因で異常が生じている場合に、これを解消できる可能性がある。
【0026】
なお、上記実施形態では、ゼロ値データの読出値がゼロ値データと一致しない場合(S130−NO)、S110に戻ってゼロレジスタの再設定、及び再設定後の読出値の検査を繰り返し行っているが、図3(a)に示すように、S110に戻る代わりに、S140に移行して異常処理手段としての異常処理を実行するように構成してもよい。
【0027】
なお、この異常処理では、ソフトウェアリッセットを行ってもよいし、異常である旨を表示してCPUの動作を停止させるようにしてもよい。但し、CPUの動作を停止させた場合、結局は、WDタイマー14aがタイムアウトすることによりハードウェアリセットが行われることになる。
【0028】
また、上記実施形態では、ゼロレジスタとして、汎用レジスタの一つを使用しているが、図3(b)に示すように、ハードウェアにより格納値がゼロに固定された専用のゼロレジスタを、汎用レジスタとは別途設けてもよい。
但し、この場合、ゼロレジスタの再設定を行うことができないため、ゼロレジスタ検査処理は、図2及び図3(a)に示すフローチャートから、S110を省略したものとすればよい。
【図面の簡単な説明】
【図1】 実施形態のマイクロコンピュータの概略構成を表すブロック図、及びゼロレジスタについての説明図である。
【図2】 ゼロレジスタ検査処理の内容を表すフローチャートである。
【図3】 変形例についての説明を補足するための説明図である。
【符号の説明】
10…マイクロコンピュータ 11…CPU 12…ROM
13…RAM 14…周辺回路 14a…WDタイマー
14b…リセット信号生成回路 R0〜R15…汎用レジスタ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a microcomputer control method and an abnormality monitoring apparatus provided with a zero register dedicated to reading zero value data.
[0002]
[Prior art]
Conventionally, in order to efficiently execute pipeline processing, a RISC type microcomputer has only a simple instruction set that can be processed in one cycle, and each instruction has the same instruction length. Has been. For this reason, for example, the use of immediate data that requires a large number of bits in the addressing mode used to describe the instruction is limited, or instructions that can be substituted with other instructions are omitted to simplify the hardware. To do.
[0003]
Specifically, in memory access instructions, when specifying an effective address, as an addressing mode, register indirect that specifies the register that stores the effective address itself, or the register and the number of bits that store the reference address Although it is possible to use the indirect register with a displacement that specifies the effective address by using the displacement that is the immediate data limited in this way, it is not possible to specify the effective address using only the immediate data, or to write to the memory. In the embedded instruction, when the operand is specified, the register directly specifying the register in which the operand is stored can be used directly, but the operand cannot be specified by the immediate data. Furthermore, data transfer between registers can be substituted by an operation that specifies the stored value of the transfer source register as the added value and stores the addition result in the transfer destination register and performs zero addition with the add instruction. Such a data transfer instruction between registers is also omitted.
[0004]
In this way, in a RISC type microcomputer, for example, when using a register indirect with displacement to a memory whose head address (reference address) is 0, clearing memory contents, or transferring data between registers, etc. Because the process of setting zero value data frequently appears in the system, a so-called zero register that is used exclusively for reading zero value data by fixing the stored value to zero is provided, and the process of setting zero value data in the register is omitted. Thus, the processing is speeded up.
[0005]
The zero register includes a case where one of the general-purpose registers is used as a zero register and a case where a special register whose stored value is fixed to zero by hardware is used. In the case of a zero register using a general-purpose register, the setting of zero value data in the zero register is performed at the time of initialization after starting up the apparatus.
[0006]
[Problems to be solved by the invention]
However, if a hardware failure occurs in the zero register, or if the zero register value is rewritten due to a software failure or external noise, especially with a general purpose register. If the value read from the zero register is changed to a value other than zero for some reason, the memory is subsequently accessed at an incorrect address, or the memory is cleared or data is transferred between registers. At this time, an error occurs in data set in the memory or the register, and as a result, there is a problem that the microcomputer performs an illegal process.
[0007]
In order to solve the above-described problems, the present invention provides a microcomputer control method and an abnormality monitoring apparatus that reliably prevent an unauthorized process from being performed in a microcomputer due to an abnormality in a read value of a zero register. With the goal.
[0008]
[Means for Solving the Problems]
The invention according to claim 1, which is an invention for achieving the above object, uses a general-purpose register capable of arbitrarily reading and writing data as a zero register dedicated to reading zero value data, and an instruction using the zero register. A microcomputer control method to be executed, which repeatedly checks whether or not there is an abnormality in the read value from the zero register at every predetermined execution timing. characterized by restarting the prohibition or microcomputer to execute the normal processing using the zero register by the computer.
[0009]
Therefore, according to the microcomputer control method of the present invention, if there is an abnormality in the read value from the zero register, the microcomputer does not perform normal processing, so an incorrect processing result based on the abnormality in the read value of the zero register. As a result, it is possible to improve the reliability of a device constituted by a microcomputer having such a zero register.
[0010]
As described in claim 2, when the microcomputer executes a plurality of normal processes in order, it is desirable that the above-described inspection is always performed for each process with the execution timing as the start timing of each normal process .
[0011]
Further, according to the present invention, as described in claim 3 , the zero register is reset before the above-described inspection, or when the readout value is abnormal as a result of the inspection as described in claim 4 , Executing a standby process that repeats register resetting and checking prohibits the execution of normal processing. When the abnormal read value is resolved by the standby process, the normal processing is canceled by terminating the standby process. You may do it.
[0012]
In other words, with the zero register using a general-purpose register, rewriting of the zero register setting value due to the influence of external noise, etc. is normal without resetting the microprocessor by resetting the zero register. You can easily return to the correct state.
[0013]
The invention according to claim 5 is directed to a microcomputer that uses a general-purpose register that can arbitrarily read and write data as a zero register for reading zero-value data and executes an instruction using the zero register. In the apparatus , the zero register checking means checks whether or not the read value from the zero register is normal, and if the read value is abnormal as a result of the check, the abnormality processing means sets the zero register by the microcomputer. Usually prohibit or treatment with, or characterized by restarting the microcomputer.
[0014]
These zero register inspection means and abnormality processing means are preferably realized as processing executed by the microcomputer in order not to increase hardware, but when realized by hardware, when realized by software In contrast, since the zero register can be inspected at all times, it is possible to respond more quickly to an abnormality of the zero register.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1A is a block diagram showing a schematic configuration of a microcomputer to which the present invention is applied.
[0016]
As shown in FIG. 1A, the microcomputer 10 of this embodiment is composed of a RISC type CPU 11 and is composed of a well-known one-chip microcomputer in which a ROM 12, a RAM 13, and various peripheral circuits 14 are built.
The peripheral circuit 14 is used as a so-called watchdog timer, and a timer (hereinafter referred to as “WD timer”) 14a that outputs a WDT signal that becomes active when a reset command is not input and times out within a preset monitoring period. And a reset signal generation circuit 14b that activates an RST signal for hardware resetting the microcomputer 10 for a predetermined period when a change in the WDT signal to active is detected.
[0017]
As shown in FIG. 1B, the CPU 11 includes 16 general-purpose registers R0 to R15 each having a 32-bit width. Among these, the registers R13 to R15 have predetermined uses determined by a compiler to be used. ing. That is, here, the register R13 is used as a zero register used exclusively for reading zero value data, the register R14 is used as a link pointer, and the register R15 is used as a stack pointer.
[0018]
In the zero register, zero value data (00000000H) is written in the initialization process executed after the microcomputer 10 is turned on. Thereafter, the write data for clearing the contents of the RAM 13 and the display are displayed. It is used as a reference address or the like when accessing the RAM 13 (the head is address 0H) using the register indirect addressing mode with a displacement.
[0019]
Here, the CPU 11 implements various functions by executing a program stored in the ROM 12, but the program is divided into a plurality of modules for each function to be implemented, and each module is sequentially or It is assumed that the system is activated when preset activation conditions are met.
[0020]
Each module is configured to always execute a zero register inspection process, which will be described later, at the head of the module, and the main process of the module to be executed after the zero register inspection process is executed normally. Then, a reset command for the WD timer 14a is appropriately inserted so that the WD timer 14a does not time out.
[0021]
Next, the contents of the zero register inspection process executed at the head of each module will be described with reference to the flowchart shown in FIG.
As shown in FIG. 2, when this processing is started, first, in S110, the zero register is reset, that is, zero value data is written to the zero register, and in the subsequent S120, the setting is made from the zero register. The value DZ is read.
[0022]
In S130, it is checked whether or not the read value DZ from the zero register matches the previously written zero value data. If they match, the zero register read value DZ is assumed to be normal. This process ends.
On the other hand, if the read value DZ from the zero register does not match the zero value data in S130, the process returns to S110, and the reset of the zero register, reading of the set value of the zero register, and inspection of the read value DZ are repeatedly executed. To do. The process of repeating S110 to S130 corresponds to the standby process in the present invention. If the read value DZ of the zero register is restored to the normal value by resetting the zero register repeatedly performed during the standby process, the present process is terminated.
[0023]
In other words, by executing this process, in the module in which this process is incorporated, the main process of the module is always started with the zero register set correctly.
If the zero register does not match the zero value data, the loop of S110 to S130 cannot be exited, so that not only the main process of the module is not executed but also the WD timer 14a inserted in the main process. Since the reset command is not executed, if this state continues for the monitoring period or longer, the WDT signal becomes active, and as a result, the microcomputer 10 is hard reset.
[0024]
In this embodiment, the zero register inspection process corresponds to the zero register inspection means in the present invention, and the zero register inspection process, the WD timer 14a, and the reset signal generation circuit 14b correspond to the abnormality processing means.
As described above, in the microcomputer 10 of the present embodiment, when the read value of the zero register is abnormal (does not match the zero value data), the main process is not executed. The processing does not generate an illegal processing result based on the abnormality of the read value of the zero register, and the reliability of the device configured using the microcomputer 10 can be improved.
[0025]
If the read value does not return to the normal value even after resetting the zero register, a hardware reset is performed, so that the zero register set value is corrupted due to external noise. There is a possibility that this can be resolved when an abnormality occurs due to any cause other than a hardware failure.
[0026]
In the above embodiment, when the read value of the zero value data does not coincide with the zero value data (S130-NO), the process returns to S110 to repeatedly reset the zero register and check the read value after the reset. However, as shown in FIG. 3A, instead of returning to S110, the process may be shifted to S140 to execute an abnormality process as an abnormality processing means.
[0027]
In this abnormality process, software reset may be performed, or an abnormality message may be displayed to stop the operation of the CPU. However, when the operation of the CPU is stopped, the hardware reset is eventually performed when the WD timer 14a times out.
[0028]
In the above embodiment, one of the general-purpose registers is used as the zero register. However, as shown in FIG. 3B, a dedicated zero register whose stored value is fixed to zero by hardware, A general-purpose register may be provided separately.
However, in this case, since the zero register cannot be reset, the zero register checking process may be performed by omitting S110 from the flowcharts shown in FIGS. 2 and 3A.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a schematic configuration of a microcomputer according to an embodiment and an explanatory diagram of a zero register.
FIG. 2 is a flowchart showing the contents of a zero register inspection process.
FIG. 3 is an explanatory diagram for supplementing the description of a modified example.
[Explanation of symbols]
10 ... Microcomputer 11 ... CPU 12 ... ROM
DESCRIPTION OF SYMBOLS 13 ... RAM 14 ... Peripheral circuit 14a ... WD timer 14b ... Reset signal generation circuit R0-R15 ... General purpose register

Claims (5)

任意にデータの読み書きが可能な汎用レジスタを、ゼロ値データ読出専用のゼロレジスタとして使用し、該ゼロレジスタを用いた命令を実行するマイクロコンピュータの制御方法であって、
予め決めれた実行タイミング毎に、前記ゼロレジスタからの読出値に異常があるか否かを繰り返し検査し、該検査の結果、前記読出値に異常があれば、前記マイクロコンピュータによる前記ゼロレジスタを用いた通常処理の実行を禁止又は該マイクロコンピュータを再起動することを特徴とするマイクロコンピュータの制御方法。
A microcomputer control method that uses a general-purpose register capable of arbitrarily reading and writing data as a zero register dedicated to reading zero-value data , and executes an instruction using the zero register,
At each predetermined execution timing, whether or not there is an abnormality in the read value from the zero register is repeatedly checked. If the read value is abnormal as a result of the inspection, the microcomputer uses the zero register. A method of controlling a microcomputer, characterized by prohibiting execution of normal processing or restarting the microcomputer.
前記マイクロコンピュータが複数の前記通常処理を順番に実行する場合、各々の前記通常処理の開始前を前記実行タイミングとすることを特徴とする請求項1記載のマイクロコンピュータの制御方法。2. The microcomputer control method according to claim 1, wherein when the microcomputer executes a plurality of normal processes in order, the execution timing is set before the start of each of the normal processes. 前記検査の前に、前記ゼロレジスタの再設定を行うことを特徴とする請求項1又は請求項2記載のマイクロコンピュータの制御方法。 3. The microcomputer control method according to claim 1 , wherein the zero register is reset before the inspection. 前記検査の結果、前記読出値に異常がある場合、前記ゼロレジスタの再設定及び検査を繰り返す待機処理を実行することにより前記通常処理の実行を禁止し、前記待機処理によって前記読出値の異常が解消されると、前記待機処理を終了することにより前記通常処理の禁止を解除することを特徴とする請求項1乃至請求項3いずれか記載のマイクロコンピュータの制御方法。If there is an abnormality in the read value as a result of the inspection, execution of the normal process is prohibited by executing a standby process that repeats resetting and inspection of the zero register, and an abnormality in the read value is caused by the standby process. 4. The microcomputer control method according to claim 1 , wherein when the cancellation is canceled, the prohibition of the normal process is canceled by ending the standby process. 任意にデータの読み前書きが可能な汎用レジスタを、ゼロ値データ読出用のゼロレジスタとして使用し、該ゼロレジスタを用いた命令を実行するマイクロコンピュータの監視装置であって、
前記ゼロレジスタからの読出値が正常であるか否かを検査するゼロレジスタ検査手段と、
該ゼロレジスタ検査手段による検査の結果、前記読出値に異常があれば、前記マイクロコンピュータによるゼロレジスタを用いた通常処理を禁止又は該マイクロコンピュータを再起動する異常処理手段と、
を備えることを特徴とするマイクロコンピュータの異常監視装置。
A microcomputer monitoring apparatus that uses a general-purpose register that can arbitrarily read and write data as a zero register for reading zero value data , and executes an instruction using the zero register,
Zero register checking means for checking whether or not a read value from the zero register is normal;
As a result of the inspection by the zero register inspection means, if there is an abnormality in the read value, an abnormality processing means for prohibiting normal processing using the zero register by the microcomputer or restarting the microcomputer;
A microcomputer abnormality monitoring device comprising:
JP2000172166A 2000-06-08 2000-06-08 Microcomputer control method and abnormality monitoring device Expired - Lifetime JP4543505B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000172166A JP4543505B2 (en) 2000-06-08 2000-06-08 Microcomputer control method and abnormality monitoring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000172166A JP4543505B2 (en) 2000-06-08 2000-06-08 Microcomputer control method and abnormality monitoring device

Publications (2)

Publication Number Publication Date
JP2001350643A JP2001350643A (en) 2001-12-21
JP4543505B2 true JP4543505B2 (en) 2010-09-15

Family

ID=18674609

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000172166A Expired - Lifetime JP4543505B2 (en) 2000-06-08 2000-06-08 Microcomputer control method and abnormality monitoring device

Country Status (1)

Country Link
JP (1) JP4543505B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4581484B2 (en) * 2004-05-28 2010-11-17 富士ゼロックス株式会社 Control device and control program
CN107168822B (en) * 2017-05-08 2020-01-07 山大地纬软件股份有限公司 Oracle streams exception recovery system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2695775B2 (en) * 1986-12-16 1998-01-14 沖電気工業株式会社 How to recover from computer system malfunction
JPH0561724A (en) * 1991-09-05 1993-03-12 Toshiba Corp Initializing information resetting system
JPH0588878A (en) * 1991-09-27 1993-04-09 Nec Corp Lisp instruction executing system
JPH09128233A (en) * 1995-11-06 1997-05-16 Toshiba Microelectron Corp Central processing unit

Also Published As

Publication number Publication date
JP2001350643A (en) 2001-12-21

Similar Documents

Publication Publication Date Title
JP2007249323A (en) Microcomputer
JP2008016035A (en) Memory testing
JP2005071303A (en) Program starting device
JP7091486B2 (en) Electronic control device, security verification method for electronic control device
JP4893427B2 (en) Microcomputer system
JP4543505B2 (en) Microcomputer control method and abnormality monitoring device
JP3723243B2 (en) Processor device and control method thereof
US5898867A (en) Hierarchical memory system for microcode and means for correcting errors in the microcode
JP7379932B2 (en) Control device, user program execution control method, and system program
US8176301B2 (en) Millicode assist instructions for millicode store access exception checking
WO2011122677A1 (en) Device and method for restoring information in a main storage device
JP4856023B2 (en) Real-time watch apparatus and method
JP2007172096A (en) Information processor and start control method
JP3219082B2 (en) Data storage method
JP2004252525A (en) Emulator and program
JP2009230479A (en) Microprocessor
JP2004038541A (en) Memory check system, memory check method, signal processor, memory check method of signal processor, and memory check program
JP2009169515A (en) Computer system and system recovery device
JP2011150383A (en) Firmware writing method
JP3171615B2 (en) Data transfer retry control method
JP3124788B2 (en) Exception handling method of embedded multitasking operating system
JP6358019B2 (en) Arithmetic apparatus, arithmetic method, and arithmetic program
JP3715505B2 (en) Computer having operation instructions for specific applications and calculation method of the computer
JPS6234262A (en) Access system for nonvolatile memory
JPH0877031A (en) Microprocessor system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060913

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100223

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100415

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100608

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100621

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130709

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4543505

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130709

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term