JP2008017659A - Stepping motor drive device and stepping motor drive method and program thereof - Google Patents

Stepping motor drive device and stepping motor drive method and program thereof Download PDF

Info

Publication number
JP2008017659A
JP2008017659A JP2006188244A JP2006188244A JP2008017659A JP 2008017659 A JP2008017659 A JP 2008017659A JP 2006188244 A JP2006188244 A JP 2006188244A JP 2006188244 A JP2006188244 A JP 2006188244A JP 2008017659 A JP2008017659 A JP 2008017659A
Authority
JP
Japan
Prior art keywords
stepping motor
drive
frequency
pulse
motor driving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2006188244A
Other languages
Japanese (ja)
Other versions
JP4886399B2 (en
JP2008017659A5 (en
Inventor
Kunihiko Koga
邦彦 古賀
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 JP2006188244A priority Critical patent/JP4886399B2/en
Publication of JP2008017659A publication Critical patent/JP2008017659A/en
Publication of JP2008017659A5 publication Critical patent/JP2008017659A5/ja
Application granted granted Critical
Publication of JP4886399B2 publication Critical patent/JP4886399B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent a focusing time from being prolonged in autofocus control using a focus lens driven by a stepping motor of a microstep driving system. <P>SOLUTION: First and second frequency generators 202, 204 count fundamental clocks to generate first and second pulse signals having first and second driving frequencies f1, f2. Upon receiving the pulse signals, a driving frequency averaging section 206 repeatedly outputs first pulse signals equivalent to the number of first pulses, and subsequently outputs the second pulse signals equivalent to the number of second pulses to output the pulse signals as driving pulses. Then a driving section 102 drives the stepping motor by using the driving pulses. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、ステッピングモータ駆動装置、ステッピングモータ駆動方法、及びプログラムに関し、特に、基本クロックを所定数カウントすることにより所定の周波数をもつパルス信号を生成して、該パルス信号を用いてステッピングモータを駆動するステッピングモータ駆動装置、該ステッピングモータ駆動装置に適用されるステッピングモータ駆動方法、及び該ステッピングモータ駆動方法をコンピュータに実行させるためのプログラムに関する。   The present invention relates to a stepping motor driving device, a stepping motor driving method, and a program, and in particular, generates a pulse signal having a predetermined frequency by counting a predetermined number of basic clocks, and uses the pulse signal to configure a stepping motor. The present invention relates to a driving stepping motor driving device, a stepping motor driving method applied to the stepping motor driving device, and a program for causing a computer to execute the stepping motor driving method.

従来、ステッピングモータを駆動するためのパルス信号の駆動周波数は、基本クロックを所定の数だけカウントすることによって所定の周期を得、この所定の周期に基づき決定するという構成が一般的に知られている。   Conventionally, it is generally known that the driving frequency of a pulse signal for driving a stepping motor is determined based on a predetermined cycle by obtaining a predetermined cycle by counting a predetermined number of basic clocks. Yes.

ところで、図12に示すように、例えば、基本クロックをカウント数Cnt1だけカウントすることによって駆動周波数f1を生成し、また、基本クロックをカウント数(Cnt1+1)だけカウントすることによって駆動周波数f2を生成するとする。この場合、駆動周波数f1と駆動周波数f2との間の駆動周波数を生成することはできない。つまり、基本クロックの周期よりも細かい刻みの周期をもつ駆動周波数を生成することはできない。そのため、基本クロックをカウントして得られる駆動周波数の分解能は、基本クロックの周波数に依存してしまい、所望の駆動周波数をもつパルス信号を得ることができないということが往々にして生じていた。   By the way, as shown in FIG. 12, for example, the drive frequency f1 is generated by counting the basic clock by the count number Cnt1, and the drive frequency f2 is generated by counting the basic clock by the count number (Cnt1 + 1). To do. In this case, a driving frequency between the driving frequency f1 and the driving frequency f2 cannot be generated. That is, it is not possible to generate a drive frequency having a finer period than the basic clock period. Therefore, the resolution of the driving frequency obtained by counting the basic clock depends on the frequency of the basic clock, and it often occurs that a pulse signal having a desired driving frequency cannot be obtained.

特に、高い駆動周波数のパルス信号を用いてステッピングモータの動作を細かく制御しようとしたときに不具合があった。勿論、必要な分解能に応じた高い周波数をもった基本クロックを採用すれば、不具合は解消されるが、この場合、ステッピングモータの駆動回路の高コストを招いてしまう。   In particular, there was a problem when trying to finely control the operation of the stepping motor using a pulse signal having a high driving frequency. Of course, if a basic clock having a high frequency according to the required resolution is adopted, the problem is solved, but in this case, the cost of the driving circuit for the stepping motor is increased.

このような不具合を解消するものとして、レートマルチプライヤを用いることにより超音波モータの駆動周波数を制御する技術が提案されている(例えば、特許文献1参照)。こうした超音波モータにおいては、ステッピングモータにおける駆動周波数よりも高い駆動周波数を、高い分解能で制御することが求められている。   As a technique for solving such a problem, a technique for controlling the driving frequency of an ultrasonic motor by using a rate multiplier has been proposed (for example, see Patent Document 1). In such an ultrasonic motor, it is required to control a driving frequency higher than that in a stepping motor with high resolution.

なお、上記の超音波モータにおける駆動周波数の制御技術では、分解能を細かくすることは可能であるが、任意の駆動周波数において、許容されるバラツキ幅の範囲内で高い分解能を実現することができるか否かは、基本クロックの周波数に依存している。この点では、基本クロックを単純にカウントして駆動周波数を発生する場合と同じであり、許容されるバラツキ幅の範囲内で、任意の駆動周波数を設定することができない。
特開2000−184762号公報
In addition, although the above-described ultrasonic motor driving frequency control technique can reduce the resolution, can a high resolution be achieved within an allowable variation range at an arbitrary driving frequency? Whether or not depends on the frequency of the basic clock. In this respect, it is the same as the case where the drive frequency is generated by simply counting the basic clock, and an arbitrary drive frequency cannot be set within the allowable variation range.
JP 2000-184762 A

ところで昨今、ステッピングモータを滑らかに駆動するために、マイクロステップ駆動方式を採用することが多く、なおかつ、その分割数(ステップ数)が増加の傾向にある。これに伴い、ステッピングモータを駆動する駆動周波数の分解能は一層細かくなっている。   Nowadays, in order to drive the stepping motor smoothly, the microstep driving method is often employed, and the number of divisions (number of steps) tends to increase. Along with this, the resolution of the driving frequency for driving the stepping motor has become finer.

ここで例えば、基本クロックの周波数が10MHzであって、512分割のマイクロステップ駆動方式で駆動されるステッピングモータ駆動装置を例に挙げて説明する。   Here, for example, a stepping motor driving device that has a basic clock frequency of 10 MHz and is driven by a 512-step microstep driving method will be described as an example.

周波数10MHzの基本クロックを、例えば100クロックだけカウントすることで得られる周期は10μsecである。512分割のマイクロステップ駆動方式では、この10μsecが経過する毎に、ステッピングモータの電気角1/512周を進めることになる。つまり、512分割における1マイクロステップ分の励磁を切り換える周波数が、100kHzとなる。   A period obtained by counting, for example, 100 clocks of a basic clock having a frequency of 10 MHz is 10 μsec. In the 512-step microstep driving method, every time 10 μsec elapses, the electrical angle of the stepping motor is advanced by 1/512 round. That is, the frequency for switching excitation for one microstep in 512 divisions is 100 kHz.

このとき、電気角1/8周の刻みで励磁を切り換える1−2相駆動換算での100クロックカウントの駆動周波数f100は、下記式(101)で算出される。 At this time, a driving frequency f 100 of 100 clock counts in terms of 1-2 phase driving in which excitation is switched in increments of 1/8 electrical angle is calculated by the following equation (101).

100=10MHz/{100CLK×(512/8)} ・・・(101)
この駆動周波数f100は、1562.5ppsとなる。
f 100 = 10 MHz / { 100 CLK × (512/8)} (101)
This drive frequency f 100 is 1562.5 pps.

次に、10MHzの基本クロックを100クロックだけカウントすることで得られる駆動周波数f100よりも少し高い(速い)駆動周波数を得ようとした場合を説明する。 Next, the case of trying to obtain a slightly higher (faster) driving frequency than the driving frequency f 100 obtained by counting a reference clock of 10MHz by 100 clock.

基本クロックのカウント数は整数値としてしか設定できないから、上記の場合、10MHzの基本クロックのカウント数を99クロックだけカウントすることで得られる駆動周波数f99を考察する。 Since the count number of the basic clock can only be set as an integer value, in this case, the drive frequency f 99 obtained by counting the count number of the 10 MHz basic clock by 99 clocks will be considered.

周波数10MHzの基本クロックを99クロックだけカウントすることで得られる周期は9.9μsecである。512分割のマイクロステップ駆動方式の場合、この周期9.9μsecの経過毎にステッピングモータの電気角1/512周を進めることになる。つまり、512分割における1マイクロステップ分の励磁を切り換える周波数が、101.01kHzとなる。   A period obtained by counting 99 clocks of a basic clock having a frequency of 10 MHz is 9.9 μsec. In the case of the 512-step microstep drive system, the electrical angle of the stepping motor is advanced by 1/512 rounds every time this period of 9.9 μsec elapses. That is, the frequency for switching excitation for one microstep in 512 divisions is 101.01 kHz.

このとき、電気角1/8周の刻みで励磁を切り換える1−2相駆動換算での99クロックカウントの駆動周波数f99は、下記式(102)で算出される。 At this time, a driving frequency f 99 of 99 clock counts in terms of 1-2 phase driving for switching excitation in units of 1/8 electrical angle is calculated by the following equation (102).

99=10MHz/{99CLK×(512/8)} ・・・(102)
この駆動周波数f99は、1578.28ppsとなる。
f 99 = 10 MHz / {99CLK × (512/8)} (102)
The drive frequency f 99 is 1578.28 pps.

以上から分かるように、ここに挙げた例では、1578.28から1562.5ppsまでの間の値を持つ駆動周波数を発生させることはできない。言い換えれば、ここに挙げた例では、1500pps付近の駆動周波数では、およそ16pps(≒1578.28pps−1562.5pps)程度の分解能しか得られない。   As can be seen from the above, in the example given here, it is not possible to generate a drive frequency having a value between 1578.28 and 1562.5 pps. In other words, in the example given here, only a resolution of about 16 pps (≈1578.28 pps-1562.5 pps) can be obtained at a drive frequency in the vicinity of 1500 pps.

ところで、上記に述べた問題が、フォーカスレンズをステッピングモータによって駆動するオートフォーカス(自動焦点調節)方式のカメラ装置において、以下のような不具合を引き起こしている。   By the way, the problems described above cause the following problems in an autofocus (automatic focus adjustment) type camera device in which a focus lens is driven by a stepping motor.

オートフォーカス制御においては、所定のスキャン範囲においてフォーカスレンズを駆動し、その間に、所定のスキャン回数だけ、AF(自動焦点調節)評価値を取得する。   In the autofocus control, the focus lens is driven in a predetermined scan range, and during that period, AF (automatic focus adjustment) evaluation values are acquired for a predetermined number of scans.

一般的に、撮像素子CCDの垂直転送周期毎に、AF評価値を得るための1回のスキャンを行うため、スキャン動作時の駆動周波数の指令値は、下記式(103)で得られる駆動周波数として決定される。   In general, since one scan for obtaining an AF evaluation value is performed for each vertical transfer period of the image sensor CCD, a drive frequency command value at the time of the scan operation is obtained by the following formula (103). As determined.

駆動周波数=スキャン範囲/(スキャン回数−1)/CCD垂直転送周期 ・・・(103)
ここで、フォーカスレンズを駆動するステッピングモータが、上述したような、基本クロックの周波数が10MHzであり、512分割のマイクロステップの駆動方式で駆動されるものとする。そして、上記式(103)で得られた駆動周波数指令値が、例えば1570ppsであったとする。この場合、基本クロックのカウント数を99クロックとして駆動周波数指令値よりも少し高い(速い)1578.28ppsとするか、カウント数を100クロックとして駆動周波数指令値よりも少し低い(遅い)1562.5ppsとする。どちらかを選択するかについて、図13を参照して説明する。
Drive frequency = scan range / (number of scans−1) / CCD vertical transfer cycle (103)
Here, it is assumed that the stepping motor that drives the focus lens is driven by the 512-step microstep driving method with the basic clock frequency of 10 MHz as described above. Then, it is assumed that the drive frequency command value obtained by the above equation (103) is 1570 pps, for example. In this case, the basic clock count is 99 clocks and is slightly higher (faster) 1578.28 pps than the drive frequency command value, or the count is 100 clocks and is slightly lower (slower) 1562.5 pps than the drive frequency command value. And Which one to select will be described with reference to FIG.

図13は、所定のスキャン範囲においてスキャン回数を6回とし、AF評価値を取得しながらスキャン動作を、このスキャン回数だけ行う場合における各スキャン回のスキャン範囲を示す図である。   FIG. 13 is a diagram showing the scan range for each scan when the number of scans is 6 in a predetermined scan range and the scan operation is performed for the number of scans while acquiring the AF evaluation value.

図13(A)は、フォーカスレンズ位置および所定のスキャン範囲を示す。図13(C)は、駆動周波数指令値と同じ駆動周波数でフォーカスレンズを駆動した場合の各スキャン回のスキャン範囲L0を示す。図13(B)は、駆動周波数指令値よりも低い(遅い)駆動周波数でフォーカスレンズを駆動した場合の各スキャン回のスキャン範囲L1を示す。図13(D)は、駆動周波数指令値よりも高い(速い)駆動周波数でフォーカスレンズを駆動した場合の各スキャン回のスキャン範囲L2を示す。   FIG. 13A shows the focus lens position and a predetermined scan range. FIG. 13C shows the scan range L0 for each scan when the focus lens is driven at the same drive frequency as the drive frequency command value. FIG. 13B shows the scan range L1 for each scan when the focus lens is driven at a drive frequency lower (slower) than the drive frequency command value. FIG. 13D shows a scan range L2 for each scan when the focus lens is driven at a drive frequency higher (faster) than the drive frequency command value.

駆動周波数指令値よりも高い(速い)駆動周波数でフォーカスレンズを駆動した場合(図13(D))、CCD垂直転送周期でフォーカスレンズが駆動される範囲L2が、駆動周波数指令値と同じ駆動周波数で駆動した場合の範囲L0よりも長くなってしまう。その結果、6回のスキャンを行う前に、所定のスキャン範囲におけるフォーカスレンズ駆動を終えてしまい、オートフォーカスの制御精度の低下を招くことになる。   When the focus lens is driven at a drive frequency higher (faster) than the drive frequency command value (FIG. 13D), the range L2 in which the focus lens is driven in the CCD vertical transfer cycle is the same drive frequency as the drive frequency command value. It becomes longer than the range L0 in the case of driving with. As a result, the focus lens drive in a predetermined scan range is finished before performing six scans, leading to a decrease in autofocus control accuracy.

このため一般に、図13(B)に示すように、駆動周波数指令値よりも低い(遅い)駆動周波数でフォーカスレンズを駆動するようにする。しかし、この場合、所定のスキャン回数(6回)だけスキャンし終えた時点で、所定のスキャン範囲をカバーし切れないため、所定のスキャン回数よりも多い回数のスキャン動作をする必要がある。そのため、(増えたスキャン回数×CCDの垂直転送周期の時間)だけオートフォーカスにおける合焦時間が増加するという問題があった。   Therefore, generally, as shown in FIG. 13B, the focus lens is driven at a drive frequency lower (slower) than the drive frequency command value. However, in this case, when the predetermined number of scans (six times) have been completed, the predetermined scan range cannot be covered, and therefore it is necessary to perform a scan operation more times than the predetermined number of scans. Therefore, there is a problem that the focusing time in autofocus increases by (increased number of scans × CCD vertical transfer cycle time).

本発明はこのような問題点に鑑みてなされたものであって、マイクロステップ駆動方式のステッピングモータで駆動されるフォーカスレンズを用いたオートフォーカス制御において、合焦時間の増大を防止するようにしたステッピングモータ駆動装置、ステッピングモータ駆動方法、及びプログラムを提供することを目的とする。   The present invention has been made in view of such problems, and prevents an increase in focusing time in autofocus control using a focus lens driven by a microstepping stepping motor. It is an object of the present invention to provide a stepping motor driving device, a stepping motor driving method, and a program.

上記目的を達成するために、請求項1記載の発明によれば、基本クロックをカウントすることにより第1の周波数をもつ第1のパルス信号を発生する第1の周波数発生手段と、前記基本クロックをカウントすることにより、前記第1の周波数とは異なる第2の周波数をもつ第2のパルス信号を発生する第2の周波数発生手段と、前記第1及び第2の周波数発生手段によってそれぞれ発生された第1及び第2のパルス信号を受け取り、前記第1のパルス信号を第1のパルス数だけ出力し、続いて前記第2のパルス信号を第2のパルス数だけ出力することを繰り返し行い、駆動パルスとして出力する駆動パルス出力手段と、前記駆動パルス出力手段によって出力された駆動パルスによってステッピングモータを駆動する駆動手段とを有することを特徴とするステッピングモータ駆動装置が提供される。   To achieve the above object, according to the first aspect of the present invention, first frequency generating means for generating a first pulse signal having a first frequency by counting the basic clock, and the basic clock. Are generated by second frequency generating means for generating a second pulse signal having a second frequency different from the first frequency, and by the first and second frequency generating means, respectively. Receiving the first and second pulse signals, outputting the first pulse signal for the first number of pulses, and subsequently outputting the second pulse signal for the second number of pulses, Drive pulse output means for outputting as a drive pulse; and drive means for driving the stepping motor by the drive pulse output by the drive pulse output means. Stepping motor driving device according to symptoms is provided.

また、請求項11記載の発明によれば、基本クロックをカウントすることにより第1の周波数をもつ第1のパルス信号を発生する第1の周波数発生ステップと、前記基本クロックをカウントすることにより、前記第1の周波数とは異なる第2の周波数をもつ第2のパルス信号を発生する第2の周波数発生ステップと、前記第1及び第2の周波数発生ステップにおいてそれぞれ発生された第1及び第2のパルス信号を受け取り、前記第1のパルス信号を第1のパルス数だけ出力し、続いて前記第2のパルス信号を第2のパルス数だけ出力することを繰り返し行い、駆動パルスとして出力する駆動パルス出力ステップと、前記駆動パルス出力ステップにおいて出力された駆動パルスによってステッピングモータを駆動する駆動ステップとを有することを特徴とするステッピングモータ駆動方法が提供される。   According to the invention of claim 11, a first frequency generation step of generating a first pulse signal having a first frequency by counting the basic clock, and counting the basic clock, A second frequency generating step for generating a second pulse signal having a second frequency different from the first frequency, and the first and second generated in the first and second frequency generating steps, respectively. Drive that outputs the first pulse signal for the first number of pulses, and then repeatedly outputs the second pulse signal for the second number of pulses to output as a drive pulse. A pulse output step, and a drive step of driving the stepping motor by the drive pulse output in the drive pulse output step Stepping motor driving method comprising the door is provided.

さらに、上記ステッピングモータ駆動方法をコンピュータに実行させるためのプログラムが提供される。   Furthermore, a program for causing a computer to execute the stepping motor driving method is provided.

本発明によれば、ステッピングモータ駆動装置において、基本クロックをカウントすることにより第1および第2の周波数をもつ第1および第2のパルス信号をそれぞれ発生する。つぎに、前記第1のパルス信号を第1のパルス数だけ出力し、続いて前記第2のパルス信号を第2のパルス数だけ出力することを繰り返し行い、駆動パルスとして出力する。そして、この駆動パルスを用いてステッピングモータを駆動する。   According to the present invention, in the stepping motor driving apparatus, the first and second pulse signals having the first and second frequencies are generated by counting the basic clock, respectively. Next, the first pulse signal is output for the first number of pulses, and then the second pulse signal is output for the second number of pulses repeatedly to be output as drive pulses. Then, the stepping motor is driven using this drive pulse.

こうした構成のステッピングモータ駆動装置が、カメラ装置に含まれるフォーカスレンズの駆動を制御するようにしたとする。このカメラ装置において、フォーカスレンズを駆動してAF(自動焦点調節)評価値を取得するAFスキャン動作を行う場合、上記の構成により、次のような効果が得られる。すなわち、AFアルゴリズム上、最適と判断された駆動周波数指令値と、実際に実現できる駆動周波数との差異を、許容範囲以内のズレに抑えることができる。これにより、AFスキャン動作における動作時間の増大に伴う合焦時間の増大を防ぐことができ、AFの高速化を図ることができる。   It is assumed that the stepping motor driving device having such a configuration controls the driving of the focus lens included in the camera device. In this camera apparatus, when an AF scan operation for obtaining an AF (automatic focus adjustment) evaluation value by driving a focus lens is performed, the following effects can be obtained by the above configuration. In other words, the difference between the drive frequency command value determined to be optimal by the AF algorithm and the drive frequency that can be actually realized can be suppressed to a deviation within an allowable range. Thereby, it is possible to prevent an increase in focusing time accompanying an increase in operating time in the AF scanning operation, and it is possible to increase the AF speed.

また、前記第1および第2のパルス数の合計数を所定値よりも小さい値に設定する。これにより、駆動音が可聴帯域に入ることを未然に抑えることができ、駆動音を低減することができる。   The total number of the first and second pulses is set to a value smaller than a predetermined value. As a result, the drive sound can be prevented from entering the audible band, and the drive sound can be reduced.

また、AFスキャン動作を行う場合には、前記駆動パルスを用いてステッピングモータを駆動し、AFスキャン動作を行わない場合には、前記駆動パルスを用いてステッピングモータを駆動しないようにする。これにより、処理負荷を軽減できる。   Further, when the AF scan operation is performed, the stepping motor is driven using the drive pulse, and when the AF scan operation is not performed, the stepping motor is not driven using the drive pulse. Thereby, the processing load can be reduced.

また、駆動周波数指令値と第1の周波数との差が所定の値より小さいとき、前記駆動パルスを出力させないようにする。これにより、システムの処理負荷の軽減を図れる。   Further, when the difference between the drive frequency command value and the first frequency is smaller than a predetermined value, the drive pulse is not output. Thereby, the processing load of the system can be reduced.

以下、本発明を実施するための最良の形態について、図面を参照して説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings.

図1は、本発明の一実施の形態に係るステッピングモータ駆動装置が搭載されたカメラ装置の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of a camera device equipped with a stepping motor driving device according to an embodiment of the present invention.

図1において、100はカメラ装置である。   In FIG. 1, reference numeral 100 denotes a camera device.

10はズームレンズ、11はフォーカスレンズ、12は、絞り機能を備えるシャッタである。14は、光学像を電気信号に変換する撮像素子、16は、撮像素子14から出力されるアナログ信号をディジタル信号に変換するA/D変換器である。18はタイミング発生回路であり、撮像素子14、A/D変換器16、D/A変換器26にクロック信号や制御信号を供給する。タイミング発生回路18は、メモリ制御回路22及びシステム制御回路50により制御される。   Reference numeral 10 denotes a zoom lens, 11 denotes a focus lens, and 12 denotes a shutter having a diaphragm function. Reference numeral 14 denotes an image sensor that converts an optical image into an electric signal, and reference numeral 16 denotes an A / D converter that converts an analog signal output from the image sensor 14 into a digital signal. A timing generation circuit 18 supplies a clock signal and a control signal to the image sensor 14, the A / D converter 16, and the D / A converter 26. The timing generation circuit 18 is controlled by the memory control circuit 22 and the system control circuit 50.

20は画像処理回路であり、A/D変換器16またはメモリ制御回路22から送られた画像データに対して所定の画素補間処理や色変換処理を行う。さらに画像処理回路20は、画像データに対して所定の演算処理を行い、得られた演算結果に基づいてTTL(Through The Lens)方式のAWB(オートホワイトバランス)処理も行う。   An image processing circuit 20 performs predetermined pixel interpolation processing and color conversion processing on image data sent from the A / D converter 16 or the memory control circuit 22. Further, the image processing circuit 20 performs predetermined arithmetic processing on the image data, and also performs TTL (Through The Lens) type AWB (auto white balance) processing based on the obtained arithmetic result.

22はメモリ制御回路であり、A/D変換器16、タイミング発生回路18、画像処理回路20、画像表示メモリ24、D/A変換器26、メモリ30、圧縮・伸長回路32を制御する。   A memory control circuit 22 controls the A / D converter 16, the timing generation circuit 18, the image processing circuit 20, the image display memory 24, the D / A converter 26, the memory 30, and the compression / decompression circuit 32.

A/D変換器16から出力された画像データは、画像処理回路20およびメモリ制御回路22を介して、またはメモリ制御回路22を介して、画像表示メモリ24またはメモリ30に書き込まれる。   The image data output from the A / D converter 16 is written into the image display memory 24 or the memory 30 via the image processing circuit 20 and the memory control circuit 22 or via the memory control circuit 22.

24は画像表示メモリ、26はD/A変換器、28は、TFTLCD等から成る画像表示部であり、画像表示メモリ24に書き込まれた表示用の画像データは、D/A変換器26を介して画像表示部28に送られ、表示される。画像表示部28を用いて、撮像画像データを逐次表示すれば、電子ファインダ機能を実現することができる。   Reference numeral 24 denotes an image display memory, 26 denotes a D / A converter, and 28 denotes an image display unit composed of a TFT LCD or the like. The display image data written in the image display memory 24 passes through the D / A converter 26. Sent to the image display unit 28 and displayed. If the captured image data is sequentially displayed using the image display unit 28, an electronic viewfinder function can be realized.

また、画像表示部28では、システム制御回路50からの指示により、表示をON/OFFすることが可能であり、表示をOFFにした場合にはカメラ装置100の電力消費を大幅に低減することができる。   Further, in the image display unit 28, the display can be turned on / off by an instruction from the system control circuit 50. When the display is turned off, the power consumption of the camera device 100 can be significantly reduced. it can.

30は、撮影して得られた静止画像や動画像を格納するためのメモリであり、所定枚数の静止画像や所定時間の動画像を格納するのに十分な記憶容量を備えている。これにより、複数枚の静止画像を連続して撮影する連射撮影やパノラマ撮影の場合にも、高速かつ大量の画像書き込みをメモリ30に対して行うことが可能となる。また、メモリ30をシステム制御回路50の作業領域として使用することが可能である。   Reference numeral 30 denotes a memory for storing still images and moving images obtained by photographing, and has a storage capacity sufficient to store a predetermined number of still images and moving images for a predetermined time. Thereby, even in the case of continuous shooting or panoramic shooting in which a plurality of still images are continuously shot, it is possible to write a large amount of images to the memory 30 at high speed. Further, the memory 30 can be used as a work area for the system control circuit 50.

32は、適応離散コサイン変換(ADCT)等により画像データを圧縮伸長する圧縮・伸長回路であり、メモリ30に格納された画像データを読み込んで圧縮処理または伸長処理を行い、処理を終えた画像データをメモリ30に書き込む。   A compression / decompression circuit 32 compresses and decompresses image data by adaptive discrete cosine transform (ADCT) or the like, reads image data stored in the memory 30, performs compression processing or decompression processing, and finishes the processing. Is written into the memory 30.

40は、絞り機能を備えるシャッタ12を制御する露光制御部であり、画像データに対して画像処理回路20で行われた所定の演算の結果に基づいて、AE(自動露出)処理を行う。また、露光制御部40は、フラッシュ部48と連携することによりフラッシュ調光機能も有する。   Reference numeral 40 denotes an exposure control unit that controls the shutter 12 having a diaphragm function, and performs AE (automatic exposure) processing on the image data based on a result of a predetermined calculation performed by the image processing circuit 20. The exposure control unit 40 also has a flash light control function in cooperation with the flash unit 48.

42は、フォーカスレンズ11のフォーカシングを制御するAF(自動焦点調節)制御部であり、画像データに対して画像処理回路20で行われた所定の演算の結果に基づいて、AF(自動焦点調節)処理を行う。AF制御部42は、フォーカスレンズ11を駆動してAF評価値を取得するためのAFスキャン動作を行う。このAFスキャン動作において、AF制御部42は、AF評価値を取得すべくフォーカスレンズ11を駆動する駆動範囲及び、その駆動範囲の中でAF評価値を取得する回数であるスキャン回数を決定する。そして、駆動範囲及びスキャン回数を基に駆動周波数指令値fcmdを算出し、これを1−2相駆動換算のパルスレートとして駆動周波数制御部46へ出力する。   Reference numeral 42 denotes an AF (automatic focus adjustment) control unit that controls focusing of the focus lens 11, and AF (automatic focus adjustment) based on a result of a predetermined calculation performed on the image data by the image processing circuit 20. Process. The AF control unit 42 performs an AF scan operation for driving the focus lens 11 and acquiring an AF evaluation value. In this AF scan operation, the AF control unit 42 determines a drive range for driving the focus lens 11 to obtain an AF evaluation value, and a scan count that is the number of times the AF evaluation value is obtained within the drive range. Then, a drive frequency command value fcmd is calculated based on the drive range and the number of scans, and this is output to the drive frequency control unit 46 as a pulse rate converted to 1-2 phase drive.

また、AF制御部42は、フォーカスレンズ11を駆動してAF評価値を取得するAFスキャン動作ではなく、単にフォーカスレンズ11を駆動する場合には、カメラ装置100の動作状況に応じた駆動周波数を駆動周波数指令値fcmdとして出力する。   In addition, the AF control unit 42 does not perform an AF scan operation that drives the focus lens 11 to obtain an AF evaluation value, but simply drives the focus lens 11 to set a drive frequency according to the operation status of the camera device 100. Output as a drive frequency command value fcmd.

46は駆動周波数制御部であり、AF制御部42から入力される駆動周波数指令値fcmdに応じた駆動周波数をもつパルス信号を生成してドライブ部102に出力する。   A drive frequency control unit 46 generates a pulse signal having a drive frequency corresponding to the drive frequency command value fcmd input from the AF control unit 42 and outputs the pulse signal to the drive unit 102.

ドライブ部102は、駆動周波数制御部46から出力されたパルス信号に基づいて、フォーカスレンズ11と連動するステッピングモータを駆動する。このステッピングモータは、電気角を512分割したマイクロステップで動作してフォーカスレンズ11を駆動する。   The drive unit 102 drives a stepping motor that works in conjunction with the focus lens 11 based on the pulse signal output from the drive frequency control unit 46. This stepping motor drives the focus lens 11 by operating in microsteps in which the electrical angle is divided into 512.

駆動周波数制御部46については、図2を参照して詳しく後述する。   The drive frequency control unit 46 will be described later in detail with reference to FIG.

44は、ズームレンズ10のズーミングを制御するズーム制御部である。48はフラッシュ部であり、AF補助光の投光機能、フラッシュ調光機能も有する。   A zoom control unit 44 controls zooming of the zoom lens 10. A flash unit 48 has an AF auxiliary light projecting function and a flash light control function.

露光制御部40およびAF制御部42はTTL方式を用いて制御される。システム制御回路50が、画像データに対して画像処理回路20で演算することによって得られた演算結果に基づき、露光制御部40およびAF制御部42の制御を行う。   The exposure control unit 40 and the AF control unit 42 are controlled using the TTL method. The system control circuit 50 controls the exposure control unit 40 and the AF control unit 42 based on the calculation result obtained by calculating the image data with the image processing circuit 20.

50は、カメラ装置100全体を制御するシステム制御回路である。52は、システム制御回路50が動作する際に必要な定数、変数、プログラム等を記憶するメモリである。   Reference numeral 50 denotes a system control circuit that controls the entire camera apparatus 100. A memory 52 stores constants, variables, programs, and the like necessary for the operation of the system control circuit 50.

54は、液晶表示装置やスピーカー等の表示部であり、システム制御回路50でのプログラムの実行に応じて、文字、画像、音声等を用いてシステム制御回路50の動作状態やメッセージ等を表示する。表示部54は、カメラ装置100の操作部近辺の視認し易い位置に単数または複数個所設置され、例えばLCDやLED、発音素子等の組み合わせにより構成される。   Reference numeral 54 denotes a display unit such as a liquid crystal display device or a speaker, which displays an operation state, a message, and the like of the system control circuit 50 using characters, images, sounds, and the like according to execution of a program in the system control circuit 50. . The display unit 54 is installed in a single or a plurality of positions near the operation unit of the camera device 100 so as to be easily visible, and is configured by a combination of an LCD, an LED, a sounding element, and the like.

また、表示部54は、その一部の機能が光学ファインダ104内に設置される。   The display unit 54 is partly installed in the optical viewfinder 104.

表示部54の表示内容のうち、LCD等により表示するものとしては、シングルショット/連写撮影表示、セルフタイマー表示、圧縮率表示、記録画素数表示、記録枚数表示、残撮影可能枚数表示、シャッタスピード表示、絞り値表示、露出補正表示がある。さらに、フラッシュ表示、赤目緩和表示、マクロ撮影表示、ブザー設定表示、時計用電池残量表示、電池残量表示、エラー表示、複数桁の数字による情報表示、記録媒体120の着脱状態表示、通信I/F動作表示、日付・時刻表示等がある。   Among the display contents of the display unit 54, what is displayed on the LCD or the like includes single shot / continuous shooting display, self-timer display, compression rate display, recording pixel number display, recording number display, remaining image number display, shutter There are speed display, aperture value display, and exposure compensation display. In addition, flash display, red-eye reduction display, macro shooting display, buzzer setting display, clock battery level display, battery level display, error display, information display with multiple digits, display / removal status display of recording medium 120, communication I / F operation display, date / time display, etc.

また、表示部54の表示内容のうち、光学ファインダ104内に表示するものとしては、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタスピード表示、絞り値表示、露出補正表示等がある。   Among the display contents of the display unit 54, what is displayed in the optical viewfinder 104 includes in-focus display, camera shake warning display, flash charge display, shutter speed display, aperture value display, exposure correction display, and the like.

56は、電気的に消去・記録可能な不揮発性メモリであり、例えばEEPROM等が用いられる。   Reference numeral 56 denotes an electrically erasable / recordable non-volatile memory, such as an EEPROM.

60、62、64、66、68及び70は、システム制御回路50へ各種の動作指示を入力するための操作手段であり、スイッチやダイアル、タッチパネル、視線検知によるポインティングデバイス、音声認識装置等の単数または複数の組み合わせで構成される。   Reference numerals 60, 62, 64, 66, 68 and 70 are operation means for inputting various operation instructions to the system control circuit 50, such as a switch, a dial, a touch panel, a pointing device based on line-of-sight detection, and a voice recognition device. Or it consists of a plurality of combinations.

ここで、これらの操作手段の具体的な説明を行う。   Here, a specific description of these operating means will be given.

60はモードダイアルスイッチであり、電源オフモード、自動撮影モード、撮影モード、パノラマ撮影モード、再生モード、マルチ画面再生・消去モード、PC接続モード等の各機能モードを切り替え設定するためのものである。   Reference numeral 60 denotes a mode dial switch for switching and setting each function mode such as a power-off mode, an automatic shooting mode, a shooting mode, a panoramic shooting mode, a playback mode, a multi-screen playback / erase mode, and a PC connection mode. .

62はシャッタスイッチSW1であり、不図示のシャッタボタンの半押しでONとなり、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(フラッシュプリ発光)処理等の動作開始が指示される。   Reference numeral 62 denotes a shutter switch SW1, which is turned on when a shutter button (not shown) is half-pressed, and performs AF (auto focus) processing, AE (auto exposure) processing, AWB (auto white balance) processing, EF (flash pre-flash) processing, and the like. Is started.

64はシャッタスイッチSW2であり、シャッタボタンの全押しでONとなり、露光処理、現像処理、記録処理といった一連の処理の動作開始が指示される。なお、露光処理は、撮像素子14から出力された画像データをA/D変換器16、メモリ制御回路22を介してメモリ30に書き込む処理である。また現像処理は、画像処理回路20やメモリ制御回路22で行われる演算を用いた処理である。記録処理は、メモリ30から画像データを読み出し、圧縮・伸長回路32で圧縮を行い、記録媒体120に画像データを書き込む処理である。   A shutter switch SW2 64 is turned on when the shutter button is fully pressed, and instructs to start a series of processing operations such as exposure processing, development processing, and recording processing. The exposure process is a process for writing the image data output from the image sensor 14 to the memory 30 via the A / D converter 16 and the memory control circuit 22. The development process is a process using a calculation performed by the image processing circuit 20 and the memory control circuit 22. The recording process is a process of reading image data from the memory 30, compressing the image data by the compression / decompression circuit 32, and writing the image data to the recording medium 120.

66は画像表示ON/OFFスイッチであり、画像表示部28のON/OFFを設定するためのものである。画像表示部28をOFFに設定すると、画像表示部28への電流供給が遮断され、省電力を図ることが可能となる。なお、画像表示部28がOFFされていても、光学ファインダ104を用いて撮影を行うことが可能である。   Reference numeral 66 denotes an image display ON / OFF switch for setting ON / OFF of the image display unit 28. When the image display unit 28 is set to OFF, the current supply to the image display unit 28 is interrupted, and power saving can be achieved. Note that even if the image display unit 28 is turned off, it is possible to perform shooting using the optical viewfinder 104.

68はAF補正ON/OFFスイッチである。   Reference numeral 68 denotes an AF correction ON / OFF switch.

70は、各種ボタンやタッチパネル等からなる操作部であり、メニューボタン、セットボタン、マクロボタン、マルチ画面再生改ページボタン、フラッシュ設定ボタン、単写/連写/セルフタイマー切り替えボタン等がある。さらに、メニュー移動+(プラス)ボタン、メニュー移動−(マイナス)ボタン、再生画像移動+(プラス)ボタン、再生画像−(マイナス)ボタン、撮影画質選択ボタン、露出補正ボタン、日付/時間設定ボタン等がある。   An operation unit 70 includes various buttons, a touch panel, and the like, and includes a menu button, a set button, a macro button, a multi-screen playback page break button, a flash setting button, a single shooting / continuous shooting / self-timer switching button, and the like. Furthermore, menu movement + (plus) button, menu movement-(minus) button, playback image movement + (plus) button, playback image-(minus) button, shooting image quality selection button, exposure compensation button, date / time setting button, etc. There is.

80は電源制御部であり、電池検出回路、DC−DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成される。電源制御部80では、電池の装着の有無、電池の種類、電池残量の検出を行い、検出結果及びシステム制御回路50からの指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間、記録媒体120を含む各部へ供給する。   A power control unit 80 includes a battery detection circuit, a DC-DC converter, a switch circuit that switches a block to be energized, and the like. The power supply control unit 80 detects the presence / absence of a battery, the type of battery, the remaining battery level, controls the DC-DC converter based on the detection result and an instruction from the system control circuit 50, and requires the necessary voltage. It is supplied to each part including the recording medium 120 for a long period.

82,84はコネクタ、86は電源部である。電源部86は、アルカリ電池やリチウム電池等の一次電池や、NiCd電池やNiMH電池、Li電池等の二次電池、ACアダプター等からなる。   82 and 84 are connectors, and 86 is a power supply unit. The power supply unit 86 includes a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, or a Li battery, an AC adapter, or the like.

90は記録媒体120とのインタフェース(I/F)、92は記録媒体120と接続を行うコネクタである。98は記録媒体着脱検知部であり、コネクタ92に対して記録媒体120が装着されているか否かを検知する。   Reference numeral 90 denotes an interface (I / F) with the recording medium 120, and 92 denotes a connector for connecting to the recording medium 120. A recording medium attachment / detachment detection unit 98 detects whether or not the recording medium 120 is attached to the connector 92.

104は光学ファインダであり、画像表示部28による電子ファインダ機能を使用すること無しに、この光学ファインダ104のみを用いて撮影を行うことを可能にする。また、光学ファインダ104内には、表示部54の一部の機能、例えば、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタスピード表示、絞り値表示、露出補正表示などが設置されている。   Reference numeral 104 denotes an optical viewfinder, which enables photographing using only the optical viewfinder 104 without using the electronic viewfinder function of the image display unit 28. In the optical viewfinder 104, some functions of the display unit 54, for example, a focus display, a camera shake warning display, a flash charge display, a shutter speed display, an aperture value display, an exposure correction display, and the like are installed.

110は通信部であり、RS232CやUSB、IEEE1394、P1284、SCSI、モデム、LAN、無線通信等の各種通信機能を有する。   A communication unit 110 has various communication functions such as RS232C, USB, IEEE1394, P1284, SCSI, modem, LAN, and wireless communication.

112は、通信部110によりカメラ装置100を他の機器と接続するコネクタ、または無線通信の場合はアンテナである。   Reference numeral 112 denotes a connector for connecting the camera apparatus 100 to another device by the communication unit 110, or an antenna in the case of wireless communication.

120は、メモリカードやハードディスク等の記録媒体である。記録媒体120は、半導体メモリや磁気ディスク等から構成される記録部122、カメラ装置100とのインタフェース124、カメラ装置100と接続を行うコネクタ126を備えている。   Reference numeral 120 denotes a recording medium such as a memory card or a hard disk. The recording medium 120 includes a recording unit 122 composed of a semiconductor memory, a magnetic disk, and the like, an interface 124 with the camera device 100, and a connector 126 that connects to the camera device 100.

図2は、図1に示す駆動周波数制御部46の詳細な構成を示すブロック図である。   FIG. 2 is a block diagram showing a detailed configuration of the drive frequency control unit 46 shown in FIG.

駆動周波数制御部46は、駆動周波数平均化パラメータ決定部200、第1の周波数発生部202、第2の周波数発生部204、駆動周波数平均化部206、第1の駆動周波数選択部208、第2の駆動周波数選択部210によって構成される。   The drive frequency control unit 46 includes a drive frequency averaging parameter determination unit 200, a first frequency generation unit 202, a second frequency generation unit 204, a drive frequency averaging unit 206, a first drive frequency selection unit 208, a second Drive frequency selection unit 210.

駆動周波数平均化パラメータ決定部200は、AF制御部42から入力される駆動周波数指令値を基に、第1の駆動周波数f1を持ったパルス信号を発生するための設定値である第1のカウント数CNT1を算出し、第1の周波数発生部202へ出力する。また、駆動周波数の平均化処理を行う必要があるか否かを判定し、駆動周波数の平均化処理を行う必要があるならば、第2の駆動周波数f2を持ったパルス信号を発生するための設定値である第2のカウント数CNT2を算出し、第2の周波数発生部204へ出力する。さらに、駆動周波数の平均化処理を行う上で必要となる平均化ループカウント数mと第1のパルス数nとを算出し、駆動周波数平均化部206へ出力する。   The drive frequency averaging parameter determination unit 200 is based on the drive frequency command value input from the AF control unit 42, and is a first count that is a set value for generating a pulse signal having the first drive frequency f1. The number CNT 1 is calculated and output to the first frequency generator 202. Further, it is determined whether or not it is necessary to perform the driving frequency averaging process. If it is necessary to perform the driving frequency averaging process, a pulse signal having the second driving frequency f2 is generated. A second count number CNT 2 that is a set value is calculated and output to the second frequency generator 204. Further, an average loop count number m and a first pulse number n necessary for performing the drive frequency averaging process are calculated and output to the drive frequency averaging unit 206.

第1の周波数発生部202では、カウンタ(A)202aが基本クロックのカウントを開始すると同時に、駆動周波数平均化部206への出力信号をHレベルとする。つぎに、比較器202bが、カウンタ(A)202aのカウント値を、駆動周波数平均化パラメータ決定部200から入力された第1のカウント数CNT1と比較する。そしてカウント値が第1のカウント数CNT1の半分の値に一致したときに、駆動周波数平均化部206への出力信号をLレベルとする。さらに、カウント値が第1のカウント数CNT1に一致したときに、駆動周波数平均化部206への出力信号をHレベルとすると同時に、カウント値をゼロクリアし、カウンタ(A)202aが基本クロックのカウントを再開する。これを繰り返すことにより、第1の周波数発生部202は、第1のカウント数CNT1に応じた第1の駆動周波数f1をもったパルス信号を駆動周波数平均化部206へ出力する。   In the first frequency generator 202, the counter (A) 202a starts counting the basic clock, and at the same time, sets the output signal to the drive frequency averaging unit 206 to the H level. Next, the comparator 202b compares the count value of the counter (A) 202a with the first count number CNT1 input from the drive frequency averaging parameter determination unit 200. When the count value matches the half value of the first count number CNT1, the output signal to the drive frequency averaging unit 206 is set to L level. Further, when the count value matches the first count number CNT1, the output signal to the drive frequency averaging unit 206 is set to the H level, and at the same time, the count value is cleared to zero, and the counter (A) 202a counts the basic clock. To resume. By repeating this, the first frequency generation unit 202 outputs a pulse signal having the first drive frequency f1 corresponding to the first count number CNT1 to the drive frequency averaging unit 206.

同様に、第2の周波数発生部204では、カウンタ(B)204aが基本クロックのカウントを開始すると同時に、駆動周波数平均化部206への出力信号をHレベルとする。つぎに、比較器204bが、カウンタ(B)204aのカウント値を、駆動周波数平均化パラメータ決定部200から入力された第2のカウント数CNT2と比較する。そしてカウント値が第2のカウント数CNT2の半分の値に一致したときに、駆動周波数平均化部206への出力信号をLレベルとする。さらに、カウント値が第2のカウント数CNT2に一致したときに、駆動周波数平均化部206への出力信号をHレベルとすると同時に、カウント値をゼロクリアし、カウンタ(B)204aが基本クロックのカウントを再開する。これを繰り返すことにより、第2の周波数発生部204は、第2のカウント数CNT2に応じた第2の駆動周波数f2をもったパルス信号を駆動周波数平均化部206へ出力する。   Similarly, in the second frequency generation unit 204, the counter (B) 204a starts counting the basic clock, and at the same time, sets the output signal to the drive frequency averaging unit 206 to the H level. Next, the comparator 204b compares the count value of the counter (B) 204a with the second count number CNT2 input from the drive frequency averaging parameter determination unit 200. When the count value matches the half value of the second count number CNT2, the output signal to the drive frequency averaging unit 206 is set to L level. Further, when the count value matches the second count number CNT2, the output signal to the drive frequency averaging unit 206 is set to the H level, and at the same time, the count value is cleared to zero, and the counter (B) 204a counts the basic clock. To resume. By repeating this, the second frequency generation unit 204 outputs a pulse signal having the second drive frequency f2 corresponding to the second count number CNT2 to the drive frequency averaging unit 206.

駆動周波数平均化部206は、第1の周波数発生部202より入力された第1の駆動周波数f1をもったパルス信号の各パルスを、駆動周波数平均化パラメータ決定部200からの第1のパルス数nだけカウントして出力する。その後続けて、第2の周波数発生部204より入力された第2の駆動周波数f2をもったパルス信号の各パルスを、駆動周波数平均化パラメータ決定部200からの平均化ループカウント数mから第1のパルス数nを差し引いて得られる数(m−n)だけカウントして出力する。   The drive frequency averaging unit 206 uses each pulse of the pulse signal having the first drive frequency f1 input from the first frequency generation unit 202 as the first number of pulses from the drive frequency averaging parameter determination unit 200. Count n and output. Subsequently, each pulse of the pulse signal having the second drive frequency f2 input from the second frequency generation unit 204 is calculated from the average loop count number m from the drive frequency averaging parameter determination unit 200 to the first. The number (mn) obtained by subtracting the number of pulses n is counted and output.

これを繰り返すことにより、駆動周波数平均化部206は、第1の駆動周波数f1をもったパルス信号と第2の駆動周波数f2をもったパルス信号とが交互に切り替わる平均化周波数パルス信号を生成して第1の駆動周波数選択部208へ出力する。   By repeating this, the drive frequency averaging unit 206 generates an average frequency pulse signal in which a pulse signal having the first drive frequency f1 and a pulse signal having the second drive frequency f2 are alternately switched. To the first drive frequency selection unit 208.

なお、駆動周波数平均化部206はレートマルチプライヤで構成される。   The drive frequency averaging unit 206 is configured with a rate multiplier.

図3は、駆動周波数平均化部206で生成され、第1の駆動周波数選択部208へ出力される平均化周波数パルス信号であって、第1の駆動周波数f1をもったパルス信号と第2の駆動周波数f2をもったパルス信号とが交互に切り替わる平均化周波数パルス信号を示すタイミングチャートである。   FIG. 3 shows an averaged frequency pulse signal generated by the drive frequency averaging unit 206 and output to the first drive frequency selection unit 208, and a pulse signal having the first drive frequency f1 and the second frequency signal. It is a timing chart which shows the average frequency pulse signal with which the pulse signal with drive frequency f2 switches alternately.

図2に戻って、第1の駆動周波数選択部208は、駆動周波数平均化パラメータ決定部200より入力された平均化フラグに「1」がセットされていたならば、駆動周波数平均化部206から入力された平均化周波数パルス信号を第2の駆動周波数選択部210へ出力する。一方、駆動周波数平均化パラメータ決定部200より入力された平均化フラグに「0」がセットされていたならば、第1の周波数発生部202から出力されたパルス信号を第2の駆動周波数選択部210へ出力する。   Returning to FIG. 2, if “1” is set in the averaging flag input from the driving frequency averaging parameter determining unit 200, the first driving frequency selecting unit 208 starts from the driving frequency averaging unit 206. The input average frequency pulse signal is output to the second drive frequency selection unit 210. On the other hand, if “0” is set in the averaging flag input from the drive frequency averaging parameter determination unit 200, the pulse signal output from the first frequency generation unit 202 is used as the second drive frequency selection unit. Output to 210.

第2の駆動周波数選択部210は、AF制御部42より入力されたスキャンフラグに「1」がセットされていたならば、第1の駆動周波数選択部208から出力されたパルス信号をドライブ部102へ出力する。一方、AF制御部42より入力されたスキャンフラグに「0」がセットされていたならば、第1の周波数発生部202から出力されたパルス信号をドライブ部102へ出力する。   If the scan flag input from the AF control unit 42 is set to “1”, the second drive frequency selection unit 210 outputs the pulse signal output from the first drive frequency selection unit 208 to the drive unit 102. Output to. On the other hand, if “0” is set in the scan flag input from the AF control unit 42, the pulse signal output from the first frequency generation unit 202 is output to the drive unit 102.

図4及び図5は、図1に示すカメラ装置100の動作の手順を示すフローチャートである。   4 and 5 are flowcharts showing the operation procedure of the camera apparatus 100 shown in FIG.

電池交換等の電源投入により、システム制御回路50はフラグや制御変数等を初期化し(S101)、画像表示部28の画像表示をOFF状態に初期設定する(S102)。   Upon power-on such as battery replacement, the system control circuit 50 initializes flags, control variables, and the like (S101), and initializes the image display on the image display unit 28 to an OFF state (S102).

システム制御回路50は、モードダイアルスイッチ60の設定位置を検出し(S103)、モードダイアルスイッチ60が電源OFFに設定されていたならば、ステップS105へ進む。モードダイアルスイッチ60が撮影モードに設定されていたならば、ステップS106へ進む。モードダイアルスイッチ60がその他のモードに設定されていたならば、ステップS104へ進む。   The system control circuit 50 detects the set position of the mode dial switch 60 (S103), and if the mode dial switch 60 is set to power OFF, the process proceeds to step S105. If the mode dial switch 60 is set to the photographing mode, the process proceeds to step S106. If the mode dial switch 60 is set to another mode, the process proceeds to step S104.

ステップS105では、各表示部の表示を終了状態に変更し、レンズ保護部のバリア(図示せず)を閉じて撮像部を保護し、フラグや制御変数等を含む所定のパラメータや設定値、設定モードを不揮発性メモリ56に記録する。また、電源制御部80により、画像表示部28を含むカメラ装置100各部の不要な電源を遮断する等の所定の終了処理を行う。その後、ステップS103に戻る。   In step S105, the display of each display unit is changed to the end state, the barrier (not shown) of the lens protection unit is closed to protect the imaging unit, and predetermined parameters, setting values, and settings including flags and control variables are set. The mode is recorded in the nonvolatile memory 56. In addition, the power supply control unit 80 performs a predetermined end process such as cutting off unnecessary power of each part of the camera device 100 including the image display unit 28. Thereafter, the process returns to step S103.

ステップS104では、システム制御回路50が、選択されたモードに応じた処理を実行し、該処理を終えたならばステップS103に戻る。   In step S104, the system control circuit 50 executes a process according to the selected mode. When the process is completed, the process returns to step S103.

ステップS106では、システム制御回路50が、電源制御部80を介して、電池等により構成される電源86の残容量や動作情況を調べ、カメラ装置100の動作に支障がないか否かを判断する。支障がないならばステップS107に進み、支障があるならばステップS108に進む。   In step S <b> 106, the system control circuit 50 checks the remaining capacity and operation status of the power source 86 configured by a battery or the like via the power source control unit 80, and determines whether there is any problem in the operation of the camera device 100. . If there is no problem, the process proceeds to step S107, and if there is a problem, the process proceeds to step S108.

ステップS108では、システム制御回路50が、表示部54を介して画像や音声により、ユーザに所定の警告表示を行う。その後、ステップS103に戻る。   In step S <b> 108, the system control circuit 50 displays a predetermined warning to the user by an image or sound via the display unit 54. Thereafter, the process returns to step S103.

ステップS107では、システム制御回路50が、記録媒体120の動作状態に関して、カメラ装置100による画像データの記録再生動作に対して支障がないか否かを判断する。支障がないならばステップS109へ進み、支障があるならばステップS108へ進む。   In step S <b> 107, the system control circuit 50 determines whether there is any problem with the operation of the recording medium 120 for the recording / reproducing operation of the image data by the camera device 100. If there is no problem, the process proceeds to step S109, and if there is a problem, the process proceeds to step S108.

ステップS109では、システム制御回路50が、表示部54を介して画像や音声により、カメラ装置100の各種設定状態の表示を行う。なお、画像表示部28の画像表示がONであったならば、画像表示部28も用いて画像や音声により、カメラ装置100の各種設定状態の表示を行う。   In step S <b> 109, the system control circuit 50 displays various setting states of the camera device 100 using images and sounds via the display unit 54. If the image display of the image display unit 28 is ON, the image display unit 28 is also used to display various setting states of the camera device 100 using images and sounds.

続けて、撮像した画像を逐次表示するスルー表示状態に設定して(S116)、ステップS119に進む。   Subsequently, a through display state in which captured images are sequentially displayed is set (S116), and the process proceeds to step S119.

スルー表示状態においては、撮像素子14、A/D変換器16、画像処理回路20、メモリ制御回路22を介して、画像表示メモリ24に逐次書き込まれた画像データが即座に、メモリ制御回路22、D/A変換器26を介して画像表示部28に送られる。これにより、撮影中の画像が画像表示部28に逐次表示され、電子ファインダ機能が実現される。   In the through display state, the image data sequentially written in the image display memory 24 via the image sensor 14, the A / D converter 16, the image processing circuit 20, and the memory control circuit 22 are immediately stored in the memory control circuit 22, It is sent to the image display unit 28 via the D / A converter 26. As a result, the images being shot are sequentially displayed on the image display unit 28, and an electronic viewfinder function is realized.

ステップS119では、シャッタスイッチ(SW1)62がONであるか否かを判別する。ONであればステップS122へ進み、OFFであればステップS103へ戻る。   In step S119, it is determined whether or not the shutter switch (SW1) 62 is ON. If it is ON, the process proceeds to step S122, and if it is OFF, the process returns to step S103.

ステップS122では、システム制御回路50が、測距処理を行ってズームレンズ10の焦点を被写体に合わせ、また測光処理を行って絞り値及びシャッタ開放時間を決定する。測光処理においては、必要であればフラッシュ発光の設定も行う。   In step S122, the system control circuit 50 performs a distance measurement process to focus the zoom lens 10 on the subject, and performs a photometry process to determine an aperture value and a shutter opening time. In the photometric process, flash emission is set if necessary.

このステップS122における測距・測光処理については、図6を参照して詳しく後述する。   The distance measurement / photometry process in step S122 will be described later in detail with reference to FIG.

次のステップS127では、シャッタスイッチ(SW2)64がONであるか否かを判別する。ONであればステップS129へ進み、OFFであればステップS128へ進む。   In the next step S127, it is determined whether or not the shutter switch (SW2) 64 is ON. If it is ON, the process proceeds to step S129, and if it is OFF, the process proceeds to step S128.

ステップS128では、シャッタスイッチ(SW1)62がONであるか否かを判別する。ONであればステップS127へ戻り、OFFであればステップS103へ戻る。   In step S128, it is determined whether or not the shutter switch (SW1) 62 is ON. If it is ON, the process returns to step S127, and if it is OFF, the process returns to step S103.

ステップS129では、システム制御回路50が、露光処理及び現像処理からなる撮影処理を実行する。露光処理では、撮像素子14、A/D変換器16、画像処理回路20、メモリ制御回路22を介して、または画像処理回路20だけは介さず、メモリ30に画像データを書き込む。また、現像処理では、メモリ制御回路22、また必要に応じて画像処理回路20を用いて、メモリ30に書き込まれた画像データを読み出して各種処理を行う。   In step S129, the system control circuit 50 executes photographing processing including exposure processing and development processing. In the exposure process, image data is written in the memory 30 via the image sensor 14, the A / D converter 16, the image processing circuit 20, the memory control circuit 22, or not only through the image processing circuit 20. In the development process, the image data written in the memory 30 is read out and various processes are performed by using the memory control circuit 22 and, if necessary, the image processing circuit 20.

このステップS129における撮影処理については、図7を参照して詳しく後述する。   The photographing process in step S129 will be described in detail later with reference to FIG.

次のステップS134では、システム制御回路50が記録処理を実行する。すなわち、メモリ30に書き込まれた画像データを読み出して、メモリ制御回路22、また必要に応じて画像処理回路20を用いて、各種画像処理を行う。さらに、圧縮・伸長回路32を用いて、設定されたモードに応じた画像圧縮処理を行い、その後、記録媒体120へ画像データの書き込みを行う。   In the next step S134, the system control circuit 50 executes a recording process. That is, the image data written in the memory 30 is read, and various image processing is performed using the memory control circuit 22 and, if necessary, the image processing circuit 20. Further, the compression / decompression circuit 32 is used to perform image compression processing in accordance with the set mode, and then image data is written to the recording medium 120.

このステップS134における記録処理については、図8を参照して詳しく後述する。   The recording process in step S134 will be described in detail later with reference to FIG.

次のステップS135では、シャッタスイッチ(SW2)64がONであるか否かを判別する。ONであればステップS136へ進み、OFFであればステップS137へ進む。   In the next step S135, it is determined whether or not the shutter switch (SW2) 64 is ON. If it is ON, the process proceeds to step S136, and if it is OFF, the process proceeds to step S137.

ステップS136では、シャッタスイッチ(SW2)64のON状態が継続しているので、システム制御回路50は、システム制御回路50の内部メモリまたはメモリ52に記憶されている連写フラグの状態を判断する。連写フラグが設定されていたならば、連続して撮影を行うためにステップS129へ戻る。一方、連写フラグが設定されていないならばステップS135へ戻り、シャッタスイッチ(SW2)64がOFFになるまで、ステップS135,S136の処理を繰り返す。   In step S136, since the ON state of the shutter switch (SW2) 64 continues, the system control circuit 50 determines the state of the continuous shooting flag stored in the internal memory of the system control circuit 50 or the memory 52. If the continuous shooting flag has been set, the flow returns to step S129 to perform continuous shooting. On the other hand, if the continuous shooting flag is not set, the process returns to step S135, and the processes of steps S135 and S136 are repeated until the shutter switch (SW2) 64 is turned off.

ステップS137では、所定のミニマムレビュー時間が経過するまで(S137でNO)撮影画像を画像表示部28に表示し続ける。所定のミニマムレビュー時間が経過すると(S137でYES)ステップS138に進む。   In step S137, the photographed image is continuously displayed on the image display unit 28 until a predetermined minimum review time has elapsed (NO in S137). When the predetermined minimum review time has elapsed (YES in S137), the process proceeds to step S138.

ステップS138では、システム制御回路50が、画像表示フラグがONであるか否かを判別する。画像表示フラグがONであるならばステップS139へ進み、画像表示フラグがOFFであるならばステップS140へ進む。   In step S138, the system control circuit 50 determines whether or not the image display flag is ON. If the image display flag is ON, the process proceeds to step S139. If the image display flag is OFF, the process proceeds to step S140.

ステップS139では、システム制御回路50が、画像表示部28の表示状態をスルー表示状態に設定して、ステップS141へ進む。   In step S139, the system control circuit 50 sets the display state of the image display unit 28 to the through display state, and proceeds to step S141.

ステップS140では、システム制御回路50が画像表示部28をOFFにして、ステップS141へ進む。   In step S140, the system control circuit 50 turns off the image display unit 28 and proceeds to step S141.

ステップS141では、システム制御回路50が、シャッタスイッチ(SW1)62がONであるか否かを判別する。ONであればステップS127へ戻り、OFFであればステップS103へ戻る。   In step S141, the system control circuit 50 determines whether or not the shutter switch (SW1) 62 is ON. If it is ON, the process returns to step S127, and if it is OFF, the process returns to step S103.

図6は、図5のステップS122における測距・測光処理の詳細な手順を示すフローチャートである。   FIG. 6 is a flowchart showing a detailed procedure of the distance measurement / photometry process in step S122 of FIG.

システム制御回路50は、シャッタスイッチ(SW1)62のONに伴い、撮像素子14から電荷信号を読み出し、A/D変換器16を介して画像処理回路20に撮影画像データを逐次読み込む(S201)。この逐次読み込まれた画像データを用いて、画像処理回路20は、TTL方式のAE(自動露出)処理、EF(フラッシュプリ発光)処理、AF(自動焦点調節)処理に先立つ所定の演算を行う。   When the shutter switch (SW1) 62 is turned on, the system control circuit 50 reads the charge signal from the image sensor 14 and sequentially reads the captured image data into the image processing circuit 20 via the A / D converter 16 (S201). Using the sequentially read image data, the image processing circuit 20 performs predetermined calculations prior to TTL AE (automatic exposure) processing, EF (flash pre-emission) processing, and AF (automatic focus adjustment) processing.

なお、ここでの演算では、撮影画像データの全画素のうち、必要に応じて特定の部分をそれぞれ切り取って抽出し、これを演算に用いている。これにより、TTL方式のAE、EF、AWB、AFの各処理において、中央重点モード、平均モード、評価モード等のモード毎に最適な演算結果を利用することが可能となる。   In the calculation here, specific parts of all the pixels of the photographed image data are cut out and extracted as necessary, and this is used for the calculation. This makes it possible to use an optimum calculation result for each mode, such as the center weight mode, the average mode, and the evaluation mode, in the TTL method AE, EF, AWB, and AF processes.

つぎに、画像処理回路20は、露出が適正であるか否かを判別し(S202)、適正であれば、測定データ及び/または設定パラメータをシステム制御回路50の内部メモリまたはメモリ52に記憶し、ステップS206へ進む。一方、露出が適正でなければステップS203へ進む。   Next, the image processing circuit 20 determines whether or not the exposure is appropriate (S202). If the exposure is appropriate, the measurement data and / or the setting parameters are stored in the internal memory or the memory 52 of the system control circuit 50. The process proceeds to step S206. On the other hand, if the exposure is not appropriate, the process proceeds to step S203.

ステップS203では、システム制御回路50が、画像処理回路20での演算結果に基づいて、露光制御部40を用いてAE制御を行う。   In step S <b> 203, the system control circuit 50 performs AE control using the exposure control unit 40 based on the calculation result in the image processing circuit 20.

つぎに、システム制御回路50は、AE制御で得られた測定データを用いて、フラッシュ発光が必要か否かを判断し(S204)、フラッシュ発光が必要ならばステップS205へ進み、不要ならばステップS201へ戻る。   Next, the system control circuit 50 determines whether or not flash light emission is necessary using the measurement data obtained by AE control (S204). If flash light emission is necessary, the system control circuit 50 proceeds to step S205. Return to S201.

ステップS205では、フラッシュフラグをセットし、フラッシュ部48を充電する。その後、ステップS201へ戻る。   In step S205, the flash flag is set and the flash unit 48 is charged. Then, it returns to step S201.

ステップS206では、システム制御回路50が、ホワイトバランスが適正であるか否かを判別し、適正であれば、測定データ及び/または設定パラメータをシステム制御回路50の内部メモリまたはメモリ52に記憶し、ステップS208へ進む。一方、ホワイトバランスが適正でなければステップS207へ進む。   In step S206, the system control circuit 50 determines whether or not the white balance is appropriate. If the white balance is appropriate, the measurement data and / or the setting parameters are stored in the internal memory or the memory 52 of the system control circuit 50. Proceed to step S208. On the other hand, if the white balance is not appropriate, the process proceeds to step S207.

ステップS207では、システム制御回路50が、画像処理回路20での演算結果及びAE制御で得られた測定データに基づいて、画像処理回路20を用いて、色処理のパラメータを調節してAWB制御を行う。その後、ステップS201へ戻る。   In step S207, the system control circuit 50 uses the image processing circuit 20 to adjust color processing parameters and perform AWB control based on the calculation result in the image processing circuit 20 and the measurement data obtained by the AE control. Do. Then, it returns to step S201.

ステップS208では、システム制御回路50が、測距(AF)が適正、すなわち合焦であるか否かを判別する。合焦であるならば、測定データ及びまたは設定パラメータをシステム制御回路50の内部メモリまたはメモリ52に記憶し、ステップS127(図5)に戻る。一方、合焦でなければステップS209へ進む。   In step S208, the system control circuit 50 determines whether or not distance measurement (AF) is appropriate, that is, in-focus. If it is in-focus, the measurement data and / or setting parameters are stored in the internal memory of the system control circuit 50 or the memory 52, and the process returns to step S127 (FIG. 5). On the other hand, if not in focus, the process proceeds to step S209.

ステップS209では、システム制御回路50が、AE制御及びAWB制御で得られた測定データに基づいて、AF制御部42を用いてAF制御処理を行う。その後、ステップS201へ戻る。   In step S209, the system control circuit 50 performs AF control processing using the AF control unit 42 based on measurement data obtained by AE control and AWB control. Then, it returns to step S201.

このステップS209におけるAF制御処理については、図9及び図10を参照して詳しく後述する。   The AF control process in step S209 will be described later in detail with reference to FIGS.

図9及び図10は、図6のS209におけるAF制御処理の詳細な手順を示すフローチャートである。   9 and 10 are flowcharts showing the detailed procedure of the AF control process in S209 of FIG.

まず、AF制御部42は、AFスキャン動作を行うか否かを示すスキャンフラグを、AFスキャン動作を行わないことを表す「0」にセットする(S601)。このAFスキャン動作は、フォーカスレンズ11を駆動して、画像処理により得られるAF評価値を取得する動作である。   First, the AF control unit 42 sets a scan flag indicating whether or not to perform the AF scan operation to “0” indicating that the AF scan operation is not performed (S601). This AF scan operation is an operation for driving the focus lens 11 and acquiring an AF evaluation value obtained by image processing.

次に、AFスキャン動作におけるフォーカスレンズ11の駆動範囲であるスキャン範囲を決定する(S602)。続けて、このスキャン範囲の中でAF評価値を取得する回数であるスキャン回数を決定する(S603)と共に、フォーカスレンズ11をスキャン開始位置へ移動するため駆動周波数である第2の駆動周波数指令値を決定する(S604)。ここではスキャンフラグに0がセットされており、この場合、AF制御部42が、第2の駆動周波数指令値を駆動周波数平均化パラメータ決定部200へ出力する。また、AF制御部42は、駆動周波数制御部46及びドライブ部102に対して駆動開始信号を出力し、フォーカスレンズ11がスキャン開始位置へ移動される(S605)。   Next, a scan range that is a drive range of the focus lens 11 in the AF scan operation is determined (S602). Subsequently, the number of scans, which is the number of times the AF evaluation value is acquired within this scan range, is determined (S603), and the second drive frequency command value that is the drive frequency for moving the focus lens 11 to the scan start position. Is determined (S604). Here, the scan flag is set to 0, and in this case, the AF control unit 42 outputs the second drive frequency command value to the drive frequency averaging parameter determination unit 200. The AF control unit 42 outputs a drive start signal to the drive frequency control unit 46 and the drive unit 102, and the focus lens 11 is moved to the scan start position (S605).

一方で、ステップS602でスキャン範囲、ステップS603でスキャン回数が決定されたならば、AF制御部42は、下記式(301)に基づき、第1の駆動周波数指令値を決定する(S606)。   On the other hand, if the scan range is determined in step S602 and the number of scans is determined in step S603, the AF control unit 42 determines the first drive frequency command value based on the following equation (301) (S606).

第1の駆動周波数指令値=スキャン範囲/(スキャン回数−1)/CCD垂直転送周期 ・・・(301)
ここでCCD垂直転送周期は、撮像素子14の垂直転送周期である。
First drive frequency command value = scan range / (number of scans−1) / CCD vertical transfer cycle (301)
Here, the CCD vertical transfer cycle is a vertical transfer cycle of the image sensor 14.

つぎに、フォーカスレンズ11がスキャン開始位置に到達するのを待つ(S607でNO)。フォーカスレンズ11がスキャン開始位置に到達したら(S607でYES)、スキャンフラグを、AFスキャン動作を行うことを表す「1」にセットして(S608)、ステップS609へ進み、平均化パラメータ算出処理を実行する。この平均化パラメータ算出処理については、図11を参照して詳しく後述する。   Next, it waits for the focus lens 11 to reach the scan start position (NO in S607). When the focus lens 11 reaches the scan start position (YES in S607), the scan flag is set to “1” indicating that the AF scan operation is performed (S608), and the process proceeds to step S609 to perform the averaging parameter calculation process. Execute. The averaging parameter calculation process will be described later in detail with reference to FIG.

ステップS609の平均化パラメータ算出処理を終えると、撮像素子14の垂直転送信号の入力を待つ(S611でNO)。垂直転送信号が入力されると(S611でYES)、ディレイ時間として設定された所定時間の経過を待ち(S612)、AF制御部42は、画像処理により生成されたAF評価値を取得する(S613)。   When the averaging parameter calculation process in step S609 is completed, the input of the vertical transfer signal to the image sensor 14 is awaited (NO in S611). When the vertical transfer signal is input (YES in S611), the passage of a predetermined time set as the delay time is waited (S612), and the AF control unit 42 acquires the AF evaluation value generated by the image processing (S613). ).

つぎに、スキャン回数の数だけAF評価値を取得したか否かを判別し(S614)、取得していればステップS615へ進み、まだ取得していなければステップS611へ戻る。   Next, it is determined whether or not AF evaluation values have been acquired for the number of scans (S614). If acquired, the process proceeds to step S615, and if not acquired, the process returns to step S611.

ステップS615では、スキャンフラグを0にセットする。   In step S615, the scan flag is set to 0.

その後、ステップS611〜S614で取得した複数のAF評価値のうちで最大となるAF評価値を選択し、該AF評価値が取得された位置へフォーカスレンズ11を移動するための駆動周波数を第2の駆動周波数指令値として決定する(S616)。そして、AF制御部42は、駆動周波数制御部46及びドライブ部102に対して駆動開始信号を出力する(S617)。これによって、フォーカスレンズ11が合焦位置に移動される。   Thereafter, the largest AF evaluation value is selected from the plurality of AF evaluation values acquired in steps S611 to S614, and the drive frequency for moving the focus lens 11 to the position where the AF evaluation value is acquired is set to the second. Is determined as a drive frequency command value (S616). Then, the AF control unit 42 outputs a drive start signal to the drive frequency control unit 46 and the drive unit 102 (S617). As a result, the focus lens 11 is moved to the in-focus position.

図11は、図9のステップS609における平均化パラメータ算出処理の詳しい手順を示すフローチャートである。   FIG. 11 is a flowchart showing a detailed procedure of the averaging parameter calculation process in step S609 of FIG.

駆動周波数平均化パラメータ決定部200は、AF制御部42から第1の駆動周波数指令値fcmdを設定される(S501)。これに伴い、駆動周波数平均化パラメータ決定部200は、下記式(201)で表す数値を算出する。なおfclkは、基本クロックの周波数(1秒間のパルス数)である。   The drive frequency averaging parameter determination unit 200 is set with the first drive frequency command value fcmd from the AF control unit 42 (S501). Along with this, the drive frequency averaging parameter determination unit 200 calculates a numerical value represented by the following formula (201). Note that fclk is the frequency of the basic clock (number of pulses per second).

fclk/(fcmd×512/8) ・・・(201)
この数値は、1−2相駆動換算のパルスレートとして得られた第1の駆動周波数指令値fcmdを512分割マイクロステップ駆動周波数に変換し、得られた駆動周波数に対応した周期を確保するためにカウントすべき基本クロックのパルス数を表している。上記式(201)で算出される数値の小数点以下の値を切り捨てた整数値を求め、これを第1のカウント数CNT1として決定する(S502)。この第1のカウント数CNT1は、第1の周波数発生部202へ出力される。
fclk / (fcmd × 512/8) (201)
This numerical value is used to convert the first drive frequency command value fcmd obtained as a pulse rate converted to 1-2 phase drive into a 512-divided microstep drive frequency and to ensure a period corresponding to the obtained drive frequency. This represents the number of pulses of the basic clock to be counted. An integer value obtained by rounding down the value after the decimal point of the numerical value calculated by the above formula (201) is obtained, and this is determined as the first count number CNT1 (S502). The first count number CNT1 is output to the first frequency generator 202.

さらに、第1のカウント数CNT1を受け取った第1の周波数発生部202が出力すべきパルス信号の周波数である第1の駆動周波数f1を、下記式(202)に基づき算出する(S503)。   Further, the first drive frequency f1, which is the frequency of the pulse signal to be output by the first frequency generator 202 that has received the first count number CNT1, is calculated based on the following equation (202) (S503).

f1=fclk/(CNT1×512/8) ・・・(202)
つぎに、下記式(203)に基づき、第1の駆動周波数指令値fcmdと第1の駆動周波数f1との差Δfnを算出する。
f1 = fclk / (CNT1 × 512/8) (202)
Next, a difference Δfn between the first drive frequency command value fcmd and the first drive frequency f1 is calculated based on the following equation (203).

Δfn=f1−fcmd ・・・(203)
そして、この差Δfnが、所定の値(例えば、0.5pps)以上であるか否かを判別する(S504)。所定の値以上であればステップS505へ進み、所定の値よりも小さいならばステップS506へ戻る。
Δfn = f1−fcmd (203)
And it is discriminate | determined whether this difference (DELTA) fn is more than predetermined value (for example, 0.5pps) (S504). If it is equal to or greater than the predetermined value, the process proceeds to step S505, and if it is smaller than the predetermined value, the process returns to step S506.

ステップS506では、平均化フラグに0をセットし、ステップS611(図10)に進む。このように、差Δfnが所定の値より小さいときに平均化フラグを0にして、第1の駆動周波数選択部208が駆動周波数平均化部206からの出力パルス信号を選択しないようにする。これにより、システムの処理負荷を軽減できる。   In step S506, 0 is set to the averaging flag, and the process proceeds to step S611 (FIG. 10). As described above, when the difference Δfn is smaller than the predetermined value, the averaging flag is set to 0 so that the first drive frequency selection unit 208 does not select the output pulse signal from the drive frequency averaging unit 206. Thereby, the processing load of the system can be reduced.

ステップS505では、平均化フラグに1をセットする。さらに、差Δfnの値の小数点以下を四捨五入した整数値を、第1のパルス数nとして、駆動周波数平均化部206へ出力する(S507)。その後、ステップS611(図10)に戻る。   In step S505, 1 is set to the averaging flag. Further, an integer value obtained by rounding off the decimal value of the difference Δfn is output to the drive frequency averaging unit 206 as the first pulse number n (S507). Then, it returns to step S611 (FIG. 10).

ステップS502の実行の後、ステップS503の実行と並行して、下記式(204)に基づき、第2のカウント数CNT2を算出し、第2の周波数発生部204へ出力する(S508)。   After the execution of step S502, in parallel with the execution of step S503, the second count number CNT2 is calculated based on the following formula (204) and output to the second frequency generation unit 204 (S508).

CNT2=CNT1+1 ・・・(204)
さらに、第2のカウント数CNT2を受け取った第2の周波数発生部204が出力すべきパルス信号の周波数である第2の駆動周波数f2を、下記式(205)に基づき算出する(S509)。
CNT2 = CNT1 + 1 (204)
Further, the second drive frequency f2, which is the frequency of the pulse signal to be output by the second frequency generator 204 that has received the second count number CNT2, is calculated based on the following equation (205) (S509).

f2=fclk/(CNT2×512/8) ・・・(205)
つぎに、下記式(206)に基づき、第2の駆動周波数f2と第1の駆動周波数f1との差Δfmを算出する。
f2 = fclk / (CNT2 × 512/8) (205)
Next, a difference Δfm between the second drive frequency f2 and the first drive frequency f1 is calculated based on the following equation (206).

Δfm=f1−f2 ・・・(206)
そして、予め設定された許容駆動周波数分解能Resを用いて、下記式(207)で表す数値を算出する。
Δfm = f1-f2 (206)
Then, a numerical value represented by the following formula (207) is calculated using a preset allowable drive frequency resolution Res.

Δfm/Res ・・・(207)
この数値の小数点以下を四捨五入して得られる整数値を、平均化ループカウント数mとして、駆動周波数平均化部206へ出力する(S510)。その後、ステップS611(図10)に戻る。
Δfm / Res (207)
An integer value obtained by rounding off the decimal point of the numerical value is output to the drive frequency averaging unit 206 as an average loop count number m (S510). Then, it returns to step S611 (FIG. 10).

なお、駆動周波数平均化パラメータ決定部200は、平均化ループカウント数mを所定値よりも小さい値に保持するようにする。これによって、駆動音が可聴帯域に入って騒音となることを防止できる。   The drive frequency averaging parameter determination unit 200 holds the averaging loop count number m at a value smaller than a predetermined value. This prevents the drive sound from entering the audible band and becoming noise.

図7は、図5のステップS129における撮影処理の詳細な手順を示すフローチャートである。   FIG. 7 is a flowchart showing a detailed procedure of the photographing process in step S129 of FIG.

システム制御回路50は、システム制御回路50の内部メモリまたはメモリ52に記憶された測光データに従い、露光制御部40によって、絞り機能を有するシャッタ12を絞り値に応じて開放して(S301)撮像素子14を露光する(S302)。   In accordance with the photometric data stored in the internal memory of the system control circuit 50 or the memory 52, the system control circuit 50 opens the shutter 12 having the aperture function according to the aperture value by the exposure control unit 40 (S301). 14 is exposed (S302).

フラッシュフラグに基づきフラッシュ発光が必要か否かを判断し(S303)、必要な場合は(S303でYES)フラッシュ部48に発光させる(S304)。   Based on the flash flag, it is determined whether flash emission is necessary (S303). If necessary (YES in S303), the flash unit 48 is caused to emit light (S304).

システム制御回路50は、測光データに従って撮像素子14の露光終了を待ち(S305でNO)、露光が終了すると(S305でYES)シャッタ12を閉じる(S306)。そして、撮像素子14から電荷信号を読み出し、A/D変換器16、画像処理回路20、メモリ制御回路22を介して、または画像処理回路20だけは介さず、メモリ30に撮影画像データを書き込む(S307)。   The system control circuit 50 waits for the end of exposure of the image sensor 14 according to the photometric data (NO in S305), and closes the shutter 12 when the exposure ends (YES in S305) (S306). Then, a charge signal is read from the image sensor 14 and the photographed image data is written to the memory 30 via the A / D converter 16, the image processing circuit 20, the memory control circuit 22, or not only through the image processing circuit 20 ( S307).

設定された撮影モードに基づいて、フレーム処理を行う必要があるか否かを判別し(S308)、必要があるならばステップS309へ進み、必要がないならばステップS311へ進む。   Based on the set shooting mode, it is determined whether or not it is necessary to perform frame processing (S308). If necessary, the process proceeds to step S309, and if not necessary, the process proceeds to step S311.

ステップS309では、システム制御回路50は、メモリ制御回路22、また必要に応じて画像処理回路20を用いて、メモリ30に書き込まれた画像データを読み出して垂直加算処理(S309)や、色処理(S310)を順次行う。その後、処理を終えた画像データをメモリ30に書き込む。   In step S309, the system control circuit 50 reads the image data written in the memory 30 using the memory control circuit 22 and, if necessary, the image processing circuit 20, and performs vertical addition processing (S309) or color processing ( S310) is sequentially performed. Thereafter, the processed image data is written into the memory 30.

ステップS311では、システム制御回路50が、メモリ30から画像データを読み出し、メモリ制御回路22を介して画像表示メモリ24に表示画像データの転送を行う。   In step S 311, the system control circuit 50 reads the image data from the memory 30 and transfers the display image data to the image display memory 24 via the memory control circuit 22.

この一連の処理を終えたならば、図5のステップ134へ戻る。   When this series of processing is completed, the process returns to step 134 in FIG.

図8は、図5のステップS134における記録処理の詳細な手順を示すフローチャートである。   FIG. 8 is a flowchart showing a detailed procedure of the recording process in step S134 of FIG.

システム制御回路50は、メモリ制御回路22、また必要に応じて画像処理回路20を用いて、メモリ30に書き込まれた撮影画像データを読み出して撮像素子14の縦横画素比率を1:1に補間する画素正方化処理を行う(S401)。その後、処理を終えた画像データをメモリ30に書き込む。   The system control circuit 50 reads the captured image data written in the memory 30 using the memory control circuit 22 and, if necessary, the image processing circuit 20, and interpolates the vertical / horizontal pixel ratio of the image sensor 14 to 1: 1. Pixel square processing is performed (S401). Thereafter, the processed image data is written into the memory 30.

そして、メモリ30に書き込まれた画像データを読み出して、設定したモードに応じた画像圧縮処理を圧縮・伸長回路32により行う(S402)。その後、インタフェース90、コネクタ92を介して、記録媒体120へ圧縮した画像データの書き込みを行う(S403)。   Then, the image data written in the memory 30 is read out, and image compression processing according to the set mode is performed by the compression / decompression circuit 32 (S402). Thereafter, the compressed image data is written to the recording medium 120 via the interface 90 and the connector 92 (S403).

記録媒体120への書き込みが終わったならば、図5のステップS135へ戻る。   When the writing to the recording medium 120 is completed, the process returns to step S135 in FIG.

以上のようにして、本実施の形態では、第1の周波数発生部202が、基本クロックをカウントすることにより第1の周波数をもったパルス信号を駆動周波数平均化部206へ出力する。また、第2の周波数発生部204が、同一の基本クロックをカウントすることにより第1の周波数とは異なる第2の駆動周波数f2をもったパルス信号を駆動周波数平均化部206へ出力する。これらを受け取った駆動周波数平均化部206は、図3に示すように、第1の周波数をもったパルス信号を第1のパルス数nだけ出力した後、第2の駆動周波数f2をもったパルス信号を第2のパルス数(m−n)だけ(mは平均化ループカウント数)出力する。そして、この出力動作を繰り返す。   As described above, in the present embodiment, the first frequency generation unit 202 outputs the pulse signal having the first frequency to the drive frequency averaging unit 206 by counting the basic clock. The second frequency generation unit 204 outputs a pulse signal having a second drive frequency f2 different from the first frequency to the drive frequency averaging unit 206 by counting the same basic clock. The drive frequency averaging unit 206 that has received them outputs a pulse signal having the first frequency for the first number of pulses n and then a pulse having the second drive frequency f2, as shown in FIG. The signal is output by the second pulse number (mn) (m is the averaged loop count number). Then, this output operation is repeated.

すなわち、駆動周波数平均化部206は、第1の駆動周波数f1をもったパルス信号をnパルスだけ出力し、続けて第2の駆動周波数f2をもったパルス信号を(m−n)パルスだけ出力するということを繰り返す。これにより、長いスパンで見たとき、駆動周波数平均化部206は、下記式(208)で算出される周波数のパルス信号を出力していることなる。   That is, the drive frequency averaging unit 206 outputs a pulse signal having the first drive frequency f1 by n pulses, and subsequently outputs a pulse signal having the second drive frequency f2 by (mn) pulses. Repeat that. Thus, when viewed in a long span, the drive frequency averaging unit 206 outputs a pulse signal having a frequency calculated by the following equation (208).

(f1×n+f2×(m−n))/m ・・・(208)
特に、ステッピングモータのように、機械的な応答が第1の駆動周波数f1と第2の駆動周波数f2とを切り換える周期よりも充分長く、遅いものの制御においては、ほぼ、上記式(208)で算出される駆動周波数で駆動したものと等しいものとみなせる。
(F1 × n + f2 × (mn)) / m (208)
In particular, in the case of control that has a mechanical response sufficiently longer and slower than the cycle of switching between the first drive frequency f1 and the second drive frequency f2 as in the case of a stepping motor, it is almost calculated by the above equation (208). It can be considered that it is equivalent to what was driven with the drive frequency.

したがって、AFスキャン動作時に、AFアルゴリズム上、最適と判断された駆動周波数指令値と、実際に実現できる駆動周波数との差異を、許容範囲以内のズレに抑えることができる。これにより、AFスキャン動作における動作時間の増大に伴う合焦時間の増大を防ぐことができ、AFの高速化を図ることができる。   Therefore, during the AF scan operation, the difference between the drive frequency command value determined to be optimal by the AF algorithm and the drive frequency that can be actually realized can be suppressed to a deviation within an allowable range. Thereby, it is possible to prevent an increase in focusing time accompanying an increase in operating time in the AF scanning operation, and it is possible to increase the AF speed.

なお、上記の実施の形態では、駆動周波数平均化パラメータ決定部200が平均化ループカウント数mを駆動周波数平均化部206へ出力するようにしている。これに代わって、駆動周波数平均化パラメータ決定部200が、平均化ループカウント数mから第1のパル数nを減じて得られる数に相当する第2のパルス数(m−n)を駆動周波数平均化部206へ出力するようにしてもよい。   In the above embodiment, the drive frequency averaging parameter determination unit 200 outputs the averaged loop count number m to the drive frequency averaging unit 206. Instead, the drive frequency averaging parameter determination unit 200 calculates the second pulse number (mn) corresponding to the number obtained by subtracting the first pulse number n from the average loop count number m. You may make it output to the averaging part 206. FIG.

また、上記の実施の形態では、カメラ装置100に装着されたフォーカスレンズを駆動するステッピングモータを例に挙げて説明したが、本発明は、ステッピングモータが駆動する対象を限定するものではない。   In the above embodiment, the stepping motor that drives the focus lens mounted on the camera device 100 has been described as an example. However, the present invention does not limit the target that the stepping motor drives.

〔他の実施の形態〕
また、本発明の目的は、前述した実施の形態の機能を実現するソフトウェアのプログラムコードを記憶した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても達成される。
[Other Embodiments]
Another object of the present invention is to supply a storage medium storing software program codes for realizing the functions of the above-described embodiments to a system or apparatus, and a computer (or CPU, MPU, etc.) of the system or apparatus. It is also achieved by reading and executing the program code stored in the storage medium.

この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施の形態の機能を実現することになり、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code and the storage medium storing the program code constitute the present invention.

また、プログラムコードを供給するための記憶媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW等の光ディスク、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。または、プログラムコードをネットワークを介してダウンロードしてもよい。   Examples of the storage medium for supplying the program code include a floppy (registered trademark) disk, a hard disk, a magneto-optical disk, a CD-ROM, a CD-R, a CD-RW, a DVD-ROM, a DVD-RAM, and a DVD. An optical disc such as RW or DVD + RW, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used. Alternatively, the program code may be downloaded via a network.

また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施の形態の機能が実現されるだけではなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現される場合も含まれる。   Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) or the like running on the computer based on the instruction of the program code. Includes a case where part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その拡張機能を拡張ボードや拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現される場合も含まれる。   Furthermore, after the program code read from the storage medium is written to a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the expanded function is based on the instruction of the program code. This includes a case where a CPU or the like provided on the expansion board or the expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

本発明の一実施の形態に係るステッピングモータ駆動装置が搭載されたカメラ装置の構成を示すブロック図である。It is a block diagram which shows the structure of the camera apparatus by which the stepping motor drive device which concerns on one embodiment of this invention is mounted. 図1に示す駆動周波数制御部の詳細な構成を示すブロック図である。It is a block diagram which shows the detailed structure of the drive frequency control part shown in FIG. 駆動周波数平均化部で生成され、第1の駆動周波数選択部へ出力される平均化周波数パルス信号であって、第1の駆動周波数f1をもったパルス信号と第2の駆動周波数f2をもったパルス信号とが交互に切り替わる平均化周波数パルス信号を示すタイミングチャートである。An average frequency pulse signal generated by the drive frequency averaging unit and output to the first drive frequency selection unit, having a pulse signal having the first drive frequency f1 and a second drive frequency f2. It is a timing chart which shows the average frequency pulse signal with which a pulse signal switches alternately. 図1に示すカメラ装置の動作の手順を示すフローチャート(1/2)である。It is a flowchart (1/2) which shows the procedure of operation | movement of the camera apparatus shown in FIG. 図1に示すカメラ装置の動作の手順を示すフローチャート(2/2)である。3 is a flowchart (2/2) illustrating a procedure of operations of the camera apparatus illustrated in FIG. 1. 図5のステップS122における測距・測光処理の詳細な手順を示すフローチャートである。It is a flowchart which shows the detailed procedure of the ranging / photometry process in step S122 of FIG. 図5のステップS129における撮影処理の詳細な手順を示すフローチャートである。It is a flowchart which shows the detailed procedure of the imaging | photography process in FIG.5 S129. 図5のステップS134における記録処理の詳細な手順を示すフローチャートである。It is a flowchart which shows the detailed procedure of the recording process in step S134 of FIG. 図6のS209におけるAF制御処理の詳細な手順を示すフローチャート(1/2)である。It is a flowchart (1/2) which shows the detailed procedure of AF control processing in S209 of FIG. 図6のS209におけるAF制御処理の詳細な手順を示すフローチャート(2/2)である。It is a flowchart (2/2) which shows the detailed procedure of AF control processing in S209 of FIG. 図9のステップS609における平均化パラメータ算出処理の詳しい手順を示すフローチャートである。10 is a flowchart showing a detailed procedure of an averaging parameter calculation process in step S609 of FIG. 基本クロックと、該基本クロックに基づき生成される駆動周波数f1,f2とを示す図である。It is a figure which shows the basic clock and drive frequency f1, f2 produced | generated based on this basic clock. 所定のスキャン範囲においてスキャン回数を6回とし、AF評価値を取得しながらスキャン動作を、このスキャン回数だけ行う場合における各スキャン回のスキャン範囲を示す図である。It is a figure which shows the scanning range of each scanning time when the scanning frequency | count is set to 6 times in a predetermined scanning range, and a scanning operation is performed only this scanning frequency | count, acquiring AF evaluation value.

符号の説明Explanation of symbols

42 AF制御部
46 駆動周波数制御部
102 ドライブ部(駆動手段)
200 駆動周波数平均化パラメータ決定部
202 第1の周波数発生部(第1の周波数発生手段)
204 第2の周波数発生部(第2の周波数発生手段)
206 駆動周波数平均化部(駆動パルス出力手段)
208 第1の駆動周波数選択部
210 第2の駆動周波数選択部
42 AF control unit 46 Drive frequency control unit 102 Drive unit (drive means)
200 driving frequency averaging parameter determining unit 202 first frequency generating unit (first frequency generating means)
204 Second frequency generator (second frequency generator)
206 Drive frequency averaging unit (drive pulse output means)
208 First driving frequency selection unit 210 Second driving frequency selection unit

Claims (20)

基本クロックをカウントすることにより第1の周波数をもつ第1のパルス信号を発生する第1の周波数発生手段と、
前記基本クロックをカウントすることにより、前記第1の周波数とは異なる第2の周波数をもつ第2のパルス信号を発生する第2の周波数発生手段と、
前記第1及び第2の周波数発生手段によってそれぞれ発生された第1及び第2のパルス信号を受け取り、前記第1のパルス信号を第1のパルス数だけ出力し、続いて前記第2のパルス信号を第2のパルス数だけ出力することを繰り返し行い、駆動パルスとして出力する駆動パルス出力手段と、
前記駆動パルス出力手段によって出力された駆動パルスによってステッピングモータを駆動する駆動手段と
を有することを特徴とするステッピングモータ駆動装置。
First frequency generating means for generating a first pulse signal having a first frequency by counting a basic clock;
Second frequency generating means for generating a second pulse signal having a second frequency different from the first frequency by counting the basic clock;
Receiving the first and second pulse signals respectively generated by the first and second frequency generating means, outputting the first pulse signal by the first number of pulses, and subsequently the second pulse signal; Driving pulse output means for repeatedly outputting the same number of pulses as a driving pulse,
A stepping motor drive device comprising: drive means for driving the stepping motor by the drive pulse output by the drive pulse output means.
前記第1及び第2の周波数発生手段は、前記基本クロックを第1及び第2のカウント数だけそれぞれカウントすることにより、前記第1および第2の周波数をそれぞれもつ前記第1および第2のパルス信号をそれぞれ発生し、
前記ステッピングモータの駆動目標を表す駆動周波数指令値に基づき、前記第1及び第2のカウント数、並びに前記第1および第2のパルス数を決定する決定手段を更に有することを特徴とする請求項1記載のステッピングモータ駆動装置。
The first and second frequency generation means count the basic clock by the first and second count numbers, respectively, so that the first and second pulses having the first and second frequencies respectively. Each generates a signal,
2. The apparatus according to claim 1, further comprising a determining unit that determines the first and second count numbers and the first and second pulse numbers based on a drive frequency command value representing a drive target of the stepping motor. The stepping motor driving device according to 1.
前記第1及び第2の周波数発生手段は、前記基本クロックを第1及び第2のカウント数だけそれぞれカウントすることにより、前記第1および第2の周波数をそれぞれもつ前記第1および第2のパルス信号をそれぞれ発生し、
前記ステッピングモータの駆動目標を表す駆動周波数指令値に基づき、前記第1及び第2のカウント数と、前記第1のパルス数と、前記第1および第2のパルス数の合計数とを決定する決定手段を更に有することを特徴とする請求項1記載のステッピングモータ駆動装置。
The first and second frequency generation means count the basic clock by the first and second count numbers, respectively, so that the first and second pulses having the first and second frequencies respectively. Each generates a signal,
Based on a drive frequency command value representing a drive target of the stepping motor, the first and second count numbers, the first pulse number, and the total number of the first and second pulse numbers are determined. 2. The stepping motor driving apparatus according to claim 1, further comprising a determining unit.
前記決定手段は、前記第1および第2のパルス数の合計数を所定値よりも小さい値に決定することを特徴とする請求項3記載のステッピングモータ駆動装置。   4. The stepping motor driving apparatus according to claim 3, wherein the determining means determines the total number of the first and second pulses to a value smaller than a predetermined value. 前記決定手段は、前記第2のカウント数を、前記第1のカウント数に所定数を加えて得られる数として決定することを特徴とする請求項2または請求項3記載のステッピングモータ駆動装置。   4. The stepping motor driving apparatus according to claim 2, wherein the determining unit determines the second count number as a number obtained by adding a predetermined number to the first count number. 前記ステッピングモータ駆動装置は、カメラ装置に含まれるフォーカスレンズの駆動を制御することを特徴とする請求項1乃至請求項5のいずれかに記載のステッピングモータ駆動装置。   6. The stepping motor driving device according to claim 1, wherein the stepping motor driving device controls driving of a focus lens included in the camera device. 前記フォーカスレンズを駆動して自動焦点調節評価値を取得する自動焦点調節スキャン動作を行う場合には前記駆動手段を動作させ、前記自動焦点調節スキャン動作を行わない場合には、前記駆動手段を動作させないようにする第1の制御手段を更に有することを特徴とする請求項6記載のステッピングモータ駆動装置。   When the automatic focus adjustment scan operation for driving the focus lens to obtain the automatic focus adjustment evaluation value is performed, the drive unit is operated, and when the automatic focus adjustment scan operation is not performed, the drive unit is operated. 7. The stepping motor driving apparatus according to claim 6, further comprising first control means for preventing the stepping motor from being operated. 前記自動焦点調節スキャン動作を行う場合に、前記フォーカスレンズの所定の駆動範囲内の複数の分割区画の各々において前記駆動手段を動作させ、該動作によって取得された複数の自動焦点調節評価値のなかで最大の自動焦点調節評価値を検出する検出手段と、
前記検出手段によって検出された最大の自動焦点調節評価値が取得された分割区画に前記フォーカスレンズを移動させる移動手段と
を更に有することを特徴とする請求項7記載のステッピングモータ駆動装置。
When performing the automatic focus adjustment scan operation, the drive means is operated in each of a plurality of divided sections within a predetermined drive range of the focus lens, and among the plurality of automatic focus adjustment evaluation values acquired by the operation. Detecting means for detecting the maximum automatic focusing evaluation value in
The stepping motor driving apparatus according to claim 7, further comprising a moving unit that moves the focus lens to the divided section where the maximum automatic focus adjustment evaluation value detected by the detecting unit is acquired.
前記駆動周波数指令値と前記第1の周波数との差が所定の値より小さいとき、前記駆動パルス出力手段を動作させないようにする第2の制御手段を更に有することを特徴とする請求項2または請求項3記載のステッピングモータ駆動装置。   3. The apparatus according to claim 2, further comprising second control means for preventing the drive pulse output means from operating when a difference between the drive frequency command value and the first frequency is smaller than a predetermined value. The stepping motor driving device according to claim 3. 前記駆動パルス出力手段はレートマルチプライヤで構成されることを特徴とする請求項1記載のステッピングモータ駆動装置。   2. The stepping motor driving apparatus according to claim 1, wherein the driving pulse output means is constituted by a rate multiplier. 基本クロックをカウントすることにより第1の周波数をもつ第1のパルス信号を発生する第1の周波数発生ステップと、
前記基本クロックをカウントすることにより、前記第1の周波数とは異なる第2の周波数をもつ第2のパルス信号を発生する第2の周波数発生ステップと、
前記第1及び第2の周波数発生ステップにおいてそれぞれ発生された第1及び第2のパルス信号を受け取り、前記第1のパルス信号を第1のパルス数だけ出力し、続いて前記第2のパルス信号を第2のパルス数だけ出力することを繰り返し行い、駆動パルスとして出力する駆動パルス出力ステップと、
前記駆動パルス出力ステップにおいて出力された駆動パルスによってステッピングモータを駆動する駆動ステップと
を有することを特徴とするステッピングモータ駆動方法。
A first frequency generating step of generating a first pulse signal having a first frequency by counting a basic clock;
A second frequency generating step of generating a second pulse signal having a second frequency different from the first frequency by counting the basic clock;
Receiving the first and second pulse signals generated in the first and second frequency generation steps, respectively, outputting the first pulse signal by the first number of pulses, and subsequently the second pulse signal; Repeatedly outputting the second number of pulses, and a drive pulse output step for outputting as a drive pulse;
A step of driving the stepping motor by the drive pulse output in the drive pulse output step.
前記第1及び第2の周波数発生ステップでは、前記基本クロックを第1及び第2のカウント数だけそれぞれカウントすることにより、前記第1および第2の周波数をそれぞれもつ前記第1および第2のパルス信号をそれぞれ発生し、
前記ステッピングモータの駆動目標を表す駆動周波数指令値に基づき、前記第1及び第2のカウント数、並びに前記第1および第2のパルス数を決定する決定ステップを更に有することを特徴とする請求項11記載のステッピングモータ駆動方法。
In the first and second frequency generation steps, the first and second pulses respectively having the first and second frequencies are obtained by counting the basic clock by the first and second count numbers, respectively. Each generates a signal,
The method further comprises a determining step of determining the first and second count numbers and the first and second pulse numbers based on a drive frequency command value representing a drive target of the stepping motor. 11. A stepping motor driving method according to 11.
前記第1及び第2の周波数発生ステップでは、前記基本クロックを第1及び第2のカウント数だけそれぞれカウントすることにより、前記第1および第2の周波数をそれぞれもつ前記第1および第2のパルス信号をそれぞれ発生し、
前記ステッピングモータの駆動目標を表す駆動周波数指令値に基づき、前記第1及び第2のカウント数と、前記第1のパルス数と、前記第1および第2のパルス数の合計数とを決定する決定ステップを更に有することを特徴とする請求項11記載のステッピングモータ駆動方法。
In the first and second frequency generation steps, the first and second pulses respectively having the first and second frequencies are obtained by counting the basic clock by the first and second count numbers, respectively. Each generates a signal,
Based on a drive frequency command value representing a drive target of the stepping motor, the first and second count numbers, the first pulse number, and the total number of the first and second pulse numbers are determined. 12. The stepping motor driving method according to claim 11, further comprising a determination step.
前記決定ステップでは、前記第1および第2のパルス数の合計数を所定値よりも小さい値に決定することを特徴とする請求項13記載のステッピングモータ駆動方法。   14. The stepping motor driving method according to claim 13, wherein in the determining step, the total number of the first and second pulses is determined to be smaller than a predetermined value. 前記決定ステップでは、前記第2のカウント数を、前記第1のカウント数に所定数を加えて得られる数として決定することを特徴とする請求項12または請求項13記載のステッピングモータ駆動方法。   14. The stepping motor driving method according to claim 12, wherein, in the determining step, the second count number is determined as a number obtained by adding a predetermined number to the first count number. 前記ステッピングモータ駆動方法によって、カメラ装置に含まれるフォーカスレンズの駆動が制御されることを特徴とする請求項11乃至請求項15のいずれかに記載のステッピングモータ駆動方法。   16. The stepping motor driving method according to claim 11, wherein driving of a focus lens included in the camera device is controlled by the stepping motor driving method. 前記フォーカスレンズを駆動して自動焦点調節評価値を取得する自動焦点調節スキャン動作を行う場合には前記駆動ステップを実行させ、前記自動焦点調節スキャン動作を行わない場合には、前記駆動ステップを実行させないようにする第1の制御ステップを更に有することを特徴とする請求項16記載のステッピングモータ駆動方法。   The drive step is executed when the auto focus adjustment scan operation for driving the focus lens to acquire the auto focus adjustment evaluation value is performed, and the drive step is executed when the auto focus adjustment scan operation is not performed. 17. The stepping motor driving method according to claim 16, further comprising a first control step for preventing the stepping motor from being operated. 前記自動焦点調節スキャン動作を行う場合に、前記フォーカスレンズの所定の駆動範囲内の複数の分割区画の各々において前記駆動ステップを実行させ、該実行によって取得された複数の自動焦点調節評価値のなかで最大の自動焦点調節評価値を検出する検出ステップと、
前記検出ステップにおいて検出された最大の自動焦点調節評価値が取得された分割区画に前記フォーカスレンズを移動させる移動ステップと
を更に有することを特徴とする請求項17記載のステッピングモータ駆動方法。
When performing the automatic focus adjustment scan operation, the drive step is executed in each of a plurality of divided sections within a predetermined drive range of the focus lens, and among the plurality of automatic focus adjustment evaluation values obtained by the execution A detection step for detecting the maximum autofocus evaluation value at
The stepping motor driving method according to claim 17, further comprising a moving step of moving the focus lens to the divided section from which the maximum automatic focus adjustment evaluation value detected in the detection step is acquired.
前記駆動周波数指令値と前記第1の周波数との差が所定の値より小さいとき、前記駆動パルス出力ステップを実行させないようにする第2の制御ステップを更に有することを特徴とする請求項12または請求項13記載のステッピングモータ駆動方法。   13. The method according to claim 12, further comprising a second control step that prevents the drive pulse output step from being executed when a difference between the drive frequency command value and the first frequency is smaller than a predetermined value. The stepping motor driving method according to claim 13. ステッピングモータ駆動方法を、コンピュータに実行させるためのプログラムにおいて、該ステッピングモータ駆動方法が、
基本クロックをカウントすることにより第1の周波数をもつ第1のパルス信号を発生する第1の周波数発生ステップと、
前記基本クロックをカウントすることにより、前記第1の周波数とは異なる第2の周波数をもつ第2のパルス信号を発生する第2の周波数発生ステップと、
前記第1及び第2の周波数発生ステップにおいてそれぞれ発生された第1及び第2のパルス信号を受け取り、前記第1のパルス信号を第1のパルス数だけ出力し、続いて前記第2のパルス信号を第2のパルス数だけ出力することを繰り返し行い、駆動パルスとして出力する駆動パルス出力ステップと、
前記駆動パルス出力ステップにおいて出力された駆動パルスによってステッピングモータを駆動する駆動ステップと
を有することを特徴とするプログラム。
In a program for causing a computer to execute a stepping motor driving method, the stepping motor driving method includes:
A first frequency generating step of generating a first pulse signal having a first frequency by counting a basic clock;
A second frequency generating step of generating a second pulse signal having a second frequency different from the first frequency by counting the basic clock;
Receiving the first and second pulse signals generated in the first and second frequency generation steps, respectively, outputting the first pulse signal by the first number of pulses, and subsequently the second pulse signal; Repeatedly outputting the second number of pulses, and a drive pulse output step for outputting as a drive pulse;
And a drive step of driving the stepping motor by the drive pulse output in the drive pulse output step.
JP2006188244A 2006-07-07 2006-07-07 Stepping motor driving apparatus, stepping motor driving method, and program Expired - Fee Related JP4886399B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006188244A JP4886399B2 (en) 2006-07-07 2006-07-07 Stepping motor driving apparatus, stepping motor driving method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006188244A JP4886399B2 (en) 2006-07-07 2006-07-07 Stepping motor driving apparatus, stepping motor driving method, and program

Publications (3)

Publication Number Publication Date
JP2008017659A true JP2008017659A (en) 2008-01-24
JP2008017659A5 JP2008017659A5 (en) 2009-08-20
JP4886399B2 JP4886399B2 (en) 2012-02-29

Family

ID=39074146

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006188244A Expired - Fee Related JP4886399B2 (en) 2006-07-07 2006-07-07 Stepping motor driving apparatus, stepping motor driving method, and program

Country Status (1)

Country Link
JP (1) JP4886399B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104828725A (en) * 2014-08-28 2015-08-12 北汽福田汽车股份有限公司 Hydraulic control system and engineering machinery having hydraulic control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1169886A (en) * 1997-08-20 1999-03-09 Nippon Parusumootaa Kk Drive control integrated circuit for stepping motor and stepping motor with drive control integrated circuit
JP2004336232A (en) * 2003-05-02 2004-11-25 Hochiki Corp Frequency division circuit and method therefor
JP2005077959A (en) * 2003-09-02 2005-03-24 Canon Inc Imaging apparatus and focus control method for imaging apparatus
JP2006058421A (en) * 2004-08-18 2006-03-02 Samsung Techwin Co Ltd Method and apparatus for controlling automatic focusing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1169886A (en) * 1997-08-20 1999-03-09 Nippon Parusumootaa Kk Drive control integrated circuit for stepping motor and stepping motor with drive control integrated circuit
JP2004336232A (en) * 2003-05-02 2004-11-25 Hochiki Corp Frequency division circuit and method therefor
JP2005077959A (en) * 2003-09-02 2005-03-24 Canon Inc Imaging apparatus and focus control method for imaging apparatus
JP2006058421A (en) * 2004-08-18 2006-03-02 Samsung Techwin Co Ltd Method and apparatus for controlling automatic focusing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104828725A (en) * 2014-08-28 2015-08-12 北汽福田汽车股份有限公司 Hydraulic control system and engineering machinery having hydraulic control system

Also Published As

Publication number Publication date
JP4886399B2 (en) 2012-02-29

Similar Documents

Publication Publication Date Title
JP4756932B2 (en) Imaging device and interchangeable lens
US20050185064A1 (en) Image pickup apparatus, control method therefor, control program for implementing the control method, and storage medium storing the control program
KR100739585B1 (en) Image pickup apparatus and control method thereof
JP2007028211A (en) Imaging apparatus and control method thereof
JP2007293144A (en) Optical equipment
JP2007081741A (en) Imaging apparatus and its control method
JP4886399B2 (en) Stepping motor driving apparatus, stepping motor driving method, and program
JP2005266784A (en) Imaging apparatus, its control method, its control program, and storage medium
JP4881195B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2010096790A (en) Imaging apparatus
JP2006203689A (en) Imaging apparatus and control method thereof, program, and storage medium
JP2005292740A (en) Electronic camera
JP2007006273A (en) Imaging device and control method therefor
JP2006235060A (en) Imaging apparatus
JP2006270426A (en) Imaging apparatus, its control method, and computer program
JP2015161893A (en) Imaging device and control method for imaging device
JP5127662B2 (en) Lens barrel, imaging device
EP3322176B1 (en) Imaging apparatus and control method thereof
JP2010160323A (en) Imaging apparatus, control method therefor, and program
JP2005223766A (en) Imaging apparatus and its control method
JP2005249960A (en) Imaging apparatus and auxiliary light usage in the same
JP2009302778A (en) Image capturing apparatus and control method thereof
JP5264547B2 (en) Display control apparatus, control method, program, and storage medium
JP2010041598A (en) Imaging apparatus, and control method and control program for the same
JP2006203665A (en) Imaging device and method therefor, and recording medium and program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090706

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090706

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110810

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110830

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111031

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111206

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111209

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141216

Year of fee payment: 3

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141216

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees