Greetings AVR experts! My first post here...
In my current project I need to compare an external signal to a reference and wanted to use the internal analog comparator for that purpose. However, the external signal is changing too slowly and creates the usual issue of multiple triggering (see attached trace, red: input, blue: test output pin used in analog comparator ISR code to diagnose).
I'm currently using a discrete comparator and adding positive feedback in the usual fashion to get around this but I was wondering if there was any way to improve the situation with the internal analog comparator. Less components on the board = better in my opinion. :-)
Any suggestions would be welcome!