littleshrimp 发表于 2021-4-26 11:52
我觉得应该不是单端输入的问题 方便的话把你的源文件发出来看下
原理图,程序,实物图我前面都有发,我再发一遍
void AD9106_Init()
{
SET_CS();
SET_Trigger();
CLR_Reset();
delay(14);
SET_Reset();
WriteToAD9106(0x001f,0x0000); //模式连续运行。
// WriteToAD9106(0x0009,0x9F1F); // DAC4 RSET (0x000c,0x9f1f);DAC1 RSET
WriteToAD9106(0x0026,0x3131); //(0x0027,0x3131); //DDS输出,预存波形
WriteToAD9106(0x0032,0x4000); // DAC4_DGAIN Very important,the maximum value is 0x4000
WriteToAD9106(0x0033,0x4000); // DAC3_DGAIN
//WriteToAD9106(0x0036,0x00fc); //DAC3/4 //(0x0037,0x00fc); DAC1/2锯齿配置寄存器 上斜坡锯齿波
//WriteToAD9106(0x0035,0x4000); //Data=0x4000 Very important,the maximum value is 0x4000
WriteToAD9106(0x003e,0x0A3D); // //Register 0x3E, Data=0x009D
WriteToAD9106(0x003f,0x7100); // //Register 0x3F, Data=0x4900 1MHz output,25MHz fsys
WriteToAD9106(0x001d,0x0001); //用新配置更新所有SPI设置(自清零)
WriteToAD9106(0x001e,0x0001); //PAT_STATUS 0x1E, run bit=1 Very important
WriteToAD9106(0x001d,0x0001); //用新配置更新所有SPI设置(自清零)
delay(14);
CLR_Trigger();
WriteToAD9106(0x001d,0x0001); //用新配置更新所有SPI设置(自清零)
}