Altera_Forum
Honored Contributor
14 years agoHow to calculate parameters for reconfigure a pll
Hello,
i'm implementing a reconfigurable PLL using an ALTPLL e ALTPLLRECONFIG megafunction. I initialize my PLL with an input freq of 50MHz and only c0 output clock with output freq of 100MHz. I noticed in the Output clock tab this parameters: MODULUS FOR M COUNTER = 12 MODULUS FOR N COUNTER = 1 POST SCALE COUNTER = 6 HIGH PERIOD COUNT = 3 LOW PERIOD COUNT = 3 MODE = even now i changed the output freq from 100 to 125MHz and the new parameters are MODULUS FOR M COUNTER = 10 MODULUS FOR N COUNTER = 1 POST SCALE COUNTER = 4 HIGH PERIOD COUNT = 2 LOW PERIOD COUNT = 2 MODE = even Now the question: if i want to reconfigure my pll on-the-fly for generate an arbitrary frequency wich are the formulas to calculate the above parameters and pass them to the ALTPLLRECONFIG unit? thanks for the help