JPS62139535A - Phase difference type focus detecting method - Google Patents

Phase difference type focus detecting method

Info

Publication number
JPS62139535A
JPS62139535A JP28053885A JP28053885A JPS62139535A JP S62139535 A JPS62139535 A JP S62139535A JP 28053885 A JP28053885 A JP 28053885A JP 28053885 A JP28053885 A JP 28053885A JP S62139535 A JPS62139535 A JP S62139535A
Authority
JP
Japan
Prior art keywords
lens
phase difference
flag
mode
focus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP28053885A
Other languages
Japanese (ja)
Inventor
Junichi Ito
順一 伊藤
Yoji Watanabe
洋二 渡辺
Minoru Matsuzaki
稔 松崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Olympus Corp
Original Assignee
Olympus Optical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP28053885A priority Critical patent/JPS62139535A/en
Publication of JPS62139535A publication Critical patent/JPS62139535A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent a wrong arithmetic result from being outputted by calculating the quantity of the phase difference between illuminance distributions of pieces of luminous flux which contain luminous flux from the same parts of respective bodies and travel through different paths having a parallax after being passed through different optical apertures. CONSTITUTION:The maximum value SMAX of the quantity of phase difference characteristic to a photographic lens is stored in the internal ROM of each lens as data characteristic to the lens or stored in the ROM of a camera-body side CPU for arithmetic so that it is led out as the identification signal of the lens. Then, the maximum value SMAX of the quantity of the phase difference characteristic to the photographic lens which is stored in the ROM is inputted to the arithmetic CPU in a camera body and this arithmetic CPU calculates the quantity of the phase difference within the range of the maximum value SMAX. Namely, the misoperation of the lens is eliminated by limiting shift arithmetic operation with the maximum value SMAX obtained selectively corresponding to the mounted lens or deciding whether the calculated phase difference x is effective or not for the maximum value SMAX.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、位相差方式による焦点検出方法、更に詳し
くは、カメラにおいて撮影レンズの最大デフォーカス量
に合わせてオートフォーカスの演算範囲を規定するよう
にした方法に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a focus detection method using a phase difference method, and more specifically, a method for defining an autofocus calculation range in accordance with the maximum defocus amount of a photographing lens in a camera. The present invention relates to a method for doing so.

[従来の技術] カメラにおける合焦検出方式には周知のように、位相差
方式、コントラスト方式等があるが、そのうちでも位相
差方式による焦点検出手段は第10図〜第12図に示す
ように構成されている。即ち、第10図〜第12図はそ
の原理を示、したものであって、第10図は焦点検出セ
ンサー100と光学系101の位置関係を示している。
[Prior Art] As is well known, focus detection methods in cameras include a phase difference method, a contrast method, etc. Among them, a focus detection means using a phase difference method is shown in FIGS. 10 to 12. It is configured. That is, FIGS. 10 to 12 show the principle thereof, and FIG. 10 shows the positional relationship between the focus detection sensor 100 and the optical system 101.

この場合、−眼レフレックスカメラでTTL方式の場合
には焦点検出センサー100はフィルム面と等価な位置
に配置される。焦点検出センサー100は第12図(a
)(b)(C)に示すように、それぞれペア(al、b
、〜an、bn)をなして配置されるa群およびb群か
らなるCOD等で形成された光電変換素子a1〜a n
、  b 1〜bn (第12図(a)参照)と、その
各ベア(al、b、 〜an。
In this case, in the case of a TTL type reflex camera, the focus detection sensor 100 is placed at a position equivalent to the film plane. The focus detection sensor 100 is shown in FIG.
)(b) and (C), the pair (al, b
, ~an, bn) photoelectric conversion elements a1 to a n formed of COD etc. consisting of a group and b group arranged in the form of
, b 1 to bn (see FIG. 12(a)), and each bear (al, b, to an.

b )にそれぞれ対応して配置されたレンズレッn トc1〜cn (第12図(b)参照)とで構成されて
いる。上記レンズレットcl−cnは撮影レンズ101
の射出瞳を通ってセンサー100に達する光を上側のA
光束と下側のB光束とに分割し、それぞれを8群検出セ
ンサーと5群検出センサーへ導く働きをする(第12図
(c)参照)。
b), and lenslets c1 to cn (see FIG. 12(b)) arranged corresponding to the lenslets c1 to cn (see FIG. 12(b)). The lenslet cl-cn is the photographing lens 101.
The light reaching the sensor 100 through the exit pupil of
It functions to divide the luminous flux and the lower B luminous flux and guide them to the 8th group detection sensor and the 5th group detection sensor respectively (see Fig. 12(c)).

今、第10図に示すように、焦点検出センサー100よ
り撮影レンズ101がわに向けて6gずれた位置に焦点
面102が形成されているものとすると、このときの光
電変換素子a1〜an。
Now, as shown in FIG. 10, assuming that the focal plane 102 is formed at a position shifted by 6 g toward the photographing lens 101 from the focus detection sensor 100, the photoelectric conversion elements a1 to an at this time.

b1〜b□の出力を、横軸を素子の番号とし、縦軸を対
応する素子の出力値として表わすと第11図に示す特性
曲線図のようになる。
When the outputs of b1 to b□ are expressed with the horizontal axis representing the element number and the vertical axis representing the output value of the corresponding element, the characteristic curve diagram shown in FIG. 11 is obtained.

このとき、b群の検出センサーにより形成される曲線は
a群の検出センサーによって形成される曲線より位相差
△χだけずれている。この位相差Δχと実際の焦点面か
らのずれ量Δgはある係数を介してリニヤ−な関係にあ
る。即ち、Δg−にΔχ・・・・・・(1) k:変換係数である。
At this time, the curve formed by the detection sensors of group b is shifted from the curve formed by the detection sensors of group a by a phase difference Δχ. This phase difference Δχ and the amount of deviation Δg from the actual focal plane have a linear relationship via a certain coefficient. That is, Δg- and Δχ... (1) k: conversion coefficient.

そして、この検出センサーのデータから△χを導出する
には、次のようにして行なわれる。
Then, Δχ is derived from the data of this detection sensor in the following manner.

焦点が前ピン(焦点面が撮影レンズがわにある)か、合
焦か、あるいは後ピン(焦点面がセンサーの後ろがわに
ある)かは、次の評価式により判別することができる。
Whether the focus is front focused (the focal plane is behind the photographing lens), in-focus, or rear focused (the focal plane is behind the sensor) can be determined using the following evaluation formula.

F=Σ(1”n bn+tl 1bnarr+、1) 
・−・川・・・(2)N;センサーベアの故 一般に、F>Qでは前ピン F−0では合焦 F<Qでは後ピン の関係が成立する。しかし、この評価式だけでは位相差
△χを求めることはできない。
F=Σ(1”n bn+tl 1bnarr+, 1)
--- River (2) N; Because of the sensor bare, generally speaking, when F>Q, the front focus is F-0, and when F<Q, the rear focus is in focus. However, it is not possible to determine the phase difference Δχ using this evaluation formula alone.

次にΔχの求め方を第13図および第14図により述べ
ると、焦点検出センサーからの出力は対応する添え字が
同じものは対をなしているが、ここでは添え字を1つず
つずらして評価式を計算することとする。a群の添え字
に対してb群の添え字が小さくなるように検出センサー
の対を作ることを正シフト、この逆を員のシフトと定義
する。
Next, we will explain how to calculate Δχ using Figures 13 and 14. Outputs from focus detection sensors that have the same corresponding subscript form a pair, but here we shift the subscripts one by one. Let us calculate the evaluation formula. Creating a pair of detection sensors so that the subscript of group b becomes smaller than the subscript of group a is defined as a positive shift, and the opposite is defined as a member shift.

このシフトを行なうことにより、検出センサー5群が形
成する曲線を図に示す如く移動させることができる。こ
の処理により検出センサーが光軸に沿って移動したとき
に生ずるa群センサーとb群センサーの曲線の位置関係
を、検出センサーを動かすことなく演算上で見出せる。
By performing this shift, the curve formed by the group of detection sensors 5 can be moved as shown in the figure. Through this process, the positional relationship between the curves of the a-group sensor and the b-group sensor, which occurs when the detection sensor moves along the optical axis, can be calculated by calculation without moving the detection sensor.

従って、負側から正側へ順番にシフトを行ない、かつ各
シフト毎に評価式を演算し、F−0の一致点を捜し出せ
ば、その点におけるシフト数が位相差Δχとなる。上記
(2)式はa群センサーとb群センサーの添え字が同じ
ときの評価式、即ちシフト−〇のときの評価式である。
Therefore, if shifts are performed in order from the negative side to the positive side, and an evaluation formula is calculated for each shift, and a matching point of F-0 is found, the number of shifts at that point becomes the phase difference Δχ. The above formula (2) is an evaluation formula when the subscripts of the a-group sensor and the b-group sensor are the same, that is, the evaluation formula when the shift is -0.

そこで、この評価式をシフト数Sを関数とする一般式に
改めると、S2Oのとき F(S)=Σ(lan+5−bn+11 1’)rl−
an+s−I I ) ”・”・(3)Sく0のとき F(S)=Σ(l an−bn−n+11  Ibn−
5”n+1 I ) ・−・・(3)n總1 N:センサーベアの数 となる。
Therefore, if we change this evaluation formula to a general formula using the shift number S as a function, when S2O, F(S)=Σ(lan+5-bn+11 1')rl-
an+s-I I) "・"・(3) When Sku0, F(S)=Σ(lan-bn-n+11 Ibn-
5"n+1 I) -- (3) n+1 N: Number of sensor bears.

センサーベアの数およびセンサーベア間の寸法等は、検
出センサーの感度、レンズレッドの製造限界等によりそ
の限界値が定まる。従って評価式F (S)による演算
のみで、F(So)−0となるようなシフト数Soを見
いだすことは困難である。そこで隣り合うF (S)の
結果より中間値をhg間する必要がある。
The limit values of the number of sensor bears, the dimensions between the sensor bears, etc. are determined by the sensitivity of the detection sensor, the manufacturing limit of Lens Red, etc. Therefore, it is difficult to find a shift number So that satisfies F(So)-0 only by calculation using the evaluation formula F (S). Therefore, it is necessary to set the intermediate value between hg based on the results of adjacent F(S).

即ち、この補間はあるシフトにおける評価式の結果がF
(S)>0で、次のシフトにおける結果がF(Sa+1
)く0であった場合、位相差△χは次式 %式% [発明が解決しようとする問題点] ところで、上述した焦点検出原理を用いて位相差を検出
するとき、次のような問題点を生じる。
In other words, this interpolation means that the result of the evaluation formula at a certain shift is F
If (S)>0, the result in the next shift is F(Sa+1
) is 0, the phase difference △χ is the following formula % Formula % [Problems to be Solved by the Invention] By the way, when detecting the phase difference using the focus detection principle described above, the following problem occurs. produce a point.

即ち検出センサーが睨む視野内に遠近2つの彼写体があ
る場合には第15図に示すように、a群。
In other words, when there are two subjects, near and far, within the field of view of the detection sensor, group A is shown as shown in Fig. 15.

b群のセンサーの出力が形成する曲線において一致する
点が2ケ所発生するため、2個の位相差Δχ 、Δχ2
が生ずる。また検出センサーが睨む披写体のコントラス
トが周期性のあるものである場合には第16図に示す如
く、その周期ごとに位相差△χ ′、Δχ ′、△χ 
′、△χ4′が生ずることとなる。
Since two matching points occur on the curve formed by the outputs of the sensors of group b, the two phase differences Δχ and Δχ2
occurs. Furthermore, if the contrast of the object that the detection sensor looks at is periodic, as shown in Figure 16, the phase differences △χ ′, Δχ ′, △χ
', Δχ4' will occur.

このように本来必要な6%以外の位相差が生ずるのは、
シフト演算を広範囲にわたり行なっているからである。
The reason why a phase difference other than the originally required 6% occurs is because
This is because shift operations are performed over a wide range.

位相差方式によるデフォーカス量の演算においては、従
来一般にレンズに関係なくセンサーの検出限界まで演算
範囲が及んでいる。
In calculating the amount of defocus using the phase difference method, the calculation range generally extends to the detection limit of the sensor, regardless of the lens.

一般に撮影レンズのピント面の移動量の最大値△gMA
Xは、倍率Mと焦点距離fにより定まる。
Generally, the maximum amount of movement of the focal plane of the photographic lens △gMA
X is determined by the magnification M and the focal length f.

F(M、f)−Δ” MAX ”’ ”’ (5)よっ
て、シフト量(位相差量)の必要範囲は使用撮影レンズ
の△ΩMAXにより規定され、となる。
F (M, f) - Δ'' MAX '''''' (5) Therefore, the necessary range of the shift amount (phase difference amount) is defined by ΔΩ MAX of the photographing lens used.

従って、シフト演算をこの規定範囲内のみで行なうか、
若しくはシフト演算は広範囲にわたり行なうが演算結果
の中で規定範囲外のものは廃棄することにより必要な位
相差量だけを手に入れることができる。また、レンズ側
々において、ψ〜至近距離に対応する位相差m(シフト
量)はレンズの焦点距離によって異なり、ワイドレンズ
ではその値は小さく、テレレンズではその値は大きくな
っている。
Therefore, whether the shift operation is performed only within this specified range or
Alternatively, only the necessary amount of phase difference can be obtained by performing shift calculation over a wide range but discarding calculation results outside the specified range. Further, on each side of the lens, the phase difference m (shift amount) corresponding to ψ to close distance varies depending on the focal length of the lens, and the value is small for a wide lens and large for a tele lens.

本発明の目的は、撮影レンズが必要とする範囲以上にわ
たって、オートフォーカス(AF)の演算をすることを
やめて誤った演算結果を出力しないようにした位相差式
焦点検出方法を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a phase difference focus detection method that avoids performing autofocus (AF) calculations and outputting incorrect calculation results over a range beyond that required by a photographic lens. .

[問題点を解決するための手段および作用]本発明は、
撮影レンズ個有の位相差量(シフトfilt)の最大値
SMAXをレンズ固有のデータとして、個々のレンズに
内蔵した記憶素子(ROM)に保管するか、あるいはレ
ンズの識別信号により引き出されるようにカメラボディ
がわの演算用CPUのROMに保管しておき、装着レン
ズに対応して選択的に得られるこの最大値SMAXによ
りシフト演算を制限するか、若しくは演算された位相差
△χをSMAXで有効か無効か判別することによってレ
ンズの誤動作をなくすようにしたものである。
[Means and effects for solving the problems] The present invention has the following features:
The maximum value SMAX of the amount of phase difference (shift filt) unique to the photographing lens is stored as lens-specific data in a memory element (ROM) built into each lens, or it is retrieved by the lens identification signal and stored in the camera. It is stored in the ROM of the calculation CPU next to the body, and the shift calculation can be limited by this maximum value SMAX, which is selectively obtained according to the attached lens, or the calculated phase difference △χ can be made effective by SMAX. This system is designed to eliminate lens malfunctions by determining whether the lens is invalid or not.

またマクロ領域をもつレンズにおいてはマクロ領域を判
別する部材の信号により” MAXは変化する。
Furthermore, in a lens having a macro region, MAX changes depending on a signal from a member that discriminates the macro region.

例えばレンズ側に距離エンコーダが設けてあり、マクロ
領域の距離になると、自動的にSMAXは距離に対応し
た値が選択される。
For example, a distance encoder is provided on the lens side, and when the distance of the macro area is reached, a value corresponding to the distance is automatically selected for SMAX.

[実 施 例コ 以下、本発明をオートフォーカス(以下、AFと略記す
る)機能を有したレンズ交換式カメラに適用した実施例
について説明する。
[Embodiment] An embodiment in which the present invention is applied to an interchangeable lens camera having an autofocus (hereinafter abbreviated as AF) function will be described below.

第1図は本発明が適用されるカメラシステムの電源供給
を主体として見た全体のブロック図である。電源電池1
1の電圧vccは電源スィッチ12の開成時にD C/
D Cコンバータ13により昇圧され、ラインII  
g 間が電圧”DDに定電圧化Ol   1 されている。ライン10.11間にメインCPU14、
バイポーラ■回路15.バイポーラ1回路16、ストロ
ボ制御回路17.レンズデータ回路18、データバック
回路19が接続されており、バイポーラ■回路15の電
源供給制御はメインCPUのパワーコントロール回路か
らの信号により行なわれ、パイポー91回路16〜デー
タバック回路19の電源供給制御はバイポーラ■回路1
5からのパワーコントロール信号により行なわれる。
FIG. 1 is an overall block diagram mainly showing the power supply of a camera system to which the present invention is applied. Power battery 1
When the power switch 12 is opened, the voltage VCC of 1 is DC/
It is boosted by the DC converter 13 and connected to line II.
Between lines 10 and 11, the main CPU 14,
Bipolar ■Circuit 15. Bipolar 1 circuit 16, strobe control circuit 17. A lens data circuit 18 and a data back circuit 19 are connected, and power supply control of the bipolar circuit 15 is performed by a signal from the power control circuit of the main CPU, and power supply control of the Pipo 91 circuit 16 to data back circuit 19 is performed. is bipolar■circuit 1
This is done by the power control signal from 5.

合焦センサ20.A/Dコンバータ21.AF用CPU
22からなるAFブロックは電源制御用トランジスタ2
3を介してラインg。、Ω1間に接続されており、この
APブロックに対する電源供給制御はメインCPU14
のAP用パワーコントロール回路からの信号による上記
トランジスタ23のオン、オフ制御により行なわれる。
Focus sensor 20. A/D converter 21. AF CPU
The AF block consisting of 22 is a power supply control transistor 2
Line g through 3. , Ω1, and power supply control for this AP block is controlled by the main CPU 14.
This is performed by controlling the transistor 23 on and off using a signal from the AP power control circuit.

AP用CPU22はAF用アルゴリズム演算を行なうた
めの回路で、合焦・非合焦の表示を行なうAP表示回路
24が接続されている。メインCPU14はフィルムの
巻上、巻戻および露出シーケンス等カメラ全体のシーケ
ンスをコントロールするための回路で、上記合焦表示以
外の表示を行なう表示回路25を接続されている。バイ
ポーラ■回路15はフィルムの巻上、巻戻用モータ制御
、レンズ駆動およびシャッタ制御等、カメラのシーケン
スに必要な各種ドライバを含む回路で、AFモータ駆動
回路26およびA F hli助光回路27等が接続さ
れている。バイポー91回路16は主として測光をつか
さどる回路であり、測光素子28を有している。ストロ
ボ制御回路17は内蔵、或いは外付けされたストロボ2
9に対する発光制御を行なうためのものである。レンズ
データ回路18は、交換レンズ毎に異なる、AF、測光
、その他のカメラ制御に必要な、固有のレンズデータを
記憶した回路である。このレンズデータ回路18に入っ
ているレンズデータのうちAFに必要なデータとしては
、レンズ変倍係数(ズーム係数)、マクロ識別信号、絶
対距離係数a、  b、パワーフォーカスデユーティ係
数、AP精度スレショールドETh。
The AP CPU 22 is a circuit for performing AF algorithm calculations, and is connected to an AP display circuit 24 that displays in-focus/out-of-focus status. The main CPU 14 is a circuit for controlling sequences of the entire camera such as film winding, rewinding and exposure sequences, and is connected to a display circuit 25 for displaying other than the above-mentioned focus display. The bipolar circuit 15 is a circuit that includes various drivers necessary for camera sequences such as film winding and rewind motor control, lens drive and shutter control, and includes an AF motor drive circuit 26, an AF hli light assist circuit 27, etc. is connected. The bipolar 91 circuit 16 is a circuit mainly responsible for photometry, and has a photometry element 28. The strobe control circuit 17 is built-in or externally attached to the strobe 2.
This is for controlling light emission for 9. The lens data circuit 18 is a circuit that stores unique lens data necessary for AF, photometry, and other camera control, which differs for each interchangeable lens. Among the lens data contained in this lens data circuit 18, the data necessary for AF includes a lens magnification coefficient (zoom coefficient), macro identification signal, absolute distance coefficients a and b, power focus duty coefficient, and AP precision thread. Schold ETh.

レンズ移動方向、開放F値等であり、AE、その他の必
要なデータとしては位相差量の最大値SMAXその他で
ある。
These are the lens moving direction, the open F value, etc., and the AE, and other necessary data include the maximum value SMAX of the amount of phase difference.

」二記バイポーラ■回路15では電源電圧VDDの状態
を’<i視しており、電源電圧が規定電圧より低下した
ときメインCPU14にシステムリセット信号を送り、
バイポーラ■回路15〜データパック回路19の電源供
給、技びに、合焦センサ20゜A/Dコンバータ21お
よびAF用CPU22からなるAPラブックの電源供給
を断つようにしている。メインCPU14への電源供給
は規定電圧以下でも行なわれる。
The bipolar circuit 15 regards the state of the power supply voltage VDD as '<i', and sends a system reset signal to the main CPU 14 when the power supply voltage drops below the specified voltage.
The power supply to the bipolar circuit 15 to data pack circuit 19 and the AP labbook consisting of the focusing sensor 20° A/D converter 21 and AF CPU 22 are cut off. Power is supplied to the main CPU 14 even if the voltage is below the specified voltage.

第2図はAPラブックを中心とした信号の授受を示す系
統図であり、AFJiCr’U22とメインCPUI 
4はシリアルコミュニケーションラインでデータの授受
を行ない、その通信方向はシリアルコントロールライン
により制御される。このコミュニケーションの内容とし
ては、レンズデータ回路18内の固有のレンズデータや
、絶対距離情報である。また、メインCPU14からA
 F )1CPU22にカメラのモード(AFシングル
モード/AFシーケンスモード/パワーフォーカス(以
下、PFと略記する)モード/その他のモード)の各情
報がモードラインを通じてデコードされる。さらに、メ
インCPU14からAP用CPU22へのAFENA 
(AFイネーブル)信号はAP、PFの各モードのスタ
ートおよびストップをコントロールする信号であり、A
P用CPU22からメインCPU14へのEOFAF 
(、エンドオブAF)信号はAP、PFモードでの動作
終了時に発せられ露出シーケンスへの移行を許可する信
号である。
Figure 2 is a system diagram showing the transmission and reception of signals centered on the AP lab book, and shows the system between the AFJiCr'U22 and the main CPU.
4 is a serial communication line for exchanging data, and the communication direction is controlled by a serial control line. The contents of this communication include unique lens data within the lens data circuit 18 and absolute distance information. Also, from the main CPU 14
F) Each piece of information about the camera mode (AF single mode/AF sequence mode/power focus (hereinafter abbreviated as PF) mode/other modes) is decoded by the CPU 22 through the model line. Furthermore, AFENA from the main CPU 14 to the AP CPU 22
The (AF enable) signal is a signal that controls the start and stop of each mode of AP and PF.
EOFAF from P CPU 22 to main CPU 14
The (end of AF) signal is a signal that is emitted at the end of the operation in the AP or PF mode and permits transition to the exposure sequence.

また、バイポーラ■回路15はAFJl]CPU22か
らのAFモータコントロールラインの信号をデコードし
、AFモータ駆動回路26をドライブする。AFモータ
駆動回路26の出力によりAFモータ(レンズ駆動モー
タ)31が回転すると、レンズデータの回転部4イに等
間隔に設けられたスリット32が回転し、同スリット3
2の通路を挟んで発光部33aと受光部33bとを対向
配置させてなるフォトインクラブタ33がスリット32
をカウントする。即ち、スリット32とフォトインクラ
ブタ33はアドレス発生部34を構成しており、同アド
レス発生部34から発せられたアドレス信号(スリット
32のカウント信号)は波形整形されてAP用CPU2
2に取り込まれる。
Further, the bipolar circuit 15 decodes the AF motor control line signal from the AFJ1 CPU 22 and drives the AF motor drive circuit 26. When the AF motor (lens drive motor) 31 is rotated by the output of the AF motor drive circuit 26, the slits 32 provided at equal intervals in the lens data rotating section 4a rotate.
A photo ink converter 33 in which a light emitting part 33a and a light receiving part 33b are disposed facing each other with a passage 2 in between is connected to the slit 32.
count. That is, the slit 32 and the photo ink printer 33 constitute an address generation section 34, and the address signal (count signal of the slit 32) generated from the address generation section 34 is waveform-shaped and sent to the AP CPU 2.
Incorporated into 2.

AFCPU22からバイポーラ■回路15に送られるサ
ブランプ(以下、Sランプと略記する)信号はAF補助
光回路27をコントロールする信号で、被写体がローラ
イト(低輝度)、ローコントラストのときSランプ27
aを点灯する。
The sub-lamp (hereinafter abbreviated as S-lamp) signal sent from the AFCPU 22 to the bipolar ■ circuit 15 is a signal that controls the AF auxiliary light circuit 27, and when the subject is low light (low brightness) and low contrast, the S-lamp 27 is sent to the bipolar circuit 15.
Turn on a.

AFJljCPU22に接続されたAF表示回路24は
合焦時に点灯する合焦OK表示用LED (発生ダイオ
ード)24aと、合焦不能時に点灯する合焦不能表示用
LED24bを有している。なお、このAFJllCP
U22にはクロック用発振器35゜リセット用コンデン
サ36が接続されている。
The AF display circuit 24 connected to the AFJlj CPU 22 has an LED (generation diode) 24a for indicating focus OK that lights up when focusing, and an LED 24b for indicating that focusing is not possible that lights up when focusing is impossible. In addition, this AFJllCP
A clock oscillator 35° reset capacitor 36 is connected to U22.

また、Lシ己AF用CPU22とA/Dコンバータ21
はパスラインによりデータの授受を行ない、その伝送方
向はパスラインコントロール信号により制御される。そ
して、AFFCPU22からA/Dコンバータ21にセ
ンサ切換信号、システムクロック信号が送られるように
なっている。そして、A/Dコンバータ21は例えば、
CCDからなる合焦センサ20に対しCCD駆動クロッ
ク信号、COD制御信号を送り、合焦センサ20からC
CD出力を読み出し、この読み出したアナログ値のCC
D出力をディジタル変換してA F 111 CPU2
2に送る。
In addition, the CPU 22 for L-sight AF and the A/D converter 21
transmits and receives data through the path line, and the direction of data transmission is controlled by a path line control signal. A sensor switching signal and a system clock signal are sent from the AFFCPU 22 to the A/D converter 21. Then, the A/D converter 21, for example,
A CCD drive clock signal and a COD control signal are sent to the focus sensor 20 consisting of a CCD.
Read the CD output and check the CC of the read analog value.
Convert D output into digital and AF 111 CPU2
Send to 2.

次に、本発明の適用されたカメラの上記第2図に示した
AFブロックを中心とするマイクロコンピュータのプロ
グラム動作のフローチャートを説明する。APラブック
は、第1図に示したように、メインCPU14のAP用
パワーコントロール回路を動作状態にすることによって
トランジスタ23がオンして電源電圧vD1)が供給さ
れ、これによって、第3図に示すパワーオン・リセット
のルーチンの実行を開始する。
Next, a flowchart of the program operation of the microcomputer centered on the AF block shown in FIG. 2 of the camera to which the present invention is applied will be described. As shown in FIG. 1, in the AP lab book, by putting the AP power control circuit of the main CPU 14 into operation, the transistor 23 is turned on and the power supply voltage vD1) is supplied. Begins execution of the power-on reset routine.

このパワーオン・リセットルーチンが開始されると、ま
ず、く■10イニシャライズ〉のサブルーチンでAFブ
ロックの駆動回路のイニシャライズが行なわれる。具体
的には、AFF示回路24゜AFモータ駆動回路26お
よびAFF助光回路27等のオフ並びにメインCPU1
4とのシリアルコミュニケーションラインのイニシャラ
イズ等が行なわれる。
When this power-on reset routine is started, first, the AF block drive circuit is initialized in the subroutine (10 Initialize). Specifically, the AFF indicator circuit 24°, the AF motor drive circuit 26, the AFF auxiliary circuit 27, etc. are turned off, and the main CPU 1
Initialization of the serial communication line with 4 is performed.

次に、〈モード・リード〉のサブルーチンで、メインC
PU14からのモードラインの信号(モード信号)を読
み出し、いかなるレンズ駆動モードを実行するかを判断
したのち、〈タイマ〉のルーチンで一定IIν間を経て
、再度くモード・リード〉のルーチンを経てモードの切
換時点を読み取っている。そして、モードの切換えが完
了するまでは最初のくモード・リード〉に戻る。くモー
ド・リード〉のサブルーチンをくタイマ〉を挟んで2回
通過するようにしているのは、モード切換時点での読み
取りの、z1駆動を防止するためである。
Next, in the <mode read> subroutine, the main C
After reading the mode line signal (mode signal) from the PU 14 and determining what lens drive mode to execute, the <timer> routine passes a certain IIν period, and then the mode read> routine is executed again. The switching point is being read. Then, the process returns to the first mode read until the mode switching is completed. The reason why the subroutine ``mode read'' is passed through twice with the ``timer'' in between is to prevent z1 driving of reading at the time of mode switching.

モードの切換えが確実に行なわれて切換前と切換後のモ
ードが同一になったとき、その切換後のモードを読み取
って各モードのサブルーチンへ移行する。即ち、レンズ
駆動の各モードとしては、くレンズリセット>、  <
PF (パワーフォーカス)>、<AFS IN (A
Fレシンル)>、<AFSEQ(AFシーケンス)〉の
各モードがあり、これらのモードのうちの1つが選ばれ
ると、この選択されたモードのサブルーチンを実行した
のち上記(工10イニシャライズ〉のルーチンへ戻る。
When the mode has been reliably switched and the mode before and after the switch is the same, the mode after the switch is read and a transition is made to the subroutine for each mode. That is, the lens drive modes include lens reset>, <
PF (power focus)>, <AFS IN (A
There are AF Sequence)> and AFSEQ (AF Sequence) modes, and when one of these modes is selected, the subroutine of the selected mode is executed, and then the routine returns to the above (Step 10 Initialize). return.

くレンズリセット>、<PF>、<AFSIN>。Lens Reset>, <PF>, <AFSIN>.

<AFSEQ>のいずれのモードも選択されず、くその
他〉のモードが選ばれたときなどは、これはCドなるノ
イズとみなされて、くタイマ〉のルーチンで一定時間の
経過後1記<I10イニシャライズ〉へ戻る。
When none of the <AFSEQ> modes are selected and the <Other> mode is selected, this is treated as noise, and the <AFSEQ> routine returns 1 after a certain period of time. Return to I10 Initialize.

ここで、くレンズリセット〉モードの動作は、レンズを
強制的に1!1(限遠(oo)の位置まで繰り込み、こ
れによって、相対的距離信号、即ち、合焦センサ20か
ら出力される測距出力信号を無限遠(「Ll)の位置か
らのパルス移動数に置き換えて絶対距離信号に変換しよ
うとするためのイニシャライズ動作、即ち、絶対距離カ
ウンタのクリア動作である。くレンズリセット〉が選択
された場合、この絶対距離カウンタのクリアのあと、例
えば5ms経ってからI10イニシャライズ動作に戻る
。また、<PF>モードとは、レンズの距離環を手動で
はなく、レンズ駆動モータ31によって駆動し、レンズ
のフォーカシング動作をマニュアルのピント合せ又はフ
ォーカスエイドを用いて実施しようとするものである。
Here, the operation in the lens reset mode is to forcibly retract the lens to the 1!1 (ultimate (oo) position), thereby producing a relative distance signal, that is, the measurement output from the focus sensor 20. This is an initialization operation to convert the distance output signal to an absolute distance signal by replacing the distance output signal with the number of pulses from the position at infinity (Ll), that is, an operation to clear the absolute distance counter. Lens Reset> is selected. If the absolute distance counter is cleared, the I10 initialization operation is returned to, for example, after 5 ms.Furthermore, <PF> mode means that the distance ring of the lens is driven not manually but by the lens drive motor 31. This attempts to perform a lens focusing operation using manual focusing or a focus aid.

さらに詳しく1−7えば、後述するPFUP (アップ
)用操作スイッチSW、 。
More specifically, 1-7 includes a PFUP (up) operation switch SW, which will be described later.

PFDN (ダウン)用操作スイッチSW2のオン。Turn on operation switch SW2 for PFDN (down).

オフによってレンズの繰り出し、繰り込みが行なわれる
ことになる。また、<AFS IN>のモードの動作は
、ワンショットAF動作であり、彼写体に対してAF動
動作−フォーカスロックするものである。さらに、<A
FSEQ>モートは、連続AFであり、このモードでは
、レリーズ釦の1段目を動作しつづける限りAF動作を
連続的に行なうことになる。
When the lens is turned off, the lens is extended and retracted. Further, the operation in the <AFS IN> mode is a one-shot AF operation, and is an AF movement operation-focus locking for the subject. Furthermore, <A
FSEQ>Mote is continuous AF, and in this mode, AF operation will be performed continuously as long as the first stage of the release button continues to be operated.

ところで、レンズ駆動の各モードに関する操作スイッチ
としては、f記の表1に示すように、4つの操作スイッ
チsw  −5w4が用いられる。
By the way, as operation switches for each mode of lens drive, four operation switches sw-5w4 are used, as shown in Table 1 of f.

■ 表1 上記表1に示す第1.第2の操作スイッチSW1゜SW
2はAFモードとPFモードで共通に用いられるもので
あり、第3の操作スイッチSW3はオフのときAFモー
ド、オンのときPFモードが選択される。AFモートて
第1.第2の操作スイッチsw  、sw2がともにオ
フのときレンズリセットモードとなり、ともにオンのと
きAFSEQモードとな一す、第1の操作スイッチSW
1がオフ。
■Table 1 1. shown in Table 1 above. Second operation switch SW1゜SW
2 is commonly used in the AF mode and the PF mode, and when the third operation switch SW3 is off, the AF mode is selected, and when it is on, the PF mode is selected. AF mode first. When both the second operation switches sw and sw2 are off, the lens reset mode is set, and when both are on, the mode is set to AFSEQ mode.The first operation switch SW
1 is off.

第2の操作スイッチSW2がオンのときAFS INモ
ードとなる。PFモードで第1.第2の操作スイッチs
w  、sw2がともにオフ、又はともにオンのときは
ストップモードにあり、第1の操作スイッチSW1がオ
ンのときはモータによって距離環を近距離側に回転させ
てレンズを繰り出すPFUP (アップ)モードとなり
、第2の操作スイッチSW2がオンのときは距離環を遠
距離側に回転させてレンズを繰り込むPFDN (ダウ
ン)モードとなる。また第4の操作スイッチSw4は、
AFモードのうちのいずれのモードおよびPFモードの
うちのストップモードではオン、オフのいずれの状態に
あっても変化はないが、PFモードでオンのときHl(
高速)モードとなり、レンズ駆動モータ31が高速回転
し距離環の↑■動が行なわれ、オフのときLO(低速)
モードとなり、モータ31(第2図参照)が低速回転し
て距離環の微動が行なわれる。
When the second operation switch SW2 is on, the AFS IN mode is entered. 1st in PF mode. Second operation switch s
When w and sw2 are both off or on, the camera is in stop mode, and when the first operation switch SW1 is on, it is in PFUP (up) mode, in which the motor rotates the distance ring toward the short distance side and extends the lens. , when the second operation switch SW2 is on, the PFDN (down) mode is set in which the distance ring is rotated toward the long distance side and the lens is retracted. Further, the fourth operation switch Sw4 is
In any of the AF modes and in the stop mode of the PF modes, there is no change whether it is on or off, but when it is on in the PF mode, Hl (
The lens drive motor 31 rotates at high speed and the distance ring moves up and down, and when it is off, it is in LO (low speed) mode.
mode, the motor 31 (see FIG. 2) rotates at a low speed to perform slight movement of the distance ring.

次に、各レンズ駆動モードの動作について第4図〜第9
図のフローチャートを用いて説明する。
Next, we will explain the operation of each lens drive mode in Figures 4 to 9.
This will be explained using the flowchart shown in the figure.

まず、<AFS IN>のモードが選択された場合は、
第4図に示す<AFS IN>のルーチンが実行され、
メインCPU14からのAFENA信号が″H″レベル
(アクティブ)になっているか否かを検出する。レリー
ズ釦の第1段Llの動作でAFENA信号がアクティブ
になってAF動作が開始され、<AFSIN2>のサブ
ルーチンが呼び出される。但し、レリーズ釦の第2段1
」の動作が受は付けられるのは、AF動作が終了して合
焦状態が得られ露出シーケンスが開始されるときである
。<AFS IN2 >では、後述するように、合焦セ
ンサ20のCCD積分、測距出力の演算およびレンズの
駆動等が行なわれる。そして、この<AFSIN2>の
AF動作の結果である合焦。
First, if the <AFS IN> mode is selected,
The <AFS IN> routine shown in FIG. 4 is executed,
It is detected whether the AFENA signal from the main CPU 14 is at "H" level (active). When the first stage Ll of the release button is operated, the AFENA signal becomes active, AF operation is started, and the <AFSIN2> subroutine is called. However, the second stage of the release button 1
” operation is accepted when the AF operation is completed, a focused state is obtained, and the exposure sequence is started. At <AFS IN2>, as will be described later, CCD integration of the focus sensor 20, calculation of distance measurement output, lens driving, etc. are performed. Then, the focus is the result of the AF operation of this <AFSIN2>.

非合焦の表示は、くAFSIN2>の動作の後、AFス
テータスフラグを’Xr ilJして行なわれる。AF
ステータスフラグはローコンフラグ(被写体がローコン
トラストのとき“1“にセットされるフラグ、以上、L
Cフラグと略記する)、移動フラグ(被写体が移動して
いるとき“1”にセットされるフラグ、以下、Mフラグ
と略記する)および最至近フラグ(レンズを最至近距離
以上に繰り出そうとしたときに“1”にセットされるフ
ラグ、以下Nフラグと略記する)を有しており、これら
のうち、いずれのフラグとも0のとき合焦が可能であり
、上記各フラグのうち何らかのフラグが立つと合焦不能
であるので、APステータスフラグの監視の結果、同A
Fステータスフラグが0てあれば合焦OKの表示が前記
AF表示回路24のLED24aによって行なわれ、A
FステータスフラグがOでなければ合焦不能の表示が前
記LED24bによって行なわれる。合焦てあれば、E
OFAF信号が発せられてAF動作が終了し、メインC
PU14にレリーズ釦の2段目の動作、即ち、露出シー
ケンスの開始を待機する状態となる。つまり、一度合焦
が終rすると、AFENA信号がアクティブになってい
ても、その後のレンズ動作が禁止され合焦OK &示の
LED24 aが点灯したままとなり、フォーカスロッ
ク状態となる。メインCPU14からのAFENA信号
が“L0レベル(インアクティブ)になったときは第3
図に示スパワーオン・リセットのフローの川明動作にリ
ターンする。
The out-of-focus state is displayed by setting the AF status flag to 'XrilJ' after the operation of AFSIN2>. AF
The status flag is the low contrast flag (a flag that is set to “1” when the subject has low contrast; above, L
(abbreviated as C flag), movement flag (a flag set to "1" when the subject is moving, hereinafter abbreviated as M flag), and closest approach flag (when an attempt is made to extend the lens beyond the closest distance) The camera has a flag that is set to "1" (hereinafter abbreviated as the N flag), and focusing is possible when any of these flags is 0, and some flag among the above flags is set. As a result of monitoring the AP status flag, the same A
If the F status flag is 0, the LED 24a of the AF display circuit 24 indicates that the focus is OK, and the A
If the F status flag is not O, the LED 24b indicates that focusing is not possible. If in focus, press E
The OFAF signal is issued, the AF operation ends, and the main C
The PU 14 enters a state of waiting for the second operation of the release button, that is, the start of the exposure sequence. That is, once focusing is completed, even if the AFENA signal is active, subsequent lens operation is prohibited and the LED 24a indicating "Focus OK" remains lit, resulting in a focus locked state. When the AFENA signal from the main CPU 14 becomes "L0 level (inactive)", the third
Return to the basic operation of the power-on reset flow shown in the figure.

上記<AFS IN>のモードの動作中、<AFSIN
2>のサブルーチンのプログラム動作は第5図に示すよ
うにして行なわれる。まず、前回の測距演算値(前回の
合焦センサ20の出力パルス)と今回の測距演算値(今
回の合焦センサ20の出力パルス)との比較のためにR
ETRY (リトライ)フラグがクリアされ、AF小ル
ープウンタに一連のAF動作における最大A11l距回
数がセットされる。このあと、ある明るさ以りでは確実
にCCD積分が行なわれるように、ITIMEレジスタ
にCCD積分時間の最大値がセットされる。そして、A
Fステータスフラグがクリアされ、Sランプフラグもク
リアされる。ここまでのフローの動作でAF開始前のイ
ニシャライズ動作が終了する。
While operating in the above <AFS IN> mode, <AFS IN>
The program operation of subroutine 2> is performed as shown in FIG. First, R
The ETRY (retry) flag is cleared, and the maximum number of A11l distances in a series of AF operations is set in the AF small loop counter. Thereafter, the maximum value of the CCD integration time is set in the ITIME register so that CCD integration is reliably performed below a certain brightness level. And A
The F status flag is cleared and the S lamp flag is also cleared. The operations in the flow up to this point complete the initialization operation before starting AF.

このあと、くレンズ・リード〉のルーチンが呼び出され
、前記レンズデータ回路18に入っているレンズ内の各
データか読み出されたのち、測距のための<AF >の
ルーチンが呼び出される。この<AF >のサブルーチ
ン内では、CCD積分時にSランプ27aを点灯させる
必要があるか否かが判断され、点灯する必要がある場合
にはSランプフラグがセットされ、必要ない場合にはク
リアされる。また、ローライトフラグ(被写体がローラ
イトのとき“1”にセットされるフラグ、以下、LLフ
ラグと略記する)、LCフラグがセット或いはクリアさ
れる。
Thereafter, the lens read routine is called, and after reading each lens data stored in the lens data circuit 18, the AF routine for distance measurement is called. In this <AF> subroutine, it is determined whether or not it is necessary to light the S lamp 27a during CCD integration. If it is necessary to light the S lamp 27a, the S lamp flag is set, and if it is not necessary, it is cleared. Ru. Additionally, a low light flag (a flag that is set to "1" when the subject is in low light, hereinafter abbreviated as LL flag) and LC flag are set or cleared.

そして、ここで本発明による位相差の演算が行なわれる
。即ち、<AF>のサブルーチンのプログラム動作は第
6図に示すようにして行なわれる。
Then, the phase difference calculation according to the present invention is performed here. That is, the program operation of the <AF> subroutine is performed as shown in FIG.

くAF〉に飛ぶとまず、Sランプフラグが立っているか
否かを判別し、立っているときはSランプを点灯させる
。次に、AF用CPU22は合焦センサ20へ積分スタ
ート信号を送る。積分スタート信号を受けると合焦セン
サ20は光電変換を行ない、被写体のコントラストに応
じた電荷を蓄える。このときA/Dコンバータ21 (
第2図参照)内部のAGC回路により電荷を’7iti
視し、電荷がA/Dコンバータ21のダイナミックレン
ジに十分な量になると積分を中1[−させる。この積分
期間中、AF用CPU22は内部タイマーを駆動し積分
時間を計A11lする。これは被写体輝度レベルを判別
するために使われる。次にSランプが消灯され、ITI
MEと積分時間を比較し、積分時間がITIMEより長
いときは、LLフラグ(ローライトフラグ)がセットさ
れる。
When the camera jumps to AF>, it first determines whether or not the S lamp flag is set, and if so, lights up the S lamp. Next, the AF CPU 22 sends an integration start signal to the focus sensor 20. Upon receiving the integration start signal, the focus sensor 20 performs photoelectric conversion and stores a charge corresponding to the contrast of the subject. At this time, the A/D converter 21 (
(See Figure 2) The internal AGC circuit reduces the charge.
When the amount of charge becomes sufficient for the dynamic range of the A/D converter 21, the integration is changed to 1 [-]. During this integration period, the AF CPU 22 drives an internal timer to total the integration time A11l. This is used to determine the subject brightness level. Next, the S lamp is turned off and the ITI
ME and the integration time are compared, and if the integration time is longer than ITIME, the LL flag (low light flag) is set.

一方、A/Dコンバータ21においては合焦センサ20
の電荷を順次、A−D変換しデータをAFJIICPU
22へ転送する。そしてA F Jll CP U22
内でRAMに格納される。このセンサデータの人力が終
了すると、レンズROMに格納されているシフト岳の最
大値SMAXを読み込む。位相差量の計算範囲はこのS
MAXで規制される。演算は負側から順番に行なうため
、SMAXの符号を反転しSへ格納する。そしてシフト
量Sの値を1つずつ増しながら前記評価式(3)によっ
てF (S)を計算する。この計算された値はFLAS
□に毎回格納される。Sの値がSMAXに達しても位相
差が検知できないときはLLフラグをセットし演算は終
了する。F (S)の値が負になると前回のF (S)
の値であるFLASTと今回のF (S)で補間値を計
算し、シフトmSに加算する。この=1算された位相差
はERRORとしてCPUのRAMに格納される。次に
この演算に用いられたセンサのデータが適性であるか否
かをデータのMAXとM I Nの差で判別し、差が小
さいときは被写体のコントラストが不十分なものとして
LCフラグをセットする。
On the other hand, in the A/D converter 21, the focus sensor 20
Sequentially converts the charges from A to D and sends the data to the AFJII CPU.
Transfer to 22. And A F Jll CP U22
The data is stored in RAM within the system. When the manual input of this sensor data is completed, the maximum value SMAX of the shift peak stored in the lens ROM is read. The calculation range of the amount of phase difference is this S
Regulated by MAX. Since calculations are performed in order from the negative side, the sign of SMAX is inverted and stored in S. Then, F (S) is calculated using the evaluation formula (3) while increasing the value of the shift amount S one by one. This calculated value is FLAS
Stored in □ every time. If the phase difference cannot be detected even when the value of S reaches SMAX, the LL flag is set and the calculation ends. If the value of F (S) becomes negative, the previous F (S)
An interpolated value is calculated using the value FLAST and the current F (S), and added to the shift mS. This phase difference calculated by 1 is stored in the RAM of the CPU as ERROR. Next, it is determined whether the sensor data used for this calculation is suitable or not based on the difference between MAX and MIN of the data, and if the difference is small, the LC flag is set as the object has insufficient contrast. do.

「1び第50図に戻って、今、くAF〉の測距動作後、
LLフラグ、LCフラグのいずれもクリアされた状態に
あるときは、くパルス〉のルーチンを呼び出し、レンズ
駆動量か計算される。即ち、このくパルス〉のル−チン
では、−)l ii己<AF>の動作で求められたA 
F (all距)演算出力値を各交換レンズ毎の距離移
動量に変換するためにレンズデータ回路18から変倍係
数等の情報を読み取り、この読み取った変倍係数とAF
演算出力値により合焦点までの移動機に相当するパルス
(アドレス信号)数が計算される。
Returning to Figures 1 and 50, now, after the distance measurement operation of AF,
When both the LL flag and the LC flag are cleared, the routine ``Pulse'' is called and the amount of lens drive is calculated. That is, in the routine of <Pulse>, the A obtained by the operation of <AF>
In order to convert the F (all distance) calculation output value into a distance movement amount for each interchangeable lens, information such as a magnification coefficient is read from the lens data circuit 18, and the read magnification coefficient and AF are
The number of pulses (address signals) corresponding to the mobile device reaching the in-focus point is calculated from the calculation output value.

このあと、上記AF演算出力値(ERROR)と、レン
ズデータ回路18より読み出したAF精度スレッショル
ドEThとを比較し、上記AF演算出力値(ERROR
)がAF精度スレッショルドEThよりも大きければ、
■へ進み、RETRYフラグの判別を行なう。1回口の
AF動作では、RETRYフラグが0であることがらR
ETRYフラグのセットがおこなわれたあと、上記駆動
パルス数がセーブされる。そして、2回目以降のAF動
作ではRETRYフラグがセットされているので、今回
の駆動パルス数と前回の駆動パルス数とが比較される。
After that, the AF calculation output value (ERROR) is compared with the AF accuracy threshold ETh read from the lens data circuit 18, and the AF calculation output value (ERROR) is compared with the AF accuracy threshold ETh read from the lens data circuit 18.
) is larger than the AF accuracy threshold ETh, then
Proceed to (2) to determine the RETRY flag. In the first AF operation, since the RETRY flag is 0, R
After the ETRY flag is set, the number of drive pulses is saved. Since the RETRY flag is set in the second and subsequent AF operations, the current number of drive pulses and the previous number of drive pulses are compared.

このとき、前回パルス数に比較して今回パルス数の方が
移動ゴだけ少なめになっていれば、レンズ駆動により合
焦点に近づいたことになるので、次のレンズ駆動では、
さらに、より一層近づくであろうということになり、前
回パルスに代って今回パルスがセーブされ、く〜IDR
IVAF>のルーチンを呼び出し、レンズ駆動を行なう
At this time, if the number of pulses this time is smaller than the number of pulses last time by the amount of movement, it means that the lens drive has approached the in-focus point, so in the next lens drive,
Furthermore, it was decided that the current pulse would be even closer, so the current pulse was saved instead of the previous pulse, and the IDR
IVAF> routine is called to drive the lens.

前回パルスと今回パルスとの比較を行なう目的は、AF
シーケンス全体の発散動作を防ぐことにある。両者を比
較する仕方としては、(今回パルス数):(前回パルス
数X O,5) 、或いは(今回パルス数)=(前回パ
ルス数X 1.5)等が考えられる。APシーケンスの
系が発散状態にありそうなときは彼写体移動中にAF動
作を行なわせることが考えられるので、この場合には、
速やかにレンズ駆動を中止し、AP動作の無駄を防ぐた
めにMフラグをセットして■へ進み<SD I 5CN
T〉、<CALDIS>のルーチンを1呼び出す。
The purpose of comparing the previous pulse and the current pulse is to
The purpose is to prevent divergent behavior of the entire sequence. Possible ways to compare the two are (current pulse number):(previous pulse number X O,5), or (current pulse number)=(previous pulse number X 1.5). If the AP sequence system is likely to be in a divergent state, it may be possible to perform AF operation while the subject is moving, so in this case,
Immediately stop lens driving, set the M flag to prevent wasteful AP operation, and proceed to ■<SD I 5CN
T>, call 1 routine of <CALDIS>.

」二足<MDRIVAF>によってレンズ駆動が行なわ
れたのち、AF小ループウンタのセットされたAF動作
の71−1距回数値から1を減じる。そして、この結果
、AF小ループウンタの値が0になっていない場合は、
I T I M Eレジスタに積分時間をセットし、そ
して、AFENA信号がアクティブ(つまり、レリーズ
釦の1段目の動作がオン)になっているとき、次回のA
P動作のために、◎に戻る。こうして、◎−◎間のAF
動作が繰り返し行なわれる毎にAF小ループウンタの値
が1回ずつ減じられていくことにより、次第に合焦点に
近づくことになるが、AF小ループウンタの値が0にな
ってもAF演算出力値(ERROR)が上記AF精度ス
レッシシルトEThよりも小さくならないときは合焦不
能であるとしてMフラグがセットされることになる。
After the lens is driven by MDRIVAF, 1 is subtracted from the 71-1 distance value of the AF operation set in the AF small loop counter. As a result, if the value of the AF small loop counter is not 0,
Set the integration time in the ITIM E register, and when the AFENA signal is active (that is, the first operation of the release button is on), the next A
Return to ◎ for P action. In this way, AF between ◎-◎
Each time the operation is repeated, the value of the AF small loop counter is decremented once, which gradually brings the focus closer to the focused point. However, even if the value of the AF small loop counter reaches 0, the AF calculation output value (ERROR ) does not become smaller than the AF accuracy threshold ETh, it is determined that focusing is impossible and the M flag is set.

上記◎−■間のAF動作の結果、ERROR<EThに
なると、つまり−に記AF演算出力値(ERROR)が
ピント誤差範囲内になると、AFステータスフラグをク
リアして合焦状態に至ったことを示し、<5DISCN
T>、<CALDIs>のルーチンを呼び出す。
As a result of the AF operation between ◎ and ■ above, if ERROR<ETh, that is, if the AF calculation output value (ERROR) noted in - falls within the focus error range, the AF status flag is cleared and the in-focus state is reached. and <5DISCN
T>, calls the <CALDIs> routine.

ここで、上記<AF>の動作後、もし、LLフラグ或い
はLCフラグがセットされていれば、Sランプフラグの
状態がテストされる。このとき、Sランプフラグが事前
に“1”にセットされていれば、AFのための積分動作
中にSランプ27aが点灯していたにもかかわらずロー
ライト、ローコントラストの状態になったことになるの
で、この場合は、再度LCフラグをテストし、ローコン
トラストの場合のみくレンズNF(合焦不能)〉のルー
チンを呼び出し、合焦不能の積極的表示を行なう。即ち
、このくレンズNF>のルーチンでは、まず、レンズを
一旦、最至近位置まで繰り出したのち、無限遠(ψ)位
置まで繰り込ませ、このレンズの大幅な移動によって積
極的に合焦不能をユーザに知らせる。なお、合焦不能を
表わすレンズとしては無限遠(oa)位置から最至近位
置へ繰り出す動作であってもよい。また、このくレンズ
NF>では、無限遠(oo)位置に当て付くことにより
、レンズ距離環の無限遠(■)位置からの駆動パルス数
(移動アドレス信号数)をセーブするための絶対距離カ
ウンタのイニシャライズが行なわれる。もし、ローコン
トラストでなければ、ローライトでありながらAFの演
算が行なわれたことになるので、この場合は、■に戻る
Here, after the <AF> operation described above, if the LL flag or LC flag is set, the state of the S lamp flag is tested. At this time, if the S lamp flag had been set to "1" in advance, the low light and low contrast state would have occurred even though the S lamp 27a was lit during the integration operation for AF. Therefore, in this case, the LC flag is tested again, and in the case of low contrast, the only lens NF (unable to focus) routine is called to actively display the inability to focus. That is, in this lens NF> routine, the lens is first extended to the closest position, then retracted to the infinity (ψ) position, and the lens is actively moved to prevent focusing. Inform users. Note that the lens indicating the inability to focus may be moved from the infinity (OA) position to the closest position. In addition, in this lens NF>, an absolute distance counter is used to save the number of drive pulses (number of movement address signals) from the infinity (■) position of the lens distance ring by hitting the infinity (oo) position. is initialized. If the contrast is not low, it means that the AF calculation has been performed even though the light is low, so in this case, the process returns to (2).

また、Sランプフラグが°1#前にクリアされていたと
きには、以前にはSランプ27aが消灯していたことに
なるので、LLフラグ、或いはLCフラグがセットされ
ている場合は、Sランプフラグをセットし、■に進む。
Also, if the S lamp flag was cleared 1# ago, it means that the S lamp 27a was previously off, so if the LL flag or LC flag is set, the S lamp flag Set and proceed to ■.

従って、2回]」以降のAF動作でSランプ27aが点
灯することになる。
Therefore, the S lamp 27a will be lit in the subsequent AF operations.

いずれにしろ、<AFS IN2>の動作の終りには<
5DISCNT>のルーチンが呼び出されて実行された
のち、<CALDIS>が呼び出される。<5DISC
NT>では絶対距離カウンタに距離環の無限遠(■)位
置からの駆動パルス数がセットされる。そして、<CA
LDIS>において、上記の絶対距離カウンタにセット
されたパルス数と、レンズデータ回路18内の絶対距離
係数a、  bとから、肢写体までの絶対距離の演算が
行なわれ、この求めらた絶対距離と絶対距離カウンタの
内容がメインCPU14に送られる。この<CALDI
S>での絶対距離の計算については後に詳述する。<C
ALDIS>が実行されたあとは、第4図に示す<AF
SIN>のフロー中の<AFSIN2>の動作後の位置
にリターンする。
In any case, at the end of the <AFS IN2> operation, <
After the routine 5DISCNT> is called and executed, <CALDIS> is called. <5 DISC
NT>, the number of driving pulses from the infinite distance (■) position of the distance ring is set in the absolute distance counter. And <CA
LDIS>, the absolute distance to the limb object is calculated from the number of pulses set in the absolute distance counter and the absolute distance coefficients a and b in the lens data circuit 18. The distance and the contents of the absolute distance counter are sent to the main CPU 14. This<CALDI
The calculation of the absolute distance with S> will be described in detail later. <C
After the <ALDIS> is executed, the <AF
Return to the position after the operation of <AFSIN2> in the flow of <SIN>.

次に、前記第3図に示すフローにおいて、<AFSEQ
>のモードが選択された場合には、第7図に示す<AF
SEQ>のルーチンが呼び出される。この<AFSEQ
>では、レリーズ釦の第1段目の動作が行なわれると、
このあと、EOFAF信号がアクティブになるまでの第
1回11のAF動作は、前記<AFS IN>の場合と
全く同じ動作を実行する。つまり、<AFS IN>も
<AFSEQ>も<AFSIN2>の動作が行なわれ、
合焦不能時には、積極的にレンズを異常駆動させユーザ
に知らせる。
Next, in the flow shown in FIG. 3, <AFSEQ
> mode is selected, the <AF mode shown in Fig. 7 is selected.
SEQ> routine is called. This <AFSEQ
> Then, when the first step of the release button is activated,
After this, the first 11 AF operations until the EOFAF signal becomes active are performed exactly the same as in the case of <AFS IN>. In other words, both <AFS IN> and <AFSEQ> perform the operation of <AFSIN2>,
When focusing is not possible, the lens is actively driven abnormally and the user is notified.

ところで、<AFS IN2>では、前述したように、
ローライト、ローコントラストのときはSランプ27a
を用いてAF動作のための測距を補助するようにしてい
るが、<AFSEQ>のモードで、AF動作連続させる
ときも、同様にSランプ27aを使用するようにすると
、Sランプ27aは<AF>におけるCCD積分動作の
時間中に連続して点灯発光することとなり、消費電流の
増大およびSランプ27aの発熱による効率低下が発生
することになるとともに、合焦不能時にレンズの異常駆
動が連続して行なわれ、ユーザに対して不安感を与える
ものとなる。
By the way, in <AFS IN2>, as mentioned above,
S lamp 27a for low light and low contrast
is used to assist distance measurement for AF operation, but if you use the S lamp 27a in the same way when performing continuous AF operation in <AFSEQ> mode, the S lamp 27a will During the CCD integration operation in AF>, the light is emitted continuously, resulting in an increase in current consumption and a decrease in efficiency due to heat generation of the S lamp 27a, as well as continuous abnormal driving of the lens when focusing is not possible. This creates a sense of anxiety for the user.

そこで、<AFSEQ>では、AP動作が1回天行され
てEOFAF信号がセットされたあと、AFENA信号
を判別し、同信号がアクティブであれば、レリーズ釦の
第1段目の動作が継続されていることであり、<AFS
EQ2>のルーチンが呼び出される。AFENA信号が
ノンアクティブであれば、レリーズ釦の第1段口の動作
がオフ、若くは第2段口の動作がオンに至ったものとし
てリターンすることになる。<AFSEQ2>では後述
するように、合焦センサ20のCCD積分、APの演算
およびレンズの駆動等が行なわれるが、レンズの異常駆
動による積極的合焦不能表示およびil?J距のための
Sランプ27aの点灯も行なわれない。そして、この<
 A F S E Q 2 >の動作の結果、AFステ
ータスフラグの判別がなされ、同フラグが0てあれば合
焦OKの表示が行なわれ、0でなければ合焦不能の表示
が行なわれる。合焦OKの表示のあとは、EOFAF信
号が発せられてレリーズ釦の第2段1]の動作による露
出シーケンスの開始が可能となる。このEOFAF信号
が発せられたあと、或いは合焦不能の表示がなされたあ
とは、再度、AFENA信号のテストに入るので、レリ
ーズ釦の第1段口の動作をオンしつづける限りは、<A
FSEQ2>を中心としたAF動作が連続して行なわれ
る。そして、AFENA信号がノンアクティブになった
とき、第3図に示すパワーオン・リセットのフローの切
期動作にリターンする。なお、EOFAF信号のクリア
は、次回のAP動作におけるCCD積分の後、或いはリ
ターン後の、!10イニシャライズ(第3図参照)にお
いてなされる。
Therefore, in <AFSEQ>, after the AP operation is completed once and the EOFAF signal is set, the AFENA signal is determined, and if the signal is active, the operation of the first stage of the release button is continued. <AFS>
The routine EQ2> is called. If the AFENA signal is inactive, it is assumed that the operation of the first stage opening of the release button is OFF, and the operation of the second stage opening of the release button is turned ON, and the process returns. In <AFSEQ2>, as will be described later, CCD integration of the focus sensor 20, AP calculation, lens drive, etc. are performed, but active focusing failure display and il? due to abnormal lens drive are performed. The S lamp 27a for the J distance is also not lit. And this <
As a result of the operation AF S E Q 2 >, the AF status flag is determined, and if the flag is 0, a display indicating that the focus is OK is displayed, and if it is not 0, a display indicating that the focus is not possible is displayed. After the focus OK indication is displayed, the EOFAF signal is generated, and it becomes possible to start the exposure sequence by operating the second stage 1 of the release button. After this EOFAF signal is emitted or after the display indicating that the focus is not possible is displayed, the AFENA signal test is started again, so as long as the first stage of the release button is kept on, <A
AF operation centered on FSEQ2> is performed continuously. Then, when the AFENA signal becomes non-active, the process returns to the cut-off operation of the power-on reset flow shown in FIG. Note that the EOFAF signal should be cleared after CCD integration in the next AP operation or after return! 10 initialization (see FIG. 3).

」1記<AFSEQ>のモードのフローチャー1・にお
いて、<AFSEQ2>のサブルーチンのプログラム動
作は第8図に示すようにして行なわれる。
In flowchart 1 of the <AFSEQ> mode, the program operation of the <AFSEQ2> subroutine is performed as shown in FIG.

ます、ITIMEレジスタに積分時間がセットされたの
ち、AFステータスフラグがクリアされ、Sランプフラ
グがクリアされる。このあと、くレンズ・リード〉のサ
ブルーチンか呼び出され、ここでレンズデータ回路18
内のレンズデータが読み出される。そして、<AF >
のルーチンで、測距かおこなわれたあと、一旦、AF表
示回路24をオフにし、合焦OK表示用LED24a、
合焦不能表示用LED24bのいずれも点灯しないよう
にする。つまり、レンズ駆動中はAF用表示を行なわな
いようにする。続いて、EOFAF信号をクリアしたの
ち、LCフラグを判定し、ローコントラストであればリ
ターンし、ローコントラストでなければくパルス〉のサ
ブルーチンを呼び出す。なお、ローラーイトであっても
、コントラストがある場合には測距演算は可能であるの
で、LLフラグの判定はあえて省略している。くパルス
〉では、前述したように、<AF>の動作で求められた
AF演算出力値を交換レンズ毎の距離移動量に変換する
ためにレンズデータ回路18から変倍係数を=み取り、
これとAF演算出力値とから駆動パルス1ft(アドレ
ス数)の計算が行なわれる。
First, after the integration time is set in the ITIME register, the AF status flag is cleared and the S ramp flag is cleared. After this, the lens read subroutine is called, and the lens data circuit 18 is called.
The lens data within is read out. And <AF>
In the routine, after distance measurement is performed, the AF display circuit 24 is turned off, and the focus OK display LED 24a,
None of the out-of-focus display LEDs 24b is turned on. In other words, the AF display is not performed while the lens is being driven. Subsequently, after clearing the EOFAF signal, the LC flag is determined, and if the contrast is low, the process returns, and if the contrast is not low, the subroutine ``delete pulse'' is called. Note that even if it is a low light, distance measurement calculations are possible if there is contrast, so the determination of the LL flag is intentionally omitted. As described above, in the <Pulse>, the variable magnification coefficient is obtained from the lens data circuit 18 in order to convert the AF calculation output value obtained by the <AF> operation into the amount of distance movement for each interchangeable lens.
A drive pulse of 1 ft (number of addresses) is calculated from this and the AF calculation output value.

そして、上記AF演算出力値(ERROR)とレンズデ
ータであるAF粘度スレッショルドEThとの比較がな
され、上記ERRORが上記スレッショルドEThより
も大きければ、<MDRIVAF>が呼び出され合焦点
の位置までレンズ駆動が行なわれる。このあと、<5D
ISCNT>が呼び出されて絶対距離カウンタに、レン
ズの無限遠(■)に繰り込まれた位置を基準とする駆動
パルス数がセットされ、続いて、<CALDIS>にお
いて、上記絶対距離カウンタにセットされた駆動パルス
数とレンズデータである絶対距離係数a、bとから彼写
体までの絶対距離が演算されると、このあとリターンす
る。この絶対距離の演算値および上記絶対距離カウンタ
にセットされた駆動パルス数とがメインCPU14に送
られる。
Then, the AF calculation output value (ERROR) is compared with the AF viscosity threshold ETh, which is lens data, and if the ERROR is larger than the threshold ETh, <MDRIVAF> is called and the lens is driven to the in-focus position. It is done. After this, <5D
ISCNT> is called and the number of drive pulses based on the position retracted to infinity (■) of the lens is set in the absolute distance counter, and then in <CALDIS>, the number of driving pulses is set in the absolute distance counter. After the absolute distance to the object is calculated from the number of driving pulses and the absolute distance coefficients a and b, which are lens data, the process returns. The calculated value of the absolute distance and the number of drive pulses set in the absolute distance counter are sent to the main CPU 14.

また、上記ERRORが上記スレッショルドEThより
もピント誤差範囲内に納まる程度に小さければ、AFス
テータスフラグをクリアしてリターンする。
Furthermore, if the ERROR is smaller than the threshold ETh to the extent that it falls within the focus error range, the AF status flag is cleared and the process returns.

次に、前記第3図に示すフローにおいて、<PF〉のモ
ードが選択された場合には、第9図に示す<PF>のル
ーチンが呼び出される。このくPF〉のルーチンでは、
まず、AFENA信号の判定が行なわれて同信号がアク
ティブでなければリターンし、アクティブであれば、即
ち、レリーズ釦の第1段1」がオンになっていれば、E
OFAF信号をセットシてレリーズ釦の第2段目の動作
が受は付けられるようになる。つまり、PF時はいっで
も露出シーケンスへの移行カミ1能となる。このあと、
くレンズ・リード〉が呼び出され、レンズデータ回路1
8内のパワーフォーカスデユーティ係数等のレンズデー
タの読み出しが行なわれたのち、状態変化フラグがクリ
アされる。状態変化フラグとしては、スピード変化時に
セットされるDIFSP (スピード変化)フラグ、モ
ード変化時にセットされるDIFMOD(モード変化)
フラグかある。このあと、くモート・リード〉が呼び出
され、ここで、レンズ回転方向およびレンズ駆動のスピ
ードの指示が読み取られて、レンズ回転方向のUP(ア
ップ)とDN(ダウン)のセット或いはクリア、および
SP(スピード)フラグのセット或いはクリアが行なわ
れる。すなわち、前記表1に示したレンズ駆動モードに
関する操作スイッチsw  −5w4のオン、オフ状態
が読み取られることになる。この<PF>モードでは操
作スイッチSW3がオンであり、さらに、PFUP用操
作スイッチSWlをオンにしたときはレンズ回転方向は
UP(レンズ繰り出し)方向となり、またPFDN用操
作スイッチSW2をオンにしたときはレンズ回転方向は
DN(レンズ繰り込み)方向となる。そして、SPフラ
グの判別が行なわれるが、前記操作スイッチSW4をオ
ンにしたときはこのSPフラグがセットされることとな
り、この場合、レンズ駆動モータ31 (第2図参照)
を駆動するパルス電流のオン、オフのデユーティ比が高
く設定され、レンズの繰り出し或いは繰り込み移動が高
速で行なわれる。操作スイッチSW4がオフのときはS
Pフラグはクリアされているので、この場合はモータ駆
動用パルス電流のデユーティ比が低く設定されレンズの
移動が低速で行なわれる。このあと、<PDRV>のサ
ブルーチンを呼び出す。この<PDRV>では、に記設
定されたデユーティ比に!、ζいてモータ31のオン、
オフが制御され1パルス分のレンズ駆動が行なわれる。
Next, in the flow shown in FIG. 3, if the <PF> mode is selected, the <PF> routine shown in FIG. 9 is called. In the routine of this PF〉,
First, the AFENA signal is determined, and if the signal is not active, it returns. If it is active, that is, if the first stage of the release button is on, the E
By setting the OFAF signal, the second stage operation of the release button can be accepted. In other words, it is possible to shift to the exposure sequence at any time during PF. after this,
lens read> is called and lens data circuit 1
After the lens data such as the power focus duty coefficient in 8 is read out, the state change flag is cleared. Status change flags include the DIFSP (speed change) flag, which is set when the speed changes, and the DIFMOD (mode change) flag, which is set when the mode changes.
There's a flag. After this, ``Kumote Read'' is called, and here the instructions for the lens rotation direction and lens drive speed are read, and the UP (up) and DN (down) of the lens rotation direction are set or cleared, and the SP A (speed) flag is set or cleared. That is, the on/off state of the operation switch sw-5w4 regarding the lens drive mode shown in Table 1 is read. In this <PF> mode, the operation switch SW3 is on, and when the PFUP operation switch SWl is turned on, the lens rotation direction is the UP (lens extension) direction, and when the PFDN operation switch SW2 is turned on, the lens rotation direction is the UP (lens extension) direction. The lens rotation direction is the DN (lens retraction) direction. Then, the SP flag is determined, and when the operation switch SW4 is turned on, this SP flag is set, and in this case, the lens drive motor 31 (see FIG. 2)
The on/off duty ratio of the pulse current that drives the lens is set high, and the lens is extended or retracted at high speed. S when operation switch SW4 is off.
Since the P flag is cleared, in this case, the duty ratio of the motor driving pulse current is set low and the lens is moved at a low speed. After this, the <PDRV> subroutine is called. In this <PDRV>, the duty ratio set in ! , ζ turns on the motor 31,
The off state is controlled and lens driving for one pulse is performed.

続いて、レンズが無限遠(oa)或いは至近のリミット
位置に当て付いて停止しているか否かの判定が行なわれ
たのち、リミット位置に当って停止しているときには、
モータに100ms程度のブレーキをかけ、<5DIS
CNT>を呼び出して絶対距離カウンタをセットする。
Next, it is determined whether the lens has stopped against the limit position at infinity (OA) or a nearby limit position, and if the lens has stopped against the limit position, then
Apply a brake to the motor for about 100ms, <5DIS
CNT> to set the absolute distance counter.

そして、この状態のまま、モード信号に変更がな(上か
どうか、くモードφチェンジ〉のループを廻りつつウェ
イトしている。この〈モード・チェンジ〉では、PFU
P用操作スイッチSW、、PFDN用操作スイッチSW
2の状態変化(モード変化)と、スピード用操作スイッ
チSW4の状態変化(スピード変化)とをチェックして
おり、モー1−変化があった場合には、DrFMODフ
ラグをセットシ、スピード変化があった場合には、D 
I FSPフラグをセットしている。そして、このうち
、DIFMODフラグがセットされている場合にはこれ
を1′11定して■に戻る。
Then, in this state, there is no change in the mode signal (whether it is up or not, it waits while going around the loop of mode φ change).In this <mode change>, the PFU
P operation switch SW, PFDN operation switch SW
The state change (mode change) of 2 and the state change (speed change) of the speed operation switch SW4 are checked, and if there is a change in mode 1, the DrFMOD flag is set and the speed change is detected. In this case, D
IFSP flag is set. If the DIFMOD flag is set, it is set to 1'11 and the process returns to (2).

一方、レンズがリミット位置に至らない正常のパワーフ
ォーカス動作の場合には、<5PCTL〉のルーチンで
、レンズ駆動スピードが決められたtll動、微動の速
度になるように、上記のモータのオン・オフのデユーテ
ィ比を微調整する。即ち、レンズ駆動モータのオン、オ
フによる速成調整は<PDRV>と<5PCTL>とニ
ヨッテ行ナワれることになる。このあと、AFENA信
号をチェックし、同信号がアクティブであるときは、即
ち、レリーズ釦の第1段目の動作がオンになっている状
態ではくモード・チェンジ〉を呼び出し、このとき、ス
ピード変更がなされてDIFSPフラグがセットされて
いる場合は、このまま[F]に戻り、スピード液化がな
く、D I FMODフラグがセットされてモード変化
がなされた場合にはくブレーキ〉が呼び出されてモータ
を停止させ、く5DISCNT>にて絶対距離カウンタ
をセットして[F]に戻る。スピード変化もモード変化
もない場合には<PDRV>に戻り、レリーズ釦の第1
段目の動作をオンにしつづける限り、<PDRV>と<
5PCTL>によるPF動作が継続される。
On the other hand, in the case of normal power focus operation in which the lens does not reach the limit position, the above motor is turned on and off in the <5PCTL> routine so that the lens drive speed reaches the predetermined tll movement and fine movement speeds. Fine-tune the off duty ratio. That is, the quick adjustment by turning on and off the lens drive motor is performed in parallel with <PDRV> and <5PCTL>. After this, the AFENA signal is checked, and if the signal is active, that is, the first operation of the release button is not on, and the mode change is called, and at this time, the speed can be changed. is done and the DIFSP flag is set, it returns to [F] as it is, and if there is no speed liquefaction and the DIFSP flag is set and a mode change is made, the brake is called and the motor is stopped. Stop, set the absolute distance counter with 5DISCNT>, and return to [F]. If there is no speed change or mode change, return to <PDRV> and press the first release button.
As long as the operation of the second stage is turned on, <PDRV> and <
5PCTL> continues.

レリーズ釦の第1段1」の動作をオフにすると、AFE
NA信号がインアクティブになり、即ち、PF動作の終
了がメインCPU14から指示され、くブレーキ〉が呼
び出されてモータを停止させ、<5DISCNT>にお
いて絶対距離カウンタをセットする。そして、このセッ
トされた絶対距離カウンタの内容即ち、無限遠(■)位
置からの移動アドレス数とレンズデータ回路18内の絶
対距離係数a、bとから、<CALDIS>で演算が行
なわれて絶対距離が算出され、この算出された絶対距離
情報がメインCPU14へ送られる。この<CALDI
S>のあとリターンし、パワーオン・リセットの初期状
態に戻る。
When the operation of the first stage 1 of the release button is turned off, the AFE
The NA signal becomes inactive, that is, the end of the PF operation is instructed by the main CPU 14, the brake> is called to stop the motor, and the absolute distance counter is set at <5DISCNT>. Then, calculation is performed in <CALDIS> from the contents of the set absolute distance counter, that is, the number of moving addresses from the infinite (■) position and the absolute distance coefficients a and b in the lens data circuit 18. The distance is calculated, and the calculated absolute distance information is sent to the main CPU 14. This<CALDI
After S>, the program returns to the initial state of power-on reset.

[発明の効果] 以上述べたように、本発明によればシフI−演算は撮影
レンズ固有の位相差fit(シフト量)の最大値SMA
Xにより制限され、規定範囲内のみて行なわれるか、ま
たは広範囲にわたり行なうが演算結果の中で規定範囲外
のものは廃棄するようにしたので必要な位相差4だけを
取得することができ、従ってJった演算結果によるレン
ズの異常な動きを防電することができるという顕暮な効
果を発揮する。
[Effects of the Invention] As described above, according to the present invention, the shift I calculation is performed using the maximum value SMA of the phase difference fit (shift amount) specific to the photographic lens.
It is limited by This has the remarkable effect of being able to prevent abnormal movements of the lens due to the calculated results.

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

第1図は、本発明の位相差式焦点検出方法を適用したカ
メラシステムのオートフォーカス部を中心として示した
パワーコントロール回路の概略構成ブロック図 第2図は、上記第1図中のオートフォーカス回路部の信
号の授受を示す概略ブロック図、第3図〜第9図は1、
上記第2図に示したA F l1iCPUを中心とした
プログラム動作を表したフロ−チャート、 第10図は、位相差方式における焦点検出センサーと光
学系の位置関係を示す線図、 第11図は、上記第10図の焦点検出センサーの出力特
性曲線図、 第12図(a)(b)(c)は、−に記第10図の焦点
検出センサーの構成を示すものであって、第12図(a
)は各ペアで配置される光電変換素子の正面図、第12
図(b)は光電変換素子群とレンズレフトとの配置関係
を示す側面図、第12図(c)はレンズレットを通じて
光電変換素子に入射する光束を示す線図、 第13図および第14図は、焦点検出センサーの出力特
性曲線図であって、それぞれシフトさせる状態を示す線
図、 第15図および第16図は、焦点検出センサーの出力特
性曲線において、位相差がそれぞれt(数個発生するこ
とを説明するための各線図である。 22・・・・・・AFJIICPU(演算用CPU)躬
4 厘 鳥6図 馬10囮 島11図 を子番号 島12囮 方13に 1 シフト       bs    b2  bs 
  bs            bN−4bs−s 
 bll−z  bx−+Sシフト         
        bs   b2−−−−−−−−−−
−−−−− m−5−z bN−s−+ bs−s+I
I+)++1 馬14図 ;シフ44    a+   a2 03  04  
−−−−−−−−−−−−−−−−−−−−  0N−
3aN−z  QN−1ONQシVト   1)+  
 bz   bs   ba            
    bN−sbN−zbN−rbN司シフトbz 
  bs   b4  bs           b
N−1bm−2b+l  bN−2シフト   1)3
   ba  bs   bg        bN、
sbN−gbN−+  bN−5シフト   tn令+
  bs*a bs*s  −−−−−−−−−−−−
−bN−+  bN1手  続  補  +E  書 
(自発)昭和61年 1月2811 1、事件の表示     昭和60年特許願第2805
38号2、発明の名称     位相7::#j、i点
検出ノj法3、補正をする者 名 称     (037)  オリンパス光学工業株
式会社4、代理人 5、補正の対象 「明細書の発明の詳細な説明の欄」および図面(1)明
細書節4頁′;j58行に記・1&の「F=Σ””n−
bn++l  lb、  ”n+11)・・・・・−(
21Jを、に改めます。 (2)同第5頁第17行に記載の rF(S)=Σ(Ian+5−bn+11 1bn−b
n+5−11戸・・・・・(3)」を、rF(S)=Σ
 (Ian+5−bn+11 1bn−bn+5−II
)”””(3月に改めます。 (3)同第5頁末行に記載の rl”(S)=Σ (Iafi−bn−8+11 1b
、−5−bn+11)”・・”(3月を、に改めます。 (4)同第6頁第14行に記載の に改めます。 (5)同第26頁第9行中に記載した「シフト量Sに加
算する。」を、「前Hのシフト” 5LASTに加算す
る。」に訂正します。 (6)願書に添付した図面中、第6図を別添の図面に改
めます。
FIG. 1 is a schematic block diagram of a power control circuit mainly showing the autofocus section of a camera system to which the phase difference focus detection method of the present invention is applied. FIG. 2 is the autofocus circuit shown in FIG. 1 above. A schematic block diagram showing the transmission and reception of signals between the parts, Figures 3 to 9 are 1,
A flowchart showing the program operation centered on the A Fl1i CPU shown in Fig. 2 above, Fig. 10 is a diagram showing the positional relationship between the focus detection sensor and the optical system in the phase difference method, and Fig. 11 is , the output characteristic curve diagram of the focus detection sensor shown in FIG. 10 above, and FIGS. Figure (a
) is a front view of the photoelectric conversion elements arranged in each pair, the 12th
Figure (b) is a side view showing the arrangement relationship between the photoelectric conversion element group and the lens left, Figure 12 (c) is a diagram showing the luminous flux incident on the photoelectric conversion element through the lenslet, Figures 13 and 14. 15 and 16 are output characteristic curve diagrams of the focus detection sensor, each showing a state in which the shift is performed. FIGS. 22...AFJIICPU (computation CPU) 4 Shift 1 to child number island 12 decoy island 11 figure to child number island 12 decoy direction 13 bs b2 bs
bs bN-4bs-s
bll-z bx-+S shift
bs b2---------
----- m-5-z bN-s-+ bs-s+I
I+)++1 Horse 14 figure; Schiff 44 a+ a2 03 04
−−−−−−−−−−−−−−−−−−−− 0N−
3aN-z QN-1ONQ seat 1)+
bz bs ba
bN-sbN-zbN-rbN Tsukasa shift bz
bs b4 bs b
N-1bm-2b+l bN-2 shift 1)3
ba bs bg bN,
sbN-gbN-+ bN-5 shift tn order+
bs*a bs*s −−−−−−−−−−−
-bN-+ bN1 procedure supplement +E book
(Voluntary) January 2811, 1985 1. Indication of the case 1985 Patent Application No. 2805
38 No. 2, Title of the invention Phase 7:: #j, i-point detection method 3, Name of the person making the amendment (037) Olympus Optical Industry Co., Ltd. 4, Agent 5, Subject of amendment ``Invention of the specification "Detailed explanation column" and drawing (1) Specification section page 4';
bn++l lb, ”n+11)・・・・・・-(
21J will be changed to . (2) rF(S)=Σ(Ian+5-bn+11 1bn-b
n+5-11 houses...(3)'', rF(S)=Σ
(Ian+5-bn+11 1bn-bn+5-II
)""" (Revised in March. (3)rl" (S) = Σ (Iafi-bn-8+11 1b
, -5-bn+11) "..." (March will be changed to . (4) Changed to written on page 6, line 14 of the same. (5) Changed to written on page 26, line 9 of the same. "Add to shift amount S." will be corrected to "Add to previous H shift"5LAST." (6) Among the drawings attached to the application, Figure 6 will be changed to the attached drawing.

Claims (1)

【特許請求の範囲】 それぞれ物体の同一部分からの光束を含み、かつ異なっ
た光学的開口を通して視差を有する異なった経路に従っ
た前記物体からの光束のそれぞれの照度分布の位相差量
を演算することにより、撮影レンズの焦点合わせを行な
う位相差式焦点検出方法において、 記憶素子に記憶されている撮影レンズ個有の位相差量の
最大値S_M_A_Xをカメラ本体内の演算用CPU内
に取り込み、この演算用CPUが前記位相差量の演算を
行なうにあたり、上記最大値S_M_A_Xの範囲内で
のみ行なうことを特徴とする位相差式焦点検出方法。
[Scope of Claims] Calculating the amount of phase difference between the respective illuminance distributions of the light fluxes from the object that each include light fluxes from the same part of the object and follow different paths having parallax through different optical apertures. As a result, in the phase difference focus detection method for focusing the photographic lens, the maximum value S_M_A_X of the amount of phase difference unique to the photographic lens stored in the storage element is loaded into the calculation CPU in the camera body, and this A phase difference focus detection method, wherein the calculation CPU calculates the amount of phase difference only within the range of the maximum value S_M_A_X.
JP28053885A 1985-12-13 1985-12-13 Phase difference type focus detecting method Pending JPS62139535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28053885A JPS62139535A (en) 1985-12-13 1985-12-13 Phase difference type focus detecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28053885A JPS62139535A (en) 1985-12-13 1985-12-13 Phase difference type focus detecting method

Publications (1)

Publication Number Publication Date
JPS62139535A true JPS62139535A (en) 1987-06-23

Family

ID=17626475

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28053885A Pending JPS62139535A (en) 1985-12-13 1985-12-13 Phase difference type focus detecting method

Country Status (1)

Country Link
JP (1) JPS62139535A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013057839A (en) * 2011-09-09 2013-03-28 Nikon Corp Focus detector and imaging apparatus
JP2014074850A (en) * 2012-10-05 2014-04-24 Nikon Corp Focus adjustment device, focus detection device, and image capturing device
JP2014174460A (en) * 2013-03-12 2014-09-22 Canon Inc Focus detection device and control method of the same, imaging device, program and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013057839A (en) * 2011-09-09 2013-03-28 Nikon Corp Focus detector and imaging apparatus
JP2014074850A (en) * 2012-10-05 2014-04-24 Nikon Corp Focus adjustment device, focus detection device, and image capturing device
JP2014174460A (en) * 2013-03-12 2014-09-22 Canon Inc Focus detection device and control method of the same, imaging device, program and storage medium

Similar Documents

Publication Publication Date Title
JPS62139535A (en) Phase difference type focus detecting method
JP2690728B2 (en) Auto focus camera
JPS62157016A (en) Auto-focus camera
JPS58120225A (en) Camera
JPS62136626A (en) Lens driving device for automatic focusing camera
JP3294885B2 (en) Camera with zoom
JPS62296130A (en) Phase-difference type focus detecting method
JPS62296108A (en) Phase difference type focal point detecting method
JP3248586B2 (en) Camera system and camera
JP3360718B2 (en) camera
JPS63197925A (en) Automatic focusing camera
JPH03231729A (en) Optical equipment
JP3590815B2 (en) Image stabilization camera
JPH02272510A (en) Automatic focusing device
JP3319384B2 (en) camera
JP3483370B2 (en) Focus detection device, exposure control device, and camera
JP4086975B2 (en) Focus adjustment operation control device
JP2954861B2 (en) Automatic focusing device
JPS63141028A (en) Automatic focus adjusting device for camera
JPS63110412A (en) Focus detector
JP2745629B2 (en) Camera with auto zoom mechanism
JPS6350821A (en) Automatic focusing camera
JPH02282733A (en) Object distance information output device for camera
JPH08248499A (en) Display device for camera
JPH02201332A (en) Camera with automatic zooming mechanism