COMP and blanking Function
Hi all,
I am having some problems connecting a comparator to a TIMER using its blanking function (as described in the AN4232 application note).
I've read the COMP_OutputBlanking example found in the STM32G4 repository projects (I'm using a STM32G431).
If I don't enable the blanking function in the comparator setup, the system works fine:
- The comparator output works as expected
- The PWM channels (TIM2_CH1 and TIM2_CH3) work as expected.
After enabling the comparator blanking function on TIM2_CH3:
hcomp1.Init.BlankingSrce = COMP_BLANKINGSRC_TIM2_OC3_COMP1;
The comparator output stops working and the TIM2_CH3 channel does not seem to be affected by the comparator.
A strange thing, if I don't start the TIM2_CH3 the comparator output works fine (even if the blanking function is enabled).
What am I doing wrong?
Regards,
Flavio
