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.

If the desired (input) value is greater than the ramp output value, the function adds the<br />

fltRampUp value to the actual output value. The output cannot be greater than the desired<br />

value. If the desired value is lower than the actual value, the function subtracts the<br />

fltRampDown value from the actual value. The output cannot be lower than the desired<br />

value. The ramp function is per<strong>for</strong>med as follows:<br />

Equation GFLIB_Ramp_Eq1<br />

Functionality of the implemented ramp algorithm can be explained with the use of Figure<br />

4-33<br />

Figure 4-33. GFLIB_Ramp functionality<br />

Note<br />

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

during declaration using the GFLIB_RAMP_DEFAULT<br />

macro.<br />

4.75.5 Re-entrancy<br />

The function is re-entrant.<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. 393

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

Saved successfully!

Ooh no, something went wrong!