STM32L452 with cycle-by-cycle current control possible?
Hi, can anyone explain to me if it's possible to use the STM32L452 for cycle-by-cycle current control as exemplified in AN4232 p.8-9 and if so, how it's done? I'm asking because I have spent quite some time trying to configure COMP1 to signal the OCREFCLR. As far as I understand, it should be possible to redirect the comparator output internally to the OCREFCLR signal, which is used to clear the PWM signal. The STM32L45xxx reference manual (RM0394 p. 497) writes the following about COMP pins and internal signals:
This makes me believe that it is possible. The timer TIM3 is configured as follows:

The COMP1 configuration window looks like this:

How do I configure it to redirect the COMP output?
Best Regards,
Andreas
