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 GMCLIB_DecouplingPMSM_F32<br />

Equation GMCLIB_DecouplingPMSM_Eq6<br />

Further, rearranging GMCLIB_DecouplingPMSM_Eq5 results in:<br />

where k d <strong>and</strong> k q are coefficients calculated as:<br />

Equation GMCLIB_DecouplingPMSM_Eq7<br />

Equation GMCLIB_DecouplingPMSM_Eq8<br />

Because function GMCLIB_DecouplingPMSM_F32 is implemented using the fractional<br />

arithmetic, both the k d <strong>and</strong> k q coefficients also have to be scaled to fit into the fractional<br />

range [-1, 1). For that purpose, two additional scaling coefficients are defined as:<br />

Equation GMCLIB_DecouplingPMSM_Eq9<br />

Using scaling coefficients GMCLIB_DecouplingPMSM_Eq9, the fractional<br />

representation of coefficients k d <strong>and</strong> k q from GMCLIB_DecouplingPMSM_Eq8 are<br />

derived as follows:<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 />

464 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!