I am running a simple external interrupt with debouncing and noticed the debounce cutoff frequency gets applied across every IO port. I only want deboucing on the port I set.
Here is my code:
// Setup the io interrupt handler //
pio_handler_set(PIOA, ID_PIOA, PIO_PA2, PIO_IT_RISE_EDGE, My_intHandler);
// Setup the debounce filter on PORTA_2 using 1Hz cutoff frequency //
pio_set_debounce_filter(PIOA, PIO_PA2, 1);
// Enable the interrupt with the base address and PORT bit mask //
// Enable the interrupt
Shouldn't the code above set an interrupt and debounce filter only on PIOA 2?
What I am seeing is the 1Hz cutoff filter gets applied to any port on PIOA. I have some other inputs on PIOA and noticed they are being affected by the cutoff frequency.
Changing the cutoff frequency to say... 1000, changes characteristics on all inputs on PORTA as well.
Am I missing something?