Hi,
I need some clarification on communicating and acquiring data from FDC1004. Here I attached my programming steps.
Step1:
Setting Configuration and FDC register each reg is 16 bit, So I need to split it into 8-bit data and send through I2C.
0x08 (Configuration register) > 0x09F0:
So I am sending 0x09 and 0xF0 next
0x0C (FDC register) > 0x0580
0x05 and 0x80
step2; Acquiring data from 0x00, 0x01
data1=0x00;
data2= 0x01;
step3: conversion
16bitdata = (data1<<8)+data2;
24bitdata = (16bitdata<<8)+0x00;
2scomplement = ~24bitdata+1;
step4: Applying in formula
Cap = ((2scomplement)/5,24,288) + Offset;
Is this process is correct?
but I am getting wrong values.
Kindly help me to resolve this problem