hi,
i try the code u send me but still the same result nochange the resolution still 0.5
hi,
i try the code u send me but still the same result nochange the resolution still 0.5
Hi, Ahmed
No surprise ... you do not write tte DS Config Word in the right registers ...
our friend Fratello saw that ( and corrected it ... )
a pair of zeros is missing in your command line ...
Alain
Last edited by Acetronics2; - 14th June 2009 at 13:03.
************************************************** ***********************
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 " !!!
*****************************************
hi,
still the same resolution 0.5 even after i update the code , attached is the code u send me if u want to check
Hi, Ahmed
I must admit Fratello's program only shows half degrees ... ( just tested on an EasyPic 5 )
but still have not found Why !!!
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 " !!!
*****************************************
Hi, Ahmed
I Finally got it !!!
the problem is in the Waiting loop ... that doesn't wait !!!
sooo... add :
at the top of the programCode:Busy VAR BIT
and change :
byCode:WaitLoop: ' While not DQ ' NOT Working !!! ' Wend
Port C.4 was chosen to show the time the DS is Busy ... very useful tool to verify conversion is really complete !!!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
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 " !!!
*****************************************
hi,
so thanks for help now i got resolution 1/100 i am so happy but i want to underestand what no 4 in statement OWIn DQ, 4, [Busy] means ???
i have another question i want to read the o/p to pc serial port i connect 1k resistance to portb.1 and send it to pc rx pin (2) and circuit ground to pc gnd pin (5)
note : i am using usb to serial converter
i update the program just for testing to send a message but i notice that the Rx led on usb to serial converter flashes and nothing out on hyberterminal ????
attached is code
Bookmarks