JP2012154967A - Image pickup apparatus, interchangeable lens, and image pickup apparatus system - Google Patents

Image pickup apparatus, interchangeable lens, and image pickup apparatus system Download PDF

Info

Publication number
JP2012154967A
JP2012154967A JP2011011203A JP2011011203A JP2012154967A JP 2012154967 A JP2012154967 A JP 2012154967A JP 2011011203 A JP2011011203 A JP 2011011203A JP 2011011203 A JP2011011203 A JP 2011011203A JP 2012154967 A JP2012154967 A JP 2012154967A
Authority
JP
Japan
Prior art keywords
terminal
communication
lens
interchangeable lens
camera
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.)
Granted
Application number
JP2011011203A
Other languages
Japanese (ja)
Other versions
JP5762011B2 (en
JP2012154967A5 (en
Inventor
Ritsuo Kashiyama
律夫 樫山
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2011011203A priority Critical patent/JP5762011B2/en
Publication of JP2012154967A publication Critical patent/JP2012154967A/en
Publication of JP2012154967A5 publication Critical patent/JP2012154967A5/ja
Application granted granted Critical
Publication of JP5762011B2 publication Critical patent/JP5762011B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Structure And Mechanism Of Cameras (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a camera capable of further improving an operation performance, while accommodating to an old type interchangeable lens using a conventional communication system, and to provide an interchangeable lens.SOLUTION: An image pickup apparatus mountable with an interchangeable lens includes: control means that can switch between a first communication mode for outputting a clock signal from a first terminal and communicating with the lens via a second terminal based on the clock signal, and a second communication mode for communicating with the lens via the first terminal or the second terminal without using the clock signal; and detecting means for detecting whether the mounted interchangeable lens has a first lens side terminal accommodated with the first terminal or not. When the detecting means does not detect the first lens side terminal in the interchangeable lens, the control means communicates with the second communication mode.

Description

本発明は交換レンズを装着可能で通信により情報交換を行う撮像装置及びその撮像装置に装着可能な交換レンズ、撮像装置のシステムに関するものである。   The present invention relates to an imaging apparatus in which an interchangeable lens can be attached and exchanges information by communication, an interchangeable lens that can be attached to the imaging apparatus, and an imaging apparatus system.

従来、カメラと交換レンズとの通信手法として、クロック同期方式のシリアル通信(同期シリアル通信)が採用されてきた。特許文献1では、次のような技術内容が開示されている。まず、古いタイプの交換レンズでも通信可能な第1の通信速度で同期シリアル通信を行う。その通信内容により、装着されている交換レンズが新しいレンズと判別された場合には、より高速な第2の通信速度での同期シリアル通信に切り替える。また、この通信速度切り替えの際に、通信端子の回路をオープンドレインタイプから高速通信に適したCMOSタイプに切り替えることも記載されている。この技術によれば、古いタイプの交換レンズとの組み合わせでは速度は遅いながらも動作が可能で、新しいタイプの交換レンズとの組み合わせでは通信速度の高速化を一定レベル向上させたものが実現できる。   Conventionally, clock-synchronized serial communication (synchronous serial communication) has been adopted as a communication method between a camera and an interchangeable lens. Patent Document 1 discloses the following technical contents. First, synchronous serial communication is performed at a first communication speed at which communication is possible even with an old type interchangeable lens. When it is determined that the attached interchangeable lens is a new lens according to the communication content, the communication is switched to synchronous serial communication at a higher second communication speed. In addition, it is also described that the communication terminal circuit is switched from an open drain type to a CMOS type suitable for high-speed communication when the communication speed is switched. According to this technology, it is possible to operate with a combination with an old type interchangeable lens even though the speed is low, and with a combination with a new type interchangeable lens, it is possible to realize an improvement in communication speed at a certain level.

特開平9−304804号公報JP-A-9-304804

ところで、従来の同期シリアル通信では、通信と通信との間でレンズが受信したデータを解析して次の通信でカメラへ送るデータをセットするため、また受信したデータに基づいて処理を実行するための待ち時間が設けられる。この待ち時間が生じている状態をBusyと呼び、Busyの間はレンズはカメラからの通信を受け付けない。そのため、クロックの周波数を上げても、カメラ側のマイクロコンピュータはレンズのBusy解除を待ちながら通信するために、動作パフォーマンスの向上には限界がある。一方、レンズ側のマイクロコンピュータには頻繁にカメラからの通信割り込みが発生し、その都度Busy信号出力及び解除のための通信割り込み処理を優先的に行わなければならないので、こちらも動作パフォーマンス向上の弊害となる。   By the way, in the conventional synchronous serial communication, in order to set the data to be sent to the camera in the next communication by analyzing the data received by the lens between the communication, and to execute processing based on the received data A waiting time is provided. The state in which this waiting time has occurred is called Busy, and the lens does not accept communication from the camera during Busy. For this reason, even if the clock frequency is increased, the microcomputer on the camera side communicates while waiting for the lens busy to be released, so there is a limit to the improvement of the operation performance. On the other hand, the camera on the lens side frequently generates a communication interrupt from the camera, and each time a Busy signal is output and a communication interrupt process for cancellation must be preferentially performed. It becomes.

本発明の目的は、従来の通信方式を用いた古いタイプの交換レンズにも対応しつつ、さらなる動作パフォーマンスの向上を可能にするカメラ及び交換レンズを提供することである。   An object of the present invention is to provide a camera and an interchangeable lens that can further improve the operation performance while supporting an old type interchangeable lens using a conventional communication system.

上記目的を達成するために、本願第1の発明は、交換レンズを装着可能な撮像装置であって、装着された交換レンズと通信するための第1の端子及び第2の端子と、前記第1の端子からクロック信号を出力し当該クロック信号に基づいて前記第2の端子で通信する第1の通信モードと、クロック信号を用いずに前記第1の端子又は第2の端子で通信する第2の通信モードとを切り替え可能な制御手段と、装着された交換レンズが前記第1の端子に対応する第1のレンズ側端子を有するかどうかを検知する検知手段とを備え、前記制御手段は、前記検知手段によって当該交換レンズが前記第1のレンズ側端子を有すると検知されなかったとき、前記第2の通信モードで通信することを特徴とする撮像装置である。   In order to achieve the above object, a first invention of the present application is an imaging apparatus to which an interchangeable lens can be attached, the first terminal and the second terminal for communicating with the attached interchangeable lens, and the first A first communication mode in which a clock signal is output from one terminal and communication is performed at the second terminal based on the clock signal, and communication is performed at the first terminal or the second terminal without using the clock signal. Control means capable of switching between the two communication modes, and detection means for detecting whether or not the mounted interchangeable lens has a first lens side terminal corresponding to the first terminal. When the detection unit does not detect that the interchangeable lens has the first lens side terminal, the imaging device performs communication in the second communication mode.

本願第2の発明は、撮像装置本体と、前記撮像装置本体に着脱可能に装着される交換レンズとを有し、前記撮像装置本体と前記交換レンズとが通信可能な撮像装置システムであって、前記撮像装置は、装着された交換レンズと通信するための第1の端子及び第2の端子とを有し、前記第1の端子からクロック信号を出力し当該クロック信号に基づいて前記第2の端子で通信する第1の通信モードと、クロック信号を用いずに前記第1の端子又は第2の端子で通信する第2の通信モードとを切り替え可能で、前記交換レンズが前記第1の端子に対応する端子を有するとき、前記第1の通信モードで通信を行った後、当該交換レンズが前記第2の通信モードに対応する場合は前記第2の通信モードに切り替え、当該交換レンズが前記第2の通信モードに対応しない場合は前記第1の通信モードを継続し、前記交換レンズが前記第1の端子に対応する端子を有しないとき、前記第2の通信モードで通信を行うことを特徴とする撮像装置システムである。   A second invention of the present application is an imaging apparatus system that includes an imaging apparatus body and an interchangeable lens that is detachably attached to the imaging apparatus body, and the imaging apparatus body and the interchangeable lens can communicate with each other. The imaging device includes a first terminal and a second terminal for communicating with an attached interchangeable lens, outputs a clock signal from the first terminal, and outputs the second signal based on the clock signal. It is possible to switch between a first communication mode in which communication is performed using a terminal and a second communication mode in which communication is performed using the first terminal or the second terminal without using a clock signal, and the interchangeable lens is connected to the first terminal. If the interchangeable lens is compatible with the second communication mode after performing communication in the first communication mode, the interchangeable lens is switched to the second communication mode. Second communication mode The first communication mode is continued when the mode does not correspond to the communication mode, and communication is performed in the second communication mode when the interchangeable lens does not have a terminal corresponding to the first terminal. It is a device system.

本発明によれば、従来の通信方式を用いた古いタイプの交換レンズにも対応しつつ、さらなる動作パフォーマンスの向上を可能にするカメラ及び交換レンズを提供することができる。   According to the present invention, it is possible to provide a camera and an interchangeable lens that can further improve the operation performance while supporting an old type interchangeable lens using a conventional communication method.

本発明を実施したカメラと交換レンズの回路構成を表す図The figure showing the circuit structure of the camera which implemented this invention, and an interchangeable lens マイクロコンピュータの回路ブロック図Microcomputer circuit block diagram 通信制御回路のブロック図Block diagram of communication control circuit 実施例1におけるカメラと交換レンズの通信接続部分の回路構成を表す図The figure showing the circuit structure of the communication connection part of the camera and interchangeable lens in Example 1. 実施例1におけるカメラのレンズ種類判別動作のフローチャート図FIG. 3 is a flowchart of the lens type discrimination operation of the camera in the first embodiment. 本発明を実施したカメラと交換レンズとによるカメラシステム動作フローチャート図Camera System Operation Flowchart with Camera Implementing the Present Invention and Interchangeable Lens 本発明を実施したカメラ側マイクロコンピュータの動作フローチャート図Operation flowchart of camera-side microcomputer embodying the present invention 本発明を実施したカメラ側マイクロコンピュータの動作フローチャート図Operation flowchart of camera-side microcomputer embodying the present invention 本発明を実施したレンズ側マイクロコンピュータの動作フローチャート図Operational flow chart of lens-side microcomputer embodying the present invention ボーレート調整におけるカメラと交換レンズとの通信信号のタイミングチャート図Timing chart of communication signal between camera and interchangeable lens in baud rate adjustment 非同期通信におけるカメラと交換レンズとの通信信号のタイミングチャート図Timing chart of communication signal between camera and interchangeable lens in asynchronous communication 同期通信におけるカメラと交換レンズとの通信信号のタイミングチャート図Timing chart of communication signal between camera and interchangeable lens in synchronous communication 同期通信におけるカメラ側マイクロコンピュータの動作フローチャート図Operation flowchart of camera-side microcomputer in synchronous communication 同期通信におけるレンズ側マイクロコンピュータの動作フローチャート図Operation flowchart of lens-side microcomputer in synchronous communication 本発明を実施したカメラの非同期通信時の動作フローチャート図Operational flow chart of asynchronous communication of the camera embodying the present invention 実施例2におけるカメラと交換レンズの通信接続部分の回路構成を表す図The figure showing the circuit structure of the communication connection part of the camera and interchangeable lens in Example 2.

<実施例1>
図1は本発明を実施したカメラと交換レンズの回路構成を表す図である。図1において1はカメラ、2及び3はカメラ1に着脱可能に装着された交換レンズである。カメラ1は接続部としてのマウント部4を、交換レンズ2及び3はレンズ接続部としてのレンズマウント部5をそれぞれ有する。カメラ1の内部にはバッテリー11、電源生成部12、カメラ側マイクロコンピュータ13がある。電源生成部12はバッテリー11が出力する電圧を入力して、カメラ側マイクロコンピュータ13等の電気回路が動作するために最適に安定化された電源電圧を発生し、これを電気回路各部に供給する。通常カメラ1の内部には露出制御のための測光センサー、オートフォーカス制御のための測距センサー、デジタル画像を撮影するための撮像素子やその駆動回路、AD変換回路、画像処理回路などの回路構成が存在するが、本発明の主旨には深く関わらないので不図示としてある。
<Example 1>
FIG. 1 is a diagram showing a circuit configuration of a camera and an interchangeable lens embodying the present invention. In FIG. 1, reference numeral 1 denotes a camera, and reference numerals 2 and 3 denote interchangeable lenses that are detachably attached to the camera 1. The camera 1 has a mount portion 4 as a connection portion, and the interchangeable lenses 2 and 3 have a lens mount portion 5 as a lens connection portion. Inside the camera 1, there are a battery 11, a power generation unit 12, and a camera-side microcomputer 13. The power generation unit 12 receives the voltage output from the battery 11, generates a power supply voltage that is optimally stabilized so that the electric circuit such as the camera-side microcomputer 13 operates, and supplies this to each part of the electric circuit. . Normally, the camera 1 includes a photometric sensor for exposure control, a distance measuring sensor for autofocus control, an image sensor for taking a digital image, its drive circuit, an AD conversion circuit, an image processing circuit, and the like. However, it is not shown because it is not deeply related to the gist of the present invention.

14から18は交換レンズとの電気信号授受のためにカメラ1側のマウント部4に設けられた接点部である。14は電源生成部12が発生したレンズ用電源を交換レンズに供給するためのカメラ側電源端子である。15はカメラと交換レンズが通信を行う場合に同期クロック信号等を伝達するためのカメラ側CLK端子、16はカメラから交換レンズへ通信データを送信するためのカメラ側DOC端子、17は交換レンズからカメラへの通信データを受信するためのカメラ側DOL端子である。カメラ側CLK端子15は第1の端子に、カメラ側DOC端子16とカメラ側DOL端子17は第2の端子に相当する。これらの端子15〜17はカメラ側マイクロコンピュータ13と接続されている。18はカメラ側接地端子で、バッテリー11の−側と等電位となっている。また、19は温度センサーでカメラ内の温度に関する情報を出力する。その温度出力はカメラ側マイクロコンピュータ13に接続されている。   Reference numerals 14 to 18 denote contact portions provided on the mount portion 4 on the camera 1 side for exchanging electrical signals with the interchangeable lens. Reference numeral 14 denotes a camera-side power supply terminal for supplying the lens power generated by the power generation unit 12 to the interchangeable lens. Reference numeral 15 denotes a camera side CLK terminal for transmitting a synchronous clock signal or the like when the camera and the interchangeable lens communicate with each other, 16 denotes a camera side DOC terminal for transmitting communication data from the camera to the interchangeable lens, and 17 denotes from the interchangeable lens. It is a camera side DOL terminal for receiving communication data to the camera. The camera side CLK terminal 15 corresponds to a first terminal, and the camera side DOC terminal 16 and the camera side DOL terminal 17 correspond to a second terminal. These terminals 15 to 17 are connected to the camera-side microcomputer 13. Reference numeral 18 denotes a camera-side ground terminal which is equipotential with the negative side of the battery 11. Reference numeral 19 denotes a temperature sensor that outputs information about the temperature in the camera. The temperature output is connected to the camera-side microcomputer 13.

図1(A)に示した交換レンズ2の内部にはレンズ側マイクロコンピュータ21があり、交換レンズ2の全体制御及びカメラ1との通信制御を行う。24から28はカメラとの電気信号授受のためにレンズ2側のレンズマウント部5に設けられた接点部である。24はカメラ1から電源供給を受けるためのレンズ側電源端子である。26はカメラ1から交換レンズ2への通信データを受信ためのレンズ側DOC端子、27は交換レンズ2からカメラ1へ通信データを送信するためのレンズ側DOL端子である。28はレンズ側接地端子である。
カメラ1に交換レンズ2が正常に装着されると、カメラ側の端子14、16、17、18とレンズ側の端子24、26、27、28が図1(A)で示したとおりにそれぞれ1対1に接続される。
A lens-side microcomputer 21 is provided inside the interchangeable lens 2 shown in FIG. 1A, and performs overall control of the interchangeable lens 2 and communication control with the camera 1. Reference numerals 24 to 28 denote contact portions provided on the lens mount portion 5 on the lens 2 side for exchanging electrical signals with the camera. Reference numeral 24 denotes a lens-side power supply terminal for receiving power supply from the camera 1. Reference numeral 26 denotes a lens side DOC terminal for receiving communication data from the camera 1 to the interchangeable lens 2, and reference numeral 27 denotes a lens side DOL terminal for transmitting communication data from the interchangeable lens 2 to the camera 1. Reference numeral 28 denotes a lens side ground terminal.
When the interchangeable lens 2 is normally attached to the camera 1, the camera-side terminals 14, 16, 17, 18 and the lens-side terminals 24, 26, 27, 28 are each 1 as shown in FIG. Connected to pair 1.

一方、図1(B)に示した交換レンズ3の内部にはレンズ側マイクロコンピュータ31があり、交換レンズ3の全体制御及びカメラ1との通信制御を行う。34から38はカメラとの電気信号授受のためにレンズ3側のレンズマウント部5に設けられた接点部である。34はカメラ1から電源供給を受けるためのレンズ側電源端子である。35はカメラ1と通信を行う場合に同期クロック信号等を伝達するためのレンズ側CLK端子、36はカメラ1から交換レンズ3への通信データを受信ためのレンズ側DOC端子、37は交換レンズ3からカメラ1へ通信データを送信するためのレンズ側DOL端子である。レンズ側CLK端子35は第1のレンズ側端子に相当する。38はレンズ側接地端子である。
カメラ1に交換レンズ3が正常に装着されると、カメラ側の端子14〜18とレンズ側の端子34〜38が図1(B)で示したとおりにそれぞれ1対1に接続される。
On the other hand, inside the interchangeable lens 3 shown in FIG. 1B, there is a lens-side microcomputer 31 that performs overall control of the interchangeable lens 3 and communication control with the camera 1. Reference numerals 34 to 38 denote contact portions provided in the lens mount portion 5 on the lens 3 side for exchanging electrical signals with the camera. Reference numeral 34 denotes a lens-side power supply terminal for receiving power supply from the camera 1. Reference numeral 35 denotes a lens-side CLK terminal for transmitting a synchronous clock signal or the like when communicating with the camera 1, 36 denotes a lens-side DOC terminal for receiving communication data from the camera 1 to the interchangeable lens 3, and 37 denotes an interchangeable lens 3. This is a lens-side DOL terminal for transmitting communication data from the camera 1 to the camera 1. The lens side CLK terminal 35 corresponds to a first lens side terminal. Reference numeral 38 denotes a lens side ground terminal.
When the interchangeable lens 3 is normally attached to the camera 1, the camera-side terminals 14 to 18 and the lens-side terminals 34 to 38 are connected one-on-one as shown in FIG.

なお、本発明はカメラと交換レンズとの間で光通信や無線通信を行う場合においても適用できる。
図2(B)はカメラ側マイクロコンピュータ13或いはレンズ側マイクロコンピュータ31に内蔵される回路構成のうち、シリアル通信制御に関わる構成を示したものである。カメラ側マイクロコンピュータ13とレンズ側マイクロコンピュータ31とは当然別物であるが、シリアル通信制御に関わる構成としては同一の構成要件を持っていて構わないので共通の図面で説明する。
The present invention can also be applied when optical communication or wireless communication is performed between a camera and an interchangeable lens.
FIG. 2B shows a configuration related to serial communication control among circuit configurations built in the camera-side microcomputer 13 or the lens-side microcomputer 31. The camera-side microcomputer 13 and the lens-side microcomputer 31 are naturally different from each other, but the configuration related to the serial communication control may have the same configuration requirements, and will be described with reference to the common drawings.

41は発振子で例えば水晶発振子やセラミック振動子などが使われる。こうした発振子についてはマイクロコンピュータに内蔵される場合に限らず、外付けされる場合もある。42はクロック発生回路で発振子41に接続されて源振クロックを発生させる源振回路、源振クロックをより高い周波数へ変換する逓倍回路、変換された高周波数のクロックを元に分周・合成等を行い様々な周波数のクロックを生成するクロック生成回路などから成る。43は通信制御回路で、通信全般の制御を行うと共に、IO出力ポートとして接続されている端子を使用する場合には、出力レベルの設定及び入力レベルの判定を行う。詳細は図3を使って後述する。44はカウンタ・タイマー回路で、入力される信号のパルス数をカウントしたり、入力される信号の時間幅を測定したりする。クロック発生回路42で生成されたクロック信号は通信制御回路43及びカウンタ・タイマー回路44に供給される。45〜47はIO制御回路で、それぞれ入出力端子55〜57の入出力信号のデータ入出力方向及び入出力信号種類並びに入出力回路形態を切替える回路である。データ入出力方向切替えというのは文字通り端子をデータ入力として使うか、データ出力として使うかの切替えである。入出力信号種類切替えというのは通常のパラレルIO信号の入出力信号を端子に接続するか、通信制御回路43との入出力信号を端子に接続するかの切替えである。入出力回路形態の切替えというのは先述した特許文献1に記載されているオープンドレイン方式で出力するかCMOS方式で出力するかの切替え並びにプルアップ抵抗を接続するか否かの切替えを行う。IO制御回路45は入出力端子55の入出力切替えを行うもので、通信制御回路43からは同期クロック信号SCLKが接続されていて、このSCLK信号をカウンタ・タイマー回路44に供給可能である。IO制御回路46は入出力端子56の入出力切替えを行うもので、通信制御回路43からはシリアル通信データ出力信号TXDが接続されている。IO制御回路47は入出力端子57の入出力切替えを行うもので、通信制御回路43からはシリアル通信データ入力信号RXDが接続されている。   Reference numeral 41 denotes an oscillator, for example, a crystal oscillator or a ceramic vibrator. Such an oscillator is not limited to being built in a microcomputer but may be externally attached. Reference numeral 42 denotes a clock generation circuit which is connected to the oscillator 41 to generate a source oscillation clock, a multiplication circuit which converts the source oscillation clock to a higher frequency, and frequency division / synthesis based on the converted high frequency clock. And a clock generation circuit that generates clocks of various frequencies. A communication control circuit 43 controls the overall communication, and when using a terminal connected as an IO output port, sets an output level and determines an input level. Details will be described later with reference to FIG. Reference numeral 44 denotes a counter / timer circuit that counts the number of pulses of the input signal and measures the time width of the input signal. The clock signal generated by the clock generation circuit 42 is supplied to the communication control circuit 43 and the counter / timer circuit 44. Reference numerals 45 to 47 denote IO control circuits which switch data input / output directions, input / output signal types and input / output circuit forms of input / output signals of the input / output terminals 55 to 57, respectively. Data input / output direction switching is literally switching between using a terminal as a data input or data output. The input / output signal type switching is switching between connecting an input / output signal of a normal parallel IO signal to a terminal or connecting an input / output signal to / from the communication control circuit 43 to a terminal. The switching of the input / output circuit form is performed by switching between the output using the open drain method or the CMOS method described in Patent Document 1 described above and switching whether or not the pull-up resistor is connected. The IO control circuit 45 performs input / output switching of the input / output terminal 55, and a synchronous clock signal SCLK is connected from the communication control circuit 43, and this SCLK signal can be supplied to the counter / timer circuit 44. The IO control circuit 46 performs input / output switching of the input / output terminal 56, and a serial communication data output signal TXD is connected from the communication control circuit 43. The IO control circuit 47 performs input / output switching of the input / output terminal 57, and a serial communication data input signal RXD is connected from the communication control circuit 43.

48は割り込み制御回路で通信制御回路43及びカウンタ・タイマー回路44から割り込み発生信号が接続されている。50はマイクロコンピュータ内のデータバスで、前述した通信制御回路43及びカウンタ・タイマー回路44やIO制御回路45〜47はこのデータバス50に接続されて動作に必要なデータの受け渡しができる。尚、マイクロコンピュータ内には本図に記載以外のALU、プログラムカウンタ、ROM、RAM、ADコンバータ等の回路構成が存在するが、不図示としてある。   An interrupt control circuit 48 is connected to interrupt generation signals from the communication control circuit 43 and the counter / timer circuit 44. Reference numeral 50 denotes a data bus in the microcomputer. The communication control circuit 43, the counter / timer circuit 44 and the IO control circuits 45 to 47 described above are connected to the data bus 50 and can exchange data necessary for the operation. In the microcomputer, there are other circuit configurations such as an ALU, a program counter, a ROM, a RAM, and an AD converter other than those shown in the figure, but they are not shown.

カメラ側マイクロコンピュータ13の場合、入出力端子55は図1のカメラ側CLK端子15に、入出力端子56はカメラ側DOC端子16に、入出力端子57はカメラ側DOL端子17にそれぞれ接続される。   In the case of the camera-side microcomputer 13, the input / output terminal 55 is connected to the camera-side CLK terminal 15 in FIG. 1, the input / output terminal 56 is connected to the camera-side DOC terminal 16, and the input / output terminal 57 is connected to the camera-side DOL terminal 17. .

レンズ側マイクロコンピュータ31の場合、入出力端子55は図1(B)のレンズ側CLK端子35に、入出力端子56はレンズ側DOL端子37に、入出力端子57はレンズ側DOC端子36にそれぞれ接続される。これは本実施例の説明ではDOC信号をカメラからレンズへの送信データ、DOL信号をレンズからカメラへの送信データとしているためである。   In the case of the lens-side microcomputer 31, the input / output terminal 55 is connected to the lens-side CLK terminal 35 in FIG. 1B, the input / output terminal 56 is connected to the lens-side DOL terminal 37, and the input / output terminal 57 is connected to the lens-side DOC terminal 36. Connected. This is because in the description of the present embodiment, the DOC signal is transmission data from the camera to the lens, and the DOL signal is transmission data from the lens to the camera.

一方、図2(A)はレンズ側マイクロコンピュータ21に内蔵される回路構成のうち、シリアル通信制御に関わる構成を示したものである。交換レンズ2の場合、レンズ側マイクロコンピュータ21には、図2(B)のIO制御回路45、及び入出力端子55に相当する端子は存在しない。それ以外の構成は、図2(B)で示したレンズ側マイクロコンピュータ31の構成と同一の構成である。   On the other hand, FIG. 2A shows a configuration related to serial communication control among circuit configurations built in the lens-side microcomputer 21. In the case of the interchangeable lens 2, the lens-side microcomputer 21 does not have terminals corresponding to the IO control circuit 45 and the input / output terminal 55 of FIG. The other configuration is the same as the configuration of the lens side microcomputer 31 shown in FIG.

図3は図2(A)及び(B)で示した通信制御回路43についてより詳細な構成を説明するための図である。クロック発生回路42が発生する様々な周波数のクロック信号はボーレートジェネレータ61に入力される。ボーレートジェネレータ61はデータバス50を通して送られてくる各種通信設定データに従って通信制御に必要なクロック信号を発生させる。通信設定データとしては通信のマスターかスレーブかの切替え、同期通信か非同期通信かの切替え、同期通信の場合の同期クロック周波数設定、非同期通信の場合の非同期サンプリングクロック周波数設定などがある。通信設定データにより同期通信及び通信マスターが設定されている場合は、同期通信の場合の同期クロック周波数設定値に従った同期クロック信号SCLKを出力する。通信設定データにより同期通信及び通信スレーブが設定されている場合は、同期クロック信号SCLKを入力することになる。同期クロック信号SCLKは62の送受信制御ブロックにも供給される。通信設定データにより非同期通信が設定されている場合は、非同期通信の場合の非同期サンプリングクロック周波数設定に従ったサンプリング用クロックを送受信制御ブロック62に供給する。送受信制御ブロック62はやはりデータバス50を通して送られてくる各種通信設定データに従って後述する送信シフトレジスタ63及び受信シフトレジスタ64にシフトクロックを供給したり、送受信のトリガ信号を入出力してシリアル通信のタイミング制御を行う。また、シリアル通信の送受信完了のタイミングで割り込み信号の発生も行う。   FIG. 3 is a diagram for explaining a more detailed configuration of the communication control circuit 43 shown in FIGS. 2 (A) and 2 (B). Clock signals of various frequencies generated by the clock generation circuit 42 are input to the baud rate generator 61. The baud rate generator 61 generates a clock signal necessary for communication control according to various communication setting data sent through the data bus 50. The communication setting data includes switching between communication master and slave, switching between synchronous communication and asynchronous communication, synchronous clock frequency setting for synchronous communication, asynchronous sampling clock frequency setting for asynchronous communication, and the like. When the synchronous communication and the communication master are set by the communication setting data, the synchronous clock signal SCLK according to the synchronous clock frequency setting value in the case of synchronous communication is output. When the synchronous communication and the communication slave are set by the communication setting data, the synchronous clock signal SCLK is input. The synchronous clock signal SCLK is also supplied to 62 transmission / reception control blocks. When asynchronous communication is set by the communication setting data, a sampling clock according to the asynchronous sampling clock frequency setting in the case of asynchronous communication is supplied to the transmission / reception control block 62. The transmission / reception control block 62 also supplies a shift clock to a transmission shift register 63 and a reception shift register 64, which will be described later, according to various communication setting data transmitted through the data bus 50, and inputs / outputs a transmission / reception trigger signal for serial communication. Perform timing control. An interrupt signal is also generated at the completion timing of serial communication transmission / reception.

63は送信シフトレジスタで、シリアル通信で送信するデータをパラレル入力し信号TXDとしてシリアル出力する。シリアル出力するためのシフトクロックは送受信制御ブロック62から供給される。非同期通信する場合は送信トリガ信号を送受信制御ブロック62から入力する。64は受信シフトレジスタで、シリアル通信で受信するデータ信号RXDをシリアル入力しパラレル出力する。シリアル入力するためのシフトクロックは送受信制御ブロック62から供給される。非同期通信する場合は受信トリガ信号を送受信制御ブロック62に出力する。65は送信データレジスタでデータバス50より送信用データを入力されて、送信シフトレジスタ63にデータセットする。66は受信データレジスタで受信シフトレジスタ64より受信データを入力されてデータバス50に出力可能とする。   Reference numeral 63 denotes a transmission shift register which inputs data to be transmitted by serial communication in parallel and serially outputs it as a signal TXD. A shift clock for serial output is supplied from the transmission / reception control block 62. When performing asynchronous communication, a transmission trigger signal is input from the transmission / reception control block 62. A reception shift register 64 serially inputs a data signal RXD received by serial communication and outputs it in parallel. A shift clock for serial input is supplied from the transmission / reception control block 62. When performing asynchronous communication, a reception trigger signal is output to the transmission / reception control block 62. A transmission data register 65 receives transmission data from the data bus 50 and sets data in the transmission shift register 63. Reference numeral 66 denotes a reception data register which receives reception data from the reception shift register 64 and can output it to the data bus 50.

レンズ側CLK端子35を有する交換レンズ3について、非同期通信に対応できない従来レンズの場合と、非同期通信に対応可能な新レンズの場合とが想定される。カメラ1にレンズ側CLK端子35を有する交換レンズ3が装着された場合、従来レンズの場合でも新レンズの場合でも対応できるように、はじめに同期通信を行う。
図12記載の通信プロトコルに従ってカメラ側マイクロコンピュータ13が交換レンズと第1の通信モードとしての同期通信を行う場合の制御フローについて図13に従って説明する。
As for the interchangeable lens 3 having the lens-side CLK terminal 35, a case of a conventional lens that cannot handle asynchronous communication and a case of a new lens that can support asynchronous communication are assumed. When the interchangeable lens 3 having the lens-side CLK terminal 35 is attached to the camera 1, synchronous communication is first performed so as to be able to cope with both a conventional lens and a new lens.
A control flow when the camera-side microcomputer 13 performs synchronous communication as the first communication mode with the interchangeable lens according to the communication protocol shown in FIG. 12 will be described with reference to FIG.

(ステップ301)同期クロック信号CLKを出力する端子の入力レベルをチェックして、レンズ側がBusy状態でないかどうかを判別する。本例ではレンズ側がこの端子をLレベルにしている状態はBusy状態であるものとし、この状態ではカメラはレンズと通信することができない。信号CLKを出力する端子の入力レベルがHレベルで、レンズ側がBusy状態ではない場合は(ステップ302)へ進む。   (Step 301) The input level of the terminal that outputs the synchronous clock signal CLK is checked to determine whether or not the lens side is not in the Busy state. In this example, the state in which the lens side has this terminal at the L level is the Busy state, and in this state, the camera cannot communicate with the lens. When the input level of the terminal that outputs the signal CLK is H level and the lens side is not in the Busy state, the process proceeds to (Step 302).

(ステップ302)まず最初にレンズに送信するデータDATA_C1を送信データレジスタにセットして、1送信単位のシリアル通信を行う。通常はまずレンズに送信するデータDATA_C1がレンズに対する何らかのコマンドであり、それに応答するレンズからの返答データは次の1送信単位の通信時のデータDATA_L2である。レンズへDATA_C1を送るのと同じタイミングでレンズからカメラに送られてくるデータDATA_L1はdon’t careデータであるので特に読み込んで処置などをしない。   (Step 302) First, data DATA_C1 to be transmitted to the lens is set in the transmission data register, and serial communication for one transmission unit is performed. Normally, data DATA_C1 transmitted to the lens is a certain command to the lens, and response data from the lens responding thereto is data DATA_L2 at the time of communication of the next one transmission unit. Since data DATA_L1 sent from the lens to the camera at the same timing as sending DATA_C1 to the lens is don't care data, it is not particularly read and treated.

(ステップ303)同期クロック信号CLKを出力する端子の入力レベルをチェックして、レンズ側がBusy状態でないかどうかを判別する。送信したデータDATA_C1の内容をレンズ側が解析してそれに対応する処理をする間はレンズがCLKを出力する端子をLレベルとしてBusy状態になるので、その処理が完了してレンズ側がBusy状態ではなくなるのを待ってから(ステップ304)へ進む。   (Step 303) The input level of the terminal that outputs the synchronous clock signal CLK is checked to determine whether or not the lens side is not in the Busy state. While the lens side analyzes the content of the transmitted data DATA_C1 and performs a corresponding process, the lens outputs the CLK signal to the L level and enters the Busy state. Therefore, the processing is completed and the lens side is not in the Busy state. (Step 304).

(ステップ304)次ににレンズに送信するデータDATA_C2を送信データレジスタにセットして、1送信単位のシリアル通信を行う。(ステップ302)で送信したデータDATA_C1がレンズに対してレンズ固有の情報をカメラに送信するコマンドであった場合はデータDATA_C2の内容はdon’t careデータとなり、折り返しにレンズから送られてくるデータDATA_L2に意味があることになる。   (Step 304) Next, data DATA_C2 to be transmitted to the lens is set in the transmission data register, and serial communication in one transmission unit is performed. When the data DATA_C1 transmitted in (Step 302) is a command for transmitting lens-specific information to the camera to the lens, the content of the data DATA_C2 is don't care data, and the data sent from the lens for return. DATA_L2 is meaningful.

(ステップ305)受信データレジスタに受信されたデータDATA_L2を取り込む。
以上が交換レンズと通信を行う場合のカメラ側のマイクロコンピュータの基本的な動作フローである。
(Step 305) The received data DATA_L2 is taken into the reception data register.
The above is the basic operation flow of the microcomputer on the camera side when communicating with the interchangeable lens.

次に図12記載の通信プロトコルに従って交換レンズ側のマイクロコンピュータ31がカメラと同期通信を行う場合の制御フローについて図14に従って説明する。レンズ側マイクロコンピュータ31は通信に際してはスレーブ側となる。同期クロック信号CLKの立下りエッジ数が所定数カウントされたことにより割り込み信号を発生する通信割り込み機能によって、カメラからの1送信単位のシリアル通信を受信したことを検知する。   Next, a control flow when the microcomputer 31 on the interchangeable lens side performs synchronous communication with the camera according to the communication protocol shown in FIG. 12 will be described with reference to FIG. The lens-side microcomputer 31 becomes a slave side for communication. It is detected that serial communication of one transmission unit from the camera has been received by a communication interrupt function that generates an interrupt signal when a predetermined number of falling edges of the synchronous clock signal CLK are counted.

(ステップ401)まずは同期クロック信号CLKを受信する端子をLレベルにし、レンズ側がBusy状態であることをカメラが判別できるようにする。   (Step 401) First, the terminal for receiving the synchronous clock signal CLK is set to L level so that the camera can determine that the lens side is in the Busy state.

(ステップ402)受信データレジスタに入力されているカメラからの送信データDATA_C1を入力し、その内容を解析する。尚、カメラからの送信データは最初はDATA_C1であるが、その後DATA_C2等が送られてくる場合があるので、フローチャート上はDATA_Cxと記載してある。   (Step 402) The transmission data DATA_C1 from the camera input to the reception data register is input, and the content is analyzed. Note that the transmission data from the camera is initially DATA_C1, but since DATA_C2 or the like may be sent after that, it is described as DATA_Cx in the flowchart.

(ステップ403)カメラからの送信データDATA_C1の内容がレンズ側のアクチュエータの駆動命令である場合は(ステップ404)へ進む。   (Step 403) When the content of the transmission data DATA_C1 from the camera is a driving command for the actuator on the lens side, the process proceeds to (Step 404).

(ステップ404)カメラからの送信データDATA_C1の内容に従ってレンズ側のアクチュエータの駆動処理を行う。   (Step 404) The actuator on the lens side is driven according to the content of the transmission data DATA_C1 from the camera.

(ステップ405)レンズ側のアクチュエータの駆動に関する処理が終わり、次のカメラからの通信を受信可能となったかどうかを判別する。受信可能になれば(ステップ407)へ進む。   (Step 405) It is determined whether or not the processing related to driving of the actuator on the lens side is completed and communication from the next camera can be received. If reception is possible, the process proceeds to (step 407).

上記(ステップ403)でカメラからの送信データDATA_C1の内容がレンズ固有のデータ送信要求であった場合は(ステップ406)へ進む。   When the content of the transmission data DATA_C1 from the camera is a lens-specific data transmission request in the above (Step 403), the process proceeds to (Step 406).

(ステップ406)カメラからの送信データDATA_C1に従い要求されているレンズ固有のデータを送信データレジスタにセットする。   (Step 406) The lens-specific data requested according to the transmission data DATA_C1 from the camera is set in the transmission data register.

(ステップ407)同期クロック信号CLKを受信する端子をHレベルにし、レンズ側がBusy状態ではなくなったことをカメラが判別できるようにする。   (Step 407) The terminal that receives the synchronous clock signal CLK is set to H level so that the camera can determine that the lens side is no longer in the Busy state.

以上、カメラ1と交換レンズ3との間で同期通信を行う場合の動作フローについて説明した。   The operation flow in the case where synchronous communication is performed between the camera 1 and the interchangeable lens 3 has been described above.

次に、CLK端子有りのレンズ3が装着された場合の、本発明を実施したカメラと交換レンズとからなるカメラシステムの通信について説明する。カメラ側及び交換レンズ側マイクロコンピュータ個々の動作フローは後述するが、最初に全体的な動作の流れとして図6の通信設定動作フローチャートを用いて説明する。   Next, communication of a camera system composed of a camera implementing the present invention and an interchangeable lens when the lens 3 with the CLK terminal is attached will be described. The operation flow of each of the microcomputer on the camera side and the interchangeable lens side will be described later. First, the overall operation flow will be described with reference to the communication setting operation flowchart of FIG.

CLK端子有りのレンズ3が装着されたことをカメラ側マイクロコンピュータ13が検出すると、図6の(ステップ101)から動作を開始する。なお、装着されたレンズがCLK端子を有するかどうかを検出する方法については、詳細を後述する。   When the camera-side microcomputer 13 detects that the lens 3 with the CLK terminal is attached, the operation starts from (Step 101) in FIG. The method for detecting whether or not the attached lens has a CLK terminal will be described later in detail.

(ステップ101)カメラ側マイクロコンピュータ13は交換レンズとの通信方式の初期設定として従来レンズ及び新レンズとも対応可能な同期通信を行うように、通信制御回路43並びにIO制御回路45〜47の設定を行う。この設定により、カメラ側マイクロコンピュータ13においては通信を行う際は通信マスターとして通信同期クロックSCLK信号が入出力端子55から出力される設定となる。さらにカメラ側マイクロコンピュータ13においてはカメラから交換レンズへの送信データTXD信号が入出力端子56から出力され、交換レンズからカメラへの送信データRXD信号が入出力端子57から入力される設定となる。   (Step 101) The camera-side microcomputer 13 sets the communication control circuit 43 and the IO control circuits 45 to 47 so as to perform synchronous communication compatible with the conventional lens and the new lens as the initial setting of the communication method with the interchangeable lens. Do. With this setting, when communication is performed in the camera side microcomputer 13, the communication synchronous clock SCLK signal is output from the input / output terminal 55 as a communication master. In the camera-side microcomputer 13, the transmission data TXD signal from the camera to the interchangeable lens is output from the input / output terminal 56, and the transmission data RXD signal from the interchangeable lens to the camera is input from the input / output terminal 57.

交換レンズは非同期通信対応可能な新レンズであったとしても、初期設定としては同期通信のスレーブ設定を通信制御回路43並びにIO制御回路45〜47に行う。この設定により、レンズ側マイクロコンピュータ31においては通信同期クロックSCLK信号を入出力端子55より入力する設定となる。加えてレンズ側マイクロコンピュータ31においては交換レンズからカメラへの送信データTXD信号が入出力端子56から出力され、カメラから交換レンズへの送信データRXD信号が入出力端子57から入力される設定となる。   Even if the interchangeable lens is a new lens capable of asynchronous communication, as an initial setting, a slave setting for synchronous communication is performed in the communication control circuit 43 and the IO control circuits 45 to 47. With this setting, the lens-side microcomputer 31 is set to input the communication synchronization clock SCLK signal from the input / output terminal 55. In addition, in the lens-side microcomputer 31, the transmission data TXD signal from the interchangeable lens to the camera is output from the input / output terminal 56, and the transmission data RXD signal from the camera to the interchangeable lens is input from the input / output terminal 57. .

(ステップ102)カメラと交換レンズとの間で同期方式による通信を行う。同期通信のタイミングチャートやカメラ側マイクロコンピュータ13並びにレンズ側マイクロコンピュータ31の動作フローとしては、前述した図12〜図14に示したものになる。   (Step 102) Communication is performed between the camera and the interchangeable lens in a synchronous manner. The timing chart of the synchronous communication and the operation flow of the camera side microcomputer 13 and the lens side microcomputer 31 are as shown in FIGS.

この通信で、カメラ側はDATA_C1にて交換レンズに対して交換レンズの種類や名称或いは非同期通信対応可能な新タイプか否かを知るためのレンズ情報送信コマンドを送信する。交換レンズ側はレンズ情報送信コマンドを受信すると、これに対応したレンズ情報をDATA_L2にてカメラに送信する。   With this communication, the camera side transmits a lens information transmission command for knowing whether or not the type or name of the interchangeable lens or a new type capable of asynchronous communication to the interchangeable lens in DATA_C1. When the interchangeable lens side receives the lens information transmission command, the interchangeable lens side transmits lens information corresponding to the command to the camera using DATA_L2.

(ステップ103)カメラ側マイクロコンピュータ13は受信したレンズ情報DATA_L2を解析して、現在装着されている交換レンズが非同期通信対応可能か否かを判別する。カメラ側マイクロコンピュータ13は現在装着されている交換レンズが非同期通信対応可能であると判別されると(ステップ104)へ進む。   (Step 103) The camera-side microcomputer 13 analyzes the received lens information DATA_L2, and determines whether or not the currently mounted interchangeable lens is compatible with asynchronous communication. If it is determined that the currently mounted interchangeable lens is compatible with asynchronous communication, the camera-side microcomputer 13 proceeds to (Step 104).

(ステップ104)カメラは交換レンズに対して再び同期方式による通信を行い、非同期通信を行う際のボーレート調整用に測定するパルス出力をするようにコマンドを送信する。   (Step 104) The camera communicates with the interchangeable lens again in a synchronous manner, and transmits a command so as to output a pulse to be measured for baud rate adjustment when performing asynchronous communication.

レンズ側はこのコマンドを受信したならば非同期通信を行う際のボーレート調整用にカメラが測定するパルス出力を行う。ボーレート調整用パルスの出力に関するタイミングチャートの例を図10に示す。カメラ側マイクロコンピュータ13が図10のカメラ側送信データDATA_C1にて交換レンズに対してボーレート調整用パルスの出力を要求するコマンドを送信すると、レンズ側マイクロコンピュータ31はそのデータを受信してそのコマンドを解析する間は一旦は通常のBusy出力をCLK信号をL出力にすることで行う。その後コマンド解析ができて次の通信を受けられるようになるとCLK信号をHレベルとしてBusy解除を行い、カメラに知らせる。   When receiving this command, the lens side outputs a pulse to be measured by the camera for baud rate adjustment when performing asynchronous communication. An example of a timing chart regarding the output of the baud rate adjusting pulse is shown in FIG. When the camera-side microcomputer 13 transmits a command requesting output of a baud rate adjustment pulse to the interchangeable lens using the camera-side transmission data DATA_C1 in FIG. 10, the lens-side microcomputer 31 receives the data and receives the command. During the analysis, the normal Busy output is temporarily performed by setting the CLK signal to the L output. Thereafter, when the command analysis can be performed and the next communication can be received, the CLK signal is set to the H level to release the Busy and notify the camera.

カメラ側マイクロコンピュータ13はCLK信号がHレベルとなりレンズ側のBusy解除を知ると送信データDATA_C2を送信する。この場合の送信データDATA_C2のデータはdon’t careデータであり、単にレンズ側にボーレート調整用パルスの出力を行うためのタイミングトリガとして送信する。   When the CLK signal becomes H level and the camera-side microcomputer 13 knows that the lens-side Busy is released, it transmits transmission data DATA_C2. In this case, the transmission data DATA_C2 is don't care data, and is simply transmitted as a timing trigger for outputting a baud rate adjusting pulse to the lens side.

レンズ側マイクロコンピュータ31は送信データDATA_C2を受信して通信割り込みが発生すると、直ちにCLK信号をL出力にすることでボーレート調整用パルスTmesを出力する。ボーレート調整用パルスTmesはレンズ側マイクロコンピュータ31の発振回路42により発生している動作クロックの予め決められたクロックカウント分だけの時間出力する。例えばレンズ側マイクロコンピュータ31の発振回路42により発生している動作クロックが10MHzとして、ボーレート調整用パルスTmesとして65536クロック分出力するとすれば、6.5536msec.の時間このパルス出力が行われる。仮に、レンズ側マイクロコンピュータ31の発振回路42により発生している動作クロックが回路素子の誤差要因により10.1MHzになっていたとすれば、ボーレート調整用パルスTmesの時間幅は6.4887 msec.となり、レンズ側マイクロコンピュータ31の発振回路の発振周波数の精度ずれがこのパルスの時間幅に反映される。   When the transmission side DATA_C2 is received and a communication interrupt occurs, the lens side microcomputer 31 immediately outputs the baud rate adjusting pulse Tmes by setting the CLK signal to L output. The baud rate adjusting pulse Tmes is output for a time corresponding to a predetermined clock count of the operation clock generated by the oscillation circuit 42 of the lens side microcomputer 31. For example, if the operation clock generated by the oscillation circuit 42 of the lens-side microcomputer 31 is 10 MHz and 65536 clocks are output as the baud rate adjusting pulse Tmes, 6.5536 msec. This pulse output is performed for a period of time. If the operation clock generated by the oscillation circuit 42 of the lens-side microcomputer 31 is 10.1 MHz due to an error factor of the circuit element, the time width of the baud rate adjusting pulse Tmes is 6.487 msec. Thus, the accuracy deviation of the oscillation frequency of the oscillation circuit of the lens side microcomputer 31 is reflected in the time width of this pulse.

カメラ側マイクロコンピュータ13は送信データDATA_C2送信後に入出力端子55の立下りエッジを開始、同端子の立ち上がりエッジを終了にしてカウンタ・タイマー回路44による時間計測を行い、このボーレート調整用パルスTmesの時間測定をする。   The camera-side microcomputer 13 starts the falling edge of the input / output terminal 55 after transmitting the transmission data DATA_C2, ends the rising edge of the terminal, and measures the time by the counter / timer circuit 44. The time of the baud rate adjusting pulse Tmes Measure.

仮にカメラ側マイクロコンピュータ13が16MHzのクロックにてカウンタ・タイマー回路44による時間計測を行った場合、6.5536msec.の時間は104857カウントになり、6.4887 msec. の時間は103819カウントになる。また仮にカメラ側マイクロコンピュータ13が16.16MHzのクロックにてカウンタ・タイマー回路44による時間計測を行った場合、6.5536msec.の時間は105906カウントになり、6.4887 msec. の時間は104857カウントになる。よって、このボーレート調整用パルスTmesの時間計測により、カメラ側マイクロコンピュータ13は自身の発振周波数精度に対する相対的なレンズ側マイクロコンピュータ31の発振周波数精度ずれを知ることができる。   If the camera-side microcomputer 13 performs time measurement by the counter / timer circuit 44 with a 16 MHz clock, 6.5536 msec. Is 104857 counts, and 6.487 msec. This time is 103819 counts. Also, if the camera side microcomputer 13 performs time measurement by the counter / timer circuit 44 with a clock of 16.16 MHz, 6.5536 msec. Is 105906 counts, and 6.487 msec. This time becomes 104857 counts. Therefore, by measuring the time of the baud rate adjusting pulse Tmes, the camera-side microcomputer 13 can know the deviation of the oscillation frequency accuracy of the lens-side microcomputer 31 relative to its own oscillation frequency accuracy.

(ステップ105)カメラ側マイクロコンピュータ13は前記(ステップ104)で得られたボーレート調整用パルスTmesのカウント値を元に相対的なレンズ側マイクロコンピュータ31の発振周波数精度ずれを勘案し、非同期通信のボーレートを調整する。   (Step 105) The camera-side microcomputer 13 considers the relative oscillation frequency accuracy deviation of the lens-side microcomputer 31 based on the count value of the baud rate adjusting pulse Tmes obtained in (Step 104), and performs asynchronous communication. Adjust the baud rate.

例として、予め取り決めた非同期通信のボーレートが19200bpsであったとする。レンズ側マイクロコンピュータ31の発振回路の発振周波数がずれのない10MHzであった場合は、レンズ側マイクロコンピュータ31はボーレートが19200bpsでの非同期通信データ送受信ができる。しかし回路素子の誤差要因により10.1MHzにて発振しているレンズ側マイクロコンピュータ31の場合は、ボーレートを19200bpsに設定したつもりでも、その周波数ずれの分19392bpsになってしまう。非同期通信の場合は同期クロックが存在しない分、こうした双方のボーレートずれが所定内に収まっていないとデータサンプリングエラーを起こして正常な送受信ができない。よって、カメラ側マイクロコンピュータ13は相対的なレンズ側マイクロコンピュータ31の発振周波数精度ずれに相応して最適なボーレート設定を行う。   As an example, assume that the baud rate of asynchronous communication decided in advance is 19200 bps. When the oscillation frequency of the oscillation circuit of the lens-side microcomputer 31 is 10 MHz with no deviation, the lens-side microcomputer 31 can send and receive asynchronous communication data at a baud rate of 1920 bps. However, in the case of the lens-side microcomputer 31 oscillating at 10.1 MHz due to an error factor of the circuit element, even if the baud rate is set to 19200 bps, the frequency deviation is 19392 bps. In the case of asynchronous communication, since there is no synchronous clock, if these two baud rate deviations are not within a predetermined range, a data sampling error occurs and normal transmission / reception cannot be performed. Therefore, the camera side microcomputer 13 sets an optimum baud rate in accordance with the relative deviation of the oscillation frequency accuracy of the lens side microcomputer 31.

(ステップ106)カメラ側マイクロコンピュータ13は交換レンズとの通信方式の設定変更を行い、非同期通信を行うように通信制御回路43並びにIO制御回路45〜47の設定を行う。   (Step 106) The camera-side microcomputer 13 changes the setting of the communication system with the interchangeable lens, and sets the communication control circuit 43 and the IO control circuits 45 to 47 so as to perform asynchronous communication.

レンズ側マイクロコンピュータ31もカメラとの通信方式の設定変更を行い、非同期通信を行うように通信制御回路43並びにIO制御回路45〜47の設定を行う。   The lens side microcomputer 31 also changes the setting of the communication method with the camera, and sets the communication control circuit 43 and the IO control circuits 45 to 47 so as to perform asynchronous communication.

本ステップを実行した以降は、カメラと交換レンズ間の通信は第2の通信モードとしての非同期通信にて行われる。図11は非同期通信における通信タイミングチャート例である。カメラ側からレンズ側にレンズ情報の送信要求コマンド或いはレンズ側のアクチュエータの駆動コマンドを送信する場合は、DOC信号に設定されたボーレートでの非同期データパターンを出力する。多くの場合、まずLレベルのスタートビットを出力し、その後所定ビット数のデータを設定したボーレートにて出力する。所定ビット数のデータを出力し終えるとHレベルのストップビットを出力し送信が完了する。CLK信号を出力する必要は無いし、DOL信号を同時に受ける必要も無い。   After executing this step, communication between the camera and the interchangeable lens is performed by asynchronous communication as the second communication mode. FIG. 11 is an example of a communication timing chart in asynchronous communication. When transmitting a lens information transmission request command or a lens-side actuator drive command from the camera side to the lens side, an asynchronous data pattern at the baud rate set in the DOC signal is output. In many cases, an L level start bit is output first, and then a predetermined number of bits of data are output at a set baud rate. When the output of a predetermined number of bits is completed, an H-level stop bit is output and transmission is completed. There is no need to output the CLK signal, and there is no need to receive the DOL signal at the same time.

カメラ側から送信されたコマンドに対してレンズ側がレンズ情報をカメラに対して送信する場合は、これもCLK信号を使うことなくレンズ側がデータ送信の準備ができたならば任意のタイミングでDOL信号にこれを出力することで行われる。通信プロトコルはDOC信号の場合と同様である。
このような非同期通信方式に切替えることで、カメラ側マイクロコンピュータ13とレンズ側マイクロコンピュータ31との間で基本送信単位毎に行っていたBusy解除確認を行う必要がなくなる。
When the lens side transmits lens information to the camera in response to a command transmitted from the camera side, this is also converted to the DOL signal at any timing if the lens side is ready for data transmission without using the CLK signal. This is done by outputting this. The communication protocol is the same as in the case of the DOC signal.
By switching to such an asynchronous communication method, it is not necessary to perform the Busy release confirmation performed for each basic transmission unit between the camera side microcomputer 13 and the lens side microcomputer 31.

以上でカメラと交換レンズとからなるカメラシステムの通信に関する設定動作フローの説明を終える。   This is the end of the description of the setting operation flow relating to the communication of the camera system including the camera and the interchangeable lens.

次にカメラ側マイクロコンピュータ13側における交換レンズとの通信設定に関する動作フローを図7から始まるフローチャートにて説明する。
CLK端子有りのレンズ3の装着を検出してからカメラ側マイクロコンピュータ13が動作を開始して交換レンズと通信を行う場合、図7の(ステップ111)からの動作フローを実行する。
Next, an operation flow regarding communication setting with the interchangeable lens on the camera side microcomputer 13 side will be described with reference to a flowchart starting from FIG.
When the camera-side microcomputer 13 starts operating after communicating the lens 3 with the CLK terminal and communicates with the interchangeable lens, the operation flow from (step 111) in FIG. 7 is executed.

(ステップ111)図6のカメラシステムの動作フロー(ステップ101)で説明したように最初は同期通信を行うように通信制御回路43並びにIO制御回路45〜47の設定が行われている。従って、同期通信を行う場合の手順である同期クロック信号CLKを出力する端子の入力レベルをチェックして、レンズ側がBusy状態でないかどうかを判別する。信号CLKを出力する端子の入力レベルがHレベルで、レンズ側がBusy状態ではない場合は(ステップ112)へ進む。   (Step 111) As described in the operation flow (step 101) of the camera system of FIG. 6, the communication control circuit 43 and the IO control circuits 45 to 47 are initially set so as to perform synchronous communication. Therefore, the input level of the terminal that outputs the synchronous clock signal CLK, which is a procedure for performing synchronous communication, is checked to determine whether the lens side is not in the Busy state. When the input level of the terminal that outputs the signal CLK is H level and the lens side is not in the Busy state, the process proceeds to (Step 112).

(ステップ112)最初に交換レンズに対して送信するデータDATA_C1を送信シフトレジスタにセットして同期通信を行う。DATA_C1の内容は交換レンズに対して交換レンズの種類や名称或いは非同期通信対応可能な新タイプか否かを知るためのレンズ情報送信コマンドである。   (Step 112) First, data DATA_C1 to be transmitted to the interchangeable lens is set in the transmission shift register to perform synchronous communication. The content of DATA_C1 is a lens information transmission command for knowing whether or not the interchangeable lens is a new type compatible with the type and name of the interchangeable lens or asynchronous communication.

(ステップ113)同期クロック信号CLKを出力する端子の入力レベルをチェックして、レンズ側がBusy状態でないかどうかを判別する。送信したデータDATA_C1の内容をレンズ側が解析してそれに対応する処理をする間は、レンズがCLKを出力する端子をLレベルとしてBusy状態とする。当該処理が完了してレンズ側がBusy状態ではなくなるのを待ってから(ステップ114)へ進む。   (Step 113) The input level of the terminal that outputs the synchronous clock signal CLK is checked to determine whether or not the lens side is not in the Busy state. While the lens side analyzes the content of the transmitted data DATA_C1 and performs the corresponding processing, the lens outputs the CLK output terminal to the Busy state. The process proceeds to (Step 114) after waiting for the processing to be completed and the lens side not to be in the Busy state.

(ステップ114)don’t careデータDATA_C2を送信シフトレジスタにセットして同期通信を行う。   (Step 114) The don't care data DATA_C2 is set in the transmission shift register to perform synchronous communication.

(ステップ115)前ステップでDATA_C2を送信した際に交換レンズから送られてくるレンズ情報であるDATA_L2を受信シフトレジスタから入力する。   (Step 115) When DATA_C2 is transmitted in the previous step, DATA_L2, which is lens information sent from the interchangeable lens, is input from the reception shift register.

(ステップ116)前ステップで入力したレンズ情報を解析し、現在装着されている交換レンズが非同期通信対応可能か否かを判別する。カメラ側マイクロコンピュータ13は現在装着されている交換レンズが非同期通信対応可能であると判別すると図8の(ステップ151)へ進む。   (Step 116) The lens information input in the previous step is analyzed to determine whether or not the currently mounted interchangeable lens is compatible with asynchronous communication. If the camera-side microcomputer 13 determines that the currently mounted interchangeable lens is compatible with asynchronous communication, the process proceeds to (step 151) in FIG.

(ステップ151)カメラ側マイクロコンピュータ13は同期クロック信号CLKを出力する端子の入力レベルをチェックして、レンズ側がBusy状態でないかどうかを判別する。信号CLKを出力する端子の入力レベルがHレベルで、レンズ側がBusy状態ではない場合は(ステップ152)へ進む。   (Step 151) The camera-side microcomputer 13 checks the input level of the terminal that outputs the synchronous clock signal CLK, and determines whether or not the lens side is not in the Busy state. If the input level of the terminal that outputs the signal CLK is H level and the lens side is not in the Busy state, the process proceeds to (Step 152).

(ステップ152)交換レンズに対して送信するデータDATA_C1を送信シフトレジスタにセットして同期通信を行う。DATA_C1の内容は非同期通信を行う際のボーレート調整用に測定するパルスを交換レンズ側に出力をするよう要求するコマンドである。   (Step 152) Data DATA_C1 to be transmitted to the interchangeable lens is set in the transmission shift register to perform synchronous communication. The content of DATA_C1 is a command for requesting the interchangeable lens to output a pulse to be measured for baud rate adjustment when performing asynchronous communication.

(ステップ153)同期クロック信号CLKを出力する端子の入力レベルをチェックして、レンズ側がBusy状態でないかどうかを判別する。信号CLKを出力する端子の入力レベルがHレベルで、レンズ側がBusy状態ではない場合は(ステップ154)へ進む。   (Step 153) The input level of the terminal that outputs the synchronous clock signal CLK is checked to determine whether or not the lens side is in the Busy state. When the input level of the terminal that outputs the signal CLK is H level and the lens side is not in the Busy state, the process proceeds to (Step 154).

(ステップ154)don’t careデータDATA_C2を送信シフトレジスタにセットして同期通信を行う。   (Step 154) The don't care data DATA_C2 is set in the transmission shift register to perform synchronous communication.

(ステップ155)図4のステップ(ステップ104)で説明したように、このデータDATA_C2の受信直後から交換レンズがCLK信号をL出力にすることでボーレート調整用パルスTmesを出力する。このボーレート調整用パルスTmesの出力がされたらカウンタ・タイマー回路44による時間計測を開始する。   (Step 155) As described in Step (Step 104) of FIG. 4, immediately after reception of this data DATA_C2, the interchangeable lens outputs the CLK signal to the L output to output the baud rate adjusting pulse Tmes. When the baud rate adjusting pulse Tmes is output, time measurement by the counter / timer circuit 44 is started.

(ステップ156)交換レンズがCLK信号をH出力としボーレート調整用パルスTmesの出力が終了するとカウンタ・タイマー回路44による時間計測を終了する。カウンタ・タイマー回路44による計測値を入力してカメラ側マイクロコンピュータ13は自身の発振周波数精度に対する相対的なレンズ側マイクロコンピュータ31の発振周波数精度ずれに関する情報とする。   (Step 156) When the interchangeable lens sets the CLK signal to H output and the output of the baud rate adjusting pulse Tmes is completed, the time measurement by the counter / timer circuit 44 is completed. By inputting the measurement value by the counter / timer circuit 44, the camera-side microcomputer 13 obtains information on the deviation of the oscillation frequency accuracy of the lens-side microcomputer 31 relative to its own oscillation frequency accuracy.

(ステップ157)カウンタ・タイマー回路44による計測値の理想値からのずれ値に従って非同期通信を行う際のボーレートを決定する。   (Step 157) The baud rate at the time of performing asynchronous communication is determined according to the deviation value from the ideal value measured by the counter / timer circuit 44.

(ステップ158)カメラ側マイクロコンピュータ13は交換レンズとの通信方式の設定変更を行い、非同期通信を行うように通信制御回路43並びにIO制御回路45〜47の設定を行う。前ステップで決定されたボーレートが通信制御回路43に設定される。   (Step 158) The camera-side microcomputer 13 changes the setting of the communication method with the interchangeable lens, and sets the communication control circuit 43 and the IO control circuits 45 to 47 so as to perform asynchronous communication. The baud rate determined in the previous step is set in the communication control circuit 43.

以降は交換レンズとの通信は図11で説明したような非同期通信方式にて行われる。   Thereafter, communication with the interchangeable lens is performed by the asynchronous communication method as described in FIG.

尚、図7の(ステップ116)にて交換レンズが非同期通信に対応していないレンズであると判別された場合には図8にて説明したステップは実行せずに、そのまま同期通信方式による交換レンズとの通信を継続する。   If it is determined in (Step 116) in FIG. 7 that the interchangeable lens is a lens that does not support asynchronous communication, the steps described in FIG. Continue communication with the lens.

続いてレンズ側マイクロコンピュータ31側におけるカメラとの情報通信に関する動作フローを図9に示すフローチャートにて説明する。   Next, an operation flow related to information communication with the camera on the lens side microcomputer 31 side will be described with reference to a flowchart shown in FIG.

交換レンズ3がカメラ1に装着されてカメラから電源供給を受けてレンズ側マイクロコンピュータ31が動作可能となると、図6の(ステップ101)で説明したように最初は同期方式の通信のスレーブ側として通信制御回路43並びにIO制御回路45〜47の設定を済ます。この状態でカメラからの同期通信による割り込みが発生すると(ステップ201)からの動作フローを実行する。   When the interchangeable lens 3 is attached to the camera 1 and receives power supply from the camera and the lens-side microcomputer 31 becomes operable, as described in FIG. 6 (step 101), it is initially set as the slave side of the synchronous communication. Complete the settings for communication control circuit 43 and IO control circuits 45-47. In this state, when an interrupt due to synchronous communication from the camera occurs, the operation flow from (Step 201) is executed.

(ステップ201)同期クロック信号CLKを受信する端子をLレベルにし、レンズ側がBusy状態であることをカメラが判別できるようにする。   (Step 201) The terminal that receives the synchronous clock signal CLK is set to L level so that the camera can determine that the lens side is in the Busy state.

(ステップ202)受信シフトレジスタに入力されているカメラからの送信データDATA_C1を入力し、その内容を解析する。尚、カメラからの送信データは最初はDATA_C1であるが、その後DATA_C2等が送られてくる場合があるので、フローチャート上はDATA_Cxと記載してある。   (Step 202) The transmission data DATA_C1 from the camera input to the reception shift register is input, and the content is analyzed. Note that the transmission data from the camera is initially DATA_C1, but since DATA_C2 or the like may be sent after that, it is described as DATA_Cx in the flowchart.

(ステップ203)カメラからの送信データDATA_C1の内容がレンズ側のアクチュエータの駆動命令である場合は(ステップ204)へ進む。   (Step 203) When the content of the transmission data DATA_C1 from the camera is a lens-side actuator drive command, the process proceeds to (Step 204).

(ステップ204)カメラからの送信データDATA_C1の内容に従ってレンズ側のアクチュエータの駆動処理を行う。   (Step 204) According to the content of the transmission data DATA_C1 from the camera, the lens side actuator is driven.

(ステップ205)レンズ側のアクチュエータの駆動に関する処理が終わり、次のカメラからの通信を受信可能となったかどうかを判別する。受信可能になれば(ステップ208)へ進む。   (Step 205) It is determined whether or not the processing related to driving of the actuator on the lens side is completed and communication from the next camera can be received. If reception is possible, the process proceeds to step 208.

上記(ステップ203)のステップでカメラからの送信データDATA_C1の内容がレンズ側のアクチュエータの駆動命令ではなかった場合は(ステップ206)へ進む。   If the content of the transmission data DATA_C1 from the camera is not a lens-side actuator drive command in the step (step 203), the process proceeds to (step 206).

(ステップ206)カメラからの送信データDATA_C1の内容が非同期通信への切替えのためのボーレート調整用パルスTmesの出力を要求するものであるかどうか判別する。もしも、ボーレート調整用パルスTmesの出力を要求するものでなければ、レンズ情報のデータ送信要求であるということで(ステップ207)へ進む。   (Step 206) It is determined whether or not the content of the transmission data DATA_C1 from the camera requests the output of the baud rate adjustment pulse Tmes for switching to asynchronous communication. If the output of the baud rate adjusting pulse Tmes is not requested, the process proceeds to step 207 because it is a lens information data transmission request.

(ステップ207)カメラからの送信データDATA_C1に従い、要求されているレンズ情報のデータを送信シフトレジスタにセットする。要求されているレンズ情報が交換レンズの種類や名称或いは非同期通信対応可能な新タイプか否かを知るためのレンズ情報であれば、その情報データをセットする。   (Step 207) The requested lens information data is set in the transmission shift register in accordance with the transmission data DATA_C1 from the camera. If the requested lens information is lens information for knowing whether or not the type and name of the interchangeable lens is a new type capable of asynchronous communication, the information data is set.

(ステップ208)同期クロック信号CLKを受信する端子をHレベルにし、レンズ側がBusy状態ではなくなったことをカメラが判別できるようにする。   (Step 208) The terminal that receives the synchronous clock signal CLK is set to the H level so that the camera can determine that the lens side is no longer in the Busy state.

もしも、上記(ステップ206)でカメラからの送信データDATA_C1の内容が非同期通信への切替えのためのボーレート調整用パルスTmesの出力を要求するものであれば(ステップ209)へ進む。   If the content of the transmission data DATA_C1 from the camera requests the output of the baud rate adjustment pulse Tmes for switching to asynchronous communication in the above (step 206), the process proceeds to (step 209).

(ステップ209)図6の(ステップ104)で説明したように、レンズ側マイクロコンピュータ31はボーレート調整用パルスTmesを出力する為の所定のカウント値をカウンタ・タイマー回路44にセットする。セットしたら、カメラからボーレート調整用パルスの出力を行うためのタイミングトリガとしての送信データDATA_C2が送信されるのを待つ。このデータを受信すると(ステップ210)へ進む。   (Step 209) As described in (Step 104) of FIG. 6, the lens side microcomputer 31 sets a predetermined count value for outputting the baud rate adjusting pulse Tmes in the counter / timer circuit 44. If set, the camera waits for transmission data DATA_C2 as a timing trigger for outputting a baud rate adjusting pulse from the camera. When this data is received, the process proceeds to (Step 210).

(ステップ210)カウンタ・タイマー回路44のカウント開始と同時に同期クロック信号CLKを受信する端子をLレベルとする。カウンタ・タイマー回路44による所定値のカウントが完了すると同時に同期クロック信号CLKを受信する端子をHレベルとする。これでボーレート調整用パルスTmesの出力が完了する。   (Step 210) At the same time when the counter / timer circuit 44 starts counting, the terminal that receives the synchronous clock signal CLK is set to L level. As soon as the counter / timer circuit 44 finishes counting the predetermined value, the terminal that receives the synchronous clock signal CLK is set to the H level. This completes the output of the baud rate adjusting pulse Tmes.

(ステップ211)レンズ側マイクロコンピュータ31はカメラとの通信方式の設定変更を行い、非同期通信を行うように通信制御回路43並びにIO制御回路45〜47の設定を行う。   (Step 211) The lens-side microcomputer 31 changes the setting of the communication method with the camera, and sets the communication control circuit 43 and the IO control circuits 45 to 47 so as to perform asynchronous communication.

以降、カメラとの通信は図11にて説明した非同期通信にて行われる。
尚、非同期通信に対応可能な交換レンズが、非同期通信に対応していないカメラに装着されるケースも考えられるが、その場合はカメラ側からボーレート調整用パルスTmesの出力を要求するコマンドが送信されてくることはない。そのため、上記(ステップ209)〜(ステップ211)のステップを実行することは無い。よってこうした場合は同期方式の通信を継続することになる。
Thereafter, communication with the camera is performed by the asynchronous communication described with reference to FIG.
Note that there may be a case where an interchangeable lens that supports asynchronous communication is attached to a camera that does not support asynchronous communication. In this case, a command requesting the output of the baud rate adjustment pulse Tmes is transmitted from the camera side. Never come. Therefore, the above steps (Step 209) to (Step 211) are not executed. Therefore, in such a case, synchronous communication is continued.

以上、レンズ側CLK端子35を有する交換レンズ3がカメラに装着された場合におけるカメラとレンズの通信設定について説明した。上記の構成によれば、非同期通信対応可能なカメラに非同期通信対応可能な交換レンズが装着された場合、通信方式を同期通信から非同期通信に切り替えることで、同期通信時のBusyによる待ち時間の問題を改善することができる。   The camera-to-lens communication setting when the interchangeable lens 3 having the lens-side CLK terminal 35 is attached to the camera has been described above. According to the above configuration, when an interchangeable lens capable of asynchronous communication is attached to a camera capable of asynchronous communication, switching the communication method from synchronous communication to asynchronous communication causes a problem of waiting time due to busy during synchronous communication. Can be improved.

ここで、上記の非同期通信対応可能なカメラとレンズの構成では、はじめにレンズが非同期通信に対応するかどうかを確認するために同期通信を行っており、非同期通信に切り替えた後は同期クロック信号CLKを通信するための端子としてのCLK端子は必要なくなる。   Here, in the configuration of the camera and lens capable of asynchronous communication, synchronous communication is first performed to check whether the lens supports asynchronous communication. After switching to asynchronous communication, the synchronous clock signal CLK The CLK terminal as a terminal for communicating is no longer necessary.

本願技術思想は、図1(A)で示したようなCLK端子を有しない交換レンズ2にある。当該交換レンズ2においてははじめから非同期通信を行うことを想定しているため、カメラから同期クロック信号を受信する必要が無い。したがって、同期クロック信号を受信するためのCLK端子を備えていない。   The technical idea of the present application resides in the interchangeable lens 2 having no CLK terminal as shown in FIG. Since the interchangeable lens 2 is assumed to perform asynchronous communication from the beginning, there is no need to receive a synchronous clock signal from the camera. Therefore, the CLK terminal for receiving the synchronous clock signal is not provided.

CLK端子を有しない交換レンズ2が非同期通信対応可能なカメラに装着された場合、はじめから非同期通信を行う。以下で、交換レンズ2がカメラに装着された場合のカメラ−レンズ間通信方式の設定について説明する。   When the interchangeable lens 2 having no CLK terminal is attached to a camera capable of asynchronous communication, asynchronous communication is performed from the beginning. The setting of the camera-lens communication method when the interchangeable lens 2 is attached to the camera will be described below.

それに先立ち、装着された交換レンズがCLK端子を有するかどうかをカメラ側で識別する方法について説明する。   Prior to that, a method of identifying on the camera side whether or not the mounted interchangeable lens has a CLK terminal will be described.

図4は、図1で示したカメラと交換レンズの接続構成及び装着された交換レンズの識別方法を示す図である。71はカメラのマイクロコンピュータ13に制御端子であるゲートが接続されたMOSFET、72はカメラ側CLK端子15に接続され、MOSFET71により、グランドに接続されるプルダウン抵抗である。73はカメラのマイクロコンピュータ13に制御端子であるゲートが接続されたMOSFET、74はカメラ側DOC端子16に接続され、MOSFET73により、グランドに接続されるプルダウン抵抗である。なお、MOSFET71及びMOSFET73は、カメラ側接地端子18と電気的に接続することでグランドに接続されている。   FIG. 4 is a diagram illustrating a connection configuration between the camera and the interchangeable lens illustrated in FIG. 1 and a method for identifying the mounted interchangeable lens. Reference numeral 71 denotes a MOSFET having a gate as a control terminal connected to the microcomputer 13 of the camera. Reference numeral 72 denotes a pull-down resistor connected to the camera-side CLK terminal 15 and connected to the ground by the MOSFET 71. Reference numeral 73 denotes a MOSFET whose control terminal gate is connected to the microcomputer 13 of the camera, and 74 is a pull-down resistor connected to the camera-side DOC terminal 16 and connected to the ground by the MOSFET 73. The MOSFET 71 and the MOSFET 73 are connected to the ground by being electrically connected to the camera side ground terminal 18.

図4(A)は、CLK端子の無い交換レンズ2が装着されている場合を示している。75はレンズ側DOC端子26に接続され、この信号線を電源にプルアップするためのプルアップ抵抗である。   FIG. 4A shows a case where the interchangeable lens 2 having no CLK terminal is attached. A pull-up resistor 75 is connected to the lens-side DOC terminal 26 and pulls up the signal line to the power source.

図4(B)は、CLK端子のある交換レンズ3が装着されている場合を示している。76はレンズ側CLK端子35を電源にプルアップするためのプルアップ抵抗、77はレンズ側DOC端子36を電源にプルアップするためのプルアップ抵抗である。   FIG. 4B shows a case where the interchangeable lens 3 having the CLK terminal is attached. Reference numeral 76 denotes a pull-up resistor for pulling up the lens-side CLK terminal 35 to a power source, and reference numeral 77 denotes a pull-up resistor for pulling up the lens-side DOC terminal 36 to a power source.

図4(A)で、プルダウン抵抗72とプルアップ抵抗75の抵抗比は、10:1程度に設定されている。MOSFET71をONして、プルダウン抵抗72を有効にすると、カメラ側CLK端子15にレンズ3が装着された場合は、カメラ側CLK端子15の電圧が電源電圧の9/10程度の電圧となり、Highと判定される。また、レンズ2が装着された場合や何も接続されていない場合には、カメラ側CLK端子15にはレンズ側の端子が接続されない。そのため、カメラ側CLK端子15の電圧は、GNDレベルとなり、Lowと判定される。   In FIG. 4A, the resistance ratio between the pull-down resistor 72 and the pull-up resistor 75 is set to about 10: 1. When the MOSFET 71 is turned on and the pull-down resistor 72 is enabled, when the lens 3 is attached to the camera-side CLK terminal 15, the voltage at the camera-side CLK terminal 15 becomes about 9/10 of the power supply voltage, and High and Determined. Further, when the lens 2 is attached or when nothing is connected, the lens-side terminal is not connected to the camera-side CLK terminal 15. Therefore, the voltage at the camera-side CLK terminal 15 becomes the GND level and is determined to be Low.

図4(B)で、プルダウン抵抗74とプルアップ抵抗76、77の抵抗比は、10:1程度に設定されている。MOSFET73をONして、プルダウン抵抗74を有効にすると、カメラにレンズ2又は3が装着された場合は、カメラ側DOC端子16の電圧が電源電圧の9/10程度の電圧となり、Highと判定される。また、レンズが装着されていない場合には、カメラ側DOC端子16にはレンズ側の端子が接続されない。そのため、カメラ側DOC端子16の電圧は、GNDレベルとなり、Lowと判定される。   In FIG. 4B, the resistance ratio between the pull-down resistor 74 and the pull-up resistors 76 and 77 is set to about 10: 1. When the MOSFET 73 is turned on and the pull-down resistor 74 is enabled, when the lens 2 or 3 is attached to the camera, the voltage of the camera-side DOC terminal 16 becomes about 9/10 of the power supply voltage and is determined as High. The Further, when no lens is mounted, the lens side terminal is not connected to the camera side DOC terminal 16. Therefore, the voltage of the camera side DOC terminal 16 becomes the GND level and is determined to be Low.

この構成において、カメラ側マイクロコンピュータ13は、MOSFET71及びMOSFET73を制御して、カメラ側CLK端子15、カメラ側DOC端子16にレンズの信号線が接続されているかどうかを検出するようになっている。   In this configuration, the camera-side microcomputer 13 controls the MOSFET 71 and the MOSFET 73 to detect whether a lens signal line is connected to the camera-side CLK terminal 15 and the camera-side DOC terminal 16.

図5は本発明を実施したカメラと交換レンズからなるカメラシステムの装着レンズ判定に関するフローチャートである。カメラ側マイクロコンピュータ13における装着レンズ判定の流れについて説明する。不図示の電源スイッチがオンされてカメラと交換レンズとが動作可能になると、フローチャートの(ステップ001)から動作を開始する。   FIG. 5 is a flowchart regarding attached lens determination of a camera system composed of a camera and an interchangeable lens according to the present invention. A flow of attached lens determination in the camera-side microcomputer 13 will be described. When a power switch (not shown) is turned on and the camera and the interchangeable lens become operable, the operation starts from (Step 001) in the flowchart.

(ステップ001)MOSFET71、73をONして、プルダウン抵抗72、74を有効にし、(ステップ002)へ進む。   (Step 001) The MOSFETs 71 and 73 are turned on to enable the pull-down resistors 72 and 74, and the process proceeds to (Step 002).

(ステップ002)カメラ側DOC端子16の電圧を検出し、Highであれば(ステップ003)へ進む。Highでなければ(ステップ006)へ進む。   (Step 002) The voltage of the camera side DOC terminal 16 is detected. If it is High, the process proceeds to (Step 003). If it is not High, the process proceeds to (Step 006).

(ステップ003)カメラ側CLK端子15の電圧を検出し、Highであれば(ステップ004)へ進む。Highでなければ(ステップ005)へ進む。   (Step 003) The voltage of the camera side CLK terminal 15 is detected. If it is High, the process proceeds to (Step 004). If it is not High, the process proceeds to (Step 005).

(ステップ004)カメラ側CLK端子15及びカメラ側DOC端子16がプルアップされた状態であることから、カメラ側CLK端子15にレンズ側CLK端子35が、カメラ側DOC端子16にレンズ側のDOC端子36が接続されている。したがって、通信用CLK端子を持つレンズ3が装着されたと判断し、(ステップ007)へ進む。   (Step 004) Since the camera-side CLK terminal 15 and the camera-side DOC terminal 16 are pulled up, the lens-side CLK terminal 35 is connected to the camera-side CLK terminal 15, and the lens-side DOC terminal is connected to the camera-side DOC terminal 16. 36 is connected. Therefore, it is determined that the lens 3 having the communication CLK terminal is attached, and the process proceeds to (Step 007).

(ステップ005)カメラ側CLK端子15がプルアップされていないことから、カメラ側CLK端子15には何も接続されていない。一方、カメラ側DOC端子16がプルアップされた状態であることから、カメラ側DOC端子16にレンズ側のDOC端子26が接続されている。したがって、通信用CLK端子を持たないレンズ2が装着されたと判断し、(ステップ007)へ進む。   (Step 005) Since the camera side CLK terminal 15 is not pulled up, nothing is connected to the camera side CLK terminal 15. On the other hand, since the camera side DOC terminal 16 is pulled up, the lens side DOC terminal 26 is connected to the camera side DOC terminal 16. Accordingly, it is determined that the lens 2 having no communication CLK terminal is attached, and the process proceeds to (Step 007).

(ステップ006)カメラ側CLK端子15、カメラ側DOC端子16共にプルアップされていないことから、それぞれの端子に何も接続されておらず、レンズ未装着と判断し(ステップ007)へ進む。   (Step 006) Since neither the camera-side CLK terminal 15 nor the camera-side DOC terminal 16 is pulled up, nothing is connected to the respective terminals, and it is determined that no lens is attached (step 007).

(ステップ007)MOSFET71、73をOFFして装着レンズ検出動作を終了する。   (Step 007) The MOSFETs 71 and 73 are turned off to end the mounted lens detection operation.

(ステップ004)でCLK端子有りのレンズ3が装着されたと判定された場合、上述した図6のフローチャートの(ステップ101)から動作を開始し、はじめに同期通信を行う。なお、カメラ側CLK端子15及びカメラ側DOC端子16の電圧を検出する手段を別に設けて、カメラ側マイクロコンピュータ13に接続するようにしてもよい。   When it is determined in (Step 004) that the lens 3 with the CLK terminal is attached, the operation starts from (Step 101) in the flowchart of FIG. 6 described above, and synchronous communication is first performed. Note that a means for detecting the voltages of the camera side CLK terminal 15 and the camera side DOC terminal 16 may be provided separately and connected to the camera side microcomputer 13.

また、プルダウン抵抗74をカメラ側DOL端子17に、プルアップ抵抗75をレンズ側DOL端子27に、プルアップ抵抗77をレンズ側DOL端子37に接続するような構成でもよい。この場合、カメラ側マイクロコンピュータ13は、カメラ側DOL端子17の電圧に基づいて、交換レンズが装着されたかどうかを判定可能である。   Alternatively, the pull-down resistor 74 may be connected to the camera-side DOL terminal 17, the pull-up resistor 75 may be connected to the lens-side DOL terminal 27, and the pull-up resistor 77 may be connected to the lens-side DOL terminal 37. In this case, the camera-side microcomputer 13 can determine whether or not the interchangeable lens is attached based on the voltage of the camera-side DOL terminal 17.

また、交換レンズが装着されたかどうかを判定する方法は上記方法に限定されない。
図15は、図5で説明したCLK端子無しのレンズ2が装着された場合の、本発明を実施したカメラと交換レンズとからなるカメラシステムの通信に関する設定動作フローチャートである。カメラ側及び交換レンズ側マイクロコンピュータ個々の動作フローは後述するが、最初に全体的な動作の流れとして本図を説明する。
図5の動作で、CLK端子無しのレンズ2が装着されたことを検出すると、フローチャートの(ステップ501)から動作を開始する。
Further, the method for determining whether or not the interchangeable lens is attached is not limited to the above method.
FIG. 15 is a setting operation flowchart regarding communication of the camera system including the camera and the interchangeable lens when the lens 2 without the CLK terminal described in FIG. 5 is attached. The operation flow of each of the camera side and interchangeable lens side microcomputers will be described later. First, this figure will be described as the overall operation flow.
When it is detected in the operation of FIG. 5 that the lens 2 without the CLK terminal is attached, the operation starts from (Step 501) of the flowchart.

(ステップ501)非同期通信を行うように通信制御回路43並びにIO制御回路45〜47の設定を行い、(ステップ502)へ進む。この際、通信のためのボーレートをあらかじめ決められた標準の値、たとえば19200bpsに設定する。   (Step 501) The communication control circuit 43 and the IO control circuits 45 to 47 are set so as to perform asynchronous communication, and the process proceeds to (Step 502). At this time, the baud rate for communication is set to a predetermined standard value, for example, 19200 bps.

(ステップ502)カメラと交換レンズとの間で非同期方式による通信を行い(ステップ503)に進む。この通信で、カメラ側は交換レンズに対してDATA_C1にて交換レンズの種類や名称を知るためのレンズ情報送信コマンドを送信する。   (Step 502) Asynchronous communication is performed between the camera and the interchangeable lens, and the process proceeds to (Step 503). With this communication, the camera side transmits a lens information transmission command for knowing the type and name of the interchangeable lens to the interchangeable lens using DATA_C1.

交換レンズ側はレンズ情報送信コマンドを受信すると、これに対応したレンズ情報をDATA_L2にてカメラに送信する。   When the interchangeable lens side receives the lens information transmission command, the interchangeable lens side transmits lens information corresponding to the command to the camera using DATA_L2.

(ステップ503)(ステップ502)で行った通信が成立したかどうかを判断する。成立していれば(ステップ510)へ進み、成立していなければ(ステップ504)へ進む。   (Step 503) It is determined whether or not the communication performed in (Step 502) is established. If established, the process proceeds to (Step 510), and if not established, the process proceeds to (Step 504).

(ステップ504)(ステップ502)で行った通信が非成立であったが、この原因がボーレートのずれである可能性があるため、通信できるボーレートを探すために、ボーレート変更を行い(ステップ505)に進む。   (Step 504) Although the communication performed in (Step 502) is not established, there is a possibility that the cause is a deviation of the baud rate. Therefore, in order to find a baud rate at which communication is possible, the baud rate is changed (Step 505). Proceed to

一般的に、ボーレートのずれが5%程度までは正常に通信を行うことができるが、これ以上の差が生じると正しく通信ができないため、(ステップ501)の非同期通信設定で設定したボーレートよりも5%程度高いボーレートを設定する。たとえば、(ステップ501)での設定が19200bpsの設定であった場合20160bps程度のボーレートを設定する。   Generally, communication can be performed normally up to a baud rate deviation of about 5%. However, if a difference of more than this occurs, communication cannot be performed correctly, so that the baud rate set in the asynchronous communication setting in (Step 501) is not exceeded. Set a baud rate about 5% higher. For example, when the setting in (Step 501) is 19200 bps, a baud rate of about 20160 bps is set.

(ステップ505)カメラと交換レンズとの間で非同期方式による通信を行い(ステップ506)に進む。この通信でカメラ側は交換レンズに対してDATA_C1にて交換レンズの種類や名称を知るためのレンズ情報送信コマンドを送信する。   (Step 505) Asynchronous communication is performed between the camera and the interchangeable lens, and the process proceeds to (Step 506). With this communication, the camera side transmits a lens information transmission command for knowing the type and name of the interchangeable lens to the interchangeable lens with DATA_C1.

交換レンズ側はレンズ情報送信コマンドを受信すると、これに対応したレンズ情報をDATA_L2にてカメラに送信する。   When the interchangeable lens side receives the lens information transmission command, the interchangeable lens side transmits lens information corresponding to the command to the camera using DATA_L2.

(ステップ506)(ステップ505)で行った通信が成立したかどうかを判断する。成立していれば(ステップ510)へ進み、成立していなければ(ステップ507)へ進む。   (Step 506) It is determined whether or not the communication performed in (Step 505) has been established. If it is established, the process proceeds to (Step 510), and if not established, the process proceeds to (Step 507).

(ステップ507)(ステップ505)で行った通信が非成立であったが、この原因がボーレートのずれである可能性があるため、通信できるボーレートを探すためにボーレート変更を行い(ステップ508)に進む。   (Step 507) Although the communication performed in (Step 505) is not established, there is a possibility that the cause is a difference in the baud rate. Therefore, the baud rate is changed to search for a baud rate that can be communicated (Step 508). move on.

一般的に、ボーレートのずれが5%程度までは正常に通信を行うことができるが、これ以上の差が生じると正しく通信ができないため、(ステップ501)の非同期通信設定で設定したボーレートよりも5%程度低いボーレートを設定する。たとえば、(ステップ501)での設定が19200bpsの設定であった場合、18240bps程度のボーレートを設定する。   Generally, communication can be performed normally up to a baud rate deviation of about 5%. However, if a difference of more than this occurs, communication cannot be performed correctly, so that the baud rate set in the asynchronous communication setting in (Step 501) is not exceeded. Set a baud rate about 5% lower. For example, if the setting in (Step 501) is 19200 bps, a baud rate of about 18240 bps is set.

(ステップ508)カメラと交換レンズとの間で非同期方式による通信を行い、(ステップ509)に進む。この通信でカメラ側は交換レンズに対してDATA_C1にて交換レンズの種類や名称を知るためのレンズ情報送信コマンドを送信する。   (Step 508) Asynchronous communication is performed between the camera and the interchangeable lens, and the process proceeds to (Step 509). With this communication, the camera side transmits a lens information transmission command for knowing the type and name of the interchangeable lens to the interchangeable lens with DATA_C1.

交換レンズ側はレンズ情報送信コマンドを受信すると、これに対応したレンズ情報をDATA_L2にてカメラに送信する。   When the interchangeable lens side receives the lens information transmission command, the interchangeable lens side transmits lens information corresponding to the command to the camera using DATA_L2.

(ステップ509)(ステップ508)で行った通信が成立したかどうかを判断する。成立していれば(ステップ510)へ進み、成立していなければ(ステップ511)へ進む。   (Step 509) It is determined whether or not the communication performed in (Step 508) has been established. If established, the process proceeds to (Step 510), and if not established, the process proceeds to (Step 511).

(ステップ510)ここまでに通信の成立したボーレートで今後も通信を行うよう設定を行い、CLK端子を有しない交換レンズ2の通信設定を終了する。   (Step 510) Settings are made so that communication will continue at the baud rate at which communication has been established so far, and communication settings for the interchangeable lens 2 having no CLK terminal are terminated.

(ステップ511)ボーレートを変更して何度か通信を行ったが、通信が成立しなかったため、通信エラー処理を行い終了する。   (Step 511) The baud rate is changed and communication is performed several times. However, since communication is not established, communication error processing is performed and the process is terminated.

なお、これまでの説明で、ボーレート変更をアップとダウンの一回ずつ行うこととしたが、さらにボーレート変更を複数回行い、より広い範囲で通信可能なボーレートを探すこともできる。   In the above description, the baud rate is changed once up and down. However, the baud rate can be changed a plurality of times to search for a baud rate that allows communication over a wider range.

以上、CLK端子を有しない交換レンズ2がカメラに装着された場合におけるカメラとレンズの通信設定について説明した。上記構成によれば、CLK端子を有しないレンズが非同期通信に対応可能なカメラに装着された場合ははじめから非同期通信を行うことにより、確認のための同期通信が不要になり、レンズを装着してから撮影可能になるまでの時間を短縮することができる。また、レンズ側は端子部材を削減することができる。   In the foregoing, the communication setting between the camera and the lens when the interchangeable lens 2 having no CLK terminal is attached to the camera has been described. According to the above configuration, when a lens that does not have a CLK terminal is attached to a camera that supports asynchronous communication, asynchronous communication is not necessary since the asynchronous communication is performed from the beginning. It is possible to shorten the time from when the image is taken to when the image can be taken. Further, the number of terminal members can be reduced on the lens side.

上記説明したように、本実施例では、非同期通信に対応可能なカメラが、装着されたレンズのCLK端子の有無を検出してそのレンズに応じた通信方式を設定する。具体的には、CLK端子を有しないレンズが装着されたときははじめから非同期通信を行う。一方、CLK端子を有するレンズが装着されたときははじめに同期通信を行い、レンズが非同期通信に対応可能であることを確認してから非同期通信に切り替える。このとき、レンズが非同期通信に対応しない場合は同期通信を継続する。   As described above, in this embodiment, a camera capable of asynchronous communication detects the presence / absence of the CLK terminal of the attached lens and sets a communication method according to the lens. Specifically, asynchronous communication is performed from the beginning when a lens that does not have a CLK terminal is attached. On the other hand, when a lens having a CLK terminal is attached, synchronous communication is first performed, and after confirming that the lens is compatible with asynchronous communication, switching to asynchronous communication is performed. At this time, if the lens does not support asynchronous communication, synchronous communication is continued.

以上、本実施例にて説明したように、本発明によれば、非同期通信対応可能なカメラは、従来のレンズとの互換性を保ちつつ、新しい通信に対応可能なレンズに対しては通信パフォーマンスを向上させることが可能になる。   As described above, according to the present embodiment, according to the present invention, the camera capable of asynchronous communication maintains the compatibility with the conventional lens, and the communication performance for the lens compatible with new communication. It becomes possible to improve.

<実施例1の変形>
上記実施例1は本発明を実施した代表的なカメラと交換レンズの実施形態であるが、考えられる実施形態の全てを表した訳ではない。
<Modification of Example 1>
Example 1 above is a representative camera and interchangeable lens embodiment implementing the present invention, but does not represent all possible embodiments.

図7の(ステップ105)などで説明したレンズが出力するボーレート調整用パルスTmesの出力端子は実施例1記載のCLK端子に限定される必要はなく、DOC端子やDOL端子であっても良い。また、第1の実施形態ではレンズが出力するボーレート調整用パルスTmesはその信号出力の立下りから立ち上がりの区間であったが、これもこの形態に限定される必要はない。また、カメラと交換レンズとの通信回路方式において特許文献1のようにオープンドレイン方式とCMOS方式との切替えを有している場合は、CMOS方式に回路を切替えてからボーレート調整用パルスTmesをレンズが出力する方が出力波形の遅延なまりが少なくなりより好ましい。   The output terminal of the baud rate adjusting pulse Tmes output from the lens described in FIG. 7 (step 105) or the like is not necessarily limited to the CLK terminal described in the first embodiment, and may be a DOC terminal or a DOL terminal. In the first embodiment, the baud rate adjusting pulse Tmes output from the lens is a section from the falling edge of the signal output to the rising edge, but this is not necessarily limited to this form. If the communication circuit system between the camera and the interchangeable lens has switching between the open drain system and the CMOS system as in Patent Document 1, the circuit is switched to the CMOS system and then the baud rate adjusting pulse Tmes is applied to the lens. Is more preferable because delay rounding of the output waveform is reduced.

実施例1ではレンズが出力するボーレート調整用パルスTmesの出力タイミングをDATA_C2の受信直後としたが、これも一例であり特に限定する必要はない。   In the first embodiment, the output timing of the baud rate adjusting pulse Tmes output by the lens is set immediately after the reception of DATA_C2, but this is also an example and there is no need to specifically limit it.

また、マイクロコンピュータやその発振回路用に用いる発振子などの電子部品の特性は温度の変化に依存して変化する場合が多く、発振周波数は温度変化によってある範囲内で変化することが多い。よって図6の(ステップ105)などで説明した同期通信から非同期通信に切替える直前だけでなく、それ以外のタイミングでもボーレート調整を行うようにした方がより好ましい。具体的にはカメラ側マイクロコンピュータ13はその動作中に適当な時間間隔で温度センサー19の出力をモニターし、温度変化が所定以上発生したらボーレート調整を行うようなことが考えられる。   In addition, the characteristics of electronic components such as a microcomputer and an oscillator used for the oscillation circuit often change depending on a change in temperature, and the oscillation frequency often changes within a certain range due to a temperature change. Therefore, it is more preferable to adjust the baud rate not only immediately before switching from synchronous communication to asynchronous communication described in (step 105) in FIG. 6 but also at other timings. Specifically, it is conceivable that the camera-side microcomputer 13 monitors the output of the temperature sensor 19 at an appropriate time interval during its operation, and adjusts the baud rate when a temperature change occurs more than a predetermined value.

<実施例2>
実施例1では、レンズ側CLK端子の有無を調べるために、端子の電気的接続を検出することでカメラ側CLK端子15にレンズの信号線が接続されているかどうかを検出する方法を述べたが、他の方法でも検出可能である。例えば、カメラ側CLK端子15のメカ的な動作を検出する方法もある。その一例を図16に示す。
<Example 2>
In the first embodiment, the method of detecting whether or not the signal line of the lens is connected to the camera side CLK terminal 15 by detecting the electrical connection of the terminal is described in order to check the presence or absence of the lens side CLK terminal. It can also be detected by other methods. For example, there is a method for detecting the mechanical operation of the camera-side CLK terminal 15. An example is shown in FIG.

図16において、カメラ側CLK端子15は、不図示のバネで付勢されておりカメラ側から若干飛び出すようになっている。図16(A)に示すように、カメラ側CLK端子15に対応するレンズ側の端子がない場合、カメラ側CLK端子15はカメラ側から飛び出したままである。一方、図16(B)で示すように、カメラ側CLK端子15に対応するレンズ側CLK端子35がある場合、カメラ側CLK端子15はレンズ側CLK端子35によってカメラ側へ押し込まれる。   In FIG. 16, the camera-side CLK terminal 15 is biased by a spring (not shown) so that it slightly protrudes from the camera side. As shown in FIG. 16A, when there is no lens side terminal corresponding to the camera side CLK terminal 15, the camera side CLK terminal 15 remains protruding from the camera side. On the other hand, as shown in FIG. 16B, when there is a lens side CLK terminal 35 corresponding to the camera side CLK terminal 15, the camera side CLK terminal 15 is pushed into the camera side by the lens side CLK terminal 35.

この違いを、CLK端子15近傍に設けた検出スイッチ20により検出することで、CLK端子15にレンズの信号線が接続されているかどうかを検出することが可能である。   By detecting this difference by the detection switch 20 provided in the vicinity of the CLK terminal 15, it is possible to detect whether or not the lens signal line is connected to the CLK terminal 15.

本実施例を適用した場合でも、非同期通信対応可能なカメラは、従来のレンズとの互換性を保ちつつ、新しい通信に対応可能なレンズに対しては通信パフォーマンスを向上させることが可能になる。   Even when this embodiment is applied, a camera capable of asynchronous communication can improve communication performance with respect to a lens compatible with new communication while maintaining compatibility with a conventional lens.

1 カメラ
2 CLK端子の無い交換レンズ
3 CLK端子の有る交換レンズ
13 カメラ側マイクロコンピュータ
15 カメラ側CLK端子
16 カメラ側DOC端子
17 カメラ側DOL端子
21 レンズ側マイクロコンピュータ
26 レンズ側DOC端子
27 レンズ側DOL端子
31 レンズ側マイクロコンピュータ
35 レンズ側CLK端子
36 レンズ側DOC端子
37 レンズ側DOL端子
42 クロック発生回路
43 通信制御回路
DESCRIPTION OF SYMBOLS 1 Camera 2 Interchangeable lens without CLK terminal 3 Interchangeable lens with CLK terminal 13 Camera side microcomputer 15 Camera side CLK terminal 16 Camera side DOC terminal 17 Camera side DOL terminal 21 Lens side microcomputer 26 Lens side DOC terminal 27 Lens side DOL Terminal 31 Lens side microcomputer 35 Lens side CLK terminal 36 Lens side DOC terminal 37 Lens side DOL terminal 42 Clock generation circuit 43 Communication control circuit

Claims (8)

交換レンズを装着可能な撮像装置であって、
装着された交換レンズと通信するための第1の端子及び第2の端子と、
前記第1の端子からクロック信号を出力し当該クロック信号に基づいて前記第2の端子で通信する第1の通信モードと、クロック信号を用いずに前記第1の端子又は第2の端子で通信する第2の通信モードとを切り替え可能な制御手段と、
装着された交換レンズが前記第1の端子に対応する第1のレンズ側端子を有するかどうかを検知可能な検知手段とを備え、
前記制御手段は、前記検知手段によって当該交換レンズが前記第1のレンズ側端子を有すると検知されなかったとき、前記第2の通信モードで通信することを特徴とする撮像装置。
An imaging device capable of mounting an interchangeable lens,
A first terminal and a second terminal for communicating with the mounted interchangeable lens;
A first communication mode in which a clock signal is output from the first terminal and communication is performed at the second terminal based on the clock signal, and communication is performed at the first terminal or the second terminal without using the clock signal. Control means capable of switching between the second communication mode and
Detecting means capable of detecting whether the mounted interchangeable lens has a first lens side terminal corresponding to the first terminal;
The control unit communicates in the second communication mode when the detection unit does not detect that the interchangeable lens has the first lens side terminal.
前記制御手段は、前記検知手段によって前記交換レンズが前記第1のレンズ側端子を有すると検知されたとき、前記第1の通信モードで通信を行い、当該通信により、前記交換レンズが前記第2の通信モードに対応すると判別した場合は前記第2の通信モードに切り替え、前記交換レンズが前記第2の通信モードに対応しないと判別した場合は前記第1の通信モードを継続することを特徴とする請求項1に記載の撮像装置。   The control means performs communication in the first communication mode when the detecting means detects that the interchangeable lens has the first lens side terminal, and the communication causes the interchangeable lens to be in the second state. When it is determined that the communication mode corresponds to the second communication mode, the second communication mode is switched, and when it is determined that the interchangeable lens does not correspond to the second communication mode, the first communication mode is continued. The imaging device according to claim 1. 前記検知手段は、前記第1の端子の電圧に基づいて、装着された交換レンズが前記第1のレンズ側端子を有するかどうかを検知可能であることを特徴とする請求項1又は2に記載の撮像装置。   3. The detection unit according to claim 1, wherein the detection unit can detect whether or not an attached interchangeable lens has the first lens side terminal based on a voltage of the first terminal. 4. Imaging device. 前記制御手段は、前記検知手段によって当該交換レンズが前記第1のレンズ側端子を有すると検知されなかったとき、あらかじめ設定された通信速度で前記第2の通信モードで通信を行い、当該通信が成立しなかったとき、通信速度を変更して前記第2の通信モードで再度通信を行うことを特徴とする請求項1乃至3のいずれか1項に記載の撮像装置。   When the detection unit does not detect that the interchangeable lens has the first lens side terminal, the control unit performs communication in the second communication mode at a preset communication speed, and the communication is performed. The imaging apparatus according to any one of claims 1 to 3, wherein if not established, the communication speed is changed and communication is performed again in the second communication mode. 交換レンズを装着可能な撮像装置であって、
装着された交換レンズと通信するための第1の端子及び第2の端子と、
前記第1の端子からクロック信号を出力し当該クロック信号に基づいて前記第2の端子で通信する第1の通信モードと、クロック信号を用いずに前記第1の端子又は第2の端子で通信する第2の通信モードとを切り替え可能な制御手段と、
前記第1の端子をプルダウン可能な電気部材と、
前記第1の端子の電位状態を検知可能な検知手段とを備え、
交換レンズが装着された状態において、前記検知手段は、前記第1の端子の電位状態を検知し、
前記制御手段は、前記第1の端子の電位がグランドレベルのとき、前記第2の通信モードで通信することを特徴とする撮像装置。
An imaging device capable of mounting an interchangeable lens,
A first terminal and a second terminal for communicating with the mounted interchangeable lens;
A first communication mode in which a clock signal is output from the first terminal and communication is performed at the second terminal based on the clock signal, and communication is performed at the first terminal or the second terminal without using the clock signal. Control means capable of switching between the second communication mode and
An electrical member capable of pulling down the first terminal;
Detecting means capable of detecting a potential state of the first terminal;
In the state where the interchangeable lens is mounted, the detection means detects the potential state of the first terminal,
The image pickup apparatus, wherein the control means communicates in the second communication mode when the potential of the first terminal is at a ground level.
前記制御手段は、前記第1の端子の電位がグランドレベルでないとき、前記第1の通信モードで通信を行い、当該通信により、前記交換レンズが前記第2の通信モードに対応すると判別した場合は前記第2の通信モードに切り替え、前記交換レンズが前記第2の通信モードに対応しないと判別した場合は前記第1の通信モードを継続することを特徴とする請求項5に記載の撮像装置。   When the control means performs communication in the first communication mode when the potential of the first terminal is not at a ground level, and determines that the interchangeable lens corresponds to the second communication mode by the communication. The imaging apparatus according to claim 5, wherein the imaging apparatus is switched to the second communication mode, and the first communication mode is continued when it is determined that the interchangeable lens does not correspond to the second communication mode. 請求項1乃至6のいずれか1項に記載の撮像装置に装着可能な交換レンズであって、
前記第1の端子に対応する端子を有しないことを特徴とする交換レンズ。
An interchangeable lens that can be attached to the imaging device according to any one of claims 1 to 6,
An interchangeable lens having no terminal corresponding to the first terminal.
撮像装置本体と、前記撮像装置本体に着脱可能に装着される交換レンズとを有し、前記撮像装置本体と前記交換レンズとが通信可能な撮像装置システムであって、
前記撮像装置は、装着された交換レンズと通信するための第1の端子及び第2の端子とを有し、前記第1の端子からクロック信号を出力し当該クロック信号に基づいて前記第2の端子で通信する第1の通信モードと、クロック信号を用いずに前記第1の端子又は第2の端子で通信する第2の通信モードとを切り替え可能で、
前記交換レンズが前記第1の端子に対応する端子を有するとき、前記第1の通信モードで通信を行った後、当該交換レンズが前記第2の通信モードに対応する場合は前記第2の通信モードに切り替え、当該交換レンズが前記第2の通信モードに対応しない場合は前記第1の通信モードを継続し、
前記交換レンズが前記第1の端子に対応する端子を有しないとき、前記第2の通信モードで通信を行うことを特徴とする撮像装置システム。
An imaging apparatus system having an imaging apparatus body and an interchangeable lens detachably attached to the imaging apparatus body, wherein the imaging apparatus body and the interchangeable lens can communicate with each other,
The imaging device includes a first terminal and a second terminal for communicating with an attached interchangeable lens, outputs a clock signal from the first terminal, and outputs the second signal based on the clock signal. It is possible to switch between a first communication mode that communicates with a terminal and a second communication mode that communicates with the first terminal or the second terminal without using a clock signal,
When the interchangeable lens has a terminal corresponding to the first terminal, the second communication is performed when the interchangeable lens corresponds to the second communication mode after performing communication in the first communication mode. Switch to the mode, if the interchangeable lens does not support the second communication mode, continue the first communication mode,
An image pickup apparatus system that performs communication in the second communication mode when the interchangeable lens does not have a terminal corresponding to the first terminal.
JP2011011203A 2011-01-21 2011-01-21 Imaging device, interchangeable lens, and imaging device system Expired - Fee Related JP5762011B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011011203A JP5762011B2 (en) 2011-01-21 2011-01-21 Imaging device, interchangeable lens, and imaging device system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011011203A JP5762011B2 (en) 2011-01-21 2011-01-21 Imaging device, interchangeable lens, and imaging device system

Publications (3)

Publication Number Publication Date
JP2012154967A true JP2012154967A (en) 2012-08-16
JP2012154967A5 JP2012154967A5 (en) 2014-03-06
JP5762011B2 JP5762011B2 (en) 2015-08-12

Family

ID=46836787

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011011203A Expired - Fee Related JP5762011B2 (en) 2011-01-21 2011-01-21 Imaging device, interchangeable lens, and imaging device system

Country Status (1)

Country Link
JP (1) JP5762011B2 (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016122885A (en) * 2014-12-24 2016-07-07 キヤノン株式会社 Electronic apparatus, control method therefor, and control program
JP2017015980A (en) * 2015-07-02 2017-01-19 キヤノン株式会社 Imaging device, lens device, and data communication processing program
CN106469128A (en) * 2015-08-21 2017-03-01 佳能株式会社 Control electronic equipment, accessory device and the control method being connected with accessory device
US9606422B2 (en) 2013-03-19 2017-03-28 Fujifilm Corporation Camera apparatus, camera body, interchangeable lens, and method of controlling operation of camera body
WO2017170397A1 (en) * 2016-03-31 2017-10-05 キヤノン株式会社 Accessory device, imaging device, and communication control program
JP2017181980A (en) * 2016-03-31 2017-10-05 キヤノン株式会社 Accessory device, imaging device, and communication control program
WO2018139169A1 (en) * 2017-01-27 2018-08-02 富士フイルム株式会社 Camera system, camera, interchangeable lens, and method for determining camera system compatibility
JP6427288B1 (en) * 2017-05-31 2018-11-21 キヤノン株式会社 Accessory device, camera and communication control program
JP2018205728A (en) * 2017-05-31 2018-12-27 キヤノン株式会社 Imaging device, lens device, accessory, and camera system
CN109709754A (en) * 2017-10-26 2019-05-03 株式会社尼康 Accessory
WO2020017398A1 (en) * 2018-07-20 2020-01-23 株式会社ニコン Interchangeable lens and method for stopping movable member
US10591807B2 (en) 2017-05-31 2020-03-17 Canon Kabushiki Kaisha Image capturing apparatus and accessories
US10599018B2 (en) 2017-05-31 2020-03-24 Canon Kabushiki Kaisha Image capturing apparatus and accessories
US10602048B2 (en) 2017-05-31 2020-03-24 Canon Kabushiki Kaisha Lens apparatus, imaging apparatus, and intermediate accessory
US10620509B2 (en) 2017-05-31 2020-04-14 Canon Kabushiki Kaisha Accessory for an imaging apparatus that reduces amount of wear on electrical contacts
US10656504B2 (en) 2017-05-31 2020-05-19 Canon Kabushiki Kaisha Image capturing apparatus and accessories
US10666842B2 (en) 2017-05-31 2020-05-26 Canon Kabushiki Kaisha Imaging apparatus, lens apparatus, and intermediate accessory
US10771670B2 (en) 2017-05-31 2020-09-08 Canon Kabushiki Kaisha Accessory and imaging apparatus
US10782597B2 (en) 2017-05-31 2020-09-22 Canon Kabushiki Kaisha Image capturing apparatus and accessories
CN112313575A (en) * 2018-06-21 2021-02-02 佳能株式会社 Image pickup apparatus, accessory apparatus, and control method thereof
US11792509B2 (en) 2018-06-21 2023-10-17 Canon Kabushiki Kaisha Accessory device, imaging apparatus, and methods for controlling the same

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0758800A (en) * 1993-08-17 1995-03-03 Sony Corp Automatic synchronous or asynchronous communications switching device
JPH08129199A (en) * 1994-09-07 1996-05-21 Nikon Corp Camera body, camera accessory and camera system
JPH09331436A (en) * 1996-06-11 1997-12-22 Canon Inc Communication control system and communication controller
JPH11223865A (en) * 1997-12-05 1999-08-17 Asahi Optical Co Ltd Photographing lens, camera body and camera system
JP2010266595A (en) * 2009-05-13 2010-11-25 Canon Inc Camera and interchangeable lens mounted in camera

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0758800A (en) * 1993-08-17 1995-03-03 Sony Corp Automatic synchronous or asynchronous communications switching device
JPH08129199A (en) * 1994-09-07 1996-05-21 Nikon Corp Camera body, camera accessory and camera system
JPH09331436A (en) * 1996-06-11 1997-12-22 Canon Inc Communication control system and communication controller
JPH11223865A (en) * 1997-12-05 1999-08-17 Asahi Optical Co Ltd Photographing lens, camera body and camera system
JP2010266595A (en) * 2009-05-13 2010-11-25 Canon Inc Camera and interchangeable lens mounted in camera

Cited By (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9606422B2 (en) 2013-03-19 2017-03-28 Fujifilm Corporation Camera apparatus, camera body, interchangeable lens, and method of controlling operation of camera body
US10036872B2 (en) 2013-03-19 2018-07-31 Fujifilm Corporation Camera apparatus, camera body, interchangeable lens, and method of controlling operation of camera body
JP2016122885A (en) * 2014-12-24 2016-07-07 キヤノン株式会社 Electronic apparatus, control method therefor, and control program
JP2017015980A (en) * 2015-07-02 2017-01-19 キヤノン株式会社 Imaging device, lens device, and data communication processing program
CN106469128A (en) * 2015-08-21 2017-03-01 佳能株式会社 Control electronic equipment, accessory device and the control method being connected with accessory device
CN106469128B (en) * 2015-08-21 2022-02-22 佳能株式会社 Electronic device for controlling connection to accessory device, and control method
WO2017170397A1 (en) * 2016-03-31 2017-10-05 キヤノン株式会社 Accessory device, imaging device, and communication control program
JP2017181981A (en) * 2016-03-31 2017-10-05 キヤノン株式会社 Accessory device, imaging device, and communication control program
JP2017181980A (en) * 2016-03-31 2017-10-05 キヤノン株式会社 Accessory device, imaging device, and communication control program
WO2017170386A1 (en) * 2016-03-31 2017-10-05 キヤノン株式会社 Accessory device, imaging device, and communication control program
US10659671B2 (en) 2016-03-31 2020-05-19 Canon Kabushiki Kaisha Accessory device, imaging apparatus, and communication control program
US11381727B2 (en) 2016-03-31 2022-07-05 Canon Kabushiki Kaisha Accessory device, imaging apparatus, and communication control program
CN108885386A (en) * 2016-03-31 2018-11-23 佳能株式会社 Auxiliary device, imaging device and communication control program
CN112422834A (en) * 2016-03-31 2021-02-26 佳能株式会社 Accessory device, imaging apparatus, and communication control program
US10785399B2 (en) 2016-03-31 2020-09-22 Canon Kabushiki Kaisha Accessory device, imaging apparatus, and communication control program
WO2018139169A1 (en) * 2017-01-27 2018-08-02 富士フイルム株式会社 Camera system, camera, interchangeable lens, and method for determining camera system compatibility
US10785408B2 (en) 2017-01-27 2020-09-22 Fujifilm Corporation Camera system, camera, interchangeable lens, and compatibility determination method of camera system
US11722766B2 (en) 2017-01-27 2023-08-08 Fujifilm Corporation Camera system, camera, interchangeable lens, and compatibility determination method of camera system
US11336821B2 (en) 2017-01-27 2022-05-17 Fujifilm Corporation Camera system, camera, interchangeable lens, and compatibility determination method of camera system
US10656504B2 (en) 2017-05-31 2020-05-19 Canon Kabushiki Kaisha Image capturing apparatus and accessories
JP2018205728A (en) * 2017-05-31 2018-12-27 キヤノン株式会社 Imaging device, lens device, accessory, and camera system
US10591807B2 (en) 2017-05-31 2020-03-17 Canon Kabushiki Kaisha Image capturing apparatus and accessories
US10599018B2 (en) 2017-05-31 2020-03-24 Canon Kabushiki Kaisha Image capturing apparatus and accessories
US10666842B2 (en) 2017-05-31 2020-05-26 Canon Kabushiki Kaisha Imaging apparatus, lens apparatus, and intermediate accessory
US10771670B2 (en) 2017-05-31 2020-09-08 Canon Kabushiki Kaisha Accessory and imaging apparatus
US10782597B2 (en) 2017-05-31 2020-09-22 Canon Kabushiki Kaisha Image capturing apparatus and accessories
US10602038B2 (en) 2017-05-31 2020-03-24 Canon Kabushiki Kaisha Imaging apparatus, lens apparatus, and intermediate accessory
JP6427288B1 (en) * 2017-05-31 2018-11-21 キヤノン株式会社 Accessory device, camera and communication control program
US10602048B2 (en) 2017-05-31 2020-03-24 Canon Kabushiki Kaisha Lens apparatus, imaging apparatus, and intermediate accessory
JP2018205721A (en) * 2017-05-31 2018-12-27 キヤノン株式会社 Accessory device, camera and communication control program
CN112584025A (en) * 2017-05-31 2021-03-30 佳能株式会社 Image pickup apparatus, lens apparatus, accessory, and camera system
US10620509B2 (en) 2017-05-31 2020-04-14 Canon Kabushiki Kaisha Accessory for an imaging apparatus that reduces amount of wear on electrical contacts
CN109709754A (en) * 2017-10-26 2019-05-03 株式会社尼康 Accessory
CN112313575A (en) * 2018-06-21 2021-02-02 佳能株式会社 Image pickup apparatus, accessory apparatus, and control method thereof
CN112313575B (en) * 2018-06-21 2022-12-13 佳能株式会社 Image pickup apparatus, accessory apparatus, and control method thereof
US11792509B2 (en) 2018-06-21 2023-10-17 Canon Kabushiki Kaisha Accessory device, imaging apparatus, and methods for controlling the same
JPWO2020017398A1 (en) * 2018-07-20 2021-08-02 株式会社ニコン How to stop interchangeable lenses and moving members
WO2020017398A1 (en) * 2018-07-20 2020-01-23 株式会社ニコン Interchangeable lens and method for stopping movable member

Also Published As

Publication number Publication date
JP5762011B2 (en) 2015-08-12

Similar Documents

Publication Publication Date Title
JP5762011B2 (en) Imaging device, interchangeable lens, and imaging device system
JP5683249B2 (en) Imaging apparatus and control method thereof, interchangeable lens and control method thereof
KR101377471B1 (en) Image capturing device and interchangeable lens
JP5854623B2 (en) Imaging apparatus, accessory, and imaging apparatus system
US8374499B2 (en) Imaging apparatus and interchangeable lens
JP7243756B2 (en) camera body
JP5447364B2 (en) Interchangeable lens, camera body and camera system
JP2003153064A (en) Camera system, accessory, and equipment system
JP2002152576A (en) Camera system
JP2012098461A (en) Imaging device and interchangeable lens
CN112424686A (en) Adapter
JP5511844B2 (en) Imaging apparatus and control method thereof, interchangeable lens and control method thereof
JP5725763B2 (en) Interchangeable lens and control method thereof, imaging apparatus and control method thereof
JP2010049034A (en) Interchangeable lens, camera system, and lens data communication method
JP2015087418A (en) Camera system, interchangeable lens, and camera body
JP2013172403A (en) Serial communication apparatus and electronic camera

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140121

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140924

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140924

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141125

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150512

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150609

R151 Written notification of patent or utility model registration

Ref document number: 5762011

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees