Characterizing a sensing circuit of a data storage device
View Patent ↗A data storage device is disclosed comprising a disk, a head for accessing the disk, and a sensor for generating an alternating sensor signal. The sensor is disconnected from an input of a sensing circuit and while the sensor is disconnected an alternating calibration signal is injected into the input of the sensing circuit, wherein the alternating calibration signal comprises a predetermined offset and amplitude. A response of the sensing circuit to the alternating calibration signal is evaluated to detect at least one of an offset and a gain of the sensing circuit.
1. A data storage device comprising:
a disk;
a head for accessing the disk;
a sensor for generating an alternating sensor signal; and
control circuitry comprising a sensing circuit, the control circuitry configured to disconnect the sensor from an input of the sensing circuit and while the sensor is disconnected from the input of the sensing circuit:
inject an alternating calibration signal into the input of the sensing circuit, wherein the alternating calibration signal comprises a predetermined offset and amplitude;
initialize a threshold to an initial setting;
first count a number of times the alternating calibration signal exceeds the initial threshold;
adjust the threshold;
second count a number of times the alternating calibration signal exceeds the adjusted threshold; and
detect at least one of an offset and a gain of the sensing circuit based at least on the second count.
2. The data storage device as recited in claim 1 , wherein the control circuitry is further configured to adjust a parameter of the sensing circuit based on at least one of the detected offset and the detected gain of the sensing circuit.
3. The data storage device as recited in claim 2 , wherein:
the sensing circuit comprises a comparator for comparing the alternating sensor signal to a threshold; and
the parameter comprises the threshold.
4. The data storage device as recited in claim 2 , wherein:
the sensing circuit comprises an adder for adding an offset to the alternating sensor signal; and
the parameter comprises the added offset.
5. The data storage device as recited in claim 2 , wherein:
the sensing circuit comprises an amplifier for amplifying the alternating sensor signal; and
the parameter comprises a gain of the amplifier.
6. The data storage device as recited in claim 1 , wherein while the sensor is disconnected from the input of the sensing circuit, the control circuitry is further configured to adjust the threshold until the second count is at least one.
7. The data storage device as recited in claim 1 , wherein while the sensor is disconnected from the input of the sensing circuit, the control circuitry is further configured to adjust the threshold until the second count rises above a predetermined level.
8. The data storage device as recited in claim 1 , wherein while the sensor is disconnected from the input of the sensing circuit, the control circuitry is further configured to adjust the threshold until the second count falls below a predetermined level.
9. The data storage device as recited in claim 1 , wherein while the sensor is disconnected from the input of the sensing circuit, the control circuitry is further configured to:
adjust an amplitude of the alternating calibration signal; and
evaluate a response of the sensing circuit to the adjusted alternating calibration signal.
10. The data storage device as recited in claim 9 , wherein while the sensor is disconnected from the input of the sensing circuit, the control circuitry is further configured to adjust a non-linear component of the sensing circuit based on the response of the sensing circuit to the adjusted alternating calibration signal.
11. The data storage device as recited in claim 10 , wherein the non-linear component of the sensing circuit comprises a digital-to-analog converter.
12. The data storage device as recited in claim 1 , further comprising a preamp circuit comprising the sensing circuit.
13. A method of operating a data storage device comprising a head actuated over a disk, the method comprising disconnecting a sensor from an input of a sensing circuit and while the sensor is disconnected from the input of the sensing circuit:
injecting an alternating calibration signal into the input of the sensing circuit, wherein the alternating calibration signal comprises a predetermined offset and amplitude;
initializing a threshold to an initial setting;
first counting a number of times the alternating calibration signal exceeds the initial threshold;
adjusting the threshold;
second counting a number of times the alternating calibration signal exceeds the adjusted threshold; and
detecting at least one of an offset and a gain of the sensing circuit based at least on the second count.
14. The method as recited in claim 13 , further comprising adjusting a parameter of the sensing circuit based on at least one of the detected offset and the detected gain of the sensing circuit.
15. The method as recited in claim 14 , wherein:
the sensing circuit comprises a comparator for comparing the alternating sensor signal to a threshold; and
the parameter comprises the threshold.
16. The method as recited in claim 14 , wherein:
the sensing circuit comprises an adder for adding an offset to the alternating sensor signal; and
the parameter comprises the added offset.
17. The method device as recited in claim 14 , wherein:
the sensing circuit comprises an amplifier for amplifying the alternating sensor signal; and
the parameter comprises a gain of the amplifier.
18. The method as recited in claim 13 , wherein while the sensor is disconnected from the input of the sensing circuit, the method further comprises adjusting the threshold until the second count is at least one.
19. The method as recited in claim 13 , wherein while the sensor is disconnected from the input of the sensing circuit, the method further comprises adjusting the threshold until the second count rises above a predetermined level.
20. The method as recited in claim 13 , wherein while the sensor is disconnected from the input of the sensing circuit, the method further comprises adjusting the threshold until the second count falls below a predetermined level.
21. The method as recited in claim 13 , wherein while the sensor is disconnected from the input of the sensing circuit, the method further comprises:
adjusting an amplitude of the alternating calibration signal; and
evaluating a response of the sensing circuit to the adjusted alternating calibration signal.
22. The method as recited in claim 21 , wherein while the sensor is disconnected from the input of the sensing circuit, the method further comprises adjusting a non-linear component of the sensing circuit based on the response of the sensing circuit to the adjusted alternating calibration signal.
23. The method as recited in claim 22 , wherein the non-linear component of the sensing circuit comprises a digital-to-analog converter.
24. Control circuitry configured to measure at least one of an offset and gain of a sensing circuit for use in a data storage device, the control circuitry configured to disconnect a sensor from an input of the sensing circuit and while the sensor is disconnected from the input of the sensing circuit:
inject an alternating calibration signal into the input of the sensing circuit, wherein the alternating calibration signal comprises a predetermined offset and amplitude;
initialize a threshold to an initial setting;
first count a number of times the alternating calibration signal exceeds the initial threshold;
adjust the threshold;
second count a number of times the alternating calibration signal exceeds the adjusted threshold; and
detect at least one of an offset and a gain of the sensing circuit based at least on the second count.