Using TOUT as analog input
Posted: Sun Oct 05, 2014 7:13 pm
From what I have read PIN 6 / TOUT is a 10 bit 0v-1.1v analog input pin.
However after soldering directly to pin 6 on a couple of boards I have not seen any meaningful data using adc_read().
Sometimes I will get an expected result, for example wiring TOUT to ground will sometimes return 0 and wiring TOUT to pin 5 (1.1v) will occasionally give 1024.
However just as often these will return a random value (usually between 400 and 700) as it usually does when left floating.
adc.c does seem to include a few references to i2c and TOUT - I wonder if this was designed for a external i2c to ADC chip.
Anyone else had any success using TOUT as analog in?
However after soldering directly to pin 6 on a couple of boards I have not seen any meaningful data using adc_read().
Sometimes I will get an expected result, for example wiring TOUT to ground will sometimes return 0 and wiring TOUT to pin 5 (1.1v) will occasionally give 1024.
However just as often these will return a random value (usually between 400 and 700) as it usually does when left floating.
adc.c does seem to include a few references to i2c and TOUT - I wonder if this was designed for a external i2c to ADC chip.
Anyone else had any success using TOUT as analog in?