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.

[参考译文] 关于:将 FDC2214 EVM 与 Arduino 连接

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

https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/706134/re-interfacing-fdc2214-evm-with-arduino

主题中讨论的其他器件:FDC2214

我将 FDC2214 EVM 与 Arduino Uno 连接、并使用寄存器值进行配置。 我在另一个论坛帖子中收到了一些初始代码、但我不确定如何解读某些代码。 下面是一个片段:

void writeConfig (字节 FDC_addr、字节 reg、字节 MSB、字节 LSB){
Wire.beginTransmission(FDC_addr);
Wire.write (reg);
Wire.write (MSB);
Wire.write (LSB);
Wire.endTransmission ();
}

void 配置(字节 FDC_addr){
writeConfig (FDC_addr、0x14、0x20、0x02);//clock_dividers_CH0
writeConfig (FDC_addr、0x1E、0x7C、0x00);//drive_curry_ch0
writeConfig (FDC_addr、0x10、0x00、0x0A);//SETTLECOUNT_CH0
writeConfig (FDC_addr、0x08、0x83、0x29);//RCOUNT_CH0
writeConfig (FDC_addr、0x19、0x38、0x11);//error_config
writeConfig (FDC_addr、0x1B、0xC2、0x0D);//MUX_CONFIG
writeConfig (FDC_addr、0x1A、0x14、0x01);//config
}

我了解"FDC_addr"和"reg"是什么、但我对 MSB 和 LSB 值代表什么感到好奇、它们从 Arduino 传递到 FDC2214。 我们非常感谢您的任何帮助。

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

    尽管我无法帮助您调试针对 Suguinos 的代码、但我相信我可以让您了解 MSB 和 LSB 值。 每个可配置寄存器为16位宽、因此 MSB 和 LSB 字节分别用于配置15:8和7:0位。 您可以在数据表的第9.6节中找到寄存器映射以及有关每个寄存器用途的更多详细信息。

    此致、
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    谢谢、这正是我要寻找的信息!