Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0775401B2 - Focus detection device - Google Patents
[go: Go Back, main page]

JPH0775401B2 - Focus detection device - Google Patents

Focus detection device

Info

Publication number
JPH0775401B2
JPH0775401B2 JP62004568A JP456887A JPH0775401B2 JP H0775401 B2 JPH0775401 B2 JP H0775401B2 JP 62004568 A JP62004568 A JP 62004568A JP 456887 A JP456887 A JP 456887A JP H0775401 B2 JPH0775401 B2 JP H0775401B2
Authority
JP
Japan
Prior art keywords
subroutine
lens
focus
flag
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP62004568A
Other languages
Japanese (ja)
Other versions
JPS63173470A (en
Inventor
彰 明石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP62004568A priority Critical patent/JPH0775401B2/en
Priority to GB8800055A priority patent/GB2200010B/en
Priority to DE3800530A priority patent/DE3800530A1/en
Publication of JPS63173470A publication Critical patent/JPS63173470A/en
Priority to US07/399,404 priority patent/US4952963A/en
Publication of JPH0775401B2 publication Critical patent/JPH0775401B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals
    • G02B7/34Systems for automatic generation of focusing signals using different areas in a pupil plane

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Automatic Focus Adjustment (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はカメラ等の焦点検出装置に関するものである。The present invention relates to a focus detection device such as a camera.

〔従来技術の説明〕[Description of Prior Art]

従来、カメラの焦点検出装置の一つのタイプとして、撮
影レンズの射出瞳を分割し、各瞳領域を通過した光束が
形成する複数の像の、相対位置変位を観測することによ
って撮影レンズの焦点状態を検出する方法が知られてい
る。
Conventionally, as one type of focus detection device for a camera, the focus state of the shooting lens is divided by observing the relative position displacement of a plurality of images formed by the light flux that has passed through each pupil region by dividing the exit pupil of the shooting lens. There are known methods for detecting.

具体的には、焦点検出用の光学系によって、撮影レンズ
の射出瞳を2つに分割し、その分割された2領域を通過
した各光束は蓄積型の光電変換素子列(例えば、CCDセ
ンサ列)上に像を形成する。そして、そのセンサ出力信
号をA/D変換した後、全部あるいは一部の範囲の信号を
抽出して処理を施すことによって、2像の相対位置変位
を知ることが出来る。
Specifically, the optical system for focus detection divides the exit pupil of the photographing lens into two, and each light flux that has passed through the two divided regions is a photoelectric conversion element array (for example, CCD sensor array) of the accumulation type. ) Form an image on top. Then, after the sensor output signal is A / D converted, the signals in the entire range or a part of the range are extracted and processed, whereby the relative position displacement of the two images can be known.

このとき、蓄積型のセンサを用いているので、被写体の
輝度に応じて、蓄積時間を適切に設定しなければならな
い。
At this time, since the accumulation type sensor is used, the accumulation time must be appropriately set according to the brightness of the subject.

適切な蓄積時間に制御することは、いわばセンサの利得
を調整することと同義であることから、「AGC(Auto G
ain Control:自動利得制御)」と呼ばれることが多
い。
Controlling to an appropriate storage time is synonymous with adjusting the gain of the sensor, so the “AGC (Auto G
ain Control: Automatic gain control).

このAGCが正しく働かないと、出力信号が小さ過ぎた
り、あるいは飽和してしまい、正確な焦点検出が行われ
なくなってしまう。
If this AGC does not work correctly, the output signal will be too small or saturated, and accurate focus detection will not be performed.

そこで、通常はセンサ列の特定の領域の光電変換出力そ
のものをAGC用として取り出した出力、あるいはセンサ
列に平行してかつ近傍に設けられたAGC用の測光センサ
の出力が所定レベルに達することで蓄積を終了させる、
といった方法がとられている。
Therefore, usually, the photoelectric conversion output itself of a specific area of the sensor row is taken out for AGC, or the output of the photometric sensor for AGC provided in parallel with and near the sensor row reaches a predetermined level. End the accumulation,
Such a method is taken.

しかしながら、これまでの方法ではAGCの対象となるセ
ンサ列上の領域は固定されており、特に焦点検出処理の
対象となるセンサ出力範囲が可変となる焦点検出方法で
は、同範囲がセンサ上のAGC領域と整合しない場合、同
範囲にとっては誤ったAGCとなる欠点があった。
However, in the conventional methods, the area on the sensor array that is the target of AGC is fixed, and especially in the focus detection method that the sensor output range that is the target of focus detection processing is variable, the same range is on the sensor. If it does not match the region, there is a drawback that the AGC is incorrect for the same range.

〔発明の目的〕[Object of the Invention]

本発明は、上記した問題点の解消を目的とし、その要旨
は、上記センサ列のAGC領域を複数用意し、焦点検出処
理の対象となるセンサ出力の範囲が変った時には、それ
に最適なセンサのAGC領域を設定することによって、常
に正しい焦点検出を可能とするものである。
The present invention aims to solve the above problems, the gist thereof is to prepare a plurality of AGC regions of the sensor array, and when the range of the sensor output that is the target of the focus detection process changes, the optimum sensor By setting the AGC area, correct focus detection is always possible.

〔実施例〕〔Example〕

先ず初めに、本発明における焦点検出原理を第1図を用
いて説明する。焦点検出されるべき撮影レンズLNSと光
軸を同じくしてフイールドレンズFLDが配置される。そ
の後方の光軸に関して対称な位置に2個の2次結像レン
ズFCLA,FCLBが配置される。さらにその後方にセンサ列S
AA,SABが配置される。2次結像レンズFCLA,FCLBの近傍
には絞りDIA,DIBが設けられる。フイールドレンズFLDは
撮影レンズLNSの射出瞳を2個の2次結像レンズFCLA,FC
LBの瞳面にほぼ結像する。その結果、2次結像レンズFC
LA,FCLBにそれぞれ入射する光線束は撮影レンズLNSの射
出瞳面上において各2次結像レンズFCLA,FCLBに対応す
る互いに重なり合うことのない等面積の領域から射出さ
れたものとなる。フイールドレンズFLDの近傍に形成さ
れた空中像が2次結像レンズFCLA,FCLBによりセンサ列S
AA,SABの面上に再結像されると、光軸方向の空中像位置
の変位に基づいて、センサ列SAA,SAB上の2像はその位
置を変えることになる。従って、センサ列上の2像の相
対位置の変位(ずれ)量を検出すれば、撮影レンズLNS
の焦点状態を知ることができる。
First, the principle of focus detection in the present invention will be described with reference to FIG. A field lens FLD is arranged with the same optical axis as the taking lens LNS whose focus is to be detected. Two secondary imaging lenses FCLA and FCLB are arranged at positions symmetrical with respect to the optical axis behind them. Further behind that is the sensor row S
AA and SAB are placed. Stops DIA and DIB are provided near the secondary imaging lenses FCLA and FCLB. The field lens FLD has two secondary imaging lenses FCLA and FC that are the exit pupils of the taking lens LNS.
It forms an image on the pupil plane of LB. As a result, the secondary imaging lens FC
The ray bundles respectively incident on LA and FCLB are emitted from the areas of the same area that do not overlap each other and correspond to the secondary imaging lenses FCLA and FCLB on the exit pupil plane of the taking lens LNS. The aerial image formed in the vicinity of the field lens FLD is detected by the secondary imaging lenses FCLA and FCLB as the sensor array S.
When re-formed on the surfaces of AA and SAB, the two images on the sensor arrays SAA and SAB change their positions based on the displacement of the aerial image position in the optical axis direction. Therefore, if the amount of displacement (deviation) between the relative positions of the two images on the sensor array is detected, the shooting lens LNS
You can know the focus state of.

第2図にセンサ別SAA,SAB上に形成された2像の光電変
換出力の例を示す。SAAの出力をA(i),SABの出力を
B(i)とする。尚この例ではセンサの画素数を40画素
(i=0,…,39)としている。
FIG. 2 shows an example of photoelectric conversion outputs of two images formed on the sensor-specific SAA and SAB. Let SA (A) output be A (i) and SAB's output be B (i). In this example, the number of pixels of the sensor is 40 pixels (i = 0, ..., 39).

像信号A(i),A(i)から像ずれ量PRを検出する信号
処理方法としては特開昭58−142306号公報,特開昭59−
107313号公報,特開昭60−1015313号公報,あるいは特
願昭61−160824号等が本出願人により提案されている。
As a signal processing method for detecting the image shift amount PR from the image signals A (i) and A (i), there are Japanese Patent Laid-Open Nos. 58-142306 and 59-59.
The present applicant has proposed 107313, Japanese Patent Laid-Open No. 60-1015313, or Japanese Patent Application No. 61-160824.

上記各公報等により開示される方法にて得られた像ずれ
に基づいて撮影レンズの焦点調節を行い、いわゆる合焦
状態における2像の関係を示したかが第3図であり、こ
のとき2像は△なるずれ量を呈している。これは第1図
の2次結像光学系の調整によって生ずる合焦状態での2
つのセンサ列上の光学像の変位量である。本発明は後述
するようにこの△を調整工程で処理装置内の不揮発性メ
モリに記憶させておき、検出された像ずれ量PRから△を
減算した量が、ある所定値以内となったとき合焦と見な
すようにしている。
It is FIG. 3 whether the focus adjustment of the photographing lens is performed based on the image shift obtained by the method disclosed in each of the above publications and the relationship between the two images in a so-called in-focus state is shown. The amount of deviation is Δ. This is 2 in the in-focus state caused by the adjustment of the secondary imaging optical system in FIG.
It is the amount of displacement of the optical image on one sensor row. In the present invention, this Δ is stored in the non-volatile memory in the processing device in the adjusting step as described later, and when the amount obtained by subtracting Δ from the detected image shift amount PR is within a predetermined value, I try to regard it as a rush.

なお第2図,第3図に示す光電変換信号例は、AGC(Aut
o Gain Control)がセンサ列SAAの中央部の範囲で有
効の場合(以下「中央部AGC」と記す)を示している。
即ち、図に示した「AGC範囲」にある画素上に形成され
る光学像の輝度でセンサの蓄積動作を制御して、該範囲
の光電変換信号が飽和しないように制御するものであ
る。第2図,第3図の信号は中央部AGC範囲内に信号の
最大値があるため適正な出力となているが、第4図に示
すように中央部AGC範囲外に信号出力の最大値があると
き、AGC範囲内の出力は適正でも、範囲外の信号は電気
的に飽和してしまい、この像信号を用いて像ずれ量検出
の信号処理を行うと、飽和している部分の影響で誤った
像ずれ量を検出してしまう。そこで、この様な場合には
AGCの範囲をセンサ列全域に拡げること(以下「全域AG
C」と記す)によって、第5図のような適正な光電変換
信号を得ることができる。
Note that the photoelectric conversion signal examples shown in FIGS. 2 and 3 are AGC (Aut
o Gain Control) is effective in the central area of the sensor array SAA (hereinafter referred to as "central area AGC").
That is, the accumulation operation of the sensor is controlled by the brightness of the optical image formed on the pixel in the "AGC range" shown in the figure, and the photoelectric conversion signal in the range is controlled so as not to be saturated. The signals in Fig. 2 and Fig. 3 are proper output because the maximum value of the signal is in the central AGC range, but as shown in Fig. 4, the maximum value of the signal output is outside the central AGC range. If the output is within the AGC range, the signal outside the range is electrically saturated, and if the signal processing for image shift detection is performed using this image signal, the effect of the saturated part Will detect an incorrect image shift amount. So in this case
Expand the AGC range to the entire sensor array
It is possible to obtain an appropriate photoelectric conversion signal as shown in FIG.

上記AGC範囲切換の可能なラインセンサ装置SNSの例を第
6図に示す。
An example of the line sensor device SNS capable of switching the AGC range is shown in FIG.

センサ列SAA,SABは公知のCCDラインセンサであり、これ
は第1図のセンサ列に相当している。φ1はCCD駆
動用のクロツク,SHは所定時間高電位(以下“H"と略記
し、低電位を“L"と略記する)となる事で光電変換素子
に蓄積された電荷をCCD部(電荷転送部)に転送させる
信号、CLRは“H"状態で光電変換素子をクリアするクリ
ア信号である。SSCNTは信号φ12,SH,CLRを受けて光
電変換素子部、CCD部を制御するSNS内部の制御回路であ
る。センサ列SAA,SAB上に形成された光像の光電変換出
力は変換増巾器OAMPを介して、φ1に同期して信号
OSとして時系列的に出力される。
The sensor arrays SAA and SAB are known CCD line sensors, which correspond to the sensor array shown in FIG. φ 1 and φ 2 are the clocks for driving the CCD, and SH is a high potential (hereinafter abbreviated as “H” and a low potential is abbreviated as “L”) for a predetermined time, so that the charge accumulated in the photoelectric conversion element is A signal to be transferred to the CCD unit (charge transfer unit), CLR is a clear signal that clears the photoelectric conversion element in the "H" state. SSCNT is a control circuit inside the SNS that receives signals φ 1 , φ 2 , SH, and CLR and controls the photoelectric conversion element unit and the CCD unit. The photoelectric conversion output of the optical image formed on the sensor array SAA, SAB is transmitted through the conversion amplifier OAMP in synchronization with φ 1 and φ 2.
It is output in time series as the OS.

ST1,ST2,ST3はAGC用の測光素子であり、フオトダイオー
ドから構成され変換増巾器AAMPを介して、信号AGCとし
て出力される。センサ列SAA上に形成される光像はST1,S
T2,ST3上にも形成され、従ってSAA上と同一の光像がAGC
制御に利用されることになる。MOS1,MOS2は測光素子ST
1,ST3の出力のスイツチング用のMOSトランジスタであ
り、信号CAGCが“H"のとき導通し、信号SAGCは測光素子
ST1,ST2,ST3各出力の加算されたものとなる。信号CAGC
が“L"のときMOS1,MOS2は非導通となり、信号SAGCは中
央の測光素子ST2の出力のみとなる。以上をまとめると
信号CAGCが“H"のときには、全域AGCとなり“L"のとき
には中央部AGCとなる。
ST 1 , ST 2 , and ST 3 are photometric elements for AGC, and are output as a signal AGC via a conversion amplifier AAMP which is composed of a photodiode. The optical image formed on the sensor array SAA is ST 1 , S
It is also formed on T 2 and ST 3 , so the same optical image as on SAA is AGC.
It will be used for control. MOS1 and MOS2 are photometric elements ST
This is a MOS transistor for switching the output of ST1 and ST3. It is conductive when the signal CAGC is "H", and the signal SAGC is the photometric element.
It is the sum of the outputs of ST1, ST2, and ST3. Signal CAGC
Is low, the MOS1 and MOS2 are non-conductive, and the signal SAGC is only the output of the central photometric element ST2. In summary, when the signal CAGC is "H", it is the entire area AGC, and when it is "L", it is the central portion AGC.

尚、AGC制御の具体的な方法については後述のフローチ
ヤートを用いて詳述する。
A specific method of AGC control will be described in detail using a flow chart described later.

第7図は本発明に関わる自動焦点装置を備えたカメラの
実施例を示す回路図である。
FIG. 7 is a circuit diagram showing an embodiment of a camera provided with an autofocus device according to the present invention.

図においてPRSはカメラの制御装置で、例えば、内部にC
PU(中央処理装置),ROM,RAM,EEPROM(電気的消去可能
プログラマブルROM)A/D変換機能を持つ1チツプのマイ
クロ・コンピユータであり、ROMに格納されたカメラの
シーケンスプログラムに従って、自動露出制御機能、自
動焦点検出機能、フイルムの巻き上げ・巻戻し等のカメ
ラの動作を行っている。EEPROMは不揮発性メモリの一種
で、先に述べた△のデータを始め、各種の調整データが
工程において書き込まれている。
In the figure, PRS is a camera control device, for example, C
PU (Central Processing Unit), ROM, RAM, EEPROM (Electrically Erasable Programmable ROM) A single-chip micro computer with A / D conversion function, automatic exposure control according to the camera sequence program stored in ROM. It operates the camera such as functions, automatic focus detection function, film winding and rewinding. The EEPROM is a type of non-volatile memory, and various adjustment data are written in the process including the above-mentioned data of Δ.

コンピユータPRSは通信信号SO,SI,SCLKを用いて、周辺
回路およびレンズと通信し、各々の回路やレンズの動作
を制御する。
The computer PRS uses the communication signals SO, SI, SCLK to communicate with the peripheral circuits and the lens and control the operation of each circuit and the lens.

SOはコンピユータPRSから出力されるデータ信号、SIは
コンピユータPRSに入力されるデータ信号、SCLKは信号S
O,SIの同期信号である。
SO is the data signal output from the computer PRS, SI is the data signal input to the computer PRS, SCLK is the signal S
This is a synchronization signal for O and SI.

LCMはレンズ通信バツフア回路であり、カメラが動作中
のときはレンズ用電源VLをレンズに与え、コンピユータ
PRSからの信号CLCMが高電位レベルのときは、カメラと
レンズ間通信のバツフアとなる。
The LCM is a lens communication buffer circuit, which supplies the lens power supply VL to the lens when the camera is operating.
When the signal CLCM from PRS is at high potential level, it becomes a buffer for communication between the camera and the lens.

コンピユータPRSがCLCMを“H"にして、SCLKに同期して
所定のデータをSOから送出すると、バツフア回路LCMは
カメラ・レンズ間接点を介して、SCLK,SOの各々のバツ
フア信号LCK,DCLをレンズへ出力する。それと同時にレ
ンズからの信号DLCのバツフア信号をSIに出力し、コン
ピユータPRSはSCLKに同期してSI信号を受けレンズのデ
ータを入力する。
When the computer PRS sets CLCM to “H” and sends the specified data from SO in synchronization with SCLK, the buffer circuit LCM sends the buffer signals LCK and DCL of SCLK and SO through the camera / lens indirect point. Output to the lens. At the same time, the buffer signal of the signal DLC from the lens is output to SI, and the computer PRS receives the SI signal in synchronization with SCLK and inputs the lens data.

SDRは焦点検出用のラインセンサ装置SNSの駆動回路であ
り、信号CSDRが“H"のとき選択されて、SO,SI,SCLKにて
コンピユータPRSから制御される。
SDR is a drive circuit of the line sensor device SNS for focus detection, which is selected when the signal CSDR is "H" and is controlled by the computer PRS by SO, SI and SCLK.

尚信号CKはCCD駆動用クロツクφ1を生成するため
のクロツクであり、信号INTENDは蓄積動作が終了したこ
とをPRSへ知らせる信号である。
The signal CK is a clock for generating the CCD driving clocks φ 1 and φ 2 , and the signal INTEND is a signal for notifying the PRS that the accumulation operation is completed.

ラインセンサ装置SNSの出力信号OSはクロツクφ1
に同期した時系列の第6図にて述べた像信号であり、駆
動回路SDR内の増幅回路で増幅された後、AOS信号として
コンピユータPRSに出力される。コンピユータPRSはAOS
信号をアナログ入力端子から入力し、信号CKに同期し
て、内部のA/D変換機能でA/D変換後RAMの所定のアドレ
スに順次格納する。
The output signals OS of the line sensor device SNS are clocks φ 1 and φ 2
6 is a time-sequential image signal described in FIG. 6, which is amplified by an amplifier circuit in the drive circuit SDR and then output to the computer PRS as an AOS signal. Computer PRS is AOS
A signal is input from the analog input terminal, and in synchronism with the signal CK, it is sequentially stored in a predetermined address of RAM after A / D conversion by an internal A / D conversion function.

同じく装置SNSに出力信号であるSAGCは、装置SNS内のAG
C制御用センサ(第6図のST1〜ST3)の出力であり、回
路SDRに入力されて、装置SNSの蓄積制御に用いられる。
該回路SDRの一連の動作については後述する。
SAGC, which is also an output signal to the device SNS, is an AG in the device SNS.
It is the output of the C control sensor (ST 1 to ST 3 in FIG. 6), is input to the circuit SDR, and is used for storage control of the device SNS.
A series of operations of the circuit SDR will be described later.

SPCは撮影レンズを介して光を受光する露出制御用の測
光センサであり、その出力SSPCはコンピユータPRSのア
ナログ入力端子に入力され、A/D変換後、移動露出制御
(AE)に用いられる。
The SPC is a photometric sensor for exposure control that receives light through the taking lens, and its output SSPC is input to the analog input terminal of the computer PRS and used for moving exposure control (AE) after A / D conversion.

DDRはスイツチ・センスおよび表示用回路であり、信号C
DDRが“H"のとき選択されて、SO,SI,SCLKを用いてコン
ピユータPRSから制御さる。即ち、コンピユータPRSから
送られてくるデータに基づいてカメラの表示を切り替え
たり、不図示のレリーズボタン(スイツチSW1,SW2に連
動)をはじめモード設定ボタン等の各種操作部材に連動
するスイツチ群SWSのオン・オフ状態をコンピユータPRS
に連絡する。
DDR is a circuit for switch sense and display, and signal C
Selected when DDR is “H”, controlled by computer PRS using SO, SI, SCLK. That is, the switches of the cameras are switched based on the data sent from the computer PRS, and the switch group SWS that interlocks with various operation members such as a release button (not shown) (interlocked with the switches SW 1 and SW2) and a mode setting button. The on / off state of the computer PRS
Contact.

MDR1・MDR2はフイルム給送、シヤツターチヤージ用モー
ターMTR1,MTR2の駆動回路で、信号M1F,M1R,M2F,M2Rでモ
ーター正転・逆転を実行する。
MDR1 and MDR2 are drive circuits for the motors MTR1 and MTR2 for the film feeding and shutter charging, and the motors forward and reverse are executed by the signals M1F, M1R, M2F and M2R.

MG1,MG2は各々シヤツター先幕・後幕走行開始用マグネ
ツトで、信号SMG1,SMG2増幅トランジスタTR1,TR2で通電
され、PRSによりシヤツター制御が行われる。
MG1 and MG2 are magnets for starting the first curtain and the second curtain of the shutter, respectively. The signals SMG1 and SMG2 amplify transistors TR1 and TR2 are energized, and the shutter is controlled by PRS.

尚、スイツチ・センス及び表示用回路DDR,モーター駆動
回路MDR1,MDR2シヤター制御は、本発明と直接関わりが
ないので、詳しい説明は省略する。
The switch sense and display circuit DDR, the motor drive circuits MDR1 and MDR2 shutter control are not directly related to the present invention, and thus detailed description thereof will be omitted.

AUTは補助光投光ユニツトであり、不図示の部材にてカ
メラ本体に装着され、カメラからの信号SALに応答して
トランジスタATRがオンし、補助光源用LED,ALEDに通電
させて発光させる。ALNSはALEDの光を被写体に適切に照
射させるためのレンズである。
The AUT is an auxiliary light projecting unit, which is attached to the camera body by a member (not shown), and the transistor ATR is turned on in response to a signal SAL from the camera to energize the auxiliary light source LED and ALED to emit light. ALNS is a lens for appropriately illuminating the subject with ALED light.

同期信号LCKと同期してレンズ内制御回路LPRSに入力さ
れる信号DCLは、カメラからレンズFLNSに対する命令の
データであり、命令に対するレンズの動作が予め決めら
れている。
The signal DCL input to the in-lens control circuit LPRS in synchronization with the synchronization signal LCK is command data from the camera to the lens FLNS, and the lens operation in response to the command is predetermined.

回路LPRSは、所定の手続きに従ってその命令を解析し、
焦点調節や絞り制御の動作や、出力DLCからのレンズの
各種パラメータ(開放Fナンバー、焦点距離、デフオー
カス量対繰り出し量の係数等)の出力を行う。
The circuit LPRS analyzes the instruction according to a predetermined procedure,
It performs focus adjustment and aperture control operations, and outputs various lens parameters (open F-number, focal length, coefficient of differential focus amount vs. extension amount, etc.) from the output DLC.

実施例では、全体繰り出しの単レンズの例を示してお
り、カメラから焦点調節の命令が送られた場合には、同
時に送られてくる駆動量・方向に従って、焦点調節用モ
ーターLMTRを信号LMF,LMRによって駆動して、光学系を
光軸方向移動させて焦点調節を行う。光学系の移動量は
エンコーダ回路ENCのパルス信号SENCでモニターして、
所定の移動が完了した時点で、信号LMF,LMRを“L"にし
てモーターLMTRを制御する。
In the embodiment, an example of a single lens for the entire extension is shown, and when a command for focus adjustment is sent from the camera, the focus adjustment motor LMTR outputs a signal LMF, according to the drive amount and direction sent at the same time. Driven by the LMR, the optical system is moved along the optical axis to adjust the focus. The moving amount of the optical system is monitored by the pulse signal SENC of the encoder circuit ENC,
When the predetermined movement is completed, the signals LMF and LMR are set to "L" to control the motor LMTR.

カメラから絞り制御の命令が送られた場合には、同時に
送られてくる絞り段数に従って、絞り駆動用としては公
知のステツピング・モーターDMTRを駆動する。尚、ステ
ツピング・モーターはオープン制御が可能なため、動作
をモニターするためのエンコーダを必要としない。
When an aperture control command is sent from the camera, a stepping motor DMTR known for driving the aperture is driven in accordance with the number of aperture steps sent at the same time. Since the stepping motor can be open-controlled, an encoder for monitoring the operation is not required.

上記構成によるカメラの動作について第9図のフローに
従って説明する。
The operation of the camera having the above configuration will be described according to the flow of FIG.

不図示の電源スイツチが操作されると、マイクロコンピ
ユータPRSへの給電が開始され、PRSはROMに格納された
シーケンスプログラムの実行を開始する。
When a power switch (not shown) is operated, power supply to the microcomputer PRS is started, and the PRS starts executing the sequence program stored in the ROM.

第9図(a)は上記プログラムの全体の流れを表わすフ
ローチヤートである。
FIG. 9 (a) is a flow chart showing the overall flow of the above program.

上記操作にてプログラムの実行が開始されると、ステツ
プ(002)においてレリーズボタンの第1ストロークに
てオンとなるスイツチSW1の状態検知がなされ、スイツ
チSW1がオフのときには、ステツプ(003)でPRS内のRAM
に設定されている制御用のフラグが全てクリアされる。
尚、このスイツチSW1の検出はコンピユータPRSから信号
CCDRをHとなし回路DDRを選択し、スイツチSW1の検知命
令としてのSO信号をDDRに伝えることにより、スイツチS
W1の状態検知をDDRにて行い、その結果をSI信号としてP
RSに伝えることにて行う。上記ステツプ(002),(00
3)はスイツチSW1がオンとなるか、あるいは電源スイツ
チがオフとなるまでくり返し実行され、SW1がオンとな
ることによってステツプ(004)へ移行する。
When the execution of the program by the operation is started, the state detection of the switch SW 1 which is turned on by the first stroke of the release button in step (002) is made, when the switch SW 1 is turned off, step (003) In PRS RAM
All the control flags set in are cleared.
In addition, the detection of this switch SW 1 is a signal from the computer PRS.
CCDR is set to H and no circuit DDR is selected, and the SO signal as a detection command of switch SW 1 is transmitted to DDR, so that switch S
The state of W 1 is detected by DDR, and the result is used as SI signal for P
Do this by telling RS. Above steps (002), (00
3) is repeatedly executed until the switch SW 1 is turned on or the power switch is turned off. When SW 1 is turned on, the process proceeds to step (004).

ステツプ(004)は「AE制御」のサブルチーンを意味し
ている。この「AE制御」サブルーチンでは測光演算処
理、露光制御ならびに露光後のシヤツタチヤージ、フイ
ルム巻上げ等の一連のカメラ動作制御が行われる。
Step (004) means "AE controlled" saburtine. In this "AE control" subroutine, a series of camera operation controls such as photometric calculation processing, exposure control, and post-exposure shutter charge and film winding are performed.

なお、「AE制御」サブルーチンは本発明とは直接関わり
がないので詳細な説明は省略するが、このサブルーチン
の機能の概要は次の通りである。
The "AE control" subroutine is not directly related to the present invention, so a detailed description thereof will be omitted, but the outline of the function of this subroutine is as follows.

SW1がオン中はこの「AE制御」サブルーチンが実行さ
れ、その度にカメラのモード設定や測光および露光制御
演算,表示が行われる。不図示のレリーズボタンの第2
ストロークでスイツチSW2がオンになると、マイクロコ
ンピユータPRSの持つ割り込み処理機能によってレリー
ズ動作が開始され、上記露光制御演算で求められた露光
量に基づいて絞りあるいはシヤツタ秒時の制御を行い、
露光終了後にはシヤツタ・チヤージおよびフイルム給送
動作を行うことによってフイルム1コマの撮影が実行す
る。
This "AE control" subroutine is executed while SW 1 is on, and each time the camera mode setting, photometry and exposure control calculation, and display are performed. Second release button (not shown)
When the switch SW 2 is turned on by the stroke, the release operation is started by the interrupt processing function of the microcomputer PRS, and the aperture or shutter time is controlled based on the exposure amount obtained by the exposure control calculation above.
After the exposure is completed, the shutter / charge and the film feeding operation are performed so that one frame of the film is photographed.

さて、ステツプ(004)にて「AE制御」が終了すると、
ステツプ(005)の「AF制御」サブルーチンが実行され
る。
Now, when the "AE control" is completed at step (004),
The "AF control" subroutine of step (005) is executed.

第9図(b)に「AF制御」サブルーチンのフローチヤー
トを示す。
FIG. 9B shows a flow chart of the "AF control" subroutine.

先づステツプ(102)でフラグPRMVの状態を検知する。P
RMVは後で述べるようにレンズ制御に関わるフラグであ
るが、前述したようにSW1オフ中はステツプ(003)にて
総てのフラグがクリアされているので、SW1オンから初
めてステツプ(005)の「AF制御」サブルーチンがコー
ルされたときには、フラグPRMVも0であるのでステツプ
(106)へ移行する。
First, in step (102), the state of the flag PRMV is detected. P
RMV is a flag related to the lens control as described later, since all the flags at SW 1 off in the step (003) as described above is cleared, SW 1 on the first time from the step (005 When the "AF control" subroutine in (4) is called, the flag PRMV is also 0, so the routine proceeds to step (106).

ステツプ(106)ではフラグAUXJFの状態を検知する。AU
XJFは補助光制御に関わるフラグであり、前述したよう
にフラグAUXJFもφであるからステツプ(108)へ移行す
る。
At step (106), the state of the flag AUXJF is detected. AU
XJF is a flag related to auxiliary light control, and as described above, the flag AUXJF is also φ, so the process proceeds to step (108).

ステツプ(108)は「像信号入力」のサブルーチンであ
り、このサブルーチンを実行することで、マイクロコン
ピユータPRSのRAM上の所定アドレスにセンサ装置SNSか
らの像信号のA/D変換信号が格納される。
Step (108) is a subroutine of "image signal input", and by executing this subroutine, the A / D conversion signal of the image signal from the sensor device SNS is stored at a predetermined address on the RAM of the microcomputer PRS. .

「像信号入力」サブルーチンについては第9図(c)に
フローチヤートを示しており、詳細については後で述べ
る。
The "image signal input" subroutine is shown in the flowchart of FIG. 9 (c), and the details will be described later.

ステツプ(111)ではフラグAUXMODの状態を検知する。
フラグAUXMODは補助光モードであることを表わすフラグ
である。補助光に関する制御は後で述べる。
At step (111), the state of the flag AUXMOD is detected.
The flag AUXMOD is a flag indicating that it is in the auxiliary light mode. The control regarding the auxiliary light will be described later.

前述したようにフラグAUXMODも0であるからステツプ
(112)に移行する。ステツプ(112)ではフラグLLFLG
の状態検知を行う。LLFLGはステツプ(108)の「像信号
入力」サブルーチン内で設定されるフラグで、被写体輝
度が低い場合には1セツトされる。ここでは被写体輝度
が充分あるもの(LLFLGは0)として説明を進める。フ
ラグLLFLGは0であるからステツプ(113)に移行し、被
写体輝度が充分あるということから補助光モードフラグ
AUXMODをクリアする。
As described above, since the flag AUXMOD is also 0, the process proceeds to step (112). Flag LLFLG in step (112)
The state of is detected. LLFLG is a flag set in the "image signal input" subroutine of step (108), and is set by 1 when the subject brightness is low. Here, the description will proceed assuming that the subject brightness is sufficient (LLFLG is 0). Since the flag LLFLG is 0, the process shifts to step (113), and since the subject brightness is sufficient, the auxiliary light mode flag is set.
Clear AUXMOD.

次にステツプ(114)において「焦点検出」サブルーチ
ンを実行する。
Next, in step (114), the "focus detection" subroutine is executed.

このサブルーチンのフローチヤートは第9図(e)に示
しているが、このサブルーチン内では、RAMに格納され
ている像信号データから撮影レンズの焦点を検出し、合
焦状態ならば合焦フラグJFを1にし、被写体が低コント
ラストのために焦点検出が不可能であったならば焦点検
出不能をフラグAFNGを1にし、両者の内のいずれかの状
態の場合にはレンズ駆動を禁止するためのレンズ駆動禁
止フラグLMVDIを1にセツトしてリターンする。また、
コントラストが高く合焦でない場合にはデフオーカス量
を求める。なお、この時はフラグLMVDIは0のまま保持
される。
The flow chart of this subroutine is shown in FIG. 9 (e). In this subroutine, the focus of the taking lens is detected from the image signal data stored in the RAM, and if it is in focus, the focus flag JF Is set to 1, and if focus detection is impossible due to the low contrast of the object, the flag AFNG is set to 1 indicating that focus detection is impossible, and in any of the two cases, the lens drive is prohibited. Set the lens drive prohibition flag LMVDI to 1 and return. Also,
If the contrast is high and the object is out of focus, the defocus amount is calculated. At this time, the flag LMVDI is held at 0.

次のステツプ(115)では合焦または焦点検出不能を表
示するための「表示」サブルーチンを実行する。これは
表示回路DDRに所定のデータを通信して表示装置DSPに表
示せしめるわけであるが、この動作は本発明と直接関わ
りがないので、これ以上の説明は省略する。
In the next step (115), a "display" subroutine for displaying the focus or the focus detection inability is executed. This is to transmit predetermined data to the display circuit DDR to display it on the display device DSP, but since this operation is not directly related to the present invention, further description will be omitted.

さて次のステツプ(116)ではフラグLMVDIの状態を検知
する。先に述べたように、レンズ駆動が必要ない場合に
はLMVDIが1にセツトされるので、ステツプ(116)にお
いてフラグLMVDが1ならば、ステツプ(117)で「AF制
御」サブルーチンをリターンする。LMVDIが0ならばス
テツプ(118)に移行してレンズ駆動サブルーチン「レ
ンズ駆動」を実行する。このサブルーチンについて後で
述べる。
In the next step (116), the state of the flag LMVDI is detected. As described above, since LMVDI is set to 1 when lens driving is not necessary, if the flag LMVD is 1 at step (116), the "AF control" subroutine is returned at step (117). If LMVDI is 0, the process proceeds to step (118) to execute the lens drive subroutine "lens drive". This subroutine will be described later.

「レンズ駆動」サブルーチン(118)が終了すれば、ス
テツプ(119)にてレンズ駆動実行フラグPRMVを1にセ
ツトしたのち、ステツプ(120)で「AF制御」サブルー
チンをリターンする。
When the "lens drive" subroutine (118) is completed, the lens drive execution flag PRMV is set to 1 at step (119), and then the "AF control" subroutine is returned at step (120).

「AF制御」サブルーチンをリターンするとステツプ(00
2)に戻り、スイツチSW1がオンの限り、AE制御とAF制御
サブルーチンが絞り返される。
When the "AF control" subroutine is returned, the step (00
Returning to 2), as long as switch SW 1 is on, the AE control and AF control subroutines are squeezed back.

今、第9図(a)のメイン・フローにおいて再び(2回
目)ステツプ(005)の「AF制御」がコールされたとす
ると、ステツプ(102)でフラグPRMVの状態検知が行わ
れる。
If the "AF control" at step (005) is called again (second time) in the main flow of FIG. 9 (a), the state of the flag PRMV is detected at step (102).

前回の「AF制御」ルーチンでの合焦あるいは焦点検出不
能ならば、フラグPRMVは1にセツトされていないから、
ステツプ(106)以降の上述のフローを再び実行してゆ
く。前回レンズ駆動が行われた場合にはステツプ(11
9)にてPRMVが1にセツトされているから、ステツプ(1
03)へ移行する。
If the focus or focus cannot be detected in the previous "AF control" routine, the flag PRMV has not been set to 1.
The above flow after step (106) is executed again. If the lens was driven last time,
In step 9), PRMV is set to 1, so step (1
Move to 03).

ステツプ(103)ではレンズと通信して、現在のレンズ
の駆動状況を検知し、レンズ側からステツプ(118)で
指示した所定の駆動が終了したことが知らせされればス
テツプ(105)にてフラグPRMVを0にし、ステツプ(10
6)以降のフローを実行してゆく。尚、この判定はエン
コーダENCからレンズ駆動中はモニター信号SENCが送出
されているので、この信号SENCをコンピユータPRSにて
検知することにて行われる。また、レンズ側から未だ駆
動中であることが知らされたならばステツプ(104)に
移行して、「AF制御」サブルーチンをリターンする。
The step (103) communicates with the lens to detect the current driving state of the lens, and if the lens side notifies that the predetermined driving instructed in the step (118) has ended, a flag is set in the step (105). Set PRMV to 0 and set the step (10
6) Execute the subsequent flow. Note that this determination is made by detecting this signal SENC with the computer PRS because the monitor signal SENC is being sent from the encoder ENC during lens driving. If it is informed that the lens is still being driven, the process proceeds to step (104) and the "AF control" subroutine is returned.

従って、「AE制御」サブルーチンではレンズが駆動して
いない状態でのみ新たな焦点検知動作、レンズ制御を行
うことになる。
Therefore, in the "AE control" subroutine, new focus detection operation and lens control are performed only when the lens is not driven.

即ち、通常モードではスイツチSW1がオンの限り、AEとA
F制御サブルーチンが絞り返され、かつAF制御サブルー
チンでは像信号に基づきデフオーカス量検知がなされ低
コントラスト判定がされれば焦点検出不能表示を行い合
焦判定がされれば合焦表示を行い非合焦でデフオーカス
量が求められると、このデフオーカス量分のレンズ駆動
がなされ合焦状態へ移行させることとなる。
That is, in normal mode, as long as switch SW 1 is on, AE and A
If the F control subroutine is squeezed back, and the AF control subroutine detects the defocus amount based on the image signal and a low contrast judgment is made, focus detection cannot be displayed, and if a focus judgment is made, a focus display is made and out of focus. When the differential focus amount is obtained in step S1, the lens is driven by the differential focus amount and the focus state is brought about.

次に補助補助光に関わる動作について説明する。Next, the operation relating to the auxiliary fill light will be described.

上記AF制御サブルーチンにおいて被写体輝度が低い場合
には、ステツプ(108)の「像信号入力」サブルーチン
においてフラグLLFLGが1にセツトされ、ステツプ(11
2)のLLFLG状態検知でステツプ(121)に移行する。
If the subject brightness is low in the AF control subroutine, the flag LLFLG is set to 1 in the "image signal input" subroutine of step (108), and step (11)
When the LLFLG state is detected in 2), the process proceeds to step (121).

ステツプ(121)では不図示の補助光ユニツトAUT装着部
材の状態を検知し、ユニツトAUTが装着されていなけれ
ばステツプ(113)へ移行し、これまで説明してきた通
常と同じ動作を行う。ユニツトが装着されていればステ
ツプ(122)に移行し、補助光モードフラグAUXMODを1
にセツトする。
In step (121), the state of the auxiliary light unit AUT mounting member (not shown) is detected, and if the unit AUT is not mounted, the process proceeds to step (113) to perform the same operation as the normal operation described above. If the unit is installed, the process proceeds to step (122) and the auxiliary light mode flag AUXMOD is set to 1
To set.

次にステツプ(123)でフラグAUXUSEの状態を検知す
る。AUXUSEは実際に補助光投光がなされたときに、(フ
ラグAUXMODが1にセツトされた状態で)ステツプ(10
8)の「像信号入力」サブルーチンが実行された時にお
いて1にセツトされるフラグである。いま説明している
状況では初めて補助光モードになったわけであるから、
それ以前には補助光投光がなされておらずステツプ(12
4)で一旦「AF制御」をリターンする。すなわち、この
場合ステツプ(108)で入力した像信号データは焦点検
出に用いずに破棄し、次の「AF制御」において補助光投
光状態で像信号を入力し、これを焦点検出に使用するこ
ととなる。
Next, at step (123), the state of the flag AUXUSE is detected. AUXUSE is a step (10 with flag AUXMOD set to 1) when the auxiliary light is actually emitted.
This is a flag which is set to 1 when the "image signal input" subroutine of 8) is executed. In the situation I'm explaining now
Prior to that, the auxiliary light was not projected and the step (12
Return to "AF control" once in 4). That is, in this case, the image signal data input in step (108) is discarded without being used for focus detection, the image signal is input in the auxiliary light projection state in the next "AF control", and this is used for focus detection. It will be.

さて、ステツプ(122)にて初めてAUXMODが1にセツト
された状態で、「AF制御」がリターンしての後上記の如
くして再び「AF制御」サブルーチンがコールされると、
ステツプ(108)の「像信号入力」サブルーチンでは補
助光投光状態で像信号を入力し、ステツプ(111)での
補助光モードフラグAUXMODの状態検知でステツプ(12
1)に移行する。この間に補助光ユニツトAUTがはずされ
ていなければステツプ(122)へ移行する。はずされて
いればステツプ(113)へ移行して、補助光モードフラ
グAUXMODを0にし、補助光モードを解除し、通常のAF制
御に戻る。
Now, when AUXMOD is set to 1 for the first time at step (122) and the "AF control" returns and the "AF control" subroutine is called again as described above,
In the "image signal input" subroutine of step (108), the image signal is input in the auxiliary light projection state, and in step (111), the state of the auxiliary light mode flag AUXMOD is detected and the step (12
Go to 1). If the auxiliary light unit AUT is not removed during this period, the process proceeds to step (122). If it has been removed, the process proceeds to step (113) to set the auxiliary light mode flag AUXMOD to 0, release the auxiliary light mode, and return to normal AF control.

ステツプ(121),(122)を経てステツプ(123)では
補助光使用フラグAUXUSEの状態検知を行う。既にステツ
プ(108)において補助光投光状態で「像信号入力」サ
ブルーチンを実行しておりAUXUSEは1にセツトされてい
るからステツプ(114)へ移行し、「焦点検出」サブル
ーチンを実行する。以降は通常のAF制御と同様である。
The state of the auxiliary light use flag AUXUSE is detected in step (123) through steps (121) and (122). At step (108), the "image signal input" subroutine has already been executed in the auxiliary light projecting state, and since AUXUSE has been set to 1, the process proceeds to step (114) to execute the "focus detection" subroutine. After that, it is the same as the normal AF control.

上述したように低輝度の場合であって補助光ユニツトが
装着された時にのみ補助光モードとなり、補助光発光下
での検知像信号に基づき焦点調節動作と行うわけである
が、補助光投光状態で合焦した場合、ステツプ(114)
の「焦点検出」サブルーチン内で補助光合焦フラグAUXJ
Fが1にセツトされ、この場合「AF制御」のフローにお
いては、ステツプ(106)でAUXJFの状態が検知されてス
テツプ(107)へ移行したのち「AF制御」サブルーチン
をリターンする。即ち補助光投光状態で合焦した場合に
は、スイツチSW1をオフするまでは再び焦点調節動作及
びレンズ駆動は行わないようになる。
As described above, in the case of low brightness, the auxiliary light mode is set only when the auxiliary light unit is attached, and the focus adjustment operation is performed based on the detected image signal under the auxiliary light emission. If in focus, step (114)
Auxiliary light focusing flag AUXJ in the "focus detection" subroutine of
F is set to 1. In this case, in the "AF control" flow, the state of AUXJF is detected in step (106), and the process proceeds to step (107), after which the "AF control" subroutine is returned. That is, when the focus is achieved in the auxiliary light projection state, the focus adjustment operation and the lens drive are not performed again until the switch SW 1 is turned off.

第9図(c)に「像信号入力」サブルーチンのフローチ
ヤートを示す。
FIG. 9C shows a flow chart of the "image signal input" subroutine.

ステツプ(202)でフラグAGCFLGの状態検知を行う。AGC
FLGはセンサ列上のAGC範囲を制御するフラグであり、ス
イツチSW1がオフ中はクリアされている。SW1オン中のセ
ツト,クリアは「焦点検出」サブルーチン内においてな
される。フラグAGCFLGが0ならばステツプ(203)へ移
行して、マイクロコンピユータPRSの出力CAGC端子を
“L"にし、1ならばステツプ(204)へ移行してCAGC端
子を“H"にする。即ち、フラグAGCFLGが0の場合にはセ
ンサは中央部AGCとなり、1の場合には全域AGCとなる。
In step (202), the state of the flag AGCFLG is detected. AGC
FLG is a flag that controls the AGC range on the sensor array and is cleared while switch SW 1 is off. SW 1 on in excisional clear is done in the "focus detection" subroutine. If the flag AGCFLG is 0, the operation proceeds to step (203), the output CAGC terminal of the microcomputer PRS is "L", and if the flag AGCFLG is 1, the operation proceeds to step (204) and the CAGC terminal is "H". That is, when the flag AGCFLG is 0, the sensor is the central portion AGC, and when it is 1, the sensor is the entire area AGC.

よって、初回の「AF制御」サブルーチンでは中央部AGC
となる。
Therefore, in the first "AF control" subroutine, the central AGC
Becomes

次のステツプ(205)でフラグAUXMODの状態を検知し、
1の場合(補助光モード)にはステツプ(206)におい
て、マイクロコンピユータPRSの出力SAL端子を“H"に
し、補助光を発光せしめ、ステツプ(207)で補助光使
用フラグAUXUSEを1にセツトする。AUXMODが0の場合
(通常光モード)にはステツプ(205)から(208)に移
行し、補助光を投光する事はない。
In the next step (205), the state of the flag AUXMOD is detected,
In the case of 1 (auxiliary light mode), in step (206), the output SAL terminal of the micro computer PRS is set to "H" to emit the auxiliary light, and the auxiliary light use flag AUXUSE is set to 1 in step (207). . When AUXMOD is 0 (normal light mode), the process shifts from step (205) to (208) and the auxiliary light is not projected.

ステツプ(208)でセンサ装置SNSに光像の蓄積を開始さ
せる。具体的にはマイクロコンピユータPRSがCSDRをH
となし、センサ駆動回路SDRにSO信号として「蓄積開始
コマンド」を送出し、回路SDRはこのコマンドを受けて
センサ装置SNSの光電変換素子部のクリア信号CLRを“L"
にして電荷の蓄積を開始させる。
In step (208), the sensor device SNS is caused to start accumulating an optical image. Specifically, the micro computer PRS sets CSDR to H
In response, the sensor drive circuit SDR sends an "accumulation start command" as an SO signal, and the circuit SDR receives this command and sets the clear signal CLR of the photoelectric conversion element section of the sensor device SNS to "L".
Then, charge accumulation is started.

ステツプ(209)では、RAM上に設定されている蓄積時間
カウンタINTCNTを0に初期化する。ステツプ(210)で
は、1ミリ秒計時タイマをリセツトしリセツト状態から
計時を開始させる。なお、この1ミリ秒計時タイマはマ
イクロコンピユータPRSが有するタイマ機能を利用して
いる。
In step (209), the accumulation time counter INTCNT set in the RAM is initialized to 0. In step (210), the 1-millisecond clock timer is reset and the clock is started from the reset state. This 1 millisecond clock timer uses the timer function of the microcomputer PRS.

ステツプ(211)ではPRSの入力INTEND端子の状態を検知
し、蓄積が終了したか否かを調べる。センサ駆動回路SD
Rは蓄積開始と同時に信号INTENDを“L"にし、SNSからの
AGC信号SAGCをモニタし、SAGCが所定レベルに達する
と、信号INTENDを“H"にし、同時に電荷転送信号SHを所
定時間“H"にして、光電変換素子部の電荷をCCD部に転
送させる構造を有している。
In step (211), the state of the input INTEND pin of the PRS is detected and it is checked whether or not the accumulation is completed. Sensor drive circuit SD
R sets the signal INTEND to “L” at the same time as the accumulation starts,
A structure in which the AGC signal SAGC is monitored, and when SAGC reaches a predetermined level, the signal INTEND is set to "H" and at the same time the charge transfer signal SH is set to "H" for a predetermined time to transfer the charge of the photoelectric conversion element section to the CCD section. have.

ステツプ(211)でコンピユータPRSがINTEND端子を検知
し、信号INTENDが“H"ならば蓄積が終了したという事で
ステツプ(216)へ移行し、“L"ならば未だ蓄積が終了
していないという事でステツプ(212)へ移行する。蓄
積していない場合ステツプ(212)で先にリセツトした
1ミリ秒タイマが1ミリ秒を計時したかどうか調べる。
1ミリ秒経過していなければステツプ(211)へ移行
し、蓄積終了或いは1ミリ秒経過を持つ。蓄積終了前に
1ミリ秒経過するとステツプ(213)へ移行する。ステ
ツプ(213)で蓄積時間カウンタINTCNTを1つカウント
アツプし、ステツプ(214)へ進む。ステツプ(214)で
はカウンタINTCNTと所定定数MAXINTを比較しているが、
MAXINTは1ミリ秒単位で表わされる最長蓄積時間であ
り、INTCNTがMAXINT未満ならばステツプ(210)へ戻
り、再び蓄積終了待ちとなる。INTCNTがMAXINTに一致す
るとステツプ(215)へ移行し、強制的に蓄積終了させ
る。強制蓄積終了はマイクロコンピユータPRSからセン
サ駆動回路SDRへ上述の同様にしてSO信号として「蓄積
終了コマンド」を送出することで実行される。SDRはPRS
から「蓄積終了コマンド」が送られると、電荷転送信号
SHを所定時間“H"にして光電変換部の電荷をCCD部へ転
送させる。ステツプ(216)までのフローでセンサの蓄
積は終了することになる。
In step (211), the computer PRS detects the INTEND pin, and if the signal INTEND is "H", it means that the accumulation has ended, so the process moves to step (216), and if it is "L", it means that the accumulation has not ended yet. It moves to step (212). If not accumulated, it is checked in step (212) whether the previously reset 1 millisecond timer has clocked 1 millisecond.
If 1 millisecond has not elapsed, the process proceeds to step (211), and the accumulation ends or 1 millisecond has elapsed. If 1 millisecond elapses before the end of accumulation, the process proceeds to step (213). At step (213), the accumulation time counter INTCNT is counted up by 1, and the process proceeds to step (214). At step (214), the counter INTCNT is compared with the predetermined constant MAXINT.
MAXINT is the longest accumulation time expressed in units of 1 millisecond. If INTCNT is less than MAXINT, the process returns to step (210) and waits again for accumulation. When INTCNT matches MAXINT, the process proceeds to step (215) to forcibly end the accumulation. The forced accumulation end is executed by sending the "accumulation end command" as the SO signal from the microcomputer PRS to the sensor drive circuit SDR in the same manner as described above. SDR is PRS
When the "storage end command" is sent from, the charge transfer signal
The SH is set to "H" for a predetermined time to transfer the charges of the photoelectric conversion unit to the CCD unit. The accumulation of the sensor is completed by the flow up to step (216).

ステツプ(216)ではPRSの出力SAL端子を“L"にし、ス
テツプ(206)でSAL端子が“H"になっていれば、補助光
が発光しているままなので、“L"にすることで発光が停
止する。即ち補助光はセンサの蓄積中のみ発光すること
になる。
In step (216), set the PRS output SAL terminal to "L", and if the SAL terminal is in "H" in step (206), the auxiliary light is still emitting, so set it to "L". The light emission stops. That is, the auxiliary light is emitted only while the sensor is accumulating.

ステツプ(217)では蓄積時間カウンタINTCNTと所定の
定数AUXTINTを比較する。定数AUXINTは蓄積時間に対応
して表現される低輝度蓄積時間であり、INTCNTがAUXINT
より大きいときには、ステツプ(219)へ移行して低輝
度フラグLLFLGを1にセツトし、小さい時にはステツプ
(218)へ移行してLLFLGをクリアする。即ち、蓄積時間
が所定時間より長いときには低輝度であると判断するわ
けである。
In step (217), the accumulation time counter INTCNT is compared with a predetermined constant AUXTINT. The constant AUXINT is the low-intensity storage time expressed corresponding to the storage time, and INTCNT is AUXINT.
If it is larger, the process proceeds to step (219) to set the low brightness flag LLFLG to 1, and if it is smaller, the process proceeds to step (218) to clear the LLFLG. That is, when the accumulation time is longer than the predetermined time, it is determined that the brightness is low.

ステツプ(220)ではセンサ装置SNSの像信号OSをセンサ
駆動回路SDRで増巾した信号AOSのA/D変換およびそのデ
イジタル信号のRAM格納を行う。より詳しく述べるなら
ば、回路SDRはコンピユータPRSからのクロツクCKに同期
してCCD駆動用クロツクφ1を生成して装置SNS内部
の制御回路SSCNTへ与え、SNSはφ1によってCCD部
が駆動され、CCD内の電荷は、像信号として出力OSから
時系列的に出力される。この信号はSDR内部の増巾器で
増巾された後、にAOSとしてPRSのアナログ入力端子へ入
力される。コンピユータPRSは自らが出力しているクロ
ツクCKに同期してA/D変換を行い、A/D変換後のデイジタ
ル像信号を順次RAMの所定アドレスに格納してゆく。
In step (220), the signal AOS obtained by amplifying the image signal OS of the sensor device SNS by the sensor drive circuit SDR is subjected to A / D conversion and its digital signal is stored in RAM. More specifically, the circuit SDR generates CCD driving clocks φ 1 and φ 2 in synchronization with the clock CK from the computer PRS, and supplies them to the control circuit SSCNT inside the device SNS. SNS is controlled by φ 1 and φ 2 . The CCD unit is driven, and the charges in the CCD are output in time series from the output OS as image signals. This signal is amplified by the amplifier inside the SDR and then input as AOS to the analog input terminal of the PRS. The computer PRS performs A / D conversion in synchronization with the clock CK output by itself, and sequentially stores the digital image signal after A / D conversion at a predetermined address in RAM.

このようにして像信号の入力を終了するとステツプ(22
1)にて「像信号入力」サブルーチンをリターンする。
When the input of the image signal is completed in this way, the step (22
At 1), the "image signal input" subroutine is returned.

この様に該像信号入力サブルーチンでは像信号の蓄積時
間制御を行い、該蓄積時間が所定時間よりも長い時には
フラグLLFLGに1をセツトし、前述のAF制御サブルーチ
ンにおける補助光モードへの移行を許容し、かつ補助光
モードに入った状態においては補助光投光下での像蓄積
を行わせる。又、フラグAGCFLGのセツト状態に応じて、
中央部AGC又は全域AGCの切換え動作を行わせる。
In this way, the image signal input subroutine controls the accumulation time of the image signal, and when the accumulation time is longer than the predetermined time, the flag LLFLG is set to 1 to allow the shift to the auxiliary light mode in the AF control subroutine. In addition, when the auxiliary light mode is entered, image storage is performed under the auxiliary light projection. Also, depending on the set state of the flag AGCFLG,
The switching operation of the central portion AGC or the whole area AGC is performed.

第9図(d)に「レンズ駆動」サブルーチンのフローチ
ヤートを示す。
FIG. 9 (d) shows a flow chart of the "lens drive" subroutine.

このサブルーチンがコールされると、ステツプ(302)
においてレンズと通信して、2つのデータ「S」,「PT
H」を入力する。「S」は撮影レンズ固有の「デフオー
カス量」対「焦点調節レンズのくり出し量」の係数であ
り、例えば全体くり出しタイプの単レンズの場合には撮
影レンズ全体が焦点調節レンズであるからS=1である
が、ズームレンズの場合にはズーム位置によってSは変
化する。
When this subroutine is called, step (302)
Communicates with the lens in the two data "S", "PT
Enter "H". “S” is a coefficient of the “defocus amount” unique to the taking lens versus the “extending amount of the focus adjusting lens”. For example, in the case of a single lens of the whole extending type, the entire taking lens is the focus adjusting lens, and S = 1. However, in the case of a zoom lens, S changes depending on the zoom position.

「PTH」は焦点調節レンズの移動に連動したエンコーダE
NC1パルス当りの焦点調節レンズのくり出し量である。
尚、エンコーダはレンズの単位移動量に応じて1パルス
出力する形式のパルス板等にて構成されている。
"PTH" is an encoder E linked to the movement of the focusing lens
This is the amount of focusing lens extension per NC pulse.
The encoder is composed of a pulse plate or the like that outputs one pulse according to the unit movement amount of the lens.

従って現在のデフオーカス量DFE及び上記情報S,PTHによ
り、焦点調節レンズのくり出し量エンコーダのパルス数
に換算した量いわゆるレンズ駆動量FPは次式であたえら
れる。
Therefore, based on the current defocus amount DFE and the above information S and PTH, a so-called lens drive amount FP converted into the pulse number of the focusing amount encoder of the focusing lens is given by the following equation.

FD=DEF×S/PTH (1) ステツプ(303)は式(1)をそのまま実行し、後述の
検知デフオーカス量DEFに応じたレンズ駆動量を表わす
エンコーダからのパルス数FPが求められる。
FD = DEF × S / PTH (1) In step (303), the equation (1) is executed as it is, and the pulse number FP from the encoder representing the lens drive amount according to the detected defocus amount DEF described later is obtained.

ステツプ(304)ではステツプ(303)で求められたFPを
レンズに送出して、焦点調節レンズ(全体くり出しタイ
プの単レンズの場合は、撮影レンズ全体)の駆動を命令
し、次のステツプ(305)で「レンズ駆動」サブルーチ
ンをリターンする。
In the step (304), the FP obtained in the step (303) is sent to the lens to instruct the drive of the focus adjustment lens (in the case of a single lens of the whole extension type, the entire photographing lens), and the next step (305 ), The "lens drive" subroutine is returned.

なお、上記データ「S」,「PTH」は回路LPRS内のメモ
リーに入力されており、コンピユータPRSにてCLCMをH
となし、上記データ読み取りコマンドとしてのSO信号を
回路LCMを介して回路LPRSに伝えることにて、上記メモ
リー内のデータ「S」,「PTH」がDLC,SI信号としてコ
ンピユータPRSに入力され該データの読み取りがなされ
る。
The data "S" and "PTH" are input to the memory in the circuit LPRS, and CLCM is set to H by the computer PRS.
By transmitting the SO signal as the data read command to the circuit LPRS via the circuit LCM, the data "S" and "PTH" in the memory are input to the computer PRS as DLC and SI signals. Is read.

また、上記FPも同様に信号SOとして回路LPRSに伝えら
れ、回路LPRSは入力FPに応じて信号LMF,LMRのいずれか
をHとなしモータを上記FPに応じた方向へ回動しレンズ
を合焦方向へ移行させる。また、この際エンコーダSENC
はレンズの移動量に応じた数のパルスを送出し、このパ
ルス数を回路LPRS内部のカウンタにてカウントし、入力
FPと一致した時に信号LMF,LMRをLとなしモータを停止
させることにてレンズを上記FP分駆動するものである。
Similarly, the FP is also transmitted as a signal SO to the circuit LPRS, and the circuit LPRS sets either of the signals LMF and LMR to H in accordance with the input FP and rotates the motor in the direction corresponding to the FP to couple the lens. Move to the focal direction. At this time, the encoder SENC
Sends a number of pulses according to the amount of lens movement, counts the number of pulses with the counter inside the circuit LPRS, and inputs
When it coincides with FP, the signals LMF and LMR are set to L and the motor is stopped to drive the lens by the above FP.

よってレンズ駆動サブルーチンがコールされると前述の
如くレンズを検知デフオーカス量駆動し、合焦位置へ移
行させる。
Therefore, when the lens drive subroutine is called, the lens is driven by the detection differential amount as described above and moved to the in-focus position.

第9図(e)に「合焦検出」サブルーチンのフローチヤ
ートを示す。
FIG. 9 (e) shows a flow chart of the "focus detection" subroutine.

このサブルーチンがAF制御サブルーチン実行中のステツ
プ(114)にてコールされると、ステツプ(402)におい
て上述の動作にてレンズと通信してレンズから2つのデ
ータ「LF」,「MAXDFE」を入力する。「LF」は撮影レン
ズの焦点距離データであり、ズームレンズの場合には当
然のことならが、ズーム位置によってLFは変化する。
「MAXDEF」は最大デフオーカス量と呼ばれるデータであ
り、撮影レンズが無限遠に焦点整合している状態で、そ
のレンズの最至近距離に被写体があるとき、その被写体
を測距した場合のデフオーカス量である。従ってMAXDEF
はそのレンズが装着された場合に生じるデフオーカス量
の最大値と考えることができる。
When this subroutine is called at the step (114) during execution of the AF control subroutine, at step (402) the two data "LF" and "MAXDFE" are input from the lens by communicating with the lens by the above operation. . “LF” is the focal length data of the taking lens, and in the case of a zoom lens, the LF changes depending on the zoom position, which is natural.
"MAXDEF" is data called the maximum defocus amount, and is the defocus amount when the subject is measured at the closest distance of the lens when the shooting lens is in focus at infinity. is there. Therefore MAXDEF
Can be considered as the maximum value of the differential focus amount that occurs when the lens is attached.

これらのデータも回路LPRS内のメモリに入力されてい
る。この最大デフオーカス量の考え方については、本出
願人により特願昭60−272563にて提示している。一般に
望遠系レンズ,ズームレンズではMAXDEFは大きくなるも
のである。
These data are also input to the memory in the circuit LPRS. The idea of the maximum defocusing amount is presented by the applicant in Japanese Patent Application No. 60-272563. Generally, telephoto lenses and zoom lenses have a large MAXDEF.

ステツプ(403)ではフラグAGCFLGを検知し、AGCFLGが
1、すなわち全域AGCならばステツプ(420)へ移行し、
デフオーカス量検出サブルーチン「WPRED」を実行す
る。
At step (403), the flag AGCFLG is detected, and if AGCFLG is 1, that is, if the entire area is AGC, the process proceeds to step (420),
Executes the defocus amount detection subroutine "WPRED".

AGCFLGが0即ち、中央部AGCならばステツプ(404)へ移
行する。スイツチSW1がオンして最初の「AF制御」にお
いってはAGCFLGは0であるから、先ずステツプ(404)
以降について説明する。
If AGCFLG is 0, that is, if it is the central AGC, the process proceeds to step (404). In the first "AF control" when switch SW1 is turned on, AGCFLG is 0, so first step (404)
The following will be described.

ステツプ(404)で焦点距離LFと定数CHLFを比較してい
る。CHLFは所定の焦点距離を表わし、撮影レンズの焦点
距離がCHLF以上ならばステツプ(406)へ移行して、デ
フオーカス量検出サブルーチン「MPRED」を実行し、未
満ならばステツプ(405)へ移行して同サブルーチン「N
PRED」を実行する。
In step (404), the focal length LF and the constant CHLF are compared. CHLF represents a predetermined focal length. If the focal length of the taking lens is CHLF or more, the process proceeds to step (406), the defocus amount detection subroutine "MPRED" is executed, and if less, the process proceeds to step (405). The subroutine "N
Execute "PRED".

「MPRED」,「NPRED」はいずれもデフオーカス量検出サ
ブルーチンであるが、像信号からデフオーカス量を検出
する際に演算対象する画素数が異なり、またそれによっ
て検出し得る最大のデフオーカス量が異なる。第8図に
「WPRED」,「MPRED」,「NPRED」の対応関係を示す。
フアインダ内の、いわゆる測距フレームFFRMに対してセ
ンサ列SAA(SAB)は図のように配置されている。
Both “MPRED” and “NPRED” are defocusing amount detection subroutines, but the number of pixels to be calculated when detecting the defocusing amount from the image signal is different, and the maximum defocusing amount that can be detected is also different. Figure 8 shows the correspondence between "WPRED", "MPRED", and "NPRED".
The sensor array SAA (SAB) is arranged as shown in the figure with respect to the so-called range-finding frame FFRM in the finder.

更に前述した中央部AGCの範囲は測距フレームFFRMにほ
ぼ等しく設定されている。「WPRED」,「MPRED」,「NP
RED」各サブルーチンのそれぞれの演算対象領域(その
領域内の像信号のみ基づいてデフオーカス量を検出す
る)WRGN,MRGN,NRGNは第8図のようになっている。
Further, the range of the central AGC described above is set to be substantially equal to the distance measurement frame FFRM. "WPRED", "MPRED", "NP
RED "Each of the calculation target regions (the defocus amount is detected based only on the image signal in the region) WRGN, MRGN, NRGN are as shown in FIG.

即ち、「WPRED」はセンサ全域を対象とし、「MPRED」は
その内側で中央部AGCの範囲は等しく、「NPRED」はさら
にその内側にある。これらの対応関係から「WPRED」を
実行する際にはセンサの蓄積過程で全域AGCを「MPRE
D」,「NPRED」を実行する際には中央部AGCを選択する
必要があることがわかる。
That is, "WPRED" covers the entire area of the sensor, "MPRED" has the same central AGC range inside, and "NPRED" is further inside. Based on these correspondences, when executing “WPRED”, the whole area AGC is changed to “MPRE” during the sensor accumulation process.
It can be seen that the central AGC must be selected when executing "D" and "NPRED".

第9図(e)に戻って再びフローチヤートの説明を行
う。
Returning to FIG. 9 (e), the flow chart will be described again.

レンズの焦点距離に応じてステツプ(405)で「NPRED」
あるいはステツプ(406)で「NPRED」が実行されたの
ち、ステツプ(407)においてフラグLCFLGの状態を検知
する。LCFLGはデフオーカス量検出サブルーチン「NPRE
D」「MPRED」内で設定される低コントラストフラグで、
検出演算領域内の像信号のコントラストが所定値より低
いときに1にセツトされる。
"NPRED" in step (405) according to the focal length of the lens
Alternatively, after "NPRED" is executed in step (406), the state of the flag LCFLG is detected in step (407). LCFLG is a differential focus detection subroutine "NPRE
Low contrast flag set in "D""MPRED",
Set to 1 when the contrast of the image signal in the detection calculation area is lower than a predetermined value.

ステツプ(407)においてフラグLCFLGが0ならば充分コ
ントラストがあったとして、ステツプ(408)へ移行
し、焦点検出不能フラグAFNGを0にクリアする。続いて
ステツプ(409)において検出したデフオーカス量DEFの
絶対値と所定の定数JFFLDと比較する。JFFLDは合焦と見
なし得るデフオーカス量の上限を表わし、いわゆる合焦
幅である。ステツプ(409)においてデフオーカス量の
絶対値がJFFLD以下ならばステツプ(410)へ移行して合
焦フラグJFとレンズ駆動禁止フラグLMVDIを共に1にセ
ツトし、デフオーカス量の絶対値がJFFLDより大きけれ
ばステツプ(411)へ移行してフラグJF,LMVDIを共にク
リアし、ステツプ(414)で「焦点検出」サブルーチン
とリターンする。合焦状態の場合にはさらにステツプ
(412)へ移行して、補助光モードフラグAUXMODの状態
検出を行う。AUXMODが0、即ち補助光モードでなければ
ステツプ(414)で「焦点検知」サブルーチンをリター
ンする。AUXMODが1、すなわち補助光モードならばステ
ツプ(413)へ移行して、補助光合焦フラグAUXJFを1に
セットして、サブルーチンをリターンする。
If the flag LCFLG is 0 in step (407), it is determined that there is sufficient contrast, and the process proceeds to step (408) to clear the focus detection impossible flag AFNG to 0. Then, the absolute value of the defocus amount DEF detected in step (409) is compared with a predetermined constant JFFLD. JFFLD represents the upper limit of the defocus amount that can be regarded as in-focus, and is a so-called in-focus width. If the absolute value of the differential focus amount is less than JFFLD in step (409), the process proceeds to step (410) and both the focus flag JF and the lens drive prohibition flag LMVDI are set to 1, and if the absolute value of the differential focus amount is larger than JFFLD. At step (411), the flags JF and LMVDI are both cleared, and at step (414) the "focus detection" subroutine is returned. In the case of the in-focus state, the process further shifts to step (412) to detect the state of the auxiliary light mode flag AUXMOD. If AUXMOD is 0, that is, if it is not the auxiliary light mode, the "focus detection" subroutine is returned at step (414). If AUXMOD is 1, that is, if the auxiliary light mode, the process proceeds to step (413) to set the auxiliary light focus flag AUXJF to 1, and the subroutine returns.

以下の焦点検出サブルーチンの動作をまとめると下記の
如くなる。
The operation of the following focus detection subroutine is summarized as follows.

焦点距離が所定値よりも小の時にはNPREDにてデフオー
カスが検出され、又、所定値よりも大の時にはMPREDに
てデフオーカスが検知される。又、NPRED,MPREDルーチ
ンはフラグAGCFLGが0の時なされるので上記像信号入力
サブルーチンにて述べた如く信号CAGCはLとなっており
中央部AGCが選ばれている。従って、この時は中央部AGC
にて制御され、デフオーカス量検知絵素範囲と一致した
範囲の絵素出力にてAGCが行われる。
When the focal length is smaller than a predetermined value, NPRED detects defocusing, and when it is larger than a predetermined value, MPRED detects defocusing. Since the NPRED and MPRED routines are executed when the flag AGCFLG is 0, the signal CAGC is L and the central portion AGC is selected as described in the image signal input subroutine. Therefore, at this time, the central part AGC
The AGC is performed by the picture element output in the range that matches the defocus amount detection picture element range.

上記のデフオーカス量検知結果合焦と判定されればフラ
グJFLMVDIに1がセツトされるので、その後AF制御サブ
ルーチンに戻ると上述の合焦表示がなされる。又、補助
光モードで合焦判定がなされるとフラグAUXJFに1がセ
ツトされ、以後の像信号入力焦点検出並びにレンズ駆動
が禁止される。又、合焦と判定されない時にはフラグLM
VDIが0にセツトされるので焦点検出サブルーチン終了
後レンズ駆動サブルーチンが実行され、上記NPRED又はM
PREDサブルーチンにて求められたデフオーカス量のレン
ズ駆動がなされる。
If it is determined that the defocus amount detection result is in-focus, the flag JFLMVDI is set to 1. Therefore, when returning to the AF control subroutine after that, the in-focus display is performed. When the focus determination is made in the auxiliary light mode, the flag AUXJF is set to 1, and subsequent image signal input focus detection and lens driving are prohibited. Also, if it is not determined to be in focus, the flag LM
Since VDI is set to 0, the lens drive subroutine is executed after the focus detection subroutine ends, and the NPRED or M
The lens is driven by the defocus amount calculated in the PRED subroutine.

また、上記NPRED又はMPREDサブルーチンにて低コントラ
ストであると判定されフラグLCFLGが1にセツトされて
いる時には焦点検出サブルーチン実施中のステツプ(40
7)において、低コントラストフラグLCFLGが1であると
検知され、ステツプ(415)へ移行して、補助光モード
フラグAUXMODの状態を検知する。
Further, when the low contrast is determined by the NPRED or MPRED subroutine and the flag LCFLG is set to 1, the step (40
In 7), it is detected that the low contrast flag LCFLG is 1, and the process proceeds to step (415) to detect the state of the auxiliary light mode flag AUXMOD.

このときAUXMODが1、すなわち補助光モードならばステ
ツプ(419)へ移行しAUFMODが0で補助光モードでなけ
ればステツプ(416)に移行する。ステツプ(416)では
先に述べた最大デフオーカス量MAXDEFと変数MDを比較す
る。変数MDはデフオーカス量検出サブルーチン「MPRE
D」,「NPRED」内で設定される値で、後述するが、各サ
ブルーチン内で検出し得るデフオーカス量の最大値を概
ね表わしている。従ってステツプ(416)においてMAXDE
FとMDを比較するということは、現在装着されている撮
影レンズで生じうるデフオーカス量が各デフオーカス量
検出サブルーチンの検出能力以上であるかどうかを判定
するということである。即ち、MAXDEF≦MDならばその装
着レンズに対して「MPRED」あるいは「NPRED」のデフオ
ーカス検出能力で充分であると考える。
At this time, if AUXMOD is 1, that is, the auxiliary light mode, the operation proceeds to step (419), and if AUFMOD is 0 and is not the auxiliary light mode, the operation proceeds to step (416). At step (416), the maximum defocusing amount MAXDEF described above and the variable MD are compared. The variable MD is the defocus amount detection subroutine "MPRE
The values set in "D" and "NPRED", which will be described later, generally represent the maximum value of the defocus amount that can be detected in each subroutine. Therefore at step (416) MAXDE
Comparing F and MD is to determine whether the defocus amount that can occur in the currently mounted taking lens is equal to or higher than the detection capability of each defocus amount detection subroutine. That is, if MAXDEF ≦ MD, it is considered that the “MPRED” or “NPRED” differential focus detection capability is sufficient for the mounted lens.

従って、ステツプ(416)においてMAXDEF≦MDならばス
テツプ(419)に移行し、焦点検出は不能であるとして
合焦フラグJFを0にクリア、焦点検出不能フラグAFNGを
1にセットし、レンズ駆動禁止フラグLMVDIを1にセッ
トした後、ステツプ(425)で「焦点検出」サブルーチ
ンをリターンする。即ち、この様な場合は測距範囲内で
の十分デフオーカス量検知が不能であって、かつ低コン
トラストであり被写体に対して適正な測距範囲からの信
号が低コントラストであるため、フラグAFNGおよびLMVD
Iに1をセツトしAF制御サブルーチンに戻り焦点検出不
能表示を行わせレンズ駆動を行うことなく、再度AF制御
サブルーチンを実行させる。
Therefore, if MAXDEF ≦ MD in step (416), the process proceeds to step (419), it is determined that focus detection is impossible, the focus flag JF is cleared to 0, the focus detection inability flag AFNG is set to 1, and lens drive is prohibited. After the flag LMVDI is set to 1, the "focus detection" subroutine is returned at step (425). That is, in such a case, it is impossible to sufficiently detect the differential focus amount within the distance measuring range, and the contrast is low, and the signal from the distance measuring range appropriate for the subject has low contrast. LMVD
The I is set to 1, and the process returns to the AF control subroutine to display the focus detection impossible display and to execute the AF control subroutine again without driving the lens.

一方、ステツプ(416)にてMAXDEF>MDと判定された場
合はサブルーチン「NPRED」または「MPRED」の比較的狭
い測距範囲での使用レンズに対するデフオーカス検出能
力の不足時である。よって、この場合には例えばレンズ
か望遠系のレンズの様な場合発生し、もし使用レンズに
対して適正な測距範囲で設定し、焦点検出を行えば低コ
ントラストでなくなる可能性がある。よってこの場合に
はステツプ(417)へ移行し、AGC範囲選択フラグAGCFLG
を1にセツトして、ステツプ(418)で「AF制御」サブ
ルーチンそのものをリターンする。すなわち、上記のよ
うな場合には、合焦あるいは焦点検出不能の判定はせ
ず、次回の「AF制御」サブルーチンでサブルーチン「NP
RED」,「MPRED」の代わりに最初から「WPRED」によっ
てデフオーカス量検出を行なおうとするものである。
On the other hand, when it is determined that MAXDEF> MD in step (416), it is when the differential focus detection capability for the lens used in the relatively narrow distance measuring range of the subroutine "NPRED" or "MPRED" is insufficient. Therefore, in this case, for example, a case of a lens or a telephoto lens occurs, and if the focus detection is performed by setting an appropriate distance measurement range for the lens used, the contrast may not be low. Therefore, in this case, the process proceeds to step (417) and the AGC range selection flag AGCFLG
Is set to 1, and the "AF control" subroutine itself is returned at step (418). That is, in the above case, the focus or focus detection is not determined, and the subroutine "NP control" is executed in the next "AF control" subroutine.
Instead of "RED" and "MPRED", "WPRED" is used from the beginning to detect the amount of defocus.

さて、AGC範囲選択フラグAGCFLGが1にセツトされた状
態で、「AF制御」サブルーチンが再びコールされると、
「焦点検出」サブルーチンの前に実行される「像信号入
力」サブルーチンにおいては、前述したように全域AGC
の状態で蓄積された像信号が入力される。そして、「焦
点検出」サブルーチンがコールされると、ステツプ(40
3)でフラグAGCFLGの状態が検知され、今度はステツプ
(420)に移行し、デフオーカス検出サブルーチン「WPR
ED」が実行される。「WPRED」は「NPRED」あるいは「MP
RED」に比較して、像信号の広い領域を演算対象し、ま
たそれによって検出するデフオーカス量の最大値も大き
くなっている。
Now, when the "AF control" subroutine is called again with the AGC range selection flag AGCFLG set to 1,
In the "image signal input" subroutine executed before the "focus detection" subroutine, as described above, the entire area AGC is used.
In this state, the image signal accumulated is input. Then, when the "focus detection" subroutine is called, the step (40
In 3), the state of the flag AGCFLG is detected, and this time, the process proceeds to step (420), and the differential focus detection subroutine "WPR
ED ”is executed. "WPRED" is "NPRED" or "MP
Compared to "RED", a wide area of the image signal is calculated, and the maximum value of the defocus amount detected by it is also large.

サブルーチン「WPRED」の実行が終了すると、ステツプ
(421)にてフラグAGCFLGをクリアする。これは次回の
「AF制御」では再びサブルーチン「NPRED」あるいは「M
PRED」を実行させるためである。
When the execution of the subroutine "WPRED" is completed, the flag AGCFLG is cleared in step (421). This is because the next "AF control" will again use the subroutine "NPRED" or "M
This is to execute "PRED".

次にステツプ(422)で低コントラストフラグLCFLGの状
態検知を行う。LCFLGはステツプ(420)の「WPRED」内
で誕生されるフラグで、LCFLGが1ならば被写体が低コ
ントラストであるとして、ステツプ(419)へ移行して
焦点検出不能であると判定したのち、ステツプ(425)
で「焦点検出」サブルーチンをリターンする。ステツプ
(422)においてフラグLCFLGが0ならば、ステツプ(42
3)へ移行して検出されたデフオーカス量DEFの絶対値と
定数SDFLDを比較する。SDFLDは合焦近傍と見なし得るデ
フオーカス量の上限を表わしている。
Next, at step (422), the state of the low contrast flag LCFLG is detected. LCFLG is a flag created in "WPRED" of step (420). If LCFLG is 1, it is determined that the subject has low contrast and the process proceeds to step (419) to determine that focus cannot be detected. (425)
Then, the "focus detection" subroutine is returned. If the flag LCFLG is 0 in step (422), step (42
Go to 3) and compare the absolute value of the defocus amount DEF detected and the constant SDFLD. SDFLD represents the upper limit of the defocus amount that can be regarded as the vicinity of focus.

|DEF|>SDFLDならばステツプ(424)に移行し、合焦フ
ラグJF,焦点検出不能フラグAFNG,レンズ駆動禁止フラグ
LMVDIを総てクリアし、ステツプ(426)にて「焦点検
出」サブルーチンをリターンする。ステツプ(423)に
おいて|DEF|>SDFLDでなければ、即ち、合焦近傍範囲以
内ならば、ステツプ(422)でLCFLGが1であった場合と
同様にステツプ(419)に移行して焦点検出が不能であ
るとする。これは、サブルーチン「WPRED」は「NPRE
D」,「MPRED」でデフオーカス検出結果が低コントラス
トであった場合に実行されるものでるから、「WPRED」
のデフオーカス検出結果が合焦近傍範囲内ということ
は、第8図に示した測距フレームFFRM外の被写体のデフ
オーカス量を検出したと考えられる。従ってこのデフオ
ーカス量で合焦判定やレンズ駆動を行うと測距フレーム
外の被写体に合焦してしまうことになり、それを回避す
るために上記したようにサブルーチン「WPRED」にて結
果が合焦近傍範囲内であれば、強制的に焦点検出不能で
あるとするのである。
If | DEF |> SDFLD, move to step (424), focus flag JF, focus detection failure flag AFNG, lens drive prohibition flag
After clearing all LMVDI, the "focus detection" subroutine is returned at step (426). At step (423), if | DEF |> SDFLD is not satisfied, that is, if it is within the in-focus vicinity range, the process shifts to step (419) and focus detection is performed as in the case where LCFLG is 1 at step (422). It is impossible. This is because the subroutine "WPRED" is "NPRE
"WPRED" because it is executed when the differential focus detection result is low contrast in "D" and "MPRED".
The fact that the differential focus detection result is within the in-focus vicinity range is considered to be the detection of the differential focus amount of the subject outside the ranging frame FFRM shown in FIG. Therefore, if the focus determination or lens drive is performed with this defocus amount, the subject outside the range-finding frame will be focused, and in order to avoid it, the result is focused by the subroutine "WPRED" as described above. If it is within the vicinity range, the focus detection is forcibly impossible.

第9図(e)について「焦点検出」サブルーチンの動作
をまとめると、通常はサブルーチン「NPRED」あるいは
「MPRED」(レンズの焦点距離に応じて両者のうち一方
が選択される)にてデフオーカス量の検出を行い、その
結果が低コントラストの場合には、補助光モードでなく
かつ望遠系のレンズが装着されている時に限って次回の
「NF制御」においてサブルーチン「WPRED」で再演算を
行う。また、「NPRED」「MPRED」が実行されるときには
中央部AGCの状態でセンサの蓄積が行われ、「WPRED」が
実行される場合には全域AGCの状態でセンサの蓄積が行
われる。
The operation of the "focus detection" subroutine is summarized with respect to Fig. 9 (e). Normally, the subroutine "NPRED" or "MPRED" (one of the two is selected according to the focal length of the lens) is used to determine the defocus amount. When detection is performed and the result is low contrast, recalculation is performed by the subroutine "WPRED" in the next "NF control" only when the telephoto lens is not mounted in the auxiliary light mode. Further, when “NPRED” and “MPRED” are executed, the sensor is accumulated in the central AGC state, and when “WPRED” is executed, the sensor is accumulated in the entire AGC state.

また、補助光使用時には上記低コントラストが検知され
れば「WPRED」を実行することなく直ちに補助光モード
で上記「MPRED」または「NPRED」による焦点検知がなさ
れる。
Further, when using the auxiliary light, if the low contrast is detected, the focus detection by the "MPRED" or "NPRED" is immediately performed in the auxiliary light mode without executing "WPRED".

すなわち、該焦点検出サブルーチンにおいてはまず、焦
点距離に対応してNPREDまたはMPREDの演算対象領域の選
択がなされ、この時のAGCとしては中央部AGCを選び演算
対象領域とのAGC領域との一致を行わせ、その領域にて
求めた像信号のデフオーカス量検知にて低コントラスト
でない場合には検知デフオーカス量に応じたレンズ駆動
や合焦表示を行わせる。また、低コントラストと判定さ
れた際には、その演算対象領域におけるデフオーカス検
知能力がレンズにおける最大デフオーカス量よりも大、
すなわち十分なるデフオーカス検知能力があり、測距フ
レーム内の対象とする被写体に対する検知デフオーカス
量が適正に被写体に対するデフオーカス量を表わしてい
る場合にのみ焦点検知不能表示等を行わせる。
That is, in the focus detection subroutine, first, the calculation target area of NPRED or MPRED is selected corresponding to the focal length, and the central AGC is selected as the AGC at this time to match the calculation target area with the AGC area. If the low contrast is not detected in the defocus amount detection of the image signal obtained in the area, the lens drive and the focus display according to the detected defocus amount are performed. In addition, when it is determined that the contrast is low, the differential focus detection capability in the calculation target region is larger than the maximum differential focus amount in the lens,
That is, there is sufficient differential focus detection capability, and the focus detection impossible display or the like is performed only when the detected differential focus amount for the target subject in the ranging frame properly represents the differential focus amount for the subject.

又、上記デフオーカス検知能力がレンズの最大デフオー
カス量よりも小、すなわちNPRED,MPREDルーチンのデフ
オーカス検知能力より使用レンズの最大デフオーカス量
が大であり、本来、使用レンズの最大デフオーカス量に
合ったデフオーカス検知能力(演算対象領域を大とす
る)でのデフオーカス量検知を行えば低コントラスト判
定がなされない様な時にはフラグAGCFLGに1をセツト
し、演算対象領域を大となしWPREDサブルーチンを行わ
せ、かつこの時にAGCを全域AGCとなし、演算対象領域と
の一致を取る。このWPREDサブルーチンにて低コントラ
ストの判定がなされた時に焦点検出不能表示を行わせ
る。又、低コントラストの判定がなされなかった時には
WPREDルーチンにて検知されたデフオーカスが大の時に
は該デフオーカス量に基づくレンズ駆動を行い、該デフ
オーカス量が合焦近傍以内となっている時には測距フレ
ーム外の被写体に対して合焦と判定する可能性があるの
で、本来の被写体(測距フレームにとらえられた被写
体)に対する合焦ではないので焦点検出不能を判定し、
不能表示を行わせる。
In addition, the above-mentioned diff orcus detection ability is smaller than the maximum diff orcus amount of the lens, that is, the maximum diff orcus amount of the lens used is larger than the diff orcus detection capability of the NPRED and MPRED routines, and the diff orcus detection originally suited to the maximum diff orcus amount of the lens used. If the low contrast determination is not performed if the defocus amount is detected with the ability (the calculation target area is large), the flag AGCFLG is set to 1, the calculation target area is set to be large, and the WPRED subroutine is executed. Sometimes the AGC is set as the whole area AGC to match the calculation target area. When the low contrast is determined by this WPRED subroutine, the focus detection impossible display is performed. Also, when the judgment of low contrast is not made,
When the diff orcus detected by the WPRED routine is large, the lens is driven based on the diff orcus amount, and when the diff orcus amount is within the in-focus vicinity, it is possible to determine that the subject outside the ranging frame is in focus. Since it is not focused on the original subject (subject captured in the ranging frame), it is determined that focus detection is impossible,
Display impossible.

従って、AGC領域と演算対象領域が一致し、常に適正な
るAGC動作を行うことが出来、使用レンズ・最大デフオ
ーカス量に一致した演算対象領域にてデフオーカス量が
正しく検知出来、かつ演算対象領域を測距フレーム内か
ら外をカバーする領域に切換えた際に測距フレーム外の
被写体に対してピントが合うことが防止できることとな
る。
Therefore, the AGC area matches the calculation target area, and it is possible to always perform an appropriate AGC operation. The differential focus amount can be correctly detected in the calculation target area that matches the lens used and the maximum differential focus amount, and the calculation target area can be measured. This makes it possible to prevent the subject outside the distance measuring frame from being in focus when switching from the inside of the distance frame to the area covering the outside.

又、被写体状況に応じた演算対象領域が自動的に選択さ
れ、出来る限り適正なる焦点検出動作がなされる。
In addition, the calculation target area is automatically selected according to the subject situation, and the focus detection operation is performed as appropriately as possible.

又、演算対象領域をNRGN,MRNGをレンズの焦点距離によ
って選択し、焦点距離が小の時にはNRGNを大の時にはMR
GNを選んでいるので焦点距離に適した演算対象領域には
像処理がなされ適正なる焦点検知がなされる。
Also, select the calculation target area NRGN, MRNG according to the focal length of the lens, and when the focal length is small, NRGN is large and MR is large.
Since GN is selected, image processing is performed on the calculation target area suitable for the focal length, and proper focus detection is performed.

第9図(f)に、デフオーカス量検出サブルーチン「NP
RED」,「MPRE」,「WPRED」のフローチヤートを示す。
3つのサブルーチンの機能は、与えられた像信号から2
像のズレ量を検出し、それからさらにデフオーカス量を
求めるというものであり、具体的方法は先に本出願人に
よって特願昭61−160824号で開示されている。従って詳
細な説明は省略するが、基本的な演算は次のようにして
行う。
FIG. 9 (f) shows the differential focus detection subroutine "NP
The flow charts of "RED", "MPRE", and "WPRED" are shown.
The functions of the three subroutines are 2 from the given image signal.
The amount of image shift is detected, and then the amount of defocus is calculated, and a specific method has been previously disclosed by the present applicant in Japanese Patent Application No. 61-160824. Therefore, although detailed description is omitted, basic calculation is performed as follows.

A(I),B(I)はそれぞれ2像の信号である。f
{ }はmax{a,b},min{a,b}なる関数であり、前者
はa,bの内大なる値を抽出し、後者は小なる値を抽出す
ることを意味する。
A (I) and B (I) are signals of two images, respectively. f
{} Is a function of max {a, b}, min {a, b}, the former means extracting the larger value of a and b, and the latter means extracting the smaller value.

X(K)は像信号のうち特定の範囲を演算の対象として
おり、その範囲は「NPRED」,「MPRED」,「WPRED」で
異なっていることは前述したとおりである。その範囲は
前式中の変数HB,NPXで定義される。第9図(f)を用い
て説明すると、「焦点検出」サブルーチンにおいて、デ
フオーカス量検出サブルーチン「NPRED」がコールされ
ると、ステツプ(502)においてマイクロコンピユータP
RSのRAM上に設定された変数領域HBに定数NHBが、同NPX
に定数NNPXが格納され「MPRED」がコールされれば、ス
テツプ(513)において変数HB,NPXに夫々定数MHB,MNPX
が、「WPRED」がコールされればステツプ(515)におい
てそれぞれ定数WHB,WNPXが格納される。第8図を用いて
さらに詳しく述べると、図中NPGN,MRGN,WRGNはそれぞれ
サブルーチン「NPRED」,「MPRED」,「WPRED」のセン
サ列上の演算対象領域を表わしている。実施例において
センサ列の画素数を40画素として、端から[0],
[1]…,[39]というように番号を付与すると、「NP
RED」の演算対象領域NRGNは{[12]〜[27]}とな
る。
As described above, X (K) targets a specific range of the image signal, and the range is different between "NPRED", "MPRED", and "WPRED". The range is defined by the variables HB and NPX in the previous equation. Explaining with reference to FIG. 9 (f), when the defocus amount detection subroutine "NPRED" is called in the "focus detection" subroutine, the microcomputer computer P is called at step (502).
In the variable area HB set on the RAM of RS, the constant NHB is
If the constant NNPX is stored in and the "MPRED" is called, the constants MHB and MNPX are respectively set in the variables HB and NPX in step (513).
However, if "WPRED" is called, the constants WHB and WNPX are stored in step (515), respectively. More specifically with reference to FIG. 8, NPGN, MRGN, and WRGN in the figure represent calculation target areas on the sensor array of the subroutines “NPRED”, “MPRED”, and “WPRED”, respectively. In the embodiment, the number of pixels in the sensor array is 40, and [0] from the end,
If you assign numbers such as [1] ..., [39], you will see "NP
The calculation target area NRGN of “RED” is {[12] to [27]}.

従って定数NHB=12,NNPX=16と設定される。同様に「MP
RED」の演算対象領域MRGNは{[10]〜[29]}である
からMHB=10,MNPX=20,「WPRED」の演算対象領域WRGNは
{[0]−[39]}であるから、WHB=0,WNPX=40とな
る。
Therefore, the constants NHB = 12 and NNPX = 16 are set. Similarly, "MP
Since the calculation target area MRGN of “RED” is {[10] to [29]}, MHB = 10, MNPX = 20, and the calculation target area WRGN of “WPRED” is {[0] − [39]}. WHB = 0, WNPX = 40.

さてステツプ(502),(503),(504)においては変
数HB,NPXのほかに変数MDなる値を設定している。変数MD
は第9図(e)の説明にも述べたように、各デフオーカ
ス量検出サブルーチンにおける最大検出デフオーカス量
を表わしている。この変数MDの役割りを以下に述べる。
By the way, in steps (502), (503), and (504), in addition to the variables HB and NPX, the value of the variable MD is set. Variable MD
Represents the maximum detected defocus amount in each defocus amount detection subroutine, as described in the explanation of FIG. 9 (e). The role of this variable MD will be described below.

式(2)に示した演算はX(K)なる評価量をKB≦K≦
KEなる範囲で演算することによって2像のずれ量を検出
するわけであるが、式(2)に従うとKの絶対値が大き
くなるに従って、Kを変数とする評価量X(K)を求め
るための演算画素数Mが減少する(M=NPX−|K|−1な
る式による)。
In the calculation shown in Expression (2), the evaluation amount X (K) is KB ≦ K ≦
The amount of shift between the two images is detected by calculating in the range of KE, but according to equation (2), the evaluation amount X (K) with K as a variable is obtained as the absolute value of K increases. The number M of pixels to be calculated decreases according to the formula M = NPX− | K | −1.

当然のことながら|K|の増加によってMが小さくなり過
ぎるとそのときX(K)のS/N比が低下する。それ故、
演算画素数Mに依存する演算精度を確保するためには演
算対象画素数NPXに応じて|K|の上限を定める必要があ
る。NPXが大きくなれば|K|の上限も大きくすることがで
き、これは2像のずれ量が大きくなっても対処すること
ができ、従ってデフオーカス量の検出能力を大きくする
ことができることを意味する。
As a matter of course, if M becomes too small due to the increase of | K |, then the S / N ratio of X (K) decreases. Therefore,
In order to secure the calculation accuracy depending on the number M of calculation pixels, it is necessary to set the upper limit of | K | according to the number NPX of calculation target pixels. If NPX becomes large, the upper limit of | K | can also be made large, which means that it is possible to deal with a large amount of deviation between the two images, and therefore the ability to detect the defocus amount can be increased. .

ステツプ(502),(513),(515)における定数NMD,M
MD,WMDは各サブルーチンでのNPXから許容される|K|の上
限をデフオーカス量に換算したものである。
Constants NMD, M in steps (502), (513), and (515)
MD and WMD are the upper limit of | K | allowed from NPX in each subroutine converted into the defocus amount.

演算画素数Mをどこまで小さくし得るかどうかというこ
とは、焦点検出システム全体のS/Nや必要精度に関わる
ので一義的に決定し難しいが、本発明の実施例のセンサ
列の画素数が40画素ということから、仮にMの下限を10
画素と設定しよう。そうすると各サブルーチンにおける
|K|の上限はM=NPX−|K|−1により次のように決定さ
れる。「NPRED」における|K|の上限は16−10−1=5,
「MPRED」においては20−10−1=9,「WPRED」において
は40−10−1=29となる。これらの値を像ずれ量をデフ
オーカス量に換算する定数Cを乗ずれば、各サブルーチ
ンにおける最大検出デフオーカス量を求める事ができ
る。定数Cは焦点検出用2次光学系の構成から決める値
で、例えばC=2とすると、サブルーチン「NPRED」の
最大検出デフオーカス量NMDは5×2=10,「MPRED」の
同量MMDは9×2=18,「WPRED」の同量WMDは29×2=54
となる。
It is difficult to unambiguously determine how small the calculation pixel number M can be because it depends on the S / N and required accuracy of the entire focus detection system, but the number of pixels of the sensor array in the embodiment of the present invention is 40. Since it is a pixel, the lower limit of M is 10
Let's set it as a pixel. Then in each subroutine
The upper limit of | K | is determined by M = NPX− | K | −1 as follows. The upper limit of | K | in “NPRED” is 16−10−1 = 5,
20-10-1 = 9 for "MPRED" and 40-10-1 = 29 for "WPRED". By multiplying these values by a constant C that converts the image shift amount into the defocus amount, the maximum detected defocus amount in each subroutine can be obtained. The constant C is a value determined from the configuration of the secondary optical system for focus detection. For example, if C = 2, the maximum detected defocus amount NMD of the subroutine "NPRED" is 5 × 2 = 10, and the same amount MMD of "MPRED" is 9 × 2 = 18, the same amount WMD of "WPRED" is 29 × 2 = 54
Becomes

再び第9図(f)のフローチヤートの説明に戻って、ス
テツプ(503)において変数MDと変数MAXDEFを比較して
いるが、変数MDには上記した値が格納されており、変数
MAXDEFには装着されている撮影レンズの取り得る最大の
デフオーカス量「焦点検出」サブルーチンの最初のステ
ツプで既に格納されている。
Returning to the explanation of the flow chart in FIG. 9 (f) again, the variable MD and the variable MAXDEF are compared in step (503), but the above-mentioned value is stored in the variable MD, and the variable MD is stored.
MAXDEF has already been stored in the first step of the "focus detection" subroutine of the maximum defocus amount that can be taken by the attached photographing lens.

その結果がMD>MAXDEFならばステツプ(504)へ,MD≦MA
XDEFならばステツプ(505)へ移行する。
If the result is MD> MAXDEF, go to step (504), MD ≦ MA
If it is XDEF, move to step (505).

ステツプ(504)では、変数MDに変数MAXDEFの値を再格
納して、ステツプ(505)へ移行する。ステツプ(505)
では変数MDを先に述べた定数Cで割り変数MSFTを求めて
いる。この変数MSFTが|K|の上限を表わしている。
At step (504), the value of the variable MAXDEF is stored again in the variable MD, and the process proceeds to step (505). Step (505)
Then, the variable MD is obtained by dividing the variable MD by the constant C described above. This variable MSFT represents the upper limit of | K |.

ステツプ(503)において、変数MDと変数MAXDEFを比較
する理由は、装着レンズの最大デフオーカス量がそのと
きのデフオーカス量検出サブルーチンの最大検出デフオ
ーカス量よりも小さい状態では変数MSFTを変数MDから計
算する必要はなく、小さい方の値を用いれば充分であ
る。それ故MD>MAXDEFの場合には、ステツプ(504)に
て変数MAXDEFの値を変数MDに再格納するのである。
The reason why the variable MD and the variable MAXDEF are compared in step (503) is that the variable MSFT needs to be calculated from the variable MD when the maximum defocus amount of the mounted lens is smaller than the maximum detected defocus amount of the defocus amount detection subroutine at that time. However, it is sufficient to use the smaller value. Therefore, if MD> MAXDEF, the value of the variable MAXDEF is stored again in the variable MD in step (504).

次にステツプ(506)で式(2)に示したKの下限KB,上
限KEを次式に従って設定する。
Next, in step (506), the lower limit KB and the upper limit KE of K shown in equation (2) are set according to the following equations.

KB=−MSFT+△ (3) KE=MSFT+△ 式(3)においてKB,KEに定数△を加算しているが、△
は先に述べたように合焦時における2像の像ずれ量であ
り、レンズの最大デフオーカス量からKB,KEを設定する
際のオフセツトとなる。
KB = -MSFT + △ (3) KE = MSFT + △ In equation (3), the constant △ is added to KB and KE.
Is the image shift amount between the two images at the time of focusing as described above, and is an offset when setting KB and KE from the maximum defocus amount of the lens.

次にステツプ(507)においては、式(2)に基づいた
特願昭61−160824合に提示されている方法によって、像
ずれ量PRとコントラスト量ZDが得られる。
Next, in step (507), the image shift amount PR and the contrast amount ZD are obtained by the method presented in Japanese Patent Application No. 61-160824 based on the equation (2).

ステツプ(508)では、次式の様にステツプ(507)で得
られた像ずれ量PRからデフオーカス量を計算している。
In step (508), the defocus amount is calculated from the image shift amount PR obtained in step (507) as in the following equation.

DEF=(PR−△)・C (4) 即ち、像ずれ量PRから合焦時の像ずれ量△を減算したの
ちに、像ずれ量対デフオーカス量の係数Cを乗ずること
によってデフオーカス量DEFを得る。
DEF = (PR- △) ・ C (4) That is, after subtracting the image shift amount Δ at the time of focusing from the image shift amount PR, the defocus amount DEF is calculated by multiplying the image shift amount by the coefficient C of the defocus amount. obtain.

ステツプ(509)ではステツプ(507)で得られたコント
ラスト量ZDと定数LCLVLを比較する。LCLVLは正しい合焦
検出を可能とするコントラスト量の下限値であり、ZD≧
LCLVLのときにはコントラスト充分であるとしてステツ
プ(510)で低コントラストフラグLCFLGを0にクリア
し、ZD<LCLVLのときにはコントラスト不充分であると
してステツプ(511)にて低コントラストフラグLCFLGに
1にセツトする。このままでのステツツプでデフオーカ
ス量の検出は終了し、そしてステツプ(512)でデフオ
ーカス量検出サブルーチン「NPRED」,「MPRED」,「WP
RED」をリターンする。
In step (509), the contrast amount ZD obtained in step (507) is compared with the constant LCLVL. LCLVL is the lower limit value of the contrast amount that enables correct focus detection, and ZD ≧
When LCLVL, the low contrast flag LCFLG is cleared to 0 in step (510) because the contrast is sufficient, and when ZD <LCLVL, the low contrast flag LCFLG is set to 1 in step (511) because the contrast is insufficient. The detection of the defocus amount is completed by the step as it is, and the defocus amount detection subroutine "NPRED", "MPRED", "WP" is performed at the step (512).
"RED" is returned.

この様に各NPRED,MPRED,WPREDルーチンは構成されてい
るので、各ルーチンに対応する演算領域における像のず
れ量にてデフオーカス量検知がなされ、前述の各ステツ
プで該デフオーカス量に基づく上記の各処理がなされ
る。
Since each NPRED, MPRED, and WPRED routine is configured in this way, the defocus amount is detected by the image shift amount in the calculation area corresponding to each routine, and each of the above-mentioned steps based on the defocus amount in each step described above. Processing is done.

又、上記演算処理にて上記ずれ量△を加味し、オフセツ
トさせているので常に正しい像ずれ量が検知される。
Further, since the offset amount Δ is added to the offset value in the calculation process, the correct image shift amount is always detected.

尚、実施例において、像信号用センサ列のそばに専用の
AGC用のセンサを設けて説明したが、AGC用センサは専用
である必要はなく、像信号をそのままAGC信号として出
力するような構成のセンサ装置に対しても、本発明が有
効であることは明らかである。
It should be noted that in the embodiment, a dedicated image sensor array is provided near the image signal sensor array.
Although the AGC sensor is provided and described, the AGC sensor does not need to be dedicated, and the present invention is effective even for a sensor device configured to output an image signal as an AGC signal as it is. it is obvious.

〔効果〕〔effect〕

以上説明したように、本発明によれば、焦点検出処理の
対象となるセンサ出力の範囲が変ったときには、それに
最適なセンサのAGC領域を設定することによって、常に
正しい焦点検出を可能とする。
As described above, according to the present invention, when the range of the sensor output that is the target of the focus detection process changes, the optimum AGC area of the sensor is set to enable correct focus detection at all times.

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

第1図は本発明の焦点検出の原理を表わす説明図、 第2図,第3図,第4図,第5図は第1図のセンサSAA,
SABの光電変換出力の状態を示す波形図、 第6図は本発明に使用するセンサ装置の構成を示す回路
図、 第7図は本発明に係る焦点検出装置を有するカメラの一
実施例を示す回路図、 第8図はフアインダ測距フレームとセンサの位置関係の
説明図、 第9図(a)〜第9図(f)は本発明の動作を説明する
ためのプログラムを示す説明図である。 SAA,SAB……センサ列, ST1〜ST3……測光素子、 PRS……コンピユータ
FIG. 1 is an explanatory diagram showing the principle of focus detection of the present invention, and FIGS. 2, 3, 4, and 5 are the sensor SAA of FIG.
FIG. 6 is a waveform diagram showing a state of photoelectric conversion output of SAB, FIG. 6 is a circuit diagram showing a configuration of a sensor device used in the present invention, and FIG. 7 is an embodiment of a camera having a focus detection device according to the present invention. FIG. 8 is a circuit diagram, FIG. 8 is an explanatory diagram of a positional relationship between a fiber distance measuring frame and a sensor, and FIGS. 9 (a) to 9 (f) are explanatory diagrams showing programs for explaining the operation of the present invention. . SAA, SAB …… Sensor array, ST 1 to ST 3 …… Photometric element, PRS …… Computer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】焦点検出されるべき結像光学系を通過する
光束を、それぞれ複数の光電変換素子からなる第一及び
第二受光部にて受光し、第一の受光部における各光電変
換素子からの第一の出力列と第二の受光部における各光
電変換素子からの第二の出力列とを相関演算し、第一の
受光部上の像と第二の受光部上の像の位置関係を求め前
記結像光学系の焦点状態を検出する焦点検出装置におい
て、前記第一及び第二の受光部の第一範囲における各光
電変換素子からの出力列または、該第一範囲を含む第二
範囲における各光電変換素子からの出力列を選択して前
記相関演算のための出力として取り出す取出手段と、該
取出手段にて第一範囲における各光電変換素子からの出
力列が取り出された時には該第一範囲における光電変換
素子への受光量に基づいて第一及び第二の受光部に対す
る蓄積時間制御を行い、一方前記取出手段にて第二範囲
における各光電変換素子からの出力列が取り出された時
には該第二範囲における光電変換素子への受光量に基づ
いて、第一及び第二の受光部に対する蓄積時間制御を行
なう制御回路を設けたことを特徴とする焦点検出装置。
1. A light beam passing through an imaging optical system whose focus is to be detected is received by a first and a second light receiving section, each of which is composed of a plurality of photoelectric conversion elements, and each photoelectric conversion element in the first light receiving section. From the first output column from the second output column from each photoelectric conversion element in the second light receiving section, the position of the image on the first light receiving section and the image on the second light receiving section In a focus detection device that obtains a relationship and detects the focus state of the imaging optical system, an output sequence from each photoelectric conversion element in the first range of the first and second light receiving units, or a first range including the first range. When the output column from each photoelectric conversion element in the first range is selected by the extraction unit that selects the output column from each photoelectric conversion element in the two ranges and outputs as the output for the correlation calculation, The amount of light received by the photoelectric conversion element in the first range Then, the storage time control for the first and second light receiving sections is performed, and when the output row from each photoelectric conversion element in the second range is taken out by the extraction means, the photoelectric conversion elements in the second range are output. A focus detection device comprising a control circuit for performing storage time control for the first and second light receiving units based on the amount of received light.
JP62004568A 1987-01-12 1987-01-12 Focus detection device Expired - Fee Related JPH0775401B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP62004568A JPH0775401B2 (en) 1987-01-12 1987-01-12 Focus detection device
GB8800055A GB2200010B (en) 1987-01-12 1988-01-04 Focus detection apparatus for camera
DE3800530A DE3800530A1 (en) 1987-01-12 1988-01-11 FOCUS DETERMINATION DEVICE FOR CAMERAS
US07/399,404 US4952963A (en) 1987-01-12 1989-08-25 Focus detection apparatus for camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62004568A JPH0775401B2 (en) 1987-01-12 1987-01-12 Focus detection device

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP7004920A Division JP2840562B2 (en) 1995-01-17 1995-01-17 Camera having focus detection device
JP7004919A Division JP2840561B2 (en) 1995-01-17 1995-01-17 Focus detection device

Publications (2)

Publication Number Publication Date
JPS63173470A JPS63173470A (en) 1988-07-18
JPH0775401B2 true JPH0775401B2 (en) 1995-08-09

Family

ID=11587641

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62004568A Expired - Fee Related JPH0775401B2 (en) 1987-01-12 1987-01-12 Focus detection device

Country Status (1)

Country Link
JP (1) JPH0775401B2 (en)

Also Published As

Publication number Publication date
JPS63173470A (en) 1988-07-18

Similar Documents

Publication Publication Date Title
US5012267A (en) Focus adjusting apparatus
US5091742A (en) Camera having an auto focusing device
JPS6318314A (en) Focus detecting device
US4952963A (en) Focus detection apparatus for camera
US6081668A (en) Camera
US4801962A (en) Camera incorporating automatic focusing apparatus
US4855776A (en) Camera with automatic focusing device
JPH0617935B2 (en) Automatic focus adjustment device
JPH01134410A (en) automatic focus adjustment device
JPS63172207A (en) focus detection device
JPH11337814A (en) Optical device
US4786932A (en) Camera having a focus state detection device
JPH05346536A (en) Focal point detecting device
JPH0775401B2 (en) Focus detection device
JPH085905A (en) Camera with focus detection device
US4825238A (en) Focus detecting device
US5382996A (en) Auto-focus apparatus having different levels for emitting focusing light and for inhibiting a focus operation
US4967225A (en) Camera incorporating automatic focusing apparatus
JPS63172206A (en) focus detection device
JP4398020B2 (en) Multi-point autofocus camera
JP2974637B2 (en) Automatic focusing device
JP2832006B2 (en) Automatic focusing device
JPH06138378A (en) Camera having focus detecting means and line-of-sight detecting means
JPH085904A (en) Focus detection device
EP0439167B1 (en) Focus detection apparatus

Legal Events

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