Hi
please find the code attached
i have 2 pole motor, which runs approximately at 3000 rpm, and encoder is 2000ppr
Frequency is approx 100 khz, Counting is not a problem, its just holding the values
32 bit register can hold 2 billion bits, and at 100khz , my data register will be filled in 2000 sec, i need it to operate for much longer time than that
so my quest is if it reaches lets say 1 billion bits, it automatically attaches it to adjacent register
Explaining it in simple ways would be, i have created dataflow as a water flow analogy
i will try with index registers, since its used for positioning, i will still be required to add the values, and then start decrementing them in reverse order
i am still trying to get my head around Last in first out command and shifting registers, may be that can work
thanks
Best Regards,
Vib
Encodercontrol.pdf
Encodercontrol1.pdf