According to the FDDS application of the FPGA in the magnetic suspension controller, the FPGA and the DSP adopt an SPI communication mode, the DSP controls the FPGA to output digital signals with corresponding amplitudes, frequencies and phases, differential subtraction is carried out on the output signals passing through a
bridge circuit to obtain a position relative difference value, whether a magnetic suspension bearing deviates in the direction or not and whether the magnetic suspension bearing deviates in the position or not are judged on the basis of a set warning value, and then the magnetic suspension bearing is subjected to FDDS detection. An alarm is sent to the DSP; and meanwhile, an output
signal passing through the
bridge circuit is detected and amplified and then is transmitted to an AD (Analog to Digital) of a DSP (
Digital Signal Processor) for sampling so as to obtain the position information of the magnetic suspension bearing, and then the DSP performs certain protection or compensation measures on the real-time position information based on the alarm information so as to finish closed-loop adjustment. According to the invention, a zero-setting filter, a digital
detector, a
digital comparator and the like are realized by using internal resources of the FPGA, the advantages of low cost, low
power consumption,
high resolution, fast time conversion and the like are realized, and the method has very strong practicability and wide applicability.