Bits 31:0 – VELCNT[31:0] 32-bit Velocity
Counter bits
The velocity counter
is automatically cleared after every processor read of the velocity counter. It is
not reset by the index input or otherwise affected by any of the PIMOD[2:0]
specified modes. The contents of the counter represents the distance traveled during
the time between samples. Velocity equals the distance traveled per unit of time.
The velocity counter can save the application software the trouble of performing
32-bit math operations between current and previous position counter values to
calculate velocity. If the velocity counter rolls over from 0x7FFFFFFF to
0x80000000, or from 0x80000000 to 0x7FFFFFFF, an overflow/underflow condition is
detected. If the VELOVIEN bit is set in the QEISTAT register, an interrupt will be
generated.