- Edited
I would like to better understand the term "phase accumulator" as used in the phaser docs as well as the phase relationship of multiple frequencies on a phaser oscillator channel. In the use case where multiple tones are set and turned on, for example:
# Set two oscillators frequencies to two different frequencies
phaser.channel[0].oscillator[0].set_frequency(0.0 * MHz) # output is 222 MHz
delay(10 * ns) # account for latency in changing phaser parameters
phaser.channel[0].oscillator[1].set_frequency(1 * MHz) # output is 223 MHz
delay(10 * ns) # account for latency in changing phaser parameters
# Turn on oscillators
phaser.channel[0].oscillator[0].set_amplitude_phase(0.05, 0, clr=0)
delay(10 * ns) # account for latency in changing phaser parameters
phaser.channel[0].oscillator[1].set_amplitude_phase(0.05, 0, clr=0)
delay(10 * ns) # account for latency in changing phaser parameters
From measurements we've done, we don't see a phase difference between oscillator 0 and oscillator 1. But the frequencies and amplitudes are set with 10ns spacing, so one might expect an n * 10ns phase shift between the two tones. Is there no phase difference because the phase accumulator is set to crl=0
? If we set clr=1
would there be a 10 ns phase between the two frequencies in the output? This is why I'd like to learn more about the phase accumulator and how it operates. Thank you.