Tool/software:
Hi,
I'd like to confirm the periodical data acquisition sequence for 3ch sensing. I understand there are 3 ways.
Method 1. INTB trigger
MCU gets the data ready flag via INTB by setting DRDY_2INT in ERROR_CONFIG(0x19) to b'1.
When INTB is asserted, MCU read DATA_CH0-2, DATA_LSB_CH0-2 via I2C
This requires INTB connection between FDC2214 and MCU.
Method 2. Watch DRDY register
MCU watch DRDY register in STATUS(0x18) periodically.
If DRDY is b'1, read DATA_CH0-2, DATA_LSB_CH0-2 via I2C.
This does not require INTB connection between FDC2214 and MCU.
Method 3.Polling DATA_CH0-2, DATA_LSB_CH0-2
MCU just periodically read DATA_CH0-2, DATA_LSB_CH0-2 via I2C.
This does not require INTB connection between FDC2214 and MCU.
---
a)Are these expected procedure ?
b)How should I handle CHx_UNREADCONV register in STATUS(0x18) ? Is it mandatory to read here in periodical data acquisition ?
c)While FDC2214 data conversion is activated, are DATA_CH0-2, DATA_LSB_CH0-2 updated automatically with designed sampling rate ? Or keep the value until MCU read the DATA_CH0-2, DATA_LSB_CH0-2 ?
For example FDC2214's 3ch total sampling period is 5ms, that is 200Hz sampling. On the other hand, MCU polling period is 10ms. In this case, is half of data in FDC2214 skipped ?
FDC 2214 : t1_data_3ch -> 5ms -> t2_data_3ch -> 5ms -> t3_data_3ch -> 5ms -> t4_data_3ch -> 5ms -> t5_data_3ch -> 5ms ...
MCU can capture t1_data_3ch, t3_data_3ch, t5_data_3ch ...
Regards,
Kaneko