Quote Originally Posted by HenrikOlsson View Post

If you generate the step pulses in hardware, like with the CCP module (as with HPWM ) then you have all the time in the world to figure out when to fire the solenoid(s).

/Henrik.
Henrik, I always wanted to try using the CCP module for this purpose, but not sure how to keep track of the number of pulses. Maybe feed the pwm output into a timer to keep count?

Mark