At 05:13 PM 19/02/01 -0800, you wrote: >I'm must be the dumbest person in the world.. I >haven't run into a stump this big in along time! > >I *STILL* haven't figured out how to read an >analog value on my 16F84, I've tinkered with the >R/C method -- No luck, so I went and bought an >ADC8031 & found some code for the PIC16C71 which >I converted to PIC16F84 (see below).. I've thrown >a 1Meg resister in there as follows: > >+5VDC--->1M Resistor--->Photocell--->ADC0831 VIN Robert, Connect the photocell to ground instead of the ADC input. Then connect the ADC input to the junction of the resistor & photocell. Experiment with different resistor values to get the best range. Regards... -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body