Skip to main content
Visitor II
May 20, 2025
Question

Comp1 blanking not working inverted input

  • May 20, 2025
  • 1 reply
  • 357 views

Hi,
While working on the code for an STM32H7B0, I'm having issues with the blanking function of COMP1. Specifically, it works correctly when the comparator is in non-inverting mode, but if I invert the comparator's output (to detect falling thresholds), the blanking stops working. According to the datasheet, the blanking gate should be placed after the output inversion, so it should work whatever is the outpup polarity in the same way. In practice, however, it seems to be positioned before. Does anyone have any ideas?

garinus_0-1747737757678.png

I'm using dac1_ch1 as in- , analog signal connected to pin inp PB0,and tim1_ch5 as blank

 

    This topic has been closed for replies.

    1 reply

    ST Employee
    July 4, 2025

    Hello @garinus

    Based on the STM32H7B0 reference manual, the blanking function in COMP1 is designed to operate after the output polarity inversion, and it should work the same way regardless of the output polarity setting. 

    >>In practice, however, it seems to be positioned before 

    Could you specify more in details on the observations that led you to this conclusion?