QTC-UMD / dds-sweeper

Raspberry Pi Pico interface for the AD9959 DDS
BSD 2-Clause "Simplified" License
5 stars 2 forks source link

Fix Incomplete Downward Sweeps #32

Closed ehuegler closed 1 year ago

ehuegler commented 1 year ago

Fixes #8

Clearing the phase accumulator before even downward sweeps seems to fix the incomplete sweep problem. This still does not make sense to me with my understanding of how sweeps function, but it seems to work.

What I believe is happening now is that the AD9959 is running a sweep with the maximum delta which instantly maxes out the accumulator before the downward sweep begins. But if that is what is happening, I do not see how clearing/not clearing the accumulator would make a difference.