This invention relates to a controller for a hard disk drive. More particularly, this invention relates to a system for write fault protection in a controller of a hard disk drive. Still more particularly, this invention relates to generating write fault signal based upon a comparison of a control signal generated by the controller to a threshold value.
Hard Disk Drives (HDD)s are commonly used as a memory device in a wide variety of electronic devices. As the devices become smaller in size, the size of the HDD must also decrease for incorporation into the devices. As the size of HDDs decrease and to increase the amount of memory provided, the data track width and data bit width become narrower to increase the Track Per Inch (TPI) on the disk. As the width becomes narrow, the operation of the HDD becomes more susceptible to shock and rotary vibration.
One particular operation of an HDD that is affected by these outside forces is a write operation. Shocks or outside forces can cause a misalignment of the write head with a track causing data corruption during a write operation commonly referred to as a write fault. A wrongly positioned head may overwrite data in an adjacent track corrupting the data currently stored in the track and/or the writing the data to an unintended address making the data irretrievable.
One common method for preventing write faults is to include a shock sensor in the HDD. A shock sensor detects acceleration in certain directions and outputs a signal that is proportional to the acceleration. This may be used to as alert signal and/or to correct the control signal applied to an actuator in the HDD. However, shock sensors require additional circuitry adding to the cost of the HDD. This can be problematic especially in lower-end HDDs.
A second common method for preventing write faults is the use of off-track thresholds which may also be referred to as write fault gates. A Position Error Signal (PES) is compared to a threshold to determine whether there is an off-track error. To improve this method, a second comparison may be made in which an estimated next PES is compared to a second threshold in an attempt to detect the write fault prior to applying the control signal. However, it is a problem that as the technology advances, these methods may not detect write fault quickly enough to prevent a write fault. This problem arises because servo sector numbers may not grow as quickly as TPI increases due to limitation in drive format efficiency and microprocessor bandwidth.
Thus, those skilled in the art are constantly trying to find a cheap and reliable way to provide a write fault detection system that improves write fault detection without affecting throughput performance of the HDD at low shock levels.
The above and other problems are solved and an advance in the art is made by a system for write fault protection in accordance with this invention. A first advantage of a system in accordance with this invention is that write fault detection is improved which, in turn, improves data integrity performance of HDD products. A second advantage is that throughput performance is not significantly affected. A third advantage is that a system in accordance with this invention does not require additional circuitry which reduces the cost. This makes a system in accordance with this invention suitable for incorporation into low end HDD products.
In accordance with embodiments of this invention, a system for determining a write fault in a hard disk drive includes circuitry and/or software for performing the following process. The system begins by receiving a sample of a position error signal. A controller then generates a control signal from the position error signal. A sample of the control signal is then captured by the system. The system then determines a parameter to test from the captured sample of the control signal. The absolute value of the parameter is then calculated. The absolute value of the parameter is then compared to a threshold value. The system then generates a write fault error signal in response to a determination that the absolute value of the parameter is greater than or equal to the threshold value.
In accordance with some embodiments, the parameter is the control signal. In accordance with other embodiments, the parameter is the variation of the control signal that may be determined by determining the difference of the current sample of the control signal from a previous sample of the control signal read from memory. The current sample may then be stored as the previous sample of the control signal for use in a subsequent determination of the variation. In accordance with these embodiments, the threshold values should be selected so as to improve write protection performance and not degrade throughput performance.
In accordance with some embodiments of this invention, the system may also determine an absolute value of the received position error signal and compare the absolute value of the position error signal to a second threshold. A write fault signal is then generated in response to a determination that the absolute value of the position error signal is greater than or equal to the second threshold.
In accordance with further embodiments, the system may calculate an estimated next position error signal from the sample of the position error signal. An absolute value of the estimated next position error signal is determined and compared with a third threshold. A write fault error is then generated in response to a determination that the absolute value of the estimated next position error signal is greater than or equal to the third threshold. In accordance with some of these embodiments, the estimated next position error signal is determined from the sample of the position error signal and an average acceleration of the position error signal. In accordance with particular ones of these embodiments, the estimated next position error signal is generated from a determined velocity and acceleration of the position error signal. In other ones of these embodiments, the next position error signal is determined from the received position error signal sample, a first previous position error signal, and a second previous position error signal sample using the following equation:
(k+1)=5/2x(k)−2x(k−1)+1/2x(k−2)
where
The above and other advantages and features of the present invention are described in the following detailed description and are shown in the following drawings:
This invention relates to a controller for a hard disk drive. More particularly, this invention relates to a system for write fault protection in a controller of a hard disk drive. Still more particularly, this invention relates to generating write fault signal based upon a comparison of a control signal generated by the controller to a threshold value.
This invention is a system that performs a process for generating a write fault error signal in response to detection of a write fault. The process may be performed by instructions executed by a processing unit, such a digital signal processor, circuitry or a combination of the two without departing from this invention.
Servo control loop 200 includes mixer 205 that receives the signal output to the plant and a system signal. Mixer 205 mixes the received signals to produce a Position Error Signal (PES). Controller 210 receives the PES error signal from mixer 205 and generates a new digital control signal, u(k), to apply to the plant. Zero order hold 215 receives the digital control signal generated by controller 210 and holds for a period. Mixer 220 is not an actual part of the system but is included to show disturbance signals caused by shocks and other outside factors being added to the control signal. The control signal is then receive by plant 225 and converted to output signal, y(t). Sampler 230 then captures the output signal for future use.
This invention relates to generating a write fault error signal that can be transmitted to a read/write controller to halt execution of a write operation due to detecting track misalignment. In the past, the PES generated by mixer 205 was sampled and compared to a threshold value. The threshold value may be an absolute value of off-track percentage. To improve write fault detection, an estimated next PES may be calculated from the current PES and compared to second threshold value. The second threshold value is also an absolute value of off-track percentage. These may be expressed in the following equations:
x(k)≧c1;or
(k+1)≧c2
where x(k) is the sample of the PES at time k, c1 is the first threshold,
The estimation of the PES at the next sample period is simply the adding of the velocity to the current position signal. Hence, the estimated PES at the next sample period may be expressed as:
(k+1)=x(k)+v(k)=2x(k)−x(k−1)
Note that acceleration of the head is not considered in this equation. The estimation using only velocity to determine the next estimated PES may not be accurate. This is because the acceleration of the head may change abruptly when a hard disk drive is subject to shock/vibration disturbances.
Therefore, in accordance with some embodiments of the invention, the calculation of the estimate of the PES at the next sample period is determined using an average acceleration. As is known acceleration, a(k), equals the difference of the current velocity, v(k), and the previous velocity, v(k−1). Thus acceleration may be expressed in terms of the PES in the following manner:
Where x(k) is the PES at the current sample period, x(k−1) is the PES at the period immediately prior to the current period, and x(k−2) is the PES at the period two periods prior to the current period.
The estimated PES for the next period may be expressed as follows:
This is a more accurate determination of the estimate of the PES. However, the improvement in write fault detection is still limited by the fact that the average acceleration signal a(k) is at least one sector time delayed. Thus, the write fault error may not be determined quickly enough to be useful. Secondly, the acceleration signal obtained from the PES is very noisy. Thus, a low pass filter may need to be added to the servo loop to obtain a cleaner signal.
The above improves the existing write fault gates used in low end disk drives. However, a system in accordance with the present invention uses a comparison of a parameter derived from the control signal, u(k), generated by the controller to detect a write fault error. This comparison or fault gate may be used as a stand-alone test or in combination with any and/or all of the above described tests to detect write fault errors.
As shown in
|u(k)|≧c3
where c3 is a constant that is selected so as to improve write protection performance and degradation of throughput performance is minimized.
Alternatively, the variation of the controller output signal, u, can be used to detect a write fault. The variation of the control signal over the last sampling period, Δu, can be compared to a constant threshold value. The variation being expressed in terms of the output control signals as:
Δu=u(k)−u(k−1)
where u(k) is the output signal of the current sample period and u(k−1) is the output control signal from the previous sample period. Thus, the comparison to a threshold is:
|Δu|≧c4
where c4 is a constant that is selected so as to improve write protection performance and degradation of throughput performance is minimized.
The throughput performance during a test in which the disk drive is mounted on a rotational shaker system that introduces random noises of 10 Hz to 500 Hz. Line 505 is the plot of a prior art system using the two test of the PES described above and line 510 is a plot of a system in which a test using the control signal in accordance with this invention is used. From
In step 625, an estimated PES for the next sample period is calculated. As discussed above, the estimated PES is preferably calculated taking the average acceleration into account. In step 627, the absolute value of the estimated PES is calculated. In step 630, if the absolute value of the estimated PES is greater than or equal to the second threshold, a write fault error signal is generated in step 635. Otherwise, process 600 proceeds to step 640.
In step 640, process 600 generates the control signal to be applied to the plant. In step 645, a parameter to compare to a third threshold is determined from the control signal. As discussed above, the parameter may be the control signal, itself, or the change in the control signal, Δu. The absolute value of the parameter is determined in step 650 and compared to the third threshold in step 655. If the absolute value of the parameter is greater than or equal to the third threshold, process 600 generates a write fault error signal in step 660. If the absolute value of the parameter is not greater than or equal to the third threshold or after steps 625, 640, or 655, process 600 repeats from step 605 when a sample is received in the next time period.
The above is a description of embodiments of a system in accordance with the invention as set forth below. It is envisioned that those skilled in the art can and will design alternative embodiments of this invention based upon this invention that infringe on this invention as set forth in the following claims.