JPS59152408A - Focus detecting device of camera - Google Patents

Focus detecting device of camera

Info

Publication number
JPS59152408A
JPS59152408A JP2658783A JP2658783A JPS59152408A JP S59152408 A JPS59152408 A JP S59152408A JP 2658783 A JP2658783 A JP 2658783A JP 2658783 A JP2658783 A JP 2658783A JP S59152408 A JPS59152408 A JP S59152408A
Authority
JP
Japan
Prior art keywords
focus
signal
circuit
contrast
level
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
JP2658783A
Other languages
Japanese (ja)
Inventor
Masashio Kitaura
北浦 真潮
Norio Ishikawa
典夫 石川
Toshihiko Ishimura
石村 俊彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP2658783A priority Critical patent/JPS59152408A/en
Priority to US06/565,353 priority patent/US4575212A/en
Publication of JPS59152408A publication Critical patent/JPS59152408A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals
    • G02B7/36Systems for automatic generation of focusing signals using image sharpness techniques, e.g. image processing techniques for generating autofocus signals

Abstract

PURPOSE:To stabilize a focus detection unsuitable signal being in the vicinity of a focus detection possible level by preparing two kinds of high and low reference levels, comparing a detecting signal of a contrast with the low reference level, and comparing it with the high reference level in case said signal is below the reference level. CONSTITUTION:A light of an object is made incident to a CCD4 of a focus detecting device 2 through a photographic lens, its output is processed, and a defocus signal xn and a contrast signal cn are outputted to a display stabilizing circuit 22 from a defocus quantity arithmetic circuit 14 and a contrast arithmetic circuit, respectively. The signal cn is sent to a deciding circuit 50, a low level signal c1 in two high and low reference signals c1, c2 prepared in a constant storing circuit 46 is selected, sent to a deciding circuit 28 and compared with the cn. When the cn is lower than the c1, a detection impossible signal is sent to a display means 34 through a displaying circuit 32, and lamps L2, L3 turn on and off. By the following cycle, the signal cn is compared with the high level reference signal c2, and a focus detection impossible signal is stabilized.

Description

【発明の詳細な説明】 [発明の分野〕 本発明はカメラのピント検出装置Eこ関し、特【こ被写
体像における輝度分布状態に依存してピント検出を行う
ものに適したピント検出装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of the Invention] The present invention relates to a focus detection device for a camera, and more particularly to a focus detection device suitable for detecting focus depending on the brightness distribution state in an object image.

〔従来技術] 何等かの形で被写体像の輝度の分布状態に依存してピン
トの判定を行う場合、被写体のコントラストが充分ない
ときはピントの判定が困難となる。
[Prior Art] When determining focus depending on the luminance distribution of a subject image in some way, it becomes difficult to determine focus when the contrast of the subject is insufficient.

トを検出して、これを予め疋めた基準レベルと比較し、
被写体のコントラストが基準レベノロこ達しない場合、
警告表示を行うよう番こしたカメラが提案されている。
and compare it with a predetermined reference level.
If the contrast of the subject does not reach the standard level,
Cameras designed to provide warning displays have been proposed.

このようなカメラ(こおいて、被写体のコントラストか
丁度予め定めた上記基準レベルと同程度となるような場
合、ピント合せを行っている同番こおいても、÷プ支写
体自身の変化或はコントラスト検出回路内でのノイス等
1色々な誤差要因(こよって検出されたコントラストか
基準レベルの上下に変動し、警告が行われたり停止され
たりする不安定な状態番こなってカメラの使用者を困惑
させるような事態を生ずる。この点より具体的に理解で
きるよう第13図以下番こ示す公〕J例を説明する。
In such a camera (in this case, if the contrast of the subject is exactly the same as the above predetermined reference level, even if the same camera is used for focusing, it will be divided by the change in the subject itself). Alternatively, there may be various error factors such as noise in the contrast detection circuit (therefore, the detected contrast may fluctuate above or below the reference level, resulting in an unstable state where a warning is issued or stopped, and the camera is in an unstable state). This causes a situation that confuses the user.In order to understand this point more concretely, an example shown in FIG. 13 will be explained.

第13図Aおよび第1:3図Bは公知のピント検出装置
の受光部の光学的な構成を示す。第13図A(こおいて
撮影レンスL1に対するフィルム面と等+d1iな位い
′に多数の小さなレンズ11〜lnが配され、これら各
レンスの後面にはCCD素子a1゜l)lか1記されて
いる。たたしi=1,2・・nである。素子群al、a
2・・・antこはレンズL1の図面における下側部分
を通過した光線(Slで代表)が入射し、素子ibl、
b2・・・bnにはレンズL]の上側部分を通過した光
線(S2て代表)が入射する。、合焦時には素子aiと
blは被写体の同一点からの光を受け、非合焦時には被
写体の同一点からの光は対をなす素子a1とblには入
射せす非合焦の方向、度合いに応じてすれる。このずれ
の方向および大きさを検出すること番こより方向を含め
たデフォーカス量を求めることができる。
FIG. 13A and FIG. 1:3B show the optical configuration of a light receiving section of a known focus detection device. FIG. 13A (Here, a large number of small lenses 11 to ln are arranged at a distance equal to +d1i from the film surface with respect to the photographing lens L1, and a CCD element a1゜l is placed on the rear surface of each lens.) has been done. Then, i=1, 2, . . . n. Element group al, a
2... ant A light beam (represented by Sl) that has passed through the lower part of the lens L1 in the drawing enters the element ibl,
A light beam (representatively represented by S2) that has passed through the upper part of the lens L] enters b2...bn. , when in focus, elements ai and bl receive light from the same point on the subject, and when out of focus, light from the same point on the subject enters the pair of elements a1 and bl. Depending on the situation. By detecting the direction and magnitude of this shift, the amount of defocus including the direction of focus can be determined.

第13図Bは、第13図Aにおける素子群al。FIG. 13B shows the element group al in FIG. 13A.

a2・・・a I]とbl、b2・・・bnとを別の形
式に配列した構成例を示す。レンズL2はフィルム等価
あるいはその近傍に配されるコンデンサレンズである。
A2...a I] and bl, b2...bn are arranged in different formats. The lens L2 is a condenser lens arranged at or near the film equivalent.

このレンズL2の後面に結像レンズL;3゜L4が光軸
0を対称軸にして配され、これらレン、(L3.L4の
結像向に素子群al、a2=anとbl、b2・・・b
nがそれぞれ配置されている。
An imaging lens L; 3° L4 is arranged on the rear surface of this lens L2 with the optical axis 0 as the axis of symmetry, and these lenses (L3. In the imaging direction of L4, element groups al, a2=an, bl, b2,・・b
n are arranged respectively.

第14Mは、第13図Bの装置におけるCCDの受光部
の構成例を示す図で、素子群al、a2・・・20〕と
は別にホトタイオードPDが素子群の近傍1こ配してあ
り、素子B)−全体に入射する光の強度を反映すると見
なしつる光を受けるよう(こしである。このホトタイオ
ードPDはCCDの積分時間をモニタするために用いら
れる。第15図は、ホトタイオードP Dを用いたCC
Dの積分時間モニタ回路の一例を示す回路図である。C
CDの積分1こ、、、:しては、ま丁ホトタ゛イオード
PDの容量成分C(こアナロクスイッチSWを介して定
電圧E1を充電しておき、CCUの積分開始と同時にス
イッチS wを不導通にする。この時点から容量成分C
の充電ru荷は入射光強度に比例するホトダイオードI
) I)の光電流により放電され、ホトタイオードPD
のカソードの′TLL圧レヘルしベ下して行く。この″
電圧レベルか所定正圧E2にまで下がるとコンパレータ
% Omの出力レベルか′”低゛から“高”′に反転す
る。スイッチSWか遮断されてからコンパレータCom
の出力が“高”′電圧レベル(こなるまでのli:f闇
かCCDの積分時間として利用される。
14M is a diagram showing an example of the configuration of the light receiving section of the CCD in the device of FIG. 13B, in which a photodiode PD is arranged near the element group in addition to the element groups al, a2...20]. Element B) - This photodiode PD is designed to receive a ray of light that is considered to reflect the intensity of the light incident on the entire device. This photodiode PD is used to monitor the integration time of the CCD. CC used
FIG. 3 is a circuit diagram showing an example of an integration time monitor circuit of D. C
Integration 1 of CD...: Then, the capacitance component C of the photodiode PD (this is charged with a constant voltage E1 via the analog switch SW, and the switch SW is turned off at the same time as the integration of the CCU starts. From this point on, the capacitance component C
The charging ru load of the photodiode I is proportional to the incident light intensity.
) I) is discharged by the photocurrent of photodiode PD
The 'TLL pressure of the cathode levels and goes down. this"
When the voltage level drops to a predetermined positive pressure E2, the output level of the comparator % Om reverses from ``low'' to ``high''.
The output of li:f is used as the integration time of the CCD until it reaches a "high" voltage level (i:f).

スイッチS Wを遮断状態【こするタイミングつまり積
分開始のタイミングはマイクロコンピュータMCのプロ
クラムで指定され、その制御信号はCCD制呻プロック
CBを介して与えられる。マイクロコンピュータMCは
、積分開始のタイミングを発すると内部のカウンタでソ
フトウェアによる計時カウント動作を開始しまた外部割
込み禁止解除の状態となる。コンパレータCo mか“
高”′電圧信号を出力するとCCD制御フロックCBは
°′高”′+tf圧信号に応答してマイクロコンピュー
タMCに割込み要求信号を出力する。これに応答してマ
イクロコンピュータMCのプログラムは割込みルーチン
ヘノヤンプするととも【こ上記のカウンタの計数動作を
停止する。こうして、カウンタにはCCDの積分時間の
情報か確保される。この確保された積分時間を用い、こ
れが予め定めた低輝度レベルに対応する時間よりも長く
なるような場合、被写体は低輝度であってピント検出は
不能であると判定することができる。また確保された積
分時間情報は、予め定めた高輝度レベルに対応する時間
よりも短くなるような場合、後述するように表示のチラ
ツキを抑11i1jするための・清報として用いられる
。マイクロコンピュータM Cは割込ミル−チンへ移る
とCCDの積分テークを予め定めたR A M領域へメ
モリする。CCV)の積分データは、CC1)からの転
送り口゛ツクに同期して順次に時系列的にアナログ電圧
でCCD制御ブロックCBに出力される。CCI) ;
則闘フロックCBでは、CCDからのアナログ電圧信号
は順次にデンタル値に変換される。変換されたテンクル
値が積分テークとしてRAMの所定番地のメモリに格納
される。CCD I制御フロックCBは、割込み要求パ
ルスを出力した以後も引き続いて所要のCCDの積分子
−クの数のパルスを一疋周ル」て割込み端子に向けて出
力する。このパルス【こ同期してマイクロコンピュータ
MCは積分テークをCCD制御フロックCBからメモリ
に取込む。
The switch SW is in the cut-off state [The timing of rubbing, that is, the timing of starting integration, is specified by the program of the microcomputer MC, and its control signal is given via the CCD control block CB. When the microcomputer MC issues a timing to start integration, it starts a software-based time counting operation using an internal counter and enters a state in which external interrupts are disabled. Comparator Com?
When the high voltage signal is output, the CCD control block CB outputs an interrupt request signal to the microcomputer MC in response to the high voltage signal. In response to this, the program of the microcomputer MC jumps to the interrupt routine and stops the counting operation of the above-mentioned counter. In this way, information about the integration time of the CCD is secured in the counter. Using this secured integration time, if this is longer than the time corresponding to a predetermined low brightness level, it can be determined that the subject has low brightness and focus detection is impossible. In addition, the secured integration time information is used as a warning to suppress display flickering, as will be described later, when the time becomes shorter than the time corresponding to a predetermined high brightness level. When the microcomputer MC moves to the interrupt mill, it stores the CCD integral take into a predetermined RAM area. The integrated data of CCV) is output to the CCD control block CB as an analog voltage in a time-series manner in synchronization with the transfer port from CC1). CCI);
In the regular block CB, analog voltage signals from the CCD are sequentially converted into dental values. The converted Tenkle value is stored in memory at a predetermined location in the RAM as an integral take. After outputting the interrupt request pulse, the CCD I control block CB continues to output the required number of CCD multiplier pulses in one cycle to the interrupt terminal. In synchronization with this pulse, the microcomputer MC takes in the integral take from the CCD control block CB into the memory.

第16図は、第13図Aの装置の積分データの格納を行
う割込み処理を示すフローチャートである。第12Lの
CCDからは例えば素子al、bl。
FIG. 16 is a flowchart showing an interrupt process for storing integral data in the apparatus of FIG. 13A. From the 12th L CCD, for example, elements al and bl.

a2.b2・・”+1+bnという順番で積分データが
出力される。第16図においてステップI−1てCCL
)の素子a1の積分データを格納するメモリのアドレス
NaがポインタP T Rにセントされ、CCDの素子
b1の積分テークを格納するメモリのアドレスNbがポ
インタ値暫定退避用のレンスタ5AVEにセントされ、
さら番こ積テータ数N(=2n)がカウンタDCNTに
セットされる。ステップI−2では、割込み端子謳2ク
ゴへのパルスの到来が検出され、パルスの到来があると
ステップJ−3において入出力ポートに与えられている
積分データをアキュムレータに送る。ステップ1〜4で
はアキュムレータの千゛−夕がポインタP′FRで示さ
れるアドレスのメモ1月こ格納される。
a2. Integral data is output in the order of b2..."+1+bn. In FIG. 16, step I-1 is CCL.
) is placed in the pointer PTR, and the address Nb of the memory that stores the integral take of the element b1 in the CCD is placed in the pointer value temporary save register 5AVE.
The counter product theta number N (=2n) is set in the counter DCNT. In step I-2, the arrival of a pulse to the interrupt terminal 2 is detected, and when the pulse arrives, in step J-3, the integral data given to the input/output port is sent to the accumulator. In steps 1 to 4, the memory of the accumulator is stored for one month at the address indicated by the pointer P'FR.

ステップI−5では、次に続くデータを格納すべきメモ
リのアドレスを指定する。この場合、ポインタPTRの
内容に1が加えられ、その結果がポインタP T Rに
格納され、次いでポインタPTRとレノスタ5AVEの
内容が互いに入換えられる。
In step I-5, the address of the memory where the next succeeding data is to be stored is specified. In this case, 1 is added to the contents of pointer PTR, the result is stored in pointer PTR, and then the contents of pointer PTR and reno star 5AVE are swapped with each other.

ステップI−(’iでカウンタDCNTからまたけ差し
引かれ、その結果が0になったか否かがステップI−7
でチェックされる。υでない場合はステップi−1に戻
る。μmにのようにしてカウンタDCN Tの内容がO
になるまで、つまりNl固の枯夕]・テークが所定のメ
モリ(こ(3納されるまでステップ1−1とE−7の1
心を70−は巡廻する。その結暑臥第17図(こヲトす
ようにRA入■のアドレスN a。
Step I-('i is subtracted from the counter DCNT, and step I-7 determines whether the result is 0 or not.
will be checked. If not υ, return to step i-1. The contents of the counter DCNT are O as in μm.
Steps 1-1 and 1 of E-7 until the take is stored in the specified memory (3)
70- goes around the heart. As shown in Figure 17, the address of the RA is N a.

Na−!−1.Na+2 ・−’Na−n−1には素子
al。
Na-! -1. Na+2 ・-' Na-n-1 has element al.

2121  iT 3・・・211〕の1貞分テークか
それぞれ格納さA1、またR AMのアドレスNb、N
b−]、  Nb−←2・・N b −n −1:こ(
ま素子bl、  b2.  l)3・・・1〕1)のゲ
5分子−クかそれぞれ格納される。データの脩卯」か終
了する七フローはステップ1−81こ移り、リターンア
ドレスを次に続く処理ステップのアドレスに、没疋して
リターンする。
2121 iT 3...211] are each stored in A1, and RAM addresses Nb and N
b-], Nb-←2...N b-n-1: this (
Ma element bl, b2. l) 3...1] Each of the 5 molecules of 1) is stored. The flow that ends when the data is processed moves to steps 1-81, sets the return address to the address of the next succeeding processing step, and returns idly.

目的 本発明は被写体のコントラストがピント検出可能なレベ
ル付近にある場合におけるピント検出不籾のγ′ζイ(
1表示を安定化さ−Wたピント]づき出装置を提供する
ものである。
Purpose The present invention aims to solve the problem of detecting γ′ζ (
The present invention provides a device for stabilizing the display.

111Jr l戎 本発明は被写体のコントラストを検出し、これを予め定
めた基準レベル七比較して警告を行うか否かの判定を行
う回路に対して基準レベルを高低2J!Ij用意してお
き、周期的にピント検出及びコントラスト検出の動作を
繰返し、通常は低い方の基準レベル(コントラストか小
さい)を用いて判定を行い、一つの動作サイクルで被写
体のコントラストか基準レベル以下と判定されたとき、
次の動作サイクルにおいて高い方の基準レベルを用いて
判定を行うようにした。このよう(こすると判定動作は
ヒステリンス特性をもつようになる。
111Jr l The present invention detects the contrast of the subject, compares it with a predetermined reference level, and sets the reference level to a circuit that determines whether or not to issue a warning. The focus detection and contrast detection operations are repeated periodically, and judgments are usually made using the lower reference level (contrast or smaller), and in one operation cycle, the contrast of the subject is lower than the reference level. When it is determined that
In the next operation cycle, the higher reference level is used for determination. In this way (rubbing), the judgment operation will have hysteresis characteristics.

刃えは被写体のコントラストが低い方の基準レベルに近
い所にある場合を考えると、通常基準レベルは低い方が
用いられているから被写体コントラストは基準レベル以
上と判定され警告は行われ・ハいか、色々な原因による
コントラスト検出のふらつきて、一時的被写体コントラ
ストが上記基準以下と判廻されると、次の動作サイクル
では基準し”:、 ルカhJい万に切換わるので、検出
されたコントラストが低い万の基準レベル以上番こ戻っ
ても、筒い方の基B、:、レベルを超えない限り警告は
続けられる。しかし検出されたコントラストが高い方の
基準レベルリ、」二tこなると(是をレベル以下と判定
されたときたけ次回の動作で高い方の基糸レベルを用い
るので)次の動作サイクルでは低い方の基準レベルが適
用されることになる。
Considering the case where the blade edge is close to the reference level of the lower contrast of the subject, the lower reference level is normally used, so the subject contrast is determined to be above the reference level and a warning is issued. If the contrast detection fluctuates due to various reasons and the subject contrast is determined to be below the above standard, the contrast will be switched to the standard in the next operation cycle, so the detected contrast will be low. Even if the reference level exceeds 10,000, the warning will continue as long as the detected contrast does not exceed the reference level. (If it is determined to be below the level, the higher base yarn level will be used in the next operation.) In the next operation cycle, the lower reference level will be applied.

なお、本発明は被写体の輝度分布に依存してピント検出
を行う場合(?:、適用されるが、輝度か布に依存する
と云うのは1象の輝度分布関数に解析演算を施してピン
ト検出を行う方式たけでなく、汐・」えはカメラのフィ
ルム相当面の前後番こおける被写体光のコントラストが
一致するか否かでピントの合否を検出すると云った方式
も含む。
Note that the present invention is applicable when focus detection is performed depending on the brightness distribution of the subject, but when it is said that it depends on brightness or cloth, focus detection is performed by performing analytical calculations on the brightness distribution function of one image. In addition to methods that perform this, Shio's method also includes a method that detects whether or not the focus is correct based on whether or not the contrast of the subject light at the front and back of the camera's film-equivalent surface matches.

実1削例 以下述べる実施例はピントの合ったことを検出すると共
に両方のコントラストの大小の量的1如係によって撮影
レンズのデフォーカスの方向及びデフォーカス量をも検
出できるようにしたピント検出手段を有し、カメラファ
イング−内にデフォーカスの方向指示及び合焦の表示を
行うようにしたピント検出装置である。ピント検出が確
実【こ行える限界のコントラストIこ相当するレベルが
前述した低い方の基準レベルとして予め用意されており
、被写体のコントラストかこの基準レベル以下ノドきフ
ァインタ゛−内に警告表示を行う。なお、この実施例で
は合焦の表示に関してもヒステリンス特性を持たせて合
焦時の色々な原因(こよる表示の不安定を解消している
Actual example: The embodiment described below is a focus detection system that detects whether the focus is in focus and also detects the defocus direction and defocus amount of the photographic lens depending on whether the contrast is large or small. This is a focus detection device having a means for instructing the direction of defocusing and displaying the focus within the camera pointing. A level corresponding to the contrast I, which is the limit at which focus detection can be carried out reliably, is prepared in advance as the lower reference level mentioned above, and a warning is displayed in the viewfinder when the contrast of the subject falls below this reference level. In this embodiment, a hysteresis characteristic is also provided for the in-focus display to eliminate various causes of display instability at the time of focusing.

本発明の概念を把握するため第1図に示した実施例の概
要を説明する。点線2て囲んだ部分は撮影レンズ透過光
を受光し、周期的に動作して撮影レンズのデフォーカス
量及び方向とコントラスト信号を周期的(こ出力する。
In order to understand the concept of the present invention, an outline of the embodiment shown in FIG. 1 will be explained. The portion surrounded by dotted line 2 receives the light transmitted through the photographing lens, operates periodically, and periodically outputs the defocus amount and direction of the photographic lens as well as a contrast signal.

コントラスト信号Cnは判定回路50に送られる。判定
回路50には定数貯蔵回路46に予め用意されている高
低二つの基準レベルC1とC1+ΔCのうち何れかが選
択回路48により選択されて印加される。判定回路50
による判定結果はピント状態の判定回路28【こ送られ
る。判定回路28はピント状態に応じて表示回路32を
制御してファインタ゛内表示手段34【こピント状態に
関する表示を行っている。そして判定回路50から基準
レベル以下の判定信号(コントラストが低いつか送られ
て来ると、判定回路28は検出不能の(a号を出し、表
示手段において三角マーク(これは頂点の方向が撮影レ
ノスの距名、リングを回わすべき方向を指示するのであ
るが)L2.L3を同時点滅させて、ピント検出不能の
警告表示を行う。同時にこの検出不能の信号(後述する
が、この信号142ヒントで“11″とコード化されて
いる)は記の回路36に記憶される。
The contrast signal Cn is sent to the determination circuit 50. One of the two high and low reference levels C1 and C1+ΔC prepared in advance in the constant storage circuit 46 is selected by the selection circuit 48 and applied to the determination circuit 50. Judgment circuit 50
The determination result is sent to the focus state determination circuit 28. The determination circuit 28 controls the display circuit 32 in accordance with the focus state, and displays information regarding the focus state on the display means 34 in the finer window. When a determination signal (contrast is low) is sent from the determination circuit 50 that is lower than the reference level, the determination circuit 28 outputs an undetectable signal (a) and displays a triangular mark on the display means (this indicates that the apex is in the direction of the photographic lens). L2 and L3 flash at the same time (instructing the distance name and the direction in which the ring should be turned) to display a warning that the focus cannot be detected.At the same time, this signal indicating that the focus cannot be detected (as will be explained later, this signal 142 hint) (coded as "11") is stored in the circuit 36 described below.

この記いによって選択回路48が操作される。即ち記憶
回路36に検出不能の信号か記憶されてないとき(1次
の動作サイクルでは基準レベルC1を選択して判定回路
50に印加し、検出不能信号か記憶されているときは次
の動作サイクルではC2を選択する。
The selection circuit 48 is operated by this notation. That is, when an undetectable signal is not stored in the storage circuit 36 (in the first operation cycle, the reference level C1 is selected and applied to the determination circuit 50, and when an undetectable signal is stored, the next operation cycle Then select C2.

第2図のクラ7は上述実施例の動作を説明する図である
。横軸の番号は焦点検出素子2から出力されるコントラ
ストの信号の出力順番号であり、縦4itlのynは焦
点検出素子2から出力されるデフォーカス量を示し、折
線で示すよう(0変化している。このグラフで1番から
4番までは撮影レンズを合焦位置番こ向けて動かしてい
る過程である。C1は低いコントラストレベルを与える
基準レベル、C2は高いコントラストレベルを与える基
準レベルである。第3図Bで○印はピント検出可能の場
合、X印は警佑の表示で、これらは上のクラ7の横軸の
番号と対応させである。当初設定レベルはせまいから3
番目まではピント検出可能、4番目でピント検出不能に
入り、こ−で設定レベルは高い万(こl、IJ換えられ
る。5番目以降8番目まではコントラスト検出値は自然
【こ変動しており、8番目で広いピント検出不能の判定
を脱出し、4番から7番まではピント検出可能となって
いる。8番目で設定レベルは再びせまい方に切換えられ
る。第3図Aは合焦ゾーンをCまたけに固定した場合の
合焦表示の点滅を第3図Bと同じ形式で示したものであ
り、Bと比較するとピント検出可不可の変転の頻度が増
しており、本発明によってピント検出不能の警告の安定
化の効果か得られることが示されている。以」二で第1
図の実施例の概略説明を終り、以下同天施例について更
に詳述する。
7 in FIG. 2 is a diagram for explaining the operation of the above-mentioned embodiment. The number on the horizontal axis is the output order number of the contrast signal output from the focus detection element 2, and the vertical 4 itl yn indicates the defocus amount output from the focus detection element 2, as shown by the broken line (0 change). In this graph, numbers 1 to 4 are the process of moving the photographic lens toward the focus position.C1 is the reference level that gives a low contrast level, and C2 is the reference level that gives a high contrast level. In Fig. 3B, the ○ mark indicates that the focus can be detected, and the
The focus can be detected up to the 4th position, and the focus cannot be detected at the 4th position, and the setting level is set to a high value. , at the 8th position, the judgment that the focus cannot be detected is escaped, and from the 4th to the 7th position, the focus can be detected. At the 8th position, the setting level is switched to narrow again. Figure 3 A shows the focusing zone. The blinking of the focus display is shown in the same format as Figure 3B when the camera is fixed at C straddle.Compared to B, the frequency of changes in which focus cannot be detected has increased, and the present invention makes it easier to focus. It has been shown that the stabilizing effect of undetectable warning can be obtained.
Having finished the general description of the embodiment shown in the figure, the same-diameter embodiment will be described in more detail below.

(以下次頁) 第1図に示す本発明による実施例は、1眼レフカメラ(
こ用いられ焦点検出素子2の受光部かミラーホンクスの
底部に配され、周知の光学系を介して撮影レンスを通過
した被写体光束が受光部に専かれる。焦点検出素子21
こは、例えはハネウェル社製のT、C上として知られる
公知の装置が用いられる。この焦点検出装置は、受光部
にラインセンサ4を有し、このラインセンサは゛[に荷
蓄積型の光検出素子CCDで構成され、成る積分時間で
蓄積された″電荷を転送出力し、この出力をもとIこ所
定ノアルコリスム演算処理を施してデフォーカス量およ
びその方向を検出するようになされている。
(See next page) The embodiment according to the present invention shown in FIG. 1 is a single-lens reflex camera (
The light-receiving section of the focus detection element 2 used for this purpose is disposed at the bottom of the mirror honk, and the light beam from the object that has passed through the photographic lens via a well-known optical system is exclusively directed to the light-receiving section. Focus detection element 21
In this case, for example, a known device known as T, C top manufactured by Honeywell is used. This focus detection device has a line sensor 4 in the light receiving part, and this line sensor is composed of a charge accumulation type photodetection element CCD, and transfers and outputs the charge accumulated in the integral time, and outputs the charge. Based on this, a predetermined noalcoholism calculation process is performed to detect the amount of defocus and its direction.

この検出動作は、繰り返し行われ、デフォーカス信号は
間欠的に出力される。
This detection operation is performed repeatedly, and the defocus signal is output intermittently.

また、焦点検出素子2は、積分′屯荷総足に比例した信
号を時々刻々出力し、この信号が所定レベルシこ達した
とき自動的に積分動作を停止するAGC回路が付加され
ている。つまり、受光面の照度Iと積分時間τとの積が
一定に保たれ、被写体輝度に依らず出力の平均レベルが
後段の信号処理系に都合のよいように常にほぼ一定とな
るようにしである。ライン夾ンサ4は制御回路6からの
信号により電荷蓄積、転送なとの制御を受ける。AGC
回路は制御回路6に含まれる。転送動作が開始さ2する
とラインセンサ1からは、順次各ボトタ゛イオートiこ
よる蓄積電荷に応じた電圧[言分が出力される。サンプ
ルボールド回路8は、ラインセンサ・1からの電圧信号
を一時的に保持する。A D変換回f¥:510は、サ
ンプルホールド回路8で保持されているアナログ電圧を
テンクル値に変換する。変換されたテンクル値は、順次
子め指定された番地の記憶回路12に記憶される。記憶
回路121こ記″iハされた情報は、演算回路14に与
えられ所定のアルコリスム演算処理がなされて、デフォ
ーカス量およびその方向が算出され、デイノタルのテア
オーカス信号として出力ライン20に出力される。
Further, the focus detection element 2 is provided with an AGC circuit which momentarily outputs a signal proportional to the total load of the integral and automatically stops the integral operation when this signal reaches a predetermined level. In other words, the product of the illuminance I on the light-receiving surface and the integration time τ is kept constant, and the average level of the output is always kept almost constant regardless of the subject brightness so that it is convenient for the subsequent signal processing system. . The line precipitator 4 is controlled by a signal from the control circuit 6 to store and transfer charges. AGC
The circuit is included in the control circuit 6. When the transfer operation is started, the line sensor 1 sequentially outputs a voltage corresponding to the accumulated charge by each type i. The sample bold circuit 8 temporarily holds the voltage signal from the line sensor 1. The A/D conversion circuit f\:510 converts the analog voltage held in the sample and hold circuit 8 into a Tenkle value. The converted tenkle values are sequentially stored in the storage circuit 12 at addresses designated as children. The information stored in the memory circuit 121 is given to the arithmetic circuit 14, where it undergoes a predetermined algorithm calculation process, calculates the defocus amount and its direction, and outputs it to the output line 20 as the Deinotal tear orcus signal. .

また、演算回路16は記憶回路12の情報からラインセ
ンサ4が受けている部分の被写体像のコントラストの強
度を示す信号を算出する。さらに、タイマー回路18は
ラインセンサ4における電荷蓄積時間τnを各検出サイ
クル毎に計時して出力する。
Further, the arithmetic circuit 16 calculates a signal indicating the contrast intensity of the subject image in the portion received by the line sensor 4 from the information in the memory circuit 12. Further, the timer circuit 18 measures and outputs the charge accumulation time τn in the line sensor 4 for each detection cycle.

次に表示安定化回路22の構成について説明する。焦点
検出素子2の出力ライン20が入力ライン24、と接続
された演算回路26は、第n回目の検出サイクルによる
テアオーカス信号をXnとし、この信号Xnに対する演
算回路26の演算出力をY 11とすると次式で示され
る演算を行う。
Next, the configuration of the display stabilization circuit 22 will be explained. The arithmetic circuit 26, in which the output line 20 of the focus detection element 2 is connected to the input line 24, assumes that the tear orcus signal from the nth detection cycle is Xn, and that the arithmetic output of the arithmetic circuit 26 for this signal Xn is Y11. The calculation shown by the following formula is performed.

yn−αxn+(1−α)yn−1・・・・・・・・ 
(1)(1)式においてα【こは1あるいは1/2のい
ずれかが後述のようにして用いられる。yn−1は第n
−1回目の検出サイクルによるテアオーカス信号xn−
1に対する演算回路26の演算出力である。
yn-αxn+(1-α)yn-1・・・・・・・・・
(1) In equation (1), α [ is either 1 or 1/2 as described below. yn-1 is the nth
-Tear Orcus Signal xn by First Detection Cycle-
This is the calculation output of the calculation circuit 26 for the calculation 1.

尚、第1回目の検出サイクルのデフォーカス信号×1に
対しては上記αがα−1と初期化されてy1=xlとな
り、そのままXlがylとして出力され次段の判定回路
28と記憶回路30に与えられる。演算回路26は、後
述するようにしてα−1/2となる場合、最新の検出サ
イクルのデフォーカス信号xnと゛それ以前のデフォー
カス信号から求められる信号y n −1との平均を求
めるものである。ここてα−1/2の場合の(1)式を
展開すると(2)式か得られる。
In addition, for the defocus signal x1 of the first detection cycle, the above α is initialized to α-1 so that y1=xl, and Xl is directly output as yl to the next stage judgment circuit 28 and storage circuit. given to 30. The arithmetic circuit 26 calculates the average of the defocus signal xn of the latest detection cycle and the signal y n -1 obtained from the previous defocus signal when it becomes α-1/2 as will be described later. be. Here, by expanding equation (1) in the case of α-1/2, equation (2) is obtained.

・・・・・・・・・(2) (2:式から明らかなように、演算回路2Gの出力は最
新のデータに最も重みを置き、過去のテータシこkるに
従って重みを減じた複数のデータの加重平均値を求める
ものである。これは、前述したように同一距離に対して
各検出サイクルのデフォーカス信号(こバラ′ツキがあ
るので、複数のデフォーカス信号の平均値をとることに
よって、誤差を軽減するためである。その際、最新のデ
ータに最も重みを与えて、過去のデータの影響を軽くし
であるのは、次の理由(こよる。撮影レンズがフィルム
面に対して静止状態にあり、また被写体もカメラに対し
て一定の距離にある場合ならは、複数のデフオーカス1
゛菖号の平均値を求めるに除して、それぞれ【こ重み(
’dけを行う必要はない。ところが、実際には、撮影レ
ンズは合焦位置に向けて手動により移動されるという事
情にあり、また被写体とカメラ間の距離も変化しうるの
で最新のデフォーカス信号と過去のデフォーカス信号と
に対等の重きを置くと、上言己のバラツキ以外の誤差の
要素が大きく影響してしまうことになる。このような理
由からh去のデータに対しては重みを軽くしである。
・・・・・・・・・(2) (2: As is clear from the formula, the output of the arithmetic circuit 2G gives the most weight to the latest data, and outputs multiple data whose weight is reduced according to the past data. This is to calculate the weighted average value of the data.As mentioned above, the defocus signal of each detection cycle for the same distance (there is some variation, so it is necessary to take the average value of multiple defocus signals. The reason for this is to give the most weight to the latest data and reduce the influence of past data for the following reason. If the subject is stationary and the subject is at a certain distance from the camera, multiple defocuses 1
゛In order to find the average value of the iris, we divide each [this weight (
There's no need to do anything. However, in reality, the photographing lens is manually moved toward the in-focus position, and the distance between the subject and camera can change, so it is difficult to match the latest defocus signal with the past defocus signal. If equal weight is given, error factors other than the dispersion of the individual will have a large influence. For this reason, less weight is given to the data from h.

判定回路28は、演算回路26からのデフォーカス信号
yl)を予め定めた合焦閾値Zと比較し、合焦、非合焦
を判定してその結果dr+を第1表のように2ヒ゛ノド
の信号として出力する。この出力に応じて表示用の発光
り゛イオードLL、  L2.  L3のいずれかが点
灯される。尚、第1表において、Cは後述の判定回路5
0から出力される1ヒントの信号で、被写体のコントラ
ストが予め定めたレベルIこ達しているか否かを示す。
The determination circuit 28 compares the defocus signal yl) from the arithmetic circuit 26 with a predetermined focus threshold Z, determines in-focus or out-of-focus, and calculates the result dr+ as shown in Table 1. Output as a signal. In response to this output, display light emitting diodes LL, L2. Either L3 is lit. In Table 1, C represents the determination circuit 5, which will be described later.
A 1-hint signal output from 0 indicates whether the contrast of the object has reached a predetermined level I or not.

コントラストが所定レベルに達して0ない場合は合焦検
出は不能と見なし、1ソ1」定回路28からは出力dn
として” 11 ”を出力せしめる。
If the contrast reaches a predetermined level and is not 0, it is assumed that focus detection is impossible, and the output dn is output from the constant circuit 28.
"11" is output as the result.

第1表 Cy n : Z   判定結果 出力dn  表  
示(検0能)   yn<−Z   後ピン  10 
 L3点灯1          検出不能  11 
  L2.L3点点滅器(I nを入力とする表示回路
32はファインタ゛内に設けられる公知の態様の表示手
段34の発光ダイオードLl、L2.L3を駆動する。
Table 1 Cy n: Z Judgment Result Output dn Table
Indication (detection ability) yn<-Z Rear pin 10
L3 lit 1 Undetectable 11
L2. A display circuit 32 having an L3 point blinker (In) as an input drives light emitting diodes L1, L2, and L3 of a display means 34 of a known type provided within the finer.

記憶回路36は、第n + 1回目の検出サイクルの出
力x n + 1に対する演算回路26の出力yn+1
が判定回路28に与えられるまで信号dnを一時的1こ
記″臣し、その記憶値を選択回路40,44.48およ
び演算回路54に与える。選択回路40は、第n回目の
デフォーカス信号xnを用いた第1式の演算の実行のた
めに、第n−1回目のデフォーカス信号x n −1に
対する判定回路28の出力dn−1に応じて定数貯蔵回
路38に貯えである二つの定数α1−1.α2 = 1
 / 2のいずれかを選択して演算回路26に入力する
。信号dn−1が合焦を示す“00′′の場合、定数α
2=1/2が選択され、第2式で示す最新のデフォーカ
ス信号xnから過去に廟ったデフォーカス信号に対する
加重平均処理が行われる。合焦以外の場合は定数α1=
1が選択され、演算回路26は出力y nとして入力X
 11をそのまま出力する。つまり、非合焦領域では撮
影レンズは合焦領域に向けて移動され、刻々と位置を変
えるわけであるから、そのような場合に得られた過去に
遡る複数のデフォーカス信号を平均処理すると、実際に
レンズは合焦領域に達していても平均処理演算結果は過
去の非合焦時のデータ【こひきずられてしまい合焦判定
の応答性が劣化してしまうことになるから平均・処理は
行わないのである。
The memory circuit 36 stores the output yn+1 of the arithmetic circuit 26 for the output x n + 1 of the (n+1)th detection cycle.
The signal dn is temporarily stored until it is given to the determination circuit 28, and the stored value is given to the selection circuits 40, 44, 48 and the arithmetic circuit 54.The selection circuit 40 stores the n-th defocus signal In order to perform the calculation of the first equation using Constant α1-1.α2 = 1
/2 is selected and input to the arithmetic circuit 26. When the signal dn-1 is "00'' indicating focus, the constant α
2=1/2 is selected, and weighted average processing is performed on defocus signals obtained in the past from the latest defocus signal xn shown in the second equation. For cases other than focusing, constant α1=
1 is selected, and the arithmetic circuit 26 outputs the input X as the output y n.
11 is output as is. In other words, in the out-of-focus area, the photographing lens is moved toward the in-focus area and changes its position moment by moment, so if you average multiple defocus signals from the past obtained in such cases, Even if the lens actually reaches the in-focus area, the average processing calculation result is not the same as the past out-of-focus data. They don't do it.

次に、定数貯蔵回路42と選択回路44は、判定回路2
8にヒステリシス特性を与えるための第1のヒステリシ
ス回路45を構成し、以下のよう番こ記憶回路36から
の信号’d n −1+こ応じて定数貯蔵回路42に貯
えられている二つの定数71とZ2のいずれかを判定回
路28に合焦判定基準値として入力する。二つの定数Z
1とZ2はZl<Z2の1ル5係にあり、撮影レンズが
当初非合焦域にあって合焦域に向けて移動されるような
場合、合焦判定基準値として小さい方の定数71が用い
られ、定数Z 1. iコ対応する合焦域に撮影レンズ
か入ったと判定された場合、次の回の検出サイクルのデ
フォーカス1n@(こ対する合焦判定基準値として大き
い方の定数72を用意する。すなわち、当初合焦域を狭
く設定しておき、その狭い領域を目標域(こしてピント
調節を行わしめ、一旦目標域に達すると合焦域を広ける
こと(こより、デフォーカス信号のバラツキによる表示
のめまぐるしいチラッキを防止するのである。定数Zl
、Z2の値は、実験的に適切値に定められる。尚、定数
Z2を判定回路28+こ与える場合、定数Zlに両者の
差ΔZを加算するようをこしてもよいし、あるいは定数
71を与える場合(こ定数72からΔZを滅するように
してもよい。定数貯蔵回路46および選択回路48は1
−゛」定回路50にヒステリンス特性を与えるだめの第
2のヒステリンス回路49を構成する。
Next, the constant storage circuit 42 and the selection circuit 44 are connected to the determination circuit 2.
A first hysteresis circuit 45 is configured to provide a hysteresis characteristic to the constant storage circuit 42, and the two constants 71 stored in the constant storage circuit 42 are configured in response to a signal 'd n -1+ from the number storage circuit 36 as shown below. or Z2 is input to the determination circuit 28 as a focus determination reference value. two constants Z
1 and Z2 are in the ratio of 1 to 5 where Zl<Z2, and when the photographing lens is initially in the out-of-focus area and is moved toward the in-focus area, the smaller constant 71 is used as the focus judgment reference value. is used, and the constant Z 1. When it is determined that the photographing lens has entered the corresponding focus area, the larger constant 72 is prepared as the focus judgment reference value for the next detection cycle's defocus 1n@ (in other words, the initial Set the focus area narrowly, adjust the focus by adjusting the narrow area to the target area, and then widen the focus area once the target area is reached. This prevents flickering.The constant Zl
, Z2 are experimentally determined to be appropriate values. When the constant Z2 is supplied to the determination circuit 28, the difference ΔZ between the two may be added to the constant Zl, or when the constant 71 is supplied (ΔZ may be subtracted from the constant 72). Constant storage circuit 46 and selection circuit 48 are 1
A second hysterin circuit 49 is configured to provide a hysterin characteristic to the constant circuit 50.

判定回路50は、焦点検出素子2からのコントラスト信
号が所定レベルに達しているか否かを判定号の信頼性は
低くなる傾向にあり、コントラストか存在しない場合は
、デフォーカスの検出は不能となる。そこで、予めコン
トラストの判定レベルを設定しておき、コントラスト信
号が判定レベル1こ達しない場合、デフォーカスの検出
は不能と見なして判定回路28から検出不能を示す+1
1111を出力せしめる。コントラストの判定回路50
にもテアオーカスの判定回路28と同様(こヒステリノ
ス特性が与えられ判定結果の安定化が図られる。
The determination circuit 50 determines whether or not the contrast signal from the focus detection element 2 has reached a predetermined level.The reliability of the determination signal tends to be low, and if there is no contrast, defocus cannot be detected. . Therefore, a contrast judgment level is set in advance, and if the contrast signal does not reach the judgment level 1, it is assumed that defocus detection is impossible, and the judgment circuit 28 indicates +1 that detection is impossible.
1111 is output. Contrast determination circuit 50
Similarly to the judgment circuit 28 of Thea Orcus, a hysterinous characteristic is given to stabilize the judgment result.

定数貯蔵回路46に貯えられる定数C1,C2はそれぞ
れ第1および第2のコントラスト判定値をなし、定数0
2はC1より所定値ΔCたけ大きく設定される。これら
定数C1,C2は実験的番こ定められる。
Constants C1 and C2 stored in the constant storage circuit 46 constitute the first and second contrast judgment values, respectively, and the constant 0
2 is set larger than C1 by a predetermined value ΔC. These constants C1 and C2 are determined experimentally.

以上番こおいて、選択回路40,44.48は、いずれ
も記]6回路;36の出力d n −1に1応じて、そ
れぞれの前段回路の定゛故を選択する。つまり、最も%
frしい検出サイクルの子フォーカフ−信号x nおよ
びコントラストLj 5”r Cn lこ対して、これ
より1つ:)6の検出サイクルの出力に対する判定回路
28の判定結果d n −1で広択される定数が用いら
れ、演算1110路26、判定回路28,5LJで所定
の動作が実行される。
In the above case, the selection circuits 40, 44, and 48 select the fault of each preceding stage circuit in accordance with the output dn-1 of the circuit 36 (all shown in FIG. 6). That is, the most%
The child focus signal x n and the contrast Lj 5"r Cn l of the new detection cycle are broadly selected by the judgment result d n -1 of the judgment circuit 28 for the output of the detection cycle 6.) A predetermined operation is executed by the calculation circuit 26 and the determination circuits 28 and 5LJ.

次:こ定数貯・献回路52、ン冨算回路54、カウンタ
5Gからなる回路;4、撮影レンズか合焦位iにある」
3合に、単位時[1」あたりの検出動作の回数が予め疋
めた回数を越えflいように1−るための検出回数制限
回路の要部を’;4成する。ラインセンサ11は入射光
強度に応じて、4 (J 71秒から40υn1秒また
(jそれ以上の積分時間で電荷の蓄積を行う。他方、積
分終了時点から所定のテーク処理を行って合焦判定結果
を出力し、表示動作を行うまでに例えは5U+η秒程の
一定のデータ処理時間が必要である。CCI)の積分時
間を最長400 m秒に制限した士11合、−回の検出
サイクルの期間つまり積分時間とテーク処理時間との和
は、たいたい50m秒から450m秒となる。したがっ
て、検出サイクルの期間か50 m秒の場合、1秒間に
20回の検出動作が行われる。ところが合焦の場合その
ような検出動作が行われると、前述したように、各テア
オーカス]菖号(こバラツキがあることから合焦表示素
子L1と非合焦表示素子L2或はL3とが交互にめまく
るしく点灯する場合があられれて、(1:+影者に戸惑
いを与えてしまう。そこで合焦の場合は、検出サイクル
の期間を最短、例えは100m秒程度に制限して表示の
チラッキを緩和するのである。このようにするためしこ
、合焦時において積分時間τ■〕か予め定めた一定時間
τ0、例えは50m秒より短くなる場合、その差Δτ(
−τ〇−70)たけ検出サイクルを遅延させて次の検出
サイクルを開始させる。回路囚に戻って、定数貯蔵回路
52は一定時間τ0に対応するテークを貯える。演算回
路54は、積分終了時にタイマ回路18からの信号τn
を受けて、記憶回路36からの信号dn−1に応じて第
2表に示す信号Δτnをカウンタ56に向けて出力する
Next: This circuit consists of a constant storage/distribution circuit 52, a value calculation circuit 54, and a counter 5G; 4. Located at the photographic lens or focus position i.
Finally, the main part of a detection number limiting circuit is constructed so that the number of detection operations per unit time [1] exceeds a predetermined number of times. The line sensor 11 accumulates charge over an integration time of 4 (J 71 seconds to 40υn1 seconds or (j) depending on the intensity of the incident light. On the other hand, from the end of integration, a predetermined take process is performed to determine focus. A certain amount of data processing time, for example about 5U + η seconds, is required to output the results and perform the display operation.If the integration time of CCI) was limited to a maximum of 400 msec, it would take -11 detection cycles. The period, that is, the sum of the integration time and the take processing time, is usually 50 msec to 450 msec. Therefore, if the detection cycle period is 50 msec, 20 detection operations are performed per second. In the case of focus, when such a detection operation is performed, as mentioned above, since there is variation in each tear orcus, the focus display element L1 and the out-of-focus display element L2 or L3 will alternately display the focus display element L2 or L3. In some cases, the lights may turn on repeatedly (1:+), which confuses the person in the shadow. Therefore, when focusing, limit the detection cycle period to the shortest period, for example, about 100 msec, to prevent flickering on the display. In order to do this, at the time of focusing, if the integration time τ■] or a predetermined constant time τ0, for example 50 msec, is shorter, the difference Δτ(
-τ〇-70) Delay the height detection cycle and start the next detection cycle. Returning to the circuit, the constant storage circuit 52 stores the take corresponding to τ0 for a certain period of time. The arithmetic circuit 54 receives the signal τn from the timer circuit 18 at the end of the integration.
In response to the signal dn-1 from the memory circuit 36, the signal Δτn shown in Table 2 is outputted to the counter 56.

第2表 dn  l         Δτn 11 ((拙有00 カウンタ56は、判定回路28で判定結果dn−1が表
示回路32、記憶回路32に出力され、それぞれで表示
、記憶動作が行われた後、システム制御回路58から与
えられる計数開始信号によってΔτnの計時を行い、計
時終了後に計時終了信号を出力する。ここで、カウンタ
56は、Δτn=Oが与えられる場合、計数シ始信号に
応答して直ちに計時終了信号を出力するように構成され
るシステム制御回路58は、計時終了信号に応答して、
新たな回の検出サイクルの開始を焦点検出素子2に指令
する。
Table 2 dn l Δτn 11 ((Humble 00) The counter 56 outputs the judgment result dn-1 from the judgment circuit 28 to the display circuit 32 and the storage circuit 32, and after display and storage operations are performed in each, the system The counter 56 measures Δτn based on the counting start signal given from the control circuit 58, and outputs a timing end signal after the counting ends.Here, when Δτn=O is given, the counter 56 immediately starts counting in response to the counting start signal. System control circuit 58 configured to output a timekeeping end signal responds to the timekeeping end signal by:
The focus detection element 2 is commanded to start a new detection cycle.

尚、非合焦時は検出回数を制限すると、非合焦表示状態
から合焦表示状態への応答速度を劣化させることになる
ので、上述のような検出回数の制限は行われない。
Note that if the number of detections is limited when out of focus, the response speed from the out of focus display state to the in focus display state will be degraded, so the number of detections is not limited as described above.

次に第1図の回路の動作を説明する。今、撮影者が検出
スイッチ60を押すと、システム制御回路58は直ちに
記憶回路36の出力を°011こ初期設定し、焦点検出
素子2にCCDの積分開始を指令する。記憶回路36の
初期設定がなされると、それ1こ基づいて表示安定化回
路22の各間は第3表のように規定される。
Next, the operation of the circuit shown in FIG. 1 will be explained. Now, when the photographer presses the detection switch 60, the system control circuit 58 immediately initializes the output of the memory circuit 36 to 011 degrees and instructs the focus detection element 2 to start integrating the CCD. Once the initial setting of the memory circuit 36 is made, each interval of the display stabilizing circuit 22 is defined as shown in Table 3 based on the initial settings.

第   3   表 初期化出力 選択回路40の出力α     α2=1選択回路44
の出力Z      Z1選択回路48の出力CC1 演算回路54の出力Δτ    O 表示回路32の出力      OFF判定回路50の
出力      O さて、CCDの積分か開始され、CCDの受光面照度(
こ応じた時間が経過すると積分動作が停止され、続いて
CCDの各セルに蓄積された電荷が転送され、電圧信号
としてサンプルホール′ド回路8(こ入力されA−D変
換回路10で順次デイノタル値(こ変換されて記憶回路
12番こ格納される。次いてIf′r要の演算経過後に
演算回路14.16からデフォーカス信号2よびコント
ラスト信号が出力される。一方、タイマ回路18は、C
CDの積分1ffJ始時番こりセットされ、積分期間中
番こクロックパルスを計数し、積分停止時の計数値τn
を出力する。、尚、CCDの積分か予め定めた一定時間
(例えは200 m秒)以上を要するような場合は、A
GCからの停止命令を待たす1こ一定時間経過時に強制
的に積分停止を命令する機能をシステム制御回路58に
設けおき、被写体が暗い場合に積分に長い時間かかけら
れることを防止するようにすることが望ましい。
Table 3 Output α of initialization output selection circuit 40 α2=1 selection circuit 44
Output Z of the Z1 selection circuit 48 Output CC1 of the arithmetic circuit 54 Output Δτ O Output of the display circuit 32 Output of the OFF judgment circuit 50
When the corresponding time has elapsed, the integration operation is stopped, and the charges accumulated in each cell of the CCD are transferred as a voltage signal to the sample-and-hold circuit 8 (which is inputted to the A-D converter circuit 10 and sequentially converted into digital signals). The defocus signal 2 and the contrast signal are outputted from the arithmetic circuits 14 and 16 after the If'r calculation has been completed. On the other hand, the timer circuit 18 C
The CD integration 1ffJ start clock pulse is set, the clock pulse is counted during the integration period, and the count value τn is set when the integration is stopped.
Output. However, if the CCD integration requires more than a predetermined period of time (for example, 200 msec), use A.
The system control circuit 58 is provided with a function to forcibly command the integration to stop when a certain period of time has elapsed to wait for a stop command from the GC, to prevent integration from taking a long time when the subject is dark. It is desirable to do so.

さて、第1回目の検出サイクルによるテ゛フォーカス信
号x1およびコントラスト信号Ctlが出力されると、
演算回路26は、α−1と初期化されているので、出力
ylとしてそのままxlを出力し、判定′回路28およ
び記憶回路30に与える。
Now, when the focus signal x1 and contrast signal Ctl from the first detection cycle are output,
Since the arithmetic circuit 26 has been initialized to α-1, it directly outputs xl as the output yl, and provides it to the judgment' circuit 28 and the storage circuit 30.

他方、判定回路50では初期設定されたコントラスト比
較基準値C1とコントラスト信号Ctlとか比較され、
その結果が判定回路28に与えられる。被写体のコント
ラストが十分にあってC1<Ctlの場合、判定回路2
8は、合焦判定基準値z1とデフォーカス信号yl(=
xl)との比較結果d1を出力し、これを表示回路32
および記憶回路36に与える。今、判定の結果として前
ピンであることが検出さnたとすると、表示素子L2か
点灯される。撮影者は。の表示シこ従って距難リングを
廻わして合焦位置へ向けて撮影レンズを移動させて行く
ことになる。
On the other hand, the determination circuit 50 compares the initially set contrast comparison reference value C1 and the contrast signal Ctl.
The result is given to the determination circuit 28. If the contrast of the object is sufficient and C1<Ctl, the judgment circuit 2
8 is the focus judgment reference value z1 and the defocus signal yl (=
xl) and outputs the comparison result d1, which is displayed on the display circuit 32.
and is applied to the memory circuit 36. Now, if n is detected as the front pin as a result of the determination, then the display element L2 is lit. Who is the photographer? Following the display, turn the focus ring and move the photographic lens toward the in-focus position.

ところで演算回路54は、その出力Δτnをカウンタ5
6に与えるが、第1回目の検出サイクル番こおいては、
Δτn−0と初期化されているので、カウンタ56はシ
ステム1β118回路58からの計数カミー始信号に応
答して直ちに計数終了信号を送り返す。かくて焦点検出
素子2は第2回目の検出サイクルに入る。続いて、シス
テム制御回路58は記憶1q路30および3Gに記憶幽
谷を出力させる。
By the way, the arithmetic circuit 54 outputs the output Δτn to the counter 5.
6, but in the first detection cycle number,
Since the counter 56 is initialized to Δτn-0, the counter 56 immediately sends back a count end signal in response to the count start signal from the system 1 β 118 circuit 58. The focus detection element 2 thus enters the second detection cycle. Subsequently, the system control circuit 58 causes the memory 1q paths 30 and 3G to output the memory yoku.

即ち記憶回路30の出力はyn−1−yl(=)<])
となり記憶回路3Gの出力はdn−1−dlとなる。従
って溝号d n−目こよって選択される各選択回路40
,44.48からの定数は第4表のようになる。
That is, the output of the memory circuit 30 is yn-1-yl(=)<])
Therefore, the output of the memory circuit 3G becomes dn-1-dl. Therefore, each selection circuit 40 selected by the n-th groove number d
, 44. The constants from 48 are as shown in Table 4.

第4表 言α剋削賂、30り出選沢回路(40)選択回路(44
)選択回路(48)力(dn−1)   の出ガα) 
  の出がZ)  の出力(c)0 11(検出不能)’ (Q!2=l)     ZI 
     C2次いで、第1回目の@呂すイクルの場合
と同様に焦点検出子置2は、CCUの積分終了の後に積
分時間データτ2を演算回路541こ送るとともに、デ
フォーカス塩Xnを求めて演算回路26へ出力する。演
算回路54は信号dn−1(−di)lこ応じて前記第
2表のような出力Δτn(−Δτ2)を出力する。
4th expression α cutting bribe, 30 selection circuit (40) selection circuit (44
) selection circuit (48) force (dn-1) output α)
output is Z) Output (c) 0 11 (undetectable)' (Q!2=l) ZI
C2 Next, as in the case of the first @rosu cycle, the focus detection element 2 sends the integral time data τ2 to the arithmetic circuit 541 after the completion of the CCU integration, and also calculates the defocus salt Xn and sends it to the arithmetic circuit 541. Output to 26. In response to the signal dn-1 (-di), the arithmetic circuit 54 outputs an output Δτn (-Δτ2) as shown in Table 2 above.

一方、演算回路26は(]フ式に基づいてy2−αx2
+(1−α)yl  ・・・・・・13)て示される演
算を行う。ここで第1回月が合焦であれは、α−1/2
か用いられ出力y2として第1回目と第2回目のデフォ
ーカス量の平均がとられる。W1回目が非合焦であれは
α−1が用いられ前回のylに関係なく出力y2として
第2回目のデフォーカスgx2が出力される。判定回路
28は信号y2と逮択回路44の出力2とを比較して第
1表のように判定結果d2を出力する。この場合、前回
第、1回目の結果が合焦であれは、z−22(!l−し
て前回に用いたzlよりやや幅の広い合焦ゾーンが設定
され、前回か非合焦であれは、より幅の狭い合焦ゾーン
が引き続いて設定されている。!l!iJ定結果d2が
得られると、表示回路32に伝えられ第2回目の検出結
果の表示が行われ、他方、記憶回路36に伝えられて記
憶される。次いでカウンタ56でΔτ2の計時動作が起
動され、計時終了信号が発されるとシステム制御回路5
8は第3回目の検出サイクルの開始の指令を発する。
On the other hand, the arithmetic circuit 26 calculates y2−αx2 based on the formula
+(1-α)yl...13) is performed. If the first moon is in focus here, α-1/2
The average of the first and second defocus amounts is taken as the output y2. If W1 is out of focus, α-1 is used, and the second defocus gx2 is output as output y2 regardless of the previous yl. The determination circuit 28 compares the signal y2 with the output 2 of the arrester circuit 44 and outputs the determination result d2 as shown in Table 1. In this case, if the result of the previous or first time was in focus, a slightly wider focus zone than the zl used last time is set with z-22(!l-, and regardless of whether it was the previous time or out of focus) , a narrower focusing zone is successively set.!l!iJ When the fixed result d2 is obtained, it is transmitted to the display circuit 32 to display the second detection result, and on the other hand, the memory It is transmitted to the circuit 36 and stored.Next, the counter 56 starts the timing operation of Δτ2, and when the timing end signal is issued, the system control circuit 5
8 issues a command to start the third detection cycle.

第;3回目以降の検出サイクルについては上述第2回目
と同様の過程を繰り返す。
For the third and subsequent detection cycles, the same process as the second detection cycle described above is repeated.

尚、システム制御回路58は、゛帛時スイッチ60の状
態を監視し、スイッチ60が開かれるとその時点から1
シリえは15秒間後番こ電源回路を自動的に切って一連
の焦点検出動作を終了するように構J戎してもよい。
Note that the system control circuit 58 monitors the state of the switch 60 during operation, and when the switch 60 is opened, the 1
The camera may be configured to automatically turn off the power supply circuit after 15 seconds to complete the series of focus detection operations.

以上の動作を要約すれは、前回の判定結果が非合焦であ
る場合(こは、前回の結果とは無関係に今回のテアオー
カスff1xnのみを対象とし、狭い目に股だされたき
焦ソーン【こ入っているか否かを判定LX次の検出サイ
クルに入る。前回の判定結果が合焦である場合には、前
回のデフォーカス相当mynlとの平均処理を施し、そ
の結果ynに刻して、広い目に設定された合焦ゾーンに
入っているか否かを判定する。この際、比較的に明るい
被写体に対して、演出サイクルの期間が短くなることに
制限が加えられる。
To summarize the above operation, if the previous judgment result is out of focus (in this case, only the current tear orcus ff1xn is targeted, regardless of the previous result, Determine whether the L It is determined whether the eye is within the set focus zone.At this time, a restriction is placed on the shortening of the production cycle period for relatively bright subjects.

ところで焦点検出素子において、所定のアルゴニズムに
従ってデフォーカス量xnが求められる場合、CCDの
各セルの出力値によっては十分信頼性のある答が得られ
ない場合がある。例えば被写体のコントラストが低く、
CCDの各セル出力間の差異が殆んと無いような場合や
被写界が暗すきてCCDの電荷蓄積量が少なすきるよう
な場合においては、焦点検出素子は検出能力の域から出
てしまっている訳で、このような場合は判定回路50の
出力【こ応答して判定回路28から検出不能を示す信号
が出力され、これに応じて表示素子L2とL3が点滅さ
n1警告表示がなされる。この場合、判定回路50にも
ヒステリンス特性が付けられ、警告表示が通常の表示と
目まくるしく入れかわることが防がれる。
By the way, in the focus detection element, when the defocus amount xn is determined according to a predetermined algorithm, a sufficiently reliable answer may not be obtained depending on the output value of each cell of the CCD. For example, if the contrast of the subject is low,
In cases where there is almost no difference between the outputs of each cell of the CCD, or in cases where the field of view is so dark that the amount of charge stored in the CCD is small, the focus detection element is out of its detection capability. In such a case, the judgment circuit 50 outputs a signal indicating that detection is not possible. It will be done. In this case, the determination circuit 50 is also provided with hysteresis characteristics to prevent the warning display from being replaced with the normal display rapidly.

今、第n〕回目の判定結果dmが検出不能ではない(d
m\” l 1 ” )場合、即ち十分コントラストか
あった場合、i(m−4−1)回目の検出サイクルにお
いてはコントラストの判定回路50にコンl・ラスト判
だ基準値として低目の判定レベルC1が巧えられ、焦点
検出装置ム2からのコントラスト借料Ct+11+1と
比較される。また、第171回目の判定結果d mが検
出不能である場合(d m = ” 11 ” )、即
ちコントラスト不足で警告表示がなされる場合、第(I
η+1)回目の検出サイクルのコアトラスト信号Ctm
−1−11こ対して、判定回路50に高目の判定レベル
C2か与えられる。このような演出不能判定レベルのヒ
ステリンス効果か第3図1こ示される。このように判定
回路50にヒステリンス特性を付けることにより警告表
示判定レベル付近での表示の不安定性を軽減することが
できる。
Now, the nth] judgment result dm is not undetectable (d
m\"l 1"), that is, when there is sufficient contrast, in the i (m-4-1)th detection cycle, the contrast judgment circuit 50 determines that the contrast is low as the standard value. Level C1 is calculated and compared with contrast borrowing Ct+11+1 from focus detection device M2. In addition, if the 171st determination result d m is undetectable (d m = "11"), that is, if a warning is displayed due to insufficient contrast, the 171st determination result d m is
Core trust signal Ctm of the η+1)th detection cycle
-1-11 On the other hand, a higher judgment level C2 is given to the judgment circuit 50. The hysterin effect at such a level that it is impossible to perform is shown in FIG. 3. By providing the determination circuit 50 with hysteresis characteristics in this manner, instability of the display near the warning display determination level can be reduced.

第4図は、本発明の合焦状態表示装置をマイクロコンピ
ュータ(例えはインテル社製8 、OC48)を用いて
構成した場合の実施例を示す構成図である。この装置は
、l眼し7カメラ61のミラーボックスの底部に配され
たCCDブロック62とCCDを制ツしかつCCDの出
力をデジタル化するA−D変換回路を含むCCD制御ブ
ロック64とマイクロコンピュータ66とこれに接続さ
れた、ピント検出を指示するためのAFスイッチ60、
合焦時tこ短時間たけ音を発せしめるためのブザー68
およびピント状態を表示するための発光ダイオードLl
、L2.L3等により構成されている。
FIG. 4 is a configuration diagram showing an embodiment in which the focus state display device of the present invention is configured using a microcomputer (for example, Intel 8, OC48). This device consists of a CCD block 62 arranged at the bottom of a mirror box of a seven-lens camera 61, a CCD control block 64 containing an A-D conversion circuit that controls the CCD and digitizes the output of the CCD, and a microcomputer. 66 and an AF switch 60 connected thereto for instructing focus detection.
Buzzer 68 for emitting a short-duration sound when in focus
and a light emitting diode Ll for displaying the focus status.
, L2. It is composed of L3 and the like.

マイクロコンピュータ66のRA M領域には以下(こ
述へるフランクとカウンタか確保されている。
The following flanks and counters are reserved in the RAM area of the microcomputer 66.

7ラツグFPFは第1回の検出サイクルが始まった初期
(こ++ 1 ++にセントされ、第2回の検出サイク
ルからはクリアされる。フラッグLCFはコントラスト
が所定レベル以下と判断されたとき1′′(こセ′]卜
され、所定レベル以上の判断されたときは“0゛番こク
リアされる。フラッグLLFは被写体輝度が所定レベル
以下と判断されたとき“1′′にセットされる。7ラツ
グSFXは各検出サイクル毎のデフォーカス信号が前ピ
ンを示す場合“1″【こセントされ、後ピンを示す場合
には“011にクリアされる。7ラツグ5FYnは加重
平均処理された、デフォーカス信号が前ピンの場合+1
111にセントされ、後ピンの場合にIt O++にク
リアされろ。フランクI F F 11は最新のデフォ
ーカス信号)′l〕が合焦・ノーン番こ入ったと判定さ
れたとき“1゛にセットされ、合焦ソーンからはすれて
いると判定されたときは“” 0 ”にクリアされる。
The 7lag FPF is set at the beginning of the first detection cycle (this ++ 1 ++) and is cleared from the second detection cycle. The flag LCF is set to 1' when the contrast is determined to be below a predetermined level. The flag LLF is cleared to "0" when it is determined that the brightness of the object is equal to or higher than a predetermined level. The flag LLF is set to "1'' when the brightness of the subject is determined to be lower than a predetermined level. 7 lag SFX is set to "1" when the defocus signal in each detection cycle indicates the front focus, and is cleared to "011" when it indicates the rear focus. 7 lag 5FYn is subjected to weighted average processing. +1 if the defocus signal is the front focus
Sent to 111 and cleared to It O++ for back pins. The flank IFF 11 is set to "1" when it is determined that the latest defocus signal)'l] is in focus/non-focus, and is set to "1" when it is determined that it is out of focus. Cleared to "0".

7ランクI F F n −1はOiJ回の合焦判定結
果を保持するもので、前回の判定結果か合焦のときはI
t 111に七′ノドされ、非合焦のときは“°0パに
クリアされる。
7 rank I F F n -1 holds the focus judgment results of OiJ times, and when the previous judgment result or focus is
It is cleared to 7' at 111, and when out of focus, it is cleared to 0°.

7ランクBFは、コントラストが不十分でピント検出不
能と判定された場合(こ表示用発光り゛イオードを点滅
させて警告表示か行わJする力板この警告表示動作の制
御の過程で用いられる。
7 rank BF is used in the process of controlling the warning display operation when it is determined that the focus cannot be detected due to insufficient contrast.

カウンタTn、Teは、ccDの積分最長時間を定める
ために用いら3t1上位の1バイトTnと下位の1パイ
)Teからの合計2バイトで構成される。このカウンタ
は、CCDの積分開始と同時に予めセントされた値から
減算カウントを始める。
The counters Tn and Te are used to determine the maximum integration time of ccD and are composed of a total of 2 bytes from the upper 1 byte Tn of 3t1 and the lower 1 byte Te. This counter starts counting by subtracting from a predetermined value at the same time as the CCD starts integrating.

セント値の全数をカウントするに要する時間は積分最長
時[舶こ当る。カウンタBCTRは、警告表示として発
光・シ゛イオードL2とL3を点滅制御する場合に、そ
の点灯時間と消灯時間を規定するタイマとして用いられ
、イニシャライズのステップで定数Ncnがセットされ
る。タイマカウンタTC”rRはカウンタとしてマイク
ロコンピュータに備えられたもので、マイクロコンピュ
ータノ内部りロンクパルスを入力信号とし、−入力部に
設けられたケートをタイマカウンタ制御命令によって制
御することによって自由に計時動作をプロクラムするこ
とかできる。この内部クロックパルスはマイクロコンピ
ュータの基本マシンサイクルを分周したものが用いられ
る。また、タイマカウンタTCTRの計数値がオーバー
フローするとタイマフラグTFが自動的に“′1″にセ
ントされる。このタイマフラグTPはプログラム【こよ
ってその内容をテストすることができ、かつテスト結果
によっテフログラムを条件分岐することができる。尚、
このタイマ7ラグTFはプログラムによってテストされ
ると、その時点で自動的にB Oll 、こクリアされ
る。このフラグTFは後述のよう番こ表示a作の制御番
こ用いられる。
The time required to count all the cent values is the maximum integration time. The counter BCTR is used as a timer to define the lighting time and extinguishing time when controlling the light emitting diodes L2 and L3 to blink as a warning display, and a constant Ncn is set in the initialization step. The timer counter TC"rR is provided as a counter in the microcomputer. It receives a long pulse from inside the microcomputer as an input signal, and can freely measure time by controlling the gate provided at the input section with the timer counter control command. This internal clock pulse is a divided basic machine cycle of the microcomputer.Also, when the count value of the timer counter TCTR overflows, the timer flag TF is automatically set to "'1". This timer flag TP can be used to test the contents of the program, and the Tefrogram can be conditionally branched based on the test results.
When this timer 7 lag TF is tested by the program, it is automatically cleared at that point. This flag TF is used as a control number for the number display a, which will be described later.

第5図は、藁4図に示すピント表示装置の全体的な動作
の15tEれを示す70−チャートである。第5図にお
いて電源スイツチ(不図示)を投入するとステップS−
2でマイクロコンピュータツバ−トウエア1こよって次
のような初期化設定が自動的(こ行われる。
FIG. 5 is a 70-chart showing the 15tE deviation of the overall operation of the focus display device shown in FIG. In FIG. 5, when the power switch (not shown) is turned on, step S-
2, the microcomputer software 1 automatically performs the following initialization settings.

]フロクラムカウンクを” o ” +こする。] Rub the floclumkaunk with “o” +.

2外部割込み禁止状態にする。2 Disable external interrupts.

3クイマカウンクTCTRへの入力を阻止する。3 Prevents input to the queue counter TCTR.

11、クイマフラグT Fを++ O++にクリアする
11. Clear the Kuima flag T F to ++ O++.

またソフトウェアによって次の初期化設定か行われる。The software also performs the following initialization settings.

]、 CCI) jfilJ tllプロンク6・1へ
のフロックの供給が開始される。
], CCI) jfilJ tll Supply of flocs to pronk 6 and 1 is started.

2カウンクBCTRに初期値Conをセットする。2. Set the initial value Con to count BCTR.

次にステップS−3でピント状態表示の発光タイオード
L、L2.L3のいずれをも点灯させない操作が行わね
るとともに後述の表示用サブルーチンを機能さぜないた
めにタイマフラグTFが’“O++にクリアされ、タイ
マカウンクTCTRへの入力クロツクパルスを阻止する
。続いてステップS−4て7ラグFPFに第1回目の検
出サイクルであることを示す“1’ +1がセントされ
る。ステップS−5ではAFスイッチ60がオンになっ
ているか否かがチェ′ツクされ、オフの場合はステップ
S−4と3−5を巡廻してAFスイッチ60がオンされ
るまで待機状態となる。AFスイッチ60かオン(こな
ると、ステップ56においてCCDの積分を開始する命
令がCCD制御フロック64へ出力され、CCUの留分
が終了すると、CCDff1’j klフロンクロ4番
こより発生される割込み要求信号番こ応答してステップ
5−7(こおいて積分データがマイクロコンピュータの
所定のメモリに取込まれる。尚、ステップS −6の詳
細な内容は第8図の70−チャートに基ついて後述する
ステップS−8では予め定められたアルゴリズムにより
CCDの出力テークが演算処理され方向を含むテフォー
カス量およびコントラストが求められる。
Next, in step S-3, the light emitting diodes L, L2 . Since an operation that does not turn on any of L3 cannot be performed and the display subroutine described later does not function, the timer flag TF is cleared to ``O++'' and the input clock pulse to the timer counter TCTR is blocked.Subsequently, step S- 4, "1'+1" indicating that it is the first detection cycle is sent to the 7-lag FPF. In step S-5, it is checked whether or not the AF switch 60 is on, and if it is off, steps S-4 and 3-5 are repeated and the state is in standby until the AF switch 60 is turned on. . When the AF switch 60 is turned on (when this happens, a command to start CCD integration is output to the CCD control block 64 in step 56, and when the CCU integration is completed, an interrupt request signal is generated from CCDff1'j kl front clock 4). In response to this, step 5-7 (here, the integral data is taken into a predetermined memory of the microcomputer. The detailed contents of step S-6 will be described later based on the 70-chart in FIG. 8). In step S-8, the output take of the CCD is processed by a predetermined algorithm to determine the focus amount and contrast including direction.

尚、この演算処理には例えば50m秒程度の時間を要す
るので、演算処理ルーチンの途中に数ケ所表示用サブル
ーチン第9図を挿入して、後述する警告点滅表示が不自
然にならないよう番こしている。ステップS−9で再ひ
AFスインチロ0のオン・オフ状態がチェックされ、オ
フの場合はステップS−3に戻る。オンの場合はステッ
プS−101こ移りステップS−8で求められたコント
ラストが所定(直CとLヒ:1佼される。ステップ5−
10の内容を示す70−チャ−1−を第6図に示す。こ
の70−チャートを参照して、第1回の検出サイクルF
 P F = 1の場合はC=C1(<C2)が用いら
れ、これを厳えているときは、低コントラストフラッグ
LCFはit O++にリセントされ、越えていないと
きは、LCFは”Lll″にセットされる。
Since this arithmetic processing takes about 50 milliseconds, for example, several display subroutines (Fig. 9) are inserted in the middle of the arithmetic processing routine to prevent the flashing warning display described later from becoming unnatural. There is. In step S-9, the on/off state of AF switch 0 is checked again, and if it is off, the process returns to step S-3. If it is on, step S-101 is reached and the contrast determined in step S-8 is set to a predetermined value (Direct C and L Hi: 1). Step 5-
70-Char-1- showing the contents of 10 is shown in FIG. Referring to this 70-chart, the first detection cycle F
When P F = 1, C=C1 (<C2) is used, and when this is strictly enforced, the low contrast flag LCF is reset to it O++, and when it is not exceeded, LCF is set to "Lll". be done.

第2回目の検出からは第1回目の検出サイクルの比較結
果に基づいて参照値Cは、前述のようにC]とC2のい
ずれかが選択されて用いられ、前回の結果を示す低コン
トラストフランクLCFが″0パで、コントラストが充
分であると判定されているとき(−01か月いられ、反
対tこ1”′かセラi−;lしてコントラストが不充分
であると判定されているときはC2か用いられる。こう
して選択された診照値に対する比較結果は低コントラス
トフラッグLCFにセントされる。このとき前回の内容
は失なわれる。
From the second detection, either C] or C2 is selected and used as the reference value C based on the comparison result of the first detection cycle, and the low contrast flank representing the previous result is used. When the LCF is "0" and the contrast is determined to be sufficient (-01 months, the contrast is determined to be insufficient after 1"' or the contrast is determined to be insufficient. If there is, C2 is used.The comparison result for the selected diagnosis value is sent to the low contrast flag LCF.At this time, the previous content is lost.

次lこ、ステップ5−11において最新のテフォーカス
iXnと過去のテフォーカス量Ynlとの加重平均Yn
を求める計算が行われる。続くステップ5−12ではス
テップ5−11で計算されたテフォーカス量Ynが所定
の合焦ソーンに入っているか否かが判定される。このス
テップの内容を示すフローチャートを第7図に示す。第
7図のステップ11−1で当該フローが第1回の検出サ
イクルであるか否かがフラッグFPFを調べてチェック
される。第1回の検出サイクルのときはステップ11−
3に移って合焦判定値Zとして狭い万の値Z1が用意さ
れる。第2回の検出サイクルあるいはそれ以後は、フロ
ーはステップ11−2へ移り合焦7ラツクIFFnから
04回の合焦判定結果がチェックされる。前回の合焦結
果はステップ11−7あるいは1l−8iこおいて合焦
の場合は+(111がまた非合焦の場合は0″に合焦7
ラツグI F F nにクリアされている。4さて、合
焦フラ゛ノグI F F nのチェックの結果非合焦の
場合はステップ11−3へ、また合焦の場合はステップ
11−4へ移る。ステップ11−4へ移って、場合は合
焦判定値2として広い方の値Z2が用意される。ステッ
プ11−5では、合焦フラップIFF ’nの内容がも
う一つの合焦フラッグlFFn−1にセ゛ノドされる。
Next, in step 5-11, the weighted average Yn of the latest tefocus iXn and the past tefocus amount Ynl is calculated.
A calculation is performed to find In the subsequent step 5-12, it is determined whether the telefocus amount Yn calculated in step 5-11 falls within a predetermined focusing zone. A flowchart showing the contents of this step is shown in FIG. At step 11-1 in FIG. 7, it is checked by checking the flag FPF whether the flow in question is the first detection cycle. For the first detection cycle, step 11-
Moving on to step 3, a narrow value Z1 of 10,000 is prepared as the focus determination value Z. In the second detection cycle or thereafter, the flow moves to step 11-2, and the results of the 04th in-focus determination are checked from the 7th in-focus IFFn to the 04th detection cycle. The previous focusing result is determined in step 11-7 or 1l-8i, and if in focus, + (if 111 is still out of focus, focus 7 to 0'')
Cleared by lag IFFn. 4 Now, as a result of checking the focusing flag IFFn, if the result is out of focus, the process goes to step 11-3, and if it is in focus, the process goes to step 11-4. Proceeding to step 11-4, the wider value Z2 is prepared as the focus determination value 2. In step 11-5, the contents of the focus flap IFF'n are assigned to another focus flag IFFn-1.

このステップは当面の合焦判定動作には関係せずセット
された情報は後のステップ5−16で用いられる。次に
、ステップ11−6で用意さ2tた合焦判定値Z内にデ
フォーカス量Ynが入っているか否かが判定される。合
焦の場合はステップ11−7に移り、合焦フラッグ■F
Fn1こ°′1パがセントされ、非合焦の場合はステッ
プ11−8に移って合焦フラングIFFnが′“0゛が
クリアされる。以上のようにして前回の合焦判定結果に
1づいて、今回の合焦判定のための判定伯Zがj IJ
:j キれヒステリンス特性が与えられる。
This step is not related to the current focus determination operation, and the set information is used in the subsequent step 5-16. Next, it is determined whether the defocus amount Yn is within the focus determination value Z of 2t prepared in step 11-6. In the case of focus, move to step 11-7 and set the focus flag ■F
When Fn1 is out of focus, the process moves to step 11-8 and the focus flag IFFn is cleared to 0.In this way, the previous focus judgment result is set to 1. Therefore, the judgment value Z for this focus judgment is j IJ
:j A break hysterin characteristic is given.

次にステップ5−13ではステップ5−10で低コント
ラストフラッグLCFにセットされた内容がチェックさ
れ、低コントラストでない場合は次のステップ5−14
に進む。ステップ5−14では合焦フラッグIFFnの
内容がチェックされ合焦フラングの場合は次のステップ
5−15に進む。ステップ5−15では当該フローが第
1回の検出サイクルであるか否かが7ラツグFPFをチ
ェックして調べられる。ね−31回の検出サイクルの場
合は、ステップ5−18に移って合焦表示の発光ダイオ
ードが点灯される。第1回の検出サイクルでない場合は
、ステップ5−16に移って、合焦フラッグI F F
 n −1をチェックして前回の合焦判定結果が調べら
れる。それが非合焦のときはステップ5−18に移る。
Next, in step 5-13, the content set in the low contrast flag LCF in step 5-10 is checked, and if the contrast is not low, the next step 5-14 is performed.
Proceed to. In step 5-14, the contents of the focus flag IFFn are checked, and if the flag is in focus, the process proceeds to the next step 5-15. In step 5-15, it is determined whether the flow is the first detection cycle by checking the 7-lag FPF. In the case of 31 detection cycles, the process moves to step 5-18, and the light emitting diode indicating focus is turned on. If it is not the first detection cycle, proceed to step 5-16 and set the focus flag IFF
By checking n-1, the previous focus determination result can be investigated. If it is out of focus, proceed to step 5-18.

つまり前回の結果が非合焦で今回の結果が合焦の場合、
ステップ5−18で合焦表示がなされる。前回に引きつ
づいて今回も合焦の場合は、ステップ5−17に移って
高輝度の)・17合は、戻口サイクルの期間の延長がな
される。さて、ステップ5−18に続いてステップS−
]9では合焦表示の発光り゛イオードL1の点灯ととも
に短時間(例えば02秒程)ブザーが鳴らされ、合焦ゾ
ーン番こ入ったことが聴覚的に示される。続くステップ
5−20ではAFスイッチ6゜が投入されているか否か
がチェックされる。投入されている場合はステップ5−
22に移り、投入されていない場aはステップ5−21
に移る。ステップ5−21では点灯されている発光ダイ
オードを消灯する。ステップ5−22では7ラツグFP
Fを++ 011にクリアする。このステップに続いて
フローはステップS−6に移る。
In other words, if the previous result was out of focus and the current result is in focus,
In step 5-18, focus is displayed. If the image is in focus this time as well as the previous time, the process moves to step 5-17, and in the case of high brightness).17, the period of the return cycle is extended. Now, following step 5-18, step S-
] 9, the light emitting diode L1 for in-focus display is turned on and a buzzer is sounded for a short time (for example, about 02 seconds) to audibly indicate that the focus zone has been entered. In the following step 5-20, it is checked whether the AF switch 6° is turned on. If it is loaded, step 5-
Step 22, and if a is not inserted, step 5-21
Move to. In step 5-21, the lit light emitting diodes are turned off. 7 lag FP in step 5-22
Clear F to ++011. Following this step, the flow moves to step S-6.

次に、CCDの積分ステップS −6の内容を示す飢8
図の70−チャートについて説明する。ステップ6−1
で積分開始を命令する信号が出力され、次いでステップ
6−2で低輝度7ラツグLLFがIO1′にクリアされ
る。ステップ6−3では、マイクロコンピュータを割込
み受付は可能状態に1買いで次のステップ6−4に移る
。ステップ6−4では所更の最長積分時間400 m秒
に対応するパルス計数値がカウンタTn + T eに
セントされる。このカウンタは前述のように上位Tn、
下位Teの2バイトで構成され、当初カウンタTnに最
し積分時間に対応する計数値T n m a xがセッ
トされ、カウンタTeにはFF(=256)がセントさ
れる。ステップ6−5ではAFスインチロ0が投入され
ているか否かがチェックされる。投入されている場合は
、以後、カウンタの内容が減算されて行くが、カウント
終了までに、つまりカウンタの内容がOになる前にCC
Dの積分が終了してこれを示す割込みパルスがCCD1
lJ御ブロツク64より発生すると、カウンタの減算動
作は停止され、割込み処理ルーチンへ移る。割込みが発
生しない場合は400m秒の計時終了時にCCDFが“
1’Jこセットされて次のステップに移る。
Next, the following table shows the contents of the CCD integration step S-6.
The 70-chart in the figure will be explained. Step 6-1
A signal instructing the start of integration is output at step 6-2, and then, at step 6-2, the low luminance 7 lag LLF is cleared to IO1'. In step 6-3, the microcomputer is placed in a state where it can accept interrupts, and the process moves to the next step 6-4. In step 6-4, the pulse count value corresponding to the longest integration time of 400 msec is entered into the counter Tn+Te. As mentioned above, this counter is the upper Tn,
It is composed of two bytes of the lower Te, and initially a count value Tnmax corresponding to the maximum integration time is set in the counter Tn, and FF (=256) is written in the counter Te. In step 6-5, it is checked whether the AF switch 0 is turned on. If it is, the contents of the counter will be decremented from then on, but before the count ends, that is, before the contents of the counter reach 0, the CC
When the integration of D is completed, an interrupt pulse indicating this is sent to CCD1.
When this occurs from the lJ control block 64, the counter subtraction operation is stopped and the process moves to the interrupt processing routine. If no interrupt occurs, the CCDF will display “
1'J is set and moves to the next step.

ステップ6−6から6−10まではカウンタの減算カウ
ントのフローである。ステップ6−6では下位のカウン
タTeの内容から1カウントだけ引かれ、ステップ6−
7でカウンタTeの内容が0になったか否かが調べられ
る。0でない場合はステンプ()−5に戻る。このよう
にして、カラン・ンTeが0になるまでステップ6−5
と6−7のlidを進形する。カウンタTeが0(こな
ると後述のステ′ノブ6−8に移り、次いてステップ6
−9で上位のカウンタT nから1だけ減じられる。ス
テップ6−1OではカウンタTnがOになったか否かか
り、4べられ、0でない場合はステップ6−5に戻る。
Steps 6-6 to 6-10 are the flow of counter subtraction counting. In step 6-6, one count is subtracted from the contents of the lower counter Te, and step 6-
At step 7, it is checked whether the contents of the counter Te have become 0 or not. If it is not 0, return to step()-5. In this way, step 6-5 until Karan Te becomes 0.
and convert the lid of 6-7. Counter Te is 0 (when this happens, the process moves to Ste'knob 6-8, which will be described later, and then step 6
-9, the upper counter Tn is decremented by 1. In step 6-1O, it is determined whether the counter Tn has reached 0 or not, and 4 is counted. If it is not 0, the process returns to step 6-5.

かくして、割込みが発生しないかぎりカウンタTe、T
nが0になるまでステップ6−5と6〜10の間を70
−は進形する。この進形に要する時間が約400m秒で
ある。ステ“ノブ6−11ではCCDの積分が強制的に
終了され、次いてステップ6−12で低輝度フラッグL
、 L Cが++ 1 ++にセントされる。これは被
写体輝度か低いことを意味する。いずれにせよ積分が終
了されると割込みか発生し、マイクロコンピュータ66
は積分データの取込みを行うための割込み処理のステッ
プS−7に入る。ただL1ステップ6−5でAFスイッ
チ60がオフ状態であることが(多山されるとマイクロ
コンピュータ66は割込み禁止状態となり、CCDの積
分を停止させステップS−3に戻る。
Thus, unless an interrupt occurs, the counters Te, T
70 steps between steps 6-5 and 6-10 until n becomes 0.
- is in progressive form. The time required for this progression is approximately 400 msec. Step 6-11 forces the CCD integration to end, and then step 6-12 sets the low brightness flag L.
, LC is cented to ++ 1 ++. This means that the subject brightness is low. In any case, when the integration is completed, an interrupt occurs and the microcomputer 66
Then, the process enters step S-7 of interrupt processing for importing integral data. However, if the AF switch 60 is in the OFF state in step 6-5 of L1, the microcomputer 66 enters an interrupt disabled state, stops the CCD integration, and returns to step S-3.

ステップ6−8は表示講作のためのサブルーチンでその
フローチャートを第9区に示す。こ−の図をこおいて、
ステップD−1でタイマーフラッグTFに11111が
セットされているか否かか廃べられ°“0°゛の場合は
リターンする。つまり、タイマー7ラツグTFが111
”にセットされている場合のみ表示動作のサブルーチン
は用立てられる。タイマーフラッグTEはチェックされ
ると自動的に“0゛(こクリアされる。ステップD−2
では低コントラストフラッグLCFが調べられ、低輝度
でない場合はピント状態の表示 ルーチンであるステッ
プD−3に移る。ステップD−3では最新の合焦判定結
果がセットされている合焦フラッグINFnが調べられ
合焦の場合は発光ダイオードL1を点灯するステップD
−4に移る。非合焦の場合は、ステップD 5でピント
の外れた方向を示すサインフラッグ5FYnが調べられ
、′前ピン、後ピンをこ応して発光ダイオードL2ある
いはL3が点灯される。
Step 6-8 is a subroutine for displaying lectures, the flowchart of which is shown in section 9. With this diagram in mind,
In step D-1, it is determined whether or not 11111 is set in the timer flag TF.If it is 0°, the process returns.In other words, the timer flag TF is set to 11111.
”, the display operation subroutine is used. When the timer flag TE is checked, it is automatically cleared to “0” (step D-2).
Then, the low contrast flag LCF is checked, and if the brightness is not low, the process moves to step D-3, which is a focus state display routine. In step D-3, the focus flag INFn in which the latest focus determination result is set is checked, and if the focus is in focus, the light emitting diode L1 is turned on in step D.
-Move to 4. If the image is out of focus, the sign flag 5FYn indicating the direction out of focus is checked in step D5, and the light emitting diode L2 or L3 is lit in response to the front focus and rear focus.

低コントラストの)−4台、フローは警告表示のルーチ
ンであるステップ1)−8へ移り、点滅フラッグB F
がチェックされる。この7ラツグが”111のα合、ス
テップD−13でカウンタBCTRからまたけ絃じられ
、次いでステップD−14てカウンタB CT Rか0
になったか否かがチェックされる。カウンタB C′F
Rはイニシャライズのスラ′ノブS−2′で定数N o
 nがセットされているから、低コン]・ラスト状態が
続くかぎり、フローは連続してNon回たけステップD
−13を通過する。
)-4 machines with low contrast, the flow moves to step 1)-8, which is a warning display routine, and the flashing flag B F
is checked. If this 7 lag is α of 111, it is applied across the counter BCTR in step D-13, and then in step D-14, the counter BCTR is set to 0.
It is checked whether the Counter B C'F
R is the constant No at the initialization knob S-2.
Since n is set, the flow continues as many times as Step D as long as the last state continues.
Pass through -13.

この1.dステップDi−5で発光ダイオードL2とL
;3が同時に点灯される。ステップD−13でカウンタ
BCTRが0になったことが検知されると、70−はス
テップD−16,D−17へと進み、7ラングBFをク
リアし、カウンタBCTRに定数Noffをセントする
。ここで定数Noffは発光ダイオードL2.L3を消
してお(期間を規疋するもので、例えば定数Nonの3
(gの値に定められる。つまり、発光ダイオードL2と
L3は脅告時に点灯と消灯の期1mの比が1:3とされ
る。
This 1. At step Di-5, light emitting diodes L2 and L
;3 are lit at the same time. When it is detected in step D-13 that the counter BCTR has become 0, 70- proceeds to steps D-16 and D-17, clears the 7 rung BF, and sets the constant Noff in the counter BCTR. Here, the constant Noff is the light emitting diode L2. Delete L3 (which regulates the period, for example, 3 of the constant Non)
(This is determined by the value of g. In other words, the ratio of the light-emitting diodes L2 and L3 during the period of 1 m between turning on and turning off at the time of threat is 1:3.

たたし、この比(こ限る必要はない。さて、フラッグB
’Fがクリアされて++ OI+の状態では、フローは
ステップD−9の万(こ導かれることになる。低コント
ラスト状態が続くかぎり70−はステップ −D−9を
定数Noff回だけ連続して通過する。
However, this ratio (there is no need to limit it. Now, flag B
'F is cleared and ++OI+ state, the flow is guided to step D-9 10,000 times. As long as the low contrast state continues, 70- continues step -D-9 a constant Noff times. pass.

この間、発光ダイオードL2.L3は消灯状態となる。During this time, the light emitting diode L2. L3 is turned off.

ステップD−10でカウンタBCTRが0【こなったこ
とが検知されるとステップD−11で点滅7ラングBF
が“1lIlこセントされ、D−12でカウンタBC’
TRに定数Nonがセントされる。したがって、次回の
ステップD−8ではフローはステップD−13の方に導
かれる。このようにして警告表示として発光ダイオード
L2とL3の点滅点灯制御がなされる。尚、点滅フラッ
グBFは、イニシャライズS−2のステップでセントす
るようにしてもよいが、当初セット状態あるいはグじア
状態のいずれであっても支障はない。
In step D-10, the counter BCTR is set to 0 [If it is detected that this has occurred, in step D-11 it flashes 7 rungs BF
is sent, and the counter BC' is sent to D-12.
A constant Non is sent to TR. Therefore, in the next step D-8, the flow is directed to step D-13. In this way, the light emitting diodes L2 and L3 are controlled to blink as a warning display. Incidentally, the blinking flag BF may be set at the initialization step S-2, but there is no problem whether it is initially set or set.

以上の室示用のサブルーチンの説明と第5回の全体のフ
ローチャートから表示用サブルーチンの動作を説明する
と、ステップS−3においてタイマカウンタT CT 
Rは停止状態にまたタイマフラッグ1’ Fが” o 
” iこ初期化されており表示用LE′L〕もOFFさ
れているため、第1回目の検出サイクル番こおいては表
示用サブルーチン番こ70−がジャンプしても錫9図の
ステップD−1においてTF−“′0゛であるから、必
ず即刻リターンすることにより表示−= 、i′−は行
われず発光ダイオードはオフのままであ、乙。第1回目
の検出サイクルがa了した時点で脆5図のステップ5−
22においてタイマカウンタT CT ■<へのクロッ
ク入力が許可されるから、夕42回目以伎の検出サイク
ルにおいては所定の時間毎にタイマカウンタTCTRは
オーバー70−パルスを発生し、タイマフラグTFが1
111+にセットされるから、表示用ザブルーチンヘジ
ャンプした時点でTF−“l ++となっている場合に
前述のような焦点調節犬態の表示あるいはq告表示を行
ってリターンする。尚 T F −、+1111で表示
間作を行ったときはタイマ7ラグTFは0 ++にクリ
アされるので、次のオーバー70−パルスの発生により
“1”にセントされる子で、フローが表示すブルーチン
番こジャンプしても表示ND作は行われない。
The operation of the display subroutine will be explained based on the above explanation of the room display subroutine and the fifth overall flowchart. In step S-3, the timer counter T CT
R is stopped and timer flag 1'F is "o"
” Since this has been initialized and the display LE'L is also turned off, in the first detection cycle, even if the display subroutine 70- jumps, step D in Figure 9 is not executed. Since TF-"'0" is at -1, by returning immediately, display -=, i'- is not performed and the light emitting diode remains off. At the end of the first detection cycle, step 5-
Since the clock input to the timer counter TCT ■< is permitted at 22, the timer counter TCTR generates over 70 pulses at predetermined intervals in the 42nd and subsequent detection cycles in the evening, and the timer flag TF becomes 1.
Since it is set to 111+, if it is TF-"l ++ at the time of jumping to the display subroutine, the above-mentioned focus adjustment dog state display or q notice display is performed and the return is made. Note that TF -, +1111 when display intercropping is performed, timer 7 lag TF is cleared to 0++, so the blue routine number displayed by the flow is a child that is sent to "1" by the occurrence of the next over 70- pulse. Even if you jump, the display ND operation will not be performed.

第10図は、第5図における加重平均計算のステップ5
−11の内容を示す70−チャートである。Hto図の
ステップF−0において、ステン7’F−1以降の処理
に堀えてその時点でメモリYnが作詩している値を前回
の平均値としてメモリYn−1へ移す。ステップF−1
で7ラグFPFが調べられ第1回の検出サイクルを示す
11111がセントされている場合、フローはステップ
F−2へ移り、フラッグIFFnが調べられる。この時
点では70グIFFnはまだ前回の合焦判定結果を保持
している。前回の判定結果が非合焦の場合フローはステ
ップF−15へ飛び、合焦の場合はステップF−3へ移
る。このステップF−3では前回の合焦判定に供された
デフォーカス量yn−1の符号、つまり前ピン側のもの
であるが後ピン側のものであるかがフラグSFYにおい
て調べられる。この時点においてフラグSFYの内容も
また7ラクI i’ F nと同様(こ、まだniJ回
の判定結果が作詩されている。尚、テフォーカス信号は
合焦ソーンに入っていても前ピンあるいは後ピンを示す
極性を句っていることに変りはない。ステップF−:3
でS F N′= ” 1 ”即ち前ピン能の場合、7
0−はステップF−4へ移り、今回の検出サイクルによ
るテフォーカス信号xnの符号かフラグSFX+こよっ
てN1JべらnSS F/’X = ”ビ即ちi−ビン
のし1合、フロー(オステップF−5へ移り、5FX−
“O11即ち後ピンの場合はステップF−8へ移る。ま
た−万、ステップF−31こおいて5FY−“0゛′即
ち後ピン伝の場合にはフローはステップF−7へより、
ステップF−4の場合と同様に今回の検出サイクル(こ
よるデフォーカス量xnの符号がフラグSFXによって
調べられ、5FX=i+ 111即ち前ピンのね合、フ
ローはステップF−8へ移りS F X = ” O”
即ち後ピンの晶合は、ステップF  5へ移る。−っま
りF−3,F−4,F−7の各ステップでの処理は前回
のデフォーカス方1tE2 S F ’Yと今回のデフ
ォーカス方向SFXを膠原して、デフォーカス方向が変
化したが否かをチェックしており、デフォーカス方向が
変化しなかった場合、ステップF−5へ移り、変化した
場合はステップF−8へ移るのである。デフォーカス方
向が変化しなかった場合、ステップF−5(こおいて前
回までの平均値y n −1と今回の値xnの絶対値Y
n−1とXnのみに注目して足し合わされ、その合計値
がステップF−6iこおいて2で割られ新しい平均値Y
 、nが求められる。この場合デフォーカス方向の変化
は無いがらフラグSFYの8き換えは不要である。:T
ij回と今回のデフォーカス方向が異なる烏合、ステッ
プF−8以降ステップF−6に亘って符号を考慮した平
均処理が行われる。まずステップF−8においてx’ 
nが0に等しいか否かが調べられ、等しい場合9こはス
テップF−13へイ多り、前回の平均1直Y n −1
を前回と今回の合計値Ynとし、続いてステップF−1
4でキャリ7ラグCyを++ 011にクリヤし、次い
でステップF−6iこおいて2で割られ今回の平均値−
’!’ nを求められる。この場合も、前回と今回の平
力値y n −1とynのデフォーカス方向の平化(」
無いから7ラグSFYの書き換えは不要である。
Figure 10 shows step 5 of the weighted average calculation in Figure 5.
It is a 70- chart showing the contents of -11. At step F-0 in the Hto diagram, the process from Sten 7'F-1 onwards is carried out, and the value being composed in the memory Yn at that point is transferred to the memory Yn-1 as the previous average value. Step F-1
If the 7-lag FPF is checked and 11111 indicating the first detection cycle is detected, the flow moves to step F-2 and the flag IFFn is checked. At this point, the 70g IFFn still holds the previous focus determination result. If the previous determination result is out of focus, the flow jumps to step F-15, and if in focus, the flow moves to step F-3. In this step F-3, the sign of the defocus amount yn-1 used in the previous focus determination, that is, whether it is on the front focus side or on the rear focus side is checked using the flag SFY. At this point, the contents of the flag SFY are also the same as 7 Raku I i' F n (the niJ judgment results are still being written. Note that even if the tefocus signal is in the in-focus zone, the front focus or There is no difference in saying the polarity indicating the rear pin.Step F-:3
If S F N' = "1", that is, the front pin function, then 7
0-, the process moves to step F-4, and the sign of the focus signal xn from the current detection cycle is determined by the flag SFX+. Move to -5, 5FX-
In the case of "O11", that is, the back pin transmission, the flow moves to step F-8.In addition, in the case of "0゛'", that is, the rear pin transmission in step F-31, the flow goes to step F-7.
As in the case of step F-4, the sign of the defocus amount xn in this detection cycle is checked using the flag SFX, and 5FX=i+111, that is, the front focus is aligned, and the flow moves to step F-8. X = “O”
That is, the crystallization of the rear pin moves to step F5. -The processing in each step of F-3, F-4, and F-7 is performed by combining the previous defocus direction 1tE2 S F'Y and the current defocus direction SFX, and the defocus direction changes. If the defocus direction has not changed, the process moves to step F-5, and if it has changed, the process moves to step F-8. If the defocus direction has not changed, step F-5 (here, the absolute value Y of the average value y n −1 up to the previous time and the current value x n
Only n-1 and Xn are added together, and the sum is divided by 2 in step F-6i to obtain a new average value Y
, n are found. In this case, although there is no change in the defocus direction, it is not necessary to change the flag SFY. :T
In cases where the defocus direction is different from the current defocus direction for the ij time, an averaging process is performed in consideration of the sign from step F-8 to step F-6. First, in step F-8, x'
It is checked whether n is equal to 0 or not, and if it is equal to 9, the process goes to step F-13, and the previous average 1 straight Y n -1
is the total value Yn of the previous and current time, and then step F-1
4 clears the carry 7 lag Cy to ++ 011, and then divides by 2 in step F-6i to get the current average value -
'! ' n can be found. In this case as well, the previous and current normal force values y n -1 and the smoothing of yn in the defocus direction (
There is no need to rewrite 7-lag SFY.

ステップF’ −81こおいてxnXOja合、ステッ
プF−9で前回のデフォーカスの平均値の絶対値Yrr
−1(= 1. y n−11)から今回のデフォーカ
ス那の、絶対値Xn(−1xnl)たけ減じ、その結果
をYnとして次のステップF−10においてキャリ7ラ
グCyの如何によってY n −1とXnの大小15−
係を判別している。これは、前回と今回とてピント方向
が変わったので、前回と今回とのデフォーカスの太きの
みを足し合わせたのでは平均値を求めることはできない
ためである。
At step F'-81, if xn
-1 (= 1. y n-11) by the absolute value Xn (-1xnl) of the current defocus value, and the result is set as Yn, and in the next step F-10, Y n is determined depending on the carry 7 lag Cy. -1 and the size of Xn 15-
The person in charge is being determined. This is because the focus direction has changed between the previous time and this time, so it is not possible to obtain an average value by adding only the thickness of the defocus between the previous time and this time.

尚、減算は実除には引く数の補数をとって加算演算によ
り行われる。加算の結果、桁上けによりキ丁り一7ラン
グCyがセットされた場合は加算の結果はそのまま減算
結果として用いられる。この場合、フローはステップF
−14を介してステップF  6に移る。キャリーフラ
ッグCyがクリアされたI;2.八(寸、力[」弾〇結
朶の補数が、識算結果番こ]:1当す°る。ただし、こ
のときのみ符号が反転するので、ステップF−12iこ
おいて符号フラッグSFYの前回の内容が反転される。
Note that subtraction is performed by adding the complement of the number to be subtracted for real division. As a result of the addition, if 17th rung Cy is set due to carry, the result of the addition is used as is as the result of subtraction. In this case the flow is step F
-14 to step F6. Carry flag Cy cleared I;2. 8 (the complement of the bullet ○result number is 1): 1. However, only in this case, the sign is inverted, so in step F-12i, the sign flag SFY is The previous content is reversed.

次いでステップF−6に移り平均値が求められる。以上
のようにして前回の判定結果が合焦である場合、今回の
検出サイクルによるデフォーカス量xnは1/2の重み
が与えられ過去のデフォーカス量との平均値が求められ
る。この結果(24式で示した加重平均Yn即ちY n
とSFYが得られ、ステップ5−12の合焦判定1こ供
ぜられる。また−万、第1回目の検出サイクルあるいは
前回の判定結果が非合焦であった場合、ステップF−1
5,F−16において今回の測定値Xn即ち絶対値Xn
及びデフォーカス方向SFXがそれぞれ今回の処理Yn
としてメモJYn及び7ラグSFXへ移しかえられ、ス
テップ5−12の合焦判で1こ供せられる。
Next, the process moves to step F-6 and an average value is determined. As described above, when the previous determination result is in focus, the defocus amount xn from the current detection cycle is given a weight of 1/2, and the average value with the past defocus amount is calculated. This result (weighted average Yn shown in equation 24, that is, Y n
and SFY are obtained, and the focus judgment in step 5-12 is performed. In addition, if the first detection cycle or the previous judgment result is out of focus, step F-1
5. At F-16, the current measured value Xn, that is, the absolute value Xn
and defocus direction SFX are respectively the current processing Yn
The image is transferred to the memo JYn and the 7-lag SFX, and one image is provided in the focusing format in step 5-12.

以上の説明を要約すると、菟1回目の検出サイクルある
いは前回の判定結果が非合焦であった場名、加重平均を
行わす今回の測定値をそのまま採用して合焦半り定に共
し、前回の判定結果が合焦であった場合には前回の平均
処理値Y n −1と今回の測定値X nとの間で符号
を考慮した平均処理を行うのである。このような・シル
理により非合焦状態においては平均処理は行われないの
で、過去の測定11aに引きずられることなく時々刻々
の最新測定テークを表示にかけることができるので、非
合焦から合焦への表示の移行の時間遅れを最小にするこ
とができ、Σ3・つ合焦状態1こおいては、毎回の測定
値のパランキ(こよる表示の不安定性を改善することが
できる。また−二・つ平均処理を繰り返せは最新の平均
、、3:5 Y ;; iこ対する過去の測定値Yn−
i(1は整、、、)の止子は::に比例して減少し、い
わゆる力i屯平均処理が行われていることになる。尚、
この加重平均処理は、被写体か移動したり手ブレ等番こ
よりカメラと被写体との位置的条件が変動するような場
合(こ有効となる。
To summarize the above explanation, if the first detection cycle or the previous judgment result was out-of-focus, the current measurement value for which weighted averaging is performed is used as is, and the result is half-determined. If the previous determination result is in focus, averaging processing is performed taking into account the sign between the previous average processing value Y n -1 and the current measurement value X n. Due to this reason, averaging processing is not performed in the out-of-focus state, so it is possible to display the latest measurement take from time to time without being dragged down by past measurements 11a. It is possible to minimize the time delay in the transition of the display to the focus state, and in the Σ3-focus state 1, it is possible to improve the display instability caused by the paranki of the measured value each time. -Repeat the averaging process twice for the latest average, 3:5 Y ;;
The stop of i (1 is a good value, . . . ) decreases in proportion to ::, and so-called force i ton averaging processing is performed. still,
This weighted average processing becomes effective when the positional conditions between the camera and the subject change due to movement of the subject, camera shake, etc.

第11図は、第5図のステップS−171こよる高輝度
時における表示のチラッキを抑制するルーチン;、ニア
i″−すフローチャートである。
FIG. 11 is a flowchart of a routine for suppressing display flicker at high brightness caused by step S-171 in FIG. 5;

N’J述したようlこ被写体が高輝度の場合、CCDの
蹟分時曲は数+n]秒以下の短い時間となり、単位時間
当りの検出サイクルの回数は多くなる。したがって、単
位時間当りの表示動作回数も増加し、表示のチラン、キ
が目されりとなりやすくなる。そこで、CCDの積分時
間τ1〕が予め定めた時間τo(=50m秒)よりも短
くなる場合には°′待ち時間Δτ″をつくり、検出サイ
クルの時間を待ち時間分だけ延長することにより単位時
間当りの検出サイクル数か大きくなることに制限を加え
、表示のチラッキを抑制するのである。第11図におい
てステップH−1で低輝度フラグLLFかチェ゛ツクさ
れ、被写体が低輝度であってit II+がセットされ
ている場合、70−はステップ5−22ヘンヤンプする
。++ 0++にクリアされている場合はステップH−
2へ移り、チラッキ抑制の処理が進められる。尚、CC
Dの積分時間の情報は第8図の積分ルーチンで求められ
ている。
As mentioned above, when the subject is of high brightness, the time interval of the CCD is short, on the order of several+n] seconds or less, and the number of detection cycles per unit time becomes large. Therefore, the number of display operations per unit time also increases, and flickers and cracks in the display become easily noticeable. Therefore, if the CCD integration time τ1] becomes shorter than the predetermined time τo (=50 msec), a waiting time Δτ'' is created and the detection cycle time is extended by the waiting time, thereby increasing the unit time. This limits the increase in the number of detection cycles per hit and suppresses display flickering.In FIG. 11, the low brightness flag LLF is checked in step H-1, and it If II+ is set, 70- jumps step 5-22.++ If cleared to 0++, step H-
The process moves to 2, and flicker suppression processing is proceeded. In addition, C.C.
Information on the integration time of D is obtained by the integration routine shown in FIG.

第8図においてCCDの積分中、カウンタTn。In FIG. 8, during the integration of the CCD, the counter Tn.

は減算カウントされ、途中でCCDの積分が終了すると
、CCD f’i; 葺ブロック64からの割込み要求
信号に応答してフローは割込みルーチンヘンヤンプし、
カウンタTnの減算カウント動作は中止゛される。した
かって、カウンタTnには、初期値Tnmaxから積分
中の計数値たけ減じた値Tnが残さる。ここで、第12
図のグラフを参照して、待ち時間がちょうと0になる積
分時間τOを考え、この積分時間τ0に相当するカウン
タTnの残余をTOとする。
is subtracted and counted, and when the CCD integration ends midway, CCD f'i; In response to an interrupt request signal from the block 64, the flow jumps to an interrupt routine.
The subtraction counting operation of the counter Tn is stopped. Therefore, a value Tn obtained by subtracting the count value during integration from the initial value Tnmax remains in the counter Tn. Here, the 12th
Referring to the graph in the figure, consider an integral time τO at which the waiting time is exactly 0, and let TO be the remainder of the counter Tn corresponding to this integral time τ0.

τ0の1直についてはカメラの操作性を考慮して表示の
チラッキが抑制度合いと表示応答性との両者を勘案して
検出サイクルの最短値を決め、その値から演算時間を差
し引いた値として求められる。
For the first shift of τ0, the shortest detection cycle is determined by considering both the degree of display flickering suppression and display responsiveness, taking into account the operability of the camera, and the value obtained by subtracting the calculation time from that value. It will be done.

ステップH−2においてはカウンタTnに記憶されてい
る計数値残余Tnより上記τOに相当する値Toを差し
引き、その結果ΔTを改めてカウンタTnに格納する。
In step H-2, the value To corresponding to the above τO is subtracted from the count value remainder Tn stored in the counter Tn, and the result ΔT is stored anew in the counter Tn.

ステップH−3で引算結果がOか否かをチェックし、0
の場合はステップ5−22へ、0でない場合は次のステ
ップH−4において、ステップH−2での引算(補数の
加算)の結果発生したキャリ7ラグCyがチェックされ
る。
In step H-3, check whether the subtraction result is O or not, and
If so, the process goes to step 5-22, and if it is not 0, then in the next step H-4, the carry-7 lag Cy generated as a result of the subtraction (complement addition) in step H-2 is checked.

ステップi−1−2での演算結果が負、ΔTく0つまり
cy=oの場合これは待ち時間を要しないことを意ツし
フローはステップ5−22ヘジヤンプする。cy=tの
場合、即ちステップH−2での引算結果が正ΔToの場
合は検出時間サイクルが短かすぎるこすになり、ステッ
プH’−5からH−10を経てH−5に戻るループを一
周期としてステップH−2で新しくカウンタTnに格納
された計数値ΔT相当時間、つまりΔT同周期けAFス
イッチ60の状態をチェックしながら、かつ表示制御を
行いながら時間経過待ちをする。
If the calculation result in step i-1-2 is negative, ΔT is 0, that is, cy=o, this means that no waiting time is required, and the flow jumps to step 5-22. If cy=t, that is, if the subtraction result in step H-2 is positive ΔTo, the detection time cycle is too short, and the loop returns from step H'-5 to H-10 to H-5. In step H-2, the state of the AF switch 60 is checked for a period corresponding to the count value ΔT newly stored in the counter Tn, that is, the period is the same as ΔT, and the display is controlled while waiting for the elapse of time.

ステップH−5において、AFスイッチ60の状態をチ
ェックし、オフとなっている場合はステップS−3へ移
る。オンの場合はステップ)(−6へ移りカウンタTe
から1だけ減する。次いでステップH−7へ移りカウン
タTeの内容が0になったか否かを調べる。0になって
いない場合、ステップH−5に戻り、Te=0になるま
で70−はステップH−5とH’−7の間を巡廻する。
In step H-5, the state of the AF switch 60 is checked, and if it is off, the process moves to step S-3. If it is on, step) (Go to -6 and counter Te
Subtract 1 from . Next, the process moves to step H-7, and it is checked whether the contents of the counter Te have become 0 or not. If it is not 0, the process returns to step H-5, and 70- cycles between steps H-5 and H'-7 until Te=0.

Te−〇になるとステップH−8へ移る。ステップH−
8は第9図に示した表示用のサブルーチンである。ステ
ップH−8に次いてステップH−9に移るとカウンタT
 nの内容Tnからまたけ減じられ、ステップH−10
でT n = 0か否かが調べられる。
When Te-〇 is reached, the process moves to step H-8. Step H-
8 is a display subroutine shown in FIG. When proceeding to step H-9 following step H-8, the counter T
The content of n is subtracted from Tn, and step H-10
It is checked whether T n = 0 or not.

T n\Oでない場合、フローはステップH−5に戻る
。こうしてT +1 = 0となるまでフローはステッ
プ■]−5とI−I’−10の間を、上述のステップH
−5とI−I −10との間の巡廻を含めて巡廻する。
If not, the flow returns to step H-5. In this way, the flow continues between step ■]-5 and I-I'-10 until T +1 = 0, by repeating the above-mentioned step H.
-5 and I-I-10.

ステップH−10においてTn=Uとなると70−はス
テップ5−22へ移る。以上のようVこして第11図の
ルーチンでは待ち時間に対応する計数値ΔTが求められ
この計数値が0になるまで減算するに要する時間が待ち
時間に当てられる。
When Tn=U in step H-10, 70- moves to step 5-22. As described above, in the routine of FIG. 11, the count value ΔT corresponding to the waiting time is obtained, and the time required to subtract this count value until it becomes 0 is applied to the waiting time.

(以下次頁) 効果 本発明によれは検出された被写体コントラストがピント
検出可能の下限付近にあって、色々な誤差要因によって
上下にふらついていても、警告を行うか否かの判定基準
に幅を与え、その幅内の変動番こは応答しないようにし
たから、一つの被写体をねらっている間において、ピン
ト検出が可能と思っているとピント検出不能となり、そ
こで目視でピント合せしようかと思うと又ピント検出可
能となると云った状況か解消され、カメラの使用者がカ
メラの表示に振り回され、操作が却ってわづられしくな
ると云った問題なしに、自動ピント検出の効用を享ける
ことができる。
(Next page below) Effects According to the present invention, even if the detected object contrast is near the lower limit of focus detection and is fluctuating up and down due to various error factors, there is a wide range of criteria for determining whether or not to issue a warning. Since I gave a range of 1 and made it so that the variable number within that range does not respond, if you think it is possible to detect focus while aiming at a single subject, it becomes impossible to detect focus, and you will think to focus manually. Once again, the situation of being able to detect focus is resolved, and the camera user can enjoy the benefits of automatic focus detection without the problem of being distracted by the camera's display and making operations more confusing. can.

【図面の簡単な説明】 第1図は本発明の一実施例のブロック図、第2図はコン
トラスト判定におけるヒステリシス動作を示すグラフ、
第3図は同動作の効果を示すグラフで、第4図は本発明
の他の実施例のブロック図、第5乃至第11図は上記実
施例の動作を示すフローチャート、第12図はCCDの
積分時間の最短を制限する動作を説明するためのグラフ
であり、第13図以下は公知例を示すもので第1;3図
A及or Bは夫々公知のピント検出手段の光学的部分
を示す側面図、第14図はCCDの受光部の構成を示す
平面図、第15図はCCDの積分時間モニタ回路の回路
図第161図は上記回路動作の一部の70−チャート、
第17図は同動作に関係したRAAr1エリヤのメモリ
マツプである。 第す図 第7図 第11図 第1Z図 (4n、梼 第 D1八 第13図9 第14図 ゲD 62
[Brief Description of the Drawings] Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is a graph showing hysteresis operation in contrast determination,
FIG. 3 is a graph showing the effect of the same operation, FIG. 4 is a block diagram of another embodiment of the present invention, FIGS. 5 to 11 are flowcharts showing the operation of the above embodiment, and FIG. 12 is a CCD This is a graph for explaining the operation of limiting the shortest integration time, and Figures 13 and below show known examples, and Figures 1 and 3A and 3B show optical parts of known focus detection means, respectively. A side view, FIG. 14 is a plan view showing the configuration of the light receiving section of the CCD, FIG. 15 is a circuit diagram of the CCD integration time monitor circuit, and FIG. 161 is a 70-chart showing part of the above circuit operation.
FIG. 17 is a memory map of the RAAr1 area related to the same operation. Fig. 7 Fig. 11 Fig. 1Z Fig. 4n, D18 Fig. 13 Fig. 9 Fig. 14 Ge D 62

Claims (1)

【特許請求の範囲】[Claims] (1)撮影レンスを透過した肢写体光を受けて周期的に
、撮影レンズのピント状態を検出すると共に岐写体のコ
ントラスト状態を示す信号を出力するピント検出手段と
、上記コントラスト信号を予め定めた基準レベルと比較
して被写体のコントラストか所定レベル以上であるか否
かを判定する比較回路さ、上記コントラストが所定レベ
ル以下と判定ぎ托た場合、警・占信弓を発生する信弓発
生回妬を伽え、上記比較回路シこ与える基糸レベルとし
てレベルの異る第1と第2の基準レベルを有L1周期的
なピント検出及びコントラスト検出動作において曲回の
動作サイクルにおけるコントラスト判定結果番こ基いて
選択的【こ、前記二つの基準レベルの何れかを今回の動
作サイクルにおける基準レベルとして上記比較回路に印
加する基準レベル設定を与えたことを特徴とするカメラ
のピン+[出装置。 (2+  第2@基準レベルは第1の基準レベルより高
いコントラスト状態に相当するレベルであり、比較回路
【こは通常第1の基準レベルが印加され、前回の動作サ
イクルにおいて、コントラストが所定レベル以下と判定
された場合に今回動作サイクルで比較回路に第2の基準
レベルが印加されるよう番こなっている特許請求の範囲
第1項記載のカメラのピント検出装置。
(1) A focus detection means that periodically detects the focus state of the photographic lens and outputs a signal indicating the contrast state of the photographic subject upon receiving the limb photographing light transmitted through the photographic lens; A comparison circuit that determines whether the contrast of the subject is above a predetermined level by comparing it with a predetermined reference level.If the contrast is determined to be below a predetermined level, a signal is generated that generates a warning signal. The comparison circuit uses first and second reference levels of different levels as basic levels to eliminate the generation cycle. The pin + [output of the camera is characterized in that a reference level setting is applied to the comparator circuit so that one of the two reference levels is selected as the reference level in the current operation cycle based on the result number. Device. (2+ The second @ reference level is a level corresponding to a higher contrast state than the first reference level, and the comparison circuit 2. The camera focus detection device according to claim 1, wherein the second reference level is applied to the comparison circuit in the current operation cycle when it is determined that the second reference level is applied to the comparison circuit in the current operation cycle.
JP2658783A 1982-12-28 1983-02-18 Focus detecting device of camera Pending JPS59152408A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2658783A JPS59152408A (en) 1983-02-18 1983-02-18 Focus detecting device of camera
US06/565,353 US4575212A (en) 1982-12-28 1983-12-27 Camera with an improved focus detecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2658783A JPS59152408A (en) 1983-02-18 1983-02-18 Focus detecting device of camera

Publications (1)

Publication Number Publication Date
JPS59152408A true JPS59152408A (en) 1984-08-31

Family

ID=12197673

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2658783A Pending JPS59152408A (en) 1982-12-28 1983-02-18 Focus detecting device of camera

Country Status (1)

Country Link
JP (1) JPS59152408A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61166509A (en) * 1985-01-19 1986-07-28 Minolta Camera Co Ltd Focus detector

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61166509A (en) * 1985-01-19 1986-07-28 Minolta Camera Co Ltd Focus detector

Similar Documents

Publication Publication Date Title
US5714988A (en) Camera capable of detecting eye-gaze
JPH04257830A (en) Flash light dimming controller for camera
US5926655A (en) Line of sight detection device and an apparatus having a line of sight detection device
JPH03230130A (en) Camera provided with blurring detection device
JPS59152408A (en) Focus detecting device of camera
JP3297481B2 (en) Eye gaze detection device
US20140009666A1 (en) Image capturing apparatus
JPS59152409A (en) Focus state display device of camera
JPS59152410A (en) Focus state display device of camera
JPS59121322A (en) Focus detector of camera
JP3133043B2 (en) Optical equipment
JPS6258229A (en) Separate photometry type camera
JP2924792B2 (en) camera
JP3171230B2 (en) camera
JPH06138378A (en) Camera provided with focus detecting means and line-of-sight detecting means
JPH0943670A (en) Camera system
JP6786643B2 (en) Exposure control device, exposure control method, and program
US5497210A (en) Apparatus with focus detection means and sight axis detection means
JPS62164029A (en) Automatic focus adjusting device
JP3164286B2 (en) camera
JP2874651B2 (en) camera
JPH04328706A (en) Decision device for extent of background drawing of camera
JP3144469B2 (en) camera
JP3530648B2 (en) Eye gaze detecting device and optical device
JPH06138364A (en) Camera provided with device for detecting line of sight