This application is a divisional application of U.S. patent application Ser. No. 11/484,921, filed Jul. 10, 2006, which is incorporated herein by reference.
BACKGROUND OF THE INVENTION 1. Field of the Invention
The invention relates to a technology of driving a stepping motor at low noise and low vibration.
2. Related Art
Hitherto, a stepping motor is used for applications in various position controls. A stepping motor is composed of a rotor and a stator having plural phases of windings and is arranged to rotate and stop by each unit angle. Control of the number of rotation steps allows the rotor to rotate or stop by a desired angle without feedback control. Such operational characteristic of the stepping motor is suited to position control application.
Recently, the stepping motor is used widely in adjustment of iris, focus or zoom as an optical system actuator in electronic imaging apparatus such as a digital still camera (DSC) or a digital video camera (DVC).
Operation of the stepping motor used in the digital video camera is particularly required to be low in noise and vibration. This is because noise generated by the stepping motor is captured by a built-in microphone to be recorded as noise, and vibration causes camera shake and lowered quality of recorded image. To meet such demand, driving technology of operating a stepping motor at low noise and low vibration is disclosed, for example, inpatent document 1.
FIG. 15 is a block diagram of a conventional stepping motor driving apparatus disclosed inpatent document 1. The diagram describes only constituent elements necessary for explaining the principle. Since the stepping motor has plural phases of winding and the construction is the same in each winding, only one phase of winding is shown.
The pulsewidth modulation controller15 includes acomparator16, a flip-flop17, areference pulse generator18, and aconduction logic section19. Thereference pulse generator18 sets the flip-flop17 in every pulse width modulation period (PWM period). Hence theconduction logic section19 turns on either one oftransistors6 and9 and either one oftransistors7 and8 which compose theswitching section5, in every specific period, in combination and timing so as not to shoot through. A current direction switch signal (PHASE inFIG. 15) entered into theconduction logic section19 decides which one oftransistors6 and9 and one oftransistors7 and8 are turned on, and determines the direction of current flowing in thewinding3.
During turn-on of thetransistors6 to9, electric power is supplied to the winding3 from thepower source1, and the current flowing in the winding3 increases. Hereinafter, the period in which the flip-flop17 is set and electric power is supplied to the winding3 with the increased current flowing in the winding3 is called “PWM ON period”.
A suppliedcurrent measuring section20 detects the current supplied in the winding3 by turn-on oftransistors6 to9 from thepower source1, and outputs the detected current value to acomparator16. The suppliedcurrent measuring section20 includes adetection resistor21,sense amplifier22, and gain settingresistors23 and24. Anamplifier25 includes asense amplifier22 and again setting resistors23 and24, and the amplification factor of theamplifier25, that is, the gain from input to output ofsense amplifier22 is determined by thegain setting resistors23 and24. The current supplied to thewinding3 flows into thedetection resistor21, and the voltage generated across thedetection resistor21 is fed into thesense amplifier22. Thesense amplifier22 multiplies the input voltage by the gain to send the multiplied voltage to thecomparator16 as a detected current value.
In the following explanation of operation, the current flowing in thewinding3 to be detected by the suppliedcurrent measuring section20 is called “a detected current value”. Thereference signal generator14 generates stepwise waves increasing and decreasing in steps, and sends to thecomparator16 as a reference signal which indicates the current limit value. The reference signal expressing the current limit value generated by thereference signal generator14 is a current target value for the winding3.
Thecomparator16 compares the entered detected current value with the current target value, and resets the flip-flop17 when the detected current value exceeds the current target value. By resetting the flip-flop17, theconduction logic section19 turns off bothtransistors7 and8 for composing theswitching section5. While the flip-flop17 is reset andtransistors7 and8 are turned off, power supply frompower source1 to winding3 is cut off, and the current flowing in the winding3 is decreased by regenerative operation.
While bothtransistors7 and8 are turned off, if bothtransistors6 and9 are cut off, the current flowing in thewinding3 is regenerated by either one of theflywheel diodes11 and12, and either one of theflywheel diodes10 and13. While bothtransistors7 and8 are turned off, if bothtransistors6 and9 are turned on, the current flowing in thewinding3 is regenerated bytransistors6 and9.
While bothtransistors7 and8 are turned off with either one oftransistors6 and9 turned on, if the flywheel diode connected to the transistor not turned on is at forward bias, the regeneration current is caused by either one offlywheel diodes11 and12, and either one oftransistors6 and9. If the flywheel diode connected to the transistor not turned on is at backward bias, the current regeneration is caused by either one offlywheel diodes10 and13, and either one oftransistors6 and9.
A period for which the flip-flop17 is reset and the current flowing in the winding3 is decreasing by the regenerative operation is called “PWM OFF period”. During PWM OFF period, the current flowing in the winding3 decreases. However when the output signal of thereference pulse generator18 sets the flip-flop17 again, it is changed to PWM ON period, and the current flowing in thewinding3 begins to increase again.
By this operation, the average current supplied to the winding3 gradually approaches the current target value. As the current target value increases or decreases stepwise, the average current supplied to the winding3 increases or decreases stepwise, and the operation is the same in other phases of windings than winding3, and therefore the steppingmotor2 rotates and operates at rotating speed depending on the speed of step advancing.
The current target value generated by thereference signal generator14 is described.FIG. 16 is a diagram showing the relation of a reference signal and a current direction switch signal in a conventional stepping motor driving apparatus.
Thereference signal generator14 generates a stepwise wave which increases and decreases in steps, sends it to thecomparator16 as a current target value. As the current target value increase or decreases in steps, the stepping motor rotates by each unit angle. Step advance of the current target value is determined by input of CLK (clock signal) instructing the step advance, but it can be also determined by counting of step advance interval by a timer. The step advance period of the current target value is determined by input CLK period or period of a timer for determining the step advance interval. The period for advancing the step of the current target value determines the period of the stepping motor for rotating a unit angle is determined, and further the rotation period of the stepping motor is determined. The current target value is preferred to be a sinusoidal signal in terms of low noise and low vibration. Thereference signal generator14 generates a stepwise wave by sampling a sinusoidal wave.
FIG. 16 shows a stepwise wave sampled in 64 steps as a current target value. Along with advance in steps, each value of the stepwise wave obtained by sampling the sinusoidal wave at each step is outputted sequentially, resulting in the stepwise wave sampling the sinusoidal wave.
Current direction of a current flowing in thewinding3 is specified by a current direction switch signal as shown inFIG. 16. That is, each value of the stepwise wave shows the amount of the current target value, and the current direction switch signal shows the direction of current. Further, to avoid sudden current changes due to stepwise level change, the stepwise wave smoothed by integrating means such as low pass filter is sent to thecomparator16 as a current target value.
The stepwise wave sampling a sinusoidal wave is not always required. In terms of mounting area, a stepwise wave sampling pseudo-sinusoidal wave, or stepwise wave out of sinusoidal waves may be also used. If sudden current changes by stepwise level changes may be permitted, unsmoothed stepwise waves may be sent to thecomparator16.
*** Patent Document 1: JP-A-2004-215385
According to the conventional steeping motor driving apparatus, however, waveform of a current flowing in the winding3 may be distorted due to the response delay of thesense amplifier22.
This problem is discussed by referring toFIG. 17 toFIG. 22B.
FIG. 17 is a circuit diagram of general sense amplifier structure and PWM OFF period operation point. Thesense amplifier22 include Pchannel MOS transistors30a,30band30c, Nchannel MOS transistors31a,31band31c, anddifferential transistors32aand32b, acurrent source33, and aphase compensation capacitor34. Thegain setting resistors23 and24 have the same resistance value R, with the gain doubled.
FIG. 18 shows general sense amplifier structure and PWM ON period operation point.FIGS. 19A to19C are current path diagrams when changing the phases (reference sign “35” in the diagram denotes a current path).FIGS. 20A to20E are current waveform diagrams when the current target value is large in the conventional stepping motor driving apparatus.FIGS. 21A to21E are current waveform diagrams when the current target value is small in the conventional stepping motor driving apparatus.FIGS. 22A and 22B are waveform diagrams showing current waveform distortion in the conventional stepping motor driving apparatus.
During PWM OFF period, because of regenerative operation explained above, a current does not flow in thedetection resistor21. As a result, a grounding voltage is supplied to the non-inverting input terminal of thesense amplifier22, as shown Vin+=0 V inFIG. 17.
Thesense amplifier22 cannot output a voltage lower than the minimum voltage determined by a constant current flowing from Pchannel MOS transistor30cand ON resistance of Nchannel MOS transistor31c. Even if an amplifier of so-called rail-to-rail type is used, 0 V cannot be outputted when the minimum voltage of thesense amplifier22 is 0 V.
InFIG. 17, the minimum voltage is 20 mV, and Vout is 0.02 V. At this time, a half voltage, that is, 10 mV is fed to the non-inverting input terminal of thesense amplifier22 owing to its structure, showing inFIG. 17 as Vin−=0.01 V. In the state shown inFIG. 17, relation of virtual grounding of thesense amplifier22 is broken, anddifferential transistors32aand32bare not in balanced state, and a voltage nearly equal to the voltage ofpower source1 is applied to thephase compensation capacitor34.FIG. 17 shows it as Vc=VCC.
Hereinafter, the state in which relation of virtual grounding is broken is called that the loop of the sense amplifier is out. An electric charge of [Ccomp×(VCC−20 mV)] is accumulated in thephase compensation capacitor34, where Ccomp is the capacitance of thephase compensation capacitor34.
FIG. 18 shows an operation point of the sense amplifier during PWM ON period. In PWM ON period, since a current flows in thedetection resistor21, a voltage determined by the current flowing indetection resistor21 and resistance of thedetection resistor21 is applied to the non-inverting input terminal of thesense amplifier22. InFIG. 18, it is shown as Vin+=0.2 V. At inverting terminal of thesense amplifier22, 0.2 V is fed, and thesense amplifier22 outputs 0.4 V.
InFIG. 18, Vin− is 0.2 V and Vout is 0.4 V. At this time, the relation of virtual grounding of thesense amplifier22 is maintained, and thedifferential amplifiers32aand32bare in balanced state. A gate voltage Vgs1 of Nchannel MOS transistor31cis applied to thephase compensation capacitor34, so that the voltage determined by a constant current flowing from Pchannel MOS transistor30cand ON resistance of Nchannel MOS transistor31cmay be 0.4 V.FIG. 18 shows it as Vc=Vgs1.
Hereinafter, the state in which the relation of the virtual grounding is maintained is called that the loop of the sense amplifier is maintained. An electric charge of [Ccomp×(Vgs1−0.4 V)] is accumulated in thephase compensation capacitor34.
Even when a voltage is supplied from thedetection resistor21, if the loop of the sense amplifier is out, thesense amplifier22 does not respond and the detected current value cannot be judged correctly. To judge the detected current value correctly after transition from PWM OFF period to PWM ON period, it is required to transfer from the operation point shown inFIG. 17 to that shown inFIG. 18, and in particular, the electric charge in thephase compensation capacitor34 is a problem.
As mentioned above, an electric charge of [Ccomp×(VCC−20 mV)] is accumulated at the operation point shown inFIG. 17, and an electric charge of [Ccomp×(Vgs1−0.4 V)] is accumulated at the operation point inFIG. 18. The detected current value cannot be judged correctly unless an electric charge of [Ccomp×4.4 V] is discharged, where VCC=5.02 V and Vgs1=1.0 V. The time required for discharge is the time until thesense amplifier22 can correctly judge the detected current value after transition from PWM OFF period to PWM ON period, and it becomes hence “a detection delay”.
Such discharge is caused by a difference in currents flowing in the Nchannel MOS transistor31band thedifferential transistor32b. As thedifferential transistor32bis turned off more completely (as the larger voltage is input to the non-inverting terminal of thesense amplifier22 after transition to PWM ON period, thedifferential transistor32bis turned off more completely), the required discharge time becomes shorter, and the detection delay is reduced.
To the contrary, as the input voltage to the non-inverting terminal ofsense amplifier22 is smaller after the transition to PWM ON period, that is, as the current flowing in thedetection resistor21 is smaller, thedifferential transistor32bis turned off more poorly, and the required discharge time becomes longer, with the detection delay being longer. Therefore, the detection delay appears more significantly at driving steps of the smaller current target value, such as driving steps=0, 31 to 33, 63 shown inFIG. 16. Since the driving step of the small current target value is close to the point of inverting the polarity of current, this is called “zero cross” hereinafter. InFIG. 16, the zero cross is indicated by point A.
In PWM OFF period explained above, the loop of the sense amplifier is out, and the loop of the sense amplifier may not be out also in PWM ON period.
The operation when the loop of the sense amplifier is out in PWM ON period is explained by referring toFIG. 16 andFIGS. 19A to19C.
In PWM ON period, as shown inFIG. 19A, power is supplied to the winding3, and a current flows into the suppliedcurrent measuring section20. InFIG. 19A,transistors8 and9 turn on, andtransistors6 and7 turn off. In PWM OFF period, on the other hand, because of the regenerative operation as shown inFIG. 19B, a current does not flow into the suppliedcurrent measuring section20. InFIG. 19B, thetransistor9 turn on, and thetransistors6,7 and8 turn off. In PWM OFF period shown inFIG. 19B, the current flowing in the winding3 attenuates. But at driving step=32 or 0 shown inFIG. 16, since the current is small, the voltage applied across the winding3 is small in PWM OFF period, and hence the current flowing in the winding3 hardly deteriorates.
When the advancing time of driving steps is short, that is, when the rotating speed of the stepping motor is fast, the current of winding3 does not attenuate fully to 0 in transition to the next driving step. When the driving step transits from 32 to 33 or from 0 to 1 with the current left over in the winding3, the current direction switch signal is changed over and the current at the winding3 is inverted. Hence, transistors different from that in one driving step before turn on, as shown in FIG.19C. InFIG. 19C, thetransistors8 and9 turn off, and thetransistors6 and7 turn on. At this time, the current at the winding3 flows from the ground to the power source, and the current flows into the suppliedcurrent measuring section22 reversely from the ground, and the current further flows into thedetection resistor21 reversely from the ground.
As a result, a negative potential is generated across thedetection resistor21, and is also applied in thesense amplifier22. When the negative potential is applied, the loop of the sense amplifier is out with the same reason as in the case of input of grounding potential mentioned above, and the detection delay occurs. Therefore, as indicated by A inFIG. 16, right after changeover of the current direction switch signal PHASE, that is, immediately before inversion of a current of the winding3, the loop of the sense amplifier is out even after the transition to PWM ON period, and the detection delay occurs.
Current waveform in the case of the detection delay is explained by referring toFIG. 20 andFIG. 21. InFIG. 20 andFIG. 21, the portion indicated by A is the detection delay. InFIG. 20, during the detection delay, the detected current value does not exceed the current target value. In this case, if there is a detection error, there is no adverse effect on detection operation.
When the attenuation in PWM OFF period is large, it takes a long time until reaching the current target value after the transition to PWM ON period. Thus the actual current does not reach the current target value during the detection delay, and it is highly possible that adverse effect does not occur as shown inFIG. 20. The higher the current target value, the larger is the attenuation in the regenerative operation in PWM OFF period, and at driving step of high current target value, the effect is none or very small.
InFIG. 21, during the detection delay, the detected current value is over the current target value. In this case, since the detection is not conducted during the detection delay, although the current exceeds the current target value, the PWM ON period continues, and hence it is out of the current target value. When the attenuation in PWM OFF period is small, it takes only a short time to reach the current target value after the transition to PWM ON period. Thus the actual current reaches the current target value within the detection delay, and hence it is highly possible that adverse effects occur as shown inFIG. 21.
The lower the current target value, the smaller is the attenuation in the regenerative operation in PWM OFF period, and it is highly possible that adverse effects occur at driving step of the low current target value. It means, particularly near zero cross, that the waveform is distorted obviously due to deviation from the target current. That is, as shown in portion A inFIG. 22, near zero cross, the current is deviated to the larger side from the current target value, and the waveform is distorted.
Thus, according to the conventional stepping motor driving apparatus, due to the detection delay of the sense amplifier, obvious distortion of the waveform may occur near zero cross in particular. Due to the waveform distortion, vibration and noise cannot be decreased sufficiently in application, more particularly, to an electronic imaging apparatus, and there is a further demand for lower vibration and lower noise of the stepping motor operation.
The invention is directed to the above problems, and hence has an object to present a stepping motor driving apparatus and method capable of lowering vibration and noise in operation of the stepping motor.
SUMMARY OF THE INVENTION In a first aspect of the invention, a stepping motor driving apparatus includes a detector operable to detect a current supplied to a winding included in the stepping motor, a first offset adding section operable to add an offset to the output of the detector, an amplifier operable to amplify the output of the first offset adding section, a reference signal generator operable to generate a reference signal which indicates a current limit, a second offset adding section operable to add an offset to the output of the reference signal generator, a switching section operable to supply a power to the winding when the switching section is turned on, and cut off a power to the winding when the switching section is turned off, and a PWM controller operable to turn on the switching section every predetermined period, and turn off the switching section when the output of the amplifier exceeds the output of the second offset adding section.
In a second aspect of the invention, a stepping motor driving apparatus includes a detector operable to detect a current supplied to a winding included in the stepping motor, a first offset adding section operable to add an offset to the output of the detector, an amplifier operable to amplify the output of the first offset adding section, an offset subtracting section operable to subtract an offset from the output of the amplifier, a reference signal generator operable to generate a reference signal which indicates a current limit, a switching section operable to supply a power to the winding when the switching section is turned on, and cut off a power to the winding when the switching section is turned off, and a PWM controller operable to turn on the switching section every predetermined period, and turn off the switching section when the output of the offset subtracting section exceeds the current limit indicated by the reference signal.
In a third aspect of the invention, a stepping motor driving apparatus includes a detector operable to detect a current supplied to a winding included in the stepping motor, a first offset adding section operable to add an offset to the output of the detector, an amplifier operable to amplify the output of the first offset adding section, a reference signal generator operable to generate a reference signal which indicates a current limit, a switching section operable to supply a power to the winding when the switching section is turned on, and cut off a power to the winding when the switching section is turned off, and a PWM controller operable to turn on the switching section every predetermined period, and turn off the switching section when the output of the amplifier exceeds the current limit indicated by the reference signal.
In a fourth aspect of the invention, a stepping motor driving apparatus includes a detector operable to detect a current supplied to a winding included in the stepping motor, a first offset adding section operable to add an offset to the output of the detector, a selector operable to select and output either one of the output of the detector and the output of the first offset adding section, an amplifier operable to amplify the output of the selector, a reference signal generator operable to generate a reference signal which indicates a current limit, a switching section operable to supply a power to the winding when the switching section is turned on, and cut off a power to the winding when the switching section is turned off, a PWM controller operable to turn on the switching section every predetermined period, and turn off the switching section when the output of the amplifier exceeds the current limit indicated by the reference signal, and a selector drive signal generator operable to control the selector.
The selector drive signal generator judges turn-off of the switching section by the PWM controller, and outputs the judging result. The selector receives the judging result from the selector drive signal generator, and selects and output either one of the output of the detector and the output of the first offset adding section based on the received result.
In the stepping motor driving apparatus of the forth aspect, the selector may select, based on the judging result, the output of the first offset adding section in whole period in which the switching section is in turn-off state, and select the output of the detector in whole period in which the switching section is in turn-on state.
Alternatively, the selector may select the output of the first offset adding section in a part of period in which the switching section is in turn-off state, and select the output of the detector in the remaining period in which the switching section is turn-off state and in whole period in which the switching section is in turn-on state.
Alternatively, the selector may select the output of the first offset adding section in a part of period in which the switching section is in turn-on state and whole period in which the switching section is in turn-off state, and select the output of the detector in the remaining period in which the switching section is in turn-on state.
Alternatively, the selector may select the output of the first offset adding section in a part of period in which the switching section is in turn-on state and in a part of period in which the switching section is in turn-off state, and select the output of the detector in the remaining period in which the switching section is in turn-on state and in the remaining period in which the switching section is in turn-off state.
Furthermore, the selector drive signal generator may further judge that changeover of a winding current direction is instructed, and output the judging result. In this case, the selector may select, based on the judging result, the output of the first offset adding section in whole period in which the switching section is in turn-off state and in a predetermined period after the changeover of a winding current direction is instructed, and select the output of the detector in a period determined by reducing the predetermined period from a whole period in which the switching section is in turn-on state.
Alternatively, the selector may select the output of the first offset adding section in a part of period in which the switching section is in turn-off state and in a predetermined period after the changeover of a winding current direction is instructed, and select the output of the detector in a period determined by reducing the predetermined period from the remaining period in which the switching section is turn-off state and a whole period in which the switching section is in turn-on state.
Alternatively, the selector may select the output of the first offset adding section in a part of period in which the switching section is in turn-on state, in whole period in which the switching section is in turn-off state, and in a predetermined period after the changeover of a winding current direction is instructed, and select the output of the detector in a period determined by reducing the predetermined period from the remaining period in which the switching section is in turn-on state.
Alternatively, the selector may select the output of the first offset adding section in a part of period in which the switching section is in turn-on state, in a part of period in which the switching section is in turn-off state, and in a predetermined period after the changeover of a winding current direction is instructed, and select the output of the detector in a period determined by reducing the predetermined period from the remaining period in which the switching section is in turn-on state and the remaining period in which the switching section is in turn-off state.
In a fifth aspect of the invention, a stepping motor driving method includes detecting a current supplied to a winding included in a stepping motor, adding a first offset to the detected current, amplifying the detected current with the added offset, generating a reference signal which indicates a current limit, adding a second offset to the reference signal, and controlling turn-on and turn-off of a switching section, the switching section being operable to supply a power to the winding when the switching section is turned on, and cut off a power to the winding when the switching section is turned off. The controlling turns on the switching section every predetermined period, and turn off the switching section when the amplified current exceeds the reference signal with the added second offset.
In a sixth aspect of the invention, a stepping motor driving method includes detecting a current supplied to a winding included in a stepping motor, adding a first offset to the detected current, amplifying the detected current with the added offset, subtracting a second offset from the amplified current, generating a reference signal which indicates a current limit, and controlling turn-on and turn-off of a switching section, the switching section being operable to supply a power to the winding when the switching section is turned on, and cut off a power to the winding when the switching section is turned off. The controlling turns on the switching section every predetermined period, and turn off the switching section when the current subtracted with the second offset exceeds the current limit indicated by the reference signal.
In a seventh aspect of the invention, a stepping motor driving method includes detecting a current supplied to a winding included in a stepping motor, adding an offset to the detected current, amplifying the detected current with the added offset, generating a reference signal which indicates a current limit, and controlling turn-on and turn-off of a switching section, the switching section being operable to supply a power to the winding when the switching section is turned on, and cut off a power to the winding when the switching section is turned off. The controlling turns on the switching section every predetermined period, and turn off the switching section when the amplified current exceeds the current limit indicated by the reference signal.
In an eighth aspect of the invention, a stepping motor driving method includes detecting a current supplied to a winding included in a stepping motor, adding an offset to the detected current, selecting either one of the current with the added offset and the detected current without the offset, amplifying the selected current, generating a reference signal which indicates a current limit, and turning on a switching section every predetermined period, and turning off the switching section when the amplified current exceeds the current limit indicated by the reference signal. The selecting judges turn-off of the switching section and selects the current based on the judging result.
According to a stepping motor driving apparatus and method of the invention, adding the offset to the input of the detecting section can remove the detection delay and prevent waveform distortion, in particular, near the zero cross. Further the second offset is added in order to cancel the offset inputted to the detecting section, and thus the deviation of detected current caused by the added offset to the detecting section can be prevented. Reduction of the detection delay and prevention of the waveform distortion can achieve lower vibration and lower noise in the stepping motor.
BRIEF DESCRIPTION OF THE DRAWINGSFIG. 1 is a block diagram of a structure of a stepping motor driving apparatus in a first embodiment of the invention.
FIGS. 2A to2E are current waveform diagrams of the stepping motor driving apparatus in the first embodiment of the invention.FIG. 2A shows a waveform of an output of a reference pulse generator.FIG. 2B shows a waveform of a comparator output.FIG. 2C shows a waveform of a flip flop output.FIG. 2D shows waveforms of an output (“J”) of a reference signal generator (target current) and a winding current (“K”).FIG. 2E shows waveforms of an output (X) of a reference signal generator with offset added (target current), an output (“X”) of the reference signal generator (target current), and an output (“Y”) of a supplied current measuring section (detected current).
FIGS. 3A to3D show a current path of the stepping motor driving apparatus in the first embodiment of the invention.
FIG. 4 is a diagram of example of a detecting section in the first embodiment of the invention.
FIGS. 5A to5D are diagrams of example of a first offset adding section in the first embodiment of the invention
FIG. 6 is a diagram of a sense amplifier structure and PWM OFF period operation point in the first embodiment of the invention.
FIG. 7 is a diagram of a sense amplifier structure and PWM ON period operation point in the first embodiment of the invention.
FIG. 8 is a block diagram of a structure of a stepping motor driving apparatus in a second embodiment of the invention.
FIGS. 9A to9D are diagrams of example of an offset subtracting section in the second embodiment of the invention.
FIG. 10 is a block diagram of a structure of a stepping motor driving apparatus in a third embodiment of the invention.
FIG. 11 is a block diagram of a structure of a stepping motor driving apparatus in a fourth embodiment of the invention.
FIGS. 12A to12C are waveform diagrams of a stepping motor driving apparatus in the fourth embodiment of the invention: (i) an output of a reference pulse generator, (ii) a comparator output, (iii) a flip flop output (PWM controller output), (iv) a current direction switch signal PHASE, (v) an output of a selector drive signal generator, (vi) an output (“X”) of a reference signal generator (target current) and an output (“Y”) of a supplied current measuring section (detected current).
FIG. 13 is a block diagram of a structure of a stepping motor driving apparatus in a fifth embodiment of the invention.
FIGS. 14A to14C are waveform diagrams of the stepping motor driving apparatus in the fifth embodiment of the invention: (i) an output of a reference pulse generator, (ii) a comparator output, (iii) a flip flop output (PWM controller output), (iv) a current direction switch signal PHASE, (v) an output of a selector drive signal generator, (vi) an output (“X”) of a reference signal generator (target current) and an output (“Y”) of a supplied current measuring section (detected current).
FIG. 15 is a structure of conventional stepping motor driving apparatus.
FIG. 16 is a diagram of reference signal and current direction switch signal in conventional stepping motor driving apparatus.
FIG. 17 is a diagram of a general sense amplifier structure and PWM OFF period operation point.
FIG. 18 is a diagram of general sense amplifier structure and PWM ON period operation point.
FIGS. 19A to19C are current path diagrams in phase changeover (commutation).
FIGS. 20A to20E are current waveform diagrams with large current target value in the conventional stepping motor driving apparatus.FIG. 20A shows a waveform of an output of a reference pulse generator.FIG. 20B shows a waveform of a comparator output.FIG. 20C shows a waveform of a flip flop output.FIG. 20D shows waveforms of an output (“J”) of a reference signal generator (target current) and a winding current (“K”).FIG. 20E shows waveforms of an output (X) of a reference signal generator (target current) and an output (“Y”) of a supplied current measuring section (detected current).
FIGS. 21A to21E are current waveform diagrams with small current target value in the conventional stepping motor driving apparatus.FIG. 21A shows a waveform of an output of a reference pulse generator.FIG. 21B shows a waveform of a comparator output.FIG. 21C shows a waveform of a flip flop output.FIG. 21D shows waveforms of an output (“J”) of a reference signal generator (target current) and a winding current (“K”).FIG. 21E shows waveforms of an output (X) of a reference signal generator (target current) and an output (“Y”) of a supplied current measuring section (detected current).
FIG. 22A shows an ideal current waveform andFIG. 22B shows a current waveform with distortion, in the conventional stepping motor driving apparatus.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the invention are described specifically below with reference to the accompanying drawings. In the following explanation, same members and parts as mentioned above are identified with same reference numerals, and detailed description is omitted.
First Embodiment The stepping motor driving apparatus in the first embodiment of the invention is described below with reference toFIG. 1 andFIG. 16, andFIG. 2A toFIG. 7.
FIG. 1 is a block diagram of a stepping motor driving apparatus in the first embodiment. A stepping motor has plural phases of windings, and elements provided for a winding are identical in each phase. Thus the following explanation is made for elements provided for one phase of winding.
FIG. 16 is a diagram showing the relation of a reference signal and a current direction switch signal PHASE in conventional stepping motor driving apparatus. The reference signal and current direction switch signal PHASE of the embodiment are same as in the prior art.
InFIG. 1, the stepping driving apparatus receives a power from apower source1 and drives a steppingmotor2. The stepping motor which is a target to be controlled includes a winding3 and arotor4.
The stepping motor driving apparatus includes aswitching section5 for controlling power supply to the winding3, areference signal generator14 for generating a reference signal indicating a current limit, a pulse width modulation (PWM)controller15, and supplycurrent measuring section20.
Theswitching section5 includestransistors6 to9 andflywheel diodes10 to13 which form a current path. ThePWM controller15 includes acomparator16, a flip-flop17, areference pulse generator18, and aconduction logic section19.
The stepping motor driving apparatus in the first embodiment performs pulse width modulation (PWM) control, more specifically, performs PWM control in a current chopper method such that the average current supplied to the winding3 approaches gradually the current limit value generated by thereference signal generator14. In the following explanation of operation, the current flowing in the winding3 which is detected by the suppliedcurrent measuring section20 is called a “detected current value”, and the reference signal expressing the current limit generated by thereference signal generator14 is called a “current target value”.
The current target value generated by thereference signal generator14 is explained. Operation of thereference signal generator14 is same as in the conventional stepping motor driving apparatus, and generates a stepwise wave increasing and decreasing in steps to output it as the current target value. As the current target value increases or deceases in steps, the stepping motor rotates by each unit angle. Advance of steps of the current target value is determined by input of CLK for instructing the step advance, but same effects are obtained by measuring of step advance intervals by a timer.
The period of advancing the step of the current target value is determined by the input CLK period, or the timer period for determining the step advance interval. Depending on the period of advancing the step of the current target value, the period of stepping motor rotating by unit angle is determined, and thus the period of rotation of the stepping motor is determined. The current target value is preferred to be a sinusoidal signal from the viewpoint of low noise and low vibration. Thereference signal generator14 generates a stepwise wave obtained by sampling the sinusoidal wave.
FIG. 16 shows a stepwise wave sampled in 64 steps as a current target value. Along with advance in steps, each value of the stepwise wave sampling the sinusoidal wave at each step is provided sequentially, resulting in a stepwise wave sampling the sinusoidal wave.
Current direction of a current flowing in the winding3 is specified by the current direction switch signal PHASE as shown inFIG. 16. That is, the size of the stepwise wave shows the size of the current target value, and current direction switch signal PHASE shows a current direction. Further, to avoid sudden current changes by stepwise level changes, the stepwise wave smoothed by integrating means such as a low pass filter is sent as the current target value.
The stepwise wave by sampling sinusoidal wave is not always required, but from the viewpoint of mounting area, a stepwise wave by sampling pseudo-sinusoidal wave, or a stepwise wave other than a sinusoidal wave may be also used. If sudden current changes by stepwise level changes may be permitted, an unsmoothed stepwise wave may be also outputted.
ThePWM controller15 includes thecomparator16, flip-flop17,reference pulse generator18, andconduction logic section19, and performs PWM control for the current of the winding.
Operation by PWM control is explained specifically by referring toFIGS. 2A to2E.FIGS. 2A to2E show temporal changes of principal signals relating to PWM control operation, together with current waveform of the stepping motor driving apparatus.
Thereference pulse generator18 outputs a signal of a specific period for instructing start of power supply to the winding3 to the set terminal of the flip-flop17 to set the flip-flop every specific period. As the flip-flop17 is set, theconduction logic section19 receiving the output signal of the flip-flop17 provides thetransistors6 to9 with a gate signal for turning on or off the transistors, such that either one oftransistors6 and9 and either one oftransistors7 and8 for composing theswitching section5 turns on in combination and timing not to cause penetration to the ground from the power source. Then the power supply to the winding3 is started and the current flowing in the winding3 increases.
The current direction switch signal PHASE entered in theconduction logic section19 decides which one oftransistors6 and9 and which one oftransistors7 and8 are turned on, that is, the direction of the current flowing in the winding3. A period in which the flip-flop17 is set and the current flowing in the winding3 increases due to supply of electric power to the winding3 is called “PWM ON period”. In every signal of specific period generated by thereference pulse generator18, power feed to the winding3 is started, causing transition to the PWM ON period. Hence the specific period generated by thereference pulse generator18 acts as the PWM period.
The gate signals for turning on the transistors are supplied to thetransistors6 and7 and the gate signal for turning off the transistors are supplied to thetransistors8 and9. For this case, the current path in PWM ON period is shown incurrent path42 inFIG. 3A. InFIG. 3A, a current flows from thepower source1 to the ground by way of thetransistor6, winding3,transistor7, and suppliedcurrent measuring section20, and thus the power is supplied from thepower source1 to the winding3.
In this embodiment, the suppliedcurrent measuring section20 is disposed between the ground and theswitching section5 to detect the current flowing to the ground by way of the suppliedcurrent measuring section20. But the suppliedcurrent measuring section20 can be disposed between thepower source1 and theswitching section5 to detect the current flowing from thepower source1 through the suppliedcurrent measuring section20. In this case, the same effects as in the embodiment can be obtained.
In this case, however, the detected current value and current target value are not based on the ground, but are based on thepower source1, and the magnitude relation of detected current value and current target value is opposite to the relation when based on the ground.
InFIG. 3A, the current flowing in the winding3 flows in thecurrent path42 and is detected by the suppliedcurrent measuring section20. The suppliedcurrent measuring section20 outputs the detected current value flowing in the winding3. Right after transition to PWM ON period, the detected current value may include overshoot.
Overshoot occurs mainly when a discharge current of parasitic capacitor of theswitching section5, for example, a current due to discharge of electric charge of a parasitic capacitor between the drain and gate of thetransistor7, flows into the suppliedcurrent measuring section20. Therefore, if the suppliedcurrent measuring section20 andcomparator16 follow the overshoot, even though the current of the winding3 is not actually higher than the current target value, the detected current value may be falsely detected to exceed the current target value, because of the overshoot.
In such a case, during a specific time (called “mask time”) involving possible occurrence of overshoot, the current detection by the suppliedcurrent measuring section20 andcomparator16 is masked. In the embodiment, a set-priority flip-flop is used as the flip-flop17, and the pulse width of the signal output from thereference pulse generator18 is adjusted to a pulse width corresponding to the mask time to mask the current detection. That is, while thereference pulse generator18 is outputting a pulse width corresponding to the mask time, even if thecomparator16 detects falsely by overshoot, the flip-flop17 operates on set-priority principle and is not reset. During the mask time, fixing of the output of the suppliedcurrent measuring section20 or the output of thecomparator16 can provide the same effects.
Thecomparator16 receives a signal showing the detected current value and a signal showing the current target value. In the embodiment shown inFIG. 1, the signal showing the detected current value is the output of the suppliedcurrent measuring section20, and the signal showing the current target value is the sum of the current target value output from thereference signal generator14 and an offset by the second offset addingsection41. Operation and effect of the second offset addingsection41 are specifically described later.
Thecomparator16 compares the input signal that shows the detected current value with the signal showing the current target value, and resets the flip-flop17 when the signal showing the detected current value is higher than the signal showing the current target value, and starts regenerative operation. The period in which the flip-flop17 is reset and a current flowing in the winding3 is reduced by the regenerative operation is called “PWM OFF period”.
In this embodiment, the relation of set and reset of the flip-flop17 and PWM ON period and PWM OFF period are controlled, so that PWM ON period starts by setting of the flip-flop17 and PWM OFF period starts by resetting of the flip-flop17. But the relation may be controlled reversely, the same effects as in the embodiment can be obtained.
Theconduction logic section19 resets the flip-flop17 to supply a gate signal for turning off the transistor to thetransistors7 and8. When bothtransistors7 and8 are turned off, the period is transferred to PWM OFF period, power feed to the winding3 is cut off, and the current flowing in the winding3 begins to decrease due to the regenerative operation.FIG. 3B shows a current path in PWM OFF period with thetransistors6 and7 turned on just before transfer to PWM OFF period.
InFIG. 3B, the current flowing in the winding3 by regeneration flows through theflywheel diode11 andtransistor6 and decreases. In PWM OFF period, bothtransistors6 and9 can be turned on for the purpose of decreasing ripple of the current flowing in the winding3 by reducing decrement amount of the current flowing in the winding3. Power consumption by theflywheel diode11 is replaced by power consumption by ON resistance of thetransistor9, and decreases, so that the decrement amount of current flowing in the winding3 in PWM OFF period can be reduced. The current path in this case is shown as acurrent path42 inFIG. 3C.
InFIG. 3C, the current flowing in the winding3 by regeneration flows throughtransistors6 and9 to decrease. During PWM OFF period, bothtransistors6 and9 can be turned off to quickly decrease the current flowing in the winding3. The current path in this case is shown as acurrent path42 inFIG. 3D.
InFIG. 3D, the current flowing in the winding3 by regeneration flows through theflywheel diodes10 and11 to decrease. In the embodiment, theflywheel diodes10 to13 are provided, but they may be replaced by body diodes composed of back gate and drain oftransistors6 to9. In order to lessen the decrement amount of the current flowing in the winding3 during PWM OFF period, Schottky barrier diodes can be used instead offlywheel diodes10 to13.
After transition to PWM OFF period due to reset of the flip-flop17, thereference pulse generator18 sets the flip-flop17 every specific period, repeating the same operation. Repeat of current increase during PWM ON period and current decrease during PWM OFF period, the average current supplied to the winding3 gradually approaches the current target value. As the current target value increases and decreases in steps, the average current supplied to the winding3 increases and decreases in steps, and the windings of other phases than winding3 operate similarly, and the steppingmotor2 rotates at a rotating speed corresponding to the advance speed of the step.
Structure and operation of the suppliedcurrent measuring section20 are explained. The suppliedcurrent measuring section20 detects the current supplied from thepower source1 to the winding3 bytransistor6 to9 turned on to output it as the detected current value.
The suppliedcurrent measuring section20 in the embodiment includes adetection resistor21 as detecting means (detector), anamplifier25 as amplifying means, and a first offset addingsection40. Theamplifier25 is composed of asense amplifier22 and gain settingresistors23 and24, and the amplification factor of theamplifier25, that is, the gain from input to output of thesense amplifier22 is determined by thegain setting resistors23 and24.
InFIG. 1, thedetection resistor21 is used as detecting means. However instead ofdetection resistor21, as shown inFIG. 4, using the ON resistance ofMOS transistor44 generated when avoltage45 is applied to the gate can be used, the same effect as indetection resistor21 inFIG. 1 can be obtained. The current supplied to the winding3 flows into the ground through thedetection resistor21, and generates a voltage across thedetection resistor21 which is determined by the resistance of thedetection resistor21 and the flowing current. The first offset addingsection40 adds an offset to the voltage across thedetection resistor21. The voltage with the added offset is supplied to the non-inverting input terminal (+) of thesense amplifier22 composing theamplifier25. Thesense amplifier22, that is, the amplifying means25 amplifies the input voltage with a gain and outputs the amplified voltage to thecomparator16 as the detected current value.
With reference toFIGS. 5A to5D, a specific example of offset addition by the first offset addingsection40 is described.
InFIG. 5A, the first offset addingsection40 is composed of theresistor47 andcurrent source48. The voltage determined by the resistance of theresistor47 and the current value of thecurrent source48 is the offset to be added. A diode can be used instead of theresistor47.
InFIG. 5B, the first offset addingsection40 is composed of acurrent source48, a gate appliedvoltage49, and aMOS transistor50. The offset to be added is sum of ON resistance of theMOS transistor50 determined by the gate appliedvoltage49 and the voltage determined by the current value of thecurrent source48. TheMOS transistor50 can be realized by either P channel MOS transistor or N channel MOS transistor.
InFIG. 5C, the first offset addingsection40 is achieved by a source follower by aMOS transistor51 and acurrent source52. a voltage between the gate and source is the offset. Instead of the source follower byMOS transistor51, the emitter follower by a bipolar transistor may be used.
InFIG. 5D, thesense amplifier22 is composed of Pchannel MOS transistors30ato30c, Nchannel MOS transistors31ato31c,differential transistors32aand32b, and acurrent source33. The first offset addingsection40 is composed ofdifferential transistors32aand32bfor composing thesense amplifier22. The offset occurring due to difference in size or number of pieces ofdifferential transistor32aand32bis the offset to be added. Instead of generating the offset by difference in size or number of pieces, the offset can be also generated by unbalancing the currents flowing in thedifferential transistors32aand32bby controlling a current flowing either one of thedifferential transistors32aand32b.
FIGS. 5A to5D showing the first offset adding section, the second offset adding section has the same structure as the first offset adding section. However, in a specific example ofFIG. 5D, thesense amplifier22 should be replaced with thecomparator16 for the second offset adding section.
FIG. 6 shows the PWM OFF period operation point when the offset is added by the first offset addingsection40, andFIG. 7 shows the PWM ON period operation point. Referring toFIG. 6 andFIG. 7, the operation of the sense amplifier when the offset is added by the first offset adding section is explained.
InFIG. 6 andFIG. 7, thegain setting resistors23 and24 are identical in resistance value R, and then the gain becomes twice. In PWM OFF period, since the regenerative operation is conducted, a current does not flow in thedetection resistor21. At this time, the voltage across thedetection resistor21 is the grounding voltage.
InFIG. 6, the offset by the first offset addingsection40 is 20 mV. Therefore, avoltage 20 mV as the sum of the voltage across thedetection resistor21 and the offset by the first offset addingsection40 is fed to the non-inverting input terminal of thesense amplifier22, as showing Vin+=0.02 V inFIG. 6. A voltage 0.02 V is fed to the inverting input terminal of thesense amplifier22 which in turn produces 0.04 V, as showing Vout=0.04 V inFIG. 6.
Herein, thesense amplifier22 cannot produce a voltage equal to or less than the minimum voltage which is determined by the constant current flowing from the Pchannel MOS transistor30cand the ON resistance of Nchannel MOS transistor31c. In the case of amplifier of so-called rail-to-rail type, if the minimum voltage of thesense amplifier22 is 0 V, it cannot produce an output of 0 V.
In the conventional stepping motor driving apparatus shown inFIG. 17, during PWM OFF period, the output of thesense amplifier22 is the minimum voltage of 20 mV. At this time, the relation of virtual grounding of thesense amplifier22 is broken, and thedifferential amplifiers32aand32bare not in a balanced state, and a voltage nearly equal to the voltage of thepower source1 is applied to thephase compensation capacitor34.
On the other hand, inFIG. 6 showing the embodiment, because of the offset by the first offset addingsection40, the output of thesense amplifier22 is 40 mV higher than the minimum voltage of 20 mV, maintaining the relation of virtual grounding of thesense amplifier22. At this time, since thedifferential amplifiers32aand32bare in the balanced state, a gate voltage Vgs2 of Nchannel MOS transistor31cis applied to thephase compensation capacitor34, so that the voltage determined by the constant current flowing from the Pchannel MOS transistor30cand the ON resistance of Nchannel MOS transistor31cbecomes 0.04 V. A state in which the relation of virtual grounding is maintained is called “the loop of the sense amplifier is maintained”, while a state in which the relation of virtual grounding is broken is called “the loop of the sense amplifier is out”. InFIG. 6, an electric charge of [Ccomp×(Vgs2−0.04 V)] is accumulated in thephase compensation capacitor34.
PWM ON period operation point is shown inFIG. 7. During PWM ON period, since a current flows in thedetection resistor21, the voltage across thedetection resistor21 is a voltage determined by the current flowing in thedetection resistor21 and the resistance of thedetection resistor21. When the voltage across thedetection resistor21 is 0.2 V and the offset by the first offset addingsection40 is 20 mV, a voltage 0.22 V is fed to the non-inverting input terminal of thesense amplifier22 as the sum of the voltage across thedetection resistor21 and the offset by the first offset addingsection40, as showing inFIG. 7 Vin+=0.22 V.
A voltage 0.22 V is fed to the inverting input terminal of thesense amplifier22 which in turn produces 0.44 V, as showing inFIG. 7 Vin−=0.22 V and Vout=0.44 V. At this time, too, the relation of virtual grounding of thesense amplifier22 is maintained, and thedifferential amplifiers32aand32bare in the balanced state, and thephase compensation capacitor34 is provided with a gate voltage Vgs3 of Nchannel MOS transistor31c, so that the voltage determined by the constant current flowing from the Pchannel MOS transistor30cand the ON resistance of Nchannel MOS transistor31cis 0.44 V.FIG. 7 shows Vc=Vgs3. An electric charge of [Ccomp×(Vgs3−0.44 V)] is accumulated in thephase compensation capacitor34.
In the embodiment shown inFIG. 6, also during PWM OFF period, the loop of sense amplifier is maintained, and thus in transition from PWM OFF period to PWM ON period, no transition occurs from the loop out state of the sense amplifier to the loop maintaining state. In order to maintain the loop of the sense amplifier even during PWM OFF period as in the embodiment, the offset “OFFSET” by the first offset addingsection40 is at least required to satisfy the condition by the following formula (1)
OFFSET≧Vmin/α (1)
where α is amplification factor of theamplifier25, and Vmin is minimum output voltage by thesense amplifier22.
More specifically, it is required to add a margin in consideration of variations of each value in formula (1) and offset by thesense amplifier22.
As mentioned above, an electric charge of [Ccomp×(Vgs2−0.04 V)] is accumulated at the operation point shown inFIG. 6, and an electric charge of [Ccomp×(Vgs3−0.44 V)] is accumulated at the operation point shown inFIG. 7. Considering from the square characteristics of input gate voltage and current in MOS transistor, there is no significant difference between Vgs2 and Vgs3, and hence it is approximately assumed to be Vgs2=Vgs3.
At this time, the electric charge of thephase compensation capacitor34 that must be discharged at the time of transition from PWM OFF period to PWM ON period is [Ccomp×0.4 V], which is about 1/10 smaller as compared with the electric charge [Ccomp×4.4 V] in the prior art shown inFIG. 17 andFIG. 18. Further, when the current is smaller and the voltage across thedetection resistor21 is smaller, the electric charge to be discharged becomes further smaller.
For example, when the voltage across thedetection resistor21 is 0.1 V, the electric charge to be discharged in the prior art is [Ccomp×4.2 V], and the electric charge [Ccomp×0.2 V] in the embodiment which is about 1/20 smaller. As mentioned above, the time required for discharge is equal to time until thesense amplifier22 comes to judge the detection current value correctly after the transition from PWM OFF period to PWM ON period, which is a detection delay. In the embodiment, the electric charge to be discharge is small, and as a result no detection delay occur. Therefore, the detection delay can be eliminated, and in particular waveform distortion near the zero cross can be prevented.
As explained above about the conventional stepping motor driving apparatus, when the current direction switch signal PHASE is changed over with the remaining current of the winding3 and then the current of the winding3 is inverted, the current of the winding3 flows from the ground into the power source. At this time, the current flows reversely into thesense amplifier22 from the ground, and then the current flows reversely also into thedetection resistor21 from the ground. As a result, a negative potential is generated across thedetection resistor21. The condition shown in formula (1) is provided for the voltage across thedetection resistor21 corresponding to the grounding voltage. To eliminate the detection delay also for the negative potential, it is required to satisfy the condition by the following formula (2)
OFFSET≧Vmin/α+Vneg (2)
wherein α is the amplification factor of theamplifier25, OFFSET is the offset by the first offset addingsection40, Vmin is the minimum voltage produced by thesense amplifier22, and Vneg is the maximum negative potential generated across the detection resistor.
The first offset addingsection40 adds the offset that satisfies the formula (2). Hence the detection delay can be eliminated and waveform distortion can be prevented even when the current direction switch signal PHASE is changed over to invert the current of winding3.
Second offset addingsection41 connected to thePWM controller15 is explained. By the offset added by the first offset addingsection40, the detected current value outputted from the suppliedcurrent measuring section20 may be actually deviated from the value corresponding to the current value flowing in thedetection resistor21.
InFIG. 2, the solid line denotes the detected current value after addition of the offset, and the dotted line is the detection current value before addition of the offset. As shown in part A inFIG. 2, even during PWM OFF period with no current flowing, the output of the supplied current measuring section does not become the grounding voltage because of the offset.
In the embodiment, to prevent the current flowing in the winding3 from deviating from the current target value due to the offset added by the first offset addingsection40, the offset by the second offset addingsection41 is added to the current target value. As indicated by the solid line inFIG. 2E, the output from the suppliedcurrent measuring section20, that is, the output from theamplifier25 is deviated from the value corresponding to the current value flowing actually in thedetection resistor21 indicated by the lower dotted line, by the product of the offset added by the first offset addingsection40 and the amplification factor of theamplifier25.
By setting the offset of the current target value provided by the second offset addingsection41 equal to the product of the offset added by the first offset addingsection40 and the amplification factor of theamplifier25, both the current target value fed actually to thecomparator16 and the current detected value are deviated by the same value. Thus the differential value fed to thecomparator16 is same as the value without either offset. Accordingly, the magnitude judgment of current target value and current detected value by thecomparator16 is same as when the offset is not provided, and detected current deviation due to the added offset can be prevented.
As explained herein, according to the stepping motor driving apparatus of the first embodiment, addition of the offset to the input of thesense amplifier22 allows the detection delay to be eliminated, and in particular waveform distortion near zero cross to be prevented. Further, addition of the second offset to cancel the offset added to the input of thesense amplifier22 allows deviation of detected current due to added offset to be prevented. As a result, low noise and low vibration in the stepping motor driving apparatus of the embodiment can be realized.
Second Embodiment The stepping motor driving apparatus in a second embodiment of the invention is similar to that in the first embodiment, except that offset subtracting section is provided instead of the second offset adding section of the first embodiment. Referring toFIG. 8 andFIG. 9, mainly the difference from the first embodiment is explained, and the same operations as in the first embodiment are omitted.
FIG. 8 is block diagram of a structure of the stepping motor driving apparatus in the second embodiment.FIG. 9 is a diagram of an example of the offset subtracting section in the second embodiment. A stepping motor has plural phases of windings, and elements provided for a winding are identical in each phase. Thus the following explanation is made for elements provided for one phase of winding.
The stepping motor driving apparatus as shown inFIG. 8 includes an offset subtractingsection55.
In the embodiment shown inFIG. 8, a signal showing the current target value is a current target value outputted from thereference signal generator14, and a signal showing the detected current value is a result of subtracting the offset by the offset subtractingsection55 from the output of the suppliedcurrent measuring section20. Detail of operation and effect of the offset subtractingsection55 is described later. Thecomparator16 compares the input signal showing the detected current value with the input signal showing the current target value, and resets the flip-flop17 when the signal showing the detected current value exceeds the signal showing the current target value, resulting in transition to the PWM OFF period.
Specific examples of offset subtraction by the offset subtractingsection55 are shown inFIGS. 9A to9D.
InFIG. 9A, the offset subtractingsection55 includes aresistor47 and acurrent source48. The voltage determined by resistance of theresistor47 and current value of thecurrent source48 is the offset to be subtracted. A diode may be used instead of theresistor47.
InFIG. 9B, the offset subtractingsection55 includes acurrent source48, a gate appliedvoltage49, and aMOS transistor50. The voltage determined by ON resistance of theMOS transistor50 determined by the gate appliedvoltage49 and current value of thecurrent source48 is the offset to be subtracted. TheMOS transistor50 may be either P channel MOS transistor or N channel MOS transistor.
InFIG. 9C, the offset subtractingsection55 includes source follower composed of aMOS transistor51 and acurrent source52, and the voltage between the gate and source is the offset to be subtracted. Instead of the source follower by theMOS transistor51, emitter follower by a bipolar transistor may be used.
InFIG. 9D, thecomparator16 includes Pchannel MOS transistors56ato56c, Nchannel MOS transistors57ato57c,differential transistors58aand58b, and acurrent source59. The offset subtractingsection55 includesdifferential transistors58aand58bcomposing thecomparator16. The offset occurring due to difference in size or the number of pieces ofdifferential transistors58aand58bis the offset to be subtracted. Instead of generating the offset by the difference in size or number of pieces, the offset may be also generated by increasing or decreasing the one of currents flowing indifferential transistors58aand58bto unbalance the currents flowing indifferential transistors58aand58b.
Structure and operation of suppliedcurrent measuring section20 are explained. The suppliedcurrent measuring section20 detects the current flowing from thepower source1 to the winding3 due to turn-on oftransistors6 to9, outputting a detected current value. The suppliedcurrent measuring section20 in this embodiment includes adetection resistor21 as detecting means, anamplifier25 as amplifying means, and a first offset addingsection40.
Theamplifier25 includes asense amplifier22 and gain settingresistors23 and24. The amplification factor of theamplifier25, that is, the gain of output to input of thesense amplifier22 is determined by thegain setting resistors23 and24.
InFIG. 8, thedetection resistor21 is used as detecting means. However as shown inFIG. 4, using the ON resistance of theMOS transistor44 with the gate appliedvoltage45 provided, the same operation as in thedetection resistor21 inFIG. 8 can be obtained. The current supplied to the winding3 flows into the ground through thedetection resistor21, and the voltage determined by the resistance of thedetection resistor21 and the flowing current is generated across thedetection resistor21. The voltage across thedetection resistor21 is added the offset by the first offset addingsection40, and then is fed to the non-inverting input terminal of thesense amplifier22 for composing theamplifier25. Thesense amplifier22, that is, theamplifier25 amplifies the input voltage by gain times, and sends the amplified voltage to the offset subtractingsection55.
In the embodiment shown inFIG. 8, same as in the first embodiment, during also PWM OFF period, the loop of the sense amplifier is maintained by the first offset addingsection40. Hence in transition from PWM OFF period to PWM ON period, transition from loop-out state to loop-maintained state of the sense amplifier does not take place.
As mentioned in the first embodiment, by determining the offset by the first offset addingsection40 so as to satisfy formulas (1) and (2), the detection delay can be eliminated, even when the current direction switch signal PHASE is changed and the current of the winding3 is inverted. In particular, waveform distortion near zero cross can be prevented.
The offset subtractingsection55 is explained. In this embodiment, instead of the second offset adding section in the first embodiment, the offset subtractingsection55 is provided. In this embodiment, too, same as in the first embodiment, the offset added by the first offset addingsection40 causes the output value from the suppliedcurrent measuring section20 to deviate from the value corresponding to the current actually flowing in thedetection resistor21. The output from the suppliedcurrent measuring section20 is fed into the offset subtractingsection55. To prevent the current flowing in the winding3 from deviating from the current target value, the value subtracting the offset by the offset subtractingsection55 is outputted to thecomparator16 as a detected current value.
As explained in the first embodiment, the output from the suppliedcurrent measuring section20, that is, the output from theamplifier25 is deviated from the value corresponding to the current value actually flowing in thedetection resistor21 indicated by the dotted line inFIG. 2, by the product of offset added by the first offset addingsection40 multiplied by the amplification factor of theamplifier25.
By setting the offset by the offset subtractingsection55 equal to the product of offset added by the first offset addingsection40 multiplied by the amplification factor of theamplifier25, the offset added by the first offset addingsection40 is canceled by the offset subtracted by the offset subtractingsection55 to be +/−0. As a result, judgment of current target value and current detected value by thecomparator16 is same as when no offset is applied, and thus deviation of the detected current due to the applied offset can be prevented.
As explained herein, according to the stepping motor driving apparatus of the second embodiment, the detection delay can be eliminated by adding the offset to the input of thesense amplifier22. In particular, waveform distortion near the zero cross can be prevented. Also by subtracting the offset for canceling the offset added to the input of thesense amplifier22, deviation of detected current due to the added offset can be prevented. In the embodiment, low noise and low vibration of stepping motor driving apparatus can be realized.
Third Embodiment The stepping motor driving apparatus in a third embodiment of the invention is similar to the stepping motor driving apparatus in the first embodiment, except that the second offset adding section of the first embodiment is not provided.
Referring toFIG. 10, mainly the difference from the first embodiment is explained, omitting the same operations as in the first embodiment.
FIG. 10 is block diagram of a structure of the stepping motor driving apparatus in the third embodiment. A stepping motor has plural phases of windings, and elements provided for a winding are identical in each phase. Thus the following explanation is made for elements provided for one phase of winding.
Thecomparator16 inputs a signal showing the detected current value and a signal showing the current target value. In the embodiment shown inFIG. 10, the signal showing the current target value is a current target value outputted from thereference signal generator14, and the signal showing the detected current value is an output from the suppliedcurrent measuring section20. Thecomparator16 compares the input signals showing the detected current value with the input signal showing the current target value, and resets the flip-flop17 when the signal showing the detected current value exceeds the signal showing the current target value, resulting in transition to PWM OFF period.
Structure and operation of the suppliedcurrent measuring section20 are explained.
The suppliedcurrent measuring section20 detects the current supplied from thepower source1 to the winding3 by turn-on of thetransistors6 to9, and outputs it as a detected current value. The suppliedcurrent measuring section20 in this embodiment includes adetection resistor21 as detecting means, anamplifier25 as amplifying means, and a first offset addingsection40.
Theamplifier25 includes asense amplifier22, and again setting resistors23 and24. The amplification factor of theamplifier25, that is, the gain of output to input of thesense amplifier22 is determined by thegain setting resistors23 and24.
InFIG. 10, thedetection resistor21 is used as detecting means. However as shown inFIG. 4, using the ON resistance of theMOS transistor44 with the gate appliedvoltage45 provided, the same action as in thedetection resistor21 inFIG. 10 can be obtained. The current supplied to the winding3 flows into the ground through thedetection resistor21, and the voltage determined by the resistance of thedetection resistor21 and the flowing current is generated across thedetection resistor21. The voltage across thedetection resistor21 is summed up with the offset by the first offset addingsection40, and then is fed to the non-inverting input terminal of thesense amplifier22 for composing theamplifier25. Thesense amplifier22, that is, theamplifier25 amplifies the input voltage by gain times, and sends the produced voltage to thecomparator16 as a detected current value.
In the third embodiment shown inFIG. 10, same as in the first embodiment, in PWM OFF period, too, the loop of the sense amplifier is maintained by the first offset addingsection40. Thus in transition from PWM OFF period to PWM ON period, transition from loop-out state to loop-maintained state of the sense amplifier does not take place.
As mentioned in the first embodiment, the offset by the first offset addingsection40 which is an offset satisfying formulas (1) and (2) allows the detection delay to be eliminated even when the current direction switch signal PHASE is changed over with the current of the winding3 inverted. In particular waveform distortion near zero cross can be prevented.
In this embodiment, too, same as in the first embodiment, because of the offset added by the first offset addingsection40, the output value from the suppliedcurrent measuring section20 is deviated from the value corresponding to the current value actually flowing in thedetection resistor21. When the offset to be added by the first offset addingsection40 is “offset” and the resistance of thedetection resistor21 is “Rcs”, the deviation of the detected current becomes “offset/Rcs”. The current value actually flowing in thedetection resistor21 is deviated in a direction to be smaller than the current target value.
The embodiment does not have the second offset adding section in the first embodiment or the offset subtracting section in the second embodiment. It is not capable of canceling the deviation of the current flowing in the winding3 from the current target value. When the deviation of the detected current is small and the deviation is within a permissible range, this embodiment is useful in terms of saving the number of components.
Regarding the current value actually flowing in the detection resistor, the deviation occurs in a direction so that the current is smaller than the current target value. This means, when the current target value is 0 A (Ampere), that the current flowing in the winding3 becomes 0 A securely regardless of fluctuations. The offset added by the first offset addingsection40 can be utilized as an offset which compensates that the current flowing in the winding3 is securely 0 A. When the current target value is 0 A, this embodiment is useful for compensating that the current flowing in the winding3 is securely 0 A.
As explained herein, according to the stepping motor driving apparatus of the third embodiment, the detection delay can be eliminated by adding the offset to the input of thesense amplifier22, and in particular waveform distortion near the zero cross can be prevented. The deviation of the detected current due to the offset added to the input of thesense amplifier22 occurs, but to the contrary, the added offset compensates that the current flowing in the winding3 is securely 0 A. Hence, in the embodiment, low noise and low vibration of the stepping motor driving apparatus can be realized.
Fourth Embodiment The stepping motor driving apparatus in a fourth embodiment of the invention is similar to that in the first embodiment, except that the second offset adding section is not provided, and that a selector for selecting either one of the output of the detecting means or the output of the first offset adding section to output it into a later stage. Further a selector drive signal generator for judging that the PWM controller turns off the switching section and controlling the selector based on the judging result is provided in this embodiment.
Referring toFIG. 11 andFIG. 12, mainly the difference from the first embodiment is explained, omitting the same operations as in the first embodiment.
FIG. 11 is a block diagram of a structure of the stepping motor driving apparatus in the fourth embodiment. The stepping motor driving apparatus includes aselector65 and a selectordrive signal generator66. A stepping motor has plural phases of windings, and elements provided for a winding are identical in each phase. Thus the following explanation is made for elements provided for one phase of winding.
FIGS. 12A to12C are waveform diagrams of the stepping motor driving apparatus of the fourth embodiment.
In the fourth embodiment shown inFIG. 11, thecomparator16 inputs a signal showing the detected current value and a signal showing the current target value. The signal showing the current target value is a current target value outputted from thereference signal generator14. The signal showing the detected current value is an output from theselector65 which selects either one of the output of thedetection resistor21 and the output of the first offset addingsection40 to output it into a later stage. Specific operation and effects of theselector65 are described later. Thecomparator16 compares the input signals showing the detected current value with the signal showing the current target value, and resets the flip-flop17 when the signal showing the detected current value exceeds the signal showing the current target value, resulting in transition to PWM OFF period.
Structure and operation of the suppliedcurrent measuring section20 are explained. The suppliedcurrent measuring section20 detects the current supplied from thepower source1 to the winding3 due to turn-on oftransistors6 to9, and outputs it as a detected current value. The suppliedcurrent measuring section20 in this embodiment includes adetection resistor21 as detecting means, anamplifier25 as amplifying means, a first offset addingsection40, and aselector65.
Theamplifier25 includes asense amplifier22, and gain settingresistors23 and24. The amplification factor of theamplifier25, that is, the gain of output to input of thesense amplifier22 is determined by thegain setting resistors23 and24.
InFIG. 11, thedetection resistor21 is used as detecting means. However as shown inFIG. 4, using the ON resistance of theMOS transistor44 with a gate appliedvoltage45 provided, the same action as indetection resistor21 inFIG. 11 can be obtained.
The current supplied to the winding3 flows into the ground through thedetection resistor21. The voltage determined by the resistance of thedetection resistor21 and the flowing current is generated across thedetection resistor21. The voltage across thedetection resistor21 is summed up with the offset by the first offset addingsection40, and then is fed to one of the terminals of theselector65. The voltage across thedetection resistor21 is applied to the other terminal of theselector65.
Theselector65 outputs optionally either one of the signal with offset and the signal without offset to the non-inverting input terminal of thesense amplifier22 for composing theamplifier25, depending on the command from the selectordrive signal generator66. Thesense amplifier22, that is, theamplifier25 amplifies the input voltage by gain times, and sends the amplified voltage to thecomparator16 as a detected current value. In transition from PWM OFF period to PWM ON period, as far as theselector65 is maintaining the output of the first offset addingsection40 to thesense amplifier22, same as in the first embodiment, the loop of thesense amplifier22 is maintained by the first offset addingsection40. Hence transition from loop-out state to loop-maintained state of thesense amplifier22 does not take place. That is, the detection delay is eliminated, and waveform distortion can be prevented.
The control timing of selecting operation of theselector65 by the selectordrive signal generator66 is explained by referring toFIGS. 12A to12C.
FIG. 12A shows waveforms when theselector65 passes the output of first offset addingsection40 in PWM OFF period and the output of thedetection resistor21 in the remaining period.
InFIG. 12A, a signal “A” is the output of the selectordrive signal generator66 when theselector65 selects and passes the output of the first offset addingsection40. A signal “B” is the output of the selectordrive signal generator66 when theselector65 selects and passes the output of thedetection resistor21. During PWM OFF period, the output of the selectordrive signal generator66 outputs a signal “A” to passes the output of the first offset addingsection40, and thus as explained in the first embodiment, the loop of thesense amplifier22 is maintained. In PWM ON period, the output of the selectordrive signal generator66 outputs a signal “B” to pass the output of thedetection resistor21. During PWM ON period, a current flows in thedetection resistor21 and the loop of thesense amplifier22 is maintained. Hence transition from loop-out state to loop-maintaining state of thesense amplifier22 does not take place. That is, the detection delay is eliminated, and waveform distortion is prevented.
During PWM ON period, since the output of thedetection resistor21 is fed to thesense amplifier22 not through the first offset addingsection40, deviation of the detected current due to the first offset addingsection40 does not occur. However, when the current direction switch signal PHASE is changed over and the current of the winding3 is inverted, if a negative potential occurs in thedetection resistor21, the detection delay occurs. But when negative potential disappears, the detection delay also disappears.
FIG. 12B shows a waveform when theselector65 passes the output of the first offset addingsection40 in a specified time before transition from PWM OFF period to PWM ON period, and passes the output of thedetection resistor21 in the remaining period.
Also inFIG. 12B, a signal “A” is the output of the selectordrive signal generator66 when theselector65 selects and passes the output of the first offset addingsection40. A signal “B” is the output of the selectordrive signal generator66 when theselector65 selects and passes the output of thedetection resistor21. In a specified time before transition from PWM OFF period to PWM ON period, the output of the selectordrive signal generator66 outputs A to pass the output of the first offset addingsection40. As explained in the first embodiment, the loop of thesense amplifier22 is maintained.
In the successive PWM ON period, the selectordrive signal generator66 outputs a signal “B” to passes the output of thedetection resistor21. During PWM ON period, a current flows in thedetection resistor21, and the loop of thesense amplifier22 is maintained, and hence transition from loop-out state to loop-maintained state of thesense amplifier22 does not occur. That is, the detection delay is eliminated, and waveform distortion is prevented.
However, while the output of the selectordrive signal generator66 outputs a signal “B” during PWM OFF period, the loop of thesense amplifier22 is out, and thus a specified period of transition from PWM OFF period to PWM ON period requires more time than that longer than the time required for changing from loop-out state to loop-maintained state of thesense amplifier22. Otherwise, the transition from PWM OFF period to PWM ON period with thesense amplifier22 out of loop may occur, and hence the detection delay may occur.
During PWM ON period, since the output of thedetection resistor21 is fed to thesense amplifier22 not through the first offset addingsection40, deviation of the detected current due to the first offset addingsection40 does not occur. When the current direction switch signal PHASE is changed over and the current of the winding3 is inverted, if a negative potential occurs in thedetection resistor21, the detection delay occurs. In this case, when the negative potential disappears, the detection delay also disappears.
FIG. 12C shows a waveform when theselector65 passes the output of the first offset addingsection40 in PWM OFF period and in a specified time after the transition from PWM OFF period to PWM ON period, and passes the output of thedetection resistor21 in the remaining period.
InFIG. 12C, too, a signal “A” is the output of the selectordrive signal generator66 when theselector65 selects and passes the output of the first offset addingsection40. A signal “B” is the output of the selectordrive signal generator66 when theselector65 selects and passes the output of thedetection resistor21. In PWM OFF period and in a specified period after the transition from PWM OFF period to PWM ON period, the selectordrive signal generator66 outputs a signal “A” to pass the output of the first offset addingsection40. Thus as explained in the first embodiment, the loop of thesense amplifier22 is maintained. After a specified time following the transition from PWM OFF period to PWM ON period, the selectordrive signal generator66 outputs a signal “B” to pass the output of thedetection resistor21. During PWM ON period, a current flows in thedetection resistor21 and the loop of thesense amplifier22 is maintained. Hence the transition from loop-out state to loop-maintained state of thesense amplifier22 does not take place. That is, the detection delay is eliminated, and waveform distortion is prevented.
However, in PWM ON period, since the output of thedetection resistor21 is applied to the sense amplifier not through the first offset addingsection40, and deviation of the detected current due to the first offset addingsection40 does not occur. In PWM OFF period and while the output of the selectordrive signal generator66 outputs a signal “A”, deviation of the detection current by the first offset addingsection40 occurs. To the contrary, when the current direction switch signal PHASE is changed over and the current of the winding3 is inverted, the selectordrive signal generator66 outputs a signal “A” longer than the time until the negative potential generated in thedetection resistor21 disappears. Hence, in spite of the negative potential occurring in thedetection resistor21, the loop of thesense amplifier22 is maintained, the detection delay is eliminated, and waveform distortion is prevented.
In the example shown inFIG. 12C, the output of the first offset addingsection40 is selected by theselector65 in a whole PWM OFF period. However, in a part of PWM OFF period, the output of the first offset addingsection40 may be selected. That is, the output of the first offset addingsection40 may be selected in a predetermined period before the transition from PWM OFF period to PWM ON period, and the output of thedetection resistor21 may be selected in the remaining period of PWM OFF period.
As explained herein, according to the stepping motor driving apparatus of the fourth embodiment, in the transition from PWM OFF period to PWM ON period, adding the offset to the input ofsense amplifier22 eliminates the detection delay in transition from PWM OFF period to PWM ON period. In particular, waveform distortion near the zero cross can be prevented. Without adding offset to the input of thesense amplifier22 when detecting the current during PWM ON period, deviation of detected current due to the offset can be prevented. Hence, in the embodiment, low noise and low vibration of the stepping motor driving apparatus can be realized.
Fifth Embodiment The stepping motor driving apparatus in a fifth embodiment of the invention is similar to the stepping motor driving apparatus in the fourth embodiment. The difference is that the selector drive signal generator in the fourth embodiment can turn off the switching section by the PWM controller and judge that changing over of the winding current is instructed. Referring toFIG. 13 andFIG. 14, mainly the difference from the fourth embodiment is explained, and the same operations as in the fourth embodiment is omitted.
FIG. 13 is block diagram of structure of the stepping motor driving apparatus in the fifth embodiment. A stepping motor has plural phases of windings, and elements provided for a winding are identical in each phase. Thus the following explanation is made for elements provided for one phase of winding.FIGS. 14A to14C show waveform diagrams of the stepping motor driving apparatus of the fifth embodiment.
In the stepping motor driving apparatus of the fifth embodiment shown inFIG. 13, a current direction switch signal PHASE is fed to the selectordrive signal generator66, and theselector65 is controlled based on the signal PHASE in addition to the control in the fourth embodiment.
The control timing of selecting operation of theselector65 by the selectordrive signal generator66 is explained by referring toFIGS. 14A to14C.
FIG. 14A shows a waveform when theselector65 passes the output of the first offset addingsection40 in PWM OFF period and in a specific period after direction changeover of the winding current is instructed and passes the output of thedetection resistor21 in the remaining period.
InFIG. 14A, a signal “A” is the output of the output of the selectordrive signal generator66 when theselector65 selects and passes the output of the first offset addingsection40. A signal “B” is the output of the selectordrive signal generator66 when theselector65 selects and passes the output of thedetection resistor21. In PWM OFF period, and in a specific period after the direction changeover of winding current is instructed, the selectordrive signal generator66 outputs a signal “A” to pass the output of the first offset addingsection40. Hence, as explained in the first embodiment, the loop of thesense amplifier22 is maintained.
In the successive PWM ON period, the selectordrive signal generator66 outputs a signal “B” to pass the output of thedetection resistor21. During PWM ON period, a current flows in thedetection resistor21, and the loop of thesense amplifier22 is maintained, and hence the transition from loop-out state to loop-maintained state of thesense amplifier22 does not take place. That is, the detection delay is eliminated, and waveform distortion is prevented.
During PWM ON period, since the output of thedetection resistor21 is fed to thesense amplifier22 via not the first offset addingsection40, deviation of the detected current due to the first offset addingsection40 does not occur. However, in this embodiment, also in a specific time after the current direction switch signal PHASE is changed over, the selectordrive signal generator66 outputs a signal “A” to pass the output of the first offset addingsection40. Hence if the current direction switch signal PHASE is changed over and the current of the winding3 is inverted, the detection delay is eliminated, and waveform distortion can be prevented.
FIG. 14B shows a waveform when theselector65 conducts the output of first offset addingsection40 in a specific period before transfer from PWM OFF period to PWM ON period and in a specific period after command for direction changeover of winding current, and the output ofdetection resistor21 is conducting in the remaining period.
InFIG. 14B, a signal “A” is the output of the selectordrive signal generator66 when theselector65 selects and passes the output of the first offset addingsection40, while a signal “B” is the output of the selectordrive signal generator66 when theselector65 selects and passes the output of thedetection resistor21. In a specific period before the transition from PWM OFF period to PWM ON period and in a specific period after the direction changeover of the winding current is instructed, the selectordrive signal generator66 outputs a signal “A” to pass the output of the first offset addingsection40. As explained in the first embodiment, the loop of thesense amplifier22 is maintained.
In the successive PWM ON period, the selectordrive signal generator66 outputs a signal “B” to pass the output of thedetection resistor21. During PWM ON period, a current flows in thedetection resistor21, and the loop of thesense amplifier22 is maintained, and hence the transition from loop-out state to loop-maintained state of thesense amplifier22 does not take place. That is, the detection delay is eliminated, and waveform distortion is prevented.
However, in the PWM OFF period with the selectordrive signal generator66 outputting a signal “B”, the loop of thesense amplifier22 is out. Thus, that is, a specific period before the transition from PWM OFF period to PWM ON period has to be longer than the time required for transition from loop-out state to loop-maintained state of thesense amplifier22. Otherwise, PWM OFF period is changed to PWM ON period with the loop of the sense amplifier being out, and the detection delay occurs.
During PWM ON period, since the output of thedetection resistor21 is fed to thesense amplifier22 via not the first offset addingsection40, deviation of the detected current due to the first offset addingsection40 does not occur.
In this embodiment, in a specific time after the current direction switch signal PHASE is changed over, the selectordrive signal generator66 outputs a signal “A” to pass the output of the first offset addingsection40. Hence if the current direction switch signal PHASE is changed over and the current of the winding3 is inverted, the detection delay is eliminated, and waveform distortion can be prevented.
FIG. 14C shows a waveform when theselector65 passes the output of the first offset addingsection40 in PWM OFF period, in a specific period after the transition from PWM OFF period to PWM ON period, and in a specific period after direction changeover of winding current is instructed, and it passes the output of thedetection resistor21 in the remaining period.
In alsoFIG. 14C, a signal “A” is the output of the selectordrive signal generator66 when theselector65 selects and passes the output of the first offset addingsection40. A signal “B” is the output of the selectordrive signal generator66 when theselector65 selects and passes the output of thedetection resistor21.
In PWM OFF period, in a specific period after transition from PWM OFF period to PWM ON period, and in a specific period after the direction changeover of the winding current is instructed, the selectordrive signal generator66 outputs a signal “A” to pass the output of the first offset addingsection40. Thus, as explained in the first embodiment, the loop of thesense amplifier22 is maintained. After a specific period following the transition from PWM OFF period to PWM OFF period, the selectordrive signal generator66 outputs a signal “B” to pass the output of thedetection resistor21. During PWM ON period, a current flows in thedetection resistor21, and the loop of thesense amplifier22 is maintained, and hence the transition from loop-out state to loop-maintained state of thesense amplifier22 does not take place. That is, the detection delay is eliminated, and waveform distortion is prevented.
During PWM ON period, since the output of thedetection resistor21 is fed to thesense amplifier22 via not the first offset addingsection40, deviation of the detected current due to the first offset addingsection40 does not occur, but in the PWM period with the selectordrive signal generator66 outputting a signal “A”, the deviation of the detected current by the first offset addingsection40 occurs.
In this embodiment, also in a specific time after the current direction switch signal PHASE is changed over, the selectordrive signal generator66 outputs a signal “A” to pass the output of the first offset addingsection40. Hence if the current direction switch signal PHASE is changed over, and the current of the winding3 is inverted, the detection delay is eliminated, and waveform distortion can be prevented.
In the example shown inFIG. 14C, the output of the first offset addingsection40 is selected by theselector65 in a whole PWM OFF period. However, in a part of PWM OFF period, the output of the first offset addingsection40 may be selected. That is, the output of the first offset addingsection40 may be selected in a predetermined period before the transition from PWM OFF period to PWM ON period, and the output of thedetection resistor21 may be selected in the remaining period of PWM OFF period.
As explained herein, according to the stepping motor driving apparatus of the invention, in the transition from PWM OFF period to PWM ON period, adding of the offset to the input of thesense amplifier22 can eliminate the detection delay in the transition from PWM OFF period to PWM ON period. In particular, waveform distortion near the zero cross can be prevented. Further, in a specific time after changeover of current direction switch signal PHASE, the offset is added to the input of thesense amplifier22. Thus when the current direction switch signal PHASE is changed over and the current of the winding3 is inverted, the detection delay is eliminated, and waveform distortion in particular near the zero cross can be prevented.
Still more, without adding the offset to the input of thesense amplifier22 when detecting the current in PWM ON period, deviation of the detected current due to the offset can be prevented. Hence, in the embodiment, low noise and low vibration of the stepping motor driving apparatus can be realized.
INDUSTRIAL APPLICABILITY The invention is applied to the stepping motor driving apparatus, and in particular is useful as an apparatus for reducing vibration and noise, since it can prevent occurrence of waveform distortion and deviation of detected current due to detection delay.
Although the present invention has been described in connection with specified embodiments thereof, many other modifications, corrections and applications are apparent to those skilled in the art. Therefore, the present invention is not limited by the disclosure provided herein but limited only to the scope of the appended claims. The present disclosure relates to subject matter contained in Japanese Patent Application No. 2005-200170, filed on Jul. 8, 2005, which is expressly incorporated herein by reference in its entirety.