cyborg8274:
can someone write a program that can read the pulses and generate output to required pins ?
Yes. You.
What exactly are you trying to do ?
Where does the input come from ?
What is the frequency of the input(s) ?
What exactly is the required output ?
What else, if anything, is the program doing ?
Why do you believe that you need to use interrupts rather than polling ?
What have you tried so far ?