[go: up one dir, main page]

JPH0462364B2 - - Google Patents

Info

Publication number
JPH0462364B2
JPH0462364B2 JP58136059A JP13605983A JPH0462364B2 JP H0462364 B2 JPH0462364 B2 JP H0462364B2 JP 58136059 A JP58136059 A JP 58136059A JP 13605983 A JP13605983 A JP 13605983A JP H0462364 B2 JPH0462364 B2 JP H0462364B2
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
JP58136059A
Other languages
Japanese (ja)
Other versions
JPS606929A (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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=15166231&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JPH0462364(B2) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP13605983A priority Critical patent/JPS606929A/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 JPS606929A publication Critical patent/JPS606929A/en
Publication of JPH0462364B2 publication Critical patent/JPH0462364B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Automatic Focus Adjustment (AREA)
  • Focusing (AREA)

Description

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

技術分野 本発明は、撮影レンズを通過した合焦対象体か
らの光を受けて合焦対象体の結像位置の予定焦点
位置に対するズレ量をカメラ本体側で検出し、こ
のズレ量から焦点調節用レンズの移動量に対する
駆動量を算出し、この駆動量に応じた量だけ焦点
調節用レンズを移動させて焦点調節を行う自動焦
点調節用の交換レンズに関する。 従来技術 上述のような自動焦点調整においては、検出さ
れたズレ量から駆動手段の駆動量を算出(換言す
れば、ズレ量のデータを駆動量のデータに変換)
する場合、ズレ量と駆動量とが略比例的な関係に
あることからズレ量データに適当な変換係数を掛
けることにより駆動量データが得られる。この変
換係数の値は、交換レンズの焦点距離やレンズ構
成等の光学的条件および交換レンズ内の焦点調整
機構の構成等の機械的条件に応じて変化する。即
ち、交換レンズごとに変換係数の値が異なる。従
つて、この変換係数のデータを交換レンズに備
え、カメラ本体でこの変換係数のデータを交換レ
ンズから取込んで、このデータとカメラ本体で得
られたズレ量のデータとから駆動量のデータを算
出することが考えられる。 しかしながら、この変換係数の値は各交換レン
ズごとに変化するので、この変換係数のデータが
種々の交換レンズに対応できるようにすると、そ
のビツト数が多くなつてしまう。このような変換
係数のデータを並列に転送する場合はカメラ本体
と交換レンズとの間の信号授受のための端子数が
多くなつて、これら端子へのゴミ付着や端子間の
接触不良等によつてデータの信頼性が低下した
り、直列に転送する場合は転送時間が長くかかつ
たりするという不都合が考えられる。 目 的 本発明は、カメラ本体側で算出されたズレ量デ
ータと交換レンズからの変換係数データとにより
駆動手段の駆動量データをカメラ本体側で算出す
る場合、上述の不都合を生じることなく変換係数
のデータがカメラ本体に転送できる自動焦点調整
方法およびそのための交換レンズを提供しようと
するものである。 要 旨 本発明は、変換係数のデータが大幅に変化して
も、上記駆動量の算出には該データの有効数字部
は所定桁あれば充分であることを利用して、上記
変換係数のデータを上位mビツトの指数部と下位
nビツトの有効数字部とに分離した(m+n)ビ
ツトのデータとしたものである。 実施例 本発明による焦点自動調整のためのカメラシス
テムの概略を第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から大歯車1
03までの機械伝達系の減速比をμ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との比を K op=Δ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を直接掛算回路113
へ入力しておくようにし、上記特定の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が出力されて、マイコンMC
1,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からの特定データで出力端子a0が“High”
になることにより、データバスDBに露出制御モ
ード設定装置MSEから設定露出制御モードを示
すデータが出力され、このデータがマイコンMC
2の入出力ポート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 detects, on the camera body side, the amount of deviation of the imaging position of the object to be focused from the expected focal position upon receiving light from the object to be focused that has passed through a photographic lens, and adjusts the focus based on this amount of deviation. The present invention relates to an interchangeable lens for automatic focusing that calculates a driving amount relative to the moving amount of an automatic focusing lens, and adjusts the focus by moving the focusing lens by an amount corresponding to the driving amount. Prior Art In automatic focus adjustment as described above, the drive amount of the drive means is calculated from the detected shift amount (in other words, shift amount data is converted to drive amount data).
In this case, since the amount of deviation and the amount of drive are in a substantially proportional relationship, the amount of drive data can be obtained by multiplying the amount of deviation data by an appropriate conversion coefficient. The value of this conversion coefficient changes depending on optical conditions such as the focal length and lens configuration of the interchangeable lens, and mechanical conditions such as the configuration of the focus adjustment mechanism within the interchangeable lens. That is, the value of the conversion coefficient differs for each interchangeable lens. Therefore, the data of this conversion coefficient is provided in the interchangeable lens, the data of this conversion coefficient is taken in from the interchangeable lens by the camera body, and the data of the driving amount is obtained from this data and the data of the amount of deviation obtained by the camera body. It is conceivable to calculate it. However, since the value of this conversion coefficient changes for each interchangeable lens, if the data of this conversion coefficient were to be made compatible with various interchangeable lenses, the number of bits would increase. When transferring such conversion coefficient data in parallel, the number of terminals for transmitting and receiving signals between the camera body and the interchangeable lens increases, and problems such as dust adhesion to these terminals and poor contact between the terminals may occur. There may be disadvantages in that the reliability of the data decreases or the transfer time takes a long time when serially transferred. Purpose The present invention provides, when calculating the drive amount data of a driving means on the camera body side based on the shift amount data calculated on the camera body side and the conversion coefficient data from the interchangeable lens, the conversion coefficient can be calculated without causing the above-mentioned inconvenience. The purpose of the present invention is to provide an automatic focus adjustment method that allows data to be transferred to the camera body, and an interchangeable lens for the same. Summary The present invention utilizes the fact that even if the data of the conversion coefficient changes significantly, a predetermined number of significant digits is sufficient for calculating the drive amount, and the data of the conversion coefficient is changed. is (m+n) bit data separated into an exponent part of the upper m bits and a significant part of the lower n bits. 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,
On the right side is the camera body BD, and both are mechanically connected via clutches 106 and 107 and electrically connected via 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 signal 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. The motor MO is driven based on these signals, and its rotation is transmitted through the slip mechanism SLP, drive mechanism LDR, and camera body side clutch 107 to the zoom lens LZ.
transmitted to. 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 using 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 this 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 reduction ratio from the rotation axis of the motor MO to the camera body The reduction ratio of the mechanical transmission system up to the side clutch 107 is μB, and the large gear 1 from the lens side clutch 106 is
The reduction ratio of the mechanical transmission system up to 03 is μL, the helicoid lead of the focusing member 102 is LH (mm/rot),
If the movement amount of the focus lens FL is Δd (mm), then N=ρ・μP・NM Δd=NM・μB・μL・LH In other words, Δd=μB・N・μL・LH/(ρ・μp)... The relational expression (1) is obtained. In addition, when the ratio of the movement amount ΔL (mm) of the imaging plane when the lens is moved by Δd (mm) and the above Δd is expressed as K op = Δd/ΔL... (2), the formula (1) , (2), we can obtain the relational expression N=(ρ・μP/μB)・Kop・ΔL/(μL・LH)...(3). Here, if KL=Kop/(μL・LH)...(4) KB=ρ・μP/μB...(5), the relational expression N=KB・KL・ΔL...(6) is obtained. . In addition, in equation (6), ΔL is the signal processing circuit 112
is obtained as a defocus amount |ΔL| and a signal in the defocus 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, the data corresponding to the rotational position of the zoom ring ZR is sent to the code plate FCD.
is output, this data is sent to the lens circuit LEC, and the KL data stored at the address corresponding to the data from the code board FCD is read in series by the reading circuit LDC in 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 means 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 calculates the differential focus amount data |ΔL| from the signal processing circuit 112 and the multiplication circuit 111.
The calculation of 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 sent to the multiplication circuit 113.
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 =
Even if you store all KL・KB2,..., Kn=KL・KBn in the lens, send all these data to the camera body, and have the camera body select the data according to its own KB value. good.
Alternatively, data indicating the type of camera may be sent from the camera body to the lens, and data corresponding to the type of camera may be sent from the lens side 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), If the data of the lower 4 bits of the data read by the reading circuit LDC of the camera body is shifted by the data of the exponent part and input 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 functions of these circuit blocks are accomplished by a microcomputer (hereinafter referred to as 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 is given to the camera body BD side. When the power switch MAS is closed, the power only reset 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 power supply line +E. With this start of power supply, a reset signal PO1 is output from the power-on reset circuit POR1, and the microcomputer MC
1. 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 microcomputer MC2 is shown in the flowchart in Figure 3, and the operation of microcomputer MC1 is shown in figure 8.
This is shown in the flowcharts in Figures 1 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 setting 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.
Input data from the converter CV and lens LE to the 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 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 converter CV
The circuit configurations of the circuit CVC of the lens LE and the circuit LEC of the lens LE are shown in FIG. 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
Output terminal a0 is “High” with specific data from 1
As a result, 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 MC.
It is read from the input/output port I/O of No.2. Similarly, when reading the set aperture value, the terminal a2 becomes "High". When sending display data to the display control circuit DSC, terminal A4 is connected depending on the data to be sent.
One of ~an 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 the exposure control device EXC starts the following exposure control operations. 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
Gate 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
An exchange in which focus adjustment is performed only in accordance with a method (hereinafter referred to as the predictor 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. In the case of a lens, there is a method in which the lens is driven by a signal in the direction of deviation from the in-focus position (front focus, rear focus, focus) (hereinafter referred to as the three-point indication method) and this predictor method. In the case of an interchangeable lens that can be used in combination to adjust the focus, 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).
mode), the camera is closed, only the focus state is displayed according to the detection result of the focus state, and focus adjustment is performed manually (hereinafter referred to as "mode").
(referred to as FA mode). The open/close signal of the switch FAS is applied to the input terminal i1 of the microcomputer MC2 and the input terminal i14 of the microcomputer MC1 via the inverter IN6. 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.

【表】【table】

【表】 焦点検出用受光部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により、フリツプフロツプ
FF1がセツトされて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,RO′1,
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. Note that a pulse signal from the microcomputer MC1 to the control circuit COT for starting the integration operation of the CCD (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 CCD (FLM) has been completed is sent to the interrupt terminal it, and a signal indicating that the A-D conversion operation of the accumulated charge has been completed for each light receiving element of the CCD (FLM) is sent to the input terminal. At i10, the above A-D converted data is input to the input port IP0. Furthermore, the control circuit for CCD (FLM)
From COT, 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 terminal φ1,
A reference potential is input to the terminal ANB at φ2 and φ3, and a potential corresponding to the amount of light received by the monitoring light receiving section is sent from the CCD (FLM) to the control circuit COT from the terminal AOT to each light receiving section from the terminal AOT. The accumulated charges of are output respectively. This control circuit
The specific circuit configuration of the 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 (FLM) to reset the CCD (FLM), and a reference potential signal is given to the CCD (FLM). CCD
In each light receiving section within the FLM, the accumulated charge increases according to the amount of light received, and as a result, the potential output from the terminal ANB decreases. control circuit
When the level of terminal ANB reaches a predetermined value, COT outputs a transfer command signal to CCD (FLM).
Accumulated charge in each light receiving part of CCD (FLM)
(FLM) and transfer it to the transfer gate in
Give the integration completion signal to the interrupt terminal it of the microcomputer MC1. And the control circuit COT is CCD (FLM)
The accumulated charge transferred to the transfer gate of φ1, φ
2. Receive A based on the transfer clock of φ3
-D conversion and A- of the accumulated charge by one light receiving part
Every time the D conversion is completed, an A-D conversion completion signal is given to the input terminal i10 of the microcomputer MC1. Microcomputer
In response to this signal, MC1 takes in the A-D converted data from input port IP0. and,
After the microcomputer MC1 has taken in the same number of A-D converted data as the number of light receiving elements of the CCD (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 changes 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 closed, and the photometry switch MES is closed (#2).
As a result, the power supply to circuits other than the focus adjustment circuit starts (#4), the exposure control information set on the camera body BD starts (#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 starting from step #59 is the release switch
This is a flowchart of a release interrupt for starting the exposure control operation of the camera 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 set 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), a data serial input command is output (#7-2). Converter circuit CVC, lens circuit
When the input of one piece of data from the LEC is completed (#8), the fetched data is set in register M(A) corresponding to the contents of register A (#9). Next, "1" is added to the contents of register A (#10), and it is determined whether the contents have become Ac (a constant value). Here, if A≠Ac, the process returns to step #7-2 and the next data is taken in again. When A=Ac, the lens
Since the data import from LE and converter CV has been completed, output terminal O6 is set to “Low”.
(#12) to reset the converter circuit CVC and lens circuit LEC. 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. In other words, the serial data input command SIIN causes the flip-flop to
FF1 is set and the reset state of the 3-bit binary counter CO1 is released. At the same time, the gate of the AND circuit AN7 is opened, and the clock pulse DP frequency-divided within the microcomputer 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 clock pulse is
CO1 is sent to the clock input terminal of shift register SR1. The shift register SR1 sequentially takes in the data input to the input terminal SDI of the microcomputer MC2 at the falling edge of the clock pulse DP. Here, carry terminal CY of counter CO1
remains "High" during the period from when the 8th clock pulse DP is input until the next cross pulse DP is input. On the other hand, AND circuit AN5
This carry output is input to one input terminal of , and the clock pulse DP is input to the other input terminal via the inverter and IN15, so the AND circuit AN5
becomes "High" at the falling edge of the 8th clock pulse DP, resets the flip-flop FF1, and also puts the counter CO1 in 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. The “High” pulse from the AND circuit AN5 sets the serial input flag SIFL to determine the completion of data input, and the microcomputer MC2 inputs the shift register.
The data being output from SR1 to the internal data bus IDB is stored 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.
The rising edge of DP is counted and the carry terminal CY is set to "High" from the rising edge of the 8th clock pulse until 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 change to 1 every time the first pulse of 8 clock pulses rises.
Increase by increments. The registers of the ROM and RO1 of the converter circuit CVC 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, RO′1,
The lens LE and converter CV data output from RO3 are either output depending on the output of decoder DE5 or serial adder circuit AL1.
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】

【表】 カウンタ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、オア回路OR
1を介して出力される。また、ズームレンズの場
合には、ズームリングZRの操作により設定され
た焦点距離に応じた5ビツトのデータを出力する
コード板FCDがレンズ回路LEC内に設けられて
いる。設定焦点距離に応じて変化するコード板
FCDの出力によつて、データセレクタDS1の入
力端子α2の下位5ビツトの値が一義的に決ま
る。従つて、データセレクタDS1は、デコーダ
DE9の出力h4が“Low”のときは入力端子α
1からの“0000 h3 h2 h1 h0”のデータを、ま
た、“High”のとき入力端子α2からの“h2 h1
h0 *****”(*はコード板のデータ)のデ
ータを出力することにより、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, each time the clock pulse rises,
The data in ROM, R3 is sent one bit at a time sequentially from the lowest 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 sequentially output one bit at a time starting from the lowest bit e0 at each rising edge of the clock pulse.
1. 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. Code plate that changes depending on the set focal length
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 FCD. Therefore, the data selector DS1 is the decoder
When the output h4 of DE9 is “Low”, input terminal α
1, the data “0000 h3 h2 h1 h0” from input terminal α2, and “h2 h1
Specify the address of ROM and RO3 by outputting the data “h0 *****” (* 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 passed through the AND circuit AN32 and the off circuit OR3 due to “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 open aperture value of the lens due to the attachment of the converter CV, 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, the data of Avmax+β is output as in the case of the open aperture value, and if the lens is not installed, the data of Avmax is output. 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, for lenses whose exchange 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 are "05H" or "05H" respectively. The address “001*****” is specified. Note that "*****" is data from the code board FCD. This address of ROM, RO3 contains the data corresponding to the base 2 logarithm value log 2 f of the fixed focal length f of the lens for a fixed focal length lens, and the set focal length of the zoom lens for 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 − Avo for controlling the effective aperture to the set or calculated aperture aperture. -Used for ΔAv. When the output of counter CO9 becomes "0111", the output of decoder DE9 becomes "1011φ" in the case of a zoom lens, and ROM and RO3 become "011****
*" address is specified. Conversion coefficient data KD corresponding to the set focal length is stored in this address. Also, in the case of a fixed focal length lens, the address "07H" is specified in ROM and RO3. specified, and this address contains fixed conversion coefficient data.
KD is remembered. 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. The data KD of this conversion coefficient
is used to obtain data on the drive amount of the motor drive mechanism LMD by calculating |ΔL|×KD from the differential focus amount |ΔL| calculated by the microcomputer MC1. 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の離散的な値としている。 ここで、 K 1=2°の場合KD=“01111000”、 K 2=2-1+2-2+2-3+2-4の場合 KD=“01101111”、 K 3=2-1+2-2+2-3の場合KD=“01101110”、 K 4=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のゾーンであればK16,f23のゾーンな
らK15,f22のゾーンならK13というデータが出
力される。 このように、KDの値を定めるのは、以下の理
由による。即ち、KDを実際のデータよりも大き
な値にしておくと、合焦位置までフオーカス用レ
ンズを駆動するのに必要な駆動量に対応するエン
コーダENCのパルス数よりもN=KD×|ΔL|
で求められたNの方が多くなり、結果として合焦
位置をレンズが通り過ぎ、合焦位置の前後でレン
ズがハンテイングをしてしまうからである。そこ
で、KDを小さめの値にしておけば次第に一方の
方向から合焦位置に近づくようになり、また、実
際のKDとの差ができるだけ小さくなるようにし
ているので、フオーカス用レンズが合焦位置に達
する時間を短かくすることができる。 尚、KDの値を常に小さめの値にした場合、実
際のKDの値との差が大きくなりすぎて合焦位置
に達するまでの時間が長くかかりすぎることが起
こりうるが、時間を短縮するために、B′に示す
ゾーンf18,f12のように実際の値よりも若干大き
くなつている領域をわずかに設けて、少しぐらい
合焦位置から行きすぎてもよいようにしてもよ
い。 また、撮影距離が無限大だと実線のC(∞)、近
距離だと一点鎖線C(近)のように、撮影距離に
応じて変換係数が大幅に変化するズームレンズが
ある。このズームレンズでは、例えば焦点距離f1
のゾーンで撮影距離が無限大の位置から最近接の
位置へ変化すると、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のアドレス“0110000”が指定
される。 このアドレスには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”のチエツ
クデータが出力される。このとき、デコーダDE
5の端子g1が“High”になつているので、こ
のチエツクデータはレンズ回路LECのROM,
RO3からのデータとは無関係にアンド回路AN
31,オア回路OR3を介してカメラ本体BDに
送られる。 カウンタCO5の出力が“1001”になると、こ
のコンバータ装着で光束が制限されることによる
光のケラレに基づいて定まる絞り値のデータAvl
がROM,RO1から出力され上述と同様にして、
アンド回路AN31、オア回路OR3を介してカ
メラ本体に送られる。このデータAvlは、マイコ
ンMC2で開放絞り値のデータAvo+βと比較さ
れる。Avo+β<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] The 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. Figure 7 is a graph showing the relationship between conversion coefficient data output from a zoom lens and focal length, where the horizontal axis corresponds to log 2 f and the vertical axis corresponds to the conversion coefficient KD.
corresponds to 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 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, when K1=2°, KD="01111000", when 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 For +2 -7 , KD = "00111001", and for 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, in the f25 zone, the data closest to the smallest K value in that zone and with the smallest value
Data will be output as K16 for K17 and f24 zones, K15 for f23 zones, and K13 for f22 zones. 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. In addition, it is also possible to provide a slightly larger area than the actual value, 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. There are also 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 dashed line C (near) when the shooting distance is close. With this zoom lens, for example, the focal length is f1
When the shooting distance changes from the infinite position to the closest position in the zone, KD = k17 = 2 -2 to KD = K15
Changes to =2 -2 +2 -4 . In order to be compatible with such a zoom lens, in this embodiment, only the data of the conversion coefficient at the infinite position is stored in the ROM, RO3.
The focus lens is driven based only on the positive and negative signals of ΔL (i.e. in the defocus direction) until it reaches the area near the focus range (hereinafter referred to as the near focus zone). When the lens enters the in-focus zone, the lens is driven based on the value of N determined by the above-mentioned KD and |ΔL|. 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. but,
It is not practical because of problems such as an increase in the number of parts, an increase in the number of bits for address specification, and an increase in the capacity of ROM. 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 specified. 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 "0110000" 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 of "φφφφ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, 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” stores data corresponding to ΔAv during macro photography, and is output from the 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 transferred by N=KD×〓ΔL〓. There is a problem in that when the drive shaft of the lens 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 counter CO5 reaches "1000", 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, decoder DE
Since the terminal g1 of 5 is set to “High”, this check data is stored in the ROM of the lens circuit LEC,
AND circuit AN regardless of data from RO3
31, sent to the camera body BD via the OR circuit OR3. When the output of counter CO5 reaches "1001", the aperture value data Avl is determined based on the vignetting of light due to the luminous flux being restricted by installing this converter.
is output from ROM, RO1 and in the same way as above,
The signal is sent to the camera body via the AND circuit AN31 and the OR circuit OR3. This data Avl is compared with the open aperture value data Avo+β by the microcomputer MC2. When Avo+β<Avl, the photometric output is Bv
−Avl, so (Bv − Avl) + Avl = Bv
and refinement stage number 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 is performed on the output of (#13), and this
-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” and if this flag is “1”.
When it is "0", it goes directly to step #28, and when it is "0", it goes through steps #16 to #26 and then goes 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 #5 and thereafter.
If RLF=1 in step #15, the flow of focus detection operation in AF and FA modes in steps after #16 is skipped, exposure calculation is performed in step #28, and then step #30 is performed. Exposure control is performed in steps after #64. 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
番目のビツトk3が“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”でFAモードが選択されている(#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〜91)、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.200〜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の回転を停止させ、
低コントラストフラグが“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のステツプへ移行する。一方、i1
4が“Low”になつていてFAモードに切換えら
れていれば、フラグFPFを“1”にし、端子O
12,O13を“Low”にしてモーターMOを停
止し、フラグLCF,LCF1,LCF3を“0”に
した後に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.111,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がレジスタECR
1に取込まれ(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|≧ZN1
ならば前回のデフオーカス方向の表示をしたまま
で、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の積分に要する期間におけるレンズ
の移動量τ=Tc0−Tc1が、Nを算出するため
に要する期間におけるレンズの移動量t0=Tc
1−Tc2が算出される。ここで、CCDの積分期
間の中間の位置でNが得られたものとすると、こ
の時点においてレンズはNが得られた時点から
τ/2+t0だけ移動している。また、前回のフ
ローで得られたN′mからレンズの移動分τ+t
0を補正したデータN″m=N′m−τ−t0が算
出される。尚、このデータ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−t0=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
+t0だけ今回のデフオーカス方向に合焦位置か
ら離れているので、|N|+τ/2+t0=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であれば出力端子O
12,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)、発光ダイオードLD1による
合焦表示を行なつて(No.252)、No.258のステツプ
に移行する。一方、合焦ゾーン外にあることが判
別されると、ΔLn>0かどうかが判別され(No.
253)、ΔLn>0なら発光ダイオードLD0による
前ピン表示、ΔLn<0ならLD2による後ピン表
示を行なう。次に、合焦フラグIFFを“0”と
し、IZRにデータZN2を設定してNo.258のステツ
プに移行する。No.258のステツプでは入力端子i
14が“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の出力端子O30を
“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=|×
δ×FN0(|=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. If the photometric switch MES is open and i0 is "Low"(#16-5), the process moves to step #28 in order to operate only in the FA mode for 15 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 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 k3 is “1” or “0”, the installed converter CV and lens
Determines whether focus adjustment operation using AF mode is possible in LE. At this time, if k3=1, AF mode is possible, so set flag MFF to "0" and #28
Move on to the next step. 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,
If the AF mode is selected and the input terminal i1 is "High", the display control circuit DSC will display a warning that the camera will automatically switch to the FA mode even if the AF mode has been set by the photographer. Then move on 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", set the 15-second count data for the timer interrupt in the timer register Tc (#34) and start the timer. (#35), enable timer interrupt (#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 FA 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, the process moves to steps #5 and subsequent steps, and the aforementioned data acquisition, exposure calculation, etc. are performed. 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. . Furthermore, if the exposure control mechanism has not yet been fully charged, data acquisition, microcomputer MC1 operation, exposure calculation, and display operations are immediately stopped when the photometry switch MES is released. 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
After setting RLF 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 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 and #70 indicates that the photometry switch MES is closed and the input terminal i2 becomes "High". Determine whether 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 is controlled by the control circuit COT.
(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) ,
Detecting the end position of the focus lens and measuring the longest integration time (No. 35 to 44), stopping the motor at the end position and restarting rotation when the contrast is low (No. 43 to 44)
48, 51 to 67), Initial settings when microcomputer MC1 stops operating (No. 25 to 33), Conversion of CCD data at low brightness (No. 78 to 80), Calculation of the amount of defocus and direction of defocus (No. 48). 81 to 91), determining whether the lens can operate in AF mode (No. 92 to 96), determining contrast (No. 100), driving the motor to the focus zone in AF mode, and determining focus. (No.125~
196) (Fig. 9), Focus determination in FA mode (No.
240-261) (Fig. 10), operation at low contrast (No. 105-115, 205-214), motor drive for lenses that can switch to macro photography at the closest shooting position (No. 220) -232), etc. are performed. 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. 200 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 integral time measurement register ITR of the CCD (FLM) (No. 7). Next, output a “High” pulse from the output terminal O10 (No. 8) and send the CCD to the control circuit COT.
(FLM) starts the integral operation and enables interrupts (No.
9), then move on 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 MOF (No. 13). 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, the motor
Since MO is rotating, 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. 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 further, it becomes "1" and the focus flag is set.
IFF becomes "1" when the lens is in the in-focus zone, and "0" when it is out of focus. 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", the process returns to step No. 14 and this operation is repeated. Also, “Low”
If so, the program moves to step No. 25 and subsequent steps to perform a return operation to the initial state, and then returns to step No. 2 and waits for the input terminal i11 to become "High" again. 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 the output terminal O11 (No. 16) to output the CCD (FLM). Forcibly stop the integral operation and set the low brightness flag LLF to “1”.
Wait for the interrupt signal to be output from the control circuit 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 the CCD (FLM), and set the low brightness flag LLF. is set to "1" and waits 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 has become "High". If i11 has become "High", the process returns to step No. 36, and if it has become "Low", the process moves to step No. 25. Incidentally, since C1/n>C2, a borrow occurs multiple times in the determination in step No. 40 until a borrow BRW appears in the determination in step No. 37. 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 not possible (No.
45) and output a pulse to output terminal O11 (No.
46) to forcibly stop the integration operation of the CCD (FLM) and set both output terminals O12 and O13 to “Low”.
(No.47) to stop the rotation of the motor MO,
Determine whether the low contrast flag is “1” (No. 48). Note that this flag LCF becomes "1" when the subject has a low contrast and the defocus amount ΔL calculated based on the output of the CCD (FLM) is unreliable. Here, the flag LCF
When is "0", the 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 remains "High" and the AF mode remains selected, the process directly proceeds to step No. 2. On the other hand, i1
4 is “Low” and has been switched to FA mode, the flag FPF is set to “1” and the terminal O
12, O13 is set to "Low" to stop the motor MO, flags LCF, LCF1, and LCF3 are set to "0", and then the process returns 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, wait for an interrupt signal to be input while counting the longest integration 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 not possible and the integration is forcibly stopped, and the motor
Stop the rotation of the MO, integrate the CCD again, calculate ΔL to determine whether or not it is in focus, 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 when this signal becomes "Low", the photometry switch MES is closed again and the input signal is input. When the 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
“1” when the lens is extended (front focus) when ΔL>0, and “1” when the lens is extended when ΔL<0 (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 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" in step No. 51, it means that the closest or infinite end position has been reached with low contrast, and the motor MO is stopped (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.111, 113), and set No.
At step 205, it is determined whether the defocus amount ΔL is positive or negative. If ΔL>0 and front pin, set flag FDF to “1”,
If ΔL<0 and the rear focus is set, set the flag FDF to "0" (No. 206, 209), and in the same way as steps No. 63 to 66 above, set the motor according to the rotational direction of the motor MO for extending the lens. Rotate MO counterclockwise or clockwise. Next, in step No. 212, it is determined whether the integral time (contents of register ITR) is shorter than a constant value C7, and if the integral time is less than a constant value (ITR≧C7), terminal O14 is set to “High”. ”
The motor MO is driven at high speed (No. 213), and when the integral time is greater than a certain value, the terminal O14 is set to "Low" and the motor MO is driven at a low speed (No. 213).
214), return to step No. 2 via step No. 270, 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 photometric 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. Here, if the contrast suddenly becomes low, as mentioned above, ignore the first measurement value and perform the measurement again. At this time, too, if the contrast is low, the flag LCF3 is set to "1" (No. .112), set LCF3 to “0”
Proceed to step No. 205, determine the direction of movement of the lens based on the measured value, 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 CCD (FLM) integration operation 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 No. 36 to No. 41, the microcomputer MC1 selects No. Jump to step .70 and start 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
Value C3 corresponding to the number of data input to IP0
is set in the register DNR (No. 71), and waits for a "High" pulse to be input to the input terminal i10 at step No. 72. When the A/D conversion of the CCD output is completed and the input terminal i10 becomes "High", one CCD output data CD input to the input port IP0 is set in the register M (DNR) (No.
73). Next, “1” is subtracted from the contents of register DNR (No. 74), and a borrow is generated from this register DNR.
Steps Nos. 72 to 75 are repeated until BRW is output. In this way, CCD output data CD
are sequentially set in registers M and DNR. When all CCD output data CDs have been imported,
Set a return address, perform a return operation to that address, and move on 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
If the most significant bit of
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, calculations are performed on the integer part and decimal part of the shift amount of the two images in a plane equivalent to the film plane, respectively. Specific examples of calculating the shift amount in these steps are proposed in, for example, U.S. Pat. Omitted. In steps Nos. 82 to 85, it is determined whether or not the motor MO is rotating, similarly to steps Nos. 10 to 13 described above. Here, if the motor MO is rotating, the count data ECD of the number of pulses from the encoder ENC is in the register ECR.
1 (No. 86), and this data is compared with the contents of the register ECR2, which was previously fetched in step No. 44. If ECR1=ECR2, the lens has reached the end, so move on to the operation from step No. 47 mentioned above, and if ECR1≠ECR2, the lens has not reached the end, so set the contents of ECR1 to ECR2. repair
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 after step No. 25 is stopped and initial settings are made, and when it is “High”, it moves to step No. 90 and the decimal part of the shift amount is performed. The defocus amount ΔL is calculated based on the shift amount calculated in steps No. 81 and No. 90 (No. 91). At 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), repeats the operation of subtracting "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, that is, 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 code, 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 in 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 Nos. 125 to 130, an operation is performed to determine whether or not the defocus amount ΔL is within the range of the focusing 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", the flag IFF is set to "0", the process moves to step No. 135, and a lens control operation is performed using the defocus amount based on the current measurement value. If the end of the lens has been reached and the flag ENF is "1", in step No. 127, if |ΔL|<ZN1, in-focus display is performed (No. 128), and |ΔL|
If so, move to step No. 129 with the previous def focus direction still 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. However, in this case, the lens does not come into 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 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 τ = Tc0 - Tc1 is the amount of movement of the lens in the period required to calculate N t0 = Tc
1-Tc2 is calculated. Here, assuming that N is obtained at a position in the middle of the CCD integration period, at this point the lens has moved by τ/2+t0 from the point in time when N was obtained. Also, from N′m obtained in the previous flow, the lens movement τ + t
Data N″m=N′m−τ−t0 is calculated by correcting 0. Note that this data N″m is always positive. In steps Nos. 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, in step No. 155,
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-t0=N', and then it is determined whether or not N' is negative (No. 160). Here, N′<
If it is 0, 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 +t0 in the current defofocus direction, a correction calculation of |N|+τ/2+t0=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 it is determined whether this average value Na is negative (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 set in the counter ECC in step No. 182 for this correction data. Also, if Nm<Ni, the output terminal O
12. Set O13 to "Low" to stop the motor MO (No. 171), set the focus flag IFF to "1" (No. 172), disable counter interrupt (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 , lights up the light emitting diode LD0, and displays the front pin (No.186).If it is "0", it is the rear pin, so outputs "001" to the output port OP0, lights up the light emitting diode LD2, and displays 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 and i13 is "High", then in step No. 193, Nm<Nn
Determine whether or not. 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". drive the motor MO at low speed (No. 195), disable counter interrupt (No. 196), and go through the steps of No. 270.
Return to step No.2. 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), just like a normal interchangeable lens. ,
Return to step No.270. In addition, input terminal i13
Even if is “Low”, 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), the focus flag IFF is set to "1", and the process returns to step No. 270. On the other hand, if Nm≧Nn, it means that the near focus zone has been reached, and the output terminal O14
to “Low” to make the motor slow (No. 201),
After setting Nn to counter ECC (No. 202), return 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 very 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. one hand flag
If 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+ΔLn-
1) The operation of /2 is performed (No. 247) and the register
Zw (>ZN2) as data for focusing zone in IZR
is set (No. 248), the process moves 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, the focus flag IFF becomes “0” at step No. 246.
If so, let the current measured value ΔL be Δ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 focus zone. If it is determined that it is within the focus zone, the focus flag IFF is set to "1" (No. 251), the focus is displayed by the light emitting diode LD1 (No. 252), and the focus flag IFF is set to "1" (No. 251). Move on to the next step. On the other hand, if it is determined that it is outside the in-focus zone, it is determined whether ΔLn>0 (No.
253), if ΔLn>0, the front pin is displayed by the light emitting diode LD0, and if ΔLn<0, the rear pin is displayed by LD2. Next, the focus flag IFF is set to "0", data ZN2 is set in IZR, and the process moves to step No. 258. In step No. 258, input terminal i
14 is “High”, and if it is “High”
If the mode is switched to AF mode, set the flag FPF to "1", IFF to "0", and LCF to "0" and go to step No. 2. If it is set to "Low" and remains in FA mode, go to step No. .Return to step 2 and take 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 the 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 at step No. 127 that the focus zone has been reached and the focus is displayed (No. 128), flag IFF1 is set to "1" (No. 300).
The output terminal O30 of the microcomputer MC1 in FIG. 11 is set 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 aperture value for exposure control is input to the input port IP2. The read data Av is converted to FNo. (No.
307), and in step No. 308, the calculation ΔD=δ×FNo. is performed. 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| obtained in step No. 91 in this flow and ΔD are compared in step No. 309, and after the focus status display below, No.
Move to step 270. Here, |ΔL|≦ΔD
If so, 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 display the focus. It is done.
On the other hand, if |ΔL|>ΔD, depending on whether ΔL is positive or negative, “100” is output to OP5 and light emitting diode LD3 is lit to display the previous pin, or “001” is output. Output light emitting diode
LD5 is turned on to display the rear pin. If you do something like this,
After the lens reaches the in-focus position in AF mode, check whether there is any part other than the part measured to drive the lens to the in-focus position within the depth of focus, or whether it is in front or back 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. , as in the case of FA mode mentioned above, the width of the focus zone can be widened, once the focus zone has been reached, the width of the focus zone can be widened, and the average value of the data calculated several times can be processed. The accuracy may be increased by
For example, to increase the width of the focusing zone, ΔD=|×
It is sufficient to perform the calculation δ×FN0 (|=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 the 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. Step #81 is inserted to determine the state of terminal i5. 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 control circuit of the CCD (FLM) 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.

【表】 この表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の信号はマイコンMC1の
割込端子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を介してサンプルホールド回路SH
1に与えられ、オフセツト調整用の電位が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はCCD
(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、サンプルホールド回路
SH2の出力は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=R
32/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,AS3
4,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
のステツプでフラグIFFに“1”かどうかが判別
される。ここで、フラグIFF2が“0”であれば
このフラグIFF2を“1”にしてNo.270のステツ
プに移行し、再度確認のための測定を行なう。一
方、フラグIFF2が“1”ならば、確認のための
測定結果が2回続けて非合焦(|ΔL|≧ZN1)
ということになり、この場合には、フラグ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から出力される。 効 果 上述のように、本発明は、カメラ本体側で算出
されたズレ量データと交換レンズからの変換係数
データとにより駆動手段の駆動量データをカメラ
本体側で算出し、この駆動量データに基づいて交
換レンズの焦点調節用レンズを移動させて自動的
に焦点調整を行なう場合に、上記変換係数のデー
タが上位mビツトの指数部と下位nビツトの有効
数字部とに分離された(m+n)ビツトのデータ
として転送されるようにしたので、この変換係数
データのビツト数を上記駆動量データ算出に最小
限必要なビツト数を抑えることができ、且つ転送
時間を短縮することができる。
[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 (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 reset signal PO2 from the power-on reset circuit POR2 based on the start of power supply activates the flip-flops FF20 to FF28, FF32, the D flip-flops DF20, DF22, DF24, and the counter.
CO20, CO22, CO24 are reset.
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 output potential of Vr1 is applied to the CCD via the signal line ANB.
(FLM), and the potential of the charge storage section of the CCD (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 (FLM) starts 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 (FLM) storage is complete. 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 (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 sent to the interrupt terminal it of the microcomputer MC1, and the microcomputer MC1
Performs the operation to capture the output data of CCD (FLM). When this terminal φT falls to “Low”, the flip-flop FF is activated via the one-shot circuit OS16.
32 is set, and the gate of the AND circuit AN68 is closed due to the "Low" output thereof, and after that, 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 (FLM) is used for offset adjustment, so that only the charge corresponding to leakage in the light receiving section is accumulated, and is almost equal to Vr1. It is equal to the output 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 SH.
1, and the potential for offset adjustment is applied to the CCD.
(FLM) and is stored in the sample hold circuit SH1 via the terminal AOT. When the first sample and hold signal φS falls, the Q output of the D flip-flop DF24 becomes “High”, and the subsequent sample and hold signal φS is output to the AND circuit AN72.
is applied to the sample hold circuit SH2 via
Potentials corresponding to subsequent amounts of received light are sequentially stored in the sample and hold circuit SH2. 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 (FLM) is not output from the first CCD (FLM) is that the data from the first CCD (FLM) is used for offset adjustment as described above. 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 CCD
When the pulses from φ3 are counted as many as the number of light receiving parts of (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 (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 and hold circuit
The output of SH2 is Vr1-Vl-Vd. Therefore, the output of the subtraction circuit is a signal component of only the amount of received light, Vl. It is preferable that the A/D converter AD is of a type that performs A/D conversion at high speed, such as a successive approximation type. After the A-D conversion of all data from CCD (FLM) is completed, carry terminal CY of counter CO20 is
becomes “High”. As a result, the flip-flops FF20, FF32, and the D flip-flop 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 (FLM) is A-D converted 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 CCD (FLM).
During the "Low" period, the monitor output of the CCD (FLM) is 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 FF20. 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=R
32/2.5=R42/2.5=, and due to the conduction of analog switches AS38 and AS48, R30
=R40=R38=R48, so the operational amplifier
The Vl signal is output as is from the 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~
Depending on whether it is between Vr3, Vr3 to Vr4, or Vr4 to Vr1, D flip-flops DF36, DF34, and DF32 are connected via exclusive OR circuits EO4 and EO2 and inverter IN52.
One of the Q outputs becomes “High”, and the analog switches AS36, AS46, and AS3 respectively
4. AS44, AS32, and AS42 are electrically connected. Therefore, the 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 IFF 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 flag IFF2 is “1”, the measurement result for confirmation is out of focus twice in a row (|ΔL|≧ZN1)
In this case, the flag IFF,
IFF2 is set to "0", flag FPF is set to "1", the process moves to step No. 135, and the focus adjustment operation is performed again. Note that a step (No. 34) for resetting the flag IFF2 to return to the initial state is provided between the step No. 33 and the step No. 2, and between the step No. 240 and the step No. 241. ,No.
241) is provided. 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+1-th 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 greater than a constant value CD, and
(C)>CD has enough contrast, so No.101
If (C)≦CD, the contrast is low, so the process moves 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 can be 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 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 a value obtained by logarithmically expanding the value of the significant figure part according to 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 effective exponent 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 calculates the drive amount data of the drive means on the camera body side based on the shift amount data calculated on the camera body side and the conversion coefficient data from the interchangeable lens, and uses this drive amount data. When automatic focus adjustment is performed by moving the focus adjustment lens of an interchangeable lens based on ) bit data, it is possible to reduce the number of bits of this conversion coefficient data to the minimum number of bits required for calculating the drive amount data, and also to shorten the transfer time.

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

第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……カメラ本体、MO……駆動手段、LZ,
LE……撮影レンズ、FL……焦点調整部材、10
1〜106……伝達機構、LEC……データ出力
手段。
Fig. 1 is a block diagram showing an 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 controlled by the microcontroller MC1. A circuit diagram showing a specific circuit configuration of the light emitting diode drive circuit FAD, and FIG. 7 shows the relationship between the focal length and the conversion coefficient of a variable magnification lens having an optical system in which the conversion coefficient changes depending on the focal length. graph,
Figures 8 to 10 are the microcontroller MC1 shown in Figure 2.
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 microcontroller MC2 corresponding to this modified example. and
A flowchart diagram showing the main parts of the flow of MC1,
Fig. 14 is a circuit diagram showing the specific circuit configuration of the control circuit COT controlled by the microcomputer MC1, Fig. 15 is a circuit diagram showing the main circuit configuration of a modification thereof, and Fig. 16 is a flowchart of the microcomputer MC1. 17 is a flowchart specifically showing the operation of the microcomputer MC1 in step No. 100 in FIG. 8; FIG. 18 is a flowchart showing the main part of another modification; FIG. 18 is the reading circuit LDC in FIG. 1. FIG. BD...Camera body, MO...Driving means, LZ,
LE...Photographing lens, FL...Focus adjustment member, 10
1 to 106...transmission mechanism, LEC...data output means.

Claims (1)

【特許請求の範囲】 1 カメラ本体に交換自在に装着される交換レン
ズにおいて、 被写体光を結像させる光学系と、 上記光学系内に設けられ、カメラ本体内で算出
された駆動量データに応じた量だけ移動されて上
記被写体光の結像位置を移動させる焦点調節用レ
ンズと、 所望の結像位置移動量を上記駆動量に変換する
ための変換データが記憶された記憶手段と、 上記変換データをmビツトの指数部とnビツト
の有効数字部とからなる信号としてカメラ本体へ
出力する出力手段と、 を有することを特徴とする交換レンズ。
[Claims] 1. An interchangeable lens that is replaceably attached to a camera body, comprising: an optical system that forms an image of subject light; a focusing lens that moves the imaging position of the subject light by an amount of movement; a storage means that stores conversion data for converting the desired imaging position movement amount into the driving amount; An interchangeable lens comprising: output means for outputting data to a camera body as a signal consisting of an m-bit exponent part and an n-bit significant figure part.
JP13605983A 1983-02-01 1983-07-25 Method and device for automatic focus adjustment Granted JPS606929A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP13605983A JPS606929A (en) 1983-07-25 1983-07-25 Method and device for automatic focus adjustment
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
JP13605983A JPS606929A (en) 1983-07-25 1983-07-25 Method and device for automatic focus adjustment

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
JPS606929A JPS606929A (en) 1985-01-14
JPH0462364B2 true JPH0462364B2 (en) 1992-10-06

Family

ID=15166231

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13605983A Granted JPS606929A (en) 1983-02-01 1983-07-25 Method and device for automatic focus adjustment

Country Status (1)

Country Link
JP (1) JPS606929A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07111499B2 (en) * 1986-11-28 1995-11-29 株式会社シグマ Interchangeable lens for autofocus camera

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54108628A (en) * 1978-02-13 1979-08-25 Minolta Camera Co Ltd Information transmission device of lenses
JPS57165821A (en) * 1981-04-07 1982-10-13 Nippon Kogaku Kk <Nikon> Ttl automatic focusing device of camera

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54108628A (en) * 1978-02-13 1979-08-25 Minolta Camera Co Ltd Information transmission device of lenses
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
JPS606929A (en) 1985-01-14

Similar Documents

Publication Publication Date Title
US5142318A (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
US4477167A (en) Protective device for automatic focusing camera
US4537487A (en) Automatic focus control system with backlash correcting arrangement
JPH0559411B2 (en)
US4671640A (en) Automatic focus control camera
JP2933354B2 (en) Camera system
JPH04190220A (en) Camera system
JPH04102835A (en) Camera system
JP2971913B2 (en) Camera system
JPH0558163B2 (en)
JPH0462364B2 (en)
JPH0559412B2 (en)
US5247326A (en) Camera system capable of automatic focus control
JPH0559413B2 (en)
JPH0760210B2 (en) Camera detection device
JPS59204813A (en) Automatic focusing device
JPS6012526A (en) Automatic focus adjusting device
JPH0561622B2 (en)
JPS59182411A (en) Automatic focusing device
JPH0693058B2 (en) Automatic focus adjustment device
JPH0627893B2 (en) Automatic focus adjustment device
JP2501189B2 (en) Automatic focus adjustment device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term