JPH02136834A - Microcomputer for camera accessory - Google Patents
Microcomputer for camera accessoryInfo
- Publication number
- JPH02136834A JPH02136834A JP63291843A JP29184388A JPH02136834A JP H02136834 A JPH02136834 A JP H02136834A JP 63291843 A JP63291843 A JP 63291843A JP 29184388 A JP29184388 A JP 29184388A JP H02136834 A JPH02136834 A JP H02136834A
- Authority
- JP
- Japan
- Prior art keywords
- rom
- cpu
- signal
- lens
- address
- 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.)
- Pending
Links
- 239000011295 pitch Substances 0.000 abstract 1
- 238000012545 processing Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 18
- 230000006870 function Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 6
- 238000000034 method Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 238000004804 winding Methods 0.000 description 4
- 101150065817 ROM2 gene Proteins 0.000 description 3
- 230000006698 induction Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 210000001747 pupil Anatomy 0.000 description 3
- PBGKNXWGYQPUJK-UHFFFAOYSA-N 4-chloro-2-nitroaniline Chemical compound NC1=CC=C(Cl)C=C1[N+]([O-])=O PBGKNXWGYQPUJK-UHFFFAOYSA-N 0.000 description 2
- 239000013078 crystal Substances 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- DOMHZVJNLCAZSA-UYSNGIAKSA-N (2s,3r,5s,6r)-2,3,4,5,6-pentachlorocyclohexan-1-ol Chemical compound OC1[C@H](Cl)[C@@H](Cl)C(Cl)[C@@H](Cl)[C@@H]1Cl DOMHZVJNLCAZSA-UYSNGIAKSA-N 0.000 description 1
- 101100189558 Arabidopsis thaliana BOA gene Proteins 0.000 description 1
- 102100040428 Chitobiosyldiphosphodolichol beta-mannosyltransferase Human genes 0.000 description 1
- 241000257465 Echinoidea Species 0.000 description 1
- 101000891557 Homo sapiens Chitobiosyldiphosphodolichol beta-mannosyltransferase Proteins 0.000 description 1
- 101000597770 Homo sapiens Tropomodulin-1 Proteins 0.000 description 1
- XUIMIQQOPSSXEZ-UHFFFAOYSA-N Silicon Chemical compound [Si] XUIMIQQOPSSXEZ-UHFFFAOYSA-N 0.000 description 1
- 102100035291 Tropomodulin-1 Human genes 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000004907 flux Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 210000003205 muscle Anatomy 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- UHZYTMXLRWXGPK-UHFFFAOYSA-N phosphorus pentachloride Chemical compound ClP(Cl)(Cl)(Cl)Cl UHZYTMXLRWXGPK-UHFFFAOYSA-N 0.000 description 1
- FAIAAWCVCHQXDN-UHFFFAOYSA-N phosphorus trichloride Chemical compound ClP(Cl)Cl FAIAAWCVCHQXDN-UHFFFAOYSA-N 0.000 description 1
- 238000005375 photometry Methods 0.000 description 1
- 230000011514 reflex Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 229910052710 silicon Inorganic materials 0.000 description 1
- 239000010703 silicon Substances 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
Landscapes
- Focusing (AREA)
- Automatic Focus Adjustment (AREA)
- Exposure Control For Cameras (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明はカメラアクセサリ用マイクロコンピュタ、詳し
くはカメラ本体に装着する交換レンズ鏡筒、ストロボユ
ニット
内蔵して使用されるマイクロ:Jンピュータに関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer for a camera accessory, and more particularly to a microcomputer that is used with an interchangeable lens barrel attached to a camera body and a built-in strobe unit.
[従来の技術]
近年、カメラにおけるマイクロコンビュ・−夕によるC
PUの利用は飛躍的に拡大し、1つのカメラシステムに
複数のCPUが利用されることは珍らしくない。特に−
眼レフレックスカメラに代表されるレンズ交換式カメラ
においては、AF(オートフォーカス)化も進み、カメ
ラ本体のみならず、レンズ鏡筒内ッ
ック等のカメラアクセサリにもCPUが内蔵されるよう
になってきている。また、レンズ鏡筒内にも各種のアク
チュエータ、例λば、AF用駆動モータ、絞り駆動モー
タやAF用内蔵補助光の制御部等が実装され、これらの
制御をカメラ本体のCPtJからの指令により、し・ン
ズm8側のC F’ Uが実行するシステムも多数提案
されている。[Prior art] In recent years, microcombustion in cameras - C by Yu
The use of PUs has expanded dramatically, and it is not uncommon for multiple CPUs to be used in one camera system. Especially-
In interchangeable lens cameras, such as eye reflex cameras, AF (autofocus) has become increasingly popular, and CPUs have come to be built not only in the camera body but also in camera accessories such as the lens barrel. ing. In addition, various actuators such as the AF drive motor, aperture drive motor, and the control unit for the built-in AF auxiliary light are mounted inside the lens barrel, and these are controlled by commands from the CPtJ of the camera body. , many systems have been proposed in which the C F' U on the side of the driver's m8 executes the system.
例えば、特開昭60−26324号公1f1l記載のカ
メラでは、カメラ本体に主C P Uを配設す,乙と共
に、フィルムの巻−Lげ・巻戻し7機能を白゛−汐ろ,
′1λ動駆動ユニットさ、この電動駆動ユニットやL記
カメラ本体にr(i源を供給する電源コニソト1(乙、
それぞれ固有のアドレス・コードを有する副CPUを配
設し、上記主CPUとそれぞれの副CPUとのデータ入
出力端子を相互に結線している。そして、主CPUのデ
ータ入出力端子から先ずアドレスコードが送出されると
、それぞれの副CPUはこのアドレスコードを受信して
自身の有するアドレスコードと比較し、両者が一致した
副CPUのみが、次に主CPUから送出される制御コー
ドを待ち受ける。制御コードが送出されると、上記MU
CP Uは、この制御コードに対応したカメラ動作を
行ない、その結果を上記のデータに入出力端子から主C
PU側に返送するようになっている。For example, the camera described in JP-A No. 60-26324 1f1l has a main CPU installed in the camera body, and also has seven film winding, winding, and rewinding functions.
'1λ dynamic drive unit, power source 1 (B,
Sub-CPUs each having a unique address code are provided, and the data input/output terminals of the main CPU and each sub-CPU are interconnected. When an address code is first sent from the data input/output terminal of the main CPU, each sub-CPU receives this address code and compares it with its own address code, and only the sub-CPU that matches the address code will be the next one. It waits for a control code sent from the main CPU. When the control code is sent, the above MU
The CPU performs camera operations corresponding to this control code, and sends the results to the main CPU from the input/output terminal to the above data.
It is designed to be sent back to the PU side.
ところで、カメラアクセサリとしてのレンズ鏡筒内にC
PUを用いる場合には、従来開発されたCPUでは、例
えはば、50mmFl、g用とか、35−70 mmZ
oomF 4用とか、70−210m+wZooLIF
5.6用とかいった具合に、そのレンズ毎にCPUのR
OMマスクを制作しなければならない。By the way, there is a C inside the lens barrel as a camera accessory.
When using PU, conventionally developed CPUs, for example, 50mmFl, g, 35-70mmZ
For oomF 4, 70-210m+wZooLIF
5.6, etc., the CPU R for each lens.
I have to make an OM mask.
しかも、カメラアクセサリの品揃えを充実させてカメラ
の拡販を図るためには、従来からこのような毎にCPU
のROMマスクを制作する作業が頻繁に発生していた。Moreover, in order to expand camera sales by enriching the lineup of camera accessories, it has traditionally been necessary to
There was frequent work to create ROM masks.
そこで、これの解決策としては、EPROMタイプ(電
気的書込可能なリードオンリーメモリ)のCPUを利用
することが考えられるが、EPROMタイプはCPU製
造時のチップ面積が拡大し、どうしても割り高となって
しまう。また、量産品においては、その都度電気的に書
込まねばならないから、その工数も高くつくことになる
。Therefore, one possible solution to this problem is to use an EPROM type (electrically programmable read-only memory) CPU, but the EPROM type increases the chip area when manufacturing the CPU and is inevitably expensive. turn into. Furthermore, in mass-produced products, it is necessary to write electrically each time, which increases the number of man-hours.
一方、最近はROM内蔵タイプのCPUでは、ROMの
集積化が進み、同じチップ面積でより大量のメモリが得
られるようになったので、例えば2倍、4倍のメモリ容
量を有するROMを内蔵したCPUを使用しても、価格
的には住かなコストアップで済むようになってきた。従
って、これを利用し、例えばROMサイズが8ビツト、
16にバイトのCPUに適用すると、約4本分のレンズ
制御プログラム、例えば、50mmF1.8用と、35
−70 mmZoomF 4用と、70−210mnZ
oomF 5.B用と、350n+mF2.8用等の4
本の異なる仕様のプログラムを1つのCPU内に格納で
きる。On the other hand, in recent years, the integration of ROM has progressed in CPUs with built-in ROM, and it has become possible to obtain a larger amount of memory with the same chip area. Even if a CPU is used, it has become possible to get away with a modest increase in cost. Therefore, by using this, for example, if the ROM size is 8 bits,
When applied to a CPU with a part-time job of 16 and
-70mmZoomF 4 and 70-210mnZ
oomF 5. 4 for B and 350n+mF2.8 etc.
Programs with different specifications can be stored in one CPU.
このように、大きなメモリ容量のROMを内蔵したCP
Uを利用して、複数本のレンズの制御プログラムを内蔵
したCPUを開発し、これを外部からの切換信号により
、CPUのROMエリアを選択的に決定すれば、CPU
のマスクROMの製作回数を大+j+に軽減するとハに
、ROMマスクの製作のために要した日程の大幅な短縮
や、共通部分のソフトウェアの有効活用を計ることがで
きる。In this way, a CPU with a built-in ROM with a large memory capacity
If a CPU with a built-in control program for multiple lenses is developed using the U, and the ROM area of the CPU is selectively determined by an external switching signal, the CPU
By reducing the number of times the mask ROM is manufactured by a large number of times, the schedule required for manufacturing the ROM mask can be significantly shortened and the software of common parts can be used effectively.
また、これにより、マスクチャージのための費用は1/
4に削減され、且つ、CPU製造メーカーもROMマス
ク製作回数が1/4に減り、日程等の短縮も期待できる
。In addition, this will reduce the cost of mask charge by 1/
4, and CPU manufacturers can also expect to reduce the number of ROM mask production times to 1/4, thereby shortening the schedule.
[発明が解決しようとする課題]
しかしながら、大きなメモリ容量のROMを内蔵したC
PUを利用して複数本のレンズの制御プログラムを1個
のROMに搭載すれば、ソフトウェア的に、ROM空間
を4つに分割する必要がある。[Problem to be solved by the invention] However, the C
If a PU is used to load control programs for a plurality of lenses into one ROM, it is necessary to divide the ROM space into four in terms of software.
即ち、第9図と第10図は、2ビツトの制御入力端とし
てソフトウェア上の処理ルーチンP0゜1、 Po、
2を利用し、その1.0によりROMのアドレス空
間を4領域に分割利用した例を示したもので、第9図は
電源投入時に行なわれる“パワー・オン・リセット“の
ルーチンを、また第10図は他の割込み処理ルーチンと
同様の“INTO′の処理ルーチンをそれぞれ示す図で
ある。第9図に示す“パワー・オン”のルーチンでは、
電源が投入されるとPC(プログラムカウンタ)の指示
する。ooo番地に格納されている“CPUイニシャラ
イズのサブ・ルーチンを実行し、これによってCPUの
各セクションを初期化した後、“Po、1.Po、2読
込み″へ進む。そして、CPUに読込まれたPo、1.
Po、2の論理レヘレルに応じ、“Po、2”でpo、
2がOなら“第1のPo、1“へ、1なら“第2のPO
ll”へそれぞれ分岐する。そして、“第1のPO,]
”“第2のPo、1″でそれぞれ判断されたPo。That is, in FIGS. 9 and 10, the processing routines P0°1, Po,
Figure 9 shows an example of dividing the ROM address space into four areas using 1.0 and 1.0. FIG. 10 is a diagram showing an "INTO" processing routine similar to other interrupt processing routines. In the "power on" routine shown in FIG.
When the power is turned on, the PC (program counter) gives instructions. After executing the "CPU initialization subroutine" stored at address ooo and thereby initializing each section of the CPU, "Po, 1. Proceed to ``Read Po, 2''.Then, read Po, 1 to the CPU.
According to the logical level of Po, 2, “Po, 2” means po,
If 2 is O, go to “first Po, 1”; if 1, go to “second PO”
ll" respectively. Then, "first PO,]
``Second Po, 1'' respectively determined Po.
1の論理レベル0.1に応じ、“Typc’Aレンズ′
’TypeBレンズ”1 “Type Cレンズ” 、
”TypeDレンズのそれぞれのサブ・ルーチンに
分岐し、゛パワーやオフ゛するまで各ザブ・ルーノにお
ける処理を継続する。第10図に示す“INT O処
理°のルーチンでは、先ず“ジャンプ■゛で端子のにジ
ャンプする。次いでP0.1、Po。According to the logic level 0.1 of 1, "Type 'A lens'
'Type B lens' 1 'Type C lens',
It branches to each subroutine of the Type D lens and continues processing in each subroutine until it is turned off or turned off.In the INTO processing routine shown in Figure 10, the terminal Then jump to P0.1, Po.
2読込み”のルーチンからは、上記第9図で説明したの
と同様に処理したのち、−1:、記゛ジャンプ■”の処
理ルーチンの次のルーチンに“リターン“する。From the ``2 read'' routine, the same processing as explained in FIG. 9 is performed, and then the process ``returns'' to the routine following the ``-1:, record jump ■'' processing routine.
ところか、ソフトウェア的にROM空間を4分割する手
段では、割込み等の処理が発生1−だ場合には、面倒な
処理が必要となる。即ち、ターゲットのレンズの仕様が
異なる場合、例えばINTO″という割込みを、あるレ
ンズではパワーフォーカスのスタート信号に利用して、
また他のレンズでは、レンズ駆動を強制的に停止するた
めのストップスイッチの人力に利用したり(7ているの
で、特定な2ビツト・の情報をもとに、割込み処理が発
生した先でプログラム的に分岐させる必要がある。On the other hand, with the means of dividing the ROM space into four using software, troublesome processing is required when processing such as an interrupt occurs. That is, if the specifications of the target lenses are different, for example, an interrupt called "INTO" may be used as a power focus start signal for a certain lens.
In addition, with other lenses, a stop switch is used manually to forcefully stop the lens drive (7), so the program is programmed based on specific 2-bit information at the point where the interrupt processing occurs. It is necessary to branch out.
これはソフトウェア側に大きな負担を生ヒさせ、かつ、
割込み処理の実行時間が皆しく長(なり、本来割込み処
理を(7て、実行速度を向上させようという試みに反す
ることとなる。This places a heavy burden on the software side, and
The execution time of the interrupt processing is long (7), which goes against the original attempt to improve the execution speed of the interrupt processing (7).
そこで、本発明の目的は、上述の問題点を解消し、複数
本のレンズ制御プログラムが格納されたROM空間を分
割するのにソフトウェア的に行なうのでなく、ハード的
に行なうようにしたカメラアクセサリ用マイクロコンピ
ユー・夕を提供するにある。SUMMARY OF THE INVENTION Therefore, an object of the present invention is to solve the above-mentioned problems and to provide a camera accessory that divides a ROM space in which a plurality of lens control programs are stored, instead of using software to divide the ROM space. The purpose is to provide microcomputer services.
[課題を解決するだめの手段1
本発明のカメラアクセサリ用マイクロコンビ1−タは、
カメラに装着する゛アクセサリに対応1.τ複数個の完
結l−たプログラムコード(以下、ROMと略記する)
を内蔵するマイクロコンビコータであって、ROMアト
Lノスを決定するためのプログラムカウンタの特定の上
位ビットが、直接アクセスする外部入力信号により一義
的に決定され、それにより実行i1能な内蔵ROMの領
域のうちの1つが選択的に決定、されることを特徴とす
るものである。[Means for Solving the Problem 1] The microcombiner for camera accessories of the present invention has the following features:
Compatible with accessories attached to the camera 1. τMultiple completed program codes (hereinafter abbreviated as ROM)
A micro combicoater with a built-in ROM, in which a specific high-order bit of the program counter for determining the ROM at L node is uniquely determined by an external input signal that is directly accessed, and thereby an area of the built-in ROM that can be executed. One of them is selectively determined.
[作 川]
CPUのROMアドレスを決定するためのプログラムカ
ウンタは、外部入力信号によりRONiアト1ノス空間
の1−位数ビットが強制的に設定され、この設定された
ビットによりプログラムカウンタのある特定ビット部分
が固定化1〜、I NROM内の8ト℃出しnfl域の
範囲を強制的に決定すること(ごなる。従って、この外
部信号により、ROM内のアトし・ス空間を自由に分割
使用できる。[Sakukawa] The program counter for determining the CPU's ROM address is forced to set the 1-order bit of the RONi atto 1 nos space by an external input signal, and this set bit allows the program counter to specify a specific address. If the bit part is fixed from 1 to 8, the range of the output nfl range in the I NROM is forcibly determined. Can be used.
[実 施 例〕
以下、図面を参照して本発明を具体的に説明するが、先
ず第2図により、カメラ本体とこれに装着して使用され
る交換レンズ鏡筒のそれぞれにマイクロコンピュータを
装備したカメラシステムの概飲を説明する。。[Embodiment] The present invention will be specifically explained below with reference to the drawings. First, as shown in FIG. An overview of the camera system developed will be explained below. .
第2図に示すように、フォーカス用レンズ47゜ズーム
用レンズ48.49を含む撮影光学系は、DC七−タ4
2によりラック機構43を介し、て駆動されるようにな
っており、ズーム用レンズ、48の移動はズームエンコ
ーダ45で検出されるようになっている。また、絞り機
構46は、ステップモータ44て駆動されるようになっ
ていて、撮影光学系を透過した被写体光は、予定焦点面
28の後方に配設され、瞳投影レンズ24aとその後方
に配置された瞳分割レンズ24b、24cからなる瞳分
割光学系24で分割され−(A群センサ25a。As shown in FIG.
2 via a rack mechanism 43, and movement of the zoom lens 48 is detected by a zoom encoder 45. Further, the diaphragm mechanism 46 is driven by a step motor 44, and the subject light transmitted through the photographing optical system is arranged behind the planned focal plane 28, and is arranged behind the pupil projection lens 24a. The A-group sensor 25a is divided by a pupil-splitting optical system 24 consisting of pupil-splitting lenses 24b and 24c.
Bilセンサ25bからなるラインセンサ25に照射さ
れる。The line sensor 25 consisting of the Bil sensor 25b is irradiated with the light.
このラインセンサ25は、複数個の5IPT(静電誘導
型フォI・トランジスタ)が直線状に配置されて形成さ
れていて、同5NPTで光電変換された信号はインター
フェース回路26を介しカメラ本体のマイクロコンピュ
ータ(以下、B −ltCOM)と略記する)]1に印
加される。This line sensor 25 is formed by arranging a plurality of 5IPTs (electrostatic induction photoI transistors) in a straight line, and the signal photoelectrically converted by the 5NPTs is sent to the microcontroller of the camera body via an interface circuit 26. computer (hereinafter abbreviated as B-ltCOM)]1.
電源電池12の電圧は、メインスイッチ13をオンする
ことにより各回路へ供給されるようになっており、一定
電圧が必要なマイクロコンビコータ、制御回路へはDC
/DCコンバータ14により電池1u圧を安定化(7た
後に供給される。十記BμCOMIIは、システム全体
のシーケンス制御や各種の演算を行なうもので、マウン
ト接点30の信号線を通してアクセサリがわのマイクロ
コンピュータ(以下、L−μCOMと呼ぶ)2つの制御
を行なう。The voltage of the power supply battery 12 is supplied to each circuit by turning on the main switch 13, and the voltage of the power supply battery 12 is supplied to each circuit by turning on the main switch 13.
The /DC converter 14 stabilizes the battery 1u pressure (supplied after 7 seconds.) The BμCOM II performs sequence control of the entire system and performs various calculations. Two computers (hereinafter referred to as L-μCOM) perform control.
表示制御回路15は、B−μC0M11の指令に従い各
種モード、フィルム駒数の表示、ファインダ中における
露出情報(AFの状態)の表示を行なう。The display control circuit 15 displays various modes, the number of film frames, and exposure information (AF status) in the finder according to commands from the B-μC0M11.
モード設定スイッチ16は、露出モード、AFの動作モ
ードの設定、そしてマニュアル露出モードにおいてはT
v値r Avlii!の設定に用いられる。The mode setting switch 16 is used to set exposure mode, AF operation mode, and in manual exposure mode, T
v value r Avlii! Used for setting.
レリーズスイッチ17は、2段押しのスイッチで、同ス
イッチ17を半押ししたときに発生される1段目の信号
でB−μCOMIIは、AF、!1.沖1光を実行し、
同スイッチ17を全押ししたときに発生される2段目の
信号で露出動作を行なう。The release switch 17 is a two-step press switch, and the first step signal generated when the release switch 17 is pressed halfway is B-μCOMII, AF,! 1. Execute Oki 1 light,
Exposure operation is performed by the second stage signal generated when the switch 17 is fully pressed.
シャッタ制御回路18は、B−μC0M11のシャツタ
秒時信号に基づき、シャツタ秒時Tvを形成する。そし
て、図示しないクイックリターンミラーのアップダウン
制御と共に、TV値に基づき図示しないフォーカルブレ
ーンシャッタの先幕と後幕の制御も行なう。The shutter control circuit 18 forms the shutter shutter time Tv based on the shutter shutter time signal of the B-μC0M11. In addition to up/down control of a quick return mirror (not shown), the leading and trailing curtains of a focal brain shutter (not shown) are also controlled based on the TV value.
巻上げ巻戻し制御回路19は、B−μC0M11の指令
に基づきフィルムの巻上げおよび巻戻しの制御を行なう
。The winding and rewinding control circuit 19 controls the winding and rewinding of the film based on commands from the B-μC0M11.
測光処理回路20は5PD(シリコンフォトダイオード
)21などの/1$1光素子の光電流より被写体輝度を
検知して被写体輝度Byの信号をB−μC0M11へ送
出する。The photometry processing circuit 20 detects the subject brightness from the photocurrent of a /1$1 optical element such as a 5PD (silicon photodiode) 21, and sends a signal of the subject brightness By to the B-μC0M11.
フィルム感度読取り回路22はフィルムのDXコードを
読取り、フィルム感度情報Svの信号をB−μCOMI
Iへ送出する。The film sensitivity reading circuit 22 reads the DX code of the film and sends the film sensitivity information Sv signal to B-μCOMI.
Send to I.
撮影レンズの射出瞳の光束は瞳分割光学系24で分割さ
れ、5IPT(静電誘導型フォトトランジスタ)をライ
ン状に配列した5IT(静電誘導トランジスタ)で形成
されたラインセンサ25のA群センサ25aと8群セン
サ25b上にそれぞれ結像されるようになっている。The light flux from the exit pupil of the photographic lens is divided by a pupil splitting optical system 24, and a group A sensor of a line sensor 25 is formed of 5ITs (static induction transistors) in which 5IPTs (static induction phototransistors) are arranged in a line. 25a and 8 group sensor 25b, respectively.
インターフェース回路26は、ラインセンサ制御回路と
A/Dコンバータとからなり、B−μC0M11から制
御信号が供給されると上記ラインセンサ制御回路が作動
してラインセンサ25から出力された信号の積分を行な
う。そして適正レベルに達すると、その積分出力をA/
Dコンバータによりディジタル値に変換してB−μCO
MIIへ供給し、これによってB−μC0M11はこの
値よりピントのズレ量を算出する。The interface circuit 26 consists of a line sensor control circuit and an A/D converter, and when a control signal is supplied from the B-μC0M11, the line sensor control circuit operates and integrates the signal output from the line sensor 25. . When the appropriate level is reached, the integrated output is changed to A/
Convert to digital value with D converter and convert to B-μCO
This value is supplied to MII, and B-μC0M11 calculates the amount of focus shift from this value.
マウント接点30は、カメラ本体側の回路とレンズ側の
回路を接続するための接点で、同接点30を介してレン
ズ側への電力供給およびL−μC0M29とB−μC0
M1.1の通信が実行される。The mount contact 30 is a contact for connecting the circuit on the camera body side and the circuit on the lens side, and supplies power to the lens side and L-μC0M29 and B-μC0 through the contact 30.
M1.1 communication is executed.
次にレンズ鏡筒側の説明を行なうと、L−μC0M29
は、B−μCOMIIの指令に基づいてレンズの駆動、
絞り駆動、各種の演算等を行なう。Next, explaining the lens barrel side, L-μC0M29
drives the lens based on the command of B-μCOMII,
Performs aperture drive, various calculations, etc.
レンズ状態スイッチ32には、A v oスイッチ。The lens status switch 32 includes an Avo switch.
5TOPスイツチ、AMスイッチがある。A v 。There is a 5TOP switch and an AM switch. A v.
スイッチは、絞りの開放を検知するためのスイッチで絞
り込み中は常にオンしており、レンズを開放にするとオ
フするスイッチである。5TOPスイツチはユーザがA
Fの状態に拘らず露出動作を実行したいときに用いるス
イッチである。5TOPスイツチをオンするとレンズの
駆動が中断され、レリーズスイッチを2段目まで押し込
めば、直ちに露出動作が実行される。AMスイッチは、
AFとMFを切換えるスイッチでAF側にすると、″A
Fシングル“もしくは“AFサーボ1のモードが実行さ
れ、MF側にすると、回転1榮作部祠の回転量に対応し
て、L−μC0M29がレンズの駆動量を制御するパワ
ーフォーカスが実行されるようになっている。The switch detects when the aperture is open, and is always on when the aperture is stopped down, and turns off when the lens is wide open. 5TOP switch is user A
This switch is used when it is desired to perform an exposure operation regardless of the F state. When the 5TOP switch is turned on, lens drive is interrupted, and when the release switch is pushed to the second step, the exposure operation is immediately executed. The AM switch is
When set to AF side with the switch to change between AF and MF, "A"
When F single "or" AF servo 1 mode is executed and it is set to MF side, power focus is executed in which L-μC0M29 controls the amount of lens drive corresponding to the rotation amount of rotation 1 Eisakubu shrine. It has become.
抵抗33,35、トランジスタ34、LED36、集光
レンズ31からなる補助光回路は、被写体輝度が低いと
きに高輝度LED36が点灯して被写体へ投光し被写体
輝度を上げるために使用される。レンズドライバー回路
37は、L−μC0M2つの指令により第1と第2のモ
ータ駆動回路38.39を動作させるための信号を形成
する。An auxiliary light circuit including resistors 33 and 35, a transistor 34, an LED 36, and a condensing lens 31 is used to increase the brightness of the subject by turning on the high-intensity LED 36 and projecting light onto the subject when the subject brightness is low. The lens driver circuit 37 forms signals for operating the first and second motor drive circuits 38 and 39 based on the two L-μC0M commands.
また、回転操作部材40やフォトインクラブタによるパ
ルス発生器41からの信号を処理してL−μC0M29
へ送出する。In addition, the L-μC0M29
Send to.
回転操作部材40は、距離環に相当するもので、2相の
クロックパルスがレンズ鏡筒の回転に応じて出力される
。この出力はレンズドライバー回路37の中で回転方向
信号と回転スピードを示すパルスとなってL−μC0M
29へ送出される。The rotation operation member 40 corresponds to a distance ring, and outputs two-phase clock pulses in accordance with the rotation of the lens barrel. This output becomes a rotation direction signal and a pulse indicating the rotation speed in the lens driver circuit 37, and is converted into a pulse indicating the rotation direction signal and rotation speed.
29.
パルス発生器41は、焦点調整用レンズ47を駆動する
DCモータ42の回転量に比例したパルスを発生ずる。The pulse generator 41 generates pulses proportional to the amount of rotation of the DC motor 42 that drives the focus adjustment lens 47.
その出力はレンズドライバー回路37て波形成形された
後、L−μC0M29−\送出される。第1のモータ駆
動回路38は、トランジスタのブリッジ回路で構成され
、DCモータ42を駆動する。ズームエンコーダ45は
、ズーム用レンズ48の位置に応じたコード、即ちズー
ムレンズの現在の焦点距1まに対応した値をL−μC0
M29へ出力する。第2のモータ駆動回路39は絞り機
構46を駆動するステップモータ44を駆動する回路で
ある。The output is waveform-shaped by the lens driver circuit 37 and then sent out L-μC0M29-\. The first motor drive circuit 38 is composed of a bridge circuit of transistors, and drives the DC motor 42 . The zoom encoder 45 outputs a code corresponding to the position of the zoom lens 48, that is, a value corresponding to the current focal length of the zoom lens 1 as L-μC0.
Output to M29. The second motor drive circuit 39 is a circuit that drives the step motor 44 that drives the aperture mechanism 46 .
次に、マウント接点の信号線について説明する。Next, the signal line of the mount contact will be explained.
マウント接点30には、カメラ本体からレンズの回路へ
電力を供給するための電源供給ラインPWR、PWR2
と、B−μC0M11と■、=μC0M29か通信する
ための通信信号ラインがそれぞれ通じている。信号ライ
ンLR5TはB−μC0Mll−からL−μC0M29
ヘリセツト信号を、信号ラインMC0NT、LCONT
は、B−μC0M1.1とL−μC0M29の通信時に
同期を取るために使用されるハンドシェイクライン、信
号ラインCLKはシリアル通信においてデータの同期を
取るために使用される同期クロックを流すラインである
。・−本に結線された信号ラインRXD、TXDは、ク
ロック信号CL Kの出力に同期してシリアルデータが
流れる。例えばB−μCOMIIからL −1,ノC0
M29へデータか送信されるときは、B−μCOMII
のTXDからデータが出力されL−μC0M29のRX
Dにデータが入力されるようになっている。信号ライン
L M S Wはアクセサリであるレンズがカメラ本体
に装着されているかどうかを判断するために使用される
もので、プルアップ抵抗27により電源ラインと接続し
、かつマウント接点30を介(7てレンズ側で接地され
ている。従って、レンズvL簡がカメラ本体に装着され
ているときは信号ラインLMSWはその論理1ノベルが
“L”レベルになり、装着されていないときは“H″レ
ベルなるから、この信号ラインLMSWの論理レベルを
B−μCOMIIて読み込むことにより、カメラ本体側
でレンズt?を筒装谷のH無を知ることができる。The mount contact 30 includes power supply lines PWR and PWR2 for supplying power from the camera body to the lens circuit.
, B-μC0M11 and ■,=μC0M29 are connected to communication signal lines for communication, respectively. The signal line LR5T is from B-μC0Mll- to L-μC0M29
The heliset signal is connected to the signal lines MC0NT and LCONT.
is a handshake line used to synchronize when communicating between B-μC0M1.1 and L-μC0M29, and signal line CLK is a line that carries a synchronization clock used to synchronize data in serial communication. . Serial data flows through the signal lines RXD and TXD, which are connected in series, in synchronization with the output of the clock signal CLK. For example, from B-μCOMII to L-1, noC0
When data is sent to M29, B-μCOMII
Data is output from TXD of L-μC0M29 RX
Data is now input to D. The signal line LMSW is used to determine whether an accessory lens is attached to the camera body, and is connected to the power supply line through a pull-up resistor 27, and is Therefore, when the lens VL is attached to the camera body, the logic 1 level of the signal line LMSW is "L" level, and when it is not attached, it is "H" level. Therefore, by reading the logic level of this signal line LMSW as B-μCOMII, it is possible to know whether the lens t?
このように構成されたカメラシステノ、に使用されるB
−μC0M111やL−μCOM 29等のCPLIの
概要を第3図〜第5図を用いて説明する。B used for the camera system constructed in this way.
An overview of CPLIs such as -μC0M111 and L-μCOM29 will be explained using FIGS. 3 to 5.
第3図(A)は、このようなCPUの主要な構成要素を
示す配置図で、第3図(B)はこのなかのプログラムカ
ウンタ(以°ド、PCという)】の簡単な構成図である
。図において、CPU60は、それ自身内にROM部2
.RAM部56,110部、タイマ部や通信機能を果す
周辺回路52を有する。Figure 3 (A) is a layout diagram showing the main components of such a CPU, and Figure 3 (B) is a simple configuration diagram of the program counter (hereinafter referred to as PC). be. In the figure, the CPU 60 has a ROM section 2 within itself.
.. It has RAM sections 56 and 110, a timer section, and a peripheral circuit 52 that performs communication functions.
そしてCPUの実行ずべきコードは、ROM2内にプロ
グラミングされ′Cおり、PCIにより読出すアドレス
が設定されると、アドレスバッファ51を介してROM
2に読出し指令が供給される。The code to be executed by the CPU is programmed into the ROM 2, and when the read address is set by the PCI, the code is transferred to the ROM via the address buffer 51.
2 is supplied with a read command.
すると、ROM2のメモリ内容がCP U内部BUS5
に読込まれ、ALU (中央処理ユニット)55がAC
C(アキュームレータ)53やTemp (テンポラリ
レジスタ)54と協働1.て命令を実行する。また、1
命令を実行する毎にPCIは+コされ、次に実行すべき
内容を蓄える。Then, the memory contents of ROM2 are transferred to the CPU internal BUS5.
The ALU (Central Processing Unit) 55
Cooperation with C (accumulator) 53 and Temp (temporary register) 54 1. and execute the command. Also, 1
Each time an instruction is executed, the PCI is incremented to store the contents to be executed next.
次に、CPU60の概略アーキテクチャについて第4図
を用いてより詳細に説明する。Next, the general architecture of the CPU 60 will be explained in more detail using FIG. 4.
“lNROM″2は、1.6にバイト分のプログラム・
メモリがチップ上にマスクROMとし5て内蔵されてい
る。メモリ容量が16にバイトのため、アドレスAO−
A13によりROMのアドレスを指定して読出すように
ドアている。コードDO〜D7は、R,OMに記憶され
たコードであり、CPU内部BUSへ導かれる。"lNROM" 2 contains 1.6 bytes worth of programs.
A memory is built in as a mask ROM 5 on the chip. Since the memory capacity is 16 bytes, the address AO-
A13 causes the ROM address to be designated and read. Codes DO to D7 are codes stored in R and OM, and are led to the CPU internal BUS.
’r’cH’ 1 a/ ’PCL” lbは16ビツ
ト長のプログラムカウンタ1のHlバイトとLOバイト
で、全ピントを使用すれば、アト1ノス空間64にバイ
トをix択できる。'r'cH' 1 a/'PCL' lb is the Hl byte and LO byte of the program counter 1 with a length of 16 bits, and if all the pins are used, ix bytes can be selected in the at1nos space 64.
“PCHL” 71a/ ’PCLL’ 71bは、上
記プログラムカウンタ1の値をラッチし、内部ROM2
の、または、PORTO72a、PORT272cを介
して外部ROM (図示せず)のアドレスを指定する。"PCHL"71a/'PCLL' 71b latches the value of the program counter 1 and stores it in the internal ROM 2.
or the address of an external ROM (not shown) via PORT 72a or PORT 272c.
’DPH’ 73a/″DPL”73bは、16ビツト
長のデータポインタのHlバイトとLOバイトである。'DPH'73a/'DPL' 73b are the H1 byte and LO byte of a 16-bit data pointer.
レジスタ間接アドレッシングのベース・アドレスとして
、プログラム・メモリ内にある定数データの転送、外部
データメモリ内の変数データの転送、64にバイト・プ
ログラム・メモリのスペース上での分岐命令等に用いら
れる。As a base address for register indirect addressing, it is used for transferring constant data in program memory, transferring variable data in external data memory, and for branching instructions on the 64 byte program memory space.
’SP”74は、内部データRA M 56のメモリ領
域256バイトに設定されるスタックの番地でを示すも
のである。'SP' 74 indicates the address of the stack set in the 256-byte memory area of the internal data RAM 56.
IR’76は、インストラクションレジスタであり、P
L A (Programable Logic A
lay) 77を通り制御信号に変換される。IR'76 is an instruction register, P
L A (Programmable Logic A
lay) 77 and is converted into a control signal.
’PLA’ 77は、Programble Logl
c Alayであり、IRに応じて必要な制御信号を発
生する。'PLA' 77 is Programmable Logl
c Alay, which generates necessary control signals according to the IR.
“AIR”78は、IRレジスタ76で示された命令の
実行されるべきレジスタ、ROM等のアドレスを示す。“AIR” 78 indicates the address of a register, ROM, etc. where the instruction indicated by the IR register 76 is to be executed.
’5PECIAL FUNCTION REGIS
TERADDRESS DECORDER’79は、
CPUの各種レジスタをコントロールするSFRのアド
レスを示す。なお、SFRとは、ACC53を初めとす
る各種レジスタのことである。'5PECIAL FUNCTION REGIS
TERADDRESS DECORDER'79 is
Indicates the address of SFR that controls various registers of the CPU. Note that SFR refers to various registers including the ACC53.
“TRI” 80. “TR2”81は、ALU55
に導かれる8ビツトのテンポラリ・レジスタである。“TRI” 80. "TR2" 81 is ALU55
This is an 8-bit temporary register guided by
ALU”55は、算術中論理演算部であり、1つまたは
2つの8ビツトデータをテンポラリ・レジスタTRI、
TR2より受は取り、処理をする。処理の内容としては
、加減算、インクリメント、デクリメント、ビット反転
、ローティト10進補正1乗算、除算、ビット検出、論
理和。ALU"55 is an arithmetic logic operation unit, and stores one or two 8-bit data in a temporary register TRI,
The receiver is received from TR2 and processed. Processing contents include addition/subtraction, increment, decrement, bit inversion, rotated decimal correction 1 multiplication, division, bit detection, and logical OR.
論理積、排他的論理和等が処理できる。Can process logical AND, exclusive OR, etc.
“PSW”82は、プログラム・スティタス・ワードで
あり、ALU55の各種演算レジスタや汎用レジスタバ
ンクの切換え等が示されている。"PSW" 82 is a program status word, and indicates switching of various operation registers and general-purpose register banks of the ALU 55, and the like.
“ACC”53は、アキュムレータであり、CPUの算
術、論理演算を実行するための中心となるレジスタであ
る。"ACC" 53 is an accumulator, and is a central register for executing arithmetic and logical operations of the CPU.
’RAMDP’ 83は、内蔵RAM56のデータポイ
ンタである。'RAMDP' 83 is a data pointer for the built-in RAM 56.
”5BUF(T)”84. 5BUF(R)’85.
5CON’ 86はシリアルI10のためのバッファお
よびコントロールレジスタである。割込み要求等も制御
する。“5BUF(T)”84. 5BUF(R)'85.
5CON' 86 is a buffer and control register for serial I10. It also controls interrupt requests, etc.
’TH1”87. ’TL1’88. ”THO’
8つ、 “TLO“90は、それぞれ16ビツト長のタ
イマ・イベント・カウンタである。'TH1'87. 'TL1'88. 'THO'
8, "TLO" 90 are each 16 bit long timer event counters.
’TMOD’ 91. “TCON” 92は、16
ビツトのタイマ0,1を、コントロールするレジスタで
ある。タイマモードやイベントモードの選択、起動、ス
トップ、割込み要求等を制御する。'TMOD' 91. “TCON” 92 is 16
This register controls bit timers 0 and 1. Controls timer mode and event mode selection, start, stop, interrupt requests, etc.
IE″93. “IP“94は、それぞれ割込み可能レ
ジスタと、割込みプライオリティレジスタであり、割込
みに関するコントロールを行なう。IE"93. "IP"94 is an interrupt enable register and an interrupt priority register, respectively, and controls interrupts.
“TR2”95. “TL2”96は、多モードの16
ビツトのタイマ・イベント・カウンタで、キャプチャモ
ードやボーレートモード等の付加機能を有する。“TR2”95. "TL2" 96 is a multi-mode 16
This is a BIT timer/event counter with additional functions such as capture mode and baud rate mode.
“72CON″97は、タイマ2のコントロールレジス
タである。“72CON” 97 is a control register for timer 2.
RCAP2L”99 RCAP2H’98は、タイマ
2のキャプチャモードの動作の際、使用するレジスタで
ある。RCAP2L"99 RCAP2H'98 is a register used when timer 2 operates in capture mode.
”FORT O” 72aは8ビツトのIloで、外
部ROM使用モードにおいては“FORT O”と“
PORT 2”を用いてメモリ空間を拡張する。"FORT O" 72a is an 8-bit Ilo, and in external ROM use mode, "FORT O" and "
Expand the memory space using ``PORT 2''.
“PORT 1”72bは、8ビツトのI10ポート
と、タイマ2の人力機能を存する。"PORT 1" 72b has an 8-bit I10 port and a timer 2 manual function.
’PORT 2” 72cは、8ビツトのI10ボー
トで、メモリ拡張時にも使用される。'PORT 2' 72c is an 8-bit I10 port and is also used when expanding memory.
“PORT 3″72dは、8ビツトのI10ボート
で、2次機能と【7て、シリアルポート割込み。“PORT 3” 72d is an 8-bit I10 port with secondary functions and [7] Serial port interrupt.
夕・イマ01人力 外部メモリ使用のためのタイミング
信号を出力する。Evening/Ima 01 Manually Outputs the timing signal for external memory use.
lNC0N” 100 “PCON“ 101は、
Iloの状部をコントロールし、“PCON”は省電カ
モード等を制御するレジスタである。lNC0N" 100 "PCON" 101 is
"PCON" is a register that controls the power saving mode, etc.
IRAS1″ ”IRASO”信号は、PCIのピッ
1−12.13を外部より強制的にコントロールする信
号人力で、丁W信号によりコントロールされる。IRAS1'' The "IRASO" signal is a human signal that forcibly controls pins 1-12.13 of the PCI from the outside, and is controlled by the DW signal.
“n−“(dすは、外部ROMを使用するか内部ROM
2を使用4−るか決定する信号である。"n-" (d is whether to use external ROM or internal ROM.
This signal determines whether to use 2 or 4.
XTAL1” XTAL2”端子は、マイコンの動
作に必要なりロック信号−の入出力端子である。The XTAL1" and XTAL2" terminals are input/output terminals for a lock signal necessary for the operation of the microcomputer.
“)〜LE”信号は、外部メモリ使用114Jに、CI
)IJのボートから出力されるアト1ノス信号を夕1部
ランチにとらえるための(3号である。The “)~LE” signal is sent to the external memory use 114J by the CI
) To capture the Atonenos signal output from the IJ boat during lunch in the evening (No. 3).
“″r3−■°信号は、外部プログラム信号時に出力さ
れる信号で、命令およびデータを取り込むときに出力さ
れる。The "r3-■° signal is a signal that is output when an external program signal is sent, and is output when an instruction and data are taken in.
“RESET″端子は、CPUに対するリセット信号入
力端子で、リセットが解除されると、プログラムは実行
される。The "RESET" terminal is a reset signal input terminal to the CPU, and when the reset is released, the program is executed.
史に、上記第4図に示17たCPU60の入出力端rを
第5図を用いて説明する。First, the input/output terminal r of the CPU 60 shown in FIG. 4 will be explained with reference to FIG.
XTALl、XTAI、2端子は、CP TJの内部ク
ロック信号用の水晶制御発振器に使用される水晶振動子
を外付けする端子で、上記両端子間に水晶振動子61が
、また各端子と接地間にコンデンサ6263がそれぞれ
外(=jけされるようになっている。The XTALl, XTAI, and 2 terminals are terminals for externally connecting a crystal resonator used for the crystal controlled oscillator for the internal clock signal of the CP TJ. The capacitor 6263 is connected to each other.
RESET端子に供給されたリセット信号がアクティブ
からノンアクティブになると、リセ・ソト解除され、P
Cはooooからプログラムを実行開始する。When the reset signal supplied to the RESET terminal changes from active to non-active, reset/reset is released and P
C starts executing the program from oooo.
XTT1■)1玉。Wπ、R−5は、外部ROM。XTT1 ■) 1 ball. Wπ and R-5 are external ROMs.
外部RAMを利用t7たときの、後述するFORTOの
B U S上とタイミングをとるための端子である。This is a terminal for timing with the FORTO BUS, which will be described later, when using external RAM t7.
V cc、 V ssは、電源端子で、通常はVccに
+5Vが、VSSにOVかそれぞれ供給される。Vcc and Vss are power supply terminals, and normally +5V is supplied to Vcc and OV is supplied to VSS.
PORTO,PORTI、PORT2.PORT3は、
その1次機能としては、入出力端子であり、PORTO
は2次機能として拡張B U S機能を何するようにな
っている。まt−1PORTI。PORTO, PORTI, PORT2. PORT3 is
Its primary function is as an input/output terminal, and PORT
is designed to perform an extended BUS function as a secondary function. Mat-1 PORTI.
PORT3は2次機能と15で、タイマ、シリアル通信
1割込み−9の機能を有する。PORT3 has a secondary function and 15, a timer, and a serial communication 1 interrupt-9 function.
−【Wは、CPU MEMORY 5EPARAT
Eて、EiかHIレベルのときは内部ROMか、TI
がHOレベルのときには外部ROMがそれぞれ選択され
る。- [W is CPU MEMORY 5EPARAT
E, when Ei or HI level, internal ROM or TI
When is at the HO level, the external ROM is selected.
IRASO,IRASIは本発明の特徴箇所であって、
IN ROM AREA 5ELECTの信号入
力端rで、この2ビツトの信号に5より、lNROMの
アドレス空間が4つに分割される。IRASO and IRASI are the characteristics of the present invention,
The address space of INROM is divided into four by this 2-bit signal 5 at the signal input terminal r of IN ROM AREA 5ELECT.
この端子はnがH1lノベルのときのみイネーブルとな
る。This terminal is enabled only when n is an H1l novel.
次に、二のように構成されたCPU60に本発明を適用
1.た一実施例を第1図、第6図、第7図を用いて説明
する。第1図は、本発明の一実施例を示すカメラアクセ
サリ用マイクロコンピュータの要部を示すブロック系統
図である。図において、1−6ビツトのカウンタからな
るPCIは、そのL位バイト]aを構成するビットpc
=pc15と下位バイト1bを構成するビットP
Co〜pc7とから1[構成されていて、各バイトの入
出力端からCPU内部のDATA BUS6との間で
G4号の授受か行なわれるようになっている。一方、1
6にバイトの記悌、容量を有する内部格納R,OM 2
は、4分割されて、つまり4にバイトのブロック4個に
分割されており、CPU内部BUS5に記憶情報を読出
すようになっている。1−記の内容格納ROM2のアド
レスを指定するために、上記PC1のPC〜PC11ま
ての12ビットのアドレスラインがROM2とI) C
1との間に接続されている。Next, the present invention is applied to the CPU 60 configured as in 1. Another embodiment will be described with reference to FIGS. 1, 6, and 7. FIG. 1 is a block system diagram showing the main parts of a microcomputer for a camera accessory according to an embodiment of the present invention. In the figure, the PCI consisting of a 1-6 bit counter is the bit pc constituting the L-order byte]a.
= pc15 and bit P that constitutes lower byte 1b
Co to pc7, and the G4 number is exchanged between the input/output terminal of each byte and the DATA BUS6 inside the CPU. On the other hand, 1
6 bytes of memory, internal storage with capacity R, OM 2
is divided into four blocks, that is, divided into four blocks of 4 bytes, and the stored information is read out to the CPU internal BUS5. In order to specify the address of the content storage ROM2 in item 1-1, the 12-bit address line from PC to PC11 of the PC1 is connected to the ROM2.
1.
そして、PCIのPCI2.PCl3の2ビツトは、」
二連の4個のブロックを選択するラインで、IRASI
およびIRASOの信号が印加される端J’との間に、
チップイネーブル端子付のバッファゲート3.4が介挿
され、同バッファゲート3.4のチップイネーブル端子
にはCPU MEMORY 5EPARATE信号
TTが印加さiる。J:うになっている。従って、上記
バッファゲート3゜4は、信号rτがHlレベルのとき
イネーブルとなるから、内部ROMモードとなり、これ
によってROM2はPCIのビットPC,2,pc、に
関係なく、IRASI、IRASOの各信号により4分
割されたアドレス空間が選択されることになる。一方、
信号TIがLOレベルのときはバッファゲート3,4が
ディスエイプルとよばれる外部ROMモードとなる。ま
た、上記PCIのビットPCl5.PCl4は、外部R
OMを使用する際にそのアドレス指定に用いられるから
、外部ROMモードでは64にバイト迄アクセスできる
ことになる。And PCI2 of PCI. The 2 bits of PCl3 are
IRASI on the line that selects two consecutive 4 blocks.
and the end J' to which the IRASO signal is applied,
A buffer gate 3.4 with a chip enable terminal is inserted, and a CPU MEMORY 5EPARATE signal TT is applied to the chip enable terminal of the buffer gate 3.4. J: The sea urchin is turning. Therefore, since the buffer gate 3.4 is enabled when the signal rτ is at Hl level, it becomes an internal ROM mode, and the ROM 2 receives the IRASI and IRASO signals regardless of the PCI bits PC, 2, and pc. An address space divided into four parts will be selected. on the other hand,
When the signal TI is at the LO level, the buffer gates 3 and 4 enter an external ROM mode called disabled. Also, bit PCl5. of the PCI mentioned above. PCl4 is external R
Since it is used for addressing when using the OM, up to 64 bytes can be accessed in external ROM mode.
このように構成された本実施例においてRs c を解
除されると、PCIは16進表示で0OOOHからカウ
ントアツプし、−命令を実行する毎に+1づつインクリ
メントしていく。In this embodiment configured as described above, when Rs c is released, the PCI counts up from 0OOOH in hexadecimal notation, and increments by +1 every time a - instruction is executed.
T”K信号がHlレベルのときには、lNROMモード
となり、PCIで指定されたアドレスに格納されている
R Otv1データをフェッチし、CPU内部BUS内
へ送出する。When the T''K signal is at the Hl level, the CPU enters the INROM mode, fetches the R Otv1 data stored at the address designated by the PCI, and sends it to the CPU internal BUS.
n信号がLOレベルのときには、外部ROMモードとな
り、Pctで指定されるアドレスを、CPU内部BUS
5を介して”FORTO” 72a(第4図参照)に出
力し、これによって外部ROMのアクセスアドレスを指
示する。When the n signal is at the LO level, the mode is set to external ROM, and the address specified by Pct is transferred to the CPU internal BUS.
5 to "FORTO" 72a (see FIG. 4), thereby indicating the access address of the external ROM.
IRAS (IN ROM AREA 5ELE
CT)0. 1信qは、n−Hl (IN ROM
モードにて)アクティブとなりCPU外部からの設定に
よりPctのビット12. ビット13をワイアード
・オアーすることにより強制的に決定する。IRAS (IN ROM AREA 5ELE
CT) 0. 1 signal q is n-Hl (IN ROM
bit 12 of Pct becomes active according to settings from outside the CPU. Forcibly determined by wired ORing bit 13.
第6図(A)は、′【W信号と、rRAsl、IRAS
O信号と、PCIの各ビットの論理レベルの関係を示す
。図において、X印はその論理レベルが1,0何れでも
よいことを示している。FIG. 6(A) shows the '[W signal, rRAsl, IRAS
The relationship between the O signal and the logic level of each bit of PCI is shown. In the figure, the X mark indicates that its logic level may be either 1 or 0.
第6図(B)は、このときの内部ROM2のアドレス空
間をIRASl、IRASO信号との対比で示している
。図から分るように、INROMAREAOには、Ty
peAレンズ用の、AREAIにはT’ypQ Bレン
ズ用の、AREA2にはTypeCレンズ用の、ARE
A3にはTypeDレンズ用の、それぞれのアプリケー
ションが記述されている。そして、上記AREAO〜3
は内部に格納されたROM領域に、AREA4はこのC
PUの外部に設けられるROMの領域に、それぞれ対応
する。FIG. 6(B) shows the address space of the internal ROM 2 at this time in comparison with the IRAS1 and IRASO signals. As can be seen from the figure, INROMAREAO has Ty
ARE for peA lenses, AREAI for T'ypQ B lenses, AREA2 for TypeC lenses.
A3 describes each application for the Type D lens. And the above AREAO~3
is in the internally stored ROM area, AREA4 is in this C
Each corresponds to an area of a ROM provided outside the PU.
第7図(^)は、割込み処理の場合のアドレス空間を示
している。図において、IRASl、OがOOのARE
AOにおける割込み発生時の、PCIの応答は、従来の
CPUと同じ状況となる。FIG. 7(^) shows the address space for interrupt processing. In the figure, IRASl, ARE where O is OO
When an interrupt occurs in the AO, the PCI response is the same as in a conventional CPU.
第7図(13)は、IRASI、0が0,1のAREA
Iにおける割込み発生時におけるPCIの応答を示した
ものである。AREAIのROIV1空間は、100O
H〜IFFFH迄の4にバイトだから、割込み処理もこ
れに応答しなければならないが、PCIのビット12は
、IRASI信号により常に1が立っていることから、
何の問題もない。Figure 7 (13) shows IRASI, AREA where 0 is 0, 1.
This figure shows the response of the PCI when an interrupt occurs in I. AREAI's ROIV1 space is 100O
Since there are 4 bytes from H to IFFFH, the interrupt processing must also respond to this, but since bit 12 of PCI is always set to 1 by the IRASI signal,
No problem.
ところが、従来例に示したCPUでは、この場合にも割
込みがAREAOに発生することになり、その対策はソ
フトウェアで負うことになるから、処理が複雑、かつ時
間がかかる。However, in the CPU shown in the conventional example, an interrupt will occur in AREAO in this case as well, and the countermeasures will be taken up by software, making the processing complicated and time-consuming.
換言すれば、1個のROM空間に格納された複数本のレ
ンズ制御プログラムを分割する際に従来のCPUで派生
したソフトウェア上における複雑な処理と所要時間の問
題を次のようにして解決している。即ち、このCPUを
実装するレンズ側の基板上にて決定される特定な2ビッ
ト分の入力を制御(HI/LOに設定)することにより
、プログラム領域を任意に選択して使用できる。In other words, when dividing multiple lens control programs stored in one ROM space, the problem of complicated processing and time required on conventional CPU-derived software can be solved as follows. There is. That is, by controlling (setting to HI/LO) the input of two specific bits determined on the lens-side substrate on which this CPU is mounted, the program area can be arbitrarily selected and used.
第8図(A)、(B)は、本発明のCPUのソフト開発
環境を示したものである。本発明はCPUをアプリケー
ションのレンズのU板に実装したとき、始めて外部より
ハード的にPctをコントロールすることにあるので、
CPUのROM部のマスク発注迄のソフト開発ステップ
は従来と全く変わらない。すべて従来の開発環境が流用
でき、従来のエシエレータを用いて、ハード・ソフトデ
パックが可能である。これにより、ソフトウェア開発者
およびソフトウェア開発埋境の負担は何もなく極めて便
利である。FIGS. 8(A) and 8(B) show a software development environment for the CPU of the present invention. The present invention is to control Pct externally by hardware only when the CPU is mounted on the U plate of the application lens.
The software development steps up to ordering the mask for the CPU's ROM section are completely unchanged from before. All conventional development environments can be used, and hardware and software depacking is possible using conventional escalators. This imposes no burden on the software developer or the software developer, and is extremely convenient.
[発明の効果]
以」ニ述べたように、本発明によれば、内部ROMを6
するCPUにおいて、外部1よ号により、プログラムカ
ウンタ(P C)の、上位の特定数ビットをハード的に
決定する回路を付加することにより、CPUの内部に格
納されたROMのアドレス空間が分割されることになり
、ROMアクセスする領域を外部信号によりコントロー
ルすることかi’iJ能となった。[Effects of the Invention] As described below, according to the present invention, the internal ROM can be
The address space of the ROM stored inside the CPU can be divided by adding a circuit that determines a specific number of high-order bits of the program counter (PC) in hardware using an external code. Therefore, it became possible to control the area to be accessed in the ROM using an external signal.
これにより、同−CPUに、別々の仕様のソフトウJア
を組み込むことが(+J能となり、芹し2<CPUの開
発効率を向上させることが可能となった。This makes it possible to incorporate software with different specifications into the same CPU, making it possible to improve the development efficiency of CPUs.
この手段によれば、ソフト開発手法は、従来の祷用CP
Uを開発する手法が全く共通に流用でき、ソフト開発に
おいて、なんの負担増もなく、数本の別々のアプリケー
ションを同一のCPUにて実現できるという顕著な効果
が発揮される。According to this method, the software development method can be
The method for developing U can be used in common, and in software development, a remarkable effect is achieved in that several separate applications can be realized on the same CPU without any increase in burden.
第1図は、本発明の一実施例を示すカメラアクセサリ用
マイクロコンピュータの要部を示すブロック系統図
第2図は、カメラ本体とアクセサリである交換レンズ境
部のそれぞれにマイクロコンビコータを装備したカメラ
システムのブロック系統図、第3図(^)は、本発明に
使用されるマイクロコンピュータの主要な構成要素を示
す配置図で、第3図(B)は、上記第3図(A)におけ
るプログラムカウンタの簡単な構成図、
第4図は、上記第3図(A)に示すマイクロコンピュー
タの概略のアーキテクチャを示すブロック系統図、
第5図は、」二記第4図に示すマイクロコンピュータの
端子配置図、
第6図(^)は、上記第1図に示すマイクロコンピュー
タのプログラムカウンタにおけるTff信号とIRAS
I、IRASOの各信号とに対する論理状態を示す図で
、第6図<13)は、上記第6図(^)におけるROM
内のメモリ状態を示す図、第7図(A) 、 (B)は
、割込み処理時のアドレス空間を示し、第7図(A)は
IRASI、0信号が0゜0の場合を、第7図(B)は
IRASI、0信号が0.1の場合をそれぞれ示す図、
第8図(Δ)、(+3)は、本発明のCPUソフト開発
環憶を示す図、
第9図と第10図は、従来のカメラアクセサリ用マイク
ロコンピュータにおけるR OMのアドレス空間を4分
割するフローチャートで、第9図はパワー・オン・リセ
ットの場合を、第1,0図はIN’r O処理の場合を
それぞれ示す図である。
1・・・・・・・・・・・・プログラムカウンタ2・・
・・・・・・・・・・・・・ROM60・・・・・・・
・・CPU
特n4出願人 オリンパス光学工業株式会′f1゜
代 理 人 藤 川 七 部
筋6図
(A)
馬ア
(A)
馬6図
(B)
r−−−−”−”’−−−”−−一−コ PC=65,
536馬ア
(B
図
(A)
”rypeAレンスワフト
TypeBレンスツフト
(B)
馬10図
手
続Fig. 1 is a block system diagram showing the main parts of a microcomputer for a camera accessory according to an embodiment of the present invention. Fig. 2 shows a microcomputer equipped with a microcombi coater at each interface between the camera body and the accessory interchangeable lens. A block system diagram of the camera system, FIG. 3 (^) is a layout diagram showing the main components of the microcomputer used in the present invention, and FIG. 3 (B) is a block diagram of the camera system in FIG. 3 (A). 4 is a block system diagram showing the general architecture of the microcomputer shown in FIG. 3(A) above; FIG. 5 is a block diagram showing the general architecture of the microcomputer shown in FIG. The terminal arrangement diagram, Figure 6 (^), shows the Tff signal and IRAS in the program counter of the microcomputer shown in Figure 1 above.
FIG. 6<13) is a diagram showing the logic states for each signal of I and IRASO.
Figures 7(A) and 7(B) show the address space during interrupt processing. Figure (B) is a diagram showing the case where the IRASI and 0 signals are 0.1, Figure 8 (Δ) and (+3) are diagrams showing the CPU software development environment of the present invention, Figures 9 and 10 The figure is a flowchart for dividing the ROM address space in a conventional microcomputer for camera accessories into four parts. Fig. 9 shows the case of power-on reset, and Figs. 1 and 0 show the case of IN'r O processing. FIG. 1...Program counter 2...
・・・・・・・・・・・・ROM60・・・・・・・・・
・・CPU Patent n4 Applicant Olympus Optical Industry Co., Ltd.'f1゜Representative Mr. Fujikawa Seven Part muscle diagram 6 (A) Horse a (A) Horse diagram 6 (B) r-----"-"'-- -”--1-ko PC=65,
536 Horse A (B Diagram (A) ”rype A Rennswift Type B Rennschuft (B) Horse 10 Diagram Procedure
Claims (1)
完結したプログラムコード(ROM)を内蔵するマイク
ロコンピュータにおいて、 ROMアドレスを決定するためのプログラムカウンタの
特定の上位ビットが、直接アクセスする外部入力信号に
より一義的に決定され、それにより実行可能な内蔵RO
Mの領域のうちの1つが選択的に決定されることを特徴
とするカメラアクセサリ用マイクロコンピュータ。(1) In a microcomputer that contains multiple complete program codes (ROM) corresponding to accessories attached to the camera, a specific high-order bit of the program counter for determining the ROM address is an external input signal that is directly accessed. Built-in RO that is uniquely determined by and executable by
A microcomputer for a camera accessory, characterized in that one of M regions is selectively determined.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63291843A JPH02136834A (en) | 1988-11-18 | 1988-11-18 | Microcomputer for camera accessory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63291843A JPH02136834A (en) | 1988-11-18 | 1988-11-18 | Microcomputer for camera accessory |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02136834A true JPH02136834A (en) | 1990-05-25 |
Family
ID=17774138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63291843A Pending JPH02136834A (en) | 1988-11-18 | 1988-11-18 | Microcomputer for camera accessory |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02136834A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008233192A (en) * | 2007-03-16 | 2008-10-02 | Hoya Corp | Interchangeable lens and camera system having memory |
-
1988
- 1988-11-18 JP JP63291843A patent/JPH02136834A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008233192A (en) * | 2007-03-16 | 2008-10-02 | Hoya Corp | Interchangeable lens and camera system having memory |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6654554B2 (en) | Power controller of a camera having an interchangeable lens | |
JPH01185611A (en) | Image blurring preventing device | |
US20020118972A1 (en) | Camera system having a communication system between a camera body and a photographing lens | |
US6707992B2 (en) | Camera system having a communication system between a camera body and a photographing lens | |
JP5997867B2 (en) | Device driver registration apparatus and device driver registration method using the same | |
US4699491A (en) | Camera accessory with encoder adjusting device | |
JPH04243236A (en) | Information inputting/outputting method for camera | |
JPH04102835A (en) | Camera system | |
JPH03237413A (en) | Electric focal length change device | |
JPH02136834A (en) | Microcomputer for camera accessory | |
JP2003140241A (en) | Camera and control method of camera | |
JPH0565860B2 (en) | ||
JP5202388B2 (en) | Portable device and imaging device | |
US20020114625A1 (en) | Camera system having a communication system between a camera body and a photographing lens | |
JPH07319049A (en) | Camera | |
JPH07294982A (en) | Photographing device provided with camera shake correcting function | |
JP2000098467A (en) | Camera system and camera | |
US5784645A (en) | Apparatus having a first microcomputer for reading first and second data from a non-volatile memory and processing the second data and transferring the first and second microcomputer | |
JPS61149939A (en) | Extension accessory for camera | |
JPH09218450A (en) | Camera body and camera accessory | |
JPH0637406Y2 (en) | Camera shooting data setting device | |
US20050119549A1 (en) | Embedded metal-programmable image processing array for digital still camera and camrecorder products | |
JP2004062373A (en) | Equipment using microcomputer | |
JP2005128334A (en) | Camera system | |
JP3100724B2 (en) | Camera exposure control device |