Mark,
I have the same problem using a 16f873. I know that this is not the right way, but it was a temporary thing that I did til I could research more, which I have not had time to do, but I think this may work for you:
loop:
ADCIN 0, adval1 ' Read AN0
' adcin 1, adval2 ' Read AN1
LET adval1 = adval1/64
'LET adval2 = adval2/64
if adval1 < 512 then
high PORTB.4
else
low PORTB.4
endif
serout2 PORTB.3,16572,["ADVAL_1 = ",dec adval1,13,10]
pause 100
goto loop
End
But there are pro's here that will show you the proper way
Greg
Bookmarks