Driving circuit and driving method of stepping motor and electronic machine using the same

11418138 · 2022-08-16

Assignee

Inventors

Cpc classification

International classification

Abstract

The task of the present invention is to provide a driving circuit capable of outputting information useful to design or control of a system to outside. The present invention relates to a driving circuit and a driving method of a stepping motor, and an electronic machine using the driving circuit of a stepping motor. A counter electromotive force detection circuit detects a counter EMF generated in a coil. A revolution count detection circuit acquires the revolution count of the stepping motor. A load angle estimating portion calculates a load angle according to the counter EMF and the revolution count. An interface circuit is configured to be capable of outputting angle information associated with the load angle to outside, or accessing the angle information from the outside.

Claims

1. A driving circuit that is a driving circuit of a stepping motor, comprising: a counter electromotive force (EMF) detection circuit, adapted to detect a counter EMF generated in a coil; a revolution count detection circuit, adapted to acquire a revolution count of the stepping motor; a load angle estimating portion, adapted to calculate a load angle according to the counter EMF and the revolution count; a current value setting circuit, adapted to generate a current setting value according to the load angle, a load angle target value and a fixed current setting value; a bridge circuit connected to the coil, wherein the current setting value is adapted to generate a control signal for controlling the bridge circuit; and an interface circuit, adapted to: output an angle information associated with the load angle to a host controller external to the driving circuit for monitoring whether an out-of-step event occurs in the stepping motor, or access the angle information, associated with the load angle, from another circuit external to the driving circuit for monitoring the stepping motor.

2. The driving circuit according to claim 1, wherein the angle information is a digital signal.

3. The driving circuit according to claim 1, wherein the interface circuit comprises: a digital-to-analog converter (DAC), adapted to convert the angle information to an analog signal; and a buffer circuit, adapted to output the analog signal.

4. The driving circuit according to claim 1, wherein the angle information is a margin before out-of-step.

5. The driving circuit according to claim 1, wherein the angle information is the load angle.

6. The driving circuit according to claim 1, further comprising: a constant current chopper circuit, adapted to generate a pulse modulation signal that pulse modulates by having a detection value of a coil current flowing through the coil approach to a target value of the current setting value; and a logic circuit, adapted to control a bridge circuit connected to the coil according to the pulse modulation signal.

7. The driving circuit according to claim 6, wherein the constant current chopper circuit comprises: a comparator, adapted to compare the detection value of the coil current with a threshold value based on the current setting value; an oscillator, adapted to perform oscillation according to a predetermined frequency; and a flip-flop, adapted to output the pulse modulation signal that transitions to an off level according to an output of the comparator and transitions to an on level according to an output of the oscillator.

8. The driving circuit according to claim 1, wherein the current value setting circuit is adapted to generate the current setting value according to the counter EMF.

9. The driving circuit according to claim 1, wherein the current value setting circuit comprises: a feedback controller, adapted to generate the current setting value by having the load angle approach to the load angle target value.

10. The driving circuit according to claim 1, wherein the driving circuit is integrated on a semiconductor substrate.

11. An electronic machine comprising: a stepping motor; and the driving circuit according to claim 1 for driving the stepping motor.

12. The driving circuit according to claim 1, wherein the fixed current setting value is set as two different values for a high-torque mode and a high-efficiency mode, respectively.

13. A driving method, that is a driving method of a stepping motor, comprising: generating a current setting value; generating a pulse modulation signal that pulse modulates by having a detection value of a coil current flowing through a coil approach to a target value based on the current setting value; controlling a bridge circuit connected to the coil according to the pulse modulation signal; detecting a counter electromotive force (EMF) generated in the coil; acquiring a revolution count of the stepping motor; calculating a load angle according to the counter EMF and the revolution count; and supplying an angle information associated with the load angle to a host controller for monitoring whether an out-of-step event occurs in the stepping motor, or accessing the angle information, associated with the load angle, from another circuit for monitoring the stepping motor, wherein the generating of the current setting value comprises generating the current setting value according to the load angle, a load angle target value and a fixed current setting value.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

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

(2) FIG. 2 is a diagram illustrating excitation positions;

(3) FIG. 3 is a diagram illustrating a driving sequence of a stepping motor;

(4) FIG. 4 is a block diagram of a motor system of a driver system according to an embodiment;

(5) FIG. 5A to FIG. 5C are diagrams of exemplary structures of an interface circuit;

(6) FIG. 6 is a circuit diagram of an exemplary structure of a driving circuit;

(7) FIG. 7 is a diagram of another exemplary structure of a current value setting circuit;

(8) FIG. 8 is a waveform diagram of voltage and current of a stepping motor;

(9) FIG. 9A and FIG. 9B are diagrams of measuring a counter electromotive force (EMF);

(10) FIG. 10 is a waveform diagram of a coil voltage with respect to a large number of revolution; and

(11) FIGS. 11A to 11C are three-dimensional diagrams of examples of an electronic machine having a driving circuit.

DETAILED DESCRIPTION OF THE EMBODIMENTS

(12) Details of the present invention are given in preferred embodiments with the accompanying drawings below. The same or equivalent constituent elements, components, or processes depicted in the drawings are represented by the same denotations, and repeated description is appropriately omitted. Further, the embodiments are examples that do not form limitations to the present invention. All features stated in the embodiments and any combination thereof are not necessarily essential features of the present invention.

(13) In the description, “a state of component A being connected to component B” includes, in addition to a situation where component A and component B are directly physically connected, a situation where component A and component B are indirectly connected to other components, in a way that no substantial influences are produced on the electrical connection state thereof or no damage on functions and effects produced thereby in combination is resulted.

(14) Similarly, “a state of component C being arranged between component A and component B” includes, in addition to a situation where component A and component C or component B and component C are directly connected, a situation where said components are connected to other components, in a way that no substantial influences are produced on the electrical connection state thereof or no damage on functions and effects produced thereby in combination is resulted.

(15) For better understanding, the vertical and horizontal axes of waveform diagrams and timing diagrams referred in the description are appropriately scaled up or scaled down. Further, the waveforms depicted are simplified, exaggerated or emphasized for better understanding.

(16) FIG. 4 shows a block diagram of a motor system 100 of a driving circuit 200 according to an embodiment. The driving circuit 200, a stepping motor 102 and a host controller 2 jointly form the motor system 100. The stepping motor 102 can be any of a permanent magnet (PM) type, a variable reluctance (VR) type, and a hybrid type.

(17) The input clock CLK is inputted from the host controller 2 to an input pin IN of the driving circuit 200. Further, a direction indication signal DIR indicating a clockwise (CW) direction or a counterclockwise (CCW) direction is inputted to a direction indication pin DIR of the driving circuit 200.

(18) Each time when the driving circuit 200 is inputted to the input clock CLK, a rotor of the stepping motor 102 rotates toward a direction corresponding to the direction indication signal DIR by a predetermined angle.

(19) The driving circuit 200 includes bridge circuits 202_1 and 202_2, a current value setting circuit 210, a counter electromotive force (EMF) detection circuit 230, a revolution count detection circuit 232, a load angle estimating portion 222, constant current chopper circuits 250_1 and 250_2, a logic circuit 270 and an interface circuit 280, which are integrated on one semiconductor substrate.

(20) In this embodiment, the stepping motor 102 is a 2-phase motor, and includes a first coil L1 and a second coil L2. The driving method of the driving circuit 200 is not specifically defined, and can be any one of 1-phase excitation, 2-phase excitation, 1-2-phase excitation, and micro-stepping motor (W1-2-phase driving or 2W1-2-phase driving).

(21) The bridge circuit 202_1 of a first channel CH1 is connected to the first coil L1. The bridge circuit 202_2 of a second channel CH2 is connected to the second coil L2.

(22) Each of the bridge circuits 202_1 and 202_2 is an H bridge circuit including four transistors M1 to M4. The transistors M1 to M4 of the bridge circuit 202_1 are switched according to a control signal CNT1 from the logic circuit 270, accordingly switching the voltage (also referred to as a first coil voltage) V.sub.OUT1 of the first coil L1.

(23) The bridge circuit 202_2 is identically structured as the bridge circuit 202_1, the transistors M1 to M4 thereof are switched according to a control signal CNT2 from the logic circuit 270, accordingly switching the voltage (also referred to as a second coil voltage) V.sub.OUT2 of the second coil L2.

(24) The current value setting circuit 210 generates a current setting value I.sub.REF. Shortly after the startup of the stepping motor 102, the current setting value I.sub.REF is immediately fixed at a predetermined value (referred to as a maximum torque setting value) I.sub.FULL. The predetermined value I.sub.FULL can also be set as a maximum value of a configurable current range of the current setting value I.sub.REF. In this case, the stepping motor 102 is driven by using full torque—such state is referred to as a high-torque mode.

(25) Once the stepping motor 102 starts rotating stably, in other words, once the possibility of out-of-step is reduced, the stepping motor 102 transitions to a high-efficiency mode. The current value setting circuit 210 adjusts the current setting value I.sub.REF by means of feedback control in the high-efficiency mode, hence reducing power consumption.

(26) Each of the bridge circuits 202_1 and 202_2 includes a current detection resistor R.sub.NF, and the voltage of the current detection resistor R.sub.NF reduces to become a detection value of the coil current IL. Further, the position of the current detection resistor R.sub.NF is not limited, and the current detection resistor R.sub.NF can be configured on a power side, or be connected to the coils in series and be configured between two outputs of the bridge circuits.

(27) The constant current chopper circuit 250_1 generates a pulse modulation signal S.sub.PWM1 while electricity passes through the first coil L1, wherein the PWM signal S.sub.PWM1 modulates by way of having a detection value I.sub.NF1 of a coil current I.sub.L1 flowing through the first coil L1 approach close to a target value based on the current setting value I.sub.REF. The constant current chopper circuit 250_2 generates a PWM signal S.sub.PWM2 while electricity passes through the second coil L2, wherein the PWM signal S.sub.PWM2 modulates by way of having a detection value I.sub.NF2 of a coil current I.sub.L2 flowing through the second coil L2 approach close to the current setting value I.sub.REF.

(28) The logic circuit 270 controls one output of the full-bridge circuit 202_1 connected to the first coil L1 according to the PWM signal S.sub.PWM1. Further, the logic circuit 270 controls the full-bridge circuit 202_2 connected to the second coil L2 according to the PWM signal S.sub.PWM2.

(29) Each time when the logic circuit 270 is inputted to the input clock CLK, the excitation position is changed and the coil (or coil pair) supplying current is switched. The excitation position can be understood as a combination of the values of the respective current currents of the first coil L1 and the second coil L2 and flowing directions thereof The excitation position can transition according to a positive edge or a negative edge of the input clock CLK, or can transition according to both said edges thereof.

(30) As described above, the current value setting circuit 210 is configured to be switched to (i) the high-torque mode, in which the current setting value I.sub.REF of a predetermined coil current amplitude is fixed to a larger value equivalent to full torque, and (ii) the high-efficiency mode, in which the current setting value I.sub.REF is adjusted by means of feedback control.

(31) The counter EMF detection circuit 230 detects a counter EMF V.sub.BEFM1 (V.sub.BEMF2) generated in the coil L1 (L2) of the stepping motor 102. The method for detecting the counter EMF is not specifically limited, and can be implemented by commonly known techniques. In general, the counter EMF can be obtained by setting two ends of a coil to high impedance by setting a detection window (detection interval), and then sampling the coil voltage at this point. For example, in 1-phase excitation or 1-2-phase excitation, the counter EMF V.sub.BEMF1 (V.sub.BEMF2) can be measured at each excitation position (2, 4, 6 and 8 in FIG. 2) in high impedance, i.e., each predetermined excitation position, on one end (the output of the bridge circuit) of the coil serving as a monitoring object.

(32) The revolution count detection circuit 232 obtains the revolution count ω (to be referred to as the revolution ω) of the stepping motor 102, and generates a detection signal representing the revolution ω. For example, the revolution count detection circuit 232 can measure a period T (=2π/ω) directly proportional to the reciprocal of the revolution ω, and output the period T as the detection signal. In a situation free from out-of-step, the frequency (period) of the input pulse IN is directly proportional to the revolution count (period) of the stepping motor 102. Thus, the revolution count detection circuit 232 can also set the detection signal by measuring an input pulse IN, or on the basis of the period of an internal signal generated based on the input pulse IN.

(33) The load angle estimating portion 222 estimates a load angle ϕ according to the back-EMF V.sub.BEMF1 and the revolution count co. The load angle ϕ is equivalent to a difference between a current vector (i.e., position instruction) determined by the driving current flowing through the first coil L1 and the position of the rotor (mover). As described above, the back-EMF V.sub.BEMF1 is provided according to the following equation:
V.sub.BEMF1=K.sub.E.Math.ω.Math.cos ϕ

(34) In the equation above, K.sub.E is the counter EMF constant, and ω is the revolution count. Thus, by measuring the counter EMF V.sub.BEMF1 and the revolution ω, a detection value correlated with the load angle ϕ can be generated. For example, cos ϕ can be set as the detection value. In this case, the detection value is represented by equation (2):

(35) cos ϕ = V BEMF 1 .Math. ω - 1 K E = V BEMF 1 .Math. ( T 2 π ) .Math. K E - 1 ( 2 )

(36) The driving circuit 200 is configured to be capable of outputting angle information INFO associated with the load angle ϕ acquired in the load angle estimating portion 222 to the outside, or is configured to be capable of accessing the angle information INFO from the outside. Thus, the driving circuit 200 is provided with the interface circuit 280. The angle information INFO can be supplied to the host controller, or be supplied to other circuits.

(37) The angle information is specifically limited, and any one of the following can be used.

(38) (1) cos ϕ can be used as the angle information INFO. In this case, calculation can be performed by using equation (2).

(39) (2) ϕ can be used as the angle information INFO. In this case, calculation can be performed by using equation (3). ϕ can be in a unit of degrees (°) or radian.
ϕ=arccos(V.sub.BEMF.Math.(T/2π).Math.K.sub.E.sup.−1  (3)

(40) (3) The margin can also be used as the angle information INFO. The margin is a difference ϕ.sub.LIM-ϕ between an out-of-step limit ϕ.sub.LIM and the load angle ϕ. An ideal value π/2 (90°) can be used as the out-of-step limit ϕ.sub.LIM. Alternatively, an actual value set from the outside through such as a register can be used as the out-of-step limit ϕ.sub.LIM.

(41) (4) In the following situation where the current setting value I.sub.REF is adjusted by using feedback control of the load angle ϕ, the error ERR of the load angle ϕ and the target value ϕ.sub.REF can be set as the angle information INFO.

(42) The angle information is not limited to being the above, and a value associated with the load angle ϕ can be used.

(43) Alternatively, the interface circuit 280 can also be set as being capable of switching between enabled and disabled; in a situation where the angle information needs to be known, the interface circuit 280 is set as enabled.

(44) FIG. 5A to FIG. 5C show diagrams of exemplary structures of the interface circuit 280. The interface circuit 280 in FIG. 5A includes a register 282, and an inter-integrated circuit (I2C) circuit 284. Angle information of a specific time point is written to the register 282. Alternatively, the value in the register 282 can also be constantly updated according to the angle information changing with time. The I2C circuit 284 can output the angle information to the outside upon receiving accessing of the register 282 from the outside. Alternatively, a serial peripheral interface (SPI) or other transmitters or receivers can also be used in substitution for I2C.

(45) Alternatively, the interface circuit 280 can also output the angle information to the outside, regardless of whether there is a request from the outside. In FIG. 5B, digital angle information is always outputted to the outside by a transmitter 285.

(46) In FIG. 5C, digital angle information is converted to an analog signal (a voltage signal) by a digital-to-analog converter (DAC) 288, and then a buffer 289 outputs the analog signal to the outside.

(47) FIG. 6 shows a circuit diagram of an exemplary structure of the driving circuit 200. In FIG. 6, only parts related to the first coil 11 are depicted.

(48) The current value setting circuit 210 is described below. The current value setting circuit 210 includes a feedback controller 220, a feedforward controller 240, and a multiplexer 212. The feedforward 240 outputs a fixed current setting value Ix (=I.sub.FULL) used in the high-torque mode shortly after the startup. The current setting value Ix is set to a larger value in order to avoid out-of-step.

(49) The feedforward controller 220 is activated in the high-efficiency mode, and outputs a current setting value Iy based on feedback controlled by the counter EMF V.sub.BEMF.

(50) The multiplexer 216 selects one of the two signals Ix and Iy according to a determination signal MODE, and outputs the selected signal as a current setting value I.sub.ref.

(51) In FIG. 6, the load angle estimating portion 222 is incorporated into the feedback controller 220. The feedback controller 220 further includes a subtractor 224 and a proportional integration (PI) controller 226 in addition to the load angle estimating portion 222.

(52) The feedback controller 220 generates the current setting value Iy by way of having the estimated load angle ϕ approach close to the predetermined target angle ϕ.sub.REF. More specifically, the subtractor 224 generates an error ERR of the detection value cos ϕ corresponding to the load angle ϕ and the target value cos(ϕ.sub.REF) thereof. The PI controller 226 performs a PI control operation by way for having the error ERR become zero and generates the current setting value Iy. Alternatively, the processing of the feedback controller 220 can also be realized in an analog circuit using an error amplifier.

(53) The constant current chopper circuit 250_1 includes a DAC 252, a PWM comparator 254, an oscillator 256, and a flip-flop 258. The DAC 252 converts the current setting value I.sub.REF to an analog voltage V.sub.REF. The PWM comparator 254 compares the feedback signal I.sub.NF1 with the reference voltage V.sub.REF, and asserts a turn-off signal S.sub.OFF (setting to high) if I.sub.NF1 is more than V.sub.REF. The oscillator 256 generates a periodic turn-on signal S.sub.ON specifying the chopper frequency. The flip-flop 258 outputs the PWM signal S.sub.PMW1, which changes to an on level (e.g., high) according to the turn-on signal S.sub.ON or changes to an off level (e.g., low) according to the turn-off signal S.sub.OFF.

(54) The interface circuit 280 is omitted from FIG. 6. The interface circuit 280 is capable of generating the angle information INFO according to the detection value cos ϕ generated by the load angle estimating portion 222.

(55) The structure of the driving circuit 200 is described as above, and the operation of the driving circuit 200 is to be described below.

(56) (i) The interface circuit 280 can be effective utilized in a design phase of the motor system 100. For example, in the design phase, while angle information (the load angle ϕ) is being monitored, control parameters (e.g., the current value I.sub.FULL in the high-torque mode, the current value I.sub.LOW in the high-efficiency mode to be described below, or the frequency waveform of the input clock CLK) of the motor can be optimized.

(57) (ii) The interface circuit 280 can also be effectively utilized during the actual operation of the motor system 100. For example, in the high-torque mode or the high-efficiency mode, the change in the load of the motor or the risk of out-of-step can be determined by monitoring the angle information. Further, while monitoring angle information, the angle information is determined as erroneous if it deviates from an accuracy range.

(58) FIG. 7 shows a diagram of another exemplary structure of the current value setting circuit 210. The feedback controller 220 is activated in the high-efficiency mode, and generates a current correction value ΔI. The value of the current correction value ΔI is adjusted by way of having the load angle ϕ approach close to the target value ϕ.sub.REF. The current correction value ΔI is zero in the high-torque mode.

(59) In the high-efficiency mode, the feedforward controller 240 outputs the predetermined high-efficiency setting value I.sub.LOW. The relationship I.sub.FULL>I.sub.LOW can also be established. The current value setting circuit 210 includes an adder 214 in substitution for the multiplexer 212 in FIG. 5A to FIG. 5C. The adder 214 adds the high-efficiency setting value I.sub.LOW generated by the feedforward controller 240 with the current correction value ΔI. Thus, the current setting value I.sub.REF is adjusted as I.sub.REF=I.sub.LOW+ΔI by way of having the load angle ϕ approach close to the target value ϕ.sub.REF.

(60) The detection for the counter EMF V.sub.BEMF by the counter EMF detection circuit 230 is described below. FIG. 8 shows a waveform diagram of voltage and current of the stepping motor 102. In FIG. 8, a coil current I.sub.COIL1, a voltage V.sub.OUT1 between two ends of the first coil L1, a coil current I.sub.COIL2, and a voltage V.sub.OUT2 between two ends of the second coil L2 are sequentially depicted from the top. Hi-z1 and Hi-z2 represent high-impedance states of outputs OUT1A and OUT1B of the bridge circuit 202_1. Hi-z3 and Hi-z4 represent high-impedance states of outputs OUT2A and OUT2B of the bridge circuit 202_2. The counter EMF V.sub.BEMF is detected in a high-impedance period (to be referred to as a turned-off period).

(61) FIG. 9A and FIG. 9B show diagrams of measuring the counter EMF. The counter EMF detection circuit 230 measures the duration of the turned-off period T.sub.OFF for each cycle. Next, The turned-off period T.sub.OFF(i-1) measured in the previous turned-off period (i−1) is segmented into N parts (e.g., N is 8, 16 or 32) to generate a sampling interval ΔT of the current cycle i.
ΔTi=T.sub.OFF(i-1)/N

(62) Next, sampling time points T.sub.s1 to T.sub.sN are configured for each ΔTi, and the voltage V.sub.OUT1 between the two ends of the coil L1 is sampled. As shown in FIG. 9A and FIG. 9B, after transition to the turned-off period T.sub.OFFi, the coil current I.sub.COIL1 (regenerative current) immediately flows, and thus the voltage V.sub.OUT1 jumps to V.sub.DD+V.sub.F. If the coil current I.sub.COIL1 becomes zero, counter EMF V.sub.BEMF1 occurs.

(63) The counter EMF detection circuit 230 discards first several (e.g., the 1.sup.st to 3.sup.rd) samples and last several samples (e.g., the 8.sup.th) from the N (e.g., 8) samples, and calculates an average value of the remaining samples (referred to as effective samples, e.g., 4 to 7 samples). Thus, influences of noise can be reduced to acquire a more accurate counter EMF V.sub.BEMF.

(64) FIG. 9B shows a diagram of a sampling time point T.sub.si of the counter EMF. During a turned-off period of the bridge circuit 202_1, the other bridge circuit 202_2 is PWM controlled by the constant current chopper circuit 250_2. Because the counter EMF V.sub.BEMF1 includes noise generated from switching of the bridge circuit 202_2, the sampling time point T.sub.si (where i=1 to N) of the counter EMF V.sub.BEMFi is preferably avoided from a transition time point of the bridge circuit 202_2.

(65) The PWM signals S.sub.PWM1 and S.sub.PWM2 generated by the constant current chopper circuits 250_1 and 250_2 are set with a minimum turn-on time T.sub.MIN. Next, by setting the sampling time point T.sub.si as a predetermined time τ (<T.sub.MIN) along a positive edge of the PWM signal, it can be ensured that the sampling time point T.sub.si does not coincide with the negative edge of the PWM signal, thereby mitigating influences of noise.

(66) The turned-off period T.sub.OFF reduces as the stepping motor 102 gets faster. FIG. 10 shows a waveform diagram of the coil voltage V.sub.OUT1 with respect to a larger number of revolution. As described above, the regenerative current flows during a regeneration period T.sub.RGN subsequent to the turned-off period T.sub.OFF, and the coil voltage V.sub.OUT1 is fixed at a higher value (V.sub.DD+V.sub.F). If the revolution count increases, the turned-off period T.sub.OFF reduces, and the duration of the regeneration period T.sub.RNG is substantially fixed on the other hand. As a result, the number of sampling time points included within the regeneration period increases. In other words, the effective sample is fixed at a high level. Therefore, in a situation where one or more among multiple effective samples include high (V.sub.DD+V.sub.F), the counter EMF detection is made void.

(67) Lastly, the purpose of the driving circuit 200 is described below. The driving circuit 200 is used in various electronic machines. FIGS. 11A to 11C show three-dimensional diagrams of examples of electronic machines including the driving circuit 200.

(68) The electronic machine in FIG. 11A is an optical disc device 500. The optical disc device 500 includes an optical disc 502 and a reader 504. The reader 504 is provided to write data to and read data from the optical disc 502. The reader 504 is capable of moving (tracking) on a recording surface of the optical disc 502 along a radial direction of the optical disc 502. Further, the distance from the reader 504 to the optical disc is also variable (for focusing). The reader 504 is positioned by a stepping motor not shown in the drawing. The driving circuit 200 controls the stepping motor. This structure is capable of avoiding out-of-step on one hand and efficiently positioning the reader 504 with high precision on the other hand.

(69) The electronic machine in FIG. 11B is a device 600 such as a digital static camera, a digital video camera or a cell phone terminal having an image capturing function. The device 600 includes a capturing element 602 and an automatic focusing lens 604. The stepping motor 102 performs positioning of the automatic focusing lens 604. This structure of the driving circuit 200 for driving the stepping motor 102 is capable of avoiding out-of-step on one hand and efficiently positioning the automatic focusing lens 604 with high precision on the other hand. In addition to an automatic focusing lens, the driving circuit 200 can also be used to drive a jitter correction lens. Alternatively, the driving circuit 200 can also be used in aperture control.

(70) The electronic machine in FIG. 11C is a printer 700. The printer 700 includes a head 702 and a guiding rail 704. The head 702 is supported and can be positioned along the guiding rail 704. The stepping motor 102 controls the position of the head 702. The driving circuit 200 controls the stepping motor 102. This structure is capable of avoiding out-of-step on one hand and efficiently positioning the head 702 with high precision on the other hand. In addition to being used for driving the head, the driving circuit 200 can also be used to drive a motor for a paper conveyor mechanism.

(71) In addition to the consumer apparatuses shown in FIGS. 11A to 11C, the driving circuit 200 can be preferably used in industrial apparatuses or robots.

(72) The present invention is described by way of the embodiments above. The embodiments are examples, and a person skilled in the art should understand that there are numerous variation embodiments from combinations of these constituent elements and processes. Further, such variation embodiments are to be encompassed within the scope of the present invention. Some variation embodiments are described below.

Variation Embodiment 1

(73) The logic circuit 270 can also adjust the power voltage V.sub.DD supplied to the bridge circuit 202 by way of having the load angle ϕ approach close to the target angle ϕ.sub.REF in substitution for adjusting the power voltage V.sub.DD supplied to the bridge circuit 202 by way of adjusting the duty cycle of the PMW signal S2 or in combination with adjusting the duty cycle of the PMW signal S2. By changing the power voltage V.sub.DD, the power in the coils L1 and L2 of the stepping motor 102 can be changed.

Variation Embodiment 2

(74) In the embodiments above, a situation where the bridge circuit 202 is formed by a full-bridge circuit (H bridge) is given as an example; however, the present invention is not limited thereto, and a half-bridge circuit can be used. Further, the bridge circuit 202 and a driving circuit 200 (200B) can be different chips, or can be discrete parts.

Variation Embodiment 3

(75) The method for generating the current setting value Iy in the high-efficiency mode is not limited to the methods described in the embodiments. For example, the target value V.sub.BEMF (REF) of the counter EMF V.sub.BEMF1 can be determined in advance, and a feedback loop can be formed by way of having the counter EMF V.sub.BEMF1 approach close to the target value V.sub.BEMF (REF).

Variation Embodiment 4

(76) In the embodiments above, the two currents I.sub.OUT1 and I.sub.OUT2 flowing through the two coils are connected or disconnected according to the excitation position, and the current amounts thereof are fixed regardless of how the excitation position changes. In this case, the torque changes in 1-2-phase excitation. In substitution for the control, the currents I.sub.OUT1 and I.sub.OUT2 can also be corrected by a fixed torque regardless of how the excitation position changes. For example, in 1-2-phase excitation, the values of the currents I.sub.OUT1 and I.sub.OUT2 at the excitation positions 2, 4, 6 and 8 can be set as √{square root over (2)} times the values of the currents at the excitation positions 1, 3, 5 and 7.

Variation Embodiment 5

(77) In the embodiments, the feedback controller 220 is formed by a PI controller but is not limited thereto. Alternatively, a proportional integral derivative (PID) controller can be used.

(78) The present invention has been described in terms of the embodiments above. However, these embodiments demonstrate merely principles and applications of the present invention. There are numerous variations embodiments and configuration modifications without departing from the scope of the concept of the present invention, as specified in the appended claims.