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.

求助!ADS1216Y 读写寄存器正常,读AD转换后的值是乱的是什么原因。



写完寄存器后再读出来写的值是对的,通信是可以的,读转换值是乱的,代码如下,不知道配置后直接写读数据对不对

write_byte(0xfe); //¸复位
delay_us(100);

write_byte(0x50); //写配置
write_byte(0x02); 
write_byte(0x0e);//内部参考电压2.5V
write_byte(0x02);//Ain0+ Ain2-
write_byte(0x05);//PGA 32

delay_us(100);
write_byte(0x59); 
write_byte(0x00); 
write_byte(0x07);

。。。。

while(DRDY);//
write_byte(0x01); //写命令读数据
delay_us(1);
read_24bit(VALUE);

读的值

FF EE 24
FF F6 77
00 04 2A
00 02 AC
FF F0 1A
00 12 11