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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

output beta component of the output vector should be<br />

// f16OutAB.f16Arg2 = (7.5/36)*0.8660/(17.0/36/2) = 0.7641 -><br />

FRAC16(0.7641) ~ 0x61CF<br />

GMCLIB_ElimDcBusRip_F16 (&f16OutAB,&f16AB,&f16trMyElimDcBusRip);<br />

~ 0x7FFF<br />

// output alpha component of the output vector should be<br />

// f16OutAB.f16Arg1 = (12.99/36)*0.8660/(17.0/36/2) = 1.3235 -> FRAC16(1.0)<br />

// output beta component of the output vector should be<br />

// f16OutAB.f16Arg2 = (7.5/36)*0.8660/(17.0/36/2) = 0.7641 -><br />

FRAC16(0.7641) ~ 0x61CF<br />

GMCLIB_ElimDcBusRip (&f16OutAB,&f16AB,&f16trMyElimDcBusRip,Define F16);<br />

~ 0x7FFF<br />

// ##############################################################<br />

// Available only if 16-bit fractional implementation selected<br />

// as default<br />

// ##############################################################<br />

// output alpha component of the output vector should be<br />

// 16OutAB.f16Arg1 = (12.99/36)*0.8660/(17.0/36/2) = 1.3235 -> FRAC16(1.0)<br />

// output beta component of the output vector should be<br />

// f16OutAB.f16Arg2 = (7.5/36)*0.8660/(17.0/36/2) = 0.7641 -><br />

FRAC16(0.7641) ~ 0x61CF<br />

GMCLIB_ElimDcBusRip (&f16OutAB,&f16AB,&f16trMyElimDcBusRip);<br />

}<br />

4.105 Function GMCLIB_ElimDcBusRip_FLT<br />

This function implements the DC Bus voltage ripple elimination.<br />

4.105.1 Declaration<br />

void GMCLIB_ElimDcBusRip_FLT(SWLIBS_2Syst_FLT *const pOut, const SWLIBS_2Syst_FLT *const pIn,<br />

const GMCLIB_ELIMDCBUSRIP_T_FLT *const pParam);<br />

4.105.2 Arguments<br />

Table 4-130. GMCLIB_ElimDcBusRip_FLT<br />

arguments<br />

Type Name Direction Description<br />

SWLIBS_2Syst_FLT<br />

*const<br />

const<br />

SWLIBS_2Syst_FLT<br />

*const<br />

const<br />

GMCLIB_ELIMDCBUS<br />

RIP_T_FLT *const<br />

pOut output Pointer to the structure with direct ( α) <strong>and</strong> quadrature ( β)<br />

components of the required stator voltage vector re-calculated<br />

so as to compensate <strong>for</strong> voltage ripples on the DC bus.<br />

pIn input Pointer to the structure with direct ( α) <strong>and</strong> quadrature ( β)<br />

components of the required stator voltage vector be<strong>for</strong>e<br />

compensation of voltage ripples on the DC bus.<br />

pParam input Pointer to the parameters structure.<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 />

Chapter 4 API References<br />

Freescale Semiconductor, Inc. 483

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

Saved successfully!

Ooh no, something went wrong!