Dang, I thought I was quite clear in what I wanted to do, I will repeat.dhylands wrote:
What exactly are you trying to do?
I want to pulse 8 outputs one-after-the other for say 2us each, total of 16us. The function to do all that is called from a timer callback.
The code I posted (which you asked for) does 2 of the 8 outputs in a assembly loop. The tim4 callback runs the code.
Interactively adjusting the freq of tim4 allows me to play with the cycle time of sending the pulse sequence.
Why would C be faster than assembly, that is crazy .....To go faster than the above, you're going to have to use a different technique or code it in C.
You have the code I posted in my last post, try running that at between 20 and 50Khz and you will see what I mean about
locking up REPL .. what you have done does not simulate what I have done ..