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_<strong>Control</strong>lerPIrAW_F32<br />

Equation GFLIB_<strong>Control</strong>lerPIrAW_Eq5<br />

The resulting controller discrete time domain equation in fixed point fractional<br />

representation is there<strong>for</strong>e given as:<br />

Equation GFLIB_<strong>Control</strong>lerPIrAW_Eq6<br />

which can be rearranged into the following <strong>for</strong>m:<br />

where<br />

Equation GFLIB_<strong>Control</strong>lerPIrAW_Eq7<br />

Equation GFLIB_<strong>Control</strong>lerPIrAW_Eq8<br />

are the controller coefficients adapted according to the input <strong>and</strong> output scale values. In<br />

order to implement both coefficients as fractional numbers, both CC1 f <strong>and</strong> CC2 f must<br />

reside in the fractional range [-1, 1). However, depending on values CC1, CC2, E MAX , U<br />

MAX , the calculation of CC1 f <strong>and</strong> CC2 f may result in values outside this fractional range.<br />

There<strong>for</strong>e, a scaling of CC1 f, CC2 f is introduced as follows:<br />

Equation GFLIB_<strong>Control</strong>lerPIrAW_Eq9<br />

Equation GFLIB_<strong>Control</strong>lerPIrAW_Eq10<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 />

306 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!