Quote Originally Posted by Acetronics View Post
Hi,

I'm somewhat affraid ...


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
Well, the ADC range is not 0-1024, but 0-65535...
(verified with a display of the raw ADC value).