Skip to main content
Associate
June 25, 2024
Solved

STPM32+XZM-CT50A01

  • June 25, 2024
  • 1 reply
  • 1312 views

I'm trying to use STPM32 with XZM-CT50A01, and the series resistor = 6.2 ohm. 
I thought ks = Rb/N = 6.2/1000. But I cannot measure the expected current.

The load was 50mA but STPM32 respond 1.2A.
The software may be OK because we have confirmed with EVALSTPM33.

I'd like to know the Ks setting is correct or not. Maybe our board has already damaged, or the board has cold soldering??

Can you advise me if the Ks calculation is correct? 

 

Best answer by Daichi

I solved by myself.

[Cause]

Gain setting was wrong. We have to set GAIN1=x2 (0x0) but we used default = x16(0x3).

We missed the default parameter.

Once we set to correct gain (x2), we were able to measure reasonable current.

 

Thank you

1 reply

DaichiAuthorBest answer
Associate
June 25, 2024

I solved by myself.

[Cause]

Gain setting was wrong. We have to set GAIN1=x2 (0x0) but we used default = x16(0x3).

We missed the default parameter.

Once we set to correct gain (x2), we were able to measure reasonable current.

 

Thank you

Andrew Neil
Super User
June 25, 2024

@Daichi wrote:

I solved by myself.


Excellent!

Now please mark that post as the solution.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.