JPH0713692B2 - Automatic focus adjustment device - Google Patents

Automatic focus adjustment device

Info

Publication number
JPH0713692B2
JPH0713692B2 JP8629386A JP8629386A JPH0713692B2 JP H0713692 B2 JPH0713692 B2 JP H0713692B2 JP 8629386 A JP8629386 A JP 8629386A JP 8629386 A JP8629386 A JP 8629386A JP H0713692 B2 JPH0713692 B2 JP H0713692B2
Authority
JP
Japan
Prior art keywords
lens
mode
signal
flag
focus
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
JP8629386A
Other languages
Japanese (ja)
Other versions
JPS61281208A (en
Inventor
正隆 浜田
徳治 石田
保明 赤田
Original Assignee
ミノルタ株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ミノルタ株式会社 filed Critical ミノルタ株式会社
Priority to JP8629386A priority Critical patent/JPH0713692B2/en
Publication of JPS61281208A publication Critical patent/JPS61281208A/en
Publication of JPH0713692B2 publication Critical patent/JPH0713692B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

従来の技術 従来、自動焦点調節の精度及び速度を向上させるため
に、撮影レンズを移動させつつ被写体光を繰り返し受光
して最新の受光出力に基づいて撮影レンズの移動量を演
算し、得られた移動量分だけ撮影レンズを駆動するよう
に構成された自動焦点調節装置は知られている。
2. Description of the Related Art Conventionally, in order to improve the accuracy and speed of automatic focus adjustment, the subject light is repeatedly received while moving the taking lens, and the moving amount of the taking lens is calculated based on the latest received light output. An automatic focusing device configured to drive a taking lens by a moving amount is known.

上記の装置のようにレンズ移動中に被写体光を受光した
場合、その受光出力は、受光期間中の略中央のタイミン
グでのレンズ位置に対応した出力となっている。従っ
て、演算によって得られたレンズ移動量は、受光期間の
略中央のタイミングでのレンズ位置から合焦位置までの
移動量となる。ところが、受光期間中及び演算中にもレ
ンズが移動しているので、撮影レンズは演算終了時には
その受光時点のレンズ位置から更に進んだ位置となり、
上記算出された移動量分撮影レンズを駆動すると合焦位
置を通り過ぎてしまうことになる。そこで、特開昭56−
78823号公報においては、上記移動量から受光期間の略
中央のタイミングから演算終了までのレンズ移動分を差
し引くことによって移動量を補正(以下、移動分補正と
呼ぶ)するようにして合焦位置を通り過ぎるようなこと
のない焦点調節装置が提案されている。
When the subject light is received while the lens is moving as in the above-described device, the light reception output is an output corresponding to the lens position at substantially the central timing during the light reception period. Therefore, the amount of lens movement obtained by the calculation is the amount of movement from the lens position to the in-focus position at the timing of approximately the center of the light receiving period. However, since the lens is moving during the light receiving period and during the calculation, the photographing lens is at a position further advanced from the lens position at the time of receiving the light at the end of the calculation,
If the photographing lens is driven by the calculated amount of movement, it will pass the in-focus position. Therefore, JP-A-56-
In the Japanese Patent No. 78823, the movement amount is corrected (hereinafter referred to as the movement amount correction) by subtracting the lens movement amount from the timing approximately at the center of the light receiving period to the end of the calculation from the above movement amount to set the focus position. Focusing devices have been proposed that do not pass by.

発明が解決しようとする課題 しかしながら、上記公報に記載された装置においては、
レンズが一定速度で移動させられていることを前提とし
て受光期間の略中央のタイミングでのレンズ位置を算出
し、演算終了までのレンズ移動分の補正がなされてい
る。従って、レンズ移動速度が変化しているときは受光
期間の略中央のタイミングでのレンズ位置に誤差が含ま
れ、正確な補正がなされない。特に、合焦位置近傍に到
達したことによる減速時にこのような誤った補正がなさ
れると焦点調節精度が著しく悪くなる。
SUMMARY OF THE INVENTION However, in the device described in the above publication,
Assuming that the lens is moved at a constant speed, the lens position is calculated at the timing substantially in the center of the light receiving period, and the amount of lens movement until the end of the calculation is corrected. Therefore, when the lens movement speed is changing, an error is included in the lens position at the timing substantially in the center of the light receiving period, and accurate correction cannot be performed. In particular, if such an erroneous correction is made at the time of deceleration due to reaching the vicinity of the in-focus position, the focus adjustment accuracy will be significantly deteriorated.

そこで、本発明は上記問題点を解決して、レンズ移動中
に被写体光を受光し、その受光出力に基づいて合焦位置
までのレンズ移動量を演算する焦点調節装置において、
より高精度な焦点調節装置の提供を目的とする。
Therefore, the present invention solves the above problems and receives a subject light while the lens is moving, and in a focus adjusting device that calculates the amount of lens movement to the in-focus position based on the received light output,
An object of the present invention is to provide a more accurate focus adjustment device.

課題を解決するための手段 本発明は、上記目的を達成するために、 撮影レンズを通過した被写体光を受光する電荷蓄積型受
光手段と、 上記受光手段の受光出力に基づいて、撮影レンズの合焦
位置までの移動量を演算する演算手段と、 上記撮影レンズを駆動する駆動手段と、 上記演算された移動量を上記駆動手段の駆動量として設
定する設定手段と、 上記設定された駆動量に基づいて上記駆動手段を駆動す
る駆動制御手段と、 上記駆動手段による撮影レンズ移動中に上記受光手段及
び演算手段を繰り返し動作させる制御手段と、 撮影レンズ移動中の上記受光出力に基づいて上記演算手
段の演算がなされた場合には、演算された移動量を上記
受光手段動作中のレンズ移動量に基づいて補正する補正
手段と、 上記設定された駆動量を上記補正された移動量によって
更新する更新手段と、 上記レンズ移動速度が減速しているときには上記更新手
段の動作を禁止する禁止手段と、 を有することを特徴とするものである。
Means for Solving the Problems In order to achieve the above object, the present invention provides a combination of a charge storage type light receiving means for receiving subject light that has passed through a photographing lens, and a combination of the photographing lens based on a light reception output of the light receiving means. A calculation unit that calculates the amount of movement to the in-focus position, a drive unit that drives the photographing lens, a setting unit that sets the calculated movement amount as the drive amount of the driving unit, and the set drive amount. Drive control means for driving the driving means based on the driving means, control means for repeatedly operating the light receiving means and the computing means during movement of the photographing lens by the driving means, and the computing means based on the received light output during movement of the photographing lens When the calculation is performed, a correction unit that corrects the calculated movement amount based on the lens movement amount while the light receiving unit is operating, and the set drive amount is corrected by the correction unit. And updating means for updating the amount of movement, when the lens moving speed is decelerating is characterized in that it has a, and inhibiting means for inhibiting the operation of said updating means.

つまり、本発明は、撮影レンズの減速中は移動分補正さ
れた移動量に含まれる誤差が大きく、むしろ、減速前に
演算された移動量に含まれる誤差の方が少ないという点
に着目して、レンズ移動速度の減速中には駆動手段の駆
動量を更新せずに減速前に設定されている駆動量に基づ
く駆動を継続することを特徴とするものである。
That is, the present invention focuses on the fact that the error included in the movement amount corrected for the movement amount is large during deceleration of the taking lens, and rather, the error included in the movement amount calculated before deceleration is smaller. During the deceleration of the lens moving speed, the driving amount of the driving means is not updated and the driving based on the driving amount set before the deceleration is continued.

作用 撮影レンズ移動中の上記受光出力に基づいて上記演算手
段の演算がなされた場合には、演算された移動量は、補
正手段によって上記受光手段動作中のレンズ移動量に基
づいて補正され、駆動手段の駆動量がこの補正された移
動量によって更新される。但し、レンズ移動が減速して
いるときにはこの更新が禁止される。そのため、駆動手
段は減速前に設定された駆動量に基づく駆動が継続され
る。
Operation When the calculation means calculates based on the received light output during movement of the photographing lens, the calculated movement amount is corrected by the correction means based on the lens movement amount during operation of the light receiving means, and the driving is performed. The driving amount of the means is updated by this corrected movement amount. However, this update is prohibited when the lens movement is decelerating. Therefore, the drive unit continues to be driven based on the drive amount set before deceleration.

実施例 本発明の実施例による自動焦点調節のためのカメラシス
テムの概略を第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 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 signal of the defocus amount | ΔL | that indicates the amount of deviation from the in-focus position and the defocus direction (front pin, rear pin) 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 the helicoid screw moves the focusing lens (FL) back and forth in the optical axis direction to perform focus adjustment. 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. Set 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 rotation setting position of the zoom ring (ZR). 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 the reading start signal is input through the terminals (JB3) (JL3), the lens circuit (LEC) sends the 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. Then, the reading circuit (LDC) reads the 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) obtains 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 K = KL · KB was calculated by multiplying this data KB by the data KL from the lens. 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 to calculate the KL / KB, and the AF controller (1
13) and have a value KB2 (≠ KB1) different from the above specific KB value, when the above lens is mounted on 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)2 ……(7) f1:フォーカス用レンズの焦点距離 となり、1つのズームレンズについてのKL値またはK値
が非常に広範囲に変化する。この場合、レンズに記憶す
るデータKL或いはKを、指数部のデータと有効数字のデ
ータ(例えば、8ビットのデータであれば、上位4ビッ
トを指数部、下位4ビットを有効数字数とする)に分
け、カメラ本体の読取回路(LDC)で読取ったデータの
うち下位4ビットのデータを指数部のデータだけシフト
させてカメラコントローラ(111)へ入力するようにす
ればKLまたはKの値が大幅に変化しても充分に対応でき
る。
In particular, in the case of the 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). If the data of the lower 4 bits of the data read by the reading circuit (LDC) of the camera body is shifted by the exponent data and input to the camera controller (111), the value of KL or K will 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), which will be 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 switch. (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マイコンという)である。演算された
焦点調節状態は表示用LED(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 LEDs (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)
に入力される。
(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)はフイルムの巻き上げ、巻き戻し用のモータ
(MO2)を制御するドライバ回路で、制御マイコン(MC
2)からのMM、MN信号によってモータ(MO2)の回転方
向、回転量を制御するものである。MM、MN信号とモータ
(MO2)の動作との関係を第1表に示す。
(MDR2) is a driver circuit that controls the motor (MO2) for winding and rewinding the film.
The direction and amount of rotation of the motor (MO2) is controlled by the MM and MN signals from 2). Table 1 shows the relationship between the MM and MN signals and the operation of the motor (MO2).

(EDO)はプログラムモード/シャッタ速度優先モード
/絞り優先モード/マニュアルモードなどの露出制御モ
ードのうち手動により選択されたモードを制御マイコン
(MC2)に伝達するとともに、そのモードによる露出制
御に必要なシャッタ速度、絞り値、フイルム感度、露出
補正値などの情報をも制御マイコン(MC2)に伝達する
ための露出制御設定回路である。(BS1)(BS2)はその
データラインである。
(EDO) transmits to the control microcomputer (MC2) the manually selected mode among exposure control modes such as program mode / shutter speed priority mode / aperture priority mode / manual mode, and is required for 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) (PT7) of the control microcomputer (MC2).
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 supply battery, and when the main switch (20) is closed, the voltage of the power supply 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 camera's photometry circuit (LMC) detects that the correct exposure has been reached, the camera outputs a flash stop signal to the terminal (ST3), and the flash stop circuit (44) receives this flash stop signal. , Stop the light emission of the flash discharge tube (40).

(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)の端子(PT1)から出力される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 a flag used to distinguish between continuous shooting (hereinafter referred to as continuous shooting mode) and single-shot shooting (hereinafter referred to as single shooting 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) required 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. At S5, set the AFS signal output from the control microcomputer (MC2) terminal (PT1) 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)の端子(TX
D)からシリアルで8ビットデータが5バイト、第4表
のような内容が出力され、AFマイコン(MC1)の端子(T
XD)に入力される。
In the flowchart of FIG. 4, there may be a case where a loop is made from S5 to S10 and from 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 (TX) is synchronized with the clock signal from the control microcomputer (MC2) terminal (SCK).
D) serially outputs 5 bytes of 8-bit data and the contents shown in Table 4 are output, and the AF microcomputer (MC1) terminal (T
XD) is input.

制御マイコン(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
Then, see the LENSF signal of the data coming from the lens circuit (LEC), and if LENSF = 0 and there is no lens signal, the FAEN signal remains “0” and proceeds to S33. When 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”. If the FAENL signal is “0”, the FAEN signal 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
FC信号を見る。S34でAFCF信号が“1"であればレンズにA
F用のカプラー軸があるということで、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 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 FC signal. If the AFCF signal is "1" in S34, put A on the lens.
Since there is a coupler shaft for F, 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 drive mode setting of the camera in S36 and S37 is continuous shooting mode, the DR signal is set to "1", and if it is 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 S10, the control microcomputer (MC2) terminal (I2) is checked whether it is "Low" or not, and it is checked whether it is released. 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
The process proceeds to 7 to send the flash light photographing data to the display unit (EXD), and if the charging completion signal is not received, the process proceeds to S28 to send and display the stationary light photographing data to the display unit (EXD), and the process proceeds to Step S22. 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.

次に測光を繰り返し、フローがループしている最中にレ
リーズされれば、端子(I2)が“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 while the flow is looping, the terminal (I2) becomes "Low". Then S1
Check 0 and go to S11. Next, release flag RL
If F is chucked and it is 1, proceed 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 the focusing is completed by the automatic focus adjustment even if the switch (S2) is turned on.The release priority mode is not in focus during the 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". S13 judges that it is in the in-focus state. If it is in focus, the AFE signal is "1" and the process proceeds to S14 to enter the release. If the signal is “0”, it goes to S26 and is not released. On the other hand, if it is the release priority mode in S12, it goes to S14 and is released. The SA / R signal checked in S12 is the manual selection of 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) during 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)に送り、充電完了信号が入力していなければS
17で定常光用の露出制御データを露出制御回路(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. In 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 or not a charge completion signal is input from the flash circuit (FLS) by looking at the terminal (PT9), and if it is input, the process proceeds to step S16 to obtain exposure control data for flash photography. Send to the exposure control circuit (EXC), S if the charge completion signal is not input
Exposure control circuit (EXC) for exposure control data for ambient light at 17
Send to. 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
If the switch (S1) is not closed, the control microcomputer (MC2) operates. 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を出力する。
そして、積分クリア信号が消えると同時に、CCDイメー
ジセンサ(FLM)内の各画素では光電流の積分が開始さ
れ、同時に輝度モニター回路(MC)の出力AGCOSが被写
体輝度に応じた速度で低下し始めるが、CCDイメージセ
ンサに内蔵された基準信号発生回路(RS)からの基準信
号出力DOSは一定の基準レベルに保たれる。AGCコントロ
ーラ(406)はAGCOSをDOSと比較し、所定時間(焦点検
出時には100msec.)内にAGCOSがDOSに対してどの程度低
下するかによって、利得可変の差動アンプ(408)の利
得を制御する。又、AGCコントローラ(406)は積分クリ
ア信号ICGの消滅後、所定時間内にAGCOSがDOSに対して
所定レベル以上低下したことを検出すると、その時“Hi
gh"レベルのTINT信号を出力する。このTINT信号はアン
ド回路(AN)及びオア回路(OR1)を通ってシフトパル
ス信号出力回路(410)に入力され、これに応答してこ
の回路(410)からシフトパルスSHが出力される。又、T
INT信号はオア回路(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 pulse-shaped integral 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 when the integration clear signal disappears, the integration of the 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) begins to decrease at a speed according to the brightness of the subject. However, the reference signal output DOS from the reference signal generation circuit (RS) built into the CCD image sensor is maintained 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 AGCOS has dropped below a predetermined level with respect to DOS within a predetermined time after the integration clear signal ICG disappears, then the "Hi
A gh "level TINT signal is output. 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, this circuit (410). Shift pulse SH is output from T.
The INT signal is taken into the AF microcomputer (MC1) as an NB4 signal through the OR circuit (OR2), and the AF microcomputer (MC1) knows the integration end 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 phase is shifted by 180 ° from the sensor drive pulse generation circuit (412).
Two sensor drive pulses φ1 and φ2 are output and input to the CCD image sensor (FLM). Of these sensor drive pulses, the CCD image sensor (FLM) is an OS that discharges the electric charge of each pixel of the CCD shift register from the end in series in synchronization with the rise of φ1 and forms an image signal.
The signals are sequentially output. This OS signal has a higher voltage as the incident light intensity to the corresponding pixel is lower, and the subtraction circuit (414) subtracts this from the above-mentioned reference signal DOS,
(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とDOとの差を保持し、以降こ
の差出力と画素信号とが可変利得アンプ(408)に入力
される。そして、可変利得アンプ(408)は画素信号と
その差出力の差をAGCコントローラ(406)により制御さ
れた利得でもって増幅し、その増幅出力がA/D変換器(4
18)によってA/D変換された後、画素信号データとしてA
Fマイコン(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, according to the sample hold signal, the peak hold circuit (416) holds the difference between the output OS and the DO corresponding to the aluminum mask part of the CCD image sensor, and thereafter, the difference output and the pixel signal are variable gain amplifier (408). Entered in. 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 amplified by the A / D converter (4
After A / D conversion by 18), A as pixel signal data
Captured by F microcomputer (MC1).

画素信号データが取り込まれる時は、AFマイコン(MC
1)からの信号IOSが“High"になり、インターフェース
回路(IF1)からAFマイコン(MC1)へ向かってNBφ〜NB
3の信号が出力される方向のゲートが開く。A/D変換回路
(418)のA/D変換は8ビットで行なわれるが、AFマイコ
ン(MC1)へは上位、下位の4ビットずつ転送される。
この上位と下位の4ビットの切り換えタイミングはEOC
信号によって行なっている。EOS信号は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 EOS 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 in accordance with the focus shift amount and the direction thereof to perform automatic focus adjustment of the photographing 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)に入力され
ることによりスタートする「INT1S」(第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 comes to 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)
"INT1S" (step # 8 in FIG. 7) started when the AFS signal is input to the pin (INT1) of the AF microcomputer (MC1), the AF microcomputer (MC1) from the terminal (PT2) of the control microcomputer (MC2) 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 step "INT1S" in step # 8 in FIG. 7 and passes 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 in Fig. 15 and the end of the lens starting from "CKLOCK" in 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 mode drive signals MC, MR, MF, and MB that are input from the AF microcomputer (MC2) to the driver circuit (MDR1) are 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.

尚、第6表において、*は“H"“L"のいずれでもよいこ
とを示す。
In Table 6, * indicates that either "H" or "L" may be used.

#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
Let's move on to the explanation of "INT1S". The interrupt start from this "INT1S" is not disabled in all the AF microcomputer (MC1), the interrupt is accepted at any time. This entrance serves three interrupts. One is the start of AF or FA operation, the second is AF or
The FA operation stops, and the third is the focus adjustment status display return operation immediately after release and the operation in continuous shooting mode. The distinction between these three is described. 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 (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. # 11
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(LSDL)(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-con flag that 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 signal LL and LR of LED (LSDL) (LEDM) (LEDR) is “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. The motor (MO1) is not braked here. 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, the motor (MO1) with its non-focus point
Rather than apply a brake to stop the lens and release it, you can take a better picture by stopping without applying the brake, moving the lens by some inertia, and releasing it near the in-focus position. This is because there are many cases. In # 30, the focus adjustment status display or defocus direction display disappears. This is because the killer rises during the release with the single-lens reflex camera, and the viewfinder is black. 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 of 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 when the open F value of the lens is small, the incident light to 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, the F value becomes 11.2 and focus detection becomes 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 set 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図の#248では焦点検出可能なレンズか否かのチェ
ックをし焦点検出可能ならFAフラグ(FA.F)を“0"にし
てFAモードとなり、焦点検出不可ならFAフラグを“1"に
して、AFフラグの“1"と共にMANUALモードという判断に
なる。ここでFAEN=1の時というのは、カメラボディに
レンズが装着されていてなおかつ焦点検出の可能なレン
ズということである。これ以外はFAENは“0"となってい
る。焦点検出不可能なレンズとはAF用開放F値が小さく
ても焦点検出できない反射望遠などのレンズや、収差が
極端に大きくなってしまうシフトレンズやバリソフトレ
ンズ等特殊なレンズのことである。このサブルーチンで
はFAモードからAFモードへの変化は見ていないがこれ
は、後の第11図のステップ#86で見ることになる。
In # 248 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 whether FA mode or not, and if not FA mode, go to the # 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 you look at the previous state for display restoration and the state before release was low contrast, in # 20 the low-con display is restored. The low-con display is the focus adjustment state display LED (LEDL ) (LEDM) (LEDR) out of the three ends (LEDL) (LEDR) is a display that blinks 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-shot mode or continuous-shot mode based on the DR signal. If DR = 0, it is single-shot mode. 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"であればレリーズを許可し、“Lo
w"であればレリーズ不可にしている。すなわち単写モー
ドであれば、一度合焦してレリーズしたあとそのままレ
リーズ1段押しのまま(スイッチ(S1)ONのまま)、AF
S信号等の割り込みが入らないと、#15からの「AFSIN
R」のフローを進み、#25でAFE信号が“High"になるの
で、このまま被写体の位置をかえると、たとえ非合焦状
態であってもレリーズできる。なおこの時は次の#26で
レリーズの割り込みかAFマイコン(MC1)のストップの
割り込みを待つことになっているので、レンズは駆動し
ない。このシーケンスのことを「AFロック」と呼ぶこと
ができる。
When the shutter release button is pressed down to the second step, the control microcomputer (MC2) permits the release if it is "High" when it sees this signal in the AF priority mode and "Lo".
If it is w ", the release is not possible. That is, in single shooting mode, after focusing and releasing once, press the release button 1 step (switch (S1) is ON), AF
If an interrupt such as the S signal does not come in, “AFSIN from # 15
Since the AFE signal goes to "High" at # 25 following the flow of "R", if the position of the subject is changed as it is, the shutter can be released even 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. If it is the auxiliary light AF mode, it is the continuous shooting mode and the auxiliary light AF mode, 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 that indicates whether it has exceeded 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
w"であればCCDイメージセンサ(FLM)が被写体の明るさ
に応じた積分を終了したという信号であるので#64の
「CDINT2」へ進む。“High"であれば積分が続いている
ということで#57へ進み、最初に設定した最大積分時間
が経過したかどうかのチェックをする。すなわち、#48
で設定した50msか、#58で設定した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 w ", 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 # 64," CDINT2 ". 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 #, 40ms set in # 58, 50ms in # 61 or 150ms in # 62 set later, 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 is the 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 CCD image sensor (FLM) integration is completed, the timing at which these data come out is determined by the interface circuit (IF1), and AGC data must be taken in immediately after the integration is completed. 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, and if it hits the end (infinity end or the closest end), the lens drive motor. (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 Laid-Open No. 59-126517, but since it is unrelated to the gist of the present invention, its explanation is omitted.

#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
If the AGC data is 1x, clear the low light flag to "0" at # 85 through # 80 and proceed 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 is detected only by outside light to the place where you 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 retracted 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」から再び始め
る。すなわち前回のシリアル通信#3後でセットされて
いる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 the register RG indicating the AF mode / FA mode / MANUAL mode set after the last serial communication # 3 and the 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 to enter this fill-in AF mode is that the subject is in a state of low contrast and low brightness, so enter from the low-contrast flow starting from "LOWCON" in # 165 of Fig. 13. become.

#87で補助光AFモードでなければ、#88で今回ローコン
フラグ(第5−1表の今回ローコンF)をチェックして
焦点検出演算の結果がローコントラストであったか否か
を判別し、ローコントラストであれば第13図の#165の
「LOWCON」フローへ移る。この#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 current low contrast flag (current low contrast F in Table 5-1) is checked in # 88 to determine whether or not the result of focus detection calculation is low contrast. If so, move to the "LOWCON" flow of # 165 in FIG. The low-congrag this time, which appears in # 88, is identified and created 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. 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 when the contrast of the subject is low, look for a high contrast position,
The focus detection while moving the focusing lens is called low contrast scan, but once the contrast appears in the subject, the low contrast scan is performed in a series of sequence while the switch (S1) is closed. Is prohibited. This is because, if you scan frequently, it will be difficult to use as an autofocus camera, and the contrast will be found once. 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, then the focus detection is performed using that contrasted data without stopping the lens. The calculation is performed, and the lens is driven up 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 “1” was set last time, it means that the low contrast was exited and the process proceeds to # 93. If the low contrast flag is "0" last time, the process proceeds from # 92 to # 102 as a place to pass when the focus is detected due to contrast from the beginning. 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 was not possible was displayed.
Since there is a contrast, I will erase it. #
In 94, if the 1-cut shot flag is set as described above, the lens must be stopped, so proceed to # 95,
If the 1-cut shot flag is not set, the lens is not stopped and the process proceeds to # 101 even during low contrast scanning. 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 to reset the flag indicating the state when the low contrast scan has been completed once or during the scan. 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. Here, it is checked whether or not it came during the low-con scanning by checking the scanning flag. 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 until the lens is completely stopped. At # 100, clear the same flag as # 101 and return to "CDINTA" at # 39 to 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, and 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 angel 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 in the focus zone, the focus is displayed. If this value is not in the focus zone, focus detection is not possible (LED blinks) 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 stop if the lens stop position is not within the focusing zone. This means that the display will blink. 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 the lens is trying to move to the close side during automatic focus adjustment, 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 mode is set, 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では、AFモードフラ
グに基づいてAFモードかどうかの判断をし、non AFモー
ドであれば、#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" in # 131
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 AF mode is set based on the AF mode flag, and if it is the non-AF mode, the flow branches to “FAP” from # 113. This is non
AF mode is because it is 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
Although DRCNT and the focus zone pulse count value FZC are compared, the defocus amount DF and the focus zone FZW may be compared. As a result, if there is a lens in the focus zone, #
The focus is displayed at 115. This is done by setting the LM signal at the terminal (P31) 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 ""Low" and right side LED
Turn on (LEDR). And for the next focus detection,
Loop to # 40 "CDINTA" in the figure.

#112でAFモードであった場合には、#116で3AFモード
時の合焦チェックをする。レンズ駆動パルスカウント値
DRCNTが合焦ゾーンパルスカウント値FZCより小さければ
合焦ということで、#117からの「INFZ」へ分岐する。
#117では、FAモード時の#115と同様に合焦表示をし、
#118で端子(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 3AF mode is performed in # 116. Lens drive pulse count value
If DRCNT is smaller than the focus zone pulse count value FZC, it means that focus is achieved, and the process branches from # 117 to "INFZ".
In # 117, the focus is displayed as in # 115 in FA mode,
Set the AFE signal from pin (P12) to "High" with # 118. The control microcomputer (MC2) is watching this signal, and if it becomes "High", it is considered that the automatic focus adjustment is 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つのLED(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 LEDs (LEDL) (LEDR) on both sides to indicate that focus detection is not possible, 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 back crash 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 one more time before the lens was stopped, that is, the direction in which the lens was being driven. 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 in the vicinity of the in-focus position is taken into consideration so that the lens does not hunt 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, it means that 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. Then, the previous direction flag is checked to check the previous defocus direction, and if the direction is reversed, proceed to # 137, and 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」は、レンズ駆動中及び停止中
の両方から合流してくるフローで、レンズ駆動パルスカ
ウント値DRCTをセットして、レンズを動かす部分であ
る。レンズの駆動スピードは、本実施例では二段式にな
っており、レンズが合焦位置から遠く離れている時のハ
イスピードと、レンズ合焦位置近傍にあるロースピード
とを切り換えることにしている。そして、ロースピード
でレンズをコントロールする部分を、ニアゾーンと呼ぶ
とする。#141では、レンズ駆動パルスカウント値DRCNT
が、このニアゾーンの領域のパルスカウント値NZC以内
であるかどうかをチェックして、レンズがニアゾーンの
領域内に入っていれば、#143へ進み、ニアゾーンフラ
グ(第5−2表のニアゾーンF)をセットする。#144
で端子(PO3)からのMC信号を“Low"とし、第6表のよ
うにレンズ駆動用モータ(MO1)をロースピードで駆動
させるようにする。一方、ニアゾーン外である時には、
#124に進んでMC信号を“High"とし、レンズ駆動用モー
タ(MO1)をハイスピードで駆動させるようにする。
"TINNZ" starting from # 141 is a flow that merges from both when the lens is being driven and when it is stopped, and is a part where the lens drive pulse count value DRCT 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. ) Is set. # 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,
Go to # 124 and 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のオーダー)レンズが止まったりしても終端
と判断してしまう。
Although a part of the description has been given in the above from # 145 to # 152, it 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 the lens is hit at the end of the lens, and the motor drive is stopped in the "CLOCK" subroutine, and the end flag is set. To build up. 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). However, it will be judged as the end.

こういったことを防ぐために、一度終端でレンズが止ま
ったと見ても、もう一度レンズを動かしてみて、再度
「CLOCK」サブルーチンで終端と判断されはじめて、実
際に終端で止まっているとしている。これを見るフラグ
が終端2ndフラグ(第5−2表の終端2F)で、#145で、
「CLOCK」サブルーチンの中でたてられた終端フラグを
見て、“1"であった時に、#146でこの終端2ndフラグを
見る。そして、初期状態ではこのフラグは“0"であるの
で#150へ進み、終端2ndフラグをたてておいて、#153
からのレンズ駆動フローで、レンズを動かす。そして、
次のループで#146へ来た時に、はじめて、終端で止ま
っているという判断をして#147へ進む。
In order to prevent such a thing, even if the lens stops once at the end, try moving the lens again, and once it is judged to be the end by the "CLOCK" subroutine, 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 in # 145,
Look at the end flag made in the "CLOCK" subroutine, and when it is "1", see this end 2nd flag at # 146. Then, in the initial state, this flag is "0", so the routine proceeds to # 150, and the terminal 2nd flag is set and # 153 is set.
Move the lens with the lens drive flow from. And
When it comes to # 146 in the next loop, it judges that it has stopped at the end for the first time, and proceeds to # 147.

#147では、今回のデフォーカス方向をチェックし、そ
して、#148と#149で終端位置フラグをみて今レンズが
どちら側の終端に当たっているかをチェックする。すな
わち今回のデフォーカス状態が前ピン(今回方向フラグ
=1)であり、レンズ位置が無限遠端であるとすると、
レンズは、今の無限遠端よりさらに無限遠側へ動かされ
なければならないことになる。この場合は、#148から
#40へ進み、次の「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, the process proceeds from # 148 to # 40, and in the next loop from "CDINT", the focusing zone is expanded and the focusing recheck is performed 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 one-shot AF mode, the latter method may be used, and in the case of continuous AF mode, it may be inconvenient unless the former.

なお、この後者の場合は、一旦ローコントラスト状態に
なれば第13図の#165の「LOWCON」フローの中で終端フ
ラグがクリアされるので、最近接端からぬけ出て、再び
レンズ駆動状態に入り、自動焦点調節が可能ということ
になる。次にレンズが終端にない場合や、終端にあるが
逆方向に動こうとしている場合には、第12図の#153か
らのレンズ駆動フローに入る。#153では焦点調節状態
表示用LEDをすべて消灯する。これはレンズの駆動中は
デフォーカス方向の表示をしないことを基本原則とする
ことによる。レンズが停止している状態で合焦時には中
央のLED(LEDM)を点灯して合焦表示をし、最近接端も
しくは無限遠端ではLED(LEDL)(LEDR)のいずれかを
点灯してデフォーカス方向を表示し、ローコントラスト
時には、LED(LEDL)(LEDR)の点滅表示をするのであ
る。#154でレンズ駆動パルスカウント値DRCNTをイベン
トカウンタEVTCNTと終端チェック用レジスタMECNTへセ
ットする。イベントカウンタEVTCNTにセットされた値DR
CNTは、割り込み端子(INT3)へエンコーダ(ENC)から
のパルスが入ってAFマイコン(MC1)に割り込みがかか
ると、この割り込みフロー(第16図のINT3S)の中で減
算される。カウント値DRCNTが“0"になった時点でレン
ズを停止させるとピントが合っているという仕組みであ
る。
In this latter case, once the low contrast state has been reached, the end flag is cleared in the "LOWCON" flow of # 165 in Fig. 13, so it is possible to get out of the closest end and re-enter the lens drive state. 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 show the focus when focusing, and either the 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 DR set in event counter EVTCNT
When a pulse from the encoder (ENC) is input to the interrupt terminal (INT3) and the AF microcomputer (MC1) is interrupted, CNT is subtracted in this interrupt flow (INT3S in Fig. 16). 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で駆動中フラグをセットする。#1
58では補助光モードフラグをみて補助光AFモードかどう
かチェックし、補助光AFモードであれば第14図の#231
からの「L2SAVE」へ分岐する。補助光AFモードでなけれ
ば#159でニアゾーンフラグをみてレンズの駆動がニア
ゾーン内であるかどうかをチェックし、ニアゾーン内で
あれば#160からの「WSTOP」へ進む。#160,#161では1
00ms間隔に終端チェックを繰り返しているだけで、次の
焦点検出ループへは戻らない。そして、レンズが合焦位
置で完全にストップするまで待ち、止まってから始め
て、合焦確認の焦点検出に入る。これは「WSTOP」ルー
プをまわっている間に第16図の#252の「INT3S」の割り
込みが入り、レンズをコントロールするわけである。
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, check the driving flag to see if the lens was being driven so far,
If it is driving (I will explain later, driving here means automatic focusing outside the near zone),
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. # 1
In 58, check the fill light mode flag to see if it is fill light AF mode. If it is fill light AF mode, # 231 in Fig. 14
Branch to "L2 SAVE" from. If it is not the auxiliary light AF mode, in # 159, check the near zone flag to check whether the lens drive is in the near zone. If it is in the near zone, proceed to "WSTOP" from # 160. 1 for # 160 and # 161
Only the end check is repeated at 00ms intervals, and the process 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 because the "INT3S" interrupt of # 252 in Fig. 16 enters while controlling the lens while controlling the "WSTOP" loop.

このニアゾーン内でレンズを駆動させながら焦点検出を
しないのは、以下の理由による。まず、ニアゾーンでの
レンズ駆動は、一定速度ではなく、加速度を持ってい
る。すなわち、レンズ駆動開始時には正の加速度を持
ち、レンズ停止位置前では負の加速度を持つ。ハイスピ
ード駆動時からニアゾーン内に入って、ロースピードに
切り変わった時には、負の加速度をもつ。ここで、元
来、ニアゾーンカウント量NZCは、ハイスピードからモ
ータ(MO1)の通電を切ってレンズの移動が止まるまで
のカウント値を目安に決めたもので、モータ(MO1)が
定速で動くための領域ではない。ここで定速でないとい
うことはモータ駆動中にセンサの積分を行っても、積分
時間の中間の位置をもって被写体データを得た地点とし
て代表することができないということである。従って、
前述のような移動分の補正をしてもその補正は正確では
なく、レンズ駆動パルスの算出誤差を持つことになる。
そこで、レンズが一定速度で動いていない時はセンサの
積分をしないことが望ましい。そこで本実施例では、加
速時、減速時には焦点検出をしていないのである。
The reason why focus detection is not performed while driving the lens in this near 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 until the motor (MO1) is de-energized until the lens movement stops, and 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 reversal 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, it will loop to # 39 "CDINTA" in Figure 9. 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 and adjust the event counter value T3 at the end of the calculation to the maximum count value 65,000 in order to correct the movement amount during the renormalization integration when starting the 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 prohibition flag fluctuates indicates that the low-contrast scan has already ended once or that 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
If you look at the charge completion signal RDY at 5, and if the conditions are all "1", you can jump to "LLLED" from # 225 and enter auxiliary light AF mode. If this condition is not met, in # 176, the low light state is checked based on the low light flag, and in the case of 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, since the error is generated when the focus is detected while driving the lens 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 foo that starts low concan. First,
Similar to the flow from # 173 to # 175, # 181 to # 183 determine the conditions for entering the fill light AF mode. Then, if the conditions are met, it jumps from # 183 to #LLLED of # 225 and enters auxiliary light AF mode. If the AFFL signal is not "1" because it is a low light but the auxiliary light illuminator is not set, proceed from # 181 to # 182, # 184, where the maximum integration time of the sensor has already been reached. Check if it is in 200ms 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 the low contrast scan, the image of the subject flows as described above, and a low contrast tends to occur, 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 sfotフラグを用い
てチェックしている。これは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. Therefore, 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 subject is dark or bright is checked using the 1-cut sfot 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)をたて、31
90で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 “LLIGHT2” of # 189 without proceeding to # 187. That is, the scan-per-scan flag (F per scan) indicating that the low-conscan scan hits the end once in # 189 is set to 31.
At 90, the MR signal is set to "Low" and low contrast scanning is started in the renormalization direction. When the lens hits the end at infinity, it is determined by the flag per scan created in # 189 in "ROTEM" from # 199 in FIG. 14 that the scanning is completed, and the lens stops. 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, "1" is added to the previous low contrast flag, 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に改たにEVTCNT
の値をセットしなおして、次の終端チェックに備える。
そしてリターンしていく。
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. # 198: EVTCNT instead of MECNT
The value of is reset and prepared for the next termination check.
Then return.

#199からの終端処理フロー「ROTEM」では、まず最初サ
ブルーチンから分岐してきているので、マイコンのスタ
ックポインタをリセットしておく。#200でINT1,INT2以
外の割り込みを禁止する。終端にぶつかっているという
ことで#201、#202でモータ(MO1)の通電を切って、
ブレーキをかける。#203ではモータ(MO1)を止めたの
で駆動中フラグをクリアする。#204で前回方向フラグ
をチェックして、前回方向フラグが“0"であれば(後ピ
ンでありレンズを繰り出していた)、#204で最近接端
位置で止まっているという意味で、終端位置フラグに
“1"をたてておく。前回方向フラグが“1"であれば(前
ピンであり、レンズを繰り込んでいた)、#206で無限
遠端位置で止まっているという意味で、終端位置フラグ
をクリアしておく。#207ではローコンスキャン中に終
端に当たったかどうかをチェックして、スキャン中でな
かったならば#208へ進み、終端でレンズが止まってい
るという終端フラグをセットしておく。#209では、さ
らに補助光モードフラグに基づいて補助光AFモード中で
あったかどうかをチェックして、補助光AFモード中であ
ったならば、終端に当たればたとえ一度目の発光による
焦点検出であろうとも、次の焦点検出にループしないで
LEDの点滅表示をして、焦点検出をあきらめる。補助光A
Fモードについては、#225からの「LLLED」フローの中
で詳しく述べる。#209で補助光AFモードでなければレ
ンズを終端位置に止めたまま次の焦点検出ループ「CDIN
TA」へ行く。
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. By hitting the end, turn off the motor (MO1) with # 201 and # 202,
Apply the brakes. In # 203, the motor (MO1) is stopped, so the driving flag is cleared. Check the previous direction flag in # 204. 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 # 204, and the end position. Set "1" in the flag. If the previous direction flag was "1" (it was the front pin and the lens was retracted), the end position flag is cleared in the sense that it stopped at the infinity 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 not in the scan, the process proceeds to # 208, and the end flag that the lens is stopped at the end is set. In # 209, it is further checked based on the fill light mode flag whether or not it is in fill light AF mode. If it is in fill light AF mode, if it hits the end, focus detection by the first light emission is performed. Don't loop to the next focus detection
LED blinking display and give up focus detection. Auxiliary light A
The F 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 "CDIN
Go to "TA".

#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 the scan, 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". This starts the inversion drive. # 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, the process goes to # 216, waits for an interrupt without going to the next focus detection, and ends 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) on both sides. The lighting time is up to 45 until the next focus detection calculation ends.
It is standard to turn on for 0 ms. This is the total time when the # 229 waits for 200 ms, the calculation time for focus detection, and the maximum integration time is 200 ms. 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 in the focusing zone, the lens is driven again to perform focus adjustment. This is a basic move.

ここで、補助光用LED(48)の発光が1回目か2回目か
の区別が必要となってくる。これを区別するた為に、補
助光1stフラグ(第5−2表の補助光1stF)が設けられ
ている。このフラグは“0"が入っていれば1回目の発光
であることを示し、“1"で2回目の発光を示している。
#228ではこのフラグに“0"と入れておく。#229ではセ
ンサの予備照明時間として200msを待ち、#230でセンサ
の最大積分時間が20msのモードにセットしておく。補助
光AFモードの場合、たいていが200ms積分時間となる。
そして、通常AFモードの時と同様の「CDINTA」へループ
する。
Here, it is necessary to distinguish whether the LED (48) for auxiliary light emits light for the first time or 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 20 ms. In auxiliary light AF mode, the integration time is usually 200 ms.
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図の#9
1の[NLOC1」へ行き焦点調節駆動のフローへ入って行
く。この場合には、第11図の#91から#102を通り、更
に、第12図の#141を通って#155で駆動を始め、#158
から補助光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. This is because it is possible to detect. If # 239 is not low contrast, then # 9 in Figure 11
Go to 1 [NLOC1] and enter the focus adjustment drive flow. In this case, driving is started at # 155 through # 91 to # 102 in FIG. 11 and then through # 141 in FIG.
From the auxiliary light AF mode "L2SAVE"(# in Fig. 14)
231).

第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回目の時と
同様に、#239で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 # 239, 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 in the auxiliary light AF mode, focus detection for focus confirmation is then performed, but since the emission of auxiliary light is limited to two times, focus detection for confirmation is not 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 focus detection for the first time and the result for the second time are significantly different, and it is assumed that reliable focus detection could not be performed, so 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 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, 2 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 chorus of the subject, and the possibility of bringing the lens in the focusing 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で端子(PO3)か
らの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 (PO3) 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 proceeds to # 160 “WSTOP” and does not return to the main flow because it does not detect the focus 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でのチェックでカウント値EVT
CNTが“0"になるので#259へ進む。ここで、レンズ駆動
用モータ(MO1)への通電を切り、#260でブレーキをか
けて、#261で駆動中フラグをクリアして、#262でイベ
ントカウンタの割り込みを禁止して、#263へ進む。こ
こで、補助光AFモード中であるかどうかをチェックし
て、補助光AFモード中であれば、このイベントカウンタ
割り込みからリターンしていく。このリターン先は補助
光AFモードのフローで説明したように、第14図の#232
か#236である。#263で補助光AFモードでない場合に
は、#264でスタックポインタをリセットして#265へ移
る。
Next, when the lens has moved by the drive pulse count value EVTCNT, the count value EVT is checked by checking in # 253.
Since CNT 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, it is checked whether or not the auxiliary light AF mode is in progress, and if it is in the auxiliary light AF mode, the process returns from this event counter interrupt. This return destination is # 232 in FIG. 14 as described in the flow of auxiliary light AF mode.
Or # 236. If it is not in the fill light AF mode in # 263, the stack pointer is reset in # 264 and the process proceeds 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,
Again, the lens driving routine is started 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 is performed from a position within 500 μm without correcting backlash. The system has a good linearity and goes to the in-focus display directly without performing focus detection for in-focus confirmation with the belief that the system is surely within 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 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
This is 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.
FIG. 18 (B) shows a case where the integration time is dark and exceeds 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) goes to fetch new data, the data currently being calculated will be destroyed. Eventually, the data of this second integration 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 T2 'at will be ignored. The calculation of the movement correction at this time is based on the above-described calculation formula. Ie 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間待つだけですむ。すなわちトータル時
間として−の時間が短縮されることになる。すなわ
ち、「繰り込み積分」方式は積分時間が−時間を超
えるような場合に効果が出てくる。本実施例では−
が60ms、又−の最大積分時間を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 correction is performed 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, since the integration has already been started by the "convolutional integration", it is only necessary to wait for -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 embodiment −
Is 60 ms and the maximum integration time of-is 100 ms.

ところで(B)の場合の移動分補正については(A)と
同様の方法はとれない。演算終了時24での移動分補正
は、積分開始時のカウント値T1′(これは前回の積分
終了時点のカウント値と同じと見なしてT2→T1′とおき
かえらえる)と、積分終了時のT2′、演算終了時のT3′
を用いて補正値を求めたいが、前回の演算終了時で、
レンズ駆動用イベントカウント値EVTCNTが書き換えられ
ている。すなわち補正計算でのTx=T1′−T2′におい
て、T1′とT2′でが別次元の数値であり、この計算は意
味がない。T2′、T3′はで演算結果が求められたEVTC
NTがセットされた時点から新しいスケールになっている
のである。そこで、T1′も新しいスケールに変換する必
要がある。すなわち、で求まった駆動カウント値DRCN
Tと、前回のスケールでに来ている値T3との差が新ス
ケールへの変換補正量となる。システムが理想的であれ
ば、DRCNT=T3となるはずであるが、被写体に対しレン
ズが移動しながらセンサ積分をしているということや、
デフォーカス量対レンズ駆動カウント値の間での変換で
は係数が小さめに量子化されているということや、焦点
検出演算で求まるデフォーカス量自体もレンズの行きす
ぎ防止の意味で幾分小さめに結果が求まるようにし行き
すぎてもどったりした時に行うバックラッシュ補正によ
っての誤差を含まないよう考慮してあることにより必ず
DRCNR>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 amount 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 same as the count value at the end of the previous integration and replaced with T2 → T1') and the count value at the end of integration. T2 ', T3' at the end of calculation
I want to obtain the correction value using, but at the end of the previous calculation,
The lens drive event count value EVTCNT has been rewritten. That is, in Tx = T1'-T2 'in the correction calculation, T1' and T2 'are numerical values in different dimensions, and this calculation is meaningless. EVTC for which T2 'and T3' are calculated by
It is a new scale from the time NT was set. Therefore, T1 'also needs to be converted to the new scale. That is, the drive count value DRCN obtained in
The difference between T and the value T3 that came to the previous scale is the amount of conversion correction to the new scale. If the system is ideal, it should be DRCNT = T3, but the fact that the lens is moving relative to the subject while performing sensor integration,
In the conversion between the defocus amount and the lens drive count value, the coefficient is quantized to be small, and the defocus amount itself obtained by the focus detection calculation is also a little small to prevent overshoot of the lens. Be sure to take into account the error due to the backlash correction that is performed when you go back too much.
DRCNR> T3. Therefore, DRCNT-T3 becomes the amount of correction between the new scale and the old scale, and if T2 is replaced with T1 'and this is corrected, T1' of the new case can be found 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, instead of correcting (DRCNT-T3), create another routine for renormalization integration when correcting the moving amount, and prepare the above formula instead of Tx = T1'-T2 '. There is no choice. 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 yield 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 there is a renormalization integration flag, the process proceeds to step # 43, where the integration yield 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 the movement of the photographing lens is slowing down, the drive amount is not updated with the movement amount corrected by the movement amount, so that a drive amount with a large error is set and focus adjustment accuracy is improved. It doesn't get worse.

特に請求項2に記載の発明のように、撮影レンズが合焦
位置近傍に達したときに減速するように構成した場合に
は、駆動量の誤差が合焦精度に大きく影響するため、本
発明の効果は大きい。
In particular, when the photographing lens is configured to decelerate when it reaches the vicinity of the in-focus position as in the invention described in claim 2, the error of the driving amount has a great influence on the in-focus accuracy. Has a great effect.

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

第1図は本発明実施例のカメラシステム全体を示す概略
図、第2図はその電気回路を示すブロック図、第3図は
その電子閃光装置のフラッシュ回路を示す回路図、第4,
5図はその制御マイコンの動作を示すフローチャート、
第6図そのインターフェース回路を示すブロック図、第
7−16図はそのAFマイコンの動作を示すフローチャー
ト、第17図(A)(B)はそれぞれわりこみ信号を示す
タイムチャート、第18図(A)(B)は「繰り込み積
分」の動作を説明するためのタイムチャート、第19図は
本発明実施例の焦点検出原理を説明するための概略図で
ある。 (113)(MC1);演算手段、補正手段、禁止手段、(11
4)(MDR1);駆動手段。
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 interrupt signals, and FIG. 18 (A). (B) is a time chart for explaining the operation of "convolutional integration", and Fig. 19 is a schematic diagram for explaining the focus detection principle of the embodiment of the present invention. (113) (MC1); calculation means, correction means, prohibition means, (11
4) (MDR1); drive means.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 8411−2K G03B 3/00 A ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI technical display location 8411-2K G03B 3/00 A

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】撮影レンズを通過した被写体光を受光する
電荷蓄積型受光手段と、 上記受光手段の受光出力に基づいて、撮影レンズの合焦
位置までの移動量を演算する演算手段と、 上記撮影レンズを駆動する駆動手段と、 上記演算された移動量を上記駆動手段の駆動量として設
定する設定手段と、 上記設定された駆動量に基づいて上記駆動手段を駆動す
る駆動制御手段と、 上記駆動手段による撮影レンズ移動中に上記受光手段及
び演算手段を繰り返し動作させる制御手段と、 撮影レンズ移動中の上記受光出力に基づいて上記演算手
段の演算がなされた場合には、演算された移動量を上記
受光手段動作中のレンズ移動量に基づいて補正する補正
手段と、 上記設定された駆動量を上記補正された移動量によって
更新する更新手段と、 上記レンズ移動速度が減速しているときには上記更新手
段の動作を禁止する禁止手段と、 を有することを特徴とする自動焦点調節装置。
1. A charge storage type light receiving means for receiving subject light which has passed through a taking lens, and a computing means for computing a moving amount of the taking lens to a focus position based on a light receiving output of the light receiving means. Drive means for driving the photographing lens; setting means for setting the calculated movement amount as the drive amount of the drive means; drive control means for driving the drive means based on the set drive amount; A control means for repeatedly operating the light receiving means and the calculating means during the movement of the photographing lens by the driving means, and a calculated movement amount when the calculation means calculates based on the light receiving output during the movement of the photographing lens. Correction means for correcting the above based on the lens movement amount during the operation of the light receiving means, updating means for updating the set drive amount by the corrected movement amount, and Automatic focusing apparatus characterized by having a prohibiting means for prohibiting the operation of the updating means when the moving speed is decelerating.
【請求項2】上記駆動制御手段は、撮影レンズが合焦位
置近傍の所定範囲内に入るとレンズ移動速度を減速させ
るように上記駆動手段を駆動することを特徴とする第1
項記載の自動焦点調節装置。
2. The drive control means drives the drive means so as to reduce the lens moving speed when the photographing lens enters a predetermined range near the in-focus position.
An automatic focusing device according to the item.
【請求項3】上記補正手段は、レンズ移動速度が一定で
あると仮定して、演算された移動量を補正することを特
徴とする第1項または第2項記載の自動焦点調節装置。
3. The automatic focus adjusting device according to claim 1, wherein the correcting means corrects the calculated moving amount on the assumption that the lens moving speed is constant.
【請求項4】上記受光手段の動作時間は被写体輝度に応
じて変化することを特徴とする第1項乃至第3項記載の
自動焦点調節装置。
4. The automatic focusing apparatus according to claim 1, wherein the operating time of the light receiving means changes according to the brightness of the subject.
【請求項5】上記補正手段は、演算された移動量を上記
受光手段動作中の所定のタイミングから上記受光手段の
動作終了の期間のレンズ移動量に基づいて補正すること
を特徴とする第1項乃至第4項記載の自動焦点調節装
置。
5. The first correction means corrects the calculated movement amount based on the lens movement amount during a period when the operation of the light receiving means ends from a predetermined timing during the operation of the light receiving means. The automatic focusing device according to any one of items 1 to 4.
【請求項6】上記禁止手段は、上記更新手段、上記受光
手段、上記演算手段、及び上記補正手段の動作を禁止す
ることを特徴とする第1項乃至第5項記載の自動焦点調
節装置。
6. The automatic focusing apparatus according to claim 1, wherein said prohibiting means prohibits the operations of said updating means, said light receiving means, said calculating means and said correcting means.
JP8629386A 1986-04-14 1986-04-14 Automatic focus adjustment device Expired - Lifetime JPH0713692B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8629386A JPH0713692B2 (en) 1986-04-14 1986-04-14 Automatic focus adjustment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8629386A JPH0713692B2 (en) 1986-04-14 1986-04-14 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
JPS61281208A JPS61281208A (en) 1986-12-11
JPH0713692B2 true JPH0713692B2 (en) 1995-02-15

Family

ID=13882788

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8629386A Expired - Lifetime JPH0713692B2 (en) 1986-04-14 1986-04-14 Automatic focus adjustment device

Country Status (1)

Country Link
JP (1) JPH0713692B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2801594B2 (en) * 1987-06-04 1998-09-21 株式会社 ニコン Camera auto focus device

Also Published As

Publication number Publication date
JPS61281208A (en) 1986-12-11

Similar Documents

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

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term