JP5473124B2 - MOTOR CONTROL DEVICE AND ELECTRONIC DEVICE USING THE SAME - Google Patents

MOTOR CONTROL DEVICE AND ELECTRONIC DEVICE USING THE SAME Download PDF

Info

Publication number
JP5473124B2
JP5473124B2 JP2009267164A JP2009267164A JP5473124B2 JP 5473124 B2 JP5473124 B2 JP 5473124B2 JP 2009267164 A JP2009267164 A JP 2009267164A JP 2009267164 A JP2009267164 A JP 2009267164A JP 5473124 B2 JP5473124 B2 JP 5473124B2
Authority
JP
Japan
Prior art keywords
pwm signal
level
voice coil
drive command
data signals
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.)
Active
Application number
JP2009267164A
Other languages
Japanese (ja)
Other versions
JP2011114895A (en
Inventor
彰人 齋藤
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.)
Rohm Co Ltd
Original Assignee
Rohm Co Ltd
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 Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP2009267164A priority Critical patent/JP5473124B2/en
Publication of JP2011114895A publication Critical patent/JP2011114895A/en
Application granted granted Critical
Publication of JP5473124B2 publication Critical patent/JP5473124B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Lens Barrels (AREA)
  • Control Of Linear Motors (AREA)

Description

この発明はモータ制御装置およびそれを用いた電子機器に関し、特に、ボイスコイルモータを制御するモータ制御装置と、それを用いた電子機器に関する。   The present invention relates to a motor control device and an electronic device using the same, and more particularly to a motor control device that controls a voice coil motor and an electronic device using the same.

従来より、ビデオカメラ、デジタルカメラ、スチルカメラ、プロジェクタなどの電子機器には、レンズと、レンズを移動させるモータと、モータを制御するモータ制御装置とが設けられている(たとえば、特許文献1参照)。また、モータとしてボイスコイルモータを使用するものもある(たとえば、特許文献2参照)。   2. Description of the Related Art Conventionally, electronic devices such as a video camera, a digital camera, a still camera, and a projector are provided with a lens, a motor that moves the lens, and a motor control device that controls the motor (for example, see Patent Document 1). ). Some motors use voice coil motors (see, for example, Patent Document 2).

特開2008−111942号公報JP 2008-111942 A 特開2009−229602号公報JP 2009-229602 A

ボイスコイルモータでは、コイルに流す電流の方向および値を制御して、モータの駆動力の方向および大きさを制御する。コイルに電流を流す第1の方法としては、コイルの端子間にアナログ電圧を印加する方法がある。この第1の方法では、コイルに流す電流(すなわち駆動力)を線形に変化させることができるが、消費電力が大きくなると言う問題がある。   In the voice coil motor, the direction and value of the driving force of the motor are controlled by controlling the direction and value of the current flowing through the coil. As a first method of passing a current through the coil, there is a method of applying an analog voltage between the terminals of the coil. In the first method, the current (that is, the driving force) flowing through the coil can be changed linearly, but there is a problem that the power consumption increases.

また、コイルに電流を流す第2の方法としては、コイルの端子間にPWM(Pulse Width Modulation:パルス幅変調)方式で電圧を印加する方法がある。この第2の方法では、消費電力を小さくできるが、コイルに流す電流(すなわち駆動力)を線形に変化させることができないと言う問題がある。   In addition, as a second method of passing a current through the coil, there is a method in which a voltage is applied between terminals of the coil by a PWM (Pulse Width Modulation) method. In the second method, power consumption can be reduced, but there is a problem that the current (ie, driving force) flowing through the coil cannot be changed linearly.

第2の方法において、電流の線形性を改善する方法として、PWM信号のデューティ比を変化させるステップの数を増やすことも考えられるが、そのためにはPWM信号を生成するためのクロック信号の周波数を高める必要があり、消費電力が増大してしまう。   In the second method, as a method for improving the linearity of the current, it is conceivable to increase the number of steps for changing the duty ratio of the PWM signal. For this purpose, the frequency of the clock signal for generating the PWM signal is increased. It is necessary to increase the power consumption.

また、コイルにパルス電圧を印加すると、電圧の立ち上がりおよび立ち下がりが鈍る。このため、たとえPWM信号のデューティ比を変化させるステップの数を増やしても、PWM信号のパルス幅が狭い範囲では電流を線形に変化させることができない(図5および図6参照)。   Further, when a pulse voltage is applied to the coil, the rise and fall of the voltage are blunt. For this reason, even if the number of steps for changing the duty ratio of the PWM signal is increased, the current cannot be changed linearly in a range where the pulse width of the PWM signal is narrow (see FIGS. 5 and 6).

それゆえに、この発明の主たる目的は、ボイスコイルモータの駆動力を低消費電力で線形に制御することが可能なモータ制御装置と、それを用いた電子機器を提供することである。   Therefore, a main object of the present invention is to provide a motor control device capable of linearly controlling the driving force of a voice coil motor with low power consumption, and an electronic apparatus using the motor control device.

この発明に係るモータ制御装置は、ボイスコイルモータを制御するモータ制御装置であって、第1および第2のPWM信号を発生するPWM信号発生部と、第1のPWM信号が活性化レベルの場合はボイスコイルモータのコイルの一方端子に電源電圧を印加し、第1のPWM信号が非活性化レベルの場合はコイルの一方端子に基準電圧を印加する第1のドライバと、第2のPWM信号が活性化レベルの場合はコイルの他方端子に電源電圧を印加し、第2のPWM信号が非活性化レベルの場合はコイルの他方端子に基準電圧を印加する第2のドライバとを備えたものである。PWM信号発生部は、ボイスコイルモータの駆動力をゼロにする場合は、予め定められた第1の固定時間だけ第1のPWM信号を活性化レベルにするとともに、予め定められた第2の固定時間だけ第2のPWM信号を活性化レベルにし、ボイスコイルモータに正方向の駆動力を発生させる場合は、駆動力の大きさに応じた長さの第1の可変時間と第1の固定時間だけ第1のPWM信号を活性化レベルにするとともに、第2の固定時間だけ第2のPWM信号を活性化レベルにし、ボイスコイルモータに負方向の駆動力を発生させる場合は、第1の固定時間だけ第1のPWM信号を活性化レベルにするとともに、第2の固定時間と駆動力の大きさに応じた長さの第2の可変時間だけ第2のPWM信号を活性化レベルにする。   The motor control device according to the present invention is a motor control device for controlling a voice coil motor, wherein the PWM signal generator for generating the first and second PWM signals and the first PWM signal are at the activation level. Applies a power supply voltage to one terminal of the coil of the voice coil motor, and when the first PWM signal is at an inactive level, a first driver that applies a reference voltage to one terminal of the coil, and a second PWM signal And a second driver that applies a reference voltage to the other terminal of the coil when the second PWM signal is at an inactive level. It is. When the driving force of the voice coil motor is set to zero, the PWM signal generation unit sets the first PWM signal to the activation level for a predetermined first fixed time and sets the predetermined second fixed value. In the case where the second PWM signal is activated for the time and the voice coil motor generates a driving force in the positive direction, the first variable time and the first fixed time having a length corresponding to the magnitude of the driving force. When the first PWM signal is set to the activation level only and the second PWM signal is set to the activation level for the second fixed time to generate the negative direction driving force in the voice coil motor, the first fixed The first PWM signal is set to the activation level only for the time, and the second PWM signal is set to the activation level for the second variable time having a length corresponding to the second fixed time and the magnitude of the driving force.

好ましくは、PWM信号発生部は、第1のPWM信号を活性化レベルにし、次いで第2のPWM信号を活性化レベルにし、次いで第1のPWM信号を非活性化レベルにし、次いで第2のPWM信号を非活性化レベルにする。   Preferably, the PWM signal generation unit sets the first PWM signal to the activation level, then sets the second PWM signal to the activation level, then sets the first PWM signal to the deactivation level, and then sets the second PWM signal. The signal is deactivated.

また好ましくは、さらに、第1〜第N(ただし、Nは正の整数である)のデータ信号を含み、ボイスコイルモータの駆動力の大きさを指令する駆動指令値を生成する駆動指令部と、駆動指令値のうちの下位のM(ただし、MはNよりも小さな正の整数である)ビットのデータ信号を予め定められた周期で積算する積算器と、第1〜第Nのデータ信号のうちの上位の第1〜第(N−M)のデータ信号を受け、積算器においてM桁から(M+1)桁への桁上げが行なわれなかった場合は第1〜第(N−M)のデータ信号をそのまま出力し、積算器においてM桁から(M+1)桁への桁上げが行なわれた場合は第1〜第(N−M)のデータ信号をインクリメントして出力する信号補正部とを備える。PWM信号発生部は、信号補正部から出力された第1〜第(N−M)のデータ信号に基づいて、第1および第2のPWM信号を生成する。   Further preferably, a drive command unit that further includes a first to Nth data signal (where N is a positive integer) and generates a drive command value that commands the magnitude of the driving force of the voice coil motor; , An integrator for accumulating lower M bits of the drive command value (where M is a positive integer smaller than N) in a predetermined cycle, and first to Nth data signals When the first to (N−M) data signals are received, and the carry from the M digit to the (M + 1) digit is not performed in the accumulator, the first to (N−M) A signal correction unit that outputs the data signal as it is and increments and outputs the first to (N−M) data signals when the multiplier performs a carry from the M digit to the (M + 1) digit. Is provided. The PWM signal generation unit generates first and second PWM signals based on the first to (N−M) data signals output from the signal correction unit.

また、この発明に係る電子機器は、レンズと、レンズを移動させるボイスコイルモータと、上記モータ制御装置とを備えたものである。   An electronic apparatus according to the present invention includes a lens, a voice coil motor that moves the lens, and the motor control device.

この発明に係るモータ制御装置では、ボイスコイルモータの駆動力をゼロにする場合でも、第1の固定時間だけ第1のPWM信号を活性化レベルにするとともに、第2の固定時間だけ第2のPWM信号を活性化レベルにする。したがって、PWM信号のパルス幅を広くすることができ、コイルに印加する電圧の立ち上がりおよび立ち下がりの鈍りの影響を軽減することができる。よって、ボイスコイルモータの駆動力を低消費電力で線形に制御することができる。   In the motor control device according to the present invention, even when the driving force of the voice coil motor is set to zero, the first PWM signal is set to the activation level for the first fixed time and the second fixed time is used for the second time. The PWM signal is set to the activation level. Therefore, the pulse width of the PWM signal can be widened, and the influence of the rise and fall of the voltage applied to the coil can be reduced. Therefore, the driving force of the voice coil motor can be controlled linearly with low power consumption.

この発明の実施の形態1によるデジタルカメラの要部を示すブロック図である。It is a block diagram which shows the principal part of the digital camera by Embodiment 1 of this invention. 図1に示したボイスコイルモータの原理的構成を示す図である。It is a figure which shows the fundamental structure of the voice coil motor shown in FIG. 図1に示したドライバの構成を示す回路図である。FIG. 2 is a circuit diagram illustrating a configuration of a driver illustrated in FIG. 1. 図1に示したPWM信号発生部の構成を示すブロック図である。It is a block diagram which shows the structure of the PWM signal generation part shown in FIG. 従来のデジタルカメラの動作を示すタイムチャートである。It is a time chart which shows operation | movement of the conventional digital camera. 従来の問題点と本願発明の効果を説明するための図である。It is a figure for demonstrating the conventional problem and the effect of this invention. 本願のデジタルカメラの動作を示すタイムチャートである。It is a time chart which shows operation | movement of the digital camera of this application. 図4に示した信号発生回路の構成を示すブロック図である。FIG. 5 is a block diagram illustrating a configuration of a signal generation circuit illustrated in FIG. 4. 図8に示した信号発生回路の動作を示すタイムチャートである。9 is a time chart illustrating an operation of the signal generation circuit illustrated in FIG. 8. 実施の形態1の問題点と実施の形態2の効果を説明するための図である。It is a figure for demonstrating the problem of Embodiment 1 and the effect of Embodiment 2. FIG. この発明の実施の形態2によるデジタルカメラの要部を示すブロック図である。It is a block diagram which shows the principal part of the digital camera by Embodiment 2 of this invention. 図11に示したデジタルカメラの動作を示すタイムチャートである。12 is a time chart illustrating an operation of the digital camera illustrated in FIG. 11.

[実施の形態1]
本願の実施の形態1のデジタルカメラは、図1に示すように、ジャイロセンサ1、位置センサ2、駆動指令部3、PWM信号発生部4、ドライバ5、ボイスコイルモータ(VCM)6、およびレンズ7を備える。ジャイロセンサ1は、デジタルカメラの手振れを検出する。位置センサ2は、レンズ7の位置を検出する。
[Embodiment 1]
As shown in FIG. 1, the digital camera of Embodiment 1 of the present application includes a gyro sensor 1, a position sensor 2, a drive command unit 3, a PWM signal generation unit 4, a driver 5, a voice coil motor (VCM) 6, and a lens. 7 is provided. The gyro sensor 1 detects camera shake of the digital camera. The position sensor 2 detects the position of the lens 7.

駆動指令部3は、ジャイロセンサ1および位置センサ2の検出結果に基づいて、レンズ7を駆動させるための駆動指令値DRを生成する。PWM信号発生部4は、駆動指令値DRに従ってPWM信号φA,φBを生成する。ドライバ5は、PWM信号φA,φBに従って駆動電圧VA,VBを生成し、駆動電圧VA,VBをボイスコイルモータ6に与える。ボイスコイルモータ6は、駆動電圧VA,VBによって駆動され、レンズ7を移動させる。レンズ7の移動により、デジタルカメラの手振れが補正されて、鮮明な画像が撮影される。   The drive command unit 3 generates a drive command value DR for driving the lens 7 based on the detection results of the gyro sensor 1 and the position sensor 2. The PWM signal generator 4 generates PWM signals φA and φB according to the drive command value DR. The driver 5 generates drive voltages VA and VB according to the PWM signals φA and φB, and applies the drive voltages VA and VB to the voice coil motor 6. The voice coil motor 6 is driven by drive voltages VA and VB to move the lens 7. Due to the movement of the lens 7, camera shake of the digital camera is corrected, and a clear image is taken.

図2は、ボイスコイルモータ6の原理的構成を示す図である。図2において、ボイスコイルモータ6は、所定の隙間を開けて平行に配置された2個の磁石10,11を含む。磁石10,11は、U字型の継鉄12の脚部12a,12bの内側に固定されている。磁石11および脚部12bは、ボイスコイル13に挿入されている。ボイスコイル13は、磁石11および脚部12bの長さ方向(図中の左右方向)にレンズ7とともに移動可能に設けられている。   FIG. 2 is a diagram showing the basic configuration of the voice coil motor 6. In FIG. 2, the voice coil motor 6 includes two magnets 10 and 11 arranged in parallel with a predetermined gap. Magnets 10 and 11 are fixed inside leg portions 12a and 12b of U-shaped yoke 12. The magnet 11 and the leg portion 12 b are inserted into the voice coil 13. The voice coil 13 is provided so as to be movable together with the lens 7 in the length direction of the magnet 11 and the leg portion 12b (left and right direction in the figure).

ボイスコイル13の一方端子13aおよび他方端子13bには、それぞれ駆動電圧VA,VBが印加される。ボイスコイル13に電流が流されると、その電流の極性に応じた方向に、その電流の値に応じた大きさの駆動力がボイスコイル13に発生する。したがって、ボイスコイル13に流す電流の極性および値を制御することにより、レンズ7に与える駆動力の方向および大きさを制御することができる。   Drive voltages VA and VB are applied to one terminal 13a and the other terminal 13b of the voice coil 13, respectively. When a current is passed through the voice coil 13, a driving force having a magnitude corresponding to the value of the current is generated in the voice coil 13 in a direction corresponding to the polarity of the current. Therefore, by controlling the polarity and value of the current flowing through the voice coil 13, the direction and magnitude of the driving force applied to the lens 7 can be controlled.

また、ドライバ5は、図3に示すように、PチャネルMOSトランジスタ20,21およびNチャネルMOSトランジスタ22,23を含む。トランジスタ20,22は第1のドライバを構成し、トランジスタ21,23は第2のドライバを構成する。トランジスタ20,21のソースはともに電源電圧VCCを受け、それらのドレインはそれぞれ出力ノードN20,N21に接続され、それらのゲートはそれぞれPWM信号φA,φBを受ける。トランジスタ22,23のソースはともに接地電圧GNDを受け、それらのドレインはそれぞれ出力ノードN20,N21に接続され、それらのゲートはそれぞれPWM信号φA,φBを受ける。出力ノードN20,N21は、それぞれボイスコイル13の端子13a,13bに接続される。   Driver 5 includes P channel MOS transistors 20 and 21 and N channel MOS transistors 22 and 23, as shown in FIG. Transistors 20 and 22 constitute a first driver, and transistors 21 and 23 constitute a second driver. The sources of transistors 20 and 21 both receive power supply voltage VCC, their drains are connected to output nodes N20 and N21, respectively, and their gates receive PWM signals φA and φB, respectively. The sources of transistors 22 and 23 both receive ground voltage GND, their drains are connected to output nodes N20 and N21, respectively, and their gates receive PWM signals φA and φB, respectively. Output nodes N20 and N21 are connected to terminals 13a and 13b of voice coil 13, respectively.

PWM信号φA,φBがそれぞれ「L」レベルおよび「H」レベルにされると、トランジスタ20,23が導通するとともにトランジスタ21,22が非導通になり、ボイスコイル13に正電流が流れてレンズ7は正方向に移動する。PWM信号φA,φBがそれぞれ「H」レベルおよび「L」レベルにされると、トランジスタ21,22が導通するとともにトランジスタ20,23が非導通になり、ボイスコイル13に負電流が流れてレンズ7は負方向に移動する。   When the PWM signals φA and φB are set to the “L” level and the “H” level, respectively, the transistors 20 and 23 are turned on and the transistors 21 and 22 are turned off, so that a positive current flows through the voice coil 13 and the lens 7 Moves in the positive direction. When the PWM signals φA and φB are set to the “H” level and the “L” level, respectively, the transistors 21 and 22 are turned on and the transistors 20 and 23 are turned off, so that a negative current flows through the voice coil 13 and the lens 7 Moves in the negative direction.

また、PWM信号φA,φBがともに「L」レベルにされると、トランジスタ20,21が導通するとともにトランジスタ22,23が非導通になり、ボイスコイル13に電流は流れず、レンズ7は移動しない。PWM信号φA,φBがともに「H」レベルにされると、トランジスタ22,23が導通するとともにトランジスタ20,21が非導通になり、ボイスコイル13に電流は流れず、レンズ7は移動しない。   When both the PWM signals φA and φB are set to the “L” level, the transistors 20 and 21 are turned on, the transistors 22 and 23 are turned off, no current flows through the voice coil 13, and the lens 7 does not move. . When the PWM signals φA and φB are both set to the “H” level, the transistors 22 and 23 are turned on, the transistors 20 and 21 are turned off, no current flows through the voice coil 13, and the lens 7 does not move.

また、PWM信号発生部4は、図4に示すように、クロック発生回路25、カウンタ26、および信号発生回路27を含む。クロック発生回路25は、所定周波数のクロック信号を発生する。カウンタ26は、クロック信号のパルス数をカウントする。カウンタ26のカウント値は、クロック信号に同期して0から1023まで1ずつ増加し、1023の後0に戻る。信号発生回路27は、カウンタ26のカウント値を参照し、駆動指令部3からの駆動指令値DRに従ってPWM信号φA,φBの各々を活性化レベルの「L」レベルまたは非活性化レベルの「H」レベルにする。   Further, the PWM signal generation unit 4 includes a clock generation circuit 25, a counter 26, and a signal generation circuit 27, as shown in FIG. The clock generation circuit 25 generates a clock signal having a predetermined frequency. The counter 26 counts the number of pulses of the clock signal. The count value of the counter 26 increases by 1 from 0 to 1023 in synchronization with the clock signal, and returns to 0 after 1023. The signal generation circuit 27 refers to the count value of the counter 26, and activates each of the PWM signals φA and φB according to the drive command value DR from the drive command unit 3 as an activation level “L” level or an inactivation level “H” level. To the level.

次に、本願発明の理解を容易にするため、本願発明の基礎となる従来のデジタルカメラの動作について説明する。従来のデジタルカメラでは、駆動指令値DRが+104の場合、図5(a)に示すように、カウンタ26のカウント値が0〜104の期間に駆動電圧VAが正電圧にされ、レンズ7が正方向に駆動される。駆動指令値DRが+52の場合は、図5(b)に示すように、カウンタ26のカウント値が0〜52の期間に駆動電圧VAが正電圧にされ、レンズ7が正方向に駆動される。駆動指令値DRが正の値である場合は、図5(a)(b)に示すように、カウンタ26のカウント値が0〜1023の期間において駆動電圧VBが0Vに固定される。   Next, in order to facilitate understanding of the present invention, the operation of a conventional digital camera which is the basis of the present invention will be described. In the conventional digital camera, when the drive command value DR is +104, as shown in FIG. 5A, the drive voltage VA is set to a positive voltage during the period in which the count value of the counter 26 is 0 to 104, and the lens 7 is set to be positive. Driven in the direction. When the drive command value DR is +52, as shown in FIG. 5B, the drive voltage VA is set to a positive voltage during the period in which the count value of the counter 26 is 0 to 52, and the lens 7 is driven in the positive direction. . When the drive command value DR is a positive value, the drive voltage VB is fixed to 0 V during the period in which the count value of the counter 26 is 0 to 1023, as shown in FIGS.

また、駆動指令値DRが0の場合は、図5(c)に示すように、カウンタ26のカウント値が0〜1023の期間において駆動電圧VA,VBが0Vに固定される。駆動指令値DRが−52の場合は、図5(d)に示すように、カウンタ26のカウント値が0〜52の期間に駆動電圧VBが正電圧にされ、レンズ7が負方向に駆動される。駆動指令値DRが−104の場合は、図5(e)に示すように、カウンタ26のカウント値が0〜104の期間に駆動電圧VBが正電圧にされ、レンズ7が負方向に駆動される。駆動指令値DRが負の値である場合は、図5(d)(e)に示すように、カウンタ26のカウント値が0〜1023の期間において駆動電圧VAが0Vに固定される。   When the drive command value DR is 0, as shown in FIG. 5C, the drive voltages VA and VB are fixed to 0V during the period in which the count value of the counter 26 is 0 to 1023. When the drive command value DR is −52, as shown in FIG. 5D, the drive voltage VB is set to a positive voltage during the period in which the count value of the counter 26 is 0 to 52, and the lens 7 is driven in the negative direction. The When the drive command value DR is −104, as shown in FIG. 5E, the drive voltage VB is set to a positive voltage during the period when the count value of the counter 26 is 0 to 104, and the lens 7 is driven in the negative direction. The When the drive command value DR is a negative value, the drive voltage VA is fixed to 0 V during the period in which the count value of the counter 26 is 0 to 1023, as shown in FIGS.

PWM方式では、ボイスコイル13にパルス電圧を印加するので、駆動電圧VAの立ち上がりおよび立ち下がりが鈍る。このため、ボイスコイル13に流れる電流Iは、図中の斜線を施した部分の面積に比例した値になる。また、駆動電圧VA,VBのパルス幅が狭い範囲では、ボイスコイルモータ6は駆動電圧VA,VBに応答せず、レンズ7は移動しない。したがって、図6に示すように、駆動指令値VRの絶対値が小さな範囲(たとえば、−60<VR<+60)では、駆動指令値VRの変化に対してコイル電流Iが線形に変化しない。このため、従来のデジタルカメラでは、レンズ7の位置を精密に制御することができず、レンズ7が正方向と負方向に振動し、雑音が発生する場合があった。   In the PWM method, a pulse voltage is applied to the voice coil 13, so that the drive voltage VA rises and falls slowly. For this reason, the current I flowing through the voice coil 13 has a value proportional to the area of the hatched portion in the figure. In the range where the pulse widths of the drive voltages VA and VB are narrow, the voice coil motor 6 does not respond to the drive voltages VA and VB, and the lens 7 does not move. Therefore, as shown in FIG. 6, in the range where the absolute value of the drive command value VR is small (for example, −60 <VR <+60), the coil current I does not change linearly with respect to the change of the drive command value VR. For this reason, in the conventional digital camera, the position of the lens 7 cannot be precisely controlled, and the lens 7 may vibrate in the positive direction and the negative direction, resulting in noise.

次に、本願のデジタルカメラの動作について説明する。本願のデジタルカメラでは、駆動指令値DRが+104の場合、図7(a)に示すように、カウンタ26のカウント値が−184(すなわち840)のときにPWM信号φAが活性化レベルの「L」レベルに立ち下げられ、駆動電圧VAが「H」レベルに立ち上げられる。次に、カウンタ26のカウント値が0(すなわち1024)のときにPWM信号φBが活性化レベルの「L」レベルに立ち下げられ、駆動電圧VBが「H」レベルに立ち上げられる。   Next, the operation of the digital camera of the present application will be described. In the digital camera of the present application, when the drive command value DR is +104, as shown in FIG. 7A, when the count value of the counter 26 is −184 (ie, 840), the PWM signal φA is the activation level “L”. The driving voltage VA is raised to the “H” level. Next, when the count value of the counter 26 is 0 (that is, 1024), the PWM signal φB is lowered to the “L” level of the activation level, and the drive voltage VB is raised to the “H” level.

次いで、カウンタ26のカウント値が40のときにPWM信号φAが非活性化レベルの「H」レベルに立ち下げられ、駆動電圧VAが「L」レベルに立ち下げられる。次に、カウンタ26のカウント値が120のときにPWM信号φBが非活性化レベルの「H」レベルに立ち上げられ、駆動電圧VBが「L」レベルに立ち下げられる。   Next, when the count value of the counter 26 is 40, the PWM signal φA is lowered to the “H” level of the inactivation level, and the drive voltage VA is lowered to the “L” level. Next, when the count value of the counter 26 is 120, the PWM signal φB is raised to the “H” level of the inactivation level, and the drive voltage VB is lowered to the “L” level.

この例では、PWM信号φAが「L」レベルに立ち下げられたときに、駆動電圧VAが0Vから電源電圧VCCになるまでに40カウント値分の時間が掛かるものとしている。また、PWM信号φAが「H」レベルに立ち上げられたときに、駆動電圧VAが電源電圧VCCから0Vになるまでに40カウント値分の時間が掛かるものとしている。   In this example, when the PWM signal φA is lowered to the “L” level, it takes time for 40 count values until the drive voltage VA changes from 0 V to the power supply voltage VCC. Further, when the PWM signal φA is raised to the “H” level, it takes time for 40 count values until the drive voltage VA becomes 0 V from the power supply voltage VCC.

一方、PWM信号φBが「L」レベルに立ち下げられたときは、駆動電圧VBは0Vから電源電圧VCCに迅速に立ち上がる。これは、ボイスコイル13の一方端子13aに電源電圧VCCが既に印加されているからである。また、PWM信号φBが「H」レベルに立ち上げられたときは、駆動電圧VBは電源電圧VCCから0Vに迅速に立ち下がる。これは、ボイスコイル13の一方端子13aに0Vが既に印加されているからである。また、ボイスコイル13に60カウント値分の時間だけ電流を流しても、ボイスコイルモータ6は応答せず、レンズ7は移動しないものとする。   On the other hand, when PWM signal φB falls to “L” level, drive voltage VB rises rapidly from 0 V to power supply voltage VCC. This is because the power supply voltage VCC has already been applied to the one terminal 13a of the voice coil 13. When PWM signal φB is raised to “H” level, drive voltage VB falls rapidly from power supply voltage VCC to 0V. This is because 0 V has already been applied to one terminal 13a of the voice coil 13. Further, it is assumed that the voice coil motor 6 does not respond and the lens 7 does not move even when a current is passed through the voice coil 13 for a time corresponding to 60 count values.

0〜+60カウント値の期間では、駆動電圧VA,VBが両方とも「H」レベルになっているので、ボイスコイル13には電流Iが流れない。−164〜0カウント値の期間では、ボイスコイル13に正電流が流れる。+60〜+120カウント値の期間では、ボイスコイル13に負電流が流れる。ボイスコイル13に60カウント値分の時間だけ電流を流してもボイスコイルモータ6は応答しないので、結局、−104〜0カウント値の期間だけボイスコイル13が正方向に移動する。   In the period of 0 to +60 count value, since the drive voltages VA and VB are both at the “H” level, the current I does not flow through the voice coil 13. A positive current flows through the voice coil 13 during the period of -164 to 0 count value. During the period of +60 to +120 count value, a negative current flows through the voice coil 13. Since the voice coil motor 6 does not respond even if a current of 60 count values is passed through the voice coil 13, the voice coil 13 moves in the positive direction only during the period of -104 to 0 count value.

また図7(b)に示すように、駆動指令値DRが+52の場合、カウンタ26のカウント値が−132(すなわち892)のときにPWM信号φAが活性化レベルの「L」レベルに立ち下げられ、駆動電圧VAが「H」レベルに立ち上げられる。次に、カウンタ26のカウント値が0(すなわち1024)のときにPWM信号φBが活性化レベルの「L」レベルに立ち下げられ、駆動電圧VBが「H」レベルに立ち上げられる。   As shown in FIG. 7B, when the drive command value DR is +52, the PWM signal φA falls to the “L” level of the activation level when the count value of the counter 26 is −132 (ie, 892). Drive voltage VA is raised to “H” level. Next, when the count value of the counter 26 is 0 (that is, 1024), the PWM signal φB is lowered to the “L” level of the activation level, and the drive voltage VB is raised to the “H” level.

次いで、カウンタ26のカウント値が40のときにPWM信号φAが非活性化レベルの「H」レベルに立ち下げられ、駆動電圧VAが「L」レベルに立ち下げられる。次に、カウンタ26のカウント値が120のときにPWM信号φBが非活性化レベルの「H」レベルに立ち上げられ、駆動電圧VBが「L」レベルに立ち下げられる。   Next, when the count value of the counter 26 is 40, the PWM signal φA is lowered to the “H” level of the inactivation level, and the drive voltage VA is lowered to the “L” level. Next, when the count value of the counter 26 is 120, the PWM signal φB is raised to the “H” level of the inactivation level, and the drive voltage VB is lowered to the “L” level.

0〜+60カウント値の期間では、駆動電圧VA,VBが両方とも「H」レベルになっているので、ボイスコイル13には電流Iが流れない。−112〜0カウント値の期間では、ボイスコイル13に正電流が流れる。+60〜+120カウント値の期間では、ボイスコイル13に負電流が流れる。ボイスコイル13に60カウント値分の時間だけ電流を流してもボイスコイルモータ6は応答しないので、結局、−52〜0カウント値の期間だけボイスコイル13が正方向に移動する。   In the period of 0 to +60 count value, since the drive voltages VA and VB are both at the “H” level, the current I does not flow through the voice coil 13. A positive current flows through the voice coil 13 during the period of −112 to 0 count value. During the period of +60 to +120 count value, a negative current flows through the voice coil 13. Since the voice coil motor 6 does not respond even if a current of 60 count values is supplied to the voice coil 13, the voice coil 13 moves in the positive direction only during the period of -52 to 0 count value.

また図7(c)に示すように、駆動指令値DRが0の場合、カウンタ26のカウント値が−80(すなわち944)のときにPWM信号φAが活性化レベルの「L」レベルに立ち下げられ、駆動電圧VAが「H」レベルに立ち上げられる。次に、カウンタ26のカウント値が0(すなわち1024)のときにPWM信号φBが活性化レベルの「L」レベルに立ち下げられ、駆動電圧VBが「H」レベルに立ち上げられる。   Further, as shown in FIG. 7C, when the drive command value DR is 0, the PWM signal φA falls to the “L” level of the activation level when the count value of the counter 26 is −80 (ie, 944). Drive voltage VA is raised to “H” level. Next, when the count value of the counter 26 is 0 (that is, 1024), the PWM signal φB is lowered to the “L” level of the activation level, and the drive voltage VB is raised to the “H” level.

次いで、カウンタ26のカウント値が40のときにPWM信号φAが非活性化レベルの「H」レベルに立ち下げられ、駆動電圧VAが「L」レベルに立ち下げられる。次に、カウンタ26のカウント値が120のときにPWM信号φBが非活性化レベルの「H」レベルに立ち上げられ、駆動電圧VBが「L」レベルに立ち下げられる。   Next, when the count value of the counter 26 is 40, the PWM signal φA is lowered to the “H” level of the inactivation level, and the drive voltage VA is lowered to the “L” level. Next, when the count value of the counter 26 is 120, the PWM signal φB is raised to the “H” level of the inactivation level, and the drive voltage VB is lowered to the “L” level.

0〜+60カウント値の期間では、駆動電圧VA,VBが両方とも「H」レベルになっているので、ボイスコイル13には電流Iが流れない。−60〜0カウント値の期間では、ボイスコイル13に正電流が流れる。+60〜+120カウント値の期間では、ボイスコイル13に負電流が流れる。ボイスコイル13に60カウント値分の時間だけ電流を流してもボイスコイルモータ6は応答しないので、結局、ボイスコイル13は移動しない。   In the period of 0 to +60 count value, since the drive voltages VA and VB are both at the “H” level, the current I does not flow through the voice coil 13. During the period of −60 to 0 count value, a positive current flows through the voice coil 13. During the period of +60 to +120 count value, a negative current flows through the voice coil 13. Since the voice coil motor 6 does not respond even if a current of 60 counts is passed through the voice coil 13, the voice coil 13 does not move after all.

また図7(d)に示すように、駆動指令値DRが−52の場合、カウンタ26のカウント値が−80(すなわち944)のときにPWM信号φAが活性化レベルの「L」レベルに立ち下げられ、駆動電圧VAが「H」レベルに立ち上げられる。次に、カウンタ26のカウント値が0(すなわち1024)のときにPWM信号φBが活性化レベルの「L」レベルに立ち下げられ、駆動電圧VBが「H」レベルに立ち上げられる。   As shown in FIG. 7D, when the drive command value DR is −52, the PWM signal φA rises to the “L” level of the activation level when the count value of the counter 26 is −80 (ie, 944). The drive voltage VA is raised to “H” level. Next, when the count value of the counter 26 is 0 (that is, 1024), the PWM signal φB is lowered to the “L” level of the activation level, and the drive voltage VB is raised to the “H” level.

次いで、カウンタ26のカウント値が40のときにPWM信号φAが非活性化レベルの「H」レベルに立ち下げられ、駆動電圧VAが「L」レベルに立ち下げられる。次に、カウンタ26のカウント値が172のときにPWM信号φBが非活性化レベルの「H」レベルに立ち上げられ、駆動電圧VBが「L」レベルに立ち下げられる。   Next, when the count value of the counter 26 is 40, the PWM signal φA is lowered to the “H” level of the inactivation level, and the drive voltage VA is lowered to the “L” level. Next, when the count value of the counter 26 is 172, the PWM signal φB is raised to the “H” level of the inactivation level, and the drive voltage VB is lowered to the “L” level.

0〜+60カウント値の期間では、駆動電圧VA,VBが両方とも「H」レベルになっているので、ボイスコイル13には電流Iが流れない。−60〜0カウント値の期間では、ボイスコイル13に正電流が流れる。+60〜+172カウント値の期間では、ボイスコイル13に負電流が流れる。ボイスコイル13に60カウント値分の時間だけ電流を流してもボイスコイルモータ6は応答しないので、結局、+120〜+172カウント値の期間だけボイスコイル13が負方向に移動する。   In the period of 0 to +60 count value, since the drive voltages VA and VB are both at the “H” level, the current I does not flow through the voice coil 13. During the period of −60 to 0 count value, a positive current flows through the voice coil 13. In the period of +60 to +172 count value, a negative current flows through the voice coil 13. Since the voice coil motor 6 does not respond even if a current of 60 counts is passed through the voice coil 13, the voice coil 13 moves in the negative direction only during the period of +120 to +172 counts.

また図7(e)に示すように、駆動指令値DRが−104の場合、カウンタ26のカウント値が−80(すなわち944)のときにPWM信号φAが活性化レベルの「L」レベルに立ち下げられ、駆動電圧VAが「H」レベルに立ち上げられる。次に、カウンタ26のカウント値が0(すなわち1024)のときにPWM信号φBが活性化レベルの「L」レベルに立ち下げられ、駆動電圧VBが「H」レベルに立ち上げられる。   As shown in FIG. 7E, when the drive command value DR is −104, the PWM signal φA rises to the “L” level of the activation level when the count value of the counter 26 is −80 (ie, 944). The drive voltage VA is raised to “H” level. Next, when the count value of the counter 26 is 0 (that is, 1024), the PWM signal φB is lowered to the “L” level of the activation level, and the drive voltage VB is raised to the “H” level.

次いで、カウンタ26のカウント値が40のときにPWM信号φAが非活性化レベルの「H」レベルに立ち下げられ、駆動電圧VAが「L」レベルに立ち下げられる。次に、カウンタ26のカウント値が224のときにPWM信号φBが非活性化レベルの「H」レベルに立ち上げられ、駆動電圧VBが「L」レベルに立ち下げられる。   Next, when the count value of the counter 26 is 40, the PWM signal φA is lowered to the “H” level of the inactivation level, and the drive voltage VA is lowered to the “L” level. Next, when the count value of the counter 26 is 224, the PWM signal φB is raised to the “H” level of the inactivation level, and the drive voltage VB is lowered to the “L” level.

0〜+60カウント値の期間では、駆動電圧VA,VBが両方とも「H」レベルになっているので、ボイスコイル13には電流Iが流れない。−60〜0カウント値の期間では、ボイスコイル13に正電流が流れる。+60〜+224カウント値の期間では、ボイスコイル13に負電流が流れる。ボイスコイル13に60カウント値分の時間だけ電流を流してもボイスコイルモータ6は応答しないので、結局、+120〜+224カウント値の期間だけボイスコイル13が負方向に移動する。   In the period of 0 to +60 count value, since the drive voltages VA and VB are both at the “H” level, the current I does not flow through the voice coil 13. During the period of −60 to 0 count value, a positive current flows through the voice coil 13. In the period of +60 to +224 count value, a negative current flows through the voice coil 13. Since the voice coil motor 6 does not respond even if a current of 60 count values is passed through the voice coil 13, the voice coil 13 moves in the negative direction only during the period of +120 to +224 count value.

この実施の形態1では、駆動指令値DRが0の場合でもPWM信号φ1,φ2の各々を所定時間ずつ活性化レベルにするので、PWM信号φA,φBのパルス幅を広くすることができ、ボイスコイル13に印加する電圧VA,VBの立ち上がりおよび立ち下がりの鈍りの影響を軽減することができる。したがって、図6に示すように、駆動指令値VRに対してコイル電流I(すなわちボイスコイルモータ6の駆動力)を線形に変化させることができる。よって、レンズ7の位置を精密に制御することができ、雑音の発生を防止することができる。また、クロック発生回路25で生成するクロック信号の周波数を高くする必要がないので、消費電力が増大することもない。   In the first embodiment, even when the drive command value DR is 0, each of the PWM signals φ1 and φ2 is set to the activation level for a predetermined time, so that the pulse width of the PWM signals φA and φB can be widened, and the voice The influence of the dull rise and fall of the voltages VA and VB applied to the coil 13 can be reduced. Therefore, as shown in FIG. 6, the coil current I (that is, the driving force of the voice coil motor 6) can be linearly changed with respect to the drive command value VR. Therefore, the position of the lens 7 can be precisely controlled, and generation of noise can be prevented. Further, since it is not necessary to increase the frequency of the clock signal generated by the clock generation circuit 25, power consumption does not increase.

[実施の形態2]
図8は、図4に示した信号発生回路27の構成をより詳細に示すブロック図である。図8において、信号発生回路27は、2段の副信号発生回路27a,27bを含む。駆動指令値DRは、13ビットのデータ信号D0〜D12を含む。データ信号D0は駆動力の方向を指令し、データ信号D1〜D12は駆動力の大きさを指令する。データ信号D11,D12は、切り捨てられ、使用されない。また、図4のカウンタ26は、カウント値として10ビットの信号C1〜C10を出力する。
[Embodiment 2]
FIG. 8 is a block diagram showing in more detail the configuration of the signal generation circuit 27 shown in FIG. In FIG. 8, the signal generation circuit 27 includes two stages of sub-signal generation circuits 27a and 27b. The drive command value DR includes 13-bit data signals D0 to D12. The data signal D0 commands the direction of the driving force, and the data signals D1 to D12 command the magnitude of the driving force. Data signals D11 and D12 are truncated and are not used. The counter 26 in FIG. 4 outputs 10-bit signals C1 to C10 as count values.

副信号発生回路27aは、駆動指令値DRに従って、PWM信号φ1,φ2と同じ周期で正駆動指令値DRAおよび負駆動指令値DRBを生成する。駆動指令値DRは13ビットのデータ信号D0〜D12であり、正駆動指令値DRAは10ビットのデータ信号DA1〜DA10であり、負駆動指令値DRBは10ビットのデータ信号DB1〜DB10である。   The sub signal generation circuit 27a generates the positive drive command value DRA and the negative drive command value DRB in the same cycle as the PWM signals φ1 and φ2 in accordance with the drive command value DR. The drive command value DR is a 13-bit data signal D0 to D12, the positive drive command value DRA is a 10-bit data signal DA1 to DA10, and the negative drive command value DRB is a 10-bit data signal DB1 to DB10.

データ信号D0が1(「H」レベル)の場合は、データ信号D1〜D10がデータ信号DA1〜DA10となり、データ信号DB1〜DB10で表わされる負駆動指令値DRBは0となる。データ信号D0が0(「L」レベル)の場合は、データ信号D1〜D10がデータ信号DB1〜DB10となり、データ信号DA1〜DA10で表わされる正駆動指令値DRAは0となる。副信号発生回路27bは、正駆動指令値DRA(すなわちデータ信号DA0〜DA10)、負駆動指令値DRB(すなわちデータ信号DB0〜DB10)、およびカウンタ26のカウント値(すなわち信号C1〜C10)に基づいて、PWM信号φ1,φ2を生成する。   When data signal D0 is 1 (“H” level), data signals D1 to D10 are data signals DA1 to DA10, and negative drive command value DRB represented by data signals DB1 to DB10 is 0. When the data signal D0 is 0 (“L” level), the data signals D1 to D10 are data signals DB1 to DB10, and the positive drive command value DRA represented by the data signals DA1 to DA10 is 0. The sub-signal generating circuit 27b is based on the positive drive command value DRA (that is, the data signals DA0 to DA10), the negative drive command value DRB (that is, the data signals DB0 to DB10), and the count value of the counter 26 (that is, the signals C1 to C10). PWM signals φ1 and φ2 are generated.

図9(a)〜(d)は、駆動指令値DRと、正駆動指令値DRAおよび負駆動指令値との関係を示すタイムチャートである。図9(a)に示すように、駆動指令値DRが+128=+2である場合、データ信号D0,D5がともに1であり、データ信号D1〜D4,D6〜D12はともに0である。したがって、データ信号DA5が1となり、データ信号DA1〜DA4,DA6〜DA10はともに0となり、正駆動指令値DRAは128となる。また、データ信号DB1〜DB10はともに0となり、負駆動指令値DRBは0となる。この場合、正駆動指令値DRAは、駆動指令値DRに一致する。 9A to 9D are time charts showing the relationship between the drive command value DR, the positive drive command value DRA, and the negative drive command value. As shown in FIG. 9 (a), when the drive command value DR is + 128 = + 2 7, a data signal D0, D5 are both 1, the data signals D1 to D4, D6~D12 are both zero. Therefore, the data signal DA5 is 1, the data signals DA1 to DA4, DA6 to DA10 are all 0, and the positive drive command value DRA is 128. The data signals DB1 to DB10 are all 0, and the negative drive command value DRB is 0. In this case, the positive drive command value DRA matches the drive command value DR.

また、図9(b)に示すように、駆動指令値DRが+129=+2+2である場合、データ信号D0,D5,D12がともに1であり、データ信号D1〜D4,D6〜D11はともに0である。したがって、データ信号DA5が1となり、データ信号DA1〜DA4,DA6〜DA10はともに0となり、正駆動指令値DRAは128となる。また、データ信号DB1〜DB10はともに0となり、負駆動指令値DRBは0となる。この場合、正駆動指令値DRAは、駆動指令値DRよりも1だけ小さくなる。 Further, as shown in FIG. 9 (b), when the drive command value DR is + 129 = + 2 7 + 2 0, a data signal D0, D5, D12 are both 1, the data signal D1 to D4, the D6~D11 Both are zero. Therefore, the data signal DA5 is 1, the data signals DA1 to DA4, DA6 to DA10 are all 0, and the positive drive command value DRA is 128. The data signals DB1 to DB10 are all 0, and the negative drive command value DRB is 0. In this case, the positive drive command value DRA is smaller by 1 than the drive command value DR.

また、図9(c)に示すように、駆動指令値DRが+130=+2+2である場合、データ信号D0,D5,D11がともに1であり、データ信号D1〜D4,D6〜D10,D12はともに0である。したがって、データ信号DA5が1となり、データ信号DA1〜DA4,DA6〜DA10はともに0となり、正駆動指令値DRAは128となる。また、データ信号DB1〜DB10はともに0となり、負駆動指令値DRBは0となる。この場合、正駆動指令値DRAは、駆動指令値DRよりも2だけ小さくなる。 As shown in FIG. 9C, when the drive command value DR is + 130 = + 2 7 +2 1 , the data signals D0, D5, D11 are all 1, and the data signals D1-D4, D6-D10, Both D12 are 0. Therefore, the data signal DA5 is 1, the data signals DA1 to DA4, DA6 to DA10 are all 0, and the positive drive command value DRA is 128. The data signals DB1 to DB10 are all 0, and the negative drive command value DRB is 0. In this case, the positive drive command value DRA is smaller by 2 than the drive command value DR.

また、図9(d)に示すように、駆動指令値DRが+131=+2+2+2である場合、データ信号D0,D5,D11,D12がともに1であり、データ信号D1〜D4,D6〜D10はともに0である。したがって、データ信号DA5が1となり、データ信号DA1〜DA4,DA6〜DA10はともに0となり、正駆動指令値DRAは128となる。また、データ信号DB1〜DB10はともに0となり、負駆動指令値DRBは0となる。この場合、正駆動指令値DRAは、駆動指令値DRよりも3だけ小さくなる。 As shown in FIG. 9D, when the drive command value DR is + 131 = + 2 7 +2 1 +2 0 , the data signals D0, D5, D11, and D12 are all 1, and the data signals D1 to D4 D6 to D10 are all 0. Therefore, the data signal DA5 is 1, the data signals DA1 to DA4, DA6 to DA10 are all 0, and the positive drive command value DRA is 128. The data signals DB1 to DB10 are all 0, and the negative drive command value DRB is 0. In this case, the positive drive command value DRA is smaller by 3 than the drive command value DR.

このように、実施の形態1では、駆動指令値DRに含まれる12ビットのデータ信号D1〜D12のうちの下位の2ビットのデータ信号D11,D12を切り捨てて正駆動指令値DRAおよび負駆動指令値DRBを生成する。このため、データ信号D1〜D10が同じ場合は、データ信号D11,D12が00,01,10,11と変化しても、正駆動指令値DRAおよび負駆動指令値DRBは変化しない。このため、図10に示すように、駆動指令値VRを連続的に変化させても、コイル電流I(すなわち駆動力)はステップ状に変化する。したがって、コイル電流Iを滑らかに変化させることができない。この実施の形態2では、この問題が解決される。   As described above, in the first embodiment, the lower two-bit data signals D11 and D12 out of the 12-bit data signals D1 to D12 included in the drive command value DR are rounded down, and the positive drive command value DRA and the negative drive command are discarded. The value DRB is generated. Therefore, when the data signals D1 to D10 are the same, even if the data signals D11 and D12 change to 00, 01, 10, and 11, the positive drive command value DRA and the negative drive command value DRB do not change. For this reason, as shown in FIG. 10, even if the drive command value VR is continuously changed, the coil current I (that is, the driving force) changes stepwise. Therefore, the coil current I cannot be changed smoothly. In the second embodiment, this problem is solved.

図11は、実施の形態2によるデジタルカメラの要部を示すブロック図であって、図8と対比される図である。図11において、このデジタルカメラが実施の形態1のデジタルカメラと異なる点は、積算器30および信号補正部31が追加されている点である。積算器30は、PWM信号φ1,φ2と同じ周期でデータ信号D11,D12を積算し、2桁から3桁への桁上げがない場合は信号φ30を非活性化レベルの「L」レベルにし、2桁から3桁への桁上げがあった場合は信号φ30を活性化レベルの「H」レベルにする。   FIG. 11 is a block diagram showing the main part of the digital camera according to the second embodiment, which is compared with FIG. In FIG. 11, this digital camera is different from the digital camera of Embodiment 1 in that an integrator 30 and a signal correction unit 31 are added. The accumulator 30 integrates the data signals D11 and D12 in the same cycle as the PWM signals φ1 and φ2, and when there is no carry from 2 digits to 3 digits, the signal φ30 is set to the “L” level of the deactivation level, If there is a carry from 2 digits to 3 digits, the signal φ30 is set to the activation level “H” level.

信号補正部31は、データ信号D1〜D10を受け、信号φ30が「L」レベルの場合は、データ信号D1〜D10をそのまま副信号発生回路27aに与え、信号φ30が「H」レベルの場合は、データ信号D1〜D10をインクリメント(+1)して副信号発生回路27aに与える。   The signal correction unit 31 receives the data signals D1 to D10. When the signal φ30 is at “L” level, the signal correction unit 31 supplies the data signals D1 to D10 as they are to the sub-signal generation circuit 27a, and when the signal φ30 is at “H” level. The data signals D1 to D10 are incremented (+1) and given to the sub signal generating circuit 27a.

図12(a)〜(d)は、駆動指令値DRと、正駆動指令値DRAおよび負駆動指令値との関係を示すタイムチャートであって、図9(a)〜(d)と対比される図である。図12(a)に示すように、駆動指令値DRが+128=+2である場合、データ信号D0,D5がともに1であり、データ信号D1〜D4,D6〜D12はともに0である。したがって、データ信号DA5が1となり、データ信号DA1〜DA4,DA6〜DA10はともに0となり、正駆動指令値DRAは128となる。また、データ信号DB1〜DB10はともに0となり、負駆動指令値DRBは0となる。 FIGS. 12A to 12D are time charts showing the relationship between the drive command value DR, the positive drive command value DRA, and the negative drive command value, and are compared with FIGS. 9A to 9D. FIG. As shown in FIG. 12 (a), when the drive command value DR is + 128 = + 2 7, a data signal D0, D5 are both 1, the data signals D1 to D4, D6~D12 are both zero. Therefore, the data signal DA5 is 1, the data signals DA1 to DA4, DA6 to DA10 are all 0, and the positive drive command value DRA is 128. The data signals DB1 to DB10 are all 0, and the negative drive command value DRB is 0.

この場合、データ信号D11,D12が00であるので、積算器30の積算値は0のまま変化せず、信号φ30は「L」レベルのまま変化せず、データ信号D1〜D10のインクリメントは行なわれない。したがって、正駆動指令値DRAは、駆動指令値DRに一致する。   In this case, since the data signals D11 and D12 are 00, the integrated value of the integrator 30 remains 0, the signal φ30 does not change at “L” level, and the data signals D1 to D10 are incremented. I can't. Therefore, the positive drive command value DRA matches the drive command value DR.

また、図12(b)に示すように、駆動指令値DRが+129=+2+2である場合、データ信号D0,D5,D12がともに1であり、データ信号D1〜D4,D6〜D11はともに0である。したがって、データ信号DA5が1となり、データ信号DA1〜DA4,DA6〜DA10はともに0となり、正駆動指令値DRAの初期値は128となる。また、データ信号DB1〜DB10はともに0となり、負駆動指令値DRBは0となる。 As shown in FIG. 12B, when the drive command value DR is + 129 = + 2 7 +2 0 , the data signals D0, D5, D12 are all 1, and the data signals D1-D4, D6-D11 are Both are zero. Therefore, the data signal DA5 is 1, the data signals DA1 to DA4, DA6 to DA10 are all 0, and the initial value of the positive drive command value DRA is 128. The data signals DB1 to DB10 are all 0, and the negative drive command value DRB is 0.

この場合、データ信号D11,D12が01であるので、積算器30の積算値(余り量)は1ずつ増加し、4回の積算を行なったときに積算値が011から100に変化し(時刻t3)、積算器30において2桁から3桁への桁上げが発生する。これにより、信号φ30が「H」レベルになってデータ信号D1〜D10がインクリメントされ、正駆動指令値DRAが132になる。したがって、4回の正駆動指令値DRAの平均値は129となり、駆動指令値DRに一致する。   In this case, since the data signals D11 and D12 are 01, the integrated value (remainder amount) of the integrator 30 increases by 1, and when the integration is performed four times, the integrated value changes from 011 to 100 (time). t3) In the accumulator 30, a carry from 2 digits to 3 digits occurs. As a result, the signal φ 30 becomes “H” level, the data signals D 1 to D 10 are incremented, and the positive drive command value DRA becomes 132. Therefore, the average value of the four positive drive command values DRA is 129, which matches the drive command value DR.

また、図12(c)に示すように、駆動指令値DRが+130=+2+2である場合、データ信号D0,D5,D11がともに1であり、データ信号D1〜D4,D6〜D10,D12はともに0である。したがって、データ信号DA5が1となり、データ信号DA1〜DA4,DA6〜DA10はともに0となり、正駆動指令値DRAの初期値は128となる。また、データ信号DB1〜DB10はともに0となり、負駆動指令値DRBは0となる。 Further, as shown in FIG. 12C, when the drive command value DR is + 130 = + 2 7 +2 1 , the data signals D0, D5, D11 are all 1, and the data signals D1-D4, D6-D10, Both D12 are 0. Therefore, the data signal DA5 is 1, the data signals DA1 to DA4, DA6 to DA10 are all 0, and the initial value of the positive drive command value DRA is 128. The data signals DB1 to DB10 are all 0, and the negative drive command value DRB is 0.

この場合、データ信号D11,D12が10であるので、積算器30の積算値(余り量)は2ずつ増加し、2回の積算を行なったときに積算値が010から100に変化し(時刻t1,t3)、積算器30において2桁から3桁への桁上げが発生する。これにより、信号φ30が「H」レベルになってデータ信号D1〜D10がインクリメントされ、正駆動指令値DRAが132になる。したがって、4回の正駆動指令値DRAの平均値は130となり、駆動指令値DRに一致する。   In this case, since the data signals D11 and D12 are 10, the integrated value (remainder amount) of the integrator 30 increases by two, and the integrated value changes from 010 to 100 when two integrations are performed (time). t1, t3), the accumulator 30 generates a carry from 2 digits to 3 digits. As a result, the signal φ 30 becomes “H” level, the data signals D 1 to D 10 are incremented, and the positive drive command value DRA becomes 132. Therefore, the average value of the four positive drive command values DRA is 130, which matches the drive command value DR.

また、図9(d)に示すように、駆動指令値DRが+131=+2+2+2である場合、データ信号D0,D5,D11,D12がともに1であり、データ信号D1〜D4,D6〜D10はともに0である。したがって、データ信号DA5が1となり、データ信号DA1〜DA4,DA6〜DA10はともに0となり、正駆動指令値DRAの初期値は128となる。また、データ信号DB1〜DB10はともに0となり、負駆動指令値DRBは0となる。 As shown in FIG. 9D, when the drive command value DR is + 131 = + 2 7 +2 1 +2 0 , the data signals D0, D5, D11, and D12 are all 1, and the data signals D1 to D4 D6 to D10 are all 0. Therefore, the data signal DA5 is 1, the data signals DA1 to DA4, DA6 to DA10 are all 0, and the initial value of the positive drive command value DRA is 128. The data signals DB1 to DB10 are all 0, and the negative drive command value DRB is 0.

この場合、データ信号D11,D12が11であるので、積算器30の積算値(余り量)は3ずつ増加し、2回の積算を行なったときに積算値が011から110に変化し(時刻t1)、積算器30において2桁から3桁への桁上げが発生する。これにより、信号φ30が「H」レベルになってデータ信号D1〜D10がインクリメントされ、正駆動指令値DRAが132になる。また、3回の積算を行なったときに積算値が110から001に変化し(時刻t2)、積算器30において2桁から3桁への桁上げが発生する。これにより、信号φ30が「H」レベルになってデータ信号D1〜D10がインクリメントされ、正駆動指令値DRAが132になる。   In this case, since the data signals D11 and D12 are 11, the integrated value (remainder amount) of the integrator 30 increases by 3 and the integrated value changes from 011 to 110 when the integration is performed twice (time). t1) In the accumulator 30, a carry from 2 digits to 3 digits occurs. As a result, the signal φ 30 becomes “H” level, the data signals D 1 to D 10 are incremented, and the positive drive command value DRA becomes 132. Further, when integration is performed three times, the integrated value changes from 110 to 001 (time t2), and the accumulator 30 generates a carry from 2 digits to 3 digits. As a result, the signal φ 30 becomes “H” level, the data signals D 1 to D 10 are incremented, and the positive drive command value DRA becomes 132.

また、4回の積算を行なったときに積算値が001から100に変化し(時刻t3)、積算器30において2桁から3桁への桁上げが発生する。これにより、信号φ30が「H」レベルになってデータ信号D1〜D10がインクリメントされ、正駆動指令値DRAが132になる。したがって、4回の正駆動指令値DRAの平均値は131となり、駆動指令値DRに一致する。   Further, when integration is performed four times, the integration value changes from 001 to 100 (time t3), and the accumulator 30 carries a carry from 2 digits to 3 digits. As a result, the signal φ 30 becomes “H” level, the data signals D 1 to D 10 are incremented, and the positive drive command value DRA becomes 132. Therefore, the average value of the four positive drive command values DRA is 131, which matches the drive command value DR.

このように、実施の形態2では、駆動指令値DRに含まれる12ビットのデータ信号D1〜D12のうちの下位の2ビットのデータ信号D11,D12を積算し、2桁から3桁への桁上げが発生する場合はデータ信号D1〜D10をインクリメントする。このため、4個の正駆動指令値DRAの平均値は、駆動指令値DRAに一致する。同様に、4個の負駆動指令値DRBの平均値は、駆動指令値DRAの大きさに一致する。このため、図10に示すように、駆動指令値VRを連続的に変化させると、コイル電流I(すなわち駆動力)も連続的に変化する。したがって、コイル電流Iを滑らかに変化させることができる。   As described above, in the second embodiment, the lower 2 bits of the data signals D11 and D12 out of the 12 bits of the data signals D1 to D12 included in the drive command value DR are integrated and a digit from 2 digits to 3 digits is added. When the increase occurs, the data signals D1 to D10 are incremented. Therefore, the average value of the four positive drive command values DRA matches the drive command value DRA. Similarly, the average value of the four negative drive command values DRB matches the size of the drive command value DRA. For this reason, as shown in FIG. 10, when the drive command value VR is continuously changed, the coil current I (that is, the driving force) also continuously changes. Therefore, the coil current I can be changed smoothly.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

1 ジャイロセンサ、2 位置センサ、3 駆動指令部、4 PWM信号発生部、5 ドライバ、6 ボイスコイルモータ、7 レンズ、10,11 磁石、12 継鉄、12a,12b 脚部、13 ボイスコイル、13a,13b 端子、20,21 PチャネルMOSトランジスタ、22,23 NチャネルMOSトランジスタ、25 クロック発生回路、26 カウンタ、27 信号発生回路、27a,27b 副信号発生回路、30 積算器、31 信号補正部。   DESCRIPTION OF SYMBOLS 1 Gyro sensor, 2 Position sensor, 3 Drive command part, 4 PWM signal generation part, 5 Driver, 6 Voice coil motor, 7 Lens, 10, 11 Magnet, 12 yoke, 12a, 12b Leg part, 13 Voice coil, 13a , 13b terminal, 20, 21 P channel MOS transistor, 22, 23 N channel MOS transistor, 25 clock generation circuit, 26 counter, 27 signal generation circuit, 27a, 27b sub signal generation circuit, 30 accumulator, 31 signal correction unit.

Claims (4)

ボイスコイルモータを制御するモータ制御装置であって、
第1および第2のPWM信号を発生するPWM信号発生部と、
前記第1のPWM信号が活性化レベルの場合は前記ボイスコイルモータのコイルの一方端子に電源電圧を印加し、前記第1のPWM信号が非活性化レベルの場合は前記コイルの一方端子に基準電圧を印加する第1のドライバと、
前記第2のPWM信号が活性化レベルの場合は前記コイルの他方端子に前記電源電圧を印加し、前記第2のPWM信号が非活性化レベルの場合は前記コイルの他方端子に前記基準電圧を印加する第2のドライバとを備え、
前記PWM信号発生部は、
前記ボイスコイルモータの駆動力をゼロにする場合は、予め定められた第1の固定時間だけ前記第1のPWM信号を活性化レベルにするとともに、予め定められた第2の固定時間だけ前記第2のPWM信号を活性化レベルにし、
前記ボイスコイルモータに正方向の駆動力を発生させる場合は、前記駆動力の大きさに応じた長さの第1の可変時間と前記第1の固定時間だけ前記第1のPWM信号を活性化レベルにするとともに、前記第2の固定時間だけ前記第2のPWM信号を活性化レベルにし、
前記ボイスコイルモータに負方向の駆動力を発生させる場合は、前記第1の固定時間だけ前記第1のPWM信号を活性化レベルにするとともに、前記第2の固定時間と前記駆動力の大きさに応じた長さの第2の可変時間だけ前記第2のPWM信号を活性化レベルにする、モータ制御装置。
A motor control device for controlling a voice coil motor,
A PWM signal generator for generating first and second PWM signals;
When the first PWM signal is at an activation level, a power supply voltage is applied to one terminal of the coil of the voice coil motor, and when the first PWM signal is at an inactivation level, a reference is applied to one terminal of the coil. A first driver for applying a voltage;
When the second PWM signal is at an activation level, the power supply voltage is applied to the other terminal of the coil, and when the second PWM signal is at an inactivation level, the reference voltage is applied to the other terminal of the coil. A second driver for applying,
The PWM signal generator is
When the driving force of the voice coil motor is set to zero, the first PWM signal is set to the activation level for a predetermined first fixed time and the first PWM signal is set for the predetermined second fixed time. 2 to the activation level,
When generating a driving force in the positive direction in the voice coil motor, the first PWM signal is activated only for the first variable time having the length corresponding to the magnitude of the driving force and the first fixed time. Level, and the second PWM signal is activated for the second fixed time,
When generating a negative direction driving force in the voice coil motor, the first PWM signal is activated for the first fixed time, and the second fixed time and the magnitude of the driving force are set. A motor control device that activates the second PWM signal only for a second variable time having a length corresponding to.
前記PWM信号発生部は、前記第1のPWM信号を活性化レベルにし、次いで前記第2のPWM信号を活性化レベルにし、次いで前記第1のPWM信号を非活性化レベルにし、次いで前記第2のPWM信号を非活性化レベルにする、請求項1に記載のモータ制御装置。   The PWM signal generation unit sets the first PWM signal to an activation level, then sets the second PWM signal to an activation level, then sets the first PWM signal to an inactivation level, and then the second PWM signal. The motor control device according to claim 1, wherein the PWM signal is set to an inactive level. さらに、第1〜第N(ただし、Nは正の整数である)のデータ信号を含み、前記ボイスコイルモータの駆動力の大きさを指令する駆動指令値を生成する駆動指令部と、
前記駆動指令値のうちの下位のM(ただし、MはNよりも小さな正の整数である)ビットのデータ信号を予め定められた周期で積算する積算器と、
前記第1〜第Nのデータ信号のうちの上位の第1〜第(N−M)のデータ信号を受け、前記積算器においてM桁から(M+1)桁への桁上げが行なわれなかった場合は前記第1〜第(N−M)のデータ信号をそのまま出力し、前記積算器においてM桁から(M+1)桁への桁上げが行なわれた場合は前記第1〜第(N−M)のデータ信号をインクリメントして出力する信号補正部とを備え、
前記PWM信号発生部は、前記信号補正部から出力された前記第1〜第(N−M)のデータ信号に基づいて、前記第1および第2のPWM信号を生成する、請求項1または請求項2に記載のモータ制御装置。
A drive command unit that includes first to Nth data signals (where N is a positive integer), and generates a drive command value that commands the magnitude of the driving force of the voice coil motor;
An accumulator that accumulates data signals of lower M bits (where M is a positive integer smaller than N) of the drive command values at a predetermined period;
When the first to (N−M) th data signals in the first to Nth data signals are received, and the carry from the M digit to the (M + 1) digit is not performed in the accumulator Outputs the first to (N−M) th data signals as they are, and when carry-up from M digits to (M + 1) digits is performed in the integrator, the first to (N−M) th data signals are output. A signal correction unit that increments and outputs the data signal of
The said PWM signal generation part produces | generates the said 1st and 2nd PWM signal based on the said 1st-(N-M) data signal output from the said signal correction | amendment part. Item 3. The motor control device according to Item 2.
レンズと、
前記レンズを移動させるボイスコイルモータと、
請求項1から請求項3までのいずれかに記載のモータ制御装置とを備える、電子機器。
A lens,
A voice coil motor for moving the lens;
An electronic apparatus comprising the motor control device according to claim 1.
JP2009267164A 2009-11-25 2009-11-25 MOTOR CONTROL DEVICE AND ELECTRONIC DEVICE USING THE SAME Active JP5473124B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009267164A JP5473124B2 (en) 2009-11-25 2009-11-25 MOTOR CONTROL DEVICE AND ELECTRONIC DEVICE USING THE SAME

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009267164A JP5473124B2 (en) 2009-11-25 2009-11-25 MOTOR CONTROL DEVICE AND ELECTRONIC DEVICE USING THE SAME

Publications (2)

Publication Number Publication Date
JP2011114895A JP2011114895A (en) 2011-06-09
JP5473124B2 true JP5473124B2 (en) 2014-04-16

Family

ID=44236844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009267164A Active JP5473124B2 (en) 2009-11-25 2009-11-25 MOTOR CONTROL DEVICE AND ELECTRONIC DEVICE USING THE SAME

Country Status (1)

Country Link
JP (1) JP5473124B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5731950B2 (en) * 2011-11-01 2015-06-10 旭化成エレクトロニクス株式会社 Control device for linear motion device, control method for linear motion device
JP6092620B2 (en) * 2012-12-28 2017-03-08 ローム株式会社 Driving circuit of voice coil motor with spring return mechanism, lens module and electronic device using the same
JP7242455B2 (en) * 2019-07-10 2023-03-20 キヤノン株式会社 Imaging device and its control method
JP7242458B2 (en) * 2019-07-11 2023-03-20 キヤノン株式会社 Actuator control device and control method, imaging device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10103301A (en) * 1996-09-25 1998-04-21 Fuji Heavy Ind Ltd Hydraulic motor type throttle actuator
JP3749350B2 (en) * 1997-05-19 2006-02-22 アルプス電気株式会社 Game console operating device
JP4288726B2 (en) * 1998-08-21 2009-07-01 株式会社ニコン Blur correction apparatus and blur correction method

Also Published As

Publication number Publication date
JP2011114895A (en) 2011-06-09

Similar Documents

Publication Publication Date Title
CN108155846B (en) Apparatus and method for controlling haptic actuator
US8044623B2 (en) Drive control circuit for electric motor
JP4948890B2 (en) Motor drive device and electric apparatus using the same
JP5473124B2 (en) MOTOR CONTROL DEVICE AND ELECTRONIC DEVICE USING THE SAME
US9338369B2 (en) Driving circuit for voice coil motor, lens module and electronic device using the same, and driving method for voice coil motor
JP5701503B2 (en) Motor drive circuit
KR101326400B1 (en) Pwm signal output circuit
US20160359444A1 (en) Motor speed curve control circuit and moter thereof
KR20130029736A (en) Pwm signal output circuit
KR20070083178A (en) Apparatus and method for driving a stepping motor and electronic apparatus using the same
WO2008032435A1 (en) Motor drive circuit, motor drive device, load drive device, electronic device, and pulse modulation method
JP6727173B2 (en) Rotor position detection system
JP2010124454A (en) Pulse generating circuit, pulse width modulator, delay circuit and switching power supply control circuit employing the same
JP6354937B2 (en) Drive circuit, integrated circuit device, and charge pump circuit control method
US20140368677A1 (en) Actuator driving device, control method for same, and imaging apparatus
JP2007244083A (en) Current control circuit
JP2005151792A (en) Motor control circuit
JPWO2006132115A1 (en) Imaging device
JP2010246287A (en) Current control circuit
JP2008029145A (en) Drive circuit for stepping motor and electronic apparatus
JP5523821B2 (en) Motor drive circuit
JP5841882B2 (en) Analog drive circuit and position control circuit
JP2008236814A (en) Pwm control circuit of motor
JP6609904B2 (en) Digital amplifier
JP5731950B2 (en) Control device for linear motion device, control method for linear motion device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121122

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131226

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140107

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140203

R150 Certificate of patent or registration of utility model

Ref document number: 5473124

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250