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 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。 我们非常感谢您的任何帮助。