HI all,
I am new to FDC1004, i am using FDC1004 with ESP-32 with I2C in single measurement mode. But MEAS*_MSB registers always returns fixed value0X7FFF. My code is same as the related question:
HI all,
I am new to FDC1004, i am using FDC1004 with ESP-32 with I2C in single measurement mode. But MEAS*_MSB registers always returns fixed value0X7FFF. My code is same as the related question:
add other info :
(1)pcb picture as follows:
(2)source code:
A. fdc1004_dreiver.c:
1,读取MEAS*_MSB寄存器之前,已经通过读取Device ID为0x1004,判断i2c时序了
2,循环读取了MEAS1_MSB,MEAS2_MSB,MEAS3_MSB和MEAS4_MSB四个通道的寄存器的值了,
其中通道MEAS1和MEAS3,在电路中都是作为reference sensor,通道MEAS2和MEAS4,在电路中都是作为liquid sensor,
通道MEAS1和MEAS2读取到的值时动态变化的,但是MEAS3和MEAS4从设备上电后读取的值就是固定的0X7FFF.
如果i2c时序不正常,我的软件程序会reset的,实际没有reset同时能够读取4个通道MEAS*的值,说明i2c时序时正常的。