JP5171079B2 - Motor driving circuit, driving method, and disk device using them - Google Patents

Motor driving circuit, driving method, and disk device using them Download PDF

Info

Publication number
JP5171079B2
JP5171079B2 JP2007069576A JP2007069576A JP5171079B2 JP 5171079 B2 JP5171079 B2 JP 5171079B2 JP 2007069576 A JP2007069576 A JP 2007069576A JP 2007069576 A JP2007069576 A JP 2007069576A JP 5171079 B2 JP5171079 B2 JP 5171079B2
Authority
JP
Japan
Prior art keywords
signal
back electromotive
frequency
timing
counter
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.)
Expired - Fee Related
Application number
JP2007069576A
Other languages
Japanese (ja)
Other versions
JP2008236843A (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 JP2007069576A priority Critical patent/JP5171079B2/en
Priority to US12/048,399 priority patent/US7855521B2/en
Priority to CN2008100830045A priority patent/CN101267176B/en
Publication of JP2008236843A publication Critical patent/JP2008236843A/en
Application granted granted Critical
Publication of JP5171079B2 publication Critical patent/JP5171079B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Motors That Do Not Use Commutators (AREA)

Description

本発明は、センサレスモータを制御するモータ駆動回路に関する。   The present invention relates to a motor drive circuit that controls a sensorless motor.

ポータブルCD(Compact Disc)装置や、DVD(Digital Versatile Disc)など、ディスク型メディアを使用した電子機器において、そのディスクを回転させるためにブラシレス直流モータが用いられる。ブラシレス直流モータは、一般に、永久磁石を備えたロータと、スター結線された複数の相のコイルを備えたステータとを備えており、コイルに供給する電流を制御することによりコイルを励磁し、ロータをステータに対して相対回転させて駆動する。ブラシレスDCモータは、ロータの回転位置を検出するために、一般に、ホール素子や光学エンコーダなどのセンサを備えており、センサにより検出された位置に応じて、各相のコイルに供給する電流を切り換えて、ロータに適切なトルクを与える。   In an electronic device using a disk-type medium such as a portable CD (Compact Disc) device or a DVD (Digital Versatile Disc), a brushless DC motor is used to rotate the disk. A brushless DC motor generally includes a rotor having a permanent magnet and a stator having a plurality of star-connected coils, and excites the coil by controlling the current supplied to the coil. Is driven relative to the stator. In order to detect the rotational position of the rotor, the brushless DC motor generally includes a sensor such as a Hall element or an optical encoder, and switches the current supplied to the coil of each phase according to the position detected by the sensor. And apply an appropriate torque to the rotor.

モータをより小型化するために、ホール素子などのセンサを利用せずにロータの回転位置を検出するセンサレスモータも提案されている(たとえば、特許文献1、2参照)。センサレスモータは、たとえばモータの中点配線の電位(以下、中点電圧という)と、コイルの一端に発生する逆起電圧(誘導電圧)をモニタし、中点電圧と等しくなるゼロクロス点を検出することにより位置情報を得る。   In order to further reduce the size of the motor, a sensorless motor that detects the rotational position of the rotor without using a sensor such as a Hall element has also been proposed (for example, see Patent Documents 1 and 2). A sensorless motor, for example, monitors the potential of the midpoint wiring of the motor (hereinafter referred to as the midpoint voltage) and the back electromotive voltage (inductive voltage) generated at one end of the coil, and detects a zero cross point that is equal to the midpoint voltage. To obtain position information.

特開平3−207250号公報JP-A-3-207250 特開平10−243685号公報Japanese Patent Laid-Open No. 10-243865 特開平11−75388号公報Japanese Patent Laid-Open No. 11-75388

図1(a)〜(c)は、パルス変調駆動する場合のゼロクロス点の検出の様子を示すタイムチャートである。図1(a)は、パルス変調された信号PWMを、同図(b)は、ゼロクロス点の検出対象となるコイルに発生する相電圧(以下、逆起電圧Vuともいう)および中点電圧Vcomを、同図(c)は、逆起検出信号BEMF_EDGEの波形図を示す。図1(a)〜(c)は、モータのコイルに流れる電流を、正弦波状、あるいはアーチ状に連続的に変化させる目的で、モータのコイルに印加する電圧を、パルス変調により制御している。   FIGS. 1A to 1C are time charts showing how a zero-cross point is detected when pulse modulation driving is performed. FIG. 1A shows a pulse-modulated signal PWM, and FIG. 1B shows a phase voltage (hereinafter also referred to as a counter electromotive voltage Vu) and a midpoint voltage Vcom generated in a coil to be detected at a zero cross point. FIG. 6C shows a waveform diagram of the back electromotive force detection signal BEMF_EDGE. In FIGS. 1A to 1C, the voltage applied to the motor coil is controlled by pulse modulation in order to continuously change the current flowing in the motor coil in a sine wave shape or an arch shape. .

図1(b)に示すように、ゼロクロス点の検出対象となるコイルに発生する逆起電圧Vuには、同図(a)に示すパルス変調された信号のオフからオンへの遷移のタイミング、あるいはオンからオフのタイミングでノイズ成分が現れる。このノイズ成分によって、相電圧Vuと中点電圧Vcomを比較して得られる逆起検出信号がハイレベルとローレベルを繰り返し、ゼロクロス点が誤検出されてしまう。ゼロクロス点の誤検出は、ロータの位置の誤検出に他ならないため、回転精度の悪化や、回転不良などの問題を引き起こす。   As shown in FIG. 1B, the back electromotive voltage Vu generated in the coil that is the detection target of the zero cross point includes the timing of the transition from OFF to ON of the pulse-modulated signal shown in FIG. Alternatively, a noise component appears at the timing from on to off. Due to this noise component, the back electromotive force detection signal obtained by comparing the phase voltage Vu and the midpoint voltage Vcom repeats a high level and a low level, and the zero cross point is erroneously detected. The erroneous detection of the zero cross point is nothing but an erroneous detection of the rotor position, and causes problems such as deterioration in rotational accuracy and defective rotation.

本発明はこうした状況に鑑みてなされたものであり、その包括的な目的は、モータをパルス変調して駆動する際の、ゼロクロス点の正確な検出技術の提供にある。   The present invention has been made in view of such circumstances, and a comprehensive object thereof is to provide a technique for accurately detecting a zero-cross point when a motor is driven by pulse modulation.

本発明のある態様は、多相モータに駆動電流を供給して駆動するモータ駆動回路に関する。このモータ駆動回路は、多相モータのコイルごとに設けられ、接続されたコイルの一端に、ハイレベルまたはローレベルの電圧を印加する複数のスイッチング回路と、多相モータの目標トルクに応じてデューティ比が変化するパルス変調信号を生成するパルス変調信号生成部と、多相モータの少なくとも1つのコイルに発生する逆起電圧を、コイルの中点電圧と比較してゼロクロス点を検出し、ゼロクロス点のタイミングで所定レベルとなる逆起検出信号を出力する逆起検出回路と、パルス変調信号生成部からのパルス変調信号と、逆起検出回路からの逆起検出信号と、を受け、逆起検出信号にもとづいて駆動する相を切り替えるシーケンス制御を行うとともに、パルス変調信号にもとづいて、駆動対象のスイッチング回路に含まれるハイサイドスイッチおよびローサイドスイッチの少なくとも一方をスイッチング制御するスイッチング制御部と、逆起検出信号が所定レベルになるタイミングと、所定の基準タイミングを比較し、2つのタイミングの位相誤差が最小となり、かつ、パルス変調信号の周波数が逆起検出信号の周波数の整数倍となるように、パルス変調信号の周波数および位相を調節するパルス調節部と、を備える。   One embodiment of the present invention relates to a motor drive circuit that drives a multiphase motor by supplying a drive current. This motor drive circuit is provided for each coil of a multi-phase motor, and has a plurality of switching circuits that apply a high-level or low-level voltage to one end of the connected coil, and a duty according to the target torque of the multi-phase motor. A pulse modulation signal generation unit that generates a pulse modulation signal whose ratio changes, and a counter electromotive voltage generated in at least one coil of a multiphase motor is compared with a midpoint voltage of the coil to detect a zero cross point, and a zero cross point Back electromotive force detection circuit that outputs a back electromotive force detection signal that reaches a predetermined level at the timing of, a pulse modulation signal from the pulse modulation signal generator, and a back electromotive detection signal from the back electromotive detection circuit, In addition to performing sequence control to switch the phase to be driven based on the signal, the high-speed signal included in the switching circuit to be driven is based on the pulse modulation signal. The switching control unit that controls switching of at least one of the switch and the low-side switch, the timing at which the back electromotive detection signal becomes a predetermined level, and a predetermined reference timing are compared, the phase error between the two timings is minimized, and the pulse A pulse adjusting unit that adjusts the frequency and phase of the pulse modulated signal so that the frequency of the modulated signal is an integral multiple of the frequency of the back electromotive detection signal.

「パルス変調」とは、パルス幅変調(PWM)、パルス周波数変調(PFM)、パルス位置変調(PPM)など、パルスのハイレベルとローレベルの期間の比率、すなわちデューティ比が変化する信号を利用した変調をいう。
この態様によると、逆起検出信号の周波数とパルス変調信号の周波数が整数倍となり、かつ、逆起検出信号が示すゼロクロス点のタイミングが基準信号のタイミングと一致するようにフィードバックがかかり、パルス変調信号の周波数および位相が調節される。したがって、ゼロクロス点を検出するタイミングを、基準信号のタイミング付近に設定することにより、ゼロクロス点を少ない遅延で精度よく検出することができる。
“Pulse modulation” uses a signal that changes the ratio between the high and low levels of the pulse, that is, the duty ratio, such as pulse width modulation (PWM), pulse frequency modulation (PFM), and pulse position modulation (PPM). Modulation.
According to this aspect, feedback is applied so that the frequency of the back electromotive detection signal and the frequency of the pulse modulation signal are an integral multiple, and the timing of the zero cross point indicated by the back electromotive detection signal coincides with the timing of the reference signal. The frequency and phase of the signal are adjusted. Therefore, by setting the timing at which the zero cross point is detected in the vicinity of the timing of the reference signal, the zero cross point can be accurately detected with a small delay.

パルス調節部は、逆起検出信号の毎回の周波数を検出し、その誤差に応じた周波数誤差データを生成する周波数誤差検出部と、逆起検出信号が所定レベルとなるタイミングと、所定の基準タイミングの位相誤差を検出し、位相誤差に応じた位相誤差データを生成する位相誤差検出部と、を含み、周波数誤差データと位相誤差データにもとづいて、パルス変調信号の周波数および位相を調節してもよい。   The pulse adjustment unit detects the frequency of the back electromotive detection signal each time, generates a frequency error data corresponding to the error, a timing at which the back electromotive detection signal becomes a predetermined level, and a predetermined reference timing A phase error detector that detects the phase error of the signal and generates phase error data corresponding to the phase error, and adjusts the frequency and phase of the pulse modulation signal based on the frequency error data and the phase error data. Good.

パルス変調信号生成部は、逆起検出信号の周期より短い所定の周期でカウントアップまたはカウントダウン動作を繰り返す変調カウンタを含み、変調カウンタによるカウント値と目標トルクを示すトルク信号の値の大小関係に応じてレベルが遷移するパルス変調信号を生成してもよい。パルス調節部は、周波数誤差データと位相誤差データにもとづくタイミングで、変調カウンタをセットするカウンタセット部を含んでもよい。
「カウンタをセットする」とは、カウント値を初期値に設定することをいう。
この場合、カウント値はのこぎり波状の波形となるため、トルク信号の値でスライスすることによりパルス幅変調されたパルス変調信号を生成することができる。のこぎり波の頂点の個数は、パルス変調信号の周波数に対応するから、逆起検出信号の1周期に、整数個ののこぎり波が含まれるように変調カウンタをセットすることにより、パルス変調信号の周波数および位相を調節することができる。
The pulse modulation signal generation unit includes a modulation counter that repeats the count-up or count-down operation at a predetermined cycle shorter than the cycle of the back electromotive detection signal, and corresponds to the magnitude relationship between the count value by the modulation counter and the value of the torque signal indicating the target torque Then, a pulse modulation signal whose level changes may be generated. The pulse adjusting unit may include a counter setting unit that sets a modulation counter at a timing based on the frequency error data and the phase error data.
“Setting a counter” means setting a count value to an initial value.
In this case, since the count value has a saw-tooth waveform, a pulse-modulated pulse-modulated signal can be generated by slicing with the torque signal value. Since the number of vertices of the sawtooth wave corresponds to the frequency of the pulse modulated signal, the frequency of the pulse modulated signal is set by setting the modulation counter so that an integer number of sawtooth waves are included in one period of the back electromotive force detection signal. And the phase can be adjusted.

パルス調節部は、変調カウンタと同じ周期で動作するフリーランカウンタをさらに含んでもよい。周波数誤差検出部は、i(iは任意の自然数)回目に逆起検出信号が所定レベルとなる時刻におけるフリーランカウンタのカウント値P[i]をモニタし、その前の(i−1)回目に逆起検出信号が所定レベルとなる時刻におけるフリーランカウンタのカウント値P[i−1]との差分ΔP[i]=P[i]−P[i−1]を毎回演算し、今回の差分ΔP[i]と、前回の差分ΔP[i−1]=P[i−1]−P[i−2]で示される周波数誤差δF[i]=ΔP[i]−ΔP[i−1]を、周波数誤差データとして出力してもよい。   The pulse adjustment unit may further include a free-run counter that operates at the same cycle as the modulation counter. The frequency error detection unit monitors the count value P [i] of the free-run counter at the time when the back electromotive detection signal becomes a predetermined level at the i (i is an arbitrary natural number) time, and the (i-1) th time before that. The difference ΔP [i] = P [i] −P [i−1] from the count value P [i−1] of the free-run counter at the time when the back electromotive detection signal becomes a predetermined level is calculated every time. The frequency error δF [i] = ΔP [i] −ΔP [i−1] represented by the difference ΔP [i] and the previous difference ΔP [i−1] = P [i−1] −P [i−2]. ] May be output as frequency error data.

フリーランカウンタは、セットされることなく同じ周期でカウントアップまたはカウントダウンを繰り返す。モータが一定の回転数で回転するとき、逆起検出信号の所定レベルとなる時間間隔(つまり周波数)は一定である。したがって、モータの回転数が一定のとき、カウント値の差分ΔPは一定となる。逆に言えば、モータの回転数が変化すると、モニタされる差分ΔPが変化することになる。
この態様によれば、逆起検出信号の周波数(モータの回転数)の変動をモニタすることができ、その変動に応じて変調カウンタをセットするタイミングを調節することにより、パルス変調信号の周波数を逆起検出信号の周波数の整数倍に設定することができる。
The free-run counter repeats counting up or counting down at the same cycle without being set. When the motor rotates at a constant rotational speed, the time interval (that is, the frequency) at which the back electromotive force detection signal becomes a predetermined level is constant. Therefore, when the rotation speed of the motor is constant, the count value difference ΔP is constant. In other words, when the rotation speed of the motor changes, the monitored difference ΔP changes.
According to this aspect, it is possible to monitor fluctuations in the frequency of the back electromotive detection signal (the number of rotations of the motor), and by adjusting the timing at which the modulation counter is set according to the fluctuations, the frequency of the pulse modulation signal is adjusted. It can be set to an integral multiple of the frequency of the back electromotive detection signal.

ある態様のモータ駆動回路は、パルス変調信号が、スイッチング回路に含まれるハイサイドスイッチおよびローサイドスイッチの少なくとも一方のオン状態を示すレベルとなるオン期間中の検出期間の間、所定レベルとなって逆起検出回路によるゼロクロス点の検出を有効化するマスク信号を生成するマスク信号生成部と、マスク信号によりゼロクロス点の検出が有効化される検出期間中に所定レベルとなり、基準タイミングを規定する基準信号を生成する基準信号生成部と、をさらに備えてもよい。パルス調節部は、逆起検出信号と基準信号の位相誤差を検出し、位相誤差に応じた位相誤差データを生成してもよい。   In a motor drive circuit according to an aspect, a pulse modulation signal is reversed to a predetermined level during a detection period during an on period in which at least one of a high-side switch and a low-side switch included in the switching circuit is on. A mask signal generation unit that generates a mask signal that enables detection of the zero-cross point by the origin detection circuit, and a reference signal that defines a reference timing at a predetermined level during a detection period in which detection of the zero-cross point is enabled by the mask signal And a reference signal generation unit that generates. The pulse adjusting unit may detect a phase error between the back electromotive detection signal and the reference signal and generate phase error data corresponding to the phase error.

本発明の別の態様も、多相モータに駆動電流を供給して駆動するモータ駆動回路に関する。このモータ駆動回路は、多相モータのコイルごとに設けられ、接続されたコイルの一端に、ハイレベルまたはローレベルの電圧を印加する複数のスイッチング回路と、多相モータの目標トルクに応じてデューティ比が変化するパルス変調信号を生成するパルス変調信号生成部と、多相モータの少なくとも1つのコイルに発生する逆起電圧を、コイルの中点電圧と比較してゼロクロス点を検出し、ゼロクロス点のタイミングで所定レベルとなる逆起検出信号を出力する逆起検出回路と、パルス変調信号生成部からのパルス変調信号と、逆起検出回路からの逆起検出信号と、を受け、逆起検出信号にもとづいて駆動する相を切り替えるシーケンス制御を行うとともに、パルス変調信号にもとづいて、駆動対象の前記スイッチング回路に含まれるハイサイドスイッチおよびローサイドスイッチの少なくとも一方をスイッチング制御するスイッチング制御部と、逆起検出回路からの逆起検出信号を受け、逆起検出信号が所定レベルとなるタイミングに応じて、パルス変調信号の位相を変化させるパルス調節部と、を備える。   Another aspect of the present invention also relates to a motor drive circuit that drives a multiphase motor by supplying a drive current. This motor drive circuit is provided for each coil of a multi-phase motor, and has a plurality of switching circuits that apply a high-level or low-level voltage to one end of the connected coil, and a duty according to the target torque of the multi-phase motor. A pulse modulation signal generation unit that generates a pulse modulation signal whose ratio changes, and a counter electromotive voltage generated in at least one coil of a multiphase motor is compared with a midpoint voltage of the coil to detect a zero cross point, and a zero cross point Back electromotive force detection circuit that outputs a back electromotive force detection signal that reaches a predetermined level at the timing of, a pulse modulation signal from the pulse modulation signal generator, and a back electromotive detection signal from the back electromotive detection circuit, In addition to performing sequence control for switching the phase to be driven based on the signal, the controller included in the switching circuit to be driven is based on the pulse modulation signal. A switching control unit that controls switching of at least one of the side switch and the low-side switch and a back electromotive detection signal from the back electromotive detection circuit, and changes the phase of the pulse modulation signal according to the timing when the back electromotive detection signal becomes a predetermined level. And a pulse adjusting unit to be changed.

この態様によれば、ゼロクロスのタイミングが、所定の基準タイミングと一致するように帰還がかかる。したがって、ゼロクロス点を検出するタイミングを、基準信号のタイミング付近に設定することにより、ゼロクロス点のタイミングを少ない遅延で精度よく検出することができる。   According to this aspect, feedback is applied so that the zero-cross timing coincides with the predetermined reference timing. Therefore, by setting the timing at which the zero cross point is detected in the vicinity of the timing of the reference signal, the timing at the zero cross point can be accurately detected with a small delay.

パルス変調信号生成部は、所定の周波数の周期信号を、多相モータの目標トルクに応じた値でスライスして、デューティ比が変化するパルス変調信号を生成し、パルス調節部は、逆起検出信号が所定レベルとなるタイミングに応じて、周期信号の位相を変化させてもよい。   The pulse modulation signal generator slices a periodic signal of a predetermined frequency with a value corresponding to the target torque of the multiphase motor to generate a pulse modulation signal whose duty ratio changes, and the pulse adjuster detects the back electromotive force The phase of the periodic signal may be changed according to the timing at which the signal becomes a predetermined level.

パルス変調信号生成部は、逆起検出信号の周期より短い所定の周期でカウントアップまたはカウントダウン動作を繰り返す変調カウンタを含み、当該変調カウンタによるカウント値を目標トルクを示すトルク信号の値でスライスしてもよい。パルス調節部は、逆起検出信号が所定レベルとなるタイミングに応じて、変調カウンタをセットするカウンタセット部を含んでもよい。   The pulse modulation signal generation unit includes a modulation counter that repeats count-up or count-down operation at a predetermined cycle shorter than the cycle of the back electromotive detection signal, and slices the count value by the modulation counter with the value of the torque signal indicating the target torque. Also good. The pulse adjusting unit may include a counter setting unit that sets a modulation counter according to the timing at which the back electromotive detection signal becomes a predetermined level.

パルス調節部は、逆起検出信号が所定レベルとなるタイミングごとにセットされ、カウントを開始する第2カウンタと、第2カウンタを監視し、逆起検出信号が所定レベルとなってから、次に逆起検出信号が所定レベルとなるまでの間の当該第2カウンタのカウント値の変化量を取得し、取得した値を第2カウンタの次のセット時の初期値に設定する初期値設定部と、をさらに含んでもよい。カウンタセット部は、第2カウンタのカウント値が所定の値となるごとに、変調カウンタをセットしてもよい。   The pulse adjustment unit is set at each timing when the back electromotive detection signal becomes a predetermined level, monitors the second counter that starts counting, and the second counter, and after the back electromotive detection signal becomes the predetermined level, An initial value setting unit that acquires the amount of change in the count value of the second counter until the back electromotive detection signal reaches a predetermined level, and sets the acquired value as an initial value at the next setting of the second counter; , May further be included. The counter setting unit may set the modulation counter each time the count value of the second counter reaches a predetermined value.

ある態様のモータ駆動回路は、1つの半導体基板上に一体集積化されてもよい。「一体集積化」とは、回路の構成要素のすべてが半導体基板上に形成される場合や、回路の主要構成要素が一体集積化される場合が含まれ、回路定数の調節用に一部の抵抗やキャパシタなどが半導体基板の外部に設けられていてもよい。モータ駆動回路を、1つのLSIとして集積化することにより、回路面積を削減することができる。   The motor drive circuit of a certain aspect may be integrated on a single semiconductor substrate. “Integrated integration” includes the case where all of the circuit components are formed on a semiconductor substrate and the case where the main components of the circuit are integrated. A resistor, a capacitor, or the like may be provided outside the semiconductor substrate. By integrating the motor drive circuit as one LSI, the circuit area can be reduced.

本発明の別の態様は、ディスク装置である。この装置は、ディスクを回転させるスピンドルモータと、スピンドルモータを駆動する上述のモータ駆動回路と、を備える。
この態様によると、モータ駆動回路によるゼロクロス点を精度よく検出できるため、スピンドルモータを安定に回転させることができる。
Another embodiment of the present invention is a disk device. This apparatus includes a spindle motor that rotates a disk and the above-described motor drive circuit that drives the spindle motor.
According to this aspect, since the zero cross point by the motor drive circuit can be detected with high accuracy, the spindle motor can be stably rotated.

本発明のさらに別の態様は、多相モータに駆動電流を供給して駆動するモータ駆動方法に関する。この方法は、多相モータの目標トルクに応じてデューティ比が変化するパルス変調信号を生成するステップと、多相モータの少なくとも1つのコイルに発生する逆起電圧を、コイルの中点電圧と比較してゼロクロス点を検出し、ゼロクロス点のタイミングで所定レベルとなる逆起検出信号を生成するステップと、逆起検出信号にもとづいて駆動する相を切り替えるシーケンス制御を行うとともに、パルス変調信号にもとづいて、コイルに接続されるハイサイドスイッチおよびローサイドスイッチの少なくとも一方をスイッチング制御するステップと、逆起検出信号の1周期内の所定のタイミングで所定レベルとなる基準信号を生成するステップと、逆起検出信号と基準信号の位相誤差が最小となり、かつ、パルス変調信号の周波数が逆起検出信号の周波数の整数倍となるように、パルス変調信号の周波数および位相を調節するステップと、を備える。   Yet another embodiment of the present invention relates to a motor driving method for driving a multiphase motor by supplying a driving current. In this method, a step of generating a pulse modulation signal whose duty ratio changes according to the target torque of the multiphase motor, and a counter electromotive voltage generated in at least one coil of the multiphase motor is compared with a midpoint voltage of the coil. Then, the zero cross point is detected, a step of generating a back electromotive detection signal that reaches a predetermined level at the timing of the zero cross point, sequence control for switching the driving phase based on the back electromotive detection signal, and a pulse modulation signal are performed. Switching control of at least one of the high-side switch and the low-side switch connected to the coil, generating a reference signal having a predetermined level at a predetermined timing within one cycle of the counter-electromotive force detection signal, The phase error between the detection signal and the reference signal is minimized, and the frequency of the pulse modulation signal is detected back. To be an integral multiple of the frequency of the issue, comprising the steps of adjusting the frequency and phase of the pulse modulation signal.

本発明によれば、モータをパルス変調して駆動する際に、ゼロクロス点を正確に検出することができる。   According to the present invention, when the motor is driven by pulse modulation, the zero cross point can be accurately detected.

以下、本発明を好適な実施の形態をもとに図面を参照しながら説明する。各図面に示される同一または同等の構成要素、部材、処理には、同一の符号を付するものとし、適宜重複した説明は省略する。また、実施の形態は、発明を限定するものではなく例示であって、実施の形態に記述されるすべての特徴やその組み合わせは、必ずしも発明の本質的なものであるとは限らない。   The present invention will be described below based on preferred embodiments with reference to the drawings. The same or equivalent components, members, and processes shown in the drawings are denoted by the same reference numerals, and repeated descriptions are omitted as appropriate. The embodiments do not limit the invention but are exemplifications, and all features and combinations thereof described in the embodiments are not necessarily essential to the invention.

本明細書において、「部材Aと部材Bが接続」された状態とは、部材Aと部材Bが物理的に直接的に接続される場合や、部材Aと部材Bが、電気的な接続状態に影響を及ぼさない他の部材を介して間接的に接続される場合も含む。
同様に、「部材Aと部材Bの間に部材Cが設けられた状態」とは、部材Aと部材C、あるいは部材Bと部材Cが直接的に接続される場合のほか、電気的な接続状態に影響を及ぼさない他の部材を介して間接的に接続される場合も含む。
In this specification, “the state in which the member A and the member B are connected” means that the member A and the member B are physically directly connected, or the member A and the member B are in an electrically connected state. Including the case of being indirectly connected through other members that do not affect the above.
Similarly, “the state in which the member C is provided between the member A and the member B” refers to the case where the member A and the member C or the member B and the member C are directly connected, as well as an electrical connection. The case where it is indirectly connected through another member that does not affect the state is also included.

(第1の実施の形態)
図2は、実施の形態に係るモータ駆動回路100の構成を示すブロック図である。モータ駆動回路100は、センサレスブラシレスDCモータ(以下、単に「モータ110」という)に駆動電流を供給して回転を制御する。本実施の形態において、駆動対象となるモータ110は、U相、V相、W相のコイルLu、Lv、Lwを含む3相DCモータである。
(First embodiment)
FIG. 2 is a block diagram showing a configuration of the motor drive circuit 100 according to the embodiment. The motor drive circuit 100 controls the rotation by supplying a drive current to a sensorless brushless DC motor (hereinafter simply referred to as “motor 110”). In the present embodiment, the motor 110 to be driven is a three-phase DC motor including U-phase, V-phase, and W-phase coils Lu, Lv, and Lw.

モータ駆動回路100は、スイッチング回路10と総称されるスイッチング回路10u、10v、10wと、逆起検出回路20と、スイッチング制御部30と、パルス幅変調信号生成部(以下、PWM信号生成部という)50を備える。モータ駆動回路100は、1つの半導体基板上に機能ICとして一体集積化される。たとえば、モータ駆動回路100は、所望のトルクが得られるように、多相のモータ110をPWM駆動する。さらに、180度通電方式により、各相のコイルに流れる電流が、アーチ状あるいは正弦波状となるようにPWM駆動のデューティ比を変化させてもよい。   The motor driving circuit 100 includes switching circuits 10u, 10v, and 10w, which are collectively referred to as a switching circuit 10, a back electromotive force detection circuit 20, a switching control unit 30, and a pulse width modulation signal generation unit (hereinafter referred to as a PWM signal generation unit). 50. The motor drive circuit 100 is integrally integrated as a functional IC on one semiconductor substrate. For example, the motor drive circuit 100 PWM-drives the multiphase motor 110 so that a desired torque can be obtained. Furthermore, the duty ratio of the PWM drive may be changed so that the current flowing through the coil of each phase becomes an arch shape or a sine wave shape by the 180-degree energization method.

スイッチング回路10u、10v、10wは、モータ110のコイルLu、Lv、Lwごとに設けられる。スイッチング回路10uは、たとえば電源電圧と接地電位間に直列に接続されたハイサイドスイッチおよびローサイドスイッチ(不図示)を含んで構成され、2つのスイッチの接続点がコイルLuの一端に接続される。ハイサイドスイッチおよびローサイドスイッチの制御端子(ゲート)には、駆動信号DRV_H(U)および駆動信号DRV_L(U)がそれぞれ入力される。スイッチング回路10uは、接続されたコイルLuの一端に、ハイサイドスイッチがオンの状態でハイレベルの電圧(Vdd)を印加し、ローサイドスイッチがオンの状態でローレベルの電圧(0V)を印加する。また、ハイサイドスイッチおよびローサイドスイッチが同時にオフすることで、ハイインピーダンス状態に設定される。V相、W相についても同様である。   The switching circuits 10u, 10v, and 10w are provided for each of the coils Lu, Lv, and Lw of the motor 110. The switching circuit 10u includes, for example, a high side switch and a low side switch (not shown) connected in series between a power supply voltage and a ground potential, and a connection point between the two switches is connected to one end of the coil Lu. The drive signal DRV_H (U) and the drive signal DRV_L (U) are input to the control terminals (gates) of the high side switch and the low side switch, respectively. The switching circuit 10u applies, to one end of the connected coil Lu, a high level voltage (Vdd) when the high side switch is on, and a low level voltage (0V) when the low side switch is on. . Further, the high-side switch and the low-side switch are simultaneously turned off to set the high impedance state. The same applies to the V phase and the W phase.

逆起検出回路20は、モータ110の少なくとも1つのコイルに発生する逆起電圧を、コイルの中点電圧と比較してゼロクロス点を検出し、2つの電圧が交差するゼロクロス点のタイミングで所定レベル(以下、ハイレベルとする)となる逆起検出信号BEMF_EDGEを出力する。本実施の形態において、逆起検出回路20は、U相のコイルLuに発生する逆起電圧Vuおよび中点電圧Vcomをモニタして逆起検出信号BEMF_EDGEを生成する。生成された逆起検出信号BEMF_EDGEは、駆動タイミング生成部32、ウィンドウ生成部40、PWM信号生成部50へと出力される。逆起検出回路20の詳細については後述する。   The back electromotive force detection circuit 20 compares the back electromotive voltage generated in at least one coil of the motor 110 with the midpoint voltage of the coil to detect a zero cross point, and at a predetermined level at the timing of the zero cross point where the two voltages cross. A back electromotive force detection signal BEMF_EDGE that is (hereinafter referred to as high level) is output. In the present embodiment, the back electromotive force detection circuit 20 generates a back electromotive force detection signal BEMF_EDGE by monitoring the back electromotive voltage Vu and the midpoint voltage Vcom generated in the U-phase coil Lu. The generated back electromotive detection signal BEMF_EDGE is output to the drive timing generation unit 32, the window generation unit 40, and the PWM signal generation unit 50. Details of the back electromotive force detection circuit 20 will be described later.

PWM信号生成部50は、少なくともモータ110の目標トルクに応じてデューティ比が変化するパルス幅変調信号(以下、PWM信号Spwmという)を生成する。PWM信号生成部50は、三角波やのこぎり波状の周期信号Soscと、トルクを指示する信号(以下、トルク信号という)TRQのレベルを比較し、大小関係に応じてPWM信号Spwmのハイレベルとローレベルの期間を変化させる。なお、PWM信号生成部50は、デジタル回路、アナログ回路のいずれで構成されてもよい。以下、デジタル回路による構成を例に説明するが、同等の機能を有するアナログ回路による置換は可能である。   The PWM signal generation unit 50 generates a pulse width modulation signal (hereinafter referred to as a PWM signal Spwm) whose duty ratio changes at least according to the target torque of the motor 110. The PWM signal generation unit 50 compares the level of a triangular wave or sawtooth wave periodic signal Sosc with a signal TRQ indicating a torque (hereinafter referred to as a torque signal) TRQ, and the high level and low level of the PWM signal Spwm according to the magnitude relationship. Change the period. Note that the PWM signal generation unit 50 may be configured by either a digital circuit or an analog circuit. Hereinafter, a configuration using a digital circuit will be described as an example, but replacement with an analog circuit having an equivalent function is possible.

PWM信号生成部50は、コイルLu、Lv、Lwに流れるコイル電流を、緩やかに変化させるために、目標トルクと、正弦波状あるいはアーチ状の制御波形を合成して、PWM信号Spwmを生成してもよい。   The PWM signal generation unit 50 generates a PWM signal Spwm by synthesizing a target torque and a sinusoidal or arched control waveform in order to gently change the coil current flowing through the coils Lu, Lv, and Lw. Also good.

スイッチング制御部30は、PWM信号生成部50からのPWM信号Spwmと、逆起検出回路20からの逆起検出信号BEMF_EDGEと、を受ける。スイッチング制御部30は、逆起検出信号BEMF_EDGEにもとづいて駆動する相(U,V,W)を切り替えるシーケンス制御を行う。また、PWM信号Spwmにもとづいて、スイッチング回路10に含まれるハイサイドスイッチMHおよびローサイドスイッチMLの少なくとも一方をスイッチング制御する。   The switching control unit 30 receives the PWM signal Spwm from the PWM signal generation unit 50 and the back electromotive detection signal BEMF_EDGE from the back electromotive detection circuit 20. The switching control unit 30 performs sequence control for switching driving phases (U, V, W) based on the back electromotive detection signal BEMF_EDGE. Further, switching control is performed on at least one of the high-side switch MH and the low-side switch ML included in the switching circuit 10 based on the PWM signal Spwm.

この機能を実現するために、スイッチング制御部30は、駆動タイミング生成部32、駆動信号合成回路34、ウィンドウ生成部40を含む。
駆動タイミング生成部32は、逆起検出信号BEMF_EDGEを受け、複数のスイッチング回路10u、10v、10wのオンオフ状態のシーケンスを制御するための駆動信号DRVを生成する。たとえば、駆動信号DRVは、逆起検出信号BEMF_EDGEの周期Tp1の1/6の周期を有する信号である。駆動信号DRVは、180度通電、120度通電などの方式に応じて生成すればよい。
In order to realize this function, the switching control unit 30 includes a drive timing generation unit 32, a drive signal synthesis circuit 34, and a window generation unit 40.
The drive timing generation unit 32 receives the back electromotive detection signal BEMF_EDGE and generates a drive signal DRV for controlling an on / off state sequence of the plurality of switching circuits 10u, 10v, and 10w. For example, the drive signal DRV is a signal having a cycle that is 1/6 of the cycle Tp1 of the back electromotive detection signal BEMF_EDGE. The drive signal DRV may be generated according to a method such as 180 degree energization or 120 degree energization.

駆動信号合成回路34は、駆動信号DRVと、PWM信号Spwmを合成して、駆動信号DRV_H(U、V、W)、DRV_L(U、V、W)を出力し、スイッチング回路10u、10v、10wの状態を制御する。具体的には、駆動信号合成回路34は、PWM信号Spwmにもとづいて、複数のスイッチング回路10u、10v、10wに含まれるハイサイドスイッチMHおよびローサイドスイッチMLの少なくとも一方をPWM方式によりスイッチング制御する。   The drive signal synthesis circuit 34 synthesizes the drive signal DRV and the PWM signal Spwm to output drive signals DRV_H (U, V, W) and DRV_L (U, V, W), and the switching circuits 10u, 10v, 10w. Control the state of Specifically, the drive signal synthesis circuit 34 performs switching control of at least one of the high-side switch MH and the low-side switch ML included in the plurality of switching circuits 10u, 10v, and 10w by the PWM method based on the PWM signal Spwm.

ウィンドウ生成部40は、逆起検出回路20によるゼロクロス点の検出に先立ち、逆起検出の対象となるコイルLuに接続されるスイッチング回路10uのスイッチングを停止してハイインピーダンスに設定するためのウィンドウ信号WINDOWを生成する。本実施の形態において、所定レベルはハイレベルである。120度通電を行う場合などにおいて、逆起検出の対象となるコイルLuに、電流が流れない期間が存在する場合には、ウィンドウ生成部40は省略することができる。   Prior to the detection of the zero cross point by the back electromotive force detection circuit 20, the window generator 40 stops the switching of the switching circuit 10u connected to the coil Lu that is the target of back electromotive force detection and sets the window signal to high impedance. WINDOW is generated. In the present embodiment, the predetermined level is a high level. When performing 120-degree energization or the like, if there is a period during which no current flows in the coil Lu that is the target of back electromotive force detection, the window generator 40 can be omitted.

ウィンドウ信号WINDOWは、駆動信号合成回路34へと出力される。駆動信号合成回路34は、ウィンドウ信号WINDOWがハイレベルである期間、ゼロクロス点の検出のためにモニタすべき逆起電圧Vuが発生する端子に接続されたスイッチング回路10uのスイッチングを停止し、ハイインピーダンス状態に設定する。すなわち、ウィンドウ信号WINDOWがハイレベルとなる期間は、ゼロクロス点の検出のために、故意に駆動しない相が設定される。本実施の形態では、非駆動期間Tp3において、U相が駆動しない相に設定される。   The window signal WINDOW is output to the drive signal synthesis circuit 34. During the period when the window signal WINDOW is at a high level, the drive signal synthesis circuit 34 stops switching of the switching circuit 10u connected to the terminal where the back electromotive voltage Vu to be monitored for detection of the zero cross point is generated, and the high impedance Set to state. That is, during the period in which the window signal WINDOW is at a high level, a phase that is not intentionally driven is set in order to detect the zero cross point. In the present embodiment, in the non-driving period Tp3, the U phase is set to a phase that is not driven.

以上のように構成されたモータ駆動回路100の全体動作を説明する。図3(a)〜(l)は、図2のモータ駆動回路100の動作を示すタイムチャートである。同図(a)〜(l)の縦軸および横軸は、理解を容易とするために適宜拡大、縮小したものであり、また示される各波形も、理解の容易のために簡略化されている。同図(a)〜(c)は、スイッチング回路10u、10v、10wにより、U相、V相、W相のコイルLu、Lv、Lwの駆動状態を示す波形である。同図(d)は、逆起検出回路20により検出される逆起検出信号BEMF_EDGEを、同図(e)は、駆動タイミング生成部32により生成される駆動信号DRVを、同図(f)は、ウィンドウ生成部40により生成されるウィンドウ信号WINDOWを、示す。さらに、同図(g)〜(l)は、スイッチング回路10u〜10wの、ハイサイドスイッチMHおよびローサイドスイッチMLの駆動信号DRV_H、DRV_Lを示す。   The overall operation of the motor drive circuit 100 configured as described above will be described. 3A to 3L are time charts showing the operation of the motor drive circuit 100 of FIG. The vertical and horizontal axes in FIGS. 1A to 1L are enlarged or reduced as appropriate for easy understanding, and the waveforms shown are also simplified for easy understanding. Yes. FIGS. 4A to 4C are waveforms showing driving states of the U-phase, V-phase, and W-phase coils Lu, Lv, and Lw by the switching circuits 10u, 10v, and 10w. FIG. 6D shows the back electromotive detection signal BEMF_EDGE detected by the back electromotive detection circuit 20, FIG. 5E shows the drive signal DRV generated by the drive timing generation unit 32, and FIG. The window signal WINDOW generated by the window generator 40 is shown. Further, (g) to (l) in the figure show drive signals DRV_H and DRV_L for the high-side switch MH and the low-side switch ML of the switching circuits 10u to 10w.

図3(a)〜(c)に示すように、本実施の形態では、駆動電流がアーチ波形となるように駆動される。もっとも、本発明はこれに限定されるものではなく、正弦波であってもよいことは上述した通りである。さらには、駆動電流が一定となるように駆動してもよい。本実施の形態において、逆起検出信号BEMF_EDGEは、同図(d)に示すように逆起電圧Vuが中点電圧Vcomと交差するゼロクロス点ごとに生成される。駆動タイミング生成部32は、逆起検出信号BEMF_EDGEの周期Tp1を1/6倍した同図(e)に示す駆動信号DRVを生成する。駆動信号DRVは、図示のごとく、逆起検出信号BEMF_EDGEに対してある遅延Tdが与えられてもよい。この遅延Tdを調節することにより、モータ駆動が最適化される。   As shown in FIGS. 3A to 3C, in the present embodiment, the drive current is driven so as to have an arch waveform. However, the present invention is not limited to this, and may be a sine wave as described above. Furthermore, the driving current may be constant. In the present embodiment, the back electromotive force detection signal BEMF_EDGE is generated for each zero cross point where the back electromotive voltage Vu intersects the midpoint voltage Vcom as shown in FIG. The drive timing generator 32 generates the drive signal DRV shown in FIG. 5E, which is 1/6 times the period Tp1 of the back electromotive detection signal BEMF_EDGE. As shown in the figure, the drive signal DRV may be given a delay Td with respect to the back electromotive force detection signal BEMF_EDGE. By adjusting the delay Td, the motor drive is optimized.

駆動信号合成回路34は、駆動タイミング生成部32により生成された駆動信号DRVにもとづき、スイッチング回路10u〜10wのオンオフを制御するための駆動信号DRV_H(U、V、W)、DRV_L(U、V、W)を生成する。この駆動シーケンスは、通電角などに応じて適宜設定される。   The drive signal synthesizing circuit 34 is based on the drive signal DRV generated by the drive timing generation unit 32, and drives signals DRV_H (U, V, W), DRV_L (U, V) for controlling on / off of the switching circuits 10u to 10w. , W). This driving sequence is appropriately set according to the energization angle and the like.

図3(g)に示す駆動信号DRV_HUは、ハイレベルがスイッチング回路10uのハイサイドスイッチのオン状態に、ローレベルがオフ状態に対応する。同図(h)〜(l)に示す駆動信号DRV_H(V、W)、DRV_L(U、V、W)についても同様である。さらに、ハイサイドスイッチ、あるいはローサイドスイッチの少なくとも一方のオン状態は、同図(a)〜(c)に示す駆動波形が得られるように、パルス幅変調されており、スイッチング回路10u〜10wのハイサイドスイッチもしくはローサイドスイッチは、PWM信号にもとづいて高い周波数でオンオフを交互に繰り返す。   In the drive signal DRV_HU shown in FIG. 3G, the high level corresponds to the on state of the high side switch of the switching circuit 10u, and the low level corresponds to the off state. The same applies to the drive signals DRV_H (V, W) and DRV_L (U, V, W) shown in FIGS. Further, the ON state of at least one of the high side switch and the low side switch is pulse width modulated so as to obtain the drive waveforms shown in FIGS. The side switch or the low side switch alternately turns on and off at a high frequency based on the PWM signal.

駆動信号合成回路34は、逆起検出信号BEMF_EDGEが出力されるたびに、所定の駆動シーケンスにしたがって、スイッチング回路10u〜10wの駆動信号DRV_H、DRV_Lのオンオフ状態を遷移させる。   Each time the back electromotive detection signal BEMF_EDGE is output, the drive signal synthesis circuit 34 changes the on / off states of the drive signals DRV_H and DRV_L of the switching circuits 10u to 10w according to a predetermined drive sequence.

同図(f)に示すウィンドウ信号WINDOWは、ゼロクロス点が発生する時刻に先立ち、ウィンドウ生成部40によりハイレベルとされる。駆動信号合成回路34は、ウィンドウ生成部40がハイレベルの期間、スイッチング回路10uに出力する駆動信号DRV_HU、DRV_LUをローレベルとし、ハイサイドスイッチおよびローサイドスイッチをオフして、ハイインピーダンス状態とする。同図(g)、(j)に、ゼロクロス点の検出のために、ハイインピーダンス状態に設定される期間を斜線で示す。ウィンドウ信号WINDOWがハイレベルとなり、コイルLuの一端がハイインピーダンス状態に設定されると、ゼロクロス点の検出が可能となり、逆起検出信号BEMF_EDGEが生成される。   The window signal WINDOW shown in FIG. 5F is set to the high level by the window generator 40 prior to the time when the zero cross point occurs. The drive signal synthesizing circuit 34 sets the drive signals DRV_HU and DRV_LU output to the switching circuit 10u to a low level while the window generation unit 40 is at a high level, and turns off the high-side switch and the low-side switch to a high impedance state. In the same figure (g) and (j), the period during which the high impedance state is set in order to detect the zero cross point is indicated by hatching. When the window signal WINDOW becomes high level and one end of the coil Lu is set to a high impedance state, the zero cross point can be detected, and the back electromotive detection signal BEMF_EDGE is generated.

以上がモータ駆動回路100の全体構成および動作の概略である。次に、逆起検出回路20およびPWM信号生成部50について説明する。
図4は、第1の実施の形態に係る図2の逆起検出回路20およびPWM信号生成部50の構成を示すブロック図である。図5(a)〜(h)は、図4の逆起検出回路20およびPWM信号生成部50により生成される各信号の波形を示すタイムチャートである。
The above is the general configuration and operation of the motor drive circuit 100. Next, the back electromotive detection circuit 20 and the PWM signal generation unit 50 will be described.
FIG. 4 is a block diagram showing a configuration of the back electromotive force detection circuit 20 and the PWM signal generation unit 50 of FIG. 2 according to the first embodiment. 5A to 5H are time charts showing waveforms of signals generated by the back electromotive detection circuit 20 and the PWM signal generation unit 50 of FIG.

本実施の形態に係る逆起検出回路20には、逆起電圧Vu、中点電圧Vcom、マスク信号MSKが入力される。マスク信号MSKは、ゼロクロス点の検出を有効とする検出期間Tdetを設定する信号であり、ゼロクロス点の検出はマスク信号MSKが所定レベル(ローレベル)の期間のみ有効となる。マスク信号MSKは後述のマスク信号生成部66により生成される。   The back electromotive voltage Vu, the midpoint voltage Vcom, and the mask signal MSK are input to the back electromotive force detection circuit 20 according to the present embodiment. The mask signal MSK is a signal for setting a detection period Tdet in which detection of the zero cross point is valid, and detection of the zero cross point is valid only during a period in which the mask signal MSK is at a predetermined level (low level). The mask signal MSK is generated by a mask signal generation unit 66 described later.

逆起検出回路20は、コンパレータ22、ANDゲート23、フリップフロップ24を含む。コンパレータ22は逆起電圧Vuと中点電圧Vcomを比較し、大小関係に応じた比較信号Scmpを出力する。ANDゲート23は、比較信号Scmpと、マスク信号MSKの論理反転(*MSK)の論理積を出力する。フリップフロップ24は、ANDゲート23の出力を、システムクロックCKにもとづいてラッチする。このように構成された逆起検出回路20によれば、マスク信号MSKがローレベルの検出期間TdetにVu>Vcomとなると、逆起検出信号BEMF_EDGEがハイレベルとなりゼロクロス点が検出される。検出期間Tdet以外でVu>Vcomとなってもマスクされるため、ゼロクロス点は検出されない。   The back electromotive detection circuit 20 includes a comparator 22, an AND gate 23, and a flip-flop 24. The comparator 22 compares the back electromotive voltage Vu and the midpoint voltage Vcom, and outputs a comparison signal Scmp corresponding to the magnitude relationship. The AND gate 23 outputs a logical product of the comparison signal Scmp and the logical inversion (* MSK) of the mask signal MSK. The flip-flop 24 latches the output of the AND gate 23 based on the system clock CK. According to the back electromotive force detection circuit 20 configured as described above, when the mask signal MSK becomes Vu> Vcom in the low level detection period Tdet, the back electromotive force detection signal BEMF_EDGE becomes high level and the zero cross point is detected. Since Vu> Vcom other than the detection period Tdet is masked, the zero cross point is not detected.

PWM信号生成部50には、トルクを指示する信号TRQが入力される。PWM信号生成部50は、トルク信号TRQに応じてパルス幅(デューティ比)が変化するPWM信号Spwmを生成する。さらにPWM信号生成部50には、逆起検出回路20により生成された逆起検出信号BEMF_EDGEが入力される。   A signal TRQ instructing torque is input to the PWM signal generation unit 50. The PWM signal generation unit 50 generates a PWM signal Spwm whose pulse width (duty ratio) changes according to the torque signal TRQ. Further, the back electromotive force detection signal BEMF_EDGE generated by the back electromotive force detection circuit 20 is input to the PWM signal generation unit 50.

PWM信号生成部50は、逆起検出信号BEMF_EDGEがハイレベルとなるタイミング、つまりその周波数(周期)を帰還量として、PWM信号Spwmのデューティ比および位相をフィードバックによって調節する。以下、このフィードバックについて説明する。   The PWM signal generation unit 50 adjusts the duty ratio and phase of the PWM signal Spwm by feedback using the timing at which the back electromotive detection signal BEMF_EDGE becomes high level, that is, its frequency (cycle) as a feedback amount. Hereinafter, this feedback will be described.

PWM信号生成部50は、パルス生成部60、パルス調節部80を含む。それぞれのブロックは、以下の機能を有する。   The PWM signal generation unit 50 includes a pulse generation unit 60 and a pulse adjustment unit 80. Each block has the following functions.

パルス生成部60は、PWM信号Spwm、マスク信号MSK、基準信号REFの3つの信号を生成する。パルス生成部60は、変調カウンタ62、基準信号生成部64、マスク信号生成部66、トルク制御部68を含む。   The pulse generator 60 generates three signals: a PWM signal Spwm, a mask signal MSK, and a reference signal REF. The pulse generator 60 includes a modulation counter 62, a reference signal generator 64, a mask signal generator 66, and a torque controller 68.

トルク制御部68は、外部から入力されたトルク信号TRQに応じたデューティ比を有するPWM信号Spwmを生成する。変調カウンタ62にはシステムクロックCKが入力されており、あるタイミングでセットされると、カウントアップ(またはカウントダウン)を開始し、これを所定の周波数(周期)で繰り返す。このように生成されるカウント値CNTは、のこぎり波となる。トルク制御部68は、変調カウンタ62によるカウント値と目標トルク信号TRQの値を比較し、TRQ>CNTのときハイレベル、TRQ<CNTのときローレベルとなるPWM信号Spwmを生成する。PWM信号Spwmがハイレベルの期間、スイッチング回路10によって各コイルLu〜Lwの一端に電源電圧または接地電圧が印加される。以下、PWM信号Spwmがハイレベルの期間をオン期間Tonという。   The torque control unit 68 generates a PWM signal Spwm having a duty ratio according to the torque signal TRQ input from the outside. The system clock CK is input to the modulation counter 62. When the system clock CK is set at a certain timing, count-up (or count-down) is started, and this is repeated at a predetermined frequency (period). The count value CNT generated in this way is a sawtooth wave. The torque control unit 68 compares the count value of the modulation counter 62 with the value of the target torque signal TRQ, and generates a PWM signal Spwm that is high level when TRQ> CNT and low level when TRQ <CNT. While the PWM signal Spwm is at a high level, the switching circuit 10 applies a power supply voltage or a ground voltage to one end of each of the coils Lu to Lw. Hereinafter, a period in which the PWM signal Spwm is at a high level is referred to as an on period Ton.

また、基準信号生成部64は所定のタイミングごとに所定レベル(ハイレベル)となる基準信号REFを生成する。基準信号REFは、逆起検出信号BEMF_EDGEの位相が一致すべきタイミングを規定する。
マスク信号生成部66は、マスク信号MSKを生成する。上述したように、マスク信号MSKは、ゼロクロス点の検出期間Tdetを設定する信号であり、PWM信号Spwmのオン期間Ton中の検出期間Tdetの間、ローレベルとなる。マスク信号MSKを生成するためにマスク信号生成部66は、PWM信号Spwmがハイレベルに遷移したことを契機としてカウントを開始するカウンタ(不図示)を含んでもよい。この場合、カウント値が第1所定値になるとマスク信号MSKをローレベルとし、その後第2所定値となるとマスク信号MSKをハイレベルとすればよい。
Further, the reference signal generation unit 64 generates a reference signal REF that becomes a predetermined level (high level) at every predetermined timing. The reference signal REF defines the timing at which the phase of the back electromotive detection signal BEMF_EDGE should match.
The mask signal generation unit 66 generates a mask signal MSK. As described above, the mask signal MSK is a signal for setting the zero-cross point detection period Tdet, and is at a low level during the detection period Tdet during the ON period Ton of the PWM signal Spwm. In order to generate the mask signal MSK, the mask signal generation unit 66 may include a counter (not shown) that starts counting when the PWM signal Spwm transitions to a high level. In this case, the mask signal MSK may be set to the low level when the count value reaches the first predetermined value, and then the mask signal MSK may be set to the high level when the count value reaches the second predetermined value.

パルス調節部80は、逆起検出回路20からの逆起検出信号BEMF_EDGEと、所定のタイミングで所定レベルとなる基準信号REFを受ける。パルス調節部80は2つの信号の位相を比較し、2つの信号の位相誤差Δφが最小となり、かつ、PWM信号Spwmの周波数が逆起検出信号BEMF_EDGEの周波数の整数倍となるように、PWM信号Spwmの周波数および位相を調節する。   The pulse adjustment unit 80 receives the back electromotive force detection signal BEMF_EDGE from the back electromotive force detection circuit 20 and the reference signal REF that becomes a predetermined level at a predetermined timing. The pulse adjustment unit 80 compares the phases of the two signals, and the PWM signal is such that the phase error Δφ between the two signals is minimized and the frequency of the PWM signal Spwm is an integral multiple of the frequency of the back electromotive detection signal BEMF_EDGE. Adjust the frequency and phase of Spwm.

この機能を実現するために、パルス調節部80は、位相誤差検出部82、フリーランカウンタ84、周波数誤差検出部86、カウンタセット部88を含む。
位相誤差検出部82は、基準信号REFと逆起検出信号BEMF_EDGEを受ける。位相誤差検出部82は、2つの信号の位相誤差Δφを検出し、位相誤差Δφを示す位相誤差信号PEを出力する。位相誤差信号PEは、位相誤差Δφの時間をシステムクロックCKでカウントした値である。
In order to realize this function, the pulse adjustment unit 80 includes a phase error detection unit 82, a free-run counter 84, a frequency error detection unit 86, and a counter set unit 88.
The phase error detector 82 receives the reference signal REF and the back electromotive detection signal BEMF_EDGE. The phase error detector 82 detects the phase error Δφ between the two signals and outputs a phase error signal PE indicating the phase error Δφ. The phase error signal PE is a value obtained by counting the time of the phase error Δφ with the system clock CK.

パルス調節部80は、モータ110の回転数、すなわち逆起検出信号BEMF_EDGEの周波数(周期時間)を検出する機能を有する。逆起検出信号BEMF_EDGEの周波数の検出は、フリーランカウンタ84、周波数誤差検出部86により実行される。   The pulse adjusting unit 80 has a function of detecting the rotation speed of the motor 110, that is, the frequency (period time) of the back electromotive detection signal BEMF_EDGE. The detection of the frequency of the back electromotive detection signal BEMF_EDGE is executed by the free run counter 84 and the frequency error detector 86.

フリーランカウンタ84は、システムクロックCKを受け、変調カウンタ62と同じ周期で動作する。フリーランカウンタ84は、変調カウンタ62と異なり、セットされることなく同じ周期でカウントアップまたはカウントダウンを繰り返す。   The free-run counter 84 receives the system clock CK and operates at the same cycle as the modulation counter 62. Unlike the modulation counter 62, the free-run counter 84 repeats counting up or counting down at the same cycle without being set.

周波数誤差検出部86は、逆起検出信号BEMF_EDGEと、フリーランカウンタ84のカウント値FRCNTを受ける。周波数誤差検出部86は、毎回、逆起検出信号BEMF_EDGEがハイレベルとなる時刻におけるフリーランカウンタ84のカウント値をモニタする。i(iは任意の自然数)回目のカウント値をP[i]と書く。
周波数誤差検出部86は、今回のカウント値P[i]と、その前の(i−1)回目に逆起検出信号が所定レベルとなる時刻におけるフリーランカウンタ84のカウント値P[i−1]との差分を、
ΔP[i]=P[i]−P[i−1]
により毎回演算する。カウント値P[i]の差分ΔPは、逆起検出信号BEMF_EDGEの周期時間の変動、すなわち周波数の変動を示すデータとなる。
The frequency error detector 86 receives the back electromotive detection signal BEMF_EDGE and the count value FRCNT of the free-run counter 84. The frequency error detector 86 monitors the count value of the free-run counter 84 at the time when the back electromotive detection signal BEMF_EDGE becomes high level each time. The count value for the i-th (i is an arbitrary natural number) is written as P [i].
The frequency error detector 86 counts the current count value P [i] and the count value P [i−1] of the free-run counter 84 at the time when the back electromotive detection signal reaches a predetermined level for the previous (i−1) th time. The difference from
ΔP [i] = P [i] −P [i−1]
Is calculated every time. The difference ΔP of the count value P [i] is data indicating the fluctuation of the cycle time of the back electromotive detection signal BEMF_EDGE, that is, the fluctuation of the frequency.

周波数誤差検出部86は、今回の差分ΔP[i]と、前回の差分ΔP[i−1]=P[i−1]−P[i−2]との差
δF[i]=ΔP[i]−ΔP[i−1]
を演算する。δF[i]は、逆起検出信号BEMF_EDGEの周波数の誤差、言い換えれば周期時間の誤差を示すデータとなる。以下、δF[i]を周波数誤差データとよぶ。周波数誤差データδF[i]は、周波数(周期時間)の誤差を、システムクロックCKのパルス数で示したデータである。
The frequency error detection unit 86 determines the difference between the current difference ΔP [i] and the previous difference ΔP [i−1] = P [i−1] −P [i−2] δF [i] = ΔP [i ] -ΔP [i-1]
Is calculated. δF [i] is data indicating an error in frequency of the back electromotive detection signal BEMF_EDGE, in other words, an error in cycle time. Hereinafter, δF [i] is referred to as frequency error data. The frequency error data δF [i] is data indicating the frequency (cycle time) error by the number of pulses of the system clock CK.

モータ110が一定の回転数で回転するとき、逆起検出信号BEMF_EDGEのハイレベルとなる時間間隔は一定である。したがって、モータ110の回転数が一定のとき、カウント値P[i]は、1回転ごとに所定の幅で増加し(または減少する)、δF[i]=ΔP[i]−ΔP[i−1]は一定値となる。もし、モータ110の回転数が上昇すれば、δF[i]は増加(または減少)し、モータの回転数は低下すれば、δF[i]は減少(または増加)する。   When the motor 110 rotates at a constant rotational speed, the time interval at which the back electromotive detection signal BEMF_EDGE is at a high level is constant. Therefore, when the rotation speed of the motor 110 is constant, the count value P [i] increases (or decreases) with a predetermined width every rotation, and δF [i] = ΔP [i] −ΔP [i− 1] is a constant value. If the rotation speed of the motor 110 increases, δF [i] increases (or decreases), and if the rotation speed of the motor decreases, δF [i] decreases (or increases).

たとえば、連続する4回のカウント値が、P[i−2]=8、P[i−1]=12、P[i]=16、P[i+1]=18、P[i+2]=22であったとする。
このとき、各差分は、
ΔP[i−1]=4
ΔP[i]=4
ΔP[i+1]=2
ΔP[i+2]=4
となり、
δF[i]=0
δF[i+1]=−2
δF[i+2]=2
となる。
For example, four consecutive count values are P [i−2] = 8, P [i−1] = 12, P [i] = 16, P [i + 1] = 18, and P [i + 2] = 22. Suppose there was.
At this time, each difference is
ΔP [i−1] = 4
ΔP [i] = 4
ΔP [i + 1] = 2
ΔP [i + 2] = 4
And
δF [i] = 0
δF [i + 1] = − 2
δF [i + 2] = 2
It becomes.

カウンタセット部88は、δF[i]が0のとき、前回と同じタイミングで変調カウンタ62をセットし、δF[i]が負のとき、前回よりもセットのタイミングを遅らせ、δF[i]が正のとき、前回よりもセットのタイミングを早める。
より具体的には、δF[i]=0のとき、カウンタセット部88は、前回と同じタイミングでセットする。δF[i+1]=−2の場合、前回のセットのタイミングよりも、システムクロックCKの2クロック分、セットのタイミングを早める。δF[i+1]=2の場合、前回のセットのタイミングよりも、2クロック分、セットのタイミングを遅める。
When δF [i] is 0, the counter setting unit 88 sets the modulation counter 62 at the same timing as the previous time. When δF [i] is negative, the counter setting unit 88 delays the setting timing from the previous time, and δF [i] When positive, set timing is earlier than last time.
More specifically, when δF [i] = 0, the counter setting unit 88 sets at the same timing as the previous time. When δF [i + 1] = − 2, the set timing is advanced by two system clocks CK from the previous set timing. When δF [i + 1] = 2, the set timing is delayed by two clocks from the previous set timing.

さらに、カウンタセット部88は、位相誤差データPEに応じて、変調カウンタ62をセットするタイミングを調節する。上述のように、位相誤差データPEが、逆起検出信号BEMF_EDGEと基準信号REFとの位相誤差Δφを、システムクロックCKの個数で示すとする。たとえば、逆起検出信号BEMF_EDGEが基準信号REFよりも、システムクロックCKのm(mは整数)クロック分遅れている場合、変調カウンタ62をセットするタイミングをクロック数m分だけ遅延させる。逆に、逆起検出信号BEMF_EDGEが基準信号REFよりも、システムクロックCKのm(mは整数)クロック分進んでいる場合、変調カウンタ62をセットするタイミングをクロック数m分だけ早める。   Further, the counter setting unit 88 adjusts the timing for setting the modulation counter 62 according to the phase error data PE. As described above, it is assumed that the phase error data PE indicates the phase error Δφ between the back electromotive detection signal BEMF_EDGE and the reference signal REF by the number of system clocks CK. For example, when the back electromotive detection signal BEMF_EDGE is delayed by m (m is an integer) clocks of the system clock CK from the reference signal REF, the timing for setting the modulation counter 62 is delayed by the number of clocks m. Conversely, when the back electromotive detection signal BEMF_EDGE is advanced by m (m is an integer) clocks of the system clock CK from the reference signal REF, the timing for setting the modulation counter 62 is advanced by the number of clocks m.

つまり、カウンタセット部88は、周波数誤差データδF[i]と、位相誤差データPEを受け、2つの値に応じたタイミングで、変調カウンタ62をセットする。カウンタセット部88は、周波数誤差データδFと位相誤差データPEを加算し、加算結果に応じて変調カウンタ62をセットするタイミングを決定すればよい。   That is, the counter setting unit 88 receives the frequency error data δF [i] and the phase error data PE, and sets the modulation counter 62 at a timing according to the two values. The counter setting unit 88 may add the frequency error data δF and the phase error data PE and determine the timing for setting the modulation counter 62 according to the addition result.

上述したパルス調節部80の処理によって、位相誤差Δφが0に近づき、PWM信号Spwmの周波数が逆起検出信号BEMF_EDGEの周波数の整数倍となるようにフィードバックがかかる。   By the processing of the pulse adjusting unit 80 described above, feedback is applied so that the phase error Δφ approaches 0 and the frequency of the PWM signal Spwm is an integral multiple of the frequency of the back electromotive detection signal BEMF_EDGE.

以下、図5(a)〜(h)を参照しつつ、モータ駆動回路100の動作を詳細に説明する。同図の縦軸や横軸、各波形は、理解を容易とするために簡略化して示しており、実際の波形とは周波数や振幅は異なっている。   Hereinafter, the operation of the motor drive circuit 100 will be described in detail with reference to FIGS. The vertical axis, the horizontal axis, and each waveform in the figure are simplified for easy understanding, and the frequency and amplitude are different from the actual waveform.

時刻t0以前は、非検出期間であり、U相のコイルに電源電圧Vddと接地電圧が交互に印加される。時刻t0に、ウィンドウ生成部40によってゼロクロス点の検出が指示され、U相のコイルLuがハイインピーダンスに設定される。なお、同図のタイムチャートでは、時刻t0、時刻t2が、変調カウンタ62のセットのタイミングとなっており、区間t0〜t2が逆起検出信号BEMF_EDGEの1周期に対応づけられる。   Before the time t0 is a non-detection period, and the power supply voltage Vdd and the ground voltage are alternately applied to the U-phase coil. At time t0, detection of a zero cross point is instructed by the window generator 40, and the U-phase coil Lu is set to high impedance. In the time chart of FIG. 6, time t0 and time t2 are set timings of the modulation counter 62, and the interval t0 to t2 is associated with one cycle of the back electromotive detection signal BEMF_EDGE.

同図(a)、(b)を参照する。変調カウンタ62によるカウント値CNTは、周期Txののこぎり波となる。トルク制御部68は、カウント値CNTと目標トルク信号TRQの値を比較し、TRQ>CNTのときハイレベル、TRQ<CNTのときローレベルとなるPWM信号Spwmを生成する。目標トルク信号TRQが低いほど、PWM信号Spwmのデューティ比(Ton/Tx)は大きくなり、モータ110が高トルクで駆動される。   Reference is made to FIGS. The count value CNT by the modulation counter 62 is a sawtooth wave having a period Tx. The torque control unit 68 compares the count value CNT with the value of the target torque signal TRQ, and generates a PWM signal Spwm that is high when TRQ> CNT and low when TRQ <CNT. The lower the target torque signal TRQ, the larger the duty ratio (Ton / Tx) of the PWM signal Spwm, and the motor 110 is driven with higher torque.

同図(c)に示すように、マスク信号生成部66により生成されるマスク信号MSKは、PWM信号Spwmのオン時間Tonのうちの検出期間Tdetの間、ローレベルとなる。同図(d)に示すように、基準信号REFは、変調カウンタ62がセットされてカウントアップを開始した後、所定時間τの経過後にハイレベルとなる。同図(e)〜(g)は、位相調節部70による逆起検出信号BEMF_EDGEの生成を示している。逆起検出信号BEMF_EDGEは、時刻t1、時刻t3でハイレベルとなる。   As shown in FIG. 6C, the mask signal MSK generated by the mask signal generator 66 is at a low level during the detection period Tdet of the on-time Ton of the PWM signal Spwm. As shown in FIG. 4D, the reference signal REF becomes high level after a predetermined time τ has elapsed after the modulation counter 62 is set and starts counting up. FIGS. 5E to 5G show the generation of the back electromotive detection signal BEMF_EDGE by the phase adjustment unit 70. FIG. The back electromotive detection signal BEMF_EDGE becomes high level at time t1 and time t3.

位相誤差検出部82は、同図(g)、(d)に示される逆起検出信号BEMF_EDGEと基準信号REFの位相誤差Δφを検出し、位相誤差Δφに応じた位相誤差信号PEを生成する。   The phase error detection unit 82 detects the phase error Δφ between the back electromotive detection signal BEMF_EDGE and the reference signal REF shown in FIGS. 5G and 5D, and generates a phase error signal PE corresponding to the phase error Δφ.

図5(h)はフリーランカウンタ84のカウント値FRCNTを示す。逆起検出信号BEMF_EDGEがハイレベルとなる時刻t1、t3におけるカウント値は、それぞれP[i−1]、P[i]で示される。周波数誤差検出部86は、毎周期、カウント値P[i]をモニタし、前回のカウント値P[i−1]との差分ΔP[i]を算出する。さらに周波数誤差検出部86は、算出した差分ΔP[i]と、前回の差分ΔP[i−1]との差である周波数誤差δFを算出する。   FIG. 5 (h) shows the count value FRCNT of the free-run counter 84. The count values at times t1 and t3 when the back electromotive detection signal BEMF_EDGE becomes high level are indicated by P [i-1] and P [i], respectively. The frequency error detector 86 monitors the count value P [i] every cycle and calculates a difference ΔP [i] from the previous count value P [i−1]. Further, the frequency error detector 86 calculates a frequency error δF that is a difference between the calculated difference ΔP [i] and the previous difference ΔP [i−1].

カウンタセット部88は、周波数誤差δF[i]および位相誤差Δφに応じて、次の周期で変調カウンタ62をセットするタイミングを変化させる。その結果、位相誤差Δφに近づき、かつPWM信号Spwmの周波数が逆起検出信号BEMF_EDGEの整数倍となるようにフィードバックがかかり、PWM信号Spwmの位相および周波数が調節される。   The counter setting unit 88 changes the timing for setting the modulation counter 62 in the next cycle according to the frequency error δF [i] and the phase error Δφ. As a result, feedback is applied so that the phase error Δφ approaches and the frequency of the PWM signal Spwm is an integral multiple of the back electromotive detection signal BEMF_EDGE, and the phase and frequency of the PWM signal Spwm are adjusted.

パルス調節部80の処理によって、時刻t0〜t2の周期には、整数個ののこぎり波が含まれる。なお、時刻t2の直前ののこぎり波の周期はTxより小さいが、これも一つののこぎり波である。言い換えれば、逆起検出信号BEMF_EDGEの周期を跨いで増加するのこぎり波が存在しない状態を作り出すことにより、PWM信号Spwmの周波数が、逆起検出信号BEMF_EDGEの周波数の整数倍となる状態を実現している。   By the processing of the pulse adjusting unit 80, an integer number of sawtooth waves are included in the period from time t0 to time t2. The period of the sawtooth wave immediately before time t2 is smaller than Tx, but this is also one sawtooth wave. In other words, by creating a state where there is no sawtooth wave increasing across the period of the back electromotive detection signal BEMF_EDGE, a state in which the frequency of the PWM signal Spwm is an integral multiple of the frequency of the back electromotive detection signal BEMF_EDGE is realized. Yes.

以上、実施の形態に係るモータ駆動回路100の構成および動作について説明した。本実施の形態に係るモータ駆動回路100によれば、逆起検出信号BEMF_EDGEがハイレベルとなるタイミング、すなわちゼロクロス点の発生するタイミングを所定の基準タイミングと合致させることができる。したがって、基準タイミングを含む時間帯に、検出のタイミング(実施の形態では、検出期間Tdet)を設けることにより、確実かつ少ない遅延で逆起検出を行うことができる。逆起検出を高精度で行うことにより、モータ110の回転を高精度で制御することができる。   The configuration and operation of the motor drive circuit 100 according to the embodiment have been described above. According to the motor drive circuit 100 according to the present embodiment, the timing at which the back electromotive detection signal BEMF_EDGE becomes high level, that is, the timing at which the zero cross point occurs can be matched with the predetermined reference timing. Therefore, by providing the detection timing (in the embodiment, the detection period Tdet) in the time zone including the reference timing, the back electromotive detection can be performed reliably and with a small delay. By performing the back electromotive force detection with high accuracy, the rotation of the motor 110 can be controlled with high accuracy.

別の観点からみれば、本実施の形態に係るモータ駆動回路100は、ゼロクロス点が発生するタイミングに合わせて逆起検出を行うのではなく、検出を行うタイミングに、ゼロクロス点が発生するようにモータを駆動する。その結果、意図しないタイミングでゼロクロス点が発生して、その検出が遅れるなどの問題を解消することができ、高精度な検出が実現できる。   From another point of view, the motor drive circuit 100 according to the present embodiment does not detect the back electromotive force in synchronization with the timing at which the zero cross point occurs, but causes the zero cross point to occur at the detection timing. Drive the motor. As a result, problems such as occurrence of a zero-cross point at an unintended timing and a delay in detection thereof can be solved, and high-precision detection can be realized.

(第2の実施の形態)
図6は、第2の実施の形態に係るPWM信号生成部50aの構成を示すブロック図である。図7(a)〜(g)は、図6の逆起検出回路20およびPWM信号生成部50aにより生成される各信号の波形を示すタイムチャートである。
(Second Embodiment)
FIG. 6 is a block diagram illustrating a configuration of a PWM signal generation unit 50a according to the second embodiment. FIGS. 7A to 7G are time charts showing waveforms of signals generated by the back electromotive detection circuit 20 and the PWM signal generation unit 50a of FIG.

図6のPWM信号生成部50aも、図4のPWM信号生成部50と同様に、逆起検出信号BEMF_EDGEがハイレベルとなるタイミング、つまりその周波数(周期)を帰還量として、PWM信号Spwmのデューティ比および位相をフィードバックによって調節する。以下、このフィードバックについて説明する。   Similarly to the PWM signal generation unit 50 of FIG. 4, the PWM signal generation unit 50a of FIG. 6 also uses the timing at which the back electromotive detection signal BEMF_EDGE becomes high level, that is, its frequency (period) as a feedback amount, and the duty of the PWM signal Spwm. The ratio and phase are adjusted by feedback. Hereinafter, this feedback will be described.

図6のPWM信号生成部50aは、パルス生成部60a、パルス調節部80aを含む。
パルス生成部60aは、図4のパルス生成部60に対応する。パルス生成部60aは、所定の周波数を有するのこぎり波状の周期信号を、多相モータの目標トルクTRQに応じた値でスライスする。具体的には、変調カウンタ62は、逆起検出信号BEMF_EDGEの周期より短い所定の周期で、初期値からのカウントアップまたはカウントダウン動作を繰り返す。つまり、変調カウンタ62のカウント値CNTは、のこぎり波状に遷移する周期信号となる。トルク制御部68は、変調カウンタ62によるカウント値と、目標トルクを示すトルク信号TRQの値の大小関係に応じて、ハイレベルとローレベルが遷移するPWM信号Spwmを生成する。
The PWM signal generation unit 50a in FIG. 6 includes a pulse generation unit 60a and a pulse adjustment unit 80a.
The pulse generator 60a corresponds to the pulse generator 60 of FIG. The pulse generator 60a slices a sawtooth waveform periodic signal having a predetermined frequency with a value corresponding to the target torque TRQ of the multiphase motor. Specifically, the modulation counter 62 repeats the count-up or count-down operation from the initial value at a predetermined cycle shorter than the cycle of the back electromotive detection signal BEMF_EDGE. That is, the count value CNT of the modulation counter 62 becomes a periodic signal that transitions in a sawtooth waveform. The torque control unit 68 generates the PWM signal Spwm in which the high level and the low level transition according to the magnitude relationship between the count value by the modulation counter 62 and the value of the torque signal TRQ indicating the target torque.

パルス調節部80aは、逆起検出回路20からの逆起検出信号BEMF_EDGEを受け、逆起検出信号BEMF_EDGEが所定レベル(ハイレベル)となるタイミングに応じて、パルス生成部60a内の周期信号であるカウント値CNTの位相を変化させる。
この機能を実現するために、パルス調節部80aは、逆起検出信号BEMF_EDGEが所定レベル(ハイレベル)となるタイミングに応じて、変調カウンタ62を初期値xにセットする。
The pulse adjusting unit 80a receives the back electromotive detection signal BEMF_EDGE from the back electromotive detection circuit 20, and is a periodic signal in the pulse generating unit 60a according to the timing when the back electromotive detection signal BEMF_EDGE becomes a predetermined level (high level). The phase of the count value CNT is changed.
In order to realize this function, the pulse adjustment unit 80a sets the modulation counter 62 to the initial value x in accordance with the timing when the back electromotive detection signal BEMF_EDGE becomes a predetermined level (high level).

パルス調節部80aは、第2カウンタ90、初期値設定部92、カウンタセット部88aを含む。
第2カウンタ90は、逆起検出信号BEMF_EDGEが所定レベル(ハイレベル)となるタイミングごとに、初期値設定部92により設定された初期値にセットされ、カウント動作を開始する。第2カウンタ90は、カウントアップであってもカウントダウンであってもよいが、ここではカウントダウン動作として説明する。また、カウンタに代えて、キャパシタの充放電を利用したアナログ回路を利用してもよい。
The pulse adjustment unit 80a includes a second counter 90, an initial value setting unit 92, and a counter setting unit 88a.
The second counter 90 is set to the initial value set by the initial value setting unit 92 at each timing when the back electromotive detection signal BEMF_EDGE becomes a predetermined level (high level), and starts the counting operation. The second counter 90 may be counting up or counting down, but will be described here as a count-down operation. In place of the counter, an analog circuit using charge / discharge of a capacitor may be used.

初期値設定部92は、第2カウンタ90のカウント値CNT2を監視する。初期値設定部92は、逆起検出信号BEMF_EDGEがハイレベルとなってから、次に逆起検出信号BEMF_EDGEがハイレベルとなるまでの間の、カウント値CNT2の変化量ΔCNT2を取得する。初期値設定部92は、取得した変化量ΔCNT2を第2カウンタ90の次のセット時の初期値xに設定する。
カウンタセット部88aは、第2カウンタ90のカウント値CNT2が所定値zとなるごとに、変調カウンタ62をセットする。
The initial value setting unit 92 monitors the count value CNT2 of the second counter 90. The initial value setting unit 92 acquires the change amount ΔCNT2 of the count value CNT2 between the time when the back electromotive detection signal BEMF_EDGE becomes high level and the time when the back electromotive detection signal BEMF_EDGE becomes high level next time. The initial value setting unit 92 sets the acquired change amount ΔCNT2 to the initial value x at the time of the next setting of the second counter 90.
The counter setting unit 88a sets the modulation counter 62 every time the count value CNT2 of the second counter 90 becomes the predetermined value z.

以上が図6のPWM信号生成部50aの構成である。この構成によれば、逆起検出信号BEMF_EDGEの周期(周波数)、つまりカウント値CNT2の変化量ΔCNT2が一定値に収束するように帰還がかかる。つまり、第2カウンタ90のセット時の初期値xが一定値に収束する。
帰還によりループが安定した状態では、セット時の初期値xが一定値に収束するため、逆起検出信号BEMF_EDGEがハイレベルとなるタイミング、すなわちゼロクロスのタイミングは、カウント値CNT2が0となるタイミングに収束する。
The above is the configuration of the PWM signal generation unit 50a in FIG. According to this configuration, feedback is applied so that the period (frequency) of the back electromotive detection signal BEMF_EDGE, that is, the change amount ΔCNT2 of the count value CNT2 converges to a constant value. That is, the initial value x when the second counter 90 is set converges to a constant value.
When the loop is stabilized by feedback, the initial value x at the time of setting converges to a constant value. Therefore, the timing when the back electromotive force detection signal BEMF_EDGE becomes high level, that is, the timing of zero crossing is the timing when the count value CNT2 becomes 0. Converge.

変調カウンタ62がセットされるタイミングは、第2カウンタ90のカウント値CNT2が所定値zとなるタイミングであるから、変調カウンタ62がセットされるタイミング(CNT2=Z)から、ゼロクロスが発生するタイミング(CNT2=0)の間隔τは、一定値に収束していく。したがって、図6のPWM信号生成部50aによれば、ゼロクロスのタイミングを、変調カウンタ62のセットのタイミングから所定時間τ経過後のタイミングに収束させることができる。   The timing at which the modulation counter 62 is set is the timing at which the count value CNT2 of the second counter 90 becomes the predetermined value z. Therefore, the timing at which zero crossing occurs from the timing at which the modulation counter 62 is set (CNT2 = Z) ( The interval τ of (CNT2 = 0) converges to a constant value. Therefore, according to the PWM signal generation unit 50a of FIG. 6, the timing of the zero crossing can be converged to the timing after the predetermined time τ has elapsed from the setting timing of the modulation counter 62.

以下、図7(a)〜(g)を参照しつつ、モータ駆動回路100の動作を説明する。同図の縦軸や横軸、各波形は、理解を容易とするために簡略化して示しており、実際の波形とは周波数や振幅は異なっている。   Hereinafter, the operation of the motor drive circuit 100 will be described with reference to FIGS. The vertical axis, the horizontal axis, and each waveform in the figure are simplified for easy understanding, and the frequency and amplitude are different from the actual waveform.

時刻t0以前は、非検出期間であり、U相のコイルに電源電圧Vddと接地電圧が交互に印加される。時刻t0に、ウィンドウ生成部40によってゼロクロス点の検出が指示され、U相のコイルLuがハイインピーダンスに設定される。なお、同図のタイムチャートでは、時刻t0、時刻t2が、変調カウンタ62のセットのタイミングとなっており、区間t0〜t2が逆起検出信号BEMF_EDGEの1周期に対応づけられる。   Before the time t0 is a non-detection period, and the power supply voltage Vdd and the ground voltage are alternately applied to the U-phase coil. At time t0, detection of a zero cross point is instructed by the window generator 40, and the U-phase coil Lu is set to high impedance. In the time chart of FIG. 6, time t0 and time t2 are set timings of the modulation counter 62, and the interval t0 to t2 is associated with one cycle of the back electromotive detection signal BEMF_EDGE.

同図(d)〜(f)は、位相調節部70による逆起検出信号BEMF_EDGEの生成を示している。逆起検出信号BEMF_EDGEは、時刻t1、時刻t3でハイレベルとなる。   FIGS. 9D to 9F show the generation of the back electromotive detection signal BEMF_EDGE by the phase adjustment unit 70. The back electromotive detection signal BEMF_EDGE becomes high level at time t1 and time t3.

図7(g)は、第2カウンタ90のカウント値CNT2を示す。第2カウンタ90はダウンカウンタであり、初期値xからクロックCKごとにカウントダウンを行う。カウンタセット部88aは、カウント値CNT2が所定値zに達する時刻t0および時刻t2に、変調カウンタ62をセットする。第2カウンタ90がアップカウンタの場合、逆の動作を行う。   FIG. 7G shows the count value CNT2 of the second counter 90. The second counter 90 is a down counter and counts down from the initial value x for each clock CK. The counter setting unit 88a sets the modulation counter 62 at time t0 and time t2 when the count value CNT2 reaches the predetermined value z. When the second counter 90 is an up counter, the reverse operation is performed.

初期値設定部92は、カウント値CNT2がある時刻t1のセット時から、次に逆起検出信号BEMF_EDGEがハイレベルとなるまでの第2カウンタ90のカウント値CNT2の変化量ΔCNT2(=x1−y1)を取得する。変化量ΔCNT2は、逆起検出信号BEMF_EDGEの周期に対応する。初期値設定部92は、取得した変化量ΔCNT2を、第2カウンタ90の次のセットのタイミングである時刻t3に、第2カウンタ90の初期値x2として設定する。   The initial value setting unit 92 sets the amount of change ΔCNT2 (= x1-y1) of the count value CNT2 of the second counter 90 from when the count value CNT2 is set at a time t1 until the back electromotive detection signal BEMF_EDGE next becomes high level. ) To get. The change amount ΔCNT2 corresponds to the cycle of the back electromotive detection signal BEMF_EDGE. The initial value setting unit 92 sets the acquired change amount ΔCNT2 as the initial value x2 of the second counter 90 at time t3, which is the next set timing of the second counter 90.

パルス調節部80aの処理によって、時刻t0〜t2の周期には、整数個ののこぎり波(周期信号)が含まれる。なお、時刻t2の直前ののこぎり波の周期はTxより小さいが、これも一つののこぎり波である。言い換えれば、逆起検出信号BEMF_EDGEの周期を跨いで増加するのこぎり波が存在しない状態を作り出すことにより、PWM信号Spwmの周波数が、逆起検出信号BEMF_EDGEの周波数の整数倍となる状態を実現している。   By the processing of the pulse adjusting unit 80a, an integer number of sawtooth waves (periodic signals) are included in the period from time t0 to time t2. The period of the sawtooth wave immediately before time t2 is smaller than Tx, but this is also one sawtooth wave. In other words, by creating a state where there is no sawtooth wave increasing across the period of the back electromotive detection signal BEMF_EDGE, a state in which the frequency of the PWM signal Spwm is an integral multiple of the frequency of the back electromotive detection signal BEMF_EDGE is realized. Yes.

図6のPWM信号生成部50aによれば、ゼロクロスのタイミング、つまり逆起検出信号BEMF_EDGEのハイレベルのタイミング(時刻t3)は、第2カウンタ90のカウント値CNT2が0となるタイミングに収束する。また、第2カウンタ90がセットされるタイミング(時刻t2)は、カウント値CNT2が所定値zとなるタイミングである。したがって、時刻t2と時刻t3の期間τは、所定値zに応じた一定値(z×Tck)に収束する。ここでTckは、第2カウンタ90に入力されるクロックCKの周期である。   According to the PWM signal generation unit 50a of FIG. 6, the zero cross timing, that is, the high level timing (time t3) of the back electromotive detection signal BEMF_EDGE converges to the timing when the count value CNT2 of the second counter 90 becomes zero. The timing (time t2) when the second counter 90 is set is the timing when the count value CNT2 becomes the predetermined value z. Therefore, the period τ between time t2 and time t3 converges to a constant value (z × Tck) corresponding to the predetermined value z. Here, Tck is the cycle of the clock CK input to the second counter 90.

したがって、PWM信号生成部50aによれば、ゼロクロス点のタイミングを、第2カウンタ90のセットのタイミングから所定時間τ経過後の基準タイミングに一致させることができる。したがって、ゼロクロス点を検出するタイミングを、基準タイミング付近に設定することにより、ゼロクロス点を少ない遅延で精度よく検出することができる。   Therefore, according to the PWM signal generation unit 50a, the timing of the zero cross point can be matched with the reference timing after the predetermined time τ has elapsed from the timing of setting the second counter 90. Therefore, by setting the timing for detecting the zero cross point in the vicinity of the reference timing, the zero cross point can be accurately detected with a small delay.

以上、第1、第2の実施の形態に係るモータ駆動回路100の構成および動作について説明した。本実施の形態に係るモータ駆動回路100によれば、逆起検出信号BEMF_EDGEがハイレベルとなるタイミング、すなわちゼロクロス点の発生するタイミングを所定の基準タイミングと合致させることができる。したがって、基準タイミングを含む時間帯に、検出のタイミング(実施の形態では、検出期間Tdet)を設けることにより、確実かつ少ない遅延で逆起検出を行うことができる。逆起検出を高精度で行うことにより、モータ110の回転を高精度で制御することができる。   The configuration and operation of the motor drive circuit 100 according to the first and second embodiments have been described above. According to the motor drive circuit 100 according to the present embodiment, the timing at which the back electromotive detection signal BEMF_EDGE becomes high level, that is, the timing at which the zero cross point occurs can be matched with the predetermined reference timing. Therefore, by providing the detection timing (in the embodiment, the detection period Tdet) in the time zone including the reference timing, the back electromotive detection can be performed reliably and with a small delay. By performing the back electromotive force detection with high accuracy, the rotation of the motor 110 can be controlled with high accuracy.

最後に、モータ駆動回路100のアプリケーションの例について説明する。図8は、図2のモータ駆動回路100を搭載したディスク装置200の構成を示すブロック図である。ディスク装置200は、CDやDVDなどの光ディスクに対して記録、再生処理を行うユニットであり、CDプレイヤやDVDプレイヤ、パーソナルコンピュータなどの電子機器に搭載される。ディスク装置200は、ピックアップ210、信号処理部212、ディスク214、モータ110、モータ駆動回路100を含む。   Finally, an example of application of the motor drive circuit 100 will be described. FIG. 8 is a block diagram showing a configuration of a disk device 200 on which the motor drive circuit 100 of FIG. 2 is mounted. The disk device 200 is a unit that performs recording and reproduction processing on an optical disk such as a CD or a DVD, and is mounted on an electronic device such as a CD player, a DVD player, or a personal computer. The disk device 200 includes a pickup 210, a signal processing unit 212, a disk 214, a motor 110, and a motor driving circuit 100.

ピックアップ210は、ディスク214にレーザを照射して所望のデータを書き込み、あるいは、反射した光を読み込むことによりディスク214に書き込まれたデータを読み出す。信号処理部212は、ピックアップ210により読み書きするデータに対して増幅処理、A/D変換あるいはD/A変換など必要な信号処理を行う。モータ110は、ディスク214を回転させるために設けられたスピンドルモータである。図8に示すようなディスク装置200は、特に小型化が要求されるため、モータ110としてホール素子などを用いないセンサレスタイプが用いられる。本実施の形態に係るモータ駆動回路100は、このようなセンサレスのスピンドルモータを安定に駆動するために好適に用いることができる。   The pickup 210 writes desired data by irradiating the disk 214 with a laser, or reads the data written on the disk 214 by reading reflected light. The signal processing unit 212 performs necessary signal processing such as amplification processing, A / D conversion, or D / A conversion on data read and written by the pickup 210. The motor 110 is a spindle motor provided for rotating the disk 214. Since the disk device 200 as shown in FIG. 8 is particularly required to be downsized, a sensorless type that does not use a Hall element or the like is used as the motor 110. The motor drive circuit 100 according to the present embodiment can be suitably used to stably drive such a sensorless spindle motor.

以上、本発明を実施の形態をもとに説明した。この実施の形態は例示であり、それらの各構成要素や各処理プロセスの組合せにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。   The present invention has been described based on the embodiments. This embodiment is an exemplification, and it will be understood by those skilled in the art that various modifications can be made to combinations of the respective constituent elements and processing processes, and such modifications are also within the scope of the present invention. is there.

実施の形態では、3相モータを駆動する場合について説明したが、本発明は3相以外のセンサレスモータの駆動にも好適に用いることができる。たとえば、5相モータであってもよい。また、実施の形態では、U相の逆起電圧Vuを中点電圧Vcomと比較してゼロクロス点の検出を行う場合について説明したが、本発明はこれに限定されるものではない。たとえば、U相、V相、W相のそれぞれに逆起検出回路20を設け、逆起検出信号BEMF_EDGEを生成してもよい。   In the embodiment, the case of driving a three-phase motor has been described. However, the present invention can also be suitably used for driving a sensorless motor other than the three-phase motor. For example, a five-phase motor may be used. In the embodiment, the case where the zero-cross point is detected by comparing the U-phase counter electromotive voltage Vu with the midpoint voltage Vcom has been described, but the present invention is not limited to this. For example, the back electromotive force detection circuit 20 may be provided for each of the U phase, the V phase, and the W phase to generate the back electromotive force detection signal BEMF_EDGE.

また、定常状態におけるモータ110の回転数(トルク)が固定される場合、モータの回転数をモニタする必要がないため、フリーランカウンタ84、周波数誤差検出部86を省略することができる。この場合、カウンタセット部88は、モータ110の回転数を指示するトルク信号TRQの値にもとづいて、変調カウンタ62をセットするタイミングを設定すればよい。   Further, when the rotation speed (torque) of the motor 110 in a steady state is fixed, it is not necessary to monitor the rotation speed of the motor, and therefore the free-run counter 84 and the frequency error detection unit 86 can be omitted. In this case, the counter setting unit 88 may set the timing for setting the modulation counter 62 based on the value of the torque signal TRQ instructing the rotation speed of the motor 110.

また、実施の形態では、相電圧Vuが上昇する過程において、Vu>Vcomとなる状態を検出することによりゼロクロス点を検出したが、本発明はこれに限定されるものではなく、逆起検出回路20は、相電圧Vuが下降する過程において、Vu<Vcomとなる状態を検出することにより、ゼロクロス点を検出してもよい。   In the embodiment, the zero cross point is detected by detecting the state where Vu> Vcom in the process of increasing the phase voltage Vu, but the present invention is not limited to this, and the back electromotive force detection circuit 20 may detect the zero cross point by detecting a state where Vu <Vcom in the process of decreasing the phase voltage Vu.

実施の形態では、マスク信号MSKにより規定される検出期間Tdetを基準信号REFのタイミングと一致させて、ゼロクロス点の検出タイミングを設定した。本発明はこれに限定されない。たとえば、マスク信号MSKを生成せず、図4のANDゲート23を省略してもよい。この場合、図4のフリップフロップ24のクロック端子に入力されるシステムクロックCKを、基準信号REFの付近のみでフリップフロップ24に入力してもよい。   In the embodiment, the detection timing of the zero cross point is set by matching the detection period Tdet defined by the mask signal MSK with the timing of the reference signal REF. The present invention is not limited to this. For example, the AND gate 23 in FIG. 4 may be omitted without generating the mask signal MSK. In this case, the system clock CK input to the clock terminal of the flip-flop 24 of FIG. 4 may be input to the flip-flop 24 only near the reference signal REF.

また、実施の形態では、180度通電のPWM方式によりモータを駆動する場合について説明したが、本発明はこれに限定されるものではなく、広くパルス変調方式を採用するモータ駆動回路に使用することができる。   In the embodiment, the case where the motor is driven by the PWM method with 180 degree energization has been described. However, the present invention is not limited to this, and the present invention is widely used for a motor driving circuit that adopts a pulse modulation method. Can do.

実施の形態で説明した信号のハイレベル、ローレベルのロジックの設定は一例であって、論理回路ブロックの構成には様々な変形例が考えられ、こうした変形例も本発明の範囲に含まれる。   The high-level and low-level logic settings of the signals described in the embodiment are merely examples, and various modifications can be considered for the configuration of the logic circuit block, and such modifications are also included in the scope of the present invention.

実施の形態では、デジタル回路によって本発明を実現する場合を説明したが、その一部または全部を、同等の機能を有するアナログ回路に置換してもよい。   In the embodiment, the case where the present invention is realized by a digital circuit has been described, but part or all of the digital circuit may be replaced with an analog circuit having an equivalent function.

実施の形態にもとづき、本発明を説明したが、実施の形態は、本発明の原理、応用を示しているにすぎず、実施の形態には、請求の範囲に規定された本発明の思想を離脱しない範囲において、多くの変形例や配置の変更が可能である。   Although the present invention has been described based on the embodiments, the embodiments merely illustrate the principle and application of the present invention, and the embodiments are intended to include the idea of the present invention defined in the claims. Many modifications and changes in arrangement are possible within the range not leaving.

図1(a)〜(c)は、パルス変調駆動する場合のゼロクロス点の検出の様子を示すタイムチャートである。FIGS. 1A to 1C are time charts showing how a zero-cross point is detected when pulse modulation driving is performed. 第1の実施の形態に係るモータ駆動回路の全体構成を示すブロック図である。It is a block diagram which shows the whole structure of the motor drive circuit which concerns on 1st Embodiment. 図3(a)〜(l)は、図2の実施の形態に係るモータ駆動回路の動作を示すタイムチャートである。3A to 3L are time charts showing the operation of the motor drive circuit according to the embodiment of FIG. 第1の実施の形態に係る逆起検出回路およびPWM信号生成部の構成を示すブロック図である。It is a block diagram which shows the structure of the back electromotive force detection circuit and PWM signal generation part which concern on 1st Embodiment. 図5(a)〜(h)は、図4の逆起検出回路およびPWM信号生成部により生成される各信号の波形を示すタイムチャートである。FIGS. 5A to 5H are time charts showing waveforms of signals generated by the back electromotive force detection circuit and the PWM signal generation unit of FIG. 第2の実施の形態に係るPWM信号生成部の構成を示すブロック図である。It is a block diagram which shows the structure of the PWM signal generation part which concerns on 2nd Embodiment. 図7(a)〜(g)は、図6の逆起検出回路およびPWM信号生成部により生成される各信号の波形を示すタイムチャートである。7A to 7G are time charts showing waveforms of signals generated by the back electromotive force detection circuit and the PWM signal generation unit of FIG. 図2のモータ駆動回路を搭載したディスク装置の構成を示すブロック図である。FIG. 3 is a block diagram showing a configuration of a disk device on which the motor drive circuit of FIG. 2 is mounted.

符号の説明Explanation of symbols

100 モータ駆動回路、 10 スイッチング回路、 20 逆起検出回路、 22 コンパレータ、 23 ANDゲート、 24 フリップフロップ、 30 スイッチング制御部、 32 駆動タイミング生成部、 34 駆動信号合成回路、 40 ウィンドウ生成部、 50 PWM信号生成部、 60 パルス生成部、 62 変調カウンタ、 64 基準信号生成部、 66 マスク信号生成部、 68 トルク制御部、 80 パルス調節部、 82 位相誤差検出部、 84 フリーランカウンタ、 86 周波数誤差検出部、 88 カウンタセット部、 110 モータ、 210 ピックアップ、 212 信号処理部、 214 ディスク。   DESCRIPTION OF SYMBOLS 100 Motor drive circuit, 10 Switching circuit, 20 Back electromotive detection circuit, 22 Comparator, 23 AND gate, 24 Flip-flop, 30 Switching control part, 32 Drive timing generation part, 34 Drive signal synthetic | combination circuit, 40 Window generation part, 50 PWM Signal generation unit, 60 pulse generation unit, 62 modulation counter, 64 reference signal generation unit, 66 mask signal generation unit, 68 torque control unit, 80 pulse adjustment unit, 82 phase error detection unit, 84 free run counter, 86 frequency error detection Part, 88 counter set part, 110 motor, 210 pickup, 212 signal processing part, 214 disc.

Claims (7)

多相モータに駆動電流を供給して駆動するモータ駆動回路であって、
前記多相モータのコイルごとに設けられ、接続されたコイルの一端に、ハイレベルまたはローレベルの電圧を印加する複数のスイッチング回路と、
前記多相モータの目標トルクに応じてデューティ比が変化するパルス変調信号を生成するパルス変調信号生成部と、
前記多相モータの少なくとも1つのコイルに発生する逆起電圧を、コイルの中点電圧と比較してゼロクロス点を検出し、ゼロクロス点のタイミングで所定レベルとなる逆起検出信号を出力する逆起検出回路と、
前記パルス変調信号生成部からの前記パルス変調信号と、前記逆起検出回路からの前記逆起検出信号と、を受け、前記逆起検出信号にもとづいて駆動する相を切り替えるシーケンス制御を行うとともに、前記パルス変調信号にもとづいて、駆動対象の前記スイッチング回路に含まれるハイサイドスイッチおよびローサイドスイッチの少なくとも一方をスイッチング制御するスイッチング制御部と、
前記逆起検出信号が前記所定レベルになるタイミングと、所定の基準タイミングを比較し、2つのタイミングの位相誤差が最小となり、かつ、前記パルス変調信号の周波数が前記逆起検出信号の周波数の整数倍となるように、前記パルス変調信号の周波数および位相を調節するパルス調節部と、
を備え
前記パルス調節部は、
前記逆起検出信号の毎回の周波数を検出し、その誤差に応じた周波数誤差データを生成する周波数誤差検出部と、
前記逆起検出信号が前記所定レベルとなるタイミングと、前記所定の基準タイミングの位相誤差を検出し、位相誤差に応じた位相誤差データを生成する位相誤差検出部と、
を含み、前記周波数誤差データと前記位相誤差データにもとづいて、前記パルス変調信号の周波数および位相を調節することを特徴とするモータ駆動回路。
A motor drive circuit that drives a multiphase motor by supplying a drive current,
A plurality of switching circuits that are provided for each coil of the multiphase motor and apply a high-level or low-level voltage to one end of the connected coils;
A pulse modulation signal generation unit that generates a pulse modulation signal whose duty ratio changes according to a target torque of the multiphase motor;
The counter electromotive voltage generated in at least one coil of the multiphase motor is compared with the midpoint voltage of the coil to detect a zero cross point, and outputs a counter electromotive detection signal that reaches a predetermined level at the timing of the zero cross point. A detection circuit;
While receiving the pulse modulation signal from the pulse modulation signal generation unit and the back electromotive detection signal from the back electromotive detection circuit, performing sequence control to switch the phase to be driven based on the back electromotive detection signal, A switching control unit that controls switching of at least one of a high-side switch and a low-side switch included in the switching circuit to be driven based on the pulse modulation signal;
The timing at which the back electromotive detection signal becomes the predetermined level is compared with a predetermined reference timing, the phase error between the two timings is minimized, and the frequency of the pulse modulation signal is an integer of the frequency of the back electromotive detection signal A pulse adjustment unit for adjusting the frequency and phase of the pulse modulation signal so as to be doubled;
Equipped with a,
The pulse adjustment unit includes:
A frequency error detector that detects the frequency of the back electromotive detection signal every time and generates frequency error data according to the error;
A phase error detection unit that detects a phase error between the timing at which the back electromotive detection signal reaches the predetermined level and the predetermined reference timing, and generates phase error data according to the phase error;
And adjusting the frequency and phase of the pulse modulation signal based on the frequency error data and the phase error data .
前記パルス変調信号生成部は、前記逆起検出信号の周期より短い所定の周期でカウントアップまたはカウントダウン動作を繰り返す変調カウンタを含み、当該変調カウンタによるカウント値を目標トルクを示すトルク信号の値でスライスし、
前記パルス調節部は、前記周波数誤差データと前記位相誤差データにもとづくタイミングで、前記変調カウンタをセットするカウンタセット部を含むことを特徴とする請求項に記載のモータ駆動回路。
The pulse modulation signal generation unit includes a modulation counter that repeats a count-up or count-down operation at a predetermined cycle shorter than a cycle of the back electromotive detection signal, and slices a count value by the modulation counter with a value of a torque signal indicating a target torque And
The motor drive circuit according to claim 1 , wherein the pulse adjustment unit includes a counter setting unit that sets the modulation counter at a timing based on the frequency error data and the phase error data.
前記パルス調節部は、前記変調カウンタと同じ周期で動作するフリーランカウンタをさらに含み、
前記周波数誤差検出部は、i(iは任意の自然数)回目に前記逆起検出信号が所定レベルとなる時刻における前記フリーランカウンタのカウント値P[i]をモニタし、その前の(i−1)回目に前記逆起検出信号が所定レベルとなる時刻における前記フリーランカウンタのカウント値P[i−1]との差分ΔP[i]=P[i]−P[i−1]を毎回演算し、今回の差分ΔP[i]と、前回の差分ΔP[i−1]=P[i−1]−P[i−2]で示される周波数誤差δF[i]=ΔP[i]−ΔP[i−1]を、前記周波数誤差データとして出力することを特徴とする請求項に記載のモータ駆動回路。
The pulse adjustment unit further includes a free-run counter that operates in the same cycle as the modulation counter,
The frequency error detector monitors the count value P [i] of the free-run counter at the time when the back electromotive detection signal becomes a predetermined level i (i is an arbitrary natural number) times, and the previous (i− 1) The difference ΔP [i] = P [i] −P [i−1] from the count value P [i−1] of the free-run counter at the time when the back electromotive detection signal becomes a predetermined level for the first time The frequency error δF [i] = ΔP [i] − indicated by the current difference ΔP [i] and the previous difference ΔP [i−1] = P [i−1] −P [i−2] is calculated. The motor drive circuit according to claim 2 , wherein ΔP [i-1] is output as the frequency error data.
前記パルス変調信号が、前記スイッチング回路に含まれるハイサイドスイッチおよびローサイドスイッチの少なくとも一方のオン状態を示すレベルとなるオン期間中の検出期間の間、所定レベルとなって逆起検出回路によるゼロクロス点の検出を有効化するマスク信号を生成するマスク信号生成部と、
前記マスク信号によりゼロクロス点の検出が有効化される検出期間中に所定レベルとなり、前記基準タイミングを規定する基準信号を生成する基準信号生成部と、
をさらに備え、
前記パルス調節部は、前記逆起検出信号と前記基準信号の位相誤差を検出し、位相誤差に応じた位相誤差データを生成することを特徴とする請求項1からのいずれかに記載のモータ駆動回路。
The zero-crossing point by the back electromotive force detection circuit becomes a predetermined level during the detection period during the ON period in which the pulse modulation signal is a level indicating at least one of the high-side switch and the low-side switch included in the switching circuit. A mask signal generator for generating a mask signal for enabling detection of
A reference signal generating unit that generates a reference signal that is at a predetermined level during a detection period in which detection of a zero-cross point is enabled by the mask signal and defines the reference timing;
Further comprising
The pulse controller may control the reverse detects a phase error of the electromotive detection signal and the reference signal, the motor according to any one of claims 1 to 3, characterized in that to generate the phase error data corresponding to the phase error Driving circuit.
1つの半導体基板上に一体集積化されたことを特徴とする請求項1からのいずれかに記載のモータ駆動回路。 The motor drive circuit according to any one of claims 1 4, characterized in that it is integrated on a single semiconductor substrate. ディスクを回転させるスピンドルモータと、
前記スピンドルモータを駆動する請求項1からのいずれかに記載のモータ駆動回路と、
を備えることを特徴とするディスク装置。
A spindle motor that rotates the disk;
The motor drive circuit according to any one of claims 1 to 5 , which drives the spindle motor;
A disk device comprising:
多相モータに駆動電流を供給して駆動するモータ駆動方法であって、
前記多相モータの目標トルクに応じてデューティ比が変化するパルス変調信号を生成するステップと、
前記多相モータの少なくとも1つのコイルに発生する逆起電圧を、コイルの中点電圧と比較してゼロクロス点を検出し、ゼロクロス点のタイミングで所定レベルとなる逆起検出信号を生成するステップと、
前記逆起検出信号にもとづいて駆動する相を切り替えるシーケンス制御を行うとともに、前記パルス変調信号にもとづいて、前記コイルに接続されるハイサイドスイッチおよびローサイドスイッチの少なくとも一方をスイッチング制御するステップと、
前記逆起検出信号が前記所定レベルとなるタイミングと、所定の基準タイミングを比較し、2つのタイミングの位相誤差が最小となり、かつ、前記パルス変調信号の周波数が前記逆起検出信号の周波数の整数倍となるように、前記パルス変調信号の周波数および位相を調節するステップと、
を備え
前記パルス変調信号の周波数および位相を調節するステップは、
前記逆起検出信号の毎回の周波数を検出し、その誤差に応じた周波数誤差データを生成するステップと、
前記逆起検出信号が前記所定レベルとなるタイミングと、前記所定の基準タイミングの位相誤差を検出し、位相誤差に応じた位相誤差データを生成するステップと、
を含み、前記周波数誤差データと前記位相誤差データにもとづいて、前記パルス変調信号の周波数および位相を調節する
ことを特徴とするモータ駆動方法。
A motor driving method for driving by supplying a driving current to a multiphase motor,
Generating a pulse modulation signal whose duty ratio changes according to the target torque of the multiphase motor;
Comparing a back electromotive voltage generated in at least one coil of the multiphase motor with a midpoint voltage of the coil to detect a zero cross point, and generating a back electromotive detection signal having a predetermined level at the timing of the zero cross point; ,
Performing sequence control to switch the driving phase based on the back electromotive detection signal, and switching control of at least one of a high side switch and a low side switch connected to the coil based on the pulse modulation signal;
The timing at which the back electromotive detection signal becomes the predetermined level is compared with a predetermined reference timing, the phase error between the two timings is minimized, and the frequency of the pulse modulation signal is an integer of the frequency of the back electromotive detection signal Adjusting the frequency and phase of the pulse modulated signal to be doubled;
Equipped with a,
Adjusting the frequency and phase of the pulse modulated signal,
Detecting the frequency of the back electromotive detection signal each time, and generating frequency error data according to the error;
Detecting the phase error of the timing at which the back electromotive detection signal is at the predetermined level and the predetermined reference timing, and generating phase error data according to the phase error;
And adjusting the frequency and phase of the pulse modulation signal based on the frequency error data and the phase error data .
JP2007069576A 2007-03-16 2007-03-16 Motor driving circuit, driving method, and disk device using them Expired - Fee Related JP5171079B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2007069576A JP5171079B2 (en) 2007-03-16 2007-03-16 Motor driving circuit, driving method, and disk device using them
US12/048,399 US7855521B2 (en) 2007-03-16 2008-03-14 Motor drive circuit
CN2008100830045A CN101267176B (en) 2007-03-16 2008-03-17 Motor drive circuit, motor drive method and disc device using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007069576A JP5171079B2 (en) 2007-03-16 2007-03-16 Motor driving circuit, driving method, and disk device using them

Publications (2)

Publication Number Publication Date
JP2008236843A JP2008236843A (en) 2008-10-02
JP5171079B2 true JP5171079B2 (en) 2013-03-27

Family

ID=39908965

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007069576A Expired - Fee Related JP5171079B2 (en) 2007-03-16 2007-03-16 Motor driving circuit, driving method, and disk device using them

Country Status (1)

Country Link
JP (1) JP5171079B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5001405A (en) * 1989-09-27 1991-03-19 Seagate Technology, Inc. Position detection for a brushless DC motor
JP3874482B2 (en) * 1997-02-24 2007-01-31 ローム株式会社 3-phase brushless motor drive circuit and drive IC
JP2000023481A (en) * 1998-06-30 2000-01-21 Mitsubishi Electric Corp Pwm control circuit apparatus
JP2003111485A (en) * 2001-09-28 2003-04-11 Hitachi Ltd Drive control device of brushless motor
JP4799035B2 (en) * 2005-04-11 2011-10-19 株式会社東芝 Motor control device and motor control method

Also Published As

Publication number Publication date
JP2008236843A (en) 2008-10-02

Similar Documents

Publication Publication Date Title
JP4963246B2 (en) Motor driving circuit, driving method, and disk device using them
US7855521B2 (en) Motor drive circuit
JP4877764B2 (en) Motor drive circuit, method and disk device using them
US8093847B2 (en) Motor drive circuit, method, and disc device using the same
JP4880339B2 (en) Motor drive circuit and method, and disk device using the same
US10084400B2 (en) Motor driving device and motor system
JP5566044B2 (en) Motor drive circuit and drive method, waveform data generation method, and hard disk device using them
JP2009050132A (en) Motor driving apparatus, and motor-rotation controlling method
KR20030009128A (en) Magnetic disk storage apparatus
US7855523B2 (en) Motor driving circuit and disc apparatus using the same
JP4860980B2 (en) Motor drive circuit and disk device using the same
JP4896568B2 (en) Motor drive circuit, method and disk device using them
JP5171079B2 (en) Motor driving circuit, driving method, and disk device using them
JP4880340B2 (en) Motor drive circuit and method, and disk device using the same
US11018607B2 (en) Motor driver device, semiconductor device, and electronic device including the same
JP2021040404A (en) Motor driver device and semiconductor apparatus
JP2005102350A (en) Motor driving device
JP7109252B2 (en) Motor driver device and semiconductor device
JP4864416B2 (en) Motor drive circuit and disk device using the same
JP2007282314A (en) Motor drive unit and motor drive method
JP2012005328A (en) Driver and driving method of sensorless motor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100305

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120228

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120229

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120427

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: 20121218

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121225

R150 Certificate of patent or registration of utility model

Ref document number: 5171079

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees