▲ | fest 6 days ago | |
When I was doing stepper control on rp2040 I looked into using PIO but the 5 bit counters and 32 instruction limit made it too awkward to use. What worked better for my needs was dedicating 2nd core for just motion control and bit-banging the step/dir signals- simple to implement and good enough for the modest needs I had (just trapezoidal velocity profile for single axis motion). | ||
▲ | 6 days ago | parent | next [-] | |
[deleted] | ||
▲ | topspin 5 days ago | parent | prev | next [-] | |
> but the 5 bit counters 5 bit shift register, I believe you mean. Have a look at this. 16 instructions. Completely untested. I qualified my comment about RP2350 as "I believe," because I haven't actually done this: only investigated it via ChatGPT and Gemini. But it appears sound. Precision bit banging. PIO is pretty cool.
| ||
▲ | 5 days ago | parent | prev [-] | |
[deleted] |