我根据官网的资料设计了电路图
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我根据官网的资料设计了电路图
您好,我用的是IQ解调模式,部分初始代码为
spiWrite(0x01,0x4140); //128SPS
spiWrite(0x02,0x0000);//空的寄存器
spiWrite(0x03,0xFFFF); //空的寄存器
spiWrite(0x09,0x6006);
//设置DAC频率 64
spiWrite(0x0E,0x0040);
//开一个电流的通道 0:+ 1:-
spiWrite(0x0A,0x0408);
//开一个电压测量通道 0:+ 1:-
spiWrite(0x0B,0x0408);
spiWrite(0x0C,0x0800);
//IQ_DEMOD_CLK_DIV_FAC:4分频
spiWrite(0x0F,0x1000);
spiWrite(0x1A,0x0030);//空的寄存器,总是写0x0030
spiWrite(0x10,0x0063); //I通道
delay_ms(1);
afe4300Data_new = spiRead(0);
I_ADC_Value = afe4300Data_new * 0.051889;//AD值转化为电压
spiWrite(0x10,0x0065); //Q通道
delay_ms(1);
afe4300Data_new = spiRead(0);
Q_ADC_Value = afe4300Data_new * 0.051889;//AD值转化为电压
原理图已经确认过,没有什么问题