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

Cannot set low frequency clock accurately #40

Closed igr75 closed 7 years ago

igr75 commented 7 years ago

Hi, I just used the example sketch and tried to change the frequency to 10kHz.

// Set CLK1 to output 10 kHz si5351.set_freq(1000000ULL, SI5351_CLK1);

The clock I have got was in range of 641kHz. Does this code support kHz clock generation or there is some issue with the code? Please advise. Thanks! Igor

NT7S commented 7 years ago

That should work, so it sounds like a regression got into the latest version of the code. Thank you for the report, I'll check it out.