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

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

Equation GMCLIB_DecouplingPMSM_Eq8<br />

Because function GMCLIB_DecouplingPMSM_F16 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 />

Equation GMCLIB_DecouplingPMSM_Eq10<br />

Substituting GMCLIB_DecouplingPMSM_Eq8 - GMCLIB_DecouplingPMSM_Eq10<br />

into GMCLIB_DecouplingPMSM_Eq7 results in the final <strong>for</strong>m of the equation set,<br />

actually implemented in the GMCLIB_DecouplingPMSM_F16 function:<br />

Equation GMCLIB_DecouplingPMSM_Eq11<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 />

470 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!