Success ...
Hi, Ruijc
I just re-wrote your code ... works fine ( I'm only talking of the PIC point of view - do not talk about precision ...)
Try to write carefully ( and readably) ALL your config sequence ( I know ... ~ 50 lines ! )... and it will work !!!
Just a tip:
instead of :
" temp = (va1*/500)>> 2 "
try :
" temp = val*125
temp = temp.highbyte "
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