The invention provides an anti-interference circuit board and a terminal. The circuit board specifically comprises a substrate which is provided with a first surface, and the first surface is providedwith a first region for placing a
magnetometer; the substrate is internally provided with a plurality of circuit
layers, and the plurality of circuit
layers are arranged in a stacked manner, for example, the substrate is at least internally provided with a first functional circuit used for generating a
magnetic field generated in a first direction and a second functional circuit used for generating a
magnetic field generated in a second direction which are stacked; when the positions of the first functional circuit and the second functional circuit are specifically set, the first region is located in the
vertical projection of the first functional circuit and the second functional circuit on the first surface. What can be seen from the description is that the first functional circuit andthe second functional circuit are arranged to compensate the interference of the
magnetometer in the first region, and the first functional circuit and the second functional circuit are located belowthe
magnetometer during arrangement, so that the occupied surface area of the anti-interference circuit board is reduced.