InvokeMeWell
Junior Member level 3
hello,
I am trying to write a matlab code in time domain for ADPLL, but my ADPLL never locks.
I have been searching all over the internet to find an example how to simulate an ADPLL, with no luck, has someone any reference or paper with an actual code or pseudo code how I can
lock an all DPLL.
My train of this for this is simple
for i = 1 :fref_cycles
fcw = ftarget/fref
fcw_int = int(fcw)
fcw_frac = fcw-fcw_int
the Rv pretty much is how many times rising edges of the DCO we have in on fref
the ε[k] = tdc_code(binary_output) * Tdco/tdc_res
the normalized dco I forget it, also the filter
end