Driving circuit and method for stepping motor

11264926 · 2022-03-01

Assignee

Inventors

Cpc classification

International classification

Abstract

Excitation position is changed in accordance with an external clock. The state of a full bridge circuit including four transistors connected to a coil of a stepping motor, is controlled in accordance with the excitation position. At the time of transition from the excitation position at which coil current that flows in the coil is nonzero to the excitation position at which the coil current is zero, a switch is made to (i) the inverse state where the on or off state of each of the four transistors before the transition is inverted, and then a switch is made to (ii) the off state where all the four transistors are off.

Claims

1. A driving circuit for a stepping motor, comprising: a logic circuit structured to switch a state of a full bridge circuit including four transistors connected to a coil of the stepping motor, in accordance with an external clock; and a zero-current detection circuit, wherein when transition is made from an excitation position at which coil current that flows in the coil is nonzero to an excitation position at which the coil current is zero, the logic circuit switches the full bridge circuit connected to the coil to (i) an inverse state where an on or off state of each of the four transistors before the transition is inverted, and then switches the full bridge circuit to (ii) an off state where all the four transistors are off, wherein the zero-current detection circuit structured to assert a zero-current detection signal when the coil current falls below a predetermined threshold value, wherein the response to the assertion of the zero-current detection signal, the logic circuit switches the full bridge circuit from the inverse state to the off state, and wherein the zero-current detection circuit includes a comparator structured to compare a current detection signal corresponding to a voltage drop across a detection resistor provided in the full bridge circuit, with a threshold voltage.

2. The driving circuit according to claim 1, wherein the driving circuit is monolithically integrated on one semiconductor substrate.

3. Electronic equipment comprising: a stepping motor; and the driving circuit according to claim 1, the driving circuit being structured to drive the stepping motor.

4. A driving circuit for a stepping motor, comprising: a logic circuit structured to switch a state of a full bridge circuit including four transistors connected to a coil of the stepping motor, in accordance with an external clock; a current-value setting circuit structured to generate a current set value; and a constant-current chopper circuit, wherein when transition is made from a excitation position at which coil current that flows in the coil is nonzero to an excitation position at which the coil current is zero, the logic circuit switches the full bridge circuit connected to the coil to (i) an inverse state where an on or off state of each of the four transistors before the transition is inverted, and then switches the full bridge circuit to (ii) an off state where all the four transistors are off, wherein the constant-current chopper circuit is structured to generate a pulse modulation single pulse-modulated such that a detection value of the coil current comes close to a target amount based on the current set value, and wherein in accordance with the pulse modulation signal, the logic circuit switches the two transistors of one leg of the full bridge circuit.

5. The driving circuit according to claim 4, wherein the constant-current chopper circuit includes: a comparator structured to compare the detection value of the coil current with a threshold value based on the current set value; an oscillator structured to oscillate at a predetermined frequency; and a flip-flop structured to output the pulse modulation signal that transitions to off-level in accordance with an output of the comparator and transitions to on-level in accordance with an output of the oscillator.

6. Electronic equipment comprising: a stepping motor; and the driving circuit according to claim 4, the driving circuit being structured to drive the stepping motor.

7. A driving method for a stepping motor, comprising: changing excitation position in accordance with an external clock; controlling a state of a full bridge circuit including four transistors connected to a coil of the stepping motor, in accordance with the excitation position; making a switch to, when transition is made from the excitation position at which coil current that flows in the coil is nonzero to the excitation position at which the coil current is zero, (i) an inverse state where an on or off state of each of the four transistors before the transition is inverted, and then making a switch to (ii) an off state where all the four transistors are off, and asserting a zero-current detection signal when the coil current falls below a predetermined threshold value; and switching the full bridge circuit from the inverse state to the off state in response to the asserting the zero-current detection signal.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) Embodiments will now be described, by way of example only, with reference to the accompanying drawings which are meant to be exemplary, not limiting, and wherein like elements are numbered alike in several Figures, in which:

(2) FIG. 1 is a block diagram of a motor system including a conventional stepping motor and a driving circuit therefor;

(3) FIG. 2A explanatorily illustrates excitation position, and FIG. 2B is a waveform chart of the operation of the driving circuit in 1-2 phase excitation;

(4) FIG. 3A illustrates the state of a full bridge circuit and current I.sub.OUT1 at excitation position #1, and FIG. 3B illustrates the state of the full bridge circuit and the current I.sub.OUT1 at excitation position #2;

(5) FIG. 4 is a waveform chart of the coil current I.sub.OUT1;

(6) FIG. 5 is a block diagram of a motor system including a driving circuit according to an embodiment;

(7) FIG. 6 is a waveform chart of the operation of the driving circuit of FIG. 5;

(8) FIGS. 7A to 7C illustrate the state of a full bridge circuit and coil current at the time of transition from excitation position #1 to excitation position #2;

(9) FIG. 8 is a waveform chart of the coil current;

(10) FIG. 9 is a circuit diagram of an exemplary configuration of the driving circuit;

(11) FIG. 10 is a waveform chart of the operation of the driving circuit of FIG. 9;

(12) FIG. 11 illustrates another exemplary configuration of a current-value setting circuit;

(13) FIGS. 12A to 12C are perspective views of exemplary types of electronic equipment including the driving circuit; and

(14) FIGS. 13A and 13B explanatorily illustrate quarter-step drive.

DETAILED DESCRIPTION OF THE INVENTION

(15) The invention will now be described based on preferred embodiments which do not intend to limit the scope of the present invention but exemplify the invention. All of the features and the combinations thereof described in the embodiment are not necessarily essential to the invention.

(16) In the present specification, “the state where member A is connected with member B” includes a case where member A and member B are physically directly connected together and a case where member A and member B are indirectly connected together through another member having no substantial influence on the state of electrical connection therebetween or causing no deterioration in any function or effect due to the coupling therebetween.

(17) Similarly, “the state where member C is provided between member A and member B” includes a case where member A and member C or member B and member C are directly connected together and a case where member A and member C or member B and member C are indirectly connected together through another member having no substantial influence on the state of electrical connection therebetween or causing no deterioration in any function or effect due to the coupling therebetween.

(18) The vertical and horizontal axes of each waveform chart or timing chart for reference in the present specification are appropriately enlarged or reduced in size for easy understanding. In addition, each illustrated waveform is simplified, overdrawn, or emphasized for easy understanding.

(19) FIG. 5 is a block diagram of a motor system 100 including a driving circuit 200 according to an embodiment. The driving circuit 200 together with a stepping motor 102 and a host controller 2 are included in the motor system 100. The stepping motor 102 may be any of a permanent magnet (PM) type stepping motor, a variable reluctance (VR) type stepping motor, and a hybrid (HB) type stepping motor.

(20) The driving circuit 200 has an input pin IN to which an input clock CLK is input from the host controller 2. The driving circuit 200 has a direction-instructing pin DIR to which a direction-instructing signal DIR instructing clockwise rotation (CW) or counterclockwise rotation (CCW) is input.

(21) The driving circuit 200 rotates a rotor in the stepping motor 102 by a predetermined angle in the direction corresponding to the direction-instructing signal DIR every time the input clock CLK is input.

(22) The driving circuit 200 including full bridge circuits 202_1 and 202_2, a current-value setting circuit 210, constant-current chopper circuits 250_1 and 250_2, and a logic circuit 270, is monolithically integrated on one semiconductor substrate.

(23) In the present embodiment, the stepping motor 102 is a two-phase motor and includes a first coil L1 and a second coil L2. Examples of the driving system of the driving circuit 200 include 1 phase excitation, 1-2 phase excitation, and micro-step drive (e.g., W1-2 phase drive and 2W1-2 phase drive).

(24) The full bridge circuit 202_1 as first channel CH1 is connected with the first coil L1. The full bridge circuit 202_2 as second channel CH2 is connected with the second coil L2.

(25) The full bridge circuits 202_1 and 202_2 each are an H-bridge circuit including four transistors M1 to M4. The transistors M1 to M4 of the full bridge circuit 202_1 are switched on the basis of a control signal CNT1 from the logic circuit 270, so that the voltage V.sub.OUT1 of the first coil L1 (also referred to as first coil voltage) is switched.

(26) The full bridge circuit 202_2 is similar in configuration to the full bridge circuit 202_1. The transistors M1 to M4 thereof are switched on the basis of a control signal CNT2 from the logic circuit 270, so that the voltage V.sub.OUT2 of the second coil L2 (also referred to as second coil voltage) is switched.

(27) For simplification of the following description, the state of the full bridge circuit 202_# (#=1, 2) is defined as follows:

Off State φ.SUB.0

(28) OUT #A and OUT #B are both in high impedance.

(29) All M1 to M4 are off.

First State φ.SUB.1

(30) OUT #A is high (or switched between high and low) and OUT #B is low.

(31) M1 is on and M3 is off. (or switched complementarily)

(32) M2 is off and M4 is on.

Second State φ.SUB.2

(33) OUT #A is low and OUT #B is high (or switched between high and low).

(34) M1 is off and M3 is on.

(35) M2 is on and M4 is off (or switched complementarily).

(36) The current-value setting circuit 210 generates a current set value I.sub.REF. Just after the stepping motor 102 starts up, the current set value I.sub.REF is fixed at a predetermined value I.sub.FULL (referred to as a full-torque set value). The predetermined value I.sub.FULL may be the maximum value in the allowable range of the current set value I.sub.REF. In this case, the stepping motor 102 is driven by full torque. This state is referred to as high torque mode.

(37) In stable rotation of the stepping motor 102, in other words, in a case where desynchronization is less likely to occur, transition is made to high efficiency mode. In the high efficiency mode, the current-value setting circuit 210 adjusts the current set value I.sub.REF by feedback control, resulting in reduction of power consumption.

(38) The full bridge circuits 202_1 and 202_2 each include a current detection resistor R.sub.NF. The voltage drop across the current detection resistor R.sub.NF results in the detection value of coil current I.sub.L. Note that the current detection resistor R.sub.NF is not limited in location, and thus may be provided closer to the power supply or may be provided in series with the coil between two outputs of the bridge circuit.

(39) The constant-current chopper circuit 250_1 generates a pulse modulation signal S.sub.PWM1 pulse-modulated such that the detection value I.sub.NF1 of coil current I.sub.L1 flowing in the first coil L1 comes close to a target amount based on the current set value I.sub.REF during energization of the first coil L1. The constant-current chopper circuit 250_2 generates a pulse modulation signal S.sub.PWM2 pulse-modulated such that the detection value I.sub.NF2 of coil current I.sub.L2 flowing in the second coil L2 comes close to the current set value I.sub.REF during energization of the second coil L2.

(40) In accordance with the pulse modulation signal S.sub.PWM1, the logic circuit 270 switches one output of the full bridge circuit 202_1 connected to the first coil L1. In accordance with the pulse modulation signal S.sub.PWM2 the logic circuit 270 switches one output of the full bridge circuit 202_2 connected to the second coil L2.

(41) Every time the input clock CLK is input, the logic circuit 270 changes excitation position to switch the coil (or the paired coils) to which electric current is supplied. The excitation position is grasped as the combination of the respective coil currents of the first coil L1 and the second coil L2 in amount and direction. The excitation position may transition in accordance with the positive edge of the input clock CLK, may transition in accordance with the negative edge of the input clock CLK, or may transition in accordance with both of the positive and negative edges of the input clock CLK.

(42) At the time of transition from the excitation position at which the coil current I.sub.OUT1 that flows in the coil L1 is nonzero to the excitation position at which the coil current I.sub.OUT1 is zero, the logic circuit 270 switches the full bridge circuit 202_1 connected to the coil L1 to (i) the inverse state where the on or off state of each of the four transistors M1 to M4 before the transition is inverted, and then switches the full bridge circuit 202_1 to (ii) the off state where all the four transistors M1 to M4 are off.

(43) The configuration of the driving circuit 200 has been described above. Next, the operation of the driving circuit 200 will be described.

(44) FIG. 6 is a waveform chart of the operation of the driving circuit 200 of FIG. 5. Herein, the 1-2 phase excitation will be described. Focus on the full bridge circuit 202_1. Focus on the transition from excitation position #1 to excitation position #2. The coil current I.sub.OUT1 is nonzero at excitation position #1, and the coil current I.sub.OUT1 is zero at excitation position #2. At excitation position #1 before the transition, the full bridge circuit 202_1 is in the first state φ.sub.1. At the time of transition to excitation position #2, the full bridge circuit 202_1 is switched once to the second state φ.sub.2 opposite to the first state φ.sub.1, and then is switched to the off state φ.sub.0.

(45) Focus on the transition from excitation position #5 to excitation position #6. The coil current I.sub.OUT1 is nonzero at excitation position #5, and the coil current I.sub.OUT1 is zero at excitation position #6. At excitation position #5 before the transition, the full bridge circuit 202_1 is in the second state φ.sub.2. At the time of transition to excitation position #6, the full bridge circuit 202_1 is switched once to the first state φ.sub.1 opposite to the second state φ.sub.2, and then is switched to the off state φ.sub.0.

(46) Similarly, the full bridge circuit 202_2 is controlled. Focus on the transition from excitation position #3 to excitation position #4. The coil current I.sub.OUT2 is nonzero at excitation position #3, and the coil current I.sub.OUT2 is zero at excitation position #4. At excitation position #3 before the transition, the full bridge circuit 202_2 is in the first state φ.sub.1. At the time of transition to excitation position #4, the full bridge circuit 202_2 is switched once to the second state φ.sub.2 opposite to the first state φ.sub.1, and then is switched to the off state φ.sub.0.

(47) Focus on the transition from excitation position #7 to excitation position #8. The coil current I.sub.OUT2 is nonzero at excitation position #7, and the coil current I.sub.OUT2 is zero at excitation position #8. At excitation position #7 before the transition, the full bridge circuit 202_2 is in the second state φ.sub.2. At the time of transition to excitation position #8, the full bridge circuit 202_2 is switched once to the first state φ.sub.1 opposite to the second state φ.sub.2, and then is switched to the off state φ.sub.0.

(48) FIGS. 7A to 7C illustrate the state of the full bridge circuit 202_1 and the current I.sub.OUT1 at the time of transition from excitation position #1 to excitation position #2. As illustrated in FIG. 7A, at excitation position #1, the full bridge circuit 202_1 is in the first state φ.sub.1, and the current I.sub.OUT1 flows right in the first coil L1. The coil current I.sub.OUT1 at this time is stabilized at a predetermined target amount.

(49) In response to the clock CLK, transition is made to the next excitation position #2. At this time, the full bridge circuit 202_1 is switched once to the second state φ.sub.2 as illustrated in FIG. 7B. The coil current I.sub.OUT1 flows through the transistor M3, the coil L1, and the transistor M2 in this order. In the second state φ.sub.2, a voltage of 0 V is applied at one end of the coil L1 and the power supply voltage V.sub.DD is applied at the other end of the coil L1. Thus, the voltage across the coil L1 is V.sub.DD. The coil current I.sub.OUT1 attenuates proportionally to the voltage across the coil.

(50) After that, as illustrated in FIG. 7C, transition is made to the off state φ.sub.0. If the current I.sub.OUT1 is nonzero, the current I.sub.OUT1 flows through the body diode D3 of the transistor M3, the first coil L1, and the body diode D2 of the transistor M2, and attenuates further, resulting in zero.

(51) FIG. 8 is a waveform chart of the coil current I.sub.OUT1. A solid line indicates the waveform of the driving circuit 200 of FIG. 5, and a broken line indicates a conventional waveform. In the driving circuit 200 of FIG. 5, regardless of the presence or absence of phase switching, the full bridge circuit 202_1 is in the second state φ.sub.2 with the coil current I.sub.OUT1 having any downward slope, so that the electrical state of the coil L1 (voltage thereacross) is constant. Thus, the respective gradients α and β of the downward slopes of the coil current I.sub.OUT1 are identical.

(52) Similarly, in the driving circuit 200 of FIG. 5, regardless of the presence or absence of phase switching, the full bridge circuit 202_1 is in the first state φ.sub.1 with the coil current I.sub.OUT1 having any upward slope, so that the electrical state of the coil L1 (voltage thereacross) is constant. Thus, the respective gradients γ and δ of the upward slopes of the coil current I.sub.OUT1 are identical.

(53) As a result, all the gradients of the slopes are substantially identical (α=β=γ=δ), so that distortion can be reduced in the waveform of the coil current I.sub.OUT1. A similar operation is made to the full bridge circuit 202_2, so that distortion is reduced in the waveform of the coil current I.sub.OUT2. This arrangement enables inhibition of unsteady rotation of the stepping motor.

(54) In addition, in the inverse state just after the transition with phase switching, the coil current I.sub.OUT1 (I.sub.OUT2) flows in the on-state transistors instead of in the body diodes. This arrangement enables reduction of heat generation of the full bridge circuit 202_1 (202_2).

(55) FIG. 9 is a circuit diagram of an exemplary configuration of the driving circuit 200. FIG. 9 illustrates parts related to the first coil L1.

(56) The current-value setting circuit 210 will be described. The current-value setting circuit 210 includes a feedback controller 220, a feedforward controller 240, and a multiplexer 212. The feedforward controller 240 outputs a fixed current set value Ix (=I.sub.FULL) for use in the high torque mode just after start-up. The current set value Ix is set at a large value for prevention of desynchronization.

(57) The feedback controller 220 is active in the high efficiency mode, and outputs a current set value Iy feedback-controlled on the basis of back electromotive force V.sub.BEMF.

(58) In accordance with a mode selection signal MODE, the multiplexer 212 selects one of the two signals Ix and Iy for output as the current set value I.sub.REF.

(59) The feedback controller 220 includes a load-angle estimation unit 222, a subtractor 224, a proportional-integral (PI) controller 226.

(60) The feedback controller 220 generates the current set value Iy such that an estimated load angle φ comes close to a predetermined target angle φ.sub.REF. Specifically, the subtractor 224 generates the error ERR between a detection value cos φ corresponding to the load angle φ and a target value cos(φ.sub.REF) for the detection value cos φ. The PI controller 226 performs PI control arithmetic such that the error ERR becomes zero, to generate the current set value Iy. The processing of the feedback controller 220 can be achieved by an analog circuit including an error amplifier.

(61) The constant-current chopper circuit 250_1 includes a D/A converter 252, a PWM comparator 254, an oscillator 256, and a flip-flop 258. The D/A converter 252 converts the current set value I.sub.REF into analog voltage V.sub.REF. The PWM comparator 254 compares a feedback signal I.sub.NF1 with reference voltage V.sub.REF, and asserts an off-signal S.sub.OFF (set to high) when I.sub.NF1>V.sub.REF is satisfied The oscillator 256 generates a periodic on-signal S.sub.ON that regulates chopping frequency. The flip-flop 258 outputs a PWM signal S.sub.PWM1 that transitions to on-level (e.g., high) in accordance with the on-signal S.sub.ON and transitions to off-level (e.g., low) in accordance with the off-signal S.sub.OFF.

(62) A back-electromotive-force detection circuit 230 detects back electromotive force V.sub.BEMF1 (V.sub.BEMF2) across the coil L1 (L2) of the stepping motor 102. The detecting method for the back electromotive force is not particularly limited, and thus a publicly known technology may be used. In general, for acquisition of the back electromotive force, with a detection window (detection section) set and with both ends of the coil in high impedance, the voltage of the coil is sampled. For example, in the 1 phase excitation or 1-2 phase excitation, the back electromotive force V.sub.BEMF1 (V.sub.BEMF2) can be measured every excitation position (#2, #4, #6, and #8 of FIGS. 2A and 2B) at which high impedance occurs at one end of the coil to be monitored (output of the bridge circuit), namely, every predetermined excitation position.

(63) A rotational-speed detection circuit 232 acquires the rotational speed (angular velocity ω) of the stepping motor 102, to generate a detection signal indicating the rotational speed ω. For example, the rotational-speed detection circuit 232 may measure the cycle T (=2π/ω) proportional to the reciprocal of the rotational speed ω and output the cycle T as the detection signal. With no desynchronization, the frequency (cycle) of an input pulse IN is proportional to the rotational speed (cycle) of the stepping motor 102. Therefore, the rotational-speed detection circuit 232 may measure the cycle of the input pulse IN or the cycle of an internal signal generated on the basis of the input pulse IN, as the detection signal.

(64) The load-angle estimation unit 222 estimates the load angle φ, on the basis of the back electromotive force V.sub.BEMF and the rotation speed ω. The load angle φ corresponds to the difference between a current vector determined by the driving current that flows in the first coil L1 (namely, positional command) and the position of the rotor (mover). The back electromotive force V.sub.BEMF1 is given by the following Expression (1)
V.sub.BEMF=K.sub.E.Math.cos φ  (1)

(65) where K.sub.E represents the back electromotive force constant and ω represents the rotational speed. Therefore, measurement of the back electromotive force V.sub.BEMF and the rotational speed ω enables generation of a detection value in correlation with the load angle φ. For example, the detection value may be cos φ. In this case, the detection value is given by Expression (2).

(66) cos φ = V BEMF .Math. ω - 1 / K E = V BEMF .Math. ( T / 2 Π ) .Math. K E - 1 ( 2 )

(67) A zero-current detection circuit 290 asserts a zero-current detection signal S.sub.ZC (e.g., set to high) when the absolute value of the coil current I.sub.OUT1 falls below a predetermined threshold value I.sub.ZERO. In response to the assertion of the zero-current detection signal S.sub.ZC, the logic circuit 270 switches the full bridge circuit 202_1 from the inverse state to the off state φ.sub.0.

(68) This arrangement is not limitative, and thus the zero-current detection circuit 290 may include a comparator 292 that compares a current detection signal I.sub.NF1 corresponding to the voltage drop across the detection resistor R.sub.NF provided in the full bridge circuit 202_1, with a threshold voltage V.sub.ZERO.

(69) FIG. 10 is a waveform chart of the operation of the driving circuit 200 of FIG. 9. In the inverse state, because the coil current I.sub.OUT1 flows in the resistor R.sub.NF from the ground to the power supply, the current detection signal I.sub.NF1 is negative in voltage. Thus, as the absolute value of the coil current I.sub.OUT1 decreases, the level in voltage of the current detection signal I.sub.NF1 increases. Then, when the current detection signal I.sub.NF1 crosses the threshold voltage V.sub.ZERO that is negative near zero, the zero-current detection signal S.sub.ZC is asserted, so that the full bridge circuit 202_1 is switched from the inverse state to the off state φ.sub.0.

(70) According to the driving circuit 200 of FIG. 9, the gradient α(γ) of most of the slope of the coil current I.sub.OUT1 can be made close to the gradient β(δ) in the transition with no phase switching.

(71) FIG. 11 illustrates another exemplary configuration of the current-value setting circuit 210. The feedback controller 220 is active in the high efficiency mode, and generates a current correction value ΔI for adjustment in value such that the load angle φ comes close to the target angle φ.sub.REF. The current correction value ΔI is zero in the high torque mode.

(72) The feedforward controller 240 outputs a predetermined high-efficiency set value I.sub.LOW in the high efficiency mode. The relationship expressed by I.sub.FULL>I.sub.LOW is satisfied. The current-value setting circuit 210 includes an adder 214 instead of the multiplexer 212 of FIG. 9. The adder 214 adds the current correction value ΔI to the high-efficiency set value I.sub.LOW generated by the feedforward controller 240. This arrangement causes the current set value I.sub.REF=I.sub.LOW+ΔI to be adjusted such that the load angle φ comes close to the target angle φ.sub.REF.

(73) Finally, uses for the driving circuit 200 will be described. The driving circuit 200 is used in various types of electronic equipment. FIGS. 12A to 12C are perspective views of exemplary types of electronic equipment including the driving circuit 200.

(74) The electronic equipment of FIG. 12A is an optical disc drive 500. The optical disc drive 500 includes an optical disc 502 and a pickup 504. The pickup 504 is provided to write data in and read data from the optical disc 502. The pickup 504 is movable, on the recording face of the optical disc 502, in the radius direction of the optical disc (tracking). The distance between the pickup 504 and the optical disc is variable (focusing). The pickup 504 is positioned by the stepping motor not illustrated. The driving circuit 200 controls the stepping motor. This configuration enables high-accuracy positioning of the pickup 504 with high efficiency and prevention of desynchronization.

(75) The electronic equipment of FIG. 12B is a device 600 having an image-capturing function, such as a digital still camera, a digital video camera, or a mobile phone terminal. The device 600 includes an image capturing element 602 and a lens for autofocus 604. The stepping motor 102 positions the lens for autofocus 604. This configuration in which the driving circuit 200 drives the stepping motor 102, enables high-accuracy positioning of the lens for autofocus 604 with high efficiency and prevention of desynchronization. In addition to the lens for autofocus, the driving circuit 200 may be used for lens driving for hand-shake correction. Alternatively, the driving circuit 200 may be used for aperture control.

(76) The electronic equipment of FIG. 12C is a printer 700. The printer 700 includes a head 702 and a guide rail 704. The head 702 is supported so as to be positioned along the guide rail 704. The stepping motor 102 controls the position of the head 702. The driving circuit 200 controls the stepping motor 102. This configuration enables high-accuracy positioning of the head 702 with high efficiency and prevention of desynchronization. In addition to the head driving, the driving circuit 200 may be used for driving of a motor for a paper feeding mechanism.

(77) Favorably, the driving circuit 200 can be used not only in the consumer equipment illustrated in FIGS. 12A to 12C but also in industrial equipment and robots.

(78) The embodiment of the present invention has been described above. The embodiment is exemplary, and thus persons skilled in the art should understand that various modifications may be made in combination to the constituent elements and the flows of processing in the embodiment and such modifications are to be included in the scope of the present invention. Such modifications will be described below.

Modification 1

(79) In the driving circuit 200 of FIG. 9, transition is made from the inverse state to the off state in accordance with the zero-current detection signal S.sub.ZC, but this is not limitative. For example, with the voltage across the coil being monitored, the coil current I.sub.OUT1 having decreased close to zero may be detected on the basis of a result of the monitoring. Alternatively, transition may be made to the off state after predetermined time passes after transition to the inverse state.

Modification 2

(80) In the embodiment, the case where the excitation position changes clockwise has been described. A similar manner is made at the time of counterclockwise rotation. A case where counterclockwise rotation is made in the 1-2 phase excitation will be described with reference to FIG. 2A. Regarding the current I.sub.OUT1 (full bridge circuit 202_1), the transition from excitation position #7 to excitation position #6 and the transition from excitation position #3 to excitation position #2 involve the phase changing. Therefore, with the timing chart of FIG. 2B inverted left and right, the inverse state needs inserting in the fronts of excitation positions #6 and #2. Similarly, regarding the current I.sub.OUT2 (full bridge circuit 202_2), the transition from excitation position #1 to excitation position #8 and the transition from excitation position #5 to excitation position #4 involve the phase changing. With the timing chart of FIG. 2B inverted left and right, the inverse state needs inserting in the fronts of excitation positions #8 and #4.

Modification 3

(81) In the embodiment, the case of the 1-2 phase excitation has been described. However, the excitation method is not limited to the 1-2 phase excitation. FIGS. 13A and 13B explanatorily illustrate quarter-step drive. FIG. 13A explanatorily illustrates the excitation position of the quarter-step drive. In the quarter-step drive, an electrical angle of 360° is divided into 16 segments. Therefore, 16 excitation positions are present.

(82) FIG. 13B is a waveform chart of the operation of the driving circuit 200 in the quarter-step drive. Focus on the coil current I.sub.OUT1, the transition from excitation position #2 to excitation position #3 and the transition from excitation position #10 to excitation position #11 involve the phase switching. Therefore, the inverse state is inserted in the fronts of excitation positions #3 and #11. Similarly, focus on the coil current I.sub.OUT2, the transition from excitation position #6 to excitation position #7 and the transition from excitation position #14 to excitation position #15 involve the phase switching. Therefore, the inverse state is inserted in the fronts of excitation positions #7 and #15.

Modification 4

(83) The logic circuit 270 may adjust the power supply voltage V.sub.DD that is supplied to the full bridge circuit 202, instead of or together with adjustment of the duty cycle of the pulse modulation signal S2, such that the load angle φ comes close to the target angle φ.sub.REF. Change of the power supply voltage V.sub.DD enables change of power that is supplied to the coils L1 and L2 of the stepping motor 102.

Modification 5

(84) The full bridge circuit 202 may be different in chip from the driving circuit 200 or may be a discrete component.

Modification 6

(85) The generating method for the current set value Iy in the high-efficiency mode is not limited to that described in the embodiment. For example, with a target value V.sub.BEMF(REF) determined for the back electromotive force V.sub.BEMF1, a feedback loop may be provided such that the back electromotive force V.sub.BEMF1 comes close to the target value V.sub.BEMF(REF).

Modification 7

(86) In the embodiment, the currents I.sub.OUT1 and I.sub.OUT2 that flow in the two coils are turned on or off in accordance with the excitation position. The amounts of the currents I.sub.OUT1 and I.sub.OUT2 are constant regardless of the excitation position. In this case, torque varies in the 1-2 phase excitation. Instead of this control, the currents I.sub.OUT1 and I.sub.OUT2 may be corrected such that the torque remains constant regardless of the excitation position. For example, in the 1-2 phase excitation, the amounts of the currents I.sub.OUT1 and I.sub.OUT2 at excitation positions #2, #4, #6, and #8 may be √2 times as large as at excitation positions #1, #3, #5, and #7.

Modification 8

(87) In the embodiment, the feedback controller 220 includes the PI controller, but this is not limitative. Thus, for example, the feedback controller 220 may include a PID controller.

(88) While the preferred embodiments of the present invention have been described using specific terms, such description is for illustrative purposes only, and it is to be understood that changes and variations may be made without departing from the spirit or scope of the appended claims.