Prevent higher frequency output spike when sweep starts at DC
This commit is contained in:
parent
8688a405e7
commit
0cecaf72e5
@ -1,5 +1,5 @@
|
|||||||
2F62501ED4689FB349E356AB974DBE57=EF826FD321FB312AEADE4DB74B81458C
|
2F62501ED4689FB349E356AB974DBE57=6F84FD31C089E822CF61FFCABCD0B7D1
|
||||||
66BE74F758C12D739921AEA421D593D3=2
|
66BE74F758C12D739921AEA421D593D3=2
|
||||||
8DF89ED150041C4CBC7CB9A9CAA90856=EF826FD321FB312AEADE4DB74B81458C
|
8DF89ED150041C4CBC7CB9A9CAA90856=6F84FD31C089E822CF61FFCABCD0B7D1
|
||||||
DC22A860405A8BF2F2C095E5B6529F12=6E2D4146EA2709ED1E4A1764BC291F57
|
DC22A860405A8BF2F2C095E5B6529F12=6E2D4146EA2709ED1E4A1764BC291F57
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
|
@ -404,12 +404,18 @@ void VNA::SweepHalted() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// need the Si5351 as Source
|
// need the Si5351 as Source
|
||||||
Si5351.SetCLK(SiChannel::LowbandSource, frequency, Si5351C::PLL::B, driveStrength);
|
bool freqSuccess = Si5351.SetCLK(SiChannel::LowbandSource, frequency, Si5351C::PLL::B, driveStrength);
|
||||||
|
static bool lowbandDisabled = false;
|
||||||
if (pointCnt == 0) {
|
if (pointCnt == 0) {
|
||||||
// First point in sweep, enable CLK
|
// First point in sweep, switch to correct source
|
||||||
Si5351.Enable(SiChannel::LowbandSource);
|
|
||||||
FPGA::Disable(FPGA::Periphery::SourceRF);
|
FPGA::Disable(FPGA::Periphery::SourceRF);
|
||||||
|
lowbandDisabled = true;
|
||||||
|
}
|
||||||
|
if(lowbandDisabled && freqSuccess) {
|
||||||
|
// frequency is valid, can enable lowband source now
|
||||||
|
Si5351.Enable(SiChannel::LowbandSource);
|
||||||
Delay::us(1300);
|
Delay::us(1300);
|
||||||
|
lowbandDisabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// At low frequencies the 1.LO feedthrough mixes with the 2.LO in the second mixer.
|
// At low frequencies the 1.LO feedthrough mixes with the 2.LO in the second mixer.
|
||||||
|
Loading…
Reference in New Issue
Block a user