已回答假定已回答

在使用AD9958做DDS信号源,编写四阶调频时遇到的问题

xsw7518 在 2016-1-27 詢問的問題
最後回覆由hpkamen於2016-3-1提供

在不开启RU/RD的条件下进行频率调制,通过P0,P1可以控制我们输出的频率即P0,P1形成的二进制数决定选用哪个寄存器作为输出,我按照手册上的方法写了如下程序,但是结果没有输出,请问是哪里出现问题的?

部分程序如下:

WriteToAD9958ViaSpi(CFR,3,ChannelFunctionRegisterdata,1);

  f=15000000;  

  WrFrequencyTuningWorddata(f,ChannelFrequencyTuningWord0data); 

  WriteToAD9958ViaSpi(CFTW0,4,ChannelFrequencyTuningWord0data,0);

  f=25000000;  

   WrFrequencyTuningWorddata(f,ChannelFrequencyTuningWord0data);   

  WriteToAD9958ViaSpi(0x0A,4,ChannelFrequencyTuningWord0data,0); 

  f=35000000;  

  WrFrequencyTuningWorddata(f,ChannelFrequencyTuningWord0data);  

  WriteToAD9958ViaSpi(0x0B,4,ChannelFrequencyTuningWord0data,0);

  f=5000000;  

   WrFrequencyTuningWorddata(f,ChannelFrequencyTuningWord0data);   

  WriteToAD9958ViaSpi(0x0C,4,ChannelFrequencyTuningWord0data,1); 

 

其中主要寄存器参数:uchar FunctionRegister1data[3] = {0xD0,0x50,0x10};

                                 uchar ChannelFunctionRegisterdata[3] = {0x80,0x03,0x00};

求大神指教!!!!小弟感激不尽

結果