A
magnetic field sensor, including a Hall magnetic sensor, formed within a first die and configured to detect a first
magnetic field, and a first anisotropic magnetoresistive magnetic sensor, having a first anisotropic magnetoresistive
transducer, formed within a second die and configured to generate an electrical measurement quantity as a function of a second
magnetic field. An electronic reading circuit formed within the first die, is electrically connected to the first anisotropic magnetoresistive
transducer, and provides a first measure indicating the second magnetic field, on the basis of the electrical measurement quantity. The first and second dice are fixed with respect to one another and have main surfaces parallel to the same
reference plane. The first magnetic field being oriented in a first direction perpendicular to the
reference plane and the second magnetic field being oriented in a second direction parallel to the
reference plane.