摘要 |
A method of decoding a quadrature encoded signal where position tracking is implemented which decouples the position calculations from the encoder edges. In one embodiment of the present invention, a uni-directional pulse accumulator is used to count encoder edges, and a periodic interrupt timer is used to update the position information, where interrupts are generated independent from encoder edges. At slow speeds, the mode switches to monitor each encoder edge to check for direction reversal without requiring position information. This decodes bi-directional quadrature position information using a uni-directional counter and a count compensation method for resolving changes in direction.
|