I am interfacing a FDC2214 EVM with an Arduino Uno and configuring it using register values. I have some preliminary code picked up from another forum post but I am not sure how to interpret some of the code. Here follows a snippet:
void writeConfig(byte FDC_addr, byte reg, byte MSB, byte LSB) { Wire.beginTransmission(FDC_addr); Wire.write(reg); Wire.write(MSB); Wire.write(LSB); Wire.endTransmission(); } void Configuration(byte FDC_addr) { writeConfig(FDC_addr, 0x14, 0x20, 0x02); //CLOCK_DIVIDERS_CH0 writeConfig(FDC_addr, 0x1E, 0x7C, 0x00); //DRIVE_CURRENT_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 }
I understand what the "FDC_addr" and "reg" are but I am curious as to what the MSB and LSB values stand for, that are being passed from the Arduino to the FDC2214. Any help is much appreciated.