Skip to content

Commit 4fa085d

Browse files
authored
Update and rename raduino_v1.27.2.ino to raduino_v1.27.3.ino
1 parent 3235319 commit 4fa085d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

raduino_v1.27.2.ino renamed to raduino_v1.27.3.ino

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
Raduino_v1.27.2 for BITX40 - Allard Munters PE1NWL (pe1nwl@gooddx.net)
2+
Raduino_v1.27.3 for BITX40 - Allard Munters PE1NWL (pe1nwl@gooddx.net)
33
44
This source file is under General Public License version 3.
55
@@ -38,7 +38,7 @@
3838
// recommended pot span when radio is used mainly for CW: 10 to 25 kHz
3939

4040
// USB/LSB parameters
41-
#define CAL_VALUE 0 // VFO calibration value
41+
#define CAL_VALUE 1575 // Initial VFO calibration value: 180 ppm
4242
#define OFFSET_USB 1500 // USB offset in Hz [accepted range -10000Hz to 10000Hz]
4343
#define VFO_DRIVE_LSB 4 // VFO drive level in LSB mode in mA [accepted values 2,4,6,8 mA]
4444
#define VFO_DRIVE_USB 8 // VFO drive level in USB mode in mA [accepted values 2,4,6,8 mA]
@@ -334,6 +334,7 @@ byte *paddleDAH = &_dah; // Paddle DAH bind to DAH
334334
*/
335335

336336
#define bfo_freq (11998000UL)
337+
337338
unsigned long baseTune = 7100000UL; // frequency (Hz) when tuning pot is at minimum position
338339
int old_knob = 0;
339340
int RXshift = 0; // the actual frequency shift that is applied during RX depending on the operation mode
@@ -389,7 +390,7 @@ void si5351bx_init() { // Call once at power-up, start PLLA
389390
Wire.begin();
390391
i2cWrite(149, 0); // SpreadSpectrum off
391392
i2cWrite(3, si5351bx_clken); // Disable all CLK output drivers
392-
i2cWrite(183, SI5351BX_XTALPF << 6); // Set 25mhz crystal load capacitance
393+
i2cWrite(183, ((SI5351BX_XTALPF << 6) | 0x12)); // Set 25mhz crystal load capacitance (tks Daniel KB3MUN)
393394
msxp1 = 128 * SI5351BX_MSA - 512; // and msxp2=0, msxp3=1, not fractional
394395
uint8_t vals[8] = {0, 1, BB2(msxp1), BB1(msxp1), BB0(msxp1), 0, 0, 0};
395396
i2cWriten(26, vals, 8); // Write to 8 PLLA msynth regs
@@ -2278,7 +2279,7 @@ void calibrate_touch_pads() {
22782279

22792280
void setup() {
22802281
u.raduino_version = 27;
2281-
strcpy (c, "Raduino v1.27.2");
2282+
strcpy (c, "Raduino v1.27.3");
22822283

22832284
lcd.begin(16, 2);
22842285

@@ -2366,7 +2367,7 @@ void setup() {
23662367
shiftBase(); //align the current knob position with the current frequency
23672368

23682369
//display warning message when VFO calibration data was erased
2369-
if ((u.cal == 0) && (u.USB_OFFSET == 1500)) {
2370+
if ((u.cal == CAL_VALUE) && (u.USB_OFFSET == OFFSET_USB)) {
23702371
printLine(1, (char *)"VFO uncalibrated");
23712372
delay(1000);
23722373
}

0 commit comments

Comments
 (0)