The present invention relates generally to the field of spindle motor control in disc drives. More particularly, the present invention relates to an apparatus and method for compensating for asymmetrical electrical phases in the spindle motor so that a uniform operation of the spindle motor with regard to speed of rotation of the disc in the disc drive is achieved.
Disc drives are commonly used in workstations, personal computers, laptops and other computer systems to store large amounts of data in a form that can be made readily available to a user. In general, a disc drive comprises a magnetic disc that is rotated by a spindle motor. The surface of the disc is divided into a series of data tracks. The data tracks are spaced radially from one another across a band having an inner diameter and an outer diameter.
Each of the data tracks extends generally circumferentially around the disc and can store data in the form of magnetic transitions within the radial extent of the track on the disc surface. An interactive element, such as a magnetic transducer, is used to sense the magnetic transitions to read data, or to transmit an electric signal that causes a magnetic transition on the disc surface, to write data. The magnetic transducer includes a read/write gap that contains the active elements of the transducer at a position suitable for interaction with the magnetic surface of the disc. The radial dimension of the gap fits within the radial extent of the data track containing the transitions so that only transitions of the single track are transduced by the interactive element when the interactive element is properly centered over the respective data track.
The magnetic transducer is mounted by a head structure to a rotary actuator arm and is selectively positioned by the actuator arm over a preselected data track of the disc to either read data from or write data to the preselected data track of the disc, as the disc rotates below the transducer. The actuator arm is, in turn, mounted to a voice coil motor that can be controlled to move the actuator arm across the disc surface.
A servo system is typically used to control the position of the actuator arm to insure that the head is properly centered over the magnetic transitions during either a read or write operation. In a known servo system, servo position information is recorded on the disc surface between written data blocks, and periodically read by the head for use in a closed loop control of the voice coil motor to position the actuator arm. Such a servo arrangement is referred to as an embedded servo system.
In modern disc drive architectures utilizing an embedded servo, each data track is divided into a number of data sectors for storing fixed sized data blocks, one per sector. Associated with the data sectors are a series of servo sectors, generally equally spaced around the circumference of the data track. The servo sectors can be arranged between data sectors or arranged independently of the data sectors such that the servo sectors split data fields of the data sectors.
Each servo sector contains magnetic transitions that are arranged relative to a track centerline such that signals derived from the transitions can be used to determine head position. For example, the servo information can comprise two separate bursts of magnetic transitions, one recorded on one side of the track centerline and the other recorded on the opposite side of the track centerline. Whenever a head is over a servo sector, the head reads each of the servo bursts and the signals resulting from the transduction of the bursts are transmitted to, e.g., a microprocessor within the disc drive for processing.
When the head is properly positioned over a track centerline, the head will straddle the two bursts, and the strength of the combined signals transduced from the burst on one side of the track centerline will equal the strength of the combined signals transduced from the burst on the other side of the track centerline. The microprocessor can be used to subtract one burst value from the other each time a servo sector is read by the head. When the result is zero, the microprocessor will know that the two signals are equal, indicating that the head is properly positioned.
If the result is other than zero, then one signal is stronger than the other, indicating that the head is displaced from the track centerline and overlying one of the bursts more than the other. The magnitude and sign of the subtraction result can be used by the microprocessor to determine the direction and distance the head is displaced from the track centerline, and generate a control signal to move the actuator back towards the centerline.
Each servo sector also contains encoded information to uniquely identify the specific track location of the head. For example, each track can be assigned a unique number, which is encoded using a Gray code and recorded in each servo sector of the track; The Gray code information is used in conjunction with the servo bursts to control movement of the actuator arm when the arm is moving the head in a seek operation from a current track to a destination track containing a data field to be read or written.
The head structure also includes a slider having an air bearing surface that causes the transducer to fly above the data tracks of the disc surface due to fluid currents caused by rotation of the disc. Thus, the transducer does not physically contact the disc surface during normal operation of the disc drive to minimize wear at both the head and disc surface. The amount of distance that the transducer flies above the disc surface is referred to as the “fly height.” By maintaining the fly height of the head at an even level regardless of the radial position of the head, it is ensured that the interaction of the head and magnetic charge stored on the media will be consistent across the disc. The discs of the disc drive are mounted for rotation by a spindle motor arrangement, as is generally known in the art. The spindle motor arrangement rotates the discs of the disc drive in accordance with a drive voltage received from a spindle motor control unit. A spindle motor driver typically drives the spindle motor. A typical three-phase spindle motor includes a stator having three windings and a rotor. The rotor has magnets that provide a permanent magnet field. The spindle motor generates torque on the rotor when current flows through at least one of the windings. The torque depends upon the magnitude and direction of current flow through the windings and an angular position of the rotor relative to the stator. The functional relationship between torque and current flow and angular position is commonly depicted in a set of torque curves, each of which corresponds to a respective one of a set of commutation states.
A spindle motor control unit is responsive to control signals received from the microprocessor to generate and transmit the drive voltage to the spindle motor to cause the storage discs to rotate at an appropriate rotational velocity. Traditionally, spindle velocity control makes use of servo wedges, or address mark-to-address mark (AM-to-AM) timing to measure the velocity of the motor. Such an approach is very accurate with regard to single disc packwriter technologies, i.e. devices which write servo patterns onto discs one disc at the time, since servo patterns are written to the discs at a high resolution, such as around 5 ns or less. However, there has been a recent technology transition to multiple disc writer (MDW) technology in which discs are pre-written with servo patterns using MDW machines before they are attached to the disc array.
A problem arises with MDW discs in that the discs may be misaligned during installation into the disc array. As a result, the AM-to-AM timing may be different from one sector of the disc to another, as illustrated in
In order to provide a solution to the above problem, two approaches have generally been taken. The first approach is to construct a polynomial function that resembles the AM-to-AM timing variation in the disc using a least squares error fit method. This method requires the collection and storage of AM timings on several tracks and a number of computations to determine the coefficients of the polynomial.
The second approach is to make use of the Back Electromotive Force (BEMF) zero crossings of the spindle motor to determine the velocity of the discs. This approach is simpler and faster than the first approach since there is no reliance or dependency on information being read from the discs, i.e. long seeks are not a problem with this approach. Thus, the BEMF zero crossings approach has started to receive more interest for use in measuring and controlling the velocity of spindle motors.
However, there are factors that may cause the BEMF zero crossings approach to be inaccurate for controlling the velocity of discs in the disc drive. One such factor is the asymmetrical electrical phases of the spindle motor. This asymmetrical electrical phase of the spindle motor causes a repeatable error in the detection of BEMF zero crossings and thus, an error in the control of the velocity of the discs in the disc drive. Accordingly, it would be beneficial to have a mechanism for compensating for the errors introduced by the asymmetrical electrical phase of the spindle motor in the detection of BEMF zero crossings for controlling the velocity generated by the spindle motor. The present invention provides a solution to this and other problems, and offers other advantages over previous solution
The present invention provides a method and apparatus for compensating for the asymmetrical phases of a spindle motor in a disc drive. With the present invention, compensation values are learned by sampling speed data during a period of operation of the disc drive where the speed is stable and only one control operation is performed per revolution of the disc. The sampled speed data is used to generate the compensation values for each of the phases of the spindle motor. The compensation values are stored in a compensation mechanism which is used by the spindle motor speed controller to provide compensation for the asymmetrical phases of the spindle motor.
Having obtained the compensation values, the actual speed output by the spindle motor is measured and is subtracted from a reference speed to generate a difference speed value. In addition, a compensation value is retrieved from a data structure associated with the compensation mechanism based on a phase of the spindle motor. The compensation value is then subtracted from the difference speed value to obtain a compensated difference speed value. A control signal based on this compensated difference speed value is generated and provided to the spindle motor to thereby control the output speed of the spindle motor.
The present invention also can be implemented as a computer-readable program storage device which tangibly embodies a program of instructions executable by a processor to perform a spindle motor speed control method. In addition, the invention also can be implemented as a motor speed controller itself.
These and various other features as well as advantages which characterize the present invention will be apparent upon reading of the following detailed description and review of the associated drawings.
Referring now to the drawings, and initially to
The storage discs 22a-d are mounted for rotation by a spindle motor arrangement 29, as is known in the art. Moreover, the read/write heads 24a-h are supported by respective actuator arms 28a-h for controlled positioning over preselected radii of the storage discs 22a-d to enable the reading and writing of data from and to the data tracks. To that end, the actuator arms 28a-h are rotatably mounted on a pin 30 by a voice coil motor 32 operable to controllably rotate the actuator arms 28a-h radially across the disc surfaces.
Each of the read/write heads 24a-h is mounted to a respective actuator arm 28a-h by a flexure element (not shown) and comprises a magnetic transducer 25 mounted to a slider 26 having an air bearing surface (not shown), all in a known manner. As typically utilized in disc drive systems, the sliders 26 cause the magnetic transducers 25 of the read/write heads 24a-h to “fly” above the surfaces of the respective storage discs 22a-d for non-contact operation of the disc drive system, as discussed above. When not in use, the voice coil motor 32 rotates the actuator arms 28a-h during a contact stop operation, to position the read/write heads 24a-h over a respective landing zone 58 or 60, where the read/write heads 24a-h come to rest on the storage disc surfaces. As should be understood, each of the read/write heads 24a-h is at rest on a respective landing zone 58 or 60 at the commencement of a contact start operation.
A printed circuit board (PCB) 34 is provided to mount control electronics for controlled operation of the spindle motor 29 and the voice coil motor 32. The PCB 34 also includes read/write channel circuitry coupled to the read/write heads 24a-h via the pre-amplifier 31, to control the transfer of data to and from the data tracks of the storage discs 22a-d. The manner for coupling the PCB 34 to the various components of the disc drive is well known in the art, and includes a connector 33 to couple the read/write channel circuitry to the pre-amplifier 31.
Referring now to
The microprocessor 35 also operates according to instructions stored in the ROM 42 to generate and transmit control signals to each of the spindle motor control 38 and the actuator control 40. The spindle motor control 38 is responsive to the control signals received from the microprocessor 35 to generate and transmit a drive voltage to the spindle motor 29 to cause the storage discs 22a-d to rotate at an appropriate rotational velocity.
Similarly, the actuator control 40 is responsive to the control signals received from the microprocessor 35 to generate and transmit a voltage to the voice coil motor 32 to controllably rotate the read/write heads 24a-h, via the actuator arms 28a-h, to preselected radial positions over the storage discs 22a-d. The magnitude and polarity of the voltage generated by the actuator control 40, as a function of the microprocessor control signals, determines the radial direction and radial speed of the read/write heads 24a-h.
When data to be written or read from one of the storage discs 22a-d are stored on a data track different from the current radial position of the read/write heads 24a-h, the microprocessor 35 determines the current radial position of the read/write heads 24a-h and the radial position of the data track where the read/write heads 24a-h are to be relocated. The microprocessor 35 then implements a seek operation wherein the control signals generated by the microprocessor 35 for the actuator control 40 cause the voice coil motor 32 to move the read/write heads 24a-h from the current data track to a destination data track at the desired radial position.
When the actuator has moved the read/write heads 24a-h to the destination data track, a multiplexer (not shown) is used to couple the head 24a-h over the specific data track to be written or read, to the read/write control 36, as is generally known in the art. The read/write control 36 includes a read channel that, in accordance with modern disc drive design, comprises an electronic circuit that detects information represented by magnetic transitions recorded on the disc surface within the radial extent of the selected data track. As described above, each data track is divided into a number of data sectors.
During a read operation, electrical signals transduced by the head from the magnetic transitions of the data sectors are input to the read channel of the read/write control 36 for processing via the pre-amplifier 31. The RAM 43 can be used to buffer data read from or to be written to the data sectors of the storage discs 22a-d via the read/write control 36. The buffered data can be transferred to or from a host computer utilizing the disc drive for data storage.
As previously mentioned, the present invention provides a mechanism for compensating for asymmetrical electrical phases of the spindle motor 29 in the detection of BEMF zero crossings and control of the velocity generated by the spindle motor 29. BEMF zero crossings are generated from the servo application specific integrated circuit (ASIC) of the spindle motor based on the voltage relationship between the phase voltage (Vphase) and a centertap voltage (Vcentertap). The number of zero-crossings per mechanical revolution depends on the number of magnetic poles in the rotor of the spindle motor. For example, with a 12-pole motor, there are 12 original BEMF zero crossings, however some servo ASICs detect only the rising edges of the original BEMF zero-crossings and generate 6 zero-crossing pulses per mechanical revolution. The detection of BEMF zero crossings in motor control is generally known in the art.
There are a number of factors that may affect the quality of detection of the BEMF zero crossings. One common factor that negatively affects the quality of detection of the BEMF zero crossings is that the motor may experience asymmetrical electrical phases. This factor causes uneven timings between BEMF zero crossings even though the speed may be constant.
The present invention solves the problems associated with the oscillatory nature of the speed of the disc from sector to sector by providing a compensation mechanism that adds a certain compensation value for every electrical phase of the spindle motor. In this way, the present invention achieves a zero repeatable error. The compensation values that are added are learned from several samples of the speed errors.
The compensation values are learned under two conditions, stable speed and one control per revolution. That is, speed values are not obtained during a spin-up control mode of the spindle motor control when the disc is being accelerated to a stable speed. A time is established from the beginning of the spin-up control mode, at which control is passed from the spin-up control mode to a one control per revolution control mode (or 1× control mode). The 1× control mode is a control mode in which only one control signal/calculation is made per one mechanical revolution of the disc. Therefore, if in one mechanical revolution there are 12 zero-crossings, one control action is made every 12 zero-crossings. It is during this control mode operation that samples are taken when the speed of the disc achieves a stable speed. At some time later, control is passed from the 1× control mode to a BEMF closed-loop control mode which makes use of the learned values obtained from the 1× control mode at the stable speed to thereby add compensation values to achieve a zero repeatable error.
The learning algorithm of the present invention involves obtaining a matrix of speed samples during the stable speed region of the 1× control mode. The average speed of all the samples is obtained. Thereafter, the average speed of every phase from all samples is constructed as a row matrix. This row matrix of average speed of every phase from all samples is normalized and a reference speed is subtracted from the elements of the row matrix, thereby generating a compensation matrix containing a compensation value for every phase. This compensation matrix is utilized by the control circuit of the present invention to add a compensation value to the measured speed to thereby generate a control signal to control the speed of the disc generated by the spindle motor.
Thus, for example, with the depicted speed controller, a motor output signal, as determined for example, by a measurement device (not shown) associated with the spindle motor, is subtracted from a reference speed signal and is passed into the controller 510. The controller 510 generates a control signal by amplifying the speed error between the reference speed signal and the motor output speed signal and applies the control signal to the spindle motor 520. In response, the spindle motor 520 produces an output speed which is measured and provided back to the controller 510 in order to provide a control loop for controlling the speed output of the spindle motor 520.
Thus, the input to the controller 610 is the reference speed signal minus the actual motor speed signal and minus the compensation signal. The controller 610 generates a control signal based on this input signal and applies the control signal to the spindle motor 620. The spindle motor 620 then generates an output speed signal that is fed back to the controller 610 to thereby provide a control loop for controlling the speed of the spindle motor 620.
As shown in
The learning of compensation values, in accordance with the present invention, is performed by sampling speed values during an operation of the spindle motor where a stable speed is established and only one control per revolution is performed. A stable speed is used so that the samples are not noisy. The one control per revolution is used to guarantee unbiased samples.
In order to generate the compensation values for use with the compensation mechanism of
The average speed of the sampled speed values is calculated by averaging all the elements of the T matrix:
S=avg(Tp,n) where p=1 to P; n=1 to N (1)
The average speed of every phase from all samples can be constructed as a row matrix A:
The objective of the present invention is to obtain a matrix C of compensation values that may be used to compensate for the asymmetric phases of the spindle motor. The elements of this compensation matrix for each revolution should be zero in order to avoid a permanent offset. Thus, the objective of the present invention is to obtain:
To satisfy the constraint that the total of the compensation values for each mechanical revolution of the spindle motor be zero, a normalization technique is utilized by the present invention. With this normalization technique, the elements of matrix Z are scaled proportionally to the reference speed Tref as follows:
N(A)={N(a1) . . . N(ap)}, N(ap)=(Tref*ap)/s (4)
Having normalized the matrix A, the compensation matrix may be calculated by subtracting the reference speed from the normalized matrix A:
C={c1 . . . cp}, cp=N(ap)−Tref (5)
Thus, the compensation values for the phases of the spindle motor are the value obtained from subtracting a reference speed from a normalized average speed error for the phase as determined from the sampled speed values.
The resulting compensation values are stored in a data structure storage device (not shown), such as in a memory, associated with the compensation mechanism 630. These compensation values are retrievable from the data structure based on a current phase of the spindle motor as determined, for example, by a counter (not shown) used to keep track of the phases of the spindle motor 620. When the compensation value is subtracted from the reference speed and the actual speed output by the spindle motor 620 is also subtracted from the reference speed, the resulting signal will cause the controller 610 to output a control signal to the spindle motor 620 that would maintain approximately a zero repetitive error.
Thus, the present invention augments the standard spindle motor controller by providing a compensation mechanism that learns compensation values from an operation of the spindle motor and then applies these compensations values to the reference and actual speed signals to thereby obtain a compensated input to the controller 610. Based on this compensated input, the controller 610 generates a control signal for controlling the operation of the spindle motor that will provide a more uniform operation of the spindle motor through all electrical phases of the spindle motor.
Accordingly, blocks of the flowchart illustration support combinations of means for performing the specified functions, combinations of steps for performing the specified functions and program instruction means for performing the specified functions. It will also be understood that each block of the flowchart illustration, and combinations of blocks in the flowchart illustration, can be implemented by special purpose hardware-based computer systems which perform the specified functions or steps, or by combinations of special purpose hardware and computer instructions.
As shown in
Thus, the present invention provides a method, apparatus and computer program product for controlling spindle motor speed in a disc drive. In an exemplary embodiment of the present invention, the speed of the spindle motor is determined, a compensation value is then identified based on a phase of the spindle motor, a control signal is then generated based on the speed of the spindle motor, the compensation value and a reference speed, and the control signal is then provided to the spindle motor to thereby control the speed of the spindle motor. The speed of the spindle motor may be determined, for example, using a Back Electromotive Force (BEMF) zero-crossings methodology for determining speed. The control signal may be generated, for example, by subtracting the speed of the spindle motor from the reference speed to generate a difference speed value and then subtracting the compensation value from the difference speed value to generate a compensated difference speed value. In addition, a matrix of compensation values may be generated based on sampled spindle motor speed data such that the matrix of compensation values includes a compensation value for each phase of the spindle motor. The spindle motor speed data may be sampled, for example, for a period of time of operation of the spindle motor where the spindle motor speed is stable and only one control operation is performed per revolution of the spindle motor. From this spindle motor speed data, average speed values may be calculated for each phase of the spindle motor and the matrix of compensation values may be generated as a difference between normalized average speed values and a reference speed for each phase of the spindle motor.
It is important to note that while the present invention has been described in the context of a fully functioning data processing system, those of ordinary skill in the art will appreciate that the processes of the present invention are capable of being distributed in the form of a computer readable medium of instructions and a variety of forms and that the present invention applies equally regardless of the particular type of signal bearing media actually used to carry out the distribution. Examples of computer readable media include recordable-type media, such as a floppy disc, a hard disc drive, a RAM, CD-ROMs, DVD-ROMs, and transmission-type media, such as digital and analog communications links, wired or wireless communications links using transmission forms, such as, for example, radio frequency and light wave transmissions. The computer readable media may take the form of coded formats that are decoded for actual use in a particular data processing system.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
This application claims the benefit of and is a Continuation-in-Part of U.S. application Ser. No. 10/456,607, filed Jun. 6, 2003, and entitled ELECTRICAL PHASE COMPENSATION IN BEMF SPINDLE MOTOR CONTROL, which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 10456607 | Jun 2003 | US |
Child | 11312052 | Dec 2005 | US |