Jan-Erik, I realize that but right now I want to get everything in the=20 program working correctly and then I will go in and improve the program. Thanks, rich! On 10/25/2015 6:32 AM, Jan-Erik S=F6derholm wrote: >> Long Int is much better. It allows numbers from -2.x billion to 2.x > billion. > > No reason to use a singed here. > >> I think that is big enough. > Do not guess, make your calculations. From the code example you > gave, an "unsigned short long", should be enough, 0 - 16.777.215. > Your max value was 1.000 x 1.000 or 1.000.000. > > Note also that your for-loop-variable calculations will probably take > more time then the NOP() instructions in your 1 us delay. So no matter > what, this is still a rather bad solution. > > > > --=20 Richard R. Pope President Reedsburg Area Model Railroad Club, RAMRC 1230 19th Street #5 Reedsburg, WI 53959 608-768-7448 mechanic_2@charter.net --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .