cancel
Showing results for 
Search instead for 
Did you mean: 

Comparator with PWM

waaizkhan
Associate II

In my setup, I’m using Comparator 6 (COMP6) on the STM32G474 microcontroller. The non-inverting input of the comparator is connected to a burden resistor from a current transformer, which measures current flow. The inverting input is tied to a fixed 1.5V reference created by a voltage divider. The goal is for the comparator to disable all PWM signals (generated by HRTIM TimerA) when the burden resistor voltage reaches 1.5V, indicating an overcurrent condition (e.g., 10A).

Issue: Despite the burden resistor voltage hitting 1.4V at 10A, the comparator does not trigger, and the PWM remains active.

1 REPLY 1

You expect the PWM to be disabled when this voltage reaches 1.5V ?

So, if the voltage is only reaching 1.4V, then you would not expect the PWM to stop.

Your system seems to be operating as expected ?