mgrau / ad9959

controls a ad9959 DDS attached to a raspberry pi via a web interface
7 stars 8 forks source link

Max FTW #2

Open ramprao opened 5 years ago

ramprao commented 5 years ago

According to the datasheet for AD9959, the max FTW is 2**32 Your program AD9959.py uses 2**32-1. Could you please clarify? Thanks.

mgrau commented 5 years ago

You are correct. While the phase accumulator is 32 bits, the allowed range for the FTW is 0 <= FTW <= 2^31. The DDS will only be able to produce tones that are up to half the system clock.