I have a 3 phase motor with a current sum shunt, as well as shunts on A and B phases of the motor. Since this is a PMSM sensorless control, the SVM continuously changes the PWM. The resulting "Sum" current is a small slice out of the entire pwm period (20KHz). I believe I can get the measurement with the ADC. The problem I have is how to translate this slice of current into an equivalent supply current. I did something similar on a BLDC sensored motor, and it was dependent on the duty cycle at the time of measurement. The problem with PMSM is that the duty cycle is all over the place.
Any ideas or alternatives that can be suggested?