JPH09257469A - Distance-measuring apparatus for camera - Google Patents

Distance-measuring apparatus for camera

Info

Publication number
JPH09257469A
JPH09257469A JP6825696A JP6825696A JPH09257469A JP H09257469 A JPH09257469 A JP H09257469A JP 6825696 A JP6825696 A JP 6825696A JP 6825696 A JP6825696 A JP 6825696A JP H09257469 A JPH09257469 A JP H09257469A
Authority
JP
Japan
Prior art keywords
voltage
circuit
current
capacitor
light
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.)
Abandoned
Application number
JP6825696A
Other languages
Japanese (ja)
Inventor
Hiroyuki Saito
浩幸 斉藤
Michio Kawai
道雄 川合
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seikosha KK
Original Assignee
Seikosha KK
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seikosha KK filed Critical Seikosha KK
Priority to JP6825696A priority Critical patent/JPH09257469A/en
Publication of JPH09257469A publication Critical patent/JPH09257469A/en
Abandoned legal-status Critical Current

Links

Landscapes

  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)
  • Measurement Of Optical Distance (AREA)

Abstract

PROBLEM TO BE SOLVED: To eliminate the need for determining a gain of a distance-measuring circuit and measure a distance at high speed highly accurately. SOLUTION: A first and a second capacitors 61, 62 store integrated values after amplified of a pair of outputs from a photodetecting element 31 which detects a reflecting light as a light reflected at an object to be photographed of a measuring light projected through the projection of a light-projecting circuit 20 by a predetermined number of times. A sum voltage of the first and second capacitors 61, 62 and a voltage of the capacitor 61 are simultaneously input to an A/D converter 14. The A/D converter 14 generates an output corresponding to a ratio of the sum voltage and the voltage. Since the apparatus is provided with the A/D converter 14 as well as a control circuit 11 for driving a photographing lens based on the output of the A/D converter 14, an operation for determining a gain of an amplifying circuit 40 is eliminated and a circuit scale is reduced.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の技術分野】本発明は、カメラ用測距装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distance measuring device for a camera.

【0002】[0002]

【従来の技術】従来の、いわゆるアクティブ式の測距装
置では、例えば本出願人の先の出願である特開平6−1
94567号に示されているように、投光素子を駆動し
被写体に向けてパルス状の測定光を投光し、その反射光
を一次元半導***置検出素子(以下、PSDという)な
どの受光素子で受光し、PSDの一対の出力信号をそれ
ぞれ電流電圧変換、増幅、積分し、それらの積分結果か
ら、被写体までの距離を算出していた。
2. Description of the Related Art In a conventional so-called active distance measuring device, for example, Japanese Patent Application Laid-Open No. 6-1 which was filed by the applicant of the present application.
As shown in Japanese Patent No. 94567, a light emitting element is driven to project a pulsed measuring light toward a subject, and the reflected light is received by a light receiving element such as a one-dimensional semiconductor position detecting element (hereinafter referred to as PSD). Then, the pair of output signals of the PSD are received, converted into current / voltage, amplified, and integrated, and the distance to the subject is calculated from the integration results.

【0003】その算出方法としては、例えば受光素子の
一対の出力に応じた積分電圧が所定の値に達するまでの
投光回数に応じて被写体までの距離を算出していた。
As the calculation method, for example, the distance to the subject is calculated according to the number of times of light projection until the integrated voltage corresponding to the pair of outputs of the light receiving element reaches a predetermined value.

【0004】この場合、例えば被写体の反射率が小さい
と1回の投光における積分電圧の変化量が小さくなるの
で読み取り誤差が多くなり、分解能を大きくとれないと
いう問題点があるので、1回の投光における積分電圧の
変化が適度の範囲に収まるようにするため、まず最初に
数回〜数十回にわたって被写体に投光し、そのときの受
光素子の出力から増幅回路のゲインを決定していた。
In this case, for example, if the reflectance of the object is small, the amount of change in the integrated voltage in one projection is small, so that there are many reading errors and the resolution cannot be increased. In order to keep the change in integrated voltage during light projection within an appropriate range, the light is first projected onto the subject several times to several tens of times, and the gain of the amplification circuit is determined from the output of the light receiving element at that time. It was

【0005】[0005]

【発明が解決しようとする課題】しかし、上記のような
方法では、すなわち受光素子の出力に応じた積分電圧が
所望の値に達するまでの投光回数に基づいて被写体まで
の距離を算出する方法では、被写体の反射率の大きさに
よっては増幅回路のゲイン決定動作を含めると数百回に
わたって投光を行うケースが発生し、この場合測距時間
がかかり過ぎてしまい、シャッタチャンスを逃してしま
う可能性があった。また、増幅回路のゲインを決定する
ためにゲイン決定手段を追加する必要があり、回路が大
規模になってしまう傾向があった。
However, in the method as described above, that is, the method of calculating the distance to the object based on the number of times the light is projected until the integrated voltage corresponding to the output of the light receiving element reaches a desired value. Then, depending on the magnitude of the reflectance of the subject, if the gain determination operation of the amplifier circuit is included, a case in which light is projected hundreds of times occurs, in which case the distance measurement takes too much time, and a photo opportunity is missed. There was a possibility. Further, it is necessary to add a gain determining means to determine the gain of the amplifier circuit, which tends to increase the size of the circuit.

【0006】[0006]

【課題を解決するための手段】本発明では、投光手段の
所望の投光動作により投光された測定光が被写体によっ
て反射された反射光を受光する受光素子の一対の出力を
それぞれ増幅した後に積分した値を記憶する第1と第2
のコンデンサの端子間電圧の大小関係に応じたデジタル
信号に基づいて撮影レンズを駆動するので、増幅器のゲ
インを決定する動作を不要にできるとともに、回路の規
模を小さくできる。
According to the present invention, a pair of outputs of a light receiving element for receiving the measurement light projected by the desired projection operation of the projection means and receiving the reflected light reflected by the subject are amplified. 1st and 2nd which memorize the integrated value later
Since the taking lens is driven based on the digital signal according to the magnitude relation of the voltage between the terminals of the capacitor, the operation for determining the gain of the amplifier can be unnecessary and the circuit scale can be reduced.

【0007】[0007]

【発明の実施の形態】本願の請求項1に係る発明は、被
写体に対し測定光を投光する投光手段と、前記測定光が
前記被写体によって反射された反射光を受光する受光素
子と、前記受光素子の一対の出力電流をそれぞれ電圧に
変換する第1および第2の電流電圧変換回路と、前記第
1および第2の電流電圧変換回路の出力を増幅する増幅
回路と、前記増幅回路の出力を積分する積分回路と、前
記投光手段の所望の投光動作における前記第1の電流電
圧変換回路の出力に応じた前記積分回路の出力を記憶す
る第1のコンデンサと、前記投光手段の前記所望の投光
動作における前記第2の電流電圧変換回路の出力に応じ
た前記積分回路の出力を記憶する第2のコンデンサと、
前記第1および第2のコンデンサの端子間電圧を入力
し、その大小関係に応じたデジタル信号を出力するA/
D変換器と、前記デジタル信号に基づいて撮影レンズを
駆動する制御手段とを備えている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The invention according to claim 1 of the present application includes a light projecting means for projecting measuring light onto a subject, and a light receiving element for receiving the reflected light reflected by the subject. First and second current-voltage conversion circuits that convert a pair of output currents of the light-receiving element into voltages, an amplification circuit that amplifies outputs of the first and second current-voltage conversion circuits, and an amplification circuit of the amplification circuit. An integrating circuit that integrates the output, a first capacitor that stores the output of the integrating circuit according to the output of the first current-voltage conversion circuit in the desired light projecting operation of the light projecting unit, and the light projecting unit. A second capacitor for storing the output of the integration circuit according to the output of the second current-voltage conversion circuit in the desired light projecting operation,
A / which inputs the voltage between the terminals of the first and second capacitors and outputs a digital signal according to the magnitude relation
A D converter and control means for driving the taking lens based on the digital signal are provided.

【0008】本願の請求項2に係る発明は、被写体に対
し測定光を投光する投光手段と、前記測定光が前記被写
体によって反射された反射光を受光する受光素子と、前
記受光素子の一対の出力電流をそれぞれ電圧に変換する
第1および第2の電流電圧変換回路と、前記第1および
第2の電流電圧変換回路の出力の一方を選択する選択手
段と、前記選択手段によって選択された前記第1および
第2の電流電圧変換回路の出力を増幅する増幅回路と、
前記増幅回路の出力を積分する積分回路と、前記選択手
段によって前記第1の電流電圧変換回路が選択されてい
るときに前記積分回路の出力を記憶する第1のコンデン
サと、前記選択手段によって前記第2の電流電圧変換回
路が選択されているときに前記積分回路の出力を記憶す
る第2のコンデンサと、前記第1および第2のコンデン
サの端子間電圧を入力し、その大小関係に応じたデジタ
ル信号を出力するA/D変換器と、前記デジタル信号に
基づいて撮影レンズを駆動する制御手段とを備えてい
る。
According to a second aspect of the present invention, there is provided a light projecting means for projecting measuring light onto an object, a light receiving element for receiving the reflected light of the measuring light reflected by the object, and the light receiving element. First and second current-voltage conversion circuits for converting a pair of output currents into voltages, selection means for selecting one of the outputs of the first and second current-voltage conversion circuits, and selection means for selecting by the selection means. And an amplifier circuit for amplifying the outputs of the first and second current-voltage conversion circuits,
An integrating circuit that integrates the output of the amplifier circuit; a first capacitor that stores the output of the integrating circuit when the first current-voltage conversion circuit is selected by the selecting means; A second capacitor that stores the output of the integrator circuit when the second current-voltage conversion circuit is selected, and a voltage between the terminals of the first and second capacitors are input, and the magnitude relationship is determined. An A / D converter that outputs a digital signal and a control unit that drives the taking lens based on the digital signal are provided.

【0009】本願の請求項3に係る発明は、被写体に対
し測定光を投光する投光手段と、前記測定光が前記被写
体によって反射された反射光を受光する受光素子と、前
記受光素子の一対の出力電流をそれぞれ電圧に変換する
第1および第2の電流電圧変換回路と、前記第1および
第2の電流電圧変換回路の出力の一方を選択する選択手
段と、前記選択手段によって選択された前記第1および
第2の電流電圧変換回路の出力を増幅する増幅回路と、
第1および第2のコンデンサと、前記選択手段によって
第1の電流電圧変換回路が選択されているときに前記第
1のコンデンサを選択し前記選択手段によって第2の電
流電圧変換回路が選択されているときに前記第2のコン
デンサを選択するコンデンサ選択手段と、前記コンデン
サ選択手段によって選択されたコンデンサを積分コンデ
ンサとして前記増幅回路の出力を積分する積分回路と、
前記第1および第2のコンデンサの端子間電圧を入力
し、その大小関係に応じたデジタル信号を出力するA/
D変換器と、前記デジタル信号に基づいて撮影レンズを
駆動する制御手段とを備えている。
According to a third aspect of the present invention, the light projecting means for projecting the measuring light to the object, the light receiving element for receiving the reflected light of the measuring light reflected by the object, and the light receiving element First and second current-voltage conversion circuits for converting a pair of output currents into voltages, selection means for selecting one of the outputs of the first and second current-voltage conversion circuits, and selection means for selecting by the selection means. And an amplifier circuit for amplifying the outputs of the first and second current-voltage conversion circuits,
When the first and second capacitors and the first current-voltage conversion circuit are selected by the selection means, the first capacitor is selected and the second current-voltage conversion circuit is selected by the selection means. A capacitor selecting means for selecting the second capacitor when the capacitor is in a charge state, and an integrating circuit for integrating the output of the amplifier circuit with the capacitor selected by the capacitor selecting means as an integrating capacitor,
A / which inputs the voltage between the terminals of the first and second capacitors and outputs a digital signal according to the magnitude relation
A D converter and control means for driving the taking lens based on the digital signal are provided.

【0010】本願の請求項4に係る発明は、請求項1、
2または3において、前記A/D変換器を、前記第1お
よび第2のコンデンサの端子間電圧の和電圧と前記第1
または第2のコンデンサの端子間電圧との比をデジタル
信号として出力するものとしている。
The invention according to claim 4 of the present application is based on claim 1,
2 or 3, the A / D converter is connected to the sum voltage of the terminals of the first and second capacitors and the first voltage of the first and second capacitors.
Alternatively, the ratio of the voltage between the terminals of the second capacitor is output as a digital signal.

【0011】本願の請求項5に係る発明は、請求項1、
2または3において、前記A/D変換器を、第1および
第2のコンデンサの端子間電圧の比をデジタル信号とし
て出力するものとしている。
The invention according to claim 5 of the present application is based on claim 1,
In 2 or 3, the A / D converter outputs the ratio of the voltage between terminals of the first and second capacitors as a digital signal.

【0012】[0012]

【実施例】本発明の実施例の構成を図1に基づいて説明
する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The configuration of an embodiment of the present invention will be described with reference to FIG.

【0013】制御回路(以下CPUという)11は制御
手段を構成し、カメラの各部分の動作を統括して制御す
る。CPU11に内蔵されている読み出し専用のリード
・オンリ・メモリ(以下ROMという)11aはカメラ
の動作に関するプログラムおよびデータの半永久的な保
存に使用する。後述する図3に示すテーブルは11aの
適切なアドレスに割り当てられている。同様に、CPU
11に内蔵されている読み書き可能なランダム・アクセ
ス・メモリ(以下RAMという)11bは演算および一
時的な記憶に使用する。後述するカウンタCNTおよび
至近フラグFc、無限遠フラグFiはそれぞれRAM1
1bの適切なアドレスに割り当てられている。モータ1
2はCPU11の制御に従って鏡筒12aを合焦位置に
駆動する。レリーズスイッチ13は撮影者が撮影を行う
ために押下し、押圧によって順次オンする2つの接点S
1、S2を有する。A/D変換器14は入力されたアナ
ログ電圧をデジタル値に変換し、CPU11に出力す
る。スイッチ14bはA/D変換器14の基準電圧入力
を、スイッチ14aは入力源をそれぞれ切り換える。
A control circuit (hereinafter referred to as CPU) 11 constitutes a control means and controls the operation of each part of the camera as a whole. A read-only read-only memory (hereinafter referred to as ROM) 11a built in the CPU 11 is used for semi-permanent storage of programs and data relating to camera operation. The table shown in FIG. 3, which will be described later, is assigned to an appropriate address 11a. Similarly, CPU
A readable / writable random access memory (hereinafter referred to as RAM) 11b built in 11 is used for calculation and temporary storage. A counter CNT, a near flag Fc, and an infinity flag Fi, which will be described later, are respectively stored in the RAM 1
It is assigned to the appropriate address of 1b. Motor 1
Reference numeral 2 drives the lens barrel 12a to the in-focus position under the control of the CPU 11. The release switch 13 is pressed by the photographer to take a picture, and two contacts S are sequentially turned on by the pressing.
1 and S2. The A / D converter 14 converts the input analog voltage into a digital value and outputs it to the CPU 11. The switch 14b switches the reference voltage input of the A / D converter 14, and the switch 14a switches the input source.

【0014】投光回路20は投光手段を構成し、投光素
子(以下IREDという)21を駆動するための回路で
あり、トランジスタ22、抵抗23、抵抗24からな
る。IRED21はCPU11から出力される発光信号
EMによってパルス駆動され、投光レンズ21aを介し
て投光を行う。
The light projecting circuit 20 constitutes a light projecting means and is a circuit for driving a light projecting element (hereinafter referred to as IRED) 21, and comprises a transistor 22, a resistor 23, and a resistor 24. The IRED 21 is pulse-driven by the light emission signal EM output from the CPU 11, and emits light via the light projecting lens 21a.

【0015】遠側電流電圧変換回路32、近側電流電圧
変換回路35は一次元半導体受光素子31(以下PSD
という)と一体となって受光回路30を構成する。な
お、遠側電流電圧変換回路32は第1の電流電圧変換回
路を構成し、近側電流電圧変換回路35は第2の電流電
圧変換回路を構成する。ここで説明の便宜上、PSD3
1の2つの出力端子のうち、投光素子に近い方を遠側、
投光素子から遠い方を近側と呼ぶものとする。PSD3
1に受光レンズ31aを介して光信号が入射すると、P
SD31はその強度と入射位置に応じた電流を遠側電流
電圧変換回路32と近側電流電圧変換回路35とに出力
する。遠側電流電圧変換回路32はアンプ33と帰還抵
抗34とで構成され、入力電流に比例した電圧を出力す
る回路であり、近側電流電圧変換回路35も同様にアン
プ36と帰還抵抗37とで構成され、入力電流に比例し
た電圧を出力する回路である。遠側電流電圧変換回路3
2および近側電流電圧変換回路35から出力された電圧
は、共に選択手段であるスイッチSsに導かれる。スイ
ッチSsは遠側電流電圧変換回路32と近側電流電圧変
換回路35のいずれかの出力を後段の回路に伝える役割
を持ち、その状態はCPU11によって制御される。遠
側の測距を行うときは遠側電流電圧変換回路32、近側
の測距を行うときは近側電流電圧変換回路35側にオン
する。
The far-side current / voltage converting circuit 32 and the near-side current / voltage converting circuit 35 are composed of a one-dimensional semiconductor light receiving element 31 (hereinafter referred to as PSD).
That is, the light receiving circuit 30 is configured integrally. The far-side current-voltage conversion circuit 32 constitutes a first current-voltage conversion circuit, and the near-side current-voltage conversion circuit 35 constitutes a second current-voltage conversion circuit. For convenience of explanation, PSD3
Of the two output terminals of 1, the side closer to the light emitting element is the far side,
The side far from the light projecting element is called the near side. PSD3
When an optical signal is incident on 1 through the light receiving lens 31a, P
The SD 31 outputs a current according to the intensity and the incident position to the far side current-voltage conversion circuit 32 and the near side current-voltage conversion circuit 35. The far-side current-voltage conversion circuit 32 is a circuit that is composed of an amplifier 33 and a feedback resistor 34 and outputs a voltage proportional to the input current. Similarly, the near-side current-voltage conversion circuit 35 also includes an amplifier 36 and a feedback resistor 37. A circuit configured to output a voltage proportional to an input current. Far side current-voltage conversion circuit 3
The voltages output from 2 and the near-side current-voltage conversion circuit 35 are both guided to the switch Ss that is the selection unit. The switch Ss has a role of transmitting one of the outputs of the far-side current-voltage conversion circuit 32 and the near-side current-voltage conversion circuit 35 to the circuit at the subsequent stage, and the state thereof is controlled by the CPU 11. When the distance measurement on the far side is performed, the far-side current-voltage conversion circuit 32 is turned on, and when the distance measurement on the near side is performed, the near-side current-voltage conversion circuit 35 side is turned on.

【0016】増幅回路40の前にはカップリングコンデ
ンサCcが接続され、入力信号の直流分はここでカット
される。増幅回路40はアンプ41と入力抵抗42と帰
還抵抗43とで構成され、入力信号をある一定のゲイン
で増幅する回路である。
A coupling capacitor Cc is connected in front of the amplifier circuit 40, and the DC component of the input signal is cut off here. The amplifier circuit 40 is a circuit that includes an amplifier 41, an input resistor 42, and a feedback resistor 43, and amplifies an input signal with a certain gain.

【0017】積分回路50はアンプ51、入力抵抗5
2、積分コンデンサ53、それに積分コンデンサ53の
電荷を放電するためのスイッチ54からなる。積分動作
に先だって積分コンデンサ53に残っている電荷を放電
するためスイッチ54がオンする。電荷を十分に放電す
るとスイッチ54はオフする。積分動作がスイッチSi
のオンによって開始されると、積分コンデンサ53には
入力信号の時間積分値が電荷として貯えられる。
The integrating circuit 50 includes an amplifier 51 and an input resistor 5
2, an integrating capacitor 53, and a switch 54 for discharging the charge of the integrating capacitor 53. Prior to the integration operation, the switch 54 is turned on to discharge the electric charge remaining in the integration capacitor 53. When the electric charge is sufficiently discharged, the switch 54 turns off. Integral action is switch Si
When it is turned on, the time integration value of the input signal is stored in the integration capacitor 53 as electric charge.

【0018】充電制御回路60は積分回路50によって
積分された遠側電流電圧変換回路32、近側電流電圧変
換回路35の電圧をおのおのコンデンサ61、コンデン
サ62に充電するための回路である。スイッチ63とス
イッチ64とをオンするとコンデンサ61が積分回路5
0の出力端子に接続され、スイッチ65とスイッチ66
とをオンするとコンデンサ62が積分回路50の出力端
子に接続される。なお、コンデンサ61は第1のコンデ
ンサを構成し、コンデンサ62は第2のコンデンサを構
成する。スイッチ63〜66によってコンデンサ選択手
段を構成する。
The charge control circuit 60 is a circuit for charging the capacitors 61 and 62 with the voltages of the far-side current-voltage converting circuit 32 and the near-side current-voltage converting circuit 35 integrated by the integrating circuit 50. When the switches 63 and 64 are turned on, the capacitor 61 causes the integration circuit 5 to
0 is connected to the output terminal of switch 65 and switch 66
When and are turned on, the capacitor 62 is connected to the output terminal of the integrating circuit 50. The capacitor 61 constitutes a first capacitor, and the capacitor 62 constitutes a second capacitor. The switches 63 to 66 constitute a capacitor selecting means.

【0019】電圧ホロワ68はコンデンサ61のプラス
極の電圧を、電圧ホロワ69はコンデンサ62のプラス
極の電圧をインピーダンス変換して出力する。
The voltage follower 68 impedance-converts the voltage of the positive pole of the capacitor 61, and the voltage follower 69 outputs the voltage of the positive pole of the capacitor 62 by impedance conversion.

【0020】なお、以上の回路の各部に入力される参照
電圧Vrefは、電源電圧Vddと接地電圧GNDの間
に直列に接続された同一の抵抗によって作られる分圧電
圧であり、電源電圧Vddの2分の1の電圧である。
The reference voltage Vref input to each part of the above circuit is a divided voltage generated by the same resistor connected in series between the power supply voltage Vdd and the ground voltage GND, and is equal to the power supply voltage Vdd. It is half the voltage.

【0021】以下に、このように構成された本実施例の
測距回路の動作について説明する。撮影者が接点S1を
押すとCPU11はROM11aの露出作動に関わる一
連のルーチンを呼び出す。まず測光ルーチンを呼び出し
て被写体とその周辺の測光動作を測光動作を行い、測距
ルーチンを呼び出して測距動作を行い撮影レンズを合焦
位置に駆動した後、露出動作を行う。測距動作は、初期
化、予備測距、本測距、レンズ駆動の4ステップからな
る。以下、これらの各ステップを詳細に説明する。
The operation of the distance measuring circuit of this embodiment thus constructed will be described below. When the photographer presses the contact S1, the CPU 11 calls a series of routines relating to the exposure operation of the ROM 11a. First, the photometry routine is called to perform the photometry operation of the subject and its surroundings, and the distance measurement routine is called to perform the distance measurement operation to drive the taking lens to the in-focus position and then perform the exposure operation. The distance measuring operation includes four steps of initialization, preliminary distance measuring, main distance measuring, and lens driving. Hereinafter, each of these steps will be described in detail.

【0022】最初に行われるのは初期化である。まずC
PU11はRAM11bを初期化する。このとき、カウ
ンタCNTおよび至近フラグFc、Fiがクリアされ
る。続いてスイッチ54、63、64、65、66をオ
ンして積分コンデンサ53、61、62にたまっている
電荷をそれぞれ放電した後に再びこれらのスイッチをオ
フする。さらにスイッチSsを遠側電流電圧変換回路3
2側に、スイッチ14aを電圧ホロワ68側に、スイッ
チ14bを電源電圧Vdd側にそれぞれオンし、スイッ
チSiをオフする。続いてカウンタリセット信号CRを
発生し、カウンタCNTを0にクリアする。このように
して初期化が終了し、測距の準備が整う。
Initialization is performed first. First C
The PU 11 initializes the RAM 11b. At this time, the counter CNT and the closest flags Fc and Fi are cleared. Subsequently, the switches 54, 63, 64, 65, 66 are turned on to discharge the charges accumulated in the integrating capacitors 53, 61, 62, respectively, and then these switches are turned off again. Further, the switch Ss is connected to the far side current-voltage conversion circuit 3
2, the switch 14a is turned on to the voltage follower 68 side, the switch 14b is turned to the power supply voltage Vdd side, and the switch Si is turned off. Then, a counter reset signal CR is generated and the counter CNT is cleared to 0. In this way, the initialization is completed and the preparation for distance measurement is completed.

【0023】初期化の次に行われるのは予備測距であ
る。予備測距は、本測距の投光回数を決定するために行
われる。ここでCPU11は発光信号EMを発生し、投
光回路20はこの信号に応じてIRED21をパルス駆
動し、被写体に向けて投光を開始する。同時にカウント
アップ信号CUを発生し、カウンタCNTに1を加え
る。IRED21は点灯期間が0.1ミリ秒、消灯期間
が1.9ミリ秒の2ミリ秒周期で駆動される。IRED
21の点灯期間中にPSD31から出力される光電流は
遠側電流電圧変換回路32によって電圧に変換され、増
幅回路40によって増幅される。IRED21の点灯に
伴ってスイッチSiがオンし、消灯に伴ってオフするの
で、増幅回路40により増幅された信号は最終的には積
分回路50の積分コンデンサ53の端子間電圧に反映さ
れる。カウンタCNTが10になる、すなわちIRED
21が10回の投光を終えるとCPU11はスイッチ6
3をオンし、積分コンデンサ53の端子間電圧はスイッ
チ14aを通じてA/D変換器14に取り込まれる。A
/D変換器14はこの電圧をデジタルな値K1に変換し
てCPU11に出力する。
Preliminary distance measurement is performed after the initialization. Preliminary distance measurement is performed to determine the number of projections of the main distance measurement. Here, the CPU 11 generates a light emission signal EM, and the light projecting circuit 20 pulse-drives the IRED 21 in response to this signal to start light projecting toward the subject. At the same time, a count-up signal CU is generated and 1 is added to the counter CNT. The IRED 21 is driven in a 2-millisecond cycle in which the lighting period is 0.1 ms and the extinguishing period is 1.9 ms. IRED
The photocurrent output from the PSD 31 during the lighting period of 21 is converted into a voltage by the far-side current-voltage conversion circuit 32 and amplified by the amplification circuit 40. Since the switch Si is turned on when the IRED 21 is turned on and turned off when the IRED 21 is turned off, the signal amplified by the amplifier circuit 40 is finally reflected in the voltage across the terminals of the integration capacitor 53 of the integration circuit 50. Counter CNT becomes 10, ie IRED
When the 21 finishes projecting 10 times, the CPU 11 switches 6
3 is turned on, and the voltage between the terminals of the integrating capacitor 53 is taken into the A / D converter 14 through the switch 14a. A
The / D converter 14 converts this voltage into a digital value K1 and outputs it to the CPU 11.

【0024】続いてCPU11はスイッチSsを近側電
流電圧変換回路35側に、スイッチ14aを電圧ホロワ
69側にそれぞれオンし、積分コンデンサ53、61、
62にたまっている電荷を上述したように放電し、遠側
電流電圧変換回路32の場合と同様な動作を行い、PS
D31から出力される光電流を積分コンデンサ53の端
子間電圧に反映させる。IRED21が10回の発光を
終えるとCPU11はスイッチ65をオンし、積分コン
デンサ53の端子間電圧はスイッチ14aを通じてA/
D変換器14に取り込まれる。A/D変換器14はこの
電圧をデジタルな値K2に変換してCPU11に出力す
る。
Subsequently, the CPU 11 turns on the switch Ss on the near-side current-voltage conversion circuit 35 side and the switch 14a on the voltage follower 69 side, and the integration capacitors 53, 61,
The electric charge accumulated in 62 is discharged as described above, and the same operation as in the case of the far-side current-voltage conversion circuit 32 is performed.
The photocurrent output from D31 is reflected in the voltage across the terminals of the integrating capacitor 53. When the IRED 21 finishes emitting light 10 times, the CPU 11 turns on the switch 65, and the inter-terminal voltage of the integrating capacitor 53 becomes A / A through the switch 14a.
It is taken into the D converter 14. The A / D converter 14 converts this voltage into a digital value K2 and outputs it to the CPU 11.

【0025】A/D変換器14の出力は8ビットとし、
その出力値K1とK2はいずれも0から255までの整
数であるとする。
The output of the A / D converter 14 is 8 bits,
The output values K1 and K2 are both integers from 0 to 255.

【0026】いま、基準電圧を入力するスイッチ14b
には電源電圧Vddが接続されているので、電源電圧V
ddと接地電圧GNDの間が256等分される。
Now, the switch 14b for inputting the reference voltage
Since the power supply voltage Vdd is connected to the
256 is equally divided between dd and the ground voltage GND.

【0027】電源電圧Vddが5Vだった場合、A/D
変換器14のスイッチ14aからの入力が2.5Vなら
A/D変換回路14の出力値は「127」となり、入力
が4Vなら出力値は「203」である。K1とK2のう
ち大きい方の値をKとすると、CPU11は次の式
(1)に基づいて本測距での投光回数Nを決定する。
When the power supply voltage Vdd is 5V, A / D
If the input from the switch 14a of the converter 14 is 2.5V, the output value of the A / D conversion circuit 14 is "127", and if the input is 4V, the output value is "203". If the larger one of K1 and K2 is K, the CPU 11 determines the number of times N of light projection in the main distance measurement based on the following equation (1).

【0028】 N=(243−128)×10/(K−128) (1) この式で求められる値Nは、投光を重ねていったときに
遠側電流電圧変換回路32または近側電流電圧変換回路
35の出力する光電流によって上昇する積分コンデンサ
53の積分電圧の少なくとも一方が閾値電圧Vthに到
達する回数である。ここで閾値電圧Vthはあらかじめ
電源電圧Vddの約0.95倍に相当する電圧、A/D
変換器14の出力に直せば「243」に設定されてい
る。たとえば、値K1が電源電圧Vddの約0.54倍
すなわち「138」、値K2が電源電圧Vddの約0.
52倍すなわち「133」だったとすると、値K1の方
が大きいので、これを式(1)に代入すると、N=11
5となる。
N = (243−128) × 10 / (K−128) (1) The value N obtained by this equation is the far-side current-voltage conversion circuit 32 or the near-side current when light projection is repeated. This is the number of times that at least one of the integrated voltages of the integrating capacitor 53, which increases due to the photocurrent output from the voltage conversion circuit 35, reaches the threshold voltage Vth. Here, the threshold voltage Vth is a voltage equivalent to about 0.95 times the power supply voltage Vdd in advance, A / D
If it is corrected to the output of the converter 14, it is set to “243”. For example, the value K1 is about 0.54 times the power supply voltage Vdd, that is, “138”, and the value K2 is about 0.
If it is 52 times, that is, “133”, the value K1 is larger, so if this is substituted into the equation (1), N = 11.
It becomes 5.

【0029】このとき、被写体からの反射光が多過ぎ
て、10回の投光によって値K1または値K2のいずれ
かが電圧Vh(電源電圧Vddの0.75倍を超える電
圧、A/D変換器14の出力値では「192」)に達し
てしまう場合は、被写体が至近距離にあるものと判定
し、本測距を行わずにRAM11b中の至近フラグFc
をセットする。また被写体からの反射光が少な過ぎて、
値K1または値K2のいずれかが電圧Vl(電源電圧V
ddの0.51倍を超えない電圧、A/D変換器14の
出力値では「130」)を超えないときは、本測距に1
秒以上もかかることになり、現実的でないため、本測距
を行わずにRAM11b中の無限遠フラグFiをセット
する。
At this time, the amount of light reflected from the subject is too much, and either the value K1 or the value K2 becomes a voltage Vh (voltage exceeding 0.75 times the power supply voltage Vdd, A / D conversion by 10 times of light projection). When the output value of the instrument 14 reaches "192"), it is determined that the subject is at a close range, and the close range flag Fc in the RAM 11b is determined without performing the main range measurement.
Is set. Also, the light reflected from the subject is too small,
Either the value K1 or the value K2 is the voltage Vl (the power supply voltage V
If the voltage that does not exceed 0.51 times dd and the output value of the A / D converter 14 does not exceed “130”)
Since this takes more than a second and is not realistic, the infinity flag Fi in the RAM 11b is set without performing the main distance measurement.

【0030】本測距の投光回数の決定は、測距の精度を
確保するために必要である。多すぎると測距に時間がか
かってしまうと共に、積分中に積分電圧が電源電圧に達
してしまい正しい距離が得られない恐れがある。反対に
少なすぎるとノイズの影響を受けやすく、A/D変換誤
差が大きくなるため、精度が悪化してしまう。この値N
の算出をもって予備測距を終了する。
The determination of the number of projections of the main distance measurement is necessary to ensure the accuracy of distance measurement. If the amount is too large, it takes a long time to measure the distance, and the integrated voltage may reach the power supply voltage during the integration, and the correct distance may not be obtained. On the other hand, if the amount is too small, it is likely to be affected by noise and the A / D conversion error becomes large, resulting in deterioration of accuracy. This value N
The preliminary distance measurement is ended with the calculation of.

【0031】予備測距の次に行われるのが本測距であ
る。まずCPU11は再びスイッチSsを遠側電流電圧
変換回路32側に、スイッチ14aを電圧ホロワ68側
にオンする。そしてスイッチ54をオンして積分コンデ
ンサ53の電荷を放電した後、発光信号EMを発生し、
投光回路20はこの信号に応じてIRED21をN回に
わたりパルス駆動し、被写体に向けて投光を開始する。
IRED21の点灯および消灯時間は予備測距の場合と
同様である。IRED21の点灯期間中にPSD31か
ら出力される光電流は遠側電流電圧変換回路32によっ
て電圧に変換され、増幅回路40によって増幅される。
IRED21の点灯に伴ってスイッチSiがオンし、消
灯に伴ってオフするので、増幅回路40により増幅され
た信号は最終的には積分回路50の積分コンデンサ53
の端子間電圧に反映される。IRED21がN回の発光
を終えると、CPU11はスイッチ63およびスイッチ
64をオンする。これによりコンデンサ61にはアンプ
51の出力端子から電荷が供給され、コンデンサ61の
端子間電圧は積分コンデンサ53のそれと等しくなるま
で充電される。充電が終わるとCPU11は再びスイッ
チ63およびスイッチ64をオフする。
The main distance measurement is performed after the preliminary distance measurement. First, the CPU 11 turns on the switch Ss to the far side current-voltage conversion circuit 32 side and the switch 14a to the voltage follower 68 side again. Then, the switch 54 is turned on to discharge the charge of the integrating capacitor 53, and then the light emission signal EM is generated,
The light projecting circuit 20 pulse-drives the IRED 21 N times in response to this signal, and starts projecting light toward the subject.
The lighting and extinguishing times of the IRED 21 are the same as those in the preliminary distance measurement. The photocurrent output from the PSD 31 during the lighting period of the IRED 21 is converted into a voltage by the far-side current-voltage conversion circuit 32 and amplified by the amplification circuit 40.
Since the switch Si is turned on when the IRED 21 is turned on and turned off when the IRED 21 is turned off, the signal amplified by the amplifier circuit 40 is finally integrated by the integration capacitor 53 of the integration circuit 50.
It is reflected in the voltage between terminals. When the IRED 21 finishes emitting light N times, the CPU 11 turns on the switches 63 and 64. As a result, electric charge is supplied to the capacitor 61 from the output terminal of the amplifier 51, and the terminal voltage of the capacitor 61 is charged until it becomes equal to that of the integrating capacitor 53. When charging is completed, the CPU 11 turns off the switches 63 and 64 again.

【0032】続いてCPU11はスイッチSsを近側電
流電圧変換回路35側に、スイッチ14aを電圧ホロワ
69側にオンし、遠側電流電圧変換回路32の場合と同
様な動作を行う。IRED21がN回の発光を終える
と、CPU11はスイッチ65およびスイッチ66をオ
ンする。これによりコンデンサ62にはアンプ51の出
力端子から電荷が供給され、コンデンサ62の端子間電
圧は積分コンデンサ53のそれと等しくなるまで充電さ
れる。充電が終わるとCPU11は再びスイッチ65お
よびスイッチ66をオフする。
Subsequently, the CPU 11 turns on the switch Ss to the near side current-voltage converting circuit 35 side and the switch 14a to the voltage follower 69 side, and performs the same operation as in the case of the far side current-voltage converting circuit 32. When the IRED 21 finishes emitting light N times, the CPU 11 turns on the switches 65 and 66. As a result, electric charge is supplied to the capacitor 62 from the output terminal of the amplifier 51, and the terminal voltage of the capacitor 62 is charged until it becomes equal to that of the integrating capacitor 53. When charging is completed, the CPU 11 turns off the switches 65 and 66 again.

【0033】最後にCPU11はスイッチ14bを電圧
ホロワ69側にオンし、スイッチ67をオンする。
Finally, the CPU 11 turns on the switch 14b toward the voltage follower 69 and turns on the switch 67.

【0034】このスイッチング動作により、A/D変換
器14には基準電圧としてスイッチ14bを介してコン
デンサ61とコンデンサ62の和電圧が入力し、入力と
してはスイッチ14aを介してコンデンサ61の電圧が
入力する。
By this switching operation, the sum voltage of the capacitors 61 and 62 is input to the A / D converter 14 as a reference voltage via the switch 14b, and the voltage of the capacitor 61 is input as an input via the switch 14a. To do.

【0035】上述したようにA/D変換器14は8ビッ
トのデジタル信号を出力するのでその出力値は0から2
55までの整数となり、CPU11にはコンデンサ61
とコンデンサ62の和電圧に対するコンデンサ61の電
圧の電圧比Xが0から255までの整数で入力される。
Since the A / D converter 14 outputs an 8-bit digital signal as described above, its output value is 0 to 2
It becomes an integer up to 55, and the CPU 61 has a capacitor 61.
The voltage ratio X of the voltage of the capacitor 61 to the sum voltage of the capacitor 62 is input as an integer from 0 to 255.

【0036】ここで特筆すべきことは、コンデンサ61
とコンデンサ62の絶対電圧をそれぞれA/D変換器1
4で読み込むのではなく、電圧比Xとして読み込むの
で、投光回数が少なくともA/D変換器14の読み取り
誤差が少ないので、分解能が大きく取れることである。
What is noteworthy here is that the capacitor 61
And the absolute voltage of the capacitor 62 are respectively converted to the A / D converter 1
Since the voltage ratio X is read instead of reading in step 4, the number of times of light projection is at least small in the reading error of the A / D converter 14, and thus a large resolution can be obtained.

【0037】CPU11はあらかじめROM11aに記
憶されている図3に示すような電圧比Xと距離Dとの対
照表を使用して、被写体までの距離を求め、その結果に
したがってCPU11はモータ12aを制御し、鏡筒1
2bを合焦位置まで駆動する。最後に測距回路の電源を
オフして、このルーチンを抜ける。
The CPU 11 obtains the distance to the object using the comparison table of the voltage ratio X and the distance D as shown in FIG. 3 stored in the ROM 11a in advance, and the CPU 11 controls the motor 12a according to the result. And lens barrel 1
2b is driven to the in-focus position. Finally, the power of the distance measuring circuit is turned off, and this routine is exited.

【0038】以上が本実施例における回路の動作であ
る。予備測距の開始から本測距の終了までの一連の動作
の経過を図で表わすと図2のようになる。
The above is the operation of the circuit in this embodiment. The progress of a series of operations from the start of the preliminary distance measurement to the end of the main distance measurement is shown in FIG.

【0039】また、以上の測距動作を行う測距ルーチン
をフローチャートで表わすと図4〜図7のようになる。
まず、測距ルーチンのメインルーチンとなる図4から説
明する。
Further, the distance measuring routine for performing the above distance measuring operation is shown in FIGS. 4 to 7.
First, FIG. 4 which is the main routine of the distance measuring routine will be described.

【0040】測距ルーチンに入ると、CPU11は測距
回路の電源をオンし(#001)、続いて変数やフラグ
を初期化する(#002)。次に予備測距を行い値Nを
決定し(#003)、至近フラグFcの状態を確認し
(#004)、セットされていれば電圧比Rに0を代入
して(#005)、#009にジャンプする。#004
で至近フラグFcがセットされていなければ、無限遠フ
ラグFiの状態を確認し(#006)、セットされてい
れば電圧比Xに255を代入して(#007)、#00
9にジャンプする。至近フラグFcと無限遠フラグFi
とがともにセットされていなければ、本測距を行なって
電圧比Xを測定し(#008)。これから被写体までの
距離Dを決定し(#009)、これに基づいて鏡筒12
bを合焦位置に駆動する(#010)。最後に測距回路
の電源をオフし(#011)、このサブルーチンを抜
け、メインルーチンに戻って露出作動を行う。
When entering the distance measuring routine, the CPU 11 turns on the power source of the distance measuring circuit (# 001), and then initializes variables and flags (# 002). Next, preliminary distance measurement is performed to determine the value N (# 003), the state of the close proximity flag Fc is confirmed (# 004), and if set, 0 is assigned to the voltage ratio R (# 005), # Jump to 009. # 004
If the close-up flag Fc is not set at, the state of the infinity flag Fi is checked (# 006), and if it is set, 255 is assigned to the voltage ratio X (# 007), # 00.
Jump to 9. Closeness flag Fc and infinity flag Fi
If both and are not set, the main distance measurement is performed to measure the voltage ratio X (# 008). The distance D to the subject is determined (# 009), and based on this, the lens barrel 12
Drive b to the in-focus position (# 010). Finally, the power source of the distance measuring circuit is turned off (# 011), this subroutine is exited, and the process returns to the main routine to perform the exposure operation.

【0041】次に、図4の予備測距と本測距の各サブル
ーチン内での動作を図5、6、7を参照して説明する。
Next, the operation within each subroutine of the preliminary distance measurement and the main distance measurement of FIG. 4 will be described with reference to FIGS.

【0042】まず、予備測距のサブルーチンを図5に基
づいて説明する。予備測距のサブルーチンに入ると、C
PU11はまずスイッチ54をオンして積分コンデンサ
53にたまっている電荷を放電した後に再びこのスイッ
チをオフする(#101)、続いてスイッチSsを遠側
電流電圧変換回路32側にオン、スイッチ63をオン、
スイッチ14bを電源電圧Vdd側にオン、スイッチ1
4aを電圧ホロワ68側にオン、その他のスイッチをす
べてオフする(#102)。次にカウンタリセット信号
CRを発生してカウンタCNTを0にクリアする(#1
03)。
First, the preliminary distance measurement subroutine will be described with reference to FIG. When entering the subroutine for preliminary distance measurement, C
The PU 11 first turns on the switch 54 to discharge the charge accumulated in the integrating capacitor 53, and then turns off the switch again (# 101). Then, the switch Ss is turned on to the far-side current-voltage conversion circuit 32 side, and the switch 63 is turned on. Turn on the
Switch 14b is turned on to the power supply voltage Vdd side, switch 1
4a is turned on to the voltage follower 68 side, and all other switches are turned off (# 102). Next, a counter reset signal CR is generated to clear the counter CNT to 0 (# 1
03).

【0043】続いてCPU11は発光信号EMを発生し
て投光回路20を動作して投光を始め(#104)、投
光開始に伴う各アンプの立ち上り時間の確保と電源変動
の影響とを軽減するため、時間T1だけ待機する(#1
05)。スイッチ54をオンし積分動作をしながら(#
106)、時間T2だけ待機する。この間積分コンデン
サ53には電荷が貯えられる(#107)。それから投
光回路20の動作を止めて投光動作を終了し、スイッチ
54をオフし積分動作を終えて(#108)、時間T3
だけ待機した後に(#109)、カウントアップ信号C
Uを発生してカウンタCNTに1を加える(#11
0)。以上#104〜#110の動作はカウンタCNT
が10になるまで繰り返される。カウンタCNTが10
になったら(#111)、CPU11はA/D変換器1
4を通じて電圧ホロワ68の積分電圧Vintを読み込
み、積分電圧Vintが電圧Vh以上であれば(#11
2)、至近フラグFcを(#113)、さらに積分電圧
Vintが電圧Vl以下であれば(#114)、無限遠
フラグFi(#115)を、それぞれセットして、スイ
ッチ63をオフし(#116)、このサブルーチンを抜
ける。
Subsequently, the CPU 11 generates the light emission signal EM to operate the light projecting circuit 20 to start light projecting (# 104), and secures the rise time of each amplifier accompanying the start of light projecting and the influence of power fluctuation. Wait for time T1 to reduce it (# 1
05). While turning on the switch 54 and performing the integration operation (#
106), and waits for time T2. During this time, the electric charge is stored in the integrating capacitor 53 (# 107). Then, the operation of the light projecting circuit 20 is stopped, the light projecting operation is completed, the switch 54 is turned off, and the integration operation is completed (# 108).
After waiting for only (# 109), the count-up signal C
U is generated and 1 is added to the counter CNT (# 11
0). The above operations of # 104 to # 110 are performed by the counter CNT.
Is repeated until 10. Counter CNT is 10
When it becomes (# 111), the CPU 11 makes the A / D converter 1
4, the integrated voltage Vint of the voltage follower 68 is read, and if the integrated voltage Vint is equal to or higher than the voltage Vh (# 11
2) If the close-up flag Fc is set to (# 113) and the integrated voltage Vint is equal to or lower than the voltage Vl (# 114), the infinity flag Fi (# 115) is set and the switch 63 is turned off (#). 116), exit this subroutine.

【0044】積分電圧Vintが電圧Vl以上電圧Vh
以下ならば、CPU11はスイッチ54をオンして積分
コンデンサ53にたまっている電荷を放電した後に再び
このスイッチをオフする(#117)。続いてCPU1
1はスイッチSsを近側電流電圧変換回路35側にオン
する(#118)。次にカウンタリセット信号CRを発
生してカウンタCNTを0にクリアし、スイッチ54を
オンし、積分コンデンサ53にたまっている電荷を放電
させてから、スイッチ54をオフする(#119)。
Integrated voltage Vint is voltage Vl or more and voltage Vh
In the following case, the CPU 11 turns on the switch 54 to discharge the electric charge accumulated in the integrating capacitor 53, and then turns off the switch again (# 117). Then CPU1
1 turns on the switch Ss to the near-side current-voltage conversion circuit 35 side (# 118). Next, the counter reset signal CR is generated to clear the counter CNT to 0, the switch 54 is turned on to discharge the electric charge accumulated in the integrating capacitor 53, and then the switch 54 is turned off (# 119).

【0045】続いてCPU11は発光信号EMを発生し
て投光回路20を動作して投光を始め(#120)、時
間T1だけ待機すると(#121)、スイッチ54をオ
ンし積分動作をしながら(#122)、時間T2だけ待
機する(#123)。この間積分コンデンサ53には電
荷が貯えられる。それから投光回路20の動作を止めて
投光動作を終了し(#124)、スイッチ54をオフし
積分動作を終えて、時間T3だけ待機した後に(#12
5)、カウントアップ信号CUを発生してカウンタCN
Tに1を加える(#126)。以上#120〜#126
の動作はカウンタCNTが10になるまで繰り返される
(#127)。カウンタCNTが10になったら、CP
U11はA/D変換器14を通じて電圧ホロワ68の積
分電圧Vintを読み込む。ここで積分電圧Vintが
電圧Vh以上であれば(#128)、至近フラグFcを
(#129)、さらに積分電圧Vintが電圧Vl以下
であれば(#130)、無限遠フラグFiを(#13
1)、それぞれセットし、スイッチ63をオフし(#1
32)、測距ルーチンに戻る。積分電圧Vintが電圧
Vl以上電圧Vh以下ならば、既出の式(1)に基づい
て値Nを算出し(#133)、このサブルーチンを抜け
る。
Subsequently, the CPU 11 generates a light emission signal EM to operate the light projecting circuit 20 to start light projecting (# 120), and after waiting for a time T1 (# 121), turns on the switch 54 to perform an integrating operation. While waiting (# 122), it waits for the time T2 (# 123). During this time, the electric charge is stored in the integrating capacitor 53. Then, the operation of the light projecting circuit 20 is stopped to end the light projecting operation (# 124), the switch 54 is turned off to complete the integrating operation, and after waiting for the time T3 (# 12).
5) Generate counter CU and generate counter CN
Add 1 to T (# 126). Above # 120- # 126
The above operation is repeated until the counter CNT reaches 10 (# 127). When the counter CNT reaches 10, CP
U11 reads the integrated voltage Vint of the voltage follower 68 through the A / D converter 14. If the integrated voltage Vint is equal to or higher than the voltage Vh (# 128), the closest flag Fc (# 129) is set. If the integrated voltage Vint is equal to or lower than the voltage Vl (# 130), the infinity flag Fi is set to (# 13).
1), set each, and turn off the switch 63 (# 1
32) and returns to the distance measurement routine. If the integrated voltage Vint is equal to or higher than the voltage Vl and equal to or lower than the voltage Vh, the value N is calculated based on the above-mentioned equation (1) (# 133), and this subroutine is exited.

【0046】次に、本測距のサブルーチンを図7に基づ
いて説明する。本測距のサブルーチンがコールされる
と、CPU11はまずスイッチ54、63、64、6
5、66をオンして積分コンデンサ53、61、62に
たまっている電荷をそれぞれ放電した後に再びこれらの
スイッチをオフする(#201)。次に、スイッチSs
を遠側電流電圧変換回路32側に、スイッチ14bを電
源電圧Vdd側に、スイッチ14aを電圧ホロワ68側
にそれぞれオンし、その他のスイッチをオフする(#2
02)。さらにカウンタリセット信号CRを発生して、
カウンタCNTを0にクリアする(#203)。
Next, the main distance measurement subroutine will be described with reference to FIG. When the main distance measurement subroutine is called, the CPU 11 firstly switches 54, 63, 64, 6
The switches 5 and 66 are turned on to discharge the charges accumulated in the integrating capacitors 53, 61 and 62, and then these switches are turned off again (# 201). Next, the switch Ss
To the far-side current / voltage conversion circuit 32 side, the switch 14b to the power supply voltage Vdd side, the switch 14a to the voltage follower 68 side, and the other switches to off (# 2).
02). Further, by generating a counter reset signal CR,
The counter CNT is cleared to 0 (# 203).

【0047】続いて測距動作に移る。最初にCPU11
は投光回路20を駆動し、投光を開始する(#20
4)。投光開始に伴う各アンプの立ち上り時間の確保と
電源変動の影響とを軽減するため、時間T1だけ待機し
た後(#205)、スイッチSiをオンして積分動作を
開始し(#206)、時間T2だけ待機する(#20
7)。この間積分コンデンサ53には電荷が貯えられ
る。時間T2だけ経過すると投光回路20の動作を止め
て投光動作を終了し、スイッチSiをオフして、積分動
作を終了する(#208)。それから時間T3だけ待機
し(#209)、カウントアップ信号CUを発生してカ
ウンタCNTに1を加算する(#210)。ここでカウ
ンタCNTが値Nに達しているかどうかを判定し(#2
11)、値N未満ならば#204にジャンプする。カウ
ンタCNTが値Nに達していれば、CPU11はスイッ
チ63、64をオンし、積分コンデンサ61を積分コン
デンサ53と同じ電圧に充電し、その後スイッチ63、
64をオフし、スイッチ54をオンして積分コンデンサ
53にたまっている電荷を放電した後に再びスイッチ5
4をオフする(#212)。次に、スイッチSsを近側
電流電圧変換回路35側に、スイッチ14bを電源電圧
Vdd側に、スイッチ14aを電圧ホロワ69側にそれ
ぞれオンし、その他のスイッチをオフする(#21
3)。さらにカウンタリセット信号CRを発生して、カ
ウンタCNTを0にクリアする(#214)。
Subsequently, the distance measuring operation is started. CPU11 first
Drives the light projecting circuit 20 to start light projecting (# 20
4). In order to secure the rise time of each amplifier due to the start of light emission and reduce the influence of power supply fluctuation, after waiting for time T1 (# 205), switch Si is turned on to start the integration operation (# 206). Wait for time T2 (# 20
7). During this time, the electric charge is stored in the integrating capacitor 53. After a lapse of time T2, the operation of the light projecting circuit 20 is stopped, the light projecting operation is completed, the switch Si is turned off, and the integrating operation is completed (# 208). Then, it waits for time T3 (# 209), generates a count-up signal CU, and adds 1 to the counter CNT (# 210). Here, it is determined whether or not the counter CNT has reached the value N (# 2
11) If less than the value N, jump to # 204. If the counter CNT reaches the value N, the CPU 11 turns on the switches 63 and 64, charges the integrating capacitor 61 to the same voltage as the integrating capacitor 53, and then switches 63,
After turning off the switch 64 and turning on the switch 54 to discharge the electric charge accumulated in the integrating capacitor 53, the switch 5 is turned on again.
4 is turned off (# 212). Next, the switch Ss is turned on to the near-side current-voltage conversion circuit 35 side, the switch 14b is turned to the power supply voltage Vdd side, the switch 14a is turned to the voltage follower 69 side, and the other switches are turned off (# 21).
3). Further, a counter reset signal CR is generated to clear the counter CNT to 0 (# 214).

【0048】続いて、CPU11は投光回路20を駆動
し、投光を開始する(#215)。投光開始に伴う各ア
ンプの立ち上り時間の確保と電源変動の影響とを軽減す
るため、時間T1だけ待機した後(#216)、スイッ
チSiをオンして積分動作を開始し(#217)、時間
T2だけ待機する(#218)。この間積分コンデンサ
53には電荷が貯えられる。時間T2だけ経過すると投
光回路20の動作を止めて投光動作を終了し、スイッチ
Siをオフして、積分動作を終了する(#219)。そ
れから時間T3だけ待機し(#220)、カウントアッ
プ信号CUを発生してカウンタCNTに1を加算する
(#221)。ここでカウンタCNTが値Nに達してい
るかどうかを判定し(#222)、値N未満ならば#2
15にジャンプする。カウンタCNTが値Nに達してい
れば、CPU11はスイッチ65、66をオンし、積分
コンデンサ62を積分コンデンサ53と同じ電圧に充電
し、その後スイッチ65とスイッチ66とをオフし、ス
イッチ14aを電圧ホロワ68側にスイッチ14bを電
圧ホロワ69側にオンし、さらにスイッチ67をオンす
る。これにより、A/D変換器14には基準電圧として
スイッチ14bを介してコンデンサ61とコンデンサ6
2の和電圧が入力し、入力としてはスイッチ14aを介
してコンデンサ61の電圧が入力する。
Subsequently, the CPU 11 drives the light projecting circuit 20 to start light projecting (# 215). In order to secure the rise time of each amplifier due to the start of light emission and reduce the influence of power supply fluctuation, after waiting for time T1 (# 216), switch Si is turned on to start the integration operation (# 217). Wait for time T2 (# 218). During this time, the electric charge is stored in the integrating capacitor 53. After a lapse of time T2, the operation of the light projecting circuit 20 is stopped, the light projecting operation is terminated, the switch Si is turned off, and the integrating operation is terminated (# 219). Then, it waits for time T3 (# 220), generates a count-up signal CU, and adds 1 to the counter CNT (# 221). Here, it is determined whether or not the counter CNT has reached the value N (# 222).
Jump to 15. If the counter CNT has reached the value N, the CPU 11 turns on the switches 65 and 66, charges the integrating capacitor 62 to the same voltage as the integrating capacitor 53, then turns off the switches 65 and 66, and turns on the switch 14a. The switch 14b is turned on to the voltage follower 69 side on the follower 68 side, and the switch 67 is further turned on. As a result, the A / D converter 14 uses the capacitor 61 and the capacitor 6 as a reference voltage via the switch 14b.
The sum voltage of 2 is input, and the voltage of the capacitor 61 is input as an input via the switch 14a.

【0049】上述したようにA/D変換器14は8ビッ
トのデジタル信号を出力するのでその出力値は0から2
55までの整数となり、CPU11にはコンデンサ61
とコンデンサ62の和電圧に対するコンデンサ61の電
圧の電圧比Xが0から255までの整数で入力される
(#223)。最後にスイッチ67をオフし(#22
4)、このサブルーチンを抜ける。
As described above, since the A / D converter 14 outputs an 8-bit digital signal, its output value is 0 to 2
It becomes an integer up to 55, and the CPU 61 has a capacitor 61.
And the voltage ratio X of the voltage of the capacitor 61 to the sum voltage of the capacitor 62 is input as an integer from 0 to 255 (# 223). Finally, turn off the switch 67 (# 22
4) Exit this subroutine.

【0050】以上の測距ルーチンおよびそのサブルーチ
ンにより、被写体までの距離が測定され、鏡筒12bが
合焦位置に駆動される。
The distance to the object is measured by the above distance measuring routine and its subroutine, and the lens barrel 12b is driven to the in-focus position.

【0051】なお本実施例では積分コンデンサ53とコ
ンデンサ61、コンデンサ62は別に設けているが、図
8に示すように、図1のコンデンサ61、コンデンサ6
2に対応するコンデンサ73、コンデンサ74をスイッ
チ75〜79によって切り換えて直接積分コンデンサと
して使用することもできる。
Although the integrating capacitor 53, the capacitor 61 and the capacitor 62 are separately provided in this embodiment, as shown in FIG. 8, the capacitor 61 and the capacitor 6 of FIG.
It is also possible to switch the capacitors 73 and 74 corresponding to No. 2 by switches 75 to 79 and use them directly as integration capacitors.

【0052】また、本実施例ではスイッチSsによって
遠側電流電圧変換回路32と35とを切り換えて処理し
ているが、増幅回路40と積分回路50とを遠側電流電
圧変換回路32と35に対応されて1対設ければ、被写
体からの反射光を独立に処理できるため、測距時間がほ
ぼ半分になる。
Further, in the present embodiment, the far side current / voltage converting circuits 32 and 35 are switched and processed by the switch Ss, but the amplifying circuit 40 and the integrating circuit 50 are replaced by the far side current / voltage converting circuits 32 and 35. If one pair is provided correspondingly, the reflected light from the subject can be processed independently, so that the distance measurement time is halved.

【0053】さらに、本実施例では測距終了時のA/D
変換器14の基準電圧をコンデンサ61とコンデンサ6
2の和電圧としてコンデンサ61の電圧を読んでいる
が、コンデンサ61とコンデンサ62のうち電圧の大き
い一方を基準電圧として他方の電圧を読んでもよく、こ
れによりさらに精度の向上が期待できる。なお、この場
合A/D変換器14の出力値Xと距離Dの対照表を新た
に設けることはいうまでもない。この場合、例えば図9
のようにCPU11がコンデンサ61とコンデンサ62
の電圧の大きさを比較し、その大小結果によりスイッチ
14a、14cを制御するようにすればよい。
Further, in this embodiment, A / D at the end of distance measurement
The reference voltage of the converter 14 is the capacitor 61 and the capacitor 6
Although the voltage of the capacitor 61 is read as the sum voltage of two, one of the capacitors 61 and 62 having the larger voltage may be used as the reference voltage and the other voltage may be read, whereby further improvement in accuracy can be expected. In this case, it goes without saying that a comparison table of the output value X of the A / D converter 14 and the distance D is newly provided. In this case, for example, FIG.
As shown in FIG.
It is only necessary to compare the magnitudes of the voltages and to control the switches 14a and 14c according to the magnitude result.

【0054】また、上記の例では投光手段の所望の投光
動作として所望の投光回数を用いたが、これに限らず、
所望時間だけ投光を継続する動作としてもよい。
In the above example, the desired number of times of light projection is used as the desired light projection operation of the light projecting means, but the invention is not limited to this.
The operation may be such that light emission is continued for a desired time.

【0055】[0055]

【発明の効果】本発明によれば、増幅器のゲインを決定
する動作を不要にできるとともに回路の規模を小さくで
き、高速で高精度な測距を行うことができる。
According to the present invention, the operation for determining the gain of the amplifier can be eliminated, the circuit scale can be reduced, and high-speed and highly accurate distance measurement can be performed.

【0056】第1と第2のコンデンサの端子間電圧の大
小関係に応じたデジタル信号として、それぞれの和電圧
といずれか一方の端子間電圧の比を用いれば、2つのコ
ンデンサの端子間電圧の大小関係を検出する必要がな
く、動作時間を短縮できる。
If the ratio of the sum voltage of each of the first and second capacitors and the voltage of one of the terminals is used as the digital signal according to the magnitude relation of the voltage of the terminals of the two capacitors, the voltage between the terminals of the two capacitors is calculated. It is not necessary to detect the magnitude relationship, and the operation time can be shortened.

【0057】また、第1と第2のコンデンサの端子間電
圧の大小関係に応じたデジタル信号として、それぞれの
コンデンサの端子間電圧の比を用いれば、端子間電圧比
の読み取り精度が高くなる。
If the ratio of the terminal voltage of each capacitor is used as the digital signal according to the magnitude relation of the terminal voltage of the first and second capacitors, the reading accuracy of the terminal voltage ratio becomes high.

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

【図1】本発明の実施例を示した回路図。FIG. 1 is a circuit diagram showing an embodiment of the present invention.

【図2】図1の測距時の一連の動作を説明する図。FIG. 2 is a diagram illustrating a series of operations during distance measurement in FIG.

【図3】図1のROM上のテーブルを示した説明図。FIG. 3 is an explanatory diagram showing a table on the ROM of FIG. 1.

【図4】図1の動作を示すフローチャート。FIG. 4 is a flowchart showing the operation of FIG. 1;

【図5】図4の予備測距の部分のサブルーチンを示すフ
ローチャートの前半。
5 is a first half of a flowchart showing a subroutine of a preliminary distance measurement portion of FIG.

【図6】図4の予備測距の部分のサブルーチンを示すフ
ローチャートの後半。
6 is the second half of the flowchart showing the subroutine of the preliminary distance measurement portion of FIG.

【図7】図4の本測距の部分のサブルーチンを示すフロ
ーチャート。
FIG. 7 is a flowchart showing a subroutine of a main distance measuring portion in FIG.

【図8】本発明の他の実施例の回路図。FIG. 8 is a circuit diagram of another embodiment of the present invention.

【図9】本発明の他の実施例の回路図。FIG. 9 is a circuit diagram of another embodiment of the present invention.

【符号の説明】[Explanation of symbols]

11 制御手段 14 A/D変換器 20 投光手段 31 受光素子 32 第1の電流電圧変換回路 35 第2の電流電圧変換回路 40 増幅回路 50 積分回路 61 第1のコンデンサ 62 第2のコンデンサ Ss 選択手段 63〜66 コンデンサ選択手段 11 Control means 14 A / D converter 20 Light emitting means 31 Light receiving element 32 First current-voltage conversion circuit 35 Second current-voltage conversion circuit 40 Amplifying circuit 50 Integrating circuit 61 First capacitor 62 Second capacitor Ss selection Means 63 to 66 Capacitor selecting means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 被写体に対し測定光を投光する投光手段
と、 前記測定光が前記被写体によって反射された反射光を受
光する受光素子と、 前記受光素子の一対の出力電流をそれぞれ電圧に変換す
る第1および第2の電流電圧変換回路と、 前記第1および第2の電流電圧変換回路の出力を増幅す
る増幅回路と、 前記増幅回路の出力を積分する積分回路と、 前記投光手段の所望の投光動作における前記第1の電流
電圧変換回路の出力に応じた前記積分回路の出力を記憶
する第1のコンデンサと、 前記投光手段の前記所望の投光動作における前記第2の
電流電圧変換回路の出力に応じた前記積分回路の出力を
記憶する第2のコンデンサと、 前記第1および第2のコンデンサの端子間電圧を入力
し、その大小関係に応じたデジタル信号を出力するA/
D変換器と、 前記デジタル信号に基づいて撮影レンズを駆動する制御
手段とを有することを特徴とするカメラ用測距装置。
1. A light projecting means for projecting measuring light onto a subject, a light receiving element for receiving reflected light in which the measuring light is reflected by the subject, and a pair of output currents of the light receiving element are respectively converted into voltages. First and second current-voltage converting circuits for converting, an amplifying circuit for amplifying outputs of the first and second current-voltage converting circuits, an integrating circuit for integrating outputs of the amplifying circuits, and the light projecting means A first capacitor for storing the output of the integration circuit according to the output of the first current-voltage conversion circuit in the desired light projecting operation, and the second capacitor in the desired light projecting operation of the light projecting means. A second capacitor that stores the output of the integration circuit according to the output of the current-voltage conversion circuit and the voltage between the terminals of the first and second capacitors are input, and a digital signal according to the magnitude relationship is output. A
A distance measuring device for a camera, comprising a D converter and a control means for driving a taking lens based on the digital signal.
【請求項2】 被写体に対し測定光を投光する投光手段
と、 前記測定光が前記被写体によって反射された反射光を受
光する受光素子と、 前記受光素子の一対の出力電流をそれぞれ電圧に変換す
る第1および第2の電流電圧変換回路と、 前記第1および第2の電流電圧変換回路の出力の一方を
選択する選択手段と、 前記選択手段によって選択された前記第1および第2の
電流電圧変換回路の出力を増幅する増幅回路と、 前記増幅回路の出力を積分する積分回路と、 前記選択手段によって前記第1の電流電圧変換回路が選
択されているときに前記積分回路の出力を記憶する第1
のコンデンサと、 前記選択手段によって前記第2の電流電圧変換回路が選
択されているときに前記積分回路の出力を記憶する第2
のコンデンサと、 前記第1および第2のコンデンサの端子間電圧を入力
し、その大小関係に応じたデジタル信号を出力するA/
D変換器と、 前記デジタル信号に基づいて撮影レンズを駆動する制御
手段とを有することを特徴とするカメラ用測距装置。
2. A light projecting means for projecting measuring light onto a subject, a light receiving element for receiving reflected light of the measuring light reflected by the subject, and a pair of output currents of the light receiving element respectively set to voltages. First and second current-voltage conversion circuits for conversion, selection means for selecting one of outputs of the first and second current-voltage conversion circuits, and the first and second current-voltage conversion circuits selected by the selection means An amplifier circuit that amplifies the output of the current-voltage conversion circuit, an integration circuit that integrates the output of the amplifier circuit, and an output of the integration circuit when the first current-voltage conversion circuit is selected by the selection means. First to remember
And a second storage means for storing the output of the integration circuit when the second current-voltage conversion circuit is selected by the selection means.
And a voltage between the terminals of the first and second capacitors are input, and a digital signal corresponding to the magnitude relation is output A /
A distance measuring device for a camera, comprising a D converter and a control means for driving a taking lens based on the digital signal.
【請求項3】 被写体に対し測定光を投光する投光手段
と、 前記測定光が前記被写体によって反射された反射光を受
光する受光素子と、 前記受光素子の一対の出力電流をそれぞれ電圧に変換す
る第1および第2の電流電圧変換回路と、 前記第1および第2の電流電圧変換回路の出力の一方を
選択する選択手段と、前記選択手段によって選択された
前記第1および第2の電流電圧変換回路の出力を増幅す
る増幅回路と、 第1および第2のコンデンサと、 前記選択手段によって第1の電流電圧変換回路が選択さ
れているときに前記第1のコンデンサを選択し前記選択
手段によって第2の電流電圧変換回路が選択されている
ときに前記第2のコンデンサを選択するコンデンサ選択
手段と、 前記コンデンサ選択手段によって選択されたコンデンサ
を積分コンデンサとして前記増幅回路の出力を積分する
積分回路と、 前記第1および第2のコンデンサの端子間電圧を入力
し、その大小関係に応じたデジタル信号を出力するA/
D変換器と、 前記デジタル信号に基づいて撮影レンズを駆動する制御
手段とを有することを特徴とするカメラ用測距装置。
3. A light projecting means for projecting measuring light onto a subject, a light receiving element for receiving reflected light of the measuring light reflected by the subject, and a pair of output currents of the light receiving element respectively set to voltages. First and second current-voltage converting circuits for converting, selecting means for selecting one of outputs of the first and second current-voltage converting circuits, and the first and second current-voltage converting circuits selected by the selecting means. An amplifier circuit for amplifying the output of the current-voltage conversion circuit, first and second capacitors, and the first capacitor is selected when the first current-voltage conversion circuit is selected by the selection means. A capacitor selecting means for selecting the second capacitor when the second current-voltage conversion circuit is selected by the means; and a capacitor selected by the capacitor selecting means. An integrating circuit that integrates the output of the amplifying circuit as an integrating capacitor, and the voltage between the terminals of the first and second capacitors are input, and A / that outputs a digital signal according to the magnitude relation
A distance measuring device for a camera, comprising a D converter and a control means for driving a taking lens based on the digital signal.
【請求項4】 請求項1、2または3において、前記A
/D変換器は、前記第1および第2のコンデンサの端子
間電圧の和電圧と前記第1または第2のコンデンサの端
子間電圧との比をデジタル信号として出力するものであ
ることを特徴とするカメラ用測距装置。
4. The A according to claim 1, 2 or 3.
The / D converter outputs a ratio of a sum voltage of terminals of the first and second capacitors and a terminal voltage of the first or second capacitor as a digital signal. Distance measuring device for cameras.
【請求項5】 請求項1、2または3において、前記A
/D変換器は、第1および第2のコンデンサの端子間電
圧の比をデジタル信号として出力するものであることを
特徴とするカメラ用測距装置。
5. The A according to claim 1, 2 or 3.
The / D converter outputs the ratio of the voltage between the terminals of the first and second capacitors as a digital signal.
JP6825696A 1996-03-25 1996-03-25 Distance-measuring apparatus for camera Abandoned JPH09257469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6825696A JPH09257469A (en) 1996-03-25 1996-03-25 Distance-measuring apparatus for camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6825696A JPH09257469A (en) 1996-03-25 1996-03-25 Distance-measuring apparatus for camera

Publications (1)

Publication Number Publication Date
JPH09257469A true JPH09257469A (en) 1997-10-03

Family

ID=13368504

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6825696A Abandoned JPH09257469A (en) 1996-03-25 1996-03-25 Distance-measuring apparatus for camera

Country Status (1)

Country Link
JP (1) JPH09257469A (en)

Similar Documents

Publication Publication Date Title
US4935613A (en) Light projecting type distance measuring apparatus
JP3051032B2 (en) Distance measuring device
JP3337868B2 (en) Camera ranging device
JPH09257469A (en) Distance-measuring apparatus for camera
US6501085B2 (en) Distance-measuring apparatus
JP3051031B2 (en) Distance measuring device
JP3058709B2 (en) Distance measuring and photometric devices
JP3122676B2 (en) Distance measuring device
JP3163405B2 (en) Camera ranging device
JP2888492B2 (en) Distance information output device
JP3482097B2 (en) Distance measuring device
JP3749639B2 (en) Ranging device
JP3001289B2 (en) Auto focus camera
JP2942593B2 (en) Subject distance detection device
JP3234304B2 (en) Active autofocus device
JP3234999B2 (en) Camera ranging device
JP3135159B2 (en) Focus adjustment device
JP3389406B2 (en) Camera ranging device
JP3447509B2 (en) Distance measuring device
JP3817097B2 (en) Ranging device
JPH06249650A (en) Range finder for camera
JP2000162496A (en) Distance measuring equipment
JP3214991B2 (en) Distance measuring device
JP3361179B2 (en) Camera ranging device
JPH05232375A (en) Range finder

Legal Events

Date Code Title Description
A977 Report on retrieval

Effective date: 20041222

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20051215

Free format text: JAPANESE INTERMEDIATE CODE: A131

A762 Written abandonment of application

Effective date: 20060112

Free format text: JAPANESE INTERMEDIATE CODE: A762