Hi SOTA^2

I do not understand one thing :

How do you do for entering a 1275 value on portB ??? ....

as maximum value is 255 or %11111111


for the math ...

IF your max value is 1275 ...

Wtotal/1275 = 0 or 1 ( integer math Ok ??? )

if multiplied by 100 ... result is 0 or 100

That's all !!!

first multiply Wtotal by 100 and AFTER that divide by 1275 ...

Alain