JP3321336B2 - Camera ranging device - Google Patents

Camera ranging device

Info

Publication number
JP3321336B2
JP3321336B2 JP15944195A JP15944195A JP3321336B2 JP 3321336 B2 JP3321336 B2 JP 3321336B2 JP 15944195 A JP15944195 A JP 15944195A JP 15944195 A JP15944195 A JP 15944195A JP 3321336 B2 JP3321336 B2 JP 3321336B2
Authority
JP
Japan
Prior art keywords
voltage
circuit
light
variable
current
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 - Fee Related
Application number
JP15944195A
Other languages
Japanese (ja)
Other versions
JPH0886956A (en
Inventor
浩幸 斉藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Precision Inc
Original Assignee
Seiko Precision Inc
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 Seiko Precision Inc filed Critical Seiko Precision Inc
Priority to JP15944195A priority Critical patent/JP3321336B2/en
Priority to GB9514857A priority patent/GB2291552B/en
Publication of JPH0886956A publication Critical patent/JPH0886956A/en
Application granted granted Critical
Publication of JP3321336B2 publication Critical patent/JP3321336B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/46Indirect determination of position data
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals
    • G02B7/30Systems for automatic generation of focusing signals using parallactic triangle with a base line
    • G02B7/32Systems for automatic generation of focusing signals using parallactic triangle with a base line using active means, e.g. light emitter

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Optics & Photonics (AREA)
  • Automatic Focus Adjustment (AREA)
  • Measurement Of Optical Distance (AREA)
  • Focusing (AREA)

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 such as a camera.

【0002】[0002]

【従来の技術】従来から積分回路を使った投受光タイプ
のさまざまな測距装置が提案されているが、これらは投
光回路を動作させ、その積分電圧が所定の電圧を越える
までの投光回数あるいは時間を計測することで被写体ま
での距離を算出していた。
2. Description of the Related Art Conventionally, various distance measuring devices of a light emitting / receiving type using an integrating circuit have been proposed. These devices operate a light emitting circuit and emit light until the integrated voltage exceeds a predetermined voltage. The distance to the subject is calculated by measuring the number of times or the time.

【0003】図14に従来の測距装置の構成を示す。増
幅回路140はゲイン切換の可能な増幅回路である。増
幅回路140の前にはコンデンサ105が接続され、入
力信号の直流分はここでカットされる。増幅回路140
はアンプ141と入力抵抗142および3個の帰還抵抗
143〜145で構成された、入力信号をある一定のゲ
インで増幅する回路である。回路中にスイッチ146と
スイッチ147という2つのスイッチを持っており、こ
れらのスイッチは演算回路(以下CPUという)180
によってオンまたはオフを制御できる。スイッチ146
は帰還抵抗145を、スイッチ147は帰還抵抗144
と145とをそれぞれオンまたはオフするので、これら
のスイッチの状態によりアンプ141のゲインが段階的
に設定できる。ゲインは、スイッチ147がオンしてい
れば1倍、スイッチ146のみがオンしていれば2倍、
スイッチ146とスイッチ147とが共にオフしていれ
ば4倍となる。したがって信号電流から電圧への変換
も、この設定されたゲインに応じて行われ、後段の回路
に出力される。増幅回路140の出力にはコンデンサ1
06を介して増幅回路150が接続されている。
FIG. 14 shows a configuration of a conventional distance measuring apparatus. The amplifier circuit 140 is an amplifier circuit that can switch the gain. The capacitor 105 is connected before the amplifier circuit 140, and the direct current component of the input signal is cut here. Amplifier circuit 140
Is a circuit composed of an amplifier 141, an input resistor 142, and three feedback resistors 143 to 145, and amplifies an input signal with a certain gain. The circuit has two switches, a switch 146 and a switch 147, and these switches are operated by an arithmetic circuit (hereinafter referred to as a CPU) 180.
Can be turned on or off. Switch 146
Is the feedback resistor 145, and the switch 147 is the feedback resistor 144.
And 145 are turned on or off, respectively, so that the gain of the amplifier 141 can be set stepwise according to the state of these switches. The gain is 1 × when the switch 147 is on, 2 × when only the switch 146 is on,
If both the switch 146 and the switch 147 are off, the power becomes four times. Therefore, the conversion from the signal current to the voltage is also performed according to the set gain, and is output to the subsequent circuit. The output of the amplifier circuit 140 has a capacitor 1
The amplifier circuit 150 is connected via a line 06.

【0004】増幅回路150も増幅回路140と同様に
アンプ151と3個の帰還抵抗153〜155で構成さ
れており、スイッチ156は帰還抵抗155を、スイッ
チ157は帰還抵抗154と155とをそれぞれオンま
たはオフするので、CPU180はスイッチ156と1
57を操作して適切なゲインを設定し、それにしたがっ
て増幅回路140の出力した信号の増幅が行われる。以
上からもわかるように、増幅回路140と増幅回路15
0を組み合わせると、第1の電流電圧変換回路120ま
たは第2の電流電圧変換回路130の出力信号の交流分
を1、2、4、8、16倍の5段階のゲインで増幅でき
る。
The amplifying circuit 150 also includes an amplifier 151 and three feedback resistors 153 to 155, similarly to the amplifying circuit 140. A switch 156 turns on the feedback resistor 155, and a switch 157 turns on the feedback resistors 154 and 155. Alternatively, the CPU 180 turns off the switches 156 and 1
An appropriate gain is set by operating 57, and the signal output from the amplifier circuit 140 is amplified accordingly. As can be seen from the above, the amplification circuit 140 and the amplification circuit 15
When 0 is combined, the AC component of the output signal of the first current-to-voltage conversion circuit 120 or the second current-to-voltage conversion circuit 130 can be amplified with five gains of 1, 2, 4, 8, and 16 times.

【0005】[0005]

【発明が解決しようとする課題】ところが前記のような
測距装置では、ゲイン設定のためのスイッチを増幅回路
内に設け、しかもCPUがこれらを制御するための制御
線を必要とするため、回路規模が増大していた。またこ
の例ではゲインは5段階に制御できるが、設定可能なゲ
インの数を増やすためには、さらに多くの抵抗・スイッ
チ・制御線を必要とする。これらの回路は集積回路上に
形成されることが多いため、スペース的にもコスト的に
も非常に不利になっていた。
However, in the distance measuring apparatus as described above, a switch for setting a gain is provided in an amplifier circuit, and a control line for controlling the CPU is required. The scale was increasing. Further, in this example, the gain can be controlled in five stages, but in order to increase the number of settable gains, more resistors, switches, and control lines are required. Since these circuits are often formed on an integrated circuit, they are very disadvantageous in terms of space and cost.

【0006】そこで本発明の目的は、増幅回路のゲイン
設定手段と、それにかかわるCPUの制御線を必要とし
ないカメラ用測距装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a distance measuring device for a camera which does not require a gain setting means for an amplifier circuit and a control line of a CPU related thereto.

【0007】[0007]

【課題を解決するための手段】上記の課題を解決するた
め、本発明のカメラ用測距装置では、被写体へパルス光
を照射する投光手段と、前記投光手段の照射光が被写体
で反射する光を受光する受光手段と、前記受光手段の出
力電流を電圧に変換する電流電圧変換回路と、前記電流
電圧変換回路の出力信号を増幅する増幅回路と、外部信
号により放電可能な電荷蓄積手段を含み前記増幅回路の
出力信号を積分する積分回路と、複数の参照電圧を発生
する電圧発生手段と、前記参照電圧のいずれかを選択す
る電圧選択手段と、前記電圧選択手段によって選択され
た電圧および前記積分回路の出力を比較する比較手段
と、前記投光手段の投光開始から前記比較手段の出力が
変化するまでの投光回数をカウントするカウント手段
と、測距動作に先立つ投光動作に基づく前記積分回路の
出力および前記カウント手段の出力から測距時に使用す
る参照電圧および前記積分回路の電荷蓄積素子の放電回
数を算出する演算手段とを備えている。
In order to solve the above-mentioned problems, in a distance measuring apparatus for a camera according to the present invention, a light projecting means for irradiating a subject with pulsed light, and an irradiation light of the light projecting means is reflected by the subject. Light-receiving means for receiving light to be emitted, a current-voltage conversion circuit for converting an output current of the light-receiving means into a voltage, an amplification circuit for amplifying an output signal of the current-voltage conversion circuit, and a charge storage means capable of being discharged by an external signal An integrating circuit that integrates an output signal of the amplifier circuit; a voltage generating unit that generates a plurality of reference voltages; a voltage selecting unit that selects any of the reference voltages; and a voltage selected by the voltage selecting unit. Comparing means for comparing the output of the integrating circuit; counting means for counting the number of times of light emission from the start of light emission of the light emitting means until the output of the comparing means changes; And a calculating means for calculating the number of times of discharge of the charge storage elements of the reference voltage and the integrator circuit is used when the distance measurement from the output of the output and the counting means of the integration circuit based on the light operation.

【0008】[0008]

【作用】測距に先だって被写体から反射する光の強度を
測定し、その強度から積分回路の最適な投光終了電圧お
よび積分回路中のコンデンサの最適な放電回数を算出
し、それらの値に従って測距動作を行う。
Before measuring the distance, the intensity of the light reflected from the object is measured, and the optimum emission end voltage of the integration circuit and the optimum number of discharges of the capacitor in the integration circuit are calculated from the intensity, and the measurement is performed in accordance with these values. Perform distance operation.

【0009】[0009]

【実施例】本発明の構成を図1に基づいて説明する。投
光回路10は近赤外発光素子(以下IREDという)1
4を駆動するための駆動回路であり、トランジスタ1
1、抵抗12、13およびIRED14からなる。後述
の演算回路80(以下CPUという)から投光信号が出
力されると、IRED14は発光する。発光した光は投
光レンズ1を通り、不図示の被写体によってその一部を
反射され、反射した光の一部は受光レンズ2を通ってP
SD3に入射する。実際にはIRED14はパルス駆動
される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The configuration of the present invention will be described with reference to FIG. The light emitting circuit 10 is a near-infrared light emitting element (hereinafter referred to as IRED) 1
4 is a driving circuit for driving the transistor 1
1, the resistors 12, 13 and the IRED 14. When a light emission signal is output from an arithmetic circuit 80 (hereinafter, referred to as a CPU) described later, the IRED 14 emits light. The emitted light passes through the light projecting lens 1 and is partially reflected by a subject (not shown).
It is incident on SD3. Actually, the IRED 14 is pulse-driven.

【0010】第1の電流電圧変換回路20、第2の電流
電圧変換回路30は半導***置検出素子3(以下PSD
という)と一体となって1つの受光回路を構成する。投
光回路10の投光した光のうち被写体で反射された分の
光信号がPSD3に入射すると、PSD3はその強度と
入射位置に応じた電流を電流電圧変換回路20、30に
出力する。第1の電流電圧変換回路20はアンプ21と
帰還抵抗22で構成された、入力電流に比例した電圧を
出力する回路であり、第2の電流電圧変換回路30はア
ンプ31と帰還抵抗32とで構成され、第1の電流電圧
変換回路20とまったく同じ構成で、信号電流に応じた
電圧が出力され、スイッチ4によって電流電圧変換回路
20と30のいずれかの出力が増幅回路40に出力され
る。遠距離側の測距を行うときは第1の電流電圧変換回
路20、近距離側の測距を行うときは第2の電流電圧変
換回路30側にオンする。スイッチ4の状態はCPU8
0によって制御される。
The first current-voltage conversion circuit 20 and the second current-voltage conversion circuit 30 are provided with a semiconductor position detecting element 3 (hereinafter referred to as PSD).
To form one light receiving circuit. When the light signal reflected by the subject out of the light projected by the light projecting circuit 10 enters the PSD 3, the PSD 3 outputs a current corresponding to the intensity and the incident position to the current-voltage conversion circuits 20 and 30. The first current-to-voltage converter 20 is a circuit composed of an amplifier 21 and a feedback resistor 22 and outputs a voltage proportional to the input current. The second current-to-voltage converter 30 is composed of an amplifier 31 and a feedback resistor 32. With the configuration exactly the same as that of the first current-voltage conversion circuit 20, a voltage corresponding to the signal current is output, and one of the outputs of the current-voltage conversion circuits 20 and 30 is output to the amplifier circuit 40 by the switch 4. . The first current-voltage conversion circuit 20 is turned on when performing distance measurement on the long distance side, and the second current-voltage conversion circuit 30 is turned on when performing distance measurement on the short distance side. The state of the switch 4 is the CPU 8
Controlled by 0.

【0011】増幅回路40は入力信号の交流分を8倍に
増幅する増幅回路である。増幅回路40の前にはコンデ
ンサ5が接続され、入力信号の直流分はここでカットさ
れる。増幅回路40はアンプ41と入力抵抗42および
帰還抵抗43とで構成されている。
The amplifying circuit 40 is an amplifying circuit for amplifying the AC component of the input signal by eight times. The capacitor 5 is connected before the amplifier circuit 40, and the direct current component of the input signal is cut here. The amplification circuit 40 includes an amplifier 41, an input resistor 42, and a feedback resistor 43.

【0012】スイッチ7は後述のCPU80によって制
御され、スイッチ7がオンしているときにのみ増幅回路
40の出力信号は積分回路60に出力される。積分回路
60はアンプ61、入力抵抗62、積分コンデンサ6
3、スイッチ64、電圧ホロワ65で構成された、入力
信号を積分するための回路である。スイッチ64は後述
のCPU80によって制御され、スイッチ64がオンす
ると積分コンデンサ63の電荷は放電され、オフすると
電荷が蓄えられる。積分コンデンサ63の端子間積分電
圧Viは電圧ホロワ65を経てADC70に出力され
る。ADC70は積分電圧Viをデジタル値に変換して
CPU80に出力する。
The switch 7 is controlled by a CPU 80 described later, and the output signal of the amplifier circuit 40 is output to the integrating circuit 60 only when the switch 7 is turned on. The integrating circuit 60 includes an amplifier 61, an input resistor 62, and an integrating capacitor 6.
3, a switch 64 and a voltage follower 65 for integrating an input signal. The switch 64 is controlled by a CPU 80 described later. When the switch 64 is turned on, the charge of the integrating capacitor 63 is discharged, and when the switch 64 is turned off, the charge is stored. The integrated voltage Vi between the terminals of the integrating capacitor 63 is output to the ADC 70 via the voltage follower 65. The ADC 70 converts the integrated voltage Vi into a digital value and outputs the digital value to the CPU 80.

【0013】読み書き可能な揮発性のメモリ81(以下
RAMという)はCPU80の演算およびカウント値や
フラグなどの一時的な記憶に使用され、特に以下に述べ
るFf、Fnなどのフラグ、Ne、Df、Dn、Dv、
Vc、Ncなどの変数を保持する。読み出し可能な不揮
発性のメモリ82(以下ROMという)はCPU80の
プログラムおよびデータの格納に使用され、特に図2に
示す後述の値Xと距離Dを対応づける距離算出テーブル
を内蔵している。レリーズスイッチ86が押されると本
実施例の一連の動作を開始する。
A readable and writable volatile memory 81 (hereinafter referred to as a RAM) is used for the operation of the CPU 80 and for temporary storage of count values and flags, and in particular, flags such as Ff and Fn, Ne, Df, Dn, Dv,
Variables such as Vc and Nc are held. A readable non-volatile memory 82 (hereinafter referred to as a ROM) is used for storing programs and data of the CPU 80, and particularly has a built-in distance calculation table shown in FIG. When the release switch 86 is pressed, a series of operations of this embodiment is started.

【0014】モータ83はCPU80によって制御さ
れ、レンズ鏡筒84を合焦位置まで駆動する。
The motor 83 is controlled by the CPU 80 to drive the lens barrel 84 to a focus position.

【0015】次に本発明の実施例の回路の動作の概要に
ついて述べる。撮影者によってレリーズスイッチ86が
押され、この測距ルーチンに入ると、まず図1内のすべ
ての回路の電源をオンする。次にRAM81の内容をク
リアし、そして後述のゲイン決定動作により最適なゲイ
ンを決定する。このゲイン決定の動作中に、ゲインをそ
れぞれ最小にしてもなお積分回路60の出力が後述の電
圧V1以上のときは被写体の反射率が非常に大きいため
被写体が最至近にあるものとみなして差し支えなく、R
AM81中の至近フラグFnがセットされるので、その
場合は測距を行わずに最至近と判定し、被写体までの距
離に相当する値Xを1とする。
Next, an outline of the operation of the circuit according to the embodiment of the present invention will be described. When the photographer presses the release switch 86 and enters this distance measurement routine, first, the power of all the circuits in FIG. 1 is turned on. Next, the contents of the RAM 81 are cleared, and an optimum gain is determined by a gain determination operation described later. During the operation of determining the gain, even if the gain is minimized, if the output of the integration circuit 60 is equal to or higher than the voltage V1, which will be described later, the reflectance of the subject is extremely large, and the subject may be regarded as being closest. No, R
Since the closest flag Fn in the AM 81 is set, in that case, the closest distance is determined without performing the distance measurement, and the value X corresponding to the distance to the subject is set to 1.

【0016】それから第1の電流電圧変換回路20を用
いて測距し、このときの投光回数を回数NfとしてRA
M81の適切なアドレスに保存する。同様に第2の電流
電圧変換回路30で測距し、このときの投光回数を回数
NnとしてRAM81の適切なアドレスに保存する。第
1の電流電圧変換回路20の測距中に回数Nfm回、お
よび第2の電流電圧変換回路30の測距中に回数Nnm
回投光してもなお積分電圧Viの出力が後述の変数Vc
を超えないときは被写体の反射率が非常に小さいため被
写体が無限遠にあるものとみなして差し支えなく、RA
M81中の無限遠フラグFfがセットされるので、値X
を0.5とする。
Then, the distance is measured using the first current-to-voltage conversion circuit 20, and the number of light projections at this time is defined as RA Nf.
Store it in the appropriate address of M81. Similarly, the distance is measured by the second current-voltage conversion circuit 30, and the number of light projections at this time is stored as a number Nn in an appropriate address of the RAM 81. The number Nfm times during the distance measurement of the first current-voltage conversion circuit 20 and the number Nnm during the distance measurement of the second current-voltage conversion circuit 30
Even if the light is repeatedly projected, the output of the integrated voltage Vi is still a variable Vc described later.
When the value does not exceed, the reflectance of the subject is very small, and the subject may be regarded as being at infinity.
Since the infinity flag Ff in M81 is set, the value X
Is set to 0.5.

【0017】無限遠フラグFfと至近フラグFnととは
RAM81中の適切なアドレスに割り付けられたいずれ
も1ビットのフラグである。以上で測距動作を終了する
と、無限遠フラグFfがセットされていれば無限遠、至
近フラグFnがセットされていれば至近、いずれでもな
ければRAM81に保存されている回数NfおよびNn
を用いて、次のような式(1)で与えられる値Xを算出
する。
Each of the infinity flag Ff and the closeness flag Fn is a one-bit flag assigned to an appropriate address in the RAM 81. When the distance measuring operation is completed, infinity is set if the infinity flag Ff is set, the distance is set if the close flag Fn is set. Otherwise, the number of times Nf and Nn stored in the RAM 81 are set.
Is used to calculate a value X given by the following equation (1).

【0018】 X=Nf/(Nf+Nn) (1) 値Xが定まると、それによって一義的に定まるROM8
2の距離算出テーブル上のアドレスを参照して(図
2)、被写体までの距離を得る。最後にモータ83を制
御しレンズ鏡筒84を合焦位置まで駆動した後、測距回
路の電源をオフして、このルーチンを抜ける。
X = Nf / (Nf + Nn) (1) When the value X is determined, the ROM 8 uniquely determined by the value X is determined.
With reference to the address on the distance calculation table 2 (FIG. 2), the distance to the subject is obtained. Finally, after controlling the motor 83 to drive the lens barrel 84 to the in-focus position, the power supply of the distance measuring circuit is turned off, and the routine exits.

【0019】次に、ゲイン決定の動作を図3を使って詳
細に説明する。最初にCPU80はスイッチ4を第1の
電流電圧変換回路20側にオンする。それからスイッチ
64をオンし、積分コンデンサ63にたまっている電荷
を放電させる(図3のa)。十分に電荷を放電した後、
スイッチ64をオフし(図3のb)、クリア信号CRを
発生して回数Nfを0にクリアする(図3のc)。そし
てCPU80は投光回路10を動作させ、投光信号EM
を発生してIRED14を駆動し投光を開始する(図3
のd)。投光開始に伴う各アンプの立ち上り時間の確保
と電源変動の影響とを軽減するため、投光後時間T1を
経過してからスイッチ7をオンし、時間T2の間だけ積
分させる(図3のe)。それが終わると投光を停止する
と共にスイッチ7をオフして(図3のf)、時間T3の
間だけ待機し、カウントアップ信号CUを発生して回数
Nfに1を加える(図3のg)。
Next, the operation of determining the gain will be described in detail with reference to FIG. First, the CPU 80 turns on the switch 4 to the first current-voltage conversion circuit 20 side. Then, the switch 64 is turned on to discharge the charge accumulated in the integration capacitor 63 (FIG. 3A). After fully discharging the charge,
The switch 64 is turned off (b in FIG. 3), and a clear signal CR is generated to clear the number Nf to 0 (c in FIG. 3). Then, the CPU 80 activates the light emitting circuit 10 and outputs the light emitting signal EM.
Is generated and the IRED 14 is driven to start light emission (FIG. 3
D). In order to secure the rise time of each amplifier at the start of light emission and reduce the influence of power supply fluctuation, the switch 7 is turned on after the time T1 has elapsed after light emission, and integration is performed only during the time T2 (see FIG. 3). e). After that, the light emission is stopped and the switch 7 is turned off (f in FIG. 3), and only waits for the time T3, generates the count-up signal CU and adds 1 to the number Nf (g in FIG. 3). ).

【0020】CPU80は以上の動作を、毎回の投光ご
とに積分電圧ViをADC70でデジタル値に変換し、
CPU80でモニタしながら、あらかじめ決められた回
数N1(たとえば100回)だけ繰り返し、投光終了時
の積分電圧Viに従って最適なゲインに対応する変数D
fを決定する。ただし、回数N1に達する前に積分電圧
Viが電圧V1に達してしまった場合にはそこで投光を
打ち切る。
The CPU 80 converts the integrated voltage Vi into a digital value by the ADC 70 every time the light is projected.
While monitoring with the CPU 80, the process is repeated a predetermined number of times N1 (for example, 100 times), and the variable D corresponding to the optimum gain is determined according to the integrated voltage Vi at the end of the light emission.
Determine f. However, if the integrated voltage Vi reaches the voltage V1 before the number of times N1, the light emission is stopped there.

【0021】この様子を図5に示す。ここで回数N2は
N1の半分、さらに回数N3はN2の半分である。同様
に、電圧V2はV1の、電圧V3はV2の、電圧V4は
V3の、電圧V5はV4の、それぞれ半分となってい
る。いま、ゲイン決定動作において、回数N1、N2、
N3、電圧V1、V2、V3、V4、V5といった値か
ら、投光結果をD0〜D7の8つの放射状の領域に分類
する。たとえば回数N1にわたって投光し、その結果積
分電圧ViがV3とV4の間になった場合、投光結果は
領域D5となり、また、投光中に回数N1とN2の間で
積分電圧ViがV1に達した場合、投光結果は領域D2
となる。
FIG. 5 shows this state. Here, the number N2 is half of N1, and the number N3 is half of N2. Similarly, the voltage V2 is half of V1, the voltage V3 is half of V2, the voltage V4 is half of V3, and the voltage V5 is half of V4. Now, in the gain determination operation, the number of times N1, N2,
Based on values such as N3 and voltages V1, V2, V3, V4, and V5, the projection results are classified into eight radial areas D0 to D7. For example, when the light is emitted over the number of times N1 and the integrated voltage Vi is between V3 and V4 as a result, the light emission result is in a region D5, and the integrated voltage Vi is V1 between the number of times N1 and N2 during the light emission. Is reached, the projection result is the area D2
Becomes

【0022】投光結果が領域D0に含まれる場合、被写
体からの反射光が非常に大きく、測距不能となるので、
至近フラグFnをセットして第1の電流電圧変換回路2
0のゲイン決定動作を終了する。また、投光結果が領域
D1に含まれる場合は、変数Dfに1を代入する。以下
同様に、領域D2に含まれる場合は変数Df=2、…、
領域D7に含まれる場合は、変数Df=7として第1の
電流電圧変換回路20のゲイン決定動作を終了する。こ
うして変数Dfには1〜7までのいずれかの値が代入さ
れることになる。
When the projection result is included in the area D0, the reflected light from the subject is very large, and the distance cannot be measured.
The first current-voltage conversion circuit 2
The operation of determining the gain of 0 ends. When the light projection result is included in the area D1, 1 is substituted for the variable Df. Similarly, if the variable Df = 2,...
If it is included in the area D7, the variable Df is set to Df = 7, and the gain determination operation of the first current-voltage conversion circuit 20 ends. In this way, any value from 1 to 7 is substituted for the variable Df.

【0023】以上の動作を第2の電流電圧変換回路30
についても行い、最適なゲインに対応する変数Dnを決
定する。まず、スイッチ4を第2の電流電圧変換回路3
0側にオンし、第1の電流電圧変換回路20の場合と同
様な投光動作を行う。投光結果はやはりD0〜D7の8
つの領域に分類する。最後に、投光結果が領域D0に含
まれるならば至近フラグFnをセットし、それ以外の領
域ならばその領域に対応する1〜7の値を変数Dnに代
入して第2の電流電圧変換回路30のゲイン決定動作を
終了する。
The above operation is performed by the second current / voltage conversion circuit 30.
To determine the variable Dn corresponding to the optimal gain. First, the switch 4 is connected to the second current-voltage conversion circuit 3.
It turns on to the 0 side, and performs the same light emitting operation as in the case of the first current-voltage conversion circuit 20. The light emission result is again 8 of D0 to D7.
Into two areas. Finally, if the light projection result is included in the area D0, the closest flag Fn is set, and if it is other than the area, the value of 1 to 7 corresponding to the area is substituted for the variable Dn to perform the second current-voltage conversion. The gain determining operation of the circuit 30 ends.

【0024】以上のようにして変数DfとDnが独立に
決定されるが、後の演算処理の都合上、測距に使用され
るゲインをどちらかに揃える必要がある。ここでは測距
精度を優先するため、測距に使用されるゲインに対応す
る変数Dvは、DfとDnのうち大きい方が代入され
る。変数Dvに代入される1〜7の値の意味は、図6に
より明らかになる。変数Dvが定まると、変数Ncと変
数Vcに所定の数値が代入される。変数Ncと変数Vc
に代入される数値の組み合わせは、図6に示すように、
変数Dvの値により一義的に決定される。これらはとも
に以下に述べる測距動作の中で使われ、変数Ncは測距
時の積分コンデンサ63の放電回数(以下投光繰り返し
回数という)を、変数Vcは測距を終了する電圧(以下
投光終了電圧という)を意味し、これらの値から実質的
なゲインが定まる。たとえば変数Dv=2のとき、投光
終了電圧はV1で、それが4回にわたって繰り返され
る。変数Vc=1で変数Nc=1のときゲインをあらか
じめ8倍に設定しておくと、測距を4回繰り返せば実質
的なゲインは8÷4=2倍となる。また、変数Dv=5
のとき、投光終了電圧はV2で、それが1回きりとなる
から、実質的なゲインは8×2=16倍となる。
Although the variables Df and Dn are determined independently as described above, it is necessary to make the gain used for the distance measurement equal to one of them for the sake of convenience of the subsequent arithmetic processing. Here, in order to give priority to ranging accuracy, a larger one of Df and Dn is substituted for a variable Dv corresponding to a gain used for ranging. The meaning of the values of 1 to 7 assigned to the variable Dv will be apparent from FIG. When the variable Dv is determined, predetermined numerical values are assigned to the variables Nc and Vc. Variable Nc and variable Vc
Is, as shown in FIG.
It is uniquely determined by the value of the variable Dv. These are both used in the distance measuring operation described below. The variable Nc indicates the number of discharges of the integrating capacitor 63 during distance measurement (hereinafter referred to as the number of light emission repetitions), and the variable Vc indicates the voltage at which distance measurement ends (hereinafter referred to as light projection). These values determine the substantial gain. For example, when the variable Dv = 2, the light emission end voltage is V1, which is repeated four times. If the gain is previously set to 8 times when the variable Vc = 1 and the variable Nc = 1, the actual gain becomes 8 ÷ 4 = 2 times if the distance measurement is repeated four times. Also, the variable Dv = 5
In this case, the light emission end voltage is V2, which is only once, so that the actual gain is 8 × 2 = 16 times.

【0025】ここで特筆すべきは、変数Dvのいかんに
かかわらず、測距の終了までに投光する回数は、被写体
の輝度が一定であれば、2×N1回から4×N1回の間
に収まるという点である。たとえば変数Dv=2ならば
投光繰り返し回数は4、測距終了電圧はV1であるか
ら、最小でN2の4倍すなわち2×N1回、最大でN1
の4倍すなわち4×N1回となる。また変数Dv=5な
らば投光繰り返し回数は1で、投光終了電圧がV2とな
り、最小でN1の(V2÷V3)倍すなわち2×N1
回、最大でN1の(V2÷V4)倍すなわち4×N1回
となり、変数Dv=2の場合と変わらず、これは変数D
vが他のどの値であっても同様である。このことは、被
写体輝度にかかわらず、測距時間の増減を最小限に止
め、ひいては撮影者がレリーズスイッチ86をオンして
から露出が行われるまでの時間を一定の範囲に収めるこ
とに寄与している。
It should be noted that regardless of the variable Dv, the number of times of light emission until the end of distance measurement is between 2 × N1 and 4 × N1 if the brightness of the subject is constant. It is that it fits in. For example, if the variable Dv = 2, the number of light projection repetitions is 4, and the distance measurement end voltage is V1, so that at least four times N2, that is, 2 × N1, and at most N1
4 times, that is, 4 × N1 times. If the variable Dv = 5, the number of light emission repetitions is 1, and the light emission end voltage is V2. At least (V2VV3) times N1, that is, 2 × N1
Times, at most (V24V4) times of N1, that is, 4 × N1 times, which is the same as the case of the variable Dv = 2.
The same applies when v is any other value. This contributes to minimizing the increase or decrease in the distance measurement time regardless of the subject brightness, and consequently keeping the time from when the photographer turns on the release switch 86 to when the exposure is performed within a certain range. ing.

【0026】次に、第1の電流電圧変換回路20による
測距を図4に基づいて詳細に説明する。最初にスイッチ
4を第1の電流電圧変換回路20側にオンする。次にス
イッチ64をオンし、積分コンデンサ63にたまってい
る電荷を放電させる(図4のa)。十分に電荷を放電さ
せた後にスイッチ64をオフする(図4のb)。これで
積分コンデンサ63の両端の電位差は0になる。同時
に、変数Ncから1を引く。そしてクリア信号CRを発
生して回数Nfを0にクリアする(図4のc)。そして
CPU80は投光回路10を動作させ、投光信号EMを
発生してIRED14を駆動し投光を開始する(図4の
d)。投光開始に伴う各アンプの立ち上り時間の確保と
電源変動の影響とを軽減するため、投光後時間T1を経
過してから積分回路を時間T2の間だけ動作させる(図
4のe)。それが終わると投光・積分を停止して(図4
のf)、時間T3の間だけ待機し、カウントアップ信号
CUを発生して回数Nfに1を加える(図4のg)。
Next, the distance measurement by the first current / voltage conversion circuit 20 will be described in detail with reference to FIG. First, the switch 4 is turned on to the first current-voltage conversion circuit 20 side. Next, the switch 64 is turned on to discharge the charge accumulated in the integration capacitor 63 (FIG. 4A). After sufficiently discharging the electric charge, the switch 64 is turned off (FIG. 4B). Thus, the potential difference between both ends of the integration capacitor 63 becomes zero. At the same time, 1 is subtracted from the variable Nc. Then, a clear signal CR is generated to clear the number Nf to 0 (c in FIG. 4). Then, the CPU 80 operates the light emitting circuit 10, generates the light emitting signal EM, drives the IRED 14, and starts the light emitting (d in FIG. 4). In order to secure the rise time of each amplifier at the start of light emission and reduce the influence of power supply fluctuation, the integration circuit is operated only for the time T2 after the time T1 has elapsed after the light emission (e in FIG. 4). After that, the light emission and integration are stopped (Fig. 4
F), and waits for the time T3, generates the count-up signal CU, and adds 1 to the number Nf (g in FIG. 4).

【0027】測距動作の終了条件は、変数Dvの値によ
って異なる。変数Dvが1〜3の場合、測距終了電圧は
V1であり、積分コンデンサ63の放電変数Ncは1よ
り大きい。従って、測距中に積分電圧ViがV1に達す
ると、スイッチ64がオンし、積分コンデンサ63の電
荷をすべて放電するとともに、変数Ncから1を引く。
ここで変数Ncが0になっていれば、放電の繰り返しは
終わったものと判断し、このときの回数NfをRAM8
1中の適切なアドレスに記憶して測距を終了する。変数
Dv=3、すなわち投光繰り返し回数が2の時のゲイン
決定動作の開始から測距動作の終了までの図1の要部の
タイミングチャートを図7に示した。また、変数Dvが
4〜7の場合は測距繰り返し回数はすべて1であり、つ
まり積分電圧Viが変数Vcに代入された電圧に達した
時点で投光を終え、このときの回数NfをRAM81中
の適切なアドレスに記憶して測距を終了する。変数Dv
=5、すなわち測距終了電圧がV2の時のゲイン決定動
作の開始から測距動作の終了までの図1の要部のタイミ
ングチャートを図8に示した。
The condition for terminating the distance measuring operation differs depending on the value of the variable Dv. When the variable Dv is 1 to 3, the distance measurement end voltage is V1, and the discharge variable Nc of the integrating capacitor 63 is larger than 1. Therefore, when the integrated voltage Vi reaches V1 during the distance measurement, the switch 64 is turned on to discharge all the charge of the integrating capacitor 63 and subtract 1 from the variable Nc.
Here, if the variable Nc is 0, it is determined that the repetition of the discharge has ended, and the number of times Nf at this time is stored in the RAM 8.
1 is stored in an appropriate address, and the distance measurement is completed. FIG. 7 shows a timing chart of the main part of FIG. 1 from the start of the gain determination operation to the end of the distance measurement operation when the variable Dv = 3, that is, when the number of light projection repetitions is 2. When the variable Dv is 4 to 7, the number of distance measurement repetitions is all one, that is, when the integrated voltage Vi reaches the voltage substituted for the variable Vc, the light emission is terminated, and the number Nf at this time is stored in the RAM 81. The data is stored at an appropriate address inside and the ranging is completed. Variable Dv
= 5, that is, FIG. 8 shows a timing chart of the main part of FIG. 1 from the start of the gain determination operation to the end of the distance measurement operation when the distance measurement end voltage is V2.

【0028】なお、以上の測距終了条件を満たさぬまま
回数Nfが回数Nfm(たとえば1000回)に達した
場合には、被写体は非常に遠方にあるものと判断し、R
AM81中の無限遠フラグFfをセットして終了する。
If the number of times Nf reaches the number of times Nfm (for example, 1000 times) without satisfying the above distance measurement end condition, it is determined that the subject is very far away, and R
The infinity flag Ff in AM81 is set, and the processing ends.

【0029】同様に、第2の電流電圧変換回路30でも
測距を行う。第2の電流電圧変換回路30での測距動作
は第1の電流電圧変換回路20とほぼ同じで、以下の4
つの点だけが異なる。すなわち、まず最初に、図6に示
される数値が変数Ncに再び代入されること、スイッチ
4が第1の電流電圧変換回路20側ではなく第2の電流
電圧変換回路30側にオンすること、カウントアップ信
号CUの発生に伴い回数Nfではなく回数Nnがカウン
トアップされること、回数Nfmではなく回数Nnm
(たとえば1000回)に達した場合にRAM81中の
無限遠フラグFfをセットして終了する、の4点であ
る。
Similarly, the second current-voltage conversion circuit 30 measures the distance. The distance measurement operation in the second current-voltage conversion circuit 30 is substantially the same as that in the first current-voltage conversion circuit 20.
Only one difference. That is, first, the numerical value shown in FIG. 6 is substituted into the variable Nc again, and the switch 4 is turned on not on the first current-voltage conversion circuit 20 side but on the second current-voltage conversion circuit 30 side. The number Nn is counted up instead of the number Nf with the generation of the count-up signal CU, and the number Nnm is used instead of the number Nfm.
(For example, 1000 times), the infinity flag Ff in the RAM 81 is set and the processing is terminated.

【0030】以上が本実施例における回路の動作であ
る。以上の動作をフローチャートで表わすと図9〜図1
3のようになる。まず、メインルーチンを図9に基づい
て説明する。この測距ルーチンに入ると、CPU80は
図1に示す測距回路全体の電源をオンし(#001)、
各スイッチを設定する(#002)。次にRAM81の
内容をクリアする(#003)。ここで、すべてのフラ
グおよび変数の値がクリアされる。そして第1の電流電
圧変換回路20を使って変数Dfを決定し(#00
4)、ここで至近フラグFnの状態を確認し(#00
5)、もし至近フラグFnがセットされていればCPU
80は値Xを1(至近に相当する)に設定し(#00
6)、#020にジャンプする。もし至近フラグFnが
セットされていなければ、次に第2の電流電圧変換回路
30を使って変数Dnを決定し(#007)、もう一度
至近フラグFnの状態を確認し(#008)、もし至近
フラグFnがセットされていれば値Xを1に設定し(#
006)、#020にジャンプする。そして変数Dfと
変数Dnのうち大きい方を変数Dvに代入する(#00
9)。
The above is the operation of the circuit in this embodiment. FIG. 9 to FIG.
It looks like 3. First, the main routine will be described with reference to FIG. When entering the distance measuring routine, the CPU 80 turns on the power of the entire distance measuring circuit shown in FIG. 1 (# 001).
Each switch is set (# 002). Next, the contents of the RAM 81 are cleared (# 003). Here, all flags and variable values are cleared. Then, the variable Df is determined using the first current-voltage conversion circuit 20 (# 00
4) Here, the state of the close flag Fn is confirmed (# 00)
5) If the close flag Fn is set, the CPU
80 sets the value X to 1 (corresponding to the closest distance) (# 00
6) Jump to # 020. If the closeness flag Fn is not set, the variable Dn is determined using the second current-voltage conversion circuit 30 (# 007), and the state of the closeness flag Fn is checked again (# 008). If the flag Fn is set, the value X is set to 1 (#
006), and jump to # 020. Then, the larger one of the variables Df and Dn is assigned to the variable Dv (# 00
9).

【0031】続いて図6に従って変数Dvに対応する変
数Ncをセットし(#010)、第1の電流電圧変換回
路20で測距して回数Nfを算出し(#011)、ここ
で無限遠フラグFfの状態を確認し(#012)、Ff
がセットしれていればCPU80は値Xを0.5(無限
遠に相当する)に設定し(#013)、#018にジャ
ンプする。無限遠フラグFfがセットさせていなけれ
ば、再び変数Dvに対応する変数Ncをセットし(#0
14)、第2の電流電圧変換回路30で測距して回数N
nを算出し(#015)、ここで無限遠フラグFfの状
態を確認し(#016)、FfがセットしれていればC
PU80は値Xを0.5(無限遠に相当する)に設定し
(#013)、#018にジャンプする。Ffがセット
されていなければ、回数Nfと回数Nnとから値Xを算
出する(#017)。
Subsequently, a variable Nc corresponding to the variable Dv is set according to FIG. 6 (# 010), the distance is measured by the first current-voltage conversion circuit 20, and the number Nf is calculated (# 011). The state of the flag Ff is confirmed (# 012), and Ff
Is set, the CPU 80 sets the value X to 0.5 (corresponding to infinity) (# 013), and jumps to # 018. If the infinity flag Ff is not set, the variable Nc corresponding to the variable Dv is set again (# 0
14), the number of times N measured by the second current-voltage conversion circuit 30
n is calculated (# 015), the state of the infinity flag Ff is checked (# 016), and if Ff is set, C is determined.
The PU 80 sets the value X to 0.5 (corresponding to infinity) (# 013), and jumps to # 018. If Ff is not set, the value X is calculated from the number Nf and the number Nn (# 017).

【0032】最後にCPU80は、図2に示したような
ROM82中のテーブルを使用して、値Xから被写体ま
での距離Dを求め(#018)、モータ83を制御して
レンズ鏡筒84を合焦位置まで駆動した後(#01
9)、図1に示す測距回路全体の電源をオフし(#02
0)、このルーチンを抜けて続く露出動作へと移る。
Finally, the CPU 80 obtains the distance D to the subject from the value X by using a table in the ROM 82 as shown in FIG. 2 (# 018), controls the motor 83 and moves the lens barrel 84. After driving to the in-focus position (# 01
9) Then, the power of the entire distance measuring circuit shown in FIG. 1 is turned off (# 02).
0), the routine goes out of this routine to the subsequent exposure operation.

【0033】次に、各サブルーチン内での動作を説明す
る。まず、変数Df決定のサブルーチンを図10に基づ
いて説明する。変数Df決定のサブルーチンに入ると、
CPU80はスイッチ4を第1の電流電圧変換回路20
側にオンし(#101)、クリア信号CRを発生して回
数Neを0にクリアし(#102)、スイッチ64をオ
ンし積分コンデンサ63にたまっている電荷を放電させ
てからスイッチ64をオフする(#103)。
Next, the operation in each subroutine will be described. First, a subroutine for determining the variable Df will be described with reference to FIG. When entering the subroutine for determining the variable Df,
The CPU 80 sets the switch 4 to the first current / voltage conversion circuit 20.
Side (# 101), a clear signal CR is generated to clear the number Ne to 0 (# 102), and the switch 64 is turned on to discharge the charge accumulated in the integration capacitor 63, and then the switch 64 is turned off. (# 103).

【0034】続いてCPU80は投光信号EMを発生し
て投光回路10を動作して投光を始め(#104)時間
T1だけ待機する(#105)と、スイッチ7をオンし
積分動作をしながら(#106)時間T2だけ待機す
る。この間積分コンデンサ63には電荷が貯えられる
(#107)。それからCPU80は投光回路10の動
作を止めて投光動作を終了し、さらにスイッチ7をオフ
して積分動作を終え、ADC70を通じて積分電圧Vi
を読み込む(#108)。積分電圧Viが電圧V1以上
ならば#110にジャンプする(#109)。さらに回
数Neを回数N3と比較し(#110)、回数N3未満
であれば至近フラグFnを立ててメインルーチンに戻る
(#111)。回数Neが回数N3未満でなければさら
に回数N2と比較し(#112)、回数N2未満であれ
ば変数Dfに1を(#113)、回数N2以上であれば
変数Dfに2を(#114)、それぞれ代入してメイン
ルーチンに戻る。
Subsequently, the CPU 80 generates the light emitting signal EM, operates the light emitting circuit 10 to start light emitting (# 104), waits for a time T1 (# 105), turns on the switch 7 and performs the integrating operation. (# 106), and waits for the time T2. During this time, charge is stored in the integration capacitor 63 (# 107). Then, the CPU 80 stops the operation of the light emitting circuit 10 to end the light emitting operation, further turns off the switch 7 to end the integration operation, and integrates the integrated voltage Vi through the ADC 70.
Is read (# 108). If the integrated voltage Vi is equal to or higher than the voltage V1, the process jumps to # 110 (# 109). Further, the number Ne is compared with the number N3 (# 110). If the number Ne is less than the number N3, the close flag Fn is set and the process returns to the main routine (# 111) . Times speed Ne is compared with a further number N2 be less than the number N3 (# 112), 1 to the variable Df is less than the number N2 (# 113), the 2 variable Df if the number N2 or more (# 114), substitute for each and return to the main routine.

【0035】#109で積分電圧Viが電圧V1未満の
場合、回数Neに1を加え(#115)、その結果回数
Neが回数N1未満であれば#104にジャンプする
(#116)。回数Neが回数N1以上の場合、積分電
圧Viが電圧V2以上ならば(#117)、変数Dfに
3を(#118)、電圧V2未満電圧V3以上ならば
(#119)、変数Dfに4を(#120)、電圧V3
未満電圧V4以上ならば(#121)、変数Dfに5を
(#122)、電圧V4未満電圧V5以上ならば(#1
23)、変数Dfに6を(#124)、電圧V5未満な
らば変数Dfに7を(#125)、それぞれ代入してメ
インルーチンに戻る。
If the integral voltage Vi is less than the voltage V1 in # 109, 1 is added to the number Ne (# 115). If the result Ne is less than the number N1, the process jumps to # 104 (# 116). When the number Ne is equal to or more than the number N1, if the integrated voltage Vi is equal to or more than the voltage V2 (# 117), 3 is set to the variable Df (# 118), if the integrated voltage Vi is equal to or less than the voltage V3 less than the voltage V2 (# 119), 4 is set to the variable Df. (# 120), voltage V3
If the voltage is less than the voltage V4 (# 121), 5 is set to the variable Df (# 122).
23), 6 is substituted for the variable Df (# 124), and if it is less than the voltage V5, 7 is substituted for the variable Df (# 125), and the process returns to the main routine.

【0036】次に、変数Dn決定のサブルーチンを図1
1に基づいて説明する。変数Dn決定のサブルーチンに
入ると、CPU80はスイッチ4を第2の電流電圧変換
回路30側にオンし(#201)、クリア信号CRを発
生して回数Neを0にクリアし(#202)、スイッチ
64をオンし積分コンデンサ63にたまっている電荷を
放電させてからスイッチ64をオフする(#203)。
Next, the subroutine for determining the variable Dn is shown in FIG.
1 will be described. When entering the subroutine for determining the variable Dn, the CPU 80 turns on the switch 4 to the second current-voltage conversion circuit 30 side (# 201), generates a clear signal CR and clears the number Ne to 0 (# 202), The switch 64 is turned on to discharge the electric charge accumulated in the integration capacitor 63, and then the switch 64 is turned off (# 203).

【0037】続いてCPU80は投光信号EMを発生し
て投光回路10を動作して投光を始め(#204)時間
T1だけ待機する(#205)と、スイッチ7をオンし
積分動作をしながら(#206)時間T2だけ待機す
る。この間積分コンデンサ63には電荷が貯えられる
(#207)。それからCPU80は投光回路10の動
作を止めて投光動作を終了し、さらにスイッチ7をオフ
して積分動作を終え、ADC70を通じて積分電圧Vi
を読み込む(#208)。ここで、積分電圧Viが電圧
V1以上ならば#210にジャンプする(#209)。
さらに回数Neを回数N3と比較し(#210)、回数
N3未満であれば至近フラグFnを立ててメインルーチ
ンに戻る(#211)。回数Neが回数N3未満でなけ
ればさらに回数N2と比較し(#212)、回数N2未
満であれば変数Dnに1を(#213)、回数N2以上
であれば変数Dnに2を(#214)、それぞれ代入し
てメインルーチンに戻る。
Subsequently, the CPU 80 generates the light projecting signal EM to operate the light projecting circuit 10 to start the light projecting (# 204) and wait for a time T1 (# 205). (# 206), and waits for the time T2. During this time, charge is stored in the integration capacitor 63 (# 207). Then, the CPU 80 stops the operation of the light emitting circuit 10 to end the light emitting operation, further turns off the switch 7 to end the integration operation, and integrates the integrated voltage Vi through the ADC 70.
Is read (# 208). Here, if the integrated voltage Vi is equal to or higher than the voltage V1, the process jumps to # 210 (# 209).
Further, the number Ne is compared with the number N3 (# 210). If the number Ne is less than the number N3, the close flag Fn is set and the process returns to the main routine (# 211). If the number Ne is not less than the number N3, the number Ne is further compared with the number N2 (# 212). If the number Ne is less than the number N2, 1 is set to the variable Dn (# 213). ), And return to the main routine.

【0038】#209で積分電圧Viが電圧V1未満の
場合、回数Neに1を加え(#215)、その結果回数
Neが回数N1未満であれば#204にジャンプする
(#216)。回数Neが回数N1以上の場合、積分電
圧Viが電圧V2以上ならば(#217)、変数Dnに
3を(#218)、電圧V2未満電圧V3以上ならば
(#219)、変数Dnに4を(#220)、電圧V3
未満電圧V4以上ならば(#221)、変数Dnに5を
(#222)、電圧V4未満電圧V5以上ならば(#2
23)、変数Dnに6を(#224)、電圧V5未満な
らば変数Dnに7を(#225)、それぞれ代入してメ
インルーチンに戻る。
If the integration voltage Vi is less than the voltage V1 in # 209, 1 is added to the number Ne (# 215). If the number Ne is less than the number N1, the process jumps to # 204 (# 216). When the number Ne is equal to or more than the number N1, if the integrated voltage Vi is equal to or more than the voltage V2 (# 217), 3 is set to the variable Dn (# 218), if it is less than the voltage V2 and equal to or more than the voltage V3 (# 219), 4 is set to the variable Dn. (# 220), voltage V3
If it is less than the voltage V4 (# 221), 5 is set to the variable Dn (# 222), and if it is less than the voltage V4 and more than the voltage V5 (# 2).
23), 6 is substituted for the variable Dn (# 224), and if it is less than the voltage V5, 7 is substituted for the variable Dn (# 225), and the process returns to the main routine.

【0039】次に、第1の電流電圧変換回路20による
回数Nfの算出のサブルーチンを図12に基づいて説明
する。第1の電流電圧変換回路20による測距のサブル
ーチンに入ると、スイッチ4を第1の電流電圧変換回路
20側にオンし(#301)、クリア信号CRを発生し
て回数Nfを0にクリアし(#302)、そして変数D
vに対応する最適な測距繰り返し回数を、図6に従って
変数Ncに設定する(#303)。さらにスイッチ64
をオンし積分コンデンサ63にたまっている電荷を放電
させてからスイッチ64をオフする(#304)。ここ
で回数Nfが回数Nfmに達しているかどうかを確認し
(#305)、もし達していれば無限遠フラグFfをセ
ットしてこのルーチンを抜ける(#306)。
Next, a subroutine for calculating the number of times Nf by the first current / voltage conversion circuit 20 will be described with reference to FIG. When a subroutine for distance measurement by the first current-voltage conversion circuit 20 is entered, the switch 4 is turned on to the first current-voltage conversion circuit 20 (# 301), a clear signal CR is generated, and the number Nf is cleared to zero. (# 302), and the variable D
The optimum number of distance measurement repetitions corresponding to v is set to a variable Nc according to FIG. 6 (# 303). Switch 64
Is turned on to discharge the charge accumulated in the integration capacitor 63, and then the switch 64 is turned off (# 304). Here, it is confirmed whether or not the number Nf has reached the number Nfm (# 305). If it has, the infinity flag Ff is set and the routine exits (# 306).

【0040】続いて投光信号EMを発生して投光回路1
0を動作して投光を始め(#307)、時間T1だけ待
機すると(#308)、スイッチ7をオンし積分動作を
しながら(#309)、時間T2だけ待機する(#31
0)。この間積分コンデンサ63には電荷が貯えられ
る。それからCPU80は投光回路10の動作を止めて
投光動作を終了し、さらにスイッチ7をオフして積分動
作を終え(#311)、カウントアップ信号CUを発生
して回数Nfに1を加える(#312)。それからAD
C70を通じて読み込んだ積分電圧Viが変数Vc未満
であれば#305にジャンプする(#313)。積分電
圧Viが変数Vc以上であれば変数Ncから1を引き
(#314)、その結果が0に等しければ繰り返しは終
了したものと判断しこのルーチンを抜け、0でなければ
#304にジャンプする(#315)。
Subsequently, a light emitting signal EM is generated and the light emitting circuit 1 is generated.
Then, the light emission is started by operating 0 (# 307), and after waiting for the time T1 (# 308), the switch 7 is turned on and the integrating operation is performed (# 309), and then waiting for the time T2 (# 31).
0). During this time, charge is stored in the integration capacitor 63. Then, the CPU 80 stops the operation of the light emitting circuit 10 to end the light emitting operation, further turns off the switch 7 to end the integrating operation (# 311), generates a count-up signal CU, and adds 1 to the number Nf (FIG. # 312). Then AD
If the integrated voltage Vi read through C70 is smaller than the variable Vc, the process jumps to # 305 (# 313). If the integrated voltage Vi is equal to or greater than the variable Vc, 1 is subtracted from the variable Nc (# 314). If the result is equal to 0, it is determined that the repetition has been completed, and this routine is exited. (# 315).

【0041】次に、第2の電流電圧変換回路30による
回数Nnの算出のサブルーチンを図13に基づいて説明
する。第2の電流電圧変換回路30による測距のサブル
ーチンに入ると、スイッチ4を第2の電流電圧変換回路
30側にオンし(#401)、クリア信号CRを発生し
て回数Nnを0にクリアし(#402)、そして変数D
vに対応する最適な測距繰り返し回数を、図6に従って
変数Ncに設定する(#403)。さらにスイッチ64
をオンし積分コンデンサ63にたまっている電荷を放電
させてからスイッチ64をオフする(#404)。ここ
で回数Nnが回数Nnmに達しているかどうかを確認し
(#405)、もし達していれば無限遠フラグFfをセ
ットしてこのルーチンを抜ける(#406)。
Next, a subroutine for calculating the number of times Nn by the second current / voltage conversion circuit 30 will be described with reference to FIG. When the subroutine for distance measurement by the second current-voltage conversion circuit 30 is entered, the switch 4 is turned on to the second current-voltage conversion circuit 30 (# 401), a clear signal CR is generated, and the number Nn is cleared to zero. (# 402), and the variable D
The optimum number of distance measurement repetitions corresponding to v is set in a variable Nc according to FIG. 6 (# 403). Switch 64
Is turned on to discharge the charge accumulated in the integration capacitor 63, and then the switch 64 is turned off (# 404). Here, it is confirmed whether or not the number Nn has reached the number Nnm (# 405). If it has, the infinity flag Ff is set and the routine exits (# 406).

【0042】続いて投光信号EMを発生して投光回路1
0を動作して投光を始め(#407)、時間T1だけ待
機すると(#408)、スイッチ7をオンし積分動作を
しながら(#409)、時間T2だけ待機する(#41
0)。この間積分コンデンサ63には電荷が貯えられ
る。それからCPU80は投光回路10の動作を止めて
投光動作を終了し、さらにスイッチ7をオフして積分動
作を終え(#411)、カウントアップ信号CUを発生
して回数Nnに1を加える(#412)。それからAD
C70を通じて読み込んだ積分電圧Viが変数Vc未満
であれば#405にジャンプする(#413)。積分電
圧Viが変数Vc以上であれば変数Ncから1を引き
(#414)、その結果が0に等しければ繰り返しは終
了したものと判断しこのルーチンを抜け、0でなければ
#404にジャンプする(#415)。
Subsequently, a light emitting signal EM is generated to generate a light emitting circuit 1
Then, light emission is started by operating 0 (# 407), and after waiting for a time T1 (# 408), the switch 7 is turned on and integration operation is performed (# 409), and then waiting for a time T2 (# 41).
0). During this time, charge is stored in the integration capacitor 63. Then, the CPU 80 stops the operation of the light emitting circuit 10 to end the light emitting operation, further turns off the switch 7 to end the integration operation (# 411), generates a count-up signal CU, and adds 1 to the number Nn ( # 412). Then AD
If the integrated voltage Vi read through C70 is smaller than the variable Vc, the process jumps to # 405 (# 413). If the integrated voltage Vi is equal to or greater than the variable Vc, 1 is subtracted from the variable Nc (# 414). If the result is equal to 0, it is determined that the repetition has been completed, and the process exits this routine. (# 415).

【0043】以上の実施例ではPSD3の出力信号電流
の処理系統、すなわち増幅回路および積分回路は1系統
のみで、スイッチ4によって切り換えるものとしたが、
これを2系統以上で処理してもよい。
In the above embodiment, the processing system for the output signal current of the PSD 3, that is, the amplifier circuit and the integration circuit are only one system and are switched by the switch 4.
This may be processed by two or more systems.

【0044】また、ゲインの決定を第1の電流電圧変換
回路20または第2の電流電圧変換回路30のいずれか
のみで簡易に決定するものとすれば、ゲイン決定動作を
測距動作の先頭に組み込むことができ、測距時間がより
短縮できる。
If the gain is determined simply by either the first current-to-voltage conversion circuit 20 or the second current-to-voltage conversion circuit 30, the gain determination operation is placed at the beginning of the distance measurement operation. The distance measurement time can be further shortened.

【0045】また、以上の実施例では測距精度を優先す
るために、変数DfとDnのうち大きい方を変数Dvに
代入しているが、小さい方を代入するようにしてもよ
い。この場合は測距時間がより短縮される結果となる。
In the above embodiment, the larger one of the variables Df and Dn is substituted for the variable Dv in order to give priority to the ranging accuracy, but the smaller one may be substituted. In this case, the distance measurement time is further reduced.

【0046】さらに、以上の実施例では測距の終了電圧
をV1〜V5の5レベル、測距の繰り返し回数をN1〜
N3の3レベルとして説明しているが、いずれもこの値
に限るものではなく、そのレベル数はそれぞれ実施に当
たって自由に変更できる。
Further, in the above embodiment, the end voltage of ranging is five levels V1 to V5, and the number of repetitions of ranging is N1 to N1.
Although described as three levels of N3, none of them is limited to this value, and the number of levels can be freely changed in each implementation.

【0047】[0047]

【発明の効果】被写体へパルス光を照射する投光手段
と、前記投光手段の照射光が被写体で反射する光を受光
する受光手段と、前記受光手段の出力電流を電圧に変換
する電流電圧変換回路と、前記電流電圧変換回路の出力
信号を増幅する増幅回路と、外部信号により放電可能な
電荷蓄積手段を含み前記増幅回路の出力信号を積分する
積分回路と、複数の参照電圧を発生する電圧発生手段
と、前記参照電圧のいずれかを選択する電圧選択手段
と、前記電圧選択手段によって選択された電圧および前
記積分回路の出力を比較する比較手段と、前記投光手段
の投光開始から前記比較手段の出力が変化するまでの投
光回数をカウントするカウント手段と、測距動作に先立
つ投光動作に基づく前記積分回路の出力および前記カウ
ント手段の出力から測距時に使用する参照電圧および前
記積分回路の電荷蓄積素子の放電回数を算出する演算手
段とを備えているので、増幅回路のゲイン設定手段と、
それにかかわるCPUの制御線を必要とせず、回路を単
純かつ小規模に構成することができ、とりわけ集積回路
上に構成することの多い測距回路では、スペース的にも
コスト的にも有利である。
According to the present invention, light projecting means for irradiating a subject with pulsed light, light receiving means for receiving light reflected by the subject from the light emitted from the light projecting means, and current voltage for converting the output current of the light receiving means into a voltage A conversion circuit, an amplification circuit for amplifying an output signal of the current-voltage conversion circuit, an integration circuit including charge storage means capable of being discharged by an external signal and integrating the output signal of the amplification circuit, and generating a plurality of reference voltages. Voltage generating means, voltage selecting means for selecting any of the reference voltages, comparing means for comparing the voltage selected by the voltage selecting means and the output of the integrating circuit, Counting means for counting the number of light projections until the output of the comparing means changes; and ranging from the output of the integrating circuit and the output of the counting means based on the projection operation prior to the ranging operation. Since an arithmetic means for calculating the number of times of discharge of the charge storage elements of the reference voltage and the integrator circuit for use in, and gain setting means of the amplifier circuit,
The circuit does not require a control line for the CPU, and the circuit can be configured simply and on a small scale. This is advantageous in terms of space and cost, particularly in a distance measuring circuit often configured on an integrated circuit. .

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

【図1】本発明の実施例を示す構成図である。FIG. 1 is a configuration diagram showing an embodiment of the present invention.

【図2】本発明の実施例の値Xから距離を求めるROM
82上のテーブルである。
FIG. 2 is a ROM for calculating a distance from a value X according to an embodiment of the present invention;
82 is a table.

【図3】本発明の実施例のゲイン決定時の図1の要部の
動作を説明する動作図である。
FIG. 3 is an operation diagram illustrating an operation of a main part of FIG. 1 when a gain is determined in the embodiment of the present invention.

【図4】本発明の実施例の回数NfとNnの算出時の図
1の要部の動作を説明する動作図である。
FIG. 4 is an operation diagram illustrating an operation of a main part of FIG. 1 when calculating the number of times Nf and Nn in the embodiment of the present invention.

【図5】本発明の実施例のゲイン決定の原理を示す説明
図である。
FIG. 5 is an explanatory diagram showing a principle of determining a gain according to the embodiment of the present invention.

【図6】本発明の実施例のゲイン決定に関わるテーブル
である。
FIG. 6 is a table related to a gain determination according to the embodiment of the present invention.

【図7】本発明の実施例のゲイン決定動作から測距動作
に至るタイミングチャートである。
FIG. 7 is a timing chart from a gain determination operation to a distance measurement operation according to the embodiment of the present invention.

【図8】本発明の実施例のゲイン決定動作から測距動作
に至るタイミングチャートである。
FIG. 8 is a timing chart from a gain determination operation to a distance measurement operation according to the embodiment of the present invention.

【図9】本発明の実施例の動作を示すフローチャートで
ある。
FIG. 9 is a flowchart showing the operation of the embodiment of the present invention.

【図10】図9のフローチャートの変数Df算出の部分
のサブルーチンを示すフローチャートである。
FIG. 10 is a flowchart showing a subroutine of a variable Df calculation part in the flowchart of FIG. 9;

【図11】図9のフローチャートの変数Dn算出の部分
のサブルーチンを示すフローチャートである。
11 is a flowchart showing a subroutine of a variable Dn calculation part of the flowchart of FIG. 9;

【図12】図9のフローチャートの回数Nf算出の部分
のサブルーチンを示すフローチャートである。
12 is a flowchart showing a subroutine of a part for calculating the number of times Nf in the flowchart of FIG. 9;

【図13】図9のフローチャートの回数Nn算出の部分
のサブルーチンを示すフローチャートである。
FIG. 13 is a flowchart showing a subroutine of a part for calculating the number of times Nn in the flowchart of FIG. 9;

【図14】従来例を示す構成図である。FIG. 14 is a configuration diagram showing a conventional example.

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

3 PSD 10 投光回路 14 IRED 20、30 第2の電流電圧変換回路 40 増幅回路 60 積分回路 V1〜V5 参照電圧 Nn、Nf カウント手段 80 演算手段(CPU) Reference Signs List 3 PSD 10 Light emitting circuit 14 IRED 20, 30 Second current-voltage conversion circuit 40 Amplifying circuit 60 Integrating circuit V1 to V5 Reference voltage Nn, Nf Counting means 80 Operation means (CPU)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】被写体へパルス光を照射する投光手段と、
前記投光手段の照射光が被写体で反射する光を受光する
受光手段と、前記受光手段の出力電流を電圧に変換する
電流電圧変換回路と、前記電流電圧変換回路の出力信号
を増幅する増幅回路と、外部信号により放電可能な電荷
蓄積手段を含み前記増幅回路の出力信号を積分する積分
回路と、複数の参照電圧を発生する電圧発生手段と、前
記参照電圧のいずれかを選択する電圧選択手段と、前記
電圧選択手段によって選択された電圧および前記積分回
路の出力を比較する比較手段と、前記投光手段の投光開
始から前記比較手段の出力が変化するまでの投光回数を
カウントするカウント手段と、測距動作に先立つ投光動
作に基づく前記積分回路の出力および前記カウント手段
の出力から測距時に使用する参照電圧および前記積分回
路の電荷蓄積素子の放電回数を算出する演算手段とを有
することを特徴とするカメラ用測距装置。
A light projecting means for irradiating a subject with pulsed light;
Light receiving means for receiving the light reflected by the subject from the light emitted from the light projecting means; a current-voltage conversion circuit for converting an output current of the light receiving means into a voltage; and an amplifier circuit for amplifying an output signal of the current-voltage conversion circuit An integration circuit that includes a charge storage unit that can be discharged by an external signal and integrates an output signal of the amplification circuit; a voltage generation unit that generates a plurality of reference voltages; and a voltage selection unit that selects one of the reference voltages Comparing means for comparing the voltage selected by the voltage selecting means with the output of the integrating circuit; and counting for counting the number of light projections from the start of light emission of the light emitting means until the output of the comparing means changes. Means, a reference voltage used at the time of distance measurement, and a charge storage element of the integration circuit based on an output of the integration circuit and an output of the counting means based on a light projecting operation prior to the distance measurement operation. Camera distance measuring apparatus characterized by having a calculating means for calculating the number of discharges.
JP15944195A 1994-07-20 1995-06-26 Camera ranging device Expired - Fee Related JP3321336B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP15944195A JP3321336B2 (en) 1994-07-20 1995-06-26 Camera ranging device
GB9514857A GB2291552B (en) 1994-07-20 1995-07-20 Distance measuring apparatus

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP16803494 1994-07-20
JP6-168034 1994-07-20
JP15944195A JP3321336B2 (en) 1994-07-20 1995-06-26 Camera ranging device

Publications (2)

Publication Number Publication Date
JPH0886956A JPH0886956A (en) 1996-04-02
JP3321336B2 true JP3321336B2 (en) 2002-09-03

Family

ID=26486249

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15944195A Expired - Fee Related JP3321336B2 (en) 1994-07-20 1995-06-26 Camera ranging device

Country Status (2)

Country Link
JP (1) JP3321336B2 (en)
GB (1) GB2291552B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE9601742L (en) * 1996-05-07 1997-11-08 Besam Ab Ways to determine the distance and position of an object

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4642451A (en) * 1983-04-01 1987-02-10 Canon Kabushiki Kaisha Distance measuring device with various controls of the light emitting means

Also Published As

Publication number Publication date
JPH0886956A (en) 1996-04-02
GB2291552A (en) 1996-01-24
GB2291552B (en) 1998-02-11
GB9514857D0 (en) 1995-09-20

Similar Documents

Publication Publication Date Title
US6415241B1 (en) Distance measurement system
US5444511A (en) Distance measuring device for camera
JP3321336B2 (en) Camera ranging device
JP3337868B2 (en) Camera ranging device
JP3509282B2 (en) Camera ranging device
JP3361179B2 (en) Camera ranging device
JP3163405B2 (en) Camera ranging device
JP3174941B2 (en) Camera ranging device
JP3579524B2 (en) Distance measuring device and distance measuring method
JP3481994B2 (en) Camera ranging device
JP3321222B2 (en) Distance measuring device
JPH07253321A (en) Distance measuring device for camera
US6323940B1 (en) Distance measurement system
JP3234999B2 (en) Camera ranging device
JP3232421B2 (en) Distance measuring device
US6292257B1 (en) Distance measurement system
JP2000214375A (en) Range finder device
JPH09196664A (en) Distance measuring device for camera
JP3389406B2 (en) Camera ranging device
JP3749638B2 (en) Ranging device
JP3051033B2 (en) Distance measuring device
JP3425509B2 (en) Camera ranging device
JP2001208538A (en) Distace measuring equipment
JPH06249650A (en) Range finder for camera
JP3288984B2 (en) Distance measuring device and automatic focusing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees