I need to generate a programmable pulse inside an ISR I have an application that requires that I generate an output pulse whose width is calculated in the main loop. The pulse has to be triggered by an interrupt and I understand that "delay" won't work inside the ISR. I can't use a polling technique because of the requirement to use serial writes in the main loop. 

Any ideas or suggestions will be most appreciated. 
Thx
you can use delayMicroseconds() inside the ISR if you really need to. It is not usually the best practice to delay inside an ISR, and there may be a cleaner way to accomplish what you need but without some background of what the signal is and what its used for this is your best bet.