JPH032739A - Automatic focusing device - Google Patents

Automatic focusing device

Info

Publication number
JPH032739A
JPH032739A JP13880889A JP13880889A JPH032739A JP H032739 A JPH032739 A JP H032739A JP 13880889 A JP13880889 A JP 13880889A JP 13880889 A JP13880889 A JP 13880889A JP H032739 A JPH032739 A JP H032739A
Authority
JP
Japan
Prior art keywords
auxiliary light
time
focus
lens
flag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP13880889A
Other languages
Japanese (ja)
Other versions
JPH0682168B2 (en
Inventor
Akira Akashi
明石 彰
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 JP13880889A priority Critical patent/JPH0682168B2/en
Publication of JPH032739A publication Critical patent/JPH032739A/en
Publication of JPH0682168B2 publication Critical patent/JPH0682168B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent the number of light emitting times from being limited more than needed and to execute an excellent automatic focusing operation by providing a time setting means for setting an interval from a preceding auxiliary light turning-off time to a current auxiliary light projection starting time in accordance with a preceding auxiliary light projecting time. CONSTITUTION:A microcomputer PRS communicates with a peripheral circuit and a lens by using signals for communication SO, SI and SCLK to control the action of each circuit and lens. When the auxiliary light is projected after the elapse of a time when images are accumulated under the preceding projection of auxiliary light. Therefore, when the auxiliary light is projected every AF action, the current auxiliary light projection starting time is shifted in accordance with the preceding auxiliary light projecting time. Thus, in the case that the auxiliary light projecting time of every AF action is made long, a time till the next start of the projection of the auxiliary light gets long and an auxiliary light source is prevented from receiving an adverse effect by generated heat.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、カメラ等の自動焦点調節装置の、特に補助光
を用いる自動焦点調節装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to an automatic focus adjustment device for a camera or the like, and particularly to an automatic focus adjustment device using auxiliary light.

〔従来の技術〕[Conventional technology]

従来、カメラの焦点調節装置の一つの方法として、撮影
レンズを通過した被写体からの光束を、CCD等の電荷
蓄積型の光電変換素子で受光・電荷蓄積し、このとき低
輝度と判断された場合には、被写体に対して補助光を照
射した状態で再蓄積を行い、その出力から撮影レンズの
焦点状態を検出し、その結果に基づいて撮影レンズを駆
動する、というような方法が知られている。
Conventionally, as a method for focusing a camera, a light flux from an object that has passed through a photographic lens is received and charged by a charge accumulation type photoelectric conversion element such as a CCD, and if the luminance is determined to be low at this time, A known method is to perform re-accumulation while illuminating the subject with auxiliary light, detect the focus state of the photographic lens from the output, and drive the photographic lens based on the result. There is.

〔発明が解決しようとしている課題〕[Problem that the invention is trying to solve]

上記補助光の光源としてはLED光源が一般的であるが
、LED光源の場合、発光時には過大な電流を通過させ
るため頻繁に発光を行わせると光源部の温度が急上昇し
、LEDを破損させてしまう恐れがある。このため通常
は、焦点検出毎の発光回数を有限回に制限して、光源部
温度が所定以上に上昇しないように配慮した制御を行っ
ている。
LED light sources are commonly used as the light source for the above-mentioned auxiliary light, but in the case of LED light sources, an excessive amount of current passes through when emitting light, so if the light source is emitted frequently, the temperature of the light source will rise rapidly, damaging the LED. There is a risk of it being stored away. For this reason, the number of times the light is emitted for each focus detection is usually limited to a finite number of times, and control is performed to prevent the temperature of the light source from rising above a predetermined level.

しかしながら、光源保護のためとはいえ、発光回数を少
な(設定してお(と、焦点調節が困難な被写体では、合
焦に至る前に発光動作が終了して、結局合焦できないと
いった場合が生じるような欠点がある。
However, even if the number of flashes is set to a small number to protect the light source, if the subject is difficult to focus on, the flash operation may end before achieving focus, resulting in failure to focus. There are some drawbacks that arise.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は上述した問題の解消を目的としており、その要
旨は、補助光発光時にその発光時間を計数しておき、次
の発生までに、前記発光時間に対応した待機時間を設け
て、光源部の温度上昇を抑えることによって、発光回数
を必要以上に制限することなく、良好な焦点調節動作を
可能とするものである。
The purpose of the present invention is to solve the above-mentioned problem, and its gist is to count the light emission time when the auxiliary light is emitted, and to provide a standby time corresponding to the light emission time before the next occurrence of the light source. By suppressing the temperature rise of the lens, it is possible to perform a good focus adjustment operation without unnecessarily limiting the number of times the light is emitted.

〔実施例〕〔Example〕

第1図は本発明に係るオートフォーカス装置を備えたカ
メラ実施例を示す回路図である。図においてPH1はカ
メラの制御装置で、例えば内部にROM。
FIG. 1 is a circuit diagram showing an embodiment of a camera equipped with an autofocus device according to the present invention. In the figure, PH1 is a camera control device, for example, an internal ROM.

RAM、A/D変換機能を持つ1チツプのマイクロ・コ
ンピュータであり、ROMに格納された後述のプログラ
ムに従って、自動露出制御機能、自動焦点検出機能、フ
ィルムの巻き上げ・巻戻し等のカメラの動作を行ってい
る。
It is a 1-chip microcomputer with RAM and A/D conversion functions, and it controls camera operations such as automatic exposure control function, automatic focus detection function, and film winding/rewinding according to the programs described below stored in ROM. Is going.

マイクロコンピュータPR8は通信用信号5O1SI、
5CLKを用いて、周辺回路およびレンズと通信し、各
々の回路やレンズの動作を制御する。
Microcomputer PR8 has communication signal 5O1SI,
5CLK is used to communicate with peripheral circuits and lenses, and to control the operation of each circuit and lens.

SOはPH5から出力されるデータ信号、SIはPH1
に入力されるデータ信号、5CLKは信号So、 Sl
の同期信号である。
SO is the data signal output from PH5, SI is PH1
The data signal input to 5CLK is the signal So, Sl
This is the synchronization signal.

LCMはレンズ通信バッファ回路であり、カメラが動作
中のときはレンズ用電源VLをレンズに与え、マイクロ
コンピュータPR8からの信号CLCMが高電位レベル
(以下、“H”と略し、低電位は“L”と略して記す)
のときは、カメラとレンズ間通信のバッファとなる。マ
イクロコンピュータPR8が信号CLCMを“H”にし
て、5CLK信号に同期して所定のデータをSO信号と
して送出すると、回路LCMが指定されカメラ・レンズ
間接点を介して、5CLK信号、SO信号の各々のバッ
ファ信号LCK。
LCM is a lens communication buffer circuit, and when the camera is in operation, the lens power supply VL is applied to the lens, and the signal CLCM from the microcomputer PR8 is at a high potential level (hereinafter abbreviated as "H", and a low potential is "L"). (abbreviated as “)”
In this case, it acts as a buffer for communication between the camera and lens. When the microcomputer PR8 sets the signal CLCM to "H" and sends out predetermined data as the SO signal in synchronization with the 5CLK signal, the circuit LCM is designated and the 5CLK signal and SO signal are transmitted through the camera-lens junction. buffer signal LCK.

DCLをレンズへ出力する。それと同時にレンズ(−点
鎖線で囲まれた部分)からの信号DLCのバッファ信号
をSl信号として出力し、コンピュータPR3は5CL
K信号に同期してSl信号としてのレンズのデータを入
力する。
Output DCL to the lens. At the same time, the buffer signal of the signal DLC from the lens (the part surrounded by the dashed line) is output as the Sl signal, and the computer PR3 outputs the 5CL signal.
Lens data as an Sl signal is input in synchronization with the K signal.

SDRは焦点検出用のラインセンサ装置SNSの駆動回
路であり、コンピュータPRSからの信号C5DRが“
H″のとき選択されて、So、 Sl、 SCI、に信
号によりコンピュータPR3にて制御される。
SDR is a drive circuit for the line sensor device SNS for focus detection, and the signal C5DR from the computer PRS is “
It is selected when the signal is H'' and is controlled by the computer PR3 using signals So, Sl, and SCI.

SNSは例えば一対のCCDラインセンサCCD 、。The SNS is, for example, a pair of CCD line sensors (CCD).

CCD2を含むセンサ装置である。φl、φ2はコンピ
ュータPR3からのクロックCKを受け、駆動回路SD
Rにて生成されるCOD駆動用のクロック、SHはライ
ンセンサCCD 、、CCD 2に蓄積された電荷を転
送部に転送させる信号、CLRはラインセンサCCD 
、、CCD 2の蓄積電荷をクリアさせるクリア信号で
ありこれらの各信号はコンピュータPR3にて制御され
る駆動回路SDRにて形成される。
This is a sensor device including a CCD2. φl and φ2 receive the clock CK from the computer PR3, and drive circuit SD
A clock for driving the COD generated by R, SH is a line sensor CCD, a signal to transfer the charge accumulated in CCD 2 to the transfer section, CLR is a line sensor CCD
, , are clear signals for clearing the accumulated charges in the CCD 2, and these signals are formed by a drive circuit SDR controlled by a computer PR3.

センサ装置SNSの出力信号O8はクロックφ1゜φ2
に同期して時系列で出力されるセンサCCD 、。
The output signal O8 of the sensor device SNS is the clock φ1゜φ2
Sensor CCD, which outputs in time series in synchronization with.

CCD2の各給電に蓄積された像信号であり、CCD 
、。
It is an image signal accumulated in each power supply of CCD2, and the CCD
,.

CCD2の各ビットごとに出力され回路SDR内の増幅
回路で増幅された後、AO3信号としてコンピュータP
R3に入力される。コンピュータPRSはAO3信号を
アナログ入力端子から入力し、CK倍信号同期して、内
部のA/D変換機能でA/D変換後RAMの所定のアド
レスに順次格納する。
Each bit of the CCD2 is outputted and amplified by the amplifier circuit in the circuit SDR, and then sent to the computer P as an AO3 signal.
It is input to R3. The computer PRS inputs the AO3 signal from the analog input terminal, synchronizes with the CK multiplied signal, and uses its internal A/D conversion function to sequentially store the signal at a predetermined address in the RAM after A/D conversion.

同じ(SNSの出力信号であるAGC信号は、装置SN
S内の蓄積制御用センサの出力であり、回路SDRに入
力されて、センサCCD 、、CCD 2の蓄積時間制
御に用いられる。
Same (the AGC signal which is the SNS output signal is the device SN
This is the output of the storage control sensor in S, is input to the circuit SDR, and is used to control the storage time of sensors CCD 2, CCD 2.

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

DDRはスイッチ・センスおよび表示用回路であり、コ
ンピュータPR3からの信号CDDRが“H”のとき選
択されて、So、31,5CLKの各信号によりコンピ
ュータPR5との通信制御がなされる。
DDR is a switch sense and display circuit, which is selected when the signal CDDR from the computer PR3 is "H", and communication with the computer PR5 is controlled by the So, 31, and 5CLK signals.

即ち、コンピュータPR3から送られて(るデータに基
づいてカメラの表示を切り替えたり、レリーズボタンに
連動するスイッチsw、、sw2をはじめ各種操作部材
に連動してオン・オフするスイッチ群SWSのスイッチ
状態をコンピュータPR5に連絡する。
That is, the switch status of the switch group SWS that switches the camera display based on data sent from the computer PR3, and turns on and off in conjunction with various operating members including switches sw, , and sw2 that are linked to the release button. to computer PR5.

MDRI、MDR2はフィルム給送及びシャッターチャ
ージ用モータMTRI、MTR2の駆動回路で、信号M
IF、MIR,M2F、M2Rでモータの正転・逆転を
実行する。
MDRI and MDR2 are drive circuits for film feeding and shutter charging motors MTRI and MTR2, and signal M
Execute forward/reverse rotation of the motor using IF, MIR, M2F, and M2R.

MCI、MG2は各々シャッター先幕・後幕走行開始用
マグネットで、信号SMGI、5MG2.増幅トランジ
スタTRI、TR2で通電され、コンピュータPR5に
よりシャッター制御が行われる。
MCI and MG2 are magnets for starting the movement of the shutter front curtain and rear curtain, respectively, and the signals SMGI, 5MG2. The amplification transistors TRI and TR2 are energized, and the computer PR5 performs shutter control.

ALEDは低輝度時に被写体に投光するための補助光光
源で、マイコンPR3の出力端子SALの信号を“H”
にすることによって駆動トランジスタATRを駆動し、
光学系ALMSを介して補助光を投光する。該ALED
は例えば発光ダイオードにて構成される。
ALED is an auxiliary light source for projecting light onto the subject when the brightness is low, and the signal of the output terminal SAL of the microcomputer PR3 is set to "H".
Drive the drive transistor ATR by
Auxiliary light is projected through the optical system ALMS. The ALED
is composed of, for example, a light emitting diode.

尚、ス4イツチ・センスおよび表示用回路DDR。In addition, switch sense and display circuit DDR.

モータ駆動用回路MDRI、MDR2、シャッター制御
は、本発明と直接間わりがないので、詳しい説明は省略
する。同期信号LCKに同期してレンズ内制御回路LP
RSに入力される信号DCLは、カメラからレンズに対
する命令のデータであり、命令に対するレンズの動作が
予め決められている。
The motor drive circuits MDRI, MDR2, and shutter control are not directly related to the present invention, so detailed explanations will be omitted. In-lens control circuit LP in synchronization with synchronization signal LCK
The signal DCL input to the RS is data of a command from the camera to the lens, and the operation of the lens in response to the command is determined in advance.

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

実施例では、全体繰り出しの単レンズの例を示しており
、カメラから焦点調節の命令が送られた場合には、同時
に送られて(る駆動量・方向に従って、焦点調節用モー
タLMTHに対して信号LMF。
In the example, an example of a single lens that is fully extended is shown, and when a focus adjustment command is sent from the camera, it is simultaneously sent (according to the drive amount and direction) to the focus adjustment motor LMTH. Signal LMF.

LMRを送出しモータLMTRを駆動して、光学系を光
軸方向移動させて焦点調節を行う。光学系の移動量はエ
ンコーダ回路ENCの信号5ENCでモニターして、所
定の移動が完了した時点で、信号LMF、LMRをL″
にしてモータLMTRを制御する。
The LMR is sent out and the motor LMTR is driven to move the optical system in the optical axis direction and perform focus adjustment. The amount of movement of the optical system is monitored by the signal 5ENC of the encoder circuit ENC, and when the predetermined movement is completed, the signals LMF and LMR are set to L''.
to control motor LMTR.

カメラから絞り制御の命令が送られた場合には、同時に
送られてくる絞り段数に従って、絞り機構に連動する公
知のステッピング・モータDMTRを駆動する。尚、ス
テッピング・モータはオープン制御が可能なため、動作
をモニターするためのエンコーダを必要としない。
When an aperture control command is sent from the camera, a known stepping motor DMTR that is linked to the aperture mechanism is driven in accordance with the number of aperture stages sent at the same time. Note that since the stepping motor can be controlled in an open manner, it does not require an encoder to monitor its operation.

次いで、第1図の動作を第2図〜第4図を用いて説明す
る。
Next, the operation shown in FIG. 1 will be explained using FIGS. 2 to 4.

まず始めに、不図示の電源スィッチが操作されるとマイ
コンPR3に給電がなされ、マイコンPR3は格納プロ
グラムを実行する。
First, when a power switch (not shown) is operated, power is supplied to the microcomputer PR3, and the microcomputer PR3 executes a stored program.

第2図は上記プログラムの全体のフローを示すフローチ
ャートである。上述の格納プログラムの実行が開始され
ると、ステップ(002)にてまず不図示のシャッター
ボタンの第1段階操作にてオンとなるスイッチSWIの
状態検知がなされ、スイッチSW1がオフのときにはス
テップ(005)にてマイコンPR3の内部にある全フ
ラグを“0″にセットし、更に、後述する全変数に“0
”をセットする。
FIG. 2 is a flowchart showing the overall flow of the above program. When the execution of the above storage program is started, the state of the switch SWI, which is turned on by the first step operation of the shutter button (not shown), is first detected in step (002), and when the switch SW1 is off, the state of the switch SWI is detected in step (002). 005), all flags inside the microcomputer PR3 are set to "0", and all variables described later are set to "0".
”.

上記ステップ(002)、  (005)はスイッチS
WIがオンとなるまで繰返し実行され、スイッチSWI
がオンとなることによりステップ(003)へ移行する
The above steps (002) and (005) are performed by the switch S.
It is executed repeatedly until WI is turned on, and the switch SWI
When turned on, the process moves to step (003).

ステップ(003)はAE副制御サブルーチンであり、
このAEサブルーチンにて測光演算処理、露光制御並び
に露光後のシャッターチャージ、フィルム巻上げ等の一
連の制御が行われる。尚、上記AEサブルーチンは本発
明とは直接関係がないので詳細な説明は省略するが、そ
の概要は次の通りである。スイッチSWIがオンの限り
このAEサブルーチンが実行されるごとに測光及び露光
制御演算が行われる。又シャッターレリーズボタンの第
2段階操作がなされスイッチSW2がオンとなると割込
み処理にてレリーズ動作がなされ上記露光制御演算にて
求められた露光量に応じて、絞り又はシャッター秒時の
制御を行い、露光終了後にシャッターチャージ及びフィ
ルム給送動作を行う。
Step (003) is an AE sub-control subroutine,
This AE subroutine performs a series of controls such as photometric calculation processing, exposure control, shutter charging after exposure, and film winding. The AE subroutine described above has no direct relation to the present invention, so a detailed explanation will be omitted, but its outline is as follows. As long as the switch SWI is on, photometry and exposure control calculations are performed each time this AE subroutine is executed. Further, when the second stage operation of the shutter release button is performed and the switch SW2 is turned on, the release operation is performed by interrupt processing, and the aperture or shutter speed is controlled according to the exposure amount obtained by the above exposure control calculation. After exposure is completed, shutter charging and film feeding operations are performed.

今、シャッターボタンの第1段階操作がなされているも
のとすると、ステップ(003)にて測光、演算処理が
行われた後にステップ(004)へ移行する。上述の割
込み動作は、AF動作モードがいわゆる「サーボモード
」、「マニュアルモード」のときには、電源スイツチオ
ンから1回目の測光が完了した状態で許可され、又、へ
F動作モードが「ワンショットモード」のときは合焦が
検出された状態で許可される。即ち上記「サーボモード
」あるいは「マニュアルモード」では合焦調節動作とは
関係なくいつでもレリーズ動作が可能であり、「ワンシ
ョットモード」では合焦を検知して始めてレリーズ可能
となる。尚、AFモードは不図示のモードスイッチによ
り選択され[ワンショットモード]では一旦合焦すると
、スイッチSWIをオフするまで再びAF動作を行わず
、「サーボモード」では常にAF動作を行う。
Assuming that the shutter button is now operated in the first step, the process moves to step (004) after photometry and arithmetic processing are performed in step (003). The above-mentioned interrupt operation is permitted when the AF operation mode is the so-called "servo mode" or "manual mode" and the first photometry is completed from the power switch on, and when the AF operation mode is the "one-shot mode". When , permission is granted when focus is detected. That is, in the above-mentioned "servo mode" or "manual mode", the release operation can be performed at any time regardless of the focus adjustment operation, and in the "one shot mode", the release operation is possible only after in-focus is detected. The AF mode is selected by a mode switch (not shown). In the [one-shot mode], once focus is achieved, the AF operation is not performed again until the switch SWI is turned off, and in the "servo mode", the AF operation is always performed.

AF制御ステップ(004)では、撮影レンズの焦点調
節状態を検出して「ワンショットモード」「サーボモー
ド」ならば合焦となるように撮影レンズを駆動し、又「
マニュアルモード」のときには合焦あるいは非合焦の表
示のみを行う。又、マニュアルモードのときには、補助
光によるAF制御は行われない。
In the AF control step (004), the focus adjustment state of the photographic lens is detected, and if the mode is "one shot mode" or "servo mode", the photographic lens is driven so as to be in focus;
When in "manual mode", only in-focus or out-of-focus is displayed. Further, in the manual mode, AF control using auxiliary light is not performed.

上述フローにおいては、スイッチSWIがオンしている
限りは(003)のAE制御(004)のAF制御は交
互に繰り返し行われることになる。
In the above flow, as long as the switch SWI is on, the AE control (003) and the AF control (004) are alternately and repeatedly performed.

ステップ(004)はAF制御サブルーチンであり、第
3図に示すAF制御サブルーチンが実行される。
Step (004) is an AF control subroutine, and the AF control subroutine shown in FIG. 3 is executed.

ステップ(102):シャッターレリーズ動作により、
1コマの撮影を終了した直後の1回目のAF制御か否か
を判定して(直前に行われたAF制御サブルーチンにて
フィルム給送が行われたか否かを判定して)「連続撮影
モード」か否かを判断する。該ステップ(102)が撮
影終了後初めて行われたものであると判断されたときに
は連続撮影モード中のAFであると考え、ステップ(1
03)にてマイコンPR8内の全フラグを“0”にセッ
トし、全変数に“0”をセットする。これにより「連続
撮影モード」中は過去におけるAF制御の状況を初期化
し、次のステップ(104)で連続撮影モードフラグF
AFを1にセットして連続撮影中のAF制御であること
を記憶しステップ(109)へ移行する。又、ステップ
(105)ではフラグPRMVのセット状態が検知され
る。該フラグPRMVは「レンズ駆動フラグ」であり、
前回のAF制御でレンズ駆動を行っていなければ、ステ
ップ(109)へ移行し、改めてAF制御を行う。逆に
前回レンズ駆動が行われていたときには次のステップ(
106)でレンズが駆動停止しているか否かを判定する
Step (102): By shutter release operation,
It is determined whether this is the first AF control immediately after the shooting of one frame is completed (it is determined whether film feeding was performed in the AF control subroutine performed immediately before), and "Continuous shooting mode" is selected. ” or not. When it is determined that step (102) has been performed for the first time after the end of shooting, it is assumed that AF is in continuous shooting mode, and step (102) is performed.
At step 03), all flags in the microcomputer PR8 are set to "0" and all variables are set to "0". As a result, during the "continuous shooting mode", the past AF control status is initialized, and in the next step (104), the continuous shooting mode flag F
The AF is set to 1 to remember that AF control is being performed during continuous shooting, and the process moves to step (109). Further, in step (105), the set state of the flag PRMV is detected. The flag PRMV is a “lens drive flag”,
If the lens has not been driven in the previous AF control, the process moves to step (109) and AF control is performed again. Conversely, if the lens was driven last time, the next step (
In step 106), it is determined whether or not the lens has stopped driving.

該ステップ(106)では第1図で説明したように、マ
イコンPR3がレンズ通信バッファ回路、LCM。
In step (106), as explained in FIG. 1, the microcomputer PR3 operates as a lens communication buffer circuit, LCM.

レンズ内制御回路LPR3を介してレンズLNSと通信
を行い、レンズの状態をモニター通信を受信してチエツ
クする。今、レンズが停止していなければ、レンズは駆
動中であるのでAF制御サブルーチンを終了する。従っ
て、レンズが駆動状態にある限りステップ(106)に
てレンズが停止したか否かの判定が続行される。本発明
では上記レンズ駆動中のときはAF制御を行わず、レン
ズが停止している状態でのみAF制御を行うようにして
いるため、レンズ停止が行われて初めて次のステップ(
108)でPRMVを“0”にセットしてステップ(1
09)へ進む。
It communicates with the lens LNS via the in-lens control circuit LPR3, and checks the status of the lens by receiving monitor communication. If the lens is not stopped now, the lens is being driven, so the AF control subroutine ends. Therefore, as long as the lens is in the driving state, the determination as to whether the lens has stopped is continued in step (106). In the present invention, AF control is not performed while the lens is being driven, and AF control is performed only when the lens is stopped, so the next step (
108), set PRMV to “0” and proceed to step (1
Proceed to 09).

ステップ(109):オートフォーカスのモードを判別
し、マニュアルモードのときにはステップ(110)へ
移行する(不図示のモードスイッチにより「マニュアル
」を選択)。ステップ(110)で像信号入力のサブル
ーチンおよびステップ(111)、ステップ(112)
で焦点検出を表示のサブルーチンを実行した後、ステッ
プ(113)でAF制御のサブルーチンを終了する(各
サブルーチンについては後述)。
Step (109): Determine the autofocus mode, and if it is manual mode, proceed to step (110) ("manual" is selected by a mode switch (not shown)). Step (110) is a subroutine for image signal input, and steps (111) and (112)
After executing the focus detection and display subroutine in step (113), the AF control subroutine is ended (each subroutine will be described later).

ステップ(109)において、マニュアルモードでない
場合はステップ(114)で「ワンショットモード」か
否かを判別する。ここでワンショットモードであればス
テップ(115)へ進み合焦フラグJFの状態をみて「
前回合焦状態」であったか否かを判別する。ここでAP
制御モードが「ワンショットモード」で、かつ「前回合
焦」ならばステップ(116)でAF制御を終了する。
If it is determined in step (109) that the mode is not manual, it is determined in step (114) whether or not the mode is "one shot mode". If the mode is one-shot mode, proceed to step (115) and check the state of the focus flag JF.
It is determined whether or not the camera was in the "previously focused state". AP here
If the control mode is "one shot mode" and "previously focused", AF control is ended in step (116).

即ち、ワンショットモードのときには、−旦合焦すると
スイッチSWIがオフするまでは新たなAF制御は実行
しないようになっているものである。上記ステップ(1
15)にて前回合焦でなければ次のステップ(117)
へ移行する。
That is, in the one-shot mode, once the focus is achieved, new AF control is not executed until the switch SWI is turned off. Above step (1
15) If it is not in focus last time, go to the next step (117)
Move to.

ステップ(117):像信号入力サブルーチンを実行す
る。該像信号入力サブルーチンではまずコンピュータP
R5にてC3DRをHとなし駆動回路SDRを選択し、
SO倍信号該駆動回路SDRに伝える。このときのSO
倍信号蓄積開始命令であり、この命令に応じて駆動回路
SDRはCLR信号をラインセンサ装置SNSに伝えC
CDラインセンサの像蓄積信号をクリアーし、その後像
に対する蓄積動作を行わせる。ラインセンサ装置SNS
のCDDラインセンサCCD 、、CCD 2は撮影レ
ンズを介して入射する像光束がそれぞれ入射しており、
各センサCCD 、、CCD 2上の像位置が焦点状態
に応じて決定される。詳述すると被写体に対して合焦状
態では各センサCCD 、、CCD 2上の同一位置に
同一像パターンが投射され、前ピンまたは後ビ状態では
COD 、、CCD 2上の像パターンがそのピントず
れ方向及びずれ量に応じて対称的にずれた位置に投射さ
れる。従って、上記CCD 、とCCD2上の像パター
ン間の位置ずれ量及び方向を検知することにてピントず
れ方向及びずれ量が検知される。
Step (117): Execute the image signal input subroutine. In the image signal input subroutine, first the computer P
Set C3DR to H at R5 and select the drive circuit SDR,
The SO multiplied signal is transmitted to the drive circuit SDR. SO at this time
This is a double signal accumulation start command, and in response to this command, the drive circuit SDR transmits the CLR signal to the line sensor device SNS.
The image accumulation signal of the CD line sensor is cleared, and then an accumulation operation is performed on the image. Line sensor device SNS
The image light beams incident through the photographing lens are incident on the CDD line sensors CCD , , and CCD 2, respectively.
The image position on each sensor CCD 2 is determined according to the focus state. To explain in detail, when the subject is in focus, the same image pattern is projected at the same position on each sensor CCD 2, and when the front focus or rear focus is on, the image pattern on COD 2 is out of focus. The images are projected to symmetrically shifted positions depending on the direction and amount of shift. Therefore, by detecting the amount and direction of positional deviation between the image patterns on the CCD and the CCD 2, the direction and amount of out-of-focus can be detected.

上記の如(して焦点状態に応じた位置に投射された像パ
ターンを上記像信号クリアー後各CCD 、。
After clearing the image signal, the image pattern projected to the position according to the focus state is transmitted to each CCD as described above.

CCD2にて所定時間蓄積し、その後駆動回路SDRか
ら信号SH及びクロックφ1.φ2がセンサ装置SNS
に供給される。尚、上記像パターンの蓄積時間はSNS
内の蓄積制御用センサの出力AGCに基づいて決定され
るものである。
The CCD 2 accumulates data for a predetermined period of time, and then the signal SH and the clock φ1. φ2 is the sensor device SNS
supplied to In addition, the accumulation time of the above image pattern is SNS
This is determined based on the output AGC of the storage control sensor in the storage control sensor.

上記の如くしてセンサ装置SNSへ信号SHおよびクロ
ックφl、φ2が供給されると、センサ装置SNSの出
力端から各センサCCD 、、CCD 2に蓄積された
像信号が出力O8として順次時系列にて送出され、駆動
回路SDR内の増巾回路で増巾された信号AO3として
コンピュータPR3のアナログ入力端子へ順次入力する
。コンピュータPR3は自ら出力しているクロックCK
に同期して上記信号AO3を内部A/D変換機能にてA
/D変換後のデジタル像信号を順次RAMの所定アドレ
スに格納する。
When the signal SH and the clocks φl and φ2 are supplied to the sensor device SNS as described above, the image signals accumulated in each sensor CCD, . The signal AO3 is amplified by the amplification circuit in the drive circuit SDR and is sequentially input to the analog input terminal of the computer PR3. Computer PR3 outputs its own clock CK
The above signal AO3 is converted to A by the internal A/D conversion function in synchronization with
The digital image signals after /D conversion are sequentially stored at predetermined addresses in the RAM.

以上の動作にてセンサCCD 、、CCD 2上の像パ
ターンに応じた各センサ毎の像信号がデジタル値として
RAMに記憶されることになる。
Through the above operations, image signals for each sensor corresponding to the image pattern on the sensors CCD 2 are stored as digital values in the RAM.

上記像信号入力サブルーチンの詳細について第4図(a
)を用いて説明する。該サブルーチンではまずステップ
(201)の像信号入力がAF制御ルーチンからコール
されると、ステップ(202)でフラグAUXMOD 
(前回補助光モードであると1にセットされるフラグ)
により、前回のAF制御で「補助光モード」か否かを判
別する。補助光モードでないならばステップ(207)
へ移行し、補助光モードならばステップ(203)へ進
む。
Details of the above image signal input subroutine are shown in Figure 4 (a).
). In this subroutine, first, when the image signal input in step (201) is called from the AF control routine, the flag AUXMOD is set in step (202).
(Flag set to 1 if it was in auxiliary light mode last time)
It is determined whether the previous AF control was in "auxiliary light mode" or not. If it is not auxiliary light mode, step (207)
If the mode is auxiliary light mode, the process proceeds to step (203).

ステップ(203) :フラグAUXNOEM (所定
回数の投光がなされることにて1にセットされるフラグ
)で上記補助光の所定投光回数が完了しているか否かを
判定する。上記所定の投光回数が完了していればステッ
プ(207)へ移行するが完了していなければステップ
(204)へ進む。
Step (203): Determine whether or not the predetermined number of times the auxiliary light has been emitted has been completed using the flag AUXNOEM (a flag that is set to 1 when the emitted light has been emitted a predetermined number of times). If the predetermined number of times of light emitting has been completed, the process proceeds to step (207), but if not, the process proceeds to step (204).

ステップ(204) : 7ラグAUXJF (補助光
モードで合焦時工にセットされるフラグ)で前回補助光
投光下で合焦したか否かを判定する。合焦していれば補
助光を投光せずにステップ(207)へ移行し、合焦し
ていなければ次のステップ(204,1)へ進む。
Step (204): Determine whether or not focus was achieved under the previous auxiliary light projection using 7 lag AUXJF (a flag set when focusing in the auxiliary light mode). If the object is in focus, the process proceeds to step (207) without emitting the auxiliary light, and if the object is not in focus, the process proceeds to the next step (204, 1).

このAUXJFについては、サブルーチン「焦点検出」
のところで詳述するが、このフラグAUXJFは補助光
投光下で合焦したか否かの判定であり、AUXJFが1
の場合フラグAUXMODが補助光モードで、フラグA
UXNOEMが投光回数が所定回数以下という条件でも
補助光は投光しない。
For this AUXJF, subroutine "Focus detection"
As will be explained in detail below, this flag AUXJF determines whether or not focus is achieved under the auxiliary light projection, and if AUXJF is 1
If flag AUXMOD is auxiliary light mode, flag A
The auxiliary light is not emitted even under the condition that the number of times UXNOEM is emitted is less than or equal to the predetermined number of times.

ステップ(204,1) :ここで前回の蓄積時間カウ
ンタINTCNTを参照し、その内容が表わす時間を待
機する。実際には、INTCNTは1ms単位の値であ
るから、後述の1msタイマカウンタをINTCNT分
計数する、という動作を行うことになる。
Step (204, 1): Here, the previous accumulation time counter INTCNT is referred to and the time represented by its contents is waited. Actually, since INTCNT is a value in units of 1 ms, an operation is performed in which a 1 ms timer counter, which will be described later, is counted by INTCNT.

ステップ(205) 、補助光をオンする。Step (205): Turn on the auxiliary light.

マイコンPR3の出力端子SALの出力信号を1”にセ
ットすることにより、補助光用光源ALEDにトランジ
スタATRを介して電流が流れ光学系ALNSから補助
光の発光が開始される。
By setting the output signal of the output terminal SAL of the microcomputer PR3 to 1'', a current flows to the auxiliary light source ALED via the transistor ATR, and the optical system ALNS starts emitting auxiliary light.

ステップ(206) :補助光投光カウンタAUXCN
Tを1つカウントアツプする。
Step (206): Auxiliary light emission counter AUXCN
Count up T by one.

ステップ(207) :焦点検出用ラインセンサSNS
装置に光像の蓄積を開始させる。マイコンPR3がセン
サ駆動回路SDRに「蓄積開始コマンド」を送ると、該
センサ駆動回路SDRは、上記センサSNSの光電変換
素子部へのクリア信号CLRを“O”にして電荷の蓄積
を開始させる。
Step (207): Line sensor SNS for focus detection
Allow the device to start accumulating a light image. When the microcomputer PR3 sends an "accumulation start command" to the sensor drive circuit SDR, the sensor drive circuit SDR sets the clear signal CLR to the photoelectric conversion element section of the sensor SNS to "O" to start charge accumulation.

ステップ(208):蓄積時間カウンタINTCNTを
初期値0に初期セットする。
Step (208): Initialize the accumulation time counter INTCNT to an initial value of 0.

ステップ(209):蓄積時間タイマの1 m sタイ
マカウンタをリセットする。該カウンタはマイコンPR
3が有するタイマ機能を用いている。
Step (209): Reset the 1 ms timer counter of the accumulation time timer. The counter is microcomputer PR
The timer function of 3 is used.

ステップ(210):このフラグでは上記センサが蓄積
を終了したか否かを判定する。センサ駆動回路SDRか
らの信号INTENDが“1”になっているか否かを見
る。該センサ駆動回路SDRは前記ラインセンサSNS
の蓄積開始と同時に前記信号INTENDを“0”にし
、前記センサSNSからの蓄積制御用センサの出力AG
C信号をモニタして、該AGC信号が所定レベルになる
と、前記センサ駆動回路SDRからの信号INTEND
を“1″にセットし、同時に前記センサ駆動回路SDR
からの電荷転送信号SHを所定時間“H”にして、セン
サSNS内の光電変換素子部の電荷をCCD部に転送さ
せるように制御する。
Step (210): This flag determines whether the sensor has finished accumulating. Check whether the signal INTEND from the sensor drive circuit SDR is "1". The sensor drive circuit SDR is connected to the line sensor SNS.
At the same time as the start of accumulation, the signal INTEND is set to "0", and the output AG of the accumulation control sensor from the sensor SNS is set to "0".
C signal is monitored, and when the AGC signal reaches a predetermined level, the signal INTEND from the sensor drive circuit SDR is
is set to "1", and at the same time the sensor drive circuit SDR
The charge transfer signal SH from the sensor SNS is set to "H" for a predetermined period of time to control the charge in the photoelectric conversion element section in the sensor SNS to be transferred to the CCD section.

ここで、上記蓄積が終了ならばステップ(215)へ移
行し、まだ蓄積が終了していなければステップ(211
)へ進む。
Here, if the above accumulation is completed, the process moves to step (215), and if the accumulation is not completed yet, step (211) is performed.
).

ステップ(211):前記1 m sタイマが蓄積時間
l m sに達したか否かを判定する。l m sに達
していなければ再びステップ(210)へ戻り、既に、
1msに達していたら次のステップ(212)で蓄積時
間カウンタINTCNTを1つカウントアツプする。
Step (211): Determine whether the 1 m s timer has reached the accumulation time l m s. If l m s has not been reached, the process returns to step (210) and has already been completed.
If it has reached 1 ms, the next step (212) is to increment the accumulation time counter INTCNT by one.

ステップ(213):フラグINTCNTの内容を所定
数MAXINTと比較する。MAXINTは1ms単位
で表わされる最長蓄積時間であり、前記INTCNTが
MAXINT未満ならばステップ(209)へ戻り、再
び蓄積終了を待つことになる。ここでINTCNTが前
記最長蓄積時間MAXINTに一致す、ると、次のステ
ップ(214)で強制的に蓄積を終了させる。
Step (213): Compare the contents of the flag INTCNT with a predetermined number MAXINT. MAXINT is the longest accumulation time expressed in units of 1 ms, and if the INTCNT is less than MAXINT, the process returns to step (209) and waits for the accumulation to end again. If INTCNT matches the maximum storage time MAXINT, the storage is forcibly terminated in the next step (214).

この蓄積終了はマイコンPR3からセンサ駆動回路SD
Rへ「蓄積終了コマンド」を送出することで完了される
。前記センサ駆動回路SDRはマイコンPR8から「蓄
積終了コマンド」が送られると、前記電荷転送信号SH
を所定時間“H”にして光電変換部の電荷をCCD部へ
転送させる。
The end of this accumulation is sent from the microcomputer PR3 to the sensor drive circuit SD.
The process is completed by sending an "accumulation end command" to R. When the sensor drive circuit SDR receives an "accumulation end command" from the microcomputer PR8, it outputs the charge transfer signal SH.
is set to "H" for a predetermined period of time to transfer the charge in the photoelectric conversion section to the CCD section.

ステップ(215) :フラグAUXMCDで補助光モ
ードか否かを判定する。該フラグAUXMODが補助光
モードならばステップ(216)で補助光の投光をオフ
にする。即ちマイコンPRSの出力端子SALの信号を
“0”にして投光光源ALEDを不作動にする。尚ステ
ップ(216)については、補助光モードでない場合に
このステップを実行しても何ら悪影響がないのでステッ
プ(215)及び(216)は省略しても差し支えない
Step (215): Determine whether or not it is the auxiliary light mode using the flag AUXMCD. If the flag AUXMOD indicates the auxiliary light mode, the projection of the auxiliary light is turned off in step (216). That is, the signal at the output terminal SAL of the microcomputer PRS is set to "0" to disable the projection light source ALED. Regarding step (216), there is no adverse effect even if this step is executed when the mode is not auxiliary light mode, so steps (215) and (216) may be omitted.

ステップ(217) :蓄積時間カウンタINTCNT
と所定の定数AUXINTの比較が行われる。上記AU
XINTは蓄積時間に相応して表わされる低輝度蓄積時
間であり、INTCNT≧AUXINT(7)ときには
ステップ(219)の低輝度フラグLLFLGに“1″
をセットし、上記INTCNTがAUXINT未満のと
きには、上記低輝度フラグLLFLGを“0“にセット
する。
Step (217): Accumulation time counter INTCNT
A comparison is made between AUXINT and a predetermined constant AUXINT. Above AU
XINT is the low luminance accumulation time expressed in accordance with the accumulation time, and when INTCNT≧AUXINT(7), the low luminance flag LLFLG in step (219) is set to “1”.
is set, and when the INTCNT is less than AUXINT, the low luminance flag LLFLG is set to "0".

ステップ(220)では前記ラインセンサSNSの像信
号O8を駆動回路SDR内で増幅した信号AO8のA−
D変換およびRAMの所定アドレス内へ格納をマイコン
PR5内で行い、ステップ(221)にてメインルーチ
ン、すなわちステップ(118)へ戻る。
In step (220), the A-
D conversion and storage into a predetermined address of the RAM are performed in the microcomputer PR5, and in step (221) the process returns to the main routine, that is, step (118).

ステップ(118) :フラグFAFにて連続撮影モー
ドか否かを判定する。
Step (118): Determine whether or not it is continuous shooting mode using flag FAF.

フラグFAFが1、即ち連続撮影モードのときは次のス
テップ(121)へ移行し、0のときはステップ(11
9)へ進む。ステップ(119)以降の補助光に関する
フローを示しており、前記フラグFAFが1のときはス
テップ(121)へ移行することにより、連続撮影には
補助光に関する処理は行わない。
When the flag FAF is 1, that is, in continuous shooting mode, the process moves to the next step (121), and when it is 0, the process moves to step (11).
Proceed to 9). This shows the flow related to the auxiliary light after step (119), and when the flag FAF is 1, the process moves to step (121), so that no process related to the auxiliary light is performed for continuous shooting.

ステップ(119) :フラグAUXMODにて補助光
モードか否かを判定する。
Step (119): Determine whether or not it is the auxiliary light mode using the flag AUXMOD.

前回のAF副制御補助光モードであればフラグAUXM
ODが1であり、ステップ(128)へ移行する。フラ
グAUXMODが0のときはステップ(120)へ進み
、フラグLLFLGで低輝度か否かを判断する。フラグ
LLFLGは前述したサブルーチン「像信号入力」内で
設定されるフラグで、l即ち低輝度のときはステップ(
128)へ移行し、低輝度でなければステップ(121
)へ移行する。
Flag AUXM if the previous AF sub-control auxiliary light mode
OD is 1, and the process moves to step (128). When the flag AUXMOD is 0, the process proceeds to step (120), and it is determined whether the brightness is low based on the flag LLFLG. The flag LLFLG is a flag set in the subroutine "Image signal input" described above, and when the brightness is l, that is, the brightness is low, the step (
128), and if the brightness is not low, the process moves to step (121
).

ステップ(128)〜(135)は低輝度時の補助光制
御フローである。
Steps (128) to (135) are an auxiliary light control flow at low brightness.

ステップ(128) :このフラグでは補助光ユニット
がカメラに装着されているか否かを判断する。ここでは
上記補助光ユニットがカメラに装着されることによりオ
ンとなる不図示のスイッチの状態を検知することにより
判定する。
Step (128): This flag determines whether the auxiliary light unit is attached to the camera. Here, the determination is made by detecting the state of a switch (not shown) that is turned on when the auxiliary light unit is attached to the camera.

上記補助光ユニットがカメラに装着されていないときに
は、ステップ(121)へ移行し、AUXMODに“0
″をセットし補助光モードを解除する。
If the auxiliary light unit is not attached to the camera, the process moves to step (121) and AUXMOD is set to “0”.
” to cancel the auxiliary light mode.

補助光ユニットが装着されているときにはステ”/プ(
129) でAUXMODl:: ”1” ’e上セツ
ト補助光モードを設定する。ここで前記ステップ(11
9)にてフラグAUXMODが補助光モードのときにも
前記ステップ(129)を実行するようになっているが
、これは本発明のプログラムシーケンス進行の都合上行
っている。。
When the auxiliary light unit is installed, the step
129) Set the auxiliary light mode with AUXMODl:: "1"'e. Here, the step (11)
In step 9), the step (129) is executed even when the flag AUXMOD is in the auxiliary light mode, but this is done for convenience of the program sequence progress of the present invention. .

ステップ(130) :カウンタAUXCNTが“0″
にセットされているか否か判定する。このカウンタAU
XCNTは前述した「像信号入力」サブルーチン内のス
テップ(206)でカウントされる変数であり、補助光
投光下で光電変換素子に像信号の蓄積が行われるとカウ
ント数を1つカウントアツプする。尚、このカウンタA
UXCNTは、スイッチSWIがオフのときには第2図
に示すフローチャートのステップ(005)でクリアさ
れており、又、連続撮影モードのAF副制御おいては、
第3図のフローチャートに示すステップ(103)でク
リアされている。
Step (130): Counter AUXCNT is “0”
Determine whether it is set to . This counter AU
XCNT is a variable that is counted in step (206) in the above-mentioned "image signal input" subroutine, and when an image signal is accumulated in the photoelectric conversion element under illumination of an auxiliary light, the count number increases by one. . Furthermore, this counter A
UXCNT is cleared in step (005) of the flowchart shown in FIG. 2 when switch SWI is off, and in AF sub-control in continuous shooting mode,
It is cleared in step (103) shown in the flowchart of FIG.

従って、カウンタAUXCNT=“0″ということは、
シーケンス進行上今回初めて補助光モードであるという
ことを表わし、今回初めての補助光モードであるときに
はステップ(131)へ進み、今回の像信号入力による
AF副制御終了する。
Therefore, counter AUXCNT="0" means that
This indicates that the auxiliary light mode is being used for the first time in the progression of the sequence, and if it is the first time that the auxiliary light mode is being used, the process proceeds to step (131), and the AF sub-control based on the current image signal input is completed.

即ち、前記ステップ(117)にて入力した像信号は破
棄して、次回のAF副制御補助光投光下において、新た
な像信号を入力するようになされている。従9てステッ
プ(117)で入力した像信号は輝度を判定するための
みに使用されたとみることも可能である。
That is, the image signal input in step (117) is discarded, and a new image signal is input under the next AF sub-control auxiliary light projection. Therefore, it can be considered that the image signal input in step (117) is used only for determining brightness.

一方カウンタAUXCNTが′0″でなければ既に補助
光モードに入っているので、ステップ(132)でカウ
ンタAUXCNTを所定の定数AUXNUMを比較する
。このAUXNUMは補助光の投光制限回数であり、こ
のカウンタAUXCNTが投光制限回数AUXNUM未
満のときには、ステップ(122)に移行し、「焦点検
出」のサブルーチンを実行する。
On the other hand, if the counter AUXCNT is not '0'', it means that the auxiliary light mode has already been entered, so in step (132) the counter AUXCNT is compared with a predetermined constant AUUNNUM.This AUXNUM is the limit number of times the auxiliary light is emitted; When the counter AUXCNT is less than the limit number of light projections AUXNUM, the process moves to step (122), and a "focus detection" subroutine is executed.

前記カウンタAUXCNTがAUXCNT≧AUXNU
Mのときには(但し、実際のシーケンス上ではAUXC
NT>AUXNUMは生じない)ステップ(133)へ
移行する。
The counter AUXCNT is AUXCNT≧AUXNU
M (However, in the actual sequence, AUXC
NT>AUXNUM does not occur) The process moves to step (133).

ステップ(133)+ 7ラグAUXNOEMで補助光
の投光回数が完了したか否かを判定する。フラグAUX
NOEMで補助光の投光回数が既に前記所定の定数AU
XNUM回投光されたことが判定されると補助光の投光
回数が完了となり、それ以上補助光を投光しないように
する。即ち前述の「像信号入力」のサブルーチンの中で
フラグAUXMODが1で補助光モードでも、フラグA
UXNOEMが1で補助光投光回数が完了しているとき
には、像信号蓄積の際はもはや補助光は投光しない。
In step (133)+7 lag AUXNOEM, it is determined whether the number of times the auxiliary light is projected has been completed. Flag AUX
In NOEM, the number of times the auxiliary light is emitted has already reached the predetermined constant AU.
When it is determined that the auxiliary light has been emitted three times, the number of times the auxiliary light has been emitted is completed, and the auxiliary light is not emitted any more. That is, even if the flag AUXMOD is 1 in the subroutine for "image signal input" mentioned above and the auxiliary light mode is set, the flag A
When UXNOEM is 1 and the number of times the auxiliary light is projected has been completed, the auxiliary light is no longer projected during image signal accumulation.

前記ステップ(133)でフラグAUXNOEM で投
光回数が完了であればステップ(134)へ移行する。
In step (133), if the flag AUXNOEM indicates that the number of light projections has been completed, the process moves to step (134).

ステップ(134) :フラグLLFLGで低輝度か否
かを判定する。
Step (134): Determine whether the brightness is low based on the flag LLFLG.

このフラグLLFLGは前に述べたように「像信号入力
」サブルーチンで設定される低輝度フラグであり、フラ
グAUXNOEMで投光回数が完了していて、フラグL
LFLGで輝度を判定するということは、「補助光モー
ド下で既に所定回数の補助光の投光を終了して、もはや
投光しない状態」での輝度を判定することである。ここ
でフラグLLFLGが低輝度でないときには、ステップ
(121)へ移行し、フラグAUXMODに“0″をセ
ットし補助光モードを解除し次のステップ(122)へ
進む。ここでフラグLLFLGが低輝度でないと判定す
るということは、上述の状態で輝度が上昇すると補助光
モードが解除されて再び通常モードとなり、通常モード
でのAF制御を再開することになる。
As mentioned earlier, this flag LLFLG is a low brightness flag that is set in the "image signal input" subroutine.
Determining the brightness using LFLG means determining the brightness in "a state in which the auxiliary light has already been emitted a predetermined number of times under the auxiliary light mode and is no longer emitted." If the flag LLFLG is not low brightness, the process moves to step (121), sets the flag AUXMOD to "0", cancels the auxiliary light mode, and proceeds to the next step (122). Here, determining that the flag LLFLG is not low brightness means that when the brightness increases in the above-mentioned state, the auxiliary light mode is canceled and the normal mode returns, and the AF control in the normal mode is restarted.

上記ステップ(121)へ移行してくる場合は、ステッ
プ(118)でフラグFAFが1で連続撮影中(補助光
投光なし)と判定したとき、及びステップ(119)で
フラグAUXMODが補助光モードでないときに、次の
ステップ(120)でフラグLLFLGが0で低輝度で
ないと判定したときである。即ちAF制御が補助光モー
ドでもな(、被写体輝度が低輝度でもないというときに
は上記ステップ(121)へ移行するものである。
When proceeding to step (121) above, when it is determined in step (118) that the flag FAF is 1 and continuous shooting is in progress (no auxiliary light emission), and in step (119) the flag AUXMOD is set to auxiliary light mode. This is when it is determined in the next step (120) that the flag LLFLG is 0 and the brightness is not low. That is, when the AF control is not in the auxiliary light mode (and the subject brightness is not low brightness), the process moves to step (121).

一方上記フラグLLFLGが1で低輝度であると判別す
るとそのまま次のステップ(122)の「焦点検出」へ
移行する。
On the other hand, if the flag LLFLG is 1 and it is determined that the brightness is low, the process directly proceeds to the next step (122), ``focus detection''.

上記フローにおいて、ステップ(133)でフラグAU
XNOEMが補助光の投光回数完了のときのみフラグL
LFLGで低輝度か否かを判定している。
In the above flow, in step (133) the flag AU
Flag L only when XNOEM has completed the number of times the auxiliary light has been emitted.
LFLG determines whether the brightness is low or not.

この理由は補助光投光下においては、被写体の輝度を検
知する際、補助光の影響による被写体輝度の上昇が生じ
真の被写体輝度を判定することにはならないため、前記
フラグAUXNOEMがO1即ち補助光の投光回数が所
定以下のときには低輝度か否かの判定はしないようにし
ている。
The reason for this is that when detecting the brightness of the subject under fill light projection, the brightness of the subject increases due to the influence of the fill light, and the true brightness of the subject cannot be determined. When the number of times of light projection is less than a predetermined number, determination as to whether the brightness is low or not is not made.

次にステップ(122)焦点検出サブルーチンについて
第4図(b)を用いて説明する。
Next, the focus detection subroutine in step (122) will be explained using FIG. 4(b).

ステップ(303) :フラグAUXJFにて、過去に
おいて補助光投光下で合焦したか否かを判定する。
Step (303): Using the flag AUXJF, it is determined whether or not the focus was achieved under auxiliary light projection in the past.

前記補助光投光下で合焦していたときには、ステップ(
304)へ移行する。
When the focus is under the auxiliary light, the step (
304).

ステップ(304) :フラグLLFLGの状態検知を
行い、補助光を投光していない状態での輝度が低輝度か
否かを判定する。ここでフラグLLFLGが1で低輝度
であるときには次のステップ(305)でAF制御を終
了する。一方前記フラグLLFLGがOで低輝度でない
ときには被写体輝度が上昇したことにより、ステップ(
306)に進み、補助光モードフラグAUXMODおよ
び投光回数完了フラグAUXNOEM、合焦フラグAU
XJFを0″にクリアし、更に、補助光カウンタフラグ
AUXCNTを0”にクリアする。
Step (304): The state of the flag LLFLG is detected, and it is determined whether the brightness is low when the auxiliary light is not emitted. Here, when the flag LLFLG is 1 and the brightness is low, the AF control is ended in the next step (305). On the other hand, when the flag LLFLG is O and the brightness is not low, the brightness of the subject has increased, so step (
306), and set the auxiliary light mode flag AUXMOD, the number of light emission completion flag AUXNOEM, and the focus flag AU.
Clear XJF to 0'' and further clear auxiliary light counter flag AUXCNT to 0''.

ここで上記ステップ(303)〜(306)の動作につ
いて詳しく述べる。前記フラグAUXJFが01即ち以
前に補助光投光下で合焦したということは、現在の像信
号に関しては補助光を投光していない状態の宿号である
。即ち前述の「像信号入力」サブルーチンの中のステッ
プ(204)でフラグAUXJFが1で補助光投光下で
合焦したと判定したときは補助光をオンさせないように
している。従って、上記ステップ(304)で判定した
フラグLLFLGは、補助光を投光しない状態での輝度
判定をしており、このフラグLLFLGが1で低輝度と
判定したときには、補助光投光下で合焦したものの、そ
の後の輝度がまだ低輝度であることを表わしている。こ
の状態では、即ち、補助光投光下での合焦後において、
低輝度のときはAF制御を行わないようにして、合焦保
持するようにしたのがステップ(305)であり、この
ときのAF制御のワンショットモードと同じ動作になる
Here, the operations of steps (303) to (306) will be described in detail. The fact that the flag AUXJF is 01, that is, the focus was previously achieved under the projection of the auxiliary light, indicates that the current image signal is in a state where the auxiliary light is not projected. That is, when it is determined in step (204) in the above-mentioned "image signal input" subroutine that the flag AUXJF is 1 and focus is achieved under the projection of the auxiliary light, the auxiliary light is not turned on. Therefore, the flag LLFLG determined in the above step (304) determines the brightness without the auxiliary light being emitted. This indicates that even though the image has been focused, the subsequent brightness is still low. In this state, that is, after focusing under the auxiliary light projection,
At step (305), AF control is not performed when the brightness is low and focus is maintained, and the operation is the same as the one-shot mode of AF control at this time.

一方、上記フラグLLFLGが0で低輝度でないと判定
したときには、補助光投光下で合焦した後に補助光を投
光しない状態での輝度が低輝度ではなくなったというこ
とになり、ステップ(306)において、補助光に関係
するフラグ類とカウンタをクリアして再びAF制御を開
始させる。
On the other hand, if the flag LLFLG is 0 and it is determined that the brightness is not low, it means that the brightness without the fill light is no longer low after focusing under the fill light, and step (306 ), flags and counters related to the auxiliary light are cleared and AF control is started again.

上述のように補助光モードのときはAF制御モードがワ
ンショットモードあるいはサーボモードで作動している
に拘らず、ワンショットモードで作動するようになる。
As described above, in the auxiliary light mode, the AF control mode operates in the one-shot mode regardless of whether the AF control mode is operating in the one-shot mode or the servo mode.

この場合、被写体輝度が低輝度のときは上述のように、
ワンショットモードを続行するが、被写体輝度が周囲の
状況によって変化し、低輝度でなくなったときにはAF
制御モードのサーボモードの場合、上述したように再び
サーボモードでのAF制御を開始し、ステップ(307
)へ進む。
In this case, when the subject brightness is low, as described above,
One-shot mode continues, but if the subject brightness changes depending on the surrounding situation and is no longer low brightness, AF will start.
If the control mode is servo mode, start AF control in servo mode again as described above, and proceed to step (307).
).

ステップ(307) :前述した「像信号入力」サブル
ーチンからの像信号から撮影レンズのデフォーカス量D
EFの計算を実行する。
Step (307): Defocus amount D of the photographing lens is determined from the image signal from the above-mentioned "image signal input" subroutine.
Perform the EF calculation.

ここでは前述の像信号入力サブルーチンにて求められた
センサーCOD 、とCCD2上の像パターンに応じた
デジタル値を基に合焦までのずれ量並びにずれ方向をデ
フォーカス量DEFとして算出する。このデフォーカス
量の具体的な算出方法は本願の目的とは直接関係がない
のでその詳細な説明は省略するが、上記の様にセンサC
CD 、とCCD2上の像パターンの一致度が合焦状態
によって決定されるので、パターンに対応した上記各セ
ンサのデジタル値と比較処理し、そのデータの一致度を
求めることにより、合焦状態からのずれ量及びずれ方向
、即ちデフォーカス量DEFを求めるものである。
Here, based on the sensor COD obtained in the image signal input subroutine described above and the digital value corresponding to the image pattern on the CCD 2, the amount of deviation and the direction of deviation until focusing are calculated as the defocus amount DEF. The specific method of calculating this defocus amount is not directly related to the purpose of this application, so a detailed explanation thereof will be omitted, but as mentioned above, the sensor C
Since the degree of coincidence between the image pattern on the CD and CCD2 is determined by the focus state, the degree of coincidence between the image patterns on the CD and CCD2 is determined by the focus state. The amount and direction of deviation, that is, the defocus amount DEF are determined.

ステップ(308):デフォーカス量DEFと一定値J
FFLDを比較する。
Step (308): Defocus amount DEF and constant value J
Compare FFLD.

ここで、DEF>JFFLDのときは、ステップ(31
0)へ進み、合焦フラグJFを“O″にセットし焦点検
出サブルーチンを終了して第3図のステップ(123)
の表示へ移行する。
Here, when DEF>JFFLD, step (31
Step 0), set the focus flag JF to "O", complete the focus detection subroutine, and proceed to step (123) in Figure 3.
Shift to the display.

一方JFFLD>DEFと判定されたときにはステップ
(309)の合焦フラグJFをl”にセットしステップ
(312)へ進む。ここで上記JFFLDは一定の合焦
中を表わすものである。
On the other hand, when it is determined that JFFLD>DEF, the focus flag JF in step (309) is set to l'' and the process proceeds to step (312).Here, JFFLD represents a constant focus state.

ステップ(312):フラグAUXMODで補助光モー
ドであるか否かを判定する。
Step (312): Determine whether or not it is the auxiliary light mode using the flag AUXMOD.

フラグAUXMODが補助光モードならばステップ(3
13)で補助光投光下で合焦したことによりフラグAU
XJFに“l”をセットし、焦点検出サブルーチンを終
了して、第3図のステップ(123)の「表示」へ移行
する。
If flag AUXMOD is auxiliary light mode, step (3)
13), the flag AU was activated due to focusing under the auxiliary light.
"l" is set in XJF, the focus detection subroutine is ended, and the process moves to "display" in step (123) in FIG.

ステップ(123):r表示」については上述のAF制
御の合焦状態を単に合焦か否かを表示部材により表示す
るのみの機能であるので説明は省略する。
Step (123): "r display" is a function of simply displaying whether or not the focus state of the above-mentioned AF control is in focus using the display member, so its explanation will be omitted.

ステップ(124) :フラグJFで合焦か否かを判定
する。
Step (124): Determine whether or not focus is achieved using flag JF.

フラグJFは前述の「焦点検出」サブルーチン内で記憶
されるフラグで、このフラグJFが合焦状態を判定した
とき、即ち合焦のときには、ステップ(127)でAF
制御を終了し、合焦してないと判定したときには、ステ
ップ(125)へ進みレンズ駆動サブルーチンを行う。
Flag JF is a flag stored in the above-mentioned "focus detection" subroutine, and when this flag JF determines the in-focus state, that is, when in focus, AF is activated in step (127).
When the control is completed and it is determined that the lens is not in focus, the process proceeds to step (125) and a lens drive subroutine is performed.

レンズ駆動サブルーチンではマイコンPR3にて信号C
LCMを“1”となしバッファ回路LCMを指定する。
In the lens drive subroutine, the microcomputer PR3 outputs the signal C.
Set LCM to "1" to designate the buffer circuit LCM.

又、レンズ駆動量をSO倍信号して回路LCMに伝え、
SO倍信号DCL信号として制御回路LPR3に伝える
。該回路LPR3は上記レンズ駆動量に応じて信号LM
F又はLMRをHとなし、モータLMTRを所定方向に
回動し、撮影レンズLNSを光軸方向に移動させる。こ
のレンズの移動量はエンコーダENCにてモータされ移
動量に応じた信号5ENCを出力し、該信号5ENCと
回路LPR8に伝送された上記デフォーカス等を表わす
信号と比較され、両信号が一致した時に信号LMF、L
MRをLとなし、モータLMTRの回動を停止しレンズ
駆動を終了する。
In addition, the lens driving amount is transmitted to the circuit LCM as an SO multiplied signal,
The SO multiplied signal is transmitted to the control circuit LPR3 as the DCL signal. The circuit LPR3 outputs a signal LM according to the lens driving amount.
F or LMR is set to H, motor LMTR is rotated in a predetermined direction, and photographing lens LNS is moved in the optical axis direction. The amount of movement of this lens is motored by an encoder ENC, which outputs a signal 5ENC corresponding to the amount of movement, and this signal 5ENC is compared with the signal representing the defocus etc. transmitted to the circuit LPR8, and when both signals match, Signal LMF, L
MR is set to L, rotation of the motor LMTR is stopped, and lens driving is completed.

上記レンズ駆動量をレンズに伝えることでレンズ駆動サ
ブルーチンを終了し、ステップ(126)でレンズ駆動
フラグPRMVに“1″をセットし、ステップ(127
)でAF制御を終了する。
The lens drive subroutine is ended by transmitting the lens drive amount to the lens, and in step (126) the lens drive flag PRMV is set to "1", and in step (127)
) to end AF control.

次に第4図(c)のレンズ駆動サブルーチンステップ(
401)を詳述する。
Next, the lens drive subroutine step (
401) will be explained in detail.

ステップ(402):撮影レンズから「デフォーカス量
対繰り出し量の係数S」を入力する。デフォーカス量と
は前述したDEFであり、繰り出し量とは、焦点調節を
行うレンズの光軸方向の移動量を表わす。
Step (402): Input the "coefficient S of the amount of defocus versus the amount of extension" from the photographic lens. The defocus amount is the aforementioned DEF, and the extension amount represents the amount of movement of the lens that performs focus adjustment in the optical axis direction.

上記係数Sは上記撮影レンズが標準レンズの場合にはS
=1であり、撮影レンズがズームレンズの場合には上記
係数Sはズーミング位置によって変化するものである。
The above coefficient S is S when the above photographing lens is a standard lens.
= 1, and when the photographic lens is a zoom lens, the coefficient S changes depending on the zooming position.

ステップ(403) : rエンコーダl歯に相当する
繰り出し量PTHJを入力する。焦点調節を行うレンズ
が移動すると、この移動に伴ってエンコーダからパルス
が発生されるが、上記エンコーダl歯に相当する繰り出
し量PTHは、1歯当たりのレンズの移動量を表わして
いる。
Step (403): Input the feed-out amount PTHJ corresponding to the l tooth of the r encoder. When the lens that performs focus adjustment moves, a pulse is generated from the encoder in conjunction with this movement, and the amount of extension PTH corresponding to the encoder l tooth represents the amount of movement of the lens per tooth.

ステップ(404) :先に検出したデフォーカス量D
EF、及び前述したデフォーカス量対繰り出し量の係数
S並びにエンコーダ1歯に相当する繰り出し量PTT(
により焦点調節用レンズの移動量を上記エンコーダの歯
数で表わした整数値FPを次式で計算する。
Step (404): Previously detected defocus amount D
EF, the coefficient S of the defocus amount versus the feed-out amount described above, and the feed-out amount PTT corresponding to one encoder tooth (
An integer value FP representing the amount of movement of the focusing lens by the number of teeth of the encoder is calculated using the following equation.

FP=DEFxS/PTH ステップ(405) :上記ステップ(404)で求め
た整数値FPをレンズ駆動量として撮影レンズに送出し
てレンズの駆動を指示し、ステップ(406)で上記レ
ンズ駆動を終了する。
FP=DEFxS/PTH Step (405): The integer value FP obtained in the above step (404) is sent to the photographing lens as a lens drive amount to instruct the lens to drive, and the above lens drive is ended in step (406). .

上述の如く第4図(a)のステップ(204,1)が構
成されているため、補助光モードで補助光が点灯される
時には前回の補助光投光下での像蓄積時間、即ち補助光
投光時間を表わすINTCNTの内容時間の経過を待っ
て補助光が投光されることとなる。従って、AF動作ご
とに補助光が投光される時には前回の補助光投光時間に
応じて今回の補助光投光開始時点がシフトされる。よっ
て、各回AF動作時の補助光投光時間が長くなった場合
には次回の補助光投光開始までの時間も長くなり、補助
光源が発熱にて悪影響を受けることが防止されるもので
ある。
Since step (204, 1) in FIG. 4(a) is configured as described above, when the fill light is turned on in the fill light mode, the image accumulation time under the previous fill light projection, that is, the fill light is The auxiliary light is emitted after the content time of INTCNT representing the emitting time has elapsed. Therefore, when the auxiliary light is projected for each AF operation, the current auxiliary light projection start time is shifted according to the previous auxiliary light projection time. Therefore, if the auxiliary light projection time during each AF operation becomes longer, the time until the next auxiliary light projection starts also becomes longer, and the auxiliary light source is prevented from being adversely affected by heat generation. .

尚、これまで説明した実施例では、待機時間として、前
回の蓄積時間をそのまま採用しているが、これは所定係
数を乗じた値、例えば1/2の時間としても良い。また
、焦点検出処理には必ず有限の時間がかかるから、その
値をさらに減じて、純粋に発光、非発光の比を一定にし
ても良い。
In the embodiments described so far, the previous accumulation time is directly used as the standby time, but this may be a value multiplied by a predetermined coefficient, for example, 1/2 of the time. Furthermore, since focus detection processing necessarily takes a finite amount of time, that value may be further reduced to make the ratio of light emission and non-light emission pure constant.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、補助光源の発光
時間に応じた非発光期間の待機時間を設けることで光源
部の温度上昇を抑え、これにより補助光の発光回数を必
要以上に制限することなく、良好な焦点調節動作が可能
となる。
As explained above, according to the present invention, by providing a standby time of the non-emission period according to the emission time of the auxiliary light source, the temperature rise in the light source section is suppressed, thereby limiting the number of times the auxiliary light is emitted more than necessary. Good focus adjustment operation is possible without the need for

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

第1図は本発明に係る焦点検出装置を適用した一実施例
を示す回路図、第2図、第3図、第4図(a)。 (b)、  (C)は第工図実施例の動作を説明するた
めのプログラムを示す説明図である。 PR3・・・コンピュータ ALED・・・補助光源 ATR・・・トランジスター SNS・・・センサー装置
FIG. 1 is a circuit diagram showing an embodiment to which a focus detection device according to the present invention is applied, and FIGS. 2, 3, and 4(a). (b) and (C) are explanatory diagrams showing a program for explaining the operation of the first embodiment. PR3...Computer ALED...Auxiliary light source ATR...Transistor SNS...Sensor device

Claims (2)

【特許請求の範囲】[Claims] (1)補助光投光下での被写体からの光束を蓄積型セン
サーにて受光し、該センサーにて所定時間受光光束に応
じた信号を蓄積し、該蓄積信号に基づいて焦点調節を行
う自動焦点調節装置において、 前記補助光投光下での前記センサーによる蓄積動作を繰
り返えし実行する際に、前回の補助光消灯時点から今回
の補助光投光開始時点までの間隔を前回の補助光投光時
間に応じて設定する時間設定手段を設けたことを特徴と
する自動焦点調節装置。
(1) An automatic system that uses an accumulation sensor to receive the luminous flux from the subject under fill-in illumination, accumulates a signal corresponding to the received luminous flux for a predetermined period of time, and adjusts the focus based on the accumulated signal. In the focus adjustment device, when repeatedly performing the accumulation operation by the sensor under the auxiliary light emission, the interval from the previous auxiliary light extinguishing point to the current auxiliary light emission start point is determined based on the previous auxiliary light emission. An automatic focus adjustment device characterized by being provided with a time setting means for setting according to a light projection time.
(2)被写体からの光束を蓄積型センサーにて所定時間
受光させ、該センサー出力に応じて焦点状態を繰り返え
し検出する焦点検出装置において、前記蓄積型センサー
による所定時間の前記光束の受光に際して補助光手段を
所定時間投光状態になし、補助光投光下での被写体から
の光束に対するセンサー出力を得るとともに、各回補助
光投光終了から次回の補助光投光開始までの間隔を以前
の補助光投光時間に応じて調定する調定手段を設けたこ
とを特徴とする焦点検出装置。
(2) In a focus detection device that causes a storage type sensor to receive a luminous flux from a subject for a predetermined period of time and repeatedly detects a focus state according to the output of the sensor, the storage type sensor receives the luminous flux for a predetermined period of time. At this time, the auxiliary light means is kept in the flashing state for a predetermined period of time, and the sensor output for the luminous flux from the subject under the auxiliary light is obtained. What is claimed is: 1. A focus detection device comprising an adjusting means for adjusting according to the auxiliary light projection time.
JP13880889A 1989-05-30 1989-05-30 Automatic focus adjustment device Expired - Fee Related JPH0682168B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13880889A JPH0682168B2 (en) 1989-05-30 1989-05-30 Automatic focus adjustment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13880889A JPH0682168B2 (en) 1989-05-30 1989-05-30 Automatic focus adjustment device

Publications (2)

Publication Number Publication Date
JPH032739A true JPH032739A (en) 1991-01-09
JPH0682168B2 JPH0682168B2 (en) 1994-10-19

Family

ID=15230723

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13880889A Expired - Fee Related JPH0682168B2 (en) 1989-05-30 1989-05-30 Automatic focus adjustment device

Country Status (1)

Country Link
JP (1) JPH0682168B2 (en)

Also Published As

Publication number Publication date
JPH0682168B2 (en) 1994-10-19

Similar Documents

Publication Publication Date Title
JPH02254432A (en) Automatic focusing camera
US4801962A (en) Camera incorporating automatic focusing apparatus
JPH0229636A (en) Automatic focusing camera
JPH01134410A (en) Automatic focusing device
JPS63172239A (en) Auto-focusing device
JPS63172227A (en) Auto-focusing device
JPS63172231A (en) Auto-focusing device
JPH032739A (en) Automatic focusing device
JPH0478832A (en) Focus detecting device
JPS63172207A (en) Focus detector
JPS63172226A (en) Auto-focusing device
JPH03225332A (en) Camera provided with autofocusing device
JP3548393B2 (en) Camera with automatic focusing device and focus measuring device therefor
JPH05346536A (en) Focal point detecting device
JPH06313842A (en) Automatic focusing camera
JPS63172225A (en) Focus detector
JPS63172213A (en) Focused state deciding device
JPH024207A (en) Focus detector
JP4262034B2 (en) Optical device and camera
JPS63172235A (en) Auto-focusing device
JPH085905A (en) Camera with focus detecting device
JP3544052B2 (en) Optical device and camera
JPS63172232A (en) Auto-focusing device
JPS63172243A (en) Auto-focusing device
JPS63172224A (en) Auto-focusing device

Legal Events

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