1. I am using atmega2560 & configured rising edge interrupt by below code. Normally pulse is low, & it gives a pulse of minimum 10ms whenever event occurs. Have to reject any rising edge if pulse width is less than 10ms.
const byte interruptPin = 2;
void setup()
{
pinMode(interruptPin, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(interruptPin), isr_func, RISING);
}
2. Is there any arduino function for it? Or how to do it arduino?