Quote Originally Posted by earltyso View Post
SkiMask,
Working great now....I realized that I had
Y VAR BYTE instead of Y VAR WORD which caused my math to be all funky...
I have also never used the // modulus math command either, I think I understand how that works now, I will play with 4 sig figs now to see If I get the rest all worked out.
thanks a million!
If you've got PBP 2.50, you can use LONGs and get quite a bit of resolution...of course that'll be limited to your ADC also. 4 sig figs are easily doable with a 10-bit ADC...which obviously the PICs usually have.