JPS59152410A - Focus state display device of camera - Google Patents

Focus state display device of camera

Info

Publication number
JPS59152410A
JPS59152410A JP2658983A JP2658983A JPS59152410A JP S59152410 A JPS59152410 A JP S59152410A JP 2658983 A JP2658983 A JP 2658983A JP 2658983 A JP2658983 A JP 2658983A JP S59152410 A JPS59152410 A JP S59152410A
Authority
JP
Japan
Prior art keywords
focus
circuit
defocus
display
time
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
JP2658983A
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 JP2658983A priority Critical patent/JPS59152410A/en
Priority to US06/565,353 priority patent/US4575212A/en
Publication of JPS59152410A publication Critical patent/JPS59152410A/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

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

PURPOSE:To execute a display conforming to a present state of a focus state by performing a load averaging processing to a detecting data of a focus state by using a load which becomes the maximum at the present time point and decreases gradually to the past. CONSTITUTION:A defocus signal xn from a defocus quantity operating circuit 14 of a focus detecting circuit 2 is subjected to an averaging processing by an operating circuit 26, sent to a deciding circuit 28, and compared with reference levels Z1, Z2 stored in a storing circuit 42. When the defocus quantity is above the reference level, it is decided to be non-focusing, an L2 or L3 lamp of a display device 34 is flickered through a displaying circuit 32, and when the defocus quantity is below the reference level, it is decided to be a focused state, and a lamp L1 is turned on. At the time of averaging by the operating circuit 26, a load (1-alpha) is given to an average data yn-1 of the previous focus cycle time, a load alpha is given to the present data xn, and the average is taken. alpha is a larger value than (1-alpha). In this way, a display conforming to a present state of a focus state is executed.

Description

【発明の詳細な説明】 発明の分野 本発明は周期的に撮影レンズのピント状態を検出して、
これを視覚的に表示するカメラのピント状態表示装置:
lこ関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention periodically detects the focus state of a photographic lens.
Camera focus status display device that visually displays this:
This is related.

従来技術 後述スるようK CCDラインセンサのような素子上)
で被写体像を形成して被写体像を走査し周期的に撮影レ
ンズのピント状態を検出して表示するよってしたカメラ
が既(で提案されている。
Conventional technology (as described below)
A camera has already been proposed in which a subject image is formed, the subject image is scanned, and the focus state of the photographic lens is periodically detected and displayed.

所で’JfA Meレンズのピント状態をピント検出装
置で検出する場合には、種々な誤差要因によって検出さ
れたピント状態のデータ(デフォーカス量等)は誤差を
含んでおり、撮影レンズを動かさない場合でもピント検
出動作毎にばらついている。このようなピント状態検出
結果をそのま\表示していると、撮影者が撮影レンズを
非合焦状態から合焦位置に向けて移動させている過程に
おいてデフオ−カス量の実際の変化量の方がピント検出
装置により検出されたデフォーカス量のばらつきの幅よ
りも大きい間は格別問題ばないが、合焦領域と非合焦領
域の境界付近になって撮影レンズの移動量か少くなり或
は停止した場合には、ピント状態の表示がピント検出動
作の一サイクル毎に合焦と非合焦との間を変転するよう
になって表示が見苦しくなり、づ系影者を迷わぜるよう
な状況を呈することになる。
By the way, when detecting the focus state of the 'JfA Me lens using a focus detection device, the data on the detected focus state (defocus amount, etc.) contains errors due to various error factors, so it is necessary not to move the photographing lens. Even in this case, it varies depending on the focus detection operation. If such a focus state detection result is displayed as it is, the amount of actual change in the amount of defocus may be distorted while the photographer is moving the photographic lens from an out-of-focus state to an in-focus position. There is no particular problem as long as the amount of defocus is larger than the variation in the amount of defocus detected by the focus detection device. If the camera stops, the focus status display will change between in-focus and out-of-focus every cycle of the focus detection operation, making the display unsightly and confusing the photographer. This will present a situation.

ピント検出装置で合焦位置を検出し撮影レンズを検出さ
れた合焦位置に自動的に移動させるカメラか特開昭56
−”8811号において提案されている。この場合には
撮影レンズを停止させた状態で複数回ピント検出を行い
、その結果を平均してピント位置を決定することによっ
てピント検出の誤差を処理しピント検出の精度を高めて
いる。
A camera that detects the focus position using a focus detection device and automatically moves the photographing lens to the detected focus position.
In this case, focus detection is performed multiple times with the photographic lens stopped, and the results are averaged to determine the focus position, thereby processing errors in focus detection and focusing. Detection accuracy is improved.

しかし検出されたピント状態を表示し、との表示を見な
がら手動的に撮影レンズを動がしてピント合ぜをするフ
ォーカスエイド方式のカメラでは実際上撮影レンズを止
め複数回のピント検出結果を平均してピント状態を表示
し、その表示に従って撮影レンズを少し動かし、又停止
させて複数回のピント検出結果の平均を行い表示すると
云った操作をカメラ使用者に求めるような方式のカメラ
は実際上商品として成立し得ない。
However, with focus aid cameras that display the detected focus status and manually move the photographic lens to focus while looking at the display, it is actually necessary to stop the photographic lens and check the focus detection results multiple times. Cameras that require the user to perform operations such as displaying the average focus status, moving the photographing lens slightly according to the display, and then stopping the camera to average and display the focus detection results from multiple times are actually It cannot be established as a superior product.

なお本発明の特徴を明かにするだめ第13図以下に示す
従来公知例について具体的に説明する。
In order to clarify the features of the present invention, a conventionally known example shown in FIG. 13 and subsequent figures will be specifically explained.

第13図Aおよび第13図Bは公知のピント検出装置の
受光部の光学的な構成を示す。第13図Aにおいて撮影
レンズL1に対するフィルム面と等価な位置に多数の小
さなレンズ11〜7nが配され、これら各レンズの後面
にはCCD素子a1、biが配されている。ただし1=
1. 2.・・・nである。素子群al、a2・・・a
nにはレンズL1の図面における下側部分を通過した光
線(81で代表)が入射し、素子群bl、  b2.・
・・bnにはレンズL1の上側部分を通過した光線(S
 2で代表)が入但する。合焦時には素子a1とblは
被写体の同一点からの光を受け、非合焦時には被写体の
同一点からの光は対をなす素子a1とblには入射せず
非合焦の方向、変合いに応じてずれる。このずれの方向
および大きさを検出することにより方向を含めたデフォ
ーカスポーを求めることができる。
FIGS. 13A and 13B show the optical configuration of a light receiving section of a known focus detection device. In FIG. 13A, a large number of small lenses 11 to 7n are arranged at positions equivalent to the film plane with respect to the photographic lens L1, and CCD elements a1 and bi are arranged on the rear surface of each of these lenses. However, 1=
1. 2. ...n. Element groups al, a2...a
A light beam (represented by 81) that has passed through the lower part of the lens L1 in the drawing is incident on the element groups bl, b2 .・
...bn is the ray (S) that passed through the upper part of the lens L1.
(represented by 2) will enter. When in focus, the elements a1 and bl receive light from the same point on the subject, and when out of focus, the light from the same point on the subject does not enter the pair of elements a1 and bl, but the direction of the out-of-focus, change It shifts depending on the By detecting the direction and magnitude of this shift, the defocus pose including the direction can be determined.

第13図以下J、第13図Aにおける素子群a、 1、
a2・・anとbl、b2・・bnとを別の形式に配列
した構成例を示す。レンズL2はフィルム等価あるいは
その近傍に配されるコンデン茗しンスである。このレン
ズL2の後面に結像レンズL3、L4が光軸Oを対称軸
にして配され、これら、レンズL3.L4の結像面に素
子群al、a2・・・an(!:bJ、、b2・・bn
がそれぞれ配置されている。
J in Fig. 13 and below, element group a in Fig. 13 A, 1,
An example of a configuration in which a2...an and bl, b2...bn are arranged in a different format is shown. The lens L2 is a condenser that is equivalent to or near a film. Imaging lenses L3 and L4 are arranged on the rear surface of this lens L2 with the optical axis O as the axis of symmetry, and these lenses L3. Element groups al, a2...an(!:bJ,, b2...bn
are placed respectively.

第14図は、第13図Bの装置におけるCODの受光部
の構成例を示す図で、素子群al、a2・・anとは別
にホトダイオードPDが素子群の近傍に配してあり、素
子群全体に入射する光の強度を反映すると見なしうる光
を受けるようにしである。このホトダイオードPDはC
CDの積分時間をモニタするため罠用いられる。第15
図は、ホトダイオードPDを用いたCODの積分時間モ
ニタ回路の一例を示す回路図である。CCDの積分に際
しては、はずホトダイオードPDの容量成分Cにアナロ
グスイッチSWを介して定電圧E1を充電しておき、C
CDの積分開始と同時にスイッチSWを不導通にする。
FIG. 14 is a diagram showing an example of the configuration of the light receiving section of the COD in the device shown in FIG. It is designed to receive light that can be considered to reflect the intensity of the light incident on the whole. This photodiode PD is C
A trap is used to monitor the CD integration time. 15th
The figure is a circuit diagram showing an example of a COD integration time monitor circuit using a photodiode PD. When integrating the CCD, the capacitance component C of the photodiode PD is charged with a constant voltage E1 via the analog switch SW, and the CCD
Switch SW is made non-conductive at the same time as CD integration starts.

この時点から容量成分Cの充電電荷は入射光強度に比例
するホトダイオードPDの光電流により放電され、ホト
ダイオードPDのカノードの電圧レベルは低下して行く
。この電圧レベルが所定電圧E2にまで下がるとコンパ
レータComの出力レベルが1低”から“高”に反転す
る。スイッチSWが遮断されてからコンパレータCom
の出力が6高”電圧レベルになるまでの時間がCCDの
積分時間として利用される。スイッチS Wを遮断状態
(てするタイミ′ングつまり積分開始のタイミングは、
マイクロコンピュータMCのプログラムで指定され、そ
の制御信号ばCCD制御ブロックCBを介して与えられ
る。マイクロコンピュータMCは、積分開始のタイミン
グを発すると内部のカウンタでソフトウェアによる計時
pつント動作を開始し、壕だ外部割込み禁止解除の状態
となる。コンパレータComか高”電圧信号を出力する
と、c c D fill側]ブロックCBは”高”電
圧信号に応答してマイクロコンピュータM Cに割込み
要求信号を出力する。これに応答してマイクロコンピュ
ータlvj Cのプロクラムは割込みルーチンヘジャン
プするとともに上記のカウンタの刷数動作を停止する。
From this point on, the charge in the capacitive component C is discharged by the photocurrent of the photodiode PD, which is proportional to the intensity of the incident light, and the voltage level at the cathode of the photodiode PD begins to decrease. When this voltage level drops to a predetermined voltage E2, the output level of the comparator Com is inverted from 1 low to 1 high.After the switch SW is cut off, the output level of the comparator Com is
The time it takes for the output of the switch to reach the 6" high voltage level is used as the integration time of the CCD. The timing of turning off the switch SW, that is, the timing of starting the integration, is
It is designated by the program of the microcomputer MC, and its control signal is given via the CCD control block CB. When the microcomputer MC issues the timing to start integration, it starts a software-based timekeeping operation using an internal counter, and enters a state in which external interrupts are disabled. When the comparator Com outputs a "high" voltage signal, the c c D fill side] block CB outputs an interrupt request signal to the microcomputer MC in response to the "high" voltage signal. In response, the microcomputer lvj C The program jumps to the interrupt routine and stops the print count operation of the counter mentioned above.

こうして、カウンタに!/′1ccDの積分時間の情¥
に力軸’+を惺される。CU)確保された積分時間をJ
fJい、これか予め定めだ低郡度レベルに対応するI活
量よりも長くなるような場合、被写体は低′181j度
であってピント供出は不能であると判定することができ
る。まノ乙1iif保された積分時間悄’ +l′j、
は予め定めた高輝度レベルに対応する[(ミ冒1−11
より1もlJ′ヮくなるような場合、後ユボするように
表〉j−のチジソキを抑制するだめの情報として用いら
れる。マイクロコンピュータM Cは割込みルーチンへ
移るとC、CDの積分データを予め定めたR−AM領領
域メモリする。CCDの積分データは、CCDがらの伝
送りロンジに同1v]シて順次に時系列的にアナログ電
圧でCCD制御ブロックCDに出力される。
Thus, on the counter! Information on the integration time of /'1ccD
The axis of force '+ is distorted. CU) ensured integration time J
If fJ is longer than the I activity corresponding to a predetermined low angle level, it can be determined that the subject is at a low angle of 181 degrees and cannot be brought into focus. Manotsu 1iif preserved integral time '+l'j,
corresponds to a predetermined high brightness level [(Mi 1-11
If the value becomes 1 or more than lJ'ヮ, this information is used to suppress the distortion in Table j-, so as to cause a subsequent distortion. When the microcomputer MC moves to the interrupt routine, it stores the integral data of C and CD in a predetermined R-AM area memory. The integrated data of the CCD is output to the CCD control block CD as an analog voltage in a time-series manner through a transmission line of 1 V from the CCD.

CCD制御ブロックCBではCCDからのアナログ電圧
信号は順次にデジタル値に変換される。変換されたテジ
タル呟か積分データとしてRA 1tlIの所定番地の
メモリに格納される。CCD制御ブロックCBは、割込
み要求パルスを出力した以後も引き続いて所要のCCD
の7漬分デークの数の・々ルスを一定周期で割込み端子
に向けて出力する。このパルスに同期してマイクロコン
ピュータIA Cは積分データをCCD制皆1フロック
CBからメモリに取込む。
In the CCD control block CB, analog voltage signals from the CCD are sequentially converted into digital values. It is stored in the memory at a predetermined location in the RA 1tlI as converted digital integral data. The CCD control block CB continues to control the required CCD even after outputting the interrupt request pulse.
The number of pulses corresponding to the number of 7 dikes is outputted to the interrupt terminal at regular intervals. In synchronization with this pulse, the microcomputer IAC takes in the integral data from the CCD control block CB into the memory.

第16図は第13図Aの装置の積分データの格納を行う
割込み処理を示すフローチーv−1−である。
FIG. 16 is a flowchart v-1- showing an interrupt process for storing integral data of the apparatus shown in FIG. 13A.

第12図のCCDからは例えは素子al、bl。From the CCD in FIG. 12, for example, elements al and bl.

a2.b2.・・・・・・an、bnという順番で積分
データか出力きれる。第16図においてステップニーl
てCCDの素子alの積分データを格納するメモリのア
ドレスNaかポインタP T R1,:七ノドきれ、C
CDの;(子blの積分データを格納するメモリのアド
レスN 1)かポインタ値暫定退避用のレジスタ5AV
Eにセットされ、さらにイ責データ数N (’= 2 
n)がカウンタD CN Tにセントされる。ステップ
ニー2では、割込み端子  へのパルスの到来が検出さ
れ、パルスの到来があるとステップニー3において入出
力ポートに与えられている。積分データをアキュムレー
タに送る。ステップニー4ではアキュムレータのデータ
がポインタPTRで示されるアドレスのメモリに格納さ
れる。ステップI−5では、次(で続くデータを格納ず
べきメモリのアドレスを指定する。この場合、ポインタ
PTRの内容に1が加えられ、その結果かポインタPT
Hに格納され、次いでポインタPT、RとレジスタS 
A V Eの内容か互いに入換えられる。ステップ■−
6でカウンタD C1寸Tからまたけ差し引かれ、その
結果か0になったか否かメステップニー7でチェックさ
れる。0てない場合はステップニー1に戻る。以上のよ
うにしてカウンタD C1,I Tの内容が○になるま
で、つまシ1り個の;I’を分データが所定のメモリに
格納されるまでステップニー]−と1−7の間をフロー
は進形する。
a2. b2. ...The integral data can be output in the order of an and bn. In Figure 16, step knee l
Address Na of the memory that stores the integral data of element al of the CCD or pointer P T R1,: Seven strokes, C
CD; (memory address N1 for storing child BL integral data) or register 5AV for temporary pointer value saving
E is set, and the number of blame data N ('= 2
n) is sent to the counter D CN T. The step knee 2 detects the arrival of a pulse to the interrupt terminal, and when the pulse arrives, the step knee 3 applies it to the input/output port. Send integral data to accumulator. At step knee 4, the data of the accumulator is stored in the memory at the address indicated by the pointer PTR. In step I-5, the address of the memory where the next data is to be stored is specified. In this case, 1 is added to the contents of pointer PTR, and the result is
H, then pointers PT, R and register S
The contents of AVE can be exchanged with each other. Step ■−
At step 6, the counter D C1 dimension T is subtracted, and whether or not the result becomes 0 is checked at step knee 7. If it is not 0, return to step knee 1. In the above manner, until the contents of the counter D C1,I T become ○, the step number I' is repeated until the data is stored in the predetermined memory. The flow progresses.

その結果、第17図に示すようにRAMのアト゛レスN
a、 Na+1.Na+2.−・−・Na+n−1には
素子a 1.、 a 2. 、a 3.・・・・・an
の積分データかそれぞれ格納され、聾だR’Alviの
ア(、レスNb、  NT:+4−1.  N b4−
2.−・・・N b+n−1には素子bl、  b2.
−o3.  ・・bnの積分データがそれぞれ格納され
る。データの格納か終了するとフローはステップニー8
に移り、リターンアトレスヲ次に続く処理ステップのア
ドレスに設定してリターンする。
As a result, as shown in FIG.
a, Na+1. Na+2. -・-・Na+n-1 has element a1. , a2. ,a3. ...an
The integral data of R'Alvi is stored respectively, and the deaf R'Alvi's a(, response Nb, NT:+4-1.N b4-
2. -...N b+n-1 has elements bl, b2.
-o3. ...bn integral data are stored respectively. When data storage is finished, the flow is step knee 8
The program moves to , sets the return address to the address of the next processing step, and returns.

に1 0勺 本発明は周期的にピント状態を検出して表示する装置6
において、撮影レンズか合焦位置付近に来たとさ、ピン
ト状態検出の誤差のため表示か合焦と非合焦との間で変
転して見苦しくなり撮影者を困或させるような事態を生
するのを避けるだめ、伏叡回のピント状態検出データを
平均して表示の安定化を図ることを第1の目的とする。
The present invention provides a device that periodically detects and displays the focus state6.
When the photographic lens approaches the in-focus position, the display changes between in-focus and out-of-focus due to an error in detecting the focus state, creating an unsightly situation that confuses the photographer. In order to avoid such problems, the first objective is to stabilize the display by averaging the focus state detection data of each time the focus state is detected.

更に単に複数のデータを平均すると、撮影レンズを合焦
位置に向けて移動させている途中にあつては、複数のデ
ータは夫々撮影レンズの位置が異っているので、平均さ
れたデータは複数のデータを採取した間の撮影レンズの
移動範囲の中間点のピント状態の平均値となり、全現在
の撮影レンズ位置におけるピント状態を示さないから、
ピント状態の表示が現状より遅れだものとなり、合焦の
判定がなされたときは撮影レンズは実際の合焦位置を通
り過きていると云った事態を来すから、本発明は過去の
データに引きずられて現状よシ遅れた状態を表示すると
云うようなことなく、現状に連名した状態表示が可能な
平均手段を提供することを第2の目的としている。
Furthermore, when simply averaging multiple pieces of data, the position of the photographing lens is different for each piece of data while the photographing lens is being moved toward the in-focus position, so the averaged data is This is the average value of the focus state at the midpoint of the movement range of the photographing lens during the time when the data was collected, and does not indicate the focus state at all current photographic lens positions.
The display of the focus state will be delayed from the current state, resulting in a situation where the photographing lens has passed the actual focus position by the time the focus is determined. A second purpose is to provide an averaging means that can display a state that is jointly with the current state without displaying a state that is delayed from the current state due to the delay.

構成 本発明は周期的にピント状態の検出を行い、現時点のデ
ータを含む複数のデータに対し、現時のデータに最大の
制電を与え過去のデータ程小さい制電を与えた加重平均
法によってピント状態検出結果に対してデータ処理を行
いピント状態を表示すると共に、現時のデータを重く視
る程度を撮影レンズが非合焦位置にある間と合焦域に入
ったと判定された後とで切換え、撮影レンズが非合焦域
にある間において、特に現時データを重視する加重平均
を行うようにしたカメラのピント状態検出装置を提供す
る。
Structure The present invention periodically detects the focus state, and uses a weighted average method to apply the maximum static suppression to the current data and smaller static suppression to the past data for multiple data including the current data. Data processing is performed on the state detection results to display the focus state, and the degree to which the current data is given more weight can be switched between while the photographing lens is in the out-of-focus position and after it has been determined that it has entered the in-focus range. To provide a camera focus state detection device that performs weighted averaging that places particular emphasis on current data while a photographic lens is in an out-of-focus region.

実施例 第1図以下に本発明の実施例を示す。まず第1図に示す
実施例について概略の説明を行う。図で点線2で囲んだ
部分はピント検出回路で、この回路は撮影レンズのデフ
ォーカス量とデフォーカスの方向とを検出する。この検
出データXnは演算回路26で平均化処理を受け、判定
回路28に印加される。判定回路28では平均化された
デフォーカス量の値が合焦範囲内のものか否かを基準レ
ベルとの比較によって行う。基準レベルは定数貯蔵回路
42に予め記憶させである(Zl、’Z2)。
Embodiment An embodiment of the present invention is shown below in FIG. First, the embodiment shown in FIG. 1 will be briefly described. The part surrounded by dotted line 2 in the figure is a focus detection circuit, and this circuit detects the defocus amount and defocus direction of the photographic lens. This detection data Xn undergoes averaging processing in the arithmetic circuit 26 and is applied to the determination circuit 28. The determination circuit 28 determines whether the averaged defocus amount is within the focusing range by comparing it with a reference level. The reference level is stored in the constant storage circuit 42 in advance (Zl, 'Z2).

判定回路28はデフォーカス量が基準レベル以上のとき
は非合焦と判定し表示回路32に信号を送り、ファイン
ダー内の表示装置34を制御して、デフォーカスの方向
に応じ三角マークL2又はL−3の何れかを点灯させる
。デフォーカス量が基準レベル以下であれば判定回路2
8は合焦と判定して表示装置34内の丸印のマークL1
を点灯させる。ピント検出回路2は始めに述べたように
周期的にピント検出を行っており、各検出サイクル毎に
デフォーカス量のデータxnを出力している。
When the amount of defocus is equal to or higher than the reference level, the determination circuit 28 determines that the focus is out of focus, sends a signal to the display circuit 32, controls the display device 34 in the viewfinder, and displays the triangular mark L2 or L depending on the direction of defocus. -Turn on one of 3. If the defocus amount is below the reference level, judgment circuit 2
8 is determined to be in focus and the circle mark L1 in the display device 34 is displayed.
lights up. As mentioned earlier, the focus detection circuit 2 periodically performs focus detection, and outputs defocus amount data xn for each detection cycle.

こ\でXに付した添字nは検出サイクルの番号を表わす
。第2図はピント検出回路2の出力XQの変化の一例を
示す。サイクル番号lから3までは撮影レンズを合焦位
置に向けて動かしている。サイクル番号3以降撮影レン
ズは合焦域に入ソたものとして動かしていない。しかし
ピント検出信号は図のようにサイクル毎に変化しておシ
、このまXでは合焦非合焦の判定は第3図に○、×で表
わしだように変転して、撮影者を困惑させる。そこで平
均化の意味が出て来る。平均化はピント検出動作の各サ
イクル毎に、今回のデータ及び過去のデータを用いて行
い、平均化の方式としては色々なものが可能である。こ
の実施例では前回のピント検出サイクル時に求めた平均
値7n−1に制電1−αを与え、今回のデータxnに制
電αを与えてxnとyn−1との平均をとるもので、7
1’1−axn+(1−a)yn−1で今回の平均値y
nを求める加重平均法を採っている。αの値は定数貯蔵
回路にα1とα2−α1+Δ2の2種が予め設定してあ
り、選択回路40によってα1.α2の何れかを選択し
て用いるようになっている。αの意味は、これが1なら
今回のデータのみを採用するととそ実際には平均演算を
行わないことであり、α−〇は前回のデータを平均値と
して採用すると云うことであシ、一般論としてαはOか
ら1の範囲の値で、これが大きい程今回のデータを重く
見ると云うことである。この実施例の場合、α2〉α工
なる2つのαを用意しており、判定回路28から合焦の
判定が出るまではα2(大きな方を用いて今回のデータ
を重視した加重平均を行っており、合焦の判定が出たら
α1を採用して今回と過去のデータを均等制電で平均す
るようにし7ている。即ち判定回路28からは2進コー
ドの信号で合焦のときは00.非合焦のときは前ピン0
1後ピン100判定信号を出しておシ、記憶回路36は
前回の判定信号を記憶して今回の演算における選択回路
40の選択動作を制御している。このようにαの値を合
焦判定の前後で大小切換えも後で詳述するが、撮影者が
撮影レンズをせ焦に向けて動かしている間は過去のデー
タを今回のデータと均等に見ると判定結果が今回より、
もっとピントずれ量の大きい過去のデータに引張られて
、ピント状、態の変化に対する応答おくれが大きくなる
から、αとして犬@な方の値α2を選択し、合焦判定が
出た後は撮影レンズは殆んど動がさないから、今回のデ
ータに加えて過去のゾーンもある重みをもたせて見よう
と云うのである。以上で第1図の実施例の概略説明を終
り、次に第1図以下の各実施例につき詳述する。
Here, the subscript n appended to X represents the detection cycle number. FIG. 2 shows an example of changes in the output XQ of the focus detection circuit 2. In cycle numbers 1 to 3, the photographic lens is moved toward the in-focus position. After cycle number 3, the photographic lens is assumed to have entered the in-focus range and is not moved. However, the focus detection signal changes every cycle as shown in the figure, and until now, with the let This is where the meaning of averaging comes into play. Averaging is performed using current data and past data for each cycle of the focus detection operation, and various averaging methods are possible. In this embodiment, an antistatic value 1-α is given to the average value 7n-1 obtained during the previous focus detection cycle, an antistatic α is given to the current data xn, and the average of xn and yn-1 is calculated. 7
1'1-axn+(1-a)yn-1 is the current average value y
A weighted average method is used to determine n. Two values of α, α1 and α2−α1+Δ2, are preset in the constant storage circuit, and the selection circuit 40 selects α1. Either α2 is selected and used. The meaning of α is that if it is 1, the average calculation will not be performed if only the current data is used, and α−〇 means that the previous data will be used as the average value.Generally speaking, α is a value in the range from 0 to 1, and the larger this value is, the more weight is given to the current data. In the case of this embodiment, two α's such as α2>αworking are prepared, and until the determination circuit 28 makes a determination of focus, α2 (the larger one is used to perform a weighted average that emphasizes the current data). When a focus judgment is made, α1 is used to average the current and past data with uniform static suppression7.In other words, the judgment circuit 28 outputs a binary code signal of 00 when in focus. .When out of focus, front focus is 0
After outputting the pin 100 determination signal, the memory circuit 36 stores the previous determination signal and controls the selection operation of the selection circuit 40 in the current calculation. I will explain in detail later how to change the value of α before and after the focus judgment, but while the photographer is moving the photographic lens toward focus, past data is viewed equally with the current data. From this time, the judgment result is
Because the response to changes in the focus state and state will be delayed due to past data with a larger amount of focus deviation, select the dog @ value α2 as α, and take a picture after the focus is determined. Since the lens hardly moves, in addition to the current data, past zones are also given a certain weight when viewing. This completes the general description of the embodiment shown in FIG. 1, and next, each embodiment shown in FIG. 1 and the following will be described in detail.

第1図に示す本発明による実施例は、1眼レフカメラに
用いられ焦点検出素子2の受光部がミラーボックスの底
部に配され、周知の光学系を介して撮影レンズを通過し
た被写体光束が受光束が受光部に導かれる。焦点検出素
子2には、例え□ばハネウニi社製のTC上として知ら
れる公知の装置が用いられる。この焦点検出装置は、受
光部にラインセッサ4を有し、このラインセンサは電荷
f種型の光検出素子CODで構成され、成る積分時間で
蓄積された電荷を転送出力し、この出力をもとに所定の
アルゴリズム演算処理を施してデフォーカス量およびそ
の方向を検出するようになされている。この検出動作は
、繰り返し行われ、デフォーカス信号は間欠的に出力さ
れる。
The embodiment according to the present invention shown in FIG. 1 is used in a single-lens reflex camera, and the light receiving part of the focus detection element 2 is disposed at the bottom of a mirror box, and the subject light flux passing through the photographing lens via a well-known optical system is The received light flux is guided to the light receiving section. As the focus detection element 2, for example, a known device known as a TC top manufactured by Haneuni i is used. This focus detection device has a line sensor 4 in the light receiving section, and this line sensor is composed of a photodetector element COD of charge type f type, and transfers and outputs the charge accumulated in the integral time, and also outputs this output. A predetermined algorithm calculation process is performed on the defocus amount and its direction to be detected. This detection operation is performed repeatedly, and the defocus signal is output intermittently.

また、焦点検出素子2は、積分電荷総量に比例した信号
を時々刻々出力し、この信号が所定レベルに達したとき
自動的に積分動作を停止するAGC回路が付加されてい
る。つまり、受光面の照度工と積分時間 との積が一定
に保たれ、被写体輝度に依らず出力の平均レベルが後段
の信号処理系に都合のよいように常にはマ一定となるよ
ってしである。
Further, the focus detection element 2 is provided with an AGC circuit that outputs a signal proportional to the total amount of integrated charge every moment, and automatically stops the integration operation when this signal reaches a predetermined level. In other words, the product of the illuminance of the light-receiving surface and the integration time is kept constant, and the average level of the output is always constant, so that it is convenient for the subsequent signal processing system, regardless of the subject brightness. .

尚、デフォーカス−楢算出のアルゴリズムは例えば特開
昭5’7−45510号あるいは米国特許4゜333.
007号において詳細に説明がなされており、これを第
1」用することができる。被写体のコントラストCn 
H44り1えば次式に基いて算出された値が用いられる
The defocus-oak calculation algorithm is disclosed in, for example, Japanese Patent Application Laid-Open No. 5'7-45510 or US Pat. No. 4,333.
A detailed explanation is given in No. 007, and this can be used as the first example. Subject contrast Cn
For example, in H44-1, a value calculated based on the following formula is used.

Cnt= Z l cti −aq゛、 (イー1 ここでalは素子a1の出力を表わす。この式の内容は
、素子群al、  a2.  a3.、、anVC,お
いて互いに隣合う素子の出力の差の絶対値を合計したも
ので、被写体のコントラストが高い程一般的な順向とし
て合計値Cnは大きくなる。コントラストが存在しない
フラツトな被写体の場合、合計値Vioである。ライセ
ンサ4は制御回路6からの信号により電荷蓄積、転送な
どの制御を受ける。AGC回路は制御回路6に含まれる
。転送動作が開始されるとラインセンサ4からは、順久
各ホトダイオードによる蓄積゛電荷に応じた電圧信号が
出力される。サンプルホールド回路8ば、ライセンサ4
からの電圧信号を一時的に保持する。AD変換回路10
′ri、サンプルホールド回路8で保持されているアナ
ログ電圧をデジタル値に変換する。変換されたデジタル
値は、順次子め指定された番地の記憶回路12に記憶さ
れる。記憶回路12に記憶された情報ば、演算回路14
に与えられ所定のアルゴリズム演算処理がなされて、デ
フォーカス量およびその方向が算出され、デジタルのデ
フォーカス信号として出力ライン20に出力される。
Cnt= Z l cti −aq゛, (E1 Here, al represents the output of element a1. The contents of this equation are as follows: It is the sum of the absolute values of the differences, and the higher the contrast of the subject, the larger the total value Cn is as a general rule.For a flat subject with no contrast, the total value is Vio.The licensor 4 is a control circuit. The AGC circuit is included in the control circuit 6. When the transfer operation is started, the line sensor 4 outputs a voltage signal corresponding to the charge accumulated by each photodiode. is output from the sample hold circuit 8 and the licensor 4.
Temporarily holds the voltage signal from. AD conversion circuit 10
'ri converts the analog voltage held in the sample hold circuit 8 into a digital value. The converted digital values are sequentially stored in the storage circuit 12 at addresses designated as children. The information stored in the memory circuit 12 is stored in the arithmetic circuit 14
A predetermined algorithm calculation process is performed to calculate the defocus amount and its direction, and the defocus amount and its direction are outputted to the output line 20 as a digital defocus signal.

徒だ演算回路16は記憶回路12の情報からラインセン
サ4が受けている部分の被写体像のコントラストの強度
を示す信号を算出する。さらに、タイマー回路18はラ
インセンサ4における電荷蓄積時間でガを各検出サイク
ル毎に計時して出力する0 次に表示安定化回路22の構成について説明する。焦点
検出素子2の出力ライン20が入力ライン24と接続さ
れた演算回路26は、第n回目の検出サイクルによるデ
フォーカス信号をXnとし、この信号Xnに対する演算
回路26の演算出力をynとすると次式で示される演算
を行う。
The useless arithmetic circuit 16 calculates a signal indicating the contrast strength of the subject image in the portion received by the line sensor 4 from the information in the memory circuit 12. Furthermore, the timer circuit 18 clocks and outputs the charge accumulation time in the line sensor 4 for each detection cycle.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 has the following equation, where Xn is the defocus signal from the nth detection cycle, and yn is the arithmetic output of the arithmetic circuit 26 for this signal Xn. Performs the operation indicated by the formula.

yll =αx n + (1−a ) yn−1−・
−(1,)(])式においてαにば1あるいは1/2の
いずれかか後述のようにしで用いられる。yn−Iは第
n−1回目の検出サイクルによるデフォーカス信号Xn
−1に対する演算回路26の演算出力である。
yll = αx n + (1-a) yn-1-・
-(1,)(]) In the equation, α is either 1 or 1/2, as described below. yn-I is the defocus signal Xn from the (n-1)th detection cycle.
This is the calculation output of the calculation circuit 26 for −1.

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

yn=、Xn+原(2Xn−1+ ’=yn−2)→X
、n+j、Kn−1 +−H?+n−2 +・−−−+
fiXn4十1・・・(2)(2)式から明らかなよう
に、演算回路26の出力は最新のデータに最も重みを置
き、過去のデータに遡るに従って重みを減じた。複数の
データの加重平均値を求めるものである。これは、前述
したように同一距離に対して各検出サイクルのデフォー
カス信号にバラツキがあるので、複数のデフォーカス信
号の平均値をとることによって、誤差を軽減するためで
るる。その際、最新のデータに最も重みを与えて、過去
のデータの影響を軽くしであるのは、次の理由による。
yn=, Xn+original (2Xn-1+'=yn-2)→X
, n+j, Kn-1 +-H? +n-2 +・----+
fiXn411... (2) As is clear from equation (2), the output of the arithmetic circuit 26 gives the most weight to the latest data, and the weight decreases as the data goes back to the past. This method calculates the weighted average value of multiple pieces of data. This is because, as described above, there are variations in the defocus signals of each detection cycle for the same distance, so the error is reduced by taking the average value of a plurality of defocus signals. At this time, the reason why the most weight is given to the latest data and the influence of past data is lightened is as follows.

撮影レンズがフィルム面に対して静止状態にあり、まだ
被写体もカメラに対して一定の距離にある場合ならば、
複数のデフォーカス信号の平均値を求めるに際して、そ
れぞれに重み付けを行う必要はない。ところが、実際に
は撮影レンズは合焦位置に向けて手動により移動される
という事情にあり、まだ被写体とカメラの間の距離も変
化しうるので最新のデフォーカス信号と過去のデフォー
カス信号とに対等の重きを置く・と上記のバラツキ以外
の誤差の要素が大きく影響してしまうことになる。この
ような理由から過去のデータに対しては重みを軽くしで
ある。
If the photographing lens is stationary relative to the film plane and the subject is still at a certain distance from the camera, then
When calculating the average value of a plurality of defocus signals, it is not necessary to weight each one. However, in reality, the photographic lens is manually moved toward the in-focus position, and the distance between the subject and camera can still change, so it is difficult to compare the latest defocus signal with the past defocus signal. If equal weight is given, error factors other than the above-mentioned variations will have a large influence. For this reason, past data should be given less weight.

判定回路28は、演算回路26からのデフォーカス信号
ynを予め定めた合焦閾値2と比較し、合焦・非合焦を
判定してその結果anを第1表のよう((2ビツトの信
号として出力する。この出力に応じて表示用の発光ター
イオードLl、  L2.  L3のいずれ力・が点灯
される。尚、第1表(でおいてCは後述の判定回路50
から出力されるlビットの信号で、被写体のコントラス
トが予め定めだレベル(C達しているか否かを示す。コ
ントラストが所定レベル(て遅していない場合は、合焦
検出は不能と見なし、判定回路28からは出力anとし
て−1”を出力せしめる。
The determination circuit 28 compares the defocus signal yn from the arithmetic circuit 26 with a predetermined focus threshold 2, determines in-focus/out-of-focus, and calculates the result an as shown in Table 1 ((2-bit It is output as a signal. Depending on this output, any of the display light emitting diodes L1, L2, and L3 is turned on.
This is an 1-bit signal output from the 1-bit signal that indicates whether the contrast of the subject has reached a predetermined level (C).If the contrast has reached the predetermined level (C), it is assumed that focus detection is impossible, and the determination circuit 28 outputs -1'' as the output an.

信号anを入力とする表示回路32はファインダ内に設
けられる公知の態様の表示手段34の発光ダイオードL
l、L2..L3を、駆動する。
The display circuit 32, which receives the signal an, is a light emitting diode L of a known display means 34 provided in the viewfinder.
l, L2. .. Drive L3.

記憶回路36は、第n +1回目の検出サイクルの出力
Xn−1−1に対する演算回路26の出力yn十1が判
定回路28に与えられるまで信号dnを一時的例記憶し
、その記憶値を選択回路40,44.48および演算回
路54に与える。選択回路40は、第n回目のデフォー
カス信号Xnを用いた第1式の演算の実行のだめに、第
ri−1回目のデフォーカス信号Xn−1に対する判定
回路28の出力dn〜1に応じて定数貯蔵回路38に貯
えである二つの定数α1−1.α2=1/2(7)いず
れかを選択して演算回路26に入力する。信号dn −
1が合焦を示す00”の場合、定数α2−1/2が選択
され、第2式で示す最新のデフォーカス信号Xnから過
去に遡ったデフォーカス信号に対する加重平均処理が行
われる。合焦以外の場合は定数α1−1が選択され、演
算回路26は出力ynとして入力Xnをそのまま出方す
る。っまシ、非合焦領域では撮影レンズは合焦領域に向
けて移動され、刻々と位置を変えるわけであるから、そ
のような場合に得られた過去に遡る複数のデフォーカス
信号を平均処理すると、実際にレンズは合焦領域に達し
でいても平均処理演算結果は過去の非合焦時のデータに
ひきずられてしまい合焦判定の応答性が劣化してし捷う
ことになるから平均処理は行わないのである。
The storage circuit 36 temporarily stores the signal dn until the output yn1 of the arithmetic circuit 26 for the output Xn-1-1 of the (n+1)th detection cycle is given to the determination circuit 28, and selects the stored value. It is applied to circuits 40, 44, 48 and arithmetic circuit 54. The selection circuit 40 determines, in response to the output dn~1 of the determination circuit 28 for the ri-1st defocus signal Xn-1, before executing the calculation of the first equation using the nth defocus signal Xn. Two constants α1-1. are stored in the constant storage circuit 38. α2=1/2(7) Either one is selected and input to the arithmetic circuit 26. signal dn −
When 1 is 00'' indicating focus, the constant α2-1/2 is selected, and weighted average processing is performed on defocus signals traced back from the latest defocus signal Xn expressed by the second equation. In other cases, the constant α1-1 is selected, and the arithmetic circuit 26 directly outputs the input Xn as the output yn.In the out-of-focus area, the photographing lens is moved toward the in-focus area, and the Since the position is changed, if you average multiple defocus signals from the past obtained in such a case, even if the lens has actually reached the in-focus area, the average processing calculation result will be based on past defocus signals. Averaging processing is not performed because the responsiveness of focus judgment deteriorates and becomes unstable due to the data at the time of focus.

次をで、定数貯蔵回路42と選択回路44は、判定回路
28にヒステリシス特性を与えるだめの第1のヒステリ
ンス回路45を構成し、以下のように記憶回路36から
の信号an−1に応じて定数貯蔵回路42に貯えられて
いる二つの定数21と22のいずれかを判定回路28に
合焦判定基準値として入力する。二つの定数21と22
の関係にあり、撮影レンズが当初非合焦域にあって合焦
域に向けて移動されるような場合、合焦判定基準値とし
て小さい方の定数21が用いられ、定数21に対応する
合焦域に撮影レンズか入ったと判定された場合、次の回
の検出サイクルのデフォーカス信号に対する合焦判定基
準値として大きい方の定数22を用意するっすなわち当
初合焦域を狭く設定しておき、その狭い領域を目標にし
てピント調節を行わしめ、一旦目標域に達すると合焦域
を広げることにより、デフォーカス信号のバラツキによ
る表示のめまぐるしいチ6ラソキを防止するのである。
Next, the constant storage circuit 42 and the selection circuit 44 constitute a first hysteresis circuit 45 that provides hysteresis characteristics to the determination circuit 28, and the constant storage circuit 42 and the selection circuit 44 constitute a first hysteresis circuit 45 that provides a hysteresis characteristic to the determination circuit 28, and the constant storage circuit 42 and the selection circuit 44 constitute a first hysteresis circuit 45 that provides a hysteresis characteristic to the determination circuit 28. One of the two constants 21 and 22 stored in the constant storage circuit 42 is input to the determination circuit 28 as a focus determination reference value. two constants 21 and 22
When the photographing lens is initially in the out-of-focus area and is moved toward the in-focus area, the smaller constant 21 is used as the focus judgment reference value, and the in-focus value corresponding to constant 21 is used as the focus judgment reference value. If it is determined that the photographing lens is in the focus area, the larger constant 22 is prepared as the focus judgment reference value for the defocus signal of the next detection cycle, that is, the focus area is initially set narrow. By adjusting the focus with that narrow area as a target and expanding the in-focus area once the target area is reached, it is possible to prevent the display from fluctuating rapidly due to variations in the defocus signal.

定数zi、zzの値は、実験的に適切値に定められる。The values of the constants zi and zz are determined experimentally to appropriate values.

尚、定数22を判定回路28に与える場合、定数21に
両者の差ΔZを加算するようシてしてもよいし、るるい
は定数Zlを与える場合に定数22からΔZを減するよ
うにしてもよいっ定数貯蔵回路462よび選択回路48
は判定回路50にヒステリシス特性を与えるだめの第2
のヒステリンス回路49を構成する。判定回路50は、
焦点検出素子2からのコントラスト信号が所定レベルに
達しているか否かを判定する一般的に、焦点検出領域に
対応する部分の被写体のコントラストが低くなるとデフ
ォーカス信号の信頼性は低くなる傾向にあシ、コントラ
ストが存在しない場合は、デフォーカスの検出は不能と
なる。そこで予めコントラストの判定レベルを設定して
おき、コントラスト信号が判定レベルに達しない場合、
デフォーカスの検出(は不能と見なして判定回路28か
ら、検出不能を示ず11”を出力せしめる。コントラス
ト 回路28と同様.・てヒステリシス特性が与えられ判定
結果の安定化7り・図られる。定数貯蔵回路46に貯え
られる定数01,02′/′iそれぞれ第1および第2
のコントラスト判定値をなし、定数02は01より所定
値コCたけ大きく設定される。これら定数CI,C2は
実欽的に定めら牡る。
Note that when the constant 22 is given to the judgment circuit 28, the difference ΔZ between the two may be added to the constant 21, or when the constant Zl is given, ΔZ is subtracted from the constant 22. Moyoi constant storage circuit 462 and selection circuit 48
is the second circuit for providing hysteresis characteristics to the judgment circuit 50.
A hysterin circuit 49 is configured. The determination circuit 50 is
Determine whether the contrast signal from the focus detection element 2 has reached a predetermined level. Generally speaking, the reliability of the defocus signal tends to decrease as the contrast of the object in the area corresponding to the focus detection area decreases. However, if contrast does not exist, defocus cannot be detected. Therefore, the contrast judgment level is set in advance, and if the contrast signal does not reach the judgment level,
It is assumed that defocus detection is impossible, and the judgment circuit 28 outputs 11'' indicating that it cannot be detected.Similarly to the contrast circuit 28, a hysteresis characteristic is given to stabilize the judgment result. The constants 01, 02'/'i stored in the constant storage circuit 46 are the first and second constants, respectively.
The constant 02 is set to be larger than 01 by a predetermined value C. These constants CI and C2 are determined practically.

見、上(τお・いて、選1尺〔1路40,44,48ば
、いずれも紀1意回路36の出力an−1に応じて、そ
れぞれのIYJ段回路の定数を選択する。つまり、最も
新しい検出)−イクルのデフォーカス(K 号X nお
よびコントラスト信号Cnに対して、これより一つ前の
検出サイクルの出力に対する判定回路28の判定結果c
in−1で選択される定数が用いられ、演算回路26、
判定回路2,8.50で所定の動作が実行されろう 次に、定数貯蔵回路52、演算回路54、カウンタ56
からなる回路は、撮影レンズが合焦位置にある場合に、
単位時間あたシの検出動作の回数が予め定めだ回数を越
えないようにするだめの検出回数制限回路の要部を構成
する。ライセンサ4は入射光強度に応じて40μ秒から
400m秒またはそれ以上の積分時間で電荷の蓄積を行
う。他方、積分終了時点から所定のデータ処理を行って
合焦判定結果を出力し、表示動作を行うまでに例えば5
0m秒程0一定のデータ処理時間が必要である。CCD
の積分時間を最長400m秒に制限した場合、−回の検
出サイクルの期間つまり積分時間とデータ処理時間との
和は、たいだい50m秒から450m秒となるっしたが
って、検出サイクルの期間が50m秒の場合、1秒間に
20回の検出動作が行われる。ところが合焦の場合その
ような検出動作が行われると、前述したように、各デフ
ォーカス信号にバラツキがあることがら合焦表示素子L
lと非合焦表示素子L2或はL3とが交互にめ捷ぐるし
く点灯する場合があられれて、撮影者に戸惑いを与えて
しまう。そこで合焦の場合は、検出サイクルの期間を最
短、例えば100m秒程度に制限して表示のチラッキを
緩和するのである。このようにするだめk、合進時にお
いて積分時間τnが予め定めた一定時間τQ、例えば5
0m秒より短くなる場合、その差Δτ(−τ〇−τn)
たけ検出サイクルを遅延させて次の検出サイクルを開始
させる。回路図に戻って、定数貯蔵回路52は一定時間
τ0に対応するテークを貯える。演算回路54は、積分
終了時にタイマ回路18からの信号τnを受けて、記憶
回路36からの信号dn−1に応じて第2表に示す信号
Δτnをカウンタ56に向けで出力する。
In each case, the constants of each IYJ stage circuit are selected according to the output an-1 of the Ki-1 circuit 36. , most recent detection) - cycle defocus (judgment result c of the determination circuit 28 for the output of the previous detection cycle with respect to K Xn and contrast signal Cn)
The constant selected by in-1 is used, and the arithmetic circuit 26,
A predetermined operation will be executed in the determination circuit 2, 8.50.Next, the constant storage circuit 52, the arithmetic circuit 54, and the counter
When the photographic lens is in the focus position, the circuit consisting of
This constitutes a main part of a detection number limiting circuit which prevents the number of detection operations per unit time from exceeding a predetermined number of times. The licensor 4 accumulates charge for an integration time of 40 μsec to 400 msec or more depending on the intensity of the incident light. On the other hand, it takes, for example, 5 minutes to perform predetermined data processing from the end of the integration, output the focus judgment result, and perform the display operation.
A constant data processing time of about 0 msec is required. CCD
If we limit the integration time to a maximum of 400 ms, the period of - detection cycles, that is, the sum of the integration time and data processing time, will be approximately 50 ms to 450 ms. Therefore, the period of the detection cycle will be 50 ms. In this case, the detection operation is performed 20 times per second. However, when such a detection operation is performed in the case of focusing, as described above, since there are variations in each defocus signal, the focus display element L
1 and the out-of-focus display element L2 or L3 may alternately light up in a dizzying manner, which confuses the photographer. Therefore, in the case of focusing, the period of the detection cycle is limited to the shortest period, for example, about 100 msec, to alleviate display flicker. In this way, when the integration time τn is set to a predetermined constant time τQ, for example, 5
If it is shorter than 0 msec, the difference Δτ (-τ〇-τn)
Delay the detection cycle and start the next detection cycle. Returning to the circuit diagram, 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, and outputs the signal Δτn shown in Table 2 to the counter 56 in accordance with the signal dn-1 from the storage circuit 36.

第2表 カウンタ56ば、判定回路28で判定結果dn−1が表
示回路32.記憶回路36に出力され、それぞれで表示
、記憶動作が行われた後、システム制御回路58から与
えられる計数開始信号によってΔτnの計時を行い、計
時終了後に計時終了信号を出力する。ここで、カウンタ
56は、Δτn−Q・が与えられる場合、計数開始信号
に応答して直ちに計時終了信号を出力するように構成さ
れる。
The second table counter 56 displays the judgment result dn-1 in the judgment circuit 28 on the display circuit 32. After being outputted to the storage circuit 36 and subjected to display and storage operations, Δτn is counted based on a count start signal given from the system control circuit 58, and after the time count is finished, a time count end signal is output. Here, the counter 56 is configured to immediately output a timing end signal in response to the counting start signal when Δτn-Q· is given.

システム制御回路58は、計時終了信号に応答して、新
たな回の検出サイクルの開始を焦点検出素子2に指令す
る。尚非合焦時は、検“出回数を制限すると、非合焦表
示状態から合焦表示状態への応答速度を劣化させること
になるので上述のような検出回数の制限は行われない。
The system control circuit 58 instructs the focus detection element 2 to start a new detection cycle in response to the clock end signal. Note that when the camera is out of focus, limiting the number of detections will degrade the response speed from the out-of-focus display state to the in-focus display state, so the number of detections is not limited as described above.

次に第1図の回路の動作を説明する。今撮影者が検出ス
イッチ60を押すと、システム制御回路5日は直ちに記
憶回路36の出力を“01”に初期設定し、焦点検出素
子2にCODの積分開始を指令する。記憶回路36の初
期設定がなされるとそれに基づいて表示安定化回路22
の各部は第3表のように規定される。
Next, the operation of the circuit shown in FIG. 1 will be explained. When the photographer presses the detection switch 60, the system control circuit 5 immediately initializes the output of the memory circuit 36 to "01" and instructs the focus detection element 2 to start integrating the COD. When the initial settings of the memory circuit 36 are made, the display stabilization circuit 22
Each part is defined as shown in Table 3.

さてCCDの積分が開始さ汎、CCDの受光面照度に応
じた時間が経過すると積分動作が停止され、続いてCC
Dの各セルに蓄積された電荷が転送され電圧信号として
サンプルホールド回路8に入力さfi A −D変換回
路10で順次ディジタル値に変換されて記憶回路12に
格納される。次いで所要の演算経過後に演算回路14゜
16からデフォーカス信号およびコントラスト信号が出
力される。一方、タイマ回路18は、CCDの積分開始
時にリセットされ、積分期間中にクロックパルスを計数
し、積分停止時の計数値τnを出力する。
Now, the integration of the CCD starts. After a period of time corresponding to the illuminance of the light receiving surface of the CCD has elapsed, the integration operation is stopped, and then the integration of the CCD starts.
The charges accumulated in each cell of D are transferred and inputted as a voltage signal to the sample and hold circuit 8, where they are sequentially converted into digital values by the fi A-D conversion circuit 10 and stored in the storage circuit 12. Then, after a required number of calculations have been completed, a defocus signal and a contrast signal are output from the calculation circuits 14 and 16. On the other hand, the timer circuit 18 is reset when the CCD starts integrating, counts clock pulses during the integration period, and outputs the count value τn when the integration is stopped.

尚、CCDの積分が予め定めだ一定時間(例えば200
m秒)以上を要するような場合は、AGCからの停止命
令を待たずに一定時間経過時に強制的に積分停止を命令
する機能をシステム制御回路58に設け2き、被写体が
暗い場合に積分に長い時間がかけられることを防止する
ようにすることが望ましい。
Note that the CCD integration is performed over a predetermined period of time (for example, 200
m seconds), the system control circuit 58 is equipped with a function that forcibly commands the integration to stop after a certain period of time without waiting for a stop command from the AGC. It is desirable to prevent this from taking a long time.

さて、第1回目の検出サイクルによるデフォーカス信号
X1およびコントラスト信号Ctlが出力されると、演
算回路26はα−1と初期化されているので、出力y1
としてそのi′1fxlを出力し、判定回路28および
記憶回路30に与える。
Now, when the defocus signal X1 and the contrast signal Ctl from the first detection cycle are output, since the arithmetic circuit 26 has been initialized to α-1, the output y1
The i′1fxl is outputted as a signal and applied to the determination circuit 28 and the storage circuit 30.

他方、判定回路50では初期設定されたコントラスト比
較基準値C1とコントラスト信号Ctlとが比較され、
その結果が判定回路2日に与えられる。巌写体のコント
ラストが十分にあってC1(Ctlの場合、判定回路2
日は、合焦判定基準値Z1とデフォーカス信号y l(
= x 1 )との比較結果cllを出力し、これを表
示回路32および記憶回路36に与える。今、判定の結
果として前ピンであることが検出されたとすると、表示
素子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 judgment circuit 2. If the contrast of the rock object is sufficient and C1 (Ctl), the judgment circuit 2
On the day, the focus judgment reference value Z1 and the defocus signal y l (
= x 1 ) and outputs the comparison result cll, which is applied to the display circuit 32 and the storage circuit 36. Now, if the front pin is detected as a result of the determination, the display element L2 is lit. The photographer should follow this display.
Turn the distance ring and move the photographic lens toward the in-focus position.

ところで演算回路5414、その出力Δτnをカウンタ
56に与えるが、第1回目の検出サイクルにおいてはΔ
τn=oと初期化されているので、カウンタ56はシス
テム制御回路58からの計数開始信号に応答して直ちに
計数終了信号を送り返す。かくて、焦点検出素子21ま
第2回目の検出サイクルに入る。続いて、システム制御
回路58は記憶回路30および36に記憶内容を出力さ
せる。
By the way, the arithmetic circuit 5414 gives its output Δτn to the counter 56, but in the first detection cycle, Δτn is
Since τn=o, the counter 56 immediately sends back a count end signal in response to the count start signal from the system control circuit 58. Thus, the focus detection element 21 enters the second detection cycle. Subsequently, system control circuit 58 causes storage circuits 30 and 36 to output the stored contents.

即ち記憶回路30の出力ばy n −1= 71 (=
 xl)となり記憶回路36の出力はdn−1= d 
1となる。従って信号dn−1によって選択される各選
択回路40,44.4Qからの定数は第4表のようKな
る。
That is, the output of the memory circuit 30 is y n −1= 71 (=
xl), and the output of the memory circuit 36 is dn-1=d
It becomes 1. Therefore, the constants from each selection circuit 40, 44.4Q selected by the signal dn-1 are K as shown in Table 4.

第4表 次いで、第1回目の検出サイクルの場合と同様に焦点検
出素子2ば、C’CDの積分終了の後に積分時+=+デ
ータτ2を演算回路54に送るとともに、デフォーカス
量Xnを求めて演算回路26へ出力する。演算回路54
は信号dn−1(−d l )に応じて前記第2表のよ
うな出力Δτn(−Δτ2)を出力する。
Table 4 Next, as in the case of the first detection cycle, the focus detection element 2 sends the integration time +=+ data τ2 to the calculation circuit 54 after the completion of the integration of C'CD, and also calculates the defocus amount Xn. It is calculated and output to the arithmetic circuit 26. Arithmetic circuit 54
outputs the output Δτn (-Δτ2) as shown in Table 2 above in response to the signal dn-1 (-d l ).

一方、演算回路26は(1)式に基づいてy2−αX2
+(1−α)yl・・・・・・・・・・・・(3)で示
される演算を行う。ここで第1回目が合焦であれば、α
−1/2が用いられ出力y2として第1回目と第2回目
のデフォーカス量の平均がとら    ′れる。第1回
目が非合焦であればα−1が用いられ前回のy’lに関
係なく出力y2として第2回目のデフォーカス量X2が
出力される。判定回路28は信号y2と選択回路44の
出力2とを比較して第1表のように判定結果d2を出力
する。この場合、前回第1回目の結果が合焦であわは、
Z=Z2として前回(で用いたzlよりやや幅の広い合
焦ゾーンが設定され、前回が非合焦であればより幅の狭
い合焦ゾーンが引き続いて設定されている。
On the other hand, the arithmetic circuit 26 calculates y2−αX2 based on equation (1).
+(1-α)yl... Perform the calculation shown in (3). If the first focus is here, α
-1/2 is used, and the average of the first and second defocus amounts is taken as the output y2. If the first time is out of focus, α-1 is used, and the second defocus amount X2 is output as the output y2 regardless of the previous y'l. The determination circuit 28 compares the signal y2 and the output 2 of the selection circuit 44 and outputs the determination result d2 as shown in Table 1. In this case, the first result from the previous time is in focus,
As Z=Z2, a focus zone that is slightly wider than zl used in the previous time is set, and if the previous time was out of focus, a narrower focus zone is subsequently set.

判定結果a2が得られると、表示回路32に伝えられ第
2回目の検出結果の表示が行われ、他方、記1.邑ロ路
36(で伝えられて記憶される。次いでカウンタ56て
Δτ2のB」時動作が起動され、計時終了1言号が発さ
れるとシステム制御回路58は第3回目の検出サイクル
の開始の指令を発する。笛3回目以降の検出サイクルて
ついて(は上述第2回目と同様の過程を繰り返す。
When the determination result a2 is obtained, it is transmitted to the display circuit 32 and the second detection result is displayed. Then, the counter 56 starts the operation at Δτ2 at B', and when the clock end 1 word is issued, the system control circuit 58 starts the third detection cycle. For the third and subsequent whistle detection cycles, the same process as the second one described above is repeated.

尚、システム制御回路58Vi、常時スイッチ60の状
態を監視し、スイッチ60が開かれるとその時点から例
えば15秒間後に電源回路を自動的に切って一連の焦点
検出動作を終了するように構成してもよい。以上の動作
を要約゛すれば、前回の判定結果が非合焦である場合に
は、前回の結果とは無関係に今回のデフォーカス量Xn
のみを対象とし、狭い目に設定された合焦ゾーンに入っ
ているか否かを判定し、次の検出サイクルに入る。前回
の判定結果が合焦である場合には、前回のデフォーカス
相当量yn−1との平均処理を施し、その結果ynに対
して、広い目に設定された合焦ゾーンに入っているか否
かを判定する。この際、比較的に明るい被写体に対して
検出サイクルの期間か好くなることに制限か加えられる
The system control circuit 58Vi constantly monitors the state of the switch 60, and when the switch 60 is opened, the power supply circuit is automatically turned off, for example, 15 seconds after that point, and the series of focus detection operations is completed. Good too. To summarize the above operation, if the previous judgment result is out of focus, the current defocus amount
It is determined whether or not the focus zone is within a narrow focus zone, and the next detection cycle begins. If the previous judgment result is in focus, average processing is performed with the previous defocus equivalent amount yn-1, and as a result, it is determined whether yn is in the in-focus zone set for the wide eye. Determine whether At this time, a limit is placed on the length of the detection cycle for relatively bright objects.

ところで焦点検出素子において、所定のアルゴニスムに
従ってデフ万一カス量Xnが求められる場合、CCDの
各セルの出力値によっては十分信頼性のある答が得られ
ない場合がある。例えば破写体のコントラストが低く、
CCDの各セル出力間の差異が殆んど無いような場合や
被写界が暗すぎてCCDの電荷蓄積量が少なすき′るよ
うな場合においては、焦点検出素子は検出能力゛の域か
ら串でしまっている訳で、このような場合は判定回路5
0の出力に応答して判定回路28から検出不能を示す信
号が出力され、これに応じて表示素子L2とL3が点滅
され、警告表示がなされる。この場合、判定回路50j
でもヒステリンス特性が付けられ、ず告表示が通常の表
示と目lぐるしく入れかわることが防がれる。今、筒m
回目の判定結果dmが検出不能でjはない(dm≠”1
1”)場合、即ち十分コントラストがあった場合、第(
m+1)回目の検出サイクルに歎いてはコントラストO
判定回路50にコントラスト判定基準値として低目の判
定レベルC1が与えられ、焦点検出装置2からのコント
ラスト信号Ctm+1と比較される。
By the way, when the amount of differential debris Xn is determined in accordance with a predetermined algorithm in the focus detection element, a sufficiently reliable answer may not be obtained depending on the output value of each cell of the CCD. For example, the contrast of a fracture object 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 too dark and the amount of charge stored in the CCD is small, the focus detection element will be limited in its detection ability. Since it is stored with a skewer, in such a case, the judgment circuit 5
In response to the output of 0, the determination circuit 28 outputs a signal indicating that detection is not possible, and in response, display elements L2 and L3 blink to display a warning. In this case, the determination circuit 50j
However, a hysteresis characteristic is added to prevent the warning display from changing rapidly with the normal display. Now tube m
The second judgment result dm is undetectable and there is no j (dm≠”1
1”), that is, when there is sufficient contrast, the second (
After the m+1)th detection cycle, the contrast is O.
A low judgment level C1 is given to the judgment circuit 50 as a contrast judgment reference value, and compared with the contrast signal Ctm+1 from the focus detection device 2.

寸だ、第m回目の判定結果dmが検出不能である場合(
clm−”11”)、即ちコントラスト不足で警告表示
がなされる場合、第(m+1)回目の検出サイクルのコ
ントラスト信号Ctm−1−1[対して、判定回路50
に高目の判定レベルC2が与えられる。このような検出
不能判定レベルのヒステリンス効果が第3図に示される
。このように判定回路50にヒステリンス特性を付ける
ことによシ警告表示判定レベル付近での表示の不安定性
を軽減することができる。
If the m-th judgment result dm is undetectable (
clm-"11"), that is, when a warning is displayed due to insufficient contrast, the contrast signal Ctm-1-1 of the (m+1)th detection cycle [for the determination circuit 50
is given a higher judgment level C2. FIG. 3 shows such a hysteresis effect at an undetectable level. 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図は、本発明の合焦状態表示装置をマイクロコンピ
ュータ(例えばインテル社製80 C48)を用いて構
成した場合の実施例を示す構成図である。この装置は、
1眼レフカメラ61のミラーポック表の底部に配されだ
CCDブロック62とCCDを制御しかつCCDの出力
をテジタル化するA−D変換回路を含むCOD制御ブロ
ック64とマイクロコンピュータ66とこれに接続され
た、ピント検出を指示するだめのAFスインチロ0、合
焦時に短時間たけ音を発せしめるだめのブザー68およ
びピント状態を表示するだめの発光ダイオードLl、 
 L2.L3等によシ構成されている。
FIG. 4 is a configuration diagram showing an embodiment in which the in-focus state display device of the present invention is configured using a microcomputer (for example, Intel 80C48). This device is
A CCD block 62 arranged at the bottom of the mirror pocket surface of the single-lens reflex camera 61, a COD control block 64 including an A-D conversion circuit that controls the CCD and digitizes the output of the CCD, and a microcomputer 66 connected thereto. AF switch 0 for instructing focus detection, a buzzer 68 for emitting a short sound when in focus, and a light emitting diode Ll for indicating the focus state.
L2. It is composed of L3 etc.

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

フラッグFPFは第1回の検出サイクルが始1つだ初ル
Jに“l”(・こセントされ、第2回の検出サイクルか
らはクリアされる。7ラングLcFはコントラストか所
定レベル以下と判断されたとき“1”Kセットさ才t、
所定レベル以上と判断されたときばO″にクリアされる
。フラッグLLFは被写体輝度が所定レベル以下と判断
されたとさ“1”にセットされる。フラッグSFXは各
検出サイクル毎のデフオルカス信号が前ピンを示す場合
“1′にセットされ、後ピンを示す場合にば0−でクリ
アされる。フラッグ5FYnは加重平均処理された、テ
ア、4−一カス信号が前ピンの場合″1”にセノトサレ
、後ピンの場合(で″O″罠クリアされる。フラッグ■
1+F nは成新のデフォーカス信号Ynが合焦ゾーン
に入ったと判定された吉き6ユ”だ七ノドされ、合焦ゾ
ーンからはす扛でいると判断されたときは”O”にクリ
アされる。フラッグエFFn−1は前回の合焦判定結果
を保持するもので、前回の判定結果が合焦のときは”1
”にセットされ、非合焦のと1rO”にクリアされる。
The flag FPF is set to "l" () at the beginning of the first detection cycle, and is cleared from the second detection cycle.The 7 rung LcF is determined to be below the contrast level or a predetermined level. When it is set, “1” is set,
When it is determined that the brightness of the subject is above a predetermined level, it is cleared to O''.Flag LLF is set to "1" when it is determined that the subject brightness is below a predetermined level. It is set to "1" to indicate a pin, and is cleared to 0- to indicate a back pin. Flag 5FYn is a weighted average processed tare signal. If the 4-1 cass signal is a front pin, it becomes ``1'', and if it is a rear pin, the trap is cleared to ``O''.Flag ■
1+F n is set to 6" when the defocus signal Yn of Seishin is judged to be in the focus zone, and cleared to "O" when it is judged to be far from the focus zone. Flag FFn-1 holds the previous focus judgment result, and when the previous judgment result is in focus, it is set to “1”.
When out of focus, it is cleared to 1rO.

フラッグBFは、コントラストが不十分でピント検出不
能と半定された場合に表示用発光ダイオードを点滅させ
て警告表示か行われるが、この警告表示動作の制御の過
程で用いらnる。
The flag BF is used in the process of controlling the warning display operation to display a warning by blinking the display light emitting diode when it is semi-determined that the focus cannot be detected due to insufficient contrast.

カウンタTn、Tsけ、ccDの積分最長時間を定める
ためて用いられ、上位の1バイl−T nと下位の1バ
イトTsがらの合計2バイトで構成さnる。このカウン
タ(グ、CCDの積分開始と同時1で予めセントされた
煩から減算カウントを始める。
It is used to determine the maximum integration time of the counters Tn, Ts, and ccD, and consists of a total of 2 bytes consisting of the upper 1 byte l-Tn and the lower 1 byte Ts. At the same time as the CCD starts integrating, this counter starts subtracting from the predetermined value of 1.

セット頒の全数をカウントするに要する時間は積分最長
時間に当る。カウンタBCTRば、警告表示として発光
ダイオードL2とL3を点滅制御する場合に、その点灯
時間と消灯時間を規定するタイマとして用いられ、イニ
ンヤライズのステップで定taNon力)セットされる
。タイマカウンタTCTRdカウンタとしてマイクロコ
ンピュータニ備えられたもので、マイクロコンピュータ
の内部クロックパルスを入力信号とし、入力部に設けら
れだゲートをタイマカウンタ制御命令によって制御する
ことによって自由に計時動作をプログラムすることがで
きる。この内部クロ・ノクノクルスはマイクロコンピュ
ータの基本マ/ンサイクルを分周したものか用いられる
。また、タイマカウンタTCTRの計数値かオーバーフ
ローするとタイマフラグTFか自動的に“1”にセット
される。このタイマフラグTFはプログラムてよってそ
の内容をテストすることかでさ、かつテスト結果によっ
てプログラムを条件分岐することができる。尚、このタ
イマフラグT’Fはプログラムによってテストされると
、その時点て自動的に“o”にクリアされる。このフラ
グTFは後述のように表示動作の制御に用いられる。
The time required to count the total number of set distributions corresponds to 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 is set at the initialization step. A timer counter TCTRd is equipped with a microcomputer as a counter, and uses the microcomputer's internal clock pulse as an input signal, and allows the timekeeping operation to be freely programmed by controlling the gate provided at the input section with a timer counter control command. I can do it. This internal clock nocleus is a divided version of the microcomputer's basic man cycle. Further, when the count value of the timer counter TCTR overflows, the timer flag TF is automatically set to "1". This timer flag TF can be used to test its contents depending on the program, and the program can be conditionally branched depending on the test result. Note that when this timer flag T'F is tested by a program, it is automatically cleared to "o" at that point. This flag TF is used to control the display operation as described later.

第5図は、第4図に示すピント表示装置の全体的な動作
の流れを示すフローチャー1・である。グ5図において
電源スィッチ(不図示)を投入するトステノフS −2
でマイクロコンピュータツノh−トウエアによって次の
ような初期化設定が自動的に行われる。
FIG. 5 is a flowchart 1 showing the overall operation flow of the focus display device shown in FIG. Tostenov S-2 turning on the power switch (not shown) in Figure 5
The following initialization settings are automatically performed by the microcomputer software.

16  フログラムカウンタを“O”にする2・ 外部
割込み禁止状態1(する 3・ タイマカウンタT CTRへの入力を阻止する4
・ タイマフラグTFを0”にクリアするまだソフトウ
ェアによって次の初期化設定が行われる。
16 Set the program counter to “O” 2. External interrupt disabled state 1 (Yes 3. Block input to timer counter T CTR 4.
- Clear the timer flag TF to 0''.The next initialization setting is performed by software.

1、 CCD1′!l制御ブロツク64へのクロ・ツク
の供給が開始される 2、カウンタBCTRK初期値Conをセ・ノドする。
1. CCD1'! 1. Supply of the clock to the control block 64 is started. 2. The initial value Con of the counter BCTRK is set.

次にステップS−3でピント状態表示の発光ダイオード
L、L2.L3のいずれをも点灯させない操作か行われ
るとともに後述の表示用サブル−チンを機能させないだ
めにタイマフラグTFが60”    −にクリアされ
、タイマカウンタT C、T Rへの入力クロツクパル
スを阻止する。続いてステップS−4でフラグFPFに
第1回目の検出サイクルであることを示す“1”がセッ
トされる。ステ・ノブS−5ではAFスイッチ60がオ
ンになっているか否かソチェツクされ、オフの場合はス
テ・ノブS’−4とS−5を進形してA Fスイッチ6
0がオンされる寸で待機状態となる。AFスイッチ60
がオンになる娼、ステップS−6に2いてCCDの積分
を開始する命令がCCD;+jlh卸ブロノブロック6
4され、CCDの411分が終了すると、CCD制御ブ
ロック64に十り発生される割込み要求信号に応答して
ステップS−’79でおいて積分データがマイクロコン
ピュータの所定のメモリに取込捷れる。
Next, in step S-3, the light emitting diodes L, L2 . At the same time, the timer flag TF is cleared to 60'' to prevent the display subroutine described below from functioning, thereby blocking the input clock pulses to the timer counters TC and TR. Subsequently, in step S-4, the flag FPF is set to "1" indicating that it is the first detection cycle.The step knob S-5 checks whether the AF switch 60 is on. If it is off, move the steering knobs S'-4 and S-5 and press the AF switch 6.
When 0 is turned on, it enters a standby state. AF switch 60
When CCD is turned on, the command to start the integration of CCD at step S-6 is CCD;+jlh wholesale block 6.
4, and when the 411th minute of the CCD is completed, the integral data is taken into a predetermined memory of the microcomputer in step S-'79 in response to an interrupt request signal generated in the CCD control block 64. .

尚、ステップS−6の詳細な内容は第8図のフローチャ
ートに基づいて後述する。ステップS−8では予め定め
られたアルゴリズムによりCCDの出力データが演算処
理され方向を含むデフォーカス扉オよびコントラストが
求められる。尚この演算処理には例えば50m秒程0の
時間を要するので、演算処理ルーチンの途中に数ケ所表
示用サブルーチン第9図を挿入して、後述する警告点滅
表示が不自然にならないようにしている。ステップS−
9で再びA1−□ス1ノチ60のオン、オフ状態がチェ
ックされ、オフの場合はステップS−3に戻る。オンの
場合はステップS・−10に移りステップS−8で求め
られたコントラストが所定値Cと比較される。ステップ
5−10の内容を庁すフローチャートを・第6スに示す
。このフローチャートを参照して第1回の検出サイクル
FPF=1の場合はC=CI((C2)が用いられ、こ
れを越えているとさけ、低コントラストフランクLIC
F:・よ0”にリセノrされ、越えていないときは、L
CT、lは“1゛lこ−ごントされる。第2回目の検出
からは第1回目の検出サイクルの比較結果に基づいて参
照値Cは前述のようにCIとC2のいずれかソ選択され
で用いられ、前回の結果を示す低コントラストフラッグ
しCFが“○”で、コントラストが元号であると判定さ
れているときはC1が用いら汎、反対に“1”がセント
されてコントラストが不充分であると判定さnていると
きはC2が用いられる。こうして選択された参照値に対
する比較結果ハ低コントラストフラッグLCFにセット
される。このとき前回の内容は失なわれる。
Note that the detailed contents of step S-6 will be described later based on the flowchart of FIG. In step S-8, the output data of the CCD is processed by a predetermined algorithm to determine the defocus angle including direction and contrast. Since this arithmetic processing requires zero time, for example, about 50 milliseconds, several display subroutines (Fig. 9) are inserted in the middle of the arithmetic processing routine to prevent the warning flashing display described later from becoming unnatural. . Step S-
At step S9, the on/off state of the A1-□ slot 1 notch 60 is checked again, and if it is off, the process returns to step S-3. If it is on, the process moves to step S-10, where the contrast determined in step S-8 is compared with a predetermined value C. A flowchart showing the contents of steps 5-10 is shown in step 6. Referring to this flowchart, in the case of the first detection cycle FPF=1, C=CI ((C2) is used, and if this is exceeded, the low contrast flank LIC
F:・If it has been reset to 0" and has not exceeded it, press L.
CT and l are counted as "1". From the second detection, the reference value C is selected between CI and C2 as described above based on the comparison result of the first detection cycle. C1 is used when the low contrast flag that indicates the previous result is "○" and the contrast is determined to be the era name, and on the other hand, "1" is set as a contrast flag. When it is determined that the contrast is insufficient, C2 is used.The result of comparison with the reference value thus selected is set in the low contrast flag LCF.At this time, the previous content is lost.

次に、ステップ5−11において最新のデフォーカス量
Xnと過去のデフォーカス量Y n −1トの加重平均
Ynを求める計算が行われる。続くステップ5−12で
はステップ5−11で計算されたデフォーカス量Ynが
所定の合焦ゾーンに入っているか否か\゛判定れる。こ
のステップの内容を示すフローチャートを第7図に示す
。第7図のステップ11−1で当該フローが第1回の検
出サイクルであるか否かシフラッグFPFを調べてチェ
ックされる。第1回の検出サイクルのときはステップ1
1−3’で移って合焦判定値Zとして狭い方の値z1が
用意される。第2回の検出サイクルあるいはそれ以後は
、フローはステップ11−2へ移り合焦フラッグエFF
nから前回の合焦判定結果がチェックされる。前回の合
焦結果はステップ11−7あるい!l−1:l’l−8
において合焦の場合は“1”がまた非合焦の場合ばO″
にクリアされている。さて9合焦フラッグエFFnのチ
ェックの結果非合焦の場合はステップ11−3へ、丑だ
合焦の場合はステップ11−4へ移る。ステップ11−
4へ移った場合は合焦判定値2として広い方の値Z2が
用意される。ステップ11−5では、合焦フラッグエF
Fnの内容がもう一つの合焦フラッグエFFn−1にセ
ットされる。このステップは当面の合焦判定動作には関
係せずセットされた情報は後のステップで用いられる。
Next, in step 5-11, a calculation is performed to obtain a weighted average Yn of the latest defocus amount Xn and the past defocus amount Y n -1. In the following step 5-12, it is determined whether the defocus amount Yn calculated in step 5-11 is 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 shift flag FPF whether the flow in question is the first detection cycle. Step 1 for the first detection cycle
1-3', and the narrower value z1 is prepared as the focus determination value Z. In the second detection cycle or after, the flow moves to step 11-2 and the focus flag FF is set.
The previous focus determination result is checked starting from n. The previous focusing result is step 11-7 or! l-1:l'l-8
When in focus, it is “1”, and when out of focus, it is O”
has been cleared. Now, as a result of checking the 9 in-focus flag FFn, if the result is out of focus, the process moves to step 11-3, and if the result is poor focus, the process moves to step 11-4. Step 11-
4, the wider value Z2 is prepared as the focus determination value 2. In step 11-5, the focus flag F
The contents of Fn are set to another focus flag FFn-1. This step is not related to the current focus determination operation, and the set information is used in a later step.

次に、ステップ11−6で用意されだ合焦判定値Z内に
デフォーカス量Ynが入っているか否かソ判定される。
Next, in step 11-6, it is determined whether the defocus amount Yn is within the prepared focus determination value Z.

合焦の場合はステップ11−7に移り、合焦フラソグエ
FFnに“l”がセットされ、非合焦の場合はステップ
11−8に移って合焦フラッグエFFnが”O゛がクリ
アされる。以上のようにして前回の合焦判定結果に基づ
いて、今回の合焦判定のだめの判定値Zが選出されヒス
テリンス特性が与えられる。次にステップ5−13では
ステップS −10で低コントラストフラッグLCFに
セットされた内容がチェックされ、低コントラストでな
い場合は次のステップ5−14に進む。ステップ5−1
4では合焦フラソグエFFnの、容がチェックされ合焦
フラッグの場合は次のステ・ノブ5=15に進む。ステ
ップ5−15では当該フローが第1回の検出サイクルで
あるか否かYフラッグFPFをチェックして調べられる
。第1回の検出サイクルの場合は、ステップ5−18に
移って合焦表示の発光ダイオードが点灯される。第1回
の検出サイクルでない場合は、ステップ5−16に移っ
て合焦フラ゛ノグI F F n−,1をチェックして
前回の合焦判定、結果が調べられる。それが非合焦のと
きは、ステップ5−18に移る。つ捷り前回の結果が非
合焦で今回の結果が合焦の場合、ステップ5−18で合
焦表示がなされる。前回に引きつづいて今回も合焦の場
合fd、ステップS−1’7に移って高輝度の場合は検
出サイクルの期間の延長がなされる。さて、ステップ5
−18に続いてステップ5−19では合焦表示の発光ダ
イオードL″−の点灯とともに短時間(例えば0.2秒
程)ブザーが鳴らされ、合焦ゾーンに入ったことが聴覚
的に示される。続くステップ5−20ではAF’スイッ
チ60が投入されているか否かソチェノクされる。
If the image is in focus, the process moves to step 11-7, and the focus flag FFn is set to "1," and if the image is out of focus, the process moves to step 11-8, where the focus flag FFn is cleared to ``O''. As described above, based on the previous focus judgment result, the judgment value Z for the current focus judgment is selected and the hysteresis characteristic is given.Next, in step 5-13, in step S-10, the low contrast flag LCF is selected. The content set in is checked, and if the contrast is not low, proceed to the next step 5-14.Step 5-1
At step 4, the value of the focus flag FFn is checked, and if it is the focus flag, the process proceeds to the next stage knob 5=15. In step 5-15, it is determined whether the flow is the first detection cycle by checking the Y flag FPF. In the case of the first detection cycle, 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, the process moves to step 5-16 and the focus flag IFFn-,1 is checked to check the previous focus determination and result. If it is out of focus, move to step 5-18. If the previous result of the split was out of focus and the current result is in focus, an in-focus display is made in step 5-18. Continuing from the previous time, this time as well, if the object is in focus, fd is applied, and if the brightness is high, the process moves to step S-1'7 and the period of the detection cycle is extended. Now, step 5
Following step 5-18, in step 5-19, the light emitting diode L''- indicating the focus is lit and a buzzer sounds for a short time (for example, about 0.2 seconds) to audibly indicate that the focus zone has been entered. In the following step 5-20, it is checked whether the AF' switch 60 is turned on.

投入されている場合はステップ5−22に移シ、投入さ
れていない場合はステップ5−21に移る。
If it has been inserted, the process moves to step 5-22, and if it has not, the process moves to step 5-21.

ステップ5−21では点灯されている発光ダイオードを
消灯する。ステップ5−22ではフラッグFll”Fを
O”にクリアする。このステップに続いてフローはステ
ップS−6に移る。次に、CODの積分ステップS−6
の内容を示す第8図のフローチャートについて説明する
。ステップ6−1で積分開始を命令する信号が出力され
、次いでステップ6−2で低輝度フラッグLLF”が“
○”にクリアされる。ステップ6−3では、マイクロコ
ンピュータを割込み受付は可能状態に置いて次のステッ
プ6−4に移る。ステップ6−4では所定の最長積分時
間400m秒に対応するパルス計数値がカウンタTa、
T7にセットされる。このカウンタは前述のように上位
Tn、下位Tlの2バイトで構成され、当初カウンタ’
rnK最長積分時間に対応する計数値T n maxが
セントされ、カウンタTjにはOF’FンA (= 2
56 )がセットされる。
In step 5-21, the lit light emitting diodes are turned off. In step 5-22, the flag Fll is cleared to O. Following this step, the flow moves to step S-6. Next, COD integration step S-6
The flowchart of FIG. 8 showing the contents will be explained. In step 6-1, a signal instructing the start of integration is output, and then in step 6-2, the low luminance flag LLF is set to “
○". In step 6-3, the microcomputer is set to a state where it can accept interrupts, and the process moves to the next step 6-4. In step 6-4, the pulse meter corresponding to the predetermined maximum integration time of 400 msec is The value is the counter Ta,
Set to T7. As mentioned above, this counter consists of 2 bytes, upper Tn and lower Tl.
The count value T n max corresponding to the longest integration time of rnK is entered, and OF'FnA (= 2
56) is set.

ステップ6−5ではAPスイッチ60が投入されている
か否かゾチェツクされる。投入されている場合は、以後
、カウンタの内容が$算されて行くが、カウント終了ま
でにつまシカウンタの内容が0になる前にCCDの積分
が終了して、これを示す割込みパルスがCCD制御ブロ
ック64より発生すると、カウンタの減算動作は停止さ
れ、割込み処理ルーチンへ移る。割込みが発生しない場
合は400111秒の計時終了時にCCDの積分が強制
的に終了され、低輝度フラッグLLFが”1”にセット
されて次のステップIC移る。ステップ6−6から6−
10まではカウンタの減算カウントのフローである。ス
テップ6−6では下位のカウンタTlの内容から1カウ
ントだけ引かれ、ステップ6−7でカウンタ’rzの内
容がOになったが否がソ調べられる。0でない場合はス
テップ6−5に一戻る。このようにして、カウンタT/
がOになるまでステップ6−5と6−7の間を巡廻する
。カウンタT/が0てなると後述のステップ6−8VC
移り、次いでステップ6−9で上位のカウンタTnから
またけ減じられる。ステップ6−10ではカウンタTn
が0になったか否かソ調べられ、0でない場合はステッ
プ6−5に戻る。かくして、割込みが発生しないかぎシ
ヵレンタT/’、Tnが0になるまでステップ6−5と
6−1Oの間をフローは巡廻する。この巡回に要する時
間が約400m秒である。ステップ6−11ではCCD
の積分が強制的に終了され、次いでステップ6−12で
低輝度フラッグL’lLCが1”にセットされる。
In step 6-5, it is checked whether the AP switch 60 is turned on. If the counter is turned on, the contents of the counter will be incremented by $, but the CCD integration will be completed before the contents of the counter become 0 by the end of the count, and an interrupt pulse indicating this will be sent to the CCD control. When the block 64 occurs, the counter subtraction operation is stopped and the process moves to the interrupt processing routine. If no interrupt occurs, the CCD integration is forcibly terminated at the end of the time measurement of 400111 seconds, the low luminance flag LLF is set to "1", and the process moves to the next step IC. Step 6-6 to 6-
The flow up to 10 is a subtraction count of the counter. In step 6-6, one count is subtracted from the content of the lower counter Tl, and in step 6-7, it is checked whether the content of the counter 'rz has become O or not. If it is not 0, return to step 6-5. In this way, the counter T/
The process cycles between steps 6-5 and 6-7 until becomes O. When the counter T/ becomes 0, step 6-8VC described below
Then, in step 6-9, the upper counter Tn is decremented. In step 6-10, the counter Tn
It is checked whether or not it has become 0. If it is not 0, the process returns to step 6-5. Thus, the flow cycles between steps 6-5 and 6-1O until no interrupt occurs and the key current T/', Tn becomes 0. The time required for this round is approximately 400 msec. In step 6-11, the CCD
The integration is forcibly terminated, and then in step 6-12 the low brightness flag L'lLC is set to 1''.

これは被写体輝度が低いことを意味する。いずれにせよ
積分が終了されると割込みが発生し、マイクロコンピュ
ータ66は積分データの取込みを行うための割込み処理
のステップS−7に入る。ただしステップ6−5でAF
スイッチ60がオフ状態であることが検出されるとマイ
ク−コンピュータ66は割込み禁止状態となり、COD
の積分を停止させステップS−3に戻ル。
This means that the subject brightness is low. In any case, when the integration is completed, an interrupt occurs, and the microcomputer 66 enters step S-7 of interrupt processing to take in the integrated data. However, in step 6-5, AF
When it is detected that the switch 60 is in the off state, the microphone-computer 66 enters the interrupt disabled state, and the COD
Stop the integration and return to step S-3.

ステップ6−8は表示動作のだめのサブルーチンでその
フローチャートを第9図に示す。この図において、ステ
ップD−1でタイマーフラッグTFに1”がセントされ
ているか否かg調べられO”の場合はリターンする。つ
捷り、タイマー7ラングTFが1”に七ソ゛トされてい
る場合のみ表示動作のサブルーチンは用立てられる。タ
イマーフラッグTEはチェックされると自動的に0”に
クリアされる。ステップD−2では低コントラストフラ
ッグLCFが調べられ、低輝度でない場合はピント状態
の表示のルーチンであるステ゛ノブD−3(て移る。ス
テップD−3では最新の合焦判定結果がセットされてい
る合焦フラッグI N F nが調べられ合焦の場合は
発光ダイオードL1を点灯するステップD−4に移る。
Step 6-8 is a subroutine for display operations, the flowchart of which is shown in FIG. In this figure, in step D-1, it is checked whether 1" has been set in the timer flag TF, and if it is O", the process returns. The display operation subroutine is used only when the timer 7 rung TF is set to 1". When the timer flag TE is checked, it is automatically cleared to 0". In step D-2, the low contrast flag LCF is checked, and if the brightness is not low, the focus state display routine moves to step knob D-3. In step D-3, the latest focus judgment result is set. The focus flag INFn is checked, and if the focus is in focus, the process moves to step D-4 in which the light emitting diode L1 is turned on.

非合焦の場合はステップD−5でピントの外れだ方向を
示すサインフラッグS F Y nが調べられ、前ピン
、後ピンに応じて発光ダイオードL2あるいはL3が点
灯される。
If the focus is out of focus, the sign flag S F Y n indicating the direction out of focus is checked in step D-5, and the light emitting diode L2 or L3 is turned on depending on whether the focus is on the front or the back.

低コントラストの場合、フローVi警告表示のルーチン
であるステップD〜8へ移り、点滅フラッグBFかチェ
ックされる。このフラッグが”1″の場合、ステップD
−13でカウンタBCTRからまたけ減じられ、次いで
ステップD−14でカラ/りBCTRがOになったか否
かゾチェツクされる。カウンタBCTRはイニシャライ
ズのスラップS−2で定数Nonがセットされているか
ら、低コントラスト状態が続くかきシ、フローは連続し
てNorL回たけステップD−13を通過する。
If the contrast is low, the process moves to steps D to 8, which is a flow Vi warning display routine, and a check is made to see if the blinking flag BF is present. If this flag is “1”, step D
-13, the counter BCTR is decremented, and then, in step D-14, a check is made to see if the color BCTR has reached O. Since the counter BCTR is set to the constant Non at the slap S-2 of initialization, the flow continuously passes through the NorL rotation step D-13 during which the low contrast state continues.

この間ステップD−15で発光ダイオードL2とL3が
同時に点灯される。ステップD−13で、カウンタBC
TRがOになったことが検知されると、)p−はステッ
プD−16,D−1’7へと進み、フラッグBFをクリ
アし、カウンタBCTRに定数Noffをセントする。
During this time, the light emitting diodes L2 and L3 are turned on simultaneously in step D-15. In step D-13, counter BC
When it is detected that TR has become O, )p- proceeds to steps D-16 and D-1'7, clears the flag BF, and sets the constant Noff in the counter BCTR.

ここで定数Nofンは発光ダイオードL2.L3を消し
ておく期間を規定するもので、例えば定71 N v 
nの3倍の値:(定められる。つまり、発光ダイオード
L2とL3は警告時に点灯と消灯の期間の比が1:3と
される。だKしこの比に限る必要はない。さてフラッグ
BPがクリアされ○”の状態では、フローはステップD
−9の方に導かれることになる。低コントラスト状態が
続くかぎシンローはステップD−9を定数Noff回だ
け連続して通過する。この間発光ダイオードL2.L3
は消灯状態となる。
Here, the constant Nof is the light emitting diode L2. It specifies the period during which L3 is turned off, for example, 71 N v
3 times the value of n: (determined. In other words, the ratio of the lighting and extinguishing periods of the light emitting diodes L2 and L3 at the time of warning is set to 1:3. However, it is not necessary to limit the ratio to this ratio. Now, the flag BP is cleared and the state is “○”, the flow goes to step D
You will be guided towards -9. In the case where the low contrast state continues, step D-9 is successively passed through step D-9 a constant Noff times. During this time, the light emitting diode L2. L3
is turned off.

ステップD−10でカウンタBCTRがOになったこと
が検知されるとステップD−11で、点滅フラッグBP
が1”にセットされ、D−12でカゥンタBCTRに定
数Nonがセットされる。したがって、次回のステップ
D−8ではフローはステップD−13の方に導ひかれる
。このようにして警告表示として発光ダイオードL2と
L3の点滅点灯制御がなされる。尚、点滅フラッグBF
は、イニシヤライズS−2のステップでセント4るよう
にしてもよいが、当初セット状態あるいはクリア状態の
いずれであっても支障はない。
When it is detected in step D-10 that the counter BCTR has become O, in step D-11, the blinking flag BP is
is set to 1", and the constant Non is set to the counter BCTR in D-12. Therefore, in the next step D-8, the flow is directed to step D-13. In this way, as a warning display. Flashing lighting control of the light emitting diodes L2 and L3 is performed.Furthermore, the flashing flag BF
may be set to 4 cents at the step of initialization S-2, but there is no problem whether it is initially set or cleared.

以上の表示用のサブルーチンの説明と第5回の全体のフ
ローチャートから表示用サブルーチンの動作を説明する
と、ステップS−3においてタイマカウンタTCTRは
停止状態にまたタイマフラッグTFがO″に初期化され
てお逆表示用LE、DもOFFされているだめ、第1回
目の検出サイクルにおいては表示用サブルーチンにフロ
ーがジャンプしても第9図のステップD−1においてT
F−“O″であるから、必ず即刻リターンすることによ
り表示動作は行われず発光ダイオードはオフのままであ
る。第1回目の検出サイクルが終了した時点で第5図の
ステップ5−22においテタイマカウンタTCTRへの
クロック入力が許可されるから、第2回目以後の検出サ
イクルにおいては所定の時間毎にタイマカウンタTCT
Rはオーバーフローパルスを発生し、タイマフラグTF
が1”にセントされるから、表示用ザブルーチンヘジャ
ンプした時点でTF−l”となっている場合に前述のよ
うな焦点調節状態の表示あるいは警告表示を行ってリタ
ーンする。尚TF=”l”で表示動作を行ったときはタ
イマフラグTFはO”にクリアされるので、次のオーバ
ーフローパルスの発生により“1”にセントされる壕で
、フローが表示ザブルーチンにジャンプしても表示動作
は行われない。
The operation of the display subroutine will be explained based on the above explanation of the display subroutine and the entire flowchart in the 5th episode. In step S-3, the timer counter TCTR is set to a stopped state and the timer flag TF is initialized to O''. Since the reverse display LE and D are also OFF, even if the flow jumps to the display subroutine in the first detection cycle, the T in step D-1 in FIG.
Since it is F-"O", an immediate return is required so that no display operation is performed and the light emitting diode remains off. At the end of the first detection cycle, clock input to the timer counter TCTR is permitted in step 5-22 of FIG. TCT
R generates an overflow pulse and sets the timer flag TF.
Since the value is set to 1'', if it is TF-1'' at the time of jumping to the display subroutine, the focus adjustment state or warning display as described above is displayed and the process returns. Note that when the display operation is performed with TF="l", the timer flag TF is cleared to O, so the flow jumps to the display subroutine when the next overflow pulse is set to "1". However, no display operation is performed.

第10図は、第5図にあ・ける加重平均計算のステップ
S −11の内容を示すフローチャートである。
FIG. 10 is a flowchart showing the contents of step S-11 of the weighted average calculation shown in FIG.

第10図のステップF−0において、ステップF−1以
降の処理に備えでその時点でメモ+) Y nが保持し
ている値が前回の平均値としてメモ1JYfi−1へ移
す。ステップF−1でフラグFPFが調べられ第1回の
検出サイクルを示す”1″がセットされている場合、フ
ローはステップF−2へ移D、フラッグIFFnが調べ
られる。この時点ではフラグエFFnは寸だ前回の合焦
判定結果を保持している。前回の判定結果が非合焦の場
合フローはステップF−15に飛び、合焦の場合はステ
ップF −3へb6゜このステップF−3では前回の合
焦判定に供されたデフォーカス量yn−1の符号つi 
p njJビン1り(1のものであるか後ピン側のモノ
であるかがフラグSFYにおいて調べられる。この時点
i・でおいてフラグSFYの内容もてたフラグIFFn
と同様に、寸だ前回の判定結果が保持されている。尚デ
フォーカス信号は合焦ゾーンに入っていても前ピンある
いは後ピンを示す極性を持っていること;て変りはない
。ステ・ノブF−3で5FY=“1”即ち前ピン11)
すの場合、フローはステップF−4へ移り、今回の検出
サイクルによるデフォーカス信号Xnの符号がフラグS
FXによって調べられ、5FX=”l”即ち前ピンの場
合、フローはステップF−5へ移り、5FX=”0”即
ち後ピンの場合はステップF−13へ移る。捷だ一方、
フラッグF−3においてS F Y −”O”即ち後ピ
ン側の場合にはフローはステップF−7へ移り、ステッ
プF−4の場合と同様に今回の検出サイクルによるデフ
ォーカスtXnの符号がフラグEIFXによって調べら
れ、5FX−1”即ち前ピンの場合、フローはステップ
F−8へ移りS F X =”0’即ち後ピンの場合は
、ステップF′−5へ移る。つまりF−3,F−4,’
F−7の各ステップでの処理は前回のデフォーカス方向
SFYと今回のデフォーカス方向SFXを参照してデフ
ォーカス方向が変化したか否かをチェックしておシ、デ
フォーカス方向が変化しなかった場合、ステップF−5
へ移り、変化した場合はステップF−8へ移るのである
。テフ万一カス方向が変化しなかった場合、ステップF
−5において前回までの平均値yn−1と今回の値Xn
−1とXnのみに注目して足し合わされ、その合計値が
ステップF−6において2で割られ新しい平均値Ynが
求められる。この場合デフォーカス方向の変化は無いか
らフラグSFYの書き換えは不要である。前回と今回の
デフォーカス方向が異なる場合、ステップF−8以降ス
テップF、−6に亘って符号を考慮した平均処理が行わ
れる。まずステップF−8においてXnがOに等じいか
否かが調べられ、等しい場合にはステップF−13へ移
り、前回の平均値Yn−1を前回と今回の合計値Ynと
し、続いてステップF−14でキャリアラグCyを0”
にクリヤし、次いでステップF−6において2で割られ
今回の平均は無いからフラグSPYの書き換えは不要で
ある。
At step F-0 in FIG. 10, the value held by memo +)Yn is transferred to memo 1JYfi-1 as the previous average value in preparation for the processing after step F-1. In step F-1, the flag FPF is checked and if "1" indicating the first detection cycle is set, the flow moves to step F-2, where the flag IFFn is checked. At this point, the flag FFn retains the previous focus determination result. If the previous judgment result is out of focus, the flow jumps to step F-15, and if it is in focus, the flow goes to step F-3.b6゜In this step F-3, the defocus amount yn used in the previous focus judgment is -1 sign i
p njJ Bin 1 (Whether it is from 1 or from the rear pin side is checked in flag SFY. At this point in time, flag IFFn with the contents of flag SFY
Similarly, the previous judgment result is retained. Note that even if the defocus signal is in the in-focus zone, it still has a polarity that indicates front focus or back focus. 5FY=“1” in Ste Knob F-3, i.e. front pin 11)
If so, the flow moves to step F-4, where the sign of the defocus signal
FX is checked, and if 5FX="1", that is, the front pin, the flow moves to step F-5, and if 5FX="0", that is, the rear pin, the flow moves to step F-13. On the other hand,
If the flag F-3 is S F Y - "O", that is, the rear pin side, the flow moves to step F-7, and the sign of defocus tXn from the current detection cycle is flagged as in step F-4. 5FX-1'', that is, the front pin, the flow moves to step F-8, and when SFX="0'', that is, the rear pin, the flow moves to step F'-5. That is, F-3, F-4,'
The process in each step of F-7 refers to the previous defocus direction SFY and the current defocus direction SFX to check whether the defocus direction has changed or not. If so, step F-5
If there is a change, the process moves to step F-8. If the direction of the teff residue does not change, proceed to step F.
-5, the previous average value yn-1 and the current value Xn
Only -1 and Xn are added together, and the total value is divided by 2 in step F-6 to obtain a new average value Yn. In this case, there is no change in the defocus direction, so there is no need to rewrite the flag SFY. If the previous and current defocus directions are different, averaging processing is performed in consideration of the sign from step F-8 to steps F and -6. First, in step F-8, it is checked whether or not Xn is equal to O. If they are equal, the process moves to step F-13, where the previous average value Yn-1 is set as the previous and current total value Yn, and then step Carrier lag Cy is 0” with F-14
is cleared and then divided by 2 in step F-6. Since there is no average this time, there is no need to rewrite the flag SPY.

ステ・ノブF−8においてX n −1,0の場合、ス
テップF−9で前回のデフォーカスの平均値の絶対値Y
n−1(= 1yn−11)から今回のデフォーカス量
の絶対値Xn(=lxnl)だけ減じ、その結果をYn
として次めステップF、10においてキャリフラグcy
の如何によってYn−1とXnの大小関係を判別してい
る。これは、前回と今回とでピント方向が変わったので
、前回と今回とのデフォーカスの大きさのみを足し合わ
せだのでは平均値を求めることはできないだめである。
If X n -1,0 at step knob F-8, the absolute value Y of the average value of the previous defocus is determined in step F-9.
Subtract the absolute value of the current defocus amount Xn (=lxnl) from n-1 (= 1yn-11), and use the result as Yn
Then, in step F, 10, carry flag cy
The magnitude relationship between Yn-1 and Xn is determined based on the following. This is because the focus direction has changed between the previous time and this time, so it is not possible to calculate the average value by adding only the defocus sizes of the previous time and this time.

尚、減算は実際には引く数の補数をとって加算演算によ
シ行われる。加算の結果、桁上げによりキャリーフラッ
グYがセットされた場合は加算の結果はそのまま減算結
果として用いられる。この場合フローはステップF−1
4を介してステップF−6に移る。キャリーフラッグC
Yがクリアされた場合は、加算の結果の補数率減算結果
に相当する。ただし、このときのみ符号が反転するので
、ステップF−12において符号フラッグSFYの前回
の内容が反転される。次いでステップF−6に移シ平均
値が求められる。以上のようにして前回の判定結果が合
焦である場合、今回の検出サイクルによるデフォーカス
量Xnば1/2の重みが与えられ過去のデフォーカス量
との平均値が求められる。
Note that subtraction is actually performed by taking the complement of the subtracted number and performing an addition operation. If the carry flag Y is set as a result of the addition, the result of the addition is used as is as the result of the subtraction. In this case, the flow is step F-1
4 to step F-6. Carry flag C
If Y is cleared, it corresponds to the result of complement ratio subtraction of the result of addition. However, since the sign is inverted only at this time, the previous content of the sign flag SFY is inverted in step F-12. Next, in step F-6, a shift average value is determined. As described above, when the previous determination result is in focus, a weight of 1/2 is given to the defocus amount Xn of the current detection cycle, and the average value with the past defocus amount is calculated.

この結果(2)式で示しだ加重平均yn即ちYnとSF
′Yが得られ、ステップ5−12・の合焦判定室に供せ
られる。また一方第1回口の検出サイクルあるいは前回
の判定結果が非合焦であった場合、ステップP−’15
.  F−16において今回の測定値Xn即ち絶対値X
n及びデフォーカス方向S F Xがそれぞれ今回の処
理値ynとしてメモリYn及びフラグSFXへ移しかえ
られ、ステ・ノブ5−12の合焦判定に供せられる。
As a result, the weighted average yn, that is, Yn and SF
'Y is obtained and provided to the focus determination chamber in step 5-12. On the other hand, if the first mouth detection cycle or the previous judgment result is out of focus, step P-'15
.. In F-16, the current measured value Xn, that is, the absolute value
n and the defocus direction SFX are respectively transferred to the memory Yn and the flag SFX as the current processed value yn, and are used for determining the focus of the steering knob 5-12.

以上の説明を要約すると、第1回目の検出サイクルある
いIJ: 1)i+回の判定結果が非合焦であった場合
、JJ1i屯平均全平均ず今回の測定値をその11採用
して合焦判定(・て供し、1)11回り判定結果が合焦
てあった場合には前回の平均処理値yn−1と今回の測
定値Xnとの間で符号を考慮した平均処理を行うのであ
る。このような処理KJ、り非合焦状態74おいては平
均処理は行われないので、過去の測定値(で引きずられ
ることなく時々刻々の最新測定テークを表示シてかける
ことができるのて非合焦から合焦への表示の移行の時間
遅れを最小にすることができ、かつ合焦状態に2いては
、毎回の測定値のバシノキ例よる表示の不安定性を改善
することができる。まだこ。、平均処理を繰り返せば最
新の平均値Ynに対する過去の測定値Yn−i(iは整
数)の比重は2iVC比例して減少し、いわゆる加重平
均処理が行われていることになる。尚、この加重平均処
理は、被写体が移動したり手ブレ等により、カメラと被
写体との位置的条件が変動するような場合に有効となる
To summarize the above explanation, the first detection cycle or IJ: 1) If the determination result of i+ times is out of focus, the current measurement value is adopted as the 11th one without JJ1i tun average total average. Focus judgment (1) If the 11th judgment result indicates that the object is in focus, average processing is performed taking into account the sign between the previous average processing value yn-1 and the current measurement value Xn. . Since averaging processing is not performed in the out-of-focus state 74, it is very useful to be able to display the latest measurement take from time to time without being dragged down by past measurement values. The time delay in display transition from focus to focus can be minimized, and in the focused state, the instability of the display of measurement values every time can be improved. If the averaging process is repeated, the weight of the past measured value Yn-i (i is an integer) relative to the latest average value Yn will decrease in proportion to 2iVC, and so-called weighted averaging process will be performed. This weighted average processing is effective when the positional conditions between the camera and the subject change due to movement of the subject, camera shake, etc.

第11図は第5図のステップS−1’7による高輝度時
ておける表示のチラッキを抑制するルーチンを示す70
−チギートである。前述したように被写体が高輝度の場
合CODの積分時間は数+m秒以下の短い時間となり、
単位時間”39の検出サイクルの回数は多くなる。しだ
がって、単位時間当りの表示動作回数も増加し、表示の
チラッキが目さ゛わりとなりやすくなる。そこで、CC
Dの積分時間τnが予め定めた時間τo(−50m秒)
よりも短くなる場合には待ち時間Δτをつくり、検出サ
イクルの時間を待ち時間分たけ延長することによυ単位
時間当りの検出サイクル数が大きくなることに制限を加
え、表示のチラッキを抑制するのである。第11図に寂
いてステ゛ノグH−1で低輝度フラグLLFがチェック
され、被写体が低輝度であって1”がセントされている
場合、フローはステップ5−22ヘンヤングする。O”
にりリアされている場合はステップH−2へ移り、チラ
ッキ抑制の処理が進められる。尚、CODの積分時間の
情報は笥8図の積分ルーチンで求められている。第8図
においてCCDの積分中、カウンタTnは減算カウント
され、途中でCODの積分が終了するとCCD制御ブロ
ック64からの割込み要求信号に応答してフローは割込
みルーチンヘジャングし、カウンタTnの減算カウント
動作は中止される。しだがって、カウンタTnには、初
期値T n maXから積分中の計数値だけ減じた値T
nが残さる。ここで、第12図のグラフを参照して、待
ち時間がちょうどOになる積分時変τOを考え、この積
分時間τOK相当するカウンタTnの残余をTOとする
FIG. 11 shows a routine 70 for suppressing display flicker at high brightness in step S-1'7 of FIG.
-It's Chigito. As mentioned above, when the subject is of high brightness, the COD integration time is short, several + milliseconds or less.
The number of detection cycles per unit time "39" increases. Therefore, the number of display operations per unit time also increases, making it easier for the display to flicker.
The integration time τn of D is the predetermined time τo (-50 msec)
If it becomes shorter than , a waiting time Δτ is created and the detection cycle time is extended by the waiting time to limit the increase in the number of detection cycles per υ unit time and suppress display flickering. It is. In FIG. 11, if the low brightness flag LLF is checked in step H-1 and the subject is low brightness and 1" is set, the flow changes to step 5-22.
If the image quality has been reduced, the process moves to step H-2 to proceed with flicker suppression processing. Note that the information on the COD integration time is obtained by the integration routine shown in Figure 8. In FIG. 8, during the CCD integration, the counter Tn is decremented, and when the COD integration ends midway, the flow jumps to the interrupt routine in response to an interrupt request signal from the CCD control block 64, and the counter Tn decrement the count. The operation is aborted. Therefore, the counter Tn has a value T that is obtained by subtracting the count value during integration from the initial value T n maX.
n remains. Here, with reference to the graph of FIG. 12, consider an integral time variation τO in which the waiting time is exactly O, and let the remainder of the counter Tn corresponding to this integral time τOK be TO.

TOの値についてはカメラの操作性を考慮して表示のチ
ラッキが抑制度合いと表示応答性との両者を勧業して検
出サイクルの最短値を決め、その値から演算時間を差し
引いた値として求められる。
The value of TO is determined by considering the operability of the camera, the degree of suppression of display flicker, and display responsiveness to determine the shortest detection cycle, and then subtracting the calculation time from that value. .

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

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

ステップH−2での演算結果が負ΔT (Oつまりc 
y=Oの場合これは待ち時間を要しないことを意味しフ
ローはステップ5−22ヘジヤンプする。
The calculation result in step H-2 is negative ΔT (O that is c
If y=O, this means no waiting time is required and the flow jumps to step 5-22.

Cy=1の場合即ちステップH−2での引算結果が正Δ
T ) Oの場合は検出時間サイクルが短かすぎること
になり、ステップH−5からH−10を経てH−5に戻
るループを一周期としてステップH2で新しくカウンタ
Tnに格納された計数値ΔT相当時間、つまりΔT廟期
だけA’Fスイッチ60の状態をチェックしながら、か
つ表示制御を行いながら時間経過待ちをする。
When Cy=1, that is, the subtraction result in step H-2 is positive Δ
T) In the case of O, the detection time cycle is too short, and the count value ΔT newly stored in the counter Tn in step H2 is set as one cycle of the loop from step H-5 to H-10 and back to H-5. The system waits for a considerable amount of time, that is, the period of ΔT, while checking the state of the A'F switch 60 and controlling the display.

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

Tl=01でなるとステップH−8へ移る。ステップH
−8は第9図i′rC示した表示用のザブルーチンであ
る。
When Tl=01, the process moves to step H-8. Step H
-8 is the subroutine for display shown in FIG. 9 i'rC.

ステップH−8に次いでステップH−9に移るとカウン
タTnの内容Tnからまたけ減じられ、ステップH−1
0でT n = 0か否かy調べられる。
When the process moves to step H-9 following step H-8, the content Tn of the counter Tn is decremented, and step H-1
0, it is checked whether T n = 0 or not.

T n≠0でない場合、フローはステップH−5に戻る
。こうしてT a = 0となるまでフローはステップ
H−5とH−10の間を、上述のステップH−5とH−
10との間の巡廻を含めて巡廻する。
If T n≠0, the flow returns to step H-5. In this way, the flow continues between steps H-5 and H-10 until T a = 0.
The tour will include a tour between 10 and 10.

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

効果 本発明によれば周期的に得られるピント状態V)′デー
タを平均して表示するので、撮影レンズが合焦位&f”
l近である場合でもピント状態検出動作の一サイクル毎
に検出されるピント状態のデータが異ることによる表示
の不安定と云ったものが解消され、しかも加重平均法を
採用し、撮影レンズが非合焦域知ある間は%に現時に近
いデータ程重く視るようにしているのでピント状態の検
出データの平均値の撮影レンズの位置の変化に対する応
答か速く、従って撮影者がピント状態の表示にIJ−ド
されて撮影レンズを操作しているとき、表示そのものの
応答おくれによって撮影レンズが正りいピント位置を通
り過ぎてしまってから合焦の表示がなでれると云った時
態の発生も防がれる。
Effects According to the present invention, since the focus state V)' data obtained periodically is averaged and displayed, the photographic lens is at the in-focus position &f''.
This eliminates the instability of the display caused by the difference in focus state data detected every cycle of the focus state detection operation even when the camera is close to the camera. While the out-of-focus area is known, data closer to the current time is given more weight, so the response of the average value of the detection data of the focus state to a change in the position of the photographing lens is faster, and therefore the photographer can check the focus state. When operating the photographic lens with IJ-coded on the display, the response of the display itself may be delayed and the photographic lens may have passed the correct focus position before the in-focus display is displayed. Occurrence can also be prevented.

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

第1図は本発明の一実施例を□示すブロック図、第2図
はピント検出回路の出力の変化の一例を示すグラフ、第
3図μこの出力によって行われる表示の変転の様子を示
すグラフ、第4図は本発明の他の実施例を示すブロック
図、第5〜第11図は同実施例の動作を示すフローチャ
ート、第12図はピント検出ンておける積分時間の設定
を説明するグラフ、第13図A及びBは公知のピント検
出装置の受光部の光学的横取を示す側面図、第14図ば
CCDの受光部の構成を示す平面図、第15はecDの
積分時間モニタ回路の一例の回路図、第16図′/″i
割り込み動作のフローチャート、第17図はRAMにお
ける上記動作に関係するエリヤのメモリマツプである。 代理人 弁理士  昧   浩  介 第す図 第7図 第13図へ 第f3図B 第14図
Figure 1 is a block diagram □ showing an embodiment of the present invention, Figure 2 is a graph showing an example of changes in the output of the focus detection circuit, and Figure 3 is a graph showing changes in the display caused by this output. , FIG. 4 is a block diagram showing another embodiment of the present invention, FIGS. 5 to 11 are flowcharts showing the operation of the same embodiment, and FIG. 12 is a graph explaining the setting of the integration time in focus detection. , FIGS. 13A and 13B are side views showing optical interception of the light receiving section of a known focus detection device, FIG. 14 is a plan view showing the configuration of the light receiving section of a CCD, and FIG. 15 is an integral time monitoring circuit of an ecD. An example circuit diagram, Figure 16'/''i
The flowchart of the interrupt operation, FIG. 17, is a memory map of areas related to the above operation in the RAM. Agent Hiroshi Mai, Patent Attorney Figure 7 Figure 13 Figure f3 B Figure 14

Claims (1)

【特許請求の範囲】[Claims] 周JuJ 的に撮影レンズのデフォーカス方向及びデフ
ォーカス量を検出してデフォーカス信号を出力するヒン
ト状態検出装置と上記デフォーカス量を基準レベルと比
較して合焦1非合焦の判定を行う判定回路と、この判定
垢果を表示する表示装置とよシなり、今回のピント状態
検出動作サイクル)ておけるデフォーカス量と今回て引
続く過去1乃至複数回のピント状態検出動作サイクルに
おけるデフォーカス量に今回から過去に向つ−C軽くな
る何重を寿えて加重平均演算を行う演算手段と、合焦非
合焦の判定に応じてデータに与える何重を切換える制御
手段を設けて、上記演算手段により得られるデフォーカ
ス量の加重平均値を上記判定回路に与えると共に、前回
の判定結果が非合焦の場合に、合焦判定がなされた場合
よりも、今回の検出サイクルておけるデータを重視する
よう何重を切換えるようにしたことを特徴とするカメラ
のピント状態表示装置。
A hint state detection device that detects the defocus direction and defocus amount of the photographing lens and outputs a defocus signal, and compares the defocus amount with a reference level to determine in-focus or out-of-focus. Depending on the determination circuit and the display device that displays the result of this determination, the amount of defocus in the current focus state detection operation cycle and the defocus amount in one or more past focus state detection operation cycles that follow this time are determined. A calculation means for performing a weighted average calculation based on the number of layers in which the amount of light changes from this time to the past is provided, and a control means for switching the number of layers to be applied to the data according to the determination of focus/out-of-focus is provided. The weighted average value of the defocus amount obtained by the calculation means is given to the judgment circuit, and when the previous judgment result is out of focus, the data in the current detection cycle is used more than when the judgment result is in focus. A camera focus state display device characterized in that the number of layers to be emphasized is switched.
JP2658983A 1982-12-28 1983-02-18 Focus state display device of camera Pending JPS59152410A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2658983A JPS59152410A (en) 1983-02-18 1983-02-18 Focus state display 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
JP2658983A JPS59152410A (en) 1983-02-18 1983-02-18 Focus state display device of camera

Publications (1)

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

Family

ID=12197723

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2658983A Pending JPS59152410A (en) 1982-12-28 1983-02-18 Focus state display device of camera

Country Status (1)

Country Link
JP (1) JPS59152410A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9285655B2 (en) 2012-07-13 2016-03-15 Panasonic Intellectual Property Management Co., Ltd. Image pickup apparatus performing focus operation when proximity sensor senses an object

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9285655B2 (en) 2012-07-13 2016-03-15 Panasonic Intellectual Property Management Co., Ltd. Image pickup apparatus performing focus operation when proximity sensor senses an object

Similar Documents

Publication Publication Date Title
US5714988A (en) Camera capable of detecting eye-gaze
JP2910258B2 (en) Eye gaze detection device
US4523101A (en) Image scanning system with signal integration time control
US5926655A (en) Line of sight detection device and an apparatus having a line of sight detection device
JPS59152410A (en) Focus state display device of camera
JPH07128705A (en) Camera
JP3297481B2 (en) Eye gaze detection device
JP2872292B2 (en) Equipment having line-of-sight detection means
JPS59152409A (en) Focus state display device of camera
JP2995876B2 (en) Eye gaze detection device
JPS59152408A (en) Focus detecting device of camera
JPS59121322A (en) Focus detector of camera
JPS6258229A (en) Separate photometry type camera
JP2870852B2 (en) Optical equipment
JPH06138378A (en) Camera provided with focus detecting means and line-of-sight detecting means
JPH06129906A (en) Light-measuring device for camera
JP6786643B2 (en) Exposure control device, exposure control method, and program
JP3530647B2 (en) Eye gaze detecting device and optical device
JPH086184A (en) Photographing device
JPH0956678A (en) Visual axis detecting device and optical device
JPH03107933A (en) Automatic exposure controller for camera
JPH08129128A (en) Storage controller using photoelectric conversion element or line sensor, focus detector, line of sight detection device and camera
JP3530648B2 (en) Eye gaze detecting device and optical device
JPH0956679A (en) Image processing device and optical device
JP2926599B2 (en) Camera exposure calculation device