TMS320F240 DSP-Solution for HighResolution Position with Sin/CosEncoders
http://www.ti.com/lit/an/spra496/spra496.pdf
This application report offers a solution for obtaining high-resolution position with sin/cosencoders using the Texas Instrument (TIä) TMS320F240 digital signal processor (DSP) controller. This is achieved with a minimum of glue logic and software overhead, since the TMS320C24x DSP controller already incorporates an on-chip quadrature encoder pulse (QEP) circuit as well as two analog-to-digital converters (ADCs). The QEP circuit provides a glueless interface to TTLencoders. The two analog-to-digital converters provide the simultaneous sampling of the two sinusoidal output signals of the sin/cos-encoders. The software package includes all functions required for initialization and position interpolation with sin/cos-encoders. All subroutines are ANSI C-compatible and can be called from any C program. Position interpolation requires 15ms of CPU execution time. The resolution achieved is approximately 400 times better than with TTL-encoders of equivalent line count. This gives the user the advantage of having either a higher position resolution or reduced sensor cost, since sin/cos-encoders require less line counts than equivalent TTL-encoders to achieve the same resolution.