I have two sources to generate a ramp signal to drive a voltage controlled oscillator.
Source one is DAC of the STM32H743 and the second one is RF Synthesizer ADF4158's charge pump output.
RF Synthesizer is better solution for ramp generation. Because of that i simply added 0 ohm resistors to select the desired source physically. However now I want to add more software selectable solution for using DAC as well without soldering components.
VCO's range is 0 to 10V. ADF4158 generates 0 to 5V ramp so op-amp gain is set to 2. However STM32H743 DAC is 0 to 3.3V and the gain also must be set to 3 when DAC is selected.
I need to change the gain of op-amp. (I will use a digital pot for gain selection if no other way is suggested here.)
I want to be able to change ramp source between RF Synthesizer and DAC by using MCU software.
What is the correct and simple way of doing this without affecting the circuit behaviour?