I am using a pic16f870 with picbasic to read an analog input from a temp sensor. The 870 has a 10 bit AD converter but I am only geting 8 bits. How can I change my code to get the full 10 bits. Here is my code
Poke $1f, $45
pause 1
peek $1e, w3
when I put a pot on the analog pin and vary the voltage from 0 to 5 volts I get a number from 0 to 255 so I know I am only geting 8 bit instead of 10 bit like I want.
Thanks