Skip to content

Commit 817cd79

Browse files
committed
added PLL reset
1 parent 6ea2340 commit 817cd79

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

adafruit_si5351.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,3 +449,14 @@ def outputs_enabled(self, val):
449449
self._write_u8(_SI5351_REGISTER_3_OUTPUT_ENABLE_CONTROL, 0xFF)
450450
else:
451451
self._write_u8(_SI5351_REGISTER_3_OUTPUT_ENABLE_CONTROL, 0x00)
452+
self.reset_plls()
453+
454+
def reset_plls(self):
455+
"""Reset both PLLs. This is required when the phase between clocks
456+
needs to be non-random.
457+
458+
See e.g.
459+
460+
https://groups.io/g/BITX20/topic/si5351a_facts_and_myths/5430607
461+
"""
462+
self._write_u8(_SI5351_REGISTER_177_PLL_RESET, (1 << 7) | (1 << 5))

0 commit comments

Comments
 (0)