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.

4.60.4 Description<br />

The function GFLIB_IntegratorTR_FLT 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 the<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 />

Note<br />

All parameters <strong>and</strong> states used by the function can be reset<br />

during declaration using the<br />

GFLIB_INTEGRATOR_TR_DEFAULT_FLT macro.<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. 345

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

Saved successfully!

Ooh no, something went wrong!