Do not mix up the ADCIN defines and the bit banging from Bruce's example.
Some more reading..
http://www.picbasic.co.uk/forum/showthread.php?t=2188
And a snippet for 10 bit banging..
Do a search for 10 bit ADC also..Code:ADCON1.7 = 1 gosub getAD press.highbyte = ADRESH press.lowbyte = ADRESL return
http://www.picbasic.co.uk/forum/showthread.php?t=4751
Bookmarks