hi,
im back
tq for your advice. i change the port b to digital by just adding:
adcon1 = 7
then it works fine. Actually, i only follow the example in the PBP book and i dint really understand the definition of it, how the PIC change the analog port to digital port and so on.
Can you help explain about the ADCON1 command and what if i want to chnge ONLY portb.4 and portb.3 to digital??
what should i do??
thanks
Bookmarks