I have this question so let me describe the context:
I have one sensor that outputs no more than 1V analog voltage (say it's a centigrade temperature sensor). I also have a sensor that will output 0-5V range analog voltage (say it's an accelerometer).
I want good accuracy for the 0-1V temp sensor so I want to use 1.024V internal reference voltage. I need larger range for the accelerometer so I will use default 5V reference for the accelerometer.
My question is, can this be done safely with arduino C (change reference, measure first channel, change reference measure second channel) or do I have to use assembly code or port manipulation to make sure I am not for a moment comparing 0-5V signal with 1.024V reference (I thought that could be bad)? Thanks.