Hi Thorsten,
Finally I completed the boards for MIDIO128 and modified the code as you suggested me.
To achieve the 1ms pulse I added not this code after USER_SR_Service_Finish label but I have added after USER_SR_Service_Finish_End
It works but I have an analog scope so I cant measure the time of the pulse with high precision , anyway , comparing the pulse to the scale on the CRT of the scope it seems to me about 1ms .
Best regards
Antonio