¿ªÔÆÌåÓý

Need help understanding a line of code in ubitx_si5351.cpp (msxp2 = ...) #radiuno


 

Hello,

I am trying to understand ubitx_si5351.cpp, and one line of the code has me puzzled:

In the class
void ubitx_si5351::setfreq
here is the line I need help with:
msxp2 = 128 * msb - 128 * msb / msc * msc; // msxp3 == msc;

At the end the expression I see this: "128 * msb / msc * msc"

What is the purpose of "msb / msc * msc" in this calculation?

msc is a right-shifted version of fout,
but I cannot understand what is happening in this line of code.

Thank you very much,

73 Dave WB0GAZ wb0gaz@...

Join [email protected] to automatically receive all group messages.