JPH063492B2 - Automatic focus adjustment device - Google Patents

Automatic focus adjustment device

Info

Publication number
JPH063492B2
JPH063492B2 JP58210663A JP21066383A JPH063492B2 JP H063492 B2 JPH063492 B2 JP H063492B2 JP 58210663 A JP58210663 A JP 58210663A JP 21066383 A JP21066383 A JP 21066383A JP H063492 B2 JPH063492 B2 JP H063492B2
Authority
JP
Japan
Prior art keywords
terminal
lens
focus
flag
low
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP58210663A
Other languages
Japanese (ja)
Other versions
JPS6046515A (en
Inventor
信行 谷口
典夫 石川
猛 江川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP58210663A priority Critical patent/JPH063492B2/en
Publication of JPS6046515A publication Critical patent/JPS6046515A/en
Publication of JPH063492B2 publication Critical patent/JPH063492B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime 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

Description

【発明の詳細な説明】 技術分野 本発明は、撮影レンズにより形成された被写体像を受光
することにより、この被写体に関する上記撮影レンズの
焦点検出を行う自動焦点検出装置に関する。より詳しく
は、上記した焦点検出結果に信頼性がない場合に作動す
る制御手段を備えた自動焦点検出装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic focus detection device that receives a subject image formed by a taking lens to detect the focus of the taking lens with respect to the subject. More specifically, the present invention relates to an automatic focus detection device provided with a control unit that operates when the above focus detection result is not reliable.

従来の技術 従来、補助光源を発光させずに焦点検出を行った結果、
その被写体が低コントラストであると判断された場合、
補助光源を発光させて再び焦点検出を行うものが知られ
ている(特開昭54−126023号)。しかしなが
ら、被写体輝度が高くても低コントラストである被写体
も存在し、このような被写体に補助光源を発光してもそ
の低コントラストは簡単には解消されない。
Conventional technology Conventionally, as a result of focus detection without emitting auxiliary light source,
If the subject is determined to have low contrast,
It is known that the auxiliary light source is caused to emit light to perform focus detection again (Japanese Patent Laid-Open No. 54-126023). However, there are some subjects that have low contrast even if the subject brightness is high, and even if the auxiliary light source emits light to such a subject, the low contrast cannot be easily eliminated.

さらに、焦点検出結果によりその被写体が低コントラス
トであると判断された場合、フォーカシングレンズを駆
動しながら再び焦点検出を行うものも知られている(特
開昭57−196219号、特開昭58−1109
号)。しかしながら、被写体輝度が低い場合には、いく
らフォーカシングレンズを駆動しながら焦点検出を行っ
たとしても、コントラストが高くなるフォーカシングレ
ンズ位置を見つけるのはかなり困難である。
Further, it is also known that the focus detection is performed again while driving the focusing lens when the subject is judged to have a low contrast based on the focus detection result (JP-A-57-196219 and JP-A-58-58). 1109
issue). However, when the subject brightness is low, it is quite difficult to find the focusing lens position where the contrast becomes high, no matter how much focus detection is performed while driving the focusing lens.

目的 本発明の目的は、上記した従来技術の欠点を克服し、様
々な被写体に対してそれぞれ適切な焦点検出動作を行う
ことが可能な自動焦点検出装置を提供することにある。
It is an object of the present invention to provide an automatic focus detection device that overcomes the above-mentioned drawbacks of the prior art and can perform appropriate focus detection operations for various subjects.

要旨 本発明の自動焦点検出装置は、焦点検出結果の信頼性を
判定する手段と、被写体が低輝度であるかどうかを判定
する手段とを備えており、焦点検出結果の信頼性が低く
かつ被写体輝度が低い場合には、補助光を発光させて再
度焦点検出を行い、また、焦点検出結果の信頼性が低く
かつ被写体輝度が低くない場合には、フォーカシングレ
ンズ群を駆動しながら再度焦点検出を行うことを特徴と
している。
The automatic focus detection device of the present invention includes means for determining the reliability of the focus detection result and means for determining whether or not the subject has low brightness, and the reliability of the focus detection result is low and the subject If the brightness is low, the auxiliary light is emitted to perform focus detection again.If the reliability of the focus detection result is low and the subject brightness is not low, focus detection is performed again while driving the focusing lens group. It is characterized by doing.

実施例 第1図はこの発明の基本構成を示すブロック図である。
(10)は撮影レンズであり、この撮影レンズを透過した光
が受光部(1)で受光される。この受光部(1)には2
列の微小な受光素子列が設けられており、夫々の受光素
子列が撮影レンズの異なる射出瞳からの光を撮影レンズ
(10)の略予定焦点面で受光するように受光光学系が構成
されている。(2)は受光部(1)の駆動回路であり、
演算・制御回路(3)の端子(21)が“High”になると、
受光部(1)の受光動作を端子(31)を介して制御し、受
光部(1)の各受光素子の出力をA−D変換したデータ
を端子(32)を介して演算・制御回路(3)及び判別回路
(4)へ出力する。また、端子(20)からは被写体が低輝
度のときに“High”の信号を出力する。演算・制御回路
(3)は受光部(1)、駆動回路(2)に受光素子列上
の入射光量分布の測定動作を行なわせるとき端子(21)を
“High”とし、駆動回路(2)からデータをすべて取り
込むと同端子を“Low”とする。そして、取り込んだデ
ータに基づいて撮影レンズ(10)が合焦位置に達するまで
の移動量及び移動方向、又は合焦状態であることを示す
信号を算出し、移動量のデータを端子(33)に出力し、移
動方向或いは合焦状態を示す信号を端子(23),(24)に出
力し、再び端子(21)を“Highとする。
Embodiment FIG. 1 is a block diagram showing the basic configuration of the present invention.
Reference numeral (10) is a photographing lens, and the light transmitted through the photographing lens is received by the light receiving section (1). This light receiving part (1) has 2
A small number of light receiving element rows are provided, and each light receiving element row captures light from different exit pupils of the taking lens.
The light receiving optical system is configured so that light is received at the substantially planned focal plane of (10). (2) is a drive circuit of the light receiving section (1),
When the terminal (21) of the arithmetic / control circuit (3) becomes "High",
The light receiving operation of the light receiving section (1) is controlled via the terminal (31), and the data obtained by A / D converting the output of each light receiving element of the light receiving section (1) is operated via the terminal (32). 3) and the discrimination circuit (4). The terminal (20) outputs a "High" signal when the subject has low brightness. The calculation / control circuit (3) sets the terminal (21) to “High” when the light receiving section (1) and the drive circuit (2) perform the measurement operation of the incident light amount distribution on the light receiving element array, and the drive circuit (2) When all the data are fetched from, the same pin is set to “Low”. Then, based on the captured data, the movement amount and the movement direction until the photographing lens (10) reaches the in-focus position, or a signal indicating that it is in the in-focus state is calculated, and the movement amount data is output to the terminal (33) To the terminals (23) and (24), and the terminal (21) is set to "High" again.

判別回路(4)は駆動回路(2)からのデータを読み取
って被写体光の受光素子列上におけるコントラストが充
分あるかどうかを判別する。そして、コントラストが不
充分であれば演算・制御回路(3)で算出された移動量
のデータは信頼性に乏しいので端子(25)を“Highとす
る。(5)は表示回路であり、端子(23),(24)からの信
号に基づいて前ピン、後ピン、合焦の表示を行なう。さ
らに、端子(25)が“Highになると自動焦点調整動作が正
常に行なわれないので警告表示を行なう。
The discriminating circuit (4) reads the data from the drive circuit (2) and discriminates whether or not the contrast of the subject light on the light receiving element array is sufficient. If the contrast is insufficient, the data of the movement amount calculated by the arithmetic / control circuit (3) is not reliable, so the terminal (25) is set to “High.” (5) is the display circuit and the terminal. The front focus, rear focus, and focus are displayed based on the signals from (23) and (24). Furthermore, if the terminal (25) becomes "High", the automatic focus adjustment operation will not be performed normally and a warning will be displayed. Do.

(7)は論理回路であり、ローコントラストでなくて端
子(26)が“Low”であれば、端子(25),(27)は“Low”に
なっている。このときはコントローラ(8)は、端子(2
3),(24)からの方向の信号に基づいてモータ(9)を駆
動する。すると撮影レンズ(10)の合焦光学系が駆動さ
れ、さらにその駆動量に対応した数のパルスがエンコー
ダ(6)から出力され、そのパルス数が端子(33)からの
移動量のデータと一致するとモータ(9)は停止する。
なお、演算・制御回路(3)の端子(21)からは繰り返し
測定信号が出力されているので入射光量分布の測定はレ
ンズの移動中も行なわれる。そこで演算制御回路はエン
コーダ(6)からのパルスを入力して、レンズ移動中は
レンズ移動分を補正した移動量データを端子(33)に出力
する。そして、移動量データが順次更新されていき、レ
ンズが合焦位置に達したことが、演算・制御回路(3)
(算出値が合焦領域内のとき)又はコントローラ(8)
(移動量データとエンコーダからのパルス数が一致した
とき)で判別されるとレンズ(10)の移動は停止される。
(7) is a logic circuit, and if the terminal (26) is "Low" without low contrast, the terminals (25) and (27) are "Low". At this time, the controller (8)
The motor (9) is driven based on the direction signals from 3) and (24). Then, the focusing optical system of the taking lens (10) is driven, and the number of pulses corresponding to the driving amount is output from the encoder (6), and the number of pulses matches the movement amount data from the terminal (33). Then, the motor (9) is stopped.
Since the measurement signal is repeatedly output from the terminal (21) of the arithmetic / control circuit (3), the measurement of the incident light amount distribution is performed even while the lens is moving. Therefore, the arithmetic control circuit inputs the pulse from the encoder (6) and outputs the movement amount data in which the lens movement amount is corrected to the terminal (33) while the lens is moving. Then, the movement amount data is sequentially updated, and the fact that the lens has reached the in-focus position is indicated by the calculation / control circuit (3).
(When the calculated value is within the focus area) or controller (8)
When it is determined by (when the movement amount data and the number of pulses from the encoder match), the movement of the lens (10) is stopped.

判別回路(4)でローコントラストであることが判別さ
れて端子(25)が“Highになり、低輝度で端子(20)が“Hi
ghになり、端子(22)から発光可能信号が入力すると論理
回路(7)の出力端子(27)は“Highになる。このとき
は、コントローラ(8)のモータ(9)の駆動を開始さ
せず、演算・制御回路(3)は端子(21)を“Highにして
次の測定動作を開始させる。このとき、端子(27)は“Hi
ghなのでアンド回路(11)の出力(28)が“Highになって発
光駆動回路(12)が動作して予備照射用のキセノン管(13)
が発光する。そして、演算・制御回路(3)はこのとき
の測定値に基づいて撮影レンズの合焦光学系の移動量を
算出し、コントローラ(8)はこの移動量に基づいてレ
ンズ(10)を駆動する。演算・制御回路(3)はこのモー
ドであれば端子(38)から“Highの信号が入力しないと端
子(21)“Highの信号は出力しない。そして、撮影レンズ
(10)の合焦光学系が算出された移動量だけ移動したこと
がコントローラ(8)で判別されるとモータ(9)の回
転は停止して、端子(38)が“Highとなる。すると端子(2
1)が“Highとなって第2回目の予備照射を用いた測定が
開始し、それに基づいて算出された移動量だけレンズが
移動するとレンズ(10)の移動は停止して自動焦点調節動
作が終了する。
The discrimination circuit (4) discriminates that the contrast is low, the terminal (25) becomes “High”, and the terminal (20) becomes “Hi” at low brightness.
When the light emission enable signal is input from the terminal (22), the output terminal (27) of the logic circuit (7) becomes “High. At this time, drive the motor (9) of the controller (8) to start. Instead, the arithmetic / control circuit (3) sets the terminal (21) to "High" to start the next measurement operation. At this time, the terminal (27) is
Since it is gh, the output (28) of the AND circuit (11) becomes “High” and the light emission drive circuit (12) operates to operate the xenon tube (13) for pre-irradiation.
Emits light. Then, the arithmetic / control circuit (3) calculates the amount of movement of the focusing optical system of the photographing lens based on the measured value at this time, and the controller (8) drives the lens (10) based on this amount of movement. . In this mode, the arithmetic / control circuit (3) does not output a "High" signal from the terminal (21) unless a "High" signal is input from the terminal (38). And shooting lens
When the controller (8) determines that the focusing optical system of (10) has moved by the calculated movement amount, the rotation of the motor (9) stops and the terminal (38) becomes "High". Terminal (2
When 1) becomes “High” and the measurement using the second preliminary irradiation starts, and the lens moves by the movement amount calculated based on it, the movement of the lens (10) stops and the automatic focus adjustment operation starts. finish.

ローコントラストで端子(25)が“Highであり、低輝度で
端子(20)が“Highであっても、端子(22)から発光可能信
号が入力してないとき或いは、ローコントラストで端子
(25)が“Highであっても、低輝度でなく端子(20)が“Lo
w”のときには、論理回路(7)の端子(26)が“Highに
なる。このときは、コントローラ(8)は、演算・制御
回路(3)の出力には無関係に、レンズを移動させてい
く。そして、判別回路(4)が測定値がローコントラス
トでなくなったことを判別し端子(25)を“Low”とする
と、論理回路(7)は端子(26)を“Low”として前述の
算出された移動量のデータに基づいてレンズを移動させ
る動作に移行する。判定回路(15)は端子(26)が“Highの
ときはエンコーダ(6)からのパルスを入力して、撮影
レンズ(10)の合焦光学系が無限遠合焦位置又は最近距離
合焦位置の終端に達したことを判定する。そして合焦光
学系がいずれか一方の終端に達すると端子(36)を“High
にしてコントローラ(8)によるモータ(9)の回転方
向を逆転する。そして、もう一方の終端に達すると、レ
ンズ(10)は全領域を走査されたことになり、端子(37)を
“Highとして、コントローラ(8)によるモータ(9)
の回転を停止させる。このとき、端子(22)から発光可能
信号が入力していれば、論理回路(7)は端子(27)を
“Highとして前述した予備照射を用いた自動焦点調整動
作に移行する。
Even if the terminal (25) is "High" at low contrast and the terminal (20) is "High" at low brightness, when the light-emission enable signal is not input from the terminal (22) or at low contrast
Even if (25) is "High", it is not low brightness and the terminal (20) is "Lo".
When it is "w", the terminal (26) of the logic circuit (7) becomes "High". At this time, the controller (8) moves the lens regardless of the output of the arithmetic / control circuit (3). When the discriminator circuit (4) discriminates that the measured value is no longer low contrast and sets the terminal (25) to "Low", the logic circuit (7) sets the terminal (26) to "Low" and the above calculation is performed. The operation moves to move the lens based on the movement amount data. The determination circuit (15) inputs the pulse from the encoder (6) when the terminal (26) is “High”, and the focusing optical system of the photographing lens (10) moves to the infinity focus position or the closest distance focus position. When the focusing optical system reaches either end, the terminal (36) is set to “High”.
Then, the rotation direction of the motor (9) by the controller (8) is reversed. When the other end is reached, the lens (10) has been scanned over the entire area, and the terminal (37) is set to "High" to drive the motor (9) by the controller (8).
To stop the rotation of. At this time, if the light emission enable signal is input from the terminal (22), the logic circuit (7) sets the terminal (27) to "High" and shifts to the automatic focus adjustment operation using the preliminary irradiation described above.

第2図はこの発明を適用したカメラシステム全体を示す
回路図である。受光部(FMD)はCCD(Charge Coup
led Device)で構成され2列の受光素子列を備え、夫々
の受光素子列は撮影レンズの射出瞳からの被写体光のう
ちで近赤外光を含む可視光を受光する受光部である。な
お、受光用の光学系等は種々提案されているので省略し
てあるが例えば、特開昭57-49841号に示されているよう
なものでよい。(COC)はこの受光部(FMD)の動
作を制御する制御回路である。そして、(MCO1)は
自動焦点調整用の、また(MCO2)はカメラの動作制
御用のマイクロコンピュータ(以下ではマイコンと称
す)である。まず、以上の部分による測光動作を説明す
る。
FIG. 2 is a circuit diagram showing the entire camera system to which the present invention is applied. The light receiving part (FMD) is a CCD (Charge Coup
LED device) is provided with two rows of light receiving elements, and each light receiving element row is a light receiving portion that receives visible light including near infrared light among subject light from the exit pupil of the photographing lens. Incidentally, various optical systems for receiving light have been omitted because they have been proposed, but for example, those shown in JP-A-57-49841 may be used. (COC) is a control circuit that controls the operation of the light receiving unit (FMD). Further, (MCO1) is a microcomputer for automatic focus adjustment, and (MCO2) is a microcomputer for controlling the operation of the camera (hereinafter referred to as a microcomputer). First, the photometric operation by the above parts will be described.

マイコン(MCO1)の端子(O3)が“Highになると
制御回路(COC)の端子(φR)から“Highのパルス
が出力され、アナログスイッチ(AS2)が導通して、
CCD(FMD)の複数の電荷蓄積部は、端子(AN
M)を介して定電圧源(E1)の出力電圧まで、充電さ
れる。そして端子(φR)が“Low”になると各受光部
の受光量に応じた電荷が電荷蓄積部に蓄積されていく。
このとき、CCD(FMD)内のモニター用受光部(不
図示)による蓄積電荷に対応した信号が端子(ANM)
から出力され、このとき、端子(φR)は“Low”にな
っているのでアナログスイッチ(AS1)が導通してい
てモニター用受光部による出力はコンパレータ(AC
1)の反転入力端子に与えられる。電荷が蓄積されてい
くと、出力電圧は次第に低下していく。このとき、電子
閃光装置によるフラッシュ予備発光を行なわないモード
であれば端子(O1)は“Low”になり、アナログスイ
ッチ(AS3)が導通して定電圧源(E2)の出力電圧
が、また、フラッシュ予備発光を行なうモードであれば
端子(O1)は“Highでアナログスイッチ(AS4)が
導通し、定電圧源(E3)の出力電圧がコンパレータ
(AC1)の非反転入力端子に与えられる。
When the terminal (O3) of the microcomputer (MCO1) becomes “High”, a “High pulse is output from the terminal (φR) of the control circuit (COC), and the analog switch (AS2) becomes conductive,
The plurality of charge storage units of the CCD (FMD) are connected to terminals (AN
It is charged to the output voltage of the constant voltage source (E1) via M). Then, when the terminal (φR) becomes “Low”, charges corresponding to the amount of light received by each light receiving unit are accumulated in the charge storage unit.
At this time, a signal corresponding to the accumulated charges by the monitor light receiving unit (not shown) in the CCD (FMD) is output to the terminal (ANM).
Output from the comparator (AC) because the terminal (φR) is "Low" at this time, the analog switch (AS1) is conducting.
It is given to the inverting input terminal of 1). The output voltage gradually decreases as the charge is accumulated. At this time, in the mode in which the flash preliminary light emission by the electronic flash device is not performed, the terminal (O1) becomes “Low”, the analog switch (AS3) becomes conductive, and the output voltage of the constant voltage source (E2) In the flash preliminary light emission mode, the terminal (O1) is "High", the analog switch (AS4) is conductive, and the output voltage of the constant voltage source (E3) is applied to the non-inverting input terminal of the comparator (AC1).

受光部(FMD)の端子(ANM)からのモニター出力
が低電圧源(E2)又は(E3)のレベルに達するとコ
ンパレータ(AC1)の出力(STP1)は“Highに反
転し、制御回路(COC)の端子(φT)からは転送パ
ルスが出力される。このパルスによって、各受光部にお
ける受光量に対応した電荷蓄積部の蓄積電荷は転送ゲー
トに転送され、転送パルス(φ1)、(φ2)、(φ
3)に基づいて順次蓄積電荷の信号が端子(ANS)か
ら制御回路(COC)に送られる。制御回路(COC)
では端子(ANS)から送られてくる信号を順次A−D
変換し、1つのA−D変換が終了するごとに端子(AD
E)にパルスを出力し、A−D変換されたデータを出力
端子(ADD)へ出力する。
When the monitor output from the terminal (ANM) of the light receiving unit (FMD) reaches the level of the low voltage source (E2) or (E3), the output (STP1) of the comparator (AC1) is inverted to "High" and the control circuit (COC ) Output a transfer pulse from the terminal (φT) of the charge storage unit, the charge accumulated in the charge storage unit corresponding to the amount of light received by each light receiving unit is transferred to the transfer gate, and the transfer pulse (φ1), (φ2). , (Φ
Based on 3), a signal of accumulated charge is sequentially sent from the terminal (ANS) to the control circuit (COC). Control circuit (COC)
Then, the signals sent from the terminal (ANS) are sequentially A-D
Conversion, and each time one A-D conversion is completed, the terminal (AD
A pulse is output to E), and the A-D converted data is output to the output terminal (ADD).

また、電荷の蓄積が開始されて一定時間が経過しても端
子(φT)から転送パルスが出力されないときは、被写
体の輝度が低い場合であり、このときは端子(O2)か
らパルスが出力されて、このパルスが入力すると制御回
路(COC)はコンパレータ(AC1)の出力に無関係
に転送パルス(φT)を出力する。
Further, when the transfer pulse is not output from the terminal (φT) even after a certain period of time has elapsed since the start of charge accumulation, it means that the brightness of the subject is low, and in this case, the pulse is output from the terminal (O2). When this pulse is input, the control circuit (COC) outputs a transfer pulse (φT) regardless of the output of the comparator (AC1).

電子閃光装置による予備照射を行なう場合、端子(O
1)が“Highとなり、コンパレータ(AC1)の非反転
端子には定電圧源(E3)からの電圧が入力する。この
定電圧源の出力電位は定電圧源(E2)の出力電位より
も高くなっている。従って、モニター部による電荷蓄積
量が予備照射を行なわない場合に比較して少量の時点で
転送パルス(φT)が出力されることになる。これは、
フラッシュ光による予備照射を行なう場合、フラッシュ
光の強度は急激に変化するので、回路の応答遅れ等で、
電荷蓄積部がオーバーフローを起してしまい、正しい光
量分布の測定が行なえなくなってしまうことを防止する
ためである。
When performing pre-irradiation with an electronic flash device, the terminal (O
1) becomes “High”, and the voltage from the constant voltage source (E3) is input to the non-inverting terminal of the comparator (AC1). The output potential of this constant voltage source is higher than the output potential of the constant voltage source (E2). Therefore, the transfer pulse (φT) is output at a time point when the amount of charge accumulated by the monitor unit is smaller than that when the preliminary irradiation is not performed.
When performing pre-irradiation with flash light, the intensity of flash light changes abruptly.
This is to prevent the charge storage unit from overflowing and being unable to measure the correct light amount distribution.

前述のように電荷蓄積を開始させるためにマイコン(M
CO1)の端子(O3)が“Highになると、ワンショッ
ト回路(OS1)からパルスが出力され、このパルスは
アンド回路(AN1)を介して出力され端子(JB1)
(JF1)を介して電子閃光装置に発光開始信号が送ら
れる。予備照射が行なわれた場合でも、一定時間が経過
しても転送パルス(φT)が出力されないときは端子
(O2)からパルスを出力させて転送パルスを強制的に
出力させて、電荷蓄積動作を停止させる。ところで蓄積
時間を制限する一定時間は予備照射を行なわない場合に
比較して短時間となっている。これは、フラッシュ光の
発光時間が短かく積分時間を長くしておく必要がないか
らである。
As described above, the microcomputer (M
When the terminal (O3) of CO1) becomes “High”, a pulse is output from the one-shot circuit (OS1), and this pulse is output via the AND circuit (AN1) and the terminal (JB1).
A light emission start signal is sent to the electronic flash device via (JF1). Even if the preliminary irradiation is performed, if the transfer pulse (φT) is not output even after a certain period of time, a pulse is output from the terminal (O2) to forcibly output the transfer pulse to perform the charge storage operation. Stop. By the way, the fixed time for limiting the accumulation time is shorter than that when the preliminary irradiation is not performed. This is because the flash light emission time is short and it is not necessary to lengthen the integration time.

マイコン(MCO2)が電子閃光装置(FLC)からデ
ータを読み取ると、このデータ中に予備照射が可能な状
態かどうかを示す信号が含まれている。そこで予備照射
が可能である信号が入力するとマイコン(MCO2)は
端子(O16)を“Highにする。マイコン(MCO1)は
端子(i2)が“Highであれば予備照射を行なうモードでの
動作が可能であることを判別し、“Low”であれば予備
照射を行なうモードでの動作が不可能であることを判別
する。
When the microcomputer (MCO2) reads data from the electronic flash device (FLC), the data contains a signal indicating whether or not preliminary irradiation is possible. When a signal indicating that preliminary irradiation is possible is input, the microcomputer (MCO2) sets the terminal (O16) to "High. The microcomputer (MCO1) operates in the mode in which preliminary irradiation is performed if the terminal (i2) is" High ". If it is “Low”, it is determined that the operation in the pre-irradiation mode is impossible.

(MDR)は焦点調整用のモーター(MO)を駆動する
回路であり、焦点検出結果が前ピンで、レンズを繰り込
む必要があるときはマイコン(MCO1)の端子(O
4)が、後ピンで繰り出す必要があるときは端子(O
5)が“Highになる。モーター(MO)の回転はレンズ
駆動部(LD)を介してレンズ側(LE)に伝達されレ
ンズの焦点調整が行なわれる。また、レンズ駆動部(L
D)の駆動量はエンコーダ(ENC)によってパルス信
号に変換され、このパルス信号はマイコン(MCO1)
のクロック入力端子(CPI)に入力されて駆動量がカ
ウントされる。また、エンコーダ(ENC)からのパル
スはモーター駆動回路(MDR)に入力されて、レンズ
の駆動速度が一定となるようにモーター(MO)を駆動
するための基準信号として用いられる。
(MDR) is a circuit for driving a motor (MO) for focus adjustment. When the focus detection result is the front pin and the lens needs to be retracted, the terminal (O of the microcomputer (MCO1)
4), when it is necessary to pay out with the rear pin, the terminal (O
5) becomes “High. The rotation of the motor (MO) is transmitted to the lens side (LE) via the lens driving unit (LD) to adjust the focus of the lens.
The drive amount of D) is converted into a pulse signal by the encoder (ENC), and the pulse signal is converted by the microcomputer (MCO1).
Is input to the clock input terminal (CPI) of and the drive amount is counted. Further, the pulse from the encoder (ENC) is input to the motor drive circuit (MDR) and used as a reference signal for driving the motor (MO) so that the lens driving speed becomes constant.

(FDP)は焦点調整状態を表示する表示部であり、マ
イコンの出力端子(OP1)からのデータに応じて、前
ピン状態、合焦状態、後ピン状態、焦点調整不能警告の
表示を行なう。
(FDP) is a display unit that displays a focus adjustment state, and displays a front focus state, a focus state, a rear focus state, and a focus adjustment failure warning according to data from the output terminal (OP1) of the microcomputer.

図の左上隅に示されているスイッチ(SMB)はメイン
スイッチであり、(BB)は電源用電池である。この電
源電池(BB)からはメインスイッチ(SMB)及び電
源ライン(+E)を介してマイコン(MCO1),(M
CO2)に直接給電が行なわれる。スイッチ(S1)は
レリーズボタン(不図示)の押下の一段目で閉成される
測光スイッチで、このスイッチ(S1)が閉成される
と、インバータ(IN3)、アンド回路(AN3)、オ
ア回路(OR4)を介してマイコン(MCO2)の割込
端子(it)に割込信号が入力し、端子(O12)を“Highと
してインバータ(IN6)を介してトランジスタ(BT
1)を導通させ電源ライン(+V)を介してインバータ
(IN3)〜(IN6)、アンド回路(AN2),(A
N3)、オア回路(OR4)、マイコン(MCO1),
(MCO2)以外の回路への給電を開始する。そして、
この給電開始に基づいてパワーオンリセット回路(PO
1)からリセットパルスが出力されて電源ライン(+
V)から給電が行なわれる回路がリセットされる。ま
た、端子(O12)が“Highになるとアンド回路(AN
3)が不能状態、(AN2)が能動状態となりスイッチ
(S1)からの割込信号は入力されない状態となる。
The switch (SMB) shown in the upper left corner of the figure is the main switch, and (BB) is the power supply battery. From the power battery (BB), the microcomputer (MCO1), (MCO1), (MCO1) via the main switch (SMB) and the power line (+ E)
Power is directly supplied to CO2). The switch (S1) is a photometric switch that is closed at the first step of pressing the release button (not shown). When this switch (S1) is closed, the inverter (IN3), AND circuit (AN3), OR circuit An interrupt signal is input to the interrupt terminal (it) of the microcomputer (MCO2) via (OR4), and the terminal (O12) is set to "High" to drive the transistor (BT) via the inverter (IN6).
1) is made conductive and the inverters (IN3) to (IN6), AND circuits (AN2), (A) are connected via the power supply line (+ V).
N3), OR circuit (OR4), microcomputer (MCO1),
Power supply to circuits other than (MCO2) is started. And
The power-on reset circuit (PO
1) Reset pulse is output from power line (+
The circuit supplied with power from V) is reset. When the terminal (O12) becomes "High", the AND circuit (AN
3) is disabled, (AN2) is activated, and the interrupt signal from the switch (S1) is not input.

スイッチ(S2)はレリーズボタンの押下の2段目で閉
成されるレリーズスイッチであり、(S4)は露出制御
動作が完了すると開放され、露出制御機構(不図示)の
チャージが完了すると閉成されるリセットスイッチであ
る。従って、露出制御機構のチャージが完了してリセッ
トスイッチ(S4)が閉成された状態でレリーズスイッ
チ(S2)が閉成されるとアンド回路(AN2)、オア
回路(OR4)を介して端子(it)に割込信号が入力され
る。
The switch (S2) is a release switch which is closed by the second step of pressing the release button, and the switch (S4) is opened when the exposure control operation is completed and closed when the charge of the exposure control mechanism (not shown) is completed. It is a reset switch. Therefore, when the release switch (S2) is closed while the charge of the exposure control mechanism is completed and the reset switch (S4) is closed, the terminal (via the AND circuit (AN2) and the OR circuit (OR4) ( An interrupt signal is input to it).

図の中央の(EDO)は設定された露出制御用データを
出力するブロックで、端子(OP13)からの読み出し信
号に基づいて設定データが順次端子(IP10)から読み
取られる。(LMC)は露出用測光回路で、A−D変換
用のアナログ入力端子(ANI)には測光回路(LM
C)の出力が入力される。また、マイコン(MCO2)
のD−A変換器用の基準電圧として、測光回路(LM
C)内の基準電圧が端子(VRI)に入力する。(EX
D)は露出制御値を表示する表示回路で端子(OP14)
からの表示データに基づいて露出制御値を表示する。
(EXC)は露出制御回路であり端子(OP15)からの
信号に基づいて絞りと露出時間を制御する。また、端子
(TIE)はシャッターレリーズの時点から、後幕の走
行開始後一定時間経過時点まで“Highとなり、撮影時の
フラッシュ発光量制御用の積分動作を可能状態とする。
A block (EDO) at the center of the drawing is a block for outputting the set exposure control data, and the set data is sequentially read from the terminal (IP10) based on the read signal from the terminal (OP13). (LMC) is an exposure photometric circuit, and the analog input terminal (ANI) for A / D conversion has a photometric circuit (LM).
The output of C) is input. Also, a microcomputer (MCO2)
As a reference voltage for the D-A converter of the photometric circuit (LM
The reference voltage in C) is input to the terminal (VRI). (EX
D) is a display circuit for displaying the exposure control value and is a terminal (OP14)
The exposure control value is displayed based on the display data from.
(EXC) is an exposure control circuit which controls the aperture and the exposure time based on the signal from the terminal (OP15). In addition, the terminal (TIE) becomes “High” from the time of shutter release to the time when a certain time has elapsed after the trailing curtain starts running, and the integration operation for controlling the flash emission amount at the time of shooting is enabled.

(LEB)はレンズ側の回路(LEC)からデータを読
み取るためのインターフェース回路である。前述のよう
にトランジスタ(BT1)が導通すると電源ライン(+
V)から端子(JB11)(JL1)を介してレンズ側の
回路(LEC)への給電が行なわれる。そして、マイコ
ン(MCO2)の端子(O15)が“Highになるとインタ
ーフェース回路(LEB)が動作可能状態となり、さら
に、端子(JB12),(JL2)が“Highとなって、レ
ンズ側の回路(LEC)も動作可能状態となる。レンズ
側の回路(LEC)内には、この変換レンズ固有の露出
制御用及び自動焦点調整用のデータを複数のアドレスに
固定記憶したROMと、このROMのアドレスを端子
(JB13),(JL3)を介して入力してくるクロック
パルスに基づいて、もしもレンズが、ズームレンズであ
ればそのクロックパルス及び焦点距離に対応したコード
板の出力に基づいて順次指定するアドレス指定手段と、
ROMから並列に出力されるデータを、端子(JB1
3),(JL3)を介して入力してくるクロックパルス
に基づいて順次1ビットづつ端子(JL4),(JB1
4)を介して出力する並列−直列変換手段とを備えてい
る。
(LEB) is an interface circuit for reading data from the circuit (LEC) on the lens side. As described above, when the transistor (BT1) becomes conductive, the power line (+
Power is supplied from V) to the circuit (LEC) on the lens side through the terminals (JB11) (JL1). When the terminal (O15) of the microcomputer (MCO2) becomes "High", the interface circuit (LEB) becomes operable, and the terminals (JB12), (JL2) become "High", and the circuit (LEC) on the lens side becomes ) Also becomes operable. In the circuit (LEC) on the lens side, the ROM for fixedly storing the exposure control data and the automatic focus adjustment data peculiar to the conversion lens at a plurality of addresses, and the addresses of the ROM are terminals (JB13), (JL3). If the lens is a zoom lens, based on the clock pulse input via the, the addressing means for sequentially specifying based on the output of the code plate corresponding to the clock pulse and the focal length,
The data output from the ROM in parallel is output to the terminal (JB1
3), based on the clock pulse input via (JL3), the terminals (JL4), (JB1
4) through parallel-serial conversion means for outputting via.

ROMに固定記憶されているデータとしては、すべての
交換レンズに共通に設けられている装着を確認するため
のチェックデータ、開放絞り値のデータ、最大絞り値
(絞り口径が最小になる時の絞り値)のデータ、開放測
光誤差のデータ、焦点距離のデータ、ズームレンズで設
定焦点距離に応じた絞りの変化量のデータ等がある。さ
らに、焦点検出装置で検出されたデフォーカス量をレン
ズの駆動量に変換するための変換係数(KD)、フラッ
シュによる予備照射の際には被写体がまぶしく感じるこ
とを防止するように近赤外光を照射することによる近赤
外光と可視光での合焦位置のズレ(デフォーカス量の
差)を補正するための(近赤外光で測定したデフォーカ
ス量を可視光でのデフォーカス量に補正するための)デ
ータ(IRD)、レンズを一方の方向から他方の方向に
駆動方向を変えたとき、カメラ側の駆動軸とレンズ側の
従動との嵌合ガタによって駆動軸を余分に駆動する必要
があるときの余分駆動量即ちバックラッシュデータ(B
LD)等がある。
The data fixedly stored in the ROM include check data for confirming mounting, which is provided in common for all interchangeable lenses, open aperture value data, maximum aperture value (aperture when the aperture diameter is minimum). Value data, open metering error data, focal length data, aperture change amount data according to the focal length set by the zoom lens, and the like. Furthermore, a conversion coefficient (KD) for converting the defocus amount detected by the focus detection device into a lens drive amount, and near infrared light so as to prevent the subject from feeling dazzling during preliminary irradiation with a flash. To correct the in-focus position deviation (difference in defocus amount) between the near-infrared light and visible light caused by irradiating the Data (IRD) to correct the above, when the driving direction of the lens is changed from one direction to the other direction, the drive shaft is driven extra by the play of the camera-side drive shaft and the lens-side follower. The extra drive amount when it is necessary to do, that is, the backlash data (B
LD) etc.

マイコン(MCO2)の端子(SCP)からは8個づつ
のクロックパルスが出力されて、レンズ側の回路(LE
C)では8個のクロックパルスが入力される毎に、RO
Mのアドレスが更新され、指定されたアドレスに固定記
憶されているデータが、クロックパルスに基づいて順次
直列で出力され、マイコン(MCO2)の直列入出力端
子(SIO)から順次読み取られていく。
Eight clock pulses are output from the terminal (SCP) of the microcomputer (MCO2), and the lens side circuit (LE
In C), every time 8 clock pulses are input, RO
The address of M is updated, and the data fixedly stored at the designated address is sequentially output in series based on the clock pulse and sequentially read from the serial input / output terminal (SIO) of the microcomputer (MCO2). .

(FLB)は電子閃光装置制御回路であり、(FLC)
は電子閃光装置内の回路である。電子閃光装置内の回路
(FLC)の具体例は第3図に示してあり、以下第3図
とあわせて電子閃光装置を用いる動作を説明する。第3
図において(BF)は電子閃光装置の電源電池であり、
(SMF)はメインスイッチである。(DD)は昇圧回
路であり、昇圧回路(DD)の2次巻線側の高電圧端子
はダイオード(D1)を介して、メインコンデンサ(C
2)に接続され、高電圧端子の電圧でメインコンデンサ
(C2)が充電される。また、2次巻線の低電圧端子は
ダイオード(D2)を介してコンデンサ(C1)に接続
され、その出力電圧でコンデンサ(C1)が充電され
る。メインスイッチ(SMF)が閉成されるとトランジ
スタ(BT2),(BT3)が導通し、電圧安定化回路
(CV)からの昇圧出力又はダイオード(D3)を介し
て電源電池(BF)の出力がトランジスタ(BT3)を
介して電源ライン(VF)に給電される。この電源ライ
ン(VF)からの給電は、第3図において、給電路が示
されてない回路にはすべて行なわれる。また、電源ライ
ン(VF)による給電が開始するとパワーオンリセット
回路(PO2)からリセット信号が出力されディジタル
回路部のリセット動作が行なわれる。スイッチ(SO
F)はメインスイッチ(SMF)に連動して同相で開閉
されるスイッチである。そして抵抗(R1)〜(R4)
はメインコンデンサ(C2)の充電電圧を分圧する抵抗
であり、(VC)は定電圧源である。抵抗(R1)と
(R2)との接続点の電位が定電圧源(VC)の電位を
上まわるとコンパレータ(AC21)の出力は“Highとな
りこの信号が“Highになったときはキセノン管(XE
1)が発光するのに必要な最低電圧まではコンデンサ
(C2)は充電されたことになり、発光開始信号が入力
されるとキセノン管(XE2)の発光を開始させる。抵
抗(R2)と(R3)との接続点の電位が定電圧源(V
C)の出力電位を上まわると、コンパレータ(AC22)
の出力が“Highとなる。この場合は、キセノン管(XE
2)の発光量が公称の発光量となるのに必要な電圧まで
メインコンデンサ(C2)の電圧が充電されたことにな
り、カメラ本体へは充電完了信号が送られるとともに表
示回路(CDP)によって充電完了表示が行なわれる。
抵抗(R3)と(R4)との接続点の電位が定電圧源
(VC)の出力電位を上まわるとコンパレータ(AC2
3)の出力が“Highとなる。このときは、撮影用のキセ
ノン管(XE2)が公称値だけ発光し、さらに予備照射
用のキセノン管(XE1)が所定量だけ2回発光するの
に必要な値までメインコンデンサ(C2)が充電された
ことを示し、この信号は予備照射可能信号としてカメラ
側に送られる。なお、スイッチ(SS)は手動で切換え
られるスイッチであり、このスイッチ(SS)が端子
(EN)に接続されていれば予備照射可能信号はカメラ
側に送られるが、端子(DEN)に接続されていれば端
子(PCH)への入力は常に“Low”となり予備照射可
能信号はカメラ側に送られずカメラは予備照射モードに
はならず、また、オア回路(OR20)の出力は“Low”
のままなので発光はしない。
(FLB) is an electronic flash device control circuit, and (FLC)
Is a circuit in the electronic flash device. A specific example of the circuit (FLC) in the electronic flash device is shown in FIG. 3, and the operation using the electronic flash device will be described below in conjunction with FIG. Third
In the figure, (BF) is a power supply battery of the electronic flash device,
(SMF) is a main switch. (DD) is a booster circuit, and the high voltage terminal on the secondary winding side of the booster circuit (DD) is connected to the main capacitor (C) via the diode (D1).
2), and the main capacitor (C2) is charged by the voltage of the high voltage terminal. Further, the low voltage terminal of the secondary winding is connected to the capacitor (C1) through the diode (D2), and the output voltage thereof charges the capacitor (C1). When the main switch (SMF) is closed, the transistors (BT2) and (BT3) become conductive, and the boosted output from the voltage stabilization circuit (CV) or the output of the power supply battery (BF) via the diode (D3). Power is supplied to the power supply line (VF) through the transistor (BT3). Electric power is supplied from the power supply line (VF) to all circuits whose power supply path is not shown in FIG. When power supply from the power supply line (VF) is started, a reset signal is output from the power-on reset circuit (PO2), and the digital circuit section is reset. Switch (SO
F) is a switch that is opened and closed in the same phase in conjunction with the main switch (SMF). And resistances (R1) to (R4)
Is a resistor that divides the charging voltage of the main capacitor (C2), and (VC) is a constant voltage source. When the potential of the connection point between the resistors (R1) and (R2) exceeds the potential of the constant voltage source (VC), the output of the comparator (AC21) becomes "High", and when this signal becomes "High, the xenon tube ( XE
The capacitor (C2) is charged up to the minimum voltage required for 1) to emit light, and when the light emission start signal is input, the xenon tube (XE2) starts to emit light. The potential at the connection point between the resistors (R2) and (R3) is the constant voltage source (V
When the output potential of C) is exceeded, the comparator (AC22)
Output becomes "High. In this case, the xenon tube (XE
This means that the voltage of the main capacitor (C2) has been charged to the voltage required for the amount of light emitted in 2) to reach the nominal amount of light emission, and a charge complete signal is sent to the camera body and the display circuit (CDP) Charging completion is displayed.
When the potential at the connection point between the resistors (R3) and (R4) exceeds the output potential of the constant voltage source (VC), the comparator (AC2
The output of 3) becomes “High.” At this time, the xenon tube (XE2) for shooting emits light at a nominal value, and the xenon tube (XE1) for preliminary irradiation emits light a predetermined amount of time twice. It indicates that the main capacitor (C2) has been charged up to a certain value, and this signal is sent to the camera side as a preliminary irradiation enable signal Note that the switch (SS) is a switch that can be manually switched, and this switch (SS) If is connected to the terminal (EN), the preliminary irradiation enable signal is sent to the camera side, but if connected to the terminal (DEN), the input to the terminal (PCH) is always "Low" and the preliminary irradiation enable signal is sent. Is not sent to the camera side, the camera does not go into the preliminary irradiation mode, and the output of the OR circuit (OR20) is "Low".
As it is, it does not emit light.

(TR1),(TR2)は夫々キセノン管(XE1),
(XE2)をトリガーし、サイリスタ(SC1),(S
C2)を導通させるトリガー回路、(ST1),(ST
2)は夫々サイリスタ(SC1),(SC2)を不導通
としてキセノン管(XE1),(XE2)の発光を停止
させるストップ回路である。また、キセノン管(XE
1)は予備照射用であり、このキセノン管(XE1)の
光射出位置には、近赤外光を透過し、近赤外よりも波長
の短い可視光をカットするフィルタ(FLT)が設けて
あり、予備照射を行なった際に被写体の人物がまぶしく
感じないようになっている。
(TR1) and (TR2) are xenon tubes (XE1),
Trigger (XE2), thyristor (SC1), (S
Trigger circuit for conducting C2), (ST1), (ST
2) is a stop circuit that makes the thyristors (SC1) and (SC2) non-conductive and stops the light emission of the xenon tubes (XE1) and (XE2). In addition, xenon tube (XE
1) is for pre-irradiation, and a filter (FLT) that transmits near-infrared light and cuts visible light having a shorter wavelength than near-infrared light is provided at the light emission position of this xenon tube (XE1). Therefore, the person of the subject does not feel dazzling when the preliminary irradiation is performed.

第2図においてマイコン(MCO2)の端子(O13)が
“Highになると、カメラと電子閃光装置間でデータの授
受が可能な状態となる。そしてマイコン(MCO2)の
電子(O14)から50μsec巾のパルスが出力される
と、端子(JB2),(JF2)を介してこのパルスが
フラッシュ装置に送られる。このパルスで、第3図のモ
ード判別回路(FMS)はフラッシュからカメラにデー
タを転送するモードであることを判別して端子(DO
M)を“Highにする。すると第3図のデータ出力回路
(DOU)は動作可能状態となる。そして、マイコン
(MCO2)のクロックパルス出力端子(SCP)から
クロックパルスが出力されると、このクロックパルスは
端子(JB2),(JF2)を介して第3図のデータ出
力回路(DOU)の端子(SCP)に入力され、このク
ロックパルスに基づいて電子閃光装置で給電が行なわれ
ていることを示す給電信号、電子閃光装置が予備照射が
可能な状態となっていることを示す端子(PCH)への
信号、端子(CHC)への充電完了信号と、調光動作が
行なわれたかどうかを示す端子(FDC)への信号が順
次端子(SOU)から出力し、端子(JF3),(JB
3)を介してカメラ側に送られる。この他に送られるデ
ータは例えば、フラッシュの最大・最小発光量のデー
タ、フラッシュで設定された絞り値、バウンス状態、多
灯フラッシュかどうか等がある。そして、データの転送
が完了すると端子(r2)からパルスが出力され、オア回路
(OR12)を介してモード判別回路(FMS)は初期状
態となりその端子(DOM)は“Low”になる。
In Fig. 2, when the terminal (O13) of the microcomputer (MCO2) becomes "High", the data can be exchanged between the camera and the electronic flash device. And the distance of 50 µsec from the electron (O14) of the microcomputer (MCO2). When the pulse is output, this pulse is sent to the flash device via terminals (JB2) and (JF2), and the mode discrimination circuit (FMS) shown in Fig. 3 transfers the data from the flash to the camera by this pulse. Mode (DO
M) is set to “High.” Then, the data output circuit (DOU) in FIG. 3 becomes operable. When a clock pulse is output from the clock pulse output terminal (SCP) of the microcomputer (MCO2), The clock pulse is input to the terminal (SCP) of the data output circuit (DOU) of FIG. 3 via the terminals (JB2) and (JF2), and power is supplied by the electronic flash device based on this clock pulse. Power supply signal, a signal to the terminal (PCH) indicating that the electronic flash device is ready for pre-irradiation, a charge completion signal to the terminal (CHC), and whether or not the dimming operation has been performed. Signals to the indicated terminal (FDC) are sequentially output from the terminal (SOU), and the terminals (JF3) and (JB
It is sent to the camera side via 3). Other data to be sent include, for example, the maximum / minimum light emission amount data of the flash, the aperture value set by the flash, the bounce state, and whether or not the flash is a multi-flash. Then, when the data transfer is completed, a pulse is output from the terminal (r2), the mode discrimination circuit (FMS) enters the initial state via the OR circuit (OR12), and the terminal (DOM) becomes "Low".

次にマイコン(MCO2)の端子(O14)から100μs
ec巾のパルスが出力されるとモード判別回路(FM
S)は端子(DIM)を“Highにする。するとデータ入
力回路(DIM)は能動状態となる。そしてカメラ本体
のマイコン(MCO2)は端子(SCP)からクロック
パルスを出力するとともにこのクロックパルスに基づい
て端子(SIO)からフラッシュ撮影用の絞り値、露出
時間、フィルム感度撮影距離等のデータを出力する。こ
のデータは端子(JB3),(JF3)を介してデータ
入力回路(DIM)へ読み取られる。そして読み取られ
たデータに基づく表示が表示回路(DSP)で表示され
る。
Next, from the terminal (O14) of the microcomputer (MCO2), 100 μs
When a pulse of ec width is output, the mode discrimination circuit (FM
S) makes the terminal (DIM) "High. Then the data input circuit (DIM) becomes active. And the microcomputer (MCO2) of the camera body outputs a clock pulse from the terminal (SCP) and outputs this clock pulse. Based on this, data such as aperture value for flash photography, exposure time, film sensitivity shooting distance, etc. is output from the terminal (SIO) to the data input circuit (DIM) via the terminals (JB3) and (JF3). Then, the display based on the read data is displayed on the display circuit (DSP).

露出制御動作を開始させるときはマイコン(MCO2)
の端子(O14)から150μsec巾のパルスを出力する。す
るとモード判別回路(FMS)は端子(FLM)を“Hi
ghにする。これによって発光制御回路(FLC)が能動
状態となり発光制御が行なわれる。カメラのフォーカス
プレンシャッタの先幕の走行完了と共にカメラのX接点
(SX)が閉成されると端子(JB4),(JF4)か
ら発光開始信号が端子(STA)へ入力し端子(α1)
から発光開始信号が出力される。またこれと同時に端子
(α3)が“Highから“Low”に反転してこの信号が端
子(JF3),(JB3)を介してカメラ側に送られ
る。カメラ側では、端子(JB3)が“Low”になる
と、回路(FLB)内の測光積分回路(不図示)がフラ
ッシュ光によって照明されている被写体から反射され、
撮影レンズの絞り(不図示)を通過した光の量を積分し
て、積分量がアナログ出力端子(ANO)からのフィル
ム感度に対応したアナログ値に達すると端子(JB2)
に発光停止用のパルスを出力する。このパルスは端子
(JF2)を介して発光制御回路(FLC)の端子(S
TP)に入力する。すると、端子(α2)から発光停止
信号が出力されてキセノン管(XE2)の発光が停止す
る。また、端子(α2)からの発光停止信号は表示回路
(FDP)にも送られて露出制御動作が完了するとX接
点(SX)が開放されるが、この信号に基づいてX接点
(SX)開放から一定時間、端子(df)が“Highになり、
この間は調光動作が行なわれたことを表示する。さらに
この信号はデータ出力回路(DOU)を介してカメラ側
にも送られる。また、X接点(SX)が開放されると端
子(r3)からパルスが出力され、オア回路(OR12)を介
してモード判別回路(FMS)がリセットされて端子
(FLM)が“Low”になる。
Microcomputer (MCO2) to start exposure control operation
Output a pulse of 150 μsec width from the terminal (O14). Then, the mode discrimination circuit (FMS) sets the terminal (FLM) to "Hi".
gh As a result, the light emission control circuit (FLC) is activated and light emission control is performed. When the front contact of the focus plane shutter of the camera is completed and the X contact (SX) of the camera is closed, a light emission start signal is input from the terminals (JB4) and (JF4) to the terminal (STA) and the terminal (α1).
Emits a light emission start signal. At the same time, the terminal (α3) is inverted from “High” to “Low”, and this signal is sent to the camera side through the terminals (JF3) and (JB3). ", The photometric integration circuit (not shown) in the circuit (FLB) is reflected from the subject illuminated by the flash light,
The amount of light that has passed through the aperture (not shown) of the taking lens is integrated, and when the integrated amount reaches an analog value corresponding to the film sensitivity from the analog output terminal (ANO), the terminal (JB2)
A pulse for stopping light emission is output to. This pulse is transmitted through the terminal (JF2) to the terminal (S) of the light emission control circuit (FLC).
TP). Then, a light emission stop signal is output from the terminal (α2) and the light emission of the xenon tube (XE2) is stopped. Further, the light emission stop signal from the terminal (α2) is also sent to the display circuit (FDP) and the X contact (SX) is opened when the exposure control operation is completed. Based on this signal, the X contact (SX) is opened. The terminal (df) becomes “High” for a certain time from
During this period, it is displayed that the dimming operation has been performed. Further, this signal is also sent to the camera side via the data output circuit (DOU). When the X contact (SX) is opened, a pulse is output from the terminal (r3), the mode discrimination circuit (FMS) is reset via the OR circuit (OR12), and the terminal (FLM) becomes "Low". .

予備照射モードにおいて、マイコン(MCO1)の(O
1)が“Highの状態で端子(O3)から蓄積を開始させ
るために“Highの信号が出力されると、ワンショット回
路(OS1)からパルスが出力されてこのパルスがアン
ド回路(AN1)から出力される。このパルスは端子
(JB1),(JF1)を介して第3図のアンド回路
(AN20)に入力される。このとき、Dフリップ・フロ
ップ(DF21)の出力は“Highになり、コンパレータ
(AC23)の出力が“Highになっていてオア回路(OR
20)の出力が“Highなので、アンド回路(AN20)に入
力されるパルスはアンド回路(AN20)から出力され
る。このパルスはトリガー回路(TR1)に送られてキ
セノン管(XE1)による予備照射が開始する。そして
アンド回路(AN20)からのパルスはフリップ・フロッ
プ(RF20)をセットするのでカウンタ(CO6)のリ
セット状態を解除してカウンタ(CO6)はカウントを
開始する。そして、カウントが開始されて一定時間が経
過するとデコーダ(DE6)の端子(f1)が“Highとなり
ワンショット回路(OS22)からパルスが出力される。
このパルスは発光停止回路(ST1)に送られてキセノ
ン管(XE1)による予備照射が停止される。また、デ
コーダ(DE6)の端子(f1)が“Highとなることでオア
回路(OR22)を介してフリップ・フロップ(RF20)
がリセットされ、カウンタ(CO6)はリセット状態と
なり、端子(f1)は“Low”となる。また、アンド回路
(AN20)の出力パルスはDフリップ・フロップ(DF
20)のクロックパルス入力端子に送られてコンパレータ
(AC23)の“Highの出力がラッチされて、Dフリップ
・フロップ(DF20)のQ出力が“Highになる。
In the preliminary irradiation mode, (O of the microcomputer (MCO1)
When the signal of “High” is output from the terminal (O3) in the state of 1) being “High”, a pulse is output from the one-shot circuit (OS1) and the pulse is output from the AND circuit (AN1). Is output. This pulse is input to the AND circuit (AN20) of FIG. 3 through terminals (JB1) and (JF1). At this time, the output of the D flip-flop (DF21) becomes "High", the output of the comparator (AC23) becomes "High", and the OR circuit (OR
Since the output of 20) is "High", the pulse input to the AND circuit (AN20) is output from the AND circuit (AN20) .This pulse is sent to the trigger circuit (TR1) and pre-irradiated by the xenon tube (XE1). Then, the pulse from the AND circuit (AN20) sets the flip-flop (RF20) so that the reset state of the counter (CO6) is released and the counter (CO6) starts counting. After a certain time elapses, the terminal (f1) of the decoder (DE6) becomes "High" and a pulse is output from the one-shot circuit (OS22).
This pulse is sent to the light emission stop circuit (ST1) to stop the preliminary irradiation by the xenon tube (XE1). Further, when the terminal (f1) of the decoder (DE6) becomes "High", the flip-flop (RF20) is passed through the OR circuit (OR22).
Are reset, the counter (CO6) is reset, and the terminal (f1) becomes "Low". The output pulse of the AND circuit (AN20) is a D flip-flop (DF
It is sent to the clock pulse input terminal of 20), the "High output" of the comparator (AC23) is latched, and the Q output of the D flip-flop (DF20) becomes "High".

二度目のパルスがアンド回路(AN20)から出力された
ときにメインコンデンサ(C2)の充電電圧が低下して
コンパレータ(AC23)の出力が“Low”になっていて
も、一回目の発光時点でDフリップ・フロップ(DF2
0)のQ出力が“Highになっているのでオア回路(OR2
0)の出力は“Highになっていて、アンド回路(AN2
0)からはパルスが出力される。そしてそのパルスによ
って前述と同様の発光動作が行なわれる。また、このパ
ルスによってDフリップ・フロップ(DF21)のQ出力
が“Highになる。するとワンショット回路(OS20)か
らパルスが出力され、このパルスの立ち下がりでワンシ
ョット回路(SO21)からパルスが出力されてDフリッ
プ・フロップ(DF20),(DF21)がリセットされて
初期状態に戻る。
Even when the charge voltage of the main capacitor (C2) is lowered and the output of the comparator (AC23) is "Low" when the second pulse is output from the AND circuit (AN20), at the time of the first light emission. D flip-flop (DF2
Because the Q output of 0) is "High", the OR circuit (OR2
The output of 0) is "High" and the AND circuit (AN2
A pulse is output from 0). Then, the pulse causes the same light emitting operation as described above. Also, the Q output of the D flip-flop (DF21) becomes “High” by this pulse. Then, the pulse is output from the one-shot circuit (OS20), and the pulse is output from the one-shot circuit (SO21) at the falling edge of this pulse. Then, the D flip-flops (DF20) and (DF21) are reset to return to the initial state.

第4図は第2図のマイコン(MCO2)の動作を示すフ
ローチャートである。以下このフローチャートに基づい
て第2図のシステムの動作を説明する。測光スイッチ
(S1)が閉成され端子(it)に割込信号が入力するとマ
イコン(MCO2)は動作を開始する。まず、フラグL
MFが“1”かどうかを判別する。このフラグLMFは
露出制御用データが算出されていれば“1”になってい
るが、測光スイッチ(S1)が閉成されて割込信号が入
力されたときはまだ算出は行なわれてないのでフラグL
MFは“0”であり、S2のステップに移行する。S2
のステップでは端子(O12)を“Highとしてトランジス
タ(BT1)を導通させ電源ライン(+V)を介して給
電を開始させる。次に直列入出力動作を複数回行なって
レンズ回路(LEC)から複数のデータを取込んで、自
動焦点調整に必要な変換係数(KD)を端子(OP10)
に、近赤外光と可視光との合焦位置の補正用データ(I
RD)を端子(OP11)に、バックラッシュデータ(B
LD)を端子(OP12)に出力し、自動焦点調整用のマ
イコン(MCO1)の入力端子(IP2),(IP
3),(IP4)に送る。そして、出力端子(O10)を
“Highにする。この信号はマイコン(MCO1)の割込
端子(it2)に入力していて、この信号が出力されるとマ
イコン(MCO1)は動作を開始する。
FIG. 4 is a flowchart showing the operation of the microcomputer (MCO2) shown in FIG. The operation of the system shown in FIG. 2 will be described below with reference to this flowchart. When the photometric switch (S1) is closed and an interrupt signal is input to the terminal (it), the microcomputer (MCO2) starts its operation. First, the flag L
It is determined whether MF is "1". This flag LMF is set to "1" if the exposure control data has been calculated, but it has not been calculated yet when the photometry switch (S1) is closed and an interrupt signal is input. Flag L
Since MF is "0", the process proceeds to step S2. S2
In the step of, the terminal (O12) is set to “High” to turn on the transistor (BT1) to start power supply through the power supply line (+ V). Data is captured and the conversion coefficient (KD) required for automatic focus adjustment is input to the terminal (OP10).
In addition, the correction data for the focus position of the near infrared light and the visible light (I
RD) to terminal (OP11), backlash data (B
LD) is output to the terminal (OP12), and the input terminals (IP2) and (IP of the microcomputer (MCO1) for automatic focus adjustment are output.
3), (IP4). Then, the output terminal (O10) is set to "High. This signal is input to the interrupt terminal (it2) of the microcomputer (MCO1), and when this signal is output, the microcomputer (MCO1) starts its operation.

ステップS6では設定データを出力するブロック(ED
O)からのデータを取り込み、次に、直列入出力動作を
行なってフラッシュからのデータを直列で取り込む。そ
して、予備照射が可能な信号が入力しているかどうかを
ステップS8で判別して、入力していれば端子(O16)
を“Highに、入力していなければ端子(O16)を“Lo
w”にしてステップS11に移行する。
In step S6, a block (ED
O), and then serial I / O operations to serially capture the data from the flash. Then, in step S8, it is determined whether or not a signal capable of preliminary irradiation is input, and if input, the terminal (O16)
To "High", and if not input, set the terminal (O16) to "Lo".
Set to w "and move to step S11.

ステップS11では端子(O18)を“Highにする。この信
号がマイコン(MCO1)の入力端子(i5)で読み取られ
ると、マイコン(MCO1)はマイコン(MCO2)で
A−D変換の動作が行なわれていることを判別し、キセ
ノン管を発光させての焦点検出動作への移行は行なわれ
なくなる。次にマイコン(MCO2)を入力端子(i15)
が“Highになっているかどうかを判別し、“Highになっ
ていればこの端子(i15)が“Low”になるのを持つ。この
入力端子(i15)にはマイコン(MCO1)の出力端子
(O8)が接続されていて、この端子は、キセノン管を
発光させて焦点検出動作を行なっている間は“Highにな
っている。そこでマイコン(MCO2)はこの入力端子
(i15)が“Highの間はA−D変換動作を行なわないよう
になっている。端子(i15)が“Low”のとき或いは“Lo
w”になったときは、次に、測光回路(LMC)からの
測光出力をA−D変換し、端子(O18)を“Low”とし
てA−D変換中であることを示す信号を出力しなくな
る。以上で露出演算に必要なデータはすべて取り込んだ
ことになる。
In step S11, the terminal (O18) is set to "High. When this signal is read by the input terminal (i5) of the microcomputer (MCO1), the microcomputer (MCO1) performs AD conversion operation by the microcomputer (MCO2). The focus detection operation by illuminating the xenon tube is stopped and the microcomputer (MCO2) is connected to the input terminal (i15).
Has "High", and if "High", this pin (i15) has "Low". The output terminal (O8) of the microcomputer (MCO1) is connected to the input terminal (i15), and this terminal is "High" while the xenon tube emits light to perform the focus detection operation. Therefore, the microcomputer (MCO2) uses this input terminal
While (i15) is "High", AD conversion operation is not performed. When the terminal (i15) is "Low" or "Lo"
When it becomes "w", the photometric output from the photometric circuit (LMC) is AD converted, and the terminal (O18) is set to "Low" to output a signal indicating that AD conversion is in progress. Now you have captured all the data required for the exposure calculation.

次に、ステップS15、S16で定常光用、フラッシュ光用
の露出演算を行なう。そして、フラグRLFが“1”か
どうかを判別する。RLEが“1”ならばレリーズスイ
ッチ(S2)による割込にもかかわらずこのステップに
移行してきたことになり、レリーズ用の後述するステッ
プS33に移行する。一方、フラグRLFが“0”なら
ば、測光スイッチ(S1)による割込でこのステップに
移行してきたことになり、ステップS18に移行して、フ
ラグLMFを“1”とし、割込を可能としてステップ20
に移行する。ステップS20では直列入出力動作を行なっ
て電子閃光装置(FLC)へデータを送る。ステップS
21では、電子閃光装置から給電信号を読み取ったかどう
かを判別し、給電信号を読み取っている場合にはフラッ
シュ光撮影用データ、読み取ってなければ定常光撮影デ
ータを表示部(EXD)に送ってステップS40に移行す
る。そしてステップS40では測光スイッチ(S1)が閉
成されたままで端子(i12)が“Highになっているかどう
かを判別して“HighになっていればステップS3に戻っ
て前述と同様の動作を繰り返す。一方、ステップS40で
端子(i12)が“Low”になっていることが判別されると端
子(O10)を“Low”として、自動焦点調整動作を停止
させ、フラグLMFを“0”にし、端子(O12)を“Lo
w”としてトランジスタを不導通として電源ライン(+
V)からの給電を停止させ、表示部(EXD)の表示を
消灯してマイコン(MCO2)は動作を停止する。
Next, in steps S15 and S16, exposure calculation for steady light and flash light is performed. Then, it is determined whether the flag RLF is "1". If RLE is "1", it means that the process has moved to this step despite the interruption by the release switch (S2), and the process moves to step S33 which will be described later for release. On the other hand, if the flag RLF is "0", it means that the process is moved to this step by the interruption by the photometric switch (S1), and the process is moved to step S18, and the flag LMF is set to "1" to enable the interruption. Step 20
Move to. In step S20, serial input / output operation is performed to send data to the electronic flash device (FLC). Step S
In step 21, it is determined whether or not the power supply signal is read from the electronic flash device, and if the power supply signal is read, the flash light data is sent to the display unit (EXD). Move to S40. Then, in step S40, it is determined whether or not the terminal (i12) is "High" while the photometric switch (S1) remains closed. If "High", the process returns to step S3 to repeat the same operation as described above. . On the other hand, when it is determined in step S40 that the terminal (i12) is "Low", the terminal (O10) is set to "Low" to stop the automatic focus adjustment operation, set the flag LMF to "0", and set the terminal to "0". (O12) to "Lo
w ”to make the transistor non-conductive and the power line (+
The power supply from V) is stopped, the display on the display unit (EXD) is turned off, and the microcomputer (MCO2) stops operating.

露出制御用データが算出された状態で割込信号が入力さ
れるとステップS31に移行して端子(O10),(O16)
を“Low”として、自動焦点調整動作を停止させる信号
を出力する。そしてレリーズスイッチ(S2)による割
込が行なわれたことを示すためにフラグRLFを“1”
としてステップS33に移行する。ステップS33では入力
端子(i11)が“Highかどうかを判別して“Highであれば
露出演算のためにステップS3に移行し、“Low”であ
れば露出制御のためにステップS34に移行する。この入
力端子(i11)はマイコン(MCO1)の出力端子(O
7)に接続されていて、この端子は以下のような信号を
出力する。まず、予備照射を用いない自動焦点調整動作
の際には、撮影レンズの移動が完全に停止するまでは
“Highの信号を出力し、完全に停止すると“Low”の信
号を出力する。従って、端子(i11)が“Highの間はマイ
コン(MCO2)が露出制御動作に移行しないので撮影
レンズが移動中に露出制御動作が実行されるといった誤
動作が防止できる。一方、予備照射を用いた自動焦点調
整動作を行なう際には、予備照射が行なわれた時点から
一定時間(例えば200msec)、たとえ、自動焦点調整動
作が停止していたり、マイコン(MCO2)から自動焦
点調整動作を停止させる信号が入力していても、“High
の信号が出力される。従って予備照射が行なわれた時点
から少なくとも一定時間は露出制御動作は行なわれず、
露出制御用の演算動作が繰り返されることになる。これ
は、測光回路(LMC)の出力のA−D変換と予備照射
とが誤って重なった時期に実行されて、誤ったA−D変
換データに基づく露出制御値で露出が制御されることを
防止することになる。さらに、予備照射されるフラッシ
ュ光が近赤外光であっても被写体の人物が眩しく感じ
て、まぶたを閉じることがある。しかし一定時間後であ
ればまぶたは開かれ、正常な表情の撮影が行なえるから
でもある。
When an interrupt signal is input while the exposure control data is calculated, the process proceeds to step S31 and terminals (O10), (O16)
Is set to “Low” and a signal to stop the automatic focus adjustment operation is output. Then, the flag RLF is set to "1" to indicate that the interrupt has been performed by the release switch (S2).
Then, the process proceeds to step S33. In step S33, it is determined whether the input terminal (i11) is "High". If "High", the process proceeds to step S3 for exposure calculation, and if "Low", the process proceeds to step S34 for exposure control. This input terminal (i11) is the output terminal (O of the microcomputer (MCO1)
7), this terminal outputs the following signals. First, during the automatic focus adjustment operation that does not use preliminary irradiation, a "High" signal is output until the movement of the taking lens is completely stopped, and a "Low" signal is output when it is completely stopped. While the terminal (i11) is "High", the microcomputer (MCO2) does not shift to the exposure control operation, so that it is possible to prevent an erroneous operation such that the exposure control operation is executed while the photographing lens is moving. On the other hand, when performing the automatic focus adjustment operation using the preliminary irradiation, even if the automatic focus adjustment operation is stopped for a fixed time (for example, 200 msec) from the time when the preliminary irradiation is performed, the automatic focus adjustment operation is automatically performed by the microcomputer (MCO2). Even if a signal to stop the focus adjustment operation is input, “High
Signal is output. Therefore, the exposure control operation is not performed for at least a fixed time from the time when the preliminary irradiation is performed,
The calculation operation for exposure control is repeated. This is executed when the A-D conversion of the output of the photometric circuit (LMC) and the preliminary irradiation are mistakenly overlapped, and the exposure is controlled by the exposure control value based on the incorrect A-D conversion data. Will be prevented. Further, even if the pre-illuminated flash light is near-infrared light, the person as the subject may feel dazzling and may close the eyelids. However, after a certain period of time, the eyelids will be opened and you will be able to shoot with a normal expression.

端子(i11)が“Low”になると、ステップS34に移行して
フラッシュから給電信号が入力しているかどうかを判別
し、入力していればフラッシュ光用の露出制御データを
制御部(EXC)に送り、給電信号が入力していなけれ
ば定常光用の露出制御データを制御部(EXC)に送
る。そして、露出制御動作を開始させる。そして、マイ
コン(MCO2)は露出制御動作が完了してリセットス
イッチ(S4)が開放され、端子(i10)が“Low”になる
のを待つ。そして、端子(i10)が“Low”になるとステッ
プS40で測光スイッチ(S1)が閉成されているかどう
かを判別し、閉成されていれば前述のステップS3に移
行してデータ取り込み、演算・表示動作を繰り返し、測
光スイッチ(S1)が閉成されてなければ前述のステッ
プS41に移行して前述と同様の動作を行なった後マイコ
ン(MCO2)は動作を停止する。
When the terminal (i11) becomes "Low", the process proceeds to step S34, it is determined whether the power supply signal is input from the flash, and if it is input, the exposure control data for the flash light is input to the control unit (EXC). If the power supply signal is not input, the exposure control data for stationary light is sent to the control unit (EXC). Then, the exposure control operation is started. Then, the microcomputer (MCO2) waits until the exposure control operation is completed, the reset switch (S4) is opened, and the terminal (i10) becomes "Low". Then, when the terminal (i10) becomes "Low", it is determined in step S40 whether or not the photometric switch (S1) is closed, and if it is closed, the process proceeds to step S3 described above to capture data, calculate The display operation is repeated, and if the photometric switch (S1) is not closed, the microcomputer (MCO2) stops the operation after proceeding to step S41 and performing the same operation as described above.

第5−1〜5−3図はマイコン(MCO1)による自動
焦点調整のための動作を示すフローチャートである。以
下第5−1〜第5−3図に基づいて第2図の回路の自動
焦点調整用の動作を説明する。マイコン(MCO2)の
端子(O10)が自動焦点調整動作を始めさせるために
“Highになると端子(it2)に割込信号が入力し、マイコ
ン(MCO1)の動作が開始する。まず♯1のステップ
では自動焦点調整動作が行なわれていることをマイコン
(MCO2)に伝達するため端子(O7)を“Highとす
る。そして、端子(it1)とカウンタによる割込を可能と
し、タイマーによる割込を不可能として端子(O3)を
“Highにして制御回路(COC)によって、CCD(F
MD)による電荷蓄積動作を開始させる。尚、以下の説
明において、カウンタやレジスタを示す符号がカッコに
かこまれていないものは、マイコン内のものである。
FIGS. 5-1 to 5-3 are flowcharts showing the operation for automatic focus adjustment by the microcomputer (MCO1). The operation of the circuit of FIG. 2 for automatic focus adjustment will be described below with reference to FIGS. 5-1 to 5-3. When the terminal (O10) of the microcomputer (MCO2) becomes "High" to start the automatic focus adjustment operation, an interrupt signal is input to the terminal (it2) and the operation of the microcomputer (MCO1) starts. First, the step # 1 Then, the terminal (O7) is set to "High" in order to notify the microcomputer (MCO2) that the automatic focus adjustment operation is being performed. Then, the interrupt by the terminal (it1) and the counter is enabled, the interrupt by the timer is disabled, the terminal (O3) is set to “High”, and the CCD (F
The charge accumulation operation by MD) is started. In the following description, the reference numerals indicating counters and registers that are not enclosed in parentheses are those in the microcomputer.

♯4のステップでは、マイコン(MCO1)内の、外部
又は内部のクロックをカウントするカウンタCORの内
容をレジスタECR1に設定する。これは後述するよう
に、撮影レンズを移動させながら焦点検出を行なうため
に、焦点検出中のレンズの移動量を算出するために必要
なデータであり、第1回目の測定時には必要がない。♯
5のステップではフラグFLFが“1”かどうかを判別
する。このフラグは、フラッシュによる予備照射が行な
われるときは“1”となり、定常光だけによる測定が行
なわれるときは“0”になっている。第1回目の測定の
際には必らず予備照射は行なわれずフラグFLFは
“0”になっていて、♯6のステップに移行する。
In step # 4, the contents of a counter COR for counting an external or internal clock in the microcomputer (MCO1) are set in the register ECR1. As will be described later, this is data necessary for calculating the amount of movement of the lens during focus detection in order to perform focus detection while moving the taking lens, and is not necessary at the time of the first measurement. #
In step 5, it is determined whether the flag FLF is "1". This flag is set to "1" when the preliminary irradiation by the flash is performed, and is set to "0" when the measurement using only the stationary light is performed. During the first measurement, the preliminary irradiation is not necessarily performed, the flag FLF is "0", and the process proceeds to step # 6.

♯6のステップではタイマー用レジスタTIR1に固定
値Kaを設定する。このレジスタTIR1はソフトで時
間をカウントするレジスタであり、この他に内部クロッ
クをソフトとは無関係にカウントするタイマー用カウン
タTICがあり、このカウンタTICの内容が“0”に
なるとタイマー割込がかかる。そしてレジスタECR4
にカウンタCORの内容を設定し、タイマー用レジスタ
TIR2に固定値K1を設定する。このレジスタTIR
2もTIR1と同様にソフトで時間をカウントするレジ
スタである。そしてタイマー用レジスタTIR2の内容
から“1”を減算し、このレジスタTIR2の内容が
“0”になっているかどうかを判別するという動作を繰
り返し一定時間待つ。一定時間が経過すると♯11のステ
ップで入力端子(i3)が“Low”になっているかどうかを
判別し、“Low”になっていれば前述のように、マイコ
ン(MCO2)から自動焦点調整動作を停止させる信号
が入力しているので♯209のステップから始まる自動焦
点調整動作を停止させる動作を行なう。一方、端子(i3)
が“Highなら、♯12のステップでフラグFPFが“1”
かどうかを判別する。このフラグFPFは第1回目の測
定のようにモーター(MO)が停止しているときには
“1”になっている。従って、フラグFPFが“1”で
モーター(MO)が停止していれば♯12のステップから
♯15のステップに移行し、♯6のステップで固定値Ka
が設定されたレジスタTIR1から“1”を減算して、
TIR1の内容が“0”になったかどうかを判別し
“0”でなければ♯7のステップに戻り同様の動作を繰
り返す。そしてこの動作が繰り返されている間に第2図
のコンパレータ(AC1)の出力が“Highに反転する
と、制御回路(COC)の端子(φT)から転送パルス
が出力され、このパルスは割込端子(it1)に入力してマ
イコン(MCO1)は♯24のステップからの動作を開始
する。また、♯16のステップでレジスタTIR1の内容
が“0”になったことが判別されると♯21のステップで
端子(O2)にパルスを出力して前述のように強制的に
蓄積動作を停止させ、フラグTOFを“1”にして、動
作を終了し、端子(it1)への割込信号を待つ。ここで♯
3のステップで蓄積動作を開始させてから、♯16のステ
ップでレジスタTIR1の内容が“0”であることが判
別されるまでの時間は一定時間になっていて、蓄積時間
はこれ以上は長くならないようになっている。
In step # 6, a fixed value Ka is set in the timer register TIR1. The register TIR1 is a register for counting time by software, and there is a timer counter TIC that counts the internal clock independently of software, and when the content of this counter TIC becomes "0", a timer interrupt is taken. . And register ECR4
The contents of the counter COR are set in and the fixed value K1 is set in the timer register TIR2. This register TIR
Similarly to TIR1, 2 is a register for counting time by software. Then, the operation of subtracting "1" from the content of the timer register TIR2 and determining whether the content of the register TIR2 is "0" is repeated and waits for a fixed time. After a certain period of time, in step # 11, it is determined whether or not the input terminal (i3) is "Low", and if it is "Low", the automatic focus adjustment operation is performed from the microcomputer (MCO2) as described above. Since a signal for stopping the operation is input, the operation for stopping the automatic focus adjustment operation starting from step # 209 is performed. On the other hand, terminal (i3)
Is "High", the flag FPF is set to "1" in step # 12.
Determine whether or not. This flag FPF is "1" when the motor (MO) is stopped as in the first measurement. Therefore, if the flag FPF is "1" and the motor (MO) is stopped, the process proceeds from step # 12 to step # 15, and at step # 6, the fixed value Ka is set.
Subtract "1" from the register TIR1 in which
It is determined whether or not the content of TIR1 has become "0". If not "0", the process returns to step # 7 and the same operation is repeated. When the output of the comparator (AC1) in FIG. 2 is inverted to "High" while this operation is repeated, a transfer pulse is output from the terminal (φT) of the control circuit (COC), and this pulse is an interrupt terminal. When input to (it1), the microcomputer (MCO1) starts operation from step # 24, and when it is determined in step # 16 that the content of the register TIR1 has become "0", # 21. At the step, a pulse is output to the terminal (O2) to forcibly stop the accumulation operation as described above, the flag TOF is set to "1", the operation is terminated, and an interrupt signal to the terminal (it1) is waited for. Here #
The time from when the accumulation operation is started in step 3 to when it is determined in step # 16 that the content of the register TIR1 is "0" is a fixed time, and the accumulation time is longer than this. It doesn't happen.

モーター(MO)が駆動されているときにはフラグFP
Fは“0”になっていて♯12のステップから♯13のステ
ップに移行する。この♯13のステップではカウンタCO
Rの内容をレジスタECR5に設定する。そして♯14の
ステップでは♯7のステップでカウンタCORの内容を
設定したレジスタECR4の内容とこのレジスタECR
5の内容とを比較する。♯7と♯13のステップの間には
一定時間が経過していて、この間にレンズが移動してな
ければエンコーダ(ENC)からはクロックパルスが入
力してなく(ECR4)=(ECR5)になっている。
従って、モーター(MO)は駆動されていてもレンズは
終端位置(無限遠位置又は最近接位置)に達していてレ
ンズは移動しなくなっていることになる。この場合に
は、フラグLSF(通常の合焦動作中は“0”、被写体
像のコントラストが低いことを示すローコントラスト信
号が出力されて、ローコントラストでないレンジ位置を
走査しているときは“1”となっている)の内容を判別
して“1”ならローコントラストでの走査中であり♯15
8のステップに移行し、“0”なら通常合焦動作中であ
り♯63のステップに移行する。
Flag FP when the motor (MO) is driven
Since F is "0", the process proceeds from step # 12 to step # 13. In step # 13, the counter CO
The contents of R are set in the register ECR5. Then, in step # 14, the contents of the register ECR4 which set the contents of the counter COR in step # 7 and this register ECR are set.
Compare with the contents of 5. A certain time has passed between the steps of # 7 and # 13, and if the lens does not move during this time, no clock pulse is input from the encoder (ENC) and (ECR4) = (ECR5). ing.
Therefore, even if the motor (MO) is driven, the lens has reached the end position (infinity position or closest position) and the lens has stopped moving. In this case, the flag LSF ("0" during normal focusing operation, a low contrast signal indicating that the contrast of the subject image is low is output, and "1" when scanning a range position other than low contrast. If the value is "1", the scan is being performed at low contrast. # 15
If it is "0", the normal focusing operation is being performed, and the process proceeds to step # 63.

♯5のステップでフラグFLFが“1”であればフラッ
シュ光を予備照射するモードであり、このときは♯17の
ステップに移行する。このときはレジスタTIR1に固
定値Kfを設定してレジスタTIR1から“1”を減算
し、端子(i3)が“Low”かどうかを判別して、“Highで
あればTIR1の内容が“0”かどうかを判別する。そ
して“0”でなければ♯18のステップに戻る動作を繰り
返し、♯20のステップでTIR1の内容が“0”になる
と♯21のステップに移行して前述の動作を行なう。この
予備照射モードの際には定常光モードの場合に比較して
蓄積時間の制限が非常に短かくなっている。これは、以
下の理由でこのように構成されている。予備照射光には
被写体である人間がまぶしく感じないように近赤外領域
の光を用いている。一方、予備照射を行なわない場合は
定常光で測定されるが、定常光は一般に白色光である。
従って、両方の光を混合して測定した場合、混合比が判
らないとデフォーカス量に対する色収差の影響を補正す
ることができなくなる。そこで予備照射モードの際に
は、定常光成分ができるだけ測定されないようにするた
め、最長蓄積時間をキセノン管(EX1)の発光時間と
ほぼ等しくなるようにして、正確な色収差の補正が行な
えるようになっている。また、予備照射モードの際には
測定中はモーター(MO)は駆動されないのでレンズが
終端に達したかどうかの終端検知動作は行なわれない。
If the flag FLF is "1" in the step # 5, the flash light is pre-illuminated, and at this time, the process proceeds to the step # 17. At this time, a fixed value Kf is set in the register TIR1 and "1" is subtracted from the register TIR1 to determine whether the terminal (i3) is "Low". If "High", the content of TIR1 is "0". If it is not "0", the operation of returning to step # 18 is repeated, and if the content of TIR1 becomes "0" in step # 20, the operation proceeds to step # 21 and the above-mentioned operation is performed. In this pre-irradiation mode, the limit of the storage time is much shorter than in the case of the stationary light mode.This is configured in this way for the following reasons. Uses light in the near-infrared region so that the human being, who is the subject, does not feel dazzling.On the other hand, when pre-irradiation is not performed, it is measured with ambient light, but ambient light is generally white light.
Therefore, when both lights are mixed and measured, the effect of chromatic aberration on the defocus amount cannot be corrected unless the mixing ratio is known. Therefore, in the pre-irradiation mode, in order to prevent the stationary light component from being measured as much as possible, the longest accumulation time is set to be almost equal to the light emission time of the xenon tube (EX1) so that accurate chromatic aberration can be corrected. It has become. Further, in the pre-irradiation mode, the motor (MO) is not driven during the measurement, so that the end detection operation of whether the lens has reached the end is not performed.

制御回路(COC)の端子(φT)から転送パルスが出
力されて端子(it1)に割込信号が入力されると♯24のス
テップからの動作を開始する。♯24のステップではマイ
コン(MCO2)でのA−D変換を可能とするために端
子(O8)を“Low”とする。そして端子(it1)への割込
を可能とし端子(O3)を“Low”にしてカウンタCO
Rの内容をレジスタECR2に取り込む。これは測定中
にレンズを移動させるときのレンズの移動による誤差の
補正用データである。次に、制御回路(COC)から出
力される各受光部の受光量をA−D変換したデータを順
次取り込み、すべての受光部に対応してA−D変換デー
タを取り込むと♯29のステップに移行する。♯29のステ
ップではフラグFLFが“1”かどうかを判別し、
“1”ならタイマー(機能については後述する)による
割込を可能として♯32のステップに移行する。“1”で
なければ、フラグTOFが“1”かどうかを判別する。
フラグTOFは、蓄積時間が、制限された時間までかか
ったときに♯22のステップで“1”となる。従って、F
LFが“0”でTOFが“1”のときは定常光モードで
低輝度であることになりステップ♯31でフラグLLFを
“1”にし、それ以外ではステップ♯32でフラグLLF
を“0”にし、♯33ではフラグTOFを“0”にする。
♯34では受光部(FMD)からの出力に基づいて2列の
受光部間の相関度を求め、この相関度からデフォーカス
量とデフォーカス方向を算出する。この演算は例えば米
国特許第4,333,007号に提案されているようになされ
る。この算出されたデフォーカス量が|LD|であり、
デフォーカスの方向は、LD>0のときは前ピン、LD
<0のときは後ピンとなっている。
When a transfer pulse is output from the terminal (φT) of the control circuit (COC) and an interrupt signal is input to the terminal (it1), the operation from step # 24 is started. In step # 24, the terminal (O8) is set to "Low" so that the microcomputer (MCO2) can perform AD conversion. Then, it is possible to interrupt the terminal (it1) and set the terminal (O3) to "Low" to make the counter CO
The contents of R are taken into the register ECR2. This is data for correcting an error due to the movement of the lens when the lens is moved during measurement. Next, the A / D converted data of the amount of light received by each light receiving unit output from the control circuit (COC) is sequentially fetched, and the A / D converted data corresponding to all the light receiving units is fetched. Transition. In step # 29, it is determined whether the flag FLF is "1",
If it is "1", an interrupt by a timer (a function will be described later) is enabled and the process proceeds to step # 32. If it is not "1", it is determined whether the flag TOF is "1".
The flag TOF becomes "1" in step # 22 when the storage time has reached the limited time. Therefore, F
When the LF is “0” and the TOF is “1”, it means that the ambient light mode has a low brightness, so that the flag LLF is set to “1” in step # 31, and otherwise the flag LLF is set in step # 32.
Is set to "0", and the flag TOF is set to "0" in # 33.
In # 34, the degree of correlation between the two rows of light receiving portions is obtained based on the output from the light receiving portion (FMD), and the defocus amount and the defocus direction are calculated from this correlation degree. This operation is performed, for example, as proposed in US Pat. No. 4,333,007. The calculated defocus amount is | LD |
When LD> 0, the direction of defocus is the front pin, LD
When <0, it is the rear pin.

♯35のステップではフラグFLFが“1かどうかを判別
して、FLFが“0”で定常光(可視光)で測定を行な
ったときは算出されたデータLDをそのまま正しい値L
Dtとし、FLFが“1”なら予備照射のモードであり
このときは、近赤外光での測定が行なわれているので、
可視光での合焦位置と近赤外光での合焦位置との差即ち
IRDだけ補正するために、LD−IRDの演算を行な
いこの算出値を正しいデフォーカス量LDtとする。デ
ータIRDはレンズから送られてくるデータをそのまま
用いるようにしているが、例えばレンズには特定波長用
の補正用データを記憶しておき、予備照射用光源の波長
のデータを得て、この波長に対応したデータに補正用デ
ータを変換してこの変換された補正用データでデフォー
カス量を補正するようにしてもよい。
In step # 35, it is determined whether or not the flag FLF is "1", and when the FLF is "0" and the measurement is performed with the stationary light (visible light), the calculated data LD is directly changed to the correct value L.
If Dt and FLF is “1”, it is a pre-irradiation mode. At this time, since measurement with near infrared light is performed,
In order to correct only the difference between the in-focus position with visible light and the in-focus position with near-infrared light, that is, IRD, LD-IRD is calculated, and this calculated value is set as the correct defocus amount LDt. Although the data sent from the lens is used as it is as the data IRD, for example, the lens stores correction data for a specific wavelength, data of the wavelength of the preliminary irradiation light source is obtained, and this wavelength is used. The correction data may be converted into data corresponding to, and the defocus amount may be corrected by the converted correction data.

♯38では端子(i3)が“Low”かどうかを判別し、“Low”
であれば前述と同様に♯209のステップに移行する。一
方、端子(i3)が“Highであれば次に、測定データがロー
コントラストになっているかどうかを判別する。このロ
ーコントラストの判別は受光素子列の各受光部で、隣り
合った受光部間の出力の差の絶対値の総和を求め、この
総和が所定値以下のときはローコントラストと判別すれ
ばよい。なお、ローコントラストの際には2列の受光素
子列の光分布の状態を比較することでデフォーカス量を
算出しているので、算出されたデフォーカス量に信頼性
が乏しい。そこでローコントラストが判別されると♯11
0のステップに移行してローコントラスト用の動作を行
なう。♯39のステップでローコントラストでないことが
判別されると♯40のステップでフラグLCF1が“1”
かどうかを判別する。そして、フラグLCF1が“1”
なら前回の測定値はローコントラストでありこのときは
♯41のステップでフラグFLFが“1”かどうかを判別
する。そして、フラグFLFが“1”なら今回の測定で
フラッシュによる予備照射を行なっているので♯170の
ステップからの動作を行なう。一方、フラグFLFが
“0”であれば前回の測定はローコントラストで今回の
測定では予備照射を行なわなくてもコントラストが充分
になった場合である。このときは、フラグLCF1,L
CF2,SEF1,SEF2,LSFを“0”とし、フ
ラグTIFが“1”かどうかを判別して“1”でなけれ
ば♯50からの動作を行なう。この場合は、測定値がロー
コントラストで、ローコントラストでない測定値が得ら
れるまでレンズを移動させながら測定を行なっている途
中で(以下ローコンスキャンモードと呼ぶ)ローコント
ラストでない測定値が得られた場合であり、このとき
は、♯50のステップからのデフォーカス量に基づいてレ
ンズを移動させる動作に移行する。また、♯43のステッ
プでフラグTIFが“1”であれば、ローコンスキャン
モードでレンズが全領域を走査され、この間にローコン
トラストでない測定値が得られず一定時間レンズを停止
したままで測定を繰り返している場合(以下ローコン停
止モードと呼ぶ)である。この場合には、カウンタCO
Rはマイコン(MCO1)の内部クロックをカウントす
るモード(タイマーモード)になっているのでイベント
カウントモード(エンコーダ(ENC)からのクロック
パルスをカウントするモード)にして、フラグFPFを
“1”、TIFを“0”として♯50のステップに移行し
て♯50からのステップに移行し第1回目の測定値がロー
コントラストでない場合と同様の動作を行なう。
In # 38, it is determined whether the terminal (i3) is "Low" and "Low"
If so, the process proceeds to step # 209 as described above. On the other hand, if the terminal (i3) is "High", then it is determined whether or not the measured data has low contrast. This low contrast is determined by each light receiving unit of the light receiving element array between adjacent light receiving units. The total of the absolute values of the output differences is calculated, and when the total is less than or equal to a predetermined value, it may be determined that the contrast is low .. In the case of low contrast, the light distribution states of the two light receiving element rows are compared. Since the defocus amount is calculated by doing so, the calculated defocus amount is unreliable.
The operation shifts to step 0 and the operation for low contrast is performed. If it is determined in step # 39 that the contrast is not low, the flag LCF1 is set to "1" in step # 40.
Determine whether or not. Then, the flag LCF1 is "1".
If so, the previous measured value is low contrast, and in this case, it is determined in step # 41 whether the flag FLF is "1". If the flag FLF is "1", the preliminary irradiation by the flash is performed in this measurement, so the operation from step # 170 is performed. On the other hand, if the flag FLF is "0", the previous measurement was low contrast, and the contrast was sufficient in this measurement without performing preliminary irradiation. At this time, the flags LCF1, L
CF2, SEF1, SEF2, and LSF are set to "0", it is determined whether the flag TIF is "1", and if not "1", the operation from # 50 is performed. In this case, the measured value was low contrast, and the measured value was not low contrast during the measurement while moving the lens until the measured value was not low contrast (hereinafter referred to as low contrast scan mode). This is the case, and at this time, the operation moves to move the lens based on the defocus amount from step # 50. If the flag TIF is "1" in step # 43, the lens is scanned in the low-contrast scan mode over the entire area, and a measurement value other than low contrast is not obtained during the measurement, and the lens is stopped for a certain period of time. Is repeated (hereinafter referred to as the low-con stopped mode). In this case, the counter CO
Since R is in a mode (timer mode) for counting the internal clock of the microcomputer (MCO1), the event count mode (mode for counting clock pulses from the encoder (ENC)) is set and the flag FPF is set to "1", TIF. Is set to "0" and the process proceeds to step # 50 and then to the step from # 50 to perform the same operation as when the first measurement value is not low contrast.

♯40のステップでフラグLCF1が“0”のとき、或い
は前述の♯43のステップでフラグTIFが“0”のとき
或いは♯46のステップからは♯50のステップに移行す
る。♯50のステップではデフォーカス量LDtに変換係
数KDをかけてレンズの移動量NDを算出する。次に、
LIDは合焦とみなし得る範囲のデータであり、これに
変換係数KDをかけて合焦領域のレンズの移動量IFD
を算出する。♯52のステップではフラグFPFが“1”
かどうかを判別して“1”であれば♯75、“0”であれ
ば♯53のステップに移行する。従って、モーター(M
O)が駆動されていれば♯53のステップに、モーター
(MO)が駆動されてなければ♯75のステップに移行す
る。
When the flag LCF1 is "0" in the step of # 40, or when the flag TIF is "0" in the step of # 43, or when the step of # 46 is followed by the step of # 50. In step # 50, the defocus amount LDt is multiplied by the conversion coefficient KD to calculate the lens movement amount ND. next,
LID is data in a range that can be regarded as in-focus, and is multiplied by a conversion coefficient KD to move the lens movement amount IFD in the in-focus region.
To calculate. In the step of # 52, the flag FPF is "1".
If it is "1", the process proceeds to step # 75, and if "0", the process proceeds to step # 53. Therefore, the motor (M
If O) is driven, the process proceeds to step # 53, and if the motor (MO) is not driven, the process proceeds to step # 75.

♯53のステップでは受光部(FMD)の電荷蓄積開始時
のカウンタCORの内容を取り込んだレジスタECR1
と、蓄積終了時のカウンタCORの内容を取り込んだレ
ジスタECR2との内容出力の差τを求めて電荷蓄積中
のレンズの移動量τを算出する。そしてこの時点でのカ
ウンタCORの内容をレジスタECR3に設定してレジ
スタECR2とECR3との内容の差tを求めデフォー
カス量算出中のレンズの移動量tを算出する。そして算
出されたデフォーカス量は蓄積時間中のレンズの移動の
中間での測定値に基づく値であるとみなして結局算出さ
れたレンズ移動量NDは測定された時点からτ/2+tだけ
レンズが移動していることになり、♯56のステップでは
|ND|−(τ/2+t)=NDcの演算を行ない移動量の
補正を行なう。♯57のステップではこの補正された移動
量のデータ|NDc|と合焦領域のデータIFDとを比
較して|NDc|IFDであれば合焦領域にはいった
ことになり♯58のステップに移行して端子(O4),
(O5)を“Low”としてモーター(MO)を停止さ
せ、フラグIFF,FPFを“1”にして♯2のステッ
プに戻り、確認のための焦点検出を行なわせる。
In the step of # 53, the register ECR1 which takes in the contents of the counter COR at the start of charge accumulation in the light receiving unit (FMD)
Then, the amount τ of movement of the lens during charge accumulation is calculated by obtaining the difference τ in content output from the register ECR2 that has taken in the content of the counter COR at the end of accumulation. Then, the contents of the counter COR at this point are set in the register ECR3, the difference t between the contents of the registers ECR2 and ECR3 is obtained, and the movement amount t of the lens during the defocus amount calculation is calculated. The calculated defocus amount is regarded as a value based on the measurement value in the middle of the movement of the lens during the accumulation time, and the calculated lens movement amount ND is τ / 2 + t from the measurement point. Is moving, and in step # 56, | ND | − (τ / 2 + t) = NDc is calculated to correct the moving amount. In step # 57, the corrected movement amount data | NDc | and in-focus area data IFD are compared, and if | NDc | IFD, it means that the focus area has been entered and the process proceeds to step # 58. Then terminal (O4),
(O5) is set to "Low" to stop the motor (MO), flags IFF and FPF are set to "1", and the process returns to step # 2 to perform focus detection for confirmation.

♯57のステップで|NDc|>IFDであることが判別
されると♯61のステップに移行しカウンタCORの内容
をレジスタECR3に設定し、その内容と、♯27のステ
ップの時点でカウンタCORの内容が設定されたレジス
タECR2の内容とが比較される。そして(ECR2)
=(ECR3)であることが判別されるとレンズは終端
に達していることになり♯63のステップで端子(O
4),(O5)を“Low”としてモーター(MO)の回
転を停止させフラグENF,FPFを“1”にして♯2
のステップに戻り、再度測定を行なう。
When it is determined in step # 57 that | NDc |> IFD, the process proceeds to step # 61 to set the contents of the counter COR in the register ECR3, and the contents of the counter COR and the counter COR at the time of step # 27. The contents of the register ECR2 in which the contents are set are compared. And (ECR2)
If it is determined that = (ECR3), the lens has reached the end, and the terminal (O
4) and (O5) are set to "Low" to stop the rotation of the motor (MO) and flags ENF and FPF are set to "1".
Return to step and repeat the measurement.

♯62のステップで(ECR2)≠(ECR3)であるこ
とが判別されると♯66のステップで補正データNDcが
負の値になっているかどうかを判別する。そして負の値
になっていれば算出された移動量|ND|よりも補正量
(τ/2+t)の方が大きいことになり、これはレンズが合
焦位置を通過したことになる。従って、この場合には♯
71のステップに移行し端子(O4),(O5)を“Lo
w”としてモーター(MO)の回転を停止させてフラグ
SCF,FPFを“1”として♯2のステップに戻り確
認のための焦点検出を行なわせる。
When it is determined in step # 62 that (ECR2) ≠ (ECR3), it is determined in step # 66 whether the correction data NDc has a negative value. If the value is negative, the correction amount (τ / 2 + t) is larger than the calculated movement amount | ND |, which means that the lens has passed the in-focus position. Therefore, in this case
Go to step 71 and set terminals (O4) and (O5) to “Lo
As w ", the rotation of the motor (MO) is stopped and the flags SCF and FPF are set to" 1 "to return to step # 2 and focus detection for confirmation is performed.

♯66のステップでNDc>0であることが判別されると
次に♯67のステップでレンズの駆動方向が繰り込み方向
(ND>0)かどうかを判別する。そしてND>0であ
れば♯68、ND<0(繰り出し方向)であれば♯69のス
テップでフラグSIFが“1”であるかどうかを判別す
る。このフラグSIFはこの時点でのレンズの移動方向
が繰り込み方向ならば“1”に、繰り出し方向ならば
“0”になっている。従って、♯68のステップでフラグ
SIFが“0”または、♯69のステップでフラグSIF
が“1”のときにはこの時点でのレンズの移動方向と算
出されたレンズの移動方向が逆転していることになり前
述の♯71のステップに移行してモーター(MO)を停止
させ、フラグSCF,FPFを“1”にして♯2のステ
ップに戻り確認のための焦点検出を行なう。一方、方向
が逆転してなければカウンタCORに♯56のステップで
算出されたデータNDcを設定して♯2のステップに戻
り、次の測定を行なう。
If it is determined in step # 66 that NDc> 0, then it is determined in step # 67 whether the lens driving direction is the retraction direction (ND> 0). Then, if ND> 0, it is determined whether the flag SIF is "1" in step # 68, and if ND <0 (feeding direction), in step # 69. This flag SIF is "1" if the moving direction of the lens at this point is the retracting direction, and "0" if it is the retracting direction. Therefore, the flag SIF is "0" in the step of # 68, or the flag SIF is in the step of # 69.
Is "1", it means that the moving direction of the lens at this time and the calculated moving direction of the lens are reversed, and the process proceeds to step # 71 described above to stop the motor (MO) and set the flag SCF. , FPF is set to "1" and the process returns to step # 2 to perform focus detection for confirmation. On the other hand, if the direction is not reversed, the data NDc calculated in the step # 56 is set in the counter COR, the process returns to the step # 2, and the next measurement is performed.

♯52のステップでフラグFPFが“1”のときにはモー
ター(MO)が停止されて予備照射なしに焦点検出が行
なわれた場合である。このときはまず|ND|IFD
となっているかどうかを判別して|ND|IFDとな
っていれば、♯76のステップで合焦表示を行ない、後述
する♯211のステップに移行して動作を停止する。一
方、|ND|>IFDであれば第5−2図の♯80のステ
ップに移行する。♯80〜♯82のステップではフラグIF
F、SCF、ENFが“1”になっているかどうかを判
別する。これらのフラグは前述のように移動しているレ
ンズを一旦停止させて確認のための焦点検出を行なった
ときは“1”になっていて、いづれかのフラグが“1”
になっていれば♯84のステップに移行する。♯84〜♯86
のステップでは前述の♯67〜♯69のステップと同様にそ
れまでにレンズが駆動されていた方向と、今回の焦点検
出によって得られた方向とが一致しているかどうかを判
別して、反転していれば♯87,♯88のステップでフラグ
SIFを反転させ、♯91のステップで移動量|ND|の
データにバックラッシュデータ(BLD)を加算した値
をカウンタCORに設定して♯96のステップに移行す
る。一方、方向が一致しているときは♯89のステップで
フラグENFが“1”かどうかを判別する。そしてフラ
グENFが“1”になっていれば、前述のようにレンズ
は終端に達している場合であり、このときは算出された
方向にはレンズを駆動することができないので警告表示
を行なって後述する♯211のステップに移行して動作を
停止する。一方、フラグENFが“0”なら♯95のステ
ップで移動量データ|ND|をカウンタCORに設定し
て♯96のステップで移行する。
When the flag FPF is "1" in step # 52, the motor (MO) is stopped and focus detection is performed without preliminary irradiation. In this case, first | ND | IFD
If | ND | IFD is determined, the in-focus display is performed in step # 76, and the operation is stopped by shifting to step # 211 described later. On the other hand, if | ND |> IFD, the process proceeds to step # 80 in FIG. 5-2. In steps # 80 to # 82, the flag IF
It is determined whether F, SCF and ENF are "1". These flags are "1" when the moving lens is once stopped and focus detection for confirmation is performed as described above, and any one of the flags is "1".
If so, move to step # 84. # 84 to # 86
In the step of, the same as the steps of # 67 to # 69 described above, it is determined whether or not the direction in which the lens has been driven by that time and the direction obtained by the focus detection this time are coincident with each other and inverted. If so, the flag SIF is inverted in steps # 87 and # 88, and the value obtained by adding the backlash data (BLD) to the data of the movement amount | ND | is set in the counter COR in step # 91. Go to step. On the other hand, if the directions are the same, it is determined in step # 89 whether the flag ENF is "1". If the flag ENF is "1", it means that the lens has reached the end as described above. At this time, since the lens cannot be driven in the calculated direction, a warning is displayed. The operation is stopped by shifting to step # 211 described later. On the other hand, if the flag ENF is "0", the movement amount data | ND | is set in the counter COR in the step # 95 and the process shifts in the step # 96.

フラグENF,SCF,IFFがすべて“0”のときは
最初の焦点検出動作の場合であり♯92のステップで移動
方向を判別し、ND>0ならフラグSIFを“1”、N
D<0ならSIFを“0”にし、♯95のステップで、移
動量データ|ND|をカウンタCORに設定して♯96の
ステップに移行する。
When the flags ENF, SCF and IFF are all "0", it is the case of the first focus detection operation, and the moving direction is determined in step # 92. If ND> 0, the flag SIF is set to "1", N.
If D <0, SIF is set to "0", the movement amount data | ND | is set in the counter COR in step # 95, and the process proceeds to step # 96.

♯96のステップではイベントカウントモードにしてエン
コーダ(ENC)から入力してくるクロックパルスでカ
ウンタCORに設定されたデータを減算していくモード
とし、次に、移動方向に応じて端子(O4)又は(O
5)を“Highとしてモーター(MO)の回転を開始さ
せ、フラグFPF,IFF,SCF,ENFに“0”を
設定し、フラグSIFの内容に応じて前ピン又は後ピン
表示を行なわせて♯2のステップに戻り、次の焦点検出
動作を行なわせる。
In step # 96, the event count mode is set and the data set in the counter COR is subtracted by the clock pulse input from the encoder (ENC). Then, depending on the moving direction, the terminal (O4) or (O
5) is set to "High" to start the rotation of the motor (MO), set the flags FPF, IFF, SCF and ENF to "0", and display the front pin or the rear pin according to the contents of the flag SIF. Returning to step 2, the next focus detection operation is performed.

♯39のステップで測定結果がローコントラストであるこ
とが判別されると♯110のステップに移行する。♯110の
ステップではフラグFPFが“1”かどうかを判別し
“1”であれば第1回目の測定であり、♯111のステッ
プに移行する。♯111のステップではフラグLLFが
“1”かどうかを判別する。このフラグLLFが♯29〜
♯33のステップで説明したように、被写体輝度が低いと
きに“1”となっているフラグであり、このフラグLL
Fが“1”なら♯112、“0”なら♯121のステップに移
行する。
If it is determined in step # 39 that the measurement result has low contrast, the process proceeds to step # 110. In step # 110, it is determined whether the flag FPF is "1". If it is "1", it means the first measurement, and the process proceeds to step # 111. In step # 111, it is determined whether the flag LLF is "1". This flag LLF is # 29-
As described in step # 33, this flag is "1" when the subject brightness is low.
If F is "1", the process proceeds to # 112, and if F is "0", the process proceeds to # 121.

♯112のステップでは端子(i2)が“Highになっているか
どうかを判別する。そして端子(i2)が“Low”であれば
♯113のステップでフラグSEF2が“1”かどうか判
別する。このフラグSEF2は後述するが、ローコンス
キャンモードでレンズが全領域を走査されたときに
“1”となるフラグである。従って、“1”になってい
れば♯144のステップに移行して後述するローコン停止
モードに移行する。一方、フラグSEF2が“0”にな
っていれば♯121からのローコンスキャンモードに移行
する。
In step # 112, it is determined whether the terminal (i2) is "High". If the terminal (i2) is "Low", it is determined in step # 113 whether the flag SEF2 is "1". As will be described later, the flag SEF2 is a flag that becomes “1” when the lens scans the entire area in the low contrast scan mode, so that if it is “1”, the process proceeds to step # 144 to be described later. If the flag SEF2 is "0", the low contrast scan mode from # 121 is entered.

♯112のステップで端子(i2)が“Highであることが判別
されると、このときは予備照射用の発光が可能であるこ
とになり、♯114からの予備照射モードの動作に移行す
る。♯114のステップではフラグFLF,FFF,LC
F1を“1”とし、FPFを“0”とする。フラグFL
Fは予備照射モードであることを示すためのフラグ、F
FFは予備照射モードで第1回目の測定が行なわれると
き“1”となるフラグ、LCF1はローコントラストで
あることが判別されるとただちに“1”とされるフラグ
である。♯115のステップでは端子(O1)を“Highと
して予備照射モードでの焦点検出動作が行なわれる状態
とし、(O8)を“Highとして予備照射モードでの動作
が行なわれることで、マイコン(MCO2)によるA−
D変換動作を禁止するよう指令する信号を送る。そし
て、マイコン(MCO2)からA−D変換中であること
を示す信号が端子(i5)に入力しているかどうかを判別し
て、端子(i5)が“HighでA−D変換中であればA−D変
換が終了して(i5)が“Low”になるのを待って予備照射
を行なう焦点検出動作に移行する。
If it is determined in step # 112 that the terminal (i2) is "High", it is possible to emit light for pre-irradiation at this time, and the operation proceeds to pre-irradiation mode operation from # 114. In step # 114, flags FLF, FFF, LC
F1 is set to "1" and FPF is set to "0". Flag FL
F is a flag for indicating the preliminary irradiation mode, F
FF is a flag that becomes "1" when the first measurement is performed in the preliminary irradiation mode, and LCF1 is a flag that becomes "1" immediately when it is determined that the contrast is low. In the step of # 115, the terminal (O1) is set to "High" so that the focus detection operation is performed in the preliminary irradiation mode, and (O8) is set to "High" to perform the operation in the preliminary irradiation mode. By A-
Send a signal to instruct the D conversion operation to be prohibited. Then, it is determined whether or not the signal indicating that the A-D conversion is being performed is input from the microcomputer (MCO2) to the terminal (i5), and if the terminal (i5) is "High and the A-D conversion is being performed". After the A-D conversion is completed and (i5) becomes "Low", the focus detection operation of pre-irradiation is performed.

♯117のステップでは、予備照射を行なって一定時間
(例えば200msec)をカウントするためのタイマー用カ
ウンタTICに一定値T0を設定する。このカウンタT
ICはマイコン(MCO1)内部のクロックパルスに基
づいてダウンカウントを行ない、内部が“0”になると
タイマー割込が可能であればタイマー割込がかかり、後
述する♯260のステップの動作を行なって元のフローに
戻る。♯118ではフラグRSFを“1”にする。このフ
ラグRSFは予備照射を行なってから一定時間が経過す
るまでの間は“1”となり、一定時間が経過してタイマ
ー割込があると♯260のステップで“0”とされる。そ
して、このフラグRSFが“1”の間は出力端子(O
7)は“Highとなっていてマイコン(MCO2)は露出
制御動作には移行しない。なお、タイマー割込はタイマ
ー割込が不可の状態ではタイマーTICが“0”になっ
ても割込動作は行なわれず、タイマー割込可となると直
ちにタイマー割込がかかりタイマー割込による動作が行
なわれる。
In step # 117, a constant value T0 is set to a timer counter TIC for performing preliminary irradiation and counting a constant time (for example, 200 msec). This counter T
The IC counts down based on the clock pulse inside the microcomputer (MCO1), and when the internal becomes "0", the timer interrupt is taken if it is possible, and the operation of step # 260 described later is performed. Return to the original flow. In # 118, the flag RSF is set to "1". This flag RSF is set to "1" until a fixed time elapses after the preliminary irradiation is performed, and is set to "0" in the step of # 260 when the fixed time elapses and the timer is interrupted. While the flag RSF is "1", the output terminal (O
7) is "High" and the microcomputer (MCO2) does not shift to the exposure control operation. When the timer interrupt is disabled, the interrupt operation is not possible even if the timer TIC becomes "0". If it is not performed and the timer interrupt is enabled, the timer interrupt is immediately applied and the operation by the timer interrupt is performed.

♯118のステップでフラグRSFが“1”にされると、
♯2のステップに戻り予備照射を行なう焦点検出動作が
実行される。
When the flag RSF is set to "1" in step # 118,
Returning to the step of # 2, the focus detecting operation for performing the preliminary irradiation is executed.

♯111のステップでフラグLLFが“0”のとき、或い
は♯113のステップでフラグSEF2が“0”のときは
♯121のステップに移行してローコンスキャンモードの
動作を開始する。まずフラグLCF1,LCF2,LS
Fを“1”とし、次に算出されているデフォーカス方向
がどちらかを判別し、判別された方向に応じてフラグS
IFを“1”又は“0”にし、レンズをその方向に移動
させる。そして、警告表示を行なわせ、フラグFPFを
“0”とし、カウンタCORの内容が“0”になったと
きにかかる割込信号を受付けない状態として♯2のステ
ップに戻り、次の測定を行なわせる。
When the flag LLF is "0" in the step of # 111, or when the flag SEF2 is "0" in the step of # 113, the process shifts to the step of # 121 to start the operation in the low contrast scan mode. First, the flags LCF1, LCF2, LS
F is set to "1", it is determined which defocus direction is calculated next, and the flag S is determined according to the determined direction.
IF is set to "1" or "0" and the lens is moved in that direction. Then, a warning is displayed, the flag FPF is set to "0", the interrupt signal is not accepted when the content of the counter COR becomes "0", the process returns to step # 2, and the next measurement is performed. Let

♯110のステップでフラグFPFが“0”であれば♯140
のステップに移行してフラグFLFが“1”かどうかを
判別する。フラグFLFが“1”であれば予備照射モー
ドでの焦点検出結果がローコントラストになっている場
合である。このときは、端子(O1)を“Low”にして
第5−3図の♯200のステップに移行する。そして♯200
のステップではフラグFFFが“1”かどうかを判別し
て、フラグFFFが“1”ならば予備照射モードで1回
目の焦点検出が行なわれた場合であり、このときはフラ
グFFFを“0”にし、前述の♯115のステップに戻り
2回目の予備照射モードでの動作を行なわせる。一方、
♯200のステップでフラグFFFが“0”であれば予備
照射モードで2回目の測定が行なわれたことになり、こ
のときは警告表示を行なってタイマー割込を可として♯
211のステップに移行し動作を停止する。
If the flag FPF is "0" in step # 110, # 140
Then, it is determined whether the flag FLF is "1". If the flag FLF is "1", it means that the focus detection result in the preliminary irradiation mode is low contrast. At this time, the terminal (O1) is set to "Low" and the process proceeds to step # 200 in Fig. 5-3. And # 200
In the step 1), it is determined whether the flag FFF is “1”, and if the flag FFF is “1”, the first focus detection is performed in the preliminary irradiation mode. At this time, the flag FFF is set to “0”. Then, the process returns to step # 115 described above, and the operation in the second preliminary irradiation mode is performed. on the other hand,
If the flag FFF is "0" in step # 200, it means that the second measurement is performed in the preliminary irradiation mode. At this time, a warning is displayed and the timer interrupt is enabled.
The process moves to step 211 to stop the operation.

♯140のステップでフラグFLFが“0”であれば次に
♯142のステップでフラグTIFが“1”かどうかを判
別する。そしてフラグTIFが“1”ならばローコン停
止モードであり♯2のステップに戻って次の測定を行な
わせる。♯142のステップでフラグTIFが“0”なら
ば次に、♯143のステップでフラグSEF2が“1”か
どうかを判別する。そして“1”であればローコンスキ
ャンモードでレンズが全領域を走査してもローコントラ
ストの焦点検出値しか得られなかった場合であり、この
ときは♯144からのローコン停止モードの動作を開始す
る。
If the flag FLF is "0" in step # 140, then it is determined in step # 142 whether the flag TIF is "1". If the flag TIF is "1", the low contrast stop mode is set and the process returns to step # 2 to perform the next measurement. If the flag TIF is "0" in step # 142, then it is determined in step # 143 whether the flag SEF2 is "1". If the value is "1", it means that only the low-contrast focus detection value is obtained even if the lens scans the entire area in the low-con scan mode. At this time, the operation of the low-con stop mode from # 144 is started. To do.

♯144のステップではカウンタCORに固定データT1
を設定し、マイコン(MCO1)の内部のクロックパル
スでカウンタCORの内容を減算していくタイマーモー
ドに切換、フラグTIFを“1”としてカウンタ割込を
可能として♯2のステップに戻り測定を行なわせる。こ
のモードの際には一定時間レンズを停止した状態で焦点
検出を繰り返し、この間にローコントラストでない測定
値が得られるとこの測定値に基づく移動量のデータによ
ってレンズを駆動し一定時間ローコントラストの焦点検
出値しか得られないときは、再度第1回目の測定と同じ
動作を行なう。
In the step # 144, the fixed data T1 is stored in the counter COR.
To the timer mode in which the contents of the counter COR are subtracted by the clock pulse inside the microcomputer (MCO1), the flag TIF is set to "1" and the counter interrupt is enabled, and the procedure returns to step # 2 to perform the measurement. Let In this mode, focus detection is repeated with the lens stopped for a certain period of time, and if a measurement value that is not low contrast is obtained during this period, the lens is driven by the movement amount data based on this measurement value and the focus of low contrast is maintained for a certain period of time. When only the detected value is obtained, the same operation as the first measurement is performed again.

♯143のステップでフラグSEF2が“0”であること
が判別されると次に♯150のステップでフラグLCF1
が“1”かどうかを判別する。そして、“1”でないと
きは、前回までの焦点検出値はローコントラストではな
く、今回の焦点検出で突然ローコントラストになった場
合である。このときは♯151のステップに移行し、フラ
グLCF1を“1”、LCF2を“0”とし端子(O
4),(O5)を“Low”にしてモーター(MO)の動
作を停止させ、フラグFPFを“1”にして、♯2に戻
り焦点検出をやり直す。♯150のステップでフラグLC
F1が“1”なら次に、♯155のステップでフラグLC
F2が“1”かどうかを判別する。そしてフラグLCF
2が“0”であれば、前回の焦点検出値が突然ローコン
トラストになり、焦点検出をやりなおして得られた今回
の焦点検出値もローコントラストの場合である。従っ
て、この場合には♯121のステップからの前述したロー
コンスキャンモードの開始動作を行なう。
If it is determined in step # 143 that the flag SEF2 is "0", then in step # 150 the flag LCF1 is set.
It is determined whether is "1". When it is not "1", the focus detection value up to the previous time is not low contrast, but is suddenly low contrast in this focus detection. At this time, the process shifts to step # 151, the flag LCF1 is set to "1", the LCF2 is set to "0", and the terminal (O
4) and (O5) are set to "Low" to stop the operation of the motor (MO), the flag FPF is set to "1", the process returns to # 2 and focus detection is performed again. Flag LC in step # 150
If F1 is "1", then in step # 155 the flag LC
It is determined whether F2 is "1". And the flag LCF
If 2 is "0", the previous focus detection value suddenly becomes low contrast, and the current focus detection value obtained by re-performing focus detection is also low contrast. Therefore, in this case, the operation for starting the low contrast scan mode described above is performed from step # 121.

♯155のステップでフラグLCF2が“1”のときはロ
ーコンスキャンモードでの動作中である。この場合、♯
156のステップでカウンタCORの内容をレジスタEC
R3に設定し♯27のステップでカウンタCORの内容を
取り込んだレジスタECR2の内容と一致しているかど
うかを♯157のステップで判別する。そして、一致して
いなければレンズは終端に達していないので♯3のステ
ップに戻り焦点検出動作を行なう。一方、レジスタEC
R2とECR3の内容が一致していればレンズは終端に
達したことになり、♯158のステップでモーター(M
O)の駆動を停止する。そして、♯159のステップでフ
ラグSEF1が“1”かどうかを判別して、“1”であ
ればレンズは一方の終端に達していることになり、従っ
てレンズは両方の終端に達して全領域の走査が行なわれ
たことになる。従ってこのときはフラグSEF2を
“1”にして、♯112のステップに移行し、フラッシュ
から予備照射が可能かどうかの確認を行ない、予備照射
が可能であれば予備照射モードに移行し、予備照射が不
可能であればローコン停止モードに移行する。
When the flag LCF2 is "1" in step # 155, the operation is in the low-con scan mode. In this case,
In step 156, the contents of the counter COR are registered in the register EC.
In step # 157, it is determined whether or not the contents of the register ECR2, which is set to R3 and the content of the counter COR is fetched in step # 27, matches. If they do not match, the lens has not reached the end, and therefore the process returns to step # 3 to perform the focus detection operation. On the other hand, register EC
If the contents of R2 and ECR3 match, the lens has reached the end, and the motor (M
O) is stopped. Then, in step # 159, it is determined whether or not the flag SEF1 is "1". If the flag SEF1 is "1", it means that the lens has reached one end, and therefore the lens has reached both ends and the entire area is reached. Has been scanned. Therefore, at this time, the flag SEF2 is set to "1" and the process proceeds to the step of # 112 to confirm whether or not the preliminary irradiation is possible from the flash. If the preliminary irradiation is possible, the preliminary irradiation mode is changed to the preliminary irradiation. If is not possible, it shifts to the low contrast stop mode.

♯159のステップでフラグSEF1が“0”であればロ
ーコンスキャンモードでレンズが初めて終端に達したこ
とになりこの場合、フラグSIFを反転させ、モーター
(MO)の回転方向も反転させてフラグSEF1を
“1”にして♯3のステップに戻って測定を行なわせ
る。
If the flag SEF1 is "0" in the step of # 159, it means that the lens has reached the terminal end for the first time in the low contrast scan mode. In this case, the flag SIF is reversed and the rotation direction of the motor (MO) is also reversed. Set SEF1 to "1" and return to step # 3 to perform measurement.

♯41のステップでフラグFLFが“1”であれば予備照
射モードで測定を行なった結果がローコントラストでな
い場合である。このときは第5−3図の♯170のステッ
プに移行する。♯170のステップでは端子(O1)を“L
ow”にし、♯37のステップで求まったデフォーカス量の
データLDt及び合焦領域のデータと変換係数KDとか
らレンズの移動量NDと合焦領域IFDとを算出する。
そして♯173のステップで|ND|IFDとなってい
るときは合焦表示を行なって、フラグFFFを“0”に
し♯211のステップに移行して動作を終了させるための
フローに移行する。
If the flag FLF is "1" in step # 41, it means that the result of measurement in the preliminary irradiation mode is not low contrast. At this time, the process proceeds to step # 170 in Fig. 5-3. In step # 170, the terminal (O1) is set to "L".
ow ”, and the lens movement amount ND and the focus area IFD are calculated from the defocus amount data LDt and the focus area data obtained in step # 37 and the conversion coefficient KD.
Then, if | ND | IFD is set in the step # 173, the in-focus display is performed, the flag FFF is set to "0", and the flow shifts to the step # 211 to end the operation.

♯173のステップで|ND|>IFDであることが判別
されると♯180に移行し|ND|をカウンタCORに設
定し、イベントカウントモードにしてカウンタ割込を可
能とし、タイマー割込を不可とする。そして、フラグF
FFが“1”かどうかを判別して“1”であれば予備照
射モードで第1回目の測定が行なわれた場合であり、こ
のときは♯188のステップにそのまま移行する。一方、
FFFが“0”であれば2回目の測定が行なわれた場合
である。このときは、♯178のステップに移行して合焦
近傍のデータLNDに変換係数KDを掛けて近傍領域の
データNFDを算出する。そして♯179のステップで|
ND|NFDとなっているかどうかを判別する。|N
D|>NFDの場合1回目の合焦動作で正常な動作が行
なわれてないか又は2回目の焦点検出結果が信頼性に乏
しいと考えられる。さらには、変換係数のバラツキ等
で、1回のレンズの移動だけで正確に合焦位置まで移動
させることは困難であり、基本的には合焦動作が行なえ
ないと考えられる。そこでこの場合には♯201のステッ
プに移行して警告を行なった後、タイマー割込を可能と
し、♯211のステップに移行して動作を停止する。
When it is determined in step # 173 that | ND |> IFD, the process proceeds to step # 180, where | ND | is set to the counter COR, the event count mode is set to enable the counter interrupt, and the timer interrupt is disabled. And And flag F
Whether the FF is "1" is determined, and if it is "1", it means that the first measurement is performed in the preliminary irradiation mode. At this time, the process directly proceeds to step # 188. on the other hand,
If FFF is "0", it means that the second measurement is performed. At this time, the process proceeds to step # 178, and the data LND in the vicinity of the focus is multiplied by the conversion coefficient KD to calculate the data NFD in the vicinity area. Then, in step # 179 |
It is determined whether ND | NFD. | N
When D |> NFD, it is considered that normal operation is not performed in the first focusing operation, or the second focus detection result is unreliable. Furthermore, it is difficult to accurately move the lens to the in-focus position with only one movement of the lens due to variations in the conversion coefficient, and it is considered that the in-focus operation cannot be performed basically. Therefore, in this case, the process proceeds to step # 201 to issue a warning, then the timer interruption is enabled, and the process proceeds to step # 211 to stop the operation.

♯179のステップで|ND|NFDとなっていること
が判別されると正常な制御動作が可能であると考えられ
るので次に移動方向を判別して、前回と移動方向が反転
しているかどうかを判別する。そして反転していること
が判別されると|ND|+BLDの演算を行なって移動
量データ|ND|をバックラッシュデータ分だけ補正
し、このデータをカウンタCORに設定しなおす。一方
反転してなければ♯180のステップで設定されたデータ
のままとして、♯188に移行する。そして移動方向を判
別してその方向に対応した信号をフラグSIFに設定し
てモーター(MO)を判別された方向に回転させる。
If it is determined in step # 179 that | ND | NFD is determined, it is considered that normal control operation is possible. Therefore, determine the moving direction next, and check whether the moving direction is reversed from the previous one. To determine. Then, if it is determined that it is reversed, | ND | + BLD is calculated to correct the movement amount data | ND | by the amount of backlash data, and this data is reset to the counter COR. On the other hand, if it is not inverted, the data set in step # 180 remains unchanged and the process proceeds to step # 188. Then, the direction of movement is determined, a signal corresponding to that direction is set in the flag SIF, and the motor (MO) is rotated in the determined direction.

次に、カウンタCORの内容をレジスタECR2に設定
し一定時間待った後に端子(i3)が“Low”になっている
かどうかを判別し、“Low”であればタイマー割込を可
として♯209のステップに移行する。一方“Highであれ
ば♯196に移行しカウンタCORの内容をレジスタEC
R3に設定する。そして♯197のステップでレジスタE
CR2とECR3の内容が一致しているかどうかを判別
する。そして(ECR2)≠(ECR3)ならECR3
の内容をECR2に設定して♯194のステップに戻る。
従って、予備照射モードの際には測定によってデータが
得られるとこのデータに基づいてレンズを駆動するがこ
の駆動中は測定動作は行なわれない。そしてレンズが算
出された移動量分だけ移動するとカウンタ割込がかかっ
て後述するようにレンズを停止させ1回目であれば2回
目の動作に移行し、2回目であれば合焦表示を行なって
動作を停止する。また、♯197のステップでレンズが終
端に達したことが検知されると端子(O4),(O5)
を“Low”としてモーターを停止させる。そして♯200の
ステップでフラグFFFが“1”かどうかを判別して、
“1”なら1回目の測定なので、フラグFFFを“0”
として前述の♯115のステップに戻り2回目の予備照射
モードでの測定を行なわせる。一方、♯200のステップ
でフラグFFFが“0”であることが判別されると、こ
のときは2回目の動作によってレンズが終端に達したこ
とになり、この場合には警告表示を行なってタイマー割
込を可能とし♯211のステップに移行し、動作を停止す
る。
Next, after setting the contents of the counter COR in the register ECR2 and waiting for a certain period of time, it is determined whether or not the terminal (i3) is "Low". If it is "Low", the timer interrupt is enabled and the step # 209 is performed. Move to. On the other hand, if "High", the process proceeds to # 196 and the contents of the counter COR are set in the register EC.
Set to R3. Then, in step # 197, register E
It is determined whether or not the contents of CR2 and ECR3 match. If (ECR2) ≠ (ECR3), ECR3
The contents of is set to ECR2 and the process returns to step # 194.
Therefore, in the preliminary irradiation mode, if data is obtained by measurement, the lens is driven based on this data, but the measurement operation is not performed during this driving. When the lens moves by the calculated amount of movement, a counter interrupt is applied and the lens is stopped, as will be described later, and if it is the first time, the operation moves to the second time, and if it is the second time, the focus display is performed. Stop the operation. When it is detected that the lens reaches the end in step # 197, terminals (O4), (O5)
Set to “Low” to stop the motor. Then, in step # 200, it is determined whether the flag FFF is "1",
If it is "1", it is the first measurement, so set the flag FFF to "0".
As a result, the procedure returns to step # 115 described above, and the measurement is performed in the second preliminary irradiation mode. On the other hand, if it is determined in step # 200 that the flag FFF is "0", this means that the lens has reached the end by the second operation. In this case, a warning is displayed and the timer is displayed. Enables interrupts and moves to step # 211 to stop operation.

カウンタCORの内容が“0”になるとカウンタ割込が
かかり♯230のステップからの動作を行なう。♯230のス
テップではフラグTIFが“1”かどうかを判別する。
“1”のときはローコン停止モードで一定時間が経過
し、この間ローコンの測定値しか得られなかった場合で
ある。このときは、割込可能としフラグTIF,SEF
1,SEF2,LCF1、LCF2,LSFを“0”と
し、フラグFPFを“1”とし、イベントカウントモー
ドとして♯2のステップに戻る。従って、第1回目の測
定と同じ状態にして測定が行なわれる。
When the content of the counter COR becomes "0", the counter is interrupted and the operation from step # 230 is performed. In step # 230, it is determined whether the flag TIF is "1".
When the value is "1", the constant time has elapsed in the low contrast stop mode, and only the measured value of the low contrast is obtained during this period. At this time, it is possible to interrupt and the flags TIF and SEF are set.
1, SEF2, LCF1, LCF2, LSF are set to "0", the flag FPF is set to "1", the event count mode is set, and the process returns to step # 2. Therefore, the measurement is performed in the same state as the first measurement.

♯230のステップでフラグTIFが“0”のときはレン
ズの移動量が算出された移動量だけ移動した場合であ
る。この場合にはモーター(MO)を停止させ割込を可
能とする。そして♯235のステップでフラグFLFが
“1”かどうかを判別する。そして“1”であれば予備
照射モードであり♯238のステップに移行する。♯238の
ステップではフラグFFFが“1”かどうかを判別し
“1”であれば予備照射モードでの2回目の合焦動作が
終了したことになり合焦表示を行ない、タイマー割込を
可能として♯211のステップに移行する。一方、フラグ
FFFが“1”なら予備照射モードで1回目の合焦動作
が完了したことになり、フラグFFFを“0”として♯
115のステップに戻り2回目の合焦動作を行なわせる。
When the flag TIF is "0" in step # 230, it means that the movement amount of the lens has moved by the calculated movement amount. In this case, the motor (MO) is stopped to enable the interrupt. Then, in step # 235, it is determined whether the flag FLF is "1". If it is "1", it means the pre-irradiation mode, and the process proceeds to step # 238. In step # 238, it is determined whether or not the flag FFF is "1". If the flag FFF is "1", it means that the second focusing operation in the pre-irradiation mode has been completed, the focusing display is performed, and the timer interrupt is possible. Then, the process proceeds to step # 211. On the other hand, if the flag FFF is "1", it means that the first focusing operation is completed in the preliminary irradiation mode, and the flag FFF is set to "0".
The process returns to step 115 and the second focusing operation is performed.

♯235のステップでフラグFLFが“0”であれば予備
照射を行なわず、ローコントラストでない測定値が得ら
れ、算出された移動量分だけレンズが移動した場合であ
る。このときはフラグIFF,FPFを“1”として♯
2のステップに戻り、確認のための測定を行なわせる。
If the flag FLF is "0" in step # 235, the preliminary irradiation is not performed, a measured value that is not low contrast is obtained, and the lens is moved by the calculated movement amount. At this time, the flags IFF and FPF are set to "1".
Return to step 2 and ask for confirmation measurements.

タイマー割込がかかると♯260のステップでフラグRS
Fを“0”として割込がかかったときの動作に戻る。な
お、タイマー割込も他の割込と同様に、一旦その割込が
あると、その割込を可能としない限り以後はその割込は
不可となっている。
If a timer interrupt occurs, flag RS will be sent in step # 260.
Return F to "0" to return to the operation when an interrupt occurs. As with other interrupts, once the timer interrupt has been interrupted, the interrupt is disabled thereafter unless the interrupt is enabled.

♯11,♯19,♯38,♯195のステップで端子(i3)が“Lo
w”になったことが判別されると♯209のステップで端子
(it1)とカウンタCORによる割込を禁止しイベントカ
ウントモードにして♯213のステップに移行する。一
方、♯76,♯90,♯176,♯203,♯243のステップから
は♯211のステップに移行し、♯211のステップで端子(i
t1)とカウンタCORによる割込を不可能とし端子(i3)
が“Low”になるのを待つ。そして端子(i3)が“Low”に
なると♯213のステップに移行する。♯213のステップで
は端子(O4),(O5)を“Low”にしてモーター
(MO)を停止させ、次に表示を消灯させる。そして端
子(O1),(O2),(O3),(O6)を“Low”
として自動焦点調整用の回路の動作を停止させる。そし
て、RSF、FPF、SIFを除くすべてのフラグに
“0”を設定して、フラグFPFを“1”にする。次
に、カウンタCORの内容をレジスタECR2に設定し
一定時間待ってからカウンタCORの内容をレジスタE
CR3に設定する。そして(ECR2)=(ECR3)
になっているかどうかを判別して(ECR2)≠(EC
R3)ならレジスタECR3の内容をレジスタECR2
に設定して♯219のステップに戻る。そして(ECR
2)=(ECR3)となっていれば、レンズの移動は完
全に停止した状態となっているので、♯223のステップ
に移行する。
In the steps # 11, # 19, # 38, and # 195, the terminal (i3) goes to "Lo".
If it is determined that it has become "w", the terminal is connected in step # 209.
(it1) and the interruption by the counter COR are prohibited, the event count mode is set, and the process proceeds to step # 213. On the other hand, from the steps of # 76, # 90, # 176, # 203, and # 243, the process moves to the step of # 211 and the terminal (i
t1) and counter COR cannot be interrupted, and terminal (i3)
Wait for “Low”. When the terminal (i3) becomes "Low", the process proceeds to step # 213. In step # 213, terminals (O4) and (O5) are set to "Low" to stop the motor (MO), and then the display is turned off. Then, the terminals (O1), (O2), (O3), (O6) are set to "Low".
As a result, the operation of the circuit for automatic focus adjustment is stopped. Then, all flags except RSF, FPF and SIF are set to "0" to set the flag FPF to "1". Next, the contents of the counter COR are set in the register ECR2, and after waiting for a fixed time, the contents of the counter COR are set in the register ECR2.
Set to CR3. And (ECR2) = (ECR3)
If (ECR2) ≠ (EC
R3), the contents of register ECR3 are registered in register ECR2
Set to and return to step # 219. And (ECR
If 2) = (ECR3), the movement of the lens is in a completely stopped state, and the process proceeds to step # 223.

♯223のステップではフラブRSFが“1”かどうか判
別し、“1”であれば予備照射が行なって一定時間(200
msec)が経過してないことになり、一定時間が経過して
フラグRSFが“0”となるのを待つ。そしてフラグR
SFが“0”になるか、“0”になっているときは、♯
224のステップで端子(O7)を“Low”としてマイコン
(MCO2)による露出制御動作を可能とし、端子(it
2)への割込を可能としてマイコン(MCO1)は動作を
停止する。
In step # 223, it is determined whether the flab RSF is "1". If it is "1", preliminary irradiation is performed for a certain time (200
It means that (msec) has not elapsed, and waits for the flag RSF to become “0” after a fixed time has elapsed. And flag R
When SF is "0" or "0", #
In step 224, the terminal (O7) is set to “Low” to enable the exposure control operation by the microcomputer (MCO2).
The microcomputer (MCO1) stops its operation by enabling the interrupt to 2).

効果 本発明の自動焦点検出装置によれば、焦点検出結果の信
頼性が低くかつ被写体輝度が低い場合には、補助光を発
光させて再度焦点検出を行い、また、焦点検出結果の信
頼性が低くかつ被写体輝度が低くない場合には、フォー
カシングレンズ群を駆動しながら再度焦点検出を行うの
で、被写体輝度に応じてそれぞれ適切な焦点検出動作を
行うことが可能となる。
Effect According to the automatic focus detection device of the present invention, when the reliability of the focus detection result is low and the subject brightness is low, the auxiliary light is emitted to perform the focus detection again, and the reliability of the focus detection result is low. If it is low and the subject brightness is not low, focus detection is performed again while driving the focusing lens group, so that it is possible to perform appropriate focus detection operations according to the subject brightness.

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

第1図はこの発明の基本的な構成を示すブロック図、第
2図はこの発明を適用したカメラシステム全体を示す回
路図、第3図は第2図のフラッシュ(FLC)の具体例
を示す回路図、第4図は第2図のマイコン(MCO2)
の動作を示すフローチャート、第5−1,5−2,5−
3図は第2図のマイコン(MCO1)の動作を示すフロ
ーチャートである。 撮影レンズ→10 駆動手段→9 焦点検出手段→1・2・3 信頼性判定手段→4、(♯39) 発光手段→12・13 輝度判定手段→1・2、(♯111) 第1の制御手段→♯39〜110〜118〜2 第2の制御手段→♯39〜110〜121〜133〜3 第3の制御手段→♯39・40〜50〜73〜2
FIG. 1 is a block diagram showing the basic configuration of the present invention, FIG. 2 is a circuit diagram showing the entire camera system to which the present invention is applied, and FIG. 3 is a specific example of the flash (FLC) shown in FIG. Circuit diagram, Fig. 4 shows the microcomputer (MCO2) in Fig. 2.
5-1, 5-2, 5-showing the operation of
FIG. 3 is a flowchart showing the operation of the microcomputer (MCO1) shown in FIG. Photographing lens → 10 Driving means → 9 Focus detection means → 1.2.3. Reliability determination means → 4, (# 39) Light emitting means → 12.13 Luminance determination means → 1.2, (# 111) First control Means- # 39-110-118-2 Second control means- # 39-110-121-133-3 Third control means- # 39-40-50-73-2

フロントページの続き (56)参考文献 特開 昭48−53717(JP,A) 特開 昭54−126023(JP,A) 特開 昭58−132733(JP,A) 特開 昭58−58508(JP,A) 特開 昭59−195605(JP,A)Continuation of front page (56) Reference JP-A-48-53717 (JP, A) JP-A-54-126023 (JP, A) JP-A-58-132733 (JP, A) JP-A-58-58508 (JP , A) JP 59-195605 (JP, A)

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】撮影レンズと、 撮影レンズ内のフォーカシングレンズを駆動する駆動手
段と、 撮影レンズにより形成された被写体像を受光してこの被
写体に関する撮影レンズの焦点検出を行う焦点検出手段
と、 焦点検出手段の検出動作の信頼性を判定する信頼性判定
手段と、 被写体を照明する補助光を発光する発光手段と、 被写体が低輝度であるか否かを判定する輝度判定手段
と、 信頼性判定手段が焦点検出手段の検出動作の信頼性が低
いと判定しかつ輝度判定手段が被写体が低輝度であると
判定した場合は、補助光を発光させて再度焦点検出手段
に検出動作を行わせる第1の制御手段と、 信頼性判定手段が焦点検出手段の検出動作の信頼性が低
いと判定しかつ輝度判定手段が被写体が低輝度でないと
判定した場合は、信頼性の高い検出動作が得られるま
で、駆動手段を制御して撮影レンズを駆動させながら焦
点検出手段に検出動作を繰り返し行わせる第2の制御手
段と、 信頼性判定手段が焦点検出手段の検出動作の信頼性が高
いと判定した場合は、焦点検出手段の検出結果に基づい
て駆動手段を制御して撮影レンズを合焦位置まで駆動さ
せる第3の制御手段と、 を備えたことを特徴とする自動焦点調節装置。
1. A photographic lens, a driving means for driving a focusing lens in the photographic lens, a focus detecting means for receiving an image of an object formed by the photographic lens, and performing focus detection of the photographic lens for this object, and a focus. Reliability determining means for determining the reliability of the detection operation of the detecting means, light emitting means for emitting auxiliary light for illuminating the subject, brightness determining means for determining whether or not the subject has low brightness, and reliability determining When the means determines that the reliability of the detection operation of the focus detection means is low and the brightness determination means determines that the subject has low brightness, the auxiliary light is emitted to cause the focus detection means to perform the detection operation again. When the control means of No. 1 and the reliability determination means determine that the detection operation of the focus detection means is unreliable and the brightness determination means determines that the subject is not of low brightness, the detection operation with high reliability is performed. The second determination means controls the focus detecting means to repeatedly perform the detecting operation while controlling the driving means to drive the photographing lens until the operation is obtained. If it is determined to be high, a third control means for controlling the drive means based on the detection result of the focus detection means to drive the photographing lens to the in-focus position, the automatic focus adjustment device characterized by the above-mentioned. .
【請求項2】上記焦点検出手段は列状に配された多数の
受光素子で撮影レンズにより形成された被写体像を受光
積分するとともに、上記信頼性判定手段はこの受光素子
列から求められるコントラスト値に基づいて焦点検出手
段の検出動作の信頼性を判定することを特徴とする特許
請求の範囲第1項記載の自動焦点調節装置。
2. The focus detecting means receives and integrates a subject image formed by a taking lens with a large number of light receiving elements arranged in a row, and the reliability determining means receives a contrast value obtained from the light receiving element row. The automatic focus adjustment device according to claim 1, wherein the reliability of the detection operation of the focus detection means is determined based on the above.
【請求項3】上記輝度判定手段は受光素子列の受光積分
出力が所定時間内に所定値に達しなかったことを検出す
ることにより被写体が低輝度であることを判定すること
を特徴とする特許請求の範囲第2項記載の自動焦点調節
装置。
3. The brightness determining means determines that the subject has low brightness by detecting that the light reception integrated output of the light receiving element array has not reached a predetermined value within a predetermined time. The automatic focus adjusting device according to claim 2.
JP58210663A 1983-11-08 1983-11-08 Automatic focus adjustment device Expired - Lifetime JPH063492B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58210663A JPH063492B2 (en) 1983-11-08 1983-11-08 Automatic focus adjustment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58210663A JPH063492B2 (en) 1983-11-08 1983-11-08 Automatic focus adjustment device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP58154378A Division JPH0786582B2 (en) 1983-08-24 1983-08-24 Focus detection device

Publications (2)

Publication Number Publication Date
JPS6046515A JPS6046515A (en) 1985-03-13
JPH063492B2 true JPH063492B2 (en) 1994-01-12

Family

ID=16593041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58210663A Expired - Lifetime JPH063492B2 (en) 1983-11-08 1983-11-08 Automatic focus adjustment device

Country Status (1)

Country Link
JP (1) JPH063492B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9007512B2 (en) 2013-02-07 2015-04-14 Samsung Techwin Co., Ltd. Focusing method of photographing apparatus and photographing apparatus adopting the focusing method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6052811A (en) * 1983-11-02 1985-03-26 Minolta Camera Co Ltd Automatic focusing device
JPH065336B2 (en) * 1986-06-30 1994-01-19 オリンパス光学工業株式会社 Autofocus camera
JP2507313B2 (en) * 1986-03-20 1996-06-12 株式会社ニコン An electronic flash device having an auxiliary lighting device or a photographing device incorporating the electronic flash device
JP2832054B2 (en) * 1990-01-25 1998-12-02 キヤノン株式会社 Focus detection device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4853717A (en) * 1971-11-02 1973-07-28
JPS54126023A (en) * 1978-03-23 1979-09-29 Canon Inc Optical device
JPS5858508A (en) * 1981-10-02 1983-04-07 Minolta Camera Co Ltd Auto-focusing device
JPS58132733A (en) * 1982-02-02 1983-08-08 Canon Inc Automatic focusing camera provided with auxiliary illuminator
JPS59195605A (en) * 1983-04-22 1984-11-06 Asahi Optical Co Ltd Focus detector

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9007512B2 (en) 2013-02-07 2015-04-14 Samsung Techwin Co., Ltd. Focusing method of photographing apparatus and photographing apparatus adopting the focusing method

Also Published As

Publication number Publication date
JPS6046515A (en) 1985-03-13

Similar Documents

Publication Publication Date Title
US4536072A (en) Automatic focus control system
JPH0558163B2 (en)
US5845155A (en) Multipoint autofocusing system
US4737813A (en) Automatic focus control device for use in a camera system
JPH063492B2 (en) Automatic focus adjustment device
JP3695380B2 (en) camera
JPH0424624A (en) Stroboscope controller for multi-focus camera
JPH068927B2 (en) Focus detection device
JPS6046513A (en) Focus detector for camera using preliminary irradiation
JPH0558173B2 (en)
JPH061289B2 (en) Automatic focus adjustment device
JPH061290B2 (en) Focus detection device
JPS6173132A (en) Camera system for executing automatic focus adjustment using auxiliary light
JPS6052833A (en) Flash device for photographing and preliminary irradiation
EP0762187B1 (en) Flash device
JPH087328B2 (en) Focus detection device with auxiliary lighting device
JP3439256B2 (en) camera
JPS6052811A (en) Automatic focusing device
JP3034217B2 (en) Focusing device
JPH10186218A (en) Camera provided with automatic focusing device and focus measurement device thereof
JPH11109220A (en) Automatic focusing device
JPH05107452A (en) Automatic focusing device
JPS6046517A (en) Focus information detector
JP2832012B2 (en) Camera auto focus device
JPH024207A (en) Focus detector