Quote Originally Posted by bodgetts View Post
I have a photodiode that I will be hitting with a laser diode, and I need to be able to determine when I have hit the 'target'.

What is the simplest way to do this with a PIC? ie. Can I hook it up with just a pull-up resistor in a similar fashion to a simple button input? I only need to know when it is on and off.

Thanks
Yes, as you said, it would be one of the simplest ways to do it.
Instead of a pulll up or pulll down resistor, use a trimmer pot to adjust the voltage level on the PIC pin when there is light on LDR.

And for the code, use a delay routine to avoid false readings from ambient light(s) or sudden flashes.