etherkit / Si5351Arduino

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

Delay between CLK0 and CLK1 #81

Open mrguen opened 3 years ago

mrguen commented 3 years ago

Describe the bug I am not quite sure this is a bug related to the library or not.

I was setting both clocks 0 and 1 @ 80 MHz with the same phase (0) and saw that CLK0 is in advance of 45 degrees.

Since my code does configure the Si5351 I was wondering if it was done the right way.

So I tried the example sketch "si5351_phase.ino". At first it seemed the two clocks are delayed by 90°. But in fact if you set both clocks at phase = 0 you will see that there is a remaining delay. CLK0 is in advance of about 10°. It gets worse @80 MHz.

To Reproduce

You can see that CLK0 is clearly in advance of CLK1

semiversus commented 1 year ago

I guess a PLL reset would be required (like si5351.pll_reset(SI5351_PLL_RESET_A))