An electronic circuit for measuring an angle and an intensity of an external magnetic field, comprising: a first magnetic field sensing unit being configured to output a first sensing output signal and a second magnetic field sensing unit being configured to output a second sensing output signal, a first sensing axis of the first magnetic field sensing unit being substantially orthogonal to a second sensing axis of the second magnetic field sensing unit; a voltage generator configured to supply a synchronization signal having a generator frequency (f g) and to supply a first voltage waveform to the first magnetic field sensing unit and a second voltage waveform to the second magnetic field sensing unit; a signal conditioning unit (500, 600) into which the first and second sensing output signals (301, 401) are inputted and configured to add the first sensing output signal to the second sensing output signal and output a conditioned signal; wherein the first and second voltage waveforms (201, 202) have substantially the same amplitude and the same generator frequency (f g), and are phase shifted by about 90° with respect to each other; and a magnetic field angle detection unit configured to receive the conditioned signal and the synchronization signal, and configured to measure a phase shift between the conditioned signal and the synchronization signal and to determine the angle (θ) of the external magnetic field from the measured phase shift; wherein the first and second magnetic field sensing units (300, 400) are configured such that an amplitude of the first and second sensing output signals (301, 401) varies linearly with a variation of the intensity of the external magnetic field; characterized in that the electronic circuit further comprises a magnetic field intensity detection unit configured to determine the intensity of the external magnetic field from an amplitude of the conditioned signal. a first magnetic field sensing unit being configured to output a first sensing output signal and a second magnetic field sensing unit being configured to output a second sensing output signal, a first sensing axis of the first magnetic field sensing unit being substantially orthogonal to a second sensing axis of the second magnetic field sensing unit; a voltage generator configured to supply a synchronization signal having a generator frequency (f g) and to supply a first voltage waveform to the first magnetic field sensing unit and a second voltage waveform to the second magnetic field sensing unit; a signal conditioning unit (500, 600) into which the first and second sensing output signals (301, 401) are inputted and configured to add the first sensing output signal to the second sensing output signal and output a conditioned signal; wherein the first and second voltage waveforms (201, 202) have substantially the same amplitude and the same generator frequency (f g), and are phase shifted by about 90° with respect to each other; and a magnetic field angle detection unit configured to receive the conditioned signal and the synchronization signal, and configured to measure a phase shift between the conditioned signal and the synchronization signal and to determine the angle (θ) of the external magnetic field from the measured phase shift; wherein the first and second magnetic field sensing units (300, 400) are configured such that an amplitude of the first and second sensing output signals (301, 401) varies linearly with a variation of the intensity of the external magnetic field; characterized in that the electronic circuit further comprises a magnetic field intensity detection unit configured to determine the intensity of the external magnetic field from an amplitude of the conditioned signal.