JP2590873B2 - Camera with focus detection device - Google Patents

Camera with focus detection device

Info

Publication number
JP2590873B2
JP2590873B2 JP9592387A JP9592387A JP2590873B2 JP 2590873 B2 JP2590873 B2 JP 2590873B2 JP 9592387 A JP9592387 A JP 9592387A JP 9592387 A JP9592387 A JP 9592387A JP 2590873 B2 JP2590873 B2 JP 2590873B2
Authority
JP
Japan
Prior art keywords
flag
lens
mode
focus
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.)
Expired - Lifetime
Application number
JP9592387A
Other languages
Japanese (ja)
Other versions
JPS63259523A (en
Inventor
正隆 浜田
賢司 石橋
徳治 石田
博司 大塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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)

Description

【発明の詳細な説明】 産業上の利用分野 この発明は焦点検出装置を備えたカメラに関する。Description: TECHNICAL FIELD The present invention relates to a camera provided with a focus detection device.

従来技術とその問題点 例えばスポーツ写真のように動く被写体を連写する場
合、自動焦点調整(以下AFという)が完了してからでな
いとシャッタレリーズをすることができないAF優先式の
カメラにおいては、ピントが合わないとレリーズでき
ず、したがって被写体が少しでもフレームからずれると
撮影を行うことができなくなる。ところが連写モードで
は撮影周期が早く例えば秒3コマの場合では1コマ300m
sec程度である。被写体がいくら横に動くのが速いとい
っても、この300msecの間に焦点検出エリアの外にでる
ことはあっても、撮影領域の外へ出てしまうことは少な
い。よって撮影したい被写体が写り得るのにもかかわら
ずシャッタをレリーズできないのは不合理である。しか
しながら従来のAF優先式のカメラではピントずれがある
場合にはレリーズできないから上述のように撮影が可能
な情況であるにもかかわらずシャッタレリーズできない
という欠点があった。
Conventional technology and its problems For example, in continuous shooting of a moving subject such as a sports photograph, in an AF-priority camera that cannot release a shutter until automatic focus adjustment (hereinafter referred to as AF) is completed, If the subject is out of focus, the release cannot be performed. Therefore, if the subject is slightly out of the frame, the photographing cannot be performed. However, in the continuous shooting mode, the shooting cycle is short, for example, 3 frames per second, 300 m per frame
It is about sec. Even if the subject moves fast in the horizontal direction, it may move out of the focus detection area during this 300 msec, but rarely moves out of the shooting area. Therefore, it is irrational that the shutter cannot be released even though the subject to be photographed can be captured. However, the conventional AF-priority camera has a drawback in that the shutter cannot be released in spite of the situation where shooting is possible as described above because the camera cannot be released when there is a focus shift.

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

問題点を解決する手段 上述の目的を達成するために、この発明に係る焦点検
出装置を備えたカメラは、合焦位置を演算し、検出する
合焦検出手段と、 演算結果にしたがってレンズを合焦位置へ設定する手
段と、 レリーズボタンが継続して押されている間連続的に撮
影動作と自動焦点調整動作とを所定の周期で繰り返し実
行する制御手段と、 レリーズ操作がはいってもレンズの合焦が完了してい
なければレリーズ動作に入らないように制御する自動焦
点優先制御手段とを備えたカメラにおいて、 連写モードに設定されている場合において合焦検出手
段により合焦検出演算した結果焦点検出が不能である
か、並びに所定値よりもデフォーカス量が大きいことを
検出する合焦不能検出手段と、 前回のレリーズ時に合焦であったことを記憶する記憶
手段と、 今回の撮影時に、上記合焦不能検出手段によって焦点
検出が不能であるか、又は所定値よりもデフォーカス量
が大きいことを検出されたときに、かつ前回のレリーズ
時において合焦であった場合にレンズ調整を行わずレリ
ーズを許可する手段とを備えたことを特徴とする。
Means for Solving the Problems In order to achieve the above object, a camera provided with a focus detection device according to the present invention calculates a focus position and focuses on a lens according to the calculation result. Means for setting to a focal position; control means for continuously performing a shooting operation and an automatic focus adjustment operation repeatedly at a predetermined cycle while the release button is continuously pressed; and The result of the focus detection calculation by the focus detection means when the camera is set to the continuous shooting mode when the camera is provided with automatic focus priority control means for controlling not to enter the release operation unless focusing is completed. An in-focus detection means for detecting whether focus detection is impossible and a defocus amount larger than a predetermined value, and a memory for storing information indicating that focusing was performed at the time of the previous release. The focus detection is not possible or the defocus amount is larger than a predetermined value by the in-focus detection means at the time of the current photographing, and the focus is determined at the time of the previous release. Means for permitting release without performing lens adjustment in the event that there is.

上述の構成によれば、カメラがAF優先モード時であっ
ても連写モードにおいては、合焦が完了していなくても
シャッタレリーズが可能となる。したがって被写体がい
くつか継続して撮影フレームにはいってくるとき後側の
被写体に対して多少合焦が出来ていなくても写真を撮影
することができ、撮影者の意図通りの写真を得ることが
出来るカメラを提供できる。
According to the configuration described above, even in the continuous shooting mode even when the camera is in the AF priority mode, the shutter can be released even if focusing is not completed. Therefore, when several subjects continuously enter the shooting frame, it is possible to take a picture even if the subject on the rear side is slightly in focus, and obtain a photograph as intended by the photographer. We can provide a camera that can do it.

実施例 第28図は本願発明の原理を説明するためのグラフで、
縦軸、横軸の意味は第27図と同じである。レンズ停止中
の時点P1で、デフォーカス量D5,D6に基づき被写体に対
して追随遅れが生じていると判断されると、積分I6時の
演算C6によりP1の時点で追随補正がかかり、レンズはQ1
では停止させず、補正量WRの分更にレンズを移動させQ1
までもってくる。この補正量WRについては後述するが、
被写体がカメラの撮影レンズ光軸方向に移動するときの
移動量をカメラのフィルム面でのデフォーカス量として
とられたものである。この移動量は、合焦検出の単位周
期TI当たりの傾きに換算して求めておく。第29図の場
合、次のレンズ駆動時間をTIと考え、遅くとも時間TIの
後には追い付くと考えるわけである。よしんば、この時
間TIにおける補正量WRを越える時間レンズを駆動する必
要があるような被写体の速度については追随遅れが生じ
るが、とりわけ速い被写体でないかぎりは合焦と判断出
来る範囲に撮影レンズが入ってくると言うことで、被写
体に追いついているということが出来る。又、このモデ
ルでは、被写体の移動を、フィルム面上のデフォーカス
量で一次関数と仮定したが、実際には、例えば、被写体
がカメラに向かって定速で接近してくる時、デフォーカ
ス量の変化は一次関数にはならず、高次関数となる。こ
の場合も、追随補正しても補正量が不足するが、合焦域
には入っているので追随しているといえる。なおこの第
28図の場合の目標補正位置は、積分I8の中点P3である。
Embodiment FIG. 28 is a graph for explaining the principle of the present invention,
The meaning of the vertical and horizontal axes is the same as in FIG. If it is determined that the tracking delay has occurred with respect to the subject based on the defocus amounts D 5 and D 6 at the time point P 1 while the lens is stopped, the tracking is performed at the time point P 1 by the calculation C 6 at the time of the integration I 6. Correction is applied and the lens is Q 1
Then, without stopping, move the lens further by the amount of correction WR to Q 1
Bring it up. This correction amount WR will be described later,
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 on the film surface of the camera. This movement amount is obtained by converting it into a tilt per unit period TI of focus detection. In the case of FIG. 29, the next lens drive time is considered to be TI, and it is considered that it will catch up at the latest after time TI. If the time is longer than the correction amount WR at this time TI, the subject will need to drive the lens for a certain amount of time. You can say that you are catching up with the subject by coming. In this model, the movement of the subject is assumed to be a linear function based on the defocus amount on the film surface. However, in practice, for example, when the subject approaches the camera at a constant speed, the defocus amount Does not become a linear function but a higher-order function. In this case as well, even if the tracking correction is performed, the correction amount is insufficient. Note that this
Target correction position in the case of FIG. 28 is a middle point P 3 of the integral I 8.

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

この目標の積分I8の中点というのは、P1からみて、次
の積分I7の結果が出てくる時点P2を目標にすることとほ
ぼ同じ意味を持つ。なぜなら、ここでは、積分時間が短
いので、P2≒P3と見なしているわけである。ここで演算
が50msecかかるのに対し、積分が数msec以下である。
Because the midpoint of the integration I 8 of this goal, as viewed from P 1, having substantially the same meaning as that of the point P 2 the result of the next integration I 7 comes out to target. Because the integration time is short here, it is assumed that P 2 ≒ P 3 . Here, while the calculation takes 50 msec, the integration is several msec or less.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

第2図のフローチャートに戻り、ステップ#185で焦
点検出不能でないと判断されれば、ステップ#188に進
みフラグMVFをリセットする。フラグMVFをリセットする
ことによって連写中に大デフォーカスや焦点検出不能が
あってもシャッタレリーズを許す。ステップ#185で焦
点検出不能であると判定されたときはステップ#186に
進む。ステップ#186では連写中であることを示す連写
フラグがセットされているか否かを判定する。この連写
フラグがセットされていないときはレンズを駆動させな
がら被写体のコントラストを検出するためのローコンス
キャンを行うべく、LOWCONのフローに進む。一方連写中
を示す連写フラグがセットされているときは上記ローコ
ンスキャンを行わずレリーズ許可およびレリーズ中の追
随モード補正禁止を示すフラグ(MVF)をセットしCDINT
のフローに進み焦点検出を行う。この理由は、本実施例
において連写モードでかつAF優先モード時1枚目の撮影
はレリーズ以前に合焦しているかあるいはレリーズ中に
合焦となる場合のみシャッタレリーズが行なわれ被写体
にはピントが合っている。今動いている被写体を撮影し
ているかあるいは誤って連写中にカメラを少し動かした
場合には焦点検出を行っている範囲から所望の被写体が
撮影者の意図に反して抜けることがある。本来連写中は
撮影間隔が短いためにデフォーカス量は比較的小さいか
0になるはずであるが、このような場合にはカメラの焦
点検出では焦点検出範囲内に写っている他の被写体に焦
点検出を行う結果焦点検出が不能となったり、大デフォ
ーカスとなることがあり、AF優先モードであるからとい
って、この焦点検出結果に応じてレリーズ禁止を行うこ
と及び焦点検出結果に応じてレンズ駆動を行うことは良
い方法ではない。今焦点検出不能のときレンズ駆動はデ
フォーカス量のデータを更新しないので前の焦点検出の
結果のデータに応じて駆動される。検出可能であれば、
焦点検出不能を示すローコンフラグLCFをリセットし、
ローライト(被写体が所定値以下の低輝度であること)
であるか否かを判定する(#185〜#195)。そして、ロ
ーライトでなければ、ステップ#200で補助光フラグを
リセットし、ローライトであればステップ#200をスキ
ップして、それぞれステップ#205に進み、この演算終
了時点のレンズの相対位置をイベントカウンタで読み取
る。次に、この演算で求めたデフォーカス量Δεに変換
係数KL値を掛けてエンコーダのパルス数を求め、この値
が正ならば今回の方向を示す変数TDを1とし、負ならば
TDを0とする(#205〜#225)。
Returning to the flowchart of FIG. 2, if it is determined in step # 185 that the focus cannot be detected, the flow advances to step # 188 to reset the flag MVF. By resetting the flag MVF, shutter release is allowed even if large defocus or focus detection is impossible during continuous shooting. If it is determined in step # 185 that the focus cannot be detected, the process proceeds to step # 186. In step # 186, it is determined whether or not a continuous shooting flag indicating that continuous shooting is being performed is set. When the continuous shooting flag is not set, the flow proceeds to LOWCON to perform low contrast scanning for detecting the contrast of the subject while driving the lens. On the other hand, when the continuous shooting flag indicating that continuous shooting is set is set, a flag (MVF) indicating that the release is permitted and the tracking mode correction is prohibited during release is set without performing the low contrast scan, and CDINT
The flow proceeds to the step (1) to perform focus detection. The reason for this is that, in the present embodiment, in the continuous shooting mode and the AF priority mode, the first photographing is performed only when the subject is in focus before the release or when the subject is in focus during the release, and the subject is focused. Is suitable. If a currently moving subject is being photographed or the camera is slightly moved during continuous shooting, a desired subject may fall out of the range in which focus detection is performed, contrary to the intention of the photographer. Originally, the defocus amount should be relatively small or 0 during continuous shooting because the shooting interval is short, but in such a case, the focus detection of the camera may cause other subjects in the focus detection range to be detected. As a result of focus detection, focus detection may not be possible or large defocus may occur.In AF priority mode, release prohibition must be performed in accordance with this focus detection result, and in accordance with the focus detection result. It is not a good method to drive the lens. When the focus cannot be detected, the lens drive does not update the data of the defocus amount, and is driven according to the data of the result of the previous focus detection. If detectable,
Reset the low-con flag LCF indicating that focus cannot be detected,
Low light (the subject has low brightness below a certain value)
Is determined (# 185 to # 195). If it is not low light, the auxiliary light flag is reset in step # 200. If it is low light, step # 200 is skipped, and the process proceeds to step # 205. Read with a counter. Next, the number of pulses of the encoder is obtained by multiplying the defocus amount Δε obtained in this calculation by the conversion coefficient KL value. If this value is positive, the variable TD indicating the current direction is set to 1, and if this value is negative,
TD is set to 0 (# 205 to # 225).

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

例えば、第5図(a)に示すように、コンティニュア
スモードであるときは動く被写体に対して焦点調節する
場合が多いのでスピード優先モードとし、ワンショット
モードの時には静止している被写体に焦点調節する場合
が多いので精度優先モードにする。あるいは、第5図
(b)に示すように、Aモードのときにはポートレート
等静止している被写体に正確にピントを合わせたいとい
う事が多いと考えられるので精度優先モードとし、それ
以外の露出制御モードの時にはスピード優先モードとす
る。あるいは、第5図(c)に示すように、制御される
絞り値(F値)が1.7より小さいときはポートレート等
に使用されることが多いと考えられるから精度優先モー
ドとし、それ以外では、レンズの被写界深度も多少なり
と深くなっていることを考慮してスピード優先モードと
する。この限界F値は、F4〜5.6までぐらいなら任意に
選んでよい。更には、第5図(d)に示すようにデフォ
ーカス量をエンコーダパルス数に変換するKL値が大きい
時、即ち、パルス数当たりのデフォーカス量の変化量が
小さいレンズでは、焦点調節に時間がかかるとしてスピ
ード優先モードとし、KL値が小さいときにはこの逆で、
レンズ駆動速度が速すぎると正確な焦点調節ができない
として精度優先モードにする。後者の場合、精度優先モ
ードにしてもわずかなパルス数で合焦状態になるので、
合焦に要する時間は比較的短くて済む。
For example, as shown in FIG. 5 (a), in the continuous mode, the focus is often adjusted for a moving subject, so that the speed priority mode is set. In the one-shot mode, the focus is set on the still subject. Since adjustment is often performed, the mode is set to the accuracy priority mode. Alternatively, as shown in FIG. 5 (b), in the A mode, it is considered that it is often desired to accurately focus on a still subject such as a portrait, so the accuracy priority mode is set, and other exposure control is performed. In the mode, the speed priority mode is set. Alternatively, as shown in FIG. 5 (c), when the aperture value (F-number) to be controlled is smaller than 1.7, it is considered that the aperture value is often used for a portrait or the like. The speed priority mode is set in consideration of the fact that the depth of field of the lens is somewhat deeper. This limit F value may be arbitrarily selected as long as it is between F4 and 5.6. Further, 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 in which the change amount of the defocus amount per pulse number is small, it takes time to adjust the focus. And the speed priority mode, and when the KL value is small, the opposite is true.
If the lens driving speed is too fast, accurate focus adjustment cannot be performed, and the mode is set to the precision priority mode. In the latter case, even in the accuracy priority mode, the focus is achieved with a small number of pulses.
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 states are shown in Table 1. Here, regarding the classification into the accuracy priority mode and the speed priority mode, the mode with the higher priority mode is the mode at that time. When the number of priority modes is the same, priority is given to the threshold value of the aperture value. This is because a lens having a small F-number has a very shallow depth of field, and is likely to be out of focus even with a slight shift.

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

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

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

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

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

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

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

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

ステップ#322では連写中であることを示す連写フラ
グがセットされているか否かを判定する。フラグがセッ
トされていない場合にはステップ#355に進む。一方連
写フラグがセットされている場合には、ステップ#324
に進みデフォーカスパルス数(ERR)が1000以上である
か否かを判定し、1000以上であれば、これは連写中に被
写体が焦点検出範囲から抜けたとしてレンズ駆動の制御
を行わず、フラグMVFをセットしてCDINTのフローへ進
む。デフォーカスパルス数が1000未満であればステップ
#335に進み、レンズ駆動を行う。このときも駆動カウ
ンタENZCNTの内容は変わらないので前の焦点検出の結果
にもとづいてレンズが駆動される。
In step # 322, it is determined whether or not a continuous shooting flag indicating that continuous shooting is being performed is set. If the flag has not been set, the process proceeds to step # 355. On the other hand, if the continuous shooting flag is set, step # 324
To determine whether or not the number of defocus pulses (ERR) is 1000 or more. Set the flag MVF and proceed to the CDINT flow. If the number of defocus pulses is less than 1000, the process proceeds to step # 335 to drive the lens. At this time, since the contents of the drive counter ENZCNT do not change, the lens is driven based on the result of the previous focus detection.

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

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

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

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

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

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

(4)狭合焦ゾーン(#355) このゾーンは(1)の合焦ゾーンとほぼ同じである。
このゾーンが設けてある理由を以下に示す。このゾーン
内でのレンズの駆動時、積分中心から演算終了時までに
動くレンズの移動量CTCをデフォーカスパルス数からひ
いている。今デフォーカスパルス数は積分中心での値と
しているが、光の変化や手振、電気的ノイズにより必ず
しも積分中心での値となっていないことがある。従っ
て、このデフォーカスパルス数からレンズの移動量をひ
いても正しいデフォーカス量が得られないことがあり、
このデフォーカス量だけレンズを駆動して停止しても合
焦状態とならないことがある。このような場合には、次
の焦点検出の結果により再度レンズを動かさなければな
らないことになり、この駆動のときに同じような事がお
これば次の焦点検出の結果によりレンズを駆動しなけれ
ばならず、いつまでたっても合焦状態の検出によるレン
ズの停止状態とならないからこれを防止するためにこの
ゾーンを設けている。そこでデフォーカス量がこの狭合
焦ゾーン内になったときには焦点検出を行わず、デフォ
ーカスパルス数が0になるまでレンズを駆動するように
している。
(4) Narrow focusing zone (# 355) This zone is almost the same as the focusing zone of (1).
The reason why this zone is provided is described below. When the lens is driven in this zone, the movement amount CTC of the lens that moves from the integration center to the end of the calculation is subtracted from the number of defocus pulses. Now, the number of defocus pulses is a value at the center of integration. However, the number of defocus pulses may not always be a value at the center of integration due to a change in light, hand shake, or electrical noise. Therefore, a correct defocus amount may not be obtained even if the lens movement amount is subtracted from the number of defocus pulses.
Even if the lens is driven and stopped by this defocus amount, the focusing state may not be achieved. In such a case, the lens must be moved again according to the result of the next focus detection. If a similar event occurs during this driving, the lens must be driven based on the result of the next focus detection. This zone is provided to prevent the lens from being stopped due to the detection of the in-focus state forever. Therefore, when the defocus amount 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図に示すIDOBUNのフローに進
む。
On the other hand, in FIG. 2, when the lens is not stopped in step # 235, the flow proceeds to the IDOBUN flow shown in FIG.

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

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

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

逆にステップ#500で補正量WRが所定量AX未満である
場合、非更新フラグ(非更新F)をリセットし、追随補
正フラグ(追随補正F)をセットしてステップ#300に
進む(#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 the process proceeds to step # 300 (# 500). , # 510, # 490).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

次に第12図に示したカウンター割込(CNTR割込)を説
明する。このカウンター割込は第1図のエンコーダ(1
1)からパルスが発生するたびに実行される。このフロ
ーに入るとまず、マイコン(1)は駆動カウンターEVEN
CNTのカウント値を1つ減算し、駆動カウンタENZCNTの
カウント値が0になったか否かを判定する(#800〜#8
05)。そして駆動カウンターEVENCNTのカウント値が0
でない場合にはステップ駆動を示すステップモードフラ
グSTEPFがセットされているか否かを判定し(#815)、
セットされているときにはステップ#835に進む。ステ
ップ#815でフラグSTEPFがセットされていないときはス
テップ#820へ進み、精度優先モードでないとき、ある
いは精度優先モードであっても駆動カウンターENZCNTの
カウント値が6を越えるときは、ステップ駆動をしない
ものとして、ステップ#840に進む。ここでは本カウン
タ割込の前にタイマ割込が入ったことを示すフラグTIPA
SFがセットされているか否かを判定し、セットされてい
るときには、これをリセットしてリターンする。このフ
ラグTIPASFがセットされていないときには、モーターの
通電を切る(#845)。一方、ステップ#820で精度優先
モードでありかつ駆動カウンターENZCNTのカウント値が
6以下のときには、ステップ#825からステップ#830に
進み、ステップモードを示すフラグSTEPFをセットし、
更にステップ駆動フラグSTPDRFをセットしてから、ステ
ップ#845でモーターの通電を切る(#830,#835,#84
5)。次にレリーズされたことを示すフラグRESFがセッ
トされているか否かを判定し、セットされているときは
タイマRセットのサブルーチンに進み、セットされてい
ないときにはタイマIセットのサブルーチンに進んで、
サブルーチンの終了後リターンする(#850〜#860)。
タイマRセットに関してはレリーズ時の説明のときに行
う。
Next, the counter interrupt (CNTR interrupt) shown in FIG. 12 will be described. This counter interrupt is controlled by the encoder (1
Executed every time a pulse is generated from 1). When entering this flow, the microcomputer (1) first sets the drive counter EVEN
The count value of CNT is decremented by one, and it is determined whether the count value of the drive counter ENZCNT has become 0 (# 800 to # 8)
05). And the count value of the drive counter EVENCNT is 0
If not, it is determined whether or not the step mode flag STEPF indicating the step drive is set (# 815),
When it is set, the process proceeds to step # 835. If the flag STEPF is not set in step # 815, the process proceeds to step # 820. If the mode is not the accuracy priority mode, or if the count value of the drive counter ENZCNT exceeds 6 even in the accuracy priority mode, the step driving is not performed. The process proceeds to step # 840. Here, a flag TIPA indicating that a timer interrupt has occurred before this counter interrupt
It is determined whether SF is set or not, and if it is set, this is reset and the routine returns. If the flag TIPASF is not set, the motor is turned off (# 845). On the other hand, if it is the accuracy priority mode in step # 820 and the count value of the drive counter ENZCNT is 6 or less, the process proceeds from step # 825 to step # 830, and the flag STEPF indicating the step mode is set.
Further, after setting the step drive flag STPDRF, the motor is turned off in step # 845 (# 830, # 835, # 84
Five). Next, it is determined whether or not the flag RESF indicating that the shutter has been released is set. If the flag is set, the process proceeds to a timer R set subroutine. If not, the process proceeds to a timer I set subroutine.
After the end of the subroutine, the program returns (# 850 to # 860).
The timer R set will be described at the time of release.

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

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

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

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

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

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

次に第16図(a)において、ステップ#1025でAF優先
モードであるとき、ステップ#1109に進みレリーズ許可
およびレリーズ中の追随補正禁止を示すフラグ(MVF)
がセットされているか否かを判定する。セットされてい
るときにはステップ#1110で前回の撮影が焦点検出不能
あるいは大デフォーカス量で行なわれたことを示すフラ
グ(REIF)がセットされているか否かを判定する。
Next, in FIG. 16 (a), when the AF priority mode is set in step # 1025, the process proceeds to step # 1109, in which a flag (MVF) indicating release permission and tracking correction inhibition during release is prohibited.
Is set or not. If the flag is set, it is determined in step # 1110 whether or not a flag (REIF) indicating that the previous photographing was not possible to detect the focus or performed with a large defocus amount is set.

このフラグ(REIF)がセットされていないときには前
回が合焦でレリーズ動作(撮影)に入ったとしてフラグ
(REIF)をステップ#1112でセットして今回のレリーズ
を行うべくステップ#1190に進む。上記フラグ(REIF)
がセットされているときには、上述した理由によりレリ
ーズを禁止すべくステップ#1170に進む。
If the flag (REIF) is not set, it is assumed that the previous operation has been started and the release operation (shooting) has been started, the flag (REIF) is set in step # 1112, and the flow advances to step # 1190 to perform the current release. The above flag (REIF)
If is set, the process proceeds to step # 1170 to prohibit release for the above-described reason.

ステップ#1109においてレリーズ許可を示すフラグMV
Fがセットされていないときには、ステップ#1112に進
み、焦点検出終了を示すフラグ(AFEF)がセットされて
いるか否かを判定し、セットされているときには、ステ
ップ#1113に進み、焦点検出不能あるいは大デフォーカ
ス時の撮影であることを示すフラグ(REIF)をリセット
してステップ#1115に進む。一方焦点検出終了を示すフ
ラグ(AFEF)がセットされていないときにはレリーズを
禁止すべくステップ#1170に進む。
In step # 1109, flag MV indicating release permission
If F has not been set, the process proceeds to step # 1112, where it is determined whether or not a flag (AFEF) indicating the end of focus detection has been set. The flag (REIF) indicating that shooting is performed at the time of large defocus is reset, and the flow advances to step # 1115. On the other hand, if the flag (AFEF) indicating the end of the focus detection is not set, the process proceeds to step # 1170 to prohibit the release.

レリーズ優先モードの場合から説明すると、まず、追
随モードであるかを追随フラグ(追随F)がセットされ
ているかで判定し、追随モードであるときには、ステッ
プ#1035の演算Iのサブルーチンに進む。この演算Iの
サブルーチンでは、レリーズタイムラグ(スイッチ(S
2)のONから実際の露光開始が行なわれるまでの時間)
の間に、被写体が動く量を推定し、この量に、このモー
ド(レリーズ)に入るまでのデフォーカス量を加えた値
としてデフォーカス量を求めている。このサブルーチン
を第17図に示し説明する。
To begin with the description of the release priority mode, first, it is determined whether or not the following mode is set, based on whether a following flag (following F) is set. In the subroutine of this operation I, the release time lag (switch (S
2) Time from ON to actual exposure start)
During this period, the amount of movement of the subject is estimated, and the defocus amount is calculated as a value obtained by adding the amount of defocus up to this mode (release) to this amount. This subroutine is shown and described in FIG.

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

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

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

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

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

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

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

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

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

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

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

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

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

第16図(a)にもどり、ステップ#1190では、補助光
発光装置(13)をOFFして、そして表示をOFFする(#11
90,#1195)。次に露出制御回路へミラーアップ開始信
号及び絞り制御信号を出力して、ミラーアップ及び所定
の値Avに絞り制御を行なわせ、ミラーアップが完了する
のを待つ(#1200〜#1210)。この間約50msecであるミ
ラーアップが完了すればモーター停止信号を出力して、
このモーターの停止するのを10msec待ち、割込を禁止し
て、露光開始の信号を出力して、1幕の走行を開始させ
る。(#1215〜1230)。そして露光時間Tvを計測して所
定のTvになれば露光終了信号を出力して2幕が閉じるの
を待つ(#1235〜#1240)。
Returning to FIG. 16 (a), in step # 1190, the auxiliary light emitting device (13) is turned off, and the display is turned off (# 11
90, # 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 mirror-up to be completed (# 1200 to # 1210). During this time, if the mirror up of about 50 msec is completed, a motor stop signal is output,
Wait 10 msec for the motor to stop, prohibit interrupts, output an exposure start signal, and start running one curtain. (# 1215-1230). Then, the exposure time Tv is measured, and when it reaches a predetermined Tv, an exposure end signal is output and the system waits for the closing of two curtains (# 1235 to # 1240).

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

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

そしてステップ#1245で連写モードであるか否かを判
定して連写モードでないとき端子(OP3)を「L」にし
て連写をしないようにしてステップ#1275に進む。一
方、連写モードであるときにはステップ#1247で端子
(OP3)を「H」レベルにして第1図のタイマ回路(1
5)にタイマ開始信号を出力する。次に合焦フラグがセ
ットされていないとき或いは合焦ゾーンに入っていない
ときに、駆動カウンタENZCNTのカウント値の残り分だけ
を駆動すべく、カウンタ割込及びタイマ割込を許可して
モーターを駆動してステップ#1275に進む(#1250,#1
255,#1265,#1270)。この間にAFが完了して合焦にな
った場合は第12図のステップ#885からステップ#1275
へ再びもどって来てステップ#1275をループする。合焦
フラグ(合焦F)がセットされかつ合焦ゾーン内である
ときには、ステップ#1260で合焦表示を行なってからス
テップ#1275に進んで、ミラーダウンするのを待つ(#
1250〜#1260,#1275)。
Then, in step # 1245, it is determined whether or not the camera is in the continuous shooting mode. When the camera is not in the continuous shooting mode, the terminal (OP3) is set to "L" so that continuous shooting is not performed, and the process proceeds to step # 1275. On the other hand, when the continuous shooting mode is set, the terminal (OP3) is set to "H" level in step # 1247, and the timer circuit (1) shown in FIG.
5) Output the timer start signal. Next, when the focus flag is not set or the camera is not in the focus zone, the counter interrupt and the timer interrupt are enabled to drive the motor to drive only the remaining count of the drive counter ENZCNT. Drive and proceed to step # 1275 (# 1250, # 1
255, # 1265, # 1270). If AF is completed during this time and the camera is focused, step # 885 to step # 1275 in FIG.
And loops back to step # 1275. When the focus flag (focus F) is set and the focus is within the focus zone, the focus is displayed in step # 1260, and the process proceeds to step # 1275 to wait for the mirror to be lowered (#
1250 to # 1260, # 1275).

ミラーダウンが完了すれば、レンズ駆動用のモーター
を停止する信号を出力して、これが停止するのを20msec
待って、追随フラグ、連写フラグ以外のフラグをリセッ
トしレリーズ割込を許可して第2図のステップ#55以下
のCDINTのフローへもどる(#1280〜#1295)。もっと
もここでステップ#1280及び#1285は必ずしも必要では
なく、レンズを駆動したままCDINTへもどってもよい。
When the mirror down is completed, a signal to stop the motor for driving the lens is output, and this stops for 20 msec.
After waiting, the flags other than the follow-up flag and the continuous shooting flag are reset, the release interrupt is permitted, and the flow returns to the CDINT flow from step # 55 onward in FIG. 2 (# 1280 to # 1295). However, here, steps # 1280 and # 1285 are not always necessary, and it is possible to return to CDINT while driving the lens.

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

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

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

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

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

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

以上の変更に伴う変形例を第22図に示し説明する。 A modified example accompanying the above change is shown and described in FIG.

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

次に(2)に伴う変更点は、第16図(a)のステップ
#1150とステップ#1160との間に、駆動カウンターENZC
NTのカウント値が148を超えるか否かを判定するステッ
プ#1155を挿入し、148を超える場合はステップ#1170
に進み、レリーズフラグRESFをリセットしてリターンす
る。この値148について表3を参照して説明すると、パ
ルス数28までは60msecかかっているので150msecから60m
secをひいた90msecが5000rpmで駆動できる時間であり、
その駆動可能なパルス数は4/3×90=120となり、上記28
を加えると148になるのである。
Next, a change associated with (2) is that a drive counter ENZC is provided between step # 1150 and step # 1160 in FIG.
Step # 1155 for determining whether or not the NT count value exceeds 148 is inserted, and if it exceeds 148, step # 1170
And resets the release flag RESF and returns. Explaining this value 148 with reference to Table 3, since it takes 60 msec for the pulse number 28, 150 msec to 60 m
90msec after subtracting sec is the time that can be driven at 5000rpm,
The number of pulses that can be driven is 4/3 × 90 = 120.
Add up to 148.

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

発明の効果 上述の構成によれば、カメラがAF優先モード時であっ
ても連写モードにおいては2枚目以降の連写は合焦が完
了していなくても前回のレリーズ時におけるAF動作にお
いて合焦であることが記憶されていれば今回のシャッタ
レリーズが可能となる。したがって被写体がいくつか継
続して撮影フレームにはいってくるとき後側の被写体に
対して多少合焦が出来ていなくても写真を撮影すること
ができ、撮影者の意図通りの写真を得ることが出来るカ
メラを提供できる。
Effect of the Invention According to the above configuration, even if the camera is in the AF priority mode, in the continuous shooting mode, the continuous shooting of the second and subsequent frames is performed in the AF operation at the time of the previous release even if focusing is not completed. If the in-focus state is stored, the current shutter release becomes possible. Therefore, when several subjects continuously enter the shooting frame, it is possible to take a picture even if the subject on the rear side is slightly in focus, and obtain a photograph as intended by the photographer. We can provide a camera that can do it.

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

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

───────────────────────────────────────────────────── フロントページの続き (72)発明者 大塚 博司 大阪市東区安土町2丁目30番地 大阪国 際ビル ミノルタカメラ株式会社内 (56)参考文献 特開 昭61−261709(JP,A) 特開 昭61−258226(JP,A) 特開 昭57−72115(JP,A) 特開 昭57−142630(JP,A) 実開 昭62−14435(JP,U) ──────────────────────────────────────────────────続 き Continuation of the front page (72) Inventor Hiroshi Otsuka 2-30 Azuchicho, Higashi-ku, Osaka City International Building Minolta Camera Co., Ltd. (56) References JP-A-61-261709 (JP, A) JP-A-61-258226 (JP, A) JP-A-57-72115 (JP, A) JP-A-57-142630 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】合焦位置を演算し、検出する合焦検出手段
と、 演算結果にしたがってレンズを合焦位置へ設定する手段
と、 レリーズボタンが継続して押されている間連続的に撮影
動作と自動焦点調整動作とを所定の周期で繰り返し実行
する制御手段と、 レリーズ操作がはいってもレンズの合焦が完了していな
ければレリーズ動作に入らないように制御する自動焦点
優先制御手段とを備えたカメラにおいて、 連写モードに設定されている場合において合焦検出手段
により合焦検出演算した結果焦点検出が不能であるか、
並びに所定値よりもデフォーカス量が大きいことを検出
する合焦不能検出手段と、 前回のレリーズ時に合焦であったことを記憶する記憶手
段と、 今回の撮影時に、上記合焦不能検出手段によって焦点検
出が不能であるか、又は所定値よりもデフォーカス量が
大きいことを検出されたときに、かつ前回のレリーズ時
において合焦であった場合にレンズ調整を行わずレリー
ズを許可する手段とを備えたことを特徴とする焦点検出
装置を備えたカメラ。
A focus detecting means for calculating and detecting a focus position; a means for setting a lens to a focus position in accordance with a result of the calculation; Control means for repeatedly executing the operation and the automatic focus adjustment operation at a predetermined cycle; and automatic focus priority control means for controlling the lens so as not to enter the release operation unless the focusing of the lens is completed even though the release operation is performed. In the camera equipped with, whether the focus detection is impossible as a result of the focus detection calculation by the focus detection means when the continuous shooting mode is set,
An in-focus detection means for detecting that the defocus amount is larger than a predetermined value; a storage means for storing that the in-focus state was at the time of the previous release; and Means for permitting release without performing lens adjustment when focus detection is not possible or when the defocus amount is larger than a predetermined value, and when focusing was performed during the previous release. A camera equipped with a focus detection device, comprising:
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 JPS63259523A (en) 1988-10-26
JP2590873B2 true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5019119B2 (en) * 2007-11-22 2012-09-05 オリンパスイメージング株式会社 camera

Also Published As

Publication number Publication date
JPS63259523A (en) 1988-10-26

Similar Documents

Publication Publication Date Title
JP2511409B2 (en) Automatic focus adjustment device
JP2526897B2 (en) Automatic focus adjustment device
JPH0797173B2 (en) Automatic focus adjustment device
JP2590873B2 (en) Camera with focus detection device
JPH0750239B2 (en) Automatic focus adjustment device
JPH0830780B2 (en) Automatic focus adjustment device
JPH0797172B2 (en) Automatic focus adjustment device
JPH0797174B2 (en) Automatic focus adjustment device
JPH0827423B2 (en) Automatic focus adjustment device
JPS62275208A (en) Automatic focusing device
JPS62269913A (en) Automatic focusing device
JP2705234B2 (en) Auto focus camera
JP2591086B2 (en) Display device for focus detection
JP2696923B2 (en) Automatic focusing device
JPS62269917A (en) Automatic focusing device
JP2697128B2 (en) Auto focus camera
JP2646749B2 (en) Auto focus camera
JP2743465B2 (en) Camera shake detection device
JP2697129B2 (en) Auto focus camera
JP2646750B2 (en) Auto focus camera
JP2697130B2 (en) Auto focus camera
JP3590815B2 (en) Image stabilization camera
JP2697131B2 (en) Auto focus camera
JP2697133B2 (en) Auto focus camera
JPS63259522A (en) Camera equipped with automatic focusing device

Legal Events

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

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20071219