Hi Dave, For the moment the VFO is running fine. Thanks to all for the help. I am using a DDS type II, no problems with the output signal. On the SA the signal on the low level output is ok but on the high level output there are a lot more harmonics. I have to check this.
Check the encoder pin definitions around line 120, I found these had changed in rel 1.05, ?you can see the commented out values, it only affects 1.05. My code around line 1217 is as the original.
I did have some issues with the output stopping after a power cycle until the encoder was turned, that's what Jack is referring to, it turned of my DDS is a bit slow and needed the data send twice at startup. ?I'm using a type 1 DDS with a converter board.?