Methods, systems, and apparatus, including computer program products, are
described for calibrating control loops, specifically phase-locked loops.
In one aspect, an apparatus is provided that includes an oscillator model
that generates a predicted phase based on an input, a first averaging
submodule that generates an average predicted phase over a predetermined
number of samples, and a first summing submodule that receives a first
corrected phase error and generates a predicted repetitive phase
disturbance using the first corrected phase error, the predicted phase,
and the average predicted phase.