# LimeSDR Mini external clock reference config permanent?

**URL:** <https://discourse.myriadrf.org/t/limesdr-mini-external-clock-reference-config-permanent/5212>\
**Category:** LimeSDR\
**Created:** [1 October 2019 13:16 UTC](https://discourse.myriadrf.org/t/limesdr-mini-external-clock-reference-config-permanent/5212 "2019-10-01T13:16:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sigrokBlack](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@sigrokBlack](https://discourse.myriadrf.org/u/sigrokBlack)\
**Post date:** [1 October 2019 13:16 UTC](https://discourse.myriadrf.org/t/limesdr-mini-external-clock-reference-config-permanent/5212/1 "2019-10-01T13:16:03Z")

</div>

Hi,

I’m currently considering buying a limesdr mini but I want to know something about it’s external clock configuration. For my purposes I want to have a lower drift of the LO by connecting an external 10MHz square-wave reference. I read that the configuration change in the Limesuite GUI for the LimeSDR does not survive a reboot. ( [https://destevez.net/2018/07/limesdr-external-reference-quick-howto/](https://destevez.net/2018/07/limesdr-external-reference-quick-howto/))  
Is this also correct for the LimeSDR Mini although it uses a different clock setup without the phase detector. Do I need to change the external reference clock Frequency every time I plug in the SDR or just once and forget?

Regards  
Joshua

---

<div class="post-metadata">

**Author:** ![andrewback](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andrewback](https://discourse.myriadrf.org/u/andrewback)\
**Post date:** [11 October 2019 06:35 UTC](https://discourse.myriadrf.org/t/limesdr-mini-external-clock-reference-config-permanent/5212/2 "2019-10-11T06:35:43Z")

</div>

I think you’d need to do it every time, since the default is to use onboard clock, but should be possible via API and without having to use Lime Suite. @IgnasJ could advise.

---

<div class="post-metadata">

**Author:** ![IgnasJ](https://avatars.discourse-cdn.com/v4/letter/i/278dde/32.png) [@IgnasJ](https://discourse.myriadrf.org/u/IgnasJ)\
**Post date:** [11 October 2019 09:39 UTC](https://discourse.myriadrf.org/t/limesdr-mini-external-clock-reference-config-permanent/5212/3 "2019-10-11T09:39:03Z")

</div>

You need to set it every time. Software needs to know that clock for calculating dividers for RX/TX frequency and sample rate, So unless your reference clock is 40 MHz (same as LimeSDR-Mini on board) you need to set it.

---

<div class="post-metadata">

**Author:** ![G4KCM](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/g4kcm/32/3086_2.png) [@G4KCM](https://discourse.myriadrf.org/u/G4KCM)\
**Post date:** [11 October 2019 14:40 UTC](https://discourse.myriadrf.org/t/limesdr-mini-external-clock-reference-config-permanent/5212/4 "2019-10-11T14:40:26Z")

</div>

Just remember that to route the clock signal to the external clock connector on the Lime mini you need to rotate a SMD resistor. Also it will then fail the LimeTest routine if you run it because during the test of the clock circuitry the DAC driving the onboard VCTCXO is exercised. It makes no difference to the operation it just shocks you a bit if you run Lime test after doing the resistor mod.

Clive

---

<div class="post-metadata">

**Author:** ![sigrokBlack](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@sigrokBlack](https://discourse.myriadrf.org/u/sigrokBlack)\
**Post date:** [13 October 2019 15:26 UTC](https://discourse.myriadrf.org/t/limesdr-mini-external-clock-reference-config-permanent/5212/5 "2019-10-13T15:26:03Z")

</div>

Hi,  
thank you for your answers!  
Its a bummer that I’ll have to reset the LO frequency every time when not using 40 MHz.  
Are there any efforts to change this behavior?

Regards  
Joshua

---

<div class="post-metadata">

**Author:** ![mzs](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/mzs/32/2678_2.png) [@mzs](https://discourse.myriadrf.org/u/mzs)\
**Post date:** [13 October 2019 19:07 UTC](https://discourse.myriadrf.org/t/limesdr-mini-external-clock-reference-config-permanent/5212/6 "2019-10-13T19:07:44Z")

</div>

If I was heading off script, I would compile my own custom library/dll with support.  
e.g. I’d add my custom reference frequency into FPGA::DetectRefClk [https://github.com/myriadrf/LimeSuite/blob/master/src/FPGA\_common/FPGA\_common.cpp#L906](https://github.com/myriadrf/LimeSuite/blob/master/src/FPGA_common/FPGA_common.cpp#L906)

But I would also fully read and understand the lmk00105 datasheet, before attempting to modify any clock hardware on a mini.

---

<div class="post-metadata">

**Author:** ![IgnasJ](https://avatars.discourse-cdn.com/v4/letter/i/278dde/32.png) [@IgnasJ](https://discourse.myriadrf.org/u/IgnasJ)\
**Post date:** [14 October 2019 08:02 UTC](https://discourse.myriadrf.org/t/limesdr-mini-external-clock-reference-config-permanent/5212/7 "2019-10-14T08:02:24Z")

</div>

I think 10MHz clock may be often used as reference so I added it to FPGA::DetectRefClk().
