STM32L433RC Comparator interrupt triggering on both edges rather than just rising edge.
I have used CubeMX to configure the HAL comparator driver to trigger an interrupt on the rising edge only, however the interrupt seems to occur on both edges. I checked the EXTI registers and everything seems correct. I then thought that my voltage supply might be noisy enough that it was causing transitions despite the high level of hysteresis that I have set. I used an oscilloscope to view the comparator output on a GPIO pin and there were no spurious transitions that I could see. I have no idea what the problem is at this point. Does anybody have any ideas? thanks.
