The ST digital compass is equipped with an integrated 3-axis digital accelerometer with a 3-axis digital magnetic sensor enclosed in one LGA package. It accurately detects the magnitude and direction of the external magnetic fields. The ST compass uses the measurements of the accelerometer to compensate the tilt which results in an accurate compass heading even if the portable device is tilted. This low-noise e-compass has 2 mgauss resolution and a variety of full scales such as ±2 to ±16g full scale acceleration, and from ±1.3 to ±8 gauss magnetic field full scale. It is also equipped with integrated self-test and smart power function to lessen current consumption.