I see the signals coming from one of the pins of an Arduino Nano with GRBL, it looks like GRBL uses fixed 10us pulses (that can be adjusted of course) and rest periods that varies in duration according to acceleration and deceleration needs, that means u have fixed positive pulse times and variable OFF times, obtaining a variable frequency system.
I have search and I know that this is implemented with interrupts and much of that is in the stepper.c file that I do not know how to use, SO how can this be done manually using timers and so on?
I mean I want to produce 10us pulses with variable periods that I can change in real time, NOT a normal PWM where u have a fixed period or frequency and variable positive pulses according to the duty cycle.
I have already done this using DelayMicroseconds in the loop BUT I want to know how to do it with interrupts and/or timers.
Thanks for any help.