On 8/5/06, Jinx wrote: > > the ANSEL register...thats what I was missing from it and > > what I expected to find for the selection > > Ah. I believe the F877 was the first with ADC (14000 not > withstanding), so I regard it as the baseline ADC micro. > Subsequent ADC micros, such as the F88, are different > from the F877 (in that they have more functions and need > the ANSEL register), not the other way around. But of > course that all depends on your POV. Different is different. > I used the F877 a long time before the F88 so look at it > chronologically. If you'd used the F88 before the F877, > then you would find things missing (eventually ;-) ) > > Incidentally, the various analogue products I made with the > F877 taught me, the hard way, that analogue inputs can be > fragile. Two of the products involved relays and solenoids, > and analogue pins were totally munted by ground spikes. Joe, have you tried (except good ground layout) a low ESR capacitor mounted near the relay coil (I mean VERY close to the coil) between the +supply and ground. Usually an 100 to 220uF (even aluminium) are solving most of that sort of problems (as long the coil has also the suppressor diode mounted very close to the coil pins too) Vasile -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist