Change ADC samplerate for points at which LO feedthrough would alias

This commit is contained in:
Jan Käberich 2020-10-30 19:23:34 +01:00
parent 2118c07f09
commit d0640e0e42
4 changed files with 48 additions and 6 deletions

View file

@ -127,8 +127,9 @@ bool HW::Init() {
}
// Set default ADC samplerate
FPGA::WriteRegister(FPGA::Reg::ADCPrescaler, 128);
FPGA::WriteRegister(FPGA::Reg::PhaseIncrement, 1280);
FPGA::WriteRegister(FPGA::Reg::ADCPrescaler, HW::ADCprescaler);
// Set phase increment according to
FPGA::WriteRegister(FPGA::Reg::PhaseIncrement, HW::DFTphaseInc);
// Enable new data and sweep halt interrupt
FPGA::EnableInterrupt(FPGA::Interrupt::NewData);