I´m new with GCBasic and I´ve tryed to read in analog values from porta.0 at my atmega32 demo board with the readad10(an0) command. But it delivers only 1023. If I read the digital status of the porta.0 it works fine.
I tryed some different values for AN0 like ADC0, AD0 or only 0 same result. What could be wrong?
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I´m new with GCBasic and I´ve tryed to read in analog values from porta.0 at my atmega32 demo board with the readad10(an0) command. But it delivers only 1023. If I read the digital status of the porta.0 it works fine.
I tryed some different values for AN0 like ADC0, AD0 or only 0 same result. What could be wrong?
Thomas
Do you tied 5V to AREF?