JP2506347B2 - E ↑ 2 ▼ PROM built-in camera - Google Patents

E ↑ 2 ▼ PROM built-in camera

Info

Publication number
JP2506347B2
JP2506347B2 JP61242806A JP24280686A JP2506347B2 JP 2506347 B2 JP2506347 B2 JP 2506347B2 JP 61242806 A JP61242806 A JP 61242806A JP 24280686 A JP24280686 A JP 24280686A JP 2506347 B2 JP2506347 B2 JP 2506347B2
Authority
JP
Japan
Prior art keywords
prom
film
film sensitivity
microcomputer
data
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
Application number
JP61242806A
Other languages
Japanese (ja)
Other versions
JPS6396641A (en
Inventor
典夫 石川
政昭 中井
学 井上
俊彦 石村
明彦 藤野
博司 大塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP61242806A priority Critical patent/JP2506347B2/en
Priority to US07/106,774 priority patent/US4783674A/en
Publication of JPS6396641A publication Critical patent/JPS6396641A/en
Priority to US07/268,471 priority patent/US4912492A/en
Priority to US07/484,348 priority patent/US4978982A/en
Application granted granted Critical
Publication of JP2506347B2 publication Critical patent/JP2506347B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [技術分野] 本発明は、マイクロコンピュータによって制御を行う
ようにしたカメラ、特にE2PROMを内蔵し、カメラに関す
るデータをE2PROMに書込むようにしたE2PROM内蔵カメラ
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention is a camera and to perform control by the microcomputer, in particular a built-in E 2 PROM, E 2 PROM which the data related to the camera and to write to the E 2 PROM It concerns a built-in camera.

[従来技術] 近年、マイクロコンピュータを搭載し、このマイクロ
コンピュータによって焦点調節や露光量の制御を行うよ
うにしたカメラが種々市販されている。
[Prior Art] In recent years, various cameras equipped with a microcomputer, in which focus adjustment and exposure amount control are performed by the microcomputer, are commercially available.

その場合、通常の撮影情報は、マイクロコンピュータ
のRAMにメモリされるが、RAMのメモリは、電源のオフに
よって消去されるため、例えば、通算レリーズ回数とい
った撮影情報はメモリできない。
In that case, normal shooting information is stored in the RAM of the microcomputer, but since the memory of the RAM is erased when the power is turned off, shooting information such as the total number of releases cannot be stored.

勿論、RAMに対してバックアップ用電源を設け、記憶
を保持するようにすればよいが、その場合には、バック
アップ電池を装備する必要があり、そのためのスペース
を設ける必要があるうえ、コストアップとなる。この
点、電気的に消込み、書込み可能なE2PROMはバックアッ
プ電源が不要であるので有利であるが、現在市場に提供
されているE2PROMは、書換え回数に制限があり、E2PROM
の採用及びその制御には、解決すべき問題がある。
Of course, a backup power source may be provided for the RAM to retain the memory, but in that case, it is necessary to equip a backup battery, and it is necessary to provide a space for that, which increases cost. Become. In this regard, electrically clearing, but writable E 2 PROM is advantageous because the backup power supply is unnecessary, E 2 PROM currently provided on the market, there is a limit to the number of rewriting, E 2 PROM
There is a problem to be solved in adopting and controlling it.

特開昭60−61731号公報には、E2PROMを内蔵し、フイ
ルム枚数等の撮影情報及び巻上げスイッチ状態を示すデ
ータを、電源電池の取外しや電圧低下時にRAMからE2PRO
Mに書込むようにし、電池が装着されたときに書込んだ
データを読出すようにしたカメラが提案されている。し
かしながら、上記のカメラでは、全てのデータを一様に
書込むようにしており、個々のデータの内容に応じた書
込みは行なわれていない。
In Japanese Patent Laid-Open No. 60-61731, an E 2 PROM is built in, and shooting information such as the number of films and data indicating a winding switch state are stored in the E 2 PRO when the power supply battery is removed or the voltage drops.
A camera has been proposed in which data is written in M and the written data is read when a battery is attached. However, in the above-mentioned camera, all data is written uniformly, and writing according to the content of each data is not performed.

[発明の目的] 本発明の基本的な目的は、書込むべきデータの内容に
応じた書換えを可能としたE2PROM内蔵カメラを提供する
ことである。より具体的には、撮影上重要な情報であり
ながら、しばしばその設定を忘れてしまうフイルム感度
を捉え、フイルム感度の書換えが必要なときにのみ、フ
イルム感度をE2PROMに書込むようにしたE2PROM内蔵カメ
ラを提供することを目的としている。
[Object of the Invention] A basic object of the present invention is to provide an E 2 PROM built-in camera capable of rewriting according to the content of data to be written. More specifically, it captures the film sensitivity, which is important information for shooting but often forgets its setting, and writes the film sensitivity to E 2 PROM only when the film sensitivity needs to be rewritten. It aims to provide a camera with built-in E 2 PROM.

[発明の構成] 上記目的を達成するため、本発明に係るE2PROM内蔵カ
メラは、制御用マイクロコンピュータを内蔵するととも
に、制御用マイクロコンピュータによって書き込み・消
去が電気的に制御されるE2PROMを内蔵しており、該E2PR
OMには、少なくともフィルム感度を記憶するメモリ領域
が設けられている。一方、フィルム感度変更モードを設
定するモード設定手段と、フィルム感度変更モードが設
定されたときに、所定の外部操作により変更すべきフィ
ルム感度を設定するフィルム感度設定手段と、設定され
たフィルム感度に基づいてE2PROMのフィルム感度用メモ
リの書換えが必要か否かを判定する書換え判定手段と、
書換え判定手段により書換えが必要であると判定された
場合に、フィルム感度変更モードの解除に応答して上記
フィルム感度設定手段によって設定されたフィルム感度
をE2PROMのフィルム感度メモリ領域に書込む書込み手段
とを備え、フィルム感度のE2PROMへの書込みを制御す
る。
[Configuration of the Invention] To achieve the above object, E 2 PROM built-in camera according to the present invention, with a built-in control microcomputer, E 2 PROM which writing and erasing are electrically controlled by the control microcomputer With built-in E 2 PR
The OM has a memory area for storing at least film sensitivity. On the other hand, the mode setting means for setting the film sensitivity changing mode, the film sensitivity setting means for setting the film sensitivity to be changed by a predetermined external operation when the film sensitivity changing mode is set, and the set film sensitivity Rewriting determination means for determining whether or not rewriting of the E 2 PROM film sensitivity memory is necessary,
When the rewriting determination means determines that rewriting is necessary, in response to the release of the film sensitivity changing mode, the film sensitivity set by the film sensitivity setting means is written in the film sensitivity memory area of the E 2 PROM. And means for controlling the writing of the film speed to the E 2 PROM.

本発明では、フイルム感度変更モードでフイルム感度
が設定されると、設定されたフイルム感度をE2PROMに書
込みに行くか否かが判定され書込むべきであると判定さ
れると、フイルム感度変更モードが解除されたときに、
E2PROMに設定されたフイルム感度を書込む。
In the present invention, when the film sensitivity is set in the film sensitivity changing mode, it is judged whether or not the set film sensitivity is to be written in the E 2 PROM, and if it is judged that the film sensitivity should be written, the film sensitivity change is made. When the mode is released,
Write the film sensitivity set in E 2 PROM.

[実施例] 以下、図面を参照しながら、本発明の実施例を具体的
に説明する。
EXAMPLES Examples of the present invention will be specifically described below with reference to the drawings.

第1図は本発明を達成する為の一実施例の回路ブロッ
ク図である。
FIG. 1 is a circuit block diagram of an embodiment for achieving the present invention.

(E)は各回路に電源を供給する電池、(μC)は、
カメラ全体を制御するマイクロコンピュータ(以下マイ
コンと言う)である。カメラ全体を制御するマイコン
(μC)のフローチャートに関しては後述する。(E2PR
OM)は、電気的に書き込み、消去可能なROMであり、内
部には、昇圧回路が内蔵され、書込み信号が入力される
と、自動的に消去が行なわれると同時に書込みに必要な
電圧に昇圧され、ROMへの書込みが行なえるようにな
る。(LMC)は、被写体の輝度を測光する測光回路で、
マイコン(μC)へは、輝度情報として、アペックス系
で示されたデジタル信号を出力する。(LEC)は、不図
示の交換レンズ固有の開放絞り値をアペックス系で示さ
れたデジタル信号でマイコン(μC)へ出力するレンズ
回路、(AEC)は、マイコン(μC)からの露出情報に
もとづいて、絞り及びフォーカルプレーンシャッタを制
御する露出制御回路、(MOD)は、フイルムの一駒巻上
げを行なうべく、モータを制御する一駒巻上げ回路、
(ISO)はフイルム容器にフイルム感度、フイルム枚数
等のフイルム情報がコード化されて印刷されているフイ
ルム(以下DXフイルムと言う)が使用されたときに、フ
イルム感度を自動的に読みとり、アペックス系で示され
たデジタル信号をマイコン(μC)へ出力すると共に、
そのフイルムのフイルム枚数をも自動的に読みとりマイ
コン(μC)へ出力するフイルム感度読取回路である。
(DISP)は、マイコン(μC)から出力された信号にも
とづき、各種の表示を行なう表示装置、(BC)は電池電
圧を検出し、所定電圧以下になったときに、カメラ誤動
作を防止すべくカメラの制御を停止するバッテリーチェ
ック回路で、このバッテリーチェック信号がマイコン
(μC)に入力されると、マイコン(μC)は後述の割
込ルーチンBATINTのフローを実行する。(DC−DC)は、
電池電圧が低下したときに、マイコン(μC)及びE2PR
OMに安定した5Vの電源を供給するコンバータ回路であ
る。
(E) is a battery that supplies power to each circuit, (μC) is
A microcomputer that controls the entire camera (hereafter referred to as a microcomputer). The flow chart of the microcomputer (μC) that controls the entire camera will be described later. (E 2 PR
OM) is a ROM that is electrically writable and erasable. It has a built-in booster circuit. When a write signal is input, it is automatically erased and the voltage required for writing is boosted. Then, it becomes possible to write to the ROM. (LMC) is a photometric circuit that measures the brightness of the subject.
A digital signal represented by an apex system is output to the microcomputer (μC) as brightness information. (LEC) is a lens circuit that outputs the open aperture value (not shown) peculiar to the interchangeable lens to the microcomputer (μC) as a digital signal indicated by an apex system, and (AEC) is based on the exposure information from the microcomputer (μC). The exposure control circuit for controlling the diaphragm and the focal plane shutter, (MOD) is a one-frame winding circuit for controlling the motor to wind one frame of the film,
(ISO) automatically reads the film sensitivity when a film (hereinafter referred to as DX film) in which film information such as film sensitivity and the number of films is encoded and printed on the film container is used. While outputting the digital signal indicated by to the microcomputer (μC),
This is a film sensitivity reading circuit that automatically reads the number of films of the film and outputs it to the microcomputer (μC).
(DISP) is a display device that performs various displays based on the signal output from the microcomputer (μC), and (BC) detects the battery voltage to prevent camera malfunctions when the voltage drops below a predetermined voltage. When this battery check signal is input to the microcomputer (μC) in the battery check circuit that stops the control of the camera, the microcomputer (μC) executes the flow of the interrupt routine BATINT described later. (DC-DC) is
When battery voltage drops, microcomputer (μC) and E 2 PR
This is a converter circuit that supplies a stable 5V power to the OM.

次に、マイコン(μC)とE2PROMとの信号ラインを説
明すると、マイコン(μC)とE2PROMとは、E2PROMのRO
Mのアドレスを指定するアドレスバス(AD07)データ
の授受を行なう為のデータバス(O07)、読取り、書
込みの信号を伝達するW/R制御線(/R)、読取り、書
込みの制御を開始する信号を伝達するチップイネーブル
線(CE)、書込み中を示すWrite Busy信号を伝達するWr
ite Busy線(W・Bu)で結合され、夫々の装置には、そ
れに必要とされる端子が設けられている。(Trl)は、
マイコン(μC)E2PROM、表示装置(DISP)以外の装置
に電源を供給する給電トランジスタ、(RR),(CR
は、マイコン(μC)をリセットする為の抵抗及びコン
デンサー、(D1),(D2)は逆充電防止用のダイオー
ド、(CyL)はマイコン(μC)へクロックを供給する
水晶発振子である。
Next, explaining the signal lines of the microcomputer ([mu] C) and E 2 PROM, and the microcomputer ([mu] C) and E 2 PROM, the E 2 PROM RO
Address bus for specifying M address (AD 0 ~ 7 ) Data bus (O 0 ~ 7 ) for transmitting / receiving data, W / R control line (/ R) for transmitting read / write signals, read, Chip enable line (CE) that transmits a signal to start writing control, Wr that transmits a Write Busy signal indicating that writing is in progress
The devices are connected by the it Busy line (W · Bu), and each device is provided with the terminals required for it. (Trl) is
Microcomputer (μC) E 2 PROM, power supply transistor that supplies power to devices other than display device (DISP), ( RR ), ( CR )
Are resistors and capacitors for resetting the microcomputer (μC), (D1) and (D2) are diodes for preventing reverse charging, and (CyL) is a crystal oscillator that supplies a clock to the microcomputer (μC).

次にスイッチ類を説明すると、(S1)は、不図示のレ
リーズ釦の第1の押下によりONする撮影準備スイッチ、
(SISO)はフイルム感度を変更する為のフイルム感度変
更スイッチで、このスイッチ(SISO)と後述のアップ,
ダウンスイッチ(Su),(Sd)とが押下(ON)されるこ
とで、フイルム感度設定値が変更される。又、撮影準備
スイッチ(S1)、フイルム感度変更スイッチ(SISO)の
どちらか一方がONすることによってアンド回路(AN1)
の出力がHighレベル(以下「H」レベル)からLowレベ
ル(以下「L」レベル)に変わり、これにより、マイコ
ン(μC)は所定の動作を行なう。(S2)はレリーズ釦
の第2の押下(第1の押下より深い)によりONするレリ
ーズスイッチで、マイコン(μC)は、このスイッチの
ONによる「H」レベルから「L」レベルへの変化信号が
入力されると、レリーズルーチンを実行し、露出制御、
このあとに続くフイルム巻上げ等の制御を行なう。(S
3)は、露出完了時にONする露出完了スイッチで、フイ
ルムの巻き上げ中に、不図示のチャージ機構によりOFF
される。(S4)は、1駒巻上げ完了時にONし、レリーズ
されることにより、不図示の機構でOFFされる。(S5)
は、裏蓋閉じ検出スイッチで、カメラの裏蓋が閉じられ
たときにONし、このONによる「H」レベルから「L」レ
ベルへと変化する信号がマイコン(μC)に入力される
と、マイコン(μC)は、後述の裏蓋ONの割込ルーチン
を実行し、所定の制御を行なう。(S6)は、フイルムの
有無を検出するフイルム検出スイッチであり、このスイ
ッチは、アースに接している導電性のゴムからなるフイ
ルム巻取室のスプールと、抵抗を介して電源にプルアッ
プされているフイルム押圧片とからなりフイルムがスプ
ールに巻きついているときにOFFとなる。(Su),(S
d)はアップ,ダウンスイッチであり、変更したい情報
のアップ(繰上げ)又はダウン(繰下げ)を行なうとき
に、変更したい情報のスイッチと共にONすることによっ
て、情報のアップ又はダウンを行なうことができる。
Next, the switches will be described. (S1) is a shooting preparation switch which is turned on by first pressing a release button (not shown),
(SISO) is a film sensitivity change switch for changing the film sensitivity. This switch (SISO) and
When the down switches (Su) and (Sd) are pressed (ON), the film sensitivity setting value is changed. The AND circuit (AN1) is activated by turning on either the shooting preparation switch (S1) or the film sensitivity change switch (SISO).
Output changes from a high level (hereinafter “H” level) to a low level (hereinafter “L” level), whereby the microcomputer (μC) performs a predetermined operation. (S2) is a release switch that is turned on by the second depression of the release button (deeper than the first depression). The microcomputer (μC) is
When the change signal from "H" level to "L" level is input by ON, the release routine is executed and the exposure control,
After that, control such as film winding is performed. (S
3) is an exposure completion switch that turns on when the exposure is completed. It is turned off by a charging mechanism (not shown) while the film is being wound.
Is done. (S4) is turned on when the winding of one frame is completed, and is turned off by a mechanism (not shown) when released. (S5)
Is a back cover close detection switch, which is turned on when the back cover of the camera is closed, and when a signal that changes from "H" level to "L" level by this ON is input to the microcomputer (μC), The microcomputer (μC) executes a back cover ON interrupt routine, which will be described later, and performs predetermined control. (S6) is a film detection switch that detects the presence or absence of a film.This switch is pulled up to the power supply via a resistor and a spool of the film winding chamber made of conductive rubber that is in contact with the ground. It turns off when the film is wound around the spool. (Su), (S
Reference numeral d) is an up / down switch, which can be turned up or down by turning on together with the switch for the information to be changed when the information to be changed is moved up (moved up) or down (moved down).

次に、カメラの動作を第2図以降に示したマイコン
(μC)のフローチャートを参照して説明する。
Next, the operation of the camera will be described with reference to the flow chart of the microcomputer (μC) shown in FIG.

〈電池交換〉 電池が交換され、新たに電池がカメラに装填されると
リセット用の抵抗(RR):コンデンサー(CR)を通し
て、マイコン(μC)のリセット端子(RE)に「L」レ
ベルから「H」レベルへと変化する信号が入力される
と、マイコン(μC)は、第2図に示すフローチャート
を実行する。
<Battery replacement> When the battery is replaced and a new battery is installed in the camera, the reset resistor (R R ): capacitor (C R ) through the reset terminal (RE) of the microcomputer (μC) to the “L” level. When a signal that changes from "H" to "H" level is input, the microcomputer (μC) executes the flowchart shown in FIG.

まずマイコン(μC)は、内部のレジスタ及びフラグ
のすべてをリセットし、出力端子(O)及びポート(O
P)を「L」レベルにする(#5,#10)。次にE2PROMに
メモリーされたデータを、内部のレジスタに取込む(#
15)。このデータ取込みは第3図に示すサブルーチンを
実行することにより行なう。このサブルーチンを説明す
る前に、E2PROMのアドレスと、このアドレスに入力され
ているデータについて第1表にもとづいて説明する。
尚、使用しているマイコン(μC)、及びE2PROMは8ビ
ット構成である。
First, the microcomputer (μC) resets all internal registers and flags, and then outputs (O) and ports (O).
P) is set to "L" level (# 5, # 10). Next, the data stored in the E 2 PROM is taken into the internal register (#
15). This data acquisition is performed by executing the subroutine shown in FIG. Before describing this subroutine, the address of the E 2 PROM and the data input to this address will be described based on Table 1.
The microcomputer (μC) and E 2 PROM used have an 8-bit configuration.

まず、E2PROMのアドレス「00」番地には、レリーズ動
作された通算レリーズ回数が1万単位で入力されてお
り、(b0,b1,b2)=(0,0,0),(1,0,0),(0,1,0)
(1,1,0)(☆,☆,1)で、通算レリーズ回数をNとす
ると、夫々N≦1万,1万<N≦2万,2万<N≦3万,3万
<N≦4万,N>4万となっている。これは、E2PROMの書
換え回数の制限による通算レリーズ回数の書換え或い
は、撮影済フイルム枚数の書換えのメモリーの制限を緩
和するために用いられ、具体的には、書換え回数が保証
されている1万回の単位を上記ビットによって検出し、
これによって1万回の書換えが行なわれたことが検出さ
れれば、書換えのバイト(アドレス)を変更するように
している。番地(01),(11),(21),(31)には、
通算レリーズ回数の下位の8ビットの内容がメモリーさ
れることになっており、レリーズ1万回以下では、番地
(01)のメモリー、1万を越えて2万以下では番地(1
1)のメモリー、2万を越えて3万以下では番地(21)
のメモリー、3万を越えて4万以下では番地(31)のメ
モリーが使用される。番地(02),(12),(22),
(32)には、通算レリーズ回数の上位8ビットの内容が
メモリーされ、上述の番地(01),(11),(21),
(31)と夫々対になって、16ビット構成として使用さ
れ、そのときの通算レリーズ回数に対するメモリーの使
用番地は、(01),(11),(21),(31)に対応して
いる。番地(03),(13),(23),(33)は撮影フイ
ルム枚数をメモリーしており、上述と同様に、通算レリ
ーズ回数によって、使い分けられる。番地(04)は、フ
イルム感度をメモリーしている。フイルム感度は、変更
される(書換えを行なう)回数が少ないので、予備のバ
イトを設けていない。
First, at the address "00" of the E 2 PROM, the total number of release operations for release operation is input in 10,000 units, and (b0, b1, b2) = (0,0,0), (1, 0,0), (0,1,0)
(1,1,0) (☆, ☆, 1), where N is the total number of releases, N ≤ 10,000, 10,000 <N ≤ 20,000, <N ≤ 30,000, <N ≦ 40,000 and N> 40,000. This is used to relieve the memory limit for rewriting the total number of releases due to the limitation on the number of rewriting of the E 2 PROM, or rewriting the number of photographed films. Specifically, the number of rewriting is guaranteed 1 Ten thousand units are detected by the above bits,
As a result, if it is detected that rewriting has been performed 10,000 times, the rewriting byte (address) is changed. Addresses (01), (11), (21), (31)
The contents of the lower 8 bits of the total number of releases are to be memorized. If the release is 10,000 times or less, the address (01) is the memory, and if the release is 10,000 or more and 20,000 or less, the address (1
Memory of 1) Addresses above 20,000 and below 30,000 (21)
Memory of 30,000 and 40,000 or less, the memory of the address (31) is used. Address (02), (12), (22),
The contents of the upper 8 bits of the total number of releases are stored in (32), and the addresses (01), (11), (21),
It is used as a 16-bit configuration in pairs with (31), and the memory use address for the total number of releases at that time corresponds to (01), (11), (21), (31). . The addresses (03), (13), (23), and (33) store the number of photo films, and are used properly according to the total number of releases, as described above. The address (04) stores the film sensitivity. Since the number of times the film sensitivity is changed (rewriting) is small, no spare bit is provided.

フローチャートにもどり、第3図(I),(II)に示
したE2PROMからのデータ読込みサブルーチンのフローを
説明する。
Returning to the flowchart, the flow of the data reading subroutine from the E 2 PROM shown in FIGS. 3 (I) and (II) will be described.

まず、マイコン(μC)はデータ読込み中にそのデー
タが誤ったデータにならないようにこのフローへの全て
の割込を禁止する(#100)。次に、読込むべきデータ
のアドレス「0」をセットしてE2PROMからデータを読込
むサブルーチンを実行する(#105,#110)。このサブ
ルーチンを第3図(II)に示し説明すると、まずセット
したアドレス(現在は0番地がセットされている。)の
データをアドレスバスに出力し、/Rの信号を「H」レ
ベルにして読込みのモード(マイコンから見て)とし
(#255)、チップイネーブルの端子(CE)を「H」レ
ベルにして(#260)、E2PROMが上記アドレスのデータ
の読込みのモードであることをラッチさせる。E2PROMは
ラッチしたアドレスを内部でデコードし、そのアドレス
のデータ(DA)をデータバスに出力し、マイコン(μ
C)は、このデータ(DA)を入力する(#265)。この
フローチャートでは、チップイネーブル信号(CE)をマ
イコン(μC)が出力し、すぐにデータ(DA)を入力す
るようにしているが、マイコン(μC)の処理スピード
が速い場合には、チップイネーブル信号(CE)を出力し
た後に、時間待ちのステップを設ければ良い。データ
(DA)を入力した後、マイコン(μC)はチップイネー
ブル信号(CE)を「L」レベルにして、1バイトのデー
タの読込みを終了し(#270)、リターンする(第3図
(I)のステップ#115に進む)。ステップ#115ではこ
のデータ(DA)をレジスタ(0)に出力し、そのデータ
のb1,b0を判定し、通算レリーズ回数,撮影済フイルム
枚数のデータがメモリーされているE2PROMのアドレスを
検出する。まず、ステップ#120で(b1,b0)=「00」と
判定された場合、第1表で説明したように書換え回数
(N)が1万回以下であるので、ステップ#125でアド
レス指定変数R1を1とする。(b1,b0)=「01」のとき
(#130)、1万回<N≦2万回であるので,R1を11(#
135),(b1,b0)=「10」のとき(#135)、2万回<
N≦3万回であるのでR1を21(#145)、(b1,b0)=
「11」のとき、3万回<N≦4万回であるのでR1を31と
する(#150)。このアドレス指定変数R1は通算レリー
ズ回数の下位8ビットのデータをメモリーしているアド
レスを示す。次に、レジスタ指定変数R2を“1"として
(#155)、アドレスを上記R1にセットして(#160)、
まず通算レリーズ回数の下位8ビットのデータをE2PROM
から読込み(#165)、このデータDAをマイコン(μ
C)内のレジスタ(1)にメモリーする(#170)。そ
して、アドレス指定変数R1に“1"を加えたものを新たに
R1とし(#175)、レジスタ指定変数R2に“1"を加えた
ものを新たにR2として(#180)、R2が“4"となるまで
繰り返すことにより(#185)、通算レリーズ回数の上
位8ビットのデータをE2PROMから読込んでレジスタ
(2)に、又撮影済フイルム枚数のデータをE2PROMから
読込んで、レジスタ(3)に夫々メモリーする(#160
〜#185)。次いで、残りのフイルムの感度のデータをE
2PROMから読込むべくマイコン(μC)のアドレスR1を
“4"にセットし(#190)、データを読込み(#195)、
内部のレジスタ(4)にこのデータ(DA)をメモリーし
た後(#200)、割込みを許可してリターンする(#20
5)。以上でE2PROMデータのレジスタへの読込みを終了
する。
First, the microcomputer (μC) prohibits all interrupts to this flow so that the data will not become incorrect while reading the data (# 100). Next, the address "0" of the data to be read is set and the subroutine for reading the data from the E 2 PROM is executed (# 105, # 110). This subroutine is shown in FIG. 3 (II) and explained. First, the data of the set address (currently address 0 is set) is output to the address bus, and the / R signal is set to "H" level. Set the read mode (as seen from the microcomputer) (# 255), set the chip enable pin (CE) to the "H" level (# 260), and make sure that the E 2 PROM is in the read mode for the data at the above address. Make it latch. The E 2 PROM internally decodes the latched address, outputs the data (DA) at that address to the data bus, and
C) inputs this data (DA) (# 265). In this flowchart, the chip enable signal (CE) is output from the microcomputer (μC) and the data (DA) is input immediately. However, if the processing speed of the microcomputer (μC) is high, the chip enable signal After outputting (CE), a step waiting for time may be provided. After inputting the data (DA), the microcomputer (μC) sets the chip enable signal (CE) to the “L” level to end the reading of 1-byte data (# 270) and return (see FIG. 3 (I ) To step # 115). In step # 115, this data (DA) is output to the register (0), b1 and b0 of the data are determined, and the address of the E 2 PROM in which the data of the total release number and the number of photographed films is stored is detected. To do. First, if (b1, b0) = “00” is determined in step # 120, the number of rewrites (N) is 10,000 or less as described in Table 1, so the addressing variable is determined in step # 125. Set R1 to 1. When (b1, b0) = "01"(# 130), 10,000 times <N≤20,000 times, so R1 is set to 11 (#
135), (b1, b0) = "10"(# 135), 20,000 times <
Since N ≦ 30,000 times, R1 is 21 (# 145), (b1, b0) =
When “11”, 30,000 times <N ≦ 40,000 times, so R1 is set to 31 (# 150). This addressing variable R1 indicates the address in which the lower 8-bit data of the total number of releases is stored. Next, the register designation variable R2 is set to "1"(# 155), the address is set to the above R1 (# 160),
First, the lower 8 bits of the total number of releases are set to E 2 PROM
Read (# 165) from this data DA
The data is stored in the register (1) in C) (# 170). Then, add "1" to the addressing variable R1
R1 (# 175), register addition variable R2 plus "1" is newly set as R2 (# 180), and repeated until R2 becomes "4"(# 185). The 8-bit data is read from the E 2 PROM into the register (2), and the data of the number of photographed films is read from the E 2 PROM and stored into the register (3) (# 160).
~ # 185). Then, the sensitivity data of the remaining film is
2 To read from the PROM, set the address (R1) of the microcomputer (μC) to "4"(# 190), read the data (# 195),
After storing this data (DA) in the internal register (4) (# 200), enable interrupts and return (# 20).
Five). This completes reading the E 2 PROM data into the register.

この読込みが終了すると、マイコン(μC)は、第2
図のステップ#20に進んで撮影準備スイッチ(S1)或い
は、フイルム感度変更スイッチ(SISO)のどちらか一方
(SA)がONされているか否かを判定する。いずれのスイ
ッチもOFFのときには、終了フラグ(ENDF)がセットさ
れているかを判定して(#25)、セットされていればス
テップ#20にもどり、セットされていなければ給電トラ
ンジスタ(Tr1)及び、DC−DCコンバータをOFFすべく端
子(01),(03)を「L」レベルにする(#30,35)。
そして終了フラグ(EMDF)をセットし、全ての表示を消
灯してステップ#20にもどる(#40,#42)。
When this reading is completed, the microcomputer (μC)
In step # 20 in the figure, it is determined whether either the shooting preparation switch (S1) or the film sensitivity change switch (SISO) (SA) is turned on. When both switches are OFF, it is determined whether the end flag (ENDF) is set (# 25), and if set, the process returns to step # 20. If not set, the power supply transistor (Tr1) and Set terminals (01) and (03) to "L" level to turn off the DC-DC converter (# 30, 35).
Then, the end flag (EMDF) is set, all the displays are turned off, and the process returns to step # 20 (# 40, # 42).

ステップ#20において、撮影準備スイッチ(S1)或い
はフイルム感度変更スイッチ(SISO)どちらか一方がON
されているときは、ステップ#45に進み、終了フラグ
(ENDF)をリセットし、次いでタイマーをリセットスタ
ートさせる(#50)。このタイマーは、マイコン(μ
C)に内蔵されたハードタイマーであり、電源保持用に
用いられるものである。タイマーをリセットスタートさ
せ、給電トランジスタ(Tr1)をONすべく端子(01)を
「H」レベルにする(#55)。次に、端子(03)を
「H」レベルにしてDC−DCコンバータをONさせ(#6
0)、電源電圧が低下しても、一定の電圧がマイコン
(μC)及びE2PROMに給電されるようにする。そしてフ
イルム感度変更スイッチ(SISO)がONされているか否か
を判定し(#65)、ONされていれば、フイルム感度変更
(ISO変更)のサブルーチン(#70)に進む。
At step # 20, either the shooting preparation switch (S1) or the film sensitivity change switch (SISO) is turned on.
If so, the process proceeds to step # 45 to reset the end flag (ENDF) and then reset and start the timer (# 50). This timer is a microcomputer (μ
It is a hard timer built in C) and is used for holding power. The timer is reset and started, and the terminal (01) is set to "H" level to turn on the power supply transistor (Tr1) (# 55). Next, set the terminal (03) to "H" level to turn on the DC-DC converter (# 6
0) Even if the power supply voltage drops, a constant voltage is supplied to the microcomputer (μC) and E 2 PROM. Then, it is judged whether or not the film sensitivity change switch (SISO) is turned on (# 65), and if it is turned on, the process proceeds to the film sensitivity change (ISO change) subroutine (# 70).

〈ISO変更〉 このISO変更サブルーチンを第4図(I)に示し説明
すると、まず、SVレジスタ(SvR)にメモリーしていた
内容を読出して、これをSvとし(#300)、この値を表
示装置に出力する。表示装置(DISP)は、第4図(II)
に示す表示の内 のみを使用してフイルム感度を表示させる(#305)。
尚、このSvはアペックス値として表示される。次に、マ
イコン(μC)は、フイルム感度変更スイッチ(SISO)
がONされているかを判定し(#310)、ONされていれ
ば、アップスイッチ(Su)、ダウンスイッチ(Sd)のい
ずれかがONされているかを判定して(#315,#325)、
アップスイッチ(Su)がONされているときには、上記フ
イルム感度(Sv)に0.5を加え(#320)、ダウンスイッ
チ(Sd)がONされているときには、フイルム感度(Sv)
から0.5を引いて新たにフイルム感度(Sv)とする(#3
30)。そしてステップ#335に進み、連続的な変更を回
避すべく一定時間待ってステップ#305にもどる。
<ISO change> This ISO change subroutine is shown in FIG. 4 (I) and explained. First, the contents stored in the SV register (SvR) are read, this is set as Sv (# 300), and this value is displayed. Output to the device. The display device (DISP) is shown in Fig. 4 (II).
Of the displays shown in Use only to display film sensitivity (# 305).
This Sv is displayed as an apex value. Next, the microcomputer (μC) uses the film sensitivity change switch (SISO)
Is turned on (# 310), and if it is turned on, it is determined whether any of the up switch (Su) and down switch (Sd) is turned on (# 315, # 325),
When the up switch (Su) is ON, 0.5 is added to the film sensitivity (Sv) (# 320), and when the down switch (Sd) is ON, the film sensitivity (Sv) is
Subtract 0.5 from this to obtain a new film sensitivity (Sv) (# 3
30). Then, the process proceeds to step # 335, waits for a certain period of time to avoid continuous changes, and returns to step # 305.

アップスイッチ(Su)、ダウンスイッチ(Sd)共にON
されていないときは、ステップ#325からステップ#305
にもどり、このフローを繰り返し、フイルム感度の表示
が行なわれる。ステップ#310において、マイコン(μ
C)はフイルム感度変更スイッチ(SISO)がOFFされた
ことを検知すると、SVレジスタ(SvR)にメモリーされ
ているフイルム感度(SvR)と変更されたフイルム感度
(Sv)が等しいか否かを判定し(#340)、等しければ
もとのフローにリターンし、等しくなければ、変更され
たフイルム感度(Sv)をE2PROMに書き込むべく、ISO書
込みのサブルーチン(#345)に進んで、書込みを終え
た後、リターンする。このように、変更されたフイルム
感度(Sv)と、E2PROMにメモリーされているフイルム感
度(SvR)が等しいときに、E2PROMへの書込みを行なわ
ず、書込み回数を減らすことにより、E2PROMについての
書込み回数の制限に有効に対処することができる。
Both up switch (Su) and down switch (Sd) are ON
If not, step # 325 to step # 305
Then, this flow is repeated and the film sensitivity is displayed. In step # 310, the microcomputer (μ
When C) detects that the film sensitivity change switch (SISO) is turned off, it judges whether the film sensitivity (SvR) stored in the SV register (SvR) is equal to the changed film sensitivity (Sv). (# 340), return to the original flow if they are equal, and if they are not equal, proceed to the ISO writing subroutine (# 345) to write the changed film sensitivity (Sv) to the E 2 PROM, and write. After finishing, return. Thus, the modified film sensitivity (Sv), when the film sensitivity is memory (svr) is equal to E 2 PROM, without writing to the E 2 PROM, by reducing the number of writes, E 2 It is possible to effectively deal with the limitation of the number of times of writing for PROM.

次に、第5図に示したISO書込みのサブルーチンの説
明をすると、まず変更したフイルム感度(Sv)をSVレジ
スタ(SvR)にメモリーし、書込むべきE2PROMのアドレ
スを「4」にセットし、データ出力用のレジスタにSVレ
ジスタ(SvR)の内容(SvR)をセットして書込みのサブ
ルーチン(#365)に進み、書込みを終えたのち、リタ
ーンする。
Next, the ISO writing subroutine shown in FIG. 5 will be explained. First, the changed film sensitivity (Sv) is stored in the SV register (SvR), and the E 2 PROM address to be written is set to "4". Then, the content (SvR) of the SV register (SvR) is set in the data output register, the process proceeds to the write subroutine (# 365), and after the write is completed, the process returns.

第6図に上述の書込みのサブルーチンを示し説明する
と、マイコン(μC)は、まず、書込み途中におこる割
込みを禁止することによってデータの破壊を禁止する
(#400)。そしてライト/リード端子(/R)「L」
レベルにして(#405)、書込みモードとし、上記設定
したアドレス「4」のデータを出力する(#410,#41
5)。次いで、チップイネーブル(CE)を「H」レベル
にして、書込みをE2PROMに開始させる(#420,#42
5)。E2PROMは書込み中には、Write Busy端子(W・B
u)から「H」レベルを出力し、書込みを終了すると
「L」レベルを出力する。マイコン(μC)は、この終
了信号が「L」レベルになるまで待ち(#430)、この
信号を検出すると、チップイネーブルを「L」レベルと
し(#435)、書込みモード終了をE2PROMに出力して、
割込みを許可してリターンする(#435)。尚、上記Wri
te Busy端子(W・Bu)を持たないものでは、書込みに
要する時間を計測して、この時間だけ待つようにしても
良い。
The above-mentioned write subroutine is shown in FIG. 6 and explained. First, the microcomputer (μC) prohibits the destruction of data by prohibiting an interrupt occurring during the write (# 400). And write / read terminal (/ R) "L"
The level is set (# 405), the writing mode is set, and the data of the address "4" set above is output (# 410, # 41).
Five). Next, the chip enable (CE) is set to the “H” level to start writing in the E 2 PROM (# 420, # 42).
Five). While writing to the E 2 PROM, the Write Busy terminal (WB
u) outputs “H” level, and when writing is completed, outputs “L” level. The microcomputer (μC) waits until this end signal becomes “L” level (# 430). When this signal is detected, the chip enable is set to “L” level (# 435), and the end of the write mode is written to the E 2 PROM. Output
Enable interrupts and return (# 435). The above Wri
If the terminal does not have the te Busy terminal (W · Bu), the time required for writing may be measured and the waiting time may be waited.

以上でISO変更のサブルーチンを終える。 This is the end of the ISO change subroutine.

〈撮影準備〉 第2図のステップ#65において、フイルム感度変更ス
イッチ(SISO)がONされていないときは、撮影準備(S1
ON)のサブルーチンに進む。
<Preparation for shooting> In step # 65 in FIG. 2, if the film sensitivity change switch (SISO) is not turned on, preparation for shooting (S1
ON) subroutine.

このサブルーチンを第7図に示し説明すると、マイコ
ン(μC)は、給電トランジスタ(Tr1)のONにより駆
動している測光回路(LMC)、レンズ回路(LEC)から開
放測光値(Bvo)レンズ固有の開放絞り値(Avo)を夫々
入力する(#450,#455)。
This subroutine is shown in FIG. 7 and explained. The microcomputer (μC) determines the open photometry value (Bvo) from the photometry circuit (LMC) and lens circuit (LEC) that are driven by turning on the power supply transistor (Tr1). Enter the maximum aperture value (Avo) respectively (# 450, # 455).

次にフイルムが装填されているか否かを判定し(#46
0)、装填されていればフイルム有のフラグ(FILF)を
セットし(#465)、装填されていなければ上記フラグ
(FILF)をリセットする(#470)。
Next, it is judged whether or not the film is loaded (# 46
0), the flag (FILF) with film is set if loaded (# 465), and the flag (FILF) is reset if not loaded (# 470).

そのうえでSVレジスタ(SvR)にメモリーしたフイル
ム感度(SvR)を読出して(#475)、上記開放測光値
(Bvo)、レンズの開放絞り値(Avo)、フイルム感度
(Sv)から所定の露出演算を行ない(#480)、この演
算により求められたシャッタースピード、制御絞り値及
び撮影済フイルム枚数の撮影のデータを表示装置(DIS
P)に送って、表示内容のうち に表示を行なわせ、リターンする(#490)。
Then, the film sensitivity (SvR) stored in the SV register (SvR) is read (# 475), and a predetermined exposure calculation is performed from the above-mentioned open photometry value (Bvo), lens open aperture value (Avo), and film sensitivity (Sv). (# 480), the shutter speed, control aperture value, and shooting data obtained by this calculation are displayed on the display device (DIS).
P) and display To display and return (# 490).

第2図にもどって、マイコン(μC)は、ISO変更或
いはS1ONのサブルーチン(#70,#75)を終えると、撮
影準備スイッチ(S1)或いはフイルム感度変更スイッチ
(SISO)のどちらか一方がONされているか否かを判定し
(#80)、どちらか一方がONされていればステップ#45
にもどりルーチンを繰り返す。いずれのスイッチ(S
1),(SISO)もOFFである場合、ステップ#50でスター
トさせたタイマーが10秒経過したか否かを判定して(#
85)、経過していればステップ#30に進み撮影終了の処
理をし、10秒経過していなければステップ#55にもど
り、ルーチンを繰り返して、シャッターレリーズを待
つ。
Returning to FIG. 2, when the microcomputer (μC) finishes the ISO change or S1ON subroutine (# 70, # 75), either the shooting preparation switch (S1) or the film sensitivity change switch (SISO) is turned on. It is determined whether or not (# 80), and if either one is ON, step # 45.
Return and repeat the routine. Which switch (S
If 1) and (SISO) are also OFF, determine whether the timer started in step # 50 has passed 10 seconds (#
85), if it has elapsed, the process proceeds to step # 30 to end the shooting, and if 10 seconds have not elapsed, the process returns to step # 55 to repeat the routine and wait for the shutter release.

〈シャッターレリーズ〉 次に、レリーズスイッチ(S2)がONされると、マイコ
ン(μC)は、第8図に示す撮影の為の制御の処理を行
なう。
<Shutter Release> Next, when the release switch (S2) is turned on, the microcomputer (μC) performs a control process for photographing shown in FIG.

まず、マイコン(μC)は、電池交換割込みBATINT以
外の割込みを禁止し(#500)、レリーズ動作の制御及
び露出の制御を行なう(#505)。露出制御は、フォー
カルプレーンシャッターの先幕(1幕)及び後幕(2
幕)の走行開始信号を露出制御回路に送ることによって
行なわれる。露出が終了すると(#510→#512)、これ
を示す露出完了スイッチ(S3)がONし、マイコン(μ
C)は、このスイッチ(S3)のON信号が入力されるとマ
イコン(μC)内のアドレス「0」のレジスタのビット
b2が1、即ち書換え回数(N)が4万回を越えたか否か
の判定を行ない(#512)、セットされていれば、E2PRO
Mの内容を書換えてもこれ以後のデータが信頼されない
として、書換えせずにステップ#570のフイルムの巻上
げサブルーチンに進む。このサブルーチンについては後
述する。上記ビットb2が“1"でないときには、マイコン
(μC)は、内部通算レリーズ回数の下位のカウンタ
(CNTR1)に“1"を加え(#515)、この値が“0"、即ち
下位8ビットからの桁上げがあったか否かを判定し(#
520)、桁上げがあった場合には、上位のカウンタ(CNT
R2)に“1"を加える(#525)。そして、書込み回数の
度合によって変更されるアドレスを指定するアドレス変
更のサブルーチン(#530)に進む。下位のカウンタ(C
NTR1)が“0"でないときもアドレス変更のサブルーチン
に進む。
First, the microcomputer (μC) prohibits interrupts other than the battery replacement interrupt BATINT (# 500), and controls the release operation and the exposure (# 505). The exposure is controlled by the front curtain (1 curtain) and the rear curtain (2 curtains) of the focal plane shutter.
This is done by sending a travel start signal for the curtain) to the exposure control circuit. When the exposure is completed (# 510 → # 512), the exposure completion switch (S3) indicating this is turned on and the microcomputer (μ
C) is the bit of the register of address "0" in the microcomputer (μC) when the ON signal of this switch (S3) is input.
If b2 is 1, that is, the number of rewrites (N) has exceeded 40,000 times (# 512), and if set, then E 2 PRO
Even if the contents of M are rewritten, the data thereafter is not trusted, and the process is not rewritten, and the process proceeds to the film winding subroutine of step # 570. This subroutine will be described later. When the bit b2 is not "1", the microcomputer (μC) adds "1" to the lower counter (CNTR1) of the total number of release times (# 515), and this value is "0", that is, from the lower 8 bits. Whether there was a carry of
520), if there is a carry, the upper counter (CNT
Add "1" to R2) (# 525). Then, the process proceeds to an address change subroutine (# 530) for designating an address to be changed according to the number of times of writing. Lower counter (C
Even if NTR1) is not "0", proceed to the address change subroutine.

第9図にこのアドレス変更サブルーチンを示し、説明
すると、マイコン(μC)は、上記上位,下位のカウン
タ(CNTR2,CNTR1)の内容が1万以下であるか否かを判
定し、1万以下であれば、通算レリーズ回数書込みのた
めのアドレスを示すアドレス指定変数R1を“1"にセット
してリターンする(#600〜#605)。
This address change subroutine is shown in FIG. 9 and explained. The microcomputer (μC) judges whether or not the contents of the upper and lower counters (CNTR2, CNTR1) are 10,000 or less, and if it is 10,000 or less, If there is, the addressing variable R1 indicating the address for writing the total number of releases is set to "1" and the process returns (# 600 to # 605).

マイコン(μC)は上記カウンタの内容(これをNと
する)が1万<N≦2万であればステップ#615以下の
ステップを実行する。ステップ#615で、通算レリーズ
回数の万単位を示すビット(b0,b1)が(0,0)であるか
否かを判定する。(0,0)である場合、1万回を越えた
最初の通算レリーズ回数、即ち10,001回であるとして、
ビット(b0,b1)を(0,1)にセットし、データ転送用レ
ジスタを“1"、即ち(b0,b1)=(0,1)のデータをセッ
トし、E2PROMのアドレスを“0"にセットして、書込みの
サブルーチンに進みこれを書込む(#620〜#635)。
The microcomputer (μC) executes the steps from step # 615 if the content of the counter (N is set to N) is 10,000 <N ≦ 20,000. In step # 615, it is determined whether or not the bit (b0, b1) indicating the tens of thousands of the total number of releases is (0,0). When it is (0,0), it is assumed that the first total release number exceeds 10,000 times, that is, 10,001 times,
Set bits (b0, b1) to (0,1), set the data transfer register to "1", that is, (b0, b1) = (0,1) data and set the E 2 PROM address to " Set it to 0 "and proceed to the write subroutine to write this (# 620 to # 635).

次に、通算レリーズ回数書込み用のアドレス指定数R1
を11にセットしてリターンする(#640)。上記ビット
(b0,b1)=(0,0)でないときもステップ#640に進
み、同様の処理を行なう。マイコン(μC)はカウンタ
(CNTR1)(CNTR2)の内容が2万<N≦3万,3万<N≦
4万であれば上述の1万<N≦2万と同様の処理を行な
う。カウンタの内容が2万<N≦3万であれば、ビット
の内容(b0,b1)=(0,1)であるか否かを判定し、(0,
1)であれば2万を越えたとしてこれを(1,0)として、
アドレスを“0"にセットして書込みサブルーチンに進
み、E2PROMへの書込みを行って、アドレス指定変数R1を
“21"にセットしてリターンする(#650〜675)。ビッ
ト(b0,b1)=(0,1)でなければ、アドレス指定変数R1
を“21"にセットしてリターンする。同様にカウンタ(C
NTR1)(CNTR2)の内容が3万<N≦4万であれば、ビ
ット(b0,b1)の内容が(1,0)であるかを判定し、(1,
0)であれば3万を越えたとして、上記ビット(b0,b1)
を(1,1)にセットし、アドレスを“0"にセットして、
書込みサブルーチンに進みE2PROMに書込む(#685〜#7
05)。そしてアドレス指定変数R1を“31"にセットして
リターンする(#710)。ビット(b0,b1)=(1.0)で
なければ、アドレス指定変数R1を“31"にセットしてリ
ターンする。カウンタ(CNTR1),(CNTR2)の内容が4
万を越えれば、マイコン(μC)のアドレス0のビット
(b0,b1,b2)を(0,0,1)にセットして警告表示のデー
タを表示装置に出力し、データを“4"にセットする(#
715〜#725)。そしてアドレスを“0"にセットして、E2
PROMへ、ビット(b0,b1,b2)のデータを書込み、アドレ
ス指定変数R1を“31"にセットしてリターンする。この
警告は、4万回のレリーズ動作が行なわれたとして、カ
メラのサービスステーションへ点検してもらう為に表示
するものである。尚この回数は4万回に限らず、何万回
でも良く、5万以上である場合には、それに応じて、E2
PROMのレリーズ書換え用のメモリーを増やせば良い。
Next, the specified number of addresses R1 for writing the total number of releases
Set to 11 and return (# 640). Even when the above bit (b0, b1) is not (0,0), the process proceeds to step # 640 and the same process is performed. The contents of the counter (CNTR1) (CNTR2) of the microcomputer (μC) are 20,000 <N ≤ 30,000, 30,000 <N ≤
If it is 40,000, the same processing as the above 10,000 <N ≦ 20,000 is performed. If the counter content is 20,000 <N ≦ 30,000, it is determined whether or not the bit content (b0, b1) = (0,1), and (0,
If it is 1), it is assumed that it has exceeded 20,000, and this is (1,0),
The address is set to "0", and the process proceeds to the write subroutine. Writing to the E 2 PROM is performed, the address specification variable R1 is set to "21", and the process returns (# 650 to 675). Address specification variable R1 unless bit (b0, b1) = (0,1)
Set to “21” and return. Similarly, the counter (C
If the content of NTR1) (CNTR2) is 30,000 <N ≦ 40,000, it is determined whether the content of bit (b0, b1) is (1,0), and (1,
If it is 0), it is considered that it exceeds 30,000, and the above bits (b0, b1)
Set to (1,1), set the address to “0”,
Proceed to write subroutine and write to E 2 PROM (# 685 to # 7
05). Then, the addressing variable R1 is set to "31" and the process returns (# 710). If the bits (b0, b1) are not (1.0), set the addressing variable R1 to "31" and return. The contents of counters (CNTR1) and (CNTR2) are 4
If it exceeds 10,000, set the bit (b0, b1, b2) of address 0 of the microcomputer (μC) to (0,0,1), output the warning display data to the display device, and set the data to "4". set(#
715 to # 725). Then, set the address to "0" and E 2
Write the data of bits (b0, b1, b2) to PROM, set the addressing variable R1 to "31" and return. This warning is displayed in order to have the service station of the camera inspect that the release operation has been performed 40,000 times. The number of times is not limited to 40,000, but may be tens of thousands, and if 50,000 or more, E 2
Increase the memory for PROM release rewriting.

第8図にもどり、マイコン(μC)は、アドレス指定
変数R1をアドレス用のレジスタにセットし、まず下位の
カウンタ(CNTR1)の内容をデータセットして書込みの
サブルーチンに進み、データを書込む(#535〜545)。
次に上記アドレス指定変数R1に“1"を加えて、上位ビッ
ト用のE2PROMのアドレスとし、これをアドレス用レジス
タにセットして、上位のカウンタ(CNTR2)の内容をデ
ータセットして、書込みのサブルーチンに進み、データ
を書込む(#550〜#565)。
Returning to FIG. 8, the microcomputer (μC) sets the addressing variable R1 in the address register, first sets the contents of the lower counter (CNTR1) to the data and proceeds to the write subroutine to write the data ( # 535-545).
Next, add "1" to the addressing variable R1 to make it the address of the E 2 PROM for the upper bits, set this in the address register, and set the contents of the upper counter (CNTR2) to the data. Proceed to the write subroutine and write the data (# 550 to # 565).

データの書換えを終えると、マイコン(μC)はフイ
ルムの巻上げの処理を行なう(#570)。
When the rewriting of data is completed, the microcomputer (μC) performs the film winding process (# 570).

〈フイルム巻上げ〉 巻上げサブルーチンを第10図に示す。まずマイコン
(μC)は裏蓋、電池交換割込み(BATINT)の割込み以
外の割込みを禁止して巻上げモータ(M)をONする信号
を端子(02)から巻上げ回路(MOD)に出力する(#75
0,#755)。そして巻上げが完了するを待ち(#760)、
巻上げ完了スイッチ(S4)がONすると、これを検出し
て、モータを停止する信号を出力する(#765)。次
に、フイルムが有るか否かをこれを示すフラグ(FILF)
がセットされているか否かで判定し(#770)、セット
されていればマイコン内のアドレス(0)のビットb2が
“1"であるかを判定する(#773)。フイルムが無いと
き、或いは、E2PROMの書換え回数(N)が4万回を越え
ている場合(b2=1)は、以下に示すフイルム撮影済フ
イルム枚数の書換えを行なわず、割りみを許可してリタ
ーンする(#772)。フイルムが有り、かつ4万回を越
えていない場合、ステップ#775で撮影済フイルム枚数
を示す変数NRに1を加え、アドレス指定変数R1に“2"を
加えて撮影済フイルム枚数書込みのアドレスを求める
(#780)。そしてアドレス指定変数R1をセットしてデ
ータNRをセットして書込みサブルーチン(#795)に進
み、撮影済フイルム枚数をE2PROMに書込んでリターンす
る(#790〜#795)。
<Film winding> Fig. 10 shows the winding subroutine. First, the microcomputer (μC) outputs a signal for turning off the winding motor (M) to the winding circuit (MOD) from the terminal (02) by prohibiting interrupts other than the interrupt of the back cover and the battery replacement interrupt (BATINT) (# 75).
0, # 755). And wait for the winding to be completed (# 760),
When the winding completion switch (S4) is turned on, this is detected and a signal for stopping the motor is output (# 765). Next, a flag indicating whether or not there is a film (FILF)
Is set (# 770), and if it is set, it is determined whether bit b2 of the address (0) in the microcomputer is "1"(# 773). If there is no film or if the number of rewritings (N) of the E 2 PROM exceeds 40,000 (b2 = 1), the number of film-recorded films shown below is not rewritten and the split is allowed. And then return (# 772). If there is a film and it has not exceeded 40,000 times, in step # 775, add 1 to the variable NR indicating the number of shot films and add "2" to the addressing variable R1 to set the address for writing the number of shot films. Ask (# 780). Then, the addressing variable R1 is set, the data NR is set, the process proceeds to the write subroutine (# 795), the number of photographed films is written in the E 2 PROM, and the process returns (# 790 to # 795).

〈裏蓋閉じ〉 次に裏蓋が開放状態から閉成状態になったときのカメ
ラの動作を第11図〜第12図に示したマイコン(μC)の
フローチャートを参照して説明する。
<Cover of Back Cover> Next, the operation of the camera when the back cover is changed from the open state to the closed state will be described with reference to the flow chart of the microcomputer (μC) shown in FIGS. 11 to 12.

裏蓋が閉じられると、裏蓋閉検出スイッチ(S5)がON
し、「H」レベルから「L」レベルと変化する信号がマ
イコン(μC)に入力されると、マイコン(μC)は、
第11図に示した裏蓋ONの書込みのルーチンを実行する。
まず、マイコン(μC)は、ステップ#800でフイルム
か装填(スプールに巻きついている。)されているか否
かを検出し、フイルムが装填されている場合には、誤っ
て裏蓋が開けられたとしてイニシャルロードを行なわず
ステップ#815に進む。フイルムが装填されていない場
合にはイニシャルロード(初期巻上)のサブルーチンに
進む(#805)。
When the back cover is closed, the back cover close detection switch (S5) is turned on.
Then, when a signal that changes from the “H” level to the “L” level is input to the microcomputer (μC), the microcomputer (μC)
The back cover ON writing routine shown in FIG. 11 is executed.
First, the microcomputer (μC) detects in step # 800 whether or not the film is loaded (wrapped around the spool). If the film is loaded, the back cover is opened by mistake. And proceed to step # 815 without initial loading. If no film is loaded, proceed to the initial load (initial winding) subroutine (# 805).

このイニシャルロードサブルーチンを第12図に示し、
説明すると、まずマイコン(μC)は撮影済フイルム枚
数NRを示す変数を“0"にして、巻上げモータ(M)をON
にする信号を出力して巻上げを開始させる(#900,#90
5)。ステップ#910で巻上げが完了するまで待って、巻
上げが完了すると、上記変数NRに“1"を加えてこの変数
NRが3になるまで、上記巻上げの動作を繰り返す(#91
5,#920)。そして変数NRが3、即ち初期巻上げが終了
すると、巻上げ用モータ(M)を停止させ、変数NRを
“0"にリセットしてリターンする(#925,#930)。
This initial load subroutine is shown in Fig. 12,
To explain, first, the microcomputer (μC) sets the variable indicating the number NR of photographed films to “0” and turns on the winding motor (M).
To start winding (# 900, # 90
Five). Wait until the winding is completed in step # 910, and when the winding is completed, add "1" to the above variable NR and add this variable.
The above winding operation is repeated until the NR reaches 3 (# 91
5, # 920). When the variable NR is 3, that is, when the initial winding is completed, the winding motor (M) is stopped, the variable NR is reset to "0", and the process returns (# 925, # 930).

第11図にもどり、マイコン(μC)は、イニシャルロ
ードの処理(#805)を終えるとフイルムが装填されて
いるかを判定し(#810)、装填されている場合にはフ
ラグ(FILF)をセットし(#815)、そしてそのフイル
ムが、容器上にフイルム感度が電気的パターンによって
形成されているDXフイルムであるかを検出する(#82
5)。この検出は、周知の方式、具体的には、例えばフ
イルム感度を示す下位2ビットの内、少なくとも一方が
フイルム容器上の共通端子と導通状態であるか否かを判
定することによって行なえる。使用されているフイルム
がDXフイルムであるときには、フイルム感度Svを自動的
に読みとって、この値を示すデータを表示装置に出力す
る(#830,#840)。なお、フイルムが装填されていな
いとき、フイルムフラグ(FILF)をリセットする(#82
0)。また、フイルムが装填されていないか、装填され
ていてもDXフイルムでないときには、レジスタにメモリ
ーされているフイルム感度(SvR)をSvとし(#835)、
この値を表示装置に出力して、これを表示させる(#83
5,#840)。次に、メモリーされたフイルム感度(SvR)
と上記フイルム感度(Sv)とを比較し、同一でなければ
ISO書込みのサブルーチン(#850)に進み、フイルム感
度(Sv)をE2PROMに書込む(#845,#850)。同一であ
るときは、ステップ#850をスキップしてE2PROMへの書
込みを行なわずステップ#855に進み、終了フラグ(END
F)がセットされているかを判定して、セットされてい
ればSAのルーチンへ、セットされていなければ割込み前
のステップへリターンする。
Returning to FIG. 11, the microcomputer (μC) determines whether the film is loaded (# 810) after finishing the initial loading process (# 805), and sets the flag (FILF) when loaded. (# 815), and whether the film is a DX film whose film sensitivity is formed by an electric pattern on the container (# 82).
Five). This detection can be performed by a known method, specifically, by determining whether or not at least one of the lower 2 bits indicating the film sensitivity is in a conductive state with the common terminal on the film container. When the film used is a DX film, the film sensitivity Sv is automatically read and the data indicating this value is output to the display device (# 830, # 840). When the film is not loaded, the film flag (FILF) is reset (# 82
0). When the film is not loaded or when it is loaded but is not the DX film, the film sensitivity (SvR) stored in the register is set to Sv (# 835),
This value is output to the display device and displayed (# 83
5, # 840). Next, stored film sensitivity (SvR)
And the above film sensitivity (Sv) are compared. If they are not the same,
Proceed to the ISO writing subroutine (# 850) and write the film sensitivity (Sv) to the E 2 PROM (# 845, # 850). If they are the same, skip step # 850, do not write to the E 2 PROM, proceed to step # 855, and end flag (END
If F) is set, it returns to the SA routine if it is set, and returns to the step before the interrupt if it is not set.

次に電池電圧が下がって、マイコン(μC)、E2PROM
及びその他の回路が誤動作を起こす電圧よりわずかに高
い電圧になると、バッテリチェック回路(BC)から、こ
れを示す信号がマイコン(μC)に入力されると、マイ
コン(μC)は、第13図に示すBATINTのルーチンを実行
する。マイコン(μC)は、すべての出力端子を「L」
レベルにし、停止する(#950)。ここでの停止は、ク
ロックをも停止する制御のことを言う。
Next, the battery voltage drops, and the microcomputer (μC), E 2 PROM
When the voltage of the battery check circuit (BC) is slightly higher than the voltage that causes malfunction of other circuits, the signal indicating this is input from the battery check circuit (BC) to the microcomputer (μC). Execute the indicated BATINT routine. Microcomputer (μC) sets all output terminals to “L”
Turn to level and stop (# 950). The stop here means a control for stopping the clock as well.

〈第2実施例〉 次に第2の実施例を示す。前記実施例では通算レリー
ズ回数の書込みを、常に上位8ビット、下位8ビットを
共に行なっていたが、上位8ビットは、256回に1回し
か変更されないにもかかわらず毎回書換えるのは、処理
時間が長くなるうえ消費電流(電力)が多くなり、さら
には、書換え回数の制限により、E2PROM内に複数の予備
用のメモリーを必要とする。これらの欠点を解消するの
がこの変形例の目的で、上位8ビットは、この8ビット
の内容が変わったときのみ書換えるようにした。
Second Embodiment Next, a second embodiment will be shown. In the above-described embodiment, the writing of the total number of release times is always performed by using the upper 8 bits and the lower 8 bits, but the upper 8 bits are rewritten each time even though they are changed only once every 256 times. It takes longer time, consumes more current (power), and requires more than one spare memory in the E 2 PROM due to the limited number of rewrites. The purpose of this modification is to eliminate these drawbacks, and the upper 8 bits are rewritten only when the contents of these 8 bits change.

この実施例では、その変更に伴いE2PROMのメモリーの
内容を変更したのでこれを第2表に示し、変更点のみを
説明する。
In this embodiment, the contents of the memory of the E 2 PROM are changed in accordance with the change, and this is shown in Table 2 and only the changed points will be described.

まず、E2PROMのアドレス「00」には、通算レリーズ回
数を示す上位8ビットのデータがメモリーされる。この
場合上述したように書換えは256回に1回であるため、
たとえば4万回まで数えるとしても、4万/256=156.25
(156回)しか書換えが行なわれず、書換え回数制限
(1万回)の為の予備のバイトを必要としない。その他
の変更点は、これに伴いE2PROMのアドレス(02,12,22,3
2)をなくした点と、第1表に示したアドレス(00)を
なくした点にあり、これは、通算レリーズ回数の上位8
ビットから、通算レリーズ回数を判断しようとしたため
である。これらを実行するための、マイコン(μC)の
フローチャートの変更点を第14図〜第16図に示す。
First, at address "00" of the E 2 PROM, upper 8 bits of data indicating the total number of releases are stored. In this case, since rewriting is done once every 256 times as described above,
For example, if you count up to 40,000 times, 40,000 / 256 = 156.25
Only rewriting (156 times) is performed, and no spare byte is required for the rewriting number limit (10,000 times). The other changes are that the address of the E 2 PROM (02,12,22,3
2) is eliminated, and the address (00) shown in Table 1 is eliminated. This is the top 8 of the total release times.
This is because an attempt was made to determine the total number of releases from the bit. Changes in the flow chart of the microcomputer (μC) for executing these are shown in FIGS. 14 to 16.

第14図は、第2図に示したステップ#15の変形であ
る。まず、ステップ#1000で割込みをすべて禁止し、E2
PROM用のアドレスを「00」にセットする(#1005)。そ
してこのアドレスに応じた内容DAを、E2PROMから読み込
み、これをマイコン(μC)内のレジスタのアドレス
「0」にセットする(#1010,#1015)。このカウンタ
(CNTR2)の内容をデコードして、この値が39以下(998
4回)のときアドレス指定変数R1を“1"(#1020,#102
5)、同様にカウンタ(CNTR2)の内容が78以下(19968
回)ならアドレス指定変数R1を“11"(#1030,#103
5)、カウンタ(CNTR2)の内容が117以下(29952回)な
らアドレス指定変数R1を“21"(#1040,#1045)、カウ
ンタ(CNTR2)の内容が156以下(39936回)ならアドレ
ス指定変数R1を“31"にして(#1047,#1050)、ステッ
プ#1055に進む。カウンタ(CNTR2)の内容が156を越え
る場合、E2PROMの書換え制限回数を越えた旨の警告表示
を行なうデータを表示装置(DISP)に出力して、E2PROM
の書換えを行わずに、ステップ#1090に進む。以下は、
第3図(I)とほぼ同じであるが、E2PROMのメモリーの
内容の変更にともない、ステップ#175に対応するステ
ップ#1075では、R1←R1+2と変更され,さらに、ステ
ップ#180に対応するステップ#1090では、アドレスが
“4"に変わっている。
FIG. 14 is a modification of step # 15 shown in FIG. First of all, it prohibits all of the interrupt at step # 1000, E 2
Set the PROM address to "00"(# 1005). Then, the content DA corresponding to this address is read from the E 2 PROM, and this is set to the address “0” of the register in the microcomputer (μC) (# 1010, # 1015). The contents of this counter (CNTR2) are decoded and this value is 39 or less (998
4 times), set the addressing variable R1 to “1” (# 1020, # 102
5) Similarly, the content of the counter (CNTR2) is 78 or less (19968
If the address specification variable R1 is “11” (# 1030, # 103)
5), if the content of the counter (CNTR2) is 117 or less (29952 times), set the addressing variable R1 to "21"(# 1040, # 1045), and if the content of the counter (CNTR2) is 156 or less (39936 times), the addressing variable Set R1 to “31” (# 1047, # 1050) and proceed to step # 1055. When the content of the counter (CNTR2) exceeds 156, the warning data indicating that the E 2 PROM rewrite limit has been exceeded is output to the display device (DISP) and the E 2 PROM
Without rewriting, proceed to step # 1090. The following is
It is almost the same as Fig. 3 (I), but with the change of the memory contents of E 2 PROM, in step # 1075 corresponding to step # 175, it is changed to R1 ← R1 + 2, and further corresponds to step # 180. In step # 1090, the address is changed to "4".

第15図は、第8図に示したレリーズのルーチンの変形
例である。まず、マイコン(μC)はBATINT以外の割込
みを禁止して、露出制御を行なう(#1150,#1155)。
露出制御が完了すると(#1160)、上位8ビットのカウ
ンタ(CNTR2)が156を越えている場合は、E2PROMの書換
え制限回数を越えた旨の警告表示を行なうデータを出力
してフイルム巻上げのサブルーチンに進む(#1170→#
1240)。上記カウンター(CNTR2)が156以下なら、下位
8ビットのカウンター(CNTR1)に“1"を加えて、この
値が“0"、即ち上位への桁上げが行なわれたかを判定す
る(#1175,#1180)。この値が“0"のとき、桁上げが
行なわれたとして、上位8ビットのカウンタ(CNTR2)
に“1"を加えて、これを、E2PROM出力用のレジスタにセ
ットし、アドレス「0」をアドレス用レジスタにセット
して書込みのサブルーチンに進み、E2PROMへの書込みを
行なって、ステップ#1205に進む(#1185〜#1200)。
FIG. 15 is a modification of the release routine shown in FIG. First, the microcomputer (μC) prohibits interrupts other than BATINT to perform exposure control (# 1150, # 1155).
When the exposure control is completed (# 1160) and the upper 8-bit counter (CNTR2) exceeds 156, the warning data indicating that the E 2 PROM rewrite limit has been exceeded is output and the film is wound. To the subroutine of (# 1170 → #
1240). If the counter (CNTR2) is 156 or less, add "1" to the lower 8-bit counter (CNTR1) to determine whether this value is "0", that is, whether carry to the upper position has been performed (# 1175, # 1180). When this value is "0", it is considered that a carry has been performed, and the upper 8-bit counter (CNTR2)
Add "1" to, set it in the register for E 2 PROM output, set address "0" in the register for address, and proceed to the write subroutine to write to E 2 PROM. Proceed to step # 1205 (# 1185 to # 1200).

上記カウンタ(CNTR1)が“0"でない場合、桁上げが
行なわれていないので、上位8ビットの変更及びE2PROM
への書換えを行なわずステップ#1205に進む。
If the counter (CNTR1) is not "0", no carry has been performed, so the upper 8 bits are changed and the E 2 PROM is changed.
Without rewriting to, proceed to step # 1205.

次にマイコンは上位8ビットのカウンタ(CNTR2)の
カウンタの内容を調べ、この内容が39以下ならアドレス
指定変数R1を“1"(ステップ#1205,#1210)、この内
容が78以下ならアドレス指定変数R1を“11"(ステップ
#1215,#1220)、この内容が117以下ならアドレス指定
変数R1を“21"(ステップ#1225,#1230)、この内容が
117を越える場合アドレス指定変数R1を“31"(ステップ
#1235)として、下位8ビットのデータ及びアドレスR1
をE2PROM出力用のレジスタにセットして、書込みを行な
って、巻上げへと進む(#1245〜#1260)。
Next, the microcomputer checks the contents of the counter of the upper 8-bit counter (CNTR2), and if this content is 39 or less, set the addressing variable R1 to "1" (steps # 1205, # 1210), and if this content is 78 or less, specify the address. If the content of the variable R1 is "11" (steps # 1215, # 1220) and less than 117, the addressing variable R1 is "21" (steps # 1225, # 1230),
When the value exceeds 117, the address designation variable R1 is set to "31" (step # 1235) and the lower 8 bits of data and address R1
Is set in the E 2 PROM output register, writing is performed, and the process proceeds to winding (# 1245 to # 1260).

第16図はこの巻上げの処理を行なうサブルーチンであ
るが、これは第10図に図示のステップ#773の代わり
に、上位8ビットのカウンタ(CNTR2)の内容を調べる
ステップにし、この値が156以下のときに、ステップ#1
130に進み、撮影済フイルム枚数のE2PROMへの書換えを
行ない、156を越える場合にステップ#1355へと進ん
で、E2PROMの書換えを行なわないようにしている。それ
以外は、第10図と同様である。
FIG. 16 shows a subroutine for performing this winding process. This is a step of checking the contents of the upper 8-bit counter (CNTR2) instead of step # 773 shown in FIG. 10, and this value is 156 or less. When step # 1
In step 130, the number of photographed films is rewritten to the E 2 PROM. If the number exceeds 156, the process proceeds to step # 1355 so that the E 2 PROM is not rewritten. Other than that, it is similar to FIG.

〈第3実施例〉 次に示す第3の実施例は、通算レリーズ回数、撮影済
フイルム枚数のE2PROMへの書込みのタイミングを、シャ
ッターの2幕のOFF(2幕走行開始)のタイミングの時
点で行なうようにしている。この理由は2幕の走行開始
時点から露出完了(2幕走行完了)の時点まで、カメラ
の制御は何も行なう必要がなく、あき時間となっている
ので、この時間を利用して、E2PROMへの書込みを行なう
ことにより、より効率良くシーケンス制御を行なうため
である。特にこれは連写時に有効である。その場合のフ
ローチャートを第17図,第18図に示す。
<Third Embodiment> In a third embodiment shown below, the timing of writing the total number of releases and the number of photographed films to the E 2 PROM is set to the timing of turning off the two curtains (starting the two curtain travel). I try to do it at the time. The reason for this is up to the point of complete exposure from the running at the start of the second act (Act 2 traveling completion), the control of the camera anything it is not necessary to perform, since has become a tired time, by using this time, E 2 This is for more efficient sequence control by writing to the PROM. This is especially effective for continuous shooting. The flowchart in that case is shown in FIG. 17 and FIG.

第17図は第15図の変形例であり、レリーズ動作に入る
と、マイコンはまず、BATINT以外のこのフローへの割込
を禁止した後(#1150)、露出制御回路(AEC)を制御
してレリーズ動作(ミラーアップ等の露出開始までの動
作)(#1151′)を行い(これはタイマ制御或いは、ミ
ラーアップ完了を検出するスイッチを設け、これによっ
て、レリーズ動作を制御しても良い)、次いでフォーカ
ルプレーンシャッターの1幕をOFFし(1幕走行開始)
(#1152′)、露出時間経過後(#1153′)、2幕をOF
Fする(2幕走行開始(#1154′)。
FIG. 17 is a modification of FIG. 15. When the release operation is started, the microcomputer first disables interrupts to this flow other than BATINT (# 1150), and then controls the exposure control circuit (AEC). Release operation (operation up to the start of exposure such as mirror up) (# 1151 ') (this may be controlled by a timer or a switch for detecting the completion of mirror up may be used to control the release operation). Then, turn off one of the focal plane shutters (start one-curtain running).
(# 1152 '), after the exposure time elapses (# 1153'), OF 2 acts
F to start (two-curtain running (# 1154 ').

次に通算レリーズ回数のE2PROMへの書込み(#1170〜
#1255)(説明略)を行なった後、ステップ#1400で、
撮影済フイルム枚数のE2PROMへの書込みを行なう。そし
て、露出完了(2幕走行完)を待って、露出が完了する
と巻上げの制御を行なってSAのルーチンに進む(#140
3,#1406,#1410,#1413,#1420)。
Next, write the total number of releases to E 2 PROM (# 1170-
# 1255) (explanation omitted), then in step # 1400,
Write the number of taken films to E 2 PROM. Then, after the exposure is completed (two-curtain running is completed), when the exposure is completed, winding control is performed and the routine proceeds to SA (# 140
3, # 1406, # 1410, # 1413, # 1420).

第18図に撮影済フイルム枚数書換えのサブルーチンを
示す。これは、第16図に示したフイルム枚数更新のフロ
ーチャートのフイルム巻上げルーチン部分(#1300〜#
1315)を除いたフローであり、対応するステップ番号を
付して重複した説明を省略する。
FIG. 18 shows a subroutine for rewriting the number of photographed films. This is the film winding routine part (# 1300- #) of the flowchart for updating the number of films shown in FIG.
1315) is omitted, and the corresponding step numbers are given and duplicate explanations are omitted.

〈第4実施例〉 次に示す第4の実施例は、通算レリーズ回数をレリー
ズの毎に毎回毎回書込みに行くのをやめ、ある程度まと
まった回数を1単位とし、この単位での回数を書込みに
行くようにした。こうすることによって、予備のバイト
をなくし、又、消費電流をできるだけ少なくし、これに
要する(E2PROMの書込み)時間を短縮するようにしたも
のである。
<Fourth Embodiment> In a fourth embodiment shown below, the total number of releases is stopped from being written every time each release is made, and the number of times collected to some extent is set as one unit, and the number of times in this unit is written. I tried to go. By doing so, the spare bytes are eliminated, the current consumption is reduced as much as possible, and the time required for this (writing of E 2 PROM) is shortened.

但し、この場合、電池が外されたときに、マイコン
(μC)内のレジスタにメモリーされた通算レリーズ回
数は消去されるので、上記1単位に達しない回数は、キ
ャンセルされて“0"となり、この消去されたレリーズ回
数は、正確な通算レリーズ回数に対する誤差となるが、
1万回撮影される内に変換される電池の回数はしれてい
るので大きな誤差とはならない。例えば、1単位のレリ
ーズ回数を“5"、新品の電池を入れた時、この電池で撮
影可能な枚数を500枚(24枚撮りのフイルムで20本強)
とすると、1万回の撮影の内、電池交換は20回、電池交
換時にキャンセルされるレリーズ回数の平均を2.5枚と
すると20×2.5=50が1万回の内の誤差量となり、0.5%
の誤差にしかならない。
However, in this case, when the battery is removed, the total number of releases stored in the register in the microcomputer (μC) is erased, so the number of times that does not reach 1 unit is canceled and becomes “0”, This erased number of times is an error with respect to the accurate total number of releases,
Since the number of batteries that can be converted within 10,000 shots is large, it does not cause a large error. For example, the release count for one unit is "5", and when a new battery is inserted, the number of shots that can be taken with this battery is 500 (more than 20 for a film with 24 shots).
Then, out of 10,000 shootings, the battery is replaced 20 times, and if the average number of releases that are canceled when the battery is replaced is 2.5, 20 x 2.5 = 50 is the error amount within 10,000, which is 0.5%.
It is only the error of.

この第4の実施例において、上記1単位の導入に伴う
E2PROMのアドレス及びその内容の変更は、第2表と比
べ、通算レリーズ回数の下位の8ビットの予備のバイト
のアドレス(11),(21),(31)及びそれに要するメ
モリーを削除する点にあるが、これ以外は同じである。
In the fourth embodiment, the introduction of one unit described above
The address of the E 2 PROM and its contents are changed by deleting the addresses (11), (21), (31) and the memory required for them of the lower 8-bit spare bytes of the total release count as compared with Table 2. There is a point, but other than this it is the same.

第19図〜第21図にこれを実施する為のマイコン(μ
C)のフローチャートを示す。第19図〜第21図は、第3
の実施例を示す第14図〜第16図に夫々対応する。
Figures 19 to 21 show the microcomputer (μ
The flowchart of C) is shown. 19 to 21 are the third
14 to 16 showing the embodiment of FIG.

まず、第19図を参照して、マイコン(μC)は全ての
割込みを禁止して(#2000)、ステップ#2005〜ステッ
プ#2030において、E2PROMにメモリーされているアドレ
ス「0」,「1」の上位8ビット,下位8ビットのデー
タを読出し、所定のレジスタ「0」,「1」にメモリー
する(以下これらのレジスタをカウンタ(CNTR2)(CNT
R1)と言う)。
First, referring to FIG. 19, the microcomputer (μC) prohibits all interrupts (# 2000), and in steps # 2005 to # 2030, addresses “0” and “0” stored in the E 2 PROM are stored. Data of upper 8 bits and lower 8 bits of "1" are read and stored in predetermined registers "0" and "1" (hereinafter, these registers are counter (CNTR2) (CNT
R1) say).

いま、上述の1単位のレリーズ回数を“5"とすれば、
レリーズ回数が1万回となるのは、レジスタ(カウンタ
(CNTR1),(CNTR2))の地が2000となるときである。
Now, if the number of release times for one unit is "5",
The number of releases reaches 10,000 when the number of registers (counters (CNTR1) and (CNTR2)) reaches 2000.

マイコン(μC)は、上記カウンタの内容をデコード
して、その地が“24"以下であるときには、上記カウン
タの値が2千以下(1万回以下)であるので、アドレス
指定変数R1を“3"に(#2035→#2040)、上記カウンタ
のデコード値が“44"以下であるときには、カウンタの
値内容が4千以下(2万回以下)であるので、アドレス
指定変数R1を“13"に(#2045→#2050)、上記カウン
タのデコード値が“64"以下であるときには、カウンタ
の値が6千以下(3万回以下)であるので、アドレス指
定変数R1を“23"に(#2055→#2060)、上記カウンタ
のデコード値が“84"以下であるときには、カウンタの
値が8千以下(4万回以下)であるので、アドレス指定
変数R1を“33"に、各々セットして(#2085)、E2PROM
のデータDA(フイルム枚数)を読み出し(#2090)、こ
れを所定のレジスタ(R2)にメモリーして(#2095)、
ステップ#2100に進む。上記カウンタの内容が8千(4
万回)を越えるときは警告表示のデータを表示装置に出
力してステップ#2100に進む(#2097)。次にマイコン
(μC)はアドレスを「4」にして、E2PROMのデータを
読みに行き、所定のレジスタにこれをメモリーする(#
2100〜#2110)。そして1単位を計数する為の変数Kを
0にセットし、割込みを許可してリターンする(#211
5,#2220)。
The microcomputer (μC) decodes the contents of the counter, and when the area is "24" or less, the value of the counter is 2,000 or less (10,000 times or less), so the addressing variable R1 is set to " In 3 "(# 2035 → # 2040), when the decoded value of the counter is" 44 "or less, the value content of the counter is 4,000 or less (20,000 times or less), so the addressing variable R1 is set to" 13 ". In (# 2045 → # 2050), when the decoded value of the counter is "64" or less, the counter value is 6,000 or less (30,000 times or less), so the addressing variable R1 is set to "23". (# 2055 → # 2060) When the decode value of the counter is "84" or less, the counter value is 8,000 or less (40,000 times or less), so the addressing variable R1 is set to "33", respectively. Set (# 2085), E 2 PROM
Data DA (number of films) is read out (# 2090), stored in a predetermined register (R2) (# 2095),
Go to step # 2100. The content of the above counter is 8,000 (4
If it exceeds 100,000, the warning display data is output to the display device and the process proceeds to step # 2100 (# 2097). Next, the microcomputer (μC) sets the address to “4”, goes to read the E 2 PROM data, and stores it in a predetermined register (#
2100 ~ # 2110). Then, a variable K for counting one unit is set to 0, interrupts are enabled, and the process returns (# 211
5, # 2220).

次に、第20図に示すフローチャートは、第15図に示し
たフローチャートに対応するものであって、変更点は、
第15図のステップ#1170をステップ#2300にし、このス
テップ以下に、レリーズ回数が1単位に達したか否かを
判定するための3つのステップを増加した点、ステップ
#1205〜#1235をステップ#2320〜#2350にした点、ス
テップ#1250をステップ#2355にした点である。上から
順に説明すると、この第4実施例では、レリーズが5回
行なわれた時点で1回書込みに行くので、カウンタの内
容が8千以下(4万回)であるか否かを判定し、8千を
越えれば、警告表示を行なう(#2358)。8千を越えな
ければ、1単位を判定するための変数Kに1を加えて新
たにKとし(#2305)、これが“5"になったか否かを判
定する(#2310)。この変数Kが5未満であれば、E2PR
OMの書込みは行なわず巻上げ処理を行なうべく巻上げサ
ブルーチンに進む(#2360)。変数Kが“5"になればこ
れを“0"にセットし(#2351)、E2PROMへの書込みの処
理を行なう(#2311〜#2316)。
Next, the flow chart shown in FIG. 20 corresponds to the flow chart shown in FIG.
Step # 1170 in FIG. 15 is changed to step # 2300, and three steps for determining whether or not the number of releases has reached one unit are added below this step. Steps # 1205 to # 1235 are stepped. The points are # 2320 to # 2350, and step # 1250 is step # 2355. Describing in order from the top, in the fourth embodiment, writing is performed once when the release is performed five times, so it is determined whether or not the content of the counter is 8,000 or less (40,000 times). If it exceeds 8,000, a warning is displayed (# 2358). If it does not exceed 8,000, 1 is added to the variable K for judging 1 unit to newly set K (# 2305), and it is judged whether or not it becomes "5"(# 2310). If this variable K is less than 5, then E 2 PR
Do not write the OM and proceed to the winding subroutine to perform the winding process (# 2360). When the variable K becomes "5", it is set to "0"(# 2351) and the writing process to the E 2 PROM is performed (# 2311 to # 2316).

上述した様に、通算レリーズ回数が5回で一度書込み
に行くようにしているので、これまでの1万回単位のカ
ウンタの内容がかわり、このカウンタ(CNTR1,CNTR2)
のデコード値が“24"以下のとき、アドレス指定変数R1
を“3"に(#2320→#2325)、このカウンタ(CNTR1,CN
TR2)のデコード値が“44"以下のときアドレス指定変数
R1を“13"に(#2330→#2335)、このカウンタ(CNTR
1,CNTR2)のデコード値が“64"以下のときアドレス指定
変数R1を“23"に(#2340→#2345)、このカウンタ(C
NTR1,CNTR2)のデコード値が“64"を越えればアドレス
指定変数R1を“33"とする(#2350)。尚、このアドレ
ス指定変数R1は、フイルムの撮影済フイルム枚数のE2PR
OMのアドレスである。アドレス指定変数R1をセットとし
た後、下位8ビットカウンタ(CNTR1)のデータをセッ
トし(#2352)、アドレスを“1"にセットして(#235
5)、書込みルーチン迄進み、セットしたデータをE2PRO
Mに書込み(#2357)、書込み後巻上げサブルーチン
(#2360)を実行する。
As described above, since the total release count is 5 and writing is performed once, the contents of the counter in units of 10,000 times are changed, and this counter (CNTR1, CNTR2)
When the decode value of is less than "24", the addressing variable R1
To “3” (# 2320 → # 2325), set this counter (CNTR1, CN
TR2) Decoded value is less than or equal to "44" Addressing variable
Set R1 to “13” (# 2330 → # 2335) and set this counter (CNTR
When the decoded value of (1, CNTR2) is "64" or less, the addressing variable R1 is set to "23"(# 2340 → # 2345), and this counter (C
If the decoded value of NTR1, CNTR2) exceeds "64", the addressing variable R1 is set to "33"(# 2350). Note that this addressing variable R1 is the E 2 PR of the number of photographed films of the film.
This is the address of the OM. After the addressing variable R1 is set, the lower 8-bit counter (CNTR1) data is set (# 2352) and the address is set to "1"(# 235
5) Proceed to the write routine, and set data to E 2 PRO
Write to M (# 2357), and execute the winding subroutine after writing (# 2360).

第21図のフローチャートは、第16図に示したフローチ
ャートに対応するもので、アドレスの値設定の為のステ
ップ#1335を削除し、ステップ#1325をステップ#2360
に変更した以外は、第16図のフローチャートと同じであ
る。この変更は、通算レリーズ回数が5回で一度書込み
に行くようにしたことに伴う変更であり、他のステップ
については、第16図の対応するステップ番号を付して説
明を省略する。
The flowchart shown in FIG. 21 corresponds to the flowchart shown in FIG. 16, in which step # 1335 for setting the address value is deleted and step # 1325 is replaced with step # 2360.
It is the same as the flowchart of FIG. 16 except that it is changed to. This change is accompanied by the fact that the total number of releases is 5, and the writing is performed once. For other steps, the corresponding step numbers in FIG. 16 are given and the description thereof is omitted.

〈第5実施例〉 次に示す第5の実施例は、使用されているフイルム枚
数を用いて、通算レリーズ回数を計数しようとするもの
で、具体的には、フイルムが装填されたときに、そのフ
イルムのフイルム枚数を、これを電気的に示したパター
ンから読みとり、この枚数で通算レリーズ回数を規格化
する。この規格化する為のフイルム枚数し12枚とし通算
レリーズ回数12を1単位として、カウンタに“1"を加算
する。つまり、この実施例では実際のレリーズ回数をカ
ウントせずにフイルム枚数で代用し、さらに、第4実施
例では、レリーズ回数5回を1単位としたのに対し、12
回を1単位としている。
<Fifth Embodiment> A fifth embodiment shown below is intended to count the total number of releases using the number of used films. Specifically, when a film is loaded, The number of films of the film is read from the electrically indicated pattern, and the total number of releases is standardized by this number. The number of films for this standardization is 12, and the total number of releases 12 is 1 as a unit, and "1" is added to the counter. That is, in this embodiment, instead of counting the actual number of releases, the number of films is used as a substitute, and in the fourth example, the number of releases is 5 as one unit.
The number of times is one unit.

従って、レリーズ回数1万回はカウント値としては83
3(実際の通算レリーズ回数は9996回)となり、同様に
2万回はカウント値としては1666(19992)、3万回は
カウント値としては2499(29988)、4万回はカウント
値としては3332(39984)となる。尚、3万回ではカウ
ント値としては2500となるが、2500とすると、2万回と
の間が1万8となり1万を越えるので採用しないことに
する。
Therefore, the release count of 10,000 is 83
3 (actual total release number is 9996 times), similarly 20,000 times as count value 1666 (19992), 30,000 times as count value 2499 (29988), 40,000 times as count value 3332 (39984). It should be noted that the count value becomes 2500 after 30,000 times, but when it is set to 2500, it becomes 10 between 20,000 times and exceeds 10,000, so it is not adopted.

これを実施する為のフローチャートを、第22図〜第25
図に示す。
A flowchart for implementing this is shown in Figs.
Shown in the figure.

第22図のフローチャートは第19図のフローチャートに
対応するもので、書換え回数の規格化の単位が異なる為
に、第19図のステップ#2035,ステップ#2045,ステップ
#2055,ステップ#2065における数値をステップ#2400,
ステップ#2410,ステップ#2420,ステップ#2430におい
て、上述の様なカウント値に各々変更したもので、他は
第19図と同じステップ番号を付して説明を省略する。な
お、第19図のステップ#2115における変数Kのリセット
は、本実施例では不要なので省略してある。
The flow chart of FIG. 22 corresponds to the flow chart of FIG. 19, and since the unit of standardization of the number of rewrites is different, the numerical values in step # 2035, step # 2045, step # 2055, step # 2065 in FIG. To step # 2400,
In step # 2410, step # 2420, and step # 2430, the count values are changed as described above, and the other steps have the same step numbers as those in FIG. 19 and the description thereof will be omitted. The resetting of the variable K in step # 2115 in FIG. 19 is omitted because it is unnecessary in this embodiment.

この場合のフイルム枚数の読取りは、新しいフイルム
が装填されて裏蓋が閉じられたときに実行される裏蓋閉
用のサブルーチン(第11図参照)において行えばよい。
第23図に示すフローチャートは、第11図に示したフロー
チャートにフイルム枚数読取りのサブルーチン(#244
0)を付加したもので、他は第11図と同じであるので、
同じステップ番号を付して説明を省略する。このサブル
ーチンを第24図に示し説明すると、まずマイコン(μ
C)は、カウント値が3332以下(通算レリーズ回数が約
4万回以下)であるかを判定し、これを越える場合に
は、カウンタ(CNTR1),(CNTR2)の内容の書換えを行
なわず、警告表示のデータを表示装置に出力してリター
ンする(#2450,#2452)。
In this case, the reading of the number of films may be performed in a back lid closing subroutine (see FIG. 11) which is executed when a new film is loaded and the back lid is closed.
The flowchart shown in FIG. 23 is the same as the flowchart shown in FIG.
(0) is added, and the others are the same as in FIG. 11, so
The same step number is assigned and the description is omitted. This subroutine is shown in FIG. 24 and explained. First, the microcomputer (μ
C) judges whether the count value is 3332 or less (the total number of release times is about 40,000 times or less). If it exceeds this, the contents of the counters (CNTR1) and (CNTR2) are not rewritten, The warning display data is output to the display device and the process returns (# 2450, # 2452).

カウンタの値が3332以下の場合は、ステップ#2453で
DXフイルムか否かを判定して、DXフイルムでないとき
は、よく使われるフイルム枚数をセットすべく、ステッ
プ#2480に進む。現在、最もよく使われているフイルム
は36枚撮りのものであるので、フイルム枚数を36枚とし
て、カウンタ(CNTR1)に“3"を加算する。しかし、フ
イルム枚数を24枚としてステップ#2470に進んでカウン
タに“2"を加算する、又は、両方の平均をとって、カウ
ント値のを2.5としても良い。(但し、このときには、
小数点を含んだカウントができるようにしておく必要が
ある)。
If the counter value is less than 3332, go to step # 2453.
If it is not a DX film, it is determined whether it is a DX film or not, and the process proceeds to step # 2480 to set the number of frequently used films. At present, the most commonly used film is for taking 36 images, so the number of films is set to 36 and "3" is added to the counter (CNTR1). However, the number of films may be set to 24 and the process may proceed to step # 2470 to add "2" to the counter, or the both may be averaged to set the count value to 2.5. (However, at this time,
It is necessary to be able to count including the decimal point).

DXフイルムであるときは、12枚撮りのフイルム、20又
は24枚撮りのフイルム、36枚撮りのフイルム、72枚撮り
のフイルムであるか否かを夫々ステップ#2455,ステッ
プ#2465,ステップ#2475において判定し、12枚、20,24
枚、36枚,72枚であれば、夫々、ステップ#2460,#247
0,#2480,#2485において、下位8ビットのカウンタ(C
NTR1)の内容に“1",“2",“3",“6"を加えてこれを別
のカウンタ(CNTR3)にセットし、ステップ#2490に進
む。
When the film is a DX film, it is determined whether the film is a 12-photo film, a 20- or 24-photo film, a 36-photo film, or a 72-photo film, respectively, step # 2455, step # 2465, step # 2475. 12 sheets, 20,24
If the number of sheets is 36, 72, step # 2460, # 247, respectively
For 0, # 2480, # 2485, the lower 8-bit counter (C
Add "1", "2", "3", "6" to the contents of NTR1) and set it in another counter (CNTR3), and proceed to step # 2490.

ステップ#2490では、上記2つのカウンタ(CNTR3)
と(CNTR1)のカウント値の大小を比較する。カウンタ
(CNTR3)の方が小さいときは桁上げが行なわれたとし
て、上位8ビットのカウンタ(CNTR2)に1を加えたデ
ータと、そのアドレス「0」を出力用のレジスタに夫々
セットして、書込みのサブルーチンに進み、E2PROMへの
書込みを行なってステップ#2515に進む(#2495〜#25
10)。カウンタ(CNTR3)の方が大きいときには、上位
8ビットの書込みを行なわずステップ#2515に進み、こ
のカウンタ(CNTR3)の内容をカウンタ(CNTR1)に移
す。
In step # 2490, the above two counters (CNTR3)
And (CNTR1) count values are compared. When the counter (CNTR3) is smaller, it is assumed that a carry has been performed, and the data obtained by adding 1 to the upper 8-bit counter (CNTR2) and its address "0" are set in the output register, respectively. Proceed to the write subroutine, write to the E 2 PROM, and proceed to step # 2515 (# 2495 to # 25
Ten). When the counter (CNTR3) is larger, the upper 8 bits are not written and the process proceeds to step # 2515 to transfer the contents of this counter (CNTR3) to the counter (CNTR1).

マイコン(μC)はカウンタ(CNTR1)(CNTR2)のカ
ウント値を以下の通りに判定し処理する。即ち、883以
下のとき、アドレス指定変数R1を“3"に(#2520→#25
25)、1666以下のとき、アドレス指定変数R1を“13"に
(#2530→#2535)、2499以下のとき、アドレス指定変
数R1を“23"に(#2540→#2545)、2499を越えると
き、アドレス指定変数R1を“33"に(#2540→#255
0)、各々セットし、下位8ビットのデータ及びアドレ
ス指定変数R1をE2PROM出力用のレジスタに夫々セットし
て(#2555,#2560)、書込みのサブルーチンに進んで
このデータE2PROMに書込んでリターンする(#2565)。
The microcomputer (μC) determines and processes the count value of the counter (CNTR1) (CNTR2) as follows. That is, when it is 883 or less, the addressing variable R1 is set to “3” (# 2520 → # 25
25), when 1666 or less, the addressing variable R1 is set to "13"(# 2530 → # 2535), when it is 2499 or less, the addressing variable R1 is set to "23"(# 2540 → # 2545), exceeding 2499 When the addressing variable R1 is set to "33"(# 2540 → # 255
0), set each, and set the lower 8 bits of data and the addressing variable R1 in the registers for E 2 PROM output (# 2555, # 2560), and proceed to the write subroutine to write to this data E 2 PROM. Write and return (# 2565).

さらに、第4の実施例と比べて変更を要した点は、露
出完了時に通算レリーズ回数の書込みが不要となった点
と、通算レリーズ回数をフイルム枚数で規格化した点に
あり、前者による変更は、第25図に示すように、第20図
におけるステップ#2300〜#2358を削除した。後者によ
る変更は第26図に示すように、第21図のステップ#2360
に対応するステップ#2600において(CNTR2),(CNTR
1)≦3332とすることで対応することができる。
Furthermore, compared with the fourth embodiment, changes are required because it is not necessary to write the total release number when the exposure is completed, and the total release number is standardized by the number of films. Deleted steps # 2300 to # 2358 in FIG. 20 as shown in FIG. The modification by the latter is as shown in FIG. 26, step # 2360 of FIG. 21.
Step # 2600 corresponding to (CNTR2), (CNTR2
1) It can be dealt with by setting ≦ 3332.

さらに、第5の実施例の一部を変更することにより、
別の変形例を示す。この変形例では、フイルムが装填
(スプールに巻きついている状態)されている状態で裏
蓋が開放され、フイルムが抜かれた場合に、撮影済フイ
ルム枚数を“0"に表示すると共に、“0"をE2PROMに書換
えに行くようにする。
Furthermore, by changing a part of the fifth embodiment,
Another modification is shown. In this modified example, when the back cover is opened while the film is loaded (the state where it is wound around the spool) and the film is removed, the number of shot films is displayed as "0" and "0" is displayed. To be rewritten to E 2 PROM.

その場合のフローチャートを第27図,第28図に示す。
第27図は、第7図に示したS1ONの割込みルーチンの変形
であって、フイルムが装填されていないときに、第7図
のステップ#470に代えて「0」書込みを行なうか否か
の判定を行なうためのサブルーチン(#2700)を設けた
ものである。
Flow charts in that case are shown in FIGS. 27 and 28.
FIG. 27 is a modification of the S1ON interrupt routine shown in FIG. 7, and indicates whether "0" is written instead of step # 470 in FIG. 7 when the film is not loaded. A subroutine (# 2700) for making a determination is provided.

このサブルーチンを第28図に示す。 This subroutine is shown in FIG.

マイコン(μC)は、フイルム有無を示すフラグ(FI
LF)がセットされているかを判定し(#2705)、セット
されていれば、前回このフローを実行したときにフイル
ムがあって、今回フイルムがなくなった、換言すれば途
中でフイルムが抜かれたとして、以下「0」書込みのフ
ローを行なう。まずフラグをリセットする(#2710)。
次に通算レリーズ回数のカウンタ(CNTR2,CNTR1)のカ
ウント値が3332以下(約4万回)であるかを判定する
(#2715)。3332以下であれば撮影済フイルム枚数の変
数NRを“0"とし(#2720)、このデータ(NR)及びアド
レス指定変数R1をE2PROM出力用のデータ及びアドレスレ
ジスタに夫々セットして(#2725,#2730)、書込みサ
ブルーチンに進み、このデータ「0」を書込む(#273
5)。これにより、フイルムが抜かれたときにも、それ
以降のステップですぐに表示されると共にE2PROMへすぐ
に書込みに行くので、このときに電池が外され、新たに
電池が装着されても正しい撮影済フイルム枚数が表示さ
れる。
The microcomputer (μC) uses a flag (FI
LF) is set (# 2705), and if it is set, there is a film when this flow was executed last time, the film has disappeared this time, in other words, the film has been pulled out on the way. Then, the flow of writing "0" is performed. First, the flag is reset (# 2710).
Next, it is determined whether or not the count value of the total release counters (CNTR2, CNTR1) is 3332 or less (about 40,000 times) (# 2715). If it is 3332 or less, the variable NR of the number of photographed films is set to "0"(# 2720), and this data (NR) and addressing variable R1 are set in the data and address register for E 2 PROM output, respectively (# 2725, # 2730), and proceed to the write subroutine to write this data “0” (# 273
Five). As a result, even if the film is removed, it will be displayed immediately in the subsequent steps and will go to writing to the E 2 PROM immediately, so even if the battery is removed at this time and a new battery is installed, it is correct. The number of taken films is displayed.

第28において、ステップ#2705でフラグがセットされ
ていないとき、或いはステップ#2715で所定の書換え回
数を越えているときは書換えを行なわずリターンする。
In the twenty-eighth step, if the flag is not set in step # 2705 or if the predetermined number of times of rewriting is exceeded in step # 2715, no rewriting is performed and the process returns.

以上に実施例及び変形例を示し、その中でE2PROMの書
換え可能回数は1万回としたが、これは現存するE2PROM
の限界であって、技術向上によりこの回数が変われば、
それに応じて実施例や変形例中の書換え可能回数を変え
れば良い。
Although the number of rewritable times of the E 2 PROM is set to 10,000 times in the above-described embodiments and modified examples, this is due to the existing E 2 PROM.
It is the limit of, and if this number changes due to technological improvement,
The number of rewritable times in the embodiment and the modification may be changed accordingly.

又、通算レリーズ回数は4万回まで計数したが、これ
よりも大きくても、小さくても良いことは言うまでもな
い。
Although the total number of releases is 40,000, it goes without saying that it may be larger or smaller than this.

また、イニシャルロード時に、巻上げと同時にレリー
ズが行なわれるものであれば、この回数もレリーズ回数
として、計数すれば良い。
If the release is performed simultaneously with the winding at the time of initial loading, this number may be counted as the release number.

また、実施例及び変形例では、撮影済フイルム枚数の
書換え回数をカウントしても良いことはいうまでもな
く、これの方が正確に撮影済フイルム枚数の書換え回数
を検出することができる。これには、マイコン(μC)
でこの回数をカウントすることと、E2PROM内にこのカウ
ント値を書換えの度にメモリーする2バイト(1万回計
数)のメモリーと、予備のメモリーとを設けるようにす
ればよい。
In addition, in the embodiment and the modification, it is needless to say that the number of rewriting of the number of photographed films may be counted, and this can more accurately detect the number of rewriting of the number of photographed films. This includes a microcomputer (μC)
Therefore, it is sufficient to count the number of times, and to provide a memory of 2 bytes (counting 10,000 times) for storing the count value each time the E 2 PROM is rewritten and a spare memory.

[発明の効果] 本発明によれば、フイルム感度の書換えが必要である
と判定したときのみ書込みが行われ、しかも単に感度設
定のための外部操作を行っただけではE2PROMの書き込み
動作は行われず、フイルム感度変更モードの解除に応答
して書込動作が行われる。これによりE2PROMの書換回数
を減らすことができる。
According to the present invention, the writing operation is performed only when it is determined that the film sensitivity needs to be rewritten, and the writing operation of the E 2 PROM is performed only by performing the external operation for the sensitivity setting. Instead, the writing operation is performed in response to the release of the film sensitivity changing mode. As a result, the number of times E 2 PROM is rewritten can be reduced.

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

第1図は本発明の実施例にかかるカメラのシステム構成
図、第2図は電池交換時の割込みルーチンを示すフロー
チャート、第3図(I),第3図(II)はE2PROMからRA
Mへのデータの読出しを夫々示すフローチャート、第4
図(I)はISO変更サブルーチンを示すフローチャー
ト、第4図(II)は表示装置の平面図、第5図はISO書
込みのサブルーチンの全体を示すフローチャート、第6
図は同じくISO書込みのサブルーチンを示すフローチャ
ート、第7図は撮影準備のサブルーチンを示すフローチ
ャート、第8図はシャッタレリーズ時の制御を示すフロ
ーチャート、第9図はアドレス変更サブルーチンを示す
フローチャート、第10図はフイルム巻上げサブルーチン
を示すフローチャート、第11図は裏蓋閉時の制御を示す
フローチャート、第12図はイニシャルロードサブルーチ
ンのフローチャート、第13図はバッテリ割込みを示すフ
ローチャート、第14図は第1の変形例を示す第2図に対
応したフローチャート、第15図は第8図に対応したシャ
ッタレリーズルーチンを示すフローチャート、第16図は
巻き上げサブルーチンを記す第10図に対応したフローチ
ャート、第17図は第15図に対応したシャッタレリーズル
ーチンを示すフローチャート、第18図は撮影済みフイル
ム枚数書換えサブルーチンのフローチャート、第19図,
第20図,第21図は、夫々第14図,第15図,第16図に対応
したフローチャート、第22図,第23図は、夫々第19図,
第11図に対応したフローチャート、第24図はフイルム枚
数読取りのサブルーチンを示すフローチャート、第25図
はシャッタレリーズ時のルーチンを示すフローチャー
ト、第26図はフイルム巻上げのサブルーチンを示すフロ
ーチャート、第27図はS1ONのサブルーチンを示すフロー
チャート、第28図は「0」書込み判定ルーチンを示すフ
ローチャートである。 μC…マイコン、E2PROM…書込み・消去可能なROM、S1
…撮影準備スイッチ、S2…レリーズスイッチ、SISO…IS
O変更スイッチ、Su,Sd…アップ・ダウンスイッチ。
FIG. 1 is a system configuration diagram of a camera according to an embodiment of the present invention, FIG. 2 is a flowchart showing an interrupt routine at the time of battery replacement, and FIGS. 3 (I) and 3 (II) are E 2 PROM to RA.
Flowchart showing reading of data to M, respectively,
FIG. (I) is a flow chart showing the ISO change subroutine, FIG. 4 (II) is a plan view of the display device, FIG. 5 is a flow chart showing the whole ISO writing subroutine, and FIG.
FIG. 7 is a flowchart showing a subroutine for ISO writing, FIG. 7 is a flowchart for showing a shooting preparation subroutine, FIG. 8 is a flowchart for showing control for shutter release, FIG. 9 is a flowchart for showing address change subroutine, and FIG. Is a flow chart showing a film winding subroutine, FIG. 11 is a flow chart showing control when the back cover is closed, FIG. 12 is a flow chart of initial load subroutine, FIG. 13 is a flow chart showing battery interruption, and FIG. 14 is a first modification. An example of the flowchart corresponding to FIG. 2, FIG. 15 is a flowchart illustrating a shutter release routine corresponding to FIG. 8, FIG. 16 is a flowchart corresponding to FIG. 10 showing a winding subroutine, and FIG. Flowchart showing the shutter release routine corresponding to the figure , FIG. 18 is a flow chart of recorded number of film frames rewriting subroutine, Fig. 19,
20 and 21 are flowcharts corresponding to FIGS. 14, 15, and 16, respectively, and FIGS. 22 and 23 are FIG. 19 and FIG. 19, respectively.
FIG. 11 is a flowchart corresponding to FIG. 11, FIG. 24 is a flowchart showing a film number reading subroutine, FIG. 25 is a flowchart showing a shutter release routine, FIG. 26 is a flowchart showing a film winding subroutine, and FIG. FIG. 28 is a flowchart showing the S1ON subroutine, and FIG. 28 is a flowchart showing the “0” write determination routine. μC: Microcomputer, E 2 PROM: Writable / erasable ROM, S1
… Shooting preparation switch, S2… Release switch, SISO… IS
O change switch, Su, Sd… up / down switch.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 石村 俊彦 大阪市東区安土町2丁目30番地 大阪国 際ビル ミノルタカメラ株式会社内 (72)発明者 藤野 明彦 大阪市東区安土町2丁目30番地 大阪国 際ビル ミノルタカメラ株式会社内 (72)発明者 大塚 博司 大阪市東区安土町2丁目30番地 大阪国 際ビル ミノルタカメラ株式会社内 (56)参考文献 特開 昭60−70428(JP,A) 特開 昭58−36077(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Toshihiko Ishimura 2-30 Azuchi-cho, Higashi-ku, Osaka City Minami Camera Co., Ltd. (72) Inventor Akihiko Fujino 2-30 Azuchi-cho, Higashi-ku, Osaka Osaka Kiki Building Minolta Camera Co., Ltd. (72) Inventor Hiroshi Otsuka 2-30 Azuchi-cho, Higashi-ku, Osaka Osaka Kokusai Building Minolta Camera Co., Ltd. (56) Reference JP-A-60-70428 (JP, A) JP 58-36077 (JP, A)

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】制御用マイクロコンピュータを内蔵すると
ともに、制御用マイクロコンピュータによって書き込み
・消去が電気的に制御されるE2PROMを内蔵しており、該
E2PROMには、少なくともフィルム感度を記憶するメモリ
領域が設けられている一方、 フィルム感度変更モードを設定するモード設定手段と、 フィルム感度変更モードが設定されたときに、所定の外
部操作により変更すべきフィルム感度を設定するフィル
ム感度設定手段と、 設定されたフィルム感度に基づいてE2PROMのフィルム感
度用メモリの書換えが必要か否かを判定する書換え判定
手段と、 書換え判定手段により書換えが必要であると判定された
場合に、フィルム感度変更モードの解除に応答して上記
フィルム感度設定手段によって設定されたフィルム感度
をE2PROMのフィルム感度メモリ領域に書込む書込み手段
とを備えて、 フィルム感度のE2PROMへの書込みを制御するようにした
ことを特徴とするE2PROM内蔵カメラ。
1. A control microcomputer is built-in, and an E 2 PROM whose writing / erasing is electrically controlled by the control microcomputer is built-in.
The E 2 PROM has at least a memory area for storing the film sensitivity, but it also has a mode setting means for setting the film sensitivity changing mode and a predetermined external operation when the film sensitivity changing mode is set. The film sensitivity setting means for setting the film sensitivity to be set, the rewriting judging means for judging whether or not the film sensitivity memory of the E 2 PROM needs to be rewritten based on the set film sensitivity, and the rewriting judging means for rewriting. When it is determined that it is necessary, a writing means for writing the film sensitivity set by the film sensitivity setting means in the film sensitivity memory area of the E 2 PROM in response to the release of the film sensitivity changing mode is provided. A camera with a built-in E 2 PROM characterized by controlling the writing of film speed to the E 2 PROM.
【請求項2】上記の書換え判定手段は、フィルム感度設
定手段により設定されたフィルム感度が、現在E2PROMに
記憶されているフィルム感度と等しくない場合にのみ書
換えを行うと判定する、特許請求の範囲第1項記載のE2
PROM内蔵カメラ。
2. The rewriting judgment means judges that the rewriting is performed only when the film sensitivity set by the film sensitivity setting means is not equal to the film sensitivity currently stored in the E 2 PROM. E 2 in the range 1
Camera with built-in PROM.
JP61242806A 1986-10-13 1986-10-13 E ↑ 2 ▼ PROM built-in camera Expired - Fee Related JP2506347B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP61242806A JP2506347B2 (en) 1986-10-13 1986-10-13 E ↑ 2 ▼ PROM built-in camera
US07/106,774 US4783674A (en) 1986-10-13 1987-10-13 Photographic camera with built-in E2PROM
US07/268,471 US4912492A (en) 1986-10-13 1988-11-08 Photographic camera with built-in E2 PROM
US07/484,348 US4978982A (en) 1986-10-13 1990-02-26 Photographic camera with built-in E2.sup. prom

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61242806A JP2506347B2 (en) 1986-10-13 1986-10-13 E ↑ 2 ▼ PROM built-in camera

Publications (2)

Publication Number Publication Date
JPS6396641A JPS6396641A (en) 1988-04-27
JP2506347B2 true JP2506347B2 (en) 1996-06-12

Family

ID=17094561

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61242806A Expired - Fee Related JP2506347B2 (en) 1986-10-13 1986-10-13 E ↑ 2 ▼ PROM built-in camera

Country Status (1)

Country Link
JP (1) JP2506347B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011064980A1 (en) 2009-11-30 2011-06-03 パナソニック株式会社 Image capturing apparatus and camera main body

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5836077A (en) * 1981-08-26 1983-03-02 Fuji Photo Optical Co Ltd Television camera system
JPS6070428A (en) * 1983-09-27 1985-04-22 Nippon Kogaku Kk <Nikon> Dimmable distance range display device of flash device

Also Published As

Publication number Publication date
JPS6396641A (en) 1988-04-27

Similar Documents

Publication Publication Date Title
JP2003098583A (en) Camera using rewritable memory
US6442349B1 (en) Camera capable of storing photographing data and display device connectable thereto
JPS6061731A (en) Data storage device of camera
US4783674A (en) Photographic camera with built-in E2PROM
JP2506347B2 (en) E ↑ 2 ▼ PROM built-in camera
US5293191A (en) Camera
JPH0455836A (en) Camera rpovided with e2prom
JP2821560B2 (en) Camera data storage
JPS6396642A (en) E2 prom incorporated camera
US4912492A (en) Photographic camera with built-in E2 PROM
US5293189A (en) Photographic system capable of recording therein photographing data and reading out the same and film structure for use in the photographic system
JP3500470B2 (en) camera
JPH0695228A (en) Camera capable of storing image pickup data and display device
JP3066392B2 (en) camera
JPH02294628A (en) Camera
Ishikawa et al. Photographic camera with built-in E 2 PROM
JPH0614206Y2 (en) Electronic control camera
JP3704167B2 (en) Electronic still camera
EP0615187A1 (en) One-chip microcomputer system having function for substantially correcting contents of program
US5659824A (en) Camera which stores and reads out photographic data
JPH08320519A (en) Date imprinting device for camera
JP3243325B2 (en) camera
JP3368612B2 (en) camera
JPH0667288A (en) Camera capable of storing photographic data
JPH04333943A (en) Data writer/reader

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees