JPH0247638A - Camera - Google Patents
CameraInfo
- Publication number
- JPH0247638A JPH0247638A JP63198259A JP19825988A JPH0247638A JP H0247638 A JPH0247638 A JP H0247638A JP 63198259 A JP63198259 A JP 63198259A JP 19825988 A JP19825988 A JP 19825988A JP H0247638 A JPH0247638 A JP H0247638A
- Authority
- JP
- Japan
- Prior art keywords
- switch
- mode
- camera
- bit
- definition
- 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
Links
- 238000012790 confirmation Methods 0.000 claims abstract description 5
- 238000000034 method Methods 0.000 description 18
- 238000004804 winding Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 244000145845 chattering Species 0.000 description 4
- 238000005375 photometry Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 238000012937 correction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Exposure Control For Cameras (AREA)
- Focusing (AREA)
- Details Of Cameras Including Film Mechanisms (AREA)
- Automatic Focus Adjustment (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
この発明はあらかじめ多機能モードとして設計されてい
るカメラのモード切換スイッチの機能を定義できるカメ
ラに関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a camera that can define the function of a mode changeover switch of a camera that has been designed in advance as a multi-function mode.
(従来の技術)
特開昭57−112724号公報において、常用モード
設定可能なカメラが提案されている。これは常用モード
をすぐに設定できるように、モード切換操作部と同じ数
だけ常用モード設定部に操作部を設け、よく使う所に設
定しておき、随時この常用モードに設定するものである
。(Prior Art) Japanese Patent Laid-Open No. 57-112724 proposes a camera that can be set to a regular mode. In order to be able to quickly set the regular mode, the regular mode setting section is provided with the same number of operation sections as the mode switching operation sections, set in frequently used locations, and set to the regular mode at any time.
(発明が解決しようとする課題)
しかし、この従来技術では、常用モードを設定するため
に多数のスイッチ、または操作部を必要とし、コスト、
重量、大きさともに満足できるものではなかった。(Problems to be Solved by the Invention) However, this conventional technology requires a large number of switches or operation units to set the regular mode, resulting in high costs and
Both the weight and size were not satisfactory.
また、カメラ本体の操作部も変更することはできず、内
部の電装部を他の機種のカメラにも共通に利用するには
制約が多く、実現不可能であった。Furthermore, the operation section of the camera body cannot be changed, and there are many restrictions that make it impossible to use the internal electrical components in common with other camera models.
この発明は上述した事情に対処すべくなされたもので、
操作スイッチの機能をユーザが自由に定義することによ
り、外装、またはスイッチの機能のみを変え、内装、ま
たは電装部は異なる機種に共通に使用できるカメラを提
供することをその目的とする。This invention was made to deal with the above-mentioned circumstances,
The purpose is to provide a camera in which only the exterior or the function of the switch can be changed by allowing the user to freely define the function of the operation switch, and the interior or electrical parts can be commonly used for different models.
(課題を解決するための手段および作用)第1図に本発
明の概略を示す。複数の操作スイッチ1が設けられる。(Means and effects for solving the problems) FIG. 1 shows an outline of the present invention. A plurality of operation switches 1 are provided.
スイッチ定義手段3を用いて各操作スイッチ1毎の機能
を定義し、この定義内容を定義記憶手段4に記憶してお
く。この定義内容は各スイッチに対する切換設定可能な
モードの割り当てである。そして、操作スイッチ1が操
作されたことをスイッチ入力確認手段2で検知した時に
、カメラモード設定手段5は定義記憶手段4に記憶され
ている内容に従ってモードを順次切換え、カメラのモー
ドを設定する。The function of each operation switch 1 is defined using the switch definition means 3, and the contents of this definition are stored in the definition storage means 4. The content of this definition is the assignment of modes that can be switched to each switch. When the switch input confirmation means 2 detects that the operation switch 1 has been operated, the camera mode setting means 5 sequentially switches the modes according to the contents stored in the definition storage means 4 and sets the camera mode.
(実施例)
以下図面を参照してこの発明によるカメラの実施例を説
明する。(Example) An example of a camera according to the present invention will be described below with reference to the drawings.
第2図はそのブロック図である。マイクロコンピュータ
からなるCPUI 1はカメラ全体の動作を制御し、リ
セット回路13からのリセットにより動作開始される。FIG. 2 is a block diagram thereof. A CPUI 1 consisting of a microcomputer controls the operation of the entire camera, and is started by a reset from a reset circuit 13.
リセット回路13は電池挿入時、及びパワースイッチの
オン/オフ切換え時にリセットパルスを発生する。The reset circuit 13 generates a reset pulse when a battery is inserted and when a power switch is turned on/off.
E2−PROM15は駒数、カメラ状態データ(巻上げ
中、巻戻し中等)、異常データ(故障箇所)、調整デー
タ(シャッタ制御補正データ、オートフォーカス補正デ
ータ、バッテリチエツクデータ等の各カメラ毎のデータ
)を記憶している不揮発性メモリである。このため、交
換のために電池が一旦抜かれても、これらのデータは有
効である。また、E2−PROM15へのデータ書込み
中はリセット回路13からのリセットパルスの発生は禁
止されている。E2-PROM15 contains the number of frames, camera status data (winding, rewinding, etc.), abnormality data (failure location), adjustment data (data for each camera such as shutter control correction data, autofocus correction data, battery check data, etc.) It is a non-volatile memory that stores. Therefore, even if the battery is once removed for replacement, these data remain valid. Furthermore, generation of a reset pulse from the reset circuit 13 is prohibited while data is being written to the E2-PROM 15.
E2−FROMI 5を読出しモードにすると、まずD
XコードがDX端子16から入力され、シリアルライン
を介してCPUIIに入力される。When E2-FROMI 5 is set to read mode, first D
The X code is input from the DX terminal 16 and is input to the CPU II via the serial line.
つづいて、E2−PROMI 5のデータがCPUI
1に転送される。Next, the data of E2-PROMI 5 is
Transferred to 1.
AF回路(AFIC)17は、例えば位相差方式のセン
サであり、被写体までの距離データをCPUIIに供給
する。また、CPUIIは4pj光値が一定値以下の暗
い場合には、測距のための補助光を発生するためにAF
回路17の動作に合せて補助光ランプ18を点灯する。The AF circuit (AFIC) 17 is, for example, a phase difference type sensor, and supplies distance data to the subject to the CPU II. In addition, when the 4pj light value is below a certain value and it is dark, CPU II uses AF to generate auxiliary light for distance measurement.
The auxiliary light lamp 18 is turned on in accordance with the operation of the circuit 17.
E2−PROM15、EXT端子19、AF回路17は
CPUI 1の入出力ボートを有効利用するために、同
一のシリアルラインに接続され、CPUIIとデータの
やりとりをシリアル通信で行なう。The E2-PROM 15, the EXT terminal 19, and the AF circuit 17 are connected to the same serial line to effectively utilize the input/output port of the CPU 1, and exchange data with the CPU 1 through serial communication.
操作スイッチ群(SW)20はカメラの種々の操作スイ
ッチからなり、レリーズスイッチ、モト切換えスイッチ
等からなる。LED群21はファインダ内のLEDであ
り、ストロボ発光予告、合焦表示等のり、EDからなる
。LCD22はカメラの上面の外部表示パネルであり、
駒数、カメラモード等を表示する。The operation switch group (SW) 20 includes various operation switches of the camera, including a release switch, a moto changeover switch, and the like. The LED group 21 is an LED in the viewfinder, and includes a strobe light warning, a focus display, etc., and an ED. LCD22 is an external display panel on the top of the camera,
Displays the number of frames, camera mode, etc.
インターフェース(IFIC)23はモータドライバI
C28や測光ユニット24との信号の送受、LCD22
への電源の供給、ストロボ35に対するチャージ、及び
バッテリチエツク等を行なう。なお、第2図では電源は
図示を省略している。Interface (IFIC) 23 is motor driver I
Transmission and reception of signals with C28 and photometry unit 24, LCD 22
, charges the strobe 35 , and checks the battery. Note that the power supply is not shown in FIG. 2.
また、インターフェース23はCPUI 1からの命令
によりシャッタモータ(Ms)25、巻上げモータ(M
w)26、ズームモータ(Mz)27を選択するデコー
ド機能等も持ったインタフェースである。なお、デコー
ド機能は測光ユニット24での平均測光とスポット測光
との切換えも含む。これらのモータ25,26.27は
インターフェース23のデコード信号によりモータドラ
イバ28を介して駆動される。In addition, the interface 23 operates the shutter motor (Ms) 25 and the winding motor (Ms) according to the command from the CPUI 1.
This interface also has a decoding function for selecting the zoom motor (Mz) 26 and the zoom motor (Mz) 27. Note that the decoding function also includes switching between average photometry and spot photometry in the photometry unit 24. These motors 25, 26, and 27 are driven by a decoded signal from the interface 23 via a motor driver 28.
シャッタモータ25は正転時にオートフォーカスのため
のレンズ駆動をし、逆転時にシャッタ駆動する。ここで
は、シャッタはレンズシャッタが採用されているとする
。オートフォーカシングの際、CPUI 1はAF回路
17で求めた距離ブタとE2−PROM15の調整デー
タとの演算により求めた目標位置までモータ25を正転
し、フォーカシングレンズを駆動する。ここで、フォー
カシングレンズのリセット位置はスイッチ29のオン状
態で確認され、レンズ位置は、フォーカシングレンズの
単位移動量当り1パルス発生されるフォトインタラプタ
30のパルス数で確認される。The shutter motor 25 drives a lens for autofocus when rotating in the forward direction, and drives the shutter when rotating in the reverse direction. Here, it is assumed that a lens shutter is used as the shutter. During autofocusing, the CPU 1 rotates the motor 25 forward to the target position determined by calculating the distance value determined by the AF circuit 17 and the adjustment data in the E2-PROM 15, thereby driving the focusing lens. Here, the reset position of the focusing lens is confirmed by the ON state of the switch 29, and the lens position is confirmed by the number of pulses of the photointerrupter 30, which generates one pulse per unit movement amount of the focusing lens.
すなわち、CPU11はフォトインタラブタ30の出力
を参照してモータ25の正転、ブレーキ、オフの制御を
行ない、目標位置にフォーカシングレンズを停止させる
。That is, the CPU 11 controls the forward rotation, brake, and off of the motor 25 by referring to the output of the photointerrupter 30, and stops the focusing lens at the target position.
シャッタ制御時のモータ25のリセット位置はスイッチ
31のオン状態で確認され E 2PROM15の調整
データによりデユーティ駆動の比率を変化させることに
より一定開口波形が保たれるように制御される。The reset position of the motor 25 during shutter control is confirmed by the ON state of the switch 31, and is controlled so that a constant aperture waveform is maintained by changing the duty drive ratio based on the adjustment data of the E2PROM 15.
巻上げモータ26は正転時にフィルム巻上げを、逆転時
にフィルム巻戻しを行なう。フィルムの−駒巻上げ制御
はフォトインタラプタ32のパルス数をカウントするこ
とにより行われる。The winding motor 26 winds the film when rotating in the forward direction, and rewinds the film when rotating in the reverse direction. The frame winding control of the film is performed by counting the number of pulses of the photointerrupter 32.
フォトインクラブタ30,32はそれぞれシャッタモー
タ25、巻上げモータ26が選択された時のみオンとな
り、フォトインタラプタ30゜32の出力はI F I
C23を介してディジタル的にノイズを除去してCP
UIIに入力される。これは、フォトインクラブタ30
,32の出力を直接CPUIIに入力すると、ノイズに
よりカウント値に誤差が生じることがあるからである。The photointerrupters 30 and 32 are turned on only when the shutter motor 25 and winding motor 26 are selected, respectively, and the output of the photointerrupter 30 and 32 is I F I
Noise is digitally removed via C23 and CP
Input to UII. This is Photo Ink Rubber 30
, 32 directly to the CPU II, an error may occur in the count value due to noise.
ズームモータ(Mz)27はレンズをズーミングし、ズ
ーム位置はズームエンコーダ33により知ることができ
る。A zoom motor (Mz) 27 zooms the lens, and the zoom position can be known by a zoom encoder 33.
デートモジュール34は日付、時刻等のデータをフィル
ムに写し込むものである。ストロボ35もCPUI 1
に接続される。The date module 34 imprints data such as date and time onto the film. Strobe 35 also has CPUI 1
connected to.
第3図は操作スイッチ群20の詳細図である。FIG. 3 is a detailed diagram of the operation switch group 20.
スイッチ81はレリーズスイッチで、第ルリーズスイッ
チ811、第2レリーズスイツチ812からなる2段ス
イッチであり、第2レリーズスイツチ812は第ルリー
ズスイッチ811がオンした後にオンする構造である。The switch 81 is a release switch, and is a two-stage switch consisting of a first Lurys switch 811 and a second release switch 812, and the second release switch 812 is turned on after the first Lurys switch 811 is turned on.
スイッチ82,83.84はそれぞれ第1、第2、第3
モード切換スイツチである。第1、第2、第3モード切
換スイッチ82,83.84が後述するモード切換にお
けるどのモードを切換えるかを定義する対象となるスイ
ッチである。スイッチ85はモード切換スイッチ82〜
84を定義するときに必要なスイッチである。The switches 82, 83, and 84 are the first, second, and third switches, respectively.
This is a mode changeover switch. The first, second, and third mode changeover switches 82, 83, and 84 are switches that define which mode is to be changed in mode changeover described later. The switch 85 is the mode selector switch 82~
This switch is necessary when defining 84.
これらのスイッチはすべてCPUI 1内部でプルアッ
プされていて、オフのとき“Hルベル、オンのとき“L
″レベルなり、立下がりによりオン状態を検出できる。All of these switches are pulled up inside CPUI 1, and when off, the level is high, and when on, the level is low.
The on state can be detected by the fall of the level.
第4図にカメラの全モードを示す。各モードはCPUI
l内のRAM番地MRAMの各ビットに割り当てられ
ていて、MRAMの各ビットが“1#のときに、図示さ
れているモードとなる。全ビットが“0”の場合は、標
準モードである。Figure 4 shows all camera modes. Each mode is CPU
It is assigned to each bit of the RAM address MRAM in l, and when each bit of the MRAM is "1#", the mode shown is in the figure. When all the bits are "0", it is the standard mode.
第5図にスイッチ定義の一例を示す。FIG. 5 shows an example of switch definition.
CPUI 1のRAM番地MODEI、MODE2゜〜
10DE3がそれぞれ切換えスイッチ82,83゜84
を押した時に切換えることができるモードを定義してい
る。CPUI 1 RAM address MODEI, MODE2゜~
10DE3 are respective changeover switches 82, 83°84
Defines the modes that can be switched when you press .
第5図(a)に示すように、MODEIの内容はビット
0,1のみが”1′なので、スイッチ82を押すたびに
MRAM上のビット0,1を順次セット(−“1”)す
る。すなわち、スイッチ82は標準、ストロボオフ、ス
トロボオンモードを順次切換える。As shown in FIG. 5(a), only bits 0 and 1 of MODEI are "1", so each time the switch 82 is pressed, bits 0 and 1 on the MRAM are sequentially set (-"1"). That is, the switch 82 sequentially switches between standard, strobe off, and strobe on modes.
同様に、第5図(b)に示すように、スイッチ83を押
した場合にはビット2,3.4が切換わるため、標準、
オートズーム1、オートズーム2、無限遠撮影モードを
順次切換える。Similarly, as shown in FIG. 5(b), when the switch 83 is pressed, bits 2, 3.4 are switched, so the standard
Switch sequentially between auto zoom 1, auto zoom 2, and infinity shooting mode.
スイッチ84の場合も、第5図(c)に示すように、標
準、連写、2重露光、セルフタイマモードを順次切換え
る。In the case of the switch 84, as shown in FIG. 5(c), standard, continuous shooting, double exposure, and self-timer modes are sequentially switched.
次に、第6図乃至第11図のフローチャートを参照して
、この発明によるモード切換手順を詳しく説明する。Next, the mode switching procedure according to the present invention will be explained in detail with reference to the flowcharts of FIGS. 6 to 11.
第6図は操作スイッチ群20のいずれかのスイッチが押
された時に実行されるサブルーチン「スイッチ入力」の
フローチャートである。FIG. 6 is a flowchart of a subroutine "switch input" executed when any switch in the operation switch group 20 is pressed.
ステップ12でサブルーチンrE2−FROM読出し」
(第11図)を実行する。"Read subroutine rE2-FROM in step 12"
(Figure 11) is executed.
ステップ14でスイッチ811〜85の状態(レベル)
をCPUI l内に取り込む。ステップ16で41m5
待機した後、ステップ18でスイッチ811〜85の状
態を再度読取る。The state (level) of switches 811 to 85 in step 14
Import into CPUI. 41m5 at step 16
After waiting, the states of the switches 811 to 85 are read again in step 18.
ステップ20でこれらの2度の読取り結果を比較し、両
者が一致すれば次のステップ22に進み、一致しない場
合はスイッチのチャタリング中と判断し、ステップ16
に戻り4■S待機した後に、ステップ18で再度スイッ
チの状態を読取る。この4■Sはチャタリングを取除く
ための時間であって、4■Sでなくてもチャタリングを
取るのに充分な時間であれば値は問わない。In step 20, the results of these two readings are compared, and if they match, the process proceeds to the next step 22. If they do not match, it is determined that the switch is chattering, and the process proceeds to step 16.
After returning to step 4 and waiting for 4 seconds, the state of the switch is read again in step 18. This 4■S is a time for removing chattering, and the value does not matter even if it is not 4■S as long as it is sufficient time to remove chattering.
ステップ22でいずれかのスイッチ出力が立下がったか
否か、すなわちいずれかのスイッチがオンされたか否か
を判定する。立下がりが全くない場合は、スイッチ入力
はなかったとしてメインルーチンへ戻る。In step 22, it is determined whether any switch output has fallen, that is, whether any switch has been turned on. If there is no falling edge, it is assumed that there is no switch input and the process returns to the main routine.
立下りがあった場合は、ステップ24.28゜34.3
8.42でどのスイッチが押されたかを検出して、検出
結果に応じて以下の各処理を行なってからメインルーチ
ンへ戻る。If there is a fall, step 24.28゜34.3
At step 8.42, which switch has been pressed is detected, and the following processes are performed according to the detection result, and then the process returns to the main routine.
第ルリーズスイッチ811が押された場合は、ステップ
26でサブルーチン「レリーズ処理」(第8図(a)、
(b))を実行する。切換えスイッチ82,83.84
のいずれかが押された場合は、ステップ30,36.4
0でCPU内の変数MODEにそれぞれ1,2.3を設
定してから、ステップ32でサブルーチン「モード切換
」 (第7図(a)、(b))を実行する。定義用スイ
ッチ85が押された場合は、ステップ44でサブルーチ
ン「スイッチ定義」 (第9図)を行なう。If the release switch 811 is pressed, the subroutine "release processing" (FIG. 8(a),
Execute (b)). Changeover switch 82, 83.84
If either is pressed, step 30, 36.4
0, the variable MODE in the CPU is set to 1 and 2.3, respectively, and then, in step 32, the subroutine "mode switching" (FIGS. 7(a) and (b)) is executed. If the definition switch 85 is pressed, the subroutine "switch definition" (FIG. 9) is executed in step 44.
第7図(a)、(b)はサブルーチン「モード切換」の
フローチャートである。FIGS. 7(a) and 7(b) are flowcharts of the subroutine "mode switching".
ステップ50,54.58で変数MODEに設定されて
いる値を判定し、それに応じてステップ52.56.6
0でCPUIIのRAM番地MODEI、MODE2.
MODE3のいずれかの内容をCPU内の変数DEFに
設定する。変数MODEの値が1.2.3のいずれにも
該当しない場合は、ノイズとしてメインルーチンに戻る
。Determine the value set in the variable MODE in steps 50, 54.58 and step 52.56.6 accordingly.
0, CPU II RAM address MODEI, MODE2.
Set any of the contents of MODE3 to the variable DEF in the CPU. If the value of the variable MODE does not correspond to any of 1.2.3, it is treated as noise and the process returns to the main routine.
以下の処理では、変数DEFの各ビットの“0“、“1
”をLSB側から判定し、最初の“1′のビットと対応
したMRAMのビットをDEFのMSB側の次の1”の
ビットにシフトし、MRAMに1つも“1″がなかった
場合はDEFの最初の“1”のビットに対応したMRA
Mのビットに“1゛を設定する。すなわち、MODEl
などで定義されている“1°のビットの範囲のみMRA
Mの内容を順次変化させてモード設定(定義)を行なう
。In the following process, each bit of variable DEF is “0”, “1”
” is determined from the LSB side, and the MRAM bit corresponding to the first “1’ bit is shifted to the next 1” bit on the MSB side of DEF. If there is no “1” in the MRAM, the DEF MRA corresponding to the first “1” bit of
Set the bit of M to “1”. In other words, MODEL
MRA only for a 1° bit range, as defined in
Mode setting (definition) is performed by sequentially changing the contents of M.
ステップ62で変数Cyfを、ステップ64で変数B、
Ffをリセット(−“0”)する。変数CyfはMRA
Mの1mをシフトするためのキャリ、変数Bはビットを
指定するフラグ、変数FfはMRAMに1″を定義した
か否かを示すフラグであり定義したら“1”になる。Variable Cyf in step 62, variable B in step 64,
Reset Ff (-“0”). The variable Cyf is MRA
A carry is used to shift M by 1m. Variable B is a flag specifying a bit. Variable Ff is a flag indicating whether 1" is defined in the MRAM. If defined, it becomes "1".
ステップ66でCyfが“0“か“12かを判定する。In step 66, it is determined whether Cyf is "0" or "12".
Cyfが“1″の場合は、ステップ68でDEFのBビ
ットが“0”か“1”かを判定する。DEFのBビット
が“1にの場合は、ステップ70でFfが“0゛か“1
″かを判定する。If Cyf is "1", it is determined in step 68 whether the B bit of DEF is "0" or "1". If the B bit of DEF is “1”, in step 70 Ff is set to “0” or “1”.
”.
Ffが“0”の場合は、ステップ72でMRAMのBビ
ットに“1″を設定し、ステップ74でFfに“1′を
設定する。これは、誤って“1mを2重設定するのを防
止するためである。If Ff is "0", the B bit of the MRAM is set to "1" in step 72, and Ff is set to "1" in step 74. This is to prevent this.
ステップ70でFfが“1″の場合は、ステップ78で
MRAMのBビットにO”を設定する。If Ff is "1" in step 70, the B bit of the MRAM is set to "O" in step 78.
ステップ74、あるいはステップ78の次に、ステップ
76でCfyをリセットする。Following step 74 or step 78, Cfy is reset in step 76.
ステップ66でCyfが“0°の場合は、ステップ82
でDEFのBビットが“0″か“1”かを判定する。D
EFのBビットが1″の場合は、ステップ84でMRA
MのBビットが“0”か“1″かを判定する。MRAM
のBビットが“0″の場合は、ステップ86でCyfを
りをセットする。If Cyf is “0°” in step 66, step 82
It is determined whether the B bit of DEF is "0" or "1". D
If the B bit of EF is 1'', then in step 84 the MRA
Determine whether the B bit of M is "0" or "1". MRAM
If the B bit of is "0", Cyf is set in step 86.
ステップ84でMRAMのBビットが“1″の場合は、
ステップ88でMRAMのBビットに“0”を設定し、
ステップ90でCyfに“1”を設定する。If the B bit of MRAM is “1” in step 84,
In step 88, the B bit of MRAM is set to “0”,
At step 90, Cyf is set to "1".
ステップ76、あるいはステップ90の次に、ステップ
80でBを1だけ増加し、ステップ92でBが8以上か
否かを判定する。8以上でない場合はステップ66に戻
り、8以上の場合はステップ94でFfが“0”か“1
″かを判定する。After step 76 or step 90, B is incremented by 1 in step 80, and it is determined in step 92 whether B is 8 or more. If it is not 8 or more, the process returns to step 66, and if it is 8 or more, it is determined in step 94 that Ff is "0" or "1".
”.
Ffが“1″の場合はそのままメインルーチンに戻り、
Ffが“O″の場合はステップ96でCyfが“O”か
“1″かを判定する。Cyfが“1”ならばそのままメ
インルーチンに戻り、Cyfが“0”の場合はステップ
98でCyfに“1“を設定し、ステップ64に戻る。If Ff is “1”, return to the main routine,
If Ff is "O", it is determined in step 96 whether Cyf is "O" or "1". If Cyf is "1", the process returns directly to the main routine; if Cyf is "0", Cyf is set to "1" in step 98, and the process returns to step 64.
ステップ96でCyfが“0”の場合とは、MRAMの
DEFに対応するビットが全て“0゜であった場合であ
り、ステップ98でCyfに“1゛を設定しステップ6
4に戻ると、DEFの最もLSB側の“1″のビットの
MRAMに“1“がセットされる。The case where Cyf is “0” in step 96 means that all the bits corresponding to DEF of the MRAM are “0°”, and Cyf is set to “1” in step 98, and then in step 6
4, "1" is set in the MRAM of the "1" bit on the LSB side of DEF.
例えば、DEF+、:MODE2 ”00011100
″が設定された場合、MRAMの初期値がxxx010
xx’の時は、ステップ92においてB、cyf、Ff
、MRAMは表1のように変化する。For example, DEF+, :MODE2 ”00011100
” is set, the initial value of MRAM is xxx010
xx', in step 92 B, cyf, Ff
, MRAM changes as shown in Table 1.
表
MRAMの初期値が“xxxoooxx”の時は、ステ
ップ92においてB、cyt、Ff。When the initial value of the table MRAM is "xxxoooxx", in step 92 B, cyt, Ff.
MRAMは表2のように変化する。MRAM changes as shown in Table 2.
表
MRAMの初期値が“xxxlooxx”の時は、ステ
ップ92においてB、Cyf、Ff。When the initial value of the table MRAM is "xxxlooxx", in step 92 B, Cyf, Ff.
MRAMは表3のように変化する。MRAM changes as shown in Table 3.
表
第8図(a)、(b)はサブルーチン「レリーズ処理」
のフローチャートであり、MRAMの内容がどういう使
い方をされているかを示す一例である。このサブルーチ
ンは第ルリーズスイッチ811が押されると開始される
。Table 8 (a) and (b) show the subroutine “release processing”
This is a flowchart showing an example of how the contents of MRAM are used. This subroutine is started when the first Lurie switch 811 is pressed.
ステップ100でサブルーチン「測光」を行ない露出条
件を決める。At step 100, a subroutine "photometering" is performed to determine exposure conditions.
ステップ102でMRAMの4ビツトのデータに基づい
て無限遠撮影モードか否かを判定する。In step 102, it is determined whether or not the infinity photographing mode is set based on 4-bit data in the MRAM.
無限遠撮影モードの場合は、ステップ104でAFデー
タをQとし、無限遠撮影モードでない場合は、ステップ
106でサブルーチン「測距」を実行し、AFデータを
被写体までの距離とする。In the case of the infinity photography mode, the AF data is set to Q in step 104, and if it is not the infinity photography mode, the subroutine "distance measurement" is executed in step 106, and the AF data is set as the distance to the subject.
ステップ108,110でMRAMの2.3ビツトのデ
ータに基づいてオートズーム1.オートズーム2モード
か否かを判定する。オートズーム1モードの場合は、ス
テップ112で比率を1(胸像)とし、オートズーム2
モードの場合は、ステップ114で比率を2(全身像)
とする。ステップ116,118で上記比率が得られる
ようにズーミングする。At steps 108 and 110, auto zoom 1. Determine whether auto zoom 2 mode is selected. In the case of auto zoom 1 mode, the ratio is set to 1 (bust) in step 112, and auto zoom 2 mode is selected.
mode, set the ratio to 2 (full body image) in step 114.
shall be. In steps 116 and 118, zooming is performed to obtain the above ratio.
ステップ120,122でレリーズスイッチ81の状態
を判定する。第ルリーズスイッチ811がオフの場合は
、撮影中断と判断してメインルーチンに戻る。レリーズ
スイッチ811゜812がともにオンしている場合は撮
影を開始する。In steps 120 and 122, the state of the release switch 81 is determined. If the Lurie's switch 811 is off, it is determined that photography is interrupted and the process returns to the main routine. When the release switches 811 and 812 are both on, photographing starts.
ステップ124でVRAMの7ビツトのデータに基づい
てセルフタイマモードか否かを判定する。In step 124, it is determined whether the self-timer mode is selected based on the 7-bit data in the VRAM.
セルフタイマモードの場合はステップ126で12se
c待機する。In the case of self-timer mode, 12se is set in step 126.
cWait.
ステップ128でAFデータに基づいてサブルーチン「
レンズ繰出し」を実行し、ステップ130でサブルーチ
ン「シャッタ」、すなわち露出を行なう。VRAMの中
の0,1ビツトのストロボオフ、ストロボオンモードは
このサブルーチン「シャッタj内の処理で参照され、ス
トロボの発光、非発光を決定する。In step 128, based on the AF data, the subroutine "
At step 130, the subroutine "shutter", that is, exposure is performed. The strobe off and strobe on modes of bits 0 and 1 in the VRAM are referenced in the processing in this subroutine "shutter j" to determine whether the strobe should emit light or not.
ステップ132でMRAMの6ビツトのデータに基づい
て2重露光モードか否かを判定する。In step 132, it is determined whether or not the double exposure mode is on based on the 6-bit data of the MRAM.
2重露光モードでない場合はステップ134でサブルー
チン「巻上げ」を実行し、ステップ140へ進む。2重
露光モードの場合、1枚目の撮影後はステップ134の
サブルーチン「巻上げ」を実行せずにステップ140へ
進み、2枚目の撮影後はステップ138で2重露光モー
ドを解除してからステップ134のサブルーチン「巻上
げ」を実行する。If it is not the double exposure mode, a subroutine "winding" is executed in step 134, and the process proceeds to step 140. In the case of double exposure mode, after taking the first picture, the process proceeds to step 140 without executing the subroutine "winding" in step 134, and after taking the second picture, the double exposure mode is canceled in step 138, and then the process proceeds to step 140. The subroutine "winding" in step 134 is executed.
ステップ140ではMRAMの5ビツトのデータに基づ
いて連写モードか否かを判定する。速写モードの場合は
ステップ120に戻りレリーズスイッチ81の状態を判
定し、第2レリーズスイツチ812がオフになるまで速
写を続ける。In step 140, it is determined whether or not continuous shooting mode is selected based on 5-bit data in the MRAM. In the case of the snapshot mode, the process returns to step 120, the state of the release switch 81 is determined, and the snapshot is continued until the second release switch 812 is turned off.
速写モードでない場合はメインルーチンに戻る。If it is not the snapshot mode, the process returns to the main routine.
以上説明したように、全てのモード判断はRAM番地M
RAMの各ビットのデータを参照することにより実現さ
れる。As explained above, all mode decisions are made at RAM address M.
This is realized by referring to data in each bit of RAM.
第9図はサブルーチン「スイッチ定義」のフローチャー
トである。FIG. 9 is a flowchart of the subroutine "switch definition".
ステップ150で定義用の変数DEFをリセットし、ス
テップ152で定義用のビット変数Bに=1を設定する
。In step 150, the definition variable DEF is reset, and in step 152, the definition bit variable B is set to 1.
次に、スイッチ入力の場合と同様に、ステップ154〜
160でチャタリングを除いてスイッチ状態の入力を行
なう。なお、スイッチ85がオフの場合は定義の中断と
判断してメインルーチンに戻る。Next, as in the case of switch input, steps 154 to
At 160, the switch state is inputted excluding chattering. Note that if the switch 85 is off, it is determined that the definition has been interrupted and the process returns to the main routine.
ステップ166で第ルリーズスイッチ811の状態を判
定し、オンするたびにステップ168゜170でBを7
になるまで1づつ増加する。第2レリーズスイツチ81
2もオンすると、ステップ174で現在のBの値のDE
Fのビットに“1”を定義する。これを繰返すことによ
り、DEFの全ビットの定義を行なう。In step 166, the state of the Lullies switch 811 is determined, and each time it is turned on, B is set to 7 in steps 168 and 170.
Increase by 1 until . 2nd release switch 81
2 is also turned on, the DE of the current value of B is set in step 174.
Define “1” for the bit of F. By repeating this, all bits of DEF are defined.
全ビットの定義終了後に、ステップ178゜184.1
88で切換えスイッチ82,83゜84のいづれかを押
すと、今定義されたDEFの値をステップ180,18
6,190で各スイッチ用の定義RAM (MODEL
、MODE2゜MODE2)に設定した後、ステップ1
82でサブルーチン「E2−PROM書込み」を実行し
、スイッチの定義状態をE2−FROMに記憶する。After defining all bits, step 178゜184.1
When any of the changeover switches 82, 83 and 84 is pressed at step 88, the value of DEF that has just been defined is changed to steps 180 and 18.
Definition RAM for each switch (MODEL
, MODE2゜MODE2), step 1
At step 82, the subroutine "E2-PROM write" is executed to store the defined state of the switch in E2-FROM.
この後、メインルーチンに戻る。After this, return to the main routine.
ここで、定義用のスイッチ85はスイッチではなく、治
具を取りつけた時にショートする様な構造のものでも全
くさしつかえないことは言うまでもない。Here, it goes without saying that the definition switch 85 is not a switch, and may have a structure that causes a short circuit when the jig is attached.
第10図はサブルーチンrE2−FROM書込み」、第
11図はサブルーチンrE2−FROM読出し」のフロ
ーチャートである。サブルーチンrE2−FROM読出
し」はパワースイッチのオン時に実行され、E2−FR
OMの内容をCPUのRAM内に移すものである。FIG. 10 is a flowchart of the subroutine rE2-FROM write, and FIG. 11 is a flowchart of the subroutine rE2-FROM read. The subroutine rE2-FROM read is executed when the power switch is turned on, and the E2-FR
It moves the contents of OM into the RAM of the CPU.
rE:+−FROM書込み」において、ステップ200
でRAM番地MODEI、MODE2゜MODE3の内
容をシリアルでE2−FROMに転送し、ステップ20
2でE2−PROMに書込み信号を供給し、ステップ2
04で一定時間待機した後、ステップ206で書込み信
号の発生を停止するO
rE2−PROM読出し」においては、ステップ210
でE2−PROMの内容をシリアルで読出し、RAM番
地MODEI、MODE2゜MODE3にセットする。rE: +-FROM write, step 200
Transfer the contents of RAM address MODEI, MODE2゜MODE3 serially to E2-FROM in step 20.
2, supply a write signal to the E2-PROM, and step 2
After waiting for a certain period of time in step 04, the generation of the write signal is stopped in step 206.
The contents of the E2-PROM are serially read out and set to RAM addresses MODEI, MODE2 and MODE3.
この発明は種々変形可能であり、切換えスイッチ82,
83.84は3つ全部設ける必要はなく、例えば切換え
スイッチ82しかなくてもよい。第12図にそのような
カメラにおけるスイッチ82の定義用のRAMを示す。This invention can be modified in various ways, and the changeover switch 82,
It is not necessary to provide all three of the switches 83 and 84; for example, only the changeover switch 82 may be provided. FIG. 12 shows a RAM for defining the switch 82 in such a camera.
この場合はスイッチ82を押すたびに、標準、オートズ
ーム1、セルフタイマモードのみが順次切換わる。In this case, each time the switch 82 is pressed, only the standard, auto zoom 1, and self-timer modes are sequentially switched.
また、E2−PROMはCPU内蔵型でももちろん良く
、又E2−FROMにスイッチ定義の内容を書込む手段
としてはEXT端子7を使用してE2−FROMに直接
書込む手段を採用しても良いことはいうまでもない。Furthermore, the E2-PROM may of course be of the type with a built-in CPU, and the means for writing the switch definition contents to the E2-FROM may also be a means of writing directly to the E2-FROM using the EXT terminal 7. Needless to say.
(発明の効果)
この発明によ・れば、モード切換えスイッチの定義を自
由に変えられるので数種類のカメラに同じCPUで対応
でき、コストの削減が可能である。(Effects of the Invention) According to the present invention, since the definition of the mode changeover switch can be freely changed, several types of cameras can be handled by the same CPU, and costs can be reduced.
また、ユーザがよく使うモードのみを任意のスイッチに
定義することができ、ユーザ毎に最も操作性のよいカメ
ラを提供できる。Furthermore, only the modes frequently used by the user can be defined for any switch, and the camera with the best operability can be provided for each user.
第1図はこの発明によるカメラの概略を示すブロック図
、第2図はこの発明の一実施例のブロック図、第3図は
操作スイッチ群の詳細図、第4図は全モードを説明する
図、第5図(a)、(b)。
(c)はモード定義用のRAMを説明する図、第6図乃
至第11図は実施例の動作を示すフローチャート、第1
2図は変形例を示す図である。
1・・・操作スイッチ、2・・・スイッチ入力確認手段
、3・・・スイッチ定義手段、4・・・定義記憶手段、
5・・カメラモード設定手段。
第1図Fig. 1 is a block diagram schematically showing a camera according to the present invention, Fig. 2 is a block diagram of an embodiment of the invention, Fig. 3 is a detailed view of a group of operation switches, and Fig. 4 is a diagram explaining all modes. , FIG. 5(a),(b). (c) is a diagram explaining the RAM for mode definition; FIGS. 6 to 11 are flowcharts showing the operation of the embodiment;
FIG. 2 is a diagram showing a modified example. DESCRIPTION OF SYMBOLS 1... Operation switch, 2... Switch input confirmation means, 3... Switch definition means, 4... Definition storage means,
5. Camera mode setting means. Figure 1
Claims (1)
換える複数のスイッチと、前記スイッチが操作されたこ
とを検出する確認手段と、前記スイッチ毎にカメラモー
ドの中のどのモードを切換えるかを定義する手段と、前
記スイッチ毎に定義されたモードを記憶する手段と、前
記確認手段がスイッチの操作を検出した時に前記記憶手
段の記憶内容に従ってカメラモードを切り換えるモード
設定手段を具備するカメラ。In a camera capable of setting a plurality of modes, a plurality of switches for switching modes, a confirmation means for detecting that the switches are operated, and a means for defining which camera mode to switch to for each switch. A camera comprising: means for storing a mode defined for each switch; and mode setting means for switching the camera mode according to the stored contents of the storage means when the confirmation means detects an operation of the switch.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63198259A JP2888345B2 (en) | 1988-08-09 | 1988-08-09 | camera |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63198259A JP2888345B2 (en) | 1988-08-09 | 1988-08-09 | camera |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JPH0247638A true JPH0247638A (en) | 1990-02-16 |
| JPH0247638A5 JPH0247638A5 (en) | 1996-08-30 |
| JP2888345B2 JP2888345B2 (en) | 1999-05-10 |
Family
ID=16388154
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63198259A Expired - Lifetime JP2888345B2 (en) | 1988-08-09 | 1988-08-09 | camera |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2888345B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5678082A (en) * | 1994-12-09 | 1997-10-14 | Olympus Optical Co., Ltd. | Electrical system apparatus including one-chip microcomputer |
-
1988
- 1988-08-09 JP JP63198259A patent/JP2888345B2/en not_active Expired - Lifetime
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5678082A (en) * | 1994-12-09 | 1997-10-14 | Olympus Optical Co., Ltd. | Electrical system apparatus including one-chip microcomputer |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2888345B2 (en) | 1999-05-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5343267A (en) | Camera | |
| JPH03237413A (en) | Electric focal distance changing device | |
| JPH03202821A (en) | Camera | |
| JP2608589B2 (en) | camera | |
| JPH02294606A (en) | Cameras with power zoom function, interchangeable lenses, and interchangeable lenses with power zoom function | |
| US6819357B1 (en) | Camera having a zoom lens | |
| JP2888345B2 (en) | camera | |
| US6151451A (en) | Display illuminating apparatus for use in camera | |
| JP3360859B2 (en) | camera | |
| US5278603A (en) | Camera | |
| JP4827526B2 (en) | Optical equipment | |
| JPH05288977A (en) | Camera with electronic zoom lens with built-in electronic flash | |
| JP2749286B2 (en) | Auto focus camera | |
| JP3015057B2 (en) | camera | |
| JPH10186217A (en) | camera | |
| JP3279380B2 (en) | Camera communication system | |
| JPH08292475A (en) | camera | |
| JP2000075385A (en) | Interchangeable photographing lens, camera body and camera system using these | |
| JP2635008B2 (en) | Camera with strobe device | |
| JP3352143B2 (en) | Auto focus camera | |
| JPH02201335A (en) | Camera with automatic zooming mechanism | |
| JPH08220589A (en) | Camera that can release the film sensitivity | |
| JPH086146A (en) | Trimmable camera | |
| JPH0784298A (en) | camera | |
| JP2002090844A (en) | camera |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090219 Year of fee payment: 10 |
|
| EXPY | Cancellation because of completion of term | ||
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090219 Year of fee payment: 10 |