JP2000040033A - Rewriting device of nonvolatile memory - Google Patents

Rewriting device of nonvolatile memory

Info

Publication number
JP2000040033A
JP2000040033A JP10207837A JP20783798A JP2000040033A JP 2000040033 A JP2000040033 A JP 2000040033A JP 10207837 A JP10207837 A JP 10207837A JP 20783798 A JP20783798 A JP 20783798A JP 2000040033 A JP2000040033 A JP 2000040033A
Authority
JP
Japan
Prior art keywords
rewriting
setting
nonvolatile memory
runaway
processing
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
JP10207837A
Other languages
Japanese (ja)
Inventor
Namiko Sakabe
奈美子 坂部
Takeshi Musashi
剛 八道
Junichi Ito
順一 伊藤
Hisaaki Ishimaru
寿明 石丸
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.)
Olympus Corp
Original Assignee
Olympus Optical 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 Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP10207837A priority Critical patent/JP2000040033A/en
Publication of JP2000040033A publication Critical patent/JP2000040033A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a memory rewriting device which detects the runaway of a microcomputer and which makes it difficult to cause a malfunction even with the microcomputer in runaway. SOLUTION: This memory rewriting device is constituted by being connected to a nonvolatile memory whose storage content is rewritable. The device is provided with rewriting means (S104 to S106) which perform prescribed rewriting processing that rewrites the storage content of the nonvolatile memory to new content, a setting means (S102) which initializes rewriting processing of the nonvolatile memory, setting deciding means (S108 to S122) that decide whether or not desired setting is performed by the setting means and an inhibiting means (S126) which inhibits writing processing to the nonvolatile memory when it is decided that the desired setting is not performed by the setting deciding means.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、装置を制御するマ
イクロコンピュータ(以下、マイコンと略称)の暴走を
検知する技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for detecting a runaway of a microcomputer (hereinafter abbreviated as "microcomputer") for controlling an apparatus.

【0002】[0002]

【従来の技術】近年、マイコンが各種装置に採用される
に伴ないマイコンの異常またはその暴走を検知し未然に
防止することが求められている。一般に、例えばEEP
ROMにデータを書き込む際、このEEPROMに書込
み許可コードが送信できれば、データの正/不正に関係
なくEEPROMへの書き込みが可能となるが、そのE
EPROMへのデータ書込のためのソフトウエア(以
下、ソフトと略称)を何らかの事故の発生で途中から実
行した場合は、誤ったデータが書き込まれることが起こ
る。
2. Description of the Related Art In recent years, there has been a demand for detecting an abnormality of a microcomputer or a runaway of the microcomputer and preventing it from occurring as the microcomputer is employed in various devices. Generally, for example, EEP
When writing data to the ROM, if a write permission code can be transmitted to the EEPROM, the data can be written to the EEPROM regardless of whether the data is correct or not.
If software for writing data to an EPROM (hereinafter abbreviated as software) is executed halfway due to the occurrence of some accident, erroneous data may be written.

【0003】そこで、特開平8−241252号公報に
提案された技術では、CPUに従属するEEPROMの
データを書き換える際に、所定のチェック領域にまずチ
ェックデータ(FFFFH)を書き込み、そのチェックデー
タが正しく書き込まれた場合にのみ書込み手段が異常な
しと判断でき、次に隣接ビット同士の干渉をチェックす
るためチェックデータ(55AAH)を書き込み、このチェ
ックデータが正しく書き込まれた場合に書換え手段に異
常なしと判断し、そのEEPROM用のデータやプログ
ラム等を正しく書き換える処理に移行できる。
Therefore, in the technique proposed in Japanese Patent Application Laid-Open No. 8-241252, when rewriting data in an EEPROM dependent on a CPU, first, check data (FFFFH) is written into a predetermined check area, and the check data is correctly written. Only when it is written, the writing means can determine that there is no abnormality. Then, check data (55AAH) is written to check for interference between adjacent bits, and when this check data is correctly written, the rewriting means has no abnormality. Judgment can be performed, and the process can be shifted to a process of correctly rewriting the EEPROM data or program.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述し
た特開平8−241252号公報の技術は、そのCPU
に従属するEEPROMの故障の検知にのみに効果を発
揮するもので、CPU自体が暴走したときには、やはり
誤ったデータをEEPROMに書き込んでしまう等の不
具合を有している。そこで本発明の目的は、装置を制御
するマイコンの暴走を検知し、マイコンが暴走したとき
にも誤動作させにくくするための暴走検知機能を有する
メモリの書換え装置を提供することにある。
However, the technique disclosed in Japanese Patent Application Laid-Open No. H8-241252 described above has a problem with the CPU.
Is effective only in detecting a failure of the EEPROM dependent on the CPU. When the CPU itself goes out of control, it also has a problem that erroneous data is written in the EEPROM. SUMMARY OF THE INVENTION An object of the present invention is to provide a memory rewriting device having a runaway detection function for detecting runaway of a microcomputer that controls the device and making it difficult for the microcomputer to malfunction even when runaway.

【0005】[0005]

【課題を解決するための手段】本発明は、上記の課題を
解決し目的を達成するために次のような手段を講じてい
る。例えば、装置を制御するマイコンの暴走をソフトに
より検知し判断するが、このときの正常な動作をしてい
るか否かの判断は所定コードの変化に注目して行う。マ
イコンが所定の動作を行う際、動作実行前に所定コード
を予め設定しておき、動作実行の際、そのコードの内容
を確認してから次の所望する段階に進む。一方、そのコ
ードが初期の値と異なる場合は暴走が発生して所定動作
のアルゴリズムの途中から実行したものと判断する。
The present invention employs the following means in order to solve the above-mentioned problems and achieve the object. For example, a runaway of the microcomputer that controls the apparatus is detected and determined by software, and the determination as to whether or not a normal operation is performed at this time is made by paying attention to a change in a predetermined code. When the microcomputer performs a predetermined operation, a predetermined code is set in advance before the operation is performed, and when the operation is performed, the content of the code is confirmed and then the process proceeds to the next desired stage. On the other hand, if the code is different from the initial value, it is determined that a runaway has occurred and the algorithm has been executed in the middle of the predetermined operation algorithm.

【0006】請求項に記載の態様によれば、[1] 記
憶内容の書き換えが可能な不揮発性メモリと、このメモ
リの記憶内容を新しい内容に書き換える書換え処理を行
う書換え手段と、上記メモリの書換え処理の初期設定を
行う設定手段と、この設定手段によって所望の設定が行
われたか否かを判定する設定判定手段と、この設定判定
手段によって上記所望の設定が行われていないと判定さ
れた場合は、上記メモリに対する書込み処理を禁止する
禁止手段とを備える不揮発性メモリの書換え装置を提案
する。
According to the aspect described in the claims, [1] a nonvolatile memory capable of rewriting storage contents, rewriting means for performing rewriting processing for rewriting storage contents of the memory to new contents, and rewriting of the memory Setting means for performing an initial setting of the process, setting determining means for determining whether or not a desired setting has been performed by the setting means; and when the setting determining means determines that the desired setting has not been performed. Proposes a non-volatile memory rewriting device including a prohibition unit for prohibiting a writing process to the memory.

【0007】上記設定手段は、書換え処理に入った直後
に、書込み処理中であることを示す書込み処理フラグを
設定し、上記設定判定手段によって書込み処理中でない
と判定された場合は、上記禁止手段によって上記不揮発
性メモリに対する書込み処理を禁止することを特徴とす
る[1]記載の書換え装置を提案する。また、上記設定
手段は、書込み処理に入った直後に、上記不揮発性メモ
リに書き込むデータが在るアドレスを設定し、上記設定
判定手段によって上記アドレスが所望のアドレスでない
と判定された場合は、上記禁止手段によって上記メモリ
に対する書込み処理を禁止することを特徴とする[1]
記載の書換え装置を提案する。
The setting means sets a write processing flag indicating that the writing processing is being performed immediately after the rewriting processing is started. If the setting determining means determines that the writing processing is not being performed, the prohibiting means is set. The writing apparatus according to [1], wherein the writing process to the nonvolatile memory is prohibited. The setting means sets an address at which data to be written to the nonvolatile memory exists immediately after the writing process is started. If the setting determining means determines that the address is not the desired address, the setting means sets the address. [1] The writing process to the memory is prohibited by a prohibition unit.
A rewriting device as described is proposed.

【0008】[0008]

【発明の実施の形態】以下、図面を参照して本発明に係
わる実施の形態について説明する。図1にはカメラの主
として電気的な構成をブロック図で示している。このカ
メラ100は、カメラの全動作を制御するためのマイコ
ンで成る制御手段であり、表示制御手段としてのCPU
1を有しており、このCPU1は、制御ラインおよび通
信ラインを介して後述するような各周辺回路と接続され
ている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram mainly showing the electrical configuration of the camera. The camera 100 is a control unit including a microcomputer for controlling all operations of the camera, and a CPU as a display control unit.
The CPU 1 is connected to peripheral circuits, which will be described later, via control lines and communication lines.

【0009】カメラ100の撮影レンズは、焦点距離を
変化させるためのズーム制御光学系2と、光束の通過量
および通過/遮断を制御するための絞り・シャッタ駆動
系3と、フォーカスを調節するための焦点制御光学系4
とを有して構成されている。
The photographing lens of the camera 100 includes a zoom control optical system 2 for changing the focal length, an aperture / shutter drive system 3 for controlling the amount of light passing and passing / blocking, and a focus for adjusting the focus. Focus control optical system 4
And is configured.

【0010】上記ズーム制御光学系2の焦点距離(即ち
ズーム位置)あるいは沈胴位置は位置検知手段としての
ズーム・沈胴位置検知回路9により又、上記焦点制御光
学系4のフォーカス位置は検知手段としてのフォーカス
位置検出回路10により、それぞれ検出される。
The focal length (ie, the zoom position) or the retracted position of the zoom control optical system 2 is determined by a zoom / retract position detecting circuit 9 as position detecting means, and the focus position of the focus control optical system 4 is determined as detecting means. Each is detected by the focus position detection circuit 10.

【0011】上述した内の、ズーム制御光学系2、焦点
制御光学系4、ズーム・沈胴位置検出回路9およびフォ
ーカス位置検出回路10は撮影レンズ駆動制御手段とし
てのズーム・ピント駆動回路6により又、上記絞り・シ
ャッタ駆動系3は同撮影レンズ駆動制御手段としての絞
り・シャッタ駆動回路4によりそれぞれ駆動制御され
る。これらズーム・ピント駆動回路6と絞り・シャッタ
駆動回路7は、通信ラインを介して上記CPU1と接続
され、CPU1の指令によりそれぞれの駆動制御を行
う。
Of the above, the zoom control optical system 2, the focus control optical system 4, the zoom / collapse position detection circuit 9 and the focus position detection circuit 10 are provided by a zoom / focus drive circuit 6 as a photographing lens drive control means. The aperture / shutter drive system 3 is driven and controlled by an aperture / shutter drive circuit 4 as the photographing lens drive control means. The zoom / focus drive circuit 6 and the aperture / shutter drive circuit 7 are connected to the CPU 1 via a communication line, and perform respective drive controls according to instructions from the CPU 1.

【0012】上記撮影レンズから導かれた光束を結像さ
せる位置にはフィルム5が配置され、このフィルム5
は、装填されているか否か、フィルムの種類、フィルム
位置などを状態検知手段としてのフィルム状態検出回路
11により検出される。上記フィルム5およびフィルム
状態検出回路11はフィルム駆動手段としてのフィルム
検出駆動回路8により駆動制御され、このフィルム検出
駆動回路8も通信ラインを介して上記CPU1と接続さ
れている。
A film 5 is disposed at a position where the light beam guided from the photographing lens is imaged.
Is detected by the film state detecting circuit 11 as a state detecting means, whether or not the film is loaded, the type of the film, the film position, and the like. The drive of the film 5 and the film state detection circuit 11 is controlled by a film detection drive circuit 8 as a film drive means, and the film detection drive circuit 8 is also connected to the CPU 1 via a communication line.

【0013】このカメラ100はリモートコントローラ
(以下リモコンと略称)により制御可能となっていて、
カメラ外に配置されたリモコンから発信される赤外光信
号を受信する検知手段としてのリモコン受信部15を備
えている。このリモコン受信部15は、上記CPU1と
通信ラインを介して接続されているリモコン駆動回路1
2により駆動制御される。また、測距ユニット16はA
F駆動回路13により又、測光ユニット17はAE駆動
回路14によりそれぞれ駆動制御されるように構成さ
れ、これらAF駆動回路13およびAE駆動回路14
も、通信ラインを介して上記CPU1と接続されてい
る。
The camera 100 can be controlled by a remote controller (hereinafter abbreviated as a remote controller).
A remote control receiving unit 15 is provided as a detection unit for receiving an infrared light signal transmitted from a remote control disposed outside the camera. The remote control receiving unit 15 includes a remote control driving circuit 1 connected to the CPU 1 via a communication line.
2 is driven and controlled. The distance measuring unit 16 is A
The AF drive circuit 13 and the AE drive circuit 14 are configured to be driven and controlled by the F drive circuit 13 and the AE drive circuit 14, respectively.
Are also connected to the CPU 1 via a communication line.

【0014】上記CPU1は、更に以下のようなユニッ
トの制御を行うように構成されている。すなわち、ま
ず、表示手段としてのLCD18の制御を行う。このL
CD18の裏側には表示照明手段としてのエレクトロル
ミネッセンス素子(以下、ELと略称)19が配置され
ていて、このEL19を駆動するための照明制御手段と
してのEL駆動回路20の制御もCPU1により行われ
るようになっている。このEL駆動回路20には、EL
駆動電圧および駆動周波数を決定するためのインダクタ
21とコンデンサ22が接続されている。
The CPU 1 is further configured to control the following units. That is, first, the LCD 18 as the display unit is controlled. This L
An electroluminescent element (hereinafter abbreviated as EL) 19 as a display illumination means is arranged on the back side of the CD 18, and the CPU 1 also controls an EL drive circuit 20 as an illumination control means for driving the EL 19. It has become. The EL drive circuit 20 includes an EL
An inductor 21 and a capacitor 22 for determining a drive voltage and a drive frequency are connected.

【0015】そしてCPU1は、被写体に補助光を照射
するためのストロボ回路23と、パワースイッチ、モー
ド切換スイッチ、フラッシュ選択スイッチ、レリーズス
イッチ、データ選択設定スイッチ、ズームスイッチ、巻
戻スイッチ等を有して成るスイッチ入力検知手段として
のスイッチ入力部24と、カメラ100のバッテリ残量
等を検出するための電源残量検知手段としてのバッテリ
検出回路25と、上記フィルム5へ撮影日時等を写し込
むためのデータ写込回路26とを制御するように構成さ
れている。
The CPU 1 has a strobe circuit 23 for irradiating the subject with auxiliary light, a power switch, a mode switch, a flash selection switch, a release switch, a data selection setting switch, a zoom switch, a rewind switch, and the like. A switch input section 24 serving as switch input detecting means, a battery detection circuit 25 serving as power remaining amount detecting means for detecting the remaining battery power of the camera 100, and the like, for imprinting the shooting date and time on the film 5. Is configured to control the data imprinting circuit 26.

【0016】さらに、上記CPU1は、上記通信ライン
を介して接続されている記憶手段としてのEEPROM
27のデータ読み書きに関する制御を行うように構成さ
れ、このEEPROM27には、カメラ固有の各種の調
整情報や撮影情報などが後述する所定領域中に記憶保持
されている。
Further, the CPU 1 has an EEPROM as a storage means connected via the communication line.
The EEPROM 27 stores various kinds of adjustment information and photographing information specific to the camera in a predetermined area described later.

【0017】図2(a),(b)にはCPUのRAM及
びEEPROMを概念的に示している。なお、CPU1
はバス等を介してEEPROM27に接続しており、C
PU1内の主記憶領域として備えられたRAMを「内部
メモリ」と称すると、このEEPROM27はこのCP
U1から見て「外部メモリ」であると言える。
FIGS. 2A and 2B conceptually show the RAM and EEPROM of the CPU. Note that the CPU 1
Is connected to the EEPROM 27 via a bus or the like.
When the RAM provided as a main storage area in the PU 1 is referred to as “internal memory”, the EEPROM 27
It can be said that it is an “external memory” from the viewpoint of U1.

【0018】図2(a)はCPU1の記憶領域を空間的
に示している。上述のようにCPU1は内部メモリ(主
記憶領域)としての揮発性メモリであるRAMを有し、
このRAMには複数の論理的な領域として図示の如く、
アドレスの1つの塊である処のバンク0〜バンク2とい
う例えば3つの記憶領域が存在している。これら複数バ
ンクの領域にはカメラシーケンスプログラム等の重要な
制御用ソフトがロードされ稼動する。よって、これらバ
ンク0〜バンク2は、そのソフトが稼動中に破壊されな
いように保護されるべき領域であることがわかる。更に
これらバンク0〜バンク2に続く領域には、マイコンの
暴走の発生状態を示すための「チェックフラグ」として
の暴走フラグを有している。この暴走フラグにおいて
は、1は暴走している状態を示し、0は暴走していない
正常状態を示すように規定されている。
FIG. 2A shows a storage area of the CPU 1 spatially. As described above, the CPU 1 has the RAM which is a volatile memory as an internal memory (main storage area),
This RAM has a plurality of logical areas as shown in the figure.
There are, for example, three storage areas of bank 0 to bank 2 which are one block of addresses. Important control software such as a camera sequence program is loaded and operated in the area of the plurality of banks. Therefore, it is understood that these banks 0 to 2 are areas to be protected so that the software is not destroyed during operation. Further, an area following bank 0 to bank 2 has a runaway flag as a "check flag" for indicating the state of occurrence of runaway of the microcomputer. In this runaway flag, 1 indicates a runaway state, and 0 indicates a normal state in which no runaway occurs.

【0019】一方、図2(b)にはEEPROM27の
記憶領域を空間的に示している。不揮発性メモリとして
のEEPROM27には、製造における特性的なバラツ
キのあるそれぞれのカメラについての各種の調整情報や
撮影情報などのほか、仕様を満たすために所定演算等を
行う際に用いるそのカメラ固有な調整値や係数等を書き
換え調整するための調整領域が設けられている。また、
このカメラの状態を示す情報を一時的に記憶するための
斜線で示す状態記憶領域と、これに続く空き領域を有し
ている。これらの領域もまた、稼働中に破壊されないよ
うに保護されるべき領域であることがわかる。
On the other hand, FIG. 2B shows the storage area of the EEPROM 27 spatially. The EEPROM 27 as a non-volatile memory includes various kinds of adjustment information and photographing information for each camera having characteristic variations in manufacturing, as well as a camera-specific information used when performing a predetermined calculation or the like to satisfy specifications. An adjustment area for rewriting and adjusting adjustment values, coefficients, and the like is provided. Also,
It has a state storage area for temporarily storing information indicating the state of the camera and a free area following the state storage area. It can be seen that these areas are also areas that should be protected from being destroyed during operation.

【0020】図3には、CPUとEEPROMの接続関
係を概略的に示す。CPU1は電気的にEEPROM2
7と8ビット幅のバスによって接続しており、主に3種
類の専用ラインの経由による所定信号の送受によって適
宜に制御されている。詳しくは、EEPROM27を構
成するチップのどれを選択するかを示すEPCENとい
う制御ラインと、CPU1とEEPROM27との間で
送受される記憶データが通るSDATAというデータラ
インと、CPU1とEEPROM27の同期をとるため
のクロック信号を供給するSCLKというクロックライ
ンとから主に構成されているまた、CPU1には、主に
本発明に係わる次のような手段が機能的(ソフト的)に
含まれている。例えば、EEPROM27の記憶内容を
新しい内容に書き換える所定の書換え処理を行う書換え
手段1aと、このEEPROM27の書換え処理の初期
設定を行う設定手段1bと、この設定手段1bによって
所望の設定が行われたか否かを判定する設定判定手段1
cと、この設定判定手段1cによって上記所望の設定が
行われていないと判定された場合は、そのEEPROM
27に対する書込み処理を禁止する禁止手段1dとがそ
れぞれ備えられ、前述した所定信号の送受に基づいて適
宜に制御されていることがわかる(詳細後述)。
FIG. 3 schematically shows the connection between the CPU and the EEPROM. CPU1 is electrically connected to EEPROM2
They are connected by buses having a width of 7 and 8 bits, and are appropriately controlled mainly by transmitting and receiving predetermined signals via three types of dedicated lines. More specifically, to synchronize the CPU 1 with the EEPROM 27, a control line EPCEN indicating which of the chips constituting the EEPROM 27 is to be selected, a data line SDATA through which stored data transmitted and received between the CPU 1 and the EEPROM 27 pass. And a clock line SCLK for supplying a clock signal. The CPU 1 mainly includes the following means according to the present invention functionally (software). For example, rewriting means 1a for performing a predetermined rewriting process for rewriting the storage contents of the EEPROM 27 to new contents, setting means 1b for performing initial setting of the rewriting processing of the EEPROM 27, and whether or not desired setting has been performed by the setting means 1b. Setting determining means 1 for determining whether
c, if the setting determining means 1c determines that the desired setting has not been made, the EEPROM
It can be seen that prohibiting means 1d for prohibiting the writing process to 27 are provided, and are appropriately controlled based on the transmission and reception of the predetermined signal described above (details will be described later).

【0021】つづいて、本発明に係わるマイコンの暴走
検知機能を有する制御について、関連するプログラムを
例にソフト的に詳しく説明する。CPU1には上記暴走
検知機能を有するプログラムが常駐されている。このプ
ログラムは、主にこのCPU1に従属するEEPROM
27への「書込み処理」と「読出し処理」に関する制御
を行うときに、CPU1の暴走の発生を所定のアルゴリ
ズムで判断することで暴走を検知し、暴走した後にはそ
の暴走に対処する適切な後処理を行うように構成されて
いる。
Next, the control of the microcomputer having the function of detecting runaway of the microcomputer according to the present invention will be described in detail in terms of software using related programs as an example. A program having the above-mentioned runaway detection function is resident in the CPU 1. This program is mainly composed of an EEPROM subordinate to the CPU 1.
When performing control relating to "write processing" and "read processing" to the CPU 27, runaway is detected by determining occurrence of runaway of the CPU 1 by a predetermined algorithm, and after runaway, an appropriate It is configured to perform processing.

【0022】まず図4に、上記「書込み処理」ルーチン
の手順をフローチャートで示す。なお、2つのエントリ
のうち、「調整時書込み処理」(S200)は、製造工
程の終わりや修理時に個々のカメラの調整を行う時にの
みに起動されるルーチンであり、書き込み中を示すフラ
グを1(ON)にして、後述するステップS104に移
行する。
FIG. 4 is a flowchart showing the procedure of the above-mentioned "writing process" routine. Of the two entries, the “writing process during adjustment” (S200) is a routine that is started only when adjusting individual cameras at the end of the manufacturing process or at the time of repair. (ON), and the process proceeds to step S104 described later.

【0023】もう1つのエントリの「書込み処理」(S
100)は、通常運用中に稼動できるプログラムであ
り、最初に、後述する暴走判断のための「初期設定」を
行う(S102)。ステップS104では、所定メモリ
への書込みの準備を行う(S104)。
Another entry "write processing" (S
100) is a program that can be operated during normal operation. First, "initial setting" for runaway determination described later is performed (S102). In step S104, preparation for writing to a predetermined memory is performed (S104).

【0024】ステップS106では、所定メモリへの書
込み許可命令を送信する(S106)。サブルーチン
「暴走判断」をコールして(S108)、もしS110
で暴走フラグが1であればステップS300に移行して
所定の「暴走処理」を実行し暴走後の後処理を行う。一
方、正常であれば、所定メモリのアドレス送信を行う
(S112)。
In step S106, a command to permit writing to a predetermined memory is transmitted (S106). The subroutine "runaway judgment" is called (S108), and if S110
If the runaway flag is 1, the process proceeds to step S300, where a predetermined "runaway process" is executed, and post-processes after the runaway are performed. On the other hand, if it is normal, the address of the predetermined memory is transmitted (S112).

【0025】ここでまた、サブルーチン「暴走判断」を
コールし(S114)、暴走の有無チェックし(S11
6)、もし暴走フラグが1であればステップS300に
移行して所定の「暴走処理」を行う。一方、正常であれ
ば、データ送信を行う(S118)。
Here, the subroutine "runaway determination" is called (S114), and the presence or absence of runaway is checked (S11).
6) If the runaway flag is 1, the flow shifts to step S300 to perform a predetermined "runaway process". On the other hand, if normal, data transmission is performed (S118).

【0026】再び、サブルーチン「暴走判断」をコール
して(S120)、暴走の有無チェックし(S12
2)、もし暴走フラグが1であればステップS300に
移行して所定の「暴走処理」を行う。一方、正常であれ
ば、書き込みされたことを確認し(S124)、書き込
みを禁止する命令を所定メモリに送信する(S12
6)。
The subroutine "runaway determination" is called again (S120), and the presence or absence of runaway is checked (S12).
2) If the runaway flag is 1, the process shifts to step S300 to perform a predetermined “runaway process”. On the other hand, if it is normal, it is confirmed that the data has been written (S124), and a command to inhibit the writing is transmitted to the predetermined memory (S12).
6).

【0027】書き込みがすべて終了したか否かを判定し
(S128)、まだであれば前述したステップS106
に戻って同様の処理ステップを繰り返す。一方、書込み
がすべて終了した場合には、一連のこの「書込み処理」
ルーチンを終了する(S130)。
It is determined whether or not all the writing has been completed (S128).
And the same processing steps are repeated. On the other hand, if all writing is completed, a series of "writing process"
The routine ends (S130).

【0028】同様に図5には、前述の「読出し処理」ル
ーチンの手順をフローチャートで示している。なお、こ
の「読出し処理」(S400)は、専用のエントリであ
る。ステップS402では、まず8ビットの上位データ
を読み出す(S402)。
Similarly, FIG. 5 is a flowchart showing the procedure of the above-mentioned "read process" routine. This “read process” (S400) is a dedicated entry. In step S402, first, upper data of 8 bits is read (S402).

【0029】サブルーチン「暴走判断」をコールし(S
404)、暴走の有無チェックし(S406)、もし暴
走フラグが1であればステップS300に移行して所定
の「暴走処理」を行う。一方、正常であれば、内容照合
のためのベリファイがOKであるか否かを判定し(S4
08)、もし、当該メモリに損傷を得たならばステップ
S500に移行して所定の「ダメージ処理」を行って修
復する。
The subroutine "runaway judgment" is called (S
404), it is checked whether or not there is a runaway (S406). If the runaway flag is 1, the flow shifts to step S300 to perform a predetermined "runaway process". On the other hand, if it is normal, it is determined whether or not the verification for content collation is OK (S4).
08) If the memory is damaged, the process proceeds to step S500 to perform a predetermined "damage process" to repair the memory.

【0030】残りの8ビットの下位データを読み出す
(S410)。ここで再び、サブルーチン「暴走判断」
をコールし(S412)、暴走の有無チェックし(S4
14)、もし暴走フラグが1であればステップS300
に移行して所定の「暴走処理」を行う。一方、正常であ
れば、ベリファイ処理がOKであるかを判定し(S41
6)、もし、メモリに損傷を得たならばステップS50
0に移行して損傷を補償する所定の「ダメージ処理」を
行う。
The remaining 8-bit lower data is read (S410). Here again, the subroutine "runaway judgment"
(S412) and checks for runaway (S4
14) If the runaway flag is 1, step S300
Then, a predetermined "runaway process" is performed. On the other hand, if it is normal, it is determined whether the verification process is OK (S41).
6) If the memory is damaged, step S50
The process proceeds to 0, and a predetermined “damage process” for compensating for damage is performed.

【0031】そのベリファイ処理がすべで終了したかを
判定し(S418)、まだであれば前述のステップS4
02に戻って同様に処理ステップを実行する。一方、ベ
リファイ処理が正常に終了した場合は、所定の終了処理
を行った後(S420)、一連の読出し処理ルーチンを
終了する(S422)。
It is determined whether the verification process has been completed (S418).
Returning to step 02, the processing steps are similarly executed. On the other hand, if the verification processing has been completed normally, a predetermined end processing is performed (S420), and then a series of read processing routines is ended (S422).

【0032】図6には、サブルーチンとしての「初期設
定」の処理手順をフローチャートで示す。この「初期設
定」(S30)では、まず、CPU動作条件として、E
EPROMへの書込み中のフラグをセットする(S3
1)。次に、CPU送信データの条件として、RAMの
バンクを0〜3にセットする(S32)と共に、RAM
のアドレスをセットする(S33)。
FIG. 6 is a flowchart showing the processing procedure of "initial setting" as a subroutine. In this “initial setting” (S30), first, E
The flag during writing to the EPROM is set (S3
1). Next, as a condition of the CPU transmission data, the bank of the RAM is set to 0 to 3 (S32), and the RAM is set.
Is set (S33).

【0033】また、EEPROMの書込み側の条件とし
て、EEPROMのアドレスをセットし(S34)、書
込みワード数をセットすると共に(S35)、書込み認
識コードを0にセットする(S36)。ここで、暴走モ
ニタ用のタイマをセットする(S37)。そして、コー
ルされたステップの次にリターンする(S38)。
As conditions on the writing side of the EEPROM, the address of the EEPROM is set (S34), the number of words to be written is set (S35), and the write recognition code is set to 0 (S36). Here, the timer for runaway monitoring is set (S37). Then, the process returns after the called step (S38).

【0034】図7には、サブルーチンとしての「暴走判
断」の処理手順をフローチャートで示す。まず、EEP
ROMが書込み中であるか否かをチェックし(S5
1)、もし否であればステップS57に移行する。書込
み認識コードが0であるか否かをチェックし(S5
2)、もし否であればステップS57に移行する。
FIG. 7 is a flowchart showing a processing procedure of “runaway judgment” as a subroutine. First, EEP
It is checked whether the ROM is being written (S5).
1) If not, the process proceeds to step S57. It is checked whether the write recognition code is 0 (S5).
2) If not, shift to step S57.

【0035】指定されたCPU側のRAMのバンクの領
域が、特に書き換えられてはいけない領域であるバンク
0〜3であるか否かをチェックし(S53)、もし否で
あればステップS57に移行する。指定されたEEPR
OMアドレスが正しいか否かをチェックし(S54)、
もし否であればステップS57に移行する。指定された
ワード数が正しいか否かをチェックし(S55)、もし
否であればステップS57に移行する。
It is checked whether or not the designated area of the bank of the RAM on the CPU side is banks 0 to 3 which are areas which should not be rewritten in particular (S53), and if not, the flow proceeds to step S57. I do. The specified EEPR
Check whether the OM address is correct (S54),
If not, the process moves to step S57. It is checked whether the specified number of words is correct (S55). If not, the process proceeds to step S57.

【0036】暴走フラグを0にセットする(S56)。
ステップS57においては、暴走フラグを1にセットす
る(S57)。そして、コールされたステップの次にリ
ターンする(S58)。
The runaway flag is set to 0 (S56).
In step S57, the runaway flag is set to 1 (S57). Then, the process returns after the called step (S58).

【0037】(作用効果)このように、本発明に係わる
暴走発生の判定基準は、EEPROMが書込み中であ
り、書込み認識コードが0であり、CPU側のRAMの
領域がバンク0〜3であり、EEPROMの指定アドレ
スが正しく、且つその書込みワード数が正しい場合にの
み暴走が無い正常な状態であると判断している。よっ
て、この暴走判断により、暴走発生を知らずに書き換え
動作が行われる事が防止され、正常な状態においてのみ
RAM側の正しい所定データ(プログラムでも可)がE
EPROM側の所定アドレスに正しく書き込まれるの
で、その内容を正しく書き換える事ができる。
(Effects) As described above, the criteria for determining the occurrence of runaway according to the present invention are that the EEPROM is being written, the write recognition code is 0, and the RAM area on the CPU side is banks 0-3. , Is determined to be normal without runaway only when the designated address of the EEPROM is correct and the number of write words is correct. Therefore, this reckless run determination prevents the rewrite operation from being performed without knowing that the reckless run has occurred, and correct predetermined data (program is also acceptable) on the RAM side only in a normal state.
Since the data is correctly written at a predetermined address on the EPROM side, the contents can be correctly rewritten.

【0038】(その他の変形例)このほかにも、例えば
暴走発生の判定基準は、不揮発性メモリの書換えに要し
た時間を、処理時間計測手段としてのタイマによって計
り、その所要時間がある時間範囲内に終了する場合にの
み、正常と判断するという判定基準にしてもよい。ま
た、暴走発生についての判断をするタイミングは、書込
み処理前又はその最中、書込み許可後、EEPROMア
ドレス設定後、書込みデータの送信後、または、ベリフ
ァイ処理前、或いはその処理の最中でもよい。その他、
本発明の要旨の範囲内であれば種々の変形実施が可能で
ある。
(Other Modifications) In addition, for example, a criterion for determining the occurrence of runaway is that the time required for rewriting the nonvolatile memory is measured by a timer as processing time measuring means, and the required time is within a certain time range. The criterion may be such that it is determined to be normal only when the processing ends within the period. The timing for determining the occurrence of runaway may be before or during the write process, after write permission, after setting the EEPROM address, after transmitting the write data, before the verify process, or during the process. Others
Various modifications can be made within the scope of the present invention.

【0039】以上、実施形態例に基づいて説明してきた
が、本明細書中には以下のような発明が含まれる。すな
わち、 (1) 記憶内容の書き換えが可能な不揮発性メモリを
書き換えるメモリ書換え装置において、上記不揮発性メ
モリの記憶内容を新しい内容に書き換える書換え手段
と、上記不揮発性メモリの書換え処理の初期設定を行う
設定手段と、上記設定手段によって所望の設定が行われ
たか否かを判定する設定判定手段と、上記設定判定手段
によって上記所望の設定が行われていないと判定された
場合は、上記不揮発性メモリに対する書込み処理を禁止
する禁止手段と、を具備することを特徴とする不揮発性
メモリの書換え装置。
Although the embodiments have been described above, the present invention includes the following inventions. That is, (1) a memory rewriting device for rewriting a non-volatile memory capable of rewriting storage contents, rewriting means for rewriting the storage contents of the non-volatile memory to new contents, and initial setting of rewriting processing of the non-volatile memory. Setting means, setting determining means for determining whether or not a desired setting has been performed by the setting means; and non-volatile memory when the setting determining means has determined that the desired setting has not been performed. And a prohibition unit for prohibiting a write process to the non-volatile memory.

【0040】(2) 上記設定手段は、書込み処理に入
った直後に、データを不揮発性メモリのどのアドレスに
書き込むかを予め設定し、上記設定判定手段によって上
記アドレスが所望のアドレスでないと判定された場合
は、上記禁止手段によって上記不揮発性メモリに対する
書込み処理を禁止することを特徴とする(1)に記載の
不揮発性メモリの書換え装置。 (3) 上記設定手段は、書込み処理に入った直後に、
不揮発性メモリに書込むワード数を設定し、上記設定判
定手段によって上記ワード数が所望の長さでないと判定
された場合は、上記禁止手段によって上記不揮発性メモ
リに対する書込み処理を禁止することを特徴とする
(1)に記載の不揮発性メモリの書換え装置。
(2) Immediately after starting the writing process, the setting means previously sets at which address of the nonvolatile memory data is to be written, and the setting judging means judges that the address is not the desired address. The rewriting device for a nonvolatile memory according to (1), wherein when the writing is performed, the writing process to the nonvolatile memory is prohibited by the prohibiting unit. (3) Immediately after entering the writing process,
The number of words to be written to the non-volatile memory is set, and when the setting determining means determines that the number of words is not the desired length, the prohibiting means prohibits the writing process to the non-volatile memory. The rewriting device for a nonvolatile memory according to (1).

【0041】(4) 上記設定手段は、書込み処理に入
った直後に、所定の処理時間計測手段(タイマ)を設定
し、上記設定判定手段によって判定したときに示すタイ
マ時間が所望時間でないと判定された場合は、上記禁止
手段によって上記不揮発性メモリに対する書込み処理を
禁止することを特徴とする(1)に記載の不揮発性メモ
リの書換え装置。
(4) The setting means sets a predetermined processing time measuring means (timer) immediately after entering the writing processing, and determines that the timer time indicated by the setting determining means is not the desired time. The rewriting device for a nonvolatile memory according to (1), wherein when the writing is performed, the writing process to the nonvolatile memory is prohibited by the prohibiting unit.

【0042】(5) 上記書換え手段、上記設定手段、
上記設定判定手段および上記禁止手段は、CPUが具備
していることを特徴とする(1)に記載の不揮発性メモ
リの書換え装置。 (6) 上記不揮発性メモリは、制御手段であるCPU
からみた外部記憶手段としてのEEPROMであり、上
記CPUの主記憶領域は内部記憶手段としての揮発性メ
モリから成り、上記処理時間計測手段(タイマ)および
そのタイマ値を判定する判定手段は、上記CPUがソフ
ト的に具備していることを特徴とする(4)に記載の不
揮発性メモリの書換え装置。
(5) The rewriting means, the setting means,
The non-volatile memory rewriting device according to (1), wherein the setting determining unit and the prohibiting unit are included in a CPU. (6) The non-volatile memory is a CPU serving as control means.
The main storage area of the CPU is composed of a volatile memory as an internal storage means, and the processing time measuring means (timer) and the judging means for judging the timer value are determined by the CPU. The rewriting device for a nonvolatile memory according to (4), wherein the rewriting device is provided as software.

【0043】(7) 記憶内容の書き換えが可能な不揮
発性メモリ(27)に接続して成るメモリ書換え装置は、こ
の不揮発性メモリの記憶内容を新しい内容に書き換える
所定の書換え処理を行う書換え手段(1a)と、上記不揮発
性メモリの書換え処理の初期設定を行う設定手段(1b)
と、この設定手段によって所望の設定が行われたか否か
を判定する設定判定手段(1c)と、この設定判定手段によ
って上記所望の設定が行われていないと判定された場合
は、その不揮発性メモリに対する書込み処理を禁止する
禁止手段(1d)と、を具備することを特徴とする。
(7) A memory rewriting device connected to a non-volatile memory (27) whose storage content can be rewritten is a rewriting means (performing a predetermined rewriting process for rewriting the storage content of the non-volatile memory to a new content) 1a) and setting means (1b) for initial setting of the rewriting process of the nonvolatile memory
And setting determining means (1c) for determining whether or not a desired setting has been performed by the setting means; and when the setting determining means determines that the desired setting has not been performed, the non-volatile memory Prohibiting means (1d) for prohibiting write processing to the memory.

【0044】(8) 記憶内容の書き換えが可能な不揮
発性メモリ(27)に接続して成るメモリ書換え装置は、こ
の不揮発性メモリの記憶内容を新しい内容に書き換える
所定の書換え処理を行う書換えステップ(S104 〜S106)
と、上記不揮発性メモリの書換え処理の初期設定を行う
設定ステップ(S102)と、この設定ステップによって所望
の設定が行われたか否かを判定する設定判定ステップ(S
108 〜S122) と、この設定判定ステップによって上記所
望の設定が行われていないと判定された場合は、その不
揮発性メモリに対する書込み処理を禁止する禁止ステッ
プ(S126)と、から成るプログラムを具備していることを
特徴とする。
(8) The memory rewriting device connected to the rewritable nonvolatile memory (27) has a rewriting step of performing a predetermined rewriting process for rewriting the storage content of the nonvolatile memory to new content ( (S104 to S106)
And a setting step (S102) of performing initial setting of the rewriting process of the nonvolatile memory, and a setting determining step (S102) of determining whether a desired setting has been performed by the setting step.
108 to S122) and a prohibition step (S126) for prohibiting the writing process to the non-volatile memory when it is determined that the desired setting has not been performed in the setting determination step. It is characterized by having.

【0045】また、本明細書中には以下のような発明も
含まれる。すなわち、 (a) 記憶の内容書き換えが可能な不揮発性メモリ
と、この不揮発性メモリの書換え処理の初期設定する設
定手段と、上記不揮発性メモリの記憶を新しい情報に書
き換える書換え手段と、上記設定手段によって設定が行
われたかどうかを判定する設定判定手段と、この設定判
定手段による判定が正しくない場合に書き込み処理を禁
止する禁止手段と、を備える不揮発性メモリの書換え装
置。 (b) 記憶の内容書き換えが可能な不揮発性メモリ
と、この不揮発性メモリの記憶を新しい情報に書き換え
る書換え手段と、上記不揮発性メモリが書換え処理中で
あることを記憶する記憶手段と、この記憶手段によるデ
ータが上記不揮発性メモリの書換え処理中であることを
示すかどうかを判定するメモリ判定手段と、このメモリ
判定手段による判定が正しくない場合に書込み処理を禁
止する禁止手段と、を備える不揮発性メモリの書換え装
置。
Further, the present invention includes the following inventions. (A) a nonvolatile memory whose contents can be rewritten; setting means for initially setting rewriting processing of the nonvolatile memory; rewriting means for rewriting the storage of the nonvolatile memory with new information; A non-volatile memory rewriting device, comprising: a setting judging unit for judging whether or not setting has been performed by the setting unit; (B) Non-volatile memory capable of rewriting the contents of storage, rewriting means for rewriting the storage of the non-volatile memory with new information, storage means for storing that the non-volatile memory is in the process of rewriting, and this storage A non-volatile memory including: a memory determining unit that determines whether data by the unit indicates that the nonvolatile memory is being rewritten; and a prohibiting unit that prohibits the writing process when the determination by the memory determining unit is incorrect. Memory rewriting device.

【0046】(c) 記憶の内容書き換えが可能な不揮
発性メモリと、この不揮発性メモリの記憶を新しい情報
に書き換える書換え手段と、上記不揮発性メモリの書換
え処理時間を測定する処理時間計測手段と、この処理時
間計測手段による時間が第一の時間と第二の時間内であ
るかどうかを判定する判定手段と、この判定手段による
判定が正しくない場合に書込み処理を禁止する禁止手段
と、を備える不揮発性メモリの書換え装置。 (d) 記憶の内容書き換えが可能な不揮発性メモリ
と、この不揮発性メモリの記憶を新しい情報に書き換え
る書換え手段と、この書換え手段によって書換えを行う
までの時間及び書換えを行う時間を測定する処理時間計
測手段と、この処理時間計測手段による時間がそれぞれ
第一の時間と第二の時間及び第三の時間と第四の時間内
であるかどうかを判定する判定手段と、この判定手段に
よる判定が正しくない場合に書込み処理を禁止する禁止
手段と、を備える不揮発性メモリの書換え装置。
(C) Non-volatile memory capable of rewriting the contents of storage, rewriting means for rewriting the storage of the non-volatile memory with new information, processing time measuring means for measuring rewriting processing time of the non-volatile memory, A determination unit for determining whether the time by the processing time measurement unit is within the first time and the second time; and a prohibition unit for prohibiting the writing process when the determination by the determination unit is incorrect. Rewriting device for nonvolatile memory. (D) Non-volatile memory capable of rewriting the contents of storage, rewriting means for rewriting the storage of the non-volatile memory with new information, and processing time for measuring the time until rewriting by the rewriting means and the time for rewriting Measuring means, determining means for determining whether the time by the processing time measuring means is within the first time, the second time, and third time and the fourth time, respectively. A rewriting device for a non-volatile memory, comprising: a prohibition unit for prohibiting a writing process when the data is incorrect.

【0047】[0047]

【発明の効果】このように本発明によれば、カメラ等の
電子装置を制御するマイコンが正常な動作をしているか
否かの判断は、マイコンが所定の動作を行う際、その動
作実行の前に予め設定しておいた所定コードの変化に注
目して行うことで可能であり、書換え等の所望の動作実
行の際にその所定コードの内容を確認をしてから実際の
書換え動作を正しく行うことができる。したがって、そ
のマイコンの暴走を検知でき、そのマイコンが暴走した
ときにもその後の誤動作を起こり難くすることが可能で
あるようなマイコンの暴走検知機能を有したメモリの書
換え装置を提供する事が可能となる。
As described above, according to the present invention, it is determined whether or not the microcomputer that controls the electronic device such as the camera is operating normally when the microcomputer performs a predetermined operation. This is possible by paying attention to a change in a predetermined code that has been set in advance beforehand.When performing a desired operation such as rewriting, the contents of the predetermined code are checked, and then the actual rewriting operation is correctly performed. It can be carried out. Therefore, it is possible to provide a memory rewriting device having a microcomputer runaway detection function capable of detecting runaway of the microcomputer and making subsequent malfunction less likely to occur even if the microcomputer runs away. Becomes

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

【図1】図1は、本発明に係わるカメラの主として電気
的な構成を示すブロック図。
FIG. 1 is a block diagram mainly showing an electric configuration of a camera according to the present invention.

【図2】 CPUとEEPROMを示し、図2(a)
は、CPUの記憶領域を示す概念図。図2(b)は、E
EPROMの記憶領域を示す概念図。
FIG. 2A shows a CPU and an EEPROM, and FIG.
3 is a conceptual diagram showing a storage area of a CPU. FIG.
FIG. 3 is a conceptual diagram showing a storage area of an EPROM.

【図3】図3は、CPUとEEPROMの接続関係を示
す概略図。
FIG. 3 is a schematic diagram showing a connection relationship between a CPU and an EEPROM;

【図4】図4は、書込み処理の手順を示すフローチャー
ト。
FIG. 4 is a flowchart illustrating a procedure of a writing process;

【図5】図5は、読出し処理の手順を示すフローチャー
ト。
FIG. 5 is a flowchart illustrating a procedure of a reading process;

【図6】図6は、初期設定の処理手順を示すフローチャ
ート。
FIG. 6 is a flowchart illustrating an initial setting processing procedure;

【図7】図7は、暴走判断の処理手順を示すフローチャ
ート。
FIG. 7 is a flowchart illustrating a procedure of a runaway determination process;

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

1…CPU(装置制御手段)、 1a…書換え手段、 1b…設定手段、 1c…判定手段、 1d…禁止手段、 27…EEPROM(外部メモリ)、 100…カメラ(装置)。 S30…初期設定(サブルーチン)、 S50…暴走判断(サブルーチン)、 S100…書込み処理、 S200…調整時書込み処理、 S300…暴走処理、 S400…読出し処理、 S500…ダメージ処理。 DESCRIPTION OF SYMBOLS 1 ... CPU (device control means), 1a ... rewriting means, 1b ... setting means, 1c ... determination means, 1d ... prohibition means, 27 ... EEPROM (external memory), 100 ... camera (device). S30: Initial setting (subroutine), S50: Runaway determination (subroutine), S100: Write process, S200: Adjustment write process, S300: Runaway process, S400: Read process, S500: Damage process.

フロントページの続き (72)発明者 伊藤 順一 東京都渋谷区幡ヶ谷2丁目43番2号 オリ ンパス光学工業株式会社内 (72)発明者 石丸 寿明 東京都渋谷区幡ヶ谷2丁目43番2号 オリ ンパス光学工業株式会社内 Fターム(参考) 5B017 AA02 BA01 BB03 CA12 5B018 GA04 HA31 KA23 NA06 RA12Continued on the front page (72) Inventor Junichi Ito 2-43-2 Hatagaya, Shibuya-ku, Tokyo Inside Olympus Optical Industrial Co., Ltd. (72) Inventor Toshiaki Ishimaru 2-34-2 Hatagaya, Shibuya-ku, Tokyo Olympus Optical F term in Industrial Co., Ltd. (reference) 5B017 AA02 BA01 BB03 CA12 5B018 GA04 HA31 KA23 NA06 RA12

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 記憶内容の書き換えが可能な不揮発性メ
モリと、 上記不揮発性メモリの記憶内容を新しい内容に書き換え
る書換え処理を行う書換え手段と、 上記不揮発性メモリの書換え処理の初期設定を行う設定
手段と、 上記設定手段によって所望の設定が行われたか否かを判
定する設定判定手段と、 上記設定判定手段によって上記所望の設定が行われてい
ないと判定された場合は、上記不揮発性メモリに対する
書込み処理を禁止する禁止手段と、 を具備することを特徴とする不揮発性メモリの書換え装
置。
1. A nonvolatile memory capable of rewriting storage contents, rewriting means for performing rewriting processing for rewriting the storage contents of the nonvolatile memory to new contents, and a setting for performing initial setting of the rewriting processing of the nonvolatile memory. Means, setting determining means for determining whether or not a desired setting has been performed by the setting means; and if the setting determining means has determined that the desired setting has not been performed, the setting for the non-volatile memory is performed. A rewriting device for a nonvolatile memory, comprising: prohibition means for prohibiting a writing process.
【請求項2】 上記設定手段は、書換え処理に入った直
後に、書込み処理中であることを示す書込み処理フラグ
を設定し、 上記設定判定手段によって書込み処理中でないと判定さ
れた場合は、上記禁止手段によって上記不揮発性メモリ
に対する書込み処理を禁止することを特徴とする請求項
1に記載の不揮発性メモリの書換え装置。
2. The setting means sets a write processing flag indicating that the writing processing is being performed immediately after the rewriting processing is started, and when the setting determining means determines that the writing processing is not being performed, The rewriting device for a nonvolatile memory according to claim 1, wherein a writing process to the nonvolatile memory is prohibited by a prohibition unit.
【請求項3】 上記設定手段は、書込み処理に入った直
後に、上記不揮発性メモリに書き込むデータが在るアド
レスを設定し、 上記設定判定手段によって上記アドレスが所望のアドレ
スでないと判定された場合は、上記禁止手段によって上
記不揮発性メモリに対する書込み処理を禁止することを
特徴とする請求項1に記載の不揮発性メモリの書換え装
置。
3. The setting means sets an address at which data to be written to the nonvolatile memory exists immediately after the writing process is started, and when the setting determining means determines that the address is not a desired address. 2. The rewriting device according to claim 1, wherein the prohibiting means prohibits a writing process to the non-volatile memory by the prohibiting means.
JP10207837A 1998-07-23 1998-07-23 Rewriting device of nonvolatile memory Withdrawn JP2000040033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10207837A JP2000040033A (en) 1998-07-23 1998-07-23 Rewriting device of nonvolatile memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10207837A JP2000040033A (en) 1998-07-23 1998-07-23 Rewriting device of nonvolatile memory

Publications (1)

Publication Number Publication Date
JP2000040033A true JP2000040033A (en) 2000-02-08

Family

ID=16546353

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10207837A Withdrawn JP2000040033A (en) 1998-07-23 1998-07-23 Rewriting device of nonvolatile memory

Country Status (1)

Country Link
JP (1) JP2000040033A (en)

Similar Documents

Publication Publication Date Title
US5574926A (en) One-chip microcomputer system having function for substantially correcting contents of program
US7493455B2 (en) Memory writing device for an electronic device
EP1187143A2 (en) Electronic control unit including flash memory and method and apparatus for storing a control data group into flash memory
JPH08166877A (en) One-chip microcomputer that can execute correction program and microcomputer that can correct rom
US5828911A (en) One chip microcomputer built-in system
JP2000040033A (en) Rewriting device of nonvolatile memory
US5198850A (en) Camera having e2 prom
JP2821560B2 (en) Camera data storage
JP4409275B2 (en) Data rewrite device
EP0615187B1 (en) One-chip microcomputer system having function for substantially correcting contents of program
JP2005174233A (en) Data rewriting device
USRE39674E1 (en) Peripheral and camera system using the same, for rewriting programs stored in a camera
US6227728B1 (en) Optical apparatus
US20050034034A1 (en) Control device with rewriteable control data
JP4444530B2 (en) camera
JPH0793138A (en) One-chip microcomputer system
JP2669847B2 (en) camera
JPH11338783A (en) Microcomputer system and optical equipment provided with the system
US5659824A (en) Camera which stores and reads out photographic data
JP2506347B2 (en) E ↑ 2 ▼ PROM built-in camera
JPH066337Y2 (en) Flash off device for automatic flash cameras
JP2669850B2 (en) camera
JP3500470B2 (en) camera
JPH075555A (en) Camera
JP2002244931A (en) Equipment control device and equipment control method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20051004