Skip to main content
Visitor II
August 5, 2025
Question

STPM32 triggers interrupt for non masked bits.

  • August 5, 2025
  • 1 reply
  • 128 views

Hello,

I use a STPM32 on a battery charge system. The STPM32 is associated with an ESP32 module.

The driver used is from ST (V1.0, 17 may 2016).

I want to detect some defaults with interrupt, and I configure the interrupt mask only for current and voltage swell.

But when I launch a battery charge, an interrupt is triggered (the period error interrupt) which is not masked.

I don't understand this behavior and don't find an answer in the datasheet.

Any help would be appreciated !

Best regards

Gilles.

1 reply

Didier HERROUIN
ST Technical Moderator
June 25, 2026

Dear gilles-zce,

It seems that you want to measure DC voltage, as you are connected to a battery.
If this is the case, you must disable the HP filter. 
Please share your registers content to check you configuration.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.