The manual says:Hi,
Does the manual say "not available" (which is misleading) or "should not be used" (which is arguably correct)? Yes it does "work" (with all the M2 chips) but the manufacturer (Microchip) "recommends" (in its Data Sheets) that a Reference voltage of less than 1.8 volts should NOT be used for the ADC Reference Voltage. I suspect that's because the ADC may no longer achieve its published specification (e.g. as a full 10-bit ADC), but it might be "good enough" for some applications. So I have myself sometimes "recommended" its use, for example in preference to adding an external x2 Op-Amp to increase the ADC sensitivity.
Also, the FVR1024 is the "raw" 1.024 volt band-gap reference, whilst the FVR2048 and FVR4096 are the outputs from Rail-to-Rail Op Amps which may, for example, have a lower source impedance. In particular, I have observed "unsatisfactory" behaviour when using the FVR1024 to drive the DAC (but not the ADC).
Cheers, Alan.
Yes, the FVR does have documented voltage and temperature sensitivities, but not particularly "weird".To reduce power ... the FVR module is also automatically disabled after a readadc command....
The ADCCONFIG command simply tells you how to choose the FVR as the VRef+ for the ADC. Nothing complicated hereWhich is kind of strange, since it says don't do this, but then says that it used by the chip itself for calibadc.
goeytex, thanks for that. On a 20M2, FVR1024 certainly does work with a 5.0 volt supply, and per Alan's comment above, the FVR module is NOT reset after an ADC reading. So, as far as I can tell, the Microchip data sheets are ambiguous/incomplete/misleading, and have been interpreted into untrue statements in the Picaxe manuals. The trouble is that I'm working in uncharted territory as far as Microchip is concerned; i.e., there is no guarantee that this will always work, or even continue to work even though it does so now.The consistent theme throughout all of the PIC data sheets is not necessarily that FVR 1024 cannot be used for VREF+ but rather that VREF+ should be > 1.8 Volts. This would indeed preclude FVR1024 but would also preclude any external VFREF+ that is < 1.8V.
Carefully looking at a few datasheets, the 1.8V min VREF+ is specified with a VDD of 3.0 volts. If VDD for example is 5.0 volts, the chart in the datasheet becomes "iffy" if not somewhat ambiguous.
There is nothing inherently unstable with the FVR 1.024 reference voltage as opposed the 2.048 or 4.096 outputs . It is the 1:1 output of the same "independent programmable gain amplifier. " used for 2048 and 4096.
Microchip Developer Help regarding FVR does not mention the 1.8V min spec for FVR and reads as follows:
ADC Fixed Reference Voltage
The output of the FVR, when supplied to the Analog to Digital Converter (ADC), is routed through an independent programmable gain amplifier. The amplifier can be configured to amplify the reference voltage by a multiplier of 1x, 2x or 4x to produce the three possible voltage levels.
Based upon the somewhat ambiguous documentation I surmise:
The 1.8V min spec is based upon VDD = 3.0V.
The 1.8V min spec precludes use of FVR 1024 at 3.0V VDD as well an any external reference <1.8V
With VDD = 5.0V all bets are off as no spec is given
My testing on real chips with real applications has show that using FVR 1024 for ADC VREF+ works just fine with VDD = 5.0V
The accuracy is within 2 or 3 LSB with a 10K impedence and with good grounding techniques. I have not tested at 3.3V VDD.
I do not think that it should be interpreted that FVR 1024 is "forbidden" for use as ADC VREF+ but rather that Microchip does not guarantee the ADC accuracy Specifications with ADC FVREF+ / 1.024 .
I do not hesitate to use it when needed.