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.

ADS1115,第八位读取值一直都是0xFF,实在找不到原因

Other Parts Discussed in Thread: ADS1115

Uint16 ReadADS1115(void)
{
Uint16 temp;
Start_ADS1115();
if(Send_Byte(0x91)==0)
return 0;

temp=Read_byte();
AAAA1=temp;
Ack_IIC(1); //这一句出问题
AAAA2=Read_byte();
temp=AAAA1<<8+AAAA2;//Read_byte();
Ack_IIC(1);
Stop_ADS1115();
return temp;
}

Uint16 ADS1115(Uint16 channal)
{
Uint16 result;
if(Confige1115(channal)==1)
{
DelayUs(500);
if(PointRegister()==1)
{
result=ReadADS1115();
return result;
}
else
{
return 0;
}
}
else
{
return 0;
}
}

以上是核心部分,高八位读取是正确的,说明配置应该没问题,可是第八位一直都是0xFF,希望找找原因,谢谢