ADC Temperature Sensor Issue- S7G2

Question:

I'm seeing an issue with the temperature sensor on the Synergy S7G2 in SSP 1.1.0. Is there an issue?

Answer:

The issue with the S7G2 temperature sensor is that the Sample State Register has not been properly set. You may see an issue such as the following. When converting, in sequence, an analog channel (example: channel 0) and the temperature sensor, the temperature sensor output seems to be directly proportional to the analog channel value.

Explanation of Issue:

Normally the Sample States for any channel has to be set by the user using the sampleStateCountSet() function since the number of sample states is dependent on the input impedance for whatever voltage source the ADC is measuring. But since the Temperature sensor is an internal device with a known impedance, the driver should have set the Sample State Count for the Temperature sensor. This will be fixed for the next major release, currently scheduled for Early 2017.

Current Work Around:

For now, you can resolve the issue by using the sampleStateCountSet() function to change the Sample States Count for the Temperature Sensor.