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

• the values of the interpolated function are 32 bits long<br />

• the length of each interpolating interval is equal to 2 -n , where n is an integer in the<br />

range of 1, 2, ... 29<br />

• the provided abscissa <strong>for</strong> interpolation is 32 bits long<br />

The algorithm per<strong>for</strong>ms the following steps:<br />

1. Compute the index representing the interval, in which the linear interpolation will be<br />

per<strong>for</strong>med:<br />

Equation GFLIB_Lut1D_Eq2<br />

where I is the interval index <strong>and</strong> the s Interval the shift amount provided in the<br />

parameters structure as the member s32ShamIntvl. The operator >> represents the<br />

binary arithmetic right shift.<br />

2. Compute the abscissa offset within an interpolating interval:<br />

3.<br />

Equation GFLIB_Lut1D_Eq3<br />

where Δ{x} is the abscissa offset within an interval <strong>and</strong> the s Offset is the shift amount<br />

provided in the parameters structure. The operators f32Table. It<br />

should be noted that due to assumption of equidistant data points, division by the<br />

interval length is avoided.<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 />

358 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!