Hi,
I'm somewhat affraid ...
ADCIN 1,tb0
tb1=tb0-16170
tb1=tb1*tb3
tb2=Div32 634
tb0=tb2/100
tb1=tb2//100
0 < Tb0 < 1024 ... ok ?
1024 - 16170 = ??? - 15146 !!!
so, tb1 is NEGATIVE ...
and PBP do not deal with negative numbers .... but " read " it as 65536 -15146 = ???
a hole in the somewhere ??? 
Alain
Last edited by Acetronics2; - 15th January 2011 at 14:30.
************************************************** ***********************
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