JPH0766102B2 - Focus detection device - Google Patents
Focus detection deviceInfo
- Publication number
- JPH0766102B2 JPH0766102B2 JP61087290A JP8729086A JPH0766102B2 JP H0766102 B2 JPH0766102 B2 JP H0766102B2 JP 61087290 A JP61087290 A JP 61087290A JP 8729086 A JP8729086 A JP 8729086A JP H0766102 B2 JPH0766102 B2 JP H0766102B2
- Authority
- JP
- Japan
- Prior art keywords
- lens
- focus
- mode
- signal
- flag
- 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
Links
- 238000001514 detection method Methods 0.000 title claims description 137
- 230000010354 integration Effects 0.000 description 120
- 238000000034 method Methods 0.000 description 69
- 230000008569 process Effects 0.000 description 55
- 238000012937 correction Methods 0.000 description 31
- 238000006243 chemical reaction Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 238000005286 illumination Methods 0.000 description 9
- 230000007246 mechanism Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 238000012790 confirmation Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 230000001133 acceleration Effects 0.000 description 6
- 230000002441 reversible effect Effects 0.000 description 6
- 238000012546 transfer Methods 0.000 description 6
- 230000004397 blinking Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000005375 photometry Methods 0.000 description 4
- 238000002360 preparation method Methods 0.000 description 4
- 238000003825 pressing Methods 0.000 description 4
- 230000009467 reduction Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 239000003990 capacitor Substances 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000009347 mechanical transmission Effects 0.000 description 3
- 238000013169 thromboelastometry Methods 0.000 description 3
- 101100522111 Oryza sativa subsp. japonica PHT1-11 gene Proteins 0.000 description 2
- 101100328360 Schizosaccharomyces pombe (strain 972 / ATCC 24843) clr1 gene Proteins 0.000 description 2
- 230000004075 alteration Effects 0.000 description 2
- XAGFODPZIPBFFR-UHFFFAOYSA-N aluminium Chemical compound [Al] XAGFODPZIPBFFR-UHFFFAOYSA-N 0.000 description 2
- 229910052782 aluminium Inorganic materials 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000004043 responsiveness Effects 0.000 description 2
- 238000004904 shortening Methods 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 238000004804 winding Methods 0.000 description 2
- HOKDBMAJZXIPGC-UHFFFAOYSA-N Mequitazine Chemical compound C12=CC=CC=C2SC2=CC=CC=C2N1CC1C(CC2)CCN2C1 HOKDBMAJZXIPGC-UHFFFAOYSA-N 0.000 description 1
- 101100348848 Mus musculus Notch4 gene Proteins 0.000 description 1
- 108010087367 P-glycoprotein 2 Proteins 0.000 description 1
- 102100039032 Phosphatidylcholine translocator ABCB4 Human genes 0.000 description 1
- 101100392421 Schizosaccharomyces pombe (strain 972 / ATCC 24843) ght2 gene Proteins 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- TWFZGCMQGLPBSX-UHFFFAOYSA-N carbendazim Chemical compound C1=CC=C2NC(NC(=O)OC)=NC2=C1 TWFZGCMQGLPBSX-UHFFFAOYSA-N 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 239000006185 dispersion Substances 0.000 description 1
- 230000006355 external stress Effects 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 210000003128 head Anatomy 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 210000001747 pupil Anatomy 0.000 description 1
- 230000011514 reflex Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Focusing (AREA)
- Automatic Focus Adjustment (AREA)
Description
【発明の詳細な説明】 産業上の利用分野 本発明は、撮影レンズを通過した被写体光に基づいて撮
影レンズの焦点状態を検出する焦点検出装置に関する。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a focus detection device that detects a focus state of a photographing lens based on subject light that has passed through the photographing lens.
従来の技術 撮影レンズを通過した被写体光に基いて撮影レンズのデ
フォーカス量を算出し、そのデフォーカス量が所定の合
焦判定幅よりも小さいときに合焦と判定する焦点検出装
置が提案されており、この装置では、撮影レンズがどこ
に位置しようとも固定された所定の合焦判定幅による合
焦判定を行っています。2. Description of the Related Art A focus detection device has been proposed that calculates the defocus amount of a shooting lens based on subject light that has passed through the shooting lens and determines that the focus is in focus when the defocus amount is smaller than a predetermined focus determination width. With this device, no matter where the shooting lens is located, the focus is determined by the fixed focus determination width that is fixed.
発明が解決しようとする課題 ところで、焦点検出においてその検出結果には多生の誤
差が含まれます。そのため、撮影レンズが無限遠に合焦
するレンズ位置にあっても、遠方向のデフォーカスが検
出されることがあります。しかし、無限遠より遠い被写
体は存在するはずがないので、このときのデフォーカス
は明かに検出誤差であり、実際にはそのレンズ位置で合
焦しています。ところが、従来の焦点検出装置によれ
ば、このように無限遠よりも遠い被写体を示すようなデ
フォーカスが検出された場合であっても、そのデフォー
カス量が上記合焦判定幅より大きければ非合焦であると
判定されてしまいます。Problems to be Solved by the Invention By the way, in the focus detection, the detection result includes an erroneous error. Therefore, even if the shooting lens is at the lens position where it focuses at infinity, defocus in the far direction may be detected. However, since there should be no subject farther than infinity, the defocus at this point is an obvious detection error, and in fact the lens is in focus. However, according to the conventional focus detection device, even when such defocus indicating a subject farther than infinity is detected, if the defocus amount is larger than the focus determination width, the non-focus is detected. It will be determined to be in focus.
そこで、本願発明では、撮影レンズが無限遠に合焦する
位置にある場合に従来の焦点検出装置のように、誤った
合焦判定を行うことの無い焦点検出装置の提供を目的と
するものであります。Therefore, it is an object of the present invention to provide a focus detection device that does not make an erroneous focus determination like the conventional focus detection device when the taking lens is in the in-focus position. There is.
問題点を解決するための手段 上記目的を達成するために、本発明の特許請求の範囲の
第1項においては、撮影レンズを通過した被写体光を受
光する受光手段と、上記受光手段の出力に基いて、撮影
レンズのデフォーカス量及びデフォーカス方向を検出す
る焦点検出手段と、上記デフォーカス方向に基いて撮影
レンズを駆動する駆動手段と、上記駆動手段による駆動
によって撮影レンズが無限遠の被写体に合焦する位置に
達したことを検出するレンズ位置検出手段と、上記レン
ズ位置検出手段により撮影レンズが無限遠の被写体に合
焦する位置に達していないことが検出された場合には、
合焦判定の基準となる第1の合焦判定幅を出力して合焦
判定を行う第1合焦判定手段と、上記レンズ位置検出手
段により撮影レンズが無限遠の被写体に合焦する位置に
達していることが検出された場合には、前記第1の合焦
判定幅よりも値の大きな第2の合焦判定幅を出力して合
焦判定を行う第2合焦判定手段とを有することを特徴と
します。Means for Solving the Problems In order to achieve the above object, in the first aspect of the present invention, the light receiving means for receiving the subject light passing through the photographing lens and the output of the light receiving means are provided. Based on the focus detection means for detecting the defocus amount and the defocus direction of the photographing lens, the driving means for driving the photographing lens based on the defocus direction, and the subject whose photographing lens is infinity by the driving by the driving means. In the case where it is detected by the lens position detection means that detects that the photographing lens has reached the position of focusing on the subject at infinity,
A first focus determination unit that outputs a first focus determination width serving as a reference for focus determination to perform focus determination, and a position where the photographing lens is focused on an object at infinity by the lens position detection unit. When it is detected that it has reached, it has the 2nd focus determination means which outputs the 2nd focus determination width with a larger value than the said 1st focus determination width, and performs a focus determination. It is characterized by
また、第2項では、撮影レンズを通過した被写体光を受
光する受光手段と、上記受光手段の出力に基いて、撮影
レンズのデフォーカス量及びデフォーカス方向を検出す
る焦点検出手段と、上記デフォーカス方向に基いて撮影
レンズを駆動する駆動手段と、上記駆動手段による駆動
によって撮影レンズが無限遠の被写体に合焦する位置に
達したことを検出するレンズ位置検出手段と、上記レン
ズ位置検出手段により撮影レンズが無限遠の被写体に合
焦する位置に達していないことが検出された場合には、
合焦判定の基準となる第1の合焦判定幅を出力して合焦
判定を行う第1合焦判定手段と、上記レンズ位置検出手
段により撮影レンズが無限遠の被写体に合焦する位置に
達していることが検出され、かつ、上記デフォーカス方
向が遠方向を示しているときには、前記第1の合焦判定
幅よりも値の大きな第2の合焦判定幅を出力して合焦判
定を行う第2合焦判定手段とを有することを特徴としま
す。In the second item, the light receiving means for receiving the subject light that has passed through the photographing lens, the focus detection means for detecting the defocus amount and the defocus direction of the photographing lens based on the output of the light receiving means, and the defocusing means. Driving means for driving the photographing lens based on the focus direction, lens position detecting means for detecting that the photographing lens has reached a position where the photographing lens is focused on an object at infinity by the driving by the driving means, and the lens position detecting means. If it is detected that the shooting lens has not reached the position to focus on the subject at infinity,
A first focus determination unit that outputs a first focus determination width serving as a reference for focus determination to perform focus determination, and a position where the photographing lens is focused on an object at infinity by the lens position detection unit. When it is detected that the defocus direction is reached and the defocus direction indicates the far direction, the second focus determination width having a larger value than the first focus determination width is output to determine the focus. It is characterized by having a second focus determination means for performing.
作用 第1項の発明によると、撮影レンズが無限遠の被写体に
合焦する位置に達したと判定されているときには、第1
の合焦判定幅よりも値の大きな第2の合焦判定幅を出力
して合焦判定を行うことができます。Action According to the invention of the first aspect, when it is determined that the taking lens has reached the position where the subject at infinity is in focus, the first
It is possible to perform the focus determination by outputting the second focus determination width that is larger than the focus determination width of.
第2項の発明によると、撮影レンズが無限遠の被写体に
合焦する位置に達したと判定され、かつ、上記デフォー
カス方向が遠方向を示しているときには、第1の合焦判
定幅よりも値の大きな第2の合焦判定幅を出力して合焦
判定を行うことができます。According to the second aspect of the invention, when it is determined that the taking lens has reached the position where the subject at infinity is in focus and the defocus direction indicates the far direction, the first focus determination width is smaller than the first focus determination width. Can output the second focus determination width with a large value to perform focus determination.
実施例 本発明の実施例による自動焦点調節のためのカメラシス
テムの概略を第1図に基づいて説明する。第1図におい
て、一点鎖線の左側はズームレンズ(LZ)、右側のカメ
ラ本体(BD)であり、両者はそれぞれクラッチ(106)
(107)を介して機構的に、接続端子(JL1)〜(JL5)
(JB1)〜(JB5)を介して電気的に接続される。このカ
メラシステムでは、ズームレンズ(LZ)のフォーカス用
レンズ(FL)、ズーム用レンズ(ZL)、マスターレンズ
(ML)を通過した被写体光が、カメラ本体(BD)の反射
ミラー(108)の中央の半透光部を透過しサブミラー(1
09)によって反射されCCDイメージセンサ(FLM)に受光
されるように、その光学系が構成されている。Embodiment An outline of a camera system for automatic focusing according to an embodiment of the present invention will be described with reference to FIG. In FIG. 1, the left side of the alternate long and short dash line is the zoom lens (LZ) and the right side of the camera body (BD), both of which are respectively the clutch (106).
Connection terminals (JL1) to (JL5) mechanically via (107)
(JB1) to (JB5) are electrically connected. In this camera system, the subject light that has passed through the focusing lens (FL) of the zoom lens (LZ), the zoom lens (ZL), and the master lens (ML) is at the center of the reflection mirror (108) of the camera body (BD). The sub-mirror (1
The optical system is configured so that it is reflected by 09) and received by the CCD image sensor (FLM).
インターフェース回路(112)は合焦検出モジュール(A
FM)内のCCDイメージセンサ(FLM)を駆動したり、CCD
イメージセンサ(FLM)から被写体データを取り込んだ
り、またこのデータをAFコントローラ(113)へ送り出
したりする。AFコントローラ(113)はCCDイメージセン
サ(FLM)からの信号に基づいて、合焦位置からのズレ
量を示すデフォーカス量|ΔL|とデフォーカス方向(前
ピン,後ピン)との信号を算出する。モータ(MO1)は
これら信号に基づいて駆動され、その回転はスリップ機
構(SLP)、駆動機構(LDR)、カメラ本体側クラッチ
(107)を介してズームレンズ(LZ)に伝達される。
尚、スリップ機構(SLP)はズームレンズ(LZ)の被動
部に所定以上のトルクがかかったときにすべってモータ
(MO1)にその負荷がかからないようにするものであ
る。The interface circuit (112) is a focus detection module (A
Driving the CCD image sensor (FLM) in the FM)
It captures subject data from the image sensor (FLM) and sends this data to the AF controller (113). The AF controller (113) calculates the defocus amount | ΔL | indicating the amount of deviation from the in-focus position and the defocus direction (front focus, rear focus) based on the signal from the CCD image sensor (FLM). To do. The motor (MO1) is driven based on these signals, and its rotation is transmitted to the zoom lens (LZ) via the slip mechanism (SLP), the drive mechanism (LDR), and the camera body side clutch (107).
The slip mechanism (SLP) prevents the motor (MO1) from being overloaded by slipping when the driven part of the zoom lens (LZ) receives a torque of a predetermined value or more.
ズームレンズ(LZ)において、フォーカス用レンズ(F
L)を駆動するための焦点調節部材(102)の内周には雌
ヘリコイドネジが形成されており、これにネジ嵌合する
ように、レンズマウント(121)と一体となった固定部
(101)の外周に雄ヘリコイドネジが形成されている。
焦点調節部材(102)の外周には大歯車(103)が設けら
れており、この大歯車(103)は小歯車(104)、伝達機
構(105)を介して、レンズ側クラッチ(106)に連結さ
れている。これにより、モータ(MO1)の回転が、カメ
ラ本体のスリップ機構(SLP)、本体側のクラッチ10
7)、レンズ側のクラッチ(106)、レンズ内の伝達機構
(105)、小歯車(104)及び大歯車(103)を介して、
焦点調節部材(102)に伝達され、ヘリコイドネジによ
ってフォーカス用レンズ(FL)が光軸方向に前後に移動
して焦点調節が行なわれる。また、レンズ(FL)の駆動
量をモニターするためのエンコーダ(ENC)がカメラ本
体(BD)の駆動機構(LDR)に連結されており、このエ
ンコーダ(ENC)からレンズ(FL)の駆動量に対応した
数のパルスが出力される。In the zoom lens (LZ), the focusing lens (F
A female helicoid screw is formed on the inner circumference of the focus adjusting member (102) for driving L), and a fixing portion (101) integrated with the lens mount (121) is fitted to the female helicoid screw. ) Is formed with a male helicoid screw.
A large gear (103) is provided on the outer periphery of the focus adjusting member (102), and the large gear (103) is attached to the lens side clutch (106) via the small gear (104) and the transmission mechanism (105). It is connected. As a result, the rotation of the motor (MO1) is controlled by the slip mechanism (SLP) of the camera body and the clutch 10 on the body side.
7), through the clutch (106) on the lens side, the transmission mechanism (105) inside the lens, the small gear (104) and the large gear (103),
The focus lens (FL) is transmitted to the focus adjusting member (102) and moved back and forth in the optical axis direction by the helicoid screw to adjust the focus. An encoder (ENC) for monitoring the drive amount of the lens (FL) is connected to the drive mechanism (LDR) of the camera body (BD), and the encoder (ENC) changes the drive amount of the lens (FL). A corresponding number of pulses are output.
ここで、モータ(MO1)の回転数をNM(rot)、エンコー
ダ(ENC)からのパルス数をN、エンコーダ(ENC)の分
解能をρ(1/rot)、モータ(MO1)の回転軸からエンコ
ーダ(ENC)の取付軸までの機構伝達系の減速比をμ
P、モータ(MO1)の回転軸からカメラ本体側クラッチ
(107)までの機械伝達系の減速比をμB、レンズ側ク
ラッチ(106)から大歯車(103)までの機械伝達系を減
速比をμL、焦点調節部材(102)のヘリコイドリード
をLH(mm/rot)、フォーカス用レンズ(FL)の移動量を
Δd(mm)とすると、 N=ρ・μP・NM Δd=NM・μB・μL・LH 即ち、 Δd=N・μB・μL・LH/(P・μP) ……(1) の関係式が得られる。Here, the number of revolutions of the motor (MO1) is NM (rot), the number of pulses from the encoder (ENC) is N, the resolution of the encoder (ENC) is ρ (1 / rot), and the encoder is from the rotation axis of the motor (MO1). Reduce the reduction ratio of the mechanical transmission system up to the (ENC) mounting shaft to μ
P, the reduction ratio of the mechanical transmission system from the rotary shaft of the motor (MO1) to the camera body side clutch (107) is μB, and the reduction ratio of the mechanical transmission system from the lens side clutch (106) to the large gear (103) is μL. , LH (mm / rot) for the helicoid lead of the focus adjustment member (102) and Δd (mm) for the movement amount of the focusing lens (FL), N = ρ · μP · NM Δd = NM · μB · μL · LH That is, the relational expression of Δd = N · μB · μL·LH / (P · μP) (1) is obtained.
また、レンズをΔd(mm)だけ移動させたときの結像面
の移動量ΔL(mm)と上記Δdとの比を K op=Δd/ΔL ……(2) で表わすと、式(1)(2)より N=K op・ΔL・ρ・μP/(μB・μL・LH) ……
(3) の関係式が得られる。ここで、 KL=K op/(μL・LH) ……(4) KB=ρ・μP/μB ……(5) とすると、 N=KB・KL・ΔL ……(6) の関係式が得られる。Further, when the ratio of the movement amount ΔL (mm) of the image plane when the lens is moved by Δd (mm) and the above Δd is represented by K op = Δd / ΔL (2), it is expressed by the formula (1). From (2) N = K op · ΔL · ρ · μP / (μB · μL · LH) ……
The relational expression of (3) is obtained. Here, if KL = K op / (μL ・ LH) ・ ・ ・ (4) KB = ρ ・ μP / μB ・ ・ ・ (5), the relational expression of N = KB ・ KL ・ ΔL ・ ・ ・ (6) is obtained. To be
尚、(6)式において、ΔLは信号処理回路(112)か
らデフォーカス量|ΔL|とデフォーカス方向の信号とし
て得られる。また、(4)式のKLは、ズームレンズ(L
Z)の変倍操作用ズームリング(ZR)の回動操作により
設定された焦点距離に対応してレンズ回路(LEC)から
出力される。即ち、ズームレンズ(LZ)の回動位置に応
じたデータをコード板(FCD)が出力し、このデータが
レンズ回路(LEC)に送られ、このコード板(FCD)から
のデータに対応したアドレスに記憶されているKLのデー
タが直列でカメラ本体の読取回路(LDC)で読取られ
る。コード板(FCD)は、ズームリング(ZR)の回動設
定位置に対応したデータを出力するよう、コードパター
ンが定められている。また、レンズ回路(LEC)内に内
蔵されたROMのような固定記憶手段には、ズームリング
(ZR)により設定される焦点距離に対応したKLのデータ
が、それぞれコード板(FCD)からのデータに対応した
アドレスに予め固定記憶されている。In the equation (6), ΔL is obtained from the signal processing circuit (112) as a defocus amount | ΔL | and a signal in the defocus direction. The KL in equation (4) is a zoom lens (L
It is output from the lens circuit (LEC) corresponding to the focal length set by the rotating operation of the zoom ring (ZR) for zooming operation (Z). That is, the code plate (FCD) outputs data corresponding to the rotational position of the zoom lens (LZ), this data is sent to the lens circuit (LEC), and the address corresponding to the data from this code plate (FCD) The KL data stored in is read serially by the reading circuit (LDC) of the camera body. The code pattern of the code plate (FCD) is determined so as to output data corresponding to the rotation setting position of the zoom ring (ZR). Also, in the fixed storage means such as ROM built in the lens circuit (LEC), the KL data corresponding to the focal length set by the zoom ring (ZR) is the data from the code plate (FCD). Is fixedly stored in advance at an address corresponding to.
また、(5)式のKBはカメラ本体での前記減速比μBに
応じて固定的に定められるデータであり、このデータKB
はカメラコントローラ(111)が持っている。Further, KB in the equation (5) is data fixedly determined according to the reduction ratio μB in the camera body, and this data KB
Is owned by the camera controller (111).
ここで、カメラ本体側と読取回路(LDC)からレンズ側
のレンズ回路(LEC)へは、端子(JB1)(JL1)を介し
電源が、端子(JB2)(JL2)を介して同期用クロックパ
ルスが、端子(JB3)(JL2)を介して読込開始信号がそ
れぞれ送られる。また、レンズ回路(LEC)から読取回
路(LDC)へは、端子(JL4)(JB4)を介してデータKL
が直列で出力される。尚、端子(JB5)(JL5)は共通の
アース端子である。Here, from the camera body side and the reading circuit (LDC) to the lens circuit (LEC) on the lens side, power is supplied via the terminals (JB1) (JL1), and synchronization clock pulses are supplied via the terminals (JB2) (JL2). However, a read start signal is sent via the terminals (JB3) (JL2). In addition, data from the lens circuit (LEC) to the reading circuit (LDC) is data KL via terminals (JL4) (JB4).
Are output in series. The terminals (JB5) (JL5) are common ground terminals.
レンズ回路(LEC)は、端子(JB3)(JL3)を介して読
込開始信号が入力すると、ズームリングの回動設定によ
る焦点距離に対応したKLのデータを、カメラ本体から端
子(JB2)(JL2)を介して入力されるクロックパルスに
同期して、直列に読取回路(LDC)へ出力する。そし
て、読取回路(LDC)は端子(JB2)へ出力するクロック
パルスと同じクロックパルスに基づいて、端子からの直
列データを読み取った並列データに変換する。When the reading start signal is input through the terminals (JB3) (JL3), the lens circuit (LEC) sends the KL data corresponding to the focal length set by the zoom ring rotation setting from the camera body to the terminals (JB2) (JL2). ), And outputs to the reading circuit (LDC) in series in synchronization with the clock pulse input via. Then, the reading circuit (LDC) converts the serial data from the terminal into read parallel data based on the same clock pulse as the clock pulse output to the terminal (JB2).
カメラコントローラ(111)は、読取回路(LDC)からの
データKLとその内部のデータKBとに基づいてKL・KB=K
の演算を行なう。AFコントローラ(113)はインターフ
ェース回路(112)からの被写体像のデータを使ってデ
フォーカス量|ΔL|を求め、このデフォーカス量|ΔL|
と、カメラコントローラ(111)からのデータKとに基
づいて K・|ΔL|=N の演算を行ない、エンコーダ(ENC)で検出すべきパル
ス数を算出する。AFコントローラ(113)は、被写体像
のデータを使って求めたデフォーカス方向の信号に応じ
てモータドライバ回路(114)を通してモータ(MO1)を
時計方向或いは反時計方向に回転させ、エンコーダ(EN
C)からAFコントローラ(113)での算出値Nに等しい数
のパルスが入力した時点で、フォーカス用レンズ(FL)
が合焦位置までの移動量Δdだけ移動したと判断し、モ
ータ(MO1)の回転を停止させる。以上の説明では、カ
メラ本体(BD)側にデータKBを固定記憶させ、このデー
タKBにレンズからのデータKLを掛けることにより K=KL・KB の値を算出させていたが、K値の算出は上述の方法に限
定されるものではない。例えば、KB値が互いに異なる複
数種類のカメラ本体のいずれに対してもズームレンズが
装着可能な場合、ズームレンズ(LZ)のレンズ回路(LE
C)から特定のKB値を有するカメラ本体に対応した K 1=KL・KB 1 のデータを設定焦点距離に応じて出力するようにする。
一方、この特定機種のカメラ本体では、カメラコントロ
ーラ(111)内のデータKBと、KL・KBの演算は不要とし
て読取回路(LDC)からのデータK 1をAFコントローラ
(113)へ入力しておくようにし、上記特定のKB値とは
異なる値KB 2(≠KB 1)を有する他カメラ本体に上記レ
ンズが装着されるときは、カメラコントローラ(111)
内に KB 2/KB 1 のデータを持たせ、そして K 2=K 1・KB 2/KB 1=KL・KB 2 の演算を行なってKL・KB 2の値を得るようにしてもよ
い。The camera controller (111) uses the data KL from the reading circuit (LDC) and the data KB inside it as KL · KB = K.
Is calculated. The AF controller (113) calculates the defocus amount | ΔL | using the data of the subject image from the interface circuit (112), and this defocus amount | ΔL |
And the data K from the camera controller (111), K · | ΔL | = N is calculated to calculate the number of pulses to be detected by the encoder (ENC). The AF controller (113) rotates the motor (MO1) clockwise or counterclockwise through a motor driver circuit (114) according to a defocus direction signal obtained using the subject image data, and an encoder (EN
When the number of pulses equal to the value N calculated by the AF controller (113) is input from C), the focusing lens (FL)
Is determined to have moved by the amount of movement Δd to the in-focus position, and rotation of the motor (MO1) is stopped. In the above explanation, the data KB is fixedly stored on the camera body (BD) side, and the value of K = KL · KB is calculated by multiplying this data KB by the data KL from the lens. However, calculation of the K value Is not limited to the method described above. For example, if the zoom lens can be attached to any of multiple types of camera bodies with different KB values, the lens circuit (LEZ) of the zoom lens (LZ)
From C), output the data of K 1 = KL · KB 1 corresponding to the camera body having a specific KB value according to the set focal length.
On the other hand, in the camera body of this specific model, the data KB in the camera controller (111) and the data K 1 from the reading circuit (LDC) are input to the AF controller (113) because the calculation of KL / KB is unnecessary. When the lens is mounted on another camera body having a value KB 2 (≠ KB 1) different from the specific KB value, the camera controller (111)
It is also possible to have the data of KB 2 / KB 1 in it and perform the operation of K 2 = K 1 · KB 2 / KB 1 = KL · KB 2 to obtain the value of KL · KB 2.
特に、フォーカス用レンズ(FL)が前述のようにズーム
用レンズ(ZL)よりも前方に配置されている前群繰出型
のズームレンズの場合には、Kopの値は Kop=(f1/f)2 ……(7) f1:フォーカス用レンズの焦点距離 となり、1つのズームレンズについてのKL値またはK値
が非常に広範囲に変化する。この場合、レンズに記憶す
るデータKL或いはKを、指数部のデータと有効数字のデ
ータ(例えば、8ビットのデータであれば、上位4ビッ
トを指数部、下位4ビットを有効数字数とする)に分
け、カメラ本体の読取回路(LDC)で読取ったデータの
うち下位4ビットのデータを指数部のデータだけシフト
させてカメラコントローラ(111)へ入力するようにす
ればKLまたはKの値が大幅に変化しても充分に対応でき
る。In particular, in the case of a front lens group type zoom lens in which the focusing lens (FL) is arranged in front of the zoom lens (ZL) as described above, the value of Kop is Kop = (f1 / f) 2 …… (7) f1: It becomes the focal length of the focusing lens, and the KL value or K value for one zoom lens changes in a very wide range. In this case, the data KL or K stored in the lens is the exponent part data and the significant digit data (for example, in the case of 8-bit data, the upper 4 bits are the exponent portion and the lower 4 bits are the significant digit number). By dividing the lower 4 bits of the data read by the reading circuit (LDC) of the camera body into the camera controller (111) by shifting the data of the exponent part, the value of KL or K can be greatly increased. Even if it changes to, it can fully respond.
尚、上記第1図についての説明では、本発明の全体的な
機能および作用を理解しやすくするために本発明の装置
が回路ブロックの組合せによって構成されるように示し
たが、実際には、それらの回路ブロックの機能のほとん
どは、以下に述べるように、マイクロコンピュータ(以
下、マイコンと称する)より達成される。In the description of FIG. 1 above, the device of the present invention is shown to be configured by a combination of circuit blocks in order to facilitate understanding of the overall function and operation of the present invention. Most of the functions of these circuit blocks are achieved by a microcomputer (hereinafter, referred to as a microcomputer), as described below.
第2図は、本実施例のカメラ内の回路を概略的に示すブ
ロック図である。FIG. 2 is a block diagram schematically showing a circuit in the camera of this embodiment.
第2図において、(MNS)は電源スイッチ、(POR)はそ
の電源スイッチ(MNS)の閉成に応じて後述のAFマイコ
ン(MC1)及び制御マイコン(MC2)のリセットを行うパ
ワーオンリセット回路である。(S1)はシャッターレリ
ーズボタンの1段押下(半押し)により閉成されるスイ
ッチで、この閉成によって測光及び自動焦点調節の動作
が開始される。(S2)は該シャッターレリーズボタンの
2段押下(押し切り)によって閉成されるスイッチで、
この閉成によって露光動作が開始される。(S4)はフイ
ルムの巻き上げが完了すると閉成されるスイッチであ
る。In Fig. 2, (MNS) is a power switch, and (POR) is a power-on reset circuit that resets the AF microcomputer (MC1) and control microcomputer (MC2) described later according to the closing of the power switch (MNS). is there. (S1) is a switch that is closed by pressing the shutter release button one step (half-press), and by this closing, the operations of photometry and automatic focus adjustment are started. (S2) is a switch that is closed by pressing the shutter release button in two steps (push off),
The exposure operation is started by this closing. (S4) is a switch that is closed when the winding of the film is completed.
(MC2)は、第1図で示したカメラコントローラ(111)
の働きをするもので、カメラのシステム全体の動作をシ
ーケンス的に制御するマイクロコンピュータ(以下、制
御マイコンという)である。その端子(I1)にはスイッ
チ(S1)が接続され、端子(I2)にはアンド回路を介し
てスイッチ(S2)(S4)が接続されている。(OSC)は
その動作用の発振回路である。(MC1)は、第1図で示
したAFコントローラ(113)の働きをするもので、自動
焦点調節動作をシーケンス的に制御するマイクロコンピ
ュータ(以下、AFマイコンという)である。演算された
焦点調節状態は表示用LED(LEDL)(LEDM)(LEDR)の
いずれかを点灯させることによってファインダー内に表
示される。(MC2) is the camera controller (111) shown in Fig. 1.
Is a microcomputer that controls the operation of the entire camera system in a sequence (hereinafter, referred to as a control microcomputer). A switch (S1) is connected to the terminal (I1), and switches (S2) (S4) are connected to the terminal (I2) via an AND circuit. (OSC) is an oscillator circuit for that operation. (MC1) functions as the AF controller (113) shown in FIG. 1, and is a microcomputer (hereinafter referred to as AF microcomputer) that controls the automatic focusing operation in sequence. The calculated focus adjustment state is displayed in the viewfinder by turning on one of the display LEDs (LEDL) (LEDM) (LEDR).
(SAF/M)は自動焦点調節モード(以下、AFモードとい
う)と手動焦点調節モード(以下、nonAFモードとい
う)との切り換えのためのスイッチで、閉成されるとAF
モード、開放されていとnonAFモードとなり、そのSAF/M
信号は制御マイコン(MC2)の端子(PT6)に入力され
る。ここで、nonAFモードには、焦点調節状態の表示の
みなされてレンズは移動されないFAモードと、該表示も
なされないMANUALモードとが設けられている。(SA/R)
は自動焦点調節の完了後にシャッタレリーズを行うAF優
先モードと、自動焦点調節の完了前でもスイッチ(S2)
の閉成に応じてシャッタレリーズを行うレリーズ優先モ
ードとを選択的に切り換えるスイッチで、閉成されると
AF優先モード、開放されるとレリーズ優先モードとな
り、そのSA/R信号は制御マイコン(MC2)の端子(PT7)
に入力される。(MDR2)はフイルムの巻き上げ、巻き戻
し用のモータ(MO2)を制御するドライバ回路で、制御
マイコン(MC2)からのMM、MN信号によってモータ(MO
2)を回転方向、回転量を制御するものである。MM、MN
信号とモータ(MO2)の動作との関係を第1表に示す。(SAF / M) is a switch for switching between automatic focus adjustment mode (hereinafter referred to as AF mode) and manual focus adjustment mode (hereinafter referred to as nonAF mode), which is AF when closed.
When the mode is open, it becomes a non-AF mode and its SAF / M
The signal is input to the terminal (PT6) of the control microcomputer (MC2). Here, the non-AF mode is provided with an FA mode in which the lens is not moved because the focus adjustment state is considered to be displayed, and a MANUAL mode in which the display is not performed. (SA / R)
Is the AF priority mode that performs shutter release after the completion of automatic focus adjustment and the switch (S2) even before the completion of automatic focus adjustment
When the shutter is closed, it is a switch that selectively switches between the shutter release priority mode in which the shutter is released according to the closing of the
AF priority mode, when released, it becomes release priority mode, and its SA / R signal is the control microcomputer (MC2) terminal (PT7)
Entered in. (MDR2) is a driver circuit for controlling the motor (MO2) for winding and rewinding the film, and the motor (MO2) is controlled by the MM and MN signals from the control microcomputer (MC2).
2) controls the direction and amount of rotation. MM, MN
Table 1 shows the relationship between the signals and the operation of the motor (MO2).
(EDO)はプログラムモード/シャッタ速度優先モード
/絞り優先モード/マニュアルモードなどの露出制御モ
ードのうち手動により選択されたモードを制御マイコン
(MC2)に伝達するとともに、そのモードによる露出制
御に必要なシャッタ速度、絞り値、フイルム感度、露出
補正値などの情報をも制御マイコン(MC2)に伝達する
ための露出制御設定回路である。(BS1)(BC2)はその
データラインである。 (EDO) transmits the manually selected mode among the exposure control modes such as program mode / shutter speed priority mode / aperture priority mode / manual mode to the control microcomputer (MC2) and is required for the exposure control in that mode. An exposure control setting circuit for transmitting information such as shutter speed, aperture value, film sensitivity, and exposure correction value to the control microcomputer (MC2). (BS1) and (BC2) are the data lines.
(LMC)は測光回路で、そのANI信号はA/D変換用基準電
圧を示し、VRI信号はアナログの測光信号を示し、これ
らはそれぞれ制御マイコン(MC2)の端子(PT7)(PT
8)に入力されている。(EXD)は制御マイコン(MC2)
内で演算された適正露出値(シャッタ速度、絞り値な
ど)を表示する露出表示回路で、(BS3)はそのデータ
ラインである。(EXC)は、制御マイコン(MC2)内で演
算された適正露出値(シャッタ速度、絞り値など)及び
設定された露出値に応じて露出制御を行う露出制御回路
で、(BS4)はそのデータラインである。(LMC) is a photometric circuit, the ANI signal of which indicates the reference voltage for A / D conversion, the VRI signal of which indicates an analog photometric signal, and these are respectively the terminals (PT7) (PT7) (PT7) of the control microcomputer (MC2).
8) has been entered. (EXD) is the control microcomputer (MC2)
An exposure display circuit that displays the proper exposure value (shutter speed, aperture value, etc.) calculated in (BS3) is its data line. (EXC) is an exposure control circuit that controls the exposure according to the proper exposure value (shutter speed, aperture value, etc.) calculated in the control microcomputer (MC2) and the set exposure value, and (BS4) is the data It is a line.
(FLS)はカメラに装着された電子閃光装置内の回路
(以下、フラッシュ回路という)を示し、この回路(FL
S)は電子閃光装置がカメラに装着されると、端子(ST
1)(ST2)(ST3)(ST4)(ST5)及び(GND)によって
カメラ側の回路と接続される。このフラッシュ回路(FL
S)の詳細を第3図に示す。(FLS) indicates a circuit (hereinafter referred to as a flash circuit) in the electronic flash device attached to the camera.
S) is the terminal (ST
1) Connected to the camera side circuit by (ST2) (ST3) (ST4) (ST5) and (GND). This flash circuit (FL
The details of S) are shown in FIG.
第3図は、フラッシュ回路(FLS)を示し、同図におい
て、(20)はメインスイッチ、(22)は電源電池で、メ
インスイッチ(20)が閉成されると電源電池(22)の電
圧はDC−DCコンバータ(24)によって昇圧され、ダイオ
ード(26)を介して主コンデンサ(28)に供給される。
(GND)はアース端子である。主コンデンサ(28)の充
電電圧は充電モニター回路(30)よってモニターされ、
その電圧が所定量に達すると充電完了検出回路(32)か
ら充電完了信号が出力され、これはアンド回路(34)を
介して端子(ST2)に伝達される。カメラ側では、この
充電完了信号を受けた後に、端子(ST1)を介して発光
開始信号を出力し、これによってトリガー回路(36)が
トリガーされてSCR(38)が導通し閃光放電管(40)が
主コンデンサ(28)のエネルギーによって発光しはじめ
る。この発光開始信号は発光開始モニター回路(42)に
も入力され、この発光開始モニター回路(42)は発光開
始信号を受けると、アンド回路(34)を閉じて充電完了
信号の端子(ST2)への伝達を阻止する。カメラ側の測
光回路(LMC)によって適正露出に達したことが検出さ
れると、カメラ側から端子(ST3)に発光停止信号を出
力し、発光停止回路(44)はこの発光停止信号を受け
て、閃光放電管(40)の発光を停止させる。FIG. 3 shows a flash circuit (FLS), in which (20) is a main switch, (22) is a power battery, and when the main switch (20) is closed, the voltage of the power battery (22) is changed. Is boosted by the DC-DC converter (24) and supplied to the main capacitor (28) through the diode (26).
(GND) is the ground terminal. The charge voltage of the main capacitor (28) is monitored by the charge monitor circuit (30),
When the voltage reaches a predetermined amount, the charge completion detection circuit (32) outputs a charge completion signal, which is transmitted to the terminal (ST2) via the AND circuit (34). On the camera side, after receiving this charge completion signal, it outputs a light emission start signal via the terminal (ST1), which triggers the trigger circuit (36) to turn on the SCR (38) and turn on the flash discharge tube (40 ) Starts to emit light by the energy of the main capacitor (28). The light emission start signal is also input to the light emission start monitor circuit (42). When the light emission start monitor circuit (42) receives the light emission start signal, the AND circuit (34) is closed and the charge completion signal terminal (ST2) is input. Block the transmission of. When the camera's photometry circuit (LMC) detects that the correct exposure has been reached, the camera outputs a flash stop signal to the terminal (ST3), and the flash stop circuit (44) receives this flash stop signal. , Stop the light emission of the flash discharge tube (40).
(45)は、被写体が暗いときに電子閃光装置から焦点調
節状態検出のための補助照明を行うように閉成されるAF
補助光スイッチで、これが閉成されると端子(ST5)か
ら補助光による焦点検出のための照明が可能であること
を示すAF補助光OK信号が出力される。そして、カメラ側
でこの補助光を要すると判断した場合は、端子(ST4)
にAF補助光発光信号が入力され、これによってトランジ
スタ(46)が導通し、補助光用LED(48)が発光され
る。(45) is an AF that is closed to provide auxiliary illumination from the electronic flash device to detect the focus adjustment state when the subject is dark.
When the auxiliary light switch is closed, the terminal (ST5) outputs an AF auxiliary light OK signal indicating that illumination for focus detection by auxiliary light is possible. If the camera determines that this auxiliary light is required, the terminal (ST4)
An AF auxiliary light emission signal is input to the transistor, the transistor (46) becomes conductive, and the auxiliary light LED (48) emits light.
第2図に戻って、(Sx)はカメラのシンクロスイッチ、
(FLB)は電子閃光装置の発光時間を制御する発光制御
回路である。(LEC)(LDC)は、それぞれ、第1図と同
様、レンズ内のレンズ回路及びカメラ内の読取回路であ
り、カメラにレンズが装着されると両回路は端子(JB
1)〜(JB5)及び(JL1)〜(JL5)によって互いに接続
される。図中、(VL)は電源、(RES)は読取開始信
号、(CL)はクロックパルス、(DATA)はデータ、
(G)はアースをそれぞれ示す。読取回路(LDC)には
制御マイコン(MC2)の端子(SCK)からクロックパルス
が入力されており、該読取回路(LDC)は制御マイコン
(MC2)の端子(TXD)から出力されるシリアルデータ出
力信号に応じて、その端子(RXD)にレンズのデータを
シリアルで入力する。Returning to FIG. 2, (Sx) is the synchro switch of the camera,
(FLB) is a light emission control circuit that controls the light emission time of the electronic flash device. (LEC) and (LDC) are the lens circuit inside the lens and the reading circuit inside the camera, respectively, as in Fig. 1. When the lens is attached to the camera, both circuits are
1) to (JB5) and (JL1) to (JL5) are connected to each other. In the figure, (VL) is the power supply, (RES) is the read start signal, (CL) is the clock pulse, (DATA) is the data,
(G) indicates ground respectively. A clock pulse is input to the reading circuit (LDC) from the control microcomputer (MC2) terminal (SCK), and the reading circuit (LDC) is output from the control microcomputer (MC2) terminal (TXD) serial data output. Lens data is serially input to that terminal (RXD) according to the signal.
(FLM)は第1図図示のCCDイメージセンサ、(IF1)は
センサ駆動用のインターフェース回路、(MDR1)は第1
図の(114)に相当し、レンズ駆動用モータ(MO1)の駆
動を制御するドライバー回路、(ENC)は第1図と同様
のエンコーダである。(FLM) is the CCD image sensor shown in FIG. 1, (IF1) is the sensor driving interface circuit, and (MDR1) is the first
A driver circuit (ENC) corresponding to (114) in the figure, which controls the driving of the lens driving motor (MO1), is an encoder similar to that in FIG.
第4図及び第5図は第2図の制御マイコン(MC2)の動
作を示すフローチャートである。以下このフローチャー
トに基づいて第2図のシステムの動作を説明するが、そ
の前にまず本実施例で用いられる各フラグの名称及びそ
の内容について第2表及び第3表に示す。4 and 5 are flowcharts showing the operation of the control microcomputer (MC2) shown in FIG. The operation of the system shown in FIG. 2 will be described below with reference to this flowchart. Before that, the names and contents of the flags used in this embodiment are shown in Tables 2 and 3.
第4図において、まずスイッチ(S1)が閉成され端子
(I1)に割込信号が入力すると制御マイコン(MC2)は
動作を開始する。まず、ステップS1で、レリーズフラグ
RLFをクリアしておく。このフラグは、カメラの撮影モ
ードの連続撮影(以下連写モードと呼ぶ)と単発撮影
(以下単写モードと呼ぶ)との区別に用いるフラグであ
る。ここで、連写モードとは、一度のスイッチ(S2)の
ONで続けて写真がとれるモードを指し、単写モードと
は、一度のスイッチ(S2)のONに対し一枚の撮影ができ
るモードを指す。次にS2で制御マイコン(MC2)の端子
(Xout)からAFマイコン(MC1)にAFマイコン駆動クロ
ックCKを供給する。次にS3でシリアル入出力動作を複数
回行なってレンズ回路(LEC)から複数のデータを取込
んで、自動焦点調節に必要な変換係数(KROM)、補助光
の発する波長の光と可視光との合焦位置の補正用データ
(△IR)、バックラッシュデータ(BKLSH)、AF(自動
焦点調節)又はFA(焦点調節状態表示)のための焦点検
出演算が可能かどうかを判断するためのAF用開放F値
(AFAV0)、レンズ装着の判別(LENSF)、AF用カプラー
軸の有無(AFCF)、焦点検出可能なレンズかどうか(FA
ENL)の各信号を制御マイコン(MC2)内のメモリに保存
しておく。ステップS4では露出制御などのための設定デ
ータを出力する露出制御値設置回路(EDO)からのデー
タを取り込む。これには、露出に関したデータと単写又
は連写モードの別が含まれている。S5では制御マイコン
(MC2)の端子(PT1)から出力されるAFS信号を“Low"
にする。これはAFマイコン(MC1)の割り込み端子(INT
1)に入力されており、この信号の立ち下りによってAF
マイコン(MC1)は動作を開始する。同時に端子(PT2)
からのINREL信号は“High"としておく。これはAFマイコ
ン(MC1)の割り込み端子(INT2)に入力されている
が、割り込みは立ち下りでかかるため、この割り込みは
かからない。 In FIG. 4, when the switch (S1) is closed and an interrupt signal is input to the terminal (I1), the control microcomputer (MC2) starts its operation. First, in step S1, the release flag
Clear RLF. This flag is a flag used for distinguishing between continuous shooting (hereinafter referred to as continuous shooting mode) and single-shot shooting (hereinafter referred to as single shooting mode) in the shooting modes of the camera. Here, the continuous shooting mode means the switch (S2)
When it is ON, it refers to the mode in which you can take pictures continuously, and single-shot mode refers to the mode in which one shot can be taken with one switch (S2) turned ON. Next, in S2, the AF microcomputer drive clock CK is supplied from the control microcomputer (MC2) terminal (Xout) to the AF microcomputer (MC1). Next, in S3, serial input / output operations are performed multiple times to capture multiple data from the lens circuit (LEC), and the conversion coefficient (KROM) necessary for automatic focus adjustment, the light of the wavelength emitted by the auxiliary light, and the visible light AF for determining whether focus detection calculation is possible for AF focus position correction data (△ IR), backlash data (BKLSH), AF (automatic focus adjustment) or FA (focus adjustment status display) For open F value (AFAV0), lens attachment discrimination (LENSF), presence or absence of AF coupler axis (AFCF), whether the lens can detect focus (FA
Save each signal of (ENL) in the memory in the control microcomputer (MC2). In step S4, data from the exposure control value setting circuit (EDO) that outputs setting data for exposure control and the like is fetched. This includes data relating to exposure and whether to use single-shot or continuous-shot mode. At S5, set the AFS signal output from the control microcomputer (MC2) terminal (PT1) to "Low".
To This is the interrupt pin (INT of the AF microcomputer (MC1)
The signal is input to 1) and the AF
The microcomputer (MC1) starts operation. Terminal (PT2) at the same time
The INREL signal from is set to "High". This is input to the interrupt terminal (INT2) of the AF microcomputer (MC1), but this interrupt does not occur because the interrupt occurs at the falling edge.
第4図のフローチャートではS5からS10、S22からS3へと
ループしてくる場合がある。ループ中にS5を通過した場
合には、何度もAFS信号は立ち下がりINREL信号は立ち上
がるが、すでにAFS信号は"Low"、INREL信号は“High"で
あるのでAFマイコン(MC1)へは割り込みはかからな
い。AFマイコン(MC1)の動作がスタートすると、制御
マイコン(MC2)からAFマイコン(MC1)の動作のための
設定データや、レンズからのデータがシリアルで送られ
る。制御マイコン(MC2)の端子(SCK)からのクロック
信号に同期させて、制御マイコン(MC2)の端子(TXD)
からシリアルで8ビットデータが5バイト、第4表のよ
うな内容が出力され、AFマイコン(MC1)の端子(TXD)
に入力される。In the flowchart of FIG. 4, there may be a case where a loop is made from S5 to S10 and S22 to S3. When S5 is passed during the loop, the AFS signal falls and the INREL signal rises many times, but since the AFS signal is already "Low" and the INREL signal is "High", it interrupts the AF microcomputer (MC1). It does not take. When the operation of the AF microcomputer (MC1) is started, the setting data for the operation of the AF microcomputer (MC1) and the data from the lens are serially sent from the control microcomputer (MC2). The control microcomputer (MC2) terminal (TXD) is synchronized with the clock signal from the control microcomputer (MC2) terminal (SCK).
Serially outputs 5 bytes of 8-bit data and the contents shown in Table 4 are output, and the AF microcomputer (MC1) terminal (TXD)
Entered in.
制御マイコン(MC2)は、AFマイコン(MC1)の端子(P1
1)から制御マイコン(MC2)の端子(PT4)へ出るDTRQ
信号をデータ要求の合図とみて、データ出力を開始す
る。制御マイコン(MC2)ではS6でこのDTRQ信号が“Lo
w"になるのを待ち、“Low"になればS7へ進み、データを
送る。S7はAESIOはAFマイコン(MC1)へマイコンの動作
モードを決めるためのデータを作り、シリアルでデータ
を送る部分であるが、第5図に別ルーチンとして示して
ある。 The control microcomputer (MC2) is connected to the AF microcomputer (MC1) terminal (P1
DTRQ from 1) to control microcomputer (MC2) terminal (PT4)
The signal is regarded as a signal of data request, and data output is started. In the control microcomputer (MC2), this DTRQ signal is "Lo" in S6.
Wait until it becomes "w", and if it becomes "Low", proceed to S7 and send the data. In S7, AESIO makes data for determining the operation mode of the AF microcomputer (MC1), and sends the data serially However, it is shown as another routine in FIG.
第5図のステップS29から始まるAESIOのルーチンの最初
はまず、AFFL,RDY,DR,AFC,FAENの各信号の入っている制
御マイコン(MC2)の第5シリアルデータのRAMをクリア
しておく。S30,S31,S32ではEAEN信号を決める。まずS30
でレンズ回路(LEC)から来るデータのLENSF信号を見
て、LENSF=0でレンズなしという信号になっていれ
ば、FAEN信号は“0"のままS33へ進む。レンズが装着さ
れていてLENSF=1の場合、FAEN信号が“1"すなわち焦
点検出可能のレンズであれば、S32へ進みFAEN信号を
“1"にしておき、FAENL信号が“0"ならFAEN信号は“0"
のままとなる。At the beginning of the AESIO routine starting from step S29 in FIG. 5, first, the RAM of the fifth serial data of the control microcomputer (MC2) containing the signals AFFL, RDY, DR, AFC, FAEN is cleared. The EAEN signal is determined in S30, S31, and S32. First S30
Check the LENSF signal of the data coming from the lens circuit (LEC), and if LENSF = 0 indicates no lens, the FAEN signal remains “0” and the process proceeds to S33. If the lens is attached and LENSF = 1, if the FAEN signal is "1", that is, if the lens is focus-detectable, proceed to S32 and set the FAEN signal to "1". If the FAENL signal is "0", the FAEN signal is 0"
Will remain.
次にS33からS35ではAFC信号を決める。S33で端子(PT
6)に入力されるSAF/M信号を見る。SAF/M信号は、カメ
ラ外部からカメラレンズを自動焦点調節させるか否かを
決めるスイッチで、“High"であればAFモード(カメラ
本体内で装着された撮影レンズの焦点調節状態を検出
し、その結果に応じて撮影レンズの焦点調節を自動的に
行うモード)、“Low"であればnonAFモードとなる。S33
でSAF/M信号が“0"であれば、AFC信号は“0"のままS36
へ進み、“1"であればS34に進みレンズからのデータのA
FCF信号を見る。S34でAFCF信号が“1"であればレンズに
AF用のカプラー軸があるということで、S35でAFC信号を
“1"にしておく。すなわち、レンズにAF用のカプラー軸
がありかつカメラの動作スイッチ(SAF/M)が閉成され
てAF側にある時に、AFC信号が“1"になり、これ以外は
“0"としておく。Next, in S33 to S35, the AFC signal is determined. Terminal at S33 (PT
Check the SAF / M signal input to 6). The SAF / M signal is a switch that decides whether or not to automatically adjust the focus of the camera lens from outside the camera. If it is "High", the AF mode (the focus adjustment state of the shooting lens mounted in the camera body is detected, Depending on the result, the mode for automatically adjusting the focus of the taking lens), and if it is "Low", it will be the non-AF mode. S33
If the SAF / M signal is “0” in, the AFC signal remains “0” in S36.
If it is "1", go to S34 and use the data A from the lens.
Watch the FCF signal. If the AFCF signal is "1" in S34, select the lens
Since there is a coupler axis for AF, set the AFC signal to "1" in S35. That is, when the lens has the coupler axis for AF and the operation switch (SAF / M) of the camera is closed to be on the AF side, the AFC signal becomes "1", and other than that, it is set to "0".
S36,S37でカメラの駆動モードの設定が連写モードであ
れば、DR信号を“1"にし、単写モードであればDR信号は
“0"のままとなる。次にS38,S39でカメラに装着された
電子閃光装置からの信号をチェックし、電子閃光装置が
カメラに取り付けられて、AF用補助光スイッチ(45)が
入っていればフラッシュ回路(FLS)の端子(ST5)が
“High"状態になって端子(PT11)に入り、S38でPT11=
“High"であれば、S39でAFFL信号を“1"にしておく。こ
れは、AFマイコン(MC1)に対してはAF用補助光発光可
能という信号になる。(詳細は後述する。) S40,S41ではRDY信号をセットする。電子閃光装置の充電
が完了すればフラッシュ回路(FLS)の端子(ST2)が
“High"状態になり、これが端子(PT9)に入力されてい
るのでS40でPT9=“High"であればS41に進みRDY信号を
“1"にセットする。この信号も後述する補助光を用いる
焦点検出時(以下、補助光AFモードという)に使用す
る。そして、S42でレンズから送られてきたデータをAF
マイコン(MC1)へ送り出すためにシリアル転送用レジ
スタにセットする。S43ではシリアル転送開始のためのC
SAF信号を“High"にする。これは、AFマイコン(MC1)
からのシリアル転送要求のDTRQ信号に返答したものでCS
AF信号が“High"になると、AFマイコン(MC1)がシリア
ルデータの取り込みを始める。そして、S44で8ビット
5バイトのデータをAFマイコン(MC1)へ転送する。S45
でCSAF信号“Low"にもどしてシリアル転送が終了する。If the camera drive mode setting in S36 and S37 is continuous shooting mode, the DR signal is set to "1", and in single shooting mode, the DR signal remains "0". Next, in S38 and S39, the signal from the electronic flash device attached to the camera is checked, and if the electronic flash device is attached to the camera and the AF auxiliary light switch (45) is on, the flash circuit (FLS) The terminal (ST5) goes into the "High" state and enters the terminal (PT11). At S38, PT11 =
If it is "High", the AFFL signal is set to "1" in S39. This is a signal to the AF microcomputer (MC1) that the AF auxiliary light can be emitted. (Details will be described later.) Set the RDY signal in S40 and S41. When charging of the electronic flash device is completed, the terminal (ST2) of the flash circuit (FLS) goes to the "High" state, and this is input to the terminal (PT9). Go ahead and set the RDY signal to "1". This signal is also used at the time of focus detection using auxiliary light described below (hereinafter referred to as auxiliary light AF mode). Then, AF the data sent from the lens in S42
Set it in the serial transfer register to send it to the microcomputer (MC1). In S43, C to start serial transfer
Set the SAF signal to "High". This is an AF microcomputer (MC1)
In response to the DTRQ signal of the serial transfer request from CS
When the AF signal becomes "High", the AF microcomputer (MC1) starts capturing serial data. Then, in S44, the 8-bit 5-byte data is transferred to the AF microcomputer (MC1). S45
Then, the CSAF signal is returned to "Low" and the serial transfer is completed.
次に第4図のメインルーチンにもどって、次のステップ
S8へ進む。ここでは測光回路(LMC)から、測光出力のA
NI信号とA/D変換用基準電圧のVRI信号とを取り入れて、
測光出力をA/D変換し、露出演算に必要なデータとして
用意しておく。次にS9で定常光用、フラッシュ光用の露
出演算を行う。次のS10では制御マイコン(MC2)の端子
(I2)が“Low"になっているかどうかをチェックし、レ
リーズされたどうかを見る。シャッタがチャージされ、
スイッチ(S4)がONの状態でレリーズボタンが2段押し
され、スイッチ(S2)がONになれば、端子(I2)は“Lo
w"になっているはずである。端子(I2)が“High"であ
れば、レリーズされていないのでS25へ進む。S25ではレ
リーズフラグRLFをクリアしておく。そして、ステップS
26では電子閃光装置から充電完了信号がきているかどう
かを判別し、充電完了信号がきている場合にはS27に進
みフラッシュ光撮影用データを表示部(EXD)に送り、
充電完了信号が来ていなければS28に進み定常光撮影デ
ータを表示部(EXD)に送って表示しステップS22に移行
する。そしてステップS22ではスイッチ(S1)が閉成さ
れたままで端子(I1)が“Low"になっているかどうかを
判別して“Low"になっていればステップS3に戻って前述
と同様の動作を繰り返す。Next, return to the main routine of FIG. 4 and perform the next step.
Go to S8. Here, from the photometry circuit (LMC),
Taking in the NI signal and the VRI signal of the reference voltage for A / D conversion,
A / D convert the photometric output and prepare it as the data required for exposure calculation. Next, in S9, the exposure calculation for the constant light and the flash light is performed. At the next S10, check whether the terminal (I2) of the control microcomputer (MC2) is "Low" and see if it is released. The shutter is charged,
When the switch (S4) is on and the release button is pressed in two steps and the switch (S2) is on, the terminal (I2) is at "Lo".
It should be w ". If the terminal (I2) is" High ", it means that the release has not been made, so the operation proceeds to S25. At S25, the release flag RLF is cleared.
At 26, it is determined whether or not the charge completion signal is received from the electronic flash device, and if the charge completion signal is received, the process proceeds to S27 to send the flash light photographing data to the display unit (EXD),
If the charging completion signal is not received, the process proceeds to S28, in which the stationary light imaging data is sent to the display unit (EXD) for display, and the process proceeds to step S22. Then, in step S22, it is determined whether the terminal (I1) is "Low" with the switch (S1) still closed, and if it is "Low", the process returns to step S3 and the same operation as described above is performed. repeat.
一方、ステップS22で端子(I1)が“High"になっている
ことが判別されると、S23へ進み、AFマイコン(MC1)の
動作をストップさせる。ストップのさせ方は、AFマイコ
ン(MC1)の端子(INT1)にAFS信号で割り込みをかけ
る。AFS信号によるAFマイコン(MC1)のスタートと、AF
S信号によるストップのためのわりこみと区別するため
に、ストップ用割り込みは立ち下がり後50μs未満で再
び立ち上がるようにしている(第17図(B)参照)。な
お測光のみのフローS26〜S28から割り込みがかかる時は
AFS信号は“Low"であるので、ストップ信号は一旦“Hig
h"となってから立ち下がり、レリーズのフローS11〜S21
から割り込みがかかる時はAFS信号は“High"であるので
ストップ信号はその立ち下がりとなる。この割り込みに
よってAFマイコン(MC1)はストップモードに入り、自
動焦点調節動作も止まる。S24では表示部(EXD)の露出
表示を消し、制御マイコン(MC2)は動作を停止する。On the other hand, when it is determined in step S22 that the terminal (I1) is "High", the process proceeds to S23, and the operation of the AF microcomputer (MC1) is stopped. The way to stop is to interrupt the AF microcomputer (MC1) terminal (INT1) with the AFS signal. Start of AF microcomputer (MC1) by AFS signal and AF
In order to distinguish it from the interruption for stopping by the S signal, the stop interrupt is made to rise again in less than 50 μs after falling (see FIG. 17 (B)). If only the metering flow is interrupted from S26 to S28,
Since the AFS signal is “Low”, the stop signal is once “Hig
Release after "h", flow of release S11 ~ S21
When an interrupt occurs, the AFS signal is "High", so the stop signal falls. This interrupt causes the AF microcomputer (MC1) to enter stop mode and stop the automatic focus adjustment operation. In S24, the exposure display on the display (EXD) is turned off, and the control microcomputer (MC2) stops operating.
次に測光を繰り返し、フローがループしている最中にレ
リーズされれば、端子(I2)が“Low"となる。するとS1
0のチェックで今度はS11へ進む。次にレリーズフラグRL
Fをチェックし1であればS26へ進む。これは、単写モー
ドで1度レリーズされていればS21〜S22でレリーズフラ
グRLFが1にセットされており、レリーズボタン2段押
しでスイッチ(S2)がONになっている状態のままでは、
再びレリーズされない。一方、スイッチ(S1)をONにし
たままスイッチ(S2)をOFFした場合には、ステップS10
からS25へ進み、レリーズフラグRLFがクリアされる。す
なわち次に再びスイッチ(S2)がONになった場合には、
S11からS12へ進みレリーズされることになる。Next, if photometry is repeated and the flow is released while the flow is looping, the terminal (I2) becomes "Low". Then S1
Check 0 and go to S11. Next, release flag RL
Check F and if 1, go to S26. This means that if the shutter is released once in single shooting mode, the release flag RLF is set to 1 in S21 to S22, and if the switch (S2) is turned on by pressing the release button two steps,
Not released again. On the other hand, if the switch (S2) is turned off while the switch (S1) is turned on, step S10
From S25, the release flag RLF is cleared. That is, when the switch (S2) is turned on again next time,
It will be released from S11 to S12.
次にS12で、端子(PT7)に入力されているAF優先/レリ
ーズ優先の切り換え信号をチェックする。ここでAF優先
モードとは、スイッチ(S2)をONにしていても自動焦点
調節でピント合わせが完了して始めてレリーズをするモ
ードで、レリーズ優先モードとは、自動焦点調節中ピン
トが合わなくてもスイッチ(S2)が閉成されればいつで
もレリーズするモードである。S12ではSA/R信号が“Hig
h"(SA/R=1)であればAF優先モードとなりS13へ進
み、AFE信号をチェックする。これは、AFマイコン(MC
1)の端子(P12)から出力される信号で、AFマイコン
(MC2)が焦点検出して合焦であると判断した時に“Hig
h"になる信号である。S13は合焦状態かどうかを判断し
ていることになる。そして、合焦であればAFE信号は
“1"でありS14に進み、レリーズに入る。S13でAFE信号
が“0"であればS26へ行きレリーズされない。一方S12で
レリーズ優先モードであればS14へ進みレリーズされ
る。S12でチェックするSA/R信号は、カメラに取り付け
られているスイッチの手動選択に応じた信号であるが、
これは又、不図示のセルフタイマースイッチにも連動さ
れており、セルフタイマーが起動されると、AF優先モー
ドの状態にスイッチがあっても、レリーズ優先モードに
切り換わる。セルフタイマー時はレリーズ優先モードと
なるわけである。なおセルフタイマー使用時は、S14とS
15の間に不図示のセルフタイマー用時間待ち、例えば、
10秒間の時間待ちが入る。又、端子(PT7)には、カメ
ラボディに設けられたスイッチ(SA/F)が接続されてい
るが、これをカメラボディの外部へ出して、外部コント
ローラ(例えばコントローラブル裏ぶた)或いはリモコ
ン用のレシーバー等にゆだねてもよい。Next, in S12, the AF priority / release priority switching signal input to the terminal (PT7) is checked. Here, the AF priority mode is the mode in which the shutter is released only after focusing is completed by the automatic focus adjustment even when the switch (S2) is turned on.The release priority mode is the focus that is not adjusted during automatic focus adjustment. Is a mode that releases any time the switch (S2) is closed. In S12, SA / R signal is "Hig
If h "(SA / R = 1), the AF priority mode is set, and the process advances to S13 to check the AFE signal. This is the AF microcomputer (MC
When the AF microcomputer (MC2) detects the focus by the signal output from the terminal (P12) of 1) and determines that it is in focus, “Hig
It is a signal which becomes "h". S13 judges that it is in the in-focus state. If it is in focus, the AFE signal is "1" and the process proceeds to S14 to enter the release. If the signal is “0”, it goes to S26 and is not released. On the other hand, if it is the release priority mode in S12, it goes to S14 and is released. Is a signal according to
This is also linked to a self-timer switch (not shown), and when the self-timer is activated, it switches to the release priority mode even if the switch is in the AF priority mode. During the self-timer, the release priority mode is set. When using the self-timer, S14 and S
Wait time for self-timer (not shown) between 15,
Wait for 10 seconds. Also, the switch (SA / F) provided on the camera body is connected to the terminal (PT7), but this switch is output to the outside of the camera body and used for an external controller (for example, a controllable back cover) or remote You can leave it to the receiver.
次にS14ではAFマイコン(MC1)に対し端子(PT2)から
レリーズしたというINREL信号を出す。INREL信号はAFマ
イコン(MC1)のわりこみ端子(INT2)に入力され、こ
の信号の立ち下りによって割り込みがかかり、AFマイコ
ン(MC1)は、レリーズルーチンへ飛ぶ。そして自動焦
点調節中でレンズ駆動中であっても動作を止めて、表示
を消し、レリーズ終了を待つ。S14では、次のレリーズ
終了と、AFマイコン(MC1)の動作開始に備えて、AFS信
号を“High"にしておく。次にステップS15に移行してフ
ラッシュ回路(FLS)から充電完了信号が入力している
かどうかを端子(PT9)を見て判別し、入力されていれ
ばS16へ進み閃光撮影用の露出制御データを露出制御回
路(EXC)に送り、充電完了信号が入力していなければS
17で定常光用の露出制御データを露出制御回路(EXC)
に送る。そして、S18で露出制御動作を開始させる。Next, in S14, an INREL signal indicating that the release has been made from the terminal (PT2) to the AF microcomputer (MC1) is issued. The INREL signal is input to the interrupt terminal (INT2) of the AF microcomputer (MC1), and the falling edge of this signal causes an interrupt, causing the AF microcomputer (MC1) to jump to the release routine. Then, even if the lens is being driven during automatic focusing, the operation is stopped, the display is erased, and the release is completed. In S14, the AFS signal is set to "High" in preparation for the end of the next release and the start of the operation of the AF microcomputer (MC1). Next, in step S15, it is determined whether the charging completion signal is input from the flash circuit (FLS) by looking at the terminal (PT9). If it is input, the process proceeds to step S16 and the exposure control data for flash photography is set. Send to the exposure control circuit (EXC), S if the charge completion signal is not input
Exposure control circuit (EXC) for exposure control data for ambient light at 17
Send to. Then, the exposure control operation is started in S18.
露出制御動作が終わればS19でフィルムの自動巻き上げ
動作を行う。そして、S20,S21で前述したレリーズフラ
グRFLを、単写モードの時に“1"をセットしS22へ進む。
そして依然としてスイッチ(S1)が閉成され、制御マイ
コン(MC2)の端子(I1)が“Low"であればステップS3
に移行してデータ取り込み、演算・表示動作を繰り返
し、スイッチ(S1)が閉成されてなければ前述のステッ
プS23に移行して前述と同様の動作を行なった後、制御
マイコン(MC2)は動作を停止する。以上で、制御マイ
コン(MC2)のフローの説明をおわる。When the exposure control operation is completed, the film is automatically wound up in S19. Then, the release flag RFL described above in S20 and S21 is set to "1" in the single shooting mode, and the process proceeds to S22.
If the switch (S1) is still closed and the terminal (I1) of the control microcomputer (MC2) is "Low", step S3
If the switch (S1) is not closed, move to step S23 and perform the same operation as above, then the control microcomputer (MC2) operates. To stop. This concludes the description of the flow of the control microcomputer (MC2).
第6図は、本実施例のインターフェース回路(IF1)の
詳細を示す回路図である。以下、この回路についてその
動作と共に説明する。FIG. 6 is a circuit diagram showing details of the interface circuit (IF1) of this embodiment. The operation of this circuit will be described below.
シャッタレリーズボタンの一段押しで閉成されるスイッ
チ(S1)のONが制御マイコン(MC2)によって検知され
ると、制御マイコン(MC2)からの信号に応じてAFマイ
コン(MC1)は焦点調節の動作を開始する。When the control microcomputer (MC2) detects that the switch (S1) that is closed by pressing the shutter release button one step is ON, the AF microcomputer (MC1) performs focus adjustment operation according to the signal from the control microcomputer (MC2). To start.
まず、AFマイコン(MC1)からのIOS信号が“Low"にさ
れ、AFマイコン(MC1)からインターフェース回路(IF
1)へ向かってNBφ〜NB3の信号が出力される方向のゲー
トが開く。そして、AFマイコン(MC1)からCCDイメージ
センサ(FLM)にパルス状の積分クリア信号ICGがNB2の
信号として出力され、これによりCCDイメージセンサ(F
LM)の各画素が初期状態にリセットされると共に、CCD
イメージセンサに内蔵された輝度モニター回路(MC)の
出力AGCOSが電源電圧レベルにリセットされる。又、AF
マイコン(MC1)はこれと同時に端子(NB5)から“Hig
h"レベルのシフトパルス発生許可信号SHENを出力する。
そして、積分クリア信号ICGが消えると同時に、CCDイメ
ージセンサ(FLM)内の各画素では光電流の積分が開始
され、同時に輝度モニター回路(MC)の出力AGCOSが被
写体輝度に応じた速度で低下し始めるが、CCDイメージ
センサに内蔵された基準信号発生回路(RS)からの基準
信号出力DOSは一定の基準レベルに保たれる。AGCコント
ローラ(406)はAGCOSをDOSと比較し、所定時間(焦点
検出時には100msec.)内にAGCOSがDOSに対してどの程度
低下するかによって、利得可変の差動アンプ(408)の
利得を制御する。又、AGCコントローラ(406)は積分ク
リア信号ICGの消滅後、所定時間内にAGCOSがDOSに対し
て所定レベル以上低下したことを検出すると、その時
“High"レベルのTINT信号を出力する。このTINT信号は
アンド回路(AN)及びオア回路(OR1)を通ってシフト
パルス信号出力回路(410)に入力され、これに応答し
てこの回路(410)からシフトパルスSHが出力される。
又、TINT信号はオア回路(OR2)を通ってNB4信号として
AFマイコン(MC1)に取り込まれ、AFマイコン(MC1)は
この信号によってCCDイメージセンサの積分終了を知
る。このシフトパルスSHがCCDイメージセンサ(FLM)に
入力されると、各画素による光電流積分が終わり、この
積分値に応じた電荷がCCDイメージセンサシフトレジス
タの対応するセルに並列的に転送される。一方、AFマイ
コン(MC1)からのクロックパルスCLにもとづいて、セ
ンサ駆動パルス発生回路(412)からは位相が180゜ずれ
た2つのセンサー駆動パルスφ1,φ2が出力され、CCD
イメージセンサ(FLM)に入力されている。CCDイメージ
センサ(FLM)はこれらのセンサ駆動パルスのうち、φ
1の立上りと同期してCCDシフトレジスタの各画素の電
荷を1つずつ端から直列的に排出し、画像信号を形成す
るOS信号が順次出力される。このOS信号は対応する画素
への入射光強度が低い程高い電圧となっており、減算回
路(414)がこれを上述の基準信号DOSから差し引いて、
(DOS−OS)を画素信号として出力する。尚、積分クリ
ア信号ICGの消滅後TINT信号が出力されずに所定時間が
経過すると、AFマイコン(MC1)は端子(NBφ)から“H
igh"レベルのシフトパルス発生指令信号SHMを出力す
る。したがって、積分クリア信号ICGの消滅後所定時間
経過してもAGコントローラ(406)から“High"レベルの
TINT信号が出力されない場合は、このシフトパルス発生
指令信号SHMに応答して、シフトパルス発生回路(410)
がシフトパルスSHを発生する。First, the IOS signal from the AF microcomputer (MC1) is set to "Low", and the interface circuit (IF
The gate opens in the direction in which the signals of NBφ to NB3 are output toward 1). Then, the AF microcomputer (MC1) outputs a pulse-shaped integral clear signal ICG to the CCD image sensor (FLM) as a signal of NB2, which causes the CCD image sensor (F
Each pixel of LM) is reset to the initial state and CCD
The output AGCOS of the brightness monitor circuit (MC) built in the image sensor is reset to the power supply voltage level. AF
At the same time, the microcomputer (MC1) receives a "Hig" from the terminal (NB5).
The shift pulse generation enable signal SHEN of h "level is output.
Then, at the same time as the integration clear signal ICG disappears, the integration of photocurrent starts in each pixel in the CCD image sensor (FLM), and at the same time, the output AGCOS of the brightness monitor circuit (MC) drops at a speed according to the brightness of the subject. To start, the reference signal output DOS from the reference signal generation circuit (RS) built into the CCD image sensor is kept at a constant reference level. The AGC controller (406) compares AGCOS with DOS, and controls the gain of the variable gain differential amplifier (408) according to how much AGCOS decreases with respect to DOS within a predetermined time (100 msec. During focus detection). To do. Further, when the AGC controller (406) detects that the AGCOS drops below a predetermined level with respect to DOS within a predetermined time after the integration clear signal ICG disappears, then the AGC controller outputs a "High" level TINT signal. This TINT signal is input to the shift pulse signal output circuit (410) through the AND circuit (AN) and the OR circuit (OR1), and in response thereto, the shift pulse SH is output from this circuit (410).
Also, the TINT signal passes as an NB4 signal through the OR circuit (OR2).
The signal is taken into the AF microcomputer (MC1) and the AF microcomputer (MC1) knows the completion of integration of the CCD image sensor by this signal. When this shift pulse SH is input to the CCD image sensor (FLM), the photocurrent integration by each pixel ends, and the charge according to this integration value is transferred in parallel to the corresponding cell of the CCD image sensor shift register. . On the other hand, based on the clock pulse CL from the AF microcomputer (MC1), the sensor drive pulse generation circuit (412) outputs two sensor drive pulses φ1 and φ2 with a phase difference of 180 °, and the CCD
Input to the image sensor (FLM). CCD image sensor (FLM) has φ
In synchronization with the rising edge of 1, the charge of each pixel of the CCD shift register is serially discharged from the end one by one, and the OS signal forming the image signal is sequentially output. This OS signal has a higher voltage as the incident light intensity to the corresponding pixel is lower, and the subtraction circuit (414) subtracts this from the above-mentioned reference signal DOS,
(DOS-OS) is output as a pixel signal. If the TINT signal is not output after the integration clear signal ICG disappears and a predetermined time elapses, the AF microcomputer (MC1) outputs "H" from the terminal (NBφ).
It outputs the shift pulse generation command signal SHM of the "igh" level. Therefore, even if a predetermined time has elapsed after the integration clear signal ICG disappeared, the AG controller (406) outputs the "High" level signal.
When the TINT signal is not output, the shift pulse generation circuit (410) responds to the shift pulse generation command signal SHM.
Generates a shift pulse SH.
一方、上述の動作において、AFマイコン(MC1)はCCDイ
メージセンサの第7番目から第10番目までの画素に対応
する画素信号が出力されるときに、サンプルホールド信
号S/Hを出力する。CCDイメージセンサのこの部分は暗出
力成分を除去する目的でアルミマスクで施され、CCDイ
メージセンサの受光画素としては遮光状態になっている
部分である。一方、サンプルホールド信号によって、ピ
ークホールド回路(416)はCCDイメージセンサのアルミ
マスク部に対応する出力OSとDOSとの差を保持し、以降
この差出力と画素信号とが可変利得アンプ(408)に入
力される。そして、可変利得アンプ(408)は画素信号
とその差出力の差をAGCコントローラ(406)により制御
された利得でもって増幅し、その増幅出力がA/D変換器
(418)によってA/D変換された後、画素信号データとし
てAFマイコン(MC1)に取込まれる。On the other hand, in the above-described operation, the AF microcomputer (MC1) outputs the sample hold signal S / H when the pixel signals corresponding to the 7th to 10th pixels of the CCD image sensor are output. This part of the CCD image sensor is covered with an aluminum mask for the purpose of removing dark output components, and the light receiving pixels of the CCD image sensor are in a light-shielded part. On the other hand, according to the sample hold signal, the peak hold circuit (416) holds the difference between the output OS and DOS corresponding to the aluminum mask part of the CCD image sensor, and thereafter, the difference output and the pixel signal are variable gain amplifier (408). To be entered. The variable gain amplifier (408) amplifies the difference between the pixel signal and its difference output with a gain controlled by the AGC controller (406), and the amplified output is A / D converted by the A / D converter (418). After that, it is taken into the AF microcomputer (MC1) as pixel signal data.
画素信号データが取り込まれる時は、AFマイコン(MC
1)からの信号IOSが“High"になり、インターフェース
回路(IF1)からAFマイコン(MC1)へ向かってNBφ〜NB
3の信号が出力される方向のゲートが開く。A/D変換器
(418)のA/D変換は8ビットで行なわれるが、AFマイコ
ン(MC1)は上位、下位の4ビットずつ転送される。こ
の上位と下位の4ビットの切り換えタイミングはEOC信
号によって行なっている。EOC信号はTINT信号とオア回
路(OR2)でオアをとられて、NB4信号としてAFマイコン
(MC1)へ入力される。AFマイコン(MC1)は、このNB4
信号の“High"状態、“Low"状態のタイミングによってN
Bφ〜NB3から画素信号データを取り込むことになる。
又、このNBφ〜NB3からは、画素信号データの取り込み
が開始される前に、AGCコントローラ(406)からAGCデ
ータも取り込むようになっている。このAGCデータは、
後述するように、判定レベルとして使われる。なお、ほ
かに、AFマイコン(MC1)の端子(NB1)から出力される
Sφ信号は、CCDイメージセンサのイニシャライズと、
被写体光を積分する通常動作とを切り換えるための信号
である。When the pixel signal data is captured, the AF microcomputer (MC
Signal IOS from 1) becomes "High", and NBφ to NB from the interface circuit (IF1) to the AF microcomputer (MC1)
The gate opens in the direction where the 3 signal is output. The A / D conversion of the A / D converter (418) is performed in 8 bits, but the AF microcomputer (MC1) transfers 4 bits each of upper and lower bits. The switching timing of the upper and lower 4 bits is performed by the EOC signal. The EOC signal is ORed with the TINT signal by the OR circuit (OR2) and input to the AF microcomputer (MC1) as the NB4 signal. AF microcomputer (MC1) is this NB4
N depending on the timing of the “High” and “Low” states of the signal
Pixel signal data will be fetched from Bφ to NB3.
Further, AGC data is also fetched from the NBφ to NB3 from the AGC controller (406) before the fetching of pixel signal data is started. This AGC data is
As will be described later, it is used as a judgment level. In addition, the Sφ signal output from the terminal (NB1) of the AF microcomputer (MC1) is used to initialize the CCD image sensor.
This is a signal for switching between normal operation for integrating the subject light.
この後、AFマイコン(MC1)は、この画素信号データを
内部のメモリに順次保存するが、イメージセンサの全画
素に対応するデータの保存が完了すると、それを用いて
所定のプログラムに従って焦点ズレ量及びその方向を算
出し、表示回路にそれらを表示させると共に、一方では
レンズ駆動装置を焦点ズレ量及びその方向に応じて駆動
し、撮影レンズの自動焦点調節を行う。After that, the AF microcomputer (MC1) sequentially stores this pixel signal data in the internal memory. When the data corresponding to all the pixels of the image sensor has been saved, it is used to defocus according to a predetermined program. And the direction thereof are calculated and displayed on the display circuit. On the other hand, the lens driving device is driven in accordance with the focus shift amount and the direction thereof to perform automatic focus adjustment of the photographing lens.
本実施例においては、CCDイメージセンサ(FLM)の積
分、データダンプ、及び合焦検出演算がくり返し行なわ
れており、精度の向上がはかられている。In the present embodiment, the integration of the CCD image sensor (FLM), the data dump, and the focus detection calculation are repeated to improve the accuracy.
第7図〜第16図は、AFマイコン(MC1)の動作を示すフ
ローチャートである。まず、第5−1,2,3表にこのフロ
ーチャート内で使用するフラグを示しておく。7 to 16 are flowcharts showing the operation of the AF microcomputer (MC1). First, Tables 5-1, 2, and 3 show the flags used in this flowchart.
AFマイコン(MC1)の動作のスタートとしては4つの入
口がある。つまり、電源投入時すなわち第2図のAFマイ
コン(MC1)の端子(CLR1)にRES信号が来た時にスター
トする「RESET」(第7図のステップ#1)、制御マイ
コン(MC2)の端子(PT1)からAF動作(自動焦点調節動
作)又はFA動作(焦点検出動作)をスタートすべく出す
AFS信号がAFマイコン(MC1)の端子(INT1)に入力され
ることによりスタートする「INT1S」(第7図のステッ
プ#8)、制御マイコン(MC2)の端子(PT2)からAFマ
イコン(MC1)へレリーズしたことを知らせるべく出すI
NREL信号がAFマイコン(MC1)の端子(INT2)に入力さ
れることによりスタートする「INT2S」(第8図のステ
ップ#27)、エンコーダ(ENC)からのPS信号がAFマイ
コン(MC1)の端子(INT3)に入力されることによりス
タートする「INT3S」(第16図のステップ#252)がこれ
ら4つに当たる。自動焦点調節動作のフローのメインル
ーチンは第7図のステップ#8の「INT1S」から始まり
第9図のステップ#33の「AFSTART」、第10図のステッ
プ#44の「CDINTS」を通り、第11図のステップ#86の
「MAIN1」へ流れる。「MAIN1」からは大きく分けて3つ
に分かれ、第13図のステップ#165の「LOWCON」から始
まる被写体のコントラストが低いローコントラスト時の
フローと、第14図のステップ#238の「LSAVE」から始ま
る補助光AFモード(暗くて焦点検出が不可能な時に、補
助光用LED(48)で被写体を照明して焦点検出をするモ
ードのこと)時のフローと、第11図のステップ#91の
「NLOC1」から始まる被写体のコントラストが充分に高
い通常AFモード時のフローとになる。又サブルーチンと
しては第15図のステップ#241の「SIOSET」で始まる制
御マイコン(MC2)からのシリアルデータを入力し処理
するフローと、第14図のステップ#196の「CKLOCK」か
ら始まるレンズの終端位置を判断処理しるフローとがあ
る。以下このフローチャートに基いて本実施例における
自動焦点調節動作(以下AF動作という)及び焦点検出動
作(以下FA動作という)を説明する。 There are four entrances to start the operation of the AF microcomputer (MC1). In other words, when the power is turned on, that is, when the RES signal arrives at the terminal (CLR1) of the AF microcomputer (MC1) in FIG. 2, “RESET” (step # 1 in FIG. 7), the terminal of the control microcomputer (MC2) ( Issue to start AF operation (automatic focus adjustment operation) or FA operation (focus detection operation) from PT1)
"INT1S" (step # 8 in Fig. 7) started when the AFS signal is input to the pin (INT1) of the AF microcomputer (MC1), the AF microcomputer (MC1) from the pin (PT2) of the control microcomputer (MC2) I give it out to let you know that I have released
"INT2S" (step # 27 in Fig. 8) started when the NREL signal is input to the terminal (INT2) of the AF microcomputer (MC1), and the PS signal from the encoder (ENC) is the terminal of the AF microcomputer (MC1) “INT3S” (step # 252 in FIG. 16) started by being input to (INT3) corresponds to these four. The main routine of the flow of the automatic focus adjustment operation starts from "INT1S" in step # 8 in FIG. 7 and goes through "AFSTART" in step # 33 in FIG. 9 and "CDINTS" in step # 44 in FIG. 11 Flow to “MAIN1” in step # 86 in FIG. From "MAIN1", it is roughly divided into three. From the flow of low contrast where the contrast of the subject is low starting from "LOWCON" in step # 165 in Fig. 13 and "LSAVE" in step # 238 in Fig. 14 Auxiliary light AF mode that starts (it is a mode that illuminates the subject with the auxiliary light LED (48) to detect the focus when it is dark and focus detection is not possible), and step # 91 in FIG. The flow is for normal AF mode, in which the contrast of the subject begins with "NLOC1" and is sufficiently high. As a subroutine, the flow of inputting and processing serial data from the control microcomputer (MC2) starting with "SIOSET" in step # 241 of Fig. 15 and the end of the lens starting from "CKLOCK" of step # 196 in Fig. 14 There is a flow for determining and processing the position. The automatic focus adjustment operation (hereinafter referred to as AF operation) and the focus detection operation (hereinafter referred to as FA operation) in this embodiment will be described below based on this flowchart.
まず、電源スイッチ(MNS)の閉成に応答してパワーオ
ンリセット回路(POR)からリセット信号RESが出力さ
れ、このリセット信号で制御マイコン(MC2)が特定番
地から動き出す。これと同時に制御マイコン(MC2)の
端子(Xout)からクロックパルスCKが出力される。これ
はAFマイコン(MC1)の端子(Xin)に入力される。制御
マイコン(MC2)からのクロックパルスCKのもとでリセ
ット信号RESが端子(CLR1)に入力されるとAFマイコン
(MC1)がステップ#1の「RESET」からスタートする。
ステップ#1はフローチャート内で使用している全フラ
グ(第5−1、2、3表)をすべてクリアしている。各
フラグは“0"が初期状態になるようになっている。ステ
ップ#2からは、制御マイコン(MC2)からAFマイコン
(MC1)に対して、AF又はFA動作を停止させるために、
後述のようなストップ信号を出力するが、このストップ
命令が入ってきた時にもこのステップ#2を通る。First, in response to the closing of the power switch (MNS), a reset signal RES is output from the power-on reset circuit (POR), and this control signal causes the control microcomputer (MC2) to move from a specific address. At the same time, the clock pulse CK is output from the terminal (Xout) of the control microcomputer (MC2). This is input to the terminal (Xin) of the AF microcomputer (MC1). When the reset signal RES is input to the terminal (CLR1) under the clock pulse CK from the control microcomputer (MC2), the AF microcomputer (MC1) starts from “RESET” in step # 1.
Step # 1 clears all the flags (Tables 5-1, 2, and 3) used in the flowchart. Each flag is set to "0" in the initial state. From step # 2, to stop AF or FA operation from the control microcomputer (MC2) to the AF microcomputer (MC1),
Although a stop signal as will be described later is output, this step # 2 is also passed when this stop command is input.
ステップ#2(以下「ステップ」を省略する。)は端子
(P13)に入力される端子(ST4)の信号を“Low"状態に
落とし補助光用LED(48)による照明を切っている。こ
れは補助光AFモード時に補助光発光中、スイッチ(S1)
を開放して、焦点検出動作を停止する時にその発光を中
止するためである。#3は、AF又はFA動作での焦点調節
状態表示又はデフォーカス方向表示を消している。ここ
では、端子(P32)〜(P30)にそれぞれ“High"を出力
して消すが、これは各端子を入力モードにすることによ
り行っている。この方法で表示を消しても、表示してい
た出力状態は出力ポートレジスタにメモリされており、
このポートを出力モードにすればメモリしていた内容を
再び表示することができる。後にこれを利用する。In step # 2 (hereinafter “step” is omitted), the signal from the terminal (ST4) input to the terminal (P13) is brought to the “Low” state and the illumination by the auxiliary light LED (48) is turned off. This is the switch (S1) while the auxiliary light is emitting in auxiliary light AF mode.
This is because the light emission is stopped when the focus detection operation is stopped by opening. In # 3, the focus adjustment state display or the defocus direction display in the AF or FA operation is turned off. Here, "High" is output to the terminals (P32) to (P30) and erased, but this is done by setting each terminal to the input mode. Even if the display is turned off by this method, the output state that was being displayed is stored in the output port register.
By putting this port in output mode, the contents stored in memory can be displayed again. We will use this later.
#4ではレンズを停止させる。なお、ここではブレーキ
はかけない。これはAFマイコン(MC1)の非動作中で
は、レンズにブレーキをかけず比較的手で動きやすくす
るとともに、省電を考えてのことである。AFマイコン
(MC1)からドライバー回路(MDR1)に入力されるレン
ズ用モータ駆動信号MC、MR、MF、MBのコントロールにつ
いては第6表に上げたようになっており、端子(PO2)
〜(PO0)の信号MR、MF、MBを“High"状態にすれば、電
気的ブレーキがかからず、モータ(MO1)への通電が切
れレンズが止まる。In # 4, the lens is stopped. The brake is not applied here. This is because while the AF microcomputer (MC1) is not in operation, the lens is not braked so that it can be moved relatively easily by hand, and power saving is considered. The control of the lens motor drive signals MC, MR, MF, and MB that are input from the AF microcomputer (MC1) to the driver circuit (MDR1) are shown in Table 6 and the terminal (PO2).
By setting the signals MR, MF, and MB of ~ (PO0) to the "High" state, the electric brake is not applied and the motor (MO1) is de-energized and the lens stops.
#5ではレリーズ動作中もしくは補助光AFモード中に制
御マイコン(MC2)からストップ命令が来た時に、これ
ら状態を今後も解除すべく、レリーズフラグ(第5−1
表のレリーズF)及び補助光モードフラグ(第5−2表
の補助光モードF)をクリアするステップである。#6
は、次のフローのスタートのための割り込み状態を決め
るためのコントロールで、AFマイコン(MC1)の動作が
ストップした後に、#8のINT1Sからもしくは#28のINT
2Sからのスタートを許している。しかし、実際は、カメ
ラとしては不図示のシャッタレリーズボタンの1段押し
により第2図のスイッチ(S1)が閉じて制御マイコン
(MC2)からINT1に割り込みがかかり、該シャッタレリ
ーズボタンの2段押しによりスイッチ(S2)が閉じてIN
T2にレリーズの割り込みがかかるようになっているた
め、次のフローチャートのスタートは#8の「INT1S」
になる。#7でAFマイコン(MC1)はストップモードに
入る。ストップモードとはAFマイコン(MC1)が省電モ
ードに入り動作を停止することである。この時各端子の
状態は、P13だけが“Low"で他は“High"となっており補
助光照明用LED(48)は消灯し、表示用LED(LEDL)(LE
DM)(LEDR)も消灯しているとともに、レンズはストッ
プ状態にあり、インターフェース回路(IF1)も停止状
態となっている。この状態で次の制御マイコン(MC2)
からの端子(INT1)への割り込みスタートを待ってい
る。 In # 5, when a stop command is received from the control microcomputer (MC2) during the release operation or the fill AF mode, the release flag (No. 5-1
This is a step of clearing the release F) in the table and the auxiliary light mode flag (the auxiliary light mode F in Table 5-2). # 6
Is a control for deciding the interrupt state for starting the next flow. After the operation of the AF microcomputer (MC1) stops, INT1S of # 8 or INT of # 28
It allows starting from 2S. However, in actuality, when the shutter release button (not shown) for the camera is pressed by one step, the switch (S1) in FIG. 2 is closed and the control microcomputer (MC2) interrupts INT1, and the shutter release button is pressed by two steps. Switch (S2) is closed and IN
Since the release interrupt is applied to T2, the start of the next flowchart starts with "INT1S" in # 8.
become. At # 7, the AF microcomputer (MC1) enters stop mode. Stop mode means that the AF microcomputer (MC1) enters the power saving mode and stops operating. At this time, the status of each terminal is only "Low" for P13 and "High" for others, the LED for auxiliary light illumination (48) is off, and the LED for display (LEDL) (LE
DM) (LEDR) is off, the lens is in the stop state, and the interface circuit (IF1) is also in the stop state. In this state, the next control microcomputer (MC2)
Waiting for start of interrupt from pin to INT1.
次に、前述のフローチャート第2番目の入口である#8
の「INT1S」の説明に移る。この「INT1S」からの割り込
みスタートは、AFマイコン(MC1)全フロー中において
割り込み禁止状態にはなっておらずいつでも割り込みを
受け付ける。この入口は3つの割り込みの役割を果して
いる。1つはAF又はFA動作のスタート、2つ目はAF又は
FA動作の停止、3つ目はレリーズ直後の焦点調節状態表
示復帰動作及び連写モード時の動作がある。これら3つ
の区別について述べる。1つ目と2つ目の区別は端子
(INT1)への入力信号によって区別している。すなわち
第17図(A)のようにAF又はFA動作のスタートにはAFS
信号が“High"から“Low"へ立ち下り、“Low"が50μs
以上続くことが必要である。AF又はFA動作の停止につい
ては第17図(B)のようにAFS信号が“High"から“Low"
へ立ち下がったあと、50μs未満に“Low"から“High"
へ立ち上がることを必要としている。第3番目の動作
と、1つ目の通常AF又はFA動作との区別は、フラグを使
用している。後述のレリーズ割り込みがくれば、レリー
ズ中のフローの中でレリーズフラグ(レルーズF)をた
て次の「INT1S」のスタートの中でこのフラグがたって
いるかどうかをチェックして区別している。これらを含
めて順次#8から説明する。#8で、スタート時はINT
1、INT2以外の割り込みを禁止する。禁止されているの
はINT3のイベントカウンタ割り込みと、フローチャート
上では示してないが、表示用LEDの点滅表示の周期を決
めるタイマーの内部割り込みがある。#9は使用してい
るフラグをクリアするところであるが#15からのAFSINR
中でこれまでの状態として使用する2つのフラグ、すな
わちスキャン禁止フラグ(第5−1表のスキャン禁止
F)と、前回ローコンフラグ(第5−1表の前回ローコ
ンF)はクリアしていない。スキャン禁止フラグをクリ
アしないのは、連写モードの場合でも、スイッチ(S1)
をオフしない限り、単写モードと同じく一度被写体のコ
ントラストが焦点検出に充分あって、デフォーカス量の
計算ができたことがあるか、又は、一度ローコンスキャ
ンをしたことがあれば、新たなローコンスキャンをさせ
ないために、このフラグを残している。又、前回ローコ
ンフラグをクリアしないのは#15から始まるレリーズ後
のAFS信号による割り込みフローである「AFSINR」の中
で、レリーズの後もスイッチ(S1)をオンしたままであ
ればレリーズ前の状態の焦点検出演算結果の表示を復帰
表示させておくためにクリアしていない。すなわちレリ
ーズ最中はLEDによるデフォーカス方向の表示をいった
ん消し、レリーズ動作が終われば、再び表示するという
ことをしているので、そのため低コストラストでLEDが
点滅表示していたかどうかを判別するためのフラグを残
しておくのである。Next, # 8 which is the second entrance of the above-mentioned flowchart
Let's move on to the explanation of "INT1S". The interrupt start from this "INT1S" does not disable the interrupt during the entire flow of the AF microcomputer (MC1) and accepts the interrupt at any time. This entrance serves three interrupts. One is the start of AF or FA operation, the second is AF or
The FA operation stops, and the third is the focus adjustment status display return operation immediately after release and the operation in continuous shooting mode. The distinction between these three is described. The first and the second are distinguished by the input signal to the terminal (INT1). That is, as shown in Fig. 17 (A), AFS is used to start AF or FA operation.
Signal falls from "High" to "Low", "Low" is 50μs
It is necessary to continue above. To stop the AF or FA operation, the AFS signal changes from "High" to "Low" as shown in Fig. 17 (B).
After falling to, within 50μs from "Low" to "High"
Need to get up to. A flag is used to distinguish the third operation from the first normal AF or FA operation. If a release interrupt described later comes, the release flag (releas F) is set in the flow during release, and it is checked whether or not this flag is set at the start of the next "INT1S" to make a distinction. These will be sequentially described from # 8. # 8, INT at the start
Disable interrupts other than 1 and INT2. The event counter interrupt of INT3 and the internal interrupt of the timer that determines the blinking period of the display LED, which is not shown in the flowchart, are prohibited. # 9 is about to clear the used flag, but AFSINR from # 15
Among them, the two flags used as the previous states, that is, the scan prohibition flag (scan prohibition F in Table 5-1) and the previous low control flag (previous low control F in Table 5-1) are not cleared. The switch (S1) does not clear the scan prohibition flag even in continuous shooting mode.
As long as you do not turn off, once the contrast of the subject is sufficient for focus detection and you have been able to calculate the defocus amount, or once you have performed low contrast scan, as in the single shooting mode, This flag is left to prevent low contrast scanning. In addition, the reason why the low contrast flag is not cleared last time is "AFSINR" which is the interrupt flow by the AFS signal after release starting from # 15. If the switch (S1) remains on after release, The focus detection calculation result display is not cleared in order to restore it. In other words, during release, the LED defocus direction display is turned off once, and when the release operation is finished, it is displayed again, so to determine whether the LED was blinking at the low cost last. It leaves the flag of.
次の#10で50μs時間待ちをし、「INT1S」に入った割
り込みがAF又はFAストップ割り込みでなかったかを#11
の所で見にいく。ここでAFマイコン(MC1)の端子(INT
1)に入っている信号が、第17図(A)のようであればA
FS信号は“Low"であるので#12へ進み、第17図(B)の
ような信号であればAFS信号は“High"となって#2のス
トップモード処理フロー「STPMD」の方へ進みAFマイコ
ン(MC1)の動作は停止する。#12ではレリーズ後のAFS
信号による割り込みフロー「AFSINR」へ進むか最初のAF
S信号の割り込みによるのかを区別する。すなわちレリ
ーズフラグ(レリーズF)がたっていれば、#15の「AF
SINR」へ進みレリーズフラグ(レリーズF)がたってい
なければ次のステップ#13へ進む。#13ではAFマイコン
(MC1)の各端子のイニシャライズを行なう。すなわ
ち、補助光AFモード時の補助光発光端子(P13)のみを
“Low"にし、他の端子は“High"にしておく。もっともA
Fマイコン(MC1)がこれまでストップモードに入ってい
る状態から、割り込みスタートでこのステップへ来てい
る時には各端子は動じ状態のままであり、すなわち端子
(P13)のみが“Low"で他は“High"のままである。Wait for 50μs in the next # 10, and check if the interrupt entered in "INT1S" was an AF or FA stop interrupt. # 11
I will go to see it. Here, the pin of the AF microcomputer (MC1) (INT
If the signal in 1) is as shown in Fig. 17 (A), A
Since the FS signal is "Low", proceed to # 12. If the signal is as shown in FIG. 17 (B), the AFS signal becomes "High" and proceed to the stop mode processing flow "STPMD" of # 2. The operation of the AF microcomputer (MC1) stops. In # 12, AFS after release
Interruption flow by signal Go to "AFSINR" or first AF
Distinguish whether it is due to an S signal interrupt. That is, if the release flag (release F) is on, # 15 “AF
SINR "and if the release flag (release F) is not on, proceed to the next Step # 13. In # 13, each terminal of the AF microcomputer (MC1) is initialized. That is, only the auxiliary light emitting terminal (P13) in the auxiliary light AF mode is set to "Low" and the other terminals are set to "High". However A
When the F microcomputer (MC1) has been in the stop mode until now, when it comes to this step by the interrupt start, each pin remains in the active state, that is, only the pin (P13) is "Low" and the others are It remains “High”.
次に#14では#9でクリアしないでおいたスキャン禁止
フラグと前回ローコンフラグを改めてクリアしておく。
そして次に#33の「AFSTART」へ進む。このあと焦点調
節状態を検出し、その結果に応じてレンズを駆動させ、
焦点調節状態表示を行う。焦点調節状態表示とは表示用
LED(LEDL)(LEDM)(LEDR)の入力信号のLLとLRが“H
igh"、LMが“Low"で緑色のLEDを点灯させることであ
り、この表示を見てスイッチ(S2)を閉成すれば、又は
(S1)と(S2)を閉成した状態で自動焦点調節を行わせ
てピント合わせ動作が完了すれば、制御マイコン(MC
2)はレリーズ動作を開始し、同時にAFマイコン(MC1)
へレリーズをしたことを知らせる割り込み信号INRELが
出力される。AFマイコン(MC1)は、端子(INT2)でこ
れを受けるので、レリーズの割り込みがかかる。これが
第8図の#27の「INT2S」から始まるフローである。Next, in # 14, the scan prohibition flag and the previous low control flag which were not cleared in # 9 are cleared again.
Then proceed to # 33 “AF START”. After that, the focus adjustment state is detected, the lens is driven according to the result,
The focus adjustment status is displayed. What is the focus adjustment status display?
Input signals LL and LR of LED (LEDL) (LEDM) (LEDR) are “H”
igh ", LM is to turn on the green LED when it is" Low ". If you see this display and close switch (S2), or (S1) and (S2) are closed, auto focus If the adjustment is done and the focusing operation is completed, the control microcomputer (MC
2) starts the release operation and at the same time AF microcomputer (MC1)
An interrupt signal INREL is output to notify that the shutter has been released. Since the AF microcomputer (MC1) receives this at the pin (INT2), it causes a release interrupt. This is the flow starting from "INT2S" in # 27 of FIG.
#27ではまずINT1、INT2以外の割り込みを禁止する。次
に#28で端子(ST4)からの信号を“Low"にし、補助光
照明を消している。これはレリーズ優先モード時のみ必
要でAF優先モードの場合には必要ないステップである。
なぜならAF優先モードの時にはピント合わせが終わって
おり、すでに補助光照明は消えているためである。#29
も同様にレリーズ優先モード時のみ必要なレンズ用モー
タ(MO1)をストップさせるステップである。ここでは
モータ(MO1)にブレーキをかけていない。これは、レ
リーズ優先モードの時には合焦状態になってからレリー
ズされるとは限らずその手前でレリーズされることもあ
りうるので、合焦位置に向かってレンズが動いている途
中でレリーズされた時、その非合焦点でモータ(MO1)
にブレーキをかけてレンズを止めてレリーズするより
は、ブレーキをかけずに止め、いくらかでも惰性でレン
ズを移動させ、すこしでも合焦位置に近い所でレリーズ
された方が、より写真が撮れるということが多いためで
ある。次の#30で焦点調節状態表示又はデフォーカス方
向表示を消す。これは1眼レフレックスカメラでのレリ
ーズ中は、ミラーが上がり、ファインダー内はまっ黒に
なっている。ここで表示だけつけていても意味がないば
かりか、フィルム露光中に、不必要な光がカメラ内部で
出力されているのは好ましくないためである。In # 27, interrupts other than INT1 and INT2 are first disabled. Next, at # 28, the signal from the terminal (ST4) is set to "Low" to turn off the auxiliary light illumination. This is a step that is necessary only in the release priority mode and not necessary in the AF priority mode.
This is because the focus adjustment is completed in the AF priority mode and the auxiliary light illumination is already off. # 29
Similarly, this is a step of stopping the lens motor (MO1) required only in the release priority mode. The motor (MO1) is not braked here. In the release priority mode, it is not always possible to release after the subject is in focus, and it is possible that the release may occur before that, so it was released while the lens was moving toward the in-focus position. At that time, the motor (MO1) with its non-focus point
It is said that you can take more photos by stopping without releasing the brake and releasing the lens by moving the lens with some inertia, rather than stopping the lens and releasing it by releasing the lens and releasing it near the in-focus position. This is because there are many cases. In # 30, the focus adjustment status display or defocus direction display disappears. This is because the mirror is raised and the inside of the viewfinder is completely black during the release with the single-lens reflex camera. This is because it is meaningless to display only the display here, and it is not preferable that unnecessary light is output inside the camera during film exposure.
次に#31でレリーズフラグ(レリーズF)を“1"にし、
レリーズされたことをフラグとして残す。あとは#32
で、INT1又はINT2の割り込み待ちとなる。ここで続けて
レリーズ割り込みが来ると再び#27の「INT2S」から始
まる。第2図のスイッチ(S1)を閉成したままスイッチ
(S2)の開閉を繰り返している場合がこれに当たり、レ
ンズを駆動させないで合焦位置で固定しているというAF
ロック状態でレリーズを繰り返していることと同じであ
る。スイッチ(S2)を閉成してレリーズしたあと、スイ
ッチ(S1)を閉成したままだと、制御マイコン(MC2)
のフローチャートにあるように、再びAFS信号がAFマイ
コン(MC1)に入りINT1の割り込みがかかる。すると、
#8の「INT1S」からのフローは、今度はレリーズフラ
グ(レリーズF)に1がたっているので第7図の#15の
「AFSINR」の方へ進む。#15からのステップは後に説明
する。Next, at # 31, set the release flag (release F) to "1",
The release is left as a flag. The rest is # 32
Then, wait for INT1 or INT2 interrupt. When the release interrupt comes in succession, it starts again from "INT2S" of # 27. This occurs when the switch (S2) is repeatedly opened and closed while the switch (S1) in Fig. 2 is closed, and this is the case where the lens is fixed at the in-focus position without being driven.
It is the same as repeating the release in the locked state. After the switch (S2) is closed and released, the switch (S1) remains closed, and the control microcomputer (MC2)
As shown in the flowchart, the AFS signal enters the AF microcomputer (MC1) again and INT1 interrupt occurs. Then,
The flow from "INT1S" of # 8 advances to "AFSINR" of # 15 of FIG. 7 because the release flag (release F) is set to 1 this time. The steps from # 15 will be described later.
次にスイッチ(S2)を閉成してレリーズしたあと第5図
のフローにあるようにスイッチ(S2)(S1)を共に開放
した場合は、今度は制御マイコン(MC2)からはAFマイ
コン(MC1)のストップのためのAFS信号がAFマイコン
(MC1)に入り、INT1の割り込みがかかる。あと前述し
たようなフローでAFマイコン(MC1)はストップモード
に入り、再び次の割り込みが繰るのを待つことになる。Next, when the switch (S2) is closed and released, and then both switches (S2) and (S1) are opened as shown in the flow chart of FIG. ) Stop AFS signal enters AF microcomputer (MC1) and INT1 interrupt occurs. After that, the AF microcomputer (MC1) enters the stop mode according to the flow described above, and waits for the next interrupt again.
ここでレリーズ後のAFS信号による割り込みスタートの
フローの説明に入る。入口は第7図の#8の「INT1S」
であるが今度はレリーズフラグRLFが1になっているた
め、#12で分岐して#15の「AFSINR」の方へ進む。ここ
ではまずこのフローを通過したということでレリーズフ
ラグ(レリーズF)をリセットする。次に#16で制御マ
イコン(MC2)からシリアルデータを入力する。ここで
シリアルデータを入力するのは、AFマイコン(MC1)の
動作モードが変更されていないかチェックするためであ
る。この#15から始まる「AFSINR」へ繰るフローは、レ
リーズされた後に繰るフローであるが、このレリーズ中
やその寸前で動作モード(すなわちAFモード/FAモード/
MANUALモードの各モード、又AFモードでも単写モード/
連写モードの別)が切り換えられれば、そのモードに応
じた動作に変わらなければならない。#16はこのモード
の情報を制御マイコン(MC2)から入力するためのステ
ップである。この#16は、サブルーチンで第15図の#24
1から始まる「SIOSET」のフローを流れる。ここでは各
モードのチェックをし、モードのフラグを操作する。ま
ず、#241では制御マイコン(MC2)に向かって端子(P1
1)のDTRQ信号を“Low"にし、シリアルデータを要求す
る。すると制御マイコン(MC2)はDTRQ信号を見て第4
表のようなシリアルデータを送ってくる。AFマイコン
(MC1)側では、#242でこのシリアルデータを入力し、
#243でDTRQ信号を“High"にしておく。シリアル通信で
送られてくるデータは、AF用開放F値AFAV0、レンズ駆
動用デフォーカス量−パルスカウント変換係数KROM、補
助光用AF補正用データ△IR、レンズ駆動反転時バックラ
ッシュ補正用データBKLSH、補助光OK信号AFFL、フラッ
シュ用充電完了信号RDY、連写/単写モード信号DT、AF
カプラー軸付レンズ信号AFC、FA可/不可信号FAENの9
種である。各々の情報はシリアル通信で送られてくると
AFマイコン(MC1)のRAMに保存され、必要に応じて、そ
のRAMの内容を参照することとなる。各情報の使用につ
いては追々フローチャート説明上で述べることとする。Here, the flow of interrupt start by the AFS signal after release will be described. The entrance is "INT1S" in # 8 in Figure 7.
However, since the release flag RLF is 1 this time, branch at # 12 and proceed to "AFSINR" at # 15. Here, first, the release flag (release F) is reset because this flow has been passed. Next, in # 16, input serial data from the control microcomputer (MC2). The serial data is input here to check whether the operation mode of the AF microcomputer (MC1) has been changed. The flow to repeat to "AFSINR" starting from # 15 is the flow to repeat after the release, but the operation mode (that is, AF mode / FA mode /
Each mode of MANUAL mode, or single shooting mode in AF mode /
If the continuous shooting mode is changed), the operation must be changed according to the mode. # 16 is a step for inputting the information of this mode from the control microcomputer (MC2). This # 16 is a subroutine # 24 in Figure 15.
The flow of "SIOSET" starts from 1. Here, each mode is checked and the mode flag is operated. First, in # 241, head toward the control microcomputer (MC2) (P1
Set the DTRQ signal in 1) to "Low" to request serial data. Then, the control microcomputer (MC2) sees the DTRQ signal and the fourth
It sends serial data as shown in the table. On the AF microcomputer (MC1) side, input this serial data with # 242,
Set the DTRQ signal to "High" in # 243. Data sent by serial communication are AF open F value AFAV0, lens drive defocus amount-pulse count conversion coefficient KROM, auxiliary light AF correction data ΔIR, lens drive inversion backlash correction data BKLSH , Auxiliary light OK signal AFFL, Flash charge completion signal RDY, Continuous / single shooting mode signal DT, AF
Lens signal AFC with coupler shaft, FA enable / disable signal FAEN 9
It is a seed. When each information is sent by serial communication
It is saved in the RAM of the AF microcomputer (MC1), and the contents of that RAM will be referred to when necessary. The use of each information will be described later in the explanation of the flowchart.
#244から各モードのチェックをする。#244ではAF用開
放F値AFAV0を調べる。焦点検出用受光素子には使用可
能限界であり、レンズの開放F値が小さいと射出瞳で該
焦点検出用受光素子への入射光がけられ、正しい焦点検
出演算ができなくなる。焦点検出不能となるような単体
レンズを作らないといてもコンバーターレンズ等の組み
合わせによって、焦点検出限界F値を超えてしまうこと
もある。例えば今、焦点検出用受光素子の焦点検出限界
F値を7.0とすると、AF用開放F値5.6のレンズは焦点検
出可能だがこれに2倍のテレコンバーターを取り付ける
と、F値は11.2となり焦点検出不能になってしまうとい
うことである。ここでAF用開放F値というのは、レンズ
の絞りが絞られていない状態のF値ではあるが、ズーミ
ングやフォーカスシングによってF値が変化するレンズ
の場合でも焦点検出用受光素子がけられていないという
ことを判断するための情報であるためにズーミング、フ
ォーカシングで変化するF値ならその内で一番小さい開
放F値が入っている。#244でAF用開放F値AFAV0がF値
にして7.0よりも大きければ#251の方へ進み、AFモード
フラグ(第5−1表のAF.F)を“1"にし、さらに#250
でFAモードフラグ(第5−1表のFA.F)も“1"にし、MA
NUFLモードになったというフラグ状態にして第7図の#
16へもどる。AF用開放F値AFAV0が7.0よりも小さければ
F値については焦点検出可能なレンズということで#24
5へ進む。From # 244, check each mode. In step # 244, the AF open F value AFAV0 is checked. This is the limit of use for the focus detection light receiving element. If the open F value of the lens is small, the incident light on the focus detection light receiving element is eclipsed by the exit pupil, and correct focus detection calculation cannot be performed. Even if a single lens that cannot perform focus detection is not created, the focus detection limit F value may be exceeded depending on the combination of converter lenses and the like. For example, assuming that the focus detection limit F value of the focus detection light receiving element is 7.0, a lens with an open F value of 5.6 for AF can detect focus, but if a double teleconverter is attached to this, the F value will be 11.2 and focus detection will not be possible. It means that Here, the open F value for AF is the F value in the state where the lens diaphragm is not stopped, but even in the case of a lens whose F value changes due to zooming or focusing, the focus detection light receiving element is not cut off. Since this is information for determining that, if the F value changes due to zooming or focusing, the smallest open F value is included. If the open F value AFAV0 for AF is larger than 7.0 in # 244, proceed to # 251, set the AF mode flag (AF.F in Table 5-1) to “1”, and then # 250.
Also, set the FA mode flag (FA.F in Table 5-1) to "1" and set MA
Set the flag state that the NUFL mode has been entered.
Return to 16. If the open F value AFAV0 for AF is smaller than 7.0, it means that the lens can detect the focus for the F value. # 24
Go to 5.
#245ではこれまでAFモードであったかどうかのチェッ
クをする。AFモードフラグが、“0"であればこれまでAF
モードであったということで#246へ進み、“1"であれ
ばAFモードでなかったということでAFモードがMANUALモ
ードかをチェックをする。#246はAF用カプラー軸があ
るかいなかをチェックするステップで、AFC信号が“1"
なら軸があるのでこのままAFモードで進み、“0"であれ
ば軸がないので自動焦点調節できないということで#24
7に進み、AFモードフラグに“1"をたてる。AF用カプラ
ー軸とはカメラボディ内のモータ(MO1)からレンズの
フォーカシング機構に動力を伝達するための軸のことで
ある。In # 245, it is checked whether it was in AF mode so far. If the AF mode flag is "0"
Since it was the mode, the process proceeds to step # 246, and if it is "1", it means that the AF mode is not the AF mode, so it is checked whether the AF mode is the MANUAL mode. # 246 is a step to check whether there is an AF coupler axis, and the AFC signal is "1".
If so, proceed in AF mode as it is, and if it is “0”, it means that there is no axis and auto focus cannot be adjusted. # 24
Go to 7 and set "1" to the AF mode flag. The AF coupler shaft is a shaft for transmitting power from the motor (MO1) in the camera body to the focusing mechanism of the lens.
第15図の#248では焦点検出可能なレンズか否かのチェ
ックをし焦点検出可能ならFAフラグ(FA.F)を“0"して
FAモードとなり、焦点検出不可ならFAフラグを“1"にし
て、AFフラグの“1"と共にMANULAモードという判断にな
る。ここでFAEN=1の時というのは、カメラボディにレ
ンズが装着されていてなおかつ焦点検出の可能なレンズ
ということである。これ以外はFAENは“0"となってい
る。焦点検出不可能なレンズとはAF用開放F値が小さく
ても焦点検出できない反射望遠などのレンズや、収差が
極端に大きくなってしまうシフトレンズやバリソフトレ
ンズ等特殊なレンズのことである。このサブルーチンで
はFAモードからAFモードへの変化は見ていないがこれ
は、後の第11図のステップ#86で見ることになる。In # 248 of Fig. 15, it is checked whether or not the lens can detect the focus. If the focus can be detected, the FA flag (FA.F) is set to "0".
If the focus detection cannot be performed in FA mode, the FA flag is set to "1", and the AF flag is set to "1" to determine the MANULA mode. When FAEN = 1, it means that the lens is attached to the camera body and the focus can be detected. Other than this, FAEN is “0”. A lens whose focus cannot be detected is a lens such as a reflective telephoto lens whose focus cannot be detected even if the open F value for AF is small, or a special lens such as a shift lens or a vari-soft lens in which aberration becomes extremely large. This subroutine does not see the change from FA mode to AF mode, but this will be seen later in step # 86 in FIG.
さて、第15図のサブルーチンはリターンして次のステッ
プ#17へ進む。ここでAFモードかどうかを見て、AFモー
ドであれば#19へステップし、AFモードでなければ#18
でFAモードか否かのチェックをし、FAモードでもなけれ
ば#36の「MANUAL」フローへ進む。Now, the subroutine of FIG. 15 returns and proceeds to the next step # 17. Check if it is AF mode. If it is AF mode, go to # 19. If it is not AF mode, go to # 18.
Check whether FA mode or not, and if not FA mode, go to the # 36 "MANUAL" flow.
#19では表示復帰のための前回までの状態を見てレリー
ズ前の状態がローコントラストであったならば、#20で
ローコン表示を復帰させる。ローコン表示とは、焦点調
節状態表示用LED(LEDL)(LEDM)(LEDR)の3つのう
ちの両端(LEDL)(LEDR)を2Hzでオン−オフを繰り返
して点滅させる表示である。ローコントラストでなけれ
ば#21で焦点調節状態又は方向表示を復帰させる。レリ
ーズ前までの表示内容は、表示レジスタに保存されてい
るので、ポートを出力モードにすればこれまでの表示が
復帰する。#22では、AFモードフラグ(AF.F)によって
AFモードか否かのチェックをし、AFモードではなくてFA
モードであれば、#39の「CDINTA」へ進み繰り返し焦点
検出を行う。従って、FAモード時はレリーズ後に第2図
のスッチ(S1)がオンであれば続けて焦点検出し表示す
るということになる。FAモード時は、#23でDR信号に基
づいて単写モードか連写モードかを見て、DR=0であれ
ば単写モードであり#25で端子(P12)のAFE信号を“Hi
gh"にする。この信号は、自動焦点調節動作が終わって
ピントが合ってレリーズ可の状態にあるという情報を制
御マイコン(MC2)へ知らすためのものである。In # 19, if the state before release is low contrast when looking at the previous state for display restoration, the low contrast display is restored in # 20. The low contrast display is a display in which both ends (LEDL) (LEDR) of the three LEDs (LEDL) (LEDM) (LEDR) for focus adjustment state display are blinked by repeatedly turning on and off at 2 Hz. If the contrast is not low, the focus adjustment state or the direction display is restored in # 21. The contents displayed before the release are saved in the display register, so the previous display is restored when the port is set to output mode. In # 22, by the AF mode flag (AF.F)
Check if it is in AF mode, FA not in AF mode
If it is the mode, go to # 39 “CDINTA” to repeatedly perform focus detection. Therefore, in FA mode, if the switch (S1) in FIG. 2 is turned on after release, focus detection and display are continued. In FA mode, see # 23 to see if it is single shooting mode or continuous shooting mode based on the DR signal. If DR = 0, it is single shooting mode. In # 25, set the AFE signal of the terminal (P12) to “Hi”.
gh ". This signal is for notifying the control microcomputer (MC2) that the automatic focus adjustment operation is completed and the focus is achieved and the release is possible.
シャッタレリーズボタンが2段押しまで押されている場
合、制御マイコン(MC2)は、AF優先モードの時は、こ
の信号を見て“High"であればレリーズを許可し、“Lo
w"であればレリーズ不可にしている。すなわち単写モー
ドであれば、一度合焦してレリーズしたあとそのままレ
リーズ1段押しのまま(スイッチ(S1)ONのまま)、AF
S信号等の割り込みが入らないと、#15からと「AFSIN
R」のフローを進み、#25でAFE信号が“High"になるの
で、このまま被写体の位置をかえると、たとえ非合焦状
態であってもレリーズできる。なおこの時は次の#26で
レリーズの割り込みかAFマイコン(MC1)のストップの
割り込みを待つことになっているので、レンズは駆動し
ない。このシーケンスのことを「AFロック」と呼ぶこと
ができる。When the shutter release button is pressed down to the second step, the control microcomputer (MC2) permits the release if it is "High" when it sees this signal in the AF priority mode and "Lo".
If it is w ", the release is not possible. That is, in single shooting mode, after focusing and releasing once, press the release button 1 step (switch (S1) is ON), AF
If an interrupt such as the S signal does not come in, # 15 and "AFSIN
Since the AFE signal goes to "High" at # 25 following the flow of "R", if the position of the subject is changed as it is, the shutter can be released even in the out-of-focus state. At this time, the lens is not driven because it is waiting for the release interrupt or the AF microcomputer (MC1) stop interrupt at the next # 26. This sequence can be called "AF lock".
一方連写モードであれば#23から#24へ進み補助光AFモ
ード中かどうかのチェックをする。補助光AFモードであ
れば、連写モードでかつ補助光AFモードになっているの
で、自動焦点調節とレリーズは一度のみ可とし、一度レ
リーズすれば次のレリーズや自動横転調節は禁止する。
そのためAFE信号は、“High"にしないで#26へ進む。補
助光AFモードでない連写モードでは#39からの「CDINT
A」へ進み次の焦点検出に入る。On the other hand, if it is the continuous shooting mode, the process proceeds from # 23 to # 24 to check whether or not the auxiliary light AF mode is in progress. If it is the auxiliary light AF mode, it is in continuous shooting mode and auxiliary light AF mode, so automatic focus adjustment and release are allowed only once, and once released, the next release and automatic rollover adjustment are prohibited.
Therefore, the AFE signal does not go "High" and the process proceeds to # 26. In continuous shooting mode other than fill-in AF mode
Proceed to "A" to enter the next focus detection.
第9図の#33の「AFSTART」から始まるフローは#14か
ら飛んでくる。#33では第15図のサブルーチン「SIOSE
T」を呼んでいる。AFマイコン(MC1)の動作のスタート
に当たって制御マイコン(MC2)から種々のデータをも
らって動作モードを決める。この時決まったモードは、
AFマイコン(MC1)内のモードレジスタRGに自動的に書
き込まれる。このレジスタRGは後にモードがかわったか
どうかをチェックするためのものである。#34、#35で
は動作モードのチェックをし、AFモード・FAモードのい
ずれでもなくMANUALモードであれば#36へ進む。#36で
は他から来た時のために、ドライバー回路(MDR1)への
信号MA、MF、MBをすべて“High"にしてレンズ用モータ
(MO1)をストップさせる。#37ではINT1、INT2以外の
割り込みをストップさせて#33へループし繰り返す。The flow starting from “AF START” in # 33 of FIG. 9 starts from # 14. In # 33, the subroutine “SIOSE in FIG. 15 is displayed.
Calling "T". When starting the operation of the AF microcomputer (MC1), the control microcomputer (MC2) receives various data to determine the operation mode. The mode decided at this time is
It is automatically written to the mode register RG in the AF microcomputer (MC1). This register RG is for checking whether the mode has been changed later. In # 34 and # 35, the operation mode is checked, and if it is neither MANUAL mode nor AF mode or FA mode, proceed to # 36. In # 36, the signals MA, MF, MB to the driver circuit (MDR1) are all set to "High" to stop the lens motor (MO1) just in case it comes from another person. In # 37, interrupts other than INT1 and INT2 are stopped, and it loops to # 33 and repeats.
AFもしくはFAモードの時は#33へ進みCCDイメージセン
サ(FLM)のイニッシャライズをしてセンサのウオーミ
ングアップをしておく。#39で端子(P20)のIOS信号を
“Low"にしているのはインターフェース回路(IF1)をA
Fマイコン(MC1)からの信号を入力するモードにセット
するとともに、CCDイメージセンサ(FLM)の出力を積分
するためのモードにセットするためでもある。そして第
10図の#44へ進む。ここではまず1−cut shotフラグ
(第5−1表の1−cut shotF)、すなわち積分時間が5
0msを超えたかどうかを示すフラグをクリアしておく。
#45で端子(P12)から出力されるAFE信号を“Low"にし
ておく。ここへは合焦後も繰り返しループしてくるため
こうしている。これは、AFE信号が、合焦になれば“Hig
h"になる信号であるので次の演算に備えて“Low"にして
おくのである。次に、#46で端子(P23)からNB2信号を
出力し、CCDイメージセンサ(FLM)の積分を開始する。
#47で後述の焦点検出演算中及び積分中のレンズ移動分
補正のためのレンズ駆動パルスカウント値EVTCNTを読み
取ってメモリT1へ保存しておく。#48で、CCDイメージ
センサ(FLM)の最大積分時間100msの半分50msをセット
しておく。第9図において「CDINTA」と平行に#40から
始まる「CDINT」があり、#53まで別フローがあるが、
これは「繰り込み積分」と称している機能のためのフロ
ーでこれについての説明は後述する。When in AF or FA mode, proceed to # 33 to initialize the CCD image sensor (FLM) and warm up the sensor. The interface circuit (IF1) is set to A by setting the IOS signal of the terminal (P20) to “Low” in # 39.
This is also to set the mode to input the signal from the F microcomputer (MC1) and to set the mode to integrate the output of the CCD image sensor (FLM). And the first
Go to # 44 in Figure 10. Here, first, the 1-cut shot flag (1-cut shotF in Table 5-1), that is, the integration time is 5
Clear the flag that indicates whether it has exceeded 0 ms.
In # 45, set the AFE signal output from the terminal (P12) to "Low". I'm doing this here because it keeps looping even after focusing. This is because if the AFE signal is in focus, "Hig
Since it is a signal that becomes "h", it is set to "Low" in preparation for the next calculation. Next, at # 46, the NB2 signal is output from the terminal (P23) and the integration of the CCD image sensor (FLM) is started. To do.
In # 47, the lens drive pulse count value EVTCNT for correcting the lens movement amount during focus detection calculation and integration described later is read and stored in the memory T1. At # 48, half of the maximum integration time of the CCD image sensor (FLM), 100ms, is set to 50ms. In Fig. 9, there is "CDINT" starting from # 40 in parallel with "CDINTA", and there is another flow up to # 53,
This is a flow for the function called "convolution integration", and a description thereof will be given later.
#48から続いて#55からの「TLNTφ」に移る。#55で
は、すべての割り込みルーチンを許可している。#56で
は端子(P25)に入ってくるNB4信号をチェックし、“Lo
w"であればCCDイメージセンサ(FLM)が被写体の明るさ
に応じた積分を終了したという信号であるので#64の
「CDINT2」へ進む。“High"であれば積分が続いている
ということで#57へ進み、最初に設定した最大積分時間
が経過したかどうかのチェックをする。すなわち、#48
で設定した50msか、#53で設定した40msか、さらにこの
先で設定する#61の50msか、#62の150msが経ったかを
見て、経っていなければ#56へ戻り、ループを繰り返
す。最大積分時間が経てば#58へ進む。ここで1−cut
shotフラグ(1−cut shotF)が“1"でなければ#59へ
進みこのフラグに“1"をたてる。#63へ進む時は1−cu
t shotフラグが“1"の時であるので、この#59を通っ
たあとか又は#49を通った場合である。#60では200ms
フラグ(第5−2表の200msF)が“1"かどうかをチェッ
クし、“1"でなければ通常最大積分時間が100msと決め
てあるので#48でセットした積分50msの残りの50msを#
61でセットして#56へ戻り、NB4信号をチェックする。
#60で200msフラグが“1"である時(これは後はどのフ
ローの中でセットされるもので特殊条件の場合に限り、
最大積分時間を200msと決めている場合)は#48でセッ
トした積分50msの残りの150msをセットして#56に戻
り、NB4信号をチェックする。Continue from # 48 to "TLNTφ" from # 55. # 55 allows all interrupt routines. In # 56, check the NB4 signal coming into the terminal (P25), and
If it is w ", it is a signal that the CCD image sensor (FLM) has finished the integration according to the brightness of the subject, so the flow proceeds to" CDINT2 "of # 64. If it is "High", it means that the integration is continuing, so proceed to # 57 and check whether the maximum integration time initially set has elapsed. That is, # 48
Check whether 50ms set in #, 40ms set in # 53, 50ms in # 61 set later, or 150ms in # 62 have passed. If not, return to # 56 and repeat the loop. After the maximum integration time, proceed to # 58. 1-cut here
If the shot flag (1-cut shotF) is not "1", proceed to # 59 and set "1" to this flag. 1-cu when going to # 63
Since the t shot flag is "1", it is after passing # 59 or # 49. 200 ms for # 60
Check if the flag (200msF in Table 5-2) is "1", and if it is not "1", the maximum integration time is usually set to 100ms, so the remaining 50ms of the integration 50ms set in # 48 is #.
Set at 61 and return to # 56 to check NB4 signal.
When the 200ms flag is "1" at # 60 (this is what will be set later in any flow, and only under special conditions,
If the maximum integration time is set to 200ms), set the remaining 150ms of the integration 50ms set in # 48 and return to # 56 to check the NB4 signal.
CCDイメージセンサ(FLM)からの出力が充電なレベルま
で得られれば#56から#64へ進む。ここで出力が充分で
なくても、最大積分時間がすぎれば積分を終了しなけれ
ばならず、その時が#58から#63へ進む時である。#58
では今度は1−cut shotフラグは“1"であるので必ず#
63へ進み、端子(P21)からインターフェース回路(IF
1)へ強制積分停止信号NB0を出力する。そして、#64か
らの「CDINT2」へ進む。#64から#67までのステップは
「繰り込み積分」のフローであり、説明はあとへ譲る。If the output from the CCD image sensor (FLM) is obtained to a chargeable level, proceed from # 56 to # 64. Here, even if the output is not sufficient, the integration must be ended if the maximum integration time has passed, and that is the time when the process proceeds from # 58 to # 63. # 58
Then the 1-cut shot flag is "1" this time, so be sure to #
Proceed to 63, and from the terminal (P21) to the interface circuit (IF
Output the forced integration stop signal NB0 to 1). Then proceed to "CDINT2" from # 64. The steps from # 64 to # 67 are the flow of "renormalization integration", and the explanation is given later.
#68ではINT1、INT2以外の割り込みを禁止しているが、
これは、このあとのデータ取り入れ時に割り込みが入っ
てタイミングが狂うことがないようにしているためであ
る。INT1、INT2割り込みはメインフローの最初から始ま
るので禁止しない。#69は、これまでCCD積分中に補助
光用LED(48)が点いていな場合、端子(P13)のST4信
号を“Low"にして消している。#70は端子(P20)のIOS
信号を“High"にしてインターフェース回路(IF1)をデ
ータ出力モードに切り換えている。すなわちNB4〜NB0の
信号がデータ転送用のラインとなってインターフェース
回路(IF1)からAFマイコン(MC1)へデータを送ること
ができるようになる。データとしては8ビットデータが
送られるが、NB3〜NB0までの4ビットパラレルで、2回
に分けて送られ、NB4でそのタイミングをとりNB4が“Hi
gh"の時に上位の4ビットデータが、NB4が“Low"の時に
下位の4ビットデータが送られる。AFマイコン(MC1)
は上位と下位に分けて送られたデータを作りなおして取
り入れる。In # 68, interrupts other than INT1 and INT2 are prohibited,
This is to prevent interruption of timing when the data is taken in after this and timing is not wrong. Since INT1 and INT2 interrupts start from the beginning of the main flow, do not disable them. # 69 turns off the ST4 signal of the terminal (P13) to "Low" if the auxiliary light LED (48) has not been turned on during CCD integration. # 70 is the pin (P20) IOS
The signal is set to "High" and the interface circuit (IF1) is switched to the data output mode. That is, the signals of NB4 to NB0 become lines for data transfer, and data can be sent from the interface circuit (IF1) to the AF microcomputer (MC1). Although 8-bit data is sent as data, it is sent in two steps in 4-bit parallel from NB3 to NB0, and the timing is taken by NB4.
High-order 4-bit data is sent when gh "and low-order 4-bit data is sent when NB4 is" Low ". AF microcomputer (MC1)
Recreates and sends the data sent separately to the upper and lower layers.
そこで、まず、インターフェース回路(IF1)からAFマ
イコン(MC1)に送られてくるのがAGCデータで第6図の
AGCコントローラ(406)内で決められたゲインの数値
(1倍か2倍か4倍か8倍)のいずれかの数値(以下、
AGCデータという)が送られ、これを第10図の#71でAF
マイコン(MC1)へ取り入れる。ところでCCDイメージセ
ンサ(FLM)の積分が終わってから、これらデータの出
てくるタイミングはインターフェース回路(IF1)で決
まっており、積分が終わってただちにAGCデータを取り
入れないといけない。AGCデータは一定時間出力されて
おり、これが終わればすぐCCDイメージセンサ(FLM)の
画素データがやはり一定タイミングで送られてくる。こ
のAGCデータを取り込んだあとのわずかの時間で、#72
にあるように、積分終了時のレンズ駆動パルスカウント
値EVTCNTを読み取ってメモリT2へ保存しておく。積分開
始時の#47に対応するものである。Therefore, first, the AGC data sent from the interface circuit (IF1) to the AF microcomputer (MC1) is shown in FIG.
Any of the numerical values (1 times, 2 times, 4 times or 8 times) of the gain determined in the AGC controller (406) (hereinafter,
AGC data) is sent, and this is AFed at # 71 in Fig. 10.
Take it into the microcomputer (MC1). By the way, after the integration of CCD image sensor (FLM) is finished, the timing when these data comes out is decided by the interface circuit (IF1), and AGC data must be taken in immediately after the integration is finished. AGC data is output for a certain period of time, and as soon as this is completed, pixel data of the CCD image sensor (FLM) is also sent at a certain timing. Just 72 hours after capturing this AGC data, # 72
As described in, the lens drive pulse count value EVTCNT at the end of integration is read and stored in the memory T2. It corresponds to # 47 at the start of integration.
この後すぐ#73でCCDイメージセンサ(FLM)の画素デー
タを入力し、AFマイコン(MC1)内のメモリに保存され
る。次の#74は、レンズ駆動中に、駆動されるレンズが
無限遠端に当たっているか最近接端に当たっているかを
チェックするサブルーチンで、終端(無限遠端もしくは
最近接端)に当たっていれば、レンズ駆動用モータ(MO
1)をストップさせたり、反転駆動させたりする。サブ
ルーチン「CKLOCK」については第13図を用いて後で説明
する。#75では制御マイコン(MC2)とシリアル通信し
レンズを駆動するためのデータ等をもらう。#33で一度
該データをもらっているのにここでも再びシリアル通信
をしているのは、繰り返しループ中では#33を通らない
ので、もし途中でレンズ駆動用の変換係数KROMが変わっ
たり(レンズによってはピント状態や、ズーミング等に
よって変わる)、マイコン動作のモードが変わったりす
るとデータが変わるので、これを繰り返し見るために#
75に「SIOSET」を設けてある。そして#76で#73で取り
入れたCCDイメージセンサ(FLM)のデータを用いて焦点
検出演算をする。この方法については、本出願人がすで
に特開昭59−126517号公報で提案したような方法でデフ
ォーカス量DFが求められるが、本発明の要旨とは無関係
であるので説明を省略する。Immediately after this, the pixel data of the CCD image sensor (FLM) is input at # 73 and saved in the memory of the AF microcomputer (MC1). The next # 74 is a subroutine that checks whether the lens being driven hits the infinity end or the closest end while driving the lens. (MO
1) Stop or reverse drive. The subroutine "CKLOCK" will be described later with reference to FIG. In # 75, serial communication with the control microcomputer (MC2) is received, and data for driving the lens is received. Even though I got the data once in # 33, I am doing serial communication again here because it does not pass through # 33 in the repeated loop, so if the conversion coefficient KROM for lens drive changes in the middle (depending on the lens Will change depending on the focus condition, zooming, etc.), and the data will change if the microcomputer operation mode changes, so to check this repeatedly #
There is a "SIOSET" on the 75. Then, in # 76, the focus detection calculation is performed using the data of the CCD image sensor (FLM) imported in # 73. With respect to this method, the defocus amount DF is obtained by the method already proposed by the present applicant in Japanese Patent Laid-Open No. 59-126517, but since it is unrelated to the gist of the present invention, its explanation is omitted.
#77から#85までは、被写体の輝度が所定レベルよりも
低いか否かのチェックで、AGCデータのレベルを見て判
断している。ここで、被写体の輝度が所定レベル以下の
ときをローライトと呼ぶ。#77でローライトフラグ(第
5−2表のローライトF)に“1"を入れておく。#78で
は電子閃光装置がカメラに装着されていて、補助光スイ
ッチ(44)が閉成されていれば、シリアル通信で送られ
てくるAFFL信号は“1"になっているので#80へ進む。す
なわち補助光発光可能状態がセットされていれば、最大
積分時間が100msのモードの時にはAGCデータが2倍、4
倍、8倍の時にローライト判断となって、#86の「MAIN
1」へぬけていき、AGCデータが1倍の時には#80を通っ
て#85でローライトフラグを“0"にクリアして#86へ進
む。最大積分時間が200msのモードの時には全てローラ
イトとなり、#80から#86へぬける。From # 77 to # 85, whether or not the brightness of the subject is lower than a predetermined level is checked to judge by looking at the level of AGC data. Here, when the brightness of the subject is below a predetermined level, it is called low light. In # 77, "1" is set in the low light flag (low light F in Table 5-2). In # 78, if the electronic flash device is attached to the camera and the auxiliary light switch (44) is closed, the AFFL signal sent by serial communication is "1", so proceed to # 80. .. That is, if the auxiliary light emission enabled state is set, the AGC data is doubled and 4 times when the maximum integration time is 100 ms.
When it is double or 8 times, it becomes a low light judgment and # 86 “MAIN
If the AGC data is 1x, clear the low light flag to "0" at # 85 through # 80 and proceed to # 86. In the mode with the maximum integration time of 200ms, all become low light and go from # 80 to # 86.
一方補助光発光可能状態がセットされていない場合には
#78から#81へ移り、最大積分時間が100msのモードの
場合には、AGCモードが4倍と8倍の時に#82,#83,#8
6とぬけてローライト判断となり、AGCモードが1倍と2
倍の時には#82又は#83から#85へと移りローライトフ
ラグをクリアして#86へぬける。最大積分時間が200ms
のモードの場合には、AGCデータが2倍,4倍,8倍の時に
#84から#86へぬけてローライト判断により、AGCデー
タが1倍の時には#84から#85へぬけて#85でローライ
トフラグをクリアして#86へぬけていく。ここで補助光
発光可能状態がセットされている時のローライトの判断
が、セットされていない時のローライト判断よりも、1
段分明るい所からになっている。これは、被写体が低コ
ントラストでかつ低輝度なら焦点検出演算不能として、
自動焦点調節をあきらめるという場合に大いに有効であ
る。すなわち、補助光発光可能状態がセットされている
ならば、早めに補助光不使用状態での焦点検出をあきら
めて、すぐ補助光使用モードに入れて確実に焦点検出し
ようとし、補助光発光可能状態がセットされていないな
らば、とにかくいける所まで外光だけで焦点検出して、
低コントラストかつ低輝度になってしまえば自動焦点調
節をしないでレンズを繰り込んで終わるといった方法で
ある。本実施例では、焦点検出をあきらめるという前に
さらにレンズを繰り出し又は繰り込みの一往復のスキャ
ンをさせてコントラストがある位置を捜しに行くという
方法をとっている。これについては第13図の#165から
の「LOWCON」以後のフローで説明する。On the other hand, if the auxiliary light emission enabled state is not set, the process moves from # 78 to # 81. In the mode with the maximum integration time of 100 ms, when the AGC mode is 4 times and 8 times, # 82, # 83, # 8
It becomes a low light judgment through 6 and the AGC mode is 1x and 2
At the time of double, it moves from # 82 or # 83 to # 85 and clears the low light flag and goes to # 86. Maximum integration time is 200 ms
In the case of the mode, when the AGC data is 2 times, 4 times, or 8 times, it is skipped from # 84 to # 86 and low light judgment is performed. When the AGC data is 1 time, it is skipped from # 84 to # 85 and # 85. Clear the low light flag and go to # 86. Here, the determination of low light when the auxiliary light emission enabled state is set is 1 more than the determination of low light when not set.
It starts from a bright place. This is because if the subject has low contrast and low brightness, focus detection calculation is impossible,
It is very effective when giving up automatic focusing. In other words, if the auxiliary light emission enabled state is set, the focus detection in the auxiliary light non-use state is given up early, and the focus is detected immediately by immediately entering the auxiliary light use mode to enable the auxiliary light emission enabled state. If is not set, the focus is detected only by outside light to the place where you can go anyway,
If the contrast becomes low and the brightness becomes low, the lens is retracted without automatic focus adjustment. In this embodiment, before giving up the focus detection, the lens is further extended or reciprocated to perform one reciprocating scan to search for a position having contrast. This will be described in the flow after "LOWCON" from # 165 in FIG.
本実施例では被写体輝度の判定をAGCデータによってい
るが、これは積分時間によってもよい。例えば、本実施
例に用いられるフラグのうちで、CCDイメージセンサ(F
LM)の積分時間が50ms以上のときならたつ1−cut shot
フラグを用いてもよい。In the present embodiment, the determination of the subject brightness is based on AGC data, but this may be based on the integration time. For example, among the flags used in this embodiment, the CCD image sensor (F
If the integration time of LM) is 50 ms or more, it will be 1-cut shot
You may use a flag.
さて第11図の#86からの「MAIN1」について次に説明す
るが、ここからレンズの駆動処理等の話に入る。まず#
86は#75で得られたシリアルデータとこれまでのAFマイ
コン(MC1)の動作していたモードとを比較して、モー
ドが変わっていれば#33の「AFSTART」から再び始め
る。すなわち前回のシリアル通信#33後でセットされて
いるAFモード/FAモード/MANUALモードの別や、単写/連
写のモードの別を示すレジスタRGの内容と、焦点検出モ
ードのフラグ(AFモードフラグ、FAモードフラグ)や、
単写モードのフラグ(DR)とを比較して変わっていれば
#33へ進むということである。そして、この#33のとこ
ろで、自動的にモードレジスタRGに新たなモードが書き
込まれる。#87で、補助光を用いる焦点検出の動作モー
ドになっているかどうかのチェックをし、補助光を用い
るモード(以下、補助光AFモードという)であれば、補
助光を用いる第14図の焦点検出用フローの#238「LSAV
E」へ入っていく。なおこの補助光AFモードへの入り方
は、被写体が低コントラストかつ低輝度の状態であると
いう条件であるため、第13図の#165の「LOWCON」から
始まるローコントラストのフローの中から入ることにな
る。Now, the "MAIN1" from # 86 in FIG. 11 will be described below, but from here, the process of driving the lens will be explained. First #
The 86 compares the serial data obtained in # 75 with the mode in which the AF microcomputer (MC1) has been operating so far, and if the mode has changed, restarts from "AF START" in # 33. That is, the contents of register RG indicating whether AF mode / FA mode / MANUAL mode set after the last serial communication # 33 or single shooting / continuous shooting mode and the focus detection mode flag (AF mode Flag, FA mode flag),
It means that if it is changed by comparing with the flag (DR) of the single shooting mode, the process proceeds to # 33. Then, at # 33, a new mode is automatically written in the mode register RG. In # 87, it is checked whether or not the mode is the focus detection operation mode using the auxiliary light. If it is the mode using the auxiliary light (hereinafter referred to as the auxiliary light AF mode), the focus of the auxiliary light in FIG. 14 is used. Detection flow # 238 "LSAV
Enter "E". Note that the method of entering the fill-in AF mode is that the subject is in a state of low contrast and low brightness. Therefore, enter from the low-contrast flow starting from “LOW CON” in # 165 of FIG. become.
#87で補助光AFモードでなければ、#88で今回ローコン
フラグ(第5−1表の今回ローコンF)をチェックして
焦点検出演算の結果がローコンコトラストであったか否
かを判別し、ローコンコトラストであれば第13図の#16
5の「LOWCON」フローへ移る。この#88で出てくる今回
ローコンフラグは#76の中で判別され、たてられるもの
である。今回の演算結果がローコンコトラストでなけれ
ば、#89へ進み、第10図の#71で入力したAGCデータを
チェックし、AGCデータが1倍であれば#90で200msフラ
グをクリアしておく。これは、先ほど暗い時に最大積分
時間が200msモードの状態があると述べたが、200msモー
ドになっている時、AGCデータが1倍であれば200msモー
ドにしておく必要はなく、最大積分時間の短い100msモ
ードにしておいた方が積分時間が短くて良いからであ
る。積分時間が200msでAGCデータが1倍の時と、積分時
間が100msでAGCデータが2倍の時とは画素出力はほぼ同
じものと見ることができるということと、被写体の動き
や、カメラの手ぶれを考えれば、積分時間が長くなると
不利であるということで、被写体のコントラストが見つ
かれば、最大積分時間が100msのモードにもどしている
のである。If it is not the auxiliary light AF mode in # 87, the low contrast flag (current low contrast F in Table 5-1) is checked in # 88 to determine whether or not the result of the focus detection calculation is low contrast trust. If trust, # 16 in Figure 13
Move to the "LOW CON" flow of 5. This time the low-con flag that appears in # 88 is identified and set in # 76. If the result of this operation is not Low Conco Trust, proceed to # 89, check the AGC data input in # 71 of FIG. 10, and if the AGC data is 1 time, clear the 200 ms flag in # 90. . I mentioned that there is a state where the maximum integration time is 200 ms mode when it is dark, but when it is 200 ms mode, it is not necessary to set it to 200 ms mode if the AGC data is 1 time, This is because setting the short 100ms mode allows the integration time to be shorter. It can be seen that the pixel output is almost the same when the integration time is 200 ms and the AGC data is 1 time, and when the integration time is 100 ms and the AGC data is 2 times, the movement of the subject and the camera Considering camera shake, it is disadvantageous when the integration time becomes long, so if the contrast of the subject is found, the mode is set back to the mode where the maximum integration time is 100 ms.
#91から始まる「NLOC1」のフローは、被写体にコント
ラストがみつかった時のフローで、#91では、スキャン
禁止フラグに“1"をたてる。これは、被写体のコントラ
ストが低い場合、コントラストの高い位置をさがして、
フォーカシングレンズを動かしつつ焦点検出するこをロ
ーコンスキャンと呼んでいるのであるが、いったん被写
体にコントラストが出れば、スイッチ(S1)が閉成され
ている間の一連のシーケンスでは、このローコンスキャ
ンを禁止している。なぜなら、頻繁にスキャンをする
と、自動焦点調節カメラとして使いにくいということの
他に、一度コントラストがみつかったのであるから、今
のレンズ繰り出し位置付近で、続けて焦点検出した時に
たとえローコントラストになることがあっても、再びコ
ントラストがみつかる確率も多いと思われ、次にローコ
ントラストになったからといってすぐにローコンスキャ
ンに入ると焦点検出にとって逆効果であるということに
よる。The flow of "NLOC1" starting from # 91 is a flow when the contrast is found in the subject, and in # 91, the scan prohibition flag is set to "1". This is because if the contrast of the subject is low, look for a high contrast position,
Focus detection while moving the focusing lens is called low-con scan. However, once the contrast appears on the subject, this low-con scan is performed in a series of sequences while the switch (S1) is closed. Is prohibited. Because, if you scan frequently, it is difficult to use as an autofocus camera, and the contrast was found once, so even if the focus is detected continuously in the vicinity of the current lens extension position, it will be low contrast. However, it seems that there is a high probability that the contrast will be found again, and even if the low contrast is reached next time, it is counterproductive to focus detection if the low contrast scan is started immediately.
更に、このスキャン禁止状態にしているのは、この他
に、ローコントラストでスキャンを一度やり終えた場合
があるからである。#92から#101までのフローではロ
ーコンスキャン中に、充電なコントラストを見つけた時
の処理を主として表わしている。これには大きく分けて
2通りの場合があり、CCDイメージセンサ(FLM)の積分
時間が50msを超えている時と、そうでない時に分かれ
る。積分時間が50msを超えるように被写体が暗い時には
ローコンスキャン中にコントラストを見つけた時点で、
一度レンズを完全に止めてから焦点検出をしなおし、そ
の結果に従って合焦位置までレンズを動かす。レンズが
動いている間は焦点検出しない。この理由は、積分時間
が長くかかるようになってきた時、レンズ駆動を行なっ
ていれば、被写体の像が流れ出し、デフォーカス量計算
に悪影響を及ぼすからである。積分時間が長くなり、AG
Cの倍率が大きくなってきたりすると、CCDイメージセン
サ(FLM)の暗出力ばらつきのノイズも大きくなり、こ
の状態で像が流れたりすると、微妙なピント合わせが狂
うからである。Further, the reason why the scan is prohibited is that, in addition to this, there is a case where the scan is once completed with low contrast. The flow from # 92 to # 101 mainly shows the processing when a chargeable contrast is found during low contrast scanning. This can be roughly divided into two cases, and it is divided when the integration time of the CCD image sensor (FLM) exceeds 50 ms and when it is not. When the subject is dark such that the integration time exceeds 50 ms, when the contrast is found during low contrast scanning,
Once the lens is completely stopped, focus detection is performed again, and the lens is moved to the in-focus position according to the result. Focus is not detected while the lens is moving. The reason is that when the lens is driven when the integration time becomes long, the image of the subject flows out, which adversely affects the defocus amount calculation. Integration time becomes longer, and AG
This is because when the magnification of C becomes large, the noise due to the dark output variation of the CCD image sensor (FLM) also becomes large, and if the image flows in this state, delicate focusing will be lost.
そこで積分時間が50msを超えるような場合には、レンズ
を動かしながら焦点検出をしないで、止まっている時の
みの値によって焦点検出するという方法をとり、これを
1−cut shotモードとよび、このことを示すフラグ(第
5−1表の1−cut shotフラグ)を設けてある。このフ
ラグは#49又は#59ですでにセットされてくるのであ
る。次に積分時間が50msを超えないような明るい被写体
の場合は、ローコンスキャン中に充分なコントラストを
見つけると、今度はレンズを停止させることなく、コン
トラストが出たそのデータを用いて、焦点検出演算を行
ない、その結果の合焦点までレンズを駆動させる。この
間、焦点検出演算は繰り返しており、合焦位置までのレ
ンズ駆動量を常にリフレッシュさせてフォーカシングさ
せる。これはレンズ駆動中繰り返して焦点検出するの
で、multi shotモードと称しておく。ローコンスキャン
中からレンズを止めずに焦点検出をするということにな
ると、CCDイメージセンサ(FLM)が積分している時点と
レンズ駆動量が求まる時点とでは、レンズ位置が異なっ
ている。この移動分を補正するための準備を後述の「LO
WCON」フローの中で行なっており、これを用いて移動分
の補正をする。この移動分の補正についての考え方は、
特開昭59−68713号公報に述べられているので、ここで
詳しいことは省略する。Therefore, when the integration time exceeds 50 ms, the focus is not detected while moving the lens, and the focus is detected by the value only when the lens is stopped. This is called the 1-cut shot mode. A flag indicating that (1-cut shot flag in Table 5-1) is provided. This flag is already set in # 49 or # 59. Next, in the case of a bright subject whose integration time does not exceed 50 ms, if sufficient contrast is found during low-con scanning, then the focus detection is performed using that contrasted data without stopping the lens. The calculation is performed, and the lens is driven up to the resulting focal point. During this period, the focus detection calculation is repeated, and the lens drive amount up to the in-focus position is constantly refreshed for focusing. This is called the multi shot mode because the focus is repeatedly detected while the lens is being driven. When it comes to focus detection without stopping the lens during low contrast scanning, the lens position is different between the time when the CCD image sensor (FLM) is integrated and the time when the lens drive amount is obtained. For the preparation for correcting this movement, see “LO
It is performed in the "WCON" flow, and the movement amount is corrected using this. The idea about this movement correction is
Since it is described in Japanese Patent Laid-Open No. 59-68713, detailed description will be omitted here.
次に、ローコンスキャン中からコントラストを見つけ、
multi shotモードの動作を始めたあとでもローコントラ
ストの結果が出ることもありえる。この場合、ローコン
トラストの結果については無視し、ローコントラストと
なる前にセットされている駆動量に従って合焦点と思わ
れる位置までレンズを駆動させる。コントラストの出て
いる結果だけを使って駆動させるのである。ローコント
ラスト状態から脱するということを判断するのは、前回
ローコンフラグ(第5−2表の電解ローコンF)をチェ
ックして行なう。このフラグは、第13図の#165からの
「LCWCON」フローの中でセットされるフラグで、前回の
演算結果がローコントラストであった時にセットされて
いる。一方、#92に来ている時というのは、今回の結果
ではコントラストがあったということであるので、#92
で前回ローコンフラグに“1"がたっていれば、ローコン
トラストから抜け出てきたということで#93へ進む。前
回ローコンフラグが“0"であれば、はじめからコントラ
ストがあって焦点検出している時に通る所として、#92
から#102へ進む。#93では焦点調節状態の表示を消
す。これまでローコントラストで、レンズ駆動が停止状
態であった場合は、焦点検出不能の点滅表示をしている
が、コントラストが出たのでこれは消しておくのであ
る。#94では、前述のように1−cut shotフラグがたっ
ていれば、レンズを停止させないといけないので#95へ
進み、1−cut shotフラグがたっていなければ、ローコ
ンスキャン中であってもレンズを止めずにおき、#101
へ進む。#101では、前回ローコンフラグ、スキャン当
りフラグ(第5−1表のスキャン当りF)、及びスキャ
ン中フラグ(第5−1表のスキャン中F)をクリアして
おく。これはローコンスキャンを一度し終えていたり、
又は、スキャン中であった場合の状態を示すフラグをリ
セットしておくためである。なお、スキャン禁止フラグ
はもちろんリセットしないで残しておく。Next, find the contrast in the low contrast scan,
It is possible that low-contrast results may be obtained even after the operation of the multi shot mode is started. In this case, the result of low contrast is ignored, and the lens is driven to a position that is considered to be the in-focus point according to the drive amount set before the low contrast is obtained. Only the results with contrast are used for driving. The decision to exit from the low contrast state is made by checking the previous low control flag (electrolytic low control F in Table 5-2). This flag is set in the "LCWCON" flow from # 165 in Fig. 13, and is set when the previous calculation result was low contrast. On the other hand, when it comes to # 92, it means that there was contrast in this result, so # 92
Then, if the low contrast flag was set to "1" last time, it means that the low contrast was exited and the process proceeds to # 93. If the low contrast flag was “0” the last time, there is contrast from the beginning and it is passed as # 92 when the focus is detected.
To # 102. In # 93, the focus adjustment status display is turned off. Until now, when the lens drive was in a low contrast state and the lens drive was stopped, a blinking display indicating that focus detection is not possible is displayed, but this is erased because the contrast appears. In # 94, if the 1-cut shot flag is set as described above, the lens must be stopped, so proceed to # 95. Do not stop, # 101
Go to. In # 101, the previous low contrast flag, the per-scan flag (F per scan in Table 5-1) and the in-scan flag (In-scan F in Table 5-1) are cleared. This is after finishing low contrast scan,
Alternatively, it is for resetting the flag indicating the state when the scan is in progress. Of course, the scan prohibition flag is left without being reset.
#95は、1−cut shotモード状態になっている時に来て
いるのであるが、ここで、スキャン中フラグをみてロー
コンスキャン中に来たかどうかをチェックする。スキャ
ン中でなければ#101へ進み、今の演算結果に従ってレ
ンズを駆動する方へ行き、スキャン中であれば#96、#
97で第6表に示した信号パターンに従って、レンズ駆動
用モータ(MO1)への通電を切って、ブレーキをかけ
る。レンズを止めた状態を覚えておくために、#98で駆
動中フラグ(第5−2表の駆動中F)をクリアしてお
く。#99でレンズが完全に停止するまで70ms時間待ちを
し、#100で#101と同様のフラグをクリアして、#39の
「CDINTA」へもどり、次の焦点検出に入る。#99の時間
待ちは、前述のようにセンサの積分時間が長い時にレン
ズが動いていると、像が流れたり、さらに問題なのはた
とえ駆動中の積分データ位置に移動分の補正を行なって
も、負の加速度がかかっている時だと正しい補正が難し
いので、完全にレンズが止まりきってから次のセンサ積
分を始めれば、焦点検出演算の合焦ずれを防ぐことがで
きるからである。# 95 comes when it is in the 1-cut shot mode state. Here, it is checked whether or not it came during the low-con scanning by checking the scanning flag. If it is not scanning, proceed to # 101, go to the one that drives the lens according to the current calculation result, and if it is scanning, # 96, #
At 97, the lens drive motor (MO1) is de-energized and the brake is applied according to the signal pattern shown in Table 6. In order to remember the state where the lens is stopped, the driving flag (driving F in Table 5-2) in # 98 is cleared. At # 99, wait 70ms until the lens is completely stopped. At # 100, clear the same flag as # 101 and return to "CDINTA" at # 39 to start the next focus detection. As described above, the # 99 wait time causes an image to flow if the lens is moving when the integration time of the sensor is long. Correct correction is difficult when a negative acceleration is applied, and if the next sensor integration is started after the lens is completely stopped, the focus shift of the focus detection calculation can be prevented.
次に、焦点検出演算結果のデフォーカス量を、レンズ駆
動のためのパルスカウント値に変換するフロー「MPUL
S」がある。#102で、この範囲にレンズが入っていれば
ピントが合うというデフォーカス範囲を合焦ゾーンとし
てレジスタFZWにセットしておく。なおここで自動焦点
調節状態(AFモード)の合焦ゾーン量と、焦点調節表示
状態(FAモード)の合焦ゾーン量とは区別されており、
FAモードではAFモードより広い値をセットする。#103
から#106は、レンズが終端で止まっている時のフロー
で、これはレンズが無限遠端に当たっている時の場合で
ある。#103の終端フラグ(第5−2表の終端F)は、
ここに来るまでの終端チェックサブルーチンの中でたて
られている。レンズが終端に止まっていれば、#104へ
進み、前回方向フラグ(第5−3表の前回方F)をみて
どちらの方向へレンズが動こうとしていたかをチェック
する。レンズが無限遠端にあって、さらに無限遠側へ駆
動しようとしている時には#105へ進み、終端位置フラ
グ(第5−2表の終端位置F)をチェックして終端位置
が無限遠端側か最近接端側かを見て、無限遠端側なら#
106へ進んで合焦ゾーンを255μmという大きい値に設定
している。レンズ停止位置が最近接端であれば、#107
へぬける。これは焦点検出データのばらつきでレンズが
無限遠端位置にあっても、さらに無限遠端方向に合焦位
置があるという結果になることもありえるし、また狭い
合焦ゾーンをセットしていれば、無限遠端でもさらに無
限遠側へレンズを動かそうとする可能性もある。又、さ
らに無限遠端と思っている位置が、実は他の外的応力に
よってレンズを途中で止められていることもありえる。
本実施例では、これは区別がつかない。Next, the flow for converting the defocus amount of the focus detection calculation result into the pulse count value for driving the lens "MPUL
There is an S ". In # 102, the defocus range in which the lens is in focus within this range is set in the register FZW as the focusing zone. Note that here, the focus zone amount in the automatic focus adjustment state (AF mode) and the focus zone amount in the focus adjustment display state (FA mode) are distinguished,
Set a wider value in FA mode than in AF mode. # 103
Since # 106 is the flow when the lens is stopped at the end, this is the case when the lens is hitting the end at infinity. The end flag of # 103 (end F in Table 5-2) is
It is made in the termination check subroutine before coming here. If the lens has stopped at the end, the process proceeds to step # 104, and the direction flag (previous direction F in Table 5-3) is checked to see in which direction the lens is about to move. If the lens is at the infinity end and you are trying to drive to the infinity side, proceed to # 105 to check the end position flag (end position F in Table 5-2) to see if the end position is at the infinity end side. See if it is the closest end, and if it is the end at infinity, #
Go to 106 and set the focusing zone to a large value of 255 μm. If the lens stop position is the closest end, # 107
Break through. Even if the lens is at the infinity end position due to variations in the focus detection data, this may result in the in-focus position being further toward the infinity end, and if a narrow focus zone is set. , At the infinity end, there is a possibility to move the lens toward the infinity side. Further, it is possible that the position considered to be the end at infinity is actually stopped by the lens due to other external stress.
In the present example, this is indistinguishable.
そこでレンズが無限遠端にあり、さらに無限遠端を超え
て合焦位置が有るという検出結果になっている時には、
まず合焦ゾーンを255μmに広げ、これで合焦ゾーン内
にレンズが入っていれば合焦表示をし、この数値でも合
焦ゾーン内に入っていなければ、焦点検出不能の表示
(LEDの点滅表示)を行う。自動焦点調節中レンズが無
限遠側へ動こうとしている時に、手などで強制的にレン
ズを止められたりした場合、そのレンズ停止位置が合焦
ゾーン内でなければ、LEDの点滅表示をするということ
である。この表示のフローは#120から#123に当る。Therefore, when the detection result shows that the lens is at the infinity end and the in-focus position is beyond the infinity end,
First, widen the focus zone to 255 μm, and if the lens is inside the focus zone, the focus display will be shown. If this value is not within the focus zone, focus detection is not possible (LED blinks) Display). If the lens is forcibly stopped by hand etc. while the lens is trying to move to the infinity side during automatic focus adjustment, the LED will blink if the lens stop position is not within the focus zone. That is. The flow of this display is from # 120 to # 123.
一方、最近接端にレンズがあって、さらに被写体が近接
側にあると検出している場合や、自動焦点調節中レンズ
が近接側へ動こうとしているのに、強制的に途中でレン
ズが止められたりした場合、その位置が合焦ゾーン内に
入っていなければ、最近接側方向の表示をすることにし
ている。この表示のフローは、第12図の#147から#152
に当たる。レンズが無限遠端に止まっていなければ、合
焦ゾーンは#102でセットした数値のまま#107に移る。On the other hand, if there is a lens at the closest end and it is detected that the subject is on the close side, or if the lens is trying to move to the close side during automatic focusing, the lens is forcibly stopped halfway. If the position is not within the in-focus zone, the display is made in the closest direction. The flow of this display is from # 147 to # 152 in FIG.
Hit If the lens does not stop at the infinity end, the focus zone moves to # 107 with the value set in # 102.
#107では補助光モードフラグに基づいて補助光AFモー
ドになっているかどうかをチェックし、補助光AFモード
であれば、色収差補正をする。補助光AFモード時の照明
光は、赤外光に近い波長の光を用いるため、フラッシュ
撮影時には光源の差によるベストピント位置のずれが生
ずる。よって、補助光AFモードになっていれば、このピ
ント位置ずれ量を補正しないといけない。この撮影レン
ズに応じた補正データ△IRは、第4表にあるように、制
御マイコン(MC2)からシリアル通信で送られてくるの
である。これを#108で、これまで求まっているデフォ
ーカス量DFに対して補正する。そして#109で、デフォ
ーカス量をレンズ駆動のためのパルスカウント値に変換
する。この変換のための係数も、各レンズによって固有
であるので、△IR同様シリアル通信で送られてくるデー
タKROMを使用する。求まっているデフォーカス量DFも変
換係数KROMを乗算してレンズ駆動のためのパルスカウン
ト値DRCNTを求める。同様にして、合焦ゾーンFZWもデー
タKROMを乗じてパルスカウント値FZCに変換しておく。
これらパルスカウン値への変換については特開昭59−14
0408号公報で詳細に述べられているので、ここでは省略
する。In # 107, it is checked whether or not the auxiliary light AF mode is set based on the auxiliary light mode flag. If it is the auxiliary light AF mode, chromatic aberration correction is performed. Since the illumination light in the auxiliary light AF mode uses light having a wavelength close to infrared light, the best focus position is displaced due to the difference in light source during flash photography. Therefore, if the auxiliary light AF mode is set, this focus position shift amount must be corrected. As shown in Table 4, the correction data ΔIR corresponding to the taking lens is sent from the control microcomputer (MC2) by serial communication. This is corrected in # 108 with respect to the defocus amount DF that has been obtained so far. Then, in # 109, the defocus amount is converted into a pulse count value for driving the lens. Since the coefficient for this conversion is also unique to each lens, the data KROM sent by serial communication is used like ΔIR. The defocus amount DF found is also multiplied by the conversion coefficient KROM to find the pulse count value DRCNT for driving the lens. Similarly, the focusing zone FZW is also multiplied by the data KROM and converted into the pulse count value FZC.
Regarding the conversion into these pulse count values, JP-A-59-14
Since it is described in detail in Japanese Patent No. 0408, it is omitted here.
そして、#110で、駆動中フラグ(第5−2表の駆動中
F)に基づいて、現在、自動焦点調節動作中かどうか判
断して、レンズが駆動している時には、#131の「IDOBU
N」へ分岐する。レンズが停止中だった時、すなわち、
最初にフローを通過する時や、自動焦点調節終了後の合
焦位置確認時、もしくはFAモード時に#111へ進む。こ
こでは、レンズ停止時のデフォーカス量DFをメモリFERM
へ保存しておく。これは後ほど、この値によって自動焦
点調節終了後の合焦位置確認のループに行くか行かない
かを決めるのに用いる。次の#112ではAFモードフラグ
に基づいてAFモードかどうかの判断をし、nonAFモード
であれば、#113からの「FAP」へ分岐する。これは非AF
モードということはFAモードであるということによる。Then, in # 110, it is determined based on the driving flag (driving F in Table 5-2) whether or not the automatic focus adjustment operation is currently being performed, and when the lens is driving, “IDOBU
Branch to N ”. When the lens was stopped, that is,
When passing through the flow for the first time, when confirming the in-focus position after completion of automatic focus adjustment, or when in FA mode, proceed to # 111. Here, the defocus amount DF when the lens is stopped is stored in the memory FERM.
Save to. This value will be used later to determine whether to go to the loop for checking the in-focus position after the end of automatic focus adjustment or not according to this value. In the next step # 112, it is determined whether the AF mode is set or not based on the AF mode flag. This is non-AF
The mode is because it is the FA mode.
#113ではレンズが合焦ゾーン内にあるかどうかの判断
をしている。ここでは、レンズ駆動用パルスカウント値
DRCNTと合焦ゾーンパルスカウント値FZCとで比較してい
るが、デフォーカス量DFと合焦ゾーン量FZWとを比較し
てもよい。この結果、合焦ゾーン内にレンズがあれば、
#115で合焦表示をする。これは、端子(P31)のLM信号
を“Low"におとし、LL,LR信号を“High"のままにして、
中央のLED(LEDM)のみを点灯させることによってなさ
れる。合焦ゾーン外であれば、#114へ進み、ここでレ
ンズを駆動すべき方向を示す。例えば、レンズを繰り出
す方向であれば、端子(P32)のLL信号を“Low"にして
左側のLED(LEDL)を点灯させ、レンズを繰り込む方向
であれば端子(P30)のLR信号を“Low"にして右側のLED
(LEDR)を点灯させる。そして次の焦点検出の為に第9
図の#40の「CDINTA」へループする。In # 113, it is judged whether or not the lens is in the focusing zone. Here, the lens drive pulse count value
Although DRCNT is compared with the focus zone pulse count value FZC, the defocus amount DF and the focus zone amount FZW may be compared. As a result, if there is a lens in the focusing zone,
The focus is displayed with # 115. This sets the LM signal of the terminal (P31) to "Low" and the LL and LR signals to "High",
This is done by turning on only the central LED (LEDM). If it is outside the focusing zone, the process proceeds to step # 114 where the direction in which the lens should be driven is shown. For example, in the lens extension direction, set the LL signal of the terminal (P32) to "Low" to turn on the left LED (LEDL), and in the lens extension direction, set the LR signal of the terminal (P30) to ""Low" and right side LED
Turn on (LEDR). And for the next focus detection,
Loop to # 40 "CDINTA" in the figure.
#112でAFモードであった場合には、#116でAFモード時
の合焦チェックをする。レンズ駆動パルスカウント値DR
CNTが合焦ゾーンパルスカウント値FZCより小さければ合
焦ということで、#117からの「INFZ」へ分岐する。#1
17では、FAモード時の#115と同様に合焦表示をし、#1
18で端子(P12)からのAFE信号を“High"にする。制御
マイコン(MC2)は、この信号を見ており、“High"にな
れば自動焦点調節が完了したと見る。そして、AF優先モ
ードであれば、AFE信号が“High"になってはじめてレリ
ーズ動作を可能とすることになる。#119では、ここ
で、AFストップのINT1の割り込みかINT2のレリーズ割り
込みを待つことになる。これは、第2図のスイッチ(S
1)の一回の閉成時に一回だけ自動焦点調節をするとい
うワンショットモードとした時の方法であり、一度被写
体にピントが合えば、このあとピント位置がかわっても
合焦表示をしたままだし、又、レンズも再度駆動される
ことはない。又、他のやり方として、#119で割り込み
待ちにしないで、これを#39の「CDINTA」又は#40の
「CDINT」へ戻れば、繰り返し焦点検出し、常に被写体
に追従して自動焦点調節をするというコンティニュアス
モードにすることもできる。If it is in AF mode in # 112, focus check in AF mode is performed in # 116. Lens drive pulse count value DR
If the CNT is smaller than the focus zone pulse count value FZC, it means that the focus is achieved, and the process branches to “INFZ” from # 117. # 1
In 17, the focus display is displayed as in # 115 in FA mode, and
At 18, set the AFE signal from pin (P12) to "High". The control microcomputer (MC2) is watching this signal, and if it becomes "High", it is considered that the automatic focus adjustment has been completed. Then, in the AF priority mode, the release operation becomes possible only after the AFE signal becomes "High". In # 119, you will be waiting for the AF stop INT1 interrupt or INT2 release interrupt here. This is the switch (S
1) This is a method when the one-shot mode is used, in which automatic focus adjustment is performed only once when the subject is closed once. Once the subject is in focus, the focus is displayed even after changing the focus position. The lens will not be driven again. Also, as another method, instead of waiting for interrupt at # 119, if you return this to “CDINTA” of # 39 or “CDINT” of # 40, focus detection will be repeated and automatic focus adjustment will always follow the subject. You can also set it to continuous mode.
#116で合焦ゾーン外にあると判断された時には、#120
へ進む。前述したようにここで、終端フラグ(第5−2
表の終端F)をチェックして終端であり(#120)、前
回方向フラグをチェックして焦点検出結果の合焦位置が
無限遠端側にあり(#121)、レンズ停止位置が無限遠
端であるならば(#122)、#123へ進み、レンズを駆動
させないで、両側の2つのLED(LEDL)(LEDR)を共に
点滅させて焦点検出の不能表示をし、#119で割り込み
待ちとなり、もう次の焦点検出へは行かない。これらの
条件以外の場合には、#124へ進む。When it is determined that it is out of the focusing zone in # 116, # 120
Go to. As described above, here, the termination flag (the 5-2nd
It is the end by checking the end F) of the table (# 120), the previous position flag is checked and the focus position of the focus detection result is at the infinity end side (# 121), and the lens stop position is at the infinity end. If it is (# 122), proceed to # 123, do not drive the lens, blink both LEDs (LEDL) (LEDR) on both sides to indicate that focus detection is not possible, and wait for interrupt at # 119. , I will not go to the next focus detection. In cases other than these conditions, the process proceeds to # 124.
#124から#130にかけては、デフォーカス方向の反転チ
ェックを行う。すなわち、前回の焦点検出演算結果のデ
フォーカス方向と、今回のループで演算した結果の方向
とを比べて、デフォーカス方向が反転したということが
わかれば、レンズ駆動系のバックラッシュの補正をしよ
うというものである。レンズを駆動させるにあたって、
特にカメラボディとレンズとの駆動力伝達軸のカプラー
部には、相当量のガタを設けてある。そのため、被写体
までの距離が変わったりしてレンズ駆動方向が反転すれ
ば、モータ(MO1)のからまわり量のためにレンズは演
算結果で求めた合焦位置まで動かなくなる。そこで、方
向が反転すれば、バックラッシュ量を補正しなければな
らなくなる。このバックラッシュ量は、撮影レンズに固
有であり、第4表で示したように制御マイコン(MC2)
からのシリアル通信によって得ている。ところがここに
出てくる前回のデフォーカス方向が、スイッチ(S1)を
閉成した後の第一回目のループである時はという、これ
についても、前回のシーケンスの最後のレンズ駆動方向
として覚えている。すなわち、スイッチ(S1)が閉成さ
れる前のマイコン(MC1)(MC2)のストップモード中も
覚えているというようにしている。又、このバックラッ
シュ補正は、演算結果が反転すればすぐ補正をするかと
いうとそうではなくて、この補正は、レンズが止まって
いる時だけに限っている。レンズ駆動中に方向が反転し
たという結果になった時には、ただレンズを止めるだけ
で、すぐレンズの反転駆動をさせない。又、前回方向フ
ラグもセットしなおさない。それで、レンズを止めたあ
との次の焦点検出演算で求めた方向(今回方向となる)
が、レンズを停止させた時のもう一回前に求まっていた
方向、すなわちレンズを駆動させていた方向(前回方
向)と反転していたら、始めてバックラッシュの補正を
するということになる。これは、合焦位置付近での演算
のばらつき等を考慮してのことで、バックラッシュ量の
誤差と合わさって、レンズがハンチングをおこしたりし
ないようにしている。From # 124 to # 130, the reversal check of the defocus direction is performed. That is, by comparing the defocus direction of the previous focus detection calculation result with the direction of the result calculated by this loop, if it is found that the defocus direction is reversed, correct the backlash of the lens drive system. That is. In driving the lens,
In particular, a considerable amount of play is provided in the coupler portion of the driving force transmitting shaft between the camera body and the lens. Therefore, if the lens driving direction is reversed due to a change in the distance to the subject, the lens will not move to the in-focus position determined by the calculation result due to the amount of rotation from the motor (MO1). Therefore, if the direction is reversed, the amount of backlash must be corrected. This backlash amount is unique to the taking lens, and as shown in Table 4, the control microcomputer (MC2)
It is obtained by serial communication from. However, when the last defocus direction that appears here is the first loop after closing the switch (S1), remember this as the last lens drive direction in the previous sequence. There is. That is, the memory is remembered even in the stop mode of the microcomputers (MC1) (MC2) before the switch (S1) is closed. Further, this backlash correction is not so right after the calculation result is reversed, but this correction is limited only when the lens is stopped. If the result is that the direction is reversed while driving the lens, just stop the lens and do not immediately perform the reverse driving of the lens. Also, the previous direction flag is not reset. Then, the direction obtained by the next focus detection calculation after stopping the lens (this is the current direction)
However, if it is reversed from the direction that was obtained once before the lens was stopped, that is, the direction that was driving the lens (previous direction), it means that the backlash will be corrected for the first time. This is because the dispersion of the calculation in the vicinity of the in-focus position is taken into consideration so that the lens does not hunt due to the error of the backlash amount.
これらについてのフローは、これから説明する#124か
ら#130と、レンズ駆動中のフローである第12図の#134
から#140との組み合わせで達成されている。#124で今
回方向フラグ(第5−3表の今回方向F)をチェックし
て今回のデフォーカス方向を見たあと、#125,#126で
前回のデフォーカス方向をチェックする。そして、前回
と今回とでデフォーカス方向が異なっていれば、#127,
#128へそれぞれ進み、前回方向フラグを書き換える。
同方向であれば、#141の「TINNZ」へスキップする。#
129ではシリアル通信で送られてきたバックラッシュ補
正用データBKLSHをレンズ駆動パルスカウント値DRCNTに
対して補正をし、#130では反転してバックラッシュの
補正をしたという反転フラグ(第5−2表の反転F)を
たてて、#141へ進む。The flow for these is # 124 to # 130, which will be described below, and # 134 in FIG. 12, which is the flow during lens driving.
Has been achieved in combination with # 140. In # 124, the current direction flag (current direction F in Table 5-3) is checked to see the current defocus direction, and in # 125 and # 126, the previous defocus direction is checked. If the defocus direction is different between the last time and this time, # 127,
Go to # 128 and rewrite the previous direction flag.
If they are in the same direction, skip to "TINNZ" in # 141. #
In 129, the backlash correction data BKLSH sent by serial communication is corrected with respect to the lens drive pulse count value DRCNT, and in # 130, the reverse flag is used to reverse and correct the backlash (Table 5-2). F) is set and the process proceeds to step # 141.
次に、第12図に基づいて#110から分岐したレンズ駆動
中の時の#131からのフロー「IDOBUN」の説明に移る。
この最初の#131で、レンズが終端で当たっているかど
うかのチェックをし、#132で移動分補正のための3回
目のイベントカウンタ値EVTCNTを読み込んで、レジスタ
T3にメモリする。これで、移動分の補正のための全デー
タを取り入れたことになる。すなわち、センサ積分開始
時のT1と、積分終了時のT2、そして焦点検出演算終了時
のT3で、この3つの値を使って、レンズ駆動中に積分し
て得られた画素データによる焦点検出演算結果と、実際
に演算が終了してレンズ駆動量をセットするまでにレン
ズが動いた量を補正することになる。積分中におけるレ
ンズの移動量Txをパルスカウント値で求めると、Tx=T1
−T2となる。ここで、イベントカウンタは減算カウント
としているので、T1>T2であり、Txは正である。焦点検
出演算に要する時間におけるレンズの移動量Tyは、Ty=
T2−T3として求められる。ここでレンズが定速で動いて
いることを前提として、センサ積分時間の中間の位置
を、被写体データを得た地点として代表させると、演算
結果が求まった時点との、Tz=Tx/2+Tyの量だけレンズ
が移動したことになる。そこで今回の演算結果で求まっ
ているカウント値DRCNTから、Tzをひいておけば、移動
分の補正がされたことになる。そこで、#133では、DRC
NT−TzをDRCNTとして新たに置え換、次のレンズ駆動パ
ルスカウント値としてセットする値になる。Next, with reference to FIG. 12, the flow "IDOBUN" from # 131 when the lens branched from # 110 is being driven will be described.
At # 131, check if the lens is hit at the end, and at # 132, read the event counter value EVTCNT for the third time to correct the movement amount and register it.
Store in T3. Now you have all the data for the correction of the movement. That is, T1 at the start of sensor integration, T2 at the end of integration, and T3 at the end of focus detection calculation, using these three values, focus detection calculation based on pixel data obtained by integration during lens driving. As a result, the amount by which the lens moves until the lens drive amount is set after the actual calculation is completed is corrected. When the moving amount Tx of the lens during integration is calculated by the pulse count value, Tx = T1
−T2. Since the event counter is a subtraction count here, T1> T2 and Tx is positive. The amount of lens movement Ty in the time required for focus detection calculation is Ty =
Calculated as T2-T3. Here, assuming that the lens is moving at a constant speed, if an intermediate position of the sensor integration time is represented as a point at which the subject data is obtained, Tz = Tx / 2 + Ty of the time when the calculation result is obtained. The lens has moved by the amount. Therefore, if Tz is subtracted from the count value DRCNT obtained by the calculation result of this time, it means that the movement amount is corrected. So, in # 133, DRC
NT-Tz is newly replaced as DRCNT and becomes the value to be set as the next lens drive pulse count value.
#134から#140は、前述のようにレンズ駆動中にデフォ
ーカス方向が反転した場合のフローで、#134で今回方
向フラグをチェックして今回のデフォーカス方向を見
て、#135と#136で前回方向フラグをチェックして前回
のデフォーカス方向をチェックして、方向が反転してい
れば#137へ進み、反転していなければ#141へ進む。#
137,#138ではレンズ駆動用モータ(MO1)への通電を切
ってブレーキをかけて止め、#139でレンズ駆動中を示
す駆動中フラグをクリアし、#140でレンズが止まりき
るまで70ms待ったうえで、#39の「CDINTA」へ進む。Steps # 134 to # 140 are the flow when the defocus direction is reversed during lens driving as described above. In # 134, the current direction flag is checked to see the current defocus direction. Then, the previous direction flag is checked to check the previous defocus direction, and if the direction is reversed, proceed to # 137, and if not reversed, proceed to # 141. #
In 137 and # 138, the lens drive motor (MO1) is de-energized and the brake is applied to stop it. In # 139, the driving flag indicating that the lens is being driven is cleared, and in # 140, wait 70 ms until the lens stops. Then proceed to # 39 "CDINTA".
#141から始まる「TINNZ」は、レンズ駆動中及び停止中
の両方から合流してくるフローで、レンズ駆動パルスカ
ウント値DRCNTをセットして、レンズを動かす部分であ
る。レンズの駆動スピードは、本実施例では二段式にな
っており、レンズが合焦位置から遠く離れている時のハ
イスピードと、レンズ合焦位置近傍にあるロースピード
とを切り換えることにしている。そして、ロースピード
でレンズをコントロールする部分を、ニアゾーンと呼ぶ
とする。#141では、レンズ駆動パルスカウント値DRCNT
が、このニアゾーンの領域のパルスカウント値NZC以内
であるかどうかをチェックして、レンズがニアゾーンの
領域内に入っていれば、#143へ進み、ニアゾーンフラ
グ(第5−2表のニアゾーンF)をセットする。#144
で端子(PO3)からのMC信号を“Low"とし、第6表のよ
うにレンズ駆動用モータ(MO1)をロースピードで駆動
させるようにする。“TINNZ” starting from # 141 is a flow that merges from both during lens driving and during lens stopping, and is a part where the lens driving pulse count value DRCNT is set and the lens is moved. The driving speed of the lens is a two-stage type in this embodiment, and it is set to switch between high speed when the lens is far away from the focus position and low speed near the focus position of the lens. . The part that controls the lens at low speed is called the near zone. In # 141, the lens drive pulse count value DRCNT
However, if the lens is within the near zone area, the process proceeds to step # 143, where the near zone flag (near zone F in Table 5-2) is checked. ) Is set. # 144
Then, the MC signal from the terminal (PO3) is set to "Low" to drive the lens drive motor (MO1) at low speed as shown in Table 6.
一方、ニアゾーン外である時には、#142に進んでMC信
号を“High"とし、レンズ駆動用モータ(MO1)をハイス
ピードで駆動させるようにする。On the other hand, when it is outside the near zone, the process proceeds to step # 142, the MC signal is set to "High", and the lens driving motor (MO1) is driven at high speed.
#145から#152までは前述にも説明の一部があったがレ
ンズが終端位置に止まっている時の処理についてのフロ
ーである。ところでレンズが終端で止まっているという
ことを検知するのは、後述の第14図の「CLOCK」からの
サブルーチンで述べるように、レンズ終端位置にスイッ
チがあるわけではなくて、割り込みポートINT3から入力
されるモータ駆動量モニタ用エンコーダ(ENC)からの
パルスが一定期間入力されなくなったらレンズが停止し
ているという判断による。モータ(MO1)を駆動してい
るのにレンズが止まっているということはレンズ終端で
当たっているということであると判断して、「CLOCK」
のサブルーチンの中でモータ駆動を止めて、終端フラグ
をたてるのである。この方法だとレンズが実際に終端に
来ていなくとも途中で強制的に止められたり、又は、何
かがレンズにはさまったりとかなんらかの要因で、一瞬
(数100msのオーダー)レンズが止まったりしても終端
と判断してしまう。Although a part of the description has been given in the above, from # 145 to # 152 is a flow of processing when the lens is stopped at the end position. By the way, detecting that the lens is stopped at the end does not mean that there is a switch at the lens end position, as described in the subroutine from "CLOCK" in Fig. 14 below, and it is input from the interrupt port INT3. It is judged that the lens is stopped when the pulse from the motor drive amount monitor encoder (ENC) is not input for a certain period. If the lens is stopped even though the motor (MO1) is being driven, it is judged that it is hit at the end of the lens, and "CLOCK"
In the sub-routine, the motor drive is stopped and the end flag is set. With this method, even if the lens is not at the end, it will be forcibly stopped in the middle, or something will be caught in the lens, or the lens will stop for a moment (on the order of several 100 ms). However, it will be judged as the end.
こういったことを防ぐために、一度終端でレンズが止ま
ったと見ても、もう一度レンズを動かしてみて、再度
「CLOCK」サブルーチンで終端と判断されはじめて、実
際に終端で止まっているとしている。これを見るフラグ
が終端2ndフラグ(第5−2表の終端2F)で、#145で、
「CLOCK」サブルーチンの中でたてられた終端フラグを
見て、“1"であった時に、#146でこの終端2ndフラグを
見る。そして、初期状態ではこのフラグは“0"であるの
で#150へ進み、終端2ndフラグをたてておいて、#153
からのレンズ駆動フローで、レンズを動かす。そして、
次のループで#146へ来た時に、はじめて、終端で止ま
っているという判断をして#147へ進む。In order to prevent such a thing, even if the lens stops once at the end, try moving the lens again, and once it is judged to be the end by the "CLOCK" subroutine, it is said that it actually stops at the end. The flag to see this is the end 2nd flag (end 2F of Table 5-2), and in # 145,
Look at the end flag set in the "CLOCK" subroutine, and when it is "1", see this end 2nd flag at # 146. Then, in the initial state, this flag is "0", so the routine proceeds to # 150, and the terminal 2nd flag is set and # 153 is set.
Move the lens with the lens drive flow from. And
When it comes to # 146 in the next loop, it judges that it has stopped at the end for the first time, and proceeds to # 147.
#147では、今回のデフォーカス方向をチェックし、そ
して、#148と#149で終端位置フラグをみて今レンズが
どちか側の終端に当たっているかをチェックする。すな
わち今回のデフォーカス状態が前ピン(今回方向フラグ
=1)であり、レンズ位置が無限遠端であるとすると、
レンズは、今の無限遠端よりさらに無限遠側へ動かされ
なければならないことになる。この場合は、#148から
#40へ進み、次の「CDINT」からのループで、前述の説
明にあったように、合焦ゾーンを広げてみて、合焦再チ
ェックを行う。In # 147, the current defocus direction is checked, and in # 148 and # 149, the end position flag is checked to see if the lens is currently hitting the end on either side. That is, assuming that the current defocus state is the front focus (current direction flag = 1) and the lens position is at the infinity end,
The lens will have to be moved further to the infinity side than the current infinity end. In this case, the process proceeds from # 148 to # 40, and in the next loop from "CDINT", the focusing zone is expanded and the focusing recheck is performed as described above.
今回のデフォーカス状態が後ピン(今回方向フラグ=
0)であり、#149でレンズ位置が最近接側(終端位置
フラグ=1)であるとすると、レンズはさらに近接側へ
動かされないといけないことになる。この場合は、#14
9から#152へ進み、端子(P32)からのLL信号を“Low"
にして最近接側へレンズを動かすことを指示する方向表
示を点灯する。そして、レンズを停止させたままにし、
#40からの次ループへ進み焦点検出を繰り返す。そして
被写体の位置がかわり、デフォーカス方向が反転すれ
ば、ループ中#147から#148へ進み#151へ抜け、終端
フラグをクリアして#153からのレンズ駆動のループへ
入っていく。なお、この実施例では#147のデフォーカ
ス方向のチェックに今回方向フラグを用いたが前回方向
フラグを用いてもよく、この場合は、最近接端よりも被
写体が近接側にある状態から、レンズの合焦可能領域に
入ってもレンズは追従しないで停止したままとなる。ワ
ンショットAFモードという場合であるば、後者の方法で
よく、コンティニュアスAFモードという場合であれば前
者でないと不都合であるといえる。This time the defocus state is the rear pin (this time direction flag =
0), and if the lens position is the closest side (end position flag = 1) in # 149, the lens must be moved to the closer side. In this case # 14
Proceed from 9 to # 152, and set the LL signal from the terminal (P32) to "Low".
Then, the direction indicator for instructing to move the lens to the closest side is turned on. Then leave the lens stopped,
Go to the next loop from # 40 and repeat focus detection. Then, if the position of the subject changes and the defocus direction is reversed, the process proceeds from # 147 to # 148 in the loop, goes to # 151, clears the end flag, and enters the lens drive loop from # 153. In this embodiment, the current direction flag is used for checking the defocus direction of # 147, but the previous direction flag may be used. In this case, the lens is moved from the state where the subject is closer to the closest end than The lens does not follow and remains stopped even if it enters the focusable area of. In the case of the one-shot AF mode, the latter method may be used, and in the case of the continuous AF mode, it can be said that it is inconvenient unless the former.
なお、この誤写の場合は、一旦ローコントラスト状態に
なれば第13図の#165の「LOWCON」フローの中で終端フ
ラグがクリアされるので、最近接端からぬけ出て、再び
レンズ駆動状態に入り、自動焦点調節が可能ということ
になる。次にレンズが終端にない場合や、終端にあるが
逆方向に動こうとしている場合には、第12図の#153か
らのレンズ駆動フローに入る。#153では焦点調節状態
表示用LEDをすべて消灯する。これはレンズの駆動中は
デフォーカス方向の表示をしないことを見本原則とする
ことによる。レンズが停止している状態で合焦時には中
央のLED(LEDM)を点灯して合焦表示をし、最近接端も
しくは無限遠端ではLED(LEDL)(LEDR)のいずれかを
点灯してデフォーカス方向を表示し、ローコントラスト
時には、LED(LEDL)(LEDR)の点滅表示をするのであ
る。#154でレンズ駆動パルスカウント値DRCNTをイベン
トカウンタEVTCNTと終端チェック用レジスタMECNTへセ
ットする。イベントカウンタEVTCNTにセットされた値DR
CNTは、割り込み端子(INT3)へエンコーダ(ENC)から
のパルスが入ってAFマイコン(MC1)に割り込みがかか
ると、この割り込みフロー(第16図のINT3S)の中で減
算される。カウント値DRCNTが“0"になった時点でレン
ズを停止させるとピントが合っているという仕組みであ
る。In the case of this erroneous image, once the low contrast state is reached, the end flag is cleared in the "LOWCON" flow of # 165 in Fig. 13, so it is possible to get out of the closest end and re-enter the lens drive state. Entering, it means that automatic focus adjustment is possible. Next, if the lens is not at the end or if it is at the end but is about to move in the opposite direction, the lens drive flow from # 153 in FIG. 12 is entered. In # 153, all focus adjustment status display LEDs are turned off. This is based on the principle that the defocus direction is not displayed while the lens is being driven. When the lens is stopped and the lens is in focus, the center LED (LEDM) is lit to show the focus, and either the LED (LEDL) (LEDR) is lit to display the defocus at the closest end or the infinity end. The focus direction is displayed, and the LED (LEDL) (LEDR) blinks when the contrast is low. In # 154, the lens drive pulse count value DRCNT is set in the event counter EVTCNT and the termination check register MECNT. Value DR set in event counter EVTCNT
When a pulse from the encoder (ENC) enters the interrupt terminal (INT3) and the AF microcomputer (MC1) is interrupted, CNT is subtracted in this interrupt flow (INT3S in Fig. 16). The mechanism is that if the lens is stopped when the count value DRCNT reaches “0”, the image is in focus.
#155ではレンズ駆動用モータ(MO1)に通電を開始し
て、レンズ駆動を始める。これは、前回方向フラグに従
って、レンズを動かす。すなわちこのフラグがこれまで
のレンズ駆動方向として残されるわけである。なぜな
ら、前回方向フラグは、レンズが停止している時には、
第11図の#124からのフローによって今回方向フラグと
同じ内容になっているからである。そして、前回方向フ
ラグが“0"であれば(後ピン)、端子(P01)からのMF
信号を“Low"して、第6表のようにレンズを繰り出し、
前回方向フラグが“1"であれば(前ピン)、端子(P0
0)からのMR信号を“Low"にしてレンズを繰り込み方向
へ動かす。#156では駆動中フラグをチェックしてこれ
までレンズを駆動中であったかどうかをチェックをし、
駆動中であれば(後に説明するが、ここで駆動中という
のは、ニアゾーン外での自動焦点調節中ということ)、
#40の[CDINT]へループし、次の焦点検出に入る。こ
れまでレンズ停止中であったなら、#155で駆動開始し
たのであるから#157で駆動中フラグをセットする。#1
58では補助光モードフラグをみて補助光AFモードかどう
かチェックし、補助光AFモードであれば第14図の#231
からの「L2SAVE」へ分岐する。補助光AFモードでなけれ
ば#159でニアゾーンフラグをみてレンズの駆動がニア
ゾーン内であるかどうかをチェックして、ニアゾーン内
であれば#160からの[WSTOP]へ進む。#160,#161で
は100ms間隔に終端チェックを繰り返しているだけで、
次の焦点検出ループへは戻らない。そして、レンズが合
焦位置で完全にストップするまで待ち、止まってから始
めて、合焦確認の焦点検出に入る。これは「WSTOP」ル
ーチンをまわっている間に第16図の#252の「INT3S」の
割り込みが入り、レンズをコントロールするわけであ
る。In # 155, the lens driving motor (MO1) is energized to start lens driving. This moves the lens according to the previous direction flag. That is, this flag remains as the lens driving direction so far. Because the previous direction flag, when the lens is stopped,
This is because the content from the current direction flag is the same as the flow from # 124 in FIG. If the previous direction flag is "0" (rear pin), the MF from the terminal (P01)
Set the signal to "Low" and extend the lens as shown in Table 6.
If the previous direction flag is "1" (front pin), the terminal (P0
Set the MR signal from 0) to "Low" and move the lens in the retraction direction. In # 156, check the driving flag to see if the lens has been driven so far.
If it is driving (I will explain later, driving here means automatic focusing outside the near zone),
Loop to # 40 [CDINT] and start the next focus detection. If the lens has been stopped so far, the driving is started in # 155, so the driving flag is set in # 157. # 1
In 58, check the fill light mode flag to see if it is fill light AF mode. If it is fill light AF mode, # 231 in Fig. 14
Branch to "L2 SAVE" from. If it is not the auxiliary light AF mode, check the near zone flag at # 159 to check whether the lens drive is in the near zone. If it is in the near zone, proceed to [WSTOP] from # 160. With # 160 and # 161, you just repeat the end check at 100 ms intervals,
It does not return to the next focus detection loop. Then, it waits until the lens completely stops at the in-focus position, waits for the lens to stop, and then starts focus detection for in-focus confirmation. This is to interrupt the "INT3S" interrupt of # 252 in Fig. 16 while rotating the "WSTOP" routine to control the lens.
このニアゾーン内でレンズを駆動させながら焦点検出を
しないのは、以下の理由による。まず、ニアゾーンでの
レンズ駆動は、一定速度ではなく、加速度を持ってい
る。すなわち、レンズ駆動開始時には正の加速度を持
ち、レンズ停止位置前では負の加速度を持つ。ハイスピ
ード駆動時からニアゾーン内に入って、ロースピードに
切り換わった時には、負の加速度をもつ。ここで、元
来、ニアゾーンカウント量NZCは、ハイスピードからモ
ータ(MO1)の通電を切ってレンズの移動が止まるまで
のカウント値を目安に決めたもので、モータ(MO1)が
定速で動くための領域ではない。ここで定速でないとい
うことはモータ駆動中にセンサの積分を行っても、積分
時間の中間の位置をもって被写体データを得た地点とし
て代表することができないということである。従って、
前述のような移動分の補正をしてもその補正は正確では
なく、レンズ駆動パルスの算出誤差を持つことになる。
そこで、レンズが一定速度で動いていない時はセンサの
積分をしないことが望ましい。そこで本実施例では、加
速時、減速時には焦点検出をしていないのである。The reason why focus detection is not performed while driving the lens in this near zone is as follows. First, the lens drive in the near zone has acceleration rather than constant speed. That is, the lens has a positive acceleration at the start of driving the lens and has a negative acceleration before the lens stop position. When entering the near zone from high speed driving and switching to low speed, it has negative acceleration. Here, originally, the near zone count amount NZC is determined based on the count value from high speed to when the motor (MO1) is de-energized and the movement of the lens stops. The motor (MO1) is constant speed. It is not an area for movement. Here, the fact that the speed is not constant means that even if the sensor is integrated while the motor is being driven, it cannot be represented as the point at which the subject data was obtained at the intermediate position of the integration time. Therefore,
Even if the correction for the movement amount as described above is made, the correction is not accurate and has a calculation error of the lens driving pulse.
Therefore, it is desirable not to integrate the sensor when the lens is not moving at a constant speed. Therefore, in this embodiment, focus detection is not performed during acceleration or deceleration.
次に#159でニアゾーン外にあると判断された時には#1
62へ分岐し、ここで100msの時間待ちをする。レンズ停
止状態から加速しているので、定速となるまで100ms時
間待ちをしているのである。そして#163で終端チェッ
クをする。終端チェックの周期については、短かすぎて
も長すぎてもよくない。レンズの動きに応じたエンコー
ダのパルスの間隔よりも短すぎると止まっていると判断
してしまうし、逆に長すぎるとモータ、ギヤ、クラッチ
等の駆動系の耐久性や、終端での反転駆動の応答性など
の問題があるので、数10msから200ms程度の間隔におさ
えている。次に#164では、1−cut shotフラグをみて
1−cut shotモードになっているかどうかをチェック
し、1−cut shotモードであれば、レンズを駆動させな
がらの焦点検出をしないというモードであるので#160
の「WSTOP」へ進んで、レンズが停止するのを待ち、止
まってから合焦確認のための焦点検出を行う。1−cut
shotモードでなければ、第9図の#39の「CDINTA」へル
ープしていく。以上が自動焦点調節のメインルーチンで
ある。Next, when # 159 is judged to be outside the near zone, # 1
It branches to 62 and waits for 100ms here. Since the lens is accelerating from the stopped state, it waits for 100 ms until the speed becomes constant. Then, the end check is performed at # 163. The end check cycle may be too short or too long. If it is shorter than the encoder pulse interval according to the movement of the lens, it will be judged that it has stopped, and if it is too long, the durability of the drive system such as the motor, gear, clutch, etc., and reversal drive at the end Since there are problems such as the responsiveness of, the interval is set to several tens to 200 ms. Next, in # 164, it is checked whether the 1-cut shot mode is set by looking at the 1-cut shot flag. In the 1-cut shot mode, focus detection is not performed while driving the lens. So # 160
Go to "W STOP" to wait for the lens to stop, and then stop and perform focus detection for confirming focus. 1-cut
If it is not shot mode, loop to # 39 "CDINTA" in FIG. The above is the main routine of automatic focus adjustment.
次に第13図からの分岐ルーチン、サブルーチンについて
の説明をする。まず、第13図の#165から始まる「LOWCO
N」フローは第11図のメインルーチンの#88から、焦点
検出演算の結果がローコントラストであった時に分岐し
てくるフローである。まず#165で終端チェックをし
て、#166でAFモードフラグをみてAFモードか否かのチ
ェックをする。AFモードでなければ#167へ進み前回ロ
ーコンフラグをセットし、#168でローコントラスト時
の表示として端子(P32)と(P30)のLL信号とLR信号を
同時に“Low"と“High"を繰り返してLED(LEDL)(LED
R)の点滅表示をする。そしてすぐ次の焦点検出ループ
していく。AFモードであれば#166から#169へ進み、駆
動中フラグをみてモータが駆動中かどうかをチェックす
る。駆動中であれば、ローコンスキャン中である場合
と、自動焦点調節中にローコントラストという結果にな
ってきた場合とがあるので、#170でスキャン中フラグ
をチェックしてこれを区別し、自動焦点調節中であれ
ば、前述したようにレンズを止めるまではローコントラ
ストの結果を無視るので、すぐ#40の「CDINT」へ進ん
で次の焦点検出に入る。ローコンスキャン中に#170へ
来たのであれば、#171でローコントラスト状態からぬ
け出て、自動焦点調節を始める時の繰り込み積分時の移
動分補正のために、演算終了時点でイベントカウンタ値
T3を、最大カウント値65,000にセットしておく。(詳細
は後述する)同様にモータ駆動用イベントカウント値EV
TCNT、終端検知用カウント値MECNTも最大カウント値65,
000にセットしておく。そして#40の「CDINT」へループ
する。Next, the branch routine and the subroutine from FIG. 13 will be described. First of all, "LOWCO
The “N” flow is a flow that branches from # 88 of the main routine of FIG. 11 when the result of the focus detection calculation is low contrast. First, in # 165, the terminal end is checked, and in # 166, the AF mode flag is checked to see whether or not the AF mode is set. If it is not in AF mode, proceed to # 167, set the low contrast flag last time, and repeat the low and high LL and LR signals of the terminals (P32) and (P30) at the same time as the low contrast display in # 168. LED (LEDL) (LED
R) blinks. Then, the next focus detection loop is started immediately. If it is the AF mode, the process proceeds from # 166 to # 169, and it is checked whether the motor is being driven by looking at the driving flag. If it is driving, there are cases where low contrast scanning is being performed and cases where low contrast has been obtained during automatic focus adjustment.Therefore, the # 170 scanning flag is checked to distinguish this, and automatic If the focus is being adjusted, the result of low contrast is ignored until the lens is stopped, as described above, so the process immediately advances to # 40 "CDINT" to start the next focus detection. If you come to # 170 during low contrast scan, exit from the low contrast state at # 171 and correct the moving amount during renormalization integration when starting auto focus adjustment.
Set T3 to the maximum count value of 65,000. (Details will be described later) Similarly, motor drive event count value EV
The maximum count value of TCNT and the end count detection MECNT is 65,
Set it to 000. And it loops to "CDINT" of # 40.
レンズ停止時に、ローコントラストになっている時に
は、#169から#172へ進む。そしてローコンスキャンの
禁止を示すスキャン禁止フラグがたっていれば#173へ
進む。なおスキャン禁止フラグがたつのは、ローコンス
キャンがすでに一度終わっているか、又はコントラスト
が出たことがあるかのいずれかである。If the contrast is low when the lens is stopped, proceed from # 169 to # 172. Then, if the scan prohibition flag indicating prohibition of the low contrast scan is set, the process proceeds to # 173. It should be noted that the fact that the scan prohibit flag is delayed means that either the low contrast scan has already been completed once or the contrast has been generated.
#173から#175と#181から#183については、いずれも
補助光AFモードに入るか否かの判断をしているステップ
である。この補助光AFモードに入る条件というのは、ま
ずAFモードであるということ、被写体がローコントラス
トであるということ、レンズが停止中ででありさらにロ
ーライトであるということ、第3図の補助光照明装置の
ついた電子閃光装置がカメラに取り付けられて、補助光
発光可能状態を示すAFFL信号が来ており、なおかつその
充電完了信号RDYが来ているということであり、これら
条件がそろって始めて補助光AFモードに入る。まず#17
3でローライトフラグ、#174で補助光OK信号AFFL、#17
5で充電完了信号RDYを見て、いずれも“1"で条件がそろ
えば#225からの「LLLED」へ飛んで補助光AFモードに入
る。この条件がそろっていなければ、#176でローライ
トフラグに基づいてローライト状態をチェックし、ロー
ライトなら#177でセンサの最大積分時間を200msと倍に
する。積分時間100msでAGCが8倍でローコントラスト、
ローライトという時なら一段分積分時間を増やせば、ロ
ーコントラストにならず、焦点検出可となる可能性があ
るためである。しかし、これも積分時間が長い時に、レ
ンズ駆動しながら焦点検出をすると誤差がでるという理
由により、最大積分時間を200msモードとするのは、レ
ンズ停止中と限っている。Steps # 173 to # 175 and # 181 to # 183 are steps in which it is determined whether or not the auxiliary light AF mode is entered. The conditions for entering this auxiliary light AF mode are that it is first in AF mode, that the subject has low contrast, that the lens is stopped and that it is low light, and that the auxiliary light shown in FIG. It means that the electronic flash device equipped with the lighting device is attached to the camera, the AFFL signal indicating that the auxiliary light can be emitted is coming, and the charging completion signal RDY is also coming. Enter auxiliary light AF mode. First # 17
3 for low light flag, # 174 for fill light OK signal AFFL, # 17
When you see the charge completion signal RDY at 5, if all the conditions are "1", jump to "LLLED" from # 225 and enter auxiliary light AF mode. If this condition is not met, the low light state is checked based on the low light flag in # 176, and if it is low light, the maximum integration time of the sensor is doubled to 200 ms in # 177. AGC is 8 times with integration time of 100ms, low contrast,
This is because, in the case of low light, if the integration time is increased by one step, the low contrast may not be achieved and focus detection may be possible. However, since the error occurs when the focus is detected while driving the lens when the integration time is long, the maximum integration time is set to 200 ms mode only when the lens is stopped.
#178で前回ローコンフラグをセットし、#179でローコ
ントラスト状態を示すLED(LEDL)(LEDR)の点滅表示
をし、#180でニアゾーンフラグ、繰り込み積分フラグ
(第5−1表の繰り込み積分F)、反転フラグ、終端フ
ラグ、終端2ndフラグをクリアして、#40の「CDINT」へ
ループしていく。In # 178, the previous low contrast flag was set, in # 179, the LED (LEDL) (LEDR) indicating the low contrast state was blinking, and in # 180, the near zone flag and renormalization integral flag (renormalization integral F in Table 5-1). ), Clear the inversion flag, end flag, and end 2nd flag, and loop to "CDINT" of # 40.
#172でローコンスキャン禁止状態でなければ、#181か
らの「SEARCH」へ分岐する。#181から#195までのフロ
ーは、ローコンスキャンを開始させるフローである。ま
ず、#181から#183は、#173から#175までのフローと
同様に補助光AFモードへ入る条件の判別をしている。そ
して条件がそろえば#183から#225の「LLLED」へ飛
び、補助光AFモードに入る。ローライトであるが補助光
照明装置がセットされていなくてAFFL信号が“1"になっ
ていなければ、#181から、#182、#184へと進み、こ
こですでにセンサの最大積分時間が200msモードになっ
ているかどうかのチェックをする。If the low contrast scan is not prohibited in # 172, the flow branches to "SEARCH" from # 181. The flow from # 181 to # 195 is a flow for starting the low contrast scan. First, in steps # 181 to # 183, the conditions for entering the auxiliary light AF mode are determined in the same manner as in the flow from # 173 to # 175. Then, if the conditions are met, it jumps from # 183 to #LLLED of # 225 and enters auxiliary light AF mode. If the AFFL signal is not "1" because it is a low light but the auxiliary light illuminator is not set, proceed from # 181 to # 182, # 184, where the maximum integration time of the sensor has already been reached. Check if it is in 200ms mode.
最大200msのモードになっていなのであれば、#230の
「LL200」へ飛び、200msモードフラグをセットして#39
の「CDINTA」へループしていく。#184で、すでに最大2
00msモードになっているにもかかわらず、ローコントラ
ストであるとか、#181でローコントラストであるがロ
ーライトでないという場合は、#185へ進み、200msモー
ドフラグをクリアする。If it is not in the maximum 200ms mode, jump to # 230's "LL200" and set the 200ms mode flag to # 39.
Loop to "CDINTA". # 184 already up to 2
If it is low contrast even if it is in the 00ms mode, or if it is low contrast in # 181 but not low light, proceed to # 185 and clear the 200ms mode flag.
これは、ローコンスキャン中に、積分時間が長いと、前
述にもあったように被写体の動が流れて、ローコントラ
ストにないやすいということや、たとえコントラストが
あっても、積分時間と焦点検出演算時間の最大値の時間
だと、レンズを止めて、改めて焦点検出した時すでに合
焦範囲を超えて行きすぎてしまっているという駆動比の
大きいレンズもありうるので、こういったことを防ぐた
めに、200msモードフラグをクリアして、最大積分時間
が100msのモードにしている。This is because if the integration time is long during low contrast scanning, the movement of the subject flows as described above, and it is easy to not have low contrast, and even if there is contrast, integration time and focus detection If the maximum calculation time is reached, it is possible to have a lens with a large drive ratio, in which the lens has stopped, and when the focus is detected again, it has already gone too far beyond the in-focus range. For this purpose, the 200ms mode flag is cleared and the maximum integration time is set to 100ms.
次に、#186から#190にかけてのフローでは、ローコン
スキャンをする時のレンズのスキャン開始方法を決めて
いる。被写体が明るい時には、ローコンスキャンは、焦
点検出演算で求まっている方向からスキャンを始める。
ローコントラストと判断されてデフォーカス量が求まら
なくても、デフォーカス方向なら求まっているという場
合があるため、演算結果の方向に従ってスキャンするの
である。このローコンスキャン中にデフォーカス量が求
まる領域にくれば、前述してきた通り自動焦点調節動作
に入る。ローコンスキャンではレンズが一方の終端にあ
たれば反転駆動させ、逆側の終端にあたればスキャンは
終わる。被写体が暗いか明るいかは、#186で積分時間
が50msを越えるか否かを示す1−cut shotフラグを用い
てチェックしている。これはAGCデータを用いてもよ
く、2倍以上を暗いとしても、4、8倍以上を暗いとし
てもよい。一方、暗い時には、#187に進み、ローコン
スキャンを繰り出し方向から始める。こうすれば、ロー
コンスキャン終了時の最終停止位置は無限遠端でレンズ
を繰り込んだ状態で終わる。これはレンズにキャップを
した時には、繰り込み状態で終わることになり、レンズ
がコンパクトにってカメラケースへの収納に便利にな
る。Next, in the flow from # 186 to # 190, the method of starting the scan of the lens at the time of low contrast scan is determined. When the subject is bright, the low contrast scan starts scanning from the direction determined by the focus detection calculation.
Even if it is determined that the contrast is low and the defocus amount is not obtained, it may be obtained in the defocus direction, so scanning is performed according to the direction of the calculation result. If the area where the defocus amount is obtained during the low contrast scan comes, the automatic focus adjustment operation starts as described above. In the low contrast scan, if the lens is at one end, it is driven in reverse, and if it is at the opposite end, the scan ends. Whether the object is dark or bright is checked using the 1-cut shot flag which indicates whether or not the integration time exceeds 50 ms in # 186. For this, AGC data may be used, and the darkness may be 2 times or more, or 4 or 8 times or more. On the other hand, when it is dark, the process proceeds to # 187 to start the low contrast scan from the feeding direction. In this way, the final stop position at the end of the low-con scan ends with the lens retracted at the infinity end. This means that when the lens is capped, it will end in the retracted state, and the lens will be compact and convenient for storage in the camera case.
この時コントラストを捜す目的でなくて、レンズを繰り
込んで終わるという機能を重視すれば、#187へ進まず
に#189の「LLIGHT2」へ進むようにしてもよい。すなわ
ち、#189でローコンスキャンで一回終端に当たったと
いうスキャン当りフラグ(スキャン当りF)をたて、#
190でMR信号を“Low"にして繰り込み方向にローコンス
キャンを始める。レンズが無限遠端に当たると、#189
でたてたスキャン当りフラグによって第14図の#199か
らの「ROTEM」の中で、これでスキャンが終了したと判
断され、レンズが停止する。なお、この「LLIGHT2」は
補助光AFモードのフローの中から飛んでくる所である。At this time, if the function of ending the lens by retracting the lens is emphasized instead of the purpose of searching for the contrast, the process may proceed to “LLIGHT2” of # 189 without proceeding to # 187. That is, in # 189, a per-scan flag (F per scan) indicating that the low-conscan has hit the end once is set.
At 190, set MR signal to "Low" and start low contrast scan in the renormalization direction. When the lens hits the infinity end, # 189
In the "ROTEM" from # 199 in FIG. 14 determined by the per-scan flag, it is determined that the scan is completed, and the lens is stopped. In addition, this "LLIGHT2" is where you fly from within the auxiliary light AF mode flow.
#191では前回ローコンフラグに“1"をたて、#192でス
キャン中フラグをたてていく。#193ではレンズ停止時
のデフォーカス量FERMを最大値65,000にセットしてお
く。#194では#171と同じくT3,EVTCNT,MECNTに最大値6
5,000をセットする。#195でレンズ駆動にあたって表示
を消しておく。そして、スキャンしながら次の焦点検出
ループ#40へもどる。In # 191, the low control flag is set to "1" last time, and in # 192, the scanning flag is set. In # 193, the maximum defocus amount FERM when the lens is stopped is set to 65,000. Similar to # 171 in # 194, maximum value of 6 for T3, EVTCNT, MECNT
Set 5,000. When driving the lens in # 195, the display is turned off. Then, while scanning, the process returns to the next focus detection loop # 40.
次は、第14図の終端チェックサブルーチン「CKLOCK」の
説明に移る。#196では駆動中フラグをみてレンズが駆
動中かどうかをチェックし、駆動中でなければ終端のチ
ェックをしないで、リターンしていく。レンズ駆動中は
#197へ進み、終端のチェックをする。駆動時にレンズ
駆動パルスカウント値DRCNTと同じ値をセットしたおい
た終端チェック用レジスタMECNTと、レンズ駆動用カウ
ント値DRCNTとしてセットしたイベントカウンタのカウ
ント値EVTCNTと比較する。レンズが動いていれば、EVTC
NTの値はエンコーダ(ENC)からのパルスが入ってくる
たびに1ずつ減算されており、MECNTと異なった値にな
っている。レンズが終端に当たって動いていなければ、
エンコーダ(ENC)からパルスは入ってこないので、EVT
CNTの値は変化せずMECNTと同じ値のままである。ゆえに
#197でMECNT=EVTCNTであればレンズが止まっていると
いう判断をして、終端処理フロー「ROTEM」の#199へ分
岐する。MECNT≠EVTCNTであればレンズが動いていると
判断をして#198へ進む。#198ではMECNTに改たにEVTCN
Tの値をセットしなおして、次の終端チェックに備え
る。そしてリターンしていく。Next, the explanation will be given on the termination check subroutine "CKLOCK" in FIG. In # 196, it is checked whether the lens is being driven by looking at the driving flag, and if it is not driving, the end is not checked and the process returns. While driving the lens, proceed to # 197 to check the end. The end check register MECNT set with the same value as the lens drive pulse count value DRCNT during driving is compared with the count value EVTCNT of the event counter set as the lens drive count value DRCNT. If the lens is moving, EVTC
The NT value is decremented by 1 each time a pulse from the encoder (ENC) comes in, and is a different value from MECNT. If the lens does not move at the end,
No pulses come from the encoder (ENC), so EVT
The value of CNT does not change and remains the same value as MECNT. Therefore, if MECNT = EVTCNT in # 197, it is determined that the lens is stopped, and the process branches to # 199 in the termination processing flow “ROTEM”. If MECNT ≠ EVTCNT, it is determined that the lens is moving, and the process proceeds to # 198. In # 198, EVTCN changed to MECNT
Reset the value of T to prepare for the next termination check. Then return.
#199からの終端処理フロー「ROTEM」では、まず最初サ
ブルーチンから分岐してきているので、マイコのスタッ
クポインタをリセットしておく。#200でINT1,INT2以外
の割り込みを禁止する。終端にぶつかっているというこ
とで#201、#202でモータ(MO1)への通電を切って、
ブレーキをかける。#203ではモータ(MO1)を止めたの
で駆動中フラグをクリアする。#204で前回方向フラグ
をチェックして、前回方向フラグが“0"であれば(後ピ
ンでありレンズを繰り出していた)、#205で最近接端
位置で止まっているという意味で、終端位置フラグに
“1"をたてておく。前回方向フラグが“1"であれば(前
ピンであり、レンズを繰り込でいた)、#206で無限遠
端位置で止まっているという意味で、終端位置フラグを
クリアしておく。#207ではローコンスキャン中に終端
に当たったかどうかをチェックして、スキャン中であっ
たならば#208へ進み、終端でレンズが止まっていると
いう終端フラグをセットしておく。#209では、さらに
補助光モードフラグに基づいて補助光AFモード中であっ
たかどうかをチェックして補助光AFモード中であったな
らば、終端に当たればたとえ一度目の発光による焦点検
出であろうとも、次の焦点検出にループしないでLEDの
点滅表示をして、焦点検出をあきらめる。補助光AFモー
ドについては、#225からの「LLLED」フローの中で詳し
く述べる。#209で補助光AFモードでなければレンズを
終端位置に止めたまま次の焦点検出ループ「CDINTA」へ
行く。In the termination processing flow "ROTEM" from # 199, the subroutine first branches off, so the stack pointer of Myco is reset. Disable interrupts other than INT1 and INT2 with # 200. By hitting the end, turn off the power to the motor (MO1) at # 201 and # 202,
Apply the brakes. In # 203, the motor (MO1) is stopped, so the driving flag is cleared. Check the previous direction flag in # 204. If the previous direction flag is "0" (it was a rear pin and the lens was extended), it means that it stopped at the closest end position in # 205. Set "1" in the flag. If the direction flag was "1" the last time (it was the front pin and the lens was retracted), the end position flag is cleared in the meaning of stopping at the infinite end position at # 206. In # 207, it is checked whether or not the end is hit during the low contrast scan, and if it is in scanning, the process proceeds to # 208, and the end flag that the lens is stopped at the end is set. In # 209, it is further checked based on the fill-light mode flag whether or not it is in fill-light AF mode. If it is in fill-light AF mode, if it hits the end, even if it is focus detection by the first light emission. Also, instead of looping to the next focus detection, the LED blinks and the focus detection is abandoned. The auxiliary light AF mode will be described in detail in the "LLLED" flow from # 225. If it is not auxiliary light AF mode in # 209, go to the next focus detection loop "CDINTA" while keeping the lens at the end position.
#207で、ローコンスキャン中にレンズが終端に来てい
る場合には#210へ進み、これまでスキャン中に終端に
当たったことがあるかどうか、すなわち行きか帰りかを
チェックし、行きであれば、スキャン方向を反転させて
動かす必要があるため#217へ進む。#217では、今回、
終端に来たのであるから、スキャン当りフラグをセット
する。次に、#218で前回方向フラグ(レンズ駆動方向
を示す)をチェックし、#219、#221でそれぞれこれま
でと逆の方向にセットしなおす。そして#220、#222で
それぞれ次に動かす方向に従って、レンズ駆動信号MR又
はMFを“Low"にする。この時もちろんブレーキ信号MBは
“High"にしておく。これで反転駆動が開始される。#2
23ではローコンスキャン開始時と同様に、FERM,T3,EVTC
NT,MECNTをそれぞれ最大値65,000にセットしなおしてお
く。#224では駆動中フラグに“1"をセットして、次の
焦点検出ループ「CDINTA」へ行く。In # 207, if the lens is at the end during the low contrast scan, proceed to # 210 to check if it has hit the end during scanning, that is, whether it is going or returning, If there is, it is necessary to reverse the scanning direction and move it, so proceed to # 217. # 217, this time
Since it has reached the end, the per-scan flag is set. Next, in # 218, the previous direction flag (indicating the lens driving direction) is checked, and in # 219 and # 221, the directions are reset in the opposite directions. Then, in # 220 and # 222, the lens drive signal MR or MF is set to "Low" according to the next moving direction. At this time, of course, the brake signal MB is set to "High". With this, the inversion drive is started. # 2
23, FERM, T3, EVTC
Reset NT and MECNT to the maximum value of 65,000 respectively. In step # 224, the driving flag is set to "1" and the process goes to the next focus detection loop "CDINTA".
一方、すでに一度終端に当たっていて、二度目の終端だ
った場合は、#210から#211へ進む。今度は、ローコン
スキャン終了であるからレンズは動かさない。#211で
スキャンで終端に当たったというスキャン当りフラグを
クリアし、#212ではスキャン中フラグをクリアし、#2
13では一度スキャンすれば後はもうしないために、スキ
ャン禁止フラグをセットしていく。#214ではローコン
スキャンをしたけれども、コントラストが見つからず、
焦点検出不能だったということで、LEDの点滅表示をす
る。#215では補助光AFモード中かどうかをチェック
し、補助光AFモード中であれば、#216へ行って、次の
焦点検出に行かずに割り込み待ちとして、このまま終わ
ってしまう。補助光AFモードでなければスキャン終了
後、終端位置で焦点検出を繰り返すため、#39の「CDIN
TA」へ戻る。以上が終端検知ルーチンである。On the other hand, if it has already hit the end and it was the second end, proceed from # 210 to # 211. This time, the lens does not move because the low contrast scan is completed. # 211 clears the per-scan flag that hits the end of the scan, # 212 clears the in-scanning flag, # 2
In the case of 13, the scan prohibit flag is set because once scanning is done, the rest is not done. In # 214, I did a low contrast scan, but I could not find the contrast,
Since the focus could not be detected, the LED blinks. In # 215, it is checked whether or not the auxiliary light AF mode is in effect. If it is in the auxiliary light AF mode, go to # 216 and wait for an interrupt without going to the next focus detection and end as it is. If it is not the fill light AF mode, focus detection is repeated at the end position after scanning is completed.
Return to TA. The above is the end detection routine.
次に補助光AFモードのルーチンの説明をする。補助光AF
モードへは第13図の「LOWCON」ルーチンから入ってく
る。前述のごとき条件がそろえば#175、又は#183から
#225の「LLLED」へすすみ、補助光AFモードのフローに
なる。第14図の#225ではまず補助光AFモードを示す補
助光AFモードフラグをたてる。#226で端子(P13)から
の端子(ST4)の信号を“High"にする。フラッシュ回路
(FLS)は、この信号によって補助光用LED(48)の発光
を開始させる。#227では補助光AFモードへ入ったとい
うことを外部に知らせるために、LL信号とLR信号を“Lo
w"にし、両側のLED(LEDL)(LEDR)を点灯させる。点
灯時間は、次の焦点検出演算が終わるまであり、最大45
0ms点灯するのが標準となる。これは、#229の200msの
時間待ちと、焦点検出のための演算時間と、最大積分時
間が200msの場合の合計時間であるが、被写体がかなり
近くて明るいと、450ms以下で焦点検出が完了する。す
なわちこれもレンズ駆動中は表示を消すというためであ
る。この表示は補助光AFモードへ入った時の1回だけで
ある。一方、補助光用LED(48)は2回発光している。
補助光AFモードのシーケンスは、まず補助光用LED(4
8)を1回発光させて、200msの間CCDイメージセンサ(F
LM)に対して予備照明をしておく。これはCCDイメージ
センサ(FLM)の応答性を上げるためである。そして、
最大積分時間が200msのモードで、補助光照明のもとでC
CDの積分をする。そして、このデータにより焦点検出演
算をし、レンズを駆動させる。この間、焦点検出はしな
い。そしてレンズ停止後、2回目に補助光用LED(48)
を発光させ、1回目と同様に最大450msの後、焦点検出
結果が合焦ゾーン内に入っていなければ、再度レンズを
駆動させて焦点調節を行う。これが基本的な動きであ
る。Next, the auxiliary light AF mode routine will be described. Auxiliary light AF
The mode is entered from the "LOWCON" routine in Figure 13. If the above conditions are met, the process proceeds from # 175 or # 183 to "LLLED" in # 225, and the auxiliary light AF mode flow is entered. In # 225 of FIG. 14, first, an auxiliary light AF mode flag indicating the auxiliary light AF mode is set. In # 226, set the signal from the terminal (P13) to the terminal (ST4) to "High". The flash circuit (FLS) causes the auxiliary light LED (48) to start emitting light in response to this signal. In # 227, the LL and LR signals are set to “Lo” to notify the outside that the auxiliary light AF mode has been entered.
w "and turn on the LEDs (LEDL) (LEDR) on both sides. The lighting time is up to 45 until the next focus detection calculation ends.
It is standard to turn on for 0 ms. This is the total time when the # 229 waits for 200ms, the calculation time for focus detection, and the maximum integration time is 200ms. To do. That is, this is also because the display is turned off while the lens is being driven. This display is only once when the auxiliary light AF mode is entered. On the other hand, the auxiliary light LED (48) emits light twice.
The auxiliary light AF mode sequence starts with the auxiliary light LED (4
8) emits light once and the CCD image sensor (F
Preliminary lighting for LM). This is to improve the responsiveness of the CCD image sensor (FLM). And
Mode with maximum integration time of 200 ms, C under fill illumination
Integrate CD. Then, the focus detection calculation is performed based on this data, and the lens is driven. During this time, focus detection is not performed. And after stopping the lens, the second LED for auxiliary light (48)
After a maximum of 450 ms as in the first time, if the focus detection result is not within the focus zone, the lens is driven again to perform focus adjustment. This is the basic movement.
ここで、補助光用LED(48)の発光が1回目か2回目か
の区別が必要となってくる。これを区別する為に、補助
光1stフラグ(第5−2表の補助光1stF)が設けられて
いる。このフラグは“0"が入っていれば1回目の発光で
あることを示し、“1"で2回目の発光を示している。#
228ではこのフラグに“0"を入れておく。#229ではセン
サの予備照明時間として200ms待ち、#230でセンサの最
大積分時間が200msのモードにセットしておく。補助光A
Fモードの場合、たいていが200ms積分時間となる。そし
て、通常AFモードの時と同様の「CDINTA」へループす
る。Here, it is necessary to distinguish whether the LED (48) for auxiliary light emits light for the first time or the second time. In order to distinguish this, an auxiliary light 1st flag (auxiliary light 1stF in Table 5-2) is provided. If "0" is entered in this flag, it indicates that the first light emission has occurred, and if "1" indicates that the second light emission has occurred. #
In 228, "0" is put in this flag. In # 229, wait 200 ms as the preliminary illumination time of the sensor, and set in 230 the mode in which the maximum integration time of the sensor is 200 ms. Auxiliary light A
In F mode, the integration time is usually 200ms. Then, it loops to "CDINTA" as in normal AF mode.
第9図の#39から補助光発光状態でフローが進み、第10
図の#69で補助光を消す。以下同様に焦点検出し、第13
図の#87に来て、第14図#238の補助光AFモード用フロ
ー「LSAVE」へ分岐する。これが#238から始まるフロー
である。The flow proceeds from # 39 in FIG.
Turn off the auxiliary light at # 69 in the figure. The focus is detected in the same way, and the 13th
At # 87 in the figure, the flow branches to the auxiliary light AF mode flow “LSAVE” in # 238 in FIG. This is the flow starting from # 238.
まず、補助光AFモードでの焦点検出が1回目かどうかを
判別して、1回目であれば#239へ進む。ここで、焦点
検出演算結果が、ローコントラストであったかどうかを
チェックし、ローコントラストであれば、#189の「LLI
GHT2」へ行き、2回目の焦点検出をあきらめる。このあ
と、第13図の#189,#190から第9図の#40へループし
ていき、レンズを繰り込んで終わる。これはあきらめて
繰り込んでいるのであるから、補助光も発光させないの
で、焦点検出ループを回る必要はないが、こうしておけ
ば繰り込み中、急に明るくなってコントラストが出れ
ば、補助光なしに焦点検出することが可能であるからで
ある。#239でローコントラストでなければ、第11図の
#91の[NLOC1]へ行き焦点調節駆動のフローへ入って
行く。この場合には、第11図の#91から#102を通り、
更に、第12図の#141を通って#155で駆動を始め、#15
8から補助光AFモード時のフロー「L2SAVE」(第14図の
#231)へ分岐してくる。First, it is determined whether or not the focus detection in the auxiliary light AF mode is the first time, and if it is the first time, the process proceeds to # 239. Here, it is checked whether or not the focus detection calculation result has a low contrast, and if the result is low contrast, “LLI
GHT2 ”and give up the second focus detection. After this, the process loops from # 189 and # 190 in FIG. 13 to # 40 in FIG. Since this is giving up and refilling, the auxiliary light is not emitted, so there is no need to go through the focus detection loop. This is because it can be detected. If the contrast is not low in # 239, go to [NLOC1] in # 91 in FIG. 11 and enter the flow for focus adjustment drive. In this case, go through # 91 to # 102 in FIG.
Further, the drive starts at # 155 through # 141 in FIG.
It branches from 8 to the flow "L2SAVE"(# 231 in Fig. 14) in auxiliary light AF mode.
第14図の#231では補助光1stフラグに基づいて補助光の
発光が1回目かどうかのチェックをし、1回目であれば
#232へ進む。ここでレンズを焦点検出演算結果のカウ
ント量だけ駆動させ終わるまで待ち、レンズの移動停止
後、2回目の補助光発光のフロー#233へ進む。#233で
は、補助光OK信号AFFLを見て、“1"(OK)であれば、#
234で2回目の補助光発光信号を出力する(すなわち端
子(ST4)の信号を“High"にする)。AFFL信号が“0"で
あれば補助光照明装置が切られたのであるから、2回目
の発光はしないでおく。なお、この実施例では、この場
合に補助光AFモードから解除していないが、解除しても
よい。In # 231 of FIG. 14, it is checked whether or not the emission of the auxiliary light is the first time based on the auxiliary light 1st flag, and if it is the first time, the process proceeds to # 232. Here, the lens is driven by the count amount of the focus detection calculation result, and after the movement of the lens is stopped, the process proceeds to the second auxiliary light emission flow # 233. In # 233, see the fill light OK signal AFFL, and if it is “1” (OK), #
At 234, the second auxiliary light emission signal is output (that is, the signal at the terminal (ST4) is set to "High"). If the AFFL signal is "0", the auxiliary light illuminator has been turned off, so the second light emission is not performed. In this embodiment, the auxiliary light AF mode is not released in this case, but it may be released.
#235で補助光1stフラグをセットして、2回目の補助光
AFモードであることを示しておく。そして1回目の時と
同様に、#229で200ms待って#230を通って、#39の「C
DINTA」へ行く。2回目の補助光AFモードの時も同様の
フローを通り、第9図の#39から第10図の#44、#68を
通って、第11図の#87で補助光AFモードである場合に
は、第14図の#238の「LSAVE」へ分岐する。今度は2回
目の補助光AFモードであるので、#240へ進む。#240で
ローコントラストであったかどうかをチェックして、ロ
ーコントラストであれば#211へ進み、今度は1度目の
場合と違ってレンズを繰り込まずに停止させたままで、
両側のLED(LEDL)(LEDR)の点滅表示をして割り込み
待ちとなる。# 235 sets the auxiliary light 1st flag, and the second auxiliary light
Show that it is in AF mode. And like the first time, wait 200ms at # 229, go through # 230, and go to # 39 “C
Go to "Dinta". In the case of the auxiliary light AF mode in the second auxiliary light AF mode, the same flow is followed, through # 39 in FIG. 9 to # 44 and # 68 in FIG. 10, and in # 87 in FIG. To branch to “LSAVE” in # 238 of FIG. This time is the second auxiliary light AF mode, so proceed to # 240. Check whether it was low contrast at # 240, if it is low contrast, proceed to # 211, this time unlike the case of the first time, without stopping the lens, keep it stopped,
The LEDs (LEDL) (LEDR) on both sides are displayed blinking, and the system waits for an interrupt.
ローコントラストでなければ、#240から第11図の#91
へ進み、レンズ駆動のフローへ入る。そして第12図の#
158まで補助光AFモード用フローの「L2SAVE」へ分岐す
る。#231では2度目の補助光AFモードであるので、#2
36へ進み、1度目と同様レンズが停止するのを待つ。補
助光AFモードでなければ、このあと合焦確認の焦点検出
へ入るが、補助光発光は2回までと制限したので、確認
の焦点検出へは行かない。(本実施例では発光を2回ま
でとしているために、確認をせず次のような処理をして
いるが、発光回数の制限をせず、合焦が確認されるまで
発光させてもよい。)この処理とは、レンズ停止時の焦
点検出演算値FERMをチェックする。すなわち、2回目の
レンズ駆動開始時のデフォーカス量が1mm未満であれ
ば、焦点検出性能を考えて、充分合焦確認なしに合焦ゾ
ーン内までレンズをもっていくことができると判断し
て、第11図の#117の合焦時のフロー「INFZ」へ進ん
で、合焦表示をする。FERMが1mm以上であれば、1度目
と2度目と焦点検出結果が大きく異なっていたというこ
とで、確かな焦点検出ができなかったとして、#211へ
進み、レンズを今の第1図に置いたまま両側のLED(LED
L)(LEDR)を点滅させる。以上が補助光AFモードのル
ーチンである。補助光LED(48)の発光を2回に制限し
ているのは、発光回数が多いと電源消費や使いがっての
問題があり、1回だと焦点検出誤差やバックラッシュ誤
差の問題があるので、2回を妥当としているのである。
又、2回目の焦点け出が不能であった場合、レンズを繰
り込んでいないのは、スイッチ(S1)を一旦開いてから
回度閉成して補助光AFモードを再トライしてみると、今
度は被写体の合焦近傍からスタートする可能性が多く、
合焦ゾーン内にレンズを持っていく可能性も高まるので
あろうと判断しているためである。If not low contrast, # 240 to # 91 in Fig. 11
Proceed to and enter the lens drive flow. And in Figure 12 #
Branch to "L2SAVE" in the auxiliary light AF mode flow until 158. In # 231, it is the second auxiliary light AF mode, so # 2
Proceed to 36 and wait for the lens to stop like the first time. If it is not in the auxiliary light AF mode, focus detection for focus confirmation is then performed, but since the emission of auxiliary light is limited to two times, focus detection for confirmation is not performed. (In this embodiment, since the light is emitted up to twice, the following processing is performed without confirmation. However, the number of times of light emission is not limited, and light may be emitted until the focus is confirmed. This process checks the focus detection calculation value FERM when the lens is stopped. That is, if the defocus amount at the start of the second lens drive is less than 1 mm, it is determined that the lens can be brought into the focus zone without sufficiently confirming the focus, considering the focus detection performance. In Step # 117 of Fig. 11, the flow for focusing is proceeded to "INFZ" to display the focus. If the FERM is 1 mm or more, it means that the focus detection results are greatly different between the first time and the second time. Therefore, assuming that reliable focus detection could not be performed, proceed to # 211 and place the lens on the present Fig. 1. LED on both sides (LED
L) (LEDR) blinks. The above is the auxiliary light AF mode routine. Limiting the light emission of the fill light LED (48) to two times is a problem of power consumption and usage when the number of times of light emission is large, and a problem of focus detection error and backlash error when it is once. There are two, so it is appropriate.
Also, if the second focus is not possible, the lens is not retracted. If you open the switch (S1) once and then close it again, try the auxiliary light AF mode again. , There is a lot of possibility to start near the focus of the subject,
This is because it is judged that the possibility of bringing the lens inside the focusing zone will increase.
次に、第16図のイベントカウンタ割り込みフロー「INT3
S」についての説明に入る。これは割り込み端子(INT
3)に入ってくるレンズ駆動用モータ(MO1)のエンコー
ダ(ENC)からのパルス信号PSを使って、レンズ駆動の
コントロールを行なうものである。合焦位置までのレン
ズの駆動カウント値EVTCNTを焦点検出演算によって求め
たが、このINT3への割り込み信号によってレンズの駆動
量を常にモニターし、レンズの移動スピードや停止位置
をコントロールする。まずレンズ駆動時の駆動カウント
値EVTCNTがイベントカウンタにセットされる。そしてレ
ンズ駆動用モータ(MO1)に通電が開始される。すると
レンズが動き出し、エンコーダ(ENC)からパルスが出
てINT3に割り込みがかかる。そして#252の「INT3S」の
フローが始まる。Next, the event counter interrupt flow "INT3
Let's start the explanation about "S". This is an interrupt pin (INT
3) The lens drive control is performed using the pulse signal PS from the encoder (ENC) of the lens drive motor (MO1) that enters. The drive count value EVTCNT of the lens up to the in-focus position was obtained by focus detection calculation. The interrupt signal to INT3 constantly monitors the lens drive amount, and controls the lens moving speed and stop position. First, the drive count value EVTCNT when the lens is driven is set in the event counter. Then, the energization of the lens driving motor (MO1) is started. Then, the lens starts to move, a pulse is output from the encoder (ENC) and INT3 is interrupted. And the flow of "INT3S" of # 252 starts.
まず、#252で“1"パルス信号が来たということで、イ
ベントカウンタのカウント値EVTCNTを“1"減ずる。そし
て#253でこのカウント値EVTCNTが指定量(すなわち
“0")をカウントしたかどうかチェックして、EVTCNTが
“0"になれば、合焦位置までレンズが来たということで
#259へ進み、モータ(MO1)の駆動をストップさせる。First, the count value EVTCNT of the event counter is decremented by "1" because the "1" pulse signal comes at # 252. Then, in # 253, it is checked whether or not this count value EVTCNT has counted the specified amount (that is, "0"). If EVTCNT becomes "0", it means that the lens has come to the in-focus position and the process proceeds to # 259. , Stop the drive of the motor (MO1).
イベントカウンタのカウント値EVTCNTが“0"になってい
なければ#254へ進み、ニアゾーンフラグに基づいてレ
ンズがニアゾーン内に入っているかどうかをチェックす
る。ニアゾーンフラグが“1"でなければ#255へ進み、
今回のパルスによってニアゾーンに入ったかどうかをチ
ェックにしいく。#255でイベントカウンタのカウント
値EVTCNTがニアゾーンカウンタのカウント値NZCより小
さくなっていれば、今回ニアゾーン内に入ったというこ
とで#256へ進む。ニアゾーン外であれば「INT3S」の割
り込みフローからメインフローへリターンしていく。一
方、#256では今回始めてニアゾーン内に入ったという
ことでニアゾーンフラグをたて、#257で端子(P03)か
らのMC信号を“Low"にし、モータ(MO1)の駆動をロー
スピードに切り換える。そして#258で、割り込みフロ
ーのスタックポインタをリセットして第12図の#160の
「WSTOP]へ進み、終端チェックをしながらレンズが停
止するのを待つ。If the count value EVTCNT of the event counter is not "0", proceed to # 254 to check whether the lens is in the near zone based on the near zone flag. If the near zone flag is not "1", proceed to # 255,
We will check to see if we have entered the near zone with this pulse. If the count value EVTCNT of the event counter is smaller than the count value NZC of the near zone counter at # 255, it means that the player has entered the near zone this time, and the process proceeds to # 256. If it is outside the near zone, it returns from the interrupt flow of "INT3S" to the main flow. On the other hand, in # 256, the near zone flag is set for the first time this time, so the near zone flag is set, and in # 257, the MC signal from the terminal (P03) is set to “Low”, and the drive of the motor (MO1) is switched to low speed. . Then, in # 258, the stack pointer of the interrupt flow is reset and the process proceeds to “WSTOP” in # 160 of FIG. 12 to wait for the lens to stop while checking the end.
すなわち「WSTOP]のフローをループしながら「INT3S」
の割り込みが入り、#252から#254,#258のフローを繰
り返し、カウント値EVTCNTが“0"になった時点で、この
ループを抜け出て、#259へ進む。ここでニアゾーン内
にあれば#160の「WSTOP]へ進み、メインフローへリタ
ーンしないのは、前述したようにレンズが定速で動いて
いない時には焦点検出しないとしているためで、ニアゾ
ーン領域に入ればレンズは減速していくので定速でない
ためこの領域に入ればレンズを動かしながら焦点検出は
しない。That is, "INT3S" while looping the flow of "WSTOP"
Interrupt is entered, the flow from # 252 to # 254, # 258 is repeated, and when the count value EVTCNT becomes "0", the process exits this loop and proceeds to # 259. If it is in the near zone, the process goes to # 160 “WSTOP” and does not return to the main flow, because the focus is not detected when the lens is not moving at a constant speed as described above. Since the lens decelerates, it is not a constant speed, so if it enters this area, focus detection is not performed while moving the lens.
次にレンズがその駆動パルスカウント値EVTCNT分だけ動
ききった時点では、#253でのチェックでカウント値EVT
CNTが“0"になるので#259へ進む。ここで、レンズ駆動
用モータ(MO1)への通電を切り、#260でブレーキをか
けて、#261で駆動中フラグをクリアして、#262でイベ
ントカウンタの割り込みを禁止して、#263へ進む。こ
こで、補助光AFモード中であるかどうかをチェックし
て、補助光AFモード中であれば、このイベントカウンタ
割り込みからリターンしていく。このリターン先は補助
光AFモードのフローで説明したように、第14図の#232
か#236である。#263で補助光AFモードでない場合に
は、#264でスタックポインタをリセットして#265へ移
る。Next, when the lens has moved by the drive pulse count value EVTCNT, the count value EVT is checked by checking in # 253.
Since CNT becomes “0”, proceed to # 259. Here, the lens drive motor (MO1) is de-energized, the brake is applied at # 260, the driving flag is cleared at # 261, the event counter interrupt is disabled at # 262, and the process goes to # 263. move on. Here, it is checked whether or not the auxiliary light AF mode is in progress, and if it is in the auxiliary light AF mode, the process returns from this event counter interrupt. This return destination is # 232 in FIG. 14 as described in the flow of auxiliary light AF mode.
Or # 236. If it is not in the fill light AF mode in # 263, the stack pointer is reset in # 264 and the process proceeds to # 265.
ここからのフローは焦点調節駆動後、そのレンズの停止
位置が合焦ゾーン内に入っているかどうかの確認の焦点
検出に行くかどうかを判定しているものである。まず、
制御マイコン(MC2)から送られて来ているDR信号を見
て、単写モードか、連写モードかをチェックする。DR信
号が“0"すなわち単写モードであるならば、#267で10m
s待ち、レンズがロースピードから完全に停止してか
ら、次の焦点検出ループに入る。そして、次の焦点検出
で合焦ゾーン内に入っていることが確認されれば、すな
わち第11図のメインフローの#116でチェックされ合焦
であれば、始めて#117へ進み、合焦表示をする。レン
ズが停止した位置が合焦ゾーン内に入っていなければ、
再び、第11図の#120からレンズ駆動のルーチンに入
り、同じことが繰り返される。これが合焦確認時のフロ
ーである。次に連写モードの場合、DR信号は“1"である
ので、第16図の#265から#266へ進む。ここでレンズ停
止時(駆動中フラグが“0"の時)のデフォーカス量(FE
RM)をチェックする。この数値が500μm以上であれ
ば、#267へ進む。すなわち、連写モードの時に、レン
ズ駆動前のデフォーカス量が500μm以上であれば、合
焦確認をするということになる。#266でFERMが500μm
未満であれば、#268へ進み、反転フラグがたっている
かどうかをチェックし、反転フラグがたっていればバッ
クラッシュの補正をしたことがあるということで、合焦
確認をするために、#267の方へ行く。#268で反転フラ
グがたっていなければ、#117の「INFZ」の合焦表示フ
ローへ行く。これは連写モードの時には、レンズ駆動ス
ピードを上げて移動している被写体に対する追従性をよ
くさせるための方法で、500μm以内の位置からバック
ラッシュの補正をしないで自動焦点調節をさせた場合に
は、システムのリニアティもよく、確実に合焦ゾーン内
に入るという確信のもので合焦確認の焦点検出をせず
に、直接合焦表示へ行く。これ以外の場合は、合焦確認
に行き、合焦精度を上げる。もっとも合焦検出能力を更
に向上し駆動系統の誤差がまったくない完全に近いもの
であれば、すべてここでの合焦確認は不用というふうに
してもよい。以上が自動焦点調節のシーケンスである。The flow from here is to determine whether or not to go to the focus detection for confirming whether the stop position of the lens is within the focusing zone after the focus adjustment driving. First,
Check the DR signal sent from the control microcomputer (MC2) to see if it is single shooting mode or continuous shooting mode. If the DR signal is "0", that is, the single shooting mode, # 267
s Wait, the lens will come to a complete stop from low speed, then enter the next focus detection loop. Then, if it is confirmed by the next focus detection that it is within the focusing zone, that is, if it is checked in step # 116 of the main flow of FIG. do. If the position where the lens stops is not within the focusing zone,
The routine for driving the lens is entered again from # 120 in FIG. 11, and the same operation is repeated. This is the flow when confirming the focus. Next, in the continuous shooting mode, since the DR signal is "1", the process proceeds from # 265 to # 266 in FIG. Here, when the lens is stopped (when the driving flag is "0"), the defocus amount (FE
Check RM). If this value is 500 μm or more, proceed to # 267. That is, in the continuous shooting mode, if the defocus amount before driving the lens is 500 μm or more, the focus is confirmed. # 266, FERM is 500μm
If less, go to # 268 and check if the reversal flag is on.If the reversal flag is on, it means that the backlash has been corrected. Go towards. If the reversal flag is not set at # 268, the flow goes to the focus display flow of "INFZ" at # 117. This is a method for increasing the lens drive speed to improve the followability to a moving subject in the continuous shooting mode. When automatic focus adjustment is performed from a position within 500 μm without correcting backlash. The system has a good linearity, and since it is sure that it will be in the focusing zone, it goes directly to the in-focus display without performing the focus detection of the in-focus confirmation. In other cases, go to the focus confirmation and improve the focus accuracy. However, if the focus detection capability is further improved and the drive system is almost completely free of errors, the focus confirmation may not be necessary here. The above is the sequence of automatic focus adjustment.
次に、第9図の#40から#53までのフローと第18図
(A)(B)のタイムチャートとを用いて「繰り込み積
分」と、移動分補正について説明する。これは基本的
に、焦点検出ループに要する時間を短くするための手段
である。第18図(A)は被写体が比較的明るく、CCDイ
メージセンサ(FLM)の積分時間が60ms未満の場合であ
り、第18図(B)は積分時間が60msを超えるような暗い
場合である。そして第18図(B)が「繰り込み積分」と
称する状態になっている。Next, "convolution integration" and movement amount correction will be described using the flow from # 40 to # 53 in FIG. 9 and the time charts in FIGS. 18 (A) and (B). This is basically a means for shortening the time required for the focus detection loop. FIG. 18 (A) shows the case where the subject is relatively bright and the integration time of the CCD image sensor (FLM) is less than 60 ms, and FIG. 18 (B) shows the case where the integration time is darker than 60 ms. Then, FIG. 18 (B) is in a state called "convolution integration".
まず被写体が明るい場合、第18図(A)のでセンサの
積分が開始されるときのイベントカウンタの値EVTCNTを
読み取り、これをT1として保存する。積分終了時ので
T2を保存する。そして、AGCデータを入力してすぐで
次の積分を開始してしまう。この積分開示時はと時間
的にほぼ同一時刻であるとして、T1′=T2として考え、
改めてT1′を取り込むことはしない。で積分を開始し
たと同時に、CCDイメージセンサから画素データを取り
入れる。そしてで焦点検出演算を開始する。ところが
(A)の明るい被写体の場合、から始まった第2回目
の積分は焦点検出演算が終了するまでにで終わってし
まっている。CCDイメージセンサからの画素データは積
分終了後直ちに出力され、演算終了時までデータをセン
サ内で持っておくことはできない。又AFマイコン(MC
1)が新データを取り込みに行けば、現在演算中のデー
タは破壊されてしまう。結局この第2回目の積分のデー
タは捨てられることになる。しかしで演算が終了した
時点ですぐ次の積分を開始すれば、明るければこの積分
時間自体さほど問題ではなく、焦点検出ループの時間と
しては長くならない。なおこの場合にはでのカウント
値T2′は無視されることになる。そして、この時の移動
分補正の計算は前述した計算式が成りたつ。すなわちTx
=T1−T2、Ty=T2−T3とした時の補正量Tz=Tx/2+Tyが
演算結果で求められたレンズ駆動カウント値DRCNTから
減算しておけばよい。なおここでT3とは演算終了時のイ
ベントカウント値である。で補正された値DRCNTを新
たなイベントカウンタのカウント値EVTCNTとしてセット
する。次に積分開始時にはこのカウント値をT1″として
保存し、以下同様に繰り返す。First, when the subject is bright, the value EVTCNT of the event counter when the integration of the sensor is started is read as shown in FIG. 18 (A), and this is saved as T1. At the end of integration
Save T2. Then, immediately after inputting the AGC data, the next integration is started. Assuming that the time when this integration is disclosed is almost the same time as, consider T1 ′ = T2,
T1 'will not be imported again. At the same time when the integration is started, the pixel data is taken in from the CCD image sensor. Then, the focus detection calculation is started. However, in the case of the bright subject (A), the second integration started from has ended by the time the focus detection calculation ends. Pixel data from the CCD image sensor is output immediately after the completion of integration, and the data cannot be held in the sensor until the end of calculation. AF microcomputer (MC
If 1) goes to fetch new data, the data currently being calculated will be destroyed. Eventually, the data of this second integration will be discarded. However, if the next integration is started immediately after the calculation ends, the integration time itself does not matter so long as it is bright, and the focus detection loop time does not become long. In this case, the count value T2 'at will be ignored. The calculation of the movement correction at this time is based on the above-described calculation formula. Ie Tx
The correction amount Tz = Tx / 2 + Ty when = T1-T2 and Ty = T2-T3 may be subtracted from the lens drive count value DRCNT obtained from the calculation result. Here, T3 is the event count value at the end of the calculation. The value DRCNT corrected by is set as the count value EVTCNT of the new event counter. Next, at the start of integration, this count value is saved as T1 ″, and the same is repeated thereafter.
次に被写体が暗い場合はで積分開始時のイベントカウ
ント値T1を保存する。で積分が終了してT2を保存す
る。AGCデータを取り込でからですぐ次の積分を開始
する。CCDデータ入力後から焦点検出演算を開始す
る。そしてで演算が終了し、T3を得て(A)と同様の
移動分補正をする。この積分終了時点のでは第2回目
の積分が終了していない。ここで「繰り込み積分」方式
を用いていないとすると、において新たな積分を開始
することになりここから−間と同等の時間を待たな
ければならない。しかし、本実施例では「繰り込み積
分」によってですでに積分を開始しているので、積分
終了まで−21間待つだけですむ。すなわちトータル時
間として−の時間が短縮されることになる。すなわ
ち、「繰り込み積分」方式は積分時間が−時間を超
えるような場合に効果が出てくる。本実施例では−
が60ms、又は−の最大積分時間を100msとしてい
る。Next, when the subject is dark, the event count value T1 at the start of integration is stored. Ends integration and saves T2. The next integration starts immediately after the AGC data is acquired. Focus detection calculation starts after CCD data is input. Then, the calculation is completed, T3 is obtained, and the same movement amount correction as in (A) is performed. At the time when this integration is completed, the second integration is not completed. If the "convolutional integration" method is not used here, a new integration is started at, and a time equivalent to the interval between-is required. However, in this embodiment, since the integration has already been started by the "convolutional integration", it is only necessary to wait for -21 seconds until the integration is completed. That is, the total time-is shortened. That is, the "convolution integration" method is effective when the integration time exceeds -time. In this embodiment −
Is 60ms or the maximum integration time of-is 100ms.
ところで(B)の場合の移動分補正については(A)と
同様の方法はとれない。演算終了時24での移動分補正
は、積分開始時のカウント値T1′(これは前回の積分
終了時点のカウント値と同じと見なしてT2→T1′とおき
かえられる)と、積分終了時のT2′、演算終了時のT3′
を用いて補正値を求めたいが、前回の演算終了時で、
レンズ駆動用イベントカウント値EVTCNTが書き換えられ
ている。すなわち補正計算でのTx=T1′−T2′におい
て、T1′とT2′では別次元の数値であり、この計算は意
味がない。T2′、T3′はで演算結果が求められEVTCNT
がセットされた時点から新しいスケールになっているの
である。そこで、T1′も新しいスケールに変換する必要
がある。すなわち、で求まった駆動カウント値DRCNT
と、前回のスケールでに来ている値T3との差が新スケ
ールへの変換補正量となる。システムが理想的であれ
ば、DRCNT=T3となるはずであるが、被写体に対しレン
ズが移動しながらセンサ積分をしているということや、
デフォーカス量対レンズ駆動カウント値の間での変換で
は係数が小さめに量子化されているということや、焦点
検出演算で求まるデフォーカス量自体もレンズの行きす
ぎ防止の意味で幾分小さめに結果が求まるようにし行き
すぎてもどったりした時に行うバックラッシュ補正によ
っての誤差を含まないよう考慮してあることにより必ず
DRCNT>T3となっている。そこでDRCNT−T3が新スケール
と旧スケールとの補正量となり、T2をT1′に置きかえる
時にこれを補正すれば新スケールのT1′が求まり24での
移動分補正ができる。フローチャートに掲げた実施例で
は、 (DRCNT−T3)+T2→T1′ と置きかえてTx=T1′−T2′として補正量Tzを求めてい
る。しかし、又これを別の実施例として Tx=(T2−T3)+(DRCNT−T2′) としても、同様に補正量Tzを求めることができる。ただ
し、この場合は(DRCNT−T3)の補正が必要ないかわり
に、移動分補正時に繰り込み積分の場合の別ルーチンを
作り、 Tx=T1′−T2′ のかわりに上記式を用意しておかないとならない。又T
2′によってT2が消されてしまわないような別のメモリ
を用意しておく必要もある。By the way, in the case of (B), the same method as in (A) cannot be applied to the movement correction. The movement correction at the end of calculation 24 is performed by counting the count value T1 'at the start of integration (this is regarded as the same as the count value at the end of the previous integration and replaced with T2 → T1') and T2 at the end of integration. ′, T3 at the end of calculation
I want to obtain the correction value using, but at the end of the previous calculation,
The lens drive event count value EVTCNT has been rewritten. That is, in Tx = T1'-T2 'in the correction calculation, T1' and T2 'are numerical values in different dimensions, and this calculation is meaningless. For T2 'and T3', the operation result is calculated by EVTCNT
The scale has been changed since the time was set. Therefore, T1 'also needs to be converted to the new scale. That is, the drive count value DRCNT obtained in
Then, the difference from the value T3 that comes to in the previous scale is the conversion correction amount to the new scale. If the system is ideal, it should be DRCNT = T3, but the fact that the lens is moving relative to the subject while performing sensor integration,
In the conversion between the defocus amount and the lens drive count value, the coefficient is quantized to be small, and the defocus amount itself obtained by the focus detection calculation is also a little small to prevent overshoot of the lens. Be sure to take into account the error due to the backlash correction that is performed when you go back too much.
DRCNT> T3. Therefore, DRCNT-T3 becomes the amount of correction between the new scale and the old scale, and when T2 is replaced with T1 ', if this is corrected, T1' of the new scale can be obtained and the movement correction at 24 can be performed. In the embodiment shown in the flowchart, the correction amount Tz is obtained by replacing (DRCNT-T3) + T2 → T1 'with Tx = T1'-T2'. However, if this is another embodiment and Tx = (T2-T3) + (DRCNT-T2 '), the correction amount Tz can be similarly obtained. However, in this case, the correction of (DRCNT-T3) is not required, but another routine for renormalization integration is created at the time of moving amount correction, and the above formula is not prepared instead of Tx = T1'-T2 '. It does not become. Again T
It is also necessary to prepare another memory so that T'is not erased by 2 '.
次にフローチャート上で「繰り込み積分」を見ると、第
10図の#66から始まる。#65で駆動中フラグをチェック
してレンズが駆動中という判断をした時には、「繰り込
み積分」状態になろうがなるまいが#66で次の積分を開
始し、#67で繰り込み積分フラグ(第5−1表の繰り込
み積分F)をたてていく。そして、「繰り込み積分」が
必要な時の焦点検出ループのトップを第9図の#40の
「CDINT」としている。Next, looking at "convolution integral" on the flowchart,
It starts from # 66 in Figure 10. When it is determined that the lens is being driven by checking the driving flag in # 65, it may or may not be in the “convolution integration” state, but the next integration is started in # 66, and the convolution integration flag ( The renormalization integral F) in Table 5-1 is established. The top of the focus detection loop when "convolution integration" is required is "CDINT" of # 40 in FIG.
今、第18図(B)の状態であるとする時のフローを追
う。#40で積分モードにして積分終了信号NB4を検知で
きるようにしておく。そして#42で繰り込み積分フラグ
がたっているかどうかをチェックして、たっていなけれ
ば繰り込み積分モードになっていないので#44へ進む。
繰り込み積分フラグがたっていれば#43へ進み、積分終
了信号NB4をチェックして、すでに積分が終わっている
かどうかをチェックする。第18図(B)ののように積
分が終わっていなければ#49の「TINTC」へ進む、すな
わち「TINTC」からが繰り込み状態時のフローで、#44
からの「CDINTS」が非繰り込み用である。第10図の#49
では1−cut shotフラグを“1"にする。#50でAFE信号
を“Low"にし、そして前述したように#51で移動分補正
に備えてT1′の補正をする。#53で積分の残り時間の最
大値40msをセットして、#55へ進む。以下はメインルー
チンを流れていく、「繰り込み積分」はこのようにして
焦点検出時間を短縮する効果を出す。以上でAFマイコン
(MC1)のフローの説明を終わる。Now, follow the flow when it is assumed that the state is that shown in FIG. 18 (B). The integration mode is set in # 40 so that the integration end signal NB4 can be detected. Then, in # 42, it is checked whether or not the renormalization integration flag is set. If not, the renormalization integration mode is not set, so the flow proceeds to # 44.
If the renormalization integration flag is set, the process proceeds to step # 43, where the integration end signal NB4 is checked to see if the integration has already been completed. If the integration is not completed as shown in FIG. 18 (B), the process proceeds to “TINTC” in # 49, that is, the flow from “TINTC” in the renormalization state, # 44
"CDINTS" from is for non-renormalization. # 49 in Figure 10
Then set the 1-cut shot flag to "1". The AFE signal is set to "Low" at # 50, and T1 'is corrected in preparation for movement correction at # 51 as described above. Set the maximum remaining integration time of 40 ms in # 53 and proceed to # 55. The following is the flow of the main routine. The "convolution integration" has the effect of shortening the focus detection time in this way. This concludes the description of the flow of the AF microcomputer (MC1).
発明の効果 本発明によると、本発明の特許請求の範囲の第1項にお
いては、撮影レンズを通過した被写体光を受光する受光
手段と、上記受光手段の出力に基いて、撮影レンズのデ
フォーカス量及びデフォーカス方向を検出する焦点検出
手段と、上記デフォーカス方向に基いて撮影レンズを駆
動する駆動手段と、上記駆動手段による駆動によって撮
影レンズが無限遠の被写体に合焦する位置に達したこと
を検出するレンズ位置検出手段と、上記レンズ位置検出
手段により撮影レンズが無限遠の被写体に合焦する位置
に達していないことが検出された場合には、合焦判定の
基準となる第1の合焦判定幅を出力して合焦判定を行う
第1合焦判定手段と、上記レンズ位置検出手段により撮
影レンズが無限遠の被写体に合焦する位置に達している
ことが検出された場合には、前記第1の合焦判定幅より
も値の大きな第2の合焦判定幅を出力して合焦判定を行
う第2合焦判定手段とを有することを特徴とし、また、
第2項では、撮影レンズを通過した被写体光を受光する
受光手段と、上記受光手段の出力に基いて、撮影レンズ
のデフォーカス量及びデフォーカス方向を検出する焦点
検出手段と、上記デフォーカス方向に基いて撮影レンズ
を駆動する駆動手段と、上記駆動手段による駆動によっ
て撮影レンズが無限遠の被写体に合焦する位置に達した
ことを検出するレンズ位置検出手段と、上記レンズ位置
検出手段により撮影レンズが無限遠の被写体に合焦する
位置に達していないことが検出された場合には、合焦判
定の基準となる第1の合焦判定幅を出力して合焦判定を
行う第1合焦判定手段と、上記レンズ位置検出手段によ
り撮影レンズが無限遠の被写体に合焦する位置に達して
いることが検出され、かつ、上記デフォーカス方向が遠
方向を示しているときには、前記第1の合焦判定幅より
も値の大きな第2の合焦判定幅を出力して合焦判定を行
う第2合焦判定手段とを有しているので、実際に合焦し
ているにもかかわらず、検出誤差によって非合焦と判定
されることはありません。EFFECTS OF THE INVENTION According to the present invention, in claim 1 of the present invention, the defocusing of the taking lens is performed based on the light receiving means for receiving the subject light passing through the taking lens and the output of the light receiving means. Focus detection means for detecting the amount and defocus direction, driving means for driving the taking lens based on the defocus direction, and driving by the driving means have reached a position where the taking lens focuses on an object at infinity. And a lens position detecting unit that detects that the photographing lens has not reached a position at which a subject at infinity is in focus. The first focus determination means for outputting the focus determination width of 1 to perform the focus determination, and the lens position detection means have reached the position where the photographing lens focuses on the subject at infinity. When it is detected, a second focus determination unit that outputs a second focus determination width having a larger value than the first focus determination width to perform focus determination is provided. Also,
In the second term, a light receiving unit that receives the subject light that has passed through the photographing lens, a focus detection unit that detects the defocus amount and the defocus direction of the photographing lens based on the output of the light receiving unit, and the defocus direction. Driving means for driving the photographing lens based on the above, a lens position detecting means for detecting that the photographing lens has reached a position focused on an object at infinity by the driving by the driving means, and photographing by the lens position detecting means. When it is detected that the lens has not reached the position where the lens focuses on the subject at infinity, the first focus determination width that is the reference for focus determination is output to perform the focus determination. It is detected by the focus determination means and the lens position detection means that the photographing lens has reached a position at which an object at infinity is focused, and the defocus direction indicates a far direction. In this case, since it has a second focus determination means for outputting the second focus determination width having a larger value than the first focus determination width to perform the focus determination, the actual focus determination is performed. Despite being in focus, it will not be judged as out-of-focus due to detection error.
第1図は本発明実施例のカメラシステム全体を示す概略
図、第2図はその電気回路を示すブロック図、第3図は
その電子閃光装置のフラッシュ回路を示す回路図、第4,
5図はその制御マイコンの動作を示すフローチャート、
第6図はそのインターフェース回路を示すブロック図、
第7−16図はそのAFマイコンの動作を示すフローチャー
ト、第17図(A)(B)はそれぞれわりこみ信号を示す
フローチャート、第18図(A)(B)は「繰り込み積
分」の動作を説明するためのタイムチャート、第19図は
本発明実施例の焦点検出原理を説明するための概略図で
ある。 (AFM)(FLM)(112)(113)(IF1)(MC1);合焦検
出手段、合焦判別手段、制御手段、 (MDR1)(MO1);駆動手段、 (ENC)(MC1);終端検出手段。FIG. 1 is a schematic diagram showing an entire camera system of an embodiment of the present invention, FIG. 2 is a block diagram showing its electric circuit, and FIG. 3 is a circuit diagram showing a flash circuit of its electronic flash device.
Figure 5 is a flow chart showing the operation of the control microcomputer.
FIG. 6 is a block diagram showing the interface circuit,
FIG. 7-16 is a flow chart showing the operation of the AF microcomputer, FIGS. 17 (A) and (B) are flow charts showing the interrupt signal, and FIGS. 18 (A) and (B) are explanations of the operation of “convolution integration”. FIG. 19 is a schematic diagram for explaining the focus detecting principle of the embodiment of the present invention. (AFM) (FLM) (112) (113) (IF1) (MC1); focus detection means, focus determination means, control means (MDR1) (MO1); drive means (ENC) (MC1); termination Detection means.
Claims (2)
受光手段と、 上記受光手段の出力に基いて、撮影レンズのデフォーカ
ス量及びデフォーカス方向を検出する焦点検出手段と、 上記デフォーカス方向に基いて撮影レンズを駆動する駆
動手段と、 上記駆動手段による駆動によって撮影レンズが無限遠の
被写体に合焦する位置に達したことを検出するレンズ位
置検出手段と、 上記レンズ位置検出手段により撮影レンズが無限遠の被
写体に合焦する位置に達していないことが検出された場
合には、合焦判定の基準となる第1の合焦判定幅を出力
して合焦判定を行う第1合焦判定手段と、 上記レンズ位置検出手段により撮影レンズが無限遠の被
写体に合焦する位置に達していることが検出された場合
には、前記第1の合焦判定幅よりも値の大きな第2の合
焦判定幅を出力して合焦判定を行う第2合焦判定手段と を有することを特徴とする自動焦点調節装置。1. A light receiving means for receiving subject light that has passed through a photographing lens, a focus detecting means for detecting a defocus amount and a defocus direction of the photographing lens based on an output of the light receiving means, and the defocus direction. Driving means for driving the photographing lens based on the above, a lens position detecting means for detecting that the photographing lens has reached a position focused on an object at infinity by the driving by the driving means, and photographing by the lens position detecting means. When it is detected that the lens has not reached the position where the lens focuses on the subject at infinity, the first focus determination width that is the reference for focus determination is output to perform the focus determination. When the focus determination means and the lens position detection means detect that the taking lens has reached the position where the subject is focused at infinity, the value is larger than the first focus determination width. Autofocus system, characterized in that it comprises a second output focus determination widths and a second in-focus determination means for determining focus.
受光手段と、 上記受光手段の出力に基いて、撮影レンズのデフォーカ
ス量及びデフォーカス方向を検出する焦点検出手段と、 上記デフォーカス方向に基いて撮影レンズを駆動する駆
動手段と、 上記駆動手段による駆動によって撮影レンズが無限遠の
被写体に合焦する位置に達したことを検出するレンズ位
置検出手段と、 上記レンズ位置検出手段により撮影レンズが無限遠の被
写体に合焦する位置に達していないことが検出された場
合には、合焦判定の基準となる第1の合焦判定幅を出力
して合焦判定を行う第1合焦判定手段と、 上記レンズ位置検出手段により撮影レンズが無限遠の被
写体に合焦する位置に達していることが検出され、か
つ、上記デフォーカス方向が遠方向を示しているときに
は、前記第1の合焦判定幅よりも値の大きな第2の合焦
判定幅を出力して合焦判定を行う第2合焦判定手段と、 を有することを特徴とする自動焦点調節装置。2. A light receiving means for receiving subject light that has passed through a taking lens, a focus detecting means for detecting a defocus amount and a defocusing direction of the taking lens based on an output of the light receiving means, and a defocusing direction. Driving means for driving the photographing lens based on the above, a lens position detecting means for detecting that the photographing lens has reached a position focused on an object at infinity by the driving by the driving means, and photographing by the lens position detecting means. When it is detected that the lens has not reached the position where the lens focuses on the subject at infinity, the first focus determination width that is the reference for focus determination is output to perform the focus determination. The focus determination means and the lens position detection means detect that the taking lens has reached the position where the subject at infinity is in focus, and the defocus direction indicates the far direction. In this case, a second focus determination means for outputting a second focus determination width having a larger value than the first focus determination width to perform focus determination is included. apparatus.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61087290A JPH0766102B2 (en) | 1986-04-16 | 1986-04-16 | Focus detection device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61087290A JPH0766102B2 (en) | 1986-04-16 | 1986-04-16 | Focus detection device |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP717985A Division JPS61165715A (en) | 1985-01-14 | 1985-01-17 | Auto-focusing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6236620A JPS6236620A (en) | 1987-02-17 |
| JPH0766102B2 true JPH0766102B2 (en) | 1995-07-19 |
Family
ID=13910672
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61087290A Expired - Lifetime JPH0766102B2 (en) | 1986-04-16 | 1986-04-16 | Focus detection device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0766102B2 (en) |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58159510A (en) * | 1982-03-17 | 1983-09-21 | Nippon Seimitsu Kogyo Kk | Focus adjusting device of optical equipment |
| JPS58162915A (en) * | 1982-03-23 | 1983-09-27 | Nippon Seimitsu Kogyo Kk | Focusing device of optical apparatus |
| JPS593406A (en) * | 1982-06-29 | 1984-01-10 | Olympus Optical Co Ltd | Detector for focusing state |
| JPS5964816A (en) * | 1982-10-05 | 1984-04-12 | Olympus Optical Co Ltd | Lens barrel |
| JPS59177509A (en) * | 1983-03-29 | 1984-10-08 | Kyocera Corp | Automatic focus control device at moving limit on infinite side of lens |
| JPH0459620A (en) * | 1990-06-26 | 1992-02-26 | Nippon Zeon Co Ltd | Magnetic powder for magnetic recording and magnetic recording medium therefrom |
-
1986
- 1986-04-16 JP JP61087290A patent/JPH0766102B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6236620A (en) | 1987-02-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4888609A (en) | Automatic focus adjusting apparatus | |
| US4829331A (en) | Camera having auto-focussing device | |
| JPS6341818A (en) | Automatic focus adjusting device provided with auxiliary illuminating device | |
| JPH0766099B2 (en) | Automatic focus adjustment device | |
| JP2501189B2 (en) | Automatic focus adjustment device | |
| JPH0690355B2 (en) | Focus detection device | |
| JP2005316128A (en) | Imaging apparatus and control method thereof | |
| JPH0766101B2 (en) | Automatic focus adjustment device | |
| JP2687958B2 (en) | Automatic focus detection device | |
| JPH0713695B2 (en) | Camera with automatic focusing device | |
| JPH06100713B2 (en) | Automatic focus adjustment device | |
| JPH0713692B2 (en) | Automatic focus adjustment device | |
| JPH0713691B2 (en) | Automatic focus adjustment device | |
| JPH0766102B2 (en) | Focus detection device | |
| JPH0766100B2 (en) | Automatic focus adjustment device | |
| JPS62215248A (en) | Focus detecting device with auxiliary lighting device | |
| JP2644252B2 (en) | Auto focus camera | |
| JP3034217B2 (en) | Focusing device | |
| JPS61267716A (en) | Automatic focusing device | |
| JP2000009988A (en) | Automatic focusing device for camera | |
| JPS61165715A (en) | Auto-focusing device | |
| JPH01510A (en) | autofocus camera | |
| JP2003241068A (en) | Automatic focusing camera | |
| JPS62116914A (en) | Automatic focus adjusting device | |
| JPS62272216A (en) | Focus detector provided with auxiliary illuminating device |