Tool/software:
We are using Sensor Controller to measure a capacitive sensor. Simplified schematic:
Switches S1/S2 represent COMPA Ref. MUX, C1 is our sensor. Measurement is similar to https://dev.ti.com/tirex/explore/node?node=A__AAxJaXIOcaqqfHxSDzQv8g__com.ti.SIMPLELINK_ACADEMY_CC2640R2SDK__7unKOT8__LATEST, but instead of creating ref voltage using resistor and 2uA current source, we set the voltages externally. We have observed that this gives us lower noise in the measured data, compared to TI example configuration. High level Sensor Controller code flow:
- Configure TDC to start and stop counting on COMPA output tdcSetTriggers(TDC_STARTTRIG_COMPA_HIGH, TDC_STOPTRIG_COMPA_HIGH, 1);
- Release ISRC so the voltage across capacitor starts rising
- Wait for COMPA to trigger the first time
- Change COMPA reference source compaSelectGpioRef(AUXIO_AXS_REF_3V);
- Wait until TDC is done
I am concerned about compaSelectGpioRef(AUXIO_AXS_REF_3V);, API description https://software-dl.ti.com/lprf/sensor_controller_studio/docs/cc13x0_cc26x0_help/html/compa__0.html#compa-0-compaselectgpioref says Any previously used reference source is disconnected before the GPIO pin is connected. Does this mean that ref input is floating during the switch? Can a floating COMPA ref input trigger a false positive on COMPA output?
Is the "break-before-make" a feature of the COMPA MUX or Sensor Controller library? For our use case, "make-before-break" would work, shorting REF1 and REF2 is not an issue.