I want to produce one spike signal with a 1% duty cycle and 2-3 microsecond on time, please help me to solve this issue. I can make continuous signal but my requirement is generating single pulse and after that zero output.
Probably requires direct port manipulation to get pulses that short...
Use a timer. A library like TimerOne may be helpful.
How do You define "dutycycle" for one single pulse? How to measure it?
How are you going to trigger this one shot, 2-3uS pulse and is the timing of the triggering also critical ?
Say what you are doing with this pulse and maybe someone can suggest the most appropriate solution.
If the duty cycle of the signal is 1% and the pulse is 2uS, then the continuous signal you have earlier described is 5kHz.