I am working on a fire detection system with the Seeeduino Xiao board. I have a thermistor attached, and so I'm reading a voltage which provides me with a temperature, after some mathematical juggling.
However, I find that the analogRefernce() function won't compile: the compiler claims that EXTERNAL, INTERNAL, or DEFAULT are not declared within the scope of the code. Also, I don't find any reference anywhere to an ARef pin, as exists on many Arduino variants.
So the XIAO appears to have a fixed ARef, internally chosen. Nominally, I would expect that to be 3.3 volts, but since it uses 5 volts as a power supply, that may not be right.
Probably a better question for SeeedStudio. While the board CAN be programmed by the Arduino IDE, the manufacturer wrote the plugin, and know the specifications very well.
Thanks for the data. Oddly enough, when I use AR_INTERNAL2V5, I find I must use 3.14, not 2.5, as the reference voltage. It seems to be impossible to locate any detailed information of the accuracy and full range of the XIAO's ADC process.