use PLL A to generate lowband source

This commit is contained in:
Jan Käberich 2025-08-09 19:10:53 +02:00
parent 67cffbb69e
commit abe2aefcf9
4 changed files with 4 additions and 4 deletions

View file

@ -34,7 +34,7 @@ void Generator::Setup(Protocol::GeneratorSettings g) {
if(g.frequency < HW::BandSwitchFrequency) {
bandSelect = true;
FPGA::Disable(FPGA::Periphery::SourceChip);
Si5351.SetCLK(SiChannel::LowbandSource, g.frequency, Si5351C::PLL::B,
Si5351.SetCLK(SiChannel::LowbandSource, g.frequency, Si5351C::PLL::A,
amplitude.lowBandPower);
Si5351.Enable(SiChannel::LowbandSource);
} else {

View file

@ -16,7 +16,7 @@ void Manual::Setup(Protocol::ManualControl m) {
FPGA::AbortSweep();
// Configure lowband source
if (m.V1.SourceLowEN) {
Si5351.SetCLK(SiChannel::LowbandSource, m.V1.SourceLowFrequency, Si5351C::PLL::B,
Si5351.SetCLK(SiChannel::LowbandSource, m.V1.SourceLowFrequency, Si5351C::PLL::A,
(Si5351C::DriveStrength) m.V1.SourceLowPower);
Si5351.Enable(SiChannel::LowbandSource);
} else {

View file

@ -94,7 +94,7 @@ static void StartNextSample() {
}
attenuator = amplitude.attenuator;
if(trackingFreq < HW::BandSwitchFrequency) {
Si5351.SetCLK(SiChannel::LowbandSource, trackingFreq, Si5351C::PLL::B, amplitude.lowBandPower);
Si5351.SetCLK(SiChannel::LowbandSource, trackingFreq, Si5351C::PLL::A, amplitude.lowBandPower);
FPGA::Disable(FPGA::Periphery::SourceChip);
FPGA::Disable(FPGA::Periphery::SourceRF);
trackingLowband = true;

View file

@ -458,7 +458,7 @@ void VNA::SweepHalted() {
}
// need the Si5351 as Source
bool freqSuccess = Si5351.SetCLK(SiChannel::LowbandSource, frequency, Si5351C::PLL::B, driveStrength);
bool freqSuccess = Si5351.SetCLK(SiChannel::LowbandSource, frequency, Si5351C::PLL::A, driveStrength);
static bool lowbandDisabled = false;
if (pointCnt == 0) {
// First point in sweep, switch to correct source