
Originally Posted by
lerameur
yes I am printing them out and carefully reading them now.
But, i am curious, if I wanted to use the POT command, what do i have to do to read from port A?
k
lerameur,
without actually doing it to verify it works . . .as I do not have a 16F88
put the three BOLD commands into your code to make the PortA pins digital and turn off the analog comparators
Code:
CMCON=7 ' Disable comparators
ANSEL=0 ' Set port as digital I/O
ADCON1=7
TrisA = %11111111 'sets all port a as input
TrisB = %00000000 ' sets all port b as output
B0 var byte ' establishes a variable called B
Start:
Pot PortA.2,255,B0 ' would like PortA.2,175,B0 use number to suit you
Lcdout $fe, 1 'Clear screen
Lcdout $FE,$80,"Pot: ", #B0 'Display the numerical value
Pause 300
goto start
end
This should work.
JS
Bookmarks