JPH0827423B2 - Automatic focus adjustment device - Google Patents

Automatic focus adjustment device

Info

Publication number
JPH0827423B2
JPH0827423B2 JP10286387A JP10286387A JPH0827423B2 JP H0827423 B2 JPH0827423 B2 JP H0827423B2 JP 10286387 A JP10286387 A JP 10286387A JP 10286387 A JP10286387 A JP 10286387A JP H0827423 B2 JPH0827423 B2 JP H0827423B2
Authority
JP
Japan
Prior art keywords
lens
flag
amount
focus
mode
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 - Fee Related
Application number
JP10286387A
Other languages
Japanese (ja)
Other versions
JPS62269914A (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 JP10286387A priority Critical patent/JPH0827423B2/en
Publication of JPS62269914A publication Critical patent/JPS62269914A/en
Publication of JPH0827423B2 publication Critical patent/JPH0827423B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] この発明はカメルの自動焦点調節装置に関し、特に種
々のモードで撮影レンズを駆動する自動焦点調節装置に
関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic focusing device for a camel, and more particularly to an automatic focusing device for driving a taking lens in various modes.

[従来の技術] 光軸に対して互いに対称な関係にある撮影レンズの第
1と第2の領域のそれぞれを通過した被写体からの光束
をぞれぞれ再結像させて二つの像を作り、この二つの像
の相互位置関係を求めて、結像位置の予定焦点位置から
のずれ量及び方向(結像位置が予定焦点位置の前側か後
側か、即ち前ピンか後ピンか)を得るようにした焦点検
出装置が既に提案されている。このような焦点検出装置
の光学系は、例えば第24図に示すような構成になってお
り、この光学系は撮影レンズ(2)の後方の予定焦点面
(4)あるいはこの面から更に後方の位置にコンデンサ
レンズ(6)を有し、更にその後方に再結像レンズ
(8)(10)を有し、各再結像レンズ(8)(10)の結
像面には、例えばCCD受光素子とするイメージセンサー
(12)(14)を配してある。各イメージセンサー(12)
(14)上の像は、第25図に示すように、ピント合わすべ
き物体の像が予定焦点面よりも前方に結像する所謂前ピ
ンの場合は光軸(18)に近くなって互いに近づき、反対
に後ピンの場合はそれぞれ光軸(18)から遠くなる。ピ
ントが合った場合に2つの像の互いに対応しあう二点の
間隔は、焦点検出装置の光学系の構成によって規定され
る特定の距離となる。従って、原理的には2つの像の互
いに対応し合う二点の間隔を検出すればピント状態がわ
かることになる。この種の焦点検出光学系を内蔵したカ
メラの自動焦点調節装置においては、CCDイメージセン
サーによる被写体光量の積分、CCDイメージセンサー出
力を用いた焦点検出演算(デフォーカス量演算)、デフ
ォーカス量に応じたレンズ駆動、合焦位置での停止、シ
ャッターレリーズというシーケンスをマイクロコンピュ
ータよりなる制御回路によってプログラム制御してい
る。そして、この自動焦点調節装置は、被写体像が合焦
近傍に来た場合にも、連続的に上記のシーケンシャルな
自動焦点調節制御を行い、合焦位置を最終的に正確に設
定出来るように連続的な自動焦点調節(AF)を実行す
る。
[Prior Art] The light fluxes from the subject that have respectively passed through the first and second regions of the taking lens, which have a symmetrical relationship with respect to the optical axis, are re-imaged to form two images. , The mutual positional relationship between these two images is obtained, and the shift amount and direction of the image forming position from the planned focus position (whether the image forming position is the front side or the rear side of the planned focus position, that is, whether the front focus or the rear focus) A focus detection device adapted to obtain the same 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. A condenser lens (6) is provided at a position, and re-imaging lenses (8) and (10) are further provided behind the condenser lens (6). The image sensor (12) (14) used as an element is arranged. Each image sensor (12)
(14) As shown in Fig. 25, the upper image is closer 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. , On the contrary, in the case of the rear pin, they are far from the optical axis (18). When the two images are in focus, the distance between the two points 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 distance between two corresponding points of the two images. 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 subject, 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. This automatic focus adjustment device continuously performs the above-described sequential automatic focus adjustment control 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).

ところで、上記のような自動焦点調節装置で、被写体
がカメラに向かって接近してくる場合や、遠ざかって行
く場合等では1回の焦点検出によってデフォーカス量を
検出してこのデフォーカス量に基づいて撮影レンズを合
焦位置へ移動させたときには、その間に被写体が動いて
いるため、実際には被写体にピントが合った状態ではな
くなっている。
By the way, when the subject approaches the camera or moves away from the camera with the above-described automatic focus adjustment device, the defocus amount is detected by one focus detection, and the defocus amount is calculated based on the defocus amount. When the photographing lens is moved to the in-focus position by moving the subject, the subject is not in focus because the subject is moving during that time.

そこで、高速で移動する被写体に対する追従遅れを少
なくするために、焦点検出のための積分をでき得る限り
に行うのが望ましく、例えば特開昭56−78823号ではレ
ンズを一定速度で駆動しているときに積分を行い(移動
積分)、積分中のレンズ移動量を補正する(移動分補
正)ことが開示されている。また、特開昭60−107011号
では、レンズ駆動モータの加速,低速及び減速中での移
動積分及び移動分補正において、それぞれ積分移動分補
正のための補正係数を変えている。
Therefore, in order to reduce the tracking delay with respect to a subject moving at high speed, it is desirable to perform integration for focus detection as long as possible. For example, in JP-A-56-78823, the lens is driven at a constant speed. It is disclosed that the integration is sometimes performed (movement integration) and the lens movement amount during the integration is corrected (movement correction). Further, in Japanese Patent Laid-Open No. 60-101071, the correction coefficient for the integral moving amount correction is changed in the moving integral and moving amount correction during acceleration, low speed and deceleration of the lens drive motor.

[発明が解決しようとする課題] ところが、前者の装置のようにレンズ速度が一定であ
るという仮定で移動分補正を行うと、速度変化中には正
確な補正が行えないという問題がある。この問題を解決
するには後者の装置のように加速、定速、減速に応じて
補正係数を変えるようにすればよいが、制御が複雑にな
るし、高速時には誤差が無視できない程になる。又、速
度変化中には焦点検出を行わないようにすればよいが、
少しの速度変更時にも焦点検出が中断されるため焦点検
出の繰り返し周期が遅くなり、被写体に対する追随遅れ
が大きくなる。
[Problems to be Solved by the Invention] However, when the movement amount correction is performed on the assumption that the lens speed is constant as in the former device, there is a problem that accurate correction cannot be performed during speed change. To solve this problem, the correction coefficient may be changed in accordance with acceleration, constant speed, and deceleration as in the latter device, but the control becomes complicated and the error cannot be ignored at high speed. Also, it suffices if focus detection is not performed during speed changes.
Since focus detection is interrupted even when the speed is slightly changed, the repetition cycle of focus detection is delayed, and the tracking delay with respect to the subject is increased.

そこで、本発明は、レンズ速度の変化中に、誤差の少
ない小点検出が行え、かつ、焦点検出の繰り返しが中断
されることの少ない焦点検出装置の提供を目的とする。
Therefore, it is an object of the present invention to provide a focus detection device that can detect small points with a small error and that the repetition of focus detection is not interrupted during a change in lens speed.

[問題点を解決するための手段] 本願発明は、撮影レンズを通過した被写体光を受光す
る電荷蓄積型受光手段と、 上記受光手段の受光出力に基づいて、撮影レンズの合
焦位置までの移動量を演算する演算手段と、 上記撮影レンズを駆動する駆動手段と、 上記演算された移動量を上記駆動手段の駆動量として
設定する設定手段と、 上記設定された駆動量に基づいて上記駆動手段を駆動
する駆動制御手段と、 上記駆動手段による撮影レンズ移動中に上記受光手段
および演算手段を繰り返し動作させる制御手段と、 撮影レンズ移動中の上記受光出力に基づいて上記演算
手段の演算がなされた場合に、演算された移動量を上記
受光手段動作中のレンズの移動量に基づいて補正する補
正手段と、 上記駆動制御手段により駆動される撮影レンズの移動
速度の変化中、かつ、上記駆動手段により駆動される撮
影レンズの移動速度が所定の速度よりも速い場合には、
上記補正手段の動作を禁止し、上記駆動制御手段により
駆動される撮影レンズの移動速度の変化中で、かつ、上
記駆動制御手段による駆動される撮影レンズの移動速度
が所定の速度よりも遅い場合には上記禁止を行わないよ
う制御する制御手段とを有することを特徴とする。
[Means for Solving Problems] According to the present invention, a charge storage type light receiving means for receiving subject light that has passed through a photographing lens, and movement of the photographing lens to a focusing position based on a light reception output of the light receiving means. Calculating means for calculating the amount, driving means for driving the photographing lens, setting means for setting the calculated moving amount as the driving amount of the driving means, and the driving means based on the set driving amount Driving control means, a control means for repeatedly operating the light receiving means and the computing means during movement of the photographing lens by the driving means, and calculation of the computing means based on the received light output during movement of the photographing lens. In this case, a correction means for correcting the calculated movement amount based on the movement amount of the lens during the operation of the light receiving means, and a movement of the photographing lens driven by the drive control means. During speed change, and, when the moving speed of the photographing lens which is driven by the drive means is higher than a predetermined speed,
When the operation of the correction means is prohibited, the moving speed of the taking lens driven by the drive control means is changing, and the moving speed of the taking lens driven by the drive control means is slower than a predetermined speed. And a control means for controlling the prohibition not to be performed.

[作用] 上記構成によると、レンズ移動速度の変化中、かつレ
ンズ移動速度が所定の速度よりも速い場合、つまり、移
動分補正を行うと、誤差が無視できない場合に、移動分
補正は禁止され、前のデータでもって撮影レンズが駆動
される。一方、レンズ移動速度の変化中で、かつレンズ
移動速度が所定の速度よりも遅い場合、つまり移動分補
正を行っても誤差が少ない場合は、移動分補正が許可さ
れる。
[Operation] According to the above configuration, when the lens moving speed is changing and the lens moving speed is faster than a predetermined speed, that is, when the moving amount correction is performed and the error cannot be ignored, the moving amount correction is prohibited. , The taking lens is driven by the previous data. On the other hand, when the lens moving speed is changing and the lens moving speed is slower than a predetermined speed, that is, when the error is small even if the moving amount correction is performed, the moving amount correction is permitted.

[実施例] 第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 integral I 6 will follow at the time P 1. 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 is considered that it will catch up after the time TI at the latest. Goodbye, there is a delay in tracking the speed of the subject that requires the lens to be driven for a time that exceeds the correction amount WR at this time TI. By coming, you can say that you are catching up with the subject. Also, in this model, the movement of the subject is assumed to be a linear function of the defocus amount on the film surface, but in reality, for example, when the subject approaches the camera at a constant speed, the defocus amount is Change of is not a linear function,
It is a higher-order function. In this case as well, even if the tracking correction is performed, the correction amount is insufficient. 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周期が入る。)の遅れ分とを考え
なければならない。即ち、レンズ停止中に、被写体が動
いて追随遅れが生じたときには、積分I6から積分I7を通
って積分I8の中点までの被写体の動きを予想してP1の時
点で補正をかける必要がある。即ち、この場合は、P1
2WRの補正を加えればよいことになる。
Since the middle point P 0 of the integrating I 6 to the end P 1 of the operation C 6 does not move the lens, tracking delay of the object is also occur during this time. It is necessary to consider the delay and the delay during the next driving of the lens (in this period, one cycle of integration and calculation is included). That is, when the subject moves and the tracking delay occurs while the lens is stopped, the movement of the subject from the integration I 6 through the integration I 7 to the midpoint of the integration I 8 is predicted, and correction is performed at the time point P 1. You need to call. That is, in this case, P 1
You just have to add 2WR correction.

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

第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 is applied enters the tracking mode when P 4, integrated drives the computed defocus amount only lens based on Tokurae was data I 3, without stopping the lens in Q 1 be finished driving, further 2W
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 exactly to two cycles of the focus detection calculation from the midpoint of the detection integrated I 4 made followers delay. This is an attempt to perform correction driving for a total of two cycles, which is one cycle required until the detection result of this time is output, within the time of one cycle when the next result is output. In the following, the same operation is repeated, but if the lens drive cannot catch up, that is, if the drive count value to which the correction value is added during the follow-up mode is larger than the predetermined count value, the lens drive speed is switched. . In the figure, it is switched at the Q 2. Even if the drive speed is switched,
The correction value and the target value are considered in the same way. If it catches up on the way and the driving direction is reversed according to the calculation result, the follow-up correction is not performed.

次に、第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,S
3〜S4またはT1〜T3,T1′〜T3′等である。そして、これ
らは、連続しており、同一被写体を見ているものとし
て、各時間は同じと見なす。現在位置を演算C3とする。
前回の積分によって求まるデフォーカス量をLERRとす
る。尚、これが求まるのはT3の時点である。今回の積分
によって求まるデフォーカス量をERRとする。これが求
まるのは、T3′の時点である。
In the figure, the unit focus detection cycle is defined as S 1 to S 2 , S
3 to S 4 or T 1 through T 3, a T 1 '~T 3' and the like. Then, assuming that these are continuous and the same subject is viewed, 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. Incidentally, this is the obtained is a time of T 3. The defocus amount obtained by this integration is defined as ERR. This is obtained at T 3 ′.

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

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

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

(10)はマイコン(1)からの信号に基づいて、焦点
調節のために不図示の撮影レンズの焦点調節光学系を駆
動するモーター(M)を制御するモーター制御回路であ
り、上記“駆動制御手段”に相当し、この“駆動制御手
段”は第10図(b)のステップ#700で示される。又、
モータ(M)は上記“駆動手段”に相当する。(11)は
モーター(M)の回転をモニターするエンコーダで、モ
ーター(M)が1回転するたびに16個のパルスを発生す
るようになっている。(12)は撮影レンズに設けられた
レンズ回路で、レンズ毎に固有なデータをマイコン
(1)に送る。(13)は焦点検出時に用いられる補助光
発光装置である。(14)は焦点検出状態を表示する表示
回路、(15)は連続的に撮影を繰り返す連写モード時に
一定の時間毎にレリーズ信号を発生するタイマである。
(E)は電源電池であり、マイコン(1)、後述のスイ
ッチ、リセット用抵抗(RR)及びコンデンサ(CR)、及
び給電用トランジスタ(Tr1)に電源を直接供給する。
これ以外の回路には給電用トランジスタ(Tr1)を介し
て電池の電圧が供給される。
(10) is a motor control circuit that controls a motor (M) that drives a focus adjustment optical system of a photographing lens (not shown) for focus adjustment based on a signal from the microcomputer (1). The "driving control means" corresponds to the "means" and is shown in step # 700 of FIG. 10 (b). or,
The motor (M) corresponds to the "driving means". (11) is an encoder that monitors the rotation of the motor (M), and generates 16 pulses each time the motor (M) makes one rotation. Reference numeral (12) is a lens circuit provided in the taking lens, which sends unique data to each lens to the microcomputer (1). (13) is an auxiliary light emitting device used at the time of focus detection. (14) is a display circuit for displaying a focus detection state, and (15) is a timer for generating a release signal at regular time intervals in continuous shooting mode in which shooting is continuously repeated.
(E) is a power supply battery, which directly supplies power to the microcomputer (1), the switch (to be described later), the reset resistor (RR) and the capacitor (CR), and the power supply transistor (Tr 1 ).
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) turns on when the release button is pressed down to the second stroke longer than the first stroke, and this ON causes the microcomputer (1) to execute a release flow described later with reference to FIG. 16 (a). (S3) is a switch that turns on when the mirror is up, and when the release member (not shown) is charged by winding the film by the one-frame winding mechanism, the switch (S3) turns off.
It becomes the state of. (S4) is a so-called one-shot mode in which the focus detection operation is stopped once the photographing lens reaches a focus state, and a so-called continuous mode in which focus detection is continued even once the focus state is reached. Switch to select. (S5) is an exposure mode setting switch, which outputs a 2-bit signal to the microcomputer (1) according to the set mode.
Sent to The exposure control mode of the camera according to the present embodiment includes a program mode (hereinafter referred to as P mode), an aperture priority mode (hereinafter referred to as A mode), a shutter speed priority mode (hereinafter referred to as S mode), and a manual mode (hereinafter referred to as M mode). There are four types.

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

以上の回路構成において、カメラに電池が装着される
と、リセット用抵抗(RR)及びコンデンサ(CR)に電源
が供給されて、マイコン(1)のリセット端子(RE)に
“Low"レベルから“High"レベルに変化する信号が入力
され、マイコン(1)は第2図のリセットルーチン(RE
SET)を実行する。マイコン(1)は、まずフラグ及び
出力ポートをリセットし初期状態にする(#5,#10)。
次に、補助光発光装値(13)をOFFし、表示を消して、
レンズの駆動を停止し、フィルム巻き上げ完了していな
い時にはモーターを駆動し、巻き上げが完了すれば給電
用トランジスタ(Tr1)をOFFする(#15〜#30)。そし
て、補助光発光のための補助光フラグ(補助光F)をリ
セットして、端子(OP3)を“Low"レベルにして、マイ
コン(1)は停止する(#35,#40)。上記ステップ#1
5〜#40は主として後述のステップ#55から移行してく
るときに有効となる。
In the above circuit configuration, when a battery is 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). The microcomputer (1) first resets the flag and the output port to an initial state (# 5, # 10).
Next, turn off the auxiliary light emission component (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). Step # 1 above
5 to # 40 are mainly effective when shifting from step # 55 described later.

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

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

ステップ#110では、積分終了時のレンズの相対位置
を知るために、イベントカウンタの値を(CT2)として
読み取る。更にマイコン(1)は、CCDデータのダンプ
を行って、このデータを用いて焦点検出の演算行なう
(#120,#125)。このステップ#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 the integration. Further, the microcomputer (1) dumps CCD data and performs focus detection calculation using this data (# 120, # 125). The focus detection performed in step # 125 corresponds to the above "calculation means". Next, using the value (MI) indicating the relative position of the lens at the previous integration center as MIL, the relative position of the lens at the start of integration (CT1) and the end of integration at the end of integration are obtained in order to obtain the relative position of the lens at this integration center. The sum of the lens relative position (CT2) is divided by 2, and this value is set as MI (# 130, # 135). Next, we try to find the amount of lens drive from the previous center of integration to the center of integration this time, but MIL-MI does not.

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

次に今回の積分Iの中心時点におけるレンズの相対位
置を示すMIには、上述と同様に考えると、被写体位置RE
2からのデフォーカス量をエンコーダの移動数に変換し
た値を入力する。従って、レンズの相対位置を示すMIL,
MIには前回の結果を原点とするスケールと、今回の結果
を原点とするスケールとの異なったスケールの値が入っ
ている。これを単純にMIL−MIとしても、レンズの正確
な移動量は算出されない。このスケールを揃えないこと
には、正確なレンズ移動量を求められない。
Next, MI indicating the relative position of the lens at the center of the current integration I includes the subject position RE
Enter the value obtained by converting the defocus amount from 2 to the number of encoder movements. Therefore, MIL, which indicates the relative position of the lens,
The MI has different scale values between the scale with the previous result as the origin and the scale with the current result as the origin. Even if this is simply MIL-MI, 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′をエンコーダの移動数に変換した値(LER
R)との差をとることによって得られる。即ち、DT=LER
R−CT3によって得られる。そして、レンズの移動量(IT
I)は、今回の積分中心におけるレンズの相対位置MIか
ら上記DTを引いたものを、MILから引けば求められる。
即ち、ITI=MIL−(MI−DT)で得られる。マイコン
(1)では、第2図のステップ#140,#145でこれを行
っている。
Therefore, this correction amount is defined as DT. This value DT is a value of the event counter from the object position RE1 showing a lens position of the operation C 'end T 3' (CT3), and converts the operation result value DF2 'at this time the movement speed of the encoder value (LER
R). That is, DT = LER
Obtained by R-CT3. And the amount of lens movement (IT
I) can be obtained by subtracting the above DT from the relative position MI of the lens at the center of integration this time, and subtracting it from MIL.
That is, ITI = MIL- (MI-DT) is obtained. The microcomputer (1) does this 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 myco (1) inputs the 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 from the lens circuit (12), 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). According to this instruction, a clock is output from the terminal (SCK) of the microcomputer (1), and data is output from the lens circuit (12) bit by bit in synchronization with the rise of the clock. Then, in synchronization with the rising 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 two types of data have been input, the terminal (CS) is set to the "Low" level to notify the lens circuit (12) of the end of the serial communication (# 175). Next, the process proceeds to a subroutine for exposure calculation (# 180).

このサブルーチンを第4図を参照して説明する。マイ
コン(1)は、まず、開放測光値Bv0を測光回路(3)
から入力し、フィルム感度データSvをフィルム感度自動
読み取り回路(4)から入力する(#2000,#2005)。
これらのデータと、前述のごとくして入力した開放絞り
値Av0とから露出値Evを算出する(#2010)。次に、露
出制御モードを判定して、Pモードであれば、上記露出
値Evを1/2にして絞り値Avを求め、そして露出値Evから
絞り値Avを引いてシャッタ速度値Tvを求めリターンする
(#2015〜#2025)。Aモードであれば、設定された絞
り値Avを読み取り、露出値Evから設定絞り値Avを引いて
シャッタ速度値Tvを求めてリターンする(#2030〜#20
40)。Sモードであれば、設定シャッタ速度値Tvを読み
取り、露出値Evから設定シャッタ速度値Tvを引いて絞り
値Avを求めてリターンする(#2045〜#2055)。上記い
ずれのモードでもない場合、即ちMモードであるとき
は、設定された絞り値Av及びシャッタ速度値Tvを読み取
ってリターンする(#2060〜#2065)。
This subroutine will be described with reference to FIG. First, the microcomputer (1) sets the open metering value Bv 0 to the metering circuit (3).
The film speed data Sv is input from the film speed automatic reading circuit (4) (# 2000, # 2005).
The exposure value Ev is calculated from these data and the open aperture value Av 0 input as described above (# 2010). Next, the exposure control mode is determined, and if it is the P mode, the exposure value Ev is halved to obtain the aperture value Av, and the aperture value Av is subtracted from the exposure value Ev to obtain the shutter speed value Tv. Return (# 2015 ~ # 2025). In the case of the A mode, the set aperture value Av is read, the set aperture value Av is subtracted from the exposure value Ev to obtain the shutter speed value Tv, and the process returns (# 2030 to # 20).
40). 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値を掛けてエンコーダのパルス数
をステップ#210にて求める。このステップが上記“設
定手段”に相当する。この値が正ならば今回の方向を示
す変数TDを1とし、負ならばTDを0とする(#205〜#2
25)。
Returning to the flowchart of FIG. 2, when the exposure calculation is completed, it is detected from the result of the focus detection / calculation whether or not focus detection is impossible. If it cannot be detected, the flow advances to LOWCON. If it can be detected, the low contrast flag LCF indicating that focus detection is impossible
Is reset, and it is determined whether or not it is low light (the subject has a low brightness equal to or lower than a predetermined value) (# 185 to # 19).
Five). If it is not low light, the auxiliary light flag is reset in step # 200, and if it is low light, step # 200 is skipped, and the process proceeds to step # 205. Read on the counter. Next, the defocus amount Δε obtained by this calculation is multiplied by the conversion coefficient KL value to obtain the encoder pulse number in step # 210. This step corresponds to the "setting means". If this value is positive, the variable TD indicating the current direction is set to 1, and if it is negative, TD is set to 0 (# 205 to # 2).
twenty five).

次に、精度チェックのサブルーチンに入る。本実施例
上に用いられている焦点調節装置には、焦点調節におい
て、合焦状態に到達する時間よりもピントの精度を優先
する精度優先モードと、精度よりも合焦状態に到達する
速度を速くすることを優先するスピード優先モードを有
している。これに関するレンズ制御モーターの速度につ
いては後述する。このサブルーチンでは、レンズの種
類、あるいは、撮影時の諸条件により上記2つのモード
を切り換えている。これには種々の態様が考えられる。
Next, the accuracy check subroutine is entered. In the focus adjustment device used in the present embodiment, in focus adjustment, an accuracy priority mode in which priority is given to accuracy of focus over time to reach a focused state, and speed to reach a focused state rather than accuracy. It has a speed priority mode that prioritizes speeding up. 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. This can take various forms.

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

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

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

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

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

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

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

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

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

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

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

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

(1)合焦ゾーン(#295) 従来からある領域で、1度合焦状態に達するのに必要
なレンズの駆動量が0になり、レンジが停止している状
態での積分結果がこの領域なら合焦であることを表示す
る。
(1) Focus zone (# 295) In a conventional area, the amount of lens drive required to reach the in-focus state once becomes 0, and the integration result when the range is stopped is 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, , Number of pulses
Defocus amount equivalent to 21 (depends on lens)
And Then, regardless of whether the lens is stopped or moving, if the defocus amount falls within this range, display is performed and release permission in the AF priority mode is performed.

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

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

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

第8図のIDOBUNのフローでは、まず、今回演算された
デフォーカス方向が前回演算されたデフォーカス方向と
異なるか否かを判定する(#435)。方向が反転してい
れば、レンズを停止して(ステップ#455)、再度積分
を行うべく第2図のステップ#55以下のCDINTのフロー
にもどる。一方、第8図のステップ#43で方向が反転し
ていなければ、積分中心から演算終了までに動いたレン
ズの移動量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 currently calculated defocus direction is different from the previously calculated defocus direction (# 435). If the direction is reversed, the lens is stopped (step # 455), and the flow returns to the CDINT flow after step # 55 in FIG. 2 in order to perform integration again. On the other hand, if the direction is not reversed in step # 43 of FIG. 8, the movement amount CTC of the lens that has moved from the center of integration to the end of calculation is obtained (# 435, # 440). Next, the process proceeds to the near zone A determination subroutine described later, and if the near zone flag (NZF) is set as the determination result in the subroutine, the process proceeds to step # 460. If not, the follow flag is set in step # 520. Reset (# 445, # 450). In step # 460 and below, it is determined whether the previously calculated defocus direction (LD) and the currently calculated defocus direction (TD) are the same direction. If they are the same direction, the process proceeds to step # 470, and the current defocus direction is determined. Add the drive amount ITI of the lens that moved between the previous integration center and 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(ニアゾーンカウンターのカウント値
NZCより大)以上であるかを判定し、所定量以上であれ
ば、焦点検出エリアから被写体がはずれたと判定して、
レンズの駆動量の更新を禁止する非更新フラグ(非更新
F)をセットし、追随補正フラグ(追随補正F)をリセ
ットしてステップ#300に進む(#500,#505,#490)。
On the other hand, if the correction amount WR is less than the predetermined amount AA in step # 480, the tracking correction flag (following correction F) is reset, and
The process proceeds to step # 300 (# 480, # 485). Step # 475
When the follow-up flag (follow-up F) is set, the correction amount WR is equal to the predetermined amount AX (count value of the near zone counter).
(Larger than NZC) or more, and if it is more than a predetermined amount, it is determined that the subject has deviated from the focus detection area,
The non-update flag (non-update F) for 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)。
Conversely, if the correction amount WR is less than the predetermined amount AX in step # 500, the non-update flag (non-update F) is reset, the follow-up correction flag (follow-up correction F) is set, and the process proceeds to step # 300 (# 500). , # 510, # 490).

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

ステップ#530において、上記フラグFIFがセットされ
ているときには、変数N1に1を加えて、この値N1が2で
あるか否かを判定し、2でない場合には、第2図のステ
ップ#55以下のCDINTのフローに進み、2である場合に
は追随フラグ(追随F)及び非更新フラグ(非更新F)
をそれぞれリセットして、ステップ#555に進む(#535
〜#550)。上述のステップ#520〜#550,#625,#630
では、追随モードであるときに焦点検出エリアから被写
体がはずれると、デフォーカス量が急に大きくなった
り、焦点検出不能と判定されたりする事があるので、こ
れに対する対策を施しているのである。即ち、デフォー
カス量が急に大きくなっても焦点検出可能なときは、補
正量WRが急に大きくなることを意味し、このときは、上
述した第8図のステップ#500〜#510で処理している。
一方、第2図のステップ#185で焦点検出不能と判定し
たときには、第9図のLOWCONのフローに進む。そして、
追随モードで焦点検出不能と判定したとき、すなわち焦
点検出エリアから被写体がはずれたときには、ステップ
#555からの通常の焦点検出不能の処理をせず、前回演
算されたデフォーカス量に基づいてレンズを駆動するこ
とにしている。一方、ステップ#520で追随フラグがセ
ットされていないときには、フラグFIFをリセットし
て、ステップ#555に進む。
In step # 530, when the flag FIF is set, 1 is added to the variable N1, and it is determined whether or not this value N1 is 2. If not, step # 55 in FIG. Proceed to the following flow of CDINT, and if it is 2, the follow-up flag (follow-up F) and the non-update flag (non-update F)
Are reset, and the process proceeds to step # 555 (# 535
~ # 550). Steps # 520- # 550, # 625, # 630 above
Then, if the subject is out of the focus detection area in the follow-up mode, the defocus amount may suddenly increase, or it may be determined that focus detection is impossible. Therefore, measures are taken against this. That is, if the focus can be detected even if the defocus amount suddenly increases, it means that the correction amount WR suddenly increases. In this case, the processing in steps # 500 to # 510 in FIG. doing.
On the other hand, when it is determined in step # 185 in FIG. 2 that focus detection is impossible, the flow proceeds to LOWCON in FIG. And
When it is determined that the focus cannot be detected in the tracking mode, that is, when the subject is out of the focus detection area, the normal focus detection impossible processing from step # 555 is not performed, and the lens is moved based on the previously calculated defocus amount. I'm going to drive. On the other hand, when the 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, it is detected based on the output of the light receiving element provided near the photodiode of the CCD whether or not the cause of determining that the focus cannot be detected is that the luminance of the subject is too low (low light). If the cause of the focus detection failure is this low light, it is detected whether or not the auxiliary light emitting device (13) is mounted on the camera, and when the auxiliary light emitting device (13) is mounted, the auxiliary light emitting device (13) is detected. The mode is set to the light emission mode, and it is determined whether or not the auxiliary light flag (auxiliary light F) is set (# 560 to # 570). When the auxiliary light flag (auxiliary light F) is set in step # 570, that is, when the auxiliary light is emitted once but the focus cannot be detected due to the low light, the low contrast display indicating that the focus cannot be detected is displayed. Then, the microcomputer (1) waits for an interrupt to stop focus detection (# 570, # 585, # 590). Conversely, if the auxiliary light flag is not set in step # 570,
This flag (auxiliary light F) is set, and a long integration flag (long product F) indicating a mode with a long integration time is set.
The flow proceeds to the flow CDINT after step # 55 in FIG. If it is determined in step # 555 that it is not low light, or if it is determined in step # 565 that the auxiliary light emitting device (13) is not mounted, low contrast display is performed (# 59).
Five). Then, a flag LBF indicating the lens retraction mode is determined, and if this flag LBF is not set, a command for controlling the lens retraction is instructed. After outputting the command to drive the motor for use, the flow proceeds to the focus detection flow CDINT of step # 55 and subsequent steps in FIG. 2 to perform focus detection (# 600, # 605, # 610, # 615).

次に第10図〜第13図に示しレンズ駆動制御のフローの
説明をする。まず、その前に実施例におけるレンズ駆動
用モーターの速度制御についての説明を行う。モーター
速度の種類としては、ニアゾーン外(アウトゾーン)で
の速度、ニアゾーン内での3つの速度、ステップ駆動の
5種類を有しており、追随モード、非追随モードでの精
度優先及びスピード優先の各モードにおいて、そのとき
のデフォーカスパルス数に応じて、上記5種類のレンズ
速度制御が行なわれる。これらのことを表2に示し説明
すると、モーターの回転速度としては、20,000rpm(ア
ウトゾーン)、5,000rpm(ニアゾーン1)、2,500rpm
(ニアゾーン2)、1,000rpm(ニアゾーン3)、ステッ
プ駆動の5種類を有している。そして、このうちステッ
プ駆動に関しては、精度優先の非追随モードのみに使用
し、精度よく、レンズ制御を行なうようにしている。ニ
アゾーンでのデフォーカスパルス数に対するレンズの速
度の違いは、合焦までの速度を要するものほど速くして
いる。モータの速度を速くすればするほどその止まり精
度が悪くなる傾向がある。これらの速度制御をカメラの
シーケンスの中でどのように行なわれるかを以下に説明
する。
Next, the flow of lens drive control shown in FIGS. 10 to 13 will be described. First, before that, speed control of the lens driving motor in the embodiment will be described. There are five types of motor speeds: speed outside the near zone (out zone), three speeds within the near zone, and step drive. In each mode, the above five types of lens speed control are performed according to the number of defocus pulses at that time. These are shown in Table 2 and explained. The rotation speed of the motor is 20,000 rpm (out zone), 5,000 rpm (near zone 1), 2,500 rpm.
There are five types: (near zone 2), 1,000 rpm (near zone 3), and step drive. Of these, the step drive is used only in the non-follow-up mode in which accuracy is prioritized, and the lens control is performed with high accuracy. The difference in the speed of the lens with respect to the number of defocus pulses in the near zone is faster as the speed up to focusing is required. The higher the speed of the motor, the 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〜
#2335)。ステップ#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 flow advances to step # 680 to proceed to a near zone determination subroutine for determining whether or not the vehicle is in the near zone. The near zone subroutine will be described with reference to FIG. In step # 2300 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. If it is set in the non-following mode (when the follower flag is reset), the count value NZC of the near zone counter is 100 in the speed priority mode, and the count value NZC of the near zone counter in the accuracy priority mode. Set to 120 respectively and proceed to step # 2310 (# 2300, # 2305, # 2325 ~
# 2335). In step # 2310, the number of defocus pulses
Count value NZC of the near zone counter set by ERR
If it is less than or equal to the count value NZC of the near zone counter, the flag NZF indicating the near zone is set, and if it is equal to or more than the count value NZC of the near zone counter, the near zone flag NZF is reset. Return (# 2310 to # 2320).

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

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

第10図のステップ#635において、非更新フラグ(非
更新F)がセットされていないときには、ステップ#64
5にてデフォーカスパルス数ERRから積分中心から演算終
了までに動いたレンズの移動量CTCをひいて、実際に駆
動すべきデフォーカスパルス数とし、第11図図示の前述
したニアゾーン判定のサブルーチンに進む(#645、#6
50)。このステップ#645で行う処理が上記“補正手
段”に相当する。このサブルーチンでニアゾーンを示す
フラグNZFがセットされていないときには、デフォーカ
スパルス数ERRからニアゾーンカウンターのカウント値N
ZCをひいてイベントカウンタEVENTCNTのカウント値とし
て、イベントカウンターセット(EVENTCNTセット)のサ
ブルーチンに進み、このサブルーチンを経てステップ#
700に進む(#655,#670,#675)。ステップ#655ある
いはステップ#685において、ニアゾーンフラグNZFがセ
ットされているときには、デフォーカスパルス数ERRを
駆動カウンターENZCNTに入力し、第14図に示したタイマ
Iセットのサブルーチンに進み、このサブルーチンの終
了後ステップ#700進む(#650、#665)。このサブル
ーチンでは、表2に示した各モード(追随モード、非追
随モードの時のスピード優先、精度優先)に関してニア
ゾーン内におけるデフォーカスパルス数に対するモータ
ーの速度を決定している。本実施例におけるモーターの
速度制御は、所定時間内にエンコーダからのパルスが送
られてくるか否かによってモーターへの通電をON、OFF
してモーターの速度を一定とし、上記所定時間を変える
ことによってモーターの速度を変えている。そして、こ
の所定時間が短くなるほどモーターの速度が速くなり、
毎分5000回転相当のタイマーはA1、2500回転相当のタイ
マーはA2、1000回転相当のタイマーはA3となっており、
A1<A2<A3の関係である。
When the non-update flag (non-update F) is not set in step # 635 of FIG. 10, step # 64
In 5, subtract the lens movement amount CTC that has moved from the center of integration to the end of calculation from the defocus pulse number ERR to obtain the defocus pulse number that should be actually driven, and enter the near zone determination subroutine shown in FIG. Go forward (# 645, # 6
50). The process performed in step # 645 corresponds to the "correction unit". When the flag NZF indicating the near zone is not set in this subroutine, the count value N of the near zone counter is calculated from the defocus pulse number ERR.
ZC is subtracted, and as the count value of the event counter EVENTCNT, the process proceeds to the event counter set (EVENTCNT set) subroutine, and through this subroutine, step #
Proceed to 700 (# 655, # 670, # 675). When the near zone flag NZF is set in step # 655 or step # 685, 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. After completion, proceed to step # 700 (# 650, # 665). In this subroutine, the speed of the motor with respect to the number of defocus pulses in the near zone is determined for each of the modes shown in Table 2 (priority in speed in the following mode and non-following mode, priority in accuracy). The speed control of the motor in this embodiment is to turn on / off the power supply to the motor depending on whether or not a pulse is sent from the encoder within a predetermined time.
Then, the speed of the motor is made constant, and the speed of the motor is changed by changing the predetermined time. And the shorter the predetermined time, the faster the motor speed,
The timer equivalent to 5000 revolutions per minute is A1, the timer equivalent to 2500 revolutions is A2, the timer equivalent to 1000 revolutions is A3,
The relationship is A1 <A2 <A3.

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

このニアゾーン3判定のサブルーチンの詳細を第15図
に示し説明すると、まず、追随フラグ(追随F)がセッ
トされているか否かを判定し、このフラグ(追随F)が
セットされているときは、駆動カウンターのカウント値
ENZCNTが15以下であればニアゾーン3内であることを示
すフラグNZ3Fをセットしてリターンし、ENZCNTが15を超
えるときはフラグNZ3Fをリセットしてリターンする(#
2500〜#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, Count value of drive counter
If ENZCNT is 15 or less, set the flag NZ3F indicating that it is within the near zone 3 and return. If ENZCNT exceeds 15, reset the flag NZ3F and return (#
2500 to # 2510, # 2535). On the contrary, in the non-following mode and the speed priority mode, if the count value ENZCNT of the drive counter is 30 or less, the flag NZ3F is set, and if it exceeds 30, the flag is reset and the process returns. Further, when the non-following mode is the accuracy priority mode, the flag NZ3F is set when the count value ENZCNT of the drive counter is 31 or less, and when the count value exceeds 31, the flag NZ3F is reset and the process returns.

第10図にもどり、ステップ#715でニアゾーン3フラ
グNZ3Fがセットされていないとき、すなわちニアゾーン
3の領域に入っていないときはステップ#712にもど
り、ニアゾーン3の領域に入ってフラグNZ3Fがセットさ
れたときには、移動積分フラグNIDFをリセットする(#
720)。次に、追随フラグ(追随F)がセットされてい
るか否かを判定しセットされているときあるいは、追随
フラグ(追随F)がセットされていなくともスピード優
先モードであるときは、ステップ#735に進む(#725,
#727)。更に狭合焦ゾーンでないと仮定するとステッ
プ#735→CDINTに進む。一方、精度優先モードであれ
ば、レンズが停止(駆動カウンターのカウント値ENZCNT
が0になるまで)するまでステップ#727を繰り返す。
これは、精度優先モードでのステップ駆動は、一定速度
でないために移動積分が正しく行えないからである。こ
のように、ステップ#712と#715を回って、ニアゾーン
3内に入るまでの間(速度が1000rpmに減速されるまで
の間)は、次の焦点検出動作(CDINT)は行われず、移
動積分は禁止される。そして、ニアゾーン3内に入れ
ば、ステップ#720→→#735→CDINTに進み、次の焦点
検出が行われ、移動積分が開始される。これらの一連の
制御が上記“制御手段”に相当する。
Returning to FIG. 10, when the near-zone 3 flag NZ3F is not set in step # 715, that is, when the near-zone 3 area is not set, the process returns to step # 712, where the near-zone 3 area is set and the flag NZ3F is set. Resets the moving integration flag NIDF (#
720). Next, 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. Go forward (# 725,
# 727). Further assuming that it is not in the narrow focus zone, the process proceeds from step # 735 to CDINT. On the other hand, in the accuracy priority mode, the lens stops (the count value ENZCNT of the drive counter
(Until 0)) is repeated.
This is because the step integration in the accuracy priority mode cannot perform the moving integration correctly because the speed is not constant. In this way, the next focus detection operation (CDINT) is not performed until the inside of the near zone 3 (until the speed is reduced to 1000 rpm) by going through steps # 712 and # 715, and moving integration is performed. Is prohibited. Then, if it enters the near zone 3, the process proceeds to steps # 720 →→ # 735 → CDINT, the next focus detection is performed, and the moving integration is started. These series of controls correspond to the above-mentioned "control means".

尚、モータ速度の制御は、第14図の“タイマーIセッ
ト”のフローにてモータへの通電時間を決めることで行
っており、本実施例では1000rpmが所定の速度としてい
る。
The motor speed is controlled by determining the energization time to the motor according to the "timer I set" flow shown in FIG. 14, and in this embodiment 1000 rpm is the predetermined speed.

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

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

次に第12図に示したカウンター割込(CNTR割込)を説
明する。このカウンター割込は第1図のエンコーダ(1
1)からパルスが発生するたびに実行される。このフロ
ーに入るとまず、マイコン(1)は駆動カウンターEVEN
CNTのカウント値を1つ減算し、駆動カウンタENZCNTの
カウント値が0になったか否かを判定する(#800〜#8
05)。そして駆動カウンタEVENCNTのカウント値が0で
ない場合にはステップ駆動を示すステップモードフラグ
STEPFがセットされているか否かを判定し(#815)、セ
ットされているときにはステップ#835に進む。ステッ
プ#815でフラグSTEPFがセットされていないときはステ
ップ#820へ進み、精度優先モードでないとき、あるい
は精度優先モードであっても駆動カウンタENZCNTのカウ
ント値が6を越えるときは、ステップ駆動をしないもの
として、ステップ#840に進む。ここでは本カウンタ割
込の前にタイマ割込が入ったことを示すフラグ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 controlled by the encoder (1
Executed every time a pulse is generated from 1). When entering this flow, the microcomputer (1) first sets the drive counter EVEN
The count value of CNT is decremented by one, and it is determined whether the count value of the drive counter ENZCNT has become 0 (# 800 to # 8)
05). 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, it is determined whether or not a flag TIPASF indicating that a timer interrupt has been entered is set before this counter interrupt, and if it is set, it is reset and the process returns. This flag
When TIPASF is not set, turn off the motor power (# 845). On the other hand, when the precision priority mode is set in step # 820 and the count value of the drive counter ENZCNT is 6 or less, the process proceeds from step # 825 to step # 830, the flag STEPF indicating the step mode is set, and the step drive flag STPDRF is further set. After setting, power off the motor in step # 845 (# 830, # 835, # 84
Five). Next, it is determined whether or not the flag RESF indicating that the shutter has been released is set. If the flag is set, the process proceeds to a timer R set subroutine. If not, the process proceeds to a timer I set subroutine.
After the end of the subroutine, the program returns (# 850 to # 860).
The timer R set will be described at the time of release.

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

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

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

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

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

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

第17図の演算Iのサブルーチンでは、1周期の焦点検
出時間における被写体の動き、すなわち、単位焦点検出
時間における被写体の光軸方向への移動傾き(デフォー
カス量換算)を求め、レリーズタイムラグ中に動く被写
体の移動量(デフォーカス量換算)を求める。すなわち
ステップ#2600でレリーズタイムラグ時間RSTを単位焦
点検出時間TIで割って比Rを求め、単位時間における被
写体移動量WRにこの比Rをかけてレリーズタイムラグ中
の移動量WSを求める。これを駆動カウンタ−EZCNTのカ
ウント値に加えて新たな駆動カウンタ−ENZCNTのカウン
ト値を求めてリターンする(#2600〜#2610)。
In the subroutine of the calculation I shown in FIG. 17, the movement of the subject during one cycle of the focus detection time, that is, the movement inclination (in terms of defocus amount) of the subject in the unit focus detection time in the optical axis direction is obtained. The moving amount (in terms of defocus amount) of the moving subject is obtained. That is, in step # 2600, the release time lag time RST is divided by the unit focus detection time TI to obtain the ratio R, and the moving amount WS during the release time lag is obtained by multiplying the subject moving amount WR per unit time by this ratio R. This is added to the count value of the drive counter-EZCNT 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に進む(#113
6,#1137)。以下に説明するステップ#1140以下のフロ
ーはレリーズが許可されたときに、レリーズタイムラグ
中にレンズを駆動しようと言うものである。ステップ#
1040では、駆動カウンタ−ENZCNTのカウント値が13以下
であるかを判定し、13以下であればモーターのスピード
を1000rpmとするフラグe1Fをセットして後述のタイマR
セットのサブルーチンに進む(#1080,#1090)。駆動
カウンタ−ENZCNTのカウント値が13より大きく40以下で
は、タイマRセットのサブルーチンに進む(#1045,#1
090)。更に駆動カウンタ−ENZCNTのカウント値が40よ
り大きく66以下であればモーターのスピードを5000rpm
とするフラグe2FをセットしてタイマRセットのサブル
ーチンに進む(#1050,#1085,#1090)。
Returning to FIG. 16 (a), 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. Proceed to (# 113
6, # 1137). The flow from step # 1140 onward described below is to drive the lens during the release time lag when the release is permitted. Step #
In 1040, it is determined whether the count value of the drive counter-ENZCNT is 13 or less, and if it is 13 or less, the flag e1F that sets the motor speed to 1000 rpm is set and the timer R described later is set.
Proceed to the set subroutine (# 1080, # 1090). If the count value of the drive counter-ENZCNT is greater than 13 and less than 40, the process proceeds to the timer R setting subroutine (# 1045, # 1).
090). If the count value of the drive counter-ENZCNT is greater than 40 and less than 66, the motor speed is 5000 rpm.
Then, the flag e2F is set to proceed 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 timer R setting subroutine 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, it is determined in step # 2780 whether or not the camera is in the AF priority mode. If the mode is the AF priority mode, the flow advances to step # 2785. This will be described later. On the other hand, in the release priority mode, 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 (1000 rpm
Then, the timer interrupt and the count interrupt are enabled and the process returns (# 2765, 2770). If the flag e1F for setting 1000 rpm has not been set in step # 2705, it is determined in step # 2710 whether the flag e2F for setting 5000 rpm has been set. If the flag e1F has been set, the flow proceeds to step # 2800 It is determined whether the flag Fe2F for correcting the excessive amount α1 when the motor is stopped is set, and if the flag Fe2F is set, A1 is set to the timer 1 in step # 2830 (equivalent to 5000 rpm). Proceed to step # 2765. If the flag Fe2F is not set in step # 2800, step # 2805
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 to make it a new count value of the drive counter-ENZCNT. set. Explaining the overshoot amount, if the motor is stopped from 1000 rpm, the overshoot amount is negligibly small, but if the motor is stopped from 5000 rpm, the overshoot will be too large. This amount is almost specific to the rotation speed of the motor, and the variation for each lens is small. Therefore, if a certain value α1 is added to the count value of the drive counter ENZCNT, the lens can reach the in-focus position. The motor starts to stop, and the motor can be stopped properly when the lens reaches the focus position.

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

ステップ#2745で駆動カウンタ−ENZCNTのカウント値
が100以下のときはステップ#2750に進み、ここで、駆
動カウンタ−ENZCNTのカウント値が14より大きいか否か
を判定し、14より大きいときにはステップ#2830でタイ
マ−1をA1(5000rpm相当)にセットしてステップ#276
5に進む。更にステップ#2750で駆動カウンタ−ENZCNT
のカウント値が14以下であればステップ#2755に進んで
駆動カウンタ−ENZCNTのカウント値が4を超えるか否か
を判定する。そして、駆動カウンタ−ENZCNTのカント値
が14以下で4より大のときにはステップ#2850でタイマ
1をA2(2500rpm相当)にし、4以下のときにはステッ
プ#2760でタイマ1をA3(1000rpm相当)にセットし
て、更にステップ#2765,#2770でタイマ割込及びカウ
ント割込を許可してリターンする。
If the count value of the drive counter-ENZCNT is 100 or less in step # 2745, the process proceeds to step # 2750, where it is determined whether or not the count value of the drive counter-ENZCNT is larger than 14, and if it is larger than 14, step # Set the timer-1 to A1 (equivalent to 5000 rpm) with the 2830 and step # 276.
Go to 5. In step # 2750, drive counter-ENZCNT
If the count value of is less than 14 proceeds to step # 2755, it is determined whether the count value of the drive counter-ENZCNT exceeds 4. When the count value of the drive counter-ENZCNT is 14 or less and 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を超えるときには、
5000rpm以下では駆動カウンタ−EZCNTのカウント値を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,
At 5000 rpm or less, the count value of the drive counter-EZCNT is set to 0.
Since (focusing) cannot be performed, the release time lag is increased by a predetermined time (50 msec when not in the AF priority mode in this embodiment), and the motor is driven during this time as well. However, in the continuous shooting mode, which represents the continuous shooting mode, the lens is not driven until a predetermined time, which is an increase in the time lag, is provided because it is desired to shoot as soon as possible. Therefore, in step # 1055, switch (S8)
Is detected to determine whether or not the continuous shooting mode is set. If the continuous shooting mode is set, the process proceeds to step # 1095. on the other hand,
Step # 1055 to Step # when not in continuous shooting mode
In step 1060, it is determined whether or not the tracking mode is set. If the tracking mode is set, the subroutine of calculation II is executed to calculate the amount of movement of the subject within the predetermined time set in step # 1065, and then step # Continue to 1070. On the other hand, when the tracking mode is not set in step # 1060, it is determined that the subject is stopped, the step # 1065 is stepped to the step # 1070, and the above timer R setting is performed 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 the operation II in the step # 1065 will be described with reference to FIG. In this subroutine, first
In step # 2650, it is determined whether or not the 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, and in step # 2665, this time TC is set to the unit focus detection time. Divide by TI to obtain the ratio R, and in step # 2670, the defocus amount (count WR) of the object that moves within the unit focus detection time is multiplied by this ratio R to obtain the follow-up defocus amount WS until exposure, and the step In # 2675, WS is added to the count value of the drive counter-ENZCNT 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 speed (that is, 20,000 rpm), the motor does not stop immediately even if the motor stop signal is output, so the motor brake signal is output (# 1095). , # 1100). And
In steps # 1103 and # 1107, the count interrupt and the timer interrupt are prohibited, respectively, and the process proceeds to step # 1190. If the speed is low in step # 1095, go directly to step # 11
Go to 90. If the AF priority mode is set in step # 1025, it is determined whether or not the flag AFEF indicating the end of focus detection is set. 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 exposure is completed, the release button will not be released if it is continuously pressed, and the release button will be released again.Here, in step # 1170, the release flag 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 step 15, you can use the method of releasing immediately after focusing.

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

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

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

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

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

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

次に第6図(b)に進んで、マイコン(1)は、ステ
ップ#1243で1駒巻上開始信号を出力してフィルムの1
駒巻上を行なわせる。そしてステップ#1245で連写モー
ドであるか否かを判定して連写モードでないとき端子
(OP3)を「L」にして連写をしないようにしてステッ
プ#1275に進む。一方、連写モードであるときにはステ
ップ#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 start film 1
Make the piece roll up. Then, in step # 1245, it is determined whether or not the camera is in the continuous shooting mode. When the camera is not in the continuous shooting mode, the terminal (OP3) is set to "L" so that continuous shooting is not performed, and the process proceeds to step # 1275. On the other hand, 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, the counter interrupt and timer interrupt are enabled to drive only the remaining count value of the drive counter ENZCNT. Drive 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 motor for driving the lens is output, and this stops for 20 msec.
After waiting, the flags other than the follow flag are reset, the release interrupt is permitted, and the flow returns to the CDINT flow from step # 55 onward in FIG. 2 (# 1280 to # 1295). However, steps # 1280 and # 1285 are not always necessary here, and the process may return to CDINT with the lens being driven.

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

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

次に変形例を示す。その変形例の内容は以下の項目で
ある。
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 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. If not, release lock Go to improve the focusing accuracy.

以上の変更に伴う変更例を第22図に示し説明する。 An example of a change due to the above change is shown in FIG. 22 and will be described.

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

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

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

以上述べた制御において、本発明に直接関係する制御
をここでまとめて述べる。
In the control described above, the control directly related to the present invention will be summarized here.

第1回目 レリーズ釦が第1ストロークまで押し込まれると第2
図の“AFS"からのフローを実行する。
When the first release button is pressed to the first stroke, the second
Execute the flow from "AFS" in the figure.

第2図「AFS」 ・ステップ#45〜#110:S1オンに応じて焦点検出のため
の積分を行う。
Fig. 2 "AFS" -Steps # 45 to # 110: Integrate for focus detection according to S1 ON.

・ステップ#120〜#180:CCDデータのダンプを行って、
このデータにより焦点検出演算を行い、前回の積分中心
におけるレンズの相対位置を示す値を求め、今回の積分
中心におけるレンズの相対位置を示す値を求めるため
に、積分開始時のレンズ相対位置(CT1)と積分終了時
のレンズ相対位置(CT2)との和を2で割り、スケール
を揃えるための補正量DTを求め、以上の値から正確なレ
ンズ移動量(ITI)を求めて露出演算を行う。
・ Steps # 120- # 180: dump the CCD data,
The focus detection calculation is performed using this data, the value indicating the relative position of the lens at the previous integration center is obtained, and the lens relative position at the start of integration (CT1 ) And the relative lens position (CT2) at the end of integration are divided by 2 to obtain the correction amount DT for aligning the scale, and the accurate lens movement amount (ITI) is obtained from the above values to perform the exposure calculation. .

・ステップ#185:焦点検出可能か否かを判定し、検出可
能であれば、ステップ#190→#195→→#210に進み、
一方、焦点検出が不能であれば、“LOWCON"のルーチン
に進む。このルーチンは後で述べる。
Step # 185: It is determined whether or not focus detection is possible, and if it can be detected, the process proceeds to step # 190 → # 195 → → # 210,
On the other hand, if focus detection is impossible, the process proceeds to the "LOWCON" routine. This routine will be described later.

・ステップ#210:デフォーカス量εとエンコーダパルス
変換係数KL値からエンコーダのパルス数を求めてステッ
プ#215→#235に進み、#235にてレンズが停止してい
れば、“MFZ"のルーチンに進み、停止していなければ、
“IDOBUN"のルーチンに進む。ここではレンズが停止し
ているので“MFZ"ルーチンに進む。
Step # 210: The number of encoder pulses is calculated from the defocus amount ε and encoder pulse conversion coefficient KL value, and the process proceeds from step # 215 to # 235. If the lens is stopped at # 235, the "MFZ" routine is executed. And if not stopped,
Proceed to the "IDOBUN" routine. Since the lens is stopped here, proceed to the "MFZ" routine.

第6図「MFZ」 ・ステップ#240:デフォーカス量Δεを別変数Δε
メモリーし、ステップ#245にて合焦ゾーンの量ΔIFに
エンコーダパルス変換係数KL値を掛けて合焦ゾーンパル
ス数IFPを求め、ステップ#250にて積分中心から演算終
了までに動いたレンズの量をエンコーダパルス数で示し
た値CTCを0にしてステップ#255に進む。
Fig. 6 "MFZ" ・ Step # 240: Defocus amount Δε is stored in another variable Δε 1 , and in step # 245 the amount ΔIF of the focusing zone is multiplied by the encoder pulse conversion coefficient KL value and the number of focusing zone pulses. The IFP is calculated, and in step # 250, the value CTC, which is the amount of the lens that has moved from the center of integration to the end of the calculation, represented by the number of encoder pulses is set to 0, and the flow advances to step # 255.

・ステップ#255:エンコーダパルス数ERRが3パルス以
下であるかを判定する。ここでは合焦していないのでス
テップ#290に進む。
-Step # 255: Determine whether the encoder pulse number ERR is 3 pulses or less. Since it is out of focus here, the process proceeds to step # 290.

・ステップ#290:合焦Fはセットされていないのでステ
ップ#370から#372に進み、“ニアゾーンA判定”のサ
ブルーチンに進む。
Step # 290: Since the in-focus F has not been set, the routine proceeds from step # 370 to # 372 and proceeds to the "near zone A determination" subroutine.

第23図「ニアゾーンA判定」 ・ステップ#3000にてデフォーカスパルス数ERRをERR1
とし、続いてステップ#3005にてレンズが停止中か否か
を判定する。レンズは停止しているので、ステップ#30
15にて追随Fがセットされているか否かを判別する。追
随Fはセツトされておらず、スピード優先モードでない
と仮定するとニアゾーン範囲を示すカウンターNZCを120
にセットしてステップ#3035に進む。#3035にてデフォ
ーカスパルス数ERR1がカウンター値NZC以下か否かを判
定し、ここではERR1がNZC以下でないと仮定するとNZFを
リセツトする。
Fig. 23 "Near Zone A Judgment" ・ In step # 3000, defocus pulse number ERR is set to ERR1.
Then, in step # 3005, it is determined whether or not the lens is stopped. Since the lens is stopped, step # 30
At 15, it is determined whether the follower F is set. Assuming that F is not set and the speed priority mode is not set, the counter NZC indicating the near zone range is set to 120.
And proceed to step # 3035. In # 3035, it is determined whether the defocus pulse number ERR1 is less than or equal to the counter value NZC. If ERR1 is not less than NZC, NZF is reset.

第6図「MFZ」 ・ステップ#380:NZFはレセットされているのでステッ
プ#375に進み1STFをリセットし、合焦ゾーン内にはレ
ンズはなく、追随F並びに追随補正Fはセットされてい
ないので、ステップ#295→#300→#335→#355→→
“TINNZ"へと進む。
Fig.6 "MFZ" ・ Step # 380: Since NZF has been reset, proceed to Step # 375 and reset 1STF, and there is no lens in the focus zone, and follower F and follower correction F are not set. , Step # 295 → # 300 → # 335 → # 355 → →
Proceed to "TINNZ".

第10図「TINNZ」 ・ステップ#630:レンズは停止しているのでステップ#
680に進み、“ニアゾーン判定”のサブルーチンに進
む。
Fig. 10 "TINNZ" Step # 630: The lens is stopped, so step # 630
Proceed to 680 and proceed to the "near zone determination" subroutine.

第11図「ニアゾーン判定」 ・ステップ#2300にて追随Fはセットされていないので
ステップ#2325に進み、スピード優先モードではないの
で、ステップ#2335に進んでニアゾーンカウンターのカ
ウント値NZCを120にセットし、ステップ#2310にてデフ
ォーカスパルス数ERRとZNCを比較して、NZFをリセット
する。
Fig. 11 "Near Zone Judgment" ・ In Step # 2300, follower F is not set, so proceed to Step # 2325. Since it is not in speed priority mode, proceed to Step # 2335 and set the count value NZC of the near zone counter to 120. Set and compare the number of defocus pulses ERR and ZNC in step # 2310 and reset NZF.

第10図「TINNZ」 ・ステップ#685:NZFがセットされていないので、ステ
ップ#690に進み、ERRからNZCをひいた値をイベントカ
ウンターEVENTCNTに入力して“EVENTCNTセット”のサブ
ルーチンに進む。
Figure 10 "TINNZ" • Step # 685: NZF is not set, so proceed to Step # 690, input the value obtained by subtracting NZC from ERR to the event counter EVENTCNT and proceed to the "EVENTCNT set" subroutine.

第10図(b)「EVENTCNTセット」 ・イベントカウンターによる割り込みを許可し、タイマ
ー割り込み、カウンタ割り込みを禁止してリターンす
る。
Figure 10 (b) "EVENTCNT set" -Enables interrupts from the event counter, disables timer interrupts and counter interrupts, and returns.

第10図「TINNZ」 ・ステップ#700:モータ駆動させ、ステップ#705にて
ニアゾーンフラグがセットされているか否かを判別こ
し、セットされていないのでレンズを移動しながら積分
を行う移動積分フラグNIDFをステップ#745にてセット
してステップ#750→→“CDINT"に進む。
Fig. 10 "TINNZ" -Step # 700: The motor is driven, and it is determined in step # 705 whether or not the near zone flag is set. Since it is not set, the moving integration flag is used to perform integration while moving the lens. Set NIDF in step # 745 and proceed to step # 750 →→ “CDINT”.

以上が第1回目の動作であり、次に第2回目の動作を
説明するが、第1回目と差がないものについては説明を
省略する。
The above is the first operation, and the second operation will be described next. However, description of operations that are not different from the first operation will be omitted.

第2回目 「CDINT」 第1回目と同じ。但し第2回目ではレンズが駆動して
いるのでステップ#235にて“IDOBUN"のルーチンに進
む。
Second time "CDINT" Same as the first time. However, at the second time, since the lens is driven, the routine proceeds to the "IDOBUN" routine at step # 235.

第8図「IDOBUN」 ・ステップ#435:今回と前回のデフォーカス方向を判定
する。ここでは方向が反転していないとしてステップ#
440に進み、積分中心から演算終了までに動いたレンズ
移動量CTCを求め、ステップ#445の“ニアゾーンA判
定”のサブルーチンに進む。
Fig. 8 "IDOBUN" Step # 435: Determine the current and previous defocus directions. Steps here assuming the directions are not reversed #
In step 440, the lens movement amount CTC that has moved from the center of integration to the end of calculation is obtained, and the flow advances to the "near zone A determination" subroutine in step # 445.

第23図「ニアゾーンA判定」 ・ステップ#3000にてデフォーカスパルス数ERRをERR1
とし、レンズが駆動しているので、ステップ#3010に進
み、積分中心から演算終了までのレンズ移動量CTCをERR
1からひいてステップ#3015に進み、追随Fがセットさ
れておらず、スピード優先モードではないと仮定してい
るのでニアゾーン範囲を示すカウンターNZCを120にセッ
トしてステップ#3035に進む。#3035ではデフォーカス
パルス数ERR1がカウンター値NZC以下か否かを判定し、
ここではERR1がNZC以下になったとしてNZFをセットす
る。
Fig. 23 "Near Zone A Judgment" ・ In step # 3000, defocus pulse number ERR is set to ERR1.
Since the lens is driven, the process proceeds to step # 3010, and the lens movement amount CTC from the center of integration to the end of calculation is ERR.
Then, the procedure proceeds from step 1 to step # 3015. Since it is assumed that the follower F is not set and the speed priority mode is not set, the counter NZC indicating the near zone range is set to 120 and the procedure proceeds to step # 3035. In # 3035, determine whether the defocus pulse number ERR1 is less than or equal to the counter value NZC,
Here, NZF is set assuming that ERR1 has fallen below NZC.

第8図「IDOBUN」 ・ステップ#450:NZFがセットされているか否かを判別
し、NZFがセットされているのでステップ#460以降に進
み、前回演算されたデフォーカス方向と今回演算された
デフォーカス方向とが同一方向か否かを判定し、同一方
向であると仮定するとステップ#470に進み、今回のデ
フォーカスパルス数ERR1に前回の積分中心から今回の積
分中心までの間に動いたレンズ駆動量ITIを加え、前回
のデフォーカス量LEERをひいて補正量WRを求める。
Fig. 8 "IDOBUN" ・ Step # 450: Determine whether NZF is set or not. Since NZF is set, proceed to step # 460 and subsequent steps, the defocus direction calculated last time and the defocus direction calculated this time. If it is determined that the focus direction is the same direction and it is assumed that the focus direction is the same direction, the process proceeds to step # 470, and the lens that has moved from the previous integration center to the current integration center at the current defocus pulse number ERR1. Add the drive amount ITI and subtract the previous defocus amount LEER to obtain the correction amount WR.

・ステップ#475:追随Fがセットされていないのでステ
ップ#480に進み、デフォーカス量が大きくなっている
(補正量WRが所定量AA以上である)とすると、ステップ
#485にて追随Fをセットし、ステップ#490にて追随補
正Fをセットしてステップ#300に進む。
Step # 475: Since the follower F is not set, the process proceeds to step # 480, and if the defocus amount is large (the correction amount WR is equal to or larger than the predetermined amount AA), the follower F is set in step # 485. After setting, the tracking correction F is set in step # 490, and the process proceeds to step # 300.

第6図「MFZ」 ・ステップ#300:合焦Fをリセットしてからステップ#
315に進み、追随補正Fがセットされているのでステッ
プ#320に進み、デフォーカスパルス数ERRに追随補正量
2WRを加えた新たなデフォーカス量を求め、ステップ#3
35に進む。
Fig. 6 "MFZ" ・ Step # 300: Step F after resetting focus F
Since the tracking correction F has been set in step 315, the flow advances to step # 320, and the tracking correction amount is set in the defocus pulse number ERR.
Obtain a new defocus amount with 2WR added, and step # 3
Proceed to 35.

・ステップ#335:追随Fがセットされているのでステッ
プ#337→#340→#335→#365→TINNZに進む。
-Step # 335: Since the follower F is set, proceed to steps # 337 → # 340 → # 335 → # 365 → TINNZ.

第10図「TINNZ」 ・第1回目と同じ。但し、ステップ#665にてNZFがセッ
トされているので、ステップ#660→#665の“タイマI
セット”のサブルーチンに進む。
Fig. 10 "TINNZ" ・ Same as the first time. However, since NZF is set in step # 665, "timer I in steps # 660 → # 665 is set.
Proceed to the "set" subroutine.

第14図「タイマーIセット」 このサブルーチンでは、タイマー値により通電時間が
決定し、タイマー値に応じてモータ速度を決定する。
FIG. 14 "Timer I Set" In this subroutine, the energization time is determined by the timer value, and the motor speed is determined by the timer value.

第10図「TINNZ」 ・ステップ#700:タイマーIにて設定されたモータ速度
にてモータが駆動され、ステップ#705→#710→#712
→#712の“ニアゾーン3判定”のサブルーチンに進
む。
Fig. 10 "TINNZ" ・ Step # 700: The motor is driven at the motor speed set by timer I, and steps # 705 → # 710 → # 712
→ Proceed to the # 712 “near zone 3 judgment” subroutine.

第15図「ニアゾーン3判定」 ・ステップ#2505:ニアゾーン3の領域に入っているか
否かを判別する。
Fig. 15 "Judgment of Near Zone 3" Step # 2505: It is judged whether or not the area is in the near zone 3.

第10図「TINNZ」 ・ステップ#712:ニアゾーン3の領域に入ってNZ3Fがセ
ットされるまではステップ#712と#715のルーチンを繰
り返し、ステップ#720にて移動積分Fをセットし、ス
テップ#725→#735→CDINTに進む。
Fig. 10 "TINNZ" ・ Step # 712: Repeat the routine of steps # 712 and # 715 until entering the area of near zone 3 and setting NZ3F, set moving integral F in step # 720, and step # 720. Go to 725 → # 735 → CDINT.

即ち、ステップ#712と#715を回ってニアゾーン3内
に入るまでの間(速度が1000rpmに減速されるまでの
間)は、次の焦点検出動作(CDINT)は行われないので
移動積分が行われない(移動積分は禁止される)。ニア
ゾーン3内に入ってステップ#720→→#735→CDINTへ
進み、速度が1000rpmに減速されると次の焦点検出が行
われ、移動積分が再開されることになる。
That is, since the next focus detection operation (CDINT) is not performed until steps # 712 and # 715 are entered into the near zone 3 (until the speed is reduced to 1000 rpm), moving integration is performed. Not allowed (moving integral is prohibited). After entering the near zone 3, the process proceeds to steps # 720 →→ # 735 → CDINT, and when the speed is reduced to 1000 rpm, the next focus detection is performed and the moving integration is restarted.

[発明の効果] 本発明によると、レンズ移動速度の変化中で、かつレ
ンズ移動速度が高速の時のみ、つまり移動分補正を行う
と誤差が無視できない場合のみ補正手段(移動分補正)
は禁止されるが、低速時には禁止されない。従って、焦
点検出が中断されることが少なく、被写体の動きに応答
して精度良く追随できる。
EFFECTS OF THE INVENTION According to the present invention, the correction means (movement amount correction) is performed only when the lens movement speed is changing and the lens movement speed is high, that is, when the error cannot be ignored when the movement amount correction is performed.
Is prohibited, but not at low speeds. Therefore, the focus detection is rarely interrupted, and it is possible to accurately follow the movement of the subject.

【図面の簡単な説明】[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 modified examples. 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 ... photometry circuit, 10 ... motor control circuit, 11 ... encoder, 12 ...
... Lens circuit, 13 ... Auxiliary light generator, 15 ... Timer.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 谷口 信行 大阪府大阪市東区安土町2丁目30番地 大 阪国際ビルミノルタカメラ株式会社内 (72)発明者 大塚 博司 大阪府大阪市東区安土町2丁目30番地 大 阪国際ビルミノルタカメラ株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Nobuyuki Taniguchi, 2-30 Azuchi-cho, Higashi-ku, Osaka-shi, Osaka Prefecture Osaka International Building Minolta Camera Co., Ltd. (72) Hiroshi Otsuka 2-chome, Azuchi-cho, Higashi-ku, Osaka-shi, Osaka No. 30 Osaka International Building Minolta Camera Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】撮影レンズを通過した被写体光を受光する
電荷蓄積型受光手段と、 上記受光手段の受光出力に基づいて、撮影レンズの合焦
位置までの移動量を演算する演算手段と、 上記撮影レンズを駆動する駆動手段と、 上記演算された移動量を上記駆動手段の駆動量として設
定する設定手段と、 上記設定された駆動量に基づいて上記駆動手段を駆動す
る駆動制御手段と、 上記駆動手段による撮影レンズ移動中に上記受光手段お
よび演算手段を繰り返し動作させる制御手段と、 撮影レンズ移動中の上記受光出力に基づいて上記演算手
段の演算がなされた場合に、演算された移動量を上記受
光手段動作中のレンズの移動量に基づいて補正する補正
手段と、 上記駆動制御手段により駆動される撮影レンズの移動速
度の変化中、かつ、上記駆動手段により駆動される撮影
レンズの移動速度が所定の速度よりも速い場合には、上
記補正手段の動作を禁止し、上記駆動制御手段により駆
動される撮影レンズの移動速度の変化中で、かつ、上記
駆動制御手段により駆動される撮影レンズの移動速度が
所定の速度よりも遅い場合には上記禁止を行わないよう
制御する制御手段とを有することを特徴とする自動焦点
調節装置。
1. A charge storage type light receiving means for receiving subject light which has passed through a taking lens, and a computing means for computing a moving amount of the taking lens to a focus position based on a light receiving output of the light receiving means. Drive means for driving the photographing lens; setting means for setting the calculated movement amount as the drive amount of the drive means; drive control means for driving the drive means based on the set drive amount; A control means for repeatedly operating the light receiving means and the calculating means during movement of the photographing lens by the driving means, and a calculated movement amount when the calculation means calculates based on the received light output during movement of the photographing lens. A correction unit that corrects based on the amount of movement of the lens during operation of the light receiving unit, a change in the moving speed of the photographing lens driven by the drive control unit, and When the moving speed of the taking lens driven by the step is faster than a predetermined speed, the operation of the correcting means is prohibited, the moving speed of the taking lens driven by the drive control means is changing, and An automatic focus adjusting device comprising: a control unit that controls not to perform the prohibition when the moving speed of the photographing lens driven by the drive control unit is slower than a predetermined speed.
JP10286387A 1987-04-24 1987-04-24 Automatic focus adjustment device Expired - Fee Related JPH0827423B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10286387A JPH0827423B2 (en) 1987-04-24 1987-04-24 Automatic focus adjustment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10286387A JPH0827423B2 (en) 1987-04-24 1987-04-24 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
JPS62269914A JPS62269914A (en) 1987-11-24
JPH0827423B2 true JPH0827423B2 (en) 1996-03-21

Family

ID=14338750

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10286387A Expired - Fee Related JPH0827423B2 (en) 1987-04-24 1987-04-24 Automatic focus adjustment device

Country Status (1)

Country Link
JP (1) JPH0827423B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USRE36546E (en) * 1990-11-29 2000-02-01 Asahi Kogaku Kogyo Kabushiki Kaisha Automatic focusing device
DE4139399A1 (en) * 1990-11-29 1992-07-02 Asahi Optical Co Ltd AUTOMATIC FOCUSING DEVICE
US5291235A (en) * 1990-11-29 1994-03-01 Asahi Kogaku Kogyo Kabushiki Kaisha Automatic focusing device

Also Published As

Publication number Publication date
JPS62269914A (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
JPH0750239B2 (en) Automatic focus adjustment device
JPH0797172B2 (en) Automatic focus adjustment device
JPH0797174B2 (en) Automatic focus adjustment device
JPH0827423B2 (en) Automatic focus adjustment device
JPH0830780B2 (en) Automatic focus adjustment device
US4924250A (en) Automatic focus control device
JPS62275208A (en) Automatic focusing device
JP2590873B2 (en) Camera with focus detection device
JPS62269913A (en) Automatic focusing device
JPS62269917A (en) Automatic focusing device
US5196881A (en) Automatic focus control device
JPS62269938A (en) Automatic focus adjusting device
JPH01140109A (en) Camera with automatic focusing function
JP2591086B2 (en) Display device for focus detection
JPH0534757A (en) Camera
JPS62269916A (en) Automatic focusing device
JPS63259522A (en) Camera equipped with automatic focusing device
JPS62269921A (en) Automatic focusing device
US5192966A (en) Automatic focus control device
JPH02814A (en) Camera with automatic focusing function
JPS62269918A (en) Automatic focusing device

Legal Events

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