This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GPIO-input debouncing and interrupt on edge instead of level?

Genius 5820 points

Other Parts Discussed in Thread: AM3358

Since nobody in Starterware forum is able to answer if this is a bug in provided example code or not I'll try to ask this here as a more generic question:

A GPIO is configured as input and for using the debouncing feature. This means the AM3358 detects if a specific voltage/logic level on an input is stable for a given time, correct?

So when debouncing is used: does it make sense to set up an GPIO-interrupt for this pin that reacts on an inputs edge? Shouldn't this be a level-triggered interrupt only?

From my understanding in this situation debouncing can't be used since the edge that would trigger the ISR happens before the debounce-time can elapse. Is my assumption correct?