Thank you Richard for the time taken to help me.
Yes the problem definetly was outside the subroutine. A stupid thing that I do very often, but this time I could not find it without somebody else telling me the problems was elsewhere! I did define byte variable Pulse as : "Pulse Var byte [75]" and wanted to load the 76th byte!
As far as not using the simpler code "Pulse[75] =~w0", it comes from having had several trouble in the past trying to tranfer the value "1" from a byte variable into a bit variable that I came to the conclusion that it was better working with bit to bit ; byte to byte and word to word.
So, "DMY = W0//256" was extacting the low byte from the word variable W0 into the byte variable "DMY"
Tested Pulse[75] =~w0 and found it working! so very likely the problem is only with bit variable!
Again, Tank you very much for the precious help received.
Alberto
Bookmarks