User Guide

DS70640A-page 12 2010 Microchip Technology Inc.
It is always better to have a software speed reference instead of the standard
potentiometer/DMCI slider control since it is more stable and it can offer better
granularity.
For testing purposes, a slow software ramp is implemented as a speed
reference, being activated using the following definition:
userparms.h
The smaller the value of the delay of ramp, the slower the ramp will increase.
This ramp always starts from open loop zero speed, gets to END_SPEED_RPM
value in open loop, switches to closed loop and continues acceleration up to
MAXIMUM_SPEED_RPM in close loop. Software speed reference is particularly
important in the field weakening region for this algorithm, since it is used for
referencing the index in the lookup tables.