Configuring a measurement involves setting the input channels and the type of measurement (single-ended or differential).
The FDC1004 can be configured with up to 4
separate measurements, where each measurement can be any valid configuration (that is, a
specific channel can be used in multiple measurements). There is a dedicated configuration
register for each of the 4 possible measurements (for example, MEAS_CONF1 in register 0x08
configures measurement 1, MEAS_CONF2 in register 0x09 configures measurement 2, ...).
Configuring only one measurement is allowed, and it can be one of the 4 possible measurement
configurations.
- Setup the input channels for each
measurement. Determine which of the 4 measurement configuration registers to use
(registers 0x08 to 0x0A) and set the following:
- For single-ended measurement:
- Select the positive input pin
for the measurement by setting the CHA field (bits[15:13]).
- Set CAPDAC (bits[9:5]) if the
channel offset capacitance is more than 15pF.
- For a differential measurement:
- Select the positive input pin
for the measurement by setting the CHA field (bits[15:13]).
- Select the negative input pin
for the measurement by setting the CHB field (bits[12:10]). Note that the CAPDAC
setting has no effect for a differential measurement.
- Determine the appropriate sample rate.
The sample rate sets the resolution of the measurement. Lower the sample rate higher is
the resolution of the measurement.