Few days ago, I found a post for work with high frequency pulses with arduino, I found a next code that can generate a 4 MHz pulse waveform, most interesanting thing was the performance, can reach 4.3 ns of rise time, I attach oscilloscope capture, I measure with tektronix 500 MHz passive probes. I hope this can works for someone that just needs low rise time pulse. This rise time is better even than SDG 2042x waveform generator or the agilent 33120a.
Regards-.