I'm trying to read an analog value from a temperature sensor using a SAM51 MicroMod board. The processor board is installed on an ATP carrier board. The analog signal is connected to the A0 (carrier board pin). The value of the input voltage is a fairly constant 0.571V at room temperature. As a test I have also connected A1 to GND.
I'm using a very simple loop that runs every 10 seconds to read the value at A0 and A1. For reading I'm using the following Arduino command: val = analogRead(A0). val is defined as an int.
I read both A0 and A1 and get the same value for both, The bit count that I read is a little higher than expected (~60mV). What confuses me is the fact that both A0 and A1 come back with the same value.
Am I wrong to us A0 and A1 as the pin descriptor for this board?
Any insight on what I might be doing wrong?
val = analogRead(A0);
Serial.print("analog A0 is: ");
val = analogRead(A1);
Serial.print("analog A1 is: ");