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

Handle missing external clock, either fallback to internal oscillator or switching off output #93

Open pignoniG opened 1 year ago

pignoniG commented 1 year ago

Hi, is there any recommendation or plan on implementing automatic switch between external and internal reference? It would be nice to be able to turn off the output if no reference is connected or switch to the internal one. Thanks

la3pna commented 1 year ago

This will require external circuitry. Easiest approach is a diode detector on the external input, and if the level is satisfactory you put a pin on the microcontroller high. Then the program needs to take into account this and switch. Has been done and works ok.

BR Thomas

fre. 7. juli 2023 kl. 16:31 skrev Giovanni @.***>:

Hi, is there any recommendation or plan on implementing automatic switch between external and internal reference? It would be nice to be able to turn off the output if no reference is connected or switch to the internal one. Thanks

— Reply to this email directly, view it on GitHub https://github.com/etherkit/Si5351Arduino/issues/93, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBYNPDS46LJIT5U7Y6KG6TXPAMSLANCNFSM6AAAAAA2B4V44I . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- With Best regards, Thomas S. Knutsen.

Please avoid sending me Word or PowerPoint attachments.

pignoniG commented 1 year ago

Hi Thomas, I can reliably “sense” the ext reference but didn’t manage to reliably reconfigure the ic wile it’s running. Do you have any example code? Thanks

On Fri, 7 Jul 2023 at 17:24, Thomas S. Knutsen @.***> wrote:

This will require external circuitry. Easiest approach is a diode detector on the external input, and if the level is satisfactory you put a pin on the microcontroller high. Then the program needs to take into account this and switch. Has been done and works ok.

BR Thomas

fre. 7. juli 2023 kl. 16:31 skrev Giovanni @.***>:

Hi, is there any recommendation or plan on implementing automatic switch between external and internal reference? It would be nice to be able to turn off the output if no reference is connected or switch to the internal one. Thanks

— Reply to this email directly, view it on GitHub https://github.com/etherkit/Si5351Arduino/issues/93, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABBYNPDS46LJIT5U7Y6KG6TXPAMSLANCNFSM6AAAAAA2B4V44I>

. You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- With Best regards, Thomas S. Knutsen.

Please avoid sending me Word or PowerPoint attachments.

— Reply to this email directly, view it on GitHub https://github.com/etherkit/Si5351Arduino/issues/93#issuecomment-1625577546, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIIQP3S5BOYBUQGZHNAQHTXPASZPANCNFSM6AAAAAA2B4V44I . You are receiving this because you authored the thread.Message ID: @.***>