X90CP154.32.S1 PWM current measurement and control

,

Hi, I have a X90CP154 in my project. I need to control the current in the PWM output port. Now I read the current from the channel and there is a huge difference. The ammeter shows 600 mA, but the port number after multiplying by 305 comes to 720 mA. Why is there this difference? The settings are in the following figures

Hi,

Measuring current at a PWM output isn’t exactly easy.
You really need a good TrueRMS meter for that.
Alternatively, an oscilloscope with a shunt resistor could be very helpful for checking this.

A followed up question is what is configured here: Current measurement configuration

Hi Saeed,

according to the technical data, the error is based on the range of 20 A! As 1 % is 200 mA an overall error of 120 mA is within spec. But usually the error is much lower.

Some tips:

  • Most meters (as e.g. the Flukes) are measuring RMS only in AC mode, but PWM is NOT AC, as the signal is always positiv to GND. Set the measure mode to “arithmetic” and the value should be more accureate.
  • The Measuring period must be a multiply of the PWM period, otherwise you would not capture a full period.
  • I suggest to not use the Frequency from I/O datapoint but set it to “fixed”. Then you can select the current measurement as synchronous to PWM period.

One question: What do you mean with “secondary input” ?

Kind regards,

Christian

Hi Christian

thanks for your sharing.

it was misspelling.

Regards

Hi everyone!

Thanks for your time and attention.

I changed RMS to arithmetic and now it is fine!

Now both measurements are equals.

Regards