JPH0797172B2 - Automatic focus adjustment device - Google Patents

Automatic focus adjustment device

Info

Publication number
JPH0797172B2
JPH0797172B2 JP62105421A JP10542187A JPH0797172B2 JP H0797172 B2 JPH0797172 B2 JP H0797172B2 JP 62105421 A JP62105421 A JP 62105421A JP 10542187 A JP10542187 A JP 10542187A JP H0797172 B2 JPH0797172 B2 JP H0797172B2
Authority
JP
Japan
Prior art keywords
lens
flag
focus
mode
release
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62105421A
Other languages
Japanese (ja)
Other versions
JPS62269936A (en
Inventor
正隆 浜田
賢司 石橋
徳治 石田
信行 谷口
博司 大塚
Original Assignee
ミノルタ株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ミノルタ株式会社 filed Critical ミノルタ株式会社
Priority to JP62105421A priority Critical patent/JPH0797172B2/en
Publication of JPS62269936A publication Critical patent/JPS62269936A/en
Publication of JPH0797172B2 publication Critical patent/JPH0797172B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Focusing (AREA)
  • Indication In Cameras, And Counting Of Exposures (AREA)
  • Automatic Focus Adjustment (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、自動焦点調節装置に関し、特に合焦表示を
備えた自動焦点調節装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic focus adjustment device, and more particularly to an automatic focus adjustment device having a focus display.

[従来の技術] 光軸に対して互いに対称な関係にある撮影レンズの第1
と第2の領域のそれぞれを通過した被写体からの光束を
それぞれ再結像させて二つの像を作り、この二つの像の
相互位置関係を求めて、結像位置の予定焦点位置からの
ずれ量及び方向(結像位置が予定焦点位置の前側か後側
か、即ち前ピンか後ピンか)を得るようにした焦点検出
装置が既に提案されている。このような焦点検出装置の
光学系は、例えば第24図に示すような構成になってお
り、この光学系は撮影レンズ(2)の後方の予定焦点面
(4)あるいはこの面から更に後方の位置にコンデンサ
レンズ(6)を有し、更にその後方に再結像レンズ
(8)(10)を有し、各再結像レンズ(8)(10)の結
像面には、例えばCCDを受光素子とするイメージセンサ
ー(12)(14)を配してある。各イメージセンサー(1
2)(14)上の像は、第25図に示すように、ピント合わ
すべき物体の像が予定焦点面よりも前方に結像する所謂
前ピンの場合は光軸(18)に近くなって互いに近づき、
反対に後ピンの場合はそれぞれ光軸(18)から遠くな
る。ピントが合った場合に2つの像の互いに対応しあう
二転の間隔は、焦点け検出装置の光学系の構成によって
規定される特定の距離となる。従って、原理的には2つ
の像の互いに対応し合う二点の間隔を検出すればピント
状態が分かることになる。
[Prior Art] The first photographic lens having a symmetric relationship with respect to the optical axis.
The light flux from the subject that has passed through each of the first and second areas is re-imaged to form two images, the mutual positional relationship between these two images is obtained, and the amount of deviation of the image formation position from the planned focus position And a direction (whether the imaging position is on the front side or the rear side of the planned focus position, that is, whether it is the front focus or the rear focus) has already been proposed. The optical system of such a focus detection device has, for example, a configuration as shown in FIG. 24. This optical system has a planned focal plane (4) behind the taking lens (2) or further behind this plane. It has a condenser lens (6) at the position and further has re-imaging lenses (8) and (10) behind it. For example, a CCD is provided on the image plane of each re-imaging lens (8) (10). Image sensors (12) and (14) as light receiving elements are arranged. Each image sensor (1
2) The image above (14) is close to the optical axis (18) in the case of the so-called front focus where the image of the object to be focused is formed in front of the planned focal plane, as shown in Fig. 25. Approach each other,
On the other hand, in the case of rear pins, they are far from the optical axis (18). When the two images are in focus, the distance between the two rotations corresponding to each other is a specific distance defined by the configuration of the optical system of the focus detection device. Therefore, in principle, the focus state can be known by detecting the interval between two points corresponding to each other in the two images.

この種の焦点検出光学系を内蔵したカメラの自動焦点調
節装置においては、CCDイメージセンサーによる被写体
光量の積分、CCDイメージセンサー出力を用いた焦点検
出演算(デフォーカス量演算)、デフォーカス量に応じ
たレンズ駆動、合焦位置での停止、シャッターレリーズ
というシーケンスをマイクロコンピュータよりなる制御
回路によってプログラム制御している。
In an automatic focus adjustment device for a camera with a built-in focus detection optical system, the CCD image sensor integrates the light amount of the object, the focus detection calculation (defocus amount calculation) using the CCD image sensor output, and the defocus amount The sequence of lens driving, stopping at the in-focus position, and shutter release is program-controlled by a control circuit composed of a microcomputer.

そして、この自動焦点調節装置は、被写体像が合焦近傍
に来た場合にも、連続的に上記のシーケンシャルな自動
焦点調節制御を行い、合焦位置を最終的に正確に設定出
来るように連続的な自動焦点調節(AF)を実行する。
尚、実際の撮影時においては、撮影レンズが正確に合焦
位置に来る必要はなく、撮影時の絞り値やレンズの焦点
距離からピントぼけが所定の許容量以下であればよいの
で、前記合焦位置は、一点ではなく幅を有する合焦ゾー
ンとして与えられる。
The automatic focus adjustment device continuously performs the sequential automatic focus adjustment control described above even when the subject image is near the in-focus position, so that the in-focus position can be finally set accurately. Automatic focus adjustment (AF).
It should be noted that in actual shooting, it is not necessary for the taking lens to accurately come to the in-focus position. The focus position is given as a focus zone having a width rather than a single point.

[発明が解決しようとする問題点] 従来の制御方法では、撮影レンズの駆動により、合焦ゾ
ーン内に入れば、レンズの駆動を停止した後、合焦表示
をするとともにレリーズ動作を許可してるため、合焦ま
でに時間がかかり、合焦表示を確認した上でシャッター
レリーズ操作を行う人にとってはシャッターチャンスを
逃してしまう恐れがあり、又、シャター釦を押した後に
実際にレリーズ動作が行なわれるまでのレリーズタイム
ラグの間を有効利用できなかった [問題点を解決するための手段] 本願発明の自動焦点調節装置は、撮影レンズの焦点状態
を検出する焦点検出手段と、 撮影レンズを合焦ゾーンへ駆動する駆動手段と、 露出制御開始信号の出力に伴い、所定のレリーズ動作が
開始され、そのレリーズ動作の完了後に露出動作を開始
する露出制御手段と、 上記レリーズ動作中に上記駆動手段を動作させることの
できる駆動制御手段と、 上記レリーズ中に駆動手段を動作させることで撮影レン
ズが露出開始前に上記合焦ゾーンに達するかどうかを判
定する判定手段と、 上記判定手段の判定の結果、合焦ゾーンに達すると判定
されると合焦表示を行う表示手段とを有することを特徴
とする。
[Problems to be Solved by the Invention] In the conventional control method, when the photographing lens is driven to enter the focusing zone, the driving of the lens is stopped, the focusing is displayed, and the release operation is permitted. Therefore, it takes time to focus, and for those who perform shutter release operation after confirming the focus display, there is a risk of missing a shutter opportunity.Also, the release operation is actually performed after pressing the shutter button. It was not possible to effectively use the release time lag until the above. [Means for solving the problem] The automatic focus adjusting device of the present invention focuses the focus detection means for detecting the focus state of the taking lens and the focusing lens. A predetermined release operation is started with the driving means for driving to the zone and the output of the exposure control start signal, and the exposure operation is started after the release operation is completed. Exposure control means, drive control means capable of operating the drive means during the release operation, and whether the photographing lens reaches the focus zone before the exposure starts by operating the drive means during the release operation. It is characterized by having a judging means for judging whether or not it is present, and a display means for displaying an in-focus state when it is judged that the in-focus zone is reached as a result of the judgment by the above-mentioned judging means.

[作用] 現時点では撮影レンズは、レリーズ可能な合焦ゾーン内
に位置していないが、シャッター釦を押した後、実際に
レリーズ動作が行われるまでのレリーズタイムラグ中
に、撮影レンズが前記合焦ゾーンに到達に到達できる見
込みがある場合は、撮影可能として、現時点でレリーズ
動作を許可するので、合焦ゾーンに達してからレリーズ
を許可する場合に比べて早めにシャッターを切ることが
でき、従ってシャッターチャンスを逃すといったことを
少なくできる。
[Operation] At the present time, the taking lens is not located in the focus zone in which the taking lens can be released. If it is possible to reach the zone, it is possible to shoot, and the release operation is allowed at this time, so the shutter can be released earlier than when the release is allowed after the focus zone is reached. You can reduce missed photo opportunities.

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

積分I6の中点P0から演算C6の終点P1まではレンズを動か
していないため、この間にも被写体の追随遅れが生じ
る。この遅れ分と、次のレンズ駆動中(尚、この間に
は、積分及び演算の1周期が入る。)の遅れ分とを考え
なければならない。
Since the lens is not moved from the midpoint P 0 of the integral I 6 to the end point P 1 of the calculation C 6 , a tracking delay of the subject also occurs during this period. It is necessary to consider this delay amount and the delay amount during the driving of the next lens (note that one cycle of integration and calculation is entered during this period).

即ち、レンズ停止中に、被写体が動いて追随遅れが生じ
たときには、積分I6から積分I7を通って積分I8の中点ま
での被写体の動きを予想してP1の時点で補正をかける必
要がある。即ち、この場合は、P1で2WRの補正を加えれ
ばよいことになる。
That is, when the subject moves and the tracking delay occurs while the lens is stopped, the movement of the subject from the integration I 6 through the integration I 7 to the midpoint of the integration I 8 is predicted, and correction is performed at the time point P 1. You need to call. That is, in this case, the correction of 2WR at P 1 should be added.

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

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

次に、第28図を用いて被写体のカメラ光軸方向の移動に
対する合焦検出の単位周期TI当たりの傾きを求める方法
を説明する。
Next, a method for obtaining the tilt 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,S3
〜S4またはT1〜T3,T1′〜T3′等である。そして、これ
らは、連続しており、同一被写体を見ているものとし
て、各時間は同じと見なす。現在位置を演算C3とする。
前回の積分によって求まるデフォーカス量をLERRとす
る。尚、これが求まるのはT3の時点である。今回の積分
によって求まるデフォーカス量をERRとする。これが求
まるのは、T3′の時点である。
In the figure, the unit focus detection cycle means S 1 to S 2 , S 3
˜S 4 or T 1 ˜T 3 , T 1 ′ ˜T 3 ′. Then, it is assumed that these are continuous and that the same subject is viewed, and that each time is regarded as the same. The current position is calculated as C 3 .
The defocus amount obtained by the previous integration is LERR. It should be noted that this is obtained at the time of T 3 . The defocus amount obtained by this integration is ERR. This is obtained at time T 3 ′.

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

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

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

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

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

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

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

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

次に積分時間が長いモードであるか否かを示すフラグ
(長積F)を判定し、そのフラグがセットされていれば
80msec経過するのを待ち、80msec経過しても積分が終了
しなければ、補助発光装置(13)をOFFして、ステップ
#110に進む(#85〜#95)。上記フラグ(長積F)が
セットされていないときには、積分終了したときあるい
は積分終了していない時でも20msec経過すればステップ
#110にすすむ(#100,105)。この積分終了は、CCD
(9)の近傍に設けられた積分時間制御用モニターの受
光素子に入射する光量が所定以上になったときに行なわ
れるが、本願発明とは直接関係がないのでその説明は省
略する。
Next, a flag (long product F) indicating whether or not the mode is a long integration time is determined, and if the flag is set,
After waiting 80 msec, if the integration is not completed even after 80 msec, the auxiliary light emitting device (13) is turned off and the process proceeds to step # 110 (# 85 to # 95). When the above flag (long product F) is not set, the procedure proceeds to step # 110 when 20 msec has elapsed even when the integration is completed or when the integration is not completed (# 100, 105). The end of this integration is CCD
This is performed when the amount of light incident on the light receiving element of the integration time control monitor provided in the vicinity of (9) exceeds a predetermined value, but the description thereof is omitted because it is not directly related to the present invention.

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

この理由を第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″の結果として、被写***置RE
1からのデフォーカス量をエンコーダの移動数に変換し
たものが入力される。この被写***置RE1は、積分I″
の中心時点における像面からのデフォーカス量を示す位
置である。
The reason for this will be described with reference to the graph in FIG. In this graph, the horizontal axis represents time, and the vertical axis represents the movement of the subject image on the film surface (a) and the movement of the lens (b).
The movement amounts of and are shown. In the case of this figure, integration / calculation is performed while driving the lens. T 1 ,
T 1 ′, T 1 ″ is the integration start time, T 2 , T 2 ′, T 2 ″ is the integration end time, T 3 , T 3 ′, T 3 ″ is the operation end time.
T 1 ′ ≈ T 3 ″, T 1 ≈ T 3 ′. The reason is that the time required for focus detection is mostly spent on integration, data dump, focus detection calculation (# 60 to # 125) described above. MIL indicating the relative lens position of the center of the previous integral I ′
As the value, 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 inserted. The event counter at the time point T 1 ′ at the end of the calculation C ″ shows the object position RE as the result of the calculation C ″.
The defocus amount from 1 converted to the number of movements of the encoder is input. This subject position RE1 is the integral I ″
It is a position indicating the defocus amount from the image plane at the center time point of.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

第2図に戻り、ステップ#185において、焦点検出が不
能と判定したときには、第9図のLOWCONのフローに進
む。第9図のLOWCONのフローにおいて、マイコン(1)
はまず追随フラグ(追随F)がセットされているか否か
を判定し、追随フラグ(追随F)がセットされている場
合には、非更新フラグ(非更新F)をセットする(#52
0,#525)。そして、ここを通過するのが1回目である
ことを示すフラグFIFがセットされているか否かを判定
し、セットされていないとき、即ちここを通るのが1回
目のときこのフラグFIFをセットし、変形N1を0として
第2図のステップ#55以下のCDINTのフローに進む(#5
30,#626,#630)。
Returning to FIG. 2, when it is determined in step # 185 that focus detection is impossible, the flow proceeds to LOWCON in FIG. In the LOWCON flow of Fig. 9, the microcomputer (1)
First, it is determined whether or not the follow-up flag (following F) is set. If the follow-up flag (following F) is set, the non-update flag (non-update F) is set (# 52).
0, # 525). Then, it is determined whether or not the flag FIF indicating that this is the first time to pass is set, and when it is not set, that is, the first time to pass through here, this flag FIF is set. , The modification N1 is set to 0, and the process proceeds to the CDINT flow from step # 55 onward in FIG. 2 (# 5
30, # 626, # 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 to determine whether or not this value N1 is 2, and if it is not 2, step # 55 in FIG. The process proceeds to the flow of CDINT below, and when it is 2, the follower flag (following F) and the non-update flag (non-update F) are reset, and the process proceeds to step # 555 (# 535-
# 550). In steps # 520 to # 550, # 625, and # 630 described above, if the subject moves out of the focus detection area in the tracking mode, the defocus amount suddenly increases,
Since it may be determined that the focus cannot be detected, measures are taken against this. That is, if the focus can be detected even if the defocus amount suddenly increases, the correction amount
This means that WR becomes large, and at this time, the processing is performed in steps # 500 to # 510 in FIG. 8 described above. On the other hand, when it is determined in step # 185 in FIG. 2 that focus detection is not possible, the flow proceeds to LOWCON in FIG. Then, when it is determined that the focus detection is impossible in the tracking mode, that is, when the subject deviates from the focus detection area, the normal focus detection impossible process from step # 555 is not performed, and based on the defocus amount calculated last time. I am going to drive the lens. On the other hand, if the follow-up flag is not set in step # 520, the flag FIF is reset and the process proceeds to step # 555.

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

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

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

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

イベントカウンターEVENTCNTへの入力を終えるとステッ
プ#695のイベントカウンターセット(EVENTCNTセッ
ト)のサブルーチンに進み、このサブルーチンを終了す
るとステップ#700に進む。このサブルーチンを第10図
右上に示し説明する。
When the input to the event counter EVENTCNT is completed, the process proceeds to the event counter set (EVENTCNT set) subroutine in step # 695, and when this subroutine is completed, the process proceeds to step # 700. This subroutine will be described with reference to the upper right of FIG.

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

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

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

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

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

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

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

次に、第10図にもどり、右下に示したイベントカウンタ
割込INTEVENTを説明する。イベントカウンタ(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), and when the count value of this event counter becomes 0, this interrupt INTEVENT flow is entered. In this flow, first in step # 2550, INTEVE
Flag RESF that prohibits NT interrupt and indicates that the release is in progress.
If the flag RESF is set, 40 is added to the count value of the drive counter EVENCNT, and the process proceeds to the timer R setting subroutine described later to control the rotation speed of the motor (# 2550, # 2555, # 2570, # 2575.) In step # 2555, if the flag RESF is not set and the release is not in progress, add the count value of the near zone counter NZC to the count value of the drive counter ENZCNT and proceed to the timer I set subroutine described later. , After the end of this subroutine, the near zone flag NZF is set, and the process proceeds to the flow of WNZ3 starting from step # 710 (# 2560 to # 2567).

次に第12図に示したカウンター割込(CNTR割込)を説明
する。このカウンター割込は第1図のエンコーダ(11)
からパルスが発生するたびに実行される。このフローに
入るとまず、マイコン(1)は駆動カウンターEVENCNT
のカウント値を1つ減算し、駆動カウンタENZCNTのカウ
ント値が0になったか否かを判定する(#800〜#80
5)。そして駆動カウンターEVENCNTのカウント値が0で
ない場合にはステップ駆動を示すステップモードフラグ
STEPFがセットされているか否かを判定し(#815)、セ
ットされているときにはステップ#835に進む。ステッ
プ#815でフラグSTEPFがセットされていないときはステ
ップ#820へ進み、精度優先モードでないとき、あるい
は精度優先モードであっても駆動カウンターENZCNTのカ
ウント値が6を越えるときは、ステップ駆動をしないも
のとして、ステップ#840に進む。ここでは本カウンタ
割込の前にタイマ割込が入ったことを示すフラグTIPASF
がセットされているか否かを判定し、セットされている
ときには、これをリセットしてリターンする。このフラ
グ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 the encoder (11) in Fig. 1.
Is executed every time a pulse is generated from. When entering this flow, first, the microcomputer (1) drives the drive counter EVENCNT.
1 is subtracted from the count value of to determine whether the count value of the drive counter ENZCNT has become 0 (# 800 to # 80).
Five). If the count value of the drive counter EVENCNT is not 0, the step mode flag indicating step drive
It is determined whether or not STEPF is set (# 815), and 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, and if the count value of the drive counter ENZCNT exceeds 6 even in the precision priority mode, the step drive is not performed. As a matter of fact, proceed to step # 840. Here, a flag TIPASF indicating that a timer interrupt has been entered before this counter interrupt
Is set, and if it is set, it is reset and the process returns. When this flag TIPASF is not set, the motor is de-energized (# 845). On the other hand, in step # 820, the accuracy priority mode is set, and the count value of the drive counter ENZCNT is 6
In the following cases, the process proceeds from step # 825 to step # 830, the flag STEPF indicating the step mode is set, the step drive flag STPDRF is further set, and then 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 release has been made is set. When it is set, the routine proceeds to the timer R set sub-retin, and when it is not set, the routine proceeds to the timer I set subroutine.
After the subroutine ends, it returns (# 850 to # 860).
The timer R setting will be performed at the time of the explanation at the time of release.

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

このDRVEDのフローでは、まず、ワンショットモードに
おいて駆動カウンターENZCNTのカウント値が0になった
ときのフローを一度通過したことを示すフラグ1STDFが
セットされているか否かを判定し、セットされている場
合には第2のステップ#55以下の焦点検出のフローCDIN
Tに進む(#895)。ステップ#895でこのフラグ1STDFが
セットされていないときには、ステップ#900に進んで
スイッチ(S4)の状態からコンティニュアスモードがワ
ンショットモードかを判定し、ワンショットモードであ
れば合焦フラグをセットし、更にこのフローを一度通過
したことを示すフラグ1STDFをセットして焦点検出のフ
ローCDINTに進む(#900,#910,#915)。ステップ#90
0でコンティニユアスモードである場合には追随フラグ
がセットされているか否かを判定して、セットされてい
ればリターンしてそのときのデータを利用して引き続き
焦点検出を行うことによって追随性を上げセットされて
いないときには第6図のステップ#260以下のINFZのフ
ローに進んで合焦表示等の制御を行なう(#905)。
In this DRVED flow, first, it is determined whether or not the flag 1STDF, which indicates that the flow once passed the count value of the drive counter ENZCNT in the one-shot mode, has been set to 0, is set. In the case of the second step # 55, the flow of focus detection CDIN
Proceed to T (# 895). If this flag 1STDF is not set in step # 895, the process proceeds to step # 900 to determine from the state of the switch (S4) whether the continuous mode is the one-shot mode. If it is the one-shot mode, set the focus flag. The flag 1STDF indicating that the flow has once passed is set, and the flow proceeds to the focus detection flow CDINT (# 900, # 910, # 915). Step # 90
When the continuous mode is set to 0, it is determined whether or not the tracking flag is set, and if it is set, the tracking returns by using the data at that time to continue focus detection. If it is not set, the flow advances 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を判定して、
ステップモードであるか否かを判定し、ステップモード
でなければタイマ割込を行なった事を示すフラグTIPASF
をセットし、モーターに通電してリターンする(#965
〜#975)。ステップモードであるときは、ステップ駆
動を行なうことを示すフラグSTPDPFがセットされている
か否かを判定し、セットされている場合は、モーターに
通電し、セットされていないときにはモーターの通電を
切ってリターンする(#975,#980,#985)。
Figure 13 shows the timer interrupt flow. This timer interrupt is executed when no pulse is sent from the encoder within the time set by the timer 1 set routine. In FIG. 13, the microcomputer (1) determines the flag RESF in step # 950 to determine whether or not this tire interruption is performed during release. If not, the subroutine of timer 1 set described later is performed. If the release is in progress, the process proceeds to the timer R setting subroutine described later (# 950 to # 960). Next, determine the flag STEPF,
A flag TIPASF indicating whether or not the timer interrupt is determined by determining whether the step mode is set or not
Set, energize the motor and return (# 965
~ # 975). When in the step mode, it is determined whether or not the flag STPDPF indicating step driving is set. If it is set, the motor is energized, and if it is not set, the motor is deenergized. Return (# 975, # 980, # 985).

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

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

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

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

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

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

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

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

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

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

次に、上記ステップ#1065の演算IIのサブルーチンを第
18図に示し説明する。このサブルーチンでは、まず、ス
テップ#2650でAF優先モードか否かを判定して、AF優先
モードであれば時間TCを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 operation II in step # 1065 above is executed.
It will be described with reference to FIG. In this subroutine, first, in step # 2650, it is determined whether or not the AF priority mode is set. In the AF priority mode, the time TC is set to 100 msec. In the release priority mode, the time TC is set to 50 msec.
The ratio R is obtained by dividing TC by the unit focus detection time TI, and in step # 2670 the defocus amount (count WR) of the subject that moves within the unit focus detection time is multiplied by this ratio R to delay the defocus following exposure. The amount WS is obtained, and WS is added to the count value of the drive counter ENZCNT in step # 2675 to newly obtain the count value of the drive counter ENZCNT and the process returns. In Step # 1095, which was advanced from Steps # 1055, # 1075, and # 1090, the motor speed is low speed (5000 rpm).
If the speed is not low (that is, 20,000 rpm), the motor cannot be stopped immediately even if the motor stop signal is output, so the motor brake signal is output (# 1095). , # 1100). And
In steps # 1103 and # 1107, the count interrupt and the timer interrupt are prohibited, and the process proceeds to step # 1190. Directly to step # 11 when low speed in step # 1095
Go to 90. When it is in the AF priority mode in step # 1025, it is determined whether or not the flag AFEF indicating the end of focus detection is set, and if not set, the release flag RESF is reset and the process returns (# 1110, # 1.
170).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[発明の効果] 以上詳述したように、この発明は、レリーズタイムラグ
中にレンズ駆動量だけ合焦ゾーンを広げたため、従来の
合焦ゾーンよりも時間的に早く合焦表示がなされるよう
になり、素早くシャッターレリーズが行えるようにな
り、従来のように合焦表示を確認した上でシャッターレ
リーズ操作を行うためにシャッターチャンスを逃してし
まうといったことを少なくすることができる。しかも、
レリーズタイムラグ中に合焦ゾーンまで駆動されるの
で、ピントの合った撮影が行える。
[Effects of the Invention] As described in detail above, according to the present invention, since the focusing zone is expanded by the lens drive amount during the release time lag, the focusing display can be performed earlier than the conventional focusing zone. As a result, the shutter release can be performed quickly, and it is possible to reduce the chance of missing a shutter opportunity because the shutter release operation is performed after confirming the focus display as in the conventional case. Moreover,
The focus zone is driven during the release time lag, so you can shoot in focus.

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

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

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

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】撮影レンズの焦点状態を検出する焦点検出
手段と、 撮影レンズを合焦ゾーンへ駆動する駆動手段と、 露出制御開始信号の出力に伴い、所定のレリーズ動作が
開始され、そのレリーズ動作の完了後に露出動作を開始
する露出制御手段と、 上記レリーズ動作中に上記駆動手段を動作させることの
できる駆動制御手段と、 上記レリーズ中に駆動手段を動作させることで影響レン
ズが露出開始前に上記合焦ゾーンに達するかどうかを判
定する判定手段と、 上記判定手段の判定の結果、合焦ゾーンに達すると判定
されると合焦表示を行う表示手段とを有することを特徴
とする自動焦点調節装置。
1. A focus detecting means for detecting a focus state of a photographing lens, a driving means for driving the photographing lens to a focusing zone, and a predetermined release operation being started in response to the output of an exposure control start signal. Exposure control means for starting the exposure operation after completion of the operation, drive control means for operating the drive means during the release operation, and operation of the drive means during the release for the influential lens to start exposure In addition, it is characterized by having a determination means for determining whether to reach the focus zone, and a display means for performing focus display when it is determined that the focus zone is reached as a result of the determination by the determination means. Focus adjustment device.
JP62105421A 1987-04-27 1987-04-27 Automatic focus adjustment device Expired - Lifetime JPH0797172B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Related Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
JPS62269936A JPS62269936A (en) 1987-11-24
JPH0797172B2 true JPH0797172B2 (en) 1995-10-18

Family

ID=14407133

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH0797172B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2770450B2 (en) * 1989-07-26 1998-07-02 ミノルタ株式会社 camera
USRE36546E (en) * 1990-11-29 2000-02-01 Asahi Kogaku Kogyo Kabushiki Kaisha Automatic focusing device
FR2670022A1 (en) * 1990-11-29 1992-06-05 Asahi Optical Co Ltd AUTOMATIC FOCUSING DEVICE.
US5291235A (en) * 1990-11-29 1994-03-01 Asahi Kogaku Kogyo Kabushiki Kaisha Automatic focusing device
JP2576503Y2 (en) * 1991-03-15 1998-07-16 株式会社ニコン Camera with focus display

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5652726A (en) * 1979-10-05 1981-05-12 Canon Inc Camera provided with automatic focus controlling device

Also Published As

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

Similar Documents

Publication Publication Date Title
JP2511409B2 (en) Automatic focus adjustment device
JP2540827B2 (en) Automatic focus adjustment device
JP2526897B2 (en) Automatic focus adjustment device
JPH0797173B2 (en) Automatic focus adjustment device
JPH0797172B2 (en) Automatic focus adjustment device
JPH0750239B2 (en) Automatic focus adjustment device
JPH0797174B2 (en) Automatic focus adjustment device
JPH0830780B2 (en) Automatic focus adjustment device
JPH0875987A (en) Range-finding device and automatic focusing device of camera
JPH0827423B2 (en) Automatic focus adjustment device
JP2590873B2 (en) Camera with focus detection device
JPH0769512B2 (en) Camera autofocus controller
JPS62269913A (en) Automatic focusing device
JPS62275208A (en) Automatic focusing device
JPS62269938A (en) Automatic focus adjusting device
JP2591086B2 (en) Display device for focus detection
JPS62269917A (en) Automatic focusing device
JPH06138378A (en) Camera provided with focus detecting means and line-of-sight detecting means
JP2921868B2 (en) Camera exposure control device
JPS62269921A (en) Automatic focusing device
JPS62269916A (en) Automatic focusing device
JP3007656B2 (en) Auto focus shooting device
JPS63259522A (en) Camera equipped with automatic focusing device
JPH0714969Y2 (en) Camera autofocus device
JPH02181126A (en) Camera

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term