PDA

View Full Version : ADCIN Help



Tear
- 25th July 2005, 16:13
Using the ADCIN command allows for the use of an analog signal to the microcontroller. Looking at the example code on the webpage the whole PORTA is set as analog inputs. Is this because each I/O pin holds a bit? And if so which pin do you wire the input analog signal to? Also since I am measuring an analog signal that will range from 0-5V how many bits do I need to set the ADC to when all I want to do is measure if it is above 0V?

Thanks,
Michael

NavMicroSystems
- 25th July 2005, 18:47
Tear,

there is definitely no need to post the very same thing on two (or more) different threads.

please see this (http://www.picbasic.co.uk/forum/showpost.php?p=8765&postcount=2)

(you have at least three different threads regarding the same thing!)

I would also recommend to read the 12F629 Datasheet (http://ww1.microchip.com/downloads/en/DeviceDoc/41190c.pdf) and PBP Manual (http://www.microengineeringlabs.com/resources/pbpmanual/).

(There is NO A/D-converter on the 12F629)