bolton00
Newbie level 6
I have a PLL with a fixed Prescaler 32/33. The dividing ratio is calculated by:
What's the most efficient way to calculate the A and B values, knowing that both A and B are 10 bit registers. I need to implement this algorithm on a MCU, thus the request for efficiency. Example given in the PLL datasheet:
Code:
N = 32B + 33A
Code:
R: 200kHz, N: 4335: 54*32+79*33 =>867MHz