JP2687958B2 - Automatic focus detection device - Google Patents

Automatic focus detection device

Info

Publication number
JP2687958B2
JP2687958B2 JP61086292A JP8629286A JP2687958B2 JP 2687958 B2 JP2687958 B2 JP 2687958B2 JP 61086292 A JP61086292 A JP 61086292A JP 8629286 A JP8629286 A JP 8629286A JP 2687958 B2 JP2687958 B2 JP 2687958B2
Authority
JP
Japan
Prior art keywords
lens
mode
signal
focus
flag
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 - Lifetime
Application number
JP61086292A
Other languages
Japanese (ja)
Other versions
JPS61267743A (en
Inventor
正隆 浜田
徳治 石田
保明 赤田
Original Assignee
ミノルタ株式会社
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 ミノルタ株式会社 filed Critical ミノルタ株式会社
Priority to JP61086292A priority Critical patent/JP2687958B2/en
Publication of JPS61267743A publication Critical patent/JPS61267743A/en
Application granted granted Critical
Publication of JP2687958B2 publication Critical patent/JP2687958B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、補助光装置を有する自動焦点検出装置に関
する。 従来の技術 従来、撮影のために被写体を照明するフラッシュと、
焦点検出のために被写体を照明する補助光照明装置を有
するカメラは知られている。 この補助光照明装置は、通常は被写体が暗すぎて焦点
検出が不可能な場合に作動するようになっている。した
がって、焦点検出に補助光が必要なときは、撮影におい
てフラッシュの発光が必要となる。 発明が解決しようとする課題 ところが、従来の装置によると、フラッシュが発光可
能かどうかにかかわらず、補助光を用いた焦点検出が行
われていたので、焦点検出によって合焦が検出されて撮
影を行おうとしてもフラッシュが発光可能状態でない場
合があり、フラッシュが発光可能となるまで待たなけれ
ばならないことがあった。その対策として、フラッシュ
が発光可能な状態となってから補助光手段を発光させて
焦点検出を行う構成が考えられる。しかしながら、単に
フラッシュが発光可能状態になるのを待っているだけで
は、待っている間に被写体の状況が変化して補助光なし
で焦点状態が検出できフラッシュなしで撮影ができる程
度の輝度になった場合でも、フラッシュが発光可能にな
るまで待つことになり、シャッターチャンスを逃してし
まうことになる。 そこで、本発明は補助光を用いた焦点検出動作が行わ
れる際には必ずフラッシュが発光可能状態になるように
すると共に、補助光を用いた焦点検出動作が行われるま
でに通常の焦点検出動作を繰り返し行うことでシャッタ
ーチャンスを優先にした焦点検出装置を提供することを
目的とする。 課題を解決するための手段 上記課題を解決するために、本発明は、被写体光を受
光してその受光状態に基づいて上記被写体の焦点状態を
検出する動作を行う焦点検出手段と、前記焦点検出手段
の検出結果に基づいて合焦動作を行う合焦手段と、上記
焦点検出のために被写体を照明する補助光手段と、受光
状態に基づいて上記補助光手段が必要か否かを判定する
補助光判定手段と、上記補助光判定手段により補助光手
段が必要と判定されているときに、フラッシュ発光が可
能かどうかを判定する判定手段と、上記判定手段によっ
てフラッシュ発光が不可能と判定されているとフラッシ
ュ発光可能となるまで上記補助光手段の動作を禁止する
禁止手段と、上記禁止手段の動作中に上記焦点検出手段
を繰り返し動作させ、繰り返し動作中に焦点検出が可能
となれば前記補助光手段を使用することなく合焦手段を
動作させる制御手段とを有することを特徴とする。 作用 上記構成によると、フラッシュが発光不可能な場合に
は補助光の発光が禁止され、補助光が発光されたときに
は必ずフラッシュも発光可能となっている。また、補助
光の発光が禁止されている間に補助光なしでの焦点検出
動作が繰り返し行われる。 実施例 本発明の実施例による自動焦点調節のためのカメラシ
ステムの概略を第1図に基づいて説明する。第1図にお
いて、一点鎖線の左側はズームレンズ(LZ)、右側はカ
メラ本体(BD)であり、両者はそれぞれクラッチ(10
6)(107)を介して機構的に、接続端子(JL1)〜(JL
5)(JB1)〜(JB5)を介して電気的に接続される。こ
のカメラシステムでは、ズームレンズ(LZ)のフォーカ
ス用レンズ(FL)、ズーム用レンズ(ZL)、マスターレ
ンズ(ML)を通過した被写体光が、カメラ本体(BD)の
反射ミラー(108)の中央の半透光部を透過し、サブミ
ラー(109)によって反射されCCDイメージセンサ(FL
M)に受光されるように、その光学系が構成されてい
る。 インターフェース回路(112)は合焦検出モジュール
(AFM)内のCCDイメージセンサ(FLM)を駆動したり、C
CDイメージセンサ(FLM)から被写体データを取り込ん
だり、またこのデータをAFコントローラ(113)へ送り
出したりする。AFコントローラ(113)はCCDイメージセ
ンサ(FLM)からの信号に基づいて、合焦位置からのズ
レ量を示すデフォーカス量|ΔL|とデフォーカス方向
(前ピン,後ピン)との信号を算出する。モータ(MO
1)はこれら信号に基づいて駆動され、その回転はスリ
ップ機構(SLP)、駆動機構(LDR)、カメラ本体側クラ
ッチ(107)を介してズームレンズ(LZ)に伝達され
る。尚、スリップ機構(SLP)はズームレンズ(LZ)の
被動部に所定以上のトルクがかかったときにすべってモ
ータ(MO1)にその負荷がかからないようにするもので
ある。 ズームレンズ(LZ)において、フォーカス用レンズ
(FL)を駆動するための焦点調節部材(102)の内周に
は雌ヘリコイドネジが形成されており、これにネジ嵌合
するように、レンズマウント(121)と一体となった固
定部(101)の外周に雄ヘリコイドネジが形成されてい
る。焦点調節部材(102)の外周には大歯車(103)が設
けられており、この大歯車(103)は小歯車(104)、伝
達機構(105)を介して、レンズ側クラッチ(106)に連
結されている。これにより、モータ(MO1)の回転が、
カメラ本体のスリップ機構(SLP)、本体側のクラッチ
(107)、レンズ側のクラッチ(106)、レンズ内の伝達
機構(105)、小歯車(104)及び大歯車(103)を介し
て、焦点調節部材(102)に伝達され、ヘリコイドネジ
によってフォーカス用レンズ(FL)が光軸方向に前後に
移動して焦点調節が行なわれる。また、レンズ(FL)の
駆動量をモニターするためのエンコーダ(ENC)がカメ
ラ本体(BD)の駆動機構(LDR)に連結されており、こ
のエンコーダ(ENC)からレンズ(FL)の駆動量に対応
した数のパルスが出力される。 ここで、モータ(MO1)の回転数をNM(rot)、エンコ
ーダ(ENC)からのパルス数をN、エンコーダ(ENC)の
分解能をρ(1/rot)、モータ(MO1)の回転軸からエン
コーダ(ENC)の取付軸までの機械伝達系の減速比をμ
P、モータ(MO1)の回転軸からカメラ本体側クラッチ
(107)までの機械伝達系の減速比をμB、レンズ側ク
ラッチ(106)から大歯車(103)までの機械伝達系を減
速比をμL、焦点調節部材(102)のヘリコイドリード
をLH(mm/rot)、フォーカス用レンズ(FL)の移動量を
Δd(mm)とすると、 N=ρ・μP・NM Δd=NM・μB・μL・LH 即ち、 Δd=N・μB・μL・LH/(ρ・μP) ……(1) の関係式が得られる。 また、レンズをΔd(mm)だけ移動させたときの結像
面の移動量ΔL(mm)と上記Δdとの比を K op=Δd/ΔL ……(2) で表わすと、式(1)(2)より N=Kop・ΔL・ρ・μP/(μB・μL・LH) ……(3) の関係式が得られる。ここで、 KL=Kop/(μL・LH) ……(4) KB=ρ・μP/μB ……(5) とすると、 N=KB・KL・ΔL ……(6) の関係式が得られる。 尚、(6)式において、ΔLは信号処理回路(112)
からデフォーカス量|ΔL|とデフォーカス方向の信号と
して得られる。また、(4)式のKLは、ズームレンズ
(LZ)の変倍操作用ズームリング(ZR)の回動操作によ
り認定された焦点距離に対応してレンズ回路(LEC)か
ら出力される。即ち、ズームリング(ZR)の回動位置に
応じたデータをコード板(FCD)が出力し、このデータ
がレンズ回路(LEC)に送られ、このコード板(FCD)か
らのデータに対応したアドレスに記憶されているKLのデ
ータが直列でカメラ本体の読取回路(LDC)で読取られ
る。コード板(FCD)は、ズームリング(ZR)の回動設
定位置に対応したデータを出力するよう、コードパター
ンが定められている。また、レンズ回路(LEC)内に内
蔵されたROMのような固定記憶手段には、ズームリング
(ZR)により設定される焦点距離に対応したKLのデータ
が、それぞれコード板(FCD)からのデータに対応した
アドレスに予め固定記憶されている。 また、(5)式のKBはカメラ本体での前記減速比μB
に応じて固定的に定められるデータであり、このデータ
KBはカメラコントローラ(111)が持っている。 ここで、カメラ本体側の読取回路(LDC)からレンズ
側のレンズ回路(LEC)へは、端子(JB1)(JL1)を介
して電源が、端子(JB2)(JL2)を介して同期用クロッ
クパルスが、端子(JB3)(JL2)を介して読込開始信号
がそれぞれ送られる。また、レンズ回路(LEC)から読
取回路(LDC)へは、端子(JL4)(JB4)を介してデー
タKLが直列で出力される。尚、端子(JB5)(JL5)は共
通のアース端子である。 レンズ回路(LEC)は、端子(JB3)(JL3)を介して
読込開始信号が入力すると、ズームリングの回動設定に
よる焦点距離に対応したKLのデータを、カメラ本体から
端子(JB2)(JL2)を介して入力されるクロックパルス
に同期して、直列に読取回路(LDC)へ出力する。そし
て、読取回路(LDC)は端子(JB2)へ出力するクロック
パルスと同じクロックパルスに基づいて、端子からの直
列データを読み取って並列データに変換する。 カメラコントローラ(111)は、読取回路(LDC)から
のデータKLとその内部のデータKBとに基づいてKL・KB=
Kの演算を行なう。AFコントローラ(113)はインター
フェース回路(112)からの被写体像のデータを使って
デフォーカス量|ΔL|を求め、このデフォーカス量|Δ
L|と、カメラコントローラ(111)からのデータKとに
基づいて K・|ΔL|=N の演算を行ない、エンコーダ(ENC)で検出すべきパル
ス数を算出する。AFコントローラ(113)は、被写体像
のデータを使って求めたデフォーカス方向の信号に応じ
てモータドライバ回路(114)を通してモータ(MO1)を
時計方向或いは反時計方向に回転させ、エンコーダ(EN
C)からAFコントローラ(113)での算出値Nに等しい数
のパルスが入力した時点で、フォーカス用レンズ(FL)
が合焦位置までの移動量Δdだけ移動したと判断して、
モータ(MO1)の回転を停止させる。以上の説明では、
カメラ本体(BD)側にデータKBを固定記憶させ、このデ
ータKBにレンズからのデータKLを掛けることにより K=KL・KB の値を算出させていたが、K値の算出は上述の方法に限
定されるものではない。例えば、KB値が互いに異なる複
数種類のカメラ本体のいずれに対してもズームレンズが
装着可能な場合、ズームレンズ(LZ)のレンズ回路(LE
C)から特定のKB値を有するカメラ本体に対応した K 1=KL・KB 1 のデータを設定焦点距離に応じて出力するようにする。
一方、この特定機種のカメラ本体では、カメラコントロ
ーラ(111)内のデータKBと、KL・KBの演算は不要とし
て読取回路(LDC)からのデータK 1をAFコントローラ
(113)へ入力しておくようにし、上記特定のKB値とは
異なるKB 2(≠KB 1)を有する他カメラ本体に上記レン
ズが装着されるときは、カメラコントローラ(111)内
に KB 2/KB 1 のデータを持たせ、そして K 2=K 1・KB 2/KB 1=KL・KB 2の演算を行なってKL・K
B 2の値を得るようにしてもよい。 特に、フォーカス用レンズ(FL)が前述のようにズー
ム用レンズ(ZL)よりも前方に配置されている前群繰出
型のズームレンズの場合には、Kopの値は Kop=(f1/f) ……(7) fl:フォーカス用レンズの焦点距離 となり、1つのズームレンズにつてのKL値またはK値が
非常に広範囲に変化する。この場合、レンズに記憶する
データKL或いはKを、指数部のデータと有効数字のデー
タ(例えば、8ビットのデータであれば、上位4ビット
を指数部、下位4ビットを有効数字数とする)に分け、
カメラ本体の読取回路(LDC)で読取ったデータのうち
下位4ビットのデータを指数部のデータだけシフトさせ
てカメラコントローラ(111)へ入力するようにすればK
LまたはKの値が大幅に変化しても充分に対応できる。 尚、上記第1図についての説明では、本発明の全体的
な機能および作用を理解しやすくするために本発明の装
置が回路ブロックの組合せによって構成されるように示
したが、実際には、それらの回路ブロックの機構のほと
んどは、以下に述べるように、マイクロコンピュータ
(以下、マイコンと称する)より達成される。 第2図は、本実施例のカメラ内の回路を概略的に示す
ブロック図である。 第2図において、(MNS)は電源スイッチ、(POR)は
その電源スイッチ(MNS)の閉成に応じて後述のAFマイ
コン(MC1)及び制御マイコン(MC2)のリセットを行う
パワーオンリセット回路である。(S1)はシャッタレリ
ーズボタンの1段押下(半押し)により閉成されるスイ
ッチで、この閉成によって測光及び自動焦点調節の動作
が開始される。(S2)は該シャッタレリーズボタンの2
段押下(押し切り)によって閉成されるスイッチで、こ
の閉成によって露光動作が開始される。(S4)はフイル
ムの巻き上げが完了すると閉成されるスイッチである。 (MC2)は、第1図で示したカメラコントローラ(11
1)の働きをするもので、カメラのシステム全体の動作
をシーケンス的に制御するマイクロコンピュータ(以
下、制御マイコンという)である。その端子(I1)には
スイッチ(S1)が接続され、端子(I2)にはアンド回路
を介してスイッチ(S2)(S4)が接続されている。(OS
C)はその動作用の発振回路である。(MC1)は、第1図
で示したAFコントローラ(113)の働きをするもので、
自動焦点調節動作をシーケンス的に制御するマイクロコ
ンピュータ(以下、AFマイコンという)である。演算さ
れた焦点調節状態は表示用LED(LEDL)(LEDM)(LED
R)のいずれかを点灯させることによってファインダー
内に表示される。 (SAF/M)は自動焦点調節モード(以下、AFモードと
いう)と手動焦点調節モード(以下、nonAFモードとい
う)との切り換えのためのスイッチで、閉成されるとAF
モード、開放されているとnonAFモードとなり、そのSAF
/M信号は制御マイコン(MC2)の端子(PT6)に入力され
る。ここで、nonAFモードには、焦点調節状態の表示の
みなされてレンズは移動されないFAモードと、該表示も
なされないMANUALモードとが設けられている。(SA/R)
は自動焦点調節の完了後にシャッタレリーズを行うAF優
先モードと、自動焦点調節の完了前でもスイッチ(S2)
の閉成に応じてシャッタレリーズを行うレリーズ優先モ
ードとを選択的に切り換えるスイッチで、閉成されると
AF優先モード、開放されるとレリーズ優先モードとな
り、そのSA/R信号は制御マイコン(MC2)の端子(PT7)
に入力される。 (MDR2)はフイルムの巻き上げ、巻き戻し用のモータ
(MO2)を制御するドライバ回路で、制御マイコン(MC
2)からのMM、MN信号によってモータ(MO2)の回転方
向、回転量を制御するものである。MM、MN信号とモータ
(MO2)の動作との関係を第1表に示す。 (EDO)はプログラムモード/シャッタ速度優先モー
ド/絞り優先モード/マニュアルモードなどの露出制御
モードのうち手動により選択されたモードを制御マイコ
ン(MC2)に伝達するとともに、そのモードによる露出
制御に必要なシャッタ速度、絞り値、フイルム感度、露
出補正値などの情報をも制御マイコン(MC2)に伝達す
るための露出制御設定回路である。(BS1)(BS2)はそ
のデータラインである。 (LMC)は測光回路で、そのANI信号はA/D変換用基準
電圧を示し、VRI信号はアナログの測光信号を示し、こ
れらはそれぞれ制御マイコン(MC2)の端子(PT7)(PT
8)に入力されている。(EXD)は制御マイコン(MC2)
内で演算された適正露出値(シャッタ速度、絞り値な
ど)を表示する露出表示回路で、(BS3)はそのデータ
ラインである。(EXC)は、制御マイコン(MC2)内で演
算された適正露出値(シャッタ速度、絞り値など)及び
設定された露出値に応じて露出制御を行う露出制御回路
で、(BS4)はそのデータラインである。 (FLS)はカメラに装着された電子閃光装置内の回路
(以下、フラッシュ回路という)を示し、この回路(FL
S)は電子閃光装置がカメラに装着されると、端子(ST
1)(ST2)(ST3)(ST4)(ST5)及び(GND)によって
カメラ側の回路と接続される。このフラッシュ回路(FL
S)の詳細を第3図に示す。 第3図は、フラッシュ回路(FLS)を示し、同図にお
いて、(20)はメインスイッチ、(22)は電源電池で、
メインスイッチ(20)が閉成されると電源電池(22)の
電圧はDC-DCコンバータ(24)によって昇圧され、ダイ
オード(26)を介して主コンデンサ(28)に供給され
る。(GND)はアース端子である。主にコンデンサ(2
8)の充電電圧は充電モニター回路(30)よってモニタ
ーされ、その電圧が所定量に達すると充電完了検出回路
(32)から充電完了信号が出力され、これはアンド回路
(34)を介して端子(ST2)に伝達される。カメラ側で
は、この充電完了信号を受けた後に、端子(ST1)を介
して発光開始信号を出力し、これによってトリガー回路
(36)がトリガーされてSCR(38)が導通し閃光放電管
(40)が主コンデンサ(28)のエネルギーによって発光
しはじめるる。この発光開始信号は発光開始モニター回
路(42)にも入力され、この発光開始モニター回路(4
2)は発光開始信号を受けると、アンド回路(34)を閉
じて充電完了信号の端子(ST2)への伝達を阻止する。
カメラ側の測光回路(LMC)によって適正露出に達した
ことが検出されると、カメラ側から端子(ST3)に発光
停止信号を出力し、発光停止回路(44)はこの発光停止
信号を受けて、閃光放電管(40)の発光を停止させる。 (45)は、被写体が暗いときに電子閃光装置から焦点
調節状態検出のための補助照明を行うように閉成される
AF補助光スイッチで、これが閉成されると端子(ST5)
から補助光による焦点検出のための照明が可能であるこ
とを示すAF補助光OK信号が出力される。そして、カメラ
側でこの補助光を要すると判断した場合は、端子(ST
4)にAF補助光発光信号が入力され、これによってトラ
ンジスタ(46)が導通し、補助光用LED(48)が発光さ
れる。 第2図に戻って、(Sx)はカメラのシンクロスイッ
チ、(FLB)は電子閃光装置の発光時間を制御する発光
制御回路である。(LEC)(LDC)は、それぞれ、第1図
と同様、レンズ内のレンズ回路及びカメラ内の読取回路
であり、カメラにレンズが装着されると両回路は端子
(JB1)〜(JB5)及び(JL1)〜(JL5)によって互いに
接続される。図中、(VL)は電源、(RES)は読取開始
信号、(CL)はクロックパルス、(DATA)はデータ、
(G)はアースをそれぞれ示す。読取回路(LDC)には
制御マイコン(MC2)の端子(SCK)からクロックパルス
が入力されており、該読取回路(LDC)は制御マイコン
(MC2)の端子(TXD)から出力されるシリアルデータ出
力信号に応じて、その端子(RXD)にレンズのデータを
シリアルで入力する。 (FLM)は第1図図示のCCDイメージセンサ、(IF1)
はセンサ駆動用のインターフェース回路、(MDR1)は第
1図の(114)に相当し、レンズ駆動用モータ(MO1)の
駆動を制御するドライバー回路、(ENC)は第1図と同
様のエンコーダである。 第4図及び第5図は第2図の制御マイコン(MC2)の
動作を示すフローチャートである。以下このフローチャ
ートに基づいて第2図のシステムの動作を説明するが、
その前にまず本実施例で用いられる各フラグの名称及び
その内容について第2表及び第3表に示す。 第4図において、まずスイッチ(S1)が閉成され端子
(I1)に割込信号が入力すると制御マイコン(MC2)は
動作を開始する。まず、ステップS1で、レリーズフラグ
RLFをクリアしておく。このフラグは、カメラの撮影モ
ードの連続撮影(以後連写モードと呼ぶ)と単発撮影
(以後単写モードと呼ぶ)との区別に用いるフラグであ
る。ここで、連写モードとは、一度のスイッチ(S2)の
ONで続けて写真がとれるモードを指し、単写モードと
は、一度のスイッチ(S2)のONに対し一枚の撮影ができ
るモードを指す。次にS2で制御マイコン(MC2)の端子
(Xout)からAFマイコン(MC1)にAFマイコン駆動クロ
ックCKを供給する。次にS3でシリアル入出力動作を複数
回行なってレンズ回路(LEC)から複数のデータを取込
んで、自動焦点調節に必要な変換係数(KROM)、補助光
の発する波長の光と可視光との合焦位置の補正用データ
(ΔIR)、バックラッシュデータ(BKLSH)、AF(自動
焦点調節)又はFA(焦点調節状態表示)のための焦点検
出演算が可能かどうかを判断するためのAF用開放F値
(AFAV0)、レンズ装着の判別(LENSF)、AF用カプラー
軸の有無(AFCF)、焦点検出可能なレンズかどうか(FA
ENL)の各信号を制御マイコン(MC2)内のメモリに保存
しておく。ステップS4では露出制御などのための設定デ
ータを出力する露出制御値設定回路(EDO)からのデー
タを取り込む。これには、露出に関したデータと単写又
は連写モードの別が含まれている。S5では制御マイコン
(MC2)の端子(PT1)から出力されるAFS信号を“Low"
にする。これはAFマイコン(MC1)の割り込み端子(INT
1)に入力されており、この信号の立ち下りによってAF
マイコン(MC1)は動作を開始する。同時に端子(PT2)
からのINREL信号は“High"としておく。これはAFマイコ
ン(MC1)の割り込み端子(INT2)に入力されている
が、割り込みは立ち下りでかかるため、この割り込みは
かからない。 第4図のフローチャートではS5からS10、S22からS3へ
とループしてくる場合がある。ループ中にS5を通過した
場合には、何度もAFS信号は立ち下がりINREL信号は立ち
上がるが、すでにAFS信号は“Low"、INREL信号は“Hig
h"であるのでAFマイコン(MC1)へは割り込みはかから
ない。AFマイコン(MC1)の動作がスタートすると、制
御マイコン(MC2)からAFマイコン(MC1)の動作のため
の設定データや、レンズからのデータがシリアルで送ら
れる。制御マイコン(MC2)の端子(SCK)からのクロッ
ク信号にて同期させて、制御マイコン(MC2)の端子(T
XD)からシリアルで8ビットデータが5バイト、第4表
のような内容が出力され、AFマイコン(MC1)の端子(T
XD)に入力される。 制御マイコン(MC2)は、AFマイコン(MC1)の端子
(P11)から制御マイコン(MC2)の端子(PT4)へ出るD
TRQ信号をデータ要求の合図とみて、データ出力を開始
する。制御マイコン(MC2)ではS6でこのDTRQ信号が“L
ow"になるのを待ち、“Low"になればS7へ進み、データ
を送る。S7のAESIOはAFマイコン(MC1)へマイコンの動
作モードを決めるためのデータを作り、シリアルデータ
を送る部分であるが、第5図に別ルーチンとして示して
ある。 第5図のステップS29から始まるAESIOのルーチンの最
初はまず、AFFL,RDY,DR,AFC,FAENの各信号の入っている
制御マイコン(MC2)の第5シリアルデータのRAMをクリ
アしておく。S30,S31,S32ではFAEN信号を決める。まずS
30でレンズ回路(LEC)から来るデータのLENSF信号を見
て、LENSF=0でレンズなしという信号になっていれ
ば、FAEN信号は“0"のままS33へ進む。レンズが装着さ
れていてLENSF=1の場合、FAENL信号が“1"すなわち焦
点検出可能のレンズであれば、S32へ進みFAEN信号を
“1"にしておき、FAENL信号が“0"ならFAEN信号は“0"
のままとなる。 次にS33からS35ではAFC信号を決める。S33で端子(PT
6)に入力されるSAF/M信号を見る。SAF/M信号は、カメ
ラ外部からカメラレンズを自動焦点調節させるか否かを
決めるスイッチで、“High"であれはAFモード(カメラ
本体内で装着された撮影レンズの焦点調節状態を検出
し、その結果に応じて撮影レンズの焦点調節を自動的に
行うモード)、“Low"であればnonAFモードとなる。S33
でSAF/M信号が“0"であれば、AFC信号は“0"のままS36
へ進み、“1"であればS34に進みレンズからのデータのA
FCF信号を見る。S34でAFCF信号が“1"であればレンズに
AF用のカプラー軸があるということで、S35でAFC信号を
“1"にしておく。すなわち、レンズにAF用のカプラー軸
がありかつカメラの動作スイッチ(SAF/M)が閉成され
てAF側にある時に、AFC信号が“1"になり、これ以外は
“0"としておく。 S36,S37でカメラの駆動モードの設定が連写モードで
あれば、DR信号を“1"にし、単写モードであればDR信号
は“0"のままとなる。次にS38,S39でカメラに装着され
た電子閃光装置からの信号をチェックし、電子閃光装置
がカメラに取り付けられて、AF用補助光スイッチ(45)
が入っていればフラッシュ回路(FLS)の端子(ST5)が
“High"状態になって端子(PT11)に入り、S38でPT11=
“Hight"であれば、S39でAFFL信号を“1"にしておく。
これは、AFマイコン(MC1)に対してはAF用補助光発光
可能という信号になる。(詳細は後述する。) S40,S41ではRDY信号をセットする。電子閃光装置の充
電が完了すればフラッシュ回路(FLS)の端子(ST2)が
“High"状態になり、これが端子(PT9)に入力されてい
るのでS40でPT9=“High"であればS41に進みRDY信号を
“1"にセットする。この信号も後述する補助光を用いる
焦点検出時(以下、補助光AFモードという)に使用す
る。そして、S42でレンズから送られてきたデータをAF
マイコン(MC1)へ送り出すためにシリアル転送用レジ
スタにセットする。S43ではシリアル転送開始のためのC
SAF信号を“High"にする。これは、AFマイコン(MC1)
からのシリアル転送要求のDTRQ信号に返答したものでCS
AF信号が“High"になると、AFマイコン(MC1)がシリア
ルデータの取り込みを始める。そして、S44で8ビット
5バイトのデータをAFマイコン(MC1)へ転送する。S45
でCSAF信号“Low"にもどしてシリアル転送が終了する。 次に第4図のメインルーチンにもどって、次のステッ
プS8へ進む。ここでは測光回路(LMC)から、測光出力
のANI信号とA/D変換用基準電圧のVRI信号とを取り入れ
て、測光出力をA/D変換し、露出演算に必要なデータと
して用意しておく。次にS9で定常光用、フラッシュ光用
の露出演算を行う。次のS10では制御マイコン(MC2)の
端子(I2)が“Low"になっているかどうかをチェック
し、レリーズされたかどうかを見る。シャッタがチャー
ジされ、スイッチ(S4)がONの状態でレリーズボタンが
2段押しされ、スイッチ(S2)がONになれば、端子(I
2)は“Low"になっているはずである。端子(I2)が“H
igh"であれば、レリーズされていないのでS25へ進む。S
25ではレリーズフラグRLFをクリアしておく。そして、
ステップS26では電子閃光装置から充電完了信号がきて
いるかどうかを判別し、充電完了信号がきている場合に
はS27に進みフラッシュ光撮影用データを表示部(EXD)
に送り、充電完了信号が来ていなければS28に進み定常
光撮影データを表示部(EXD)に送って表示しステップS
22に移行する。そしてステップS22ではスイッチ(S1)
が閉成されたままで端子(I1)が“Low"になっているか
どうかを判別して“Low"になっていればステップS3に戻
って前述と同様の動作を繰り返す。 一方、ステップS22で端子(I1)が"High"になってい
ることが判別されると、S23へ進み、AFマイコン(MC1)
の動作をストップさせる。ストップのさせ方は、AFマイ
コン(MC1)の端子(INT1)にAFS信号で割り込みをかけ
る。AFS信号によるAFマイコン(MC1)のスタートと、AF
S信号によるストップのためのわりこみと区別するため
に、ストップ用割り込みは立ち下がり後50μs未満で再
び立ち上がるようにしている(第17図(B)参照)。な
お測光のみのフローS26〜S28から割り込みがかかる時は
AFS信号は“Low"であるので、ストップ信号は一旦“Hig
h"となってから立ち下がり、レリーズのフローS11〜S21
から割り込みがかかる時はAFS信号は“High"であるので
ストップ信号はその立ち下がりとなる。この割り込みに
よってAFマイコン(MC1)はストップモードに入り、自
動焦点調節動作も止まる。S24では表示部(EXD)の露出
表示を消し、制御マイコン(MC2)は動作を停止する。 次に測光を繰り返し、フローがループしている最中に
レリーズされれば、端子(I2)が“Low"となる。すると
S10のチェックで今度はS11へ進む。次にレリーズフラグ
RLFをチェックし1であればS26へ進む。これは、単写モ
ードで1度レリーズされていればS21〜S22でレリーズフ
ラグRLFが1にセットされており、レリーズボタン2段
押しでスイッチ(S2)がONになっている状態のままで
は、再びレリーズされない。一方、スイッチ(S1)をON
にしたままスイッチ(S2)をOFFした場合には、ステッ
プS10からS25へ進み、レリーズフラグRLFがクリアされ
る。すなわち次に再びスイッチ(S2)がONになった場合
には、S11からS12へ進みレリーズされることになる。 次にS12で、端子(PT15)に入力されているAF優先/
レリーズ優先の切り換え信号をチェックする。ここでAF
優先モードとは、スイッチ(S2)をONにしていても自動
焦点調節でピント合わせが完了して初めてレリーズをす
るモードで、レリーズ優先モードとは、自動焦点調節中
ピントが合わなくてもスイッチ(S2)が閉成されればい
つでもレリーズするモードである。S12ではSA/R信号が
“High"(SA/R=1)であればAF優先モードとなりS13へ
進み、AFE信号をチェックする。これは、AFマイコン(M
C1)の端子(P12)から出力される信号で、AFマイコン
(MC2)が焦点検出して合焦であると判断した時に“Hig
h"になる信号である。S13は合焦状態かどうかを判断し
ていることになる。そして、合焦であればAFE信号は
“1"でありS14に進み、レリーズに入る。S13でAFE信号
が“0"であればS26へ行きレリーズされない。一方S12で
レリーズ優先モードであればS14へ進みレリーズされ
る。S12でチェックするSA/R信号は、カメラに取り付け
られているスイッチの手動選択に応じた信号であるが、
これは又、不図示のセルフタイマースイッチにも連動さ
れており、セルフタイマーが起動されると、AF優先モー
ドの状態にスイッチがあっても、レリーズ優先モードに
切り換わる。セルフタイマー時はレリーズ優先モードと
なるわけである。なおセルフタイマー使用時は、S14とS
15の間に不図示のセルフタイマー用時間待ち、例えば、
10秒間の時間待ちが入る。又、端子(PT15)には、カメ
ラボディに設けられたスイッチ(SA/R)が接続されてい
るが、これをカメラボディの外部へ出して、外部コント
ローラ(例えばコントローラブル裏ぶた)或いはリモコ
ン用のレシーバー等にゆだねてもよい。 次にS14ではAFマイコン(MC1)に対し端子(PT2)か
らレリーズしたというINREL信号を出す。INREL信号はAF
マイコン(MC1)のわりこみ端子(INT2)に入力され、
この信号の立ち下りによって割り込みがかかり、AFマイ
コン(MC1)は、レリーズルーチンへ飛ぶ。そして自動
焦点調節中でレンズ駆動中であっても動作を止めて、表
示も消し、レリーズ終了を待つ。S14では、次のレリー
ズ終了と、AFマイコン(MC1)の動作開始に備えて、AFS
信号を“High"にしておく。次にステップS15に移行して
フラッシュ回路(FLS)から充電完了信号が入力してい
るかどうかを端子(PT9)を見て判別し、入力されてい
ればS16へ進み閃光撮影用の露出制御データを露出制御
回路(EXC)に送り、充電完了信号が入力していなけれ
ばS17で定常光用の露出制御データを露出制御回路(EX
C)に送る。そして、S18で露出制御動作を開始させる。 露出制御動作が終わればS19でフィルムの自動巻き上
げ動作を行う。そして、S20,S21で前述したレリーズフ
ラグRLFを、単写モードの時に“1"をセットしS22へ進
む。そして依然としてスイッチ(S1)が閉成され、制御
マイコン(MC2)の端子(I1)が“Low"であればステッ
プS3に移行してデータ取り込み、演算・表示動作を繰り
返し、スイッチ(S1)が閉成されてなければ前述のステ
ップS23に移行して前述と同様の動作を行なった後、制
御マイコン(MC2)は動作を停止する。以上で、制御マ
イコン(MC2)のフローの説明をおわる。 第6図は、本実施例のインターフェース回路(IF1)
の詳細を示す回路図である。以下、この回路についてそ
の動作と共に説明する。 シャッタレリーズボタンの一段押しで閉成されるスイ
ッチ(S1)のONが制御マイコン(MC2)によって検知さ
れると、制御マイコン(MC2)からの信号に応じてAFマ
イコン(MC1)は焦点調節の動作を開始する。 まず、AFマイコン(MC1)からのIOS信号が“Low"にさ
れ、AFマイコン(MC1)からインターフェース回路(IF
1)へ向かってNBφ〜NB3の信号が出力される方向のゲー
トが開く。そして、AFマイコン(MC1)からCCDイメージ
センサ(FLM)にパルス状の積分クリア信号ICGがNB2の
信号として出力され、これによりCCDイメージセンサ(F
LM)の各画素が初期状態にリセットされると共に、CCD
イメージセンサに内蔵された輝度モニター回路(MC)の
出力AGCOSが電源電圧レベルにリセットされる。又、AF
マイコン(MC1)はこれと同時に端子(NB5)から“Hig
h"レベルのシフトパルス発生許可信号SHENを出力する。
そして、積分クリア信号ICGが消えると同時に、CCDイメ
ージセンサ(FLM)内の各画素では光電流の積分が開始
され、同時に輝度モニター回路(MC)の出力AGCOSが被
写体輝度に応じた速度で低下し始めるが、CCDイメージ
センサに内蔵された基準信号発生回路(RS)からの基準
信号出力DOSは一定の基準レベルに保たれる。AGCコント
ローラ(406)はAGCOSをDOSと比較し、所定時間(焦点
検出時には100msec.)内にAGCOSがDOSに対してどの程度
低下するかによって、利得可変の差動アンプ(408)の
利得を制御する。又、AGCコントローラ(406)は積分ク
リア信号ICGの消滅後、所定時間内にAGCOSがDOSに対し
て所定レベル以上低下したことを検出すると、その時
“High"レベルのTINT信号を出力する。このTINT信号は
アンド回路(AN)及びオア回路(OR1)を通ってシフト
パルス信号出力回路(410)に入力され、これに応答し
てこの回路(410)からシフトパルスSHが出力される。
又、TINT信号はオア回路(OR2)を通ってNB4信号として
AFマイコン(MC1)に取り込まれ、AFマイコン(MC1)は
この信号によってCCDイメージセンサの積分終了を知
る。このシフトパルスSHがCCDイメージセンサ(FLM)に
入力されると、各画素による光電流積分が終わり、この
積分値に応じた電荷がCCDイメージセンサシフトレジス
タの対応するセルに並列的に転送される。一方、AFマイ
コン(MC1)からのクロックパルスCLにもとづいて、セ
ンサ駆動パルス発生回路(412)からは位相が180°ずれ
た2つのセンサー駆動パルスφ1,φ2が出力され、CCD
イメージセンサ(FLM)に入力されている。CCDイメージ
センサ(FLM)はこれらのセンサ駆動パルスのうち、φ
1の立上りと同期してCCDシフトレジスタの各画素の電
荷を1つずつ端から直列的に排出し、画像信号を形成す
るOS信号が順次出力される。このOS信号は対応する画素
への入射光強度が低い程高い電圧となっており、減算回
路(414)がこれを上述の基準信号DOSから差し引いて、
(DOS-OS)を画素信号として出力する。尚、積分クリア
信号ICGの消滅後TINT信号が出力されずに所定時間が経
過すると、AFマイコン(MC1)は端子(NBφ)から“Hig
h"レベルのシフトパルス発生指令信号SHMを出力する。
したがって、積分クリア信号ICGの消滅後所定時間経過
してもAGCコントローラ(406)から“High"レベルのTIN
T信号が出力されない場合は、このシフトパルス発生指
令信号SHMに応答して、シフトパルス発生回路(410)が
シフトパルスSHを発生する。 一方、上述の動作において、AFマイコン(MC1)はCCD
イメージセンサの第7番目から第10番目までの画素に対
応する画素信号が出力されるときに、サンプルホールド
信号S/Hを出力する。CCDイメージセンサのこの部分は暗
出力成分を除去する目的でアルミマスクが施され、CCD
イメージセンサの受光画素としては遮光状態になってい
る部分である。一方。サンプルホールド信号によって、
ピークホールド回路(416)はCCDイメージセンサのアル
ミマスク部に対応する出力OSとDOSとの差を保持し、以
降この差出力と画素信号とが可変利得アンプ(408)に
入力される。そして、可変利得アンプ(408)は画素信
号とその差出力の差をAGCコントローラ(406)により制
御された利得でもって増幅し、その増幅出力がA/D変換
器(418)によってA/D変換された後、画素信号データと
してAFマイコン(MC1)に取込まれる。 画素信号データが取り込まれる時は、AFマイコン(MC
1)からの信号IOSが“High"になり、インターフェース
回路(IF1)からAFマイコン(MC1)へ向かってNBφ〜NB
3の信号が出力される方向のゲートが開く。A/D変換回路
(418)のA/D変換は8ビットで行なわれるが、AFマイコ
ン(MC1)へは上位、下位の4ビットずつ転送される。
この上位と下位の4ビットの切り換えタイミングはEOC
信号によって行なっている。EOC信号はTINT信号とオア
回路(OR2)でオアをとられて、NB4信号としてAFマイコ
ン(MC1)へ入力される。AFマイコン(MC1)は、このNB
4信号の“High"状態、“Low"状態のタイミングによって
NBφ〜NB3から画素信号データを取り込むことになる。
又、このNBφ〜NB3からは、画素信号データの取り込み
が開始される前に、AGCコントローラ(406)からAGCデ
ータも取り込むようになっている。このAGCデータは、
後述するように、判定レベルとして使われる。なお、ほ
かに、AFマイコン(MC1)の端子(NB1)から出力される
Sφ信号は、CCDイメージセンサのイニシャライズと、
被写体光を積分する通常動作とを切り換えるための信号
である。 この後、AFマイコン(MC1)は、この画素信号データ
を内部のメモリに順次保存するが、イメージセンサの全
画素に対応するデータの保存が完了すると、それを用い
て所定のプログラムに従って焦点ズレ量及びその方向を
算出し、表示回路にそれらを表示させると共に、一方で
はレンズ駆動装置を焦点ズレ量及びその方向に応じて駆
動し、撮影レンズの自動焦点調節を行う。 本実施例においては、CCDイメージセンサ(FLM)の積
分、データダンプ、及び合焦検出演算がくり返し行なわ
れており、精度の向上がはかられている。 第7図〜第16図は、AFマイコン(MC1)の動作を示す
フローチャートである。まず、第5-1,2,3表にこのフロ
ーチャート内で使用するフラグを示しておく。 AFマイコン(MC1)の動作のスタートとしては4つの
入口がある。つまり、電源投入時すなわち第2図のAFマ
イコン(MC1)の端子(CLR1)にRES信号が来た時にスタ
ートする「RESET」(第7図のステップ#1)、制御マ
イコン(MC2)の端子(PT1)からAF動作(自動焦点調節
動作)又はFA動作(焦点検出動作)をスタートすべく出
すAFS信号がAFマイコン(MC1)の端子(INT1)に入力さ
れることによりスタートする「INT1S」(第7図のステ
ップ#8)、制御マイコン(MC2)の端子(PT2)からAF
マイコン(MC1)へレリーズしたことを知らせるべく出
すINREL信号がAFマイコン(MC1)の端子(INT2)に入力
されることによりスタートする「INT2S」(第8図のス
テップ#27)、エンコーダ(ENC)からのPS信号がAFマ
イコン(MC1)の端子(INT3)に入力されることにより
スタートする「INT3S」(第16図のステップ#252)がこ
れら4つに当たる。自動焦点調節動作のフローのメイン
ルーチンは第7図のステップ#8の「INT1S」から始ま
り第9図のステップ#33の「AFSTART」、第10図のステ
ップ#44の「CDINTS」を通り、第11図のステップ#86の
「MAIN1」へ流れる。「MAIN1」からは大きく分けて3つ
に分かれ、第13図のステップ#165の「LOWCON」から始
まる被写体のコントラストが低いローコントラスト時の
フローと、第14図のステップ#238の「LSAVE」から始ま
る補助光AFモード(暗くて焦点検出が不可能な時に、補
助光用LED(48)で被写体を照明して焦点検出をするモ
ードのこと)時のフローと、第11図のステップ#91の
「NLOC1」から始まる被写体のコントラストが充分に高
い通常AFモード時のフローとになる。又サブルーチンと
しては第15図のステップ#241の「SIOSET」で始まる制
御マイコン(MC2)からのシリアルデータを入力し処理
するフローと、第14図のステップ#196の「CKLOCK」か
ら始まるレンズの終端位置を判断処理するフローとがあ
る。以下このフローチャートに基いて本実施例における
自動焦点調節動作(以下AF動作という)及び焦点検出動
作(以下FA動作という)を説明する。 まず、電源スイッチ(MNS)の閉成に応答してパワー
オンリセット回路(POR)からリセット信号RESが出力さ
れ、このリセット信号で制御マイコン(MC2)が特定番
地から動き出す。これと同時に制御マイコン(MC2)の
端子(Xout)からクロックパルスCKが出力される。これ
はAFマイコン(MC1)の端子(Xin)に入力される。制御
マイコン(MC2)からのクロックパルスCKのもとでリセ
ット信号RESが端子(CLR1)に入力されるとAFマイコン
(MC1)がステップ#1の「RESET」からスタートする。
ステップ#1はフローチャート内で使用している全フラ
グ(第5-1、2、3表)をすべてクリアしている。各フ
ラグは“0"が初期状態になるようになっている。ステッ
プ#2からは、制御マイコン(MC2)からAFマイコン(M
C1)に対して、AFまたはFA動作を停止させるために、後
述のようなストップ信号を出力するが、このストップ命
令が入ってきた時にもこのステップ#2を通る。 ステップ#2(以下「ステップ」を省略する。)は端
子(P13)に入力される端子(ST4)の信号を“Low"状態
に落とし補助光用LED(48)による照明を切っている。
これは補助光AFモード時に補助光発光中、スイッチ(S
1)を開放して、焦点検出動作を停止する時にその発光
を中止するためである。#3は、AF又はFA動作での焦点
調節状態表示又はデフォーカス方向表示を消している。
ここでは、端子(P32)〜(P30)にそれぞれ“High"を
出力して消すが、これは各端子を入力モードにすること
により行っている。この方法で表示を消しても、表示し
ていた出力状態は出力ポートレジスタにメモリされてお
り、このポートを出力モードにすればメモリしていた内
容を再び表示することができる。後にこれを利用する。 #4ではレンズを停止させる。なお、ここではブレー
キはかけない。これはAFマイコン(MC2)の非動作中で
は、レンズにブレーキをかけず比較的手で動きやすくす
るとともに、省電を考えてのことである。AFマイコン
(MC2)からドライバー回路(MDR1)に入力されるレン
ズ用モータ駆動信号MC、MR、MF、MBのコントロールにつ
いては第6表に上げたようになっており、端子(PO2)
〜(PO0)の信号MR、MF、MBを“High"状態にすれば、電
気的ブレーキがかからず、モータ(MO1)への通電が切
れレンズが止まる。 #5ではレリーズ動作中もしくは補助光AFモード中に
制御マイコン(MC2)からストップ命令が来た時に、こ
れら状態を今後も解除すべく、レリーズフラグ(第5-1
表のレリーズF)及び補助光モードフラグ(第5-2表の
補助光モードF)をクリアするステップである。#6
は、次のフローのスタートのための割り込み状態を決め
るためのコントロールで、AFマイコン(MC1)の動作が
ストップした後に、#8のINT1Sからもしくは#28のINT
2Sからのスタートを許している。しかし、実際は、カメ
ラとしては不図示のシャッタレリーズボタンの1段押し
により第2図のスイッチ(S1)が閉じて制御マイコン
(MC2)からINT1に割り込みがかかり、該シャッタレリ
ーズボタンの2段押しによりスイッチ(S2)が閉じてIN
T2にレリーズの割り込みがかかるようになっているた
め、次のフローチャートのスタートは#8の「INT1S」
になる。#7でAFマイコン(MC1)はストップモードに
入る。ストップモードとはAFマイコン(MC1)が省電モ
ードに入り動作を停止することである。この時各端子の
状態は、P13だけが"Low"で他は"High"となっており補助
光照明用LED(48)は消灯し、表示用LED(LEDL)(LED
M)(LEDR)も消灯しているとともに、レンズはストッ
プ状態にあり、インターフェース回路(IF1)も停止状
態となっている。この状態で次の制御マイコン(MC2)
からの端子(INT1)への割り込みスタートを待ってい
る。 次に、前述のフローチャート第2番目の入口である#
8の「INT1S」の説明に移る。この「INT1S」からの割り
込みスタートは、AFマイコン(MC1)の全フロー中にお
いて割り込み禁止状態にはなっておらずいつでも割り込
みを受け付ける。この入口は3つの割り込みの役割を果
している。1つはAF又はFA動作のスタート、2つ目はAF
又はFA動作の停止、3つ目はレリーズ直後の焦点調節状
態表示復帰動作及び転写モード時の動作がある。これら
3つの区別について述べる。1つ目と2つ目の区別は端
子(INT1)への入力信号によって区別している。すなわ
ち第17図(A)のようにAF又はFA動作のスタートにはAF
S信号が“High"から“Low"へ立ち下り、“Low"が50μs
以上続くことが必要である。AF又はFA動作の停止につい
ては第17図(B)のようにAFS信号が“High"から“Low"
へ立ち下がったあと、50μs未満に“Low"から“High"
へ立ち上がることを必要としている。第3番目の動作
と、1つ目の通常AF又はFA動作との区別は、フラグを使
用している。後述のレリーズ割り込みがくれば、レリー
ズ中のフローの中でレリーズフラグ(レリーズF)をた
て次の「INT1S」のスタートの中でこのフラグがたって
いるかどうかをチェックして区別している。これらを含
めて順次#8から説明する。#8で、スタート時はINT
1、INT2以外の割り込みを禁止する。禁止されているの
はINT3のイベントカウンタ割り込みと、フローチャート
上では示してないが、表示用LEDの点滅表示の周期を決
めるタイマーの内部割り込みがある。#9は使用してい
るフラグをクリアするところであるが#15からのAFSINR
中でこれまでの状態として使用する2つのフラグ、すな
わちスキャン禁止フラグ(第5-1表のスキャン禁止F)
と、前回ローコンフラグ(第5-1表の前回ローコンF)
はクリアしていない。スキャン禁止フラグをクリアしな
いのは、連写モードの場合でも、スイッチ(S1)をオフ
しない限り、単写モードと同じく一度被写体のコントラ
ストが焦点検出に充分あって、デフォーカス量の計算が
できたことがあるか、又は、一度ローコンスキャンをし
たことがあれば、新たなローコンスキャンをさせないた
めに、このフラグを残している。又、前回ローコンフラ
グをクリアしないのは#15から始まるレリーズ後のAFS
信号による割り込みフローである「AFSINR」の中で、レ
リーズの後もスイッチ(S1)をオンしたままであればレ
リーズ前の状態の焦点検出演算結果の表示を復帰表示さ
せておくためにクリアしていない。すなわちレリーズ最
中はLEDによるデフォーカス方向の表示をいったん消
し、レリーズ動作が終われば、再び表示するということ
をしているので、そのため低コントラストでLEDが点滅
表示していたかどうかを判別するためのフラグを残して
おくのである。 次の#10で50μs時間待ちをし、「INT1S」に入った
割り込みがAF又はFAストップ割り込みでなかったかを#
11の所で見にいく。ここでAFマイコン(MC1)の端子(I
NT1)に入っている信号が、第17図(A)のようであれ
ばAFS信号は“Low"であるので#12へ進み、第17図
(B)のような信号であればAFS信号は“High"となって
#2のストップモード処理フロー「STPMD」の方へ進みA
Fマイコン(MC1)の動作は停止する。#12ではレリーズ
後のAFS信号による割り込みフロー「AFSINR」へ進むか
最初のAFS信号の割り込みによるのかを区別する。すな
わちレリーズフラグ(レリーズF)がたっていれば、#
15の「AFSINR」へ進みレリーズフラグ(レリーズF)が
たっていなければ次のステップ#13へ進む。#13ではAF
マイコン(MC1)の各端子のイニシャライズを行なう。
すなわち、補助光AFモード時の補助光発光端子(P13)
のみを“Low"にし、他の端子は“High"にしておく。も
っともAFマイコン(MC1)がこれまでストップモードに
入っている状態から、割り込みスタートでこのステップ
へ来ている時には各端子は同じ状態のままであり、すな
わち端子(P13)のみが“Low"で他は“High"のままであ
る。 次に#14では#9でクリアしないでおいたスキャン禁
止フラグと前回ローコンフラグを改めてクリアしてお
く。そして次に#33の「AFSTART」へ進む。このあと焦
点調節状態を検出し、その結果に応じてレンズを駆動さ
せ、焦点調節状態表示を行う。焦点調節状態表示とは表
示用LED(LEDL)(LEDM)(LEDR)の入力信号のLLとLR
が“High"、LMが“Low"で緑色のLEDを点灯させることで
あり、この表示を見てスイッチ(S2)を閉成すれば、又
は(S1)と(S2)を閉成した状態で自動焦点調節を行わ
せてピント合わせ動作が完了すれば、制御マイコン(MC
2)はレリーズ動作を開始し、同時にAFマイコン(MC1)
へレリーズをしたことを知らせる割り込み信号INRELが
出力される。AFマイコン(MC1)は、端子(INT2)でこ
れを受けるので、レリーズの割り込みがかかる。これが
第8図の#27の「INT2S」から始まるフローである。 #27ではまずINT1、INT2以外の割り込みを禁止する。
次に#28で端子(ST4)からの信号を“Low"にし、補助
光照明を消している。これはレリーズ優先モード時のみ
必要でAF優先モードの場合には必要ないステップであ
る。なぜならAF優先モードの時にはピント合わせが終わ
っており、すでに補助光照明は消えているためである。
#29も同様にレリーズ優先モード時のみ必要なレンズ用
モータ(MO1)をストップさせるステップである。ここ
ではモータ(MO1)にブレーキをかけていない。これ
は、レリーズ優先モードの時には合焦状態になってから
レリーズされるとは限らずその手前でレリーズされるこ
ともありうるので、合焦位置に向かってレンズが動いて
いる途中でレリーズされた時、その非合焦点でモータ
(MO1)にブレーキをかけてレンズを止めてレリーズす
るよりは、ブレーキをかけずに止め、いくらかでも惰性
でレンズを移動させ、すこしでも合焦位置に近い所でレ
リーズされた方が、よい写真が撮れるということが多い
ためである。次の#30で焦点調節状態表示又はデフォー
カス方向表示を消す。これは1眼レフレックスカメラで
のレリーズ中は、ミラーが上がり、ファインダー内はま
っ黒になっている。ここで表示だけつけていても意味が
ないばかりか、フィルム露光中に、不必要な光がカメラ
内部で出力されているのは好ましくないためである。 次に#31でレリーズフラグ(レリーズF)を“1"に
し、レリーズされたことをフラグとして残す。あとは#
32で、INT1又はINT2の割り込み待ちとなる。ここで続け
てレリーズ割り込みが来ると再び#27の「INT2S」から
始まる。第2図のスイッチ(S1)を閉成したままスイッ
チ(S2)の開閉を繰り返している場合がこれに当たり、
レンズを駆動させないで合焦位置で固定しているという
AFロック状態でレリーズを繰り返していることと同じで
ある。スイッチ(S2)を閉成してレリーズしたあと、ス
イッチ(S1)を閉成したままだと、制御マイコン(MC
2)のフローチャートにあるように、再びAFS信号がAFマ
イコン(MC1)に入りINT1の割り込みがかかる。する
と、#8の「INT1S」からのフローは、今度はレリーズ
フラグ(レリーズF)に1がたっているので第7図の#
15の「AFSINR」の方へ進む。#15からのステップは後に
説明する。 次にスイッチ(S2)を閉成してレリーズしたあと第5
図のフローにあるようにスイッチ(S2)(S1)を共に開
放した場合は、今度は制御マイコン(MC2)からはAFマ
イコン(MC1)のストップのためのAFS信号がAFマイコン
(MC1)に入り、INT1の割り込みがかかる。あと前述し
たようなフローでAFマイコン(MC1)はストップモード
に入り、再び次の割り込みが来るのを待つことになる。 ここでレリーズ後のAFS信号による割り込みスタート
のフローの説明に入る。入口は第7図の#8の「INT1
S」であるが今度はレリーズフラグRLFが1になっている
ため、#12で分岐して#15の「AFSINR」の方へ進む。こ
こではまずこのフローを通過したということでレリーズ
フラグ(レリーズF)をリセットする。次に#16で制御
マイコン(MC2)からシリアルデータを入力する。ここ
でシリアルデータを入力するのは、AFマイコン(MC1)
の動作モードが変更されていないかチェックするためで
ある。この#15から始まる「AFSINR」へ来るフローは、
レリーズされた後に来るフローであるが、このレリーズ
中やその寸前で動作モード(すなわちAFモード/FAモー
ド/MANUALモードの各モード、又AFモードでも単写モー
ド/連写モードの別)が切り換えられれば、そのモード
に応じた動作に変わらなければならない。#16はこのモ
ードの情報を制御マイコン(MC2)から入力するための
ステップである。この#16は、サブルーチンで第15図の
#241から始まる「SIOSET」のフローを流れる。ここで
は各モードのチェックをし、モードのフラグを操作す
る。まず、#241では制御マイコン(MC2)に向かって端
子(P11)のDTRQ信号を“Low"にし、シリアルデータを
要求する。すると制御マイコン(MC2)はDTRQ信号を見
て第4表のようなシリアルデータを送ってくる。AFマイ
コン(MC1)側では、#242でこのシリアルデータを入力
し、#243でDTRQ信号を“High"にしておく。シリアル通
信で送られてくるデータは、AF用開放F値AFAV0、レン
ズ駆動用デフォーカス量−パルスカウント変換係数KRO
M、補助光用AF補正用データΔIR、レンズ駆動反転時バ
ックラッシュ補正用データBKLSH、補助光OK信号AFFL、
フラッシュ用充電完了信号RDY、連写/単写モード信号D
R、AFカプラー軸付レンズ信号AFC、FA可/不可信号FAEN
の9種である。各々の情報はシリアル通信で送られてく
るとAFマイコン(MC1)のRAMに保存され、必要に応じ
て、そのRAMの内容を参照することとなる。各情報の使
用については追々フローチャート説明上で述べることと
する。 #244から各モードのチェックをする。#244ではAF用
開放F値AFAV0を調べる。焦点検出用受光素子には使用
可能限界があり、レンズの開放F値が小さいと射出瞳で
該焦点検出用受光素子への入射光がけられ、正しい焦点
検出演算ができなくなる。焦点検出不能となるような単
体レンズを作らないとしてもコンバーターレンズ等の組
み合わせによって、焦点検出限界F値を超えてしまうこ
ともある。例えば今、焦点検出用受光素子の焦点検出限
界F値を7.0とすると、AF用開放F値5.6のレンズは焦点
検出可能だがこれに2倍のテレコンバーターを取り付け
ると、F値は11.2となり焦点検出不能になってしまうと
いうことである。ここでAF用開放F値というのは、レン
ズの絞りが絞られていない状態のF値ではあるが、ズー
ミングやフォーカシングによってF値が変化するレンズ
の場合でも焦点検出用受光素子がけられていないという
ことを判断するための情報であるためにズーミング、フ
ォーカシングで変化するF値ならその内で一番小さい開
放F値が入っている。#244でAF用開放F値AFAV0がF値
にして7.0よりも大きければ#251の方へ進み、AFモード
フラグ(第5-1表のAF.F)を“1"にし、さらに#250でFA
モードフラグ(第5-1表のAF.F)も“1"にし、MANUALモ
ードになったというフラグ状態にして第7図の#16へも
どる。AF用開放F値AFAV0が7.0よりも小さければF値に
ついては焦点検出可能なレンズということで#245へ進
む。 #245ではこれまでAFモードであったかどうかのチェ
ックをする。AFモードフラグが、“0"であればこれまで
AFモードであったということで#246へ進み、“1"であ
ればAFモードでなかったということでFAモードかMANUAL
モードかをチェックをする。#246はAF用カプラー軸が
あるかいなかをチェックするステップで、AFC信号が
“1"なら軸があるのでこのままAFモードで進み、“0"で
あれば軸がないので自動焦点調節できないということで
#247に進み、AFモードフラグに“1"をたてる。AF用カ
プラー軸とはカメラボディ内のモータ(MO1)からレン
ズのフォーカシング機構に動力を伝達するための軸のこ
とである。 第15図の#248では焦点検出可能なレンズか否かのチ
ェックをし焦点検出可能ならFAフラグ(FA.F)を“0"に
してFAモードとなり、焦点検出不可ならFAフラグを“1"
にして、AFフラグの“1"と共にMANUALモードという判断
になる。ここでFAEN=1の時というのは、カメラボディ
にレンズが装着されていてなおかつ焦点検出の可能なレ
ンズということである。これ以外はFAENは“0"となって
いる。焦点検出不可能なレンズとはAF用開放F値が小さ
くても焦点検出できない反射望遠などのレンズや、収差
が極端に大きくなってしまうシフトレンズやバリソフト
レンズ等特殊なレンズのことである。このサブルーチン
ではFAモードからAFモードへの変化は見ていないがこれ
は、後の第11図のステップ#86で見ることになる。 さて、第15図のサブルーチンはリターンして次のステ
ップ#17へ進む。ここでAFモードかどうかを見て、AFモ
ードであれば#19へステップし、AFモードでなければ#
18でFAモードか否かのチェックをし、FAモードでもなけ
れば#36の「MANUAL」フローへ進む。 #19では表示復帰のための前回までの状態を見てレリ
ーズ前の状態がローコントラストであったならば、#20
でローコン表示を復帰させる。ローコン表示とは、焦点
調節状態表示用LED(LEDL)(LEDM)(LEDR)の3つの
うちの両端(LEDL)(LEDR)を2Hzでオン−オフを繰り
返して点滅させる表示である。ローコントラストでなけ
れば#21で焦点調節状態又は方向表示を復帰させる。レ
リーズ前までの表示内容は、表示レジスタに保存されて
いるので、ボートを出力モードにすればこれまでの表示
が復帰する。#22では、AFモードフラグ(AF.F)によっ
てAFモードか否かのチェックをし、AFモードではなくて
FAモードであれば、#39の「CDINTA」へ進み繰り返し焦
点検出を行う。従って、FAモード時はレリーズ後に第2
図のスイッチ(S1)がオンであれば続けて焦点検出し表
示するということになる。AFモード時は、#23でDR信号
に基づいて単写モードか連写モードかを見て、DR=0で
あれば単写モードであり#25で端子(P12)のAFE信号を
“High"にする。この信号は、自動焦点調節動作が終わ
ってピントが合ってレリーズ可の状態にあるという情報
を制御マイコン(MC2)へ知らすためのものである。 シャッタレリーズボタンが2段押しまで押されている
場合、制御マイコン(MC2)は、AF優先モードの時は、
この信号を見て“High"であればレリーズを許可し、“L
ow"であればレリーズ不可にしている。すなわち単写モ
ードであれば、一度合焦してレリーズしたあとそのまま
レリーズ1段押しのまま(スイッチ(S1)ONのまま)、
AFS信号等の割り込みが入らないと、#15からの「AFSIN
R」のフローを進み、#25でAFE信号が“High"になるの
で、このまま被写体の位置をかえると、たとえ非合焦状
態であってもレリーズできる。なおこの時は次の#26で
レリーズの割り込みかAFマイコン(MC1)のストップの
割り込みを待つことになっているので、レンズは駆動し
ない。このシーケンスのことを「AFロック」と呼ぶこと
ができる。 一方連写モードであれば#23から#24へ進み補助光AF
モード中かどうかのチェックをする。補助光AFモードで
あれば、連写モードでかつ補助光AFモードになっている
ので、自動焦点調節とレリーズは一度のみ可とし、一度
レリーズすれば次のレリーズや自動焦点調節は禁止す
る。そのためAFE信号は、“High"にしないで#26へ進
む。補助光AFモードでない連写モードでは#39からの
「CDINTA」へ進み次の焦点検出に入る。 第9図の#33の「AFSTART」から始まるフローは#14
から飛んでくる。#33では第15図のサブルーチン「SIOS
ET」を呼んでいる。AFマイコン(MC1)の動作のスター
トに当たって制御マイコン(MC2)から種々のデータを
もらって動作モードを決める。この時決まったモード
は、AFマイコン(MC1)内のモードレジスタRGに自動的
に書き込まれる。このレジスタRGは後にモードがかわっ
たかどうかをチェックするためのものである。#34、#
35では動作モードのチェックをし、AFモード・FAモード
のいずれでもなくてMAMUALモードであれば#36へ進む。
#36では他から来た時のために、ドライバー回路(MDR
1)への信号MR、MF、MBをすべて“High"にしてレンズ用
モータ(MO1)をストップさせる。#37ではINT1、INT2
以外の割り込みをストップさせて#33へループし繰り返
す。 AFもしくはFAモードの時は#38へ進みCCDイメージセ
ンサ(FLM)のイニシャライズをしてセンサのウオーミ
ングアップをしておく。#39で端子(P20)のIOS信号を
“Low"にしているのはインターフェース回路(IF1)をA
Fマイコン(MC1)からの信号を入力するモードにセット
するとともに、CCDイメージセンサ(FLM)の出力を積分
するためのモードにセットするためでもある。そして第
10図の#44へ進む。ここではまず1-cut shotフラグ(第
5-1表の1-cut shotF)、すなわち積分時間が50msを超え
たかどうかを示すフラグをクリアしておく。#45で端子
(P12)から出力されるAFE信号を“Low"にしておく。こ
こへは合焦後も繰り返しループしてくるためこうしてい
る。これは、AFE信号が、合焦になれば“High"になる信
号であるので次の演算に備えて“Low"にしておくのであ
る。次に、#46で端子(P23)からNB2信号を出力し、CC
Dイメージセンサ(FLM)の積分を開始する。#47で後述
の焦点検出演算中及び積分中のレンズ移動分補正のため
のレンズ駆動パルスカウント値EVTCNTを読み取ってメモ
リT1へ保存しておく。#48で、CCDイメージセンサ(FL
M)の最大積分時間100msの半分50msをセットしておく。
第9図において「CDINTA」と平行に#40から始まる「CD
INT」があり、#53まで別フローがあるが、これは「繰
り込み積分」と称している機能のためのフローでこれに
ついての詳細は後述する。 #48から続いて#55からの「TINTφ」に移る。#55で
は、すべての割り込みルーチンを許可している。#56で
は端子(P25)に入ってくるNB4信号をチェックし、“Lo
w"であればCCDイメージセンサ(FLM)が被写体の明るさ
に応じた積分を終了したという信号であるので#64の
「CDINT2」へ進む。“High"であれば積分が続いている
ということで#57へ進み、最初に設定した最大積分時間
が経過したかどうかのチェックをする。すなわち、#48
で設定した50msか、#53で設定した40msか、さらにこの
先で設定する#61の50msか、#62の150msが経ったかを
見て、経っていなければ#56へ戻り、ループを繰り返
す。最大積分時間が経てば#58へ進む。ここで1-cut sh
otフラグ(1-cut shotF)が“1"でなければ#59へ進み
このフラグに“1"をたてる。#63へ進む時は1-cut shot
フラグが“1"の時であるので、この#59を通ったあとか
又は#49を通った場合である。#60では200msフラグ
(第5-2表の200msF)が“1"かどうかをチェックし、
“1"でなければ通常最大積分時間が100msと決めてある
ので#48でセットした積分50msの残りの50msを#61でセ
ットして#56へ戻り、NB4信号をチェックする。#60で2
00msフラグが“1"である時(これは後ほどのフローの中
でセットされるもので特殊条件の場合に限り、最大積分
時間を200msと決めている場合)は#48でセットした積
分50msの残りの150msをセットして#56に戻り、NB4信号
をチェックする。 CCDイメージセンサ(FLM)からの出力が充分なレベル
まで得られれば#56から#64へ進む。ここで出力が充分
でなくても、最大積分時間がすぎれば積分を終了しなけ
ればならず、その時が#58から#63へ進む時である。#
58では今度は1-cut shotフラグは“1"であるので必ず#
63へ進み、端子(P21)からインターフェース回路(IF
1)へ強制積分停止信号NB0を出力する。そして、#64か
らの「CDINT2」へ進む。#64から#67までのステップは
「繰り込み積分」のフローであり、説明はあとへ譲る。 #68ではINT1、INT2以外の割り込みを禁止している
が、これは、このあとのデータ取り入れ時に割り込みが
入ってタイミングが狂うことがないようにしているため
である。INT1、INT2割り込みはメインフローの最初から
始まるので禁止しない。#69は、これまでCCD積分中に
補助光用LED(48)が点いていた場合、端子(P13)のST
4信号を“Low"にして消している。#70は端子(P20)の
IOS信号を“High"にしてインターフェース回路(IF1)
をデータ出力モードに切り換えている。すなわちNB4〜N
B0の信号がデータ転送用のラインとなってインターフェ
ース回路(IF1)からAFマイコン(MC1)へデータを送る
ことができるようになる。データとしては8ビットデー
タが送られるが、NB3〜NB0までの4ビットパラレルで、
2回に分けて送られ、NB4でそのタイミングをとりNB4が
“High"の時に上位の4ビットデータが、NB4が“Low"の
時に下位の4ビットデータが送られる。AFマイコン(MC
1)は上位と下位に分けて送られたデータを作りなおし
て取り入れる。 そこで、まず、インターフェース回路(IF1)からAF
マイコン(MC1)に送られてくるのがAGCデータで第6図
のAGCコントローラ(406)内で決められたゲインの数値
(1倍か2倍か4倍か8倍)のいずれかの数値(以下、
AGCデータという)が送られ、これを第10図の#71でAF
マイコン(MC1)へ取り入れる。ところでCCDイメージセ
ンサ(FLM)の積分が終わってから、これらデータの出
てくるタイミングはインターフェース回路(IF1)で決
まっており、積分が終わってただちにAGCデータを取り
入れないといけない。AGCデータは一定時間出力されて
おり、これが終わればすぐCCDイメージセンサ(FLM)の
画素データがやはり一定タイミングで送られてくる。こ
のAGCデータを取り込んだあとのわずかの時間で、#72
にあるように、積分終了時のレンズ駆動パルスカウント
値EVTCNTを読み取ってメモリT2へ保存しておく。積分開
始時の#47に対応するものである。 この後すぐ#73でCCDイメージセンサ(FLM)の画素デ
ータを入力し、AFマイコン(MC1)内のメモリに保存さ
れる。次の#74は、レンズ駆動中に、駆動されるレンズ
が無限遠端に当たっているか最近接端に当たっているか
をチェックするサブルーチンで、終端(無限遠端もしく
は最近接端)に当たっていれば、レンズ駆動用モータ
(MO1)をストップさせたり、反転駆動させたりする。
サブルーチン「CKLOCK」については第13図を用いて後で
説明する。#75では制御マイコン(MC2)とシリアル通
信レンズを駆動するためのデータ等をもらう。#33で一
度該データをもらっているのにここでも再びシリアル通
信をしているのは、繰り返しループ中では#33を通らな
いので、もし途中でレンズ駆動用の変換係数KROMが変わ
ったり(レンズによってはピント状態や、ズーミング等
によって変わる)、マイコン動作のモードが変わったり
するとデータが変わるので、これを繰り返し見るために
#75に「SIOSET」を設けてある。そして#76で#73で取
り入れたCCDイメージセンサ(FLM)のデータを用いて焦
点検出演算をする。この方法については、本出願人がす
でに特開昭59-126517号公報で提案したような方法でデ
フォーカス量DFが求められるが、本発明の要旨とは無関
係であるので説明を省略する。 #77から#85までは、被写体の輝度が所定レベルより
も低いか否かのチェックで、AGCデータのレベルを見て
判断している。ここで、被写体の輝度が所定レベル以下
のときをローライトと呼ぶ。#77でローライトフラグ
(第5-2表のローライトF)に“1"を入れておく。#78
では電子閃光装置がカメラに装着されていて、補助光ス
イッチ(44)が閉成されていれば、シリアル通信で送ら
れてくるAFFL信号は“1"になっているので#80へ進む。
すなわち補助光発光可能状態がセットされていれば、最
大積分時間が100msのモードの時にはAGCデータが2倍、
4倍、8倍の時にローライト判断となって、#86の「MA
IN1」へぬけていき、AGCデータが1倍の時には#80を通
って#85でローライトフラグを“0"にクリアして#86へ
進む。最大積分時間が200msのモードの時には全てロー
ライトとなり、#80から#86へぬける。 一方補助光発光可能状態がセットされていない場合に
は#78から#81へ移り、最大積分時間が100msのモード
の場合には、AGCデータが4倍と8倍の時に#82,#83,
#86とぬけてローライト判断となり、AGCデータが1倍
と2倍の時には#82又は#83から#85へと移りローライ
トフラグをクリアして#86へぬける。最大積分時間が20
0msのモードの場合には、AGCデータが2倍,4倍,8倍の時
に#84から#86へぬけてローライト判断になり、AGCデ
ータが1倍の時には#84から#85へぬけ#85でローライ
トフラグをクリアして#86へぬけていく。ここで補助光
発光可能状態がセットされている時のローライトの判断
が、セットされていない時のローライト判断よりも、1
段分明るい所からになっている。これは、被写体が低コ
ントラストでかつ低輝度なら焦点検出演算不能として、
自動焦点調節をあきらめるという場合に大いに有効であ
る。すなわち、補助光発光可能状態がセットされている
ならば、早めに補助光不使用状態での焦点検出をあきら
めて、すぐ補助光使用モードに入れて確実に焦点検出し
ようとし、補助光発光可能状態がセットされていないな
らば、とにかくいける所まで外光だけで焦点検出して、
低コントラストかつ低輝度になってしまえば自動焦点調
節をしないでレンズを繰り込んで終わるといった方法で
ある。本実施例では、焦点検出をあきらめるという前に
さらにレンズを繰り出し又は繰り込みの一往復のスキャ
ンをさせてコントラストがある位置を捜しに行くという
方法をとっている。これについては第13図の#165から
の「LOWCON」以後のフローで説明する。 本実施例では被写体輝度の判定をAGCデータによって
いるが、これは積分時間によってもよい。例えば、本実
施例に用いられるフラグのうちで、CCDイメージセンサ
(FLM)の積分時間が50ms以上のときならたつ1-cut sho
tフラグを用いてもよい。 さて第11図の#86からの「MAIN1」について次に説明
するが、ここからレンズの駆動処理等の話に入る。まず
#86は#75で得られたシリアルデータとこれまでのAFマ
イコン(MC1)の動作していたモードとを比較して、モ
ードが変わっていれば#33の「AFSTART」から再び始め
る。すなわち前回のシリアル通信#33後でセットされて
いるAFモード/FAモード/MANUALモードの別や、単写/連
写のモードの別を示すレジスタRGの内容と、焦点検出モ
ードのフラグ(AFモードフラグ、FAモードフラグ)や、
単写モードのフラグ(DR)とを比較して変わっていれば
#33へ進むということである。そして、この#33のとこ
ろで、自動的にモードレジスタRGに新たなモードが書き
込まれる。#87で、補助光を用いる焦点検出の動作モー
ドになっているかどうかのチェックをし、補助光を用い
るモード(以下、補助光AFモードという)であれば、補
助光を用いる第14図の焦点検出用フローの#238「LSAV
E」へ入っていく。なおこの補助光AFモードへの入り方
は、被写体が低コントラストかつ低輝度の状態であると
いう条件であるため、第13図の#165の「LOWCON」から
始まるローコントラストのフローの中から入ることにな
る。 #87で補助光AFモードでなければ、#88で今回ローコ
ンフラグ(第5-1表の今回ローコンF)をチェックして
焦点検出演算の結果がローコントラストであったか否か
を判別し、ローコントラストであれば第13図の#165の
「LOWCON」フローへ移る。この#88で出てくる今回ロー
コンフラグは#76の中で判別され、たてられるものであ
る。今回の演算結果がローコントラストでなければ、#
89へ進み、第10図の#71で入力したAGCデータをチェッ
クし、AGCデータが1倍であれば#90で200msフラグをク
リアしておく。これは、先ほど暗い時に最大積分時間が
200msモードの状態があると述べたが、200msモードにな
っている時、AGCデータが1倍であれば200msモードにし
ておく必要はなく、最大積分時間の短い100msモードに
しておいた方が積分時間が短くて良いからである。積分
時間が200msでAGCデータが1倍の時と、積分時間が100m
sでAGCデータが2倍の時とは画素出力はほぼ同じものと
見ることができるということと、被写体の動きや、カメ
ラの手ぶれを考えれば、積分時間が長くなると不利であ
るということで、被写体のコントラストが見つかれば、
最大積分時間が100msのモードにもどしているのであ
る。 #91から始まる「NLDC1」のフローは、被写体にコン
トラストがみつかった時のフローで、#91では、スキャ
ン禁止フラグに“1"をたてる。これは、被写体のコント
ラストが低い場合、コントラストの高い位置をさがし
て、フォーカシングレンズを動かしつつ焦点検出するこ
とをローコンスキャンと呼んでいるのであるが、いった
ん被写体にコントラストが出れば、スイッチ(S1)が閉
成されている間の一連のシーケンスでは、このローコン
スキャンを禁止している。なぜなら、頻繁にスキャンを
すると、自動焦点調節カメラとして使いにくいというこ
との他に、一度コントラストがみつかったのであるか
ら、今のレンズ繰り出し位置付近で、続けて焦点検出し
た時にたとえローコントラストになることがあっても、
再びコントラストがみつかる確率も多いと思われ、次に
ローコントラストになったからといってすぐにローコン
スキャンに入ると焦点検出にとって逆効果であるという
ことによる。 更に、このスキャン禁止状態にしているのは、この他
に、ローコントラストでスキャンを一度やり終えた場合
があるからである。#92から#101までのフローではロ
ーコンスキャン中に、充分なコントラストを見つけた時
の処理を主として表わしている。これには大きく分けて
2通りの場合があり、CCDイメージセンサ(FLM)の積分
時間が50msを超えている時と、そうでない時に分かれ
る。積分時間が50msを超えるように被写体が暗い時には
ローコンスキャン中にコントラストを見つけた時点で、
一度レンズを完全に止めてから焦点検出をしなおし、そ
の結果に従って合焦位置までレンズを動かす。レンズが
動いている間は焦点検出しない。この理由は、積分時間
が長くかかるようになってきた時、レンズ駆動を行なっ
ていれば、被写体の像が流れ出し、デフォーカス量計算
に悪影響を及ぼすからである。積分時間が長くなり、AG
Cの倍率が大きくなってきたりすると、CCDイメージセン
サ(FLM)の暗出力ばらつきのノイズも大きくなり、こ
の状態で像が流れたりすると、微妙なピント合わせが狂
うからである。 そこで積分時間が50msを超えるような場合には、レン
ズを動かしながら焦点検出をしないで、止まっている時
のみの値によって焦点検出するという方法をとり、これ
を1-cut shotモードとよび、このことを示すフラグ(第
5-1表の1-cut shotフラグ)を設けてある。このフラグ
は#49又は#59ですでにセットされてくるのである。次
に積分時間が50msを超えないような明るい被写体の場合
は、ローコンスキャン中に充分なコントラストを見つけ
ると、今度はレンズを停止させることなく、コントラス
トが出たそのデータを用いて、焦点検出演算を行ない、
その結果の合焦点までレンズを駆動させる。この間、焦
点検出演算は繰り返しており、合焦位置までのレンズ駆
動量を常にリフレッシュさせてフォーカシングさせる。
これはレンズ駆動中繰り返して焦点検出するので、mult
i shotモードと称しておく。ローコンスキャン中からレ
ンズを止めずに焦点検出をするということになると、CC
Dイメージセンサ(FLM)が積分している時点とレンズ駆
動量が求まる時点とでは、レンズ位置が異なっている。
この移動分を補正するための準備を後述の「LOWCON」フ
ローの中で行なっており、これを用いて移動分の補正を
する。この移動分の補正についての考え方は、特開昭59
-68713号公報に述べられているので、ここで詳しいこと
は省略する。 次に、ローコンスキャン中からコントラストを見つ
け、multi shotモードの動作を始めたあとでもローコン
トラストの結果が出ることもありえる。この場合、ロー
コントラストの結果については無視し、ローコントラス
トとなる前にセットされている駆動量に従って合焦点と
思われる位置までレンズを駆動させる。コントラストの
出ている結果だけを使って駆動させるのである。ローコ
ントラスト状態から脱するということを判断するのは、
前回ローコンフラグ(第5-1表の前回ローコンF)をチ
ェックして行なう。このフラグば、第13図の#165から
の「LOWCON」フローの中でセットされるフラグで、前回
の演算結果がローコントラストであった時にセットされ
ている。一方、#92に来ている時というのは、今回の結
果ではコントラストがあったということであるので、#
92で前回ローコンフラグに“1"がたっていれば、ローコ
ントラストから抜け出てきたということで#93へ進む。
前回ローコンフラグが“0"であれば、はじめからコント
ラストがあって焦点検出している時に通る所として、#
92から#102へ進む。#93では焦点調節状態の表示を消
す。これまでローコントラストで、レンズ駆動が停止状
態であった場合は、焦点検出不能の点滅表示をしている
が、コントラストが出たのでこれは消しておくのであ
る。#94では、前述のように1-cut shotフラグがたって
いれば、レンズを停止させないといけないので#95へ進
み、1-cut shotフラグがたっていなければ、ローコンス
キャン中であってもレンズを止めずにおき、#101へ進
む。#101では、前回ローコンフラグ、スキャン当りフ
ラグ(第5-1表のスキャン当りF)、及びスキャン中フ
ラグ(第5-1表のスキャン中F)をクリアしておく。こ
れはローコンスキャンを一度し終えていたり、又は、ス
キャン中であった場合の状態を示すフラグをリセットし
ておくためである。なお、スキャン禁止フラグはもちろ
んリセットしないで残しておく。 #95は、1-cut shotモード状態になっている時に来て
いるのであるが、ここで、スキャン中フラグをみてロー
コンスキャン中に来たかどうかをチェックする。スキャ
ン中でなければ#101へ進み、今の演算結果に従ってレ
ンズを駆動する方へ行き、スキャン中であれば#96、#
97で第6表に示した信号パターンに従って、レンズ駆動
用モータ(MO1)への通電を切って、ブレーキをかけ
る。レンズを止めた状態を覚えておくために、#98で駆
動中フラグ(第5-2表の駆動中F)をクリアしておく。
#99でレンズが完全に停止するまで70ms時間待ちをし、
#100で#101と同様のフラグをクリアして、#39の「CD
INTA」へもどり、次の焦点検出に入る。#99の時間待ち
は、前述のようにセンサの積分時間が長い時にレンズが
動いていると、像が流れたり、さらに問題なのはたとえ
駆動中の積分データ位置に移動分の補正を行なっても、
負の加速度がかかっている時だと正しい補正が難しいの
で、完全にレンズが止まりきってから次のセンサ積分を
始めれば、焦点検出演算の合焦ずれを防ぐことができる
からである。 次に、焦点検出演算結果のデフォーカス量を、レンズ
駆動のためのパルスカウント値に変換するフロー「MPUL
S」がある。#102で、この範囲にレンズが入っていれば
ピントが合うというデフォーカス範囲を合焦ゾーンとし
てレジスタFZWにセットしておく。なおここで自動焦点
調節状態(AFモード)の合焦ゾーン量と、焦点調節表示
状態(FAモード)の合焦ゾーン量とは区別されており、
FAモードではAFモードより広い値をセットする。#103
から#106は、レンズが終端で止まっている時のフロー
で、これはレンズが無限遠端に当たっている時の場合で
ある。#103の終端フラグ(第5-2表の終端F)は、ここ
に来るまでの終端チェックサブルーチンの中でたてられ
ている。レンズが終端に止まっていれば、#104へ進
み、前回方向フラグ(第5-3表の前回方向F)をみてど
ちらの方向へレンズが動こうとしていたかをチェックす
る。レンズが無限遠端にあって、さらに無限遠側へ駆動
しようとしている時には#105へ進み、終端位置フラグ
(第5-2表の終端位置F)をチェックして終端位置が無
限遠端側か最近接端側かを見て、無限遠端側なら#106
へ進んで合焦ゾーンを255μmという大きい値に設定し
ている。レンズ停止位置が最近接端であれば、#107へ
ぬける。これは焦点検出データのばらつきでレンズが無
限遠端位置にあっても、さらに無限遠端方向に合焦位置
があるという結果になることもありえるし、また狭い合
焦ゾーンをセットしていれば、無限遠端でもさらに無限
遠側へレンズを動かそうとする可能性もある。又、さら
に無限遠端と思っている位置が、実は他の外的応力によ
ってレンズを途中で止めらていることもありえる。本実
施例では、これは区別がつかない。 そこでレンズが無限遠端にあり、さらに無限遠端を超
えて合焦位置が有るという検出結果になっている時に
は、まず合焦ゾーンを255μmに広げ、これで合焦ゾー
ン内にレンズが入っていれば合焦表示をし、この数値で
も合焦ゾーン内に入っていなければ、焦点検出不能の表
示(LEDの点滅表示)を行う。自動焦点調節中レンズが
無限遠側へ動こうとしている時に、手などで強制的にレ
ンズを止められたりした場合、そのレンズ停止位置が合
焦ゾーン内でなければ、LEDの点滅表示をするというこ
とである。この表示のフローは#120から#123に当る。 一方、最近接端にレンズがあって、さらに被写体が近
接側にあると検出している場合や、自動焦点調節中レン
ズが近接側へ動こうとしているのに、強制的に途中でレ
ンズが止められたりした場合、その位置が合焦ゾーン内
に入っていなければ、最近接側方向の表示をすることに
している。この表示のフローは、第12図の#147から#1
52に当たる。レンズが無限遠端に止まっていなければ、
合焦ゾーンは#102でセットした数値のまま#107に移
る。 #107では補助光モードフラグに基づいて補助光AFモ
ードになっているかどうかをチェックし、補助光AFモー
ドであれば、色収差補正をする。補助光AFモード時の照
明光は、赤外光に近い波長の光を用いるため、フラッシ
ュ撮影時には光源の差によるベストピント位置のずれが
生ずる。よって、補助光AFモードになっていれば、この
ピント位置ずれ量を補正しないといけない。この撮影レ
ンズに応じた補正データΔIRは、第4表にあるように、
制御マイコン(MC2)からシリアル通信で送られてくる
のである。これを#108で、これまで求まっているデフ
ォーカス量DFに対して補正する。そして#109で、デフ
ォーカス量をレンズ駆動のためのパルスカウント値に変
換する。この変換のための係数も、各レンズによって固
有であるので、ΔIR同様シリアル通信で送られてくるデ
ータKROMを使用する。求まっているデフォーカス量DFも
変換係数KROMを乗算してレンズ駆動のためのパルスカウ
ント値DRCNTを求める。同様にして、合焦ゾーンFZWもデ
ータKROMを乗じてパルスカウント値FZCに変換してお
く。これらパルスカウン値への変換については特開昭59
-140408号公報で詳細に述べられているので、ここでは
省略する。 そして、#110で、駆動中フラグ(第5-2表の駆動中
F)に基づいて、現在、自動焦点調節動作中かどうか判
断して、レンズが駆動している時には、#131の「IDOBU
N」へ分岐する。レンズが停止中だった時、すなわち、
最初にフローを通過する時や、自動焦点調節終了後の合
焦位置確認時、もしくはFAモード時に#111へ進む。こ
こでは、レンズ停止時のデフォーカス量DFをメモリFERM
へ保存しておく。これは後ほど、この値によって自動焦
点調節終了後の合焦位置確認のループに行くか行かない
かを決めるのに用いる。次の#112では、AFモードフラ
グに基づいてAFモードかどうかの判断をし、nonAFモー
ドであれば、#113からの「FAP」へ分岐する。これは非
AFモードということはFAモードであるということによ
る。 #113ではレンズが合焦ゾーン内にあるかどうかの判
断をしている。ここでは、レンズ駆動用パルスカウント
値DRCNTと合焦ゾーンパルスカウント値FZCとで比較して
いるが、デフォーカス量DFと合焦ゾーン量FZWとを比較
してもよい。この結果、合焦ゾーン内にレンズがあれ
ば、#115で合焦表示をする。これは、端子(P31)のLM
信号を“Low"におとし、LL,LR信号を“High"のままにし
て、中央のLED(LEDM)のみを点灯させることによって
なされる。合焦ゾーン外であれば、#114へ進み、ここ
でレンズを駆動すべき方向を示す。例えば、レンズを繰
り出す方向であれば、端子(P32)のLL信号を“Low"に
して左側のLED(LEDL)を点灯させ、レンズを繰り込む
方向であれば端子(P30)のLR信号を“Low"にして右側
のLED(LEDR)を点灯させる。そして次の焦点検出の為
に第9図の#40の「CDINTA」へループする。 #112でAFモードであった場合には、つまり、AF.F=
0の場合には、#116でAFモード時の合焦チェックをす
る。レンズ駆動パルスカウント値DRCNTが合焦ゾーンパ
ルスカウント値FZCより小さければ合焦ということで、
#117からの「INFZ」へ分岐する。#117では、FAモード
時の#115と同様に合焦表示をし、#118で端子(P12)
からのAFE信号を“High"にする。制御マイコン(MC2)
は、この信号を見ており、“High"になれば自動焦点調
節が完了したと見る。そして、AF優先モードであれば、
AFE信号が“High"になってはじめてレリーズ動作を可能
とすることになる。#119では、ここで、AFストップのI
NT1の割り込みかINT2のレリーズ割り込みを待つことに
なる。これは、第2図のスイッチ(S1)の一回の閉成時
に一回だけ自動焦点調節をするというワンショットモー
ドとした時の方法であり、一度被写体にピントが合え
ば、このあとピント位置がかわっても合焦表示をしたま
まだし、又、レンズも再度駆動されることはない。又、
他のやり方として、#119で割り込み待ちにしないで、
これを#39の「CDINTA」又は#40の「CDINT」へ戻れ
ば、繰り返し焦点検出し、常に被写体に追従して自動焦
点調節をするというコンティニュアスモードにすること
もできる。 #116で合焦ゾーン外にあると判断された時には、#1
20へ進む。前述したようにここで、終端フラグ(第5-2
表の終端F)をチェックして終端であり(#120)、前
回方向フラグをチェックして焦点検出結果の合焦位置が
無限遠端側にあり(#121)、レンズ停止位置が無限遠
端であるならば(#122)、#123へ進み、レンズを駆動
させないで、両側の2つのLED(LEDL)(LEDR)を共に
点滅させて焦点検出の不能表示をし、#119で割り込み
待ちとなり、もう次の焦点検出へは行かない。これらの
条件以外の場合には、#124へ進む。 #124から#130にかけては、デフォーカス方向の反転
チェックを行う。すなわち、前回の焦点検出演算結果の
デフォーカス方向と、今回のループで演算した結果の方
向とを比べて、デフォーカス方向が反転したということ
がわかれば、レンズ駆動系のバックラッシュの補正をし
ようというものである。レンズを駆動させるにあたっ
て、特にカメラボディとレンズとの駆動力伝達軸のカプ
ラー部には、相当量のガタを設けてある。そのため、被
写体までの距離が変わったりしてレンズ駆動方向が反転
すれば、モータ(MO1)のからまわり量のためにレンズ
は演算結果で求めた合焦位置まで動かなくなる。そこ
で、方向が反転すれば、バックラッシュ量を補正しなけ
ればならなくなる。このバックラッシュ量は、撮影レン
ズに固有であり、第4表で示したように制御マイコン
(MC2)からのシリアル通信によって得ている。ところ
がここに出てくる前回のデフォーカス方向が、スイッチ
(S1)を閉成した後の第一回目のループである時はとい
うと、これについても、前回のシーケンスの最後のレン
ズ駆動方向として覚えている。すなわち、スイッチ(S
1)が閉成される前のマイコン(MC1)(MC2)のストッ
プモード中も覚えているというようにしている。又、こ
のバックラッシュ補正は、演算結果が反転すればすぐ補
正をするかというとそうではなくて、この補正は、レン
ズが止まっている時だけに限っている。レンズ駆動中に
方向が反転したという結果になった時には、ただレンズ
を止めるだけで、すぐレンズの反転駆動をさせない。
又、前回方向フラグもセットしなおさない。それで、レ
ンズを止めたあとの次の焦点検出演算で求めた方向(今
回方向となる)が、レンズを停止させた時のもう一回前
に求まっていた方向、すなわちレンズを駆動させていた
方向(前回方向)と反転していたら、始めてバックラッ
シュの補正をするということになる。これは、合焦位置
付近での演算のばらつき等を考慮してのことで、バック
ラッシュ量の誤差と合わさって、レンズがハンチングを
おこしたりしないようにしている。 これらについてのフローは、これから説明する#124
から#130と、レンズ駆動中のフローである第12図の#1
34から#140との組み合わせで達成されている。#124で
今回方向フラグ(第5-3表の今回方向F)をチェックし
て今回のデフォーカス方向を見たあと、#125,#126で
前回のデフォーカス方向をチェックする。そして、前回
と今回とでデフォーカス方向が異なっていれば、#127,
#128へそれぞれ進み、前回方向フラグを書き換える。
同方向であれば、#141の「TINNZ」へスキップする。#
129ではシリアル通信で送られてきたバックラッシュ補
正用データBKLSHをレンズ駆動パルスカウント値DRCNTに
対して補正をし、#130では反転してバックラッシュの
補正をしたという反転フラグ(第5-2表の反転F)をた
てて、#141へ進む。 次に、第12図に基づいて#110から分岐したレンズ駆
動中の時の#131からのフロー「IDOBUN」の説明に移
る。この最初の#131で、レンズが終端で当たっている
かどうかのチェックをし、#132で移動分補正のための
3回目のイベントカウンタ値EVTCNTを読み込んで、レジ
スタT3にメモリする。これで、移動分の補正のための全
データを取り入れたことになる。すなわち、センサ積分
開始時のT1と、積分終了時のT2、そして焦点検出演算終
了時のT3で、この3つの値を使って、レンズ駆動中に積
分して得られた画素データによる焦点検出演算結果と、
実際に演算が終了してレンズ駆動量をセットするまでに
レンズが動いた量を補正することになる。積分中におけ
るレンズの移動量Txをパルスカウント値で求めると、Tx
=T1−T2となる。ここで、イベントカウンタは減算カウ
ントとしているので、T1>T2であり、Txは正である。焦
点検出演算に要する時間におけるレンズの移動量Tyは、
Ty=T2−T3として求められる。ここでレンズが定速で動
いていることを前提として、センサ積分時間の中間の位
置を、被写体データを得た地点として代表させると、演
算結果が求まった時点との間、Tz=Tx/2+Tyの量だけレ
ンズが移動したことになる。そこで今回の演算結果で求
まっているカウント値DRCNTから、Tzをひいておけば、
移動分の補正がされたことになる。 そこで、#133では、DRCNT-TzをDRCNTとして新たに置
き換え、次のレンズ駆動パルスカウント値としてセット
する値になる。 #134から#140は、前述のようにレンズ駆動中にデフ
ォーカス方向が反転した場合のフローで、#134で今回
方向フラグをチェックして今回のデフォーカス方向を見
て、#135と#136で前回方向フラグをチェックして前回
のデフォーカス方向をチェックして、方向が反転してい
れば#137へ進み、反転していなければ#141へ進む。#
137,#138ではレンズ駆動用モータ(MO1)への通電を切
ってブレーキをかけて止め、#139でレンズ駆動中を示
す駆動中フラグをクリアし、#140でレンズが止まりき
るまで70ms待ったうえで、#39の「CDINTA」へ進む。 #141から始まる「TINNZ」は、レンズ駆動中及び停止
中の両方から合流してくるフローで、レンズ駆動パルス
カウント値DRCNTをセットして、レンズを動かす部分で
ある。レンズの駆動スピードは、本実施例では二段式に
なっており、レンズが合焦位置から遠く離れている時の
ハイスピードと、レンズ合焦位置近傍にあるロースピー
ドとを切り換えることにしている。そして、ロースピー
ドでレンズをコントロールする部分を、ニアゾーンと呼
ぶとする。#141では、レンズ駆動パルスカウント値DRC
NTが、このニアゾーンの領域のパルスカウント値NZC以
内であるかどうかをチェックして、レンズがニアゾーン
の領域内に入っていれば、#143へ進み、ニアゾーンフ
ラグ(第5-2表のニアゾーンF)をセットする。#144で
端子(PO3)からのMC信号を“Low"とし、第6表のよう
にレンズ駆動用モータ(MO1)をロースピードで駆動さ
せるようにする。一方、ニアゾーン外である時には、#
142に進んでMC信号を“High"とし、レンズ駆動用モータ
(MO1)をハイスピードで駆動させるようにする。 #145から#152までは前述にも説明の一部があったが
レンズが終端位置に止まっている時の処理についてのフ
ローである。ところでレンズが終端で止まっているとい
うことを検知するのは、後述の第14図の「CKLOCK」から
のサブルーチンで述べるように、レンズ終端位置にスイ
ッチがあるわけではなくて、割り込みポートINT3から入
力されるモータ駆動量モニタ用エンコーダ(ENC)から
のパルスが一定期間入力されなくなったらレンズが停止
しているという判断による。モータ(MO1)を駆動して
いるのにレンズが止まっているということはレンズ終端
で当たっているということであると判断して、「CKLOC
K」のサブルーチンの中でモータ駆動を止めて、終端フ
ラグをたてるのである。この方法だとレンズが実際に終
端に来ていなくとも途中で強制的に止められたり、又
は、何かがレンズにはさまったりとかなんらかの要因
で、一瞬(数100msのオーダー)レンズが止まったりし
ても終端と判断してしまう。 こういったことを防ぐために、一度終端でレンズが止
まったと見ても、もう一度レンズを動かしてみて、再度
「CKLOCK」サブルーチンで終端と判断されてはじめて、
実際に終端で止まっているとしている。これを見るフラ
グが終端2ndフラグ(第5-2表の終端2F)で、#145で、
「CLOCK」サブルーチンの中でたてられた終端フラグを
見て、“1"であった時に、#146でこの終端2ndフラグを
見る。そして、初期状態ではこのフラグは“0"であるの
で#150へ進み、終端2ndフラグをたてておいて、#153
からのレンズ駆動フローで、レンズを動かす。そして、
次のループで#146へ来た時に、はじめて、終端で止ま
っているという判断をして#147へ進む。 #147では、今回のデフォーカス方向をチェックし、
そして、#148と#149で終端位置フラグをみて今レンズ
がとちら側の終端に当たっているかをチェックする。す
なわち今回のデフォーカス状態が前ピン(今回方向フラ
グ=1)であり、レンズ位置が無限遠端であるとする
と、レンズは、今の無限遠端よりさらに無限遠側へ動か
されなければならないことになる。この場合は、#148
から#40へ進み、次の「CDINT」からのループで、前述
の説明にあったように、合焦ゾーンを広げてみて、合焦
再チェックを行う。 今回のデフォーカス状態が後ピン(今回方向フラグ=
0)であり、#149でレンズ位置が最近接側(終端位置
フラグ=1)であるとすると、レンズはさらに近接側へ
動かされないといけないことになる。この場合は、#14
9から#152へ進み、端子(P32)からのLL信号を“Low"
にして最近接側へレンズを動かすことを指示する方向表
示を点灯する。そして、レンズを停止させたままにし、
#40からの次ループへ進み焦点検出を繰り返す。そして
被写体の位置がかわり、デフォーカス方向が反転すれ
ば、ループ中#147から#148へ進み#151へ抜け、終端
フラグをクリアして#153からのレンズ駆動のループへ
入っていく。なお、この実施例では#147のデフォーカ
ス方向のチェックに今回方向フラグを用いたが前回方向
フラグを用いてもよく、この場合は、最近接端よりも被
写体が近接側にある状態から、レンズの合焦可能領域に
入ってもレンズは追従しないで停止したままとなる。ワ
ンショットAFモードという場合であれば、後者の方法で
よく、コンティニュアスAFモードという場合であれば前
者でないと不都合であるといえる。 なお、この後者の場合は、一旦ローコントラスト状態
になれば第13図の#165の「LOWCON」フローの中で終端
フラグがクリアされるので、最近接端からぬけ出て、再
びレンズ駆動状態に入り、自動焦点調節が可能というこ
とになる。次にレンズが終端にない場合や、終端にある
が逆方向に動こうとしている場合には、第12図の#153
からのレンズ駆動フローに入る。#153では焦点調節状
態表示用LEDをすべて消灯する。これはレンズの駆動中
はデフォーカス方向の表示をしないことを基本原則とす
ることによる。レンズが停止している状態で合焦時には
中央のLED(LEDM)を点灯して合焦表示をし、最近接端
もしくは無限遠端ではLED(LEDL)(LEDR)にのずれか
を点灯してデフォーカス方向を表示し、ローコントラス
ト時には、LED(LEDL)(LEDR)の点滅表示をするので
ある。#154でレンズ駆動パルスカウント値DRCNTをイベ
ントカウンタEVTCNTと終端チェック用レジスタMECNTへ
セットする。イベントカウンタEVTCNTにセットされた値
DRCNTは、割り込み端子(INT3)へエンコーダ(ENC)か
らのパルスが入ってAFマイコン(MC1)に割り込みがか
かると、この割り込みフロー(第16図のINT3S)の中で
減算される。カウント値DRCNTが“0"になった時点でレ
ンズを停止させるとピントが合っているという仕組みで
ある。 #155ではレンズ駆動用モータ(MO1)に通電を開始し
て、レンズ駆動を始める。これは、前回方向フラグに従
って、レンズを動かす。すなわちこのフラグがこれまで
のレンズ駆動方向として残されるわけである。なぜな
ら、前回方向フラグは、レンズが停止している時には、
第11図の#124からのフローによって今回方向フラグと
同じ内容になっているからである。そして、前回方向フ
ラグが“0"であれば(後ピン)、端子(PO1)からのMF
信号を“Low"にして、第6表のようにレンズを繰り出
し、前回方向フラグが“1"であれば(前ピン)、端子
(P00)からのMR信号を“Low"にしてレンズを繰り込み
方向へ動かす。#156では駆動中フラグをチェックして
これまでレンズを駆動中であったかどうかのチェックを
し、駆動中であれば(後に説明するが、ここで駆動中と
いうのは、ニアゾーン外での自動焦点調節中というこ
と)、#40の[CDINT]へループし、次の焦点検出に入
る。これまでレンズ停止中であったなら、#155で駆動
開始したのであるから#157で駆動中フラグをセットす
る。#158では補助光モードフラグをみて補助光AFモー
ドかどうかチェックし、補助光AFモードであれば第14図
の#231からの「L2SAVE」へ分岐する。補助光AFモード
でなければ#159でニアゾーンフラグをみてレンズの駆
動がニアゾーン内であるかどうかをチェックし、ニアゾ
ーン内であれば#160からの[WSTOP]へ進む。#160,#
161では100ms間隔に終端チェックを繰り返しているだけ
で、次の焦点検出ループへは戻らない。そして、レンズ
が合焦位置で完全にストップするまで待ち、止まってか
ら始めて、合焦確認の焦点検出に入る。これは「WSTO
P」ループをまわっている間に第16図の#252の「INT3
S」の割り込みが入り、レンズをコントロールするわけ
である。 このニアゾーン内でレンズを駆動させながら焦点検出
をしないのは、以下の理由による。まず、ニアゾーンで
のレンズ駆動は、一定速度ではなく、加速度を持ってい
る。すなわち、レンズ駆動開始時には正の加速度を持
ち、レンズ停止位置前では負の加速度を持つ。ハイスピ
ード駆動時からニアゾーン内に入って、ロースピードに
切り変わった時には、負の加速度をもつ。ここで、元
来、ニアゾーンカウント量NZCは、ハイスピードからモ
ータ(MO1)の通電を切ってレンズの移動が止まるまで
のカウント値を目安に決めたもので、モータ(MO1)が
定速で動くための領域ではない。ここで定速でないとい
うことはモータ駆動中にセンサの積分を行っても、積分
時間の中間の位置をもって被写体データを得た地点とし
て代表することができないとういことである。従って、
前述のような移動分の補正をしてもその補正は正確では
なく、レンズ駆動パルスの算出誤差を持つことになる。
そこで、レンズが一定速度で動いていない時はセンサの
積分をしないことが望ましい。そこで本実施例では、加
速時、減速時には焦点検出をしていないのである。 次に#159でニアゾーン外にあると判断された時には
#162へ分岐し、ここで100msの時間待ちをする。レンズ
停止状態から加速しているので、定速となるまで100ms
時間待ちをしているのである。そして#163で終端チェ
ックをする。終端チェックの周期については、短かすぎ
ても長すぎてもよくない。レンズの動きに応じたエンコ
ーダのパルスの間隔よりも短すぎると止まっていると判
断してしまうし、逆に長すぎるとモータ、ギヤ、クラッ
チ等の駆動系の耐久性や、終端での反転駆動の応答性な
どの問題があるので、数10msから200ms程度の間隔にお
さえている。次に#164では、1-cut shotフラグをみて1
-cut shotモードになっているかどうかをチェックし、1
-cut shotモードであれば、レンズを駆動させながらの
焦点検出をしないというモードであるので#160の「WST
OP」へ進んで、レンズが停止するのを待ち、止まってか
ら合焦確認のための焦点検出を行う。1-cut shotモード
でなければ、第9図の#39の「CDINTA」へループしてい
く。以上が自動焦点調節のメインルーチンである。 次に第13図からの分岐ルーチン、サブルーチンについ
ての説明をする。まず、第13図の#165から始まる「LOW
CON」フローは第11図のメインルーチンの#88から、焦
点検出演算の結果がローコントラストであった時に分岐
してくるフローである。まず#165で終端チェックをし
て、#166でAFモードフラグをみてAFモードか否かのチ
ェックをする。AFモードでなければ#167へ進み前回ロ
ーコンフラグをセットし、#168でローコントラスト時
の表示として端子(P32)と(P30)のLL信号とLR信号を
同時に“Low"と“High"を繰り返してLED(LEDL)(LED
R)の点滅表示をする。そしてすぐ次の焦点検出へルー
プしていく。AFモードであれば#166から#169へ進み、
駆動中フラグをみてモータが駆動中かどうかをチェック
する。駆動中であれば、ローコンスキャン中である場合
と、自動焦点調節中にローコントラストという結果にな
ってきた場合とがあるので、#170でスキャン中フラグ
をチェックしてこれを区別し、自動焦点調節中であれ
ば、前述したようにレンズを止めるまではローコントラ
ストの結果を無視するので、すぐ#40の「CDINT」へ進
んで次の焦点検出に入る。ローコンスキャン中に#170
へ来たのであれば、#171でローコントラスト状態から
ぬけ出て、自動焦点調節を始める時の繰り込み積分時の
移動分補正のために、演算終了時点でイベントカウンタ
値T3を、最大カウント値65,000にセットしておく。(詳
細は後述する)同様にモータ駆動用イベントカウント値
EVTCNT、終端検知用カウント値MECNTも最大カウント値6
5,000にセットしておく。そして#40の「CDINT」へルー
プする。 レンズ停止時に、ローコントラストになっている時に
は、#169から#172へ進む。そしてローコンスキャンの
禁止を示すスキャン禁止フラグがたっていれば#173へ
進む。なおスキャン禁止フラグがたつのは、ローコンス
キャンがすでに一度終わっているか、又はコントラスト
が出たことがあるかのいずれかである。 #173から#175と#181から#183については、いずれ
も補助光AFモードに入るか否かの判断をしているステッ
プである。この補助光AFモードに入る条件というのは、
まずAFモードであるということ、被写体がローコントラ
ストであるということ、レンズが停止中でありさらにロ
ーライトであるということ、第3図の補助光照明装置の
ついた電子閃光装置がカメラに取り付けられて、補助光
発光可能状態を示すAFFL信号が来ており、なおかつその
充電完了信号RDYが来ているということであり、これら
条件がそろって始めて補助光AFモードに入る。まず#17
3でローライトフラグ、#174で補助光OK信号AFFL、#17
5で充電完了信号RDYを見て、いずれも“1"で条件がそろ
えば#225からの「LLLED」へ飛んで補助光AFモードに入
る。この条件がそろっていなければ、#176でローライ
トフラグに基づいてローライト状態をチェックし、ロー
ライトなら#177でセンサの最大積分時間を200msと倍に
する。積分時間100msでAGCが8倍でローコントラスト、
ローライトという時なら一段分積分時間を増やせば、ロ
ーコントラストにならず、焦点検出可となる可能性があ
るためである。しかし、これも積分時間が長い時に、レ
ンズ駆動しながら焦点検出をすると誤差がでるという理
由により、最大積分時間を200msモードとするのは、レ
ンズ停止中と限っている。 #178で前回ローコンフラグをセットし、#179でロー
コントラスト状態を示すLED(LEDL)(LEDR)の点滅表
示をし、#180でニアゾーンフラグ、繰り込み積分フラ
グ(第5-1表の繰り込み積分F)、反転フラグ、終端フ
ラグ、終端2ndフラグをクリアして、#40の「CDINT」へ
ループしていく。 #172でローコンスキャン禁止状態でなければ、#181
からの「SEARCH」へ分岐する。#181から#195までのフ
ローは、ローコンスキャンを開始させるフローである。
まず、#181から#183は、#173から#175までのフロー
と同様に補助光AFモードへ入る条件の判別をしている。
そして条件がそろえば#183から#225の「LLLED」へ飛
び、補助光AFモードに入る。ローライトであるが補助光
照明装置がセットされていなくてAFFL信号が“1"になっ
ていなければ、#181から、#182、#184へと進み、こ
こですでにセンサの最大積分時間が200msモードになっ
ているかどうかのチェックをする。 最大200msのモードになっていないのであれば、#230
の「LL200」へ飛び、200msモードフラグをセットして#
39の「CDINTA」へループしていく。#184で、すでに最
大200msモードになっているにもかかわらず、ローコン
トラストであるとか、#181でローコントラストである
がローライトでないという場合は、#185へ進み、200ms
モードフラグをクリアする。 これは、ローコンスキャン中に、積分時間が長いと、
前述にもあったように被写体の像が流れて、ローコント
ラストになりやすいということや、たとえコントラスト
があっても、積分時間と焦点検出演算時間の最大値の時
間だと、レンズを止めて、改めて焦点検出した時すでに
合焦範囲を超えて行きすぎてしまっているという駆動比
の大きいレンズもありうるので、こういったことを防ぐ
ために、200msモードフラグをクリアして、最大積分時
間が100msのモードにしている。 次に、#186から#190にかけてのフローでは、ローコ
ンスキャンをする時のレンズのスキャン開始方法を決め
ている。被写体が明るい時には、ローコンスキャンは、
焦点検出演算で求まっている方向からスキャンを始め
る。ローコントラストと判断されてデフォーカス量が求
まらなくても、デフォーカス方向なら求まっているとい
う場合があるため、演算結果の方向に従ってスキャンす
るのである。このローコンスキャン中にデフォーカス量
が求まる領域にくれば、前述してきた通り自動焦点調節
動作に入る。ローコンスキャンではレンズが一方の終端
にあたれば反転駆動させ、逆側の終端にあたればスキャ
ンは終わる。被写体が暗いか明るいかは、#186で積分
時間が50msを越えるか否かを示す1-cut shotフラグを用
いてチェックしている。これはAGCデータを用いてもよ
く、2倍以上を暗いとしても、4、8倍以上を暗いとし
てもよい。一方、暗い時には、#187に進み、ローコン
スキャンを繰り出し方向から始める。こうすれば、ロー
コンスキャン終了時の最終停止位置は無限遠端でレンズ
を繰り込んだ状態で終わる。これはレンズにキャップを
した時には、繰り込み状態で終わることになり、レンズ
がコンパクトになってカメラケースへの収納に便利にな
る。 この時コントラストを捜す目的でなくて、レンズを繰
り込んで終わるという機能を重視すれば、#187へ進ま
ずに#189の「LLIGHT2」へ進むようにしてもよい。すな
わち、#189でローコンスキャンで一回終端に当たった
というスキャン当りフラグ(スキャン当りF)をたて、
#190でMR信号を“Low"にして繰り込み方向にローコン
スキャンを始める。レンズが無限遠端に当たると、#18
9でたてたスキャン当りフラグによって第14図の#199か
らの「ROTEM」の中で、これでスキャンが終了したと判
断され、レンズが停止する。なお、この「LLIGHT2」は
補助光AFモードのフローの中から飛んでくる所である。 #191では前回ローコンフラグに“1"をたて、#192で
スキャン中フラグをたてていく。#193ではレンズ停止
時のデフォーカス量FERMを最大値65,000にセットしてお
く。#194では#171と同じくT3,EVTCNT,MECNTに最大値6
5,000をセットする。#195でレンズ駆動にあたって表示
を消しておく。そして、スキャンしながら次の焦点検出
ループ#40へもどる。 次は、第14図の終端チェックサブルーチン「CKLOCK」
の説明に移る。#196では駆動中フラグをみてレンズが
駆動中かどうかをチェックし、駆動中でなければ終端の
チェックをしないで、リターンしていく。レンズ駆動中
は#197へ進み、終端のチェックをする。駆動時にレン
ズ駆動パルスカウント値DRCNTと同じ値をセットしたお
いた終端チェック用レジスタMECNTと、レンズ駆動用カ
ウント値DRCNTとしてセットしたイベントカウンタのカ
ウント値EVTCNTと比較する。レンズが動いていれば、EV
TCNTの値はエンコーダ(ENC)からのパルスが入ってく
るたびに1ずつ減算されており、MECNTと異なった値に
なっている。レンズが終端に当たって動いていなけれ
ば、エンコーダ(ENC)からパルスは入ってこないの
で、EVTCNTの値は変化せずMECNTと同じ値のままであ
る。ゆえに#197でMECNT=EVTCNTであればレンズが止ま
っているという判断をして、終端処理フロー「ROTEM」
の#199へ分岐する。MECNT≠EVTCNTであればレンズが動
いていると判断をして#198へ進む。#198ではMECNTに
改たにEVTCNTの値をセットしなおして、次の終端チェッ
クに備える。そしてリターンしていく。 #199からの終端処理フロー「ROTEM」では、まず最初
サブルーチンから分岐してきているので、マイコンのス
タックポインタをリセットしておく。#200でINT1,INT2
以外の割り込みを禁止する。終端にぶつかっているとい
うことで#201、#202でモータ(MO1)への通電を切っ
て、ブレーキをかける。#203ではモータ(MO1)を止め
たので駆動中フラグをクリアする。#204で前回方向フ
ラグをチェックして、前回方向フラグが“0"であれば
(後ピンでありレンズを繰り出していた)、#205で最
近接端位置で止まっているという意味で、終端位置フラ
グに“1"をたてておく。前回方向フラグが“1"であれば
(前ピンであり、レンズを繰り込んでいた)、#206で
無限遠端位置で止まっているという意味で、終端位置フ
ラグをクリアしておく。#207ではローコンスキャン中
に終端に当たったかどうかをチェックして、スキャン中
でなかったら#208へ進み、終端でレンズが止まってい
るという終端フラグをセットしておく。#209では、さ
らに補助光モードフラグに基づいて補助光AFモード中で
あったかどうかをチェックして、補助光AFモード中であ
ったならば、終端に当たればたとえ一度目の発光による
焦点検出であろうとも、次の焦点検出にループしないで
LEDの点滅表示をして、焦点検出をあきらめる。補助光A
Fモードについては、#225からの「LLLED」フローの中
で詳しく述べる。#209で補助光AFモードでなければレ
ンズを終端位置に止めたまま次の焦点検出ループ「CDIN
TA」へ行く。 #207で、ローコンスキャン中にレンズが終端に来て
いる場合には#210へ進み、これまでスキャン中に終端
に当たったことがあるかどうか、すなわち行きか帰りか
をチェックし、行きであれば、スキャン方向を反転させ
て動かす必要があるため#217へ進む。#217では、今
回、終端に来たのであるから、スキャン当りフラグをセ
ットする。次に、#218で前回方向フラグ(レンズ駆動
方向を示す)をチェックし、#219、#221でそれぞれこ
れまでと逆の方向にセットしなおす。そして#220、#2
22でそれぞれ次に動かす方向に従って、レンズ駆動信号
MR又はMFを“Low"にする。この時もちろんブレーキ信号
MBは“High"にしておく。これで反転駆動が開始され
る。#223ではローコンスキャン開始時と同様に、FERM,
T3,EVTCNT,MECNTをそれぞれ最大値65,000にセットしな
おしておく。#224では駆動中フラグに“1"をセットし
て、次の焦点検出ループ「CDINTA」へ行く。 一方、すでに一度終端に当たっていて、二度目の終端
だった場合は、#210から#211へ進む。今度は、ローコ
ンスキャン終了であるからレンズは動かさない。#211
でスキャンで終端に当たったというスキャン当りフラグ
をクリアし、#212ではスキャン中フラグをクリアし、
#213では一度スキャンすれば後はもうしないために、
スキャン禁止フラグをセットしていく。#214ではロー
コンスキャンをしたけれども、コントラストが見つから
ず、焦点検出不能だったということで、LEDの点滅表示
をする。#215では補助光AFモード中かどうかをチェッ
クし、補助光AFモード中であれば、#216へ行って、次
の焦点検出に行かずに割り込み待ちとして、このまま終
わってしまう。補助光AFモードでなければスキャン終了
後、終端位置で焦点検出を繰り返すため、#39の「CDIN
TA」へ戻る。以上が終端検知ルーチンである。 次に補助光AFモードのルーチンの説明をする。補助光
AFモードへは第13図の「LOWCON」ルーチンから入ってく
る。前述のごとき条件がそろえば#175、又は#183から
#225の「LLLED」へすすみ、補助光AFモードのフローに
なる。第14図の#225ではまず補助光AFモードを示す補
助光AFモードフラグをたてる。#226で端子(P13)から
の端子(ST4)の信号を“High"にする。フラッシュ回路
(FLS)は、この信号によって補助光用LED(48)の発光
を開始させる。#227では補助光AFモードへ入ったとい
うことを外部に知らせるために、LL信号とLR信号を“Lo
w"にし、両側のLED(LEDL)(LEDR)を点灯させる。点
灯時間は、次の焦点検出演算が終わるまであり、最大45
0ms点灯するのが標準となる。これは、#229の200msの
時間待ちと、焦点検出のための演算時間と、最大積分時
間が200msの場合の合計時間であるが、被写体がかなり
近くて明るいと、450ms以下で焦点検出が完了する。す
なわちこれもレンズ駆動中は表示を消すというためであ
る。この表示は補助光AFモードへ入った時の1回だけで
ある。一方、補助光用LED(48)は2回発光している。
補助光AFモードのシーケンスは、まず補助光用LED(4
8)を1回発光させて、200msの間CCDイメージセンサ(F
LM)に対して予備照明をしておく。これはCCDイメージ
センサ(FLM)の応答性を上げるためである。そして、
最大積分時間が200msのモードで、補助光照明のもとでC
CDの積分をする。そして、このデータにより焦点検出演
算をし、レンズを駆動させる。この間、焦点検出はしな
い。そしてレンズ停止後、2回目に補助光用LED(48)
を発光させ、1回目と同様に最大450msの後、焦点検出
結果が合焦ゾーン内に入っていなければ、再度レンズを
駆動させて焦点調節を行う。これが基本的な動きであ
る。 ここで、補助光用LED(48)の発光が1回目か2回目
かの区別が必要となってくる。これを区別する為に、補
助光1stフラグ(第5-2表の補助光1stF)が設けられてい
る。このフラグは“0"が入っていれば1回目の発光であ
ることを示し、“1"で2回目の発光を示している。#22
8ではこのフラグに“0"を入れておく。#229ではセンサ
の予備照明時間として200ms待ち、#230でセンサの最大
積分時間が200msのモードにセットしておく。補助光AF
モードの場合、たいていが200ms積分時間となる。そし
て、通常AFモードの時と同様の「CDINTA」へループす
る。 第9図の#39から補助光発光状態でフローが進み、第
10図の#69で補助光を消す。以下同様に焦点検出し、第
11図の#87に来て、第14図#238の補助光AFモード用フ
ロー「LSAVE」へ分岐する。これが#238から始まるフロ
ーである。 まず、補助光AFモードでの焦点検出が1回目かどうか
を判別して、1回目であれば#239へ進む。ここで、焦
点検出演算結果が、ローコントラストであったかどうか
をチェックし、ローコントラストであれば、#189の「L
LIGHT2」へ行き、2回目の焦点検出をあきらめる。この
あと、第13図の#189,#190から第9図の#40へループ
していき、レンズを繰り込んで終わる。これはあきらめ
て繰り込んでいるのであるから、補助光も発光させない
ので、焦点検出ループを回る必要はないが、こうしてお
けば繰り込み中、急に明るくなってコントラストが出れ
ば、補助光なしに焦点検出することが可能であるからで
ある。#239でローコントラストでなければ、第11図の
#91の[NLDC1]へ行き焦点調節駆動のフローへ入って
行く。この場合には、第11図の#91から#102を通り、
更に、第12図の#141を通って#155で駆動を始め、#15
8から補助光AFモード時のフロー「L2SAVE」(第14図の
#231)へ分岐してくる。 第14図の#231では補助光1stフラグに基づいて補助光
の発光が1回目かどうかのチェックをし、1回目であれ
ば#232へ進む。ここでレンズを焦点検出演算結果のカ
ウント量だけ駆動させ終わるまで待ち、レンズの移動停
止後、2回目の補助光発光のフロー#233へ進む。#233
では、補助光OK信号AFFLを見て、“1"(OK)であれば、
#234で2回目の補助光発光信号を出力する(すなわち
端子(ST4)の信号を“High"にする)。AFFL信号が“0"
であれば補助光照明装置が切られたのであるから、2回
目の発光はしないでおく。なお、この実施例では、この
場合に補助光AFモードから解除していないが、解除して
もよい。 #235で補助光1stフラグをセットして、2回目の補助
光AFモードであることを示しておく。そして1回目の時
と同様に、#229で200ms待って#230を通って、#39の
「CDINTA」へ行く。2回目の補助光AFモードの時も同様
のフローを通り、第9図の#39から第10図の#44、#68
を通って、第11図の#87で補助光AFモードである場合に
は、第14図の#238の「LSAVE」へ分岐する。今度は2回
目の補助光AFモードであるので、#240へ進む。#240で
ローコントラストであったかどうかをチェックして、ロ
ーコントラストであれば#211へ進み、今度は1度目の
場合と違ってレンズを繰り込まずに停止させたままで、
両側のLED(LEDL)(LEDR)の点滅表示をして割り込み
待ちとなる。 ローコントラストでなければ、#240から第11図の#9
1へ進み、レンズ駆動のフローへ入る。そして第12図の
#158まで補助光AFモード用フローの「L2SAVE」へ分岐
する。#231では2度目の補助光AFモードであるので、
#236へ進み、1度目と同様レンズが停止するのを待
つ。補助光AFモードでなければ、このあと合焦確認の焦
点検出へ入るが、補助光発光は2回までと制限したの
で、確認の焦点検出へは行かない。(本実施例では発光
を2回までとしているために、確認をせず次のような処
理をしているが、発光回数の制限をせず、合焦が確認さ
れるまで発光させてもよい。)この処理とは、レンズ停
止時の焦点検出演算値FERMをチェックする。すなわち、
2回目のレンズ駆動開始時のデフォーカス量が1mm未満
であれば、焦点検出性能を考えて、充分合焦確認なしに
合焦ゾーン内までレンズをもっていくことができると判
断して、第11図の#117の合焦時のフロー「INFZ」へ進
んで、合焦表示をする。FERMが1mm以上であれば、1度
目と2度目の焦点検出結果が大きく異なっていたという
ことで、確かな焦点検出ができなかったとして、#211
へ進み、レンズを今の位置に置いたまま両側のLED(LED
L)(LEDR)を点滅させる。以上が補助光AFモードのル
ーチンである。補助光用LED(48)の発光を2回に制限
しているのは、発光回数が多いと電源消費や使いがって
の問題があり、1回だと焦点検出誤差やバックラッシュ
誤差の問題があるので、2回を妥当としているのであ
る。又、2回目の焦点検出が不能であった場合、レンズ
を繰り込んでいないのは、スイッチ(S1)を一旦開いて
から再度閉成して補助光AFモードを再トライしてみる
と、今度は被写体の合焦近傍からスタートする可能性が
多く、合焦ゾーン内にレンズを持っていく可能性も高ま
るのであろうと判断しているためである。 次に、第16図のイベントカウンタ割り込みフロー「IN
T3S」についての説明に入る。これは割り込み端子(INT
3)に入ってくるレンズ駆動用モータ(MO1)のエンコー
ダ(ENC)からのパルス信号PSを使って、レンズ駆動の
コントロールを行なうものである。合焦位置までのレン
ズの駆動カウント値EVTCNTを焦点検出演算によって求め
たが、、このINT3への割り込み信号によってレンズの駆
動量を常にモニターし、レンズの移動スピードや停止位
置をコントロールする。まずレンズ駆動時に駆動カウン
ト値EVTCNTがイベントカウンタにセットされる。そして
レンズ駆動用モータ(MO1)に通電が開始される。する
とレンズが動き出し、エンコーダ(ENC)からパルスが
出てINT3に割り込みがかかる。そして#252の「INT3S」
のフローが始まる。 まず、#252で“1"パルス信号が来たということで、
イベントカウンタのカウント値EVTCNTを“1"減ずる。そ
して#253でこのカウント値EVTCNTが指定量(すなわち
“0")をカウントしたかどうかチェックして、EVTCNTが
“0"になれば、合焦位置までレンズが来たということで
#259へ進み、モータ(MO1)の駆動をストップさせる。 イベントカウンタのカウント値EVTCNTが“0"になって
いなければ#254へ進み、ニアゾーンフラグに基づいて
レンズがニアゾーン内に入っているかどうかをチェック
する。ニアゾーンフラグが“1"でなければ#255へ進
み、今回のパルスによってニアゾーンに入ったかどうか
をチェックしにいく。#255でイベントカウンタのカウ
ント値EVTCNTがニアゾーンカウンタのカウント値NZCよ
り小さくなっていれば、今回ニアゾーン内に入ったとい
うことで#256へ進む。ニアゾーン外であれば「INT3S」
の割り込みフローからメインフローへリターンしてい
く。一方、#256では今回始めてニアゾーン内に入った
ということでニアゾーンフラグをたて、#257で端子(P
03)からのMC信号を“Low"にし、モータ(MO1)の駆動
をロースピードに切り換える。そして#258で、割り込
みフローのスタックポインタをリセットして第12図の#
160の「WSTOP]へ進み、終端チェックをしながらレンズ
が停止するのを待つ。 すなわちこの「WSTOP]のフローをループしながら「I
NT3S」の割り込みが入り、#252から#254,#258のフロ
ーを繰り返し、カウント値EVTCNTが“0"になった時点
で、このループを抜け出て、#259へ進む。ここでニア
ゾーン内にあれば#160の「WSTOP]へ進み、メインフロ
ーへリターンしないのは、前述したようにレンズが定速
で動いていない時には焦点検出しないとしているため
で、ニアゾーン領域に入ればレンズは減速していくので
定速でないためこの領域に入ればレンズを動かしながら
焦点検出はしない。 次にレンズがその駆動パルスカウント値EVTCNT分だけ
動ききった時点では、#253でのチェックでカウント値E
VTCNTが“0"になるので#259へ進む。ここで、レンズ駆
動用モータ(MO1)への通電を切り、#260でブレーキを
かけて、#261で駆動中フラグをクリアして、#262でイ
ベントカウンタの割り込みを禁止して、#263へ進む。
ここで、補助光AFモード中であるかどうかをチェックし
て、補助光AFモード中であれば、このイベントカウンタ
割り込みからリターンしていく。このリターン先は補助
光AFモードのフローで説明したように、第14図の#232
か#236である。#263で補助光AFモードでない場合に
は、#264でスタックポインタをリセットして#265へ移
る。 ここからのフローは焦点調節駆動後、そのレンズの停
止位置が合焦ゾーン内に入っているかどうかの確認の焦
点検出に行くかどうかを判定しているものである。ま
ず、制御マイコン(MC2)から送られて来ているDR信号
を見て、単写モードか、連写モードかをチェックする。
DR信号が“0"すなわち単写モードであるならば、#267
で10ms待ち、レンズがロースピードから完全に停止して
から、次の焦点検出ループに入る。そして、次の焦点検
出で合焦ゾーン内に入っていることが確認されれば、す
なわち第11図のメインフローの#116でチェックされ合
焦であれば、始めて#117へ進み、合焦表示をする。レ
ンズが停止した位置が合焦ゾーン内に入っていなけれ
ば、再び、第11図の#120からレンズ駆動のルーチンに
入り、同じことが繰り返される。これが合焦確認時のフ
ローである。次に連写モードの場合、DR信号は“1"であ
るので、第16図の#265から#266へ進む。ここでレンズ
停止時(駆動中フラグが“0"の時)のデフォーカス量
(FERM)をチェックする。この数値が500μm以上であ
れば、#267へ進む。すなわち、連写モードの時に、レ
ンズ駆動前のデフォーカス量が500μm以上であれば、
合焦確認をするということになる。#266でFERMが500μ
m未満であれば、#268へ進み、反転フラグがたってい
るかどうかをチェックし、反転フラグがたっていればバ
ックラッシュの補正をしたことがあるということで、合
焦確認をするために、#267の方へ行く。#268で反転フ
ラグがたっていなければ、#117の「INFZ」の合焦表示
フローへ行く。これは連写モードの時には、レンズ駆動
スピードを上げて移動している被写体に対する追従性を
よくさせるための方法で、500μm以内の位置からバッ
クラッシュの補正をしないで自動焦点調節をさせた場合
には、システムのリニアティもよく、確実に合焦ゾーン
内に入るという確信のもとで合焦確認の焦点検出をせず
に、直接合焦表示へ行く。これ以外の場合は、合焦確認
に行き、合焦精度を上げる。もっとも焦点検出能力が更
に向上し駆動系統の誤差がまったくない完全に近いもの
であれば、すべてここでの合焦確認は不用というふうに
してもよい。以上が自動焦点調節のシーケンスである。 次に、第9図の#40から#53までのフローと第18図
(A)(B)のタイムチャートとを用いて「繰り込み積
分」と、移動分補正について説明する。これは基本的
に、焦点検出ループに要する時間を短くするための手段
である。第18図(A)は被写体が比較的明るく、CCDイ
メージセンサ(FLM)の積分時間が60ms未満の場合であ
り、第18図(B)は積分時間が60msを超えるような暗い
場合である。そして第18図(B)が「繰り込み積分」と
称する状態になっている。 まず被写体が明るい場合、第18図(A)のでセンサ
の積分が開始されるときのイベントカウンタの値EVTCNT
を読み取り、これをT1として保存する。積分終了時の
でT2を保存する。そして、AGCデータを入力してすぐ
で次の積分を開始してしまう。この積分開始時はと時
間的にほぼ同一時刻であるとして、T1′=T2として考
え、改めてT1′を取り込むことはしない。で積分を開
始したと同時に、CCDイメージセンサから画素データを
取り入れる。そしてで焦点検出演算を開始する。とこ
ろが(A)の明るい被写体の場合、から始まった第2
回目の積分は焦点検出演算が終了するまでにで終わっ
てしまっている。CCDイメージセンサからの画素データ
は積分終了後直ちに出力され、演算終了時までデータを
センサ内で持っておくことはできない。又AFマイコン
(MC1)が新データを取り込みに行けば、現在演算中の
データは破壊されてしまう。結局この第2回目の積分の
データは捨てられることになる。しかしで演算が終了
した時点ですぐ次の積分を開始すれば、明るければこの
積分時間自体さほど問題ではなく、焦点検出ループの時
間としては長くならない。なおこの場合にはでのカウ
ント値T2′は無視されることになる。そして、この時の
移動分補正の計算は前述した計算式が成りたつ。すなわ
ちTx=T1−T2、Ty=T2−T3とした時の補正量Tz=Tx/2+
Tyが演算結果で求められたレンズ駆動カウント値DRCNT
から減算しておけばよい。なおここでT3とは演算終了時
のイベントカウント値である。で補正された値DRCNT
を新たなイベントカウンタのカウント値EVTCNTとしてセ
ットする。次の積分開始時にはこのカウント値をT1″と
して保存し、以下同様に繰り返す。 次に被写体が暗い場合はで積分開始時のイベントカ
ウント値T1を保存する。で積分が終了してT2を保存す
る。AGCデータを取り込んでからですぐ次の積分を開
始する。CCDデータ入力後から焦点検出演算を開始す
る。そしてで演算が終了し、T3を得て(A)と同様の
移動分補正をする。この積分終了時点のでは第2回目
の積分が終了していない。ここで「繰り込み積分」方式
を用いていないとすると、において新たな積分を開始
することになりここから−間と同等の時間を待たな
ければならない。しかし、本実施例では「繰り込み積
分」によってですでに積分を開始しているので、積分
終了まで−間待つだけですむ。すなわちトータル時
間として−の時間が短縮されることになる。すなわ
ち、「繰り込み積分」方式は積分時間が−時間を超
えるような場合に効果が出てくる。本実施例では−
が60ms、又−の最大積分時間を100msとしている。 ところで(B)の場合の移動分補正については(A)
と同様な方法はとれない。演算終了時24での移動分補正
は、積分開始時のカウント値T1′(これは前回の積分
終了時点のカウント値と同じと見なしてT2→T1′とおき
かえられる)と、積分終了時のT2′、演算終了時のT3′
を用いて補正値を求めたいが、前回の演算終了時で、
レンズ駆動用イベントカウント値EVTCNTが書き換えられ
ている。すなわち補正計算でのTx=T1′−T2′におい
て、T1′とT2′では別次元の数値であり、この計算は意
味がない。T2′、T3′はで演算結果が求められEVTCNT
がセットされた時点から新しいスケールになっているの
である。そこで、T1′も新しいスケールに変換する必要
がある。すなわち、で求まった駆動カウント値DRCNT
と、前回のスケールでに来ている値T3との差が新スケ
ールへの変換補正量となる。システムが理想的であれ
ば、DRCNT=T3となるはずであるが、被写体に対しレン
ズが移動しながらセンサ積分をしているということや、
デフォーカス量対レンズ駆動カウント値の間での変換で
は係数が小さめに量子化されているということや、焦点
検出演算で求まるデフォーカス量自体もレンズの行きす
ぎ防止の意味で幾分小さめに結果が求まるようにし行き
すぎてもどったりした時に行うバックラッシュ補正によ
っての誤差を含まないように考慮してあることにより必
ずDRCNT>T3となっている。そこでDRCNT−T3が新スケー
ルと旧スケールとの補正量となり、T2をT1′に置きかえ
る時にこれを補正すれば新スケールのT1′が求まり24で
の移動分補正ができる。フローチャートに掲げた実施例
では、 (DRCNT−T3)+T2→T1′ と置きかえてTx=T1′−T2′として補正量Tzを求めてい
る。しかし、又これを別の実施例として Tx=(T2−T3)+(DRCNT−T2′) としても、同様に補正量Tzを求めることができる。ただ
し、この場合は(DRCNT−T3)の補正が必要ないかわり
に、移動分補正時に繰り込み積分の場合の別ルーチンを
作り、 Tx=T1′−T2′ のかわりに上記式を用意しておかないとならない。又T
2′によってT2が消されてしまわないような別のメモリ
を用意しておく必要もある。 次にフローチャート上で「繰り込み積分」を見ると、
第10図の#66から始まる。#65で駆動中フラグをチェッ
クしてレンズが駆動中という判断をした時には、「繰り
込み積分」状態になろうがなるまいが#66で次の積分を
開始し、#67で繰り込み積分フラグ(第5-1表の繰り込
み積分F)をたてていく。そして、「繰り込み積分」が
必要な時の焦点検出ループのトップを第9図の#40の
「CDINT」としている。 今、第18図(B)の状態であるとする時のフローを追
う。#40で積分モードにして積分終了信号NB4を検知で
きるようにしておく。そして#42で繰り込み積分フラグ
がたっているかどうかをチェックして、たっていなけれ
ば繰り込み積分モードになっていないので#44へ進む。
繰り込み積分フラグがたっていれば#43へ進み、積分終
了信号NB4をチェックして、すでに積分が終わっている
かどうかをチェックする。第18図(B)ののように積
分が終わっていなければ#49の「TINTC」へ進む、すな
わち「TINTC」からが繰り込み状態時のフローで、#44
からの「CDINTS」が非繰り込み用である。第10図の#49
では1-cut shotフラグを“1"にする。#50でAFE信号を
“Low"にし、そして前述したように#51で移動分補正に
備えてT1′の補正をする。#53で積分の残り時間の最大
値40msをセットして、#55へ進む。以下はメインルーチ
ンを流れていく、「繰り込み積分」はこのようにして焦
点検出時間を短縮する効果を出す。以上でAFマイコン
(MC1)のフローの説明を終わる。 尚、上述の実施例では、補助光ユニットをカメラに取
り付けてその電源スイッチを閉成させることによって補
助光OK信号(AFFL)が発せられるように構成されていた
が、補助光ユニットをカメラに取り付けると補助光OK信
号(AFFL)が発せられるようにしても良い。また、補助
光OK信号(AFFL)と充電完了信号(RDY)とを1つにま
とめて伝達されるように構成しても良い。 発明の効果 本発明によると、フラッシュが発光不可能な場合には
補助光の発光が禁止される。つまり、補助光が発光され
た場合には必ずフラッシュも発光可能状態となってい
る。そして、補助光の発光が禁止されている間に、補助
光なしでの焦点検出動作を繰り返し行うように制御され
ているので、この間に被写体の輝度の状況が変化して補
助光なしでも焦点状態が検出できるようになると、検出
できた時点でフラッシュ発光なしでの撮影が可能とな
る。したがって、一度補助光が必要と判断された場合で
も状況の変化に応じた撮影が行われるので、シャッター
チャンスを逃すことが少なくなる。
Description: FIELD OF THE INVENTION The present invention relates to an automatic focus detection device having an auxiliary light device.
I do. Conventional technology Conventionally, a flash that illuminates the subject for shooting,
Equipped with an auxiliary light illumination device that illuminates the subject for focus detection
The cameras that do this are known. This fill light illuminator is usually too dark to focus on the subject.
It is designed to work when detection is not possible. did
Therefore, when auxiliary light is needed for focus detection,
Flash emission is required. However, according to the conventional device, the flash can emit light.
Focus detection using auxiliary light
Since the focus was detected, the focus was detected and the image was taken.
If you try to cast a shadow and the flash is not ready
And wait until the flash can fire.
There was something I had to do. As a countermeasure, flash
After the light source is ready to emit light,
A configuration for performing focus detection is possible. However, simply
Just waiting for the flash to fire
The situation of the subject changes while waiting, and there is no auxiliary light
The focus condition can be detected with and you can shoot without a flash.
Even if the brightness becomes
I'll wait until I miss the shutter chance
Will be able to. Therefore, in the present invention, focus detection operation using auxiliary light is performed.
Make sure the flash is ready to fire
And the focus detection operation using auxiliary light is performed.
By repeatedly performing the normal focus detection operation at
-Providing a focus detection device that prioritizes opportunities
Aim. Means for Solving the Problems In order to solve the above-mentioned problems, the present invention receives a subject light.
Based on the light receiving state and the light receiving state, the focus state of the subject is determined.
Focus detecting means for performing a detecting operation, and the focus detecting means
Focusing means for performing a focusing operation based on the detection result of
Auxiliary light means for illuminating the subject for focus detection, and light reception
Determine whether the above-mentioned auxiliary light means is necessary based on the state
The auxiliary light determination means and the auxiliary light determination means
The flash can be fired when a stage is determined to be necessary.
By the judgment means for judging whether or not it is
Flash if it is determined that the flash cannot be fired.
The operation of the auxiliary light means is prohibited until light emission becomes possible.
Prohibiting means and the focus detecting means during operation of the prohibiting means
Can be repeatedly operated and focus detection can be performed during the repeated operation.
If so, the focusing means can be used without using the auxiliary light means.
It has a control means to operate. Action According to the above configuration, when the flash cannot be fired
When the auxiliary light is emitted and the auxiliary light is
The flash can always be fired. Also auxiliary
Focus detection without auxiliary light while light emission is prohibited
The operation is repeated. Embodiments A camera system for automatic focusing according to an embodiment of the present invention.
The outline of the stem will be described with reference to FIG. Fig. 1
The left side of the chain line is the zoom lens (LZ), and the right side is the zoom lens.
It is the main body (BD), and both are clutch (10
6) Connection terminals (JL1) to (JL1) mechanically via (107)
5) Electrically connected via (JB1) to (JB5). This
Camera system, zoom lens (LZ) focus
Lens (FL), zoom lens (ZL), master lens
The subject light that has passed through the lens (ML) is
The semi-transmissive part in the center of the reflection mirror (108) is transmitted, and the
CCD image sensor (FL
The optical system is configured so that
You. The interface circuit (112) is the focus detection module
Drives a CCD image sensor (FLM) in (AFM)
Capturing subject data from a CD image sensor (FLM)
Or send this data to the AF controller (113) again
I will put it out. The AF controller (113) is a CCD image sensor.
Based on the signal from the sensor (FLM).
Defocus amount | ΔL |
Calculate the signal (front pin, rear pin). Motor (MO
1) is driven based on these signals, and its rotation is slippery.
Up mechanism (SLP), drive mechanism (LDR), camera body side
Is transmitted to the zoom lens (LZ) via the switch (107).
You. The slip mechanism (SLP) is the same as the zoom lens (LZ).
If the driven part receives more than the specified torque, it will slip
To prevent the data (MO1) from being overloaded.
is there. Focus lens in zoom lens (LZ)
On the inner circumference of the focus adjustment member (102) for driving (FL)
Has a female helicoid screw formed on it,
The lens mount (121)
A male helicoid screw is formed on the outer periphery of the fixed part (101).
You. A large gear (103) is installed on the outer circumference of the focus adjustment member (102).
The large gear (103) is attached to the small gear (104)
It is connected to the lens side clutch (106) through the reaching mechanism (105).
Is tied. As a result, the rotation of the motor (MO1)
Slip mechanism (SLP) of camera body, clutch on the body side
(107), clutch (106) on lens side, transmission in lens
Via mechanism (105), small gear (104) and large gear (103)
Is transmitted to the focus adjustment member (102) and the helicoid screw
The focusing lens (FL) moves back and forth in the optical axis direction.
The focus is adjusted by moving. Also for the lens (FL)
The encoder (ENC) for monitoring the drive amount is a camera
It is connected to the drive mechanism (LDR) of the main body (BD).
Corresponding to the drive amount of the lens (FL) from the encoder (ENC) of
Number of pulses is output. Here, the number of rotations of the motor (MO1) is NM (rot),
The number of pulses from the encoder (ENC) is N and that of the encoder (ENC)
The resolution is ρ (1 / rot), and the rotation axis of the motor (MO1)
The reduction ratio of the mechanical transmission system up to the coder (ENC) mounting shaft is μ
P, the rotation axis of the motor (MO1) to the camera body side clutch
The mechanical transmission system reduction ratio up to (107) is μB, and the lens side
Reduced the mechanical transmission system from the latch (106) to the large gear (103)
Speed ratio of μL, helicoid lead of focus adjustment member (102)
LH (mm / rot), the amount of movement of the focusing lens (FL)
Let Δd (mm) be N = ρ · μP · NM Δd = NM · μB · μL · LH That is, Δd = N · μB · μL · LH / (ρ · μP) ... (1) To be Also, image formation when the lens is moved by Δd (mm)
When the ratio of the surface movement amount ΔL (mm) and the above Δd is expressed by K op = Δd / ΔL (2), N = Kop · ΔL · ρ · μP / (μB・ ΜL ・ LH) ・ ・ ・ (3) is obtained. Here, if KL = Kop / (μL·LH) (4) KB = ρ · μP / μB (5), then the relational expression of N = KB · KL · ΔL (6) is obtained. . In the equation (6), ΔL is a signal processing circuit (112)
From the defocus amount | ΔL | and the signal in the defocus direction
Is obtained. The KL in equation (4) is a zoom lens.
By rotating the zoom ring (ZR) for zooming (LZ)
Lens circuit (LEC) according to the focal length certified by
Output from That is, at the turning position of the zoom ring (ZR)
The corresponding data is output by the code board (FCD) and this data
Is sent to the lens circuit (LEC) and this code plate (FCD)
Data of KL stored in the address corresponding to these data.
Data is read in series by the reading circuit (LDC) of the camera body.
You. The code plate (FCD) is used to rotate the zoom ring (ZR).
Code pattern so that data corresponding to a fixed position is output
Have been defined. Also, inside the lens circuit (LEC)
A zoom ring is attached to a fixed storage means such as a stored ROM.
KL data corresponding to the focal length set by (ZR)
Each correspond to the data from the code plate (FCD)
It is fixedly stored in advance at the address. Also, KB in the equation (5) is the reduction ratio μB in the camera body.
This data is fixedly determined according to
KB is held by the camera controller (111). Here, from the reading circuit (LDC) on the camera body side to the lens
Side lens circuit (LEC) via terminals (JB1) (JL1)
Then, the power supply is synchronized with the clock for synchronization via the terminals (JB2) (JL2).
Signal to start reading via terminals (JB3) (JL2)
Are sent respectively. Also read from the lens circuit (LEC)
Access to the take-up circuit (LDC) via terminals (JL4) (JB4).
KL is output in series. The terminals (JB5) (JL5) are the same
It is a common ground terminal. Lens circuit (LEC) via terminals (JB3) (JL3)
When a read start signal is input, the rotation setting of the zoom ring is set.
KL data corresponding to the focal length from the camera body
Clock pulse input via terminals (JB2) (JL2)
Output to the reading circuit (LDC) in series in synchronism with. Soshi
The reading circuit (LDC) outputs to the terminal (JB2)
Directly from the terminal based on the same clock pulse as the pulse.
Read column data and convert to parallel data. The camera controller (111) is from the reading circuit (LDC)
Based on the data KL and the data KB inside it, KL · KB =
K is calculated. The AF controller (113) is
Using the subject image data from the face circuit (112)
Defocus amount | ΔL | is calculated, and this defocus amount | Δ
L | and the data K from the camera controller (111)
Based on K · | ΔL | = N, the pulse to be detected by the encoder (ENC)
Calculate the number of cells. The AF controller (113) is the subject image
Depending on the defocus direction signal obtained using the data of
The motor (MO1) through the motor driver circuit (114)
Rotate clockwise or counterclockwise to turn the encoder (EN
Number equal to the calculated value N from C) to the AF controller (113)
Focusing lens (FL) when the pulse of
Is determined to have moved by the amount of movement Δd to the in-focus position,
Stop the rotation of the motor (MO1). In the above explanation,
Data KB is fixedly stored on the camera body (BD) side, and this data
The value of K = KL · KB was calculated by multiplying the data KB by the data KL from the lens, but the calculation of the K value is limited to the above method.
It is not specified. For example, if the KB values are different from each other,
A zoom lens can be attached to any of several camera bodies.
If it can be installed, the zoom lens (LZ) lens circuit (LE
From C), output data of K 1 = KL · KB 1 corresponding to the camera body having a specific KB value according to the set focal length.
On the other hand, in the camera body of this particular model,
The calculation of the data KB in the error (111) and KL / KB is unnecessary.
AF controller for data K 1 from the reading circuit (LDC)
Please enter it in (113) and what is the above specific KB value?
If the other camera has a different KB 2 (≠ KB 1),
The camera controller (111)
To have the data of KB 2 / KB 1 and perform the operation of K 2 = K 1 · KB 2 / KB 1 = KL · KB 2 to obtain KL · K
The value of B 2 may be obtained. Especially, the focusing lens (FL) is zoomed as described above.
Front group extension located in front of the lens (ZL)
In case of type zoom lens, Kop value is Kop = (f1 / f) 2 (7) fl: The focal length of the focusing lens, and the KL or K value for one zoom lens
It varies very widely. In this case, store in the lens
Data KL or K is used as the data of the exponent part and the data of significant figures.
Data (for example, if it is 8-bit data, the upper 4 bits
To the exponent part and the lower 4 bits as the number of significant digits),
Of the data read by the reading circuit (LDC) of the camera body
Shift the lower 4 bits of data by the exponent data
Input to the camera controller (111)
Even if the value of L or K changes significantly, it is possible to cope with it sufficiently. It should be noted that the explanation of FIG.
In order to facilitate understanding of various functions and functions,
Device is shown to consist of a combination of circuit blocks.
However, in reality, the mechanism of those circuit blocks
As described below,
(Hereinafter referred to as a microcomputer). FIG. 2 schematically shows a circuit in the camera of this embodiment.
It is a block diagram. In Fig. 2, (MNS) is the power switch and (POR) is
Depending on the closing of the power switch (MNS), AF my
Reset controller (MC1) and control microcomputer (MC2)
This is a power-on reset circuit. (S1) is shutter release
Switch closed by pressing the button one step (half-press)
The operation of photometry and automatic focus adjustment by this closing
Is started. (S2) is the shutter release button 2
It is a switch that is closed by pressing a step (cut off).
The exposure operation is started by closing. (S4) is a film
It is a switch that closes when the winding of the film is completed. (MC2) is the camera controller (11
1) works, and the operation of the entire camera system
A microcomputer that controls the
Below, control microcomputer). At that terminal (I1)
The switch (S1) is connected, and the AND circuit is connected to the terminal (I2).
The switches (S2) and (S4) are connected via. (OS
C) is an oscillator circuit for the operation. (MC1) is shown in Fig. 1.
It functions as the AF controller (113) shown in
A micro controller that controls the automatic focusing operation in sequence
Computer (hereinafter referred to as AF microcomputer). Calculated
The focused focus adjustment status is indicated by the LED for display (LEDL) (LEDM) (LED
Viewfinder by illuminating either R)
Will be displayed within (SAF / M) is an automatic focusing mode (hereinafter referred to as AF mode
Manual focus adjustment mode (hereinafter referred to as non-AF mode)
It is a switch for switching to and from, and AF when closed
Mode, when it is open, it becomes nonAF mode, and its SAF
The / M signal is input to the terminal (PT6) of the control microcomputer (MC2)
You. Here, in the nonAF mode, the focus adjustment display
The FA mode, in which the lens is regarded as not moving, is also displayed.
There is a MANUAL mode that is not done. (SA / R)
Is an AF unit that performs shutter release after automatic focus adjustment is completed.
Switch (S2) even in the previous mode and before the completion of automatic focus adjustment
Shutter release mode that performs shutter release according to the closing of the shutter
A switch that selectively switches between the
AF priority mode and release priority mode
The SA / R signal is the control microcomputer (MC2) terminal (PT7).
Is input to (MDR2) is a motor for film winding and rewinding.
(MO2) is a driver circuit that controls the control microcomputer (MC
Rotation of motor (MO2) by MM and MN signals from 2)
The direction and the amount of rotation are controlled. MM, MN signal and motor
Table 1 shows the relationship with the operation of (MO2). (EDO) is the program mode / shutter speed priority mode
Exposure control such as mode / aperture priority mode / manual mode
Controls the manually selected mode among the modes
To the camera (MC2) and exposure by that mode
Shutter speed, aperture value, film sensitivity, dew required for control
Information such as output correction value is also transmitted to the control microcomputer (MC2)
It is an exposure control setting circuit for. (BS1) (BS2)
Data line. (LMC) is a photometric circuit whose ANI signal is the reference for A / D conversion.
Voltage, the VRI signal is an analog photometric signal, and
These are the control microcomputer (MC2) terminal (PT7) (PT
8) has been entered. (EXD) is the control microcomputer (MC2)
The proper exposure value (shutter speed, aperture value, etc.)
Is an exposure display circuit that displays
Line. (EXC) is performed in the control microcomputer (MC2)
Calculated proper exposure value (shutter speed, aperture value, etc.) and
Exposure control circuit that controls the exposure according to the set exposure value
And (BS4) is the data line. (FLS) is a circuit inside the electronic flash device attached to the camera
(Hereinafter referred to as the flash circuit), this circuit (FL
S) is the terminal (ST
1) (ST2) (ST3) (ST4) (ST5) and (GND)
Connected to the circuit on the camera side. This flash circuit (FL
The details of S) are shown in FIG. Figure 3 shows the flash circuit (FLS).
, (20) is the main switch, (22) is the power battery,
When the main switch (20) is closed, the power battery (22)
The voltage is boosted by the DC-DC converter (24) and
Supplied to the main capacitor (28) via the ode (26)
You. (GND) is the ground terminal. Mainly capacitors (2
The charge voltage of 8) is monitored by the charge monitor circuit (30).
When the voltage reaches a predetermined level, the charge completion detection circuit
The charge completion signal is output from (32), which is an AND circuit.
It is transmitted to the terminal (ST2) via (34). On the camera side
Via the terminal (ST1) after receiving this charge completion signal.
And outputs a light emission start signal, which trigger circuit
(36) is triggered and the SCR (38) becomes conductive, resulting in a flash discharge tube.
(40) emits light by the energy of the main capacitor (28)
Start to do. This light emission start signal is the light emission start monitor
It is also input to the channel (42) and this emission start monitor circuit (4
2) closes the AND circuit (34) when receiving the light emission start signal.
In the same way, it blocks the transmission of the charge completion signal to the terminal (ST2).
The correct exposure was reached by the photometric circuit (LMC) on the camera side.
When this is detected, the camera emits light to the terminal (ST3).
The stop signal is output and the light emission stop circuit (44) stops this light emission.
Upon receiving the signal, the flash discharge tube (40) stops emitting light. (45) is the focus from the electronic flash device when the subject is dark.
Closed to provide auxiliary lighting for detection of adjustment status
AF assist light switch, when it is closed the terminal (ST5)
It is possible to provide illumination for focus detection with auxiliary light from
The AF auxiliary light OK signal indicating and is output. And the camera
If this side determines that this auxiliary light is required, the terminal (ST
4) The AF auxiliary light emission signal is input to
LED (48) for auxiliary light is turned on.
It is. Returning to Figure 2, (Sx) is the camera sync
H, (FLB) is the light emission that controls the light emission time of the electronic flash device.
It is a control circuit. (LEC) and (LDC) are shown in Fig. 1, respectively.
Like the lens circuit inside the lens and the reading circuit inside the camera
When the lens is attached to the camera, both circuits are
(JB1) to (JB5) and (JL1) to (JL5)
Connected. In the figure, (VL) is the power supply and (RES) is the start of reading.
Signal, (CL) is clock pulse, (DATA) is data,
(G) indicates ground respectively. For the reading circuit (LDC)
Clock pulse from control microcomputer (MC2) pin (SCK)
Is input, and the reading circuit (LDC) is a control microcomputer.
Serial data output from pin (TXD) of (MC2)
Depending on the force signal, the lens data is input to that terminal (RXD).
Enter in serial. (FLM) is the CCD image sensor shown in Fig. 1, (IF1)
Is the interface circuit for driving the sensor, (MDR1) is the
This is equivalent to (114) in Fig. 1 and corresponds to the lens drive motor (MO1).
The driver circuit that controls the drive (ENC) is the same as in Fig. 1.
It is an encoder like. 4 and 5 show the control microcomputer (MC2) of FIG.
It is a flowchart which shows an operation. Below this floater
The operation of the system shown in FIG. 2 will be described based on
Before that, first, the names of the flags used in this embodiment and
The contents are shown in Tables 2 and 3. In Fig. 4, first, the switch (S1) is closed and the terminal
When an interrupt signal is input to (I1), the control microcomputer (MC2)
Start operation. First, in step S1, the release flag
Clear RLF. This flag indicates the shooting mode of the camera.
Continuous shooting (hereinafter called continuous shooting mode) and single shot
This is a flag used to distinguish (hereinafter referred to as single shooting mode).
You. Here, the continuous shooting mode means the switch (S2)
When it is ON, it means that you can take pictures continuously.
Allows you to take a picture with the switch (S2) turned ON once.
Mode. Next, in S2, control microcomputer (MC2) terminal
(Xout) to AF microcomputer (MC1)
Supply CK. Next, multiple serial input / output operations in S3
Repeatedly capture multiple data from the lens circuit (LEC)
Then, the conversion coefficient (KROM) and auxiliary light necessary for automatic focus adjustment
Data for correcting the in-focus position of the visible light and the light of the wavelength emitted by
(ΔIR), backlash data (BKLSH), AF (automatic
Focus adjustment) or FA (focus adjustment status display) focus detection
Open F value for AF to determine whether output calculation is possible
(AFAV0), lens attachment discrimination (LENSF), AF coupler
Presence or absence of axis (AFCF), whether the lens can detect focus (FA
Save each signal of ENL) in the memory in the control microcomputer (MC2)
Keep it. In step S4, setting data for exposure control etc. is set.
Data from the exposure control value setting circuit (EDO) that outputs the data.
Capture data. This includes exposure data and single shots
Includes different continuous shooting modes. Control microcomputer in S5
Set the AFS signal output from the (MC2) terminal (PT1) to "Low".
To This is the interrupt pin (INT of the AF microcomputer (MC1)
The signal is input to 1) and the AF
The microcomputer (MC1) starts operation. Terminal (PT2) at the same time
The INREL signal from is set to "High". This is AF Myco
Is input to the interrupt pin (INT2) of the master (MC1)
However, since the interrupt takes on the falling edge, this interrupt
It does not take. In the flow chart of Fig. 4, S5 to S10, S22 to S3
There is a case where it comes to loop. Passed S5 during the loop
In this case, the AFS signal falls and the INREL signal rises many times.
But the AFS signal is already "Low" and the INREL signal is "Hig"
Since it is h ", there is no interruption to the AF microcomputer (MC1).
Absent. When the operation of the AF microcomputer (MC1) starts,
For the operation of your microcomputer (MC2) to AF microcomputer (MC1)
Setting data and data from the lens are sent serially
It is. The clock from the terminal (SCK) of the control microcomputer (MC2)
Control signal (MC2) terminal (T
XD) to serial 5 bits of 8-bit data, Table 4
Is output, and the AF microcomputer (MC1) terminal (T
XD) is input. Control microcomputer (MC2) is the terminal of AF microcomputer (MC1)
D from (P11) to terminal (PT4) of control microcomputer (MC2)
Start data output by seeing TRQ signal as signal of data request
I do. In the control microcomputer (MC2), this DTRQ signal goes to "L" at S6.
Wait until it becomes "ow", and if it becomes "Low", proceed to S7
Send. AESIO of S7 moves to AF microcomputer (MC1)
Create the data to determine the operation mode and serial data
Is shown in FIG. 5 as another routine.
is there. AESIO routine starting from step S29 in Fig. 5
At first, each signal of AFFL, RDY, DR, AFC, FAEN is included.
Clear the RAM of the fifth serial data of the control microcomputer (MC2).
A. The FAEN signal is determined in S30, S31, and S32. First S
At 30, see the LENSF signal of the data coming from the lens circuit (LEC)
Then, if LENSF = 0, there is no lens
For example, the FAEN signal remains "0" and the process proceeds to S33. Lens attached
If LENSF = 1, the FAENL signal is “1”
If the lens is capable of point detection, proceed to S32 and set the FAEN signal.
Set to “1” and if FAENL signal is “0”, FAEN signal is “0”
Will remain. Next, in S33 to S35, the AFC signal is determined. Terminal at S33 (PT
Check the SAF / M signal input to 6). The SAF / M signal is
Whether to automatically focus the camera lens from the outside
Use the switch to select the AF mode (camera
Detects the focus adjustment state of the shooting lens mounted inside the main body
Automatically adjusts the focus of the shooting lens according to the result.
If it is "Low", it will be non-AF mode. S33
If the SAF / M signal is “0” in, the AFC signal remains “0” in S36.
If it is "1", go to S34 and use the data A from the lens.
Watch the FCF signal. If the AFCF signal is "1" in S34, select the lens
Since there is a coupler axis for AF, the AFC signal in S35
Leave it at "1". That is, the coupler axis for AF on the lens
And the camera operation switch (SAF / M) is closed
The AFC signal becomes “1” when it is on the AF side, and otherwise
Set it to “0”. In S36 and S37, the camera drive mode is set to continuous shooting mode.
If so, set the DR signal to “1”, and if in single shooting mode, DR signal
Remains "0". Next, it is attached to the camera in S38 and S39.
Check the signal from the electronic flash device,
Is attached to the camera, AF auxiliary light switch (45)
If is included, the terminal (ST5) of the flash circuit (FLS) is
Enters the terminal (PT11) in the "High" state, and PT11 = in S38
If it is "Hight", set the AFFL signal to "1" in S39.
This is the AF auxiliary light emission for the AF microcomputer (MC1).
It becomes a signal that it is possible. (Details will be described later.) Set the RDY signal in S40 and S41. Charge of electronic flash device
When the power is completed, the flash circuit (FLS) terminal (ST2)
It is in the “High” state and this is input to the terminal (PT9).
If PT9 = "High" in S40, proceed to S41 and set the RDY signal.
Set to “1”. This signal also uses the auxiliary light described later.
Used for focus detection (hereinafter referred to as fill light AF mode)
You. Then, AF the data sent from the lens in S42
Register for serial transfer to send to the microcomputer (MC1)
Set on the star. In S43, C to start serial transfer
Set the SAF signal to "High". This is an AF microcomputer (MC1)
In response to the DTRQ signal of the serial transfer request from CS
When the AF signal becomes "High", the AF microcomputer (MC1) is serialized.
Start importing data. And 8 bits in S44
Transfer 5 bytes of data to the AF microcomputer (MC1). S45
Then, the CSAF signal is returned to "Low" and the serial transfer is completed. Next, return to the main routine in FIG.
Go to S8. Here, the photometric output from the photometric circuit (LMC)
Incorporates the ANI signal and VRI signal of the reference voltage for A / D conversion
The A / D conversion of the photometric output to obtain the data necessary for exposure calculation.
And prepare it. Next, in S9, for constant light and flash light
Exposure calculation. In the next S10, the control microcomputer (MC2)
Check if the terminal (I2) is "Low"
And see if it was released. Shutter is char
The release button is pressed while the switch (S4) is on.
If the switch (S2) is turned on when the switch is pressed in two steps, the terminal (I
2) should be “Low”. Terminal (I2) is "H"
If it is "igh", it means that the release has not been done, so proceed to S25. S
At 25, the release flag RLF is cleared. And
In step S26, the charge completion signal comes from the electronic flash device.
If there is a charge complete signal,
Goes to S27 to display data for flash light photography (EXD)
To S28, and if the charge completion signal is not received, proceed to S28
Optical shooting data is sent to the display (EXD) and displayed.
Move to 22. And in step S22, switch (S1)
Is the terminal (I1) set to "Low" with the switch closed?
If it is "Low", return to step S3.
Then, the same operation as described above is repeated. On the other hand, at step S22, the terminal (I1) is "High".
If it is determined that the AF microcomputer (MC1)
Stop the operation of. How to stop is AF My
Interrupt the pin (INT1) of controller (MC1) with AFS signal
You. Start of AF microcomputer (MC1) by AFS signal and AF
In order to distinguish it from the interruption for stop by S signal
In addition, the stop interrupt is restarted within 50 μs after falling.
To stand up (see FIG. 17 (B)). What
Flow only for metering When an interrupt occurs from S26 to S28
Since the AFS signal is “Low”, the stop signal is once “Hig
Release after "h", flow of release S11 ~ S21
The AFS signal is “High” when interrupted from
The stop signal is the trailing edge. To this interrupt
Therefore, the AF microcomputer (MC1) enters the stop mode and
The dynamic focus adjustment operation also stops. Exposure of the display (EXD) on the S24
The display is turned off and the control microcomputer (MC2) stops operating. Next, repeat photometry, and while the flow is looping
When released, the terminal (I2) becomes "Low". Then
After checking S10, proceed to S11. Next release flag
Check RLF and if it is 1, proceed to S26. This is a single-shot mode
If you have been released once in the card, you can release in S21 to S22.
Lag RLF is set to 1, release button 2 steps
With the switch (S2) turned on, press
Will not be released again. On the other hand, turn on the switch (S1)
If you turn off the switch (S2) while
From S10 to S25, release flag RLF is cleared
You. That is, when the switch (S2) is turned on again next time
Will be released from S11 to S12. Next, in S12, the AF priority input to the terminal (PT15) /
Check the release priority switching signal. AF here
Priority mode is automatic even if the switch (S2) is turned on.
Release the focus only after focusing is completed by adjusting the focus.
Release priority mode is the automatic focus adjustment.
If switch (S2) is closed even if it is out of focus
It is a mode to release any time. SA / R signal on S12
If it is "High" (SA / R = 1), it becomes AF priority mode and goes to S13.
Go ahead and check the AFE signal. This is the AF microcomputer (M
The signal output from the C1) terminal (P12)
When (MC2) detects the focus and determines that it is in focus, “Hig
It is a signal that becomes h ". S13 determines whether or not it is in focus.
Will be. And if it is in focus, the AFE signal is
It is "1" and goes to S14 to enter the release. AFE signal at S13
If is “0”, it goes to S26 and is not released. Meanwhile in S12
If in release priority mode, proceed to S14 and release
You. SA / R signal to check on S12 is attached to the camera
Signal according to the manual selection of the switch
This also works with a self-timer switch (not shown).
When the self-timer is activated, the AF priority mode
Even if there is a switch in the
Switch. Release priority mode during self-timer
It will be. When using the self-timer, S14 and S
Wait time for self-timer (not shown) during 15,
Wait for 10 seconds. In addition, the terminal (PT15) has a
The switch (SA / R) provided on the chassis is connected.
However, you can take this out of the camera body and
Roller (eg, controllable back cover) or Rimoco
You can leave it to the receiver for your computer. Next, in S14, is the terminal (PT2) for the AF microcomputer (MC1)?
Releases an INREL signal that the shutter has been released. INREL signal is AF
It is input to the connection terminal (INT2) of the microcomputer (MC1),
When this signal falls, an interrupt occurs and the AF
Con (MC1) jumps to the release routine. And automatic
Even if the lens is being driven during focus adjustment, stop the operation and
The indication is also erased and the release is completed. Next Sally in S14
AFS in preparation for the end of the operation and the start of operation of the AF microcomputer (MC1)
Keep the signal "High". Then move to step S15
A charge complete signal is being input from the flash circuit (FLS).
Whether it is input or not is determined by looking at the terminal (PT9).
If so, go to S16 to control the exposure control data for flash photography.
It must be sent to the circuit (EXC) and the charging completion signal must be input.
For example, in S17, set the exposure control data for the constant light to the exposure control circuit (EX
Send to C). Then, the exposure control operation is started in S18. When the exposure control operation is completed, the film is automatically wound in S19.
Perform a motion. Then, the release button described above in S20 and S21
Set Lag RLF to "1" in single shooting mode and proceed to S22.
No. And the switch (S1) is still closed and controlled
If the terminal (I1) of the microcomputer (MC2) is "Low", step
Go to S3 to capture data and perform calculation / display operations.
If the switch (S1) is not closed, return the above-mentioned
After moving to step S23 and performing the same operation as above,
The control microcomputer (MC2) stops operating. With the above, the control
This concludes the explanation of the flow of the icon (MC2). FIG. 6 shows the interface circuit (IF1) of this embodiment.
FIG. 3 is a circuit diagram showing details of the embodiment. This circuit is explained below.
The operation will be described together with the operation. A switch that is closed by pressing the shutter release button one step.
ON of the switch (S1) is detected by the control microcomputer (MC2).
Then, the AF controller responds to the signal from the control microcomputer (MC2).
The icon (MC1) starts the focus adjustment operation. First, the IOS signal from the AF microcomputer (MC1) goes low.
From the AF microcomputer (MC1) to the interface circuit (IF
1) In the direction in which the signals of NBφ to NB3 are output toward
The door opens. And CCD image from AF microcomputer (MC1)
The pulse-shaped integration clear signal ICG of the sensor (FLM) is NB2
It is output as a signal, which allows the CCD image sensor (F
Each pixel of LM) is reset to the initial state and CCD
Brightness monitor circuit (MC) built in the image sensor
The output AGCOS is reset to the power supply voltage level. AF
At the same time, the microcomputer (MC1) receives a "Hig" from the terminal (NB5).
The shift pulse generation enable signal SHEN of h "level is output.
Then, as soon as the integration clear signal ICG disappears, the CCD image
Integration of photocurrent starts at each pixel in the image sensor (FLM)
At the same time, the output AGCOS of the brightness monitor circuit (MC) is
CCD image starts to decrease at a speed according to the image brightness
Reference from the reference signal generation circuit (RS) built into the sensor
The signal output DOS is kept at a constant reference level. AGC control
Roller (406) compares AGCOS with DOS and
How much AGCOS is against DOS within 100 msec.
Depending on how low it is,
Control the gain. In addition, the AGC controller (406) is
After the rear signal ICG disappears, AGCOS responds to DOS within a predetermined time.
When it detects that the voltage has dropped below a predetermined level,
Output "High" level TINT signal. This TINT signal is
Shift through AND circuit (AN) and OR circuit (OR1)
It is input to the pulse signal output circuit (410) and responds to this.
A shift pulse SH is output from the lever circuit (410).
Also, the TINT signal passes as an NB4 signal through the OR circuit (OR2).
Taken into the AF microcomputer (MC1), the AF microcomputer (MC1)
This signal informs the completion of integration of the CCD image sensor.
You. This shift pulse SH is applied to the CCD image sensor (FLM)
When input, the photocurrent integration by each pixel ends,
The CCD image sensor shift resists the charge according to the integral value.
Data is transferred in parallel to the corresponding cells of the data. On the other hand, AF My
Based on the clock pulse CL from the controller (MC1),
180 ° out of phase from the sensor drive pulse generation circuit (412)
Two sensor drive pulses φ1 and φ2 are output, and CCD
Input to the image sensor (FLM). CCD image
The sensor (FLM) uses φ out of these sensor drive pulses.
In synchronization with the rising edge of 1, the power of each pixel of the CCD shift register is
Form the image signal by discharging the load one by one from the end in series
OS signals are sequentially output. This OS signal is the corresponding pixel
The lower the incident light intensity is, the higher the voltage becomes.
Road (414) subtracts this from the reference signal DOS above,
(DOS-OS) is output as a pixel signal. In addition, clear integration
After the disappearance of the signal ICG, the TINT signal is not output and the specified time elapses.
If it does, the AF microcomputer (MC1) will change from the terminal (NBφ) to “Hig
The h "level shift pulse generation command signal SHM is output.
Therefore, a predetermined time has passed after the integration clear signal ICG disappeared.
Even if the AGC controller (406) outputs "High" level TIN
If the T signal is not output, this shift pulse generation instruction
In response to the command signal SHM, the shift pulse generation circuit (410)
Generates a shift pulse SH. On the other hand, in the above operation, the AF microcomputer (MC1) is the CCD
For the 7th to 10th pixels of the image sensor
Sample hold when the corresponding pixel signal is output
Output signal S / H. This part of the CCD image sensor is dark
An aluminum mask is applied for the purpose of removing the output component, and the CCD
The light receiving pixels of the image sensor are in a light-shielded state.
It is the part that on the other hand. By the sample hold signal,
The peak hold circuit (416) is a CCD image sensor
Keep the difference between the output OS and DOS corresponding to the mimask part,
This difference output and the pixel signal are sent to the variable gain amplifier (408).
Is entered. And the variable gain amplifier (408) is
Signal and its difference output is controlled by the AGC controller (406).
Amplify with the gain that is controlled, and the amplified output is A / D converted
Pixel signal data after A / D conversion by the device (418)
Then, it is taken into the AF microcomputer (MC1). When the pixel signal data is captured, the AF microcomputer (MC
The signal IOS from 1) becomes “High”, and the interface
From the circuit (IF1) to the AF microcomputer (MC1) NBφ ~ NB
The gate opens in the direction where the 3 signal is output. A / D conversion circuit
A / D conversion of (418) is performed with 8 bits, but AF myco
The upper and lower 4 bits are transferred to the master (MC1).
The switching timing of the upper and lower 4 bits is EOC
It is done by signals. The EOC signal is the same as the TINT signal or
Or is taken by the circuit (OR2), and AF myco as NB4 signal
Input to the master (MC1). AF microcomputer (MC1) is this NB
Depending on the timing of the “High” and “Low” states of the four signals
Pixel signal data will be fetched from NBφ to NB3.
Also, the pixel signal data is taken in from NBφ to NB3.
Is started from the AGC controller (406) before the
Data is also taken in. This AGC data is
As will be described later, it is used as a judgment level. In addition,
Output from the terminal (NB1) of the AF microcomputer (MC1)
The Sφ signal is used to initialize the CCD image sensor,
Signal for switching between normal operation for integrating the subject light
It is. After this, the AF microcomputer (MC1)
Are sequentially stored in the internal memory.
When the data corresponding to the pixel is saved, it is used
The amount of defocus and its direction according to a predetermined program.
While calculating and displaying them on the display circuit,
Drive the lens drive device according to the amount and direction of defocus.
Move to adjust the focus of the taking lens. In this embodiment, the product of the CCD image sensor (FLM)
Minutes, data dump, and focus detection calculation are repeated
The accuracy is improved. 7 to 16 show the operation of the AF microcomputer (MC1).
It is a flowchart. First, this flow is shown in Tables 5-1, 2 and 3.
-Indicate the flags used in the chart. There are four starting points for the operation of the AF microcomputer (MC1).
There is an entrance. In other words, when the power is turned on, that is, the AF camera shown in FIG.
When the RES signal arrives at the terminal (CLR1) of the icon (MC1), it starts
"RESET" (step # 1 in Figure 7)
AF operation (automatic focus adjustment) from the terminal (PT1) of the icon (MC2)
Operation) or FA operation (focus detection operation)
The AFS signal is input to the pin (INT1) of the AF microcomputer (MC1).
"INT1S" started by the
# 8), AF from the control microcomputer (MC2) terminal (PT2)
Issued to the microcomputer (MC1) to inform the release
The INREL signal is input to the AF microcomputer (MC1) terminal (INT2).
"INT2S" that starts when the
Step # 27), the PS signal from the encoder (ENC) is AF
By inputting to the terminal (INT3) of the icon (MC1)
This is the "INT3S" (step # 252 in Fig. 16) to start.
Hit four of these. Main flow of automatic focus adjustment operation
The routine starts from “INT1S” in step # 8 of FIG.
Step # 33 “AF START” in FIG. 9 and step 10 in FIG.
Go through “CDINTS” on page # 44 and follow step # 86 on FIG.
It flows to "MAIN1". There are 3 main categories from "MAIN1"
And started from "LOWCON" in step # 165 in Figure 13.
When the contrast of the subject is low
Start with the flow and "LSAVE" in step # 238 of Figure 14.
Auxiliary light AF mode (when focus detection is too dark and
A mode for illuminating the subject with the LED (48) for auxiliary light and detecting the focus.
Flow) and step # 91 in Figure 11
The contrast of the subject starting from "NLOC1" is high enough
This is the flow for normal AF mode. Also with a subroutine
Control starting with "SIOSET" in step # 241 of Fig. 15
Input and process serial data from your microcomputer (MC2)
Flow and the "CKLOCK" of step # 196 in Figure 14
There is a flow for determining the lens end position starting from
You. In the following, based on this flow chart,
Automatic focus adjustment operation (hereinafter referred to as AF operation) and focus detection operation
The work (hereinafter referred to as FA operation) will be explained. First, the power is turned on in response to the closing of the power switch (MNS).
The reset signal RES is output from the on-reset circuit (POR).
This reset signal causes the control microcomputer (MC2) to reach a specific number.
Start moving from the ground. At the same time as the control microcomputer (MC2)
The clock pulse CK is output from the terminal (Xout). this
Is input to the pin (Xin) of the AF microcomputer (MC1). control
Reset under the clock pulse CK from the microcomputer (MC2)
When the input signal RES is input to the terminal (CLR1), the AF microcomputer
(MC1) starts from "RESET" in step # 1.
Step # 1 is all flags used in the flowchart
You have cleared all of Gu (Tables 5-1, 2 and 3). Each
The lag is set to "0" in the initial state. Step
From control # 2, control microcomputer (MC2) to AF microcomputer (M
C1), to stop AF or FA operation,
The stop signal as described above is output, but this stop command
When the decree comes in, go through this step # 2. Step # 2 (hereinafter "step" is omitted) is the end
The terminal (ST4) signal input to the child (P13) is in the "Low" state
The illumination by the auxiliary light LED (48) is turned off.
This is the switch (S
1) is released to emit light when the focus detection operation is stopped
This is to cancel. # 3 is the focus in AF or FA operation
The adjustment status display or defocus direction display is turned off.
Here, set terminals "P32" to (P30) to "High" respectively.
Output and erase, but this is to put each terminal in input mode
It is done by. Even if you turn off the display in this way,
The output state that was previously stored is stored in the output port register.
If you put this port in output mode,
The contents can be displayed again. We will use this later. In # 4, the lens is stopped. In addition, here
I will not put it. This is when the AF microcomputer (MC2) is not operating
Makes it relatively easy to move with your hands without braking the lens.
In addition, I was thinking about saving electricity. AF microcomputer
(MC2) to the driver circuit (MDR1)
Control motor drive signals MC, MR, MF, MB
As shown in Table 6, the terminal (PO2)
By setting the signals MR, MF, and MB of ~ (PO0) to the "High" state,
The electric brake is not applied and the motor (MO1) is de-energized.
The lens stops. In # 5, during release operation or auxiliary light AF mode
When a stop command comes from the control microcomputer (MC2),
To release these conditions in the future, release flag (No. 5-1
Release F in the table and auxiliary light mode flag (in Table 5-2)
This is a step of clearing the fill light mode F). # 6
Determines the interrupt state for the start of the next flow
The operation of the AF microcomputer (MC1)
After stopping, from INT1S of # 8 or INT of # 28
It allows starting from 2S. But in fact, the turtle
The shutter release button (not shown)
The switch (S1) in Fig. 2 is closed and the control microcomputer
(MC2) interrupts INT1 and the shutter release
Switch (S2) is closed by pressing the button
The release interrupt is applied to T2.
Therefore, the next flow chart starts with # 8 “INT1S”
become. In # 7, the AF microcomputer (MC1) goes into stop mode
enter. What is stop mode? The AF microcomputer (MC1)
To stop the operation. At this time,
As for the state, only P13 is "Low" and the others are "High".
The LED for light illumination (48) goes off, and the LED for display (LEDL) (LED
M) (LEDR) is also off, and the lens is
The interface circuit (IF1) is stopped
State. In this state, the next control microcomputer (MC2)
Waiting for an interrupt start from the
You. Next is the second entrance to the above-mentioned flowchart #
Move on to the explanation of "INT1S" in 8. Split from this "INT1S"
Included start during all flow of AF microcomputer (MC1)
Interrupt is not disabled and interrupts at any time
Accept only. This entrance serves three interrupts.
doing. One is AF or FA operation start, the second is AF
Or, stop the FA operation, and the third is the focus adjustment state immediately after the release.
There are state display return operation and operation in transfer mode. these
The three distinctions will be described. The first and second distinction is the edge
It is distinguished by the input signal to the child (INT1). Sand
Then, as shown in Fig. 17 (A), AF or AF is used to start FA operation.
S signal falls from "High" to "Low", "Low" is 50μs
It is necessary to continue above. About stopping AF or FA operation
As shown in Fig. 17 (B), the AFS signal changes from "High" to "Low".
After falling to, within 50μs from "Low" to "High"
Need to get up to. Third action
Use the flag to distinguish from the first normal AF or FA operation.
I use it. If a release interrupt described later comes, release
Release the release flag (release F) in the flow
In the start of the next "INT1S"
It is distinguished by checking whether there is. Including these
First, description will be sequentially given from # 8. # 8, INT at the start
Disable interrupts other than 1 and INT2. Forbidden
Is the event counter interrupt of INT3 and the flowchart
Although not shown above, the blinking period of the display LED is determined.
There is an internal timer interrupt. # 9 is using
I am about to clear the flag, but AFSINR from # 15
Two flags that are used as the previous state in the
Wachi scan prohibition flag (scan prohibition F in Table 5-1)
And the previous low control flag (previous low control F in Table 5-1)
Has not cleared. Do not clear the scan prohibit flag
The reason is that the switch (S1) is turned off even in continuous shooting mode.
Unless you use the single shot mode, the
Stroke is sufficient for focus detection, and the defocus amount can be calculated.
Have you done it, or did a low-conscan once
I didn't let a new low contrast scan
I have left this flag in place. In addition, last time low confra
It is AFS after release starting from # 15 that does not clear the group
In the “AFSINR”, which is an interrupt flow due to a signal,
If the switch (S1) remains on after the release,
The display of the focus detection calculation result before the release is restored.
Not cleared to keep it. That is, release
In the middle, the LED defocus direction display is turned off once.
And when the release operation is finished, it will be displayed again
Therefore, the LED blinks with low contrast.
Leave a flag to determine if it was showing
Put it down. At the next # 10, I waited for 50μs and entered "INT1S".
Whether the interrupt was an AF or FA stop interrupt #
I'm going to see it at 11. Here, the AF microcomputer pin (MC1) terminal (I
If the signal in NT1) is as shown in Fig. 17 (A)
For example, since the AFS signal is "Low", proceed to # 12 and proceed to Fig. 17
If it is a signal like (B), the AFS signal becomes "High".
Proceed to the # 2 stop mode process flow "STPMD" A
The operation of the F microcomputer (MC1) stops. Release at # 12
Whether to proceed to the subsequent AFS signal interrupt flow "AFSINR"
Distinguish whether it is due to the interrupt of the first AFS signal. sand
If the release flag (release F) is on, #
Proceed to 15 “AFSINR” and the release flag (release F)
If not, proceed to the next step # 13. AF in # 13
Initialize each pin of the microcomputer (MC1).
That is, the auxiliary light emission terminal in auxiliary light AF mode (P13)
Only "Low" and other terminals "High". Also
The AF microcomputer (MC1) is now in stop mode
From the state where it is included, start this step by interrupt start
Each terminal remains in the same state when
Only the terminal (P13) remains "Low" and the others remain "High".
You. Next, in # 14, do not clear in # 9
Clear the stop flag and the previous low-con flag again.
Good. Then proceed to # 33 “AF START”. After this
The point adjustment state is detected and the lens is driven according to the result.
The focus adjustment status display. What is the focus adjustment status display?
LL and LR of input signal of indicator LED (LEDL) (LEDM) (LEDR)
Is “High”, LM is “Low” and the green LED is turned on.
Yes, if you see this display and close the switch (S2),
Performs autofocus with (S1) and (S2) closed
If the focusing operation is completed, the control microcomputer (MC
2) starts the release operation and at the same time AF microcomputer (MC1)
The interrupt signal INREL that informs you that you have released
Is output. The AF microcomputer (MC1) has a pin (INT2).
Since this is received, a release interrupt is applied. This is
This is the flow starting from "INT2S" in # 27 of FIG. In # 27, interrupts other than INT1 and INT2 are first disabled.
Next, at # 28, set the signal from the terminal (ST4) to "Low" to assist
The light illumination is turned off. This is only in release priority mode
This is a necessary step that is not necessary in AF priority mode.
You. Because in AF priority mode
This is because the auxiliary lighting is already off.
# 29 is also for lenses that are required only in release priority mode
This is the step to stop the motor (MO1). here
Then, the motor (MO1) is not braked. this
Is in focus state when in release priority mode
The release is not always done, but the release is made before that.
It is possible that the lens moves toward the in-focus position.
When the shutter is released while the
Apply a brake on (MO1) to stop the lens and release.
Rather than stopping without braking, inertia
Move the lens with and move it slightly near the in-focus position.
It's often the case that you can get good photos when you are released.
That's why. In the next # 30, focus adjustment status display or default
Turn off the waste direction display. This is a single-lens reflex camera
While the shutter is released, the mirror will rise and the viewfinder will
It's black. Even if only the display is attached here, the meaning is
Not only that, but during film exposure, unnecessary light is emitted from the camera.
This is because it is not desirable that it is output internally. Next, at # 31, set the release flag (release F) to "1".
Then, the release is left as a flag. later#
At 32, INT1 or INT2 interrupt wait. Continue here
Then, when the release interrupt comes, from "INT2S" of # 27 again.
Begin. Switch with the switch (S1) in Fig. 2 closed.
This is the case when the opening and closing of the chi (S2) is repeated,
It says that the lens is fixed at the in-focus position without being driven.
This is the same as repeating the release with the AF locked.
is there. After closing the switch (S2) and releasing,
If the switch (S1) remains closed, the control microcomputer (MC
As shown in the flow chart in 2), the AFS signal is again sent to the AF controller.
It enters the icon (MC1) and INT1 interrupt occurs. Do
And the flow from "INT1S" of # 8 is the release this time.
Since the flag (release F) is set to 1, # in FIG.
Proceed to 15 “AFS INR”. Steps from # 15 will come later
explain. Fifth after closing the switch (S2) and releasing
Open the switches (S2) and (S1) together as shown in the flow chart.
If you release it, the control microcomputer (MC2)
AF microcomputer for AFS signal for stop of icon (MC1)
(MC1) is entered and INT1 interrupt occurs. After that
AF microcomputer (MC1) is in stop mode
Enter and wait for the next interrupt again. Start interrupt by AFS signal after release here
Enter the description of the flow. The entrance is "INT1" of # 8 in Fig. 7.
"S", but this time the release flag RLF is 1.
Therefore, branch off at # 12 and proceed toward "AFSINR" at # 15. This
First of all, this release has passed this release
Reset the flag (release F). Then control with # 16
Input serial data from the microcomputer (MC2). here
Inputting serial data with the AF microcomputer (MC1)
To check if the operating mode of has changed
is there. The flow coming to "AFSINR" starting from # 15 is
This flow comes after the release, but this release
Operation mode (that is, AF mode / FA mode)
Mode / MANUAL mode or AF mode.
Mode / separate shooting mode)
The behavior must be changed according to. # 16 is this model
To input the information of the mode from the control microcomputer (MC2)
It is a step. This # 16 is a subroutine of Figure 15
The flow of "SIOSET" starts from # 241. here
Checks each mode and operates the mode flags
You. First of all, in # 241, go to the control microcomputer (MC2).
Set the DTRQ signal of the child (P11) to “Low” and set the serial data
Request. Then, the control microcomputer (MC2) sees the DTRQ signal.
It sends serial data as shown in Table 4. AF My
On the controller (MC1) side, input this serial data with # 242.
Then, set the DTRQ signal to "High" in # 243. Serial communication
The data sent by the communication is AF open F value AFAV0,
Drive defocus amount-pulse count conversion coefficient KRO
M, AF correction data for auxiliary light ΔIR,
Data BKLSH for anti-crash correction, auxiliary light OK signal AFFL,
Flash charging completion signal RDY, continuous shooting / single shooting mode signal D
R, AF coupler with axis lens signal AFC, FA enable / disable signal FAEN
9 kinds of. Each information is sent by serial communication
Then, it is saved in the RAM of the AF microcomputer (MC1), and if necessary
Then, the contents of the RAM will be referred to. Use of each information
Regarding the use, we will explain it later in the flowchart explanation
I do. From # 244, check each mode. For # 244, for AF
Check the open F value AFAV0. Used as a light receiving element for focus detection
There is a limit of possibility, and if the open F value of the lens is small, the exit pupil
The incident light to the light receiving element for focus detection is eclipsed, and a correct focus is obtained.
The detection calculation cannot be performed. If the focus cannot be detected
A set of converter lenses etc. even if no body lens is made
The focus detection limit F value may be exceeded due to the alignment.
There is also. For example, the focus detection limit of the light receiving element for focus detection
If the field F value is 7.0, the lens with an open F value of 5.6 for AF is in focus
Detectable, but with a double teleconverter attached to it
Then, if the F value becomes 11.2 and focus detection becomes impossible,
That is what it means. The open F value for AF here is the lens
Although it is an F value when the aperture of the zoom is not throttled,
A lens whose F-number changes due to zooming and focusing
In the case of, the light receiving element for focus detection is not removed
Zooming, because it is information to judge that
If the F value changes due to focusing, the smallest opening
Free F value is included. In # 244, open F value for AF AFAV0 is F value
If it is larger than 7.0, proceed to # 251, AF mode
Set the flag (AF.F in Table 5-1) to "1" and then use # 250 to FA
Also set the mode flag (AF.F in Table 5-1) to “1” and set the MANUAL mode.
Set the flag state that it has become a mode and go to # 16 in FIG.
Go. Open F value for AF If FAV0 is smaller than 7.0, set to F value
As for the lens that can detect focus, proceed to # 245.
No. With # 245, it is possible to check whether AF mode has been used so far.
To check. If the AF mode flag is "0"
Since it was in AF mode, proceed to # 246 and press "1".
If it is not AF mode, it means FA mode or MANUAL
Check the mode. # 246 has AF coupler shaft
In the step of checking if there is an AFC signal,
If it is “1”, there is an axis, so proceed in AF mode as it is, and at “0”
If there is no axis there is no automatic focus adjustment
Go to # 247 and set "1" to the AF mode flag. AF power
The puller axis is the distance from the motor (MO1) in the camera body.
Shaft saw for transmitting power to the focusing mechanism.
And In # 248 of Fig. 15, it is checked whether or not the lens can detect the focus.
If the focus is detected and the focus can be detected, set the FA flag (FA.F) to "0".
Then the FA mode is set, and if focus detection is not possible, set the FA flag to "1".
And the MANUAL mode is determined with the AF flag "1".
become. Here, when FAEN = 1, the camera body
The lens is attached to the
It's that. Other than this, FAEN becomes "0"
I have. Lenses that cannot detect focus have a small F value for AF.
A lens such as a reflective telephoto lens that cannot detect the focus even if the
Shift lens and burr soft
It is a special lens such as a lens. This subroutine
So, I have not seen the change from FA mode to AF mode, but this
Will be seen in step # 86 in Figure 11 below. Now, the subroutine in Fig. 15 returns to the next step.
Go to # 17. Check whether the AF mode is selected here,
Mode, step # 19, if not AF mode #
Check whether it is FA mode at 18, and if it is not FA mode,
If so, go to the # 36 “MANUAL” flow. In # 19, see the previous status to restore the display
# 20 if the state before the start was low contrast
To restore the low contrast display. Focus on the low-con display
Three LEDs for adjustment status display (LEDL) (LEDM) (LEDR)
Turn on and off both ends (LEDL) (LEDR) at 2Hz.
It is a display that returns and blinks. Low contrast
If so, the focus adjustment state or the direction display is restored at # 21. Les
The display contents up to the time before the Leeds are saved in the display register.
Since the boat is in output mode, the previous display
Returns. With # 22, depending on the AF mode flag (AF.F)
To check if it is in AF mode and not in AF mode.
If in FA mode, go to # 39 “CDINTA” and repeat focus.
Perform point detection. Therefore, in FA mode, the second
If the switch (S1) in the figure is on, focus detection continues and
It means to show. In AF mode, DR signal with # 23
See if the single-shot mode or continuous-shot mode based on
If there is a single shooting mode, use # 25 to send the AFE signal from the terminal (P12).
Set to “High”. This signal indicates that the autofocus operation has ended.
Information that the focus is in focus and the release is possible
Is to inform the control microcomputer (MC2). Shutter release button is pressed up to 2 steps
If the control microcomputer (MC2) is in AF priority mode,
If this signal is "High", release is permitted and "L"
If it is ow ", the release is disabled.
If it is a mode, after focusing and releasing once, it is as it is
While pressing the release 1-step (switch (S1) ON)
If the interrupt such as AFS signal is not input, “AFSIN from # 15
Follow the flow of "R", and the AFE signal becomes "High" at # 25
Then, if you change the position of the subject as it is, even if it is out of focus
Release can be done even in a state. At this time, in the next # 26
Release interrupt or stop of AF microcomputer (MC1)
The lens is driving because we are waiting for an interrupt
Absent. This sequence is called "AF lock"
Can be. On the other hand, if it is the continuous shooting mode, proceed from # 23 to # 24
Check if it is in mode. In auxiliary light AF mode
If so, it is in continuous shooting mode and auxiliary light AF mode
Therefore, automatic focus adjustment and release are allowed only once.
If you release, the next release and automatic focus adjustment are prohibited.
You. Therefore, do not set the AFE signal to "High" and proceed to # 26.
No. In continuous shooting mode other than fill-in AF mode,
Proceed to "CDINTA" to enter the next focus detection. The flow starting from "AF START" of # 33 in Fig. 9 is # 14
Fly away from. In # 33, the subroutine "SIOS
ET "is called. AF microcomputer (MC1) operation star
Various data from the control microcomputer (MC2)
Receive and decide the operation mode. Mode decided at this time
Is automatically stored in the mode register RG in the AF microcomputer (MC1).
Is written to. This register RG will change mode later.
It is for checking whether or not. # 34, #
In 35, check the operation mode, AF mode / FA mode
If it is neither MAMUAL mode, proceed to # 36.
In # 36, the driver circuit (MDR
Signal for 1) MR, MF, MB are all set to "High" for lens
Stop the motor (MO1). # 1 is INT1, INT2
Stop all other interrupts and loop to # 33 and repeat
You. When in AF or FA mode, proceed to # 38 and CCD image
Sensor (FLM) is initialized and the sensor is warmed up.
Keep up. Use # 39 to set the pin (P20) IOS signal
The interface circuit (IF1) is set to “Low” by A
Set to the mode to input the signal from F microcomputer (MC1)
And integrate the output of CCD image sensor (FLM)
It is also to set the mode for doing. And the second
Go to # 44 in Figure 10. Here, the 1-cut shot flag (first
5-1 1-cut shotF), that is, integration time exceeds 50ms
Clear the flag that indicates whether or not Terminal at # 45
Set the AFE signal output from (P12) to "Low". This
This is because the loop repeats after focusing
You. This is a signal that the AFE signal becomes "High" when it is in focus.
Since it is a No., it is set to "Low" in preparation for the next calculation.
You. Next, at # 46, output the NB2 signal from the terminal (P23) and CC
Start integration of D image sensor (FLM). # 47 later
To correct lens movement during focus detection calculation and integration
Read the lens drive pulse count value EVTCNT of
Save it to T1. # 48, CCD image sensor (FL
Set half of the maximum integration time of 100 ms of M) to 50 ms.
In Figure 9, parallel to "CDINTA", starting from # 40 "CD
There is an INT and there is another flow up to # 53.
In the flow for the function called "integral integration"
Details of this will be described later. Continue from # 48 to "TINTφ" from # 55. # 55 in
Allows all interrupt routines. # 56 in
Checks the NB4 signal coming into the terminal (P25) and
If w ", the CCD image sensor (FLM) is the brightness of the subject
Since it is a signal that the integration according to
Go to "CDINT2". If "High", integration continues
Therefore, proceed to # 57 and set the maximum integration time that was initially set.
Check if has passed. That is, # 48
50ms set in #, 40ms set in # 53, or
Whether 50ms of # 61 or 150ms of # 62 set earlier has passed
Look, if not, go back to # 56 and repeat the loop
You. After the maximum integration time, proceed to # 58. Where 1-cut sh
If the ot flag (1-cut shotF) is not "1", proceed to # 59.
Set "1" to this flag. # 1-cut shot when going to 63
Since the flag is "1", after passing through this # 59
Or, if you passed # 49. # 60 with 200ms flag
Check if (200msF in Table 5-2) is "1",
If it is not "1", the maximum integration time is usually 100ms.
Therefore, the remaining 50ms of the integral 50ms set in # 48 is set in # 61.
And go back to # 56 to check the NB4 signal. # 60 in 2
When the 00ms flag is “1” (This is in the later flow
Maximum integral only under special conditions
If the time is set to 200ms) is the product set in # 48
Set the remaining 150ms for 50ms and go back to # 56 to get the NB4 signal
Check. Sufficient output from CCD image sensor (FLM)
If you get up to, go from # 56 to # 64. Output is enough here
If the maximum integration time has passed
It is time to move from # 58 to # 63. #
In 58, the 1-cut shot flag is "1" this time, so be sure to #
Proceed to 63, and from the terminal (P21) to the interface circuit (IF
Output the forced integration stop signal NB0 to 1). And # 64
To "CDINT2". The steps from # 64 to # 67 are
This is the flow of “convolution integration”, and the explanation will be given later. # 68 prohibits interrupts other than INT1 and INT2
However, this is an interruption when data is taken in after this.
Because I try not to get in the wrong timing when I enter
It is. INT1 and INT2 interrupts from the beginning of the main flow
Don't ban it as it will start. # 69 was previously in CCD integration
When the auxiliary light LED (48) is on, the terminal (P13) ST
4 The signal is turned "Low" and turned off. # 70 is for the terminal (P20)
Interface circuit (IF1) with IOS signal set to "High"
Is switched to the data output mode. I.e.NB4-N
The B0 signal becomes a line for data transfer and
Data from the source circuit (IF1) to the AF microcomputer (MC1)
Will be able to do it. 8-bit data as data
Data is sent, but in 4-bit parallel from NB3 to NB0,
It is sent in two steps, and the timing is taken by NB4
When it is “High”, the upper 4 bits data is NB4 is “Low”
Sometimes the lower 4 bits of data are sent. AF microcomputer (MC
1) recreates the data sent by dividing it into upper and lower
Take in. So, first, AF from the interface circuit (IF1)
AGC data is sent to the microcomputer (MC1) as shown in Fig. 6.
Numerical value of gain determined in AGC controller (406)
(1 time, 2 times, 4 times or 8 times)
AGC data) is sent, and this is AFed at # 71 in Fig. 10.
Take it into the microcomputer (MC1). By the way, CCD image set
Output of these data after the integration of the sensor (FLM) is completed.
The interface timing (IF1) determines when to come
The AGC data was acquired immediately after the integration was completed.
I have to put it in. AGC data is output for a certain time
And as soon as this is done, the CCD image sensor (FLM)
Pixel data is also sent at a fixed timing. This
Just 72 hours after capturing the AGC data of
As shown in, the lens drive pulse count at the end of integration
Read the value EVTCNT and save it in memory T2. Integration
It corresponds to # 47 at the beginning. Immediately after this, in # 73, the pixel image of the CCD image sensor (FLM)
Enter the data and save it in the memory of the AF microcomputer (MC1).
It is. The next # 74 is the lens that is driven while the lens is being driven.
Hits the end at infinity or the nearest end
Is a subroutine that checks
Is the closest end), the lens drive motor
Stop (MO1) or reverse drive.
For the subroutine "CKLOCK", see Fig. 13 later.
explain. In # 75, serial communication with the control microcomputer (MC2)
Receive data for driving the signal lens. # 33 in one
Even though I got the data once again, serial communication again here.
Believe that you don't go through # 33 in a repeating loop.
Therefore, if the conversion coefficient KROM for lens
Or (depending on the lens, focusing, zooming, etc.)
Depending on), the mode of microcomputer operation has changed
Then the data changes, so to see this repeatedly
There is a "SIOSET" on # 75. Then take # 76 and # 73
Using the CCD image sensor (FLM) data
Perform point detection calculation. The applicant is responsible for this method.
In the method described in JP-A-59-126517.
Although the focus amount DF is required, it is not related to the gist of the present invention.
Since it is a person in charge, the description thereof will be omitted. From # 77 to # 85, the brightness of the subject is above a certain level
Check the level of AGC data by checking whether it is also low
Deciding. Here, the brightness of the subject is below a certain level
The time is called low light. # 77 low light flag
Put "1" in (Low Light F in Table 5-2). # 78
If the electronic flash device is attached to the camera,
Sent by serial communication if the switch (44) is closed
Since the AFFL signal coming in is "1", proceed to # 80.
That is, if the auxiliary light emission enabled state is set,
AGC data is doubled in the mode of large integration time 100ms,
When it was 4 times or 8 times, it became a low light judgment and # 86 “MA
Go to "IN1" and pass # 80 when AGC data is 1x.
Then clear the low light flag to "0" at # 85 and go to # 86.
move on. In the mode where the maximum integration time is 200 ms, all are low.
It becomes a light and goes from # 80 to # 86. On the other hand, if the auxiliary light emission enabled state is not set,
Moves from # 78 to # 81 and the maximum integration time is 100ms
In case of AGC data is 4 times and 8 times, # 82, # 83,
# 86 results in low light judgment and 1x AGC data
When it doubles, it moves from # 82 or # 83 to # 85.
Clear the flag and go to # 86. Maximum integration time is 20
In 0ms mode, when AGC data is 2 times, 4 times, 8 times
Then, from # 84 to # 86, it became a low light judgment, and the AGC
When the data is 1x, go from # 84 to # 85 and roll with # 85.
Clear the flag and go to # 86. Auxiliary light here
Judgment of low light when light emission enabled state is set
However, it is 1 more than the low light judgment when it is not set.
It starts from a bright place. This is because the subject is
If it is untrusted and the brightness is low, focus detection cannot be calculated.
Great for giving up autofocus
You. That is, the auxiliary light emission enabled state is set
In that case, give up focus detection earlier when auxiliary light is not used.
Then, immediately enter the auxiliary light use mode to ensure focus detection.
The auxiliary light emission enabled state is not set.
Fara, focus detection only by outside light to the place where you can go,
Auto focus when low contrast and low brightness
In such a way that you can put the lens in and end without knotting
is there. In this embodiment, before giving up the focus detection,
In addition, the lens can be extended or retracted for one round trip scan.
I'm going to search for a position with contrast
I'm taking the way. From # 165 in Figure 13
It will be explained in the flow after "LOWCON". In this embodiment, the determination of the subject brightness is based on the AGC data.
However, this may depend on the integration time. For example,
Among the flags used in the example, CCD image sensor
When the integration time of (FLM) is 50ms or more, it is 1-cut sho
You may use the t flag. Now, we will explain about "MAIN1" from # 86 in Fig. 11 next.
However, from here, we start talking about lens drive processing. First
# 86 is the serial data obtained in # 75 and AF
Compare the mode that the icon (MC1) was operating, and
If the mode has changed, start again with # 33 “AF START”
You. That is, it was set after the last serial communication # 33.
Selected AF mode / FA mode / MANUAL mode, single shooting / continuous
The contents of register RG, which indicates the different shooting modes, and focus detection mode
Mode flag (AF mode flag, FA mode flag),
If it has changed by comparing with the flag (DR) of single shooting mode
It means to proceed to # 33. And this # 33
Then, the new mode is automatically written to the mode register RG.
Be included. In # 87, the focus detection operation mode using auxiliary light
Check whether it is turned on and use the auxiliary light
Mode (hereinafter referred to as fill light AF mode)
# 238 “LSAV” of the flow for focus detection in FIG.
Enter "E". How to enter this auxiliary light AF mode
Means that the subject has low contrast and low brightness.
This is the condition, so from # 165 “LOWCON” in Figure 13
I'll start from the low contrast flow that starts
You. If it is not in the auxiliary light AF mode in # 87, use the # 88
Check the flag (this time Low Con F in Table 5-1)
Whether or not the result of focus detection calculation is low contrast
If the contrast is low,
Move to the "LOWCON" flow. This time this # 88 comes out low
The Conflag is what is identified and created in # 76.
You. If the result of this operation is not low contrast, #
Go to 89 and check the AGC data entered in # 71 of Fig. 10.
If the AGC data is 1x, the 200ms flag is clicked with # 90.
Rear. This is the maximum integration time when it was dark
I mentioned that there is a state of 200ms mode, but it becomes 200ms mode.
If the AGC data is 1 time, the 200ms mode is set.
It is not necessary to keep it in 100ms mode with short maximum integration time.
This is because the integration time can be shortened if it is set in advance. Integral
When the time is 200 ms and the AGC data is 1 time, and the integration time is 100 m
The pixel output is almost the same as when the AGC data is doubled in s
Being able to see, movement of subject, turtle
Considering the camera shake of La, it is disadvantageous if the integration time becomes long.
If you can find the contrast of the subject,
Since the maximum integration time is 100ms,
You. The flow of "NLDC1" starting from # 91 is controlled by the subject.
The flow when the trust is found, in # 91, the scan
Set "1" to the disable flag. This is the control of the subject
If the last is low, look for a high contrast position.
Focus detection while moving the focusing lens.
Was called the Low Conscan,
If there is contrast in the subject, switch (S1) closes.
In this sequence of sequences during
Scanning is prohibited. Because you scan often
Then, it is difficult to use as an autofocus camera.
In addition to, was the contrast once found?
Focus detection continuously near the current lens extension position.
Even if it becomes low contrast when
It seems that there is a high probability that contrast will be found again, then
Immediately after the low contrast, the low contrast
It's said that scanning is counterproductive to focus detection.
It depends. In addition, this scan is prohibited
When you finish scanning once with low contrast
Because there is. In the flow from # 92 to # 101,
-When sufficient contrast is found during Conscan
Mainly represents the processing of. This is roughly divided
There are two cases, integration of CCD image sensor (FLM)
Divided when time exceeds 50 ms and when it does not
You. When the subject is dark such that the integration time exceeds 50 ms
When you find the contrast during low contrast scanning,
Stop the lens completely and then perform focus detection again.
Move the lens to the in-focus position according to the result of. Lens
Focus is not detected while moving. The reason for this is the integration time
When it starts to take longer, drive the lens
If so, the image of the subject flows out and the defocus amount is calculated
Because it will adversely affect Integration time becomes longer, and AG
If the C magnification increases, the CCD image sensor
The noise due to the dark output variation of the service (FLM) also increases,
If the image flows in the state of
Because it is. Therefore, if the integration time exceeds 50 ms,
When stopped without moving the focus while moving
It takes the method of focus detection by the value of only
Is called 1-cut shot mode, and a flag (first
The 1-cut shot flag in the 5-1 table is provided. This flag
Is already set in # 49 or # 59. Next
For a bright subject whose integration time does not exceed 50 ms
Find enough contrast during low contrast scan
Then, without stopping the lens, the contrast
Using that data, the focus detection calculation is performed,
The lens is driven to the resulting focal point. During this time,
The point detection calculation is repeated to drive the lens up to the in-focus position.
Always refresh and focus your momentum.
This is because focus is repeatedly detected during lens driving, so mult
This is called i shot mode. During low contrast scan
When it comes to focus detection without stopping the camera, CC
D image sensor (FLM) integration time and lens drive
The lens position is different from when the motion amount is obtained.
For the preparation for correcting this movement, see the “LOWCON” flag described later.
This is done in the row, and this is used to correct the amount of movement.
I do. The concept of this movement correction is described in JP-A-59
-68713 gazette, so details here
Is omitted. Next, look at the contrast from the low contrast scan.
However, even after starting the operation of the multi shot mode,
It is possible that the results of the trust will come out. In this case, low
Ignore the contrast results and use the low contrast
Focus point according to the drive amount set before
Drive the lens to the expected position. Contrast
It is driven by using only the output result. Loco
The decision to get out of trust is
Check the previous low-con flag (previous low-conn F in Table 5-1).
Check. With this flag, from # 165 in Figure 13
The flag set in the "LOWCON" flow of
This is set when the calculation result of is low contrast.
ing. On the other hand, being in # 92 means that
It means that there was contrast in the end, so #
At 92, if there was a 1 in the previous low-con flag,
Proceed to # 93 because you have come out of trust.
If the previous low control flag was “0”, control from the beginning.
As a place to go when there is a last and focus detection, #
Proceed from 92 to # 102. In # 93, the focus adjustment status display disappears.
You. Until now, the lens drive has been stopped with low contrast.
If it is in a state, the blinking display indicates that focus cannot be detected.
However, since there is contrast, I will erase it.
You. In # 94, as mentioned above, the 1-cut shot flag is
If so, you have to stop the lens, so proceed to # 95.
Only if the 1-cut shot flag is not on, low cons
Even if you are in a can, leave the lens unstopped and proceed to # 101.
No. In # 101, the previous low contrast flag, scan per scan
Lag (F per scan in Table 5-1)
Clear the lag (F during scanning in Table 5-1). This
It may have completed a low-conscan once, or
Reset the flag that shows the status when it was in the can
This is to keep it. The scan prohibition flag is also available.
Don't reset and leave. # 95 came when it was in 1-cut shot mode
However, here you can check the flag during scanning
Check if you came during the conscan. Scya
If it is not in progress, proceed to # 101 and repeat according to the current calculation
Go to the one that drives the drive, and if scanning # 96, #
Drive the lens according to the signal pattern shown in Table 6 at 97.
Turn off the power to the motor (MO1) and apply the brake.
You. In order to remember the state where the lens is stopped, drive with # 98
Clear the moving flag (F in driving in Table 5-2).
At # 99, wait 70ms for the lens to stop completely,
In # 100, clear the same flags as in # 101 and
Return to INTA and start the next focus detection. Waiting for # 99
As mentioned above, when the integration time of the sensor is long, the lens
If it is moving, the image will flow, or even the problem is
Even if the amount of movement is corrected to the integrated data position during driving,
Correct correction is difficult when negative acceleration is applied
Then, after the lens is completely stopped, the next sensor integration
Once started, out-of-focus shift of focus detection calculation can be prevented
Because. Next, the defocus amount of the focus detection calculation result is calculated by the lens
Flow to convert to pulse count value for driving "MPUL
There is an S ". In # 102, if the lens is in this range
The defocus range that is in focus is the focus zone
Set in register FZW. Note that autofocus here
Focus zone display in the adjusted state (AF mode) and focus adjustment display
It is distinguished from the focus zone amount in the state (FA mode),
Set a wider value in FA mode than in AF mode. # 103
From # 106 is the flow when the lens is stopped at the end
So this is the case when the lens is hitting the infinity end
is there. The end flag of # 103 (end F in Table 5-2) is here.
Created in the end check subroutine until
ing. If the lens is at the end, proceed to # 104.
Look at the previous direction flag (previous direction F in Table 5-3)
Check if the lens was about to move in this direction
You. The lens is at the end of infinity, and it drives further to the infinity side
If so, go to # 105 and set the end position flag.
(End position F in Table 5-2) is checked and there is no end position.
Look at the far end side or the closest end side, and if it is the infinity end side, # 106
Go to and set the focus zone to a large value of 255 μm.
ing. If the lens stop position is the closest end, go to # 107
Go through This is due to variation in focus detection data
Even at the far end position, the focus position is further toward the infinity end
It is possible that there will be
If you set the focal zone, it will be even more infinity
There is also the possibility of trying to move the lens far away. Moreover,
However, the position considered to be the end at infinity is actually due to other external stress.
It is possible that the lens was stopped halfway. Real truth
In the example, this is indistinguishable. So the lens is at the end of infinity, and beyond the end of infinity
When the detection result shows that there is an in-focus position
First expands the focusing zone to 255 μm,
If there is a lens inside the lens, the focus is displayed and
Is not within the focus zone, the focus cannot be detected.
Display (LED blinking). The lens is
While trying to move to infinity, force the
If the lens is stopped, the lens stop position will
If it is not in the focal zone, the LED blinks.
And The flow of this display is from # 120 to # 123. On the other hand, there is a lens at the closest end,
If it is detected to be on the distant side, or if the
Are trying to move to the close side, but forcibly
If the lens is stopped, its position is within the focusing zone.
If it is not in, we will display the closest direction
doing. The flow of this display is from # 147 to # 1 in FIG.
Hit 52. If the lens doesn't stop at infinity,
The focus zone moves to # 107 with the value set in # 102.
You. With # 107, the auxiliary light AF mode is based on the auxiliary light mode flag.
Mode is set, the auxiliary light AF mode is
If yes, chromatic aberration is corrected. Auxiliary light AF mode illumination
Since bright light uses light with a wavelength close to infrared light, flash light
When shooting, the best focus position may be off due to the difference in the light source.
Occurs. Therefore, if it is in auxiliary light AF mode, this
The amount of focus shift must be corrected. This shooting
As shown in Table 4, the correction data ΔIR according to the
It is sent by serial communication from the control microcomputer (MC2).
It is. This is the differential that we have been looking for with # 108.
Correct for the outfall amount DF. And in # 109, Def
Change the focus amount to the pulse count value for driving the lens.
Replace. The coefficient for this conversion is also fixed by each lens.
Since it is available, the data sent by serial communication is the same as ΔIR.
Data KROM. The defocus amount DF that has been calculated
The pulse coefficient for driving the lens is multiplied by the conversion coefficient KROM.
To obtain the DRCNT value. Similarly, focus zone FZW
Multiply the data KROM to convert to pulse count value FZC
Good. Regarding conversion into these pulse count values, Japanese Patent Laid-Open No.
-140408 publication, it is described in detail here.
Omitted. Then, in # 110, the driving flag (during driving in Table 5-2).
Based on F), it is possible to determine whether the automatic focus adjustment operation is currently in progress.
If you turn off the lens and the lens is driving,
Branch to N ”. When the lens was stopped, that is,
The first time you go through the flow or after the automatic focus adjustment has finished.
When confirming the focus position or in FA mode, proceed to # 111. This
This is the memory FERM for the defocus amount DF when the lens is stopped.
Save to. This will be automatically adjusted by this value later.
Do not go or go to the focus position confirmation loop after point adjustment is completed
Used to decide In the next # 112, the AF mode
The AF mode is determined based on the
If yes, branch to “FAP” from # 113. This is non
AF mode means that it is FA mode.
You. In # 113, it is possible to determine whether the lens is in the focusing zone.
I'm declining. Here, pulse count for lens drive
Compare the value DRCNT with the focus zone pulse count value FZC
However, the defocus amount DF and the focus zone amount FZW are compared.
May be. As a result, if the lens is
For example, the focus is displayed at # 115. This is the terminal (P31) LM
Set the signal to "Low" and leave the LL and LR signals at "High".
By turning on only the central LED (LEDM)
Done. If it is outside the focusing zone, proceed to # 114 and here
Indicates the direction in which the lens should be driven. For example, repeat the lens
If it is the direction to extend, set the LL signal of the terminal (P32) to "Low".
Then, turn on the left LED (LEDL) and retract the lens.
If it is in the direction, set the LR signal of the terminal (P30) to "Low" and to the right
Turn on the LED (LEDR). And for the next focus detection
Then, loop to # 40 “CDINTA” in FIG. If # 112 was in AF mode, that is, AF.F =
If it is 0, check the focus in AF mode with # 116.
You. The lens drive pulse count value DRCNT is set to the in-focus zone
If it is smaller than the loose count value FZC, it means that it is in focus,
Branch to "INFZ" from # 117. In # 117, FA mode
The focus is displayed in the same way as # 115 at the time, and at # 118 the terminal (P12)
Set the AFE signal from to "High". Control microcomputer (MC2)
Is seeing this signal, and when it goes "High" it will auto focus
See that the section is complete. And in AF priority mode,
The release operation is possible only when the AFE signal becomes "High".
It will be. In # 119, here is the AF stop I
Waiting for NT1 interrupt or INT2 release interrupt
Become. This is when the switch (S1) in Fig. 2 is closed once.
One-shot mode that automatically adjusts the focus only once
This is the method when the subject is focused and once the subject is in focus.
For example, if the focus position changes after that, the focus display will continue.
Still, the lens will not be driven again. or,
Alternatively, don't wait for an interrupt at # 119,
Return this to # 39 "CDINTA" or # 40 "CDINT"
For example, the focus is repeatedly detected and the subject is always tracked automatically.
Set to continuous mode to adjust points
Can also. If # 116 determines that you are outside the focus zone, # 1
Continue to 20. As described above, here, the termination flag (No. 5-2
Check the end F) of the table and it is the end (# 120), before
Check the rotation direction flag and check the focus position of the focus detection result.
It is on the infinity end side (# 121), and the lens stop position is infinity.
If it is the edge (# 122), proceed to # 123 to drive the lens
Do not let both LEDs (LEDL) (LEDR) on both sides together
Blinks to indicate that focus detection is not possible, then interrupt at # 119
Waiting, I will not go to the next focus detection anymore. these
If the condition is not satisfied, the process proceeds to # 124. Inversion from # 124 to # 130
Perform a check. That is, the result of the previous focus detection calculation
Defocus direction and the result of the calculation in this loop
Compared with the direction, the defocus direction is reversed
If you know, correct the backlash of the lens drive system.
It is something like. To drive the lens
The drive force transmission shaft between the camera body and the lens.
A considerable amount of backlash is provided in the ra part. Therefore, the
The lens drive direction is reversed due to the distance to the image body changing
If you do, the lens for the amount of rotation from the motor (MO1)
Does not move to the in-focus position obtained from the calculation result. There
Then, if the direction is reversed, the backlash amount must be corrected.
It has to be. This backlash amount is
Control microcomputer, as shown in Table 4.
It is obtained by serial communication from (MC2). Place
The last defocus direction that appears here is the switch
Yes when it is the first loop after closing (S1)
Well, again, this is the last lens in the last sequence.
I remember it as the driving direction. That is, switch (S
1) The microcomputer (MC1) (MC2) storage before the closing
I try to remember it while I'm in Pmode. Also this
The backlash correction of is immediately corrected if the calculation result is reversed.
Rather than correct, this correction is not
It's only when it's stopped. While driving the lens
When the result is that the direction is reversed, just the lens
Just stop the lens and do not immediately reverse the lens.
Also, the previous direction flag is not reset. So
Direction calculated by the next focus detection calculation after stopping
Direction), but one more time before the lens was stopped
Was driving the lens in the direction desired by
If it is reversed from the direction (previous direction), backtrack for the first time.
It means to correct the shoe. This is the focus position
By considering the dispersion of calculation in the vicinity,
Lens hunting combined with rush amount error
I try not to wake me up. The flow for these is # 124
To # 130, and the flow during lens driving is # 1 in FIG.
Has been achieved in combination with 34- # 140. # 124
Check the current direction flag (current direction F in Table 5-3)
After looking at the defocus direction this time, # 125, # 126
Check the previous defocus direction. And last time
If the defocus direction is different from this time, # 127,
Go to # 128 and rewrite the previous direction flag.
If they are in the same direction, skip to "TINNZ" in # 141. #
In 129, the backlash compensation sent by serial communication
Positive use data BKLSH to the lens drive pulse count value DRCNT
Compensate for it, and in # 130 it reverses and backlash
The reversal flag (reversal F in Table 5-2) that the correction was made is set.
And proceed to # 141. Next, based on Fig. 12, the lens drive branched from # 110.
Moved to the explanation of the flow "IDOBUN" from # 131 when running
You. In this first # 131, the lens hits the end
Check whether or not, and in # 132 for moving amount correction
Read the event counter value EVTCNT for the third time and register
Store in memory at T3. This will give you all the
You have incorporated the data. Ie sensor integration
T1 at the start, T2 at the end of integration, and focus detection calculation end
At the end of T3, using these three values, the product is
Focus detection calculation result by pixel data obtained by dividing,
By the time the calculation is actually completed and the lens drive amount is set
The amount of lens movement will be corrected. During integration
The moving amount Tx of the lens
= T1-T2. Where the event counter is a subtraction cow
Since T1> T2, Tx is positive. Impatience
The lens movement amount Ty in the time required for point detection calculation is
It is calculated as Ty = T2-T3. Here the lens moves at a constant speed
Assuming that the
If you represent the location as the point where the subject data was obtained,
Between the time when the calculation result is obtained, the amount of Tz = Tx / 2 + Ty
It has moved. Therefore, the calculation result of this time
If you subtract Tz from the accumulated count value DRCNT,
It means that the movement amount has been corrected. Therefore, in # 133, DRCNT-Tz is newly installed as DRCNT.
Change and set as the next lens drive pulse count value
It becomes the value to do. As mentioned above, # 134 to # 140 are differential while driving the lens.
The flow when the focus direction is reversed, this time with # 134
Check the direction flag to see the current defocus direction
Check the direction flag last time in # 135 and # 136
Check the defocus direction of the
If so, proceed to # 137. If not reversed, proceed to # 141. #
For 137 and # 138, turn off the power to the lens drive motor (MO1).
Brake and stop, and # 139 indicates that the lens is being driven.
Clear the driving flag, and the lens stops at # 140.
Wait for 70ms until it goes to # 39 "CDINTA". "TINNZ" starting from # 141 is driving and stopping the lens
With the flow that comes from both of them, the lens drive pulse
Set the count value DRCNT and move the lens.
is there. The driving speed of the lens is a two-stage type in this embodiment.
When the lens is far away from the in-focus position
High speed and low speed near the lens focus position
It is decided to switch between and. And Roasty
The part that controls the lens with the camera is called the near zone.
I will In # 141, the lens drive pulse count value DRC
NT is less than the pulse count value NZC of this near zone area.
Check if it is inside, and the lens is near zone
If it is in the area of, go to # 143, near zone
Set the rug (near zone F in Table 5-2). # 144 in
Set MC signal from the terminal (PO3) to “Low”, as shown in Table 6.
The lens drive motor (MO1) is driven at low speed.
To make it work. On the other hand, when outside the near zone, #
Go to 142 and set the MC signal to "High" to set the lens drive motor.
Drive (MO1) at high speed. From # 145 to # 152, there was a part of the explanation above.
This is a flow for handling when the lens is stopped at the end position.
Low. By the way, the lens stops at the end
It is detected from "CKLOCK" in Fig. 14 (to be described later)
Switch to the lens end position, as described in the subroutine.
There is not a switch, but an interrupt port INT3
From the motor drive amount monitor encoder (ENC)
When the pulse of is not input for a certain period, the lens stops
It is based on the judgment that Drive the motor (MO1)
That the lens is stopped although it is present
It is judged that it is hitting with
In the "K" subroutine, stop the motor drive and
Make a rug. With this method, the lens actually
Even if you are not at the end, you can be forcibly stopped on the way,
Is something that gets stuck in the lens or some other factor
Then, the lens stopped for a moment (on the order of several hundred ms)
However, it will be judged as the end. To prevent this, stop the lens once at the end.
Even if it looks like it's stuck, try moving the lens again and try again
Only when it is judged as the end by the "CKLOCK" subroutine,
It is said that it actually stops at the end. Hula watching this
Is the end 2nd flag (end 2F in Table 5-2), and in # 145,
The end flag set in the "CLOCK" subroutine
Look, when it is "1", set this end 2nd flag in # 146.
to see. And in the initial state, this flag is "0"
Then go to # 150, set the 2nd end flag, # 153
Move the lens with the lens drive flow from. And
When I came to # 146 in the next loop, I stopped at the end for the first time.
It judges that it is on, and proceeds to # 147. In # 147, check the defocus direction this time,
Then, see the end position flag at # 148 and # 149
Check if is hitting the end on the side. You
That is, the current defocused state is the front pin (this time direction flag
1) and the lens position is at the infinity end.
Then, the lens moves further to the infinity side than the current infinity end.
Will have to be done. In this case, # 148
From # 40 to the next "CDINT" loop,
As explained in, expand the focus zone and focus
Check again. This time the defocus state is the rear pin (this time direction flag =
0), and in # 149, the lens position is the closest side (end position).
If flag = 1), the lens moves further to the near side.
It will have to be moved. In this case # 14
Proceed from 9 to # 152, and set the LL signal from the terminal (P32) to "Low".
And the direction table to instruct to move the lens to the closest side
Turn on the indicator. Then leave the lens stopped,
Go to the next loop from # 40 and repeat focus detection. And
The position of the subject changes and the defocus direction is reversed.
For example, in the loop, proceed from # 147 to # 148, exit to # 151, and terminate.
Clear the flag and go to the lens drive loop from # 153
Come in. In this example, the # 147 Defocal
The direction flag was used this time to check the direction but the previous direction
A flag may be used, in which case it will cover more than the closest end.
From the state where the object is on the near side, to the focusable area of the lens
Even if it enters, the lens does not follow and remains stopped. Wa
In the case of one-shot AF mode, use the latter method.
Well, if it's called Continuous AF mode,
It can be said that it is inconvenient if it is not a person. In this latter case, once the low contrast state
If this happens, terminate in the # 165 “LOWCON” flow in Figure 13.
The flag will be cleared, so you can run out of the closest end and
And the lens drive state is entered and automatic focus adjustment is possible.
And Next, if the lens is not at the end or at the end
Is moving in the opposite direction, # 153 in Fig. 12
Enter the lens drive flow from. Focus adjustment on # 153
Turn off all status display LEDs. This is driving the lens
The basic principle is to not display in the defocus direction.
It depends. When focusing with the lens stopped
The center LED (LEDM) is lit to indicate the focus, and the closest end
Or at the end of infinity it is a deviation to LED (LEDL) (LEDR)
Lights to indicate the defocus direction, and low contrast
At the time of operation, the LED (LEDL) (LEDR) blinks.
is there. Set the lens drive pulse count value DRCNT with # 154.
To the counter EVTCNT and the end check register MECNT
set. Value set in event counter EVTCNT
Is DRCNT the encoder (ENC) to the interrupt pin (INT3)?
And the AF microcomputer interrupts (MC1)
In this interrupt flow (INT3S in Figure 16),
Is subtracted. When the count value DRCNT becomes “0”, the
When you stop the lens, it is in focus
is there. In # 155, the lens drive motor (MO1) is turned on.
And start driving the lens. This follows the previous direction flag.
Then move the lens. Ie this flag has
Is left as the lens driving direction. Why
, The previous direction flag, when the lens is stopped,
According to the flow from # 124 in FIG.
This is because the contents are the same. And the previous direction
If the lug is "0" (rear pin), the MF from the terminal (PO1)
Set the signal to "Low" and extend the lens as shown in Table 6.
If the previous direction flag is “1” (front pin), the terminal
Set the MR signal from (P00) to "Low" and retract the lens.
Move in the direction. # 156 check the driving flag
Check if the lens was being driven until now
However, if it is in operation (this will be explained later,
This means that the automatic focus adjustment is being performed outside the near zone.
And), loop to # 40 [CDINT] and enter the next focus detection.
You. If the lens has been stopped so far, drive with # 155
Since it started, set the driving flag in # 157.
You. In # 158, look at the auxiliary light mode flag and see the auxiliary light AF mode.
If it is auxiliary light AF mode, check if
Branch to "L2 SAVE" from # 231. Auxiliary light AF mode
Otherwise, check the near zone flag at # 159 and drive the lens.
Check if the movement is in the near zone,
If it is within the zone, proceed to [WSTOP] from # 160. # 160, #
The 161 just repeats the end check every 100ms.
Then, it does not return to the next focus detection loop. And the lens
Wait until it completely stops at the in-focus position, then stop
For the first time, the focus detection for focusing confirmation starts. This is "WSTO
While turning the "P" loop, "INT3" of # 252 in Fig. 16
There is an S interrupt and it controls the lens.
It is. Focus detection while driving the lens in this near zone
The reason for not doing this is as follows. First, in the near zone
Lens drive has acceleration, not constant speed
You. That is, a positive acceleration is applied at the start of lens driving.
There is a negative acceleration before the lens stop position. High speed
Entering the near zone from the time of driving the car, at low speed
When switching, it has negative acceleration. Where the original
From now on, the near-zone count amount NZC will change from high speed to
Turn off the power to the lens (MO1) and stop moving the lens.
It is decided based on the count value of, and the motor (MO1)
It is not an area for moving at a constant speed. It ’s not constant speed here
Even if the sensor is integrated while the motor is driving,
The point at which the subject data was obtained is at a position in the middle of time.
That is why I cannot represent them. Therefore,
Even if you correct the movement as described above, the correction is not accurate.
Instead, there will be an error in calculating the lens drive pulse.
Therefore, when the lens is not moving at a constant speed, the sensor
It is desirable not to integrate. Therefore, in this embodiment,
The focus is not detected during speed and deceleration. Next, when it is judged that it is outside the near zone in # 159,
Branch to # 162 and wait 100ms here. lens
It accelerates from the stopped state, so it takes 100ms until the speed becomes constant.
I'm waiting for time. And at # 163
To check. The end check cycle is too short
And it's not too long. Enco according to the movement of the lens
If it is shorter than the pulse interval of the
If it is too long, the motor, gear, and
The durability of the drive system such as
Which problem is there?
Even Then in # 164, look at the 1-cut shot flag and set it to 1
-Check if you are in cut shot mode, 1
-If in cut shot mode, while driving the lens
Since this is a mode in which focus detection is not performed, # 160 “WST
Go to "OP", wait for the lens to stop, then stop
Then, focus detection for confirming focus is performed. 1-cut shot mode
If not, it is looping to "CDINTA" of # 39 in FIG.
Good. The above is the main routine of automatic focus adjustment. Next, the branch routine and subroutine from FIG.
To explain. First of all, "LOW
The “CON” flow starts from # 88 of the main routine in FIG.
Branch when the result of point detection calculation is low contrast
The flow is coming. First check the end with # 165
Check the AF mode flag in # 166 to see if it is in AF mode.
Check. If not AF mode, proceed to # 167
-Set the con flag and use # 168 for low contrast
The LL signal and LR signal of terminals (P32) and (P30) are displayed as
Simultaneously repeats "Low" and "High" LED (LEDL) (LED
R) blinks. Then, immediately to the next focus detection
Push. In AF mode, proceed from # 166 to # 169,
Check if the motor is driving by checking the driving flag
I do. If driving, if low contrast scan
Results in low contrast during autofocus.
There are cases where it comes, so # 170 is the scanning flag
Check to distinguish this, and
For example, until you stop the lens,
Ignore the result of the strike, so proceed to # 40 "CDINT" immediately.
Then the next focus detection starts. # 170 during low contrast scan
If you came to # 171 from the low contrast state
When it comes out and the refocus integration at the time of starting the automatic focus adjustment
Event counter at the end of calculation to compensate for movement
The value T3 is set to the maximum count value of 65,000. (Detail
(Details will be described later) Similarly, event count value for motor drive
EVTCNT, end detection count value MECNT also has maximum count value 6
Set it to 5,000. Then go to # 40 "CDINT"
Step. When the lens is stopped or when the contrast is low
Proceeds from # 169 to # 172. And the low contrast scan
If the scan prohibit flag indicating prohibition is set, go to # 173
move on. Note that the scan prohibit flag is not
The can has already finished once or the contrast
Has either come out. For # 173 to # 175 and # 181 to # 183,
Also determines whether to enter auxiliary light AF mode.
It is. The conditions to enter this auxiliary light AF mode are
First, in AF mode, the subject is low contrast
It is a strike, the lens is stopped and
Light, that is, the auxiliary light illuminator shown in FIG.
The attached electronic flash device is attached to the camera,
There is an AFFL signal indicating that the flash is ready and
It means that the charge completion signal RDY is coming.
The auxiliary light AF mode is entered only after all the conditions are met. First # 17
3 for low light flag, # 174 for fill light OK signal AFFL, # 17
Check the charge completion signal RDY at 5 and set all the conditions to "1".
For example, fly to "LLLED" from # 225 and enter auxiliary light AF mode.
You. If these conditions are not met, # 176
Check the low light status based on the
If it is a light, double the maximum integration time of the sensor with 200 ms with # 177
I do. AGC is 8 times with integration time of 100ms, low contrast,
When it comes to low light, if you increase the integration time by one step,
-There is a possibility that focus detection will be possible instead of contrast.
This is because However, this is also the case when the integration time is long.
Error is generated when focus detection is performed while driving the lens.
For some reason, setting the maximum integration time to 200ms mode is
It is limited to the suspension of operations. In # 178, set the low control flag last time, and in # 179, set the lowcon flag.
Blinking table of LED (LEDL) (LEDR) showing the contrast state
The near zone flag and renormalization integration flag are indicated by # 180.
(Renormalization integral F in Table 5-1), inversion flag, terminal flag
Clear the lag and end 2nd flag and go to # 40 "CDINT"
Loop. If # 172 is not the low-conscan disable state, # 181
It branches to "SEARCH" from. # 181 to # 195
Low is a flow for starting the low contrast scan.
First, # 181 to # 183 is the flow from # 173 to # 175
Similarly to, the conditions for entering the fill AF mode are determined.
And if the conditions are met, jump from # 183 to # 225 “LLLED”.
The auxiliary light AF mode. Low light but auxiliary light
The AFFL signal is "1" because the lighting device is not set.
If not, proceed from # 181 to # 182, # 184,
Now the maximum integration time of the sensor is already in 200ms mode.
Check if it is. If you're not in 200ms mode, # 230
Jump to "LL200" and set the 200ms mode flag #
Loop to 39 "CDINTA". # 184 is already
Despite being in the large 200ms mode,
Trust, low contrast with # 181
If is not low light, proceed to # 185, 200ms
Clear the mode flag. This is because the integration time is long during low contrast scan.
As described above, the image of the subject flows and the low contrast
It is likely to be the last, even if the contrast
Even if there is a maximum value of integration time and focus detection calculation time
In the meantime, when the lens is stopped and the focus is detected again
Drive ratio that is too far beyond the focusing range
There may be a large lens, so prevent this
In order to clear the 200ms mode flag,
The interval is 100ms. Next, in the flow from # 186 to # 190,
Decide how to start scanning the lens when scanning
ing. When the subject is bright, the low contrast scan
Start scanning from the direction determined by the focus detection calculation
You. Defocus amount is calculated as low contrast.
Even if you do not get it, it is said that you have found it in the defocus direction
Scan in accordance with the direction of the calculation result.
Because Defocus amount during this low contrast scan
If you come to the area where
Go into action. In low contrast scan, the lens is one end
If it hits, the drive is reversed, and if it hits the opposite end, the
Is over. Integrate with # 186 to determine whether the subject is dark or bright
Uses 1-cut shot flag to indicate if time exceeds 50ms
I am checking. This may use AGC data
Even if it is darker than 2 times, it is darker than 4 or 8 times
You may. On the other hand, when it is dark, proceed to # 187 and
Start scanning from the feeding direction. This way, low
The final stop position at the end of Conscan is the lens at the infinity end
Ends with the state of This is a cap on the lens
When you do, the lens will end in a retracted state and the lens
Is compact and convenient for storage in the camera case
You. At this time, repeat the lens instead of searching for contrast.
If you attach importance to the function that ends in, proceed to # 187.
Instead, you may proceed to "LLIGHT 2" of # 189. sand
Wow, I hit the end once with a low contrast scan at # 189.
Flag per scan (F per scan)
With # 190, set the MR signal to "Low" to make a low control in the renormalization direction.
Start scanning. When the lens hits the end at infinity, # 18
Whether it is # 199 in Fig. 14 or not depending on the flag per scan created in 9
In the “ROTEM” of these, it was determined that the scan was finished with this.
It is cut off and the lens stops. In addition, this "LLIGHT2"
This is where you will fly from the auxiliary light AF mode flow. In # 191, set the low-con flag to “1” last time, and in # 192
Set the scanning flag. Lens stopped in # 193
Set the maximum defocus amount FERM to 65,000.
Good. Similar to # 171 in # 194, maximum value of 6 for T3, EVTCNT, MECNT
Set 5,000. Displayed when driving the lens with # 195
To turn off. And the next focus detection while scanning
Return to loop # 40. Next is the end check subroutine "CKLOCK" in Fig. 14.
Let's move on to the explanation. In # 196, the lens is
Check if it is driving, and if it is not driving,
Return without checking. Driving lens
Goes to # 197 and checks the end. When driving
Set the same value as the drive pulse count value DRCNT.
The end check register MECNT and the lens drive
Event counter count set as the count value DRCNT
Unt value Compare with EVTCNT. If the lens is moving, EV
The value of TCNT contains the pulse from the encoder (ENC).
It is decremented by 1 each time, resulting in a value different from MECNT.
Has become. The lens must hit the end and not move
For example, the pulse doesn't come from the encoder (ENC).
The value of EVTCNT does not change and remains the same value as MECNT.
You. Therefore, if MECNT = EVTCNT in # 197, the lens stops.
It is judged that there is a termination process "ROTEM"
Branch to # 199. If MECNT ≠ EVTCNT, the lens moves
It judges that it is present and proceeds to # 198. In # 198 MECNT
Reset the value of EVTCNT to the next termination check.
Prepare for Then return. First in the termination processing flow "ROTEM" from # 199
Since it is branched from the subroutine, the microcomputer
Reset the tack pointer. # 1, INT1, INT2
Disable interrupts other than. I'm hitting the end
Power off the motor (MO1) with # 201 and # 202.
And apply the brakes. In # 203, stop the motor (MO1)
Therefore, the driving flag is cleared. # 204
Check the lag, if the previous direction flag is "0"
(It was a rear pin and the lens was extended), # 205 was the most
The end position flag indicates that it stops at the near end position.
Set "1" in the box. If the previous direction flag is "1"
(It was the front pin and the lens was pulled in), # 206
It means that it stops at the infinity end position,
Clear the lag. # 207 is in low contrast scan
Check if the end has hit the
If not, go to # 208 and the lens is stopped at the end.
The end flag that indicates that it is set. # 209
In auxiliary light AF mode based on the auxiliary light mode flag
Check if there is any, and if the auxiliary light AF mode is
If you hit the end, even if it hits the end
Even if it is focus detection, do not loop to the next focus detection
LED blinking display and give up focus detection. Auxiliary light A
For F mode, in the "LLLED" flow from # 225
Will be described in detail in. If it is not in auxiliary light AF mode with # 209,
Next focus detection loop "CDIN
Go to "TA". At # 207, the lens came to the end during the low contrast scan.
If yes, go to # 210 and end while scanning
Whether you have been hit, that is, whether you are going or not
Check, and if it is going, reverse the scan direction
Since it is necessary to move it, proceed to # 217. # 217, now
Since it has reached the end once, the flag per scan is set.
Cut. Next, at # 218, the previous direction flag (lens drive
Check the direction), and check with # 219 and # 221 respectively.
Set it in the opposite direction. And # 220, # 2
The lens drive signal according to the direction to move next with 22
Set MR or MF to “Low”. At this time, of course, the brake signal
Keep MB high. This will start the inversion drive
You. In # 223, FERM,
Do not set T3, EVTCNT, MECNT to the maximum value of 65,000 respectively.
I'll tell you. In # 224, set the driving flag to "1"
Then, go to the next focus detection loop "CDINTA". On the other hand, it has already hit the end once, and the second end
If so, proceed from # 210 to # 211. This time, Loco
The lens does not move because the scan has ended. # 211
Per-scan flag that hits the end of the scan in
Clear, and in # 212 clear the scanning flag,
With # 213, once you scan it, it will not be done anymore,
Set the scan prohibition flag. # 214 is low
I did a Conscan, but I found the contrast
No, the focus could not be detected, so the LED flashing display
do. With # 215, check whether the auxiliary light AF mode is active.
If it is in the fill AF mode, go to # 216 and then
It does not go to the focus detection of the
I will cross. Scan ends if auxiliary light AF mode is not used
After that, because focus detection is repeated at the end position, # 39 “CDIN
Return to TA. The above is the end detection routine. Next, the auxiliary light AF mode routine will be described. Auxiliary light
Enter the AF mode from the "LOW CON" routine in Fig. 13.
You. If the above conditions are met, start from # 175 or # 183
Proceed to # 225's "LLLED", flow of auxiliary light AF mode
Become. In # 225 of Fig. 14, the supplementary AF mode is shown first.
Set the assisted AF mode flag. From terminal (P13) with # 226
Set the signal from the terminal (ST4) to “High”. Flash circuit
(FLS) emits the auxiliary light LED (48) by this signal.
To start. In # 227, you entered the auxiliary light AF mode.
The LL and LR signals to “Lo”
w "and turn on the LEDs (LEDL) (LEDR) on both sides.
There is a maximum of 45 hours of lighting time until the next focus detection calculation is completed.
It is standard to turn on for 0 ms. This is the # 229 200ms
Waiting time, calculation time for focus detection, maximum integration time
It is the total time when the interval is 200 ms, but the subject is quite
If it is bright near, focus detection will be completed in less than 450ms. You
That is, this is also because the display is turned off while the lens is being driven.
You. This display is only once when you enter auxiliary light AF mode
is there. On the other hand, the auxiliary light LED (48) emits light twice.
The auxiliary light AF mode sequence starts with the auxiliary light LED (4
8) emits light once and the CCD image sensor (F
Preliminary lighting for LM). This is a CCD image
This is to improve the responsiveness of the sensor (FLM). And
Mode with maximum integration time of 200 ms, C under fill illumination
Integrate CD. Then, this data is used to detect the focus.
Calculate and drive the lens. During this time, focus detection
No. And after stopping the lens, the second LED for auxiliary light (48)
Light up to 450ms and then focus detection
If the result is not in the focusing zone, try the lens again.
Drive to adjust focus. This is the basic movement
You. Here, the auxiliary light LED (48) emits light for the first or second time.
The distinction becomes necessary. To distinguish this,
The auxiliary 1st flag (auxiliary 1stF in Table 5-2) is provided.
You. If this flag contains "0", it means the first light emission.
"1" indicates the second light emission. #twenty two
In 8, put "0" in this flag. # 229 sensor
Wait for 200ms as the preliminary lighting time of
Set the mode with integration time of 200ms. Auxiliary light AF
In mode, the integration time is usually 200ms. Soshi
Loop to “CDINTA” as in normal AF mode.
You. The flow proceeds from # 39 in FIG. 9 in the auxiliary light emitting state,
10 Turn off the auxiliary light at # 69 in the figure. Similarly, focus detection is performed
Please come to # 87 in Fig. 11 and go to the auxiliary light AF mode in Fig. 14 # 238.
Branch to row "LSAVE". This starts from # 238
It is. First, is it the first time focus detection in auxiliary light AF mode?
If it is the first time, proceed to # 239. Where,
Whether the point detection calculation result has low contrast
If the contrast is low, check # 189 “L
Go to "LIGHT2" and give up the second focus detection. this
Then, loop from # 189, # 190 in Fig. 13 to # 40 in Fig. 9.
And then, let's put in the lens and finish. Give up
The auxiliary light is not emitted,
So you don't have to go around the focus detection loop,
If it is fluffy, it will suddenly become bright and contrast will come out
Because it is possible to detect focus without auxiliary light.
is there. If # 239 is not low contrast,
Go to # 91 [NLDC1] and enter the focus adjustment drive flow
go. In this case, go through # 91 to # 102 in FIG.
Further, the drive starts at # 155 through # 141 in FIG.
From 8 to auxiliary light AF mode flow "L2SAVE" (Fig. 14
# 231). In # 231 of Fig. 14, fill light is based on fill light 1st flag.
Check whether the light emission is the first time,
Then go to # 232. Here, the lens is used as the focus detection calculation result.
Wait until the lens is driven by the
After the stop, the flow proceeds to the second auxiliary light emission flow # 233. # 233
Now, look at the fill light OK signal AFFL, and if it is "1" (OK),
Output the auxiliary light emission signal for the second time with # 234 (that is,
Set the signal of the terminal (ST4) to "High"). AFFL signal is “0”
If so, the auxiliary light illuminator was turned off, so twice
Do not illuminate your eyes. In this example, this
If you have not canceled from Auxiliary light AF mode,
Is also good. # 235 sets the auxiliary light 1st flag and the second auxiliary
Show that it is in optical AF mode. And the first time
Similar to # 229, wait 200ms, go through # 230,
Go to "CDINTA". The same applies when in the second auxiliary light AF mode
9 through # 39 to # 44 and # 68 in FIG.
If it is in auxiliary light AF mode at # 87 in Fig. 11
Branches to “LSAVE” in # 238 of FIG. This time twice
Since it is the auxiliary light AF mode for the eyes, proceed to # 240. # 240 in
Check whether it was low contrast,
-If it is contrast, proceed to # 211, this time it is the first time
Unlike the case, with the lens stopped without stopping,
Interrupt by displaying the blinking LED (LEDL) (LEDR) on both sides
I will wait. If not low contrast, # 240 to # 9 in Fig. 11
Proceed to 1 to enter the lens drive flow. And in Fig. 12
Branch to "L2SAVE" in auxiliary light AF mode flow until # 158
I do. With # 231, it is the second auxiliary light AF mode, so
Proceed to # 236 and wait for the lens to stop like the first time.
One. If it is not the fill-in AF mode, the focus confirmation
I entered point detection, but limited the emission of auxiliary light to 2 times.
Then, it does not go to the focus detection for confirmation. (Light emission in this embodiment
Since it is limited to 2 times, the following process without confirmation
However, the focus is confirmed without limiting the number of flashes.
The light may be emitted until it is turned on. ) This process is the lens stop
Check the focus detection calculation value FERM when stopped. That is,
Defocus amount at the start of the second lens drive is less than 1 mm
In that case, consider focus detection performance and check the focus sufficiently
I knew I could bring the lens into the focusing zone.
Cut off and proceed to the "INFZ" flow when focusing on # 117 in Fig. 11
Then, the focus is displayed. If FERM is 1 mm or more, once
It was said that the focus detection results for the second and the second time were very different.
By doing so, # 211
Proceed to, and leave the lens in its current position.
L) (LEDR) blinks. This is the auxiliary light AF mode rule.
It is. Limit the emission of the auxiliary light LED (48) to twice
Is that power consumption and usage
There is a problem of, and if it is once, focus detection error and backlash
Since there is a problem of error, we use 2 times as appropriate.
You. If the second focus cannot be detected, the lens
The thing that is not involved is to open the switch (S1) once
Close again and try the auxiliary light AF mode again
Then, there is a possibility that it will start near the focus of the subject
There is a high possibility that the lens will be brought into the focusing zone.
It is because it is determined that it will be. Next, the event counter interrupt flow "IN
Enter the explanation about "T3S". This is an interrupt pin (INT
3) Encoder for lens drive motor (MO1)
The pulse signal PS from the DA (ENC) is used to drive the lens
It controls things. Lens to the in-focus position
The drive count value EVTCNT of the
However, the interrupt signal to INT3 drives the lens.
The amount of movement is constantly monitored, and the moving speed and stop position of the lens
Control the position. First, the driving counter when driving the lens
Value EVTCNT is set in the event counter. And
Energization of the lens drive motor (MO1) is started. Do
And the lens starts moving, and a pulse is sent from the encoder (ENC).
It goes out and INT3 is interrupted. # 252 "INT3S"
The flow of starts. First, the # 1 pulse signal came in # 252,
Decrement the count value EVTCNT of the event counter by "1". So
Then, in # 253, this count value EVTCNT is the specified amount (ie
Check if "0") is counted and EVTCNT is
If it becomes “0”, it means that the lens has reached the in-focus position.
Proceed to # 259 to stop driving the motor (MO1). The count value EVTCNT of the event counter becomes “0”.
If not, proceed to # 254, and based on the near zone flag
Check if the lens is in the near zone
I do. If the near zone flag is not "1", proceed to # 255.
See if you entered the near zone with this pulse
To check. # 255 at event counter cow
The counter value EVTCNT is the count value NZC of the near zone counter.
If it gets smaller, it means that you entered the near zone this time
And proceed to # 256. "INT3S" if outside the near zone
From the interrupt flow to the main flow
Good. On the other hand, in # 256, I entered the near zone for the first time this time.
Therefore, set the near zone flag, and use the terminal (P
Drive the motor (MO1) by setting the MC signal from 03) to "Low".
To low speed. And at # 258, interrupt
Reset the stack pointer of the flow only
Go to 160 "WSTOP" and check the end while checking the lens
Wait for to stop. That is, while looping through this "WSTOP" flow, "I
"NT3S" interrupt comes in, and the flow from # 252 to # 254, # 258
When the count value EVTCNT becomes "0" by repeating
Then, exit this loop and proceed to # 259. Near here
If it is in the zone, proceed to # 160 “WSTOP”, and
The reason why the lens does not return to the
Since it does not detect focus when it is not moving with
So, if you enter the near zone area, the lens will slow down.
Since it is not a constant speed, if you enter this area while moving the lens
No focus detection. Next, the lens is equivalent to the drive pulse count value EVTCNT
At the time of moving, the count value E is checked with # 253.
Since VTCNT becomes “0”, proceed to # 259. Where the lens drive
Turn off the motor (MO1) and brake with # 260.
Then, clear the driving flag in # 261, and clear in # 262.
Disable the vent counter interrupt and proceed to # 263.
Here, check whether it is in auxiliary light AF mode.
If this is the auxiliary light AF mode, this event counter
Return from the interrupt. This return destination is auxiliary
As explained in the flow of optical AF mode, # 232 in Fig. 14
Or # 236. If # 263 is not in fill AF mode
Resets the stack pointer in # 264 and moves to # 265.
You. The flow from here is that after the focus adjustment drive, the lens is stopped.
The focus for checking whether the stop position is within the focus zone.
It is determined whether to go to the point detection. Ma
DR signal sent from the control microcomputer (MC2)
And check whether it is single-shot mode or continuous-shot mode.
If the DR signal is "0", that is, the single shooting mode, # 267
Wait for 10ms, then the lens stops completely from low speed
Then, the next focus detection loop is entered. And the next focus check
If it is confirmed that it is in the focusing zone when exiting,
That is, the check is made in # 116 of the main flow of FIG.
If it is in focus, the process proceeds to # 117 for the first time to display the focus. Les
The stop position must be within the focusing zone.
Then, again from # 120 in Fig. 11 to the lens drive routine.
Enter and repeat the same thing. This is the focus check
Low. Next, in the continuous shooting mode, the DR signal is "1".
Therefore, proceed from # 265 in FIG. 16 to # 266. Lens here
Defocus amount when stopped (when the driving flag is "0")
Check (FERM). If this value is 500 μm or more
If so, proceed to # 267. That is, in continuous shooting mode,
If the defocus amount before driving the lens is 500 μm or more,
This means checking the focus. # 266, FERM is 500μ
If it is less than m, proceed to # 268 and the reverse flag is on.
Check if there is an inversion flag, and
Since I have corrected the crash,
I went to # 267 to confirm my focus. Flip with # 268
If there is no lag, focus display of "INFZ" of # 117
Go to flow. This is a lens drive in continuous shooting mode
Increased speed for tracking moving subjects
This is a method for improving the
When automatic focus adjustment is performed without correcting the crash
In addition, the system linearity is good, and the focus zone is surely
Without the focus detection for confirming the focus with the belief that
Then, go to the focus display directly. In other cases, check focus
To improve the focusing accuracy. The focus detection ability is the most
Which is almost perfect and has no drive system error
If so, it is not necessary to check the focus here.
May be. The above is the sequence of automatic focus adjustment. Next, the flow from # 40 to # 53 in FIG. 9 and FIG.
Using the time charts of (A) and (B)
Minutes ”and the movement correction. This is basic
To reduce the time required for the focus detection loop
It is. In Fig. 18 (A), the subject is relatively bright and the CCD
When the integration time of the image sensor (FLM) is less than 60ms
In Fig. 18 (B), the integration time is so dark that it exceeds 60 ms.
Is the case. And Fig. 18 (B) shows "renormalization integration"
It is in a state to be called. First, if the subject is bright, use the sensor shown in Fig. 18 (A).
Value of the event counter when the integration of is started EVTCNT
Read and save it as T1. At the end of integration
Save T2 with. And immediately after entering AGC data
Will start the next integration. When this integration starts
Consider that T1 '= T2, assuming that the times are almost the same.
Well, I will not take in T1 'again. Open integral with
At the same time as starting, the pixel data from the CCD image sensor
Take in. Then, the focus detection calculation is started. Toko
In the case of a bright subject of Roga (A), the second started from
The integration of the second time ends by before the focus detection calculation ends.
I have. Pixel data from CCD image sensor
Is output immediately after the integration is completed, and the data is
You cannot bring it inside the sensor. AF microcomputer
If (MC1) goes to fetch new data, it is currently calculating
The data will be destroyed. After all, in this second integration
The data will be discarded. But the calculation ends
If the next integration starts immediately at
The integration time itself isn't a problem, it's the focus detection loop
The interval does not become long. Note that in this case the cow
The input value T2 'will be ignored. And at this time
For the calculation of the movement amount correction, the above-mentioned calculation formula is satisfied. Sand
When Tx = T1-T2 and Ty = T2-T3, the correction amount Tz = Tx / 2 +
Ty is the lens drive count value calculated from the calculation result DRCNT
Just subtract it from. Note that here T3 is when the calculation is completed
Is the event count value of. Value corrected by DRCNT
As the count value EVTCNT of the new event counter.
Cut. At the start of the next integration, this count value is set to T1 ″
And save and repeat in the same way. Next, if the subject is dark, use
Save the actual value T1. Ends integration and saves T2
You. Open the next integral immediately after acquiring AGC data.
Start. Start focus detection calculation after inputting CCD data
You. Then, the calculation ends, and T3 is obtained.
Correct the movement. The second time at the end of this integration
The integration of has not finished. Where "convolutional integration" method
If not used, start a new integration at
From now on-don't wait the same amount of time
I have to. However, in the present embodiment,
Since the integration has already started by
You just have to wait-for a while. Ie total time
As a result, the time of-is shortened. Sand
The "renormalization integration" method has an integration time exceeding -time.
The effect comes out in the case of getting. In this embodiment −
Is 60 ms and the maximum integration time of-is 100 ms. By the way, for movement correction in case of (B), please refer to (A)
You cannot take the same method as. Compensation of movement at 24 at the end of calculation
Is the count value T1 'at the start of integration (this is the previous integration
Assuming that the count value at the end is the same, T2 → T1 '
), T2 'at the end of integration, T3' at the end of calculation
I want to obtain the correction value using, but at the end of the previous calculation,
The lens drive event count value EVTCNT is rewritten.
ing. That is, in the correction calculation Tx = T1'-T2 '
Therefore, T1 ′ and T2 ′ are numerical values of different dimensions, and this calculation
It has no taste. For T2 'and T3', the operation result is calculated by EVTCNT
Has been set to a new scale since was set
It is. Therefore, T1 'also needs to be converted to the new scale.
There is. That is, the drive count value DRCNT obtained in
And the difference from the value T3 that came on the previous scale is the new scale
It becomes the amount of conversion correction to the rule. If the system is ideal
For example, DRCNT = T3 should be obtained, but
Is doing sensor integration while moving,
By converting between the defocus amount and the lens drive count value
Is that the coefficient is quantized a little
The defocus amount itself obtained by the detection calculation is also the lens
In order to prevent
Backlash correction that is performed when returning after passing
It is necessary to consider that the error of
Without DRCNT> T3. Therefore, DRCNT-T3 has a new scale.
The correction amount between the old scale and the old scale becomes T2.
If this is corrected at the time of
The movement amount can be corrected. Example given in the flow chart
Then, instead of (DRCNT-T3) + T2 → T1 ', the correction amount Tz is calculated by setting Tx = T1'-T2'.
You. However, if this is another embodiment and Tx = (T2-T3) + (DRCNT-T2 '), the correction amount Tz can be similarly obtained. However
However, in this case, the correction of (DRCNT-T3) is not necessary.
In addition, another routine for renormalization integration when moving amount is corrected
It is necessary to prepare the above formula instead of Tx = T1'-T2 '. Again T
Another memory that prevents T2 from being erased by 2 '
It is also necessary to prepare. Next, if you look at "renormalization integral" on the flowchart,
It starts from # 66 in FIG. Check the driving flag with # 65.
When it is determined that the lens is driving,
Whether or not it becomes the "integral integration" state, the next integration is performed in # 66.
Start and renormalize integration flag at # 67 (Renormalization of Table 5-1
The integral F) is created. And the "convolution integral"
The top of the focus detection loop when needed is shown in # 40 of Fig. 9
It is called "CDINT". Now, add the flow when assuming that it is in the state of FIG. 18 (B).
U. Set the integration mode in # 40 and detect the integration end signal NB4.
Be prepared. Then, at # 42, the renormalization integration flag
Check if it's leaning
If it is not in the renormalization integration mode, proceed to # 44.
If the renormalization integration flag is set, go to # 43 to finish the integration.
Check the end signal NB4 and integration has already finished
Check whether or not. Product as shown in Fig. 18 (B)
If the minutes are not over, proceed to # 49 “TINTC”
From the "TINTC", the flow when it is in the retraction state, # 44
"CDINTS" from is for non-renormalization. # 49 in Figure 10
Then set the 1-cut shot flag to "1". AFE signal at # 50
Set it to “Low”, and use # 51 to correct the movement as described above.
In preparation, T1 'is corrected. # 53 maximum remaining integration time
Set the value 40ms and proceed to # 55. Below is the main lurch
In this way, "renormalization integration"
It has the effect of shortening the point detection time. AF microcomputer
This completes the explanation of the flow of (MC1). In the above-mentioned embodiment, the auxiliary light unit is installed in the camera.
Installed and closed the power switch.
It was configured to emit the assisted OK signal (AFFL)
However, when the auxiliary light unit is attached to the camera, the auxiliary light OK signal is received.
The issue (AFFL) may be issued. Also auxiliary
The optical OK signal (AFFL) and the charging completion signal (RDY) are combined into one.
You may comprise so that it may be stopped and transmitted. According to the present invention, when the flash cannot be fired,
Emission of fill light is prohibited. That is, the auxiliary light is emitted
The flash is always ready to fire.
You. Then, while the emission of fill light is prohibited,
It is controlled to repeat the focus detection operation without light.
Therefore, the brightness of the subject changes during this period.
When the focus state can be detected without the back light, it will be detected.
When you can do it, you can shoot without a flash.
You. Therefore, once you have determined that auxiliary light is needed,
Also, since the shooting is performed according to changes in the situation, the shutter
Less chances to miss.

【図面の簡単な説明】 第1図は本発明実施例のカメラシステム全体を示す概略
図、第2図はその電気回路を示すブロック図、第3図は
その電子閃光装置のフラッシュ回路を示す回路図、第4,
5図はその制御マイコンの動作を示すフローチャート、
第6図はそのインターフェース回路を示すブロック図、
第7-16図はそのAFマイコンの動作を示すフローチャー
ト、第17図(A)(B)はそれぞれわりこみ信号を示す
タイムチャート、第18図(A)(B)は「繰り込み積
分」の動作を説明するためのタイムチャート、第19図は
本発明実施例の焦点検出原理を説明するための概略図で
ある。 (FLM);受光手段、(113)(MC1);合焦検出手段、
(40);第1の照明手段、(48);第2の照明手段、
(32);第1の判別手段、(MC2);第2の判別手段、
制御手段。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram showing an entire camera system of an embodiment of the present invention, FIG. 2 is a block diagram showing its electric circuit, and FIG. 3 is a circuit showing a flash circuit of its electronic flash device. Figure, fourth,
Figure 5 is a flow chart showing the operation of the control microcomputer.
FIG. 6 is a block diagram showing the interface circuit,
FIG. 7-16 is a flow chart showing the operation of the AF microcomputer, FIGS. 17 (A) and (B) are time charts showing the interrupt signal, and FIGS. FIG. 19 is a time chart for explaining, and FIG. 19 is a schematic diagram for explaining the focus detection principle of the embodiment of the present invention. (FLM); light receiving means, (113) (MC1); focus detection means,
(40); first illuminating means, (48); second illuminating means,
(32); first discriminating means, (MC2); second discriminating means,
Control means.

フロントページの続き 合議体 審判長 桜井 義宏 審判官 佐藤 荘助 審判官 平瀬 博通 (56)参考文献 特開 昭54−126023(JP,A) 特開 昭59−152411(JP,A) 特開 昭55−15154(JP,A) 特開 昭56−142521(JP,A)Continuation of front page        Panel     Chief Referee Yoshihiro Sakurai     Judge Judge Sato Sato     Referee Hiromichi Hirase                (56) References Japanese Patent Laid-Open No. Sho 54-126023 (JP, A)                 JP-A-59-152411 (JP, A)                 JP-A-55-15154 (JP, A)                 JP-A-56-142521 (JP, A)

Claims (1)

(57)【特許請求の範囲】 1.被写体光を受光してその受光状態に基づいて上記被
写体の焦点状態を検出する動作を行う焦点検出手段と、 前記焦点検出手段の検出結果に基づいて合焦動作を行う
合焦手段と、 上記焦点検出のために被写体を照明する補助光手段と、 受光状態に基づいて上記補助光手段が必要か否かを判定
する補助光判定手段と、 上記補助光判定手段により補助光手段が必要と判定され
ているときに、フラッシュ発光が可能かどうかを判定す
る判定手段と、 上記判定手段によってフラッシュ発光が不可能と判定さ
れているとフラッシュ発光可能となるまで上記補助光手
段の動作を禁止する禁止手段と、 上記禁止手段の動作中に上記焦点検出手段を繰り返し動
作させ、繰り返し動作中に焦点検出が可能となれば前記
補助光手段を使用することなく合焦手段を動作させる制
御手段と を有することを特徴とする自動焦点検出装置。 2.上記補助光手段は、被写体が所定の明るさよりも暗
い場合に動作することを特徴とする特許請求の範囲第1
項記載の自動焦点検出装置。 3.上記判定手段は、フラッシュから入力される充電完
了信号に基づいて判定することを特徴とする特許請求の
範囲第1項または第2項記載の自動焦点検出装置。 4.上記判定手段は、フラッシュが装着されているかど
うかを検出する手段であることを特徴とする特許請求の
範囲第1項乃至第3項の何れかに記載の自動焦点検出装
置。
(57) [Claims] Focus detecting means for receiving the subject light and detecting the focus state of the subject based on the light receiving state; focusing means for performing a focusing operation based on the detection result of the focus detecting means; Auxiliary light means for illuminating an object for detection, auxiliary light judging means for judging whether or not the auxiliary light means is necessary based on the light receiving state, and auxiliary light judging means for judging that the auxiliary light means is necessary. And a prohibition means for prohibiting the operation of the auxiliary light means until the flash emission becomes possible when the flash emission is impossible by the determination means. When the focus detecting means is repeatedly operated during the operation of the prohibiting means, and the focus can be detected during the repeated operation, the focusing means can be operated without using the auxiliary light means. Automatic focus detection apparatus characterized by a control means for work. 2. The auxiliary light unit operates when the subject is darker than a predetermined brightness.
The automatic focus detection device according to the item. 3. The automatic focus detection device according to claim 1 or 2, wherein the determination means makes a determination based on a charge completion signal input from a flash. 4. The automatic focus detection device according to any one of claims 1 to 3, wherein the determination means is means for detecting whether or not a flash is mounted.
JP61086292A 1986-04-14 1986-04-14 Automatic focus detection device Expired - Lifetime JP2687958B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61086292A JP2687958B2 (en) 1986-04-14 1986-04-14 Automatic focus detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61086292A JP2687958B2 (en) 1986-04-14 1986-04-14 Automatic focus detection device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP717985A Division JPS61165715A (en) 1985-01-14 1985-01-17 Auto-focusing device

Publications (2)

Publication Number Publication Date
JPS61267743A JPS61267743A (en) 1986-11-27
JP2687958B2 true JP2687958B2 (en) 1997-12-08

Family

ID=13882762

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61086292A Expired - Lifetime JP2687958B2 (en) 1986-04-14 1986-04-14 Automatic focus detection device

Country Status (1)

Country Link
JP (1) JP2687958B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2732062B2 (en) * 1987-02-04 1998-03-25 旭光学工業株式会社 Flash device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54126023A (en) * 1978-03-23 1979-09-29 Canon Inc Optical device
JPS5515154A (en) * 1978-07-19 1980-02-02 Fuji Photo Optical Co Ltd Focus light device
JPS56142521A (en) * 1981-02-19 1981-11-06 Canon Inc Camera
JPS59152411A (en) * 1983-02-18 1984-08-31 Canon Inc Focusing device

Also Published As

Publication number Publication date
JPS61267743A (en) 1986-11-27

Similar Documents

Publication Publication Date Title
US4956659A (en) Automatic focus adjusting apparatus
US4829331A (en) Camera having auto-focussing device
JP2003029135A (en) Camera, camera system and photographic lens device
US4912496A (en) Automatic focussing adjusting device
JPS6341818A (en) Automatic focus adjusting device provided with auxiliary illuminating device
JP2687958B2 (en) Automatic focus detection device
JP2501189B2 (en) Automatic focus adjustment device
JPH0766099B2 (en) Automatic focus adjustment device
JPH0766101B2 (en) Automatic focus adjustment device
JPH0690355B2 (en) Focus detection device
JPH0713695B2 (en) Camera with automatic focusing device
JPH0713691B2 (en) Automatic focus adjustment device
JPH06100713B2 (en) Automatic focus adjustment device
JPH0713692B2 (en) Automatic focus adjustment device
JPH0766100B2 (en) Automatic focus adjustment device
JPH0766102B2 (en) Focus detection device
JPS62215248A (en) Focus detecting device with auxiliary lighting device
JP3248586B2 (en) Camera system and camera
JP2591086B2 (en) Display device for focus detection
JPS61165715A (en) Auto-focusing device
JP3034217B2 (en) Focusing device
JP3360718B2 (en) camera
JPS61267716A (en) Automatic focusing device
JPH0524911Y2 (en)
JP3319384B2 (en) camera

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term