JP2006288056A - Driving circuit for stepping motor - Google Patents

Driving circuit for stepping motor Download PDF

Info

Publication number
JP2006288056A
JP2006288056A JP2005103751A JP2005103751A JP2006288056A JP 2006288056 A JP2006288056 A JP 2006288056A JP 2005103751 A JP2005103751 A JP 2005103751A JP 2005103751 A JP2005103751 A JP 2005103751A JP 2006288056 A JP2006288056 A JP 2006288056A
Authority
JP
Japan
Prior art keywords
phase
output
signal
excitation mode
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2005103751A
Other languages
Japanese (ja)
Other versions
JP4796780B2 (en
Inventor
Tatsuo Ito
龍生 伊藤
Yuji Uchiyama
祐二 内山
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2005103751A priority Critical patent/JP4796780B2/en
Publication of JP2006288056A publication Critical patent/JP2006288056A/en
Application granted granted Critical
Publication of JP4796780B2 publication Critical patent/JP4796780B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Stepping Motors (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To reduce the amount of forward and reverse rotations generated in switching an exciting mode in a driving circuit for a stepping motor. <P>SOLUTION: This driving circuit for the stepping motor includes: a positional control circuit for updating a positional signal which indicates a step position of the stepping motor and outputting the updated positional signal according to an exciting mode signal and a clock; and a drive control circuit for controlling the drive of the stepping motor on the basis of the positional signal output from the positional control circuit. If the positional control circuit detects that the exciting mode signal switches from a first exciting mode to a second exciting mode whose step angle is rougher than that the first exciting mode, it updates the positional signal to the step position of the second exciting mode in the same phase as the detected step position and outputs the updated positional signal, after that, it updates the positional signal in accordance with the second exciting mode in response to the clock, and outputs the updated positional signal. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、ステッピングモータの駆動回路に関する。   The present invention relates to a drive circuit for a stepping motor.

プリンタやスキャナ、デジタルカメラなどの様々な電子機器において、ステッピングモータが活用されている。図8は、2相のステッピングモータのステップ位置の遷移を示す図である。図8の同心円の最も内側に示された2相励磁モードでは、4ステップでモータが回転する。また、その一つ外側に示された1−2相励磁モードでは、その倍の8ステップでモータが回転する。そして、マイクロステップ駆動の一例として最も外側に示された4W1−2相励磁モードでは、64ステップでモータが回転する。なお、実際のステッピングモータにおいては、図8の1回転が数回繰り返されることにより、モータが360°回転することとなる。   Stepping motors are used in various electronic devices such as printers, scanners, and digital cameras. FIG. 8 is a diagram showing the transition of the step position of the two-phase stepping motor. In the two-phase excitation mode shown on the innermost side of the concentric circle in FIG. 8, the motor rotates in four steps. Further, in the 1-2 phase excitation mode shown on the outer side, the motor rotates in 8 steps that is twice as large. In the 4W1-2 phase excitation mode shown on the outermost side as an example of microstep driving, the motor rotates in 64 steps. In an actual stepping motor, one rotation of FIG. 8 is repeated several times, so that the motor rotates 360 °.

このように、ステッピングモータは複数の励磁モードを備えているが、図8における外側の励磁モードになるに連れて、回転の際のステップ数が多くなり、低速ではあるが滑らかで振動が少ない駆動をすることができる。一方、図8における内側の励磁モードになるにつれて、回転の際のステップ数が少なくなり、振動は多少あるが高速な駆動をすることができる。したがって、ステッピングモータの駆動においては、用途や状況に応じて励磁モードを切り替えることが一般的に行われている。   As described above, the stepping motor has a plurality of excitation modes. However, as the excitation mode is changed to the outer excitation mode in FIG. 8, the number of steps at the time of rotation increases, and the driving is slow but smooth and has little vibration. Can do. On the other hand, as the inner excitation mode in FIG. 8 is reached, the number of steps during rotation decreases, and high-speed driving can be performed although there is some vibration. Therefore, in driving the stepping motor, it is generally performed to switch the excitation mode according to the application and situation.

図9は、従来のステッピングモータの駆動回路を示す図である。ステッピングモータの駆動回路は、ステップ位置制御回路201と、駆動制御回路202とを備えている(例えば、特許文献1)。ステップ位置制御回路201には、励磁モードを示す励磁モード信号と、モータの正転・逆転を示すFR信号と、ステップを指示するクロック(CLK)とが入力されている。そして、ステップ位置制御回路201は、クロックに応じて、位相信号(A相,B相)および位相内のステップ位置を示すカウンタ値を、励磁モードに従って更新して出力する。   FIG. 9 is a diagram showing a conventional stepping motor drive circuit. The stepping motor drive circuit includes a step position control circuit 201 and a drive control circuit 202 (for example, Patent Document 1). The step position control circuit 201 is supplied with an excitation mode signal indicating an excitation mode, an FR signal indicating forward / reverse rotation of the motor, and a clock (CLK) indicating a step. Then, the step position control circuit 201 updates and outputs the phase signal (A phase, B phase) and the counter value indicating the step position in the phase according to the clock according to the excitation mode.

例えば、図8において励磁モードが4W1−2相の場合、初期位置は位相信号が第1相を示す(正,正)、カウンタ値が“16”(10進)となっている。そして、正転(時計回り)の場合、ステップ位置制御回路201は、クロックに応じてカウンタ値を1ずつ減少更新して出力し、カウンタ値が“0”(10進)になると、第2相を示す(負,正)に位相信号を更新して出力する。その後、ステップ位置制御回路201は、クロックに応じてカウンタ値を1ずつ増加更新して出力し、カウンタ値が“16”(10進)になると、第3相を示す(負,負)に位相信号を更新して出力する。このように、ステップ位置制御回路201は、ステップ位置を指示するための位相信号及びカウンタ値を励磁モード信号及びクロックに応じて更新して出力している。   For example, when the excitation mode is 4W1-2 phase in FIG. 8, the initial position is that the phase signal indicates the first phase (positive, positive) and the counter value is “16” (decimal). In the case of forward rotation (clockwise), the step position control circuit 201 decreases and updates the counter value by 1 according to the clock and outputs it. When the counter value becomes “0” (decimal), the second phase (Negative, Positive) indicating that the phase signal is updated and output. After that, the step position control circuit 201 increments and updates the counter value by 1 according to the clock and outputs it. When the counter value reaches “16” (decimal), the step position control circuit 201 shows the third phase (negative, negative). Update the signal and output it. As described above, the step position control circuit 201 updates and outputs the phase signal and the counter value for indicating the step position according to the excitation mode signal and the clock.

駆動制御回路202は、ステップ位置制御回路201から出力される位相信号及びカウンタ値に基づいて、A相のコイル203及びB相のコイル204に供給される電流を制御することにより、モータを所望のステップ位置まで回転させている。
特開平8−149890号公報
The drive control circuit 202 controls the current supplied to the A-phase coil 203 and the B-phase coil 204 on the basis of the phase signal and counter value output from the step position control circuit 201, so that a desired motor is obtained. It is rotated to the step position.
JP-A-8-149890

ところで、ステップ位置制御回路201は、励磁モード信号によって励磁モードが切り替わったことを検出すると、位相信号及びカウンタ値を初期位置にリセットし、その後、クロックに応じて切り替え後の励磁モードに基づいて位相信号及びカウンタ値を更新して出力する。そのため、正転動作している際に、切り替え前のステップ位置が第3相または第4相の場合は、モータは正方向に回転して初期位置まで進み、切り替え前のステップ位置が第1相または第2相の場合は、逆方向に回転して初期位置まで進むこととなる。したがって、切り替え時のステップ位置によっては、ステップ位置が半周ほど正回転したり、逆回転したりすることもあり、励磁モードを切り替える際のステップ位置の変化量が大きく、スムーズに励磁モードを切り替えることができなかった。   By the way, when the step position control circuit 201 detects that the excitation mode is switched by the excitation mode signal, the step position control circuit 201 resets the phase signal and the counter value to the initial position, and then the phase based on the switched excitation mode according to the clock. The signal and counter value are updated and output. Therefore, if the step position before switching is in the third phase or the fourth phase during forward rotation, the motor rotates in the forward direction and proceeds to the initial position, and the step position before switching is in the first phase. Or, in the case of the second phase, it rotates in the reverse direction and proceeds to the initial position. Therefore, depending on the step position at the time of switching, the step position may rotate forward or backward about half a circle, and the change amount of the step position when switching the excitation mode is large, and the excitation mode can be switched smoothly. I could not.

本発明は上記課題を鑑みてなされたものであり、ステッピングモータの駆動回路において、励磁モードを切り替える際のステップ位置の変化量を減少させ、スムーズに励磁モードの切り替えを行うことを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to reduce the amount of change in the step position when switching the excitation mode in the drive circuit of the stepping motor and smoothly switch the excitation mode.

上記目的を達成するため、本発明のステッピングモータの駆動回路は、ステッピングモータのステップ位置を指示する位置信号を、励磁モード信号及びクロックに応じて更新して出力する位置制御回路と、前記位置制御回路から出力される前記位置信号に基づいて、前記ステッピングモータの駆動を制御する駆動制御回路と、を備えるステッピングモータの駆動回路であって、前記位置制御回路は、前記励磁モード信号が第1の励磁モードから前記第1の励磁モードよりステップ角の粗い第2の励磁モードへ切り替わったことを検出すると、前記位置信号を、当該検出時のステップ位置と同位相における前記第2の励磁モードのステップ位置に更新して出力し、その後、前記クロックに応じて前記第2の励磁モードに従って前記位置信号を更新して出力することとする。   In order to achieve the above object, a stepping motor drive circuit according to the present invention includes a position control circuit that updates and outputs a position signal indicating a step position of a stepping motor in accordance with an excitation mode signal and a clock, and the position control A drive control circuit for controlling the drive of the stepping motor based on the position signal output from the circuit, wherein the position control circuit has a first excitation mode signal as the first excitation mode signal. When it is detected that the excitation mode is switched to the second excitation mode having a coarser step angle than the first excitation mode, the position signal is converted into the step of the second excitation mode in the same phase as the step position at the time of detection. The position signal is updated and output, and then the position signal is updated according to the second excitation mode according to the clock. And that to output.

また、前記位置制御回路は、前記検出時のステップ位置が前記第2の励磁モードのステップ位置である場合、前記位置信号を、当該検出時のステップ位置から前記クロックに応じて前記第2の励磁モードに従って更新して出力することとしてもよい。   In addition, when the step position at the time of detection is the step position of the second excitation mode, the position control circuit outputs the position signal from the step position at the time of detection according to the clock. It is good also as updating and outputting according to a mode.

また、前記位置制御回路は、前記励磁モード信号が前記第2の励磁モードから前記第1の励磁モードへ切り替わったことを検出すると、前記位置信号を、当該検出時のステップ位置から前記クロックに応じて前記第1の励磁モードに従って更新して出力することとしてもよい。   Further, when the position control circuit detects that the excitation mode signal is switched from the second excitation mode to the first excitation mode, the position control circuit changes the position signal according to the clock from the step position at the time of the detection. Then, it may be updated and output in accordance with the first excitation mode.

また、前記位置信号には、ステップ位置の位相を示す位相信号と、前記位相内におけるステップ位置を示す位相内位置信号とが含まれており、前記位置制御回路は、前記励磁モード信号が前記第1の励磁モードから前記第2の励磁モードへ切り替わったことを検出すると、当該検出時の前記位相信号と、当該検出時のステップ位置と同位相における前記第2の励磁モードのステップ位置に更新した前記位相内位置信号と、を出力し、その後、前記クロックに応じて前記第2の励磁モードに従って前記位置信号及び前記位相内位置信号を更新して出力することとしてもよい。   The position signal includes a phase signal indicating the phase of the step position and an in-phase position signal indicating the step position within the phase. The position control circuit includes the excitation mode signal as the first signal. When it is detected that the first excitation mode is switched to the second excitation mode, the phase signal at the time of detection is updated to the step position of the second excitation mode in the same phase as the step position at the time of detection. The in-phase position signal may be output, and then the position signal and the in-phase position signal may be updated and output according to the second excitation mode in accordance with the clock.

さらに、前記位置制御回路は、前記位相内位置信号が減少更新されて第1の値となったことを検出すると、前記位相信号を次の位相に更新して出力し、その後、前記励磁モード信号及び前記クロックに応じて前記位相内位置信号を増加更新して出力し、前記位相内位置信号が増加更新されて第2の値となったことを検出すると、前記位相信号を次の位相に更新して出力し、その後、前記励磁モード信号及び前記クロックに応じて前記位相内位置信号を減少更新して出力することとしてもよい。   Further, when the position control circuit detects that the in-phase position signal has been updated to the first value by decreasing, the position signal is updated to the next phase and output, and then the excitation mode signal In response to the clock, the in-phase position signal is updated and output, and when it is detected that the in-phase position signal has been updated to the second value, the phase signal is updated to the next phase. Then, the in-phase position signal may be reduced and updated according to the excitation mode signal and the clock, and then output.

また、さらに、前記位置制御回路は、前記位相信号を出力する位相信号出力回路と、前記位相内位置信号を出力する位相内位置信号出力回路と、を有し、前記位相信号出力回路は、前記位相内位置信号出力回路から出力される前記位相内位置信号が前記第1の値となったことを検出すると、前記位相信号を次の位相に更新して出力するとともに、前記位相内位置信号の増加を指示する増加信号を出力し、前記位相内位置信号出力回路から出力される前記位相内位置信号が前記第2の値となったことを検出すると、前記位相信号を次の位相に更新して出力するとともに、前記位相内位置信号の減少を指示する減少信号を出力し、前記位相内位置信号出力回路は、前記位相信号出力回路から出力される前記増加信号または前記減少信号に基づいて、前記位相内位置信号を、前記励磁モード及び前記クロックに応じて増加更新または減少更新して出力することとしてもよい。   Further, the position control circuit includes a phase signal output circuit that outputs the phase signal, and an in-phase position signal output circuit that outputs the in-phase position signal, and the phase signal output circuit includes the phase signal output circuit, When it is detected that the in-phase position signal output from the in-phase position signal output circuit has reached the first value, the phase signal is updated to the next phase and output, and the in-phase position signal When an increase signal instructing an increase is output, and it is detected that the in-phase position signal output from the in-phase position signal output circuit has reached the second value, the phase signal is updated to the next phase. And outputting a decrease signal instructing a decrease in the in-phase position signal, wherein the in-phase position signal output circuit is based on the increase signal or the decrease signal output from the phase signal output circuit. The phase in the position signal, may output the excitation mode and increased update or decrease Update according to the clock.

ステッピングモータの駆動回路において、励磁モードを切り替える際のステップ位置の変化量を減少させ、スムーズに励磁モードの切り替えを行うことができる。   In the stepping motor drive circuit, the change amount of the step position when the excitation mode is switched can be reduced, and the excitation mode can be switched smoothly.

==駆動回路の構成==
図1は、本発明の一実施形態であるステッピングモータの駆動回路の構成を示すブロック図である。駆動回路は、位置制御回路1及び駆動制御回路2を備えている。位置制御回路1は、ステッピングモータのステップ位置を指示する位置信号を出力する回路であり、位相信号出力回路11、カウンタ12、及びカウンタ制御回路13を含んで構成されている。また、駆動制御回路2は、位置制御回路1から出力される位置信号に基づいて、2相のステッピングモータの駆動を制御する回路であり、変換回路21A,21B、コンパレータ22A,22B、電流制御回路23A,23B、Hブリッジ回路24A,24B、及び抵抗25A,25Bを含んで構成されている。そして、駆動回路には、マイコン等の外部から、励磁モードを示す励磁モード信号と、モータの正転・逆転を示すFR信号と、ステップを指示するクロック(CLK)とが入力されている。なお、駆動回路を構成する位置制御回路1及び駆動制御回路2を集積化することも可能である。
== Configuration of drive circuit ==
FIG. 1 is a block diagram showing a configuration of a stepping motor drive circuit according to an embodiment of the present invention. The drive circuit includes a position control circuit 1 and a drive control circuit 2. The position control circuit 1 is a circuit that outputs a position signal that indicates the step position of the stepping motor, and includes a phase signal output circuit 11, a counter 12, and a counter control circuit 13. The drive control circuit 2 is a circuit that controls the driving of the two-phase stepping motor based on the position signal output from the position control circuit 1, and includes conversion circuits 21A and 21B, comparators 22A and 22B, and a current control circuit. 23A and 23B, H bridge circuits 24A and 24B, and resistors 25A and 25B. An excitation mode signal indicating an excitation mode, an FR signal indicating forward / reverse rotation of the motor, and a clock (CLK) indicating a step are input to the drive circuit from outside the microcomputer or the like. It is possible to integrate the position control circuit 1 and the drive control circuit 2 constituting the drive circuit.

本実施形態の駆動回路は、2相励磁モード、1−2相励磁モード、及び4W1−2相励磁モードによってステッピングモータを駆動することが可能である。図2は、各励磁モードにおけるステップ位置の遷移を示す図である。本実施形態においては、2相を構成するA相およびB相がともに正の位相を第1相、A相が負、B相が正の位相を第2相、A相およびB相がともに負の位相を第3相、A相が正、B相が負の位相を第4相と称することとする。   The drive circuit of the present embodiment can drive the stepping motor in the two-phase excitation mode, the 1-2 phase excitation mode, and the 4W1-2 phase excitation mode. FIG. 2 is a diagram showing the transition of the step position in each excitation mode. In this embodiment, the A phase and the B phase constituting the two phases are both positive in the first phase, the A phase is negative, the B phase is in the positive phase, the second phase, and both the A phase and the B phase are negative. These phases are referred to as the third phase, the A phase is positive, and the B phase is negative as the fourth phase.

まず、位置制御回路1の構成について説明する。位相信号出力回路11は、位置信号の一つである位相信号を出力する回路である。位相信号には、A相の位相信号及びB相の位相信号が含まれている。なお、以後の説明において、位相信号(X,Y)はA相の位相信号がXであり、B相の位相信号がYであることを示すこととする。例えば、4W1−2相励磁モードで正転動作している場合、位相信号出力回路11は、現在の位相信号が第1相(正,正)であるときに、カウンタ12から出力されるカウンタ値が“0”(10進)になると、位相信号を第2相(負,正)に更新して出力する。続いて、位相信号出力回路11は、第2相においてカウンタ12から出力されるカウンタ値が“16”(10進)になると、位相信号を第3相(負,負)に更新して出力し、次にカウンタ値が“0”になると、位相信号を第4相(正,負)に更新して出力し、次にカウンタ値が“16”になると、位相信号を第1相(正,正)に更新して出力する。   First, the configuration of the position control circuit 1 will be described. The phase signal output circuit 11 is a circuit that outputs a phase signal that is one of position signals. The phase signal includes an A phase signal and a B phase signal. In the following description, the phase signal (X, Y) indicates that the A-phase phase signal is X and the B-phase phase signal is Y. For example, when the forward rotation operation is performed in the 4W1-2 phase excitation mode, the phase signal output circuit 11 outputs the counter value output from the counter 12 when the current phase signal is the first phase (positive, positive). Becomes “0” (decimal), the phase signal is updated to the second phase (negative, positive) and output. Subsequently, when the counter value output from the counter 12 in the second phase becomes “16” (decimal), the phase signal output circuit 11 updates and outputs the phase signal to the third phase (negative, negative). Next, when the counter value becomes “0”, the phase signal is updated to the fourth phase (positive, negative) and outputted, and when the counter value becomes “16” next, the phase signal is changed to the first phase (positive, negative). Update to (Positive) and output.

つまり、位相信号出力回路11は、カウンタ値が“0”になるとA相の位相信号を反転させ、カウンタ値が“16”になるとB相の位相信号を反転させている。なお、FR信号が逆転を示す信号である場合、位相の遷移は正転の場合とは逆に、第4相、第3相、第2相、第1相の順に遷移する。   That is, the phase signal output circuit 11 inverts the A-phase phase signal when the counter value becomes “0”, and inverts the B-phase phase signal when the counter value becomes “16”. When the FR signal is a signal indicating reverse rotation, the phase transition is reversed in the order of the fourth phase, the third phase, the second phase, and the first phase, contrary to the forward rotation.

カウンタ12は、位置信号の一つである位相内のステップ位置を示すカウンタ値(位相内位置信号)を保持する回路である。そして、カウンタ制御回路13は、カウンタ12に保持されているカウンタ値を、励磁モードに応じて更新する回路である。カウンタ12のカウンタ値は、カウンタ制御回路13からの制御によってクロックのタイミングで更新される。つまり、カウンタ制御回路13は、図2に示したように励磁モードに応じてカウンタ値を更新する。例えば、4W1−2相励磁モードで正転動作している場合、カウンタ制御回路13は、第1相及び第3相においてはカウンタ値を1ずつ減少更新し、第2相及び第4相においては、カウンタ値を1ずつ増加更新する。また、1−2相励磁モードで正転動作している場合、カウンタ制御回路13は、第1相及び第3相においてはカウンタ値を8ずつ減少更新し、第2相及び第4相においては、カウンタ値を8ずつ増加更新する。なお、2相励磁モードで正転動作している場合、カウンタ値は“8”(10進)に固定されている。   The counter 12 is a circuit that holds a counter value (in-phase position signal) indicating a step position within a phase, which is one of position signals. The counter control circuit 13 is a circuit that updates the counter value held in the counter 12 according to the excitation mode. The counter value of the counter 12 is updated at the clock timing under the control of the counter control circuit 13. That is, the counter control circuit 13 updates the counter value according to the excitation mode as shown in FIG. For example, when the forward rotation operation is performed in the 4W1-2 phase excitation mode, the counter control circuit 13 decreases and updates the counter value by 1 in the first phase and the third phase, and in the second phase and the fourth phase. The counter value is incremented and updated by one. Further, when the forward rotation operation is performed in the 1-2 phase excitation mode, the counter control circuit 13 decreases and updates the counter value by 8 in the first phase and the third phase, and in the second phase and the fourth phase. The counter value is incremented and updated by 8. Note that when the forward rotation operation is performed in the two-phase excitation mode, the counter value is fixed at “8” (decimal).

そして、カウンタ制御回路13は、マイクロステップ駆動等のステップ角が細かい励磁モードから、ステップ角が粗い励磁モードに変更されたことを検出すると、検出時のステップ位置と同位相における変更後の励磁モードのステップ位置にカウンタ値を更新する。例えば、変更前の励磁モードが4W1−2相励磁モード、変更後の励磁モードが1−2相励磁モード、励磁モードの変更が検出された際の4W1−2相励磁モードにおけるステップ位置が第1相のカウンタ値が“3”(10進)のステップ位置である場合、カウンタ制御回路13は、カウンタ値を第1相の1−2相励磁モードのステップ位置を示す“8”(10進)に更新する。その後、カウンタ制御回路13は、変更後の励磁モードに従ってカウンタ値を更新する。   When the counter control circuit 13 detects that the excitation mode with a small step angle, such as microstep driving, has been changed to an excitation mode with a coarse step angle, the excitation mode after the change in the same phase as the step position at the time of detection is detected. The counter value is updated at the step position. For example, the excitation mode before the change is the 4W1-2 phase excitation mode, the excitation mode after the change is the 1-2 phase excitation mode, and the step position in the 4W1-2 phase excitation mode when the change of the excitation mode is detected is the first. When the counter value of the phase is “3” (decimal), the counter control circuit 13 sets the counter value to “8” (decimal) indicating the step position of the first-phase 1-2 phase excitation mode. Update to Thereafter, the counter control circuit 13 updates the counter value according to the changed excitation mode.

なお、カウンタ制御回路13は、検出時のステップ位置が変更後の励磁モードのステップ位置である場合には、そのステップ位置から、変更後の励磁モードに従ってカウンタ値を更新する。例えば、励磁モードが4W1−2相励磁モードから1−2相励磁モードに変更される場合において、変更が検出された際のステップ位置が第1相のカウンタ値が“8”(10進)のステップ位置である場合、または、第1相と第2相との境界であるカウンタ値が“0”(10進)のステップ位置である場合、カウンタ制御回路13は、そのカウンタ値から、変更後の励磁モードによる更新を開始する。   In addition, when the step position at the time of detection is the step position of the excitation mode after the change, the counter control circuit 13 updates the counter value from the step position according to the excitation mode after the change. For example, when the excitation mode is changed from the 4W1-2 phase excitation mode to the 1-2 phase excitation mode, the step position when the change is detected is that the counter value of the first phase is “8” (decimal). If it is a step position, or if the counter value that is the boundary between the first phase and the second phase is a step position of “0” (decimal), the counter control circuit 13 changes the counter value after the change. Update by the excitation mode is started.

図3は、第1相における、励磁モード変更時のステップ位置の遷移を示す図である。前述したように、例えば、4W1−2相励磁モードから1−2相励磁モードに変更された場合であれば、ステップ位置を示すカウンタ値が“15”(10進)から“9”(10進)の場合には、カウンタ値が“8”(10進)に更新されることにより、第1相のカウンタ値“8”のステップ位置まで正方向に回転して進むことになる。また、カウンタ値が“7”(10進)から“1”(10進)の場合には、カウンタ値が“8”(10進)に更新されることにより、第1相のカウンタ値“8”のステップ位置まで逆方向に回転して進むことになる。他の位相においても、同様に、励磁モードの変更検出時のステップ位置と同位相における変更後の励磁モードのステップ位置にカウンタ値が更新される。   FIG. 3 is a diagram showing the transition of the step position when changing the excitation mode in the first phase. As described above, for example, when the 4W1-2 phase excitation mode is changed to the 1-2 phase excitation mode, the counter value indicating the step position is changed from “15” (decimal) to “9” (decimal). In the case of), the counter value is updated to “8” (decimal), so that the rotation proceeds in the positive direction to the step position of the counter value “8” of the first phase. Further, when the counter value is “7” (decimal) to “1” (decimal), the counter value is updated to “8” (decimal), so that the first-phase counter value “8” is updated. Rotate in the reverse direction to the step position “”. Similarly, in other phases, the counter value is updated to the step position of the excitation mode after the change in the same phase as the step position when the change of the excitation mode is detected.

また、カウンタ制御回路13は、ステップ角が粗い励磁モードから、ステップ角が細かい励磁モードに変更されたことを検出した場合は、検出時のステップ位置から検出後の励磁モードに従ってカウンタ値の更新を行う。例えば、変更前の励磁モードが1−2相励磁モード、変更後の励磁モードが4W1−2相励磁モード、励磁モードの変更が検出された際の1−2相励磁モードにおけるステップ位置が第1相のカウンタ値が“8”(10進)のステップ位置である場合、カウンタ制御回路13は、そのカウンタ値から、1−2相励磁モードに従ってカウンタ値の更新を開始する。つまり、次のクロック入力により、カウンタ値が“0”(10進)に更新される。   In addition, when the counter control circuit 13 detects that the excitation mode with the coarse step angle is changed to the excitation mode with the fine step angle, the counter control circuit 13 updates the counter value according to the excitation mode after detection from the step position at the time of detection. Do. For example, the excitation mode before the change is the 1-2 phase excitation mode, the excitation mode after the change is the 4W1-2 phase excitation mode, and the step position in the 1-2 phase excitation mode when the change of the excitation mode is detected is the first. When the counter value of the phase is “8” (decimal) step position, the counter control circuit 13 starts updating the counter value from the counter value according to the 1-2 phase excitation mode. That is, the counter value is updated to “0” (decimal) by the next clock input.

なお、カウンタ12及びカウンタ制御回路13により、本発明の位相内位置信号出力回路が構成されている。   The counter 12 and the counter control circuit 13 constitute an in-phase position signal output circuit of the present invention.

次に、駆動制御回路2の構成について説明する。変換回路21Aは、カウンタ値12から出力されるカウンタ値を電圧値に変換して出力する回路である。この電圧値によってA相のコイル30Aの電流量が制御され、モータのステップ位置が制御されることとなる。コンパレータ22Aは、変換回路21Aから出力される電圧値と、A相のコイル30Aの電流量を示す電圧値との比較結果を出力する。   Next, the configuration of the drive control circuit 2 will be described. The conversion circuit 21A is a circuit that converts the counter value output from the counter value 12 into a voltage value and outputs the voltage value. The amount of current of the A-phase coil 30A is controlled by this voltage value, and the step position of the motor is controlled. The comparator 22A outputs a comparison result between the voltage value output from the conversion circuit 21A and the voltage value indicating the current amount of the A-phase coil 30A.

電流制御回路23Aは、位相信号出力回路11から出力されるA相の位相信号に基づいてA相のコイル30Aを流れる電流の方向を制御する。また、電流制御回路23Aは、コンパレータ22Aから出力される比較結果に基づいて、A相コイル30Aの電流量を示す電圧値が変換回路21Aから出力される電圧値となるように、Hブリッジ回路24Aの動作を制御する。図4は、Hブリッジ回路24Aの構成を示す図である。Hブリッジ回路24Aは、N型MOSFET41〜44により構成されたフル・ブリッジ回路である。N型MOSFET41,42のドレインには、電源電圧Vddが印加され、N型MOSFET41のソースとN型MOSFET43のドレインとが接続され、N型MOSFET42のソースとN型MOSFET44のドレインとが接続されている。また、N型MOSFET43,44のソースは、抵抗25Aを介して接地されている。そして、A相のコイル30Aの両端が、N型MOSFET41,42のソースの間に接続されている。   The current control circuit 23A controls the direction of the current flowing through the A-phase coil 30A based on the A-phase phase signal output from the phase signal output circuit 11. Further, the current control circuit 23A, based on the comparison result output from the comparator 22A, causes the voltage value indicating the current amount of the A-phase coil 30A to be the voltage value output from the conversion circuit 21A. To control the operation. FIG. 4 is a diagram showing the configuration of the H-bridge circuit 24A. The H bridge circuit 24 </ b> A is a full bridge circuit configured by N-type MOSFETs 41 to 44. The power source voltage Vdd is applied to the drains of the N-type MOSFETs 41 and 42, the source of the N-type MOSFET 41 and the drain of the N-type MOSFET 43 are connected, and the source of the N-type MOSFET 42 and the drain of the N-type MOSFET 44 are connected. . The sources of the N-type MOSFETs 43 and 44 are grounded via the resistor 25A. Both ends of the A-phase coil 30 </ b> A are connected between the sources of the N-type MOSFETs 41 and 42.

このようなHブリッジ回路24Aにおいては、N型MOSFET41,44がオン、N型MOSFET42,43がオフとなると、A相のコイル30Aに一方の方向(方向1)の電流が流れる。また、N型MOSFET42,43がオン、N型MOSFET41,44がオフとなると、A相のコイル30Aに他方の方向(方向2)の電流が流れる。このように、電流制御回路23Aによって、N型MOSFET41〜44のオン・オフが制御されることにより、A相のコイル30Aの電流の方向及び電流量が制御される。そして、抵抗25Aによって検出される電圧値によって、A相のコイル30Aの電流量が検出されることとなる。   In such an H-bridge circuit 24A, when the N-type MOSFETs 41 and 44 are turned on and the N-type MOSFETs 42 and 43 are turned off, a current in one direction (direction 1) flows through the A-phase coil 30A. When the N-type MOSFETs 42 and 43 are turned on and the N-type MOSFETs 41 and 44 are turned off, a current in the other direction (direction 2) flows through the A-phase coil 30A. Thus, the current control circuit 23A controls the on / off of the N-type MOSFETs 41 to 44, thereby controlling the current direction and the current amount of the A-phase coil 30A. The current amount of the A-phase coil 30A is detected by the voltage value detected by the resistor 25A.

同様に、変換回路21B、コンパレータ22B、電流制御回路23A、Hブリッジ回路24B、及び抵抗25Bによって、B相のコイル30Bを流れる電流の方向及び電流量が制御される。   Similarly, the direction and amount of current flowing through the B-phase coil 30B are controlled by the conversion circuit 21B, the comparator 22B, the current control circuit 23A, the H bridge circuit 24B, and the resistor 25B.

==位相信号出力回路==
次に、位相信号出力回路11の詳細について説明する。図5は、位相信号出力回路11の構成の一例を示す回路図である。位相信号出力回路11は、D型フリップフロップ(以後、「D−FF」と称する。)51,52、ゼロ検出回路55、FULL検出回路56、NAND回路61〜72、XOR回路73,74、OR回路75、及びNOT回路76〜78により構成されている。
== Phase signal output circuit ==
Next, details of the phase signal output circuit 11 will be described. FIG. 5 is a circuit diagram showing an example of the configuration of the phase signal output circuit 11. The phase signal output circuit 11 includes D-type flip-flops (hereinafter referred to as “D-FF”) 51 and 52, a zero detection circuit 55, a FULL detection circuit 56, NAND circuits 61 to 72, XOR circuits 73 and 74, OR The circuit 75 and NOT circuits 76 to 78 are configured.

D−FF51は、A相の位相信号を保持する回路であり、D−FF52は、B相の位相信号を保持する回路である。なお、本実施形態においては、正の位相信号を“0”、負の位相信号を“1”で表すこととし、(A相の位相信号 B相の位相信号)と表すこととする。例えば、第1相を示す位相信号は(00)、第2相を示す位相信号は(10)と表される。   The D-FF 51 is a circuit that holds an A phase signal, and the D-FF 52 is a circuit that holds a B phase signal. In the present embodiment, the positive phase signal is represented by “0” and the negative phase signal is represented by “1”, and is represented as (A phase signal B phase signal). For example, the phase signal indicating the first phase is expressed as (00), and the phase signal indicating the second phase is expressed as (10).

ゼロ検出回路55は、カウンタ12から出力されるカウンタ値がゼロの場合のみ“0”を出力し、それ以外の場合は“1”を出力する。ここで、カウンタ値がゼロの場合とは、カウンタ値が図2に示したステップ位置の“0”(10進)となっている場合である。本実施形態においては、カウンタ12は5ビットで構成されており、ステップ位置の“0”(10進)は、5ビットで(00000)と表されている。   The zero detection circuit 55 outputs “0” only when the counter value output from the counter 12 is zero, and outputs “1” otherwise. Here, the case where the counter value is zero is a case where the counter value is “0” (decimal) of the step position shown in FIG. In the present embodiment, the counter 12 is composed of 5 bits, and “0” (decimal) of the step position is represented by 5 bits (00000).

FULL検出回路56は、カウンタ12から出力されるカウンタ値がFULLの場合のみ“0”を出力し、それ以外の場合は“1”を出力する。ここで、カウンタ値がFULLの場合とは、カウンタ値が図2に示したステップ位置の“16”(10進)となっている場合である。本実施形態においては、ステップ位置の“16”(10進)は、5ビットで(10000)と表されている。   The FULL detection circuit 56 outputs “0” only when the counter value output from the counter 12 is FULL, and outputs “1” otherwise. Here, the case where the counter value is FULL is a case where the counter value is “16” (decimal) of the step position shown in FIG. 2. In this embodiment, “16” (decimal) of the step position is expressed as (10000) with 5 bits.

XOR回路74に入力されているFR信号は、モータの回転方向を示す信号であり、例えば、“0”が正転、“1”が逆転を示す。また、OR回路75に入力される例えば2ビットの励磁モード信号は、(00)が2相励磁モード、(10)が1−2相励磁モード、(11)が4W1−2相励磁モードであることとする。したがって、OR回路75の出力は、2相励磁モードの場合のみ“0”となる。そして、NAND回路62から出力されるU/D信号は、カウンタ12のカウンタ値のカウントアップまたはカウントダウンを示す信号であり、例えば、“0”がカウントダウン、“1”がカウントアップを示すものとする。   The FR signal input to the XOR circuit 74 is a signal indicating the rotation direction of the motor. For example, “0” indicates normal rotation and “1” indicates reverse rotation. In addition, for example, a 2-bit excitation mode signal input to the OR circuit 75 is (00) being a two-phase excitation mode, (10) being a 1-2 phase excitation mode, and (11) being a 4W1-2 phase excitation mode. I will do it. Therefore, the output of the OR circuit 75 is “0” only in the two-phase excitation mode. The U / D signal output from the NAND circuit 62 is a signal indicating the count-up or count-down of the counter value of the counter 12. For example, “0” indicates a count-down and “1” indicates a count-up. .

このような構成の位相信号出力回路11の動作について説明する。まず、励磁モードが2相励磁モード以外の場合について説明する。この場合、OR回路75の出力は“1”である。   The operation of the phase signal output circuit 11 having such a configuration will be described. First, the case where the excitation mode is other than the two-phase excitation mode will be described. In this case, the output of the OR circuit 75 is “1”.

例えば、FR信号が“0”(正転)、位相信号が(00)、カウンタ値が“1”(10進)であるとする。このとき、XOR回路73には、D−FF51の出力端子Qから出力される“0”と、D−FF52の出力端子Qから出力される“0”とが入力され、その出力は“0”となる。そして、XOR回路74には、XOR回路73から出力される“0”と、FR信号“0”とが入力され、その出力は“0”となる。   For example, it is assumed that the FR signal is “0” (forward rotation), the phase signal is (00), and the counter value is “1” (decimal). At this time, “0” output from the output terminal Q of the D-FF 51 and “0” output from the output terminal Q of the D-FF 52 are input to the XOR circuit 73, and the output is “0”. It becomes. The XOR circuit 74 receives “0” output from the XOR circuit 73 and the FR signal “0”, and outputs “0”.

また、このとき、ゼロ検出回路55及びFULL検出回路56の出力はともに“1”である。したがって、NAND回路61には、XOR回路74から出力される“0”と、FULL検出回路56から出力される“1”とが入力され、その出力は“1”となる。そして、NAND回路62には、NAND回路61から出力される“1”と、ゼロ検出回路55から出力される“1”とが入力され、その出力は“0”となる。つまり、U/D信号として、カウントダウンを示す“0”が出力されている。   At this time, the outputs of the zero detection circuit 55 and the FULL detection circuit 56 are both “1”. Therefore, “0” output from the XOR circuit 74 and “1” output from the FULL detection circuit 56 are input to the NAND circuit 61, and the output thereof is “1”. Then, “1” output from the NAND circuit 61 and “1” output from the zero detection circuit 55 are input to the NAND circuit 62, and the output becomes “0”. That is, “0” indicating the countdown is output as the U / D signal.

そして、次のクロック(CLK)が入力されると、U/D信号が“0”であるため、カウンタ12から出力されるカウンタ値は“0”(10進)となり、ゼロ検出回路55の出力が“0”となる。すると、NAND回路62の出力であるU/D信号は、カウントアップを示す“1”となる。   When the next clock (CLK) is input, since the U / D signal is “0”, the counter value output from the counter 12 is “0” (decimal), and the output of the zero detection circuit 55 is output. Becomes “0”. Then, the U / D signal that is the output of the NAND circuit 62 becomes “1” indicating the count-up.

また、このとき、NAND回路63には、ゼロ検出回路55から出力される“0”が入力され、その出力は“1”となる。そして、NAND回路65には、NAND回路63から出力される“1”と、XOR回路74から出力される“0”をNOT回路76により反転した“1”とが入力され、その出力は“0”となる。さらに、NAND回路67には、NAND回路65から出力される“0”をNOT回路77により反転した“1”と、D−FF51の反転出力端子/Qから出力される“1”とが入力され、その出力は“0”となる。そして、NAND回路69には、NAND回路67から出力される“0”が入力され、その出力は“1”となり、D−FF51の入力端子Dに“1”が入力される。   At this time, “0” output from the zero detection circuit 55 is input to the NAND circuit 63, and the output is “1”. Then, “1” output from the NAND circuit 63 and “1” obtained by inverting the “0” output from the XOR circuit 74 by the NOT circuit 76 are input to the NAND circuit 65, and the output is “0”. " Further, “1” obtained by inverting “0” output from the NAND circuit 65 by the NOT circuit 77 and “1” output from the inverting output terminal / Q of the D-FF 51 are input to the NAND circuit 67. The output becomes “0”. Then, “0” output from the NAND circuit 67 is input to the NAND circuit 69, the output is “1”, and “1” is input to the input terminal D of the D-FF 51.

また、NAND回路66には、XOR回路74から出力される“0”が入力され、その出力は“1”となる。そして、NAND回路70には、NAND回路66から出力される“1”をNOT回路78により反転した“0”が入力され、その出力は“1”となる。また、NAND回路71には、D−FF52の出力端子Qから出力される“0”が入力され、その出力は“1”となる。そして、NAND回路72には、NAND回路70から出力される“1”と、NAND回路71から出力される“1”とが入力され、その出力は“0”となり、D−FF52の入力端子Dに“0”が入力される。   Further, “0” output from the XOR circuit 74 is input to the NAND circuit 66, and the output is “1”. Then, “0” obtained by inverting “1” output from the NAND circuit 66 by the NOT circuit 78 is input to the NAND circuit 70, and the output becomes “1”. Further, “0” output from the output terminal Q of the D-FF 52 is input to the NAND circuit 71, and the output thereof is “1”. Then, “1” output from the NAND circuit 70 and “1” output from the NAND circuit 71 are input to the NAND circuit 72, and the output becomes “0”, and the input terminal D of the D-FF 52 “0” is input to.

したがって、D−FF51,52に次のクロックが入力されると、位相信号は(00)から(10)に更新される。そして、カウンタ12から出力されるカウンタ値がカウントアップされて“1”(10進)になると、ゼロ検出回路55の出力は再び“1”となる。すると、NAND回路63の出力が“0”となり、NAND回路65の出力が“1”となる。そして、NAND回路68には、NAND回路65から出力される“1”と、D−FF51の出力端子Qから出力される“1”とが入力され、その出力は“0”となる。そのため、NAND回路69の出力は“1”となり、D−FF51の入力端子Dに入力される値は“1”のままとなる。   Therefore, when the next clock is input to the D-FFs 51 and 52, the phase signal is updated from (00) to (10). When the counter value output from the counter 12 is counted up to “1” (decimal), the output of the zero detection circuit 55 becomes “1” again. Then, the output of the NAND circuit 63 becomes “0”, and the output of the NAND circuit 65 becomes “1”. Then, “1” output from the NAND circuit 65 and “1” output from the output terminal Q of the D-FF 51 are input to the NAND circuit 68, and the output becomes “0”. Therefore, the output of the NAND circuit 69 is “1”, and the value input to the input terminal D of the D-FF 51 remains “1”.

また、このとき、XOR回路73の出力が“1”となり、XOR回路74の出力が“1”となる。そのため、NAND回路61の出力が“0”となり、NAND回路62の出力であるU/D信号は“1”のままとなる。   At this time, the output of the XOR circuit 73 becomes “1”, and the output of the XOR circuit 74 becomes “1”. Therefore, the output of the NAND circuit 61 becomes “0”, and the U / D signal that is the output of the NAND circuit 62 remains “1”.

つまり、位相信号出力回路11は、カウンタ値がゼロ(第1の値)であることを検出すると、FR信号に従って位相信号を次の位相に更新して出力するとともに、カウンタ値の増加を指示する増加信号(U/D信号=“1”)を出力する。   That is, when detecting that the counter value is zero (first value), the phase signal output circuit 11 updates and outputs the phase signal to the next phase according to the FR signal, and instructs to increase the counter value. An increase signal (U / D signal = “1”) is output.

その後、カウントアップが進み、カウンタ値が“16”(10進)になると、FULL検出回路56の出力が“0”となる。すると、NAND回路61の出力は“1”となり、NAND回路62の出力であるU/D信号は、カウントダウンを示す“0”となる。   Thereafter, when the count-up proceeds and the counter value reaches “16” (decimal), the output of the FULL detection circuit 56 becomes “0”. Then, the output of the NAND circuit 61 becomes “1”, and the U / D signal that is the output of the NAND circuit 62 becomes “0” indicating a countdown.

そして、NAND回路64には、FULL検出回路56から出力される“0”が入力され、その出力は“1”となる。そして、NAND回路66には、NAND回路64から出力される“1”と、XOR回路74から出力される“1”とが入力され、その出力は“0”となる。さらに、NAND回路70には、NAND回路66から出力される“0”をNOT回路78により反転した“1”と、D−FF52の反転出力端子/Qから出力される“1”とが入力され、その出力は“0”となる。そして、NAND回路72には、NAND回路70から出力される“0”が入力され、その出力は“1”となり、D−FF52の入力端子Dに“1”が入力される。   Then, “0” output from the FULL detection circuit 56 is input to the NAND circuit 64, and the output becomes “1”. Then, “1” output from the NAND circuit 64 and “1” output from the XOR circuit 74 are input to the NAND circuit 66, and the output becomes “0”. Furthermore, “1” obtained by inverting “0” output from the NAND circuit 66 by the NOT circuit 78 and “1” output from the inverting output terminal / Q of the D-FF 52 are input to the NAND circuit 70. The output becomes “0”. Then, “0” output from the NAND circuit 70 is input to the NAND circuit 72, the output is “1”, and “1” is input to the input terminal D of the D-FF 52.

したがって、D−FF51,52に次のクロックが入力されると、位相信号は(10)から(11)に更新される。そして、カウンタ12から出力されるカウンタ値がカウントダウンされて“15”(10進)になると、FULL検出回路56の出力は再び“1”となる。すると、NAND回路64の出力が“0”となり、NAND回路66の出力が“1”となる。そして、NAND回路71には、NAND回路66から出力される“1”と、D−FF52の出力端子Qから出力される“1”とが入力され、その出力は“0”となる。そのため、NAND回路72の出力は“1”となり、D−FF52の入力端子Dに入力される値は“1”のままとなる。   Therefore, when the next clock is input to the D-FFs 51 and 52, the phase signal is updated from (10) to (11). When the counter value output from the counter 12 is counted down to “15” (decimal), the output of the FULL detection circuit 56 becomes “1” again. Then, the output of the NAND circuit 64 becomes “0”, and the output of the NAND circuit 66 becomes “1”. Then, “1” output from the NAND circuit 66 and “1” output from the output terminal Q of the D-FF 52 are input to the NAND circuit 71, and the output becomes “0”. Therefore, the output of the NAND circuit 72 is “1”, and the value input to the input terminal D of the D-FF 52 remains “1”.

また、このとき、XOR回路73の出力が“0”となり、XOR回路74の出力が“0”となる。そのため、NAND回路61の出力が“1”となり、NAND回路62の出力であるU/D信号は“0”のままとなる。   At this time, the output of the XOR circuit 73 becomes “0”, and the output of the XOR circuit 74 becomes “0”. Therefore, the output of the NAND circuit 61 becomes “1”, and the U / D signal that is the output of the NAND circuit 62 remains “0”.

つまり、位相信号出力回路11は、カウンタ値がFULL(第2の値)であることを検出すると、FR信号に従って位相信号を次の位相に更新して出力するとともに、カウンタ値の減少を指示する減少信号(U/D信号=“0”)を出力する。   That is, when the phase signal output circuit 11 detects that the counter value is FULL (second value), it updates the phase signal to the next phase according to the FR signal and outputs it, and also instructs to decrease the counter value. A decrease signal (U / D signal = "0") is output.

次に、励磁モードが2相励磁モードの場合について説明する。この場合、OR回路75の出力は“0”である。そのため、OR回路75から出力される“0”が入力されるNAND回路63,64の出力は“1”となる。   Next, the case where the excitation mode is the two-phase excitation mode will be described. In this case, the output of the OR circuit 75 is “0”. Therefore, the outputs of the NAND circuits 63 and 64 to which “0” output from the OR circuit 75 is input are “1”.

例えば、FR信号が“0”(正転)、位相信号が(00)であるとする。このとき、XOR回路73には、D−FF51の出力端子Qから出力される“0”と、D−FF52の出力端子Qから出力される“0”とが入力され、その出力は“0”となる。そして、XOR回路74には、XOR回路73から出力される“0”と、FR信号“0”とが入力され、その出力は“0”となる。   For example, assume that the FR signal is “0” (forward rotation) and the phase signal is (00). At this time, “0” output from the output terminal Q of the D-FF 51 and “0” output from the output terminal Q of the D-FF 52 are input to the XOR circuit 73, and the output is “0”. It becomes. The XOR circuit 74 receives “0” output from the XOR circuit 73 and the FR signal “0”, and outputs “0”.

そして、NAND回路65には、NAND回路63から出力される“1”と、XOR回路74から出力される“0”をNOT回路76により反転した“1”とが入力され、その出力は“0”となる。さらに、NAND回路67には、NAND回路65から出力される“0”をNOT回路77により反転した“1”と、D−FF51の反転出力端子/Qから出力される“1”とが入力され、その出力は“0”となる。そして、NAND回路69には、NAND回路67から出力される“0”が入力され、その出力は“1”となり、D−FF51の入力端子Dに“1”が入力される。   Then, “1” output from the NAND circuit 63 and “1” obtained by inverting the “0” output from the XOR circuit 74 by the NOT circuit 76 are input to the NAND circuit 65, and the output is “0”. " Further, “1” obtained by inverting “0” output from the NAND circuit 65 by the NOT circuit 77 and “1” output from the inverting output terminal / Q of the D-FF 51 are input to the NAND circuit 67. The output becomes “0”. Then, “0” output from the NAND circuit 67 is input to the NAND circuit 69, the output is “1”, and “1” is input to the input terminal D of the D-FF 51.

また、NAND回路66には、XOR回路74から出力される“0”が入力され、その出力は“1”となる。そして、NAND回路70には、NAND回路66から出力される“1”をNOT回路78により反転した“0”が入力され、その出力は“1”となる。また、NAND回路71には、D−FF52の出力端子Dから出力される“0”が入力され、その出力は“1”となる。さらに、NAND回路72には、NAND回路70から出力される“1”と、NAND回路71から出力される“1”とが入力され、その出力は“0”となり、D−FF52の入力端子Dに“0”が入力される。   Further, “0” output from the XOR circuit 74 is input to the NAND circuit 66, and the output is “1”. Then, “0” obtained by inverting “1” output from the NAND circuit 66 by the NOT circuit 78 is input to the NAND circuit 70, and the output becomes “1”. Further, “0” output from the output terminal D of the D-FF 52 is input to the NAND circuit 71, and the output thereof is “1”. Furthermore, “1” output from the NAND circuit 70 and “1” output from the NAND circuit 71 are input to the NAND circuit 72, and the output becomes “0”, and the input terminal D of the D-FF 52 “0” is input to.

したがって、D−FF51,52に次のクロックが入力されると、位相信号は(00)から(10)に更新される。そして、位相信号が(10)になると、XOR回路73の出力が“1”となり、XOR回路74の出力が“1”となる。したがって、NAND回路65の出力が“1”、NAND回路66の出力が“0”となる。   Therefore, when the next clock is input to the D-FFs 51 and 52, the phase signal is updated from (00) to (10). When the phase signal becomes (10), the output of the XOR circuit 73 becomes “1”, and the output of the XOR circuit 74 becomes “1”. Therefore, the output of the NAND circuit 65 is “1”, and the output of the NAND circuit 66 is “0”.

そして、NAND回路68には、NAND回路65から出力される“1”と、D−FF51の出力端子Qから出力される“1”とが入力され、その出力は“0”となる。さらに、NAND回路69には、NAND回路68から出力される“0”が入力され、その出力は“1”となり、D−FF51の入力端子Dに“1”が入力される。   Then, “1” output from the NAND circuit 65 and “1” output from the output terminal Q of the D-FF 51 are input to the NAND circuit 68, and the output becomes “0”. Further, “0” output from the NAND circuit 68 is input to the NAND circuit 69, the output thereof is “1”, and “1” is input to the input terminal D of the D-FF 51.

また、NAND回路70には、NAND回路66から出力される“0”をNOT回路78により反転した“1”と、D−FF52の反転出力端子/Qから出力される“1”とが入力され、その出力は“0”となる。さらに、NAND回路72には、NAND回路70から出力される“0”が入力され、その出力は“1”となり、D−FF52の入力端子Dに“1”が入力される。   Further, “1” obtained by inverting “0” output from the NAND circuit 66 by the NOT circuit 78 and “1” output from the inverting output terminal / Q of the D-FF 52 are input to the NAND circuit 70. The output becomes “0”. Further, “0” output from the NAND circuit 70 is input to the NAND circuit 72, the output thereof is “1”, and “1” is input to the input terminal D of the D-FF 52.

したがって、D−FF51,52に次のクロックが入力されると、位相信号は(10)から(11)に更新される。このように、2相励磁モードの場合、位相信号出力回路11は、クロックが入力されるたびに、FR信号に従って位相信号を次の位相に更新して出力する。   Therefore, when the next clock is input to the D-FFs 51 and 52, the phase signal is updated from (10) to (11). As described above, in the two-phase excitation mode, the phase signal output circuit 11 updates the phase signal to the next phase according to the FR signal and outputs it every time the clock is input.

==カウンタ及びカウンタ制御回路==
次に、カウンタ12及びカウンタ制御回路13の詳細について説明する。図6は、カウンタ12及びカウンタ制御回路13の構成の一例を示す回路図である。カウンタ12は、例えば5ビットのカウンタ値を保持する5つのD−FF81〜85により構成されている。そして、D−FF81が1ビット目(最下位ビット)、D−FF82が2ビット目、D−FF83が3ビット目、D−FF84が4ビット目、D−FF85が5ビット目(最上位ビット)の値を保持している。つまり、D−FF81〜85の出力端子Qから出力される(BIT4 BIT3 BIT2 BIT1 BIT0)が、カウンタ12から出力されるカウンタ値となっている。なお、カウンタ12の初期値は、2相励磁モードの場合は(01000)(=“8”(10進))であり、2相励磁モード以外の場合は(10000)(=“16”(10進))である。
== Counter and counter control circuit ==
Next, details of the counter 12 and the counter control circuit 13 will be described. FIG. 6 is a circuit diagram showing an example of the configuration of the counter 12 and the counter control circuit 13. The counter 12 is composed of, for example, five D-FFs 81 to 85 that hold a 5-bit counter value. D-FF81 is the first bit (the least significant bit), D-FF82 is the second bit, D-FF83 is the third bit, D-FF84 is the fourth bit, and D-FF85 is the fifth bit (the most significant bit) ) Value. That is, (BIT4 BIT3 BIT2 BIT1 BIT0) output from the output terminal Q of the D-FFs 81 to 85 is a counter value output from the counter 12. Note that the initial value of the counter 12 is (01000) (= “8” (decimal)) in the two-phase excitation mode, and (10000) (= “16” (10 in other than the two-phase excitation mode). Hex)).

カウンタ制御回路13は、OR回路91〜95、NAND回路96〜101、NOT回路102,103、AND回路104〜107、XOR回路108〜112、及びXNOR回路113〜115により構成されている。ここで、OR回路91及びNAND回路96に入力される励磁モード信号は、前述した通り(00)が2相励磁モード、(10)が1−2相励磁モード、(11)が4W1−2相励磁モードである。したがって、OR回路91の出力は、2相励磁モードの場合のみ“0”となる。また、NAND回路96の出力は、4W1−2相励磁モードの場合のみ“0”となる。   The counter control circuit 13 includes OR circuits 91 to 95, NAND circuits 96 to 101, NOT circuits 102 and 103, AND circuits 104 to 107, XOR circuits 108 to 112, and XNOR circuits 113 to 115. Here, as described above, the excitation mode signals input to the OR circuit 91 and the NAND circuit 96 are (00) for the 2-phase excitation mode, (10) for the 1-2 phase excitation mode, and (11) for the 4W1-2 phase. Excitation mode. Therefore, the output of the OR circuit 91 is “0” only in the two-phase excitation mode. The output of the NAND circuit 96 is “0” only in the 4W1-2 phase excitation mode.

また、OR回路95には、カウンタ12の下位3ビットが入力されており、カウンタ値が10進で“0”、“8”、“16”の場合のみ、つまり、1−2相励磁モードのステップ位置である場合のみ、出力が“0”となる。また、XOR回路109〜112には、D−FF81〜84の反転出力端子/Qから出力される信号と、位相信号出力回路11から出力されるU/D信号とが入力されている。   Further, the lower 3 bits of the counter 12 are input to the OR circuit 95, and only when the counter value is “0”, “8”, “16” in decimal, that is, in the 1-2 phase excitation mode. Only when the position is the step position, the output is “0”. Further, the XOR circuits 109 to 112 are input with a signal output from the inverting output terminals / Q of the D-FFs 81 to 84 and a U / D signal output from the phase signal output circuit 11.

このようなカウンタ12及びカウンタ制御回路13の動作について説明する。   Operations of the counter 12 and the counter control circuit 13 will be described.

(1)4W1−2相励磁モード
まず、4W1−2相励磁モードの場合について説明する。4W1−2相励磁モードにおいて、カウンタ12のカウンタは、U/D信号が“0”の場合は、10進で“16”から“0”まで1ずつカウントダウンされ、U/D信号が“1”の場合は、10進で“0”から“16”まで1ずつカウントアップされる。
(1) 4W1-2 phase excitation mode First, the case of 4W1-2 phase excitation mode will be described. In the 4W1-2 phase excitation mode, when the U / D signal is “0”, the counter of the counter 12 counts down one by one from “16” to “0” in decimal, and the U / D signal is “1”. In this case, the number is incremented by one from “0” to “16” in decimal.

例えば、カウンタ12のカウンタ値が(00011)、U/D信号が“0”である場合に、次のクロック(CLK)が入力された場合の動作について確認する。いま、励磁モードが4W1−2相励磁モードであるため、OR回路91の出力は“1”、NAND回路96の出力は“0”、NAND回路97の出力は“1”となっている。   For example, when the counter value of the counter 12 is (00011) and the U / D signal is “0”, the operation when the next clock (CLK) is input is confirmed. Since the excitation mode is the 4W1-2 phase excitation mode, the output of the OR circuit 91 is “1”, the output of the NAND circuit 96 is “0”, and the output of the NAND circuit 97 is “1”.

このとき、AND回路104には、D−FF81の反転出力端子/Qから“0”が入力され、その出力は“0”となり、D−FF81の入力端子Dに“0”が入力される。   At this time, “0” is input to the AND circuit 104 from the inverting output terminal / Q of the D-FF 81, the output is “0”, and “0” is input to the input terminal D of the D-FF 81.

また、XOR回路109には、D−FF81の反転出力端子/Qから出力される“0”と、U/D信号“0”とが入力され、その出力は“0”となる。したがって、OR回路92の出力も“0”となる。そして、XNOR回路113には、OR回路92の出力をNOT回路103により反転した“1”と、D−FF82の出力端子Qから出力される“1”とが入力され、その出力は“1”となる。そして、AND回路105には、NAND回路97から出力される“1”と、NOT回路102から出力される“1”と、XNOR回路113から出力される“1”とが入力され、その出力は“1”となり、D−FF82の入力端子Dに“1”が入力される。   The XOR circuit 109 receives “0” output from the inverting output terminal / Q of the D-FF 81 and the U / D signal “0”, and outputs “0”. Therefore, the output of the OR circuit 92 is also “0”. The XNOR circuit 113 receives “1” obtained by inverting the output of the OR circuit 92 by the NOT circuit 103 and “1” output from the output terminal Q of the D-FF 82, and the output is “1”. It becomes. Then, “1” output from the NAND circuit 97, “1” output from the NOT circuit 102, and “1” output from the XNOR circuit 113 are input to the AND circuit 105. “1”, and “1” is input to the input terminal D of the D-FF 82.

また、XOR回路110には、D−FF82の反転出力端子/Qから出力される“0”と、U/D信号“0”とが入力され、その出力は“0”となる。したがって、OR回路93の出力も“0”となる。そして、OR回路93からの出力“0”が入力されるNAND回路98の出力は“1”となり、XNOR回路114には、NAND回路98から出力される“1”と、D−FF83の出力端子Qから出力される“0”とが入力され、その出力は、“0”となる。そして、AND回路106には、XNOR回路114から出力される“0”が入力され、その出力は“0”となり、D−FF83の入力端子Dに“0”が入力される。   Further, “0” output from the inverting output terminal / Q of the D-FF 82 and the U / D signal “0” are input to the XOR circuit 110, and the output thereof is “0”. Therefore, the output of the OR circuit 93 is also “0”. Then, the output of the NAND circuit 98 to which the output “0” from the OR circuit 93 is input becomes “1”, and the XNOR circuit 114 has “1” output from the NAND circuit 98 and the output terminal of the D-FF 83. “0” output from Q is input, and the output is “0”. Then, “0” output from the XNOR circuit 114 is input to the AND circuit 106, the output becomes “0”, and “0” is input to the input terminal D of the D-FF 83.

また、NAND回路99には、OR回路92の出力“0”が入力され、その出力は“1”となる。そして、XOR回路108には、NAND回路99から出力される“1”と、D−FF84の出力端子Qから出力される“0”とが入力され、その出力は“1”となる。そして、NAND回路101には、NAND回路97から出力される“1”と、OR回路91から出力される“1”と、XOR回路108から出力される“1”とが入力され、その出力は“0”となり、D−FF84の入力端子Dに“0”が入力される。   Further, the output “0” of the OR circuit 92 is input to the NAND circuit 99, and the output becomes “1”. Then, “1” output from the NAND circuit 99 and “0” output from the output terminal Q of the D-FF 84 are input to the XOR circuit 108, and the output becomes “1”. The NAND circuit 101 receives “1” output from the NAND circuit 97, “1” output from the OR circuit 91, and “1” output from the XOR circuit 108. “0”, and “0” is input to the input terminal D of the D-FF 84.

また、NAND回路100には、OR回路92の出力“0”が入力され、その出力は“1”となる。そして、XNOR回路115には、NAND回路100から出力される“1”と、D−FF85の出力端子Qから出力される“0”とが入力され、その出力は“0”となる。そして、AND回路107には、XNOR回路115から出力される“0”が入力され、その出力は“0”となり、D−FF85の入力端子Dに“0”が入力される。   Further, the output “0” of the OR circuit 92 is input to the NAND circuit 100, and the output becomes “1”. The XNOR circuit 115 receives “1” output from the NAND circuit 100 and “0” output from the output terminal Q of the D-FF 85, and outputs “0”. Then, “0” output from the XNOR circuit 115 is input to the AND circuit 107, the output becomes “0”, and “0” is input to the input terminal D of the D-FF 85.

したがって、D−FF81〜85に次のクロックが入力されると、カウンタ12のカウンタ値は(00010)となり、(00011)から1だけカウントダウンされている。   Therefore, when the next clock is input to the D-FFs 81 to 85, the counter value of the counter 12 becomes (00010), and is counted down by 1 from (00011).

このような動作により、4W1−2相励磁モードにおいては、クロックが入力されるたびにカウンタ12のカウンタ値が1ずつカウントダウンまたはカウントアップされる。   By such an operation, in the 4W1-2 phase excitation mode, the counter value of the counter 12 is counted down or counted up by 1 each time a clock is input.

このように4W1−2相励磁モードで動作している際に、励磁モードが1−2相励磁モードに切り替わった際の動作について説明する。まず、切り替わる前のカウンタ12のカウンタ値が、10進で“0”、“8”、“16”以外である場合について説明する。ここでは、切り替わる前のカウンタ値が(00010)、U/D信号が“0”である場合について説明する。   The operation when the excitation mode is switched to the 1-2 phase excitation mode while operating in the 4W1-2 phase excitation mode will be described. First, the case where the counter value of the counter 12 before switching is other than “0”, “8”, and “16” in decimal will be described. Here, a case where the counter value before switching is (00010) and the U / D signal is “0” will be described.

1−2相励磁モードになると、NAND回路96の出力が“1”となり、これを反転したNOT回路102の出力が“0”となる。したがって、NOT回路102の出力“0”が入力されるAND回路104〜106の出力が“0”となり、D−FF81〜83の入力端子Dに“0”が入力される。また、OR回路95の出力は“1”となり、この“1”と、NAND回路96から出力される“1”とが入力されるNAND回路97の出力は“0”となる。そして、NAND回路101には、NAND回路97から出力される“0”が入力され、その出力は“1”となる。また、AND回路107には、NAND回路97から出力される“0”が入力され、その出力は“0”となる。つまり、D−FF84の入力端子に“1”が入力され、D−FF85の入力端子に“0”が入力される。   In the 1-2 phase excitation mode, the output of the NAND circuit 96 becomes “1”, and the output of the NOT circuit 102 obtained by inverting this becomes “0”. Therefore, the outputs of the AND circuits 104 to 106 to which the output “0” of the NOT circuit 102 is input are “0”, and “0” is input to the input terminals D of the D-FFs 81 to 83. The output of the OR circuit 95 is “1”, and the output of the NAND circuit 97 to which “1” and “1” output from the NAND circuit 96 are input is “0”. Then, “0” output from the NAND circuit 97 is input to the NAND circuit 101, and the output is “1”. Further, “0” output from the NAND circuit 97 is input to the AND circuit 107, and the output is “0”. That is, “1” is input to the input terminal of the D-FF 84, and “0” is input to the input terminal of the D-FF 85.

したがって、D−FF81〜85に次のクロックが入力されると、カウンタ12のカウンタ値は(01000)となる。すなわち、カウンタ制御回路13は、4W1−2相励磁モードから1−2相励磁モードへの切り替えを検出すると、次のクロックのタイミングで、切り替え後の1−2相励磁モードにおけるステップ位置にカウンタ値を更新する。そして、その後は1−2相励磁モードに従ってカウンタ値の更新を開始する。   Therefore, when the next clock is input to the D-FFs 81 to 85, the counter value of the counter 12 becomes (01000). That is, when the counter control circuit 13 detects switching from the 4W1-2 phase excitation mode to the 1-2 phase excitation mode, the counter value is set at the step position in the 1-2 phase excitation mode after switching at the timing of the next clock. Update. Thereafter, updating of the counter value is started according to the 1-2 phase excitation mode.

次に、4W1−2相励磁モードから1−2相励磁モードに切り替わる前のカウンタ12のカウンタ値が、10進で“0”、“8”、“16”である場合について説明する。ここでは、切り替わる前のカウンタ値が(01000)、U/D信号が“0”である場合について説明する。   Next, a case where the counter value of the counter 12 before switching from the 4W1-2 phase excitation mode to the 1-2 phase excitation mode is “0”, “8”, “16” in decimal will be described. Here, a case where the counter value before switching is (01000) and the U / D signal is “0” will be described.

前述したように、NOT回路102の出力は“0”となっているため、AND回路104〜106の出力が“0”となり、D−FF81〜83の入力端子Dに“0”が入力される。また、OR回路95の出力が“0”となり、この“0”が入力されるNAND回路97の出力が“1”となる。また、OR回路92〜94には、NAND回路96から出力される“1”が入力され、その出力は“1”となる。したがって、OR回路92〜94から出力される“1”が入力されるNAND回路99の出力は“0”となる。そして、XOR回路108には、NAND回路99から出力される“0”と、D−FF84の出力端子Qから出力される“1”とが入力され、その出力は“1”となる。そして、NAND回路101には、OR回路91から出力される“1”と、NAND回路97から出力される“1”と、XOR回路108から出力される“1”とが入力され、その出力は“0”となる。   As described above, since the output of the NOT circuit 102 is “0”, the outputs of the AND circuits 104 to 106 are “0”, and “0” is input to the input terminals D of the D-FFs 81 to 83. . Further, the output of the OR circuit 95 becomes “0”, and the output of the NAND circuit 97 to which this “0” is inputted becomes “1”. Further, “1” output from the NAND circuit 96 is input to the OR circuits 92 to 94, and the output thereof is “1”. Therefore, the output of the NAND circuit 99 to which “1” output from the OR circuits 92 to 94 is input is “0”. Then, “0” output from the NAND circuit 99 and “1” output from the output terminal Q of the D-FF 84 are input to the XOR circuit 108, and the output becomes “1”. The NAND circuit 101 receives “1” output from the OR circuit 91, “1” output from the NAND circuit 97, and “1” output from the XOR circuit 108. It becomes “0”.

また、XOR回路112には、D−FF84の反転出力端子/Qから出力される“0”と、U/D信号“0”とが入力され、その出力は“0”となり、NAND回路100の出力は“1”となる。そして、XNOR回路115には、NAND回路100から出力される“1”と、D−FF85の出力端子Qから出力される“0”とが入力され、その出力は“0”となる。そして、AND回路107には、XNOR回路115から出力される“0”が入力され、その出力は“0”となる。つまり、D−FF84,85の入力端子Dに“0”が入力される。   Further, “0” output from the inverting output terminal / Q of the D-FF 84 and the U / D signal “0” are input to the XOR circuit 112, and the output becomes “0”. The output is “1”. The XNOR circuit 115 receives “1” output from the NAND circuit 100 and “0” output from the output terminal Q of the D-FF 85, and outputs “0”. Then, “0” output from the XNOR circuit 115 is input to the AND circuit 107, and the output becomes “0”. That is, “0” is input to the input terminals D of the D-FFs 84 and 85.

したがって、D−FF81〜85に次のクロックが入力されると、カウンタ12のカウンタ値は(00000)となる。すなわち、カウンタ制御回路13は、4W1−2相励磁モードから1−2相励磁モードへの切り替えを検出した際に、切り替え前のステップ位置が1−2相励磁モードのステップ位置である場合には、次のクロックのタイミングで、そのステップ位置から1−2相励磁モードに従ってカウンタ値の更新を開始する。   Therefore, when the next clock is input to the D-FFs 81 to 85, the counter value of the counter 12 becomes (00000). That is, when the counter control circuit 13 detects the switching from the 4W1-2 phase excitation mode to the 1-2 phase excitation mode and the step position before the switching is the step position of the 1-2 phase excitation mode, At the next clock timing, the counter value is updated from the step position according to the 1-2 phase excitation mode.

次に、4W1−2相励磁モードから2相励磁モードに切り替えられた場合について説明する。2相励磁モードに切り替わると、NAND回路96の出力が“1”となり、1−2相励磁モードの場合と同様に、D−FF81〜83の入力端子Dに“0”が入力される。また、OR回路91の出力が“0”となるため、NAND回路101の出力が“1”、AND回路107の出力が“0”となる。つまり、D−FF84の入力端子Dに“1”、D−FF85の入力端子Dに“0”が入力される。したがって、D−FF81〜85に次のクロックが入力されると、カウンタ12のカウンタ値は(01000)となる。そして、その後もカウンタ値は(01000)のままとなる。すなわち、カウンタ制御回路13は、4W1−2相励磁モードから2相励磁モードへの切り替えを検出すると、次のクロックのタイミングで切り替え後の2相励磁モードにおけるステップ位置にカウンタ値を更新する。   Next, a case where the 4W1-2 phase excitation mode is switched to the two phase excitation mode will be described. When the mode is switched to the two-phase excitation mode, the output of the NAND circuit 96 becomes “1”, and “0” is input to the input terminals D of the D-FFs 81 to 83 as in the case of the 1-2 phase excitation mode. Since the output of the OR circuit 91 is “0”, the output of the NAND circuit 101 is “1” and the output of the AND circuit 107 is “0”. That is, “1” is input to the input terminal D of the D-FF 84 and “0” is input to the input terminal D of the D-FF 85. Therefore, when the next clock is input to the D-FFs 81 to 85, the counter value of the counter 12 becomes (01000). After that, the counter value remains (01000). That is, when detecting the switching from the 4W1-2 phase excitation mode to the two phase excitation mode, the counter control circuit 13 updates the counter value to the step position in the two phase excitation mode after switching at the timing of the next clock.

(2)1−2相励磁モード
次に、1−2相励磁モードの場合について説明する。例えば、カウンタ12のカウンタ値が(10000)、U/D信号が“0”である場合に、次のクロックが入力された場合の動作について確認する。1−2相励磁モードの場合、前述したように、AND回路104〜106の出力は常に“0”となり、カウンタ12の下位3ビットは“0”となる。したがって、変化するのはカウンタ12の上位2ビットのみである。
(2) 1-2 Phase Excitation Mode Next, the case of the 1-2 phase excitation mode will be described. For example, when the counter value of the counter 12 is (10000) and the U / D signal is “0”, the operation when the next clock is input is confirmed. In the 1-2 phase excitation mode, as described above, the outputs of the AND circuits 104 to 106 are always “0”, and the lower 3 bits of the counter 12 are “0”. Therefore, only the upper 2 bits of the counter 12 change.

また、1−2相励磁モードの場合、前述したように、NAND回路99の出力は“0”である。そして、XOR回路108には、NAND回路99から出力される“0”と、D−FF84の出力端子Qから出力される“0”とが入力され、その出力は“0”となる。そして、NAND回路101には、XOR回路108から出力される“0”が入力され、その出力は“1”となる。   In the case of the 1-2 phase excitation mode, as described above, the output of the NAND circuit 99 is “0”. Then, “0” output from the NAND circuit 99 and “0” output from the output terminal Q of the D-FF 84 are input to the XOR circuit 108, and the output becomes “0”. Then, “0” output from the XOR circuit 108 is input to the NAND circuit 101, and the output becomes “1”.

また、XOR回路112には、D−FF84の反転出力端子/Qから出力される“1”と、U/D信号“0”とが入力され、その出力は“1”となる。したがって、NAND回路100の出力は“0”となる。そして、XNOR回路115には、NAND回路100から出力される“0”と、D−FF85の出力端子Qから出力される“1”とが入力され、その出力は“0”となり、AND回路107の出力も“0”となる。つまり、D−FF84の入力端子Dに“1”、D−FF85の入力端子Dに“0”が入力される。   The XOR circuit 112 receives “1” output from the inverting output terminal / Q of the D-FF 84 and the U / D signal “0”, and outputs “1”. Therefore, the output of the NAND circuit 100 is “0”. Then, “0” output from the NAND circuit 100 and “1” output from the output terminal Q of the D-FF 85 are input to the XNOR circuit 115, and the output becomes “0”. Is also “0”. That is, “1” is input to the input terminal D of the D-FF 84 and “0” is input to the input terminal D of the D-FF 85.

したがって、D−FF81〜85に次のクロックが入力されると、カウンタ12のカウンタ値は(01000)となり、(10000)から8だけカウントダウンされている。   Therefore, when the next clock is input to the D-FFs 81 to 85, the counter value of the counter 12 becomes (01000), and is counted down by 8 from (10000).

このような動作により、1−2相励磁モードにおいては、クロックが入力されるたびにカウンタ12のカウンタ値が8ずつカウントダウンまたはカウントアップされている。   By such an operation, in the 1-2 phase excitation mode, the counter value of the counter 12 is counted down or counted up by 8 every time a clock is input.

そして、このように1−2相励磁モードで動作している際に、励磁モードが4W1−2相励磁モードに切り替わると、カウンタ制御回路13は、切り替え前のカウンタ値から、前述した4W1−2相励磁モードの場合の動作を行うこととなる。すなわち、カウンタ制御回路13は、1−2相励磁モードから4W1−2相励磁モードへの切り替えを検出すると、次のクロックのタイミングで、切り替え前のステップ位置から4W1−2相励磁モードに従ってカウンタ値の更新を開始する。   When the excitation mode is switched to the 4W1-2 phase excitation mode while operating in the 1-2 phase excitation mode as described above, the counter control circuit 13 determines the 4W1-2 described above from the counter value before switching. The operation in the phase excitation mode is performed. That is, when the counter control circuit 13 detects the switching from the 1-2 phase excitation mode to the 4W1-2 phase excitation mode, the counter value is determined according to the 4W1-2 phase excitation mode from the step position before switching at the timing of the next clock. Start updating.

また、1−2相励磁モードで動作している際に、励磁モードが2相励磁モードに切り替わると、カウンタ制御回路13は、前述した4W1−2相励磁モードから2相励磁モードへの切り替えの場合と同様の制御を行う。すなわち、カウンタ制御回路13は、1−2相励磁モードから2相励磁モードへの切り替えを検出すると、次のクロックのタイミングで切り替え後の2相励磁モードにおけるステップ位置にカウンタ値を更新する。   When the excitation mode is switched to the two-phase excitation mode while operating in the 1-2 phase excitation mode, the counter control circuit 13 switches the 4W1-2 phase excitation mode to the two-phase excitation mode. The same control as in the case is performed. That is, when detecting the switching from the 1-2 phase excitation mode to the two phase excitation mode, the counter control circuit 13 updates the counter value to the step position in the switched two phase excitation mode at the timing of the next clock.

(3)2相励磁モード
次に、2相励磁モードの場合について説明する。2相励磁モードの場合、前述したように、カウンタ制御回路13は、カウンタ12のカウンタ値を(01000)に固定する。そして、2相励磁モードで動作している際に、励磁モードが1−2相励磁モードまたは4W1−2相励磁モードに切り替わると、カウンタ制御回路13は、前述した1−2相励磁モードまたは4W1−2相励磁モードの動作を開始する。すなわち、カウンタ制御回路13は、2相励磁モードから1−2相励磁モードまたは4W1−2相励磁モードへの切り替えを検出すると、次のクロックのタイミングで、カウンタ値(01000)から切り替え後の励磁モードに従ってカウンタ値の更新を開始する。
(3) Two-phase excitation mode Next, the case of the two-phase excitation mode will be described. In the two-phase excitation mode, as described above, the counter control circuit 13 fixes the counter value of the counter 12 to (01000). When the excitation mode is switched to the 1-2 phase excitation mode or the 4W1-2 phase excitation mode while operating in the two phase excitation mode, the counter control circuit 13 causes the above-described 1-2 phase excitation mode or 4W1. -Starts the operation in -2 phase excitation mode. That is, when the counter control circuit 13 detects switching from the 2-phase excitation mode to the 1-2 phase excitation mode or the 4W1-2 phase excitation mode, the excitation after switching from the counter value (01000) at the next clock timing. Start updating the counter value according to the mode.

==位置制御回路の動作==
図7は、これまでに説明した位相信号出力回路11、カウンタ12、及びカウンタ制御回路13により構成される位置制御回路1の動作を説明するためのフローチャートである。なお、本フローチャートは、励磁モードが1−2相励磁モードまたは4W1−2相励磁モードに従ってステップ位置が制御される場合の処理を示すものである。
== Operation of position control circuit ==
FIG. 7 is a flowchart for explaining the operation of the position control circuit 1 including the phase signal output circuit 11, the counter 12, and the counter control circuit 13 described so far. This flowchart shows processing when the step position is controlled according to the excitation mode of the 1-2 phase excitation mode or the 4W1-2 phase excitation mode.

位置制御回路1は、クロックが入力されると(S701)、励磁モードの切り替え有無を確認する(S702)。そして、励磁モードが切り替わっていない場合(S702:無)、位置制御回路1は、カウンタ12のカウンタ値がゼロ(“0”(10進))またはFULL(“16”(10進))であるかを確認する(S703)。   When the clock is input (S701), the position control circuit 1 confirms whether or not the excitation mode is switched (S702). If the excitation mode has not been switched (S702: none), the position control circuit 1 indicates that the counter value of the counter 12 is zero (“0” (decimal)) or FULL (“16” (decimal)). (S703).

カウンタ値がゼロでもFULLでもない場合(S703:その他)、位置制御回路1は、FR信号が正転を示しているか逆転を示しているかを確認する(S704)。正転の場合(S704:正転)、位置制御回路1は、位相信号が(正,正)または(負,負)であるかを確認する(S705)。位相信号が(正,正)または(負,負)である場合(S705:YES)、位置制御回路1は、カウンタ12のカウンタ値をカウントダウンし(S706)、カウンタ値を出力する(S707)。また、位相信号が(正,正)でも(負,負)でもない場合(S705:NO)、位置制御回路1は、カウンタ12のカウンタ値をカウントアップし(S708)、カウンタ値を出力する(S707)。   When the counter value is neither zero nor FULL (S703: Other), the position control circuit 1 checks whether the FR signal indicates normal rotation or reverse rotation (S704). In the case of forward rotation (S704: forward rotation), the position control circuit 1 checks whether the phase signal is (positive, positive) or (negative, negative) (S705). When the phase signal is (positive, positive) or (negative, negative) (S705: YES), the position control circuit 1 counts down the counter value of the counter 12 (S706) and outputs the counter value (S707). If the phase signal is neither (positive, positive) nor (negative, negative) (S705: NO), the position control circuit 1 counts up the counter value of the counter 12 (S708) and outputs the counter value ( S707).

FR信号が逆転を示している場合(S704:逆転)、位置制御回路1は、位相信号が(正,正)または(負,負)であるかを確認する(S709)。位相信号が(正,正)または(負,負)である場合(S709:YES)、位置制御回路1は、カウンタ12のカウンタ値をカウントアップし(S708)、カウンタ値を出力する(S707)。また、位相信号が(正,正)でも(負,負)でもない場合(S709:NO)、位置制御回路1は、カウンタ12のカウンタ値をカウントダウンし(S706)、カウンタ値を出力する(S707)。   When the FR signal indicates reverse rotation (S704: reverse rotation), the position control circuit 1 checks whether the phase signal is (positive, positive) or (negative, negative) (S709). When the phase signal is (positive, positive) or (negative, negative) (S709: YES), the position control circuit 1 counts up the counter value of the counter 12 (S708) and outputs the counter value (S707). . If the phase signal is neither (positive, positive) nor (negative, negative) (S709: NO), the position control circuit 1 counts down the counter value of the counter 12 (S706) and outputs the counter value (S707). ).

また、カウンタ値がゼロでもFULLでもない場合(S703:その他)、位置制御回路1は、A相の位相信号及びB相の位相信号を保持したまま(S710,S711)、位相信号を出力する(S712,S713)。   If the counter value is neither zero nor FULL (S703: other), the position control circuit 1 outputs the phase signal while holding the A-phase phase signal and the B-phase phase signal (S710, S711) ( S712, S713).

カウンタ値がゼロの場合(S703:ゼロ)、位置制御回路1は、A相の位相信号を反転し(S714)、B相の位相信号を保持したまま(S711)、位相信号を出力する(S712,S713)。また、この場合、位置制御回路1は、カウンタ12のカウント値をカウントアップし(S708)、カウンタ値を出力する(S707)。そして、カウンタ値がFULLの場合(S703:FULL)、位置制御回路1は、B相の位置信号を反転し(S715)、A相の位相信号を保持したまま(S710)、位相信号を出力する(S713)。また、この場合、位置制御回路1は、カウンタ12のカウンタ値をカウントダウンし(S706)、カウンタ値を出力する(S707)。   When the counter value is zero (S703: zero), the position control circuit 1 inverts the phase signal of the A phase (S714), holds the phase signal of the B phase (S711), and outputs the phase signal (S712). , S713). In this case, the position control circuit 1 counts up the count value of the counter 12 (S708) and outputs the counter value (S707). When the counter value is FULL (S703: FULL), the position control circuit 1 inverts the B-phase position signal (S715) and outputs the phase signal while holding the A-phase phase signal (S710). (S713). In this case, the position control circuit 1 counts down the counter value of the counter 12 (S706), and outputs the counter value (S707).

そして、励磁モードが切り替わった場合(S702:有)、位置制御回路1は、励磁モードが1−2相励磁モードからマイクロステップ駆動である4W1−2相励磁モードへ切り替わったのか、4W1−2相励磁モードから1−2相励磁モードへ切り替わったのかを確認する(S716)。1−2相励磁モードから4W1−2相励磁モードへ切り替わった場合、位置制御回路1は、切り替え前の位相信号及びカウンタ値の状態から、4W1−2相励磁モードでの処理(S703〜S715)を開始する。   When the excitation mode is switched (S702: present), the position control circuit 1 determines whether the excitation mode has been switched from the 1-2 phase excitation mode to the 4W1-2 phase excitation mode that is microstep driving. It is confirmed whether the excitation mode is switched to the 1-2 phase excitation mode (S716). When switching from the 1-2 phase excitation mode to the 4W1-2 phase excitation mode, the position control circuit 1 performs processing in the 4W1-2 phase excitation mode from the state of the phase signal and the counter value before switching (S703 to S715). To start.

4W1−2相励磁モードから1−2相励磁モードへ切り替わった場合、位置制御回路1は、切り替え前のカウンタ値が1−2相励磁モードにおけるステップ位置を示すものであるかどうか確認する(S717)。切り替え前のカウンタ値が1−2相励磁モードにおけるステップ位置を示すものである場合(S717:1−2相位置)、位置制御回路1は、切り替え前の位相信号及びカウンタ値の状態から、4W1−2相励磁モードでの処理(S703〜S715)を開始する。   When the 4W1-2 phase excitation mode is switched to the 1-2 phase excitation mode, the position control circuit 1 checks whether the counter value before switching indicates the step position in the 1-2 phase excitation mode (S717). ). When the counter value before switching indicates the step position in the 1-2 phase excitation mode (S717: 1-2 phase position), the position control circuit 1 determines that 4W1 from the state of the phase signal and counter value before switching. The process (S703 to S715) in the -2-phase excitation mode is started.

切り替え前のカウンタ値が1−2相励磁モードにおけるステップ位置を示すものでない場合(S717:その他)、位置制御回路1は、カウンタ値を2相励磁モードにおけるステップ位置を示す値(01000)に更新し(S718)、カウンタ値を出力する(S707)。また、位置制御回路1は、A相の位相信号及びB相の位相信号は、切り替え前の状態を保持したまま(S710,S711)、位相信号を出力する(S712,S713)。   If the counter value before switching does not indicate the step position in the 1-2 phase excitation mode (S717: other), the position control circuit 1 updates the counter value to a value (01000) indicating the step position in the two phase excitation mode. The counter value is output (S707). In addition, the position control circuit 1 outputs the phase signals (S712, S713) while maintaining the state before the switching of the phase signals of the A phase and the phase signals of the B phase (S710, S711).

つまり、位置制御回路1は、励磁モードが4W1−2相励磁モードから1−2相励磁モードへ切り替わったことを検出すると、位相信号及びカウンタ値を検出時のステップ位置と同位相における1−2相励磁モードのステップ位置に更新して出力する。   That is, when the position control circuit 1 detects that the excitation mode has been switched from the 4W1-2 phase excitation mode to the 1-2 phase excitation mode, the position control circuit 1 has a phase signal of 1-2 at the same phase as the step position at the time of detection. Update to the step position in phase excitation mode and output.

以上、位置制御回路1を含んで構成されるステッピングモータの駆動回路について説明した。前述したように、本実施形態のステッピングモータの駆動回路においては、ステップ角の細かい第1の励磁モード(例えば、4W1−2相励磁モード)からステップ角の粗い第2の励磁モード(例えば、1−2相励磁モード)への切り替えを検出した場合は、検出時のステップ位置と同位相における第2の励磁モードのステップ位置にモータを移動させることができる。したがって、図3に示したように、励磁モードが切り替わった際に発生する正回転及び逆回転の量を従来と比較して減少させることができる。   The stepping motor driving circuit including the position control circuit 1 has been described above. As described above, in the stepping motor drive circuit of the present embodiment, the first excitation mode with a small step angle (for example, 4W1-2 phase excitation mode) to the second excitation mode with a large step angle (for example, 1). -2 phase excitation mode) is detected, the motor can be moved to the step position of the second excitation mode in the same phase as the step position at the time of detection. Therefore, as shown in FIG. 3, the amount of forward rotation and reverse rotation generated when the excitation mode is switched can be reduced as compared with the conventional case.

また、本実施形態のステッピングモータの駆動回路は、第1の励磁モードから第2の励磁モードへの切り替えを検出した際に、検出時のステップ位置が第2の励磁モードのステップ位置である場合には、その位置から第2の励磁モードに従ってモータを回転させる。したがって、このような場合には、励磁モードの切り替えに伴う正回転及び逆回転が全く発生しないこととなる。   In addition, when the stepping motor drive circuit according to the present embodiment detects the switching from the first excitation mode to the second excitation mode, the step position at the time of detection is the step position of the second excitation mode. First, the motor is rotated from that position according to the second excitation mode. Therefore, in such a case, normal rotation and reverse rotation accompanying switching of the excitation mode do not occur at all.

また、本実施形態のステッピングモータの駆動回路は、第2の励磁モードから第1の励磁モードへの切り替えを検出した場合は、検出時の位置から第1の励磁モードに従ってモータを回転させる。したがって、このような場合には、励磁モードの切り替えに伴う正回転及び逆回転が全く発生しないこととなる。   Further, when detecting the switching from the second excitation mode to the first excitation mode, the driving circuit for the stepping motor of the present embodiment rotates the motor from the position at the time of detection according to the first excitation mode. Therefore, in such a case, normal rotation and reverse rotation accompanying switching of the excitation mode do not occur at all.

また、本実施形態に示したように、モータのステップ位置を制御する位置信号が、位相信号と、カウンタ値(位相内位置信号)とで構成されている場合においては、位置制御回路1は、第1の励磁モードから第2の励磁モードへの切り替えを検出すると、位相信号は検出時のままとし、カウンタ値は検出時の位相と同位相における第2の励磁モードのステップ位置を示す値に更新する。これにより、励磁モードが切り替わった際に発生する正回転及び逆回転の量を従来と比較して減少させることができる。   As shown in this embodiment, when the position signal for controlling the step position of the motor is composed of a phase signal and a counter value (in-phase position signal), the position control circuit 1 When switching from the first excitation mode to the second excitation mode is detected, the phase signal remains at the time of detection, and the counter value is a value indicating the step position of the second excitation mode at the same phase as the phase at the time of detection. Update. Thereby, the amount of forward rotation and reverse rotation generated when the excitation mode is switched can be reduced as compared with the conventional case.

また、位相信号とカウンタ値とを用いる場合において、位置制御回路1は、カウンタ値が減少更新されてゼロ(第1の値)になったことを検出すると、位相信号を次の位相に更新して出力し、その後、カウンタ値を増加更新する。また、位置制御回路1は、カウンタ値が増加更新されてFULL(第2の値)になったことを検出すると、位相信号を次の位相に更新して出力し、その後、カウンタ値を減少更新する。つまり、本実施形態のステッピングモータの駆動回路は、励磁モードに従ってモータを回転させることができる。   In addition, when using the phase signal and the counter value, the position control circuit 1 updates the phase signal to the next phase when detecting that the counter value is decreased and updated to zero (first value). And then increment and update the counter value. Further, when the position control circuit 1 detects that the counter value is increased and updated to become FULL (second value), the position control circuit 1 updates and outputs the phase signal to the next phase, and then decreases and updates the counter value. To do. That is, the stepping motor drive circuit of the present embodiment can rotate the motor in accordance with the excitation mode.

そして、位相信号とカウンタ値とを用いる場合においては、本実施形態に示したように、位置制御回路1を、位相信号出力回路11と、カウンタ12及びカウンタ制御回路13(位相内位置信号出力回路)とによって構成することが可能である。   When the phase signal and the counter value are used, as shown in the present embodiment, the position control circuit 1 is replaced with the phase signal output circuit 11, the counter 12, and the counter control circuit 13 (in-phase position signal output circuit). ).

以上、本発明の実施形態について説明したが、上記実施形態は本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。本発明は、その趣旨を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物も含まれる。   As mentioned above, although embodiment of this invention was described, the said embodiment is for making an understanding of this invention easy, and is not for limiting and interpreting this invention. The present invention can be changed and improved without departing from the gist thereof, and the present invention includes equivalents thereof.

例えば、本実施形態においては、励磁モードとして、2相励磁モード、1−2相励磁モード、4W1−2相励磁モードの3つのみについて説明したが、2W1−2相励磁モード等の別の励磁モードについても同様に制御することが可能である。   For example, in the present embodiment, only three excitation modes, ie, a two-phase excitation mode, a 1-2 phase excitation mode, and a 4W1-2 phase excitation mode have been described. The mode can be similarly controlled.

本発明の一実施形態であるステッピングモータの駆動回路の構成を示すブロック図である。It is a block diagram which shows the structure of the drive circuit of the stepping motor which is one Embodiment of this invention. 各励磁モードにおけるステップ位置の遷移を示す図である。It is a figure which shows the transition of the step position in each excitation mode. 第1相における、励磁モード変更時のステップ位置の遷移を示す図である。It is a figure which shows the transition of the step position at the time of the excitation mode change in the 1st phase. Hブリッジ回路の構成を示す図である。It is a figure which shows the structure of an H bridge circuit. 位相信号出力回路の構成の一例を示す回路図である。It is a circuit diagram which shows an example of a structure of a phase signal output circuit. カウンタ及びカウンタ制御回路の構成の一例を示す回路図である。It is a circuit diagram which shows an example of a structure of a counter and a counter control circuit. 位置制御回路の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement of a position control circuit. 従来のステッピングモータの駆動回路における、ステップ位置の遷移を示す図である。It is a figure which shows the transition of the step position in the drive circuit of the conventional stepping motor. 従来のステッピングモータの駆動回路を示す図である。It is a figure which shows the drive circuit of the conventional stepping motor.

符号の説明Explanation of symbols

1 位置制御回路 2 駆動制御回路
11 位相信号出力回路 12 カウンタ
13 カウンタ制御回路 21A,21B 変換回路
22A,22B コンパレータ 23A,23B 電流制御回路
24A,24B Hブリッジ回路 25A,25B 抵抗
30A,30B コイル 41〜44 N型MOSFET
51,52 D型フリップフロップ 55 ゼロ検出回路
56 FULL検出回路 61〜72 NAND回路
73,74 XOR回路 75 OR回路
76〜78 NOT回路 81〜85 D型フリップフロップ
91〜95 OR回路 96〜101 NAND回路
102,103 NOT回路 104〜107 AND回路
108〜112 XOR回路 113〜115 XNOR回路
DESCRIPTION OF SYMBOLS 1 Position control circuit 2 Drive control circuit 11 Phase signal output circuit 12 Counter 13 Counter control circuit 21A, 21B Conversion circuit 22A, 22B Comparator 23A, 23B Current control circuit 24A, 24B H bridge circuit 25A, 25B Resistance 30A, 30B Coil 41- 44 N-type MOSFET
51, 52 D-type flip-flop 55 Zero detection circuit 56 FULL detection circuit 61-72 NAND circuit 73, 74 XOR circuit 75 OR circuit 76-78 NOT circuit 81-85 D-type flip-flop 91-95 OR circuit 96-101 NAND circuit 102, 103 NOT circuit 104-107 AND circuit 108-112 XOR circuit 113-115 XNOR circuit

Claims (6)

ステッピングモータのステップ位置を指示する位置信号を、励磁モード信号及びクロックに応じて更新して出力する位置制御回路と、
前記位置制御回路から出力される前記位置信号に基づいて、前記ステッピングモータの駆動を制御する駆動制御回路と、
を備えるステッピングモータの駆動回路であって、
前記位置制御回路は、
前記励磁モード信号が第1の励磁モードから前記第1の励磁モードよりステップ角の粗い第2の励磁モードへ切り替わったことを検出すると、前記位置信号を、当該検出時のステップ位置と同位相における前記第2の励磁モードのステップ位置に更新して出力し、その後、前記クロックに応じて前記第2の励磁モードに従って前記位置信号を更新して出力すること、
を特徴とするステッピングモータの駆動回路。
A position control circuit that updates and outputs a position signal indicating the step position of the stepping motor according to the excitation mode signal and the clock;
A drive control circuit for controlling the driving of the stepping motor based on the position signal output from the position control circuit;
A stepping motor drive circuit comprising:
The position control circuit includes:
When it is detected that the excitation mode signal has switched from the first excitation mode to the second excitation mode having a step angle coarser than that of the first excitation mode, the position signal is in the same phase as the step position at the time of detection. Updating and outputting the step position of the second excitation mode, and then updating and outputting the position signal according to the second excitation mode according to the clock;
Stepping motor drive circuit characterized by the above.
請求項1に記載のステッピングモータの駆動回路であって、
前記位置制御回路は、
前記検出時のステップ位置が前記第2の励磁モードのステップ位置である場合、前記位置信号を、当該検出時のステップ位置から前記クロックに応じて前記第2の励磁モードに従って更新して出力すること、
を特徴とするステッピングモータの駆動回路。
A stepping motor drive circuit according to claim 1,
The position control circuit includes:
If the step position at the time of detection is the step position of the second excitation mode, the position signal is updated from the step position at the time of detection according to the clock and output according to the second excitation mode. ,
Stepping motor drive circuit characterized by the above.
請求項1に記載のステッピングモータの駆動回路であって、
前記位置制御回路は、
前記励磁モード信号が前記第2の励磁モードから前記第1の励磁モードへ切り替わったことを検出すると、前記位置信号を、当該検出時のステップ位置から前記クロックに応じて前記第1の励磁モードに従って更新して出力すること、
を特徴とするステッピングモータの駆動回路。
A stepping motor drive circuit according to claim 1,
The position control circuit includes:
When it is detected that the excitation mode signal has switched from the second excitation mode to the first excitation mode, the position signal is changed from the step position at the time of detection according to the clock according to the first excitation mode. Update and output,
Stepping motor drive circuit characterized by the above.
請求項1に記載のステッピングモータの駆動回路であって、
前記位置信号には、ステップ位置の位相を示す位相信号と、前記位相内におけるステップ位置を示す位相内位置信号とが含まれており、
前記位置制御回路は、
前記励磁モード信号が前記第1の励磁モードから前記第2の励磁モードへ切り替わったことを検出すると、当該検出時の前記位相信号と、当該検出時のステップ位置と同位相における前記第2の励磁モードのステップ位置に更新した前記位相内位置信号と、を出力し、その後、前記クロックに応じて前記第2の励磁モードに従って前記位置信号及び前記位相内位置信号を更新して出力すること、
を特徴とするステッピングモータの駆動回路。
A stepping motor drive circuit according to claim 1,
The position signal includes a phase signal indicating the phase of the step position and an in-phase position signal indicating the step position within the phase,
The position control circuit includes:
When it is detected that the excitation mode signal is switched from the first excitation mode to the second excitation mode, the phase signal at the time of detection and the second excitation at the same phase as the step position at the time of detection. Output the position signal in phase updated to the step position of the mode, and then update and output the position signal and position signal in phase according to the second excitation mode according to the clock,
Stepping motor drive circuit characterized by the above.
請求項4に記載のステッピングモータの駆動回路であって、
前記位置制御回路は、
前記位相内位置信号が減少更新されて第1の値となったことを検出すると、前記位相信号を次の位相に更新して出力し、その後、前記励磁モード信号及び前記クロックに応じて前記位相内位置信号を増加更新して出力し、
前記位相内位置信号が増加更新されて第2の値となったことを検出すると、前記位相信号を次の位相に更新して出力し、その後、前記励磁モード信号及び前記クロックに応じて前記位相内位置信号を減少更新して出力すること、
を特徴とするステッピングモータの駆動回路。
A stepping motor drive circuit according to claim 4,
The position control circuit includes:
When it is detected that the in-phase position signal is reduced and updated to the first value, the phase signal is updated to the next phase and output, and then the phase is changed according to the excitation mode signal and the clock. Increase and output the internal position signal,
When it is detected that the in-phase position signal is updated to become the second value, the phase signal is updated to the next phase and output, and then the phase is changed according to the excitation mode signal and the clock. Reducing and updating the internal position signal,
Stepping motor drive circuit characterized by the above.
請求項5に記載のステッピングモータの駆動回路であって、
前記位置制御回路は、
前記位相信号を出力する位相信号出力回路と、
前記位相内位置信号を出力する位相内位置信号出力回路と、を有し、
前記位相信号出力回路は、
前記位相内位置信号出力回路から出力される前記位相内位置信号が前記第1の値となったことを検出すると、前記位相信号を次の位相に更新して出力するとともに、前記位相内位置信号の増加を指示する増加信号を出力し、
前記位相内位置信号出力回路から出力される前記位相内位置信号が前記第2の値となったことを検出すると、前記位相信号を次の位相に更新して出力するとともに、前記位相内位置信号の減少を指示する減少信号を出力し、
前記位相内位置信号出力回路は、
前記位相信号出力回路から出力される前記増加信号または前記減少信号に基づいて、前記位相内位置信号を、前記励磁モード及び前記クロックに応じて増加更新または減少更新して出力すること、
を特徴とするステッピングモータの駆動回路。

A stepping motor drive circuit according to claim 5,
The position control circuit includes:
A phase signal output circuit for outputting the phase signal;
An in-phase position signal output circuit for outputting the in-phase position signal,
The phase signal output circuit is
When it is detected that the in-phase position signal output from the in-phase position signal output circuit has reached the first value, the phase signal is updated to the next phase and output, and the in-phase position signal Output an increase signal instructing the increase in
When it is detected that the in-phase position signal output from the in-phase position signal output circuit has reached the second value, the phase signal is updated to the next phase and output, and the in-phase position signal Output a decrease signal to indicate
The in-phase position signal output circuit is
Based on the increase signal or the decrease signal output from the phase signal output circuit, the in-phase position signal is output with an increase update or decrease update according to the excitation mode and the clock,
Stepping motor drive circuit characterized by the above.

JP2005103751A 2005-03-31 2005-03-31 Stepping motor drive circuit Expired - Fee Related JP4796780B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005103751A JP4796780B2 (en) 2005-03-31 2005-03-31 Stepping motor drive circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005103751A JP4796780B2 (en) 2005-03-31 2005-03-31 Stepping motor drive circuit

Publications (2)

Publication Number Publication Date
JP2006288056A true JP2006288056A (en) 2006-10-19
JP4796780B2 JP4796780B2 (en) 2011-10-19

Family

ID=37409386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005103751A Expired - Fee Related JP4796780B2 (en) 2005-03-31 2005-03-31 Stepping motor drive circuit

Country Status (1)

Country Link
JP (1) JP4796780B2 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931356A (en) * 2009-06-23 2010-12-29 三洋电机株式会社 Drive circuit
JP2011010388A (en) * 2009-06-23 2011-01-13 Rohm Co Ltd Motor drive device and electronic device that uses the same
JP2012075196A (en) * 2010-09-27 2012-04-12 On Semiconductor Trading Ltd Drive circuit
US8179081B2 (en) 2009-05-13 2012-05-15 Sanyo Semiconductror Co., Ltd. Driver circuit
US8497653B2 (en) 2009-01-28 2013-07-30 Semiconductor Components Industries, Llc Driver circuit for driving a stepping motor
US8508177B2 (en) 2010-06-17 2013-08-13 Panasonic Corporation Stepping motor drive device
US8508175B2 (en) 2009-09-18 2013-08-13 Semiconductor Components Industries, Llc Driver circuit
US8604744B2 (en) 2009-12-28 2013-12-10 Semiconductor Components Industries, Llc Motor drive circuit for rotating a rotor by supplying the currents to two coils
US8648557B2 (en) 2010-09-30 2014-02-11 On Semiconductor Trading, Ltd. Drive control signal generating circuit
US8823310B2 (en) 2010-08-31 2014-09-02 Brother Kogyo Kabushiki Kaisha Stepping motor controller and image-reading device
US8890447B2 (en) 2010-09-27 2014-11-18 Semiconductor Components Industries, Llc Startup control circuit of drive circuit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04265697A (en) * 1991-02-20 1992-09-21 Chinon Ind Inc Controller for step motor
JPH07274591A (en) * 1994-03-31 1995-10-20 Sanyo Electric Co Ltd Drive circuit for stepping motor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04265697A (en) * 1991-02-20 1992-09-21 Chinon Ind Inc Controller for step motor
JPH07274591A (en) * 1994-03-31 1995-10-20 Sanyo Electric Co Ltd Drive circuit for stepping motor

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8497653B2 (en) 2009-01-28 2013-07-30 Semiconductor Components Industries, Llc Driver circuit for driving a stepping motor
US9356545B2 (en) 2009-01-28 2016-05-31 Semiconductor Components Industries, Llc Driver circuit and method
US8179081B2 (en) 2009-05-13 2012-05-15 Sanyo Semiconductror Co., Ltd. Driver circuit
CN101931356A (en) * 2009-06-23 2010-12-29 三洋电机株式会社 Drive circuit
US8283885B2 (en) 2009-06-23 2012-10-09 Semiconductor Components Industries, Llc Driver circuit
JP2011010388A (en) * 2009-06-23 2011-01-13 Rohm Co Ltd Motor drive device and electronic device that uses the same
US8508175B2 (en) 2009-09-18 2013-08-13 Semiconductor Components Industries, Llc Driver circuit
US8810185B2 (en) 2009-09-18 2014-08-19 Semiconductor Components Industries, Llc Drive circuit and method
US8604744B2 (en) 2009-12-28 2013-12-10 Semiconductor Components Industries, Llc Motor drive circuit for rotating a rotor by supplying the currents to two coils
US8508177B2 (en) 2010-06-17 2013-08-13 Panasonic Corporation Stepping motor drive device
US8823310B2 (en) 2010-08-31 2014-09-02 Brother Kogyo Kabushiki Kaisha Stepping motor controller and image-reading device
US8476850B2 (en) 2010-09-27 2013-07-02 On Semiconductor Trading, Ltd. Drive circuit
JP2012075196A (en) * 2010-09-27 2012-04-12 On Semiconductor Trading Ltd Drive circuit
US8890447B2 (en) 2010-09-27 2014-11-18 Semiconductor Components Industries, Llc Startup control circuit of drive circuit
US8648557B2 (en) 2010-09-30 2014-02-11 On Semiconductor Trading, Ltd. Drive control signal generating circuit

Also Published As

Publication number Publication date
JP4796780B2 (en) 2011-10-19

Similar Documents

Publication Publication Date Title
JP4796780B2 (en) Stepping motor drive circuit
CN1199344C (en) Driving device of electric machine without sensor
JP4837354B2 (en) PWM signal generation device, PWM signal generation method, motor control device, and motor control method
US10084400B2 (en) Motor driving device and motor system
JP2006109579A (en) Motor drive unit and drive method
JP6585782B2 (en) Apparatus, step motor driving method
JP2002199778A (en) Motor drive
US9602036B2 (en) Motor speed curve control circuit and moter thereof
US8461795B2 (en) Motor drive device and electronic device that uses the same
JP4890138B2 (en) Motor drive circuit and electronic device
JP6186726B2 (en) PWM signal generation circuit, printer, and PWM signal generation method
JP2007151356A (en) Circuit and method for motor control
WO2002054573A2 (en) Vibration motor and apparatus using the same
JP4976869B2 (en) Motor drive circuit and method using discrete time oscillator
US20190348935A1 (en) Motor driving apparatus and motor system
JP4678668B2 (en) Stepping motor drive circuit and stepping motor apparatus using the same
JP2021072756A (en) Drive device, short circuit detection method, and computer program
EP0769851A2 (en) Digital locked loop
CN116633214B (en) Micro-step driving circuit and method for stepping motor system
JP4243031B2 (en) Soft start circuit for brushless motor
JP2010172056A (en) Speed pattern generating apparatus
CN214267365U (en) Linear starting controller of electric vehicle
JP2001025278A (en) Control device for brushless motor having instructed changing function for number of revolutions and brushless motor controller
US20140167667A1 (en) Motor driving apparatus and method
WO2021005654A1 (en) A/d conversion circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101018

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101026

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101224

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20110531

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110801

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140805

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140805

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

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

Free format text: PAYMENT UNTIL: 20140805

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees