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.

4.58.4 Description<br />

The function GFLIB_IntegratorTR_F32 implements a discrete integrator using<br />

trapezoidal (Bilinear) trans<strong>for</strong>mation.<br />

The continuous time domain representation of the integrator is defined as:<br />

Equation GFLIB_IntegratorTR_Eq1<br />

The transfer function <strong>for</strong> this integrator, in a continuous time domain, is described using<br />

the Laplace trans<strong>for</strong>mation as follows:<br />

Equation GFLIB_IntegratorTR_Eq2<br />

Trans<strong>for</strong>ming equation GFLIB_IntegratorTR_Eq2 into a digital time domain using<br />

Bilinear trans<strong>for</strong>mation, leads to the following transfer function:<br />

Equation GFLIB_IntegratorTR_Eq3<br />

where T s is the sampling period of the system. The discrete implementation of the digital<br />

transfer function GFLIB_IntegratorTR_Eq3 is as follows:<br />

Equation GFLIB_IntegratorTR_Eq4<br />

Considering fractional maths implementation, the integrator input <strong>and</strong> output maximal<br />

values (scales) must be known. Then the discrete implementation is given as follows:<br />

Equation GFLIB_IntegratorTR_Eq5<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. 339

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

Saved successfully!

Ooh no, something went wrong!