Hi, Comte Vlad of the X (lol)

this kind of work might be achieved through assembler including ... where a 4 Mhz Xtal will be more than enough.

PBP ( and generally high level languages ) is ... ahum ... let's say not so good, for this kind of work !

Now ... 40 pulses of 2µs is rather fuzzy, as a signal shape description...

Alain