Since the sites.picbasic.net had some issues a while back (and erased everyone's attached files) Darrel's DT_Analog.pbp file got gobbled up! So, none of my links to his code work anymore. Attached is his file that takes multiple samples from the A/D converter, and can "oversample" from 10 to 16 bits resolution. It is pretty slick, (no matter what Alain says) as it can make a 16 bit A/D converter out of a $1.50 PIC12F683.
Some more info on DT-Analog.pbp's sampling rates:
Hardware for my altimeter using his above code:
http://sites.picbasic.net/index.php?...d=91&pageid=81
Also attached is my AltimeterBlink.pbp code that calculates altitude, and sends it out the serial port, as well as blinks it out on an LED.
Bookmarks