The invention provides an electromagnetic generating device with adjustable frequency band and its electromagnetic generating method. From the perspective of spectrum analysis and quantum mechanics, a possible mechanism of the frequency window of the biological effect of pulsed electromagnetic field is given, and the biological effect of pulsed electromagnetic field is obtained through quantitative calculation. The frequency domain window of the effect, and then, based on this theory, an electromagnetic field generator for determining the frequency window of the pulsed electromagnetic field biological effect was developed. The device is mainly composed of a white noise signal generator module, a filter module, a gain adjustment module, a power amplifier module and a magnetic field generator Composed of modules, the output includes the resonance frequency bands of the main nucleons 1H, 13C, 14N, 17O, 23Na, 31P in the organism, and according to the needs, the pulsed electromagnetic field with a variable frequency range is output, and this device is used as a platform to carry out animal experiments and cell experiments. It is of great significance for elucidating the mechanism of the biological effects of pulsed electromagnetic fields.