JPH04361312A - Camera - Google Patents

Camera

Info

Publication number
JPH04361312A
JPH04361312A JP3136528A JP13652891A JPH04361312A JP H04361312 A JPH04361312 A JP H04361312A JP 3136528 A JP3136528 A JP 3136528A JP 13652891 A JP13652891 A JP 13652891A JP H04361312 A JPH04361312 A JP H04361312A
Authority
JP
Japan
Prior art keywords
terminal
level
input
data
state
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
Application number
JP3136528A
Other languages
Japanese (ja)
Inventor
Hidetoshi Masuda
増田 英歳
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 JP3136528A priority Critical patent/JPH04361312A/en
Publication of JPH04361312A publication Critical patent/JPH04361312A/en
Pending legal-status Critical Current

Links

Landscapes

  • Exposure Control For Cameras (AREA)
  • Camera Bodies And Camera Details Or Accessories (AREA)

Abstract

PURPOSE:To eliminate a terminal exclusive for reset connecting a tool in the case of adjustment such as reloading data by executing an initializing processing program when the level of a certain terminal is changed from a certain level to a specified level within prescribed time. CONSTITUTION:A microcomputer 1 is provided to output a specified level signal from the input/output terminal of data in the case of no communication. The microcomputer 1 detects the input state of an input circuit 2 according to an initial state due to the turning-on of a power source, drives an output circuit 3 corresponding to the input state and controls the camera. A terminal group 6 is provided for adjustment or the like in the case of writing a parameter in an EEPROM 5. First of all, the state of a terminal 20 is detected and when the level is high, a device such as the EEPROM 5 is selected through a chip selecting line 10 or the like. Then, the data are inputted and after the data is inputted, the device selection is canceled. On the other hand, when the state of the terminal 20 is not at the high level, a timer is started and initialization is executed after the terminal is turned to the high level.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はカメラ等に用いられるマ
イクロコンピューターへのデーター処理装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device for a microcomputer used in a camera or the like.

【0002】0002

【従来の技術】従来マイクロコンピューター制御は入力
ポートに接続された並列入力のスイッチの状態を検知し
、該スイッチ状態に応じて所定のプログラムに従った行
為を行う様にしている。又、リセット等についても同様
のスイッチや同スイッチの長時間押下によりリセットす
る様になされている。又、上記マイクロコンピューター
に対して工場等で工具を用いてマイクロコンピューター
に対してデーターの書き換え等の調整を行なう場合工具
をマイクロコンピューターに接続し処理を行なっている
。又、この工具を用いてマイクロコンピューターをリセ
ットされる場合にはリセット専用の入力端子をマイクロ
コンピューターに設けていた。
2. Description of the Related Art Conventionally, microcomputer control detects the state of a parallel input switch connected to an input port, and performs an action according to a predetermined program depending on the switch state. Further, the reset etc. can be performed by using a similar switch or pressing the same switch for a long time. Furthermore, when adjustments such as rewriting data are made to the microcomputer using a tool in a factory or the like, the tool is connected to the microcomputer to perform the processing. Furthermore, when the microcomputer is reset using this tool, the microcomputer is provided with an input terminal exclusively for reset.

【0003】0003

【発明が解決しようとする課題】上記の如く従来装置で
は工具を用いてリセットするためにはリセット専用端子
を附加しなければならない問題があり、本発明は、この
問題を解消することを目的とする。
[Problems to be Solved by the Invention] As mentioned above, in the conventional device, there is a problem that a dedicated reset terminal must be added in order to reset using a tool, and the present invention aims to solve this problem. do.

【0004】0004

【課題を解決するための手段】本発明では、マイクロコ
ンピューターデーター端子の状態を判定することでデー
ター端子が所定の状態にある時にはリセット動作等の処
理を実行する様に構成したものである。この構成にて工
具を上記端子に接続して、工具から上記端子に上記の所
定状態の信号を伝える様にすることで、リセット動作等
の処理をリセット専用端子を設けることなく実行するこ
とが出来る。
SUMMARY OF THE INVENTION In the present invention, the state of a microcomputer data terminal is determined, and when the data terminal is in a predetermined state, processing such as a reset operation is executed. With this configuration, by connecting the tool to the terminal and transmitting the signal of the predetermined state from the tool to the terminal, processes such as reset operations can be performed without providing a dedicated reset terminal. .

【0005】[0005]

【実施例】図1は本発明に係るデーター読み込み装置を
有するカメラの全体図である。1はマイクロコンピュー
ター(以下Mcomと称す)でワン・チップ構成のもの
を示してあり、内部にALU,ROM,RAM,SEQ
UENCERを有する。該Mcomは電源投入による初
期状態から入力回路2の入力状態を検知し、入力状態に
応じ、出力回路3を駆動しカメラの制御を行うものであ
る。該Mcomは入力回路2からの入力状態に変化が無
い時には、自身でクロックを低周波数に切り換える等の
ホールド処理により、消費電力を抑える機能を有してい
る。4は直列入出力回路、5はメモリーとしてのEEP
ROMを示す。6の端子群はカメラの状態出力をモニタ
ーしてカメラの状態を知ったり、EEPROMにパラメ
ータを書き込む時に用いる調整用の端子群である。この
端子群に対してカメラの外部の工具等を接続することで
EEPROMへのデーター書き込み処理が工場等で行な
われる。7は直列入出力の為の同期用クロックライン、
8はμcom側から見た直列入力ライン、9はμcom
側から見た直列出力ライン、10はEEPROMを選択
するチップセレクトライン、11は直列入出力回路4を
選択するチップ・セレクトラインを示している。図2は
μcom1の直列入出力端子の内部図である。μcom
1は直列入出力端子30を並列的に入出力する為及び開
放時の入力端子保護の為に図の様に21のプルアップ抵
抗でハイにプルアップされている。22は入力バッファ
ー、24はライン23への信号により出力可能となる出
力バッファーである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is an overall view of a camera having a data reading device according to the present invention. 1 is a microcomputer (hereinafter referred to as Mcom) with a one-chip configuration, and internally includes ALU, ROM, RAM, and SEQ.
It has UENCER. The Mcom detects the input state of the input circuit 2 from the initial state when the power is turned on, and controls the camera by driving the output circuit 3 according to the input state. The Mcom has a function of suppressing power consumption by performing hold processing such as switching the clock to a low frequency by itself when there is no change in the input state from the input circuit 2. 4 is a serial input/output circuit, 5 is an EEP as a memory
Indicates ROM. The terminal group 6 is an adjustment terminal group used for monitoring the camera status output to know the camera status and writing parameters to the EEPROM. Data writing processing to the EEPROM is performed at a factory or the like by connecting a tool or the like external to the camera to this group of terminals. 7 is a synchronization clock line for serial input/output,
8 is the serial input line seen from the μcom side, 9 is the μcom
The serial output line seen from the side, 10 is a chip select line for selecting the EEPROM, and 11 is a chip select line for selecting the serial input/output circuit 4. FIG. 2 is an internal diagram of the serial input/output terminal of μcom1. μcom
1 is pulled up to high level by a pull-up resistor 21 as shown in the figure in order to input/output the series input/output terminal 30 in parallel and to protect the input terminal when it is open. 22 is an input buffer, and 24 is an output buffer that can be output by a signal to line 23.

【0006】次いで、図3、図4を用いて動作を説明す
る。
Next, the operation will be explained using FIGS. 3 and 4.

【0007】図3のフローは直列入力プログラムを示す
。このプログラムではまず、ステップ1にて端子20の
状態を検知する。この端子20の状態がハイの時はステ
ップ2にてチップセレクトラインを介してEEPROM
5等のディバイスを選択する。次いでステップ3にて選
択されたディバイスのデーターを入力し、データー入力
後ステップ4でディバイス選択を解除しリターンする。 一方、ステップ1の実行時に端子20の状態がハイでな
い場合は図4のフローを実行する。図4のフローではス
テップ5にてタイマーをスタートさせ、ステップ6で上
記端子の状態を判定し、端子がハイでない時はステップ
7にてタイマー時間が経過したか否か判定し、タイマー
時間が経過していなければステップ6に戻る。このタイ
マー時間内に端子がハイとなるとステップ8,9にて初
期化プログラムを実行させる。
The flow of FIG. 3 shows a serial input program. In this program, first, in step 1, the state of the terminal 20 is detected. When the state of this terminal 20 is high, the EEPROM is selected via the chip select line in step 2.
Select the 5th grade device. Next, in step 3, the data of the selected device is input, and after inputting the data, the device selection is canceled in step 4, and the process returns. On the other hand, if the state of the terminal 20 is not high when step 1 is executed, the flow of FIG. 4 is executed. In the flow of FIG. 4, the timer is started in step 5, the state of the above-mentioned terminal is determined in step 6, and if the terminal is not high, it is determined in step 7 whether or not the timer time has elapsed, and the timer time has elapsed. If not, return to step 6. If the terminal becomes high within this timer time, the initialization program is executed in steps 8 and 9.

【0008】一方、上記タイマー時間が経過しても端子
がハイとならない場合はステップ10,11にてスリー
ププログラムを実行する。
On the other hand, if the terminal does not become high even after the timer time elapses, a sleep program is executed in steps 10 and 11.

【0009】前述の如く端子20はプルアップされてい
るのでハイとなっており、この端子がハイでない場合は
短絡等の端子異常となる。従って、図3の入力プログラ
ムに際して端子ハイの場合は通常のデーター入力処理が
行なわれる。一方、端子異常時は図4の処理にてスリー
プ処理がなされる。このスリープ処理としては一切の行
為を中断する。
As described above, the terminal 20 is pulled up and is therefore high, and if this terminal is not high, a terminal abnormality such as a short circuit will occur. Therefore, when the terminal is high in the input program shown in FIG. 3, normal data input processing is performed. On the other hand, when a terminal is abnormal, a sleep process is performed in the process shown in FIG. This sleep processing suspends all activities.

【0010】一方、端子が所定時間内にハイに戻った場
合は人為的な処理が行なわれた状態であると判定し初期
プログラムを実行する。
On the other hand, if the terminal returns to high within a predetermined time, it is determined that artificial processing has been performed, and the initial program is executed.

【0011】従って、例えば工具を用いてEEPROM
のデーターを書き換えた場合、工具により上記端子を強
制的に所定時間ロウとすることで上記初期化プログラム
が実行される。この初期化プログラムとしては書き換え
たデーターをμcom1に読み込ませる為の動作処理が
行なわれる。
Therefore, for example, using a tool, EEPROM
When the data is rewritten, the initialization program is executed by forcing the terminal to be low for a predetermined period of time using a tool. This initialization program performs operation processing for causing μcom1 to read the rewritten data.

【0012】図5は本発明をデーター出力プログラムに
採用した例を示すフローである。このフローでは図3の
入力プログラムと同一にデーター出力処理前は端子をチ
ェックが行なわれるものであり、上記入力プログラムと
同様に端子状態の異常が検知された際にデーター出力処
理とは異なる処理がなされるものである。
FIG. 5 is a flowchart showing an example in which the present invention is applied to a data output program. In this flow, the same as the input program in Figure 3, the terminal is checked before data output processing, and similarly to the input program above, when an abnormality in the terminal status is detected, processing different from the data output processing is performed. It is what is done.

【0013】[0013]

【発明の効果】以上の如くデーターの出入力処理に際し
て端子チェックを行ないチェック結果として端子の異常
が検知された時に所定の処理へ移行させることが出来る
ので、データーラインそのものを利用して上記の如く初
期化処理等を容易に行なうことが出来るものである。
[Effects of the Invention] As described above, when a terminal check is performed during data input/output processing, and an abnormality in the terminal is detected as a result of the check, it is possible to proceed to a predetermined processing. Initialization processing and the like can be easily performed.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明に係るカメラの一実施例を示すブロック
図である。
FIG. 1 is a block diagram showing an embodiment of a camera according to the present invention.

【図2】図1に示したマイクロコンピューターの入力端
子の内部構成を示す回路図である。
FIG. 2 is a circuit diagram showing the internal configuration of an input terminal of the microcomputer shown in FIG. 1;

【図3】本発明の動作を説明するためのフローチャート
を示す説明図である。
FIG. 3 is an explanatory diagram showing a flowchart for explaining the operation of the present invention.

【図4】図3とともに本発明の動作を説明するためのフ
ローチャートを示す説明図である。
FIG. 4 is an explanatory diagram showing a flowchart for explaining the operation of the present invention together with FIG. 3;

【図5】本発明の他の動作例を説明するためのフローチ
ャートを示す説明図である。
FIG. 5 is an explanatory diagram showing a flowchart for explaining another example of operation of the present invention.

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

1  マイクロコンピューター 5  EEPROM 1. Microcomputer 5 EEPROM

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  非通信時において、データーの入出力
端子から特定レベル信号を出力するコンピューターを備
えたカメラにおいて、前記端子と接続するデバイスとの
通信に際し、前記端子のレベルを検知して該レベルが、
所定時間以内に前記特定レベル以外のレベルから前記特
定レベルへ移行したか否かを判定する判定手段を設け、
該判定手段にて該レベルが、所定時間以内に前記特定レ
ベル以外のレベルから前記特定レベルへ移行したと判定
された時、初期化処理プログラムを実行することを特徴
とするカメラ。
1. A camera equipped with a computer that outputs a specific level signal from a data input/output terminal when not communicating, detects the level of the terminal and outputs the level when communicating with a device connected to the terminal. but,
Providing a determination means for determining whether or not a level other than the specific level has transitioned to the specific level within a predetermined time,
A camera characterized in that when the determination means determines that the level has transitioned from a level other than the specific level to the specific level within a predetermined time, an initialization processing program is executed.
JP3136528A 1991-06-07 1991-06-07 Camera Pending JPH04361312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3136528A JPH04361312A (en) 1991-06-07 1991-06-07 Camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3136528A JPH04361312A (en) 1991-06-07 1991-06-07 Camera

Publications (1)

Publication Number Publication Date
JPH04361312A true JPH04361312A (en) 1992-12-14

Family

ID=15177296

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3136528A Pending JPH04361312A (en) 1991-06-07 1991-06-07 Camera

Country Status (1)

Country Link
JP (1) JPH04361312A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100565178B1 (en) * 1998-09-22 2006-06-21 엘지전자 주식회사 How to adjust the camera's parameter value in the USAB camera production line

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100565178B1 (en) * 1998-09-22 2006-06-21 엘지전자 주식회사 How to adjust the camera's parameter value in the USAB camera production line

Similar Documents

Publication Publication Date Title
EP0569131B1 (en) IC card
US4716521A (en) Microcomputer
JP2002243875A (en) Terminal device and method of controlling real-time clock
US6256226B1 (en) Eeprom write device
JP2743850B2 (en) Data processing device
JPH04361312A (en) Camera
US4961191A (en) Test circuit for logic circuits
CN112307697B (en) FPGA logic reload circuit
JPS603747A (en) Program selecting control system
US6320927B1 (en) Electronic counter
JP2508305B2 (en) Initial value determination device
KR0179750B1 (en) Restart method of plc
US5749004A (en) Option setting device and method of operating same for use with a camera
JPH07168740A (en) Watchdog method
JPH10283172A (en) Flash rom data rewrite system
JPH0760669A (en) Operation system for industrial machine
JPH0855079A (en) Iic external control circuit
JP2001203324A (en) Integrated circuit and method for controlling its operation
JP2767794B2 (en) Microcomputer
JP2000020498A (en) Microcomputer and its restoring method
JP2001325243A (en) Microcomputer device
JP2001356926A (en) Controller
JP2003296296A (en) Microcontroller
JPH06148286A (en) Circuit board device
JPH0651826A (en) Teaching device for robot