JPS63259523A - Camera equipped with focus detecting device - Google Patents

Camera equipped with focus detecting device

Info

Publication number
JPS63259523A
JPS63259523A JP9592387A JP9592387A JPS63259523A JP S63259523 A JPS63259523 A JP S63259523A JP 9592387 A JP9592387 A JP 9592387A JP 9592387 A JP9592387 A JP 9592387A JP S63259523 A JPS63259523 A JP S63259523A
Authority
JP
Japan
Prior art keywords
focus
lens
flag
mode
release
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP9592387A
Other languages
Japanese (ja)
Other versions
JP2590873B2 (en
Inventor
Masataka Hamada
正隆 浜田
Kenji Ishibashi
賢司 石橋
Tokuji Ishida
石田 徳治
Hiroshi Otsuka
博司 大塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP9592387A priority Critical patent/JP2590873B2/en
Publication of JPS63259523A publication Critical patent/JPS63259523A/en
Application granted granted Critical
Publication of JP2590873B2 publication Critical patent/JP2590873B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To attain the release of a shutter even if the detection of focus is impossible or the quantity of defocusing is large in a consecutive photographing mode by permitting the release without executing the adjustment of a lens when the detection of focus is impossible or the quantity of defocusing is large at current photographing time and focusing is obtained at previous releasing time. CONSTITUTION:When it is decided that the delay in following occurs to an object based on the quantities of defocusing D5 and D6 at the point P1 in the midst of stopping the lens, the correction of following is executed at the point P1 by means of the computation C6 at the time of integration I6 and the correction is executed at the point P1 by supposing the movement of the object from the integration I6 to the middle point of the integration I8 through the integration I7. But, if a driving counted value to which a correction value is added in the midst of a following mode is larger than a previously specified counted value, the correction in following is not executed, if it overtakes on the way and a driving direction is inverted based on the computed result. Thus, in the consecutive photographing mode even when a camera is in an AF preferential mode, the release of the shutter can be possible even if focusing is not completed.

Description

【発明の詳細な説明】 産業上の利用分野 この発明は焦点検出装置を備えたカメラに関する。[Detailed description of the invention] Industrial applications The present invention relates to a camera equipped with a focus detection device.

従来技術とその問題点 例えばスポーツ写真のように動く被写体を連写する場合
、自動焦点調整(以下APという)が完了してからでな
いとシャツタレリーズをすることができないAF優先式
のカメラにおいては、ピントが合わないとレリーズでき
ず、したがって被写体が少しでもフレームからずれると
撮影を行うことができなくなる。ところが速写モードで
は撮影周期が早く例えば秒3コマの場合では1コマ30
0ff18ec程度である。被写体がいくら横に動くの
が速いといっても、この300 m5ecの間に焦点検
出エリアの外にでることはあっても、撮影領域の外へ出
てしまうことは少ない。よって撮影したい被写体が写り
得るのにもかかわらずシャッタをレリーズできないのは
不合理である。しかしながら従来のAP優先式のカメラ
ではピントずれがある場合にはレリーズできないから上
述のように撮影が可能な情況であるにもかかわらずシャ
ツタレリーズできないという欠点があった。
Conventional technology and its problems For example, in AF-priority cameras, when shooting moving subjects in succession, such as in sports photography, it is not possible to release the shirt until automatic focus adjustment (hereinafter referred to as AP) has been completed. , the camera cannot be released unless it is in focus, so if the subject shifts even slightly from the frame, it will not be possible to take a picture. However, in quick shooting mode, the shooting cycle is fast, for example, if the shooting rate is 3 frames per second, each frame shoots at 30 frames.
It is about 0ff18ec. No matter how fast the subject moves laterally, it may move out of the focus detection area during this 300 m5ec, but it rarely moves out of the shooting area. Therefore, it is unreasonable to be unable to release the shutter even though the subject you want to photograph can be photographed. However, conventional AP-priority cameras have the disadvantage that they cannot release the shutter release when there is an out-of-focus situation, even though it is possible to take pictures as described above.

したがってこの発明はAP優先モード式のカメラあるい
は撮影モードがAP優先モードに設定されているカメラ
において、連写モード時に焦点検出不能らしくはデフォ
ーカス量が大きくともシャツタレリーズが可能なカメラ
を提供することを目的とするものである。
Therefore, the present invention provides an AP priority mode camera or a camera in which the shooting mode is set to AP priority mode, which is capable of shutter release even if focus cannot be detected in continuous shooting mode and the amount of defocus is large. The purpose is to

問題点を解決する手段 上述の目的を達成するためにこの発明のカメラは合焦位
置を演算し、検出する合焦検出手段と、演算結果にした
がってレンズを合焦位置へ設定する手段と、レリーズボ
タンが継続して押されている間連続的に撮影動作と自動
焦点調整動作とを所定の周期で繰り返し実行する制御手
段と、レリーズ操作がはいってもレンズの合焦が完了し
ていなければレリーズ動作に入らないように制御する自
動焦点優先制御手段とを備えたカメラにおいて、速写モ
ードに設定されている場合において合点検出手段により
合焦検出演算した結果焦点検出が不能であるかデフォー
カス量が大であることを検出する合焦不能検出手段と、
前回のレリーズ時に合焦であったことを記憶する記憶手
段と、今回の撮影時に焦点検出不能または大デフォーカ
ス量であり、かつ前回の・レリーズ時において合焦であ
った場合にレンズ調整を行わずレリーズを許可する手段
とを備えたことを特徴とする。
Means for Solving the Problems In order to achieve the above-mentioned object, the camera of the present invention includes a focus detection means for calculating and detecting a focus position, a means for setting a lens to a focus position according to the calculation result, and a release release. A control means that repeatedly executes a shooting operation and an automatic focus adjustment operation at a predetermined cycle while the button is continuously pressed, and a control means that repeatedly performs a shooting operation and an automatic focus adjustment operation at a predetermined cycle while the button is continuously pressed, and a control means that repeatedly performs a shooting operation and an automatic focus adjustment operation at a predetermined period. In a camera equipped with automatic focus priority control means that controls the automatic focus priority control so as not to enter operation, when the snapshot mode is set, the result of the focus detection calculation performed by the focus point detection means is that focus detection is impossible or the amount of defocus is insufficient. out-of-focus detection means for detecting that the
A storage means that remembers that the camera was in focus the last time the camera was released, and a lens that adjusts the lens if it is impossible to detect focus or there is a large amount of defocus at the time of the current shooting, and the lens was in focus at the time of the previous release. The present invention is characterized by comprising a means for permitting the shutter release.

上述の構成によれば、カメラがAF優先モード時であっ
ても連写モードにおいては、合焦が完了していなくても
シャツタレリーズが可能となる。
According to the above configuration, even if the camera is in the AF priority mode, shirt release is possible in the continuous shooting mode even if focusing is not completed.

したがって被写体がいくつか継続して撮影フレームには
いってくるとき後側の被写体に対して多少合焦が出来て
いなくてら写真を撮影することができ、撮影台の意図通
りの写真を得ることが出来るカメラを提供できる。
Therefore, when several subjects enter the shooting frame in succession, it is possible to take pictures even if the subject behind them is slightly out of focus, and the picture can be taken as intended by the shooting stand. We can provide cameras.

実施例 第28図は本願発明の詳細な説明するためのグラフで、
縦軸、横軸の意味は第27図と同じである。レンズ停止
中の時点P1で、デフォーカス量D 5. D eに基
づき被写体に対して追随遅れが生じていると判断される
と、積分16時の演算C6によりP、の時点で追随補正
がかかり、レンズはQ、では停止させず、補正qWRの
9更にレンズを移動させQ、までもってくる。この補正
11WRについては後述するが、被写体がカメラの撮影
レンズ光軸方向に移動するときの移動量をカメラのフィ
ルム而でのデフォーカス量としてとらえたものである。
Example FIG. 28 is a graph for detailed explanation of the present invention,
The meanings of the vertical and horizontal axes are the same as in FIG. 27. At time P1 while the lens is stopped, the defocus amount D5. If it is determined that there is a tracking delay for the subject based on D e, tracking correction is applied at point P by calculation C6 at the time of integration 16, and the lens is not stopped at Q, but is adjusted to 9 of the correction qWR. Move the lens further until it reaches Q. This correction 11WR will be described later, but the amount of movement when the subject moves in the direction of the optical axis of the photographing lens of the camera is taken as the amount of defocus in the film of the camera.

この移動量は、合焦検出の単位周期TI当たりの傾きに
換算して求めておく。第29図の場合、次のレンズ駆動
時間をTIと考え、遅くとも時間TIの後には追い付く
と考えるわけである。よしんば、この時間TIにおける
補正量WRを越える時間レンズを駆動する必要があるよ
うな被写体の速度については追随遅れが生じるが、とり
わけ速い被写体でないかぎりは合焦と判断出来る範囲に
撮影レンズが入ってくると言うことで、被写体に追いつ
いているということが出来る。又、このモデルでは、被
写体の移動を、フィルム面上のデフォーカス量で一次関
数と仮定したが、実際には、例えば、被写体がカメラに
向かって定速で接近してくる時、デフォーカス量の変化
は一次関数にはならず、高次関数となる。この場合も、
追随補正しても補正量が不足するが、合焦域には入って
いるので追随しているといえる。なおこの第28図の場
合の目標補正位置は、積分■8の中点P3である。
This amount of movement is calculated in advance by converting it into an inclination per unit period TI of focus detection. In the case of FIG. 29, the next lens driving time is considered to be TI, and it is assumed that the lens will catch up after the time TI at the latest. If the speed of the subject exceeds the correction amount WR at this time TI, there will be a delay in tracking the speed of the subject, but unless the subject is particularly fast, the taking lens will be within the range where it can be determined that it is in focus. By saying that the camera is catching up with the subject, it can be said that the camera is catching up with the subject. In addition, in this model, it is assumed that the movement of the subject is a linear function of the amount of defocus on the film plane, but in reality, for example, when a subject approaches the camera at a constant speed, the amount of defocus changes. The change in is not a linear function but a higher order function. In this case too,
Even with tracking correction, the amount of correction is insufficient, but since it is within the in-focus range, it can be said that tracking is being achieved. Note that the target correction position in the case of FIG. 28 is the midpoint P3 of the integral (2) 8.

積分■8の中点P。から演算C6の終点P1まではレン
ズを動かしていないため、この間にも被写体の追随遅れ
が生じる。この遅れ分と、次のレンズ駆動中(尚、この
間には、積分及び演算の1周期が入る。)の遅れ分とを
考えなければならない。
Midpoint P of integral ■8. Since the lens is not moved from to the end point P1 of calculation C6, there is a delay in tracking the subject during this period as well. This delay must be taken into account as well as the delay during the next lens drive (during which period there is one cycle of integration and calculation).

即ち、レンズ停止中に、被写体が動いて追随遅れが生じ
たときには、積分I8から積分■7を通って積分(8の
中点までの被写体の動きを予想してP。
That is, when the subject moves and a tracking delay occurs while the lens is stopped, integrate from integral I8 through integral (2)7 (predicting the movement of the subject to the midpoint of 8 and P).

の時点で補正をかける必要がある。即ち、この場合は、
Plで2WRの補正を加えればよいことになる。
It is necessary to make corrections at this point. That is, in this case,
This means that it is sufficient to add a 2WR correction using Pl.

この目標の積分■、の中点というのは、P、からみて、
次の積分I7の結果が出てくる時点P、を目標にするこ
ととほぼ同じ色味を持つ。なぜなら、ここでは、積分時
間が短いので、P 2 #P 3と見なしているわけで
ある。ここで演算が50m5ecかかるのに対し、積分
が数m5ec以下である。
The midpoint of this target integral ■ is, from the point of view of P,
The color tone is almost the same as aiming at the time point P when the result of the next integral I7 is obtained. This is because the integration time is short here, so it is assumed that P 2 #P 3. Here, the calculation takes 50 m5ec, whereas the integration takes several m5ec or less.

第29図は、レンズ駆動中の時点P4で、D、とD4の
デフォーカス量をもとにして被写体に対して追随遅れが
生じていると判断した場合を示す。
FIG. 29 shows a case where it is determined that there is a delay in tracking the subject based on the defocus amounts of D and D4 at time P4 while the lens is being driven.

更には、停止中に追随モードに入ることを判別された場
合ら含めて追随モードで被写体を追い掛けている最中の
、追随補正が続けて加えられた状態で、レンズ駆動して
いる状態を示す。時点P4で追随モードに入り補正がか
かると、積分■、で得られたデータに基づいて演算され
たデフォーカス量だけレンズを駆動し、駆動し終えても
Q、ではレンズを止めず、更に2WR分を動かす。第2
8図と同様に、補正目標時点は次の積分18のデータに
基づく演算の結果が求まるP6のそばの積分I7の中点
である。これは、追随遅れの検出が行われた積分I4の
中点からちょうど合焦検出演算の2周期分にあたる。こ
れは、次の結果が出る1周期の時間内に今回の検出結果
が出るまでにかかった1周期との合計、2周期分を補正
駆動しようとしてしまおうとするものである。以下同様
に繰り返されるが、このレンズ駆動でも追い付かないと
なった場合、即ち追随モード中に補正値を加えた駆動カ
ウント値が萌以て定めたカウント値より大きい場合には
、レンズ駆動速度を切り替える。図では、Q、のところ
で切り替っている。駆動速度が切り替えられても、補正
値及び目標値はおなじように考えている。途中で追い付
いて、演算結果により駆動方向が反転すれば追随補正は
行わないようにする。
Furthermore, it shows the state in which the lens is being driven with tracking correction continuously applied while chasing a subject in tracking mode, including when it is determined to enter tracking mode while the camera is stopped. . When the tracking mode is entered at time P4 and correction is applied, the lens is driven by the amount of defocus calculated based on the data obtained from the integral ■, and even after driving is completed, the lens is not stopped at Q, and the lens is further 2WR. Move minutes. Second
Similarly to FIG. 8, the correction target time point is the midpoint of the integral I7 near P6 where the result of the calculation based on the data of the next integral 18 is found. This corresponds to exactly two periods of the focus detection calculation from the midpoint of the integral I4 at which the tracking delay was detected. This is an attempt to perform correction drive for a total of two cycles, including the one cycle required to produce the current detection result, within one cycle of producing the next result. The same process is repeated below, but if this lens drive cannot catch up, that is, if the drive count value with the correction value added during tracking mode is greater than the count value determined by Moe, the lens drive speed is switched. . In the figure, the switch is made at Q. Even if the driving speed is changed, the correction value and target value are considered to be the same. If the vehicle catches up with the vehicle midway through and the drive direction is reversed based on the calculation result, the follow-up correction is not performed.

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

図において、単位合焦検出周期というのは、S、〜S 
t 、 S s〜S4またはT1〜T 8. T 1〜
T3’等である。そして、これらは、連続しており、同
一被写体を見ているものとして、各時間は同じと見なす
。現在位置を演算C1とする。前回の積分によって求ま
るデフォーカス量をLERRとする。
In the figure, the unit focus detection period is S, ~S
t, Ss~S4 or T1~T8. T 1~
T3' etc. These images are continuous, and each time is considered to be the same, assuming that the same subject is being viewed. Let the current position be calculation C1. Let the defocus amount found by the previous integration be LERR.

尚、これが求まるのはT、の時点である。今回の積分に
よって求まるデフォーカス量をERRとする。これが求
まるのは、T3°の時点である。
Note that this is found at time T. Let ERR be the defocus amount found by this integration. This is determined at the time of T3°.

被写体の単位周期当たりの移動量に対応するデフォーカ
ス量、即ち傾きWRは、図よりWR= ERR+  I
TI  −LERRとして求まる。ここでITIは前回
の積分から今回の積分までの間のレンズ移動量である。
From the figure, the defocus amount corresponding to the amount of movement of the subject per unit period, that is, the tilt WR, is WR = ERR + I
It is determined as TI - LERR. Here, ITI is the amount of lens movement from the previous integration to the current integration.

前回の積分中心のレンズの相対位置は、積分開始時刻T
1及び終了時刻T、のレンズの相対位置の和の!/2と
して求まる。このT I、 T tはSlの時点でのデ
フォーカス1lLERR’を演算C1中でレンズ駆動カ
ウント数に変換し、イベントカウンタにセットした値で
ある。一方、レンズには、フォーカシングエンコーダが
セットされており、レンズが動けばエンコーダからパル
スが出力される。この信号は、イベントカウンタの入力
に接続されており、イベントカウンタはパルスが来るた
びにカウントダウンするようになっている。従って、レ
ンズの移動した量はこのイベントカウンタの値を読めば
わかる。この値がT + 、 T *である。従って、
(’r l+ T 2)/2=M[Lで前回の中心が求
まる。
The relative position of the lens at the center of the previous integration is the integration start time T.
1 and the end time T, the sum of the relative positions of the lenses! /2. These T I and T t are values that are converted from the defocus 11LERR' at the time of Sl into a lens drive count number in the calculation C1 and set in the event counter. 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 an event counter, and the event counter counts down each time a pulse occurs. Therefore, the amount by which the lens has moved can be determined by reading the value of this event counter. These values are T + and T *. Therefore,
('r l+ T 2)/2=M [L determines the previous center.

次に、第31図を使ってこの追随モードに入ってAFL
でいる時に、シャッタがレリーズされた場合について説
明する。本願発明においては、追随性を上げるためにレ
リーズタイムラグ中にもレンズ駆動を行うようになって
いる。即ち、レリーズ信号が入って露出動作が開始され
るまでの間の、例えば−眼レフレックスカメラのレフレ
ックスミラー上昇の間にもレンズを駆動するわけである
Next, use Figure 31 to enter this follow mode and AFL
The case where the shutter is released while the camera is in the camera will be explained. In the present invention, the lens is driven even during the release time lag in order to improve tracking performance. That is, the lens is driven even while the reflex mirror of a negative-eye reflex camera is being raised, for example, from when the release signal is input until the exposure operation is started.

もっとも、この間はミラーが上昇しているから、ミラー
を介した光を受光して合焦を検出する焦点検出方式では
、焦点検出(WR分及び演算)は出来ない。従って、ミ
ラー上昇中に被写体が移動する潰WSを予め演算により
求める。このレリーズタイムラグ時間をRTSとすると
、単位合焦検出時間TI当たりの被写体の動きWRから
 WS=WRXI(TS/TIとなる。このWSを追随
補正量として露出動作面までにレンズを動かし終えて停
止させる。そして、フィルムが露光された後にミラーの
下降が始まると同時にフィルムの自動巻き上げ、シャッ
タクツキングの巻き上げ動作が開始される。(必ずしも
自動巻き上げが行なわれるようになっている必要は無い
。) この時、カメラが合焦状態に達することよりもンヤッタ
のレリーズを優先するレリーズ優先モードになっていて
、合焦になるまえにシャッタがレリーズされたとする。
However, since the mirror is raised during this time, focus detection (WR component and calculation) cannot be performed using a focus detection method that detects focus by receiving light through the mirror. Therefore, the distance WS in which the subject moves while the mirror is rising is calculated in advance. If this release time lag time is RTS, then from the subject movement WR per unit focus detection time TI, WS = WRXI (TS/TI). Using this WS as the tracking correction amount, the lens stops after moving to the exposure operation plane. After the film is exposed, the mirror begins to descend, and at the same time, the film automatically winds up and the shutter takes off. (It is not necessary for automatic winding to occur.) At this time, it is assumed that the camera is in a release priority mode that prioritizes the release of the camera over reaching the in-focus state, and the shutter is released before the camera is in focus.

撮影の結果は当然ぼけた写真になるが、カメラが連続し
て撮影する連写モードになっていれば、2枚目以降の写
真はなるべくピントが合って欲しい。そこで、ミラー下
降の間に(この間、ミラーが下降位置に安定するまでは
積分、演算は再開出来ない。)露光時に合焦状態に至ら
なかった量だけ、積分再開に先立ってレンズ駆動させて
おく。図では、積分再開時にレンズを停止させているが
、動かしたまま積分しても問題ない。
Naturally, the result will be a blurry photo, but if the camera is in continuous shooting mode, you want the second and subsequent photos to be as close to focus as possible. Therefore, while the mirror is lowering (during this period, integration and calculation cannot be restarted until the mirror is stabilized in the lowered position), the lens is driven by the amount that did not reach the in-focus state during exposure before resuming integration. . In the figure, the lens is stopped when the integration is resumed, but there is no problem even if the lens is kept moving.

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

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

次に、スイッチの説明をする。(Sl)は不図示のレリ
ーズ釦押下の第一ストロークでONL、マイコン(1)
はこのスイッチ(Sl)のONあるいはレリーズ釦を離
すことによるOF’Pで後述のフロー(AFS)を実行
する。(C2)はレリーズ釦が第一ストロークより長い
第2ストロークまで押下されたときONし、このONに
よりマイコン(1)は第16図(a)図示の後述のレリ
ーズのフローを実行する。(C3)はミラーアップ完了
でONするスイッチで、−駒巻き上げ機構によるフィル
ム巻き上げにより不図示のレリーズ部材がヂャージされ
るとスイッチ(C3)はOFFの状態になる。(C4)
は撮影レンズが一旦合焦状態に達するとそれ以降の焦点
検出動作を停止する所謂ワンショットモードと、一度合
焦状態に達しても焦点検出を続けて行う所謂コンテニュ
アスモードとを選択するスイッチである。(C5)は露
出モード設定スイッチであり、設定されたモードにより
、2ビツトの信号がマイコン(1)に送られる。本実施
例のカメラが有する露出制御モードは、プログラムモー
ド(以下Pモードという)、絞り優先モード(以下Aモ
ードという)、ンヤッタ速度優先モード(以下Sモード
という)、マニュアルモード(以下Mモードという)の
4種類である。
Next, I will explain the switch. (Sl) is ONL and microcomputer (1) at the first stroke of pressing the release button (not shown).
When this switch (Sl) is turned ON or the release button is released, a flow (AFS) to be described later is executed. (C2) 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 execute the release flow shown in FIG. 16(a), which will be described later. (C3) is a switch that is turned ON when the mirror is raised up, and when a release member (not shown) is charged by winding up the film by the frame winding mechanism, the switch (C3) is turned OFF. (C4)
This is a switch that selects between the so-called one-shot mode, in which focus detection operations are stopped once the photographic lens reaches the in-focus state, and the so-called continuous mode, in which focus detection continues even after the photographic lens reaches the in-focus state. It is. (C5) is an exposure mode setting switch, and depending on the set mode, a 2-bit signal is sent to the microcomputer (1). The exposure control modes that the camera of this embodiment has are program mode (hereinafter referred to as P mode), aperture priority mode (hereinafter referred to as A mode), speed priority mode (hereinafter referred to as S mode), and manual mode (hereinafter referred to as M mode). There are four types.

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

以上の回路構成において、カメラに電池が装着されると
、リセット用抵抗(RR)及びコンデンサ(CR)に電
源が供給されて、マイコン(1)のリセット端子(RE
)に”Low”レベルから”High”レベルに変化す
る信号が人力され、マイコン(1)は第2図のリセット
ルーチン(RESET)を実行する。
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
) is manually inputted with a signal that changes from "Low" level to "High" level, and the microcomputer (1) executes the reset routine (RESET) shown in FIG.

マイコン(1)は、まずフラグ及び出力ボートをリセッ
トし初期状態にする(#5.#10)。次に、補助光発
光装置(13)を0FFI、、表示を消して、レンズの
駆動を停止し、フィルム巻き上げが完了していない時に
はモーターを駆動し、巻き上げが完了すれば給電用トラ
ンジスタ(Tr、)をOF’Fする(#15〜#30)
。そして、補助光発光のための補助光フラグ(補助光F
)をリセットして、端子(OF2)を”Low”レベル
にして、マイコン(1)は停止する(#35.#40)
。上記ステップ#15〜#40は主として後述のステッ
プ#55から移行してくるときに有効となる。
The microcomputer (1) first resets the flag and output port to the initial state (#5, #10). Next, turn off the auxiliary light emitting device (13), turn off the display, stop driving the lens, drive the motor when film winding is not completed, and when film winding is completed, power supply transistor (Tr, ) (#15 to #30)
. Then, the auxiliary light flag (auxiliary light F
), the terminal (OF2) is set to "Low" level, and the microcontroller (1) stops (#35.#40)
. The above steps #15 to #40 are mainly effective when proceeding from step #55, which will be described later.

電池が装着された状態で、レリーズ釦が第1ストローク
まで押し込まれると、スイッチ(St)がONし、マイ
コン(1)は第2図のAFSからのフローを実行する。
When the release button is pushed to the first stroke with the battery attached, the switch (St) is turned on and the microcomputer (1) executes the flow from AFS in FIG. 2.

マイコン(1)は、まず全フラグをリセットし、給電用
トランジスタ(Try)をONする。これにより、各回
路に電源が供給され、これと同時に、測光回路(3)が
測光を開始する。マイコン(1)は、スイッチ(91)
がONであるか否かを判別し、OFFであればステップ
#15へ進んで上述の処理を行い、ONであれば、次の
焦点検出及びこれに続くフローを実行する(S55)。
The microcomputer (1) first resets all flags and turns on the power supply transistor (Try). As a result, power is supplied to each circuit, and at the same time, the photometry circuit (3) starts photometry. The microcomputer (1) is a switch (91)
It is determined whether or not is ON, and if it is OFF, the process proceeds to step #15 and the above-mentioned process is performed, and if it is ON, the next focus detection and the subsequent flow are executed (S55).

スイッチ(St)がONの時には補助光フラグ(補助光
F)がセットされているか否かを判別し、セットされて
いるときには補助光モードであるとして、補助光発光装
置(13)を発光させてステップ#70に進み、補助光
フラグがセットされていない時には、ステップ#65を
スキップしてステップ#70に進む(#60.#65)
When the switch (St) 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, assuming that the auxiliary light mode is active. Proceed to step #70, and if the auxiliary light flag is not set, skip step #65 and proceed to step #70 (#60.#65)
.

次に、マイコン(1)は、タイマー(TI)によって而
の積分時の積分開始から今回の積分開始までにかかった
時間(TI)を読み取り、次に、このタイマー(TI)
をリセットしてスタートさせ、積分を開始させる(#7
0〜#78)。このときのレンズの相対位置を検出すべ
く、合焦状態までレンズを駆動すべき量を示すカウンタ
(以下イベントカウンタと言う)の値(CTI)を読み
取る(S80)。
Next, the microcomputer (1) uses a timer (TI) to read the time (TI) taken from the start of the previous integration to the start of the current integration, and then
Reset and start, and start the integration (#7
0 to #78). In order to detect the relative position of the lens at this time, the value (CTI) of a counter (hereinafter referred to as event counter) indicating the amount by which the lens should be driven until it is in focus is read (S80).

次に積分時間が長いモードであるか否かを示すフラグ(
長端F)を判定し、そのフラグがセットされていれば8
0ssec経過するのを待ち、80 a+sec経過し
ても積分が終了しなけ、れば、補助光発光装置(13)
を0FFt、て、ステップ#110に進む(#85〜#
95)。上記フラグ(長端F)がセットされていないと
きには、積分終了したときあるいは積分終了していない
時でも20+5sec経過すればステップ#110にす
すむ(#100.#105)。
Next is a flag indicating whether or not the mode has a long integration time (
Determine the long end F), and if that flag is set, 8
Wait for 0ssec to elapse, and if the integration is not completed even after 80a+sec has elapsed, turn on the auxiliary light emitting device (13).
0FFt, and proceed to step #110 (#85 to #
95). If the flag (long end F) is not set, the process proceeds to step #110 after 20+5 seconds have passed even when the integration is completed or not completed (#100.#105).

この積分終了は、C0D(9)の近傍に設けられた積分
時間制御用モニターの受光素子に入射する光量が所定以
上になったときに行なわれるが、本願発明とは直接関係
がないのでその説明は省略する。
This integration is completed when the amount of light incident on the light-receiving element of the integration time control monitor provided near C0D (9) exceeds a predetermined value, but this is not directly related to the present invention and will therefore be explained below. is omitted.

ステップ#110では、積分終了時のレンズの相対位置
を知るために、イベントカウンタの値を(Cr2)とし
て読み取る。更にマイコン(1)は、CCDデータのダ
ンプを行って、このデータを用いて焦点検出の演算を行
なう(#120.#125)。次に前回の積分中心にお
けるレンズの相対位置を示す値(M I )をMIL、
として、今回の積分中心におけるレンズの相対位置を求
めるべく、積分開始時のレンズ相対位置(CTI)と積
分終了時のレンズ相対位置(Cr2)との和を2で割り
、この値をMlとする(# l :30.# I 35
)。次に前回の積分中心から今回の積分中心の間にレン
ズが駆動された量を求めようとするが、単にMIL−M
lでは求まらない。
In step #110, the value of the event counter is read as (Cr2) in order to know the relative position of the lens at the end of the integration. Furthermore, the microcomputer (1) dumps the CCD data and uses this data to perform focus detection calculations (#120, #125). Next, the value (M I ) indicating the relative position of the lens at the center of the previous integration is MIL,
To find the relative position of the lens at the center of this integration, divide the sum of the lens relative position at the start of integration (CTI) and the lens relative position at the end of integration (Cr2) by 2, and set this value as Ml. (# l :30.# I 35
). Next, we try to find the amount by which the lens was driven between the previous integration center and the current integration center, but we simply use MIL-M
It cannot be found by l.

この理由を第3図のグラフを参照して説明する。The reason for this will be explained with reference to the graph in FIG.

このグラフにおいて、横軸は時間を示しており、縦軸は
フィルム面上での被写体像の動き(a)とレンズの動き
(b)とについての移動量を示している。
In this graph, the horizontal axis indicates time, and the vertical axis indicates the amount of movement of the subject image on the film plane (a) and the lens movement (b).

この図の場合、レンズの駆動を行いながら積分・演算を
行っている。T、、T、°、T1″°は積分開始時点、
Tt、Tt’ 、Tt”は積分終了時点、T 3. T
 3’ 。
In this figure, integration and calculations are performed while driving the lens. T, ,T,°, T1″° is the point at which the integration starts,
Tt, Tt', Tt'' are the points at the end of the integration, T3.T
3'.

T3°°は演算終了時点を示しており、今、Tlo−T
3°’、T、=Tffi’としている。この理由は、焦
点検出に必要な時間は、上述した積分、データダンプ、
焦点検出演算(#60〜# 125)にほとんど費やさ
れるからである。前回の積分I°の中心のレンズ用対位
置を示すMILとしては、積分開始時点TI′及び積分
終了時点T2’のレンズ位置を示すイベントカウンタの
値を加えて2で割ったものを入れておく。演算C”の終
了時点T1”のイベントカウンタには、演算C”の結果
として、被写体位置REIからのデフォーカス量をエン
コーダの移動数に変換したしのが入力される。この被写
体位置REIは、積分ビの中心時点における像面からの
デフォーカス■を示す位置である。
T3°° indicates the end of the calculation, and now Tlo−T
3°', T, = Tffi'. The reason for this is that the time required for focus detection is
This is because most of the time is spent on focus detection calculations (#60 to #125). As the MIL indicating the lens relative position of the center of the previous integral I°, enter the value obtained by adding the event counter values indicating the lens positions at the integration start time TI' and the integration end time T2' and dividing by 2. . As a result of the calculation C'', the amount of defocus from the subject position REI converted into the number of encoder movements is input to the event counter at the end time T1'' of the calculation C''.This subject position REI is This is the position indicating the defocus (■) from the image plane at the center point of the integral Bi.

次に今回の積分■の中心時点におけるレンズの相対位置
を示すMlには、上述と同様に考えると、被写体位置R
E2からのデフォーカス■をエンコーダの移動数に変換
した値を入力する。従って、レンズの相対位置を示すM
 I L 、 M Iには前回の結果を原点とするスケ
ールと、今回の結果を原点とするスケールとの異なった
スケールの値が入っている。これを単純にMIL−Ml
としても、レンズの正確な移動量は算出されない。この
スケールを揃えないことには、正確なレンズ移動量を求
められない。
Next, Ml, which indicates the relative position of the lens at the center point of the current integral ■, is given by the object position R.
Input the value obtained by converting the defocus ■ from E2 into the number of encoder movements. Therefore, M indicating the relative position of the lens
I L and M I contain values of different scales, one having the previous result as the origin and the other having the current result as the origin. Simply convert this to MIL-Ml
However, the exact amount of lens movement cannot be calculated. Unless these scales are aligned, accurate lens movement cannot be obtained.

そこで、この補正量をDTとする。この値DTは、演算
C゛終了時点T3’のレンズ位置を示す被写体位置RE
Iからのイベントカウンタの値(CTa)と、このとき
の演算結果の値DF2°をエンコーダの移動数に変換し
た値(L E RR)との差をとることによって得られ
る。即ち、DT=LERR−CTaによって得られる。
Therefore, let this correction amount be DT. This value DT is the subject position RE indicating the lens position at the end point T3' of calculation C.
It is obtained by taking the difference between the value of the event counter from I (CTa) and the value (L E RR) obtained by converting the value DF2° of the calculation result at this time into the number of encoder movements. That is, it is obtained by DT=LERR-CTa.

そして、レンズの移動量(ITI)は、今回の積分中心
におけるレンズの相対位置Mrから上記DTを引いたも
のを、MrLから引けば求められろ。即ち、rTI=M
I L−(MI−DT)で得られる。マイコン(1)で
は、第2図のステップ#140.#I45でこれを行っ
ている。
The amount of lens movement (ITI) can be found by subtracting the above-mentioned DT from the relative position Mr of the lens at the current center of integration from MrL. That is, rTI=M
Obtained by IL-(MI-DT). In the microcomputer (1), step #140 in FIG. #I45 does this.

次に、マイコン(1)は、レンズ回路(12)から、開
放絞り値Avoとデフォーカス量を工/コーダのパルス
数に変換する係数値(以下KL値と言う)とのデータを
入力すべく、レンズ回路(12)のROMからデータを
読み出す。まず1.チップセレクト端子(CS)を”H
igh″レベルにしてデータ交信開始を示す信号を出力
し、読み出されたデータの数を示す変数Nを0として、
シリアル通信命令を行う(#155.#160)。この
命令によってマイコン(1)の端子(SCK)からクロ
ックが出力され、このクロックの立ち上がりに同期して
!ビットずつデータがレンズ回路(12)から出力され
る。そして、このクロックの立ち下がりに同期して、マ
イコン(1)が端子(S I N)よりデータを読みと
り、8個のパルスを出力することによって1回のシリア
ル通信が終了し、これを2回行って、上記2種類のデー
タをレンズ回路(12)から入力する(#165、#1
70)。2種類のデータの入力を終えると、端子(C8
)を“Low″レベルにしてシリアル通信の終了をレン
ズ回路(12)に知らせる(#l75)。次に露出演算
のサブルーチンに進む(#180)。
Next, the microcomputer (1) inputs data from the lens circuit (12) including the open aperture value Avo and a coefficient value (hereinafter referred to as KL value) for converting the defocus amount into the number of pulses of the encoder/coder. , reads data from the ROM of the lens circuit (12). First 1. Set the chip select terminal (CS) to “H”
output a signal indicating the start of data communication, and set the variable N indicating the number of read data to 0,
Execute serial communication command (#155.#160). With this command, a clock is output from the terminal (SCK) of the microcomputer (1), and in synchronization with the rising edge of this clock! Data is output bit by bit from the lens circuit (12). Then, in synchronization with the fall of this clock, the microcomputer (1) reads data from the terminal (S I N) and outputs 8 pulses, completing one serial communication. and input the above two types of data from the lens circuit (12) (#165, #1
70). After inputting the two types of data, the terminal (C8
) to the "Low" level to notify the lens circuit (12) of the end of serial communication (#l75). Next, the process proceeds to an exposure calculation subroutine (#180).

このサブルーチンを第4図を参照して説明する。This subroutine will be explained with reference to FIG.

マイコン(+)は、まず、開放測光値Bvoを測光回路
(3)から人力し、フィルム感度データSvをフィルム
感度自動読み取り回路(4)から入力する(#2000
、#2005)。これらのデータと、前述のごとくして
入力した開放絞り値Avoとから露出値Evを算出する
(#2010)。次に、露出制御モードを判定して、P
モードであれば、上記露出値Evを1/2にして絞り値
Avを求め、そして露出値Evから絞り値Avを引いて
シャッタ速度値TVを求めリターンする(#2015〜
#2025)。
The microcomputer (+) first inputs the open photometry value Bvo from the photometry circuit (3) and inputs the film sensitivity data Sv from the film sensitivity automatic reading circuit (4) (#2000).
, #2005). The exposure value Ev is calculated from these data and the open aperture value Avo input as described above (#2010). Next, determine the exposure control mode and
In mode, the exposure value Ev is halved to obtain the aperture value Av, and the shutter speed value TV is obtained by subtracting the aperture value Av from the exposure value Ev, and the process returns (#2015~
#2025).

Aモードであれば、設定された絞り値Avを読み取り、
露出値Evから設定絞り値Avを引いてシャッタ速度値
Tvを求めてリターンする(#2030〜#2040)
。Sモードであれば、設定シャッタ速度値Tvを読み取
り、露出値Evから設定シャッタ速度値Tvを引いて絞
り値Avを求めてリターンする(#2045〜#2C1
55)。上記いずれのモードでもない場合、即ちMモー
ドであるときは、設定された絞り値Av及びツヤツタ速
度値Tvを読み取ってリターンする(# 2.060〜
#2065)。
In A mode, read the set aperture value Av,
Subtract the set aperture value Av from the exposure value Ev to find the shutter speed value Tv and return (#2030 to #2040)
. In S mode, read the set shutter speed value Tv, subtract the set shutter speed value Tv from the exposure value Ev to find the aperture value Av, and return (#2045 to #2C1
55). If it is not in any of the above modes, that is, if it is in M mode, read the set aperture value Av and glossy speed value Tv and return (#2.060~
#2065).

第2図のフローヂャートに戻り、ステップ#185で焦
点検出不能でないと判断されれば、ステップ#I88に
進みフラグMVPをリセットする。
Returning to the flowchart of FIG. 2, if it is determined in step #185 that focus detection is not impossible, the process proceeds to step #I88 and the flag MVP is reset.

フラグMVPをリセットすることによって速写中に大デ
フォーカスや焦点検出不能があってもシャツタレリーズ
を許す。ステップ#185で焦点検出不能であると判定
された−ときはステップ#186に進む。ステップ#1
86では連写中であることを示ず連写フラグがセットさ
れているか否かを判定する。この連写フラグがセットさ
れていないときはレンズを駆動させながら被写体のコン
トラストを検出するためのローコンスキャンを行うべく
、LOWCONのフローに進む。一方速写中を示ず連写
フラグがセットされているときは上記ローコンスキャン
を行わすレリーズ許可およびレリーズ中の追随モード補
正禁止を示すフラグ(M V P )をセットしCDr
NTのフローに進み焦点検出を行う。この理由は、本実
施例において連写モードでかつAP優優先モー1置1 萌に合焦しているかあるいはレリーズ中に合焦となる場
合のみシャツタレリーズが行なわれ被写体にはピントが
合っている。駆動いている被写体を撮影しているかある
いは誤って連写中にカメラを少し動かした場合には焦点
検出を行っている範囲から所望の被写体が撮影者の意図
に反して抜けることがある。本来連写中は撮影間隔が短
いためにデフォーカス量は比較的小さいか0になるはず
であるが、このような場合にはカメラの焦点検印では焦
点検出範囲内に写っている他の被写体に焦点検出を行う
結果焦点検出が不能となったり、大デフォーカスとなる
ことがあり、AF優先モードであるからといって、この
焦点検出結果に応じてレリーズ禁止を行うこと及び焦点
検出結果に応じてレンズ駆動を行うことは良い方法では
ない。合焦点検出不能のときレンズ駆動はデフォーカス
量のデータを更新しないので前の焦点検出の結果のデー
タに応じて駆動される。検出可能であれば、焦点検出不
能を示すローコンフラグLCFをリセットし、ローライ
ト(被写体が所定値以下の低輝度であること)であるか
否かを判定する(# 1 B 5〜# 1 9 5)。
By resetting the flag MVP, shirt release is allowed even if there is large defocus or focus detection failure during quick shooting. If it is determined in step #185 that focus cannot be detected, the process advances to step #186. Step #1
At step 86, it is determined whether or not the continuous shooting flag is set, indicating that continuous shooting is in progress. If this continuous shooting flag is not set, the flow advances to LOWCON in order to perform a low contrast scan for detecting the contrast of the object while driving the lens. On the other hand, when the continuous shooting flag is set and does not indicate that a quick shooting is in progress, a flag (MV P ) indicating permission to perform the above-mentioned low contrast scan and prohibition of follow-up mode correction during release is set, and the CDr
Proceed to the NT flow and perform focus detection. The reason for this is that in this embodiment, shirt release is performed only when the subject is in continuous shooting mode and in AP priority mode, or when the object is in focus during release, and the subject is not in focus. There is. If a moving object is being photographed, or if the camera is accidentally moved slightly during continuous shooting, the desired object may fall out of the focus detection range against the photographer's intention. Normally, during continuous shooting, the amount of defocus should be relatively small or zero because the shooting interval is short, but in such a case, the camera's focus check mark may indicate that other subjects within the focus detection range are As a result of focus detection, focus detection may become impossible or a large amount of defocus may occur. It is not a good method to drive the lens by When the in-focus point cannot be detected, the lens is driven in accordance with the data of the previous focus detection result because the defocus amount data is not updated. If detection is possible, reset the low contrast flag LCF indicating that focus cannot be detected, and determine whether the subject is low light (the subject has low brightness below a predetermined value) (#1 B 5 to # 1 9 5 ).

そして、ローライトでなければ、ステップ#200て補
助光フラグをリセットし、ローライトであればステップ
#200をスキップして、それぞれステップ#205に
進み、この演算終了時点のレンズの相対位置をイベント
カウンタで読み取る。次に、この演算で求めたデフォー
カス量Δεに変換係数KL値を掛けてエンコーダのパル
ス数を求め、この値が正ならば今回の方向を示す変数T
Dを1とし、負ならばTDを0とする(# 2 0 5
〜#225)。
If the light is not low light, the auxiliary light flag is reset in step #200, and if the light is low light, step #200 is skipped and the process proceeds to step #205, where the relative position of the lens at the end of this calculation is set as an event. Read with a counter. Next, the defocus amount Δε obtained by this calculation is multiplied by the conversion coefficient KL value to obtain the number of encoder pulses, and if this value is positive, the variable T indicating the current direction
Set D to 1, and if negative, set TD to 0 (# 2 0 5
~#225).

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

例えば、第5図(a)に示すように、コンティニュアス
モードであるときは動く被写体に対して焦点調節する場
合が多いのでスピード優先モードとし、ワンショットモ
ードの時には静止している被写体に焦点調節する場合が
多いので精度優先モードにする。あるいは、第5図(b
)に示すように、Aモードのときにはポートレート等静
止している被写体に正確にピントを合わせたいという事
が多いと考えられるので精度優先モードとし、それ以外
の露出制御モードの時にはスピード優先モードとする。
For example, as shown in Figure 5(a), when in continuous mode, the focus is often adjusted on a moving subject, so speed priority mode is used, and when in one-shot mode, the focus is on a stationary subject. Since there are many adjustments to be made, use precision priority mode. Alternatively, Fig. 5 (b
), when in A mode, you often want to accurately focus on a stationary subject such as a portrait, so use accuracy priority mode, and when using other exposure control modes, use speed priority mode. do.

あるいは、第5図(c)に示すように、制御される絞り
値(F値)が1.7より小さいときはポートレート等に
使用されることが多いと考えられるから精度優先モード
とし、それ以外では、レンズの被写界深度も多少なりと
深くなっていることを考慮してスピード優先モードとす
る。この限界F値は、F4〜5.6までぐ・らいなら任
意に選んでよい。更には、第5図(d)に示すようにデ
フォーカス量をエンコーダパルス数に変換するKL値が
大きい時、即ち、パルス数当たりのデフォーカス量の変
化量が小さいレンズでは、焦点調節に時間がかかるとし
てスピード優先モードとし、KL値が小さいときにはこ
の逆で、レンズ駆動速度が速すぎると正確な焦点調節が
できないとして精度優先モードにする。後者の場合、精
度優先モードにしてもわずかなパルス数で合焦状態にな
るので、合焦に要する時間は比較的短くて済む。
Alternatively, as shown in Fig. 5(c), when the controlled aperture value (F number) is smaller than 1.7, it is considered that it is often used for portraits, etc., so the accuracy priority mode is set. In other cases, the speed priority mode is used, taking into account that the depth of field of the lens is somewhat deep. This limit F value may be arbitrarily selected from F4 to F5.6. Furthermore, as shown in Fig. 5(d), when the KL value for converting the defocus amount into the number of encoder pulses is large, that is, in a lens where the amount of change in defocus amount per number of pulses is small, it takes time to adjust the focus. If the KL value is small, the speed priority mode is selected, and vice versa, since accurate focus adjustment cannot be performed if the lens drive speed is too fast, and the accuracy priority mode is selected. In the latter case, even if the precision priority mode is set, the focusing state can 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 status is shown in Table 1. Here, regarding the case classification between accuracy priority mode and speed priority mode, the mode with more priority is set as the mode at that time. When there are the same number of priority modes, priority is given to the aperture value threshold. This is because a lens with a small F number has a very shallow depth of field, so even a slight shift is likely to result in an out-of-focus photograph.

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

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

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

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

マイコン(1)は、まずデフォーカスパルス数ERRを
ERRlとし、レンズが停止中か否かを判定する(#3
000.#3005)。停止中であればステップ#30
15に進み、停止中でなければ、積分中心から演算終了
までのレンズの移動ff1cTCをERRIからひいて
ステップ#3015に進む。ステップ#3015では追
随モードを示す追随フラグ(追随F)がセットされてい
るか否かを判定し、セットされている場合にはニアゾー
ン範囲を示すカウンターNZCを63にセットする。非
追随モード(追随フラグリセット時)である場合には、
スピード優先モードであればニアゾーンカウンターを1
00にセットし、精度優先モードであればニアゾーンカ
ウンターを120にセットして、ステップ#3035に
進む(#3015〜#3030)。ステップ#3035
では、デフォーカスパルス数ERR1がセットしたニア
ゾーンカウンターのカウント値NZC以下であるか否か
を判定し、ニアゾーンカウンターのカウント値がNZC
以下であればニアゾーンを示すフラグNZFをセットし
、ニアゾーンカウンターのカウント値かNZCを超えれ
ばニアゾーンフラグNZFをリセットして、リターンす
る(#3035〜#3045)。
The microcomputer (1) first sets the number of defocus pulses ERR to ERRl and determines whether the lens is stopped (#3
000. #3005). If stopped, step #30
If the lens is not stopped, the lens movement ff1cTC from the center of integration to the end of calculation is subtracted from ERRI, and the process proceeds to step #3015. In step #3015, it is determined whether or not a tracking flag (following F) indicating the tracking mode is set, and if it is set, a counter NZC indicating the near zone range is set to 63. If it is in non-tracking mode (when the tracking flag is reset),
In speed priority mode, set the near zone counter to 1.
If the accuracy priority mode is set, the near zone counter is set to 120, and the process proceeds to step #3035 (#3015 to #3030). Step #3035
Then, it is determined whether the defocus pulse number ERR1 is less than or equal to the set count value NZC of the near zone counter, and the count value of the near zone counter is NZC.
If it is below, a flag NZF indicating the near zone is set, and if the count value of the near zone counter exceeds NZC, the near zone flag NZF is reset and the process returns (#3035 to #3045).

尚、ここで、本実施例ではスピード優先モードか精度優
先モードかによってニアゾーンの範囲を変えているが、
この場合はモーターの速度制御には関係がないので一定
値例えば100でもよい。
Note that in this embodiment, the range of the near zone is changed depending on whether the mode is speed priority mode or accuracy priority mode.
In this case, it may be a constant value, for example 100, since it is not related to motor speed control.

第6図に戻って、ステップ#380において、ニアゾー
ンフラグ(NF’Z)がセットされていると判定される
と、このステップ以下、動いている被写体に対してデフ
ォーカス量が大きくなっていく場合に、これを補正する
フローを示し、このような場合を追随モードと呼ぶこと
にする。ステップ#385では、1回通過したことを示
すフラグ(lSTF)がセットされているか否かを判定
する。
Returning to FIG. 6, if it is determined in step #380 that the near zone flag (NF'Z) is set, the defocus amount increases for the moving subject from this step onwards. In this case, we will show a flow for correcting this, and we will refer to such a case as a follow-up mode. In step #385, it is determined whether a flag (lSTF) indicating that the passage has been passed once is set.

そして、このフラグ(ISTF)がセットされていない
ときにはこのフラグ(I 5TF)をセットし、次に追
随モードを示すフラグ(追随F)をリセットし、更に補
正を行うことを示す追随補正フラグ(追随補正F)をリ
セットしてステップ#300に進む(#;455.#4
60.#445)。ステップ#385で1回通過したこ
とを示すフラグ(fsTF)がセットされていれば、前
回のデフォーカス方向(LD)と今回のデフォーカス方
向(TD)とを判別し、方向が違うならば、即ち両者の
方向データが1.0または0.1ならば、ステップ#4
60に進み追随補正モード時の追随補正を行わない。前
回のデフォーカス方向(LD)と今回の方向(TD)と
が同一方向ならば、即ち両者のデータが0.0または1
.1ならばステップ#400へ進み追随フラグ(追随F
)がセットされているか否かを判別する(#390〜#
400.#450)。ステップ#400で追随フラグが
セットされていないときには、今回のデフォーカスパル
ス数ERRから前回のデフォーカスパルス数LEERを
ひき、WRを求める(#430)。この値WRが所定!
iAAより大きければ即ち、デフォーカス量(パルス数
)が大きくなっているときは追随フラグ(追随F)をセ
ットするが、本実施例ではWRが2度正の値になったと
きに補正をするようにしているので、追随モードにおけ
る補正を示す追随補正フラグ(追随補正フラグ)を゛リ
セットして、一度目は補正しないようにしている(#4
35.#440.#445)。
If this flag (ISTF) is not set, this flag (I5TF) is set, then the flag indicating the tracking mode (Following F) is reset, and the tracking correction flag (Following F) indicating that further correction is to be performed is set. Reset the correction F) and proceed to step #300 (#;455.#4
60. #445). If the flag (fsTF) indicating that it has passed once is set in step #385, determine the previous defocus direction (LD) and the current defocus direction (TD), and if the directions are different, That is, if both direction data are 1.0 or 0.1, step #4
Proceeding to 60, 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, the data for both are 0.0 or 1.
.. If it is 1, proceed to step #400 and set the follow flag (follow F
) is set (#390 to #
400. #450). If the tracking flag is not set in step #400, WR is obtained by subtracting the previous number of defocus pulses LEER from the current number of defocus pulses ERR (#430). This value WR is predetermined!
If it is larger than iAA, that is, if the defocus amount (number of pulses) is large, a tracking flag (tracking F) is set, but in this embodiment, correction is performed when WR becomes a positive value twice. Therefore, I reset the tracking correction flag (tracking correction flag) that indicates the correction in tracking mode so that it will not be corrected the first time (#4
35. #440. #445).

この所定ff1AAはノイズ成分を考慮して決めた値で
あり、ノイズ成分のないような構成であればOとすれば
良い。上記WRがAA以下であるときは、デフォーカス
量が大きくなっていないので補正はしないでステップ#
460に進む。ステップ#400において追随フラグ(
追随F)がセットされているときにはステップ#430
と同様にしてWRを、求めてこれがAAより大きいか否
かを判別し、AA以下であるときは、レンズが被写体の
移動に追いついているということで補正する必要がない
ので、補正量としてのWRを0としてステップ#300
に進む(#405.#410.#425)。
This predetermined ff1AA is a value determined in consideration of noise components, and may be set to O if the configuration is free of noise components. If the above WR is less than AA, the defocus amount has not become large, so no correction is made and step #
Proceed to 460. In step #400, the following flag (
If tracking F) is set, step #430
Calculate WR in the same manner as above and determine whether it is greater than AA. If it is less than AA, the lens is keeping up with the movement of the subject and there is no need to make corrections, so the amount of correction is Step #300 with WR set to 0
Proceed to (#405.#410.#425).

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

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

ステップ#322では速写中であることを示す連写フラ
グがセットされているか否かを判定する。
In step #322, it is determined whether a continuous shooting flag indicating that rapid shooting is in progress is set.

フラグがセットされていない場合にはステップ#355
に進む。一方速写フラグがセットされている場合には、
ステップ#324に進みデフォーカスパルス数(ERr
()力月000以上であるか否かを判定し、1000以
上であれば、これは連写中に被写体が焦点検出範囲から
抜けたとしてレンズ駆動の制御を行わず、フラグMVP
をセットしてCD INTのフローへ進む。デフォーカ
スパルス数カ月000未満であればステップ#335に
進み、レンズ駆動を行う。このときら駆動カウンタEN
ZCNTの内容は変わらないので前の焦点検出の結果に
もとづいてレンズが駆動される。
If the flag is not set, step #355
Proceed to. On the other hand, if the snapshot flag is set,
Proceed to step #324 and defocus pulse number (ERr
() Determine whether or not the value is 000 or more, and if it is 1000 or more, it is assumed that the subject has gone out of the focus detection range during continuous shooting, and the lens drive is not controlled and the flag MVP is set.
and proceed to the CD INT flow. If the number of defocus pulses is less than several thousand months, the process advances to step #335 and the lens is driven. At this time, the corner drive counter EN
Since the contents of the ZCNT do not change, the lens is driven based on the previous focus detection result.

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

この値TCを夫々のモードで変えているのは、一般にA
P優先モードは被写体にピントを正確に合わせたいとき
に使用されるモードであるから、できるだけレンズを動
かしてデフォーカス量が0になるようにしたいので、こ
の一定時間を長くしてレンズを駆動するようにしている
からである。
This value TC is generally changed in each mode by A.
P priority mode is a mode used when you want to accurately focus on the subject, so you want to move the lens as much as possible so that the amount of defocus becomes 0, so you drive the lens by increasing this fixed time. This is because I am doing so.

一方、レリーズ優先モードにおいては、とにかく写した
いその瞬間にレリーズがなされることが大切なので、こ
の一定時間を短くしている。次のステップ#2215で
は、積分周期TIを読み取りTdをこの時間TIで割っ
て、その比Rを求め、Td間に動く被写体の像面での移
動量WSを求めるべく、補正量WRにRをかける(#2
215.#2220)。そして、この値WSに、デフォ
ーカスパルス数ERRを加えて新たにデフォーカスパル
ス数ERRTを求める(#2225)。次にAF優先モ
ードであるかを判定し、AFff先モードではデフォー
カスパルス数ERRTが148以下、レリーズ優先モー
ドではIOθ以下であるかを判定し、デフォーカスパル
ス数FRRTがこれらの設定値以下であれば、追随モー
ドにおいて合焦状態に達したことを示す追随合焦フラグ
(追随合焦F)をセットし、設定値を超える場合には追
随合焦フラグをリセットしてリターンする。上記設定値
に関しては、後述のレリーズモードのときに説明する。
On the other hand, in release priority mode, it is important to release the camera at the exact moment you want to take the picture, so this fixed time is shortened. In the next step #2215, the integration period TI is read, Td is divided by this time TI to find the ratio R, and R is added to the correction amount WR in order to find the movement amount WS on the image plane of the subject moving during Td. Multiply (#2
215. #2220). Then, the number of defocus pulses ERR is added to this value WS to obtain a new number of defocus pulses ERRT (#2225). Next, it is determined whether the AF priority mode is selected, and whether the defocus pulse number ERRT is 148 or less in the AFff destination mode, and IOθ or less in the release priority mode, and if the defocus pulse number FRRT is less than or equal to these set values. If so, a tracking focus flag (tracking focus F) indicating that a focused state has been reached in the tracking mode is set, and if the set value is exceeded, the tracking focus flag is reset and the process returns. The above setting values will be explained later in the release mode.

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

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

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

(3)追随合焦ゾーン(ステップ#340)ゾーンとし
ては1番広く、追随モード時の合焦表示及びAF優先モ
ード時のレリーズ許可を行う範囲を示す。追随モード時
においてレンズの駆動を行いながら被写体の動きに追随
しつづけたときに、合焦状態(デフォーカス量が0)に
ならないときがある。ところが従来のAF優先モードで
あれば、レンズが停止しないとレリーズができない。こ
の追随合焦ゾーンは、これを防止するために設けられた
ものであり、このゾーンの大きさはレリーズタイムラグ
十一定時間の間ににレンズが駆動できる値としている。
(3) Follow-up focusing zone (step #340) This is the widest zone and indicates the range in which focus is displayed in the follow-up mode and release is permitted in the AF priority mode. When the lens continues to follow the movement of the subject while driving the lens in the tracking mode, the camera may not be in focus (defocus amount is 0). However, in the conventional AF priority mode, the release cannot be performed unless the lens stops. This tracking focusing zone is provided to prevent this, and the size of this zone is set to a value that allows the lens to be driven within a certain period of time equal to the release time lag.

この値に関しては、後述のレリーズのフローの説明のと
きに詳述する。
This value will be explained in detail when the release flow is explained later.

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

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

第8図のID0BUNのフローでは、まず、今回演算さ
れたデフォーカス方向が前回演算されたデフォーカス方
向と異なるか否かを判定する(#435)。方向が反転
していれば、レンズを停止して(ステップ#455)、
再度積分を行うべく第2図のステップ#55以下のCD
INTのフローにもどる。一方、第8図のステップ#4
35で方向が反転していなければ、積分中心から演算終
了までに動いたレンズの移動ff1cTcを求める(#
435、#440)。次に後述するニアゾーンA判定の
゛サブルーチンに進み、そのサブルーヂン内での判定結
果としてニアゾーンフラグ(NZF)がセットされてい
れば、ステップ#460に進み、セットされていなけれ
ばステップ#520で追随フラグをリセットする(#4
45.#450)。ステップ#460以下では前回演算
されたデフォーカス方向(LD)と今回演算されたデフ
ォーカス方向(TD)とが同一方向か否かを判定し、同
一方向ならステップ#470に進み、今回のデフォーカ
スパルス数ERRに前回積分中心から今回の積分中心ま
での間に動いたレンズの駆動fllTIを加え、前回の
デフォーカスfiLERRをひいて、補正量wnを求め
る(#460〜#470.#515)。
In the flow of ID0BUN in FIG. 8, first, it is determined whether the defocus direction calculated this time is different from the defocus direction calculated last time (#435). If the direction is reversed, stop the lens (step #455),
CD from step #55 in Figure 2 to perform the integration again.
Return to INT flow. On the other hand, step #4 in Figure 8
If the direction is not reversed in step 35, find the movement ff1cTc of the lens from the center of integration to the end of the calculation (#
435, #440). Next, the process proceeds to a subroutine for near zone A determination, which will be described later. If the near zone flag (NZF) is set as a result of the determination within that subroutine, the process proceeds to step #460; if it is not set, follow-up is performed in step #520. Reset the flag (#4
45. #450). In step #460 and subsequent steps, it is determined whether the defocus direction (LD) calculated last time and the defocus direction (TD) calculated this time are the same direction, and if they are the same direction, the process advances to step #470 and the defocus direction (TD) calculated this time is Add the driving fllTI of the lens that moved between the previous integration center and the current integration center to the pulse number ERR, and subtract the previous defocus fiLERR to find the correction amount wn (#460 to #470. #515).

次に追随フラグ(追随F)がセットされているか否かを
判定し、追随フラグがセットされておらず更に、この補
正量WRが所定flAA以上のときには、追随フラグ(
追随F)及び追随補正フラグ(追随補正F)をそれぞれ
セットして第6図のステップ#300に進む(#480
〜#490)。
Next, it is determined whether or not the following flag (following F) is set, and if the following flag is not set and furthermore, this correction amount WR is greater than or equal to the predetermined flAA, the following flag (following F) is determined.
Set the tracking correction flag (tracking correction F) and tracking correction flag (tracking correction F), respectively, and proceed to step #300 in FIG. 6 (#480
~#490).

一方、ステップ#480で、補正ff1WRが所定量Δ
A未満のときは追随補正フラグ(追随補正F)をリセッ
トして、ステップ#300に進む(#480、#485
)。ステップ#475で追随フラグ(追随F)がセット
されているときには補正量WRが所定量AXにアゾーン
カウンターのカウント値NZC上り大)以上であるかを
判定し、所定量以上であれば、焦点検出エリアから被写
体がはずれたと判定して、レンズの駆動量の更新を禁止
する非更新フラグ(非更新F)をセットし、追随補正フ
ラグ(追随補正F)をリセットしてステップ#300に
進む(#500.#505.#490)。
On the other hand, in step #480, the correction ff1WR is adjusted by a predetermined amount Δ
If it is less than A, reset the tracking correction flag (tracking correction F) and proceed to step #300 (#480, #485
). When the tracking flag (tracking F) is set in step #475, it is determined whether the correction amount WR is greater than the predetermined amount AX (the count value NZC of the azone counter is large), and if it is greater than the predetermined amount, the focus It is determined that the subject has moved away from the detection area, a non-update flag (non-update F) that prohibits updating of the lens drive amount is set, a tracking correction flag (tracking correction F) is reset, and the process proceeds to step #300 ( #500. #505. #490).

逆にステップ#500で補正量WRが所定量AX未満で
ある場合、非更新フラグ(非更新F)をリセットし、追
随補正フラグ(追随補正F)をセットしてステップ#3
00に進む(#500.#510゜#490)。
Conversely, 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 (follow-up correction F) is set, and step #3
Proceed to 00 (#500.#510° #490).

第2図に戻り、ステップ#185において、焦点検出が
不能と判定したときには、第9図のLOWCONのフロ
ーに進む。第9図のLOWCONのフローにおいて、マ
イコン(1)はまず追随フラグ(追随F)がセットされ
ているか否かを判定し、追随フラグ(追随F)がセット
されている場合には、非更新フラグ(非更新F)をセッ
トする(#520゜#525)。そして、ここを通過す
るのが!回目であることを示すフラグPIFがセットさ
れているか否かを判定し、セットされていないとき、即
ちここを通るのカ月回−のときこのフラグPIFをセッ
トし、変数N1を0として第2図のステップ#55以下
のCDINTのフローに進む(#530、#625.#
630)。
Returning to FIG. 2, when it is determined in step #185 that focus detection is impossible, the process proceeds to the LOWCON flow in FIG. 9. In the LOWCON flow shown in Figure 9, the microcomputer (1) first determines whether or not the following flag (following F) is set, and if the following flag (following F) is set, the non-update flag is flagged. (Non-update F) is set (#520° #525). And passing through here! It is determined whether or not the flag PIF indicating that it is the third time has been set, and if it is not set, that is, it is the third time that the passage has passed, this flag PIF is set, and the variable N1 is set to 0 as shown in Fig. 2. Proceed to the CDINT flow following step #55 (#530, #625.#
630).

ステップ#530において、上記フラグPIFがセット
されているときには、変数Nlに1を加えて、この値N
1が2であるか否かを判定し、2でない場合には、第2
図のステップ#55以下のCD INTのフローに進み
、2である場合には追随フラグ(追随F)及び非更新フ
ラグ(非更新F)をそれぞれリセットして、ステップ#
555に進む(#535〜#550)。上述のステップ
#520〜#550.#625.#630では、追随モ
ードであるときに焦点検出エリアから被写体がはずれる
と、デフォーカス量が急に大きくなったり、焦点検出不
能と判定されたりする事があるので、これに対する対策
を施しているのである。即ち、デフォーカス量が急に大
きくなっても焦点検出可能なときは、補正ff1WRが
急に大きくなることを意味し、このときは、上述した第
8図のステップ#500〜#51Oで処理している。一
方、第2図のステップ#185で焦点検出不能と判定し
たときには、第9図のLOWCONのフローに進む。
In step #530, if the flag PIF is set, 1 is added to the variable Nl, and this value N
Determine whether 1 is 2 or not, and if it is not 2, the second
Proceed to the flow of CD INT following step #55 in the figure, and if it is 2, reset the following flag (following F) and non-update flag (non-updating F), and then proceed to step #55.
Proceed to step 555 (#535 to #550). Steps #520 to #550 described above. #625. With #630, if the subject moves out of the focus detection area while in tracking mode, the amount of defocus may suddenly increase or it may be determined that focus cannot be detected, so we have taken measures to prevent this. be. In other words, when the focus can be detected even if the defocus amount suddenly increases, it means that the correction ff1WR suddenly increases, and in this case, the process is performed in steps #500 to #51O in FIG. ing. On the other hand, if it is determined in step #185 of FIG. 2 that focus detection is impossible, the process proceeds to the LOWCON flow of FIG. 9.

そして、追随モードで焦点検出不能と判定したとき、す
なわち焦点検出エリアから被写体がはずれたときには、
ステップ#555からの通常の焦点検出不能の処理をせ
ず、前回演算されたデフォーカス量に基づいてレンズを
駆動することにしている。一方、ステップ#520で追
随フラグがセットされていないときには、フラグPIF
をリセットして、ステップ#555に進む。
When it is determined that focus cannot be detected in tracking mode, that is, when the subject moves out of the focus detection area,
The lens is driven based on the previously calculated defocus amount without performing the normal focus detection failure processing from step #555. On the other hand, if the follow flag is not set in step #520, the flag PIF
is reset, and the process proceeds to step #555.

ステップ#555以下ではそれぞれ後述するカウント割
込、タイマー割込、ENT’EVENT割込を禁止する
(#555〜#557)。次に焦点検出不能と判定した
原因が被写体の低輝度すぎること(ローライト)にある
か否かを、CODのフォトダイオードの近傍に設けられ
た受光素子の出力によって検出する。そして、焦点検出
不能の原因がこのローライトであれば、補助光発光装置
(13)がカメラに装填されているか否かを検出し、補
助光発光装置(13)が装填されているときには補助光
発光モードとし、補助光フラグ(補助光F)がセットさ
れているか否かを判定する(#560〜#570)。ス
テップ#570で補助光フラグ(補助光F)がセットさ
れているとき、すなわち、一度補幼児を発光したがやは
りローライトのために焦点検出不能であったときには、
焦点検出不能を示すローコン表示を行って焦点検出を停
止すべくマイコン(1)は割り込み待ちとなる(# 5
70、#585、#590)。逆にステップ#570で
補助光フラグがセットされていないときは、このフラグ
(補助光F)をセットし、更に積分時間の長いモードを
示す長端分フラグ(長端F)をセットして、第2図のス
テップ#55以下のフローCD I NTに進む。ステ
ップ#555においてローライトでないと判定した場合
あるいはステップ#565で補助光発光装置(13)が
装填されていないと判定した場合、ローコン表示を行う
(#595)。そしてレンズ繰り込みモードを示すフラ
グLBFを判定し、このフラグLBFがセットされてい
ないときにはレンズ繰り出しの制御を命令し、一方フラ
グLBFがセットされているときには、レンズ繰り込み
の制御の命令を行っ七レンズ駆動用モータを駆動する命
令を出力してから第2図のステップ#55以下の焦点検
出のフローCDINTに進んで焦点検出を行う(#60
0.#605.#610.#615)。
After step #555, count interrupts, timer interrupts, and ENT'EVENT interrupts, which will be described later, are prohibited (#555 to #557). Next, whether or not the cause of the determination that focus cannot be detected 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 COD. If the cause of focus detection failure is this low light, it is detected whether or not the auxiliary light emitting device (13) is installed in the camera, and if the auxiliary light emitting device (13) is installed, the auxiliary light emitting device (13) The light emission mode is set, and it is determined whether 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 the focus cannot be detected due to low light,
The microcomputer (1) waits for an interrupt to display a low contrast display indicating that focus detection is not possible and to stop focus detection (#5
70, #585, #590). Conversely, if the auxiliary light flag is not set in step #570, this flag (auxiliary light F) is set, and a long end flag (long end F) indicating a mode with a long integration time is set. The process proceeds to the flow CD I NT following step #55 in FIG. If it is determined in step #555 that the light is not low light, or if it is determined in step #565 that the auxiliary light emitting device (13) is not loaded, a low contrast display is performed (#595). Then, a flag LBF indicating the lens retraction mode is determined, and when this flag LBF is not set, a command is issued to control lens extension, whereas when the flag LBF is set, a command is issued to control lens retraction, and seven lenses are driven. After outputting a command to drive the motor, the process proceeds to the focus detection flow CDINT following step #55 in FIG. 2 and performs focus detection (#60
0. #605. #610. #615).

次に第10図〜第13図に示したレンズ駆動制御のフロ
ーの説明をする。まず、その前に実施例におけるレンズ
駆動用モーターの速度制御についての説明を行う。モー
ター速度の種類としては、ニアゾーン外(アウトゾーン
)での速度、ニアゾーン内での3つの速度、ステップ駆
動の5種類を有しており、追随モード、非追随モードで
の精度優先及びスピード優先の各モードにおいて、その
ときのデフォーカスパルス数に応じて、上記5種類のレ
ンズ速度制御が行なわれる。これらのことを表2に示し
説明すると、モーターの回転速度としては、20.00
Orpm(アウトゾーン)、5.00Orpmにニアゾ
ーン1)、2.50Orpmにニアゾーン2)、1.0
0Orpmにニアゾーン3)、ステップ駆動の5種類を
有している。そして、このうちステップ駆動に関しては
、精度優先の非追随モードのみに使用し、精度よく、レ
ンズ制御を行なうようにしている。ニアゾーンでのデフ
ォーカスパルス数に対するレンズの速度の違いは、合焦
までの速度を要するものほど速くしている。モータの速
度を速くずればするほどその止まり精度が悪くなる傾向
がある。これらの速度制御をカメラのシーケンスの中で
どのように行なわれるかを以下に説明する。
Next, the flow of lens drive control shown in FIGS. 10 to 13 will be explained. First, before that, speed control of the lens drive motor in the embodiment will be explained. There are five types of motor speed: 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 depending on the number of defocus pulses at that time. To explain these things as shown in Table 2, the rotational speed of the motor is 20.00
Orpm (out zone), near zone 1) at 5.00 Orpm, near zone 2) at 2.50 Orpm, 1.0
There are five types of drive: near zone 3) at 0 rpm, and step drive. Of these, the step drive is used only in the non-following mode, which prioritizes accuracy, to perform lens control with high precision. The difference in lens speed with respect to the number of defocus pulses in the near zone is such that the faster the speed required to reach focus, the faster the lens speed. The faster the motor speed is shifted, the less accurate the stopping accuracy tends to be. How these speed controls are performed in the camera sequence will be explained below.

まず第10図に示したTINNZのフローから説明する
。ステップ#630において、マイコン(りはレンズが
停止しているか否かを判定し、レンズが停止していない
ときにはレンズの駆動量を更新しないことを示すフラグ
(非更新F)がセットされているかを判定し、セットさ
れていればレンズの駆動量を更新しないでステップ#7
00に進む(# 630、#635)。ステップ#63
0でレンズが停止中であるときには、ステップ#680
に進みニアゾーンに入っているか否かを判定するニアゾ
ーン判定のサブルーチンに進む。このニアゾーンのサブ
ルーチンを第1!図に示し説明する。
First, the flow of TINNZ shown in FIG. 10 will be explained. In step #630, the microcomputer determines whether or not the lens is stopped, and determines whether a flag (non-update F) indicating that the lens drive amount is not updated when the lens is not stopped is set. If it is set, do not update the lens drive amount and proceed to step #7.
Proceed to 00 (#630, #635). Step #63
When the lens is stopped at 0, step #680
The process advances to a near zone determination subroutine that determines whether or not the vehicle is in the near zone. This near zone subroutine is number one! It is shown and explained in the figure.

第11図のステップ#2300において、マイコン(1
)は追随フラグ(追随F)がセットされているか否かを
判定し、セットされている場合にはニアゾーン範囲を示
すカウンターのカウント値NZCを63にセットし、逆
に非追随モード(追随フラグリセット時)である場合に
は、スピード優先モードであればニアゾーンカウンター
のカウント値NZCを100.精度優先モードであれば
ニアゾーンカウンターのカウント値NZCを120に夫
々セットしてステップ#2310に進む(#2300、
#2305.#2325〜#2335)。ステップ#2
310では、デフォーカスパルスIER[がセットした
ニアゾーンカウンターのカウント値NZC以下であるか
否かを判定し、ニアゾーンカウンターのカウント値NZ
C未満であればニアゾーンを示すフラグNZFをセット
し、ニアゾーンカウンターのカウント値NZC以上であ
れば、ニアゾーンフラグNZFをリセットしてリターン
する(#2310〜#2320)。
At step #2300 in FIG.
) determines whether or not the following flag (following F) is set, and if it is set, sets the count value NZC of the counter indicating the near zone range to 63, and conversely sets the non-following mode (following flag reset ), if the speed priority mode is selected, the count value NZC of the near zone counter is set to 100. In the accuracy priority mode, set the count value NZC of the near zone counter to 120 and proceed to step #2310 (#2300,
#2305. #2325-#2335). Step #2
In step 310, it is determined whether the defocus pulse IER[ is less than or equal to the set count value NZC of the near zone counter, and the count value NZ of the near zone counter is determined.
If it is less than C, a flag NZF indicating the near zone is set, and if it is equal to or greater than the count value NZC of the near zone counter, the near zone flag NZF is reset and the process returns (#2310 to #2320).

そして、第1O図のステップ#685にもどり、ニアゾ
ーンフラグNZFがセットされているか否かを判定し、
セットされていないときには、デフォーカスパルス数E
RRからニアゾーンカウンターのカウント値NZCをひ
いた値をイベントカウンターEVENTCNTに入力す
る(#685〜#690)。コノイベントカウンターE
 V E N T CNTは第1図のエンコーダ(11
)からパルスが送られてくる毎に1を減算し、カウンタ
ーの内容が0になったときにニアゾーン突入を示す割込
(INTEVENT)を実行するためのものである。
Then, the process returns to step #685 in FIG. 1O, and it is determined whether or not the near zone flag NZF is set.
When not set, the number of defocus pulses E
The value obtained by subtracting the count value NZC of the near zone counter from RR is input to the event counter EVENTCNT (#685 to #690). Kono event counter E
V E N T CNT is the encoder (11
) is subtracted by 1 each time a pulse is sent from the counter, and when the contents of the counter reach 0, an interrupt (INTEVENT) indicating entry into the near zone is executed.

イベントカウンターEVENTCNTへの人力を終える
とステップ#695のイベントカウンターセット(EV
ENTCNTセット)のサブルーチンに進み、このサブ
ルーチンを終了するとステップ#700に進む。このサ
ブルーチンを第10図右上に示し説明する。
After completing the manual input to the event counter EVENTCNT, the event counter set (EV
The process proceeds to a subroutine (ENTCNT set), and upon completion of this subroutine, the process proceeds to step #700. This subroutine is shown in the upper right corner of FIG. 10 and will be explained.

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

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

第1O図のステップ#665に示されるタイマーIセヅ
トのサブルーチンの詳細を第14図に示して説明すると
、ステップ#2400〜#2455では、モーターの速
度が表2に示されるごとくになるように上述したタイマ
ーがセットされ、ステップ#2460及び#2465で
カウント割込及びタイマー割込をそれぞれ許可してリタ
ーンする。ここで、a、= 61 、a3= 30 、
b、= 31 、bt−15+c1=79 、ct= 
31である。ステップ#2435においてステップ駆動
モードを示すフラグ5TEPFがセットされていれば、
ステップ#2470に進む。ステップ#2470では、
モーターの駆動か停止しているかを判定し、停止してい
ない場合、ステップ駆動を行なうべき駆動カウンターの
値でエンコーダパルスによるカウント割込が行なわれた
ことを示すステップ駆動フラグ5TPDRFがセットさ
れているかを判定し、このフラグ5TPDRFがセット
されているときには、このフラグ5TPDRFをリセッ
トし、タイマーにDIをセットする(#2470〜#2
485)。一方、モーターが停止中あるいはステップ駆
動フラグ5TPDRF’がセットされていない場合には
、このフラグS T P D RFをセットして、タイ
マーにD2をセットする(#2470.#2475.#
2490.2495)。このときの駆動時間の方が短<
DI<D2となっている。
The details of the timer I set subroutine shown in step #665 in FIG. 1O will be explained with reference to FIG. The timer is set, and in steps #2460 and #2465, count interrupt and timer interrupt are respectively permitted and the process returns. Here, a,= 61, a3= 30,
b, = 31, bt-15+c1=79, ct=
It is 31. If flag 5TEPF indicating step drive mode is set in step #2435,
Proceed to step #2470. In step #2470,
Determines whether the motor is running or stopped, and if not stopped, is the step drive flag 5TPDRF set, which indicates that a count interruption was performed by an encoder pulse at the value of the drive counter that should perform step drive? is determined, and if this flag 5TPDRF is set, this flag 5TPDRF is reset and DI is set in the timer (#2470 to #2
485). On the other hand, if the motor is stopped or the step drive flag 5TPDRF' is not set, this flag STPDRF is set and the timer is set to D2 (#2470.#2475.#
2490.2495). The driving time at this time is shorter.
DI<D2.

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

このニアゾーン3判定のサブルーチンの詳細を第15図
に示し説明すると、まず、追随フラグ(追随F)がセッ
トされているか否かを判定し、このフラグ(追随F)が
セットされているときは、駆動カウンターのカウント値
ENZCNTが15以下であればニアゾーン3内である
ことを示すフラグNZ3Fをセットしてリターンし、E
NZCNTが15を超えるときはフラグNZ31?をリ
セットしてリターンする(# 2500〜#2510.
#2535)。逆に、非追随モードでスピード優先モー
ドであるときは、駆動カウンターのカウント値ENZC
NTが30以下であればフラグNZ3Fをセットし、3
0を超えるときはリセットしてリターンする。更に、非
追随モードで精度優先モードであるときは、駆動カウン
ターのカウント値ENZCNTが31以下のときにフラ
グNZ3Fをセットし、3Iを超えるときはフラグNZ
3Fをリセットしてリターンする。
The details of this near zone 3 determination subroutine are shown in FIG. 15 and will be explained. First, it is determined whether or not the following flag (following F) is set, and when this flag (following F) is set, If the count value ENZCNT of the drive counter is 15 or less, set flag NZ3F indicating that it is within near zone 3 and return.
When NZCNT exceeds 15, flag NZ31? Reset and return (#2500 to #2510.
#2535). Conversely, when the speed priority mode is set in the non-following mode, the drive counter count value ENZC
If NT is 30 or less, flag NZ3F is set and 3
If it exceeds 0, reset and return. Furthermore, when the non-following mode is 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 3I, the flag NZ is set.
Reset 3F and return.

第10図にもどり、ステップ#715でニアゾーン3フ
ラグNZ3Fがセットされていないとき、すなわちニア
ゾーン3の領域に入っていないときはステップ#712
にもどり、ニアゾーン3の領域に入ってフラグNZ3F
がセットされたときには、移動積分フラグNIDFをリ
セットする(#720)。次に、追随フラグ(追随F)
がセットされているか否かを判定しセットされていると
きあるいは、追随フラグ(追随F)がセットされていな
くともスピード優先モードであるときは、ステップ#7
35に進む(#725.#727)。精度優先モードで
あれば、レンズが停止(駆動カウンターのカウント値E
NZCNTが0になるまで)するまでステップ#727
を繰り返す。これは、精度優先モードでのステップ駆動
は、一定速度でないために移動積分が正しく行えないか
らである。
Returning to FIG. 10, if the near zone 3 flag NZ3F is not set in step #715, that is, if the near zone 3 area is not entered, step #712 is executed.
Go back, enter the near zone 3 area and flag NZ3F
When is set, the movement integral flag NIDF is reset (#720). Next, follow flag (follow F)
Determine whether or not is set, and if it is set, or if the following flag (following F) is not set but the speed priority mode is set, step #7
Proceed to step 35 (#725.#727). In precision priority mode, the lens stops (drive counter count value E
Step #727 until NZCNT becomes 0)
repeat. This is because the step drive in the accuracy priority mode does not have a constant speed, so movement integration cannot be performed correctly.

上述の移動積分について第21図を参照して説明する。The above-mentioned moving integral will be explained with reference to FIG. 21.

第21図は、縦軸にモーターの回転速度、横軸に時間を
とったものである。上部にはモーターの状態に応じて移
動積分が可能かどうかを示しである。本実施例では、2
0 、00 Orpmからの減速時のニアゾーン3に入
るまでと、ステップ駆動時と、モーター停止から20 
、00Orpmへの加速時とに移動積分を禁止している
。これは、これらの期間中は加速減速が常には一定では
ないので移動中の積分中心がはっきりせず、焦点検出の
エラーが多いと考えられるからである。一方、ニアゾー
ン内あるいはニアゾーンへの加速時は、もともとモータ
ーの速度が遅いことと加速中の時間が短いこととのため
に焦点検出のエラーはエンコーダのパルス数にして数パ
ルス程度であるので、移動積分を行っても実用上さしつ
かえない。そこで本実施例では、このようにして、でき
るだけ移動積分を可能として焦点調節に要する時間を短
くしている。
In FIG. 21, the vertical axis represents the rotational speed of the motor, and the horizontal axis represents time. The upper part shows whether moving integration is possible depending on the state of the motor. In this example, 2
Until entering near zone 3 during deceleration from 0,00 Orpm, during step drive, and from motor stop to 20
, movement integration is prohibited during acceleration to 00 rpm. This is because acceleration and deceleration are not always constant during these periods, so the center of integration during movement is not clear, and it is thought that there are many errors in focus detection. On the other hand, when accelerating into or toward the near zone, the focus detection error is only a few encoder pulses because the motor speed is originally slow and the acceleration time is short. Even if we perform integration, it is of no practical use. Therefore, in this embodiment, the time required for focus adjustment is shortened by enabling movement integration as much as possible.

次に、第1θ図にもどり、右下に示したイベントカウン
タ割込INTEVENTを説明する。イベントカウンタ
(EVENCNT)はエンコーダ(ll)からパルスが
くる毎にカウント値から1をひくようになっており、こ
のイベントカウンタのカウント値が0になればこの割込
INTEVENTのフローに入る。このフローでは、ま
ずステップ#2550でINTEVENT割込を禁止し
て、レリーズ中であることをフラグRESFで判定し、
このフラグREsFが設定されていれば駆動カウンタE
VENCNTのカウント値に40を入れ、後述するタイ
マRセットのサブルーチンに進み、モーターの回転速度
の制御を行う(#2550.#2555、#2570.
#2575)。ステップ#2555でフラグRESFが
セットされておらずにレリーズ中でなければ駆動カウン
ターENZCNTのカウント値にニアゾーンカウンター
NZCのカウント値を入れ、後述するタイマ■セットの
サブルーチンに進み、このサブルーチンの終了後、ニア
ゾーンフラグNZFをセットしてステップガフ10以下
のWNZ3のフローに進む(#2560〜#2567)
Next, returning to FIG. 1θ, the event counter interrupt INTEVENT shown in the lower right corner will be explained. The event counter (EVENCNT) subtracts 1 from the count value every time a pulse is received from the encoder (ll), and when the count value of this event counter reaches 0, the interrupt INTEVENT flow is entered. In this flow, first, in step #2550, the INTEVENT interrupt is prohibited, and flag RESF determines that the release is in progress.
If this flag REsF is set, the drive counter E
Input 40 to the count value of VENCNT, proceed to the timer R set subroutine described later, and control the rotational speed of the motor (#2550. #2555, #2570.
#2575). If the flag RESF is not set and the release is not in progress at step #2555, the count value of the near zone counter NZC is entered into the count value of the drive counter ENZCNT, and the process proceeds to the subroutine for setting the timer, which will be described later. , set the near zone flag NZF and proceed to the flow of WNZ3 with step gaff 10 or less (#2560 to #2567)
.

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

ステップ#815でフラグ5TEPFがセットされてい
ないときはステップ#820へ進み、精度優先モードで
ないとき、あるいは精度優先モードであっても駆動カウ
ンターENZCNTのカウント値が6を越えるときは、
ステップ駆動をしないものとして、ステップ#840に
進む。ここでは本カウンタ割込の前にタイマ割込が入っ
たことを示すフラグTIPASFがセットされているか
否か゛を判定し、セットされているときには、これをリ
セットしてリターンする。このフラグTIPASFがセ
ットされていないときには、モーターの通電を切る(#
845)。一方、ステップ#820で精度優先モードで
ありかつ駆動カウンターENZCNTのカウント値が6
以下のときには、ステップ#825からステップ#83
0に進み、ステップモードを示すフラグ5TEPFをセ
ットし、更にステップ駆動フラグ5TPDRFをセット
してから、ステップ#845でモーターの通電を切る(
#830.#835.#845)。次にレリーズされた
ことを示すフラグRESFがセットされているか否かを
判定し、セットされているときはタイマRセットのサブ
ルーチンに進み、セットされていないときにはタイマ1
セツトのサブルーチンに進んで、サブルーチンの終了後
リターンする(#850〜#860)。タイマRセット
に関してはレリーズ時の説明のときに行う。
If the flag 5TEPF is not set in step #815, the process advances to step #820, and if the accuracy priority mode is not set, or if the count value of the drive counter ENZCNT exceeds 6 even in the accuracy priority mode,
Assuming that step drive is not performed, the process proceeds to step #840. Here, it is determined whether or not a flag TIPASF indicating that a timer interrupt has occurred before the main counter interrupt is set, and if it is set, it is reset and the process returns. If this flag TIPASF is not set, the motor is de-energized (#
845). On the other hand, in step #820, the accuracy priority mode is selected and the count value of the drive counter ENZCNT is 6.
In the following cases, step #825 to step #83
0, sets the flag 5TEPF indicating the step mode, further sets the step drive flag 5TPDRF, and then turns off the motor in step #845 (
#830. #835. #845). Next, it is determined whether or not the flag RESF indicating that the release has been set is set, and if it is set, the process proceeds to the timer R set subroutine, and if it is not set, timer 1 is set.
The program proceeds to the set subroutine, and returns after the subroutine ends (#850 to #860). Regarding the timer R setting, it will be explained at the time of release.

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

このDRVEDのフローでは、まず、ワンショットモー
ドにおいて駆動カウンターENZCNTのカウント値が
0になったときのフローを一度通過したことを示すフラ
グI 5TDFがセットされているか否かを判定し、セ
ットされている場合には第2のステップ#55以下の焦
点検出のフローCDINTに進む(#895)。ステッ
プ#895でこのフラグI 5TDFがセットされてい
ないときには、ステップ#900に進んでスイッチ(S
4)の状態からコンティニュアスモードかワンショット
モードかを判定し、ワンショットモードであれば合焦フ
ラグをセットし、更にこのフa−を一度通過したことを
示すフラグI 5TDFをセットして焦点検出のフロー
CD INTに進む(#900゜#910.#915)
。ステップ#900でコンティニュアスモードである場
合には追随フラグがセットされているか否かを判定して
、セットされていればリターンしてそのときのデータを
利用して引き続き焦点検出を行うことによって追随性を
上げセットされていないときには第6図のステップ#2
60以下のINFZのフローに進んで合焦表示等の制御
を行なう(#905)。
In this DRVED flow, first, it is determined whether or not the flag I5TDF is set, which indicates that the flow when the count value of the drive counter ENZCNT becomes 0 in the one-shot mode is set. If so, the process advances to the focus detection flow CDINT starting from the second step #55 (#895). If this flag I5TDF is not set in step #895, the process advances to step #900 and the switch (S
Determine whether it is continuous mode or one-shot mode from the state of 4), and if it is one-shot mode, set the focus flag, and further set the flag I5TDF indicating that this phase has been passed once. Proceed to focus detection flow CD INT (#900° #910. #915)
. If the continuous mode is selected in step #900, it is determined whether or not the tracking flag is set, and if it is set, the process returns and continues focus detection using the data at that time. Increase tracking ability and if not set, step #2 in Figure 6
Proceeding to the flow of INFZ below 60, control such as focus display is performed (#905).

第13図にタイマ割込のフローを示す。このタイマ割込
はタイマ1セツトのルーチンで設定された時間内にエン
コーダからのパルスが送られてこないときに実行される
ものである。第13図において、マイコン(1)は、ス
テップ#950でフラグRESFを判定し、このタイマ
割込がレリーズ中に行なわれたか否かを判定し、レリー
ズ中でなければ後述のタイマ1セツトのサブルーチンに
進み、レリーズ中であれば後述のタイマRセットのサブ
ルーチンに進む(# 950〜#960)。次にフラグ
5TEPFを判定して、ステップモードであるか否かを
判定し、ステップモードでなければタイマ割込を行なっ
た事を示すフラグT I PASFをセットし、モータ
ーに通電してリターンする(# 965〜#975)。
FIG. 13 shows the flow of timer interrupt. 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, determines whether or not this timer interrupt was performed during the release, and if the timer interrupt is not performed during the release, the microcomputer (1) executes the timer 1 set subroutine described later. If the release is in progress, the process proceeds to a subroutine for setting timer R, which will be described later (#950 to #960). Next, flag 5TEPF is determined to determine whether or not the mode is step mode, and if it is not step mode, the flag T I PASF indicating that a timer interrupt has been performed is set, the motor is energized, and the process returns ( #965~#975).

ステップモードであるときは、ステップ駆動を行なうこ
とを示すフラグ5TPDRFがセットされているか否か
を判定し、セットされている場合は、モーターに通電し
、セットされていないときにはモーターの通電を切って
リターンする(#975.#980.#985)。
When in the step mode, it is determined whether the flag 5TPDRF indicating step drive is set, and if it is set, the motor is energized, and if it is not set, the motor is energized. Return (#975.#980.#985).

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

ステップ#1000でフィルムの巻上が完了していない
ときにはレリーズスイッチ(S2)がONされているか
否かを判定し、ONされているときには、ステップ#1
000にもどり、巻上完了を待ち、スイッチ(S2)が
OFFのときには、第2図のステップ#55以下のCD
INTのフローに進む。
If film winding is not completed in step #1000, it is determined whether the release switch (S2) is turned on, and if it is turned on, step #1
000, wait for the winding to be completed, and when the switch (S2) is OFF, the CD from step #55 in Figure 2 and below.
Proceed to INT flow.

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

次に第16図(a)において、ステップ#1025でA
F優先モードであるとき、ステップ#1109に進みレ
リーズ許可およびレリーズ中の追随補正禁止を示すフラ
グ(MVF’)がセットされているか否かを判定する。
Next, in FIG. 16(a), in step #1025, A
When the F priority mode is selected, the process proceeds to step #1109, and it is determined whether a flag (MVF') indicating permission for release and prohibition of follow-up correction during release is set.

セットされているときにはステップ#1110で前回の
撮影が焦点検出不能あるいは大デフォーカス量で行なわ
れたことを示すフラグ(REEF)がセットされている
か否かを判定する。
If it is set, it is determined in step #1110 whether a flag (REEF) indicating that the previous photographing was performed with an undetectable focus or with a large amount of defocus has been set.

このフラグ(REIF)がセットされていないときには
前回が合焦でレリーズ動作(撮影)に入ったとしてフラ
グ(RE I F)をステップ#1112でセットして
今回のレリーズを行うべくステップ#1190に進む。
If this flag (REIF) is not set, the flag (REIF) is set in step #1112 assuming that the previous release was in focus and the release operation (shooting) started, and the process proceeds to step #1190 to perform the current release. .

上記フラグ(RE I F)がセットされているときに
は、上述した理由によりレリーズを禁止すべくステップ
#1170に進む。
If the flag (REIF) is set, the process proceeds to step #1170 to prohibit release for the reason described above.

ステップ#1109においてレリーズ許可を示すフラグ
MvFがセットされていないときには、ステップ#11
12に進み、焦点検出終了を示すフラグ(AFEF)が
セットされているか否かを判定し、セットされていると
きには、ステップ#1113に進み、焦点検出不能ある
いは大デフォーカス時の撮影であることを示すフラグ(
REIF)をリセットしてステップ#I 115に進む
。−力点点検出終了を示すフラグ(AFEF)がセット
されていないときにはレリーズを禁止すべくステップ#
1170に進む。
If the flag MvF indicating release permission is not set in step #1109, step #11
The process proceeds to step #1112, and it is determined whether or not the flag (AFEF) indicating the end of focus detection is set. If it is set, the process proceeds to step #1113, in which it is determined that focus detection is not possible or that the photographing is being performed at a large defocus. The flag that indicates (
REIF) and proceed to step #I 115. - Step # to prohibit release when the flag (AFEF) indicating completion of focus point detection is not set.
Proceed to 1170.

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

第17図の演算Iのサブルーチンでは、1周期の焦点検
出時間における被写体の動き、すなわち、単位焦点検出
時間における被写体の光軸方向への移動傾き(デフォー
カス量換算)を求め、レリーズタイムラグ中に動く被写
体の移動量(デフォーカス量換算)を求める。すなわち
ステップ#2600でレリーズタイムラグ時間R9Tを
単位焦点検出時間TIで割って比Rを求め、単位時間に
おける被写体移動fiWRにこの比Rをかけてレリーズ
タイムラグ中の移動量WSを求める。これを駆動カウン
ターENZCNTのカウント値に加えて新たな駆動カウ
ンターENZCNTのカウント値を求めてリターンする
(# 2600〜#2610)。
In the subroutine of calculation I in Fig. 17, the movement of the subject in one cycle of focus detection time, that is, the tilt of movement of the subject in the optical axis direction (converted to defocus amount) in a unit focus detection time, is calculated, and during the release time lag, the movement of the subject in the optical axis direction is calculated. Find the amount of movement (converted to defocus amount) of a moving subject. That is, in step #2600, the ratio R is obtained by dividing the release time lag time R9T by the unit focus detection time TI, and the movement amount WS during the release time lag is obtained by multiplying the ratio R by the subject movement fiWR in the unit time. 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で追随モー
ドでないときには、演算■のサブルーチンをスキップし
、ステップ#1036に進む。そして、駆動カウンター
ENZCNTのカウント値が3以下か否かを判定し、3
以下であれば合焦と判定してモーターを停止してステッ
プ#l I 90に進み、3を越える場合にはステップ
#1140に進む(#1136.#1137)。以下に
説明するステップ#1140以下のフローはレリーズが
許可されたときに、レリーズタイムラグ中にレンズを駆
動しようと言うものである。ステップ#1O40では、
駆動カウンターENZCNTのカウント値が13以下で
あるかを判定し、13以下であれば、モーターのスピー
ドをl OOOrpmとするフラグelFをセットして
後述のタイマRセットのサブルーチンに進む(#108
0.#l090)。
Returning to FIG. 16(a), if the tracking mode is not determined in step #1030, the subroutine of calculation (2) is skipped and the process proceeds to step #1036. Then, it is determined whether the count value of the drive counter ENZCNT is 3 or less, and 3
If it is less than 3, it is determined that the focus is in focus, the motor is stopped, and the process proceeds to step #lI90; if it exceeds 3, the process proceeds to step #1140 (#1136.#1137). The flow from step #1140 described below is to drive the lens during the release time lag when release is permitted. In step #1O40,
It is determined whether the count value of the drive counter ENZCNT is 13 or less, and if it is 13 or less, a flag eIF is set to set the motor speed to lOOOrpm, and the process proceeds to the subroutine for setting timer R (#108).
0. #l090).

駆動カウンターENZCNTのカウント値が13より太
きく40以下では、タイマRセットのサブルーチンに進
む(#1045.#1090)。更に駆動カウンターE
NZCNTのカウント値が40より大きく66以下であ
ればモーターのスピードを500 Orpmとするフラ
グe2F’をセットしてタイマRセットのサブルーチン
に進む(#1050゜#l085.#l090)。
When the count value of the drive counter ENZCNT is greater than 13 and less than 40, the process proceeds to the timer R setting subroutine (#1045.#1090). Furthermore, drive counter E
If the count value of NZCNT is greater than 40 and less than 66, flag e2F' is set to set the motor speed to 500 Orpm, and the process proceeds to the subroutine for setting timer R (#1050° #l085. #l090).

ここで第19図に示したタイマRセットのサブルーチン
を説明する。これはタイマ1セツトのサブルーチンと同
じく、モーターの速度を設定するためのタイマを設定す
るルーチンである。まずステップ#2780でAP優先
モードであるか否かを判定し、AF優先モードの場合に
はステップ#2785に進む。これに関しては後述する
。一方、レリーズ優先モードであるときには、フラグe
IFがセットされているか否かを判定し、セットされて
いる場合にはステップ#2760に進んでタイマIをA
3にセット(1000rpm相当)し、タイマ割込及び
カウント割込を許可してリターンする(#2765,2
770)。ステップ#2705でI 000 rpm設
定用のフラグelFがセットされていないときには、ス
テップ#2710で500Orpm設定用のフラグe2
Fがセットされているか否かを判定し、セットされてい
るときには、ステップ#2800に進んでモーターを停
止したときに行きすぎる亀α1を補正する為のフラグF
e2Fがセットされているかを判定し、このフラグFe
2Fがセットされているときにはステップ#2830で
タイマlにAIをセット(5000rpm相当)し、ス
テップ#2765に進む。ステップ#2800でフラグ
Fe2Fがセットされていないときには、ステップ#2
805でこのフラグFe2Fをセットし、ステップ#2
810で駆動カウンター E N Z CN ’rのカ
ウント値にこの行きすぎ量α1を加えて新たに駆動カウ
ンターENZCNTのカウント値とし、ステップ#28
30に進んでタイマ1をAIにセットする。この行きす
ぎ量について説明すると、l OOOrpmからモータ
ーを停止させれば行きすぎ量は無視できる程度に小さい
が、5000 rpmからモーターを停止させれば大き
く行きすぎてしまう。そして、この量はモータの回転速
度にほぼ固有であり、各レンズに対してのばらつきは小
さいので、駆動カウンタENZCNTのカウント値に一
部値αlを加えておけばレンズが合焦位置に到達する手
前でモーターが停止しはじめ、合焦位置にレンズが到達
したときにモーターを正しく止めることができる。
The timer R set subroutine shown in FIG. 19 will now be explained. This is a routine that sets a timer for setting the motor speed, similar to the timer 1 set subroutine. First, in step #2780, it is determined whether or not the AP priority mode is set, and in the case of the AF priority mode, the process proceeds to step #2785. This will be discussed later. On the other hand, when the release priority mode is selected, the flag e
Determine whether or not IF is set, and if it is set, proceed to step #2760 and set timer I to A.
3 (equivalent to 1000 rpm), enable timer interrupts and count interrupts, and return (#2765, 2
770). If the flag eIF for setting I000 rpm is not set in step #2705, the flag e2 for setting 500 rpm is set in step #2710.
Determine whether or not F is set, and if it is set, proceed to step #2800 and set the flag F to correct the torque α1 that goes too far when the motor is stopped.
Determine whether e2F is set and set this flag Fe.
If 2F is set, AI is set in timer 1 (equivalent to 5000 rpm) in step #2830, and the process proceeds to step #2765. If flag Fe2F is not set in step #2800, step #2
This flag Fe2F is set in 805, and step #2
At 810, this excess amount α1 is added to the count value of the drive counter ENZCNT'r to create a new count value of the drive counter ENZCNT, and step #28
Proceed to step 30 and set timer 1 to AI. To explain the amount of overshoot, if the motor is stopped from lOOOrpm, the amount of overshoot is small enough to be ignored, but if the motor is stopped from 5000 rpm, the amount of overshoot will be large. This amount is almost unique to the rotational speed of the motor, and the variation for each lens is small, so if you add a partial value αl to the count value of the drive counter ENZCNT, the lens will reach the in-focus position. The motor starts to stop in front of you, allowing you to stop the motor correctly when the lens reaches the in-focus position.

ステップ#2705.#2710でフラグelF。Step #2705. Flag eIF in #2710.

e2Fが共にセットされていないときには、ステップ#
2745で駆動カウンターENZCNTのカウント値り
月00を超えるか否かを判定し、超えるときには、駆動
カウンターENZCNTのカウント値から40をひいて
、イベントカウンターのカウント値EVENTCNTに
入れ、第1θ図のイベントカウンタセット(EVENT
CNTセット)のサブルーチンに進み、リターンする(
#2730、#2735)。
If e2F are not set together, step #
At step 2745, it is determined whether or not the count value of the drive counter ENZCNT exceeds 00. If it exceeds the count value of the drive counter ENZCNT, 40 is subtracted from the count value of the drive counter ENZCNT and entered into the count value EVENTCNT of the event counter. Set (EVENT
Proceed to the subroutine of CNT set) and return (
#2730, #2735).

ステップ#2745で駆動カウンターENZCNTのカ
ウント値が100以下のときはステップ#2750に進
み、ここで、駆動カウンターENZCNTのカウント値
が14より大きいか否かを判定し、14より大きいとき
にはステップ#2830でタイマー1をA I(500
0rpm相当)にセットしてステップ#2765に進む
。更にステップ#2750で駆動カウンターENZCN
Tのカウント値が14以下であればステップ#2755
に進んで駆動カウンターENZCNTのカウント値が4
を越えるか否かを判定する。そして、駆動カウンターE
NZCNTのカウント値が14以下で4より大のときに
はステップ#2850でタイマlをA2(2500rp
m相当)にし、4以下のときにはステップ82760で
タイマlをA3(+000rpm相当)にセットして、
更にステップ#2765、#2770でタイマ割込及び
カウント割込を許可してリターンする。
If the count value of the drive counter ENZCNT is 100 or less in step #2745, the process proceeds to step #2750, where it is determined whether the count value of the drive counter ENZCNT is greater than 14. If it is greater than 14, the process proceeds to step #2830. Set timer 1 to AI (500
0 rpm) and proceed to step #2765. Furthermore, in step #2750, the drive counter ENZCN
If the count value of T is 14 or less, step #2755
The count value of the drive counter ENZCNT is 4.
Determine whether or not it exceeds. And drive counter E
If the count value of NZCNT is 14 or less but greater than 4, timer l is set to A2 (2500 rpm) in step #2850.
If it is 4 or less, set timer l to A3 (equivalent to +000 rpm) in step 82760.
Furthermore, in steps #2765 and #2770, timer interrupts and count interrupts are enabled, and the process returns.

第16図(a)にもどり、ステップ#1050において
駆動カウンターENZCNTのカウント値h(66を超
えるときには、5000 rpm以下では駆動カウンタ
ーENZCNTのカウント値を0(合焦)にすることが
できないので、所定時間(本実施例ではAF優先モード
でないとき50 m5ec)だけレリーズタイムラグを
増してこの間もモーターを駆動するようにしている。と
ころが、連続撮影モードを示す連写モードでは、できる
だけ早く撮影を行ないたいのでタイムラグの増加分とな
る所定の時間を設けてまでレンズの駆動は行なわない。
Returning to FIG. 16(a), in step #1050, when the count value h of the drive counter ENZCNT exceeds 66, the count value of the drive counter ENZCNT cannot be set to 0 (in focus) below 5000 rpm, so The release time lag is increased by an amount of time (in this example, 50 m5ec when not in AF priority mode), and the motor is driven during this time.However, in continuous shooting mode, which indicates continuous shooting mode, it is necessary to shoot as quickly as possible. The lens is not driven until a predetermined time corresponding to the increase in time lag is provided.

そこで、ステップ#1055ではスイッチ(S8)の状
態を検出して連写モードであるか否かを判定し、連写モ
ードである場合にはステップ#1095に進む。一方、
速写モードでないときはステップ#l055からステッ
プ#1060に進み、追随モードであるか否かを判定し
、追随モードであるときには、ステップ#1065で設
定した所定時間内に被写体の動く量を演算すべく演算■
のサブルーチンを実行してからステップ#l 070に
進む。一方、ステップ#l060で追随モードでないと
きは、被写体が止まっていると判定し、ステップ#10
65をステップして、ステップ#1070に進み、駆動
カウンターENZCNTのカウント値に応じて上述のタ
イマRセットのサブルーチンでタイマをセットして、5
0m5ec待って、この間レンズを動かす。(# l 
060〜#1075)。
Therefore, in step #1055, the state of the switch (S8) is detected to determine whether the mode is continuous shooting mode or not, and if it is the continuous shooting mode, the process advances to step #1095. on the other hand,
If it is not the quick shooting mode, the process proceeds from step #1055 to step #1060, where it is determined whether or not the tracking mode is in effect. If the tracking mode is in the tracking mode, the amount of movement of the subject is calculated within the predetermined time set in step #1065. Arithmetic ■
After executing the subroutine, the process proceeds to step #l070. On the other hand, if the tracking mode is not selected in step #1060, it is determined that the subject is stationary, and step #10
65, and proceeds to step #1070, where the timer is set in the above-mentioned timer R setting subroutine according to the count value of the drive counter ENZCNT, and the timer is set in step #1070.
Wait 0m5ec and move the lens during this time. (# l
060~#1075).

次に、上記ステップ#1065の演算■のサブルーチン
を第18図に示し説明する。このサブルーチンでは、ま
ず、ステップ#2650でAF’優先モードか否かを判
定して、AP優先モードであれば時間TOを100m5
ec、レリーズ優先モードであれば時間TCを50m5
ecとし、ステップ#2665でこの時間TCを単位焦
点検出時間TIで割ってその比Rを求め、ステップ#2
670で単位焦点検出時間内に動く被写体のデフォーカ
ス量(カウントWR)にこの比Rをかけて露光までの追
随遅れデフォーカス量WSを求め、ステップ#2675
で駆動カウンターENZCNTのカウント値にWSを加
えて新たに駆動カウンターENZCNTのカウント値を
求めてリターンする。ステップ#1055.#1075
.#1090から進んだステップ#1095では、モー
ターの速度がロースピード(5000rpm以下)であ
るか否かを判定し、ロースピードでない(即ち20 、
000 rpII+)のときは、モーターストップの信
号を出力してもモーターはすぐに止まれないので、モー
ターブレーキの信号を出力する(#1095.#l 1
00)。
Next, the subroutine of operation (2) in step #1065 is shown in FIG. 18 and will be explained. In this subroutine, first, in step #2650, it is determined whether or not the AF' priority mode is set, and if it is the AP priority mode, the time TO is set to 100m5.
ec, if in release priority mode, set time TC to 50m5
ec, in step #2665 this time TC is divided by the unit focus detection time TI to find the ratio R, and in step #2
In step 670, the defocus amount (count WR) of the object moving within the unit focus detection time is multiplied by this ratio R to obtain the follow-up delay defocus amount WS until exposure, and step #2675
Then, WS 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. Step #1055. #1075
.. In step #1095, proceeding from #1090, it is determined whether the motor speed is low speed (5000 rpm or less), and it is determined whether the motor speed is not low speed (i.e. 20 rpm or less).
000 rpII+), the motor does not stop immediately even if the motor stop signal is output, so a motor brake signal is output (#1095.#l 1
00).

そして、ステップ#1103及び#l107でカウント
割込及びタイマ割込をそれぞれ禁止して、ステップ#1
I90に進む。ステップ#1095でロースピードであ
るときは直接ステップ#1190に進む。ステップ#1
025においてAP優先モードであるときには、焦点検
出終了を示すフラグAFEFが設定されているか否かを
判定し、セットされていなければレリーズフラグRES
Fをリセットして、リターンする(#1110.#11
70)。
Then, in steps #1103 and #1107, count interrupts and timer interrupts are respectively prohibited, and step #1
Proceed to I90. If the speed is low in step #1095, the process directly advances to step #1190. Step #1
025, when the AP priority mode is selected, it is determined whether the flag AFEF indicating the end of focus detection is set, and if it is not set, the release flag RES is set.
Reset F and return (#1110.#11
70).

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

ステップ#1110でフラグAFEFがセットされてい
る場合には、ステップ#1115で追随モードであるか
否かを判定して追随モードでないときはステップ#11
90に進む。追随モードであるときには、ステップ#1
120の演算Iのサブルーチン(第17図図示)でレリ
ーズタイムラグ中に動く被写体の距離を演算して、その
駆動カウンターENZCNTのカウント値が13以下で
あれば、モーターを100 Orpmで制御するための
フラグflFをセットして、モーターの速度制御の為の
タイマをセットするタイマRセットのサブルーチンに進
み、ステップ#1I90に進む(#1120、#112
5.#1175.#I 185)。
If the flag AFEF is set in step #1110, it is determined in step #1115 whether or not it is in the tracking mode, and if it is not in the tracking mode, it is determined in step #1115.
Proceed to 90. When in follow mode, step #1
120 Calculation I subroutine (shown in Figure 17) calculates the distance of the subject moving during the release time lag, and if the count value of the drive counter ENZCNT is 13 or less, a flag is set to control the motor at 100 Orpm. After setting flF, the program proceeds to the timer R set subroutine to set a timer for motor speed control, and then proceeds to step #1I90 (#1120, #112
5. #1175. #I 185).

ステップ#11・25で駆動カウンターENZCNTの
カウント値が21以下のときは、ステップ#1185の
タイマRセットのサブルーチンからステップ#l 19
0に進む。更にステップ#I!40で駆動カウンターE
NZCNTのカウント値が21を超えるときは、ステッ
プ#l 145で連写モードであるか否かを判定し、連
写モードであればレリーズ優先モードの場合でも説明し
たように、すぐに撮影を行なうべきだとして、ステップ
#1190に進む。ステップ#I 145で連写モード
でないときは、API(先モードなので、必ずレンズを
合焦位置にもっていくため、所定の時間(100m5e
c)レンズを動かす制御を行なう。すなわちレリーズの
タイムラグ(50m5ec)と合わせて150m5ec
をかけてレンズを合焦位置までもっていくわけである。
If the count value of the drive counter ENZCNT is 21 or less in steps #11 and 25, the process proceeds from the subroutine for setting timer R in step #1185 to step #119.
Go to 0. Further step #I! Drive counter E at 40
When the count value of NZCNT exceeds 21, it is determined in step #l 145 whether or not the mode is continuous shooting mode, and if it is continuous shooting mode, shooting is performed immediately as explained even in the case of release priority mode. If so, proceed to step #1190. If it is not the continuous shooting mode in step #I 145, the API (first mode) will take a predetermined time (100m5e) to bring the lens to the focusing position.
c) Perform control to move the lens. In other words, including the release time lag (50m5ec), it is 150m5ec.
The lens is brought to the in-focus position by applying the

ここで、今は追随モードであるので、この100m5e
cの間に被写体が動くデフォーカスの量を求めるべく、
ステップ#1150で演算■のサブルーチンに進み、必
要な駆動カウンターENZCNTのカウント値を求める
。そして、この値に基づいてモーターの速度を制御すべ
くタイマRセットのサブル−チンζこ進んで100m5
ec待つ(# 1150〜#1165)。
Here, we are currently in follow mode, so this 100m5e
In order to find the amount of defocus that the subject moves during c,
In step #1150, the process proceeds to the calculation subroutine (2) to obtain the necessary count value of the drive counter ENZCNT. Then, in order to control the speed of the motor based on this value, the timer R set subroutine ζ is advanced for 100 m5.
Wait for ec (#1150 to #1165).

ここで、上記タイマRセットのAP優先モードの場合の
説明を第19図を参照して説明する。AF優先モードの
場合にはステップ#2780からステップ#2785に
進み、11000rp駆動を示すフラグrlF’がセッ
トされているときには、ステップ#2760に進んでタ
イマlにA3(1000rptt+相当)をセットする
。ステップ#2785でフラグrlFがセットされてい
ないときには、ステップ#2790で駆動カウンターE
NZCNTのカウント値が28以下であるかを判定し、
28以下でなければ、5000 rpmにあたる時間A
1をタイマ1にセットする。同様に駆動カウンターEN
ZCNTのカウント値が8以下であれば、ステップ#2
795からステップ#2760に進んでタイマlをA3
にしてモーターを1100Orpに制御し、8より大き
く28以下のときにはステップ#2795からステップ
#2850に進んでタイマlをA2にして、モーターを
250Orpmに制御する。
Here, the case where the timer R is set in the AP priority mode will be explained with reference to FIG. 19. In the case of AF priority mode, the process proceeds from step #2780 to step #2785, and when the flag rlF' indicating 11000 rp drive is set, the process proceeds to step #2760, where timer 1 is set to A3 (equivalent to 1000 rptt+). If the flag rlF is not set at step #2785, the drive counter E is set at step #2790.
Determine whether the count value of NZCNT is 28 or less,
If it is not less than 28, the time A corresponding to 5000 rpm
Set 1 to timer 1. Similarly, drive counter EN
If the count value of ZCNT is 8 or less, step #2
Proceed to step #2760 from 795 and set timer l to A3.
If the value is greater than 8 and less than or equal to 28, the process proceeds from step #2795 to step #2850, where the timer 1 is set to A2 and the motor is controlled to 250 Orpm.

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

又、AP優先モードでは20 、00 Orpmを採用
゛しないで常に回転数をモニターするコントロール方式
とし、合焦精度よくしている。
In addition, in AP priority mode, the control system constantly monitors the rotation speed without using 20,000 rpm, which improves focusing accuracy.

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

第16図(a)にもどり、ステップ#1190では、補
助光発光装置(13)を0FFI、て、そして表示をO
FFする(#1190.#1195)。次に露出制御回
路へミラーアップ開始信号及び絞り制御信号を出力して
、ミラーアップ及び所定の値Avに絞り制御を行なわせ
、ミラーアップが完了するのを待つ(# 1200〜#
1210)。この間約50m5ecであるミラーアップ
が完了すればモーター停止信号を出力して、このモータ
ーの停止するのを10m5ec待ち、割込を禁止して、
露光開始の信号を出力して、1幕の走行を開始させる。
Returning to FIG. 16(a), in step #1190, the auxiliary light emitting device (13) is set to 0FFI, and the display is set to 0FFI.
FF (#1190.#1195). Next, a mirror-up start signal and an aperture control signal are output to the exposure control circuit to perform mirror-up and aperture control to a predetermined value Av, and wait for the mirror-up to be completed (#1200 to #
1210). When the mirror up, which takes about 50m5ec, is completed, a motor stop signal is output, the motor waits for 10m5ec, and interrupts are prohibited.
An exposure start signal is output to start the first act.

(#12!5〜l 230)。そして露光時間Tvを計
測して所定のTvになれば露光終了信号を出力して2幕
が閉じるのを待つ(#星235〜#I240)。
(#12!5~l 230). Then, the exposure time Tv is measured, and when it reaches a predetermined Tv, an exposure end signal is output and waits for the second act to close (#235 to #I240).

次に第6図(b)に進んで、マイコン(1)は、ステッ
プ#1243でl駒巻上開始信号を出力してフィルムの
1駒巻上を行なわせる。
Next, proceeding to FIG. 6(b), the microcomputer (1) outputs a 1-frame winding start signal in step #1243 to cause the film to be wound by 1 frame.

ステップ#1245において連写モードでないと判定さ
れるとタイマの割り込みを禁止すべく端子(op3)を
「L」レベルとじ速写フラグをリセットしてステップ#
1275に進む。一方連写モードであると判定されると
タイマの割り込みを行うべく端子(op3)をrHJレ
ベルとし、速写フラグをセットしてステップ#1250
に進む。
If it is determined in step #1245 that the continuous shooting mode is not set, the terminal (OP3) is set to "L" level to disable timer interrupts, the quick shooting flag is reset, and step #
Proceed to 1275. On the other hand, if it is determined that the mode is continuous shooting mode, the terminal (OP3) is set to rHJ level to interrupt the timer, the quick shooting flag is set, and step #1250 is reached.
Proceed to.

そしてステップ#I245で連写モードであるか否かを
判定して連写モードでないとき端子(OF2)をrLJ
にして連写をしないようにしてステップ#I275に進
む。一方、暴写モードであるときにはステップ#124
7で端子(OF2)を「■(」レベルにして第1図のタ
イマ回路(I5)にタイマ開始信号を出力する。次に合
焦フラグかセットされていないとき或いは合焦ゾーンに
入っていないときに、駆動カウンタENZCNTのカウ
ント値の残り分だけを駆動すべく、カウンタ割込及びタ
イマ割込を許可してモーターを駆動してステップ#I2
75に進む(#1250.#1255.#1265、#
1270)。この間にAPが完了して合焦になった場合
は第12図のステップ#885からステップ#I275
へ再びらどって来てステップ#1275をループする。
Then, in step #I245, it is determined whether or not the continuous shooting mode is selected, and if it is not the continuous shooting mode, the terminal (OF2) is connected to rLJ.
to prevent continuous shooting, and proceed to step #I275. On the other hand, if it is in the exposure mode, step #124
At step 7, set the terminal (OF2) to the "■ (" level) and output a timer start signal to the timer circuit (I5) in Figure 1.Next, when the focus flag is not set or the focus zone is not entered. In some cases, in order to drive only the remaining count value of the drive counter ENZCNT, counter interrupts and timer interrupts are enabled and the motor is driven in step #I2.
Proceed to 75 (#1250.#1255.#1265, #
1270). If AP is completed during this period and the focus is achieved, step #885 to step #I275 in FIG.
Return to step #1275 and loop.

合焦フラグ(合焦F)がセットされかつ合焦ゾーン内で
あるときには、ステップ#1260で合焦表示を行なっ
てからステップ#I275に進んで、ミラーダウンする
のを待つ(# 1250〜#I260.#1275)。
When the focus flag (focus F) is set and the camera is within the focus zone, the focus is displayed in step #1260, and then the process proceeds to step #I275, where it waits for the mirror to be lowered (#1250 to #I260). .#1275).

ミラーダウンが完了すれば、レンズ駆動用のモーターを
停止する信号を出力して、これが停止するのを20m5
ec待って、追随フラグ、連写フラグ以外のフラグをリ
セットしレリーズ割込を許可して第2図のステップ#5
5以下のCDINTのフローへもとる(# 1280〜
#1295)。もっともここでステップ#1280及び
#1285は必ずしも必要ではなく、レンズを駆動した
ままCDINTへもどってらよい。
When the mirror down is completed, a signal is output to stop the lens drive motor, and it takes 20m5 for the lens drive motor to stop.
Wait for ec, reset the flags other than the tracking flag and the continuous shooting flag, enable the release interrupt, and proceed to step #5 in Figure 2.
Also applies to CDINT flows of 5 or less (#1280~
#1295). However, steps #1280 and #1285 are not necessarily necessary here, and it is sufficient to return to CDINT while driving the lens.

本実施例において、連写モードが設定されている時に、
レリーズ釦がづづけて押されている場合には、端子(O
F2)がrHJレベルになってタイマ回路(15)が計
時を始め、所定時間になると「■I」レベルからrLJ
レベルに代わる信号がマイコン(1)の端子(INT4
)に入力される。これが入力されるとマイコン(1)は
再び第16図(a)のステップ#1297からの割込を
スタートし、ステップ#I297でタイマ回路(15)
をストップすべ(「L」レベルの信号を端子(OF2)
から出力し、以下同様にステップ#100Oからのレリ
ーズのフローの動作を行う。
In this embodiment, when continuous shooting mode is set,
If the release button is pressed repeatedly, the terminal (O
F2) reaches the rHJ level, the timer circuit (15) starts measuring time, and when the predetermined time elapses, the rLJ changes from the "■I" level.
The signal that replaces the level is the terminal (INT4) of the microcontroller (1).
) is entered. When this is input, the microcomputer (1) again starts the interrupt from step #1297 in FIG. 16(a), and the timer circuit (15)
(Connect the “L” level signal to the terminal (OF2)
Then, the release flow from step #100O is performed in the same manner.

次に第20図に示した終端割込のフローを説明する。こ
れは、ローコントラスト時のスキャンにおいて、レンズ
を駆動しながら被写体のコントラストを検出していると
きに、焦点検出に充分なコントラストレベルが検出でき
ずにレンズの終端に到ったときの処理のフローである。
Next, the flow of the termination interrupt shown in FIG. 20 will be explained. This is the processing flow when the lens reaches the end of the lens without detecting a sufficient contrast level for focus detection while driving the lens and detecting the contrast of the subject during low-contrast scanning. It is.

この終端の検出は不図示のレンズの両端にスイッチ(S
7)が設けられ、このスイッチ(S7)は、レンズが最
近接位置及び無限遠位置のどちらか一方の終端に到達し
たときにONl、、、マイコン(1)の端子(I NT
3)に白4」レベルからrLJレベルに変わる信号が入
力されて、マイコン(1)は第20図の終端割込のフロ
ーを行なう。このフローでは、先ずステップ#l350
でモーターを停止してステップ#1355でレンズを繰
り込むフラグLBFがセットされているかを判定し、セ
ットされていなければ、レンズを繰り出した状態で終端
に到ったということで、ステップ#l360でこのフラ
グLBF’をセットしてステップ#l365で反転駆動
を開始させ第2図のCDINTのフローに進み、ステッ
プ#l355でフラグLBF’がセットされているとき
は、レンズがl往復した後に終端に到達したということ
でコントラスト検出が不可能といろことでステップ#1
370でマイコン(1)は不能の表示をする。
Detection of this termination is performed by placing a switch (S) on both ends of the lens (not shown).
7) is provided, and this switch (S7) switches ON1, .
3), a signal changing from the white 4 level to the rLJ level is input, and the microcomputer (1) carries out the flow of the termination interrupt shown in FIG. In this flow, first step #l350
The motor is stopped at step #1355, and it is determined whether the flag LBF for retracting the lens is set. If it is not set, it means that the lens has reached the end with the lens extended, and the flag LBF for retracting the lens is determined at step #1360. This flag LBF' is set, and the reversal drive is started in step #l365, and the process proceeds to the CDINT flow in FIG. Since contrast detection is impossible because it has been reached, step #1
At 370, the microcomputer (1) displays an indication that it is disabled.

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

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

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

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

以上の変更に伴う変形例を第22図に示し説明する。A modification resulting from the above changes is shown in FIG. 22 and will be described.

まず(1)に伴なう変更は、第16図(a)におけるス
テップ#l095〜#1I07を削除する。
First, the change associated with (1) deletes steps #1095 to #1I07 in FIG. 16(a).

これは20 、 OOOrpm(ハイスピード)がなく
なるためである(第22図参照)。これと、第19図に
おけるステップ#l745及び#2730.#2735
を削除したもので、これらハイスピードのモードがレリ
ーズ中にはないので、これを削除する(不図示)。さら
にINTEVENTのフローにおけるステップ#255
5.#2570.#2575を削除する。
This is because 20 OOO rpm (high speed) is lost (see Figure 22). In addition to this, steps #l745 and #2730 in FIG. #2735
These high-speed modes are not available during release, so they are deleted (not shown). Furthermore, step #255 in the flow of INTEVENT
5. #2570. Delete #2575.

次に(2)に伴う変更点は、第16図(a)のステップ
#1150とステップ#l 160との間に、駆動カウ
ンターENZCNTのカウント値が148を超えるか否
かを判定するステップ#1155を挿入し、148を超
える場合はステップ#1170に進み、レリーズフラグ
RESFをリセットしてリターンする。この値148に
ついて表3を参照して説明すると、パルス数28までは
eomsecかかっているので150 m5ecから6
0m5ecをひいた90m5ecが500Orpmで駆
動できる時間であり、その駆動可能なパルス数は4/3
X90=120となり、上記28を加えると148にな
るのである。
Next, the change associated with (2) is that between step #1150 and step #l 160 in FIG. If the number exceeds 148, the process advances to step #1170, resets the release flag RESF, and returns. To explain this value 148 with reference to Table 3, it takes eomsec to reach the number of pulses 28, so from 150 m5ec to 6
90m5ec minus 0m5ec is the time that can be driven at 500Orpm, and the number of pulses that can be driven is 4/3
X90=120, and adding the above 28 results in 148.

(3)に伴って変更する点は、第16図(a)のステッ
プ#1125の後に、ステップ#l 130として、精
度優先モードであるか否かの判定ステップを設け、精度
優先モードであれば、11000rp以上のモードを禁
止すべくステップ#1145に進む。又、ステップ#1
150の後に、ステップ#1152として精度優先モー
ドか否かの判定ステップを設け、更に精度優先モードで
あるときには、駆動カウンターENZCNTのカウント
値が40以下(150m5ecX4/ I 5(I Q
 Q Orpm))であるか否かを判定するステップ#
l 153を設けて、40以下であれば、+00Orp
m駆動を指示するフラグflFをセットすべくステップ
#1175に進み、それ以降の処理を行なう。40を超
えるときは、ステップ#l170でレリーズフラグRE
SFをリセットしてリターンする。ステップ#1152
で精度優先モードでなければ、ステップ#1155に進
み、それ以降のフローを行なう。
The change associated with (3) is that after step #1125 in FIG. 16(a), a determination step is provided as step #l 130 to determine whether or not the accuracy priority mode is selected. , the process advances to step #1145 to prohibit modes of 11,000 rp or more. Also, step #1
After step 150, a step #1152 is provided to determine whether or not the accuracy priority mode is set, and when the accuracy priority mode is set, the count value of the drive counter ENZCNT is 40 or less (150m5ecX4/I5(IQ
Step # of determining whether or not QOrpm))
l 153 and if it is 40 or less, +00Orp
The process advances to step #1175 to set the flag flF instructing m drive, and the subsequent processing is performed. If it exceeds 40, release flag RE is set in step #l170.
Reset SF and return. Step #1152
If it is not the accuracy priority mode, the process advances to step #1155 and the subsequent flow is performed.

発明の効果 上述の構成によれば、カメラがAF優先モード時であっ
ても速写モードにおいては2枚目以降の速写は合焦が完
了していなくても前回のレリーズ時におけるAP動作に
おいて合焦であることが記憶されていれば今回のシャツ
タレリーズが可能となる。したがって被写体がいくつか
継続して撮影フレームにはいってくるとき後側の被写体
に対して多少合焦が出来ていなくても写真を撮影するこ
とができ、撮影者の意図通りの写真を得ることが出来る
カメラを提供できる。
Effects of the Invention According to the above configuration, even if the camera is in the AF priority mode, in the snapshot mode, the second and subsequent snapshots are focused in the AP operation during the previous release even if the focus is not completed. If this is remembered, the current shirt taller is possible. Therefore, when several subjects enter the shooting frame in succession, it is possible to take a picture even if the subject at the back is slightly out of focus, and it is possible to obtain the picture as the photographer intended. We can provide the best possible camera.

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

第1図はこの発明の一実施例を示すブロック図、第2図
は第1図の装置の動作を示すフローチャート、第3図は
焦点検出装置のイベントカウンターのオフセットを示す
グラフ、第4図ないし第20図は第1図の装置の動作を
示すフローチャート、第21図は移動積分の可、不可と
モーターの駆動制御との関係を示すタイムチャート、第
22図と第23図は変形例を示すフローチャート、第2
4図と第25図は焦点検出の原理を示す図、第26図と
第27図は従来の追随補正の原理を示す図、第28図な
いし第31図は本発明の追随補正の原理を示す図である
。 l・・・マイコン、2・・・露出制御回路、3・・・測
光回路、10・・モーター制御回路、11・・・エンコ
ーダ、12・・・レンズ内回路、13・・・補助光発生
装置、15’・・・タイマ。 特許出願人 ミノルタカメラ株式会社 代 理 人 弁理士青白 化性2名 第2図(b) 1!’7図 第8図 第9m 富11図 第15図 316図(b) 有17図 第21図 g25図 狐に−s RIII、m 第30面 1131図
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a flowchart showing the operation of the device shown in FIG. 1, FIG. 3 is a graph showing the offset of the event counter of the focus detection device, and FIGS. Fig. 20 is a flowchart showing the operation of the device shown in Fig. 1, Fig. 21 is a time chart showing the relationship between whether movement integration is possible or not and motor drive control, and Figs. 22 and 23 show modified examples. Flowchart, 2nd
4 and 25 are diagrams showing the principle of focus detection, Figures 26 and 27 are diagrams showing the principle of conventional tracking correction, and Figures 28 to 31 are diagrams showing the principle of tracking correction of the present invention. It is a diagram. l...Microcomputer, 2...Exposure control circuit, 3...Photometering circuit, 10...Motor control circuit, 11...Encoder, 12...Inner lens circuit, 13...Auxiliary light generator , 15'...timer. Patent applicant: Minolta Camera Co., Ltd. Agent: Two patent attorneys (Figure 2 (b)) 1! Figure '7 Figure 8 Figure 9m Tomi 11 Figure 15 Figure 316 (b) Figure 17 Figure 21 Figure 25 Figure Fox -s RIII, m Page 30 1131 Figure

Claims (1)

【特許請求の範囲】[Claims] (1)合焦位置を演算し、検出する合焦検出手段と、演
算結果にしたがってレンズを合焦位置へ設定する手段と
、レリーズボタンが継続して押されている間連続的に撮
影動作と自動焦点調整動作とを所定の周期で繰り返し実
行する制御手段と、レリーズ操作がはいってもレンズの
合焦が完了していなければレリーズ動作に入らないよう
に制御する自動焦点優先制御手段とを備えたカメラにお
いて、連写モードに設定されている場合において合焦検
出手段により合焦検出演算した結果焦点検出が不能であ
るかデフォーカス量が大であることを検出する合焦不能
検出手段と、前回のレリーズ時に合焦であったことを記
憶する記憶手段と、今回の撮影時に焦点検出不能または
大デフォーカス量であり、かつ前回のレリーズ時におい
て合焦であった場合にレンズ調整を行わずレリーズを許
可する手段とを備えたことを特徴とする焦点検出装置を
備えたカメラ。
(1) A focus detection means that calculates and detects the focus position, a means that sets the lens to the focus position according to the calculation result, and a continuous shooting operation while the release button is continuously pressed. The camera includes a control means for repeatedly performing an automatic focus adjustment operation at a predetermined cycle, and an automatic focus priority control means for controlling the camera so that the release operation is not performed unless the lens has completed focusing even if the release operation is performed. in a camera set to continuous shooting mode, a focus failure detection means detects that focus detection is impossible or the amount of defocus is large as a result of a focus detection calculation performed by the focus detection means; A storage means that remembers that the camera was in focus the last time the shutter was released, and a memory device that stores the fact that it was in focus when the camera was released the previous time, and a lens that does not adjust the lens if it is unable to detect focus or has a large amount of defocus at the time of shooting this time, and that it was in focus at the time of the camera's previous release. A camera equipped with a focus detection device, characterized in that it is equipped with means for permitting release.
JP9592387A 1987-04-16 1987-04-16 Camera with focus detection device Expired - Lifetime JP2590873B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9592387A JP2590873B2 (en) 1987-04-16 1987-04-16 Camera with focus detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9592387A JP2590873B2 (en) 1987-04-16 1987-04-16 Camera with focus detection device

Publications (2)

Publication Number Publication Date
JPS63259523A true JPS63259523A (en) 1988-10-26
JP2590873B2 JP2590873B2 (en) 1997-03-12

Family

ID=14150799

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9592387A Expired - Lifetime JP2590873B2 (en) 1987-04-16 1987-04-16 Camera with focus detection device

Country Status (1)

Country Link
JP (1) JP2590873B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009128610A (en) * 2007-11-22 2009-06-11 Olympus Imaging Corp Camera and automatic focusing device for camera

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009128610A (en) * 2007-11-22 2009-06-11 Olympus Imaging Corp Camera and automatic focusing device for camera

Also Published As

Publication number Publication date
JP2590873B2 (en) 1997-03-12

Similar Documents

Publication Publication Date Title
JP2511409B2 (en) Automatic focus adjustment device
JP2526897B2 (en) Automatic focus adjustment device
JPH0797173B2 (en) Automatic focus adjustment device
JPH0750239B2 (en) Automatic focus adjustment device
JPS63259523A (en) Camera equipped with focus detecting device
JPH0797172B2 (en) Automatic focus adjustment device
JPH0797174B2 (en) Automatic focus adjustment device
JPS62269913A (en) Automatic focusing device
JPS62275208A (en) Automatic focusing device
JPS62269920A (en) Automatic focusing device
JPH0827423B2 (en) Automatic focus adjustment device
JPS62269938A (en) Automatic focus adjusting device
JPS62269916A (en) Automatic focusing device
JPS62269917A (en) Automatic focusing device
JPS63259522A (en) Camera equipped with automatic focusing device
JPS62269921A (en) Automatic focusing device
JPH02181126A (en) Camera
JPH04191830A (en) Camera incorporating swing mechanism
JPH09329831A (en) Camera
JPS632013A (en) Automatic focusing device
JP2697130B2 (en) Auto focus camera
JPH0714969Y2 (en) Camera autofocus device
JPH11125847A (en) Photographing device and shake correcting camera
JPH02811A (en) Camera with automatic focusing function
JPH04254811A (en) Continuous automatic focus correcting and photographing mechanism for af camera

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071219

Year of fee payment: 11