Why not use the output compare modules?
Hello !
I need to send clock signal (in this case at least two clock signals) from a PIC to L297 stepper motor driver. In other words, I need to control at least two motors at a time.
Now, with one motor driven at a time there is no problem, but I will need more than that. Clock send to L297, as you know, determines speed of the stepper, e.g. number of steps in time. Problem is that I would need more than one clock signal from the PIC, different frequencies, of course.
Currently, I am using 16F877 but I am not sure that I can do it with this controller. Any recommendation would be helpful.
Thank you,
Josip
Similar Threads:
Why not use the output compare modules?
I'm not sure how fast you need to step or whether you need to generate acceleration profiles and accurate positioning, but the pic24 or dspic can run much faster than the 16f.
You can use bresenhams algorithm to generate the 2 outputs. You can use an 8 bit or 16 bit.
With 8 bit you probably can get 50-100 Khz on your 8 bit pic.