JPH10282402A - Camera provided with automatic focusing device - Google Patents

Camera provided with automatic focusing device

Info

Publication number
JPH10282402A
JPH10282402A JP10054887A JP5488798A JPH10282402A JP H10282402 A JPH10282402 A JP H10282402A JP 10054887 A JP10054887 A JP 10054887A JP 5488798 A JP5488798 A JP 5488798A JP H10282402 A JPH10282402 A JP H10282402A
Authority
JP
Japan
Prior art keywords
tracking
lens
amount
time
subject
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.)
Pending
Application number
JP10054887A
Other languages
Japanese (ja)
Inventor
Yosuke Kusaka
洋介 日下
Masaru Muramatsu
勝 村松
Takeshi Utagawa
健 歌川
Shozo Yamano
省三 山野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nikon Corp
Original Assignee
Nikon Corp
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 Nikon Corp filed Critical Nikon Corp
Priority to JP10054887A priority Critical patent/JPH10282402A/en
Publication of JPH10282402A publication Critical patent/JPH10282402A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To accurately control the tracking action of a photographing lens even when an object is moved by driving the photographing lens toward a focusing position based on detected out-of-focus amount and decided correction amount. SOLUTION: A primary image is formed near a field lens 27 by luminous flux passed through a pair of areas 18A and 18B being symmetric with respect to an optical axis 17 included in the exit pupil 16 of the photographing lens. Besides, a pair of secondary images is formed on a pair of photodetectors of a CCD 25 by the lens 27 and photographing lenses for reforming an image 28A and 28B. When the primary image is formed on a surface deviated from the conjugate surface of a film, a relative position between a pair of secondary images on the CCD 25 is changed from a prescribed value obtained in the case that they coincide with each other according to the deviating direction of the primary image in an optical axis direction. Thus, the tracking correction amount of the out-of-focus amount is corrected according to the moving direction of the object. Therefore, the photographing lens can be more accurately controlled even during the tracking action.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は自動焦点調節装置を備え
たカメラに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a camera provided with an automatic focusing device.

【0002】[0002]

【従来の技術】従来撮影レンズのデフォーカス量を繰り
返し検出するとともに現在及び過去のデフォーカス量か
ら被写体が移動しているか否かを判定し、被写体が移動
している場合には、現在及び過去のデフォーカス量に基
づいて移動被写体に対して撮影レンズの位置を補正する
ための補正量を求め、更に撮影レンズの駆動量を前記デ
フォーカス量に補正量を加えた量に基づいて求めて撮影
レンズを駆動することにより、移動被写体に対して撮影
レンズを遅れなく駆動する技術いわゆる追尾又は追従駆
動といわれる技術が知られている。例えば本出願人によ
る特開昭60−214325において上記技術が開示さ
れている。
2. Description of the Related Art Conventionally, the amount of defocus of a photographing lens is repeatedly detected, and it is determined whether or not the subject is moving based on the current and past defocus amounts. The amount of correction for correcting the position of the photographing lens with respect to the moving subject is determined based on the amount of defocus, and the amount of drive of the photographing lens is further determined based on the amount obtained by adding the amount of correction to the defocus amount. 2. Description of the Related Art There is known a technique for driving a photographing lens without delay with respect to a moving subject by driving a lens, a technique called so-called tracking or following drive. For example, the above technique is disclosed in Japanese Patent Application Laid-Open No. 60-214325 by the present applicant.

【0003】[0003]

【発明が解決しようとする問題点】上記の如き従来の技
術は以下の欠点があった。上述のように、従来の追尾補
正を行うカメラにおいては、被写体がカメラに近づいて
くる場合と遠ざかる場合とに応じて、追尾補正の制御を
変えることは行われていなかった。しかしながら、被写
体がカメラに近づいてくる場合は遠ざかる場合に比べ
て、被写体の移動によって生じる焦点ずれ量(デフォー
カス量)の変化速度が大きくなる。例えば、被写体がカ
メラに等速で近づいてくる場合、焦点ずれ量の変化量は
およそ被写体距離の2乗に反比例して大きくなる。この
ため、上述した従来のカメラの追尾補正では、被写体が
近づいてくる場合には補正に遅れが生じ、逆に遠ざかる
場合には補正が過剰になるという問題がある。
The prior art as described above has the following disadvantages. As described above, in the conventional camera that performs the tracking correction, the control of the tracking correction has not been changed depending on whether the subject approaches the camera or moves away from the camera. However, when the subject approaches the camera, the change speed of the defocus amount (defocus amount) caused by the movement of the subject becomes larger than when the subject moves away. For example, when the subject approaches the camera at a constant speed, the amount of change in the amount of defocus increases approximately in inverse proportion to the square of the subject distance. Therefore, in the above-described conventional camera tracking correction, there is a problem that the correction is delayed when the subject approaches, and excessively corrected when the subject moves away.

【0004】本発明は、このような点に鑑みて成された
ものであり、被写体が移動している場合にも精度良く追
尾制御の可能な自動焦点調節装置を備えたカメラを提供
することを目的とする。
The present invention has been made in view of the above points, and an object of the present invention is to provide a camera equipped with an automatic focusing device capable of performing tracking control with high accuracy even when a subject is moving. Aim.

【0005】[0005]

【問題点を解決する為の手段】請求項1の発明では、焦
点を合わせるべき被写体に対する撮影レンズの焦点ずれ
量を検出する焦点検出手段(図13)と、前記焦点検出
手段によって検出された前記焦点ずれ量信号に基づい
て、被写体の移動状態を判定する判定手段(図17の#495
-#515)と、前記被写体の移動によって生じる前記焦点
ずれ量の変化量(PRED)を演算する演算手段(図17の#4
80)と、前記被写体の移動によって前記焦点ずれ量の変
化量を補正するための補正量(#525のCOMP)を、前記判
定手段によって検出された被写体の移動方向によって互
いに異なる量(#520)となるように決定する補正量決定
手段(#525)と、前記焦点検出手段により検出された前記
焦点ずれ量と前記補正量決定手段により決定された前記
補正量とに基づいて、焦点調節用の前記撮影レンズを合
焦位置に向けて駆動するレンズ駆動手段(#530)とを備え
たことを特徴とする自動焦点調節装置を備えたカメラ。
According to the first aspect of the present invention, there is provided a focus detecting means (FIG. 13) for detecting an amount of defocus of a photographing lens with respect to a subject to be focused, and the focus detecting means for detecting the amount of defocus. Judgment means for judging the moving state of the subject based on the defocus amount signal (# 495 in FIG. 17)
-# 515) and calculating means (# 4 in FIG. 17) for calculating the amount of change (PRED) in the defocus amount caused by the movement of the subject.
80) and a correction amount (COMP of # 525) for correcting the change amount of the defocus amount due to the movement of the subject, which are different from each other (# 520) depending on the moving direction of the subject detected by the determination means. Correction amount determining means (# 525) for determining focus adjustment based on the defocus amount detected by the focus detecting means and the correction amount determined by the correction amount determining means. A camera provided with an automatic focusing device, comprising: lens driving means (# 530) for driving the photographing lens toward a focus position.

【0006】また、請求項2の発明では、前記補正量決
定手段は、被写体が前記カメラに近づく場合は被写体が
前記カメラから遠ざかる場合に比べて前記補正量を大き
くしたこと(図17の#520)を特徴とする請求項1記載の
自動焦点調節装置を備えたカメラ。
In the invention of claim 2, the correction amount determining means increases the correction amount when the subject approaches the camera as compared with when the subject moves away from the camera (# 520 in FIG. 17). A camera provided with the automatic focusing device according to claim 1.

【0007】[0007]

【作用】請求項1の発明においては、被写体移動の移動
方向に応じて焦点ずれ量の追尾補正量を補正するように
したので、追尾駆動時においてもより高精度に撮影レン
ズを駆動制御できる。また、請求項2の発明によれば、
追尾補正量の補正を適正な値を設定しているので、被写
体の移動方向に応じて精度良く撮影レンズを駆動制御で
きる。
According to the first aspect of the present invention, since the tracking correction amount of the defocus amount is corrected in accordance with the moving direction of the movement of the subject, the drive of the photographing lens can be controlled with higher accuracy even during the tracking drive. According to the second aspect of the present invention,
Since the correction of the tracking correction amount is set to an appropriate value, the drive of the photographing lens can be accurately controlled according to the moving direction of the subject.

【0008】[0008]

【実施例】【Example】

(第1実施例)図1は本発明をレンズ交換型一眼レフカ
メラに適用した実施例を示すもので、カメラボディ20
に対して交換可能なレンズ10が着脱自在にマウントし
得るようになされている。
(First Embodiment) FIG. 1 shows an embodiment in which the present invention is applied to an interchangeable lens type single-lens reflex camera.
The interchangeable lens 10 can be mounted detachably.

【0009】レンズ20を装着した状態において、被写
体から到来する撮影光束は撮影レンズ11を通ってカメ
ラボディ20に設けられているメインミラー21によっ
て一部は反射されて不図示のファインダに導かれる。こ
れと同時に撮影光束の他の一部がメインミラー21を透
過してサブミラー22によって反射されることにより、
焦点検出用光束としてオートフォーカスモジュール23
(以後AFモジュールという)に導かれる。
In a state where the lens 20 is mounted, a photographic light beam coming from a subject passes through the photographic lens 11 and is partially reflected by a main mirror 21 provided on the camera body 20 and guided to a finder (not shown). At the same time, another part of the photographing light flux is transmitted through the main mirror 21 and reflected by the sub-mirror 22,
Auto focus module 23 as light beam for focus detection
(Hereinafter referred to as an AF module).

【0010】AFモジュール23の構成例を図2に示
す。図2においてAFモジュールはフィールドレンズ2
7及び一対の再結像レンズ28A、28Bからなる焦点
検出光学系24と一対の受光部29A、29Bを有する
CCD(チャージカップルドデバイス)25とから構成
されている。
FIG. 2 shows an example of the configuration of the AF module 23. In FIG. 2, the AF module is a field lens 2
7 and a focus detection optical system 24 including a pair of re-imaging lenses 28A and 28B, and a CCD (charge coupled device) 25 having a pair of light receiving units 29A and 29B.

【0011】以上のような構成において撮影レンズ11
の射出瞳16に含まれる光軸17に対して対称な一対の
領域18A、18Bを通る光束はフィールドレンズ27
付近で一次像を形成し更にフィールドレンズ27及び再
結像撮影レンズ28A、28BによってCCD25の一
対の受光部上に一対の二次像を形成する。前記一次像が
不図示のフィルム共役面と一致している時CCD25上
で一対の二次像の受光部並び方向の相対的位置は焦点検
出光学系の構成によって決まる所定値となる。又一対の
受光部29A、29Bは、各々nケの受光素子ai、b
i(i=1〜n)から成り一次像がフィルム共役面と一
致している時に対応する受光素子(a1とb1 、a2 と
b2 …)の出力が等しくなるように配置されている。
In the above configuration, the photographing lens 11
A light beam passing through a pair of regions 18A and 18B symmetric with respect to the optical axis 17 included in the exit pupil 16 of the
A primary image is formed in the vicinity, and a pair of secondary images is formed on a pair of light receiving portions of the CCD 25 by the field lens 27 and the re-imaging photographing lenses 28A and 28B. When the primary image coincides with a film conjugate plane (not shown), the relative position of the pair of secondary images in the direction in which the light receiving sections are arranged on the CCD 25 has a predetermined value determined by the configuration of the focus detection optical system. The pair of light receiving units 29A and 29B are respectively n light receiving elements ai and b.
i (i = 1 to n) and arranged so that the outputs of the corresponding light receiving elements (a1 and b1, a2 and b2...) when the primary image coincides with the film conjugate plane are equal.

【0012】前記一次像がフィルム共役面からずれた面
に形成されている場合にはCCD25上での一対の二次
像の相対的位置は一次像の光軸方向のずれ方向(即わち
前ピンか後ピンか)に応じて前記一致している場合の所
定値から変化する。例えば前ピンの場合には、一対の二
次像の位置関係は相対的に広がり後ピンの場合には狭ま
る。
When the primary image is formed on a plane shifted from the film conjugate plane, the relative position of the pair of secondary images on the CCD 25 is determined by the shift direction of the primary image in the optical axis direction. The value is changed from the predetermined value in the case of the coincidence according to the pin or the post-pin. For example, in the case of the front focus, the positional relationship between the pair of secondary images is relatively widened, and in the case of the rear focus, it is narrowed.

【0013】受光部29A、29Bを形成する受光素子
ai、biはフォートダイオード等の電荷蓄積型素子に
よって構成されており、CCD25上の照度に応じた電
荷蓄積時間だけ電荷蓄積を行なうことにより受光素子出
力を後述の処理に適する、出力レベルとすることができ
る。
The light receiving elements ai and bi forming the light receiving sections 29A and 29B are constituted by charge storage elements such as fort diodes, and charge storage is performed for a charge storage time corresponding to the illuminance on the CCD 25, thereby obtaining light reception elements. The output can be an output level suitable for the processing described below.

【0014】再び図1に戻り説明を続ける。センサー制
御手段26はAFCPU30のポートP4からの電荷蓄
積開始及び終了指令を受け取り指令に応じた制御信号を
CCD25に与えることによりCCD25の電荷蓄積開
始及び終了を制御するとともに転送クロック信号をCC
D25に与え受光素子出力信号を時系列的にAFCPU
に転送する。又受光素子出力信号の発生、同期信号をA
FCPU30のポートP4に送り、AFCPU30は前
記発生同期信号に同期して内蔵のAD変換手段によりA
D変換をスタートさせ以後前記転送クロックのサイクル
タイム毎に受光素子出力をポートP3にてサンプリング
AD変換して受光素子数に応じたAD変換データ(2n
ケ)を得た後、該データに基づき後述する公知の焦点検
出演算を行ない第1像とフィルム共役面とのデフォーカ
ス量を求める。
Returning to FIG. 1, the description will be continued. The sensor control means 26 receives the charge accumulation start and end commands from the port P4 of the AFCPU 30 and controls the charge accumulation start and end of the CCD 25 by supplying a control signal corresponding to the command to the CCD 25, and also outputs a transfer clock signal to the CC 25.
D25 to the light receiving element output signal
Transfer to In addition, generation of a light receiving element output signal and synchronization signal
The signal is sent to the port P4 of the FCPU 30, and the AF CPU 30 synchronizes with the generated synchronizing signal by the built-in AD conversion means.
After the D conversion is started, the output of the light receiving element is sampled and A / D converted at the port P3 every cycle time of the transfer clock, and the A / D conversion data (2n) corresponding to the number of the light receiving elements is obtained.
G), a well-known focus detection calculation described later is performed based on the data to obtain a defocus amount between the first image and the film conjugate plane.

【0015】AFCPU30は焦点検出演算結果に基づ
いてAF表示手段40の表示形態をポートP5を用いて
制御する。例えば前ピンの場合は三角表示部41、後ピ
ンの場合は三角表示部43、合焦の場合は丸表示部4
2、焦点検出不能の場合はバツ表示部44が各々アクテ
ィブになるようにAFCPU30は制御する。又AFC
PU30は焦点検出演算結果に基づいてAFモータ50
の駆動方向及び駆動量を制御して、撮影レンズ11を合
焦点に移動させる。
The AF CPU 30 controls the display mode of the AF display means 40 using the port P5 based on the focus detection calculation result. For example, in the case of a front focus, a triangle display unit 41, in the case of a rear focus, a triangle display unit 43, and in the case of focus, a circle display unit 4
2. If the focus cannot be detected, the AF CPU 30 controls the cross display unit 44 to be activated. AFC
The PU 30 controls the AF motor 50 based on the focus detection calculation result.
The driving direction and the driving amount are controlled to move the photographing lens 11 to the focal point.

【0016】まずAFCPU30はデフォーカス量の符
号(前ピン、後ピン)に従ってポートP2からAFモー
タ50を撮影レンズ11が合焦点に近づく方向へ回転さ
せる駆動信号を発生する。AFモータの回転運動はボデ
ィ20に内蔵されたギヤ等から構成されたボディ伝達系
51を経てボディ20とレンズ10のマウント部に設け
られたボディ側のカップリング53に伝達される。
First, the AF CPU 30 generates a drive signal for rotating the AF motor 50 from the port P2 in the direction in which the photographic lens 11 approaches the focal point according to the sign of the defocus amount (front focus, rear focus). The rotational motion of the AF motor is transmitted to a body-side coupling 53 provided on a mount portion of the body 20 and the lens 10 via a body transmission system 51 including a gear and the like built in the body 20.

【0017】ボディ側のカップリング53に伝達された
回転運動は更にこれにかん合するレンズ側のカップリン
グ14及びレンズ10に内蔵されたギヤ等から構成され
たレンズ伝達系12に伝達され最終的に撮影レンズ11
が合焦方向へと移動する。又AFモータ50の駆動量は
前記ボディ伝達系51のギヤ等の回転量をフォトインタ
ラプタ等によって構成されるエンコーダ52によってパ
ルス数に変換されポートP1からAFCPU30にフィ
ードバックされる。
The rotational motion transmitted to the coupling 53 on the body side is further transmitted to the lens transmission system 12 composed of a coupling 14 on the lens side and a gear built in the lens 10 to be engaged therewith and finally. Shooting lens 11
Moves in the focusing direction. The amount of driving of the AF motor 50 is converted into the number of pulses by an encoder 52 constituted by a photo interrupter or the like, and the amount of rotation of the gear or the like of the body transmission system 51 is fed back to the AF CPU 30 from the port P1.

【0018】AFCPU30はボディ伝達系51及びレ
ンズ伝達系12の減速比等のパラメータに応じてAFモ
ータ50の駆動量即ちエンコーダ52からフィードバッ
クされるパルス数を制御することにより撮影レンズ11
を所定移動量だけ移動することができる。AFCPU3
0はポートP1より入力するパルス数をカウントするた
めのパルスカウンタと、該パルスカウンタの内容と比較
するための比較レジスタを内蔵しており、該パルスカウ
ンタと比較レジスタの内容が一致した時に内部割込がか
かる機能を有している。
The AF CPU 30 controls the driving amount of the AF motor 50, that is, the number of pulses fed back from the encoder 52, in accordance with parameters such as the reduction ratio of the body transmission system 51 and the lens transmission system 12, so that the photographic lens 11 is controlled.
Can be moved by a predetermined movement amount. AFCPU3
0 incorporates a pulse counter for counting the number of pulses input from the port P1 and a comparison register for comparing with the contents of the pulse counter. It has a function that includes

【0019】AFCPU30は以下のような順序でAF
モータ50の駆動量を制御する。まずAFモータ50の
駆動開始前にパルスカウンタの内容をクリアし比較レジ
スタに所望のパルス数をセットする。次にAFモータ5
0の駆動を開始する。AFモータ50の回転によりエン
コーダ52がパルスを発生してパルスカウンタにカウン
トアップされる。
The AF CPU 30 executes the AF in the following order.
The driving amount of the motor 50 is controlled. First, before the driving of the AF motor 50 is started, the contents of the pulse counter are cleared and the desired number of pulses is set in the comparison register. Next, the AF motor 5
0 is started. The rotation of the AF motor 50 causes the encoder 52 to generate a pulse and count up to a pulse counter.

【0020】パルスカウンタの内容が比較レジスタと一
致した時に割込がかかりAFCPUは割込処理でAFモ
ータを停止させる。このようにしてAFモータは所望の
パルス数だけ駆動制御される。又AFCPU30は時間
を計測するためのタイマーを内蔵しており一定時間毎に
割込がかかるタイマー割込機能も有している。AFCP
U30は以上のように主としてAF動作を制御する機能
を受け持っている。
When the contents of the pulse counter match the comparison register, an interruption is made and the AF CPU stops the AF motor in the interruption processing. In this way, the AF motor is driven and controlled by a desired number of pulses. Further, the AFCPU 30 has a built-in timer for measuring time, and also has a timer interrupt function of interrupting at regular intervals. AFCP
U30 mainly has a function of controlling the AF operation as described above.

【0021】ボディ20の内部には又カメラシーケンス
露出動作(AE)を主として制御するためのメインCP
U70がある。メインCPU70は被写体輝度、フィル
ム感度、絞り値、シャッター速度等の露出に関する情報
をAE情報手段85よりポートQ12から入力し、該A
E情報に基づき絞り値、シャッタ速度等を決定する。メ
インCPU70は決定した絞り値、シャッタ速度等の情
報を、ポートQ13を通じて表示手段86に表示すると
ともに、撮影動作における絞り値、シャッタ速度とす
る。
A main CP for mainly controlling a camera sequence exposure operation (AE) is provided inside the body 20.
There is U70. The main CPU 70 inputs information on exposure such as subject brightness, film sensitivity, aperture value, shutter speed and the like from the AE information means 85 from the port Q12,
An aperture value, a shutter speed, and the like are determined based on the E information. The main CPU 70 displays information such as the determined aperture value and shutter speed on the display unit 86 through the port Q13, and sets the information as the aperture value and shutter speed in the shooting operation.

【0022】メインCPU70は撮影動作においてはポ
ートQ8からミラー制御手段81によるメインミラー2
1のアップ、ダウン動作の制御を行なう。又ポートQ1
0を通じて絞り制御手段83を制御して不図示のレンズ
10内の絞り機構の制御を行なう。又ポートQ9によ
り、シャッタ制御手段82を動作させ不図示のシャッタ
機構を制御する。
In the photographing operation, the main CPU 70 controls the main mirror 2 by the mirror control means 81 from the port Q8.
1 is controlled. Port Q1
By controlling the aperture control means 83 through 0, the aperture mechanism in the lens 10 (not shown) is controlled. The port Q9 operates the shutter control means 82 to control a shutter mechanism (not shown).

【0023】メインCPU70は撮影動作が終了すると
次の撮影動作に備えて、Q11を通じて巻上チャージ制
御手段84を制御して不図示の巻上チャージ機構を動作
させる。以上がメインCPU70の動作の概要である。
When the photographing operation is completed, the main CPU 70 controls the hoisting charge control means 84 through Q11 to operate a hoisting charging mechanism (not shown) in preparation for the next photographing operation. The above is the outline of the operation of the main CPU 70.

【0024】レンズ10にはレンズCPU13が内蔵さ
れており、レンズCPU13はメインCPU70に必要
な例えば開放F値等のAE関連情報、AFCPU30に
必要な例えば撮影レンズ11の単位移動量当りのカップ
リング14の回転数等のAF関連情報を、マウント部を
設けたレンズ側接点15ボディ側接点63を介してボデ
ィ側の通信バス64に送る。
The lens 10 has a lens CPU 13 built therein. The lens CPU 13 includes AE-related information such as an open F value required for the main CPU 70 and a coupling 14 per unit movement amount of the photographing lens 11 required for the AF CPU 30, for example. The AF-related information such as the number of rotations is transmitted to the body-side communication bus 64 via the lens-side contact 15 provided with the mount unit and the body-side contact 63.

【0025】AFCPU30はレンズCPU13からの
AF関連情報を通信バス64につながったポートP6よ
り受け取る。又メインCPU70はレンズCPU13か
らのAF関連情報を通信バス64につながったポートQ
1より受け取る。又メインCPU70とAFCPU30
は通信バス64を介して各々ポートQ1及びP6より種
々の情報をお互いに入出力することが可能である。
The AF CPU 30 receives AF related information from the lens CPU 13 from a port P 6 connected to the communication bus 64. Further, the main CPU 70 transmits the AF-related information from the lens CPU 13 to the port Q connected to the communication bus 64.
Receive from 1 The main CPU 70 and the AF CPU 30
Can input / output various information to / from each other from the ports Q1 and P6 via the communication bus 64.

【0026】又メインCPU70とAFCPU30の間
には前記通信バス64以外の直結の入出力信号(IO信
号)ラインもある。
There are also directly connected input / output signal (IO signal) lines other than the communication bus 64 between the main CPU 70 and the AF CPU 30.

【0027】AFはAF許可信号でありメインCPU7
0のポートQ2よりAFCPU30のポートP7に送ら
れる。AF許可信号(AF)は、オン(以後ON)の時
AFCPU30によるAFモータ50の駆動を許可し、
OFFの時駆動を禁止する。AF許可信号(AF)は、
メインCPU70の巻上チャージ制御と、AFCPU3
0のAFモータ駆動とが同時に行われて、不図示の電池
等の電源の電力供給能力を越えて不具合が生ずるのを防
ぐ目的に使用される。即ちメインCPU30は巻上チャ
ージ動作を行っている間はAF許可信号をオフ(以降O
FF)としてAFCPU30のAFモータ50の駆動を
禁止して、巻上チャージ動作とAFモータ駆動が同時に
行われることを防止する。
AF is an AF permission signal, and the main CPU 7
The data is sent from the port Q2 of 0 to the port P7 of the AFCPU 30. When the AF permission signal (AF) is ON (hereinafter, ON), the AF CPU 30 permits the AF motor 50 to be driven,
Driving is prohibited when it is OFF. The AF permission signal (AF)
Hoisting charge control of main CPU 70 and AFCPU 3
The AF motor drive of 0 is performed at the same time, and is used for the purpose of preventing a problem from occurring beyond the power supply capability of a power source such as a battery (not shown). That is, the main CPU 30 turns off the AF permission signal (hereinafter referred to as O) during the winding charging operation.
As FF), the driving of the AF motor 50 of the AF CPU 30 is prohibited to prevent the winding charging operation and the AF motor driving from being performed at the same time.

【0028】MRはミラーアップ信号であり、メインC
PU70のポートQ3よりAFCPU30のポートP8
に送られる。ミラーアップ信号(MR)はONの時ミラ
ーアップ中及びアップとダウンの遷移中を表わしOFF
の時ミラーダウン中を表わす。ミラーアップ信号(M
R)は、AFCPU30のCCD蓄積開始ミラーアップ
後の駆動ディレイ開始のタイミング調整に用いられる。
RLはレリーズ許可信号であり、AFCPU30のポー
トP9よりメインCPU70のポートQ4に送られる。
MR is a mirror up signal.
From port Q3 of PU70 to port P8 of AFCPU30
Sent to When the mirror up signal (MR) is ON, it indicates that the mirror is up and the transition between up and down is OFF.
Indicates that the mirror is down. Mirror up signal (M
R) is used for adjusting the timing of the drive delay start after the CCD accumulation start mirror of the AFCPU 30 is raised.
RL is a release permission signal, which is sent from the port P9 of the AFCPU 30 to the port Q4 of the main CPU 70.

【0029】レリーズ許可信号(RL)はONの時メイ
ンCPU70による撮影動作を許可し、OFFの時禁止
する。レリーズ許可信号(RL)は、後述するAFCP
U30のAF追尾動作制御とメインCPU70の撮影動
作制御とのタイミング調整や、ワンショットAFモード
時に合焦前は撮影動作を禁止するのに使用される。
The release permission signal (RL) permits the photographing operation by the main CPU 70 when it is ON, and prohibits it when OFF. The release permission signal (RL) is transmitted to an AFCP
It is used to adjust the timing between the AF tracking operation control of U30 and the photographing operation control of the main CPU 70, and to inhibit the photographing operation before focusing in the one-shot AF mode.

【0030】RBはレリーズボタン信号であり、ボディ
20に設けられた外部操作部材であるレリーズボタン6
0の操作状態情報をAFCPU30のポートP10及び
メインCPU70のポートQ5に送る。レリーズボタン
信号(RB)はONの時レリーズボタンの全押し、OF
Fの時非全押しを表わす。レリーズボタン信号(RB)
はメインCPU70の撮影動作制御の起動や後述するA
FCPU30の追尾動作制御に用いられる。
RB is a release button signal, which is a release button 6 which is an external operation member provided on the body 20.
The operation state information of 0 is sent to the port P10 of the AF CPU 30 and the port Q5 of the main CPU 70. When the release button signal (RB) is ON, fully press the release button, OF
F indicates non-full press. Release button signal (RB)
Indicates activation of the photographing operation control of the main CPU 70 and A
Used for controlling the tracking operation of the FCPU 30.

【0031】DMは駒速モード信号であり、ボディ20
に設けられた外部部材である駒速モード選択手段61の
駒速モード選択状態の情報をAFCPU30のポートP
11及びメインCPU70のポートQ6に送る。駒速モ
ード信号(DM)の表わす駒速モードはC1、C2、S
の3種類であり、C1は駒速優先の高速連続撮影モード
でありレリーズボタン60が全押の間は撮影動作が終了
すると即次の撮影動作に移るモードであり、撮影動作と
撮影動作の間にAF動作はほとんど行なわれない。
DM is a frame speed mode signal.
The information of the frame speed mode selection state of the frame speed mode selection means 61 which is an external member provided at
11 and port Q6 of the main CPU 70. The frame speed mode indicated by the frame speed mode signal (DM) is C1, C2, S
C1 is a high-speed continuous shooting mode in which the frame speed is prioritized, and while the release button 60 is fully pressed, the shooting operation is immediately shifted to the next shooting operation while the release button 60 is fully pressed. AF operation is hardly performed.

【0032】又C2はレリーズボタン60が全押の間撮
影動作と次の撮影動作の間にAF動作が少くとも1回は
入る通常連続撮影モードで駒速モードC1よりは駒速は
遅くなる。又Sはシングル撮影モードであり、レリーズ
ボタン60が全押されると一回だけ撮影動作が行なわれ
る。
C2 is a normal continuous photographing mode in which the AF operation is performed at least once between the photographing operation and the next photographing operation while the release button 60 is fully pressed, and the frame speed is slower than the frame speed mode C1. S is a single photographing mode, and the photographing operation is performed only once when the release button 60 is fully pressed.

【0033】FMはフォーカスモード信号でありボディ
20に設けられた外部操作部材であるフォーカスモード
選択手段62のフォーカスモード選択状態の情報をAF
CPU30のポートP12及びメインCPU70のポー
トQ7に送る。フォーカスモード信号(FM)の表わす
フォーカスモードはC、O、Mの3種類であり、Cは連
続AFモードであり常に検出したデフォーカス量に基づ
いて撮影レンズ11を合焦点へとサーボするモードであ
る。
Reference numeral FM denotes a focus mode signal, which is used to output information of a focus mode selection state of a focus mode selection means 62 which is an external operation member provided on the body 20 to the AF mode.
It is sent to the port P12 of the CPU 30 and the port Q7 of the main CPU 70. There are three types of focus modes represented by the focus mode signal (FM): C, O, and M. C is a continuous AF mode in which the photographing lens 11 is servoed to a focused point based on the always detected defocus amount. is there.

【0034】又Oはワンショットモードであり一旦撮影
レンズ11の合焦点へ到達するとそれ以後撮影レンズ1
1のサーボを行なわないモードである。又Mはマニュア
ルモードであり、撮影レンズ11のサーボは行なわず表
示手段40のみで焦点検出結果を表示するモードであ
る。表1に以上説明したIO信号をまとめて示す。
O is a one-shot mode, and once the focus of the taking lens 11 is reached, the taking lens 1
This is a mode in which servo 1 is not performed. M is a manual mode, in which the focus detection result is displayed only by the display means 40 without performing the servo of the photographing lens 11. Table 1 summarizes the IO signals described above.

【0035】次にAFCPU30とメインCPU70の
動作と駒速モードとフォーカスモードの組み合わせとの
関係について説明する。フォーカスモードがマニュアル
(M)の場合、AFCPU30はAFモータ50を駆動
しないのでAF許可信号(AF)はAFCPU30にと
って不要になる。又AFCPU30はメインCPU70
のミラーアップ信号(MR)がOFFとなっていること
を検知してからCCDの蓄積を開始する。
Next, the relationship between the operations of the AF CPU 30 and the main CPU 70 and the combination of the frame speed mode and the focus mode will be described. When the focus mode is manual (M), the AF CPU 30 does not drive the AF motor 50, so that the AF permission signal (AF) becomes unnecessary for the AF CPU 30. The AF CPU 30 is a main CPU 70
After detecting that the mirror-up signal (MR) is OFF, the accumulation of the CCD is started.

【0036】メインCPU70はAFCPU30のレリ
ーズ許可信号(RL)にかかわらず、全押しとなってい
る時に駒速モードに従って撮影動作をする。フォーカス
モードがワンショットAF(O)の場合、AFCPU3
0はAF許可信号(AF)がONの時だけAFモータ5
0を駆動すると同時にミラーアップ信号(MR)がOF
Fとなっていることを検知してからCCDの蓄積を開始
し、一旦撮影レンズ11が合焦点に達したら以後表示及
び駆動を固定する。
The main CPU 70 performs a shooting operation in accordance with the frame speed mode when fully pressed, regardless of the release permission signal (RL) of the AF CPU 30. When the focus mode is one-shot AF (O), AFCPU3
0 is the AF motor 5 only when the AF permission signal (AF) is ON.
0 at the same time as the mirror up signal (MR)
After detecting that it is set to F, accumulation of the CCD is started, and once the photographing lens 11 reaches the focal point, the display and driving are fixed thereafter.

【0037】又メインCPU70はAFCPU30のレ
リーズ許可信号(RL)がONでレリーズボタン信号
(RB)とONとなっている時に撮影動作を開始でき
る。従ってフォーカスモードがワンショットAFの場合
駒速モードC1とC2は実効的にほとんど同じ動作とな
る。
The main CPU 70 can start the photographing operation when the release permission signal (RL) of the AF CPU 30 is ON and the release button signal (RB) is ON. Therefore, when the focus mode is the one-shot AF, the frame speed modes C1 and C2 effectively perform almost the same operation.

【0038】フォーカスモードが連続AF(C)で駒速
モードがC1又はSの場合AFCPU30はAF許可信
号(AF)がONの時だけAFモータ50を駆動すると
同時にミラーアップ信号(MR)がOFFとなっている
ことを検知してCCDの蓄積を開始する。この場合撮影
レンズ11が合焦点に到達した後も表示駆動は更新され
る。
When the focus mode is continuous AF (C) and the frame speed mode is C1 or S, the AF CPU 30 drives the AF motor 50 only when the AF permission signal (AF) is ON, and simultaneously turns off the mirror up signal (MR). , The accumulation of the CCD is started. In this case, the display drive is updated even after the photographing lens 11 reaches the focal point.

【0039】又この場合メインCPU70はレリーズ許
可信号(RL)にかかわらずレリーズボタン信号(R
B)が全押しとなっている時に駒速モードC1又はSに
従って撮影動作を行なう。従ってフォーカスモードがC
で駒速モードがC1の場合、メインCPU70は撮影動
作の間に余裕時間を設けないのでAFCPU30がAF
モード50を駆動できる時間は巻上チャージ完了から次
の巻上チャージ開始までの短かい時間となる。
In this case, the main CPU 70 issues a release button signal (R) regardless of the release permission signal (RL).
When B) is fully pressed, a shooting operation is performed in accordance with the frame speed mode C1 or S. Therefore, if the focus mode is C
When the frame speed mode is C1, the main CPU 70 does not provide any extra time between the photographing operations, so that the AF CPU 30
The time during which the mode 50 can be driven is a short time from the completion of the hoisting charge to the start of the next hoisting charge.

【0040】フォーカスモードがCで駒速モードがC2
の組み合わせは、後述する動的被写体に最適化した追尾
動作のための特別なモード(追尾モード)であり、AF
CPU30はAF許可信号(AF)がONの時だけAF
モータ50を駆動できミラーアップ信号(MR)がOF
Fとなっていることを検知してCCDの蓄積を開始する
点は前述のモード選択時と同じである。AFモータ50
の駆動量を求める際に後述の追尾アルゴリズムを用い、
動的被写体と判定された場合、AFモータ50の駆動量
をデフォーカス量と追尾補正量の和としてAFモータ5
0を駆動すると同時にAF表示形態も変える。
When the focus mode is C and the frame speed mode is C2
Is a special mode (tracking mode) for a tracking operation optimized for a dynamic subject to be described later.
The CPU 30 performs the AF only when the AF permission signal (AF) is ON.
The motor 50 can be driven and the mirror up signal (MR) is OF
The point at which the accumulation of the CCD is started upon detecting that it has become F is the same as in the above-described mode selection. AF motor 50
Use the tracking algorithm described below when calculating the drive amount of
When it is determined that the subject is a dynamic subject, the driving amount of the AF motor 50 is determined as the sum of the defocus amount and the tracking correction amount.
When 0 is driven, the AF display mode is also changed.

【0041】AFCPU30は追尾モードの場合レリー
ズボタン信号(RB)が全押しの時AFモータ50の一
回の駆動時間を所定時間に制限するとともに駆動開始か
ら、所定時間後にレリーズ許可信号(RL)をONとし
て、AF動作と撮影動作のタイミングを調整する。メイ
ンCPU70は追尾モードの場合(フォーカスモードが
Cで駒速モードがC2)、レリーズ許可信号(RL)が
ONでレリーズボタン信号(RB)がONとなっている
時に撮影動作を開始する。
In the tracking mode, when the release button signal (RB) is fully depressed in the tracking mode, the AF CPU 30 limits the one-time driving time of the AF motor 50 to a predetermined time, and outputs a release permission signal (RL) after a predetermined time from the start of driving. When ON, the timing of the AF operation and the shooting operation is adjusted. In the tracking mode (the focus mode is C and the frame speed mode is C2), the main CPU 70 starts the photographing operation when the release permission signal (RL) is ON and the release button signal (RB) is ON.

【0042】表2に駒速モードとフォーカスモードの組
み合わせと追尾動作の関係についてまとめる。表2より
動的被写体に対して通常のデフォーカス量に追尾補正量
を加えてAFモータ50の駆動量を決定する追尾モード
は、フォーカスモードがCで駒速モードがC2の時のみ
選択されることになる。図3及び図4を用いて追尾モー
ドにおけるAFCPU30とメインCPU70の動作に
ついて、より詳しく説明する。
Table 2 summarizes the relationship between the combination of the frame speed mode and the focus mode and the tracking operation. From Table 2, the tracking mode for determining the drive amount of the AF motor 50 by adding the tracking correction amount to the normal defocus amount for the dynamic subject is selected only when the focus mode is C and the frame speed mode is C2. Will be. The operation of the AF CPU 30 and the main CPU 70 in the tracking mode will be described in more detail with reference to FIGS.

【0043】図3は追尾モードにおけるレリーズボタン
全押時の被写体及び撮影レンズの動きとAFCPU3
0、メインCPU70の動作の関係を示す図であって、
縦軸はレンズ位置Z、横軸は時刻tである。実線L1は
被写体が連続的に移動している時被写体像を常にフィル
ム面に結像させるために必要な撮影レンズ11の理想的
な位置の軌跡である。
FIG. 3 shows the movement of the subject and the photographing lens when the release button is fully pressed in the tracking mode and the AF CPU 3.
0 is a diagram showing the relationship between the operation of the main CPU 70,
The vertical axis represents the lens position Z, and the horizontal axis represents time t. A solid line L1 is a locus of an ideal position of the photographing lens 11 necessary for always forming a subject image on a film surface when the subject is continuously moving.

【0044】又一点鎖線L2は、実際の撮影レンズ11
が動いた軌跡である。メインCPUがミラーダウン動作
を終了した時刻t0において撮影レンズ11は停止して
おりレンズ位置はZ0である。AFCPUは時刻t0よ
りCCDの蓄積を開始し時刻t7に蓄積を終了する。A
FCPUは時刻t7よりCCDデータのAD変換及び焦
点検出演算を始める。追尾モードにおいては後述のよう
に追尾アルゴリズムで動的被写体と判定されると、静的
な被写体として焦点検出演算により求めたデフォーカス
量に追尾補正量を加えた量に応じて撮影レンズを駆動す
るがここでは時刻t0と時刻t7の中点である時刻t1
0における、実線L1と一点鎖線L2の差(ΔZ2=Z
2−Z0)に相当するデフォーカス量と、追尾補正量
(前回の)を加えたもの(追尾デフォーカス量)が時刻
t1に求まる。
The alternate long and short dash line L2 represents the actual photographing lens 11.
Is the trajectory that has moved. At time t0 when the main CPU finishes the mirror down operation, the taking lens 11 is stopped and the lens position is at Z0. The AFCPU starts accumulation of the CCD at time t0 and ends the accumulation at time t7. A
The FCPU starts the A / D conversion of the CCD data and the focus detection calculation from time t7. In the tracking mode, when a dynamic object is determined by the tracking algorithm as described later, the photographing lens is driven according to an amount obtained by adding a tracking correction amount to a defocus amount obtained by a focus detection calculation as a static object. Here, time t1 which is the midpoint between time t0 and time t7
0, the difference between the solid line L1 and the alternate long and short dash line L2 (ΔZ2 = Z
The sum of the defocus amount corresponding to (2-Z0) and the tracking correction amount (previous time) (tracking defocus amount) is obtained at time t1.

【0045】一方メインCPUは時刻t0よりチャージ
・巻上動作を開始し時刻t2に終了する。AFCPUは
時刻t2にチャージ・巻上動作が終了するとモータ駆動
を開始して前記追尾デフォーカス量を新たに追尾補正量
とし、これとデフォーカス量を加えた量(ΔZ1=Z1
−Z0)だけ撮影レンズ11を移動させる。又モータ駆
動開始時刻t2から所定時間後の時刻t4よりメインC
PUはミラーアップ動作を開始する。AFCPUはモー
タ駆動開始時刻t2より所定時間後の時刻t5に強制的
にモータ駆動を終了する。
On the other hand, the main CPU starts the charging / winding operation at time t0 and ends at time t2. When the charging and hoisting operation is completed at time t2, the AFCPU starts motor driving, sets the tracking defocus amount as a new tracking correction amount, and adds this to the defocus amount (ΔZ1 = Z1).
The photographing lens 11 is moved by -Z0). Further, the main C is shifted from a time t4 after a predetermined time from the motor drive start time t2.
The PU starts a mirror-up operation. The AFCPU forcibly ends the motor driving at time t5, which is a predetermined time after the motor driving start time t2.

【0046】メインCPUは時刻t4より所定時間後の
時刻t8にミラーアップ動作を終了しシャッター動作を
開始する。そして時刻t9にシャッター動作を終了しミ
ラーダウン動作を開始し時刻t6にミラーダウン動作を
終了する。メインCPUは時刻t6より再びチャージ巻
上動作を開始するとともにAFCPUは次回のCCD蓄
積動作を開始する。
At time t8, which is a predetermined time after time t4, the main CPU ends the mirror up operation and starts the shutter operation. Then, at time t9, the shutter operation ends, the mirror down operation starts, and at time t6, the mirror down operation ends. The main CPU starts the charge winding operation again at time t6, and the AF CPU starts the next CCD accumulation operation.

【0047】以上のように追尾モードでの撮影時には、
撮影動作と撮影動作の間に必ず焦点検出とモータ駆動の
時間が入るように設定されていると同時にシャッター動
作のタイミングはモータ駆動終了時点近くとなるので図
3に示す如く、軌跡L1とL2の偏差が少ない所で撮影
ができ、ピントの合った写真ができる。上述の説明では
簡単のため所定のAFモータ駆動時間(t2〜t5)の
間に必要な追尾デフォーカス量ΔZ1が丁度駆動し終わ
る場合を示したが、実際にはあらかじめ一定値に定めら
れたモータ駆動時間(t2〜t5)の終了前の時刻t
5′やt5″で駆動が終了し、残りの時間はAFモータ
駆動は停止状態となるようにする方が制御が容易であ
る。
As described above, when shooting in the tracking mode,
Since the time for focus detection and the time for driving the motor are always set between the photographing operations, the timing of the shutter operation is close to the end of the motor driving. Therefore, as shown in FIG. You can shoot in places where there is little deviation, and you can get in-focus photos. In the above description, for simplicity, the case where the required tracking defocus amount ΔZ1 has just been driven during the predetermined AF motor drive time (t2 to t5) has been shown. Time t before the end of driving time (t2 to t5)
The control is easier if the driving is completed at 5 'or t5 "and the AF motor driving is stopped for the remaining time.

【0048】いずれにしても所定のモータ駆動時間(t
2〜t5)の間に必要な追尾デフォーカス量ΔZ1の駆
動が終了しているようにする。AFモータ駆動時間の長
さは、例えばその間に3〜4mmのデフォーカス量分を駆
動できる程度の時間例えば100ms前後に定める。この
ようにAFモータの駆動時間を一定とし、モータ駆動開
始時刻t2から一定時間後の時刻t4にミラーアップ開
始とする事で正確な追尾撮影が可能となる。
In any case, the predetermined motor driving time (t
2 to t5), the driving of the necessary tracking defocus amount ΔZ1 is completed. The length of the AF motor drive time is determined to be, for example, about 100 ms during which a 3-4 mm defocus amount can be driven. By keeping the AF motor driving time constant and starting the mirror up at a time t4 after a certain time from the motor driving start time t2, accurate tracking photographing can be performed.

【0049】即わちこれによって駆動量の多少によらず
サイクルタイム(t0〜t6)が一定となるので、焦点
検出演算されるデフォーカス量がこのサイクルタイムの
周期でくり返し算出される為、後述の被写体移動の有無
の判定や、前記追尾補正量の算出等が、容易にかつ正確
に行なえる。さらにまた、モータ駆動開始時刻t2後所
定時間経過した後の時刻t4にミラーアップを行ない、
ミラーアップ終了後シャッター動作が開始して露光が始
まる時刻t8までに必要とされる駆動量の駆動を終了し
ているように時間間隔を設定しているので、常にモータ
駆動開始から露光までの時間(t2〜t8)が一定とな
り、来たるべき露光の瞬間にL1とL2が交差するよう
に正確な予測駆動を行うことができる。
In other words, the cycle time (t0 to t6) becomes constant irrespective of the drive amount, so that the defocus amount to be subjected to focus detection calculation is calculated repeatedly in the cycle of this cycle time. The determination of the presence or absence of the movement of the subject, the calculation of the tracking correction amount, and the like can be easily and accurately performed. Furthermore, mirror up is performed at time t4 after a predetermined time has elapsed after motor drive start time t2,
The time interval is set so that the driving of the required driving amount is completed by the time t8 when the shutter operation starts after the mirror-up is completed and the exposure starts, so that the time from the start of motor driving to the exposure is always maintained. (T2 to t8) becomes constant, and accurate prediction driving can be performed so that L1 and L2 intersect at the moment of the coming exposure.

【0050】即わち被写体が動いておりかつその速度も
様々である場合、上記t2〜t8の時間が一定でない
と、この変動分の時間間隔におけるの被写体の移動に対
応したレンズ駆動量の変化を何らかの方法で算出して補
正しなければならず、露光の瞬間にL1とL2が交差又
は合致するように制御することが非常に難しくなる。従
ってAFモータ駆動時間を一定の値に定め、モータ駆動
開始から一定時間後にミラーアップ開始とする事が追尾
の性能を高める上で重要となる。
In other words, if the subject is moving and the speed is various, if the time from t2 to t8 is not constant, the change in the lens drive amount corresponding to the movement of the subject in the time interval of the variation Must be calculated and corrected in some way, and it is very difficult to control L1 and L2 to intersect or match at the moment of exposure. Therefore, it is important to set the AF motor drive time to a fixed value and to start the mirror up after a fixed time from the start of the motor drive in order to enhance the tracking performance.

【0051】図4はAFCPUの追尾モードでの動作を
さらに詳しく各内部フラグと各IO信号との関係からな
がめた動作フローチャートである。
FIG. 4 is an operation flowchart showing the operation of the AF CPU in the tracking mode in more detail based on the relationship between each internal flag and each IO signal.

【0052】ディレイフラグ(DLYFLG)はミラー
アップ後のモータディレイ駆動状態を表わすフラグであ
り、ONの時はディレイ駆動中、OFFの時はディレイ
駆動外である。駆動状態フラグ(MOVFLG)はモー
タ駆動状態を表わすフラグでありONの時はモータ駆動
中、OFFの時は停止中である。
The delay flag (DLYFLG) is a flag indicating a motor delay driving state after the mirror is raised. When the switch is ON, the delay drive is being performed, and when the switch is OFF, the delay drive is not performed. The drive state flag (MOVFLG) is a flag indicating the motor drive state, and is ON when the motor is being driven, and is stopped when OFF.

【0053】追尾ディレイフラグ(PDYFLG)は追
尾モードでのモータ駆動開始からミラーアップ開始まで
のモータ追尾ディレイ駆動状態を表わすフラグであり、
ONの時は追尾ディレイ駆動中OFFの時は追尾ディレ
イ駆動外である。ミーラフラグ(MIRFLG)は追尾
モードでのミラーアップ前後状態を表わすフラグであ
り、ONの時はミラーアップ前OFFの時はミラーアッ
プ後である。
The tracking delay flag (PDYFLG) is a flag indicating a motor tracking delay driving state from the start of motor driving in the tracking mode to the start of mirror up.
When ON, the tracking delay is being driven. When OFF, the tracking delay is not driven. The mirror flag (MIRFLG) is a flag indicating a state before and after the mirror-up in the tracking mode.

【0054】図4において駒速モードはC2、フォーカ
スモードはCが選択されている、即わち追尾モードが選
択されており、レリーズボタン信号(RB)は全押し
(ON)となっている。AFCPUは時刻t1において
CCD蓄積焦点検出演算を終了(OFF)してメインC
PUからのAF許可を待機する。
In FIG. 4, the frame speed mode is C2 and the focus mode is C. In other words, the tracking mode is immediately selected, and the release button signal (RB) is fully pressed (ON). At time t1, the AF CPU terminates (OFF) the CCD accumulated focus detection calculation and sets the main C
It waits for AF permission from the PU.

【0055】時刻t2においてメインCPUが巻上チャ
ージを完了しAF許可信号を許可(ON)にするとAF
CPUはこれを検知して焦点検出演算結果に基づいたモ
ータ駆動を開始する。同時に駆動状態フラグ(MOVF
LG)を駆動中(ON)、追尾ディレイフラグ(PDY
FLG)を追尾ディレイ中(ON)、ミラーフラグ(M
IRFLG)をミラーアップ前(ON)にセットする。
At time t2, when the main CPU completes the hoisting charge and turns the AF permission signal on (ON), the AF
The CPU detects this and starts driving the motor based on the result of the focus detection calculation. At the same time, the drive status flag (MOVF
LG) (ON), the tracking delay flag (PDY)
FLG) during the tracking delay (ON), the mirror flag (M
IRFLG) before mirror-up (ON).

【0056】時刻t2よりAFCPUは追尾ディレイ時
間(T1)の計時を開始し時刻t3に計時を終了する
と、追尾ディレイフラグ(PDYFLG)を追尾ディレ
イ外(OFF)にリセットしメインCPUに対しレリー
ズ許可信号(RL)を許可(ON)とする。上記追尾デ
ィレイ時間(T1)を設けることによりミラーアップ開
始までに一定のAFモータ駆動時間を確保することがで
きる。
At time t2, the AFCPU starts counting the tracking delay time (T1), and when the counting ends at time t3, the AFCPU resets the tracking delay flag (PDYFLG) to outside the tracking delay (OFF) and sends a release permission signal to the main CPU. (RL) is permitted (ON). By providing the tracking delay time (T1), a constant AF motor driving time can be secured before the mirror-up operation starts.

【0057】メインCPUはレリーズ許可信号(RL)
が許可(ON)となったことを検知して、時刻t4より
ミラーアップ動作を開始する同時にミラーアップ信号
(MR)をアップ(ON)にする。
The main CPU issues a release permission signal (RL)
Is turned on (ON), the mirror-up operation is started at time t4, and at the same time, the mirror-up signal (MR) is turned on (ON).

【0058】AFCPUはミラーアップ信号(MR)が
アップ(ON)になったことを検知してレリーズ許可信
号(RL)を禁止(OFF)とする。又同時にミラーフ
ラグ(MIRFLG)をミラーアップ後(OFF)にリ
セットし、ディレイフラグ(DLYFLG)をディレイ
中(ON)にセットする。AFCPUは時刻t4よりデ
ィレイ時間(T2)の計時を開始し、時刻t5に計時を
終了すると、ディレイフラグ(DLYFLG)をディレ
イ外(OFF)にリセットしモータ駆動がこれ以前に終
了していない場合にはモータ駆動を強制的に終了させる
とともに駆動状態フラグ(MOVFLG)を停止中(O
FF)とする。
The AFCPU detects that the mirror-up signal (MR) is up (ON) and disables (OFF) the release permission signal (RL). At the same time, the mirror flag (MIRFLG) is reset after the mirror is raised (OFF), and the delay flag (DLYFLG) is set to a delay (ON). The AFCPU starts measuring the delay time (T2) at time t4, and when the time measurement ends at time t5, resets the delay flag (DLYFLG) to outside the delay (OFF). Is forcibly terminating the motor drive and stopping the drive state flag (MOVFLG) (O
FF).

【0059】AFCPUはこれ以降ミラーアップ信号
(MR)がダウン(OFF)となるのを待機している。
メインCPUは時刻t4より始まった一連のミラーアッ
プ動作、シャッタ動作、ミラーダウン動作を終了すると
時刻t6においてミラーアップ信号(MR)をダウン
(OFF)とする。AFCPUはこれを検知して次回の
CCD蓄積動作を開始する。
The AFCPU thereafter waits for the mirror-up signal (MR) to go down (OFF).
When the main CPU finishes a series of mirror-up operation, shutter operation, and mirror-down operation started at time t4, it turns down (OFF) the mirror-up signal (MR) at time t6. The AFCPU detects this and starts the next CCD accumulation operation.

【0060】以上のように追尾モードにおいては撮影動
作間に必ず一回の焦点検出及びAFモータ駆動動作が行
なわれるとともにAFモータ駆動時間が最大で追尾ディ
レイ時間(T1)+駆動ディレイ時間(T2)だけ確保
できるので動きの速い被写体に対して十分追尾を行なう
ことが可能になる。以上が追尾モードでのAFCPUの
動作が時間的流れの概要である。
As described above, in the tracking mode, the focus detection and the AF motor driving operation are always performed once during the photographing operation, and the AF motor driving time is the maximum tracking delay time (T1) + driving delay time (T2). , It is possible to sufficiently track a fast-moving subject. The above is an outline of the temporal flow of the operation of the AFCPU in the tracking mode.

【0061】次に本発明の実施例におけるAFCPUと
メインCPUの具体的プログラム及びその動作について
説明する。まずメインCPUのプログラムについて図
5、図6のフローチャートを用いて説明する。メインC
PUはタイマーを内蔵しておりタイマー割込み機能を有
している。プログラムは図5に示すメインプログラムと
図6に示すタイマー割込みプログラムの2つから構成さ
れている。
Next, specific programs and operations of the AF CPU and the main CPU in the embodiment of the present invention will be described. First, the program of the main CPU will be described with reference to the flowcharts of FIGS. Main C
The PU has a built-in timer and has a timer interrupt function. The program is composed of a main program shown in FIG. 5 and a timer interrupt program shown in FIG.

【0062】図5において、メインプログラムは#10
0においてまずイニシャライズを行なう。即わちAFC
PUに対するIO信号ミラーアップ信号(MR)をダウ
ン(OFF)、AF許可信号(AF)を許可(ON)と
する。又所定時間毎例えば、50msおきにタイマー割込
がかかるようにタイマーをセットしタイマー割込を許可
する。
In FIG. 5, the main program is # 10
At 0, initialization is first performed. Immediately AFC
The IO signal mirror up signal (MR) for the PU is down (OFF), and the AF permission signal (AF) is permitted (ON). Further, the timer is set so that the timer is interrupted every predetermined time, for example, every 50 ms, and the timer interrupt is permitted.

【0063】次に#105でレリーボタン(RB)が全
押(ON)となるのを待機する。レリーズボタン(R
B)が全押し(ON)になると#110に進みフォーカ
スモード(FM)がマニュアル(M)であるかテスト
し、マニュアルの場合は#115から#125までのレ
リーズ許可待機をせずに即#130以降の撮影動作処理
にジャップする。#110でマニュアルでなかった場合
#115でフォーカスモード(FM)が連続AF(C)
であるかテストし連続AFでない即わちワンショットの
場合には#125に進む。#115で連続AFだった場
合には#120で駒速モードが通常連続撮影(C2)で
あるかテストし、C2でない場合には#130にジャン
プする。#120で駒速モードC2だった場合は#12
5に進む。
Next, at step # 105, the control waits until the release button (RB) is fully pressed (ON). Release button (R
When B) is fully pressed (ON), the process proceeds to step # 110 to test whether the focus mode (FM) is the manual mode (M). The process jumps to the photographing operation process after 130. If not manual in # 110, focus mode (FM) is continuous AF (C) in # 115
And if it is not a continuous AF, that is, in the case of one shot, the flow proceeds to # 125. If the continuous AF is performed in # 115, it is tested in # 120 whether the frame speed mode is the normal continuous shooting (C2). If not, the process jumps to # 130. # 12 if the frame speed mode is C2 in # 120
Go to 5.

【0064】#125ではレリーズ許可信号(RL)が
許可(ON)になるのを待機し、許可になると#130
に進む。以上の#110〜#125ではフォーカスモー
ドがワンショットAFあるいはフォーカスモードが連続
AFで駒速モードがC2即ち追尾モードの場合だけAF
CPUからのレリーズ許可信号を待機してから#130
以降の撮影動作処理に進みそれ以外のモード設定の場合
には、即#130以降の撮影動作処理を行なうことにな
る。
In step # 125, the control waits until the release permission signal (RL) is turned on (ON).
Proceed to. In steps # 110 to # 125, AF is performed only when the focus mode is one-shot AF or the focus mode is continuous AF and the frame speed mode is C2, that is, the tracking mode.
# 130 after waiting for the release permission signal from the CPU
The process proceeds to the subsequent photographing operation processing, and in the case of setting other modes, the photographing operation processing after # 130 is immediately performed.

【0065】#130ではミラーアップ信号(MR)を
アップ(ON)にして、#135で後述するタイマー割
込処理で行なわれるAE演算結果により目標絞り値にな
るよう絞り制御を行なうと同時にミラーアップ制御を行
なう。#140ではAE演算により求められたシャッタ
速度でシャッタ制御を行なう。#145ではミラーダウ
ン制御を行なうとともに絞り制御を行ない絞りを開放に
する。#150ではミラーアップ信号(MR)をダウン
(OFF)にし、次に#155ではAF許可信号(A
F)を禁止(OFF)にして#160で巻上チャージ制
御を行なう。巻上チャージが完了すると#165でAF
許可信号(AF)を許可(ON)にする。
In step # 130, the mirror-up signal (MR) is turned up (ON), and in step # 135, the aperture control is performed so that the aperture value becomes the target aperture value based on the result of the AE operation performed in the timer interrupt processing described later, and the mirror-up is performed Perform control. In step # 140, the shutter control is performed at the shutter speed obtained by the AE calculation. In step # 145, mirror down control is performed and aperture control is performed to open the aperture. In # 150, the mirror up signal (MR) is turned down (OFF), and then in # 155, the AF permission signal (A
F) is prohibited (OFF), and the winding charge control is performed in # 160. AF is completed at # 165 when the winding charge is completed.
The permission signal (AF) is permitted (ON).

【0066】#170では駒速モードが通常連続撮影
(C2)であるかテストし、C2であった場合には#1
75に進み、所定時間のディレイの後再び#105に戻
る。又#170でC2でなかった場合には、#180で
駒速モードがシングル(S)がテストし、シングルであ
った場合には#185でレリーズボタン信号(RB)が
全押でなくなる(OFF)のを待機して、全押でなくな
った#105に戻る。
In step # 170, it is tested whether the frame speed mode is the normal continuous shooting (C2).
Proceeding to 75, the process returns to # 105 again after a predetermined time delay. If it is not C2 in # 170, the single speed (S) is tested in the frame speed mode in # 180. If it is single, the release button signal (RB) is not fully pressed in # 185 (OFF). ), And returns to # 105 where the full press is no longer performed.

【0067】#180でシングルでない場合即ち高速連
続撮影(C1)であった場合は即#105に戻り、次回
の撮影動作シーケンスをくり返す。図6はメインCPU
のタイマ割込プログラムであり、メインCPUがメイン
プログラムを実行中に所定時間毎(例50ms)にタイマ
割込プログラムが起動する。
If it is not single in step # 180, that is, if it is high-speed continuous shooting (C1), the process immediately returns to step # 105, and the next shooting operation sequence is repeated. Figure 6 shows the main CPU
The timer interrupt program is started at predetermined time intervals (for example, 50 ms) while the main CPU is executing the main program.

【0068】まずタイマー割込がかかると、#200で
図1に示したレンズCPU13と通信バス64を通じて
通信し、レンズのAE情報(設定絞り値、焦点距離等)
を取り込む。次に#205で図1のAE情報手段85よ
りボディのAE情報(測光値、フィルム感度等)を収集
する。
First, when the timer is interrupted, it communicates with the lens CPU 13 shown in FIG. 1 through the communication bus 64 at # 200, and AE information (set aperture value, focal length, etc.) of the lens.
Take in. Next, at step # 205, AE information (photometric value, film sensitivity, etc.) of the body is collected from the AE information means 85 of FIG.

【0069】#210ではレンズのAE情報及びボディ
のAE情報、に基づいてAE演算を行ない目標絞り値、
シャッタ速度等を決定する。#215ではAE演算で得
られた結果を図1の表示手段86に表示し#220でメ
インプログラムへリターンする。以上がメインCPUの
プログラム動作である。
In step # 210, an AE calculation is performed based on the AE information of the lens and the AE information of the body, and a target aperture value is calculated.
Determine the shutter speed and the like. In # 215, the result obtained by the AE operation is displayed on the display means 86 of FIG. 1, and in # 220, the process returns to the main program. The above is the program operation of the main CPU.

【0070】次にAFCPUのプログラムについて説明
する。AFCPUはCCD出力のAD変換データを格納
するメモリとタイマーとパルスカウンタを内蔵しており
タイマー割込機能とパルスカウンタ割込機能を有してい
る。表3にAFCPUのプログラムで使用するフラグの
名称及び意味を示す。
Next, the program of the AFCPU will be described. The AFCPU has a built-in memory for storing A / D conversion data of the CCD output, a timer and a pulse counter, and has a timer interrupt function and a pulse counter interrupt function. Table 3 shows the names and meanings of the flags used in the AFCPU program.

【0071】表4にAFCPUのプログラムで使用する
データの名称及び内容を示す。図7にAFCPUのプロ
グラム概要を示す。AFCPUのプログラムはメインプ
ログラムと2つの割込プログラム(タイマー割込プログ
ラム及びパルスカウンタ割込プログラム)とから構成さ
れている。更にメインプログラムは(1)〜(11)のモジ
ュールから構成されており大きなループ構造となってい
る。
Table 4 shows the names and contents of data used in the AFCPU program. FIG. 7 shows a program outline of the AFCPU. The AFCPU program is composed of a main program and two interrupt programs (a timer interrupt program and a pulse counter interrupt program). Further, the main program is composed of modules (1) to (11) and has a large loop structure.

【0072】メインプログラムではまず(1)イニシャラ
イズモジュールで各種フラグ、データ、信号の初期化を
行なう。次に(2)蓄積前処理モジュールでCCD蓄積開
始可・不可の判定を行ない、蓄積可(ミラーがダウンし
ていてAFモータが停止している)となった場合は、
(3)CCD蓄積制御モジュールでCCDの蓄積開始・終
了・蓄積時間の管理の制御を行なう。
In the main program, (1) the initialization module initializes various flags, data and signals. Next, (2) the accumulation preprocessing module determines whether or not CCD accumulation can be started. If accumulation is possible (the mirror is down and the AF motor is stopped),
(3) The CCD accumulation control module controls the start, end and accumulation time of CCD accumulation.

【0073】(4) CCD出力AD変換モジュールでは
CCD出力をAD変換したCCDデータを内部メモリに
格納する。 (5) AFアルゴリズムモジュールでは格納されたデー
タに所定の焦点検出演算を施こして静的被写体に対する
デフォーカス量を算出する。 (6) レンズ情報読み込みモジュールではレンズCPU
と通信を行ないモータ駆動等に必要なレンズAF情報を
取り込む。
(4) The CCD output AD conversion module stores the CCD data obtained by AD-converting the CCD output in the internal memory. (5) The AF algorithm module performs a predetermined focus detection calculation on the stored data to calculate a defocus amount for a static subject. (6) In the lens information reading module, the lens CPU
And lens AF information necessary for driving the motor and the like.

【0074】(7) 追尾アルゴリズムモジュールでは動
的被写体か否かを判定し、動的被写体と判定された場合
は、静的被写体に対するデフォーカス量に追尾補正量を
加えて動的被写体に対するモータ駆動量(追尾駆動量)
を決定する。 (8) 合焦判定・表示モジュールでは、合焦状態(デフ
ォーカス量が合焦ゾーン内であるか否か)の判定を行な
い、判定結果を図1のAF表示手段40に表示する。
(7) The tracking algorithm module determines whether or not the subject is a dynamic subject. If the subject is determined to be a dynamic subject, the tracking correction amount is added to the defocus amount for the static subject and the motor drive for the dynamic subject is performed. Amount (Tracking drive amount)
To determine. (8) The focus determination / display module determines the focus state (whether or not the defocus amount is within the focus zone) and displays the determination result on the AF display means 40 in FIG.

【0075】(9) AF許可待機モジュールでは追尾モ
ードの場合メインCPUから送られてくるAF許可信号
(AF)が許可(ON)となるのを待機する。 (10) 駆動制御モジュールではデフォーカス量をパルス
数の変換し該パルス数データを比較レジスタにセットす
るとともに合焦方向にAFモータの駆動を開始する。
(9) The AF permission standby module waits for the AF permission signal (AF) sent from the main CPU to be permitted (ON) in the tracking mode. (10) The drive control module converts the defocus amount into a pulse number, sets the pulse number data in the comparison register, and starts driving the AF motor in the focusing direction.

【0076】(11) AGC(オートゲインコントロー
ル)演算モジュールでは、今回得られたCCDデータに
基づいて次回のCCDデータが適当な値となるように次
回のCCD蓄積時間(INTT)を決定し、(2)蓄積前
処理モジュールに戻る。以上がAFCPUのメインプロ
グラムの概要であり、CCDの蓄積動作とAFモータ駆
動による撮影レンズの駆動動作が互いに時間的に独立し
たシーケンスとなっている。
(11) The AGC (auto gain control) calculation module determines the next CCD accumulation time (INTT) based on the CCD data obtained this time so that the next CCD data has an appropriate value. 2) Return to the pre-storage module. The outline of the main program of the AF CPU has been described above, and the accumulation operation of the CCD and the operation of driving the photographing lens by driving the AF motor are time-independent sequences.

【0077】(12) タイマー割込みモジュールでは、各
種IO信号の変化の検知及びそれに応じたフラグのセッ
ト・リセット処理、駆動ディレイ時間の管理、レンズ端
の検出が行なわれる。 (13) パルスカウンタ割り込みモジュールでは、AFモ
ータの駆動停止処理が行なわれる。
(12) The timer interrupt module detects changes in various IO signals, sets and resets flags in accordance with the changes, manages drive delay time, and detects lens ends. (13) In the pulse counter interrupt module, the drive stop processing of the AF motor is performed.

【0078】次に各モジュールの動作について詳細な説
明を行なう。図8は(1)イニシャライズモシュールのフ
ローチャートであり、AFCPUは電源ON又はリセッ
トにより#230より処理を開始する。#230ではA
FCPUのプログラムで使用する各種フラグ及びデータ
の初期化を行なう。フラグ及びデータの初期値について
は表3及び表4に示した通りである。表4で初期値が空
欄となっているものは初期化の不要なものである。
Next, the operation of each module will be described in detail. FIG. 8 is a flowchart of (1) Initialize Module. The AF CPU starts processing from # 230 by turning on or resetting the power. A in # 230
Various flags and data used in the program of the FCPU are initialized. The initial values of the flags and data are as shown in Tables 3 and 4. In Table 4, those whose initial values are blank are those that do not require initialization.

【0079】又CCDの蓄積時間(INTT)の初期値
は所定値IZ(例えば1ms)にセットされる。次に#2
35ではレリーズ許可信号(RL)を禁止(OFF)に
する。これはワンショットAFモードや追尾モードで電
源ONで即レリーズボタンを全押しても撮影動作が行な
われないようにするためである。
The initial value of the accumulation time (INTT) of the CCD is set to a predetermined value IZ (for example, 1 ms). Then # 2
In step 35, the release permission signal (RL) is prohibited (OFF). This is to prevent the photographing operation from being performed even if the release button is fully pressed immediately after the power is turned on in the one-shot AF mode or the tracking mode.

【0080】#240では、図1のAF表示手段40の
表示部41、42、43、44を全て表示OFFとす
る。#245では、AFモータの初期化(停止)を行な
う。#250ではCCDの受光部転送部に蓄積されてい
る電荷を掃き出すとともにCCDを蓄積終了状態にさせ
る指令を図1のセンサー制御手段26に送りCCDを初
期化する。#255では、AFCPUに内蔵されたタイ
マー類のセットを行ない。タイマー割り込みが所定時間
(例えば1ms)おきにかかるようにする。
In step # 240, the display units 41, 42, 43, and 44 of the AF display unit 40 shown in FIG. 1 are all turned off. In # 245, the AF motor is initialized (stopped). In step # 250, a command for sweeping out the electric charge accumulated in the light-receiving unit transfer section of the CCD and for bringing the CCD into an accumulation end state is sent to the sensor control means 26 of FIG. 1 to initialize the CCD. In # 255, the timers built in the AFCPU are set. The timer interruption is performed every predetermined time (for example, every 1 ms).

【0081】#260では上記タイマー割込の受付を許
可する。#265ではAFモータ駆動停止のためのパル
スカウンタ割込を禁止して(2)蓄積前処理モジュールへ
進む。
At step # 260, acceptance of the timer interrupt is permitted. In step # 265, the pulse counter interrupt for stopping the AF motor drive is prohibited, and the process proceeds to (2) the storage preprocessing module.

【0082】(2)蓄積前処理モジュール以降の説明は、
前述のようにループ構造となっているので電源ON時の
動作ではなくループを何回かまわった時の動作として説
明を行なう。図9に(2)蓄積前処理モジュールのフロー
チャートを示す。#270では追尾モードであるかテス
トし、追尾モードでない場合には、#276へジャンプ
する。#270で追尾モードであった場合は#275で
ミラーアップが終了したかテストし、ミラーアップが終
了していない場合は再び#270へ戻り以上の処理をく
り返し、#275でミラーアップが終了していると判定
された場合は#276へ進む。
(2) The description after the storage preprocessing module is as follows.
Because of the loop structure as described above, the description will be made not as an operation when the power is turned on but as an operation when the loop is rotated several times. FIG. 9 shows a flowchart of the (2) storage preprocessing module. In step # 270, a test is performed to determine whether the mode is the tracking mode. If the mode is not the tracking mode, the process jumps to step # 276. If the tracking mode has been set in # 270, it is tested whether or not the mirror-up operation has been completed in # 275. If it is determined that there is, the process proceeds to # 276.

【0083】以上の#270、#275の処理は、図4
の動作タイムチャートに示すように追尾モードでレリー
ズボタンが全押しされている場合に撮影動作間に1回だ
け焦点検出演算及びAFモータ駆動動作を行なわせるた
めの処理である。即わち追尾モードの全押中には後述す
るようにAFモータ駆動開始時点でミラーフラグ(MI
RFLG)がONにセットされるとともに、次回のCC
D蓄積開始は、必ずミラーアップによりミラーフラグ
(MIRFLG)がOFFされた後となる。
The processing of # 270 and # 275 is the same as that of FIG.
In the tracking mode, when the release button is fully depressed as shown in the operation time chart, the focus detection calculation and the AF motor driving operation are performed only once during the photographing operation. Immediately during the full pressing in the tracking mode, as described later, the mirror flag (MI
RFLG) is set to ON and the next CC
The start of D accumulation is always after the mirror flag (MIRFLG) is turned off by mirror up.

【0084】追尾モード以外では余裕があれば撮影動作
間に何回でも焦点検出演算及びAFモータ駆動を行なう
ので#275をスキップする。追尾モードにおいては撮
影動作間に必ず1回だけ焦点検出演算を入れるのは次の
理由による。即わち連写撮影中の追尾においては、露光
の瞬間にピントが合った状態となるように追尾補正量を
算出し、そのようにレンズを駆動制御する事は前にも述
べた通りである。
In modes other than the tracking mode, if there is enough time, the focus detection calculation and the AF motor drive are performed any number of times during the photographing operation, so that step # 275 is skipped. The reason why the focus detection calculation is always performed only once during the photographing operation in the tracking mode is as follows. In short, during tracking during continuous shooting, the amount of tracking correction is calculated so that focus is achieved at the moment of exposure, and drive control of the lens is performed as described above. .

【0085】上記の目的を精度よく達成するためには露
光、蓄積演算、駆動、露光、蓄積演算、駆動…が所定の
時間間隔でくり返し行なわれる事が望ましい。露光と駆
動の間に蓄積演算の入る回数がその都度異なる場合、サ
イクルタイムが変動するようになり、正確な動体判定を
行ない、正確な追尾補正量を求める処理が非常に煩雑又
は困難となる。
In order to achieve the above object with high accuracy, it is desirable that exposure, accumulation operation, driving, exposure, accumulation operation, driving... Are repeatedly performed at predetermined time intervals. If the number of times the accumulation calculation is performed between the exposure and the drive is different each time, the cycle time fluctuates, and the process of performing the accurate moving object determination and obtaining the accurate tracking correction amount becomes very complicated or difficult.

【0086】#276ではスキャン中(SCAFLGが
ON)かテストし、スキャン中の場合は#280のAF
モータの駆動の停止を待機せずに#285へジャンプす
る。これはスキャン中だけはAFモータのスキャン駆動
動作とCCDの蓄積動作を時間的に並列に行なうことを
許可するためである。#276でスキャン外であった場
合には#280へ進む。
In step # 276, a test is performed to determine whether scanning is in progress (SCAFLG is ON).
The process jumps to step # 285 without waiting for the stop of the driving of the motor. This is to permit the scan drive operation of the AF motor and the accumulation operation of the CCD to be performed temporally in parallel only during scanning. If it is determined in step # 276 that the image is not scanned, the process proceeds to step # 280.

【0087】#280ではAFモータの停止(MOVF
LGがOFF)を待機し、停止したら#285に進む。
これは前述のようにCCDの蓄積動作とAFモータの駆
動動作を時間的に分離するためである。#285では現
在追尾中か否かテストし追尾中でなかった場合は#30
5へジャンプする。追尾中(PRSFLGがON)とは
後述の追尾アルゴリズムにおいて被写体が動的被写体で
あると判定され、AFモータの駆動量を(通常の駆動量
+追尾補正量)としてAFモータの駆動を行っている状
態である。#285で追尾中であった場合には#290
で更に被写体が接近中(追尾駆動量DRIV<0即ち駆
動方向が至近方向)であるかテストし、接近中の場合は
#305にジャンプする。
At step # 280, the AF motor is stopped (MOVF
(LG is OFF), and if stopped, the process proceeds to # 285.
This is because the accumulation operation of the CCD and the driving operation of the AF motor are temporally separated as described above. In # 285, it is tested whether or not the vehicle is currently being tracked.
Jump to 5. When tracking is being performed (PRSFLG is ON), it is determined that the subject is a dynamic subject by a tracking algorithm described below, and the AF motor is driven with the drive amount of the AF motor being (normal drive amount + tracking correction amount). State. If tracking was in progress at # 285, # 290
Then, it is tested whether the subject is approaching (the tracking drive amount DRIV <0, that is, the driving direction is the closest direction). If the subject is approaching, the process jumps to # 305.

【0088】#290では接近中でない場合即わち被写
体が遠ざかっている場合には、#295で駆動の残量
(予定パルス数ETM−現在までのパルスカウント数E
CNT)が所定量EXより大きいかテストし、大きくな
い場合は#305へジャンプする。#295で駆動残量
が大きいと判定された場合は、#300へ進み追尾補正
量をクリア(COMP=0)する。
If the object is not approaching at # 290, that is, if the subject is moving away, the remaining drive amount (estimated pulse number ETM−pulse count number E to present E) is determined at # 295.
CNT) is larger than the predetermined amount EX, and if not larger, jumps to # 305. If it is determined in step # 295 that the remaining drive amount is large, the flow advances to step # 300 to clear the tracking correction amount (COMP = 0).

【0089】尚、追尾補正量は後述する追尾アルゴリズ
ムで使用されるデータである。#285から#300ま
での処理を要約すると追尾中でかつ被写体が遠ざかって
いてかつAFモータ停止時の駆動残量が大きい場合には
追尾補正量をクリアするという処理になる。
The tracking correction amount is data used in a tracking algorithm described later. To summarize the processes from # 285 to # 300, the process is to clear the tracking correction amount when tracking is being performed, the subject is moving away, and the remaining driving amount when the AF motor is stopped is large.

【0090】このような処理を行なう理由について図1
0を用いて説明する。図10において実線は被写体が一
定の速度で遠ざかっている場合にフィルム面上に被写体
像を常に結像させるための理想的な撮影レンズ11のレ
ンズ位置の軌跡、一点鎖線は実際の追尾中で全押の場合
の撮影レンズの動きの軌跡を表わしている。
FIG. 1 shows the reason for performing such processing.
Explanation will be made using 0. In FIG. 10, the solid line indicates the ideal locus of the lens position of the photographing lens 11 for always forming the subject image on the film surface when the subject is moving away at a constant speed. The trajectory of the movement of the taking lens in the case of pressing is shown.

【0091】時刻t0に撮影レンズ11の位置がZ0で
停止しCCDの蓄積を開始し、蓄積時間の中点の時刻t
1において実線と一点鎖線がほぼ交わっていて静的被写
体に対するデフォーカス量はほぼ0となり追尾アルゴリ
ズムによって動的被写体と判定され追尾補正量が加わえ
られた追尾駆動量(Z2−Z0)だけ時刻t2より駆動
を開始した場合について考察する。追尾中で全押の場合
は図4の動作タイムチャートでも説明したようにAFモ
ータの全駆動時間が所定時間(ほぼT1+T2)に制限
されているので、追尾駆動量が大きく時刻t2より所定
時間後の時刻t3までに所定レンズ位置Z2に到達して
いない場合はAFモータの駆動は時刻t3レンズ位置Z
1で強制的に終了させられる。時刻t3より再びCCD
の蓄積を開始し、蓄積時間の中点の時刻t4において実
線の位置がZ3であったとすると、静的被写体に対する
デフォーカス量は(Z3−Z1)に対応するものとな
る。一方、追尾アルゴリズムにおいて再び動的被写体と
判定されると前回と同程度の追尾補正量を加えられた追
尾駆動量は(Z4−Z3)となり時刻t5より駆動を開
始すると破線で示す如く実線よりもかなり行きすぎてし
まう。
At time t0, the position of the photographing lens 11 stops at Z0 and the accumulation of the CCD is started.
In FIG. 1, the solid line and the dash-dot line almost intersect, and the defocus amount for the static object becomes almost 0, and the tracking algorithm determines that the object is a dynamic object, and the tracking drive amount (Z2-Z0) to which the tracking correction amount is added adds time t2. Consider the case where driving is started more. In the case of full pressing during tracking, as described in the operation time chart of FIG. 4, since the entire driving time of the AF motor is limited to a predetermined time (approximately T1 + T2), the tracking drive amount is large and a predetermined time after time t2. If the predetermined lens position Z2 has not been reached by time t3, the AF motor is driven at time t3.
Forcibly terminated with 1. CCD again from time t3
If the position of the solid line is Z3 at time t4, which is the middle point of the accumulation time, the defocus amount for the static subject corresponds to (Z3-Z1). On the other hand, if it is determined again that the subject is a dynamic subject in the tracking algorithm, the tracking drive amount to which the same tracking correction amount as the previous time is added becomes (Z4-Z3). Going too far.

【0092】ところが時刻t5において動的被写体でな
いと判定されれば静的被写体に対するデフォーカス量に
対応する駆動量(Z3−Z1)だけ時刻t5より駆動さ
れ時刻t6においてレンズ位置Z3に到達するので実線
より行きすぎることはない。
However, if it is determined at time t5 that the object is not a dynamic object, the lens is driven from time t5 by the driving amount (Z3-Z1) corresponding to the defocus amount for the static object, and reaches the lens position Z3 at time t6. There is no going too far.

【0093】そこで図9の#285から#300の処理
では追尾中に駆動量の残量が大きくなった場合(図10
で時刻t3でAFモータが強制停止させられたようなケ
ース)では追尾補正量をクリアする後述する追尾アルゴ
リズムでは追尾中に追尾補正量がクリアされるとその回
に動的被写体は判定されなくなるので、時刻t5以降追
尾外となり一点鎖線の軌跡で撮影レンズを移動すること
ができる。
Therefore, in the processing from # 285 to # 300 in FIG. 9, the remaining amount of the driving amount becomes large during the tracking (FIG. 10).
In the case where the AF motor is forcibly stopped at time t3), the tracking correction amount is cleared. In the tracking algorithm described below, if the tracking correction amount is cleared during tracking, the dynamic subject is not determined at that time. After the time t5, the subject becomes out of tracking, and the photographing lens can be moved along the locus of the dashed line.

【0094】図9の#290で被写体の移動方向をテス
トし、接近中は追尾補正量をクリアしないのは一定速度
で被写体の接近する場合、理想的なレンズの動きは接近
するとともに大きくなるので上記のような撮影レンズの
行きすぎといった問題は少ないためである。一方、被写
体が遠ざかる場合には理想的なレンズの動きは遠ざかる
につれて減少するが、上記のような行きすぎが問題とな
る。
The moving direction of the subject is tested at # 290 in FIG. 9. The tracking correction amount is not cleared during the approach. When the subject approaches at a constant speed, the ideal lens movement increases as the approach approaches. This is because there is little problem such as excessive movement of the taking lens as described above. On the other hand, when the subject moves away, the ideal movement of the lens decreases as the distance increases, but the above-mentioned excessive movement poses a problem.

【0095】もちろん接近してくる場合も遠ざかる場合
と同様にしてもかまわない。又#295の所定量EXは
実験により一定量に決定することができるし、種々の条
件(レンズ焦点距離、焦点検出サイクル時間=焦点検出
時間+駆動時間、等)によって変えることもできる。
Of course, the approaching case may be the same as the case of going away. The predetermined amount EX of # 295 can be determined to be a constant amount by an experiment, or can be changed according to various conditions (lens focal length, focus detection cycle time = focus detection time + driving time, etc.).

【0096】図9に戻り再び(2)蓄積前処理モジュール
の説明を行なう。#305では次の(3)CCD蓄積制御
モジュールに備えて、メインCPUからミラーアップ信
号(MR)のダウン(OFF)を待機し、ミラーアップ
信号がダウンすると(3)CCD蓄積制御モジュールに進
む。図11は(3)CCD蓄積制御モジュールのフローチ
ャートである。
Returning to FIG. 9, the (2) accumulation preprocessing module will be described again. In step # 305, the main CPU waits for the mirror-up signal (MR) to go down (OFF) in preparation for the next (3) CCD accumulation control module. FIG. 11 is a flowchart of (3) the CCD accumulation control module.

【0097】#320に進んでくる前にスキャン中以外
はモータの駆動停止が確認され、さらにミラーがダウン
していてCCDの蓄積が可能なことが確認されている。
#320では図1のセンサ制御手段26に対してCCD
の蓄積開始指令を出しCCDの蓄積を開始させる。#3
25では第1回目のCCD蓄積以外は後述の(11) AG
C演算モジュールで決定された蓄積時間(INTT)を
計時する。
Before proceeding to # 320, it is confirmed that the drive of the motor is stopped except during scanning, and it is further confirmed that the mirror is down and the CCD can be accumulated.
In step # 320, the sensor control means 26 shown in FIG.
To start the accumulation of the CCD. # 3
25, except for the first CCD accumulation, (11) AG
The accumulation time (INTT) determined by the C operation module is measured.

【0098】第1回目のCCD蓄積の場合は(1)イニシ
ャライズモジュールで初期設定された蓄積時間(INT
T=IZ)となる。計時方法はAFCPUに内蔵された
タイマーあるいはソフト上で作られたタイマーによる。
#325の蓄積時間の計時を終了すると、#330でセ
ンサ制御手段26に対してCCDの蓄積終了指令を出し
CCDの蓄積を終了させ、(4)CCD出力AD変換モジ
ュールに進む。
In the case of the first CCD accumulation, (1) the accumulation time (INT) initialized by the initialization module
T = IZ). The time is measured by a timer built in the AFCPU or a timer created on software.
When the counting of the accumulation time in step # 325 is completed, a command for terminating the accumulation of the CCD is issued to the sensor control means 26 in step # 330 to terminate the accumulation of the CCD.

【0099】図12は(4)CCD出力AD変換モジュー
ルのフローチャートである。#340でAFCPUはセ
ンサ制御手段26から送られてくるCCD出力同期信号
と同期をとってCCD25から送出されるCCD出力の
AD変換を開始する。#345では以後センサ制御手段
26から送られるCCD出力転送ブロックに同期して所
定回数(2n回)だけCCD出力をAD変換してCCD
データを内部メモリに格納する。ここで一対のCCDデ
ータはA(1)〜A(n) B(1)〜B(n)としA(1)
とB(1) A(2)とB(2)・・・A(n)とB(n)が
図2の1対の受光部29A、29Bの対応する受光素子
の出力データとする。CCDデータの格納が終了すると
次の(5)AFアルゴリズムモジュールに進む。
FIG. 12 is a flowchart of the (4) CCD output AD conversion module. In step # 340, the AF CPU starts AD conversion of the CCD output sent from the CCD 25 in synchronization with the CCD output synchronization signal sent from the sensor control means 26. In step # 345, the CCD output is AD-converted a predetermined number of times (2n times) in synchronism with the CCD output transfer block sent from the sensor control means 26.
Store the data in internal memory. Here, a pair of CCD data is A (1) to A (n) B (1) to B (n) and A (1)
A (2) and B (2)... A (n) and B (n) are output data of the corresponding light receiving elements of the pair of light receiving units 29A and 29B in FIG. When the storage of the CCD data is completed, the process proceeds to the next (5) AF algorithm module.

【0100】図13は(5)アルゴリズムモジュールのフ
ローチャートである。#360では内部メモリに格納さ
れた2nケのCCDデータA(1)〜A(n) B(1)〜
B(n)を用いて本出願による特開昭60−37513
に開示された公知の相関演算を行ない図2のCCD25
上の一対の被写体像の相対的横ずれ量(SHIFT)及
び求められた横ずれ量の信頼性を示すパラメータ(SL
OP)を求める。
FIG. 13 is a flowchart of the algorithm module (5). In # 360, 2n CCD data A (1) to A (n) B (1) to 2n stored in the internal memory
JP-A-60-37513 according to the present application using B (n)
2. The known correlation operation disclosed in FIG.
A parameter (SL) indicating the relative lateral shift amount (SHIFT) of the above pair of subject images and the reliability of the obtained lateral shift amount
OP).

【0101】図14、図15も用いて公知の相関演算に
ついて簡単に説明する。まず(1)式の相関演算を行ない
CCDデータ同志の相関量C(L)を求める。
A known correlation operation will be briefly described with reference to FIGS. First, the correlation operation of equation (1) is performed to obtain the correlation amount C (L) between the CCD data.

【0102】[0102]

【数1】 (Equation 1)

【0103】ただし(1)式においてLは整数であり一
対のCCDデータの受光素子ピッチを単位とした場合の
相対的シフト量である。又(1)式の積算演算はCCD
データが存在する範囲で実行するものとする。
In the equation (1), L is an integer, and is a relative shift amount when a unit of a light receiving element pitch of a pair of CCD data is used as a unit. In addition, the integration calculation of equation (1) is performed by CCD
It shall be executed within the range where data exists.

【0104】(1)式の演算結果は、図14において相
対的シフト量Lを横軸に取りかつ相関量C(L)を縦軸
に取って示すように、1対のCCDデータの相関が高い
シフト量Lにおいて相関量C(L)が最小になる。とこ
ろが実際上当該相対的シフト量Lは受光部29A、29
Bを構成する受光素子から離散的に得られるデータに基
づいて決まるので、相関量C(L)も離散的になる。そ
こで演算により求めた相関量C(L)から必ずしも直接
に相関量C(L)の最小素値C(L)MIN が得られると
は限らない。
The calculation result of the equation (1) indicates that the correlation between a pair of CCD data is as shown by the relative shift amount L on the horizontal axis and the correlation amount C (L) on the vertical axis in FIG. At a high shift amount L, the correlation amount C (L) is minimized. However, the relative shift amount L is actually equal to the light receiving units 29A, 29A.
Since it is determined based on data discretely obtained from the light receiving elements constituting B, the correlation amount C (L) also becomes discrete. Therefore, the minimum elementary value C (L) MIN of the correlation amount C (L) is not always obtained directly from the correlation amount C (L) obtained by the calculation.

【0105】そこで図15に示す3点内挿の手法を用い
て相関量C(L)の最小値C(L)MIN を求める。すな
わち離散的に求められた相関量C(L)における最小値
が相対的シフト量LがL=xのとき得られたとすると、
その前後の相対的シフト量x−1、x+1に対応する相
関量C(L)はC(x−1)、C(x)、C(x+1)
になる。そこで先ず最小相関量C(x)と、残る2個の
相関量C(x−1)及びC(x+1)のうち大きい相関
量(図9の場合C(x+1))とを結ぶ直線Hを引き、
次に残る相関量C(x−1)を通りかつ直線Hと傾きが
反対な直線Jを引いてこれら2つの直線H及びJの交点
Wを求める。
Therefore, the minimum value C (L) MIN of the correlation amount C (L) is obtained by using the three-point interpolation method shown in FIG. That is, if the minimum value of the discretely obtained correlation amount C (L) is obtained when the relative shift amount L is L = x,
Correlation amounts C (L) corresponding to the relative shift amounts x-1 and x + 1 before and after that are C (x-1), C (x), and C (x + 1).
become. Therefore, first, a straight line H connecting the minimum correlation amount C (x) and the larger correlation amount (C (x + 1) in FIG. 9) among the remaining two correlation amounts C (x−1) and C (x + 1) is drawn. ,
Then, a straight line J passing through the remaining correlation amount C (x-1) and having a slope opposite to the straight line H is drawn to obtain an intersection W between these two straight lines H and J.

【0106】この交点Wの座標は相対的シフト量xm
と、その相関量C(xm )とで表すことができ、この座
標によって連続的な相対的シフト量における最小相対的
シフト量xm と最小相関量C(xm )を表すことができ
る。かかる3点内挿手法を演算式で表せば、最小相対的
シスト量xm は次式
The coordinates of the intersection W are relative shift amounts xm
And the correlation amount C (xm), and the coordinates represent the minimum relative shift amount xm and the minimum correlation amount C (xm) in the continuous relative shift amount. If the three-point interpolation method is expressed by an arithmetic expression, the minimum relative cyst amount xm is given by

【0107】[0107]

【数2】 (Equation 2)

【0108】のように表すことができると共に、その相
関量C(xm )は次式
The correlation amount C (xm) can be expressed as follows:

【0109】[0109]

【数3】 (Equation 3)

【0110】のように表すことができる。It can be expressed as follows.

【0111】ここで(2−1)及び(2−2)式におい
てDは、相対的シフト量・・・x−1、x、x+1・・
・の各データ間の偏差で次式
Here, in the equations (2-1) and (2-2), D is a relative shift amount x-1, x, x + 1.
・ The following equation is the deviation between each data

【0112】[0112]

【数4】 (Equation 4)

【0113】のように表すことができる。また(2−
1)及び(2−2)式においてSLOPは相対的シフト
量x−1、x、x+1に対応する相関量C(x−1)、
C(x)、C(x+1)間の偏差のうち大きい方の偏差
を表し、次式 SLOP=MAX(C(x+1)−C(x),C(x−1)−C(x)) …(4) のように表すことができる。
It can be expressed as follows. Also, (2-
In equations (1) and (2-2), SLOP is a correlation amount C (x−1) corresponding to relative shift amounts x−1, x, x + 1,
The larger one of the deviations between C (x) and C (x + 1) is represented by the following equation: SLOP = MAX (C (x + 1) -C (x), C (x-1) -C (x)) (4) can be expressed as follows.

【0114】(1)式〜(4)式で表される演算式は、
相対的シフト量xm が1対のCCDデータの相対的ずれ
量を表し、受光素子のピッチをyとすれば、CCD25
上に結像される2つの被写体像の相対的な横ずれ量SH
IFTは SHIFT=y×xm …(5) のように表すことができる。
The arithmetic expressions represented by the expressions (1) to (4) are
The relative shift amount xm represents the relative shift amount of a pair of CCD data, and if the pitch of the light receiving elements is y, the CCD 25
Relative lateral shift SH between two subject images formed on the top
IFT can be expressed as SHIFT = y × xm (5).

【0115】また焦点面におけるデフォーカス量DEF
は次式 DEF=KX×SHIFT …(6) のように表すことができる。ここで、KXは図2に示し
た焦点検出光学系の構成上の条件などによって決まる係
数である。
The defocus amount DEF on the focal plane
Can be expressed as the following equation: DEF = KX × SHIFT (6) Here, KX is a coefficient determined by the configuration conditions of the focus detection optical system shown in FIG.

【0116】又(4)式で求めたパラメータSLOPは
その値が大きい程図14で示す相関量C(L)のへこみ
が深く即ち相関が大きいことを示し従って求められたデ
フォーカス量DEFの信頼性が高いことを示している。
再び図13に戻り説明を続ける。#360で以上のよう
にしてシフト量(SHIFT)及び信頼性(SLOP)
を求める。
The larger the value of the parameter SLOP obtained by the equation (4), the deeper the depression of the correlation amount C (L) shown in FIG. 14, that is, the larger the correlation. Therefore, the reliability of the obtained defocus amount DEF is increased. It indicates that the nature is high.
Returning to FIG. 13 again, the description will be continued. The shift amount (SHIFT) and reliability (SLOP) as described above in # 360
Ask for.

【0117】#365ではシフト量(SHIFT)が求
まったかテストする。即ち図14において最大シフト量
(図では5)までシフト量Lをずらしてもへこみが見つ
からなかった場合にはシフト量(SHIFT)を求める
ことはできない。#365でシフト量(SHIFT)が
求まらなかった場合には#385に進む。#365でシ
フト量が求まった場合には、#370で求められるデフ
ォーカス量(DEF)の信頼性が有するか(SLOPが
所定値SX以上あるか)否かテストし、無いと判定され
た場合には#385に進む。
At # 365, a test is performed to determine whether the shift amount (SHIFT) has been obtained. That is, if no dent is found even if the shift amount L is shifted to the maximum shift amount (5 in the figure) in FIG. 14, the shift amount (SHIFT) cannot be obtained. If the shift amount (SHIFT) is not determined in # 365, the process proceeds to # 385. When the shift amount is obtained in # 365, whether the reliability of the defocus amount (DEF) obtained in # 370 is reliable (SLOP is equal to or more than a predetermined value SX) or not is determined. Go to # 385.

【0118】#370で信頼性が有ると判定された場合
には、#375でローコンフラグ(LOCFLG)をリ
セット(OFF)にして焦点検出が不能でないとし、#
380では求められたシフト量(SHIFT)から
(6)式によってデフォーカス量(DEF)を求めて次
の(6)レンズ情報読み込みモジュールに進む。1方#3
65でシフト量が求まらなかったと判定された場合ある
いは#370で信頼性がないと判定された場合は、#3
85に進み、ローコンフラグ(LOCFLG)をセット
(ON)にして焦点検出不能だったとし、次の(6)レン
ズ情報読み込みモジュールに進む。
If it is determined in step # 370 that there is reliability, the low-con flag (LOCFLG) is reset (OFF) in step # 375 to determine that focus detection is not impossible.
At 380, a defocus amount (DEF) is obtained from the obtained shift amount (SHIFT) by the equation (6), and the flow advances to the next (6) lens information reading module. One side # 3
If it is determined at 65 that the shift amount has not been determined, or if it is determined at # 370 that there is no reliability, # 3
Proceeding to 85, the low contrast flag (LOCFLG) is set (ON), and it is determined that the focus cannot be detected, and the flow proceeds to the next (6) lens information reading module.

【0119】図16は(6)レンズ情報読み込みモジュー
ルのフローチャートである。#390で図1の通信バス
64を通じてレンズCPU13と通信を行ないAFCP
Uが必要とするレンズAF情報を取り込み、内部メモリ
に格納する。例えばデフォーカス量(DEF)をパルス
数に変換する時に必要なパルス変換係数KL、レンズの
焦点距離FL、AF可能なレンズであるか否かの情報等
のデータがレンズCPU13からAFCPUに送られ
る。#395では取り込んだレンズ情報に基づき装着さ
れているレンズがAFレンズ(AF可能なレンズ)であ
るかテストし、AFレンズと判定されると、#405で
AFレンズフラグ(AFLFLG)をセット(ON)
し、(7)追尾アルゴリズムに進む。
FIG. 16 is a flowchart of the (6) lens information reading module. In step # 390, communication with the lens CPU 13 is performed through the communication bus 64 of FIG.
The lens AF information required by U is fetched and stored in the internal memory. For example, the lens CPU 13 sends data such as a pulse conversion coefficient KL required when converting the defocus amount (DEF) to the number of pulses, a focal length FL of the lens, and information on whether or not the lens is AF-capable from the lens CPU 13 to the AF CPU. In step # 395, it is tested whether the attached lens is an AF lens (an AF-enabled lens) based on the acquired lens information. If it is determined that the lens is an AF lens, in step # 405, an AF lens flag (AFLFLG) is set (ON). )
Then, proceed to (7) tracking algorithm.

【0120】又#395でAFレンズでないと判定され
ると#400でAFレンズフラグをリセット(OFF)
して、次の(7)追尾アルゴリズムに進む。
If it is determined in step # 395 that the lens is not an AF lens, the AF lens flag is reset (OFF) in step # 400.
Then, the process proceeds to the next (7) tracking algorithm.

【0121】図17は(7)追尾アルゴリズムモジュール
のフローチャートである。#410〜#425のブロッ
クはレリーズボタン全押中におけるショット回数をカウ
ントするためのブロックであり、#410でリレーズボ
タン信号(RB)が全押し(ON)であるかテストし、
全押しでない場合は#425でショットカウンタ(PC
OUNT)を0にクリアして#430へ進む。
FIG. 17 is a flowchart of the tracking algorithm module (7). Blocks # 410 to # 425 are used to count the number of shots while the release button is fully pressed. In # 410, a test is performed to determine whether the relay button signal (RB) is fully pressed (ON).
If it is not fully pressed, the shot counter (PC
ENT) is cleared to 0, and the flow advances to # 430.

【0122】一方#410で全押しであった場合には、
#415で更にショット回数が3未満(PCOUNT<
3)であるかテストし、3未満でない即ち3以上の場合
はショット回数はそのままにしておいて#430へ進
む。#415で3未満であった場合には#420へ進み
ショット回数に1を加算(PCOUNT=PCOUNT
+1)する。
On the other hand, if it is determined in step # 410 that the button is fully pressed,
In # 415, the number of shots is further less than 3 (PCOUNT <
Test is performed for 3). If it is not less than 3, that is, if it is 3 or more, the number of shots is kept as it is, and the process proceeds to # 430. If it is less than 3 in # 415, the process proceeds to # 420 and 1 is added to the number of shots (PCOUNT = PCOUNT
+1).

【0123】又ショントカウンタ(PCOUNT)のデ
ータは追尾モードにおいてのみ後述の追尾判定等に使用
される。追尾モードにおいて全押中は撮影動作間に必ず
一度CCD蓄積及び焦点検出動作が確保されており撮影
動作間に必ず1度(7)追尾アルゴリズムモジュールが実
行されるので、上述の#410から#425のブロック
によりショット数がカウントされることになる。#43
0から#515までのブロックは追尾モードにおける追
尾動作を行なうか否かの判定を行なうブロックである。
The data of the shot counter (PCOUNT) is used only in the tracking mode for tracking determination, which will be described later. In the tracking mode, during the full pressing, the CCD accumulation and the focus detection operation are always ensured once during the photographing operation, and the (7) tracking algorithm module is always executed once during the photographing operation. The number of shots is counted by this block. # 43
Blocks from 0 to # 515 are blocks for determining whether or not to perform the tracking operation in the tracking mode.

【0124】追尾動作を行なう条件を表5にまとめて示
す。以下順を追って追尾動作の判定について説明する。
#430では現在追尾モードであるか(PMDFLG
ON)テストする。尚追尾モードフラグ(PMDFL
G)は後述するタイマー割込処理においてフォーカスモ
ード及び駒速モードの組み合わせを定期的に調べて更新
される。
Table 5 summarizes the conditions for performing the tracking operation. Hereinafter, the determination of the tracking operation will be described in order.
In # 430, is the tracking mode currently set (PMDFLG
ON) Test. Note that the tracking mode flag (PMDFL
G) is updated by periodically examining the combination of the focus mode and the frame speed mode in the timer interrupt processing described later.

【0125】#430で追尾モードでなかった場合は追
尾動作を行なわず#545へ進む。#430で追尾モー
ドだった場合は#435で焦点検出不能であるか(LO
CFLG ON)テストする。焦点検出不能であった場
合には追尾動作を行なわず#545へ進む。#435で
焦点検出が可能であった場合は#440へ進み求められ
たデフォーカス量(DEF)の信頼性があるか即ち
(4)式で求めた信頼性を表わすパラメータSLOPが
所定値SZ以上であるかテストする。
If the mode is not the tracking mode in # 430, the flow proceeds to # 545 without performing the tracking operation. If the tracking mode is set in # 430, whether the focus cannot be detected in # 435 (LO
CFLG ON) Test. If the focus cannot be detected, the process proceeds to step # 545 without performing the tracking operation. If the focus detection is possible in step # 435, the flow advances to step # 440 to determine whether the calculated defocus amount (DEF) is reliable, that is, the parameter SLOP representing the reliability determined by equation (4) is equal to or greater than a predetermined value SZ. Test for.

【0126】もちろん所定値SZは#365で用いた所
定値SXよりは大きい値を持つ。#440で信頼性がな
いと判定された場合は追尾動作を行なわず#545へ進
む。このような判定を行なう理由は、信頼性がない場合
は求められたデフォーカス量DEFも誤差を多く含み、
このまま後述する追尾動作を行なうと撮影レンズが静的
被写体に対しても不安定動作(ハンチング等)を起こし
てしまうので、このような不安定動作を未然に防ぐため
である。
The predetermined value SZ has a larger value than the predetermined value SX used in # 365. If it is determined in # 440 that there is no reliability, the process proceeds to # 545 without performing the tracking operation. The reason for making such a determination is that if there is no reliability, the obtained defocus amount DEF also contains a large amount of error,
If a tracking operation to be described later is performed as it is, the photographing lens will cause an unstable operation (hunting or the like) even for a static subject, so that such an unstable operation is prevented beforehand.

【0127】#440では(4)式で求めたパラメータ
SLOPの値により信頼性を判定しているが、これら限
られることはなく信頼性を判定できる処理であればかま
わない。例えば(7)式で求めるコントラスト情報CO
NTと所定値との大小を比較して信頼性を判定するよう
にしてもよい。
In step # 440, the reliability is determined based on the value of the parameter SLOP obtained by the equation (4). However, the present invention is not limited to this, and any process that can determine the reliability may be used. For example, the contrast information CO obtained by Expression (7)
The reliability may be determined by comparing the magnitude of NT with a predetermined value.

【0128】[0128]

【数5】 (Equation 5)

【0129】(7)式においてA(i)はCCDデー
タ、lは所定の整数である。#440で信頼性があると
判定された場合には、#445へ進み、スキャン中(S
CAFLG ON)かテストする。#445でスキャン
中と判定されると追尾動作を行なわず#545へ進む。
In the equation (7), A (i) is CCD data, and l is a predetermined integer. If it is determined in step # 440 that there is reliability, the process proceeds to step # 445, and scanning is being performed (S
CAFLG ON). If it is determined in step # 445 that a scan is being performed, the process proceeds to step # 545 without performing the tracking operation.

【0130】スキャン中に求めたデフォーカス量は、撮
影レンズを駆動中にCCD蓄積を行ったCCDデータに
基づいて求められたデフォーカス量なので誤差を多く含
んでおり、このフォーカス量に基づいて追尾動作を行な
うと不安定動作を起こし易くなる。#445はこのよう
な不具合を防ぐための判定である。
Since the defocus amount obtained during scanning is a defocus amount obtained based on the CCD data obtained by accumulating the CCD while driving the photographing lens, the defocus amount includes many errors, and tracking is performed based on this focus amount. Performing the operation tends to cause unstable operation. # 445 is a determination for preventing such a problem.

【0131】#445でスキャン中でない場合には、#
450へ進み前回駆動を行った(DRVFLGがON)
かテストし駆動を行なわなかった場合には追尾動作を行
なわず#545へジャンプする。その理由は追尾動作は
後述するように撮影レンズが動いたという仮定のもとに
追尾補正量を加えて補正する動作なので、撮影レンズが
静止している状態からいきなり追尾動作を行なうと追尾
補正がうまく働らかず動作が不安定になってしまうため
である。
If scanning is not being performed in # 445, #
Proceed to 450 and drive last time (DRVFLG is ON)
If the driving is not performed after the test, the control jumps to # 545 without performing the tracking operation. The reason for this is that the tracking operation is an operation that adds a tracking correction amount based on the assumption that the shooting lens has moved, as described later, so if the tracking operation is performed immediately from the state where the shooting lens is stationary, the tracking correction will be performed. This is because the operation does not work well and the operation becomes unstable.

【0132】従って撮影レンズが静止している状態から
追尾動作に移る間に必ず一回通常の駆動(追尾補正をし
ない駆動)が入ることになり、不安定動作を防ぐことが
できる。#450で前回駆動したと判定された場合は、
#455へ移り、前回の駆動が駆動方向が反転してから
最初の駆動(REVFLGがON)であるかテストす
る。
Therefore, during the transition from the state where the photographing lens is stationary to the tracking operation, normal driving (drive without tracking correction) is always performed once, and unstable operation can be prevented. If it is determined in # 450 that it has been driven last time,
In step # 455, a test is performed to determine whether the previous drive is the first drive (REVFLG is ON) after the drive direction is reversed.

【0133】駆動反転プラグ(REVFLG)は後述す
る(10) 駆動制御モジュールにおいて駆動方向が反転し
た時にセットされるフラグである。前回の駆動が駆動方
向が反転してから最初の駆動であると判定されると追尾
動作を行なわず#545へジャンプする。図18を用い
て#455の分岐の理由を説明する。図18(A)は#
455の判定がない場合の撮影レンズの動きを示す図で
あって、実線は静止している被写体に対してその被写体
像をフィルム面に一致させるための撮影レンズの位置
(合焦位置)を示し、2点鎖線は実際の撮影レンズの動
きを示している。撮影レンズのデフォーカスしている位
置から駆動D0により合焦位置に近づき誤差のため合焦
点を通りすぎて停止した場合、この位置で求めたデフォ
ーカス量がDEF0となった。次にこの位置よりデフォ
ーカス量DEF0に基づいて合焦位置へ向って駆動D1
を行なうがこの駆動D1は反転後初めての駆動のため、
図1のボディ伝達系51及びレンズ伝達系12のバック
ラッシュにより破線のように合焦位置までは駆動せずに
合焦位置よりバックラッシュ分離れた位置で停止する。
この位置で求めたデフォーカス量がDEF1になると、
前回駆動行ったにもかかわらず合焦位置に到達しなかっ
たので追尾動作に入り次回の駆動D2の駆動量はデフォ
ーカス量DEF1の2倍に相当するものになり、合焦位
置を通りすぎてしまう。これ以降も同様な動作をくり返
し合焦位置付近でハンチングを起こすことになる。
The drive inversion plug (REVFLG) is a flag that is set when the drive direction is inverted in the drive control module (10) described later. If it is determined that the previous driving is the first driving after the driving direction is reversed, the control jumps to # 545 without performing the tracking operation. The reason for branching at # 455 will be described with reference to FIG. FIG.
FIG. 8 is a diagram illustrating the movement of the photographing lens when there is no determination at 455, and a solid line indicates a position (focusing position) of the photographing lens for making a subject image coincide with a film surface with respect to a stationary subject. The two-dot chain line indicates the actual movement of the photographing lens. When the focus is approached by the drive D0 from the defocused position of the photographing lens and stopped by passing through the focal point due to an error, the defocus amount obtained at this position was DEF0. Next, drive D1 is performed from this position toward the in-focus position based on the defocus amount DEF0.
However, since this drive D1 is the first drive after inversion,
Due to the backlash of the body transmission system 51 and the lens transmission system 12 of FIG. 1, as shown by the broken line, the lens is not driven to the in-focus position, and stops at a position separated by the backlash from the in-focus position.
When the defocus amount obtained at this position becomes DEF1,
Since the in-focus position has not been reached despite the previous drive, the tracking operation is started, and the drive amount of the next drive D2 is equivalent to twice the defocus amount DEF1, and has passed the in-focus position. I will. After that, the same operation is repeated, and hunting occurs near the in-focus position.

【0134】一方図18(B)の場合は、反転後2回目
の駆動D2の際には、追尾動作を行なわないので駆動量
はデフォーカス量DEF1に相当するものとなり合焦位
置へ到達することができる。上述の説明では撮影レンズ
の駆動方向が反転した際には反転後2回の駆動は追尾動
作を禁止しているが2回に限られることはなく2回以上
の所定回数であればよい。
On the other hand, in the case of FIG. 18B, since the tracking operation is not performed in the second driving D2 after the reversal, the driving amount corresponds to the defocus amount DEF1 and reaches the in-focus position. Can be. In the above description, when the driving direction of the photographing lens is reversed, the two driving operations after the reversal are prohibited from performing the tracking operation. However, the driving operation is not limited to two times and may be any predetermined number of times.

【0135】又反転後初回の駆動において所定量以上の
駆動が行なわれた場合には2回目の駆動において追尾動
作を許可するようにしてもよいし、反転後の累積駆動量
が所定量以上となったら追尾動作を許可するようにして
もよい。又反転後所定時間の間追尾動作を禁止するよう
にしてもよい。以上した説明したように#455の処理
は、駆動反転時のバックラッシュによる不安定動作を防
止するための処理である。#455で前回の駆動が駆動
方向が反転してから最初の駆動でないと判定されると#
460に進み現在追尾中(PRSFLGがON)である
かテストする。追尾中フラグは後述するように追尾動作
を行なう即ち動的被写体だと判定して静的被写体に対す
るデフォーカス量に追尾補正量を加えた追尾駆動量によ
って駆動を行なう際にセット(ON)される。
[0135] When the driving of the predetermined amount or more is performed in the first driving after the inversion, the tracking operation may be permitted in the second driving, or the accumulated driving amount after the inversion may be equal to or more than the predetermined amount. Then, the tracking operation may be permitted. The tracking operation may be prohibited for a predetermined time after the reversal. As described above, the process of # 455 is a process for preventing an unstable operation due to a backlash at the time of drive inversion. If it is determined in # 455 that the previous driving is not the first driving after the driving direction is reversed, #
Proceeding to 460, a test is made to see if the vehicle is currently being tracked (PRSFLG is ON). The tracking-in-progress flag is set (ON) when a tracking operation is performed as described later, that is, when it is determined that the object is a dynamic object and driving is performed by a tracking drive amount obtained by adding a tracking correction amount to a defocus amount for a static object. .

【0136】#460で追尾中でない場合には、#46
5で追尾補正量(COMP)を0にクリアして#480
へ進む。#460で追尾中と判定された場合には、#4
70に進み今回求められたデフォーカス量(DEF)と
前回の追尾デフォーカス量(PLST)の符号が同符号
であるかテストする。同符号であった場合には#480
に進み、異符号であった場合には#475に進みデフォ
ーカス量の絶対値(|DEF|)が所定値DXより大き
いかテストする。#475で大きいと判定された場合に
は、追尾動作を行なわずに#545へジャンプする。#
475で小さいと判定された場合には、#480へ進
む。#470から#475の処理は追尾動作の終了時の
応答を速くするための処理であって、図19を用いてこ
れを説明する。
If tracking is not being performed in # 460, # 46
The tracking correction amount (COMP) is cleared to 0 at 5 and # 480.
Proceed to. If it is determined in step # 460 that tracking is in progress, # 4
Proceeding to 70, it is tested whether the sign of the defocus amount (DEF) obtained this time and the sign of the previous tracking defocus amount (PLST) are the same. If it is the same code, # 480
The flow proceeds to # 475 if the code is different, and it is tested whether the absolute value (| DEF |) of the defocus amount is larger than the predetermined value DX. If it is determined in step # 475 that it is large, the process jumps to step # 545 without performing the tracking operation. #
If it is determined to be small in 475, the process proceeds to # 480. The processes from # 470 to # 475 are processes for speeding up the response at the end of the tracking operation, which will be described with reference to FIG.

【0137】図19において実線は被写体に対する被写
体像をフィルム面に一致させるための撮影レンズ位置の
理想的な軌跡であり、1点鎖線は実際の撮影レンズの動
きの軌跡である。レリーズの行なわれる以前の追尾動作
においては後述するように動的被写体に対しても焦点検
出結果であるデフォーカス量(DEF)が0になるよう
に追尾補正を行って駆動をしている。従ってCCDの蓄
積時間の中点において実線と一点鎖線が交わるように動
作が行なわれる。(図は駆動終了後即ち蓄積時間がほと
んど0の蓄積を行ったと仮定して描いたものである。)
追尾動作中に被写体が急停止した場合図19に示すよう
に前回の追尾デフォーカス量(PLST)と今回のデフ
ォーカス量(DEF)の符号は反転するとともにその絶
対値はかなり大きくなる。
In FIG. 19, the solid line is an ideal locus of the photographing lens position for making the subject image coincide with the film surface with respect to the subject, and the dashed line is the actual locus of the movement of the photographing lens. In the tracking operation before the release is performed, tracking correction is performed so that the defocus amount (DEF), which is the focus detection result, becomes 0 with respect to the dynamic subject, as described later, and driving is performed. Therefore, the operation is performed so that the solid line and the dashed line intersect at the middle point of the accumulation time of the CCD. (The drawing is drawn assuming that the accumulation has been performed after the driving is completed, that is, the accumulation time is almost zero.)
When the subject stops suddenly during the tracking operation, as shown in FIG. 19, the sign of the previous tracking defocus amount (PLST) and the current defocus amount (DEF) are inverted and the absolute values thereof are considerably large.

【0138】しかしこのような場合でも今回の追尾デフ
ォーカス量(PRED)は今回のデフォーカス量(DE
F)に追尾補正量(COMP)を加えたものになり、前
回の追尾デフォーカス量(PLST)と同符号で同程度
の大きさになってしまうので後述する#480から#5
15の判定処理においても追尾不可と判定されることが
なく追尾動作に入ってしまい、図19に破線で示す如く
撮影レンズは合焦位置から更にオーバランしてしまう。
そこで#470、#475によりこのような場合には追
尾動作に入らないようにしており図19の示すように1
度合焦位置を通りすぎると追尾動作を行なわずに次の駆
動では即ち合焦位置に到達することができることにな
る。
However, even in such a case, the current tracking defocus amount (PRED) is the same as the current defocus amount (DED).
F) to which the tracking correction amount (COMP) has been added, which is the same sign and the same size as the previous tracking defocus amount (PLST).
Even in the determination processing of No. 15, the tracking operation is started without determining that tracking is impossible, and the photographing lens further overruns from the in-focus position as shown by a broken line in FIG.
Therefore, in such a case, the tracking operation is not performed by # 470 and # 475, and as shown in FIG.
If the camera has passed the focusing position, it is possible to reach the focusing position in the next drive without performing the tracking operation.

【0139】#480では今回の追尾デフォーカス量
(PRED)を今回のデフォーカス量(DEF)と前回
の追尾補正量(COMP)の和として計算を行なう。#
485では今回の追尾デフォーカス量(PRED)との
符号と前回の追尾デフォーカス量(PLST)の符号が
同符号であるかテストし、異符号の場合は追尾動作を行
なわずに#545へジャンプする。
In step # 480, the current tracking defocus amount (PRED) is calculated as the sum of the current defocus amount (DEF) and the previous tracking correction amount (COMP). #
At 485, it is tested whether the sign of the current tracking defocus amount (PRED) and the sign of the previous tracking defocus amount (PLST) are the same sign, and if the sign is different, jump to # 545 without performing the tracking operation. I do.

【0140】これは追尾の方向が反転したときは一旦追
尾動作から抜けて通常の駆動を行なうことにより、被写
体の動きの反転した時に不安定動作(ハンチング、オー
バーラン等)をしないようにするためである。#485
で同符号の場合には#490へ進み、今回の追尾デフォ
ーカス量(PRED)と前回の追尾デフォーカス量(P
LST)の和の絶対値(|PRED+PLST|)が所
定値δ(例えば200μm)以上であるかテストする。
This is because when the tracking direction is reversed, the tracking operation is temporarily stopped and normal driving is performed to prevent unstable operation (hunting, overrun, etc.) when the movement of the subject is reversed. It is. # 485
If the code is the same, the process proceeds to # 490, where the current tracking defocus amount (PRED) and the previous tracking defocus amount (PRED)
LST) is tested to see if the absolute value (| PRED + PLST |) is equal to or greater than a predetermined value δ (eg, 200 μm).

【0141】所定値δ以下であった場合は追尾動作を行
なわずに#545へジャンプする。#490の処理は、
合焦位置近傍では追尾デフォーカス量とそれに含まれる
誤差値が同程度になりこれを用いて追尾動作を行なうと
合焦位置近傍で不安定動作(ハンチング、オーバーラン
等)を起こしてしまうので、これを防止することを目的
としている。所定値δは実験的に一定値に決定したり、
種々の条件(レンズ焦点距離、追尾中か否か、デフォー
カス量の信頼度等)に応じて変えることもできる。
If the value is equal to or smaller than the predetermined value δ, the process jumps to # 545 without performing the tracking operation. The process of # 490 is
In the vicinity of the focus position, the tracking defocus amount and the error value included in the tracking defocus amount are substantially the same, and if a tracking operation is performed using this, an unstable operation (hunting, overrun, etc.) occurs near the focus position. The purpose is to prevent this. The predetermined value δ is experimentally determined to be a constant value,
It can also be changed according to various conditions (lens focal length, whether tracking is in progress, reliability of defocus amount, etc.).

【0142】特に安定性を確保するために追尾中には所
定値δ1、非追尾中には所定値δ2(>δ1)とヒステ
リシスを設けることは有効である。#490のかわりに
今回の追尾デフォーカス量(PRED)の絶対値の大き
さだけで追尾可否を判定することも可能であるが、#4
90のように前回の追尾デフォーカス量(PLST)と
の和を取ることによって追尾デフォーカス量に含まれる
誤差の影響を軽減し、より安定な追尾動作を保証するこ
とができる。
In particular, it is effective to provide a predetermined value δ1 during tracking and a predetermined value δ2 (> δ1) during non-tracking and a hysteresis to ensure stability. It is also possible to determine whether tracking is possible only by the absolute value of the current tracking defocus amount (PRED) instead of # 490, but # 4
By taking the sum with the previous tracking defocus amount (PLST) as in 90, the influence of an error included in the tracking defocus amount can be reduced, and a more stable tracking operation can be guaranteed.

【0143】#490で所定値δ以上あると判定される
と#495へ進む。#495から#515の処理は、今
回の追尾デフォーカス量(PRED)と前回の追尾デフ
ォーカス量(PLST)との比に応じて追尾動作の可否
を判定する処理である。前述したように追尾動作中はデ
フォーカス量(DEF)はほぼ0になり追尾補正量CO
MPはほぼ一定になる。
If it is determined in step # 490 that the value is equal to or larger than the predetermined value δ, the flow advances to step # 495. The processes of # 495 to # 515 are processes for determining whether or not the tracking operation is possible according to the ratio between the current tracking defocus amount (PRED) and the previous tracking defocus amount (PLST). As described above, during the tracking operation, the defocus amount (DEF) becomes almost 0 and the tracking correction amount CO
MP becomes almost constant.

【0144】従って今回の追尾デフォーカス量(PRE
D)と前回の追尾デフォーカス量(PLST)との比は
理想的にはほぼ1となる。追尾補正は被写体がほぼ一定
速度で運動していると仮定して行なう補正であり、被写
体の速度が急変した場合にもこのような追尾補正を行な
うと不安定動作(ハンチング、オーバーラン等)を起こ
す可能性がある。
Therefore, the current tracking defocus amount (PRE
The ratio between D) and the previous tracking defocus amount (PLST) is ideally substantially 1. Tracking correction is a correction performed on the assumption that the subject is moving at a substantially constant speed. Even if the speed of the subject changes suddenly, such tracking correction may cause unstable operation (hunting, overrun, etc.). May cause.

【0145】被写体の速度が変わるとそれに応じて追尾
デフォーカス量の値も変化するので、今回と前回の追尾
デフォーカス量の比の値も1から大きくなったり小さく
なったりする。
When the speed of the subject changes, the value of the tracking defocus amount changes accordingly, so that the value of the ratio between the current and previous tracking defocus amounts also increases or decreases from 1.

【0146】そこで#495から#515の処理ではこ
の比が1を含む一定範囲の値になっている場合のみ追尾
動作を行なうようにして、被写体速度の急変による不安
定動作を防止している。#495から#505ではショ
ットカウンタ(PCOUNT)の値によって比の上限
(r)の値を変えている。
Therefore, in the processing from # 495 to # 515, the tracking operation is performed only when the ratio is within a certain range including 1 to prevent an unstable operation due to a sudden change in the object speed. In steps # 495 to # 505, the value of the upper limit (r) of the ratio is changed depending on the value of the shot counter (PCOUNT).

【0147】この理由を図20を用いて説明する。図に
おいて実線は動いている被写体に対して被写体像をフィ
ルム面と一致させるために必要な撮影レンズの動きの軌
跡であり、一点鎖線は追尾動作時の実際の撮影レンズの
動きの軌跡である。全押し以前においてはAFCPUは
CCDの蓄積及び焦点検出演算の動作とAFモータの駆
動動作をくり返しており、その周期はほぼF0で一定し
てありショットカウンタ(PCOUNT)の値は0にな
っている。
The reason will be described with reference to FIG. In the figure, the solid line is the locus of the movement of the photographing lens required to match the image of the moving object with the film surface, and the chain line is the locus of the actual movement of the photographing lens during the tracking operation. Before the full press, the AFCPU repeats the operation of accumulation and focus detection calculation of the CCD and the driving operation of the AF motor, and its cycle is almost constant at F0, and the value of the shot counter (PCOUNT) is 0. .

【0148】全押し以降はショットカウンタ(PCOU
NT)は1になり駆動動作の後に撮影動作が行なわれ
る。撮影動作が行なわれる以前には駆動終了後即ちCC
Dの蓄積が行なわれたのに対し、全押以降は撮影動作後
にCCDの蓄積が行なわれるので、全押以前のデフォー
カス量はほぼ0であり全押以降初めのデフォーカス量
(DEF2)は大きな値となる。
After full press, the shot counter (PCOU)
NT) becomes 1, and the photographing operation is performed after the driving operation. Before the photographing operation is performed, after driving is completed, that is, CC
While the accumulation of D is performed, the accumulation of the CCD is performed after the photographing operation after the full press, so the defocus amount before the full press is almost 0, and the initial defocus amount (DEF2) after the full press is This is a large value.

【0149】従って初回の撮影動作後に初めて行なわれ
る(7)追尾アルゴリズムモジュールの処理においては即
ちショット回数が2回目(PCOUNT=2)の時は、
前述の今回の追尾デフォーカス量(PRED)は前回の
追尾デフォーカス量(PLST)より大きくなるので、
その比(r)の上限も大きく取らないと追尾動作から不
要にはずれてしまう。
Therefore, in the processing of the tracking algorithm module performed for the first time after the first photographing operation (7), that is, when the number of shots is the second time (PCOUNT = 2),
Since the current tracking defocus amount (PRED) becomes larger than the previous tracking defocus amount (PLST),
Unless the upper limit of the ratio (r) is set too large, the tracking operation is unnecessarily deviated.

【0150】従ってショットカウンタが2(PCOUN
T=2)の場合に限り比の上限(r)を通常の値(R
S)より大きな値(RL、RL>RS)にしている。
Therefore, when the shot counter is 2 (PCOUNT)
Only when T = 2) is the upper limit (r) of the ratio a normal value (R
S) It is set to a larger value (RL, RL> RS).

【0151】以上が#495から#505の処理の内容
であり#495で第1回目の撮影動作(レリーズ)後で
あるかテストし、第1回目(PCOUNT=2)でない
場合は、#505に進み比の上限の値(r)を所定値R
S(例えば3)にし、#510に進む。第1回目(PC
OUNT=2)の場合は#500へ進み、比の上限の値
(r)を所定値RL(例えば6)にし#510に進む。
#510では前述のように今回の追尾デフォーカス量の
絶対値(|PRED|)が前回の追尾デフォーカス量の
絶対値(|PLST|)のr倍以下であるかテストし、
r倍以下でない場合には追尾不可と判定して追尾動作を
行なわず#545へジャンプする。r倍以下だった場合
は#545へ進み、今回の追尾デフォーカス量の絶対値
(|PRED|)と前回の追尾デフォーカス量の絶対値
(|PLST|)の所定値K(例えば1/2)倍以上である
かテストする。
The above is the contents of the processing from # 495 to # 505. In # 495, it is tested whether or not after the first photographing operation (release). If it is not the first time (PCOUNT = 2), the processing proceeds to # 505. The upper limit value (r) of the advance ratio is set to a predetermined value R.
S (for example, 3), and the process proceeds to # 510. The first (PC
If OUNT = 2), the process proceeds to # 500, where the upper limit value (r) of the ratio is set to a predetermined value RL (for example, 6), and the process proceeds to # 510.
In # 510, as described above, it is tested whether the absolute value (| PRED |) of the current tracking defocus amount is r times or less of the absolute value (| PLST |) of the previous tracking defocus amount.
If it is not r times or less, it is determined that tracking is impossible, and the routine jumps to # 545 without performing the tracking operation. If it is less than r times, the process proceeds to # 545, where a predetermined value K (for example, 1/2) of the absolute value of the current tracking defocus amount (| PRED |) and the previous absolute value of the tracking defocus amount (| PLST |) Test if it is more than twice.

【0152】K倍以上でなかった場合は追尾不可として
追尾動作を行なわず#545へジャンプする。K倍以上
であった場合は追尾可として#520へ進む。前述の#
490、#510、#515の判定処理における比較パ
ラメータδ、r、kは所定値として説明を行ったが、追
尾中か否かに応じて所定巾のヒステリシスをこれらのパ
ラメータに設けてもよい。
If it is not K times or more, it is determined that tracking is impossible, and the control jumps to step # 545 without performing the tracking operation. If it is K times or more, it is determined that tracking is possible, and the process proceeds to # 520. # Above
Although the comparison parameters δ, r, and k in the determination processes of 490, # 510, and # 515 have been described as the predetermined values, a hysteresis of a predetermined width may be provided to these parameters depending on whether tracking is being performed or not.

【0153】ヒステリシスは追尾動作中は追尾動作を抜
けにくく又追尾動作外の時に追尾動作に入りにくくする
ように設定する。
The hysteresis is set so that the tracking operation is hard to escape during the tracking operation, and the tracking operation is hard to be performed when the tracking operation is not performed.

【0154】例えばδは追尾中はδ1追尾外ではδ2
(>δ1)、rは追尾中はRL1又はRS1、追尾外は
RL2(<RL1)又はRS2(<RS1)、kは追尾
中はk1、追尾外はk2(>k1)とする。このように
ヒステリシスを設けることにより追尾動作と追尾動作中
の間の遷移を安定に行なうことができる。
For example, δ is δ1 during tracking and δ2 outside tracking.
(> Δ1), r is RL1 or RS1 during tracking, RL2 (<RL1) or RS2 (<RS1) outside tracking, k is k1 during tracking, and k2 (> k1) outside tracking. By providing the hysteresis in this manner, the transition between the tracking operation and the tracking operation can be performed stably.

【0155】#520から#540は追尾動作のための
演算処理である。#520は追尾補正量(COMP)を
今回の追尾デフォーカス量(PRED)に係数αを乗じ
て演算する場合の係数αを決定するための処理である。
#520の処理の内容について図20を参照して説明す
る。図20において全押し以前にはCCD蓄積及び焦点
検出演算動作とAFモータ駆動動作からなる周期はF0
でほぼ一定なので係数αはほぼ1が適正である。
Steps # 520 to # 540 are arithmetic processing for the tracking operation. Step # 520 is a process for determining a coefficient α when the tracking correction amount (COMP) is calculated by multiplying the current tracking defocus amount (PRED) by a coefficient α.
The contents of the process of # 520 will be described with reference to FIG. In FIG. 20, before full press, the cycle consisting of the CCD accumulation and focus detection calculation operation and the AF motor drive operation is F0.
Is approximately constant, and therefore, approximately 1 is appropriate for the coefficient α.

【0156】全押し後は撮影動作が周期に含まれること
になるので図に示すように周期がF1、F2、F3と全
押し以前の周期F0より長くなる。又全押し以前にはC
CDの蓄積時間の中点で実線と一点鎖線が交わるように
係数αを決定する。全押し以後は撮影時の露光の中点
(図にEで示す)で実線と一点鎖線が交わるように係数
αを決定する。図に撮影動作時におけるCCDの蓄積の
開始から露光の中点までの周期をF1′、F2′、F
3′で示してあるが、係数αは前回の周期と今回の露光
の中点までの周期との比にほぼ比例し、ショットカウン
タが0(PCOONT=0)の場合は、係数αはF0/
F0〜1、1(PCOUNT=1)の場合はF1′/F
0=1.5、2(PCOUNT=2)の場合はF2′/
F1=0.9〜1、3(PCOUNT=3)の場合はF
3′/F2=0.8〜1が適している。
Since the photographing operation is included in the cycle after the full press, the cycle becomes longer than F1, F2, F3 and the cycle F0 before the full press as shown in FIG. Also, before full press C
The coefficient α is determined so that the solid line and the dashed line intersect at the midpoint of the CD accumulation time. After the full press, the coefficient α is determined so that the solid line and the dash-dot line intersect at the middle point of exposure during photography (indicated by E in the figure). In the figure, the period from the start of accumulation of the CCD to the middle point of exposure during the photographing operation is represented by F1 ', F2', F
3 ', the coefficient α is almost proportional to the ratio between the previous cycle and the cycle up to the middle point of the current exposure. When the shot counter is 0 (PCOONT = 0), the coefficient α is F0 / F0 /
F1 '/ F in the case of F0 to 1, 1 (PCOUNT = 1)
When 0 = 1.5, 2 (PCOUNT = 2), F2 '/
When F1 = 0.9 to 1,3 (PCOUNT = 3), F
3 '/ F2 = 0.8 to 1 is suitable.

【0157】又係数αは被写体の運動方向及びレンズの
焦点距離に応じても変えることが望ましい。
It is desirable that the coefficient α be changed in accordance with the moving direction of the subject and the focal length of the lens.

【0158】図21を用いてその理由を説明する。図2
1(A)において実線は被写体が∞から至近に近づいて
くる場合の被写体像を常にフィルム面に一致させるため
の撮影レンズの動きの軌跡を示し、一点鎖線は被写体の
至近から∞に遠ざかる場合の撮影レンズの動きの軌跡で
ある。被写体が近づく場合には、至近に近づくにつれて
撮影レンズの動きが大きくなる。反対に被写体が遠ざか
る場合には、∞に遠ざかるにつれて撮影レンズの動きが
小さくなる。
The reason will be described with reference to FIG. FIG.
In FIG. 1 (A), the solid line indicates the trajectory of the movement of the photographing lens for making the subject image always coincide with the film surface when the subject approaches from ∞. It is a locus of the movement of the taking lens. When the subject approaches, the movement of the taking lens increases as the subject approaches. On the other hand, when the subject goes away, the movement of the taking lens becomes smaller as the subject goes away.

【0159】従って追尾補正量を決めるための係数α
は、被写体が遠ざかる時に近づく時より小さく設定して
おくのが好ましい。又図21(B)は近づいてくる被写
体に対する撮影レンズの軌跡を示し、実線は焦点距離が
短かい撮影レンズの動きの軌跡を示し、一点鎖線は焦点
距離が長い撮影レンズの動きの軌跡を示している。
Therefore, the coefficient α for determining the tracking correction amount
Is preferably set to be smaller when the subject moves away than when the subject approaches. FIG. 21B shows the trajectory of the taking lens with respect to the approaching subject, the solid line shows the trajectory of the movement of the taking lens having a short focal length, and the dashed line shows the trajectory of the movement of the taking lens having a long focal length. ing.

【0160】焦点距離が長い場合は無限遠∞から至近ま
で撮影レンズの動きが一定であるのに対し、焦点距離が
短かい場合は至近に近づくにつれて撮影レンズの動きの
軌跡が急激に立上がる。従って係数αは焦点距離が長い
レンズの場合には焦点距離が短かいレンズの場合より小
さめに設定しておくのが好ましい。
When the focal length is long, the movement of the photographing lens is constant from infinity ∞ to a close distance. On the other hand, when the focal length is short, the locus of the movement of the photographing lens rises sharply as the focal distance approaches. Therefore, it is preferable to set the coefficient α to be smaller for a lens having a long focal length than for a lens having a short focal length.

【0161】以上の理由により#520ではショット回
数(PCOUNT)及びレンズの焦点距離(FL)が所
定値(FX)より大きいか小さいか及び被写体の運動方
向(追尾デフォーカス量の符号)の3つのパラメータに
応じて表に示すように係数αを定める。#525では#
520で定められた係数αを今回の追尾デフォーカス量
(PRED)に乗じて追尾補正量(COMP)を求め
る。
For the above reasons, in # 520, there are three shot counts (PCOUNT), whether the focal length (FL) of the lens is larger or smaller than a predetermined value (FX), and the direction of movement of the subject (the sign of the tracking defocus amount). The coefficient α is determined according to the parameters as shown in the table. In # 525, #
The tracking correction amount (COMP) is obtained by multiplying the coefficient α determined in 520 by the current tracking defocus amount (PRED).

【0162】また同じ焦点距離のレンズでも被写体が無
限遠∞に近い場合と至近側に近い場合とでは図21
(B)の実線のように加速のされかたが異なっている。
従ってより厳密に扱うためにはレンズの距離情報も加味
してαの値を決定するのが良く、例えば被写体が近づく
場合には至近側になる程のαの値を大きくして補正量を
大きくとるのが良い。
FIG. 21 shows a case where the subject is close to infinity と and a case where the subject is close to the closest side even if the lenses have the same focal length.
The way of acceleration is different as shown by the solid line in (B).
Therefore, in order to treat the object more strictly, it is better to determine the value of α in consideration of the distance information of the lens. For example, when the subject approaches, the value of α is increased so that it is closer to the object and the correction amount is increased. Good to take.

【0163】次にレンズの焦点距離情報や距離情報を用
いないでαの値を求める方法を述べる。この為には前記
PLSTとPREDを用いてPRED/PLST=βの
値を算出する。像面移動の速度が定速の場合はβ=1で
加速の時はβ>1、減速のときはβ<1となるので、こ
のβを用いてαの値を決めることができる。この場合例
えば次の様なテーブルを用いてβの値からαの値を決定
する。
Next, a method of obtaining the value of α without using the focal length information or distance information of the lens will be described. For this purpose, the value of PRED / PLST = β is calculated using the above-mentioned PLST and PRED. When the image plane moving speed is constant, β = 1, β> 1 during acceleration, and β <1 during deceleration. Therefore, the value of α can be determined using β. In this case, for example, the value of α is determined from the value of β using the following table.

【0164】[0164]

【表1】 [Table 1]

【0165】αの値はβの値より少し小さ目となるが、
これは露光と蓄積時間の時間間隔に依存し、おおむね
Although the value of α is slightly smaller than the value of β,
This depends on the time interval between exposure and accumulation time, and is generally

【0166】[0166]

【数6】 (Equation 6)

【0167】となる。#530では追尾動作を行なうた
めに今回のデフォーカス量(DEF)に#525で求め
た追尾補正量(COMP)を加えて今回の追尾駆動量
(DRIV)を決定する。#535では前回(最終)の
追尾デフォーカス量(PLST)を今回の追尾デフォー
カス量(PRED)に置きかえ次回の追尾処理・判定に
準備する。
Is obtained. In step # 530, the current tracking drive amount (DRIV) is determined by adding the tracking correction amount (COMP) obtained in step # 525 to the current defocus amount (DEF) in order to perform the tracking operation. In # 535, the previous (final) tracking defocus amount (PLST) is replaced with the current tracking defocus amount (PRED) to prepare for the next tracking processing / determination.

【0168】#540では追尾動作中(PRSFLG
ON)として次の(8)合焦判定・表示モジュールに進
む。以上が追尾動作を行なう時の処理である。#545
と#550は追尾不可と判定された場合の処理である。
#545では前回(最終)の追尾デフォーカス量(PL
ST)として今回のデフォーカス量(DEF)を採用し
て次回の追尾処理・判定に備える。
In # 540, the tracking operation is being performed (PRSFLG
ON) and proceeds to the next (8) focus determination / display module. The above is the processing when the tracking operation is performed. # 545
And # 550 are processing when it is determined that tracking is impossible.
In # 545, the previous (final) tracking defocus amount (PL
The current defocus amount (DEF) is adopted as ST) to prepare for the next tracking processing / determination.

【0169】#550では追尾動作中でないとして追尾
中フラグをリセット(PRSFLGをOFF)にして次
の(8)合焦判定・表示モジュールに進む。
In step # 550, it is determined that the tracking operation is not being performed, the tracking flag is reset (PRSFLG is turned off), and the flow advances to the next (8) focus determination / display module.

【0170】図22は(8)合焦判定・表示モジュールの
フローチャートである。#560ではフォーカスモード
がワンショットモード(ONEFLG ON)であるか
テストしワンショットモードであった場合は#565を
スキップし#570へ進む。ワンショットモードでなか
った場合即ち連続AFモードあるいはマニュアルモード
であった場合は#565で固定フラグをリセット(FI
XFLGをOFF)して駆動表示が一旦合焦した後も固
定されないようにする。
FIG. 22 is a flowchart of the (8) focus determination / display module. In # 560, it is tested whether the focus mode is the one-shot mode (ONEFLG ON). If the focus mode is the one-shot mode, # 565 is skipped and the process proceeds to # 570. If the mode is not the one-shot mode, that is, if the mode is the continuous AF mode or the manual mode, the fixed flag is reset at # 565 (FI
XFLG is turned off) so that the drive display is not fixed even after being once focused.

【0171】#570では駆動表示が固定されている
(FIXFLGがON)かテストし固定された場合には
以下の処理をパスして次の(9)AF許可待機モジュール
へ進む。#570で駆動表示が固定されていた場合は#
575へ進み、焦点検出不能であったか(LOCFLG
がON)テストし焦点検出不能の場合には#610に進
み非合焦(FZCFLG OFF)と判定しさらに#6
15でAF表示手段40の表示部44(X)をアクティ
ブにして表示を行なう。
In step # 570, it is tested whether the drive display is fixed (FIXFLG is ON). If the display is fixed, the process goes through the following processing and proceeds to the next (9) AF permission waiting module. If the driving display is fixed in # 570, #
Proceed to 575 to determine if the focus could not be detected (LOCFLG
Is ON), if the focus cannot be detected, the process proceeds to step # 610, where it is determined that the image is out of focus (FZCFLG OFF), and further, the process proceeds to step # 6.
At 15, the display section 44 (X) of the AF display means 40 is activated to perform display.

【0172】#575で焦点検出不能でなかった場合
は、#580でこれ以降スキャンを行なわないようにス
キャン禁止フラグをセット(NSCFLGをON)し#
585で追尾モードであるか(PMDFLGがON)テ
ストする。追尾モードであった場合には、#590へ進
み追尾中であるか(PRSFLGがON)テストする。
If the focus cannot be detected in step # 575, the scan prohibition flag is set (NSCFLG is turned on) so as to prevent the scanning from being performed in step # 580.
At 585, a test is performed to determine whether the mode is the tracking mode (PMDFLG is ON). If the mode is the tracking mode, the flow advances to step # 590 to test whether tracking is being performed (PRSFLG is ON).

【0173】追尾中であった場合には、#595でレン
ズ端であるか(LLMFLGがON)テストする。レン
ズ端であった場合は#600で非合焦と判定((10) 駆
動制御モジュールで常に駆動が行なわれるように)して
合焦フラグをリセット(FZCFLGをON)し、更に
#605で表示部41及び43を両方アクティブにして
他の表示状態(合焦、非合焦)と異なる表示形態で追尾
動作中であることを表示して次の(9)AF許可待機モジ
ュールに進む。
If tracking is in progress, a test is made at # 595 to see if the lens is at the lens end (LLMFLG is ON). If it is the lens end, it is determined that out of focus at # 600 ((10) so that the drive is always performed by the drive control module), the focus flag is reset (FZCFLG is turned ON), and further displayed at # 605. Both the units 41 and 43 are activated to indicate that the tracking operation is being performed in a display mode different from the other display states (in-focus and out-of-focus), and the process proceeds to the next (9) AF permission standby module.

【0174】#620から#640までの処理は合焦判
定のための合焦ゾーンを決定するための処理であって#
585で追尾モードでなかった場合は非合焦から合焦に
入る場合の狭いゾーン(ZONEN)をZ1(例えば5
0μm)、合焦から非合焦に出る場合の広いゾーン(Z
ONEW)をZ2(例えば150μm)に設定し#64
5以降の判定処理に進む。
The processes from # 620 to # 640 are processes for determining the focusing zone for the focus determination.
If the tracking mode is not set in S <b> 585, the narrow zone (ZONEN) for entering into focusing from out of focus is set to Z <b> 1 (for example, 5
0 μm), a wide zone (Z
ONE) is set to Z2 (for example, 150 μm) and # 64
The process proceeds to the determination processing after 5.

【0175】一方#590で追尾中でなかった場合及び
#595でレンズ端であると判定された場合は、#62
5に進み、狭いゾーン(ZONEN)をZ3(例えば5
0μm)、広いゾーン(ZONEW)をZ4(例えば1
00μm)に設定する。Z4をZ2より小さく設定する
ことにより追尾モードにおける駆動の応答性を高めるこ
とができる #630では低輝度であるか(LOLFLGがON)テ
ストし、低輝度であった場合は#640へ進む。低輝度
でなかった場合は#635で信頼性が高いか(SLOP
が所定値SY以上であるか)テストし、信頼性が高い場
合はそのまま#645へ抜ける。#635では信頼性の
判定のパラメータSLOPを使用しているが(7)式で
求めるコントラストパラメータCONTを用いてもよ
い。
On the other hand, when tracking is not being performed in # 590 and when it is determined in # 595 that the lens is at the lens end, # 62 is performed.
Go to 5 and narrow zone (ZONEN) to Z3 (eg 5
0 μm) and a wide zone (ZONEW) with Z4 (for example, 1
00 μm). By setting Z4 to be smaller than Z2, the responsiveness of driving in the tracking mode can be increased. In # 630, a test is performed to determine whether the luminance is low (LOLFLG is ON). If the luminance is low, the process proceeds to # 640. If the brightness is not low, whether the reliability is high in # 635 (SLOP
Is greater than or equal to a predetermined value SY), and if the reliability is high, the flow directly goes to # 645. In step # 635, the reliability determination parameter SLOP is used, but the contrast parameter CONT obtained by the equation (7) may be used.

【0176】一方信頼性が低いと判定された場合及び#
630で低輝度であった場合は#640で広いゾーン
(ZONEW)をZ4より大きなZ5(例えば200μ
m)に変更して#645へ進む。#630から#640
の処理は追尾モードにおいて低輝度及び信頼性が低い場
合には応答性よりも安定性を重視して合焦ゾーンを設定
するための処理である。
On the other hand, when it is determined that the reliability is low,
If the brightness is low at 630, a wide zone (ZONEW) is set to Z5 (for example, 200 μm) larger than Z4 at # 640.
m) and proceeds to # 645. # 630 to # 640
Is a process for setting a focusing zone with emphasis on stability over responsiveness when low luminance and reliability are low in the tracking mode.

【0177】#645で前回合焦していたか(FZCF
LGがON)テストし非合焦であった場合は、#650
へ進み今回のデフォーカス量の絶対値(|DEF|)と
狭いゾーン(ZONEN)を比較する。合焦であった場
合は、#680で今回のデフォーカス量の絶対値(|D
EF|)と広いゾーン(ZONEW)を比較する。
At # 645, was the previous focusing (FZCF
LG is ON) If the test is out of focus, # 650
Then, the absolute value (| DEF |) of the current defocus amount is compared with the narrow zone (ZONEN). If it is in focus, the absolute value (| D
EF |) and a wide zone (ZONEW).

【0178】#650及び#680でゾーン外と判定さ
れた場合は#685へ進み非合焦と判定(FZCFLG
をOFF)して、#690で今回のデフォーカス量(D
EF)の符号を判定する。
If it is determined out of the zone in steps # 650 and # 680, the flow advances to step # 685 to determine out of focus (FZCFLG).
OFF), and the current defocus amount (D
The sign of (EF) is determined.

【0179】符号が正(前ピン)の場合は#695へ進
み表示部41の三角マークをアクティブにして前ピン状
態を表示して次のモジュールに進む。符号が負(後ピ
ン)の場合には#700で表示部43の三角マークをア
クティブにして後ピン状態を表示して、次のモジュール
に進む。#650及び#680でゾーン内であると判定
されると#655で合焦フラグ(FZCFLG)をセッ
ト(ON)する。#660でフォーカスモードがワンシ
ョットモード(ONEFLGがON)であるかテスト
し、ワンショットモードでない場合は#675へジャン
プする。
If the sign is positive (previous pin), the flow advances to step # 695 to activate the triangular mark on the display section 41 to display the front focus state and then proceed to the next module. When the sign is negative (back focus), the triangular mark on the display unit 43 is activated in # 700 to display the back focus state, and the process proceeds to the next module. If it is determined in # 650 and # 680 that the area is within the zone, the focusing flag (FZCFLG) is set (ON) in # 655. In step # 660, it is tested whether the focus mode is the one-shot mode (ONEFLG is ON). If not, the process jumps to step # 675.

【0180】ワンショットモードであった場合は#66
5で固定フラグをセット(FIXFLGをON)して以
後の駆動及び表示を固定する。更に#670ではレリー
ズ許可信号(RL)を許可(ON)にしてワンショット
モードでの合焦レリーズ許可をメインCPUに知らせ、
#675へ進む。#675では表示部42の合焦マーク
をアクティブにして合焦を表示して次の(9)AF許可待
機モジュールに進む。
In the case of the one-shot mode, # 66
In step 5, the fixing flag is set (FIXFLG is turned ON), and the subsequent driving and display are fixed. In step # 670, the release permission signal (RL) is permitted (ON) to notify the main CPU of the focus release permission in the one-shot mode.
Go to # 675. In step # 675, the focus mark on the display unit 42 is activated to display the focus, and the process proceeds to the next (9) AF permission standby module.

【0181】図23は(9)AF許可待機モジュールのフ
ローチャートである。#710で追尾モードであるか
(PMDFLGがON)テストし、追尾モードでなかっ
た場合は何もせずに次の(10) 駆動制御モジュールに進
む。追尾モードであった場合は、#715でAF許可信
号(AF)が許可(ON)になるのを待機し、許可にな
らない場合は#710、#715を繰り返す。
FIG. 23 is a flowchart of (9) AF permission standby module. In step # 710, a test is performed to determine whether the mode is the tracking mode (PMDFLG is ON). If the mode is the tracking mode, the process waits for the AF permission signal (AF) to be permitted (ON) in # 715, and if not, repeats # 710 and # 715.

【0182】AF許可信号が許可になると#720に進
みレリーズ中であるか(PCOUNT≠0)テストし、
レリーズ中であった場合は#725で、ミラーフラグ
(MIRFLG)をセット(ON)してミラーアップ前
の状態をセットし、又(10) 駆動制御モジュールにより
駆動が開始されてからリレーズ許可信号(RL)を許可
(ON)するまでの追尾ディレイ状態をセット(PDY
FLGをON)し、それと同時に追尾ディレイ時間T1
を追尾ディレイ(PRSDLY)にセットし#730に
進む。
When the AF permission signal is permitted, the flow advances to step # 720 to test whether or not the release is being performed (PCOUNT # 0).
If the release is in progress, the mirror flag (MIRFLG) is set (ON) in step # 725 to set the state before the mirror is raised, and (10) the relays permission signal ( RL) is set (PDY)
FLG ON), and at the same time, the tracking delay time T1
Is set in the tracking delay (PRSDLY), and the flow advances to # 730.

【0183】#720でリレーズ中でなかった場合は、
#725の処理を行なわず#730に進む。#730で
は追尾動作中であるか(PRSFLGがON)テストし
て追尾動作中である場合は、#375で今回のデフォー
カス量(DEF)を追尾駆動量(DRIV)に置きかえ
て、次の(10) 駆動制御モジュールでデフォーカス量の
かわりに追尾駆動量で駆動が行なわれるようにする。#
730で追尾中でなかった場合はそのまま(10) 駆動制
御モジュールに進む。
If the relays were not being performed in # 720,
The process proceeds to # 730 without performing the process of # 725. In # 730, if the tracking operation is being performed (PRSFLG is ON) and the tracking operation is being performed, the current defocus amount (DEF) is replaced with the tracking drive amount (DRIV) in # 375, and the following ( 10) Make the drive control module drive with the tracking drive amount instead of the defocus amount. #
If tracking is not being performed at 730, the process directly proceeds to (10) drive control module.

【0184】図24は(10) 駆動制御モジュールのフロ
ーチャートである。#740で、AF許可信号(AF)
が許可(ON)かテストし、許可でなかった場合は、#
865から#880の非駆動処理に進む。AF許可信号
が許可であった場合は、#745に進み、AFモードで
あるか(AFMFLGがON)テストする。AFモード
フラグ(AFMFLG)は、装着レンズがAF可能なレ
ンズであり、かつ、フォーカスモードがマニュアルでな
い場合にセットされる。AFモードでなかった場合は、
#865以降の非駆動処理に進む。AFモードであった
場合は、#750で駆動が固定されているか(FIXF
LGがON)テストする。
FIG. 24 is a flowchart (10) of the drive control module. At # 740, an AF permission signal (AF)
Tests whether is permitted (ON), and if not, #
The process proceeds from 865 to the non-drive processing of # 880. If the AF permission signal indicates permission, the flow proceeds to step # 745, and a test is performed to determine whether the AF mode is set (AFMFLG is ON). The AF mode flag (AMFLG) is set when the mounted lens is an AF-capable lens and the focus mode is not manual. If not in AF mode,
The process proceeds to the non-drive processing after # 865. In the case of the AF mode, whether the drive is fixed at # 750 (FIXF
(LG is ON) Test.

【0185】駆動が固定されていた場合、#865以降
の非駆動処理に進む。駆動が固定されていない場合、#
755に進み、合焦しているか(FZCFLGがON)
テストする。
If the driving is fixed, the flow proceeds to the non-driving process after # 865. If the drive is not fixed, #
Go to 755 and check if the camera is in focus (FZCFLG is ON)
Testing.

【0186】合焦している場合は、#865以降の非駆
動処理に進む。合焦していない場合は、#760に進
み、焦点検出不能であるか(LOCFLGがON)テス
トする。焦点検出不能であった場合は、#830以降の
スキャン駆動処理に進む。焦点検出が不能でなかった場
合は、#765以降の駆動処理に進む。#765から#
775は撮影レンズの駆動方向の反転を判定する処理で
あって#765では今回のデフォーカス量(DEF)の
符号と最終のデフォーカス量(DEFLST)の符号を
比較し、異符号であった場合は、#770で駆動反転フ
ラグをセット(REVFLGをON)し、#780に進
む。同符号であった場合は、#775で駆動反転フラグ
をリセット(REVFLGをOFF)して#780に進
む。
If the camera is in focus, the flow advances to the non-drive processing at and after # 865. If the camera is out of focus, the process proceeds to step # 760, and a test is performed to determine whether focus detection is impossible (LOCFLG is ON). If the focus cannot be detected, the process proceeds to the scan drive process after # 830. If the focus detection has not been possible, the process proceeds to the driving process after # 765. From # 765 to #
In step 765, the sign of the current defocus amount (DEF) is compared with the sign of the final defocus amount (DEFLST). Sets the drive inversion flag (REVFLG is turned ON) in # 770, and proceeds to # 780. If the signs are the same, the drive inversion flag is reset (REVFLG is turned off) in # 775, and the flow proceeds to # 780.

【0187】#780では最終デフォーカス量(DEF
LST)を今回のデフォーカス量(DEF)に置きかえ
て更新を行なう。#785では、今回のデフォーカス量
(DEF)に応じた、AFモータの駆動量即わちエンコ
ーダ52からフィードバックされる予定パルス数(ET
M)を次式を用いて計算する。
At # 780, the final defocus amount (DEF
LST) is replaced by the current defocus amount (DEF). In step # 785, the expected number of pulses (ET) fed back from the encoder 52, that is, the driving amount of the AF motor in accordance with the current defocus amount (DEF)
M) is calculated using the following equation.

【0188】 ETM=KL×KB×|DEF| …(8) (8)式において、係数KLは撮影レンズの像面の単位
デフォーカス量あたりのレンズ側カップリング14の回
転数、係数KBはボディ側カップリング53の1回転当
りのエンコーダ52の発生するパルス数を示している。
従って(8)式により、撮影レンズの像面を今回のデフ
ォーカス量(DEF)だけ移動させた時にエンコーダ5
2が発生すべきパルス数が求められるわけである。
ETM = KL × KB × | DEF | (8) In equation (8), the coefficient KL is the number of rotations of the lens-side coupling 14 per unit defocus amount of the image plane of the photographing lens, and the coefficient KB is the body. The number of pulses generated by the encoder 52 per one rotation of the side coupling 53 is shown.
Therefore, according to equation (8), when the image plane of the photographing lens is moved by the current defocus amount (DEF), the encoder 5
That is, the number of pulses for which 2 should be generated is obtained.

【0189】計算された予定パルス数は後述のパルスカ
ウンタ割込の設定値として比較レジスタにセットされ
る。#790ではスキャン駆動でない(SCAFLGを
OFF)とし、#795で今回駆動を行なう(DRVF
LGをON)とし、#800で駆動状態を駆動中(MO
VFLGをON)にする。
The calculated expected number of pulses is set in a comparison register as a set value of a pulse counter interrupt described later. In # 790, scan drive is not performed (SCAFLG is OFF), and in # 795, drive is performed this time (DRVF
LG is turned ON) and the driving state is being driven at # 800 (MO
VFLG is turned ON).

【0190】次に、#805では、駆動開始前に、パル
スカウンタをクリア(ECNT=0)する。#810か
ら#820では今回のデフォーカス量(DEF)の符号
に従って駆動方向を決定し、駆動を開始するための処理
である。#810では今回のデフォーカス量(DEF)
の符号を調べ前ピン(符号が正)の場合は、#815で
AFモータを遠方向へ駆動を開始する。
Next, at # 805, the pulse counter is cleared (ECNT = 0) before the start of driving. Steps # 810 to # 820 are processes for determining the driving direction according to the sign of the current defocus amount (DEF) and starting driving. In # 810, the current defocus amount (DEF)
Is checked, and if it is the previous pin (the sign is positive), the AF motor starts to be driven in the far direction at # 815.

【0191】後ピン(符号が負)の場合は、#820に
進みAFモータを近方向へ駆動を開始する。駆動処理の
最後として、#825でパルスカウンタの割込みを許可
して次の(11) AGC演算モジュールに進む。一方#7
60で焦点検出不能と判定された場合は、#830へ進
み、スキャン禁止中であるか(NSCFLGがON)テ
ストする。
In the case of a rear focus (the sign is negative), the flow proceeds to # 820, and the AF motor starts to be driven in the near direction. At the end of the driving process, the interrupt of the pulse counter is permitted in # 825, and the process proceeds to the next (11) AGC operation module. On the other hand, # 7
If it is determined in step 60 that the focus cannot be detected, the flow advances to step # 830 to test whether scanning is prohibited (NSCFLG is ON).

【0192】#830でスキャン禁止であった場合は、
スキャン駆動を行なわず#865以降の非駆動処理に進
む。
If the scan is prohibited in # 830,
The process proceeds to the non-drive processing after # 865 without performing the scan drive.

【0193】スキャン禁止でなかった場合には、#83
5で現在スキャン中であるか(SCAFLGがON)テ
ストする。スキャン中であった場合は、スキャン駆動開
始処理を行なわず、#860へジャンプする。スキャン
中でなかった場合は、#840から#855のスキャン
駆動開始処理を行なう。#840でスキャン中(SCA
FLGをON)にし、#845で今回駆動を行なう(D
RVFLGをON)とし、#850で駆動中(MOVF
LGをON)とする。
If the scan is not prohibited, # 83
In step 5, it is tested whether scanning is currently being performed (SCAFLG is ON). If a scan is being performed, the process jumps to # 860 without performing the scan drive start process. If the scan is not being performed, a scan drive start process from # 840 to # 855 is performed. Scanning at # 840 (SCA
FLG is turned ON) and the current drive is performed in # 845 (D
RVFLG is turned ON), and driving is being performed at # 850 (MOVF
LG is ON).

【0194】#855では、予め定められた方向へAF
モータの駆動を開始しスキャンを始めるとともに、#8
56でレンズ端カウンタをクリア(LCOUNT=0)
し、#860へ進む。#860では、パルスカウンタの
割込みを禁止して(11) AGC演算モジュールへ進む。
In # 855, AF is performed in a predetermined direction.
Start driving the motor and start scanning.
Clear lens end counter at 56 (LCOUNT = 0)
Then, the process proceeds to # 860. In step # 860, the interruption of the pulse counter is prohibited (11), and the process proceeds to the AGC operation module.

【0195】#740、#745、#750、#75
5、#830より#865に進むとスキャンフラグをリ
セット(SCAFLGをOFF)とする。#870で
は、今回駆動なし(DRVFLGをOFF)とし、#8
75で駆動中でない(MOVFLGをOFF)とする。
非駆動処理の最後として#880でAFモータの駆動を
停止して次のモジュールへ進む。
# 740, # 745, # 750, # 75
5. When the process proceeds from # 830 to # 865, the scan flag is reset (SCAFLG is turned off). In # 870, no drive is performed this time (DRVFLG is turned off), and in # 8
It is assumed that the drive is not being performed (MOVFLG is OFF) at 75.
At the end of the non-drive processing, the drive of the AF motor is stopped at # 880, and the process proceeds to the next module.

【0196】図25は、(11) AGC演算モジュールの
フローチャートである。まず#890で次回のCCDの
蓄積時間(INTT)を(9)式によって計算する。 INTT=INTT×IX/MAX …(9) (9)式において右辺のINTTは今回の蓄積時間、I
XはCCDデータの最大値の目標値、MAXは今回のC
CDデータの最大値である。
FIG. 25 is a flowchart of the (11) AGC operation module. First, at step # 890, the next accumulation time (INTT) of the CCD is calculated by equation (9). INTT = INTT × IX / MAX (9) In equation (9), INTT on the right side is the current accumulation time,
X is the target value of the maximum value of the CCD data, and MAX is the current C value.
This is the maximum value of the CD data.

【0197】(9)式により、次回の蓄積時間(左辺の
INTT)は、次回のCCDデータの最大値が目標値I
Xになるように設定される。#895では、次回の蓄積
時間が所定値IY以上であるか即わち低輝度であるかテ
ストする。所定値IY以上だった場合は、#900へ進
み低輝度フラグをセット(LOLFLGをON)して、
(2)蓄積前処理に戻る。所定値IY以上でなかった場合
は、#905へ進み低輝度フラグをリセット(LOLF
LGをOFF)して、(2)蓄積前処理に戻る。以上の処
理では低輝度であるか否かをCCDの蓄積時間に基づい
て決めているが、メインCPUと通信し、メインCPU
の持っているAE情報(測光情報)をもらって、該情報
に基づいて低輝度であるか否かを決定してもよい。
According to the equation (9), the next accumulation time (INTT on the left side) indicates that the maximum value of the next CCD data is equal to the target value I.
It is set to be X. In # 895, it is tested whether the next accumulation time is equal to or longer than the predetermined value IY, that is, whether the brightness is low. If the value is equal to or more than the predetermined value IY, the process proceeds to step # 900, where a low-luminance flag is set (LOLFLG is turned on).
(2) Return to pre-storage processing. If the value is not equal to or greater than the predetermined value IY, the process proceeds to step # 905, where the low luminance flag is reset (LOLF
LG is turned off), and the process returns to (2) pre-storage processing. In the above processing, whether or not the brightness is low is determined based on the accumulation time of the CCD.
AE information (photometric information) held by the user may be determined based on the information.

【0198】又、IYは所定値に定められているが、前
回低輝度であったか否かにより、所定中のヒステリシス
を設けてもよい。以上がメインプログラムの蓄積演算及
び駆動の一周期であり、この処理がくり返されることに
なる。
Although IY is set to a predetermined value, a predetermined hysteresis may be provided depending on whether or not the luminance was low last time. The above is one cycle of the accumulation calculation and driving of the main program, and this processing is repeated.

【0199】図26は、タイマー割込プログラムのフロ
ーチャートである。タイマー割込プログラムは、メイン
プログラム動作中に一定時間毎に起動されて処理が行な
われる。#910から#925はAFモードフラグ(A
FMFLG)を更新するための処理である。
FIG. 26 is a flowchart of the timer interrupt program. The timer interrupt program is activated and executed at regular intervals during the operation of the main program. # 910 to # 925 are the AF mode flags (A
FMFLG) is updated.

【0200】#910では装着レンズがAFレンズであ
るか(AFLFLGがON)テストする。AFレンズで
あった場合は、#915に進みフォーカスモード信号
(FM)がワンショットAF又は連続AFであるか(C
又はO)テストする。ワンショットAF又は連続AFで
あった場合は、#920へ進み、AFモードフラグ(A
FMFLG)をセット(ON)にし、#930に進む。
#910でAFレンズでなかった場合、及び#915で
フォーカスモード信号(FM)がマニュアルモードであ
った場合は、#925に進みAFモードフラグ(AFM
FLG)をリセット(OFF)し、#930に進む。
In step # 910, a test is performed to determine whether the mounted lens is an AF lens (AFLFLG is ON). If the lens is an AF lens, the flow advances to step # 915 to determine whether the focus mode signal (FM) is one-shot AF or continuous AF (C
Or O) Test. If it is one-shot AF or continuous AF, the process proceeds to # 920, and the AF mode flag (A
FMFLG) is set (ON), and the flow advances to # 930.
If the AF lens is not the AF lens in # 910 and if the focus mode signal (FM) is in the manual mode in # 915, the process proceeds to # 925 and the AF mode flag (AFM)
FLG) is reset (OFF), and the flow proceeds to # 930.

【0201】#930から#940の処理は、ワンショ
ットフラグを更新するための処理であって、#930で
フォーカスモード信号(FM)がワンショットAFモー
ドであるかテストする。ワンショットモードであった場
合は、ワンショットフラグをセット(ONEFLGをO
N)し、#945に進む。
The processing from # 930 to # 940 is for updating the one-shot flag. In # 930, it is tested whether the focus mode signal (FM) is in the one-shot AF mode. If the mode is the one-shot mode, the one-shot flag is set (ONEFLG is set to O
N) and proceed to # 945.

【0202】ワンショットモードでなかった場合は、ワ
ンショットフラグをリセット(ONEFLGをOFF)
し、#945に進む。#945から#1005のブロッ
クは追尾モードにおける全押、追尾ディレイ、ミラーア
ップ処理である。#945から#965では追尾モード
であるか否かの判定を行なう処理であって、#945で
は駒速モード信号(DM)が通常連続撮影(C2)であ
るかテストし、C2でない場合は非追尾モードとして#
965へ進む。
If the mode is not the one-shot mode, the one-shot flag is reset (ONEFLG is turned off)
Then, the process proceeds to # 945. Blocks # 945 to # 1005 are the full-press, tracking delay, and mirror-up processing in the tracking mode. In steps # 945 to # 965, a determination is made as to whether or not the tracking mode is set. In step # 945, the frame speed mode signal (DM) is tested for normal continuous shooting (C2). # As tracking mode
Proceed to 965.

【0203】通常連続撮影(C2)であった場合は、#
950へ進み、AFモードであるか(AFMFLGがO
N)テストする。AFモードでなかった場合は、非追尾
モードとして#965へ進む。AFモードであった場合
は、#955へ進み、ワンショットモードであるか(O
NEFLGがON)テストする。
In the case of normal continuous shooting (C2), #
Proceed to 950 to check if the AF mode is set (AFMFLG is O
N) Test. If not in the AF mode, the process proceeds to # 965 as the non-tracking mode. If the AF mode has been set, the process proceeds to # 955, and whether the mode is the one-shot mode (O
NEFLG is ON).

【0204】ワンショットモードであった場合は、非追
尾モードとして#965へ進む。ワンショットモードで
なかった場合は、追尾モードとして#960へ進む。結
局フォーカスモードが連続AFで駒速モードがC2でか
つ装着レンズがAFレンズの場合に、#960へ進み、
追尾モードがセット(PMDFLGがON)され、その
後、追尾モードの処理が行なわれる。
If the mode is the one-shot mode, the flow proceeds to # 965 as the non-tracking mode. If the mode is not the one-shot mode, the process proceeds to # 960 as the tracking mode. After all, when the focus mode is the continuous AF, the frame speed mode is C2, and the attached lens is the AF lens, the process proceeds to # 960,
The tracking mode is set (PMDFLG is ON), and thereafter, processing in the tracking mode is performed.

【0205】一方、それ以外のモードの組み合わせで
は、非追尾モードと追尾モードをリセット(PMDFL
GをOFF)し、追尾モードの処理を行なわず、#10
10のミラーアップ処理に進む。#960で追尾モード
がセットされると、#970でレリーズボタン信号(R
S)が全押し(ON)かテストし、全押しされている場
合は、#975の追尾モードの全押処理を抜かして#9
80へ進む。
On the other hand, in other combinations of modes, the non-tracking mode and the tracking mode are reset (PMDFL
G is turned OFF), and the tracking mode processing is not performed.
The process proceeds to mirror-up processing of No. 10. When the tracking mode is set in # 960, the release button signal (R
S) is fully pressed (ON), and if it is fully pressed, the full-press processing in the tracking mode of # 975 is skipped and # 9 is skipped.
Go to 80.

【0206】全押しされていない場合は、#975で追
尾ディレイフラグをリセット(PDYFLGをOFF)
ミラーフラグをリセット(MIRFLGをOFF)、レ
リーズ許可信号(RL)を禁止(OFF)として、追尾
モードにおいての全押中の動作をリセットする。#98
0から#995は追尾モードにおける追尾ディレイ時間
の計時及び追尾ディレイ終了時のレリーズ許可を行なう
処理である。
If not fully depressed, the tracking delay flag is reset in # 975 (PDYFLG is turned off)
The mirror flag is reset (MIRFLG is turned off), the release permission signal (RL) is prohibited (OFF), and the operation during full pressing in the tracking mode is reset. # 98
Steps 0 to # 995 are processes for timing the tracking delay time in the tracking mode and for permitting release at the end of the tracking delay.

【0207】#980で追尾ディレイ中であるか(PD
YFLGがON)テストし、追尾ディレイ中でない場合
は#985以降の処理は行なわず、#1000へ進む。
追尾ディレイ中であった場合は、#985で追尾ディレ
イ時間を1だけ減ずる(PRSDLY=PRSDLY−
1)。例えばタイマー割込が1ms毎にかかり追尾ディレ
イ時間が45msであった場合には、(9)AF許可待機モ
ジュールでPRSDLY=45にセットされ、これがタ
イマー割込ごとに1だけ減ぜられるので45ms後に0と
なる。
Whether tracking delay is in progress at # 980 (PD
If YFLG is ON) and the tracking is not being delayed, the processing after # 985 is not performed, and the process proceeds to # 1000.
If the tracking delay is being performed, the tracking delay time is reduced by 1 in # 985 (PRSDLY = PRSDLY-
1). For example, if the timer interruption is performed every 1 ms and the tracking delay time is 45 ms, (9) PRDLY = 45 is set in the AF permission standby module, and this is reduced by 1 for each timer interruption. It becomes 0.

【0208】#990では、追尾ディレイの終了(PR
SDLY=0)をテストし、終了でない場合には、#1
000へ抜ける。
At # 990, the tracking delay ends (PR
(SDLY = 0), and if not finished, # 1
000.

【0209】終了の場合は、#995でディレイ終了処
理を行ない追尾ディレイフラグをリセット(PDYFL
GをOFF)するとともにレリーズ許可信号(RL)を
許可(ON)にして、メインCPUに対してレリーズ許
可を伝え、#1000へ進む。#1000と#1005
は追尾モードにおけるミラーアップ処理であって、#1
000でミラーアップ信号(MR)がアップ(ON)か
テストしダウンの場合は、そのまま#1010へ抜け
る。
In the case of termination, a delay termination process is performed in # 995, and the tracking delay flag is reset (PDYFL).
G is turned off), the release permission signal (RL) is permitted (ON), the release permission is transmitted to the main CPU, and the routine proceeds to # 1000. # 1000 and # 1005
Is a mirror-up process in the tracking mode, and # 1
If the mirror up signal (MR) is up (ON) at 000 and it is down, the process directly goes to # 1010.

【0210】アップの場合は、#1005でミラーフラ
グをリセット(MIRFLGをOFF)して、(2)蓄積
前処理モジュールで、ミラーアップ後の処理へ進むこと
を可能にするとともに、これ以降のレリーズを禁止する
ために、レリーズ許可信号(RL)を禁止(OFF)に
して#1010へ進む。#1010から#1050はミ
ラーアップ処理のブロックであり、#1010でミラー
アップ信号(MR)がアップ(ON)かテスト、ダウン
の場合は、#1055でミラーアップフラグをリセット
(RLSFLGをOFF)し、ミラーダウン中として、
#1060へ抜ける。ミラーアップ中の場合は、ワンシ
ョットモードでの合焦による駆動表示の固定及びレリー
ズ許可を1回撮影動作(ミラーアップ)が行なわれるこ
とにより解除するために、#1050で固定フラグをリ
セット(FIXFLGをOFF)しレリーズ許可信号
(RL)を禁止(OFF)にする。
In the case of up, the mirror flag is reset (MIRFLG is turned off) in # 1005, and (2) the pre-storage module can proceed to the processing after mirror up, and the subsequent release , The release permission signal (RL) is prohibited (OFF), and the routine proceeds to # 1010. # 1010 to # 1050 are blocks for the mirror-up process. If the mirror-up signal (MR) is up (ON) in # 1010 and the test is down, in step # 1055, the mirror-up flag is reset (RLSFLG is turned off) in # 1055. , As if the mirror is down
Exit to # 1060. If the mirror is being raised, the fixed flag is reset (FIXFLG) in # 1050 in order to release the drive display fixed by focusing in the one-shot mode and the release permission by performing one shooting operation (mirror up). To OFF), and the release permission signal (RL) is prohibited (OFF).

【0211】#1020では前回のタイマー割込時にミ
ラーアップ中であるか(RLSFLGがON)テスト
し、ミラーアップ中の場合は、そのまま#1060へ抜
ける。
At step # 1020, it is tested whether the mirror is up at the time of the previous timer interruption (RLSFLG is ON). If the mirror is up, the process directly goes to step # 1060.

【0212】前回ミラーダウン中の場合は、前回と今回
のタイマー割込の間にミラーがダウンからアップを開始
したので、図4に示したようにこれに同期して駆動ディ
レイを始める。#1025では、ミラーアップフラグを
セット(RLSFLGをON)し、ミラーアップ中とし
て#1030では現在駆動中であるか(MOVFLGが
ON)テストする。停止中の場合には駆動ディレイの必
要はないので、#1060へ抜ける。駆動中の場合は、
#1035でディレイフラグをセット(DLYFLGを
ON)して駆動ディレイ状態に入り、次に#1040で
は、追尾モードであるか(PMDFLGがON)テスト
する。
If the mirror was down last time, the mirror started to move up from down during the previous and current timer interrupts, so that the drive delay is started in synchronization with this as shown in FIG. In # 1025, the mirror-up flag is set (RLSFLG is turned on), and as a mirror-up, a test is performed in # 1030 as to whether the mirror is currently being driven (MOVFLG is on). If it is stopped, there is no need for a drive delay, so the flow goes to # 1060. When driving,
In # 1035, the delay flag is set (DLYFLG is turned on) to enter the drive delay state. Next, in # 1040, a test is performed to determine whether the mode is the tracking mode (PMDFLG is ON).

【0213】追尾モードであった場合は、駆動が終了し
た時点でちょうどメインCPUによるミラーアップ動作
が終了し、露光が開始されるように、ディレイ時間を所
定値T2(DLY=T2)に設定し、#1060へ進
む。
In the case of the tracking mode, the delay time is set to a predetermined value T2 (DLY = T2) so that the mirror-up operation by the main CPU is completed at the time when the driving is completed, and the exposure is started. , Proceed to # 1060.

【0214】一方、追尾モードでなかった場合は、メイ
ンCPUのミラーアップ動作終了以前に駆動が終了する
ようにディレイ時間を所定値T0(DLY=T0、T0
<T2)に設定し、#1060へ進む。#1060から
#1070はAF許可信号が禁止になった時のモータ停
止処理である。
On the other hand, when the mode is not the tracking mode, the delay time is set to a predetermined value T0 (DLY = T0, T0) so that the driving ends before the mirror-up operation of the main CPU ends.
<T2), and the process proceeds to # 1060. Steps # 1060 to # 1070 are motor stop processing when the AF permission signal is disabled.

【0215】#1060ではAF許可信号(AF)が許
可(ON)であるかテストし、許可の場合は、停止処理
は行なわず、#1075へ抜ける。禁止の場合は、#1
065で現在AFモータが駆動中であるかテストし、停
止中の場合は、停止処理は行なわず、#1075へ抜け
る。駆動中の場合は、#1070でAFモータの駆動を
停止するとともに駆動状態フラグをリセット(MOVF
LGをOFF)して#1075へ進む。#1075から
#1090は駆動ディレイ時間の計時及びディレイ終了
処理のブロックである。
At step # 1060, it is tested whether the AF permission signal (AF) is permitted (ON). If the signal is permitted, the process goes to step # 1075 without stopping. If prohibited, # 1
In step 065, it is tested whether the AF motor is currently being driven. If the AF motor is stopped, the process goes to # 1075 without performing the stop process. If the motor is being driven, the driving of the AF motor is stopped at # 1070 and the driving state flag is reset (MOVF
LG is turned off), and the process proceeds to # 1075. Steps # 1075 to # 1090 are blocks for timing of the drive delay time and delay end processing.

【0216】#1075で駆動ディレイ中であるか(D
LYFLGがON)テストし、ディレイ中でない場合
は、そのまま#1095へ抜ける。ディレイ中である場
合は、#1080で駆動ディレイ時間を1だけ減ずる
(DLY=DLY−1)。タイマー割込が1ms毎にかか
り、ディレイ時間が55msであった場合には、DLY=
55が#1045でセットされ、これがタイマー割込ご
とに1だけ減ぜられるので55ms後に0になる。#10
85では、駆動ディレイが終了したか(DLY=0)テ
ストし、終了していない場合にはそのまま、#1095
へ抜ける。終了した場合には、#1090でAFモータ
の駆動を停止するとともに、駆動ディレイフラグをリセ
ット(DLYFLGをOFF)、駆動状態フラグをリセ
ット(MOVFLGをOFF)して、#1095へ進
む。
Whether the drive delay is being performed at # 1075 (D
LYFLG is ON). If the test is not in progress, the process directly goes to # 1095. If the delay is in progress, the drive delay time is reduced by 1 in # 1080 (DLY = DLY-1). If the timer interrupt is taken every 1 ms and the delay time is 55 ms, DLY =
55 is set at # 1045, which is decremented by 1 for each timer interrupt, so that it becomes 0 after 55 ms. # 10
In step 85, it is tested whether the drive delay has been completed (DLY = 0).
Exit. When the process is completed, the driving of the AF motor is stopped in # 1090, the driving delay flag is reset (DLYFLG is turned off), the driving state flag is reset (MOVFLG is turned off), and the process proceeds to # 1095.

【0217】#1095から#1125はレンズ端処理
のブロックで通常の駆動においてはレンズ端でのモータ
停止及びスキャン駆動においてはレンズ端での駆動反転
を行なう。#1095でレンズ端であるか(ECNT=
ELST)テストする。タイマー割込は所定時間毎に行
なわれるので、レンズ端においてパルスが発生しない場
合には、パルスカウンタの内容が増加せず、前回のタイ
マー割込等のパルスカウンタの内容(ELST)と今回
のタイマー割込時のパルスカウンタの内容(ECNT)
が一致する。
Steps # 1095 to # 1125 are lens end processing blocks which stop the motor at the lens end in normal driving and invert the drive at the lens end in scan driving. In # 1095, is it the lens end (ECNT =
ELST) test. Since the timer interrupt is performed at predetermined time intervals, if no pulse is generated at the lens end, the contents of the pulse counter do not increase, and the contents of the pulse counter (ELST) such as the previous timer interrupt and the current timer are used. Contents of pulse counter at interrupt (ECNT)
Matches.

【0218】従って、パルスカウンタ内容の一致不一致
に従ってレンズ端か否かの判定ができる。#1095で
レンズ端でなかった場合には、#1115へ抜ける。レ
ンズ端であった場合は、#1100でスキャン中である
か(SCAFLGがON)テストする。スキャン中でな
い場合は、#1125の停止処理に進む。スキャン中の
場合は、#1105でレンズ端に到達した回数が所定値
LX(例えば2)となっている(LCOUNT=LX)
テストする。所定値LXになっいる場合は、スキャンが
終了したと判断して、#1120へ進み、スキャンフラ
グをリセット(SCAFLGをOFF)、スキャン禁止
フラグをセット(NSCFLGをON)にして、スキャ
ン終了処理を行ない、#1125へ進む。
Therefore, it can be determined whether or not the lens is at the lens end in accordance with the coincidence or non-coincidence of the contents of the pulse counter. If it is not the lens end in # 1095, the process goes to # 1115. If it is at the lens end, a test is performed at # 1100 to determine whether scanning is in progress (SCAFLG is ON). If the scanning is not being performed, the process proceeds to stop processing of # 1125. In the case of scanning, the number of times of reaching the lens end in # 1105 is a predetermined value LX (for example, 2) (LCOUNT = LX).
Testing. If the predetermined value LX has been reached, it is determined that the scan has been completed, and the process proceeds to # 1120, where the scan flag is reset (SCAFLG is turned off), the scan prohibition flag is set (NSCFLG is turned on), and the scan end processing is performed. And proceed to # 1125.

【0219】#1125は、通常駆動におけるレンズ端
及びスキャン終了時に実行されAFモータの駆動を停止
するとともに、駆動状態フラグをリセット(MOVFL
GをOFF)し、#1130へ進み、メインプログラム
へリターンする。一方、#1105でレンズ端カウンタ
が所定値LXに達していない場合にはスキャン駆動方向
を反転するために#1110へ進み、レンズ端カウンタ
の内容を1だけ増加させ(LCOUNT=LCOUNT
+1)AFモータの駆動方向を反転させ、#1115に
進む。
Step # 1125 is executed at the lens end in normal driving and at the end of scanning to stop driving of the AF motor and reset the driving state flag (MOVFL).
G is turned off), and the program proceeds to # 1130 and returns to the main program. On the other hand, if the lens end counter has not reached the predetermined value LX in # 1105, the process proceeds to # 1110 to reverse the scan driving direction, and the content of the lens end counter is increased by 1 (LCOUNT = LCOUNT).
+1) The driving direction of the AF motor is reversed, and the flow proceeds to # 1115.

【0220】#1115では、最終パルスカウンタの内
容を更新(ELST=ECNT)して#1130でメイ
ンプログラムへリターンする。
At # 1115, the content of the last pulse counter is updated (ELST = ECNT), and the program returns to # 1130 at # 1130.

【0221】図27は、パルスカウンタ割込プログラム
のフローチャートである。パルスカウンタ割込は、エン
コーダ52の発生するパルスの累積数(ECNT)が
(10) 駆動制御モジュールで計算した予定パルス数(E
TM)に一致した時に行なわれる割込であって、撮影レ
ンズの合焦位置への移動が完了した後のAFモータの駆
動停止処理を行なう。
FIG. 27 is a flowchart of the pulse counter interrupt program. The pulse counter interrupt indicates that the cumulative number of pulses (ECNT) generated by the encoder 52 is the expected number of pulses (E) calculated by the drive control module (10).
TM), which is an interruption that is performed when the movement of the photographing lens to the in-focus position is completed.

【0222】#1140では、AFモータの駆動を停止
し、#1145で駆動状態フラグをリセット(MOVF
LGをOFF)して、#1150でこれ以降のパルスカ
ウンタ割込がかからないように割込を禁止して#115
5で、メインプログラムにリターンする。
At # 1140, the driving of the AF motor is stopped, and at # 1145, the driving state flag is reset (MOVF
LG is turned off), and in step # 1150, the interruption is inhibited so that the subsequent pulse counter interruption does not occur.
At 5, return to the main program.

【0223】以上が、AFCPUのメインプログラムの
各モジュール及び割込プログラムの説明であり、各モジ
ュール及び割込プログラムが連結して、焦点検出及びA
Fモータの駆動が制御される。本実施例の説明において
は、AFCPUのプログラムの(7)追尾アルゴリズムに
おいて、今回の追尾デフォーカス量と前回の追尾デフォ
ーカス量の和の絶対値(|PRED+PLST|)と所
定値δを比較して追尾動作を行なうか否かを決定してい
た(#490の分岐)。
The above is the description of each module of the main program of the AFCPU and the interrupt program.
The driving of the F motor is controlled. In the description of the present embodiment, in the (7) tracking algorithm of the AFCPU program, the absolute value (| PRED + PLST |) of the sum of the current tracking defocus amount and the previous tracking defocus amount is compared with a predetermined value δ. It has been determined whether or not to perform a tracking operation (branch of # 490).

【0224】上記のようにして、移動被写体であるか否
かを判定し、それに応じて追尾動作を行なうか否かを決
定する理由について以下詳細に説明する。従来、被写体
が移動しているか否かの判定は、過去及び現在のデフォ
ーカス量に基づいて、デフォーカス検出のサイクルの間
の被写体移動を加味したデフォーカス量として現在の追
尾デフォーカス量を求め、該現在の追尾デフォーカス量
と所定値とを比較することにより行なわれていた。
The reason for determining whether or not the subject is a moving subject and determining whether or not to perform a tracking operation in accordance with the determination will be described below in detail. Conventionally, whether or not a subject is moving is determined based on the past and current defocus amounts by calculating a current tracking defocus amount as a defocus amount taking into account subject movement during a cycle of defocus detection. This is performed by comparing the current tracking defocus amount with a predetermined value.

【0225】例えば、現在の追尾デフォーカス量PRE
D(0)、所定値δとする|PRED(0)|≧δの場
合は、移動被写体と判定し、|PRED(0)|<δの
場合は移動被写体でないと判定する。
For example, the current tracking defocus amount PRE
When D (0) is a predetermined value δ, if | PRED (0) | ≧ δ, it is determined that the object is a moving object. If | PRED (0) | <δ, it is determined that the object is not a moving object.

【0226】図28を用いて、従来の追尾動作及び移動
被写体の判定について説明する。図28において実線は
移動被写体に対してその像を常時フィルム面へ合致させ
るための撮影レンズの動きの軌跡を示し、一点鎖線は実
際の撮影レンズの動きの軌跡を示し、又焦点検出のため
のセンサーの電荷蓄積及び焦点検出演算は撮影レンズを
停止して行なうとともに、センサーの電荷蓄積(図28
においては蓄積時間T(0))は駆動終了後すぐに行な
われるものとしている。
With reference to FIG. 28, a conventional tracking operation and determination of a moving subject will be described. In FIG. 28, the solid line shows the trajectory of the movement of the photographing lens for constantly matching the image of the moving subject to the film surface, the dashed line shows the trajectory of the actual movement of the photographing lens, and The charge accumulation and the focus detection calculation of the sensor are performed while the photographing lens is stopped, and the charge accumulation of the sensor (FIG. 28)
In (2), the accumulation time T (0) is set immediately after the driving is completed.

【0227】追尾動作におていは撮影レンズの駆動量は
焦点検出により得られたデフォーカス量に、追尾補正量
を加えて求めており、例えば図において現在より1回前
の駆動においてその駆動量DRIV(−1)は1回前の
デフォーカス量DEF(−1)(図において実線と一点
鎖線の差に相当する)と1回前の追尾補正量COMP
(−1)の和として算出される。又駆動が終了した時点
で得られる現在のデフォーカス量DEF(0)と前回の
追尾補正量COMP(−1)の和である追尾デフォーカ
ス量PRED(0)は図より明らかなように焦点検出の
1サイクル(前回のセンサー蓄積から今回のセンサー蓄
積までの周期)に実線で示す撮影レンズの動き量即ち被
写体の移動量に対応しており、追尾デフォーカス量PR
ED(0)の絶対値が所定値以上あることをもって被写
体が移動していると判定することができるわけである。
In the tracking operation, the driving amount of the photographing lens is obtained by adding the tracking correction amount to the defocus amount obtained by the focus detection. For example, in FIG. DRIV (-1) is the previous defocus amount DEF (-1) (corresponding to the difference between the solid line and the dashed line in the figure) and the previous tracking correction amount COMP.
It is calculated as the sum of (-1). Further, the tracking defocus amount PRED (0), which is the sum of the current defocus amount DEF (0) obtained at the time of completion of the driving and the previous tracking correction amount COMP (-1), is as shown in FIG. Corresponds to the moving amount of the photographing lens indicated by the solid line, that is, the moving amount of the subject, which is indicated by a solid line in one cycle (the period from the previous sensor accumulation to the current sensor accumulation).
When the absolute value of ED (0) is equal to or larger than a predetermined value, it can be determined that the subject is moving.

【0228】しかしながら、上記のようにして現在の追
尾デフォーカス量を単独で所定値と比較することによ
り、移動被写体の判定を行なうと、デフォーカス量DE
F(0)に含まれる誤差のために誤判定してしまうこと
があった。特に被写体の動きが微小な場合には、追尾デ
フォーカス量PRED(0)に占める誤差の割合が相対
的に大きくなるため、被写体が一定の動きをしていても
追尾動作に入ったり抜けたりをくり返し撮影レンズの動
きが不安定になってしまった。
However, when the moving subject is determined by comparing the current tracking defocus amount alone with a predetermined value as described above, the defocus amount DE
In some cases, an erroneous determination was made due to an error included in F (0). In particular, when the movement of the subject is minute, the ratio of the error in the tracking defocus amount PRED (0) becomes relatively large. The movement of the photographic lens has become unstable repeatedly.

【0229】又上記のように、現在の追尾デフォーカス
量を単独で所定値と比較すると被写体の動きの量を検知
するサイクルが1サイクルだけの短かいものとなるの
で、被写体のランダムノイズ的な動きに影響されて被写
体移動の判定を誤まったり、微小な被写体の動きを検出
できなかった。又焦点検出サイクルが変動した場合に
も、その変動の影響を受けて誤判定してしまう可能性が
高かった。
Further, as described above, when the current tracking defocus amount alone is compared with a predetermined value, the cycle for detecting the amount of movement of the subject is as short as one cycle. A decision on the movement of the subject was erroneously made due to the movement, and a minute movement of the subject could not be detected. Further, even when the focus detection cycle fluctuates, there is a high possibility that an erroneous determination is made under the influence of the fluctuation.

【0230】本実施例では上述の従来の問題点を解決す
るために追尾デフォーカス量を単独に所定値と比較せず
に、前述のように今回の追尾デフォーカス量と前回の追
尾デフォーカス量の和をとってその絶対値と所定値δを
比較して、移動被写体の判定を行なうことにより、追尾
デフォーカス量に含まれる誤差、被写体のランダムノイ
ズ的動き、焦点検出サイクルの変動等の影響を統計的に
軽減し、安定な動作を可能にしているわけである。
In this embodiment, in order to solve the above-mentioned conventional problem, the tracking defocus amount is not compared with a predetermined value alone, and the current tracking defocus amount and the previous tracking defocus amount are used as described above. By comparing the absolute value and the predetermined value δ to determine the moving subject, the influence of errors included in the tracking defocus amount, random noise-like motion of the subject, fluctuations of the focus detection cycle, etc. Is statistically reduced to enable stable operation.

【0231】一般的には実施例の#490の処理のかわ
りに追尾デフォーカス量に対して統計平均処理を施こし
た結果と、所定値δとを比較することにより移動被写体
の判定を行なうことができる。例えば今回の追尾デフォ
ーカス量をPRED(0)、今回からn回前の追尾デフ
ォーカス量をPRED(n)(nは正の整数)とした
時、(10)式に示すような統計処理を施こした判定を
#490で行ってもかまわない。
Generally, a moving subject is determined by comparing a result obtained by performing a statistical averaging process on the tracking defocus amount instead of the process of # 490 in the embodiment with a predetermined value δ. Can be. For example, when the current tracking defocus amount is PRED (0) and the tracking defocus amount n times before this time is PRED (n) (n is a positive integer), a statistical process as shown in Expression (10) is performed. The determination made may be made in # 490.

【0232】 |k(0)×PRED(0)+k(1)×PRED(1)+・・・・ +k(n)×PRED(n)+・・・・k(N)×PRED(N)|>δ …(10) (10)式においてk(n)は所定の重み係数、Nは任
意の整数である。実施例は(10)式においてN=1、
k(0)=k(1)=1とした場合である。
| K (0) × PRED (0) + k (1) × PRED (1) +... + K (n) × PRED (n) +... K (N) × PRED (N) |> Δ (10) In equation (10), k (n) is a predetermined weighting factor, and N is an arbitrary integer. In the embodiment, N = 1 in the equation (10),
This is the case where k (0) = k (1) = 1.

【0233】(10)式において任意の整数Nを適当に
選ぶことにより、被写体の移動量を検出するための期間
(N×サイクルタイム)を選択することができる。又重
み係数k(n)は最新の追尾デフォーカス量により重み
を付けて応答性を高めるために(11)式のように設定
してもよい。 k(0)>k(1)>…k(n)>…>k(N) …(11) 又重み係数k(N)を追尾デフォーカス量PRED
(n)を算出した時のデフォーカス量演算で求められた
パラメータSLOP(n)やコントラスト値CONT
(n)に比例して(12)式の如く設定してもよい。
By appropriately selecting an arbitrary integer N in the equation (10), a period (N × cycle time) for detecting the moving amount of the subject can be selected. Also, the weight coefficient k (n) may be set as in equation (11) in order to increase the responsiveness by weighting with the latest tracking defocus amount. k (0)> k (1)>... k (n) >>...> k (N) (11) Also, the weighting coefficient k (N) is determined by the tracking defocus amount PRED.
The parameter SLOP (n) and the contrast value CONT obtained by the defocus amount calculation at the time of calculating (n)
It may be set as in equation (12) in proportion to (n).

【0234】 k(n)=k×SLOP(n)又はk×CONT(n) …(12) (12)式においてkは所定の定数である。(12)式
のように設定することにより追尾デフォーカス量が信頼
度に比例した重み付けで平均化されるので、より確度の
高い移動被写体の判定ができる。又、追尾デフォーカス
量PRED(n)が求められる場合の焦点検出サイクル
タイム(図28において1回の駆動が終了した時点から
次の駆動が終了した時点に相当する)の変動をキャンセ
ルするために各サイクルタイムT(n)を測定しこれを
用いて(13)式のように、重み係数k(n)を決める
こともできる。
K (n) = k × SLOP (n) or k × CONT (n) (12) In the equation (12), k is a predetermined constant. By setting as in equation (12), the tracking defocus amount is averaged with a weight proportional to the reliability, so that a moving object with higher accuracy can be determined. Also, in order to cancel the fluctuation of the focus detection cycle time (corresponding to the time when one drive ends in FIG. 28 from the time when the next drive ends) when the tracking defocus amount PRED (n) is obtained. Each cycle time T (n) can be measured and used to determine the weighting coefficient k (n) as in equation (13).

【0235】[0235]

【数7】 (Equation 7)

【0236】(13)式においてkは所定の定数であ
る。(13)式のように設定し、(10)式の統計平均
処理を行なうことにより各重み係数×追尾デフォーカス
量は単位時間当りの追尾デフォーカス量となるのでサイ
クルタイムの変動の影響のないものとなる。
In the equation (13), k is a predetermined constant. By setting as shown in equation (13) and performing the statistical averaging processing of equation (10), each weighting factor × tracking defocus amount becomes the tracking defocus amount per unit time, so there is no influence of cycle time fluctuation. It will be.

【0237】上述のように追尾デフォーカス量に統計平
均処理を行ないその結果に応じて、移動被写体であるか
否かの判定を行うことにより、追尾デフォーカス量に含
まれる誤差、被写体のランダムノイズ的動き、焦点検出
サイクルの変動(特に追尾中に撮影動作が途中から入っ
た場合等に起こる)の影響を軽減し安定な追尾動作を可
能にするとともに、上記誤差の影響が軽減した分所定値
δを小さく設定でき従ってより微小な被写体の動きに対
しても移動被写体と判定して追尾動作に入れることがで
き追尾性能の向上が期待できる。
As described above, the statistical averaging process is performed on the tracking defocus amount, and it is determined whether or not the subject is a moving subject. And the fluctuation of the focus detection cycle (especially when the shooting operation enters the middle during the tracking etc.) to reduce the influence of the error, and reduce the influence of the error. Therefore, δ can be set small, so that the movement of a finer subject can be determined as a moving subject and can be included in the tracking operation, so that improvement in tracking performance can be expected.

【0238】本発明の特徴の1つに、レリーズ全押後
は、レンズ駆動開始から第1所定時間T1後にミラーア
ップを開始させ、レンズ駆動時間の多少によらずに露光
の周期、蓄積の周期等のサイクルタイムを一定に保ち、
常に露光の瞬間にピントの合った写真がとれる追尾技術
があり、その点について追加的な説明を行なう。連写中
の追尾動作については、次の様なシークエンスとなる。
即わち、ミラーアップ、露光、ミラーダウン、電荷蓄
積、演算、レンズ駆動がくり返される。このうちミラー
アップとミラーダウンの時間50〜100msは同一機種
では常に一定で変動しない。又露光時間は連写中はほぼ
一定であるし、そもそも追尾を行なう明るい条件では時
間的に短く30ms程度以下なのでバラツキには寄与しな
い。又蓄積時間も被写体の明るさに依存するが連写中は
ほぼ一定であり、通常の明るさでは30ms程度以下なの
でバラツキへの寄与は小さい。演算時間もその焦点検出
システムにより多少ことなるが20ms〜100msの間の
一定値となり、連写中のバラツキは小さい。
One of the features of the present invention is that after the release is fully depressed, the mirror-up operation is started after a first predetermined time T1 from the start of the lens driving, and the exposure period and the accumulation period are independent of the lens driving time. Etc. keep the cycle time constant,
There is a tracking technology that can always take a focused picture at the moment of exposure, and I will give an additional explanation on that point. The tracking operation during continuous shooting has the following sequence.
That is, mirror up, exposure, mirror down, charge accumulation, calculation, and lens driving are repeated. Among these, the mirror up and mirror down times 50 to 100 ms are always constant and do not fluctuate in the same model. Also, the exposure time is substantially constant during continuous shooting, and does not contribute to variation since it is short in time and about 30 ms or less under bright conditions for tracking. The accumulation time also depends on the brightness of the subject, but is substantially constant during continuous shooting, and has a small contribution to variation because it is about 30 ms or less at normal brightness. Although the calculation time varies somewhat depending on the focus detection system, the calculation time is a constant value between 20 ms and 100 ms, and the variation during continuous shooting is small.

【0239】これに対してレンズの駆動時間は追尾のた
めに駆動するデフォーカス量に応じて0ms〜100ms以
上の範囲で変動する。ミラーアップ、露光、ミラーダウ
ン、蓄積、演算、レンズ駆動、で1サイクルとし従来通
りシークエンスを組むと次のサイクルに関するミラーア
ップ開始は前回のレンズ駆動終了後となる。1サイクル
の時間がおよそ300ms前後(秒3コマ)とすると駆動
の時間の長短で1サイクルの時間が例えば250ms〜3
50msと大きく変動する可能性が生まれる。
On the other hand, the lens driving time varies in the range of 0 ms to 100 ms or more depending on the amount of defocus to be driven for tracking. If one cycle is comprised of mirror up, exposure, mirror down, accumulation, calculation, and lens drive, and a sequence is formed as before, the mirror up for the next cycle starts after the previous lens drive ends. Assuming that one cycle time is about 300 ms (three frames per second), one cycle time is, for example, 250 ms to 3 depending on the length of driving time.
There is a possibility that it may fluctuate as much as 50 ms.

【0240】追尾においては次回の露光の瞬間に合焦状
態になるように次の方法を用いることができる。過去の
1サイクルの蓄積周期と、その間の被写体移動による像
面移動量(PRED)と、最終の蓄積期間の中点から次
回露光予定時間の中点までの時間とを用いて、その間の
追尾補正量(COMP)を
In tracking, the following method can be used so that a focused state is obtained at the moment of the next exposure. Tracking correction is performed using the past one accumulation cycle, the image plane movement amount (PRED) due to the movement of the subject during that period, and the time from the middle point of the final accumulation period to the middle point of the next scheduled exposure time. Amount (COMP)

【0241】[0241]

【数8】 (Equation 8)

【0242】で算出し最終のデフォーカス量DEFに上
記追尾補正量COMPを加えた値を追尾駆動量として駆
動するというものである。もし駆動の終了に合わせてミ
ラーアップを行なうとすると、上式の分母のみならず分
子に関しても駆動時間によって100ms位のバラツキが
生じることになり、例えば分子は150ms〜250msの
範囲でバラツクことになる。駆動時間に関してはあらか
じめ知る事ができないので、駆動の終了にもどずいてミ
ラーアップを開始する方法では、分母分子のバラツキが
大きくなり適正なαを決定できず、従って効果的な追尾
を行なうことができない。
The value calculated by adding the tracking correction amount COMP to the final defocus amount DEF is driven as the tracking drive amount. If the mirror is raised at the end of the driving, the driving time will cause a variation of about 100 ms not only in the denominator of the above equation but also in the numerator, for example, the numerator will vary in the range of 150 ms to 250 ms. . Since the driving time cannot be known in advance, in the method of starting mirror-up by returning to the end of driving, the variation of the denominator and numerator becomes large and it is not possible to determine an appropriate α, so that effective tracking can be performed. Can not.

【0243】そこで本発明では駆動時間に関係なく、駆
動中であろうが駆動が完了していようが、駆動開始から
第1の所定時間T1後にミラーアップを開始するように
している。これによって前式の分母、分子ともほぼ一定
値となり、このようにして定められたαの値を用いて追
尾補正量COMPを算出するので、次回の露光の瞬間に
確実に合焦状態を実現することが可能である。
Therefore, in the present invention, regardless of the driving time, the mirror-up operation is started after a first predetermined time T1 from the start of driving, regardless of whether the driving is being performed or the driving is completed. As a result, both the denominator and the numerator of the above equation become substantially constant, and the tracking correction amount COMP is calculated using the value of α determined in this manner, so that the in-focus state is reliably realized at the moment of the next exposure. It is possible.

【0244】又ミラーダウン後フィルム巻上を行なうた
め電源容量が不足して、フィルム巻上とレンズ駆動を同
時に行ない得ず、演算が終了していてもフィルム巻上完
了後にレンズ駆動を行なう場合でも、連写の間フィルム
巻上時間がほぼ一定なのでこの場合でもサイクルタイム
の変動はなく問題はない。
Also, since the winding of the film is performed after the mirror is lowered, the power capacity is insufficient, so that the winding of the film and the driving of the lens cannot be performed at the same time. Since the film winding time during continuous shooting is almost constant, there is no problem in this case, because the cycle time does not fluctuate.

【0245】即わち要点を順序だててまとめると、撮影
レンズのデフォーカス量をくり返し算出する焦点検出手
段と、過去及び現在のデフォーカス量にもとずいてデフ
ォーカス検出のサイクル間の被写体移動に伴なうデフォ
ーカス量である追尾デフォーカス量(PRED)を算出
し、これから追尾のための追尾補正量(COMP)を算
出する追尾補正量算出手段と、現在のデフォーカス量
(DEF)に追尾補正量(COMP)を加えた追尾駆動
量(DRIV)にもとずいて撮影レンズの駆動を行なう
レンズ駆動手段とがあり、又ミラーアップや蓄積、駆動
のタイミングをコントロールする手段を制御手段とする
と、制御手段は、レリーズ全押後に関してはミラーアッ
プ、露光、ミラーダウン、蓄積、演算、駆動のサイクル
において、レンズ駆動開始後第1所定時間T1の経過後
にミラーアップを行なわれるように制御する。
That is, the essential points are summarized in order. Focus detection means for repeatedly calculating the defocus amount of the photographing lens, and the subject during the defocus detection cycle based on the past and current defocus amounts Tracking correction amount calculating means for calculating a tracking defocus amount (PRED), which is a defocus amount accompanying movement, and calculating a tracking correction amount (COMP) for tracking based on the calculated defocus amount, and a current defocus amount (DEF) Lens driving means for driving the photographing lens based on a tracking drive amount (DRIV) obtained by adding a tracking correction amount (COMP) to the camera, and a control means for controlling mirror-up, accumulation, and drive timing. In this case, the control means controls the lens drive in the cycle of mirror up, exposure, mirror down, accumulation, calculation, and drive after the release is fully pressed. Control as is done with mirror-up after a first predetermined time T1 after the start.

【0246】さらに前記制御手段は、レンズの駆動可能
な時間を所定最大時間(T1+T2)に限定し、従って
ミラーアップからT2時間経過後もレンズ駆動が終了し
ていない時にはレンズを強制的に停止させる。ここで、
T2はミラーアップ開始から露光が始まるまでの時間と
同程度、好ましくは露光の直前に駆動がほぼ停止してい
る程度の時間である。
Further, the control means limits the time during which the lens can be driven to a predetermined maximum time (T1 + T2), so that the lens is forcibly stopped when the driving of the lens is not completed even after the lapse of T2 from the mirror-up. . here,
T2 is approximately the same as the time from the start of the mirror up to the start of the exposure, and preferably, the time during which the driving is almost stopped immediately before the exposure.

【0247】所定最大駆動時間(T1+T2)はその時
間内にデフォーカス量3〜4mm分を完全に駆動できる時
間にとる事が望ましく例えば100ms前後となる。この
場合ほぼミラーアップ時間に等しいT2が50msec程度
であればT1〜50msec程度となる。又前記所定最大時
間内で駆動が終了せず強制停止となった場合には駆動の
残量を調べ、これが所定値を越える時には次回は追尾の
補正を行なわないようにするのがよい。こうすることに
より動体の動き方によっては追尾動作に付随して生じる
オーバーランを避けるとともに、オーバーランした場合
でもそこからの回復を早めることができる。
The predetermined maximum drive time (T1 + T2) is preferably set to a time within which the defocus amount of 3 to 4 mm can be completely driven, for example, about 100 ms. In this case, if T2 substantially equal to the mirror-up time is about 50 msec, it is about T1 to 50 msec. If the driving is not completed within the predetermined maximum time and the driving is stopped forcibly, the remaining amount of the driving is checked, and if it exceeds a predetermined value, the tracking correction should not be performed next time. By doing so, it is possible to avoid overrun that accompanies the tracking operation depending on the manner of movement of the moving object, and to speed up recovery from the overrun even when overrun occurs.

【0248】又本発明では連写中のミラーアップ動作の
サイクルの中に必ず1回の焦点検出動作を含むように構
成しているが、これは露光及び蓄積のサイクルを毎回一
定して、次回露光時のレンズ位置の予測をしやすくする
為である。勿論露光終了後蓄積開始までの時間は常に一
定となるように制御手段によりコントロールされてい
る。
In the present invention, the cycle of the mirror-up operation during the continuous shooting always includes one focus detection operation. This is because the cycle of exposure and accumulation is fixed every time, This is to make it easy to predict the lens position at the time of exposure. Of course, the time from the end of exposure to the start of accumulation is controlled by the control means so as to be always constant.

【0249】本発明では駆動の最大時間を決め、その時
間内に必要な駆動量を達成すれば、駆動時間の長短によ
らず、露光の瞬間に合焦を達成できる。従って複雑な時
間のコントロールや駆動速度のコントロールが不用であ
り、交換レンズの種類によって負荷が異なり駆動スピー
ドが大きく異なる時でも対処で容易である。
In the present invention, if the maximum drive time is determined and the required amount of drive is achieved within that time, focusing can be achieved at the moment of exposure regardless of the length of the drive time. Therefore, complicated time control and drive speed control are unnecessary, and it is easy to cope with the case where the load varies depending on the type of the interchangeable lens and the drive speed greatly varies.

【0250】[0250]

【表2】 [Table 2]

【0251】[0251]

【表3】 [Table 3]

【0252】[0252]

【表4】 [Table 4]

【0253】[0253]

【表5】 [Table 5]

【0254】表 5 <追尾動作を行う条件> (1) 追尾モードである (2) ローコントラストでない (3) 信頼性が有る (4) スキャン中でない (5) 前回駆動した (6) 駆動方向反転しなかった (7) デフォーカス量と最終追尾デフォーカス量が同符
号、または異符号でもデフォーカス量が小さい (8) 追尾デフォーカス量と最終追尾デフォーカス量が
同符号 (9) 追尾デフォーカス量と最終追尾デフォーカス量の
和の絶対値が所定値δ以上 (10) 追尾デフォーカス量が所定値r*最終追尾デフォ
ーカス量以下 (11) 追尾デフォーカス量が所定値k*最終追尾デフォ
ーカス量以上 以上の様に第1の発明によれば、撮影レンズの駆動方向
が反転した後、所定回数の駆動において追尾駆動を禁止
しているので、合焦点近傍で無用に追尾駆動に入りハン
チングを起こすことがなく、安定性が高く、しかも、被
写体に対する追従性も高い自動焦点装置を提供すること
ができる。
Table 5 <Conditions for performing tracking operation> (1) Tracking mode (2) Low contrast (3) Reliable (4) Not scanning (5) Drive last time (6) Drive direction inversion (7) Defocus amount and final tracking defocus amount have the same sign, or defocus amount is small even with different codes. (8) Tracking defocus amount and final tracking defocus amount have the same sign. (9) Tracking defocus The absolute value of the sum of the amount and the final tracking defocus amount is equal to or more than a predetermined value δ. (10) The tracking defocus amount is equal to or less than a predetermined value r * the final tracking defocus amount. (11) The tracking defocus amount is a predetermined value k * As described above, according to the first aspect of the present invention, after the driving direction of the taking lens is reversed, the tracking drive is prohibited for a predetermined number of times of driving. To Without straining, high stability, moreover, it is possible to provide a high auto-focus device also followability to the object.

【0255】(第2実施例)本発明の第2実施例は、第
1実施例とほとんど同様の構成であり、第1実施例の追
尾補正量をより正確に得られるように構成したものであ
る。以下、図17、20、29に基づき説明する。まず
レリーズ全押前、直後、1回ミラーアップ後に関する識
別と補正の要点を述べる。
(Second Embodiment) The second embodiment of the present invention has almost the same configuration as the first embodiment, and is configured so that the tracking correction amount of the first embodiment can be obtained more accurately. is there. Hereinafter, description will be made with reference to FIGS. First, the points of identification and correction before and immediately after the release is fully pressed and after one mirror-up operation will be described.

【0256】図20のごとく、レリーズ全押前までの駆
動、全押直後の駆動、全押後2回目の駆動、全押後3回
目以降の駆動及びそれらに先だつ追尾補正書の算出の時
期を識別する手段を設け、それにより上記識別結果をそ
れぞれ図17のPCOUNT=0,1,2,3とする。
全押前(PCOUNT0)では蓄積、演算、駆動のサイ
クルタイムはFOで一定しており、前記追尾デフォーカ
ス量(PRED)から前記追尾補正量(COMP)を算
出するには、 COMP=PRED×α で例えばα=1とすることができる。
As shown in FIG. 20, the drive up to the full press of the release, the drive immediately after the full press, the second drive after the full press, the drive after the third press, and the timing of calculation of the tracking correction document preceding them are described. An identification means is provided, whereby the identification result is set to PCOUNT = 0, 1, 2, 3 in FIG.
Before the full pressing (PCOUNT0), the cycle time of accumulation, calculation, and driving is constant at FO. To calculate the tracking correction amount (COMP) from the tracking defocus amount (PRED), COMP = PRED × α Can be set to, for example, α = 1.

【0257】つまり全押前では蓄積の中点で毎回合焦す
ることを目的とすると、前回の蓄積間のサイクルタイム
=F0、次回のそれの予定時間までの間隔もF0なので
α=F0/F0=1となるからである。全押後では駆動
と蓄積の間にミラーアップに伴なう露光が入るので蓄積
のサイクルタイムが変わる。又全押後では合焦の最適化
の瞬間が蓄積の中点から露光の中点(中点とは中央時の
意味)に変わる。従って露光時合焦とするため追尾補正
量(COMP)は COMP=PRED×α
That is, if the purpose is to focus every time at the middle point of the accumulation before the full pressing, the cycle time between the previous accumulation is F0 and the interval until the next scheduled time is also F0, so that α = F0 / F0 = 1. After the full pressing, the exposure accompanying the mirror-up is inserted between the driving and the accumulation, so that the accumulation cycle time changes. After full pressing, the moment of optimization of focusing changes from the middle point of accumulation to the middle point of exposure (the middle point means the center time). Therefore, the tracking correction amount (COMP) is COMP = PRED × α in order to focus on exposure.

【0258】[0258]

【数9】 (Equation 9)

【0259】となる。従って全押直後(PCOUNT
1)においては
Is obtained. Therefore, immediately after full press (PCOUNT
In 1)

【0260】[0260]

【数10】 (Equation 10)

【0261】で決まる値となる。全押後ミラーアップが
間に入った2回目の駆動に先だつ計算の時期(PCOU
NT2)においては
The value is determined by Timing of calculation prior to the second drive with mirror up after full push (PCOU
NT2)

【0262】[0262]

【数11】 [Equation 11]

【0263】である。さらに全押後3回目以降の駆動に
先だつ計算の時点(PCOUNT3)では
Is as follows. Further, at the time of calculation (PCOUNT3) prior to the third and subsequent drive after full pressing,

【0264】[0264]

【数12】 (Equation 12)

【0265】となる。Is as follows.

【0266】このように上記αの算出式にもとずいてα
を算出し追尾補正量を求めれば正確な追尾が可能であ
る。ここで分母の時間は過去の量なので値が確定してい
るが、分子は未来の量なので値が確定していない。この
うち一番不確定なのはレンズ駆動時間であるが、とりあ
えずα=1としておよその駆動量(DRIV)が算出さ
れたら、その駆動時間のおよその目安はわかるので、そ
れより少し余裕を見て駆動時間を定めればそれに続く露
光の瞬間までの時間が決定でき、従って前式の分子にあ
たる「最後の蓄積から次の露光までの時間」が定められ
る。
As described above, based on the above formula for calculating α, α
Is calculated and the tracking correction amount is obtained, accurate tracking is possible. Here, the denominator time is a past quantity, so the value is fixed, but the numerator is a future quantity, so the value is not fixed. Of these, the most uncertain is the lens drive time. However, if the approximate drive amount (DRIV) is calculated assuming α = 1, an approximate guide of the drive time can be obtained. When the time is determined, the time until the instant of the subsequent exposure can be determined, and therefore, the “time from the last accumulation to the next exposure”, which is the numerator of the above equation, is determined.

【0267】この場合ミラーアップ開始は予定露光の瞬
間からミラーアップ時間だけ午前の瞬間にミラーアップ
指示を行なう事で達成される。実際問題としては実施例
記載のごとく、レリーズ後はレンズ駆動時間の最大値を
一定に決めてしまい、駆動開始後一定時間(T1)後に
ミラーアップを開始するようにすれば扱いが簡単となり
好ましい。
In this case, the start of the mirror-up is achieved by issuing a mirror-up instruction at the moment of the morning for the mirror-up time from the moment of the scheduled exposure. As a practical problem, as described in the embodiment, it is preferable to set the maximum value of the lens driving time constant after the release and to start the mirror-up after a fixed time (T1) after the start of the driving, which is preferable because the handling becomes simple.

【0268】このようにすればPCOUNT3以降につ
いてはαは同一値となる。又PCOUNT2と3では場
合によってαは同一値にも異なった値にもなるがこれは
分子はF2′=F3′であるが分母がF1=F2の時と
F1≠F2の時とあるからである。蓄積・演算後すぐに
レンズ駆動が始まる場合はF1=F2であるが、演算終
了後もフィルム巻上終了までレンズ駆動ができないとす
るとF1≠F2となる。
Thus, α becomes the same value after PCOUNT3. Also, in PCOUNT2 and PCOUNT3, α may be the same value or different value depending on the case, because the numerator is F2 '= F3', but the denominator is when F1 = F2 and when the denominator is F1 ≠ F2. . If the lens drive starts immediately after the accumulation / calculation, F1 = F2. However, if the lens cannot be driven until the end of film winding after the calculation, F1 ≠ F2.

【0269】一般にPCOUNT0,1,2では最適な
αの値は異なってくるが、ミラーアップ時間その他の設
計的変動要因でその具体的値が異なってくる。αの最適
な値は前記αを算出する式にもとずいて決めてもよい
し、実験的に決めてもよい。こうして決められたαを用
いて実施例ではPCOUNT0,1,2,3を識別し、
αのテーブル(図17)を参照して最適な値を決定する
ようにしている。
In general, the optimum value of α differs between PCOUNTs 0, 1 and 2, but the specific value differs due to the mirror-up time and other design fluctuation factors. The optimum value of α may be determined based on the equation for calculating α, or may be determined experimentally. In this embodiment, PCOUNTs 0, 1, 2, and 3 are identified using α thus determined.
The optimum value is determined with reference to the table of α (FIG. 17).

【0270】次に定速で近づく被写体に対して像面の移
動速度が一定とならないために生じる問題点について説
明する。図29(A)、(B)は図21(B)をさらに
具体的に表現したものであり、図29(A)はf=18
0mmの撮影レンズの場合、図29(B)はf=400mm
の撮影レンズの場合を示している。
Next, a description will be given of a problem that occurs because the moving speed of the image plane is not constant with respect to a subject approaching at a constant speed. FIGS. 29A and 29B are more specific representations of FIG. 21B, and FIG.
In the case of a photographing lens of 0 mm, FIG.
3 shows the case of the taking lens.

【0271】いずれの図も、実線は被写体が10m/s
で近づく場合の像面の移動の様子を、レンズと像面の距
離から一定値を引いた値を縦軸にとって図示したもので
ある。又点線は理想的に追尾がなされた場合のレンズと
所定検出面(フィルム面と共役)との距離から前記一定
値を引いた値を縦軸にとったもので、蓄積の瞬間(黒丸
印)に実線と交わり合焦が達成されている。
In each of the figures, the solid line indicates that the subject is 10 m / s.
The state of the movement of the image plane when approaching is shown with a vertical axis representing a value obtained by subtracting a certain value from the distance between the lens and the image plane. The dotted line represents the value obtained by subtracting the constant value from the distance between the lens and the predetermined detection surface (conjugated to the film surface) when tracking is ideally performed. The focus is achieved by intersecting with the solid line.

【0272】図から明らかなように長焦点レンズの場合
図29(B)では、像面の変化の早さがほぼ一定なの
で、過去の1サイクル(蓄積から蓄積まで)における被
写体像面の移動量PREDをそのまま次回の予想移動量
COMPとすればよく従ってα=1とすれば良い。
As is clear from the figure, in the case of the long focal length lens in FIG. 29B, since the speed of change of the image plane is almost constant, the movement amount of the object image plane in one past cycle (from accumulation to accumulation) PRED may be used as it is as the next expected movement amount COMP, and therefore α = 1 may be set.

【0273】これに対して短焦点レンズ(A)では像面
が急加速度で離れていくので、過去1サイクルでの値P
REDをそのまま次回の予想量COMPとしたのでは破
線aのように追尾遅れが生じてしまう。従って COMP=PRED×α においてαを1より大き目にとるのが良い。
On the other hand, in the short focus lens (A), since the image plane moves away at a rapid acceleration, the value P
If the RED is used as the next expected amount COMP as it is, a tracking delay occurs as shown by a broken line a. Therefore, it is preferable to set α to be larger than 1 in COMP = PRED × α.

【0274】以上まとめると所定の焦点距離をFXと
し、撮影レンズの焦点距離をFLとするとき、例えば次
表のようにする。
In summary, when the predetermined focal length is FX and the focal length of the taking lens is FL, for example, the following table is used.

【0275】[0275]

【表6】 [Table 6]

【0276】もし安定化のため追尾動作を少しひかえめ
にかけるとすれば実施例(図17αテーブル)のごとく
次表のようにすることもできる。
If the tracking operation is slightly overridden for stabilization, the following table can be used as in the embodiment (α table in FIG. 17).

【0277】[0277]

【表7】 [Table 7]

【0278】このようにどのタイミングで合焦をはかる
かの価値判断や、上記安定化の配慮等によりαの値の絶
対値は違ってくるが、いずれにしても撮影レンズの焦点
距離に依存させてαの値を変化させる事により、レンズ
の焦点距離によらず最適な追尾動作を行なわせる事がで
きる。
As described above, the absolute value of α differs depending on the value of the timing at which focusing is to be performed and the above-described stabilization considerations, but in any case, it depends on the focal length of the photographing lens. By changing the value of α in this way, an optimal tracking operation can be performed regardless of the focal length of the lens.

【0279】このような補正の効果はサイクルタイムが
100ms以上と短かい場合には目立たないが200ms以
上となると効果が大きくなり、特にミラーアップが入っ
てサイクルタイムが300msにもなると効果は非常に大
きくなる。次に被写体が遠ざかる場合について述べる。
被写体が遠ざかるか近づくかについてはPREDの符号
で容易に判断することができる。
The effect of such correction is inconspicuous when the cycle time is as short as 100 ms or more, but the effect becomes large when the cycle time is 200 ms or more, and is particularly significant when the cycle time reaches 300 ms due to mirror up. growing. Next, a case where the subject moves away will be described.
Whether the subject moves away or approaches can be easily determined by the PRED code.

【0280】被写体が遠ざかる場合には図21(A)の
一点鎖線のごとく減速となる。従って過去の結果にもと
ずいてそのまま追尾駆動を行なうとオーバーラン気味と
なる。従って近ずく場合に比べてαの値を小さ目にとる
事が望ましい。このような加減速は焦点距離の短いレン
ズ程著しい。実施例では図17のαテーブルのごとく、
減速の効果の大きい焦点距離小(FL<FX)の場合及
び焦点距離が大きくてもサイクルタイムが大きく減速効
果の大きいPCOUNT2,3では遠ざかる場合につい
て近づく場合よりαの値を小さくして対処している。
When the subject moves away, the speed is reduced as indicated by the alternate long and short dash line in FIG. Therefore, if the tracking drive is performed as it is based on the past results, it tends to be overrun. Therefore, it is desirable to set the value of α to be smaller than when approaching. Such acceleration / deceleration is more remarkable for a lens having a shorter focal length. In the embodiment, like the α table in FIG.
When the focal length is small (FL <FX) where the effect of deceleration is large, and when the focal length is long, the cycle time is large, and in PCOUNT2 and 3 where the deceleration effect is large, the value of α is set smaller when moving away than when approaching. I have.

【0281】このようにαの変更を必要とする要因に
は、撮影レンズ焦点距離の大小、被写体が近づくか遠ざ
かるか、レリーズの前後、サイクルタイムの大小等いろ
いろ存在し、実際上はこれらが複合して組合わされてお
り、又メカ機構の時定数に対する依存もあるので図17
のように場合分けしたαテーブルを記憶し、条件に応じ
たαの値を用いるのが好ましい。又値としては最適値を
実験的に決定すればよく、ボディが変わりメカの時定数
が変わればαの最適的も変わる。しかしおおむねαの最
適な値の範囲は
There are various factors that require the change of α, such as the size of the focal length of the photographing lens, whether the subject approaches or moves away, before and after the release, and the size of the cycle time. FIG. 17 is dependent on the time constant of the mechanical
It is preferable to store the α table classified according to the case as described above and use the value of α according to the condition. The optimum value may be determined experimentally. If the body changes and the time constant of the mechanism changes, the optimum value of α also changes. However, in general, the optimal value range of α is

【0282】[0282]

【数13】 (Equation 13)

【0283】の範囲に存在する。[0283] It is in the range of

【0284】(第3実施例)本発明の第3実施例は、第
1実施例とほとんど同様の構成であり、第1実施例の合
焦表示をより分り易く構成したものである。以下、図3
0〜図32に基づき説明する。図7のAFCPUプログ
ラム中合焦判定・表示モジュールにおいては図22#
590〜#605に示す如く追尾中でかつレンズ端でな
い場合には、AF表示手段40の表示部41、43を両
方アクティブにし、通常の焦点調節状態表示と異なる表
示形態とすることで撮影者に追尾中であることを認識さ
せている。
(Third Embodiment) The third embodiment of the present invention has almost the same configuration as that of the first embodiment, and the focus display of the first embodiment is configured to be more easily understood. Hereinafter, FIG.
This will be described with reference to FIGS. In the AF CPU program focus determination / display module of FIG.
When tracking is in progress and the lens is not at the lens end as indicated by 590 to # 605, the display units 41 and 43 of the AF display unit 40 are both activated, and a display form different from the normal focus adjustment state display is given to the photographer. Letting you know you're tracking.

【0285】撮影者はこの表示により被写体が移動して
いることを知り移動被写体の撮影の対応例えば絞り調
節、シャッター速度の選択ができる。以下、他の実施例
を用いて上記の追尾中の表示技術について説明を加え
る。図22#605においては、追尾中表示をAF表示
手段40により表示していたが、別実施例として追尾中
表示をAF表示手段40以外の表示手段により表示する
こともできる。
The photographer can know from this display that the subject is moving, and can respond to the photographing of the moving subject, for example, adjust the aperture and select the shutter speed. Hereinafter, the display technique during tracking will be described using another embodiment. In FIG. 22 # 605, the display during tracking is displayed by the AF display means 40. However, as another example, the display during tracking may be displayed by display means other than the AF display means 40.

【0286】図30(A)に追尾表示手段45を別に設
けた場合の一実施例の構成を示す。図30(A)におい
て追尾表示手段45は図1で説明したAFCPU30の
ポートP13により制御される。追尾表示手段45は追
尾表示部46を有し、追尾表示部46は追尾中のみアク
ティブとなることにより撮影者に追尾中であることを知
らせるようになっている。
FIG. 30A shows the configuration of an embodiment in which the tracking display means 45 is separately provided. In FIG. 30A, the tracking display means 45 is controlled by the port P13 of the AF CPU 30 described with reference to FIG. The tracking display means 45 has a tracking display section 46. The tracking display section 46 is active only during tracking to notify the photographer that tracking is being performed.

【0287】図31(A)に上記実施例の図7のAFC
PUのプログラムの一部を示す。図31(A)の#20
10は図22の#605に置き換えられる。従って追尾
中でありかつレンズ端でない場合#2010により追尾
表示手段45の表示部46がアクティブにされる。一方
ここではプログラムフローチャートでの図示を省略する
が上記実施例においては追尾中でないか又はレンズ端で
あった場合には、追尾表示手段45の表示部46をOF
Fにして追尾中でないことを表示する。
FIG. 31A shows the AFC shown in FIG.
2 shows a part of a PU program. # 20 in FIG. 31 (A)
10 is replaced with # 605 in FIG. Therefore, when tracking is being performed and the lens is not at the lens end, the display section 46 of the tracking display means 45 is activated by # 2010. On the other hand, although the illustration in the program flowchart is omitted here, in the above embodiment, when the tracking is not being performed or the lens is at the lens end, the display section 46 of the tracking display means 45 is turned off.
Set to F to indicate that tracking is not being performed.

【0288】#2010以降は今回のデフォーカス量D
EFに従って図22の如くAF表示手段40によるAF
表示を行ってもよいし、AF表示手段40の表示部を全
てOFFしてしまってもよい。
From # 2010 onward, the current defocus amount D
According to the EF, the AF by the AF display means 40 as shown in FIG.
The display may be performed, or all the display units of the AF display unit 40 may be turned off.

【0289】図30(B)に追尾表示手段45が追尾中
の表示と被写体の移動方向(接近又は遠ざかる)の表示
を行なう場合の一実施例の構成示す。図30(B)にお
いて、追尾表示手段45は表示部47,48を有すると
ともに、AFCPU30によりポートP13を介して制
御される。表示部47がアクティブの場合は被写体が遠
ざかっていることを表示し、表示部48がアクティブの
場合は被写体が接近していることを表示している。又表
示部47、48のいずれかがアクティブな場合は追尾中
であることを表示している。
FIG. 30B shows the configuration of an embodiment in which the tracking display means 45 displays a display during tracking and a moving direction (approaching or moving away) of the subject. In FIG. 30B, the tracking display means 45 has display portions 47 and 48, and is controlled by the AFCPU 30 via the port P13. When the display unit 47 is active, it indicates that the subject is moving away, and when the display unit 48 is active, it indicates that the subject is approaching. When either of the display units 47 and 48 is active, it indicates that tracking is in progress.

【0290】図31(B)に上記実施例のAFCPUプ
ログラムの一部を示す。図31(B)の#2015〜#
2025は図22の#605に置き変えられる。従って
追尾中であり、かつレンズ端でない場合は、#2015
により追尾駆動量DRIVの符号がテストされ符号が負
の場合は#2020で追尾表示手段45の表示部48を
アクティブ、表示部47をOFFにし、追尾中で被写体
が接近中であることを表示する。又#2015で符号が
正の場合は、#2025へ進み表示部47をアクティ
ブ、表示部48をOFFにして、追尾中で被写体が遠ざ
かっていることを表示する。
FIG. 31B shows a part of the AFCPU program of the above embodiment. # 2015 to # in FIG. 31B
2025 is replaced with # 605 in FIG. Therefore, if tracking is in progress and the lens is not at the lens end, # 2015
And the sign of the tracking drive amount DRIV is tested, and if the sign is negative, the display unit 48 of the tracking display means 45 is activated and the display unit 47 is turned off in # 2020 to display that the subject is approaching during tracking. . If the sign is positive in # 2015, the process proceeds to # 2025, where the display unit 47 is activated and the display unit 48 is turned off to display that the subject is moving away during tracking.

【0291】一方ここではプログラムフローチャートで
の図示は省略するが、上記実施例においては追尾中でな
いか又はレンズ端であった場合は追尾表示手段45の表
示部47,48を両方ともOFFにして追尾中でないこ
とを表示する。#2020、#2025以降の処理は前
実施例と同様である。上記実施例においては撮影者は追
尾の方向を知ることができるので、撮影者の意図しない
方向への追尾を撮影者自身が別手段の操作(例えばレリ
ーズボタンの半押や専用ボタン)によりキャンセルする
ことが可能になる。
On the other hand, although illustration in the program flow chart is omitted here, in the above embodiment, when tracking is not being performed or the lens is at the end of the lens, both the display units 47 and 48 of the tracking display means 45 are turned off to perform tracking. Display that it is not inside. The processes after # 2020 and # 2025 are the same as in the previous embodiment. In the above embodiment, since the photographer can know the direction of tracking, the photographer himself cancels the tracking in the direction not intended by the photographer by operating another means (for example, half-pressing the release button or a dedicated button). It becomes possible.

【0292】図30(B)においては被写体の移動方向
を表示するための表示部47、48を三角表示マークと
して表わしたがもちろんこれ以外の表示マークでもよ
い。例えば
In FIG. 30B, the display portions 47 and 48 for displaying the moving direction of the subject are shown as triangular display marks, but of course other display marks may be used. For example

【0293】[0293]

【数14】 [Equation 14]

【0294】のマークを表示部47、48として用いる
ことができる。
The mark of the above can be used as the display portions 47 and 48.

【0295】図30(C)に追尾表示手段45により追
尾中の焦点調節状態を表示する一実施例の構成を示す。
図30(C)において追尾表示手段45は、表示部5
3、54、55を有し、各々AFCPU30のポートP
13より制御される。表示部53、54、55のアクテ
ィブ状態は各々追尾状態での前ピン、合焦、後ピンを表
示している。
FIG. 30C shows a configuration of an embodiment in which the tracking display means 45 displays the focus adjustment state during tracking.
In FIG. 30C, the tracking display means 45 is
3, 54, and 55, each having a port P of the AFCPU 30.
13 is controlled. The active states of the display units 53, 54, and 55 indicate the front focus, focus, and rear focus in the tracking state, respectively.

【0296】図31(C)に上記実施例のAFCPUの
プログラムの一部を示す。図31(C)の#2030〜
#2085は図22の#605に置き変えられる。従っ
て追尾中でありかつレンズ端でない場合は、#2030
においてまず第1回目以降のレリーズ後であるかテスト
され、レリーズ後でない場合には#2035〜#205
5の処理を行なう。
FIG. 31C shows a part of the program of the AFCPU of the above embodiment. # 2030 in FIG. 31 (C)
Step # 2085 is replaced with step # 605 in FIG. Therefore, if tracking is in progress and the lens is not at the lens end, # 2030
Is tested first after the first or subsequent release, and if not, # 2035 to # 205
Step 5 is performed.

【0297】図32(A)はレリーズが行なわれていな
い場合の移動被写体に対する撮影レンズの理想軌跡(実
線)と実際の撮影レンズの駆動軌跡(1点鎖線)を示し
ており、蓄積、演算、駆動からなるシーケンスを1サイ
クルとして撮影レンズは追尾駆動される。撮影レンズの
追尾駆動が理想的に行なわれた場合にはイメージセンサ
の蓄積時間の中点Imにおいて実線と一点鎖線が交差す
る。従ってこの場合追尾中の蓄積から求められたデフォ
ーカス量DEFは0になるはずである。#2035〜#
2055では上述の考え方に基づいてデフォーカス量の
値に従って合焦、前ピン、後ピンを判定する。
FIG. 32A shows an ideal trajectory (solid line) of the photographing lens and an actual driving trajectory (dashed line) of the photographing lens with respect to the moving subject when the release is not performed. The photographing lens is driven to be tracked with a driving sequence as one cycle. When the tracking driving of the photographing lens is ideally performed, the solid line and the dashed line intersect at the middle point Im of the accumulation time of the image sensor. Therefore, in this case, the defocus amount DEF obtained from the accumulation during tracking should be zero. # 2035- #
At 2055, focusing, front focus, and rear focus are determined according to the value of the defocus amount based on the above concept.

【0298】#2035ではデフォーカス量の絶対値が
所定値ZONEFより大きいかテストする。一般に追尾
中に求められるデフォーカス量は静止中に求められるデ
フォーカス量より精度が悪化しているので所定値ZON
EFの値は図22で示した合焦判定のための所定値Z
1,Z2,Z3,Z4,Z5より大きくとっておいた方
が表示が安定する。
At step # 2035, it is tested whether the absolute value of the defocus amount is larger than a predetermined value ZONEF. In general, the defocus amount obtained during tracking is lower in accuracy than the defocus amount obtained during stationary, so the predetermined value ZON
The value of EF is a predetermined value Z for focus determination shown in FIG.
Display is more stable if it is set larger than 1, Z2, Z3, Z4 and Z5.

【0299】#2035で所定値ZONEFより小さか
った場合は#2040で表示部54をアクティブにして
追尾中の合焦であることを表示する。#2035で所定
値ZONEFより大きい場合は#2045へ進みデフォ
ーカス量DEFの符号をテストし、符号が正であった場
合は表示部53をアクティブにして追尾中の前ピンを表
示する。
If the value is smaller than the predetermined value ZONEF in # 2035, the display unit 54 is activated in # 2040 to indicate that the in-focus state is being tracked. If the sign is larger than the predetermined value ZONEF in # 2035, the flow advances to # 2045 to test the sign of the defocus amount DEF. If the sign is positive, the display unit 53 is activated to display the previous pin being tracked.

【0300】#2045で符号が負であった場合は#2
055で表示部55をアクティブにして追尾中の後ピン
を表示する。一方#2030でレリーズ後であると判定
された場合には#2060〜#2085の処理を行な
う。
If the sign is negative in # 2045, # 2
In step 055, the display unit 55 is activated to display the rear focus pin during tracking. On the other hand, if it is determined in step # 2030 that the shutter has been released, the processing in steps # 2060 to # 2085 is performed.

【0301】図32(B)はレリーズが行なわれている
場合の移動被写体に対する撮影レンズの理想軌跡(実
線)と実際の撮影レンズの駆動軌跡(1点鎖線)を示し
ており、撮影、蓄積、演算、駆動からなるシーケンスを
1サイクルとして撮影レンズは追尾駆動される。撮影レ
ンズの追尾駆動が理想的に行なわれた場合には、撮影動
作(露光)の中点において、実線と一点鎖線が交差す
る。従ってこの場合、追尾中の蓄積から求めたデフォー
カス量即ちこれは図において蓄積時間の中点Im におけ
る実線と一点鎖線の差に相当する量は0にならず、理想
的には撮影動作の中点Em と蓄積時間の中点Im の時間
中に撮影レンズが理想軌跡(実線)に沿って動いた量H
Xとなる。
FIG. 32B shows an ideal trajectory (solid line) of the photographing lens with respect to the moving object and an actual driving trajectory (dashed line) of the photographing lens with respect to the moving subject when the release is performed. The photographing lens is driven to be tracked with a sequence consisting of calculation and driving as one cycle. When the tracking drive of the photographing lens is ideally performed, the solid line and the dashed line intersect at the middle point of the photographing operation (exposure). Therefore, in this case, the defocus amount obtained from the accumulation during tracking, that is, the amount corresponding to the difference between the solid line and the one-dot chain line at the middle point Im of the accumulation time in the drawing does not become 0, and ideally during the shooting operation. The amount H that the taking lens has moved along the ideal locus (solid line) during the time between the point Em and the middle point Im of the accumulation time.
X.

【0302】量HXは今回の蓄積時間の中点(例えばI
m1)と前回の蓄積時間の中点(例えばImo)の間に実際
に撮影レンズが動いた量をDLST(これは前回の駆動
量に相当する)、今回の蓄積時間の中点(Im1)と前回
の蓄積時間の中点(Imo)の間の時間をTE、今回の蓄
積時間の中点(Im1)と今回の撮影動作の中点(Em1)
の間の時間をTDとすると次式の如くなる。
The quantity HX is the midpoint of the current accumulation time (for example, I
The actual movement amount of the photographing lens between m1) and the middle point of the previous accumulation time (for example, Imo) is represented by DLST (this corresponds to the previous drive amount), and the middle point of this accumulation time (Im1). The time between the midpoint of the previous accumulation time (Imo) is TE, the midpoint of the current accumulation time (Im1) and the midpoint of the current shooting operation (Em1).
If the time between is TD, the following equation is obtained.

【0303】 HX=DLST×TD/TE ・・・・・(14) DLSTは前回の駆動量を記憶しておくことにより、又
TD、TEはAFCPUに内蔵するタイマー等で計時す
ることにより得ることができる。従って#2060〜#
2085では上述の考え方に基づいてデフォーカス量か
ら所定値HXを差し引いた値に従って合焦、前ピン、後
ピンを判定する。
HX = DLST × TD / TE (14) DLST is obtained by storing the previous drive amount, and TD and TE are obtained by measuring the time with a timer or the like built in the AFCPU. Can be. Therefore, # 2060- #
At 2085, focusing, front focus, and rear focus are determined according to a value obtained by subtracting a predetermined value HX from the defocus amount based on the above-described concept.

【0304】#2060では(14)式に従ってHXを
計算する。#2065では今回のデフォーカス量よりH
Xを引いたものの絶対値が所定値ZONERより大きい
かテストする。所定値ZONERは前述の所定値ZON
EFと同じか少し大きく設定する。#2065で所定値
ZONER以下であった場合は#2070へ進み表示部
54をアクティブにして追尾中の合焦であることを表示
する。
In step # 2060, HX is calculated according to equation (14). In # 2065, the defocus amount is H
Test whether the absolute value of subtracting X is greater than a predetermined value ZONER. The predetermined value ZONER is equal to the predetermined value ZON.
Set to be the same as or slightly larger than EF. If the value is equal to or less than the predetermined value ZONER in step # 2065, the flow advances to step # 2070 to activate the display unit 54 to indicate that the in-focus state is being tracked.

【0305】#2065で所定値ZONER以上であっ
た場合は、#2075でデフォーカス量からHXを引い
た量の符号をテストし、符号が正であった場合は#20
80で表示部53をアクティブにして追尾中の前ピンで
あることを表示する。#2075で符号が負であった場
合は、#2085へ進み表示部55をアクティブにして
追尾中の後ピンであることを表示する。#2040、#
2050、#2055、#2070、#2080、#2
085以降の処理は前実施例と同様であるが、AF表示
手段40の表示部は全てOFFしておくのが望ましい。
If the value is equal to or larger than the predetermined value ZONER in # 2065, the sign of the amount obtained by subtracting HX from the defocus amount is tested in # 2075, and if the sign is positive, # 20
At 80, the display unit 53 is activated to indicate that the front pin is being tracked. If the sign is negative in # 2075, the process proceeds to # 2085 to activate the display unit 55 to indicate that the rear pin is being tracked. # 2040, #
2050, # 2055, # 2070, # 2080, # 2
The processing after 085 is the same as in the previous embodiment, but it is desirable that all the display units of the AF display means 40 be turned off.

【0306】一方ここではプログラムフローチャートで
の図示は省略するが上記実施例においては追尾中でない
か又はレンズ端であった場合は追尾表示手段45の表示
部53、54、55は全てOFFにして追尾中でないこ
とを表示する。上記実施例においては#2035、#2
065で所定値ZONEF、ZONERと比較すること
により合焦判定を行なっていたが、図21に示す如く一
般的に一定の速度で遠ざかる被写体に対しては理想レン
ズの速度は時間とともに減少し反対に一定の速度で接近
する被写体に対しては理想レンズの速度は時間とともに
増加するので、符号−(前ピン、接近中)の合焦判定ゾ
ーンを符号+(後ピン、遠ざかる)の合焦判定ゾーンよ
りも大きく設定すれば表示がより安定する。
On the other hand, although illustration in the program flowchart is omitted here, in the above-described embodiment, if tracking is not being performed or the lens is at the lens end, the display units 53, 54 and 55 of the tracking display means 45 are all turned off and tracking is performed. Display that it is not inside. In the above embodiment, # 2035, # 2
At 065, the in-focus determination was made by comparing with the predetermined values ZONEF and ZONER. However, as shown in FIG. 21, the speed of the ideal lens generally decreases with time for a subject moving away at a constant speed. For a subject approaching at a constant speed, the speed of the ideal lens increases with time. Therefore, the focus determination zone of the sign-(front focus, approaching) is replaced with the focus determination zone of the sign + (back focus, moving away). If the value is set larger than this, the display becomes more stable.

【0307】上記実施例においては撮影者は追尾中であ
るか否かを認識できるとともに追尾中の焦点調節状態を
知ることができるので焦点調節状態に応じたレリーズ操
作例えば追尾中に合焦していたらレリーズ操作を行なう
といったことが可能になる。又上記実施例においては追
尾表示手段45をAF表示手段40とは別に設けていた
が、追尾中であるか否かの情報が不要な場合には、AF
表示手段40で追尾表示手段45を兼用できる。
In the above embodiment, since the photographer can recognize whether or not the subject is being tracked and can know the focus adjustment state during the tracking, the photographer performs a release operation according to the focus adjustment state, for example, focuses during the tracking. Release operation can be performed. In the above embodiment, the tracking display means 45 is provided separately from the AF display means 40.
The display means 40 can also serve as the tracking display means 45.

【0308】上記のような場合には、追尾中においても
焦点調節状態表示が通常時(追尾を行なっていない時)
と同様な形態で行なわれるので違和感がないとともに、
追尾中の表示の安定化をはかることができる。尚、図2
2、図31の表示部の表現において実線はアクティブ、
破線はOFFとなっていることを示している。
In the above case, even during tracking, the focus adjustment state display is normal (when tracking is not performed).
Because it is performed in the same form as
The display during tracking can be stabilized. FIG.
2. In the representation of the display unit in FIG. 31, the solid line is active,
The broken line indicates that it is OFF.

【0309】図30、図31で示した実施例においては
追尾中であるか否かを表示手段45によって表示したが
本発明はこれに限られることはなく音等によって追尾中
であることを認識させることも可能である。又追尾中で
あることを表示させるだけではなく、追尾中である場合
にはカメラのその他の作動手段を自動的に制御すること
もできる。例えば追尾中である場合には自動的にシャッ
ター速度を高速にしたり、絞りを小さくする等が可能で
ある。
In the embodiments shown in FIGS. 30 and 31, whether or not the vehicle is being tracked is displayed by the display means 45. However, the present invention is not limited to this. It is also possible to make it. In addition to displaying that tracking is being performed, other operating means of the camera can be automatically controlled when tracking is being performed. For example, when tracking is in progress, it is possible to automatically increase the shutter speed or reduce the aperture.

【0310】以上の様に本実施例によれば被写体の移動
の有無が表示されるので撮影者は被写体の移動を認識で
きるとともに、移動被写体に対するそれなりの対応が可
能となるとともに従来のように移動被写体に対して撮影
レンズの焦点調節状態のみを表示して、撮影者が静止被
写体と移動被写体を区別できない場合の失敗、例えば精
度が同じだと思って撮影したらボケていたというような
ことを防ぐことができる。
As described above, according to the present embodiment, the presence / absence of the movement of the subject is displayed, so that the photographer can recognize the movement of the subject and can cope with the moving subject with a certain degree of movement. Display only the focus adjustment state of the shooting lens for the subject to prevent failure when the photographer cannot distinguish between a still subject and a moving subject, such as blurring when shooting with the same accuracy be able to.

【0311】又撮影レンズの焦点調節状態を表示する部
材と被写体の移動状態を表示する部材を兼用すればコス
トアップにもならず撮影者にとっても混乱を招くことが
ないといった利点もある。
Further, if a member for displaying the focus adjustment state of the photographing lens and a member for displaying the moving state of the subject are also used, there is an advantage that the cost is not increased and the photographer is not confused.

【0312】請求項1の発明においては、被写体移動の
移動方向に応じて焦点ずれ量の追尾補正量を補正するよ
うにしたので、追尾駆動時においてもより高精度に撮影
レンズを駆動制御できる。その結果、従来のカメラでは
達成できなかった正確にピントの合った写真を得ること
が出来る。また、請求項2の発明によれば、追尾補正量
の補正を適正な値を設定しているので、被写体を追尾す
る際に、追尾補正不足や過多を防止できる。
According to the first aspect of the present invention, since the tracking correction amount of the defocus amount is corrected in accordance with the moving direction of the movement of the subject, the driving of the photographing lens can be controlled with higher accuracy even during the tracking drive. As a result, it is possible to obtain a precisely focused photograph which cannot be achieved by the conventional camera. According to the second aspect of the present invention, since the correction of the tracking correction amount is set to an appropriate value, it is possible to prevent insufficient or excessive tracking correction when tracking a subject.

【0313】その結果、撮影レンズを正確に追尾駆動で
き、スポーツ写真の撮影などに威力を発揮する。
[0313] As a result, the photographing lens can be accurately tracked and driven, which is effective for sports photography.

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

【図1】本発明の第1実施例の構成図。FIG. 1 is a configuration diagram of a first embodiment of the present invention.

【図2】AFモジュールの構成図。FIG. 2 is a configuration diagram of an AF module.

【図3】本発明による実施例の動作タイムチャート図。FIG. 3 is an operation time chart of the embodiment according to the present invention.

【図4】本発明による実施例の動作タイムチャート図。FIG. 4 is an operation time chart of the embodiment according to the present invention.

【図5】メインCPUのプログラムフローチャート図。FIG. 5 is a program flowchart of a main CPU.

【図6】メインCPUのプログラムフローチャート図。FIG. 6 is a program flowchart of a main CPU.

【図7】(a)AFCPUのプログラムフローチャート
図。 (b)AFCPUのプログラムフローチャート図。
FIG. 7A is a program flowchart of an AFCPU. (B) The program flowchart figure of AFCPU.

【図8】AFCPUのプログラムフローチャート図。FIG. 8 is a program flowchart of an AFCPU.

【図9】AFCPUのプログラムフローチャート図。FIG. 9 is a program flowchart of an AFCPU.

【図10】AFCPUのプログラムのための説明図。FIG. 10 is an explanatory diagram for a program of an AFCPU.

【図11】AFCPUのプログラムフローチャート図。FIG. 11 is a program flowchart of an AFCPU.

【図12】AFCPUのプログラムフローチャート図。FIG. 12 is a program flowchart of an AFCPU.

【図13】AFCPUのプログラムフローチャート図。FIG. 13 is a program flowchart of an AFCPU.

【図14】焦点検出演算の説明図。FIG. 14 is an explanatory diagram of a focus detection calculation.

【図15】焦点検出演算の説明図。FIG. 15 is an explanatory diagram of a focus detection calculation.

【図16】AFCPUのプログラムフローチャート図。FIG. 16 is a program flowchart of an AFCPU.

【図17】AFCPUのプログラムフローチャート図。FIG. 17 is a program flowchart of an AFCPU.

【図18】(A)AFCPUのプログラムのための説明
図。 (B)AFCPUのプログラムのための説明図。
FIG. 18A is an explanatory diagram for a program of an AFCPU. (B) Explanatory drawing for the program of AFCPU.

【図19】AFCPUのプログラムのための説明図。FIG. 19 is an explanatory diagram for a program of an AFCPU.

【図20】AFCPUのプログラムのための説明図。FIG. 20 is an explanatory diagram for a program of an AFCPU.

【図21】(A)AFCPUのプログラムのための説明
図。 (B)AFCPUのプログラムのための説明図。
FIG. 21A is an explanatory diagram for a program of an AFCPU. (B) Explanatory drawing for the program of AFCPU.

【図22】AFCPUのプログラムフローチャート図。FIG. 22 is a program flowchart of an AFCPU.

【図23】AFCPUのプログラムフローチャート図。FIG. 23 is a program flowchart of an AFCPU.

【図24】AFCPUのプログラムフローチャート図。FIG. 24 is a program flowchart of an AFCPU.

【図25】AFCPUのプログラムフローチャート図。FIG. 25 is a program flowchart of the AFCPU.

【図26】AFCPUのプログラムフローチャート図。FIG. 26 is a program flowchart of the AFCPU.

【図27】AFCPUのプログラムフローチャート図。FIG. 27 is a program flowchart of an AFCPU.

【図28】従来の追尾動作の説明図。FIG. 28 is an explanatory diagram of a conventional tracking operation.

【図29】(A)第2実施例において、撮影レンズの焦
点が異なる場合における撮影レンズの軌跡を示す図。 (B)第2実施例において、撮影レンズの焦点が異なる
場合における撮影レンズの軌跡を示す図。
FIG. 29A is a diagram illustrating a locus of the photographing lens when the focal point of the photographing lens is different in the second embodiment. FIG. 6B is a diagram illustrating a locus of the photographing lens when the focal point of the photographing lens is different in the second embodiment.

【図30】(A)第3実施例の構成を説明するための
図。 (B)第3実施例の構成を説明するための図。 (C)第3実施例の構成を説明するための図。
FIG. 30A is a diagram for explaining the configuration of the third embodiment. (B) The figure for explaining the composition of the 3rd example. (C) The figure for explaining the composition of the 3rd example.

【図31】(A)第3実施例の構成を説明するための
図。 (B)第3実施例の構成を説明するための図。 (C)第3実施例の構成を説明するための図。
FIG. 31A is a diagram for explaining the configuration of the third embodiment. (B) The figure for explaining the composition of the 3rd example. (C) The figure for explaining the composition of the 3rd example.

【図32】(A)レリーズが行なわれている場合と行な
われていない場合の移動被写体に対する撮影レンズの軌
跡を示した図。 (B)レリーズが行なわれている場合と行なわれていな
い場合の移動被写体に対する撮影レンズの軌跡を示した
図。
FIG. 32A is a diagram showing a locus of a photographing lens with respect to a moving subject when a release is performed and when a release is not performed; FIG. 5B is a diagram illustrating a locus of the photographing lens with respect to the moving subject when the release is performed and when the release is not performed.

【符号の説明】[Explanation of symbols]

10 レンズ 11 撮影レンズ 12 レンズ−伝達系 13 レンズ−CPU 20 ボディ 23 AFモジュール 24 焦点検出光学系 25 CCD 26 センサ制御手段 30 AFCPU 40 AF表示手段 50 AFモータ 51 ボディ伝達系 52 エンコーダ 60 レリーズボタン 61 駒速モード選択手段 62 フォーカスモード選択手段 70 メインCPU Reference Signs List 10 lens 11 photographing lens 12 lens-transmission system 13 lens-CPU 20 body 23 AF module 24 focus detection optical system 25 CCD 26 sensor control means 30 AFCPU 40 AF display means 50 AF motor 51 body transmission system 52 encoder 60 release button 61 frames Speed mode selecting means 62 focus mode selecting means 70 main CPU

───────────────────────────────────────────────────── フロントページの続き (72)発明者 山野 省三 東京都品川区西大井1丁目6番3号 株式 会社ニコン大井製作所内 ──────────────────────────────────────────────────の Continuing on the front page (72) Inventor Shozo Yamano 1-6-3 Nishioi, Shinagawa-ku, Tokyo Nikon Oi Works Co., Ltd.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 焦点を合わせるべき被写体に対する撮影
レンズの焦点ずれ量を検出する焦点検出手段と、 前記焦点検出手段によって検出された前記焦点ずれ量信
号に基づいて、被写体の移動状態を判定する判定手段
と、 前記被写体の移動によって生じる前記焦点ずれ量の変化
量を演算する演算手段と、 前記被写体の移動によって前記焦点ずれ量の変化量を補
正するための補正量を、 前記判定手段によって検出された被写体の移動方向によ
って互いに異なる量となるように決定する補正量決定手
段と、 前記焦点検出手段により検出された前記焦点ずれ量と前
記補正量決定手段により決定された前記補正量とに基づ
いて、焦点調節用の前記撮影レンズを合焦位置に向けて
駆動するレンズ駆動手段とを備えたことを特徴とする自
動焦点調節装置を備えたカメラ。
A focus detection unit configured to detect an amount of defocus of the photographing lens with respect to a subject to be focused; and a determination to determine a moving state of the subject based on the defocus amount signal detected by the focus detection unit. Means, a calculating means for calculating a change amount of the defocus amount caused by the movement of the subject, and a correction amount for correcting the change amount of the defocus amount due to the movement of the subject is detected by the determination means. Correction amount determining means for determining different amounts depending on the moving direction of the subject, and the correction amount determined by the focus amount detecting means and the correction amount determined by the correction amount determining means. Lens driving means for driving the photographing lens for focus adjustment toward a focus position. For example was the camera.
【請求項2】 前記補正量決定手段は、被写体が前記カ
メラに近づく場合は被写体が前記カメラから遠ざかる場
合に比べて前記補正量を大きくしたことを特徴とする請
求項1記載の自動焦点調節装置を備えたカメラ。
2. The automatic focusing apparatus according to claim 1, wherein the correction amount determining means increases the correction amount when the subject approaches the camera as compared to when the subject moves away from the camera. With a camera.
JP10054887A 1988-05-13 1998-03-06 Camera provided with automatic focusing device Pending JPH10282402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10054887A JPH10282402A (en) 1988-05-13 1998-03-06 Camera provided with automatic focusing device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP63-116171 1988-05-13
JP11617188 1988-05-13
JP10054887A JPH10282402A (en) 1988-05-13 1998-03-06 Camera provided with automatic focusing device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP6253844A Division JP2809117B2 (en) 1988-05-13 1994-10-19 Automatic focusing device

Publications (1)

Publication Number Publication Date
JPH10282402A true JPH10282402A (en) 1998-10-23

Family

ID=26395718

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10054887A Pending JPH10282402A (en) 1988-05-13 1998-03-06 Camera provided with automatic focusing device

Country Status (1)

Country Link
JP (1) JPH10282402A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011128623A (en) * 2009-12-21 2011-06-30 Sony Corp Autofocus with confidence measure

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011128623A (en) * 2009-12-21 2011-06-30 Sony Corp Autofocus with confidence measure

Similar Documents

Publication Publication Date Title
US4816856A (en) Automatic focus control device
US4671640A (en) Automatic focus control camera
US5510874A (en) Automatic focusing apparatus
US4952963A (en) Focus detection apparatus for camera
JP2743929B2 (en) Automatic focusing device
JP2591086B2 (en) Display device for focus detection
US4924250A (en) Automatic focus control device
JP2743932B2 (en) Automatic focusing device
JP2743931B2 (en) Automatic focusing device
JP2743933B2 (en) Auto focus camera
JPH07181369A (en) Automatic focusing camera, and automatic focusing method of camera
JP2809117B2 (en) Automatic focusing device
JP2743930B2 (en) Camera with automatic focusing device
JPH04237008A (en) Camera system
JPH10282402A (en) Camera provided with automatic focusing device
JPH04163538A (en) Automatic focusing device
JPH05346536A (en) Focal point detecting device
JPH10186218A (en) Camera provided with automatic focusing device and focus measurement device thereof
JP2757396B2 (en) camera
JPS62215248A (en) Focus detecting device with auxiliary lighting device
JP2696923B2 (en) Automatic focusing device
JP2002072069A (en) Automatic multipoint focus detector
JP2591086C (en)
JPH11337813A (en) Autofocus camera
JPH103032A (en) Focus detector