JP3533005B2 - Programmable electronic device - Google Patents
Programmable electronic deviceInfo
- Publication number
- JP3533005B2 JP3533005B2 JP10047995A JP10047995A JP3533005B2 JP 3533005 B2 JP3533005 B2 JP 3533005B2 JP 10047995 A JP10047995 A JP 10047995A JP 10047995 A JP10047995 A JP 10047995A JP 3533005 B2 JP3533005 B2 JP 3533005B2
- Authority
- JP
- Japan
- Prior art keywords
- correction
- program
- resident data
- software
- correction program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 230000004048 modification Effects 0.000 claims description 67
- 238000012937 correction Methods 0.000 claims description 66
- 238000012986 modification Methods 0.000 claims description 54
- 230000008569 process Effects 0.000 description 118
- 238000000034 method Methods 0.000 description 117
- 238000007726 management method Methods 0.000 description 74
- 238000012545 processing Methods 0.000 description 67
- 238000004364 calculation method Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 12
- 238000005375 photometry Methods 0.000 description 12
- 230000008859 change Effects 0.000 description 10
- 230000035945 sensitivity Effects 0.000 description 10
- 238000001514 detection method Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 7
- 230000004397 blinking Effects 0.000 description 4
- 239000013256 coordination polymer Substances 0.000 description 3
- 241000593989 Scardinius erythrophthalmus Species 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 201000005111 ocular hyperemia Diseases 0.000 description 2
- 210000001747 pupil Anatomy 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- GGCZERPQGJTIQP-UHFFFAOYSA-N sodium;9,10-dioxoanthracene-2-sulfonic acid Chemical compound [Na+].C1=CC=C2C(=O)C3=CC(S(=O)(=O)O)=CC=C3C(=O)C2=C1 GGCZERPQGJTIQP-UHFFFAOYSA-N 0.000 description 1
- 238000004804 winding Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
- Exposure Control For Cameras (AREA)
- Calculators And Similar Devices (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、主にシングルチップマ
イコンのようなマイコンを有し、そのプログラムを変更
し得るプログラム変更可能な電子装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable electronic device having a microcomputer such as a single-chip microcomputer and capable of changing its program.
【0002】[0002]
【従来の技術】カメラ等、シングルチップマイコンを有
する電子装置が知られている。このような電子装置のプ
ログラム(ソフトウエア)は、通常、シングルチップマ
イコンのROMに書き込まれている。このため、プログ
ラムを書き換えることはできないので、バグ等によりプ
ログラムの変更が必要となった場合には、再度、プログ
ラムを変更したシングルチップマイコンの開発を行わな
ければならず、そのための労力、時間およびコストがか
かるという問題がある。2. Description of the Related Art Electronic devices having a single-chip microcomputer such as a camera are known. The program (software) of such an electronic device is usually written in the ROM of the single-chip microcomputer. For this reason, the program cannot be rewritten. Therefore, if the program needs to be changed due to a bug or the like, it is necessary to re-develop a single-chip microcomputer with the changed program. There is a problem of cost.
【0003】[0003]
【発明が解決しようとする課題】本発明の目的は、マイ
コンを有し、容易に、そのプログラム(ソフトウエア)
を変更し得るプログラム変更可能な電子装置を提供する
ことにある。また、他の目的は、マイコンの書き換え可
能なメモリー(RAM)の利用効率を向上させることが
できるプログラム変更可能な電子装置を提供することに
ある。SUMMARY OF THE INVENTION An object of the present invention is to have a microcomputer and to easily execute its program (software).
It is to provide an electronic device whose program can be changed. Another object of the present invention is to provide a program changeable electronic device capable of improving the utilization efficiency of a rewritable memory (RAM) of a microcomputer.
【0004】[0004]
【課題を解決するための手段】このような目的は、下記
(1)〜(6)の本発明により達成される。The above objects are achieved by the present invention described in (1) to (6) below.
【0005】(1) 電子装置の制御動作プログラムが
記録された第1の不揮発性メモリーと、前記制御動作プ
ログラムを変更する修正プログラムおよび該修正プログ
ラムに関する修正情報が、常駐データと非常駐データと
に分別して記録された第2の不揮発性メモリーと、書き
換え可能な第3のメモリーと、少なくとも、前記第2の
不揮発性メモリーから前記常駐データおよび前記非常駐
データを読み出す読出手段と、少なくとも、前記常駐デ
ータおよび前記非常駐データを前記第3のメモリーに書
き込む書込手段と、前記修正プログラムが常駐データま
たは非常駐データのいずれであるかを判別する判別手段
と、少なくとも、前記制御動作プログラムおよび前記修
正プログラムを実行する実行手段とを有し、前記実行手
段により、前記制御動作プログラム内の所定の位置で、
前記修正プログラムを実行して、該制御動作プログラム
を変更可能な電子装置であって、予め、前記読出手段に
より、前記第2の不揮発性メモリーから前記常駐データ
を読み出し、前記書き込み手段により、該常駐データを
前記第3のメモリーに書き込み、前記修正プログラムの
実行に際し、前記判別手段により、該修正プログラムが
常駐データまたは非常駐データのいずれであるかを判別
し、前記修正プログラムが常駐データであると判別した
場合には、前記実行手段により、当該修正プログラムを
直ちに実行し、前記修正プログラムが非常駐データであ
ると判別した場合には、前記読出手段により、前記第2
の不揮発性メモリーから当該修正プログラムを読み出
し、前記書込手段により、該修正プログラムを前記第3
のメモリーの前記常駐データが記録されている領域に書
き込み、この後、前記実行手段により、その修正プログ
ラムを実行することを特徴とするプログラム変更可能な
電子装置。(1) A first non-volatile memory in which a control operation program of an electronic device is recorded, a correction program for changing the control operation program and correction information about the correction program are divided into resident data and non-resident data. A second non-volatile memory separately recorded, a rewritable third memory, at least a reading means for reading the resident data and the non-resident data from the second non-volatile memory, and at least the resident data and Writing means for writing the non-resident data in the third memory; discriminating means for discriminating whether the correction program is resident data or non-resident data; and executing at least the control operation program and the correction program. And executing the control by the executing means. At a predetermined position in the motion program,
An electronic device capable of changing the control operation program by executing the correction program, wherein the resident data is read in advance from the second non-volatile memory by the reading means, and the resident data is written by the writing means. When writing the data to the third memory and executing the correction program, the determination means determines whether the correction program is resident data or non-resident data, and determines that the correction program is resident data. In this case, the executing means immediately executes the correction program, and when it is determined that the correction program is the nonresident data, the reading means causes the second program to be executed.
Read the correction program from the non-volatile memory, and write the correction program to the third program by the writing means.
An electronic device capable of changing a program, characterized in that the resident data is written in an area of the memory in which the resident data is recorded, and then the correction program is executed by the executing means.
【0006】(2) 電子装置の制御動作プログラムお
よび少なくとも1つの修正管理処理プログラムが記録さ
れた第1の不揮発性メモリーと、前記制御動作プログラ
ムを変更する修正プログラムおよび該修正プログラムに
関する修正情報が、常駐データと非常駐データとに分別
して記録された第2の不揮発性メモリーと、書き換え可
能な第3のメモリーと、少なくとも、前記第2の不揮発
性メモリーから前記常駐データおよび前記非常駐データ
を読み出す読出手段と、少なくとも、前記常駐データお
よび前記非常駐データを前記第3のメモリーに書き込む
書込手段と、前記修正情報と、前記制御動作プログラム
内の実行位置を示すアドレス情報とに基づいて、対応す
る修正プログラムがあるか否かを判別する第1の判別手
段と、前記修正プログラムが常駐データまたは非常駐デ
ータのいずれであるかを判別する第2の判別手段と、少
なくとも、前記制御動作プログラムおよび前記修正プロ
グラムを実行する実行手段とを有する前記制御動作プロ
グラムを変更可能な電子装置であって、前記第1の不揮
発性メモリーに記録された前記制御動作プログラム内の
少なくとも1つの所定の位置に、前記修正管理処理プロ
グラムを呼び出すコール手段が設けられており、予め、
前記読出手段により、前記第2の不揮発性メモリーから
前記常駐データを読み出し、前記書き込み手段により、
該常駐データを前記第3のメモリーに書き込み、前記コ
ール手段により前記修正管理処理プログラムが呼び出さ
れると、前記第1の判別手段により、前記修正情報と前
記アドレス情報とに基づいて、対応する修正プログラム
があるか否かを判別し、対応する修正プログラムがある
と判別した場合には、前記第2の判別手段により、その
対応する修正プログラムが常駐データまたは非常駐デー
タのいずれであるかを判別し、対応する修正プログラム
が常駐データであると判別した場合には、前記実行手段
により、当該修正プログラムを直ちに実行し、対応する
修正プログラムが非常駐データであると判別した場合に
は、前記読出手段により、前記第2の不揮発性メモリー
から当該修正プログラムを読み出し、前記書込手段によ
り、該修正プログラムを前記第3のメモリーの前記常駐
データが記録されている領域に書き込み、この後、前記
実行手段により、その修正プログラムを実行することを
特徴とするプログラム変更可能な電子装置。(2) A first non-volatile memory in which a control operation program of an electronic device and at least one correction management processing program are recorded, a correction program for changing the control operation program, and correction information about the correction program, A second non-volatile memory separately recorded into resident data and non-resident data, a rewritable third memory, and at least a reading means for reading the resident data and the non-resident data from the second non-volatile memory. And a correction program corresponding to at least the writing means for writing the resident data and the non-resident data in the third memory, the correction information, and address information indicating an execution position in the control operation program. A first determining means for determining whether or not the correction program is present. An electronic device capable of changing the control operation program, including second determination means for determining whether the gram is resident data or non-resident data, and at least execution means for executing the control operation program and the correction program. And, at least one predetermined position in the control operation program recorded in the first non-volatile memory, a call means for calling the correction management processing program is provided, in advance,
The reading means reads the resident data from the second non-volatile memory, and the writing means
When the resident data is written in the third memory and the correction management processing program is called by the calling means, the first determination means causes a corresponding correction program to be performed based on the correction information and the address information. If it is determined that there is a corresponding correction program, the second determining means determines whether the corresponding correction program is resident data or nonresident data, When it is determined that the corresponding correction program is resident data, the execution unit immediately executes the correction program, and when it is determined that the corresponding correction program is nonresident data, the reading unit The correction program is read from the second nonvolatile memory, and the correction program is read by the writing unit. Write beam to a region where the resident data of the third memory is recorded, thereafter, by the execution means, reprogrammable electronic apparatus characterized by executing the patch.
【0007】(3) 前記修正情報は、前記修正プログ
ラムを追加する位置に関する修正プログラム追加位置情
報を有し、前記第1の判別手段は、前記修正プログラム
追加位置情報と前記アドレス情報とのアドレスが互いに
一致する場合には、対応する修正プログラムがあると判
別する上記(2)に記載のプログラム変更可能な電子装
置。(3) The correction information has correction program addition position information relating to a position where the correction program is added, and the first determining means determines that the address of the correction program addition position information and the address information is The program changeable electronic device according to the above (2), which determines that there is a corresponding correction program when they match each other.
【0008】(4) 前記実行手段が非常駐データの修
正プログラムを実行した後は、前記読出手段により、前
記第2の不揮発性メモリーから前記常駐データを読み出
し、前記書込手段により、前記第3のメモリーから該修
正プログラムを消去して、該常駐データを再び前記第3
のメモリーに書き込む上記(1)ないし(3)のいずれ
かに記載のプログラム変更可能な電子装置。(4) After the execution means executes the non-resident data correction program, the reading means reads the resident data from the second non-volatile memory, and the writing means causes the third resident data to be read. The correction program is deleted from the memory, and the resident data is restored to the third data.
The program changeable electronic device according to any one of (1) to (3), which is written in the memory.
【0009】(5) 実行開始までの時間が比較的長く
ても支障がない修正プログラムを前記非常駐データとす
る上記(1)ないし(4)のいずれかに記載のプログラ
ム変更可能な電子装置。(5) The program changeable electronic device according to any one of the above (1) to (4), wherein the non-resident data is a correction program that causes no trouble even if the time until the execution starts is relatively long.
【0010】(6) 前記第2の不揮発性メモリーは、
書き換え可能なメモリーである上記(1)ないし(5)
のいずれかに記載のプログラム変更可能な電子装置。(6) The second non-volatile memory is
Rewritable memory (1) to (5) above
2. A programmable electronic device according to any one of 1.
【0011】[0011]
【実施例】以下、本発明のプログラム変更可能な電子装
置を添付図面に示す好適実施例に基づいて詳細に説明す
る。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A programmable programmable electronic device of the present invention will now be described in detail with reference to the preferred embodiments shown in the accompanying drawings.
【0012】図1は、本発明のプログラム変更可能な電
子装置をカメラに適用した実施例における回路構成例を
示すブロック図である。同図に示すように、カメラ1
は、被写体像をフィルム(銀塩写真フィルム)に結像さ
せる図示しない撮影光学系と、図示しないファインダ光
学系と、制御手段であるシングルチップマイコン(CP
U)7とを有している。FIG. 1 is a block diagram showing a circuit configuration example in an embodiment in which a programmable electronic device of the present invention is applied to a camera. As shown in FIG.
Is a photographing optical system (not shown) for forming a subject image on a film (silver salt photographic film), a viewfinder optical system (not shown), and a single-chip microcomputer (CP) as a control means.
U) 7.
【0013】CPU7は、第1の不揮発性メモリーであ
るROM(書き換え不能なメモリー)と、書き換え可能
な第3のメモリーであるRAMと、読出手段と、書込手
段と、対応する修正プログラムがあるか否かを判別する
判別手段(第1の判別手段)と、修正プログラムが常駐
データまたは非常駐データのいずれであるかを判別する
判別手段(第2の判別手段)と、プログラムを実行する
実行手段とを有しており(いずれも図示せず)、シーケ
ンス制御、測光演算(露出演算)、自動露出や自動焦点
合わせの実行等、カメラ1における諸機能の制御を行
う。The CPU 7 has a ROM (non-rewritable memory) which is a first non-volatile memory, a RAM which is a rewritable third memory, a reading means, a writing means, and a corresponding correction program. Discriminating means (first discriminating means), discriminating means (second discriminating means) for discriminating whether the correction program is resident data or non-resident data, and executing means for executing the program. (Not shown), and controls various functions in the camera 1, such as sequence control, photometric calculation (exposure calculation), execution of automatic exposure and automatic focusing, and the like.
【0014】本実施例のカメラ1は、CPU7の制御動
作を変更(修正)、すなわち、CPU7のROMに記録
されているカメラ1の制御動作プログラム(ソフトウエ
ア)を変更し得る機能を有している。以下、「プログラ
ム」を単に「ソフト」という。The camera 1 of this embodiment has a function of changing (correcting) the control operation of the CPU 7, that is, changing the control operation program (software) of the camera 1 recorded in the ROM of the CPU 7. There is. Hereinafter, the “program” is simply referred to as “software”.
【0015】まず、カメラ1のソフトの変更について、
その概要を説明する。ソフトの設計時に、そのソフトの
任意の箇所(例えば、ソフト設計者が将来ソフトを修正
する可能性が大きいと思う箇所)に、修正ソフトの実行
判断、コピーおよび実行等を行う修正管理処理(修正管
理1処理や修正管理2処理)の呼び出し命令(サブルー
チンコール)ステップ、すなわち、修正管理処理ソフト
を呼び出すコール手段を設けておくとともに、前記修正
管理処理のソフトをCPU7のROMに記録しておく。
なお、この呼び出し命令ステップは、修正が加わる前の
ソフト(以下、単に「元ソフト」という)の処理ステッ
プ中に割り込んで修正ソフトを実行させるための指標と
して働く。First, regarding the change of the software of the camera 1,
The outline will be described. A modification management process (decision, execution, copy, etc.) of the modified software is performed at an arbitrary part of the software (for example, a part where the software designer is likely to modify the software in the future) when designing the software. A call command (subroutine call) step of the management 1 process and the modification management 2 process, that is, a call means for calling the modification management process software is provided, and the modification management process software is recorded in the ROM of the CPU 7.
The call instruction step serves as an index for executing the correction software by interrupting the processing step of the software (hereinafter, simply referred to as "source software") before the correction is added.
【0016】そして、ソフトを部分的に変更する場合に
は、そのソフトの所定の箇所に追加する修正ソフトを作
成し、修正ソフトおよびその修正ソフトに関する修正情
報(追加位置情報、格納位置情報、コピー情報)を後述
するデータ記憶・読み出し素子(EEPROM)8に書
き込む。In the case of partially changing the software, a correction software to be added to a predetermined portion of the software is created, and the correction software and correction information (additional position information, storage position information, copy) about the correction software are created. (Information) is written in a data storage / readout element (EEPROM) 8 described later.
【0017】CPU7は、リセットスタート時に、予
め、修正ソフトの実行に必要な修正ソフトや修正情報等
(常駐データ)をEEPROM8から読み出し、CPU
7のRAMに書き込んでおく。At the time of reset start, the CPU 7 reads in advance from the EEPROM 8 the correction software necessary for executing the correction software, the correction information, etc. (resident data), and the CPU
It writes in RAM of 7.
【0018】元ソフト実行の際に修正管理処理が呼び出
されると、戻り番地(戻り先アドレス)に関する情報
(アドレス情報)をスタックから取得し、このアドレス
情報と、修正情報のうちの修正ソフト追加位置情報とに
基づいて、どの修正ソフトを実行するのか(いずれの修
正ソフトも実行しないのか)を判別する。すなわち、ア
ドレス情報と修正ソフト追加位置情報との番地が一致す
るか否かにより、前記コール手段で実行すべき修正ソフ
トがあるか否かを判別し、対応する修正ソフトがあると
判別した場合には、その対応する修正ソフトを実行し、
対応する修正ソフトがないと判別した場合には、いずれ
の修正ソフトも実行せずにリターンする。When the modification management process is called during the execution of the original software, the information (address information) regarding the return address (return destination address) is obtained from the stack, and this address information and the modification software addition position of the modification information are acquired. Based on the information, which correction software is executed (whether any correction software is not executed) is determined. That is, it is determined whether or not there is correction software to be executed by the calling means depending on whether or not the addresses of the address information and the correction software addition position information match, and when it is determined that there is corresponding correction software. Runs its corresponding fixer,
If it is determined that there is no corresponding correction software, the process returns without executing any correction software.
【0019】また、修正ソフトに戻り番地を変更する機
能を持たせる。すなわち、修正ソフトにおいて戻り番地
を指定し得るようにし、これにより修正管理処理等から
のリターン時の戻り番地を変更可能とする。Further, the correction software has a function of changing the return address. That is, the return address can be designated in the correction software, and thereby the return address at the time of return from the correction management process or the like can be changed.
【0020】また、ソフト実行時間が比較的遅くても支
障のない修正ソフト(ソフト実行開始までの時間が比較
的長くても支障のない修正ソフト)を非常駐データと
し、その修正ソフトを実行する際に、該修正ソフトをE
EPROM8から読み出し、CPU7のRAMに書き込
んで実行する。そして、前記修正ソフトの実行後は、そ
の修正ソフトを消去し、常駐データをEEPROM8か
ら読み出し、RAMに書き戻すようにする。When the correction software that causes no trouble even if the software execution time is relatively slow (correction software that causes no trouble even when the software execution time is relatively long) is used as nonresident data, and the correction software is executed To the correction software
It is read from the EPROM 8 and written in the RAM of the CPU 7 for execution. After the correction software is executed, the correction software is erased, and the resident data is read from the EEPROM 8 and written back in the RAM.
【0021】以下、カメラ1のソフトの変更について
は、代表的に、測光・演算処理のソフトの変更(実施例
1)、セルフウェイト処理のソフトの変更(実施例
2)、バッテリーチェック処理のソフトの変更(実施例
3)およびモード表示処理のソフトの変更(実施例4)
をそれぞれ説明する。Hereinafter, the software of the camera 1 will be changed, typically, the software of the photometry / calculation processing (first embodiment), the software of the self-wait processing (second embodiment), the software of the battery check processing. (Example 3) and software for mode display processing (Example 4)
Will be explained respectively.
【0022】図2は、CPU7のアドレス空間を示す模
式図である。同図に示すように、CPU7のアドレス
「0000H」〜「FFFFH」のうち、「0000
H」〜「00FFH」はI/Oに、「0100H」〜
「037FH」はRAMに、「8000H」〜「FFF
FH」はROMに、それぞれ割り当てられており、「0
380H」〜「7FFFH」は未使用となっている。FIG. 2 is a schematic diagram showing the address space of the CPU 7. As shown in the figure, of the addresses "0000H" to "FFFFH" of the CPU 7, "0000"
"H"-"00FFH" is for I / O, "0100H"-
“037FH” is stored in RAM and “8000H” to “FFF”
"FH" is assigned to each ROM and "0"
"380H" to "7FFFH" are unused.
【0023】また、前記RAMのアドレス「0100
H」〜「037FH」のうち、「0100H」〜「02
7FH」が変数領域、「0280H」〜「037FH」
がスタック領域となっている。Further, the RAM address "0100"
"0100H" to "02" of "H" to "037FH"
7FH "is the variable area, and" 0280H "to" 037FH ".
Is the stack area.
【0024】なお、前記スタック領域のアドレス「02
80H」〜「037FH」のうち、「0280H」〜
「02B7H」には、後述するリセット処理により、E
EPROM8から常駐データがコピーされる。この場
合、最大で、「0280H」〜「02B9H」を使用す
ることができるようになっている。また、「02BA
H」〜「037FH」は、本来のスタックとして使用さ
れる。すなわち、「02BAH」〜「037FH」に
は、ソフトの実行ステップの進行に対応して、次ステッ
プで必要とされるデータ、サブルーチン終了後の戻り番
地(戻り先アドレス)や一時退避すべき変数等が書き込
まれる。このように、本実施例においてソフト修正用と
して使用される領域は、本来スタックとして使用される
スタック領域の余りである。The address "02" of the stack area
Of “80H” to “037FH”, “0280H” to
“02B7H” is set to E by the reset process described later.
The resident data is copied from the EPROM 8. In this case, "0280H" to "02B9H" can be used at the maximum. In addition, "02BA
"H" to "037FH" are used as the original stack. That is, "02BAH" to "037FH" include data required in the next step, a return address (return destination address) after completion of the subroutine, a variable to be temporarily saved, etc. corresponding to the progress of the software execution step. Is written. As described above, the area used for soft correction in this embodiment is the remainder of the stack area originally used as a stack.
【0025】また、前記ROMには、後述するリセット
処理、修正管理1処理、修正管理2処理、測光・演算処
理、セルフウェイト処理、タイマスタート処理、バッテ
リーチェック処理、モード表示処理およびメイン処理等
の各実行ステップ毎のソフトがそれぞれ記録(格納)さ
れている。Further, the ROM includes reset processing, correction management 1 processing, correction management 2 processing, photometry / arithmetic processing, self-wait processing, timer start processing, battery check processing, mode display processing, main processing, etc., which will be described later. Software for each execution step is recorded (stored).
【0026】カメラ1のCPU7には、書き換え可能な
第2の不揮発性メモリーであるEEPROM8が接続さ
れている。このEEPROM8には、カメラ1のCPU
7のソフトを変更するための修正ソフトおよび修正情報
等が記録されている。An EEPROM 8 which is a second rewritable non-volatile memory is connected to the CPU 7 of the camera 1. The EEPROM 8 has a CPU of the camera 1.
The modification software and modification information for changing the software of No. 7 are recorded.
【0027】図3は、EEPROM8のマップを示す図
である。同図に示すように、EEPROM8のアドレス
「00H」〜「7FH」のうち、「00H」〜「1F
H」にはカメラ調整データが、「20H」には修正ソフ
ト数「06H」が、「21H」にはコピーバイト数「3
8H」が、それぞれ記録され、「22H」〜「2FH」
および「7AH」〜「7FH」は、それぞれ未使用とな
っている。FIG. 3 is a diagram showing a map of the EEPROM 8. As shown in the figure, among the addresses "00H" to "7FH" of the EEPROM 8, "00H" to "1F"
"H" is the camera adjustment data, "20H" is the correction software number "06H", and "21H" is the copy byte number "3".
8H ”is recorded, and“ 22H ”to“ 2FH ”are recorded.
And "7AH" to "7FH" are unused.
【0028】この場合、修正ソフト数「06H」は、修
正ソフトの数が「6」である旨を示す。また、コピーバ
イト数「38H」は、後述するリセット処理においてこ
のEEPROM8からCPU7のRAMにコピーするデ
ータのバイト数、すなわち常駐データのバイト数が「3
8H」である旨を示す。In this case, the correction software number “06H” indicates that the number of correction software is “6”. Further, the number of copied bytes “38H” is the number of bytes of data copied from the EEPROM 8 to the RAM of the CPU 7 in the reset processing described later, that is, the number of resident data is “3”.
8H ”.
【0029】また、EEPROM8のアドレス「30
H」〜「47H」には、修正情報が記録され、「48
H」〜「79H」には、修正ソフトが記録されている。
この場合、「30H」および「31H」には、修正ソフ
ト1の追加位置情報「B番地」(2バイト)が記録さ
れ、「32H」および「33H」には、修正ソフト1の
格納位置情報「02H」および「98H」が記録されて
いる。Further, the address "30" of the EEPROM 8
The correction information is recorded in "H" to "47H", and "48"
Correction software is recorded in "H" to "79H".
In this case, the additional position information “B address” (2 bytes) of the correction software 1 is recorded in “30H” and “31H”, and the storage position information “3B” of the correction software 1 is recorded in “32H” and “33H”. 02H "and" 98H "are recorded.
【0030】なお、前記修正ソフト1の追加位置情報
「B番地」は、修正ソフト1は、B番地に追加される旨
を示す。また、前記修正ソフト1の格納位置情報「02
H」および「98H」は、コピー後、修正ソフト1は、
CPU7のRAMのアドレス「0298H」から記録
(格納)されている旨と、修正ソフト1が常駐データで
ある旨とを示す。The additional position information "address B" of the correction software 1 indicates that the correction software 1 is added to the address B. In addition, the storage location information “02
After copying "H" and "98H", the correction software 1
It indicates that the data is recorded (stored) from the address “0298H” of the RAM of the CPU 7 and that the correction software 1 is resident data.
【0031】前記「常駐データ」とは、原則として、常
時、CPU7のRAMのアドレスに記録されているデー
タ(本実施例では、修正ソフト1〜5および修正ソフト
1〜6の修正情報)をいう。As a general rule, the "resident data" means data (correction software 1 to 5 and correction information of correction software 1 to 6 in this embodiment) which is always recorded in the RAM address of the CPU 7. .
【0032】また、前記「非常駐データ」とは、ソフト
の実行の際、EEPROM8から読み出され、CPU7
のRAMのアドレスに記録されるデータ(本実施例で
は、修正ソフト6)をいう。The "non-resident data" is read from the EEPROM 8 when the software is executed, and is read by the CPU 7
The data (correction software 6 in this embodiment) recorded at the address of the RAM.
【0033】なお、ソフトの実行の際、RAMの常駐デ
ータ記録領域に非常駐データがオーバーライト(記録)
されたときは、その間、当該常駐データは消去される。
そして、ソフトの実行後、前記非常駐データは消去さ
れ、再び、常駐データが記録される。When the software is executed, nonresident data is overwritten (recorded) in the resident data recording area of RAM.
If so, the resident data is erased during that time.
Then, after executing the software, the non-resident data is erased, and the resident data is recorded again.
【0034】以下、前記と同様に、「34H」および
「35H」には修正ソフト2の追加位置情報「C番地」
が、「36H」および「37H」には修正ソフト2の格
納位置情報「02H」および「9DH」が、「38H」
および「39H」には修正ソフト3の追加位置情報「D
番地」が、「3AH」および「3BH」には修正ソフト
3の格納位置情報「02H」および「AAH」が、「3
CH」および「3DH」には修正ソフト4の追加位置情
報「E番地」が、「3EH」および「3FH」には修正
ソフト4の格納位置情報「02H」および「ADH」
が、「40H」および「41H」には修正ソフト5の追
加位置情報「F番地」が、「42H」および「43H」
には修正ソフト5の格納位置情報「02H」および「B
0H」が、それぞれ記録されている。Thereafter, similar to the above, additional position information "address C" of the correction software 2 is stored in "34H" and "35H".
However, in "36H" and "37H", the storage position information "02H" and "9DH" of the correction software 2 is "38H".
And "39H", the additional position information "D
When the address is “3AH” and “3BH”, the storage location information “02H” and “AAH” of the correction software 3 are “3”.
The additional position information “E address” of the correction software 4 is stored in “CH” and “3DH”, and the storage position information “02H” and “ADH” of the correction software 4 is stored in “3EH” and “3FH”.
However, the additional position information “F address” of the correction software 5 is “42H” and “43H” in “40H” and “41H”.
Storage location information "02H" and "B" of the correction software 5
"0H" is recorded for each.
【0035】また、「44H」および「45H」には、
修正ソフト6の追加位置情報「H番地」が記録され、
「46H」および「47H」には、修正ソフト6のコピ
ー情報「68H」および「12H」が記録されている。
この場合、前記修正ソフト6のコピー情報「68H」お
よび「12H」は、修正ソフト6は、EEPROM8の
アドレス「68H」から12H分、すなわち、「68
H」から「79H」まで記録されている旨と、修正ソフ
ト6が非常駐データであり、修正ソフト6を実行する際
にコピーする旨とを示す。Further, "44H" and "45H" include
The additional position information "H address" of the correction software 6 is recorded,
Copy information “68H” and “12H” of the correction software 6 are recorded in “46H” and “47H”.
In this case, the copy information "68H" and "12H" of the correction software 6 is 12H from the address "68H" of the EEPROM 8 of the correction software 6, that is, "68H".
It indicates that "H" to "79H" are recorded and that the correction software 6 is nonresident data and is copied when the correction software 6 is executed.
【0036】また、「48H」〜「4CH」には修正ソ
フト1が、「4DH」〜「59H」には修正ソフト2
が、「5AH」〜「5CH」には修正ソフト3が、「5
DH」〜「5FH」には修正ソフト4が、「60H」〜
「67H」には修正ソフト5が、「68H」〜「79
H」には修正ソフト6が、それぞれ記録されている。Further, the correction software 1 is used for "48H" to "4CH", and the correction software 2 is used for "4DH" to "59H".
However, for "5AH" to "5CH", the correction software 3 is "5
The correction software 4 for "DH" to "5FH" is "60H" to
The correction software 5 for "67H" is "68H" to "79".
The correction software 6 is recorded in each "H".
【0037】また、カメラ1のCPU7には、測光回路
(CdS)2、補助投光回路3、パッシブAF回路4、
シャッター・ピント駆動回路5、ストロボ回路6、フィ
ルム走行検知回路9、デートLED(発光ダイオード)
ドライバ回路11、ズーム情報検出手段(ズームコー
ド)13、ISO情報検出手段(DXコード)14、測
光スイッチ(SWS)15、レリーズスイッチ(SW
R)16、モードスイッチ(MODE)17、ストロボ
スイッチ(STRB)18、デートスイッチ(DAT
E)19、ドライブスイッチ(DRIV)21、裏蓋ス
イッチ(BACK)22、メインスイッチ(MAIN)
23、テレスイッチ(TELE)24、ワイドスイッチ
(WIDE)25、パノラマスイッチ(PNRM)2
6、外部LCD(液晶表示素子)表示手段27、赤ラン
プ・緑ランプ・セルフランプ28、フィルムモータ駆動
回路29およびズームモータ駆動回路32が、それぞ
れ、接続されている。そして、デートLEDドライバ回
路11には、写し込み用LED(7個)12が接続さ
れ、フィルムモータ駆動回路29には、フィルムモータ
31が接続され、ズームモータ駆動回路32には、ズー
ムモータ33が接続されている。以下、これらの主な動
作を説明する。Further, the CPU 7 of the camera 1 includes a photometric circuit (CdS) 2, an auxiliary light projecting circuit 3, a passive AF circuit 4,
Shutter / focus drive circuit 5, strobe circuit 6, film running detection circuit 9, date LED (light emitting diode)
Driver circuit 11, zoom information detecting means (zoom code) 13, ISO information detecting means (DX code) 14, photometric switch (SWS) 15, release switch (SW)
R) 16, mode switch (MODE) 17, strobe switch (STRB) 18, date switch (DAT)
E) 19, drive switch (DRIV) 21, back cover switch (BACK) 22, main switch (MAIN)
23, tele switch (TELE) 24, wide switch (WIDE) 25, panorama switch (PNRM) 2
6, an external LCD (liquid crystal display element) display means 27, a red lamp / green lamp / self lamp 28, a film motor drive circuit 29, and a zoom motor drive circuit 32 are connected to each other. The date LED driver circuit 11 is connected to the imprinting LEDs (7 pieces) 12, the film motor drive circuit 29 is connected to the film motor 31, and the zoom motor drive circuit 32 is connected to the zoom motor 33. It is connected. Hereinafter, these main operations will be described.
【0038】測光回路(CdS)2は、被写体の輝度を
測定し、その情報(輝度情報)をCPU7へ入力する。
CPU7は、前記輝度情報および後述するフィルム感度
情報に基づいて、測光演算(露出演算)を行い、適正な
露出(シャッター速度および絞り値)に設定する。The photometric circuit (CdS) 2 measures the luminance of the subject and inputs the information (luminance information) to the CPU 7.
The CPU 7 performs photometric calculation (exposure calculation) based on the brightness information and film sensitivity information described later to set an appropriate exposure (shutter speed and aperture value).
【0039】補助投光回路3は、自動焦点検出用の補助
光を投光する。カメラ1は、多数の受光素子から構成さ
れる図示しないラインセンサと、入射光束を一対の分割
光束対に2分割して前記ラインセンサ上に結像させる図
示しない瞳分割光学系と、前記パッシブAF回路4とか
らなる図示しないパッシブAF部(焦点検出部)を有し
ている。The auxiliary light projecting circuit 3 projects auxiliary light for automatic focus detection. The camera 1 includes a line sensor (not shown) including a large number of light receiving elements, a pupil division optical system (not shown) that divides an incident light beam into a pair of divided light beams and forms an image on the line sensor, and the passive AF. It has a passive AF section (focus detection section) (not shown) including the circuit 4.
【0040】パッシブAF部の瞳分割光学系は、入射光
束を一対の分割光束対に2分割してラインセンサ上に結
像させる。そして、そのラインセンサからは、各受光素
子の画素信号がパッシブAF回路4へ入力される。パッ
シブAF回路4は、前記ラインセンサから入力された各
受光素子の画素信号から、所定の基準撮影位置に被写体
があるときに前記ラインセンサ上にできる像の位置に対
する像ずれ量を算出し、この像ずれ量に基づいてレンズ
駆動量を演算し、その情報をCPU7へ出力する。The pupil division optical system of the passive AF section divides the incident light beam into a pair of divided light beams and forms an image on the line sensor. Then, the pixel signal of each light receiving element is input to the passive AF circuit 4 from the line sensor. The passive AF circuit 4 calculates the image shift amount with respect to the position of the image formed on the line sensor from the pixel signal of each light receiving element input from the line sensor when the subject is located at a predetermined reference shooting position. The lens drive amount is calculated based on the image shift amount, and the information is output to the CPU 7.
【0041】CPU7は、前記情報に基づいて、合焦さ
せるための指令信号をシャッター・ピント駆動回路5に
入力する。シャッター・ピント駆動回路5は、この合焦
指令により、撮影レンズのうちの焦点合わせレンズを駆
動する。これにより合焦状態が得られる。The CPU 7 inputs a command signal for focusing on the shutter focus driving circuit 5 based on the information. The shutter / focus drive circuit 5 drives the focusing lens of the photographing lenses in response to this focusing instruction. Thereby, a focused state is obtained.
【0042】ストロボ回路6は、CPU7からストロボ
駆動指令が入力されると、ストロボを駆動(発光)させ
る。フィルム走行検知回路9からは、フィルムの走行
(巻き上げ)を示す信号、すなわち、フィルムの走行速
度に対応した信号(フィルム走行信号)が、CPU7に
入力される。When the strobe drive command is input from the CPU 7, the strobe circuit 6 drives the strobe (emits light). From the film running detection circuit 9, a signal indicating the running (winding) of the film, that is, a signal corresponding to the running speed of the film (film running signal) is input to the CPU 7.
【0043】デートLEDドライバ回路11は、前記フ
ィルム巻き上げの際、写し込み用LED12を駆動(発
光)させて、フィルムへ、撮影年月日、時分に関する情
報(デート情報)を写し込む。When the film is wound, the date LED driver circuit 11 drives (emits) the imprinting LED 12 to imprint information (date information) on the filming date and time on the film.
【0044】ズーム情報検出手段13は、ズームコード
と、このズームコードに接触するズームコード接片とに
より構成されいる。ズーム情報検出手段13からのズー
ム情報(ズームコード情報)は、CPU7に入力され、
CPU7は、そのズーム情報を読み取ることにより、撮
影光学系の焦点距離を把握している。The zoom information detecting means 13 is composed of a zoom code and a zoom code contact piece which comes into contact with the zoom code. The zoom information (zoom code information) from the zoom information detecting means 13 is input to the CPU 7,
The CPU 7 grasps the focal length of the photographing optical system by reading the zoom information.
【0045】ISO情報検出手段14は、複数の突起状
の接点が、それぞれ、コイルバネにより図示しないパト
ローネ装填部の内側へ向かって付勢され、かつ、フィル
ムの上下方向(幅方向)に添って配置された構成となっ
ている。The ISO information detecting means 14 has a plurality of protrusion-shaped contacts which are biased toward the inside of a cartridge loading section (not shown) by coil springs, and arranged in the vertical direction (width direction) of the film. It has been configured.
【0046】カメラ1のパトローネ装填部にパトローネ
が装填されると、パトローネに設けられているDXコー
ド(フィルムのISO感度等のフィルム情報を担持した
コード)へISO情報検出手段14の各接点が接触し、
DXコードの導通、非導通のパターンによって、フィル
ムのISO感度に対応する信号(フィルム感度情報)が
CPU7に入力され、フィルムのISO感度が読み取ら
れる。When the cartridge is loaded in the cartridge loading section of the camera 1, each contact of the ISO information detecting means 14 comes into contact with a DX code (a code carrying film information such as ISO sensitivity of the film) provided in the cartridge. Then
A signal (film sensitivity information) corresponding to the ISO sensitivity of the film is input to the CPU 7 according to the conduction / non-conduction pattern of the DX code, and the ISO sensitivity of the film is read.
【0047】前記測光スイッチ15、レリーズスイッチ
16、モードスイッチ17、ストロボスイッチ18、デ
ートスイッチ19、ドライブスイッチ21およびメイン
スイッチ23は、それぞれ、自己復帰型のスイッチであ
り、そのスイッチが操作されると、オフからオンにな
り、操作後にオフに戻るようになっている。そして、前
記各スイッチが操作されると、それぞれ、その旨を示す
信号がCPU7に入力される。The photometric switch 15, the release switch 16, the mode switch 17, the flash switch 18, the date switch 19, the drive switch 21 and the main switch 23 are each a self-reset type switch, and when the switches are operated. , It turns from off to on and returns to off after the operation. When each of the switches is operated, a signal indicating that effect is input to the CPU 7.
【0048】測光スイッチ15がオンすると、前記測光
回路2およびパッシブAF回路4がそれぞれ作動し、レ
リーズスイッチ16がオンすると、前記シャッター・ピ
ント駆動回路5により、図示しないシャッター(レンズ
シャッター)が駆動し、フィルムへの露光制御、すなわ
ち、撮影がなされる。When the photometry switch 15 is turned on, the photometry circuit 2 and the passive AF circuit 4 are activated respectively. When the release switch 16 is turned on, the shutter / focus drive circuit 5 drives a shutter (lens shutter) not shown. , Exposure control to the film, that is, photographing is performed.
【0049】モードスイッチ17がオンすると、モード
設定処理がなされ、これにより、自動ストロボモード、
ストロボOFFモード(ストロボ非発光モード)、スト
ロボONモード(ストロボ発光モード)および露出補正
モードのうちの所定のモードに設定される。When the mode switch 17 is turned on, a mode setting process is performed, whereby the automatic strobe mode,
A predetermined mode among the flash OFF mode (strobe non-flash mode), the flash ON mode (strobe flash mode), and the exposure correction mode is set.
【0050】ストロボスイッチ18がオンすると、赤目
軽減モードと、通常モード(赤目非軽減モード)との切
り換えがなされる。デートスイッチ19がオンすると、
写し込みデータが「年月日」である年月日モード、写し
込みデータが「時分」である時分モードおよび写し込み
がなされないOFFモードのうちの所定のモードに設定
される。When the strobe switch 18 is turned on, the red-eye reduction mode and the normal mode (red-eye non-reduction mode) are switched. When the date switch 19 turns on,
It is set to a predetermined mode among the year / month / day mode in which the imprinted data is “year / month / day”, the hour / minute mode in which the imprinted data is “hour / minute”, and the OFF mode in which imprinting is not performed.
【0051】ドライブスイッチ21がオンすると、ドラ
イブ設定処理がなされ、これにより、セルフ撮影モー
ド、または、通常撮影モード(非セルフ撮影モード)に
設定される。When the drive switch 21 is turned on, drive setting processing is performed, whereby the self-shooting mode or the normal shooting mode (non-self-shooting mode) is set.
【0052】裏蓋スイッチ22は、カメラ1の図示しな
い裏蓋を閉じるとオンし、裏蓋を開くとオフする。パト
ローネをカメラ1のパトローネ装填部に装填し、裏蓋を
閉じると裏蓋スイッチ22がオンし、フィルムモータ駆
動回路29により、フィルムモータ31が駆動し、これ
により、フィルムは、撮影開始位置まで走行して停止す
る。The back cover switch 22 is turned on when a back cover (not shown) of the camera 1 is closed, and is turned off when the back cover is opened. When the cartridge is loaded into the cartridge loading section of the camera 1 and the back cover is closed, the back cover switch 22 is turned on and the film motor 31 is driven by the film motor drive circuit 29, whereby the film runs to the shooting start position. And stop.
【0053】また、撮影を行うと、その後、フィルムモ
ータ駆動回路29により、フィルムモータ31が駆動
し、フィルムは次のコマまで巻き上げられる。カメラ1
の図示しないズームレバーを望遠側に変位させると、テ
レスイッチ24がオンし、ズームモータ駆動回路32
は、テレスイッチ24がオンしている間、ズームモータ
33を望遠側へ駆動させる。これにより、撮影光学系が
伸長して望遠側へのズーミングがなされる。After shooting, the film motor drive circuit 29 drives the film motor 31 to wind the film to the next frame. Camera 1
When the zoom lever (not shown) is displaced to the telephoto side, the tele switch 24 is turned on and the zoom motor drive circuit 32
Drives the zoom motor 33 to the telephoto side while the tele switch 24 is on. As a result, the photographing optical system is extended and zooming to the telephoto side is performed.
【0054】また、ズームレバーを広角側に変位させる
と、ワイドスイッチ25がオンし、ズームモータ駆動回
路32は、ワイドスイッチ25がオンしている間、ズー
ムモータ33を広角側へ駆動させる。これにより、撮影
光学系が収縮して広角側へのズーミングがなされる。When the zoom lever is displaced to the wide angle side, the wide switch 25 is turned on, and the zoom motor drive circuit 32 drives the zoom motor 33 to the wide angle side while the wide switch 25 is on. As a result, the photographing optical system contracts and zooming to the wide-angle side is performed.
【0055】パノラマスイッチ26がオンすると、撮影
画面サイズがパノラマサイズ(縦横比約1:3)に変更
され、パノラマスイッチ26がオフすると、撮影画面サ
イズが普通サイズ(35mmサイズ、縦横比約2:3)に
変更される。When the panorama switch 26 is turned on, the photographing screen size is changed to the panorama size (aspect ratio: about 1: 3), and when the panorama switch 26 is turned off, the photographing screen size is a normal size (35 mm size, aspect ratio about 2: 3). Changed to 3).
【0056】なお、パノラマ撮影においては、通常、フ
ィルムの上下方向両端部を遮光することにより、フィル
ム上の撮影画面を普通サイズからパノラマサイズに変更
する。Incidentally, in panoramic photography, normally, the photographing screen on the film is changed from the normal size to the panoramic size by shielding the upper and lower ends of the film from light.
【0057】外部LCD表示手段27には、自動ストロ
ボモード/ストロボOFFモード/ストロボONモード
/露出補正モードの別、パノラマスイッチ26のオン/
オフの別、デート等のうちの必要な情報が表示される。On the external LCD display means 27, there are selected automatic strobe mode / strobe off mode / strobe on mode / exposure compensation mode, and the panorama switch 26 is turned on / off.
Necessary information such as off, date, etc. is displayed.
【0058】赤ランプ・緑ランプ・セルフランプ28の
うちの赤ランプは、撮影に際してストロボ発光が行われ
る場合に点灯し、ストロボ充電中に点滅する。また、緑
ランプは、パッシブAF回路4による測距の結果、適正
な距離と判断された場合に点灯し、不適正な距離と判断
されると点滅する。The red lamp of the red lamp, the green lamp, and the self lamp 28 is lit when strobe light is emitted during photographing, and blinks during strobe charging. Further, the green lamp lights up when the distance is determined to be proper as a result of distance measurement by the passive AF circuit 4, and blinks when the distance is determined to be incorrect.
【0059】また、セルフランプは、セルフ撮影モード
において、レリーズスイッチ16がオンしてからシャッ
ターが駆動するまでの間の所定時間点灯、点滅する。次
に、カメラ1のCPU7の制御動作について説明する。Further, in the self-photographing mode, the self-lamp illuminates and flashes for a predetermined period of time after the release switch 16 is turned on until the shutter is driven. Next, the control operation of the CPU 7 of the camera 1 will be described.
【0060】(1)リセット処理
図4は、カメラ1のリセット処理時のCPU7の動作を
示すフローチャート、図5は、リセット後のRAMのア
ドレス空間を示す模式図である。以下、このフローチャ
ートに基づいて説明する。(1) Reset Process FIG. 4 is a flowchart showing the operation of the CPU 7 during the reset process of the camera 1, and FIG. 5 is a schematic diagram showing the address space of the RAM after reset. Hereinafter, description will be given based on this flowchart.
【0061】カメラ1は、電源(電池)を入れるとリセ
ット処理を実行する。リセット処理では、まず、ハード
ウエアを初期化する(ステップ101)。このステップ
101では、例えば、レジスタおよびポート等の初期設
定を行う。次いで、RAMを初期化する(ステップ10
2)。The camera 1 executes a reset process when the power (battery) is turned on. In the reset process, first, the hardware is initialized (step 101). In this step 101, for example, initial settings of registers and ports are performed. Then, the RAM is initialized (step 10)
2).
【0062】次いで、EEPROM8からRAMへ修正
ソフト数を読み込む(ステップ103)。このステップ
103では、図5に示すように、RAMの200Hに、
修正ソフト数「06H」を書き込む。Next, the correction software number is read from the EEPROM 8 into the RAM (step 103). In this step 103, as shown in FIG.
Write the correction software number "06H".
【0063】次いで、EEPROM8からRAMへコピ
ーバイト数を読み込む(ステップ104)。このステッ
プ104では、図5に示すように、RAMの201H
に、コピーバイト数「38H」を書き込む。Next, the number of copied bytes is read from the EEPROM 8 into the RAM (step 104). In this step 104, as shown in FIG.
The number of copied bytes “38H” is written in
【0064】次いで、EEPROM8の予め決められた
アドレス「30H」番地からコピーバイト数「38H」
分のデータをRAMのスタック領域へコピーする。これ
により、常駐データ、すなわち、修正ソフト1〜6の修
正情報(追加位置情報、格納位置情報およびコピー情
報)および修正ソフト1〜5がRAM上にセットされる
(ステップ105)。Next, from the address "30H", which is determined in advance in the EEPROM 8, the number of copy bytes "38H".
Minute data is copied to the stack area of RAM. As a result, the resident data, that is, the correction information (additional position information, storage position information and copy information) of the correction software 1 to 6 and the correction software 1 to 5 are set in the RAM (step 105).
【0065】このステップ105では、図5に示すよう
に、RAMの280H〜283Hに修正ソフト1の修正
情報(追加位置情報「B番地」、格納位置情報「02
H」および「98H」)を、284H〜287Hに修正
ソフト2の修正情報(追加位置情報「C番地」、格納位
置情報「02H」および「9DH」)を、288H〜2
8BHに修正ソフト3の修正情報(追加位置情報「D番
地」、格納位置情報「02H」および「AAH」)を、
28CH〜28FHに修正ソフト4の修正情報(追加位
置情報「E番地」、格納位置情報「02H」および「A
DH」)を、290H〜293Hに修正ソフト5の修正
情報(追加位置情報「F番地」、格納位置情報「02
H」および「B0H」)を、294H〜297Hに修正
ソフト6の修正情報(追加位置情報「H番地」、コピー
情報「68H」および「12H」)を、それぞれ書き込
む。In this step 105, as shown in FIG. 5, the correction information of the correction software 1 (additional position information "B address", storage position information "02" is stored in the RAM 280H to 283H.
"H" and "98H") to 284H to 287H and correction information of the correction software 2 (additional position information "C address", storage position information "02H" and "9DH") to 288H to 287H.
8BH with the correction information of the correction software 3 (additional position information “D address”, storage position information “02H” and “AAH”),
28CH to 28FH correction information of the correction software 4 (additional position information "E address", storage position information "02H" and "A
DH ") to 290H to 293H and correction information of the correction software 5 (additional position information" F address ", storage position information" 02 "
"H" and "B0H") and the correction information (additional position information "H address", copy information "68H" and "12H") of the correction software 6 are written in 294H to 297H, respectively.
【0066】また、RAMの298H〜29CHに修正
ソフト1を、29DH〜2A9Hに修正ソフト2を、2
AAH〜2ACHに修正ソフト3を、2ADH〜2AF
Hに修正ソフト4を、2B0H〜2B7Hに修正ソフト
5を、それぞれ書き込む。以下、メイン処理へ続く。The correction software 1 is stored in the RAM 298H to 29CH, and the correction software 2 is stored in the RAM 29DH to 2A9H.
Modify software 3 on AAH-2ACH, 2ADH-2AF
The correction software 4 is written in H, and the correction software 5 is written in 2B0H to 2B7H. Below, the main processing is continued.
【0067】なお、修正ソフト6は、非常駐データであ
り、このリセット処理ではコピーされず、後述するよう
に、修正ソフト6を実行する際、RAMのスタック領域
にコピーされる。そして、修正ソフト6の実行後は、修
正ソフト6は消去され、RAMのデータは前記常駐デー
タに書き換えられる。The correction software 6 is non-resident data and is not copied in this reset process, but is copied to the stack area of the RAM when the correction software 6 is executed, as will be described later. After the correction software 6 is executed, the correction software 6 is erased and the RAM data is rewritten to the resident data.
【0068】(2)修正管理1処理および修正管理2処
理
図6および図7は、カメラ1の修正管理1処理および修
正管理2処理時のCPU7の動作を示すフローチャート
である。以下、このフローチャートに基づいて説明す
る。(2) Correction Management 1 Processing and Correction Management 2 Processing FIGS. 6 and 7 are flowcharts showing the operation of the CPU 7 during the correction management 1 processing and the correction management 2 processing of the camera 1. Hereinafter, description will be given based on this flowchart.
【0069】後述するように、ソフトの各種実行ステッ
プ間の所定の位置には、予め、修正管理1処理または修
正管理2処理の呼び出し命令ステップ(修正管理1処理
または修正管理2処理のソフトを呼び出すコール手段)
が設けられており、その呼び出し命令の度に、修正管理
1処理または修正管理2処理が実行される。As will be described later, at a predetermined position between various execution steps of the software, a call command step of the modification management 1 processing or modification management 2 processing (software of modification management 1 processing or modification management 2 processing is called in advance. (Call means)
Is provided, and the modification management 1 process or the modification management 2 process is executed each time the call command is issued.
【0070】修正管理1処理では、まず、修正実行中フ
ラグ(実行中フラグ)=1か否かを判断する(ステップ
201)。なお、後述するように、この修正管理1処理
および修正管理2処理では、それぞれ、修正ソフト実行
前に、実行中フラグを立て(実行中フラグ=1)、該修
正ソフト実行後に、実行中フラグをクリアする(実行中
フラグ=0)ようになっている。よって、修正ソフト実
行中は、常時、実行中フラグが立っている。In the modification management 1 process, it is first determined whether the modification in-execution flag (in-execution flag) = 1 (step 201). As will be described later, in the modification management 1 process and the modification management 2 process, an in-execution flag is set (execution flag = 1) before execution of the modification software, and an execution flag is set after execution of the modification software. It is set to be cleared (execution flag = 0). Therefore, during execution of the correction software, the in-execution flag is always set.
【0071】ステップ201において実行中フラグ=1
と判断した場合には、リターンする。また、ステップ2
01において実行中フラグ=1ではないと判断した場合
には、ネスト識別フラグをクリアする(ネスト識別フラ
グ=0にセット)(ステップ202)。In-execution flag = 1 in step 201
If it is determined that the return, return. Also, step 2
When it is determined in 01 that the in-execution flag is not 1, the nest identification flag is cleared (nested identification flag = 0 is set) (step 202).
【0072】次いで、スタックに書き込まれているネス
ティング1レベル(以下、単に「ネスト1」という)の
戻り番地を、メモリーADRにセットする(ステップ2
03)。すなわち、スタックからの戻り番地(アドレス
情報)の取得をネスト1とする。Next, the return address of the nesting 1 level (hereinafter, simply referred to as "nest 1") written in the stack is set in the memory ADR (step 2).
03). That is, the acquisition of the return address (address information) from the stack is set to nest 1.
【0073】なお、前記ネスト1の戻り番地とは、スタ
ックから最も先に読み出される戻り番地(最後に書き込
まれた番地)をいい、後述するネスト2の戻り番地と
は、スタックから2番目に読み出される戻り番地(最後
から2番目に書き込まれた番地)をいう。The return address of the nest 1 is the return address read first from the stack (the address written last), and the return address of the nest 2 to be described later is the second read address from the stack. This is the return address (the address written to the penultimate position).
【0074】修正管理2処理では、まず、実行中フラグ
=1か否かを判断する(ステップ204)。ステップ2
04において実行中フラグ=1と判断した場合には、リ
ターンする。In the modification management 2 process, it is first determined whether or not the in-execution flag = 1 (step 204). Step two
If it is determined in 04 that the execution flag = 1, the process returns.
【0075】また、ステップ204において実行中フラ
グ=1ではないと判断した場合には、ネスト識別フラグ
を立てる(ネスト識別フラグ=1にセットする)(ステ
ップ203)。If it is determined in step 204 that the in-execution flag is not 1, the nest identification flag is set (the nest identification flag is set to 1) (step 203).
【0076】次いで、スタックに書き込まれているネス
ティング2レベル(以下、単に「ネスト2」という)の
戻り番地を、ADRにセットする(ステップ206)。
すなわち、スタックからの戻り番地の取得をネスト2と
する。Next, the return address of the nesting 2 level (hereinafter simply referred to as "nest 2") written in the stack is set in ADR (step 206).
That is, the acquisition of the return address from the stack is set to nest 2.
【0077】ステップ203またはステップ206の
後、ポインタPTRに、280Hをセットする(ステッ
プ207)。次いで、カウンタ(COUNT)にリセッ
ト処理で読み込んだ修正ソフト数(本実施例では、
「6」)をコピーする(ステップ208)。After step 203 or step 206, 280H is set in the pointer PTR (step 207). Next, the number of correction software read by the reset process to the counter (COUNT) (in the present embodiment,
"6") is copied (step 208).
【0078】次いで、カウンタ=0か否かを判断し(ス
テップ209)、カウンタ=0と判断した場合は、修正
ソフトが最初から用意されていないか、または、修正管
理処理の呼び出し元のプログラム位置にて実行する修正
ソフトがない場合であり、そのままリターンする。Next, it is judged whether or not counter = 0 (step 209). If it is judged that counter = 0, it means that the correction software is not prepared from the beginning or the program position of the caller of the correction management process. If there is no correction software to be executed in, return as it is.
【0079】また、ステップ209においてカウンタ=
0ではないと判断した場合には、[PTR]=ADRか
否かを判断する(ステップ210)。このステップ21
0における[PTR]とは、PTRが示す番地からの2
バイト長のRAM内容である。ここでは、リセット処理
でRAMにコピーされた修正情報のうちの修正ソフト追
加位置情報、すなわち、番地を参照している。例えば、
PTRに280Hがセットされている場合の[280
H]は、図5に示すように、「B番地」である。In step 209, counter =
If it is determined that it is not 0, it is determined whether or not [PTR] = ADR (step 210). This step 21
[PTR] in 0 is 2 from the address indicated by PTR.
It is the RAM contents of byte length. Here, the correction software addition position information of the correction information copied to the RAM in the reset process, that is, the address is referred to. For example,
[280 when the PTR is set to 280H
[H] is “address B” as shown in FIG.
【0080】ステップ210において[PTR]=AD
Rではないと判断した場合には、次の修正ソフトの追加
位置情報を参照するために、PTRを4つインクリメン
トする(ステップ211)。[PTR] = AD in step 210
If it is determined that it is not R, the PTR is incremented by 4 to refer to the additional position information of the next correction software (step 211).
【0081】次いで、カウンタを1つデクリメントし
(ステップ212)、ステップ209に戻り、再度、ス
テップ209以降を実行する。また、ステップ210に
おいて[PTR]=ADRと判断した場合には、実行す
べき修正ソフトがあるということで、以下、実際の修正
ソフト実行処理となる。まず、ADRに、0000H
(初期値)をセットする(ステップ213)。Then, the counter is decremented by 1 (step 212), the process returns to step 209, and step 209 and the subsequent steps are executed again. If [PTR] = ADR is determined in step 210, it means that there is correction software to be executed, and hence the actual correction software execution processing is performed. First, in ADR, 0000H
(Initial value) is set (step 213).
【0082】次いで、実行中フラグを立てる(実行中フ
ラグ=1)(ステップ214)。次いで、修正ソフトの
格納位置情報を参照するために、PTRを2つインクリ
メントする(ステップ215)。Then, the execution flag is set (execution flag = 1) (step 214). Next, the PTR is incremented by 2 to refer to the storage position information of the correction software (step 215).
【0083】次いで、[PTR]=0XXXHか否か、
すなわち、[PTR]の最上位の桁の数字が「0」か否
かを判断する(ステップ216)。このステップ216
における[PTR]とは、PTRが示す番地からの2バ
イト長のRAM内容である。ここでは、修正情報のうち
の修正ソフト格納位置情報を参照している。例えば、P
TRに282Hがセットされている場合の[282H]
は、図5に示すように、「0298H」である。また、
「X」は、16進法における0〜Fのうちの任意数であ
る。Next, whether or not [PTR] = 0XXXH,
That is, it is determined whether or not the number in the most significant digit of [PTR] is "0" (step 216). This step 216
[PTR] in is the RAM content of 2 bytes length from the address indicated by PTR. Here, the correction software storage position information of the correction information is referred to. For example, P
[282H] when 282H is set in TR
Is "0298H" as shown in FIG. Also,
“X” is an arbitrary number from 0 to F in hexadecimal notation.
【0084】なお、[PTR]=0XXXHの場合に
は、対応する修正ソフトは、常駐データであり、その修
正ソフトは、前述したリセット処理において、EEPR
OM8からRAMにコピーされている。また、[PT
R]=0XXXHではない場合には、対応する修正ソフ
トは、非常駐データであり、その修正ソフトは、まだ、
EEPROM8からRAMにコピーされていない(修正
ソフト6は、[PTR]=6812Hとなるので、非常
駐データと判別される。)。When [PTR] = 0XXXH, the corresponding correction software is resident data, and the correction software is EEPR in the reset processing described above.
Copied from OM8 to RAM. In addition, [PT
When R] = 0XXXXH is not satisfied, the corresponding correction software is non-resident data, and the correction software is still
The data is not copied from the EEPROM 8 to the RAM (the correction software 6 has [PTR] = 6812H, so it is determined to be nonresident data).
【0085】ステップ216において[PTR]=0X
XXHと判断した場合には、[PTR]に基づいて、対
応する修正ソフトを実行する(ステップ217)。例え
ば、[PTR]=0298Hの場合には、RAMの29
8H〜29CHに記録されている修正ソフト1を実行す
る。なお、このサブルーチンは、後に詳述する。[PTR] = 0X in step 216
If it is determined to be XXH, the corresponding correction software is executed based on [PTR] (step 217). For example, when [PTR] = 0298H, 29 of RAM
The correction software 1 recorded in 8H to 29CH is executed. Note that this subroutine will be described later in detail.
【0086】また、ステップ216において[PTR]
=0XXXHではないと判断した場合には、EEPRO
M8からRAMへ、修正ソフト6をコピーする(ステッ
プ218)。In step 216, [PTR]
If it is determined that it is not = 0XXXH, EEPRO
The correction software 6 is copied from M8 to RAM (step 218).
【0087】このステップ218では、[PTR]に基
づいて、EEPROM8の68H〜79H(12H分)
に記録されている修正ソフト6を読み出し、その修正ソ
フト6をRAMの280H〜291Hに書き込む。In this step 218, 68H to 79H (12H) of the EEPROM 8 based on [PTR].
The correction software 6 recorded in is read, and the correction software 6 is written in the RAM 280H to 291H.
【0088】次いで、RAMの280H〜291Hに記
録された修正ソフト6を実行する(ステップ219)。
なお、このサブルーチンは、後に詳述する。次いで、E
EPROM8からRAMへ、常駐データ(修正ソフト1
〜6の修正情報および修正ソフト1〜5)をコピーする
(ステップ220)。Then, the correction software 6 recorded in the RAMs 280H to 291H is executed (step 219).
Note that this subroutine will be described later in detail. Then E
From EPROM8 to RAM, resident data (correction software 1
6 to 6 and the correction software 1 to 5) are copied (step 220).
【0089】このステップ220では、図5に示すよう
に、EEPROM8から常駐データを読み出し、その常
駐データをRAMの280H〜2B7Hに書き込んで、
修正ソフト6をRAMにコピーする前と同じ状態に戻
す。In step 220, as shown in FIG. 5, the resident data is read from the EEPROM 8 and the resident data is written in the RAMs 280H to 2B7H.
The correction software 6 is returned to the same state as before being copied to the RAM.
【0090】ステップ217またはステップ220の
後、実行中フラグをクリアする(実行中フラグ=0)
(ステップ221)。次いで、ADR=0000Hか否
かを判断する(ステップ222)。なお、後述するよう
に、修正ソフト5および6を実行すると、それぞれ、A
DRに所定の番地がセットされ、これにより、ADR≠
0000Hとなる。After step 217 or step 220, the execution flag is cleared (execution flag = 0).
(Step 221). Next, it is determined whether ADR = 0000H (step 222). As will be described later, when the correction software 5 and 6 are executed,
A predetermined address is set in DR, whereby ADR ≠
It becomes 0000H.
【0091】ステップ222においてADR=0000
Hと判断した場合には、リターンする。また、ステップ
222においてADR=0000Hではないと判断した
場合には、ネスト識別フラグ=0か否かを判断する(ス
テップ223)。At step 222, ADR = 0000
When it is determined to be H, the process returns. If it is determined in step 222 that ADR is not 0000H, it is determined whether the nest identification flag is 0 (step 223).
【0092】ステップ223においてネスト識別フラグ
=0ではないと判断した場合、すなわち、ネスト識別フ
ラグ=1と判断した場合には、スタックに書き込まれて
いるネスト2の戻り番地を、ADRにセットされている
番地に書き換える(ステップ224)。When it is determined in step 223 that the nest identification flag is not 0, that is, when the nest identification flag is 1, it is determined that the return address of the nest 2 written in the stack is set in ADR. The address is rewritten (step 224).
【0093】また、ステップ223においてネスト識別
フラグ=0と判断した場合には、スタックに書き込まれ
ているネスト1の戻り番地を、ADRにセットされてい
る番地に書き換える(ステップ225)。If it is determined that the nest identification flag = 0 in step 223, the return address of nest 1 written in the stack is rewritten to the address set in ADR (step 225).
【0094】ステップ224またはステップ225の
後、リターンする。次に、カメラ1のソフトの変更につ
いての実施例1〜4をそれぞれ説明する。After step 224 or step 225, the process returns. Next, Embodiments 1 to 4 for changing the software of the camera 1 will be described respectively.
【0095】(3)測光・演算処理のソフトの変更(実
施例1)
カメラ1では、測光・演算処理のソフトが適正であれ
ば、下記表1に示すように、自動ストロボモードに設定
されている場合には、ストロボは、Ev≧10のときオ
フし、Ev<10のときオンし、低速リミットは、Ev
≧10に設定される。また、ストロボOFFモードに設
定されている場合には、ストロボは、Evの大きさにか
かわらずオフし、低速リミットは、Ev≧6に設定され
る。また、ストロボONモードに設定されている場合に
は、ストロボは、Evの大きさにかかわらずオンし、低
速リミットは、Ev≧10に設定される。また、露出補
正モードに設定されている場合には、ストロボは、Ev
の大きさにかかわらずオフし、低速リミットは、Ev≧
6に設定される。(3) Change of software for photometry / calculation processing (Example 1) In the camera 1, if the software for photometry / calculation processing is appropriate, the automatic strobe mode is set as shown in Table 1 below. If it is, the flash turns off when Ev ≧ 10, turns on when Ev <10, and the low speed limit is Ev.
≧ 10 is set. Further, when the strobe OFF mode is set, the strobe is turned off regardless of the magnitude of Ev, and the low speed limit is set to Ev ≧ 6. Further, when the strobe ON mode is set, the strobe is turned on regardless of the magnitude of Ev, and the low speed limit is set to Ev ≧ 10. Also, if the exposure compensation mode is set, the flash will
Is turned off regardless of the magnitude of, and the low speed limit is Ev ≧
Set to 6.
【0096】[0096]
【表1】 [Table 1]
【0097】図8および図9は、測光・演算処理の際の
CPU7の動作を示すフローチャートである。同図に示
すように、測光・演算処理のソフトにおいて、ステップ
307とステップ308との間に、ストロボ“OFFモ
ード”の判定処理が入るはずであったが、ソフトミスに
より抜けてしまった場合を想定する。FIG. 8 and FIG. 9 are flowcharts showing the operation of the CPU 7 during the photometry / calculation processing. As shown in the figure, in the photometry / calculation processing software, the strobe “OFF mode” determination processing should have been entered between step 307 and step 308. Suppose.
【0098】ストロボ“OFFモード”に設定されてい
る場合には、前述したように、Evの大きさにかかわら
ずストロボがオフし、かつ、低速リミットがEv≧6に
設定されるはずであるが、このソフトでは、ストロボ
“OFFモード”に設定されている場合でも、Ev<1
0の場合にはストロボが発光し、また、低速リミットが
Ev≧10に設定されてしまい、低速シャッタ(Ev≧
6)が効かない。よって、このような不都合を修正す
る。以下、図8および図9に示すフローチャートに基づ
いて説明する。When the strobe “OFF mode” is set, as described above, the strobe should be turned off regardless of the magnitude of Ev, and the low speed limit should be set to Ev ≧ 6. , With this software, Ev <1 even if the flash is set to “OFF mode”.
If 0, the flash fires, and the low speed limit is set to Ev ≧ 10, and the low speed shutter (Ev ≧ 10
6) does not work. Therefore, such an inconvenience is corrected. Hereinafter, description will be given based on the flowcharts shown in FIGS. 8 and 9.
【0099】測光・演算処理では、まず、測光処理を行
う(ステップ301)。この測光処理では、前述したよ
うに、測光回路2により被写体の輝度を測定する。次い
で、前述したように、修正管理1処理の呼び出しを行う
(ステップ302)。In the photometric / arithmetic processing, first, the photometric processing is performed (step 301). In this photometric processing, the brightness of the subject is measured by the photometric circuit 2 as described above. Then, as described above, the modification management 1 process is called (step 302).
【0100】この場合、スタックに書き込まれているネ
スト1の戻り番地は「A番地」であり、各修正ソフト1
〜6の修正ソフト追加位置情報には「A番地」はない。
すなわち、一致する番地がない。In this case, the return address of nest 1 written in the stack is "address A", and each correction software 1
There is no "A address" in the correction software addition position information of ~ 6.
That is, there is no matching address.
【0101】よって、このステップ302における修正
管理1処理では、前述したように、ステップ209〜2
12を繰り返し実行して、カウンタ=0となり、ステッ
プ209においてカウンタ=0と判断したところで、修
正ソフト1〜6のいずれも実行せずに、ステップ302
の後の「A番地」にリターンする。Therefore, in the modification management 1 process in step 302, as described above, steps 209 to 2 are executed.
12 is repeatedly executed and counter = 0, and when it is determined that counter = 0 in step 209, step 302 is executed without executing any of the correction software 1-6.
Return to "A" after.
【0102】次いで、フィルム感度入力処理を行う(ス
テップ303)。このフィルム感度入力処理では、前述
したように、ISO情報検出手段14により、フィルム
のISO感度を検出する。Next, a film sensitivity input process is performed (step 303). In this film sensitivity input processing, the ISO sensitivity of the film is detected by the ISO information detecting means 14 as described above.
【0103】次いで、前述したように、測光回路2から
の輝度情報およびISO情報検出手段14からのフィル
ム感度情報等に基づいて、露出演算を行い、適正な露出
値(露光値)Evを求める(ステップ304)。なお、
このステップ304では、Bv+SvをEvとする。但
し、Bvは被写体輝度値、SvはフィルムのISO感度
である。Then, as described above, the exposure calculation is performed based on the luminance information from the photometric circuit 2 and the film sensitivity information from the ISO information detecting means 14 to obtain an appropriate exposure value (exposure value) Ev ( Step 304). In addition,
In this step 304, Bv + Sv is set to Ev. However, Bv is the subject brightness value, and Sv is the ISO sensitivity of the film.
【0104】次いで、前述したように、修正管理1処理
を行う(ステップ305)。この場合、スタックに書き
込まれているネスト1の戻り番地は「B番地」であり、
修正ソフト1の修正ソフト追加位置情報は「B番地」で
ある。すなわち、一致する番地がある。Then, as described above, the modification management 1 process is performed (step 305). In this case, the return address of nest 1 written in the stack is "address B",
The correction software addition position information of the correction software 1 is “B address”. That is, there is a matching address.
【0105】よって、このステップ305における修正
管理1処理では、前述したように、ステップ210にお
いて[PTR]=[280H]=ADRと判断し、ステ
ップ213に進む。また、ステップ216において[P
TR]=[282H]=0XXXHと判断し、次いで、
修正ソフト1を実行する(ステップ217)。Therefore, in the modification management 1 process in step 305, as described above, it is determined in step 210 that [PTR] = [280H] = ADR, and the process proceeds to step 213. In step 216, [P
TR] = [282H] = 0XXH, and then
The correction software 1 is executed (step 217).
【0106】図10は、修正ソフト1を実行する際のC
PU7の動作を示すフローチャートである。修正ソフト
1では、ソフトミスによりストロボ“OFFモード”で
も低速リミットがEv≧10に設定され、露出演算結果
のEv値が変化してしまうため、Ev値をメモリーME
Mに書き込み、保存しておく(ステップ701)。そし
て、その後、修正管理1処理のステップ217にリター
ンする。以下、前述したように、ステップ221以降を
実行した後、ステップ305の後の「B番地」にリター
ンする。FIG. 10 shows C when the correction software 1 is executed.
It is a flowchart which shows operation | movement of PU7. In the correction software 1, the low speed limit is set to Ev ≧ 10 even if the flash is in the “OFF mode” due to a soft mistake, and the Ev value of the exposure calculation result changes, so the Ev value is stored in the memory ME.
It is written in M and saved (step 701). Then, thereafter, the process returns to step 217 of the modification management 1 process. Hereinafter, as described above, after executing step 221 and thereafter, the process returns to the “address B” after step 305.
【0107】次いで、発光フラグをクリアする(発光フ
ラグ=0)(ステップ306)。なお、発光フラグ=0
の場合には、撮影時に、ストロボは発光せず、発光フラ
グ=1の場合には、撮影時に、ストロボ回路6によりス
トロボが発光するようになっている。Then, the light emission flag is cleared (light emission flag = 0) (step 306). Note that the light emission flag = 0
In the case of, the strobe does not emit light at the time of photographing, and when the emission flag = 1, the strobe circuit 6 causes the strobe to emit at the time of photographing.
【0108】次いで、露出補正モードか否かを判断する
(ステップ307)。ステップ307において露出補正
モードではないと判断した場合には、ストロボ“ONモ
ード”か否かを判断する(ステップ308)。Then, it is judged whether or not the exposure correction mode is set (step 307). If it is determined in step 307 that the exposure compensation mode is not set, it is determined whether or not the flash is in the "ON mode" (step 308).
【0109】ステップ308においてストロボ“ONモ
ード”と判断した場合には、発光フラグを立てる(発光
フラグ=1)(ステップ309)。ステップ309の
後、または、ステップ308においてストロボ“ONモ
ード”ではないと判断した場合には、Ev<10か否か
を判断する(ステップ310)。If the strobe "ON mode" is determined in step 308, a light emission flag is set (light emission flag = 1) (step 309). After step 309, or when it is determined in step 308 that the flash is not in the "ON mode", it is determined whether Ev <10 (step 310).
【0110】ステップ310においてEv<10と判断
した場合には、Evを10に設定し(ステップ31
1)、発光フラグを立てる(発光フラグ=1)(ステッ
プ312)。When it is judged that Ev <10 in step 310, Ev is set to 10 (step 31
1), a light emission flag is set (light emission flag = 1) (step 312).
【0111】また、ステップ307において露出補正モ
ードと判断した場合には、Evから1.5を減じる(ス
テップ313)。次いで、Ev<6か否かを判断する
(ステップ314)。If it is determined in step 307 that the exposure correction mode is set, Ev is decreased by 1.5 (step 313). Next, it is determined whether or not Ev <6 (step 314).
【0112】ステップ314においてEv<6と判断し
た場合には、Evを6に設定する(ステップ315)。
ステップ315の後、ステップ312の後、ステップ3
14においてEv<6ではないと判断した場合、また
は、ステップ310においてEv<10ではないと判断
した場合には、Ev>17か否かを判断する(ステップ
316)。When it is judged that Ev <6 in step 314, Ev is set to 6 (step 315).
After step 315, after step 312, step 3
If it is determined in step 14 that Ev <6 is not satisfied, or if it is determined in step 310 that Ev <10 is not satisfied, then it is determined whether Ev> 17 is satisfied (step 316).
【0113】ステップ316においてEv>17と判断
した場合には、Evを17に設定する(ステップ31
7)。ステップ317の後、または、ステップ316に
おいてEv>17ではないと判断した場合には、前述し
たように、修正管理1処理を行う(ステップ318)。If Ev> 17 is determined in step 316, Ev is set to 17 (step 31
7). After step 317, or when it is determined in step 316 that Ev> 17 is not satisfied, the correction management 1 process is performed as described above (step 318).
【0114】この場合、スタックに書き込まれているネ
スト1の戻り番地は「C番地」であり、修正ソフト2の
修正ソフト追加位置情報は「C番地」である。すなわ
ち、一致する番地がある。In this case, the return address of the nest 1 written in the stack is "C address", and the correction software addition position information of the correction software 2 is "C address". That is, there is a matching address.
【0115】よって、このステップ318における修正
管理1処理では、前述したように、ステップ210にお
いて[PTR]=[284H]=ADRと判断し、ステ
ップ213に進む。また、ステップ216において[P
TR]=[286H]=0XXXHと判断し、次いで、
修正ソフト2を実行する(ステップ217)。Therefore, in the modification management 1 process in step 318, as described above, it is determined in step 210 that [PTR] = [284H] = ADR, and the process proceeds to step 213. In step 216, [P
TR] = [286H] = 0XXXXH, and then
The correction software 2 is executed (step 217).
【0116】図11は、修正ソフト2を実行する際のC
PU7の動作を示すフローチャートである。修正ソフト
2では、ストロボ“OFFモード”か否かを判断する
(ステップ751)。なお、後述するように、ストロボ
“OFFモード”でない場合には、修正する必要がない
ため、そのままリターンする。FIG. 11 shows C when executing the correction software 2.
It is a flowchart which shows operation | movement of PU7. The correction software 2 determines whether the flash is in the "OFF mode" (step 751). As will be described later, if the strobe is not in the "OFF mode", there is no need to make corrections, and the process returns.
【0117】ステップ751においてストロボ“OFF
モード”と判断した場合には、ソフトミスによりセット
された可能性のある発光フラグをクリアする(発光フラ
グ=0)(ステップ752)。In step 751, the flash is turned off.
If it is determined to be "mode", the light emission flag that may have been set due to a soft miss is cleared (light emission flag = 0) (step 752).
【0118】次いで、Ev≧10か否かを判断する(ス
テップ753)。ステップ753においてEv≧10で
はないと判断した場合には、ストロボ“OFFモード”
であるにもかかわらずEv≧10の低速リミットがかけ
られており、これを修正するために、Evを、修正ソフ
ト1で保存したメモリーMEMの値に設定する(ステッ
プ754)。Next, it is determined whether Ev ≧ 10 (step 753). If it is determined in step 753 that Ev ≧ 10 is not satisfied, the strobe “OFF mode” is set.
However, the low speed limit of Ev ≧ 10 is set, and in order to correct this, Ev is set to the value of the memory MEM saved by the correction software 1 (step 754).
【0119】次いで、Ev<6か否かを判断する(ステ
ップ755)。ステップ755においてEv<6と判断
した場合には、Evを6に設定する(ステップ75
6)。Then, it is judged whether or not Ev <6 (step 755). When it is determined that Ev <6 in step 755, Ev is set to 6 (step 75
6).
【0120】ステップ756の後、ステップ751にお
いてストロボ“OFFモード”ではないと判断した場
合、ステップ753においてEv≧10と判断した場
合、または、ステップ755においてEv<6ではない
と判断した場合には、修正管理1処理のステップ217
にリターンする。After step 756, if it is determined in step 751 that the flash is not in the “OFF mode”, if it is determined in step 753 that Ev ≧ 10, or if it is determined in step 755 that Ev <6 is not satisfied. , Step 217 of the modification management 1 process
Return to.
【0121】以下、前述したように、ステップ221以
降を実行した後、ステップ318の後の「C番地」にリ
ターンし、この測光・演算処理は終了し、メインルーチ
ンに戻る。As described above, after executing step 221 and thereafter, the process returns to "address C" after step 318, the photometry / calculation process ends, and the process returns to the main routine.
【0122】以上のように、ソフトミスによるストロボ
“OFFモード”でのストロボ発光および低速リミット
の不都合が、2つの修正ソフトの組み合わせによって修
正することができる。As described above, the disadvantages of stroboscopic light emission and low speed limit in the strobe "OFF mode" due to a soft mistake can be corrected by a combination of two correction software.
【0123】(4)セルフウェイト処理のソフトの変更
(実施例2)
図12は、セルフ撮影モードでの撮影時のセルフランプ
の動作を示すタイミングチャートである。(4) Change in software for self-waiting process (second embodiment) FIG. 12 is a timing chart showing the operation of the self-lamp during shooting in the self-shooting mode.
【0124】同図に示すように、セルフランプの仕様を
「7秒間点灯、3秒間1Hz点滅」から「7秒間点灯、
3秒間2Hz点滅」に変更する。図13は、セルフウェ
イト処理の際のCPU7の動作を示すフローチャート、
図14は、タイマスタート処理の際のCPU7の動作を
示すフローチャートである。以下、これらのフローチャ
ートに基づいて説明する。As shown in the figure, the specification of the self lamp is changed from "lights for 7 seconds, blinks at 1 Hz for 3 seconds" to "lights for 7 seconds,
Change to 2Hz blinking for 3 seconds ". FIG. 13 is a flowchart showing the operation of the CPU 7 during the self-wait process,
FIG. 14 is a flowchart showing the operation of the CPU 7 in the timer start process. Hereinafter, description will be given based on these flowcharts.
【0125】セルフウェイト処理では、まず、中断フラ
グをクリアする(中断フラグ=0)(ステップ40
1)。なお、中断フラグ=0の場合には、セルフ動作中
に中断操作がされなかったことを示し、セルフウェイト
処理からリターン後の撮影シーケンスが継続され、露出
等が行われる。In the self-wait process, first, the interruption flag is cleared (interruption flag = 0) (step 40).
1). When the interruption flag = 0, it means that the interruption operation is not performed during the self-operation, and the photographing sequence after the return from the self-waiting process is continued and the exposure and the like are performed.
【0126】また、中断フラグ=1の場合には、セルフ
動作中に中断操作がされたことを示し、セルフウェイト
処理からリターン後、以降の撮影シーケンスが中断され
る。When the interruption flag = 1, it means that the interruption operation is performed during the self-operation, and after the return from the self-wait processing, the subsequent photographing sequence is interrupted.
【0127】次いで、セルフランプを点灯する(ステッ
プ402)。次いで、点灯フラグを立てる(点灯フラグ
=1)(ステップ403)。次いで、カウンタ(COU
NT)を7にセットする(ステップ404)。Then, the self lamp is turned on (step 402). Next, a lighting flag is set (lighting flag = 1) (step 403). Then, the counter (COU
NT) is set to 7 (step 404).
【0128】次いで、メモリーTIMEに、設定時間
(7000m秒)をセットし、タイマスタート処理を行
う(ステップ405)。なお、このタイマスタート処理
実行後の戻り番地は「D番地」である。Then, the set time (7000 msec) is set in the memory TIME, and the timer start process is performed (step 405). The return address after the execution of this timer start process is "D address".
【0129】タイマスタート処理は、メモリーTIME
にセットされた数値をタイマレジスタにコピーしてタイ
マをスタートさせる汎用サブルーチンである。図14に
示すように、タイマスタート処理では、前述したよう
に、修正管理2処理を行う(ステップ451)。なお、
この修正管理2処理実行後の戻り番地は「X番地」であ
る。The timer start process is executed by the memory TIME.
This is a general-purpose subroutine that copies the value set in to the timer register and starts the timer. As shown in FIG. 14, in the timer start process, the correction management 2 process is performed as described above (step 451). In addition,
The return address after this correction management 2 process is executed is "X address".
【0130】ここで、スタックに書き込まれているネス
ト2の戻り番地は、「X番地」の1つ前の戻り番地であ
るから、「D番地」であり、修正ソフト3の修正ソフト
追加位置情報は「D番地」である。すなわち、一致する
番地がある。Here, since the return address of nest 2 written in the stack is the return address immediately before the "X address", it is "D address", and the correction software additional position information of the correction software 3 is obtained. Is "D address". That is, there is a matching address.
【0131】よって、この修正管理2処理では、前述し
たように、ステップ206でD番地のアドレス[288
H]がADRにセットされるので、ステップ210にお
いて[PTR]=[288H]=ADRと判断し、ステ
ップ213に進む。また、ステップ216において[P
TR]=[28AH]=0XXXHと判断し、次いで、
修正ソフト3を実行する(ステップ217)。Therefore, in this modification management 2 processing, as described above, in step 206, the address of address D [288
Since H] is set to ADR, it is determined at step 210 that [PTR] = [288H] = ADR, and the routine proceeds to step 213. In step 216, [P
TR] = [28AH] = 0JXXXH, and then
The correction software 3 is executed (step 217).
【0132】図15は、修正ソフト3を実行する際のC
PU7の動作を示すフローチャートである。修正ソフト
3では、カウンタを13にセット、すなわち、7から1
3に変更し(ステップ801)、その後、修正管理2処
理のステップ217にリターンする。以下、前述したよ
うに、ステップ221以降を実行した後、タイマスター
ト処理のステップ451の後の「X番地」にリターンす
る。FIG. 15 shows C when the correction software 3 is executed.
It is a flowchart which shows operation | movement of PU7. In the modification software 3, the counter is set to 13, that is, 7 to 1
3 (step 801), and then returns to step 217 of the modification management 2 process. Hereinafter, as described above, after executing step 221 and thereafter, the process returns to the “address X” after step 451 of the timer start process.
【0133】次いで、タイマレジスタに、設定時間(7
000m秒)をセットする(ステップ452)。次い
で、タイマをスタートさせ(ステップ453)、その
後、セルフウェイト処理のステップ405の後の「D番
地」にリターンする。Then, the timer register sets the set time (7
000 msec) is set (step 452). Then, the timer is started (step 453), and then the process returns to the "address D" after step 405 of the self-waiting process.
【0134】次いで、メインスイッチ23がオンしたか
否かを判断する(ステップ406)。ステップ406に
おいてメインスイッチ23がオンしたと判断した場合に
は、中断フラグを立て(中断フラグ=1)(ステップ4
07)、その後、メインルーチンにリターンする。Then, it is judged whether or not the main switch 23 is turned on (step 406). When it is determined in step 406 that the main switch 23 is turned on, the interruption flag is set (interruption flag = 1) (step 4
07) and then returns to the main routine.
【0135】また、ステップ406においてメインスイ
ッチ23がオンしないと判断した場合には、タイムアッ
プか否かを判断する(ステップ408)。ステップ40
8においてタイムアップではないと判断した場合には、
ステップ406に戻り、再度、ステップ406以降を実
行し、ステップ408においてタイムアップと判断した
場合には、カウンタを1つデクリメントする(ステップ
409)。If it is determined in step 406 that the main switch 23 is not turned on, it is determined whether or not the time is up (step 408). Step 40
When it is judged that it is not time up in 8,
Returning to step 406, step 406 and subsequent steps are executed again, and when it is determined that the time is up in step 408, the counter is decremented by 1 (step 409).
【0136】次いで、カウンタ=0か否かを判断する
(ステップ410)。ステップ410においてカウンタ
=0ではないと判断した場合には、点灯フラグ=1か否
かを判断する(ステップ411)。Then, it is judged whether or not the counter = 0 (step 410). When it is determined that the counter is not 0 in step 410, it is determined whether the lighting flag is 1 (step 411).
【0137】ステップ411において点灯フラグ=1と
判断した場合には、セルフランプを消灯し(ステップ4
12)、点灯フラグをクリアする(点灯フラグ=0)
(ステップ413)。If it is determined in step 411 that the lighting flag = 1, the self lamp is turned off (step 4
12), clear the lighting flag (lighting flag = 0)
(Step 413).
【0138】また、ステップ411において点灯フラグ
=1ではないと判断した場合には、セルフランプを点灯
し(ステップ414)、点灯フラグを立てる(点灯フラ
グ=1)(ステップ415)。If it is determined that the lighting flag is not 1 in step 411, the self lamp is turned on (step 414) and the lighting flag is set (lighting flag = 1) (step 415).
【0139】ステップ413またはステップ415の
後、1Hzの点滅を行なうために、メモリーTIMEに
設定時間(500m秒)をセットし、タイマスタート処
理を行う(ステップ416)。なお、このタイマスター
ト処理実行後の戻り番地は「E番地」である。After step 413 or step 415, a set time (500 msec) is set in the memory TIME to blink at 1 Hz, and a timer start process is performed (step 416). The return address after the execution of this timer start process is "E address".
【0140】図14に示すように、タイマスタート処理
では、前述したように、修正管理2処理を行う(ステッ
プ451)。なお、この修正管理2処理実行後の戻り番
地は「X番地」である。As shown in FIG. 14, in the timer start process, the correction management 2 process is performed as described above (step 451). The return address after the execution of this modification management 2 process is "X address".
【0141】ここで、スタックに書き込まれているネス
ト2の戻り番地は、「X番地」の1つ前の戻り番地であ
るから、「E番地」であり、修正ソフト4の修正ソフト
追加位置情報は「E番地」である。すなわち、一致する
番地がある。Here, since the return address of the nest 2 written in the stack is the return address immediately before the "X address", it is the "E address", and the correction software additional position information of the correction software 4 is obtained. Is "E address". That is, there is a matching address.
【0142】よって、この修正管理2処理では、前述し
たように、ステップ206でE番地のアドレス[28C
H]がADRにセットされるので、ステップ210にお
いて[PTR]=[28CH]=ADRと判断し、ステ
ップ213に進む。また、ステップ216において[P
TR]=[28EH]=0XXXHと判断し、次いで、
修正ソフト4を実行する(ステップ217)。Therefore, in this modification management 2 processing, as described above, in step 206, the address of address E [28C
Since H] is set to ADR, it is determined in step 210 that [PTR] = [28CH] = ADR, and the process proceeds to step 213. In step 216, [P
TR] = [28EH] = 0XXXH, and then
The correction software 4 is executed (step 217).
【0143】図16は、修正ソフト4を実行する際のC
PU7の動作を示すフローチャートである。修正ソフト
4では、2Hzの点滅を行なうために、メモリーTIM
Eに設定時間(250m秒)をセット、すなわち、設定
時間を500m秒から250m秒に変更し(ステップ8
51)、その後、修正管理2処理のステップ217にリ
ターンする。以下、前述したように、ステップ221以
降を実行した後、タイマスタート処理のステップ451
の後の「X番地」にリターンする。FIG. 16 shows C when executing the correction software 4.
It is a flowchart which shows operation | movement of PU7. The correction software 4 uses the memory TIM to blink at 2 Hz.
Set the set time (250 msec) to E, that is, change the set time from 500 msec to 250 msec (step 8
51) and thereafter, the process returns to step 217 of the modification management 2 process. Hereinafter, as described above, after executing step 221 and thereafter, step 451 of the timer start process
Return to "X address".
【0144】次いで、タイマレジスタに、設定時間(2
50m秒)をセットする(ステップ452)。次いで、
タイマをスタートさせ(ステップ453)、その後、セ
ルフウェイト処理のステップ416の後の「E番地」に
リターンする。Then, the timer register sets the set time (2
50 ms) is set (step 452). Then
The timer is started (step 453), and then the process returns to "address E" after step 416 of the self-wait process.
【0145】次いで、ステップ406に戻り、再度、ス
テップ406以降を実行する。また、ステップ410に
おいてカウンタ=0と判断した場合には、セルフランプ
を消灯し(ステップ417)、その後、メインルーチン
にリターンする。Then, the process returns to step 406, and steps 406 and after are executed again. When it is determined that the counter = 0 in step 410, the self lamp is turned off (step 417) and then the process returns to the main routine.
【0146】以上のように、修正したいソフトに修正管
理1処理の呼び出しが行われていない場合にも、汎用サ
ブルーチン中に修正管理2処理が呼び出されていれば、
汎用サブルーチンの呼び出し元のソフトに修正ソフトの
実行が可能となる。As described above, even if the modification management 1 process is not called in the software to be modified, if the modification management 2 process is called in the general subroutine,
The modified software can be executed by the software that called the general-purpose subroutine.
【0147】この実施例2では、汎用サブルーチンであ
るタイマスタート処理の呼び出し位置2箇所のうちの一
方に、セルフランプのON/OFF制御回数用カウンタ
の値を変更する修正ソフト3、他方に、点滅中のセルフ
ランプのON/OFF時間を変更する修正ソフト4をそ
れぞれ追加実行させている。これによって、セルフラン
プ仕様を「7秒間点灯、3秒間1Hz点滅」から「7秒
間点灯、3秒間2Hz点滅」に変更している。In the second embodiment, one of the two calling positions of the timer start process, which is a general-purpose subroutine, is the correction software 3 for changing the value of the self-lamp ON / OFF control counter, and the other is blinking. The correction software 4 for changing the ON / OFF time of the self-lamp therein is additionally executed. As a result, the self-lamp specification is changed from "lighting for 7 seconds, blinking at 1 Hz for 3 seconds" to "lighting for 7 seconds, blinking at 2 Hz for 3 seconds".
【0148】(5)バッテリーチェック処理のソフトの
変更(実施例3)
バッテリーチェック(BC)を、設計当初では、負荷通
電してから5m秒後の電池電圧をモニタすることで行う
としていたが、その後、「5m秒」では電池電圧が安定
しないことが分かり、「10m秒」に変更することとす
る。(5) Change of software for battery check processing (Example 3) At the beginning of the design, the battery check (BC) was performed by monitoring the battery voltage 5 msec after the load was energized. After that, it was found that the battery voltage was not stable at "5 msec", and the value was changed to "10 msec".
【0149】図17は、バッテリーチェック処理の際の
CPU7の動作を示すフローチャートである。以下、こ
のフローチャートに基づいて説明する。バッテリーチェ
ック処理では、まず、BC警告フラグをクリアする(B
C警告フラグ=0)(ステップ501)。なお、BC警
告フラグ=1の場合には、このバッテリーチェック処理
後、外部LCD表示手段27により、BC警告表示がな
される。FIG. 17 is a flowchart showing the operation of the CPU 7 during the battery check process. Hereinafter, description will be given based on this flowchart. In the battery check process, first, the BC warning flag is cleared (B
C warning flag = 0) (step 501). When the BC warning flag = 1, the BC warning is displayed by the external LCD display means 27 after the battery check process.
【0150】次いで、BCNGフラグをクリアする(B
CNGフラグ=0)(ステップ502)。なお、BCN
Gフラグ=1の場合には、このバッテリーチェック処理
後、外部LCD表示手段27により、BCNG表示がな
される。Then, the BCNG flag is cleared (B
CNG flag = 0) (step 502). BCN
When G flag = 1, BCNG display is performed by the external LCD display means 27 after this battery check processing.
【0151】次いで、前述したように、修正管理1処理
を行う(ステップ503)。この場合、スタックに書き
込まれているネスト1の戻り番地は「F番地」であり、
修正ソフト5の修正ソフト追加位置情報は「F番地」で
ある。すなわち、一致する番地がある。Then, as described above, the modification management 1 process is performed (step 503). In this case, the return address of nest 1 written in the stack is “F address”,
The correction software addition position information of the correction software 5 is “F address”. That is, there is a matching address.
【0152】よって、この修正管理1処理では、前述し
たように、ステップ210において[PTR]=[29
0H]=ADRと判断し、ステップ213に進む。ま
た、ステップ216において[PTR]=[292H]
=0XXXHと判断し、次いで、修正ソフト5を実行す
る(ステップ217)。Therefore, in this modification management 1 processing, as described above, in step 210, [PTR] = [29
[0H] = ADR is determined and the process proceeds to step 213. Further, in step 216, [PTR] = [292H]
Then, the correction software 5 is executed (step 217).
【0153】図18は、修正ソフト5を実行する際のC
PU7の動作を示すフローチャートである。修正ソフト
5では、BC負荷をオン、すなわち、BC負荷への通電
を開始する(ステップ901)。FIG. 18 shows C when executing the correction software 5.
It is a flowchart which shows operation | movement of PU7. The correction software 5 turns on the BC load, that is, starts energizing the BC load (step 901).
【0154】次いで、ウェイト(WAIT)処理を行う
(ステップ902)。このステップ902では、10m
秒間、BC負荷への通電を継続する。次いで、メモリー
ADRにG番地をセットし(ステップ903)、この
後、修正管理1処理のステップ217にリターンする。Then, a wait process is performed (step 902). In this step 902, 10m
Continue energizing the BC load for 2 seconds. Next, the G address is set in the memory ADR (step 903), and thereafter, the process returns to step 217 of the modification management 1 process.
【0155】以下、前述したように、ステップ221以
降を実行し、スタックに書き込まれているネスト1の戻
り番地(F番地)を、メモリーADRにセットされてい
る番地(G番地)に書き換え(ステップ225)、この
後、ステップ505の後の「G番地」にリターンする。
なお、戻り番地がF番地からG番地に変更されたため、
ステップ504および505は、それぞれ実行されな
い。Thereafter, as described above, step 221 and subsequent steps are executed, and the return address (address F) of nest 1 written in the stack is rewritten to the address (address G) set in the memory ADR (step 225) and thereafter, the process returns to the "address G" after step 505.
In addition, since the return address has been changed from F address to G address,
Steps 504 and 505 are not executed respectively.
【0156】次いで、BC電圧を入力する(ステップ5
06)。このステップ506では、BC電圧を測定し、
その測定値のアナログ信号をデジタル信号に変換して、
入力する。Then, the BC voltage is input (step 5).
06). In this step 506, the BC voltage is measured,
Convert the analog signal of the measured value into a digital signal,
input.
【0157】次いで、BC負荷をオフ、すなわち、BC
負荷への通電を停止する(ステップ507)。次いで、
BC電圧<警告レベルの電圧か否かを判断する(ステッ
プ508)。Then, the BC load is turned off, that is, BC
The energization of the load is stopped (step 507). Then
It is determined whether or not BC voltage <warning level voltage (step 508).
【0158】ステップ508においてBC電圧<警告レ
ベルの電圧と判断した場合には、BC電圧<NGレベル
の電圧か否かを判断する(ステップ509)。なお、N
Gレベルの電圧<警告レベルの電圧となっている。When it is determined in step 508 that BC voltage <voltage of warning level, it is determined whether or not BC voltage <voltage of NG level (step 509). Note that N
G level voltage <warning level voltage.
【0159】ステップ509においてBC電圧<NGレ
ベルの電圧と判断した場合には、BCNGフラグを立て
る(BCNGフラグ=1)(ステップ510)。また、
ステップ509においてBC電圧<NGレベルの電圧で
はないと判断した場合には、BC警告フラグを立てる
(BC警告フラグ=1)(ステップ511)。以上で、
このバッテリーチェック処理は終了し、メインルーチン
にリターンする。If it is determined in step 509 that the BC voltage is less than the NG level voltage, the BCNG flag is set (BCNG flag = 1) (step 510). Also,
If it is determined in step 509 that the BC voltage is less than the NG level voltage, the BC warning flag is set (BC warning flag = 1) (step 511). Above,
This battery check process ends, and the process returns to the main routine.
【0160】この実施例3では、修正ソフト5の実行中
にメモリーADRの値を書き換えることで、修正管理1
処理の戻り先を変更し、修正管理1処理の呼び出し位置
の後の2つの処理(ステップ504および505)が削
除されている。このように、修正ソフトによって、修正
管理処理(修正管理1処理および修正管理2処理)後の
任意の処理ブロックを削除することができる。In the third embodiment, the value of the memory ADR is rewritten while the correction software 5 is being executed, so that the correction management 1
The return destination of the process is changed, and the two processes (steps 504 and 505) after the call position of the modification management 1 process are deleted. In this way, the correction software can delete an arbitrary processing block after the correction management processing (correction management 1 processing and correction management 2 processing).
【0161】(6)モード表示処理のソフトの変更(実
施例4)
自動ストロボモード、ストロボOFFモード、ストロボ
ONモードおよび露出補正モードの外部LCD表示手段
27による表示は、それぞれ、前記表1に示すようにな
っているが、これらモード表示のうち、露出補正モード
の表示仕様を、前記表1に示すように変更する。(6) Change of software for mode display processing (Embodiment 4) The display by the external LCD display means 27 in the automatic strobe mode, strobe OFF mode, strobe ON mode and exposure compensation mode is shown in Table 1 above. The display specifications of the exposure compensation mode among these mode displays are changed as shown in Table 1 above.
【0162】図19は、モード表示処理の際のCPU7
の動作を示すフローチャート、図20は、修正ソフト6
実行時のRAMのアドレス空間を示す模式図である。以
下、このフローチャートに基づいて説明する。FIG. 19 shows the CPU 7 in the mode display processing.
FIG. 20 is a flowchart showing the operation of the correction software 6
It is a schematic diagram which shows the address space of RAM at the time of execution. Hereinafter, description will be given based on this flowchart.
【0163】モード表示処理では、まず、前述したよう
に、修正管理1処理を行う(ステップ601)。この場
合、スタックに書き込まれているネスト1の戻り番地は
「H番地」であり、修正ソフト6の修正ソフト追加位置
情報は「H番地」である。すなわち、一致する番地があ
る。In the mode display processing, first, as described above, the modification management 1 processing is performed (step 601). In this case, the return address of the nest 1 written in the stack is “H address”, and the correction software addition position information of the correction software 6 is “H address”. That is, there is a matching address.
【0164】よって、この修正管理1処理では、前述し
たように、ステップ210において[PTR]=[29
4H]=ADRと判断し、ステップ213に進む。ま
た、ステップ216において[PTR]=[296H]
=0XXXHではないと判断し、図20に示すように、
EEPROM8の68H〜79H(12H分)に記録さ
れている修正ソフト6を読み出し、その修正ソフト6を
RAMの280H〜291Hに書き込む(ステップ21
8)。次いで、その修正ソフト6を実行する(ステップ
219)。Therefore, in this modification management 1 processing, as described above, in step 210, [PTR] = [29
4H] = ADR, the process proceeds to step 213. Further, in step 216, [PTR] = [296H]
= 0XXXXXH, and as shown in FIG.
The correction software 6 recorded in 68H to 79H (12H) of the EEPROM 8 is read, and the correction software 6 is written to the RAM 280H to 291H (step 21).
8). Then, the correction software 6 is executed (step 219).
【0165】図21は、修正ソフト6を実行する際のC
PU7の動作を示すフローチャートである。修正ソフト
6では、まず、既に実行中のモード表示処理の再度の呼
び出しを行う(ステップ951)。再度呼び出されたモ
ード表示処理でも、まず、修正管理1処理を行う(ステ
ップ601)。FIG. 21 shows C when executing the correction software 6.
It is a flowchart which shows operation | movement of PU7. The correction software 6 first calls again the mode display processing that is already being executed (step 951). Even in the mode display process called again, the correction management 1 process is first performed (step 601).
【0166】しかし、この場合は、既に実行中フラグが
立っている(実行中フラグ=1)ので、この修正管理1
処理では、前述したように、実行中フラグ=1と判断し
(ステップ201)、この後の処理を実行せず、モード
表示処理のステップ601の後の「H番地」にリターン
する。However, in this case, since the in-execution flag is already set (in-execution flag = 1), this modification management 1
In the processing, as described above, it is determined that the flag is being executed = 1 (step 201), the subsequent processing is not executed, and the process returns to “address H” after step 601 of the mode display processing.
【0167】次いで、外部LCD表示手段27により、
モードマークをすべて消灯(非駆動)する(ステップ6
02)。図22は、モード表示における各マークを示す
模式図である。前記ステップ602では、同図に示すマ
ークM1〜M4をそれぞれ消灯する。Then, by the external LCD display means 27,
All mode marks are turned off (not driven) (step 6)
02). FIG. 22 is a schematic diagram showing each mark in the mode display. In step 602, the marks M1 to M4 shown in the figure are turned off.
【0168】次いで、自動ストロボモードか否かを判断
する(ステップ603)。ステップ603において自動
ストロボモードと判断した場合には、外部LCD表示手
段27により、図22に示すマークM1、すなわち、
「AUTO」マークを点灯(駆動)する(ステップ60
4)。Then, it is judged whether or not the automatic strobe mode is set (step 603). If the automatic strobe mode is determined in step 603, the external LCD display means 27 causes the mark M1 shown in FIG.
Turn on (drive) the "AUTO" mark (step 60)
4).
【0169】また、ステップ603において自動ストロ
ボモードではないと判断した場合には、露出補正モード
か否かを判断する(ステップ605)。ステップ605
において露出補正モードと判断した場合には、外部LC
D表示手段27により、図22に示すマークM4を点灯
する(ステップ606)。If it is determined in step 603 that the automatic strobe mode is not set, it is determined whether or not the exposure correction mode is set (step 605). Step 605
If the exposure compensation mode is determined in
The mark M4 shown in FIG. 22 is turned on by the D display means 27 (step 606).
【0170】また、ステップ605において露出補正モ
ードではないと判断した場合には、外部LCD表示手段
27により、図22に示すマークM3を点灯する(ステ
ップ607)。If it is determined in step 605 that the mode is not the exposure correction mode, the mark M3 shown in FIG. 22 is turned on by the external LCD display means 27 (step 607).
【0171】次いで、ストロボ“OFFモード”か否か
を判断する(ステップ608)。ステップ608におい
てストロボ“OFFモード”と判断した場合には、外部
LCD表示手段27により、図22に示すマークM2を
点灯する(ステップ609)。Then, it is judged whether or not the strobe is in the "OFF mode" (step 608). When it is determined in step 608 that the flash is in the "OFF mode", the mark M2 shown in FIG. 22 is turned on by the external LCD display means 27 (step 609).
【0172】ステップ604、606または609の
後、または、ステップ608においてストロボ“OFF
モード”ではないと判断した場合には、修正ソフト6の
ステップ951にリターンし、この後、露出補正モード
か否かを判断する(ステップ952)。After step 604, 606 or 609, or in step 608, the strobe is turned off.
If it is determined that the mode is not "mode", the process returns to step 951 of the correction software 6, and thereafter it is determined whether or not the exposure correction mode is set (step 952).
【0173】ステップ952において露出補正モードと
判断した場合には、外部LCD表示手段27により、図
22に示すマークM3を点灯し(ステップ953)、次
いで、外部LCD表示手段27により、図22に示すマ
ークM2を点灯する(ステップ954)。これにより、
露出補正モードの変更表示仕様での出力がなされる。し
かし、このままリターンしたのでは、再度、モード表示
処理のステップ602以降が実行されてしまうので、戻
り番地を変更する必要がある。When it is determined in step 952 that the exposure correction mode is set, the mark M3 shown in FIG. 22 is turned on by the external LCD display means 27 (step 953), and then the external LCD display means 27 is shown in FIG. The mark M2 is turned on (step 954). This allows
Output of the exposure compensation mode is displayed according to the display specifications. However, if the process returns as it is, step 602 and the subsequent steps of the mode display process will be executed again, so it is necessary to change the return address.
【0174】ステップ952において露出補正モードで
はないと判断した場合、または、ステップ954の後、
メモリーADRにI番地をセットし(ステップ95
5)、この後、修正管理1処理のステップ219にリタ
ーンする。If it is determined in step 952 that the exposure compensation mode is not set, or after step 954,
Set address I in memory ADR (step 95
5) After that, the process returns to step 219 of the correction management 1 process.
【0175】次いで、図5に示すように、EEPROM
8から常駐データを読み出し、その常駐データをRAM
の280H〜2B7Hに書き込む(ステップ220)。
以下、前述したように、ステップ221以降を実行し、
スタックに書き込まれているネスト1の戻り番地(H番
地)を、メモリーADRにセットされている番地(I番
地)に書き換え(ステップ225)、この後、モード表
示処理のステップ609の後の「I番地」にリターンす
る。なお、戻り番地がH番地からI番地に変更されたた
め、ステップ602〜609は、それぞれ実行されな
い。Then, as shown in FIG.
Read the resident data from 8 and store the resident data in RAM
280H to 2B7H (step 220).
Hereinafter, as described above, the steps 221 and thereafter are executed,
The return address (address H) of the nest 1 written in the stack is rewritten to the address (address I) set in the memory ADR (step 225), and thereafter, "I" after step 609 of the mode display processing. Return to the address. Since the return address has been changed from the H address to the I address, steps 602-609 are not executed.
【0176】以上で、このモード表示処理は終了し、メ
インルーチンにリターンする。この実施例4では、モー
ド表示処理の変更が必要であるとともに、修正ソフト6
の実行後、再度、修正前の処理が実行されてしまう問題
があり、これも解消した。This is the end of the mode display process, and the process returns to the main routine. In the fourth embodiment, it is necessary to change the mode display processing and the correction software 6
After executing, there was a problem that the process before correction was executed again, and this was also solved.
【0177】すなわち、修正ソフト6から、修正ソフト
6を含む処理の呼び出しを可能とすることで(この場合
は修正ソフト6は実行されない)、修正管理1処理を元
ソフトの先頭位置から最終位置に移動させたのと同じ効
果が得られる。そして、これにより、元ソフトが再び実
行されてしまうのを防止することができる。That is, by making it possible to call a process including the correction software 6 from the correction software 6 (in this case, the correction software 6 is not executed), the correction management 1 processing is performed from the start position to the end position of the original software. You can get the same effect as moving it. Then, this makes it possible to prevent the original software from being executed again.
【0178】また、修正ソフト6は、実行時間の制約が
厳しくないので、非常駐とし、実行時にRAMにコピー
される。これにより、スタック領域の余りが不足してい
ても必要な数の修正ソフトに対応することができる。Further, since the modification software 6 is not strict in execution time, it is made nonresident and copied to the RAM at the time of execution. As a result, even if the stack area is insufficient, it is possible to deal with the necessary number of correction software.
【0179】このように本実施例のカメラ1によれば、
修正管理処理(修正管理1処理、修正管理2処理)が呼
び出されると、スタックから取得したアドレス情報、す
なわち戻り番地と、修正情報のうちの修正ソフト追加位
置情報とに基づいて、どの修正ソフトを実行するのか
(いずれの修正ソフトも実行しないか)が判別され、対
応する修正ソフトが実行されるので、ソフト設計者は、
ソフトの任意の位置に修正管理処理の呼び出し命令を書
き込むことにより、その呼び出し命令の位置に修正ソフ
トの追加が可能なソフトを設計することができる。As described above, according to the camera 1 of this embodiment,
When the modification management process (modification management 1 process, modification management 2 process) is called, which modification software is selected based on the address information acquired from the stack, that is, the return address and the modification software addition position information of the modification information. It is determined whether to execute (whether or not to execute any correction software), and the corresponding correction software is executed.
By writing the call command for the modification management process at an arbitrary position of the software, it is possible to design the software in which the modification software can be added at the position of the call command.
【0180】そして、ソフト変更したシングルチップマ
イコンの開発という労力、時間および費用のかかる方法
によらずに、修正ソフトおよび修正情報(修正ソフト追
加位置情報、修正ソフト格納位置情報、コピー情報)を
EEPROM8に書き込むことにより、容易に、ソフト
を変更することができる。Then, the correction software and the correction information (correction software addition position information, correction software storage position information, copy information) are stored in the EEPROM 8 regardless of the labor-consuming, time-consuming, and costly method of developing a software-modified single-chip microcomputer. You can easily change the software by writing in.
【0181】これにより、例えば、ソフトのバグの修正
(削除)やカメラ1の機能の向上等を図ることができ
る。また、カメラ1では、修正ソフトおよび修正情報
を、常駐データと、非常駐データとに分別してEEPR
OM8に記録し、原則として、常駐データは、常時RA
Mに記録され、非常駐データは、ソフトが実行される際
RAMにコピーされるようになっているので、シングル
チップマイコンのRAMの利用効率を向上することがで
きる。特に、RAMを大容量のものに交換することな
く、多くの修正ソフトを実行(追加)することができ、
ソフトの修正の幅が広がる。This makes it possible, for example, to correct (delete) a software bug or improve the function of the camera 1. In addition, the camera 1 separates the correction software and the correction information into resident data and non-resident data, and EEPR.
It is recorded in OM8, and in principle, resident data is always RA.
Since the non-resident data recorded in M is copied to the RAM when the software is executed, the RAM utilization efficiency of the single-chip microcomputer can be improved. In particular, it is possible to execute (add) many correction software without replacing the RAM with a large capacity one.
The range of software revisions expands.
【0182】所定の修正ソフトを常駐データまたは非常
駐データのいずれかに選定する基準は、下記のようにす
れば、該修正ソフトを実行してソフトを変更する際、支
障がなく好ましい。If the predetermined correction software is selected as either the resident data or the non-resident data, the following is preferable because there is no problem when executing the correction software and changing the software.
【0183】すなわち、ソフトの実行開始までの時間を
できるだけ短縮したい修正ソフトは、常駐データとする
ことにより、その修正ソフトを直ちに実行するように
し、ソフトの実行開始までの時間が比較的長くても支障
がない修正ソフト、すなわち、ソフトのRAMへのコピ
ー時間がかかり、そのコピー時間を考慮しても支障がな
い修正ソフトは、非常駐データとする。That is, the correction software that wants to shorten the time until the software starts to be executed is made to be resident data so that the correction software is immediately executed, and even if the time to start the execution of the software is relatively long. The correction software that does not cause any trouble, that is, the correction software that takes a long time to copy the software to the RAM and has no trouble even when the copy time is taken into consideration is non-resident data.
【0184】また、別の観点からは、記録に多くのメモ
リー領域を必要とする修正ソフト、すなわち、データ量
の多い修正ソフトを非常駐データとすれば、一定のメモ
リー容量において、他の多くの修正ソフトや修正情報を
常駐データとすることができ、RAMの利用効率が向上
する。From another point of view, if the correction software that requires a large memory area for recording, that is, the correction software with a large amount of data is nonresident data, many other corrections can be made with a fixed memory capacity. Software and modification information can be made resident data, and RAM utilization efficiency is improved.
【0185】また、カメラ1では、非常駐データの修正
ソフトを実行した後、その修正ソフトをRAMから消去
し、再び、常駐データをRAMへコピーするようになっ
ているので、繰り返し、同じ動作で(修正管理処理を実
行することで)、ソフトの修正を行うことができる。Further, in the camera 1, after executing the non-resident data correction software, the correction software is erased from the RAM, and the resident data is copied again to the RAM. Software can be modified by executing the modification management process.
【0186】また、カメラ1では、アドレス情報をスタ
ックのネスト2から取得するようにした修正管理2処理
を有しているので、多くの箇所から呼び出される汎用サ
ブルーチンの所定の位置に、修正管理2処理の呼び出し
命令を1行書き込むだけで、前記サブルーチンの各呼び
出し命令の位置に、それぞれ、所望の修正ソフトを追加
することができる。すなわち、ROMの利用効率を大き
く減少させることなく、多くの箇所に修正ソフトの追加
が可能なソフトを設計することができる。Further, since the camera 1 has the modification management 2 processing for acquiring the address information from the nest 2 of the stack, the modification management 2 is provided at a predetermined position of the general subroutine called from many places. It is possible to add desired correction software to the position of each call instruction of the subroutine by writing one line of the call instruction of the process. That is, it is possible to design software in which correction software can be added to many places without significantly reducing the utilization efficiency of the ROM.
【0187】また、カメラ1の修正ソフト1〜6のうち
修正ソフト5および6は、戻り番地を指定する機能を有
しているので、修正ソフト5や6が実行されることによ
り、修正ソフトで指定させる元ソフトの任意箇所が実質
的に削除、変更されたのと同等の機能が得られる。よっ
て、ソフトの修正の幅が広がる。Further, since the correction software 5 and 6 of the correction software 1 to 6 of the camera 1 have the function of designating the return address, the correction software 5 and 6 are executed, so that The function equivalent to the fact that any part of the designated software is deleted or changed is obtained. Therefore, the range of software modification is expanded.
【0188】また、カメラ1では、修正ソフトを実行し
ているときは、再度、修正ソフトを実行するのを禁止、
すなわち、修正ソフトを実行しているときに、再度、修
正管理処理が呼び出された場合には、該修正管理処理に
おいて何の処理も行わずにリターンするので、修正ソフ
トの中で、修正中の元ソフト(サブルーチン)を呼び出
して実行することができる。すなわち、多重呼び出しが
可能になる。When the correction software is being executed, the camera 1 is prohibited from executing the correction software again.
That is, when the correction management process is called again while the correction software is being executed, the process returns without performing any processing in the correction management process. The original software (subroutine) can be called and executed. That is, multiple calls can be made.
【0189】よって、ソフト(サブルーチン)中に修正
管理処理の呼び出し命令を設けておけば、修正ソフトの
中で、その修正中の元ソフト(サブルーチン)を呼び出
して実行するとともに、戻り番地を所定番地に変更する
ことにより、前記元ソフト(サブルーチン)における修
正管理処理の呼び出し命令を他の位置(例えば、最後)
に設けたのと同等の機能が得られ、ソフトの修正の幅が
広がる。Therefore, if a call instruction for the correction management process is provided in the software (subroutine), the original software (subroutine) being modified is called and executed in the correction software, and the return address is set to the predetermined address. By changing to, the call instruction of the modification management process in the original software (subroutine) is changed to another position (for example, the last).
The same function as that provided in can be obtained, and the range of software modifications can be expanded.
【0190】なお、前記本実施例では、アドレス情報を
スタックのネスト1または2から取得するようになって
いるが、本発明では、これに限らず、アドレス情報をス
タックのネスト3以上から取得するように構成してもよ
い。In this embodiment, the address information is acquired from the nest 1 or 2 of the stack. However, the present invention is not limited to this, and the address information is acquired from the nest 3 or more of the stack. It may be configured as follows.
【0191】本発明のプログラム変更可能な電子装置
は、前記銀塩写真方式のカメラの他に、例えば、スチル
ビデオカメラ、ビデオカメラ、テレビカメラのような各
種カメラや、その他、各種OA機器、家電製品、工業機
械等、マイコン(マイクロプロセッサー)を有するあら
ゆる電子装置に適用される。以上、本発明のプログラム
変更可能な電子装置を、図示の構成例に基づいて説明し
たが、本発明はこれに限定されるものではない。The programmable electronic device of the present invention includes various cameras such as still video cameras, video cameras, and television cameras, in addition to the silver-halide photographic camera, various OA devices, and home appliances. It is applied to all electronic devices with microcomputers such as products and industrial machines. The program changeable electronic device of the present invention has been described above based on the illustrated configuration example, but the present invention is not limited to this.
【0192】[0192]
【発明の効果】以上説明したように、本発明のプログラ
ム変更可能な電子装置によれば、プログラム(ソフトウ
エア)の所定箇所に所望の修正プログラムを追加するこ
とができるので、マイコンを交換することなく、容易
に、そのプログラムを変更することができる。As described above, according to the program changeable electronic device of the present invention, a desired correction program can be added to a predetermined portion of the program (software), so that the microcomputer must be replaced. Without that, the program can be changed easily.
【0193】特に、本発明の電子装置では、常駐データ
と、非常駐データとを設けているので、第3のメモリー
(RAM)の利用効率を向上すること、特に、第3のメ
モリーを大容量のものに交換することなく、多くの修正
プログラムを実行(追加)することができ、よって、プ
ログラムの修正の幅が広がる。Particularly, since the electronic device of the present invention is provided with the resident data and the non-resident data, it is possible to improve the utilization efficiency of the third memory (RAM). In particular, the third memory has a large capacity. Many modification programs can be executed (added) without exchanging them, thus broadening the range of modification of the program.
【図1】本発明のプログラム変更可能な電子装置をカメ
ラに適用した実施例における回路構成例を示すブロック
図である。FIG. 1 is a block diagram showing a circuit configuration example in an embodiment in which a programmable electronic device of the present invention is applied to a camera.
【図2】本発明におけるCPUのアドレス空間を示す模
式図である。FIG. 2 is a schematic diagram showing an address space of a CPU according to the present invention.
【図3】本発明におけるEEPROMのマップを示す図
である。FIG. 3 is a diagram showing an EEPROM map in the present invention.
【図4】本発明におけるリセット処理時のCPUの動作
を示すフローチャートである。FIG. 4 is a flowchart showing the operation of the CPU during reset processing in the present invention.
【図5】本発明におけるリセット後のRAMのアドレス
空間を示す模式図である。FIG. 5 is a schematic diagram showing an address space of a RAM after reset in the present invention.
【図6】本発明における修正管理1処理および修正管理
2処理時のCPUの動作を示すフローチャートである。FIG. 6 is a flowchart showing the operation of the CPU during the correction management 1 processing and the correction management 2 processing according to the present invention.
【図7】本発明における修正管理1処理および修正管理
2処理時のCPUの動作を示すフローチャート(図6の
続き)である。FIG. 7 is a flowchart (continuation of FIG. 6) showing the operation of the CPU during the correction management 1 process and the correction management 2 process according to the present invention.
【図8】本発明における測光・演算処理時のCPUの動
作を示すフローチャートである。FIG. 8 is a flowchart showing the operation of the CPU during photometry / calculation processing in the present invention.
【図9】本発明における測光・演算処理時のCPUの動
作を示すフローチャート(図8の続き)である。FIG. 9 is a flowchart (continuation of FIG. 8) showing the operation of the CPU at the time of photometry / calculation processing in the present invention.
【図10】本発明における修正ソフト1実行時のCPU
の動作を示すフローチャートである。FIG. 10 is a CPU when executing the correction software 1 according to the present invention.
3 is a flowchart showing the operation of FIG.
【図11】本発明における修正ソフト2実行時のCPU
の動作を示すフローチャートである。FIG. 11 is a CPU when executing the correction software 2 according to the present invention.
3 is a flowchart showing the operation of FIG.
【図12】本発明におけるセルフ撮影モードでの撮影時
のセルフランプの動作を示すタイミングチャートであ
る。FIG. 12 is a timing chart showing the operation of the self-lamp during shooting in the self-shooting mode according to the present invention.
【図13】本発明におけるセルフウェイト処理時のCP
Uの動作を示すフローチャートである。FIG. 13 is a CP during self-wait processing according to the present invention.
It is a flowchart which shows operation | movement of U.
【図14】本発明におけるタイマスタート処理時のCP
Uの動作を示すフローチャートである。FIG. 14 is a CP during timer start processing according to the present invention.
It is a flowchart which shows operation | movement of U.
【図15】本発明における修正ソフト3実行時のCPU
の動作を示すフローチャートである。FIG. 15 is a CPU when executing the correction software 3 according to the present invention.
3 is a flowchart showing the operation of FIG.
【図16】本発明における修正ソフト4実行時のCPU
の動作を示すフローチャートである。FIG. 16 is a CPU when executing the correction software 4 according to the present invention.
3 is a flowchart showing the operation of FIG.
【図17】本発明におけるバッテリーチェック処理時の
CPUの動作を示すフローチャートである。FIG. 17 is a flowchart showing the operation of the CPU during the battery check process in the present invention.
【図18】本発明における修正ソフト5実行時のCPU
の動作を示すフローチャートである。FIG. 18 is a CPU when executing the correction software 5 according to the present invention.
3 is a flowchart showing the operation of FIG.
【図19】本発明におけるモード表示処理時のCPUの
動作を示すフローチャートである。FIG. 19 is a flowchart showing the operation of the CPU at the time of mode display processing in the present invention.
【図20】本発明における修正ソフト6実行時のRAM
のアドレス空間を示す模式図である。FIG. 20 is a RAM when executing the correction software 6 according to the present invention.
FIG. 3 is a schematic diagram showing an address space of FIG.
【図21】本発明における修正ソフト6実行時のCPU
の動作を示すフローチャートである。FIG. 21 is a CPU when executing the correction software 6 according to the present invention.
3 is a flowchart showing the operation of FIG.
【図22】本発明におけるモード表示の各マークを示す
模式図である。FIG. 22 is a schematic diagram showing each mark of mode display in the present invention.
1 カメラ
2 測光回路(CdS)
3 補助投光回路
4 パッシブAF回路
5 シャッター・ピント駆動回路
6 ストロボ回路
7 シングルチップマイコン(CPU)
8 データ記憶・読み出し素子(EEPR
OM)
9 フィルム走行検知回路
11 デートLEDドライバ回路
12 写し込み用LED
13 ズーム情報検出手段(ズームコード)
14 ISO情報検出手段(DXコード)
15 測光スイッチ
16 レリーズスイッチ
17 モードスイッチ
18 ストロボスイッチ
19 デートスイッチ
21 ドライブスイッチ
22 裏蓋スイッチ
23 メインスイッチ
24 テレスイッチ
25 ワイドスイッチ
26 パノラマスイッチ
27 外部LED表示手段
28 赤ランプ・緑ランプ・セルフランプ
29 フィルムモータ駆動回路
31 フィルムモータ
32 ズームモータ駆動回路
33 ズームモータ
101〜105 ステップ
201〜225 ステップ
301〜318 ステップ
401〜417 ステップ
451〜453 ステップ
501〜511 ステップ
601〜609 ステップ
701 ステップ
751〜756 ステップ
801 ステップ
851 ステップ
901〜903 ステップ
951〜955 ステップ
M1〜M4 マーク1 Camera 2 Photometry Circuit (CdS) 3 Auxiliary Light Projection Circuit 4 Passive AF Circuit 5 Shutter / Focus Drive Circuit 6 Strobe Circuit 7 Single Chip Microcomputer (CPU) 8 Data Storage / Readout Element (EEPR)
OM) 9 Film running detection circuit 11 Date LED driver circuit 12 Imprint LED 13 Zoom information detection means (zoom code) 14 ISO information detection means (DX code) 15 Photometric switch 16 Release switch 17 Mode switch 18 Strobe switch 19 Date switch 21 Drive Switch 22 Back Switch 23 Main Switch 24 Tele Switch 25 Wide Switch 26 Panorama Switch 27 External LED Display 28 Red Lamp / Green Lamp / Self Lamp 29 Film Motor Drive Circuit 31 Film Motor 32 Zoom Motor Drive Circuit 33 Zoom Motor 101 Steps 105 to 225 Steps 301 to 318 Steps 401 to 417 Steps 451 to 453 Steps 501 to 511 Steps 601 to 609 Steps 701 step 751 to 756 step 801 step 851 step 901-903 step 951-955 step M1~M4 mark
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭55−118149(JP,A) 特開 昭57−155642(JP,A) 特開 平4−252334(JP,A) 特開 平3−257644(JP,A) 特開 平6−282488(JP,A) 特開 平4−318624(JP,A) 特開 平5−100838(JP,A) 特開 平6−187143(JP,A) 特開 平6−222917(JP,A) 特開 平5−233266(JP,A) 特開 昭62−274341(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 9/06 G06F 9/46 G06F 12/08 G06F 12/12 G06F 9/40 - 9/42 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-55-118149 (JP, A) JP-A-57-155642 (JP, A) JP-A-4-252334 (JP, A) JP-A-3- 257644 (JP, A) JP-A-6-282488 (JP, A) JP-A-4-318624 (JP, A) JP-A-5-100838 (JP, A) JP-A-6-187143 (JP, A) JP-A-6-222917 (JP, A) JP-A-5-233266 (JP, A) JP-A-62-274341 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G06F 9/06 G06F 9/46 G06F 12/08 G06F 12/12 G06F 9/40-9/42
Claims (6)
れた第1の不揮発性メモリーと、 前記制御動作プログラムを変更する修正プログラムおよ
び該修正プログラムに関する修正情報が、常駐データと
非常駐データとに分別して記録された第2の不揮発性メ
モリーと、 書き換え可能な第3のメモリーと、 少なくとも、前記第2の不揮発性メモリーから前記常駐
データおよび前記非常駐データを読み出す読出手段と、 少なくとも、前記常駐データおよび前記非常駐データを
前記第3のメモリーに書き込む書込手段と、 前記修正プログラムが常駐データまたは非常駐データの
いずれであるかを判別する判別手段と、 少なくとも、前記制御動作プログラムおよび前記修正プ
ログラムを実行する実行手段とを有し、 前記実行手段により、前記制御動作プログラム内の所定
の位置で、前記修正プログラムを実行して、該制御動作
プログラムを変更可能な電子装置であって、 予め、前記読出手段により、前記第2の不揮発性メモリ
ーから前記常駐データを読み出し、前記書き込み手段に
より、該常駐データを前記第3のメモリーに書き込み、 前記修正プログラムの実行に際し、前記判別手段によ
り、該修正プログラムが常駐データまたは非常駐データ
のいずれであるかを判別し、前記修正プログラムが常駐
データであると判別した場合には、前記実行手段によ
り、当該修正プログラムを直ちに実行し、前記修正プロ
グラムが非常駐データであると判別した場合には、前記
読出手段により、前記第2の不揮発性メモリーから当該
修正プログラムを読み出し、前記書込手段により、該修
正プログラムを前記第3のメモリーの前記常駐データが
記録されている領域に書き込み、この後、前記実行手段
により、その修正プログラムを実行することを特徴とす
るプログラム変更可能な電子装置。1. A first non-volatile memory in which a control operation program of an electronic device is recorded, a correction program for changing the control operation program and correction information about the correction program are classified into resident data and non-resident data. Recorded second non-volatile memory, rewritable third memory, at least reading means for reading the resident data and the non-resident data from the second non-volatile memory, at least the resident data and the Writing means for writing non-resident data in the third memory; discriminating means for discriminating whether the correction program is resident data or non-resident data; and executing at least the control operation program and the correction program. Means for controlling the control by the execution means. An electronic device capable of changing the control operation program by executing the correction program at a predetermined position in the operation program, wherein the resident data is previously read from the second non-volatile memory by the reading means. The reading means writes the resident data in the third memory by the writing means, and when the correction program is executed, the determining means determines whether the correction program is resident data or non-resident data, and When it is determined that the correction program is resident data, the execution unit immediately executes the correction program, and when it is determined that the correction program is non-resident data, the reading unit causes the second program to be executed. The correction program is read from the non-volatile memory of, and the correction program is read by the writing means. Write beam to a region where the resident data of the third memory is recorded, thereafter, by the execution means, reprogrammable electronic apparatus characterized by executing the patch.
なくとも1つの修正管理処理プログラムが記録された第
1の不揮発性メモリーと、 前記制御動作プログラムを変更する修正プログラムおよ
び該修正プログラムに関する修正情報が、常駐データと
非常駐データとに分別して記録された第2の不揮発性メ
モリーと、 書き換え可能な第3のメモリーと、 少なくとも、前記第2の不揮発性メモリーから前記常駐
データおよび前記非常駐データを読み出す読出手段と、 少なくとも、前記常駐データおよび前記非常駐データを
前記第3のメモリーに書き込む書込手段と、 前記修正情報と、前記制御動作プログラム内の実行位置
を示すアドレス情報とに基づいて、対応する修正プログ
ラムがあるか否かを判別する第1の判別手段と、 前記修正プログラムが常駐データまたは非常駐データの
いずれであるかを判別する第2の判別手段と、 少なくとも、前記制御動作プログラムおよび前記修正プ
ログラムを実行する実行手段とを有する前記制御動作プ
ログラムを変更可能な電子装置であって、 前記第1の不揮発性メモリーに記録された前記制御動作
プログラム内の少なくとも1つの所定の位置に、前記修
正管理処理プログラムを呼び出すコール手段が設けられ
ており、 予め、前記読出手段により、前記第2の不揮発性メモリ
ーから前記常駐データを読み出し、前記書き込み手段に
より、該常駐データを前記第3のメモリーに書き込み、 前記コール手段により前記修正管理処理プログラムが呼
び出されると、前記第1の判別手段により、前記修正情
報と前記アドレス情報とに基づいて、対応する修正プロ
グラムがあるか否かを判別し、対応する修正プログラム
があると判別した場合には、前記第2の判別手段によ
り、その対応する修正プログラムが常駐データまたは非
常駐データのいずれであるかを判別し、対応する修正プ
ログラムが常駐データであると判別した場合には、前記
実行手段により、当該修正プログラムを直ちに実行し、
対応する修正プログラムが非常駐データであると判別し
た場合には、前記読出手段により、前記第2の不揮発性
メモリーから当該修正プログラムを読み出し、前記書込
手段により、該修正プログラムを前記第3のメモリーの
前記常駐データが記録されている領域に書き込み、この
後、前記実行手段により、その修正プログラムを実行す
ることを特徴とするプログラム変更可能な電子装置。2. A first non-volatile memory in which a control operation program of an electronic device and at least one modification management processing program are recorded, a modification program for changing the control operation program, and modification information about the modification program are resident. A second non-volatile memory separately recorded into data and non-resident data; a rewritable third memory; and a reading means for reading at least the resident data and the non-resident data from the second non-volatile memory. At least based on the writing means for writing the resident data and the non-resident data in the third memory, the correction information, and the address information indicating the execution position in the control operation program, a corresponding correction program is stored. First determining means for determining whether or not there is a correction program An electronic device capable of changing the control operation program, including second determination means for determining whether the RAM is resident data or non-resident data, and at least execution means for executing the control operation program and the correction program. A call means for calling the correction management processing program is provided at at least one predetermined position in the control operation program recorded in the first non-volatile memory. , The resident data is read from the second non-volatile memory, the resident data is written to the third memory by the writing unit, and the modification management processing program is called by the calling unit, Based on the correction information and the address information, the discriminating means makes correspondence. If there is a corresponding correction program, and if it is determined that there is a corresponding correction program, the second determining means determines whether the corresponding correction program is resident data or non-resident data. If it is determined that the corresponding correction program is resident data, the execution means immediately executes the correction program,
When it is determined that the corresponding correction program is non-resident data, the reading unit reads the correction program from the second non-volatile memory, and the writing unit reads the correction program from the third memory. An electronic device capable of changing a program, characterized in that the resident data is written in an area in which the resident data is recorded, and then the correction program is executed by the executing means.
追加する位置に関する修正プログラム追加位置情報を有
し、 前記第1の判別手段は、前記修正プログラム追加位置情
報と前記アドレス情報とのアドレスが互いに一致する場
合には、対応する修正プログラムがあると判別する請求
項2に記載のプログラム変更可能な電子装置。3. The correction information has correction program addition position information relating to a position to which the correction program is added, and the first determination means has the addresses of the correction program addition position information and the address information mutually. 3. The program changeable electronic device according to claim 2, wherein when there is a match, it is determined that there is a corresponding correction program.
グラムを実行した後は、前記読出手段により、前記第2
の不揮発性メモリーから前記常駐データを読み出し、前
記書込手段により、前記第3のメモリーから該修正プロ
グラムを消去して、該常駐データを再び前記第3のメモ
リーに書き込む請求項1ないし3のいずれかに記載のプ
ログラム変更可能な電子装置。4. After the execution means executes the non-resident data correction program, the reading means causes the second
4. The resident data is read from the non-volatile memory, the erasing program is erased from the third memory by the writing means, and the resident data is written to the third memory again. An electronic device capable of changing a program according to [1].
障がない修正プログラムを前記非常駐データとする請求
項1ないし4のいずれかに記載のプログラム変更可能な
電子装置。5. The program changeable electronic device according to claim 1, wherein the non-resident data is a correction program that causes no problem even if the time until the start of execution is relatively long.
え可能なメモリーである請求項1ないし5のいずれかに
記載のプログラム変更可能な電子装置。6. The program changeable electronic device according to claim 1, wherein the second non-volatile memory is a rewritable memory.
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10047995A JP3533005B2 (en) | 1995-03-31 | 1995-03-31 | Programmable electronic device |
| US08/878,670 US5809345A (en) | 1995-03-31 | 1997-06-20 | Programmable electronic device |
| US09/119,750 US6151450A (en) | 1995-03-31 | 1998-07-21 | Programmable electronic device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10047995A JP3533005B2 (en) | 1995-03-31 | 1995-03-31 | Programmable electronic device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH08272602A JPH08272602A (en) | 1996-10-18 |
| JP3533005B2 true JP3533005B2 (en) | 2004-05-31 |
Family
ID=14275063
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10047995A Expired - Fee Related JP3533005B2 (en) | 1995-03-31 | 1995-03-31 | Programmable electronic device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3533005B2 (en) |
-
1995
- 1995-03-31 JP JP10047995A patent/JP3533005B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH08272602A (en) | 1996-10-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5809345A (en) | Programmable electronic device | |
| JP3533004B2 (en) | Programmable electronic device | |
| US5038165A (en) | Camera with built-in self-timer | |
| JP3533005B2 (en) | Programmable electronic device | |
| JPH04350630A (en) | Camera | |
| US5561493A (en) | Method of controlling an operation of an electronically controlled camera | |
| JP3021566B2 (en) | camera | |
| JPH0481732A (en) | Camera using ic card | |
| JP3436943B2 (en) | Camera with date display function | |
| GB2258317A (en) | Exposure control apparatus of camera | |
| US5610675A (en) | Apparatus for inserting date information in camera film | |
| US5848304A (en) | Camera having automatic program zoom mode | |
| JP2004271845A (en) | Camera and program for camera | |
| JP2582674Y2 (en) | Camera with built-in flash control circuit that can change screen size | |
| JP3176616B2 (en) | Microscope photography equipment | |
| JP3411622B2 (en) | Programmable camera | |
| JP2723125B2 (en) | camera | |
| JP3495455B2 (en) | Camera with shooting information recording function | |
| JPH0723775Y2 (en) | Film data reader | |
| JP3431954B2 (en) | Camera with red-eye reduction function | |
| JP3066392B2 (en) | camera | |
| JP2002229092A (en) | Exposure control device, exposure control method, and storage medium | |
| JP3500470B2 (en) | camera | |
| JPH09222653A (en) | Optical equipment | |
| JPH11282064A (en) | camera |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040113 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040218 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040305 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090312 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090312 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100312 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |