03.08.2013 Views

Embedded Software and Motor Control Libraries for PXS20xx

Embedded Software and Motor Control Libraries for PXS20xx

Embedded Software and Motor Control Libraries for PXS20xx

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Equation GFLIB_Lut2D_Eq13<br />

5. Final linear interpolation in Y-axis way Interpolation <strong>for</strong>mulas are the same as<br />

paragraph 3 or 4:<br />

Equation GFLIB_Lut2D_Eq14<br />

Equation GFLIB_Lut2D_Eq15<br />

Equation GFLIB_Lut2D_Eq16<br />

Chapter 4 API References<br />

It should be noted that due to assumption of the equidistant data points, the division<br />

by the interval length is avoided.<br />

It should be noted that the computations are per<strong>for</strong>med with the 16-bit accuracy. In<br />

particular the 16 least significant bits are ignored in all multiplications.<br />

The shift amounts shall be provided in the parameters structure (pParam-<br />

>s16ShamOffset1, pParam->s16ShamIntvl1, pParam->s16ShamOffset2, <strong>and</strong>pParam-<br />

>s16ShamIntvl2). The address of the table with the data, the pTable}, shall be defined by<br />

the parameter structure member pParam->pf16Table.<br />

The shift amounts, the s Interval1,2 <strong>and</strong> s Offset1,2, can be computed with the following<br />

<strong>for</strong>mulas:<br />

<strong>Embedded</strong> <strong>Software</strong> <strong>and</strong> <strong>Motor</strong> <strong>Control</strong> <strong>Libraries</strong> <strong>for</strong> <strong>PXS20xx</strong>, Rev. 1.0<br />

Freescale Semiconductor, Inc. 379

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!