Skip to content

Commit 93ad061

Browse files
committed
Workaround for, Si5351::init does not initialize the ref_freq[] nor corr[] entries for CLKIN #98
The workaround initializes ref_freq[] and corr[] for SI5351_PLL_INPUT_CLKIN as well as SI5351_PLL_INPUT_X0.
1 parent 1d057f5 commit 93ad061

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.DS_Store

0 Bytes
Binary file not shown.

src/si5351.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ bool Si5351::init(uint8_t xtal_load_c, uint32_t xo_freq, int32_t corr)
8686
if (xo_freq != 0)
8787
{
8888
set_ref_freq(xo_freq, SI5351_PLL_INPUT_XO);
89-
set_ref_freq(xo_freq, SI5351_PLL_INPUT_CLKIN);
89+
set_ref_freq(xo_freq, SI5351_PLL_INPUT_CLKIN); //Also CLKIN
9090
}
9191
else
9292
{
9393
set_ref_freq(SI5351_XTAL_FREQ, SI5351_PLL_INPUT_XO);
94-
set_ref_freq(SI5351_XTAL_FREQ, SI5351_PLL_INPUT_CLKIN);
94+
set_ref_freq(SI5351_XTAL_FREQ, SI5351_PLL_INPUT_CLKIN); //Also CLKIN
9595
}
9696

9797
// Set the frequency calibrations for the XO and CLKIN

0 commit comments

Comments
 (0)