JP2003050712A - Microcomputer system - Google Patents

Microcomputer system

Info

Publication number
JP2003050712A
JP2003050712A JP2001237219A JP2001237219A JP2003050712A JP 2003050712 A JP2003050712 A JP 2003050712A JP 2001237219 A JP2001237219 A JP 2001237219A JP 2001237219 A JP2001237219 A JP 2001237219A JP 2003050712 A JP2003050712 A JP 2003050712A
Authority
JP
Japan
Prior art keywords
microcomputer
built
processing program
recovery processing
cpu
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.)
Withdrawn
Application number
JP2001237219A
Other languages
Japanese (ja)
Inventor
Yuji Ishikawa
祐司 石川
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2001237219A priority Critical patent/JP2003050712A/en
Publication of JP2003050712A publication Critical patent/JP2003050712A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)

Abstract

PROBLEM TO BE SOLVED: To surely execute a fault restoration processing, even when a fault occurs in an external bus in a microcomputer system. SOLUTION: A CPU 11, a built-in ROM 12 in which a fault restoration processing program is stored and a built-in RAM are positioned and connected internally via an internal bus 18 in a microcomputer device 1 connected with groups 5 to 8 of external equipment, an external ROM 3 and an external RAM 4 via an external bus 19, when an abnormality is detected by an abnormality detection processing part 2 and an interrupt request signal 21 is outputted, a storage area required for execution of the fault restoration processing program is set in the built-in RAM 13 and a fault restoration processing program in the built-in ROM 12 is executed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロコンピュ
ータを用いたシステムに関し、システム異常を検知した
場合の処理に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system using a microcomputer, and more particularly to processing when a system abnormality is detected.

【0002】[0002]

【従来の技術】従来、システム異常処理に対応する障害
復帰プログラムは、特別な配慮無しに、当該システムに
存在するメモリ空間のいずれかに格納されていた。ま
た、当該障害復帰プログラムの実行過程で参照、書き換
えする制御パラメータやプログラムのスタックの格納先
となるRAMの配置に関しても同様であった。
2. Description of the Related Art Conventionally, a failure recovery program corresponding to system abnormality processing has been stored in any of the memory spaces existing in the system without any special consideration. Further, the same applies to the arrangement of the control parameters to be referred to and rewritten in the execution process of the fault recovery program and the RAM as the storage destination of the program stack.

【0003】あるいは、異常検知信号により、マイクロ
コンピュータをリセットして、システムを電源投入時と
同じように再起動する方法が取られていた。
Alternatively, a method has been adopted in which the microcomputer is reset by an abnormality detection signal and the system is restarted in the same manner as when the power was turned on.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述し
た障害復帰プログラムや、そのプラグラムが用いるパラ
メータデータを外部バス経由でマイクロコンピュータに
読み込む構成であると、システム障害の原因が、外部バ
スのアドレスバスやデータバス、あるいは読み出し、書
き込みタイミングなどのバス制御信号ラインにある場
合、この障害復帰プログラム自体を正常に実行できなく
なるという問題があった。
However, with the above-described fault recovery program and the configuration in which the parameter data used by the program is read into the microcomputer via the external bus, the cause of the system fault is the address bus of the external bus or When it is on the data bus or the bus control signal line for reading and writing timing, there is a problem that the fault recovery program itself cannot be executed normally.

【0005】さらに、一過性の外乱等によるシステム異
常ならば、単にCPUのリセットにより正常復帰できる
が、電子回路の破損などの致命的な障害によるシステム
異常の場合は、前記障害復帰プログラム自体が完結する
前に短時間に繰り返して異常検知による割り込みが発生
し、その都度システムの初期化動作をしてしまうという
問題があった。
Further, if the system is abnormal due to a transient disturbance or the like, it can be normally restored by simply resetting the CPU. However, if the system is abnormal due to a fatal failure such as damage to an electronic circuit, the failure recovery program itself is used. There is a problem that an interrupt occurs due to abnormality detection repeatedly in a short time before completion, and the system is initialized each time.

【0006】特に、マスター−スレーブ構成で複数のC
PUによりメカニカル機構を制御するシステムにおいて
は、この初期化動作で、メカニカル機構の初期化駆動が
行われる為、ユーザに、装置が不自然な動きをしている
ような不安感をいだかせてしまうという問題があった。
In particular, a plurality of Cs in a master-slave configuration.
In the system that controls the mechanical mechanism by the PU, the initialization operation drives the mechanical mechanism, which causes the user to feel uneasy as if the device is moving unnaturally. There was a problem.

【0007】本発明は上述した課題を解決するためにな
されたものであり、異常を検知した場合に、確実に障害
復帰処理プログラムを実行できるマイクロコンピュータ
・システムを提供することを目的とする。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a microcomputer system capable of reliably executing a failure recovery processing program when an abnormality is detected.

【0008】[0008]

【課題を解決するための手段】上述した目的を達成する
ための一手段として、本発明によれば、マイクロコンピ
ュータ・システムに、手段とを備える。
According to the present invention, as one means for achieving the above-mentioned object, the microcomputer system is provided with means.

【0009】また、本発明の他の態様によれば、マイク
ロコンピュータ・システムの制御方法に、工程とを備え
る。
According to another aspect of the present invention, a method for controlling a microcomputer system includes steps.

【0010】更に、本発明の他の態様によれば、記憶媒
体に、工程とをコンピュータに実行させるための処理プ
ログラムを記憶する。
According to another aspect of the present invention, a storage medium stores a processing program for causing a computer to execute the steps.

【0011】[0011]

【発明の実施の形態】以下、図面を用いて本発明の1実
施形態を詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described in detail below with reference to the drawings.

【0012】図1は、本発明の1実施形態としてファク
シミリ装置に応用した場合のブロック図である。
FIG. 1 is a block diagram when applied to a facsimile apparatus as an embodiment of the present invention.

【0013】ファクシミリ装置は、自動受信動作では操
作者が介在せず、終夜稼動もしなければならい性質の装
置なので、信頼性は非常に重要であり、本発明が特に有
効となる装置である。
Since the facsimile machine is a machine of a nature that the operator does not intervene in the automatic receiving operation and must operate all night, reliability is very important and the invention is particularly effective.

【0014】1は、以下の11〜17を1つの半導体チ
ップ上に備えたマイクロコンピュータ・デバイスであ
る。
Reference numeral 1 denotes a microcomputer device provided with the following 11 to 17 on one semiconductor chip.

【0015】11は、論理演算処理を行い、本実施形態
のファクシミリ装置を制御するCPUである。12は内
蔵ROMであり、CPU11が実行するプログラムコー
ドや、参照するデータなどを格納する読み出し専用メモ
リである。また、13は、CPU11が読み書き可能な
内蔵RAMである。
Reference numeral 11 denotes a CPU which performs logical operation processing and controls the facsimile apparatus of this embodiment. Reference numeral 12 denotes a built-in ROM, which is a read-only memory that stores program codes executed by the CPU 11, data to be referred to, and the like. Reference numeral 13 is a built-in RAM that can be read and written by the CPU 11.

【0016】14は、本マイクロコンピュータ・デバイ
ス1の入出力端子を汎用ポートとして用いる場合、その
ポート機能を制御するポート制御部であり、CPU11
により操作される。
When the input / output terminal of the microcomputer device 1 is used as a general-purpose port, a port controller 14 controls the port function of the microcomputer device 1.
Operated by.

【0017】15は、本マイクロコンピュータ・デバイ
ス1の内部バスを、デバイス外部に拡張する制御を行う
外部バス制御部であり、CPU11により操作される。
Reference numeral 15 denotes an external bus control unit which controls the expansion of the internal bus of the microcomputer device 1 to the outside of the device, and is operated by the CPU 11.

【0018】16は、本マイクロコンピュータ・デバイ
ス1に内蔵される、汎用タイマー、カウンター、割り込
み制御、などの汎用的な機能を備えた内蔵周辺機能部で
ある。
Reference numeral 16 denotes a built-in peripheral function unit built in the microcomputer device 1 having general-purpose functions such as a general-purpose timer, a counter, and interrupt control.

【0019】17は、本マイクロコンピュータ・デバイ
ス1の端子をプログラマブルに、前記ポート制御部1
4、前記外部バス制御部15、前記内蔵周辺機能部16
に接続する信号のどれに対応付けるかを選択、制御する
端子機能制御部である。
A port 17 of the microcomputer device 1 is programmable and the port controller 1 is programmable.
4, the external bus control unit 15, the built-in peripheral function unit 16
It is a terminal function control unit that selects and controls which of the signals to be connected to.

【0020】次に、2は異常検知部であり、本システム
の動作状態を常に監視し、異常と判断した時、マイクロ
コンピュータ1に対し、割り込み要求信号21によりノ
ンマスカブル割り込み要求を生成する。このような異常
検知部2により検知される異常としては、一般に、ウォ
ッチドッグタイマーのタイムアウト、デバイスがマッピ
ングされていない空間に対するアクセス動作の実行、R
OM空間に対する書き込みアクセス動作の実行、といっ
た事象があげられる。
Next, reference numeral 2 is an abnormality detecting section, which constantly monitors the operating state of the present system and, when it judges that there is an abnormality, generates a non-maskable interrupt request to the microcomputer 1 by the interrupt request signal 21. As the abnormality detected by the abnormality detecting unit 2, generally, a watchdog timer times out, an access operation to a space where a device is not mapped, an R
Events such as execution of write access operations to the OM space can be cited.

【0021】また、以下の3〜8は、外部バス19を経
由して前記CPU11がアクセスするものである。
The following 3 to 8 are to be accessed by the CPU 11 via the external bus 19.

【0022】3は、外部ROMであり、プログラムやデ
ータが固定的に書き込まれている。4は、外部RAMで
あり、制御パラメータや画像データなどを記憶する。
Reference numeral 3 denotes an external ROM in which programs and data are fixedly written. An external RAM 4 stores control parameters, image data, and the like.

【0023】5は、読み取り部であり、光源を有し、原
稿を搬送して、画像を電気的な信号に変換して取り込
む。6は、受信した画像データを用紙に記録する記録部
である。7は通信部であり、通信回線に接続し、ファク
シミリ信号により画像データの送受信を行う。8は、本
装置に対する動作指示の入力、動作状態の表示を行う操
作部である。
A reading unit 5 has a light source, conveys a document, converts an image into an electrical signal, and takes in the image. A recording unit 6 records the received image data on a sheet. A communication unit 7 is connected to a communication line and transmits / receives image data by a facsimile signal. Reference numeral 8 denotes an operation unit for inputting operation instructions to the apparatus and displaying operation states.

【0024】18は内部バスであり、マイクロコンピュ
ータ1内部で上述した11〜16に接続する。19は、
内部バス18をマイクロコンピュータ1の外部に拡張し
た外部バスである。20は、汎用入出力ポートとして機
能する端子群である。
An internal bus 18 is connected to the above-mentioned 11 to 16 inside the microcomputer 1. 19 is
The internal bus 18 is an external bus that extends outside the microcomputer 1. A terminal group 20 functions as a general-purpose input / output port.

【0025】21は割り込み要求信号であり、異常検知
部2が異常を検知したとき、CPU11に対して割り込
み処理を要求する。一般に、このような用途にはノンマ
スカブル・インタラプト(NMI)が用いられる。
Reference numeral 21 denotes an interrupt request signal, which requests the CPU 11 to perform an interrupt process when the abnormality detector 2 detects an abnormality. Generally, non-maskable interrupts (NMI) are used for such applications.

【0026】22は、前記汎用入出力ポートの一つを、
システムの初期化出力信号として定義したリセット信号
である。23は、内蔵周辺機能部16に論理的に接続さ
れる制御信号群である。
Reference numeral 22 denotes one of the general-purpose input / output ports,
It is a reset signal defined as an initialization output signal of the system. A control signal group 23 is logically connected to the built-in peripheral function section 16.

【0027】以下、基本的な動作を説明する。The basic operation will be described below.

【0028】まず、本システムへの電源供給が開始され
た時点で、マイクロコンピュータ1は、所定のデフォル
ト状態で動作を開始する。このデフォルト状態とは、内
部バス18のみが利用可能であり、マイクロコンピュー
タ1の端子機能は汎用ポートとして振る舞う。プログラ
ムは、内蔵ROM12からフェッチを開始する。この命
令に従い、内蔵する各部を前記デフォルト状態から所望
の状態へと設定を変更する。この結果、外部バス19を
利用可能な状態になる。
First, when power supply to the system is started, the microcomputer 1 starts operating in a predetermined default state. In this default state, only the internal bus 18 can be used, and the terminal function of the microcomputer 1 behaves as a general-purpose port. The program starts fetching from the internal ROM 12. According to this command, the setting of each built-in unit is changed from the default state to a desired state. As a result, the external bus 19 can be used.

【0029】その後、外部バス19に接続される各種処
理部の初期化を実行する。読み取り部5、記録部6、通
信部7、操作部8には、それぞれスレーブCPUが組み
込まれ、それらの動作が正常に起動できたかの確認も行
う。
After that, various processing units connected to the external bus 19 are initialized. A slave CPU is incorporated in each of the reading unit 5, the recording unit 6, the communication unit 7, and the operation unit 8, and it is also confirmed whether or not those operations can be normally started.

【0030】この初期化において、読み取り部5では光
源を一旦点灯して光量の調整や原稿搬送系の初期位置化
が実行され、記録部6では用紙搬送系や記録作像プロセ
スなどの動作確認が実行される、などのメカニカル機構
部の初期化駆動を実施する。
In this initialization, the light source is once turned on in the reading section 5 to adjust the light amount and the original position of the original conveying system is executed, and the recording section 6 confirms the operation of the sheet conveying system and the recording image forming process. Initialization drive of the mechanical mechanism part such as executed is executed.

【0031】その後はスタンバイ状態となり、操作部8
からの動作指示あるいは回線からの着信により、外部R
OM3あるいは内蔵ROM12に格納されているプログ
ラムを実行する。
After that, the standby state is entered, and the operation unit 8
An external R is issued by an operation instruction from the line or an incoming call from the line.
The programs stored in the OM3 or the built-in ROM 12 are executed.

【0032】そして、システム稼動中に異常検知部2が
異常を検知すると、割込み要求信号21によりCPU1
1に割込み処理を要求する。CPU11は、この割込み
要求を認識すると、予め内蔵ROM12に格納した所定
の障害復帰処理プログラムの実行を開始し、システムを
正常動作に復帰させるための処理を行う。この際、スタ
ックメモリを外部RAM4から内蔵RAM13に切り替
える処理も併せて行う。
When the abnormality detector 2 detects an abnormality while the system is operating, the CPU 1 receives an interrupt request signal 21.
Requests interrupt processing to 1. When the CPU 11 recognizes this interrupt request, it starts the execution of a predetermined failure recovery processing program stored in the built-in ROM 12 in advance, and performs processing for returning the system to normal operation. At this time, a process of switching the stack memory from the external RAM 4 to the internal RAM 13 is also performed.

【0033】図2は、CPU11の処理内容を示すフロ
ーチャートであり、電源投入からスタンバイ状態になる
までと、障害復帰処理を開始しスタンバイ状態になるま
でとの制御手順を示す。電源が投入されるとステップS
1から処理を開始する。一方、障害復帰処理の割り込み
処理はステップS8から開始する。いずれも外部バス1
9を有効とするステップS4に至るまでの制御プログラ
ムは、内蔵ROM12からフェッチする。
FIG. 2 is a flow chart showing the processing contents of the CPU 11, showing the control procedure from the power-on to the standby state and from the failure recovery processing to the standby state. When the power is turned on, step S
The process starts from 1. On the other hand, the interrupt processing of the failure recovery processing starts from step S8. External bus 1
The control program up to step S4 for validating 9 is fetched from the built-in ROM 12.

【0034】<電源投入による起動>マイクロコンピュ
ータ1は、デフォルトである外部バス19が無効な状態
で起動する。
<Activation by turning on the power> The microcomputer 1 is activated when the default external bus 19 is invalid.

【0035】ステップS1では、リセット信号22の出
力ポートの論理レベルをリセット状態に設定する。以
後、このリセット信号22をアクティブレベルにするス
テップS5まで、マイクロコンピュータ1以外のデバイ
スは、リセット状態を保持する。また、スタックなどソ
フトウェア動作に必要なメモリ領域を、内蔵RAM13
中に設定する。
In step S1, the logic level of the output port of the reset signal 22 is set to the reset state. After that, the devices other than the microcomputer 1 hold the reset state until step S5 at which the reset signal 22 is set to the active level. In addition, a memory area required for software operation such as a stack is provided in the internal RAM 13
Set inside.

【0036】ステップS2で、内蔵RAM13の内部に
変数COUNTを定義し、その値を0に初期化する。
In step S2, the variable COUNT is defined in the internal RAM 13 and its value is initialized to 0.

【0037】ステップS3では、マイクロコンピュータ
1内部をデフォルト状態から所望の状態へ設定を変更す
る。
In step S3, the setting inside the microcomputer 1 is changed from the default state to the desired state.

【0038】ステップS4では、外部バス19が有効と
なるように、外部バス制御部15を設定する。それと共
に、スタックポインタなどプログラムの実行上必要とな
る変数の設定を、外部RAM4に対応するアドレス値に
変更する。
In step S4, the external bus control unit 15 is set so that the external bus 19 becomes valid. At the same time, the setting of variables such as the stack pointer necessary for executing the program is changed to the address value corresponding to the external RAM 4.

【0039】ステップS5では、リセット信号22の出
力ポートの論理レベルをアクティブ状態に設定する。こ
れにより、マイクロコンピュータ1以外のデバイスのリ
セット状態が解除され、スレーブCPUを内蔵する読み
取り部5、記録部6、通信部7、操作部8は独自に初期
化処理を開始する。
In step S5, the logic level of the output port of the reset signal 22 is set to the active state. As a result, the reset state of the devices other than the microcomputer 1 is released, and the reading unit 5, the recording unit 6, the communication unit 7, and the operation unit 8 which incorporate the slave CPU independently start the initialization processing.

【0040】この結果、読み取り部5であれば、原稿搬
送系や副走査方向に移動する読み取り光源系、記録部6
であれば、用紙搬送系や記録作造プロセス、などのメカ
ニカル機構部の初期化駆動が行われ、これがユーザには
機械稼動音として聞こえる。また、操作部8に備わる表
示部に初期化中である由が表示される。
As a result, in the case of the reading unit 5, the document conveying system, the reading light source system that moves in the sub-scanning direction, and the recording unit 6 are provided.
In this case, the mechanical drive units such as the paper transport system and the recording process are initialized and driven, and this is heard by the user as a machine operating sound. Further, the reason why the initialization is being performed is displayed on the display unit provided in the operation unit 8.

【0041】ステップS6では、マイクロコンピュータ
1がシステム各部に対し、初期化制御を行う。
At step S6, the microcomputer 1 controls initialization of each part of the system.

【0042】ステップS7では、プログラムがこのステ
ップに到達したことで、システムが正常に起動できたと
判断し、変数COUNTの内容を0に初期化し、スタンバイ
状態に移行する。
In step S7, when the program reaches this step, it is determined that the system can be started normally, the contents of the variable COUNT are initialized to 0, and the system shifts to the standby state.

【0043】<異常検知の割り込み処理>ステップS8
で、リセット信号22の出力ポートの論理レベルをリセ
ット状態に設定する。以後、マイクロコンピュータ1以
外のデバイスは、この信号をアクティブレベルにするS
5まで、リセット状態を保持する。また、スタックなど
ソフトウェア動作に必要なメモリ領域を、内蔵RAM1
3中に設定する。
<Abnormality Detection Interrupt Processing> Step S8
Then, the logic level of the output port of the reset signal 22 is set to the reset state. Thereafter, devices other than the microcomputer 1 set this signal to the active level S
The reset state is held until 5. In addition, a memory area required for software operation such as a stack is stored in the internal RAM 1
Set to 3.

【0044】ステップS9で、内蔵RAM13内部に定
義する変数COUNTの値が、所定値nより大きいかを判断
する。大きければステップS11に進み、以後、中止処
理を行う。一方、等しいか小さければステップS10に
進み、システム再起動処理を行う。
In step S9, it is determined whether the value of the variable COUNT defined inside the internal RAM 13 is larger than the predetermined value n. If it is larger, the process proceeds to step S11, and thereafter, the cancellation process is performed. On the other hand, if equal or smaller, the process proceeds to step S10 and system restart processing is performed.

【0045】ステップS10では、変数COUNTの値を1
加算する。この変数はスタンバイ状態に移行する際に0
に初期化するので、計数値は、再起動処理開始後、初期
化処理が完結する前に再度異常検知による割り込みが発
生した回数を表すことになる。その後、電源起動時と同
じくステップS3に進む。
In step S10, the value of the variable COUNT is set to 1
to add. This variable is 0 when shifting to the standby state.
Since the initialization is performed, the count value represents the number of times that the interrupt due to the abnormality detection occurs again after the restart process is started and before the initialization process is completed. After that, the process proceeds to step S3, which is the same as when power is turned on.

【0046】ステップS11では、変数COUNTの値が所
定値nより大きいことから、再起動処理が完結する前に
n回続けて異常検知がなされたとみなし、本システムの
再起動をあきらめる。そして、安全な停止状態を維持す
る為、外部バス制御部15により、外部バス19を無
効、すなわち電気的駆動を中止し、プルアップ抵抗ある
いはプルダウン抵抗による電位を確定するためのバイア
ス供給のみとする。
In step S11, since the value of the variable COUNT is larger than the predetermined value n, it is considered that the abnormality detection has been performed n times consecutively before the restart processing is completed, and the restart of the system is abandoned. Then, in order to maintain a safe stop state, the external bus control unit 15 disables the external bus 19, that is, stops the electric driving, and only supplies the bias for fixing the potential by the pull-up resistor or the pull-down resistor. .

【0047】ステップS12は、以後、電源が切れるま
で、永久ループとする。ただ、このままでは、マイクロ
コンピュータ1が止まっているのか、意図的に再起動を
止めているのか、外部から判別できないので、視覚的に
認識できるように汎用出力ポートを用いて、周期的に変
化する信号を出力する。この信号を元に、操作パネル上
か制御基板上に設けたLEDを点滅させる。
After that, step S12 is a permanent loop until the power is turned off. However, if it is left as it is, it cannot be discriminated from the outside whether the microcomputer 1 is stopped or the restart is intentionally stopped. Therefore, it is periodically changed by using the general-purpose output port so that it can be visually recognized. Output a signal. Based on this signal, the LED provided on the operation panel or the control board is made to blink.

【0048】以上により、外部システムバスに障害があ
る場合は、ステップS4〜S7で外部バスを使用した時
点でプログラム処理が破綻することとなる。これは、す
なわち、変数COUNTが0に初期化されず、次第に加算さ
れていくことになる。
As described above, if there is a failure in the external system bus, the program processing will fail when the external bus is used in steps S4 to S7. This means that the variable COUNT is not initialized to 0 and is gradually added.

【0049】一旦スタンバイ状態にまで到達できれば、
少なくとも、ユーザが何らかの操作指示を入力するか、
自動受信動作を開始するまでは、本ファクシミリ装置は
安定した状態を維持できることになり、ひたすら初期化
動作を繰り返す異常な動作は回避できる。
Once the standby state can be reached,
At least if the user inputs some operation instructions,
Until the automatic reception operation is started, the facsimile apparatus can maintain a stable state, and it is possible to avoid an abnormal operation that simply repeats the initialization operation.

【0050】[0050]

【発明の効果】以上説明したように、本発明によれば、
マイクロコンピュータ・システムの異常動作が検知され
ると、マイクロコンピュータ内において、CPUが、障
害復帰処理プログラムの実行に必要な記憶領域を内蔵R
AMに設定して、内蔵ROMに記憶された障害復帰処理
プログラムを実行するようにしたので、外部バスに障害
が発生した場合であっても、障害復帰処理プログラムを
正常に実行することが可能となり、当該システムの安全
性を向上させることができるという効果がある。
As described above, according to the present invention,
When an abnormal operation of the microcomputer system is detected, the CPU has a built-in storage area necessary for executing the failure recovery processing program in the microcomputer.
Since the failure recovery processing program stored in the built-in ROM is set to AM, the failure recovery processing program can be executed normally even if an external bus fails. The effect is that the safety of the system can be improved.

【0051】また、正常起動時に初期化され、障害復帰
処理中に所定値が書き込まれる起動要因情報領域の内容
に応じて、当該障害復帰処理プログラムによるシステム
の再起動を中止するようにすることで、不必要にシステ
ムの初期化動作を繰り返してしまうことを防止できると
いう効果が得られる。
Further, by restarting the system by the fault recovery processing program, the system is restarted according to the contents of the activation factor information area which is initialized at the normal startup and the predetermined value is written during the fault recovery processing. Therefore, it is possible to prevent the system initialization operation from being repeated unnecessarily.

【0052】また、システムの再起動を中止する際に、
外部バスを無効化することで、外部バスの障害による被
害の拡大を防止できるという効果が得られる。
When stopping the system restart,
By disabling the external bus, it is possible to prevent the damage from spreading due to the failure of the external bus.

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

【図1】本発明に係る一実施形態のファクシミリ装置の
ブロック構成を示す図である。
FIG. 1 is a diagram showing a block configuration of a facsimile apparatus according to an embodiment of the present invention.

【図2】電源投入時と障害復帰時のフローチャートであ
る。
FIG. 2 is a flowchart at power-on and when a fault is recovered.

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

1 マイクロコンピュータ・デバイス 2 異常検知部 3 外部ROM 4 外部RAM 5 読み取り部 6 記録部 7 通信部 8 操作部 11 CPU 12 内蔵ROM 13 内蔵RAM 14 ポート制御部 15 外部バス制御部 16 内蔵周辺機能部 17 端子機能制御部 18 内部バス 19 外部バス 20 汎用入出力ポート端子群 21 割り込み要求信号 22 リセット信号 23 内蔵周辺機能部の制御信号群 1 Microcomputer device 2 Abnormality detector 3 External ROM 4 External RAM 5 Reader 6 recording section 7 Communication section 8 operation part 11 CPU 12 Built-in ROM 13 Built-in RAM 14-port control unit 15 External bus controller 16 Built-in peripheral function block 17-terminal function controller 18 internal bus 19 external bus 20 General-purpose I / O port terminal group 21 Interrupt request signal 22 Reset signal 23 Control signals for built-in peripheral functions

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 プログラムを実行するCPUと、障害復
帰処理プログラムを含むプログラムを記憶した内蔵RO
Mと、内蔵RAMとが内部バスを介して内部接続された
マイクロコンピュータと、 前記マイクロコンピュータと外部バスを介して接続さ
れ、前記CPUによりアクセス可能な少なくとも1つの
外部機器と、 システムの異常動作を検知すると、前記マイクロコンピ
ュータに割込み要求信号を出力する異常検知手段とを備
え、 前記CPUが、前記割り込み要求信号に応じて、前記障
害復帰処理プログラムの実行に必要な記憶領域を前記内
蔵RAMに設定して、当該障害復帰処理プログラムを実
行することを特徴とするマイクロコンピュータ・システ
ム。
1. A CPU that executes a program, and a built-in RO that stores a program including a failure recovery processing program.
A microcomputer in which M and a built-in RAM are internally connected via an internal bus, at least one external device connected to the microcomputer via an external bus and accessible by the CPU, and abnormal operation of the system. When detecting, an abnormality detection unit that outputs an interrupt request signal to the microcomputer is provided, and the CPU sets a storage area necessary for executing the failure recovery processing program in the built-in RAM according to the interrupt request signal. Then, the microcomputer system characterized by executing the failure recovery processing program.
【請求項2】 前記CPUにより、正常起動時に初期化
され、前記障害復帰処理中に所定値が書き込まれる起動
要因情報領域を前記内蔵RAM内に備え、前記CPU
は、前記障害復帰処理プログラムの実行中に、当該起動
要因情報領域の内容に応じて、当該障害復帰処理プログ
ラムによるシステムの再起動を中止することを特徴とす
る請求項1に記載のマイクロコンピュータ・システム。
2. The internal RAM is provided with a startup factor information area which is initialized by the CPU at the time of normal startup and in which a predetermined value is written during the failure recovery processing.
2. The microcomputer according to claim 1, wherein during the execution of the failure recovery processing program, the restart of the system by the failure recovery processing program is stopped according to the contents of the activation factor information area. system.
【請求項3】 前記システムの再起動を中止する際に、
前記外部バスを無効化する外部バス制御手段を有するこ
とを特徴とする請求項2に記載のマイクロコンピュータ
・システム。
3. When the restart of the system is stopped,
The microcomputer system according to claim 2, further comprising external bus control means for disabling the external bus.
【請求項4】 前記システムの再起動を中止した際に、
当該再起動の中止をユーザに報知する報知手段を有する
ことを特徴とする請求項2に記載のマイクロコンピュー
タ・システム。
4. When the restart of the system is stopped,
3. The microcomputer system according to claim 2, further comprising an informing unit for informing a user of the suspension of the restart.
【請求項5】 前記CPUが、前記障害復帰処理プログ
ラムの実行において、前記外部機器をリセット状態に設
定して、前記マイクロコンピュータ内部を初期化し、当
該マイクロコンピュータ内部の初期化後に、前記外部機
器をアクティブ状態に設定して、当該外部機器の初期化
を実行することを特徴とする請求項1に記載のマイクロ
コンピュータ・システム。
5. The CPU sets the external device to a reset state to initialize the inside of the microcomputer in the execution of the fault recovery processing program, and after the inside of the microcomputer is initialized, 2. The microcomputer system according to claim 1, wherein the external device is set to an active state to initialize the external device.
JP2001237219A 2001-08-06 2001-08-06 Microcomputer system Withdrawn JP2003050712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001237219A JP2003050712A (en) 2001-08-06 2001-08-06 Microcomputer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001237219A JP2003050712A (en) 2001-08-06 2001-08-06 Microcomputer system

Publications (1)

Publication Number Publication Date
JP2003050712A true JP2003050712A (en) 2003-02-21

Family

ID=19068337

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001237219A Withdrawn JP2003050712A (en) 2001-08-06 2001-08-06 Microcomputer system

Country Status (1)

Country Link
JP (1) JP2003050712A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009157808A (en) * 2007-12-27 2009-07-16 Nec Electronics Corp Data processing device and bus access control method therein
JP6073004B1 (en) * 2016-05-10 2017-02-01 三菱電機株式会社 Information processing device
US10108499B2 (en) 2015-03-24 2018-10-23 Mitsubishi Electric Corporation Information processing device with watchdog timer

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009157808A (en) * 2007-12-27 2009-07-16 Nec Electronics Corp Data processing device and bus access control method therein
US8209565B2 (en) 2007-12-27 2012-06-26 Renesas Electronics Corporation Data processing device and bus access control method therein
US10108499B2 (en) 2015-03-24 2018-10-23 Mitsubishi Electric Corporation Information processing device with watchdog timer
JP6073004B1 (en) * 2016-05-10 2017-02-01 三菱電機株式会社 Information processing device
WO2017195276A1 (en) * 2016-05-10 2017-11-16 三菱電機株式会社 Information processing device and reboot control method

Similar Documents

Publication Publication Date Title
US7624260B2 (en) System executing a fast boot wake-up
US5712967A (en) Method and system for graceful recovery from a fault in peripheral devices using a variety of bus structures
JP4409681B2 (en) Information processing apparatus and memory control method for information processing apparatus
JP2003150279A (en) Management system and backup management method in computer system
JP2003050712A (en) Microcomputer system
JPH10105422A (en) Control circuit of protecting device
JP4535316B2 (en) Terminal fail-safe system, terminal fail-safe method, and terminal fail-safe program
JP2003150449A (en) Cellular phone device
JP2000148544A (en) Dump output system
JPH0713787A (en) Information processor
JP4788516B2 (en) Dynamic replacement system, dynamic replacement method and program
JP3058306B2 (en) Printed board for data input / output
JPH0721091A (en) Service interruption processing method for electronic computer
JPH0659941A (en) Information processor
JPH0395634A (en) Restart control system for computer system
JPH09305440A (en) Error processing method
JPH1011325A (en) Programmable controller
JPH09179748A (en) Data processor
JP2001242901A (en) Device for detecting malfunction of programmable controller
JPS60140440A (en) Central processing unit
JPS62196735A (en) Resumption processing system
JP2000020498A (en) Microcomputer and its restoring method
JPH11282726A (en) Information processing system, watch dog timer operation method and recording medium for recording control program for the same
JPH06103098A (en) Information processor
JPH08314700A (en) Control system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20081007