Other Parts Discussed in Thread: LDC1612, LDC1312, LDC1314, LDC1614, ENERGIA
There is a Inductive Sensing FAQ, Q3: How can I communicate directly with the MSP430 on the LDC1612, LDC1614, LDC1312, or LDC1314 EVM?
I have a close related question to the Q3 regarding "Start streaming command", where it states
To start streaming, send 4C 05 01 00 06 01 29 04 04 30 2A C1. After sending this command it is required to read 32 bytes.
I would like to know how to separate the the 12 bytes command word "4C 05 01 00 06 01 29 04 04 30 2A C1" into sections of header, address, value and CRC-8. So that I can use the rule for other similar application.
Similar to the detailed explanation for Write register command below
Write register command is used to set desired register settings. It is formed as follow:
4C 15 01 00 04 2A XX YY YY ZZ
Where
4C 15 01 00 04 2A = Write register command header.
XX is the register address to be written, expressed as HEX. For example, if register 12 is x0C, so XX = 0C
YY YY is the 2 bytes of data to be written, in HEX, MSB 1st.
ZZ is CRC-8 check for the command string, which is explained below.
Each HEX value represents corresponding ASCII character, which is written to COM port.
For example, if we need to write to register 11 (x1B) a value of x820D, the command is
4C 15 01 00 04 2A 1B 82 0D A3.