Originally Posted by Douwe
In the program i checked the ADCON0.2 bit for low and if it is not low, jump to
label meten: thats the problem.
label meten: starts with initialize the AD converter again etc. thats no good, i can't explane why, but now i jump to ADCON0.2 = 1 (start conversion) and it works fine.
------------------------------------------------------------------------
summary, wrong code:
meten: ADCON1 = %01000001
ADCON0 = %11000001
ADCON0.2 = 1
Pause 50
If ADCON0.2 = 1 Then meten
etc.
etc.
Now, with good results:
meten: ADCON1 = %01000001
ADCON0 = %11000001
Again: ADCON0.2 = 1
Pause 50
If ADCON0.2 = 1 Then again
etc.
etc.
----------------------------------------------------------------------
Douwe (The Netherlands)
Bookmarks