In message <20040618203124.39691.qmail@web51909.mail.yahoo.com> dimov stefan wrote: > I've tried to measure DC and display the corresponding > number from the ADC on a LCD .I used pic16F877. For > initiation of the ADC I used AN546. > But when I'm changing the voltage gradually from 0V > to 5V the LCD shows only four values respectivly : 0, > 257, 514, 771. > Where is the culprit? Can you post your code here? It sounds like you're not setting the A/D up correctly, or you're not reading the A/D value correctly. Later. -- Phil. | Acorn Risc PC600 Mk3, SA202, 64MB, 6GB, philpem@dsl.pipex.com | ViewFinder, 10BaseT Ethernet, 2-slice, http://www.philpem.dsl.pipex.com/ | 48xCD, ARCINv6c IDE, SCSI ... Procrastination means never having to say you're sorry. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body