Hi, Ahmed
I Finally got it !!!
the problem is in the Waiting loop ... that doesn't wait !!!
sooo... add :
at the top of the program
and change :
Code:
WaitLoop:
' While not DQ ' NOT Working !!!
' Wend
by
Code:
WaitLoop:
OWIn DQ, 4, [Busy] ' Check for still busy converting
'PORTC.4 = 1 ' Show waiting for conv complete
If Busy = 0 Then
GOTO waitloop
ENDIF
' PORTC.4 = 0
Port C.4 was chosen to show the time the DS is Busy ... very useful tool to verify conversion is really complete !!!
Have fun,
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks