etherkit / Si5351Arduino

Library for the Si5351 clock generator IC in the Arduino environment
GNU General Public License v3.0
233 stars 95 forks source link

Wrong output frequency (in a few cases) #6

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi, Using your library I found that in some cases I obtain the wrong output frequency (whereas in all other cases that I tested it is working fine). More specifically, I found that the following two combinations of PLL multiplier and frequency divider gives 75MHz (when it should be 150 MHz and 120 MHz respectively). I tested this on two independent sets of Arduino + Si5351 clock generator, both times with the same result. Below the code that I used in both cases.

/* wrong frequency - should be 150 MHz: */ clockgen.setupPLLInt(SI5351_PLL_A, 24); clockgen.setupMultisynthInt(0, SI5351_PLL_A, SI5351_MULTISYNTH_DIV_4);

/* wrong frequency - should be 120 MHz: */ clockgen.setupPLLInt(SI5351_PLL_A, 24); clockgen.setupMultisynth(0, SI5351_PLL_A, 5, 0, 1);

NT7S commented 9 years ago

Sorry, those method names indicate that it comes from a different library.