Skip to content

Commit 4c9d1ed

Browse files
authored
Merge pull request #62 from etherkit/v2.1.2
V2.1.2
2 parents 8714316 + 5f432d3 commit 4c9d1ed

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,10 +711,14 @@ This library does not currently support the spread spectrum function of the Si53
711711
Changelog
712712
---------
713713

714+
* v2.1.2
715+
716+
* Correct error in si5351_calibration.ino sketch
717+
714718
* v2.1.1
715719

716720
* Add bool return value to _init()_ indicating whether a device is on the I2C bus
717-
721+
718722
* v2.1.0
719723

720724
* Add support for reference frequencies and corrections for both the XO and CLKIN

examples/si5351_calibration/si5351_calibration.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* si5351_calibration.ino - Simple calibration routine for the Si5351
33
* breakout board.
44
*
5-
* Copyright 2015 - 2017 Paul Warren <pwarren@pwarren.id.au>
5+
* Copyright 2015 - 2018 Paul Warren <pwarren@pwarren.id.au>
66
* Jason Milldrum <milldrum@gmail.com>
77
*
88
* Uses code from https://github.com/darksidelemm/open_radio_miniconf_2015
@@ -40,7 +40,7 @@ void setup()
4040
si5351.init(SI5351_CRYSTAL_LOAD_8PF, 0, 0);
4141

4242
// Start on target frequency
43-
si5351.set_correction(cal_factor);
43+
si5351.set_correction(cal_factor, SI5351_PLL_INPUT_XO);
4444
si5351.set_pll(SI5351_PLL_FIXED, SI5351_PLLA);
4545
si5351.set_freq(target_freq, SI5351_CLK0);
4646
}
@@ -88,7 +88,7 @@ static void vfo_interface(void)
8888
Serial.print(F("Calibration factor is "));
8989
Serial.println(cal_factor);
9090
Serial.println(F("Setting calibration factor"));
91-
si5351.set_correction(cal_factor);
91+
si5351.set_correction(cal_factor, SI5351_PLL_INPUT_XO);
9292
si5351.set_pll(SI5351_PLL_FIXED, SI5351_PLLA);
9393
Serial.println(F("Resetting target frequency"));
9494
si5351.set_freq(target_freq, SI5351_CLK0);
@@ -114,7 +114,7 @@ static void vfo_interface(void)
114114
}
115115

116116
cal_factor = (int32_t)(target_freq - rx_freq) + old_cal;
117-
si5351.set_correction(cal_factor);
117+
si5351.set_correction(cal_factor, SI5351_PLL_INPUT_XO);
118118
si5351.set_pll(SI5351_PLL_FIXED, SI5351_PLLA);
119119
si5351.pll_reset(SI5351_PLLA);
120120
si5351.set_freq(target_freq, SI5351_CLK0);

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Etherkit Si5351
2-
version=2.1.1
2+
version=2.1.2
33
author=Jason Milldrum <milldrum@gmail.com>
44
maintainer=Jason Milldrum <milldrum@gmail.com>
55
sentence=A full-featured library for the Si5351 series of clock generator ICs from Silicon Labs

0 commit comments

Comments
 (0)