03.08.2013 Views

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

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.

Function GFLIB_Cos_F16<br />

Equation GFLIB_Cos_Eq6<br />

There<strong>for</strong>e, the resulting equation has the following <strong>for</strong>m:<br />

Equation GFLIB_Cos_Eq7<br />

Figure 4-26 depicts a floating point cosine function generated from Matlab <strong>and</strong> the<br />

approximated value of the cosine function obtained from GFLIB_Cos_F16, plus their<br />

difference. The course of calculation accuracy as a function of the input angle can be<br />

observed from this figure.<br />

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

324 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!