JPH0823619B2 - Autofocus camera - Google Patents

Autofocus camera

Info

Publication number
JPH0823619B2
JPH0823619B2 JP62217734A JP21773487A JPH0823619B2 JP H0823619 B2 JPH0823619 B2 JP H0823619B2 JP 62217734 A JP62217734 A JP 62217734A JP 21773487 A JP21773487 A JP 21773487A JP H0823619 B2 JPH0823619 B2 JP H0823619B2
Authority
JP
Japan
Prior art keywords
lens
amount
focus
drive
drive amount
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 - Fee Related
Application number
JP62217734A
Other languages
Japanese (ja)
Other versions
JPS6459312A (en
Inventor
良紀 松澤
真也 高橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Olympus Corp
Original Assignee
Olympus Optic 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 Optic Co Ltd filed Critical Olympus Optic Co Ltd
Priority to JP62217734A priority Critical patent/JPH0823619B2/en
Priority to US07/236,634 priority patent/US4931820A/en
Publication of JPS6459312A publication Critical patent/JPS6459312A/en
Publication of JPH0823619B2 publication Critical patent/JPH0823619B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は自動焦点調節カメラ、更に詳しくは、被写体
の結像予定焦点位置に対するずれ量を検出し、これに基
づいて合焦位置へ撮影レンズを駆動する自動焦点調節カ
メラに関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of use] The present invention relates to an automatic focusing camera, and more specifically to a shift amount of a subject with respect to an expected focus position for image formation, and based on this, a photographing lens to a focus position. The present invention relates to an automatic focusing camera that drives a camera.

[従来の技術] 自動焦点調節カメラに用いられている焦点調節方法に
は撮影レンズの全体を繰出す方法と、撮影レンズの一部
を繰出す方法とがある。
[Prior Art] Focus adjustment methods used in automatic focus adjustment cameras include a method of extending the entire photographic lens and a method of extending a part of the photographic lens.

撮影レンズの全体を繰出す場合の光路図を示す第11図
において、被写体Dは、撮影レンズがの位置にあると
き、その結像面がフィルム面に一致、つまり合焦し、
また、被写体Eは、撮影レンズがの位置にあるとき合
焦している。今、撮影レンズの焦点距離をf、主点間隔
をΔとし、被写体Dとレンズ位置との間隔を(f+
xD)、レンズ位置とフィルム面との間隔を(f+
xD′)、被写体Eとレンズ位置との間隔を(f+
xE)、レンズ位置とフィルム面との間隔を(f+
xE′)とすれば、 xExE′=f2 となるから xE′=f2/xE ………(1) となる。この被写体Eは、撮影レンズがの位置から
の位置に移動すると、フィルム面に結像できず、フィ
ルム面より距離tDE離れた面に結像する。被写体E
とレンズ位置との間隔を(f+xDE)、レンズ位置
と結像面との間隔を(f+xDE′)とすれば、図より f+xDE′=f+xD′+tDE となるから xDE′=xD′+tDE ………(2) となる。また xDExDE′=f2 につき、 xDE=f2/xDE′ ………(3) となる。そして、被写体Eの結像面をフィルム面に合
致、つまり合焦させるためには、距離(xE′−xD′)だ
け撮影レンズを繰出せばよい。
In FIG. 11 which shows an optical path diagram when the entire taking lens is extended, when the taking lens is at the position of the subject D, the image forming surface thereof coincides with the film surface, that is, is focused,
The subject E is in focus when the taking lens is at the position. Now, let the focal length of the taking lens be f, the principal point interval be Δ, and the interval between the subject D and the lens position be (f +
x D ), the distance between the lens position and the film surface is (f +
x D ′), the distance between the subject E and the lens position is (f +
x E ), the distance between the lens position and the film surface is (f +
If x E ′), then x E x E ′ = f 2 , so x E ′ = f 2 / x E ………… (1). When the photographing lens moves from the position of to, the subject E cannot form an image on the film surface, and forms an image on a surface distant from the film surface by a distance t DE . Subject E
If the distance between the lens position and the lens position is (f + x DE ), and the distance between the lens position and the image plane is (f + x DE ′), then f + x DE ′ = f + x D ′ + t DE , so x DE ′ = x D '+ t DE ……… (2). Also, for x DE x DE ′ = f 2 , x DE = f 2 / x DE ′ ... (3). Then, matching the focusing surface of the object E on the film surface, that is, for focusing, the distance (x E '-x D') only taking lens may be put out Repetitive.

被写体Eからフィルム面までの距離は、図から分か
るように、次の算式で与えられる。
As can be seen from the figure, the distance from the subject E to the film surface is given by the following formula.

f+xDE+Δ+f+xD′ =f+xE+Δ+f+xE′ 従って、 xDE+xD′=xE+xE′ ………(4) となる。この(4)式に上記(3)式を代入すれば、 (f2/xDE′)+xD′=xE+xE′ ………(5) となる。この(5)式に上記(2)式を代入すれば を得る。これをtDEについて解くと、 となる。今、xD′,xE′がxEに比べて十分に小さい場
合、上式は となる。この(6)式に上記(1)式を代入すると、 tDExE′−xD′ となる。つまり、被写体Eの結像面のずれ量tDEは、撮
影レンズ位置との状態の繰出し量の差にほぼ等しく
なる。
f + x DE + Δ + f + x D ′ = f + x E + Δ + f + x E ′ Therefore, x DE + x D ′ = x E + x E ′ (4) In this (4) Substituting equation (3) into equation becomes (f 2 / x DE ') + x D' = x E + x E '......... (5). Substituting equation (2) into equation (5) Get. Solving this for t DE , Becomes Now, if x D ′, x E ′ is sufficiently smaller than x E , the above equation becomes Becomes Substituting equation (1) into equation (6) yields t DE x E ′ −x D ′. That is, the shift amount t DE of the image forming surface of the subject E is substantially equal to the difference in the amount of extension from the position of the photographing lens.

そのため、合焦レンズの位置や焦点のずれ量によって
変らない変換係数klを考えると、撮影レンズの駆動量l
は、焦点のずれ量tDEに対し l=kl・tDE とすることができる。
Therefore, considering the conversion coefficient kl that does not change depending on the position of the focusing lens or the amount of focus shift, the driving amount l of the taking lens is
Can be set to l = kl · t DE with respect to the defocus amount t DE .

しかしながら、xD′,xE′がxEに比べて無視できない
場合、つまり、撮影レンズの繰出し量が大きくなった場
合や、撮影レンズの全体を繰出さずにレンズの一部(以
後、フォーカス群と呼称する)のみを繰出して焦点合わ
せする場合には、焦点距離や主点間隔が変化するので、
上述の近似が成立しない場合が生ずる。
However, when x D ′, x E ′ cannot be ignored compared to x E , that is, when the amount of extension of the taking lens is large, or when the entire taking lens is not extended, a part of the lens (hereinafter focus (Only referred to as a group) when focusing and focusing, the focal length and the principal point spacing change,
There are cases where the above approximation does not hold.

そのため、フォーカス群移動量と像面のずれ量の関係
は非直線形となっていて、フォーカス群の位置によっ
て、変換係数klの値が変わるため、変換係数klの値を予
め小さくとっておき、発散していつまでも合焦できなく
なることを防いだり、非線形性の大きいレンズではフォ
ーカス群の位置を検出してこれに応じて、その近傍のみ
の変換係数klの値に変えていた。
Therefore, the relationship between the amount of movement of the focus group and the amount of displacement of the image plane is non-linear, and the value of the conversion coefficient kl changes depending on the position of the focus group.Therefore, keep the value of the conversion coefficient kl small in advance and diverge. It prevents the lens from becoming out of focus forever and detects the position of the focus group in a lens with large non-linearity, and changes it to the value of the conversion coefficient kl only in the vicinity of the position.

このため、フォーカス群の移動量誤差が多く、一回で
フォーカス群を所定位置に移動させることが難しく、焦
点検出を繰り返して行ない、フォーカス群を逐次所定位
置に移動させるようにしなければならなかった。このた
め合焦時間が長くなり、迅速なる撮影が難しく、又、焦
点合わせを高精度に行なうのが難しくなる等の欠点があ
った。
Therefore, it is difficult to move the focus group to a predetermined position at one time because there is a large error in the movement amount of the focus group, and it has been necessary to repeatedly perform focus detection to sequentially move the focus group to a predetermined position. . Therefore, there are drawbacks such that the focusing time becomes long, quick shooting is difficult, and it is difficult to perform focusing with high accuracy.

これを解決するために、例えば特開昭62-78519号公報
記載の自動合焦装置では、焦点検出の出力信号とレンズ
の移動に関する基準係数とから、フォーカス群を移動さ
せる為の移動係数を求めた後、フォーカス群の移動量を
演算する手段が提案されている。また、レンズの繰り出
し量や焦点ずれ量に応じ、変換係数を用いてフォーカス
レンズ群の移動量を求めるようにした自動焦点調節カメ
ラが、本出願人より特願昭62-121790号として提案され
ている。
In order to solve this, for example, in the automatic focusing device described in JP-A-62-78519, the movement coefficient for moving the focus group is obtained from the output signal of focus detection and the reference coefficient relating to the movement of the lens. After that, means for calculating the movement amount of the focus group has been proposed. Further, according to the applicant of the present invention, Japanese Patent Application No. 62-121790 has proposed an automatic focusing camera in which the amount of movement of the focus lens group is obtained using a conversion coefficient according to the amount of lens extension and the amount of defocus. There is.

[発明が解決しようとする問題点] ところで、上述の提案では、移動係数や変換係数なる
数を求めた後に駆動量を求めているため、演算の系統的
誤差がふえたり、演算に手間がかかっていた。
[Problems to be Solved by the Invention] By the way, in the above-mentioned proposal, since the drive amount is obtained after obtaining the numbers of the movement coefficient and the conversion coefficient, systematic errors in the computation may increase and the computation may be troublesome. Was there.

従って、ピントずれが大きい場合には、1回のレンズ
駆動では合焦点までフォーカス群を移動することができ
ず、複数回測距とレンズ駆動を繰り返して合焦動作を行
なっていたため合焦迄に多くの時間がかかっていた。
Therefore, if the focus shift is large, the focus group cannot be moved to the in-focus point by one lens drive, and the focusing operation is performed by repeating the distance measurement and the lens drive a plurality of times. It took a lot of time.

そこで、本発明では、像面のずれ量の大きさによって
フォーカス群の移動量を変化させフォーカス群の移動量
を最適値に設定し測距とレンズ駆動をほとんど1回です
ませて合焦させることによって、合焦迄の時間を大幅に
減少できる自動焦点調節カメラを提供することを目的と
している。
Therefore, in the present invention, the moving amount of the focus group is changed according to the amount of shift of the image plane, the moving amount of the focus group is set to the optimum value, and focusing and focusing are performed almost once for distance measurement and lens driving. Therefore, it is an object of the present invention to provide an automatic focusing camera that can greatly reduce the time until focusing.

[問題点を解決するための手段および作用] 本発明では、その概念を第1図に示したように、撮影
レンズ1を通して被写体像が結像された像面の光軸上の
位置と、フィルム面の光軸上の位置とのずれ量に基づ
き、撮影レンズのフォーカス群の駆動量を演算してフォ
ーカス群を駆動する自動焦点調節カメラにおいて、 被写***置に対する撮影光学系の焦点ずれ量を検出す
るずれ量検出手段2と、焦点検出時の撮影レンズのフォ
ーカス群位置とズーム位置とを含むレンズ状態を検出す
るレンズ状態検出手段と、予め複数組用意され、上記レ
ンズ状態検出手段の出力に応じて適宜選択される3種類
の撮影レンズ固有データと、上記焦点ずれ量若しくは焦
点ずれ量に基づく値の−1次項、0次項、及び1次項を
含む多項式によって上記フォーカス群の駆動量を演算す
る駆動量演算手段3とを具備し、この駆動量を駆動手段
4に供給してフォーカス群を合焦点へ駆動制御する。
[Means and Actions for Solving Problems] In the present invention, as shown in FIG. 1, the concept is the position on the optical axis of the image plane where the subject image is formed through the taking lens 1, and the film. Detects the amount of defocus of the photographic optical system with respect to the subject position in an automatic focusing camera that drives the focus group by calculating the drive amount of the focus group of the taking lens based on the amount of deviation from the position on the optical axis of the surface A plurality of sets of deviation amount detecting means 2 and lens state detecting means for detecting a lens state including a focus group position and a zoom position of the photographing lens at the time of focus detection are prepared in advance, and depending on the output of the lens state detecting means. The focus group is formed by appropriately selecting three types of photographic lens-specific data and a polynomial including the defocus amount or a value based on the defocus amount, the −1st-order term, the 0th-order term, and the 1st-order term. ; And a driving amount calculation means 3 for calculating a driving amount to drive control by supplying the driving amount to the drive means 4 a focus group to focus.

ここに上記撮影レンズ固有のデータとは、通常は各撮
影レンズ毎に固有の固定されたデータである。しかし、
撮影レンズがズームレンズであったり、マクロ域まで撮
影可能のものであったり、非直線カムによってフォーカ
スレンズ群を駆動させるものであったり、あるいはイン
ナフォーカスやリヤフォーカス等のものであったりし
て、上記固有のデータが一定の値では扱いきれない場合
には、それぞれ、移動するレンズの位置の検出手段(フ
ォーカス群に対しては、フォーカス群位置検出手段,ズ
ームレンズの場合は、変倍系位置検出手段)による検出
信号によって生成したり、或いは記憶手段に記憶されて
いる固有データ列から選択したりする。そして、必要に
応じて補間され利用される。
Here, the data specific to the taking lens is usually fixed data unique to each taking lens. But,
The shooting lens is a zoom lens, it is possible to shoot up to the macro range, the focus lens group is driven by a non-linear cam, or it is such as inner focus or rear focus, When the above-mentioned unique data cannot be handled with a constant value, the moving lens position detecting means (for the focus group, the focus group position detecting means, and for the zoom lens, the zooming system position, respectively. It is generated by a detection signal by the detection means) or is selected from a unique data string stored in the storage means. Then, it is interpolated and used as needed.

また、フォーカス群の駆動量を演算するに際し、移動
係数等の演算は行なわず、直接的に駆動量を演算するも
のである。
Further, when calculating the driving amount of the focus group, the driving amount is directly calculated without calculating the movement coefficient and the like.

[実施例] 本発明の実施例の説明に先立ち、第2図,第3図を用
いて本発明の原理を説明する。
[Embodiment] Prior to the description of an embodiment of the present invention, the principle of the present invention will be described with reference to FIGS. 2 and 3.

第2図に、フォーカス群が無限遠(以下、∞と略記す
る)の位置状態にあって、各々異なる有限距離にある被
写体A,Bに合焦させる場合を考える。図中A点,B点はそ
れぞれ被写体A,Bに合焦しているフォーカス群の位置を
示している。測距をすると各々ΔxA,ΔxBがずれ量とし
て検出される。ここで1回のレンズ駆動動作で合焦させ
るためには、フォーカス群移動量ΔLA,ΔLBをそれぞ
れ、ずれ量ΔXA,ΔXBに対して一義的に決めればよい。
FIG. 2 considers a case where the focus group is in the infinite position (hereinafter abbreviated as ∞) and the subjects A and B at different finite distances are focused. In the figure, points A and B indicate the positions of the focus groups focused on the subjects A and B, respectively. When the distance is measured, Δx A and Δx B are detected as the amount of deviation. In order to focus with one lens driving operation, the focus group movement amounts ΔL A and ΔL B may be uniquely determined with respect to the shift amounts ΔX A and ΔX B , respectively.

測距する時のフォーカス群の位置によって、像面の移
動量とフォーカス群の移動量との関係がどのように変動
するかを示したものが第3図である。第2図では、測距
する時のレンズ位置は∞の時に限定されていたが、測距
する時のフォーカス群の位置によって第3図に示すよう
に像面の移動量とフォーカス群の移動量との関係が変化
する。従って、AFサイクルを1回で終了させるような駆
動量の設定には上述したようなずれ量に応じて駆動量の
値を設定するだけでは不充分であり、はじめに測距する
時のフォーカス群の位置を判別して、その時の像面の移
動量とフォーカス群の移動量との関係に応じて、ディフ
ォーカス量に対して最適な駆動量を設定する必要のある
場合もある。
FIG. 3 shows how the relationship between the amount of movement of the image plane and the amount of movement of the focus group varies depending on the position of the focus group during distance measurement. In FIG. 2, the lens position during distance measurement was limited to ∞, but depending on the position of the focus group during distance measurement, the amount of movement of the image plane and the amount of movement of the focus group as shown in FIG. Relationship with changes. Therefore, it is not enough to set the value of the drive amount according to the shift amount as described above to set the drive amount so that the AF cycle is completed only once. In some cases, it is necessary to determine the position and set the optimum drive amount for the defocus amount according to the relationship between the image plane movement amount and the focus group movement amount at that time.

またズームレンズを使用する場合には、焦点ずれ量と
駆動量の関係は、ズームの状態に応じて変化する。
When using a zoom lens, the relationship between the amount of defocus and the amount of drive changes according to the zoom state.

本発明は、焦点のずれ量と、焦点のずれ量に左右され
ず撮影レンズに固有のレンズ状態に応じた固有データと
からフォーカス群の駆動量を演算しようとするものであ
る。そして、その演算の際に移動係数を求める必要はな
い。
The present invention is intended to calculate the drive amount of the focus group from the focus shift amount and the unique data according to the lens state unique to the taking lens that is not affected by the focus shift amount. Then, it is not necessary to obtain the transfer coefficient in the calculation.

一般に、焦点ずれ量とフォーカス群の駆動量の関係は
双曲線関数になる。そこで、駆動量ΔLは、焦点ずれ量
をEr、レンズに固有のデータをα,β,γとすれば、 と近似することができる。
In general, the relationship between the amount of defocus and the drive amount of the focus group is a hyperbolic function. Therefore, the drive amount ΔL can be obtained by assuming that the defocus amount is Er and the data unique to the lens is α, β, γ, Can be approximated by

つまり、レンズの状態に合わせて固有データα,β,
γを設定すれば、駆動量ΔLを正確に求めることができ
る。
That is, the unique data α, β,
By setting γ, the drive amount ΔL can be accurately obtained.

固有データα,β,γが、レンズ状態の全範囲に亘っ
てでなく、とびとびでしか設定されていない場合は、
α,β,γを補間することで精度を上げることができ
る。また、固有データα,β,γの組は、レンズまたは
カメラ上の記憶手段にあってもよいし、レンズの状態の
検出手段(ズームエンコーダ,距離エンコーダ等)によ
って発生する信号に応じ生成してもよい。
If the peculiar data α, β, γ are set not only over the entire range of the lens state but only in discrete steps,
The accuracy can be improved by interpolating α, β, γ. The set of unique data α, β, γ may be stored in a storage unit on the lens or the camera, or may be generated according to a signal generated by a detection unit (zoom encoder, distance encoder, etc.) of the lens state. Good.

また、上式のα/βについて、新たな定数Aを用い
て、A=α/βとおけば、上式は、 ΔL=A・β/(β+Er)+γ・Er−A と表すことができる。また、β+Erについて、新たな変
数Bを用いて、B=β+Erとおけば、上式は、 ΔL=α/B+γ・(B−β)−α/β =α/B+γ・B−(γ・β+α/β) となり、更に新たな定数δを用いて、δ=γ・β+α/
βと定義すれば、上式は、 ΔL=α/B+γ・B−δ となって、駆動量ΔLを、変数Bと定数α,β,δとで
表すことができる。
Also, for α / β in the above equation, if a new constant A is used and A = α / β, then the above equation can be expressed as ΔL = A · β / (β + Er) + γ · Er−A . Also, for β + Er, if a new variable B is used and B = β + Er, then the above equation is ΔL = α / B + γ · (B−β) −α / β = α / B + γ · B− (γ · β + α / Β), and using a new constant δ, δ = γ · β + α /
If β is defined, the above equation becomes ΔL = α / B + γ · B−δ, and the drive amount ΔL can be expressed by the variable B and the constants α, β, δ.

これらの演算式において、その共通点を考えると、焦
点ずれ量Er、或いはこの変数Erに定数を加算した変数B
についての−1次項、0次項、1次項を含んだ多項式で
駆動量ΔLが表されていることである。
Considering the common points in these arithmetic expressions, the defocus amount Er or the variable B obtained by adding a constant to this variable Er.
Is that the driving amount ΔL is represented by a polynomial including a −1st-order term, a 0th-order term, and a 1st-order term.

以下、本発明をレンズ交換式カメラに適用した実施例
について説明する。
Examples in which the present invention is applied to an interchangeable lens type camera will be described below.

第4図は本発明が適用されるカメラシステムの電源供
給を主体として見た全体のブロック図である。電源電池
11の電圧VCCは電源スイッチ12の閉成時にDC/DCコンバー
タ13により昇圧され、ラインl0,l1間が電圧VDDに定電圧
化されている。ラインl0,l1間にメインCPU14,バイポー
ラII回路15,バイポーラI回路16,ストロボ制御回路17,
レンズデータ回路18,データバック回路19が接続されて
おり、バイポーラII回路15の電源供給制御はメインCPU1
4のパワーコントロール回路からの信号により行なわ
れ、バイポーラI回路16〜データバック回路19の電源供
給制御はバイポーラII回路15からのパワーコントロール
信号により行なわれる。
FIG. 4 is an overall block diagram mainly showing the power supply of the camera system to which the present invention is applied. Power battery
The voltage V CC of 11 is boosted by the DC / DC converter 13 when the power switch 12 is closed, and the voltage between the lines l 0 and l 1 is made constant to the voltage V DD . Between the lines l 0 and l 1 , the main CPU 14, the bipolar II circuit 15, the bipolar I circuit 16, the strobe control circuit 17,
The lens data circuit 18 and the data back circuit 19 are connected, and the main CPU 1 controls the power supply of the bipolar II circuit 15.
The power supply control signals from the bipolar I circuit 16 to the data back circuit 19 are controlled by the power control signals from the bipolar II circuit 15.

合焦センサ20,A/Dコンバータ21,AF用CPU22からなるAF
ブロックは電源制御用トランジスタ23を介してライン
l0,l1間に接続されており、このAFブロックに対する電
源供給制御はメインCPU14のAF用パワーコントロール回
路からの信号による上記トランジスタ23のオン,オフ制
御により行なわれる。AF用CPU22はAF用アルゴリズム演
算を行なうための回路で、合焦・非合焦の表示を行なう
AF表示回路24が接続されている。メインCPU14はフィル
ムの巻上、巻戻および露出シーケンス等カメラ全体のシ
ーケンスをコントロールするための回路で、上記合焦表
示以外の表示を行なう表示回路25を接続されている。バ
イポーラII回路15はフィルムの巻上、巻戻用モータ制
御、レンズ駆動およびシャッタ制御等、カメラのシーケ
ンスに必要な各種ドライバを含む回路で、AFモータ駆動
回路26およびAF補助光回路27等が接続されている。バイ
ポーラI回路16は主として測光をつかさどる回路であ
り、測光素子28を有している。ストロボ制御回路17は内
蔵、或いは外付けされたストロボ29に対する発光制御を
行なうためのものである。レンズデータ回路18は、交換
レンズ毎に異なる、AF、測光、その他のカメラ制御に必
要な、固有のレンズデータを記憶した回路である。この
レンズデータ回路18に入っているレンズデータのうちAF
に必要なデータとしては、レンズ変倍係数(ズーム係
数)、マクロ識別信号、絶対距離係数a,b,パワーフォー
カスデューティ係数,AF精度スレショールドETh,レンズ
移動方向,開放F値,シフト量(位相差量)の最大値S
MAX,レンズ駆動量の最大値を表わす最大パルスであ
る。
AF consisting of focus sensor 20, A / D converter 21, CPU 22 for AF
Block is line via power supply control transistor 23
The power supply control for the AF block is connected between l 0 and l 1 and is performed by ON / OFF control of the transistor 23 by a signal from the AF power control circuit of the main CPU 14. The AF CPU 22 is a circuit for performing AF algorithm calculation, and displays in-focus and out-of-focus.
The AF display circuit 24 is connected. The main CPU 14 is a circuit for controlling the sequence of the entire camera such as film winding, rewinding, and exposure sequence, and is connected to a display circuit 25 for displaying a display other than the above focus display. The bipolar II circuit 15 is a circuit including various drivers necessary for the sequence of the camera such as film winding, rewinding motor control, lens drive and shutter control, and the AF motor drive circuit 26 and AF auxiliary light circuit 27 are connected. Has been done. The bipolar I circuit 16 is a circuit mainly for controlling photometry and has a photometric element 28. The strobe control circuit 17 is for controlling the light emission of the strobe 29 which is built in or attached externally. The lens data circuit 18 is a circuit that stores unique lens data that is different for each interchangeable lens and is necessary for AF, photometry, and other camera control. AF out of the lens data in this lens data circuit 18
The data required for this are: lens magnification coefficient (zoom coefficient), macro identification signal, absolute distance coefficients a, b, power focus duty coefficient, AF accuracy threshold ETh, lens moving direction, open F value, shift amount ( Maximum value of phase difference amount S
MAX , the maximum pulse that represents the maximum value of the lens drive amount.

上記バイポーラII回路15では電源電圧VDDの状態を監
視しており、電源電圧が規定電圧より低下したときメイ
ンCPU14にシステムリセット信号を送り、バイポーラII
回路15〜データバック回路19の電源供給、並びに、合焦
センサ20,A/Dコンバータ21およびAF用CPU22からなるAF
ブロックの電源供給を断つようにしている。メインCPU1
4への電源供給は規定電圧以下でも行なわれる。
The bipolar II circuit 15 monitors the state of the power supply voltage V DD , and when the power supply voltage drops below a specified voltage, it sends a system reset signal to the main CPU 14
Power supply from the circuit 15 to the data back circuit 19, and an AF including a focus sensor 20, an A / D converter 21 and an AF CPU 22
The block power supply is cut off. Main CPU1
Power is supplied to 4 even if it is below the specified voltage.

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

また、バイポーラII回路15はAF用CPU22からのAFモー
タコントロールラインの信号をデコードし、AFモータ駆
動回路26をドライブする。AFモータ駆動回路26の出力に
よりAFモータ(レンズ駆動モータ)31が回転すると、レ
ンズ鏡筒の回転部材に等間隔に設けられたスリット32が
回転し、同スリット32の通路を挟んで発光部33aと受光
部33bとを対向配置させてなるフォトインタラプタ33が
スリット32をカウントする。即ち、スリット32とフォト
インタラプタ33はパルス発生部34を構成しており、同パ
ルス発生部34から発せられたパルス信号(スリット32の
カウント信号)は波形整形されてAF用CPU22に取り込ま
れる。
In addition, the bipolar II circuit 15 decodes the AF motor control line signal from the AF 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 on the rotating member of the lens barrel are rotated, and the light emitting portion 33a is sandwiched across the passage of the slit 32. A photo interrupter 33 in which the light receiving portion 33b and the light receiving portion 33b are arranged to face each other counts the slit 32. That is, the slit 32 and the photo interrupter 33 constitute a pulse generator 34, and the pulse signal (count signal of the slit 32) emitted from the pulse generator 34 is waveform-shaped and taken into the AF CPU 22.

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

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

また、上記AF用CPU22とA/Dコンバータ21はバスライン
によりデータの授受を行ない、その伝送方向はバスライ
ンコントロール信号により制御される。そして、AF用CP
U22からA/Dコンバータ21にセンサ切換信号、システムク
ロック信号が送られるようになっている。そして、A/D
コンバータ21は例えば、CCDからなる合焦センサ20に対
しCCD駆動クロック信号、CCD制御信号を送り、合焦セン
サ20からCCD出力を読み出し、この読み出したアナログ
値のCCD出力をディジタル変換してAF用CPU22に送る。
The AF CPU 22 and the A / D converter 21 exchange data via a bus line, and the transmission direction thereof is controlled by a bus line control signal. And CP for AF
A sensor switching signal and a system clock signal are sent from the U22 to the A / D converter 21. And A / D
The converter 21, for example, sends a CCD drive clock signal and a CCD control signal to the focusing sensor 20 composed of CCD, reads the CCD output from the focusing sensor 20, and digitally converts the read CCD value of the analog value for AF. Send to CPU22.

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

このパワーオン・リセットルーチンが開始されると、
まず、<I/Oイニシャライズ>のサブルーチンでAFブロ
ックの駆動回路のイニシャライズが行なわれる。具体的
には、AF表示回路24,AFモータ駆動回路26およびAF補助
光回路27等のオフ並びにメインCPU14とのシリアルコミ
ュニケーションラインのイニシャライズ等が行なわれ
る。
When this power-on reset routine is started,
First, the AF block drive circuit is initialized by the <I / O initialization> subroutine. Specifically, the AF display circuit 24, the AF motor drive circuit 26, the AF auxiliary light circuit 27, etc. are turned off and the serial communication line with the main CPU 14 is initialized.

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

モードの切換えが確実に行なわれて切換前と切換後の
モードが同一になったとき、その切換後のモードを読み
取って各モードのサブルーチンへ移行する。即ち、レン
ズ駆動の各モードとしては、<レンズリセット>,<PF
(パワーフォーカス)>,<AFSIN(AFシングル)>,
<AFSEQ(AFシーケンス)>の各モードがあり、これら
のモードのうちの1つが選ばれると、この選択されたモ
ードのサブルーチンを実行したのち上記<I/Oイニシャ
ライズ>のルーチンへ戻る。<レンズリセット>,<PF
>,<AFSIN>,<AFSEQ>のいずれのモードも選択され
ず、<その他>のモードが選ばれたときなどは、これは
単なるノイズとみなされて、<タイマ>のルーチンで一
定時間の経過後に上記<I/Oイニシャライズ>へ戻る。
When the modes are switched reliably and the modes before and after the switching become the same, the mode after the switching is read and the process shifts to the subroutine of each mode. That is, the lens drive modes are <lens reset>, <PF
(Power focus)>, <AFSIN (AF single)>,
There are <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 <I / O initialize> routine. <Lens reset>, <PF
>, <AFSIN>, and <AFSEQ> modes are not selected, and <Other> mode is selected, this is regarded as mere noise, and a certain time elapses in the <Timer> routine. Afterwards, return to <I / O Initialize> above.

ここで、<レンズリセット>モードの動作は、レンズ
を強制的に∞の位置まで繰り込み、これによって、相対
的距離信号、即ち、合焦センサ20から出力される測距出
力信号を∞の位置からのパルス移動数に置き換えて絶対
距離信号に変換しようとするためのイニシャライズ動
作、即ち、絶対距離カウンタのクリア動作である。<レ
ンズリセット>が選択された場合、この絶対距離カウン
タのクリアのあと、例えば5ms経ってからI/Oイニシャラ
イズ動作に戻る。また、<PF>モードとは、レンズの距
離環を手動ではなく、レンズ駆動モータ31によって駆動
し、レンズのフォーカシング動作をマニュアルのピント
合せ又はフォーカスエイドを用いて実施しようとするも
のである。さらに詳しく言えば、後述するPFUP(アッ
プ)用操作スイッチSW1,PFDN(ダウン)用操作スイッチ
SW2のオン,オフによってレンズの繰り出し、繰り込み
が行なわれることになる。また、<AFSIN>のモードの
動作は、ワンショットAF動作であり、被写体に対してAF
動作後にフォーカスロックするものである。さらに、<
AFSEQ>モードは、連続AFであり、このモードでは、レ
リーズ釦の1段目を動作しつづける限りAF動作を連続的
に行なうことになる。
Here, in the operation of the <lens reset> mode, the lens is forcibly rewound to the ∞ position, whereby the relative distance signal, that is, the distance measurement output signal output from the focus sensor 20 is changed from the ∞ position. This is an initialization operation for converting to the pulse movement number and converting to an absolute distance signal, that is, an absolute distance counter clearing operation. When <Reset Lens> is selected, after the absolute distance counter is cleared, for example, 5 ms elapses, and then the I / O initialization operation is resumed. In the <PF> mode, the distance ring of the lens is driven not by manual operation but by the lens drive motor 31, and the focusing operation of the lens is attempted to be performed by manual focusing or focus aid. More specifically, PFUP (up) operation switch SW 1 and PFDN (down) operation switch described later.
The lens is extended and retracted by turning SW 2 on and off. Also, the operation in <AFSIN> mode is one-shot AF operation, and AF operation is performed on the subject.
The focus is locked after the operation. Furthermore, <
The AFSEQ> mode is continuous AF, and in this mode, the AF operation is continuously performed as long as the first step of the release button is continuously operated.

ところで、レンズ駆動の各モードに関する操作スイッ
チとしては、下記の表1に示すように、4つの操作スイ
ッチSW1〜SW4が用いられる。
By the way, as shown in Table 1 below, four operation switches SW 1 to SW 4 are used as operation switches for each lens driving mode.

上記表1に示す第1,第2の操作スイッチSW1,SW2はAF
モードとPFモードで共通に用いられるものであり、第3
の操作スイッチSW3はオフのときAFモード,オンのときP
Fモードが選択される。AFモードで第1,第2の操作スイ
ッチSW1,SW2がともにオフのときレンズリセットモード
となり、ともにオンのときAFSEQモードとなり、第1の
操作スイッチSW1がオフ,第2の操作スイッチSW2がオン
のときAFSINモードとなる。PFモードで第1,第2の操作
スイッチSW1,SW2がともにオフ,又はともにオンのとき
はストップモードにあり、第1の操作スイッチSW1がオ
ンのときはモータによって距離環を近距離側に回転させ
てレンズを繰り出すPFUP(アップ)モードとなり、第2
の操作スイッチSW2がオンのときは距離環を遠距離側に
回転させてレンズを繰り込むPFDN(ダウン)モードとな
る。また第4の操作スイッチSW4は、AFモードのうちの
いずれのモードおよびPFモードのうちのストップモード
ではオン,オフのいずれの状態にあっても変化はない
が、PFモードでオンのときHI(高速)モードとなり、レ
ンズ駆動モータ31が高速回転し距離環の粗動が行なわ
れ、オフのときLO(低速)モードとなり、モータ31(第
5図参照)が低速回転して距離環の微動が行なわれる。
The first and second operation switches SW 1 and SW 2 shown in Table 1 above are AF
It is commonly used in both mode and PF mode.
When the operation switch SW 3 of is off, it is in AF mode, when it is on, it is P
F mode is selected. In the AF mode, when both the first and second operation switches SW 1 and SW 2 are off, the lens reset mode is set, when both are on, the AFSEQ mode is set, the first operation switch SW 1 is off, and the second operation switch SW is When 2 is on, AFSIN mode is entered. In the PF mode, when both the first and second operation switches SW 1 and SW 2 are off or both are on, it is in the stop mode, and when the first operation switch SW 1 is on, the distance ring is moved closer by the motor. It becomes the PFUP (up) mode which rotates the lens to the side and extends the lens, and the second
When the operation switch SW 2 of is turned on, the range ring is rotated to the far side to put the lens in the PFDN (down) mode. Further, the fourth operation switch SW 4 does not change in any of the AF mode and the stop mode of the PF mode regardless of whether it is in the ON state or the OFF state. In the (high speed) mode, the lens drive motor 31 rotates at a high speed to perform coarse movement of the distance ring. When the lens drive motor 31 is off, the LO (low speed) mode is set, and the motor 31 (see FIG. 5) rotates at a low speed to perform fine movement of the distance ring. Is performed.

次に、各レンズ駆動モードの動作について第7図〜第
10図のフローチャートを用いて説明する。
Next, the operation of each lens drive mode will be described with reference to FIGS.
This will be described with reference to the flowchart of FIG.

まず、<AFSIN>のモードが選択された場合は、第7
図に示す<AFSIN>のルーチンが実行され、メインCPU14
からのAFENA信号が“H"レベル(アクティブ)になって
いるか否かを検出する。レリーズ釦の第1段目の動作で
AFENA信号がアクティブになってAF動作が開始され、<A
FSIN2>のサブルーチンが呼び出される。但し、レリー
ズ釦の第2段目の動作が受け付けられるのは、AF動作が
終了して合焦状態が得られ露出シーケンスが開始される
ときである。<AFSIN2>では、後述するように、合焦セ
ンサ20のCCD積分,測距出力の演算およびレンズの駆動
等が行なわれる。そして、この<AFSIN2>のAF動作の結
果である合焦,非合焦の表示は、<AFSIN2>の動作の
後、AFステータスフラグを監視して行なわれる。AFステ
ータスフラグはローコンフラグ(被写体がローコントラ
ストのとき“1"にセットされるフラグ、以下、LCフラグ
と略記する)、移動フラグ(被写体が移動しているとき
“1"にセットされるフラグ、以下、Mフラグと略記す
る)および最至近フラグ(レンズを最至近距離以上に繰
り出そうとしたときに“1"にセットされるフラグ、以下
Nフラグと略記する)を有しており、これらのうち、い
ずれのフラグとも0のとき合焦が可能であり、上記各フ
ラグのうち何らかのフラグが立つと合焦不能であるの
で、AFステータスフラグの監視の結果、同AFステータス
フラグが0であれば合焦OKの表示が前記AF表示回路24の
LED24aによって行なわれ、AFステータスフラグが0でな
ければ合焦不能の表示が前記LED24bによって行なわれ
る。合焦であれば、EOFAF信号が発せられてAF動作が終
了し、メインCPU14にレリーズ釦の2段目の動作、即
ち、露出シーケンスの開始を待機する状態となる。つま
り、一度合焦が終了すると、AFENA信号がアクティブに
なっていても、その後のレンズ動作が禁止され合焦OK表
示のLED24aが点灯したままとなり、フォーカスロック状
態となる。メインCPU14からのAFENA信号が“L"レベル
(インアクティブ)になったときは第6図に示すパワー
オン・リセットのフローの初期動作にリターンする。
First, if the <AFSIN> mode is selected,
The <AFSIN> routine shown in the figure is executed and the main CPU14
Is detected whether or not the AFENA signal is "H" level (active). With the first step of the release button
AFENA signal becomes active, AF operation starts, and <A
The FSIN2> subroutine is called. However, the operation of the second stage of the release button is accepted when the AF operation is completed, a focused state is obtained, and the exposure sequence is started. In <AFSIN2>, CCD integration of the focus sensor 20, calculation of a distance measurement output, driving of a lens, and the like are performed as described later. Then, the in-focus / out-of-focus display resulting from the AF operation of <AFSIN2> is performed by monitoring the AF status flag after the operation of <AFSIN2>. The AF status flag is a low contrast flag (a flag that is set to "1" when the subject has a low contrast, hereinafter abbreviated as LC flag), a movement flag (a flag that is set to "1" when the subject is moving, the following , M flag) and the closest flag (a flag that is set to “1” when the lens is about to extend beyond the closest distance, hereinafter abbreviated as N flag). Focusing is possible when all of the flags are 0, and focusing is impossible if any of the above flags is set. Therefore, if the AF status flags are 0 as a result of monitoring the AF status flags, focusing is possible. The OK indication is displayed on the AF display circuit 24.
The LED 24a indicates that if the AF status flag is not 0, the LED 24b indicates that focusing is impossible. If it is in focus, the EOFAF signal is issued, the AF operation ends, and the main CPU 14 is in a state of waiting for the operation of the second step of the release button, that is, the start of the exposure sequence. In other words, once focusing is completed, even if the AFENA signal is active, subsequent lens operation is prohibited and the focus OK LED 24a remains lit, and the focus is locked. When the AFENA signal from the main CPU 14 becomes "L" level (inactive), the process returns to the initial operation of the power-on reset flow shown in FIG.

上記<AFSIN>のモードの動作中、<AFSIN2>のサブ
ルーチンのプログラム動作は第8図に示すようにして行
なわれる。まず、前回の測距演算値(前回の合焦センサ
20の出力パルス)と今回の測距演算値(今回の合焦セン
サ20の出力パルス)との比較のためにRETRY(リトラ
イ)フラグがクリアされ、AFループカウンタに一連のAF
動作における最大測距回数がセットされる。このあと、
ある明るさ以上では確実にCCD積分が行なわれるよう
に、ITIMEレジスタにCCD積分時間の最大値がセットされ
る。そして、AFステータスフラグがクリアされ、Sラン
プフラグもクリアされる。ここまでのフローの動作でAF
開始前のイニシャライズ動作が終了する。このあと、<
レンズ・リード>のルーチンが呼び出され、前記レンズ
データ回路18に入っているレンズ内の各データが読み出
されたのち、測距のための<AF>のルーチンが呼び出さ
れる。この<AF>のサブルーチン内では、CCD積分時に
Sランプ27aを点灯させる必要があるか否かが判断さ
れ、点灯する必要がある場合にはSランプフラグがセッ
トされ、必要ない場合にはクリアされる。また、ローラ
イトフラグ(被写体がローライトのとき“1"にセットさ
れるフラグ,以下、LLフラグと略記する)、LCフラグが
セット或いはクリアされる。
During the operation in the <AFSIN> mode, the program operation of the <AFSIN2> subroutine is performed as shown in FIG. First, the previous distance measurement calculation value (previous focus sensor
The RETRY (retry) flag is cleared to compare the current distance calculation value (the current output pulse of the focus sensor 20) with the current distance measurement calculation value.
The maximum number of times of distance measurement in the operation is set. after this,
The maximum value of CCD integration time is set in the ITIME register to ensure that CCD integration is performed above a certain brightness. Then, the AF status flag is cleared and the S lamp flag is also cleared. AF with the operation up to this point
The initialization operation before the start is completed. After this,
The lens read routine is called, each data in the lens stored in the lens data circuit 18 is read, and then the <AF> routine for distance measurement is called. In the <AF> subroutine, it is determined whether or not the S lamp 27a needs to be turned on at the time of CCD integration. If the S lamp 27a needs to be turned on, the S lamp flag is set, and if not necessary, it is cleared. It Also, a low light flag (a flag set to “1” when the subject is low light, hereinafter abbreviated as an LL flag) and an LC flag are set or cleared.

<AF>のサブルーチンのプログラム動作は第9図に示
すようにして行なわれる。<AF>に飛ぶと、まず、Sラ
ンプフラグが立っているか否かを判別し、立っていると
きはSランプを点灯させる。次に、AF用CPU22は合焦セ
ンサ20へ積分スタート信号を送る。積分スタート信号を
受けると合焦センサ20は光電変換を行ない、被写体のコ
ントラストに応じた電荷を蓄える。このときA/Dコンバ
ータ21(第5図参照)内部のAGC回路により電荷を監視
し、電荷がA/Dコンバータ21のダイナミックレンジに十
分な量になると積分を中止させる。この積分期間中、AF
用CPU22は内部タイマーを駆動し積分時間を計測する。
これは被写体輝度レベルを判別するために使われる。次
にSランプが消灯され、ITIMEと積分時間を比較し、積
分時間がITIMEより長いときは、LLフラグ(ローライト
フラグ)がセットされる。
The program operation of the <AF> subroutine is performed as shown in FIG. When jumping to <AF>, first, it is determined whether or not the S lamp flag is set, and when it is set, the S lamp is turned on. 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 carries out photoelectric conversion and stores electric charges according to the contrast of the subject. At this time, the charge is monitored by the AGC circuit inside the A / D converter 21 (see FIG. 5), and the integration is stopped when the charge reaches the dynamic range of the A / D converter 21. AF during this integration period
The CPU 22 for driving drives an internal timer to measure the integration time.
This is used to determine the subject brightness level. Next, the S lamp is turned off, ITIME is compared with the integration time, and when the integration time is longer than ITIME, the LL flag (low light flag) is set.

一方、A/Dコンバータ21においては合焦センサ20の電
荷を順次、A/D変換しデータをAF用CPU22へ転送する。そ
してAF用CPU22内でRAMに格納される。このセンサデータ
の入力が終了すると、レンズデータ回路18のレンズROM
に格納されているシフト量の最大値SMAXを読み込む。位
相差量の計算範囲はこのSMAXで規制される。演算は負側
から順番に行なうため、SMAXの符号を反転しSへ格納す
る。そしてシフト量Sの値を1つずつ増しながら評価関
数F(S)を計算する。この計算された値はFLASTに毎
回格納される。Sの値がSMAXに達しても位相差が検知で
きないときはLCフラグをセットし演算は終了する。F
(S)の値が負になると前回のF(S)の値であるF
LASTと今回のF(S)で補間値を計算し、前回のシフト
量SLASTに加算する。この計算された位相差はErとしてA
F用CPU22のRAMに格納される。次のこの演算に用いられ
たセンサのデータが適正であるか否かをデータのMAXとM
INの差で判別し、差が小さいときは被写体のコントラス
トが不十分なものとしてLCフラグをセットする。
On the other hand, in the A / D converter 21, the electric charge of the focus sensor 20 is sequentially A / D converted and the data is transferred to the AF CPU 22. Then, it is stored in the RAM in the AF CPU 22. When the input of this sensor data is completed, the lens ROM of the lens data circuit 18
Read the maximum shift amount S MAX stored in. The calculation range of the amount of phase difference is regulated by this S MAX . Since the calculation is performed in order from the negative side, the sign of S MAX is inverted and stored in S. Then, the evaluation function F (S) is calculated while increasing the value of the shift amount S one by one. This calculated value is stored in F LAST every time. If the phase difference cannot be detected even if the value of S reaches S MAX , the LC flag is set and the calculation ends. F
When the value of (S) becomes negative, the value of F (S) of the previous time is F
The interpolation value is calculated by LAST and the F (S) of this time, and added to the previous shift amount S LAST . This calculated phase difference is Er as A
It is stored in the RAM of the F CPU 22. Next, determine whether the data of the sensor used for this calculation is correct or not.
If the difference between IN is small, the LC flag is set if the contrast of the subject is insufficient.

再び第8図に戻って、今、<AF>の測距動作後、LLフ
ラグ,LCフラグのいずれもクリアされた状態にあるとき
は、<パルス>のルーチンを呼び出し、レンズ駆動量が
計算される。
Returning to FIG. 8 again, when both the LL flag and the LC flag are cleared after the distance measurement operation of <AF>, the <pulse> routine is called to calculate the lens drive amount. It

この<パルス>のルーチンにおけるフローを示す第10
図において、先づレンズ距離環の∞位置からの駆動パル
ス数が格納されている絶対距離カウンタの内容を読み込
む。このカウンタ値から、フォーカス群の現在位置lP
計算し、レンズデータ回路18のレンズROM内の駆動量変
換用の固有データα,β,γを読み出す。必要に応じ、
固有データα,β,γは補間され精度を上げる。
No. 10 showing the flow in this <pulse> routine
In the figure, first, the content of the absolute distance counter in which the number of drive pulses from the ∞ position of the lens distance ring is stored is read. The current position l P of the focus group is calculated from this counter value, and the peculiar data α, β, γ for converting the drive amount in the lens ROM of the lens data circuit 18 are read. As needed,
The unique data α, β, γ are interpolated to improve accuracy.

次いでAF演算出力値Erと上記固有データα,β,γか
ら駆動量ΔLは ΔL=α/(β+Er)+γ・Er−(α/β) として求められる。
Next, the drive amount ΔL is obtained as ΔL = α / (β + Er) + γ · Er− (α / β) from the AF calculation output value Er and the unique data α, β, γ.

ところで、単焦点のレンズでは、固有データα,β,
γは表2に示すようにフォーカス群の位置lPにのみよる
データ列であるが、ズームレンズの場合には、表3に示
すように、フォーカス群の位置lPと、ズーミング位置
(焦点距離位置)ZPとによる2次元のデータ列となる。
By the way, in the case of a single focus lens, the unique data α, β,
As shown in Table 2, γ is a data string based only on the focus group position l P , but in the case of a zoom lens, as shown in Table 3, the focus group position l P and the zooming position (focal length It becomes a two-dimensional data string by position) Z P.

また、ズームレンズの場合には、最大倍率が単焦点レ
ンズよりも小さい場合が多く、その場合には、α,β,
γは、ズーミング位置ZPにのみよる1次元のデータ列と
して扱うこともできる。この場合のズーミング位置Z
Pは、撮影レンズのズーム系の中に取り付けてあるズー
ムエンコーダからの信号による情報である。
In the case of a zoom lens, the maximum magnification is often smaller than that of a single focus lens. In that case, α, β,
γ can also be treated as a one-dimensional data string based only on the zooming position Z P. Zooming position Z in this case
P is information based on a signal from the zoom encoder mounted in the zoom system of the taking lens.

このように1回のAFサイクルでレンズのフォーカス群
を目標位置に移動させる駆動量ΔLが演算される。
In this way, the drive amount ΔL for moving the lens focus group to the target position is calculated in one AF cycle.

このあと、第8図に示すように、上記AF演算出力値
(Er)と、レンズデータ回路18より読み出したAF精度ス
レッショルドEThとを比較し、上記AF演算出力値(Er)
がAF精度スレッショルドEThよりも大きければ、へ進
み、RETRYフラグの判別を行なう。1回目のAF動作で
は、RETRYフラグが0であるとこからRETRYフラグのセッ
トが行なわれたあと、上記駆動パルス数がセーブされ
る。そして、2回目以降のAF動作ではRETRYフラグがセ
ットされているので、今回の駆動パルス数と前回の駆動
パルス数とが比較される。このとき、前回パルス数に比
較して今回パルス数の方が移動量だけ少なめになってい
れば、レンズ駆動により合焦点に近づいたことになるの
で、次のレンズ駆動では、さらに、より一層近づくであ
ろうということになり、前回パルスに代って今回パルス
がセーブされ、<MDRIVAF>のルーチンを呼び出し、レ
ンズ駆動を行なう。
After that, as shown in FIG. 8, the AF calculation output value (Er) is compared with the AF accuracy threshold ETh read from the lens data circuit 18, and the AF calculation output value (Er) is compared.
If is larger than the AF accuracy threshold ETh, the process proceeds to and the RETRY flag is discriminated. In the first AF operation, after the RETRY flag is 0, the RETRY flag is set, and then the number of drive pulses is saved. Since the RETRY flag is set in the second and subsequent AF operations, the current drive pulse number is compared with the previous drive pulse number. At this time, if the current pulse number is smaller by the moving amount than the previous pulse number, it means that the lens is closer to the focal point by driving the lens, so that in the next lens driving, it is even closer. Therefore, the current pulse is saved instead of the previous pulse, and the <MDRIVAF> routine is called to drive the lens.

前回パルスと今回パルスとの比較を行なう目的は、AF
シーケンス全体の発散動作を防ぐことにある。両者を比
較する仕方としては、(今回パルス数):(前回パルス
数×0.5),或いは(今回パルス数):(前回パルス数
×1.5)等が考えられる。AFシーケンスの系が発散状態
にありそうなときは被写体移動中にAF動作を行なわせる
ことが考えられるので、この場合には、速やかにレンズ
駆動を中止し、AF動作の無駄を防ぐためにMフラグをセ
ットしてへ進み<SDISCNT>、<CALDIS>のルーチン
を呼び出す。
The purpose of comparing the previous pulse and this pulse is AF
The purpose is to prevent the diverging operation of the entire sequence. As a way of comparing the two, (current pulse number): (previous pulse number × 0.5) or (current pulse number): (previous pulse number × 1.5) can be considered. If the AF sequence system seems to be in a diverging state, it may be possible to perform the AF operation while the subject is moving. In this case, the lens drive should be stopped immediately to prevent unnecessary AF operation. Set and go to to call the <SDISCNT> and <CALDIS> routines.

上記<MDRIVAF>によってレンズ駆動が行なわれたの
ち、AFループカウンタのセットされたAF動作の測距回数
値から1を減じる。そして、この結果、AFループカウン
タの値が0になっていない場合は、ITIMEレジスタに積
分時間をセットし、そして、AFENA信号がアクティブ
(つまり、レリーズ釦の1段目の動作がオン)になって
いるとき、次回のAF動作のために、に戻る。こうし
て、−間のAF動作が繰り返し行なわれる毎にAFルー
プカウンタの値が1回ずつ減じられていくことにより、
次第に合焦点に近づくことになるが、AFループカウンタ
の値が0になってもAF演算出力値(Er)が上記AF精度ス
レッショルドEThよりも小さくならないときは合焦不能
であるとしてMフラグがセットされることになる。
After the lens is driven by the above <MDRIVAF>, 1 is subtracted from the number of times of distance measurement of the AF operation set in the AF loop counter. As a result, if the value of the AF loop counter is not 0, the integration time is set in the ITIME register, and the AFENA signal is activated (that is, the operation of the first stage of the release button is turned on). , Return to for the next AF operation. In this way, the value of the AF loop counter is decreased by one each time the AF operation between-is repeated, so that
Although the focus gradually approaches, if the AF calculation output value (Er) does not become smaller than the AF accuracy threshold ETh even if the AF loop counter value becomes 0, it is determined that focusing is impossible and the M flag is set. Will be done.

上記−間のAF動作の結果、Er<EThになると、つ
まり上記AF演算出力値(Er)がピント誤差範囲内になる
と、AFステータスフラグをクリアして合焦状態に至った
ことを示し、<SDISCNT>,<CALDIS>のルーチンを呼
び出す。
When the result of the AF operation between the above-mentioned becomes Er <ETh, that is, when the above-mentioned AF calculation output value (Er) is within the focus error range, it indicates that the AF status flag is cleared and the in-focus state is reached. Call the SDISCNT>, <CALDIS> routines.

ここで、上記<AF>の動作後、もし、LLフラグ或いは
LCフラグがセットされていれば、Sランプフラグの状態
がテストされる。このとき、Sランプフラグが事前に
“1"にセットされていれば、AFのための積分動作中にS
ランプ27aが点灯していたにもかかわらずローライト、
ローコントラストの状態になったことになるので、この
場合は、再度LCフラグをテストし、ローコントラストの
場合のみ<レンズNF(合焦不能)>のルーチンを呼び出
し、合焦不能の積極的表示を行なう。即ち、この<レン
ズNF>のルーチンでは、まず、レンズを一旦、最至近位
置まで繰り出したのち、∞位置まで繰り込ませ、このレ
ンズの大幅な移動によって積極的に合焦不能をユーザに
知らせる。なお、合焦不能を表わすレンズ動作としては
∞位置から最至近位置へ繰り出す動作であってもよい。
また、この<レンズNF>では、∞位置に当て付くことに
より、レンズ距離環の∞位置からの駆動パルス数(移動
アドレス信号数)をセーブするための絶対距離カウンタ
のイニシャライズが行なわれる。もし、ローコントラス
トでなければ、ローライトでありながらAFの演算が行な
われたことになるので、この場合は、に戻る。
Here, after the operation of <AF>, if the LL flag or
If the LC flag is set, the state of the S ramp flag is tested. At this time, if the S ramp flag has been set to “1” in advance, during the integration operation for AF, S
Low light, despite lamp 27a being on,
Since it is in the low contrast state, in this case, test the LC flag again, call the <lens NF (unfocusable)> routine only in the case of low contrast, and actively display the unfocusable state. To do. That is, in this <lens NF> routine, first, the lens is first extended to the closest position and then extended to the infinity position, and the large movement of this lens positively informs the user that focusing is impossible. The lens operation indicating the inability to focus may be an operation of moving the lens from the ∞ position to the closest position.
Further, in this <lens NF>, the absolute distance counter is initialized to save the driving pulse number (moving address signal number) from the ∞ position of the lens distance ring by being applied to the ∞ position. If the contrast is not low, it means that the AF operation has been performed while the light is low, and in this case, the process returns to.

また、Sランプフラグが事前にクリアされていたとき
には、以前にはSランプ27aが消灯していたことになる
ので、LLフラグ、或いはLCフラグがセットされている場
合は、Sランプフラグをセットし、に進む。従って、
2回目以降のAF動作でSランプ27aが点灯することにな
る。
When the S lamp flag has been cleared in advance, the S lamp 27a has been turned off before. Therefore, if the LL flag or the LC flag is set, the S lamp flag is set. Proceed to. Therefore,
The S lamp 27a will light up during the second and subsequent AF operations.

いずれにしろ、<AFSIN2>の動作の終りには<SDISCN
T>のルーチンが呼び出されて実行されたのち、<CALDI
S>が呼び出される。<SDISCNT>では絶対距離カウンタ
に距離環の∞位置からの駆動パルス数がセットされる。
そして、<CALDIS>において、上記の絶対距離カウンタ
にセットされたパルス数と、レンズデータ回路18内の絶
対距離係数a,bとから、被写体までの絶対距離の演算が
行なわれ、この求められた絶対距離と絶対距離カウンタ
の内容がメインCPU14に送られる。<CALDIS>が実行さ
れたあとは、第7図に示す<AFSIN>のフロー中の<AFS
IN2>の動作後の位置にリターンする。
In any case, at the end of <AFSIN2> operation, <SDISCN
After the T> routine is called and executed, then <CALDI
S> is called. In <SDISCNT>, the absolute distance counter is set to the number of drive pulses from the ∞ position on the distance ring.
Then, in <CALDIS>, the absolute distance to the subject 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, and this is obtained. The absolute distance and the contents of the absolute distance counter are sent to the main CPU 14. After <CALDIS> is executed, <AFS in the <AFSIN> flow shown in Fig. 7 is displayed.
Return to the position after the operation of IN2>.

ところで、レンズの駆動量を計算するための駆動量Δ
L(lP,Er)を求めるために必要なフォーカス群の位置l
Pは、フォーカス群の移動に対応したフォーカスエンコ
ーダの設定によって直接的に決定するようにしてもよ
い。
By the way, the drive amount Δ for calculating the drive amount of the lens
Position l of the focus group required to obtain L (l P , Er)
P may be directly determined by the setting of the focus encoder corresponding to the movement of the focus group.

[発明の効果] 以上述べたように本発明によれば、レンズの一部を移
動させてピント合わせをする場合にも、適切なフォーカ
ス群の移動量を算出できるため、AF動作を何度も繰り返
すことなくAF終了迄の時間を大幅に短縮できる効果を有
する。
[Effects of the Invention] As described above, according to the present invention, an appropriate amount of movement of the focus group can be calculated even when a part of the lens is moved for focusing, so that the AF operation can be performed repeatedly. This has the effect of significantly shortening the time until the end of AF without repeating.

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

第1図は、本発明の自動焦点調節カメラの概念図、 第2図と第3図は、本発明を説明するための、像面移動
量に対するフォーカス群の移動量を示す線図、 第4図は、本発明が適用されたカメラのオートフォーカ
ス部を中心として示したパワーコントロール回路の概略
構成ブロック図、 第5図は、上記第4図中のオートフォーカス回路部の信
号の授受を示す概略ブロック図、 第6図〜第10図は、上記第5図に示したAF用CPUを中心
としてたプログラム動作を表したフローチャート、 第11図は、従来の全体繰出しレンズを使用した自動焦点
調節カメラの光路図である。 1……撮影レンズ 2……検出手段 3……演算手段 4……駆動手段 14……メインCPU(演算手段) 20……合焦センサ(検出手段) 22……AF用CPU(演算手段)
FIG. 1 is a conceptual diagram of an automatic focusing camera according to the present invention, and FIGS. 2 and 3 are diagrams showing the amount of movement of a focus group with respect to the amount of movement of an image plane for explaining the present invention. FIG. 5 is a schematic block diagram of a power control circuit mainly showing an autofocus portion of a camera to which the present invention is applied. FIG. 5 is a schematic diagram showing signal transmission / reception of the autofocus circuit portion in FIG. Block diagrams, FIGS. 6 to 10 are flowcharts showing a program operation centered on the CPU for AF shown in FIG. 5, and FIG. 11 is a conventional automatic focusing camera using a whole extension lens. FIG. 1 ... Shooting lens 2 ... Detection means 3 ... Calculation means 4 ... Driving means 14 ... Main CPU (calculation means) 20 ... Focus sensor (detection means) 22 ... AF CPU (calculation means)

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G03B 13/34 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G03B 13/34

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】撮影レンズを通して被写体像が結像された
像面の光軸上の位置と、フィルム面の光軸上の位置との
ずれ量に基づき、撮影レンズのフォーカス群の駆動量を
演算してフォーカス群を駆動する自動焦点調節カメラに
おいて、 被写***置に対する撮影光学系の焦点ずれ量を検出する
ずれ量検出手段と、 焦点検出時の撮影レンズのフォーカス群位置とズーム位
置とを含むレンズ状態を検出するレンズ状態検出手段
と、 予め複数組用意され、上記レンズ状態検出手段の出力に
応じて適宜選択される3種類の撮影レンズ固有データ
と、上記焦点ずれ量若しくは焦点ずれ量に基づく値の−
1次項、0次項、及び1次項を含む多項式によって上記
フォーカス群の駆動量を演算する駆動量演算手段と、 を具備したことを特徴とする自動焦点調節カメラ。
1. A driving amount of a focus group of a photographing lens is calculated based on a deviation amount between a position on an optical axis of an image plane on which an object image is formed through the photographing lens and a position on the optical axis of a film surface. In the automatic focus adjustment camera that drives the focus group, the lens state including the shift amount detecting means for detecting the focus shift amount of the photographing optical system with respect to the subject position, and the focus group position and zoom position of the photographing lens at the time of focus detection A plurality of sets of preliminarily prepared lens state detecting means, which are appropriately selected according to the output of the lens state detecting means, and the defocus amount or a value based on the defocus amount. −
An automatic focus adjustment camera, comprising: a drive amount calculation unit that calculates a drive amount of the focus group by a polynomial including a first-order term, a zero-order term, and a first-order term.
【請求項2】上記焦点ずれ量に基づく値は、検出された
焦点ずれ量に上記レンズ固有データを加算した値である
ことを特徴とする特許請求の範囲第1項記載の自動焦点
調節カメラ。
2. The automatic focusing camera according to claim 1, wherein the value based on the defocus amount is a value obtained by adding the lens specific data to the detected defocus amount.
【請求項3】上記駆動量演算手段は、上記レンズ固有デ
ータをα、β、γとし、上記ずれ量をErとしたとき、上
記駆動量ΔLを、関数式 ΔL=α/(β+Er)+γ・Er−(α/β) で求めることを特徴とする特許請求の範囲第1項記載の
自動焦点調節カメラ。
3. The drive amount calculation means, when the lens-specific data are α, β and γ and the shift amount is Er, the drive amount ΔL is a functional expression ΔL = α / (β + Er) + γ · The automatic focusing camera according to claim 1, wherein the automatic focusing camera is obtained by Er- (α / β).
【請求項4】上記駆動量演算手段は、上記レンズ固有デ
ータをA、β、γとし、上記ずれ量をErとしたとき、上
記駆動量ΔLを、関数式 ΔL=A・β/(β+Er)+γ・Er−A で求めることを特徴とする特許請求の範囲第1項記載の
自動焦点調節カメラ。
4. The drive amount calculation means, when the lens-specific data is A, β, γ and the shift amount is Er, the drive amount ΔL is a functional expression ΔL = A · β / (β + Er) The automatic focusing camera according to claim 1, wherein the automatic focusing camera is obtained by + γ · Er−A.
【請求項5】上記駆動量演算手段は、上記レンズ固有デ
ータをα、γ、δとし、上記ずれ量に基づく値をBとし
たとき、上記駆動量ΔLを、関数式 ΔL=α/B+γ・B−δ で求めることを特徴とする特許請求の範囲第1項記載の
自動焦点調節カメラ。
5. The drive amount calculation means, when the lens-specific data are α, γ, δ and a value based on the displacement amount is B, the drive amount ΔL is a functional expression ΔL = α / B + γ · The automatic focusing camera according to claim 1, wherein the automatic focusing camera is obtained by B-δ.
【請求項6】上記駆動量演算手段は、上記複数組あるレ
ンズ固有データのうち、少なくとも2組の固有データに
基づいて上記駆動量を演算することを特徴とする特許請
求の範囲第1項記載の自動焦点調節カメラ。
6. The drive amount calculating means calculates the drive amount based on at least two sets of unique data among a plurality of sets of lens peculiar data. Autofocus camera.
JP62217734A 1987-08-25 1987-08-31 Autofocus camera Expired - Fee Related JPH0823619B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62217734A JPH0823619B2 (en) 1987-08-31 1987-08-31 Autofocus camera
US07/236,634 US4931820A (en) 1987-08-25 1988-08-25 Auto-focus camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62217734A JPH0823619B2 (en) 1987-08-31 1987-08-31 Autofocus camera

Publications (2)

Publication Number Publication Date
JPS6459312A JPS6459312A (en) 1989-03-07
JPH0823619B2 true JPH0823619B2 (en) 1996-03-06

Family

ID=16708912

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62217734A Expired - Fee Related JPH0823619B2 (en) 1987-08-25 1987-08-31 Autofocus camera

Country Status (1)

Country Link
JP (1) JPH0823619B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100192034B1 (en) * 1996-12-23 1999-06-15 이해규 Zooming device of camera

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59140408A (en) * 1983-02-01 1984-08-11 Minolta Camera Co Ltd Automatic focusing variable power lens
JPS62215218A (en) * 1986-03-17 1987-09-21 Canon Inc Automatic focusing device
JPH0789170B2 (en) * 1986-03-28 1995-09-27 株式会社ニコン Camera system having a taking lens barrel and a camera body to which the taking lens barrel is detachable
JPS63105110U (en) * 1986-12-26 1988-07-07

Also Published As

Publication number Publication date
JPS6459312A (en) 1989-03-07

Similar Documents

Publication Publication Date Title
US4888609A (en) Automatic focus adjusting apparatus
US5049731A (en) Automatic focus control device having a plurality of focus detection areas
JPH02254432A (en) Automatic focusing camera
JPS63246730A (en) Focus detector
JP3585291B2 (en) Automatic focusing device
US4931820A (en) Auto-focus camera
US4952963A (en) Focus detection apparatus for camera
JP3963568B2 (en) Camera autofocus device
US4873543A (en) Automatic focusing camera
US5845155A (en) Multipoint autofocusing system
JPS6341818A (en) Automatic focus adjusting device provided with auxiliary illuminating device
JP2690728B2 (en) Auto focus camera
JPH0827425B2 (en) Automatic focus adjustment device
JPH0823619B2 (en) Autofocus camera
US4816858A (en) Automatic focusing cameras
JP2002023041A (en) Photographing distance measuring device, photographing lens, camera system and information arithmetic device for camera system
JPH065336B2 (en) Autofocus camera
JP3187033B2 (en) Camera auto focus device
US5086217A (en) Automatic focus control device
JPH087328B2 (en) Focus detection device with auxiliary lighting device
JP4169242B2 (en) Automatic focus adjustment device
US5059999A (en) Autofocus apparatus for a camera
JPS62136626A (en) Lens driving device for automatic focusing camera
JPH0830779B2 (en) Automatic focus detection device
JPH07261071A (en) Camera

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees