etherkit / Si5351Arduino

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

Added spread spectrum parameter calculation and setting #57

Open paolo-sz opened 6 years ago

paolo-sz commented 6 years ago

an empiric fix on PLL reset (it was not working without some magic undocumented value) is also included.

These changes are going to cover the case where the external SSEN pin is set to high (spread spectrum enabled). If the related registers are not set correctly the PLL A does not lock. The reset fix is somehow related to the spread spectrum changes because otherwise I was not able to recover from the initial PLL A not locked state.

See the comments within code.

NT7S commented 6 years ago

Thanks much, I'll try to evaluate it with my hardware soon.