DSP FRAME AND ALGORITHM OF LLRF OF IR-FEL *

Baiting Du,Guirong Huang,Heyun Lin,Wei Liu,Zhengrong Zhou
DOI: https://doi.org/10.18429/jacow-ipac2017-thpab124
2017-01-01
Abstract:Infrared Free Electron Laser (IR-FEL) use linear accelerator to accelerate electron to relative speed and then generate simulated radiation of infrared wavelength by periodic magnetic field of undulator. The amplitude and phase of microwave field need to be controlled precisely by low level RF control system (LLRF) to meet the high quality demand of electron from undulator. This paper mainly introduce the digital signal processing frame and feedback algorithm. Four times frequency sampling can realize IQ demodulation precisely and reduce DC offset, amplitude sampling error is less than 0.075% and phase sampling error is less than 0.1°. Pipeline CORDIC can calculate amplitude and phase by parallel processing and shift operation. Phase calculating accuracy reach 0.0005° when iteration count is 18. FIR filter is used to improve frequency selected performance. Feedback loop use digital PI controller to adjust system output. DIGITAL SIGNAL PROCESSING FRAME The LLRF system of IR-FEL has 8 channels input and 1 channel output. The SSA_IN signal is input for the controlled variable, the ACC_Refl is input for software interlock to protect power amplifier system which is the signal reflected from accelerating structure and other 6 input signals is used for monitoring the whole microwave system. The RF signal is controlled by feedback and feedforward algorithm and output for driving SSA [1]. Fig. 1 is the DSP frame of LLRF. Each input signal is sampled by ADC to generate I and Q digital signal. Amplitude and phase can be calculated from I and Q through CORDIC algorithm and storage in DDR3 which can be read by CPU through DMA (Direct Memory Access) but not need to interrupt FPGA. In the feedback loop, digital I and Q signal need to be rotated by matrix to make sure the phase is in the range from -90°to +90°. The I1/Q1 signal is compared with the set value I_set/Q_set to generate the error variable I_E/Q_E and then the PI control algorithm can calculate the adjusting variable I_U/Q_U. Feedforward module is used for reducing the feedback time and preventing greater adjusting vairable.VM Comp module is used for compensating the DC offset, the imbalance of amplitude and phase. VM module can modulate the analog I and Q signal with the reference signal [2]. Figure 1: DSP Frame of LLRF of IR-FEL. Interlock switch which is behind the VM module output is a kind of software interlock and it has advantages of set and recovery more easily and higher system integration. It is controlled by the amplitude of the signal reflected from the accelerating structure. SAMPLING ALGORITHM The target of LLRF is control the amplitude and phase of signal, but it will occupy huge hardware resource and lead to greater calculating delay if we control the amplitude and phase directly by digital device. IQ demodulation can generate the quadrature I and Q component of original signal which contain the information of amplitude and phase. The I/Q component can be adjusted by addition or subtraction easily. Traditional IQ demodulation use analog device and have the problem of imbalance of amplitude and phase which is caused of DC offset and non-ideal quadrature. The IQ trace will be ellipse which deviate from original point but not perfect circle which is round at the original point [3]. We use 4 times frequency sampling algorithm to realize IQ modulation. The IF signal frequency is 26.44MHz and sampling frequency 105.76MHz which is need to be 4 times as sampled signal frequency precisely. Fig. 2 is the principle of 4 times frequency sampling. cos( ) 4 1 4 1 = cos( )cos( ) + sin( )sin( ) 4 4 4 1 4 1 = cos( ) sin( ) 4 4 1 1 cos( ) sin( ) 4 4 = cos( ) sin( ) 2 2 = ( = 0,1,2,3,......) S S S A kT n n A k T A k T
What problem does this paper attempt to address?