delay inside interrupts

I need to use delay function inside interrupt. Is there any other way to implement delay inside interrupt.??

Set a flag; in your main program when you see the flag implement your delay.


It is not recommended to use a delay in an ISR.

See this :

If you think you need a delay there, then that is a good sign that an interrupt isn't appropriate for what you are trying to do.