Quote Originally Posted by precision View Post
When counts cross 65535, number will be 00000 and counts again upto 65535
but when i code
if W0 < 0 then W0 = 65535 + 1
after this counter will 00000 and hang on 00001
.
That's my point...
W0 cannot be less than 'ZERO' with PBP...
PBP does not natively handle negative numbers using normal math routines. Yes there are a few commands that can handle signed integers, but not in the way you're looking to handle them. There are no 'minus' signs
You must figure out your own method to handle those negative numbers.