JP2002024057A - System reset method for distributed processing electronic equipment and device therefor - Google Patents

System reset method for distributed processing electronic equipment and device therefor

Info

Publication number
JP2002024057A
JP2002024057A JP2000207943A JP2000207943A JP2002024057A JP 2002024057 A JP2002024057 A JP 2002024057A JP 2000207943 A JP2000207943 A JP 2000207943A JP 2000207943 A JP2000207943 A JP 2000207943A JP 2002024057 A JP2002024057 A JP 2002024057A
Authority
JP
Japan
Prior art keywords
microcomputer
signal
system reset
predetermined
unit
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.)
Granted
Application number
JP2000207943A
Other languages
Japanese (ja)
Other versions
JP4623531B2 (en
Inventor
Kazuto Yamamoto
一人 山本
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2000207943A priority Critical patent/JP4623531B2/en
Publication of JP2002024057A publication Critical patent/JP2002024057A/en
Application granted granted Critical
Publication of JP4623531B2 publication Critical patent/JP4623531B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)
  • Cameras In General (AREA)
  • Debugging And Monitoring (AREA)
  • Multi Processors (AREA)

Abstract

PROBLEM TO BE SOLVED: To execute system reset by automatically detecting runaway of one microcomputer by the other microcomputer when one microcomputer causes the runaway. SOLUTION: A monitoring process 5a of notification signal and a generation process 5d of the system reset to function as a system reset signal generating means input physical information to maintain a prescribed behavior or prescribed timewise change tendency or a prescribed value among signals or commands or pieces of data to be outputted from the target microcomputer during a normal operation of the microcomputer and generate a signal to reset the system including the microcomputer when the physical information stops maintaining the prescribed behavior or the prescribed timewise change or the prescribed value.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、分散処理型電子機
器のシステムリセット方法及びその装置に関し、例え
ば、複数のマイコンを搭載した分散処理型の電子スチル
カメラに適用して好適なシステムリセット方法及びその
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system reset method and apparatus for distributed processing electronic equipment, and more particularly to a system reset method suitable for a distributed processing electronic still camera equipped with a plurality of microcomputers. Regarding the device.

【0002】[0002]

【従来の技術】電子スチルカメラはCCD(Charge Cou
pled Device)で撮影した画像データをフラッシュメモ
リ等の記憶デバイスに電子的に記録したり、その場で液
晶ディスプレイに表示して確認したりできる点で、既存
の銀塩カメラにない優れた利便性を持っており、広く普
及している携帯型電子機器の一つである。
2. Description of the Related Art An electronic still camera is a CCD (Charge Cou).
(pled Device) can be recorded electronically on a storage device such as a flash memory, or displayed on a liquid crystal display for on-the-spot confirmation. It is one of the widely used portable electronic devices.

【0003】一般に携帯型電子機器に対しては、小型・
軽量であることに加え、さらにバッテリの寿命が長いこ
とが求められるが、大容量バッテリの搭載は小型・軽量
の要求に反するため、できるだけ内部の電力消費量を抑
えるようなシステム設計が行われる。
[0003] In general, portable electronic devices are small and compact.
In addition to being lightweight, the life of the battery is required to be long. However, mounting a large-capacity battery contradicts the demand for small size and light weight. Therefore, a system is designed to minimize internal power consumption as much as possible.

【0004】省電力に有効な電子スチルカメラの設計手
法として、以下のものが知られている。すなわち、電子
スチルカメラの動作に必要な様々な処理機能のうち、待
機状態のみに必要な機能を第1のマイコンに受け持たせ
るとともに、残りの他の機能を第2のマイコンに受け持
たせるというものである。これは、分散処理型の一形態
ということができる。待機中は第1のマイコンだけを動
作させることにより、少なくとも第2のマイコンの消費
電力を抑えることができる。また、第1のマイコンに低
電力型のものを用いることにより、省電力性のより一層
の向上を図ることができる。
[0004] The following are known techniques for designing an electronic still camera effective for power saving. That is, of the various processing functions required for the operation of the electronic still camera, the function required only for the standby state is assigned to the first microcomputer, and the other functions are assigned to the second microcomputer. Things. This can be said to be one form of a distributed processing type. By operating only the first microcomputer during standby, at least the power consumption of the second microcomputer can be suppressed. Further, by using a low-power type microcomputer as the first microcomputer, it is possible to further improve power saving.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記複
数のマイコンを備えた分散処理型の電子スチルカメラに
あっては、マイコン暴走時のシステムリセット対策が不
十分であり、解決すべき課題があった。
However, in a distributed processing type electronic still camera having a plurality of microcomputers as described above, the system reset measures at the time of microcomputer runaway are insufficient, and there is a problem to be solved. .

【0006】ここで、マイコンの暴走とは、定められた
プログラムの手順から外れて異常な動作を行うことをい
う。異常の原因は様々であるが、例えば、静電気や強い
電界あるいは太陽風などの荷電粒子の影響などによっ
て、マイコンのレジスタや主記憶のデータが変化したり
することが考えられる。一般に異常な動作のうち予期で
きるものについてはプログラム中に所定のエラートラッ
プルーチンを組み込んでおくことにより、ソフトウェア
リセットを発生してシステムをリセットすることができ
る。
Here, the runaway of the microcomputer means that an abnormal operation is performed out of a predetermined program procedure. Although there are various causes of the abnormality, for example, it is conceivable that data in a register or a main memory of the microcomputer changes due to an influence of charged particles such as static electricity, a strong electric field, or a solar wind. In general, for an abnormal operation that can be expected, a predetermined error trap routine is incorporated in a program, so that a software reset can be performed to reset the system.

【0007】しかし、全てのエラーをトラップすること
は物理的に不可能であるため、マイコンの暴走を完全に
防止することはできないうえ、複数のマイコンを備えた
場合はそのマイコンの数に比例して暴走の発生確率も当
然高くなるから、システムの安定性を維持するためにも
暴走時のシステムリセット対策は不可欠であるが、従来
のものは、一のマイコンが暴走した場合、他のマイコン
でその暴走を自動的に検知してシステムをリセットする
ことができず、そのため、人為的なリセット操作を行う
しか術がなく、手間がかかって面倒であるという問題点
があった。
However, since it is physically impossible to trap all errors, it is not possible to completely prevent runaway of a microcomputer, and when a plurality of microcomputers are provided, it is proportional to the number of microcomputers. As a result, the probability of runaway will naturally increase, so measures to reset the system during runaway are indispensable to maintain system stability.However, in the conventional case, if one microcomputer goes The system cannot be reset by automatically detecting the runaway, so that there is no other way but to perform an artificial reset operation, which is troublesome and troublesome.

【0008】したがって、本発明が解決しようとする課
題は、一のマイコンが暴走した場合、他のマイコンでそ
の暴走を自動的に検知してシステムリセットを掛け得る
ようにすることができる、分散処理型電子機器のシステ
ムリセット方法及びその装置を提供することにある。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a distributed processing system in which when one microcomputer goes out of control, the other microcomputer can automatically detect the runaway and reset the system. It is an object of the present invention to provide a method and an apparatus for resetting a system of an electronic device.

【0009】[0009]

【課題を解決するための手段】本発明は、ターゲットと
なるマイコンから出力される信号またはコマンド若しく
はデータの何れかを前記マイコンの正常動作中には所定
の振る舞いまたは所定の時間的変化傾向ないしは所定の
値を維持した物理情報として出力するものとし、当該物
理情報が前記所定の振る舞いまたは所定の時間的変化傾
向ないしは所定の値を維持しなくなったときに前記マイ
コンおよび他のマイコンを含むシステムのリセットを行
うための信号を発生する。または、さらに、前記マイコ
ンで実行中の処理負荷の軽重を判定し、重い処理負荷を
判定したときに、前記システムのリセットを行うための
信号の発生を禁止する。
According to the present invention, a signal, a command or data output from a target microcomputer is provided with a predetermined behavior or a predetermined temporal change tendency or a predetermined time change during normal operation of the microcomputer. Of the microcomputer and other microcomputers when the physical information does not maintain the predetermined behavior, the predetermined temporal change tendency, or the predetermined value. Generate a signal to perform Alternatively, the microcomputer may determine whether the processing load being executed is light or heavy, and prohibit generation of a signal for resetting the system when the heavy processing load is determined.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の形態を、電
子スチルカメラを例にして、図面を参照しながら説明す
る。まず、電子スチルカメラの処理機能をいくつかの系
統に分けて説明する。図1は、電子スチルカメラ1の処
理機能図である。撮像系1aは被写体の像を撮像して画
像信号に変換するもので、絞り機構、CCD、タイミン
グ発生器などを含む。画像処理系1bは撮像系1aから
の画像信号をカラー画像信号に変換したり所定の画像形
式に変換処理したりするもので、γ補正やホワイトバラ
ンス補正などの補正回路およびカラープロセス処理回路
ならびに画像形式変換回路などを含む。記録系1cは形
式変換された画像データを読み出し可能に記録保持する
もので、フラッシュメモリなどの記憶デバイスおよびそ
の周辺回路などを含む。表示系1dは撮影時の構図確認
や撮影済み画像およびスルー画像の表示を行うもので、
ファインダー用の表示デバイス、画像確認用の数インチ
程度の表示デバイスおよびその周辺回路などを含む。キ
ー操作系1eは撮影や画像確認およびシステム設定など
の各種キー操作を行うもので、シャッターキーや各種機
能キーなどのスイッチ類およびその周辺回路などを含
む。その他系1fはその他の処理系を便宜的にまとめた
もので、例えば、電源や外部インターフェースなどを含
む。なお、以上の系統分類はあくまでも一例であって、
これに限定されないことはもちろんである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to the drawings, taking an electronic still camera as an example. First, the processing function of the electronic still camera will be described by dividing it into several systems. FIG. 1 is a processing function diagram of the electronic still camera 1. The imaging system 1a captures an image of a subject and converts it into an image signal, and includes an aperture mechanism, a CCD, a timing generator, and the like. The image processing system 1b converts an image signal from the imaging system 1a into a color image signal or converts the image signal into a predetermined image format. Including a format conversion circuit. The recording system 1c records and holds the format-converted image data in a readable manner, and includes a storage device such as a flash memory and its peripheral circuits. The display system 1d is for confirming the composition at the time of photographing and displaying the photographed image and the through image.
It includes a display device for a finder, a display device of about several inches for image confirmation, and its peripheral circuits. The key operation system 1e performs various key operations such as shooting, image confirmation, and system setting, and includes switches such as a shutter key and various function keys and peripheral circuits thereof. The other system 1f is a group of other processing systems for convenience, and includes, for example, a power supply and an external interface. Note that the above system classification is merely an example,
Of course, it is not limited to this.

【0011】図2は、上記の各系統の処理を2個のマイ
コンで分担する場合の概念図である。第1のマイコン2
は、例えば、撮像系1a、画像処理系1b、記録系1c
および表示系1d(但しファインダー部)の処理を担当
し、第2のマイコン3は、残りの処理、すなわち、この
例では、表示系1d(但しファインダー部を除く)、キ
ー操作系1eおよびその他系1fの処理を担当する。
FIG. 2 is a conceptual diagram in the case where the processing of each system described above is shared by two microcomputers. First microcomputer 2
Are, for example, an imaging system 1a, an image processing system 1b, and a recording system 1c.
In addition, the second microcomputer 3 is in charge of the processing of the display system 1d (however, the finder section), and in this example, the display system 1d (however, except for the finder section), the key operation system 1e, and other systems. In charge of 1f processing.

【0012】通常の使用時には、第1のマイコン2と第
2のマイコン3を共に活性化状態にして上記全ての系統
を動作可能にする一方、待機時には、第2のマイコン3
のみを活性化状態にして省電力化を図る。第2のマイコ
ン3の担当処理は、要するに、待機状態を維持するため
に必要な最低限の処理であればよい。したがって、第2
のマイコン3には電力消費の少ないものを使用できるか
ら、待機時の省電力性能を向上することができ、バッテ
リ寿命を延ばすことができる。
In normal use, the first microcomputer 2 and the second microcomputer 3 are both activated to make all the above-mentioned systems operable.
Only the active state is activated to save power. In short, the processing in charge of the second microcomputer 3 may be the minimum processing necessary for maintaining the standby state. Therefore, the second
Since the microcomputer 3 of low power consumption can be used, the power saving performance during standby can be improved, and the battery life can be extended.

【0013】ここで、本発明の課題は、「一のマイコン
が暴走した場合、他のマイコンでその暴走を自動的に検
知してシステムリセットを掛けることができる」ように
する点にある。
Here, an object of the present invention is to make it possible that, when one microcomputer goes out of control, the other microcomputer can automatically detect the runaway and perform a system reset.

【0014】図3は、その課題を達成するための実施形
態のシステム概念図である。図において、一点差線で囲
まれた二つの図形は、それぞれ一のマイコン(発明の要
旨に記載の「ターゲットとなるマイコン」に相当)4
と、他のマイコン5を模式的に表している。一のマイコ
ン4および他のマイコン5は、図2の第1のマイコン2
および第2のマイコン3に対応する。例えば、第1のマ
イコン2の暴走を第2のマイコン3で検出する場合、一
のマイコン4は第1のマイコン2となり、他のマイコン
5は第2のマイコン3となる。あるいは、その逆であれ
ば、一のマイコン4は第2のマイコン3となり、他のマ
イコン5は第1のマイコン2となる。
FIG. 3 is a conceptual diagram of a system according to an embodiment for achieving the object. In the figure, two figures surrounded by a dashed line represent one microcomputer (corresponding to the “target microcomputer” described in the summary of the invention).
And other microcomputers 5 are schematically shown. One microcomputer 4 and another microcomputer 5 are the first microcomputer 2 in FIG.
And the second microcomputer 3. For example, when the second microcomputer 3 detects a runaway of the first microcomputer 2, one microcomputer 4 becomes the first microcomputer 2 and the other microcomputer 5 becomes the second microcomputer 3. Or, in the opposite case, one microcomputer 4 becomes the second microcomputer 3 and the other microcomputer 5 becomes the first microcomputer 2.

【0015】一のマイコン4で重要な点は、当該マイコ
ン4の動作状態を通知するための通知信号を外部出力す
ることにある。通知信号は、当該マイコン4の正常動作
中に、例えば、所定の論理状態(便宜的にHレベルとす
る。)を周期的に繰り返す信号(所定の時間的変化傾向
を有する信号)とすることができ、その通知信号の生成
は、予めプログラムされた通知信号生成プロセスを当該
マイコン4で周期的(例えば1秒周期)で実行させるこ
とにより行ってもよい。一のマイコン4が暴走した場
合、上記プロセスの実行がストップして、通知信号の周
期的な論理変化が外部観測されなくなるからである。
An important point of one microcomputer 4 is that a notification signal for notifying an operation state of the microcomputer 4 is externally output. The notification signal may be, for example, a signal (a signal having a predetermined temporal change tendency) that periodically repeats a predetermined logical state (for convenience, set to H level) during the normal operation of the microcomputer 4. The notification signal may be generated by causing the microcomputer 4 to execute a notification signal generation process programmed in advance periodically (for example, at one-second intervals). This is because, if one microcomputer 4 goes out of control, the execution of the above process is stopped and the periodic logical change of the notification signal is not externally observed.

【0016】但し、上記の通知信号は、所定の時間的変
化傾向を有する信号のみに限定されない。要は、一のマ
イコン4の正常動作中に、所定の振る舞いまたは所定の
時間的変化傾向ないしは所定の値を維持する信号であれ
ばよく、これらの信号はいずれも発明の要旨に記載の物
理情報に相当する信号(またはコマンド若しくはデー
タ)である。図において、4aは通知信号プロセス(発
明の要旨に記載の物理情報出力手段に相当)を表し、4
bは当該プロセスの周期的実行を表し、4cは当該プロ
セスによって生成された通知信号を表している。
However, the notification signal is not limited to only a signal having a predetermined temporal change tendency. In short, any signal that maintains a predetermined behavior, a predetermined time-dependent change tendency, or a predetermined value during normal operation of one microcomputer 4 may be used, and any of these signals may be the physical information described in the gist of the invention. (Or a command or data). In the figure, reference numeral 4a denotes a notification signal process (corresponding to physical information output means described in the gist of the invention).
b indicates the periodic execution of the process, and 4c indicates the notification signal generated by the process.

【0017】一方、他のマイコン5で重要な点は、一の
マイコン4から出力された通知信号を監視(モニタ)
し、その信号に基づいて一のマイコン4の動作状態を判
定して、異常動作(暴走)を判定した場合にシステムリ
セット信号を発生して、システムリセット部6に出力す
ることにある。図において、5aは通知信号の監視プロ
セスを表し、5bは当該プロセスの周期的実行を表し、
5cは当該プロセスによる一のマイコン4の動作判定結
果を表し、5dは異常動作判定時のシステムリセットの
発生プロセスを表し、5eはシステムリセット信号を表
す。通知信号の監視プロセス5aとシステムリセットの
発生プロセス5dは、発明の要旨に記載のシステムリセ
ット信号発生手段に相当する。なお、他のマイコン5に
おけるこれらのプロセス(5a、5c、5d)はソフト
ウェアによって実現されるものであってもよいし、専用
のハードウェアによって実現されるものであってもよ
い。
On the other hand, another important point of the microcomputer 5 is that the notification signal output from the one microcomputer 4 is monitored.
Then, the operation state of one microcomputer 4 is determined based on the signal, and when an abnormal operation (runaway) is determined, a system reset signal is generated and output to the system reset unit 6. In the figure, 5a represents the monitoring process of the notification signal, 5b represents the periodic execution of the process,
5c represents the result of the operation determination of one microcomputer 4 by the process, 5d represents the process of generating a system reset at the time of abnormal operation determination, and 5e represents the system reset signal. The notification signal monitoring process 5a and the system reset generation process 5d correspond to the system reset signal generation means described in the gist of the invention. These processes (5a, 5c, 5d) in the other microcomputer 5 may be realized by software or may be realized by dedicated hardware.

【0018】このような構成によれば、一のマイコン4
が暴走すると、通知信号生成プロセス4aの周期的実行
が行われなくなるため、通知信号4cはLレベルの状態
を維持することになる。その結果、他のマイコン5の通
知信号監視プロセス5aで、通知信号4cのLレベル維
持状態が検出され、一のマイコン4の暴走が検知され
る。したがって、他のマイコン5のシステムリセットプ
ロセス5dでシステムリセット信号5eを発生し、この
システムリセット信号5eをシステムリセット部6に出
力して、一のマイコン4や他のマイコン5及びその他の
周辺回路に対するリセット通知6aを行ってシステムリ
セットを実行できるから、人為的なリセット操作を行う
必要がなくなり、手間をなくして使い勝手を向上できる
という特有のメリットが得られる。
According to such a configuration, one microcomputer 4
Runs out of control, the periodic execution of the notification signal generation process 4a is not performed, so that the notification signal 4c maintains the L level state. As a result, in the notification signal monitoring process 5a of the other microcomputer 5, the L level maintaining state of the notification signal 4c is detected, and the runaway of one microcomputer 4 is detected. Therefore, a system reset signal 5e is generated in the system reset process 5d of the other microcomputer 5, and this system reset signal 5e is output to the system reset unit 6, so that the microcomputer 4 and the other microcomputer 5 and other peripheral circuits can be used. Since the system reset can be executed by performing the reset notification 6a, there is no need to perform an artificial reset operation, and there is a unique merit that the usability can be improved without any trouble.

【0019】ところで、上記のように構成した場合、一
のマイコン4の処理状態によっては通知信号生成プロセ
ス4aの周期的実行が困難になることがある。例えば、
処理負荷が大きい場合などでは、通知信号生成プロセス
4aの実行が待たされることがあり、このような場合、
一のマイコン4から出力される通知信号4cが長い時
間、Lレベルを維持するため、他のマイコン5の通知信
号監視プロセス5aで誤った判断がなされ、その結果、
不本意なシステムリセットが行われるという動作上の不
都合をきたす。
By the way, in the case of the above configuration, it may be difficult to periodically execute the notification signal generation process 4a depending on the processing state of one microcomputer 4. For example,
When the processing load is large, the execution of the notification signal generation process 4a may be waited. In such a case,
Since the notification signal 4c output from one microcomputer 4 keeps the L level for a long time, the notification signal monitoring process 5a of the other microcomputer 5 makes an erroneous determination.
This causes an operational inconvenience that an unintended system reset is performed.

【0020】図4は、上記実施の形態の改良例であり、
かかる不都合を回避するようにしたものである。図にお
いて、一点差線で囲まれた二つの図形は、それぞれ一の
マイコン(発明の要旨に記載の「ターゲットとなるマイ
コン」に相当)7と、他のマイコン8を模式的に表して
いる。一のマイコン7および他のマイコン8は、図2の
第1のマイコン2および第2のマイコン3に対応する。
例えば、第1のマイコン2の暴走を第2のマイコン3で
検出する場合、一のマイコン7は第1のマイコン2とな
り、他のマイコン8は第2のマイコン3となる。あるい
は、その逆であれば、一のマイコン7は第2のマイコン
3となり、他のマイコン8は第1のマイコン2となる。
FIG. 4 shows an improved example of the above embodiment.
The inconvenience is avoided. In the figure, two figures surrounded by a dashed line schematically show one microcomputer (corresponding to “a target microcomputer” in the gist of the invention) 7 and another microcomputer 8. One microcomputer 7 and another microcomputer 8 correspond to the first microcomputer 2 and the second microcomputer 3 in FIG.
For example, when the second microcomputer 3 detects a runaway of the first microcomputer 2, one microcomputer 7 becomes the first microcomputer 2 and the other microcomputer 8 becomes the second microcomputer 3. Or, in the opposite case, one microcomputer 7 becomes the second microcomputer 3 and the other microcomputer 8 becomes the first microcomputer 2.

【0021】一のマイコン7で重要な一つの点は、上記
実施の形態と同様に、当該マイコン7の動作状態を通知
するための通知信号を外部出力することにある。通知信
号は、例えば、所定の論理状態(便宜的にHレベルとす
る。)を周期的に繰り返す信号とすることができ、その
通知信号の生成は、予めプログラムされた通知信号生成
プロセスを当該マイコン7で周期的(例えば1秒周期)
で実行させることにより行ってもよい。一のマイコン7
が暴走した場合、上記プロセスの実行がストップして、
通知信号の周期的な論理変化が外部観測されなくなるか
らである。
One important point of one microcomputer 7 is that a notification signal for notifying the operation state of the microcomputer 7 is externally output as in the above embodiment. The notification signal can be, for example, a signal that periodically repeats a predetermined logical state (for convenience, set to H level). The generation of the notification signal is performed by a notification signal generation process programmed in advance by the microcomputer. Periodic at 7 (eg 1 second period)
May be performed. One microcomputer 7
Runaway, the above process stops running,
This is because a periodic logical change of the notification signal is not externally observed.

【0022】さらに、一のマイコン7で重要な他の一つ
の点は、当該マイコン7の動作負荷を示す処理状態信号
を出力できることにある。この処理状態信号は、例え
ば、バスサイクルの状態を外部に通知するための信号
(具体例はV30または80486アーキテクチャのバ
スステータス信号)を使用することができる。アドレス
バスやデータバスが高い頻度で使用されている場合、当
該マイコン7の処理負荷が大きいとみなすことができる
からである。但し、処理状態信号はこの例(バスステー
タス信号)に限定されない。要は、一のマイコン7の実
際の処理負荷を概ね表す信号であればよく、例えば、チ
ップ温度信号などであってもよい。
Another important point of the microcomputer 7 is that a processing state signal indicating the operation load of the microcomputer 7 can be output. As this processing state signal, for example, a signal for notifying the state of the bus cycle to the outside (specifically, a bus status signal of V30 or 80486 architecture) can be used. This is because if the address bus or the data bus is used frequently, the processing load of the microcomputer 7 can be considered to be large. However, the processing state signal is not limited to this example (bus status signal). In short, any signal may be used as long as it roughly represents the actual processing load of one microcomputer 7, and may be, for example, a chip temperature signal.

【0023】図において、7aは通知信号プロセスを表
し、7bは当該プロセスの周期的実行を表し、7cは当
該プロセスによって生成された通知信号を表している。
また、7dは処理状態信号の生成プロセス(またはハー
ドロジック)を表し、7eは当該生成プロセスによって
生成された処理状態信号を表す。
In the figure, 7a represents a notification signal process, 7b represents the periodic execution of the process, and 7c represents a notification signal generated by the process.
7d represents a process (or hard logic) for generating a process state signal, and 7e represents a process state signal generated by the process.

【0024】一方、他のマイコン8で重要な一つの点
は、上記実施の形態と同様に、一のマイコン7から出力
された通知信号を監視(モニタ)し、その信号に基づい
て一のマイコン7の動作状態を判定して、異常動作(暴
走)を判定した場合にシステムリセット信号を発生する
ことにあるが、重要な他の一つの点は、一のマイコン7
からの処理状態信号に基づいて、一のマイコン7の処理
負荷の大きさを判定し、重い処理を実行中であれば、上
記システムリセット信号をマスクすることにある。
On the other hand, one important point of the other microcomputer 8 is that, similarly to the above embodiment, a notification signal output from one microcomputer 7 is monitored (monitored), and one microcomputer is monitored based on the signal. The operation state of the microcomputer 7 is determined, and when an abnormal operation (runaway) is determined, a system reset signal is generated. Another important point is that one microcomputer 7
Is to determine the magnitude of the processing load on one microcomputer 7 based on the processing state signal from the microcomputer 7 and if the heavy processing is being executed, the system reset signal is masked.

【0025】図において、8aは通知信号の監視プロセ
スを表し、8bは当該プロセスの周期的実行を表し、8
cは当該プロセスによる一のマイコン7の動作判定結果
を表し、8dは異常動作判定時のシステムリセットの発
生プロセスを表し、8eはシステムリセット信号を表
す。また、8fは一のマイコン7からの処理状態信号に
基づいて当該マイコン7の処理負荷の大きさを判定する
負荷判定プロセスを表し、8hは重い負荷を判定した際
にシステムリセット信号8eをマスクするマスクプロセ
スを表している。通知信号の監視プロセス8a、システ
ムリセットの発生プロセス8d、負荷判定プロセス8f
及びマスクプロセス8hは、発明の要旨に記載のシステ
ムリセット信号発生手段に相当し、また、マスクプロセ
ス8hはシステムリセット信号禁止手段に相当する。
In the figure, 8a represents a process of monitoring a notification signal, 8b represents a periodic execution of the process, 8a
c represents the result of the operation determination of one microcomputer 7 by the process, 8d represents a process of generating a system reset when an abnormal operation is determined, and 8e represents a system reset signal. 8f represents a load determination process for determining the magnitude of the processing load of the microcomputer 7 based on the processing state signal from one microcomputer 7, and 8h masks the system reset signal 8e when determining a heavy load. This shows a mask process. Notification signal monitoring process 8a, system reset generation process 8d, load determination process 8f
The mask process 8h corresponds to system reset signal generating means described in the gist of the invention, and the mask process 8h corresponds to system reset signal inhibiting means.

【0026】なお、他のマイコン8におけるこれらのプ
ロセス(8a、8c、8d、8f、8h)はソフトウェ
アによって実現されるものであってもよいし、専用のハ
ードウェアによって実現されるものであってもよい。
Note that these processes (8a, 8c, 8d, 8f, 8h) in the other microcomputer 8 may be realized by software or may be realized by dedicated hardware. Is also good.

【0027】このような構成によれば、一のマイコン7
からの通知信号7cが長い時間Lレベルの状態を維持す
ると、他のマイコン8の通知信号監視プロセス8aで、
一のマイコン7が暴走状態にあると仮判定され、システ
ムリセットプロセス8dでシステムリセット信号8eを
発生するが、同時並行的に他のマイコン8の負荷判定プ
ロセス8fで、一のマイコン7の処理負荷を判定し、重
い処理と判定した場合にシステムリセット信号8eをマ
スクする一方、そうでない場合に非マスクのシステムリ
セット信号8iをシステムリセット部9に出力して、一
のマイコン7や他のマイコン8及びその他の周辺回路に
対するリセット通知9aを行ってシステムリセットを実
行することができる。
According to such a configuration, one microcomputer 7
When the notification signal 7c from the CPU maintains the L level for a long time, the notification signal monitoring process 8a of the other microcomputer 8 performs
One microcomputer 7 is provisionally determined to be in a runaway state, and a system reset signal 8e is generated in a system reset process 8d. However, the processing load of one microcomputer 7 is concurrently determined in a load determination process 8f of another microcomputer 8. And if the processing is determined to be heavy, the system reset signal 8e is masked. If not, a non-masked system reset signal 8i is output to the system reset unit 9 so that one microcomputer 7 or another microcomputer 8 And a reset notification 9a to other peripheral circuits to execute a system reset.

【0028】したがって、改良された実施形態によれ
ば、一のマイコン7で重い処理を実行中に、仮に一のマ
イコン7からの通知信号7cが長い時間、Lレベルの状
態を維持したとしても、システムリセット信号8eをマ
スクして、一のマイコン7や他のマイコン8及びその他
の周辺回路に対するリセット通知9aを禁止でき、不本
意なシステムリセットが行われないという動作安定上の
特有なメリットが得られる。
Therefore, according to the improved embodiment, even if the notification signal 7c from one microcomputer 7 keeps the L level state for a long time while one microcomputer 7 is performing heavy processing, By masking the system reset signal 8e, the reset notification 9a to one microcomputer 7 or another microcomputer 8 and other peripheral circuits can be prohibited, and a unique advantage in operation stability that an unintended system reset is not performed is obtained. Can be

【0029】図5は、本発明に係る電子スチルカメラの
特にマイコン関係要部を示す構成図である。この図にお
いて、メインマイコン部10は前述(図2参照)の第1
のマイコン2に相当し、サブマイコン部20は同第2の
マイコン3に相当すると共に、電子スチルカメラの各部
を、例えば、撮像系1a、画像処理系1b、記録系1
c、表示系1d、キー操作系1eおよびその他系1fに
系統分けした場合に、メインマイコン部10は、例え
ば、撮像系1a、画像処理系1b、記録系1cおよび表
示系1d(但しファインダー部)の処理を担当し、サブ
マイコン部20は、残りの処理、この例では、表示系1
d(但しファインダー部を除く)、キー操作系1eおよ
びその他系1fの処理を担当する。なお、各系の符号は
それぞれ図1の符号に対応する。
FIG. 5 is a block diagram showing an electronic still camera according to the present invention, particularly showing a main part related to a microcomputer. In this figure, the main microcomputer unit 10 is the first (see FIG. 2) described above.
The sub-microcomputer unit 20 corresponds to the second microcomputer 3, and each unit of the electronic still camera includes, for example, an imaging system 1a, an image processing system 1b, and a recording system 1.
When the system is divided into c, display system 1d, key operation system 1e, and other system 1f, the main microcomputer unit 10 includes, for example, an imaging system 1a, an image processing system 1b, a recording system 1c, and a display system 1d (however, a finder unit). The sub-microcomputer unit 20 is responsible for the remaining processing, in this example, the display system 1
d (excluding the finder section), the key operation system 1e and the other system 1f. In addition, the code | symbol of each system respectively corresponds to the code | symbol of FIG.

【0030】通常の使用時には、メインマイコン部10
とサブマイコン部20を共に活性化状態にして上記全て
の系統を動作可能にする一方、待機時には、サブマイコ
ン部20のみを活性化状態にして省電力化を図る。サブ
マイコン部20の担当処理は、要するに、待機状態を維
持するために必要な最低限の処理であればよい。したが
って、サブマイコン部20には電力消費の少ないものを
使用できるから、待機時の省電力性能を向上することが
できる。
During normal use, the main microcomputer 10
And the sub-microcomputer unit 20 are both activated to make all the above-mentioned systems operable, while at the time of standby, only the sub-microcomputer unit 20 is activated to save power. In short, the processing in charge of the sub-microcomputer unit 20 may be the minimum processing required to maintain the standby state. Therefore, since a sub-microcomputer unit 20 that consumes less power can be used, power saving performance during standby can be improved.

【0031】ここで、メインマイコン部10は前記一の
マイコン(図3の符号4または図4の符号7参照)に相
当し、サブマイコン部20は前記他のマイコン(図3の
符号5または図4の符号8参照)に相当する。すなわ
ち、メインマイコン部10(一のマイコン)の暴走をサ
ブマイコン部20(他のマイコン)で検知することが可
能なように構成されている。ここで、図面には、メイン
マイコン部10およびサブマイコン部20のほかに、時
計部30とシステムリセット部40が示されており、時
計部30は周期的信号(例えばTa秒間隔の信号;便宜
的にTa=1とする。)の発生機能を有し、システムリ
セット部40は各マイコン10、20からの内部リセッ
ト信号(RSTa、RSTb、RSTc)に応答してシ
ステム各部をリセットするシステムリセット信号RST
_SYSの発生機能を有するものである。
Here, the main microcomputer unit 10 corresponds to the one microcomputer (see reference numeral 4 in FIG. 3 or reference numeral 7 in FIG. 4), and the sub-microcomputer unit 20 corresponds to the other microcomputer (reference numeral 5 in FIG. 4 (8)). That is, the sub microcomputer 20 (other microcomputer) can detect runaway of the main microcomputer 10 (one microcomputer). Here, in addition to the main microcomputer section 10 and the sub-microcomputer section 20, a clock section 30 and a system reset section 40 are shown in the drawing, and the clock section 30 is a periodic signal (for example, a signal at Ta second intervals; The system reset section 40 resets each section of the system in response to an internal reset signal (RSTa, RSTb, RSTc) from each of the microcomputers 10 and 20. RST
It has a function of generating _SYS.

【0032】<ウォッチドッグタイマーによるシステム
リセット>メインマイコン部10およびサブマイコン部
20は、それぞれウォッチドッグタイマー部17、27
を内蔵(または外付け)する。ウォッチドッグタイマー
部17、27は周知のとおり、数ビットのカウンタとオ
ーバフロー検知回路とで構成されており、システムクロ
ック等の周期信号に同期させてカウンタの値を逐次更新
して行き、カウンターの値がオーバフローしたとき(ま
たは所定値に達したとき)に内部リセット信号(メイン
マイコン部10にあってはRSTa、サブマイコン部2
0にあってはRSTb)を発生するというものである。
<System Reset by Watchdog Timer> The main microcomputer unit 10 and the sub-microcomputer unit 20 include the watchdog timer units 17 and 27, respectively.
Built-in (or external). As is well known, the watchdog timer units 17 and 27 each include a counter of several bits and an overflow detection circuit, and sequentially update the counter value in synchronization with a periodic signal such as a system clock. When an overflow occurs (or when a predetermined value is reached), an internal reset signal (RSTa in the main microcomputer unit 10, the sub microcomputer unit 2)
If it is 0, RSTb) is generated.

【0033】但し、カウンタの値はソフト的またはハー
ド的に初期化できるようになっており、例えば、初期値
からオーバーフロー値(または所定値)に達するまでの
時間をTxとすると、少なくともTx以内の時間で定期
的にカウンタ値を初期化することにより、内部リセット
信号(メインマイコン部10にあってはRSTa、サブ
マイコン部20にあってはRSTb)の発生を禁止でき
るようになっている。
However, the counter value can be initialized by software or hardware. For example, assuming that the time from the initial value to the overflow value (or a predetermined value) is Tx, the counter value is at least within Tx. By periodically initializing the counter value with time, the generation of the internal reset signal (RSTa in the main microcomputer unit 10 and RSTb in the sub-microcomputer unit 20) can be prohibited.

【0034】メインマイコン部10及びサブマイコン部
20の「その他部11、26」は、各マイコン10、2
0の担当処理機能を模式化して表したものであり、「そ
の他部11、26」からウォッチドッグタイマー部1
7、27に対して出力される信号S1a、S1bは各々
の担当処理機能が正常に実行されている間、少なくとも
Ta以内の時間で定期的に発生する、上記カウンタ値の
初期化信号である。
The "other units 11 and 26" of the main microcomputer unit 10 and the sub microcomputer unit 20 include the microcomputers 10 and 2 respectively.
0 is a schematic representation of the processing function assigned to the watchdog timer unit 1 from “Other units 11 and 26”.
The signals S1a and S1b output to the counters 7 and 27 are initialization signals for the counter value which are periodically generated at least within a period of time Ta while the respective processing functions are normally executed.

【0035】したがって、これらのウォッチドッグタイ
マー部17、27を備えたメインマイコン部10及びサ
ブマイコン部20によれば、いずれか一方の担当処理機
能が正常に実行されなくなった場合、異常側のウォッチ
ドッグタイマー部(17または27)のカウンタ値が初
期化されなくなって、直前の初期化時点からTx時間を
経過した時点で、内部リセット信号(メインマイコン部
10にあってはRSTa、サブマイコン部20にあって
はRSTb)が発生するので、この内部リセット信号に
応答させて、システムリセット部40でシステムリセッ
ト信号RST_SYSを発生させることができる。
Therefore, according to the main microcomputer unit 10 and the sub-microcomputer unit 20 provided with the watchdog timer units 17 and 27, if one of the processing functions is not normally executed, the watch on the abnormal side When the counter value of the dog timer unit (17 or 27) is no longer initialized and the Tx time has elapsed from the immediately preceding initialization time, an internal reset signal (RSTa in the main microcomputer unit 10, the sub microcomputer unit 20) In this case, since RSTb) occurs, the system reset unit 40 can generate the system reset signal RST_SYS in response to the internal reset signal.

【0036】図6は、ウォッチドッグタイマーによるシ
ステムリセットの流れ図であり、(a)はメインマイコ
ン部10の内部リセット信号RSTaに関するもの、
(b)はサブマイコン部20の内部リセット信号RST
bに関するものである。これらの流れ図からも理解され
るように、メインマイコン部10またはサブマイコン部
20のウォッチドッグタイマー(ウオッチドッグタイマ
ー部17、27)は常にオーバフロー前にクリア(初期
化または所定値に戻されること)される(ステップS1
1及びステップS21)が、もし、メインマイコン部1
0またはサブマイコン部20の各々の担当処理機能が正
常に実行されていない場合は、同クリア動作が行われず
にオーバフロー(または所定値に到達)するため、メイ
ンマイコン部10にあっては内部リセット信号RSTa
を、また、サブマイコン部20にあっては内部リセット
信号RSTbを発生し、その結果、システムの強制リセ
ットを行うことができる(ステップS12またはステッ
プS22)のである。
FIG. 6 is a flowchart of a system reset by the watchdog timer. FIG. 6A relates to the internal reset signal RSTa of the main microcomputer unit 10.
(B) shows the internal reset signal RST of the sub microcomputer unit 20.
b. As can be understood from these flowcharts, the watchdog timers (watchdog timer sections 17, 27) of the main microcomputer section 10 or the sub microcomputer section 20 are always cleared (initialized or returned to a predetermined value) before overflow. (Step S1
1 and step S21) if the main microcomputer unit 1
If the assigned processing function of the sub microcomputer unit 20 is not executed normally, the clear operation is not performed, and the overflow occurs (or reaches a predetermined value). Signal RSTa
In addition, the sub-microcomputer unit 20 generates the internal reset signal RSTb, and as a result, the system can be forcibly reset (step S12 or step S22).

【0037】次に、メインマイコン部10及びサブマイ
コン部20は、ウォッチドッグタイマー部17、27を
利用した上記の内部リセット信号RSTa、RSTbの
発生機能に加え、さらに、以下の構成(ソフト的に実現
されるものを含む)からなる統合的な内部リセット信号
発生機能を備える。
Next, the main microcomputer section 10 and the sub microcomputer section 20 have the following configuration (software) in addition to the function of generating the internal reset signals RSTa and RSTb using the watchdog timer sections 17 and 27. (Including those realized).

【0038】すなわち、メインマイコン部10は、さら
に、正常動作中信号生成部12、正常動作中信号出力部
13、強制リセットマスク部14、正常動作中通信コマ
ンド生成部15及び正常動作中通信コマンド出力部16
を有し、サブマイコン部20は、さらに、正常動作中信
号入力部21、強制リセット制御部22、正常動作中通
信コマンド入力部23、暴走判定部24及び1秒間隔検
出部25を有し、これら各部によって、メインマイコン
部10の暴走をサブマイコン部20で判定し、その判定
結果に基づいて統合的な内部リセット信号RSTcを発
生する機能を備える。
That is, the main microcomputer unit 10 further includes a normal operation signal generation unit 12, a normal operation signal output unit 13, a forced reset mask unit 14, a normal operation communication command generation unit 15, and a normal operation communication command output. Part 16
The sub-microcomputer unit 20 further includes a normal operation signal input unit 21, a forced reset control unit 22, a normal operation communication command input unit 23, a runaway determination unit 24, and a one-second interval detection unit 25. Each of these units has a function of determining runaway of the main microcomputer unit 10 by the sub-microcomputer unit 20 and generating an integrated internal reset signal RSTc based on the determination result.

【0039】以下、この内部リセット信号RSTcのこ
とを、便宜的に、統合内部リセット信号RSTcと称
し、上記のウォッチドッグタイマーによる内部リセット
信号RSTa、RSTbと区別することにする。
Hereinafter, the internal reset signal RSTc will be referred to as an integrated internal reset signal RSTc for convenience, and will be distinguished from the internal reset signals RSTa and RSTb by the watchdog timer.

【0040】図からも理解できるように、統合内部リセ
ット信号RSTcは暴走判定部24の出力信号である。
暴走判定部24は1秒間隔検出部25からの周期信号
(時計部20の時間信号に基づいて生成されたTa間隔
の信号;ここでは便宜的に1秒間隔の信号)に同期して
動作し、正常動作中信号入力部21、強制リセット制御
部22および正常動作中通信コマンド入力部23からの
三つの信号S2a〜S2cに基づいて、メインマイコン
部10の暴走判定を行い、当該暴走判定時における統合
内部リセット信号RSTcの出力を行うと共に、所定条
件成立時には統合内部リセット信号RSTcの出力禁止
(マスク)を行うというものである。
As can be understood from the drawing, the integrated internal reset signal RSTc is an output signal of the runaway determination unit 24.
Runaway determination unit 24 operates in synchronization with a periodic signal from 1 second interval detection unit 25 (a signal at Ta intervals generated based on the time signal of clock unit 20; here, a signal at 1 second intervals for convenience). Based on the three signals S2a to S2c from the normal operation signal input unit 21, the forced reset control unit 22, and the normal operation communication command input unit 23, the main microcomputer unit 10 makes a runaway determination. The integrated internal reset signal RSTc is output, and the output of the integrated internal reset signal RSTc is prohibited (masked) when a predetermined condition is satisfied.

【0041】詳しくは、暴走判定部24は、正常動作中
信号入力部21からの信号S2aに基づいて、メインマ
イコン部10の暴走判定(以下「第1の暴走判定」とい
う。)を行い、または、正常動作中通信コマンド入力部
23からの信号S2cに基づいて、メインマイコン部1
0の暴走判定(以下「第2の暴走判定」という。)を行
う。そして、これら第1の暴走判定または第2の暴走判
定の判定結果が「暴走」の場合に、強制リセット制御部
22からの信号S2bを参照して当該信号S2bがアク
ティブであれば、これら第1の暴走判定または第2の暴
走判定の判定結果を無視する一方、インアクティブであ
れば、当該判定結果に従って統合内部リセット信号RS
Tcを出力するというものである。
More specifically, runaway determination section 24 makes a runaway determination of main microcomputer section 10 (hereinafter, referred to as "first runaway determination") based on signal S2a from signal input section 21 during normal operation, or , The main microcomputer unit 1 based on the signal S2c from the communication command input unit 23 during normal operation.
A runaway determination of 0 (hereinafter referred to as “second runaway determination”) is performed. When the result of the first runaway determination or the second runaway determination is “runaway”, if the signal S2b is active with reference to the signal S2b from the forced reset control unit 22, the first runaway is performed. While the determination result of the runaway determination or the second runaway determination is ignored, if inactive, the integrated internal reset signal RS is determined in accordance with the determination result.
Tc is output.

【0042】<第1の暴走判定>まず、第1の暴走判定
について説明する。正常動作中信号入力部21には、メ
インマイコン部10の正常動作中信号生成部12で生成
された周期的な信号S3が正常動作中信号出力部13を
介して入力されている。この信号S3は、時計部30の
時間信号に同期したTa間隔(Ta=1秒)の周期信号
であり、時計部30が正常に動作し、且つ、メインマイ
コン部10が正常に動作している限り、当該信号S3の
周期性は失われないものである。
<First Runaway Determination> First, the first runaway determination will be described. The periodic signal S3 generated by the normal signal generation unit 12 of the main microcomputer unit 10 is input to the normal operation signal input unit 21 via the normal operation signal output unit 13. This signal S3 is a periodic signal with a Ta interval (Ta = 1 second) synchronized with the time signal of the clock unit 30, and the clock unit 30 operates normally and the main microcomputer unit 10 operates normally. As long as the periodicity of the signal S3 is not lost.

【0043】図7は、信号S3のタイミング図であり、
同図(a)は一定の周期(Ta)を保っている場合の
図、同図(b)は周期性を失った場合の図である。暴走
判定部24における第1の暴走判定は、要するに、信号
S3の周期性をモニタして周期性が失われた場合(例え
ば、同図(b)のようになった場合)に、メインマイコ
ン部10に異常(例えば、暴走)が発生したとみなして
判断するというものである。
FIG. 7 is a timing chart of the signal S3.
FIG. 7A is a diagram when a constant period (Ta) is maintained, and FIG. 7B is a diagram when the periodicity is lost. The first runaway determination by the runaway determination unit 24 is, in short, to monitor the periodicity of the signal S3 and to determine when the periodicity is lost (for example, when the state becomes as shown in FIG. It is determined that an abnormality (runaway, for example) has occurred in 10.

【0044】すなわち、図8(a)に示すように、メイ
ンマイコン部10は正常動作中信号を生成してサブマイ
コン部20に出力し(ステップS31)、サブマイコン
部20は、その正常動作中信号の周期性をモニタして、
メインマイコン部10の動作異常を判定(ステップS3
2)すると共に、異常判定時にシステムリセットを行う
ことを可能として(ステップS33)ので、複数のマイ
コンを備えた分散処理型の電子スチルカメラにおけるマ
イコン暴走時のシステムリセット対策を講じることがで
きる。
That is, as shown in FIG. 8A, the main microcomputer section 10 generates a normal operation signal and outputs the signal to the sub microcomputer section 20 (step S31). Monitor the periodicity of the signal,
An operation abnormality of the main microcomputer unit 10 is determined (step S3
2) In addition, since it is possible to perform a system reset at the time of abnormality determination (step S33), it is possible to take measures against a system reset in a microcomputer runaway in a distributed processing type electronic still camera including a plurality of microcomputers.

【0045】<第2の暴走判定>次に、第2の暴走判定
について説明する。正常動作中通信コマンド入力部23
には、メインマイコン部10の正常動作中通信コマンド
生成部15で生成された周期的な通信コマンドS4が正
常動作中通信コマンド出力部16を介して入力されてい
る。この通信コマンドS4は、時計部30の時間信号に
同期したTa間隔(Ta=1秒)の周期性を持つ任意の
コマンドであり、時計部30が正常に動作し、且つ、メ
インマイコン部10が正常に動作している限り、当該通
信コマンドS4の周期性は失われないものである。
<Second Runaway Determination> Next, the second runaway determination will be described. Communication command input section 23 during normal operation
The periodic communication command S4 generated by the normally operating communication command generating unit 15 of the main microcomputer unit 10 is input via the normally operating communication command output unit 16. This communication command S4 is an arbitrary command having a periodicity of Ta interval (Ta = 1 second) synchronized with the time signal of the clock unit 30, the clock unit 30 operates normally, and the main microcomputer unit 10 As long as it operates normally, the periodicity of the communication command S4 is not lost.

【0046】暴走判定部24における第2の暴走判定
は、要するに、通信コマンドS4の周期性をモニタして
周期性が失われた場合に、メインマイコン部10に異常
(例えば、暴走)が発生したとみなして判断するという
ものである。
In the second runaway determination by the runaway determination unit 24, in short, when the periodicity of the communication command S4 is monitored and the periodicity is lost, an abnormality (for example, runaway) occurs in the main microcomputer unit 10. It is to judge by considering it.

【0047】すなわち、図8(b)に示すように、メイ
ンマイコン部10は正常動作中通信コマンドを生成して
サブマイコン部20に出力し(ステップS41)、サブ
マイコン部20は、その正常動作中通信コマンドの周期
性をモニタして、メインマイコン部10の動作異常を判
定(ステップS42)すると共に、異常判定時にはシス
テムリセットを行うことを可能とした(ステップS4
3)ので、これによっても、複数のマイコンを備えた分
散処理型の電子スチルカメラにおけるマイコン暴走時の
システムリセット対策を講じることができる。
That is, as shown in FIG. 8B, the main microcomputer section 10 generates a communication command during normal operation and outputs it to the sub microcomputer section 20 (step S41). By monitoring the periodicity of the middle communication command, it is possible to determine the operation abnormality of the main microcomputer unit 10 (step S42), and to perform a system reset when the abnormality is determined (step S4).
3) Therefore, this also makes it possible to take measures against a system reset in the case of microcomputer runaway in a distributed processing type electronic still camera having a plurality of microcomputers.

【0048】<マスク処理>上記のとおり、暴走判定部
24は、第1の暴走判定または第2の暴走判定でメイン
マイコン部10の異常を判定したとしても、直ちにシス
テムリセットを行わない(統合内部リセット信号RST
cを出力しない)。強制リセット制御部22からの信号
S2bがインアクティブの場合に統合内部リセット信号
RSTcを出力を許容する一方、アクティブの場合に
は、その判定結果に係わらず、統合内部リセット信号R
STcを出力を禁止(マスク)する。
<Mask Processing> As described above, the runaway determination unit 24 does not immediately perform a system reset even if it determines that the main microcomputer unit 10 is abnormal in the first runaway determination or the second runaway determination. Reset signal RST
c is not output). While the integrated internal reset signal RSTc is allowed to be output when the signal S2b from the forced reset control unit 22 is inactive, the integrated internal reset signal RSTc is enabled when the signal S2b is active, regardless of the determination result.
The output of STc is prohibited (masked).

【0049】強制リセット制御部22には、メインマイ
コン部10の強制リセットマスク部14からマスク信号
S5が入力されており、このマスク信号S5は、メイン
マイコン部10の「その他部11」(メインマイコン部
10の担当処理機能実行部)から入力する負荷状態信号
S6が高負荷状態を示しているときにアクティブになる
信号(例えば、前述のバスステータス信号など)であ
る。強制リセット制御部22は、メインマイコン部10
からのマスク信号S5がアクティブのときに信号S2b
をアクティブにし、マスク信号S5がインアクティブの
ときに信号S2bをインアクティブにする。
The mask signal S5 is input to the forced reset control unit 22 from the forced reset mask unit 14 of the main microcomputer unit 10. The mask signal S5 is transmitted to the "other unit 11" (main microcomputer) of the main microcomputer unit 10. This is a signal (for example, the above-described bus status signal) that becomes active when the load state signal S6 input from the processing function execution unit in charge of the unit 10 indicates a high load state. The forced reset control unit 22 includes a main microcomputer unit 10
Signal S2b when the mask signal S5 from
Is activated, and the signal S2b is made inactive when the mask signal S5 is inactive.

【0050】したがって、本実施の形態の暴走判定部2
4によれば、第1の暴走判定または第2の暴走判定でメ
インマイコン部10の異常(例えば、暴走)を判定した
とき、図9に示すように、ターゲットCPU(この場
合、メインマイコン部10)の処理負荷が重いか否か、
具体的には、信号S2bがアクティブ(メインマイコン
部10の処理が重い)であるか否かを判定し(ステップ
S51、ステップS52)、アクティブであれば、統合
内部リセット信号RSTcの出力を禁止(マスク)して
(ステップS53)システムリセットを行わないように
することができる一方、インアクティブであれば、統合
内部リセット信号RSTcの出力を許容(RSTaがマ
スクされている場合はマスクを解除)して(ステップS
54)システムリセットを行うことができる。
Therefore, runaway determination section 2 of the present embodiment
According to FIG. 4, when an abnormality (for example, runaway) of the main microcomputer unit 10 is determined in the first runaway determination or the second runaway determination, the target CPU (in this case, the main microcomputer 10 ) Processing load is heavy,
Specifically, it is determined whether or not the signal S2b is active (processing of the main microcomputer unit 10 is heavy) (steps S51 and S52). If the signal S2b is active, the output of the integrated internal reset signal RSTc is prohibited ( (Step S53), the system reset can be prevented from being performed. On the other hand, if the system is inactive, the output of the integrated internal reset signal RSTc is permitted (if RSTa is masked, the mask is released). (Step S
54) A system reset can be performed.

【0051】その結果、メインマイコン部10で重い処
理を実行中に、万が一、正常動作中信号または正常動作
中通信コマンドの周期性喪失を観測した場合でも、誤っ
たシステムリセットを回避することができ、システム動
作の信頼性と安定性の向上を図ることができるという特
有のメリットが得られる。
As a result, an erroneous system reset can be avoided even if a loss of periodicity of a normally operating signal or a normally operating communication command is observed during execution of heavy processing by the main microcomputer unit 10. In addition, a unique advantage is obtained in that the reliability and stability of the system operation can be improved.

【0052】[0052]

【発明の効果】本発明によれば、ターゲットとなるマイ
コンから出力される信号またはコマンド若しくはデータ
の何れかを前記マイコンの正常動作中には所定の振る舞
いまたは所定の時間的変化傾向ないしは所定の値を維持
した物理情報として出力するものとし、当該物理情報が
前記所定の振る舞いまたは所定の時間的変化傾向ないし
は所定の値を維持しなくなったときに前記マイコンおよ
び他のマイコンを含むシステムのリセットを行うための
信号を発生するので、ターゲットとなるマイコンの動作
異常を、例えば、当該マイコンと一緒にシステムに組み
込まれた他のマイコンで判定し、システムをリセットす
るための信号を発生することができる。
According to the present invention, any one of a signal, a command, and data output from a target microcomputer is given a predetermined behavior or a predetermined temporal change tendency or a predetermined value during normal operation of the microcomputer. When the physical information does not maintain the predetermined behavior, the predetermined temporal change tendency, or the predetermined value, the system including the microcomputer and other microcomputers is reset. For example, an abnormal operation of the target microcomputer can be determined by another microcomputer incorporated in the system together with the microcomputer, and a signal for resetting the system can be generated.

【0053】したがって、上記他のマイコンで一のマイ
コン(ターゲットとなるマイコン)の動作異常(暴走
等)を自動的に検知してシステムリセットを掛けること
ができるから、例えば、複数のマイコンを備えた電子ス
チルカメラ等の分散処理型電子機器に用いて好適なシス
テムリセット方法及びその装置を提供することができ
る。
Therefore, the other microcomputer can automatically detect an operation abnormality (runaway or the like) of one microcomputer (target microcomputer) and reset the system. For example, a plurality of microcomputers are provided. It is possible to provide a system reset method and a device suitable for use in a distributed processing type electronic device such as an electronic still camera.

【0054】または、さらに、前記マイコンで実行中の
処理負荷の軽重を判定し、重い処理負荷を判定したとき
に、前記システムのリセットを行うための信号の発生を
禁止するようにすれば、上記一のマイコン(ターゲット
となるマイコン)からの物理情報に基づく誤った異常判
定が行われた場合でも、不本意なシステムリセットを行
わないようにすることができ、システムの信頼性及び安
定性の向上を図ることができる。
Alternatively, if the processing load being executed by the microcomputer is determined to be light or heavy, and if a heavy processing load is determined, generation of a signal for resetting the system is prohibited. Even if an erroneous abnormality is determined based on physical information from one microcomputer (target microcomputer), unintended system reset can be prevented from being performed, improving system reliability and stability. Can be achieved.

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

【図1】電子スチルカメラ1の処理機能図である。FIG. 1 is a processing function diagram of an electronic still camera 1.

【図2】電子スチルカメラ1の各系統の処理を2個のマ
イコンで分担する場合の概念図である。
FIG. 2 is a conceptual diagram in a case where processing of each system of the electronic still camera 1 is shared by two microcomputers.

【図3】実施形態のシステム概念図である。FIG. 3 is a conceptual diagram of a system according to the embodiment.

【図4】実施の形態の改良例を示すシステム概念図であ
る。
FIG. 4 is a system conceptual diagram showing an improved example of the embodiment.

【図5】本発明に係る電子スチルカメラの特にマイコン
関係要部を示す構成図である。
FIG. 5 is a configuration diagram showing a main part of the electronic still camera according to the present invention, particularly, a microcomputer-related part.

【図6】ウォッチドッグタイマーによるシステムリセッ
トの流れ図である。
FIG. 6 is a flowchart of a system reset by a watchdog timer.

【図7】信号S3のタイミング図である。FIG. 7 is a timing chart of a signal S3.

【図8】正常動作中信号または正常動作中通信コマンド
に基づくシステムリセットの流れ図である。
FIG. 8 is a flowchart of a system reset based on a normal operation signal or a normal operation communication command.

【図9】システムリセットマスク処理の流れ図である。FIG. 9 is a flowchart of a system reset mask process.

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

4 一のマイコン(ターゲットとなるマイコン) 4a 通知信号プロセス(物理情報出力手段) 5a 通知信号の監視プロセス(システムリセット信号
発生手段) 5d システムリセットの発生プロセス(システムリセ
ット信号発生手段) 7 一のマイコン(ターゲットとなるマイコン) 8a 通知信号の監視プロセス(システムリセット信号
発生手段) 8d システムリセットの発生プロセス(システムリセ
ット信号発生手段) 8f 負荷判定プロセス(システムリセット信号発生手
段) 8h マスクプロセス(システムリセット信号発生手
段、システムリセット信号禁止手段) 10 メインマイコン部(ターゲットとなるマイコン)
4 One microcomputer (target microcomputer) 4a Notification signal process (physical information output means) 5a Notification signal monitoring process (system reset signal generation means) 5d System reset generation process (system reset signal generation means) 7 one microcomputer (Target microcomputer) 8a Notification signal monitoring process (system reset signal generation means) 8d System reset generation process (system reset signal generation means) 8f Load determination process (system reset signal generation means) 8h Mask process (system reset signal) Generation means, system reset signal prohibition means) 10 Main microcomputer section (target microcomputer)

フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 5/232 G06F 1/00 350B Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat II (Reference) H04N 5/232 G06F 1/00 350B

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 ターゲットとなるマイコンから出力され
る信号またはコマンド若しくはデータの何れかを前記マ
イコンの正常動作中には所定の振る舞いまたは所定の時
間的変化傾向ないしは所定の値を維持した物理情報とし
て出力するものとし、当該物理情報が前記所定の振る舞
いまたは所定の時間的変化傾向ないしは所定の値を維持
しなくなったときに前記マイコンおよび他のマイコンを
含むシステムのリセットを行うための信号を発生するシ
ステムリセット信号発生工程を含むことを特徴とする、
分散処理型電子機器のシステムリセット方法。
1. A method according to claim 1, wherein a signal, a command, or data output from a target microcomputer is given as physical information maintaining a predetermined behavior, a predetermined temporal change tendency, or a predetermined value during normal operation of the microcomputer. A signal for resetting a system including the microcomputer and other microcomputers is generated when the physical information does not maintain the predetermined behavior, the predetermined temporal change tendency, or the predetermined value. Including a system reset signal generating step,
System reset method for distributed processing electronic equipment.
【請求項2】 ターゲットとなるマイコンから出力され
る信号またはコマンド若しくはデータの何れかを前記マ
イコンの正常動作中は所定の振る舞いまたは所定の時間
的変化傾向ないしは所定の値を維持した物理情報として
出力する物理情報出力手段と、 当該物理情報が前記所定の振る舞いまたは所定の時間的
変化傾向ないしは所定の値を維持しなくなったときに前
記マイコンおよび他のマイコンを含むシステムのリセッ
トを行うための信号を発生するシステムリセット信号発
生手段とを備えたことを特徴とする、分散処理型電子機
器のシステムリセット装置。
2. A signal or a command or data output from a target microcomputer is output as physical information maintaining a predetermined behavior, a predetermined temporal change tendency, or a predetermined value during normal operation of the microcomputer. A physical information output unit that outputs a signal for resetting a system including the microcomputer and other microcomputers when the physical information does not maintain the predetermined behavior or the predetermined temporal change tendency or a predetermined value. And a system reset signal generating means for generating the system reset signal.
【請求項3】 前記システムリセット信号発生工程は、
さらに、前記マイコンで実行中の処理負荷の軽重を判定
し、重い処理負荷を判定したときに、前記システムのリ
セットを行うための信号の発生を禁止することを特徴と
する請求項1に記載された、分散処理型電子機器のシス
テムリセット方法。
3. The system reset signal generating step includes:
2. The method according to claim 1, further comprising determining a lightness of a processing load being executed by the microcomputer, and prohibiting generation of a signal for resetting the system when determining a heavy processing load. Also, a system reset method for a distributed processing type electronic device.
【請求項4】 前記システムリセット信号発生手段は、
さらに、前記マイコンで実行中の処理負荷の軽重を判定
し、重い処理負荷を判定したときに、前記システムのリ
セットを行うための信号の発生を禁止することを特徴と
する請求項2に記載された、分散処理型電子機器のシス
テムリセット装置。
4. The system reset signal generating means includes:
3. The method according to claim 2, further comprising: judging the lightness of the processing load being executed by the microcomputer, and prohibiting generation of a signal for resetting the system when judging a heavy processing load. Also, a system reset device for distributed processing type electronic equipment.
【請求項5】 前記システムリセット信号発生手段は、
前記他のマイコンに含まれることを特徴とする請求項2
に記載された、分散処理型電子機器のシステムリセット
装置。
5. The system reset signal generating means,
3. The device according to claim 2, wherein the microcomputer is included in the other microcomputer.
A system reset device for a distributed processing type electronic device according to claim 1.
【請求項6】 ターゲットとなるマイコンから出力され
る信号またはコマンド若しくはデータの何れかを前記マ
イコンの正常動作中には所定の振る舞いまたは所定の時
間的変化傾向ないしは所定の値を維持した物理情報とし
て出力するものとし、当該物理情報が前記所定の振る舞
いまたは所定の時間的変化傾向ないしは所定の値を維持
しなくなったときに前記マイコンを含むシステムのリセ
ットを行うための信号を発生するシステムリセット信号
発生工程と、 前記マイコンで実行中の処理負荷の軽重を判定し、重い
処理負荷を判定したときに、前記システムのリセットを
行うための信号の発生を禁止するシステムリセット信号
禁止工程を含むことを特徴とする、分散処理型電子機器
のシステムリセット方法。
6. A signal or a command or data output from a target microcomputer as physical information that maintains a predetermined behavior, a predetermined temporal change tendency, or a predetermined value during normal operation of the microcomputer. A system reset signal generation for generating a signal for resetting the system including the microcomputer when the physical information does not maintain the predetermined behavior, the predetermined temporal change tendency, or the predetermined value. And a system reset signal prohibiting step of prohibiting generation of a signal for resetting the system when judging the lightness of the processing load being executed by the microcomputer and judging a heavy processing load. A system reset method for a distributed processing type electronic device.
【請求項7】 ターゲットとなるマイコンから出力され
る信号またはコマンド若しくはデータの何れかを前記マ
イコンの正常動作中は所定の振る舞いまたは所定の時間
的変化傾向ないしは所定の値を維持した物理情報として
出力する物理情報出力手段と、 当該物理情報が前記所定の振る舞いまたは所定の時間的
変化傾向ないしは所定の値を維持しなくなったときに前
記マイコンを含むシステムのリセットを行うための信号
を発生するシステムリセット信号発生手段と、 前記マイコンで実行中の処理負荷の軽重を判定し、重い
処理負荷を判定したときに、前記システムのリセットを
行うための信号の発生を禁止するシステムリセット信号
禁止手段とを備えたことを特徴とする、分散処理型電子
機器のシステムリセット装置。
7. A signal or a command or data output from a target microcomputer is output as physical information that maintains a predetermined behavior, a predetermined temporal change tendency, or a predetermined value during normal operation of the microcomputer. A physical information output unit for performing a reset for generating a signal for resetting a system including the microcomputer when the physical information does not maintain the predetermined behavior, the predetermined temporal change tendency, or the predetermined value. Signal generating means, and system reset signal prohibiting means for prohibiting generation of a signal for resetting the system when judging the processing load being executed by the microcomputer and judging a heavy processing load. A system reset device for a distributed processing type electronic device.
JP2000207943A 2000-07-10 2000-07-10 Electronic device, control method therefor, and recording medium Expired - Fee Related JP4623531B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000207943A JP4623531B2 (en) 2000-07-10 2000-07-10 Electronic device, control method therefor, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000207943A JP4623531B2 (en) 2000-07-10 2000-07-10 Electronic device, control method therefor, and recording medium

Publications (2)

Publication Number Publication Date
JP2002024057A true JP2002024057A (en) 2002-01-25
JP4623531B2 JP4623531B2 (en) 2011-02-02

Family

ID=18704622

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000207943A Expired - Fee Related JP4623531B2 (en) 2000-07-10 2000-07-10 Electronic device, control method therefor, and recording medium

Country Status (1)

Country Link
JP (1) JP4623531B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008293276A (en) * 2007-05-24 2008-12-04 Sony Corp Digital cinema reproduction system, showing suspension corresponding method, and program
JP2013054119A (en) * 2011-09-01 2013-03-21 Nikon Corp Lens barrel, camera, and camera system
JP2016038620A (en) * 2014-08-05 2016-03-22 日立オートモティブシステムズ株式会社 Electronic control device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6260038A (en) * 1985-09-10 1987-03-16 Hochiki Corp Watchdog circuit
JPH03109651A (en) * 1989-09-22 1991-05-09 Ricoh Co Ltd Monitor system for cpu runaway
JPH07230394A (en) * 1994-02-21 1995-08-29 Matsushita Electric Works Ltd Device provided with watchdog timer
JPH09212388A (en) * 1996-01-31 1997-08-15 Hitachi Cable Ltd Method for monitoring operation of cpu
JPH10260913A (en) * 1997-03-19 1998-09-29 Nec Corp Bus control system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6260038A (en) * 1985-09-10 1987-03-16 Hochiki Corp Watchdog circuit
JPH03109651A (en) * 1989-09-22 1991-05-09 Ricoh Co Ltd Monitor system for cpu runaway
JPH07230394A (en) * 1994-02-21 1995-08-29 Matsushita Electric Works Ltd Device provided with watchdog timer
JPH09212388A (en) * 1996-01-31 1997-08-15 Hitachi Cable Ltd Method for monitoring operation of cpu
JPH10260913A (en) * 1997-03-19 1998-09-29 Nec Corp Bus control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008293276A (en) * 2007-05-24 2008-12-04 Sony Corp Digital cinema reproduction system, showing suspension corresponding method, and program
JP2013054119A (en) * 2011-09-01 2013-03-21 Nikon Corp Lens barrel, camera, and camera system
JP2016038620A (en) * 2014-08-05 2016-03-22 日立オートモティブシステムズ株式会社 Electronic control device

Also Published As

Publication number Publication date
JP4623531B2 (en) 2011-02-02

Similar Documents

Publication Publication Date Title
JP4815141B2 (en) Circuit abnormal operation detection system
US10296434B2 (en) Bus hang detection and find out
CN106527249B (en) Timer for peripheral watchdog
US8078335B2 (en) Storage system, storage system control method and storage system control apparatus
JP2007066075A (en) Start/stop logic circuit
US20060068855A1 (en) Cellular phone and operational mode switching method thereof
CN111949320A (en) Method, system and server for providing system data
JP4151566B2 (en) Microcomputer
WO2022194133A1 (en) Control circuit apparatus, electronic device, control method and readable storage medium
JP4886558B2 (en) Information processing device
CN104349001A (en) Information processing apparatus, method for controlling the same, and program
JP2006268742A (en) Computer system and control method thereof
KR101494000B1 (en) Method and system for power-on self testing after system off, and booting method the same
TW201413445A (en) Self-repair device for computer motherboard
JP2002024057A (en) System reset method for distributed processing electronic equipment and device therefor
JPH11191026A (en) Device and method for discriminating power source and hardware faults
JP5517301B2 (en) Data processing system
JP2003032884A (en) Power system
CN101303655A (en) Device and method for managing basic input/output system
US7103692B2 (en) Method and apparatus for an I/O controller to alert an external system management controller
JP2000292841A (en) Camera
US20070130378A1 (en) Computer protection system and method
CN110018725B (en) Method and system for remotely resetting baseboard management controller of computer system
JP2000311155A (en) Multiprocessor system and electronic equipment
CN115858296A (en) Soft watchdog, equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050324

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071127

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080122

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080401

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080417

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20080523

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20080613

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100826

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: 20101028

R150 Certificate of patent or registration of utility model

Ref document number: 4623531

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20131112

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees