I think I'll start a new thread, so as to not distract from Denys existing thread.
The main changes from Denys's version is I've moved to a different Si5351 library which is smaller and faster and claims less phase noise and no clicks.
https://laptrinhx.com/arduino-si5351-library-tuned-for-size-and-click-free-2958433958/
The zip file library is attached.
To drive the Si5351 is quite a bit more straight forward.
Si5351mcu clockgen; // declare the instance
clockgen.init(25000000); // Si5351 Crystal is 25 Mhz
clockgen.correction(1552); // Calibration
clockgen.enable(0); // enable clock 0 output
clockgen.setFreq(0,146000000); // 146 Mz Test
That picture was cheating a bit, because 5 minutes later it had drifted down to 145.999973 Mhz
The library claims to be click free which is better than the one in the uBitX.
As far as size goes the object code is 7K smaller than the previous one. With the OLED library and Denys's code its 19,128 bytes vs 26,284 bytes
That might be enough to fit the code for an OLED S meter? that's on the nano.
I'll post the sketch a bit later after I do some more testing.
The main changes from Denys's version is I've moved to a different Si5351 library which is smaller and faster and claims less phase noise and no clicks.
https://laptrinhx.com/arduino-si5351-library-tuned-for-size-and-click-free-2958433958/
The zip file library is attached.
To drive the Si5351 is quite a bit more straight forward.
Si5351mcu clockgen; // declare the instance
clockgen.init(25000000); // Si5351 Crystal is 25 Mhz
clockgen.correction(1552); // Calibration
clockgen.enable(0); // enable clock 0 output
clockgen.setFreq(0,146000000); // 146 Mz Test
That picture was cheating a bit, because 5 minutes later it had drifted down to 145.999973 Mhz
The library claims to be click free which is better than the one in the uBitX.
As far as size goes the object code is 7K smaller than the previous one. With the OLED library and Denys's code its 19,128 bytes vs 26,284 bytes
That might be enough to fit the code for an OLED S meter? that's on the nano.
I'll post the sketch a bit later after I do some more testing.
Attachments
-
30.2 KB Views: 268