Speed Controller (SC) eTPU Function

The SC function is not intended to process an input or output signal. The purpose of the SC function is to control another eTPU function's input parameter. The SC function includes a controller algorithm. The controller calculates its output based on two inputs: a measured value and a desired value. The measured value, the actual motor speed, is calculated based on inputs provided by the quadrature decoder (QD) or Hall decoder (HD) function. The desired value is an output of a speed ramp,whose input is a SC function parameter, and can be provided by the CPU or another eTPU function. In the motor-control eTPU function set, this function mostly provides the speed closed loop. The controller algorithm is a general proportional-integral-derivative (PID) algorithm. It can be configured as PI or PID controller.

Functionality of SC in HD mode.


Functionality of SC in QD mode.

For full description refer to AN2843.