JPH0559413B2 - - Google Patents

Info

Publication number
JPH0559413B2
JPH0559413B2 JP58136060A JP13606083A JPH0559413B2 JP H0559413 B2 JPH0559413 B2 JP H0559413B2 JP 58136060 A JP58136060 A JP 58136060A JP 13606083 A JP13606083 A JP 13606083A JP H0559413 B2 JPH0559413 B2 JP H0559413B2
Authority
JP
Japan
Prior art keywords
data
lens
output
circuit
focus
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
JP58136060A
Other languages
Japanese (ja)
Other versions
JPS59142528A (en
Inventor
Norio Ishikawa
Yasuaki Akata
Takeshi Egawa
Kunio Kawamura
Nobuyuki Taniguchi
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP13606083A priority Critical patent/JPS59142528A/en
Priority to US06/575,707 priority patent/US4509842A/en
Priority to DE19843403469 priority patent/DE3403469C2/en
Priority to DE3448493A priority patent/DE3448493C2/en
Publication of JPS59142528A publication Critical patent/JPS59142528A/en
Publication of JPH0559413B2 publication Critical patent/JPH0559413B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B3/00Focusing arrangements of general interest for cameras, projectors or printers
    • G03B3/10Power-operated focusing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automatic Focus Adjustment (AREA)
  • Focusing (AREA)
  • Lens Barrels (AREA)

Description

【発明の詳細な説明】[Detailed description of the invention]

技術分野 本発明は、撮影レンズの焦点調整部材を駆動す
る駆動手段をカメラ本体側に設け、撮影レンズを
通過した合焦対象体からの光を受けて合焦対象体
の結像位置の予定焦点位置に対するズレ量を検出
し、このズレ量のデータに基づいて上記結像位置
を予定焦点位置まで移動させるのに要する上記駆
動手段の駆動量データを算出し、該算出データに
応じた量だけ駆動手段を駆動して自動的に焦点調
整を行なうようにしたレンズ交換式カメラの自動
焦点調整装置に関する。 従来技術 上述の自動焦点調整装置においては、検出され
たズレ量から駆動手段の駆動量を算出(換言すれ
ば、ズレ量のデータを駆動量のデータに変換)す
る場合、ズレ量と駆動量とが略比較的な関係にあ
ることからズレ量データに適当な変換係数が掛け
ることにより駆動量データが得られる。この変換
係数の値は、交換レンズの焦点距離やレンズ構成
等の光学的条件、交換レンズ内の焦点調整機構や
カメラ本体からの駆動量伝達機構の構成等の撮影
レンズ側機械的条件およびカメラ本体の駆動手段
や撮影レンズへの駆動量伝達機構の構成等のカメ
ラ本体側機械的条件に応じて変化する。従つて、
上記ズレ量データだけに基づいて駆動手段の駆動
量データを算出して駆動手段を駆動すると、結像
位置が予定焦点位置以外の位置に駆動されて適正
な焦点調整がなされないことがある。超音波を合
焦対象体に投射してその反射時間を検出すること
によりカメラから合焦対象体までの距離を撮影レ
ンズを介さずに検出し、この距離データに基づい
て撮影レンズの焦点調整部材を無限遠撮影距離に
対応する位置から上記検出距離に対応する位置ま
で駆動するのに要する駆動量データを算出するよ
うにした装置が、特開昭55−11275号で提案され
ている。この装置では、カメラ本体で得た距離デ
ータを上記駆動量データに変換するための演算回
路を各交換レンズごとに設け、上記距離データを
交換レンズの演算回路に転送して得た駆動量デー
タをカメラ本体に転送するという過程を経て駆動
手段の駆動量データを算出したり、カメラ本体側
に各種交換レンズに対応した上記演算回路を多数
設け、装着された交換レンズに対応する1つの演
算回路を選択してこの演算回路により上記駆動量
データを算出したりしている。ところが、この装
置は、カメラ本体で検出したデータを駆動量デー
タに変換する一方法を示竣している点では本発明
と類似しているが、検出データが撮影レンズを介
さずに得た距離データという点で本発明と相違し
ており、上記方法を本発明に用いることは非常に
困難であるばかりでなく、交換レンズごとに演算
回路を設けたり、カメラ本体に多数の演算回路を
設けたりする必要があるので、交換レンズまたは
カメラ本体の負担が大きくなるという不都合があ
つた。 また、本発明と構成が異なるが、レンズ交換式
カメラの自動焦点調整装置において、駆動手段を
交換レンズ側に設け、駆動手段の駆動量と結像位
置の移動量との上記関係が常に同一となるように
各交換レンズを構成し、カメラ本体で得たズレ量
と上記駆動量が所定の関係に達すると駆動手段の
駆動を停止するようにした自動焦点調整装置が、
特開昭57−165821号で提案されている。ところ
が、この装置では、各交換レンズごとに駆動手段
を設け、且つ上記の移動量と駆動量との関係を常
に一致させる必要があり、交換レンズの負担が大
きくなるという不都合があつた。 目 的 本発明は、撮影レンズの焦点調整部材を駆動す
る駆動手段をカメラ本体側に設け、撮影レンズを
通過した合焦対象体からの光を受けて合焦対象体
の結像位置の予定焦点位置に対するズレ量を検出
し、このズレ量のデータに基づいて上記結像位置
を予定焦点位置まで移動させるのに要する駆動手
段の駆動量データを算出し、該算出データに応じ
た量だけ駆動手段を駆動して自動的に焦点調整を
行なうようにしたレンズ交換式カメラの自動焦点
調整装置において、カメラ本体および交換レンズ
の負担をともに小さくできる効率的な装置を提供
しようとするものである。 要 旨 本発明は、カメラ本体から撮影レンズに伝達さ
れる伝達駆動量とこれによる合焦対象体の結像位
置の移動量との関係、即ち結像位置の単位移動に
要する撮影レンズへの伝達駆動量を示す撮影レン
ズに固有の第1データを出力する第1のデータ出
力手段を交換レンズ側に設け、カメラ本体の駆動
手段の駆動量とカメラ本体から撮影レンズに伝達
される伝達駆動量との関係、即ち撮影レンズへの
単位駆動量の伝達に要する上記駆動手段の駆動量
を示すカメラ本体に固有の第2データを出力する
第2のデータ出力手段をカメラ本体側に設けるこ
とにより、駆動量データの算出に用いられる変換
係数を、カメラ本体および交換レンズに固有な情
報としてそれぞれ分離し、これら第1および第2
のデータ出力手段からの第1および第2のデータ
ならびにカメラ本体で検出された合焦対象体の結
像位置の予定焦点位置に対するズレ量のデータに
より、駆動手段の駆動量データを算出するように
したものである。 尚、後述するように、駆動手段の駆動状態をモ
ニタする例えばエンコーダからなるモニタ手段を
カメラ本体側に設け、このモニタ出力に基づいて
駆動手段を駆動制御する場合は、このモニタ手段
の構成に応じたデータが第2のデータに加味され
ることは言うまでもない。 実施例 本発明による焦点自動調整のためのカメラシス
テムの概略を第1図に基づいて説明する。第1図
において、一点鎖線の左側はズームレンズLZ、
右側はカメラ本体BDであり、両者はそれぞれク
ラツチ106,107を介して機械的に、接続端
子JL1〜JL5,JB1〜JB5を介して電気的に接
続される。このカメラシステムでは、ズームレン
ズLZのフオーカス用レンズFL、ズーム用レンズ
ZL、マスターレンズMLを通過した被写体光が、
カメラ本体BDの反射ミラー108の中央の半透
光部を透過し、サブミラー109によつて反射さ
れ焦点検出用受光部FLMに受光されるように、
その光学系が構成されている。 信号処理回路112は焦点検出用受光部FLM
からの信号に基づいて、合焦位置からのズレ量を
示すデフオーカス量|△L|とデフオーカス方向
(前ピン、後ピン)との信号を算出す。モーター
MOはこれら信号に基づいて駆動され、その回転
はスリツプ機構SLP、駆動機構LDR、カメラ本
体側クラツチ107を介してズームレンズLZに
伝達される。尚、スリツプ機構SLPはズームレン
ズLZの被動部に所定以上のトルクがかかつたと
きにすべつてモーターMOにその負荷がかからな
いようにするものである。 ズームレンズLZにおいて、フオーカス用レン
ズFLを駆動するための焦点調節部材102の内
周には雌ヘリコイドネジが形成されており、これ
にネジ嵌合するように、レンズマウント121と
一体となつた固定部101の外周に雄ヘリコイド
ネジが形成されている。焦点調節部材102の外
周には大歯車103が設けられており、この大歯
車103は小歯車104、伝達機構105を介し
て、レンズ側クラツチ107に連結されている。
これにより、モーターMOの回転が、カメラ本体
のスリツプ機構SLP、本体側のクラツチ107、
レンズ側のクラツチ106、レンズ内の伝達機構
105、小歯車104及び大歯車103を介し
て、焦点調節部材102に伝達され、ヘリコイド
ネジによつてフオーカス用レンズFLが光軸方向
に前後に移動して焦点調節が行なわれる。また、
レンズFLの駆動量をモニターするためのエンコ
ーダがカメラ本体BDの駆動機構LDRに連結され
ており、このエンコーダENCからレンズFLの駆
動量に対応した数のパルスが出力される。 ここで、モーターMOの回転数をNM(rot)、
エンコーダENCからのパルス数をN、エンコー
ダの分解能をρ(1/rot)、モーターMOの回転
軸からのエンコーダENCの取付軸までの機械伝
達系の減速比をμP、モーターMOの回転軸からカ
メラ本体側クラツチ107までの機械伝達系の減
速比をμB、レンズ側クラツチ106から大歯車
103までの機械伝達系の減速比をμL、焦点調
節部材102のヘリコイドリードをLH(mm/
rot)、フオーカス用レンズFLの移動量を△d
(mm)とすると、 N=ρ・μP・NM △d=NM・μB・μL・LH 即ち、 △d=μB・N・μL・LH/(ρ・μP)……(1) の関係式が得られる。 また、レンズを△d(mm)だけ移動させたとき
の結像面の移動量△L(mm)と上記△dの比を Kop=△d/△L ……(2) で表わすと、式(1)、(2)より N=(ρ・μP/μB)・Kop・△L/ (μ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は固定データ出力回路110から
出力される。 ここで、カメラ本体側の読取回路LDCからレ
ンズ側のレンズ回路LECへは、端子JB1,JL1
を介して電源が、端子JB2,JL2を介して同期
用クロツクパルスが、端子JB3,JL2を介して
読込開始信号がそれぞれ送られる。また、レンズ
回路LECから読取回路LDCへは、端子JL4,JB
4を介してデータKLが直列で出力される。尚、
端子JB5,JL5は共通のアース端子である。 レンズ回路LECは、端子JB3,JL3を介して
読込開始信号が入力すると、ズームリングの回動
設定による焦点距離に対応したKLのデータを、
カメラ本体から端子JB2,JL2を介して入力さ
れるクロツクパルスに同期して、直列に読取回路
LDCへ出力する。そして、読取回路LDCは端子
JB2へ出力するクロツクパルスと同じクロツク
パルスに基づいて、端子からの直列データを読み
取つて並列データに変換する。 掛算回路111は、読取回路LDCからのデー
タKLと固定データ出力回路110からのデータ
KBとに基づいてKL・KB=Kの演算を行なう。
掛算回路113は、信号処理回路112からのデ
フオーカス量のデータ|△L|と掛算回路111
からのデータKとに基づいてK・|△L|=Nの
演算を行ない、エンコーダENCで検出すべきパ
ルス数を算出する。モーター制御回路114は、
信号処理回路112からのデフオーカス方向の信
号に応じてモーターMOを時計方向或いは反時計
方向に回転させ、エンコーダENCから掛算回路
113での算出値Nに等しい数のパルスが入力し
た時点で、フオーカス用レンズFLが合焦位置ま
での移動量△dだけ移動したと判断して、モータ
ーMOの回転を停止させる。 以上の説明では、カメラ本体BD側にデータ
KBを固定記憶させ、このデータKBにレンズか
らのデータKLを掛けることによりK=KL・KB
の値を算出させていたが、K値の算出は上述の方
法に限定されるものではない。例えば、KB値が
互いに異なる複数種類のカメラ本体のいずれに対
してもズームレンズが装着可能な場合、ズームレ
ンズLZのレンズ回路LECから特定のKB値を有す
るカメラ本体に対応したK1=KL・KB1のデータ
を設定焦点距離に応じて出力するようにする。一
方、この特定機種のカメラ本体では固定データ出
力回路110と掛算回路111を不要として読取
回路LDCからのデータK1を直接掛算回路13
へ入力しておくようにし、上記特定のKB値とは
異なる値KB2(≠KB1)を有する他カメラ本体に
上記レンズが装着されるときは、固定データ出力
回路110からKB2/KB1のデータを出力させ
掛算回路111でK2=K1・KB2/KB1=KL・
KB2の演算を行なつてKL・KB2の値を得るよう
にしてもよい。 また、KB値が互いに異なる複数種類のカメラ
本体の全KB値データK1=KL・KB1・K2=
KL・KB2、……、Kn=KL・KBnを全でレンズ
に記憶しておき、これらのデータをすべてカメラ
本体側に送り、カメラ本体において自身のKB値
に応じたデータを選択させるようにしてもよい。
或いは、カメラ本体からの種類を示すデータをレ
ンズに送つてレンズ側でそのカメラの種類に対応
したデータをカメラに送るようにしてもよい。こ
のようにすれば、カメラ側の固定データ出力回路
110と掛算回路111とは必要なくなる。 特に、フオーカス用レンズFLが後述のように
ズーム用レンズZLよりも前方に配置されている
前群繰出型のズームレンズの場合には、Kopの値
は Kop=f12/f2 ……(7) f1:フオーカス用レンズの焦点距離 となり、1つのズームレンズについてのKL値ま
たはK値が非常に広範囲に変化する。この場合、
レンズに記憶するデータKL或いはKを、指数部
のデータと有効数字のデータ(例えば、8ビツト
のデータであれば、上位4ビツトを指数部、下位
4ビツトを有効数字数とする)に分け、カメラ本
体の読取回路LDCで読取つたデータのうち下位
4ビツトのデータを指数部のデータだけシフトさ
せて掛算回路111或いは 113へ入力するようにすればKLまたはKの
値が大幅に変化しても充分に対応できる。 尚、上記第1図についての説明では、本発明の
全体的な機能および作用を理解しやすくするため
に本発明の装置が回路ブロツクの組合せによつて
構成されるように示したが、実際には、それらの
回路ブロツクの機構のほとんどは、以下に述べる
ように、マイクロコンピユータ(以下、マイコン
と称する)より達成される。 第2図は、第1図に示した構成のうちカメラ本
体BD側の回路部の構成を主に示すブロツク図で
ある。図において、カメラ本体BDとレンズLEと
の間にはレンズLEの焦点距離を例えば1.4倍また
は2倍に伸ばすためのコンバータCVが挿入され
ている。カメラ本体BDとコンバータCVとはそ
れぞれ接続端子群CN1とCN2とで接続され、
コンバータCVとレンズLEとはそれぞれの接続端
子群CN3とCN4とで接続されており、コンバ
ータCVおよびレンズLEからの各種情報がカメラ
本体BD側に与えられるようになつている。電源
スイツチMASが閉成されることにより、パワー
オンリーセント回路POR1、マイコンMC1,
MC2、表示制御回路DSC、発振回路OSC、イン
バータIN1〜IN8、アンド回路AN1に電源ラ
イン(+E)を介して給電が開始される。この給
電開始により、パワーオンリセツト回路POR1
からリセツト信号PO1が出力されて、マイコン
MC1,MC2および表示制御回路DSCがリセツ
トされる。マイコンMC2はこのカメラシステム
の全体的な作動をシーケンス的に行なわせるマイ
クロコンピユータであり、マイコンMC1はこの
マイコンMC2からの制御信号に応答して焦点調
節作動をシーケンス的に行なわせるマイクロコン
ピユータである。尚、マイコンMC2の動作を第
3図のフロチヤートに、マイコンMC1の動作を
第8図ないし第10図のフローチヤートに示す。 測光スイツチMESはレリーズボタン(不図示)
の押下げ操作の第1段階で閉成され、このスイツ
チMESが閉成されると、インバータIN1を介し
てマイコンMC2の入力端子i0に“High”レベ
ルの信号が与えられる。これに応答してマイコン
MC2の端子O0が“High”となり、インバータ
IN2を介してトランジスタBT1が導通する。こ
のトランジスタBT1の導通により、パワーオン
リセツト回路POR3、測光回路LMC、デコーダ
DEC1、発光ダイオード駆動用トランジスタBT
3、フイルム感度設定装置SSE、絞り値設定装置
ASE、露出時間設定装置TSE、露出制御モード
制定装置MSE、露出制御装置EXC、ラツチ回路
LAに電源ラインVBを介して給電が開始される。
この給電開始により、パワーオンリセツト回路
POR3からリセツト信号PO3が出力されて露出
制御装置EXCがリセツトされる。また、マイコ
ンMC2の出力端子O0からの“High”レベル信
号は、バツフアBFによりコンバータCVおよびレ
ンズLEの電源電圧VLとして、接続端子群CN1,
CN2,CN3,CN4を介して、コンバータCV
内の回路CVC及びレンズLE内の回路LECに与え
られる。尚、接続端子群は、この給電用端子の他
に、マイコンMC2の出力端子O6から出力され
てコンバータ回路CVC、レンズ回路LECをリセ
ツト状態から解除するための信号伝達用端子と、
マイコンMC2のクロツク出力端子SCOからの同
期用クロツクパルスをコンバータ回路CVC、レ
ンズ回路LECに伝達するためのクロツクパルス
伝達用端子と、 マイコンMC2の直列データ入力端子SDIにコ
ンバータCV、レンズLEからのデータを入力させ
る信号入力用端子と、アース端子とを備えてい
る。なお、マイコンMC2の直列データ入力部の
回路構成を第4図に、コンバータCVの回路CVC
およびレンズLEの回路LECの回路構成を第5図
に示す。 測光回路LMCは、マイコンMC2のアナログ
入力用端子ANIにアナログ値の測光信号を、基
準電圧入力端子VRにD−A変換用の基準電圧信
号を与えている。マイコンMC2は、測光回路
LMCからの基準電圧信号に基づいて、端子ANI
に入力するアナログ測光信号をデイジタル信号に
変換する。表示制御回路DSCは、データバスDB
を介して入力する種々のデータに応じて、液晶表
示部DSPにより露出制御値を表示するとともに
発光ダイオードLD10〜LD1nにより警告表示
等を行なう。マイコンMC2の出力端子O8は測
光スイツチMESが閉成されてからカメラの露出
制御動作が開始するまでの間“High”となつて
おり、インバータIN8によりトランジスタBT3
はこの間のみ発光ダイオードLD10〜LD1nを
発光可能とする。 デコーダDEC1は、マイコンMC2の出力ポー
トOP1から与えられる信号に応じて、装置
MSE,TSE,ASE,SSE、回路DSC,LAのう
ちいずれかの装置または回路とマイコンMC2と
の間でデータバスDBを介してデータの受け渡し
を行なうかを示す信号を出力端子a0〜an+1
に与える。例えば、マイコンMC2が露出制御モ
ードのデータを読込む場合には、出力ポートOP
1からの特定データで出力端子aoが“High”に
なることにより、データバスDBに露出制御モー
ド設定装置MSEから設定露出制御モードを示す
データが出力され、このデータがマイコンMC2
の入出力ポートI/Oから読込まれる。同様に、
設定絞り値を読込む場合には端子a2が“High”
になる。表示制御回路DSCに表示用データを送
る場合には、送るデータに応じて端子a4〜an
の1つが“High”になる。また、後述するレン
ズの変換係数データKDを送る場合には入出力ポ
ートI/OからデータバスDBにこの変換係数デ
ータを出力した後に出力ポートOP1に特定デー
タを一定時間出力し、端子an+1からのパルス
によりラツチ回路LAに変換係数データをラツチ
させる。 露出制御装置EXCは、マイコンMC2の割込信
号入力端子itに“High”の割込み信号が与えら
れるとにより、以下の露出制御動作を開始するよ
うになつており、レリーズ回路、ミラー駆動回
路、絞り制御回路、露出時間制御回路を備えてい
る。この装置EXCは、マイコンMC2の出力端子
O4からパルスが出力されると、データバスDB
に出力されている絞り込み段数データを取込み、
レリーズ回路を作動させて露出制御動作を開始さ
せる。露出制御動作の開始から一定時間が経過す
ると、マイコンMC2から露出時間データがデー
タバスDBに、パルスが端子O5に出力される。
これによつて露出制御装置EXCは露出時間デー
タを取込み、ミラー駆動回路を作動させて反射ミ
ラーの上昇を開始させるとともに、絞り制御回路
を作動させて絞り込み段数データだけ絞りを絞り
込ませる。反射ミラーの上昇が完了すると、シヤ
ツター先幕の走行が開始される。同時に、カウン
トスイツチCOSが閉成することにより露出時間
制御回路が作動して露出時間データに対応した時
間のカウントが開始される。カウントが完了する
とシヤツター後幕の走行が開始され、絞りが開か
れ、ミラーが下降することにより露出制御動作が
完了する。 レリーズスイツチRLSはレリーズボタンの押
し下げ操作の第2段階で閉成され、このスイツチ
RLSが閉成されるとインバータIN3の出力、即
ちアンド回路AN1の一方の入力端が“High”
になる。スイツチEESは露出制御動作が完了する
と閉成され、露出制御機構(不図示)が動作可能
な状態にチヤージされると開放される。このスイ
ツチの開閉状態を示す信号はインバータIN4を
介してマイコンMC2の入力端子i2およびアン
ド回路AN1の他方の入力端に与えられる。尚、
アンド回路AN1の出力端はマイコンMC2の割
込信号入力端子itに接続されている。従つて露出
制御機構のチヤージが完了していない状態では、
アンド回路AN1のゲートは閉じられており、レ
リーズスイツチRLSが閉成されてもアンド回路
AN1の出力は“Low”のままである。即ち、マ
イコンMC2には割込信号は入力されず、露出制
御動作は開始されない。一方、露出制御機構のチ
ヤージが完了している状態では、アンド回路AN
1のゼートは開かれており、レリーズスイツチ
RLSが閉成されるとアンド回路AN1の出力が
“High”になつて割込信号がマイコンMC2の割
込端子itに入力し、マイコンMC2は直ちに露出
制御の動作に移行する。 マイコンMC2の出力端子O1,O2,O3は
それぞれマイコンMC1の入力端子i11,i1
2,i13に接続されている。ここで、出力端子
O1は、マイコンMC1で合焦検出動作を行なわ
せるときは“High”、行なわせないときは
“Low”になる。出力端子O2は、モーターMO
を時計方向に回転させるとフオーカス用レンズ
FLが繰り出されるように構成される交換レンズ
が装着されている場合は“High”、モーターMO
を反時計方向に回転させると繰り出される交換レ
ンズの場合は“Low”になる。出力端子O3は、
結像位置の合焦位置からのズレ量とデフオーカス
方向とに基づいてフオーカス用レンズを合焦位置
に向けて駆動する方式(以下、プレデイクタ一方
式と称する)のみに対応して焦点調節がなされる
交換レンズの場合は“Low”、合焦位置からのズ
レ方向の信号(前ピン、後ピン、合焦)でレンズ
を駆動する方式(以下、三点指示方式と称する)
とこのプレデイクター方式との併用で焦点調節が
なされる交換レンズの場合には“High”となる。
スイツチFASは、不図示の手動切換部材によつ
て開閉され、合焦状態の検出結果に応じてフオー
カス用レンズが合焦位置まで駆動されて自動的に
焦点調節が行なわれるモード(以下、AFモード
と称する)のときは閉成され、合焦状態の検出結
果に応じて合焦状態の表示だけが行なわれ、焦点
調節は手動で行なわれるモード(以下、FAモー
ドと称する)のときには開放される。このスイツ
チFASの開閉信号はインバータIN6を介してマ
イコンMC2の入力端子i1及びマイコンMC1
の入力端子i14に与えられる。 マイコンMC1の出力端子O16は、インバー
タIN5を介してトランジスタBT2のベースに接
続されている。従つて、端子O16が“High”
になると、トランジスタBT2が導通してパワー
オンリセツト回路PO2、焦点検出用受光部
FLM、受光部制御回路COT、モーター駆動回路
MDR、エンコーダENC、発光ダイオード駆動回
路FADに電源ラインVFを介して給電が開始され
る。この給電開始により、パワーオンリセツト回
路POR2からリセツト信号PO2が出力される。 発光ダイオード駆動回路FADは、例えば第6
図に示すような回路構成となつており、マイコン
MC1の出力ポートOP0、即ち出力端子O17,
O18,O19から出力されるデータに応じて発
光ダイオードLD0,LD1,LD2を駆動する。
この回路構成により、マイコンMC1の出力端子
O17,O18,O19のいずれか1つの端子が
“High”となると前ピン表示用発光ダイオード
LD0、合焦表示用発光ダイオードLD1、後ピン
表示用発光ダイオードLD2のいずれか1つが点
灯して前ピンまたは合焦または後ピンを表示す
る。また、出力端子O17,O19の2端子が
“High”となると、発振回路OSCからのクロツク
パルスCPに基づいて発光ダイオードLD0,LD
2が同時に点滅して合焦検出不能を表示する。表
1にその動作状態を示す。
Technical Field The present invention provides a driving means for driving a focus adjustment member of a photographic lens on the camera body side, receives light from a subject to be focused that has passed through the photographic lens, and receives light from an object to be focused at a predetermined focal point of an image forming position of the subject to be focused. Detecting the amount of deviation with respect to the position, calculating the driving amount data of the driving means required to move the imaging position to the expected focal position based on the data of this deviation amount, and driving by the amount corresponding to the calculated data. The present invention relates to an automatic focus adjustment device for an interchangeable lens camera that automatically adjusts the focus by driving means. Prior Art In the automatic focus adjustment device described above, when calculating the drive amount of the drive means from the detected shift amount (in other words, converting shift amount data into drive amount data), the shift amount and drive amount are calculated. Since there is a substantially comparative relationship, driving amount data can be obtained by multiplying deviation amount data by an appropriate conversion coefficient. The value of this conversion coefficient is based on optical conditions such as the focal length and lens configuration of the interchangeable lens, mechanical conditions on the photographing lens side such as the configuration of the focus adjustment mechanism in the interchangeable lens and the drive amount transmission mechanism from the camera body, and the camera body. It changes depending on the mechanical conditions of the camera body, such as the drive means of the camera and the configuration of the mechanism for transmitting the drive amount to the photographic lens. Therefore,
If the drive amount data of the drive means is calculated based only on the shift amount data and the drive means is driven, the imaging position may be driven to a position other than the expected focus position and proper focus adjustment may not be performed. By projecting ultrasonic waves onto the object to be focused and detecting the reflection time, the distance from the camera to the object to be focused is detected without going through the photographic lens, and the focus adjustment member of the photographic lens is adjusted based on this distance data. Japanese Patent Laid-Open No. 11275/1983 proposes a device that calculates the amount of drive required to drive a camera from a position corresponding to the infinite photographing distance to a position corresponding to the detection distance. In this device, a calculation circuit is provided for each interchangeable lens to convert the distance data obtained from the camera body into the drive amount data, and the drive amount data obtained by transferring the distance data to the calculation circuit of the interchangeable lens is used. The driving amount data of the driving means is calculated through the process of transferring it to the camera body, and the camera body side is equipped with many calculation circuits corresponding to various types of interchangeable lenses, and one calculation circuit corresponding to the attached interchangeable lens is installed on the camera body side. The drive amount data is selected and calculated by this arithmetic circuit. However, although this device is similar to the present invention in that it shows a method of converting data detected by the camera body into drive amount data, it is possible to convert the detected data to the distance obtained without passing through the photographic lens. It is different from the present invention in terms of data, and it is not only very difficult to apply the above method to the present invention, but also requires the provision of a calculation circuit for each interchangeable lens, or the provision of a large number of calculation circuits in the camera body. This has the disadvantage of increasing the burden on the interchangeable lens or camera body. Although the structure is different from the present invention, in an automatic focus adjustment device for an interchangeable lens camera, the driving means is provided on the interchangeable lens side, and the above relationship between the driving amount of the driving means and the moving amount of the imaging position is always the same. An automatic focus adjustment device is provided in which each interchangeable lens is configured so that the drive means stops driving when the amount of displacement obtained by the camera body and the amount of drive reach a predetermined relationship,
This was proposed in Japanese Patent Application Laid-Open No. 57-165821. However, with this device, it is necessary to provide a driving means for each interchangeable lens and to always match the relationship between the amount of movement and the amount of drive, which has the disadvantage of increasing the burden on the interchangeable lens. Purpose The present invention provides a driving means for driving a focus adjustment member of a photographic lens on the camera body side, receives light from a subject to be focused that has passed through the photographic lens, and adjusts the expected focal point of the imaging position of the subject to be focused. Detects the amount of deviation with respect to the position, calculates the driving amount data of the driving means required to move the imaging position to the expected focal position based on the data of this deviation amount, and drives the driving means by an amount corresponding to the calculated data. An object of the present invention is to provide an efficient automatic focus adjustment device for an interchangeable lens camera that automatically adjusts the focus by driving the lens, and can reduce the burden on both the camera body and the interchangeable lens. SUMMARY The present invention relates to the relationship between the amount of transmitted drive transmitted from the camera body to the photographing lens and the amount of movement of the imaging position of the object in focus, that is, the transmission to the photographing lens required for unit movement of the imaging position. A first data output means for outputting first data unique to the photographing lens indicating the amount of drive is provided on the interchangeable lens side, and the amount of drive of the drive means of the camera body and the amount of transmitted drive transmitted from the camera body to the photographing lens are determined. In other words, by providing a second data output means on the camera body side that outputs second data specific to the camera body indicating the drive amount of the drive means required to transmit a unit drive amount to the photographic lens, the drive speed can be improved. The conversion coefficients used to calculate the quantity data are separated as information specific to the camera body and the interchangeable lens, and these first and second
The drive amount data of the drive means is calculated based on the first and second data from the data output means and data on the amount of deviation of the imaging position of the object to be focused detected by the camera body from the expected focus position. This is what I did. As will be described later, if a monitor means consisting of, for example, an encoder is provided on the camera body side to monitor the driving state of the drive means, and the drive means is controlled based on the output of this monitor, the configuration of the monitor means may be It goes without saying that the second data is added to the second data. Embodiment An outline of a camera system for automatic focus adjustment according to the present invention will be explained based on FIG. In Figure 1, the left side of the dashed-dotted line is the zoom lens LZ,
The right side is the camera body BD, and the two are connected mechanically through clutches 106 and 107 and electrically through connection terminals JL1 to JL5 and JB1 to JB5, respectively. In this camera system, the focus lens FL of the zoom lens LZ, the zoom lens
The subject light that has passed through ZL and master lens ML is
The light passes through the central semi-transparent part of the reflection mirror 108 of the camera body BD, is reflected by the sub-mirror 109, and is received by the focus detection light receiving part FLM.
The optical system is configured. The signal processing circuit 112 is a light receiving unit FLM for focus detection.
Based on the signals from the in-focus position, the differential focus amount |ΔL| indicating the amount of deviation from the in-focus position and the differential focus direction (front focus, rear focus) signals are calculated. motor
The MO is driven based on these signals, and its rotation is transmitted to the zoom lens LZ via the slip mechanism SLP, the drive mechanism LDR, and the clutch 107 on the camera body side. Note that the slip mechanism SLP prevents the motor MO from being subjected to any torque when a torque exceeding a predetermined value is applied to the driven portion of the zoom lens LZ. In the zoom lens LZ, a female helicoid screw is formed on the inner periphery of the focus adjusting member 102 for driving the focus lens FL, and a fixing member integrated with the lens mount 121 is screwed into the female helicoid screw. A male helicoid thread is formed on the outer periphery of the portion 101. A large gear 103 is provided on the outer periphery of the focusing member 102, and this large gear 103 is connected to a lens side clutch 107 via a small gear 104 and a transmission mechanism 105.
As a result, the rotation of the motor MO is caused by the slip mechanism SLP on the camera body, the clutch 107 on the camera body side,
It is transmitted to the focus adjustment member 102 via the clutch 106 on the lens side, the transmission mechanism 105 in the lens, the small gear 104, and the large gear 103, and the focus lens FL is moved back and forth in the optical axis direction by the helicoid screw. focus adjustment is performed. Also,
An encoder for monitoring the amount of drive of the lens FL is connected to the drive mechanism LDR of the camera body BD, and the encoder ENC outputs a number of pulses corresponding to the amount of drive of the lens FL. Here, the rotation speed of the motor MO is NM (rot),
The number of pulses from the encoder ENC is N, the resolution of the encoder is ρ (1/rot), the reduction ratio of the mechanical transmission system from the rotation axis of the motor MO to the mounting axis of the encoder ENC is μP, and the number of pulses from the rotation axis of the motor MO to the camera is The reduction ratio of the mechanical transmission system from the main body side clutch 107 is μB, the reduction ratio of the mechanical transmission system from the lens side clutch 106 to the large gear 103 is μL, and the helicoid lead of the focus adjustment member 102 is LH (mm/
rot), the amount of movement of the focus lens FL is △d
(mm), then N=ρ・μP・NM △d=NM・μB・μL・LH That is, △d=μB・N・μL・LH/(ρ・μP)...The relational expression of (1) is can get. Also, when the lens is moved by △d (mm), the ratio of the amount of movement △L (mm) of the imaging plane to the above △d is expressed as Kop=△d/△L...(2), then the formula From (1) and (2), the following relational expression is obtained: N=(ρ・μP/μB)・Kop・△L/ (μL・LH) ……(3). Here, if KL=Kop/(μL・LH)...(4) KB=ρ・μP/μB...(5), then the relational expression N=KB・KL・△L...(6) is obtained. It will be done. In addition, in equation (6), △L is the signal processing circuit 112
The differential focus amount |△L| is obtained as a signal in the differential focus direction. Further, KL in equation (4) is output from the lens circuit LEC in accordance with the focal length set by the rotational operation of the zoom ring ZR for zooming operation of the zoom lens LZ. In other words, data corresponding to the rotational position of Zoom Lens ZR is transferred to the code plate FCD.
is output, this data is sent to the lens circuit LEC, and the KL data stored in the address corresponding to the data from the code board FCD is read in series by the reading circuit LDC of the camera body. The code plate FCD has a predetermined code pattern so as to output data corresponding to the rotation setting position of the zoom ring ZR. Also, the lens circuit
A fixed storage device such as a ROM built into the LEC stores KL data corresponding to the focal length set by the zoom ring ZR on each code board.
It is fixedly stored in advance at an address corresponding to the data from the FCD. Furthermore, KB in equation (5) is data that is fixedly determined according to the reduction ratio μB in the camera body,
This data KB is output from the fixed data output circuit 110. Here, terminals JB1 and JL1 are connected from the reading circuit LDC on the camera body side to the lens circuit LEC on the lens side.
A power supply is sent through the terminals JB2 and JL2, a synchronizing clock pulse is sent through the terminals JB2 and JL2, and a read start signal is sent through the terminals JB3 and JL2, respectively. Also, terminals JL4 and JB are connected from the lens circuit LEC to the reading circuit LDC.
Data KL is output in series via 4. still,
Terminals JB5 and JL5 are common ground terminals. When the reading start signal is input through terminals JB3 and JL3, the lens circuit LEC reads KL data corresponding to the focal length determined by the rotation setting of the zoom ring.
The reading circuit is connected in series in synchronization with the clock pulse input from the camera body via terminals JB2 and JL2.
Output to LDC. And the reading circuit LDC is terminal
Based on the same clock pulse as the clock pulse output to JB2, serial data from the terminal is read and converted to parallel data. The multiplication circuit 111 receives data KL from the reading circuit LDC and data from the fixed data output circuit 110.
Based on KB, the calculation KL·KB=K is performed.
The multiplication circuit 113 receives the defocus amount data |△L| from the signal processing circuit 112 and the multiplication circuit 111
The calculation K·|ΔL|=N is performed based on the data K from , and the number of pulses to be detected by the encoder ENC is calculated. The motor control circuit 114 is
The motor MO is rotated clockwise or counterclockwise according to the signal in the defocus direction from the signal processing circuit 112, and when a number of pulses equal to the value N calculated in the multiplication circuit 113 is input from the encoder ENC, the focus It is determined that the lens FL has moved by the amount of movement Δd to the in-focus position, and the rotation of the motor MO is stopped. In the above explanation, data is stored on the BD side of the camera body.
By fixedly storing KB and multiplying this data KB by the data KL from the lens, K=KL・KB
However, the calculation of the K value is not limited to the above method. For example, if a zoom lens can be attached to any of multiple types of camera bodies with different KB values, K1 = KL・KB1 corresponding to the camera body with a specific KB value from the lens circuit LEC of the zoom lens LZ. output data according to the set focal length. On the other hand, in the camera body of this specific model, the fixed data output circuit 110 and the multiplication circuit 111 are unnecessary, and the data K1 from the reading circuit LDC is directly input to the multiplication circuit 13.
When the above lens is attached to another camera body having a value KB2 (≠KB1) different from the above specific KB value, the data of KB2/KB1 is output from the fixed data output circuit 110. The multiplication circuit 111 calculates K2=K1・KB2/KB1=KL・
The value of KL·KB2 may be obtained by calculating KB2. In addition, all KB value data of multiple types of camera bodies with different KB values K1=KL・KB1・K2=
KL, KB2,..., Kn = KL, KBn are all stored in the lens, all of this data is sent to the camera body, and the camera body selects the data according to its own KB value. Good too.
Alternatively, data indicating the type of camera may be sent from the camera body to the lens, and the lens side may send data corresponding to the type of camera to the camera. In this way, the fixed data output circuit 110 and the multiplication circuit 111 on the camera side become unnecessary. In particular, in the case of a front group extension type zoom lens in which the focus lens FL is placed in front of the zoom lens ZL as described later, the value of Kop is Kop=f1 2 / f 2 ...(7 ) f1: This is the focal length of the focus lens, and the KL value or K value for one zoom lens changes over a very wide range. in this case,
Divide the data KL or K stored in the lens into exponent data and significant figure data (for example, if it is 8-bit data, the upper 4 bits are the exponent part and the lower 4 bits are the significant figure number), By shifting the lower 4 bits of the data read by the reading circuit LDC of the camera body by the data of the exponent part and inputting it to the multiplication circuit 111 or 113, even if the value of KL or K changes significantly. I can deal with it fully. In the explanation of FIG. 1 above, in order to make it easier to understand the overall function and operation of the present invention, the device of the present invention was shown to be constructed by a combination of circuit blocks. Most of the mechanisms of these circuit blocks are achieved by a microcomputer (hereinafter referred to as a microcomputer), as described below. FIG. 2 is a block diagram mainly showing the configuration of the circuit section on the camera body BD side of the configuration shown in FIG. 1. In the figure, a converter CV is inserted between the camera body BD and the lens LE to extend the focal length of the lens LE by, for example, 1.4 times or 2 times. The camera body BD and converter CV are connected through connection terminal groups CN1 and CN2, respectively.
The converter CV and lens LE are connected through respective connection terminal groups CN3 and CN4, so that various information from the converter CV and lens LE can be given to the camera body BD side. When the power switch MAS is closed, the power only circuit POR1, microcomputer MC1,
Power is started to be supplied to MC2, display control circuit DSC, oscillation circuit OSC, inverters IN1 to IN8, and AND circuit AN1 via the power supply line (+E). By starting this power supply, the power-on reset circuit POR1
The reset signal PO1 is output from the microcomputer.
MC1, MC2 and display control circuit DSC are reset. The microcomputer MC2 is a microcomputer that sequentially performs the overall operation of this camera system, and the microcomputer MC1 is a microcomputer that sequentially performs focus adjustment operations in response to control signals from the microcomputer MC2. The operation of the microcomputer MC2 is shown in the flowchart of FIG. 3, and the operation of the microcomputer MC1 is shown in the flowcharts of FIGS. 8 to 10. The photometry switch MES is a release button (not shown)
When this switch MES is closed, a "High" level signal is applied to the input terminal i0 of the microcomputer MC2 via the inverter IN1. In response to this, the microcontroller
The terminal O0 of MC2 becomes “High” and the inverter
Transistor BT1 becomes conductive via IN2. Due to the conduction of this transistor BT1, the power-on reset circuit POR3, the photometry circuit LMC, and the decoder
DEC1, light emitting diode driving transistor BT
3. Film sensitivity setting device SSE, aperture value setting device
ASE, exposure time setting device TSE, exposure control mode establishment device MSE, exposure control device EXC, latch circuit
Power begins to be supplied to LA via power line VB.
By starting this power supply, the power-on reset circuit
A reset signal PO3 is output from POR3 and the exposure control device EXC is reset. In addition, the "High" level signal from the output terminal O0 of the microcomputer MC2 is used as the power supply voltage VL of the converter CV and lens LE by the buffer BF, and is applied to the connection terminal group CN1,
Converter CV via CN2, CN3, CN4
is applied to the circuit CVC within the lens and the circuit LEC within the lens LE. In addition to this power supply terminal, the connection terminal group includes a signal transmission terminal that is output from the output terminal O6 of the microcomputer MC2 and releases the converter circuit CVC and lens circuit LEC from the reset state.
A clock pulse transmission terminal for transmitting synchronization clock pulses from the clock output terminal SCO of the microcomputer MC2 to the converter circuit CVC and lens circuit LEC, and input data from the converter CV and lens LE to the serial data input terminal SDI of the microcomputer MC2. It has a signal input terminal and a ground terminal. The circuit configuration of the serial data input section of the microcomputer MC2 is shown in Figure 4, and the circuit CVC of the converter CV
FIG. 5 shows the circuit configuration of the circuit LEC of the lens LE. The photometric circuit LMC provides an analog value photometric signal to the analog input terminal ANI of the microcomputer MC2, and provides a reference voltage signal for DA conversion to the reference voltage input terminal VR. Microcontroller MC2 is a photometric circuit
Based on the reference voltage signal from LMC, terminal ANI
Converts the analog photometry signal input to the digital signal into a digital signal. Display control circuit DSC is data bus DB
In response to various data inputted through the LCD, the liquid crystal display DSP displays exposure control values, and the light emitting diodes LD10 to LD1n display warnings and the like. The output terminal O8 of the microcomputer MC2 is "High" from the time when the photometry switch MES is closed until the exposure control operation of the camera starts, and the output terminal O8 of the microcomputer MC2 is set to "High" from the time when the photometry switch MES is closed until the exposure control operation of the camera starts.
allows the light emitting diodes LD10 to LD1n to emit light only during this period. The decoder DEC1 outputs a signal to the device according to the signal given from the output port OP1 of the microcomputer MC2.
Output terminals a0 to an+1 output a signal indicating whether data is to be exchanged via data bus DB between any device or circuit among MSE, TSE, ASE, SSE, circuit DSC, and LA and microcomputer MC2.
give to For example, when the microcomputer MC2 reads exposure control mode data, the output port OP
When the output terminal ao becomes "High" with the specific data from 1, data indicating the set exposure control mode is output from the exposure control mode setting device MSE to the data bus DB, and this data is sent to the microcontroller MC2.
is read from the input/output port I/O. Similarly,
When reading the set aperture value, terminal a2 is “High”
become. When sending display data to the display control circuit DSC, terminals a4 to an are connected depending on the data to be sent.
One of them becomes “High”. In addition, when sending lens conversion coefficient data KD, which will be described later, after outputting this conversion coefficient data from the input/output port I/O to the data bus DB, output specific data to the output port OP1 for a certain period of time, and then output it from the terminal an+1. The pulse causes the latch circuit LA to latch the conversion coefficient data. The exposure control device EXC starts the following exposure control operations when a "High" interrupt signal is applied to the interrupt signal input terminal it of the microcomputer MC2, and controls the release circuit, mirror drive circuit, and aperture. Equipped with a control circuit and an exposure time control circuit. When a pulse is output from the output terminal O4 of the microcomputer MC2, this device EXC connects to the data bus DB.
Import the number of refinement stages data output to
Activate the release circuit to start exposure control operation. When a certain period of time has elapsed from the start of the exposure control operation, the microcomputer MC2 outputs exposure time data to the data bus DB and pulses to the terminal O5.
As a result, the exposure control device EXC takes in the exposure time data, activates the mirror drive circuit to start raising the reflecting mirror, and activates the aperture control circuit to narrow down the aperture by the number of aperture steps. When the reflection mirror has finished rising, the shutter front curtain starts running. At the same time, the count switch COS is closed, so that the exposure time control circuit is activated and starts counting the time corresponding to the exposure time data. When the count is completed, the rear shutter curtain starts running, the aperture opens, and the mirror moves down, completing the exposure control operation. The release switch RLS is closed in the second step of pressing down the release button, and this switch
When RLS is closed, the output of inverter IN3, that is, one input terminal of AND circuit AN1 becomes “High”
become. The switch EES is closed when the exposure control operation is completed, and opened when the exposure control mechanism (not shown) is charged to an operable state. A signal indicating the open/closed state of this switch is applied to the input terminal i2 of the microcomputer MC2 and the other input terminal of the AND circuit AN1 via the inverter IN4. still,
The output terminal of the AND circuit AN1 is connected to the interrupt signal input terminal it of the microcomputer MC2. Therefore, if the exposure control mechanism is not fully charged,
The gate of the AND circuit AN1 is closed, and even if the release switch RLS is closed, the gate of the AND circuit AN1 is closed.
The output of AN1 remains “Low”. That is, no interrupt signal is input to the microcomputer MC2, and no exposure control operation is started. On the other hand, when the exposure control mechanism is fully charged, the AND circuit AN
1 is open and the release switch is
When RLS is closed, the output of the AND circuit AN1 becomes "High" and an interrupt signal is input to the interrupt terminal it of the microcomputer MC2, and the microcomputer MC2 immediately shifts to exposure control operation. Output terminals O1, O2, O3 of microcomputer MC2 are input terminals i11, i1 of microcomputer MC1, respectively.
2, connected to i13. Here, the output terminal O1 becomes "High" when the microcomputer MC1 performs the focus detection operation, and becomes "Low" when the focus detection operation is not performed. Output terminal O2 is the motor MO
When rotated clockwise, the focus lens
“High” if an interchangeable lens configured to extend the FL is installed, and the motor MO
For interchangeable lenses that are extended by rotating counterclockwise, the setting is "Low." The output terminal O3 is
Focus adjustment is performed only in accordance with a method (hereinafter referred to as a predictor one-way method) in which the focus lens is driven toward the in-focus position based on the amount of deviation of the imaging position from the in-focus position and the defocus direction. For interchangeable lenses, the lens is driven by "Low" signals (front focus, rear focus, focus) in the direction of deviation from the in-focus position (hereinafter referred to as the three-point indication method).
In the case of an interchangeable lens whose focus is adjusted in combination with this predictor method, it will be "High".
The switch FAS is opened and closed by a manual switching member (not shown), and the focus lens is driven to the in-focus position according to the detection result of the in-focus state, and the focus is automatically adjusted (hereinafter referred to as AF mode). (hereinafter referred to as FA mode), it is closed, and only the focus state is displayed according to the detection result of the focus state, and it is opened in the mode in which focus adjustment is performed manually (hereinafter referred to as FA mode). . The open/close signal of this switch FAS is sent to the input terminal i1 of the microcomputer MC2 via the inverter IN6 and to the input terminal i1 of the microcomputer MC1.
is applied to the input terminal i14 of. The output terminal O16 of the microcomputer MC1 is connected to the base of the transistor BT2 via an inverter IN5. Therefore, terminal O16 is “High”
, the transistor BT2 becomes conductive and the power-on reset circuit PO2 and the focus detection light receiving section are activated.
FLM, light receiving section control circuit COT, motor drive circuit
Power is started to be supplied to the MDR, encoder ENC, and light emitting diode drive circuit FAD via the power supply line VF. With this start of power supply, a reset signal PO2 is output from the power-on reset circuit POR2. The light emitting diode drive circuit FAD is, for example, the sixth
The circuit configuration is as shown in the figure, and the microcomputer
Output port OP0 of MC1, that is, output terminal O17,
Light emitting diodes LD0, LD1, and LD2 are driven according to data output from O18 and O19.
With this circuit configuration, when any one of the output terminals O17, O18, and O19 of the microcomputer MC1 becomes "High", the light emitting diode for displaying the previous pin
Any one of LD0, focus display light emitting diode LD1, and back focus display light emitting diode LD2 lights up to indicate front focus, focus, or back focus. Furthermore, when the two output terminals O17 and O19 become "High", the light emitting diodes LD0 and LD are activated based on the clock pulse CP from the oscillation circuit OSC.
2 blinks at the same time to indicate that focus cannot be detected. Table 1 shows its operating status.

【表】 合焦検出用受光部FLMは合焦検出用の複数の
受光部を備えたCCD(Charge Coupled Device)
で形成されている。制御回路COTは、マイコン
MC1からの信号に基づいてCCD(FLM)の駆
動、CCD出力のA−D変換およびA−D変換出
力のマイコンMC1への伝達機能を備えている。 尚、マイコンMC1から制御回路COTに対し
て、出力端子O10からCCD,FLMの積分動作
を開始させるためのパルス信号が、出力端子O1
1からこの積分動作を強制的に停止させるための
パルス信号がそれぞれ出力される。また、マイコ
ンMC1に対して制御回路COTから、CCD,
FLMでの積分動作が完了したことを示す信号が
割込端子itに、CCD,FLMの各受光素子ごとに
その蓄積電化のA−D変換動作が完了したことを
示す信号が入力端子i10に、上記A−D変換さ
れたデータが入力ポートIP0にそれぞれ入力さ
れる。更に、CCD,FLMに対して制御回路COT
から、リセツト信号が端子φRに、転送指令信号
が端子φTに、転送用クロツクが端子φ1,φ2,
φ3に、参照電位が端子ANBにそれぞれ入力さ
れ、CCD,FLMから制御回路COTに対して、端
子ANBからモニター用受光部の受光量に応じた
電位が、端子AOTから各受光部での蓄積電化が
それぞれ出力される。この制御回路COTの具体
的な回路構成は後述の第14図で詳述する。 ここで、CCD,FLM、制御回路COT、マイコ
ンMC1の作動を簡述すると、制御回路COTは、
マイコンMC1の出略端子O10からの積分開始
信号に応答して、 CCD,FLMにリセツト信号を送つてCCD,
FLMをリセツトするとともに、参照電位の信号
をCCD,FLMに与える。CCD,FLM内の各受光
部ではその受光量に応じて蓄積電荷が増加してい
き、これにより端子ANBから出力される電位が
下降していく。制御回路COTは、端子ANBのレ
ベルが所定値に達すると、CCD,FLMへ転送指
令信号を出力してCCD,FLMの各受光部の蓄積
電荷をCCD,FLM内の転送ゲートに転送させる
とともに、マイコンMC1の割込端子itに積分完
了信号を与える。そして、制御回路COTは、
CCD,FLMの転送ゲートに転送された蓄積電荷
をφ1,φ2,φ3の転送用クロツクに基づいて
受取つてA−D変換し、1つの受光部による蓄積
電荷のA−D変換が完了する毎にマイコンMC1
の入力端子i10にA−D変換完了信号を与え
る。マイコンMC1は、この信号に応答してA−
D変換されたデータを入力ポートIP0から取込
む。そして、マイコンMC1はCCD,FLMの受
光素子の数だけA−D変換されたデータを取込む
と、CCD出力の取込みを終了する。 なお、マイコンMC1は積分開始から一定時間
が経過しても割込信号が入力しないときには、
CCDの積分動作を強制的に停止させるためのパ
ルスをマイコンMC1の端子O11から出力す
る。制御回路COTはこのパルスに応答して端子
φTから転送指令信号をCCDに与えるとともに、
マイコンMC1に割込信号を出力して、前述の
CCD出力のA−D変換、データ転送の動作を行
なう。 モータ駆動回路MDRは、マイコンMC1の出
力端子O12,O13,O14から与えられる信
号に基づいてモーターMOを駆動する。尚、マイ
コンMC1の出力端子O12が“High”のときモ
ーターMOは時計方向に、出力端子O13が
“High”のときモーターMOは反時計方向に駆動
され出力端子O12,O13がともに“Low”
のときモーターMOは駆動が停止される。さら
に、マイコンMC1の出力端子O14が“High”
のときモーターMOは高速駆動され、“Low”の
とき低速駆動される。このモーター制御回路
MDRの具体例は、本願出願人がすでに特願昭57
−136772号で提案したが、本発明の要旨とは無関
係であるので説明を省略する。 エンコーダENCは、モーターMOの回転トルク
をレンズに伝えるためのカメラ本体側の伝達機構
LMDの駆動量を、たとえばフオトカプラーによ
りモニターし、その駆動量に比例した数のパルス
を出力する。このパルスはマイコンMC1のクロ
ツク入力端子DCLへ入力されて自動的にカウン
トされ、そのカウント値ECDは後述のマイコン
MC1のフローでのカウンタ割込に用いられる。
また、このパルスは、モーター駆動回路MDRに
送られ、そのパルス数に応じてモーターMOの回
転速度が制御される。 第3図は、第2図のマイコンMC2の動作を示
すフローチヤートである。マイコンMC2の動作
は大まかに以下の3つのフローに大別される。
#1のステツプから始まるフローは、電源スイツ
チMASの開成により開始されるメインのフロー
であり、測光スイツチMESが閉成される(#2)
ことにより、焦点調節のための回転部以外の回路
部への給電開始(#4)、カメラ本体BDで設定
された露出制御情報の読込み(#5)、レンズ
LE、コンバータCVからのデータの読込み(#6
〜#12)、測光値の読込み(#13、14)、AFモー
ド、FAモードの自動設定(#16〜#27)、露出制
御値の演算(#28)および表示(#31、#32)等
の動作を繰返す。#45のステツプから始まるフロ
ーは、マイコンMC2に内蔵されたタイマーから
周期的に出力されるタイマー信号により、測光ス
イツチMESが開放されても所定時間(例えば15
秒)は上記メインフローの動作を行なわせるため
のタイマー割込みのフローである。また、#59の
ステツプから始まれフローは、レリーズスイツチ
RLSの閉成により、カメラの露出制御動作を開
始させるためのレリーズ割込みのフレーである。
以下、第3図ないし第6図に基づいてマイコン
MC2に関連する第2図のカメラシステムの動作
を詳述する。 まず、電源スイツチMASが閉成されると、パ
ワーオンリセツト回路POR1からリセツト信号
PO1が出力される。このリセツト信号PO1によ
り、マイコンMC2はメインのフローにおけるリ
セツト動作を#1のステツプで行なう。測光スイ
ツチMESが閉成されることにより、#2のステ
ツプで入力端子i0が“High”になつたことが
判明されると、タイマー割込を不可能にし
(#3)、端子O0を“High”にする(#4)。こ
れによりトランジスタBT1が導通して電源ライ
ンVBからの給電が開始される。同時に、バツフ
アBFを介して電源ラインVLからコンバータCV
および交換レンズLEへの給電が開始される。
#5のステツプでは、露出制御モード設定装置
MSE、露出時間設定装置TSE、絞り値定装置
ASE、フイルム感度設定装置SSEからのデータ
がデータバスDBを介して入出力ポートI/Oに
順次取込まれる。 #6ないし#12のステツプでは、まずレジスタ
Aにデータ“O”が制定され(#6)、端子O6
が“High”とされて、コンバータ回路CVC、レ
ンズ回路LECのリセツト状態が解除され、#7
−1、データの直列入力命令が出力される(#7
−2)。コンバータ回路CVC、レンズ回路LECか
ら1つのデータの入力が完了すると(#8)、取
込まれたそのデータがレジスタAの内容に対応す
るレジスタM,Aに設定される(#9)。次に、
レジスタAの内容に“1”が加えられ(#10)、
その内容がAc(一定値)になつたかどうかが判別
される。ここで、(A)≠Acならば#7−2のステ
ツプに戻つて、再び次のデータの取込みが行なわ
れる。(A)=Acになると、レンズLE及びコンバー
タCVからのデータの取込みが完了したことにな
るので、出力端子O6を“Low”にして
(#12)、コンバータ回路CVC、レンズ回路LEC
をリセツトする。 ここで、レンズLE及びコンバータCVからのデ
ータの取込みの具体例を、第4図及び第5図に基
づいて説明する。第4図に示された直列データ入
力部は、例えば8ビツトの直列データを入力させ
る場合に、出力端子SCOから8個のクロツクパ
ルスを出力し、このクロツクパルスの立下りで入
力している直列データを順次読込む。即ち直列デ
ータ入力命令SIINにより、フリツプフロツプFF
1がセツトされて3ビツトのバイナリーカウンタ
ーCO1のリセツト状態が解除される。同時に、
アンド回路AN7のゲートが開かれて、マイコン
MC2内で分周されたクロツクパルスDPが同期
用クロツク出力として出力端子SCOからコンバ
ータCV、レンズLEの回路CVC、LECに送られ
る。また、このクロスパルスは、カウンタCO1、
シフトレジスタSR1のクロツク入力端子に送ら
れる。シフトレジスタSR1はクロツクパルスDP
の立ち下がりで、マイコンMC2の入力端子SDI
に入力しているデータを順次取込んでいく。ここ
で、カウンタCO1のキヤリー端子CYは、8個目
のクロツクパルスDPが入力したときから次のク
ロスパルスDPが入力するまでの期間“High”に
なつている。一方、アンド回路AN5の一方の入
力端にこのキヤリー出力が、他方の入力端にイン
バータIN15を介してクロツクパルスDPが入力
しているので、アンド回路AN5は8個目のクロ
ツクパルスDPの立ち下がりで“High”となつ
て、フリツプフロツプFF1をリセツトし、カウ
ンターCO1もリセツト状態にする。従つて、ア
ンド回路AN5の出力も、カウンタCO1のキヤ
リー端子CYが“Low”になることで“Low”と
なり、次の動作に備える。このアンド回路AN5
からの“High”のパルスで直列入力フラズSIFL
がセツトされてデータ入力の完了が判別され、マ
イコンMC2はシフトレジスタSR1から内部デ
ータバスIDBに出力されているデータを所定のレ
ジスタM,Aに格納する。 第5図において、一点鎖線から左側がコンバー
タCVのコンバータ回路CVCであり、右側がレン
ズLEのレンズ回路LECである。マイコンMC2
の出力端子O6が“High”になるとカウンタCO
3,CO5,CO7,CO9のリセツト状態が解除
され、これらのカウンタはマイコンMC2の出力
端子SCOから与えられるクロツクパルスDPをカ
ウントすることが可能となる。3ビツトのバイナ
リーカウンタCO3,CO7はこのクロツクパルス
DPの立上がりをカウントし、8個目のクロツク
パルスの立上がりから次のクロツクパルスDPの
立上がりまでの間キヤリー端子CYを“High”に
する。4ビツトのバイナリーカウンタCO5,CO
9はこのキヤリー端子CYの立下がりをカウント
し、8個のクロツクパルスの最初のパルスの立上
がり毎にカウンタCO5,CO9のカウント値が1
づつ増加する。 コンバータ回路CVCのROM,RO1は、カウ
ンタCO3のカウント値に基づいて直接そのレジ
スタが指定される。レンズ回路LECのROM,
RO3はカウンタCO1のカウント値に基づいてデ
コーダDE9、データセレクタDS1を介して間接
的にそのレジスタが指定される。ROM,RO1,
RO3からそれぞれ出力されるレンズLE、コンバ
ータCVのデータは、デコーダDE5の出力に応じ
ていずれかの出力が、または直列加算回路AL1
により加算された両者の和の出力或いはすべて
“O”のデータが選択的に出力される。ここで、
焦点距離が固定されているレンズの場合のカウン
タCO9とデコーダDE9とROM,RO3との関係
を表2に、焦点距離が可能なズームレンズの場合
の上記関係を表3に示す。また、コンバータにお
けるカウンタCO5とデコーダDE5とROM,RO
1とカメラ本体への出力データとの関係を表4に
示す。尚、φは各ビツトのデータが“0”でこ
“1”でもよいことを示す。
[Table] Light receiving section for focus detection FLM is a CCD (Charge Coupled Device) with multiple light receiving sections for focus detection.
It is formed of. The control circuit COT is a microcomputer
It has functions of driving the CCD (FLM) based on signals from MC1, A-D conversion of CCD output, and transmission of A-D conversion output to microcomputer MC1. Furthermore, a pulse signal from the microcomputer MC1 to the control circuit COT for starting the integration operation of the CCD and FLM is sent from the output terminal O10 to the control circuit COT.
From 1 onwards, a pulse signal for forcibly stopping this integration operation is outputted. Also, from the control circuit COT to the microcomputer MC1, the CCD,
A signal indicating that the integration operation in the FLM has been completed is sent to the interrupt terminal it, and a signal indicating that the A-D conversion operation of the stored charge has been completed for each light receiving element of the CCD and FLM is sent to the input terminal i10. The above A-D converted data is respectively input to the input port IP0. Furthermore, the control circuit COT for CCD and FLM
, the reset signal is sent to the terminal φR, the transfer command signal is sent to the terminal φT, and the transfer clock is sent to the terminals φ1, φ2,
At φ3, a reference potential is input to the terminal ANB, and from the CCD and FLM to the control circuit COT, a potential corresponding to the amount of light received by the monitor light receiving section is applied from the terminal AOT to the accumulated charge in each light receiving section from the terminal AOT. are output respectively. The specific circuit configuration of this control circuit COT will be explained in detail in FIG. 14, which will be described later. Here, to briefly explain the operations of the CCD, FLM, control circuit COT, and microcomputer MC1, the control circuit COT is
In response to the integration start signal from the output terminal O10 of the microcomputer MC1, a reset signal is sent to the CCD and FLM.
At the same time as resetting the FLM, a reference potential signal is given to the CCD and FLM. In each light receiving section in the CCD and FLM, the accumulated charge increases according to the amount of light received, and as a result, the potential output from the terminal ANB decreases. When the level of the terminal ANB reaches a predetermined value, the control circuit COT outputs a transfer command signal to the CCD and FLM to transfer the accumulated charge in each light receiving section of the CCD and FLM to the transfer gate in the CCD and FLM. Give the integration completion signal to the interrupt terminal it of the microcomputer MC1. And the control circuit COT is
The accumulated charges transferred to the transfer gates of the CCD and FLM are received and A-D converted based on the transfer clocks of φ1, φ2, and φ3, and each time the A-D conversion of the accumulated charges by one light receiving section is completed. Microcomputer MC1
An A-D conversion completion signal is given to the input terminal i10 of. Microcomputer MC1 responds to this signal to
Take in the D-converted data from input port IP0. After the microcomputer MC1 takes in the same number of A-D converted data as the number of light-receiving elements of the CCD and FLM, it finishes taking in the CCD output. Note that if the microcomputer MC1 does not receive an interrupt signal even after a certain period of time has passed since the start of integration,
A pulse for forcibly stopping the integration operation of the CCD is output from the terminal O11 of the microcomputer MC1. In response to this pulse, the control circuit COT gives a transfer command signal to the CCD from the terminal φT, and
Output an interrupt signal to microcontroller MC1 and perform the above
Performs A-D conversion of CCD output and data transfer operations. The motor drive circuit MDR drives the motor MO based on signals given from output terminals O12, O13, and O14 of the microcomputer MC1. When the output terminal O12 of the microcomputer MC1 is "High", the motor MO is driven clockwise, and when the output terminal O13 is "High", the motor MO is driven counterclockwise, and both output terminals O12 and O13 are "Low".
When , motor MO stops driving. Furthermore, the output terminal O14 of the microcomputer MC1 is “High”
When , the motor MO is driven at high speed, and when it is “Low”, it is driven at low speed. This motor control circuit
A specific example of MDR has already been filed by the applicant in the patent application filed in 1982.
Although it was proposed in No. 136772, the explanation is omitted because it is unrelated to the gist of the present invention. The encoder ENC is a transmission mechanism on the camera body side that transmits the rotational torque of the motor MO to the lens.
The amount of drive of the LMD is monitored by, for example, a photocoupler, and a number of pulses proportional to the amount of drive is output. This pulse is input to the clock input terminal DCL of microcomputer MC1 and is automatically counted, and the count value ECD is
Used for counter interrupt in MC1 flow.
Furthermore, this pulse is sent to the motor drive circuit MDR, and the rotational speed of the motor MO is controlled according to the number of pulses. FIG. 3 is a flowchart showing the operation of the microcomputer MC2 shown in FIG. The operation of the microcomputer MC2 can be roughly divided into the following three flows.
The flow starting from step #1 is the main flow that starts when the power switch MAS is opened, and the photometry switch MES is closed (#2).
As a result, power supply starts to the circuit parts other than the rotating part for focus adjustment (#4), reading of the exposure control information set on the camera body BD (#5), and the lens
Reading data from LE, converter CV (#6
~ #12), reading photometric values (#13, 14), automatic setting of AF mode and FA mode (#16 ~ #27), calculation of exposure control values (#28) and display (#31, #32) Repeat these actions. The flow starting from step #45 is based on a timer signal that is periodically output from the timer built into the microcomputer MC2 for a predetermined period of time (for example, 15
(seconds) is a timer interrupt flow for performing the operation of the above main flow. Also, the flow starts from step #59 and the release switch
This is a release interrupt frame for starting the camera's exposure control operation by closing the RLS.
The following is a microcontroller based on Figures 3 to 6.
The operation of the camera system shown in FIG. 2 related to MC2 will be described in detail. First, when the power switch MAS is closed, a reset signal is output from the power-on reset circuit POR1.
PO1 is output. In response to this reset signal PO1, the microcomputer MC2 performs a reset operation in the main flow at step #1. When it is determined that the input terminal i0 has become "High" in step #2 by closing the photometry switch MES, the timer interrupt is disabled (#3) and the terminal O0 is set to "High". ”(#4). As a result, the transistor BT1 becomes conductive and power supply from the power supply line VB is started. At the same time, converter CV from power line VL through buffer BF
Then, power supply to the interchangeable lens LE is started.
In step #5, the exposure control mode setting device
MSE, exposure time setting device TSE, aperture value setting device
Data from the ASE and the film sensitivity setting device SSE are sequentially taken in to the input/output port I/O via the data bus DB. In steps #6 to #12, data "O" is first established in register A (#6), and terminal O6 is set.
is set to “High”, the reset state of the converter circuit CVC and lens circuit LEC is released, and #7
-1, data serial input command is output (#7
-2). When the input of one data from the converter circuit CVC and the lens circuit LEC is completed (#8), the captured data is set in registers M and A corresponding to the contents of register A (#9). next,
“1” is added to the contents of register A (#10),
It is determined whether the content has reached Ac (constant value). Here, if (A)≠Ac, the process returns to step #7-2 and the next data is taken in again. When (A) = Ac, it means that data has been taken in from the lens LE and converter CV, so set the output terminal O6 to "Low"(#12), converter circuit CVC, lens circuit LEC
Reset. Here, a specific example of taking in data from the lens LE and converter CV will be explained based on FIGS. 4 and 5. For example, when inputting 8-bit serial data, the serial data input section shown in FIG. Read sequentially. That is, by serial data input command SIIN, flip-flop FF
1 is set and the reset state of the 3-bit binary counter CO1 is released. at the same time,
The gate of AND circuit AN7 is opened and the microcomputer
The clock pulse DP frequency-divided in MC2 is sent as a synchronizing clock output from the output terminal SCO to the converter CV and lens LE circuits CVC and LEC. Also, this cross pulse is applied to the counter CO1,
It is sent to the clock input terminal of shift register SR1. Shift register SR1 is clock pulse DP
At the falling edge of , the input terminal SDI of microcomputer MC2
Sequentially import the data entered into. Here, the carry terminal CY of the counter CO1 remains "High" for a period from when the 8th clock pulse DP is input until when the next cross pulse DP is input. On the other hand, this carry output is input to one input terminal of the AND circuit AN5, and the clock pulse DP is input to the other input terminal via the inverter IN15, so the AND circuit AN5 inputs ""High", which resets the flip-flop FF1 and also puts the counter CO1 into the reset state. Therefore, the output of the AND circuit AN5 also becomes "Low" as the carry terminal CY of the counter CO1 becomes "Low" and prepares for the next operation. This AND circuit AN5
A “High” pulse from the series input frame SIFL
is set to determine completion of data input, and the microcomputer MC2 stores the data being output from the shift register SR1 to the internal data bus IDB in predetermined registers M and A. In FIG. 5, the left side of the dashed line is the converter circuit CVC of the converter CV, and the right side is the lens circuit LEC of the lens LE. Microcomputer MC2
When the output terminal O6 of the counter becomes “High”, the counter CO
3. The reset state of CO5, CO7, and CO9 is released, and these counters are enabled to count the clock pulse DP given from the output terminal SCO of the microcomputer MC2. The 3-bit binary counters CO3 and CO7 use this clock pulse.
Count the rising edge of DP and set the carry terminal CY to “High” from the rising edge of the 8th clock pulse to the rising edge of the next clock pulse DP. 4-bit binary counter CO5, CO
9 counts the falling edge of this carry terminal CY, and the count values of counters CO5 and CO9 increase to 1 every time the first pulse of 8 clock pulses rises.
Increase by increments. The registers of the converter circuit CVC ROM and RO1 are directly specified based on the count value of the counter CO3. Lens circuit LEC ROM,
The register of RO3 is designated indirectly via the decoder DE9 and the data selector DS1 based on the count value of the counter CO1. ROM, RO1,
The lens LE and converter CV data output from RO3 are either output or serial adder AL1 depending on the output of decoder DE5.
The output of the sum of the two added together or the data of all "O" is selectively output. here,
Table 2 shows the relationship between the counter CO9, decoder DE9, ROM, and RO3 in the case of a lens with a fixed focal length, and Table 3 shows the above relationship in the case of a zoom lens with a variable focal length. In addition, counter CO5, decoder DE5, ROM, RO in the converter
Table 4 shows the relationship between 1 and the output data to the camera body. Note that φ indicates that the data of each bit may be "0" or "1".

【表】【table】

【表】【table】

【表】【table】

【表】【table】

【表】 カウンタCO3,CO7の出力b0,b1,b2
はデコーダDE3,DE7に入力され、デコーダ
DE3,DE7はこの入力データに応じて表5に示
す信号を出力する。
[Table] Outputs b0, b1, b2 of counters CO3 and CO7
is input to decoders DE3 and DE7, and
DE3 and DE7 output the signals shown in Table 5 according to this input data.

【表】 従つて、クロツクパルスが立上がることに、
ROM,R3のデータは最下値ビツト(r0)から
順次1ビツトずつアンド回路AN20〜AN27、
オア回路OR5を介して出力され、同じタイミン
グでROM,RO1のデータもクロツクパルスの
立上がり毎に最下位ビツト(e0)から順次1ビツ
トづつアンド回路AN10〜AN17、オア回路
OR1を介して出力される。また、ズームレンズ
の場合には、ズームリングZRの操作により設定
された焦点距離に応じた5ビツトのデータを出力
するコード板FCDがレンズ回路LEC内に設けら
れている。設定焦点距離に応じて変化するコード
板FCDの出力によつて、データセレクタDS1の
入力端子α2の下位5ビツトの値が一義的に決ま
る。従つて、データセレクタDS1は、デコーダ
DE9の出力h4が“Low”のときは入力端子α
1からの“0000 h3 h2 h1 h0”のデータを、ま
た、“High”のとき入力端子α2からの“h2h1h0
*****”(*はコード板のデータ)のデータ
を出力することにより、ROM,RO3のアドレ
スを指定する。 カウンタCO9の出力が“0000”の場合、
ROM,RO3のアドレス“OOH”(Hは16進数を
示す)のアドレスにはレンズ装着を示すチエツク
データが記憶されていて、このデータはあらゆる
種類の交換レンズに共通のデータ(例えば
01010101)となつている。このとき、カメラ本体
BDとレンズLEとの間にコンバータCVが装着さ
れていれば、デコーダDE5の出力端子g2の
“High”により、レンズLEから送られてくるデ
ータ“01010101”はアンド回路AN32、オア回
路OR3を介して、また、レンズLEがカメラ本体
BDに直接装着されている場合はそのままカメラ
本体側に送られて、入力端子SDIからマイコン
MC2に読込まれる。このチエツクデータにより
交換レンズが装着されていることが判別された場
合は開放測光モードとなつて露出制御装置EXC
で絞り制御が行なわれる。一方、交換レンズが装
着されていないことが判別された場合は、絞り込
み測光モードとなつて絞り制御は行なわれない。 カウンタCO5,CO9の出力が“0001”になる
と、レンズのROM,RO3のアドレス“01H”が
指定され、ROM,RO3から開放絞り値データ
Avoが出力される。なお、設定焦点距離に応じて
実効絞り値が変化するズームレンズの場合は、最
短焦点距離での開放絞り値が出力される。また、
コンバータCVのROM,RO1のアドレス“1H”
にはオンバータCV装着によりレンズの開放絞り
値の変化量に相当する一定値データβが記憶され
ており、ROM,RO1からは一定値データβが
出力される。デコーダDE5の端子g0の
“High”により、ROM,RO1,RO3からのデ
ータは直列加算回路AL1で加算されて(Avo+
β)が算出され、このデータがアンド回路AN3
0、オア回路OR3を介して出力される。カウン
タCO5,CO9の出力が“0010”になると、
ROM,RO3,RO1はそれぞれアドレス“02H”
が指定される。レンズのROM,RO3からの最
小絞りのデータAvmaxとコンバータのROM,
RO1からのデータβとにより、開放絞り値の場
合と同様に、Avmax+βのデータが、また装着
されていない場合はAvmaxのデータが出力され
る。 カウンタCO5,CO9の出力が“0011”になる
と、レンズのROM,RO3のアドレス“03H”が
指定され、ROM,RO3から開放測光誤差のデ
ータが出力される。ここで、コンバータが装着さ
れていない場合、このデータがそのままカメラ本
体に読み込まれる。一方、コンバータCVが装着
されていると、表4に示すようにデコーダDE5
の出力はすべて“Low”で、オア回路OR3の出
力はレンズからのデータとは無関係に“Low”
のままとなり、カメラ本体では開放測光誤差とし
て“0”のデータを読み取る。これは、コンバー
タCVを装着することにより、開放絞りは比較的
小絞りとなり、開放測光誤差は“0”になると考
えてもよいからである。 カウントCO5,CO9の出力が“0100”になる
と、ROM,RO1,RO3はそれぞれ“04H”の
アドレスが指定される。レンズのROM,RO3
のアドレス“04H”には、フオーカス用レンズ
FLを繰出す場合のモーターMOの回転方向を示
すデータと、この交換レンズが設定撮影距離に応
じて交換係数の変化する型式のレンズであるかど
うかを示すデータとが記憶されている。例えば、
モーターを時計方向に回転させるとフオーカス用
レンズが繰出される型式のレンズの場合は最下位
ビツトが“1”、モーターを反時計方向に回転さ
せるとフオーカス用レンズが繰出される型式のレ
ンズの場合は最下位ビツトが“0”になつてい
る。また、設定撮影距離によつて変換係数が変化
する型式のレンズの場合は最上位ビツトが“1”
に、変化しない型式のレンズの場合は最上位ビツ
トが“0”になつている。このデータはコンバー
タCVの装着とは無関係にカメラ本体にそのまま
送られる。 カウンタCO9の出力が“0101”になるとデコ
ーダDE9の出力は固定焦点距離のレンズの場合
“00101”、ズームレンズの場合“1001φ”となつ
て、レンズ回路LECのROM,RO3はそれぞれ
“05H”または“001*****”のアドレスが指
定される。尚、“*****”はコード板FCDか
らのデータである。ROM,RO3のこのアドレ
スには固定焦点距離レンズの場合のレンズの固定
焦点距離fの2を底とした対数値のlog2fに対応
したデータが、ズームレンズの場合そのズームレ
ンズの設定焦点距離fの対数値log2fに対応した
データが記憶されていて、このデータがカメラ本
体へ出力される。また、コンバータのROM,
RO1はアドレス“5H”が指定されており、この
アドレスには、コンバータCVをカメラ本体BD
と交換レンズLEとの間に装着することにより変
化する焦点距離の変化量に相当するデータγが記
憶されている。このときデコーダDE5の出力端
子g0が“High”になつているので、加算回路
AL1により焦点距離のデータlog2fに一定値デー
タγを加算したデータがカメラ本体に送られる。
この焦点距離は、カメラ振れの警告の判別等に用
いられる。 カウンタCO9の出力が“0110”になると、ズ
ームレンズの場合、デーコーダDE9からは
“1010φ”のデータが出力され、端子h4が
“High”となつて以降はデータセレクタDS1の
入力端α2からのデータが出力される。これによ
り、ROM,RO3は“010*****”のアドレ
スを指定される。このアドレスには、ズームレン
ズの焦点距離を最短焦点距離から変化させた場合
の最短焦点距離での実効絞り値からの絞り値変化
量のデータ△Avが設定焦点距離に応じて記憶さ
れている。また、固定焦点距離のレンズの場合、
△Av=0なので、アドレス“06H”には“0”
のデータが記憶されている。このデータは、コン
バータCVの装着の有無とは無関係にカメラ本体
にそのまま送られる。尚、このデータは、開放測
光データから絞り成分の除去をするための演算
(Bv−Avo−△Av)−Avo−△Av及び設定又は算
出された絞り開口に実効絞りを制御するための演
算Av−Avo−△Avに用いられる。 カウンタCO9の出力が“0111”になると、ズ
ームレンズの場合デコーダDE9の出力が
“1011φ”となり、ROM,RO3は “011*****”のアドレスが指定される。
このアドレスには設定焦点距離に対応した変換係
数のデータKDが記憶されている。また、固定焦
点距離のレンズの場合、ROM,RO3は“07H”
のアドレスが指定され、このアドレスいは固定の
変換係数のデータKDが記憶されている。変換係
数の変化を補償するような機械伝達機構が内蔵さ
れているコンバータが装着されていればこのデー
タはそのままボデイーに伝達される。この変換係
数のデータKDは、マイコンMC1で算出される
デフオーカス量|△L|から |△L|×KDの演算を行なつてモーター駆動
機構LMDの駆動量のデータを得るために用いら
れる。 また、変換係数のデータは、例えばデータが8
ビツトの場合、上位4ビツトの指数部と下位4ビ
ツトの有効数字部とに分けられ、表6のようにコ
ードづけされている。
[Table] Therefore, when the clock pulse rises,
The data in ROM, R3 is sent one bit at a time sequentially from the lowest value bit (r0) to AND circuits AN20 to AN27,
The data in ROM and RO1 are outputted via the OR circuit OR5, and at the same timing, the data in the ROM and RO1 are output one bit at a time starting from the least significant bit (e0) at each rising edge of the clock pulse.
Output via OR1. In the case of a zoom lens, a code plate FCD is provided in the lens circuit LEC to output 5-bit data according to the focal length set by operating the zoom ring ZR. The value of the lower 5 bits of the input terminal α2 of the data selector DS1 is uniquely determined by the output of the code plate FCD which changes according to the set focal length. Therefore, the data selector DS1 is the decoder
When the output h4 of DE9 is “Low”, input terminal α
The data of “0000 h3 h2 h1 h0” from 1 and “h2h1h0” from input terminal α2 when “High”
Specify the address of ROM and RO3 by outputting the data “*****” (* is code board data). If the output of counter CO9 is “0000”,
Check data indicating that the lens is attached is stored at the address “OOH” (H indicates hexadecimal) in ROM, RO3, and this data is common to all types of interchangeable lenses (e.g.
01010101). At this time, the camera body
If a converter CV is installed between the BD and the lens LE, the data “01010101” sent from the lens LE will be sent via the AND circuit AN32 and the OR circuit OR3 due to the “High” of the output terminal g2 of the decoder DE5. Also, the lens LE is attached to the camera body.
If it is directly attached to the BD, it will be sent directly to the camera body side and sent from the input terminal SDI to the microcomputer.
Read into MC2. If it is determined from this check data that an interchangeable lens is attached, the camera switches to open metering mode and uses the exposure control device EXC.
Aperture control is performed. On the other hand, if it is determined that no interchangeable lens is attached, the aperture metering mode is set and aperture control is not performed. When the output of counters CO5 and CO9 becomes "0001", address "01H" of lens ROM and RO3 is specified, and the open aperture value data is sent from ROM and RO3.
Avo is output. Note that in the case of a zoom lens whose effective aperture value changes depending on the set focal length, the open aperture value at the shortest focal length is output. Also,
Converter CV ROM, RO1 address “1H”
Stores constant value data β corresponding to the amount of change in the aperture value of the lens when the onverter CV is installed, and the constant value data β is output from the ROM and RO1. Due to “High” of terminal g0 of decoder DE5, data from ROM, RO1, and RO3 are added by serial adder circuit AL1 (Avo+
β) is calculated, and this data is used as the AND circuit AN3
0, is output via the OR circuit OR3. When the output of counters CO5 and CO9 becomes “0010”,
ROM, RO3, and RO1 each have address “02H”
is specified. Lens ROM, minimum aperture data Avmax from RO3 and converter ROM,
Based on the data β from RO1, data of Avmax+β is output as in the case of the open aperture value, and data of Avmax is output if the lens is not installed. When the outputs of the counters CO5 and CO9 become "0011", the address "03H" of the lens ROM and RO3 is designated, and the data of the open photometry error is output from the ROM and RO3. Here, if the converter is not installed, this data is read into the camera body as is. On the other hand, if the converter CV is installed, the decoder DE5
All outputs are “Low”, and the output of OR circuit OR3 is “Low” regardless of the data from the lens.
The camera body reads "0" data as an open metering error. This is because by installing the converter CV, the open aperture becomes relatively small, and the open aperture metering error can be considered to be "0". When the outputs of counts CO5 and CO9 become "0100", addresses of "04H" are designated for ROM, RO1 and RO3, respectively. Lens ROM, RO3
Address “04H” contains the focus lens.
Data indicating the rotational direction of the motor MO when extending the FL, and data indicating whether this interchangeable lens is a type of lens whose exchange coefficient changes depending on the set shooting distance are stored. for example,
If the lens is of a type in which the focus lens is extended when the motor is rotated clockwise, the lowest bit is "1", and if the lens is of a type in which the focus lens is extended if the motor is rotated counterclockwise. The least significant bit is "0". In addition, in the case of a lens whose conversion coefficient changes depending on the set shooting distance, the most significant bit is "1".
In the case of a type of lens that does not change, the most significant bit is "0". This data is sent directly to the camera body regardless of whether a converter CV is installed. When the output of the counter CO9 becomes "0101", the output of the decoder DE9 becomes "00101" for a fixed focal length lens, "1001φ" for a zoom lens, and the ROM and RO3 of the lens circuit LEC become "05H" or "05H" respectively. The address “001*****” is specified. Note that "*****" is data from the code board FCD. This address in ROM and RO3 contains data corresponding to the logarithm value log 2 f to the base 2 of the fixed focal length f of the lens in the case of a fixed focal length lens, and the set focal length of the zoom lens in the case of a zoom lens. Data corresponding to the logarithm value log 2 f of f is stored, and this data is output to the camera body. Also, converter ROM,
Address “5H” is specified for RO1, and the converter CV is connected to the camera body BD at this address.
Data γ corresponding to the amount of change in the focal length that changes when the lens is attached between the lens and the interchangeable lens LE is stored. At this time, since the output terminal g0 of decoder DE5 is "High", the adder circuit
AL1 sends data obtained by adding constant value data γ to focal length data log 2 f to the camera body.
This focal length is used for determining camera shake warnings, etc. When the output of counter CO9 becomes "0110", in the case of a zoom lens, data of "1010φ" is output from decoder DE9, and after terminal h4 becomes "High", data from input terminal α2 of data selector DS1 is output. is output. As a result, the ROM and RO3 are designated with the address "010*****". In this address, data ΔAv of the amount of change in aperture value from the effective aperture value at the shortest focal length when the focal length of the zoom lens is changed from the shortest focal length is stored in accordance with the set focal length. Also, for fixed focal length lenses,
Since △Av=0, the address “06H” is “0”
data is stored. This data is sent directly to the camera body regardless of whether a converter CV is installed or not. This data includes the calculation (Bv-Avo-△Av) - Avo-△Av for removing the aperture component from the aperture metering data and the calculation Av for controlling the effective aperture to the set or calculated aperture aperture. -Avo-Used for △Av. When the output of the counter CO9 becomes "0111", the output of the decoder DE9 becomes "1011φ" in the case of a zoom lens, and the address of "011*****" is specified for the ROM and RO3.
Conversion coefficient data KD corresponding to the set focal length is stored at this address. In addition, in the case of a fixed focal length lens, ROM and RO3 are “07H”
An address is specified, and data KD of this address or a fixed conversion coefficient is stored. If a converter with a built-in mechanical transmission mechanism that compensates for changes in the conversion coefficient is installed, this data will be transmitted directly to the body. This conversion coefficient data KD is used to calculate |ΔL|×KD from the differential focus amount |ΔL| calculated by the microcomputer MC1 to obtain data on the drive amount of the motor drive mechanism LMD. In addition, the data of the conversion coefficient is, for example, 8
In the case of bits, it is divided into an exponent part of the upper 4 bits and a significant figure part of the lower 4 bits, which are coded as shown in Table 6.

【表】 変換係数のデータKDは KD=(k3・20+k2・2-1+k1・2-2 +k0・2-3)・2n・2m m=k4・20+k5・21+k6・22+k7・23 n=一定値(例えば−7) の演算で求める。尚、k3は有効数字部の最上位
ビツトであるので必ず“1”になつている。従つ
て、このようなコードづけを行なえばKDの値が
相当に広い範囲で変化してもマイコンMC1内で
演算し易い、少ないビツト数のデータとして記憶
することができる。 第7図は、ズームレンズから出力される変換係
数のデータと焦点距離との関係を示すグラフであ
り、横軸はlog2fに対応し、縦軸は変換係数KDに
対応する。 ところでKDは、焦点距離fに応じ直線A,
B,Cに示すように連続的に変化するが、本実施
例の場合、折線A′,B′,C′で示すように、KDの
値をK1〜K33の離散的な値としている。 ここで、 K1=20の場合KD=“01111000”、 K2=2-1+2-2+2-3+2-4の場合KD=
“01101111”、 K3=2-1+2-2+2-3の場合KD=“01101110”、 K4=2-1+2-2+2-4の場合KD=“01101101”、 K31=2-4+2-6の場合KD=“00101000”、 K32=2-4+2-7の場合KD=“00111001”、 K33=2-5の場合KD=“00101000”となつてい
る。 ズームレンズの焦点距離は、コード板FCDの
5ビツトの出力に対応して多数の領域に区分され
ており、例えば直線Aの変化をするレンズであれ
ばf17〜f25の9ゾーンに分割されている。
この構成により、f25のゾーンであればそのゾ
ーン内で最も小さいK値に最も近く且つ値の小さ
なデータK17,f24のゾーンであればK1
6,f23のゾーンならK15,f22のゾーン
ならK13というデータが出力される。 このように、KDの値を定めるのは、以下の理
由による。即ち、KDを実際のデータよりも大き
な値にしておくと、合焦位置までフオーカス用レ
ンズを駆動するのに必要な駆動量に対応するエン
コーダENCのパスル数よりもN=KD×|△L|
で求められたNの方が多くなり、結果として合焦
位置をレンズが通り過ぎ、合焦位置の前後でレン
ズがハンテイングをしてしまうからである。そこ
で、KDを小さめの値にしておけば次第に一方の
方向から合焦位置に近づくようになり、また、実
際のKDとの差ができるだけ小さくなるようにし
ているので、フオーカス用レンズが合焦位置に達
する時間を短かくすることができる。 尚、KDの値を常に小さめの値にした場合、実
際のKDの値との差が大きくなりすぎて合焦位置
に達するまでの時間が長くかかりすぎることが起
こりうるが、時間を短縮するために、B′に示す
ゾーンf18,f12のように実際の値よりも若
干大きくなつている領域をわずかに設けて、少し
ぐらい合焦位置から行きすぎてもよいようにして
もよい。 また、撮影距離が無限大だと実線のC(∞)、近
距離だと一定鎖線C(近)のように、撮影距離に
応じて変換係数が大幅に変化するズームレンズが
ある。このズームレンズでは、例えば焦点距離f
1のソーンで撮影距離が無限大の位置から最近接
の位置へ変化すると、KD=k17=2-2からKD=
K15=2-2+2-4へ変化する。このようなズームレ
ンズにも対応できるように、本実施例では、無限
大の位置での変化係数のデータのみをROM,
RO3に記憶させ、合焦範囲の近傍の領域(以
下、近合焦ゾーンで示す)に到達するまでは、△
Lの正負(即ち、デフオーカス方向)の信号だけ
に基づいてフオーカス用レンズを駆動し、近合焦
ゾーンにはいると上述のKDと|△L|とによつ
て求まるNの値に基づいてレンズを駆動するよう
にしている。尚、焦点距離用のコード板FCDの
他に設定撮影距離用のコード板を別設し、これら
コード板によりROM,RO3のアドレスを指定
して正確な変換係数のデータを得るようにしても
よいが、部品点数の増加、アドレス指定用のビツ
ト数の増加、ROMの容量の増加等の問題があ
り、実用的でない。 更に、ズームリングを例えば、最短焦点距離の
位置よりも短焦点側に移動させることによりマク
ロ撮影が行なえるように構成されたズームレンズ
がある。(このズームレンズの機構は、本出願の
要旨とは関係ないので、その説明を省略する。)
このようなズームレンズに対して、本実施例では
マクロ撮影に切換えられるとコード板FCDから
“11111”のデータが出力され、特定のアドレス
“01111111”が指定されるようにしてある。マク
ロ撮影の場合、瞳径の位置が変化したり、焦点深
度が浅くなつたり、絞り値が暗くなつたりして、
AFモードによる焦点調節は困難となるのでその
アドレスには“φφφφ0110”のデータが記憶され
ており、そのk3は“0”となつている。マイコ
ンMC2は、このデータによりマクロ撮影に切換
わつたことを判別して、スイツチFASによりAF
モードが設定されていても表示だけのFAモード
に焦点調節モードを自動的に切換える。 また、最近接の位置に撮影距離を設定しないと
マイクロ撮影への切換えができないように構成さ
れたズームレンズがある。このようなレンズの場
合、マクロ撮影への切換操作により第5図のスイ
ツチMCSが閉成され、インバータIN17、イン
バータIN19を介してアンド回路AN40〜AN
44の出力がすべて“Low”になる。これによ
つてROM,RO3のアドレス“01100000”が指
定される。 このアドレスにはKDとして“φφφφ0100”の
データが記憶されていて、マイコンMC1はこの
データのk3=k1=0によりマクロ撮影への切換
操作がなされたことを判別して自動的に撮影距離
が最近接位置になるようにモーターMOを回転さ
せてフオーカス用レンズを繰出す。 合焦検出用の受光部は撮影レンズのあるきまつ
た射出瞳をにらむようになつていて、この瞳径と
受光素子(フイルム面と光学的に等価な位置に配
置されている)に対する瞳の位置とに応じて撮影
レンズを透過した被写体からの光を受光素子が受
光するかどうかがきまる。従つて、レンズによつ
ては一部の受光部には光が入射しないようなもの
もある。このようなレンズでは合焦検出を行なつ
ても信頼性がないので、AFモード或いはFAモー
ドの動作は行なわない方が望ましい。そこでこの
ようなレンズの場合には、ROM,RO3のアド
レス(ズームレンズなら“011*****”、固定
焦点距離レンズなら“00000111”)に “φφφφ0001”のデータをKDとして記憶して
おく。マイコンMC2はこのデータにより、後述
の#16−2のステツプでマイコンMC1がAFモ
ードまたはFAモードによる焦点検出動作を行な
わないようにする。 なお、マクロ切換によりアンド回路AN40〜
AN44から“00000”または、“11111”のデー
タが出力される場合、ROM,RO3のアドレス
“00100000”、“00111111”にはマクロ撮影時の焦
点距離fに対応したデータが、アドレス
“01000000”、“01011111”にはマクロ撮影時の△
Avに対応したデータが記憶されており、それぞ
れROM,RO3から出力される。 また、カメラ本体での駆動軸の回転を焦点調節
部材に伝達する機構を備えていない交換レンズの
場合には、マクロ撮影への切換と同様にKDとし
て“φφφφ0110”が記憶されており、FAモード
のみが可能とされる。更に、上述のレンズと同様
に伝達機構を備えていないコンバータの場合に
は、カウンタCO2の出力が“0111”になつたと
きにROM,RO1から“φφφφ0110”が出力さ
れ、且つデコーダDE5の端子g1のみが
“High”になつてROM,RO1からのデータをカ
メラ本体に伝達するようにすれば、どのような交
換レンズが装着されてもFAモードだけの動作が
行なわれる。 カメラ本体と交換レンズとの間にコンバータを
挿入接続する場合、コンバータにより焦点距離が
変化するので、その増加量に対応した量だけカメ
ラ本体からの駆動軸の回転量を減少させる減速機
構をコンバータ内に設ける必要がある。即ちカメ
ラ本体の駆動軸の回転量をそのままフオーカス用
レンズの駆動軸に伝達する機構だけをコンバータ
に備えた場合、レンズのKDをそのままカメラ本
体に伝達してN=KD×|△L|だけカメラ本体
の駆動軸を回転させると、焦点距離の増加量に対
応した量だけ合焦位置からズレでしまうといつた
問題がある。そこで上記の減速機構を備えていな
いコンバータに対して、本実施例では、例えば焦
点距離を1.4倍にするコンバータならKDが1/2に、
2倍のコンバータならKDが1/4になるように、
それぞれKDの上位4ビツトの指数部のデータ
(k7k6k5k4)から、1.4倍のコンバータなら1を
減じ、2倍のコンバータなら2を減ずるようにし
ている。 第5図に戻つて、カウンタCO5の出力が
“1000”になると、表4に示すようにコンバータ
回路CVCのROM,RO1からはコンバータCVが
装着されていることを示す “01010101”のチエツクデータが出力される。
このとき、デコーダDE5の端子g1が“High”
になつているので、このチエツクデータはレンズ
回路LECのROM,RO3からのデータとは無関
係にアンド回路AN31、オア回路OR3を介し
てカメラ本体BDに送られる。 カウンタCD5の出力が“1001”になると、こ
のコンバータ装置で光束が制限されることによる
光のケラレに基づいて定まる絞り値のデータAvl
がRO1から出力され上述と同様にして、アンド
回路AN31、オア回路OR3を介してカメラ本
体に送られる。このデータAvlは、マイコンMC
2で開放絞り値のデータAvo+βと比較される。
Avo+B<Avlのときには、測光出力がBv−Avl
となつているので、(Bv−Avl)+Avl=Bvおよ
び絞り込み段数データAv−(Avo+β)が演算さ
れる。 上述のようにして、レンズLEおよびコンバー
タCVからのデータの取り込みが完了すると、第
3図のフローチヤートにおいて、測光回路LMC
の出力のA−D変換が行なわれ(#13)、このA
−D変換された測光出力のデータが所定のレジス
タに格納される(#13)。 #15のステツプではレリーズフラグRLFが
“1”かどうか判別され、このフラグが“1”の
ときは#28のステツプに直接移行し、“0”のと
きは#16ないし#26のステツプを経て#28のステ
ツプに移行する。ここで、レリーズフラグRLF
は、レリーズスイツチRLSが閉成されて#59ス
テツプ以降の割込み動作が行なわれる場合でカメ
ラの露出制御値が算出されているときに“1”に
設定されるフラグである。尚、この割込み動作時
に露出制御値が算出されていないことが#63のス
テツプで判別されたときは、#5以降のステツプ
で上記データの取込み動作を行ない、#15のステ
ツプでRLF=1ならば、#16以降のステツプに
おけるAF、FAモードによる焦点検出動作のフロ
ーをジヤンプして#28のステツプで露出演算を行
なつた後に、#30のステツプを経て#64以降のス
テツプで露出制御を行なう。 #16のステツプでは、AFモードまたはFAモー
ドによる焦点検出動作が可能であるか否かの判別
が行なわれ、可能であれば#17のステツプに、不
可能であれば#28のステツプに移行する。このス
テツプでは、レンズが装着されているか否か
(#16−1)、射出瞳の径と位置とできまる条件が
受光部に適合しているか否か(#16−2)、焦点
検出用の全ての受光部に被写体からの光が入射し
ているか否か(#16−3)、測光スイツチが閉成
されているか否か(#16−5)の判別が順次行な
われる。 ここで、チエツクデータ“01010101”が入力し
ていない場合(#16−1)、KDのデータのk3〜
k0が“0001”の場合(#16−2)、レンズの射出
瞳の径が小さすぎて開放絞り値Avo、Avo+β、
Avo+△AvまたはAvlが一定絞り値
[Table] Conversion coefficient data KD is KD = (k3・2 0 +k2・2 -1 +k1・2 -2 +k0・2 -3 )・2 n・2 m m=k4・2 0 +k5・2 1 +k6・Calculate by calculating 2 2 + k7・2 3 n = constant value (eg -7). Note that since k3 is the most significant bit of the significant figure part, it is always "1". Therefore, by coding in this way, even if the value of KD changes over a fairly wide range, it can be stored as data with a small number of bits that is easy to calculate within the microcomputer MC1. FIG. 7 is a graph showing the relationship between conversion coefficient data output from the zoom lens and focal length, where the horizontal axis corresponds to log 2 f and the vertical axis corresponds to the conversion coefficient KD. By the way, KD is a straight line A, depending on the focal length f.
Although it changes continuously as shown in B and C, in the case of this embodiment, the value of KD is set to discrete values of K1 to K33 as shown in broken lines A', B', and C'. Here, if K1=2 0 , KD=“01111000”, if K2=2 -1 +2 -2 +2 -3 +2 -4 , KD=
“01101111”, KD=“01101110” when K3=2 -1 +2 -2 +2 -3 , KD=“01101101” when K4=2 -1 +2 -2 +2 -4 , K31=2 -4 +2 -6 If K32 = 2 -4 + 2 -7 , KD = "00111001"; if K33 = 2 -5 , KD = "00101000". The focal length of a zoom lens is divided into many regions corresponding to the 5-bit output of the code plate FCD. For example, a lens that changes along a straight line A is divided into 9 zones from f17 to f25. .
With this configuration, if the zone is f25, the data K17 is closest to the smallest K value in that zone and has the smallest value, and if the zone is f24, it is K1.
If the zone is 6, f23, the data K15 is output, and if the zone is f22, the data K13 is output. The reason for determining the value of KD in this way is as follows. In other words, if KD is set to a value larger than the actual data, N=KD×|△L|
This is because the value of N determined by is larger, and as a result, the lens passes through the in-focus position, causing the lens to hunt before and after the in-focus position. Therefore, if KD is set to a small value, it will gradually approach the in-focus position from one direction, and since the difference with the actual KD is made as small as possible, the focus lens will be at the in-focus position. The time it takes to reach can be shortened. Note that if the KD value is always set to a small value, the difference from the actual KD value may become too large and it may take too long to reach the in-focus position. Alternatively, a region slightly larger than the actual value may be provided, such as zones f18 and f12 shown in B', so that it is possible to go a little too far from the in-focus position. Furthermore, there are zoom lenses whose conversion coefficients change significantly depending on the shooting distance, such as the solid line C (∞) when the shooting distance is infinite, and the constant chain line C (near) when the shooting distance is short. In this zoom lens, for example, the focal length f
When the shooting distance changes from the infinite position to the closest position with 1 sone, KD = k17 = 2 -2 to KD =
Changes to K15=2 -2 +2 -4 . In order to be compatible with such a zoom lens, in this embodiment, only the data of the change coefficient at the infinite position is stored in the ROM.
It is stored in RO3, and the △
The focus lens is driven based only on the positive and negative signals of L (i.e., in the defocus direction), and when it enters the near focusing zone, the lens is driven based on the value of N determined by the above-mentioned KD and |△L|. I like to drive. In addition to the code board FCD for the focal length, a code board for the set shooting distance may be provided separately, and the addresses of ROM and RO3 may be specified using these code boards to obtain accurate conversion coefficient data. However, there are problems such as an increase in the number of parts, an increase in the number of bits for addressing, and an increase in the capacity of ROM, making it impractical. Furthermore, there are zoom lenses that are configured so that macro photography can be performed by moving the zoom ring, for example, to the shortest focal length side from the position of the shortest focal length. (The mechanism of this zoom lens is not related to the gist of this application, so its explanation will be omitted.)
In this embodiment, for such a zoom lens, when switching to macro photography, data "11111" is output from the code plate FCD, and a specific address "01111111" is designated. In the case of macro photography, the position of the pupil diameter changes, the depth of focus becomes shallower, the aperture value becomes darker, etc.
Since focus adjustment in AF mode is difficult, data "φφφφ0110" is stored at that address, and k3 is "0". Microcomputer MC2 uses this data to determine that macro photography has been switched, and activates AF using switch FAS.
Even if the mode is set, the focus adjustment mode is automatically switched to FA mode, which is only for display. Furthermore, there are zoom lenses that are configured such that switching to micro photography cannot be performed unless the photographing distance is set to the closest position. In the case of such a lens, the switch MCS shown in Fig. 5 is closed when switching to macro photography, and the AND circuits AN40 to AN are connected via inverters IN17 and IN19.
All 44 outputs become “Low”. As a result, address "01100000" of ROM, RO3 is specified. The data "φφφφ0100" is stored as KD in this address, and the microcomputer MC1 determines that the switching operation to macro photography has been performed based on this data k3=k1=0, and automatically changes the shooting distance to the latest one. Rotate the motor MO so that it is in the close position and extend the focus lens. The light receiving part for focus detection is designed to look at the exit pupil where the photographing lens is located, and the position of the pupil with respect to the diameter of this pupil and the light receiving element (located at a position optically equivalent to the film surface). Whether the light-receiving element receives the light from the subject that has passed through the photographic lens is determined depending on the photographing lens. Therefore, depending on the lens, light may not enter some of the light receiving sections. With such a lens, even if focus detection is performed, it is not reliable, so it is preferable not to operate in AF mode or FA mode. Therefore, in the case of such a lens, store the data "φφφφ0001" as KD in the ROM, RO3 address ("011*****" for a zoom lens, "00000111" for a fixed focal length lens). . Using this data, the microcomputer MC2 prevents the microcomputer MC1 from performing a focus detection operation in the AF mode or FA mode in step #16-2, which will be described later. In addition, by macro switching, the AND circuit AN40~
When the data “00000” or “11111” is output from the AN44, the data corresponding to the focal length f during macro photography is stored in the addresses “00100000” and “00111111” of the ROM and RO3, and the data corresponding to the focal length f during macro photography is stored in the addresses “01000000” and “01011111” is △ when macro shooting
Data corresponding to Av is stored and output from ROM and RO3, respectively. In addition, in the case of an interchangeable lens that does not have a mechanism to transmit the rotation of the drive shaft in the camera body to the focus adjustment member, "φφφφ0110" is stored as KD in the same way as when switching to macro photography, and FA mode only possible. Furthermore, in the case of a converter that does not have a transmission mechanism like the above-mentioned lens, when the output of the counter CO2 reaches "0111", "φφφφ0110" is output from the ROM and RO1, and the terminal g1 of the decoder DE5 is output. If only "High" is set to transmit data from ROM and RO1 to the camera body, only FA mode operation will be performed no matter what kind of interchangeable lens is attached. When a converter is inserted and connected between the camera body and an interchangeable lens, the focal length changes due to the converter, so a deceleration mechanism is installed inside the converter to reduce the amount of rotation of the drive shaft from the camera body by an amount corresponding to the increase in focal length. It is necessary to provide In other words, if the converter is equipped with only a mechanism that directly transmits the amount of rotation of the drive shaft of the camera body to the drive shaft of the focus lens, the KD of the lens will be transmitted to the camera body as is, and the amount of rotation of the camera body will be transmitted by N = KD × |△L|. There is a problem in that when the drive shaft of the main body is rotated, it deviates from the in-focus position by an amount corresponding to the increase in focal length. Therefore, in this embodiment, for a converter that does not have the above-mentioned speed reduction mechanism, for example, a converter that increases the focal length by 1.4 times has a KD of 1/2,
For a 2x converter, KD will be 1/4,
From the exponent data of the upper 4 bits of KD (k7k6k5k4), 1 is subtracted for a 1.4x converter, and 2 is subtracted for a 2x converter. Returning to Figure 5, when the output of the counter CO5 reaches "1000", the check data "01010101" indicating that the converter CV is installed is output from the ROM and RO1 of the converter circuit CVC as shown in Table 4. Output.
At this time, terminal g1 of decoder DE5 is “High”
Therefore, this check data is sent to the camera body BD via the AND circuit AN31 and the OR circuit OR3, regardless of the data from the ROM and RO3 of the lens circuit LEC. When the output of the counter CD5 reaches "1001", the aperture value data Avl is determined based on the vignetting of light due to the restriction of the luminous flux by this converter device.
is output from RO1 and sent to the camera body via AND circuit AN31 and OR circuit OR3 in the same manner as described above. This data Avl is
2 is compared with the open aperture data Avo+β.
When Avo+B<Avl, the photometric output is Bv−Avl
Therefore, (Bv-Avl)+Avl=Bv and the number of refinement stages data Av-(Avo+β) are calculated. When the data acquisition from the lens LE and converter CV is completed as described above, in the flowchart of Fig. 3, the photometry circuit LMC
A-D conversion of the output is performed (#13), and this A-D conversion is performed (#13).
-D-converted photometric output data is stored in a predetermined register (#13). In step #15, it is determined whether the release flag RLF is "1" or not. When this flag is "1", the process moves directly to step #28, and when it is "0", it passes through steps #16 and #26. Move to step #28. Here, release flag RLF
is a flag that is set to "1" when the release switch RLS is closed and the interrupt operation after step #59 is performed and the exposure control value of the camera is being calculated. If it is determined in step #63 that the exposure control value has not been calculated during this interrupt operation, the above-mentioned data import operation is performed in steps after #5, and if RLF = 1 in step #15, For example, jump the flow of focus detection operations in AF and FA modes in steps #16 and later, perform exposure calculations in step #28, and then perform exposure control in steps #64 and later after passing through step #30. Let's do it. In step #16, it is determined whether focus detection operation in AF mode or FA mode is possible, and if possible, the process moves to step #17, and if not, it moves to step #28. . In this step, check whether the lens is attached (#16-1), whether the conditions determined by the diameter and position of the exit pupil are compatible with the light receiving section (#16-2), and whether the focus detection It is sequentially determined whether the light from the subject is incident on all the light receiving sections (#16-3) and whether the photometry switch is closed (#16-5). Here, if check data “01010101” is not input (#16-1), KD data k3~
When k0 is “0001” (#16-2), the exit pupil diameter of the lens is too small, and the open aperture value Avo, Avo+β,
Avo + △Av or Avl is a constant aperture value

【例えば5
(F5.6)】Avcより大きい場合(#16−3)には、
ともにAFモード、FAモードによる焦点検出動作
は不可能であるので、#16−4のステツプにおい
て焦点検出動作が行なわれないことが表示制御回
路DSCで警告表示された後に、#28のステツプ
に移行する。また、測光スイツチMESが開放さ
れていてi0が“Low”の場合 (#16−5)には、FAモードのみの動作を15
秒間だけ行なわせるために#28のステツプに移行
する。 チエツクデータの入力、k3〜k0≠“0001”、
Avo、Avo+β、Avo+AvまたはAvl≦Avc、i
0の“High”がともに判別された場合には#17
以降のステツプに移行する。 #17のステツプでは、出力端子O1が“High”
になり、マイコンMC1はその入力端子i11の
“High”によりAF,FAモードによる焦点検出動
作を開始する。#18のステツプではマイコンMC
2に読込まれた変換係数のデータKDを入出力ポ
ートI/Oからデータバスに出力して、ラツチ回
路LAにラツチさせる。このラツチ回路LAでラツ
チされたデータは、マイコンMC1の後述のNo.93
のステツプで読込まれる。 #19のステツプでは、カウンタCO9の出力が
“0100”のときに読込まれたデータに基づいて、
装着されたレンズが、撮影距離に応じて変換係数
KDが変化する型式のレンズかどうかを判別す
る。ここで、変化するレンズであればマイコン
MC2の出力端子O3即ちマイコンMC1の入力
端子i13を“High”に、変化しないレンズで
あれば“Low”にするる。マイコンMC1はこの
信号により、詳細は、後述のNo.192ないしNo.197の
ステツプで述べるが、結像位置が近合焦ゾーン内
にあるか否かまたは積分時間が一定値より長いか
否かに応じてAFモードでのモータMOの駆動を
切換える。 #22のステツプでは同じくカウンタCO9が
“0100”のときに読込まれたデータに基づいてフ
オーカス用レンズを繰出すときのモーターMOの
回転方向を判別する。ここで、時計方向であれば
マイコンMC2の出力端子O2即ちマイコンMC
1の入力端子i12を“High”に、反時計方向
であれば“Low”にする。マイコンMC1はこの
端子i12への信号とデフオーカス方向の信号と
でモーターMOの回転方向を決定する。 #25のステツプでは、変換係数データKDの3
番目のビツトが“1”か“0”かを検知すること
により、装着されたコンバータCV、レンズLEで
AFモードによる焦点調節動作が可能かどうかを
判別する。このとき、k3=1ならAFモードが可
能なので、フラグMFFを“0”にして#28のス
テツプに移行する。一方、k3=0ならAFモード
が不可能なのでMFFを“1”にして、次にスイ
ツチFASによりAFまたはFAのいずれかのモー
ドが選択されているかを検知する。ここで、AF
モードが選択されていて入力端子i1が“High”
であれば、撮影者によりAFモードが設定されて
いても自動的にFAモードに切換えられることを
表示制御回路DSCによつて警告表示を行なわせ
て、#28のステツプに移行する。入力端子i1が
“Low”なら、FAモードがもともと選択されて
いるのでそのまま#28のステツプに移行する。 #28のステツプでは、#5ないし#14のステツ
プで読込まれた設定露出制御値、測光値、レンズ
からのデータに基づいて公知の露出演算を行な
い、露出時間と絞り値のデータを算出し、フラグ
LMFを“1”にする。 #30のステツプではレリーズフラグRLFが
“1”かどうか判別し、“1”のときは#64以降の
ステツプの露出制御動作のフローに戻り、“0”
のときは#31のステツプに移行する。#31のステ
ツプでは出力端子O8を介して“High”にする
ことによりインバータIN8をトランジスタBT3
を導通させ、発光ダイオードLD10〜LD1nに
よる警告表示および液晶表示部DSPによる露出
制御値の表示を行なわせる。 #33のステツプでは測光スイツチMESの開閉
状態を判別する。ここで、測光スイツチMESが
閉成されていてi0が“High”であれば、タイ
マー割込みのため15秒カウント用のデータをタイ
マー用のレジスタTcに設定し#34、タイマーを
スタートさせ(#35)、タイマー割込を可能
(#36)として#2のステツプに戻る。この場合
には、i0が“High”(測光スイツチMESが閉
成されたまま)なので、直ちに#3のステツプに
移行してタイマー割込を不可能にして前述と同様
の動作を繰返す。 一方、測光スイツチMESが開放されていてi
0が“Low”であれば、スイツチFASにより
AF,FAのいずれのモードが選択されているかが
判別され(#37)、レンズからのデータに基づい
て#25のステツプで定められたモードが判別
(#38)される。ここで、入力端子i1が
“Low”でAFモードが選択されている(#37)
か、またはAFモードが選択されていてもフラグ
MFFが“1”でレンズ側がFAモードでの動作し
かできない場合には、#40のステツプに移行す
る。AFモードが選択され且つMFFが“0”の場
合には、出力端子O1を“Low”に(#39)し
てマイコンMC1の動作を停止させた後に#40の
ステツプに移行する。尚、#37、#38のステツプ
でFAモードが判別されたときは、端子O1は
“High”のままで#40のステツプに移行し、マイ
コンMC1の動作は続行される。 #40のステツプではスイツチEESの開閉状態が
判別され、露出制御機構のチヤージが完了してお
らずi2が“High”であれば、#47のステツプ
に移行して後述する初期状態への復帰動作を行な
う。露出制御機構のチヤージが完了していてi2
が“Low”であれば、#36のステツプでタイマ
ー割込を可能とした後に#2のステツプに戻り、
再び測光スイツチMESが閉成されて入力端子i
0が“High”になるか或いはタイマー割込みが
あるのを待つ。 さて、タイマー割込があるとレジスタTcの内
容から1が差引かれ(#45)、Tcの内容が“0”
になつたかどうかが判別される(#46)。Tc≠0
の場合、#5以降のステツプに以降して前述のデ
ータの取込、露出演算等の動作を行なう。このと
き、FAモードであれば、端子O1が“High”な
のでマイコンMC1はFA用の動作を繰り返し、
AFモードであれば#39のステツプで端子O1が
“Low”にされているのでマイコンMC1の動作
は停止している。 一方、Tc=0となると出力端子O0,O1,
O8が“Low”とされて、トランジスタBT1及
びバツフアBFによる給電の停止、FAモードの場
合のマイコンMC1の動作停止、トランジスタ
BT3による給電の停止が行なわれる。さらに、
液晶表示部DSPのブランク表示、フラグMFF、
LMFのリセツトを行なつた後に#2のステツプ
に戻る。 以上の動作を要約すると、測光スイツチMES
が閉成されている間は、データの取込み、マイコ
ンMC1の動作、露出演算、表示の動作が繰返し
行なわれる。次に、測光スイツチMESが開放さ
れると、AFモードのときは、直ちにマイコン
MC1の動作は停止されてデータの取込み、露出
演算、表示の動作が15秒間繰返され、FAモード
のときは、データの取込み、マイコンMC1によ
るFA動作、露出演算、表示の動作が15秒間繰返
される。また、露出制御機構のチヤージが完了し
ていないときは、露光スイツチMESが開放され
るとデータの取込み、マイコンMC1の動作、露
出演算、表示の動作を直ちに停止する。 なお、一旦、#16−4、#27−2のステツプで
警告表示を行なつても次のフローの時点で警告の
必要がなくなれば、この警告をキヤンセルするた
めのデータを表示制御回路DSCに伝達する必要
があることはいうまでもない。 次に露出制御機構のチヤージが完了した状態で
レリーズスイツチRLSが閉成された場合の動作
を説明する。この場合、マイコンMC2はどのよ
うな動作を行なつていても直ちに#59のステツプ
からのレリーズ割込みの動作を行なう。まず、レ
ンズからのデータの読込み中に割込みがかかる場
合を考慮して、端子O6を“Low”にしてコン
バータおよびレンズの回路CVC,LECをリセツ
ト状態にし(#59)、端子O1を“Low”にし
て、マイコンMC1によるAF又はFAモードの動
作を停止させる(#60)。さらに出力端子O8を
“Low”にして警告用の発光ダイオードLD10〜
LD1nを消灯させて(#61)、レリーズフラグ
RLFに“1”を設定(#62)した様に、前述の
フラグLMFが“1”かどうかを判別する
(#63)。 ここで、フラグLMFが“1”であれば露出制
御値の算出が完了しているので#64のステツプに
移行する。一方、LMFが“0”であれば、露出
制御値の算出が完了していないので#5以降のス
テツプに移動して露出制御値を算出して#64のス
テツプに移行する。 #64のステツプでは、#28のステツプで算出さ
れた絞り込み段数のデータAv−Avo、Av−
(Avo+△Av)、Av−(Avo+β)、Av−(Avo+
β+△Av)がデータバスDBに出力され、出力端
子O4からデータ取込み用のパルスが出力される
(#65)。これによつて、露出制御装置EXCに絞
り込み段数のデータが取込まれるれるとともに、
露出制御機構の絞り込み動作が開始され、取込ま
れた絞り込み段数だけ絞りが絞り込まれると絞り
込み動作が完了する。 出力端子O4からのパルス出力から一定時間が
経過すると(#66)、算出された露出時間のデー
タTvがデータバスDBに出力され、出力端子O5
からデータ取込み用のパルスが出力される
(#67、#68)。このパルスによつて露出制御装置
EXCには露出時間のデータが取込まれるととも
に、内蔵されたミラー駆動回路によりミラーアツ
プ動作が開始される。ミラーアツプが完了する
と、シヤツター先幕の走行が開始するとともに、
カウントスイツチCOSが閉成して取込まれた露
出時間データに対応した時間のカウントが開始す
る。カウントが終了するとシヤツター後幕の走行
が開始され、後幕走行の完了、ミラーのダウン、
絞りの開放により、スイツチEESが閉成する。 マイコンMC2は、このスイツチEESが閉成し
て入力端子i2が“High”になつたことを判別
すると(#69)、レリーズフラグRLFをリセツト
して(#70)、測光スイツチMESが閉成されてい
て入力端子i0が“High”かどうかを判別する
(#71)。ここで、i0が“High”であれば、
#2以降のステツプに戻り、前述のデータ取込
み、マイコンMC1の動作、露出演算、表示の動
作を繰返す。一方、#71のステツプで測光スイツ
チMESが開放されていて入力端子i0が“Low”
ならば#47以降のステツプに移行して、マイコン
MC2を初期状態にセツトして#2のステツプに
戻る。 第8図、第9図、第10図は、マイコンMC1
の動作を示すフローチヤートである。マイコン
MC1の動作は、以下の3つのフローに大別され
る。 No.1のステツプで始まるフローは、マイコン
MC2からの合焦動作指令により開始されるメイ
ンのフローであり、制御回路COTによるCCD,
FLMの動作開始No.8、モータ回転の有無の判別
(No.10〜No.13)、CCDの最長積分時間の計時およ
び最長積分時間経過時の動作(No.14〜19)、フオ
ーカス用レンズの終端位置の検知と最長積分時間
の計時(No.35〜44)、終端位置でのモータ停止お
よび低コントラスト時の回転再開(No.43〜48、51
〜67)、マイコンMC1の動作停止時の初期設定
(No.25〜33)、低輝度時のCCDデータの変換(No.
78〜80)、デフオーカス量およびデフオーカス方
向の算出(No.81〜93)、AFモード動作が可能なレ
ンズか否かの判別(No.92〜96)、コントラストの
判別(No.100)、AFモードの場合の合焦ゾーンへ
のモータ駆動および合焦判別(No.125〜196)(第
9図)、FAモードの場合の合焦判別(No.240〜
261)(第10図)、低コントラスト時の動作(No.
105〜115、205〜214)、最近接撮影位置でマクロ
撮影への切換が可能なレンズの場合のモータ駆動
(No.220〜232)等の動作が行なわれる。 No.70〜76のステツプは、制御回路COTからの
端子itへのCCD積分完了信号によりCCD出力デー
タの読込み動作が行なわれる端子割込みのフロー
である。また、第8図のNo.220〜204のステツプ
は、エンコーダENCを介してカウンタECCから
一致信号が出力することにより合焦判別がなされ
るカウンタ割込みのフローである。尚、一旦、端
子割込みが可能とされると、以後にカウンタ割込
みの信号が発生しても端子割込みの動作終了後で
ないとカウンタ割込みは実行されないように、両
者の割込み動作の優先順位が定められている。以
下このフローチヤートに基づいて本実施例におけ
るAF,FAモードの動作を説明する。 まず、電源スイツチMASの閉成に応答してパ
ワーオンリセツト回路POR1からリセツト信号
PO1が出力され、このリセツト信号でマイコン
MC1は特定番地からのリセツト動作(No.1)を
行なう。No.2のステツプではスイツチFASが閉
成されて入力端子i14が“High”となつてい
るかどうかを判別する。ここで、i14が
“High”であればAFモードが選択されているの
でフラグMOFに“0”を設定し、“Low”であれ
ばFAモードが選択されているのでフラグMOFに
“1”を設定する。 No.5のステツプでは、マイコンMC2の出力端
子O1が“High”即ち入力端子i11が
“High”になつているかどうかを判別する。ここ
で、入力端子i11が“Low”ならNo.2のステ
ツプに戻つて以上の動作を繰り返す。i11が
“High”になつていることが判別されると、出力
端子O16を“High”にして(No.6)、インバー
タIN5を介してトランジスタBT2を導通させて
電源ラインVFからの給電を開始させる。次に、
CCD,FLMの積分時間計時用レジスタITRに最
長積分時間に対応した固定データC1を設定する
(No.7)。次に、出力端子O10から“High”の
パルスを出力して(No.8)、制御回路COTに
CCD,FLMの積分動作を開始させ、割込を可能
(No.9)とした後にNo.10のステツプに移行する。 No.10ないし13のステツプでは、モーターMOが
回転しているか否かが順次判別される。即ち、第
1回目の合焦検出動作がなされているか否かがフ
ラグFPFにより(No.10)、フオーカス用レンズFL
の駆動位置が最近接または無限大の終端位置に達
しているか否かが終端フラグENFにより(No.
11)、駆動位置が合焦ゾーン内に入つているか否
かが合焦フラグIFFにより(No.12)、スイツチ
FASによりいずれのモードが選択されているか
がフラグMOFによりNo.13、それぞれ順次判別さ
れる。 ここで、1回目の合焦検出動作がなされている
か、レンズが終端位置に達しているか、合焦ゾー
ンに入つているか、またはFAモードが選択され
ている場合は、モーターMOの回転は停止してい
るのでNo.14以降のステツプに移行する。また、2
回目以降の合焦検出動作がなされており、レンズ
が終端位置、合焦ゾーンに達しておらず、且つ
AFモードが選択されている場合は、モータMO
は回転しているのでNo.35以降のステツプに移行す
る。尚フラグFPFは、第1回目の合焦検出動作
がなされている期間は“1”、2回目以降の動作
時は“0”になり、終端フラグENFはフオーカ
ス用レンズFLの駆動位置が最近接位置或いは無
限大位置に達していてモーターMOをそれ以上回
転させてもエンコーダーENCからパルスが出力
されないときに“1”になり、合焦フラグIFFは
レンズが合焦ゾーンにはいると“1”、はずれて
いるときは“0”になる。 No.14以降のステツプでは、まず積分時間計時用
レジスタITRの内容から“1”が差引かれ(No.
14)、このレジスタITRからボローBRWがでてい
るかどうかを判別する(No.15)。ここで、ボロー
BRWがでていなければ、低輝度フラグLLFに
“0”を設定し(No.18)、マイコンMC2から入力
端子i11にマイコンMC1を動作させるための
“High”信号が入力しているかどうかを判別し
(No.19)、 i11が“High”であればNo.14のステツプに
戻り、この動作を繰返す。また、“Low”であれ
ばNo.25以降のステツプに移行して初期状態への復
帰動作を行なつた後に、No.2のステツプに戻つて
再び入力端子i11が“High”になるのを持つ。
一方、No.15のステツプでボローBRWがでたこと
が判別されると、最長の積分時間が経過したこと
になり、出力端子O11にパルスを出力(No.16)
してCCD,FLMの積分動作を強制的に停止させ、
低輝度フラグLLFを“1”にして、制御回路
COTから割込端子itに割込信号が出力するのを待
つ。 No.35以降のステツプでは、まず、計時用レジス
タTWRに一定時間データC2が設定され(No.
35)、レジスタITRの内容からn(例えば3)を差
引いてボローBRWがでているかどうかを判別す
る(No.37)。ここで、レジスタITRからボロー
BRWがでていると、前述と同様に、最長積分時
間が経過したことになるので、No.16のステツプに
移行してCCD,FLMの積分動作を強制的に停止
させ、低輝度フラグLLFを“1”にして制御回
路COT)から割込端子itに割込信号が入力するの
を待つ。 また、ボローBRWがでていなければ低輝度フ
ラグLLFを“0”にし、レジスタTWRから
“1”を差引いてボローBRWが出ているかどう
かを判別する(No.40)。このとき、ボローBRW
がでていなければ入力端子i11が“High”に
なつているかどうかをどうかをNo.41のステツプで
判別する。i11が“High”になつていればNo.
36のステツプに戻り、“Low”になつていればNo.
25のステツプに移行する。尚、C1/n>C2にな
つていて、No.37のステツプでの判別でボロー
BRWがでるまでの間に、 No.40のステツプでの判別で複数回のボローがで
る。 No.40のステツプでボローBRWがでると、エン
コーダENCからのパルス数をカウントしたデー
タECDをレジスタECD1に設定し、(No.42)、こ
の設定データとレジスタECR2の内容とを比較
する(No.43)。尚、レジスタECR2にはそれ以前
に取込まれたカウントデータが設定されている。
ここで、レジスタECR1,ECR2の内容が一致
しない場合は、レンズが移動していることになる
ので、レジスタECR1の内容をレジスタECR2
に設定(No.44)してNo.35のステツプに戻る。 No.43のステツプでレジスタECR1と ECR2との内容が一致する場合は、前回に取
込まれたエンコーダENCからのパルスのカウン
トデータが変化していない、即ちレンズが移動せ
ず、最近接位置或いは無限大位置に達してしまつ
ていることになる。従つてこの場合には、割込を
不可能(No.45)とし、出力端子O11にパルスを
出力(No.46)してCCD(FLM)の積分動作を強制
的に停止させ、出力端子O12,O13をともに
“Low”(No.47)にしてモーターMOの回転を停止
させ、低コントラストフラグLCFが“1”かど
うかを判別する(No.48)。尚、このフラグLCFは
被写体が低コントラストであつて、CCD,FLM
の出力に基づいて算出されたデフオーカス量△L
が信頼性に乏しいときに“1”になる。ここで、
フラグLCFが“0”のときには終端フラグENF
を“1”にして(No.49)、第10図のNo.270のステ
ツプに移行する。No.270のステツプでは、入力端
子i14が“High”のままかどうかを判別し、
i14が“High”でAFモードが選択されたまま
であればそのままNo.2のステツプへ移行する。一
方、i14が“Low”になつていてFAモードに
切換えられていれば、フラグFPFを“1”にし、
端子O12,O13を“Low”にしてモーター
MOを停止し、フラグLCF,LCF1,LCF3を
“O”にした後にNo.2のステツプへ戻る。 以上の動作を要約すると、マイコンMC2から
の合焦検出動作の指令により、CCDの積分を開
始させ、割込を可能として、最長の積分時間のカ
ウントを開始させる。このときモーターMOが回
転していなければ、この最長積分時間をカウント
しながら割込信号が入力するのを持ち、最長時間
が経過しても割込信号が入力されなければCCD
の積分を強制的に停止させて、割込信号が入力す
るのを待つ。一方、CCDの積分動作を開始させ
たときにモーターMOが回転していれば、積分時
間のカウント中にレンズが終端位置に達している
かどうかを周期的に判別しながら割込信号の入力
を待ち、最長積分時間が経過しても割込信号が入
力せず、且つレンズが終端に達していなければ、
CCDの積分を強制的に停止させて割込信号を待
つ。また、レンズが終端に達していれば、割込を
不可能として積分を強制的に停止させ、モーター
MOの回転を停止させて、再びCCDの積分を行な
い、後述するように、△Lを算出して合焦かどう
かを判別し、以後はマイコンMC2からマイコン
MC1の入力端子i11へ“High”の信号が入力
されていてもマイコンMC1は合焦検出、焦点調
整の動作を行なわず、この信号が、“Low”にな
つて再度測光スイツチMESが閉成され入力端子
i11が“High”になるとNo.2のステツプから
の動作を開始する。 さて、No.48のステツプでフラグLCFが“1”
であることが判別されると、次にフラグLCF1
が“1”かどうかが判別される(No.51)。ここで、
LCFが“0”であればLCF1を“1”にして
(No.52)、No.60のステツプで合焦方向フラグFDF
が“1”かどうかを判別する。なお、フラグ
LCF1はレンズ位置が合焦位置から大幅にずれ
ている所謂バカボケの状態にあるか否かを判定す
るためにコントラストが所定の値以上になるレン
ズ位置を走査するためのフラグ、フラグFDFは、
△L>0でレンズを繰込むとき(前ピン)は
“1”、△L<0でレンズを繰出すとき(後ピン)
は“0”になるフラグである。このときFDFが
“1”なら“0”に、“0”なら“1”に設定し直
され、それぞれ入力端子i12が“High”かど
うかが判別される(No.63、64)。即ち、レンズを
繰出すためのモーターの回転方向を判別し、No.63
のステツプでi12が“High”なら、レンズを
繰出すためには時計方向に回転させなければなら
ないので、No.66のステツプに移行して端子O12
を“High”、O13を“Low”にする。i12が
“Low”なら、レンズを繰出すためにはモーター
MOを反時計方向に回転させなければならないの
で、No.65のステツプに移行して端子O12を
“Low”、O13を“High”にする。また、No.64
のステツプでi12が“High”なら、レンズを
繰込むには反時計方向にモーターMOを回転させ
なければならないのでNo.65のステツプに移行す
る。i12が“Low”なら、レンズを繰込むに
は時計方向にモーターMOを回転させなければな
らないのでNo.66のステツプに移行する。次にNo.67
のステツプでは端子O14を“High”にしてモ
ーターMOを高速で回転させ、No.270のステツプ
に移行する。 No.51のステツプでフラグLCF1が“1”であ
ることが判別されると、低コントラストのままで
最近接または無限大の終端位置に達したことにな
り、モーターMOを停止させNo.53、i11が
“Low”になるのを待ち(No.55)、フラグLCF,
LCF1,LCF3を“0”にしてNo.25のステツプ
に戻る。 さて、低コントラストの場合の一連の動作を説
明する。まず、AFモードで低コントラストの場
合、出力ポートOP0に“101”を出力して警告表
示を行ない(No.105)、次にフラグLCFが“1”
になつているかどうかを判別する。(No.107)。こ
こで、フラグLCFが“1”でなく、今回はじめ
て低コントラストになつたのであれば、フラグ
LCF,LCF3を“1”にして(No.108、109)、No.
110のステツプで最初の動作(FPF=1)かどう
かを判別する。フラグFPFが“0”の場合はそ
れまでの動作では低コントラストではなく、今回
の測定が誤りである可能性もありうるので、No.
280のステツプに移行して、No.270、271のステツ
プを経てNo.2のステツプに戻り、再度測定を行な
わせる。このとき、モーターは前回の算出値に向
つて回転している。尚、終端フラグENFが“1”
でNo.110のステツプを経てNo.280のステツプに移行
した場合は、モーターMOの回転は停止している
ので、入力端子i11が“Low”になるのを待
つて(No.281)、フラグLCF,LCF3を“0”に
して(No.282)からNo.25以降のステツプでマイコ
ンMC1の動作停止のための初期値設定を行な
う。 また、No.110のステツプでフラグFPFが“1”
で最初の動作であることが判別されると、フラグ
FPF,LCF3を“0”にして(No.113、113)、No.
205のステツプでデフオーカス量△Lの正負を判
別する。△L>0で前ピンならフラグFDFを
“1”、△L<0で後ピンならフラグFDFを“0”
とし(No.206、209)、前述のNo.63〜66のステツプ
と同様に、レンズを繰出すためのモーターMOの
回転方向に応じてモーターMOを反時計方向或い
は時計方向に回転させる。次にNo.212のステツプ
で積分時間(レジスタITRの内容)が一定値C7
よりも短時間かどうかを判別して、積分時間が一
定値以下((ITR)≧C7)のときは端子O14を
“High”としてモーターMOを高速駆動させ(No.
213)、積分時間が一定値以上のときは端子O14
を“Low”としてモーターMOを低速駆動させ
(No.214)、No.270のステツプを経てNo.2のステツプ
に戻つて、再び測定を開始させる。このようにし
て、以後測定値が低コントラストでない値になる
まで、最初にきまつた方向へレンズを移動させ
る。 低コントラストのままでレンズが一方の終端位
置に達すると、No.52のステツプでフラグLCF1
を“1”にして移動方向を逆転させ、更に測定を
繰返しながらレンズを移動させる。低コントラス
トのままで更に、他の終端位置に達すると一方の
終端から他方の終端までレンズが走査されたこと
になるので、No.55のステツプに移行して、動作を
停止する。なお、この動作中に測定値が低コント
ラストでないことが判別されると No.101のステツプに移行して、後述のデフオー
カス量に基づくレンズ制御の動作を行なう。ここ
で、突然低コントラストになつたときは、前述の
ように一回目の測定値は無視して再度測定を行な
わせ、このときも低コントラストならフラグ
LCF3は“1”になつているので(No.112)、
LCF3を“0”にしてNo.205のステツプに移行
し、このときの測定値に基づいてレンズの移動方
向をきめてコントラストが一定値以上になる位置
をさがす。 FAモード(MOF=1)で低コントラストの場
合には、No.106のステツプからNo.115のステツプに
移行して、フラグLCFを“1”、フラグLCF1,
LCF3を“0”、フラグFPFを“1”、終端フラ
グENFを“0”、出力端子O12,O13を
“Low”として、No.258のステツプに移行し、後
述する動作を行なつて、再び測定を行なう。 マイコンMC1が、No.9〜13のステツプからNo.
14、15、18、19のループまたはNo.35〜40、42〜44
のループまたはNo.36〜41のループを実行している
ときに、CCD,FLMの積分動作が完了して割込
み端子itに制御回路COTから“High”のパルス
が入力すると、マイコンMC1はNo.70のステツプ
にジヤンプして割込み動作を開始する。まず、エ
ンコーダENCからのパルスをカウントした値
ECDがレジスタECR3に設定され(No.70)、CCD
の受光部の数、即ちマイコンMC1の入力ポート
IP0に入力されるデータの数に相当する値C3が
レジスタDNRに設定され(No.71)、No.72のステツ
プで入力端子i10に“High”のパルスが入力
されるのを待つ。CCD出力のA/D変換が終了
して入力端子i10が“High”になると、入力
ポートIP0に入力された1つのCCD出力データ
CDがレジスタM,DNR)に設定される(No.73)。
次に、レジスタDNRの内容から“1”が差引か
れ(No.74)、このレジスタDNRからボローBRW
が出力されるまでNo.72〜75のステツプが繰返され
る。このようにして、CCD出力データCDが順次
レジスタM,DNRに設定される。すべてのCCD
出力データCDの取り込みが完了すると、リター
ンアドレスを設定して、そのアドレスにリターン
動作を行なつて、No.77のステツプ以降のメインの
フローに移行する。 No.77のステツプではフラグLLFが“1”かど
うかが判別される。ここで、LLFが“1”なら
ばCCDからのデータCDのうちで最大のデータ
MACDが探される(No.78)。このデータMACD
の最上位ビツトが“1”でないときは全ての
CCD出力データALCDが2倍され(No.80)、ま
た、“1”であるときは2倍するとオーバーフロ
ーするデータがでるのでそのままNo.81のステツプ
に移行する。一方、フラグLLFが“0”ならば
直ちにNo.81のステツプに移行する。 No.81および90のステツプでは、それぞれフイル
ム面と等価な面での二つの像のシフト量の整数部
および小数部の演算が行なわれる。尚、これらの
ステツプでのシフト量の演算の具体例は、例えば
米国特許第4333007号又は、特開昭57−45510号に
提案されているが、本発明の要旨とは無関係であ
るので説明を省略する。No.82〜85のステツプで
は、前述のNo.10〜13のステツプと同様に、モータ
MOの回転の有無が判別される。ここで、モータ
MOが回転していれば、エンコーダENCからのパ
ルス数のカウントデータECDがレジスタECR1
に取込まれ(No.86)、このデータのNo.44のステツ
プで以前に取込んだレジスタECR2の内容とが
比較される。 ECR1=ECR2ならレンズは終端に達してい
ることになるので、前述のNo.47のステツプから動
作に移行し、 ECR1≠ECR2ならレンズは終端に達してい
ないのでECR1の内容をECR2に設定し直して
No.89のステツプに移行する。一方、モーターMO
が回転していなければ、直ちにNo.89のステツプに
移行する。 No.89のステツプでは入力端子i11が“High”
かどうかを判別し、“Low”のときはNo.25ステツ
プ以降の焦点検出動作を停止および初期設定がな
され、“High”のときはNo.90のステツプに以降し
てシフト量の小数部を算出し、No.81およびNo.90の
ステツプで算出されたシフト量に基づいてデフオ
ーカス量△Lが算出される(No.91)。 No.92のステツプでは、フラグMOFによりAFモ
ードかどうかを判別して、AFモードならNo.93の
ステツプへ、FAモードならNo.100のステツプへ移
行する。AFモードの場合、まずマイコンMC2
によりラツチ回路LAにラツチされていた変換係
数KDを入力ポートIP1から取り込み(No.93)、
このデータのk3が“0”且つk2が“1”かどう
かを判別する(No.94)。ここで、k3=0且つk2=
1の場合には、前述のように、交換レンズがAF
モードでの動作が不可能なので、モードフラグ
MOFを“1”(FAモード)にしてNo.96のステツ
プに移行する。一方、k3=1またはk2=0であ
れば、AFモードが可能な交換レンズが装着され
ていることになり、No.100のステツプに移行する。
更に、No.96のステツプでは、k1=0かどうかを
判別し、k1=1であれはNo.100のステツプに移行
する。 k1=0ならば、前述のように、最近接位置ま
でレンズを繰出さないとマクロ撮影に切換えられ
ないレンズが装着されていて、マクロ撮影に切換
えようとされていることになる。このときはNo.
220のステツプに移行して出力端子O14を
“High”にしてモーターMOを高速で回転させ、
次に、入力端子i12が“High”かどうかを判
別する(No.221)。ここで、i12が“High”で
あれば時計方向に回転させることによりレンズが
繰出されるので出力端子O12を“High”に、
また“Low”なら反時計方向に回転させること
により繰出されるのでO13を“High”にした
後に、エンコーダからのパルスのカウントデータ
ECDをレジスタECR2に取り込む(No.224)。 次に、レジスタTWRに一定時間用データC8
を設定し(No.225)、このレジスタTWRの内容か
ら“1”をひいてボローBRWがでたかどうかを
判別する動作を繰出し、一定時間が経過してボロ
ーBRWがでるとエンコーダからのパルスのカウ
ントデータECDをレジスタECR1に取りこむ
(No.228)。次に、レジスタECR1とECR2との内
容が一致するかどうかを判別し(No.229)、ECR
1≠ECR2のときはECR1の内容をECR2に設
定(No.230)してNo.225〜230のステツプを繰返す。
一方、ECR1=ECR2のときはレンズが最近接
位置に達したことになり出力端子O12,O13
を“Low”にしてモーターMOを停止させ(No.
231)、フラグFPFを“1”にして(No.232)、No.
2のステツプに戻る。尚、以後はFAモードの動
作を行なう。 No.100のステツプでは、CCDからのデータが低
コントラストかどうかが判別される。尚このステ
ツプの具体例は第17図に基づいて後述する。こ
こで、低コントラストであれば前述のNo.105以降
のステツプに移行する。一方、低コントラストで
なければ、No.101のステツプでフラグLCFが
“1”かどうかを判別する。ここで、LCFが
“1”であれば、前回までの測定値が低コントラ
ストなのでフラグFPFを“1”、フラグLCF,
LCF1,LCF3を“0”として、No.290のステツ
プへ移行し、モードフラグMOFを参照する。
MOF=0足ちAFモードであれば出力端子O1
2,O13を“Low”としてモータMOを停止さ
せた後、No.2のステツプへ戻り再び測定を行なわ
せる。また、MOF=1即ちFAモードであればNo.
240のステツプに移行して後述するFAモードの動
作を行なう。No.101のステツプでフラグLCF=1
で前回の測定値が低コントラストでない場合は、
No.104でモードフラグMOFを参照し、MOFが
“1”即ちFAモードであればNo.240のステツプへ、
MOFが“0”即ちAFモードであればNo.125のス
テツプへ移行する。 No.125〜130のステツプでは、デフオーカス量△
Lが合焦ゾーンZN1の範囲内にはいつているか
どうかの判別動作が行なわれる。まず、レンズが
終端位置に達しておらずフラグENFが“0”で
あり(No.125)且つ合焦ゾーンに一旦達していて
合焦フラグIFFが“1”である(No.126)場合に
は、今回の測定値|△L|とZN1とをNo.127のス
テツプで比較する。ここで、|△L|<ZN1なら
合焦表示を行ない(No.128)、入力端子i11が
“Low”になるのを待つて(No.129)、No.25のステ
ツプに移行して動作を停止する。 一方、|△L|≧ZN1ならば、フラグFPFを
“1”、フラグIFFを“0”としてNo.135のステツ
プに移行し、今回の測定値に基づくデフオーカス
量によるレンズ制御動作が行なわれる。また、レ
ンズが終端に達していてフラグENFが“1”の
場合には、No.127のステツプで|△L|<ZN1な
らば合焦表示を行なつて(No.128)、|△L|≧ZN
1ならば前回のデフオーカス方向の表示をしたま
まで、No.129のステツプに移行し、上述と同様に、
i11が“Low”になると動作を停止する。こ
こで、|△L|≧ZN1ならば前回のデフオーカス
方向の表示をしたままでNo.129のステツプに移行
するが、この場合、レンズが終端位置でも合焦と
ならず、以後モーターMOを制御しても無駄なの
でマイコンMC1の動作を強制的に停止させる。 レンズが終端位置にも合焦ゾーン内にも達して
いないことがNo.125、126のステツプで判別される
と、まずNo.131のステツプではフアーストパスフ
ラグFPFが“1”かどうかが判別される。ここ
で、フラグFPFが“0”のときは前述のNo.86〜
88のステツプと同様にレンズが終端に達したかど
うかの判別動作が行なわれ(No.132〜134)た後に
No.135のステツプへ移行し、また、FPFが“1”
のときはそのままNo.135のステツプに移行する。
No.135のステツプではマイコンMC2からの合焦
検出指令信号が判別され、入力端子i11が
“Low”のときはNo.25のステツプに戻り動作を停
止し、“High”のときはNo.136のステツプに移行
する。 No.136のステツプでは、算出されたデフオーカ
ス量△Lと読込まれた変換係数KDとを掛けて、
レンズ駆動機構LDRの駆動量のデータNが算出
され、再びNo.137のステツプでフラグFPFが
“1”かどうかを判別する。ここで、フラグFPF
が“1”であれば、まず、Nが正が負かが判別さ
れ(No.140)、正なら合焦方向フラグFDFを“1”
に、負なら“0”にした後に、駆動量Nの絶対値
がNmとしてレジスタECR4に設定され(No.
144)、フラグFPFが“0”とされてNo.166のステ
ツプに移行する。 一方、No.137のステツプでフラグFPFが“0”
であれば、まず、前回の駆動量のデータが記憶さ
れているレジスタECR4の内容がレジスタECR
5に移され(No.150)、代わりにこの時点でのエン
コーダENCからのパルスのカウントデータECD
がレジスタECR4に取り込まれる(No.151)。即
ち、ECR5にはCCDの積分終了時点でのカウン
トデータTc1が、ECR4にはこの時点でのカウ
ントデータTc2が設定されていることになる。
次に、CCDの積分に要する期間におけるレンズ
の移動量τ=Tco−Tc1が、Nを算出するため
に要する期間におけるレンズの移動量to=Tc1
−Tc2が算出される。ここで、CCDの積分期間
の中間の位置でNが得られたものとすると、この
時点においてレンズはNが得られた時点からτ/
2+toだけ移動している。また、前回のフローで
得られたN′mからレンズの移動分τ+toを補正し
たデータN″m=N′m−τ−toが算出される。尚、
このデータN″mは、必らず正である。 No.155〜157のステツプではデフオーカス量Nの
正負とフラグFDFとにより合焦方向が反転した
か否かが判別される。まずNo.155のステツプでは、
今回算出されたデフオーカス量Nが正かどうかが
判別され、Nが正であればフラグFDF=0かど
うかが判別される(No.156)。このときFDF=0
なら方向が逆転したことになりNo.158のステツプ
へ移行し、FDF=1なら逆転していないのでNo.
159のステツプへ移行する。一方、Nが負であれ
ばFDF=1かどうかが判別され(No.157)、FDF
=1なら逆転しているのでNo.158のステツプへ移
行し、FDF=0なら逆転していないのでNo.159の
ステツプへ移行する。方向が逆転していないと
き、即ちNo.159のステツプでは、モーターの回転
によつて合焦位置に近づいているので、積分期間
の中間でNの値が得られたものとして|N|−
τ/2−to=N′の演算を行なつてモーターの回
転による移動分が補正され、次にこのN′が負か
どうかが判別される(No.160)。ここで、N′<0
なら合焦位置を通り過ぎたことになるので|
N′|=N′としてNo.164のステツプに移行し、N′>
0ならNo.161のステツプで、前回までに得られて
いるデータN″mとN′との平均(N″m+N′)/2
=Naをとり(No.161)、このデータNaをNmとし
て(No.162)、No.166のステツプに移行する。 方向が逆転しているとき、即ちNo.158のステツ
プでは、今回のデータが得られた時点からτ/2
+toだけ今回のデフオーカス方向に合焦位置から
離れているので、|N|+τ/2+to=N′の補正
演算が行なわれて、No.164のステツプに移行する。
No.164のステツプではN″mとN′との平均(N″m
−N′)/2=Naが算出され、次にこの平均値
Naが負かどうかが判別される(No.165)。 ここで、Na>0なら前述のNo.162のステツプに
移行し、Na<0なら端子O12,O13を
“Low”にしてモーターの回転を停止させ(No.
174)、合焦ゾーンのデータZN1に変換係数KD
を掛算して合焦ゾーンのモーター回転量のデータ
Niを算出する(No.175)。次に、|Na|<Niとな
つているかどうかが判別され(No.176)、|Na|<
Niならば合焦ゾーンにはいつているので、合焦
フラグIFFを“1”にしてNo.270のステツプを経
てNo.2のステツプに移行する。一方、|Na|>
Niなら合焦ゾーンを通り過ぎたことになり、フ
ラグFPFを“1”にして同様にNo.270のステツプ
を経てNo.2のステツプに移行し、測定動作をやり
直す。 さて、No.166のステツプでは、近合焦ゾーンを
示すデータNZにKDをかけて近合焦ゾーンから
合焦位置までのレンズの駆動量に相当するデータ
が算出される。次にNo.167のステツプで近合焦ゾ
ーンの値ZN1とKDとからNi=ZN1×KDの演
算を行なつて、合焦ゾーンでのレンズの駆動量の
データNiが算出され(No.167)、NmとNnとが比
較される(No.168)。ここで、Nm≧Nn即ち近合
焦ゾーン外であればNo.181のステツプに移行して、
端子O14を“High”としてモーターMOを高
速で回転させ、エンコーダENCからのパルスを
ダウンカウントするためのカウンタECCにNm−
Nnを設定して(No.182)、No.185のステツプに移行
する。 一方、Nm<Nn即ち近合焦ゾーン内であるこ
とが判別されると、No.169のステツプでNm<Ni
かどうかを判別する。ここで、Nm≧Niであれ
ば、近合焦ゾーン内にあつても合焦ゾーン内には
ないことになり、出力端子O14を“Low”と
してモーターMOの回転速度を低速にし(No.
183)、NmをカウンタECCに設定して(No.184)、
No.185のステツプに移行する。尚、KDが撮影距
離に応じて変化するレンズの場合、近合焦ゾーン
にない場合にはデフオーカス方向の信号によつて
のみレンズ制御が行なわれるが、デフオーカス量
を算出するときはNo.150からのレンズの移動量の
補正が行なわれるので、この補正用のデータのた
めにNo.182のステツプでNm−NnがカウンタECC
に設定される。また、Nm<Niであれば出力端子
O12,O13を“Low”にしてモーターMOを
停止させ(No.171)、合焦フラグIFFを“1”にし
(No.172)、カウンタ割込を不可能にして(No.173)、
No.270のステツプに戻つて、再度確認用の測定を
行なう。 さて、No.185のステツプではフラグFDFが
“1”かどうかを判別する。ここで、FDFが
“1”なら前ピンなので出力ポートOP0に“100”
を出力して出力して発光ダイオードLD0を点灯
させ前ピン表示を行ない(No.186)、“0”ならば
後ピンなので出力ポートOP0に“001”を出力し
て発光ダイオードLD2を点灯させて後ピン表示
を行なう(No.189)。次にこのフラグFDFの内容
と入力端子i12への交換レンズの回転方向の信
号とによりモーターMOを時計方向或いは反時計
方向に回転させ(No.188、191)、No.192のステツプ
に移行して、入力端子i13が“High”かどう
かを判別する。ここで、変換係数が撮影距離に応
じて変化する交換レンズが装着されていてi13
が“High”であれば、No.193のステツプでNm<
Nnかどうかを判別する。このとき近合焦ゾーン
外にあつて、Nm≧Nnであれば、前述のNo.182の
ステツプから直ちにNo.185のステツプに移行した
ように、算出されたNmには無関係に、方向の信
号によつてのみモーターMOの回転方向をきめて
回転させる。次に、積分時間がC7に相当する一
定時間値より長いかどうかを判別し(No.194)、長
いときはレンズが合焦位置で行き過ぎてしまう可
能性があるので端子O14を“Low”にしてモ
ーターMOを低速駆動させ(No.195)、カウンタ割
込を不可能として(No.196)、No.270のステツプを
経てNo.2のステツプに戻る。一方、No.193のステ
ツプでNm<Nnであつて近合焦ゾーンにはいつ
ていることが判別されたときには、通常の交換レ
ンズと同様に、カウンタ割込を可能にして(No.
197)、No.270のステツプに戻る。また、入力端子
i13が“Low”の場合にもカウンタ割込を可
能にしてNo.270のステツプに戻る。 さて、モーターMOの回転中にエンコーダENC
からのパルスをカウントするカウンタECCの内
容が“0”になると、カウンタ割込となり、No.
200のステツプでNm<Nnかどうかが判別され
る。ここで、Nm<Nnであれば、近合焦ゾーン
でモーターMOを回転させていた、即ち合焦ゾー
ンに達したことになり、出力端子O12,O13
を“Low”としてモーターMOの回転を停止させ
No.203、合焦フラグIFFを“1”にしてNo.270のス
テツプに戻る。一方、Nm≧Nnであれば、近合
焦ゾーンに達したことになり、出力端子O14を
“Low”にしてモーターを低速にし(No.201)、Nn
をカウンタECCに設定(No.202)した後に割込の
かかつた番地に戻る。 次に、No.104またはNo.290のステツプでフラグ
MOFが“1”であることが判別されると、No.240
以降のステツプでFAモードの動作が行なわれる。
まず、No.240のステツプではフラグFPFが“1”
かどうかが判別される。ここで、FPFが“1”
ならば、始めてFAモードでの動作を行なうこと
になり、AFモードから切換わつたときのために、
終端フラグENFを“0”、合焦フラグIFFを“0”
とし、合焦ゾーン判別用レジスタIZRに合焦ゾー
ン用データZN2を設定する。尚、このデータZN
2はAFモードでのデータZN1よりも大きい値に
なつている。これは、AFモードの場合にはモー
ター駆動により精度良くレンズ位置を調整するこ
とができるが、 FAモードの場合は手動でレンズ位置を調整す
るのでモータ駆動ほどの精度良い調整は非常に困
難だからである。次に、No.245のステツプでフア
ーストパスフラグFPFを“0”にしてNo.246のス
テツプに移行する。一方フラグFPFが“0”な
らば直ちにNo.246のステツプに移行する。 No.246のステツプでは、合焦フラグIFFが“1”
かどうかが判別される。ここで、フラグIFFが
“1”なら前回までの算出値が合焦ゾーンにある
ことになるので、前回の算出値△Ln−1と今回
の算出値△Lとの平均値、即ち△Ln=(△L+△
Ln−1)/2の演算が行なわれ(No.247)、レジ
スタIZRに合焦ゾーン用データとしてZw(>
ZN2)が設定され(No.248)た後にNo.250のステツ
プに移行する。これは、各回の測定値にはバラツ
キがあり、一旦合焦ゾーン内にはいると合焦ゾー
ンの巾をひろげて合焦状態であると判別される確
率を高め、レンズ位置が合焦ゾーンの境界付近に
あるときの表示のチラツキを防止するためであ
る。一方、No.246のステツプで合焦フラグIFFが
“0”であれば今回の測定値△Lを△Lnとし(No.
249)、No.250のステツプに移行する。No.250のステ
ツプでは|△Ln|<(IZR)、即ち算出値が合焦ゾ
ーン内にあるかどうかを判別する。ここで合焦ゾ
ーン内にあることが判別されると、合焦フラグ
IFFを“1”にし(No.251)、発光ダイオードLD
1による合焦表示を行なつて(No.252)、No.258の
ステツプに移行する。一方、合焦ゾーン外にある
ことが判別されると、△Ln>0かどうかが判別
され(No.253)、△Ln>0なら発光ダイオードLD
0による前ピン表示、△Ln<0ならLD2による
後ピン表示を行なう。次に、合焦フラグIFFを
“0”とし、IZRにデータZN2を設定してNo.258
のステツプに移行する。No.258のステツプでは入
力端子i14が“High”かどうかを判別し、
“High”でAFモードに切換わつていればフラグ
FPFを“1”、IFFを“0”、LCFを“0”にして
No.2のステツプに、また“Low”でFAモードの
ままであればそのままNo.2のステツプに戻り、次
の測定を行なう。 No.25〜33のステツプにおいては、AF、FAモー
ドによる焦点検出動作の停止および初期状態の設
定動作がなされる。まず、割込が不可能とされ
(No.25)、端子O11にパルスを出力してCCDの
積分動作が強制的に停止され(No.26)、端子O1
2,O13を“Low”としてモーターMOが停止
され(No.27)、出力ポートOP0を“000”として
発光ダイオードLD0,LD1,LD2が消灯され
(No.28)、端子O16を“Low”として電源ライ
ンVFからの給電が停止される(No.32)。また、フ
ラグENF,IFF,LCF3に“0”が、フラグ
FPFに“1”が設定される(No.29〜31、33)。こ
の初期設定がなされた後にNo.2のステツプに戻
る。 次に、上述の実施例の変形例として、AFモー
ドによる焦点調節動作で合焦対象とされる被写体
領域が合焦ゾーン内に達した際に、他の被写体領
域が焦点深度内に入つているか否かを確認できる
ようにした実施例を第11図、第12図、第13
図に基づいて説明する。ここで、第11図は第2
図と異なる部分のみを示した要部回路図、第12
図は第3図と異なる部分のみを示した要部フロー
チヤート、第13図は第8図ないし第10図と異
なる部分のみを示した要部フローチヤートであ
る。即ち、 No.127のステツプで合焦ゾーン内に達している
ことが判別され、合焦表示が行なわれると(No.
128)、フラグIFF1を“1”に(No.300)、第11
図のマイコンMC1の出力端子O13を“High”
に(No.301)する。この出力端子O30はマイコ
ンMC2の入力端子i5に接続されており、マイ
コンMC2はその入力端子i5の“High”により
レンズが合焦位置に達したことを判別する。 次に、マイコンMC1はNo.270のステツプに移
行し、FAモードに切換わつていなければそのま
まNo.2のステツプに戻り、再び測定を行なう。こ
の場合、フラグIFFが“1”なので、合焦の確認
の場合と同様のフローを経てNo.91のステツプまで
くる。No.91のステツプとNo.92のステツプとの間に
はフラグIFF1が“1”かどうかを判別するステ
ツプ(No.305)が設けてあり、フラグIFF1が
“0”ならNo.92のステツプへ、“1”ならNo.306の
ステツプに移行する。No.306のステツプでは入力
ポートIP2からのデータを読み込む。ここで、
第12図に示すように、第3図の#30のステツプ
と#31のステツプとの間には、露出制御用絞り値
AvがI/Oポートから出力され(#80)、この絞
り値がデコーダDECの出力端子an+2からのパ
ルスでラツチ回路LA1にラツチされている。従
つて、入力ポートIP2には露出制御絞り値のデ
ータが入力される。 読み取られたデータAvはFNo.に変換され(No.
307)、No.308のステツプで△D=δ×FNo.の算出
が行なわれる。ここで、δは許容ぼけの直径に相
当する値、△Dは焦点深度に相当する値である。
次に、今回のフローでのNo.91のステツプで得られ
たデフオーカス量|△L|と△DとがNo.309のス
テツプで比較され、以下の合焦状態表示を経てNo.
270のステツプに移行する。ここで、|△L|≦△
Dであれば、そのとき測定した被写体の部分は焦
点深度内にあることになり、出力ポートOP5に
“010”の信号を出力して、第11図の発光ダイオ
ードLD4を点灯させて合焦表示が行なわれる。
一方、|△L|>△Dであれば△Lが正か負かに
応じてそれぞれOP5に“100”を出力して発光ダ
イオードLD3を点灯させて前ピン表示が行われ
るか、あるいは“001”を出力して発光ダイオー
ドLD5を点灯させて後ピン表示が行なわれる。 このような動作を行なうようにしておけば、
AFモードでレンズが合焦位置に達した後、レン
ズを合焦位置まで駆動するために測定を行なつた
部分以外の部分が合焦深度内にはいつているかど
うか、或いは前ピンか後ピンかの確認ができると
いつた非常に使い易い効果がでてくる。 なお、No.308のステツプで正確な焦点深度を算
出しているが、カメラぶれ等により測定位置を被
写体の所望の部分に正確にあわせることが困難で
あり、また、△Lの算出値もばらつくので、前述
のFAモードの場合と同様に合焦ゾーン巾を広げ
たり、一旦合焦ゾーンにはいつた後は合焦ゾーン
巾を広げたり、数回の算出データの平均値処理を
行なつたりして精度を高めるようにしてもよい。
例えば、合焦ゾーンの巾を広げるには△D=1×
δ×FNo(1=2〜3)の演算を行なえば良い。 また、この変形例でマイコンMC1が動作を停
止する場合の初期設定、FAモードに切換わつた
ときの初期設定のために、No.33のステツプとNo.2
のステツプとの間、No.273のステツプとNo.2のス
テツプとの間に、それぞれ以下のステツプが挿入
されている。即ち、フラグIFF1を“0”にし
(No.320、No.325)、出力ポートOP5に“000”を出
力して発光ダイオードLD3,LD4,LD5を消
灯させ(No.321、No.326)、出力端子O30を
“Low”にする(No.322、No.327)。 また、第12図の#81のステツプは、測光スイ
ツチMESが開放された後も上述の変形例の表示
動作を一定時間行なわせるために、#38のステツ
プと#39のステツプとの間に入力端子i5の状態
を判別するステツプ(#81)が挿入されている。
即ち、測光スイツチMESが開放され、AFモード
であることが判別されても、入力端子i5が
“High”となつていてマイコンMC1が前述の焦
点深度内にあるかどうかの動作を行なつている場
合には、出力端子O1は“Low”にせず、
“High”のままにしておく。 第14図は第2図のCCD,FLMの制御回路
COTの具体例を示す回路図である。カウンタCO
24はカウンタCO22からのクロツクパルスCP
を分周したパルスDP2の立ち下がりをカウント
し、このカウンタCO24の出力信号p0〜p4
に応じて、デコーダDE20は出力端子T0〜T
9に“High”の信号を出力する。このカウンタ
CO24の出力と、デコーダDE20の出力及びフ
リツプ・フロツプFF22,FF24,FF26,
FF28のQ出力との関係を表7に示す。
[For example 5
(F5.6)] If larger than Avc (#16-3),
Since focus detection operation is not possible in both AF mode and FA mode, after the display control circuit DSC displays a warning that focus detection operation will not be performed in step #16-4, the process moves to step #28. do. Also, when the photometry switch MES is open and i0 is “Low” (#16-5), FA mode only operation is disabled.
Move to step #28 to make it last for only seconds. Input check data, k3~k0≠“0001”,
Avo, Avo+β, Avo+Av or Avl≦Avc, i
#17 if both “High” of 0 is determined
Move on to the next step. At step #17, output terminal O1 is “High”
Then, the microcomputer MC1 starts the focus detection operation in the AF and FA modes by setting the input terminal i11 to "High". In step #18, the microcomputer MC
The conversion coefficient data KD read into the input/output port I/O is outputted to the data bus and latched by the latch circuit LA. The data latched by this latch circuit LA is No. 93 (described later) of microcomputer MC1.
is read in steps. In step #19, based on the data read when the output of counter CO9 is "0100",
The attached lens changes the conversion coefficient according to the shooting distance.
Determine whether the lens is of a type that changes KD. Here, if the lens changes, the microcomputer
The output terminal O3 of MC2, ie, the input terminal i13 of microcomputer MC1, is set to "High", and if the lens does not change, it is set to "Low". Using this signal, the microcomputer MC1 determines whether the imaging position is within the near focus zone or whether the integration time is longer than a certain value, as will be described in detail in steps No. 192 to No. 197 below. Switch the motor MO drive in AF mode according to the AF mode. In step #22, the direction of rotation of the motor MO when extending the focus lens is determined based on the data read when the counter CO9 is "0100". Here, if the direction is clockwise, the output terminal O2 of the microcomputer MC2, that is, the microcomputer MC
1 input terminal i12 is set to "High", and if it is counterclockwise, set to "Low". The microcomputer MC1 determines the rotational direction of the motor MO based on the signal to the terminal i12 and the differential focus direction signal. In step #25, 3 of the conversion coefficient data KD
By detecting whether the th bit is “1” or “0”, the attached converter CV and lens LE
Determines whether focus adjustment operation using AF mode is possible. At this time, if k3=1, the AF mode is possible, so the flag MFF is set to "0" and the process moves to step #28. On the other hand, if k3=0, AF mode is not possible, so MFF is set to "1", and then switch FAS detects whether AF or FA mode is selected. Here, AF
mode is selected and input terminal i1 is “High”
If so, the display control circuit DSC displays a warning that the camera will automatically switch to the FA mode even if the AF mode is set by the photographer, and the process moves to step #28. If the input terminal i1 is "Low", the FA mode is originally selected, so the process moves directly to step #28. In step #28, a known exposure calculation is performed based on the set exposure control value, photometry value, and data from the lens read in steps #5 to #14, and the exposure time and aperture value data are calculated. flag
Set LMF to “1”. In step #30, it is determined whether the release flag RLF is "1" or not. If it is "1", the flow returns to the exposure control operation flow of steps after #64, and the release flag RLF is set to "0".
In this case, move to step #31. In step #31, the inverter IN8 is connected to the transistor BT3 by setting it to "High" via the output terminal O8.
is made conductive, and the light emitting diodes LD10 to LD1n display a warning and the liquid crystal display DSP displays an exposure control value. In step #33, it is determined whether the photometry switch MES is open or closed. Here, if the photometry switch MES is closed and i0 is "High", data for 15 second count is set in the timer register Tc for a timer interrupt, #34, and the timer is started (#35 ), enable timer interrupts (#36) and return to step #2. In this case, since i0 is "High" (the photometric switch MES remains closed), the process immediately moves to step #3, disables timer interrupts, and repeats the same operation as described above. On the other hand, the photometry switch MES is open and
If 0 is “Low”, the switch FAS will
It is determined whether the AF or FA mode is selected (#37), and the mode determined in step #25 is determined based on the data from the lens (#38). Here, input terminal i1 is “Low” and AF mode is selected (#37)
or flag even if AF mode is selected.
If MFF is "1" and the lens side can only operate in FA mode, proceed to step #40. When the AF mode is selected and MFF is "0", the output terminal O1 is set to "Low"(#39) to stop the operation of the microcomputer MC1, and then the process moves to step #40. Incidentally, when the FA mode is determined in steps #37 and #38, the terminal O1 remains at "High" and the process moves to step #40, and the operation of the microcomputer MC1 continues. In step #40, the open/closed state of the switch EES is determined, and if the charging of the exposure control mechanism is not completed and i2 is "High", the process moves to step #47 to return to the initial state, which will be described later. Do this. Charge of the exposure control mechanism has been completed and i2
If is “Low”, enable timer interrupt in step #36, then return to step #2,
The photometry switch MES is closed again and the input terminal i
Wait until 0 becomes "High" or there is a timer interrupt. Now, when there is a timer interrupt, 1 is subtracted from the contents of register Tc (#45), and the contents of Tc become "0".
It is determined whether it has changed (#46). Tc≠0
In this case, operations such as the above-mentioned data acquisition and exposure calculation are performed in steps #5 and thereafter. At this time, in the FA mode, since the terminal O1 is "High", the microcomputer MC1 repeats the operation for FA,
In the AF mode, the operation of the microcomputer MC1 is stopped because the terminal O1 is set to "Low" in step #39. On the other hand, when Tc=0, the output terminals O0, O1,
O8 is set to “Low”, power supply by transistor BT1 and buffer BF is stopped, microcontroller MC1 stops operating in FA mode, and transistor
Power supply by BT3 is stopped. moreover,
Blank display on LCD display DSP, flag MFF,
After resetting the LMF, return to step #2. To summarize the above operation, the photometry switch MES
While the camera is closed, data acquisition, microcomputer MC1 operation, exposure calculation, and display operations are performed repeatedly. Next, when the light metering switch MES is released, the microcontroller immediately
The operation of MC1 is stopped and data import, exposure calculation, and display operations are repeated for 15 seconds.In FA mode, data import, FA operation by microcontroller MC1, exposure calculation, and display operations are repeated for 15 seconds. . In addition, when the exposure control mechanism has not yet completed charging, when the exposure switch MES is released, data acquisition, operation of the microcomputer MC1, exposure calculation, and display operations are immediately stopped. Note that even if a warning is displayed in steps #16-4 and #27-2, if the warning is no longer necessary in the next flow, data for canceling this warning is sent to the display control circuit DSC. Needless to say, it needs to be communicated. Next, the operation when the release switch RLS is closed with the exposure control mechanism completely charged will be described. In this case, no matter what operation the microcomputer MC2 is performing, it immediately performs the release interrupt operation from step #59. First, in consideration of the possibility that an interrupt may occur while reading data from the lens, set the terminal O6 to "Low" to reset the converter and lens circuits CVC and LEC (#59), and then set the terminal O1 to "Low". to stop the AF or FA mode operation by the microcomputer MC1 (#60). Furthermore, the output terminal O8 is set to “Low” and the warning light emitting diode LD10~
Turn off LD1n (#61), release flag
Just as RLF is set to "1"(#62), it is determined whether the aforementioned flag LMF is "1"(#63). Here, if the flag LMF is "1", the calculation of the exposure control value has been completed, and the process moves to step #64. On the other hand, if the LMF is "0", the calculation of the exposure control value has not been completed, so the process moves to steps after #5, calculates the exposure control value, and moves to step #64. In step #64, the data Av−Avo, Av−
(Avo+△Av), Av-(Avo+β), Av-(Avo+
β+ΔAv) is output to the data bus DB, and a pulse for data acquisition is output from the output terminal O4 (#65). As a result, data on the number of stops is imported into the exposure control device EXC, and
A narrowing down operation of the exposure control mechanism is started, and when the aperture is narrowed down by the number of stops taken in, the narrowing down operation is completed. When a certain period of time has elapsed since the pulse output from the output terminal O4 (#66), the data Tv of the calculated exposure time is output to the data bus DB, and the data Tv is output from the output terminal O5.
Pulses for data acquisition are output from (#67, #68). The exposure control device is controlled by this pulse.
Exposure time data is loaded into EXC, and mirror up operation is started by the built-in mirror drive circuit. When the mirror up is completed, the front shutter curtain starts running and
The count switch COS closes and starts counting the time corresponding to the captured exposure time data. When the count ends, the shutter rear curtain starts running, the rear curtain travel is completed, the mirror is lowered,
When the aperture is opened, the switch EES is closed. When the microcomputer MC2 determines that this switch EES is closed and the input terminal i2 becomes "High"(#69), it resets the release flag RLF (#70) and closes the photometry switch MES. and whether the input terminal i0 is "High"(#71). Here, if i0 is “High”,
Return to step #2 and subsequent steps, and repeat the aforementioned data acquisition, operation of the microcomputer MC1, exposure calculation, and display operation. On the other hand, in step #71, the photometry switch MES is open and the input terminal i0 is “Low”.
If so, move on to steps after #47 and install the microcontroller.
Set MC2 to the initial state and return to step #2. Figures 8, 9, and 10 are microcomputer MC1
This is a flowchart showing the operation. Microcomputer
The operation of MC1 is roughly divided into the following three flows. The flow starting with step No. 1 is
This is the main flow started by the focusing operation command from MC2, and the CCD,
FLM operation start No. 8, determination of whether the motor is rotating (No. 10 to No. 13), CCD longest integration time measurement and operation when the longest integration time has elapsed (No. 14 to 19), focus lens Detection of the end position and timing of the longest integration time (Nos. 35 to 44), motor stop at the end position and restart of rotation when contrast is low (Nos. 43 to 48, 51)
~67), Initial settings when microcontroller MC1 stops operating (No.25~33), Conversion of CCD data at low brightness (No.
78 to 80), calculation of the amount of def focus and direction of def focus (No. 81 to 93), determination of whether the lens can operate in AF mode (No. 92 to 96), determination of contrast (No. 100), AF Motor drive to the focusing zone and focus determination (No. 125 to 196) (Fig. 9) in the case of FA mode, focus determination in the case of FA mode (No. 240 to
261) (Fig. 10), Operation at low contrast (No.
105 to 115, 205 to 214), and motor drive (Nos. 220 to 232) for lenses that can be switched to macro photography at the closest photography position. Steps Nos. 70 to 76 are a terminal interrupt flow in which a CCD output data reading operation is performed in response to a CCD integration completion signal sent from the control circuit COT to the terminal it. Steps Nos. 220 to 204 in FIG. 8 are a counter interrupt flow in which focus is determined by outputting a coincidence signal from the counter ECC via the encoder ENC. Note that once pin interrupts are enabled, the priority order of both interrupt operations is determined so that even if a counter interrupt signal is generated thereafter, the counter interrupt will not be executed until after the pin interrupt operation has finished. ing. The operations of the AF and FA modes in this embodiment will be explained below based on this flowchart. First, in response to the closing of the power switch MAS, a reset signal is sent from the power-on reset circuit POR1.
PO1 is output, and this reset signal causes the microcomputer to
MC1 performs a reset operation (No. 1) from a specific address. In step No. 2, it is determined whether the switch FAS is closed and the input terminal i14 is at "High" level. Here, if i14 is "High", the AF mode is selected, so set the flag MOF to "0", and if it is "Low", the FA mode is selected, so set the flag MOF to "1". Set. In step No. 5, it is determined whether the output terminal O1 of the microcomputer MC2 is "High", that is, whether the input terminal i11 is "High". Here, if the input terminal i11 is "Low", the process returns to step No. 2 and the above operation is repeated. When it is determined that i11 is "High", output terminal O16 is set "High" (No. 6), transistor BT2 is made conductive via inverter IN5, and power supply from power supply line VF is started. let next,
Set fixed data C1 corresponding to the longest integration time in the register ITR for measuring the integration time of the CCD and FLM (No. 7). Next, output a “High” pulse from the output terminal O10 (No. 8) and send it to the control circuit COT.
After starting the integral operation of the CCD and FLM and enabling interrupts (No. 9), proceed to step No. 10. In steps No. 10 to No. 13, it is sequentially determined whether or not the motor MO is rotating. In other words, whether or not the first focus detection operation has been performed is determined by the flag FPF (No. 10), and the focus lens FL
The end flag ENF determines whether the drive position has reached the nearest or infinite end position (No.
11) The focus flag IFF (No. 12) determines whether the drive position is within the focus zone or not.
Which mode is selected by FAS is sequentially determined by flag No. 13 by MOF. Here, if the first focus detection operation has been performed, the lens has reached the end position, entered the focus zone, or FA mode is selected, the rotation of the motor MO will stop. Therefore, move on to step No. 14 and onwards. Also, 2
A focus detection operation has been performed since the first time, and the lens has not reached the final position or the focus zone, and
If AF mode is selected, motor MO
is rotating, so move on to steps after No. 35. The flag FPF is "1" during the first focus detection operation, and "0" during the second and subsequent operations, and the end flag ENF is set when the drive position of the focus lens FL is closest. It becomes "1" when the position or the infinite position is reached and no pulse is output from the encoder ENC even if the motor MO is rotated any further, and the focus flag IFF becomes "1" when the lens enters the focusing zone. , it becomes "0" when it is off. In steps after No. 14, "1" is first subtracted from the contents of the integral time measurement register ITR (No.
14) Determine whether borrow BRW is issued from this register ITR (No. 15). Here, the borough
If BRW is not output, set the low brightness flag LLF to “0” (No. 18) and determine whether the “High” signal for operating the microcomputer MC1 is input from the microcomputer MC2 to the input terminal i11. (No. 19), and if i11 is "High", return to step No. 14 and repeat this operation. If it is "Low", it moves to steps after No. 25 and returns to the initial state, then returns to step No. 2 and waits for the input terminal i11 to become "High" again. have
On the other hand, if it is determined that a borrow BRW has occurred at step No. 15, it means that the longest integration time has elapsed, and a pulse is output to output terminal O11 (No. 16).
to forcibly stop the integral operation of CCD and FLM,
Set the low brightness flag LLF to “1” and set the control circuit to
Wait for the interrupt signal to be output from COT to the interrupt terminal it. In steps after No. 35, first, fixed time data C2 is set in the clock register TWR (No.
35), subtract n (for example, 3) from the contents of register ITR to determine whether a borrow BRW has appeared (No. 37). Here, borrow from register ITR
If BRW is displayed, it means that the longest integration time has elapsed as described above, so proceed to step No. 16, forcibly stop the integration operation of CCD and FLM, and set the low brightness flag LLF. Set it to "1" and wait for an interrupt signal to be input from the control circuit COT to the interrupt terminal it. If a borrow BRW is not issued, the low brightness flag LLF is set to "0", and "1" is subtracted from the register TWR to determine whether a borrow BRW is issued (No. 40). At this time, the borough BRW
If not, it is determined in step No. 41 whether the input terminal i11 is set to "High". If i11 is “High” then No.
Return to step 36 and if it is “Low” then No.
Move to step 25. In addition, C1/n>C2, and the determination in step No. 37 is a borrow.
Until BRW comes out, there will be multiple borrows in the judgment at step No. 40. When a borrow BRW occurs at step No. 40, the data ECD that counts the number of pulses from the encoder ENC is set in register ECD1 (No. 42), and this setting data is compared with the contents of register ECR2 (No. .43). Note that the count data taken in previously is set in the register ECR2.
Here, if the contents of registers ECR1 and ECR2 do not match, it means that the lens has moved, so the contents of register ECR1 are changed to register ECR2.
(No.44) and return to step No.35. If the contents of registers ECR1 and ECR2 match in step No. 43, the pulse count data from the encoder ENC that was captured last time has not changed, that is, the lens has not moved and the closest position or This means that it has reached the infinity position. Therefore, in this case, interrupts are disabled (No. 45), a pulse is output to the output terminal O11 (No. 46), the integration operation of the CCD (FLM) is forcibly stopped, and the output terminal O12 is , O13 are both set to "Low" (No. 47) to stop the rotation of the motor MO, and it is determined whether the low contrast flag LCF is "1" (No. 48). Note that this flag LCF is used when the subject is low contrast and CCD, FLM
Defocus amount △L calculated based on the output of
becomes “1” when the reliability is poor. here,
When flag LCF is “0”, termination flag ENF
is set to "1" (No. 49), and the process moves to step No. 270 in FIG. In step No. 270, it is determined whether the input terminal i14 remains "High", and
If i14 is "High" and the AF mode remains selected, the process directly advances to step No. 2. On the other hand, if i14 is set to "Low" and switched to FA mode, the flag FPF is set to "1",
Turn terminals O12 and O13 “Low” to turn the motor on.
After stopping MO and setting flags LCF, LCF1, and LCF3 to "O", return to step No. 2. To summarize the above operation, in response to a focus detection command from the microcomputer MC2, the CCD starts integrating, enables interrupts, and starts counting the longest integration time. If the motor MO is not rotating at this time, an interrupt signal is input while counting the longest integral time, and if no interrupt signal is input even after the longest integration time, the CCD
Force the integration to stop and wait for an interrupt signal to be input. On the other hand, if the motor MO is rotating when the CCD starts integrating, it will wait for an interrupt signal to be input while periodically determining whether the lens has reached the end position while counting the integration time. , if the interrupt signal is not input even after the longest integration time has elapsed, and the lens has not reached the end,
Force the CCD integration to stop and wait for an interrupt signal. Also, if the lens has reached the end, interrupts are disabled and the integration is forcibly stopped, and the motor
Stop the rotation of the MO, integrate the CCD again, calculate △L and determine whether or not the focus is achieved as described later.
Even if a "High" signal is input to the input terminal i11 of MC1, the microcomputer MC1 does not perform focus detection or focus adjustment, and this signal becomes "Low" and the photometry switch MES is closed again. When the input terminal i11 becomes "High", the operation starts from step No. 2. Now, at step No. 48, the flag LCF is “1”
If it is determined that
It is determined whether or not is "1" (No. 51). here,
If LCF is “0”, set LCF1 to “1” (No.52), and at step No.60, focus direction flag FDF is set.
is “1”. In addition, the flag
LCF1 is a flag used to scan the lens position where the contrast exceeds a predetermined value in order to determine whether or not the lens position is significantly deviated from the in-focus position, a so-called bokeh state.Flag FDF is
When △L>0 and the lens is retracted (front focus), it is "1", when △L<0 and the lens is extended (rear focus)
is a flag that becomes "0". At this time, if FDF is "1", it is reset to "0", and if it is "0", it is reset to "1", and it is determined whether the input terminal i12 is "High" or not (Nos. 63 and 64). In other words, the direction of rotation of the motor for feeding out the lens is determined, and No. 63
If i12 is "High" in step No. 66, the lens must be rotated clockwise to extend it, so move to step No. 66 and connect terminal O12.
Set O13 to “High” and O13 to “Low”. If i12 is “Low”, the motor is required to extend the lens.
Since MO must be rotated counterclockwise, move to step No. 65 and set terminal O12 to "Low" and terminal O13 to "High". Also, No.64
If i12 is "High" in step No. 65, the motor MO must be rotated counterclockwise to retract the lens, so move to step No. 65. If i12 is "Low", the motor MO must be rotated clockwise to retract the lens, so move on to step No. 66. Next No.67
In step No. 270, the terminal O14 is set to "High" to rotate the motor MO at high speed, and the process moves to step No. 270. If flag LCF1 is determined to be "1" at step No. 51, it means that the closest or infinite end position has been reached with low contrast, and the motor MO is stopped and step No. 53 Wait for i11 to become “Low” (No.55), and set the flag LCF,
Set LCF1 and LCF3 to “0” and return to step No.25. Now, a series of operations in the case of low contrast will be explained. First, if the contrast is low in AF mode, "101" is output to output port OP0 to display a warning (No.105), and then flag LCF is set to "1".
Determine whether it is. (No.107). Here, if the flag LCF is not "1" and the contrast has become low for the first time, then the flag
Set LCF and LCF3 to “1” (No.108, 109), and set No.
At step 110, it is determined whether it is the first operation (FPF=1). If the flag FPF is "0", the contrast was not low in the previous operation, and there is a possibility that the current measurement was incorrect, so No.
The process moves to step 280, passes through steps 270 and 271, returns to step 2, and performs the measurement again. At this time, the motor is rotating toward the previously calculated value. In addition, the termination flag ENF is “1”
If the step moves to step No. 280 after passing through step No. 110, the rotation of the motor MO has stopped, so wait for input terminal i11 to become “Low” (No. 281) and set the flag. After setting LCF and LCF3 to "0" (No. 282), initial values for stopping the operation of the microcomputer MC1 are set in steps from No. 25 onwards. Also, the flag FPF is “1” at step No. 110.
is determined to be the first action, the flag
Set FPF and LCF3 to “0” (No.113, 113), and set No.
At step 205, it is determined whether the differential focus amount ΔL is positive or negative. If △L>0 and the front pin, set the flag FDF to “1”; if △L<0 and the rear pin, set the flag FDF to “0”
(Nos. 206 and 209), and similarly to steps Nos. 63 to 66 described above, rotate the motor MO counterclockwise or clockwise depending on the rotation direction of the motor MO for extending the lens. Next, at step No. 212, the integral time (contents of register ITR) is set to a constant value C7.
If the integral time is less than a certain value ((ITR)≧C7), the terminal O14 is set to “High” and the motor MO is driven at high speed (No.
213), when the integral time is above a certain value, terminal O14
Set to “Low” to drive the motor MO at low speed (No. 214), go through step No. 270, return to step No. 2, and start measurement again. In this way, the lens is first moved in the correct direction until the measured value becomes a value that is not low contrast. When the lens reaches one end position with low contrast, flag LCF1 is set at step No.52.
is set to "1", the direction of movement is reversed, and the lens is moved while repeating the measurement. If the other end position is reached while the contrast remains low, it means that the lens has been scanned from one end to the other, so the process moves to step No. 55 and stops the operation. If it is determined during this operation that the measured value is not low contrast, the process moves to step No. 101 and a lens control operation based on the amount of defocus described later is performed. If the contrast suddenly becomes low, ignore the first measurement value as described above and take the measurement again, and if the contrast is low this time as well, the flag will be flagged.
Since LCF3 is set to “1” (No.112),
Set LCF3 to "0" and proceed to step No. 205, determine the direction of movement of the lens based on the measured value at this time, and search for a position where the contrast is above a certain value. If the contrast is low in FA mode (MOF=1), move from step No. 106 to step No. 115, set flag LCF to "1", flag LCF1,
Set LCF3 to "0", flag FPF to "1", termination flag ENF to "0", and output terminals O12 and O13 to "Low", move to step No. 258, perform the operations described later, and repeat. Take measurements. Microcomputer MC1 takes No. 1 from steps No. 9 to 13.
Loops of 14, 15, 18, 19 or No. 35-40, 42-44
When the integration operation of CCD and FLM is completed and a "High" pulse is input from the control circuit COT to the interrupt terminal it while executing the loop or the loop of Nos. 36 to 41, the microcomputer MC1 selects No. Jumps to step 70 and starts interrupt operation. First, the value of counting pulses from the encoder ENC
ECD is set in register ECR3 (No.70), and CCD
The number of light receiving parts, that is, the input port of microcontroller MC1
A value C3 corresponding to the number of data input to IP0 is set in the register DNR (No. 71), and at step No. 72 it waits for a "High" pulse to be input to the input terminal i10. When the A/D conversion of the CCD output is completed and the input terminal i10 becomes “High”, one CCD output data input to the input port IP0
CD is set in register M, DNR) (No. 73).
Next, “1” is subtracted from the contents of register DNR (No. 74), and borrow BRW is subtracted from this register DNR.
Steps Nos. 72 to 75 are repeated until . In this way, CCD output data CD is sequentially set in registers M and DNR. All CCDs
When the capture of the output data CD is completed, a return address is set, a return operation is performed to that address, and the process moves to the main flow after step No. 77. In step No. 77, it is determined whether the flag LLF is "1". Here, if LLF is “1”, the largest data among the data CDs from the CCD
MACD is searched (No.78). This data MACD
When the most significant bit of is not “1”, all
The CCD output data ALCD is doubled (No. 80), and when it is "1", doubling results in overflow data, so the process directly proceeds to step No. 81. On the other hand, if the flag LLF is "0", the process immediately moves to step No. 81. In steps No. 81 and 90, the integer part and decimal part of the shift amount of the two images on a plane equivalent to the film plane are calculated. A specific example of calculating the shift amount in these steps is proposed in, for example, U.S. Pat. Omitted. In steps No. 82 to 85, the motor is
It is determined whether or not the MO is rotating. Here, the motor
If MO is rotating, the count data ECD of the number of pulses from encoder ENC is in register ECR1.
(No. 86), and this data is compared with the previously imported contents of register ECR2 at step No. 44. If ECR1=ECR2, the lens has reached the end, so move on to the operation from step No. 47 mentioned above. If ECR1≠ECR2, the lens has not reached the end, so set the contents of ECR1 to ECR2 again. hand
Move to step No.89. On the other hand, motor MO
If it is not rotating, immediately proceed to step No. 89. In step No. 89, input terminal i11 is “High”
When it is “Low”, the focus detection operation is stopped and initial settings are made after step No. 25, and when it is “High”, the decimal part of the shift amount is started from step No. 90. The differential focus amount ΔL is calculated based on the shift amount calculated in steps No. 81 and No. 90 (No. 91). In step No. 92, it is determined whether the mode is AF mode or not based on the flag MOF, and if the mode is AF mode, the process moves to step No. 93, and if it is FA mode, the process moves to step No. 100. In the case of AF mode, first the microcomputer MC2
The conversion coefficient KD latched in the latch circuit LA is taken in from the input port IP1 (No.93),
It is determined whether k3 of this data is "0" and k2 is "1" (No. 94). Here, k3=0 and k2=
In case 1, as mentioned above, the interchangeable lens is AF
Since operation in mode is not possible, the mode flag
Set MOF to “1” (FA mode) and move to step No.96. On the other hand, if k3=1 or k2=0, it means that an interchangeable lens capable of AF mode is attached, and the process moves to step No. 100.
Furthermore, in step No. 96, it is determined whether k1=0 or not, and if k1=1, the process moves to step No. 100. If k1=0, as described above, this means that a lens is attached that cannot be switched to macro photography unless the lens is extended to the closest position, and a switch to macro photography is being attempted. At this time No.
Move to step 220, set output terminal O14 to "High" and rotate motor MO at high speed.
Next, it is determined whether the input terminal i12 is "High" (No. 221). Here, if i12 is "High", the lens is extended by rotating clockwise, so the output terminal O12 is set to "High".
Also, if it is “Low”, it is fed out by rotating counterclockwise, so after setting O13 to “High”, the pulse count data from the encoder
Load ECD into register ECR2 (No.224). Next, data C8 for a certain period of time is stored in register TWR.
(No. 225), subtracts "1" from the contents of this register TWR to determine whether a borrow BRW has occurred, and when a borrow BRW occurs after a certain period of time, the pulse from the encoder is Load count data ECD into register ECR1 (No. 228). Next, it is determined whether the contents of registers ECR1 and ECR2 match (No. 229), and ECR
When 1≠ECR2, set the contents of ECR1 to ECR2 (No. 230) and repeat steps No. 225 to 230.
On the other hand, when ECR1=ECR2, the lens has reached the closest position, so the output terminals O12 and O13
to “Low” to stop the motor MO (No.
231), set the flag FPF to “1” (No. 232), and set the flag FPF to “1” (No. 232).
Return to step 2. Note that from now on, the operation will be in FA mode. In step No. 100, it is determined whether the data from the CCD is low contrast. A specific example of this step will be described later with reference to FIG. Here, if the contrast is low, the process moves to the steps from No. 105 described above. On the other hand, if the contrast is not low, it is determined in step No. 101 whether the flag LCF is "1". Here, if LCF is "1", the previous measurement value is low contrast, so the flag FPF is set to "1", the flag LCF,
Set LCF1 and LCF3 to "0", move to step No. 290, and refer to the mode flag MOF.
If MOF = 0 foot AF mode, output terminal O1
2. After setting O13 to "Low" and stopping the motor MO, return to step No. 2 and perform measurement again. Also, if MOF=1, that is, FA mode, No.
The program moves to step 240 and performs the FA mode operation, which will be described later. Flag LCF=1 at step No.101
If the previous measurement value is not low contrast,
Refer to the mode flag MOF at No. 104, and if MOF is "1", that is, FA mode, go to step No. 240.
If the MOF is "0", that is, the AF mode, the process moves to step No. 125. In steps No. 125 to 130, the amount of defocus is △
A determination operation is performed to determine when L is within the focus zone ZN1. First, when the lens has not reached the final position and the flag ENF is "0" (No. 125), and once it has reached the in-focus zone and the in-focus flag IFF is "1" (No. 126), The current measured value |△L| and ZN1 are compared at step No. 127. Here, if |△L| stop. On the other hand, if |ΔL|≧ZN1, the flag FPF is set to "1" and the flag IFF is set to "0", and the process moves to step No. 135, where a lens control operation is performed using the defocus amount based on the current measurement value. If the lens has reached the end and the flag ENF is "1", in step No. 127, if |△L|<ZN1, in-focus display is performed (No. 128), |≧ZN
If it is 1, move to step No. 129 with the previous def focus direction displayed, and do the same as above.
When i11 becomes "Low", the operation is stopped. Here, if |△L|≧ZN1, the previous defocus direction remains displayed and the process moves to step No. 129, but in this case, the lens does not focus even at the end position, and the motor MO is controlled from now on. Since it is useless to do so, we forcibly stop the operation of the microcomputer MC1. When it is determined in steps No. 125 and 126 that the lens has not reached the final position or within the focusing zone, first, in step No. 131, it is determined whether the first pass flag FPF is "1". be done. Here, when the flag FPF is "0", the above-mentioned No. 86~
Similar to step 88, after the operation to determine whether the lens has reached the end is performed (Nos. 132 to 134),
Move to step No. 135 and FPF is “1”
In this case, proceed directly to step No. 135.
At step No. 135, the focus detection command signal from the microcomputer MC2 is determined. When the input terminal i11 is "Low", the operation returns to step No. 25 and the operation is stopped; when it is "High", the focus detection command signal from the microcomputer MC2 is determined. Move on to the next step. In step No. 136, the calculated defocus amount △L is multiplied by the read conversion coefficient KD.
Data N of the drive amount of the lens drive mechanism LDR is calculated, and it is again determined in step No. 137 whether the flag FPF is "1". Here, the flag FPF
If N is "1", first it is determined whether N is positive or negative (No. 140), and if it is positive, the focusing direction flag FDF is set to "1".
If it is negative, it is set to "0", and then the absolute value of the drive amount N is set as Nm in the register ECR4 (No.
144), the flag FPF is set to "0" and the process moves to step No. 166. On the other hand, the flag FPF is “0” at step No. 137.
If so, first, the contents of register ECR4, which stores the data of the previous drive amount, are stored in register ECR.
5 (No. 150), and instead the pulse count data ECD from the encoder ENC at this point
is taken into register ECR4 (No. 151). That is, the ECR5 is set with the count data Tc1 at the time when the CCD integration ends, and the ECR4 is set with the count data Tc2 at this time.
Next, the amount of movement of the lens in the period required for CCD integration τ = Tco - Tc1 is the amount of movement of the lens in the period required to calculate N to = Tc1
−Tc2 is calculated. Here, if N is obtained at the middle position of the CCD integration period, at this point the lens is τ/
It has moved by 2+to. Also, data N″m=N′m−τ−to is calculated by correcting the lens movement τ+to from N′m obtained in the previous flow.
This data N″m is always positive. In steps No. 155 to 157, it is determined whether or not the focusing direction has been reversed based on the sign of the defocus amount N and the flag FDF. First, No. 155 In the step of
It is determined whether the currently calculated differential focus amount N is positive, and if N is positive, it is determined whether the flag FDF=0 (No. 156). At this time FDF=0
If so, the direction has been reversed, and the process moves to step No. 158. If FDF=1, it has not been reversed, so step No.
Move to step 159. On the other hand, if N is negative, it is determined whether FDF=1 (No. 157), and FDF
If = 1, the rotation is reversed, so proceed to step No. 158; if FDF = 0, the rotation is not reversed, and proceed to step No. 159. When the direction is not reversed, that is, at step No. 159, the focus position is approached by the rotation of the motor, so assuming that the value of N is obtained in the middle of the integration period, |N|-
The movement due to the rotation of the motor is corrected by calculating τ/2-to=N', and then it is determined whether or not N' is negative (No. 160). Here, N′<0
If so, it means that you have passed the in-focus position.
Set N′|=N′ and move to step No. 164, N′>
If it is 0, at step No. 161, the average of the data N″m and N′ obtained up to the previous time (N″m+N′)/2
=Na (No. 161), set this data Na as Nm (No. 162), and proceed to step No. 166. When the direction is reversed, that is, at step No. 158, τ/2 from the time when the current data was obtained.
Since it is away from the in-focus position by +to in the current defofocus direction, a correction calculation of |N|+τ/2+to=N' is performed, and the process moves to step No. 164.
In step No. 164, the average of N″m and N′ (N″m
−N′)/2=Na is calculated and then this average value
It is determined whether Na is negative or not (No. 165). Here, if Na > 0, proceed to step No. 162 described above, and if Na < 0, set terminals O12 and O13 to "Low" to stop the rotation of the motor (No.
174), conversion coefficient KD to focus zone data ZN1
Multiply by to obtain the data of the motor rotation amount in the focusing zone.
Calculate Ni (No.175). Next, it is determined whether |Na|<Ni (No.176), and |Na|<Ni.
If Ni is in the focus zone, the focus flag IFF is set to "1" and the process moves to step No. 2 via step No. 270. On the other hand, |Na|>
If it is Ni, it means that it has passed through the focus zone, so the flag FPF is set to "1", and the process similarly moves to step No. 2 via step No. 270, and repeats the measurement operation. Now, in step No. 166, data NZ indicating the near focus zone is multiplied by KD to calculate data corresponding to the amount of lens drive from the near focus zone to the in-focus position. Next, in step No. 167, the calculation Ni = ZN1 × KD is calculated from the values ZN1 and KD of the near focus zone, and the data Ni of the lens drive amount in the focus zone is calculated (No. 167 ), Nm and Nn are compared (No. 168). Here, if Nm≧Nn, that is, outside the near focus zone, move to step No. 181,
Set terminal O14 to “High” to rotate motor MO at high speed, and input Nm− to counter ECC to count down the pulses from encoder ENC.
Set Nn (No.182) and move to step No.185. On the other hand, if it is determined that Nm<Nn, that is, within the near focus zone, then in step No. 169, Nm<Nn
Determine whether or not. Here, if Nm≧Ni, even if it is within the near focus zone, it is not within the focus zone, so the output terminal O14 is set to “Low” and the rotational speed of the motor MO is set to a low speed (No.
183), set Nm to counter ECC (No. 184),
Move to step No.185. In addition, in the case of a lens whose KD changes depending on the shooting distance, if it is not in the near focusing zone, lens control is performed only by the signal in the direction of defocus, but when calculating the amount of defocus, it is necessary to start from No. 150. Since the amount of movement of the lens is corrected, Nm-Nn is stored in the counter ECC at step No. 182 for data for this correction.
is set to If Nm<Ni, output terminals O12 and O13 are set to "Low" to stop the motor MO (No. 171), the focus flag IFF is set to "1" (No. 172), and the counter interrupt is disabled. Make it possible (No.173)
Return to step No. 270 and perform the confirmation measurement again. Now, in step No. 185, it is determined whether the flag FDF is "1". Here, if FDF is “1”, it is the front pin, so “100” is sent to the output port OP0.
Outputs and lights up light emitting diode LD0 to display the front pin (No.186), and if it is "0", it is the back pin, so output "001" to output port OP0 and light up light emitting diode LD2. Display the rear pin (No.189). Next, the motor MO is rotated clockwise or counterclockwise according to the contents of this flag FDF and the rotation direction signal of the interchangeable lens to the input terminal i12 (No. 188, 191), and the process moves to step No. 192. Then, it is determined whether the input terminal i13 is "High". Here, if an interchangeable lens whose conversion coefficient changes depending on the shooting distance is attached,
If is “High”, Nm<
Determine whether it is Nn. At this time, if it is outside the near focus zone and Nm≧Nn, the directional signal is applied regardless of the calculated Nm, as shown in the above-mentioned step No. 182 immediately proceeding to step No. 185. The direction of rotation of the motor MO is determined and rotated only by this. Next, determine whether the integration time is longer than the fixed time value corresponding to C7 (No. 194), and if it is long, the lens may go too far at the in-focus position, so set terminal O14 to "Low". The motor MO is driven at low speed (No. 195), counter interrupt is disabled (No. 196), and the process returns to step No. 2 via step No. 270. On the other hand, when it is determined in step No. 193 that Nm < Nn and the lens is in the near focus zone, a counter interrupt is enabled (No.
197), return to step No. 270. Also, when the input terminal i13 is "Low", the counter interrupt is enabled and the process returns to step No. 270. Now, while the motor MO is rotating, the encoder ENC
When the contents of the counter ECC, which counts pulses from
In 200 steps, it is determined whether Nm<Nn. Here, if Nm<Nn, it means that the motor MO was rotating in the near focus zone, that is, the focus zone has been reached, and the output terminals O12 and O13
is set to “Low” to stop the rotation of the motor MO.
No. 203, set the focus flag IFF to "1" and return to step No. 270. On the other hand, if Nm≧Nn, it means that the near focusing zone has been reached, and the output terminal O14 is set to “Low” and the motor is made to slow down (No. 201).
is set in the counter ECC (No. 202), and then returns to the address where the interrupt occurred. Next, flag at step No. 104 or No. 290.
When it is determined that MOF is “1”, No.240
The FA mode operation is performed in the subsequent steps.
First, at step No. 240, the flag FPF is “1”
It is determined whether Here, FPF is “1”
If so, you will be operating in FA mode for the first time, and in case you switch from AF mode,
Set end flag ENF to “0” and focus flag IFF to “0”
Then, the in-focus zone data ZN2 is set in the in-focus zone discrimination register IZR. Furthermore, this data ZN
2 is a larger value than data ZN1 in AF mode. This is because in AF mode, the lens position can be adjusted with high precision by motor drive, but in FA mode, the lens position is adjusted manually, so it is extremely difficult to adjust the lens position as precisely as with motor drive. be. Next, in step No. 245, the first pass flag FPF is set to "0" and the process moves to step No. 246. On the other hand, if the flag FPF is "0", the process immediately moves to step No. 246. At step No. 246, the focus flag IFF is “1”
It is determined whether Here, if the flag IFF is "1", it means that the previous calculated value is in the in-focus zone, so the average value of the previous calculated value △Ln-1 and the current calculated value △L, that is, △Ln= (△L+△
The calculation of Ln-1)/2 is performed (No. 247), and Zw (>
After ZN2) is set (No.248), move to step No.250. This is because there are variations in the measured values each time, and once the lens enters the in-focus zone, the width of the in-focus zone increases, increasing the probability that the lens is in focus. This is to prevent the display from flickering when near the boundary. On the other hand, if the focus flag IFF is "0" at step No. 246, the current measurement value △L is set as △Ln (No.
249), move to step No. 250. In step No. 250, it is determined whether |ΔLn|<(IZR), that is, whether the calculated value is within the in-focus zone. If it is determined that the focus zone is within the focus zone, the focus flag will be displayed.
Set IFF to “1” (No.251), and turn on the light emitting diode LD.
1 is displayed (No. 252), and the process moves to step No. 258. On the other hand, if it is determined that it is outside the focus zone, it is determined whether △Ln>0 (No. 253), and if △Ln>0, the light emitting diode LD
The front pin is displayed by 0, and if ΔLn<0, the rear pin is displayed by LD2. Next, set the focus flag IFF to “0” and set data ZN2 in IZR to No. 258.
Move on to the next step. In step No. 258, it is determined whether the input terminal i14 is “High” or not.
Flag if switched to AF mode with “High”
Set FPF to “1”, IFF to “0”, and LCF to “0”.
Return to step No. 2, and if it remains in FA mode with "Low", return to step No. 2 and perform the next measurement. In steps Nos. 25 to 33, focus detection operations in AF and FA modes are stopped and initial conditions are set. First, interrupts are disabled (No. 25), and a pulse is output to terminal O11 to forcibly stop the CCD integration operation (No. 26).
2. Motor MO is stopped by setting O13 to "Low" (No. 27), output port OP0 is set to "000", light emitting diodes LD0, LD1, and LD2 are turned off (No. 28), and terminal O16 is set to "Low". Power supply from power line VF is stopped (No. 32). Also, flags ENF, IFF, and LCF3 are set to “0”.
“1” is set in FPF (Nos. 29 to 31, 33). After this initial setting is made, the process returns to step No. 2. Next, as a modification of the above-mentioned embodiment, when the subject area to be focused in the focus adjustment operation in AF mode reaches the in-focus zone, check whether other subject areas are within the depth of focus. 11, 12, and 13 show examples in which it is possible to confirm whether
This will be explained based on the diagram. Here, Figure 11 is the second
Main part circuit diagram showing only the parts different from the diagram, No. 12
This figure is a flowchart of the main part showing only the parts different from FIG. 3, and FIG. 13 is a flowchart of the main part showing only the parts different from FIGS. 8 to 10. That is, when it is determined that the focus zone has been reached at step No. 127, and the focus display is performed (No.
128), flag IFF1 is set to “1” (No. 300), 11th
Set the output terminal O13 of the microcomputer MC1 in the figure to “High”
(No.301). This output terminal O30 is connected to the input terminal i5 of the microcomputer MC2, and the microcomputer MC2 determines that the lens has reached the in-focus position based on the "High" level of the input terminal i5. Next, the microcomputer MC1 moves to step No. 270, and if it has not switched to FA mode, returns to step No. 2 and performs measurement again. In this case, since the flag IFF is "1", the process goes through the same flow as in the case of in-focus confirmation and reaches step No. 91. A step (No. 305) is provided between the step No. 91 and the step No. 92 to determine whether the flag IFF1 is "1". If the flag IFF1 is "0", the step No. 92 is If it is “1”, move to step No. 306. Step No. 306 reads data from input port IP2. here,
As shown in Figure 12, between step #30 and step #31 in Figure 3, there is an aperture value for exposure control.
Av is output from the I/O port (#80), and this aperture value is latched in the latch circuit LA1 by a pulse from the output terminal an+2 of the decoder DEC. Therefore, data on the exposure control aperture value is input to the input port IP2. The read data Av is converted to FNo. (No.
307), and in step No. 308, ΔD=δ×FNo. is calculated. Here, δ is a value equivalent to the diameter of allowable blur, and ΔD is a value equivalent to the depth of focus.
Next, the differential focus amount |△L| and △D obtained in step No. 91 in this flow are compared in step No. 309, and the focus state is displayed as shown below.
Move to step 270. Here, |△L|≦△
If it is D, the part of the object measured at that time is within the depth of focus, and a signal of "010" is output to the output port OP5, and the light emitting diode LD4 shown in Fig. 11 is lit to indicate the focus. will be carried out.
On the other hand, if △L| ” is output, the light emitting diode LD5 is turned on, and the pin is displayed. If you do something like this,
After the lens reaches the in-focus position in AF mode, check whether any part other than the part measured to drive the lens to the in-focus position is within the depth of focus, or whether it is front or rear focus. Once you can confirm this, you will get effects that are very easy to use. Although the accurate depth of focus is calculated in step No. 308, it is difficult to accurately align the measurement position with the desired part of the subject due to camera shake, etc., and the calculated value of △L also varies. Therefore, as in the case of FA mode mentioned above, you can widen the focus zone width, expand the focus zone width once it is in the focus zone, or process the average value of the data calculated several times. The accuracy may be increased by
For example, to increase the width of the focusing zone, △D=1×
It is sufficient to perform the calculation of δ×FNo (1=2 to 3). In addition, in this modification, step No. 33 and step No.
The following steps are inserted between step No. 273 and step No. 2. That is, the flag IFF1 is set to "0" (No. 320, No. 325), "000" is output to the output port OP5, and the light emitting diodes LD3, LD4, LD5 are turned off (No. 321, No. 326). Set output terminal O30 to “Low” (No. 322, No. 327). In addition, step #81 in FIG. 12 is an input between step #38 and step #39 in order to continue the display operation of the above-mentioned modification for a certain period of time even after the photometry switch MES is released. A step (#81) for determining the state of terminal i5 is inserted.
In other words, even if the photometry switch MES is opened and it is determined that the camera is in AF mode, the input terminal i5 remains "High" and the microcomputer MC1 performs the operation to check whether the depth of focus is within the aforementioned depth of focus. In this case, output terminal O1 is not set to “Low”,
Leave it at “High”. Figure 14 shows the CCD and FLM control circuit in Figure 2.
FIG. 2 is a circuit diagram showing a specific example of COT. counter CO
24 is the clock pulse CP from counter CO22
The falling edge of pulse DP2, which is frequency-divided, is counted, and the output signals p0 to p4 of this counter CO24 are
Accordingly, the decoder DE20 outputs the output terminals T0 to T
9 outputs a “High” signal. This counter
The output of CO24, the output of decoder DE20 and flip-flops FF22, FF24, FF26,
Table 7 shows the relationship with the Q output of FF28.

【表】【table】

【表】 この表7から明らかなように、フリツプフロツ
プFF26のQ出力φ1はカウンタCO24の出力
が“11101”〜“00101”の間“High”、フリツプ
フロツプFF24のQ出力φ2は“00100”〜
“10111”の間“High”、フリツプフロツプFF2
2のQ出力φ3は“10110”〜“11110”の間
“High”となる。この出力信号φ1,φ2,φ3
は電源ラインVFから給電が行なわれている間
CCD,FLMに与えられ、転送ゲート内でアナロ
グ信号の転送が常時行なわれている。なお、この
動作によつて、転送ゲート内に残つている蓄積電
荷の排出も行なわれる。 電源の供給開始に基づくパワーオンリセツト回
路POR2からのリセツト信号PO2で、フリツプ
フロツプFF20〜FF28,FF32、Dフリツ
プフロツプDF20,DF22,DF24、カウン
タCO20,CO22,CO24がリセツトされる。
さらに、フリツプフロツプFF30がセツトされ
てQ出力が“High”になる。この出力信号φRに
よりアナログスイツチAS2が導通し、定電圧源
Vr1出力電位が信号線ANBを介してCCD,
FLMに与えられ、この電位にCCD,FLMの電荷
蓄積部の電位が設定される。 マイコンMC1の出力端子O10から積分動作
を開始させるための“High”のパルスが出力さ
れると、ワンシヨツト回路OS18を介してフリ
ツプフロツプFF30がリセツトされ端子φRが
“Low”になる。これによつて、CCD,FLMは
各受光部の受光量に応じた電荷の蓄積を開始す
る。また、インバータIN50を介してアナログ
スイツチAS1が導通して、CCDのモニター出力
が端子ANBからコンパレータAC1の(−)端子
に入力する。電荷の蓄積に応じて端子ANBから
のCCDモニター出力は電位Vr1から低下してい
き、定電圧源Vr2の電位に達すると、コンパレ
ータAC1の出力は“High”に反転する。これに
よりCCD,FLMの蓄積が完了したことが検知さ
れる。この反転でワンシヨツト回路OS10から
“High”のパルスが出力され、オア回路OR20
を介してフリツプフロツプFF20がセツトされ
る。このQ出力の“High”信号は、端子φ1の
立ち上がりで、DフリツプフロツプDF20に取
込まれ、そのQ出力の“High”により、カウン
タCO20のリセツト状態が解除され、アンド回
路AN60,AN64,AN66,AN68がエネ
ーブル状態になる。 端子φ1が“High”に立ち上がつた後、端子
T0が“High”になるとフリツプフロツプFF2
8は端子T0の“High”によりセツトされ、端
子T1の“High”によりリセツトされる。この
Q出力はアンド回路AN68を介して端子φTか
ら“High”のパルスとしてCCD,FLMに送ら
れ、この信号で蓄積電荷が転送ゲートに移され
る。さらに、この(φT)の信号はマイコンMC
1の割込端子itに送られ、マイコンMC1は前述
のCCD,FLMの出力データの取込動作を行なう。 この端子φTが“Low”に立ち下がるとワンシ
ヨツト回路OS16を介してフリツプフロツプFF
32がセツトされ、その出力の“Low”によ
りアンド回路AN68のゲートが閉じられて以後
フリツプフロツプFF28のQ出力からの
“High”信号は出力されない。さらにワンシヨツ
ト回路OS16、オア回路OR32を介してフリツ
プフロツプFF30がセツトされ、再び端子φRを
“High”にする。 転送信号φ1,φ2,φ3によりCCD,FLM
から蓄積電荷が順次端子AOTから出力されてく
るが、この電荷は、φ2が“High”の間に出力
されている。そこで、DフリツプフロツプDF2
0のQ出力が“High”になると、φ2が
“High”になつている期間内の端子T4の
“High”によりサンプルホールド用の信号φSが
アンド回路AN66から、また端子T5の
“High”によりA−D変換開始用の信号φAがア
ンド回路AN64から出力される。 また、CCD,FLMの端子AOTから最初に送ら
れてきる蓄積電荷の信号は、オフセツト調整用と
して、受光部のモレだけに対応した電荷だけが蓄
積されるようになつていて、ほとんどVr1の出
力電位と等しくなつている。このときDフリツプ
フロツプDF24の出力が“High”になつてい
るので、サンプルホールド用信号φSはアンド回
路AN70を介してサンプルホールド回路SH1
に与えられ、オフセツト調整用の電位がCCD,
FLMから端子AOTを介してサンプルホールド回
路SH1に記憶される。最初のサンプルホールド
信号φSの立ち下がりによりDフリツプフロツプ
DF24のQ出力は“High”になつて、以後のサ
ンプルホールド信号φSはアンド回路AN72を介
してサンプルホールド回路SH2に与えられ、以
後の受光量に対応した電位はサンプルホールド回
路SH2に順次記憶されていく。 DフリツプフロツプDF20のQ出力が
“High”になると、φ3の信号はアンド回路AN
60を介してアンド回路AN62の一方の入力端
子に与えられる。このφ3の最初の立ち下がりで
DフリツプフロツプDF22のQ出力が“High”
になるので、二回目以後のφ3のパルス信号はア
ンド回路AN62を介してマイコンMC1の入力
端子i10に与えられ、マイコンMC1に入力ポ
ートIP0へのデータの取り込みを指令する信号
となる。ここで、DフリツプフロツプDF20の
Q出力が“High”になつて最初のアンド回路
AN60からのφ3のパルスをアンド回路AN6
2から出力させないようにしているのは、前述の
ように最初のCCD,FLMからのデータはオフセ
ツト調整用のデータだからである。また、φ3の
信号はカウンタCO20のクロツク入力端子にも
与えられていて、カウンタCO20はDフリツプ
フロツプDF20のQ出力の“High”によりリセ
ツト状態が解除されφ3からのパルスの立ち下が
りをカウントする。このカウンタCO20は
CCO,FLMの受光部の数だけφ3からのパルス
をカウントするとキヤリー端子CYを“High”に
する。 二回目以後は、順次、サンプルホールド回路
SH2にCCD,FLMの出力データが信号φSに基
づいてサンプルホールドされ、抵抗R1,R2、
オペアンプOA1からなる減算回路によりサンプ
ルホールド回路SH1の出力とSH2の出力との差
が算出され、A−D変換器ADのアナログ入力端
子に与えられる。A−D変換器ADはφAの信号
で動作を開始し、カウンタCO22からのクロツ
クパルスDP1に基づいてこの入力データをA−
D変換する。ここで、定電圧源Vr1の出力をVr
1、モレによる電圧降下をVd、受光量による電
圧降下をVlとすると、サンプルホールド回路SH
1の出力はVr1−Vd、サンプルホールド回路SH
2の出力はVr1−Vl−Vdとなつている。従つて、
減算回路の出力はVlという受光量のみの信号成
分になつている。尚、A−D変換器ADはたとえ
ば逐次比較型のように高速でA−D変換する型式
のものが望ましい。 CCD,FLMからのすべてのデータのA−D変
換が終了してカウンタCO20のキヤリー端子CY
が“High”になる。これによつてワンシヨツト
回路OS14、オア回路OR22を介してフリツプ
フロツプFF20,FF32,Dフリツプフロツプ
DF20,DF22,DF24がリセツトされ、D
フリツプフロツプDF20のQ出力が“Low”に
なることでカウンタCO20がリセツト状態とな
つて端子O10から“High”のパルスが入力さ
れる前の状態に復帰する。 また、マイコンMC1のタイマーにより積分時
間が一定値以上に達したことが判別されて端子O
11に“High”のパルスが入力したときには、
このパルスの立ち下がりでワンシヨツト回路OS
12、オア回路OR20を介してフリツプフロツ
プFF20がセツトされる。従つて、以後はコン
パレータAC1の出力が“High”に反転した場合
と同様の動作が行なわれて、CCD,FLMの出力
データがA−D変換されマイコンMC1の入力ポ
ートIP0へ順次出力される。 第15図は第14図の回路図の一部を変更した
変形例であり、CCDからの出力データが小さい
場合に、マイコンMC1にデータを取込んだ後、
そのデータを2倍にする操作をマイコンMC1内
のソフト(第8図のNo.78〜82のステツプ)で行な
つていたのを、A−D変換を行なう前にハードで
行なうようにしたものである。 端子φRが“High”の間は定電流源CIS、抵抗
R10〜R13できまる電位Vr1がCCD,FLM
に与えられ、“Low”の間はCCD,FLMのモニ
ター出力がコンパレータAC10〜AC12の
(−)入力端子に与えられる。そして、積分が進
みモニター出力がVr2の電位に達すると、コン
パレータAC12の出力が“High”になつてワン
シヨツト回路OS10から“High”のパルスが出
力され、このパルスによりオア回路OR20を介
してフリツプフロツプFF20がリセツトされて
以後前述と同様の動作を行なう。 さらに、このパルスはDフリツプフロツプDF
32〜DF38のクロツク端子に与えられる。こ
のとき、コンパレータAC12の出力が“High”
なのでDフリツプフロツプDF38のQ出力が
“High”になり、アナログスイツチAS48,AS
38が導通する。ここで抵抗R30〜R40の値
はR30=R40=R38=R48=R36/1.5=R46/1.5
=R34/2=R44/2=R32/2.5=R42/2.5=と
なつており、アナログスイツチAS38,AS48
の導通によりR30=R40=R38=R48であるので
オペアンプOA10からはVlの信号がそのまま出
力される。 一方、CCD出力が低コントラストであつて最
長積分時間内にコンパレータAC12の出力が反
転しないときには、マイコンMC1の出力端子O
11からの信号によりワンシヨツト回路OS12
からオア回路OR20を介して“High”のパルス
が出力され、そのときのモニター出力がVr2〜
Vr3、Vr3〜Vr4、Vr4〜Vr1のいぜれの間にある
かに応じてそれぞれイクスクルーシブオア回路
EO4,EO2、インバータIN52を介してDフ
リツプフロツプDF36,DF34,DF32のQ
出力のうちの1つが“High”になり、それぞれ
アナログスイツチAS36,AS46,AS34,
AS44,AS32,AS42が導通する。従つて、
強制的に積分が停止され、そのときのモニター出
力に応じて1.5Vl、2Vl、2.5Vlの信号がオペアン
プOA10から出力される。 第16図は第8図〜第10図に示したマイコン
MC1の動作の変形例を示し、一旦、合焦が検出
された後の測定結果で非合焦が連続して検出され
た場合のフローチヤートの要部を示し、No.130の
ステツプとNo.138のステツプとの間にフラグIFF
2に関するステツプが挿入されている。即ち、合
焦ゾーンにまでレンズの焦点調整が行なわれ、終
端フラグENFが“0”であれば(No.130)、No.351
のステツプでフラグIFF2が“1”かどうかが判
別される。ここで、フラグIFF2が“0”であれ
ばこのフラグIFF2を“1”にしてNo.270のステ
ツプに移行し、再度確認のための測定を行なう。
一方、フラグIFF2が“1”ならば、確認のため
の測定結果が2回続けて非合焦(|△L|≧ZN
1)ということになり、この場合には、フラグ
IFF,IFF2を“0”にし、フラグFPFを“1”
にして、No.135のステツプに移行して、再び焦点
調整用の動作を行なう。尚、No.33のステツプとNo.
2のステツプとの間およびNo.240のステツプとNo.
241のステツプとの間にそれぞれフラグIFF2を
リセツトして初期状態に戻すためのステツプ(No.
34、No.241)が設けられている。 第17図は第8図のNo.100のステツプ、即ち低
コントラストかどうかを判別するステツプの具体
的なフローである。まず、レジスタCの内容を
“0”にして(No.370)、レジスタiを“1”に
(No.371)する。次に、i番目とi+1番目の受光
素子の出力ai、ai+1の差の絶対値|ai−ai+1
|にレジスタCの内容を加えた値がレジスタCに
設定され(No.372)、このレジスタiに1が加算さ
れ(No.373)、このiの内容とn(nは受光素子の
全個数である)とが比較される(No.374)。ここ
で、i<n−1ならばNo.372のステツプへ戻つて、
順次、差の絶対値が積算され、i=n−1になる
とNo.375のステツプに移行する。即ち、No.375のス
テツプに移行した時点ではレジスタCの内容は、
|a1−a2|+|a2−a3|+|a3+a4|+……+
|an−2−an−1|+|an−1−an|となつて
いて、周知のように、被写体のコントラストを示
す値になつている。 No.375のステツプでは、この値が一定値CDより
も大きいかどうかを判別して、(C)>CDならコン
トラストが十分あるのでNo.101のステツプへ移行
し(C)≦CDなら低コントラストであるのでNo.105の
ステツプへ移行する。 なお、焦点調整状態の検出を二つの系列の受光
素子出力で行なう場合、コントラストの判別には
一方の系列の出力を用いるのみで充分である。ま
た、被写体のコントラストに対応付けできるデー
タがデフオーカス量とデフオーカス方向の演算を
行なう過程で求まる場合には、このデータを記憶
しておき、一定値以下になつているかどうかの判
別を行なうことでコントラストの判別を行なうよ
うにしてもよい。 交換レンズから出力される変換係数のデータ
KLは、マイコンMC2を介してマイコンMC1の
No.93のステツプで読込まれ、例えばNo.136のステ
ツプでモータ駆動用データNの演算に用いられ
る。このデータKLは、前述の表6に示すように、
指数部と有効数字部とに二分されてコードづけさ
れており、上記演算は、勿論、指数部の値に応じ
て有効数字部の値を対数伸張させた値に基でいて
行なわれる。尚、このデータ変換を例えばハード
的に行なう場合の読取回路の構成を第18図に示
す。図において、シフト回路131にはデータ
KLの例えば下位4ビツト分の有効数字値が入力
される。一方、例えば上位4ビツト分の指数値は
シフト制御回路130に入力されており、このシ
フト制御回路130はこの指数値に応じてシフト
回路131に設定されたデータをシフトさせる。
このような構成により、シフト回路131に設定
された有効数字値は指数値に応じてシフトされ、
結果として対数伸張された値が変換係数の値とし
てシフト回路131から出力される。 効 果 上述のように、本発明は、撮影レンズの焦点調
整部材を駆動する駆動手段をカメラ本体側に設
け、撮影レンズを通過した合焦対象体からの光を
受けて合焦対象体の結像位置の予定焦点位置に対
するズレ量を検出し、このズレ量のデータに基づ
いて結像位置を予定焦点位置まで移動させるのに
要する駆動手段の駆動量データをカメラ本体側で
算出し、該算出データに応じた量だけ駆動手段を
駆動して自動的に焦点調整を行なうようにしたレ
ンズ交換式カメラの自動焦点調整装置において、
上記結像位置の単位移動に要する撮影レンズへの
伝達駆動量を示す撮影レンズに固有な第1のデー
タを出力するデータ出力手段を交換レンズ側に設
け、撮影レンズへの単位駆動量の伝達に要する上
記駆動手段の駆動量を示すカメラ本体に固有な第
2のデータを出力するデータ出力手段をカメラ本
体側に設け、これら第1データ、第2データおよ
び上記ズレ量データに基づいて駆動手段の駆動量
データを算出するようにしたので、交換レンズは
上記駆動量データの算出に必要な撮影レンズ固有
のデータをカメラ本体に伝達するだけでよく、ま
たカメラ本体の演算手段は1つでよく、交換レン
ズ、カメラ本体の負担がともに少なくてすみ、従
来のようにいずれか一方の負担が大きくなるとい
う不都合が解消され、レンズ交換式カメラで自動
焦点調整を行なうカメラシステムの展開上、非常
に合理的である。
[Table] As is clear from Table 7, the Q output φ1 of the flip-flop FF26 is “High” while the output of the counter CO24 is “11101” to “00101”, and the Q output φ2 of the flip-flop FF24 is “High” from “00100” to “00101”.
“High” during “10111”, flip-flop FF2
The Q output φ3 of No. 2 becomes “High” between “10110” and “11110”. This output signal φ1, φ2, φ3
is while power is being supplied from the power line VF.
The signal is applied to the CCD and FLM, and analog signals are constantly transferred within the transfer gate. Note that this operation also discharges the accumulated charges remaining in the transfer gate. The flip-flops FF20 to FF28, FF32, the D flip-flops DF20, DF22, DF24, and the counters CO20, CO22, CO24 are reset by the reset signal PO2 from the power-on reset circuit POR2 based on the start of power supply.
Furthermore, flip-flop FF30 is set and the Q output becomes "High". This output signal φR makes the analog switch AS2 conductive, and the constant voltage source
The Vr1 output potential is connected to the CCD via the signal line ANB.
This potential is applied to the FLM, and the potential of the charge storage section of the CCD and FLM is set to this potential. When a "High" pulse for starting an integral operation is output from the output terminal O10 of the microcomputer MC1, the flip-flop FF30 is reset via the one-shot circuit OS18, and the terminal φR becomes "Low". As a result, the CCD and FLM start accumulating charges according to the amount of light received by each light receiving section. Further, the analog switch AS1 is made conductive via the inverter IN50, and the monitor output of the CCD is input from the terminal ANB to the (-) terminal of the comparator AC1. The CCD monitor output from the terminal ANB decreases from the potential Vr1 in accordance with the accumulation of charge, and when it reaches the potential of the constant voltage source Vr2, the output of the comparator AC1 is inverted to "High". This detects that CCD and FLM storage has been completed. With this reversal, a “High” pulse is output from the one-shot circuit OS10, and the OR circuit OR20 outputs a “High” pulse.
Flip-flop FF20 is set via. This "High" signal of the Q output is taken into the D flip-flop DF20 at the rising edge of the terminal φ1, and the "High" of the Q output releases the reset state of the counter CO20, and the AND circuits AN60, AN64, AN66, AN68 becomes enabled. After the terminal φ1 rises to “High”, when the terminal T0 becomes “High”, the flip-flop FF2
8 is set by "High" at the terminal T0, and reset by "High" at the terminal T1. This Q output is sent to the CCD and FLM as a "High" pulse from the terminal φT via the AND circuit AN68, and the accumulated charge is transferred to the transfer gate by this signal. Furthermore, this (φT) signal is
The microcomputer MC1 performs the operation of fetching the output data of the CCD and FLM described above. When this terminal φT falls to “Low”, the flip-flop FF is activated via the one-shot circuit OS16.
32 is set, and its output "Low" closes the gate of the AND circuit AN68, and thereafter the "High" signal from the Q output of the flip-flop FF28 is not output. Furthermore, the flip-flop FF30 is set via the one-shot circuit OS16 and the OR circuit OR32, and the terminal φR is set to "High" again. CCD, FLM by transfer signals φ1, φ2, φ3
Accumulated charges are sequentially output from the terminal AOT, and this charge is output while φ2 is "High". Therefore, D flip-flop DF2
When the Q output of 0 becomes "High", the signal φS for sample and hold is sent from the AND circuit AN66 by the "High" of the terminal T4 during the period when φ2 is "High", and also by the "High" of the terminal T5. A signal φA for starting AD conversion is output from the AND circuit AN64. In addition, the accumulated charge signal first sent from the terminal AOT of the CCD and FLM is used for offset adjustment, so that only the charge corresponding to leakage in the light receiving section is accumulated, and the output is almost Vr1. It is equal to the electric potential. At this time, since the output of the D flip-flop DF24 is "High", the sample and hold signal φS is passed through the AND circuit AN70 to the sample and hold circuit SH1.
and the potential for offset adjustment is applied to CCD,
The signal is stored from FLM into the sample hold circuit SH1 via the terminal AOT. When the first sample and hold signal φS falls, the D flip-flop is activated.
The Q output of DF24 becomes "High", and the subsequent sample-and-hold signal φS is given to the sample-and-hold circuit SH2 via the AND circuit AN72, and the potential corresponding to the amount of light received thereafter is sequentially stored in the sample-and-hold circuit SH2. To go. When the Q output of the D flip-flop DF20 becomes “High”, the signal of φ3 is sent to the AND circuit AN
60 to one input terminal of the AND circuit AN62. At the first fall of this φ3, the Q output of the D flip-flop DF22 becomes “High”
Therefore, the second and subsequent pulse signals of φ3 are applied to the input terminal i10 of the microcomputer MC1 via the AND circuit AN62, and become a signal instructing the microcomputer MC1 to take in data to the input port IP0. Here, the Q output of the D flip-flop DF20 becomes "High" and the first AND circuit is activated.
AND circuit AN6 for the φ3 pulse from AN60
The reason why the data from the first CCD and FLM is not outputted from 2 is because, as mentioned above, the data from the first CCD and FLM is data for offset adjustment. The signal φ3 is also applied to the clock input terminal of the counter CO20, and the counter CO20 is released from the reset state by the "High" level of the Q output of the D flip-flop DF20, and counts the falling edge of the pulse from φ3. This counter CO20 is
When the number of pulses from φ3 is counted as many as the number of light receiving parts of CCO and FLM, the carry terminal CY is set to “High”. After the second time, the sample and hold circuit is
The output data of the CCD and FLM is sampled and held in SH2 based on the signal φS, and the resistors R1, R2,
A subtraction circuit including an operational amplifier OA1 calculates the difference between the output of the sample and hold circuit SH1 and the output of SH2, and provides the calculated difference to the analog input terminal of the AD converter AD. The A-D converter AD starts operating with the signal φA, and converts this input data to A- based on the clock pulse DP1 from the counter CO22.
D-convert. Here, the output of constant voltage source Vr1 is set to Vr
1. If the voltage drop due to leakage is Vd, and the voltage drop due to the amount of light received is Vl, the sample hold circuit SH
1 output is Vr1-Vd, sample hold circuit SH
The output of 2 is Vr1-Vl-Vd. Therefore,
The output of the subtraction circuit is a signal component of only the amount of received light called Vl. Note that the AD converter AD is preferably of a type that performs A-to-D conversion at high speed, such as a successive approximation type. After the A-D conversion of all data from CCD and FLM is completed, carry terminal CY of counter CO20 is
becomes “High”. As a result, the flip-flops FF20, FF32, and D flip-flops are connected via the one-shot circuit OS14 and the OR circuit OR22.
DF20, DF22, DF24 are reset and D
When the Q output of the flip-flop DF20 becomes "Low", the counter CO20 goes into a reset state and returns to the state before the "High" pulse was input from the terminal O10. Also, the timer of microcomputer MC1 determines that the integration time has reached a certain value or more, and the terminal O
When a “High” pulse is input to 11,
One-shot circuit OS is activated at the falling edge of this pulse.
12. Flip-flop FF20 is set via OR circuit OR20. Therefore, from now on, the same operation as when the output of the comparator AC1 is inverted to "High" is performed, and the output data of the CCD and FLM is converted from analog to digital and sequentially output to the input port IP0 of the microcomputer MC1. Figure 15 is a modified example in which a part of the circuit diagram in Figure 14 is changed.When the output data from the CCD is small, after importing the data to the microcomputer MC1,
The operation of doubling the data was performed using the software in the microcomputer MC1 (steps No. 78 to 82 in Figure 8), but now it is performed using the hardware before performing A-D conversion. It is. While the terminal φR is “High”, the potential Vr1 determined by the constant current source CIS and resistors R10 to R13 is applied to CCD and FLM.
During the "Low" period, the monitor outputs of the CCD and FLM are given to the (-) input terminals of the comparators AC10 to AC12. Then, when the integration progresses and the monitor output reaches the potential of Vr2, the output of the comparator AC12 becomes "High" and a "High" pulse is output from the one-shot circuit OS10, and this pulse passes through the OR circuit OR20 to the flip-flop FF2. is reset and thereafter performs the same operation as described above. Furthermore, this pulse is applied to the D flip-flop DF
It is applied to the clock terminals of DF32 to DF38. At this time, the output of comparator AC12 is “High”
Therefore, the Q output of the D flip-flop DF38 becomes “High”, and the analog switches AS48 and AS
38 becomes conductive. Here, the values of resistors R30 to R40 are R30=R40=R38=R48=R36/1.5=R46/1.5
= R34/2 = R44/2 = R32/2.5 = R42/2.5 = analog switch AS38, AS48
Due to the conduction of R30=R40=R38=R48, the signal of Vl is output as is from the operational amplifier OA10. On the other hand, when the CCD output has a low contrast and the output of the comparator AC12 is not inverted within the longest integration time, the output terminal of the microcomputer MC1
One-shot circuit OS12 is activated by the signal from 11.
A “High” pulse is output from the OR circuit OR20, and the monitor output at that time is Vr2~
Exclusive OR circuit depending on whether it is between Vr3, Vr3 to Vr4, or Vr4 to Vr1.
EO4, EO2, Q of D flip-flop DF36, DF34, DF32 via inverter IN52
One of the outputs becomes “High” and the analog switches AS36, AS46, AS34,
AS44, AS32, and AS42 are electrically connected. Therefore,
Integration is forcibly stopped, and signals of 1.5Vl, 2Vl, and 2.5Vl are output from the operational amplifier OA10 in accordance with the monitor output at that time. Figure 16 shows the microcontroller shown in Figures 8 to 10.
A modified example of the operation of MC1 is shown, and the main part of the flowchart is shown when out-of-focus is continuously detected in the measurement results after in-focus is detected, and steps No. 130 and No. Flag IFF between 138 steps
2 has been inserted. In other words, if the lens focus is adjusted to the in-focus zone and the end flag ENF is "0" (No. 130), No. 351
In step , it is determined whether the flag IFF2 is "1". Here, if the flag IFF2 is "0", the flag IFF2 is set to "1" and the process moves to step No. 270, where measurement is performed again for confirmation.
On the other hand, if the flag IFF2 is "1", the measurement result for confirmation is out of focus twice (|△L|≧ZN
1) In this case, the flag
Set IFF, IFF2 to “0” and flag FPF to “1”
Then, proceed to step No. 135 and perform the focus adjustment operation again. In addition, No. 33 step and No.
Between step No. 2 and step No. 240 and step No.
Steps (No. 241 and 241) are used to reset flag IFF2 and return to the initial state.
34, No. 241). FIG. 17 shows a specific flow of step No. 100 in FIG. 8, that is, the step for determining whether or not the contrast is low. First, the contents of register C are set to "0" (No. 370), and register i is set to "1" (No. 371). Next, the absolute value of the difference between the outputs ai and ai+1 of the i-th and i+1th light receiving elements |ai−ai+1
The value obtained by adding the contents of register C to ) are compared (No. 374). Here, if i<n-1, return to step No. 372,
The absolute values of the differences are successively integrated, and when i=n-1, the process moves to step No. 375. That is, at the time of moving to step No. 375, the contents of register C are as follows.
|a1−a2|+|a2−a3|+|a3+a4|+……+
|an-2-an-1|+|an-1-an|, which is a value indicating the contrast of the subject, as is well known. In step No. 375, it is determined whether this value is larger than a constant value CD, and if (C)>CD, the contrast is sufficient, so the process moves to step No. 101, and if (C)≦CD, the contrast is low. Therefore, move to step No. 105. Note that when the focus adjustment state is detected using two series of light receiving element outputs, it is sufficient to use only one series of outputs for contrast determination. In addition, if data that can be associated with the contrast of the subject is found in the process of calculating the amount of defocus and the direction of defocus, this data can be stored and the contrast can be determined by determining whether or not it is below a certain value. The determination may be made as follows. Conversion coefficient data output from interchangeable lenses
KL is connected to the microcomputer MC1 via the microcomputer MC2.
It is read in step No. 93 and used, for example, in step No. 136 to calculate motor drive data N. This data KL is as shown in Table 6 above.
The code is divided into an exponent part and a significant figure part, and the above calculation is, of course, performed based on the value obtained by logarithmically expanding the value of the significant figure part in accordance with the value of the exponent part. Incidentally, FIG. 18 shows the configuration of a reading circuit when this data conversion is performed, for example, by hardware. In the figure, the shift circuit 131 has data
For example, the significant digit value of the lower 4 bits of KL is input. On the other hand, for example, the exponent value for the upper 4 bits is input to the shift control circuit 130, and the shift control circuit 130 shifts the data set in the shift circuit 131 according to this exponent value.
With such a configuration, the significant figure value set in the shift circuit 131 is shifted according to the exponent value,
As a result, the logarithmically expanded value is output from the shift circuit 131 as the value of the conversion coefficient. Effects As described above, the present invention provides a driving means for driving the focus adjustment member of the photographic lens on the camera body side, receives light from the object to be focused that has passed through the photographic lens, and adjusts the focus of the object to be focused. The amount of deviation of the image position from the expected focal point position is detected, and based on the data on this amount of deviation, the driving amount data of the driving means required to move the imaging position to the expected focal position is calculated on the camera body side, and the calculation is performed. In an automatic focus adjustment device for an interchangeable lens camera that automatically adjusts the focus by driving the driving means by an amount according to the data,
A data output means is provided on the interchangeable lens side for outputting first data specific to the photographing lens indicating the amount of drive transmitted to the photographing lens required for unit movement of the image forming position, and data output means is provided on the interchangeable lens side to output first data unique to the photographing lens, which indicates the amount of drive transmitted to the photographing lens required for unit movement of the imaging position. A data output means for outputting second data specific to the camera body indicating the necessary amount of drive of the drive means is provided on the camera body side, and based on these first data, second data and the shift amount data, the drive means is adjusted. Since the driving amount data is calculated, the interchangeable lens only needs to transmit the photographic lens-specific data necessary for calculating the driving amount data to the camera body, and the camera body only needs one calculation means. This reduces the burden on both the interchangeable lens and the camera body, eliminating the inconvenience of conventional methods where the burden is heavy on either one, making it very rational for developing a camera system that performs automatic focus adjustment with an interchangeable lens camera. It is true.

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

第1図は本発明によるカメラシステムの概略を
示すブロツク図、第2図はその回路構成を示す回
路図、第3図は第2図におけるマイコンMC2の
動作を示すフローチヤート、第4図はマイコン
MC2の直列のデータ入力部SDIの具体的な回路
構成を示す回路図、第5図はカメラ本体に装着さ
れるコンバータCVおよび交換レンズLEの回路構
成を示す回路図、第6図はマイコンMC1により
制御される発光ダイオード駆動回路FADの具体
的な回路構成を示す回路図、第7図は焦点距離に
応じて変換係数が変化する光学系を有する変倍レ
ンズの焦点距離と変換係数との関係を示すグラ
フ、第8図ないし第10図は第2図のマイコン
MC1の動作を示すフローチヤート、第11図は
第2図のカメラシステムの第1の変形例の要部回
路構成を示す回路図、第12図および第13図は
それぞれこの変形例に対応するマイコンMC2お
よびMC1のフローの要部を示すフローチヤート
図、第14図はマイコンMC1により制御される
制御回路COTの具体的な回路構成を示す回路図、
第15図はその変形例の要部回路構成を示す回路
図、第16図はマイコンMC1のフローの他の変
形例の要部を示すフローチヤート、第17図は第
8図のマイコンMC1のNo.100のステツプでの動
作を具体的に示すフローチヤート、第18図は第
1図における読取回路LDCの要部回路構成を示
す回路図である。 BD:カメラ本体、LZ,LE:撮影レンズ、
FLM,112:検出手段、111,113:算
出手段、MO:駆動手段、FL:焦点調整部材、
LEC:第1のデータ出力手段、110:第2の
データ出力手段。
Fig. 1 is a block diagram showing the outline of the camera system according to the present invention, Fig. 2 is a circuit diagram showing its circuit configuration, Fig. 3 is a flowchart showing the operation of the microcomputer MC2 in Fig. 2, and Fig. 4 is a microcomputer
A circuit diagram showing the specific circuit configuration of the serial data input section SDI of MC2, Figure 5 is a circuit diagram showing the circuit configuration of the converter CV and interchangeable lens LE attached to the camera body, and Figure 6 is a circuit diagram showing the circuit configuration of the converter CV and interchangeable lens LE installed in the camera body. FIG. 7 is a circuit diagram showing a specific circuit configuration of the controlled light emitting diode drive circuit FAD. The graphs shown in Figures 8 to 10 are for the microcontroller in Figure 2.
A flowchart showing the operation of MC1, FIG. 11 is a circuit diagram showing the main circuit configuration of the first modified example of the camera system shown in FIG. 2, and FIGS. 12 and 13 are microcontrollers corresponding to this modified example. A flowchart diagram showing the main parts of the flow of MC2 and MC1, FIG. 14 is a circuit diagram showing a specific circuit configuration of the control circuit COT controlled by the microcomputer MC1,
FIG. 15 is a circuit diagram showing the main part circuit configuration of the modified example, FIG. 16 is a flowchart showing the main part of another modified example of the flow of the microcomputer MC1, and FIG. 17 is the No. 18 is a flowchart specifically showing the operation at step 100. FIG. 18 is a circuit diagram showing the main circuit configuration of the reading circuit LDC in FIG. BD: Camera body, LZ, LE: Photographic lens,
FLM, 112: detection means, 111, 113: calculation means, MO: driving means, FL: focus adjustment member,
LEC: first data output means, 110: second data output means.

Claims (1)

【特許請求の範囲】[Claims] 1 撮影レンズを通過した合焦対象体からの光を
受けて合焦対象体の結像位置の予定焦点位置に対
するズレ量を検出する検出手段と、該検出手段か
らのズレ量データに基づいて上記結像位置を予定
焦点位置まで移動させるのに要する駆動量データ
を算出する算出手段と、該算出手段からの駆動量
データに応じた量だけ駆動される駆動手段とをカ
メラ本体側に備え、該駆動手段の駆動力を撮影レ
ンズの焦点調整部材に伝達して上記結像位置を予
定焦点位置まで移動させる自動焦点調整装置にお
いて、上記結像位置の単位量移動に要する撮影レ
ンズへの伝達駆動量を示す撮影レンズに固有な第
1のデータを出力する第1のデータ出力手段を交
換レンズ側に設け、撮影レンズへの単位駆動量の
伝達に要する上記駆動手段の駆動量を示すカメラ
本体に固有な第2のデータを出力する第2のデー
タ出力手段をカメラ本体側に設け、上記算出手段
は前記第1および第2のデータ出力手段からの第
1および第2のデータならびに上記検出手段から
のズレ量データに基づいて上記駆動手段の駆動量
データを算出する演算手段を含むことを特徴とす
るレンズ交換式カメラの自動焦点調整装置。
1. A detection means that receives light from the object to be focused that has passed through the photographic lens and detects the amount of deviation of the imaging position of the object to be focused with respect to the expected focal position, and the above-mentioned method based on the amount of deviation data from the detection means. The camera body side includes a calculation means for calculating the drive amount data required to move the imaging position to the expected focus position, and a drive means that is driven by an amount corresponding to the drive amount data from the calculation means. In an automatic focus adjustment device that transmits the driving force of a driving means to a focus adjustment member of a photographic lens to move the image formation position to a predetermined focal position, the amount of drive transmitted to the photographic lens required to move the image formation position by a unit amount. A first data output means is provided on the interchangeable lens side for outputting first data specific to the photographing lens that indicates the amount of drive of the drive means required to transmit a unit drive amount to the camera body. A second data output means for outputting second data is provided on the camera body side, and the calculation means calculates the first and second data from the first and second data output means and the second data from the detection means. An automatic focus adjustment device for an interchangeable lens camera, comprising a calculation means for calculating drive amount data of the drive means based on shift amount data.
JP13606083A 1983-02-01 1983-07-25 Automatic focus adjusting device of lens interchangeable type camera Granted JPS59142528A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP13606083A JPS59142528A (en) 1983-07-25 1983-07-25 Automatic focus adjusting device of lens interchangeable type camera
US06/575,707 US4509842A (en) 1983-02-01 1984-01-31 Camera system capable of focus detection through an interchangeable objective lens
DE19843403469 DE3403469C2 (en) 1983-02-01 1984-02-01 Automatic focusing device for a camera
DE3448493A DE3448493C2 (en) 1983-02-01 1984-02-01 Auto-focus camera with interchangeable objectives

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13606083A JPS59142528A (en) 1983-07-25 1983-07-25 Automatic focus adjusting device of lens interchangeable type camera

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP1586083A Division JPS59140408A (en) 1983-02-01 1983-02-01 Automatic focusing variable power lens

Publications (2)

Publication Number Publication Date
JPS59142528A JPS59142528A (en) 1984-08-15
JPH0559413B2 true JPH0559413B2 (en) 1993-08-31

Family

ID=15166257

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13606083A Granted JPS59142528A (en) 1983-02-01 1983-07-25 Automatic focus adjusting device of lens interchangeable type camera

Country Status (1)

Country Link
JP (1) JPS59142528A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS575033A (en) * 1980-06-11 1982-01-11 Asahi Optical Co Ltd Automatic focusing camera of lens interchangeable type
JPS5793326A (en) * 1980-12-01 1982-06-10 Minolta Camera Co Ltd Focusing device of auto focus camera
JPS57165821A (en) * 1981-04-07 1982-10-13 Nippon Kogaku Kk <Nikon> Ttl automatic focusing device of camera

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS575033A (en) * 1980-06-11 1982-01-11 Asahi Optical Co Ltd Automatic focusing camera of lens interchangeable type
JPS5793326A (en) * 1980-12-01 1982-06-10 Minolta Camera Co Ltd Focusing device of auto focus camera
JPS57165821A (en) * 1981-04-07 1982-10-13 Nippon Kogaku Kk <Nikon> Ttl automatic focusing device of camera

Also Published As

Publication number Publication date
JPS59142528A (en) 1984-08-15

Similar Documents

Publication Publication Date Title
US4774540A (en) Camera system capable of automatic focus control
US4509842A (en) Camera system capable of focus detection through an interchangeable objective lens
US4550993A (en) Device for providing a camera system with an information for a focus adjustment
US4956659A (en) Automatic focus adjusting apparatus
JPH0559411B2 (en)
US4477167A (en) Protective device for automatic focusing camera
US4537487A (en) Automatic focus control system with backlash correcting arrangement
US4671640A (en) Automatic focus control camera
JP2933354B2 (en) Camera system
JPH0558163B2 (en)
JP2933341B2 (en) Camera lens storage return device
JP2971913B2 (en) Camera system
JPH0559412B2 (en)
JPH0559413B2 (en)
US5247326A (en) Camera system capable of automatic focus control
JPH0462364B2 (en)
JPS59204813A (en) Automatic focusing device
US5249012A (en) Auto-focusing system for cameras with in interchangeable objective lens
JPH0760210B2 (en) Camera detection device
JPH0561622B2 (en)
JPS6012526A (en) Automatic focus adjusting device
JPS59182411A (en) Automatic focusing device
JPH0693058B2 (en) Automatic focus adjustment device
JPH0627893B2 (en) Automatic focus adjustment device
JP2501189B2 (en) Automatic focus adjustment device