A shock detection circuit housed in an electronic device includes an
output shock signal that is indicative of vibration amplitude. To
compensate for vibrations that are experienced by the electronic device,
the output shock signal is analyzed. The analysis of the output shock
signal allows a vibration frequency of the output shock signal to be
identified and used in vibration compensation.