
When configuring the clock, I can't read the value when reading the AD5940 register, and it always returns to 0. What is the solution?
Edit Notes
Is there any way to confirm that AD5940 is started normally and can communicate with ESP32 normally?[edited by: dgxy at 9:36 AM (GMT -5) on 4 Jan 2025]



您可以看到,
readreg函数里返回的是A0000,然后读取INT0标志为是2000000,bit25也就是FIFO阈值位是1,和我设置的
是能对应上的,说明FIFO中应该有10个数据,但是为什么打印出来结果就变成0了,INTC0中的FIFO阈值标志也没有变为1,这个问题真的困扰了我很久,请您帮忙解答一下
,读取读取FIFOCNTSTA时,SPI原始函数返回的就是
60000 可是紧接着我要求他把这个返回值打印出来
,就变成0了
返回的值明明是2000000,也就是bit25位是1,data阈值触发了,紧接着我要求他把返回的值打印出来
,结果
就变成0了
和他一起打印的中断一打印出来的值就和SPI原始读取函数返回的值一样