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 s...