Analog port newbie questions
Hi guys,
Im having trouble using the analog port. Regarding the analog port A, is it supposed to output high (approx 4.8V) when its not connected to anything ? I have set trisa=%111111.
Ive programmed everything else correctly (I think), after reading some good guides on programming for port A.
The problem is I have a photodiode which has open circuit voltage of 0.25V but when I connect it to channel 0 it jumps to 0.40V for some reason. The Vref+ is set to 2.5V.
Thanks all.
edit: I suspect that something is wrong with my port A. How do i check ? Anyone have a working test code ? Im also testing it now ..
Port A is a bit different
Hi,
What PIC do you use? Port A usually contains a lot of stuff such as comparators and A/D and there fore requires some more registers to be set before it is working properly.
What do you have connected to your port A and what do you want it to do? Do you want all pins digital? or just some and the others A/D.
To help you we need some more info such as mentioned befoer PIC, simple circuit description, a clear idea of your expected end result and some beer.
The beer most of us already have so you just add the rest and we will see where the problem is.
/me