Skip to main content
Associate II
Aug 28, 2025 12:01 PM UTC
Solved

Formula for overcurrent protection threshold for STSPIN32G4?

Original title: "What is the correspondence between the overcurrent protection threshold and the DAC value for STSPIN32G4? Can you provide the calculation formul"

Shortened in accordance with the posting guidelines.


I have an EVSPIN32G4 evaluation board with a sampling resistor of 0.005Ω.
Why does a current of 40A correspond to a threshold of 7427 (0.37V)?

Garey_0-1756382124801.png

image.png

This topic has been closed for replies.
GMA
GMABest answer
ST Technical Moderator
Sep 1, 2025 8:35 AM UTC

Hello @Garey,

Did you review the "5.5.2 Embedded comparators" section of the EVSPIN32G4 user manual?

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA

5 replies

GareyAuthor
Associate II
Sep 1, 2025 1:40 AM UTC

Hope to get a reply as soon as possible. I'm really concerned about whether it can truly protect my circuits and motors.   :)

GMA
GMABest answer
ST Technical Moderator
Sep 1, 2025 8:35 AM UTC

Hello @Garey,

Did you review the "5.5.2 Embedded comparators" section of the EVSPIN32G4 user manual?

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
GareyAuthor
Associate II
Sep 1, 2025 8:45 AM UTC

thank you.

Senior III
Sep 1, 2025 8:14 AM UTC

3.3V corresponds to 65535 hence 7427 correspond to 0.37V. How 40A is achieved you can go through the document attached, there is section on over current protection.