I previously had configured a PIC (16F1704) to use the internal FVR for ADC reference, with gain of the FVR set to 2x, i.e. 2.048V reference. I've since added another signal to be measured, but the signal spans 0..900mV only. I'm tempted to change the FVR's gain to 1x while reading this channel to get one bit more resolution.
The code therefore looks like:
- Set FVR's gain to 2x
- Read ADC channel 1:
- Change ADC channel to 1
- Perform ADC conversion
- Read ADC channel 2:
- Change ADC channel to 2
- Perform ADC conversion
- Read ADC channel 3:
- Change ADC channel to 3
- Perform ADC conversion
- Set FVR's gain to 1x
- Read ADC channel 4:
- Change ADC channel to 4
- Perform ADC conversion
- Repeat
Now, while changing the ADC channels it's recommended to introduce a small delay before you start the ADC conversion, so the input capacitor of the ADC can settle. I've been using 5µs delay (after each channel change) as recommended by a Microchip tutorial. Is there an equivalent delay associated with changing the FVR gain? I haven't found a recommendation on that, nor a datasheet value on the Independent Gain Amplifiers' settling times.