The invention relates to an apparatus and a method for suppressing interference fields in a magnetic sensor. A method (100) for detecting an angular position (theta) of an excitation
magnet (15), wherein the method (100) comprises: generating (S100) a
magnetic field (B) by the excitation
magnet (15); detecting (S110) the
magnetic flux density (B1,..., Bn) of the generated
magnetic field (B) by means of a number n > = 2
magnetic field sensors (S1,..., Sn) arranged on the main circuit surface (25) of the
integrated circuit (20); outputting (S120), to an
integrated circuit (20), detection signals (VS1,..., VSn) proportional to the
magnetic flux densities (B1,..., Bn) detected by the n magnetic field sensors (S1,..., Sn); performing a first
phase correction on the output detection signals (VS1,..., VSn) (S130); converting (S140) the phase-corrected detection signals (VS1 ',..., VSn'); second
phase correction is performed on the converted detection signals (Vt1, Vt2) (S150).