JPH0797173B2 - Automatic focus adjustment device - Google Patents

Automatic focus adjustment device

Info

Publication number
JPH0797173B2
JPH0797173B2 JP62105422A JP10542287A JPH0797173B2 JP H0797173 B2 JPH0797173 B2 JP H0797173B2 JP 62105422 A JP62105422 A JP 62105422A JP 10542287 A JP10542287 A JP 10542287A JP H0797173 B2 JPH0797173 B2 JP H0797173B2
Authority
JP
Japan
Prior art keywords
focus
flag
lens
mode
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 - Lifetime
Application number
JP62105422A
Other languages
Japanese (ja)
Other versions
JPS62269915A (en
Inventor
正隆 浜田
賢司 石橋
徳治 石田
信行 谷口
博司 大塚
Original Assignee
ミノルタ株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ミノルタ株式会社 filed Critical ミノルタ株式会社
Priority to JP62105422A priority Critical patent/JPH0797173B2/en
Publication of JPS62269915A publication Critical patent/JPS62269915A/en
Publication of JPH0797173B2 publication Critical patent/JPH0797173B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、自動焦点調節装置に関し、特に合焦したこ
とを撮影者に知らす表示手段を備えた自動焦点調節装置
に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic focus adjusting device, and more particularly to an automatic focus adjusting device provided with a display means for notifying a photographer that an image is in focus.

[従来の技術] 従来、焦点検出結果により撮影レンズを駆動し、焦点ず
れ量が所定の合焦判定ゾーンに入ると合焦であると表示
する自動焦点調節装置が提案されている。この装置によ
ると、撮影者はこの合焦表示により合焦したことを確認
した後にシャッターレリーズを行うことによりピントの
合った撮影を行うことができる。
[Prior Art] Conventionally, there has been proposed an automatic focus adjustment device that drives a taking lens according to a focus detection result and displays that the object is in focus when a defocus amount enters a predetermined focus determination zone. According to this device, the photographer can perform the in-focus photographing by performing the shutter release after confirming the in-focus state by the in-focus display.

[発明が解決しようとする問題点] ところが、この従来装置において、被写体が動いている
ときには、レンズ駆動中に焦点がずれ、いつまでも所定
の合焦判定ゾーンに入らず合焦表示が全く行われない。
そのため、撮影者はどのような焦点状態にあるのかが確
認できず、全くピントの合っていない状態でシャッター
レリーズを行ってしまうという問題があった。
[Problems to be Solved by the Invention] However, in this conventional apparatus, when the subject is moving, the focus is deviated during lens driving, and the focus is not displayed in a predetermined focus determination zone forever and no focus display is performed. .
Therefore, there is a problem that the photographer cannot confirm what kind of focus state the subject has, and the shutter release is performed in a state where the subject is not in focus at all.

[問題点を解決するための手段] 本願発明の自動焦点調節装置は、被写体に対する撮影レ
ンズの焦点ずれ量を繰り返し検出する焦点検出手段と、 上記焦点ずれ量に基づいて撮影レンズを駆動する駆動手
段と、 上記焦点検出手段から繰り返して出力される複数の焦点
ずれ量に基づいて、上記被写体が動体であるかどうかを
判定する動体判定手段と、 上記動体判定手段によって動体でないと判定された場合
は、上記焦点ずれ量が第1の合焦判定ゾーン内であると
き合焦と判定し、一方、動体であると判定された場合
は、上記焦点ずれ量が上記第1の合焦判定ゾーンよりも
広く設定した第2の合焦判定ゾーン内にあるときに合焦
と判定する合焦判定手段と、 上記合焦判定手段によって合焦と判定されると、合焦の
表示を行う表示手段とを有することを特徴とする。
[Means for Solving Problems] An automatic focus adjustment device according to the present invention includes a focus detection unit that repeatedly detects a defocus amount of a photographing lens with respect to a subject, and a driving unit that drives the photographing lens based on the defocus amount. And a moving body determination unit that determines whether or not the subject is a moving body based on a plurality of defocus amounts repeatedly output from the focus detection unit, and if the moving body determination unit determines that the subject is not a moving body, , When the amount of defocus is within the first focus determination zone, it is determined to be in focus. On the other hand, when it is determined to be a moving body, the amount of defocus is lower than that of the first focus determination zone. A focus determination unit that determines the focus when it is within the widely set second focus determination zone, and a display unit that displays the focus when the focus determination unit determines that the focus is set. Have And wherein the door.

[作用] 上記のように、被写体が静止している場合には第1の合
焦ゾーンが設定されるが、被写体が動体である場合に
は、この第1の合焦ゾーンより広く設定した第2の合焦
ゾーンでもって被写体の合焦状態が判定されるため、被
写体が合焦位置に正確に来なくても合焦近傍位置で来れ
ば合焦と判定され表示されるので、この合焦表示を確認
した後にシャッターレリーズを行えばほぼピントの合っ
た撮影を行うことが可能となる。
[Operation] As described above, when the subject is stationary, the first focus zone is set, but when the subject is a moving body, the first focus zone set wider than the first focus zone is set. Since the in-focus state of the subject is determined based on the in-focus zone of 2, even if the subject does not come to the in-focus position accurately, it is determined to be in-focus and displayed if the subject comes near the in-focus position. If you release the shutter after confirming the display, it is possible to take pictures that are almost in focus.

[実施例] 第24図は本願発明の原理を説明するためのグラフであ
る。レンズ停止中の時点P1で、デフォーカス量D5,D6
基づき被写体に対して追随遅れが生じていると判断され
ると、積分I6時の演算C6によりP1の時点で追随補正がか
かり、レンズはQ1では停止させず、補正量WRの分更にレ
ンズを移動させQ2までもってくる。この補正量WRについ
ては後述するが、被写体がカメラの撮影レンズ光軸方向
に移動するときの移動量をカメラのフィルム面でのデフ
ォーカス量としてとらえたものである。この移動量は、
合焦検出の単位周期TI当たりの傾きに換算して求めてお
く。第25図の場合、次のレンズ駆動時間をTIと考え、遅
くとも時間TIの後には追い付くと考えるわけである。よ
しんば、この時間TIにおける補正量WRを越える時間レン
ズ駆動する必要があるような被写体の速度については追
随遅れが生じるが、とりわけ速い被写体でないかぎりは
合焦と判断出来る範囲に撮影レンズが入ってくると言う
ことで、被写体に追いついているということが出来る。
又、このモデルでは、被写体の移動を、フィルム面上の
デフォーカス量で一次関数と仮定したが、実際には、例
えば、被写体がカメラに向かって定速で接近してくる
時、デフォーカス量の変化は一次関数にはならず、高次
関数となる。この場合も、追随補正しても補正量が不足
するが、合焦域には入っているので追随しているといえ
る。なおこの第24図の場合の目標補正位置は、積分I8
中点P3である。
[Example] FIG. 24 is a graph for explaining the principle of the present invention. If it is determined that there is a tracking delay with respect to the subject based on the defocus amounts D 5 and D 6 at the time P 1 when the lens is stopped, the calculation C 6 at integration I 6 will follow at the time P 1. The correction is applied and the lens is not stopped at Q 1 , but the lens is moved further by the correction amount WR and brought to Q 2 . The correction amount WR will be described later, but the amount of movement when the subject moves in the optical axis direction of the photographing lens of the camera is taken as the defocus amount on the film surface of the camera. This movement is
It is calculated by converting it to the slope per unit period TI of focus detection. In the case of FIG. 25, the next lens drive time is considered to be TI, and it is considered that it will catch up after the time TI at the latest. Goodbye, there is a delay in tracking the speed of the subject that needs to be driven for a time that exceeds the correction amount WR at this time TI, but unless the subject is particularly fast, the shooting lens enters the range that can be determined to be in focus. By saying, you can say that you are catching up with the subject.
Also, in this model, the movement of the subject is assumed to be a linear function of the defocus amount on the film surface, but in reality, for example, when the subject approaches the camera at a constant speed, the defocus amount The change of is not a linear function, but a higher-order function. In this case as well, the correction amount is insufficient even if the follow-up correction is made, but it can be said that the correction amount is still in the in-focus range. The target correction position in the case of FIG. 24 is the midpoint P 3 of the integral I 8 .

積分I6の中点P0から演算C6の終点P1まではレンズを動か
していないため、この間にも被写体の追随遅れが生じ
る。この遅れ分と、次のレンズ駆動中(尚、この間に
は、積分及び演算の1周期が入る。)の遅れ分とを考え
なければならない。即ち、レンズ停止中に、被写体が動
いて追随遅れが生じたときには、積分I6から積分I7を通
って積分I8の中点までの被写体の動きを予想してP1の時
点で補正をかける必要がある。即ち、この場合は、P1
2WRの補正を加えればよいことになる。
Since the lens is not moved from the midpoint P 0 of the integral I 6 to the end point P 1 of the calculation C 6 , a tracking delay of the subject also occurs during this period. It is necessary to consider this delay amount and the delay amount during the driving of the next lens (note that one cycle of integration and calculation is entered during this period). That is, when the subject moves and the tracking delay occurs while the lens is stopped, the movement of the subject from the integration I 6 through the integration I 7 to the midpoint of the integration I 8 is predicted, and correction is performed at the time point P 1. You need to call. That is, in this case, P 1
2WR correction should be added.

この目標の積分I8の中点というのは、P1からみて、次の
積分I7の結果が出てくる時点P2を目標にすることとほぼ
同じ意味を持つ。なぜなら、ここでは、積分時間が短い
ので、P2≒P3と見なしているわけである。ここで演算が
50msecかかるのに対し、積分が数msec以下である。
The midpoint of the target integral I 8 has almost the same meaning as the target of the point P 2 when the result of the next integral I 7 appears from the viewpoint of P 1 . Because here, the integration time is short, so we assume that P 2 ≈P 3 . Here the operation is
It takes 50 msec, but the integration is less than a few msec.

第25図は、レンズ駆動中の時点P4で、D3とD4のデフォー
カス量をもとにして被写体に対して追随遅れが生じてい
ると判断した場合を示す。更には、停止中に追随モード
に入ることを判別された場合も含めて追随モードで被写
体を追い掛けている最中の、追随補正が続けて加えられ
た状態で、レンズ駆動している状態を示す。時点P4で追
随モードに入り補正がかかると、積分I3で得られたデー
タに基づいて演算されたデフォーカス量だけレンズを駆
動し、駆動し終えてもQ1ではレンズを止めず、更に2WR
分を動かす。第24図と同様に、補正目標時点は次の積分
I6のデータに基づく演算の結果が求まるP6のそばの積分
I7の中点である。これは、追随遅れの検出が行われた積
分I4の中点からちょうど合焦検出演算の2周期分にあた
る。これは、次の結果が出る1周期の時間内に今回の検
出結果が出るまでにかかった1周期との合計、2周期分
を補正駆動しようとしてしまおうとするものである。以
下同様に繰り返されるが、このレンズ駆動でも追い付か
ないとなった場合、即ち追随モード中に補正値を加えた
駆動カウント値が前以て定めたカウント値より大きい場
合には、レンズ駆動速度を切り替える。図では、Q2のと
ころで切り替っている。駆動速度が切り替えられても、
補正値及び目標値はおなじように考えている。途中で追
い付いて、演算結果により駆動方向が反転すれば追随補
正は行わないようにする。
FIG. 25 is a time P 4 in the lens drive, showing a case where it is determined that the follow delay with respect to the subject based on the defocus amount of D 3 and D 4 occurs. Furthermore, the lens drive state is shown in the state where the tracking correction is continuously added while the object is being tracked in the tracking mode including the case where it is determined that the tracking mode is entered during the stop. . When the correction enters the tracking mode when P 4 such drives the defocus amount by lens which is calculated based on data obtained by integrating I 3, without stopping the lens in Q 1 be finished driving, further 2WR
Move minutes. Similar to Fig. 24, the correction target time is
Integral near P 6 which gives the result of the operation based on the data of I 6.
It is the midpoint of I 7 . This corresponds to just two cycles of focus detection calculation from the midpoint of the integral I 4 where the tracking delay is detected. This is to try to perform correction driving for a total of two cycles including the one cycle taken until the detection result of this time is output within the time of one cycle when the next result is output. The same operation is repeated thereafter, but if the lens drive cannot catch up, that is, if the drive count value obtained by adding the correction value during the follow-up mode is larger than the preset count value, the lens drive speed is switched. . In the figure, it switches at Q 2 . Even if the drive speed is switched,
The correction value and the target value are considered in the same way. If it catches up on the way and the driving direction is reversed according to the calculation result, the follow-up correction is not performed.

次に、第26図を用いて被写体のカメラ光軸方向の移動に
対する合焦検出の単位周期TI当たりの傾きを求める方向
を説明する。
Next, the direction in which the tilt per unit period TI of focus detection with respect to the movement of the subject in the camera optical axis direction is obtained will be described using FIG.

図において、単位合焦検出周期というのは、S1〜S2,S3
〜S4またはT1〜T3,T1′〜T3′等である。そして、これ
らは、連続しており、同一被写体を見ているものとし
て、各時間は同じと見なす。現在位置を演算C3とする。
前回の積分によって求まるデフォーカス量をLERRとす
る。尚、これが求まるのはT3の時点である。今回の積分
によって求まるデフォーカス量をERRとする。これが求
まるのは、T3′の時点である。
In the figure, the unit focus detection cycle means S 1 to S 2 , S 3
˜S 4 or T 1 ˜T 3 , T 1 ′ ˜T 3 ′. Then, it is assumed that these are continuous and that the same subject is viewed, and that each time is regarded as the same. The current position is calculated as C 3 .
The defocus amount obtained by the previous integration is LERR. It should be noted that this is obtained at the time of T 3 . The defocus amount obtained by this integration is ERR. This is obtained at time T 3 ′.

被写体の単位周期当たりの移動量に対応するデフォーカ
ス量、即ち、傾きWRは、図より WR=ERR+ITI−LERR として求まる。ここでITIは前回の積分から今回の積分
までの間のレンズ移動量である。前回の積分中心のレン
ズの相対位置は、積分開始時刻T1及び終了時刻T2のレン
ズの相対位置の和の1/2として求まる。このT1,T2はS1
時点でのデフォーカス量LERR′を演算C1中でレンズ駆動
カウント数に変換し、イベントカウンタにセットした値
である。一方、レンズには、フォーカシングエンコーダ
がセットされており、レンズが動けばエンコーダからパ
ルスが出力される。この信号は、イベントカウンタの入
力に接続されており、イベントカウンタはパルスが来る
たびにカウントダウンするようになっている。従って、
レンズの移動した量はこのイベントカウンタの値を読め
ばわかる。この値がT1,T2である。従って、(T1+T2)/
2=MILで前回の中心が求まる。
The defocus amount corresponding to the movement amount of the subject per unit cycle, that is, the inclination WR is obtained from the figure as WR = ERR + ITI-LERR. Where ITI is the amount of lens movement from the previous integration to the current integration. The relative position of the lens at the previous integration center is obtained as 1/2 of the sum of the relative positions of the lenses at the integration start time T 1 and the integration time T 2 . These T 1 and T 2 are values set in the event counter by converting the defocus amount LERR ′ at the time of S 1 into the lens drive count number in the calculation C 1 . On the other hand, a focusing encoder is set on the lens, and when the lens moves, a pulse is output from the encoder. This signal is connected to the input of the event counter, which is adapted to count down each time a pulse arrives. Therefore,
The amount of lens movement can be known by reading the value of this event counter. These values are T 1 and T 2 . Therefore, (T 1 + T 2 ) /
2 = Find the center of the previous time with MIL.

次に、第27図を使ってこの追随モードに入ってAFしてい
る時に、シャッタがレリーズされた場合について説明す
る。本願発明においては、追随性を上げるためにレリー
ズタイムラグ中にもレンズ駆動を行うようになってい
る。即ち、レリーズ信号が入って露出動作が開始される
までの間の、例えば一眼フレックスカメラのレフレツク
スミラー上昇の間にもレンズを駆動するわけである。も
っとも、この間はミラーが上昇しているから、ミラーを
介した光を受光して合焦を検出する焦点検出方式では、
焦点検出(積分及び演算)は出来ない。従って、ミラー
上昇中に被写体が移動する量WSを予め演算により求め
る。このレリーズタイムラグ時間をRTSとすると、単位
合焦検出時間TI当たりの被写体の動きWRからWS=WR×RT
S/TIとなる。このWSを追随補正量として露出動作前まで
にレンズを動かし終えて停止させる。そして、フィルム
が露光された後にミラーの下降が始まると同時にフィル
ムの自動巻き上げ、シャッタコッキングの巻き上げ動作
が開始される。(必ずしも自動巻き上げが行なわれるよ
うになっている必要は無い。) この時、カメラが合焦状態に達することよりもシャッタ
のレリーズを優先するレリーズ優先モードになってい
て、合焦になるまえにシャッタがレリーズされたとす
る。撮影の結果は当然ぼけた写真になるが、カメラが連
続して撮影する連写モードになっていれば、2枚目以降
の写真はなるべくピントが合って欲しい。そこで、ミラ
ー下降の間に(この間、ミラーが下降位置に安定するま
では積分、演算は再開出来ない。)露光時に合焦状態に
至らなかった量だけ、積分再開に先立ってレンズ駆動さ
せておく。図では、積分再開時にレンズを停止させてい
るが、動かしたまま積分しても問題はない。
Next, with reference to FIG. 27, a case where the shutter is released during the AF in the following mode will be described. In the present invention, the lens is driven even during the release time lag in order to improve the followability. That is, the lens is driven even before the exposure operation is started after the release signal is input, for example, while the reflex mirror of the single-lens flex camera is raised. However, since the mirror is raised during this period, the focus detection method that receives light through the mirror to detect the focus is
Focus detection (integration and calculation) is not possible. Therefore, the amount WS of movement of the subject while the mirror is raised is calculated in advance. If this release time lag time is RTS, the movement of the subject per unit focus detection time TI is calculated from WR to WS = WR × RT
It becomes S / TI. This WS is set as a tracking correction amount, and the lens is moved and stopped before the exposure operation. Then, after the film is exposed, the mirror starts to descend, and at the same time, the film is automatically wound and the shutter cocking is started. (It is not always necessary to automatically wind the film.) At this time, the camera is in the release priority mode that prioritizes the shutter release rather than the camera reaching the in-focus state. Assume that the shutter is released. Of course, the result of shooting is a blurred photo, but if the camera is in continuous shooting mode that shoots continuously, the second and subsequent photos should be focused as much as possible. Therefore, while the mirror is descending (during this time, integration and calculation cannot be resumed until the mirror is stabilized at the lowered position.) The lens is driven by an amount that does not reach the in-focus state during exposure before the integration is resumed. . In the figure, the lens is stopped when the integration is restarted, but there is no problem if the integration is performed while moving.

第1図は本願発明の実施例に用いるカメラ制御回路のブ
ロック図である。(1)はカメラのシーケンス制御及び
演算を行うマイクロコンピュータ(以下マイコンと言
う)、(2)はマイコン(1)からの露出開始・終了信
号に応じてそれぞれシャッタの開閉を行うと共に、ミラ
ーアップ信号に応じてミラーアップ及び絞り制御を行な
う露出制御回路、(3)は測光回路で被写体輝度に応じ
た信号をデジタル化してマイコン(1)へ送出する。
(4)はフィルム感度自動読み取り回路で、フィルム感
度情報をデジタル化してマイコン(1)へ送出する。
(5)はマイコン(1)からの信号によりモーターを駆
動してフィルムを1駒巻き上げる一駒巻き上げ回路であ
り、一駒巻き上げ検出スイッチ(S9)のONによりモータ
の駆動を停止する。(6)は絞り値及びシャッタ速度を
設定する設定回路、(7)はスイッチ(S1)のON、OFF
に連動してそれぞれ1個のパルスを発生するパルス発生
回路、(8)は焦点検出に用いるCCD(9)とマイコン
(1)との間に設けられたインターフェース回路で、マ
イコン(1)からの信号により、CCD(9)の電荷蓄積
の開始及び終了の制御やCCD(9)のデータをA/D変換し
てマイコン(1)へ出力する等の制御を行う。
FIG. 1 is a block diagram of a camera control circuit used in an embodiment of the present invention. (1) is a microcomputer (hereinafter referred to as a microcomputer) that performs sequence control and calculation of the camera, and (2) opens and closes a shutter in response to an exposure start / end signal from the microcomputer (1) and a mirror-up signal. An exposure control circuit (3) for performing mirror up and aperture control according to the above, and a photometry circuit digitizes a signal corresponding to the subject brightness and sends it to the microcomputer (1).
(4) is a film sensitivity automatic reading circuit, which digitizes the film sensitivity information and sends it to the microcomputer (1).
(5) is a one-frame winding circuit that drives the motor in response to a signal from the microcomputer (1) and winds one frame of film, and the drive of the motor is stopped by turning on the one-frame winding detection switch (S9). (6) is a setting circuit for setting the aperture value and shutter speed, and (7) is ON / OFF of the switch (S1).
A pulse generation circuit that generates one pulse each in conjunction with, and (8) is an interface circuit provided between the CCD (9) used for focus detection and the microcomputer (1). The signal controls the start and end of charge accumulation in the CCD (9) and A / D-converts the data in the CCD (9) and outputs it to the microcomputer (1).

(10)はマイコン(1)からの信号に基づいて、焦点調
節のために不図示の撮影レンズの焦点調節光学系を駆動
するモーター(M)を制御するモーター制御回路、(1
1)はモーター(M)の回転をモニターするエンコーダ
で、モーター(M)が1回転するたびに16個のパルスを
発生するようになっている。(12)は撮影レンズに設け
られたレンズ回路で、レンズ毎に固有なデータをマイコ
ン(1)に送る。(13)は焦点検出時に用いられる補助
光発光装置である。(14)は焦点検出状態を表示する表
示回路、(15)は連続的に撮影を繰り返す連写モード時
に一定の時間毎にレリーズ信号を発生するタイマであ
る。(E)は電源電池であり、マイコン(1)、後述の
スイッチ、リセット用抵抗(RR)及びコンデンサ(C
R)、及び給電用トランジスタ(Tr1)に電源を直接供給
する。これ以外の回路には給電用トランジスタ(Tr1
を介して電池の電圧が供給される。
(10) is a motor control circuit that controls a motor (M) that drives a focus adjustment optical system of a photographing lens (not shown) for focus adjustment based on a signal from the microcomputer (1).
1) is an encoder that monitors the rotation of the motor (M), and generates 16 pulses each time the motor (M) makes one rotation. Reference numeral (12) is a lens circuit provided in the taking lens, which sends unique data to each lens to the microcomputer (1). (13) is an auxiliary light emitting device used for focus detection. (14) is a display circuit for displaying a focus detection state, and (15) is a timer for generating a release signal at regular time intervals in continuous shooting mode in which shooting is continuously repeated. (E) is a power supply battery, and includes a microcomputer (1), a switch described later, a reset resistor (RR), and a capacitor (C).
R) and power supply transistor (Tr 1 ) are directly supplied with power. For other circuits, power supply transistor (Tr 1 )
The voltage of the battery is supplied via.

次に、スイッチの説明をする。(S1)は不図示のレリー
ズ釦押下の第一ストロークでONし、マイコン(1)はこ
のスイッチ(S1)のONあるいはレリーズ釦を離すことに
よるOFFで後述のフロー(AFS)を実行する。(S2)はレ
リーズ釦が第一ストロークより長い第2ストロークまで
押下されたときONし、このONによりマイコン(1)は第
16図(a)図示の後述のレリーズのフローを実行する。
(S3)はミラーアップ完了でONするスイッチで、一駒巻
き上げ機構によるフィルム巻き上げにより不図示のレリ
ーズ部材がチャージされるとスイッチ(S3)はOFFの状
態になる。(S4)は撮影レンズが一旦合焦状態に達する
とそれ以降の焦点検出動作を停止する所謂ワンショット
モードと、一度合焦状態に達しても焦点検出を続けて行
う所謂コンテニュアスモードとを選択するスイッチであ
る。(S5)は露出モード設定スイッチであり、設定され
たモードにより、2ビットの信号がマイコン(1)に送
られる。本実施例のカメラが有する露出制御モードは、
プログラムモード(以下Pモードという)、絞り優先モ
ード(以下Aモードという)、シャッタ速度優先モード
(以下Sモードという)、マニュアルモード(以下Mモ
ードという)の4種類である。
Next, the switch will be described. (S1) is turned on by the first stroke of pressing a release button (not shown), and the microcomputer (1) executes the flow (AFS) described later by turning on the switch (S1) or turning off the release button. (S2) is turned on when the release button is pressed down to the second stroke, which is longer than the first stroke, and this ON causes the microcomputer (1) to
A release flow described later in FIG. 16A is executed.
(S3) is a switch that is turned on when the mirror is raised, and the switch (S3) is turned off when a release member (not shown) is charged by film winding by the one-frame winding mechanism. (S4) is a so-called one-shot mode in which the focus detection operation is stopped once the shooting lens reaches the in-focus state, and a so-called continuous mode in which the focus detection is continued even if the in-focus state is reached once. This is the switch to select. (S5) is an exposure mode setting switch, and a 2-bit signal is sent to the microcomputer (1) according to the set mode. The exposure control mode of the camera of this embodiment is
There are four types: a program mode (hereinafter referred to as P mode), an aperture priority mode (hereinafter referred to as A mode), a shutter speed priority mode (hereinafter referred to as S mode), and a manual mode (hereinafter referred to as M mode).

(S6)は、ピント状態に拘わらずシャッタレリーズを優
先するレリーズ優先モードと、ピント状態によってレリ
ーズの許可あるいは禁止を行う焦点優先モード(以下AF
優先モードという)とを切り換えるスイッチ、(S7)は
焦点検出時に駆動されるレンズが、最近あるいは最遠ま
たは無限遠合焦位置まで駆動されたことを検出する終端
検出スイッチで、このスイッチ(S7)がONすることによ
り、マイコン(1)は後述の終端処理フローを実行す
る。(S8)は連続撮影モードと一駒撮影モードとを切り
換える切り換えスイッチ、(S9)は露出完了時にONし、
一駒巻き上げ完了でOFFする一駒巻き上げ検出スイッチ
である。
(S6) is a release priority mode in which shutter release is prioritized regardless of the focus state, and a focus priority mode in which release is permitted or prohibited depending on the focus state (hereinafter referred to as AF
Switch called (priority mode), (S7) is a terminal detection switch that detects that the lens driven during focus detection has been driven to the most recent or farthest or infinity in-focus position. This switch (S7) When is turned on, the microcomputer (1) executes a termination processing flow described later. (S8) is a changeover switch that switches between continuous shooting mode and single frame shooting mode, (S9) is turned on when the exposure is completed,
This is a one-frame winding detection switch that turns off when the winding of one frame is completed.

以上の回路構成において、カメラに電池が装着される
と、リセット用抵抗(RR)及びコンデンサ(CR)に電源
が供給されて、マイコン(1)のリセット端子(RE)に
“Low"レベルから“High"レベルに変化する信号が入力
され、マイコン(1)は第2図のリセットルーチン(RE
SET)を実行する。マイコン(1)は、まずフラグ及び
出力ポートをリセットし初期状態にする(#5,#10)。
次に、補助光発光装置(13)をOFFし、表示を消して、
レンズの駆動を停止し、フィルム巻き上げが完了してい
ない時にはモーターを駆動し、巻き上げが完了すれば給
電用トランジスタ(Tr1)をOFFする(#15〜#30)。そ
して、補助光発光のための補助光フラグ(補助光F)を
リセットして、端子(OP3)を“Low"レベルにして、マ
イコン(1)は停止する(#35,#40)。上記ステップ
#15〜#40は主として後述のステップ#55から移行して
くるときに有効となる。
In the above circuit configuration, when a battery is installed in the camera, power is supplied to the reset resistor (RR) and capacitor (CR), and the reset terminal (RE) of the microcomputer (1) changes from "Low" level to " A signal that changes to "High" level is input, and the microcomputer (1) resets the reset routine (RE
SET) is executed. First, the microcomputer (1) resets the flag and the output port to the initial state (# 5, # 10).
Next, turn off the auxiliary light emitting device (13), turn off the display,
The lens drive is stopped, the motor is driven when the film winding is not completed, and the power supply transistor (Tr 1 ) is turned off when the film winding is completed (# 15 to # 30). Then, the auxiliary light flag (auxiliary light F) for emitting auxiliary light is reset, the terminal (OP3) is set to the "Low" level, and the microcomputer (1) is stopped (# 35, # 40). The above steps # 15 to # 40 are mainly effective when shifting from step # 55 described later.

電池が装着された状態で、レリーズ釦が第1ストローク
まで押し込まれると、スイッチ(S1)がONし、マイコン
(1)は第2図のAFSからのフローを実行する。マイコ
ン(1)は、まず全フラグをリセットし、給電用トラン
ジスタ(Tr1)をONする。これにより、各回路に電源が
供給され、これと同時に、測光回路(3)が測光を開始
する。マイコン(1)は、スイッチ(S1)がONであるか
否かを判別し、OFFであればステップ#15へ進んで上述
の処理を行い、ONであれば、次の焦点検出及びこれに続
くフローを実行する(#55)。スイッチ(S1)がONの時
には補助光フラグ(補助光F)がセットされているか否
かを判別し、セットされているときには補助光モードで
あるとして、補助光発光装置(13)を発光させてステッ
プ#70に進み、補助光フラグがセットされていない時に
は、ステップ#65をスキップしてステップ#70に進む
(#60,#65)。
When the release button is pushed to the first stroke with the battery attached, the switch (S1) turns on and the microcomputer (1) executes the flow from AFS in FIG. The microcomputer (1) first resets all flags and turns on the power supply transistor (Tr 1 ). As a result, power is supplied to each circuit, and at the same time, the photometry circuit (3) starts photometry. The microcomputer (1) determines whether or not the switch (S1) is ON. If the switch (S1) is OFF, the process proceeds to step # 15 to perform the above process, and if the switch is ON, the next focus detection and subsequent steps are performed. Execute the flow (# 55). When the switch (S1) is ON, it is determined whether or not the auxiliary light flag (auxiliary light F) is set, and when it is set, the auxiliary light emitting device (13) is caused to emit light because it is in the auxiliary light mode. When the auxiliary light flag is not set in step # 70, step # 65 is skipped and the process proceeds to step # 70 (# 60, # 65).

次に、マイコン(1)は、タイマー(TI)によって前の
積分時の積分開始から今回の積分開始までにかかった時
間(TI)を読み取り、次に、このタイマー(TI)をリセ
ットしてスタートさせ、積分を開始させる(#70〜#7
8)。このときのレンズの相対位置を検出すべく、合焦
状態までレンズを駆動すべき量を示すカウンタ(以下イ
ベントカウンタと言う)の値(CT1)を読み取る(#8
0)。次に積分時間が長いモードであるか否かを示すフ
ラグ(長積F)を判定し、そのフラグがセットされてい
れば80msec経過するのを待ち、80msec経過しても積分が
終了しなければ、補助光発光装置(13)をOFFして、ス
テップ#110に進む(#85〜#95)。上記フラグ(長積
F)がセットされていないときには、積分終了したとき
あるいは積分終了していない時でも20msec経過すればス
テップ#110にすすむ(#100,#105)。この積分終了
は、CCD(9)の近傍に設けられた積分時間制御用モニ
ターの受光素子に入射する光量が所定以上になったとき
に行なわれるが、本願発明とは直接関係がないのでその
説明は省略する。
Next, the microcomputer (1) reads the time (TI) taken from the start of the previous integration to the start of this integration by the timer (TI), and then resets and starts this timer (TI). To start integration (# 70- # 7
8). In order to detect the relative position of the lens at this time, the value (CT1) of the counter (hereinafter referred to as the event counter) indicating the amount of the lens to be driven to the in-focus state is read (# 8
0). Next, a flag (long product F) indicating whether or not the integration time is long is determined, and if the flag is set, wait for 80 msec to elapse, and if the integration is not completed even after 80 msec elapses. , Turn off the auxiliary light emitting device (13), and proceed to step # 110 (# 85 to # 95). When the flag (long product F) is not set, the procedure proceeds to step # 110 (# 100, # 105) when 20 msec has elapsed even when the integration is completed or even when the integration is not completed. This integration is finished when the amount of light incident on the light receiving element of the integration time control monitor provided in the vicinity of the CCD (9) exceeds a predetermined value, but since it is not directly related to the present invention, its description Is omitted.

ステップ#110では、積分終了時のレンズの相対位置を
知るために、イベントカウンタの値を(CT2)として読
み取る。更にマイコン(1)は、CCDデータのダンプを
行って、このデータを用いて焦点検出の演算を行なう
(#120,#125)。次に前回の積分中心におけるレンズ
の相対位置を示す値(MI)をMILとして、今回の積分中
心におけるレンズの相対位置を求めるべく、積分開始時
のレンズ相対位置(CT1)と積分終了時のレンズ相対位
置(CT2)との和を2で割り、この値をMIとする(#13
0,#135)。次に前回の積分中心から今回の積分中心の
間にレンズが駆動された量を求めようとするが、単にMI
L−MIでは求まらない。
In step # 110, the value of the event counter is read as (CT2) in order to know the relative position of the lens at the end of integration. Further, the microcomputer (1) dumps CCD data and performs focus detection calculation using this data (# 120, # 125). Next, let MIL be the value (MI) indicating the relative position of the lens at the previous integration center, and calculate the lens relative position (CT1) at the start of integration and the lens at the end of integration to find the relative position of the lens at this integration center. Divide the sum with the relative position (CT2) by 2 and set this value as MI (# 13
0, # 135). Next, I try to find the amount of lens drive between the previous integration center and this integration center, but simply MI
It cannot be obtained by L-MI.

この理由を第3図のグラフを参照して説明する。このグ
ラフにおいて、横軸は時間を示しており、縦軸はフィル
ム面上での被写体像の動き(a)とレンズの動き(b)
とについての移動量を示している。この図の場合、レン
ズの駆動を行いながら積分・演算を行っている。T1,
T1′,T1″は積分開始時点、T2,T2′,T2″は積分終了時
点、T3,T3′,T3″は演算終了時点を示しており、今、
T1′≒T3″,T1≒T3′としている。この理由は、焦点検
出に必要な時間は、上述した積分、データダンプ、焦点
検出演算(#60〜#125)にほとんど費やされるからで
ある。前回の積分I′の中心のレンズ相対位置を示すMI
Lとしては、積分開始時点T1′及び積分終了時点T2′の
レンズ位置を示すイベントカウンタの値を加えて2で割
ったものを入れておく。演算C″の終了時点T1′のイベ
ントカウンタには、演算C″の結果として、被写体位置
RE1からのデフォーカス量をエンコーダの移動数に変換
したものが入力される。この被写体位置RE1は、積分
I″の中心時点における像面からのデフォーカス量を示
す位置である。
The reason for this will be described with reference to the graph in FIG. In this graph, the horizontal axis represents time, and the vertical axis represents the movement of the subject image on the film surface (a) and the movement of the lens (b).
The movement amounts of and are shown. In the case of this figure, integration / calculation is performed while driving the lens. T 1 ,
T 1 ′, T 1 ″ is the integration start time, T 2 , T 2 ′, T 2 ″ is the integration end time, T 3 , T 3 ′, T 3 ″ is the operation end time.
T 1 ′ ≈ T 3 ″, T 1 ≈ T 3 ′. The reason is that the time required for focus detection is mostly spent for the integration, data dump, focus detection calculation (# 60 to # 125) described above. MI indicating the relative lens position of the center of the previous integral I ′
As L, the value obtained by adding the event counter value indicating the lens position at the integration start time T 1 ′ and the integration end time T 2 ′ and dividing by 2 is inserted. The event counter at the time T 1 ′ at the end of the calculation C ″ shows the object position as the result of the calculation C ″.
The defocus amount from RE1 converted into the number of movements of the encoder is input. The subject position RE1 is a position indicating the defocus amount from the image plane at the center point of the integration I ″.

次に今回の積分Iの中心時点におけるレンズの相対位置
を示すMIには、上述と同様に考えると、被写体位置RE2
からのデフォーカス量をエンコーダの移動数に変換した
値を入力する。従って、レンズの相対位置を示すMIL,MI
には前回の結果を原点とするスケールと、今回の結果を
原点とするスケールとの異なったスケールの値が入って
いる。これを単純にMIL−MIとしても、レンズの正確な
移動量は算出されない。このスケールを揃えないことに
は、正確なレンズ移動量を求められない。
Next, regarding MI indicating the relative position of the lens at the center point of the integration I this time, considering the same as above, the object position RE2
Enter the value obtained by converting the defocus amount from to the number of movements of the encoder. Therefore, MIL, MI indicating the relative position of the lens
Contains the values of different scales from the scale with the previous result as the origin and the scale with the current result as the origin. Even if this is simply MIL-MI, the exact amount of lens movement cannot be calculated. If the scales are not aligned, an accurate lens movement amount cannot be obtained.

そこで、この補正量をDTとする。この値DTは、演算C′
終了時点T3′のレンズ位置を示す被写体位置RE1からの
イベントカウンタの値(CT3)と、このときの演算結果
の値DF2′をエンコーダの移動数に変換した値(LERR)
との差をとることによって得られる。即ち、DT=LERR−
CT3によって得られる。そして、レンズの移動量(ITI)
は、今回の積分中心におけるレンズの相対位置MIから上
記DTを引いたものを、MILから引けば求められる。即
ち、ITI=MIL−(MI−DT)で得られる。マイコン(1)
では、第2図のステップ#140,#145でこれを行ってい
る。
Therefore, this correction amount is set as DT. This value DT is calculated as C '
'The value of the event counter from the object position RE1 indicating a lens position (CT3), the operation result value DF2 of this time' end T 3 was converted to the movement speed of the encoder value (LERR)
It is obtained by taking the difference with. That is, DT = LERR-
Obtained by CT3. And the amount of lens movement (ITI)
Can be obtained by subtracting DT from the relative position MI of the lens at the center of integration this time, and subtracting it from MIL. That is, ITI = MIL- (MI-DT) is obtained. Microcomputer (1)
Then, this is done in steps # 140 and # 145 of FIG.

次に、マイコン(1)は、レンズ回路(12)から、開放
絞り値Av0とデフォーカス量をエンコーダのパルス数に
変換する係数値(以下KL値と言う)とのデータを入力す
べく、レンズ回路(12)のROMからデータを読み出す。
まず、チップセレクト端子(CS)を“High"レベルにし
てデータ交信開始を示す信号を出力し、読み出されたデ
ータの数を示す変数Nを0として、シリアル通信命令を
行う(#155,#160)。この命令によってマイコン
(1)の端子(SCK)からクロックが出力され、このク
ロックの立ち上がりに同期して1ビットずつデータがレ
ンズ回路(12)から出力される。そして、このクロック
の立ち下がりに同期して、マイコン(1)が端子(SI
N)よりデータを読みとり、8個のパルスを出力するこ
とによって1回のシリアル通信が終了し、これを2回行
って、上記2種類のデータをレンズ回路(12)から入力
する(#165,#170)。2種類のデータの入力を終える
と、端子(CS)を“Low"レベルにしてシリアル通信の終
了をレンズ回路(12)に知らせる(#175)。次に露出
演算のサブルーチンに進む(#180)。
Next, the microcomputer (1) inputs from the lens circuit (12) data of the open aperture value Av 0 and the coefficient value (hereinafter referred to as KL value) for converting the defocus amount into the pulse number of the encoder, Read the data from the ROM of the lens circuit (12).
First, the chip select terminal (CS) is set to "High" level, a signal indicating the start of data communication is output, and a variable N indicating the number of read data is set to 0 to execute a serial communication command (# 155, # 160). A clock is output from the terminal (SCK) of the microcomputer (1) by this instruction, and data is output from the lens circuit (12) bit by bit in synchronization with the rising edge of this clock. Then, in synchronization with the falling edge of this clock, the microcomputer (1)
By reading the data from N) and outputting eight pulses, one serial communication is completed. This is performed twice, and the above two types of data are input from the lens circuit (12) (# 165, # 170). When the input of two types of data is completed, the terminal (CS) is set to "Low" level to notify the lens circuit (12) of the end of serial communication (# 175). Then proceed to the exposure calculation subroutine (# 180).

このサブルーチンを第4図を参照して説明する。マイコ
ン(1)は、まず、開放測光値Bv0を測光回路(3)か
ら入力し、フィルム感度データSvをフィルム感度自動読
み取り回路(4)から入力する(#2000,#2005)。こ
れらのデータと、前述のごとくして入力した開放絞り値
Av0とから露出値Evを算出する(#2010)。次に、露出
制御モードを判定して、Pモードであれば、上記露出値
Evを1/2にして絞り値Avを求め、そして露出値Evから絞
り値Avを引いてシャッタ速度値Tvを求めリターンする
(#2015〜2025)。Aモードであれば、設定された絞り
値Avを読み取り、露出値Evから設定絞り値Avを引いてシ
ャッタ速度値Tvを求めてリターンする(#2030〜#204
0)。Sモードであれば、設定シャッタ速度値Tvを読み
取り、露出値Evから設定シャッタ速度値Tvを引いて絞り
値Avを求めてリターンする(#2045〜#2055)。上記い
ずれのモードでもない場合、即ちMモードであるとき
は、設定された絞り値Av及びシャッタ速度値Tvを読み取
ってリターンする(#2060〜#2065)。
This subroutine will be described with reference to FIG. The microcomputer (1) first inputs the open photometry value Bv 0 from the photometry circuit (3) and the film sensitivity data Sv from the film sensitivity automatic reading circuit (4) (# 2000, # 2005). These data and the open aperture value entered as described above
The exposure value Ev is calculated from Av 0 (# 2010). Next, the exposure control mode is determined, and if it is the P mode, the exposure value
Ev is halved to obtain the aperture value Av, and the aperture value Av is subtracted from the exposure value Ev to obtain the shutter speed value Tv and the process returns (# 2015-2025). In the A mode, the set aperture value Av is read, the set aperture value Av is subtracted from the exposure value Ev to obtain the shutter speed value Tv, and the process returns (# 2030 to # 204).
0). In the S mode, the set shutter speed value Tv is read, the set shutter speed value Tv is subtracted from the exposure value Ev to obtain the aperture value Av, and the process returns (# 2045 to # 2055). If none of the above modes, that is, the M mode, the set aperture value Av and shutter speed value Tv are read and the process returns (# 2060 to # 2065).

第2図のフローチャートに戻り、露出演算が終了する
と、焦点検出・演算の結果から焦点検出が不能か否かを
検出し、検出不能であればLOWCONのフローに進む。検出
可能であれば、焦点検出不能を示すローコンフラグLCF
をリセットし、ローライト(被写体が所定値以下の低輝
度であること)であるか否かを判定する(#185〜#19
5)。そして、ローライトでなければ、ステップ#200で
補助光フラグをリセットし、ローライトであればステッ
プ#200をスキップして、それぞれステップ#205に進
み、この演算終了時点のレンズの相対位置をイベントカ
ウンタで読み取る。次に、この演算で求めたデフォーカ
ス量Δεに変換係数KL値を掛けてエンコーダのパルス数
を求め、この値が正ならば今回の方向を示す変数TDを1
とし、負ならばTDを0とする(#205〜#225)。
Returning to the flowchart of FIG. 2, when the exposure calculation is completed, whether or not focus detection is impossible is detected from the result of focus detection / calculation, and if it is not possible, the flow proceeds to LOWCON. If it can be detected, the low contrast flag LCF indicating that focus detection is impossible
Is reset, and it is determined whether or not it is low light (the subject has a low brightness equal to or lower than a predetermined value) (# 185 to # 19).
Five). If it is not low light, the auxiliary light flag is reset in step # 200, and if it is low light, step # 200 is skipped, and the process proceeds to step # 205. Read on the counter. Next, the defocus amount Δε obtained by this calculation is multiplied by the conversion coefficient KL value to obtain the pulse number of the encoder. If this value is positive, the variable TD indicating the current direction is set to 1
If it is negative, TD is set to 0 (# 205 to # 225).

次に、精度チェックのサブルーチンに入る。本実施例に
用いられている焦点調節装置には、焦点調節において、
合焦状態に到達する時間よりもピントの精度を優先する
精度優先モードと、精度よりも合焦状態に到達する素度
を速くすることを優先するスピード優先モードを有して
いる。これに関するレンズ制御モーターの速度について
は後述する。このサブルーチンでは、レンズの種類、あ
るいは、撮影時の諸条件により上記2つのモードを切り
換えている。これには種々の態様が考えられる。
Next, the accuracy check subroutine is entered. The focus adjustment device used in the present embodiment, in the focus adjustment,
There are a precision priority mode in which priority is given to focus accuracy over the time to reach the focused state, and a speed priority mode in which priority is given to speeding up the intensity of reaching the focused state over accuracy. The speed of the lens control motor relating to this will be described later. In this subroutine, the above two modes are switched depending on the type of lens or various conditions at the time of shooting. Various modes are possible for this.

例えば、第5図(a)に示すように、コンティニュアス
モードであるときは動く被写体に対して焦点調節する場
合が多いのでスピード優先モードとし、ワッショットモ
ードの時には静止している被写体に焦点調節する場合が
多いので精度優先モードにする。あるいは、第5図
(b)に示すように、Aモードのときにはポートレート
等静止している被写体に正確にピントを合わせたという
事が多いと考えられるので精度優先モードとし、それ以
外の露出制御モードの時にはスピード優先モードとす
る。あるいは、第5図(c)に示すように、制御される
絞り値(F値)が1.7より小さいときはポートレート等
に使用されることが多いと考えられるから精度優先モー
ドとし、それ以外では、レンズの被写界深度も多少なり
と深くなっていることを考慮してスピード優先モードと
する。この限界F値は、F4〜5.6までぐらいなら任意に
選んでよい。更には、第5図(d)に示すようにデフォ
ーカス量をエンコーダパルス数に変換するKL値が大きい
時、即ち、パルス数当たりのデフォーカス量の変化量が
小さいレンズでは、焦点調節に時かがかかるとしてスピ
ード優先モードとし、KL値が小さいときにはこの逆で、
レンズ駆動速度が速すぎると正確な焦点調節ができない
として精度優先モードにする。後者の場合、精度優先モ
ードにしてもわずかなパルス数で合焦状態になるので、
合焦に要する時間は比較的短くて済む。
For example, as shown in FIG. 5 (a), when the continuous mode is used, the focus is often adjusted on the moving subject, so the speed priority mode is set, and when the wasshot mode is set, the stationary subject is focused. Since it is often adjusted, the accuracy priority mode is set. Alternatively, as shown in FIG. 5B, in A mode, it is considered that it is often the case that a still subject such as a portrait is accurately focused. Therefore, the precision priority mode is set, and other exposure control is performed. In the mode, the speed priority mode is set. Alternatively, as shown in FIG. 5 (c), when the controlled aperture value (F value) is smaller than 1.7, it is considered that it is often used for portraits and the like, so the accuracy priority mode is set, and in other cases, it is set. , Considering that the depth of field of the lens is also somewhat deeper, the speed priority mode is set. This limit F value may be arbitrarily selected within the range of F4 to 5.6. Further, as shown in FIG. 5 (d), when the KL value for converting the defocus amount into the encoder pulse number is large, that is, when the defocus amount change amount per pulse number is small, it is necessary to adjust the focus. If it takes a lot of time, the speed priority mode is set.
If the lens driving speed is too fast, accurate focus adjustment cannot be performed and the accuracy priority mode is set. In the latter case, even in the accuracy priority mode, the focus state will be achieved with a small number of pulses, so
The time required for focusing is relatively short.

本実施例では、上記4つの場合の判断を総て含むよう第
5図(e)に示すようなフローになっており、その判定
状態を表1に示す。ここでは、精度優先モードとスピー
ド優先モードとを場合分けに関して、優先するモードの
多い方のモードをそのときのモードとしている。優先す
るモードが同数のときには、絞り値のしきい値を優先す
る。これは、F値の小さいレンズでは、被写界深度が非
常に浅いため、少しずれただけでピントのぼけた写真に
なる可能性が高いからである。
In this embodiment, the flow is as shown in FIG. 5 (e) so as to include all the judgments in the above four cases, and the judgment state is shown in Table 1. Here, the accuracy priority mode and the speed priority mode are divided into cases, and the mode having the most priority mode is the mode at that time. When the number of modes to be prioritized is the same, the threshold value of the aperture value is prioritized. This is because with a lens having a small F value, the depth of field is very shallow, and it is highly likely that a slightly out-of-focus image will result in a blurred image.

第2図に戻り、精度チェックモードを終えると、レンズ
が停止しているか否かを検出する(#235)。これはモ
ーターへの駆動信号を検出することでわかる。レンズが
停止していれば、MFZのルーチンへ、停止していなけれ
ばIDOBUNのルーチンへ進む。
Returning to FIG. 2, when the accuracy check mode is finished, it is detected whether or not the lens is stopped (# 235). This can be seen by detecting the drive signal to the motor. If the lens has stopped, proceed to the MFZ routine, and if not, proceed to the IDOBUN routine.

まず、MFZのルーチンを第6図により説明する。デフォ
ーカス量Δεを別変数Δεにメモリーし、合焦ゾーン
の量ΔIF(40μ)にKL値を掛けて合焦ゾーンパルス数IF
Pを求める。次に積分中心から演算終了までに動いたレ
ンズの量をエンコーダパルス数で示した値CTCを0とす
る(#240〜#250)。次にデフォーカス量Δεをエンコ
ーダパルス数(以下これをデフォーカスパルス数と言
う)で示したERRが3パルス以下であるか否かを判定
し、3パルス以下であれば、今回のデフォーカスパルス
数ERRを前回のデフォーカスパルス数LERRとし、更に今
回のデフォーカス方向TDを前回の方向LDとし、合焦を示
す合焦フラグ(合焦F)をセットして合焦表示を行う
(#255〜#275)。そして、焦点検出終了を示すフラグ
(AFEF)をセットして、スイッチ(S4)の状態からコン
ティニュアスモードであるかどうかを判定して、コンテ
ィニュアスモードであれば第2図のステップ#55からの
CDINTのルーチンへ進んで再度焦点検出を行い、ワッシ
ョントモードであればマイコン(1)は割り込みを待っ
て焦点検出を行わない。
First, the MFZ routine will be described with reference to FIG. The defocus amount Δε is stored in another variable Δε 1 , and the focusing zone amount ΔIF (40μ) is multiplied by the KL value to obtain the focusing zone pulse number IF
Find P. Next, the value CTC, which is the amount of the lens that has moved from the center of integration to the end of the calculation, indicated by the number of encoder pulses is set to 0 (# 240 to # 250). Next, it is determined whether or not ERR, which indicates the defocus amount Δε by the encoder pulse number (hereinafter referred to as the defocus pulse number), is 3 pulses or less, and if it is 3 pulses or less, the current defocus pulse The number ERR is the previous defocus pulse number LERR, the current defocus direction TD is the previous direction LD, and the focus flag (focus F) indicating the focus is set and the focus display is performed (# 255). ~ # 275). Then, a flag (AFEF) indicating the end of focus detection is set, and it is determined from the state of the switch (S4) whether or not the continuous mode is set. If the continuous mode is set, step # 55 in FIG. from
The routine proceeds to the CDINT routine, where focus detection is performed again. If it is in the worst mode, the microcomputer (1) waits for an interrupt and does not perform focus detection.

ステップ#255において、デフォーカスパルス数ERRが3
を越えると、合焦フラグ(合焦F)がセットされている
かどうかを判定して、セットされていれば、デフォーカ
スパルス数ERRが予め定められた合焦ゾーンパルス数以
内かどうかを判定し、合焦ゾーン内であればステップ#
260からのINFZのルーチンへ進む(#290,#295)。ステ
ップ#290において合焦フラグ(合焦F)がセットされ
ていない時、今回のデフォーカス方向TDと前回のデフォ
ーカス方向LDが反転した場合、あるいは反転していない
場合でも、後に詳述するニアゾーンA判定のサブルーチ
ンでニアゾーン内(NZF=1)でないと判定した場合
は、1回通過したことを示すフラグ(1STF)をリセット
し、ステップ#295に進む(#370〜#380)。
In step # 255, the defocus pulse number ERR is 3
When it exceeds, it is determined whether the focus flag (focus F) is set, and if it is set, it is determined whether the defocus pulse number ERR is within a predetermined focus zone pulse number. , Step if in focus zone #
Proceed to the INFZ routine from 260 (# 290, # 295). When the focus flag (focus F) is not set in step # 290, the current defocus direction TD and the previous defocus direction LD are reversed, or even when they are not reversed, the near zone described in detail later If it is determined in the A determination subroutine that the vehicle is not in the near zone (NZF = 1), the flag (1STF) indicating that the vehicle has passed once is reset, and the process proceeds to step # 295 (# 370 to # 380).

ニアゾーンA判定のサブルーチンを第23図により説明す
る。
The near zone A determination subroutine will be described with reference to FIG.

マイコン(1)は、まずデフォーカスパルス数ERRをERR
1とし、レンスが停止中か否かを判定する(#3000,#30
05)。停止中であればステップ#3015に進み、停止中で
なければ、積分中心から演算終了までのレンズの移動量
CTCをERR1からひいてステップ#3015に進む。ステップ
#3015では追随モードを示す追随フラグ(追随F)がセ
ットされているか否かを判定し、セットされている場合
にはニアゾーン範囲を示すカウンターNZCを63にセット
する。非追随モード(追随フラグリセット時)である場
合には、スピード優先モードであればニアゾーンカウン
ターを100にセットし、精度優先モードであればニアゾ
ーンカウンターを120にセットして、ステップ#3035に
進む(#3015〜#3030)。ステップ#3035では、デフォ
ーカスパルス数ERR1がセットしたニアゾーンカウンター
のカウント値NZC以下であるか否かを判定し、ニアゾー
ンカウンターのカウント値がNZC以下であればニアゾー
ンを示すフラグNZFをセットし、ニアゾーンカウンター
のカウント値がNZCを超えればニアゾーンフラグNZFをリ
セットして、リターンする(#3035〜#3045)。尚、こ
こで、本実施例ではスピード優先モードか精度優先モー
ドかによってニアゾーンの範囲を変えているが、この場
合はモーターの速度制御には関係がないので一定値例え
ば100でもよい。
The microcomputer (1) first sets the defocus pulse number ERR to ERR.
Set to 1 to determine whether Lens is stopped (# 3000, # 30
05). If it is stopped, proceed to step # 3015. If not, move the lens from the center of integration to the end of calculation.
Pull CTC from ERR1 and proceed to step # 3015. In step # 3015, it is determined whether or not the follow-up flag (following F) indicating the follow-up mode is set. If set, the counter NZC indicating the near zone range is set to 63. In the non-following mode (when the follower flag is reset), set the near zone counter to 100 in the speed priority mode, set the near zone counter to 120 in the accuracy priority mode, and go to step # 3035. Go forward (# 3015 to # 3030). In step # 3035, it is determined whether or not the defocus pulse number ERR1 is less than or equal to the set near zone counter count value NZC. If the near zone counter count value is less than or equal to NZC, the near zone flag NZF is set. , If the count value of the near zone counter exceeds NZC, reset the near zone flag NZF and return (# 3035 to # 3045). Here, in this embodiment, the range of the near zone is changed depending on the speed priority mode or the accuracy priority mode, but in this case, since it is not related to the speed control of the motor, a constant value may be set to 100, for example.

第6図に戻って、ステップ#380において、ニアゾーン
フラグ(NFZ)がセットされていると判定されると、こ
のステップ以下、動いている被写体に対してデフォーカ
ス量が大きくなっていく場合に、これを補正するフロー
を示し、このような場合を追随モードと呼ぶことにす
る。ステップ#385では、1回通過したことを示すフラ
グ(1STF)がセットされているか否かを判定する。そし
て、このフラグ(1STF)がセットされていないときには
このフラグ(1STF)をセットし、次に追随モードを示す
フラグ(追随F)をリセットし、更に補正を行うことを
示す追随補正フラグ(追随補正F)をリセットしてステ
ップ#300に進む(#455,#460,#445)。ステップ#38
5で1回通過したことを示すフラグ(1STF)がセットさ
れていれば、前回のデフォーカス方向(LD)と今回のデ
フォーカス方向(TD)とを判別し、方向が違うならば、
即ち両者の方向データが1,0または0,1ならば、ステップ
#460に進み追随補正モード時の追随補正を行わない。
前回のデフォーカス方向(LD)と今回の方向(TD)とが
同一方向ならば、即ち両者のデータが0,0または1,1なら
ばステップ#400へ進み追随フラグ(追随F)がセット
されているか否かを判別する(#390〜#400,#450)。
ステップ#400で追随フラグがセットされていないとき
には、今回のデフォーカスパルス数ERRから前回のデフ
ォーカスパルス数LEERをひき、WRを求める(#430)。
この値WRが所定量AAより大きければ即ち、デフォーカス
量(パルス数)が大きくなっているときは追随フラグ
(追随F)をセットするが、本実施例ではWRが2度正の
値になったときに補正をするようにしているので、追随
モードにおける補正を示す追随補正フラグ(追随補正フ
ラグ)をリセットして、一度目は補正しないようにして
いる(#435,#440,#445)。この所定量AAはノイズ成
分を考慮して決めた値であり、ノイズ成分のないような
構成であれば0とすれば良い。上記WRがAA以下であると
きは、デフォーカス量が大きくなっていないので補正は
しないでステップ#460に進む。ステップ#400において
追随フラグ(追随F)がセットされているときにはステ
ップ#430と同様にしてWRを求めてこれがAAより大きい
か否かを判別し、AA以下であるときは、レンズが被写体
の移動に追いついているということで補正する必要がな
いので、補正量としてのWRを0としてステップ#300に
進む(#405,#410,#425)。
Returning to FIG. 6, when it is determined that the near zone flag (NFZ) is set in step # 380, the defocus amount increases with respect to the moving subject after this step. A flow for correcting this will be shown, and such a case will be referred to as a follow-up mode. In step # 385, it is determined whether or not a flag (1STF) indicating that the vehicle has passed once has been set. When the flag (1STF) is not set, the flag (1STF) is set, the flag indicating the tracking mode (following F) is reset, and the tracking correction flag (following correction) indicating that the correction is further performed. F) is reset and the process proceeds to step # 300 (# 455, # 460, # 445). Step # 38
If the flag (1STF) indicating that the vehicle has passed once in 5 is set, the previous defocus direction (LD) and the current defocus direction (TD) are distinguished, and if the directions are different,
That is, if the direction data of both is 1,0 or 0,1, the process proceeds to step # 460, and the tracking correction in the tracking correction mode is not performed.
If the previous defocus direction (LD) and the current direction (TD) are the same direction, that is, if the data of both are 0, 0 or 1, 1, the process proceeds to step # 400 and the follow flag (follow F) is set. It is determined whether or not (# 390 to # 400, # 450).
When the follow-up flag is not set in step # 400, the previous defocus pulse number LEER is subtracted from the current defocus pulse number ERR to obtain WR (# 430).
When this value WR is larger than the predetermined amount AA, that is, when the defocus amount (pulse number) is large, the follow-up flag (following F) is set, but in this embodiment, WR becomes a positive value twice. Since the correction is performed at the time of performing, the follow-up correction flag (following correction flag) indicating the correction in the follow-up mode is reset so that the correction is not performed for the first time (# 435, # 440, # 445). . The predetermined amount AA is a value determined in consideration of the noise component, and may be set to 0 if there is no noise component. When the WR is equal to or less than AA, the defocus amount is not large, so the correction is not performed and the process proceeds to step # 460. If the follow-up flag (follow-up F) is set in step # 400, WR is calculated in the same manner as in step # 430 to determine whether or not this is larger than AA. If it is smaller than AA, the lens moves the object. Since it is not necessary to make a correction because it has caught up with, the WR as the correction amount is set to 0 and the process proceeds to step # 300 (# 405, # 410, # 425).

一方、ステップ#410でWRがAAよりも大きいと判定され
るとステップ#415に進み、ステップ#415では、前回と
今回の演算結果の差WRがニアゾーンカウンターのカウン
ト値NZCよりも大きく設定された設定値AX以上であるか
否かが判定される。この設定値AXを設けてある理由を説
明すると、追随モード中、すなわち被写体が移動してい
るときには、この被写体の移動のために、焦点検出用に
設けてあるエリア内から被写体がはずれることがある。
このエリア内から被写体がはずれると、上記エリア内に
ある別の物体に焦点があってしまうのでこれを防ごうと
するためである。そしてこのために補正量WRが設定値AX
以上である場合は、エリア内から所望の被写体がはずれ
た場合であるのでレンズの移動量の更新を行わないよう
にしている。即ち、ステップ#415で補正量WRが設定値A
X以上である場合には、レンズの移動量の更新を禁止す
る非更新フラグ(非更新F)をセットして、追随補正フ
ラグをリセットする(#425,#445)。一方、補正量WR
がAX未満である場合は、非更新フラグをリセットし、追
随補正フラグをセット(#417〜#419)してステップ#
300に進む。
On the other hand, if it is determined in step # 410 that WR is larger than AA, the process proceeds to step # 415, and in step # 415, the difference WR between the previous and current calculation results is set to be larger than the count value NZC of the near zone counter. It is determined whether the set value AX is greater than or equal to the set value AX. Explaining the reason why the setting value AX is provided, in the follow-up mode, that is, when the subject is moving, the subject may deviate from the area provided for focus detection due to the movement of the subject. .
This is because, if the object deviates from this area, another object in the area will be in focus, and this is to prevent this. For this reason, the correction amount WR is set to AX
In the above cases, the desired subject is out of the area, so the lens movement amount is not updated. That is, the correction amount WR is set to the set value A in step # 415.
If it is X or more, the non-update flag (non-update F) for prohibiting the update of the movement amount of the lens is set, and the tracking correction flag is reset (# 425, # 445). On the other hand, the correction amount WR
Is less than AX, the non-update flag is reset, the tracking correction flag is set (# 417 to # 419), and step #
Go to 300.

ステップ#295において、デフォーカス量Δε1が合焦
ゾーン内でないときは、ステップ#300に進み、合焦状
態を示す合焦フラグ(合焦F)をリセットする。次に、
今回のデフォーカスパルス数ERRを前回のデフォーカス
パルス数LERRとし、今回のデフォーカス方向(TD)を前
回の方向(LD)とする(#300,#305)。そして、追随
補正フラグ(追随補正F)がセットされているか否かを
判定し、セットされているときには、デフォーカスパル
ス数ERRに追随補正量2WRを加えて新たにデフォーカス量
を求め、ステップ#335に進む(#315,#320)。
If the defocus amount Δε1 is not within the in-focus zone in step # 295, the process proceeds to step # 300, and the in-focus flag (focus F) indicating the in-focus state is reset. next,
The current defocus pulse number ERR is set as the previous defocus pulse number LERR, and the current defocus direction (TD) is set as the previous direction (LD) (# 300, # 305). Then, it is determined whether or not the follow-up correction flag (following correction F) is set. When it is set, the follow-up correction amount 2WR is added to the defocus pulse number ERR to obtain a new defocus amount, and step # Proceed to 335 (# 315, # 320).

ステップ#325において、追随フラグ(追随F)がセッ
トされていれば第7図に示した演算IIIのサブルーチン
に進む。演算IIIのサブルーチンでは、まず、AF優先モ
ードであるかを判定して、AF優先モードであればTd=15
0(msec)、レリーズ優先モードであればTd=100(mse
c)としてステップ#2215に進む。このTdは、レリーズ
可能である場合に、レリーズ釦が第2ストロークまで押
下げられてレンズの駆動量が0(合焦状態)でないとき
にはこの分だけレンズを駆動するために設けられたもの
であり、Td=レリーズタイムラグ(50msec)+TC(一定
時間)となっている。レリーズタイムラグはカメラによ
って決まっている値である。一方、TCはAF優先モードで
あるとき100msec、レリーズ優先モードでは50msecとし
ている。
If the follow-up flag (follow-up F) is set in step # 325, the process proceeds to the subroutine of operation III shown in FIG. In the calculation III subroutine, first, it is determined whether the AF priority mode is set, and if it is the AF priority mode, Td = 15.
0 (msec), Td = 100 (mse in release priority mode
As step c), proceed to step # 2215. This Td is provided to drive the lens by a corresponding amount when the release button is pushed down to the second stroke and the lens drive amount is not 0 (in focus) when the release is possible. , Td = Release time lag (50msec) + TC (constant time). The release time lag is a value determined by the camera. On the other hand, TC is set to 100 msec in the AF priority mode and 50 msec in the release priority mode.

この値TCを夫々のモードで変えているのは、一般にAF優
先モードは被写体にピントを正確に合わせたいときに使
用されるモードであるから、できるだけレンズを動かし
てデフォーカス量が0になるようにしたいので、この一
定時間を長くしてレンズを駆動するようにしているから
である。一方、レリーズ優先モードにおいては、とにか
く写したいその瞬間にレリーズがなされることが大切な
ので、この一定時間を短くしている。次のステップ#22
15では、積分周期TIを読み取りTdをこの時間TIで割っ
て、その比Rを求め、Td間に動く被写体の像面での移動
量WSを求めるべく、補正量WRにRをかける(#2215,#2
220)。そして、この値WSに、デフォーカスパルス数ERR
を加えて新たにデフォーカスパルス数ERRTを求める(#
2225)。次にAF優先モードであるかを判定し、AF優先モ
ードではデフォーカスパルス数ERRTが148以下、レリー
ズ優先モードでは100以下であるかを判定し、デフォー
カスパルス数ERRTがこれらの設定値以下であれば、追随
モードにおいて合焦状態に達したことを示す追随合焦フ
ラグ(追随合焦F)をセットし、設定値を超える場合に
は追随合焦フラグをリセットしてリターンする。上記設
定値に関しては、後述のレリーズモードのときに説明す
る。
This value TC is changed in each mode because the AF priority mode is generally used when you want to focus on the subject accurately, so move the lens as much as possible to reduce the defocus amount to 0. This is because the lens is driven by increasing this fixed time. On the other hand, in the release priority mode, it is important that the release is performed at the moment when the user wants to take a picture anyway, so this fixed time is shortened. Next step # 22
In 15, the integration period TI is read, Td is divided by this time TI, the ratio R is obtained, and the correction amount WR is multiplied by R to obtain the movement amount WS of the subject moving between Td on the image plane (# 2215). , # 2
220). Then, to this value WS, the defocus pulse number ERR
And newly obtain the defocus pulse number ERRT (#
2225). Next, it is determined whether the AF priority mode is set.In the AF priority mode, it is determined whether the defocus pulse number ERRT is 148 or less, and in the release priority mode it is 100 or less. If there is, a tracking focus flag (tracking focus F) indicating that the focusing state is reached in the tracking mode is set, and if the setting value is exceeded, the tracking focus flag is reset and the process returns. The set value will be described in the later-described release mode.

そして、第6図のステップ#340に戻り、追随合焦ゾー
ン内であるかを上記の追随合焦フラグのセット状態で判
定し、このゾーン内であれば、焦点検出終了を示すフラ
グAFEFをセットして、合焦表示を行って、TINNZのフロ
ーに進む(#335〜#350)。ステップ#335で追随フラ
グ(追随F)がセットされていないとき、あるいはセッ
トされていてもステップ#340で追随合焦ゾーン内でな
いときはステップ#355に進み、デフォーカスパルス数E
RRTが後述する狭合焦ゾーン内であるかを判定する(#3
55)。狭合焦ゾーン内であれば狭合焦フラグ(狭合焦フ
ラグ)をセットしてステップ#365へ、狭合焦ゾーン内
でなければステップ#360をスキップしてステップ#365
に進む。ステップ#365では、デフォーカスパルス数ERR
Tが後述する表示合焦ゾーン内であるかを判定し、表示
合焦ゾーン内であれば、焦点検出終了を示すフラグAFEF
をセットして合焦表示を行い、表示合焦ゾーン内でなけ
れば表示を行なわずTINNZに進む。ここで合焦ゾーンに
ついて説明する。
Then, returning to step # 340 in FIG. 6, it is judged whether or not it is in the tracking focus zone by the set state of the tracking focus flag. If it is in this zone, the flag AFEF indicating the end of focus detection is set. Then, the focus is displayed and the flow of TINNZ proceeds (# 335- # 350). If the follow-up flag (following F) is not set in step # 335, or if it is set but is not within the follow-up focusing zone in step # 340, the process proceeds to step # 355, and the defocus pulse number E
It is determined whether the RRT is within the narrow focusing zone described later (# 3
55). If it is in the narrow focus zone, set the narrow focus flag (narrow focus flag) to step # 365, and if it is not in the narrow focus zone, skip step # 360 and skip step # 365.
Proceed to. In step # 365, the defocus pulse number ERR
It is determined whether T is in the display focusing zone described later, and if it is in the display focusing zone, a flag AFEF indicating the end of focus detection is displayed.
Set to display the focus, and if it is not in the display focus zone, do not display and proceed to TINNZ. Here, the focusing zone will be described.

(1)合焦ゾーン(#295) 従来からある領域で、1度合焦状態に達するのに必要な
レンズの駆動量が0になり、レンズが停止している状態
での積分結果がこの領域なら合焦であることを表示す
る。
(1) Focus zone (# 295) In a conventional area, if the drive amount of the lens required to reach the in-focus state once becomes 0, and the integration result when the lens is stopped is in this area, Indicates that it is in focus.

(2)表示合焦ゾーン(#365) (1)の合焦ゾーンよりも広く、レリーズ後のレリーズ
タイムラグの間に上記合焦ゾーンの中まで精度よくレン
ズを動かせる範囲であり、この実施例では、パルス数21
に相当するデフォーカス量(レンズによって異なる)と
している。そして、レンズの停止、移動中にかかわら
ず、デフォーカス量がこの範囲に入れば表示を行うとと
もにAF優先モード時のレリーズ許可を行う。
(2) Display focusing zone (# 365) It is wider than the focusing zone of (1) and is a range in which the lens can be accurately moved to the above focusing zone during the release time lag after release. In this embodiment, , Pulse number 21
The amount of defocus corresponding to (depending on the lens). Then, regardless of whether the lens is stopped or moving, if the defocus amount falls within this range, the display is made and the release permission in the AF priority mode is given.

(3)追随合焦ゾーン(ステップ#340) ゾーンとしては1番広く、追随モード時の合焦表示及び
AF優先モード時のレリーズ許可を行う範囲を示す。追随
モード時においてレンズの駆動を行いながら被写体の動
きに追随しつづけたときに、合焦状態(デフォーカス量
が0)にならないときがある。ところが従来のAF優先モ
ードであれば、レンズが停止しないとレリーズができな
い。この追随合焦ゾーンは、これを防止するために設け
られたものであり、このゾーンの大きさはレリーズタイ
ムラグ+一定時間の間ににレンズが駆動できる値として
いる。この値に関しては、後述のレリーズのフローの説
明のときに詳述する。
(3) Tracking focus zone (step # 340) The zone is the widest and the focus display in tracking mode and
Indicates the range for release permission in AF priority mode. In the tracking mode, when the lens is driven and the motion of the subject is continuously tracked, the focus state (the defocus amount is 0) may not be achieved. However, in the conventional AF priority mode, the shutter cannot be released without stopping the lens. This tracking focus zone is provided in order to prevent this, and the size of this zone is set to a value that allows the lens to be driven within a release time lag + a fixed time. This value will be described in detail when the release flow is described below.

(4)狭合焦ゾーン(#355) このゾーンは(1)の合焦ゾーンとほぼ同じである。こ
のゾーンが設けてある理由を以下に示す。このゾーン内
でのレンズの駆動時、積分中心から演算終了時までに動
くレンズの移動量CTCをデフォーカスパルス数からひい
ている。今デフォーカスパルス数は積分中心での値とし
ているが、光の変化や手振、電気的ノイズにより必ずし
も積分中心での値となっていないことがある。従って、
このデフォーカスパルス数からレンズの移動量をひいて
も正しいデフォーカス量が得られないことがあり、この
デフォーカス量だけレンズを駆動して停止しても合焦状
態とならないことがある。このような場合には、次の焦
点検出の結果により再度レンズを動かさなければならな
いことになり、この駆動のときに同じような事がおこれ
ば次の焦点検出の結果によりレンズを駆動しなければな
らず、いつまでたっても合焦状態の検出によるレンズの
停止状態とならないからこれを防止するためにこのゾー
ンを設けている。そこでデフォーカス量がこの狭合焦ゾ
ーン内になったときには焦点検出を行わず、デフォーカ
スパルス数が0になるまでレンズを駆動するようにして
いる。
(4) Narrow Focus Zone (# 355) This zone is almost the same as the focus zone of (1). The reason why this zone is provided is shown below. When the lens is driven in this zone, the movement amount CTC of the lens that moves from the center of integration to the end of calculation is subtracted from the number of defocus pulses. Although the number of defocus pulses is set to the value at the center of integration, it may not always be the value at the center of integration due to changes in light, hand vibration, and electrical noise. Therefore,
A correct defocus amount may not be obtained even if the lens movement amount is subtracted from this defocus pulse number, and even if the lens is driven by this defocus amount and stopped, the in-focus state may not be achieved. In such a case, the lens must be moved again according to the result of the next focus detection, and if the same thing occurs during this driving, the lens must be driven according to the result of the next focus detection. This zone is provided to prevent this because the lens is not stopped due to detection of the in-focus state forever. Therefore, when the defocus amount falls within this narrow focus zone, focus detection is not performed and the lens is driven until the number of defocus pulses becomes zero.

一方、第2図において、ステップ#235でレンズが停止
していないときは、第8図に示すIDOBUNのフローに進
む。
On the other hand, in FIG. 2, when the lens is not stopped in step # 235, the flow proceeds to IDOBUN shown in FIG.

第8図のIDOBUNのフローでは、まず、今回演算されたデ
フォーカス方向が前回演算されたデフォーカス方向と異
なるか否かを判定する(#435)。方向が反転していれ
ば、レンズを停止して(ステップ#455)、再度積分を
行うべく第2図のステップ#55以下のCDINTのフローに
もどる。一方、第8図のステップ#435で方向が反転し
ていなければ、積分中心から演算終了までに動いたレン
ズの移動量CTCを求める(#435,#440)。次に後述する
ニアゾーンA判定のサブルーチンに進み、そのサブルー
チン内での判定結果としてニアゾーンフラグ(NZF)が
セットされていれば、ステップ#460に進み、セットさ
れていなければステップ#520で追随フラグをリセット
する(#445,#450)。ステップ#460以下では前回演算
されたデフォーカス方向(LD)と今回演算されたデフォ
ーカス方向(TD)とが同一方向か否かを判定し、同一方
向ならステップ#470に進み、今回のデフォーカスパル
ス数ERRに前回積分中心から今回の積分中心までの間に
動いたレンズの駆動量ITIを加え、前回のデフォーカス
量LERRをひいて、補正量WRを求める(#460〜#470,#5
15)。
In the flow of IDOBUN in FIG. 8, first, it is determined whether or not the defocus direction calculated this time is different from the defocus direction calculated last time (# 435). If the direction is reversed, the lens is stopped (step # 455), and the flow returns to the CDINT flow after step # 55 in FIG. 2 in order to perform integration again. On the other hand, if the direction is not reversed in step # 435 in FIG. 8, the movement amount CTC of the lens that has moved from the center of integration to the end of calculation is obtained (# 435, # 440). Next, the process proceeds to the near zone A determination subroutine described later, and if the near zone flag (NZF) is set as the determination result in the subroutine, the process proceeds to step # 460. If not, the follow flag is set in step # 520. Reset (# 445, # 450). In step # 460 and below, it is determined whether the previously calculated defocus direction (LD) and the currently calculated defocus direction (TD) are the same direction. If they are the same direction, the process proceeds to step # 470, and the current defocus direction is determined. Add the drive amount ITI of the lens that has moved from the previous integration center to the current integration center to the pulse number ERR and subtract the previous defocus amount LERR to obtain the correction amount WR (# 460 to # 470, # 5
15).

次に追随フラグ(追随F)がセットされているか否かを
判定し、追随フラグがセットされておらず更に、この補
正量WRが所定量AA以上のときには、追随フラグ(追随
F)及び追随補正フラグ(追随補正F)をそれぞれセッ
トして第6図のステップ#300に進む(#480〜#49
0)。
Next, it is determined whether or not the follow-up flag (following F) is set. When the follow-up flag is not set and the correction amount WR is equal to or larger than the predetermined amount AA, the follow-up flag (following F) and the follow-up correction are performed. The flags (following correction F) are set respectively, and the process proceeds to step # 300 in FIG. 6 (# 480 to # 49).
0).

一方、ステップ#480で、補正量WRが所定量AA未満のと
きは追随補正フラグ(追随補正F)をリセットして、ス
テップ#300に進む(#480,#485)。ステップ#475で
追随フラグ(追随F)がセットされているときには補正
量WRが所定量AX(ニアゾーンカウンターのカウント値NZ
Cより大)以上であるかを判定し、所定量以上であれ
ば、焦点検出エリアから被写体がはずれたと判定して、
レンズの駆動量の更新を禁止する非更新フラグ(非更新
F)をセットし、追随補正フラグ(追随補正F)をリセ
ットしてステップ#300に進む(#500,#505,#490)。
On the other hand, if the correction amount WR is less than the predetermined amount AA in step # 480, the follow-up correction flag (following correction F) is reset, and the process proceeds to step # 300 (# 480, # 485). When the follow-up flag (follow-up F) is set in step # 475, the correction amount WR is the predetermined amount AX (count value NZ of the near zone counter).
(Larger than C) or more, and if it is a predetermined amount or more, it is determined that the subject has deviated from the focus detection area,
The non-update flag (non-update F) for prohibiting the update of the drive amount of the lens is set, the follow-up correction flag (following correction F) is reset, and the process proceeds to step # 300 (# 500, # 505, # 490).

逆にステップ#500で補正量WRが所定量AX未満である場
合、非更新フラグ(非更新F)をリセットし、追随補正
フラグ(追随補正F)をセットしてステップ#300に進
む(#500,#510,#490)。
On the contrary, if the correction amount WR is less than the predetermined amount AX in step # 500, the non-update flag (non-update F) is reset, the follow-up correction flag (following correction F) is set, and the process proceeds to step # 300 (# 500). , # 510, # 490).

第2図に戻り、ステップ#185において、焦点検出が不
能と判定したときには、第9図のLOWCONのフローに進
む。第9図のLOWCONのフローにおいて、マイコン(1)
はまず追随フラグ(追随F)がセットされているか否か
を判定し、追随フラグ(追随F)がセットされている場
合には、非更新フラグ(非更新F)をセットする(#52
0,#525)。そして、ここを通過するのが1回目である
ことを示すフラグFIFがセットされているか否かを判定
し、セットされていないとき、即ちここを通るのが1回
目のときこのフラグFIFをセットし、変数N1を0として
第2図のステップ#55以下のCDINTのフローに進む(#5
30,#625,#630)。
Returning to FIG. 2, when it is determined in step # 185 that focus detection is impossible, the flow proceeds to LOWCON in FIG. In the LOWCON flow of Fig. 9, the microcomputer (1)
First, it is determined whether or not the follow-up flag (following F) is set. If the follow-up flag (following F) is set, the non-update flag (non-update F) is set (# 52).
0, # 525). Then, it is determined whether or not the flag FIF indicating that this is the first time to pass is set, and when it is not set, that is, the first time to pass through here, this flag FIF is set. , The variable N1 is set to 0, and the flow proceeds to the CDINT flow following step # 55 in FIG. 2 (# 5
30, # 625, # 630).

ステップ#530において、上記フラグFIFがセットされて
いるときには、変数N1に1を加えて、この値N1が2であ
るか否かを判定し、2でない場合には、第2図のステッ
プ#55以下のCDINTのフローに進み、2である場合には
追随フラグ(追随F)及び非更新フラグ(非更新F)を
それぞれリセットして、ステップ#555に進む(#535〜
#550)。上述のステップ#520〜#550,#625,#630で
は、追随モードであるときに焦点検出エリアから被写体
がはずれると、デフォーカス量が急に大きくなったり、
焦点検出不能と判定されたりする事があるので、これに
対する対策を施しているのである。即ち、デフォーカス
量が急に大きくなっても焦点検出可能なときは、補正量
WRが急に大きくなることを意味し、このときは、上述し
た第8図のステップ#500〜#510で処理している。一
方、第2図のステプ#185で焦点検出不能と判定したと
きには、第9図のLOWCONのフローに進む。そして、追随
モードで焦点検出不能と判定したとき、すなわち焦点検
出エリアから被写体がはずれたときには、ステップ#55
5からの通常の焦点検出不能の処理をせず、前回演算さ
れたデフォーカス量に基づいてレンズを駆動することに
している。一方、ステップ#520で追随フラグがセット
されていないときには、フラグFIFをリセットして、ス
テップ#555に進む。
In step # 530, when the flag FIF is set, 1 is added to the variable N1 to determine whether or not this value N1 is 2, and if it is not 2, step # 55 in FIG. The process proceeds to the flow of CDINT below, and when it is 2, the follower flag (following F) and the non-update flag (non-update F) are reset, and the process proceeds to step # 555 (# 535-
# 550). In steps # 520 to # 550, # 625, and # 630 described above, if the subject moves out of the focus detection area in the tracking mode, the defocus amount suddenly increases,
Since it may be determined that the focus cannot be detected, measures are taken against this. That is, if the focus can be detected even if the defocus amount suddenly increases, the correction amount
This means that WR suddenly increases, and at this time, the processing is performed in steps # 500 to # 510 in FIG. 8 described above. On the other hand, if it is determined in step # 185 in FIG. 2 that focus detection is not possible, the flow proceeds to LOWCON in FIG. Then, when it is determined that the focus detection is impossible in the tracking mode, that is, when the subject is out of the focus detection area, step # 55
Instead of performing the normal focus detection impossible process from 5, the lens is driven based on the previously calculated defocus amount. On the other hand, if the follow-up flag is not set in step # 520, the flag FIF is reset and the process proceeds to step # 555.

ステップ#555以下ではそれぞれ後述するカウント割
込,タイマー割込,ENTEVENT割込を禁止する(#555〜#
557)。次に焦点検出不能と判定した原因が被写体の低
輝度すぎること(ローライト)にあるか否かを、CCDの
フォトダイオードの近傍に設けられた受光素子の出力に
よって検出する。そして、焦点検出不能の原因がこのロ
ーライトであれば、補助光発光装置(13)がカメラに装
填されているか否かを検出し、補助光発光装置(13)が
装填されているときには補助光発光モードとし、補助光
フラグ(補助光F)がセットされているか否かを判定す
る(#560〜#570)。ステップ#570で補助光フラグ
(補助光F)がセットされているとき、すなわち、一度
補助光を発光したがやはりローライトのために焦点検出
不能であったときには、焦点検出不能を示すローコン表
示を行って焦点検出を停止すべくマイコン(1)は割り
込み待ちとなる(#570、#585、#590)。逆にステッ
プ#570で補助光フラグがセットされていないときは、
このフラグ(補助光F)をセットし、更に積分時間の長
いモードを示す長積分フラグ(長積F)をセットして、
第2図のステップ#55以下のフローCDINTに進む。ステ
ップ#555においてローライトでないと判定した場合あ
るいはステップ#565で補助光発光装置(13)が装填さ
れていないと判定した場合、ローコン表示を行う(#59
5)。そしてレンズ繰り込みモードを示すフラグLBFを判
定し、このフラグLBFがセットされていないときにはレ
ンズ繰り出しの制御を命令し、一方フラグLBFがセット
されているときには、レンズ繰り込みの制御の命令を行
ってレンズ駆動用モータを駆動する命令を出力してから
第2図のステップ#55以下の焦点検出のフローCDINTに
進んで焦点検出を行う(#600,#605,#610,#615)。
In steps # 555 and below, count interrupt, timer interrupt, and ENTEVENT interrupt, which will be described later, are prohibited (# 555 to #).
557). Next, whether or not the reason why focus detection is impossible is that the brightness of the subject is too low (low light) is detected by the output of the light receiving element provided near the photodiode of the CCD. If the cause of focus detection failure is this low light, it is detected whether or not the auxiliary light emitting device (13) is mounted in the camera, and when the auxiliary light emitting device (13) is installed, the auxiliary light emitting device (13) is detected. The light emission mode is set, and it is determined whether or not the auxiliary light flag (auxiliary light F) is set (# 560 to # 570). When the auxiliary light flag (auxiliary light F) is set in step # 570, that is, when the auxiliary light is emitted once but focus detection is not possible due to low light, a low contrast display indicating focus detection failure is displayed. The microcomputer (1) waits for an interrupt in order to stop the focus detection (# 570, # 585, # 590). Conversely, if the fill light flag is not set in step # 570,
This flag (auxiliary light F) is set, and a long integration flag (long product F) indicating a mode with a long integration time is set.
Proceed to the flow CDINT following step # 55 in FIG. If it is determined in step # 555 that it is not low light, or if it is determined in step # 565 that the auxiliary light emitting device (13) is not mounted, low contrast display is performed (# 59).
Five). Then, the flag LBF indicating the lens retraction mode is determined, and when the flag LBF is not set, the lens extension control is commanded. On the other hand, when the flag LBF is set, the lens retraction control command is issued to drive the lens. After outputting the command to drive the motor for focus, the flow proceeds to the focus detection flow CDINT in step # 55 and subsequent steps in FIG. 2 to perform focus detection (# 600, # 605, # 610, # 615).

次に第10図〜第13図に示したレンズ駆動制御のフローの
説明をする。まず、その前に実施例におけるレンズ駆動
用モーターの速度制御についての説明を行う。モーター
速度の種類としては、ニアゾーン外(アウトゾーン)で
の速度、ニアゾーン内での3つの速度、ステップ駆動の
5種類を有しており、追随モード、非追随モードでの精
度優先及びスピード優先の各モードにおいて、そのとき
のデフォーカスパルス数に応じて、上記5種類のレンズ
速度制御が行なわれる。これらのことを表2に示し説明
すると、モーターの回転速度としては、20,000rpm(ア
ウトゾーン)、5,000rpm(ニアゾーン1)、2,500rpm
(ニアゾーン2)、1,000rpm(ニアゾーン3)、ステッ
プ駆動の5種類を有している。そして、このうちステッ
プ駆動に関しては、精度優先の非追随モードのみに使用
し、精度よく、レンズ制御を行なうようにしている。ニ
アゾーンでのデフォーカスパルス数に対するレンズの速
度の違いは、合焦までの速度を要するものほど速くして
いる。モータの速度を速くすればするほどその止まり精
度が悪くなる傾向がある。これらの速度制御をカメラの
シーケンスの中でどのように行なわれるかを以下に説明
する。
Next, the flow of the lens drive control shown in FIGS. 10 to 13 will be described. First, before that, speed control of the lens driving motor in the embodiment will be described. There are five types of motor speeds: speed outside the near zone (out zone), three speeds within the near zone, and step drive. In each mode, the above five types of lens speed control are performed according to the number of defocus pulses at that time. These are shown in Table 2 and explained. The rotation speed of the motor is 20,000 rpm (out zone), 5,000 rpm (near zone 1), 2,500 rpm.
There are five types: (near zone 2), 1,000 rpm (near zone 3), and step drive. Of these, step driving is used only in the non-following mode in which priority is given to accuracy, and lens control is performed with high accuracy. The difference in the lens speed with respect to the number of defocus pulses in the near zone is so high that the speed required until focusing is required. The higher the speed of the motor, the worse the stopping accuracy of the motor. How these speed controls are performed in the sequence of cameras is described below.

まず第10図に示したTINNZのフローから説明する。ステ
ップ#630において、マイコン(1)はレンズが停止し
ているか否かを判定し、レンズが停止していないときに
はレンズの駆動量を更新しないことを示すフラグ(非更
新F)がセットされているかを判定し、セットされてい
ればレンズの駆動量を更新しないでステップ#700に進
む(#630、#635)。ステップ#630でレンズが停止中
であるときには、ステップ#680に進みニアゾーンに入
っているか否かを判定するニアゾーン判定のサブルーチ
ンに進む。このニアゾーンのサブルーチンを第11図に示
し説明する。第11図のステップ#2300において、マイコ
ン(1)は追随フラグ(追随F)がセットされているか
否かを判定し、セットされている場合にはニアゾーン範
囲を示すカウンターのカウント値NZCを63にセットし、
逆に非追随モード(追随フラグリセット時である場合に
は、スピード優先モードであればニアゾーンカウンター
のカウント値NZCを100、精度優先モードであればニアゾ
ーンカウンターのカウント値NZCを120に夫々セットして
ステップ#2310に進む(#2300,#2305,#2325〜#233
5)。ステップ#2310では、デフォーカスパルス数ERRが
セットしたニアゾーンカウンターのカウント値NZC以下
であるか否かを判定し、ニアゾーンカウンターのカウン
ト値NZC未満であればニアゾーンを示すフラグNZFをセッ
トし、ニアゾーンカウンターのカウント値NZC以上であ
れば、ニアゾーンフラグNZFをリセットしてリターンす
る(#2310〜#2320)。
First, the TINNZ flow shown in FIG. 10 will be described. In step # 630, the microcomputer (1) determines whether or not the lens is stopped, and if the lens is not stopped, is a flag (non-update F) indicating that the lens drive amount is not updated set? If it is set, the process proceeds to step # 700 without updating the lens drive amount (# 630, # 635). If the lens is stopped in step # 630, the process proceeds to step # 680, and the process proceeds to the near zone determination subroutine for determining whether or not the lens is in the near zone. This near zone subroutine will be described with reference to FIG. In step # 2300 of FIG. 11, the microcomputer (1) determines whether or not the follow-up flag (following F) is set, and if it is set, the count value NZC of the counter indicating the near zone range is set to 63. Set,
On the contrary, in non-following mode (when the follower flag is reset, the count value NZC of the near zone counter is set to 100 in the speed priority mode, and the count value NZC of the near zone counter is set to 120 in the accuracy priority mode. And proceed to Step # 2310 (# 2300, # 2305, # 2325 to # 233
Five). In step # 2310, it is determined whether or not the defocus pulse number ERR is equal to or less than the set count value NZC of the near zone counter, and if it is less than the count value NZC of the near zone counter, the flag NZF indicating the near zone is set, If it is equal to or greater than the count value NZC of the near zone counter, reset the near zone flag NZF and return (# 2310 to # 2320).

そして、第10図のステップ#685にもどり、ニアゾーン
フラグNZFがセットされているか否かを判定し、セット
されていないときには、デフォーカスパルス数ERRから
ニアゾーンカウンターのカウント値NZCをひいた値をイ
ベントカウンターEVENTCNTに入力する(#685〜#69
0)。このイベントカウンターEVENTCNTは第1図のエン
コーダ(11)からパルスが送られてくる毎に1を減算
し、カウンターの内容が0になったときにニアゾーン突
入を示す割込(INTEVENT)を実行するためのものであ
る。イベントカウンターEVENTCNTへの入力を終えるとス
テップ#695のイベントカウンターセット(EVENTCNTセ
ット)のサブルーチンに進み、このサブルーチンを終了
するとステップ#700に進む。このサブルーチンを第10
図右上に示し説明する。
Then, returning to step # 685 in FIG. 10, it is determined whether or not the near zone flag NZF is set. If not, the value obtained by subtracting the count value NZC of the near zone counter from the defocus pulse number ERR. To the event counter EVENTCNT (# 685- # 69
0). This event counter EVENTCNT subtracts 1 each time a pulse is sent from the encoder (11) in Fig. 1 and executes an interrupt (INTEVENT) indicating the entry of the near zone when the counter content becomes 0. belongs to. When the input to the event counter EVENTCNT is completed, the process proceeds to the event counter set (EVENTCNT set) subroutine in step # 695, and when this subroutine is completed, the process proceeds to step # 700. This subroutine is the 10th
It will be described in the upper right of the figure.

このサブルーチン(EVENTCNTセット)では、このイベン
トカウンターによる割込(INTEVENT)を許可し、更に後
述のタイマー割込及びカウンタ割込(CNTR割込)を禁止
してリターンする(#2350〜#2360)。
In this subroutine (EVENTCNT set), the interrupt (INTEVENT) by this event counter is enabled, and the timer interrupt and counter interrupt (CNTR interrupt) described later are prohibited and the process returns (# 2350 to # 2360).

第10図のステップ#635において、非更新フラグ(非更
新F)がセットされていないときには、デフォーカスパ
ルス数ERRから積分中心から演算終了までに動いたレン
ズの移動量CTCをひいて、実際に駆動すべきデフォーカ
スパルス数とし、第11図図示の前述したニアゾーン判定
のサブルーチンに進む(#645、#650)。このサブルー
チンでニアゾーンを示すフラグNZFがセットされていな
いときには、デフォーカスパルス数ERRからニアゾーン
カウンターのカウント値NZCをひいてイベンドカウンタE
VENTCNTのカウント値として、イベントカウンターセッ
ト(EVENTCNTセット)のサブルーチンに進み、このサブ
ルーチンを経てステップ#700に進む(#655,#670,#6
75)。ステップ#655あるいはステップ#685において、
ニアゾーンフラグNZFがセットされているときには、デ
フォーカスパルス数ERRを駆動カウンターENZCNTに入力
し、第14図に示したタイマIセットのサブルーチンに進
み、このサブルーチンの終了後ステップ#700に進む
(#660、#665)。このサブルーチンでは、表2に示し
た各モード(追随モード、非追随モード時のスピード優
先、精度優先)に関してニアゾーン内におけるデフォー
カスパルス数に対するモーターの速度を決定している。
本実施例におけるモーターの速度制御は、所定時間内に
エンコーダからのパルスが送られてくるか否かによって
モーターへの通電をON、OFFしてモーターの速度を一定
とし、上記所定時間を変えることによってモーターの速
度を変えている。そして、この所定時間が短くなるほど
モーターの速度が速くなり、毎分5000回転相当のタイマ
ーはA1、2500回転相当のタイマーはA2、1000回転相当の
タイマーはA3となっており、A1<A2<A3の関係である。
In step # 635 of FIG. 10, when the non-update flag (non-update F) is not set, the lens movement amount CTC moved from the center of integration to the end of calculation is subtracted from the defocus pulse number ERR, and The number of defocus pulses to be driven is set, and the process proceeds to the above-mentioned near zone determination subroutine shown in FIG. 11 (# 645, # 650). When the flag NZF indicating the near zone is not set in this subroutine, the count value NZC of the near zone counter is subtracted from the defocus pulse number ERR and the event counter E
As the count value of VENTCNT, proceed to the subroutine of event counter set (EVENTCNT set), and proceed to step # 700 via this subroutine (# 655, # 670, # 6
75). In Step # 655 or Step # 685,
When the near zone flag NZF is set, the defocus pulse number ERR is input to the drive counter ENZCNT, and the process proceeds to the timer I setting subroutine shown in FIG. 660, # 665). In this subroutine, the motor speed with respect to the number of defocus pulses in the near zone is determined for each of the modes shown in Table 2 (following mode, speed priority in non-following mode, accuracy priority).
The speed control of the motor in this embodiment is performed by turning on / off the power supply to the motor to keep the speed of the motor constant depending on whether a pulse is sent from the encoder within a predetermined time, and changing the above predetermined time. Changes the speed of the motor. The shorter the predetermined time is, the faster the motor speed becomes. The timer equivalent to 5000 rpm is A1, the timer equivalent to 2500 rpm is A2, the timer equivalent to 1000 rpm is A3, and A1 <A2 <A3. Relationship.

第10図のステップ#665に示されるタイマーIセットの
サブルーチンの詳細を第14図に示して説明すると、ステ
ップ#2400〜#2455では、モーターの速度が表2に示さ
れるごとくになるように上述したタイマーがセットさ
れ、ステップ#2460及び#2465でカウント割込及びタイ
マー割込をそれぞれ許可してリターンする。ここで、a2
=61,a3=30,b1=31,b2=15,c1=79,c2=31である。ス
テップ#2435においてステップ駆動モードを示すフラグ
STEPFがセットされていれば、ステップ#2470に進む。
ステップ#2470では、モーターの駆動が停止しているか
を判定し、停止していない場合、ステップ駆動を行なう
べき駆動カウンターの値でエンコーダパルスによるカウ
ント割込が行なわれたことを示すステップ駆動フラグST
PDRFがセットされているかを判定し、このフラグSTPDRF
がセットされているときには、このフラグSTPDRFをリセ
ットし、タイマーにD1をセットする(#2470〜#248
5)。一方、モーターが停止中あるいはステップ駆動フ
ラグSTPDRFがセットされていない場合には、このフラグ
STPDRFをセットして、タイマーにD2をセットする(#24
70,#2475,#2490,2495)。このときの駆動時間の方が
短くD1<D2となっている。
The details of the timer I set subroutine shown in step # 665 of FIG. 10 will be described with reference to FIG. 14, and in steps # 2400 to # 2455, the motor speed is set as shown in Table 2 above. The set timer is set, and in steps # 2460 and # 2465, the count interrupt and the timer interrupt are permitted, and the process returns. Where a 2
= 61, a 3 = 30, b 1 = 31, b 2 = 15, c 1 = 79, a c 2 = 31. Flag indicating step drive mode in step # 2435
If STEPF is set, proceed to step # 2470.
In step # 2470, it is determined whether or not the motor drive is stopped, and if it is not stopped, the step drive flag ST indicating that the count interrupt by the encoder pulse has been performed with the value of the drive counter that should perform step drive
Determine whether PDRF is set and check this flag STPDRF
When is set, this flag STPDRF is reset and D1 is set in the timer (# 2470 to # 248).
Five). On the other hand, if the motor is stopped or the step drive flag STPDRF is not set, this flag
Set STPDRF and D2 to the timer (# 24
70, # 2475, # 2490, 2495). The driving time at this time is shorter and D1 <D2.

第10図にもどり、ステップ#700でモーターを駆動させ
る。そしてニアゾーンフラグNZFがセットされているか
を判定し、セットされていない場合にはレンズを移動し
ながら積分を行なうことを示す移動積分フラグNIDFをセ
ットする(#705,#745)。次に、モーターが停止中か
否かを判定し、モーターが停止中であれば、モーターの
立上り時間を少し待ってステップ#735へ進み、停止し
ていなければすぐにステップ#735に進む(#750,#75
5)。ステップ#735では、デフォーカスパルス数ERRが
狭合焦ゾーンに入ったか否かを判定し、狭合焦ゾーン内
であれば、積分を行なわずに残りのデフォーカス量だけ
レンズを動かすべくマイコン(1)は割込み待ちの制御
となり、狭合焦ゾーンでなければ第2図のステップ#55
以下の焦点検出のフローCDINTに進む(#735,#740)。
ステップ#705でニアゾーンフラグNZFがセットされてい
れば、WNZ3のフローに進んで、まず、移動積分フラグ
(NIDF)がセットされているか否かを判定し、セットさ
れていなければステップ#735に進む(#710)。一方、
ステップ#710で移動積分フラグ(NIDF)がセットされ
ていれば駆動カウンターのカウント値ENZCNTがニアゾー
ン3(表2参照)のデフォーカスパルス数内か否かを判
定するニアゾーン3判定のサブルーチンに進む。
Return to FIG. 10 and drive the motor in step # 700. Then, it is determined whether or not the near zone flag NZF is set, and if not set, the moving integration flag NIDF indicating that the integration is performed while moving the lens is set (# 705, # 745). Next, it is determined whether or not the motor is stopped. If the motor is stopped, wait for the motor startup time and proceed to step # 735. If not stopped, immediately proceed to step # 735 (# 750, # 75
Five). In step # 735, it is determined whether or not the defocus pulse number ERR has entered the narrow focus zone, and if it is within the narrow focus zone, the microcomputer (to move the lens by the remaining defocus amount without performing integration). In 1), the control waits for interruption, and if it is not the narrow focus zone, step # 55 in FIG.
Go to the focus detection flow CDINT below (# 735, # 740).
If the near zone flag NZF is set in step # 705, the flow proceeds to WNZ3, and it is first determined whether or not the moving integral flag (NIDF) is set. If not, the process proceeds to step # 735. Go forward (# 710). on the other hand,
If the moving integration flag (NIDF) is set in step # 710, the process proceeds to a near zone 3 determination subroutine for determining whether the count value ENZCNT of the drive counter is within the defocus pulse number of near zone 3 (see Table 2).

このニアゾーン3判定のサブルーチンの詳細を第15図に
示し説明すると、まず、追随フラグ(追随F)がセット
されているか否かを判定し、このフラグ(追随F)がセ
ットされているときは、駆動カウンターのカウント値EN
ZCNTが15以下であればニアゾーン3内であることを示す
フラグNZ3Fをセットしてリターンし、ENZCNTが15を超え
るときはフラグNZ3Fをリセットしてリターンする(#25
00〜#2510,#2535)。逆に、非追随モードでスピード
優先モードであるときは、駆動カウンターのカウント値
ENZCNTが30以下であればフラグNZ3Fをセットし、30を超
えるときはリセットしてリターンする。更に、非追随モ
ードで精度優先モードであるときは、駆動カウンターの
カウント値ENZCNTが31以下のときにフラグNZ3Fをセット
し、31を超えるときはフラグNZ3Fをリセットしてリター
ンする。
The details of the sub-zone 3 determination subroutine are shown in FIG. 15 and explained. First, it is determined whether or not the follow-up flag (following F) is set, and when this flag (following F) is set, Drive counter count value EN
If ZCNT is 15 or less, set flag NZ3F indicating that it is in near zone 3 and return, and if ENZCNT exceeds 15, reset flag NZ3F and return (# 25
00 ~ # 2510, # 2535). Conversely, when the non-following mode is the speed priority mode, the count value of the drive counter
If ENZCNT is 30 or less, flag NZ3F is set, and if it exceeds 30, reset and return. Further, in the non-following mode and the precision priority mode, the flag NZ3F is set when the count value ENZCNT of the drive counter is 31 or less, and when it exceeds 31, the flag NZ3F is reset and the process returns.

第10図にもどり、ステップ#715でニアゾーン3フラグN
Z3Fがセットされていないとき、すなわちニアゾーン3
の領域に入っていないときはステップ#712にもどり、
ニアゾーン3の領域に入ってフラグNZ3Fがセットされた
ときには、移動積分フラグNIDFをリセットする(#72
0)。次に、追随フラグ(追随F)がセットされている
か否かを判定しセットされているときあるいは、追随フ
ラグ(追随F)がセットされていなくともスピード優先
モードであるときは、ステップ#735に進む(#725,#7
27)。精度優先モードであれば、レンズが停止(駆動カ
ウンターのカウント値ENZCNTが0になるまで)するまで
ステップ#727を繰り返す。これは、精度優先モードで
のステップ駆動は、一定速度でないために移動積分が正
しく行なえないからである。
Returning to FIG. 10, in step # 715, near zone 3 flag N
When Z3F is not set, that is, near zone 3
If you are not in the area of, return to step # 712,
When the flag NZ3F is set in the area of the near zone 3, the moving integration flag NIDF is reset (# 72).
0). Next, when it is determined whether or not the follow-up flag (following F) is set, or when the follow-up flag (following F) is not set and the speed priority mode is set, the process proceeds to step # 735. Forward (# 725, # 7
27). In the accuracy priority mode, step # 727 is repeated until the lens stops (until the count value ENZCNT of the drive counter becomes 0). This is because the step drive in the accuracy priority mode cannot perform the moving integration correctly because the speed is not constant.

上述の移動積分について第21図を参照して説明する。第
21図は、縦軸にモーターの回転速度、横軸に時間をとっ
たものである。上部にはモーターの状態に応じて移動積
分が可能かどうかを示してある。本実施例では、20,000
rpmからの減速時のニアゾーン3に入るまでと、ステッ
プ駆動時と、モーター停止から20,000rpmへの加速時と
に移動積分を禁止している。これは、これらの期間中は
加速減速が常には一定ではないので移動中の積分中心が
はっきりせず、焦点検出のエラーが多いと考えられるか
らである。一方、ニアゾーン内あるいはニアゾーンへの
加速時は、もともとモーターの速度が遅いことと加速中
の時間が短いこととのために焦点検出のエラーはエンコ
ーダのパルス数にして数パルス程度であるので、移動積
分を行っても実用上さしつかえない。そこで本実施例で
は、このようにして、できるだけ移動積分を可能として
焦点調節に要する時間を短くしている。
The above-mentioned moving integral will be described with reference to FIG. First
In Fig. 21, the vertical axis shows the motor rotation speed and the horizontal axis shows time. The upper part shows whether or not the moving integral is possible depending on the state of the motor. In this example, 20,000
Moving integration is prohibited until stepping into near zone 3 during deceleration from rpm, during step driving, and during acceleration from motor stop to 20,000 rpm. This is because the acceleration / deceleration is not always constant during these periods, so the center of integration during movement is not clear, and it is considered that there are many focus detection errors. On the other hand, when accelerating in or near the near zone, the focus detection error is only a few pulses in the encoder pulse due to the slow motor speed and the short acceleration time. It does not matter in practice even if the integration is performed. Therefore, in this embodiment, in this way, the time required for focus adjustment is shortened by enabling the moving integration as much as possible.

次に第10図にもどり、右下に示したイベントカウンタ割
込INTEVENTを説明する。イベントカウンタ(EVENCNT)
はエンコーダ(11)からパルスがくる毎にカウント値か
ら1をひくようになっており、このイベントカウンタの
カウント値が0になればこの割込INTEVENTのフローに入
る。このフローでは、まずステップ#2550でINTEVENT割
込を禁止して、レリーズ中であることをフラグRESFで判
定し、このフラグRESFが設定されていれば駆動カウンタ
EVENCNTのカウント値に40を入れ、後述するタイマRセ
ットのサブルーチンに進み、モーターの回転速度の制御
を行う(#2550,#2555,#2570,#2575)。ステップ#2
555でフラグRESFがセットされておらずにレリーズ中で
なければ駆動カウンターENZCNTのカウント値にニアゾー
ンカウンターNZCのカウント値を入れ、後述するタイマ
Iセットのサブルーチンに進み、このサブルーチンの終
了後、ニアゾーンフラグNZFをセットしてステップ#710
以下のWNZ3のフローに進む(#2560〜#2567)。
Next, returning to FIG. 10, the event counter interrupt INTEVENT shown at the lower right will be described. Event counter (EVENCNT)
Is subtracted from the count value each time a pulse comes from the encoder (11), and if the count value of this event counter becomes 0, this interrupt INTEVENT flow is entered. In this flow, first, in step # 2550, the INTEVENT interrupt is prohibited, and it is judged by the flag RESF that the release is in progress. If this flag RESF is set, the drive counter
40 is added to the count value of EVENCNT, and the process proceeds to the timer R setting subroutine described later to control the rotation speed of the motor (# 2550, # 2555, # 2570, # 2575). Step # 2
If the flag RESF is not set in 555 and the release is not in progress, add the count value of the near zone counter NZC to the count value of the drive counter ENZCNT and proceed to the timer I set subroutine described later. Set zone flag NZF and step # 710
Proceed to the following WNZ3 flow (# 2560 ~ # 2567).

次に第12図に示したカウンター割込(CNTR割込)を説明
する。このカウンター割込は第1図のエンコーダ(11)
からパルスが発生するたびに実行される。このフローに
入るとまず、マイコン(1)は駆動カウンターEVENCNT
のカウント値を1つ減算し、駆動カウンタENZCNTのカウ
ント値が0になった否かを判定する(#800〜#805)。
そして駆動カウンターEVENCNTのカウント値が0でない
場合にはステップ駆動を示すステップモードフラグSTEP
Fがセットされているか否かを判定し(#815)、セット
されているときにはステップ#835に進む。
Next, the counter interrupt (CNTR interrupt) shown in FIG. 12 will be described. This counter interrupt is the encoder (11) in Fig. 1.
Is executed every time a pulse is generated from. When entering this flow, first, the microcomputer (1) drives the drive counter EVENCNT.
1 is subtracted from the count value and the count value of the drive counter ENZCNT is determined to be 0 (# 800 to # 805).
If the count value of the drive counter EVENCNT is not 0, the step mode flag STEP indicating the step drive is displayed.
It is determined whether or not F is set (# 815), and when it is set, the process proceeds to step # 835.

ステップ#815でフラグSTEPFがセットされていないとき
はステップ#820へ進み、精度優先モードでないとき、
あるいは精度優先モードであっても駆動カウンターENZC
NTのカウント値が6を越えるときは、ステップ駆動をし
ないものとして、ステップ#840に進む。ここでは本カ
ウンタ割込の前にタイマ割込が入ったことを示すフラグ
TIPASFがセットされているか否かを判定し、セットされ
ているときには、これをリセットしてリターンする。こ
のフラグTIPASFがセットされていないときには、モータ
ーの通電を切る(#845)。一方、ステップ#820で精度
優先モードでありかつ駆動カウンターENZCNTのカウント
値が6以下のときには、ステップ#825からステップ#8
30に進み、ステップモードを示すフラグSTEPFをセット
し、更にステップ駆動フラグSTPDRFをセットしてから、
ステップ#845でモーターの通電を切る(#830,#835,
#845)。次にレリーズされたことを示すフラグRESFが
セットされているか否かを判定し、セットされていると
きはタイマRセットのサブルーチンに進み、セットされ
ていないときにはタイマIセットのサブルーチンに進ん
で、サブルーチンの終了後リターンする(#850〜#86
0)。タイマRセットに関してはレリーズ時の説明のと
きに行う。
If the flag STEPF is not set in step # 815, the process proceeds to step # 820, and if the accuracy priority mode is not set,
Or drive counter ENZC even in accuracy priority mode
When the count value of NT exceeds 6, it is determined that the step drive is not performed, and the process proceeds to step # 840. Here, a flag indicating that a timer interrupt has been entered before this counter interrupt
It is determined whether TIPASF is set, and if it is set, it is reset and the process returns. When this flag TIPASF is not set, the motor is de-energized (# 845). On the other hand, when the accuracy priority mode is set in step # 820 and the count value of the drive counter ENZCNT is 6 or less, steps # 825 to # 8.
Go to 30, set the flag STEPF indicating the step mode, and further set the step drive flag STPDRF,
Power off the motor in step # 845 (# 830, # 835,
# 845). Next, it is determined whether or not the flag RESF indicating the release is set, and if it is set, the routine proceeds to the timer R setting subroutine, and if it is not set, the timer I set subroutine is proceeded to. Returns after the end of (# 850- # 86
0). The timer R setting will be performed at the time of the explanation at the time of release.

ステップ#805において、駆動カウンターENZCNTのカウ
ント値が0となったとき、すなわちレンズが合焦点まで
駆動を終えたときには、モーターを停止し、ステップモ
ードフラグSTEPFをリセットして、タイマ割込及びカウ
ント割込を禁止する(#870〜#880)。そして、レリー
ズフラグRESFがセットされているときにはリターンし、
セットされていないときには後述するDRVEDのフローに
進む(#885)。
In step # 805, when the count value of the drive counter ENZCNT becomes 0, that is, when the lens finishes driving to the in-focus point, the motor is stopped, the step mode flag STEPF is reset, and the timer interrupt and the count interrupt are reset. Prohibit inclusion (# 870- # 880). Then, when the release flag RESF is set, it returns,
When it is not set, the flow proceeds to the DRVED flow described later (# 885).

このDRVEDのフローでは、まず、ワンショットモードに
おいて駆動カウンターENZCNTのカウント値が0になった
ときのフローを一度通過したことを示すフラグ1STDFが
セットされているか否かを判定し、セットされている場
合には第2のステップ#55以下の焦点検出のフローCDIN
Tに進む(#895)。ステップ#895でこのフラグ1STDFが
セットされていないときには、ステップ#900に進んで
スイッチ(S4)の状態からコンティニュアスモードかワ
ンショットモードかを判定し、ワンショットモードであ
れば合焦フラグをセットし、更にこのフローを一度通過
したことを示すプラグ1STDFをセットして焦点検出のフ
ローCDINTに進む(#900,#910,#915)。ステップ#90
0でコンティニユアスモードである場合には追随フラグ
がセットされているか否かを判定して、セットされてい
ればリターンしてそのときのデータを利用て引き続き焦
点検出を行うことによって追随性を上げセットされてい
ないときには第6図のステップ#260以下のINFZのフロ
ーに進んで合焦表示等の制御を行なう(#905)。
In this DRVED flow, first, it is determined whether or not the flag 1STDF, which indicates that the flow once passed the count value of the drive counter ENZCNT in the one-shot mode, has been set to 0, is set. In the case of the second step # 55, the flow of focus detection CDIN
Proceed to T (# 895). If this flag 1STDF is not set in step # 895, the process proceeds to step # 900 to determine whether it is the continuous mode or the one-shot mode from the state of the switch (S4), and if it is the one-shot mode, set the focus flag. Set, and then set plug 1STDF, which indicates that the flow has passed once, and proceed to the focus detection flow CDINT (# 900, # 910, # 915). Step # 90
When the continuous mode is set to 0, it is determined whether or not the follow-up flag is set, and if it is set, return is made, and the focus detection is continued using the data at that time to improve followability. If it has not been set up, the flow proceeds to INFZ flow from step # 260 onward in FIG. 6 to control the focus display and the like (# 905).

第13図にタイマ割込のフローを示す。このタイマ割込は
タイマ1セットのルーチンで設定された時間内にエンコ
ーダからのパルスが送られてこないときに実行されるも
のである。第13図において、マイコン(1)は、ステッ
プ#950でフラグRESFを判定し、このタイマ割込がレリ
ーズ中に行なわれたか否かを判定し、レリーズ中でなけ
れば後述のタイマ1セットのサブルーチンに進み、レリ
ーズ中であれば後述のタイマRセットのサブルーチンに
進む(#950〜#960)。次にフラグSTEPFを判定して、
ステップモードであるか否かを判定し、ステップモード
でなければタイマ割込を行なった事を示すフラグTIPASF
をセットし、モーターに通電してリターンする(#965
〜#975)。ステップモードであるときは、ステップ駆
動を行なうことを示すフラグSTPDRFがセットされている
か否かを判定し、セットされている場合は、モーターに
通電し、セットされていないときにはモーターの通電を
切ってリターンする(#975,#980,#985)。
Figure 13 shows the timer interrupt flow. This timer interrupt is executed when no pulse is sent from the encoder within the time set by the timer 1 set routine. In FIG. 13, the microcomputer (1) determines the flag RESF in step # 950 to determine whether or not this timer interrupt is performed during the release. If not, the subroutine of timer 1 set described later is performed. If the release is in progress, the process proceeds to a timer R setting subroutine described later (# 950 to # 960). Next, determine the flag STEPF,
A flag TIPASF indicating whether or not the timer interrupt is determined by determining whether the step mode is set or not
Set, energize the motor and return (# 965
~ # 975). When in the step mode, it is determined whether or not the flag STPDRF indicating the step drive is set. Return (# 975, # 980, # 985).

上述の焦点検出及び焦点調節が行なわれているときにレ
リーズー釦が第2ストロークまで押下されてレリーズス
イッチ(S2)がONすると、「H」から「L」へと変化す
る信号がマイコン(1)の端子(INT2)に入力し第16図
(a)に示したレリーズの割込フローが実行される。ま
ずマイコン(1)はフィルムの巻上が完了しているかど
うかを判定し、完了していれば、レリーズの割込及び第
2図(a)のステップ#45からのAFSの割込を夫々禁止
し、レリーズモードを示すレリーズフラグRESFをセット
する(#1000〜#1012)。
When the release button is pressed down to the second stroke and the release switch (S2) is turned on while the above focus detection and focus adjustment are being performed, the microcomputer (1) outputs a signal that changes from "H" to "L". 16 (a) and the release interrupt flow shown in FIG. 16 (a) is executed. First, the microcomputer (1) determines whether the film winding is completed, and if completed, prohibits the release interrupt and the AFS interrupt from step # 45 of FIG. 2 (a). Then, the release flag RESF indicating the release mode is set (# 1000 to # 1012).

ステップ#1000でフィルムの巻上が完了していないとき
にはレリーズスイッチ(S2)がONされているか否かを判
定し、ONされているときには、ステップ#1000にもど
り、巻上完了を待ち、スイッチ(S2)がOFFのときに
は、第2図のステップ#55以下のCDINTのフローに進
む。
When the film winding is not completed in step # 1000, it is determined whether or not the release switch (S2) is ON. When it is ON, the process returns to step # 1000 to wait for the completion of winding, and the switch ( When S2) is OFF, the process proceeds to the flow of CDINT after step # 55 in FIG.

ステップ#1012でレリーズフラグRESFがセットされる
と、次にステップ#1014でアウトゾーンからニアゾーン
への突入のための割込INTEVENTを禁止し、ステップ#10
16でニアゾーンフラグNZFがセットされているかを判定
する。ステップ#1016でニアゾーンフラグがセットされ
ていないときには、駆動カウンタには値がセットされて
いないので、イベントカウンターEVENTCNTのカウント値
にニアゾーンカウンターのカウント値NZCを加えた値
を、駆動カウンタのカウント値ENZCNTとしてステップ#
1025に進む。ステップ#1025ではスイッチ(S6)の状態
を検出してAF優先モードか否かを判定し、AF優先モード
の場合にはステップ#1110へ、レリーズ優先モードであ
る場合はステップ#1030に進む。
If the release flag RESF is set in step # 1012, then in step # 1014 the interrupt INTEVENT for entering from the out zone to the near zone is prohibited, and step # 10
At 16, it is determined whether the near zone flag NZF is set. If the near zone flag is not set in step # 1016, the value is not set in the drive counter, so the value obtained by adding the count value NZC of the near zone counter to the count value of the event counter EVENTCNT is counted by the drive counter. Step as value ENZCNT #
Continue to 1025. In step # 1025, the state of the switch (S6) is detected to determine whether or not it is the AF priority mode. If it is the AF priority mode, the process proceeds to step # 1110, and if it is the release priority mode, the process proceeds to step # 1030.

レリーズ優先モードの場合から説明すると、まず、追随
モードであるかを追随フラグ(追随F)がセットされて
いるかで判定し、追随モードであるときには、ステップ
#1035の演算Iのサブルーチンに進む。この演算Iのサ
ブルーチンでは、レリーズタイムラグ(スイッチ(S2)
のONから実際の露光開始が行なわれるまでの時間)の間
に、被写体が動く量を推定し、この量に、このモード
(レリーズ)に入るまでのデフォーカス量を加えた値と
してデフォーカス量を求めている。このサブルーチンを
第17図に示し説明する。
Explaining from the case of the release priority mode, first, it is judged whether the follow-up mode is set or not by the setting of the follow-up flag (following F). In this calculation I subroutine, the release time lag (switch (S2)
The amount of defocus amount is estimated as the amount of movement of the subject during the period from when the exposure is turned on until the actual exposure starts), and this amount is added to the amount of defocus until this mode (release) is entered. Are seeking. This subroutine will be described with reference to FIG.

第17図の演算Iのサブルーチンでは、1周期の焦点検出
時間における被写体の動き、すなわち、単位焦点検出時
間における被写体の光軸方向への移動傾き(デフォーカ
ス量換算)を求め、レリーズタイムラグ中に動く被写体
の移動量(デフォーカス量換算)を求める。すなわちス
テップ#2600でレリーズタイムラグ時間RSTを単位焦点
検出時間TIで割って比Rを求め、単位時間における被写
体移動量WRにこの比Rをかけてレリーズタイムラグ中の
移動量WSを求める。これを駆動カウンターENZCNTのカウ
ント値に加えて新たな駆動カウンターENZCNTのカウント
値を求めてリターンする(#2600〜#2610)。
In the subroutine of the calculation I in FIG. 17, the movement of the subject in the focus detection time of one cycle, that is, the movement inclination (defocus amount conversion) of the subject in the unit focus detection time in the optical axis direction is calculated, and is calculated during the release time lag. Find the amount of movement (defocus amount conversion) of a moving subject. That is, in step # 2600, the release time lag time RST is divided by the unit focus detection time TI to obtain the ratio R, and the object movement amount WR in the unit time is multiplied by this ratio R to obtain the movement amount WS during the release time lag. This is added to the count value of the drive counter ENZCNT to obtain a new count value of the drive counter ENZCNT, and the process returns (# 2600 to # 2610).

第16図(a)に戻り、ステップ#1030で追随モードでな
いときには、演算Iのサブルーチンをスキップし、ステ
ップ#1036に進む。そして、駆動カウンターENZCNTのカ
ウント値が3以下か否かを判定し、3以下であれば合焦
と判定してモーターを停止してステップ#1190に進み、
3を越える場合にはステップ#1140に進む(#1136,#1
137)。以下に説明するステップ#1140以下のフローは
レリーズが許可されたときに、レリーズタイムラグ中に
レンズを駆動しようと言うものである。ステップ#1040
では、駆動カウンターENZCNTのカウント値が13以下であ
るかを判定し、13以下であればモーターのスピードを10
00rpmとするフラグe1Fをセットして後述のタイマRセッ
トのサブルーチンに進む(#1080,#1090)。駆動カウ
ンターENZCNTのカウント値が13より大きく40以下では、
タイマRセットのサブルーチンに進む(#1045,#109
0)。更に駆動カウンターENZCNTのカウント値が40より
大きく66以下であればモーターのスピードを5000rpmと
するフラグe2FをセットしてタイマRセットのサブルー
チンに進む(#1050,#1085,#1090)。
Returning to FIG. 16 (a), when it is not in the follow-up mode in step # 1030, the subroutine of the operation I is skipped and the process proceeds to step # 1036. Then, it is determined whether or not the count value of the drive counter ENZCNT is 3 or less. If it is 3 or less, it is determined to be in focus, the motor is stopped, and the process proceeds to step # 1190.
If it exceeds 3, proceed to Step # 1140 (# 1136, # 1
137). The flow from step # 1140 onward described below is to drive the lens during the release time lag when the release is permitted. Step # 1040
Then, determine whether the count value of the drive counter ENZCNT is 13 or less, and if it is 13 or less, the motor speed is 10
The flag e1F for 00 rpm is set, and the process advances to the timer R setting subroutine described later (# 1080, # 1090). When the count value of the drive counter ENZCNT is more than 13 and less than 40,
Proceed to the timer R set subroutine (# 1045, # 109
0). If the count value of the drive counter ENZCNT is more than 40 and less than 66, the flag e2F for setting the motor speed to 5000 rpm is set and the routine proceeds to the timer R setting subroutine (# 1050, # 1085, # 1090).

ここで第19図に示したタイマRセットのサブルーチンを
説明する。これはタイマ1セットのサブルーチンと同じ
く、モーターの速度を設定するためのタイマを設定する
ルーチンである。まずステップ#2780でAF優先モードで
あるか否かを判定し、AF優先モードの場合にはステップ
#2785に進む。これに関しては後述する。一方、レリー
ズ優先モードであるときには、フラグe1Fがセットされ
ているか否かを判定し、セットされている場合にはステ
ップ#2760に進んでタイマ1をA3にセット(1000rpm相
当)し、タイマ割込及びカウント割込を許可してリター
ンする(#2765,2770)。ステップ#2705で1000rpm設定
用のフラグe1Fがセットされていないときには、ステッ
プ#2710で5000rpm設定用のフラグe2Fがセットされてい
るか否かを判定し、セットされているときには、ステッ
プ#2800に進んでモーターを停止したときに行きすぎる
量α1を補正する為のフラグFe2Fがセットされているか
を判定し、このフラグFe2Fがセットされているときには
ステップ#2830でタイマ1にA1をセット(5000rpm相
当)し、ステップ#2765に進む。ステップ#2800でフラ
グFe2Fがセットされていないときには、ステップ#2805
でこのフラグFe2Fをセットし、ステップ#2810で駆動カ
ウンターENZCNTのカウント値にこの行きすぎ量α1を加
えて新たに駆動カウンターENZCNTのカウント値とし、ス
テップ#2830に進んでタイマ1をA1にセットする。この
行きすぎ量について説明すると、1000rpmからモーター
を停止させれば行きすぎ量は無視できる程度に小さい
が、5000rpmからモーターを停止させれば大きく行きす
ぎてしまう。そして、この量はモータの回転速度にほぼ
固有であり、各レンズに対してのばらつきは小さいの
で、駆動カウンタENZCNTのカウント値に一定値α1を加
えておけばレンズが合焦位置に到達する手前でモーター
が停止しはじめ、合焦位置にレンズが到達したときにモ
ーターを正しく止めることができる。
Here, the subroutine for setting the timer R shown in FIG. 19 will be described. This is a routine for setting a timer for setting the speed of the motor, like the subroutine for setting one timer. First, in step # 2780, it is determined whether or not the AF priority mode is set, and if it is the AF priority mode, the process proceeds to step # 2785. This will be described later. On the other hand, when the release priority mode is set, it is determined whether or not the flag e1F is set. If it is set, the process proceeds to step # 2760 to set the timer 1 to A3 (equivalent to 1000 rpm) and the timer interrupt. Also, the count interrupt is permitted and the process returns (# 2765, 2770). When the flag e1F for setting 1000 rpm is not set in step # 2705, it is determined whether or not the flag e2F for setting 5000 rpm is set in step # 2710. When it is set, the process proceeds to step # 2800. When the motor is stopped, it is judged whether the flag Fe2F for correcting the excessive amount α1 is set, and when this flag Fe2F is set, A1 is set (corresponding to 5000 rpm) in the timer 1 in step # 2830. , Go to step # 2765. If the flag Fe2F is not set in step # 2800, step # 2805
Then, this flag Fe2F is set in step # 2810, and this overshoot amount α1 is added to the count value of the drive counter ENZCNT in step # 2810 to make a new count value of the drive counter ENZCNT, and the process proceeds to step # 2830 to set timer 1 to A1. . Explaining this overshooting amount, if the motor is stopped from 1000 rpm, the overshooting amount is small enough to be ignored, but if the motor is stopped from 5000 rpm, it goes too far. Since this amount is almost unique to the rotation speed of the motor and the variation for each lens is small, if the constant value α1 is added to the count value of the drive counter ENZCNT, before the lens reaches the in-focus position. The motor starts to stop and the motor can be stopped correctly when the lens reaches the in-focus position.

ステップ#2705,#2710でフラグe1F,e2Fが共にセットさ
れていないときには、ステップ#2745で駆動カウンター
ENZCNTのカウント値が100を超えるか否かを判定し、超
えるときには、駆動カウンターENZCNTのカウント値から
40をひいて、イベントカウンターのカウント値EVENTCNT
に入れ、第10図のイベントカウンタセット(EVENTCNTセ
ット)のサブルーチンに進み、リターンする(#2730,
#2735)。
If both flags e1F and e2F are not set in steps # 2705 and # 2710, drive counter is set in step # 2745.
It is determined whether the count value of ENZCNT exceeds 100. If it exceeds 100%, the count value of the drive counter ENZCNT is determined.
Subtract 40 and count value of the event counter EVENTCNT
, Go to the event counter set (EVENTCNT set) subroutine in Fig. 10 and return (# 2730,
# 2735).

ステップ#2745で駆動カウンターENZCNTのカウント値が
100以下のときはステップ#2750に進み、ここで、駆動
カウンターENZCNTのカウント値が14より大きいか否かを
判定し、14より大きいときにはステップ#2830でタイマ
ー1をA1(5000rpm相当)にセットしてステップ#2765
に進む。更にステップ#2750で駆動カウンターENZCNTの
カウント値が14以下であればステップ#2755に進んで駆
動カウンターENZCNTのカウント値が4を越えるか否かを
判定する。そして、駆動カウンターENZCNTのカウント値
が14以下で4より大のときにはステップ#2850でタイマ
1をA2(2500rpm相当)にし、4以下のときにはステッ
プ#2760でタイマ1をA3(1000rpm相当)にセットし
て、更にステップ#2765,#2770でタイマ割込及びカウ
ント割込を許可してリターンする。
In step # 2745, the count value of the drive counter ENZCNT is
When it is 100 or less, the process proceeds to step # 2750, where it is determined whether or not the count value of the drive counter ENZCNT is greater than 14, and when it is greater than 14, the timer 1 is set to A1 (equivalent to 5000 rpm) in step # 2830. Step # 2765
Proceed to. If the count value of the drive counter ENZCNT is 14 or less in step # 2750, the flow advances to step # 2755 to determine whether or not the count value of the drive counter ENZCNT exceeds 4. When the count value of the drive counter ENZCNT is 14 or less and is greater than 4, the timer 1 is set to A2 (corresponding to 2500 rpm) in step # 2850, and when it is 4 or less, the timer 1 is set to A3 (corresponding to 1000 rpm) in step # 2760. Then, in steps # 2765 and # 2770, the timer interrupt and the count interrupt are enabled and the process returns.

第16図(a)にもどり、ステップ#1050において駆動カ
ウンターENZCNTのカウント値が66を超えるときには、50
00rpm以下では駆動カウンターENZCNTのカウント値を0
(合焦)にすることができないので、所定時間(本実施
例ではAF優先モードでないとき50msec)だけレリーズタ
イムラグを増してこの間もモーターを駆動するようにし
ている。ところが、連続撮影モードを示す連写モードで
は、できるだけ早く撮影を行ないたいのでタイムラグの
増加分となる所定の時間を設けてまでレンズの駆動は行
なわない。そこで、ステップ#1055ではスイッチ(S8)
の状態を検出して連写モードであるか否かを判定し、連
写モードである場合にはステップ#1095に進む。一方、
連写モードでないときはステップ#1055からステップ#
1060に進み、追随モードであるか否かを判定し、追随モ
ードであるときには、ステップ#1065で設定した所定時
間内に被写体の動く量を演算すべく演算IIのサブルーチ
ンを実行してからステップ#1070に進む。一方、ステッ
プ#1060で追随モードでないときは、被写体が止まって
いると判定し、ステップ#1065をステップして、ステッ
プ#1070に進み、駆動カウンターENZCNTのカウント値に
応じて上述のタイマRセットのサブルーチンでタイマを
セットして、50msec待って、この間レンズを動かす。
(#1060〜#1075)。
Returning to FIG. 16 (a), when the count value of the drive counter ENZCNT exceeds 66 in step # 1050, 50 is displayed.
At 00 rpm or less, the count value of the drive counter ENZCNT is set to 0.
Since it cannot be set to (focus), the release time lag is increased by a predetermined time (50 msec when not in the AF priority mode in this embodiment), and the motor is also driven during this time. However, in the continuous shooting mode, which represents the continuous shooting mode, the lens is not driven until a predetermined time, which is an increase in the time lag, is provided because it is desired to shoot as soon as possible. Therefore, in step # 1055, switch (S8)
Is detected to determine whether or not the continuous shooting mode is set. If the continuous shooting mode is set, the process proceeds to step # 1095. on the other hand,
Step # 1055 to Step # when not in continuous shooting mode
In step 1060, it is determined whether or not the tracking mode is set. If the tracking mode is set, the subroutine of calculation II is executed to calculate the amount of movement of the subject within the predetermined time set in step # 1065, and then step # Continue to 1070. On the other hand, when it is not in the follow-up mode in step # 1060, it is determined that the subject has stopped, step # 1065 is advanced to step # 1070, and the timer R set of the above-mentioned timer R set according to the count value of the drive counter ENZCNT. Set the timer in the subroutine, wait 50 msec, and move the lens during this time.
(# 1060 to # 1075).

次に、上記ステップ#1065の演算IIのサブルーチンを第
18図に示し説明する。このサブルーチンでは、まず、ス
テップ#2650でAF優先モードか否かを判定して、AF優先
モードであれば時間TCを100msc,レリーズ優先モードで
あれば時間TCを50msecとし、ステップ#2665でこの時間
TCを単位焦点検出時間TIで割ってその比Rを求め、ステ
ップ#2670で単位焦点検出時間内に動く被写体のデフォ
ーカス量(カウントWR)にこの比Rをかけて露光までの
追随遅れデフォーカス量WSを求め、ステップ#2675で駆
動カウンターENZCNTのカウント値にWSに加えて新たに駆
動カンウターENZCNTのカウント値を求めてリターンす
る。ステップ#1055,#1075,#1090から進んだステップ
#1095では、モーターの速度がロースピード(5000rpm
以下)であるか否かを判定し、ロースピードでない(即
ち20,000rpm)のときは、モーターストップの信号を出
力してもモーターはすぐに止まれないので、モーターブ
レーキの信号を出力する(#1095,#1100)。そして、
ステップ#1103及び#1107でカウント割込及びタイマ割
込をそれぞれ禁止して、ステップ#1190に進む。ステッ
プ#1095でロースピードであるときは直接ステップ#11
90に進む。ステップ#1025においてAF優先モードである
ときには、焦点検出終了を示すフラグAFEFが設定されて
いるか否かを判定し、セットされていなければレリーズ
フラグRESFをリセットして、リターンする(#1110,#1
170)。
Next, the subroutine of operation II in step # 1065 above is executed.
It will be described with reference to FIG. In this subroutine, first, in step # 2650, it is determined whether or not the AF priority mode is set. In the AF priority mode, the time TC is set to 100 msc, and in the release priority mode, the time TC is set to 50 msec.
The ratio R is calculated by dividing TC by the unit focus detection time TI, and the defocus amount (count WR) of the subject that moves within the unit focus detection time is multiplied by this ratio R in step # 2670. The amount WS is obtained, and in step # 2675, the count value of the drive counter ENZCNT is newly obtained in addition to the count value of the drive counter ENZCNT, and the process returns. In Step # 1095, which was advanced from Steps # 1055, # 1075, and # 1090, the motor speed is low speed (5000 rpm).
If the speed is not low (that is, 20,000 rpm), the motor cannot be stopped immediately even if the motor stop signal is output, so the motor brake signal is output (# 1095). , # 1100). And
In steps # 1103 and # 1107, the count interrupt and the timer interrupt are prohibited, and the process proceeds to step # 1190. Directly to step # 11 when low speed in step # 1095
Go to 90. When it is in the AF priority mode in step # 1025, it is determined whether or not the flag AFEF indicating the end of focus detection is set, and if not set, the release flag RESF is reset and the process returns (# 1110, # 1.
170).

なお、本実施例では、露光終了後に再び合焦状態が検出
されてもレリーズ釦が押され続けておればレリーズせ
ず、再び押しなおされるとレリーズするが、ここでステ
ップ#1170でレリーズフラグRESFをリセットしないでお
き、一方ステップ#250の次のステップでレリーズフラ
グRESFを判断し、セットされていればこのステップ#11
15へ進むようにすれば、合焦後すぐレリーズという方式
がとれる。
In this embodiment, even if the focus state is detected again after the end of the exposure, the release button will not be released if it is kept pressed, and will be released if the release button is pressed again. The RESF is not reset, while the release flag RESF is judged in the step following step # 250, and if set, this step # 11
If you proceed to 15, you can use the release method immediately after focusing.

ステップ#1110でフラグAFEFがセットされている場合に
は、ステップ#1115で追随モードであるか否かを判定し
て追随モードでないときはステップ#1190に進む。追随
モードであるときには、ステップ#1120の演算Iのサブ
ルーチン(第17図図示)でレリーズタイムラグ中に動く
被写体の距離を演算して、その駆動カウンターENZCNTの
カウント値が13以下であれば、モーターを1000rpmで制
御するためのフラグf1Fをセットして、モーターの速度
制御の為のタイマをセットするタイマRセットのサブル
ーチンに進み、ステップ#1190に進む(#1120,#1125,
#1175,#1185)。ステップ#1125で駆動カウンターENZ
CNTのカウント値が21以下のときは、ステップ#1185の
タイマRセットのサブルーチンからステップ#1190に進
む。更にステップ#1140で駆動カウンターENZCNTのカウ
ント値が21を超えるときは、ステップ#1145で連写モー
ドであるか否かを判定し、連写モードであればレリーズ
優先モードの場合でも説明したように、すぐに撮影を行
なうべきだとして、ステップ#1190に進む。ステップ#
1145で連写モードでないときは、AF優先モードなので、
必ずレンズを合焦位置にもっていくため、所定の時間
(100msec)レンズを動かす制御を行なう。すなわちレ
リーズのタイムラグ(50msec)と合わせて150msecをか
けてレンズを合焦位置までもっていくわけである。ここ
で、今は追随モードであるので、この100msecの間に被
写体が動くデフォーカスの量を求めるべく、ステップ#
1150で演算IIのサブルーチンに進み、必要な駆動カウン
ターENZCNTのカウント値を求める。そして、この値に基
づいてモーターの速度を制御すべくタイマRセットのサ
ブルーチンに進んで100msec待つ(#1150〜#1165)。
If the flag AFEF is set in step # 1110, it is determined in step # 1115 whether the tracking mode is set. If the tracking mode is not set, the process proceeds to step # 1190. In the follow-up mode, the distance of the moving object during the release time lag is calculated in the subroutine of calculation I of step # 1120 (shown in FIG. 17), and if the count value of the drive counter ENZCNT is 13 or less, the motor is turned on. Set the flag f1F for controlling at 1000 rpm and proceed to the timer R setting subroutine for setting the timer for motor speed control, and proceed to step # 1190 (# 1120, # 1125,
# 1175, # 1185). Drive counter ENZ in step # 1125
When the count value of CNT is 21 or less, the routine proceeds from step # 1185 to the timer R setting subroutine to step # 1190. Further, when the count value of the drive counter ENZCNT exceeds 21 in step # 1140, it is determined in step # 1145 whether or not the continuous shooting mode is set. , Shall be taken immediately and proceed to step # 1190. Step #
When the 1145 is not in continuous shooting mode, it is AF priority mode.
Since the lens is always brought to the in-focus position, it is controlled to move the lens for a predetermined time (100 msec). In other words, it takes 150 msec together with the release time lag (50 msec) to bring the lens to the in-focus position. Now, since it is in follow-up mode, in order to find the amount of defocus that the subject moves during this 100 msec,
At 1150, the process proceeds to the subroutine of calculation II to obtain the required count value of the drive counter ENZCNT. Then, in order to control the speed of the motor based on this value, the routine proceeds to the timer R setting subroutine and waits for 100 msec (# 1150 to # 1165).

ここで、上記タイマRセットのAF優先モードの場合の説
明を第19図を参照して説明する。AF優先モードの場合に
はステップ#2780からステップ#2785に進み、1000rpm
駆動を示すフラグf1Fがセットされているときには、ス
テップ#2760に進んでタイマ1にA3(1000rpm相当)を
セットする。ステップ#2785でフラグf1Fがセットされ
ていないときには、ステップ#2790で駆動カウンターEN
ZCNTのカウント値が28以下であるかを判定し、28以下で
なければ、5000rpmにあたる時間A1をタイマ1にセット
する。同様に駆動カウンターENZCNTのカウント値が8以
下であれば、ステップ#2795からステップ#2760に進ん
でタイマ1をA3にしてモーターを1000rpmに制御し、8
より大きく28以下のときにはステップ#2795からステッ
プ#2850に進んでタイマ1をA2にして、モーターを2500
rpmに制御する。
Here, a description will be given of the case where the timer R set is in the AF priority mode with reference to FIG. In AF priority mode, proceed from step # 2780 to step # 2785, 1000 rpm
When the flag f1F indicating the drive is set, the process proceeds to step # 2760 to set the timer 1 to A3 (corresponding to 1000 rpm). When the flag f1F is not set in step # 2785, the drive counter EN is set in step # 2790.
It is determined whether the count value of ZCNT is 28 or less. If it is not 28 or less, the time A1 corresponding to 5000 rpm is set in the timer 1. Similarly, if the count value of the drive counter ENZCNT is 8 or less, the process proceeds from step # 2795 to step # 2760 to set the timer 1 to A3 and control the motor to 1000 rpm.
If it is larger than 28 and is less than 28, proceed from step # 2795 to step # 2850 to set timer 1 to A2 and set the motor to 2500.
Control to rpm.

以上のモーターの回転数とエンコーダのパルスとの関係
及び合焦までに要する時間とをAF優先モード及びレリー
ズ優先モードのそれぞれに関して表にしたものが表3で
ある。このモーターの回転数とパルスの関係を簡単に説
明すると、AF優先モードではレンズ合焦状態に達したと
きにレリーズされるようにこのモードが選ばれているの
で、レリーズ優先モードと比べてより高い合焦精度が必
要であり、1000rpmの使用時間を長くしてモーターの慣
性による停止誤差を少なくしている。
Table 3 shows the relationship between the number of rotations of the motor and the pulse of the encoder and the time required for focusing in each of the AF priority mode and the release priority mode. To briefly explain the relationship between the number of rotations of this motor and the pulse, in AF priority mode, this mode is selected so that the lens is released when the lens is in focus, so it is higher than in release priority mode. Focusing accuracy is required, and 1000 rpm is used for a long time to reduce the stopping error due to the inertia of the motor.

又、AF優先モードでは20,000rpmを採用しないで常に回
転数をモニターするコントロール方式とし、合焦精度よ
くしている。
Also, in the AF priority mode, the control method that constantly monitors the number of rotations without adopting 20,000 rpm is used to improve the focusing accuracy.

一方、レリーズ優先モードでは、焦点検出精度も必要で
あるが、それよりも早く露出することが必要とされるの
で、レリーズ中のモーター駆動の設定時間をAF優先モー
ドに比して短くしている。
On the other hand, in the release priority mode, focus detection accuracy is also required, but exposure is required faster than that, so the motor drive setting time during release is shorter than in the AF priority mode. .

第16図(a)にもどり、ステップ#1190では、補助光発
光装置(13)をOFFして、そして表示をOFFする(#119
0,#1195)。次に露出制御回路へミラーアップ開始信号
及び絞り制御信号を出力して、ミラーアップ及び所定の
値Avに絞り制御を行なわせ、ミラーアップが完了するの
を待つ(#1200〜#1210)。この間約50msecであるミラ
ーアップが完了すればモーター停止信号を出力して、こ
のモーターの停止するのを10msec待ち、割込を禁止し
て、露光開始の信号を出力して、1幕の走行を開始させ
る。(#1215〜1230)。そして露光時間Tvを計測して所
定のTvになれば露光終了信号を出力して2幕が閉じるの
を待つ(#1235〜#1240)。
Returning to FIG. 16 (a), in step # 1190, the auxiliary light emitting device (13) is turned off, and then the display is turned off (# 119).
0, # 1195). Next, a mirror-up start signal and an aperture control signal are output to the exposure control circuit to control the mirror-up and the aperture to a predetermined value Av, and wait for the mirror-up to be completed (# 1200 to # 1210). During this period, if the mirror up for about 50 msec is completed, the motor stop signal is output, 10 msec is waited for this motor to stop, the interrupt is prohibited, the exposure start signal is output, and one curtain is run. Let it start. (# 1215-1230). Then, the exposure time Tv is measured, and when the predetermined Tv is reached, an exposure end signal is output and the second curtain is closed (# 1235 to # 1240).

次に第6図(b)に進んで、マイコン(1)は、ステッ
プ#1243で1駒巻上開始信号を出力してフィルムの1駒
巻上を行なわせる。そしてステップ#1245で連写モード
であるか否かを判定して連写モードでないとき端子(OP
3)を「L」にして連写をしないようにしてステップ#1
275に進む。一方、連写モードであるときにはステップ
#1247で端子(OP3)を「H」レベルにして第1図のタ
イマ回路(15)にタイマ開始信号を出力する。次に合焦
フラグがセットされていないとき或いは合焦ゾーンに入
っていないときに、駆動カウンタENZCNTのカウント値の
残り分だけを駆動すべく、カウンタ割込及びタイマ割込
を許可してモーターを駆動してステップ#1275に進む
(1250,#1255,#1265,#1270)。この間にAFが完了し
て合焦になった場合は第12図のステップ#885からステ
ップ#1275へ再びもどって来てステップ#1275をループ
する。合焦フラグ(合焦F)がセットされかつ合焦ゾー
ン内であるときには、ステップ#1260で合焦表示を行な
ってからステップ#1275に進んで、ミラーダウンするの
を待つ(#1250〜#1260,#1275)。
Next, proceeding to FIG. 6 (b), the microcomputer (1) outputs a one-frame winding start signal in step # 1243 to wind the film by one frame. Then, in step # 1245, it is determined whether or not the continuous shooting mode is set, and when the continuous shooting mode is not set, the terminal (OP
3) Set to "L" to prevent continuous shooting and step # 1
Continue to 275. On the other hand, in the continuous shooting mode, the terminal (OP3) is set to "H" level in step # 1247, and a timer start signal is output to the timer circuit (15) in FIG. Next, when the focus flag is not set or the focus zone is not entered, enable the counter interrupt and the timer interrupt to drive the motor so that only the remaining count value of the drive counter ENZCNT is driven. Drive and proceed to step # 1275 (1250, # 1255, # 1265, # 1270). If AF is completed and focus is achieved during this time, the process returns from step # 885 in FIG. 12 to step # 1275 again to loop step # 1275. When the in-focus flag (in-focus F) is set and is within the in-focus zone, the in-focus display is performed in step # 1260 and then the process proceeds to step # 1275 to wait for the mirror to go down (# 1250 to # 1260). , # 1275).

ミラーダウンが完了すれば、レンズ駆動用のモーターを
停止する信号を出力して、これが停止するのを20msec待
って、追随フラグ以外のフラグをリセットしレリーズ割
込を許可して第2図のステップ#55以下のCDINTのフロ
ーへもどる(#1280〜#1295)。もっともここでステッ
プ#1280及び#1285は必ずしも必要ではなく、レンズを
駆動したままCDINTへもどってもよい。
When the mirror down is completed, a signal to stop the lens driving motor is output, wait 20 msec for this to stop, reset any flags other than the follow flag to allow the release interrupt, and then execute the steps in Fig. 2. Return to the CDINT flow below # 55 (# 1280 to # 1295). However, steps # 1280 and # 1285 are not always necessary here, and the process may return to CDINT with the lens being driven.

本実施例において、連写モードが設定されている時に、
レリーズ釦がづづけて押されている場合には、端子(OP
3)が「H」レベルになってタイマー回路(15)が計時
を始め、所定時間になると「H」レベルから「L」レベ
ルに代わる信号がマイコン(1)の端子(INT4)に入力
される。これが入力されるとマイコン(1)は再び第16
図(a)のステップ#1297からの割込をスタートし、ス
テップ#1297でタイマ回路(15)をストップすべく
「L」レベルの信号を端子(OP3)から出力し、以下同
様にステップ#1000からのレリーズのフローの動作を行
う。
In this embodiment, when the continuous shooting mode is set,
If the release button is pressed continuously, the terminal (OP
3) becomes "H" level, the timer circuit (15) starts clocking, and when a predetermined time elapses, a signal replacing "H" level to "L" level is input to the terminal (INT4) of the microcomputer (1). . When this is input, the microcomputer (1) again returns to the 16th
The interrupt from the step # 1297 of the figure (a) is started, the signal of "L" level is output from the terminal (OP3) to stop the timer circuit (15) in the step # 1297, and so on. Perform the release flow from.

次に第20図に示した終端割込のフローを説明する。これ
は、ローコントラスト時のスキャンにおいて、レンズを
駆動しながら被写体のコントラストを検出しているとき
に、焦点検出に充分なコントラストレベルが検出できず
にレンズの終端に到ったときの処理のフローである。こ
の終端の検出は不図示のレンズの両端にスイッチ(S7)
が設けられ、このスイッチ(S7)は、レンズが最近接位
置及び無限遠位置のどちらか一方の終端に到達したとき
にONし、マイコン(1)の端子(INT3)に「H」レベル
から「L」レベルに変わる信号が入力されて、マイコン
(1)は第20図の終端割込のフローを行なう。このフロ
ーでは、先ずステップ#1350でモーターを停止してステ
ップ#1355でレンズを繰り込むフラグLBFがセットされ
ているかを判定し、セットされていなければ、レンズを
繰り出した状態で終端に到ったということで、ステップ
#1360でこのフラグLBFをセットしてステップ#1365で
反転駆動を開始させ第2図のCDNTのフローに進み、ステ
ップ#1355でフラグLBFがセットされているときは、レ
ンズが1往復した後に終端に到達したということでコン
トラスト検出が不可能ということでステップ#1370でマ
イコン(1)は不能の表示をする。
Next, the flow of the termination interruption shown in FIG. 20 will be described. This is the flow of processing when the end of the lens is reached without detecting a sufficient contrast level for focus detection while detecting the contrast of the subject while driving the lens in the scan at low contrast. Is. To detect this end, switch (S7) on both ends of the lens (not shown).
This switch (S7) is turned on when the lens reaches the end of either the closest position or the infinity position, and the microcomputer (1) terminal (INT3) changes from "H" level to " When the signal which changes to the "L" level is input, the microcomputer (1) performs the termination interruption flow of FIG. In this flow, first, in step # 1350, the motor is stopped, and then in step # 1355, it is determined whether the flag LBF for retracting the lens is set. If not set, the lens is extended and the end is reached. Therefore, this flag LBF is set in step # 1360, the reversal drive is started in step # 1365, and the flow proceeds to the CDNT flow in FIG. 2. When the flag LBF is set in step # 1355, the lens is Since the end of the round trip has been reached and the contrast cannot be detected, the microcomputer (1) displays "impossible" in step # 1370.

次に変形例を示す。その変形例の内容は以下の項目であ
る。
Next, a modified example is shown. The contents of the modified example are as follows.

1)レリーズ中のレリーズ優先モードにおいてモーター
の20,2000rpmをなくし、止まり誤差を少なくする。
1) Eliminate 20,2000 rpm of the motor in the release priority mode during release to reduce the stop error.

2)レリーズ中のAF優先モード時、所定時間内に、駆動
カウンターENZCNTのカウント値が0にならないときには
レリーズロックを行なう。
2) In the AF priority mode during release, release lock is performed if the count value of the drive counter ENZCNT does not become 0 within a predetermined time.

3)レリーズ中のAF優先モード時でかつ精度優先モード
のとき、モーターの速度は1000rpmのみで、駆動カウン
ターENZCNTのカウント値が0となるような場合のみレリ
ーズ可能とし0とならない場合レリーズロックを行なっ
て合焦精度を上げる。
3) In the AF priority mode during release and in the accuracy priority mode, the motor speed is only 1000 rpm, and the release is possible only when the count value of the drive counter ENZCNT becomes 0, and the release lock is performed when it does not become 0. Increase the focusing accuracy.

以上の変更に伴う変形例を第22図に示し説明する。A modified example associated with the above changes will be described with reference to FIG.

まず(1)に伴なう変更は、第16図(a)におけるステ
ップ#1095〜#1107を削除する。これは20,000rpm(ハ
イスピード)がなくなるためである(第22図参照)。こ
れと、第19図におけるステップ#1745及び#2730,#273
5を削除したもので、これもハイスピードのモードがレ
リーズ中にはないので、これを削除する(不図示)。さ
らにINTEVENTのフローにおけるステップ#2555,#2570,
#2575を削除する。
First, as for the change accompanying (1), steps # 1095 to # 1107 in FIG. 16 (a) are deleted. This is because 20,000 rpm (high speed) is lost (see Fig. 22). This and steps # 1745 and # 2730, # 273 in FIG.
5 is deleted, and this is also not in high speed mode during release, so delete this (not shown). Further steps in the INT EVENT flow # 2555, # 2570,
Remove # 2575.

次に(2)に伴う変更点は、第16図(a)のステップ#
1150とステップ#1160との間に、駆動カウンターENNZCN
Tのカウント値が148を超えるか否かを判定するステップ
#1155を挿入し、148を超える場合はステップ#1170に
進み、レリーズフラグRESFをリセットしてリターンす
る。この値148について表3を参照して説明すると、パ
ルス数28までは60msecかかっているので150msecから60m
secをひいた90msecが5000rpmで駆動できる時間であり、
その駆動可能なパルス数は4/3×90=120となり、上記28
を加えると148になるのである。
Next, the change in (2) is the step # in FIG. 16 (a).
Drive counter ENNZCN between 1150 and step # 1160
Step # 1155 for determining whether or not the count value of T exceeds 148 is inserted. If it exceeds 148, the process proceeds to step # 1170 to reset the release flag RESF and return. This value 148 will be explained with reference to Table 3. It takes 60 msec until the number of pulses reaches 28, so it takes 60 m from 150 msec.
90msec minus sec is the time that can be driven at 5000rpm,
The number of pulses that can be driven is 4/3 x 90 = 120.
It becomes 148 by adding.

(3)に伴って変更する点は、第16図(a)のステップ
#1125の後に、ステップ#1130として、精度優先モード
であるか否かの判定ステップを設け、精度優先モードで
あれば、1000rpm以上のモードを禁止すべくステップ#1
145に進む。又、ステップ#1150の後に、ステップ#115
2として精度優先モードか否かの判定ステップを設け、
更に精度優先モードであるときには、駆動カウンターEN
ZCNTのカウント値が40以下(150msec×4/15(1000rp
m))であるか否かを判定するステップ#1153を設け
て、40以下であれば、1000rpm駆動を指示するフラグf1F
をセットすべくステップ#175に進み、それ以降の処理
を行なう。40を超えるときは、ステップ#1170でレリー
ズフラグRESFをリセットしてリターンする。ステップ#
1152で精度優先モードでなければ、ステップ#1155に進
み、それ以降のフローを行なう。
The point to be changed in accordance with (3) is that, after step # 1125 of FIG. 16A, a step of determining whether or not the accuracy priority mode is provided is provided as step # 1130. Step # 1 to ban modes above 1000 rpm
Proceed to 145. Also, after step # 1150, step # 115
2 has a step of determining whether or not the accuracy priority mode,
When the precision priority mode is set, the drive counter EN
The count value of ZCNT is 40 or less (150msec × 4/15 (1000rp
m)) is provided and step # 1153 is provided, and if 40 or less, a flag f1F for instructing 1000 rpm drive
In step # 175, the process after that is performed to set. If it exceeds 40, the release flag RESF is reset in step # 1170 and the process returns. Step #
If it is not the precision priority mode in 1152, the flow proceeds to step # 1155 and the subsequent steps are performed.

[発明の効果] 本発明によると、被写体が動体であると判定されると、
比較的広い合焦判定ゾーンを判定基準として合焦表示を
行うので、被写体が動体であっても表示が行われるよう
になる。この場合の合焦表示は、正確な合焦状態が得ら
れたことを示すものではないが、少なくとも合焦位置近
傍に達していることを示すものである。従って、この表
示を確認した後にシャターレリーズを行うと、ピントの
大きくずれた撮影が行われることはない。
According to the present invention, when it is determined that the subject is a moving body,
Since the focus display is performed using the relatively wide focus determination zone as the determination reference, the display is performed even when the subject is a moving body. The in-focus display in this case does not indicate that an accurate in-focus state has been obtained, but indicates that at least the vicinity of the in-focus position has been reached. Therefore, if the shutter release is performed after confirming this display, the image will not be taken out of focus.

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

第1図はこの発明の一実施例を示すブロック図、第2図
は第1図の装置の動作を示すフローチャート、第3図は
焦点検出装置のイベントカウンターのオフセットを示す
グラフ、第4図ないし第20図は第1図の装置の動作を示
すフローチャート、第21図は移動積分の可,不可とモー
ターの駆動制御との関係を示すタイムチャート、第22図
と第23図は変形例を示すフローチャート、第24図ないし
第27図は本発明の実施例に適用した追随補正の原理を示
す図である。 1……マイコン、2……露出制御回路、3……測光回
路、 10……モーター制御回路、11……エンコーダ、 12……レンズ内回路、13……補助光発生装置、 15……タイマ。
1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a flow chart showing the operation of the apparatus of FIG. 1, FIG. 3 is a graph showing the offset of the event counter of the focus detection apparatus, and FIGS. FIG. 20 is a flow chart showing the operation of the apparatus shown in FIG. 1, FIG. 21 is a time chart showing the relationship between movement integral control and motor drive control, and FIGS. 22 and 23 show modified examples. 24 and 27 are flowcharts showing the principle of tracking correction applied to the embodiment of the present invention. 1 ... Microcomputer, 2 ... Exposure control circuit, 3 ... Photometric circuit, 10 ... Motor control circuit, 11 ... Encoder, 12 ... Lens internal circuit, 13 ... Auxiliary light generator, 15 ... Timer.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G03B 17/18 Z G03B 3/00 A (72)発明者 谷口 信行 大阪府大阪市東区安土町2丁目30番地 大 阪国際ビル ミノルタカメラ株式会社内 (72)発明者 大塚 博司 大阪府大阪市東区安土町2丁目30番地 大 阪国際ビル ミノルタカメラ株式会社内 (56)参考文献 特開 昭61−57916(JP,A)─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Reference number within the agency FI Technical indication location G03B 17/18 Z G03B 3/00 A (72) Inventor Nobuyuki Taniguchi 2 Azuchi-cho, Higashi-ku, Osaka-shi, Osaka 30-chome, Osaka International Building Minolta Camera Co., Ltd. (72) Inventor, Hiroshi Otsuka 2-chome, Azuchi-cho, Higashi-ku, Osaka City, Osaka Prefecture (56) Osaka City International Building, Minolta Camera Co., Ltd. (56) Reference Japanese Patent Laid-Open No. 61-57916 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】被写体に対する撮影レンズの焦点ずれ量を
繰り返し検出する焦点検出手段と、 上記焦点ずれ量に基づいて撮影レンズを駆動する駆動手
段と、 上記焦点検出手段から繰り返して出力される複数の焦点
ずれ量に基づいて、上記被写体が動体であるかどうかを
判定する動体判定手段と、 上記動体判定手段によって動体でないと判定された場合
は、上記焦点ずれ量が第1の合焦判定ゾーン内であると
き合焦と判定し、一方、動体であると判定された場合
は、上記焦点ずれ量が上記第1の合焦判定ゾーンよりも
広く設定した第2の合焦判定ゾーン内にあるときに合焦
と判定する合焦判定手段と、 上記合焦判定手段によって合焦と判定されると、合焦の
表示を行う表示手段とを有することを特徴とする自動焦
点装置。
1. A focus detection means for repeatedly detecting the amount of defocus of a photographing lens with respect to a subject, a driving means for driving the photographing lens based on the amount of defocus, and a plurality of repeatedly outputted from the focus detection means. Based on the amount of defocus, the moving object determination unit that determines whether the subject is a moving object, and if the moving object determination unit determines that the object is not a moving object, the defocus amount is within the first focus determination zone. When it is determined that the object is in focus, on the other hand, when it is determined that the object is a moving object, when the defocus amount is within the second focus determination zone set wider than the first focus determination zone. An autofocus device comprising: a focus determination unit that determines that the focus is in focus; and a display unit that displays the focus when the focus determination unit determines that the focus is in focus.
JP62105422A 1987-04-27 1987-04-27 Automatic focus adjustment device Expired - Lifetime JPH0797173B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62105422A JPH0797173B2 (en) 1987-04-27 1987-04-27 Automatic focus adjustment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62105422A JPH0797173B2 (en) 1987-04-27 1987-04-27 Automatic focus adjustment device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP61074580A Division JP2511409B2 (en) 1986-03-31 1986-03-31 Automatic focus adjustment device

Publications (2)

Publication Number Publication Date
JPS62269915A JPS62269915A (en) 1987-11-24
JPH0797173B2 true JPH0797173B2 (en) 1995-10-18

Family

ID=14407160

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62105422A Expired - Lifetime JPH0797173B2 (en) 1987-04-27 1987-04-27 Automatic focus adjustment device

Country Status (1)

Country Link
JP (1) JPH0797173B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015022157A (en) * 2013-07-19 2015-02-02 キヤノン株式会社 Autofocusing control device, and lens apparatus and imaging apparatus each having the same
WO2015118727A1 (en) * 2014-02-07 2015-08-13 富士フイルム株式会社 Image capture device and focus control method
JP2016142925A (en) * 2015-02-02 2016-08-08 キヤノン株式会社 Imaging apparatus, method of controlling the same, program, and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2250828B (en) * 1990-11-29 1994-08-17 Asahi Optical Co Ltd Automatic focusing device
USRE36546E (en) * 1990-11-29 2000-02-01 Asahi Kogaku Kogyo Kabushiki Kaisha Automatic focusing device
US5291235A (en) * 1990-11-29 1994-03-01 Asahi Kogaku Kogyo Kabushiki Kaisha Automatic focusing device
JP4550211B2 (en) * 2000-03-21 2010-09-22 オリンパス株式会社 camera

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6157916A (en) * 1984-08-29 1986-03-25 Canon Inc Automatic tracking device of camera

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015022157A (en) * 2013-07-19 2015-02-02 キヤノン株式会社 Autofocusing control device, and lens apparatus and imaging apparatus each having the same
WO2015118727A1 (en) * 2014-02-07 2015-08-13 富士フイルム株式会社 Image capture device and focus control method
JPWO2015118727A1 (en) * 2014-02-07 2017-03-23 富士フイルム株式会社 Imaging apparatus and focus control method
US10367989B2 (en) 2014-02-07 2019-07-30 Fujifilm Corporation Imaging device and focusing control method
JP2016142925A (en) * 2015-02-02 2016-08-08 キヤノン株式会社 Imaging apparatus, method of controlling the same, program, and storage medium
US10264173B2 (en) 2015-02-02 2019-04-16 Canon Kabushiki Kaisha Image capturing apparatus and control method thereof, and storage medium

Also Published As

Publication number Publication date
JPS62269915A (en) 1987-11-24

Similar Documents

Publication Publication Date Title
JP2511409B2 (en) Automatic focus adjustment device
JP2540827B2 (en) Automatic focus adjustment device
JPH0797173B2 (en) Automatic focus adjustment device
JP2526897B2 (en) Automatic focus adjustment device
JPH0750239B2 (en) Automatic focus adjustment device
JPH0797172B2 (en) Automatic focus adjustment device
JPH0797174B2 (en) Automatic focus adjustment device
JPH0830780B2 (en) Automatic focus adjustment device
JPH0827423B2 (en) Automatic focus adjustment device
JPS62269913A (en) Automatic focusing device
JPS62275208A (en) Automatic focusing device
JP2590873B2 (en) Camera with focus detection device
JPS62269938A (en) Automatic focus adjusting device
JPS62269917A (en) Automatic focusing device
JPS62269916A (en) Automatic focusing device
JPH07159839A (en) Photographing device with image blur preventing function
JPS63259522A (en) Camera equipped with automatic focusing device
JP3007656B2 (en) Auto focus shooting device
JPS62269921A (en) Automatic focusing device
JP3021522B2 (en) Camera image blur detector
JP2986803B2 (en) Auto focus camera
JPH0714969Y2 (en) Camera autofocus device
JP3333015B2 (en) Anti-shake camera
JPH04191830A (en) Camera incorporating swing mechanism
JPH07199060A (en) Camera incorporating automatic focusing device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term