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.

Function GMCLIB_ElimDcBusRip_F32<br />

Equation GMCLIB_ElimDcBusRip_Eq4<br />

where: f32ModIndex is the inverse modulation index, f32ArgDcBusMsr is the measured<br />

DC bus voltage, the u α <strong>and</strong> u β are the input voltages, <strong>and</strong> the u α* <strong>and</strong> u β* are the<br />

output duty-cycle ratios.<br />

The f32ModIndex <strong>and</strong> f32ArgDcBusMsr are supplied to the function within the<br />

parameters structure through its members. The u α, u β correspond respectively to the<br />

f32Arg1 <strong>and</strong> f32Arg2 members of the input structure, <strong>and</strong> the u α* <strong>and</strong> u β* respectively<br />

to the f32Arg1 <strong>and</strong> f32Arg2 members of the output structure.<br />

It should be noted that although the modulation index (see the parameters structure, the<br />

f32ModIndex member) is assumed to be equal to or greater than zero, the possible values<br />

are restricted to those values resulting from the use of Space Vector Modulation<br />

techniques.<br />

In order to correctly h<strong>and</strong>le the discontinuity at f32ArgDcBusMsr approaching 0, <strong>and</strong> <strong>for</strong><br />

efficiency reasons, the function will assign 0 to the output duty cycle ratios if the<br />

f32ArgDcBusMsr is below the threshold of 2 -15 . In other words, the 16 least significant<br />

bits of the f32DcBusMsr are ignored. Also, the computed output of the <strong>and</strong> u β*<br />

components may have an inaccuracy in the 16 least significant bits.<br />

Note<br />

Both the inverse modulation index pIn->f32ModIndex <strong>and</strong> the<br />

measured DC bus voltage pIn->f32DcBusMsr must be equal to<br />

or greater than 0, otherwise the results are undefined.<br />

4.103.5 Re-entrancy<br />

The function is re-entrant.<br />

4.103.6 Code Example<br />

#include "gmclib.h"<br />

#define U_MAX (36.0) // voltage scale<br />

SWLIBS_2Syst_F32 f32AB;<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 />

478 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!