2022-08-22 10:55 AM
Hi,
I am using STM32L476. COMP1 and COMP2 are configured in window mode, and that is working great. I am also using TIM1 break function. Below is a summary of the problem that I am encountering:
I don't know if that's because there is a problem with the break function not accepting multiple sources (that should not be the case, as the manual clearly says that multiple sources are possible and they are ORed), or if there is a problem when using COMP1 / COMP2 as a break source (maybe that's related to the window mode configuration).
Therefore, I just wanted to know if anybody already managed to use COMP1 AND COMP2 as sources for BREAK or BREAK2.
Thanks a lot for your feedback.
Michel
Solved! Go to Solution.
2022-08-23 05:56 AM
I found my error. COMP1 and COMP2 output polarities were not compatible with the OR that is performed on all BREAK sources. By inverting the polarities, the BREAK function works fine with both sources enabled at the same time.
My bad.
2022-08-22 12:06 PM
> COMP1 and COMP2 are configured in window mode
Only COMP2 has WINMODE bit, as you need both comparators for window mode.
JW
2022-08-23 05:56 AM
I found my error. COMP1 and COMP2 output polarities were not compatible with the OR that is performed on all BREAK sources. By inverting the polarities, the BREAK function works fine with both sources enabled at the same time.
My bad.