littleshrimp 发表于 2018-4-24 17:21
不使用sram能正常工作吗?试过用官方的评估软件生成寄存器数据没?
不使用SRAM是正常的,也就是用的您的初始化函数
#else//初始化成功,锯齿波和正弦波都行
void AD9102_Init(void)
{
AD9102_nTRIGGER = 1;
AD9102_nRST = 0;
delay(100);
AD9102_nRST = 1;
WriteToAD9102(PAT_TYPE);
WriteToAD9102(DACRSET);
WriteToAD9102(WAV_CONFIG);
WriteToAD9102(SAW_CONFIG);
WriteToAD9102(DAC_DGAIN);
WriteToAD9102(DDS_TW32);
WriteToAD9102(DDS_TW1);
WriteToAD9102(RAMUPDATE);
WriteToAD9102(PAT_STATUS);
WriteToAD9102(RAMUPDATE);
delay(10);
AD9102_nTRIGGER = 0;
WriteToAD9102(AD9102_RAMUPDATE | UPDATE);
}
#endif