1 Attachment(s)
Minor changes to the Convolution
It is the first time that I am writing on this forum and I want to congratulate DD4WH for the excellent project that worked for me immediately using softrock hardware, Teensy 4.1, ILI934 Display, PCM1808, PCM5102A, Si5351. I describe some changes I made to the software to adapt it to my needs as a radio amateur (IK6BLO) in order to combine a traditional analog transmitter with balanced modulator and crystal filter to the Convolution.
I assigned const uint8_t pinE = 37, so as to make pin 37 in USB Hight to drive an SSB relay driven by a BS170 FET which serves for the carrier's quartz generator.
void setup_mode(int MO)
{
// bands[current_band].mode
// USB -> LSB -> AM -> SAM -> SAM Stereo -> IQ -> WFM ->
int temp;
if (old_demod_mode != -99) // first time when radio is switched on and when changing bands
{digitalWrite (pinE, HIGH);// USB
if (MO == DEMOD_LSB) // switch from USB to LSB
{digitalWrite (pinE, LOW);// USB
temp = bands[current_band].FHiCut;
bands[current_band].FHiCut = - bands[current_band].FLoCut;
bands[current_band].FLoCut = - temp;
}
After declaring the ANTX variable
unsigned long long ANTX=0;
I activated CLK0 of Si5351 to get the receiving frequency added to a constant (different USB-LSB) equal to the frequency of the SSB generator, in my case 9 Mhz
void setfreq () {
// Changes for Bobs Octave Filters: 18 March 2018 W7PUA <<<<<<
// http://www.janbob.com/electron/FilterBP1/FiltBP1.html
// NEVER USE AUDIONOINTERRUPTS HERE: that introduces annoying clicking noise with every frequency change
// hilfsf = (bands[current_band].freq + IF_FREQ) * 10000000 * MASTER_CLK_MULT * SI5351_FREQ_MULT;
hilfsf = (bands[current_band].freq + IF_FREQ * SI5351_FREQ_MULT) * 1000000000 * MASTER_CLK_MULT; // SI5351_FREQ_MULT is 100ULL;
hilfsf = hilfsf / calibration_factor;
ANTX=hilfsf / 4;//DIVIDO LA FREQUENZA PER 4
if (digitalRead(pinE) == LOW) {
si5351.set_freq(ANTX + 897270000 , SI5351_CLK0);
} else {
si5351.set_freq(ANTX + 897580000 , SI5351_CLK0);
}
si5351.set_freq(hilfsf, Si_5351_clock);
Attachment 21393