Converting a pulse train to a single pulse
The filter will give you a signal: AC present/AC not present, but I would let the software check the status unless your INT would interupt the controller in all cases. If you are unlucky, the controller might miss a flank and be in a wrong state.