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.

[参考译文] ADS7128:转换未开始

Guru**** 2513185 points
Other Parts Discussed in Thread: ADS7128

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/data-converters-group/data-converters/f/data-converters-forum/935927/ads7128-conversion-not-starting

器件型号:ADS7128

大家好、

我在电路板上使用的是 ads7128 (8通道 AIN/GPIO)。 我可以成功地将引脚配置为输出并设置/保存输出值。 我在读取模拟输入引脚上的任何内容时遇到问题。 即使我将其配置为发送固定模式(ADS7128_writeToI2c (data_cfg、0x80);//输出修复电池0xA5A),我仍然只读0。

我按如下方式配置 AIN4:

ADS7128_writeToI2c (auto_seq_chsel、0x08);
ADS7128_writeToI2c (sequel_cfg、0x01);
ADS7128_SetBitsToI2c (sequel_cfg、0x10);
temp = ADS7128_readFromI2c (sequel_cfg);
printf ("seque_cfg after:%x \n"、temp);=>我得到0x11
ADS7128_writeToI2c (data_cfg、0x80);//输出修正电池0xA5A

当我阅读时:  

uint8_t xs;

XS = ADS7128_readFromI2c (0xA7);
printf ("ADC4_MSB:%x \n"、xs);
XS = ADS7128_readFromI2c (0xA6);
printf ("ADC4_LSB:%x \n"、xs);

两者都打印0

数据表讨论了"主机在 I2C 总线上提供转换开始帧"

如何定义该帧?...图31是我在上面所做的正常 I2C 读取。

即使我读取10字节、我也会得到所有的0

请提供建议

此致、

Murad

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    问题已解决。

    我使用的是用于读取配置寄存器的相同 I2C 读取。 (正在为命令"表9"发送操作码)...

    要读取 ADC、需要正常的 I2C 帧(添加器件、添加稳压器)

    此致、

    Murad