JP3408310B2 - Camera ranging device - Google Patents
Camera ranging deviceInfo
- Publication number
- JP3408310B2 JP3408310B2 JP4881194A JP4881194A JP3408310B2 JP 3408310 B2 JP3408310 B2 JP 3408310B2 JP 4881194 A JP4881194 A JP 4881194A JP 4881194 A JP4881194 A JP 4881194A JP 3408310 B2 JP3408310 B2 JP 3408310B2
- Authority
- JP
- Japan
- Prior art keywords
- gain
- distance measuring
- camera
- photoelectric signal
- data
- 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
Links
Landscapes
- Measurement Of Optical Distance (AREA)
- Focusing (AREA)
- Automatic Focus Adjustment (AREA)
- Length Measuring Devices By Optical Means (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、アクティブ方式のカメ
ラ用測距装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an active type distance measuring device for a camera.
【0002】[0002]
【従来の技術】カメラに用いられているアクティブ式測
距装置は、被写体に向かって測距光を投光する投光部
と、投光部から一定の基線長だけ隔てて配置された受光
部と、受光部からの信号を処理する信号処理部とからな
る。投光部には一般に近赤外光を発光する発光ダイオー
ド(IRED)が利用され、そこからの近赤外光が測距
光として被写体に向かって投光される。測距光のうち、
被写体で反射された光は受光レンズを通って受光部に入
射する。受光部には、例えばPSD(Position Sensiti
ve Devise )が利用されており、その一対の出力端子に
は光の入射位置に対応した光電信号が現れる。そして、
この光電信号に基づいて信号処理部で三角測距演算を行
うことによって被写体までの距離を算出することができ
るから、これに対応して撮影レンズのピント位置を決め
ることができる。2. Description of the Related Art An active distance measuring device used in a camera includes a light projecting portion that projects distance measuring light toward a subject and a light receiving portion that is arranged apart from the light projecting portion by a fixed baseline length. And a signal processing unit that processes a signal from the light receiving unit. A light emitting diode (IRED) that emits near-infrared light is generally used for the light projecting unit, and near-infrared light from the light-emitting diode is projected toward a subject as distance measuring light. Of the distance measuring light,
The light reflected by the subject passes through the light receiving lens and enters the light receiving portion. For example, a PSD (Position Sensiti
ve Devise) is used, and a photoelectric signal corresponding to the incident position of light appears at the pair of output terminals. And
Since the distance to the object can be calculated by performing the triangulation calculation in the signal processing unit based on this photoelectric signal, the focus position of the taking lens can be determined correspondingly.
【0003】PSDの一対の出力端子に現れる光電信号
の出力レベルは、被写体までの距離が近いときと遠いと
きとで変化するが、これらの光電信号の比をとることに
よって、その出力レベルに依存しない形でPSDに対す
る光の入射位置を検出することができる。ところが、上
記光電信号の出力レベルが低いままで両信号の比を求め
たときと、出力レベルが高いままで比を求めたときとで
は、検出精度にバラツキが出やすい。The output level of the photoelectric signal appearing at the pair of output terminals of the PSD varies depending on whether the distance to the subject is short or far, but it depends on the output level by taking the ratio of these photoelectric signals. It is possible to detect the incident position of light on the PSD without performing the process. However, the detection accuracy tends to vary between when the ratio of both signals is obtained while the output level of the photoelectric signal is low, and when the ratio is obtained while the output level is high.
【0004】また、PSDからの光電信号はアナログ量
であるため、これらの信号をデジタル量に変換してから
比を求めるのが通常であるが、出力レベルが低い光電信
号をそれぞれAD変換して比を求めた場合と、出力レベ
ルが高い光電信号をそれぞれAD変換して比を求めた場
合とでは、やはり演算の精度に差が出る。こうした不都
合を解消するために、特開平4−199013号公報記
載のように、PSDの出力端子にそれぞれのチャンネル
ごとにゲインコントロール回路を含むアンプ系を接続
し、両チャンネルからの光電信号をAD変換したとき
に、各々のデジタル値の和が一定の範囲の値になるよう
にゲインコントロール回路にフィードバックをかけて、
各々の光電信号を同じ増幅率で増幅することが行われて
いる。Further, since the photoelectric signals from the PSD are analog amounts, it is usual to convert these signals into digital amounts and then obtain the ratio. However, the photoelectric signals with low output levels are AD-converted respectively. There is still a difference in calculation accuracy between the case where the ratio is obtained and the case where the ratio is obtained by AD converting each photoelectric signal having a high output level. In order to eliminate such inconvenience, as described in Japanese Patent Laid-Open No. 4-199013, an amplifier system including a gain control circuit for each channel is connected to the output terminal of the PSD, and photoelectric signals from both channels are AD-converted. When doing, feedback is applied to the gain control circuit so that the sum of each digital value becomes a value in a certain range,
Amplification of each photoelectric signal with the same amplification factor is performed.
【0005】[0005]
【発明が解決しようとする課題】ところが、上記ゲイン
コントロール回路を含め、各チャンネルに用いられてい
る回路素子にはバラツキがあるため、ゲイン自体が両チ
ャンネル間で一定にならない。したがって上記のように
ゲインコントロールを行うには、まず両チャンネルの増
幅率を等価にする必要があり、このためアンプ系を構成
する回路部品に精度の高いものが要求されていた。ま
た、高精度の回路部品を用いたとしても、依然として多
少のバラツキは避けることができないため、少なくとも
一方のチャンネルにポテンショメータ等の調整用の回路
素子を組み込んで両チャンネルの増幅率の合わせ込み作
業を必要としており、高精度の回路部品の使用及びその
調整作業のために、ローコスト化が困難であった。However, since the circuit elements used for each channel, including the above gain control circuit, have variations, the gain itself is not constant between both channels. Therefore, in order to perform the gain control as described above, it is first necessary to equalize the amplification factors of both channels, and therefore, highly accurate circuit components constituting the amplifier system have been required. Even if high precision circuit parts are used, some variation still cannot be avoided.Therefore, at least one channel must be equipped with a circuit element for adjustment such as a potentiometer to adjust the gain of both channels. It is necessary, and it is difficult to reduce the cost because of the use of high-precision circuit parts and the adjustment work.
【0006】また、測距精度を高めるためには、被写体
に複数回の投光を行ってその都度光電信号をサンプリン
グして測距演算を行い、その平均値から被写体距離を決
定する手法が採られるが、投光の周波数が例えば1kH
z程度の高周波になると、光電信号をサンプリングする
タイミングを光電信号のピークに的確に合わせておかな
いと信号レベルが小さくなってS/N比が悪くなる。従
来ではこれらの調節のためにも高周波応答性に優れた調
節用の素子が不可欠で、また調節作業も面倒であった。Further, in order to improve the distance measurement accuracy, a method is adopted in which the object is projected a plurality of times, the photoelectric signal is sampled each time, the distance calculation is performed, and the object distance is determined from the average value. However, the frequency of light emission is, for example, 1 kHz.
At a high frequency of about z, the signal level becomes small and the S / N ratio deteriorates unless the timing of sampling the photoelectric signal is accurately adjusted to the peak of the photoelectric signal. Conventionally, an adjusting element excellent in high-frequency response is indispensable for these adjustments, and the adjusting work is troublesome.
【0007】本発明は従来技術における上記問題点を解
消するためになされたもので、精度が低い回路部品を用
いながらも両チャンネル間の面倒な調節作業を必要とせ
ず、しかも測距精度を充分に維持することができるカメ
ラ用測距装置を提供することを目的とする。The present invention has been made in order to solve the above-mentioned problems in the prior art, and does not require a troublesome adjustment work between both channels, while using circuit parts with low accuracy, and has sufficient distance measuring accuracy. An object of the present invention is to provide a distance measuring device for a camera that can be maintained at
【0008】[0008]
【課題を解決するための手段】本発明は上記目的を達成
するために、測距プログラムを格納したメインプログラ
ムメモリとは別にサブメモリを設け、このサブメモリに
チャンネル間の回路特性を合わせるために必要なデータ
をカメラごとに予め書き込んでおくことができるように
してある。このようなデータとしては、ゲインコントロ
ール回路によって決められるゲインの最大値及び最小値
があり、これらの値は受光素子出力のレベル不足による
測距演算の精度の低下、または受光素子及び各チャンネ
ルのアンプ系のダイナミックレンジを考慮して決められ
る。さらに、光電信号の出力レベルを適切な範囲にする
ためにゲインコントロールを行ったとき、そのゲインの
値が予め前記サブメモリに書き込まれた最大値と最小値
との間に含まれない場合には、測距のためのゲインを適
切な範囲に設定し得ないことを意味するが、この場合に
は撮影レンズのピント合わせ位置を過焦点位置にセット
するか、又は被写体距離が近過ぎて光電信号がオーバー
フローしていることを表す近距離警告を行うことによっ
て、無意味な測距処理が継続されることを防ぐようにし
ている。In order to achieve the above object, the present invention provides a sub memory separately from a main program memory storing a distance measuring program, and adjusts circuit characteristics between channels to this sub memory. The necessary data can be written in advance for each camera. As such data, there are the maximum value and the minimum value of the gain determined by the gain control circuit. These values reduce the accuracy of the distance measurement calculation due to the insufficient level of the output of the light receiving element, or the amplifier of the light receiving element and each channel. It is decided in consideration of the dynamic range of the system. Further, when the gain control is performed to set the output level of the photoelectric signal to an appropriate range, if the gain value is not included between the maximum value and the minimum value previously written in the sub memory, , It means that the gain for distance measurement cannot be set in an appropriate range, but in this case, the focus position of the shooting lens is set to the hyperfocal position, or the subject distance is too short and the photoelectric signal By issuing a short-distance warning indicating that the overflow has occurred, meaningless distance measurement processing is prevented from being continued.
【0009】さらに、上記サブメモリには、チャンネル
ごとにゲインコントロールの仕方に差がある場合にはそ
のゲイン調節差に関するデータを書き込み、また光電信
号をその波形のピークでサンプリングするタイミングを
合わせるためのタイミングデータを書き込むことができ
る。そして、これらのデータを測距プログラムの実行時
に適宜利用することによって、各チャンネル間の電気的
特性を正確に合わせ込まなくても、正確な測距を行うこ
とができるようになる。Further, when there is a difference in gain control method for each channel, data relating to the gain adjustment difference is written in the sub memory, and the timing for sampling the photoelectric signal at the peak of the waveform is adjusted. Timing data can be written. By appropriately using these data when executing the distance measurement program, accurate distance measurement can be performed without accurately matching the electrical characteristics between the channels.
【0010】[0010]
【実施例】本発明を用いたカメラの電気的構成を概略的
に示した図2において、投光部2は測距光として近赤外
光を発するIRED3と、投光レンズ4とから構成さ
れ、投光レンズ4の光軸4aは撮影レンズ5の光軸5a
とほぼ平行となっている。IRED3からの測距光は、
投光レンズ4によって細径のビーム状になって撮影画面
の中央部に指向している。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In FIG. 2 schematically showing the electrical construction of a camera using the present invention, a light projecting section 2 comprises an IRED 3 which emits near infrared light as distance measuring light, and a light projecting lens 4. , The optical axis 4a of the projection lens 4 is the optical axis 5a of the taking lens 5.
It is almost parallel to. The ranging light from IRED3
The light projecting lens 4 forms a beam having a small diameter and directs it toward the center of the photographic screen.
【0011】受光部7は受光レンズ8とPSD9とから
構成され、受光レンズ8の光軸8aも撮影レンズ光軸5
aとほぼ平行になっている。PSD9は、入射光の光量
及び入射位置に応じた信号を各々の出力端子9a,9b
から出力する。図2から明らかなように、被写体S1ま
での距離が近いほどその反射光はPSD9の端子9b側
に入射することになるが、出力端子9a,9bからそれ
ぞれ得られる光電信号の和と差との比をとることによっ
て、入射光の光量に依存せずに入射位置に対応した信号
を得ることができる。なお、PSD9は水平方向に関し
ては識別作用をもっておらず、垂直方向での入射高さが
同じであれば、水平方向での入射位置が異なっても出力
端子9a,9bからの光電信号の和と差との比は等しく
なる。The light receiving portion 7 is composed of a light receiving lens 8 and a PSD 9, and the optical axis 8a of the light receiving lens 8 is also the optical axis 5 of the photographing lens.
It is almost parallel to a. The PSD 9 outputs a signal according to the amount of incident light and the incident position to each output terminal 9a, 9b.
Output from. As is clear from FIG. 2, the shorter the distance to the subject S1, the more the reflected light is incident on the side of the terminal 9b of the PSD 9, but the sum and difference between the photoelectric signals obtained from the output terminals 9a and 9b, respectively. By taking the ratio, it is possible to obtain a signal corresponding to the incident position without depending on the amount of incident light. Note that the PSD 9 does not have a discriminating action in the horizontal direction, and if the incident heights in the vertical direction are the same, the difference between the photoelectric signals from the output terminals 9a and 9b and the difference will not occur even if the incident positions in the horizontal direction are different. And the ratio will be equal.
【0012】IRED3はオートフォーカスIC12か
らの信号により、ドライバ11を介して発光制御され
る。オートフォーカスIC12は、マイクロコンピュー
タ14からのコマンドにしたがって予め決められた測距
シーケンスを実行し、ドライバ11を作動させる他に、
PSD9の出力端子9a,9bからの光電信号を増幅,
サンプルホールド処理してマイクロコンピュータ14に
入力する。The IRED 3 is controlled by the signal from the autofocus IC 12 via the driver 11. The autofocus IC 12 executes a predetermined distance measuring sequence in accordance with a command from the microcomputer 14 to operate the driver 11, and
Amplify the photoelectric signals from the output terminals 9a and 9b of the PSD 9,
The sample and hold processing is performed and the result is input to the microcomputer 14.
【0013】マイクロコンピュータ14にはADコンバ
ータ15が内蔵されており、オートフォーカスIC12
からチャンネルごとに入力されてくる光電信号を、アナ
ログ量からデジタル量に変換する。マイクロコンピュー
タ14は、こうしてチャンネルごとに入力された信号に
基づいて測距演算を行い、被写体までの距離に対応した
距離信号を算出する。そして、この距離信号に対応して
レンズ移動回路16を介してモータ17を駆動し、撮影
レンズ5は被写体距離に対応したセット位置に移動して
ピント合わせが行われる。The microcomputer 14 has a built-in AD converter 15 and has an autofocus IC 12
The photoelectric signal input from each channel from is converted from an analog amount to a digital amount. The microcomputer 14 performs distance measurement calculation based on the signal thus input for each channel, and calculates a distance signal corresponding to the distance to the subject. Then, in response to this distance signal, the motor 17 is driven via the lens moving circuit 16, the photographing lens 5 moves to the set position corresponding to the subject distance, and focusing is performed.
【0014】マイクロコンピュータ14には汎用型のも
のが使用され、測光回路19で検出されてからADコン
バータ20でデジタル変換された測光データも入力され
る。マイクロコンピュータ14は測光データに基づいて
最適露光条件を算出し、露出制御回路21を介してステ
ッピングモータ22を駆動し、プログラムシャッタ24
を前記最適露光条件が満足される絞り値,シャッタ速度
で開閉させる。また、撮影後にはフイルム移送回路25
によりフイルム給送モータ26を駆動してフイルム1コ
マ送りが行われる。A general-purpose microcomputer is used as the microcomputer 14, and photometric data which is detected by the photometric circuit 19 and then digitally converted by the AD converter 20 is also input. The microcomputer 14 calculates the optimum exposure condition based on the photometric data, drives the stepping motor 22 via the exposure control circuit 21, and causes the program shutter 24 to operate.
Is opened and closed at an aperture value and shutter speed that satisfy the optimum exposure conditions. Also, the film transfer circuit 25 is used after photographing.
Thus, the film feeding motor 26 is driven to feed the film one frame.
【0015】マイクロコンピュータ14には外部機器の
接続端子14aが設けられ、カメラの組立完了時に測距
装置の作動を確認したり、さらには的確な作動が行われ
るように、各種の調節データを端末機28からマイクロ
コンーピュータ14に入力するときに用いられる。そし
て、端末機28から入力されたデータの一部は、測距処
理の実行に必要なデータを格納するためのサブメモリと
して用いられているEEPROM(Electrically Erasa
ble Programable ROM )29に書き込みあるいは消去す
ることができる。The microcomputer 14 is provided with a connection terminal 14a for external equipment, and various adjustment data is sent to the terminal so that the operation of the distance measuring device can be confirmed when the camera is completely assembled and the operation can be performed accurately. It is used when inputting from the machine 28 to the micro computer 14. A part of the data input from the terminal unit 28 is an EEPROM (Electrically Erasa) which is used as a sub memory for storing the data necessary for executing the ranging process.
ble programmable ROM) 29.
【0016】図1はオートフォーカスIC12及びマイ
クロコンピュータ14の構成を概略的に示している。P
SD9の出力端子9a,9bから出力される光電信号
は、それぞれチャンネルごとにプリアンプ30a,30
b、ゲインコントロール回路31a,31b、サンプル
ホールド回路32a,32b、バッファアンプ33a,
33b、メインアンプ34a,34bを経てマイクロコ
ンピュータ14のADコンバータ15に入力される。ま
た、オートフォーカスIC12は、さらに制御回路3
5,ゲインコントローラ36,サンプリングパルス発生
器37を含む。FIG. 1 schematically shows the structures of the autofocus IC 12 and the microcomputer 14. P
The photoelectric signals output from the output terminals 9a and 9b of the SD9 are preamplifiers 30a and 30 for the respective channels.
b, gain control circuits 31a and 31b, sample hold circuits 32a and 32b, buffer amplifier 33a,
It is input to the AD converter 15 of the microcomputer 14 via 33b and the main amplifiers 34a and 34b. In addition, the autofocus IC 12 further includes the control circuit 3
5, a gain controller 36 and a sampling pulse generator 37 are included.
【0017】プリアンプ30a,30bは出力端子9
a,9bからの光電流信号を電圧信号に変換する。ゲイ
ンコントロール回路31a,31bは、各々に入力され
た電圧信号を適当なゲインで増幅する。各々のゲインの
値はゲインコントローラ36によってチャンネルごとに
決められる。サンプルホールド回路32a,32bは、
サンプリングパルス発生器37からサンプリングパルス
が入力されたタイミングでゲインコントロール回路31
a,31bからの電圧信号をサンプルホールドする。ホ
ールドされた電圧信号は、バッファアンプ33a,33
bを経てメインアンプ34a,34bで一定のゲインの
もとで増幅される。The preamplifiers 30a and 30b have an output terminal 9
The photocurrent signals from a and 9b are converted into voltage signals. The gain control circuits 31a and 31b amplify the voltage signals input to each with appropriate gains. The gain controller 36 determines the value of each gain for each channel. The sample hold circuits 32a and 32b are
At the timing when the sampling pulse is input from the sampling pulse generator 37, the gain control circuit 31
The voltage signals from a and 31b are sampled and held. The held voltage signal is transferred to the buffer amplifiers 33a and 33a.
After passing through b, the main amplifiers 34a and 34b are amplified under a constant gain.
【0018】制御回路35はシリアルイン−パラレルア
ウトのシフトレジスタ(8ビット)を備えており、この
シフトレジスタには、シリアルデータパルス「AFS
D」によってマイクロコンピュータ14から送信されて
くる制御データが書き込まれる。この制御データは、ゲ
インデータ「GAIN」(5ビット),IRED選択デ
ータ「IRED」(2ビット),ON−OFFデータ
「SET」(1ビット)とからなり、ゲインデータはゲ
インコントローラ36によって読み取られ、ゲインコン
トロール回路31a,31bのゲインを決定するのに用
いられる。また、IRED選択データ及びON−OFF
データは、IRED3の点灯/消灯を決定する。The control circuit 35 has a serial-in-parallel-out shift register (8 bits), and this shift register has a serial data pulse "AFS".
The control data transmitted from the microcomputer 14 is written by "D". This control data is composed of gain data “GAIN” (5 bits), IRED selection data “IRED” (2 bits), ON-OFF data “SET” (1 bit), and the gain data is read by the gain controller 36. , Used to determine the gains of the gain control circuits 31a and 31b. Also, IRED selection data and ON-OFF
The data determines whether the IRED3 is turned on or off.
【0019】制御回路35にはさらにマイクロコンピュ
ータ14から制御パルス「AFLCK」が入力され、こ
の制御パルスは制御データのラッチやIRED3の発光
タイミングを決定するのに用いられる他、サンプリング
パルス発生器37にも送られ、サンプルホルード回路3
2a,32bによるデータのラッチタイミングを決定す
るのにも用いられる。A control pulse "AFLCK" is further input from the microcomputer 14 to the control circuit 35. The control pulse is used to latch the control data and determine the light emission timing of the IRED 3, and also to the sampling pulse generator 37. Sample hold circuit 3
It is also used to determine the data latch timing by 2a and 32b.
【0020】マイクロコンピュータ14は、CPU4
0,シリアルポート41,A/Dコンバータ15の他、
測距シーケンス実行用のメイン測距プログラムを格納し
たROM42及び測距シーケンス実行に際して得られる
データや各種フラグを一時的に格納するRAM43から
なる。シリアルポート41は、CPU40からのコマン
ドにより出力端子の切替えが行われ、前述したシリアル
データパルス「AFSD」あるいは制御パルス「AFL
CK」のいずれかを制御回路35に入力する。ADコン
バータ15は、オートフォーカスIC12のメインアン
プ34a,34bから送られてくるアナログ信号電圧を
その出力レベルに対応して8ビットのデジタル値(十進
数で0〜255を表す)に変換する。The microcomputer 14 has a CPU 4
0, serial port 41, A / D converter 15,
It comprises a ROM 42 storing a main distance measuring program for executing the distance measuring sequence and a RAM 43 temporarily storing data and various flags obtained in executing the distance measuring sequence. The output port of the serial port 41 is switched by a command from the CPU 40, and the serial data pulse “AFSD” or the control pulse “AFL” described above is selected.
CK ”is input to the control circuit 35. The AD converter 15 converts the analog signal voltage sent from the main amplifiers 34a and 34b of the autofocus IC 12 into an 8-bit digital value (representing 0 to 255 in decimal) corresponding to its output level.
【0021】図3は、制御回路35に用いられている8
ビットのシリアルイン−パラレルアウトのシフトレジス
タ45を概念的に示している。そしてD0〜D4の5ビ
ットには前述したゲインデータ「GAIN」、D5〜D
6の2ビットにはIRED選択データ「IRED」、D
7の1ビットにはON−OFFデータ「SET」がそれ
ぞれ割り当てられている。FIG. 3 shows a circuit used in the control circuit 35.
The bit serial in-parallel out shift register 45 is conceptually shown. The gain data “GAIN” and D5 to D described above are stored in the 5 bits D0 to D4.
2 bits of 6 have IRED selection data "IRED", D
ON-OFF data “SET” is assigned to each 1 bit of 7.
【0022】D0〜D4の5ビットのゲインデータは、
「0」レベルから「31」レベルまでの値が異なるゲイ
ンを表すことができる。また、D5〜D6のIREDの
選択データは、撮影画面内の複数個所に各々測距光を投
光して複数箇所での測距を行うために例えば3個のIR
EDを用いたときに、いずれのIREDを発光させるか
を決めるためのものであるが、本実施例では一個のIR
ED3だけで測距を行うので、この2ビットのデータは
本来不要である。ただし、以下の説明では選択データ
「IRED」として「01」がセットされたときにIR
ED3が選択されたものとして説明する。The 5-bit gain data of D0 to D4 is
The values from the “0” level to the “31” level can represent different gains. Further, the selection data of IRED of D5 to D6 is, for example, three IRs in order to project the distance measuring light at a plurality of places on the photographing screen to measure the distance at a plurality of places.
This is for determining which IRED emits light when using an ED. In the present embodiment, one IRED is used.
Since the distance measurement is performed only by the ED3, this 2-bit data is originally unnecessary. However, in the following description, when "01" is set as the selection data "IRED", the IR
It is assumed that ED3 is selected.
【0023】以下、本発明測距装置の基本的な測距処理
についてフローチャートを参照しながら説明する。カメ
ラのシャッタボタンの半押し操作が行われると、図4に
示したように、ROM42に格納されたメイン測距プロ
グラムがスタートし、まず調整モードか否かが判断され
る。調整モードは、カメラの組立が完了した後に、測距
装置が適正に作動するように、マイクロコンピュータ1
4の接続端子14aに接続した端末機28からの入力デ
ータをEEPROM29に書き込むモードであり、一般
ユーザには使用されることはない。The basic distance measuring process of the distance measuring apparatus of the present invention will be described below with reference to the flow chart. When the shutter button of the camera is half-pressed, the main distance measuring program stored in the ROM 42 is started as shown in FIG. 4, and it is first determined whether or not the adjustment mode is set. The adjustment mode is performed by the microcomputer 1 so that the distance measuring device operates properly after the assembly of the camera is completed.
In this mode, input data from the terminal 28 connected to the connection terminal 14a of No. 4 is written in the EEPROM 29, which is not used by general users.
【0024】通常の状態でユーザが使用する際には測距
処理が実行される。測距処理は、まずEEPROM29
に書き込まれている調節データをRAM43の所定エリ
アにストアしてから開始される。続いて図5に示したよ
うに、オフセット値検出処理,ゲイン決定処理,実測距
処理,被写体距離の逆数算出処理が実行される。オフセ
ット値検出処理では、IRED3を点灯させずに出力端
子9a,9bからどの程度の信号ノイズが出力されてい
るかを検出する目的で行われ、実際の測距時(実測距)
に得られたデータを補正するときに用いられる。なお、
オフセット値を正確に検出するために、出力端子9a,
9bからはそれぞれ複数回(例えば32回)ずつデータ
が取り込まれ、これらの平均値がオフセット値となる。When used by a user in a normal state, distance measurement processing is executed. First, the distance measurement process is performed by the EEPROM 29.
The adjustment data written in is stored in a predetermined area of the RAM 43, and then the operation is started. Subsequently, as shown in FIG. 5, offset value detection processing, gain determination processing, measured distance processing, and reciprocal calculation processing of the object distance are executed. The offset value detection process is performed for the purpose of detecting how much signal noise is output from the output terminals 9a and 9b without turning on the IRED 3, and during actual distance measurement (actual distance measurement).
It is used when correcting the data obtained in. In addition,
In order to accurately detect the offset value, the output terminals 9a,
Data is captured from 9b a plurality of times (for example, 32 times), and the average value of these values becomes the offset value.
【0025】ゲイン決定処理は、実測距を行うときのア
ンプ系のゲインを適切な値に設定するためのもので、被
写体距離が遠くてPSD9からの光電信号の出力レベル
が小さくなるときには大きなゲイン値が設定される。実
測距処理では、IRED3を例えば0.5秒の間に12
8回繰り返し点灯させ、その都度ADコンバータ15か
ら得られたデータを加算する。そして、この加算データ
の平均をとって測距データを得る。こうして得られた測
距データに基づいて被写体距離の逆数の算出処理が行わ
れ、これに基づいて撮影レンズ5のセット位置が決定さ
れる。The gain determination processing is for setting the gain of the amplifier system to an appropriate value when performing the actually measured distance, and when the object distance is long and the output level of the photoelectric signal from the PSD 9 becomes small, a large gain value is obtained. Is set. In the measured distance processing, the IRED3 is set to 12 in 0.5 seconds, for example.
The light is turned on repeatedly eight times, and the data obtained from the AD converter 15 is added each time. Then, the distance measurement data is obtained by averaging the added data. The reciprocal of the object distance is calculated based on the distance measurement data thus obtained, and the set position of the taking lens 5 is determined based on the calculation processing.
【0026】図6はオフセット値検出処理を表すフロー
チャートである。オフセット検出処理時には、シフトレ
ジスタ45にゲインデータ「GAIN」,IRED選択
データ「IRED」,ON−OFFデータ「SET」が
セットされる。このときのゲインデータは、カメラごと
に個別的に決められた最小値「GAINMIN」となっ
ている。例えば「GAINMIN=8」であるときに
は、シフトレジスタ45には「01000000」(2
進数)が設定される。これにより、「GAIN=8」,
「IRED=00」,「SET=0」の各制御データが
設定される。FIG. 6 is a flowchart showing the offset value detection processing. During the offset detection process, the gain data “GAIN”, the IRED selection data “IRED”, and the ON-OFF data “SET” are set in the shift register 45. The gain data at this time is the minimum value “GAINMIN” individually determined for each camera. For example, when “GAINMIN = 8”, the shift register 45 stores “01000000” (2
The base number is set. As a result, "GAIN = 8",
Each control data of “IRED = 00” and “SET = 0” is set.
【0027】この制御データの設定は、図7のタイミン
グチャートに示したP1の時点、すなわち制御データの
送信後、制御パルスAFLCKがローレベルになったと
きにラッチされる。さらに上記制御データの送信後に
は、CPU24内の所定レジスタに「COUNT=3
2」がセットされる。The setting of the control data is latched at the time of P1 shown in the timing chart of FIG. 7, that is, when the control pulse AFLCK becomes low level after the control data is transmitted. Further, after the control data is transmitted, a "COUNT = 3" is stored in a predetermined register in the CPU 24.
2 ”is set.
【0028】シフトレジスタ45にセットされた制御デ
ータの内、「GAIN=8」のデータはゲインコントロ
ーラ36を介してゲインコントロール回路31a,31
bに供給され、ゲインコントロール回路31a,31b
のゲインは各々「8」に設定される。なお、基本的には
ゲインの最大値「GAINMAX」の値は「31」、ゲ
インの最小値「GAINMIN」の値は「0」である
が、これらの値はPSD9以降のアンプ系に対応してそ
れぞれカメラごとに個別的な値が決められ、それぞれE
EPROM29からRAM43にストアされている。Among the control data set in the shift register 45, the data of "GAIN = 8" is gain control circuit 31a, 31 through the gain controller 36.
b to the gain control circuits 31a and 31b.
Are set to "8". Although the maximum gain “GAINMAX” is basically “31” and the minimum gain “GAINMIN” is “0”, these values correspond to PSD9 and later amplifier systems. Individual values are set for each camera, and E
It is stored in the RAM 43 from the EPROM 29.
【0029】制御データの送信後、第1,第2チャンネ
ルからの光電信号はADコンバータ15でデジタルデー
タADDATAに変換され、チャンネルごとにマイクロ
コンピュータ14により読み込まれる。この読み込み処
理が行われるときには、図8のフローチャートに示した
ように、まず制御パルス「AFLCK」がローレベルに
される。その後、シリアルデータパルス「AFSD」が
ローレベルになり、実測距時では、次にハイレベルにな
ったタイミングP2でIRED3の点灯が行われる。な
お、オフセット値の検出時にはIRED3は非点灯のま
まである。After transmitting the control data, the photoelectric signals from the first and second channels are converted into digital data ADDATA by the AD converter 15 and read by the microcomputer 14 for each channel. When this reading process is performed, the control pulse "AFLCK" is first set to the low level as shown in the flowchart of FIG. After that, the serial data pulse “AFSD” becomes low level, and at the time of actually measured distance, the IRED3 is turned on at the timing P2 when it becomes next high level. Note that the IRED 3 remains unlit when the offset value is detected.
【0030】タイミングP2からΔT1経過するとシリ
アルデータパルス「AFSD」が再びハイレベルにな
る。このタイミングP3でサンプリングパルス発生器3
7からサンプルホールド回路32a,32bにサンプリ
ングパルスが送出され、ゲインコントロール回路31
a,31bからの光電信号が各々その波形のピークでホ
ールドされる。そして、IRED3が点灯されたタイミ
ングP2から、各チャンネルの光電信号がピークに達す
るまでのずれΔT1の値は、やはりPSD9以降のアン
プ系に対応してそれぞれカメラごとに異なっているのが
通常であるため、このΔT1の値もカメラごとに適切な
値が決められ、EEPROM29に「SHTIME」と
して書き込まれている。When ΔT1 has elapsed from the timing P2, the serial data pulse "AFSD" becomes high level again. At this timing P3, the sampling pulse generator 3
A sampling pulse is sent from 7 to the sample hold circuits 32a and 32b, and the gain control circuit 31
The photoelectric signals from a and 31b are held at the peaks of their waveforms. The value of the deviation ΔT1 from the timing P2 when the IRED3 is turned on until the photoelectric signal of each channel reaches a peak is usually different for each camera, corresponding to the amplifier system after PSD9. Therefore, an appropriate value for this ΔT1 is determined for each camera and is written in the EEPROM 29 as “SHTIME”.
【0031】タイミングP2から一定時間ΔT2が経過
するとシリアルデータパルス「AFSD」がローレベル
になり、実測距時にはIRED3の発光停止のタイミン
グ信号として用いられる。タイミングP3でサンプルホ
ールドされた光電信号は、次にチャンネルごとに逐次A
Dコンバータ15でAD変換される。AD変換後のデジ
タルデータADDATAは、それぞれチャンネルごとの
測距デーAFD1,AFD2としてCPU40に読み込
まれる。The serial data pulse "AFSD" becomes low level after a lapse of a predetermined time ΔT2 from the timing P2, and is used as a timing signal for stopping the light emission of the IRED3 during the actual measurement distance. The photoelectric signal sampled and held at the timing P3 is then sequentially A
AD conversion is performed by the D converter 15. The digital data ADDATA after AD conversion is read by the CPU 40 as distance measurement data AFD1 and AFD2 for each channel.
【0032】このとき、一方の測距データAFD2は入
力されたデジタル値そのままで読み込まれるが、他方の
測距データAFD1については補正係数「GPARA」
が乗算される。これにより、各チャンネルのゲインコン
トロール回路31a,31bのゲインを同じにしたまま
で、チャンネル間の誤差を補正することができるように
なる。したがって、ゲインコントロール回路31a,3
1bのゲインを個別に設定する不利を避けることができ
る。At this time, one distance measurement data AFD2 is read as it is as the input digital value, but the other distance measurement data AFD1 is corrected by the correction coefficient "GPARA".
Is multiplied. This makes it possible to correct the error between the channels while keeping the gains of the gain control circuits 31a and 31b of the respective channels the same. Therefore, the gain control circuits 31a, 3a
The disadvantage of individually setting the gain of 1b can be avoided.
【0033】こうして測距データAFD1,AFD2が
読み込まれた後、シリアルデータパルス「AFSD」,
制御パルス「AFLCK」の各々がハイレベルになり、
制御パルス「AFLCK」がハイレベルになってからΔ
T3経過した時点で1サイクルの測距データ読み込み処
理が完了する。After the distance measurement data AFD1 and AFD2 are read in this way, the serial data pulse "AFSD",
Each of the control pulses “AFLCK” becomes high level,
After the control pulse “AFLCK” goes high, Δ
When T3 has elapsed, one cycle of distance measurement data reading processing is completed.
【0034】以上の繰り返しにより、各チャンネルごと
に32個の測距データAFD1,AFD2が得られる
が、これらはそれぞれチャンネルごとに加算され、読み
込み回数「32」で除算される。これによりチャンネル
ごとのオフセット値OFS1,OFS2が求められるこ
とになる。なお、オフセット値の検出処理を行ったとき
に、ADコンバータ15から出力されるデジタルデータ
ADDATAの値が一定の範囲に収まるように各チャン
ネルのアンプ系の回路定数が設定されている。したがっ
て、オフセット値の検出処理時にADコンバータ15か
ら出力されるデジタルデータADDATAの値が零やマ
イナスになることはない。By repeating the above process, 32 pieces of distance measurement data AFD1 and AFD2 are obtained for each channel. These are added for each channel and divided by the number of reading times "32". As a result, the offset values OFS1 and OFS2 for each channel are obtained. The circuit constants of the amplifier system of each channel are set so that the value of the digital data ADDATA output from the AD converter 15 falls within a certain range when the offset value detection processing is performed. Therefore, the value of the digital data ADDATA output from the AD converter 15 during the offset value detection process does not become zero or minus.
【0035】なお、後述するゲイン決定処理でも行われ
るように、上記のオフセット値検出処理時に、測距デー
タAFD1,AFD2を読み込むときにその値を監視
し、その値が小さ過ぎたり大き過ぎたりした場合にはオ
ーバーカウンタを1ずつインクリメントし、例えば32
回の読み込みの中でオーバーカウント値が「4」になっ
たときには、再度オフセット値検出処理をやり直すよう
にしてもよい。また、オーバーカウント値が「3」以下
であるときには、そのときの測距データを除いて平均値
を算出すればよい。As will be described later in gain determination processing, during the above-described offset value detection processing, the values are monitored when reading the distance measurement data AFD1 and AFD2, and the values are too small or too large. In this case, the over counter is incremented by one, for example 32
The offset value detection process may be performed again when the overcount value becomes “4” during the reading. When the overcount value is "3" or less, the average value may be calculated excluding the distance measurement data at that time.
【0036】上記オフセット値検出処理の後には、図9
及び図10に示したゲイン決定処理が行われる。ゲイン
決定処理では、まず初期ゲインとしてEEPROM29
からRAM43に展開されている「GAINMIN」が
設定される。そして、RAM43上の「SUBCNT」
エリアにデータ「1」がセットされる他、RAM43あ
るいはCPU40内の適宜のレジスタに、ステップST
1で示した各データがセットされる。なお、ST1に挙
げたデータは以下の内容をもつ。After the above offset value detection processing, FIG.
And the gain determination process shown in FIG. 10 is performed. In the gain determination process, first, the EEPROM 29 is set as the initial gain.
Is set to "GAINMIN" expanded in the RAM 43. Then, "SUBCNT" on the RAM 43
The data "1" is set in the area, and step ST is set in the RAM 43 or an appropriate register in the CPU 40.
Each data indicated by 1 is set. The data listed in ST1 has the following contents.
【0037】OVCNT : 各チャンネルごとに読み
取ったデータが過小あるいは過大であるときの読み込み
許容回数
AFADD : 各チャンネルごとに得られたデータを
加算し、オフセット値を減算した値
ADSUM1: 第1チャンネルのデータの加算値
ADSUM2: 第2チャンネルのデータの加算値
PRECNT: 同一ゲインでのデータ読み込み回数
UNDフラグ: 読み込みデータが過少のときにセット
されるフラグ
OVフラグ : 読み込みデータが過大のときにセット
されるフラグ
CNT : データ読み込み回数OVCNT: Permissible number of readings when the data read for each channel is too small or too large AFADD: Value obtained by adding the data obtained for each channel and subtracting the offset value ADSUM1: Data of the first channel ADSUM2: Addition value of the second channel data PRECNT: Number of times data is read with the same gain UND flag: Flag set when the read data is too small OV flag: Flag that is set when the read data is too large CNT: Data read count
【0038】ST1の初期セットの後、ゲインデータ
「GAINMIN」、IRED選択データ「01」、O
N−OFFデータ「1」とともに制御回路35内のシフ
トレジスタ45に送信される。そして、図7及び図8に
示したように、各チャンネルごとにデータの読み込みが
開始される。After the initial setting of ST1, gain data "GAINMIN", IRED selection data "01", O
It is transmitted to the shift register 45 in the control circuit 35 together with the N-OFF data “1”. Then, as shown in FIGS. 7 and 8, reading of data is started for each channel.
【0039】各チャンネルごとに読み込まれた測距デー
タAFD1,AFD2の値が、標準的な範囲に属してい
るか否かがステップST2,ST3で判断される。これ
らの測距データは8ビットのデジタル値で表され、
「0」〜「255」の大きさをもつが、これらの値が基
準最小値「5」よりも小さいか、あるいは基準最大値
「230」よりも大きいかがチェックされる。このチェ
ックは、ゲインコントロール回路31a,31bに設定
したゲインが「GAINMIN」が適切かどうかを確認
するためのものである。そして、適切であると判断され
た場合には、各チャンネルごとの測距データAFD1,
AFD2は、それぞれ加算値ADSUM1,ADSUM
2としてRAM43に格納される。It is determined in steps ST2 and ST3 whether or not the values of the distance measurement data AFD1 and AFD2 read for each channel belong to the standard range. These distance measurement data are represented by 8-bit digital values,
It has a size of "0" to "255", and it is checked whether these values are smaller than the reference minimum value "5" or larger than the reference maximum value "230". This check is to confirm whether or not the gain set in the gain control circuits 31a and 31b is "GAINMIN". If it is determined to be appropriate, the distance measurement data AFD1,
AFD2 is added value ADSUM1, ADSUM, respectively.
2 is stored in the RAM 43.
【0040】データ読み込み回数「CNT」が「0」に
なったことが確認されると、「SUBCUT」の値
「1」が「PRECNT」として書き込まれ、図10の
処理に移行する。なお、初期設定において「CNT=
1」となっているから、ステップST4で「CNT≠
0」となったときはエラーであるから、再度データの読
み込み処理が行われる。When it is confirmed that the number of data reading "CNT" has become "0", the value "1" of "SUBCUT" is written as "PRECNT", and the processing shifts to the processing of FIG. In the initial setting, “CNT =
Since "1", "CNT ≠" in step ST4.
When it is "0", it means that there is an error, and therefore the data reading process is performed again.
【0041】ST2において、測距データAFD1,A
FD2のいずれかの値が小さ過ぎると判断された場合に
は「UNDフラグ」がセットされる。そして、ST3で
測距データAFD1,AFD2のいずれかが大き過ぎる
と判断された場合と同様に、「OVCNT」から「−
1」の処理が行われる。初期設定において「OVCNT
=1」となっているから、通常ではこの処理によって
「OVCNT=0」となって「OVフラグ」のセット
後、図10の処理に移行するが、「OVCNT≠0」で
あるときにはエラーとなって、再度データの読み込み処
理が行われる。In ST2, the distance measurement data AFD1, A
When it is determined that any value of FD2 is too small, the "UND flag" is set. Then, as in the case where it is determined in ST3 that either one of the distance measurement data AFD1 or AFD2 is too large, “OVCNT” to “−
1 ”processing is performed. In the initial setting, "OVCNT
Since "1" is set, "OVCNT = 0" is normally set by this processing, and after the "OV flag" is set, the processing shifts to the processing of FIG. 10. However, when "OVCNT ≠ 0", an error occurs. Then, the data reading process is performed again.
【0042】図10の処理では、まずステップST5に
おいて「OVフラグ」の有無がチェックされる。「OV
フラグなし」の場合には、「ADSUM1」,「ADS
UM2」の値をそれぞれ「SUBCNT」で除算し、そ
の結果が新たな測距データ「AFD1」,「AFD2」
として保存される。ステップST6では、図示したよう
に「(AFD1+AFD2)−(OFS1+OFS2)
≧136」の判断が行われる。「OFS1」,「OFS
2」の値は前述したオフセット値の検出処理で既に求め
られている。In the process of FIG. 10, first, in step ST5, the presence or absence of the "OV flag" is checked. "OV
In the case of "no flag", "ADSUM1", "ADS"
The value of "UM2" is divided by "SUBCNT", and the result is new distance measurement data "AFD1", "AFD2".
Is saved as. At step ST6, as shown in the figure, "(AFD1 + AFD2)-(OFS1 + OFS2)
≧ 136 ”is determined. "OFS1", "OFS
The value "2" has already been obtained in the above-described offset value detection processing.
【0043】ST6では、第1,第2チャンネルから得
られた測距データ「AFD1」,「AFD2」の和の大
きさが、オフセット値の減算を行った後でも充分な大き
さがあるかどうかを確認している。後述するように測距
データ「AFD1」,「AFD2」は以後の測距演算に
用いられるが、演算精度を劣化させないためには、これ
らの和が「136」以上あった方が好ましいからであ
る。At ST6, whether the sum of the distance measurement data "AFD1" and "AFD2" obtained from the first and second channels is sufficiently large even after the offset value is subtracted. Have confirmed. As will be described later, the distance measurement data "AFD1" and "AFD2" are used in the subsequent distance calculation, but it is preferable that the sum of these is "136" or more in order not to deteriorate the calculation accuracy. .
【0044】ST6により、測距データ「AFD1」,
「AFD2」の和の大きさが、測距演算の実行に適切な
レベルにあることが確認されると、ゲインコントロール
回路31a,31bのゲインはそのときの「GAIN」
の値(初期値「GAINMIN」)として決定され、図
11に示した実測距処理に移行する。At ST6, the distance measurement data "AFD1",
When it is confirmed that the magnitude of the sum of "AFD2" is at an appropriate level for executing the distance measurement calculation, the gains of the gain control circuits 31a and 31b are "GAIN" at that time.
Value (initial value "GAINMIN"), and the process shifts to the actual distance measurement process shown in FIG.
【0045】ST6により、測距データ「AFD1」,
「AFD2」の和の大きさが不適切であることが確認さ
れると、後述する「GSNGフラグ」がセットされてい
ないことを条件に、「GAIN」の値変更が行われる。
「GAIN」の値は、「(AFD1+AFD2)−(O
FS1+OFS2)」の値Xに対応し、次表のゲインテ
ーブルにしたがって決定される。At ST6, the distance measurement data "AFD1",
If it is confirmed that the magnitude of the sum of "AFD2" is inappropriate, the value of "GAIN" is changed on condition that the "GSNG flag" described later is not set.
The value of "GAIN" is "(AFD1 + AFD2)-(O
FS1 + OFS2) ”and is determined according to the gain table in the following table.
【0046】[0046]
【表1】 [Table 1]
【0047】このGAIN加算値を、それまでの「GA
IN」に加算した値が新たな「GAIN」となるが、ス
テップST7によってこの値が「GAINMAX」を越
えていた場合には図12の処理に移行する。「GAIN
MAX」以下のときには、この新たな「GAIN」を制
御データとしてシフトレジスタ45に送信する。さら
に、ステップST8では新たな「GAIN」の値が「G
AINMAX−16」、すなわちゲインのほぼ中間値よ
りも大きいか否かを判定し、小さい場合には図9に戻
って再びゲイン決定処理を行う。This GAIN addition value is used as the "GA
The value added to "IN" becomes a new "GAIN", but if this value exceeds "GAINMAX" in step ST7, the processing shifts to the processing in FIG. "GAIN
When it is less than or equal to "MAX", the new "GAIN" is transmitted to the shift register 45 as control data. Furthermore, in step ST8, the new value of "GAIN" is changed to "G
AINMAX-16 ", that is, it is determined whether the gain is larger than approximately the intermediate value of the gain. If smaller, the process returns to FIG. 9 and the gain determination process is performed again.
【0048】一方、新たな「GAIN」の値がゲインの
ほぼ中間値よりも大きい場合には、「SUBCNT←
8」としてから図9のに戻ってゲイン決定を行う。こ
のように、新たなゲインの値が中間値よりも大きくなっ
たときにデータの読み込み回数を増やす理由は、ゲイン
が大きくなるとノイズ成分が増えるからである。On the other hand, if the new value of "GAIN" is larger than almost the intermediate value of the gain, "SUBCNT ←
8 ”and then returning to FIG. 9 to determine the gain. The reason for increasing the number of data readings when the new gain value becomes larger than the intermediate value is that the noise component increases as the gain increases.
【0049】ST5により「OVフラグあり」と判断さ
れ、かつ「GAIN=GAINMIN」であることがス
テップST9で確認された場合は、カメラごとにEEP
ROM29に書き込まれたゲインの最大値「GAINM
AX」及び最小値「GAINMIN」に基づくゲイン設
定処理が、ノイズや外乱によって実行できないことを意
味している。そして、この場合には図12の処理に移行
する。If it is determined in ST5 that "OV flag is present" and that "GAIN = GAINMIN" is confirmed in step ST9, EEP is performed for each camera.
The maximum gain value "GAINM" written in the ROM 29
This means that the gain setting process based on “AX” and the minimum value “GAINMIN” cannot be executed due to noise or disturbance. Then, in this case, the processing shifts to the processing in FIG.
【0050】また、ST9により「GAIN≠GAIN
MIN」であることが確認されたときには「GSNGフ
ラグ」がセットされる。この「GSNGフラグ」は、設
定されているゲインが不適切なものであるときにセット
される。「GSNGフラグ」がセットされた後、「GA
IN←GAIN−1」として新たなゲインが設定され、
そのゲインのもとで図9のゲイン決定処理が再開され
る。Further, at ST9, "GAIN ≠ GAIN
When it is confirmed that it is "MIN", the "GSNG flag" is set. This "GSNG flag" is set when the set gain is improper. After the "GSNG flag" is set, "GA
A new gain is set as "IN ← GAIN-1",
The gain determination process of FIG. 9 is restarted under the gain.
【0051】上記のゲイン決定処理を行う間に、ST6
により図11の処理に移行した場合には、そのときの
「GAIN」を用いて実測距処理が開始される。この実
測距処理においては、IRED3を128回繰り返し点
灯させ、その都度測距データAFD1,AFD2を読み
込む。そして、ゲイン決定処理のときと同様にこれらの
値が適切な範囲に収まっているか否かが確認される。適
切な範囲の値であると、これらの測距データAFD1,
AFD2は、それぞれゲイン決定処理のときから保存さ
れていた「ADSUM1」,「ADSUM2」にさらに
加算される。While performing the above gain determination processing, ST6
When the process shifts to the process shown in FIG. 11, the actual distance measurement process is started using "GAIN" at that time. In this actual distance measurement process, the IRED3 is repeatedly turned on 128 times, and the distance measurement data AFD1 and AFD2 are read each time. Then, as in the case of the gain determination processing, it is confirmed whether or not these values are within the appropriate range. If the values are in an appropriate range, these distance measurement data AFD1,
AFD2 is further added to "ADSUM1" and "ADSUM2", which have been stored since the gain determination processing, respectively.
【0052】測距データの読み込み回数「CNT」が
「0」になると、図12に示した測距演算処理に移行す
る。このとき、測距データの読み込み回数「CNT」
は、ステップST10の処理で示したように、「CNT
←SUBCNT−PRECNT」によって決められてい
る。実測距では、基本的には「SUBCNT=128」
で示したように128回の測距データの読み込みを行う
ようにしてあるが、実測距処理時の読み込み回数は、上
記の減算により「PRECNT」回数だけ少なくなる。
ただし、ゲイン決定処理時でのデータ読み込み回数を含
めた場合には「128」回となる。When the number of readings of the distance measurement data "CNT" becomes "0", the distance measurement calculation process shown in FIG. 12 is started. At this time, the number of readings of distance measurement data "CNT"
Indicates, as shown in the process of step ST10, “CNT
<-SUBCNT-PRECNT ”. In the measured distance, basically "SUBCNT = 128"
As described above, the distance measurement data is read 128 times, but the number of readings during the actual distance measurement process is reduced by the number of “PRECNT” due to the above subtraction.
However, when the number of times the data is read in the gain determination process is included, the number of times is “128”.
【0053】「PRECNT」は、図9に示したように
実測距に先立ってすでに行われたゲイン決定処理のとき
の測距データ読み込み回数となっている。したがって、
ゲイン決定処理にあたって8回の測距データの読み込み
が行われていた場合には、実測距時の測距データの読み
込み回数は120回となる。"PRECNT" is the number of times the distance measurement data is read in the gain determination process that has already been performed prior to the actual distance measurement, as shown in FIG. Therefore,
When the distance measurement data is read eight times in the gain determination process, the number of times the distance measurement data is read at the time of actually measuring the distance is 120.
【0054】実測距処理時の測距データAFD1,AF
D2の値が小さ過ぎた場合には、ゲイン決定処理のとき
と同様に「UNDフラグ」がセットされる。そして大き
過ぎた場合も含め、「OVCNT」が「1」ずつ減算さ
れる。この「OVCNT」の値はST10の初期設定に
よって「16」に設定されているから、測距データを
「CNT」回読み込んでゆく中で、測距データAFD
1,AFD2のいずれかが不適切な値であったとしても
「15」回までは許容され、実測距処理がそのまま継続
される。Distance measurement data AFD1, AF at the time of actual distance measurement processing
When the value of D2 is too small, the "UND flag" is set as in the gain determination process. Then, including the case where it is too large, "OVCNT" is subtracted by "1". Since the value of "OVCNT" is set to "16" by the initial setting of ST10, the ranging data AFD is read while reading the ranging data "CNT" times.
Even if any one of 1 and AFD2 is an inappropriate value, it is allowed up to "15" times, and the actual distance measurement process is continued.
【0055】「CNT」回の測距データの読み込みが完
了すると、図12に示したように、被写体距離の逆数を
求める演算が行われる。まず、「ADSUM1」,「A
DSUM2」に対してオフセット値「OFS1」,「O
FS2」による補正が行われるが、ゲイン決定処理時か
らのデータ読み込みの通算回数は128回であるので、
各オフセット値に128を乗算した値を「ADSUM
1」,「ADSUM2」から減算している。When the reading of the distance measurement data "CNT" times is completed, as shown in FIG. 12, the calculation for obtaining the reciprocal of the object distance is performed. First, "ADSUM1", "A
Offset values “OFS1” and “O” for DSUM2 ”
The correction is performed by "FS2", but since the total number of data readings from the gain determination process is 128 times,
The value obtained by multiplying each offset value by 128 is "ADSUM
1 "and" ADSUM2 ".
【0056】続いて「ADSUM1」,「ADSUM
2」の加算データ「AFADD」と減算データ「AFD
IF」とが求められ、その比「AFRATIO」が求め
られる。次に、被写体距離の逆数「INV.LEN」が
算出される。この演算にあたっては、EEPROM29
からRAM43にストアされた係数「ADJ0」は「A
DJ1」が読み込まれる。これらの係数は、カメラごと
の光学特性によって適宜設定された値となっている。そ
して、こうして求められた被写体距離の逆数「INV.
LEN」はCPU40に入力され、これに基づいて撮影
レンズ5のピント位置が決められるようになる。なお、
「α」はカメラの個体差によらない一定値である。Then, "ADSUM1", "ADSUM"
2 ”addition data“ AFADD ”and subtraction data“ AFD
“IF” is calculated, and the ratio “AFRATIO” is calculated. Next, the reciprocal of the subject distance "INV.LEN" is calculated. In this calculation, the EEPROM 29
The coefficient “ADJ0” stored in RAM 43 from RAM is “A
DJ1 ”is read. These coefficients are values appropriately set according to the optical characteristics of each camera. Then, the reciprocal of the object distance thus obtained, "INV.
“LEN” is input to the CPU 40, and the focus position of the taking lens 5 is determined based on this. In addition,
“Α” is a constant value that does not depend on the individual difference of the camera.
【0057】図9のゲイン決定処理及び図10ないし図
11に示した実測距処理を実行する過程において、「G
AIN=GAINMIN」であるのにもかかわらず測距
データAFD1,AFD2が大き過ぎる値である場合に
は、PSD9に高輝度の光入射があり、被写体距離とし
ては至近距離であることに対応している。したがって、
図12に示したように「INV.LEN」の値として
「∞」を設定し、これにより撮影レンズ5のピント位置
は至近距離に適合した位置となり、また近距離警告が行
われる。In the process of executing the gain determination processing of FIG. 9 and the actual distance measurement processing shown in FIGS.
If the distance measurement data AFD1 and AFD2 are too large even though "AIN = GAINMIN", it means that there is a high-intensity light incident on the PSD 9 and the object distance is a close distance. There is. Therefore,
As shown in Fig. 12, "∞" is set as the value of "INV.LEN", whereby the focus position of the taking lens 5 is adjusted to the closest distance, and a short distance warning is issued.
【0058】またゲイン決定処理の実行中、「AFD1
+AFD2」の値が適切なレベルに達しておらず、しか
もST7で新たに設定しようとした「GAIN」の値が
カメラごとに設定されているゲインの最大値「GAIN
MAX」を越える場合には、PSD9への光入射が極め
て微弱なものであることを意味している。この場合に
は、被写体距離が極めて遠方にあることを意味している
から、「INV.LEN」の値として「0」を設定し、
これにより撮影レンズ5のピント位置は無限遠撮影用の
位置に合わせられるようになる。During execution of the gain determination process, "AFD1
The value of “+ AFD2” has not reached an appropriate level, and the value of “GAIN” that was newly set in ST7 is the maximum gain value “GAIN” set for each camera.
When it exceeds MAX, it means that the light incident on the PSD 9 is extremely weak. In this case, it means that the subject distance is extremely far, so "0" is set as the value of "INV.LEN",
Thereby, the focus position of the photographing lens 5 can be adjusted to the position for infinity photographing.
【0059】上記測距装置に特徴的な点は、オフセット
値検出処理、ゲイン決定処理、実測距処理さらに被写体
距離の逆数演算処理の各処理ごとに、EEPROM29
からRAM43にストアされたデータ、すなわちゲイン
の最大値「GAINMAX」及び最小値「GAINMI
N」、PSD9からの光電信号をサンプルホールドする
タイミングを決定する「SHTIME」、第1,第2チ
ャンネル間の偏差を補正する係数「GPARA」、被写
体距離の逆数を演算するときに用いる係数「ADJ0」
及び「ADJ1」が適宜用いられることにある。The characteristic feature of the distance measuring device is that the EEPROM 29 is provided for each of the offset value detecting process, the gain determining process, the actually measuring distance process, and the reciprocal calculation process of the object distance.
From the data stored in the RAM 43, that is, the maximum value “GAINMAX” and the minimum value “GAINMI” of the gain.
N ”,“ SHTIME ”that determines the timing of sampling and holding the photoelectric signal from the PSD 9, a coefficient“ GPARA ”that corrects the deviation between the first and second channels, and a coefficient“ ADJ0 ”that is used when calculating the reciprocal of the subject distance. "
And “ADJ1” are used appropriately.
【0060】これらの調節データは、IRED3,PS
D9,第1,第2チャンネルのアンプ系の電気的特性に
合わせて適切な値がカメラごとに決められる。このた
め、図4に示した調整モードが実行できるようになって
いる。カメラの組立が完了したとき、マイクロコンピュ
ータ14の接続端子14aに調節用の端末機28が接続
される。そして、一定の被写体距離位置に標準被写体を
配置し、端末機28のキーボード操作により、上記の各
調節データとしてそれぞれ標準的な値を入力する。端末
機28から入力された調節データは一旦RAM43に格
納される。These adjustment data are IRED3, PS
D9, an appropriate value is determined for each camera in accordance with the electrical characteristics of the amplifier system of the first and second channels. Therefore, the adjustment mode shown in FIG. 4 can be executed. When the camera is assembled, the adjustment terminal 28 is connected to the connection terminal 14a of the microcomputer 14. Then, the standard subject is arranged at a constant subject distance position, and standard values are input as the above-mentioned adjustment data by operating the keyboard of the terminal device 28. The adjustment data input from the terminal 28 is temporarily stored in the RAM 43.
【0061】その後、テスト測距が行われる。テスト測
距としては、上述した測距処理と全く同様でもよいが、
テスト作業の簡易化のために適宜のデータ、例えば「S
UBCNT」,「OVCNT」,「GAIN」等のデー
タをキーボード入力して行うようにしてもよい。After that, test distance measurement is performed. The test distance measurement may be exactly the same as the distance measurement processing described above,
Appropriate data such as "S
Data such as “UBCNT”, “OVCNT”, and “GAIN” may be input by the keyboard.
【0062】標準被写体に対するテスト測距を開始する
と、オフセット値「OFS1」,「OFS2」、測距デ
ータAFD1,AFD2,加算データ「ADSUM
1」,「ADSUM2」等のデータが得られ、これらの
データは端末機28にフィードバックされ、端末機28
のメモリに保存される。そこで、これらのデータを評価
して標準的な値として入力した上記各調節データが適切
であるか否かを判定する。テスト測距の結果、適宜の調
節データに補正が必要な場合には、これを調節して再度
テスト測距を行う。When the test distance measurement for the standard subject is started, the offset values "OFS1", "OFS2", the distance measurement data AFD1, AFD2, the addition data "ADSUM" are displayed.
1 ”,“ ADSUM2 ”, etc. are obtained, and these data are fed back to the terminal 28,
Stored in memory. Therefore, these data are evaluated to determine whether or not each of the adjustment data input as standard values is appropriate. As a result of the test distance measurement, if appropriate adjustment data needs to be corrected, this is adjusted and the test distance measurement is performed again.
【0063】こうしてテスト測距,調節データの補正を
行い、テスト測距が良好に実行されるようになったこと
が確認されたときには、端末機28を操作して上記各調
節データをEEPROM29に書き込む。これにより、
カメラごとに適切な値に補正された各々の調節データが
EEPROM29に書き込まれる。In this way, the test distance measurement and the adjustment data correction are performed, and when it is confirmed that the test distance measurement is satisfactorily executed, the terminal device 28 is operated to write the respective adjustment data into the EEPROM 29. . This allows
Each adjustment data corrected to an appropriate value for each camera is written in the EEPROM 29.
【0064】上記のように、カメラごとに個体差のある
調節データをEEPROM29に書き込んでおき、これ
らの調節データを適宜用いて測距処理を行うようにすれ
ば、オートフォーカスIC12内にポテンショメータ等
の調整用の素子を設け、これを調節してアンプ系の合わ
せ込みを行わなくても、誤差の少ない良好な測距を行う
ことができるようになる。また、例えばIRED3やP
SD9の経時変化等により測距精度が劣化したような場
合には、その点検,修理時にマイクロコンピュータ14
の接続端子14aに端末機28を接続し、同上の作業を
行うことによって測距精度を簡単に回復させることがで
きる。As described above, if the adjustment data having individual differences for each camera is written in the EEPROM 29 and the distance measurement processing is performed by appropriately using these adjustment data, a potentiometer or the like in the autofocus IC 12 can be used. It is possible to perform good distance measurement with a small error without providing an adjustment element and adjusting the adjustment element to adjust the amplifier system. Also, for example, IRED3 or P
When the distance measuring accuracy is deteriorated due to the change of SD9 with time, etc., the microcomputer 14 is used for the inspection and repair.
By connecting the terminal device 28 to the connection terminal 14a and performing the same work as above, the ranging accuracy can be easily restored.
【0065】以上、図示した実施例にしたがって本発明
について説明してきたが、測距処理プログラムの部分的
改良や改変は適宜可能であり、さらにゲイン決定処理や
実測距時における測距データの繰り返し読み込み回数等
については、適宜設定することが可能である。また、最
終的に被写体距離の逆数を算出する代わりに、「AFR
ATIO」の値から撮影レンズ5のピント合わせ位置を
求めるようにしてもよい。さらに、本発明は1個のIR
ED3で測距するものだけでなく、例えばそれぞれ投光
方向が異なる3個のIREDを利用し、撮影画面の中央
とその左右の3箇所に各々測距光を投光して測距を行う
ようにしたものにも利用可能である。Although the present invention has been described above with reference to the illustrated embodiment, the distance measuring program can be partially improved or modified, and gain determination processing and repeated reading of distance measuring data during actual distance measurement are possible. The number of times and the like can be set appropriately. Also, instead of finally calculating the reciprocal of the subject distance, “AFR
The focus position of the taking lens 5 may be obtained from the value of "ATIO". In addition, the present invention uses one IR
Not only the one that measures the distance with the ED3, for example, three IREDs with different light projection directions are used, and the distance measurement light is projected to the center of the photographic screen and the three places on the left and right of the IRED to measure the distance. It can also be used for the ones.
【0066】[0066]
【発明の効果】以上のとおり、本発明の測距装置におい
ては、測距プログラムを格納したメインプログラムメモ
リの他にサブメモリを設け、このサブメモリにはカメラ
ごとに異なる調節用データを書き込んでおき、測距プロ
グラムの実行時にこの調節用データを利用データを利用
してPSDの一対の出力端子にそれぞれ接続されている
アンプ系が等価に作動するようにしてあるから、各チャ
ンネルごとの電気的特性の合わせ込み作業が不要にな
り、ローコストでしかも正確なカメラ用測距装置を実現
させることができる。As described above, in the distance measuring device of the present invention, the main program memo storing the distance measuring program is stored.
In addition to this, a sub memory is provided, and different adjustment data for each camera is written in this sub memory , and this adjustment data is used as a pair of output terminals of the PSD by using the use data when executing the distance measurement program. Since the amplifier systems connected to each other operate in an equivalent manner, the work of adjusting the electrical characteristics of each channel is unnecessary, and a low-cost and accurate camera ranging device can be realized. .
【0067】測距精度を向上させるためには、各チャン
ネルごとの光電信号を適切な出力レベルまで増幅するゲ
インコントロール回路が用いられるが、その最大値と最
小値とはカメラごとに相違する。そこで、この最大値と
最小値とをカメラごとに設定してサブメモリに格納して
おき、これらを基準にしてゲインコントロールを行うの
が効果的であるが、測距処理を行う過程で最大値と最小
値との間の適切なゲイン設定ができない場合には、撮影
レンズのピント合わせ位置を過焦点位置にセットしたり
警告表示を行うようにすれば、無意味な測距の繰り返し
を避け、迅速な撮影にも対応することが可能となる。In order to improve the distance measurement accuracy, a gain control circuit that amplifies the photoelectric signal of each channel to an appropriate output level is used, but the maximum value and the minimum value are different for each camera. Therefore, it is effective to set the maximum value and the minimum value for each camera and store them in the sub-memory, and to perform gain control based on these values. If you cannot set the appropriate gain between the minimum value and the minimum value, set the focus position of the shooting lens to the hyperfocal position or display a warning to avoid meaningless repetition of distance measurement. It is possible to deal with quick shooting.
【0068】さらに、前記サブメモリにはその他にチャ
ンネル間のゲイン差を調節するための係数データや、光
電信号のサンプルホールドタイミングを決めるデータを
書き込んでおくことももちろん可能であり、これにより
調節用回路素子の組み込み及びその調節作業を省略して
効率的な製造が可能となる。Furthermore, it is of course possible to write coefficient data for adjusting the gain difference between the channels and data for determining the sample and hold timing of the photoelectric signal in the sub memory, which allows adjustment. Efficient manufacturing is possible by omitting the work of assembling circuit elements and adjusting them.
【図1】オートフォーカスIC及びマイクロコンピュー
タの概略構成を示すブロック図である。FIG. 1 is a block diagram showing a schematic configuration of an autofocus IC and a microcomputer.
【図2】本発明を用いたカメラの概略図である。FIG. 2 is a schematic diagram of a camera using the present invention.
【図3】制御データ格納用のシフトレジスタの概念図で
ある。FIG. 3 is a conceptual diagram of a shift register for storing control data.
【図4】端末機接続時の調整モードの処理を示すフロー
チャートである。FIG. 4 is a flowchart showing a process of an adjustment mode when a terminal is connected.
【図5】測距プログラムの基本処理を示すフローチャー
トである。FIG. 5 is a flowchart showing basic processing of a distance measuring program.
【図6】オフセット値検出処理を示すフローチャサート
である。FIG. 6 is a flowchart showing offset value detection processing.
【図7】制御データ送信及び測距データの読み込みの様
子を示すタイミングチャートである。FIG. 7 is a timing chart showing how control data is transmitted and ranging data is read.
【図8】測距データ読み込み処理を示すフローチャート
である。FIG. 8 is a flowchart showing distance measurement data reading processing.
【図9】ゲイン決定処理の一部を示すフローチャートで
ある。FIG. 9 is a flowchart showing a part of gain determination processing.
【図10】ゲイン決定処理の他の一部を示すフローチャ
ートである。FIG. 10 is a flowchart showing another part of the gain determination processing.
【図11】実測距処理を示すフローチャートである。FIG. 11 is a flowchart showing a measured distance process.
【図12】被写体距離の逆数算出処理を示すフローチャ
ートである。FIG. 12 is a flowchart showing a reciprocal calculation process of a subject distance.
2 投光部 3 IRED 5 撮影レンズ 9 PSD 12 オートフォーカスIC 14 マイクロコンピュータ 14a 接続端子 28 端末機 29 EEPROM 31a,31b ゲインコントロール回路 32a,32b サンプルホールド回路 42 ROM 43 RAM 2 Projector 3 IRED 5 shooting lens 9 PSD 12 Autofocus IC 14 Microcomputer 14a connection terminal 28 terminals 29 EEPROM 31a, 31b Gain control circuit 32a, 32b sample and hold circuit 42 ROM 43 RAM
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G01C 3/06 G01B 11/00 G02B 7/32 G03B 13/36 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G01C 3/06 G01B 11/00 G02B 7/32 G03B 13/36
Claims (5)
てきた測距光を受光素子に入射させ、その入射位置に対
応して受光素子の一対の出力端子から各々チャンネルご
とに出力される光電信号をゲイン調節可能なゲインコン
トロール回路によって所定の出力レベルに調節し、レベ
ル調節後の各々の光電信号に基づいて撮影レンズのピン
ト合わせ位置を算出するカメラ用測距装置において、 前記光電信号に基づいて撮影レンズのピント合わせ位置
を算出するための測距プログラムを格納したメインプロ
グラムメモリと、前記測距プログラムの実行により前記
ゲインコントロール回路のゲイン調節に際して用いら
れ、カメラごとに各々設定されたゲインコントロール回
路のゲインの最大値及び最小値を格納したサブメモリと
を有し、このサブメモリは、電気的に書き換え可能なE
EPROMで構成されていることを特徴とするカメラ用
測距装置。1. The distance measuring light projected from a light projecting unit and reflected by a subject is made incident on a light receiving element, and is output for each channel from a pair of output terminals of the light receiving element corresponding to the incident position. In the range finding device for a camera, which adjusts the photoelectric signal to a predetermined output level by a gain control circuit capable of gain adjustment, and calculates the focusing position of the photographing lens based on each photoelectric signal after the level adjustment, the photoelectric signal A main program memory storing a distance measuring program for calculating the focusing position of the photographing lens based on the above, and used for adjusting the gain of the gain control circuit by executing the distance measuring program, and set for each camera. and a sub-memory storing the gain maximum value and the minimum value of the gain control circuit, the Sabumemo Is, electrically erasable E
A distance measuring device for a camera , characterized by comprising an EPROM .
てきた測距光を受光素子に入射させ、その入射位置に対
応して受光素子の一対の出力端子から各々チャンネルご
とに出力される光電信号をゲイン調節可能なゲインコン
トロール回路によって所定の出力レベルに調節し、レベ
ル調節後の各々の光電信号に基づいて撮影レンズのピン
ト合わせ位置を算出するカメラ用測距装置において、 前記光電信号に基づいて撮影レンズのピント合わせ位置
を算出するための測距プログラムを格納したメインプロ
グラムメモリと、前記測距プログラムの実行により前記
ゲインコントロール回路のゲイン調節に際して用いら
れ、カメラごとに各々設定されたゲインコントロール回
路のゲインの最大値及び最小値を格納したサブメモリと
を有し、 前記ゲインコントロール回路によって調節され
たゲインの値が、前記サブメモリに格納されたゲインの
最大値に対応して決められた所定の値以上であるときに
は、そのゲインのもとで受光素子からの光電信号を複数
回読み出すようにしたことを特徴とするカメラ用測距装
置。2. A light is projected from a light projecting portion and reflected by a subject.
The distance measuring light that has come
Corresponding to each channel from the pair of output terminals of the light receiving element.
The gain control that can adjust the gain of the photoelectric signal output to
Adjust the output level to the desired level using the trawl circuit, and
Pin of the shooting lens based on each photoelectric signal after adjustment
In a camera distance measuring device for calculating a focusing position, a focusing position of a photographing lens is calculated based on the photoelectric signal.
A main program that stores a ranging program for calculating
Gram memory and the execution of the distance measurement program
Used when adjusting the gain of the gain control circuit.
Gain control times set individually for each camera.
A sub-memory that stores the maximum and minimum values of the road gain
When the gain value adjusted by the gain control circuit is equal to or larger than a predetermined value determined corresponding to the maximum value of the gain stored in the sub memory, the light is received under the gain. features and to Luke camera distance measuring device that photoelectric signal was read out a plurality of times from the device.
の出力レベルに調節する際に、ゲインコントロール回路
のゲインがサブメモリに格納された前記最大値と最小値
との間に含まれないときには、撮影レンズを過焦点位置
にセットする信号、もしくは警告信号を出力するように
したことを特徴とする請求項1又は2記載のカメラ用測
距装置。3. When adjusting the photoelectric signal from the light receiving element to the predetermined output level, when the gain of the gain control circuit is not included between the maximum value and the minimum value stored in the sub memory, The distance measuring device for a camera according to claim 1 or 2, wherein a signal for setting the photographing lens at a hyperfocal position or a warning signal is output.
てきた測距光を受光素子に入射させ、その入射位置に対
応して受光素子の一対の出力端子から各々チャンネルご
とに出力される光電信号をゲイン調節可能なゲインコン
トロール回路によって所定の出力レベルに調節し、レベ
ル調節後の各々の光電信号に基づいて撮影レンズのピン
ト合わせ位置を算出するカメラ用測距装置において、 前記光電信号に基づいて撮影レンズのピント合わせ位置
を算出するための測距プログラムを格納したメインプロ
グラムメモリと、前記測距プログラムの実行により前記
受光素子の各チャンネルから光電信号を読み出す際に用
いられ、前記各チャンネル間のゲイン差に対応してカメ
ラごとに設定される補正係数を格納したサブメモリとを
有し、前記ゲインコントロール回路で増幅された各チャ
ンネルの光電信号を各々デジタル変換して読み込む際
に、前記サブメモリに書き込まれた補正係数により一方
のチャンネルから得られたデジタルデータを補正するこ
とを特徴とするカメラ用測距装置。4. Distance measuring light projected from a light projecting unit and reflected by a subject is made incident on a light receiving element, and is output for each channel from a pair of output terminals of the light receiving element corresponding to the incident position. In the range finding device for a camera, which adjusts the photoelectric signal to a predetermined output level by a gain control circuit capable of gain adjustment, and calculates the focusing position of the photographing lens based on each photoelectric signal after the level adjustment, the photoelectric signal A main program memory storing a distance measuring program for calculating the focusing position of the photographing lens based on the above, and used for reading a photoelectric signal from each channel of the light receiving element by executing the distance measuring program. And a sub-memory storing a correction coefficient set for each camera corresponding to a gain difference between channels. For a camera characterized by correcting digital data obtained from one channel by a correction coefficient written in the sub-memory when the photoelectric signals of each channel amplified by the troll circuit are digitally converted and read. Ranging device.
てきた測距光を受光素子に入射させ、その入射位置に対
応して受光素子の一対の出力端子から各々チャンネルご
とに出力される光電信号をゲイン調節可能なゲインコン
トロール回路によって所定の出力レベルに調節し、レベ
ル調節後の各々の光電信号に基づいて撮影レンズのピン
ト合わせ位置を算出するカメラ用測距装置において、 前記光電信号に基づいて撮影レンズのピント合わせ位置
を算出するための測距プログラムを格納したメインプロ
グラムメモリと、前記測距プログラムの実行により前記
受光素子の各チャンネルから光電信号を読み出す際に用
いられ、光電信号のサンプリングタイミングを各チャン
ネルごとに決定するためにカメラごとに設定されるタイ
ミングデータを格納したサブメモリとを有することを特
徴とするカメラ用測距装置。5. Distance measuring light projected from a light projecting unit and reflected by a subject is made incident on a light receiving element, and is output for each channel from a pair of output terminals of the light receiving element corresponding to the incident position. In the range finding device for a camera, which adjusts the photoelectric signal to a predetermined output level by a gain control circuit capable of gain adjustment, and calculates the focusing position of the photographing lens based on each photoelectric signal after the level adjustment, the photoelectric signal A main program memory for storing a distance measuring program for calculating the focusing position of the photographing lens based on the above, and a photoelectric signal used when reading a photoelectric signal from each channel of the light receiving element by executing the distance measuring program. Stores timing data set for each camera to determine the sampling timing of each channel Camera distance measuring apparatus characterized by having a sub-memory has.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4881194A JP3408310B2 (en) | 1994-03-18 | 1994-03-18 | Camera ranging device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4881194A JP3408310B2 (en) | 1994-03-18 | 1994-03-18 | Camera ranging device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH07260475A JPH07260475A (en) | 1995-10-13 |
| JP3408310B2 true JP3408310B2 (en) | 2003-05-19 |
Family
ID=12813599
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4881194A Expired - Fee Related JP3408310B2 (en) | 1994-03-18 | 1994-03-18 | Camera ranging device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3408310B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001108893A (en) | 1999-07-30 | 2001-04-20 | Fuji Photo Film Co Ltd | Distance measuring instrument and camera |
-
1994
- 1994-03-18 JP JP4881194A patent/JP3408310B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH07260475A (en) | 1995-10-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6351606B1 (en) | Electronic camera, method for detecting obstruction to electronic flash and method for correcting exposure level | |
| USRE35652E (en) | Object distance detecting apparatus | |
| US5148211A (en) | Stabilized range finder for use with an electronically controlled camera | |
| JPH0534585A (en) | Distance measuring device | |
| JPH07174549A (en) | Distance-measuring apparatus | |
| US7015447B2 (en) | Illuminance calibrating method of illuminator, illuminance calibration controller of illuminator, illuminance calibrating program of illuminator, recording medium storing the program and measuring tool | |
| JP3408310B2 (en) | Camera ranging device | |
| US5257060A (en) | Autofocus camera and a method of regulating the same | |
| US6614509B2 (en) | Distance measuring apparatus | |
| JPH0548849B2 (en) | ||
| JP3377283B2 (en) | Camera ranging device | |
| US6944397B2 (en) | Distance measuring device | |
| JP3009513B2 (en) | Distance measuring device for camera | |
| JP4289382B2 (en) | Monitoring device and imaging device. | |
| JP3672987B2 (en) | Ranging device | |
| JP2005148078A (en) | Range finder | |
| JP3231352B2 (en) | Distance measuring device | |
| JPH1026528A (en) | Shape measuring device and image input device used therefor | |
| JP2002318412A (en) | Flash control device and camera | |
| JP2609333B2 (en) | Distance measuring device | |
| JP2647724B2 (en) | Distance measuring device | |
| JP2002341238A (en) | Adjusting device for auto-focusing device | |
| JPH055933A (en) | Automatic focusing camera and its adjustment method | |
| JPH04217236A (en) | Active type range finding method | |
| JPH052128A (en) | Range-finding device for camera |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 5 Free format text: PAYMENT UNTIL: 20080314 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080314 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 6 Free format text: PAYMENT UNTIL: 20090314 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 6 Free format text: PAYMENT UNTIL: 20090314 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100314 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 7 Free format text: PAYMENT UNTIL: 20100314 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110314 Year of fee payment: 8 |
|
| LAPS | Cancellation because of no payment of annual fees |