The article RE: nRF52 PWM / Stepper Motor has most of what I need. The unfortunate thing is that the solution is written for a version of the SDK that I do not know. I am new to the nRF52* platform, and have come up to speed with using nRFConnect V2.1.0 with VSCode. The solution does not compile under this newer version of the SDK. Would someone be able to translate it?
Specifically, I am trying to drive 2 stepper motors without the use of a secondary MCU to control the steps/acceleration/position/etc that comes with steppers. I was able to use PWM to drive one motor, but I need 2 motors running at an independent frequency for differing speeds. According to the nRF52840 spec, the same PWM frequency is shared with all the PWM outputs. I would love to try the PPI/counter example to see if it would work for me, but as far as demo code for PPI and Counters with nRFConnect2.1.0, examples are scarce.
So bottom line is, with nRF.Connect v2.1.0, is there a low-overhead method that would allow the chip to handle 2 stepper motors with minimal overhead?