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

JPH0690355B2 - Focus detection device - Google Patents

Focus detection device

Info

Publication number
JPH0690355B2
JPH0690355B2 JP599686A JP599686A JPH0690355B2 JP H0690355 B2 JPH0690355 B2 JP H0690355B2 JP 599686 A JP599686 A JP 599686A JP 599686 A JP599686 A JP 599686A JP H0690355 B2 JPH0690355 B2 JP H0690355B2
Authority
JP
Japan
Prior art keywords
lens
mode
focus
signal
flag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP599686A
Other languages
Japanese (ja)
Other versions
JPS62164029A (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 JP599686A priority Critical patent/JPH0690355B2/en
Publication of JPS62164029A publication Critical patent/JPS62164029A/en
Publication of JPH0690355B2 publication Critical patent/JPH0690355B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 産業上の利用分野 この発明はカメラなどに用いられる焦点検出装置に関
し、特に、補助光により被写体を照明して焦点状態の検
出を行う焦点検出装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a focus detection device used for a camera or the like, and more particularly to a focus detection device that illuminates a subject with auxiliary light to detect a focus state.

従来の技術 撮影レンズを通して被写体光を受光して得られる被写体
像信号に基づいて焦点状態の検出を行う焦点検出装置で
は、被写体が暗く被写体像のコントラストが低い場合に
は、精確に焦点検出の結果が得られない。そこで、従
来、被写体を照明する補助光を設け、補助光を発光させ
ない動作モード(補助光非発光モード)ときに焦点検出
が行えないと判定されると、補助光を発光させるモード
(補助光発光モード)に切り換えて、補助光の照明によ
り焦点検出が行えるようにした焦点検出装置(以下、従
来の装置という。)が提案されている(例えば、特開昭
60−52810号公報)。
2. Description of the Related Art A focus detection device that detects the focus state based on the subject image signal obtained by receiving the subject light through a shooting lens provides accurate focus detection results when the subject is dark and the contrast of the subject image is low. Can't get Therefore, conventionally, when it is determined that focus detection cannot be performed in an operation mode in which auxiliary light for illuminating a subject is not provided and the auxiliary light is not emitted (auxiliary light non-emission mode), a mode in which the auxiliary light is emitted (auxiliary light emission There is proposed a focus detection device (hereinafter referred to as a conventional device) in which focus detection can be performed by illuminating with auxiliary light by switching to a mode) (for example, Japanese Patent Laid-Open No. Sho.
60-52810 publication).

ところが、上記従来の装置においても被写体が遠く補助
光が届かない場合や、たまたま撮影レンズの直前に障害
物がある場合(例えば、人ごみの中で撮影を行うとき
に、撮影レンズの直前に人が立つ場合)、補助光発光モ
ードにしてもやはり焦点検出が不可能であった。上記従
来の装置では、このように補助光発光モード時に焦点検
出が不可能と判定された場合には、以降の焦点検出を行
わないように設定されていた。
However, even in the above conventional apparatus, when the subject is far away from the auxiliary light or when there is an obstacle in front of the shooting lens by chance (for example, when shooting in a crowd, when a person is in front of the shooting lens, In the case of standing), focus detection was still impossible even in the auxiliary light emission mode. In the above-described conventional apparatus, when it is determined that focus detection cannot be performed in the auxiliary light emission mode in this manner, the subsequent focus detection is set not to be performed.

発明が解決しようとする問題点 上記従来の装置によれば、補助光発光モード時に焦点検
出が不可能であると判定されると、その後は焦点検出が
行われないため、たとえその後にカメラを別の方向に向
けたり、障害物が除かれて焦点検出が可能となっても、
焦点検出が行われず、シャッターチャンスを逃してしま
うという問題点があった。
Problems to be Solved by the Invention According to the above-described conventional device, if it is determined that focus detection is impossible in the auxiliary light emission mode, focus detection is not performed thereafter, so even if the camera is separated after that. Even if the focus detection is possible by pointing it in the direction of
There is a problem in that focus detection is not performed and a photo opportunity is missed.

この問題点は引き続きの焦点検出を繰り返すように構成
すれば解決することができるが、補助光発光モードのま
ま繰り返し焦点検出を行うと、補助光の発光に多大な電
力を消費することになる。また、補助光の光源の劣化が
激しくなるという別の問題が生じる。
This problem can be solved by configuring the focus detection to be repeated subsequently, but if focus detection is repeatedly performed in the auxiliary light emission mode, a large amount of power is consumed to emit the auxiliary light. Further, another problem that the deterioration of the light source of the auxiliary light becomes severe occurs.

従って、本発明の目的は、以上の問題点を解決し、電力
の消費が少なくかつ補助光の光源の劣化を防止すること
ができるとともに、被写体の状況変化にも迅速に対応す
ることができる焦点検出装置を提供することにある。
Therefore, an object of the present invention is to solve the above problems, reduce power consumption, prevent deterioration of the light source of auxiliary light, and quickly respond to changes in the situation of the subject. It is to provide a detection device.

問題点を解決するための手段 本発明に係る焦点検出装置は、 撮影レンズを通過した被写体光を受光し、被写体像信号
を出力する受光手段と、 上記受光手段から出力される被写体像信号に基づいて上
記撮影レンズの焦点状態を検出する焦点検出手段と、 上記焦点検出手段による焦点状態の検出のために被写体
を照明する補助光照明手段と、 上記受光手段から出力される被写体像信号に基づいて上
記焦点状態の検出が可能か否かを判定する判定手段と、 上記補助光照明手段を動作させない状態で上記焦点検出
手段を動作させる第1の動作モードと、上記補助光照明
手段を動作させ被写体が照明された状態で上記焦点検出
手段を動作させる第2の動作モードとを選択的に設定す
るモード設定手段と、 上記モード設定手段によって上記第1の動作モードが設
定されている場合に、上記判定手段によって上記焦点状
態の検出が不可能であると判定されたとき、上記第2の
動作モードに切り換えて設定するように上記モード設定
手段を制御する切り換え手段と、 上記モード設定手段によって上記第2の動作モードが設
定されている場合に、上記判定手段によって上記焦点状
態の検出が不可能であると判定されたとき、以降は上記
第1の動作モードに固定して設定するように上記モード
設定手段を制御し、かつ上記焦点検出手段が動作を繰り
返すように上記焦点検出手段を制御する制御手段とを備
えたことを特徴とする。
Means for Solving Problems A focus detection device according to the present invention is based on a light receiving unit that receives subject light that has passed through a photographing lens and outputs a subject image signal, and a subject image signal that is output from the light receiving unit. Based on a subject image signal output from the light receiving means, focus detecting means for detecting the focus state of the photographing lens, auxiliary light illuminating means for illuminating a subject for detecting the focus state by the focus detecting means. Determination means for determining whether or not the focus state can be detected; a first operation mode for operating the focus detection means without operating the auxiliary light illuminating means; and a subject for operating the auxiliary light illuminating means. Mode setting means for selectively setting a second operation mode for operating the focus detection means in a state where the first operation is performed by the mode setting means. When the mode is set and when the determination unit determines that the focus state cannot be detected, the switching for controlling the mode setting unit to switch to the second operation mode for setting. Means and the second operation mode is set by the mode setting means, and when the determination means determines that the focus state cannot be detected, the first operation mode is hereafter described. Control means for controlling the mode setting means so as to be fixedly set to, and controlling the focus detecting means so that the focus detecting means repeats the operation.

実 施 例 本発明の実施例による自動焦点調節のためのカメラシス
テムの概略を第1図に基づいて説明する。第1図におい
て、一点鎖線の左側は交換レンズ(LZ)、右側はカメラ
本体(BD)であり、両者はそれぞれクラッチ(106)(1
07)を介して機構的に、接続端子(JL1)〜(JL5)(JB
1)〜(JB5)を介して電気的に接続される。このカメラ
システムでは、交換レンズ(LZ)のレンズ系を通過した
被写体光が、カメラ本体(BD)の反射ミラー(108)の
中央の半透光部を透過し、サブミラー(109)によって
反射されCCDイメージセンサ(FLM)に受光されるよう
に、その光学系が構成されている。
EXAMPLE An outline of a camera system for automatic focusing according to an example 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 interchangeable lens (LZ) and the right side is the camera body (BD).
07) mechanically connecting terminals (JL1) to (JL5) (JB
1) ~ (JB5) electrically connected. In this camera system, the subject light that has passed through the lens system of the interchangeable lens (LZ) passes through the semi-translucent part in the center of the reflection mirror (108) of the camera body (BD), and is reflected by the sub mirror (109) CCD. The optical system is configured so that the image sensor (FLM) receives light.

インターフェース回路(112)は合焦検出モジュール(A
FM)内のCCDイメージセンサ(FLM)を駆動したり、CCD
イメージセンサ(FLM)から被写体データを取り込んだ
り、またこのデータをAFコントローラ(113)へ送り出
したりする。AFコントローラ(113)はCCDイメージセン
サ(FLM)からの信号に基づいて、合焦位置からのズレ
量を示すデフォーカス量|ΔL|とデフォーカス方向(前
ピン,後ピン)との信号を算出する。モータ(MO1)こ
れら信号に基づいて駆動され、その回転はスリップ機構
(SLP)、駆動機構(LDR)、カメラ本体側クラッチ(10
7)を介して交換レンズ(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 the slip mechanism (SLP), drive mechanism (LDR), camera body side clutch (10
It is transmitted to the interchangeable lens (LZ) via 7). The slip mechanism (SLP) prevents the motor (MO1) from being overloaded by slipping when the driven part of the interchangeable lens (LZ) is subjected to a torque larger than a predetermined value.

伝達機構(105)を介してレンズ系を光軸方向に移動さ
せて焦点調節が行なわれる。また、レンズ(FL)の駆動
量をモニターするためのエンコーダ(ENC)がカメラ本
体(BD)の駆動機構(LDR)に連結されており、このエ
ンコーダ(ENC)からレンズ(FL)の駆動量に対応した
数のパルスが出力される。
Focusing is performed by moving the lens system in the optical axis direction via the transmission mechanism (105). An encoder (ENC) for monitoring the drive amount of the lens (FL) is connected to the drive mechanism (LDR) of the camera body (BD), and the encoder (ENC) changes the drive amount of the lens (FL) A corresponding number of pulses are output.

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

また、レンズをΔd(mm)だけ移動させたときの結像面
の移動量ΔL(mm)と上記Δdとの比を Kop=Δd/ΔL ……(2) で表わすと、式(1)(2)より N=Kop・ΔL・ρ・μP/(μB・μL・LH) ……(3) の関係式が得られる。ここで、 KL=Kop/(μL・LH) ……(4) KB=ρ・μP/μB ……(5) とすると、 N=KB・KL・ΔL ……(6) の関係式が得られる。
Further, when the ratio of the movement amount ΔL (mm) of the image plane when the lens is moved by Δd (mm) and the above Δd is represented by Kop = Δd / ΔL (2), it can be expressed by equation (1) ( From 2), the relational expression of N = Kop · ΔL · ρ · μP / (μB · μL·LH) (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|とデフォーカス方向の信号とし
て得られる。
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.

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

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

レンズ回路(LEC)は、端子(JB3)(JL3)を介して読
込開始信号が入力すると、KLのデータを、カメラ本体か
ら端子(JB2)(JL2)を介して入力されるクロックパル
スに同期して、直列に読取回路(LDC)へ出力する。そ
して、読取回路(LDC)は端子(JB2)へ出力するクロッ
クパルスと同じクロックパルスに基づいて、端子からの
直列データを読み取って並列データに変換する。
When a read start signal is input via the terminals (JB3) (JL3), the lens circuit (LEC) synchronizes the KL data with the clock pulse input from the camera body via the terminals (JB2) (JL2). And outputs them in series to the reading circuit (LDC). 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)のレンズ回路(LEC)
から特定のKB値を有するカメラ本体に対応した K1=KL・KB1 のデータを設定焦点距離に応じて出力するようにする。
一方、この特定機種のカメラ本体では、カメラコントロ
ーラ(111)内のデータKBと、KL・KBの演算は不要とし
て読取回路(LDC)からのデータK1をAFコントローラ(1
13)へ入力しておくようにし、上記特定のKB値とは異な
る値KB2(≠KB1)を有する他カメラ本体に上記レンズが
装着されるときは、カメラコントローラ(111)内に KB2/KB1 のデータを持たせ、そして K2=K1・KB2/KB1=KL・KB2 の演算を行なってKL・KB2の値を得るようにしてもよ
い。
The camera controller (111) uses the data KL from the reading circuit (LDC) and the data KB inside it as KL · KB = K.
Is calculated. The AF controller (113) calculates the defocus amount | ΔL | using the data of the subject image from the interface circuit (112), and this defocus amount | ΔL |
And the data K from the camera controller (111), K · | ΔL | = N is calculated to calculate the number of pulses to be detected by the encoder (ENC). The AF controller (113) rotates the motor (MO1) clockwise or counterclockwise through a motor driver circuit (114) according to a defocus direction signal obtained using the subject image data, and an encoder (EN
When the number of pulses equal to the value N calculated by the AF controller (113) is input from C), the focusing lens (FL)
Is determined to have moved by the amount of movement Δd to the in-focus position,
Stop the rotation of the motor (MO1). In the above explanation,
The data KB was fixedly stored on the camera body (BD) side, and the value 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 interchangeable lens can be attached to any of several types of camera bodies with different KB values, the lens circuit (LEC) of the interchangeable lens (LZ)
To output the data of K1 = KL · KB1 corresponding to the camera body having a specific KB value according to the set focal length.
On the other hand, in the camera body of this specific model, the data KB in the camera controller (111) and the data K1 from the reading circuit (LDC) are not necessary for the calculation of KL / KB and the AF controller (1
13) and 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) ……(7) f1:フォーカス用レンズの焦点距離 となり、1つの交換レンズについてのKL値またはK値が
非常に広範囲に変化する。この場合、レンズに記憶する
データKL或いはKを、指数部のデータと有効数字のデー
タ(例えば、8ビットのデータであれば、上位4ビット
を指数部、下位4ビットを有効数字数とする)に分け、
カメラ本体の読取回路(LDC)で読取ったデータのうち
下位4ビットのデータを指数部のデータだけシフトさせ
てカメラコントローラ(111)へ入力するようにすればK
LまたはKの値が大幅に変化しても充分に対応できる。
In particular, in the case of the front group extension type interchangeable 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 interchangeable lens changes within 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). Divided into
If 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), K
Even if the value of L or K changes significantly, it is possible to cope with it sufficiently.

次に本システムでは、被写体が暗くて、合焦検出装置が
ローコントラストであると判断した場合被写体に対し
て、合焦検出用の補助光を照射するシステムとしてい
る。本実施例では補助光システムは、フラッシュ装置
(FL)に内蔵させ、カメラボディのアクセサリシュー
(65)に取り付けるようになっている。フラッシュ装置
(FL)の内部にはフラッシュ発光用チューブ(40)、補
助光ユニット(62)、補助光用光源であるLED(48)、
集光レンズ(63)、フラッシュ回路(FLS)が組まれて
いる。そしてフラッシュ回路(FLS)と、カメラコント
ローラ(111)の間では、電気的に接続され、信号のや
りとりが行なわれる。
Next, in the present system, when the subject is dark and the focus detection apparatus determines that the contrast is low, the subject is irradiated with auxiliary light for focus detection. In this embodiment, the auxiliary light system is incorporated in the flash unit (FL) and attached to the accessory shoe (65) of the camera body. Inside the flash unit (FL), a tube for flash emission (40), an auxiliary light unit (62), an LED (48) as a light source for auxiliary light,
It has a condenser lens (63) and a flash circuit (FLS). The flash circuit (FLS) and the camera controller (111) are electrically connected and signals are exchanged.

尚、上記第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 the circuit block of (1) 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 closing. (S2) is a switch that is closed when the shutter release button is pressed (pressed down) in two stages, and the exposure operation is started by this closing. (S4) is a switch that is closed when the winding of the film is completed.

(MC2)は、第1図で示したカメラコントローラ(111)
の働きをするもので、カメラのシステム全体の動作をシ
ーケンス的に制御するマイクロコンピュータ(以下、制
御マイコンという)である。その端子(I1)にはスイッ
チ(S1)が接続され、端子(I2)ははアンド回路を介し
てスイッチ(S2)(S4)が接続されている。(OSC)は
その動作用の発振回路である。(MC1)は、第1図で示
したAFコントローラ(113)の働きをするもので、自動
焦点調節動作をシーケンス的に制御するマイクロコンピ
ュータ(以下、AFマイコンという)である。演算された
焦点調節状態は表示用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). The switch (S1) is connected to the terminal (I1), and the 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) 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).
Mode, when it is open, it becomes nonAF mode, and its SAF
The / M signal is applied 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.

(SS/C)は連続AFモード(以下コンティニュアスAFモー
ドと呼ぶ)と単発AFモード(以下ワンショットAFモード
と呼ぶ)の切りかえスイッチである。スイッチ(SS/C)
が開放されているとコンティニュアスAFモードとなり、
合焦後も連続して自動焦点調節をするモードとなる。ス
イッチ(SS/C)が閉成されている場合にはワンショット
AFモードとなり、合焦後はAFがロックされるAFモードと
なる。このSS/C信号は制御マイコン(MC2)の端子(PT
0)に入力される。
(SS / C) is a switch for switching between continuous AF mode (hereinafter referred to as continuous AF mode) and single-shot AF mode (hereinafter referred to as one-shot AF mode). Switch (SS / C)
When is open, it becomes continuous AF mode,
Even after focusing, it becomes a mode in which automatic focus adjustment is continuously performed. One shot when switch (SS / C) is closed
The AF mode is set, and AF is locked after focusing. This SS / C signal is the control microcomputer (MC2) terminal (PT
It is input to 0).

(MDR2)フイルムの巻き上げ、巻き戻し用のモータ(MO
2)を制御するドライバ回路で、制御マイコン(MC2)か
らのMM、MN信号によってモータ(MO2)の回転方向、回
転量を制御するものである。MM、MN信号とモータ(MO
2)の動作との関係を第1表に示す。
(MDR2) Motor for winding and rewinding film (MO
2) A driver circuit that controls the rotation direction and amount of rotation of the motor (MO2) by the MM and MN signals from the control microcomputer (MC2). MM, MN signal and motor (MO
Table 1 shows the relationship with the operation of 2).

(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) 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 the exposure control time that performs exposure control 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)を介して発
光開始信号を出力し、これによってトリガー回路(36)
がトリガーされてSCR(38)が導通し閃光放電管(40)
が主コンデンサ(28)のエネルギーによって発光しはじ
める。この発光開始信号は発光開始モニター回路(42)
にも入力され、この発光開始モニター回路(42)は発光
開始信号を受けると、アンド回路(34)を閉じて充電完
了信号の端子(ST2)の伝達を阻止する。カメラ側の測
光回路(LMC)によって適正露出に達したことが検出さ
れると、カメラ側から端子(ST3)に発光停止信号を出
力し、発光停止回路(44)はこの発光停止信号を受け
て、閃光放電管(40)の発光を停止させる。
FIG. 3 shows a flash circuit (FLS), in which (20) is a main switch, (22) is a power battery, and when the main switch (20) is closed, the voltage of the power battery (22) is changed. Is boosted by the DC-DC converter (24) and supplied to the main capacitor (28) through the diode (26).
(GND) is the ground terminal. The charge voltage of the main capacitor (28) is monitored by the charge monitor circuit (30), and when the voltage reaches a predetermined amount, the charge completion detection circuit (3
2) outputs the charge completion signal, which is the AND circuit (3
The terminal (ST2) is reached via 4). On the camera side, after receiving this charge completion signal, it outputs a light emission start signal via the terminal (ST1), which causes the trigger circuit (36).
Is triggered, the SCR (38) becomes conductive and the flash discharge tube (40)
Starts to emit light due to the energy of the main capacitor (28). This light emission start signal is emitted from the light emission start monitor circuit (42).
When the light emission start monitor circuit (42) receives the light emission start signal, 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 connected to the terminals (JB).
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 from the terminal (SCK) of the control microcomputer (MC2) to the reading circuit (LDC), and the reading circuit (LDC) outputs serial data output from the terminal (TXD) of the control microcomputer (MC2). 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 drive 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) of 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用カプラー軸の有無(A
FCF)、焦点検出可能なレンズかどうか(FAENL)の各信
号を制御マイコン(MC2)内のメモリに保存しておく。
ステップS4では露出制御などのための設定データを出力
する露出制御値設定回路(EDO)からのデータを取り込
む。これには、露出に関したデータと単写又は連写モー
ドの別が含まれている。S5では制御マイコン(MC2)の
端子(PT1)から出力されるAFS信号を“Low"にする。こ
れはAFマイコン(MC1)の割り込み端子(INT1)に入力
されており、この信号の立ち下りによってAFマイコン
(MC1)は動作を開始する。同時に端子(PT2)からのIN
REL信号は“High"としておく。これはAFマイコン(MC
1)の割り込み端子(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, focusing of auxiliary light source and visible light Position correction data (ΔIR),
Backlash data (BKLSH), AF (automatic focus adjustment)
Or open F value for AF (AFAV0) to judge whether focus detection calculation for FA (focus adjustment status display) is possible,
Lens attachment discrimination (LENSF), presence / absence of AF coupler axis (A
FCF) and whether or not the lens can detect focus (FAENL) are stored in the memory inside 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, the AFS signal output from the control microcomputer (MC2) terminal (PT1) is set to "Low". This is input to the interrupt terminal (INT1) of the AF microcomputer (MC1), and the AF microcomputer (MC1) starts operating at the falling edge of this signal. At the same time, IN from the terminal (PT2)
The REL signal is set to "High". This is the AF microcomputer (MC
It is input to the interrupt pin (INT2) of 1), but this interrupt does not occur because the interrupt is taken at the falling edge.

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

制御マイコン(MC2は)、AFマイコン(MC1)の端子(P1
1)から制御マイコン(MC2)の端子(PT4)へ出るDTRQ
信号をデータ要求の合図とみて、データ出力を開始す
る。制御マイコン(MC2)ではS6でこのDTRQ信号が“Lo
w"になるのを待ち、“Low"になればS7へ進み、データを
送る。S7のAESIOはAFマイコン(MC1)へマイコンの動作
モードを決めるためのデータを作り、シリアルでデータ
を送る部分であるが、第5図に別ルーチンとして示して
ある。
Control microcomputer (MC2), 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. 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でレンズなしという信号になっていれば、FAE
N信号は“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
Looking at the LENSF signal of the data coming from the lens circuit (LEC),
If LENSF = 0 and there is no lens signal, FAE
The N signal remains “0” and the process proceeds to S33. The lens is attached
When LENSF = 1, if the FAENL signal is “1”, that is, if the lens is capable of focus detection, proceed to S32 and set the FAEN signal to “1”. If the FAENL signal is “0”, the FAEN signal remains “0”. Becomes

次にS33からS35ではAFC信号を決める。S33で端子(PT
6)に入力されるSAF/M信号を見る。SAF/M信号は、カメ
ラ外部からカメラレンズを自動焦点調節させるか否かを
決めるスイッチで、“High"であればAFモード(カメラ
本体内で装着された撮影レンズの焦点調節状態を検出
し、その結果に応じて撮影レンズの焦点調節を自動的に
行うモード)、“Low"であればnonAFモードとなる。S33
でSAF/M信号が“0"であれば、AFC信号は“0"のままS36
へ進み、“1"であればS34に進みレンズからのデータのA
FCF信号を見る。S34でAFCF信号が“1"であればレンズAF
用のカプラー軸があるということで、S35でAFC信号を
“1"にしておく。すなわち、レンズにAF用のカプラー軸
がありかつカメラの動作スイッチ(SAF/M)が閉成され
てAF側にある時に、AFC信号が“1"になり、これ以外は
“0"としておく。
Next, in S33 to S35, the AFC signal is determined. Terminal at S33 (PT
Check the SAF / M signal input to 6). The SAF / M signal is a switch that determines whether or not to automatically adjust the focus of the camera lens from the outside of the camera. If it is "High", the AF mode (the focus adjustment status of the shooting lens mounted in the camera body is detected, The mode automatically adjusts the focus of the taking lens according to the result), and if it is "Low", it becomes the non-AF mode. S33
If the SAF / M signal is “0” at, the AFC signal remains “0” at S36.
If it is "1", go to S34 and use the data A from the lens.
Watch the FCF signal. If AFCF signal is "1" in S34, lens AF
Since there is a coupler axis for, 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,S43ではSCF信号をセットする。スイッチ(SS/
C)が閉成されてあれば端子(PT0)に入力される信号は
“Low"になっているのでSCFを1にセットする。スイッ
チ(SS/C)が開放されていれば端子(PT0)は“High"に
なっているので信号SCFは0のままとなる。そして、S44
でレンズから送られてきたデータをAFマイコン(MC1)
へ送り出すためにシリアル転送用レジスタにセットす
る。S45ではシリアル転送開始のためのCSAF信号を“Hig
h"にする。これは、AFマイコン(MC1)からのシリアル
転送要求のDTRQ信号に返答したものでCSAF信号が“Hig
h"になると、AFマイコン(MC1)がシリアルデータの取
り込みを始める。そして、S46で8ビット5バイトのデ
ータをAFマイコン(MC1)へ転送する。S47で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 into the "High" state, and this is input to the terminal (PT9). Therefore, if PT9 = "High" in S40, go to S41. 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). The SCF signal is set in S42 and S43. Switch (SS /
If C) is closed, the signal input to the terminal (PT0) is "Low", so set SCF to 1. If the switch (SS / C) is open, the terminal (PT0) is "High", and the signal SCF remains 0. And S44
The data sent from the lens by the AF microcomputer (MC1)
Set to serial transfer register for sending to. In S45, set the CSAF signal for starting serial transfer to "Hig
Set to h ". This is a response to the DTRQ signal of the serial transfer request from the AF microcomputer (MC1).
When it becomes "h", the AF microcomputer (MC1) starts capturing the serial data. Then, in S46, transfer the 8-bit 5-byte data to the AF microcomputer (MC1). In S47, return the CSAF signal to "Low" and perform serial transfer. Ends.

次に第4図のメインルーチンにもどって、次のステップ
S8へ進む。ここでは測光回路(LMC)から、測光出力のA
NI信号とA/D変換用基準電圧のVRI信号とを取り入れて、
測光出力をA/D変換し、露出演算に必要なデータとして
用意しておく。次にS9で定常光用、フラッシュ光用の露
出演算を行う。次のS10では制御マイコン(MC2)の端子
(I2)が“Low"になっているかどうかをチェックし、レ
リーズされたかどうかを見る。シャッタがチャージさ
れ、スイッチ(S4)がONの状態でレリーズボタンが2段
押しされ、スイッチ(S2)がONになれば、端子(I2)は
“Low"になっているはずである。端子(I2)が“High"
であれば、レリーズされていないのでS25へ進む。S25で
はレリーズフラグRLFをクリアしておく。そして、ステ
ップS26では電子閃光装置から充電完了信号がきている
かどうかを判別し、充電完了信号がきている場合にはS2
7に進みフラッシュ光撮影用データを表示部(EXD)に送
り、充電完了信号が来ていなければS28に進み定常光撮
影データを表示部(EXD)に送って表示しステップS22に
移行する。そしてステップS22ではスイッチ(S1)が閉
成されたままで端子(I1)が“Low"になっているかどう
かを判別して“Low"になっていればステップS3に戻って
前述と同様の動作を繰り返す。
Next, return to the main routine of FIG. 4 and perform the next step.
Go to S8. Here, from the photometry circuit (LMC),
Taking in the NI signal and the VRI signal of the reference voltage for A / D conversion,
A / D convert the photometric output and prepare it as the data required for exposure calculation. Next, in S9, the exposure calculation for the constant light and the flash light is performed. At the next step S10, it is checked whether the terminal (I2) of the control microcomputer (MC2) is "Low" to see if the release has been made. If the shutter is charged, the switch (S4) is on, the release button is pressed in two steps, and the switch (S2) is turned on, the terminal (I2) should be "Low". Terminal (I2) is "High"
If so, proceed to S25 because it has not been released. In S25, the release flag RLF is cleared. Then, in step S26, it is determined whether or not the charging completion signal is received from the electronic flash device, and if the charging completion signal is received, S2
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 stop by the S signal, the stop interrupt is made to rise again within less than 50 μs after the fall (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 it is looping, the terminal (I2) becomes "Low". Then S1
Check 0 and go to S11. Next, release flag RL
Check F and if 1, go to S26. This means that if the shutter is released once in single shooting mode, the release flag RLF is set to 1 in S21 to S22, and if the switch (S2) is turned on by pressing the release button two steps,
Not released again. On the other hand, if the switch (S2) is turned off while the switch (S1) is turned on, step S10
From S25, the release flag RLF is cleared. That is, when the switch (S2) is turned on again next time,
It will be released from S11 to S12.

次にS12で、端子(PT7)に入力されているAF優先/レリ
ーズ優先の切り換え信号をチェックする。ここでAF優先
モードとは、スイッチ(S2)をONにしていても自動焦点
調節でピント合わせが完了して初めてレリーズをするモ
ードで、レリーズ優先モードとは、自動焦点調節中ピン
トが合わなくてもスイッチ(S2)が閉成されればいつで
もレリーズするモードである。S12ではSA/R信号が“Hig
h"(SA/R=1)であればAF優先モードとなりS13へ進
み、AFE信号をチェックする。これは、AFマイコン(MC
1)の端子(P12)から出力される信号でAFマイコン(MC
2)が焦点検出して合焦であると判断した時に“High"に
なる信号である。S13は合焦状態かどうかを判断してい
ることになる。そして、合焦であればAFE信号は“1"で
ありS14に進み、レリーズに入る。S13でAFE信号が“0"
であればS26へ行きレリーズされない。一方S12でレリー
ズ優先モードであればS14へ進みレリーズされる。S12で
チェックするSA/R信号は、カメラに取り付けられている
スイッチの手動選択に応じた信号であるが、これは又、
不図示のセルフタイマースイッチにも連動されており、
セルフタイマーが起動されると、AF優先モードの状態に
スイッチがあっても、レリーズ優先モードに切り換わ
る。セルフタイマー時はレリーズ優先モードとなるわけ
である。なおセルフタイマー使用時は、S14とS15の間に
不図示のセルフタイマー用時間待ち、例えば、10秒間の
時間待ちが入る。又、端子(PT7)には、カメラボディ
に設けられたスイッチ(SA/R)が接続されているが、こ
れをカメラボディの外部へ出して、外部コントローラ
(例えばコントローラブル裏ぶた)或いはリモコン用の
レシーバー等にゆだねてもよい。
Next, in S12, the AF priority / release priority switching signal input to the terminal (PT7) is checked. Here, the AF priority mode is a mode in which the shutter is released only after focusing is completed by the automatic focus adjustment even if the switch (S2) is turned on.The release priority mode is the focus during automatic focus adjustment. Is a mode that releases any time the switch (S2) is closed. In S12, SA / R signal is "Hig
If h "(SA / R = 1), the AF priority mode is set, and the process advances to S13 to check the AFE signal. This is the AF microcomputer (MC
The AF microcomputer (MC
2) is a signal that becomes “High” when the focus is detected and the focus is determined. In S13, it is determined whether or not it is in focus. If it is in focus, the AFE signal is "1", the process proceeds to S14 and the release is started. AFE signal is "0" in S13
If so, go to S26 and not be released. On the other hand, if the release priority mode is set in S12, the process proceeds to S14 and is released. The SA / R signal checked in S12 is a signal according to the manual selection of the switch attached to the camera, which is also
It is also linked to a self-timer switch (not shown),
When the self-timer is activated, it will switch to the release priority mode even if there is a switch in the AF priority mode. During the self-timer, the release priority mode is set. When using the self-timer, a self-timer time wait (not shown), for example, a time wait of 10 seconds is inserted between S14 and S15. 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 the charging completion signal is input from the flash circuit (FLS) by looking at the terminal (PT9). If it is input, the process proceeds to step S16 and the exposure control data for flash photography is set. 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, move to step S23 and perform the same operation as above, then 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), which is closed by pressing the shutter release button one step, is detected by the control microcomputer (MC2), the AF microcomputer (MC1) performs focus adjustment operation according to the signal from the control microcomputer (MC2). Start.

まず、AFマイコン(MC1)からのIOS信号が“Low"され、
AFマイコン(MC1)からインターフェース回路(IF1)へ
向ってNBφ〜NB3の信号が出力される方向のゲートが開
く。そして、AFマイコン(MC1)からCCDイメージセンサ
(FLM)にパルス状の積分クリア信号ICGがNB2の信号と
して出力され、これによりCCDイメージセンサ(FLM)の
各画素が初期状態にリセットされると共に、CCDイメー
ジセンサに内蔵された輝度モニター回路(MC)の出力AG
COSが電源電圧レベルにリセットされる。又、AFマイコ
ン(MC1)はこれと同時に端子(NB5)から“High"レベ
ルのシフトパルス発生許可信号SHENを出力する。そし
て、積分クリア信号ICGが消えると同時に、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",
The gate opens in the direction in which the signals of NBφ to NB3 are output from the AF microcomputer (MC1) toward the interface circuit (IF1). Then, the AF microcomputer (MC1) outputs a pulsed integration clear signal ICG to the CCD image sensor (FLM) as a signal of NB2, whereby each pixel of the CCD image sensor (FLM) is reset to the initial state, Output AG of the brightness monitor circuit (MC) built into the CCD image sensor
COS is reset to power supply voltage level. At the same time, the AF microcomputer (MC1) outputs the "High" level shift pulse generation enable signal SHEN from the terminal (NB5). Then, at the same time as the integration clear signal ICG disappears, the integration of photocurrent starts in each pixel in the CCD image sensor (FLM), and at the same time, the output AGCOS of the brightness monitor circuit (MC) drops at a speed according to the brightness of the subject. To start, the reference signal output DOS from the reference signal generation circuit (RS) built into the CCD image sensor is kept at a constant reference level. The AGC controller (406) compares AGCOS with DOS, and controls the gain of the variable gain differential amplifier (408) according to how much AGCOS decreases with respect to DOS within a predetermined time (100 msec. During focus detection). To do. Further, when the AGC controller (406) detects that AGCOS has dropped below a predetermined level with respect to DOS within a predetermined time after the integration clear signal ICG has disappeared, 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 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とDOSとの差を保持し、以降
この差出力と画素信号と可変利得アンプ(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. The peak hold circuit (416) holds the difference between the output OS and DOS corresponding to the aluminum mask part of the CCD image sensor by the sample hold signal, and this difference output, the pixel signal and the variable gain amplifier (408) are input thereafter. It Then, 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
信号によって行なっている。EOC信号はTINT信号とオア
回路(OR2)でオアをとられて、NB4信号としてAFマイコ
ン(MC1)へ入力される。AFマイコン(MC1)は、このNB
4信号の“High"状態、“Low"状態のタイミングによって
NBφ〜NB3から画素信号データを取り込むことになる。
又、このNBφ〜NB3からは、画素信号データズの取り込
みが開始される前に、AGCコントローラ(406)からAGC
データ取り込むようになっている。このAGCデータは、
後述するように、判定レベルとして使われる。なお、ほ
かに、AFマイコン(MC1)の端子(NB1)から出力される
Sφ信号は、CCDイメージセンサのイニシャライズと、
被写体光を積分する通常動作とを切り換えるための信号
である。
When the pixel signal data is captured, the AF microcomputer (MC
Signal IOS from 1) becomes "High", and NBφ to NB from the interface circuit (IF1) to the AF microcomputer (MC1)
The gate opens in the direction where the 3 signal is output. The A / D conversion of the A / D conversion circuit (418) is performed by 8 bits, but the upper 4 bits and the lower 4 bits are transferred to the AF microcomputer (MC1).
The switching timing of the upper and lower 4 bits is EOC
It is done by signals. The EOC signal is ORed with the TINT signal by the OR circuit (OR2) and input to the AF microcomputer (MC1) as the NB4 signal. AF microcomputer (MC1) is this NB
Depending on the timing of the “High” and “Low” states of the four signals
Pixel signal data will be fetched from NBφ to NB3.
Also, from this NBφ to NB3, before the acquisition of the pixel signal data is started, the AGC controller (406) controls the AGC.
It is designed to capture data. 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 is saved, the AF microcomputer uses it to defocus according to a predetermined program. And the direction thereof are calculated and displayed on the display circuit, while the lens driving device is driven in accordance with the amount of defocus and the direction thereof to automatically adjust the focus of the taking lens.

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

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

AFマイコン(MC1)の動作のスタートとしては4つの入
口がある。つまり、電源投入時すなわち第2図のAFマイ
コン(MC1)の端子(CLR1)にRES信号が来た時にスター
トする「RESET」(第7図のステップ#1)、制御マイ
コン(MC2)の端子(PT1)からAF動作(自動焦点調節動
作)又はFA動作(焦点検出動作)をスタートすべく出す
AFS信号がAFマイコン(MC1)の端子(INT1)に入力され
ることによりスタートする「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の焦点検出「CKLOC
K」から始まるレンズの終端位置を判断処理するフロー
とがある。以下このフローチャートに基いて本実施例に
おける自動焦点調節動作(以下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, a flow for inputting and processing serial data from the control microcomputer (MC2) starting with “SIOSET” in step # 241 in FIG. 15 and focus detection “CKLOC in step # 196 in FIG.
There is a flow for determining the end position of the lens starting from "K". 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 status display or defocus direction display in 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 erased by this method, the output state being displayed is stored in the output port register, and the stored content can be displayed again by setting this port in the output mode. We will use this later.

#4ではレンズを停止させる。なお、ここではブレーキ
はかけない。これはAFマイコン(MC2)の非動作中で
は、レンズにブレーキをかけず比較的手で動きやすくす
るとともに、省電を考えてのことである。AFマイコン
(MC2)からドライバー回路(MDR1)に入力されるレン
ズ用モータ駆動信号MC、MR、MF、MBのコントロールにつ
いては第6表に上げたようになっており、端子(PO2)
〜(PO0)の信号MR、MF、MBを“High"状態にすれば、電
気的ブレーキがかからず、モータ(MO1)への通電が切
れレンズが止まる。
In # 4, the lens is stopped. The brake is not applied here. This is because, while the AF microcomputer (MC2) is not operating, the lens is not braked so that it can be moved relatively easily by hand, and power saving is considered. The control of the lens motor drive signals MC, MR, MF, and MB that are input from the AF microcomputer (MC2) to the driver circuit (MDR1) are 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 determining the interrupt status 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 by one step, the switch (S1) in FIG. 2 is closed and the control microcomputer (MC2) interrupts INT1, and the shutter release button is pressed by two steps. 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 turned 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" does not disable the interrupt during the entire flow of the AF microcomputer (MC1) and accepts the interrupt at any time. This entrance serves three interrupts. One is the start of the AF or FA operation, the second is the stop of the AF or FA operation, and the third is the operation of returning the focus adjustment state display immediately after the release and the operation in the continuous shooting mode. These 3
Let us describe two distinctions. The first and the second are distinguished by the input signal to the terminal (INT1). That is, AFS is used to start AF or FA operation as shown in Fig. 17 (A).
Signal falls from "High" to "Low", "Low" is 50μs
It is necessary to continue above. To stop the AF or FA operation, the AFS signal changes from "High" to "Low" as shown in Fig. 17 (B).
After falling to, within 50μs from "Low" to "High"
Need to get up to. A flag is used to distinguish the third operation from the first normal AF or FA operation. When a release interrupt described later comes, the release flag (release F) is set in the flow during release, and it is distinguished by checking whether or not this flag is set at the start of the next "INT1S". These will be sequentially described from # 8. # 8, INT at the start
Disable interrupts other than 1 and INT2. The event counter interrupt of INT3 and the internal interrupt of the timer that determines the blinking period of the display LED, which is not shown in the flowchart, are prohibited. # 9 is about to clear the used flag, but AFSINR from # 15
Among them, the two flags used as the previous states, that is, the scan prohibition flag (scan prohibition F in Table 5-1) and the previous low control flag (previous low control F in Table 5-1) are not cleared. The switch (S1) does not clear the scan prohibition flag even in continuous shooting mode.
As long as you do not turn off, once the contrast of the subject is sufficient for focus detection and you have been able to calculate the defocus amount, or once you have performed low contrast scan, as in the single shooting mode, This flag is left to prevent low contrast scanning. In addition, the reason why the low contrast flag is not cleared last time is "AFSINR" which is the interrupt flow by the AFS signal after release starting from # 15. If the switch (S1) remains on after release, The focus detection calculation result display is not cleared in order to restore it. That is, during release, the LED defocus direction display is turned off once, and when the release operation is finished, it is displayed again.Therefore, it is necessary to determine whether the LED was blinking at low contrast. Leave the flag.

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

次に#14では#9でクリアしないでおいたスキャン禁止
フラグと前回ローコンフラグを改めてクリアしておく。
#401ではレリーズ後ドライブフラグをクリアしてお
く。このフラグは連写モード時に使うフラグで、合焦処
理フローの中で、連写モード中レリーズ前の状態なの
か、レリーズ後の状態なのかを判別するために使う。#
401へはレリーズ前の状態の場合に通過する所なのでこ
のフラグはクリアしておく。そして次に#33の「AFSTAR
T」へ進む。このあと焦点調節状態を検出し、その結果
に応じてレンズを駆動させ、焦点調節状態表示を行う。
焦点調節状態表示とは表示用LED(LEDL)(LEDM)(LED
R)の入力信号のLLとLRが“High"、LMが“Low"で緑色の
LEDを点灯させることであり、この表示を見てスイッチ
(S2)を閉成すれば、又は(S1)と(S2)を閉成した状
態で自動焦点調節を行わせてピント合わせ動作が完了す
れば、制御マイコン(MC2)はレリーズ動作を開始し、
同時にAFマイコン(MC1)へレリーズをしたことを知ら
せる割り込み信号INRELが出力される。AFマイコン(MC
1)は、端子(INT2)でこれを受けるので、レリーズの
割り込みがかかる。これが第8図の#27の「INT2S」か
ら始まるフローである。
Next, in # 14, the scan prohibition flag and the previous low control flag which were not cleared in # 9 are cleared again.
In # 401, the drive flag is cleared after the release. This flag is a flag used in the continuous shooting mode, and is used in the focusing processing flow to determine whether the state is the state before the release or the state after the release in the continuous shooting mode. #
This flag is cleared because 401 is the place to pass in the state before release. And then # 33 "AF STAR
Go to "T". After that, the focus adjustment state is detected, the lens is driven according to the result, and the focus adjustment state is displayed.
What is the focus adjustment status display? LED for display (LEDL) (LEDM) (LED
R) input signal LL and LR are “High”, LM is “Low” and green
This is to turn on the LED. If you see this display and close the switch (S2), or if you close the switches (S1) and (S2), the automatic focus adjustment is performed and the focusing operation is completed. For example, the control microcomputer (MC2) starts the release operation,
At the same time, an interrupt signal INREL is output to the AF microcomputer (MC1) to inform the release. AF microcomputer (MC
Since 1) receives this at the pin (INT2), a release interrupt occurs. 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 mirror is raised and the inside of the viewfinder is completely black during the release with the single-lens reflex camera. This is because it is meaningless to display only the display here, and it is not preferable that unnecessary light is output inside the camera during film exposure.

次に#31でレリーズフラグ(レリーズF)を“1"にし、
レリーズされたことをフラグとして残す。あとは#32
で、INT1又はINT2の割り込み待ちとなる。ここで続けて
レリーズ割り込みが来ると再び#27の「INT2S」から始
まる。第2図のスイッチ(S1)を閉成したままスイッチ
(S2)の開閉を繰り返している場合がこれに当たり、レ
ンズを駆動させないで合焦位置で固定しているというAF
ロック状態でレリーズを繰り返していることと同じであ
る。スイッチ(S2)を閉成してレリーズしたあと、スイ
ッチ(S1)を閉成したままだと、制御マイコン(MC2)
のフローチャートにあるように、再びAFS信号がAFマイ
コン(MC1)に入りINT1の割り込みがかかる。すると、
#8「INT1S」からのフローは、今度はレリーズフラグ
(レリーズF)に1がたっているので第7図の#15の
「AFSINR」の方へ進む。#15からのステップは後に説明
する。
Next, at # 31, set the release flag (release F) to "1",
The release is left as a flag. The rest is # 32
Then, wait for INT1 or INT2 interrupt. When the release interrupt comes in succession, it starts again from "INT2S" of # 27. This occurs when the switch (S2) is repeatedly opened and closed while the switch (S1) in Fig. 2 is closed, and this is the case where the lens is fixed at the in-focus position without being driven.
It is the same as repeating the release in the locked state. After the switch (S2) is closed and released, the switch (S1) remains closed, and the control microcomputer (MC2)
As shown in the flowchart, the AFS signal enters the AF microcomputer (MC1) again and INT1 interrupt occurs. Then,
Since the release flag (release F) is set to 1 this time, the flow from # 8 "INT1S" proceeds to # 15 "AFSINR" in FIG. 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 the switches (S2) and (S1) are both opened as shown in the flow of FIG. ) AFS signal for stop enters into the 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)をリセットする。#402ではレリー
ズ後の状態の場合に通過する所であるのでレリーズ後ド
ライブフラグをセットしておく。後ほど合焦処理フロー
の中で用いる。次に#16で制御マイコン(MC2)からシ
リアルデータを入力する。ここでシリアルデータを入力
するのは、AFマイコン(MC1)の動作モードが変更され
ていないかチェックするためである。この#15から始ま
る「AFSINR」へ来るフローは、レリーズされた後に来る
フローであるが、このレリーズ中やその寸前で動作モー
ド、なわちAFモード/FAモード/MANUALモードの各モー
ド、又AFモードでも単写モード/連写モードの別が切り
換えられれば、そのモードに応じた動作に変わらなけれ
ばならない。#16はこのモードの情報を制御マイコン
(MC2)から入力するためのステップである。この#16
は、サブルーチンで第15図の#241から始まる「SIOSE
T」のフローを流れる。ここでは各モードのチェックを
し、モードのフラグを操作する。まず、#241では制御
マイコン(MC2)に向かって端子(P11)のDTRQ信号を
“Low"にし、シリアルデータを要求する。すると制御マ
イコン(MC2)はDTRQ信号を見て第4表のようなシリア
ルデータを送ってくる。AFマイコン(MC1)側では、#2
42でこのシリアルデータを入力し、#243でDTRQ信号を
“High"にしておく。シリアル通信で送られてくるデー
タは、AF用開放F値AFAV0、レンズ駆動用デフォーカス
量−パルスカウント変換係数KROM、補助光用AF補正用デ
ータΔIR、レンズ駆動反転時バックラッシュ補正用デー
タBKLSH、補助光OK信号AFFL、フラッシュ用充電完了信
号RDY、連写/単写モード信号DR、AFカプラー軸付レン
ズ信号AFC、FA可/不可信号FAENの9種である。各々の
情報はシリアル通信で送られてくるとAFマイコン(MC
1)の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. In # 402, the drive flag is set after release because it is a place to pass in the case of the state after release. It will be used later in the focusing processing flow. 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, but during this release or just before that, the operation mode, that is, each mode of AF mode / FA mode / MANUAL mode, also AF mode However, if the single shooting mode / continuous shooting mode is switched, 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 that starts from # 241 in Fig. 15 "SIOSE
Flow through T ”. Here, each mode is checked and the mode flag is operated. First, in # 241, the DTRQ signal of the terminal (P11) is set to "Low" toward the control microcomputer (MC2) to request serial data. Then, the control microcomputer (MC2) sees the DTRQ signal and sends serial data as shown in Table 4. # 2 on the AF microcomputer (MC1) side
Input this serial data at 42, and set the DTRQ signal to "High" at # 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, lens signal AFC with AF coupler shaft, FA enable / disable signal FAEN. When each information is sent by serial communication, the AF microcomputer (MC
It is saved in the RAM of 1), 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 to this, the F value will be 11.2 and focus detection will be impossible. It means that Here, the AF open F value is the F value when the diaphragm of the lens is not closed, but even in the case of a lens whose F value changes due to zooming or focusing, the light receiving element for focus detection is not cut off. Since this is information for determining that, if the F value changes due to zooming or focusing, the smallest open F value is included. If the open F value AFAV0 for AF is larger than 7.0 in # 244, proceed to # 251, set the AF mode flag (AF.F in Table 5-1) to "1", and then in # 250. F
Also set the A mode flag (FA.F in Table 5-1) to "1" and MANUA
Set the flag state that it is in the L mode, # 16 in FIG.
Go back. F for open F value AFAV0 for AF is less than 7.0
Regarding the value, it is a lens that can detect focus # 245
Go to.

#245ではこれまでAFモードであったかどうかのチェッ
クをする。AFモードフラグが、“0"であればこれまでAF
モードであったということで#246へ進み、“1"であれ
ばAFモードでなかったということでFAモードかMANUALモ
ードかをチェックをする。#246はAF用カプラー軸があ
るかいなかをチェックするステップで、AFC信号が1"な
ら軸があるのでこのままAFモードで進み、“0"であれば
軸がないので自動焦点調節できないということで#247
に進み、AFモードフラグに“1"をたてる。AF用カプラー
軸とはカメラボディ内のモータ(MO1)からレンズのフ
ォーカシング機構に動力を伝達するための軸のことであ
る。
In # 245, it is checked whether it was in AF mode so far. If the AF mode flag is "0"
If it is "1", it means that it was not in AF mode and it is checked whether it is FA mode or MANUAL mode. # 246 is a step to check if 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, so automatic focus adjustment cannot be done. # 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信号を“Hi
gh"にする。この信号は、自動焦点調節動作が終わって
ピント合ってレリーズ可の状態にあるという情報を制御
マイコン(MC2)へ知らすためのものである。
In # 19, if the state before release is low contrast when looking at the previous state for display restoration, the low contrast display is restored in # 20. The low contrast display is a display in which both ends (LEDL) (LEDR) of the three LEDs (LEDL) (LEDM) (LEDR) for focus adjustment state display are blinked by repeatedly turning on and off at 2 Hz. If the contrast is not low, the focus adjustment state or the direction display is restored in # 21. The contents displayed before the release are saved in the display register, so the previous display is restored when the port is set to output mode. In # 22, by the AF mode flag (AF.F)
Check if it is in AF mode, FA not in AF mode
If there is a 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, # 23 is used to check if the single shooting mode is continuous shooting mode based on the DR signal. If DR = 0, it is single shooting mode, and in # 25, the AFE signal of the terminal (P12) is set to “Hi”.
gh ". This signal is for notifying the control microcomputer (MC2) of the information 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 one 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へ進む。#24では
補助光モードフラグをクリアして#39からの「CDINTA」
へ進み次の焦点検出に入る。すなわち、補助光AFモード
も連写モードを可能とするわけで、この場合、始めから
補助光モードへ入らずに、いったん通常モードにもど
し、補助光モードの条件がそろえば改めて補助光モード
へ入るようにしている。被写体が明るくなって補助光モ
ードへ入る必要がなくなっているかも知れないからであ
る。
On the other hand, in the continuous shooting mode, the process proceeds from # 23 to # 24. In # 24, clear the auxiliary light mode flag and start "CDINTA" from # 39.
Proceed to and enter the next focus detection. In other words, the auxiliary light AF mode also enables continuous shooting mode. In this case, once the normal light mode is restored without entering the auxiliary light mode from the beginning, the auxiliary light mode is entered again when the conditions for the auxiliary light mode are met. I am trying. This is because it may be unnecessary for the subject to enter the auxiliary light mode when the subject becomes bright.

第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, when it comes from 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か、#53で設定した40msか、さらにこの
先で設定する#61の50msか、#62の150msが経ったかを
見て、経っていなければ#56へ戻り、ループを繰り返す
最大積分時間が経てば#58へ進む。ここで1−cut shot
フラグ(1−cut shotF)が“1"でなければ#59へ進み
このフラグに“1"をたてる。#63へ進む時は1−cut sh
otフラグが“1"の時であるので、この#59を通ったあと
か又は#49を通った場合である。#60では200msフラグ
(第5−2表の200msF)が“1"かどうかをチェックし、
“1"でなければ通常最大積分時間が100msと決めてある
ので#48でセットした積分50msの残りの50msを#61でセ
ットして#56へ戻り、NB4信号をチェックする。#60で2
00msフラグが“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 finished the integration according to the brightness of the subject, so the flow proceeds to" CDINT2 "of # 64. If it is "High", it means that the integration is continuing, so proceed to # 57 and check whether the maximum integration time initially set has elapsed. That is, # 48
See if 50ms set in step # 40, 40ms set in # 53, 50ms in # 61 or 150ms in # 62 have passed, and if not, go back to # 56 and repeat the loop Maximum integration If time passes, proceed to # 58. 1-cut shot here
If the flag (1-cut shotF) is not "1", proceed to # 59 and set "1" to this flag. 1-cut sh when going to # 63
Since the ot flag is "1", it is after passing # 59 or # 49. In # 60, check if the 200ms flag (200msF in Table 5-2) is "1",
If it is not "1", the maximum integration time is usually set to 100ms, so the remaining 50ms of the integration 50ms set in # 48 is set in # 61 and the process returns to # 56 to check the NB4 signal. # 60 in 2
When the 00ms 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 of 50ms set in # 48 Set the remaining 150ms and return to # 56 to check the NB4 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. Even if the output is not sufficient here, the integration must be terminated 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"にしてインターフェース回路(IE1)をデ
ータ出力モードに切り換えている。すなわちNB4〜NB0の
信号がデータ転送用のラインとなってインターフェース
回路(IF1)からAFマイコン(MC1)へデータを送るとが
できるようになる。データとしては8ビットデータが送
られるが、NB3〜NB0までの4ビットパラレルで、2回に
分けて送られ、NB4でそのタイミングをとりNB4が“Hig
h"の時に上位の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 has previously turned off the ST4 signal at the terminal (P13) when the auxiliary light LED (48) was on during CCD integration. # 70 is the pin (P20) IOS
The signal is set to "High" and the interface circuit (IE1) 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 and NB4 sends "Hig
The upper 4 bits of data are sent when "h" and the lower 4 bits of data when NB4 is "Low". AF microcomputer (MC1)
Recreates and sends the data sent separately to the upper and lower layers.

そこで、まず、インターフェース回路(IF1)からAFマ
イコン(MC1)に送られてくるのがAGCデータで第6図の
AGCコントローラ(406)内で決められたゲインの数値
(1倍か2倍か4倍か8倍)のいずれかの数値(以下、
AGCデータという)が送られ、これを第10図の#71でAF
マイコン(MC1)へ取り入れる。ところでCCDイメージセ
ンサ(FLM)の積分が終わってから、これらデータの出
てくるタイミングはインターフェース回路(IF1)で決
まっており、積分が終わってただちにAGCデータを取り
入れないといけない。AGCデータは一定時間出力されて
おり、これが終わればすぐCCDイメージセンサ(FLM)の
画素データがやはり一定タイミングで送られてくる。こ
のAGCデータを取り込んだあとのわずかの時間で、#72
にあるように、積分終了時のレンズ駆動パルスカウント
値EVTCNTを読み取ってメモリT2へ保存しておく。積分開
始時の#47に対応するものである。
Therefore, first, the AGC data sent from the interface circuit (IF1) to the AF microcomputer (MC1) is shown in FIG.
Any of the numerical values (1 times, 2 times, 4 times or 8 times) of the gain determined in the AGC controller (406) (hereinafter,
AGC data) is sent, and this is AFed at # 71 in Fig. 10.
Take it into the microcomputer (MC1). By the way, after the integration of the CCD image sensor (FLM) is completed, the timing at which these data come out is determined by the interface circuit (IF1), and the 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, the data for driving the lens etc. is obtained by serial communication with the control microcomputer (MC2). 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 The data changes when the microcomputer operation mode changes, etc.), so to see this repeatedly #
There is a "SIOSET" on the 75. Then, in # 76, the focus detection calculation is performed using the data of the CCD image sensor (FLM) imported in # 73. With respect to this method, the defocus amount DF is obtained by the method already proposed by the present applicant in Japanese Patent Application Laid-Open No. 59-126517.

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

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

さて第11図の#86からの「MAIN1」について次に説明す
るが、ここからレンズの駆動処理等の話に入る。まず#
86は#75で得られたシリアルデータとこれまでのAFマイ
コン(MC1)の動作していたモードと比較して、モード
が変わっていれば#33の「AFSTART」から再び始める。
すなわち前回のシリアル通信#33後でセットされている
AFモード/FAモード/MANUALモードの別や、単写/連写の
モードの別を示すレジスタRGの内容と、焦点検出モード
のフラグ(AFモードフラグ、FAモードフラグ)や、単写
モードのフラグ(DR)とを比較して変わっていれば#33
へ進むということである。そして、この#33のところ
で、自動的にモードレジスタRGに新たなモードが書き込
まれる。#87で、補助光を用いる焦点検出の動作モード
になっているかどうかのチェックをし、補助光を用いる
モード(以下、補助光AFモードという)であれば、補助
光を用いる第14図の焦点検出用フローの#238「LSAVE」
へ入っていく。なおこの補助光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) was operating so far, and if the mode has changed, restarts from "AF START" in # 33.
That is, it is set after the last serial communication # 33.
Contents of register RG indicating AF mode / FA mode / MANUAL mode, single shooting / continuous shooting mode, focus detection mode flags (AF mode flag, FA mode flag), single shooting mode flag Compared with (DR), if it has changed # 33
Is to proceed to. 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 "LSAVE"
Go in. How to enter this auxiliary light AF mode
Since the condition is that the subject has low contrast and low brightness, the flow starts from the low contrast flow starting from “LOWCON” in # 165 of FIG.

#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. This time the low contrast flag that appears in # 88 is determined and set in # 76. If the result of this operation is not low contrast, #
Proceed to 89, check the AGC mode 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 if the contrast of the subject is low, look for a high contrast position,
Detecting the focus while moving the focusing lens is called low contrast scan, but once the contrast appears on the subject, this low contrast scan is performed in a series of sequences 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, if the low contrast scan is started immediately, it is counterproductive to the focus detection.

更に、このスキャン禁止状態にしているのは、この他
に、ローコントラストでスキャンを一度やり終えた場合
があるからである。#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. There are two main cases, which are divided into when the CCD image sensor (FLM) integration time exceeds 50 ms and when it does 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 by the value 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 was set to "1" last time, it means that the low contrast was exited and the process proceeds to # 93. If the low contrast flag was “0” the last time, there is contrast from the beginning and it is passed as # 92 when the focus is detected.
To # 102. In # 93, the focus adjustment status display is turned off. Until now, when the lens drive was in a low contrast state and the lens drive was stopped, a blinking display indicating that focus detection is not possible is displayed, but this is erased because the contrast appears. In # 94, if the 1-cut shot flag is set as described above, the lens must be stopped, so proceed to # 95. If the 1-cut shot flag is not set, the lens is stopped even during low-con scan. Do not stop, # 101
Go to. In # 101, the previous low contrast flag, the per-scan flag (F per scan in Table 5-1) and the in-scan flag (In-scan F in Table 5-1) are cleared. This is after finishing low contrast scan,
Alternatively, it is for resetting the flag indicating the state when the scan is in progress. Of course, the scan prohibition flag is left without being reset.

#95は、1−cut shotモード状態になっている時に来て
いるのであるが、ここで、スキャン中フラグをみてロー
コンスキャン中に来たかどうかをチェックする。スキャ
ン中でなければ#101へ進み、今の演算結果に従ってレ
ンズを駆動する方へ行き、スキャン中であれば#96、#
97で第6表に示した信号パターンに従って、レンズ駆動
用モータ(MO1)への通電を切って、ブレーキをかけ
る。レンズを止めた状態を覚えておくために、#98で駆
動中フラグ(第5−2表の駆動中F)をクリアしてお
く。#99でレンズが完全に停止するまで70ms時間待ちを
し、#100で#101と同様のフラグをクリアして、#39の
「CDINTA」へもどり、次の焦点検出に入る。#99の時間
待ちは、前述のようにセンサの積分時間が長い時にレン
ズが動いていると、像が流れたり、さらに問題なのはた
とえ駆動中の積分データ位置に移動分の補正を行なって
も、負の加速度がかかっている時だと正しい補正が難し
いので、完全にレンズが止まりきってから次のセンサ積
分を始めれば、焦点検出演算の合焦ずれを防ぐことがで
きるからである。
# 95 comes when it is in the 1-cut shot mode state. 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, and the problem is that even if the movement data is corrected to the integration data position during driving, 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 stop position is the closest end, # 10
7 go through. This variation in focus detection data may result in the in-focus position being further toward the infinity end even if the lens is at the infinity end position, and if a narrow focusing zone is set, Even at the infinity end, there is the possibility of trying to move the lens further to the infinity side. Further, it is possible that the position considered as the end at infinity is actually stopped by the lens 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) Display). If the lens is forcibly stopped by hand while the lens is trying to move to the infinity side during automatic focus adjustment, the LED will blink if the lens stop position is not within the focus zone. That is. The flow of this display is from # 120 to # 123.

一方、最近接端にレンズがあって、さらに被写体が近接
側にあると検出している場合や、自動焦点調節中レンズ
が近接側へ動こうとしているのに、強制的に途中でレン
ズが止められたりした場合、その位置が合焦ゾーン内に
入っていなければ、最近接側方向の表示をすることにし
ている。この表示のフローは、第12図の#147から#152
に当たる。レンズが無限遠端に止まっていなければ、合
焦ゾーンは#102でセットした数値のまま#107に移る。
On the other hand, if there is a lens at the closest end and it is detected that the subject is on the close side, or 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表にあるように、制御マイコン(MC
2)からシリアル通信で送られてくるのである。これを
#108で、これまで求まっているデフォーカス量DFに対
して補正する。ところが、補正データΔIRは、ある波長
の補助光例えば800nmの光源を使ったものを想定しデー
タをそろえている。ところが実際に使用する補助光が例
えば700nmの光源であれば、補正しすぎとなる。よって8
00nmの補正値を700nmの補正値に換算するために、補正
値を1/2倍する。ところが、これは周囲の明るさがまっ
暗な場合の条件で、今使用する合焦検出装置の使用条件
を考えれば、周囲がうす暗い程度の明るさの場合が多
い。そこで、補正値を1/2倍した値で補正すると依然と
して補正しすぎとなる。そこで、本実施例の装置に最適
な倍率は1/4倍となる。よって、#300ではΔIRを1/4倍
してΔIRに入れなおしこの値を使って補正するわけであ
る。なお、補正式は、次のように表わすことができる。
In # 107, it is checked based on the fill light mode flag whether or not the fill light AF mode is set, and if it is the fill light AF mode, chromatic aberration correction is performed. Since the infrared light is used as the illumination light in the auxiliary light AF mode, the best focus position is displaced due to the difference in the 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 according to this taking lens is based on the control microcomputer (MC
It is sent from 2) by serial communication. This is corrected in # 108 with respect to the defocus amount DF that has been obtained so far. However, the correction data ΔIR is prepared assuming that auxiliary light of a certain wavelength, for example, a light source of 800 nm is used. However, if the auxiliary light that is actually used is, for example, a 700 nm light source, it will be overcorrected. Therefore 8
In order to convert the correction value of 00 nm to the correction value of 700 nm, the correction value is halved. However, this is a condition when the surrounding brightness is dark, and considering the usage conditions of the focus detection device used now, the surrounding brightness is often slightly dark. Therefore, if the correction value is halved, the correction will still be overcorrected. Therefore, the optimum magnification for the apparatus of this embodiment is 1/4. Therefore, in # 300, ΔIR is multiplied by 1/4 and put in ΔIR again, and this value is used for correction. The correction formula can be expressed as follows.

DF=DF0−ΔIR DF0は補助光モードのときのデフォーカス量、DF1は補正
後のデフォーカス量である。
DF = DF 0 −ΔIR DF 0 is the defocus amount in the auxiliary light mode, and DF 1 is the corrected defocus amount.

そして#109で、デフォーカス量をレンズ駆動のための
パルスカウント値に変換する。この変換のための係数
も、各レンズによって固有であるので、ΔIR同様シリア
ル通信で送られてくるデータKROMを使用する。求まって
いるデフォーカス量DFも変換係数KROMを乗算してレンズ
駆動のためのパルスカウント値DRCNTを求める。同様に
して、合焦ゾーンFZWもデータKROMを乗じてパルスカウ
ント値FZCに変換しておく。これらパルスカウント値へ
の変換については特開昭59−140408号公報で詳細に述べ
られているので、ここでは省略する。
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. The conversion into these pulse count values is described in detail in Japanese Patent Laid-Open No. 59-140408, and therefore omitted here.

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

#113ではレンズが合焦ゾーン内にあるかどうかの判断
をしている。ここでは、レンズ駆動用パルスカウント値
DRCNTと合焦ゾーンパルスカウント値FZCとで比較してい
るが、デフォーカス量DFと合焦ゾーン量FZWとを比較し
てもよい。この結果、合焦ゾーン内にレンズがあれば、
#115で合焦表示をする。これは、端子(P31)のLM信号
を“Low"におとし、LL,LR信号を“High"のままにして、
中央のLED(LEDM)のみを点灯させることによってなさ
れる。合焦ゾーン外であれば、#114へ進み、ここでレ
ンズを駆動すべき方向を示す。例えば、レンズを繰り出
す方向であれば、端子(P32)のLL信号を“Low"にして
左側のLED(LEDL)を点灯させ、レンズを繰り込む方向
であれば端子(P30)のLR信号を“Low"にして右側のLED
(LEDR)を点灯させる。そして次の焦点検出の為に第9
図の#40の「CDINTA」へループする。
In # 113, it is judged whether or not the lens is in the focusing zone. Here, the lens drive pulse count value
Although DRCNT is compared with the focus zone pulse count value FZC, the defocus amount DF and the focus zone amount FZW may be compared. As a result, if there is a lens in the focusing zone,
The focus is displayed with # 115. This sets the LM signal of the terminal (P31) to "Low" and the LL and LR signals to "High",
This is done by 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, when the lens is extended, set the LL signal of the terminal (P32) to "Low" to turn on the left LED (LEDL), and when the lens is extended, change the LR signal of the terminal (P30) to "L". "Low" and right side LED
Turn on (LEDR). And for the next focus detection,
Loop to # 40 "CDINTA" in the figure.

#112でAFモードであった場合には、#116でAFモード時
の合焦チェックをする。レンズ駆動パルスカウント値DR
CNTが合焦ゾーンパルスカウント値FZCより小さければ合
焦ということで、#117からの「INFZ」へ分岐する。#1
17では、FAモード時の#115と同様に合焦表示をし、#1
18で端子(P12)からのAFE信号を“High"にする。制御
マイコン(MC2)は、この信号を見ており、“High"にな
れば自動焦点調節が完了したと見る。そして、AF優先モ
ードであれば、AFE信号が“High"になってはじめてレリ
ーズ動作を可能とすることになる。
If it is in AF mode in # 112, focus check in AF mode is performed in # 116. Lens drive pulse count value DR
If the CNT is smaller than the focus zone pulse count value FZC, it means that the focus is achieved, and the process branches to “INFZ” from # 117. # 1
In 17, the focus display is displayed as in # 115 in FA mode, and
At 18, set the AFE signal from pin (P12) to "High". The control microcomputer (MC2) is watching this signal, and if it becomes "High", it is considered that the automatic focus adjustment has been completed. Then, in the AF priority mode, the release operation becomes possible only after the AFE signal becomes "High".

次に#403ではSCFフラグをチェックする。SCFフラグが
0であればコンティニュアスAFモードであるので、合焦
後も継続してAF動作させる。そこで#403から#407へ進
む。#407では補助光モードはどうかの判別をして、補
助光モードであれば、続けて補助光の発光を行なうよう
に#233へ進む。補助光モードでなければ、発光させる
必要がないので#39へもどり、すぐ次の合焦検出に入
る。SCFフラグが0であればワンショットAFモードであ
るので合焦後、AFロックさせるので#40へは進まない。
このAFロックというのは、一度被写体にピントが合えば
このあと、たとえピント位置が変わっても合焦表示をし
たままであり、又レンズも再度駆動されることはない。
この処理として#119でAFストップ命令であるINT1の割
り込みか、INT2のレリーズ割り込みを待つというループ
をまわる。ところが、ここで一つだけ例外を設けてあ
る。その処理が#404から#406である。これは連写モー
ドの場合、特にAF優先モードの連写の場合に問題となる
ことで、合焦後、レリーズするとカメラは自動的にフィ
ルムの巻き上げ動作に入る。
Next, in # 403, the SCF flag is checked. If the SCF flag is 0, it means the continuous AF mode, so the AF operation is continued even after focusing. Then proceed from # 403 to # 407. In # 407, it is determined whether or not the fill light mode is set, and if it is the fill light mode, the process proceeds to # 233 so that the fill light is continuously emitted. If it is not the auxiliary light mode, it is not necessary to emit light, so the process returns to step # 39 and the next focus detection is immediately started. If the SCF flag is 0, the one-shot AF mode is in effect, so AF lock is performed after focusing, so # 40 cannot proceed.
This AF lock means that once the subject is in focus, the focus display will stay on even if the focus position changes, and the lens will not be driven again.
As this processing, the loop of waiting for the interrupt of INT1 which is the AF stop instruction or the release interrupt of INT2 is executed in # 119. However, there is one exception here. The processing is # 404 to # 406. This is a problem in the continuous shooting mode, especially in the AF priority mode continuous shooting. When the camera is released after focusing, the camera automatically starts film winding operation.

一方AFは、この巻き上げが完了してしまうまでに終わっ
てしまうことが往々にしてある。被写体が合焦ゾーン内
にあれば、すぐ又合焦表示をして、AFロックになる。被
写体とカメラが相対的に停止している場合はよいが動い
ている場合、AFロックが早いと巻き上げが完了して、レ
リーズ可となった場合、被写体は合焦ゾーンをはずれて
しまいピンぼけの写真となってしまう。そこで連写モー
ドに限って、レリーズ後の合焦後はコンティニュアスAF
モード扱いとして、次のピント検出へループさせている
のである。ただし、これは通常モードの場合で補助光モ
ードの場合は原則に従う。この補助光モードの判別が#
404で補助光モード時は#119で割込待ちとなる。#405
ではレリーズ後か前かの判別をし、レリーズ前であれば
#119で原則に従う。そして、#406で連写か、単写かの
判別をして単写であれば、信号DRは0であるので#119
へ進んで原則に従う。DRが1である時に連写であるので
この時に#40の「CDINTA」へループする。
On the other hand, AF often ends before the winding is completed. If the subject is in the focus zone, the focus is displayed again and the AF lock is activated. If the subject and the camera are relatively stationary, but they are moving, if the AF lock is fast and the winding is completed, and the release is possible, the subject will move out of the focus zone and become out of focus. Will be. Therefore, only in continuous shooting mode, continuous AF after focusing after release
As a mode treatment, it is looped to the next focus detection. However, this is the case in the normal mode and in the case of the fill light mode, the principle is followed. This auxiliary light mode discrimination is #
When it is 404 in fill light mode, it waits for an interrupt at # 119. # 405
Then, determine whether it is after the release or not, and if it is before the release, follow the principle in # 119. Then, in # 406, whether the continuous shooting or the single shooting is determined, and if the single shooting is performed, the signal DR is 0.
Go to and follow the principles. Since it is continuous shooting when DR is 1, loop to # 40 "CDINTA" at this time.

#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)
From serial communication. However, when the previous defocus direction that appears here is the first loop after closing the switch (S1), remember that this is also the last lens drive direction in the previous sequence. ing. That is, the memory is remembered even in the stop mode of the microcomputers (MC1) (MC2) before the switch (S1) is closed. Further, this backlash correction is not so right after the calculation result is reversed, but this correction is limited only when the lens is stopped. If the result is that the direction is reversed while driving the lens, just stop the lens and do not immediately perform the reverse driving of the lens. Also, the previous direction flag is not reset. Then, the direction obtained by the next focus detection calculation after stopping the lens (this is the current direction)
However, if it is reversed from the direction that was obtained once before the lens was stopped, that is, the direction that was driving the lens (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, 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」は、レンズ駆動中及び停止中
の両方から合流してくるフローで、駆動パルスカウント
値DRCNTをセットして、レンズを動かす部分である。レ
ンズの駆動スピードは、本実施例では二段式になってお
り、レンズが合焦位置から遠く離れている時のハイスピ
ードと、レンズ合焦位置近傍にあるロースピードとを切
り換えることにしている。そして、ロースピードでレン
ズをコントロールする部分を、ニアゾーンと呼ぶとす
る。#141では、レンズ駆動パルスカウント値DRCNTが、
このニアゾーンの領域のパルスカウント値NZC以内であ
るかどうかをチェックして、レンズがニアゾーンの領域
内に入っていれば、#143へ進み、ニアゾーンフラグ
(第5−2表のニアゾーンF)をセットする。#144で
端子(PO3)からのMC信号を“Low"とし、第6表のよう
にレンズ駆動用モータ(MO1)をロースピードで駆動さ
せるようにする。一方、ニアゾーン外である時には、#
142に進んでMC信号を“High"とし、レンズ駆動用モータ
(MO1)をハイスピードで駆動させるようにする。
"TINNZ" starting from # 141 is a flow that merges from both during lens driving and during lens stopping, and is a part where the driving pulse count value DRCNT is set and the lens is moved. The driving speed of the lens is a two-stage type in this embodiment, and it is set to switch between high speed when the lens is far away from the focus position and low speed near the focus position of the lens. . The part that controls the lens at low speed is called the near zone. In # 141, the lens drive pulse count value DRCNT is
Check whether the pulse count value is NZC or less within this near zone area. If the lens is within the near zone area, proceed to # 143 and set the near zone flag (near zone F in Table 5-2). set. At # 144, the MC signal from the terminal (PO3) is set to "Low" to drive the lens drive motor (MO1) at low speed as shown in Table 6. On the other hand, when outside the near zone, #
Proceed to 142 to set the MC signal to "High" to drive the lens drive motor (MO1) at high speed.

#145から#152まで前述にも説明の一部があったがレン
ズが終端位置に止まっている時の処理についてのフロー
である。ところでレンズが終端で止まっているというこ
とを検知するのは、後述の第14図の「CLOCK」からのサ
ブルーチンで述べるように、レンズ終端位置にスイッチ
があるわけではなくて、割に込みポートINT3から入力さ
れるモータ駆動量モニタ用エンコーダ(ENC)からのパ
ルスが一定期間入力されなくなったらレンズが停止して
いるという判断による。モータ(MO1)を駆動している
のにレンズが止まっているということはレンズ終端で当
たっているということであると判断して、「CLOCK」の
サブルーチンの中でもモータ駆動を止めて、終端フラグ
をたてるのである。この方法だとレンズが実際に終端に
来ていなくとも途中で強制的に止められたり、又は、何
かがレンズにはさまったりとかなんらかの要因で、一瞬
(数100msのオーダー)レンズが止まったりしても終端
と判断してしまう。
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 described later, but instead of the interrupt port INT3. Based on the judgment that the lens is stopped when the pulse from the motor drive amount monitor encoder (ENC) input from is not input for a certain period. Even 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, so the motor drive is stopped and the end flag is set in the "CLOCK" subroutine. To build. 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 you see that the lens stopped at the end, try moving the lens again, and only after it is judged as 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 # 145
Then, look at the end flag created in the "CLOCK" subroutine, and when it is "1", look at this end 2nd flag in # 146. In the initial state, this flag is "0", so proceed to # 150, set the 2nd end flag,
The lens drive flow from 153 moves the lens. Then, when it comes to # 146 in the next loop, it is judged that the vehicle has stopped at the end for the first time, and the process proceeds to # 147.

#147では、今回のデフォーカス方向をチェックし、そ
して、#148と#149で終端位置フラグをみて今レンズが
どちら側の終端に当たっているかをチェックする。すな
わち今回のデフォーカス状態が前ピン(今回方向フラグ
=1)であり、レンズ位置が無限遠端であるとすると、
レンズは、今の無限遠端よりさらに無限遠側へ動かされ
なければならないことになる。この場合は、#148から
#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)であるとすると、レンズはさらに近側へ動
かされないといけないことになる。この場合は、#149
から#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 has to be moved closer. In this case, # 149
To # 152, set the LL signal from the terminal (P32) to "Low" and turn on the direction display instructing to move the lens to the closest side. Then leave the lens stopped and #
Go to the next loop from 40 and repeat focus detection. And if the position of the subject changes and the defocus direction reverses,
During the loop, the process proceeds from # 147 to # 148, exits to # 151, clears the end flag, and enters the lens driving 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 lens than the closest end. 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 is reached, the termination flag is cleared in the "LOWCON" flow of # 165 in Fig. 13, so the lens exits from the closest edge and enters the lens drive state again. Entering, it means that automatic focus adjustment is possible. Next, if the lens is not at the end or if it is at the end but is about to move in the opposite direction, the lens drive flow from # 153 in FIG. 12 is entered. In # 153, all focus adjustment status display LEDs are turned off. This is based on the basic principle that the defocus direction is not displayed while the lens is being driven. When the lens is stopped and the lens is in focus, the center LED (LEDM) is lit to show the focus, 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) enters 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"あれば(前ピン)、端子(P0
0)からの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), the terminal (P0
Set the MR signal from 0) to "Low" and move the lens in the retraction direction. In # 156, check the driving flag to see if the lens has been 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, check whether the lens is driven in the near zone by checking the near zone flag at # 159, and if it is in the near zone, proceed to "WSTOP" from # 160. 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 to interrupt the "INT3S" interrupt of # 252 in Fig. 16 while rotating the "WSTOP" loop to control the lens.

このニアゾーン内でレンズを駆動させながら焦点検出を
しないのは、以下の理由による。まず、ニアゾーンでの
レンズ駆動は、一定速度ではなく、加速度を持ってい
る。すなわち、レンズ駆動開始時には正の加速度を持
ち、レンズ停止位置前では負の加速度を持つ。ハイスピ
ード駆動時からニアゾーン内に入って、ロースピードに
切り変わった時には、負の加速度をもつ。ここで、元
来、ニアゾーンカウント量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へ分岐し、ここで10msの時間待ちをする。レンズ停止
状態から加速しているので、定速となるまで100ms時間
待ちをしているのである。そして#163で終端チェック
をする。終端チェックの周期については、短かすぎても
長すぎてもよくない。レンズの動きに応じたエンコーダ
のパルスの間隔よりも短すぎると止まっていると判断し
てしまうし、逆に長すぎるとモータ、ギヤ、クラッチ等
の駆動系の耐久性や、終端での反転駆動の応答性などの
問題があるので、数10msから200ms程度の間隔におさえ
ている。次に#164では、1−cut shotフラグをみて1
−cut shotモードになっているかどうかをチェックし、
1−cut shotモードであれば、レンズを駆動させながら
焦点検出をしないというモードであるので#160の「WST
OP」へ進んで、レンズが停止するのを待ち、止まってか
ら合焦確認のための焦点検出を行う。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 10ms 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 pulse interval of the encoder 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 of 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, see the 1-cut shot flag and set 1
-Check if it is in cut shot mode,
In the 1-cut shot mode, the focus is not detected while driving the lens, so the # 160 “WST
Go to "OP", wait for the lens to stop, and after that stop focus detection for confirming focus. If it is not in 1-cut shot mode, loop to # 39 “CDINTA” in FIG. The above is the main routine of automatic focus adjustment.

次に第13図からの分岐ルーチン、サブルーチンについて
の説明をする。まず、第13図の#165から始まる「LOWCO
N」フローは第11図のメインルーチンの#88から、焦点
検出演算の結果がローコントラストであった時に分岐し
てくるフローである。まず#165で終端チェックをし
て、#166でAFモードフラグをみてAFモードか否かのチ
ェックをする。AFモードであれば#167へ進み前回ロー
コンフラグをセットし、#168でローコントラスト時の
表示として端子(P32)と(P30)のLL信号とLR信号を同
時に“Low"と“High"を繰り返してLED(LEDL)(LEDR)
の点滅表示をする。そしてすぐ次の焦点検出へループし
ていく。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 in AF mode, go to # 167 and set the low contrast flag last time, and at # 168, display LL and LR signals of the terminals (P32) and (P30) at the same time by repeating "Low" and "High" as low contrast display. LED (LEDL) (LEDR)
Blinks. Then it immediately loops to the next focus detection. If it is not the AF mode, the process proceeds from # 166 to # 169 to check the driving flag to check whether the motor is driving. If it is driving, there may be a case where low contrast scanning is in progress and a case where low contrast has been obtained during automatic focus adjustment. If the focus is being adjusted, the result of low contrast is ignored until the lens is stopped, as described above, so the process immediately proceeds to # 40 "CDINT" to start the next focus detection. # 170 during low contrast scan
If you come to # 171, get out of the low contrast state at # 171 and adjust the event counter value T3 at the end of calculation to the maximum count value 65,000 in order to correct the movement amount during renormalization integration when starting automatic focus adjustment. Set to. (Details will be described later) Similarly, motor drive event count value
EVTCNT, end detection count value MECNT also has maximum count value 6
Set it to 5,000. And it loops to "CDINT" of # 40.

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

#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 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 coming. Enter auxiliary light AF mode. First # 17
3 for low light flag, # 174 for fill light OK signal AFFL, # 17
When you see the charge completion signal RDY at 5, if all the conditions are "1", jump to "LLLED" from # 225 and enter auxiliary light AF mode. If this condition is not met, the low light state is checked based on the low light flag in # 176, and if it is low light, the maximum integration time of the sensor is doubled to 200 ms in # 177. AGC is 8 times with integration time of 100ms, low contrast,
This is because, in the case of low light, if the product time for one step is increased, it may become possible to detect the focus instead of the low contrast. 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 flow for starting the low contrast scan. First, in steps # 181 to # 183, the conditions for entering the auxiliary light AF mode are determined in the same manner as the flow from # 173 to # 175. Then, if the conditions are met, it jumps from # 183 to #LLLED of # 225 and enters auxiliary light AF mode. If 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 00ms mode, or if it is low contrast in # 181 but not low light, proceed to # 185 and clear the 200ms mode flag.

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

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

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

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

次は、第14図の終端チェックサブルーチン「CKLOCK」の
説明に移る。#196では駆動中フラグをみてレンズが駆
動中かどうかチェックし、駆動中でなければ終端のチェ
ックをしないで、リターンしていく。レンズ駆動中は#
197へ進み、終端のチェックをする。駆動時にレンズ駆
動パルスカウント値DRCNTと同じ値をセットしたおいた
終端チェック用レジスタMECNTと、レンズ駆動用カウン
ト値DRCNTとしてセットしたイベントカウンタのカウン
ト値EVTCNTと比較する。レンズが動いていれば、EVTCNT
の値はエンコーダ(ENC)からのパルスが入ってくるた
びに1ずつ減算されており、MECNTと異なった値になっ
ている。レンズが終端に当たって動いていなければ、エ
ンコーダ(ENC)からパルスは入ってこないので、EVTCN
Tの値は変化せず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, EVTCNT
The value of is decremented by 1 each time a pulse from the encoder (ENC) comes in, and is a value different from MECNT. If the lens does not move at the end, no pulse comes from the encoder (ENC), so EVTCN
The value of T does not change and remains the same 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"であれば
(後ピンでありレンズを繰り出していた)、#205最近
接端位置で止まっているという意味で、終端位置フラグ
に“1"をたてておく。前回方向フラグが“1"であれば
(前ピンであり、レンズを繰り込んでいた)、#206で
無限遠端位置で止まっているという意味で、終端位置フ
ラグをクリアしておく。#207ではローコンスキャン中
に終端に当たったかどうかをチェックして、スキャン中
であったならば#208へ進み、終端でレンズが止まって
いるという終端フラグをセットしておく。#209では、
さらに補助光モードフラグに基づいて補助光AFモード中
であったかどうかをチェックして、補助光AFモード中で
あったならば、終端に当たればたとえ一度目の発光によ
る焦点検出であろうとも、次の焦点検出にループしない
でLEDの点滅表示をして、焦点検出をあきらめる。補助
光AFモードについては、#225からの「LLLED」フローの
中で詳しく述べる。#209で補助光AFモードでなければ
レンズを終端位置に止めたまま次の焦点検出ループ「CD
INTA」へ行く。
In the termination processing flow "ROTEM" from # 199, the subroutine is branched first, so the stack pointer of the microcomputer is reset. Disable interrupts other than INT1 and INT2 with # 200. Since it hits the end, the power is cut off to the motor (MO1) in # 201 and # 202, and the brake is applied. In # 203, the motor (MO1) is stopped, so the driving flag is cleared. If the previous direction flag is checked at # 204 and the previous direction flag is "0" (it is the rear pin and the lens is extended), # 205 means that it stopped at the closest end position, and the end position flag Set "1" to. 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 in scanning, the process proceeds to # 208, and the end flag that the lens is stopped at the end is set. In # 209,
Furthermore, based on the fill light mode flag, it is checked whether or not it is in fill light AF mode.If it is in fill light AF mode, if it hits the end, even if it is focus detection by the first flash, the next Instead of looping to the focus detection of, the LED blinks and the focus detection is given up. The auxiliary light AF mode will be described in detail in the "LLLED" flow from # 225. If it is not in the auxiliary light AF mode with # 209, the next focus detection loop "CD
Go to INTA ”.

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

一方、すでに一度終端に当たっていて、二度目の終端だ
った場合は、#210から#211へ進む。今度は、ローコン
スキャン終了であるからレンズは動かさない。#211で
スキャンで終端に当たったというスキャン当りフラグを
クリアし、#212ではスキャン中フラグをクリアし、#2
13では一度スキャンすれば後はもうしないために、スキ
ャン禁止フラグをセットしていく。#214ではローコン
スキャンをしたけれども、コントラストが見つからず、
焦点検出不能だったということで、LEDの点滅表示をす
る。#215では補助光AFモード中かどうかをチェック
し、補助光AFモード中であれば、#216へ行って、次の
焦点検出に行かずに割り込み待ちとして、このまま終わ
ってしまう。補助光AFモードでなければスキャン終了
後、終端位置で焦点検出を繰り返すため、#39の「CDIN
TA」へ戻る。以上が終端検知ルーチンである。
On the other hand, if it has already hit the end and it was the second end, proceed from # 210 to # 211. This time, the lens does not move because the low contrast scan is completed. # 211 clears the per-scan flag that hits the end of the scan, # 212 clears the in-scanning flag, # 2
In the case of 13, the scan prohibit flag is set because once scanning is done, the rest is not done. In # 214, I did a low contrast scan, but I could not find the contrast,
Since the focus could not be detected, the LED blinks. In # 215, it is checked whether or not the auxiliary light AF mode is in effect. If it is in the auxiliary light AF mode, 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)の応答性を上げるためである。そして、
最大積分時間が20msのモードで、補助光照明のもとでCC
Dの積分をする。そして、このデータにより焦点検出演
算をし、レンズを駆動させる。この間、焦点検出はしな
い。そしてレンズ停止後、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
CC under auxiliary light illumination in mode with maximum integration time of 20 ms
Integrate D. Then, the focus detection calculation is performed based on this data, and the lens is driven. During this time, focus detection is not performed. And after stopping the lens, the second LED for auxiliary light (48)
After a maximum of 450 ms as in the first time, if the focus detection result is not within the focus zone, the lens is driven again to perform focus adjustment. This is the basic movement.

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

第9図の#39から補助光発光状態でフローが進み、第10
図の#69で補助光を消す。以下同様に焦点検出し、第13
図の#87に来て、第14図#238の補助光AFモード用フロ
ー「LSAVE」へ分岐する。これが#238から始まるフロー
である。
The flow proceeds from # 39 in FIG.
Turn off the auxiliary light at # 69 in the figure. In the same way, focus detection is performed
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へ進む。ここで、焦点
検出演算結果が、ローコントラストであったかどうかを
チェックし、ローコントラストであれば、#233へ行
き、2度目の補助光の発光に入る。1度の補助光発光で
ローコントラストになったからといってすぐあきらめ
ず、もう一度トライするわけである。ローコントラスト
限界付近の被写体の場合、1度目の補助光発光がCCDセ
ンサーに対して予備発光の効果を与え、感度が上がり、
2度目の発光時にAF動作できる可能性があるからであ
る。#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 is low contrast, and if it is low contrast, the process proceeds to # 233, and the second auxiliary light emission starts. I don't give up immediately because I got low contrast with one auxiliary light emission, so I try again. For subjects near the low contrast limit, the first auxiliary light emission gives the CCD sensor the effect of preliminary light emission, increasing the sensitivity,
This is because the AF operation may be possible during the second flash. If # 239 is not low contrast, then # 9 in Figure 11
Go to “NLOC1” in 1 and enter the flow for focus adjustment drive. 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回目の時と
同様に、#229で200ms待って#230を通って、#39の「C
DINTA」へ行く。2回目の補助光AFモードの時も同様の
フローを通り、第9図の#39から第10図の#44、#68を
通って、第11図の#87で補助光AFモードである場合に
は、第14図の#238の「LSAVE」へ分岐する。今度は2回
目の補助光AFモードであるので、#240へ進む。
# 235 sets the auxiliary light 1st flag, and the second auxiliary light
Show that it is in AF mode. And like the first time, wait 200ms at # 229, go through # 230, and go to # 39 “C
Go to "Dinta". In the case of the auxiliary light AF mode in the second auxiliary light AF mode, the same flow is followed, through # 39 in FIG. 9 to # 44 and # 68 in FIG. 10, and in # 87 in FIG. To branch to “LSAVE” in # 238 of FIG. This time is the second auxiliary light AF mode, so proceed to # 240.

#240でローコントラストであったかどうかをチェック
して、ローコントラストでれば#211へ進み、やはり、
レンズを繰り込まずに停止させたままで、両側のLED(L
EDL)(LEDR)の点滅表示をして割り込み待ちとなる。
Check whether it was low contrast in # 240, and if it is low contrast, proceed to # 211 and again,
Without stopping the lens, keep the LEDs on both sides (L
EDL) (LEDR) blinks and 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 it is determined that there is a high possibility that the subject will start in the vicinity of the focus of the subject, and the possibility of bringing the lens in the focus zone will increase.

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

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

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

すなわちこの「WSTOP」のフローをループしながら「INT
3S」の割り込みが入り、#252から#254,#258のフロー
を繰り返し、カウント値EVTCNTが“0"になった時点で、
このループを抜け出て、#259へ進む。ここでニアゾー
ン内にあれば#160の「WSTOP」へ進み、メインフローへ
リターンしないのは、前述したようにレンズが定速で動
いていない時には焦点検出しないとしているためで、ニ
アゾーン領域に入ればレンズは減速していくので定速で
ないためこの領域に入ればレンズを動かしながら焦点検
出はしない。
In other words, 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 you are in the near zone, the process proceeds to # 160 “WSTOP” and does not return to the main flow because, as mentioned above, focus detection is not performed when the lens is not moving at a constant speed. 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.
To # 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,
The routine for driving the lens is entered again from # 120 in FIG. 11, and the same operation is repeated. This is the flow when confirming the focus. Next, in the continuous shooting mode, since the DR signal is "1", the process proceeds from # 265 to # 266 in FIG. Here, when the lens is stopped (when the driving flag is "0"), the defocus amount (FE
Check RM). If this value is 500 μm or more, proceed to # 267. That is, in the continuous shooting mode, if the defocus amount before driving the lens is 500 μm or more, the focus is confirmed. # 266, FERM is 500μm
If less, go to # 268 and check if the reversal flag is on.If the reversal flag is on, it means that the backlash has been corrected. Go towards. If the reversal flag is not set at # 268, the flow goes to the focus display flow of "INFZ" at # 117. This is a method for increasing the lens drive speed to improve the followability to a moving subject in the continuous shooting mode. When automatic focus adjustment 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までのフローについて説明
する。これはいわゆる「繰り込み積分」に関するフロー
で詳細については、本出願人が特願昭60−7179に述べて
あり、又本出願の目的ではないのでここでは省略する。
この「繰り込み積分」は第10図の#66から始まる。
Finally, the flow from # 40 to # 53 in FIG. 9 will be described. This is a flow related to so-called "renormalization integration", and the details of this are described in Japanese Patent Application No. 60-7179 by the present applicant, and are not the object of the present application, so that they are omitted here.
This "renormalization integration" starts from # 66 in FIG.

#65で駆動中フラグをチェックしてレンズが駆動中とい
う判断をした時には、「繰り込み積分」状態になろうが
なるまいが#66で次の積分を開始し、#67で繰り込み積
分フラグ(第5−1表の繰り込み積分F)をたててい
く。そして、「繰り込み積分」が必要な時の焦点検出ル
ープのトップを第9図の#40の「CDINT」としている。
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.

今、被写体が暗い場合を考える。#40で積分モードにし
て積分終了信号NB4を検知できるようにしておく。そし
て#42で繰り込み積分フラグがたっているかどうかをチ
ェックして、たっていなければ繰り込み積分モードにな
っていないので#44へ進む。繰り込み積分フラグがたっ
ていれば#43へ進み、積分終了信号NB4をチェックし
て、すでに積分が終わっているかどうかをチェックす
る。積分が終わっていなければ#49の「TINTC」へ進
む、すなわち「TINTC」からが繰り込み状態時のフロー
で、#44からの「CDINTS」が非繰り込み用である。第10
図の#49では1−cut shotフラグを“1"にする。#50で
AFE信号を“Low"にし、そして前述したように#51で移
動分補正に備えてT1′の補正をする。#53で積分の残り
時間の最大値40msをセットして、#55へ進む。以下はメ
インルーチンを流れていく、「繰り込み積分」はこのよ
うにして焦点検出時間を短縮する効果を出す。以上でAF
マイコン(MC1)のフローの説明を終わる。
Now consider the case where the subject is dark. The integration mode is set in # 40 so that the integration end signal NB4 can be detected. Then, in # 42, it is checked whether or not the renormalization integration flag is set. If not, the renormalization integration mode is not set, so the flow proceeds to # 44. If the renormalization integration flag is set, the process proceeds to step # 43, where the integration end signal NB4 is checked to see if the integration has already been completed. If the integration has not ended, the process proceeds to # 49 “TINTC”, that is, the flow from “TINTC” is the renormalization state, and “CDINTS” from # 44 is for non-renormalization. 10th
In # 49 of the figure, the 1-cut shot flag is set to "1". # 50 in
The AFE signal is set to "Low", and as described above, T1 'is corrected in preparation for movement correction in # 51. 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. AF over
This concludes the explanation of the flow of the microcomputer (MC1).

第19図は上述の第1実施例の#403ないし#407,#119を
変形したものであり、#403ないし#407の方法ではコン
ティニュアスAFモードでの補助光モードの場合、合焦し
た後もくり返して、補助光の発光を行う。そして被写体
が動いていない場合、やはり合焦であるということで同
じ#403のステップに入り、再び#403のステップに入
り、再び補助光の発光を行う。
FIG. 19 is a modification of # 403 to # 407 and # 119 of the first embodiment described above. In the method of # 403 to # 407, in the case of the auxiliary light mode in the continuous AF mode, focusing is achieved. After that, the auxiliary light is emitted repeatedly. When the subject is not moving, it means that the subject is still in focus, so that the same step 403 is entered, the step 403 is entered again, and the auxiliary light is emitted again.

このような動作はわずらわしい場合もある。Such operation may be troublesome.

第19図の実施例は上述の点を改良したものであり、#11
9の処理に続いて、#410で補助光モードフラグMFにより
補助光モードか否かを判定し、補助光モードであれば、
#414で割込み待ちとして、CCDイメージセンサ内での電
荷の積分は行わない。この動作によって、コンティニュ
アスAFモードであっても補助光モードに限り、1ショッ
ト撮影と同じ動作となる。補助光モードでない場合には
#411へ進み、コンティニュアスAFモードがワンショッ
トAFモードかを判断し、コンティニュアスAFモードあれ
ば、#39の「CDINT」1ショットAFモードならば#412へ
進み、以下第1実施例の#405,#406と同様の動作を行
う。
The embodiment shown in FIG. 19 is an improvement of the above points.
Subsequent to the processing of 9, it is determined whether or not the auxiliary light mode is the auxiliary light mode by the auxiliary light mode flag MF in # 410.
The interrupt is waited at # 414, and the charge integration in the CCD image sensor is not performed. By this operation, even in the continuous AF mode, the operation is the same as in the one-shot shooting only in the auxiliary light mode. If it is not the auxiliary light mode, proceed to # 411, judge whether the continuous AF mode is the one-shot AF mode, and if it is the continuous AF mode, if it is the "CDINT" one-shot AF mode of # 39, proceed to # 412. Then, the same operations as # 405 and # 406 of the first embodiment are performed.

第20図は第2の実施例を示すフローチャートであり、第
1実施例の#238ないし#240のステップに対応する部分
である。
FIG. 20 is a flowchart showing the second embodiment, which is a portion corresponding to steps # 238 to # 240 of the first embodiment.

第1実施例では補助光モードに入れば、たとえば被写体
がローコントラストであると判断されても補助光は2回
しか発光しないようにしていた。第2実施例では、コン
ティニュアスAFモードということの本意を考慮して、被
写体がローコントラストである場合には、コントラスト
が得られるまで、補助光の発光を続行する。この場合レ
ンズスキャンはせずに、レンズは停止しており、ただこ
の間にピント検出動作のみを行う。
In the first embodiment, if the auxiliary light mode is entered, for example, even if it is determined that the subject has low contrast, the auxiliary light is emitted only twice. In the second embodiment, in consideration of the intention of the continuous AF mode, when the subject has a low contrast, the auxiliary light emission is continued until the contrast is obtained. In this case, the lens is not scanned and the lens is stopped, and only the focus detection operation is performed during this period.

第20図において、#238で、補助光の1回目の発光であ
るか否かを判定し、1回目の発光ある場合は、#239へ
進み、被写体がローコントラストであるか否かを判定す
る。被写体がローコントラストであればコンティニュア
スAFモードでもワンショットAFモードでも#233進み、
補助光の発光を行う。被写体のコントラストがあれば#
91へ進んでAF動作をする。そして補助光が2回目に発光
した場合には、#238から#240へ進み、#240で被写体
がローコントラストか否かの判定を行い#91でAF動作を
行う。被写体がローコントラストであれば#415でコン
ティニュアスAFモードがワンショットAFモードであるか
の判別を行う。そしてコンティニュアスAFモードであれ
ば#233に進み、続けて補助光の発光を行う。このとき
レンズは停止している。3回目の発光で、被写体がロー
コントラストであれば、フローは再び#415に来て、#2
33へ行き循環する。
In FIG. 20, in # 238, it is determined whether or not the auxiliary light is the first emission, and if it is the first emission, the process proceeds to # 239, in which it is determined whether or not the subject has a low contrast. . If the subject is low contrast, proceed to # 233 in both continuous AF mode and one-shot AF mode.
The auxiliary light is emitted. If the subject has contrast #
Go to 91 and perform AF operation. Then, when the auxiliary light is emitted for the second time, the process proceeds from # 238 to # 240. In # 240, it is determined whether or not the subject has low contrast, and in # 91, the AF operation is performed. If the subject has a low contrast, it is determined at # 415 whether the continuous AF mode is the one-shot AF mode. Then, in the continuous AF mode, the process proceeds to step # 233, and the auxiliary light is continuously emitted. At this time, the lens is stopped. If the subject has low contrast in the third light emission, the flow returns to # 415, and # 2
Go to 33 and cycle.

一方ワンショットAFモードであれば、補助光の発光は2
回で終わり#59の「CDINTA」へ進み、ピント検出だけを
くり返す。
On the other hand, in the one-shot AF mode, the auxiliary light emission is 2
It ends with the number of times and goes to # 59, "CDINTA", and repeats focus detection only.

発明の効果 本発明によれば、補助光照明手段を動作させた状態で焦
点検出手段を動作させる第2の動作モード(補助光発光
モード)が設定されている場合に、撮影レンズの焦点状
態の検出が不可能であると判定されたとき、以降は、上
記補助光照明手段を動作させない状態で上記焦点検出手
段を動作させる第1の動作モードに固定して設定し、上
記焦点検出手段が動作を繰り返すように上記焦点検出手
段を制御するようにしたので、当該カメラを明るい方向
に向けたりして焦点状態の検出が可能となると、すぐに
焦点状態の検出が行われる。従って、被写体の状況変化
にも迅速に対応することができるとともに、焦点状態の
検出を繰り返すときに補助光を照射しないので、消費電
力が少なく、補助光の光源の劣化も防止することができ
るという利点がある。
EFFECTS OF THE INVENTION According to the present invention, when the second operation mode (auxiliary light emission mode) for operating the focus detection means in a state in which the auxiliary light illumination means is operated is set, the focus state of the photographing lens is changed. When it is determined that the detection is impossible, thereafter, the focus detection means is set to the first operation mode in which the focus detection means is operated while the auxiliary light illumination means is not operated, and the focus detection means is operated. Since the focus detecting means is controlled so as to repeat, the focus state is detected immediately when the focus state can be detected by pointing the camera in a bright direction. Therefore, it is possible to quickly respond to changes in the situation of the subject, and since the auxiliary light is not emitted when the detection of the focus state is repeated, power consumption is low and deterioration of the light source of the auxiliary light can be prevented. There are advantages.

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

第1図は本発明実施例のカメラシステム全体を示す概略
図、第2図はその電気回路を示すブロック図、第3図は
その電子閃光装置のフラッシュ回路を示す回路図、第4
図と第5図はその制御マイコンの動作を示すフローチャ
ート、第6図はそのインターフェース回路を示すブロッ
ク図、第7図ないし第16図はそのAFマイコンの動作を示
すフローチャート、第17図(A)(B)はそれぞれ割り
込み信号を示すタイムチャート、第18図は本発明実施例
の焦点検出原理を説明するための概略図、第19図と第20
図はこの発明の他の実施例を示すフローチャートであ
る。 (LZ);撮影レンズ (FLM);電荷蓄積型イメージセンサ (113);AFコントローラ (MC1);AFマイコン 48;補助光用光源。
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, FIG. 3 is a circuit diagram showing a flash circuit of its electronic flash device, and FIG.
5 and 5 are flowcharts showing the operation of the control microcomputer, FIG. 6 is a block diagram showing the interface circuit, and FIGS. 7 to 16 are flowcharts showing the operation of the AF microcomputer. FIG. 17 (A). (B) is a time chart showing interrupt signals, FIG. 18 is a schematic diagram for explaining the focus detection principle of the embodiment of the present invention, and FIGS. 19 and 20.
The figure is a flow chart showing another embodiment of the present invention. (LZ); Photographic lens (FLM); Charge accumulation type image sensor (113); AF controller (MC1); AF microcomputer 48; Auxiliary light source.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】撮影レンズを通過した被写体光を受光し、
被写体像信号を出力する受光手段と、 上記受光手段から出力される被写体像信号に基づいて上
記撮影レンズの焦点状態を検出する焦点検出手段と、 上記焦点検出手段による焦点状態の検出のために被写体
を照明する補助光照明手段と、 上記受光手段から出力される被写体像信号に基づいて上
記焦点状態の検出が可能か否かを判定する判定手段と、 上記補助光照明手段を動作させない状態で上記焦点検出
手段を動作させる第1の動作モードと、上記補助光照明
手段を動作させ被写体が照明された状態で上記焦点検出
手段を動作させる第2の動作モードとを選択的に設定す
るモード設定手段と、 上記モード設定手段によって上記第1の動作モードが設
定されている場合に、上記判定手段によって上記焦点状
態の検出が不可能であると判定されたとき、上記第2の
動作モードに切り換えて設定するように上記モード設定
手段を制御する切り換え手段と、 上記モード設定手段によって上記第2の動作モードが設
定されている場合に、上記判定手段によって上記焦点状
態の検出が不可能であると判定されたとき、以降は上記
第1の動作モードに固定して設定するように上記モード
設定手段を制御し、かつ上記焦点検出手段が動作を繰り
返すように上記焦点検出手段を制御する制御手段とを備
えたことを特徴とする焦点検出装置。
1. A light for a subject which has passed through a photographing lens is received,
A light receiving unit that outputs a subject image signal, a focus detecting unit that detects the focus state of the photographing lens based on the subject image signal output from the light receiving unit, and a subject for detecting the focus state by the focus detecting unit. An auxiliary light illuminating means for illuminating the object, a determining means for determining whether or not the focus state can be detected based on the subject image signal output from the light receiving means, and the auxiliary light illuminating means without operating the auxiliary light illuminating means. Mode setting means for selectively setting a first operation mode for operating the focus detecting means and a second operation mode for operating the auxiliary light illuminating means and operating the focus detecting means in a state where the subject is illuminated. And when the mode setting means sets the first operation mode, the determination means determines that the focus state cannot be detected. At this time, when the second operation mode is set by the switching means for controlling the mode setting means so as to switch to and set the second operation mode, the determination means makes the above-mentioned When it is determined that the focus state cannot be detected, the mode setting means is controlled so as to fix and set the first operation mode thereafter, and the focus detection means repeats the operation. A focus detection device comprising: a control unit that controls the focus detection unit.
JP599686A 1986-01-14 1986-01-14 Focus detection device Expired - Lifetime JPH0690355B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP599686A JPH0690355B2 (en) 1986-01-14 1986-01-14 Focus detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP599686A JPH0690355B2 (en) 1986-01-14 1986-01-14 Focus detection device

Publications (2)

Publication Number Publication Date
JPS62164029A JPS62164029A (en) 1987-07-20
JPH0690355B2 true JPH0690355B2 (en) 1994-11-14

Family

ID=11626391

Family Applications (1)

Application Number Title Priority Date Filing Date
JP599686A Expired - Lifetime JPH0690355B2 (en) 1986-01-14 1986-01-14 Focus detection device

Country Status (1)

Country Link
JP (1) JPH0690355B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2920383B2 (en) * 1989-04-18 1999-07-19 コニカ株式会社 camera
JP4874538B2 (en) * 2004-11-18 2012-02-15 Hoya株式会社 Focus detection device
JP5145974B2 (en) * 2008-01-28 2013-02-20 株式会社ニコン Camera and image display device
CN113489539B (en) * 2021-08-09 2023-10-13 维沃移动通信有限公司 Electronic equipment

Also Published As

Publication number Publication date
JPS62164029A (en) 1987-07-20

Similar Documents

Publication Publication Date Title
US4956659A (en) Automatic focus adjusting apparatus
US4829331A (en) Camera having auto-focussing device
JPS63246712A (en) Focus detector
JPH1068870A (en) Multi-point autofocus device
JPH0690355B2 (en) Focus detection device
JP2501189B2 (en) Automatic focus adjustment device
JPH0766099B2 (en) Automatic focus adjustment device
US6477327B1 (en) Camera having image pick-up device
JPH0766101B2 (en) Automatic focus adjustment device
JP2687958B2 (en) Automatic focus detection device
JPH0713695B2 (en) Camera with automatic focusing device
JPH06100713B2 (en) Automatic focus adjustment device
JPH0766100B2 (en) Automatic focus adjustment device
JPH0713692B2 (en) Automatic focus adjustment device
JPH0713691B2 (en) Automatic focus adjustment device
JPH0766102B2 (en) Focus detection device
JPH087328B2 (en) Focus detection device with auxiliary lighting device
JPH06313842A (en) Automatic focusing camera
JPH0659314A (en) Camera and photographing method
JPH11352391A (en) Autofocusing camera
JPH0524911Y2 (en)
JPH095815A (en) camera
JPS62116914A (en) Automatic focus adjusting device
JPS61165715A (en) Auto-focusing device
JPS61267716A (en) Automatic focusing device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term