Read an input signal with just ONE INTERRUPT!!!

So this is a commercial enterprise? Should you be asking for free help then?