This application note describes the API set for implementing a current sensing strategy in electric motor control applications.
The document details a set of functions included in the ST10 Electric Motor Control Library (EMCL) designed to process current measurements. It explains how to use two ADC channels to sample currents from shunt resistors, measuring one as an instantaneous value and the other as an average value.
A specific strategy is described for using a single A/D converter multiplexed on two channels to reduce costs while minimizing measurement errors. The note provides API specifications for initializing, starting, and registering control functions, along with details on synchronizing ADC sampling with PWM signals.
| Library Name | $T10 electric motor control library (EMCL) |
|---|---|
| ADC Channels Used | Two ADC channels (c1 and c2) |
| Measurement Strategy | One instantaneous, one average value |
This function configures two ADC channels in Injection Mode and synchronizes current sampling with the PWM period.
The strategy uses two ADC channels to sample currents on two shunt resistors.
The current values are available for control only in the 2nd semiperiod of the PWM period.