I am having some difficulty getting the A/D Converter in my PIC16C76 Emulated System (via ICEPIC). I'm inputting a 0-5VDC voltage through a series 10 ohm resistor into Port A0 of my microcontroller which at the time is the ICEPIC emulator. The problem is that the voltage seems to be drifting all over the place and not settling. I think it may either be a code problem on my part. In particular, the voltage seems to be constantly and slowly drifting up. The following subrouting is from my program. //***************** setup_adc_ports (ALL_ANALOG); setup_adc (ADC_CLOCK_INTERNAL); set_adc_channel ( 0 ); while (TRUE) { value = read_adc ( ) ; delay_ms (20); *****routine here for displaying 8-bit A/D number on LCD***** } Any thoughts??? Thanks in advance! Dan -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body