20
Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th 29 th June 2012 University of Glasgow Progress on the MICE LLRF System

Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th 29 th June 2012

  • Upload
    tevin

  • View
    70

  • Download
    0

Embed Size (px)

DESCRIPTION

Progress on the MICE LLRF System. Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th 29 th June 2012 University of Glasgow. Contents. Introduction LLRF basics Hardware Options FPGA firmware techniques Proposal for Hardware Proposed firmware structure - PowerPoint PPT Presentation

Citation preview

Page 1: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Andrew Moss / Peter CorlettDaresbury Laboratory

Collaboration Meeting 3325th 29th June 2012

University of Glasgow

Progress on the MICE LLRF System

Page 2: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Contents

• Introduction• LLRF basics• Hardware Options• FPGA firmware techniques• Proposal for Hardware• Proposed firmware structure• Project details

Page 3: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Introduction

• In the last MICE RF meeting, it was decided that we would use a LLRF control system. (it wasn't entirely clear that this was needed.)

• The Daresbury RF group has begun a study into how we might achieve a suitable system for MICE.

Page 4: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

LLRF Basics

• The primary function of the LLRF system is to stabilise the amplitude and phase of the RF field within the cavities within a given tolerance. This is typically achieved using fast feed back

• Secondary tasks– Feed Forward (for controlled cavity filling)– Monitoring transmission line power– Cavity protection– Cavity Tuning– Other stuff!

Page 5: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Hardware options• Analogue Vs Digital• Commercial systems• Open systems

– LLRF4 board / Larrys new system in development

– CERN OHWR open source system.

Page 6: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Analogue Vs Digital

Analogue• Very low latency• Low complexity• High reliability• Low Upgradability• Low(er) cost• Few diagnostics

Digital• More easily reconfigured• Loop parameters tuneable in the

field.• Possibility of Adaptive feed-forward• Diagnostics built in

Digital Wins!

Page 7: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

LLRF4• Designed by Larry Doolittle LBNL• 4 IF/RF inputs• 2 IF outputs• Xilinx spartan 3 FPGA• Other stuff

– Slow DAC outputs– Programmable clock dividers– USB communications

• Used at DL 1.3Ghz feedback system on ALICE

Page 8: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Firmware

• Most development cost lives here.• But- everything we need to code for MICE is

mature technology, nothing new or controversial.

• We can use lots of recycled code. Expect there is plenty that LBNL can add to the project.

Page 9: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Non- IQ Demodulation• Sampling clock is set at a rate N/M RF

frequency.• I and Q are then obtained from :

1

0

).cos(2 N

ii iy

NQ

1

0

).sin(2 N

ii iy

NI

• Where – N is the number of samples in the

constellation– Φ is the phase advance per cycle– Yi is the ADC input

Page 10: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Fast Feedback control•The I & Q feedback values are each fed into a separate controller.•Controller is a PID loop (without the D – we are already damped enough by the cavity!)•The PI controller is a simple, robust, proven technology used everywhere.

Z-1

P

I

Setpoint

Feedback

Integrator

OutputProportional

Page 11: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Cavity Filling (feed forward)•Because MICE does not use circulators / Isolators to protect the amplifiers, large reflections can cause damage.•Large reflections may occur during initial cavity filling.•This can be eased by ramping the input power using constant reflection condition.•On the FPGA, we need to code a programmable ramp with variable duration, so that we can use the shortest ramp length possible, whilst still avoiding overvoltage in the coax.

Page 12: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Adaptive Feed Forward Control•Pulse to pulse compensation for predictable, repeated disturbances.

•Power supply / triode droop•Mains noise•Lorenz force Detuning (probably not an issue for us)•Other disturbances which are the same for each RF

pulse

Sequence of events• A measurement of the pulse flat top is taken and measured against

the setpoint.• A corrective waveform is calculated for this error waveform.• On the next pulse, this corrctive waveform is applied to the

modulator output, in addition to the feedback.• The sequence is repeated for each pulse• An adaptive algorithm performs calculations to reduce the flat top

error over the full pulse.

-I /Q Measurement

I /Q SetpointPI Loop +

Feed Forward Waveform

Adaptive Algorithm

Measurement Waveform

Controller output

Page 13: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Modulation•Conversion from baseband I & Q values to IF output.•IF output is calculated as :

•Where the sin and cosine values can be obtained from

•NCO•DDS•Look up table

•The output IF waveform contains a wide spectrum of components due to it discrete time nature. It requires band pass filtering to remove the digitisation noise.

On FPGA

SIN

NCO (at IF freq)

COS

I Baseband

Q Baseband

DAC

LOF = FRF - FIF

RF OUT

Page 14: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Proposed system

NOTE!

Everything is up for discussion

Comments / advice welcome!

Page 15: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Proposed Hardware•For each cavity pair, we use 2 x LLRF4

•One board samples the 2 cavity probes, plus the reference oscillator.•Second board samples the FWD and REV powers for each cavity.•Sample data is continuously streamed from the second FPGA to the first.•All clever control is performed by the first LLRF4 card.

•Inputs are mixed down to an IF frequency

•Somewhere between 30 and 60 MHz

•Outputs are mixed up from the same IF frequency.•Analogue Up/Down conversion components are temperature stabilised.

LLRF4 2

LLRF4 1Master oscillator

FWD 1

REV 1

FWD 2

REV 2

LOF = FRF -/+ FIF

RF IN

IF Band pass filter

INPUT DOWNCONVERSION

LOF = FRF -/+ FIF

IF IN

IF Band pass filter

INPUT DOWNCONVERSION

IF OUT

RF Band pass filter

RF OUT

Page 16: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Firmware structure (FPGA1)

On FPGA

ADC

ADC

ADC

ADC Master oscillator FM control

IQ Demod

IQ Demod

IQ Demod

IQ Demod

DAC

Housekeeping

IQ MOD

DAC

Feedback

Feed Forward

RF out

Spare

Cav1 in

REFin

Cav 2 in

FM out

Comms to EPICS

+ -

+

Setpoint

Vector Sum

From LLRF 2

Page 17: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Firmware structure (FPGA2)

On FPGA

ADC

ADC

ADC

ADC

IQ Demod

IQ Demod

IQ Demod

IQ Demod

DAC

Housekeeping

DAC

FWD 1

REV 1

REV 2

FWD 2

To FPGA1

Page 18: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

LLRF4 2

LLRF4 1

CAV1

CAV2

Local Oscillator ~150MHz

FWD 1

REV 1

FWD 2

REV 2

Master oscillator~201.25MHz

Page 19: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Milestones

• Specification agreed ?• Hardware platform decision ?• Agreement on firmware architecture ?

All to be agreed

Page 20: Andrew Moss / Peter Corlett Daresbury Laboratory Collaboration Meeting 33 25 th  29 th  June 2012

Summary

• Basic design philosophy being worked on• Nothing that technically challenging in the

MICE RF system, all been done before, we can use standard firmware routines for much of the code

• Will require help of LBNL for ramp fill software and the choice of which hardware to use

• Can be built at DL electronics workshop