Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0766100B2 - Automatic focus adjustment device - Google Patents
[go: Go Back, main page]

JPH0766100B2 - Automatic focus adjustment device - Google Patents

Automatic focus adjustment device

Info

Publication number
JPH0766100B2
JPH0766100B2 JP61080778A JP8077886A JPH0766100B2 JP H0766100 B2 JPH0766100 B2 JP H0766100B2 JP 61080778 A JP61080778 A JP 61080778A JP 8077886 A JP8077886 A JP 8077886A JP H0766100 B2 JPH0766100 B2 JP H0766100B2
Authority
JP
Japan
Prior art keywords
lens
focus
mode
signal
flag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP61080778A
Other languages
Japanese (ja)
Other versions
JPS61267717A (en
Inventor
正隆 浜田
徳治 石田
保明 赤田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP61080778A priority Critical patent/JPH0766100B2/en
Publication of JPS61267717A publication Critical patent/JPS61267717A/en
Publication of JPH0766100B2 publication Critical patent/JPH0766100B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 産業上の利用分野 本発明はカメラの自動焦点調節装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic focusing device for a camera.

従来の技術 従来、撮影レンズのデフォーカス(以下、DFと略す)量
及び方向を検出してそのDF量に基づいて撮影レンズを駆
動するための駆動量を算出し、その算出された駆動量及
び上記DF方向に基いて撮影レンズを合焦位置に駆動する
自動焦点調節装置が提案されている。
2. Description of the Related Art Conventionally, a defocus (hereinafter abbreviated as DF) amount and direction of a taking lens is detected, a driving amount for driving the taking lens is calculated based on the DF amount, and the calculated driving amount and An automatic focus adjustment device has been proposed that drives a taking lens to a focus position based on the DF direction.

このような自動焦点調節装置においては、DF量から駆動
量を算出する際に近似式を用いているため、算出された
駆動量には多少の誤差が含まれる。そのため上記駆動が
完了しても合焦状態とならない場合がある。
In such an automatic focus adjustment device, since an approximate expression is used when calculating the drive amount from the DF amount, the calculated drive amount includes some error. Therefore, the in-focus state may not be obtained even after the above driving is completed.

そこで、この問題を解決するため、特開昭59−204810号
公報では、算出された駆動量分の駆動が終了した後に再
度焦点検出を行って、本当に合焦状態が得られたかどう
かを確認するよう構成された自動焦点調節装置が提案さ
れている。
Therefore, in order to solve this problem, in Japanese Laid-Open Patent Publication No. 59-204810, focus detection is performed again after driving for the calculated driving amount is completed, and it is confirmed whether or not a focused state is really obtained. An automatic focusing device configured as described above has been proposed.

発明が解決しようとする課題 上記公報で提案された装置によると、確実に合焦状態が
得られるが、その反面合焦確認に要する時間だけ自動焦
点調節に要する時間(合焦と判定されるまでの時間)が
長くなり、シャッターチャンスに即応できないという問
題が生じる。
Problems to be Solved by the Invention According to the device proposed in the above publication, the in-focus state can be surely obtained. However, there is a problem that it is not possible to immediately respond to a photo opportunity.

そこで、本発明は上記公報の装置を更に改良し、合焦精
度を損なうことなく自動焦点調節に要する時間を短縮さ
せた自動焦点調節装置の提供を目的とする。
Therefore, an object of the present invention is to provide an automatic focus adjustment device in which the device disclosed in the above publication is further improved to shorten the time required for automatic focus adjustment without impairing the focusing accuracy.

課題を解決するための手段 上記目的を解決するために、本発明は、撮影レンズのデ
フォーカス量を算出する焦点検出手段と、撮影レンズを
駆動する駆動手段と、上記デフォーカス量から上記駆動
手段の駆動量を算出することが可能な駆動量算出手段
と、上記デフォーカス量が所定の合焦幅を越えるときに
は上記算出された駆動量に基づいて上記駆動手段を駆動
して撮影レンズを合焦位置へ駆動し、一方、上記デフォ
ーカス量が上記所定の合焦幅を越えないときには上記駆
動手段を停止させて撮影レンズの駆動を行わない駆動制
御手段と、上記駆動制御手段による上記駆動手段の駆動
終了後に再度焦点検出手段を動作させ、得られた検出結
果に基づいて合焦か否かを確認する合焦確認手段と、上
記デフォーカス量が所定のずれ量以下か否かを判別する
判別手段と、上記デフォーカス量が所定のずれ量以下で
はないと判別された場合、上記駆動制御手段による上記
駆動手段の駆動終了後に上記合焦確認手段による確認を
行う第1合焦判定手段と、上記デフォーカス量が所定の
ずれ量以下であると判別された場合、上記駆動制御手段
による上記駆動手段の駆動終了後に上記合焦確認手段に
よる確認を行わず、合焦と判定する第2合焦判定手段と
を有することを特徴とするものである。
Means for Solving the Problems In order to solve the above-mentioned object, the present invention provides a focus detection means for calculating a defocus amount of a photographing lens, a driving means for driving the photographing lens, and a driving means based on the defocus amount. Drive amount calculation means capable of calculating the drive amount of, and when the defocus amount exceeds a predetermined focusing width, the drive means is driven based on the calculated drive amount to focus the photographing lens. When the defocus amount does not exceed the predetermined focusing width, the drive means is stopped to drive the photographing lens, and the drive control means does not drive the photographing lens. After the driving is completed, the focus detection means is operated again, and based on the obtained detection result, the focus confirmation means for confirming whether or not the focus is achieved, and whether or not the defocus amount is equal to or less than the predetermined deviation amount are determined. When it is determined that the defocus amount is not less than or equal to a predetermined shift amount, the first focusing determination is performed by the focusing checking unit after the driving control unit finishes driving the driving unit. Means and the defocus amount is determined to be less than or equal to a predetermined deviation amount, it is determined to be in focus without performing confirmation by the focus confirmation means after the drive control unit has finished driving the drive unit. It is characterized by having two focus determination means.

つまり、DF量が小さいときには算出された駆動量に含ま
れる誤差が少なく、駆動完了時に充分な合焦精度が得ら
れるという点に着目して、DF量が小さいときには合焦確
認を行わないように構成して焦点調節終了までの時間を
短縮し、DF量が大きいときには算出された駆動量に含ま
れる誤差が大きいので合焦確認を行って高い合焦精度を
保つようにしたことを特徴とするものである。
In other words, paying attention to the fact that when the DF amount is small, the error contained in the calculated drive amount is small, and sufficient focusing accuracy can be obtained when the driving is completed. It is characterized by shortening the time until the end of focus adjustment by configuring, and when the DF amount is large, the error included in the calculated drive amount is large, so the focus is confirmed to maintain high focus accuracy. It is a thing.

作 用 本発明によると、DF量が所定値以下ではないと判別され
た場合には上記合焦確認手段によって合焦が確認される
と合焦と判定され、デフォーカス量が所定値以下である
と判定されると、上記合焦確認手段を動作させずに、上
記駆動制御手段による駆動手段の駆動が終了すると合焦
と判定される。
According to the present invention, when it is determined that the DF amount is not less than or equal to the predetermined value, it is determined to be in focus when the focus is confirmed by the focus confirmation means, and the defocus amount is less than or equal to the predetermined value. When it is determined that the in-focus state is determined to be in-focus when the drive control unit finishes driving the drive unit without operating the focus confirmation unit.

実施例 本発明の実施例による自動焦点調節のためのカメラシス
テムの概略を第1図に基づいて説明する。第1図におい
て、一点鎖線の左側はズームレンズ(LZ)、右側はカメ
ラ本体(BD)であり、両者はそれぞれクラッチ(106)
(107)を介して機構的に、接続端子(JL1)〜(JL5)
(JB1)〜(JB5)を介して電気的に接続される。このカ
メラシステムでは、ズームレンズ(LZ)のフォーカス用
レンズ(FL)、ズーム用レンズ(ZL)、マスターレンズ
(ML)を通過した被写体光が、カメラ本体(BD)の反射
ミラー(108)の中央の半透光部を透過し、サブミラー
(109)によって反射されCCDイメージセンサ(FLM)に
受光されるように、その光学系が構成されている。
Embodiment An outline of a camera system for automatic focusing according to an embodiment of the present invention will be described with reference to FIG. In FIG. 1, the left side of the alternate long and short dash line is the zoom lens (LZ), the right side is the camera body (BD), and both of them are the clutch (106).
Connection terminals (JL1) to (JL5) mechanically via (107)
(JB1) to (JB5) are electrically connected. In this camera system, the subject light that has passed through the focusing lens (FL) of the zoom lens (LZ), the zoom lens (ZL), and the master lens (ML) is at the center of the reflection mirror (108) of the camera body (BD). The optical system is configured so that the light is transmitted through the semi-transmissive portion of, and is reflected by the sub mirror (109) and received by the CCD image sensor (FLM).

インターフェース回路(112)は合焦検出モジュール(A
FM)内のCCDイメージセンサ(FLM)を駆動したり、CCD
イメージセンサ(FLM)から被写体データを取り込んだ
り、またこのデータをAFコントローラ(113)へ送り出
したりする。AFコントローラ(113)はCCDイメージセン
サ(FLM)からの信号に基づいて、合焦位置からのズレ
量を示すデフォーカス量|ΔL|とデフォーカス方向(前
ピン,後ピン)との信号を算出する。モータ(MO1)は
これら信号に基づいて駆動され、その回転はスリップ機
構(SLP)、駆動機構(LDR)、カメラ本体側クラッチ
(107)を介してズームレンズ(LZ)に伝達される。
尚、スリップ機構(SLP)はズームレンズ(LZ)の被動
部に所定以上のトルクがかかったときにすべってモータ
(MO1)にその負荷がかからないようにするものであ
る。
The interface circuit (112) is a focus detection module (A
Driving the CCD image sensor (FLM) in the FM)
It captures subject data from the image sensor (FLM) and sends this data to the AF controller (113). The AF controller (113) calculates the defocus amount | ΔL | indicating the amount of deviation from the in-focus position and the defocus direction (front focus, rear focus) based on the signal from the CCD image sensor (FLM). To do. The motor (MO1) is driven based on these signals, and its rotation is transmitted to the zoom lens (LZ) via the slip mechanism (SLP), the drive mechanism (LDR), and the camera body side clutch (107).
The slip mechanism (SLP) prevents the motor (MO1) from being overloaded by slipping when the driven part of the zoom lens (LZ) receives a torque of a predetermined value or more.

ズームレンズ(LZ)において、フォーカス用レンズ(F
L)を駆動するための焦点調節部材(102)の内周には雌
ヘリコイドネジが形成されており、これにネジ嵌合する
ように、レンズマウント(121)と一体となった固定部
(101)の外周に雄ヘリコイドネジが形成されている。
焦点調節部材(102)の外周には大歯車(103)が設けら
れており、この大歯車(103)は小歯車(104)、伝達機
構(105)を介して、レンズ側クラッチ(106)に連結さ
れている。これにより、モータ(MO1)の回転が、カメ
ラ本体のスリップ機構(SLP)、本体側のクラッチ(10
7)、レンズ側のクラッチ(106)、レンズ内の伝達機構
(105)、小歯車(104)及び大歯車(103)を介して、
焦点調節部材(102)に伝達され、ヘリコイドネジによ
ってフォーカス用レンズ(FL)が光軸方向に前後に移動
して焦点調節が行なわれる。また、レンズ(FL)の駆動
量をモニターするためのエンコーダ(ENC)がカメラ本
体(BD)の駆動機構(LDR)に連結されており、このエ
ンコーダ(ENC)からレンズ(FL)の駆動量に対応した
数のパルスが出力される。
In the zoom lens (LZ), the focusing lens (F
A female helicoid screw is formed on the inner circumference of the focus adjusting member (102) for driving L), and a fixing portion (101) integrated with the lens mount (121) is fitted to the female helicoid screw. ) Is formed with a male helicoid screw.
A large gear (103) is provided on the outer periphery of the focus adjusting member (102), and the large gear (103) is attached to the lens side clutch (106) via the small gear (104) and the transmission mechanism (105). It is connected. As a result, the rotation of the motor (MO1) is controlled by the slip mechanism (SLP) of the camera body and the clutch (10
7), through the clutch (106) on the lens side, the transmission mechanism (105) inside the lens, the small gear (104) and the large gear (103),
The focus lens (FL) is transmitted to the focus adjusting member (102) and moved back and forth in the optical axis direction by the helicoid screw to adjust the focus. An encoder (ENC) for monitoring the drive amount of the lens (FL) is connected to the drive mechanism (LDR) of the camera body (BD), and the encoder (ENC) changes the drive amount of the lens (FL). A corresponding number of pulses are output.

ここで、モータ(MO1)の回転数をNM(rot)、エンコー
ダ(ENC)からのパルス数をN、エンコーダ(ENC)の分
解能をρ(1/rot)、モータ(MO1)の回転軸からエンコ
ーダ(ENC)の取付軸までの機械伝達系の減速比をμ
P、モータ(MO1)の回転軸からカメラ本体側クラッチ
(107)までの機械伝送系の減速比をμB、レンズ側ク
ラッチ(106)から大歯車(103)までの機械伝達系を減
速比をμL、焦点調節部材(102)のヘリコイドリード
をLH(mm/rot)、フォーカス用レンズ(FL)の移動量を
Δd(mm)とすると、 N=ρ・μP・NM Δd=NM・μB・μL・LH 即ち、 Δd=N・μB・μL・LH/(P・μP) ……(1) の関係式が得られる。
Here, the number of rotations of the motor (MO1) is NM (rot), the number of pulses from the encoder (ENC) is N, the resolution of the encoder (ENC) is ρ (1 / rot), and the rotation axis of the motor (MO1) is the encoder. Reduce the reduction ratio of the mechanical transmission system up to the (ENC) mounting shaft to μ
P, the reduction ratio of the mechanical transmission system from the rotary shaft of the motor (MO1) to the camera body side clutch (107) is μB, and the reduction ratio of the mechanical transmission system from the lens side clutch (106) to the large gear (103) is μL. , LH (mm / rot) for the helicoid lead of the focus adjustment member (102) and Δd (mm) for the movement amount of the focusing lens (FL), N = ρ · μP · NM Δd = NM · μB · μL · LH That is, the relational expression of Δd = N · μB · μL·LH / (P · μP) (1) is obtained.

また、レンズをΔd(mm)だけ移動させたときの結像面
の移動量ΔL(mm)と上記Δdとの比を Kop=Δd/ΔL ……(2) で表わすと、式(1)(2)より N=Kop・ΔL・ρ・μP/(μB・μL・LH) ……
(3) の関係式が得られる。ここで、 KL=Kop/(μL・LH) ……(4) KB=ρ・μP/μB ……(5) とすると、 N=KB・KL・ΔL ……(6) の関係式が得られる。
Further, when the ratio of the movement amount ΔL (mm) of the image plane when the lens is moved by Δd (mm) and the above Δd is represented by Kop = Δd / ΔL (2), it can be expressed by equation (1) ( From 2) N = Kop ・ ΔL ・ ρ ・ μP / (μB ・ μL ・ LH) ……
The relational expression of (3) is obtained. Here, if KL = Kop / (μL·LH) (4) KB = ρ · μP / μB (5), then the relational expression of N = KB · KL · ΔL (6) is obtained. .

尚、(6)式において、ΔLは信号処理回路(112)か
らデフォーカス量|ΔL|とデフォーカス方向の信号とし
て得られる。また、(4)式のKLは、ズームレンズ(L
Z)の変倍操作用ズームリング(ZR)の回動操作により
設定された焦点距離に対応してレンズ回路(LEC)から
出力される。即ち、ズームリング(ZR)の回動位置に応
じたデータをコード板(FCD)が出力し、このデータが
レンズ回路(LEC)に送られ、このコード板(FCD)から
のデータに対応したアドレスに記憶されているKLのデー
タが直列でカメラ本体の読取回路(LDC)で読取られ
る。コード板(FCD)は、ズームリング(ZR)と回動設
定位置に対応したデータを出力するよう、コードパター
ンが定められている。また、レンズ回路(LEC)内に内
蔵されたROMのような固定記憶手段には、ズームリング
(ZR)により設定される焦点距離に対応したKLのデータ
が、それぞれコード板(FCD)からのデータに対応した
アドレスに予め固定記憶されている。
In the equation (6), ΔL is obtained from the signal processing circuit (112) as a defocus amount | ΔL | and a signal in the defocus direction. The KL in equation (4) is a zoom lens (L
It is output from the lens circuit (LEC) corresponding to the focal length set by the rotating operation of the zoom ring (ZR) for zooming operation (Z). That is, the code plate (FCD) outputs data corresponding to the rotational position of the zoom ring (ZR), this data is sent to the lens circuit (LEC), and the address corresponding to the data from this code plate (FCD) The KL data stored in is read serially by the reading circuit (LDC) of the camera body. The code pattern of the code plate (FCD) is determined so as to output data corresponding to the zoom ring (ZR) and the rotation setting position. Also, in the fixed storage means such as ROM built in the lens circuit (LEC), the KL data corresponding to the focal length set by the zoom ring (ZR) is the data from the code plate (FCD). Is fixedly stored in advance at an address corresponding to.

また、(5)式のKBはカメラ本体での前記減速比μBに
応じて固定的に定められるデータであり、このデータKB
はカメラコントローラ(111)が持っている。
Further, KB in the equation (5) is data fixedly determined according to the reduction ratio μB in the camera body, and this data KB
Is owned by the camera controller (111).

ここで、カメラ本体側の読取回路(LDC)からレンズ側
のレンズ回路(LEC)へは、端子(JB1)(JL1)を介し
て電源が、端子(JB2)(JL2)を介して同期用クロック
パルスが、端子(JB3)(JL2)を介して読込開始信号が
それぞれ送られる。また、レンズ回路(LEC)から読取
回路(LDC)へは、端子(JL4)(JB4)を介してデータK
Lが直列で出力される。尚、端子(JB5)(JL5)は共通
のアース端子である。
Here, from the camera main body side reading circuit (LDC) to the lens side lens circuit (LEC), power is supplied via terminals (JB1) (JL1) and synchronization clock is supplied via terminals (JB2) (JL2). A read start signal is sent to each pulse via terminals (JB3) (JL2). In addition, data K is transferred from the lens circuit (LEC) to the reading circuit (LDC) via terminals (JL4) (JB4).
L is output in series. The terminals (JB5) (JL5) are common ground terminals.

レンズ回路(LEC)は、端子(JB3)(JL3)を介して読
込開始信号が入力すると、ズームリングの回動設定よる
焦点距離に対応したKLのデータを、カメラ本体から端子
(JB2)(JL2)を介して入力されるクロックパルスに同
期して、直列に読取回路(LDC)へ出力する。そして、
読取回路(LDC)は端子(JB2)へ出力するクロックパル
スと同じクロックパルスに基づいて、端子からの直列デ
ータを読み取って並列データに変換する。
When a read start signal is input via the terminals (JB3) (JL3), the lens circuit (LEC) sends KL data corresponding to the focal length set by the zoom ring rotation setting from the camera body to the terminals (JB2) (JL2). ), And outputs to the reading circuit (LDC) in series in synchronization with the clock pulse input via. And
The reading circuit (LDC) reads serial data from the terminal and converts it into parallel data based on the same clock pulse as the clock pulse output to the terminal (JB2).

カメラコントローラ(111)は、読取回路(LDC)からの
データKLとその内部のデータKBとに基づいてKL・KB=K
の演算を行なう。AFコントローラ(113)はインターフ
ェース回路(112)からの被写体像のデータを使ってデ
フォーカス量|ΔL|を求め、このデフォーカス量|ΔL|
と、カメラコントローラ(111)からのデータKとに基
づいて K・|ΔL|=N の演算を行ない、エンコーダ(ENC)で検出すべきパル
ス数を算出する。AFコントローラ(113)は、被写体像
のデータを使って求めたデフォーカス方向の信号に応じ
てモータドライバ回路(114)を通してモータ(MO1)を
時計方向或いは反時計方向に回転させ、エンコーダ(EN
C)からAFコントローラ(113)での算出値Nに等しい数
のパルスが入力した時点で、フォーカス用レンズ(FL)
が合焦位置までの移動量Δdだけ移動したと判断して、
モータ(MO1)の回転を停止させる。以上の説明では、
カメラ本体(BD)側にデータKBを固定記憶させ、このデ
ータKBにレンズからのデータKLを掛けることにより K=KL・KB の値を算出させていたが、K値の算出は上述の方法に限
定されるものではない。例えば、KB値が互いに異なる複
数種類のカメラ本体のいずれに対してもズームレンズが
装着可能な場合、ズームレンズ(LZ)のレンズ回路(LE
C)から特定のKB値を有するカメラ本体に対応した K1=KL・KB1 のデータを設定焦点距離に応じて出力するようにする。
一方、この特定機種のカメラ本体では、カメラコントロ
ーラ(111)内のデータKBと、KL・KBの演算は不要とし
て読取回路(LDC)からのデータK1をAFコントローラ(1
13)へ入力しておくようにし、上記特性のKB値とは異な
る値KB2(≠KB1)を有する他カメラ本体に上記レンズが
装着されるときは、カメラコントローラ(111)内に KB2/KB1 のデータを持たせ、そして K2=K1・KB2/KB1=KL・KB2 の演算を行なってKL・KB2の値を得るようにしてもよ
い。
The camera controller (111) uses the data KL from the reading circuit (LDC) and the data KB inside it as KL · KB = K.
Is calculated. The AF controller (113) calculates the defocus amount | ΔL | using the data of the subject image from the interface circuit (112), and this defocus amount | ΔL |
And the data K from the camera controller (111), K · | ΔL | = N is calculated to calculate the number of pulses to be detected by the encoder (ENC). The AF controller (113) rotates the motor (MO1) clockwise or counterclockwise through a motor driver circuit (114) according to a defocus direction signal obtained using the subject image data, and an encoder (EN
When the number of pulses equal to the value N calculated by the AF controller (113) is input from C), the focusing lens (FL)
Is determined to have moved by the amount of movement Δd to the in-focus position,
Stop the rotation of the motor (MO1). In the above explanation,
The data KB was fixedly stored on the camera body (BD) side, and the value of K = KL · KB was calculated by multiplying this data KB by the data KL from the lens, but the K value was calculated using the above method. It is not limited. For example, if the zoom lens can be attached to any of multiple types of camera bodies with different KB values, the lens circuit (LEZ) of the zoom lens (LZ)
From C), output the data of K1 = KL · KB1 corresponding to the camera body having a specific KB value according to the set focal length.
On the other hand, in the camera body of this specific model, the data KB in the camera controller (111) and the data K1 from the reading circuit (LDC) are not necessary for the calculation of KL / KB and the AF controller (1
13) and has a value KB2 (≠ KB1) different from the KB value of the above characteristics, when the above lens is attached to another camera body, the KB2 / KB1 value in the camera controller (111) You may make it have data and perform the operation of K2 = K1 · KB2 / KB1 = KL · KB2 to obtain the value of KL · KB2.

特に、フォーカス用レンズ(FL)が前述のようにズーム
用レンズ(ZL)よりも前方に配置されている前群繰出型
のズームレンズの場合には、Kopの値は Kop=(f1/f) ……(7) f1:フォーカス用レンズの焦点距離 となり、1つのズームレンズについてのKL値またはK値
が非常に広範囲に変化する。この場合、レンズに記憶す
るデータKL或いはKを、指数部のデータと有効数字のデ
ータ(例えば、8ビットのデータであれば、上位4ビッ
トを指数部、下位4ビットを有効数字数とする)に分
け、カメラ本体の読取回路(LDC)で読取ったデータの
うち下位4ビットのデータを指数部のデータだけシフト
させてカメラコントローラ(111)へ入力するようにす
ればKLまたはKの値が大幅に変化しても充分に対応でき
る。
In particular, in the case of a front lens group type zoom lens in which the focusing lens (FL) is arranged in front of the zoom lens (ZL) as described above, the value of Kop is Kop = (f1 / f) 2 …… (7) f1: It becomes the focal length of the focusing lens, and the KL value or K value for one zoom lens changes in a very wide range. In this case, the data KL or K stored in the lens is the exponent part data and the significant digit data (for example, in the case of 8-bit data, the upper 4 bits are the exponent portion and the lower 4 bits are the significant digit number). By dividing the lower 4 bits of the data read by the reading circuit (LDC) of the camera body into the camera controller (111) by shifting the data of the exponent part, the value of KL or K can be greatly increased. Even if it changes to, it can fully respond.

尚、上記第1図についての説明では、本発明の全体的な
機能および作用を理解しやすくするために本発明の装置
が回路ブロックの組合せによって構成されるように示し
たが、実際には、それらの回路ブロックの機能のほとん
どは、以下に述べるように、マイクロコンピュータ(以
下、マイコンと称する)より達成される。
In the description of FIG. 1 above, the device of the present invention is shown to be configured by a combination of circuit blocks in order to facilitate understanding of the overall function and operation of the present invention. Most of the functions of these circuit blocks are achieved by a microcomputer (hereinafter, referred to as a microcomputer), as described below.

第2図は、本実施例のカメラ内の回路を概略的に示すブ
ロック図である。
FIG. 2 is a block diagram schematically showing a circuit in the camera of this embodiment.

第2図において、(MNS)は電源スイッチ、(POR)はそ
の電源スイッチ(MNS)の閉成に応じて後述のAFマイコ
ン(MC1)及び制御マイコン(MC2)のリセットを行うパ
ワーオンリセット回路である。(S1)はシャッタレリー
ズボタンの1段押下(半押し)により閉成されるスイッ
チで、この閉成によって測光及び自動焦点調節の動作が
開始される。(S2)は該シャッタレリーズボタンの2段
押下(押し切り)によって閉成されるスイッチで、この
閉成によって露光動作が開始される。(S4)はフイルム
の巻き上げが完了すると閉成されるスイッチである。
In Fig. 2, (MNS) is a power switch, and (POR) is a power-on reset circuit that resets the AF microcomputer (MC1) and control microcomputer (MC2) described later according to the closing of the power switch (MNS). is there. (S1) is a switch that is closed by pressing the shutter release button one step (half-press), and the operation of photometry and automatic focus adjustment is started by this closing. (S2) is a switch that is closed when the shutter release button is pressed (pressed down) in two stages, and the exposure operation is started by this closing. (S4) is a switch that is closed when the winding of the film is completed.

(MC2)は、第1図で示したカメラコントローラ(111)
の働きをするもので、カメラのシステム全体の動作をシ
ーケンス的に制御するマイクロコンピュータ(以下、制
御マイコンという)である。その端子(I1)にはスイッ
チ(S1)が接続され、端子(I2)にはアンド回路を介し
てスイッチ(S2)(S4)が接続されている。(OSC)は
その動作用の発振回路である。(MC1)は、第1図で示
したAFコントローラ(113)の働きをするもので、自動
焦点調節動作をシーケンス的に制御するマイクロコンピ
ュータ(以下、AFマイコンという)である。演算された
焦点調節状態は表示用LEDB(LEDL)(LEDM)(LEDR)に
いずれかを点灯させることによってファインダー内に表
示される。
(MC2) is the camera controller (111) shown in Fig. 1.
Is a microcomputer that controls the operation of the entire camera system in a sequence (hereinafter, referred to as a control microcomputer). A switch (S1) is connected to the terminal (I1), and switches (S2) (S4) are connected to the terminal (I2) via an AND circuit. (OSC) is an oscillator circuit for that operation. (MC1) functions as the AF controller (113) shown in FIG. 1, and is a microcomputer (hereinafter referred to as AF microcomputer) that controls the automatic focusing operation in sequence. The calculated focus adjustment state is displayed in the viewfinder by turning on one of the display LEDB (LEDL) (LEDM) (LEDR).

(SAF/M)は自動焦点調節モード(以下、AFモードとい
う)と手動焦点調節モード(以下、nonAFモードとい
う)との切り換えのためのスイッチで、閉成されるとAF
モード、開放されているとnonAFモードとなり、そのSAF
/M信号は制御マイコン(MC2)の端子(PT6)に入力され
る。ここで、nonAFモードには、焦点調節状態の表示の
みなされてレンズは移動されないFAモードと、該表示も
なされないMANUALモードとが設けられている。(SA/R)
は自動焦点調節の完了後にシャッタレリーズを行うAF優
先モードと、自動焦点調節の完了前でもスイッチ(S2)
の閉成に応じてシャッタレリーズを行うレリーズ優先モ
ードとを選択的に切り換えるスイッチで、閉成されると
AF優先モード、開放されるとレリーズ優先モードとな
り、そのSA/R信号は制御マイコン(MC2)の端子(PT7)
に入力される。(MDR2)はフイルムの巻き上げ、巻き戻
し用のモータ(MO2)を制御するドライバ回路で、制御
マイコン(MC2)からのMM、MN信号によってモータ(MO
2)の回転方向、回転量を制御するものである。MM、MN
信号とモータ(MO2)の動作との関係を第1表に示す。
(SAF / M) is a switch for switching between automatic focus adjustment mode (hereinafter referred to as AF mode) and manual focus adjustment mode (hereinafter referred to as nonAF mode), which is AF when closed.
Mode, when it is open, it becomes nonAF mode, and its SAF
The / M signal is input to the terminal (PT6) of the control microcomputer (MC2). Here, the non-AF mode is provided with an FA mode in which the lens is not moved because the focus adjustment state is considered to be displayed, and a MANUAL mode in which the display is not performed. (SA / R)
Is the AF priority mode that performs shutter release after the completion of automatic focus adjustment and the switch (S2) even before the completion of automatic focus adjustment
When the shutter is closed, it is a switch that selectively switches between the shutter release priority mode in which the shutter is released according to the closing of the
AF priority mode, when released, it becomes release priority mode, and its SA / R signal is the control microcomputer (MC2) terminal (PT7)
Entered in. (MDR2) is a driver circuit for controlling the motor (MO2) for winding and rewinding the film, and the motor (MO2) is controlled by the MM and MN signals from the control microcomputer (MC2).
It controls the direction and amount of rotation in 2). MM, MN
Table 1 shows the relationship between the signals and the operation of the motor (MO2).

(EDO)はプログラムモード/シャッタ速度優先モード
/絞り優先モード/マニュアルモードなどの露出制御モ
ードのうち手動により選択されたモードを制御マイコン
(MC2)に伝達するとともに、そのモードによる露出制
御に必要なシャッタ速度、絞り値、フイルム感度、露出
補正値などの情報をも制御マイコン(MC2)に伝達する
ための露出制御設定回路である。(BS1)(BS2)はその
データラインである。
(EDO) transmits the manually selected mode among the exposure control modes such as program mode / shutter speed priority mode / aperture priority mode / manual mode to the control microcomputer (MC2) and is required for the exposure control in that mode. An exposure control setting circuit for transmitting information such as shutter speed, aperture value, film sensitivity, and exposure correction value to the control microcomputer (MC2). (BS1) and (BS2) are the data lines.

(LMC)は測光回路で、そのANI信号はA/D変換用基準電
圧を示し、VRI信号はアナログの測光信号を示し、これ
らはそれぞれ制御マイコン(MC2)の端子(PT7)(PT
8)に入力されている。(EXD)は制御マイコン(MC2)
内で演算された適正露出値(シャッタ速度、絞り値な
ど)を表示する露出表示回路で、(BS3)はそのデータ
ラインである。(EXC)は、制御マイコン(MC2)内で演
算された適正露出値(シャッタ速度、絞り値など)及び
設定された露出値に応じて露出制御を行う露出制御回路
で、(BS4)はそのデータラインである。
(LMC) is a photometric circuit, the ANI signal of which indicates a reference voltage for A / D conversion, the VRI signal of which indicates an analog photometric signal. These are respectively terminals (PT7) (PT7)
8) has been entered. (EXD) is the control microcomputer (MC2)
An exposure display circuit that displays the proper exposure value (shutter speed, aperture value, etc.) calculated in (BS3) is its data line. (EXC) is an exposure control circuit that controls exposure according to the proper exposure value (shutter speed, aperture value, etc.) calculated in the control microcomputer (MC2) and the set exposure value, and (BS4) is the data It is a line.

(FLS)はカメラに装着された電子閃光装置内の回路
(以下、フラッシュ回路という)を示し、この回路(FL
S)は電子閃光装置がカメラに装着されると、端子(ST
1)(ST2)(ST3)(ST4)(ST5)及び(GND)によって
カメラ側の回路と接続される。このフラッシュ回路(FL
S)の詳細を第3図に示す。
(FLS) indicates a circuit (hereinafter referred to as a flash circuit) in the electronic flash device attached to the camera.
S) is the terminal (ST
1) Connected to the camera side circuit by (ST2) (ST3) (ST4) (ST5) and (GND). This flash circuit (FL
The details of S) are shown in FIG.

第3図は、フラッシュ回路(FLS)を示し、同図におい
て、(20)はメインスイッチ、(22)は電源電池で、メ
インスイッチ(20)が閉成されると電源電池(22)の電
圧はDC−DCコンバータ(24)によって昇圧され、ダイオ
ード(26)を介して主コンデンサ(28)に供給される。
(GND)はアース端子である。主コンデンサ(28)の充
電電圧は充電モニター回路(30)によってモニターさ
れ、その電圧が所定量に達すると充電完了検出回路(3
2)から充電完了信号が出力され、これはアンド回路(3
4)を介して端子(ST2)に伝達される。カメラ側では、
この充電完了信号を受けた後に、端子(ST1)を介して
発光開始信号を出力し、これによってトリガー回路(3
6)がトリガーされてSCR(38)が導通し閃光放電管(4
0)が主コンデンサ(28)のエネルギーによって発光し
はじめる。この発光開始信号は発光開始モニター回路
(42)にも入力され、この発光開始モニター回路(42)
は発光開始信号を受けると、アンド回路(34)を閉じて
充電完了信号の端子(ST2)への伝達を阻止する。カメ
ラ側の側光回路(LMC)によって適正露出に達したこと
が検出されると、カメラ側から端子(ST3)に発光停止
信号を出力し、発光停止回路(44)はこの発光停止信号
を受けて、閃光放電管(40)の発光を停止させる。
FIG. 3 shows a flash circuit (FLS), in which (20) is a main switch, (22) is a power battery, and when the main switch (20) is closed, the voltage of the power battery (22) is changed. Is boosted by the DC-DC converter (24) and supplied to the main capacitor (28) through the diode (26).
(GND) is the ground terminal. The charge voltage of the main capacitor (28) is monitored by the charge monitor circuit (30), and when the voltage reaches a predetermined amount, the charge completion detection circuit (3
2) outputs the charge completion signal, which is the AND circuit (3
It is transmitted to the terminal (ST2) via 4). On the camera side,
After receiving this charge completion signal, a light emission start signal is output via the terminal (ST1), which causes the trigger circuit (3
6) is triggered, the SCR (38) becomes conductive and the flash discharge tube (4
0) starts to emit light by the energy of the main capacitor (28). This light emission start signal is also input to the light emission start monitor circuit (42), and this light emission start monitor circuit (42)
When the light emission start signal is received, the AND circuit (34) is closed to prevent transmission of the charge completion signal to the terminal (ST2). When the side light circuit (LMC) on the camera detects that proper exposure has been reached, the camera outputs a light emission stop signal to the terminal (ST3), and the light emission stop circuit (44) receives this light emission stop signal. Then, the light emission of the flash discharge tube (40) is stopped.

(45)は、被写体が暗いときに電子閃光装置から焦点調
節状態検出のための補助照明を行うように閉成されるAF
補助光スイッチで、これが閉成されると端子(ST5)か
ら補助光による焦点検出のための照明が可能であること
を示すAF補助光OK信号が出力される。そして、カメラ側
でこの補助光を要すると判断した場合は、端子(ST4)
にAF補助光発光信号が入力され、これによってトランジ
スタ(46)が導通し、補助光用LED(48)が発光され
る。
(45) is an AF that is closed to provide auxiliary illumination from the electronic flash device to detect the focus adjustment state when the subject is dark.
When the auxiliary light switch is closed, the terminal (ST5) outputs an AF auxiliary light OK signal indicating that illumination for focus detection by auxiliary light is possible. If the camera determines that this auxiliary light is required, the terminal (ST4)
An AF auxiliary light emission signal is input to the transistor, the transistor (46) becomes conductive, and the auxiliary light LED (48) emits light.

第2図に戻って、(Sx)はカメラのシンクロスイッチ、
(FLB)は電子閃光装置の発光時間を制御する発光制御
回路である。(LEC)(LDC)は、それぞれ、第1図と同
様、レンズ内のレンズ回路及びカメラ内の読取回路であ
り、カメラにレンズが装着されると両回路は端子(JB
1)〜(JB5)及び(JL1)〜(JL5)によって互いに接続
される。図中、(VL)は電源、(RES)は読取開始信
号、(CL)はクロックパルス、(DATA)はデータ、
(G)はアースをそれぞれ示す。読取回路(LDC)には
制御マイコン(MC2)の端子(SCK)からクロックパルス
が入力されており、該読取回路(LDC)は制御マイコン
(MC2)の端子(TXD)から出力されるシリアルデータ出
力信号に応じて、その端子(RXD)にレンズのデータを
シリアルで入力する。
Returning to FIG. 2, (Sx) is the synchro switch of the camera,
(FLB) is a light emission control circuit that controls the light emission time of the electronic flash device. (LEC) and (LDC) are the lens circuit inside the lens and the reading circuit inside the camera, respectively, as in Fig. 1. When the lens is attached to the camera, both circuits are
1) to (JB5) and (JL1) to (JL5) are connected to each other. In the figure, (VL) is the power supply, (RES) is the read start signal, (CL) is the clock pulse, (DATA) is the data,
(G) indicates ground respectively. A clock pulse is input to the reading circuit (LDC) from the control microcomputer (MC2) terminal (SCK), and the reading circuit (LDC) is output from the control microcomputer (MC2) terminal (TXD) serial data output. Lens data is serially input to that terminal (RXD) according to the signal.

(FLM)は第1図図示のCCDイメージセンサ、(IF1)は
センサ駆動用のインターフェース回路、(MDR1)は第1
図の(114)に相当し、レンズ駆動用モータ(MO1)の駆
動を制御するドライバー回路、(ENC)は第1図と同様
のエンコーダである。
(FLM) is the CCD image sensor shown in FIG. 1, (IF1) is the sensor driving interface circuit, and (MDR1) is the first
A driver circuit (ENC) corresponding to (114) in the figure, which controls the driving of the lens driving motor (MO1), is an encoder similar to that in FIG.

第4図及び第5図は第2図の制御マイコン(MC2)の動
作を示すフローチャートである。以下このフローチャー
トに基づいて第2図のシステムの動作を説明するが、そ
の前にまず本実施例で用いられる各フラグの名称及びそ
の内容について第2表及び第3表に示す。
4 and 5 are flowcharts showing the operation of the control microcomputer (MC2) shown in FIG. The operation of the system shown in FIG. 2 will be described below with reference to this flowchart. Before that, the names and contents of the flags used in this embodiment are shown in Tables 2 and 3.

第4図において、まずスイッチ(S1)が閉成され端子
(I1)に割込信号が入力すると制御マイコン(MC2)は
動作を開始する。まず、ステップS1で、レリーズフラグ
RLFをクリアしておく。このフラグは、カメラの撮影モ
ードの連続撮影(以後転写モードと呼ぶ)と単発撮影
(以後単写モードと呼ぶ)との区別に用いるフラグであ
る。ここで、連写モードとは、一度のスイッチ(S2)の
ONで続けて写真がとれるモードを指し、単写モードと
は、一度のスイッチ(S2)のONに対し一枚の撮影ができ
るモードを指す。次にS2で制御マイコン(MC2)の端子
(Xout)からAFマイコン(MC1)にAFマイコン駆動クロ
ックCKを供給する。次にS3でシリアル入出力動作を複数
回行なってレンズ回路(LEC)から複数のデータを取込
んで、自動焦点調節に必要な変換係数(KROM)、補助光
の発する波長の光と可視光との合焦位置の補正用データ
(△IR)、バックラッシュデータ(BKLSH)、AF(自動
焦点調節)又はFA(焦点調節状態表示)のための焦点検
出演算が可能かどうかを判断するためのAF用開放F値
(AFAV0)、レンズ装着の判別(LENSF)、AF用カプラー
軸の有無(AFCF)、焦点検出可能なレンズかどうか(FA
ENL)の各信号を制御マイコン(MC2)内のメモリに保存
しておく。ステップS4では露出制御などのための設定デ
ータを出力する露出制御値設定回路(EDO)からのデー
タを取り込む。これには、露出に関したデータと単写又
は連写モードの別が含まれている。S5では制御マイコン
(MC2)の端子(P51)から出力されるAFS信号を“Low"
にする。これはAFマイコン(MC1)の割り込み端子(INT
1)に入力されており、この信号の立ち下りによってAF
マイコン(MC1)は動作を開始する。同時に端子(PT2)
からのINREL信号は“High"としておく。これはAFマイコ
ン(MC1)の割り込み端子(INT2)に入力されている
が、割り込みは立ち下りでかかるため、この割り込みは
かからない。
In FIG. 4, when the switch (S1) is closed and an interrupt signal is input to the terminal (I1), the control microcomputer (MC2) starts its operation. First, in step S1, the release flag
Clear RLF. This flag is used to distinguish between continuous shooting (hereinafter referred to as transfer mode) and single-shot shooting (hereinafter referred to as single-shot mode) in the shooting modes of the camera. Here, the continuous shooting mode means the switch (S2)
When it is ON, it refers to the mode in which you can take pictures continuously, and single-shot mode refers to the mode in which one shot can be taken with one switch (S2) turned ON. Next, in S2, the AF microcomputer drive clock CK is supplied from the control microcomputer (MC2) terminal (Xout) to the AF microcomputer (MC1). Next, in S3, serial input / output operations are performed multiple times to capture multiple data from the lens circuit (LEC), and the conversion coefficient (KROM) necessary for automatic focus adjustment, the light of the wavelength emitted by the auxiliary light, and the visible light AF for determining whether focus detection calculation is possible for AF focus position correction data (△ IR), backlash data (BKLSH), AF (automatic focus adjustment) or FA (focus adjustment status display) For open F value (AFAV0), lens attachment discrimination (LENSF), presence or absence of AF coupler axis (AFCF), whether the lens can detect focus (FA
Save each signal of (ENL) in the memory in the control microcomputer (MC2). In step S4, data from the exposure control value setting circuit (EDO) that outputs setting data for exposure control and the like is fetched. This includes data relating to exposure and whether to use single-shot or continuous-shot mode. In S5, set the AFS signal output from the control microcomputer (MC2) terminal (P51) to "Low".
To This is the interrupt pin (INT of the AF microcomputer (MC1)
The signal is input to 1) and the AF
The microcomputer (MC1) starts operation. Terminal (PT2) at the same time
The INREL signal from is set to "High". This is input to the interrupt terminal (INT2) of the AF microcomputer (MC1), but this interrupt does not occur because the interrupt occurs at the falling edge.

第4図のフローチャートではS5からS10、S22からS3へと
ループしてくる場合がある。ループ中にS5を通過した場
合には、何度もAFS信号は立ち下がりINREL信号は立ち上
がるが、すでにAFS信号は“Low"、INREL信号は“High"
であるのでAFマイコン(MC1)へは割り込みはかからな
い。AFマイコン(MC1)の動作がスタートすると、制御
マイコン(MC2)からAFマイコン(MC1)の動作のための
設定データや、レンズからのデータがシリアルで送られ
る。制御マイコン(MC2)の端子(SCK)からのクロック
信号に同期させて、制御マイコン(MC2)の端子(TXD)
からシリアルで8ビットデータが5バイト、第4表のよ
うな内容が出力され、AFマイコン(MC1)の端子(TXD)
に入力される。
In the flowchart of FIG. 4, there may be a case where a loop is made from S5 to S10 and S22 to S3. When passing S5 in the loop, the AFS signal falls and the INREL signal rises many times, but the AFS signal is already "Low" and the INREL signal is "High".
Therefore, the AF microcomputer (MC1) is not interrupted. When the operation of the AF microcomputer (MC1) is started, the setting data for the operation of the AF microcomputer (MC1) and the data from the lens are serially sent from the control microcomputer (MC2). The control microcomputer (MC2) terminal (TXD) is synchronized with the clock signal from the control microcomputer (MC2) terminal (SCK).
Serially outputs 5 bytes of 8-bit data and the contents shown in Table 4 are output, and the AF microcomputer (MC1) terminal (TXD)
Entered in.

制御マイコン(MC2)は、AFマイコン(MC1)の端子(P1
1)から制御マイコン(MC2)の端子(PT4)へ出るDTRQ
信号をデータ要求の合図とみて、データ出力を開始す
る。制御マイコン(MC2)ではS6でこのDTRQ信号が“Lo
w"になるのを待ち、“Low"になればS7へ進み、データを
送る。S7のAESIOはAFマイコン(MC1)へマイコンの動作
モードを決めるためのデータを作り、シリアルでデータ
を送る部分であるが、第5図に別ルーチンとして示して
ある。
The control microcomputer (MC2) is connected to the AF microcomputer (MC1) terminal (P1
DTRQ from 1) to control microcomputer (MC2) terminal (PT4)
The signal is regarded as a signal of data request, and data output is started. In the control microcomputer (MC2), this DTRQ signal is "Lo" in S6.
Wait until it becomes "w", and if it becomes "Low", proceed to S7 and send the data. The AESIO of S7 makes the data to determine the operation mode of the AF microcomputer (MC1) and sends the data serially. However, it is shown as another routine in FIG.

第5図のステップS29から始まるAESIOのルーチンの最初
はまず、AFFL,RDY,DR,AFC,FAENの各信号の入っている制
御マイコン(MC2)の第5シリアルデータのRAMをクリア
しておく。S30,S31,S32ではFAEN信号を決める。まずS30
でレンズ回路(LEC)から来るデータのLENSF信号を見
て、LENSF=0でレンズなしという信号になっていれ
ば、FAEN信号は“0"のままS33へ進む。レンズが装着さ
れていてLENSF=1の場合、FAENL信号が“1"すなわち焦
点検出可能のレンズであれば、S32へ進みFAEN信号を
“1"にしておき、FAENL信号が“0"ならFAEN信号は“0"
のままとなる。
At the beginning of the AESIO routine starting from step S29 in FIG. 5, first, the RAM of the fifth serial data of the control microcomputer (MC2) containing the signals AFFL, RDY, DR, AFC, FAEN is cleared. The FAEN signal is determined in S30, S31, and S32. First S30
Check the LENSF signal of the data coming from the lens circuit (LEC), and if LENSF = 0 indicates no lens, the FAEN signal remains “0” and the process proceeds to S33. If the lens is attached and LENSF = 1, if the FAENL signal is "1", that is, if the lens is focus-detectable, go to S32 and set the FAEN signal to "1". is 0"
Will remain.

次にS33からS35ではAFC信号を決める。S33で端子(PT
6)に入力されるSAF/M信号を見る。SAF/M信号は、カメ
ラ外部からカメラレンズを自動焦点調節させるか否かを
決めるスイッチで、“High"であればAFモード(カメラ
本体内で装着された撮影レンズの焦点調節状態を検出
し、その結果に応じて撮影レンズの焦点調節を自動的に
行うモード)、“Low"であればnonAFモードとなる。S33
でSAF/M信号が“0"であれば、AFC信号は“0"のままS36
へ進み、“1"であればS34に進みレンズからのデータのA
FCF信号を見る。S34でAFCF信号が“1"であればレンズに
AF用のカプラー軸があるということで、S35でAFC信号を
“1"にしておく。すなわち、レンズにAF用のカプラー軸
がありかつカメラの動作スイッチ(SAF/M)が閉成され
てAF側にある時に、AFC信号が“1"になり、これ以外は
“0"としておく。
Next, in S33 to S35, the AFC signal is determined. Terminal at S33 (PT
Check the SAF / M signal input to 6). The SAF / M signal is a switch that decides whether or not to automatically adjust the focus of the camera lens from outside the camera. If it is "High", the AF mode (the focus adjustment state of the shooting lens mounted in the camera body is detected, Depending on the result, the mode for automatically adjusting the focus of the taking lens), and if it is "Low", it will be the non-AF mode. S33
If the SAF / M signal is “0” in, the AFC signal remains “0” in S36.
If it is "1", go to S34 and use the data A from the lens.
Watch the FCF signal. If the AFCF signal is "1" in S34, select the lens
Since there is a coupler axis for AF, set the AFC signal to "1" in S35. That is, when the lens has the coupler axis for AF and the operation switch (SAF / M) of the camera is closed to be on the AF side, the AFC signal becomes "1", and other than that, it is set to "0".

S36,S37でカメラの駆動モードの設定が連写モードであ
れば、DR信号を“1"にし、単写モードであればDR信号は
“0"のままとなる。次にS38,S39でカメラに装着された
電子閃光装置からの信号をチェックし、電子閃光装置が
カメラに取り付けられて、AF用補助光スイッチ(45)が
入っていればフラッシュ回路(FLS)の端子(ST5)が
“High"状態になって端子(PT11)に入り、S38でPT11=
“High"であれば、S39でAFFL信号を“1"にしておく。こ
れは、AFマイコン(MC1)に対してはAF用補助光発光可
能という信号になる。(詳細は後述する。) S40,S41ではRDY信号をセットする。電子閃光装置の充電
が完了すればフラッシュ回路(FLS)の端子(ST2)が
“High"状態になり、これが端子(PT9)に入力されてい
るのでS40でPT9=“High"であればS41に進みRDY信号を
“1"にセットする。この信号も後述する補助光を用いる
焦点検出時(以下、補助光AFモードという)に使用す
る。そして、S42でレンズから送られてきたデータをAF
マイコン(MC1)へ送り出すためにシリアル転送用レジ
スタにセットする。S43ではシリアル転送開始のためのC
SAF信号を“High"にする。これは、AFマイコン(MC1)
からのシリアル転送要求のDTRQ信号に返答したものでCS
AF信号が“High"になると、AFマイコン(MC1)がシリア
ルデータの取り込みを始める。そして、S44で8ビット
5バイトのデータをAFマイコン(MC1)へ転送する。S45
でCSAF信号“Low"にもどしてシリアル転送が終了する。
If the camera drive mode setting in S36 and S37 is continuous shooting mode, the DR signal is set to "1", and in single shooting mode, the DR signal remains "0". Next, in S38 and S39, the signal from the electronic flash device attached to the camera is checked, and if the electronic flash device is attached to the camera and the AF auxiliary light switch (45) is on, the flash circuit (FLS) The terminal (ST5) goes into the "High" state and enters the terminal (PT11). At S38, PT11 =
If it is "High", the AFFL signal is set to "1" in S39. This is a signal to the AF microcomputer (MC1) that the AF auxiliary light can be emitted. (Details will be described later.) Set the RDY signal in S40 and S41. When charging of the electronic flash device is completed, the terminal (ST2) of the flash circuit (FLS) goes to the "High" state, and this is input to the terminal (PT9). Go ahead and set the RDY signal to "1". This signal is also used at the time of focus detection using auxiliary light described below (hereinafter referred to as auxiliary light AF mode). Then, AF the data sent from the lens in S42
Set it in the serial transfer register to send it to the microcomputer (MC1). In S43, C to start serial transfer
Set the SAF signal to "High". This is an AF microcomputer (MC1)
In response to the DTRQ signal of the serial transfer request from CS
When the AF signal becomes "High", the AF microcomputer (MC1) starts capturing serial data. Then, in S44, the 8-bit 5-byte data is transferred to the AF microcomputer (MC1). S45
Then, the CSAF signal is returned to "Low" and the serial transfer is completed.

次に第4図のメインルーチンにもどって、次のステップ
S8へ進む。ここでは測光回路(LMC)から、測光出力のA
NI信号とA/D変換用基準電圧のVRI信号とを取り入れて、
測光出力をA/D変換し、露出演算に必要なデータとして
用意しておく。次にS9で定常光用、フラッシュ光用の露
出演算を行う。次のS10では制御マイコン(MC2)の端子
(I2)が“Low"になっているかどうかをチェックし、レ
リーズされたかどうかを見る。シャッタがチャージさ
れ、スイッチ(S4)がONの状態でレリーズボタンが2段
押しされ、スイッチ(S2)がONになれば、端子(I2)は
“Low"になっているはずである。端子(I2)が“High"
であれば、レリーズされていないのでS25へ進む。S25で
はレリーズフラグRLFをクリアしておく。そして、ステ
ップS26では電子閃光装置から充電完了信号がきている
かどうかを判別し、充電完了信号がきている場合にはS2
7に進みフラッシュ光撮影用データを表示部(EXD)に送
り、充電完了信号が来ていなければS28に進み定常光撮
影データを表示部(EXD)に送って表示してステップS22
に移行する。そしてステップS22ではスイッチ(S1)が
閉成されたままで端子(I1)が“Low"になっているかど
うかを判別して“Low"になっていればステップS3に戻っ
て前述と同様の動作を繰り返す。
Next, return to the main routine of FIG. 4 and perform the next step.
Go to S8. Here, from the photometry circuit (LMC),
Taking in the NI signal and the VRI signal of the reference voltage for A / D conversion,
A / D convert the photometric output and prepare it as the data required for exposure calculation. Next, in S9, the exposure calculation for the constant light and the flash light is performed. At the next step S10, it is checked whether the terminal (I2) of the control microcomputer (MC2) is "Low" to see if the release has been made. If the shutter is charged, the switch (S4) is on, the release button is pressed in two steps, and the switch (S2) is turned on, the terminal (I2) should be "Low". Terminal (I2) is "High"
If so, proceed to S25 because it has not been released. In S25, the release flag RLF is cleared. Then, in step S26, it is determined whether or not the charging completion signal is received from the electronic flash device, and if the charging completion signal is received, S2
Proceed to 7 to send the flash light photographing data to the display unit (EXD), and if the charging completion signal is not received, proceed to S28 to send the constant light photographing data to the display unit (EXD) for display and display the data in step S22.
Move to. Then, in step S22, it is determined whether the terminal (I1) is "Low" with the switch (S1) still closed, and if it is "Low", the process returns to step S3 and the same operation as described above is performed. repeat.

一方、ステップS22で端子(I1)が“High"になっている
ことが判別されると、S23へ進み、AFマイコン(MC1)の
動作をストップさせる。ストップのさせ方は、AFマイコ
ン(MC1)の端子(INT1)にAFS信号で割り込みをかけ
る。AFS信号によるAFマイコン(MC1)のスタートと、AF
S信号によるストップのためのわりこみと区別するため
に、ストップ用割り込みは立ち下がり後50μs未満で再
び立ち上がるようにしている(第17図(B)参照)。な
お測光のみのフローS26〜S28から割り込みがかかる時は
AFS信号は“Low"であるので、ストップ信号は一旦“Hig
h"となってから立ち下がり、レリーズのフローS11〜S21
から割り込みがかかる時はAFS信号は“High"であるので
ストップ信号はその立ち下がりとなる。この割り込みに
よってAFマイコン(MC1)はストップモードに入り、自
動焦点調節動作も止まる。S24では表示部(EXD)の露出
表示を消し、制御マイコン(MC2)は動作を停止する。
On the other hand, when it is determined in step S22 that the terminal (I1) is "High", the process proceeds to S23, and the operation of the AF microcomputer (MC1) is stopped. The way to stop is to interrupt the AF microcomputer (MC1) terminal (INT1) with the AFS signal. Start of AF microcomputer (MC1) by AFS signal and AF
In order to distinguish it from the interruption for stopping by the S signal, the stop interrupt is made to rise again in less than 50 μs after falling (see FIG. 17 (B)). If only the metering flow is interrupted from S26 to S28,
Since the AFS signal is “Low”, the stop signal is once “Hig
Release after "h", flow of release S11 ~ S21
When an interrupt occurs, the AFS signal is "High", so the stop signal falls. This interrupt causes the AF microcomputer (MC1) to enter stop mode and stop the automatic focus adjustment operation. In S24, the exposure display on the display (EXD) is turned off, and the control microcomputer (MC2) stops operating.

次に測光を繰り返し、フローがループしている最中にレ
リーズされれば、端子(12)が“Low"となる。するとS1
0のチェックで今度はS11へ進む。次にレリーズフラグRL
Fをチェックし1であればS26へ進む。これは、単写モー
ドで1度レリーズされていればS21〜S22でレリーズフラ
グRLFが1にセットされており、レリーズボタン2段押
しでスイッチ(S2)がONになっている状態のままでは、
再びレリーズされない。一方、スイッチ(S1)をONにし
たままスイッチ(S2)をOFFした場合には、ステップS10
からS25へ進み、レリーズフラグRLFがクリアされる。す
なわち次に再びスイッチ(S2)がONになった場合には、
S11からS12へ進みレリーズされることになる。
Next, if photometry is repeated and the flow is released in the middle of looping, the terminal (12) becomes "Low". Then S1
Check 0 and go to S11. Next, release flag RL
Check F and if 1, go to S26. This means that if the shutter is released once in single shooting mode, the release flag RLF is set to 1 in S21 to S22, and if the switch (S2) is turned on by pressing the release button two steps,
Not released again. On the other hand, if the switch (S2) is turned off while the switch (S1) is turned on, step S10
From S25, the release flag RLF is cleared. That is, when the switch (S2) is turned on again next time,
It will be released from S11 to S12.

次にS12で、端子(PT7)に入力されているAF優先/レリ
ーズ優先の切り換え信号をチェックする。ここでAF優先
モードとは、スイッチ(S2)をONにしていても自動焦点
調節でピント合わせが完了して初めてレリーズをするモ
ードで、レリーズ優先モードとは、自動焦点調節中ピン
トが合わなくてもスイッチ(S2)が閉成されればいつで
もレリーズするモードである。S12ではSA/R信号が“Hig
h"(SA/R=1)であればAF優先モードとなりS13へ進
み、AFE信号をチェックする。これは、AFマイコン(MC
1)の端子(P12)から出力される信号で、AFマイコン
(MC2)が焦点検出して合焦であると判断した時に“Hig
h"になる信号である。S13は合焦状態かどうかを判断し
ていることになる。そして、合焦であればAFE信号は
“1"でありS14に進み、レリーズに入る。S13でAFE信号
が“0"であればS26へ行きレリーズされない。一方S12で
レリーズ優先モードであればS14へ進みレリーズされ
る。S12でチェックするSA/R信号は、カメラに取り付け
られているスイッチの手動選択に応じた信号であるが、
これは又、不図示のセルフタイマースイッチにも連動さ
れており、セルフタイマーが起動されると、AF優先モー
ドの状態にスイッチがあっても、レリーズ優先モードに
切り換わる。セルフタイマー時はレリーズ優先モードと
なるわけである。なおセルフタイマー使用時は、S14とS
15の間の不図示のセルフタイマー用時間待ち、例えば、
10秒間の時間待ちが入る。又、端子(PT7)には、カメ
ラボディに設けられたスイッチ(SA/R)が接続されてい
るが、これをカメラボディの外部へ出して、外部コント
ローラ(例えばコントローラブル裏ぶた)或いはリモコ
ン用のレシーバー等にゆだねてもよい。
Next, in S12, the AF priority / release priority switching signal input to the terminal (PT7) is checked. Here, the AF priority mode is a mode in which the shutter is released only after focusing is completed by the automatic focus adjustment even if the switch (S2) is turned on.The release priority mode is the focus during automatic focus adjustment. Is a mode that releases any time the switch (S2) is closed. In S12, SA / R signal is "Hig
If h "(SA / R = 1), the AF priority mode is set, and the process advances to S13 to check the AFE signal. This is the AF microcomputer (MC
When the AF microcomputer (MC2) detects the focus by the signal output from the terminal (P12) of 1) and determines that it is in focus, “Hig
It is a signal which becomes "h". In S13, it is determined whether or not it is in focus. If it is in focus, the AFE signal is "1" and the flow advances to S14 to enter the release. If the signal is “0”, it goes to S26 and is not released. On the other hand, if the release priority mode is at S12, it goes to S14 and is released. The SA / R signal to be checked at S12 is manually selected by the switch attached to the camera. Is a signal according to
This is also linked to a self-timer switch (not shown), and when the self-timer is activated, it switches to the release priority mode even if the switch is in the AF priority mode. During the self-timer, the release priority mode is set. When using the self-timer, S14 and S
Wait time for self-timer (not shown) between 15,
Wait for 10 seconds. Also, the switch (SA / R) provided on the camera body is connected to the terminal (PT7), but this switch is taken out of the camera body and used for an external controller (for example, a controllable back cover) or a remote controller. You can leave it to the receiver.

次にS14ではAFマイコン(MC1)に対し端子(PT2)から
レリーズしたというINREL信号を出す。INREL信号はAFマ
イコン(MC1)のわりこみ端子(INT2)に入力され、こ
の信号の立ち下りによって割り込みがかかり、AFマイコ
ン(MC1)は、レリーズルーチンへ飛ぶ。そして自動焦
点調節中でレンズ駆動中であっても動作を止めて、表示
も消し、レリーズ終了を待つ。S14では、次のレリーズ
終了と、AFマイコン(MC1)の動作開始に備えて、AFS信
号を"High"にしておく。次にステップS15に移行してフ
ラッシュ回路(FLS)から充電完了信号が入力している
かどうかを端子(PT9)を見て判別し、入力されていれ
ばS16へ進み閃光撮影用の露出制御データを露出制御回
路(EXC)に送り、充電完了信号が入力してなければS17
で定常光用の露出制御データを露出制御回路(EXC)に
送る。そして、S18で露出制御動作を開始させる。
Next, in S14, an INREL signal indicating that the release has been made from the terminal (PT2) to the AF microcomputer (MC1) is issued. The INREL signal is input to the interrupt terminal (INT2) of the AF microcomputer (MC1), and the falling edge of this signal causes an interrupt, causing the AF microcomputer (MC1) to jump to the release routine. Then, even if the lens is being driven during automatic focusing, the operation is stopped, the display is turned off, and the release is completed. At S14, the AFS signal is set to "High" in preparation for the end of the next release and the start of the operation of the AF microcomputer (MC1). Next, in step S15, it is determined whether the charging completion signal is being input from the flash circuit (FLS) by looking at the terminal (PT9). Send to the exposure control circuit (EXC), and if the charging completion signal is not input, S17
Sends the exposure control data for continuous light to the exposure control circuit (EXC). Then, the exposure control operation is started in S18.

露出制御動作が終わればS19でフィルムの自動巻き上げ
動作を行う。そして、S20,S21で前述したレリーズフラ
グRLFを、単写モードの時に“1"をセットしS22へ進む。
そして依然としてスイッチ(S1)が閉成され、制御マイ
コン(MC2)の端子(I1)が“Low"であればステップS3
に移行してデータ取り込み、演算・表示動作を繰り返
し、スイッチ(S1)で閉成されてなければ前述のステッ
プS23に移行して前述と同様の動作を行なった後、制御
マイコン(MC2)は動作を停止する。以上で、制御マイ
コン(MC2)のフローの説明をおわる。
When the exposure control operation is completed, the film is automatically wound up in S19. Then, the release flag RLF described above in S20 and S21 is set to "1" in the single shooting mode, and the process proceeds to S22.
If the switch (S1) is still closed and the terminal (I1) of the control microcomputer (MC2) is "Low", step S3
After that, the control microcomputer (MC2) operates after the data acquisition, data calculation and display operations are repeated, and if the switch (S1) is not closed, the operation proceeds to step S23 and the same operation as described above is performed. To stop. This concludes the description of the flow of the control microcomputer (MC2).

第6図は、本実施例のインターフェース回路(IF1)の
詳細を示す回路図である。以下、この回路についてその
動作と共に説明する。
FIG. 6 is a circuit diagram showing details of the interface circuit (IF1) of this embodiment. The operation of this circuit will be described below.

シャッタレリーズボタンの一段押しで閉成されるスイッ
チ(S1)のONが制御マイコン(MC2)によって検知され
ると、制御マイコン(MC2)からの信号に応じてAFマイ
コン(MC1)は焦点調節の動作を開始する。
When the control microcomputer (MC2) detects that the switch (S1) that is closed by pressing the shutter release button one step is ON, the AF microcomputer (MC1) performs focus adjustment operation according to the signal from the control microcomputer (MC2). To start.

まず、AFマイコン(MC1)からのIOS信号が“Low"にさ
れ、AFマイコン(MC1)からインターフェース回路(IF
1)へ向かってNBφ〜NB3の信号が出力される方向のゲー
トが開く。そして、AFマイコン(MC1)からCCDイメージ
センサ(FLM)にパルス状の積分クリア信号ICGがNB2の
信号として出力され、これによりCCDイメージセンサ(F
LM)の各画素が初期状態にリセットされると共に、CCD
イメージセンサに内蔵された輝度モニター回路(MC)の
出力AGCOSが電源電圧レベルにリセットされる。又、AF
マイコン(MC1)はこれと同時に端子(NB5)から“Hig
h"レベルのシフトパルス発生許可信号SHENを出力する。
そして、積分クリア信号ICGが消えると同時に、CCDイメ
ージセンサ(FLM)内の各画素では光電流の積分が開始
され、同時に輝度モニター回路(MC)の出力AGCOSが被
写体輝度に応じた速度で低下し始めるが、CCDイメージ
センサに内蔵された基準信号発生回路(RS)からの基準
信号出力DOSは一定の基準レベルに保たれる。AGCコント
ローラ(406)はAGCOSをDOSと比較し、所定時間(焦点
検出時には100msec.)内にAGCOSがDOSに対してどの程度
低下するかによって、利得可変の差動アンプ(408)の
利得を制御する。又、AGCコントローラ(406)は積分ク
リア信号ICGの消滅後、所定時間内にAGCOSBがDOSに対し
て所定レベル以上低下したことを検出すると、その時
“High"レベルのTINT信号を出力する。このTINT信号は
アンド回路(AN)及びオア回路(OR1)を通ってシフト
パルス信号出力回路(410)に入力され、これに応答し
てこの回路(410)からシフトパルスSHが出力される。
又、TINT信号はオア回路(OR2)を通ってNB4信号として
AFマイコン(MC1)に取り込まれ、AFマイコン(MC1)は
この信号によってCCDイメージセンサの積分終了を知
る。このシフトパルスSHがCCDイメージセンサ(FLM)に
入力されると、各画素による光電流積分が終わり、この
積分値に応じた電荷がCCDイメージセンサシフトレジス
タの対応するセルに並列的に転送される。一方、AFマイ
コン(MC1)からのクロックパルスCLにもとづいて、セ
ンサ駆動パルス発生回路(412)からは位相が180゜ずれ
た2つのセンサー駆動パルスφ1,φ2が出力され、CCD
イメージセンサ(FLM)に入力されている。CCDイメージ
センサ(FLM)はこれらのセンサ駆動パルスのうち、φ
1の立上りと同期してCCDシフトレジスタの各画素の電
荷を1つずつ端から直列的に排出し、画像信号を形成す
るOS信号が順次出力される。このOS信号は対応する画素
への入写光強度が低い程高い電圧となっており、減算回
路(414)がこれを上述の基準信号DOSから差し引いて、
(DOS−OS)を画素信号として出力する。尚、積分クリ
ア信号ICGの消滅後TINT信号が出力されずに所定時間が
経過すると、AFマイコン(MC1)は端子(NBφ)から“H
igh"レベルのシフトパルス発生指令信号SHMを出力す
る。したがって、積分クリア信号ICGの消滅後所定時間
経過してもAGCコントローラ(406)から“High"レベル
のTINT信号が出力されない場合は、このシフトパルス発
生指令信号SHMに応答して、シフトパルス発生回路(41
0)がシフトパルスSHを発生する。
First, the IOS signal from the AF microcomputer (MC1) is set to "Low", and the interface circuit (IF
The gate opens in the direction in which the signals of NBφ to NB3 are output toward 1). Then, the AF microcomputer (MC1) outputs a pulsed integration clear signal ICG to the CCD image sensor (FLM) as a signal of NB2, which causes the CCD image sensor (F
Each pixel of LM) is reset to the initial state and CCD
The output AGCOS of the brightness monitor circuit (MC) built in the image sensor is reset to the power supply voltage level. AF
At the same time, the microcomputer (MC1) receives a "Hig" from the terminal (NB5).
The shift pulse generation enable signal SHEN of h "level is output.
Then, at the same time as the integration clear signal ICG disappears, the integration of photocurrent starts in each pixel in the CCD image sensor (FLM), and at the same time, the output AGCOS of the brightness monitor circuit (MC) drops at a speed according to the brightness of the subject. To start, the reference signal output DOS from the reference signal generation circuit (RS) built into the CCD image sensor is kept at a constant reference level. The AGC controller (406) compares AGCOS with DOS, and controls the gain of the variable gain differential amplifier (408) according to how much AGCOS decreases with respect to DOS within a predetermined time (100 msec. During focus detection). To do. Further, when the AGC controller (406) detects that AGCOSB has decreased to a predetermined level or more with respect to DOS within a predetermined time after the integration clear signal ICG disappears, at that time, it outputs a "High" level TINT signal. This TINT signal is input to the shift pulse signal output circuit (410) through the AND circuit (AN) and the OR circuit (OR1), and in response thereto, the shift pulse SH is output from this circuit (410).
Also, the TINT signal passes as an NB4 signal through the OR circuit (OR2).
The signal is taken into the AF microcomputer (MC1) and the AF microcomputer (MC1) knows the completion of integration of the CCD image sensor by this signal. When this shift pulse SH is input to the CCD image sensor (FLM), the photocurrent integration by each pixel ends, and the charge according to this integration value is transferred in parallel to the corresponding cell of the CCD image sensor shift register. . On the other hand, based on the clock pulse CL from the AF microcomputer (MC1), the sensor drive pulse generation circuit (412) outputs two sensor drive pulses φ1 and φ2 with a phase difference of 180 °, and the CCD
Input to the image sensor (FLM). CCD image sensor (FLM) has φ
In synchronization with the rising edge of 1, the charge of each pixel of the CCD shift register is discharged serially from the end one by one, and the OS signal forming the image signal is sequentially output. This OS signal has a higher voltage as the intensity of incident light to the corresponding pixel is lower, and the subtraction circuit (414) subtracts this voltage from the reference signal DOS described above,
(DOS-OS) is output as a pixel signal. If the TINT signal is not output after the integration clear signal ICG disappears and a predetermined time elapses, the AF microcomputer (MC1) outputs "H" from the terminal (NBφ).
The igh "level shift pulse generation command signal SHM is output. Therefore, if the" High "level TINT signal is not output from the AGC controller (406) even after a lapse of a predetermined time after the integration clear signal ICG disappears, this shift In response to the pulse generation command signal SHM, the shift pulse generation circuit (41
0) generates the shift pulse SH.

一方、上述の動作において、AFマイコン(MC1)はCCDイ
メージセンサの第7番目から第10番目までの画素に対応
する画素信号が出力されるときに、サンプルホールド信
号S/Hを出力する。CCDイメージセンサのこの部分は暗出
力成分を除去する目的でアルミマスクが施され、CCDイ
メージセンサの受光画素としては遮光状態になっている
部分である。一方。サンプルホールド信号によって、ピ
ークホールド回路(416)はCCDイメージセンサのアルミ
マスク部に対応する出力OSとDOSとの差を保持し、以降
この差出力と画素信号とが可変利得アンプ(408)に入
力される。そして、可変利得アンプ(408)は画素信号
とその差出力の差をAGCコントローラ(406)により制御
された利得でもって増幅し、その増幅出力がA/D変換器
(418)によってA/D変換された後、画素信号データとし
てAFマイコン(MC1)に取込まれる。
On the other hand, in the above-described operation, the AF microcomputer (MC1) outputs the sample hold signal S / H when the pixel signals corresponding to the 7th to 10th pixels of the CCD image sensor are output. This part of the CCD image sensor is covered with an aluminum mask for the purpose of removing the dark output component, and the light receiving pixel of the CCD image sensor is in a light-shielded state. on the other hand. The peak hold circuit (416) holds the difference between the output OS and DOS corresponding to the aluminum mask part of the CCD image sensor by the sample hold signal, and this difference output and the pixel signal are input to the variable gain amplifier (408) thereafter. To be done. The variable gain amplifier (408) amplifies the difference between the pixel signal and its difference output with a gain controlled by the AGC controller (406), and the amplified output is A / D converted by the A / D converter (418). After that, it is taken into the AF microcomputer (MC1) as pixel signal data.

画素信号データが取り込まれる時は、AFマイコン(MC
1)からの信号IOSが“High"になり、インターフェース
回路(IF1)からAFマイコン(MC1)へ向かってNBφ〜NB
3の信号が出力される方向のゲートが開く。A/D変換回路
(418)のA/D変換は8ビットで行なわれるが、AFマイコ
ン(MC1)へは上位、下位の4ビットずつ転送される。
この上位と下位の4ビットの切り換えタイミングはEOC
信号によって行なっている。EOC信号はTINT信号とオア
回路(OR2)でオアをとられて、NB4信号としてAFマイコ
ン(MC1)へ入力される。AFマイコン(MC1)は、このNB
4信号の“High"状態、“Low"状態のタイミングによって
NBφ〜NB3から画素信号データを取り込むことになる。
又、このNBφ〜NB3からは、画素信号データの取り込み
が開始される前に、AGCコントローラ(406)からAGCデ
ータも取り込むようになっている。このAGCデータは、
後述するように、判定レベルとして使われる。なお、ほ
かに、AFマイコン(MC1)の端子(NB1)から出力される
Sφ信号は、CCDイメージセンサのイニシャライズと、
被写体光を積分する通常動作とを切り換えるための信号
である。
When the pixel signal data is captured, the AF microcomputer (MC
Signal IOS from 1) becomes "High", and NBφ to NB from the interface circuit (IF1) to the AF microcomputer (MC1)
The gate opens in the direction where the 3 signal is output. The A / D conversion of the A / D conversion circuit (418) is performed by 8 bits, but the upper 4 bits and the lower 4 bits are transferred to the AF microcomputer (MC1).
The switching timing of the upper and lower 4 bits is EOC
It is done by signals. The EOC signal is ORed with the TINT signal by the OR circuit (OR2) and input to the AF microcomputer (MC1) as the NB4 signal. AF microcomputer (MC1) is this NB
Depending on the timing of the “High” and “Low” states of the four signals
Pixel signal data will be fetched from NBφ to NB3.
Further, AGC data is also fetched from the NBφ to NB3 from the AGC controller (406) before the fetching of pixel signal data is started. This AGC data is
As will be described later, it is used as a judgment level. In addition, the Sφ signal output from the terminal (NB1) of the AF microcomputer (MC1) is used to initialize the CCD image sensor.
This is a signal for switching between normal operation for integrating the subject light.

この後、AFマイコン(MC1)は、この画素信号データを
内部のメモリに順次保存するが、イメージセンサの全画
素に対応するデータの保存が完了すると、それを用いて
所定のプログラムに従って焦点ズレ量及びその方向を算
出し、表示回路にそれらを表示されると共に、一方では
レンズ駆動装置を焦点ズレ量及びその方向に応じて駆動
し、撮影レンズの自動焦点調節を行う。
After that, the AF microcomputer (MC1) sequentially stores this pixel signal data in the internal memory. When the data corresponding to all the pixels of the image sensor has been saved, it is used to defocus according to a predetermined program. And the direction thereof are calculated and displayed on the display circuit. On the other hand, the lens driving device is driven according to the amount of defocus and the direction of the defocus to automatically adjust the focus of the taking lens.

本実施例においては、CCDイメージセンサ(FLM)の積
分、データダンプ、及び合焦検出演算がくり返し行なわ
れており、精度の向上がはかられている。
In the present embodiment, the integration of the CCD image sensor (FLM), the data dump, and the focus detection calculation are repeated to improve the accuracy.

第7図〜第16図は、AFマイコン(MC1)の動作を示すフ
ローチャートである。まず、第5−1,2,3表にこのフロ
ーチャート内で使用するフラグを示しておく。
7 to 16 are flowcharts showing the operation of the AF microcomputer (MC1). First, Tables 5-1, 2, and 3 show the flags used in this flowchart.

AFマイコン(MC1)の動作のスタートとしては4つの入
口がある。つまり、電源投入時すなわち第2図のAFマイ
コン(MC1)の端子(CLR1)にRES信号が来た時にスター
トする「RESET」(第7図のステップ#1)、制御マイ
コン(MC2)の端子(PT1)からAF動作(自動焦点調節動
作)又はFA動作(焦点検出動作)をスタートすべく出す
AFS信号がAFマイコン(MC1)の端子(INT1)に入力され
ることによりスタートする「INTIS」(第7図のステッ
プ#8)、制御マイコン(MC2)の端子(PT2)からAFマ
イコン(MC1)へレリーズしたことを知らせるべく出すI
NREL信号がAFマイコン(MC1)の端子(INT2)に入力さ
れることによりスタートする「INT2S」(第8図のステ
ップ#27)、エンコーダ(ENC)からのPS信号がAFマイ
コン(MC1)の端子(INT3)に入力されることによりス
タートする「INT3S」(第16図のステップ#252)がこれ
ら4つに当たる。自動焦点調節動作のフローのメインル
ーチンは第7図のステップ#8の「INT1S」から始まり
第9図のステップ#33の「AFSTART」、第10図のステッ
プ#44の「CDINTS」を通り、第11図のステップ#86の
「MAIN1」へ流れる。「MAIN1」からは大きく分けて3つ
に分かれ、第13図のステップ#165の「LOWCON」から始
まる被写体のコントラストが低いローコントラスト時の
フローと、第14図のステップ#238の「LSAVE」から始ま
る補助光AFモード(暗くて焦点検出が不可能な時に、補
助光用LED(48)で被写体を照明して焦点検出をするモ
ードのこと)時のフローと、第11図のステップ#91の
「NLOC1」から始まる被写体のコントラストが充分に高
い通常AFモード時のフローとになる。又サブルーチンと
しては第15図のステップ#241の「SIOSET」で始まる制
御マイコン(MC2)からのシリアルデータを入力し処理
するフローと、第14図のステップ#196の「CKLOCK」か
ら始まるレンズの終端位置を判断処理するフローとがあ
る。以下このフローチャートに基いて本実施例における
自動焦点調節動作(以下AF動作という)及び焦点検出動
作(以下FA動作という)を説明する。
There are four entrances to start the operation of the AF microcomputer (MC1). In other words, when the power is turned on, that is, when the RES signal arrives at the terminal (CLR1) of the AF microcomputer (MC1) in FIG. 2, “RESET” (step # 1 in FIG. 7), the terminal of the control microcomputer (MC2) ( Issue to start AF operation (automatic focus adjustment operation) or FA operation (focus detection operation) from PT1)
"INTIS" (step # 8 in Fig. 7) started when the AFS signal is input to the pin (INT1) of the AF microcomputer (MC1), the pin (PT2) of the control microcomputer (MC2) to the AF microcomputer (MC1) I give it out to let you know that I have released
"INT2S" (step # 27 in Fig. 8) started when the NREL signal is input to the terminal (INT2) of the AF microcomputer (MC1), and the PS signal from the encoder (ENC) is the terminal of the AF microcomputer (MC1) “INT3S” (step # 252 in FIG. 16) started by being input to (INT3) corresponds to these four. The main routine of the flow of the automatic focus adjustment operation starts from "INT1S" in step # 8 in FIG. 7 and goes through "AFSTART" in step # 33 in FIG. 9 and "CDINTS" in step # 44 in FIG. 11 Flow to “MAIN1” in step # 86 in FIG. From "MAIN1", it is roughly divided into three. From the flow of low contrast where the contrast of the subject is low starting from "LOWCON" in step # 165 in Fig. 13 and "LSAVE" in step # 238 in Fig. 14 Auxiliary light AF mode that starts (it is a mode that illuminates the subject with the auxiliary light LED (48) to detect the focus when it is dark and focus detection is not possible), and step # 91 in FIG. The flow is for normal AF mode, in which the contrast of the subject begins with "NLOC1" and is sufficiently high. As a subroutine, the flow of inputting and processing serial data from the control microcomputer (MC2) starting with "SIOSET" in step # 241 of Fig. 15 and the end of the lens starting from "CKLOCK" of step # 196 in Fig. 14 There is a flow for judging the position. The automatic focus adjustment operation (hereinafter referred to as AF operation) and the focus detection operation (hereinafter referred to as FA operation) in this embodiment will be described below based on this flowchart.

まず、電源スイッチ(MNS)の閉成に応答してパワーオ
ンリセット回路(POR)からリセット信号RESが出力さ
れ、このリセット信号で制御マイコン(MC2)が特定番
地から動き出す。これと同時に制御マイコン(MC2)の
端子(Xout)からクロックパルスCKが出力される。これ
はAFマイコン(MC1)の端子(Xin)に入力される。制御
マイコン(MC2)からのクロックパルスCKのもとでリセ
ット信号RESが端子(CLR1)に入力されるとAFマイコン
(MC1)がステップ#1の「RESET」からスタートする。
ステップ#1はフローチャート内で使用している全フラ
グ(第5−1、2、3表)をすべてクリアしている。各
フラグは“0"が初期状態になるようになっている。ステ
ップ#2からは、制御マイコン(MC2)からAFマイコン
(MC1)に対して、AF又はFA動作を停止させるために、
後述のようなストップ信号を出力するが、このストップ
命令が入ってきた時にもこのステップ#2を通る。
First, in response to the closing of the power switch (MNS), a reset signal RES is output from the power-on reset circuit (POR), and this control signal causes the control microcomputer (MC2) to move from a specific address. At the same time, the clock pulse CK is output from the terminal (Xout) of the control microcomputer (MC2). This is input to the terminal (Xin) of the AF microcomputer (MC1). When the reset signal RES is input to the terminal (CLR1) under the clock pulse CK from the control microcomputer (MC2), the AF microcomputer (MC1) starts from “RESET” in step # 1.
Step # 1 clears all the flags (Tables 5-1, 2, and 3) used in the flowchart. Each flag is set to "0" in the initial state. From step # 2, to stop AF or FA operation from the control microcomputer (MC2) to the AF microcomputer (MC1),
Although a stop signal as will be described later is output, this step # 2 is also passed when this stop command is input.

ステップ#2(以下「ステップ」を省略する。)は端子
(P13)に入力される端子(ST4)の信号を“Low"状態に
落とし補助光用LED(48)による照明を切っている。こ
れは補助光AFモード時に補助光発光中、スイッチ(S1)
を開放して、焦点検出動作を停止する時にその発光を中
止するためである。#3は、AF又はFA動作での焦点調節
状態表示又はデフォーカス方向表示を消している。ここ
では、端子(P32)〜(P30)にそれぞれ“High"を出力
して消すが、これは各端子を入力モードにすることによ
り行っている。この方法で表示を消しても、表示してい
た出力状態は出力ポートレジスタにメモリされており、
このポートを出力モードにすればメモリしていた内容を
再び表示することができる。後にこれを利用する。
In step # 2 (hereinafter “step” is omitted), the signal from the terminal (ST4) input to the terminal (P13) is brought to the “Low” state and the illumination by the auxiliary light LED (48) is turned off. This is the switch (S1) while the auxiliary light is emitting in auxiliary light AF mode.
This is because the light emission is stopped when the focus detection operation is stopped by opening. In # 3, the focus adjustment state display or the defocus direction display in the AF or FA operation is turned off. Here, "High" is output to the terminals (P32) to (P30) and erased, but this is done by setting each terminal to the input mode. Even if the display is turned off by this method, the output state that was being displayed is stored in the output port register.
By putting this port in output mode, the contents stored in memory can be displayed again. We will use this later.

#4ではレンズを停止させる。なお、ここではブレーキ
はかけない。これはAFマイコン(MC2)の非動作中で
は、レンズにブレーキをかけず比較的手で動きやすくす
るとともに、省電を考えてのことである。AFマイコン
(MC2)からドライバー回路(MDR1)に入力されるレン
ズ用モータ駆動信号MC、MR、MF、MBのコントロールにつ
いては第6表に上げたようになっており、端子(PO2)
〜(PO0)の信号MR、MF、MBを“High"状態にすれば、電
気的ブレーキがかからず、モータ(MO1)への通電が切
れレンズが止まる。
In # 4, the lens is stopped. The brake is not applied here. This is because, while the AF microcomputer (MC2) is not operating, the lens is not braked so that it can be moved relatively easily by hand, and power saving is considered. The control of the lens motor drive signals MC, MR, MF, and MB that are input from the AF microcomputer (MC2) to the driver circuit (MDR1) are as shown in Table 6 and the terminal (PO2).
By setting the signals MR, MF, and MB of ~ (PO0) to the "High" state, the electric brake is not applied and the motor (MO1) is de-energized and the lens stops.

#5ではレリーズ動作中もしくは補助光AFモード中に制
御マイコン(MC2)からストップ命令が来た時に、これ
ら状態を今後も解除すべく、レリーズフラグ(第5−1
表のレリーズF)及び補助光モードフラグ(第5−2表
の補助光モードF)をクリアするステップである。#6
は、次のフローのスタートのための割り込み状態を決め
るためのコントロールで、AFマイコン(MC1)の動作が
ストップした後に、#8のINT1Sからもしくは#28のINT
2Sからのスタートを許している。しかし、実際は、カメ
ラとしては不図示のシャッタレリーズボタンの1段押し
により第2図のスイッチ(S1)が閉じて制御マイコン
(MC2)からINT1に割り込みがかかり、該シャッタレリ
ーズボタンの2段押しによりスイッチ(S2)が閉じてIN
T2にレリーズの割り込みがかかるようになっているた
め、次のフローチャートのスタートは#8の「INT1S」
になる。#7でAFマイコン(MC1)はストップモードに
入る。ストップモードとはAFマイコン(MC1)が省電モ
ードに入り動作を停止することである。この時各端子の
状態は、P13だけが“Low"で他は“High"となっており補
助光照明用LED(48)は消灯し、表示用LED(LEDL)(LE
DM)(LEDR)も消灯しているとともに、レンズはストッ
プ状態にあり、インターフェース回路(IF1)も停止状
態となっている、この状態で次の制御マイコン(MC2)
からの端子(INT1)への割り込みスタートを待ってい
る。
In # 5, when a stop command is received from the control microcomputer (MC2) during the release operation or the fill AF mode, the release flag (No. 5-1
This is a step of clearing the release F) in the table and the auxiliary light mode flag (the auxiliary light mode F in Table 5-2). # 6
Is a control for deciding the interrupt state for starting the next flow. After the operation of the AF microcomputer (MC1) stops, INT1S of # 8 or INT of # 28
It allows starting from 2S. However, in actuality, when the shutter release button (not shown) for the camera is pressed one step, the switch (S1) in FIG. 2 is closed and the control microcomputer (MC2) interrupts INT1. Switch (S2) is closed and IN
Since the release interrupt is applied to T2, the start of the next flowchart starts with "INT1S" in # 8.
become. At # 7, the AF microcomputer (MC1) enters stop mode. Stop mode means that the AF microcomputer (MC1) enters the power saving mode and stops operating. At this time, the status of each terminal is only "Low" for P13 and "High" for others, the LED for auxiliary light illumination (48) is off, and the LED for display (LEDL) (LE
DM) (LEDR) is off, the lens is in the stop state, and the interface circuit (IF1) is also in the stop state. In this state, the next control microcomputer (MC2)
Waiting for start of interrupt from pin to INT1.

次に、前述のフローチャート第2番目の入口である#8
の「INT1S」の説明に移る。この「INT1S」からの割り込
みスタートは、AFマイコン(MC1)の全フロー中におい
て割り込み禁止状態にはなっておらずいつでも割り込み
を受け付ける。この入口は3つの割り込みの役割を果し
ている。1つはAF又はFA動作のスタート、2つ目はAF又
はFA動作の停止、3つ目はレリーズ直後の焦点調節状態
表示復帰動作及び連写モード時の動作がある。これら3
つの区別について述べる。1つ目と2つ目の区別は端子
(INT1)への入力信号によって区別している。すなわち
第17図(A)のようにAF又はFA動作のスタートにはAFS
信号が“High"から“Low"へ立ち下り、“Low"が50μs
以上続くことが必要である。AF又はFA動作の停止につい
ては第17図(B)のようにAFS信号が“High"から“Low"
へ立ち下がったあと、50μs未満に“Low"から“High"
へ立ち上がることを必要としている。第3番目の動作
と、1つ目の通常AF又はFA動作との区別は、フラグを使
用している。後述のレリーズ割り込みがくれば、レリー
ズ中のフローの中でレリーズフラグ(レリーズF)をた
て次の「INT1S」のスタートの中でこのフラグがたって
いるかどうかをチェックして区別している。これらを含
めて順次#8から説明する。#8で、スタート時はINT
1、INT2以外の割り込みを禁止する。禁止されているの
はINT3のイベントカウンタ割り込みと、フローチャート
上では示してないが、表示用LEDの点滅表示の周期を決
めるタイマーの内部割り込みがある。#9は使用してい
るフラグをクリアするところであるが#15からのAFSINR
中でこれまでの状態として使用する2つのフラグ、すな
わちスキャン禁止フラグ(第5−1表のスキャン禁止
F)と、前回ローコンフラグ(第5−1表の前回ローコ
ンF)はクリアしていない。スキャン禁止フラグをクリ
アしないのは、連写モードの場合でも、スイッチ(S1)
をオフしない限り、単写モードと同じく一度被写体のコ
ントラストが焦点検出に充分あって、デフォーカス量の
計算ができたことがあるか、又は、一度ローコンスキャ
ンをしたことがあれば、新たなローコンスキャンをさせ
ないために、このフラグを残している。又、前回ローコ
ンフラグをクリアしないのは#15から始まるレリーズ後
のAFS信号による割り込みフローである「AFSINR」の中
で、レリーズの後もスイッチ(S1)をオンしたままであ
ればレリーズ前の状態の焦点検出演算結果の表示を復帰
表示させておくためにクリアしていない。すなわちレリ
ーズ最中はLEDによるデフォーカス方向の表示をいった
ん消し、レリーズ動作が終われば、再び表示するという
ことをしているので、そのため低コントラストでLEDが
点滅表示していたかどうかを判別するためのフラグを残
しておくのである。
Next, # 8 which is the second entrance of the above-mentioned flowchart
Move on to the explanation of "INT1S". The interrupt start from this "INT1S" does not disable the interrupt during the entire flow of the AF microcomputer (MC1) and accepts the interrupt at any time. This entrance serves three interrupts. One is the start of the AF or FA operation, the second is the stop of the AF or FA operation, and the third is the operation of returning the focus adjustment state display immediately after the release and the operation in the continuous shooting mode. These 3
Let us describe two distinctions. The first and the second are distinguished by the input signal to the terminal (INT1). That is, as shown in Fig. 17 (A), AFS is used to start AF or FA operation.
Signal falls from "High" to "Low", "Low" is 50μs
It is necessary to continue above. To stop the AF or FA operation, the AFS signal changes from "High" to "Low" as shown in Fig. 17 (B).
After falling to, within 50μs from "Low" to "High"
Need to get up to. A flag is used to distinguish the third operation from the first normal AF or FA operation. When a release interrupt described later comes, the release flag (release F) is set in the flow during release, and it is distinguished by checking whether or not this flag is set at the start of the next "INT1S". These will be sequentially described from # 8. # 8, INT at the start
Disable interrupts other than 1 and INT2. The event counter interrupt of INT3 and the internal interrupt of the timer that determines the blinking period of the display LED, which is not shown in the flowchart, are prohibited. # 9 is about to clear the used flag, but AFSINR from # 15
Among them, the two flags used as the previous states, that is, the scan prohibition flag (scan prohibition F in Table 5-1) and the previous low control flag (previous low control F in Table 5-1) are not cleared. The switch (S1) does not clear the scan prohibition flag even in continuous shooting mode.
As long as you do not turn off, once the contrast of the subject is sufficient for focus detection and you have been able to calculate the defocus amount, or once you have performed low contrast scan, as in the single shooting mode, This flag is left to prevent low contrast scanning. In addition, the reason why the low contrast flag is not cleared last time is "AFSINR" which is the interrupt flow by the AFS signal after release starting from # 15. If the switch (S1) remains on after release, The focus detection calculation result display is not cleared in order to restore it. That is, during release, the LED defocus direction display is turned off once, and when the release operation is finished, it is displayed again.Therefore, it is necessary to determine whether the LED was blinking at low contrast. Leave the flag.

次の#10で50μs時間待ちをし、「INT1S」に入った割
り込みがAF又はFAストップ割り込みでなかったかを#11
の所で見にいく。ここでAFマイコン(MC1)の端子(INT
1)に入っている信号が、第17図(A)のようであればA
FS信号は“Low"であるので#12へ進み、第17図(B)の
ような信号であればAFS信号は“High"となって#2のス
トップモード処理フロー「STPMD」の方へ進みAFマイコ
ン(MC1)の動作は停止する。#12ではレリーズ後のAFS
信号による割り込みフロー「AFSINR」へ進むか最初のAF
S信号の割り込みによるのかを区別する。すなわちレリ
ーズフラグ(レリーズF)がたっていれば、#15の「AF
SINR」へ進みレリーズフラグ(レリーズF)がたってい
なければ次のステップ#13へ進む。#13ではAFマイコン
(MC1)の各端子のイニシャライズを行なう。すなわ
ち、補助光AFモード時の補助光発光端子(P13)のみを
“Low"にし、他の端子は“High"にしておく。もっともA
Fマイコン(MC1)がこれまでストップモードに入ってい
る状態から、割り込みスタートでこのステップへ来てい
る時には各端子は同じ状態のままであり、すなわち端子
(P13)のみが“Low"で他は“High"のままである。
Wait for 50μs in the next # 10, and check if the interrupt entered in "INT1S" was an AF or FA stop interrupt.
I will go to see it. Here, the pin of the AF microcomputer (MC1) (INT
If the signal in 1) is as shown in Fig. 17 (A), A
Since the FS signal is "Low", proceed to # 12. If the signal is as shown in FIG. 17 (B), the AFS signal becomes "High" and proceed to the stop mode processing flow "STPMD" of # 2. The operation of the AF microcomputer (MC1) stops. In # 12, AFS after release
Interruption flow by signal Go to "AFSINR" or first AF
Distinguish whether it is due to an S signal interrupt. That is, if the release flag (release F) is on, # 15 “AF
SINR "and if the release flag (release F) is not on, proceed to the next Step # 13. In # 13, each terminal of the AF microcomputer (MC1) is initialized. That is, only the auxiliary light emitting terminal (P13) in the auxiliary light AF mode is set to "Low" and the other terminals are set to "High". However A
When the F microcomputer (MC1) has been in the stop mode so far and has come to this step at interrupt start, each pin remains in the same state, that is, only the pin (P13) is "Low" and the others It remains “High”.

次に#14では#9でクリアしないでおいたスキャン禁止
フラグと前回ローコンフラグを改めてクリアしておく。
そして次に#33の「AFSTART」へ進む。このあと焦点調
節状態を検出し、その結果に応じてレンズを駆動させ、
焦点調節状態表示を行う。焦点調節状態表示とは表示用
LED(LEDL)(LEDM)(LEDR)の入力信号のLLとLRが“H
igh"、LMが“Low"で緑色のLEDを点灯させることであ
り、この表示を見てスイッチ(S2)を閉成すれば、又は
(S1)と(S2)を閉成した状態で自動焦点調節を行わせ
てピント合わせ動作が完了すれば、制御マイコン(MC
2)はレリーズ動作を開始し、同時にAFマイコン(MC1)
へレリーズをしたことを知らせる割り込み信号INRELが
出力される。AFマイコン(MC1)は、端子(INT2)でこ
れを受けるので、レリーズの割り込みがかかる。これが
第8図の#27の「INT2S」から始まるフローである。
Next, in # 14, the scan prohibition flag and the previous low control flag which were not cleared in # 9 are cleared again.
Then proceed to # 33 “AF START”. After that, the focus adjustment state is detected, the lens is driven according to the result,
The focus adjustment status is displayed. What is the focus adjustment status display?
Input signals LL and LR of LED (LEDL) (LEDM) (LEDR) are “H”
igh ", LM is to turn on the green LED when it is" Low ". If you see this display and close switch (S2), or (S1) and (S2) are closed, auto focus If the adjustment is done and the focusing operation is completed, the control microcomputer (MC
2) starts the release operation and at the same time AF microcomputer (MC1)
An interrupt signal INREL is output to notify that the shutter has been released. Since the AF microcomputer (MC1) receives this at the pin (INT2), it causes a release interrupt. This is the flow starting from "INT2S" in # 27 of FIG.

#27ではまずINT1、INT2以外の割り込みを禁止する。次
に#28で端子(ST4)からの信号を“Low"にし、補助光
照明を消している。これはレリーズ優先モード時のみ必
要でAF優先モードの場合には必要ないステップである。
なぜならAF優先モードの時にはピント合わせが終わって
おり、すでに補助光照明は消えているためである。#29
も同様にレリーズ優先モード時のみ必要なレンズ用モー
タ(MO1)をストップさせるステップである。ここでは
モータ(MO1)にブレーキをかけてない。これは、レリ
ーズ優先モードの時には合焦状態になってからレリーズ
されるとは限らずその手前でレリーズされることもあり
うるので、合焦位置に向かってレンズが動いている途中
でレリーズされた時、その非合焦点でモータ(MO1)に
ブレーキをかけてレンズを止めてレリーズするよりは、
ブレーキをかけずに止め、いくらかでも惰性でレンズを
移動させ、すこしでも合焦位置に近い所でレリーズされ
た方が、よい写真が撮れるということが多いためであ
る。次の#30で焦点調節状態表示又はデフォーカス方向
表示を消す。これは1眼レフレックスカメラでのレリー
ズ中は、ミラーが上がり、ファインダー内はまっ黒にな
っている。ここで表示だけつけていても意味がないばか
りか、フィルム露光中に、不必要な光がカメラ内部で出
力されているのは好ましくないためである。
In # 27, interrupts other than INT1 and INT2 are first disabled. Next, at # 28, the signal from the terminal (ST4) is set to "Low" to turn off the auxiliary light illumination. This is a step that is necessary only in the release priority mode and not necessary in the AF priority mode.
This is because the focus adjustment is completed in the AF priority mode and the auxiliary light illumination is already off. # 29
Similarly, this is a step of stopping the lens motor (MO1) required only in the release priority mode. Here, the motor (MO1) is not braked. In the release priority mode, it is not always possible to release after the subject is in focus, and it is possible that the release may occur before that, so it was released while the lens was moving toward the in-focus position. At that time, rather than brake the motor (MO1) at that non-focus point to stop the lens and release,
This is because it is often better to take a good picture by stopping without braking, moving the lens by some inertia, and then releasing the lens near the in-focus position. In # 30, the focus adjustment status display or defocus direction display disappears. This is because the mirror is raised and the inside of the viewfinder is completely black during the release with the single-lens reflex camera. This is because it is meaningless to display only the display here, and it is not preferable that unnecessary light is output inside the camera during film exposure.

次に#31でレリーズフラグ(レリーズF)を“1"にし、
レリーズされたことをフラグとして残す。あとは#32
で、INT1又はINT2の割り込み待ちとなる。ここで続けて
レリーズ割り込みが来ると再び#27の「INT2S」から始
まる。第2図のスイッチ(S1)を閉成したままスイッチ
(S2)の開閉を繰り返している場合がこれに当たり、レ
ンズを駆動させないで合焦位置で固定しているというAF
ロック状態でレリーズを繰り返していることと同じであ
る。スイッチ(S2)を閉成してレリーズしたあと、スイ
ッチ(S1)を閉成したままだと、制御マイコン(MC2)
のフローチャートにあるように、再びAFS信号がAFマイ
コン(MC1)に入りINT1の割り込みがかかる。すると、
#8の「INT1S」からのフローは、今度はレリーズフラ
グ(レリーズF)に1がたっているので第7図の#15の
「AFSINR」の方へ進む。#15からのステップは後に説明
する。
Next, at # 31, set the release flag (release F) to "1",
The release is left as a flag. The rest is # 32
Then, wait for INT1 or INT2 interrupt. When the release interrupt comes in succession, it starts again from "INT2S" of # 27. This occurs when the switch (S2) is repeatedly opened and closed while the switch (S1) in Fig. 2 is closed, and this is the case where the lens is fixed at the in-focus position without being driven.
It is the same as repeating the release in the locked state. After the switch (S2) is closed and released, the switch (S1) remains closed, and the control microcomputer (MC2)
As shown in the flowchart, the AFS signal enters the AF microcomputer (MC1) again and INT1 interrupt occurs. Then,
The flow from "INT1S" of # 8 advances to "AFSINR" of # 15 of FIG. 7 because the release flag (release F) is set to 1 this time. The steps from # 15 will be described later.

次にスイッチ(S2)を閉成してレリーズしたあと第5図
のフローにあるようにスイッチ(S2)(S1)を共に開放
した場合は、今度は制御マイコン(MC2)からはAFマイ
コン(MC1)のストップのためのAFS信号がAFマイコン
(MC1)に入り、INT1の割り込みがかかる。あと前述し
たようなフローでAFマイコン(MC1)はストップモード
に入り、再び次の割り込みが来るのを待つことになる。
Next, when the switch (S2) is closed and released, and then both switches (S2) and (S1) are opened as shown in the flow chart of FIG. ) Stop AFS signal enters AF microcomputer (MC1) and INT1 interrupt occurs. After that, the AF microcomputer (MC1) enters the stop mode by the above-mentioned flow and waits for the next interrupt again.

ここでレリーズ後のAFS信号による割り込みスタートの
フローの説明に入る。入口は第7図の#8の「INT1S」
であるが今度はレリーズフラグRLFが1になっているた
め、#12で分岐して#15の「AFSINR」の方へ進む。ここ
ではまずこのフローを通過したということでレリーズフ
ラグ(レリーズF)をリセットする。次に#16で制御マ
イコン(MC2)からシリアルデータを入力する。ここで
シリアルデータを入力するのは、AFマイコン(MC1)の
動作モードが変更されていないかチェックするためであ
る。この#15から始まる「AFSINR」へ来るフローは、レ
リーズされた後に来るフローであるが、このレリーズ中
やその寸前で動作モード(すなわちAFモード/FAモード/
MANUALモードの各モード、又AFモードでも単写モード/
連写モードの別)が切り換えられれば、そのモードに応
じた動作に変わらなければならない。#16はこのモード
の情報を制御マイコン(MC2)から入力するためのステ
ップである。この#16は、サブルーチンで第15図の#24
1から始まる「SIOSET」のフローを流れる。ここでは各
モードのチェックをし、モードのフラグを操作する。ま
ず、#241では制御マイコン(MC2)に向かって端子(P1
1)のDTRQ信号を“Low"にし、シリアルデータを要求す
る。すると制御マイコン(MC2)はDTRQ信号を見て第4
表のようなシリアルデータを送ってくる。AFマイコン
(MC1)側では、#242でこのシリアルデータを入力し、
#243でDTRQ信号を“High"にしておく。シリアル通信で
送られてくるデータは、AF用開放F値AFAV0、レンズ駆
動用デフォーカス量−パルスカウント変換係数KROM、補
助光用AF補正用データ△IR、レンズ駆動反転時バックラ
ッシュ補正用データBKLSH、補助光OK信号AFFL、フラッ
シュ用充電完了信号RDY、連写/単写モード信号DR、AF
カプラー軸付レンズ信号AFC、FA可/不可信号FAENの9
種である。各々の情報はシリアル通信で送られてくると
AFマイコン(MC1)のRAMに保存され、必要に応じて、そ
のRAMの内容を参照することとなる。各情報の使用につ
いては追々フローチャート説明上で述べることとする。
Here, the flow of interrupt start by the AFS signal after release will be described. The entrance is "INT1S" in # 8 in Figure 7.
However, since the release flag RLF is 1 this time, branch at # 12 and proceed to "AFSINR" at # 15. Here, first, the release flag (release F) is reset because this flow has been passed. Next, in # 16, input serial data from the control microcomputer (MC2). The serial data is input here to check whether the operation mode of the AF microcomputer (MC1) has been changed. The flow that comes to "AFSINR" starting from # 15 is the flow that comes after the release.
Each mode of MANUAL mode, or single shooting mode in AF mode /
If the continuous shooting mode is changed), the operation must be changed according to the mode. # 16 is a step for inputting the information of this mode from the control microcomputer (MC2). This # 16 is a subroutine # 24 in Figure 15.
The flow of "SIOSET" starts from 1. Here, each mode is checked and the mode flag is operated. First, in # 241, head toward the control microcomputer (MC2) (P1
Set the DTRQ signal in 1) to "Low" to request serial data. Then, the control microcomputer (MC2) sees the DTRQ signal and the fourth
It sends serial data as shown in the table. On the AF microcomputer (MC1) side, input this serial data with # 242,
Set the DTRQ signal to "High" in # 243. Data sent by serial communication are AF open F value AFAV0, lens drive defocus amount-pulse count conversion coefficient KROM, auxiliary light AF correction data ΔIR, lens drive inversion backlash correction data BKLSH , Auxiliary light OK signal AFFL, flash charge completion signal RDY, continuous shooting / single shooting mode signal DR, AF
Lens signal AFC with coupler shaft, FA enable / disable signal FAEN 9
It is a seed. When each information is sent by serial communication
It is saved in the RAM of the AF microcomputer (MC1), and the contents of that RAM will be referred to when necessary. The use of each information will be described later in the explanation of the flowchart.

#244から各モードのチェックをする。#244ではAF用開
放F値AFAV0を調べる。焦点検出用受光素子には使用可
能限界があり、レンズの開放F値が小さいと射出瞳で該
焦点検出用受光素子への入射光がけられ、正しい焦点検
出演算ができなくなる。焦点検出不能となるような単体
レンズを作らないとしてもコンバーターレンズ等の組み
合わせによって、焦点検出限界F値を超えてしまうこと
もある。例えば今、焦点検出用受光素子の焦点検出限界
F値を7.0とすると、AF用開放F値5.6のレンズは焦点検
出可能だがこれに2倍のテレコンバーター取り付ける
と、F値は11.2となり焦点検出不能になってしまうとい
うことである。ここでAF用開放F値というのは、レンズ
の絞りが絞られていない状態のF値ではあるが、ズーミ
ングやフォーカシングによってF値が変化するレンズの
場合でも焦点検出用受光素子がけられていないというこ
とを判断するための情報であるためにズーミング、フォ
ーカシングで変化するF値ならその内で一番小さい開放
F値が入っている。#244でAF用開放F値AFAV0がF値に
して7.0よりも大きければ#251の方へ進み、AFモードフ
ラグ(第5−1表のAF.F)を“1"にし、さらに#250でF
Aモードフラグ(第5−1表のFA.F)も“1"にし、MANUA
Lモードになったというフラグ状態にして第7図の#16
へもどる。AF用開放F値AFAV0が7.0よりも小さければF
値については焦点検出可能なレンズということで#245
へ進む。
From # 244, check each mode. In step # 244, the AF open F value AFAV0 is checked. The light receiving element for focus detection has a usable limit, and if the open F value of the lens is small, the incident light on the light receiving element for focus detection is eclipsed by the exit pupil, and correct focus detection calculation cannot be performed. Even if a single lens that makes focus detection impossible is not created, the focus detection limit F value may be exceeded depending on the combination of converter lenses and the like. For example, if the focus detection limit F value of the focus detection light receiving element is 7.0, a lens with an open F value of 5.6 for AF can detect focus, but if a double teleconverter is attached to this, the F value will be 11.2 and focus detection will be impossible. It means that Here, the AF open F value is the F value when the diaphragm of the lens is not closed, but even in the case of a lens whose F value changes due to zooming or focusing, the focus detection light receiving element is not cut off. Since this is information for determining that, if the F value changes due to zooming or focusing, the smallest open F value is included. If the open F value AFAV0 for AF is larger than 7.0 in # 244, proceed to # 251, set the AF mode flag (AF.F in Table 5-1) to “1”, and then in # 250. F
Also set the A mode flag (FA.F in Table 5-1) to "1" and MANUA
Set the flag state that it is in the L mode, # 16 in FIG.
Go back. F for open F value AFAV0 for AF is less than 7.0
Regarding the value, it is a lens that can detect focus # 245
Go to.

#245ではこれまでAFモードであったかどうかのチェッ
クをする。AFモードフラグが、“0"であればこれまでAF
モードであったということで#246へ進み、“1"であれ
ばAFモードでなかったということでFAモードかMANUALモ
ードかをチェックする。#246はAF用カプラー軸がある
かいなかをチェックするステップで、AFC信号が“1"な
ら軸があるのでこのままAFモードで進み、“0"であれば
軸がないので自動焦点調節できないということで#247
に進み、AFモードフラグに“1"をたてる。AF用カプラー
軸とはカメラボディ内のモータ(MO1)からレンズのフ
ォーカシング機構に動力を伝達するための軸のことであ
る。
In # 245, it is checked whether it was in AF mode so far. If the AF mode flag is "0"
If it is "1", it means that it was not in AF mode and it is checked whether it is FA mode or MANUAL mode. # 246 is a step to check whether there is an AF coupler axis. If the AFC signal is "1", there is an axis, so proceed in AF mode as it is, and if it is "0", there is no axis and automatic focus adjustment cannot be done. In # 247
Go to and set "1" to the AF mode flag. The AF coupler shaft is a shaft for transmitting power from the motor (MO1) in the camera body to the focusing mechanism of the lens.

第15図の#247では焦点検出可能なレンズか否かのチェ
ックをし焦点検出可能ならFAフラグ(FA.F)を“0"にし
てFAモードとなり、焦点検出不可ならFAフラグを“1"に
して、AFフラグの“1"と共にMANUALモードという判断に
なる。ここでFAEN=1の時というのは、カメラボディに
レンズが装着されていてなおかつ焦点検出の可能なレン
ズということである。これ以外はFAENは“0"となってい
る。焦点検出不可能なレンズとはAF用開放F値が小さく
ても焦点検出できない反射望遠などのレンズや、収差が
極端に大きくなってしまうシフトレンズやバリソフトレ
ンズ等特殊なレンズのことである。このサブルーチンで
はFAモードからAFモードへの変化は見ていないがこれ
は、後の第11図のステップ#86で見ることになる。
In # 247 of FIG. 15, it is checked whether or not the lens can detect the focus. If the focus can be detected, the FA flag (FA.F) is set to "0" to enter the FA mode. If the focus cannot be detected, the FA flag is set to "1". Then, it is judged that the AF flag is "1" and the mode is MANUAL mode. When FAEN = 1, it means that the lens is attached to the camera body and the focus can be detected. Other than this, FAEN is “0”. A lens whose focus cannot be detected is a lens such as a reflective telephoto lens whose focus cannot be detected even if the open F value for AF is small, or a special lens such as a shift lens or a vari-soft lens in which aberration becomes extremely large. This subroutine does not see the change from FA mode to AF mode, but this will be seen later in step # 86 in FIG.

さて、第15図のサブルーチンはリターンして次のステッ
プ#17へ進む。ここでAFモードかどうかを見て、AFモー
ドであれば#19へステップし、AFモードでなければ#18
でFAモードか否かのチェックをし、FAモードでなければ
#36の「MANUAL」フローへ進む。
Now, the subroutine of FIG. 15 returns and proceeds to the next step # 17. Check if it is AF mode. If it is AF mode, go to # 19. If it is not AF mode, go to # 18.
Check in FA mode to see if it is not FA mode, and proceed to # 36 “MANUAL” flow.

#19では表示復帰のための前回までの状態を見てレリー
ズ前の状態がローコントラストであったならば、#20で
ローコン表示を復帰させる。ローコン表示とは、焦点調
節状態表示用LED(LEDL)(LEDM)(LEDR)の3つのう
ちの両端(LEDL)(LEDR)を2Hzでオン−オフを繰り返
して点滅させる表示である。ローコントラストでなけれ
ば#21で焦点調節状態又は方向表示を復帰させる。レリ
ーズ前までの表示内容は、表示レジスタに保存されてい
るので、ポートを出力モードにすればこれまでの表示が
復帰する。#22では、AFモードフラグ(AF.F)によって
AFモードか否かのチェックをし、AFモードではなくてFA
モードであれば、#39の「CDINTA」へ進み繰り返し焦点
検出を行う。従って、FAモード時はレリーズ後に第2図
のスイッチ(S1)がオンであれば続けて焦点検出し表示
するということになる。AFモード時は、#23でDR信号に
基づいて単写モードか連写モードかを見て、DR=0であ
れば単写モードであり#25で端子(P12)のAFE信号を
“High"にする。この信号は、自動焦点調節動作が終わ
ってピントが合ってレリーズ可の状態にあるという情報
を制御マイコン(MC2)へ知らすためのものである。
In # 19, if the state before release is low contrast when looking at the previous state for display restoration, the low contrast display is restored in # 20. The low contrast display is a display in which both ends (LEDL) (LEDR) of the three LEDs (LEDL) (LEDM) (LEDR) for focus adjustment state display are blinked by repeatedly turning on and off at 2 Hz. If the contrast is not low, the focus adjustment state or the direction display is restored in # 21. The contents displayed before the release are saved in the display register, so the previous display is restored when the port is set to output mode. In # 22, by the AF mode flag (AF.F)
Check if it is in AF mode, FA not in AF mode
If it is the mode, go to # 39 “CDINTA” to repeatedly perform focus detection. Therefore, in the FA mode, if the switch (S1) in FIG. 2 is turned on after the release, the focus is continuously detected and displayed. In AF mode, see # 23 to see if it is single shooting mode or continuous shooting mode based on the DR signal. If DR = 0, it is single shooting mode, and in # 25, the AFE signal of the terminal (P12) is “High”. To This signal is for notifying the control microcomputer (MC2) that the automatic focus adjustment operation is completed and the focus is achieved and the release is possible.

シャッタレリーズボタンが2段押しまで押されている場
合、制御マイコン(MC2)は、AF優先モード時は、この
信号を見て“High"であればレリーズを許可し、“Low"
であればレリーズ不可にしている。すなわち単写モード
であれば、一度合焦してレリーズしたあとそのままレリ
ーズ1段押しのまま(スイッチ(S1)ONのまま)、AFS
信号等の割り込みが入らないと、#15からの「AFSINR」
のフローを進み、#25でAFE信号が“High"になるので、
このまま被写体の位置をかえると、たとえば非合焦状態
であってレリーズできる。なおこの時は次の#26でレリ
ーズの割り込みかAFマイコン(MC1)のストップの割り
込みを待つことになっているので、レンズは駆動しな
い。このシーケンスのことを「AFロック」と呼ぶことが
できる。
When the shutter release button is pressed down to the second step, the control microcomputer (MC2) permits this release when it is "High" when it sees this signal in AF priority mode, and "Low".
If so, release is not allowed. That is, in the single-shot mode, after focusing and releasing once, keep pressing the release 1-step (switch (S1) ON), AFS
"AFSINR" from # 15 if no interrupts such as signals come in
, The AFE signal goes "High" at # 25.
If the position of the subject is changed as it is, for example, the shutter can be released in the out-of-focus state. At this time, the lens is not driven because it is waiting for the release interrupt or the AF microcomputer (MC1) stop interrupt at the next # 26. This sequence can be called "AF lock".

一方連写モードであれば#23から#24へ進み補助光AFモ
ード中かどうかのチェックをする。補助光AFモードであ
れば、連写モードでかつ補助光AFモードになっているの
で、自動焦点調節とレリーズは一度のみ可とし、一度レ
リーズすれば次のレリーズや自動焦点調節は禁止する。
そのためAFE信号は、“High"にしないで#26へ進む。補
助光AFモードでない連写モードでは#39からの「CDINT
A」へ進み次の焦点検出に入る。
On the other hand, if it is the continuous shooting mode, the process proceeds from # 23 to # 24 to check whether or not the auxiliary light AF mode is in progress. In the auxiliary light AF mode, the continuous shooting mode and the auxiliary light AF mode are in effect, so automatic focus adjustment and release are allowed only once, and once released, the next release and automatic focus adjustment are prohibited.
Therefore, the AFE signal does not go "High" and the process proceeds to # 26. In continuous shooting mode other than fill-in AF mode
Proceed to "A" to enter the next focus detection.

第9図の#33の「AFSTART」から始まるフローは#14か
ら飛んでくる。#33では第15図のサブルーチン「SIOSE
T」を呼んでいる。AFマイコン(MC1)の動作のスタート
に当たって制御マイコン(MC2)から種々のデータをも
らって動作モードを決める。この時決まったモードは、
AFマイコン(MC1)内のモードレジスタRGに自動的に書
き込まれる。このレジスタRGは後にモードがかわったか
どうかをチェックするためのものである。#34、#35で
は動作モードのチェックをし、AFモード・FAモードのい
ずれでもなくてMANUALモードであれば#36へ進む。#36
では他から来た時のために、ドライバー回路(MDR1)へ
の信号MR、MF、MBをすべて“High"にしてレンズ用モー
タ(MO1)をストップさせる。#37ではINT1、INT2以外
の割り込みをストップさせて#33へループし繰り返す。
The flow starting from “AF START” in # 33 of FIG. 9 starts from # 14. In # 33, the subroutine “SIOSE in FIG. 15 is displayed.
Calling "T". When starting the operation of the AF microcomputer (MC1), the control microcomputer (MC2) receives various data to determine the operation mode. The mode decided at this time is
It is automatically written to the mode register RG in the AF microcomputer (MC1). This register RG is for checking whether the mode has been changed later. In # 34 and # 35, the operation mode is checked, and if it is neither AF mode nor FA mode but MANUAL mode, proceed to # 36. # 36
Then, in case of another person, all the signals MR, MF and MB to the driver circuit (MDR1) are set to "High" to stop the lens motor (MO1). In # 37, interrupts other than INT1 and INT2 are stopped, and it loops to # 33 and repeats.

AFもしくはFAモードの時は#38へ進みCCDイメージセン
サ(FLM)のイニシャライズをしてセンサのウオーミン
グアップをしておく。#39で端子(P20)のIOS信号を
“Low"にしているのはインターフェース回路(IF1)をA
Fマイコン(MC1)からの信号を入力するモードにセット
するとともに、CCDイメージセンサ(FLM)の出力を積分
するためのモードにセットするためでもある。そして第
10図の#44へ進む。ここではまず1−cut shotフラグ
(第5−1表の1−cut shotF)、すなわち積分時間が5
0msを超えたがどうかを示すフラグをクリアしておく。
#45で端子(P12)から出力されるAFE信号を“Low"にし
ておく。ここへは合焦後も繰り返しループしてくるため
こうしている。これは、AFE信号が、合焦になれば“Hig
h"になる信号であるので次の演算に備えて“Low"にして
おくのである。次に、#46で端子(P23)からNB2信号を
出力し、CCDイメージセンサ(FLM)の積分を開始する。
#47で後述の焦点検出演算中及び積分中のレンズ移動分
補正のためのレンズ駆動パルスカウント値EVTCNTを読み
取ってメモリT1へ保存しておく。#48で、CCDイメージ
センサ(FLM)の最大積分時間100msの半分50msをセット
しておく。第9図において「CDINTA」と平行に#40から
始まる「CDINT」があり、#53まで別フローがあるが、
これは「繰り込み積分」と称している機能のためのフロ
ーでこれについての説明は後述する。
When in AF or FA mode, proceed to # 38 to initialize the CCD image sensor (FLM) and warm up the sensor. The interface circuit (IF1) is set to A by setting the IOS signal of the terminal (P20) to “Low” in # 39.
This is also to set the mode to input the signal from the F microcomputer (MC1) and to set the mode to integrate the output of the CCD image sensor (FLM). And the first
Go to # 44 in Figure 10. Here, first, the 1-cut shot flag (1-cut shotF in Table 5-1), that is, the integration time is 5
Clear the flag indicating whether it exceeds 0 ms.
In # 45, set the AFE signal output from the terminal (P12) to "Low". I'm doing this here because it keeps looping even after focusing. This is because if the AFE signal is in focus, "Hig
Since it is a signal that becomes "h", it is set to "Low" in preparation for the next calculation. Next, at # 46, the NB2 signal is output from the terminal (P23) and the integration of the CCD image sensor (FLM) is started. To do.
In # 47, the lens drive pulse count value EVTCNT for correcting the lens movement amount during focus detection calculation and integration described later is read and stored in the memory T1. At # 48, half of the maximum integration time of the CCD image sensor (FLM), 100ms, is set to 50ms. In Fig. 9, there is "CDINT" starting from # 40 in parallel with "CDINTA", and there is another flow up to # 53,
This is a flow for the function called "convolution integration", and a description thereof will be given later.

#48から続いて#55からの「TLNTφ」に移る。#55で
は、すべての割り込みルーチンを許可している。#56で
は端子(P25)に入ってくるNB4信号をチェックし、“Lo
n"であればCCDイメージセンサ(FLM)が被写体の明るさ
に応じた積分を終了したという信号であるので#64の
「CDINT2」へ進む。“High"であれば積分が続いている
ということで#57へ進み、最初に設定した最大積分時間
が経過したかどうかのチェックをする。すなわち、#48
で設定した50msか、#53で設定した40msか、さらにこの
先で設定する#61の50msか、#62の150msが経ったかを
見て、経っていなければ#56へ戻り、ループを繰り返
す。最大積分時間が経てば#58へ進む。ここで1−cut
shotフラグ(1−cut shotF)が“1"でなければ#59へ
進みこのフラグに“1"をたてる。#63へ進む時は1−cu
t shotフラグが“1"の時であるので、この#59を通った
あとか又は#49を通った場合である。#60では200msフ
ラグ(第5−2表の200msF)が“1"かどうかをチェック
し、“1"でなければ通常最大積分時間が100msと決めて
あるので#48でセットした積分50msの残りの50msを#61
でセットして#56へ戻り、NB4信号をチェックする。#6
0で200msフラグが"1"である時(これは後ほどのフロー
の中でセットされるもので特殊条件の場合に限り、最大
積分時間を200msと決めている場合)は#48でセットし
た積分50msの残りの150msをセットして#56に戻り、NB4
信号をチェックする。
Continue from # 48 to "TLNTφ" from # 55. # 55 allows all interrupt routines. In # 56, check the NB4 signal coming into the terminal (P25), and
If it is n ", it is a signal that the CCD image sensor (FLM) has completed the integration according to the brightness of the subject, so the flow proceeds to" CDINT2 "of # 64. If it is "High", it means that the integration is continuing, so proceed to # 57 and check whether the maximum integration time initially set has elapsed. That is, # 48
See if 50ms set in step # 40, 40ms set in # 53, 50ms in # 61 or 150ms in # 62 set in the future, and if not, return to # 56 and repeat the loop. After the maximum integration time, proceed to # 58. 1-cut here
If the shot flag (1-cut shotF) is not "1", proceed to # 59 and set "1" to this flag. 1-cu when going to # 63
Since the t shot flag is "1", it is after passing # 59 or # 49. In # 60, it is checked whether the 200ms flag (200msF in Table 5-2) is "1". If it is not "1", the maximum integration time is usually 100ms, so the remaining 50ms of integration set in # 48 remains. 50ms for # 61
Set with and return to # 56 to check the NB4 signal. # 6
When it is 0 and the 200ms flag is "1" (this is set in the later flow and only under special conditions, the maximum integration time is set to 200ms), the integration set in # 48 Set the remaining 150ms of 50ms and go back to # 56, NB4
Check the signal.

CCDイメージセンサ(FLM)からの出力が充分なレベルま
で得られれば#56から#64へ進む。ここで出力が充分で
なくても、最大積分時間がすぎれば積分を終了しなけれ
ばならず、その時が#58から#63へ進む時である。#58
では今度は1−cut shotフラグは“1"であるので必ず#
63へ進み、端子(P21)からインターフェース回路(IF
1)へ強制積分停止信号NB0を出力する。そして、#64か
らの「CDINT2」へ進む。#64から#67までのステップは
「繰り込み積分」のフローであり、説明はあとへ譲る。
If the output from the CCD image sensor (FLM) is obtained to a sufficient level, proceed from # 56 to # 64. Here, even if the output is not sufficient, the integration must be ended if the maximum integration time has passed, and that is the time when the process proceeds from # 58 to # 63. # 58
Then the 1-cut shot flag is "1" this time, so be sure to #
Proceed to 63, and from the terminal (P21) to the interface circuit (IF
Output the forced integration stop signal NB0 to 1). Then proceed to "CDINT2" from # 64. The steps from # 64 to # 67 are the flow of "renormalization integration", and the explanation is given later.

#68ではINT1、INT2以外の割り込みを禁止しているが、
これは、このあとのデータ取り入れ時に割り込みが入っ
てタイミングが狂うことがないようにしているためであ
る。INT1、INT2割り込みはメインフローの最初から始ま
るので禁止しない。#69は、これまでCCD積分中に補助
光用LED(48)が点いていた場合、端子(P13)のST4信
号を“Low"にして消している。#70の端子(P20)のIOS
信号を“High"にしてインターフェース回路(IF1)をデ
ータ出力モードに切り換えている。すなわちNB4〜NB0の
信号がデータ転送用のラインとなってインターフェース
回路(IF1)からAFマイコン(MC1)へデータを送ること
ができるようになる。データとしては8ビットデータが
送られるが、NB3〜NB0までの4ビットパラレルで、2回
に分けて送られ、NB4でそのタイミングをとりNB4が“Hi
gh"の時に上位の4ビットデータが、NB4が“Low"の時に
下位の4ビットデータが送られる。AFマイコン(MC1)
は上位と下位に分けて送られたデータを作りなおして取
り入れる。
In # 68, interrupts other than INT1 and INT2 are prohibited,
This is to prevent interruption of timing when the data is taken in after this and timing is not wrong. Since INT1 and INT2 interrupts start from the beginning of the main flow, do not disable them. # 69 turns off the ST4 signal at the terminal (P13) by turning it "Low" when the auxiliary light LED (48) is on during CCD integration. # 70 pin (P20) IOS
The signal is set to "High" and the interface circuit (IF1) is switched to the data output mode. That is, the signals of NB4 to NB0 become lines for data transfer, and data can be sent from the interface circuit (IF1) to the AF microcomputer (MC1). Although 8-bit data is sent as data, it is sent in two steps in 4-bit parallel from NB3 to NB0, and the timing is taken by NB4.
High-order 4-bit data is sent when gh "and low-order 4-bit data is sent when NB4 is" Low ". AF microcomputer (MC1)
Recreates and sends the data sent separately to the upper and lower layers.

そこで、まず、インターフェース回路(IF1)からAFマ
イコン(MC1)に送られてくるのがAGCデータで第6図の
AGCコントローラ(406)内で決められたゲインの数値
(1倍か2倍か4倍か8倍)のいずれかの数値(以下、
AGCデータという)が送られ、これを第10図の#71でAF
マイコン(MC1)へ取り入れる。ところでCCDイメージセ
ンサ(FLM)の積分が終わってから、これらデータの出
てくるタイミングはインターフェース回路(IF1)で決
まっており、積分が終わってただちにAGCデータを取り
入れないといけない。AGCデータは一定時間出力されて
おり、これが終わればすぐCCDイメージセンサ(FLM)の
画素データがやはり一定タイミングで送られてくる。こ
のAGCデータを取り込んだあとのわずかの時間で、#72
にあるように、積分終了時のレンズ駆動パルスカウント
値EVTCNTを読み取ってメモリT2へ保存しておく。積分開
始時の#47に対応するものである。
Therefore, first, the AGC data sent from the interface circuit (IF1) to the AF microcomputer (MC1) is shown in FIG.
Any of the numerical values (1 times, 2 times, 4 times or 8 times) of the gain determined in the AGC controller (406) (hereinafter,
AGC data) is sent, and this is AFed at # 71 in Fig. 10.
Take it into the microcomputer (MC1). By the way, after the integration of CCD image sensor (FLM) is finished, the timing when these data comes out is decided by the interface circuit (IF1), and AGC data must be taken in immediately after the integration is finished. AGC data is output for a certain period of time, and as soon as this is completed, pixel data of the CCD image sensor (FLM) is also sent at a certain timing. Just 72 hours after capturing this AGC data, # 72
As described in, the lens drive pulse count value EVTCNT at the end of integration is read and stored in the memory T2. It corresponds to # 47 at the start of integration.

この後すぐ#73でCCDイメージセンサ(FLM)の画素デー
タを入力し、AFマイコン(MC1)内のメモリに保存され
る。次の#74は、レンズ駆動中に、駆動されるレンズが
無限遠端に当たっているか最近接端に当たっているかを
チェックするサブルーチンで、終端(無限遠端もしくは
最近接端)に当たっていれば、レンズ駆動用モータ(MO
1)をストップさせたり、反転駆動させたりする。サブ
ルーチン「CKLOCK」については第13図を用いて後で説明
する。#75では制御マイコン(MC2)とシリアル通信し
レンズを駆動するためのデータ等をもらう。#33で一度
該データをもらっているのにここでも再びシリアル通信
をしているのは、繰り返しループ中では#33を通らない
ので、もし途中でレンズ駆動用の変換係数KROMが変わっ
たり(レンズによってはピント状態や、ズーミング等に
よって変わる)、マイコン動作のモードが変わったりす
るとデータが変わるので、これを繰り返し見るために#
75に「SIOSET」を設けてある。そして#76で#73で取り
入れたCCDイメージセンサ(FLM)のデータを用いて焦点
検出演算をする。この方法については、本出願人がすで
に特開昭59−126517号公報で提案したような方法でデフ
ォーカス量DFが求められるが、本発明の要旨とは無関係
であるので説明を省略する。
Immediately after this, the pixel data of the CCD image sensor (FLM) is input at # 73 and saved in the memory of the AF microcomputer (MC1). The next # 74 is a subroutine that checks whether the lens being driven hits the infinity end or the closest end while driving the lens. (MO
1) Stop or reverse drive. The subroutine "CKLOCK" will be described later with reference to FIG. In # 75, serial communication with the control microcomputer (MC2) is received, and data for driving the lens is received. Even though I got the data once in # 33, I am doing serial communication again here because it does not pass through # 33 in the repeated loop, so if the conversion coefficient KROM for lens drive changes in the middle (depending on the lens Will change depending on the focus condition, zooming, etc.), and the data will change if the microcomputer operation mode changes, so to check this repeatedly #
There is a "SIOSET" on the 75. Then, in # 76, the focus detection calculation is performed using the data of the CCD image sensor (FLM) imported in # 73. With respect to this method, the defocus amount DF is obtained by the method already proposed by the present applicant in Japanese Patent Application Laid-Open No. 59-126517.

#77から#85までは、被写体の輝度が所定レベルよりも
低いか否かのチェックで、AGCデータのレベルを見て判
断している。ここで、被写体の輝度が所定レベル以下の
ときをローライトと呼ぶ。#77でローライトフラグ(第
5−2表のローライトF)に“1"を入れておく。#78で
は電子閃光装置がカメラに装着されていて、補助光スイ
ッチ(44)が閉成されていれば、シリアル通信で送られ
てくるAFFL信号は“1"になっているので#80へ進む。す
なわち補助光発光可能状態がセットされていれば、最大
積分時間が100msのモードの時にはAGCデータが2倍、4
倍、8倍の時にローライト判断となって、#86の「MAIN
1」へぬけていき、AGCデータが1倍の時には#80を通っ
て#85でローライトフラグを“0"にクリアして#86へ進
む。最大積分時間が200msのモードの時には全てローラ
イトとなり、#80から#86へぬける。
From # 77 to # 85, whether or not the brightness of the subject is lower than a predetermined level is checked to judge by looking at the level of AGC data. Here, when the brightness of the subject is below a predetermined level, it is called low light. In # 77, "1" is set in the low light flag (low light F in Table 5-2). In # 78, if the electronic flash device is attached to the camera and the auxiliary light switch (44) is closed, the AFFL signal sent by serial communication is "1", so proceed to # 80. .. That is, if the auxiliary light emission enabled state is set, the AGC data is doubled and 4 times when the maximum integration time is 100 ms.
When it is double or 8 times, it becomes a low light judgment and # 86 “MAIN
When the AGC data is 1x, the low light flag is cleared to "0" at # 85 and goes to # 86. In the mode with the maximum integration time of 200ms, all become low light and go from # 80 to # 86.

一方補助光発光可能状態がセットされていない場合には
#78から#81へ移り、最大積分時間が100msのモードの
場合には、AGCデータが4倍と8倍の時に#82,#83,#8
6とぬけてローライト判断となり、AGCデータが1倍と2
倍の時には#82又は#83から#85へと移りローライトフ
ラグをクリアして#86へぬける。最大積分時間が200ms
のモードの場合には、AGCデータが2倍,4倍,8倍の時に
#84から#86へぬけてローライト判断になり、AGCデー
タが1倍の時には#84から#85へぬけ#85でローライト
フラグをクリアして#86へぬけていく。ここで補助光発
光可能状態がセットされている時のローライトの判断
が、セットされていない時のローライト判断よりも、1
段分明るい所からになっている。これは、被写体が低コ
ントラストでかつ低輝度なら焦点検出演算不能として、
自動焦点調節をあきらめるという場合に大いに有効であ
る。すなわち、補助光発光可能状態がセットされている
ならば、早めに補助光不使用状態での焦点検出をあきら
めて、すぐ補助光使用モードに入れて確実に焦点検出し
ようとし、補助光発光可能状態がセットされていないな
らば、とにかくいける所まで外光だけの焦点検出して、
低コントラストかつ低輝度になってしまえば自動焦点調
節をしないでレンズを繰り込んで終わるといった方法で
ある。本実施例では、焦点検出をあきらめるという前に
さらにレンズを繰り出し又は繰り込みの一往復のスキャ
ンをさせてコントラストがある位置を捜しに行くという
方法をとっている。これについては第13図の#165から
の「LOWCON」以後のフローで説明する。
On the other hand, if the auxiliary light emission enabled state is not set, the process moves from # 78 to # 81. In the mode with the maximum integration time of 100 ms, when the AGC data is 4 times and 8 times, # 82, # 83, # 8
It becomes low light judgment through 6 and AGC data is 1 and 2
At the time of double, it moves from # 82 or # 83 to # 85 and clears the low light flag and goes to # 86. Maximum integration time is 200 ms
In the case of the mode, when the AGC data is 2 times, 4 times, or 8 times, the low light determination is made by going from # 84 to # 86, and when the AGC data is 1 time, going from # 84 to # 85 is done # 85 Clear the low light flag and go to # 86. Here, the determination of low light when the auxiliary light emission enabled state is set is 1 more than the determination of low light when not set.
It starts from a bright place. This is because if the subject has low contrast and low brightness, focus detection calculation is impossible,
It is very effective when giving up automatic focusing. In other words, if the auxiliary light emission enabled state is set, the focus detection in the auxiliary light non-use state is given up early, and the focus is detected immediately by immediately entering the auxiliary light use mode to enable the auxiliary light emission enabled state. If is not set, the focus detection of only the outside light is detected to the place where it can go anyway,
If the contrast becomes low and the brightness becomes low, the lens is retracted without automatic focus adjustment. In this embodiment, before giving up the focus detection, the lens is further extended or reciprocated to perform one reciprocating scan to search for a position having contrast. This will be described in the flow after "LOWCON" from # 165 in FIG.

本実施例では被写体輝度の判定をAGCデータによってい
るが、これは積分時間によってもよい。例えば、本実施
例に用いられるフラグのうちで、CCDイメージセンサ(F
LM)の積分時間が50ms以上のときならたつ1−cut shot
フラグを用いてもよい。
In the present embodiment, the determination of the subject brightness is based on AGC data, but this may be based on the integration time. For example, among the flags used in this embodiment, the CCD image sensor (F
If the integration time of LM) is 50 ms or more, it will be 1-cut shot
You may use a flag.

さて第11図の#86からの「MAIN1」について次に説明す
るが、ここからレンズの駆動処理等の話に入る。まず#
86は#75で得られたシリアルデータとこれまでのAFマイ
コン(MC1)の動作していたモードとを比較して、モー
ドが変わっていれば#33の「AFSTART」から再び始め
る。すなわち前回のシリアル通信#33後でセットされて
いるAFモード/FAモード/MANUALモードの別や、単写/連
写のモードの別を示すレジスタRGの内容と、焦点検出モ
ードのフラグ(AFモードフラグ、FAモードフラグ)や、
単写モードのフラグ(DR)とを比較して変わっていれば
#33へ進むということである。そして、この#33のとこ
ろで、自動的にモードレジスタRGに新たなモードが書き
込まれる。#87で、補助光を用いる焦点検出の動作モー
ドになっているかどうかのチェックをし、補助光を用い
るモード(以下、補助光AFモードという)であれば、補
助光を用いる第14図の焦点検出用フローの#238「LSAV
E」へ入っていく。なおこの補助光AFモードへの入り方
は、被写体が低コントラストかつ低輝度の状態であると
いう条件であるため、第13図の#165の「LOWCON」から
始まるローコントラストのフローの中から入ることにな
る。
Now, the "MAIN1" from # 86 in FIG. 11 will be described below, but from here, the process of driving the lens will be explained. First #
The 86 compares the serial data obtained in # 75 with the mode in which the AF microcomputer (MC1) has been operating so far, and if the mode has changed, restarts from "AF START" in # 33. That is, the contents of register RG indicating whether AF mode / FA mode / MANUAL mode set after the last serial communication # 33 or single shooting / continuous shooting mode and the focus detection mode flag (AF mode Flag, FA mode flag),
It means that if it is changed by comparing with the flag (DR) of the single shooting mode, the process proceeds to # 33. Then, at # 33, a new mode is automatically written in the mode register RG. In # 87, it is checked whether or not the mode is the focus detection operation mode using the auxiliary light. If it is the mode using the auxiliary light (hereinafter referred to as the auxiliary light AF mode), the focus of the auxiliary light in FIG. 14 is used. Detection flow # 238 "LSAV
Enter "E". Note that the method of entering the fill-in AF mode is that the subject is in a state of low contrast and low brightness. Therefore, enter from the low-contrast flow starting from “LOW CON” in # 165 of FIG. become.

#87で補助光AFモードでなければ、#88で今回ローコン
フラグ(第5−1表の今回ローコンF)をチェックして
焦点検出演算の結果がローコンラストであったか否かを
判別し、ローコントラストであれば第13図の#165の「L
OWCON」フローへ移る。この#88で出てくる今回ローコ
ンフラグは#76の中で判別され、たてられるものであ
る。今回の演算結果がローコントラストでなければ、#
89へ進み、第10図の#71で入力したAGCデータをチェッ
クし、AGCデータが1倍であれば#90で200msフラグをク
リアしておく。これは、先ほど暗い時に最大積分時間が
200msモードの状態があると述べたが、200msモードにな
っている時、AGCデータが1倍であれば200msモードにし
ておく必要はなく、最大積分時間の短い100msモードに
しておいた方が積分時間が短くて良いからである。積分
時間が200msでAGCデータが1倍の時と、積分時間が100m
sでAGCデータが2倍の時とは画素出力はほぼ同じものと
見ることができるということと、被写体の動きや、カメ
ラの手ぶれを考えれば、積分時間が長くなると不利であ
るということで、被写体のコントラストが見つかれば、
最大積分時間が100msのモードにもどしているのであ
る。
If it is not the auxiliary light AF mode in # 87, the low contrast flag (current low contrast F in Table 5-1) of # 88 is checked in # 88 to determine whether or not the result of the focus detection calculation is low contrast last. If there is, the "L" of # 165 in Fig. 13
Move to "OWCON" flow. This time the low-con flag that appears in # 88 is identified and set in # 76. If the result of this operation is not low contrast, #
Proceed to 89, check the AGC data input in # 71 of FIG. 10, and if the AGC data is 1 time, clear the 200 ms flag in # 90. This is the maximum integration time when it was dark
I mentioned that there is a state of 200ms mode, but when it is in 200ms mode, if the AGC data is 1 time, it is not necessary to set it to 200ms mode, and it is better to set it to 100ms mode with a shorter maximum integration time. This is because the time is short. When integration time is 200ms and AGC data is 1 time, integration time is 100m
It can be seen that the pixel output is almost the same as when the AGC data is doubled in s, and it is disadvantageous when the integration time becomes long, considering the movement of the subject and camera shake. If you can find the contrast of the subject,
The maximum integration time is 100ms.

#91から始まる「NLOC1」のフローは、被写体にコント
ラストがみつかった時のフローで、#91では、スキャン
禁止フラグに“1"をたてる。これは、被写体のコントラ
ストが低い場合、コントラストの高い位置をさがして、
フォーカシングレンズを動かしつつ焦点検出することを
ローコンスキャンと呼んでいるのであるが、いったん被
写体にコントラストが出れば、スイッチ(S1)が閉成さ
せている間の一連のシーケンスでは、このローコンスキ
ャンを禁止している。なぜなら、頻繁にスキャンをする
と、自動焦点調節カメラとして使いにくいということの
他に、一度コントラストがみつかったのであるから、今
のレンズ繰り出し位置付近で、続けて焦点検出した時に
たとえローコントラストになることがあっても、再びコ
ントラストがみつかる確率も多いと思われ、次にローコ
ントラストになったからといってすぐにローコンスキャ
ンに入ると焦点検出にとって逆効果であるということに
よる。
The flow of "NLOC1" starting from # 91 is a flow when the contrast is found in the subject, and in # 91, the scan prohibition flag is set to "1". This is because if the contrast of the subject is low, look for a high contrast position,
Focus detection while moving the focusing lens is called low-con scan. However, once the contrast appears on the subject, this low-con scan is performed in a series of sequences while the switch (S1) is closed. Is prohibited. Because, if you scan frequently, it is difficult to use as an autofocus camera, and the contrast was found once, so even if the focus is detected continuously in the vicinity of the current lens extension position, it will be low contrast. However, it seems that there is a high probability that the contrast will be found again, and even if the low contrast is reached next time, it is counterproductive to focus detection if the low contrast scan is started immediately.

更に、このスキャン禁止状態にしているのは、この他
に、ローコントラストでスキャンを一度やり終えた場合
があるからである。#92から#101までのフローではロ
ーコンスキャン中に、充分なコントラストを見つけた時
の処理を主として表わしている。これには大きく分けて
2通りの場合があり、CCDイメージセンサ(FLM)の積分
時間が50msを超えている時と、そうでない時に分かれ
る。積分時間が50msを超えるように被写体が暗い時には
ローコンスキャン中にコントラストを見つけた時点で、
一度レンズを完全に止めてから焦点検出をしなおし、そ
の結果に従って合焦位置までレンズを動かす。レンズが
動いている間は焦点検出しない。この理由は、積分時間
が長くかかるようになってきた時、レンズ駆動を行なっ
ていれば、被写体の像が流れ出し、デフォーカス量計算
に悪影響を及ぼすからである。積分時間が長くなり、AG
Cの倍率が大きくなってきたりすると、CCDイメージセン
サ(FLM)の暗出力ばらつきのノイズも大きくなり、こ
の状態で像が流れたりすと、微妙なピント合わせが狂う
からである。
Further, the reason why the scan is prohibited is that, in addition to this, there is a case where the scan is once completed with low contrast. The flow from # 92 to # 101 mainly shows the processing when a sufficient contrast is found during the low contrast scan. This can be roughly divided into two cases, and it is divided when the integration time of the CCD image sensor (FLM) exceeds 50 ms and when it is not. When the subject is dark such that the integration time exceeds 50 ms, when the contrast is found during low contrast scanning,
Once the lens is completely stopped, focus detection is performed again, and the lens is moved to the in-focus position according to the result. Focus is not detected while the lens is moving. The reason is that when the lens is driven when the integration time becomes long, the image of the subject flows out, which adversely affects the defocus amount calculation. Integration time becomes longer, and AG
This is because when the magnification of C becomes large, the noise due to the dark output variation of the CCD image sensor (FLM) also becomes large, and if the image flows in this state, delicate focusing will be lost.

そこで積分時間が50msを超えるような場合には、レンズ
を動かしながら焦点検出をしないで、止まっている時の
みの値によって焦点検出するという方法をとり、これを
1−cut shotモードとよび、このことを示すフラグ(第
5−1表の1−cut shotフラグ)を設けてある。このフ
ラグは#49又は#59ですでにセットされてくるのであ
る。次に積分時間が50msを超えないような明るい被写体
の場合は、ローコンスキャン中に充分なコントラストを
見つけると、今度はレンズを停止させることなく、コン
トラストが出たそのデータを用いて、焦点検出演算を行
ない。その結果の合焦点までレンズを駆動させる。この
間、焦点検出演算は繰り返しており、合焦位置までのレ
ンズ駆動量を常にリフレッシュさせてフォーカシングさ
せる。これはレンズ駆動中繰り返して焦点検出するの
で、multi shotモードと称しておく。ローコンスキャン
中からレンズを止めずに焦点検出をするということにな
ると、CCDイメージセンサ(FLM)が積分している時点と
レンズ駆動量が求まる時点とでは、レンズ位置が異なっ
ている。この移動分を補正するための準備を後述の「LO
WCON」フローの中で行なっており、これを用いて移動分
の補正をする。この移動分の補正についての考え方は、
特開昭59−68713号公報に述べられているので、ここで
詳しいことは省略する。
Therefore, when the integration time exceeds 50 ms, the focus is not detected while moving the lens, and the focus is detected only when the lens is stopped. This is called the 1-cut shot mode. A flag indicating that (1-cut shot flag in Table 5-1) is provided. This flag is already set in # 49 or # 59. Next, in the case of a bright subject whose integration time does not exceed 50 ms, if sufficient contrast is found during low-con scanning, focus detection is performed using the contrasted data without stopping the lens this time. Calculate. The lens is driven to the resulting focal point. During this period, the focus detection calculation is repeated, and the lens drive amount up to the in-focus position is constantly refreshed for focusing. This is called the multi shot mode because the focus is repeatedly detected while the lens is being driven. When it comes to focus detection without stopping the lens during low contrast scanning, the lens position is different between the time when the CCD image sensor (FLM) is integrated and the time when the lens drive amount is obtained. For the preparation for correcting this movement, see “LO
It is performed in the "WCON" flow, and the movement amount is corrected using this. The idea about this movement correction is
Since it is described in Japanese Patent Laid-Open No. 59-68713, detailed description will be omitted here.

次に、ローコンスキャン中からコントラストを見つけ、
multi shotモードの動作を始めたあとでもローコントラ
ストの結果が出ることもありえる。この場合、ローコン
トラストの結果については無視し、ローコントラストと
なる前にセットされている駆動量に従って合焦点と思わ
れる位置までレンズを駆動させる。コントラストの出て
いる結果だけを使って駆動させるのである。ローコント
ラスト状態から脱するということを判断するのは、前回
ローコンフラグ(第5−2表の前回ローコンF)をチェ
ックして行なう。このフラグは、第13図の#165からの
「LOWCON」フローの中でセットされるフラグで、前回の
演算結果がローコントラストであった時にセットされて
いる。一方、#92に来ている時というのは、今回の結果
ではコントラストがあったということであるので、#92
で前回ローコンフラグに“1"がたっていれば、ローコン
トラストから抜け出てきたということで#93へ進む。前
回ローコンフラグが“0"であれば、はじめからコントラ
ストがあって焦点検出している時に通る所として、#92
から#102へ進む。#93では焦点調節状態の表示を消
す。これまでローコントラストで、レンズ駆動が停止状
態であった場合は、焦点検出不能の点滅表示をしている
が、コントラストが出たのでこれは消しておくのであ
る。#94では、前述のように1−cut shotフラグがたっ
ていれば、レンズを停止させないといけないので#95へ
進み、1−cut shotフラグがたっていなければ、ローコ
ンスキャン中であってもレンズを止めずにおき、#101
へ進む。#101では、前回ローコンフラグ、スキャン当
りフラグ(第5−1表のスキャン当りF)、及びスキャ
ン中フラグ(第5−1表のスキャン中F)をクリアして
おく。これはローコンスキャンを一度し終えていたり、
又は、スキャン中であった場合の状態を示すフラグをリ
セットしておくためである。なお、スキャン禁止フラグ
はもちろんリセットしないで残しておく。
Next, find the contrast in the low contrast scan,
It is possible that low-contrast results may be obtained even after the operation of the multi shot mode is started. In this case, the result of low contrast is ignored, and the lens is driven to a position that is considered to be the in-focus point according to the drive amount set before the low contrast is obtained. Only the results with contrast are used for driving. The decision to exit the low contrast state is made by checking the previous low contrast flag (previous low contrast F in Table 5-2). This flag is set in the "LOWCON" flow from # 165 of FIG. 13, and is set when the previous calculation result was low contrast. On the other hand, when it comes to # 92, it means that there was contrast in this result, so # 92
Then, if the low contrast flag was set to "1" last time, it means that the low contrast was exited and the process proceeds to # 93. If the low contrast flag was “0” the last time, there is contrast from the beginning and it is passed as # 92 when the focus is detected.
To # 102. In # 93, the focus adjustment status display is turned off. Until now, when the lens drive was in a low contrast state and the lens drive was stopped, a blinking display indicating that focus detection is not possible is displayed, but this is erased because the contrast appears. In # 94, if the 1-cut shot flag is set as described above, it is necessary to stop the lens, so proceed to # 95. Do not stop, # 101
Go to. In # 101, the previous low contrast flag, the per-scan flag (F per scan in Table 5-1) and the in-scan flag (In-scan F in Table 5-1) are cleared. This is after finishing low contrast scan,
Alternatively, it is for resetting the flag indicating the state when the scan is in progress. Of course, the scan prohibition flag is left without being reset.

#95は、1−cut shotモード状態になっている時に来て
いるのであるが、ここで、スキャン中フラグをみてロー
コンスキャン中に来たかどうかをチェックする。スキャ
ン中でなければ#101へ進み、今の演算結果に従ってレ
ンズを駆動する方へ行き、スキャン中であれば#96、#
97で第6表に示した信号パターンに従って、レンズ駆動
用モータ(MO1)への通電を切って、ブレーキをかけ
る。レンズを止めた状態を覚えておくために、#98で駆
動中フラグ(第5−2表の駆動中F)をクリアしてお
く。#99でレンズが完全に停止するまで70ms時間待ちを
し、#100で#101と同様のフラグをクリアして、#39の
「CDINTA」へもどり、次の焦点検出に入る。#99の時間
待ちは、前述のようにセンサの積分時間が長い時にレン
ズが動いていると、像が流れたり、さらに問題なのはた
とえ駆動中の積分データ位置に移動分の補正を行なって
も、負の加速度がかかっている時だと正しい補正が難し
いので、完全にレンズが止まりきってから次のセンサ積
分を始めれば、焦点検出演算の合焦ずれを防ぐことがで
きるからである。
# 95 comes when it is in the 1-cut shot mode state, but here, by checking the scanning flag, it is checked whether or not it came during low-con scanning. If it is not scanning, proceed to # 101, go to the one that drives the lens according to the current calculation result, and if it is scanning, # 96, #
At 97, the lens drive motor (MO1) is de-energized and the brake is applied according to the signal pattern shown in Table 6. In order to remember the state where the lens is stopped, the driving flag (driving F in Table 5-2) in # 98 is cleared. At # 99, wait 70ms for the lens to stop completely. At # 100, clear the same flags as at # 101, return to "CDINTA" at # 39, and start the next focus detection. As described above, the # 99 wait time causes an image to flow if the lens is moving when the integration time of the sensor is long. Correct correction is difficult when a negative acceleration is applied. Therefore, if the next sensor integration is started after the lens is completely stopped, the focus shift of the focus detection calculation can be prevented.

次に、焦点検出演算結果のデフォーカス量を、レンズ駆
動のためのパルスカウント値に変換するフロー「MPUL
S」がある。#102で、この範囲にレンズが入っていれば
ピントが合うというデフォーカス範囲を合焦ゾーンとし
てレジスタFZWにセットしておく。なおここで自動焦点
調節状態(AFモード)の合焦ゾーン量と、焦点調節表示
状態(FAモード)の合焦ゾーン量とは区別されており、
FAモードではAFモードより広い値をセットする。#103
から#106は、レンズが終端で止まっている時のフロー
で、これはレンズが無限遠端に当たっている時の場合で
ある。#103の終端フラグ(第5−2表の終端F)は、
ここに来るまでの終端チェックサブルーチンの中でたて
られている。レンズが終端に止まっていれば、#104へ
進み、前回方向フラグ(第5−3表の前回方向F)をみ
てどちらの方向へレンズが動こうとしていたかをチェッ
クする。レンズが無限遠端にあって、さらに無限遠側へ
駆動しようとしている時には#105へ進み、終端位置フ
ラグ(第5−2表の終端位置F)をチェックして終端位
置が無限遠端側か最近接端側かを見て、無限遠端側なら
#106へ進んで合焦ゾーンを255μmという大きい値に設
定している。レンズ停止位置が最近接端であれば、#10
7へぬける。これは焦点検出データのばらつきでレンズ
が無限遠端位置にあっても、さらに無限遠端方向に合焦
位置があるという結果になることもありえるし、また狭
い合焦ゾーンをセットしていれば、無限遠端でもさらに
無限遠側へレンズを動かそうとする可能性もある。又、
さらに無限遠端と思っている位置が、実は他の外的応力
によってレンズを途中で止められていることもありえ
る。本実施例では、これは区別がつかない。
Next, the flow for converting the defocus amount of the focus detection calculation result into the pulse count value for driving the lens "MPUL
There is an S ". In # 102, the defocus range in which the lens is in focus within this range is set in the register FZW as the focusing zone. Note that here, the focus zone amount in the automatic focus adjustment state (AF mode) and the focus zone amount in the focus adjustment display state (FA mode) are distinguished,
Set a wider value in FA mode than in AF mode. # 103
Since # 106 is the flow when the lens is stopped at the end, this is the case when the lens is hitting the end at infinity. The end flag of # 103 (end F in Table 5-2) is
It is made in the termination check subroutine before coming here. If the lens has stopped at the end, the process proceeds to step # 104, and the direction flag (previous direction F in Table 5-3) is checked to see in which direction the lens is about to move. If the lens is at the infinity end and you are trying to drive to the infinity side, proceed to # 105 to check the end position flag (end position F in Table 5-2) to see if the end position is at the infinity end side. Looking at the closest end side, if it is at the infinity end side, proceed to # 106 and set the focusing zone to a large value of 255 μm. If the lens stop position is the closest end, # 10
Go to 7 Even if the lens is at the infinity end position due to variations in the focus detection data, this may result in the in-focus position being further toward the infinity end, and if a narrow focus zone is set. , At the infinity end, there is a possibility to move the lens toward the infinity side. or,
Furthermore, the position at which the lens is considered to be at the infinity end may actually stop the lens midway due to other external stress. In the present example, this is indistinguishable.

そこでレンズが無限遠端にあり、さらに無限遠端を超え
て合焦位置が有るという検出結果になっている時には、
まず合焦ゾーンを255μmに広げ、これで合焦ゾーン内
にレンズが入っていれば合焦表示をし、この数値でも合
焦ゾーン内に入っていなければ、焦点検出不能の表示
(LEDの点滅表示)を行う。自動焦点調節中レンズが無
限遠側へ動こうとしている時に、手などで強制的にレン
ズを止められたりした場合、そのレンズ停止位置が合焦
ゾーン内でなければ、LEDの点滅表示をするということ
である。この表示のフローは#120から#123に当る。
Therefore, when the detection result shows that the lens is at the infinity end and the in-focus position is beyond the infinity end,
First, widen the focus zone to 255 μm, and if the lens is inside the focus zone, the focus display will be shown. If this value is not within the focus zone, focus detection is not possible (LED blinks) Display). If the lens is forcibly stopped by hand etc. while the lens is trying to move to the infinity side during automatic focus adjustment, the LED will blink if the lens stop position is not within the focus zone. That is. The flow of this display is from # 120 to # 123.

一方、最近接端にレンズがあって、さらに被写体が近接
側にあると検出している場合や、自動焦点調節中レンズ
が近接側へ動こうとしているのに、強制的に途中でレン
ズが止められたりした場合、その位置が合焦ゾーン内に
入っていなければ、最近接側方向の表示をすることにし
ている。この表示のフローは、第12図の#147から#152
に当たる。レンズが無限遠端に止まっていなければ、合
焦ゾーンは#102でセットした数値のまま#107に移る。
On the other hand, if there is a lens at the closest end and it is detected that the subject is on the close side, or if the lens is trying to move to the close side during automatic focusing, the lens is forcibly stopped halfway. If the position is not within the in-focus zone, the display is made in the closest direction. The flow of this display is from # 147 to # 152 in FIG.
Hit If the lens does not stop at the infinity end, the focus zone moves to # 107 with the value set in # 102.

#107では補助光モードフラグに基づいて補助光AFモー
ドになっているかどうかをチェックし、補助光AFモード
であれば、色収差補正をする。補助光AFモード時の照明
光は、赤外光に近い波長の光を用いるため、フラッシュ
撮影時には光源の差によるベストピント位置のずれが生
ずる。よって、補助光AFコードになっていれば、このピ
ント位置ずれ量を補正しないといけない。この撮影レン
ズに応じた補正データ△IRは、第4表にあるように、制
御マイコン(MC2)からシリアル通信で送られてくるの
である。これを#108で、これまで求まっているデフォ
ーカス量DFに対して補正する。そして#109で、デフォ
ーカス量をレンズ駆動のためのパルスカウント値に変換
する。この変換のための係数も、各レンズによって固有
であるので、△IR同様シリアル通信で送られてくるデー
タKROMを使用する。求まっているデフォーカス量DFも変
換係数KROMを乗算してレンズ駆動のためのパルスカウン
ト値DRCNTを求める。同様にして、合焦ゾーンFZWもデー
タKROMを乗じてパルスカウント値FZCに変換しておく。
これらパルスカウン値への変換については特開昭59−14
0408号公報で詳細に述べられているので、ここでは省略
する。
In # 107, it is checked whether or not the auxiliary light AF mode is set based on the auxiliary light mode flag. If it is the auxiliary light AF mode, chromatic aberration correction is performed. Since the illumination light in the auxiliary light AF mode uses light having a wavelength close to infrared light, the best focus position is displaced due to the difference in light source during flash photography. Therefore, if the auxiliary light AF code is used, this focus position shift amount must be corrected. As shown in Table 4, the correction data ΔIR corresponding to the taking lens is sent from the control microcomputer (MC2) by serial communication. This is corrected in # 108 with respect to the defocus amount DF that has been obtained so far. Then, in # 109, the defocus amount is converted into a pulse count value for driving the lens. Since the coefficient for this conversion is also unique to each lens, the data KROM sent by serial communication is used like ΔIR. The defocus amount DF found is also multiplied by the conversion coefficient KROM to find the pulse count value DRCNT for driving the lens. Similarly, the focusing zone FZW is also multiplied by the data KROM and converted into the pulse count value FZC.
Regarding the conversion into these pulse count values, JP-A-59-14
Since it is described in detail in Japanese Patent No. 0408, it is omitted here.

そして、#110で、駆動中フラグ(第5−2表の駆動中
F)に基づいて、現在、自動焦点調節動作中かどうか判
断して、レンズが駆動している時には、#131の「IDOBU
N」へ分岐する。レンズが停止中だった時、すなわち、
最初にフローを通過する時や、自動焦点調節終了後の合
焦位置確認時、もしくはFAモード時に#111へ進む。こ
こでは、レンズ停止時のデフォーカス量DFをメモリFERM
へ保存しておく。これは後ほど、この値によって自動焦
点調節終了後の合焦位置確認のループに行くか行かない
かを決めるのに用いる。次の#112では、FAモードフラ
グに基づいてFAモードかどうかの判断をし、FAモードで
あれば、#113からの「FAP」へ分岐する。これは非AFモ
ードということはFAモードであるということによる。
Then, in # 110, it is determined based on the driving flag (driving F in Table 5-2) whether or not the automatic focus adjustment operation is currently being performed, and when the lens is driving, “IDOBU
Branch to N ”. When the lens was stopped, that is,
When passing through the flow for the first time, when confirming the in-focus position after completion of automatic focus adjustment, or when in FA mode, proceed to # 111. Here, the defocus amount DF when the lens is stopped is stored in the memory FERM.
Save to. This value will be used later to determine whether to go to the loop for checking the in-focus position after the end of automatic focus adjustment or not according to this value. In the next step # 112, it is determined whether or not the FA mode is set based on the FA mode flag. If the FA mode is set, the flow branches to “FAP” from # 113. This is because the non-AF mode is the FA mode.

#113ではレンズが合焦ゾーン内にあるかどうかの判断
をしている。ここでは、レンズ駆動用パルスカウント値
のDRCNTと合焦ゾーンパルスカウント値FZCとで比較して
いるが、デフォーカス量DFと合焦ゾーン量FZWとを比較
してもよい。この結果、合焦ゾーン内にレンズがあれ
ば、#115で合焦表示をする。これは、端子(P31)のLM
信号を“Low"におとし、LL,LR信号は“High"のままにし
て、中央のLED(LEDM)のみを点灯させることによって
なされる。合焦ゾーン外であれば、#114へ進み、ここ
でレンズを駆動すべき方向を示す。例えば、レンズを繰
り出す方向であれば、端子(P32)のLL信号を“Low"に
して左側のLED(LEDL)を点灯させ、レンズを繰り込む
方向であれば端子(P30)のLR信号を“Low"にして右側
のLED(LEDR)を点灯させる。そして次の焦点検出の為
に第9図の#40の「CDINTA」へループする。
In # 113, it is judged whether or not the lens is in the focusing zone. Here, the lens drive pulse count value DRCNT and the focus zone pulse count value FZC are compared, but the defocus amount DF and the focus zone amount FZW may be compared. As a result, if there is a lens in the focus zone, focus display is performed in # 115. This is the terminal (P31) LM
This is done by setting the signal to "Low", leaving the LL and LR signals at "High", and turning on only the central LED (LEDM). If it is outside the focusing zone, the process proceeds to step # 114 where the direction in which the lens should be driven is shown. For example, in the lens extension direction, set the LL signal of the terminal (P32) to "Low" to turn on the left LED (LEDL), and in the lens extension direction, set the LR signal of the terminal (P30) to " Set to "Low" and light the right LED (LEDR). Then, for the next focus detection, it loops to "CDINTA" of # 40 in FIG.

#112でAFモードであった場合には、#116でAFモード時
の合焦チェックをする。レンズ駆動パルスカウント値DR
CNTが合焦ゾーンパルスカウント値FZCより小さければ合
焦ということで、#117からの「INFZ」へ分岐する。#1
17では、FAモード時の#115と同様に合焦表示をし、#1
18で端子(P12)からのAFE信号を“High"にする。制御
マイコン(MC2)は、この信号を見ており、“High"にな
れば自動焦点調節が完了したと見る。そして、AF優先モ
ードであれば、AFE信号が“High"になってはじめてレリ
ーズ動作を可能とすることになる。#119では、ここ
で、AFストップのINT1の割り込みかINT2のレリーズ割り
込みを待つことになる。これは、第2図のスイッチ(S
1)の一回の閉成時に一回だけ自動焦点調節をするとい
うワンショットモードとした時の方法であり、一度被写
体にピントが合えば、このあとピント位置がかわっても
合焦表示をしたままだし、又、レンズも再度駆動される
ことはない。又、他のやり方として、#119で割り込み
待ちにしないで、これを#39の「CDINTA」又は#40の
「CDINT」へ戻れば、繰り返し焦点検出し、常に被写体
に追従して自動焦点調節をするというコンティニュアス
モードにすることもできる。
If it is in AF mode in # 112, focus check in AF mode is performed in # 116. Lens drive pulse count value DR
If the CNT is smaller than the focus zone pulse count value FZC, it means that the focus is achieved, and the process branches to “INFZ” from # 117. # 1
In 17, the focus display is displayed as in # 115 in FA mode, and
At 18, set the AFE signal from pin (P12) to "High". The control microcomputer (MC2) is watching this signal, and if it becomes "High", it is considered that the automatic focus adjustment has been completed. Then, in the AF priority mode, the release operation becomes possible only after the AFE signal becomes "High". In # 119, you will be waiting for the AF stop INT1 interrupt or INT2 release interrupt here. This is the switch (S
1) This is a method when the one-shot mode is used, in which automatic focus adjustment is performed only once when the subject is closed once. Once the subject is in focus, the focus is displayed even after changing the focus position. The lens will not be driven again. Also, as another method, instead of waiting for interrupt at # 119, if you return this to “CDINTA” of # 39 or “CDINT” of # 40, focus detection will be repeated and automatic focus adjustment will always follow the subject. You can also set it to continuous mode.

#116で合焦ゾーン外にあると判断された時には、#120
へ進む。前述したようにここで、終端フラグ(第5−2
表の終端F)をチェックして終端であり(#120)、前
回方向フラグをチェックして焦点検出結果の合焦位置が
無限遠端側にあり(#121)、レンズ停止位置が無限遠
端であるならば(#122)、#123へ進み、レンズを駆動
させないで、両側の2つのLEDL(LEDL)(LEDR)を共に
点滅させて焦点検出の不能表示をし、#119で割り込み
待ちとなり、もう次の焦点検出へは行かない。これらの
条件以外の場合には、#124へ進む。
When it is determined that it is out of the focusing zone in # 116, # 120
Go to. As described above, here, the termination flag (the 5-2nd
It is the end by checking the end F) of the table (# 120), the previous position flag is checked and the focus position of the focus detection result is at the infinity end side (# 121), and the lens stop position is at the infinity end. If it is (# 122), proceed to # 123, do not drive the lens, blink both LEDL (LEDL) (LEDR) on both sides to indicate that focus detection is impossible, and wait for interrupt at # 119. , I will not go to the next focus detection. In cases other than these conditions, the process proceeds to # 124.

#124から#130にかけては、デフォーカス方向の反転チ
ェックを行う。すなわち、前回の焦点検出演算結果のデ
フォーカス方向と、今回のループで演算した結果の方向
とを比べて、デフォーカス方向が反転したということが
わかれば、レンズ駆動系のバックラッシュの補正をしよ
うというものである。レンズを駆動させるにあたって、
特にカメラボディとレンズとの駆動力伝達軸のカプラー
部には、相当量のガタを設けてある。そのため、被写体
までの距離が変わったりしてレンズ駆動方向が反転すれ
ば、モータ(MO1)のからまわり量のためにレンズは演
算結果で求めた合焦位置まで動かなくなる。そこで、方
向が反転すれば、バックラッシュ量を補正しなければな
らなくなる。このバックラッシュ量は、撮影レンズに固
有であり、第4表で示したように制御マイコン(MC2)
からのシリアル通信によって得ている。ところがここに
出てくる前回のデフォーカス方向が、スイッチ(S1)を
閉成した後の第一回目のループである時はというと、こ
れについても、前回のシーケンスの最後のレンズ駆動方
向として覚えている。すなわち、スイッチ(S1)が閉成
される前のマイコン(MC1)(MC2)のストップモード中
も覚えているというようにしている。又、このバックラ
ッシュ補正は、演算結果が反転すればすぐ補正をするか
というとそうではなくて、この補正は、レンズが止まっ
ている時だけに限っている。レンズ駆動中に方向が反転
したという結果になった時には、ただレンズを止めるだ
けで、すぐレンズの反転駆動をさせない。又、前回方向
フラグもセットしなおさない。それで、レンズを止めた
あとの次の焦点検出演算で求めた方向(今回方向とな
る)が、レンズを停止させた時のもう一回前に求まって
いた方向、すなわちレンズを駆動させていた方向(前回
方向)と反転していたら、始めてバックラッシュの補正
をするということになる。これは、合焦位置付近での演
算のばらつき等を考慮してのことで、バックラッシュ量
の誤差と合わさって、レンズがハンチングをおこしたり
しないようにしている。
From # 124 to # 130, the reversal check of the defocus direction is performed. That is, by comparing the defocus direction of the previous focus detection calculation result with the direction of the result calculated by this loop, if it is found that the defocus direction is reversed, correct the backlash of the lens drive system. That is. In driving the lens,
In particular, a considerable amount of play is provided in the coupler portion of the driving force transmitting shaft between the camera body and the lens. Therefore, if the lens driving direction is reversed due to a change in the distance to the subject, the lens will not move to the in-focus position determined by the calculation result due to the amount of rotation from the motor (MO1). Therefore, if the direction is reversed, the amount of backlash must be corrected. This backlash amount is unique to the taking lens, and as shown in Table 4, the control microcomputer (MC2)
It is obtained by serial communication from. However, when the previous defocus direction that appears here is the first loop after closing the switch (S1), remember that this is also the last lens drive direction in the previous sequence. ing. That is, the memory is remembered even in the stop mode of the microcomputers (MC1) (MC2) before the switch (S1) is closed. Further, this backlash correction is not so right after the calculation result is reversed, but this correction is limited only when the lens is stopped. If the result is that the direction is reversed while driving the lens, just stop the lens and do not immediately perform the reverse driving of the lens. Also, the previous direction flag is not reset. Therefore, the direction (current direction) obtained by the next focus detection calculation after stopping the lens is the direction that was obtained once before the lens was stopped, that is, the direction that was driving the lens. If it is reversed from (previous direction), it means that the backlash will be corrected for the first time. This is because the dispersion of the calculation near the in-focus position is taken into consideration so that the lens does not cause hunting due to the error of the backlash amount.

これらについてのフローは、これから説明する#124か
ら#130と、レンズ駆動中のフローである第12図の#134
から#140との組み合わせで達成されている。#124で今
回方向フラグ(第5−3表の今回方向F)をチェックし
て今回のデフォーカス方向を見たあと、#125,#126で
前回のデフォーカス方向をチェックする。そして、前回
と今回とでデフォーカス方向が異なっていれば、#127,
#128へそれぞれ進み、前回方向フラグを書き換える。
同方向であれば、#141の「TINNZ」へスキップする。#
129ではシリアル通信で送られてきたバックラッシュ補
正用データBKLSHをレンズ駆動パルスカウント値DRCNTに
対して補正をし、#130では反転してバックラッシュの
補正をしたという反転フラグ(第5−2表の反転F)を
たてて、#141へ進む。
The flow for these is # 124 to # 130, which will be described below, and # 134 in FIG. 12, which is the flow during lens driving.
Has been achieved in combination with # 140. In # 124, the current direction flag (current direction F in Table 5-3) is checked to see the current defocus direction, and in # 125 and # 126, the previous defocus direction is checked. If the defocus direction is different between the last time and this time, # 127,
Go to # 128 and rewrite the previous direction flag.
If they are in the same direction, skip to "TINNZ" in # 141. #
In 129, the backlash correction data BKLSH sent by serial communication is corrected with respect to the lens drive pulse count value DRCNT, and in # 130, the reverse flag is used to reverse and correct the backlash (Table 5-2). F) is set and the process proceeds to step # 141.

次に、第12図に基づいて#110から分岐したレンズ駆動
中の時の#131からのフロー「IDOBUN」の説明に移る。
この最初の#131で、レンズが終端で当たっているかど
うかのチェックをし、#132で移動分補正のための3回
目のイベントカウンタ値EVTCNTを読み込んで、レジスタ
T3にメモリする。これで、移動分の補正のための全デー
タを取り入れたことになる。すなわち、センサ積分開始
時のT1と、積分終了時のT2、そして焦点検出演算終了時
のT3で、この3つの値を使って、レンズ駆動中に積分し
て得られた画素データによる焦点検出演算結果と、実際
に演算が終了してレンズ駆動量をセットするまでにレン
ズが動いた量を補正することになる。積分中におけるレ
ンズの移動量Txをパルスカウント値で求めると、Tx=T1
−T2となる。ここで、イベントカウンタは減算カウント
としているので、T1>T2であり、Txは正である。焦点検
出演算に要する時間におけるレンズの移動量Tyは、Ty=
T2−T3として求められる。ここでレンズが定速で動いて
いることを前提として、センサ積分時間の中間の位置
を、被写体データを得た地点として代表させると、演算
結果が求まった時点との間、Tz=Tx/2+Tyの量だけレン
ズが移動したことになる。そこで今回の演算結果で求ま
っているカウント値DRCNTから、Tzをひいておけば、移
動分の補正がされたことになる。そこで、#133では、D
RCNT−TzをDRCNTとして新たに置き換え、次のレンズ駆
動パルスカウント値としてセットする値になる。
Next, with reference to FIG. 12, the flow "IDOBUN" from # 131 when the lens branched from # 110 is being driven will be described.
At # 131, check if the lens is hit at the end, and at # 132, read the event counter value EVTCNT for the third time to correct the movement amount and register it.
Store in T3. Now you have all the data for the correction of the movement. That is, T1 at the start of sensor integration, T2 at the end of integration, and T3 at the end of focus detection calculation, using these three values, focus detection calculation based on pixel data obtained by integration during lens driving. As a result, the amount by which the lens moves until the lens drive amount is set after the actual calculation is completed is corrected. When the moving amount Tx of the lens during integration is calculated by the pulse count value, Tx = T1
−T2. Since the event counter is a subtraction count here, T1> T2 and Tx is positive. The amount of lens movement Ty in the time required for focus detection calculation is Ty =
Calculated as T2-T3. Assuming that the lens is moving at a constant speed, the intermediate position of the sensor integration time is represented as the point where the subject data was obtained. Tz = Tx / 2 + Ty The lens has moved by the amount of. Therefore, if Tz is subtracted from the count value DRCNT obtained by the calculation result of this time, the movement amount is corrected. So, in # 133, D
RCNT-Tz is newly replaced as DRCNT, and the value is set as the next lens drive pulse count value.

#134から#140は、前述のようにレンズ駆動中にデフォ
ーカス方向が反転した場合のフローで、#134で今回方
向フラグをチェックして今回のデフォーカス方向を見
て、#135と#136で前回方向フラグをチェックして前回
のデフォーカス方向をチェックして、方向が反転してい
れば#137へ進む。反転していなければ#141へ進む。#
137,#138ではレンズ駆動用モータ(MO1)への通電を切
ってブレーキをかけて止め、#139でレンズ駆動中を示
す駆動中フラグをクリアし、#140でレンズが止まりき
るまで70ms待ったうえで、#39の「CDINTA」へ進む。
Steps # 134 to # 140 are the flow when the defocus direction is reversed during lens driving as described above. In # 134, the current direction flag is checked to see the current defocus direction. Check the previous direction flag to check the previous defocus direction, and if the direction is reversed, proceed to # 137. If not reversed, proceed to # 141. #
In 137 and # 138, the lens drive motor (MO1) is de-energized and the brake is applied to stop it. In # 139, the driving flag indicating that the lens is being driven is cleared, and in # 140, wait 70 ms until the lens stops. Then proceed to # 39 "CDINTA".

#141から始まる「TINNZ」は、レンズ駆動中及び停止中
の両方から合流してくるフローで、レンズ駆動パルスカ
ウント値DRCNTをセットして、レンズを動かす部分であ
る。レンズの駆動スピードは、本実施例では二段式にな
っており、レンズが合焦位置から遠く離れている時のハ
イスピードと、レンズ合焦位置近傍にあるロースピード
とを切り換えることにしている。そして、ロースピード
でレンズをコントロールする部分を、ニアゾーンと呼ぶ
とする。#141では、レンズ駆動パルスカウント値DRCNT
が、このニアゾーンの領域のパルスカウント値NZC以内
であるかどうかをチェックして、レンズがニアゾーンの
領域内に入っていれば、#143へ進み、ニアゾーンフラ
グ(第5−2表のニアゾーンF)をセットする、#144
で端子(PO3)からのMC信号を“Low"とし、第6表のよ
うにレンズ駆動用モータ(MO1)をロースピードで駆動
させるようにする。一方、ニアゾーン外である時には、
#142に進んでMC信号を“High"とし、レンズ駆動用モー
タ(MO1)をハイスピードで駆動させるようにする。
“TINNZ” starting from # 141 is a flow that merges from both during lens driving and during lens stopping, and is a part where the lens driving pulse count value DRCNT is set and the lens is moved. The driving speed of the lens is a two-stage type in this embodiment, and it is set to switch between high speed when the lens is far away from the focus position and low speed near the focus position of the lens. . The part that controls the lens at low speed is called the near zone. In # 141, the lens drive pulse count value DRCNT
However, if the lens is within the near zone area, the process proceeds to step # 143, where the near zone flag (near zone F in Table 5-2) is checked. ), # 144
Then, the MC signal from the terminal (PO3) is set to "Low" to drive the lens drive motor (MO1) at low speed as shown in Table 6. On the other hand, when outside the near zone,
Proceed to # 142 to set the MC signal to "High" to drive the lens drive motor (MO1) at high speed.

#145から#152までは前述にも説明の一部があったがレ
ンズが終端位置に止まっている時の処理についてのフロ
ーである。ところでレンズが終端で止まっているという
ことを検知するのは、後述の第14図の「CLOCK」からの
サブルーチンで述べるように、レンズ終端位置にスイッ
チがあるわけではなくて、割り込みポートINT3から入力
されるモータ駆動量モニタ用エンコーダ(ENC)からの
パルスが一定期間入力されなくなったらレンズが停止し
ているという判断による。モータ(MO1)を駆動してい
るのにレンズが止まっているということはレンズ終端で
当たっているということであると判断して、「CLOCK」
のサブルーチンの中でモータ駆動を止めて、終端フラグ
をたてるのである。この方法だとレンズが実際に終端に
来ていなくとも途中で強制的に止められたり、又は、何
かがレンズにはさまったりとかなんらかの要因で、一瞬
(数100msのオーダー)レンズが止まったりしても終端
と判断してしまう こういったことを防ぐために、一度終端でレンズが止ま
ったと見ても、もう一度レンズを動かしてみて、再度
「CLOCK」サブルーチンで終端と判断されてはじめて、
実際に終端で止まっているとしている。これを見るフラ
グが終端2ndフラグ(第5−2表の終端2F)で、#145
で、「CLOCK」サブルーチンの中でたてられた終端フラ
グを見て、“1"であった時に、#146でこの終端2ndフラ
グを見る。そして、初期状態ではこのフラグは“0"であ
るので#150へ進み、終端2ndフラグをたてておいて、#
153からのレンズ駆動フローで、レンズを動かす。そし
て、次のループで#146へ来た時に、はじめて、終端で
止まっているという判断をして#147へ進む。
Although a part of the description has been given in the above, from # 145 to # 152 is a flow of processing when the lens is stopped at the end position. By the way, detecting that the lens is stopped at the end does not mean that there is a switch at the lens end position, as described in the subroutine from "CLOCK" in Fig. 14 below, and it is input from the interrupt port INT3. It is judged that the lens is stopped when the pulse from the motor drive amount monitor encoder (ENC) is not input for a certain period. If the lens is stopped even though the motor (MO1) is being driven, it is judged that it is hit at the end of the lens, and "CLOCK"
In the sub-routine, the motor drive is stopped and the end flag is set. With this method, even if the lens is not at the end, it will be forcibly stopped in the middle, or something will be caught in the lens, or the lens will stop for a moment (on the order of several 100 ms). Even if you see that the lens has stopped at the end to prevent such a thing, try moving the lens again, and it will be judged as the end by the "CLOCK" subroutine again,
It is said that it actually stops at the end. The flag to see this is the end 2nd flag (end 2F of Table 5-2), and # 145
Then, look at the end flag created in the "CLOCK" subroutine, and when it is "1", look at this end 2nd flag in # 146. In the initial state, this flag is "0", so proceed to # 150, set the 2nd end flag,
The lens drive flow from 153 moves the lens. Then, when it comes to # 146 in the next loop, it is judged that the vehicle has stopped at the end for the first time, and the process proceeds to # 147.

#147では、今回のデフォーカス方向をチェックし、そ
して、#148と#149で終端位置フラグをみて今レンズが
どちら側の終端に当たっているかをチェックする。すな
わち今回のデフォーカス状態が前ピン(今回方向フラグ
=1)であり、レンズ位置が無限遠端であるとすると、
レンズは、今の無限遠端よりさらに無限遠側へ動かされ
なければならないことになる。この場合、#148から#4
0へ進み、次の「CDINT」からのループで、前述の説明に
あったように、合焦ゾーンを広げてみて、合焦再チェッ
クを行う。
In # 147, the current defocus direction is checked, and in # 148 and # 149, the end position flag is checked to see which side the lens is currently hitting. That is, assuming that the current defocus state is the front focus (current direction flag = 1) and the lens position is at the infinity end,
The lens will have to be moved further to the infinity side than the current infinity end. In this case, # 148 to # 4
Go to 0, and in the next loop from "CDINT", expand the focus zone and check the focus again as described above.

今回のデフォーカス状態が後ピン(今回方向フラグ=
0)であり、#149でレンズ位置が最近接側(終端位置
フラグ=1)であるとすると、レンズはさらに近接側へ
動かされないといけないことになる。この場合は、#14
9から#152へ進み、端子(P32)からのLL信号を“Low"
にして最近接側へレンズを動かすことを指示する方向表
示を点灯する。そして、レンズを停止させたままにし、
#40からの次ループへ進み焦点検出を繰り返す。そして
被写体の位置がかわり、デフォーカス方向が反転すれ
ば、ループ中#147から#148へ進み#151へ抜け、終端
フラグをクリアして#153からのレンズ駆動のループへ
入っていく。なお、この実施例では#147のデフォーカ
ス方向のチェックに今回方向フラグを用いたが前回方向
フラグを用いてもよく、この場合は、最近接端よりも被
写体が近接側にある状態から、レンズの合焦可能領域に
入ってもレンズは追従しないで停止したままとなる。ワ
ンショットAFモードという場合であれば、後者の方法で
よく、コンティニュアスAFモードという場合であれば前
者でない不都合であるといえる。
This time the defocus state is the rear pin (this time direction flag =
0), and if the lens position is the closest side (end position flag = 1) in # 149, the lens must be moved to the closer side. In this case # 14
Proceed from 9 to # 152, and set the LL signal from the terminal (P32) to "Low".
Then, the direction indicator for instructing to move the lens to the closest side is turned on. Then leave the lens stopped,
Go to the next loop from # 40 and repeat focus detection. Then, if the position of the subject changes and the defocus direction is reversed, the process proceeds from # 147 to # 148 in the loop, goes to # 151, clears the end flag, and enters the lens drive loop from # 153. In this embodiment, the current direction flag is used for checking the defocus direction of # 147, but the previous direction flag may be used. In this case, the lens is moved from the state where the subject is closer to the closest end than The lens does not follow and remains stopped even if it enters the focusable area of. In the case of the one-shot AF mode, the latter method is sufficient, and in the case of the continuous AF mode, it can be said that it is not the former.

なお、この後者の場合は、一旦ローコントラスト状態に
なれば第13図の#165の「LOWCON」フローの中で終端フ
ラグがクリアされるので、最近接端からぬけ出て、再び
レンズ駆動状態に入り、自動焦点調節が可能ということ
になる。次にレンズが終端にない場合や、終端にあるが
逆方向に動こうとしている場合には、第12図の#153か
らのレンズ駆動フローに入る。#153では焦点調節状態
表示用LEDをすべて消灯する。これはレンズの駆動中は
デフォーカス方向の表示をしないことを基本原則とする
ことによる。レンズが停止している状態で合焦時には中
央のLED(LEDM)を点灯して合焦表示を示し、最近接端
もしくは無限遠端ではLED(LEDL)(LEDR)のいずれか
を点灯してデフォーカス方向を表示し、ローコントラス
ト時には、LED(LEDL)(LEDR)の点滅表示をするので
ある。#154でレンズ駆動パルスカウント値DRCNTをイベ
ントカウンタEVTCNTと終端チェック用レジスタMECNTへ
セットする。イベントカウンタEVTCNTにセットされた値
DRCNTは、割り込み端子(INT3)へエンコーダ(ENC)か
らのパルスが入ってAFマイコン(MC1)に割り込みがか
かると、この割り込みフロー(第16図のINT3S)の中で
減算される。カウント値DRCNTが“0"になった時点でレ
ンズを停止させるとピントが合っているという仕組みで
ある。
In this latter case, once the low contrast state is reached, the termination flag is cleared in the "LOWCON" flow of # 165 in Fig. 13, so the lens exits from the closest edge and enters the lens drive state again. Entering, it means that automatic focus adjustment is possible. Next, if the lens is not at the end or if it is at the end but is about to move in the opposite direction, the lens drive flow from # 153 in FIG. 12 is entered. In # 153, all focus adjustment status display LEDs are turned off. This is based on the basic principle that the defocus direction is not displayed while the lens is being driven. When the lens is stopped, the center LED (LEDM) is lit to indicate the focus when the lens is in focus, and either LED (LEDL) (LEDR) is lit to display the defocus at the closest end or the infinity end. The focus direction is displayed, and the LED (LEDL) (LEDR) blinks when the contrast is low. In # 154, the lens drive pulse count value DRCNT is set in the event counter EVTCNT and the termination check register MECNT. Value set in event counter EVTCNT
DRCNT is subtracted in this interrupt flow (INT3S in Fig. 16) when a pulse from the encoder (ENC) enters the interrupt terminal (INT3) and interrupts the AF microcomputer (MC1). The mechanism is that if the lens is stopped when the count value DRCNT reaches “0”, the image is in focus.

#155ではレンズ駆動用モータ(MO1)に通電を開始し
て、レンズ駆動を始める。これは、前回方向フラグに従
って、レンズを動かす。すなわちこのフラグがこれまで
のレンズ駆動方向として残されるわけである。なぜな
ら、前回方向フラグは、レンズが停止している時には、
第11図の#124からのフローによって今回方向フラグと
同じ内容になっているからである。そして、前回方向フ
ラグが“0"であれば(後ピン)、端子(P01)からのMF
信号を“Low"にして、第6表のようにレンズを繰り出
し、前回方向フラグが“1"であれば(前ピン)、端子
(P00)からのMR信号を“Low"にしてレンズを繰り込み
方向へ動かす。#156では駆動中フラグをチェックして
これまでレンズを駆動中であったかどうかのチェックを
し、駆動中であれば(後に説明するが、ここで駆動中と
いうのは、ニアゾーン外での自動焦点調節中というこ
と)、#40の[CDINT」へループし、次の焦点検出に入
る。これまでレンズ停止中であったなら、#155で駆動
開始したのであるから#157で駆動中フラグをセットす
る。#158で補助光モードフラグをみて補助光AFモード
かどうかをチェックし、補助光AFモードであれば第14図
の#231からの「L2SAVE」へ分岐する。補助光AFモード
でなければ#159でニアゾーンフラグをみてレンズの駆
動がニアゾーン内であるかどうかをチェックし、ニアゾ
ーン内であれば#160からの[WSTOP」へ進む。#160,#
161では100ms間隔に終端チェックを繰り返しているだけ
で、次の焦点検出ループへは戻らない。そして、レンズ
が合焦位置で完全にストップするまで待ち、止まってか
ら始めて、合焦確認の焦点検出に入る。これは「WSTO
P」ループをまわっている間に第16図の#252の「INT3
S」の割り込みが入り、レンズをコントロールするわけ
である。
In # 155, the lens driving motor (MO1) is energized to start lens driving. This moves the lens according to the previous direction flag. That is, this flag remains as the lens driving direction so far. Because the previous direction flag, when the lens is stopped,
This is because the content from the current direction flag is the same as the flow from # 124 in FIG. If the previous direction flag is "0" (rear pin), the MF from the terminal (P01)
Set the signal to "Low" and extend the lens as shown in Table 6. If the previous direction flag is "1" (front pin), set the MR signal from the terminal (P00) to "Low" and extend the lens. Move in the direction. In # 156, the driving flag is checked to see if the lens has been driven so far. If it is driving (explained later, driving here means automatic focus adjustment outside the near zone. (Middle), loop to # 40 [CDINT] and enter the next focus detection. If the lens has been stopped so far, the driving is started in # 155, so the driving flag is set in # 157. At # 158, the auxiliary light mode flag is checked to see if it is the auxiliary light AF mode. If it is the auxiliary light AF mode, the process branches to "L2SAVE" from # 231 in FIG. If it is not the auxiliary light AF mode, check whether or not the lens is driven in the near zone by checking the near zone flag at # 159, and if it is in the near zone, proceed to [WSTOP] from # 160. # 160, #
The 161 simply repeats the end check at 100 ms intervals and does not return to the next focus detection loop. Then, it waits until the lens completely stops at the in-focus position, waits for the lens to stop, and then starts focus detection for in-focus confirmation. This is "WSTO
While turning the "P" loop, "INT3" of # 252 in Fig. 16
The "S" interrupt comes in and controls the lens.

このリニアゾーン内でレンズを駆動させながら焦点検出
をしないのは、以下の理由による。まず、ニアゾーンで
のレンズ駆動は、一定速度ではなく、加速度を持ってい
る。すなわち、レンズ駆動開始時には正の加速度を持
ち、レンズ停止位置前では負の加速度を持つ。ハイスピ
ード駆動時からニアゾーン内に入って、ロースピードに
切り変わった時には、負の加速度をもつ。ここで、元
来、ニアゾーンカウント量NZCは、ハイスピードからモ
ータ(MO1)の通電を切ってレンズの移動が止まるまで
のカウント値を目安に決めたもので、モータ(MO1)が
定速で動くための領域ではない。ここで定速でないとい
うことはモータ駆動中にセンサの積分を行っても、積分
時間の中間の位置をもって被写体データを得た地点とし
て代表することができないということである。従って、
前述のような移動分の補正をしてもその補正は正確では
なく、レンズ駆動パルスの算出誤差を持つことになる。
そこで、レンズが一定速度で動いていない時はセンサの
積分をしないことが望ましい。そこで本実施例では、加
速時、減速時には焦点検出をしていないのである。
The reason why focus detection is not performed while driving the lens in this linear zone is as follows. First, the lens drive in the near zone has acceleration rather than constant speed. That is, the lens has a positive acceleration at the start of driving the lens and has a negative acceleration before the lens stop position. When entering the near zone from high speed driving and switching to low speed, it has negative acceleration. Here, originally, the near zone count amount NZC is determined based on the count value from high speed to when the motor (MO1) is de-energized and the movement of the lens stops. The motor (MO1) is constant speed. It is not an area for movement. Here, the fact that the speed is not constant means that even if the sensor is integrated while the motor is being driven, it cannot be represented as the point at which the subject data was obtained at the intermediate position of the integration time. Therefore,
Even if the correction for the movement amount as described above is made, the correction is not accurate and has a calculation error of the lens driving pulse.
Therefore, it is desirable not to integrate the sensor when the lens is not moving at a constant speed. Therefore, in this embodiment, focus detection is not performed during acceleration or deceleration.

次に#159でニアゾーン外にあると判断された時には#1
62へ分岐し、ここで100msの時間待ちをする。レンズ停
止状態から加速しているので、定速となるまで100ms時
間待ちをしているのである。そして#163で終端チェッ
クをする。終端チェックの周期については、短かすぎて
も長すぎてもよくない。レンズの動きに応じたエンコー
ダのパルスの間隔よりも短すぎると止まっていると判断
してしまうし、逆に長すぎるとモータ、ギヤ、クラッチ
等の駆動系の耐久性や、終端での反応駆動の応答性など
の問題があるので、数10msから200ms程度の間隔におさ
えている。次に#164では、1−cut shotフラグをみて
1−cut shotモードになっているかどうかをチェック
し、1−cut shotモードであれば、レンズを駆動させな
がらの焦点検出をしないというモードであるので#160
の「WSTOP」へ進んで、レンズが停止するのを待ち、止
まってから合焦確認のための焦点検出を行う。1−cut
shotモードでなければ、第9図の#39の「CDINTA」へル
ープしていく。以上が自動焦点調節のメインルーチンで
ある。
Next, when # 159 is judged to be outside the near zone, # 1
It branches to 62 and waits for 100ms here. Since the lens is accelerating from the stopped state, it waits for 100 ms until the speed becomes constant. Then, the end check is performed at # 163. The end check cycle may be too short or too long. If it is shorter than the encoder pulse interval according to the movement of the lens, it will be judged that it has stopped, and if it is too long, the durability of the drive system such as the motor, gear, clutch, etc., and the reaction drive at the end Since there are problems such as the responsiveness of, the interval is set to several tens to 200 ms. Next, in # 164, it is checked whether the 1-cut shot mode is set by looking at the 1-cut shot flag. In the 1-cut shot mode, focus detection is not performed while driving the lens. So # 160
Go to "W STOP" to wait for the lens to stop, and then stop and perform focus detection for confirming focus. 1-cut
If it is not shot mode, loop to # 39 "CDINTA" in FIG. The above is the main routine of automatic focus adjustment.

次に第13図からの分岐ルーチン、サブルーチンについて
の説明をする。まず、第13図の#165から始まる「LOWCO
N」フローは第11図のメインルーチンの#88から、焦点
検出演算の結果がローコントラストであった時に分岐し
てくるフローである。まず#165で終端チェックをし
て、#166でAFモードフラグをみてAFモードか否かのチ
ェックをする。AFモードでなければ#167へ進み前回ロ
ーコンフラグをセットし、#168でローコントラスト時
の表示として端子(P32)と(P30)のLL信号とLR信号を
同時に“Low"と“High"を繰り返してLED(LEDL)(LED
R)の点滅表示をする。そしてすぐ次の焦点検出へルー
プしていく。AFモードであれば#166から#169へ進み、
駆動中フラグをみてモータが駆動中かどうかをチェック
する。駆動中であれば、ローコンスキャン中である場合
と、自動焦点調節中にローコントラストという結果にな
ってきた場合とがあるので、#170でスキャン中フラグ
をチェックしてこれを区別し、自動焦点調節中であれ
ば、前述したようにレンズを止めるまではローコントラ
ストの結果を無視するので、すぐ#40の「CDINT」へ進
んで次の焦点検出に入る。ローコンスキャン中に#170
へ来たのであれば、#171でローコントラスト状態から
ぬけ出て、自動焦点調節を始める時の繰り込み積分時の
移動分補正のために、演算終了時点でイベントカウンタ
値T3を、最大カウント値65,000にセットしておく。(詳
細は後述する)同様にモータ駆動用イベントカウント値
EVTCNT、終端検知用カウント値MECNTも最大カウント値6
5,000にセットしておく。そして#40の「CDINT」へルー
プする。
Next, the branch routine and the subroutine from FIG. 13 will be described. First of all, "LOWCO
The “N” flow is a flow that branches from # 88 of the main routine of FIG. 11 when the result of the focus detection calculation is low contrast. First, in # 165, the terminal end is checked, and in # 166, the AF mode flag is checked to see whether or not the AF mode is set. If it is not in AF mode, proceed to # 167, set the low contrast flag last time, and repeat the low and high LL and LR signals of the terminals (P32) and (P30) at the same time as the low contrast display in # 168. LED (LEDL) (LED
R) blinks. Then it immediately loops to the next focus detection. In AF mode, proceed from # 166 to # 169,
Check if the motor is driving by checking the driving flag. If it is driving, there may be a case where low contrast scanning is in progress and a case where low contrast has been obtained during automatic focus adjustment. If the focus is being adjusted, the result of low contrast is ignored until the lens is stopped, as described above, so the process immediately proceeds to # 40 "CDINT" to start the next focus detection. # 170 during low contrast scan
If you come to # 171, get out of the low contrast state at # 171 and adjust the event counter value T3 at the end of calculation to the maximum count value 65,000 in order to correct the movement amount during renormalization integration when starting automatic focus adjustment. Set to. (Details will be described later) Similarly, motor drive event count value
EVTCNT, end detection count value MECNT also has maximum count value 6
Set it to 5,000. And it loops to "CDINT" of # 40.

レンズ停止時に、ローコントラストになっている時に
は、#169から#172へ進む。そしてローコンスキャンの
禁止を示すスキャン禁止フラグがたっていれば#173へ
進む。なおスキャン禁止フラグがたつのは、ローコンス
キャンがすでに一度終わっているか、又はコントラスト
が出たことがあるかのいずれかである。
If the contrast is low when the lens is stopped, proceed from # 169 to # 172. Then, if the scan prohibition flag indicating prohibition of the low contrast scan is set, the process proceeds to # 173. It should be noted that the fact that the scan prohibit flag is delayed means that either the low contrast scan has already been completed once or the contrast has been generated.

#173から#175と#181から#183については、いずれも
補助光AFモードに入るか否かの判断をしているステップ
である。この補助光AFモードに入る条件というのは、ま
ずAFモードであるということ、被写体がローコントラス
トであるということ、レンズが停止中ででありさらにロ
ーライトであるということ、第3図の補助光照明装置の
ついた電子閃光装置がカメラに取り付けられて、補助光
発光可能状態を示すAFFL信号が来ており、なおかつその
充電完了信号RDYが来ているということであり、これら
条件がそろって始めて補助光AFモードに入る。まず#17
3でローライトフラグ、#174で補助光OK信号AFFL、#17
5で充電完了信号RDYを見て、いずれも“1"で条件がそろ
えば#225からの「LLLED」へ飛んで補助光AFモードに入
る。この条件がそろっていなければ、#176でローライ
トフラグに基づいてローライト状態をチェックし、ロー
ライトなら#177でセンサの最大積分時間を200msと倍に
する。積分時間100msでAGCが8倍でローコントラスト、
ローライトという時なら一段分積分時間を増やせば、ロ
ーコントラストにならず、焦点検出可となる可能性があ
るためである。しかし、これも積分時間が長い時に、レ
ンズ駆動しながら焦点検出をする誤差がでるという理由
により、最大積分時間を200msモードとするのは、レン
ズ停止中と限っている。
Steps # 173 to # 175 and # 181 to # 183 are steps in which it is determined whether or not the auxiliary light AF mode is entered. The conditions for entering this auxiliary light AF mode are that it is first in AF mode, that the subject has low contrast, that the lens is stopped and that it is low light, and that the auxiliary light shown in FIG. It means that the electronic flash device equipped with the lighting device is attached to the camera, the AFFL signal indicating that the auxiliary light can be emitted is coming, and the charging completion signal RDY is also coming. Enter auxiliary light AF mode. First # 17
3 for low light flag, # 174 for fill light OK signal AFFL, # 17
When you see the charge completion signal RDY at 5, if all the conditions are "1", jump to "LLLED" from # 225 and enter auxiliary light AF mode. If this condition is not met, the low light state is checked based on the low light flag in # 176, and if it is low light, the maximum integration time of the sensor is doubled to 200 ms in # 177. AGC is 8 times with integration time of 100ms, low contrast,
This is because, in the case of low light, if the integration time is increased by one step, the low contrast may not be achieved and focus detection may be possible. However, because the error of focus detection while driving the lens is generated when the integration time is long, the maximum integration time is set to 200 ms mode only when the lens is stopped.

#178で前回ローコンフラグをセットし、#179でローコ
ントラスト状態を示すLED(LEDL)(LEDR)の点滅表示
をし、#180でニアゾーンフラグ、繰り込み積分フラグ
(第5−1表の繰り込み積分F)、反転フラグ、終端フ
ラグ、終端2ndフラグをクリアして、#40の「CDINT」へ
ループしていく。
In # 178, the previous low contrast flag was set, in # 179, the LED (LEDL) (LEDR) indicating the low contrast state was blinking, and in # 180, the near zone flag and renormalization integral flag (renormalization integral F in Table 5-1). ), Clear the inversion flag, end flag, and end 2nd flag, and loop to "CDINT" of # 40.

#172でローコンスキャン禁止状態でなければ、#181か
らの「SEARCH」へ分岐する。#181から#195までのフロ
ーは、ローコンスキャンを開始させるフローである。ま
ず、#181から#183は、#173から#175までのフローと
同様に補助光AFモードへ入る条件の判別をしている。そ
して条件がそろえば#183から#225の「LLLED」へ飛
び、補助光AFモードに入る。ローライドであるが補助光
照明装置がセットされていなくてAFFL信号が“1"になっ
ていなけば、#181から、#182、#184へと進み、ここ
ですでにセンサの最大積分時間が200msモードになって
いるかどうかのチェックをする。
If the low contrast scan is not prohibited in # 172, the flow branches to "SEARCH" from # 181. The flow from # 181 to # 195 is a flow for starting the low contrast scan. First, in steps # 181 to # 183, the conditions for entering the auxiliary light AF mode are determined in the same manner as in the flow from # 173 to # 175. Then, if the conditions are met, it jumps from # 183 to #LLLED of # 225 and enters auxiliary light AF mode. If it is low-ride, but the auxiliary light illuminator is not set and the AFFL signal is not "1", proceed from # 181 to # 182 and # 184, where the maximum integration time of the sensor is already 200ms. Check if it is in mode.

最大200msのモードになっていないのであれば、#230の
「LL200」へ飛び、200msモードフラグをセットして#39
の「CDINTA」へループしていく。#184で、すでに最大2
00msモードになっているにもかかわらず、ローコントラ
ストであるとか、#181でローコントラストであるがロ
ーライトでないという場合は、#185へ進み、200msモー
ドフラグをクリアする。
If it is not in the maximum 200ms mode, jump to "LL200" of # 230, set the 200ms mode flag and # 39.
Loop to "CDINTA". # 184 already up to 2
If it is low contrast even if it is in the 00ms mode, or if it is low contrast in # 181 but not low light, proceed to # 185 and clear the 200ms mode flag.

これは、ローコンスキャン中に、積分時間が長いと、前
述にもあったように被写体の像が流れて、ローコントラ
ストになりやすいということや、たとえコントラストが
あっても、積分時間と焦点検出演算時間の最大値の時間
だと、レンズを止めて、改めて焦点検出した時すでに合
焦範囲を超えて行きすぎてしまっているという駆動比の
大きいレンズもありうるので、こういったことを防ぐた
めに、200msモードフラグをクリアして、最大積分時間
が100msのモードにしている。
This is because if the integration time is long during low-contrast scanning, the image of the subject tends to flow as described above, causing low contrast, and even if there is contrast, the integration time and focus detection If the maximum calculation time is reached, it is possible to have a lens with a large drive ratio, in which the lens has stopped, and when the focus is detected again, it has already gone too far beyond the in-focus range. For this reason, the 200ms mode flag is cleared and the maximum integration time is set to 100ms.

次に、#186から#190にかけてのフローでは、ローコン
スキャンをする時のレンズのスキャン開始方法を決めて
いる。被写体が明るい時には、ローコンスキャンは、焦
点検出演算で求まっている方向からスキャンを始める。
ローコントラストと判断されてデフォーカス量が求まら
なくても、デフォーカス方向なら求まっているという場
合があるため、演算結果の方向に従ってスキャンするの
である。このローコンスキャン中にデフォーカス量が求
まる領域にくれば、前述してきた通り自動焦点調節動作
に入る。ローコンスキャンではレンズが一方の終端にあ
たれば反転駆動させ、逆側の終端にあたればスキャンは
終わる。被写体が暗いか明るいかは、#186で積分時間
が50msを越えるか否かを示す1−cut shotフラグを用い
てチェックしている。これはAGCデータを用いてもよ
く、2倍以上を暗いとしても、4、8倍以上を暗いとし
てもよい。一方、暗い時には、#187に進み、ローコン
スキャンを繰り出し方向から始める。こうすれば、ロー
コンスキャン終了時の最終停止位置は無限遠端でレンズ
を繰り込んだ状態で終わる。これはレンズにキャップを
した時には、繰り込み状態で終わることになり、レンズ
がコンパクトにってカメラケースへの収納に便利にな
る。
Next, in the flow from # 186 to # 190, the method of starting the scan of the lens at the time of low contrast scan is determined. When the subject is bright, the low contrast scan starts scanning from the direction determined by the focus detection calculation.
Even if it is determined that the contrast is low and the defocus amount is not obtained, it may be obtained in the defocus direction, so scanning is performed according to the direction of the calculation result. If the area where the defocus amount is obtained during the low contrast scan comes, the automatic focus adjustment operation starts as described above. In the low contrast scan, if the lens is at one end, it is driven in reverse, and if it is at the opposite end, the scan ends. Whether the object is dark or bright is checked using the 1-cut shot flag which indicates whether or not the integration time exceeds 50 ms in # 186. For this, AGC data may be used, and the darkness may be 2 times or more, or 4 or 8 times or more. On the other hand, when it is dark, the process proceeds to # 187 to start the low contrast scan from the feeding direction. In this way, the final stop position at the end of the low-con scan ends with the lens retracted at the infinity end. This means that when the lens is capped, it will end in the retracted state, and the lens will be compact and convenient for storage in the camera case.

この時コントラストを捜す目的でなくて、レンズを繰り
込んで終わるという機能を重視すれば、#187へ進まず
に#189の「LLIGHT2」へ進むようにしてもよい。すなわ
ち、#189でローコンスキャンで一回終端に当たったと
いうスキャン当りフラグ(スキャン当りF)をたて、#
190でMR信号を“Low"にして繰り込み方向にローコンス
キャンを始める。レンズが無視遠端に当たると、#189
でたてたスキャン当りフラグによって第14図の#199か
らの「ROTEM」の中で、これでスキャンが終了したと判
断され、レンズが停止する。なお、この「LLIGHT2」は
補助光AFモードのフローの中から飛んでくる所である。
At this time, if the function of ending the lens by retracting the lens is emphasized instead of the purpose of searching for the contrast, the process may proceed to # 187 “LLIGHT2” without proceeding to # 187. That is, in # 189, a per-scan flag (F per scan) indicating that the low-conscan has hit the end once is set.
At 190, set MR signal to "Low" and start low contrast scan in the renormalization direction. When the lens hits the far end, ignore # 189
In the "ROTEM" from # 199 in FIG. 14 determined by the per-scan flag, it is determined that the scan is completed, and the lens is stopped. In addition, this "LLIGHT2" is where you fly from within the auxiliary light AF mode flow.

#191では前回ローコンフラグに“1"をたて、#192でス
キャン中フラグをたてていく。#193ではレンズ停止時
のデフォーカス量FERMを最大値65,000にセットしてお
く。#194では#171と同じくT3,EVTCNT,MECNTに最大値6
5,000をセットする。#195でレンズ駆動にあたって表示
を消しておく。そして、スキャンしながら次の焦点検出
ループ#40へもどる。
In # 191, the low control flag is set to "1" last time, and in # 192, the scanning flag is set. In # 193, the maximum defocus amount FERM when the lens is stopped is set to 65,000. Similar to # 171 in # 194, maximum value of 6 for T3, EVTCNT, MECNT
Set 5,000. When driving the lens in # 195, the display is turned off. Then, while scanning, the process returns to the next focus detection loop # 40.

次は、第14図の終端チェックサブルーチン「CKLOCK」の
説明に移る。#196では駆動中フラグをみてレンズが駆
動中かどうかをチェックし、駆動中でなければ終端のチ
ェックをしないで、リターンしていく。レンズ駆動中は
#197へ進み、終端のチェックをする。駆動時にレンズ
駆動パルスカウント値DRCNTと同じ値をセットしたおい
た終端チェック用レジスタMECNTと、レンズ駆動用カウ
ント値DRCNTとしてセットしたイベントカウンタのカウ
ント値EVTCNTと比較する。レンズが動いていれば、EVTC
NTの値はエンコーダ(ENC)からのパルスが入ってくる
たびに1ずつ減算されており、MECNTと異なった値にな
っている。レンズが終端に当たって動いていなければ、
エンコーダ(ENC)からパルスは入ってこないので、EVT
CNTの値は変化せずMECNTと同じ値のままである。ゆえに
#197でMECNT=EVTCNTであればレンズが止まっていると
いう判断をして、終端処理フロー「ROTEM」の#199へ分
岐する。MECNT≠EVTCNTであればレンズが動いていると
判断をして#198へ進む。#198ではMECNTに改たにEVTCN
Tの値をセットしなおして、次の終端チェックに備え
る。そしてリターンしていく。
Next, the explanation will be given on the termination check subroutine "CKLOCK" in FIG. In # 196, it is checked whether the lens is being driven by looking at the driving flag, and if it is not driving, the end is not checked and the process returns. While driving the lens, proceed to # 197 to check the end. The end check register MECNT set with the same value as the lens drive pulse count value DRCNT during driving is compared with the count value EVTCNT of the event counter set as the lens drive count value DRCNT. If the lens is moving, EVTC
The NT value is decremented by 1 each time a pulse from the encoder (ENC) comes in, and is a different value from MECNT. If the lens does not move at the end,
No pulses come from the encoder (ENC), so EVT
The value of CNT does not change and remains the same value as MECNT. Therefore, if MECNT = EVTCNT in # 197, it is determined that the lens is stopped, and the process branches to # 199 in the termination processing flow “ROTEM”. If MECNT ≠ EVTCNT, it is determined that the lens is moving, and the process proceeds to # 198. In # 198, EVTCN changed to MECNT
Reset the value of T to prepare for the next termination check. Then return.

#199からの終端処理フロー「ROTEM」では、まず最初サ
ブルーチンから分岐してきているので、マイコンのスタ
ックポインタをリセットしておく。#200でINT1,INT2以
外の割り込みを禁止する。終端にぶつかっているという
ことで#201、#202でモータ(MO1)への通電を切っ
て、ブレーキをかける。#203ではモータ(MO1)を止め
たので駆動中フラグをクリアする。#204で前回方向フ
ラグをチェックして、前回方向フラグが“0"であれば
(後ピンでありレンズを繰り出していた)、#205で最
近接端位置で止まっているという意味で、終端位置フラ
グに“1"をたてておく。前回方向フラグが“1"であれば
(前ピンであり、レンズを繰り込んでいた)、#206で
無限遠端位置で止まっているという意味で、終端位置フ
ラグをクリアしておく。#207ではローコンスキャン中
に終端に当たったかどうかをチェックして、スキャン中
であったならば#208へ進み、終端でレンズが止まって
いるという終端フラグをセットしておく。#209では、
さらに補助光モードフラグに基づいて補助光AFモード中
であったかどうかをチェックして、補助光AFモード中で
あったならば、終端に当たればたとえ一度目の発光によ
る焦点検出であろうとも、次の焦点検出にループしない
でLEDの点滅表示をして、焦点検出をあきらめる。補助
光AFモードについては、#225からの「LLLED」フローの
中で詳しく述べる。#209で補助光AFモードでなければ
レンズを終端位置に止めたまま次の焦点検出ループ「CD
INTA」へ行く。
In the termination processing flow "ROTEM" from # 199, the subroutine is branched first, so the stack pointer of the microcomputer is reset. Disable interrupts other than INT1 and INT2 with # 200. Since it hits the end, the power is cut off to the motor (MO1) at # 201 and # 202, and the brake is applied. In # 203, the motor (MO1) is stopped, so the driving flag is cleared. Check the previous direction flag in # 204, and if the previous direction flag is "0" (it was the rear pin and the lens was extended), it means that it stopped at the closest end position in # 205, which means the end position. Set "1" in the flag. If the direction flag was "1" the last time (it was the front pin and the lens was retracted), the end position flag is cleared in the meaning of stopping at the infinite end position at # 206. In # 207, it is checked whether or not the end is hit during the low contrast scan, and if it is in scanning, the process proceeds to # 208, and the end flag that the lens is stopped at the end is set. In # 209,
Furthermore, based on the fill light mode flag, it is checked whether or not the fill light AF mode is in progress, and if it is in fill light AF mode, even if it is the focus detection by the first flash even if it hits the end, Instead of looping to the focus detection of, the LED blinks and the focus detection is given up. The auxiliary light AF mode will be described in detail in the "LLLED" flow from # 225. If it is not in the auxiliary light AF mode with # 209, the next focus detection loop "CD
Go to INTA ”.

#207で、ローコンスキャン中にレンズが終端に来てい
る場合には#210へ進み、これまでスキャン中に終端に
当たったことがあるかどうか、すなわち行きか帰りかを
チェックし、行きであれば、スキャン方向を反転させて
動かす必要があるため#217へ進む。#217では、今回、
終端に来たのであるから、スキャン当りフラグをセット
する。次に、#218で前回方向フラグ(レンズ駆動方向
を示す)をチェックし、#219、#221でそれぞれこれま
でと逆の方向にセットしなおす。そして#220、#222で
それぞれ次に動かす方向に従って、レンズ駆動信号MR又
はMFを“Low"にする。この時もちろんブレーキ信号MBは
“High"にしておく。これで反転駆動が開始される。#2
23ではローコンスキャン開始時と同様に、FERM,T3,EVTC
NT,MECNTをそれぞれ最大値65,000にセットしなおしてお
く。#224では駆動中フラグに“1"をセットして、次の
焦点検出ループ「CDINTA」へ行く。
In # 207, if the lens is at the end during the low contrast scan, proceed to # 210 to check if it has hit the end during scanning, that is, whether it is going or returning, If there is, it is necessary to reverse the scanning direction and move it, so proceed to # 217. # 217, this time
Since it has reached the end, the per-scan flag is set. Next, in # 218, the previous direction flag (indicating the lens driving direction) is checked, and in # 219 and # 221, the directions are reset in the opposite directions. Then, in # 220 and # 222, the lens drive signal MR or MF is set to "Low" according to the next moving direction. At this time, of course, the brake signal MB is set to "High". With this, the inversion drive is started. # 2
23, FERM, T3, EVTC
Reset NT and MECNT to the maximum value of 65,000 respectively. In step # 224, the driving flag is set to "1" and the process goes to the next focus detection loop "CDINTA".

一方、すでに一度終端に当たっていて、二度目の終端だ
った場合は、#210から#211へ進む。今度は、ローコン
スキャン終了であるからレンズは動かさない。#211で
スキャンで終端に当たったというスキャン当りフラグを
クリアし、#212ではスキャン中フラグをクリアし、#2
13では一度スキャンすれば後はもうしないために、スキ
ャン禁止フラグをセットしていく。#214ではローコン
スキャンをしたけれども、コントラストが見つからず、
焦点検出不能だったということで、LEDの点滅表示をす
る。#215では補助光AFモード中かどうかをチェック
し、補助光AFモード中であれば、#216へ行って、次の
焦点検出に行かずに割り込み待ちとして、このまま終わ
ってしまう。補助光AFモードでなければスキャン終了
後、終端位置で焦点検出を繰り返すため、#39の「CDIN
TA」へ戻る。以上が終端検知ルーチンである。
On the other hand, if it has already hit the end and it was the second end, proceed from # 210 to # 211. This time, the lens does not move because the low contrast scan is completed. # 211 clears the per-scan flag that hits the end of the scan, # 212 clears the in-scanning flag, # 2
In the case of 13, the scan prohibit flag is set because once scanning is done, the rest is not done. In # 214, I did a low contrast scan, but I could not find the contrast,
Since the focus could not be detected, the LED blinks. In # 215, it is checked whether or not the auxiliary light AF mode is in effect. If it is in the auxiliary light AF mode, go to # 216 and wait for an interrupt without going to the next focus detection and end as it is. If it is not the fill light AF mode, focus detection is repeated at the end position after scanning is completed.
Return to TA. The above is the end detection routine.

次に補助光AFモードのルーチンの説明をする。補助光AF
モードへは第13図の「LOWCON」ルーチンから入ってく
る。前述のごとき条件がそろえば#175、又は#183から
#225の「LLLED」へすすみ、補助光AFモードのフローに
なる。第14図の#225ではまず補助光AFモードを示す補
助光AFモードフラグをたてる。#226で端子(P13)から
の端子(ST4)の信号を“High"にする。フラッシュ回路
(FLS)は、この信号によって補助光用LED(48)の発光
を開始させる。#227では補助光AFモードへ入ったとい
うことを外部に知らせるために、LL信号とLR信号を“Lo
w"にし、両端のLED(LEDL)(LEDR)を点灯させる。点
灯時間は、次の焦点検出演算が終わるまであり、最大45
0ms点灯するのが標準となる。これは、#229の200msの
時間待ちと、焦点検出のための演算時間と、最大積分時
間が200msの場合の合計時間であるが、被写体がかなり
近くて明るいと、450ms以下で焦点検出が完了する。す
なわちこれもレンズ駆動中は表示を消すというためであ
る。この表示は補助光AFモードへ入った時の1回だけで
ある。一方、補助光用LED(48)は2回発光している。
補助光AFモードのシーケンスは、まず補助光用LED(4
8)を1回発光させて、200msの間CCDイメージセンサ(F
LM)に対して予備照明をしておく。これはCCDイメージ
センサ(FLM)の応答性を上げるためである。そして、
最大積分時間が200msのモードで、補助光照明のもとでC
CDの積分をする。そして、このデータにより焦点検出演
算をし、レンズを駆動させる。この間、焦点検出はしな
い。そしてレンズ停止後、2回目に補助光用LED(48)
を発光させ、1回目と同様に最大450msの後、焦点検出
結果が合焦ゾーン内に入っていなければ、再度レンズを
駆動させて焦点調節を行う。これが基本的な動きであ
る。
Next, the auxiliary light AF mode routine will be described. Auxiliary light AF
The mode is entered from the "LOWCON" routine in Figure 13. If the above conditions are met, the process proceeds from # 175 or # 183 to "LLLED" in # 225, and the auxiliary light AF mode flow is entered. In # 225 of FIG. 14, first, an auxiliary light AF mode flag indicating the auxiliary light AF mode is set. In # 226, set the signal from the terminal (P13) to the terminal (ST4) to "High". The flash circuit (FLS) causes the auxiliary light LED (48) to start emitting light in response to this signal. In # 227, the LL and LR signals are set to “Lo” to notify the outside that the auxiliary light AF mode has been entered.
w "and turn on the LEDs (LEDL) (LEDR) at both ends. The lighting time is up to the end of the next focus detection calculation, up to 45
It is standard to turn on for 0 ms. This is the total time when the # 229 waits for 200ms, the calculation time for focus detection, and the maximum integration time is 200ms. To do. That is, this is also because the display is turned off while the lens is being driven. This display is only once when the auxiliary light AF mode is entered. On the other hand, the auxiliary light LED (48) emits light twice.
The auxiliary light AF mode sequence starts with the auxiliary light LED (4
8) emits light once and the CCD image sensor (F
Preliminary lighting for LM). This is to improve the responsiveness of the CCD image sensor (FLM). And
Mode with maximum integration time of 200 ms, C under fill illumination
Integrate CD. Then, the focus detection calculation is performed based on this data, and the lens is driven. During this time, focus detection is not performed. And after stopping the lens, the second LED for auxiliary light (48)
After a maximum of 450 ms as in the first time, if the focus detection result is not within the focus zone, the lens is driven again to perform focus adjustment. This is the basic movement.

ここで、補助光用LED(48)の発光が1回目か2回目か
の区別が必要となっている。これを区別する為に、補助
光1stフラグ(第5−2表の補助光1stF)が設けられて
いる。このフラグは“0"が入っていれば1回目の発光で
あることを示し、“1"で2回目の発光を示している。#
228ではこのフラグに“0"に入れておく。#229ではセン
サの予備照明時間として200ms待ち、#230でセンサの最
大積分時間が200msのモードにセットしておく。補助光A
Fモードの場合、たいていが200ms積分時間となる。そし
て、通常AFモードの時と同様の「CDINTA」へループす
る。
Here, it is necessary to distinguish whether the auxiliary light LED (48) emits light for the first time or for the second time. In order to distinguish this, an auxiliary light 1st flag (auxiliary light 1stF in Table 5-2) is provided. If "0" is entered in this flag, it indicates that the first light emission has occurred, and if "1" indicates that the second light emission has occurred. #
In 228, put "0" in this flag. In # 229, wait 200 ms as the preliminary illumination time of the sensor, and set in 230 the mode in which the maximum integration time of the sensor is 200 ms. Auxiliary light A
In F mode, the integration time is usually 200ms. Then, it loops to "CDINTA" as in normal AF mode.

第9図の#39から補助光発光状態でフローが進み、第10
図の#69で補助光を消す。以下同様に焦点検出し、第13
図の#87に来て、第14図#238の補助光AFモード用フロ
ー「LSAVE」へ分岐する。これが#238から始まるフロー
である。
The flow proceeds from # 39 in FIG.
Turn off the auxiliary light at # 69 in the figure. The focus is detected in the same way, and the 13th
At # 87 in the figure, the flow branches to the auxiliary light AF mode flow “LSAVE” in # 238 in FIG. This is the flow starting from # 238.

まず、補助光AFモードでの焦点検出が1回目かどうかを
判別して、1回目であれば#239へ進む。ここで、焦点
検出演算結果が、ローコントラストであったかどうかを
チェックし、ローコントラストであれば、#189の「LLI
GHT2」へ行き、2回目の焦点検出をあきらめる。このあ
と、第13図の#189,#190から第9図の#40へループし
ていき、レンズを繰り込んで終わる。これはあきらめて
繰り込んでいるのであるから、補助光も発光させないの
で、焦点検出ループを回る必要はないが、こうしておけ
ば繰り込み中、急に明るくなってコントラストが出れ
ば、補助光なしに焦点検出することが可能であるからで
ある。#239でローコントラストでなければ、第11図の
#91の[NLOC1」へ行き焦点調節駆動のフローへ入って
行く。この場合には、第11図の#91から#102を通り、
更に、第12図の#141を通って#155で駆動を始め、#15
8から補助光AFモード時のフロー「L2SAVE」(第14図の
#231)へ分岐してくる。
First, it is determined whether or not the focus detection in the auxiliary light AF mode is the first time, and if it is the first time, the process proceeds to # 239. Here, it is checked whether or not the focus detection calculation result has a low contrast, and if the result is low contrast, “LLI
GHT2 ”and give up the second focus detection. After this, the process loops from # 189 and # 190 in FIG. 13 to # 40 in FIG. Since this is giving up and refilling, the auxiliary light is not emitted, so there is no need to go through the focus detection loop, but if you do this, if suddenly brightening and contrast appears during focusing, focus without the auxiliary light This is because it can be detected. If the contrast is not low in # 239, go to [NLOC1] in # 91 in FIG. 11 and enter the flow for focus adjustment drive. In this case, go through # 91 to # 102 in FIG.
Further, the drive starts at # 155 through # 141 in FIG.
It branches from 8 to the flow "L2SAVE"(# 231 in Fig. 14) in auxiliary light AF mode.

第14図の#231では補助光1stフラグに基づいて補助光の
発光が1回目かどうかのチェックをし、1回目であれば
#232へ進む。ここでレンズを焦点検出演算結果のカウ
ント量だけ駆動させ終わるまで待ち、レンズの移動停止
後、2回目の補助光発光のフロー#233へ進む。#233で
は、補助光OK信号AFFLを見て、“1"(OK)であれば、#
234で2回目の補助光発光信号を出力する(すなわち端
子(ST4)の信号を“High"にする)。AFFL信号が“0"で
あれば補助光照明装置が切られたのであるから、2回目
の発光はしないでおく。なお、この実施例では、この場
合に補助光AFモードから解除していないが、解除しても
よい。
In # 231 of FIG. 14, it is checked whether or not the emission of the auxiliary light is the first time based on the auxiliary light 1st flag, and if it is the first time, the process proceeds to # 232. Here, the lens is driven by the count amount of the focus detection calculation result, and after the movement of the lens is stopped, the process proceeds to the second auxiliary light emission flow # 233. In # 233, see the fill light OK signal AFFL, and if it is “1” (OK), #
At 234, the second auxiliary light emission signal is output (that is, the signal at the terminal (ST4) is set to "High"). If the AFFL signal is "0", the auxiliary light illuminator has been turned off, so the second light emission is not performed. In this embodiment, the auxiliary light AF mode is not released in this case, but it may be released.

#235で補助光1stフラグをセットして、2回目の補助光
AFモードであることを示しておく。そして1回目の時と
同様に、#229で200ms待って#230を通って、#39の「C
DINTA」へ行く。2回目の補助光AFモードの時も同様の
フローを通り、第9図の#39から第10図の#44、#68を
通って、第11図の#87で補助光AFモードである場合に
は、第14図の#238の「LSAVE」へ分岐する。今度は2回
目の補助光AFモードであるので、#240へ進む。#240で
ローコントラストであったかどうかをチェックして、ロ
ーコントラストであれば#211へ進み、今度は1度目の
場合と違ってレンズを繰り込まずに停止させたままで、
両側のLED(LEDL)(LEDR)の点滅表示をして割り込み
待ちとなる。
# 235 sets the auxiliary light 1st flag, and the second auxiliary light
Show that it is in AF mode. And like the first time, wait 200ms at # 229, go through # 230, and go to # 39 “C
Go to "Dinta". In the case of the auxiliary light AF mode in the second auxiliary light AF mode, the same flow is followed, through # 39 in FIG. 9 to # 44 and # 68 in FIG. 10, and in # 87 in FIG. To branch to “LSAVE” in # 238 of FIG. This time is the second auxiliary light AF mode, so proceed to # 240. Check whether it was low contrast at # 240, if it is low contrast, proceed to # 211, this time unlike the case of the first time, without stopping the lens, keep it stopped,
The LEDs (LEDL) (LEDR) on both sides are displayed blinking, and the system waits for an interrupt.

ローコントラストでなければ、#240から第11図の#91
へ進み、レンズ駆動のフローへ入る。そして第12図の#
158まで補助光AFモード用フローの「L2SAVE」へ分岐す
る。#231では2度目の補助光AFモードであるので、#2
36へ進み、1度目と同様レンズが停止するのを待つ。補
助光AFモードでなければ、このあと合焦確認の焦点検出
へ入るが、補助光発光は2回までと制限したので、確認
の焦点検出へな行かない。(本実施例では発光を2回ま
でとしているために、確認をせず次のような処理をして
いるが、発光回数の制限をせず、合焦が確認されるまで
発光させてもよい。)この処理とは、レンズ停止時の焦
点検出演算値FERMをチェックする。すなわち、2回目の
レンズ駆動開始時のデフォーカス量が1mm未満であれ
ば、焦点検出性能を考えて、充分合焦確認なしに合焦ゾ
ーン内までレンズをもっていくことができると判断し
て、第11図の#117の合焦時のフロー「INFZ」へ進ん
で、合焦表示をする。FERMが1mm以上であれば、1度目
と2度目の焦点検出結果が大きく異なっていたというこ
とで、確かな焦点検出ができなかったとして、#211へ
進み、レンズを今の位置に置いたまま両側のLED(LED
L)(LEDR)を点滅させる。以上が補助光AFモードのル
ーチンである。補助光用LED(48)の発光を2回に制限
しているのは、発光回数が多いと電源消費や使いがって
の問題があり、1回だと焦点検出誤差やバックラッシュ
誤差の問題があるので、2回を妥当としているのであ
る。又、2回目の焦点検出が不能であった場合、レンズ
を繰り込んでいないのは、スイッチ(S1)を一旦開いて
から再度閉成して補助光AFモードを再トライしてみる
と、今度は被写体の合焦近傍からスタートする可能性が
多く、合焦ゾーン内にレンズを持っていく可能性も高ま
るのであろうと判断しているためである。
If not low contrast, # 240 to # 91 in Fig. 11
Proceed to and enter the lens drive flow. And in Figure 12 #
Branch to "L2SAVE" in the auxiliary light AF mode flow until 158. In # 231, it is the second auxiliary light AF mode, so # 2
Proceed to 36 and wait for the lens to stop like the first time. If it is not the auxiliary light AF mode, focus detection for focus confirmation is then entered, but since the emission of auxiliary light is limited to two times, focus detection for confirmation cannot be performed. (In this embodiment, since the light is emitted up to twice, the following processing is performed without confirmation. However, the number of times of light emission is not limited, and light may be emitted until the focus is confirmed. This process checks the focus detection calculation value FERM when the lens is stopped. That is, if the defocus amount at the start of the second lens drive is less than 1 mm, it is determined that the lens can be brought into the focus zone without sufficiently confirming the focus, considering the focus detection performance. In Step # 117 of Fig. 11, the flow for focusing is proceeded to "INFZ" to display the focus. If the FERM is 1 mm or more, the result of the focus detection for the first time and the focus detection for the second time are significantly different. Therefore, assuming that reliable focus detection could not be performed, proceed to # 211 and leave the lens at the current position. LEDs on both sides (LED
L) (LEDR) blinks. The above is the auxiliary light AF mode routine. Limiting the light emission of the auxiliary light LED (48) to two times is that power consumption and usage problems occur when the number of times of light emission is large, and focus detection error and backlash error occur when it is once. Therefore, the two times are appropriate. If the second focus detection is not possible, the lens is not retracted. If you open the switch (S1) once and then close it again and try the auxiliary light AF mode again, This is because there is a high possibility that the subject will start near the in-focus of the subject, and the possibility of bringing the lens in the in-focus zone will increase.

次に、第16図のイベントカウンタ割り込みフロー「INT3
S」についての説明に入る。これは割り込み端子(INT
3)に入ってくるレンズ駆動用モータ(MO1)のエンコー
ダ(ENC)からのパルス信号PSを使って、レンズ駆動の
コントロールを行なうものである。合焦位置までのレン
ズの駆動カウント値EVTCNTを焦点検出演算によって求め
たが、このINT3への割り込み信号によってレンズの駆動
量を常にモニターし、レンズの移動スピードや停止位置
をコントロールする。まずレンズ駆動時に駆動カウント
値EVTCNTがイベントカウンタにセットされる。そしてレ
ンズ駆動用モータ(MO1)に通電が開始される。すると
レンズが動き出し、エンコーダ(ENC)からパルスが出
てINT3に割り込みがかかる。そして#252の「INT3S」の
フローが始まる。
Next, the event counter interrupt flow "INT3
Let's start the explanation about "S". This is an interrupt pin (INT
3) The lens drive control is performed using the pulse signal PS from the encoder (ENC) of the lens drive motor (MO1) that enters. The drive count value EVTCNT of the lens up to the in-focus position was obtained by focus detection calculation. The interrupt signal to INT3 constantly monitors the lens drive amount, and controls the lens moving speed and stop position. First, the drive count value EVTCNT is set in the event counter when the lens is driven. Then, the energization of the lens driving motor (MO1) is started. Then, the lens starts to move, a pulse is output from the encoder (ENC) and INT3 is interrupted. And the flow of "INT3S" of # 252 starts.

まず、#252で“1"パルス信号が来たということで、イ
ベントカウンタのカウント値EVTCNTを“1"減ずる。そし
て#253でこのカウント値EVTCNTが指定量(すなわち
“0")をカウントしたかどうかチェックして、EVTCNTが
“0"になれば、合焦位置までレンズが来たということで
#259へ進み、モータ(MO1)の駆動をストップさせる。
First, the count value EVTCNT of the event counter is decremented by "1" because the "1" pulse signal comes at # 252. Then, in # 253, it is checked whether or not this count value EVTCNT has counted the specified amount (that is, "0"). If EVTCNT becomes "0", it means that the lens has come to the in-focus position and the process proceeds to # 259. , Stop the drive of the motor (MO1).

イベントカウンタのカウント値EVTCNTが“0"になってい
なければ#254へ進み、ニアゾーンフラグに基づいてレ
ンズがニアゾーン内に入っているかどうかをチェックす
る。ニアゾーンフラグが“1"でなければ#255へ進み、
今回のパルスによってニアゾーンに入ったかどうかをチ
ェックしにいく。#255でイベントカウンタのカウント
値EVTCNTがニアゾーンカウンタのカウント値NZCより小
さくなっていれば、今回ニアゾーン内に入ったというこ
とで#256へ進む。ニアゾーン外であれば「INT3S」の割
り込みフローからメインフローへリターンしていく。一
方、#256では今回始めてニアゾーン内に入ったという
ことでニアゾーンフラグをたて、#257で端子(P03)か
らのMC信号を“Low"にし、モータ(MO1)の駆動をロー
スピードに切り換える。そして#258で、割り込みフロ
ーのスタックポインタをリセットして第12図の#160の
「WSTOP]へ進み、終端チェックをしながらレンズが停
止するのを待つ。
If the count value EVTCNT of the event counter is not "0", proceed to # 254 to check whether the lens is in the near zone based on the near zone flag. If the near zone flag is not "1", proceed to # 255,
I will check to see if I entered the near zone with this pulse. If the count value EVTCNT of the event counter is smaller than the count value NZC of the near zone counter at # 255, it means that the player has entered the near zone this time, and the process proceeds to # 256. If it is outside the near zone, it returns from the interrupt flow of "INT3S" to the main flow. On the other hand, in # 256, the near zone flag is set for the first time this time, so the near zone flag is set, and in # 257, the MC signal from the terminal (P03) is set to “Low”, and the drive of the motor (MO1) is switched to low speed. . Then, in # 258, the stack pointer of the interrupt flow is reset and the process proceeds to “WSTOP” in # 160 of FIG. 12 to wait for the lens to stop while checking the end.

すなわちこの「WSTOP]のフローをループしながら「INT
3S」の割り込みが入り、#252から#254,#258のフロー
を繰り返し、カウント値EVTCNTが“0"になった時点で、
このループを抜け出て、#259へ進む。ここでニアゾー
ン内にあれば#160の「WSTOP]へ進み、メインフローへ
リターンしないのは、前述したようにレンズが定速で動
いていない時には焦点検出しないとしているためで、ニ
アゾーン領域に入ればレンズは減速していくので定速で
ないためこの領域に入ればレンズを動かしながら焦点検
出はしない。
That is, while looping through this "WSTOP" flow, "INT
3S ”interrupt enters, the flow from # 252 to # 254, # 258 is repeated, and when the count value EVTCNT becomes“ 0 ”,
Exit this loop and proceed to # 259. If it is in the near zone, the process goes to # 160 “WSTOP” and does not return to the main flow, because the focus is not detected when the lens is not moving at a constant speed as described above. Since the lens decelerates, it is not a constant speed, so if it enters this area, focus detection is not performed while moving the lens.

次にレンズがその駆動パルスカウント値EVTCNT分だけ動
ききった時点で、#253でのチェックでカウント値EVTCN
Tが“0"になるので#259へ進む。ここで、レンズ駆動用
モータ(MO1)への通電を切り、#260でブレーキをかけ
て、#261で駆動中フラグをクリアして、#262でイベン
トカウンタの割り込みを禁止して、#263へ進む。ここ
で、補助光AFモード中であるかどうかをチェックして、
補助光AFモード中であれば、このイベントカウンタ割り
込みからリターンしていく。このリターン先は補助光AF
モードのフローで説明したように、第14図の#232か#2
36である。#263で補助光AFモードでない場合には、#2
64でスタックポインタをリセットして#265へ移る。
Next, when the lens has moved by the drive pulse count value EVTCNT, the count value EVTCN is checked by checking in # 253.
Since T becomes "0", proceed to # 259. Here, the lens drive motor (MO1) is de-energized, the brake is applied at # 260, the driving flag is cleared at # 261, the event counter interrupt is disabled at # 262, and the process goes to # 263. move on. Here, check whether it is in auxiliary light AF mode,
If it is in the auxiliary light AF mode, it returns from this event counter interrupt. This return destination is auxiliary light AF
As described in the mode flow, # 232 or # 2 in Fig. 14
36. If # 263 is not in fill AF mode, # 2
Reset the stack pointer at 64 and move to # 265.

ここからのフローは焦点調節駆動後、そのレンズの停止
位置が合焦ゾーン内に入っているかどうかの確認の焦点
検出に行くかどうかを判定しているものである。まず、
制御マイコン(MC2)から送られて来ているDR信号を見
て、単写モードか、連写モードかをチェックする。DR信
号が“0"すなわち単写モードであるならば、#267で10m
s待ち、レンズがロースピードから完全に停止してか
ら、次の焦点検出ループに入る。そして、次の焦点検出
で合焦ゾーン内に入っていることが確認されれば、すな
わち第11図のメインフローの#116でチェックされ合焦
であれば、始めて#117へ進み、合焦表示をする。レン
ズが停止した位置が合焦ゾーン内に入っていなければ、
再び、第11図の#120からレンズ駆動のルーチンに入
り、同じことが繰り返される。これが合焦確認時のフロ
ーである。次に連写モードの場合、DR信号は“1"である
ので、第16図の#265から#266へ進む。ここでレンズ停
止時(駆動中フラグが“0"の時)のデフォーカス量(FE
RM)をチェックする。この数値が500μm以上であれ
ば、#267へ進む。すなわち、連写モードの時に、レン
ズ駆動前のデフォーカス量が500μm以上であれば、合
焦確認をするということになる。#266でFERMが500μm
未満であれば、#268へ進み、反転フラグがたっている
かどうかをチェックし、反転フラグがたっていればバッ
クラッシュの補正をしたことがあるということで、合焦
確認をするために、#267の方へ行く。#268で反転フラ
グがたっていなければ、#117の「INFZ」の合焦表示フ
ローへ行く。これは連写モードの時には、レンズ駆動ス
ピードを上げて移動している被写体に対する追従性をよ
くさせるための方法で、500μm以内の位置からバック
ラッシュの補正をしない自動焦点調節をさせた場合に
は、システムのリニアティもよく、確実に合焦ゾーン内
に入るという確信のもとで合焦確認の焦点検出をせず
に、直接合焦表示へ行く。これ以外の場合は、合焦確認
に行き、合焦精度を上げる。もっとも焦点検出能力が更
に向上し駆動系統の誤差がまったくない完全に近いもの
であれば、すべてここでの合焦確認は不用というふうに
してもよい。以上が自動焦点調節のシーケンスである。
The flow from here is to determine whether or not to go to the focus detection for confirming whether the stop position of the lens is within the focusing zone after the focus adjustment driving. First,
Check the DR signal sent from the control microcomputer (MC2) to see if it is single shooting mode or continuous shooting mode. If the DR signal is "0", that is, the single shooting mode, # 267
s Wait, the lens will come to a complete stop from low speed, then enter the next focus detection loop. Then, if it is confirmed by the next focus detection that it is within the focusing zone, that is, if it is checked in step # 116 of the main flow of FIG. do. If the position where the lens stops is not within the focusing zone,
The routine for driving the lens is entered again from # 120 in FIG. 11, and the same operation is repeated. This is the flow when confirming the focus. Next, in the continuous shooting mode, since the DR signal is "1", the process proceeds from # 265 to # 266 in FIG. Here, when the lens is stopped (when the driving flag is "0"), the defocus amount (FE
Check RM). If this value is 500 μm or more, proceed to # 267. That is, in the continuous shooting mode, if the defocus amount before driving the lens is 500 μm or more, the focus is confirmed. # 266, FERM is 500μm
If less, go to # 268 and check if the reversal flag is on.If the reversal flag is on, it means that the backlash has been corrected. Go towards. If the reversal flag is not set at # 268, the flow goes to the focus display flow of "INFZ" at # 117. This is a method for increasing the lens drive speed to improve the followability to a moving subject in the continuous shooting mode. When automatic focus adjustment without backlash correction is performed from a position within 500 μm, , The linearity of the system is good, and it goes directly to the in-focus display without performing the focus detection of the in-focus confirmation with the belief that it will surely enter the in-focus zone. In other cases, go to the focus confirmation and improve the focus accuracy. However, if the focus detection capability is further improved and there is almost no drive system error, the focus confirmation may not be necessary here. The above is the sequence of automatic focus adjustment.

次に、第9図の#40から#53までのフローと第18図
(A)(B)のタイムチャートとを用いて「繰り込み積
分」と、移動分補正について説明する。これは基本的
に、焦点検出ループに要する時間を短くするための手段
である。第18図(A)は被写体が比較的明るく、CCDイ
メージセンサ(FLM)の積分時間が60ms未満の場合であ
り、第18図(B)は積分時間が60msを超えるような暗い
場合である。そして第18図(B)が「繰り込み積分」と
称する状態になっている。
Next, "convolution integration" and movement amount correction will be described using the flow from # 40 to # 53 in FIG. 9 and the time charts in FIGS. 18 (A) and (B). This is basically a means for shortening the time required for the focus detection loop. FIG. 18 (A) shows the case where the subject is relatively bright and the integration time of the CCD image sensor (FLM) is less than 60 ms, and FIG. 18 (B) shows the case where the integration time is darker than 60 ms. Then, FIG. 18 (B) is in a state called "convolution integration".

まず被写体が明るい場合、第18図(A)のでセンサの
積分が開始されるときのイベントカウンタの値EVTCNTを
読み取り、これをT1として保存する。積分終了時ので
T2を保存する。そして、AGCデータを入力してすぐで
次の積分を開始してしまう。この積分開始時はと時間
的にほぼ同一時刻であるとして、T1′=T2として考え、
改めてT1′を取り込むことはしない。で積分を開始し
たと同時に、CCDイメージセンサから画素データを取り
入れる。そしてで焦点検出演算を開始する。ところが
(A)の明るい被写体の場合、から始まった第2回目
の積分は焦点検出演算が終了するまでにで終わってし
まっている。CCDイメージセンサからの画素データは積
分終了後直ちに出力され、演算終了時までデータをセン
サ内で持っておくことはできない。又AFマイコン(MC
1)が新データの取り込みに行けば、現在演算中のデー
タは破壊されてしまう。結局この第2回目の積分データ
は捨てられることになる。しかしで演算が終了した時
点ですぐ次の積分を開始すれば、明るければこの積分時
間自体さほど問題ではなく、焦点検出ループの時間とし
ては長くならない。なおこの場合にはでのカウント値
T2′は無視されることになる。そして、この時の移動分
補正の計算は前述した計算式が成りたつ。すなわちTx=
T1−T2、Ty=T2−T3とした時の補正量Tz=Tx/2+Tyが演
算結果で求められたレンズ駆動カウント値DRCNTから減
算しておけばよい。なおここでT3とは演算終了時のイベ
ントカウント値である。で補正された値DRCNTを新た
なイベントカウンタのカウント値EVTCNTとしてセットす
る。次の積分開始時にはこのカウント値をT1″として保
存し、以下同様に繰り返す。
First, when the subject is bright, the value EVTCNT of the event counter when the integration of the sensor is started is read as shown in FIG. 18 (A), and this is saved as T1. At the end of integration
Save T2. Then, immediately after inputting the AGC data, the next integration is started. Assuming that the time when this integration starts is almost the same time as, consider T1 ′ = T2,
T1 'will not be imported again. At the same time when the integration is started, the pixel data is taken in from the CCD image sensor. Then, the focus detection calculation is started. However, in the case of the bright subject (A), the second integration started from has ended by the time the focus detection calculation ends. Pixel data from the CCD image sensor is output immediately after the completion of integration, and the data cannot be held in the sensor until the end of calculation. AF microcomputer (MC
If 1) takes in new data, the data currently being calculated will be destroyed. Eventually, this second integrated data will be discarded. However, if the next integration is started immediately after the calculation ends, the integration time itself does not matter so long as it is bright, and the focus detection loop time does not become long. In this case, the count value in
T2 'will be ignored. The calculation of the movement correction at this time is based on the above-described calculation formula. That is, Tx =
The correction amount Tz = Tx / 2 + Ty when T1-T2 and Ty = T2-T3 may be subtracted from the lens drive count value DRCNT obtained from the calculation result. Here, T3 is the event count value at the end of the calculation. The value DRCNT corrected by is set as the count value EVTCNT of the new event counter. At the start of the next integration, this count value is saved as T1 ″, and so on.

次に被写体が暗い場合はで積分開始時のイベントカウ
ント値T1を保存する。で積分が終了してT2を保存す
る。AGCデータを取り込んでからですぐ次の積分を開
始する。CCDデータ入力後から焦点検出演算を開始す
る。そしてで演算が終了し、T3を得て(A)と同様の
移動分補正する。この積分終了時点のでは第2回目の
積分が終了していない。ここで「繰り込み積分」方式を
用いていないとすると、において新たな積分を開始す
ることになりここから−間と同等の時間を待たなけ
ればならない。しかし、本実施例では「繰り込み積分」
によってですぐに積分を開始しているので、積分終了
まで−21間待つだけですむ。すなわちトータル時間と
して−の時間が短縮されることになる。すなわち、
「繰り込み積分」方式は積分時間が−時間を超える
ような場合に効果が出てくる。本実施例では−が60
ms、又−の最大積分時間を100msとしている。
Next, when the subject is dark, the event count value T1 at the start of integration is stored. Ends integration and saves T2. The next integration starts immediately after the AGC data is acquired. Focus detection calculation starts after CCD data is input. Then, the calculation is completed, T3 is obtained, and the movement amount is corrected in the same manner as in (A). At the time when this integration is completed, the second integration is not completed. If the "convolutional integration" method is not used here, a new integration is started at, and a time equivalent to the interval between-is required. However, in this embodiment, "convolution integral" is used.
Since the integration is started immediately by, you only have to wait -21 seconds until the integration is completed. That is, the total time-is shortened. That is,
The “convolution integration” method is effective when the integration time exceeds −time. In this example, − is 60
The maximum integration time of ms or-is 100 ms.

ところで(B)の場合の移動分補正については(A)と
同様の方法はとれない。演算終了時24での移動分補正
は、積分開始時のカウント値T1′(これは前回の積分
終了時点のカウント値と同じと見なしてT2→T1′とおき
かえられる)と、積分終了時T2′、演算終了時のT3′を
用いて補正値を求めたいが、前回の演算終了時で、レ
ンズ駆動用イベントカウント値EVTCNTが書き換えられて
いる、すなわち補正計算でのTx=T1′−T2′において、
T1′とT2′では別次元の数値であり、この計算は意味が
ない。T2′、T3′はで演算結果が求められEVTCNTがセ
ットされた時点から新しいスケールになっているのであ
る。そこで、T1′も新しいスケールに変換する必要があ
る。すなわち、で求まった駆動カウント値DRCNTと、
前回のスケールでに来ている値T3との差が新スケール
への変換補正量となる。システムが理想的であれば、DR
CNT=T3となるはずであるが、被写体に対しレンズが移
動しながらセンサ積分をしているということや、デフォ
ーカス量対レンズ駆動カウント値の間での変換では係数
が小さめに量子化されているということや、焦点検出演
算で求まるデフォーカス量自体もレンズの行きすぎ防止
の意味で幾分小さめに結果が求まるようにして行きすぎ
てもどったりした時に行うバックラッシュ補正によって
の誤差を含まないよう考慮してあることにより必ずDRCN
T>T3となっている。そこでDRCNT−T3が新スケールと旧
スケールとの補正量となり、T2をT1′に置きかえる時に
これを補正すれば新スケールのT1′が求まり24での移動
分補正ができる。フローチャートに揚げた実施例では、 (DRCNT−T3)+T2→T1′ と置きかえてTx=T1′−T2′として補正量Tzを求めてい
る。しかし、又これを別の実施例として Tx=(T2−T3)+(DRCNT−T2′) としても、同様に補正量Tzを求めることができる。ただ
し、この場合は(DRCNT−T3)の補正が必要ないかわり
に、移動分補正時に繰り込み積分の場合の別ルーチンを
作り、 Tx=T1′−T2′ のかわりに上記式を用意しておかないとならない。又T
2′によってT2が消されてしまわないような別のメモリ
を用意しておく必要もある。
By the way, in the case of (B), the same method as in (A) cannot be applied to the movement correction. The movement correction at the end of calculation 24 is performed by counting the count value T1 'at the start of integration (this is regarded as the count value at the end of the previous integration and can be replaced with T2 → T1') and at the end of integration T2 '. , I want to obtain the correction value using T3 'at the end of calculation, but the lens drive event count value EVTCNT has been rewritten at the end of the previous calculation, that is, when Tx = T1'-T2' in the correction calculation. ,
Since T1 'and T2' are numerical values in different dimensions, this calculation is meaningless. T2 'and T3' are at a new scale from the time when the operation result is obtained and EVTCNT is set. Therefore, T1 'also needs to be converted to the new scale. That is, the drive count value DRCNT obtained in
The difference from the value T3 that came to in the previous scale is the conversion correction amount to the new scale. If the system is ideal, DR
CNT should be T3, but the fact that the lens is moving with respect to the subject is performing sensor integration, and the coefficient between the defocus amount and the lens drive count value is quantized to a smaller value. That is, the defocus amount obtained by the focus detection calculation itself does not include the error due to backlash correction performed when returning too much so that the result is obtained a little smaller to prevent overshooting of the lens. Be sure to consider the DRCN
T> T3. Therefore, DRCNT-T3 becomes the amount of correction between the new scale and the old scale, and when T2 is replaced with T1 ', if this is corrected, T1' of the new scale can be obtained and the movement correction at 24 can be performed. In the embodiment shown in the flow chart, the correction amount Tz is obtained by replacing (DRCNT-T3) + T2 → T1 'with Tx = T1'-T2'. However, if this is another embodiment and Tx = (T2-T3) + (DRCNT-T2 '), the correction amount Tz can be similarly obtained. However, in this case, the correction of (DRCNT-T3) is not required, but another routine for renormalization integration is created at the time of moving amount correction, and the above formula is not prepared instead of Tx = T1'-T2 '. It does not become. Again T
It is also necessary to prepare another memory so that T'is not erased by 2 '.

次にフローチャート上で「繰り込み積分」を見ると、第
10図の#66から始まる。#65で駆動中フラグをチェック
してレンズが駆動中という判断をした時には、「繰り込
み積分」状態になろうがなるまいが#66で次の積分を開
始し、#67で繰り込み積分フラグ(第5−1表の繰り込
み積分F)をたてていく。そして、「繰り込み積分」が
必要な時の焦点検出ループのトップを第9図の#40の
「CDINT」としている。
Next, looking at "convolution integral" on the flowchart,
It starts from # 66 in Figure 10. When it is determined that the lens is being driven by checking the driving flag in # 65, it may or may not be in the “convolution integration” state, but the next integration is started in # 66, and the convolution integration flag ( The renormalization integral F) in Table 5-1 is established. The top of the focus detection loop when "convolution integration" is required is "CDINT" of # 40 in FIG.

今、第18図(B)の状態であるとする時のフローを追
う。#40で積分モードにして積分終了信号NB4を検知で
きるようにしておく。そして#42で繰り込み積分フラグ
がたっているかどうかをチェックして、たっていなけれ
ば繰り込み積分モードになっていないので#44へ進む。
繰り込み積分フラグがたっていれば#43へ進み、積分終
了信号NB4をチェックして、すでに積分が終わっている
かどうかをチェックする。第18図(B)ののように積
分が終わっていなければ#49の「TINTC」へ進む、すな
わち「TINTC」からが繰り込み状態時のフローで、#44
からの「CDINTS」が非繰り込み用である。第10図の#49
では1−cut shotフラグを“1"にする。#50でAFE信号
を“Low"にし、そして前述したように#51で移動分補正
に備えてT1′の補正をする。#53で積分の残り時間の最
大値40msをセットして、#55へ進む。以下はメインルー
チンを流れていく、「繰り込み積分」はこのようにして
焦点検出時間を短縮する効果を出す。以上でAFマイコン
(MC1)のフローの説明を終わる。
Now, follow the flow when it is assumed that the state is that shown in FIG. 18 (B). The integration mode is set in # 40 so that the integration end signal NB4 can be detected. Then, in # 42, it is checked whether or not the renormalization integration flag is set. If not, the renormalization integration mode is not set, so the flow proceeds to # 44.
If the renormalization integration flag is set, the process proceeds to step # 43, where the integration end signal NB4 is checked to see if the integration has already been completed. If the integration is not completed as shown in FIG. 18 (B), the process proceeds to “TINTC” in # 49, that is, the flow from “TINTC” in the renormalization state, # 44
"CDINTS" from is for non-renormalization. # 49 in Figure 10
Then set the 1-cut shot flag to "1". The AFE signal is set to "Low" at # 50, and T1 'is corrected in preparation for movement correction at # 51 as described above. Set the maximum remaining integration time of 40 ms in # 53 and proceed to # 55. The following is the flow of the main routine. The "convolution integration" has the effect of shortening the focus detection time in this way. This concludes the description of the flow of the AF microcomputer (MC1).

発明の効果 本発明によると、デフォーカス量が所定値以下でない判
別された場合には上記合焦確認手段によって合焦が確認
されると合焦と判定され、デフォーカス量が所定値以下
であると判定されると、上記合焦確認手段を動作させず
に、上記駆動制御手段による駆動手段の駆動が終了する
と合焦と判定される。
EFFECTS OF THE INVENTION According to the present invention, when it is determined that the defocus amount is not equal to or less than the predetermined value, it is determined that the focus is confirmed by the focus confirmation means, and the defocus amount is equal to or less than the predetermined value. If it is determined that the focus is determined to be in focus when the drive of the drive unit by the drive control unit is terminated without operating the focus confirmation unit.

つまり、駆動手段の駆動完了時に、合焦精度が低いとき
のみ合焦確認を行い合焦精度が高いときには合焦確認を
行わないように構成されている。
That is, when the driving of the driving unit is completed, the focusing confirmation is performed only when the focusing accuracy is low, and the focusing confirmation is not performed when the focusing accuracy is high.

従って、合焦精度が高いとき、すなわち、DF量が所定値
より小さいとき、常に合焦確認を行う従来の焦点調節装
置に比べて焦点調節に要する時間は短くなり、シャッタ
ーチャンスを逃すことが減少する。
Therefore, when the focusing accuracy is high, that is, when the DF amount is smaller than the predetermined value, the time required for the focus adjustment becomes shorter than that of the conventional focus adjustment device that always performs the focus confirmation, and the chance of missing a shutter is reduced. To do.

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

第1図は本発明実施例のカメラシステム全体を示す概略
図、第2図はその電気回路を示すブロック図、第3図は
その電子閃光装置のフラッシュ回路を示す回路図、第4,
5図はその制御マイコンの動作を示すフローチャート、
第6図はそのインターフェース回路を示すブロック図、
第7−16図はそのAFマイコンの動作を示すフローチャー
ト、第17図(A)(B)はそれぞれわりこみ信号を示す
タイムチャート、第18図(A)(B)は「繰り込み積
分」の動作を説明するためのタイムチャート、第19図は
本発明実施例の焦点検出原理を説明するための概略図で
ある。 (113)(MC1);演算手段、デフォーカス判別手段、 反転判別手段、 制御手段、 (114)(MDR1)(MO1);駆動手段。
FIG. 1 is a schematic diagram showing an entire camera system of an embodiment of the present invention, FIG. 2 is a block diagram showing its electric circuit, and FIG. 3 is a circuit diagram showing a flash circuit of its electronic flash device.
Figure 5 is a flow chart showing the operation of the control microcomputer.
FIG. 6 is a block diagram showing the interface circuit,
FIG. 7-16 is a flow chart showing the operation of the AF microcomputer, FIGS. 17 (A) and (B) are time charts showing the interrupt signal, and FIGS. 18 (A) and (B) are the operations of "convolution integration". FIG. 19 is a time chart for explaining, and FIG. 19 is a schematic diagram for explaining the focus detection principle of the embodiment of the present invention. (113) (MC1); computing means, defocus determination means, inversion determination means, control means, (114) (MDR1) (MO1); drive means.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】撮影レンズのデフォーカス量を算出する焦
点検出手段と、 撮影レンズを駆動する駆動手段と、 上記デフォーカス量から上記駆動手段の駆動量を算出す
ることが可能な駆動量算出手段と、 上記デフォーカス量が所定の合焦幅を越えるときには上
記算出された駆動量に基づいて上記駆動手段を駆動して
撮影レンズを合焦位置へ駆動し、一方、上記デフォーカ
ス量が上記所定の合焦幅を越えないときには上記駆動手
段を停止させて撮影レンズの駆動を行わない駆動制御手
段と、 上記駆動制御手段による上記駆動手段の駆動終了後に再
度焦点検出手段を動作させ、得られた検出結果に基づい
て合焦か否かを確認する合焦確認手段と、 上記デフォーカス量が所定のずれ量以下か否かを判別す
る判別手段と、 上記デフォーカス量が所定のずれ量以下ではないと判別
された場合、上記駆動制御手段による上記駆動手段の駆
動終了後に上記合焦確認手段による確認を行う第1合焦
判定手段と、 上記デフォーカス量が所定のずれ量以下であると判別さ
れた場合、上記駆動制御手段による上記駆動手段の駆動
終了後に上記合焦確認手段による確認を行わず、合焦と
判定する第2合焦判定手段と を有することを特徴とする自動焦点調節装置。
1. A focus detection means for calculating a defocus amount of a photographing lens, a driving means for driving a photographing lens, and a driving amount calculation means capable of calculating a driving amount of the driving means from the defocus amount. When the defocus amount exceeds the predetermined focusing width, the driving means is driven based on the calculated driving amount to drive the photographing lens to the in-focus position, while the defocus amount is the predetermined amount. When the focus width is not exceeded, the drive means is stopped and the photographing lens is not driven, and the focus detection means is operated again after the drive control means has finished driving the drive means. Focusing confirmation means for confirming whether or not focus is achieved based on the detection result, determination means for determining whether or not the defocus amount is less than or equal to a predetermined deviation amount, and the defocus amount is predetermined When it is determined that the amount is not less than or equal to the predetermined amount, the first focus determination unit that confirms by the focus confirmation unit after the drive control unit finishes driving the drive unit, and the defocus amount is less than or equal to a predetermined shift amount. If it is determined that the second focus determination means determines that the focus is in focus, the drive control means does not perform confirmation by the focus confirmation means after the drive of the drive means is finished. Automatic focus adjustment device.
【請求項2】上記第1、第2合焦判定手段は、合焦した
と判定すると、合焦したことを表示する表示手段を有す
ることを特徴とする特許請求の範囲第1項記載の自動焦
点調節装置。
2. The automatic focusing apparatus according to claim 1, wherein the first and second focusing determination means have a display means for displaying that focusing is achieved when it is determined that focusing is achieved. Focus adjustment device.
【請求項3】上記第1、第2合焦判定手段は、合焦した
と判定されるまでカメラの露出制御手段の動作を禁止す
る禁止手段を有することを特徴とする特許請求の範囲第
1項記載の自動焦点調節装置。
3. The first and second in-focus determination means include inhibition means for inhibiting the operation of the exposure control means of the camera until it is determined that the in-focus state is achieved. An automatic focusing device according to the item.
JP61080778A 1986-04-08 1986-04-08 Automatic focus adjustment device Expired - Lifetime JPH0766100B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61080778A JPH0766100B2 (en) 1986-04-08 1986-04-08 Automatic focus adjustment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61080778A JPH0766100B2 (en) 1986-04-08 1986-04-08 Automatic focus adjustment device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP717985A Division JPS61165715A (en) 1985-01-14 1985-01-17 Auto-focusing device

Publications (2)

Publication Number Publication Date
JPS61267717A JPS61267717A (en) 1986-11-27
JPH0766100B2 true JPH0766100B2 (en) 1995-07-19

Family

ID=13727899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61080778A Expired - Lifetime JPH0766100B2 (en) 1986-04-08 1986-04-08 Automatic focus adjustment device

Country Status (1)

Country Link
JP (1) JPH0766100B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4701014B2 (en) * 2005-06-07 2011-06-15 オリンパスイメージング株式会社 Camera with focus adjustment device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5964816A (en) * 1982-10-05 1984-04-12 Olympus Optical Co Ltd Lens barrel
JPS59142508A (en) * 1983-07-11 1984-08-15 Minolta Camera Co Ltd Automatic focus adjusting device
JPS604916A (en) * 1983-06-23 1985-01-11 Minolta Camera Co Ltd Focusing detector of lens interchangeable camera
JPS604913A (en) * 1983-06-23 1985-01-11 Canon Inc Automatic focus detection method

Also Published As

Publication number Publication date
JPS61267717A (en) 1986-11-27

Similar Documents

Publication Publication Date Title
US4956659A (en) Automatic focus adjusting apparatus
US4829331A (en) Camera having auto-focussing device
JPS6341818A (en) Automatic focus adjusting device provided with auxiliary illuminating device
JPH0766099B2 (en) Automatic focus adjustment device
JP2501189B2 (en) Automatic focus adjustment device
JPH0690355B2 (en) Focus detection device
JPH0766101B2 (en) Automatic focus adjustment device
JPH0766100B2 (en) Automatic focus adjustment device
JP2687958B2 (en) Automatic focus detection device
JPH06100713B2 (en) Automatic focus adjustment device
JPH0713691B2 (en) Automatic focus adjustment device
JPH0713695B2 (en) Camera with automatic focusing device
JPH0713692B2 (en) Automatic focus adjustment device
JPH0766102B2 (en) Focus detection device
JPS62215248A (en) Focus detecting device with auxiliary lighting device
JP3034217B2 (en) Focusing device
JP2720151B2 (en) camera
JP2000009988A (en) Automatic focusing device for camera
JPS61165715A (en) Auto-focusing device
JPS61267716A (en) Automatic focusing device
JPH0524911Y2 (en)
JPS62272216A (en) Focus detector provided with auxiliary illuminating device
JP2003241068A (en) Automatic focusing camera
JPS62116914A (en) Automatic focus adjusting device
JPH01510A (en) autofocus camera

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term